Tuesday 7 January 2014

Division of two numbers

.A  <start address>        (intialisation)
MOV AX,@3000          (move content at 3000 to AX register)
MOV BX,@3002          (move content at 3002 to BX register)
DIV BX                         (divide the value at BX with AX register,result being stored in AX)
INT 03                          (termination)

No comments:

Post a Comment