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

Popular posts from this blog

MGMT 627 Assignment Solution Idea

MGT501 - Human Resource Management Assignment No.1 Fall 2020

CS101 Assignment no 2