Table of Contents

Advertisement

2.2.2 ADDS

ADDS (ADD with Sign extension)
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
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
Addressing
Mnemonic
Mode
Register direct
ADDS
Register direct
ADDS
Register direct
ADDS
Notes
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.
Operands
1st byte
#1, ERd
0
B
#2, ERd
0
B
#4, ERd
0
B
45
Add Binary Address Data
I
UI H
U
N
— — — — — — — —
Instruction Format
2nd byte
3rd byte
0
0 erd
8
0 erd
9
0 erd
Z
V
C
No. of
States
4th byte
2
2
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents