INT 00H: Division Overflow
The CPU automatically executes this interrupt after a DIV or IDIV is
performed and the result (quotient) of a division operation will not fit
into the destination. This includes division by 0. For instance...
mov ax,4000H ;dividend
mov bl,2 ;divisor is byte so destination is byte (AL)
div bl ;4000H/2 is 2000H which will not fit in AL
; so INT 00H is executed
...or simply:...
mov bx,0
div bx ;any division by 0
Note: Division-by-0 errors on the numeric coprocessor may be routed
through the NMI. See INT 02H.
See Also: ROM-BIOS Functions
DOS Functions
Process Control Functions
-♦-