76
2.2.23 DAA (decimal adjust add)
Operation
Rd (decimal adjust)
→
Rd
Assembly-Language Format
DAA Rd
Operand Size
Byte
Condition Code
I
H
N
Z
V
C
—
—
*
—
∆
∆
*
∆
I:
Previous value remains unchanged.
H:
Unpredictable
N:
Set to 1 when the adjusted result is negative; otherwise cleared to 0.
Z:
Set to 1 when the adjusted result is zero; otherwise cleared to 0.
V:
Unpredictable.
C:
Set to 1 when there is a carry from bit 7; otherwise left unchanged.
Description
When the result of an addition operation performed by the ADD.B or ADDX instruction on 4-bit
BCD data is contained in an 8-bit general register and the carry and half-carry flags, the DAA
instruction adjusts the result by adding H'00, H'06, H'60, or H'66 to the general register
according to the table below.
Valid results are not assured if this instruction is executed under conditions other than those
stated above.
Summary of Contents for H8/300L Series
Page 1: ...H8 300L Series Programming Manual ...
Page 6: ...iv ...
Page 8: ...2 ...
Page 11: ......
Page 14: ......
Page 46: ......
Page 48: ......
Page 60: ......
Page 83: ......
Page 116: ......
Page 150: ...144 ...
Page 151: ......
Page 156: ...150 ...