ADDX (ADD with eXtend carry)
ADDX
<Description>
This instruction adds the source operand and carry flag to the contents of an 8-bit general
register and places the result in the 8-bit general register.
The source operand can be an 8-bit register value or immediate byte data.
<Instruction Formats>
<Operation>
Rd + (EAs) + C
→
Rd
<Assembly-Language Format>
ADDX
<EAs>, Rd
<Examples>
ADDX R0L, R1L
ADDX #H'0A, R2H
<Operand Size>
Byte
<Condition Code>
I: Previous value remains unchanged.
H: Set to "1" if there is a carry from bit 3;
otherwise cleared to "0."
N: Set to "1" when the result is negative;
otherwise cleared to "0."
Z: Set to "1" when the result is zero;
otherwise cleared to "0."
V: Set to "1" if an overflow occurs;
otherwise cleared to "0."
C: Set to "1" if there is a carry from bit 7;
otherwise cleared to "0."
I
H
N
Z
V
C
—
—
↕
—
↕
↕
↕
↕
Immediate
ADDX
#xx:8, Rd
9
rd
IMM
2
Register direct
ADDX
Rs, Rd
0
E
rs
rd
2
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
40
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...