CS401 Assignment 1 Solution 2022 - Download CS401 Solved Assignment no 1 solution 2022 In Word Format
Solution:
Code
[org 0x0100]
jmp start
start:
mov Ebx,9
mov Ecx,0
cmp Ecx,0
jz power_one
cmp ebx,0
jz power_zero
mov Eax,1
power:
jcxz
power_done
mul
Ebx
loop
power
power_zero:
mov [r],Eax
power_one:
mov [r],Eax
power_done:
mov [r],EAx
MOV AX,4C00h
INT 21h
Screen
Shot Results
No comments:
Post a Comment