Professional Documents
Culture Documents
Division of 32 Bit Number With 16 Bit Number
Division of 32 Bit Number With 16 Bit Number
Division of 32 Bit Number With 16 Bit Number
Ports: - None.
DATA SEGMENT
DIVIDEND DW 2 DUP(0)
DIVISOR DB ?
QUO DW 1 DUP(0)
REM DW 1 DUP(0)
DATA ENDS
CODE SEGMENT
ASSUME CS: CODE, DS : DATA
START:
MOV AX, DIVIDEND
MOV DX, DIVISOR+2
DIV DIVISOR
MOV QUO, AX
MOV REM, DX
CODE ENDS
END START