DP805x Instructions set details
- 33 -
3.11. DIV
Instruction:
Function:
DIV AB
Divide
Description: DIV AB divides the unsigned eight-bit integer in the accumulator by the
unsigned eight-bit integer in register B. The accumulator receives the
integer part of the quotient; register B receives the integer remainder.
The carry and OV flags will be cleared.
Exception:
If B had originally contained 00 H, the values returned in the
accumulator and B register will be undefined and the overflow flag will
be set. The carry flag is cleared in any case.
Operation:
(PC) ← (PC) + 1
(A15-8) ← (A) / (B) – result’s bits 15..8
(B7-0) ← (A) / (B) – result’s bits 7..0
Bytes:
Cycles:
1
6
Encoding:
1
0
0
0
0
1
0
0
All trademarks mentioned in this document
are trademarks of their respective owners.
http://www.DigitalCoreDesign.com
http://www.dcd.pl
Copyright 1999-2003 DCD – Digital Core Design. All Rights Reserved.