Thursday, 27 September 2018

how to add two number in assembly language

[org 0x0100]
 ; a=b+d
 
       mov ax,[b]
       add ax,[d]
       mov [a],ax
   
 



mov ax,0x4c00
int 0x21
a : dw 0
b : dw 3
d : dw 9