Saturday 11 January 2014

Division without using DIV command

   .A <start address>
   MOV CX,0
   MOV AX,@3000
   MOV BX,@3002
repeat: SUB AX,BX
   ADD CX,1
   CMP AX,BX
   JGE repeat:
   INT 03

->Result will be stored in CX register

No comments:

Post a Comment