Division of Signed Number.
Algorithm:
when operand is a byte:
AL = AX / operand
AH = remainder (modulus)when operand is a word:
AX = (DX AX) / operand
DX = remainder (modulus)
IDIV Reg IDIV Memory
MOV AX, -203 ; AX = 0FF35h MOV BL, 4 IDIV BL ; AL = -50 (0CEh), AH = -3 (0FDh) RET