29 Program to divide two 16 bit signed number in 8086 microprocessor

Code:

; Program to add two 16 bit unsigned number
.MODEL SMALL
.STACK 100
.DATA
     REM DW ?
     QUO DW ?
.CODE
     MOV BX , -5 ; DIVISIOR
     MOV AX , 99 ; FIRST 16 BIT
     MOV DX , 0  ; LAST 16 BIT

     IDIV BX

     MOV REM , DX ; REMAINDER
     MOV QUO , AX ; QUOTIENT

     MOV AH , 4CH
     INT 21H
END




Output: 



Previous
Next Post »

1 Comments:

Click here for Comments
Pinaz Dey
admin
June 8, 2020 at 7:37 AM ×

If I run the executable file of dividing 8bit nos. I am receiving the quotient as characters not numbers. Why is it so?

Thank You Pinaz Dey For Comment.
Reply
avatar