ADDS (ADD with Sign extension)
ADDS
<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>
Note: This instruction cannot access byte size data.
<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
<Condition Code>
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.
I
H
N
Z
V
C
—
—
—
— —
— —
—
Register direct
ADDS
#1, Rd
0
B
0
0 rd
2
Register direct
ADDS
#2, Rd
0
B
8
0 rd
2
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
39
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...