Windows Assembly Language and Systems Programming by Barry Kauler

dx and ax. d i v bl div bx The first example assumes the dividend to be in AX and puts the result in AX in this format: AH = remainder (left over), AL = quotient (result). The second example specifies a 16-bit divisor, which assumes that the dividend is in DX:AX and the result in DX:AX as follows: DX = remainder, AX = quotient.

Download PDF sample

Rated 4.17 of 5 – based on 34 votes