a)
;VUID-BC180407520
[org 0x0100] ;offset
jmp start
firsttwodigit: dw 18
lasttwodigit: dw 20
result: dw 0
start:
mov ax, 0
mov bx, 0
mov ax,
[firsttwodigit]
mov bx,
[lasttwodigit]
cmp ax, bx
jnge subt
add ax, bx
mov [result], ax
jmp exit
subt: sub bx, ax
mov [result], bx
jmp exit
exit:
mov ax, 0x4c00
b)
c)


Comments
Post a Comment