Tuesday 7 January 2014

subtraction of two numbers

.A <start address>
MOV AX,@3000    (move value at 3000 to AX register)
MOV BX,@3002     (move value 3002 to BX register)
SUB AX,BX       (SUB value at BX with AX)
INT 03           (termination)       

No comments:

Post a Comment