Adds (Add With Sign Extension) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

ADDS (ADD with Sign extension)

<Operation>
Rd + 1 → Rd
Rd + 2 → Rd
<Assembly-Language Format>
ADDS #1, Rd
ADDS #2, Rd
<Examples>
ADDS #1, R4
ADDS #2, R5
<Operand Size>
Word
<Description>
This instruction adds the immediate value 1 or 2 to word data in a general register. Differing
from the ADD instruction, it does not affect the condition code flags.
<Instruction Formats>
Addressing
mode
Register direct
Register direct
Note: This instruction cannot access byte size data.
Mnem.
Operands
ADDS
#1, Rd
ADDS
#2, Rd
<Condition Code>
I
— — — — — — — —
I: Previous value remains unchanged.
H: Previous value remains unchanged.
N: Previous value remains unchanged.
Z: Previous value remains unchanged.
V: Previous value remains unchanged.
C: Previous value remains unchanged.
Instruction code
1st byte
2nd byte
0
B
0 0 rd
0
B
8 0 rd
39
H
N
Z
3rd byte
4th byte
ADDS
V
C
No. of
states
2
2

Advertisement

Table of Contents
loading

Table of Contents