除法溢出
STACKS SEGMENT STACKSTK DB 20 DUP(?)
STACKS ENDS
DATAS SEGMENT
DATA1 DD 12345678H
DATA2 DD 98765443H
RLT DD ?
DATAS ENDS
CODES SEGMENT
ASSUME DS:DATAS,SS:STACKS,CS:CODES
START: MOV AX,DATAS
MOV DS,AX
MOV AX,WORD PTR DATA1
ADD AX,WORD PTR DATA2
MOV DX,WORD PTR DATA1+2
ADC DX,WORD PTR DATA2+2
MOV BX,0FFFFH
IDIV BX
MOV AX,4C00H
INT 21H
CODES ENDS
END START