2.2.2 ADDS
ADDS (ADD with Sign extension)
Add Binary Address Data
Operation
Rd + 1
→
ERd
Rd + 2
→
ERd
Rd + 4
→
ERd
Assembly-Language Format
ADDS
#1, ERd
ADDS
#2, ERd
ADDS
#4, ERd
Operand Size
Longword
Condition Code
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
UI
H
U
N
Z
V
C
—
—
—
—
—
—
—
—
Description
This instruction adds the immediate value 1, 2, or 4 to the contents of a 32-bit register ERd.
Differing from the ADD instruction, it does not affect the condition code flags.
Available Registers
ERd: ER0 to ER7
Operand Format and Number of States Required for Execution
Notes
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
Register direct
ADDS
#1, ERd
0
B
0
0 erd
2
Register direct
ADDS
#2, ERd
0
B
8
0 erd
2
Register direct
ADDS
#4, ERd
0
B
9
0 erd
2
No. of
States
Addressing
Mode
Mnemonic
Operands
45