
CHAPTER 6 DETAILED RULES FOR EXECUTION INSTRUCTIONS
6.33 DIVU (DIVide Unsigned)
Divide the word data of T by that of AL as an unsigned binary value. Return the quotient to A and the remainder to T.
When A is 0, the result is indefinite and Z flag is 1 to show 0 division.
■DIVU (DIVide Unsigned)
Operation
Quotient (A) ← (T) / (A)
Remainder (T) ← (T) MOD (A)
Assembler format
DIVU A
Condition code (CCR)
N | Z | V | C |
|
|
|
|
- | + | - | - |
|
|
|
|
+: Changed by executing instruction
N: Not changed
Z: Set to 1 if A before execution of instruction is 0000H and set to 0 in other cases.
V:Not changed
C:Not changed
Number of execution cycles: 17
Byte count: 1
OP code: 11
112