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
— —
—
—
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
Addressing
mode
Mnem.
Register direct
ADDS
Register direct
ADDS
Note: This instruction cannot access byte-size data.
38
N
Z
V
C
—
—
—
—
Instruction code
Operands
1st byte
#1, Rd
0
B
#2, Rd
0
B
2nd byte
3rd byte
0
0
rd
8
0
rd
No of
4th byte
states
2
2