Email: Password: Remember Me | Create Account (Free)
8051/8052 Instruction: DIV

Function:Divide Accumulator by B
Syntax:DIV AB

DIV AB0x8414C, OV

Description: Divides the unsigned value of the Accumulator by the unsigned value of the "B" register. The resulting quotient is placed in the Accumulator and the remainder is placed in the "B" register.

The Carry flag (C) is always cleared.

The Overflow flag (OV) is set if division by 0 was attempted, otherwise it is cleared.

See Also: MUL AB, Instruction Set