Fujitsu F2MC-8FX Manual Do Utilizador

Página de 272
98
CHAPTER 6  DETAILED RULES FOR EXECUTION INSTRUCTIONS
6.26 DAA (Decimal Adjust for Addition)
When adding the correction value to AL by the state in the carry before execution of 
instruction and half-carry, decimal operation is corrected. 
DAA (Decimal Adjust for Addition)
Operation
(AL) 
← (AL) + 6 or 60H or 66H
(Add a correction value shown in the next page to AL and the value of AL according to the state of the
C or H-flag.)
Assembler format
DAA
Condition code (CCR)
+: Changed by executing instruction
-: Not changed
N: Set to 1 if the MSB is 1 as the result of operation and set to 0 in other cases.
Z: Set to 1 if the result of operation is 00
H
 and set to 0 in other cases.
V: Set to 1 if an overflow occurs as the result of operation and set to 0 in other cases.
C: Change as indicated on the next page.
Number of execution cycle: 1
Byte count: 1
OP code: 84
N
Z
V
C
+
+
+
+