Operation: | DIV |
Function: | Divide Accumulator by B |
Syntax: | DIV AB |
Instructions | OpCode | Bytes | Cycles | Flags |
DIV AB | 0x84 | 1 | 4 | C, 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