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)

N

Z

V

C

 

 

 

 

+

+

+

+

 

 

 

 

+: 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 00H 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

98

Page 110
Image 110
Fujitsu F2MC-8FX manual DAA Decimal Adjust for Addition