38
2.2.2 ADDS (add with sign extension)
Operation
Rd+1
→
Rd
Rd+2
→
Rd
Assembly-Language Format
ADDS #1, Rd
ADDS #2, Rd
Operand Size
Word
Condition Code
I
H
N
Z
V
C
—
—
—
—
—
—
—
—
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.
Description
This instruction adds the immediate value 1 or 2 to word data in a general register. Unlike the
ADD instruction, it does not affect the condition code flags.
Instruction Formats and Number of Execution States
Instruction code
Addressing
mode
Mnem.
Operands
1st byte
2nd byte
3rd byte
4th byte
No of
states
Register direct
ADDS
#1, Rd
0
B
0
0
rd
2
Register direct
ADDS
#2, Rd
0
B
8
0
rd
2
Note: This instruction cannot access byte-size data.
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 ...