8051 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.

anonymous   said:
7 years ago

what's a 'B' register?

Points :   0

Post Your Comments Here :

User Login

Username :

Password :