Addx (Add With Extend Carry) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

ADDX (ADD with eXtend carry)

<Operation>
Rd + (EAs) + C → Rd
<Assembly-Language Format>
ADDX <EAs>, Rd
<Examples>
ADDX R0L, R1L
ADDX #H'0A, R2H
<Operand Size>
Byte
<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>
Addressing
mode
Immediate
Register direct
Mnem.
Operands
ADDX
#xx:8, Rd
ADDX
Rs, Rd
<Condition Code>
I
— —
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."
Instruction code
1st byte
2nd byte
9
rd
IMM
0
E
rs
rd
40
H
N
Z
3rd byte
4th byte
ADDX
V
C
No. of
states
2
2

Advertisement

Table of Contents
loading

Table of Contents