; 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
1 Comments:
Click here for CommentsIf I run the executable file of dividing 8bit nos. I am receiving the quotient as characters not numbers. Why is it so?