; PROGRAM TO DIVIDE TWO 16 BIT NUMBERS
.MODEL SMALL
.STACK 100
.DATA
QUO DW ?
REM DW ?
.CODE
MOV BX , 25 ; DIVISOR
MOV AX , 100 ; FIRST 16 BIT
MOV DX , 0 ; LAST 16 BIT
DIV BX
MOV QUO , AX ; QUOTIENT
MOV REM , DX ; REMAINDER
MOV AH , 4CH ; EXIT
INT 21H
END