English
Language : 

DR805X Datasheet, PDF (33/79 Pages) Digital Core Design – 8-bit RISC Microcontroller Instructions set details ver 3.10
DR805x Instructions set details
3.11. DIV
- 33 -
Instruction: DIV AB
Function: Divide
Description:
Exception:
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.
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:
1
Cycles:
5
Encoding:
10000100
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.