2.2.60 SUBS
SUBS (SUBtract with Sign extension)
Subtract Binary Address Data
Operation
ERd – 1
→
ERd
ERd – 2
→
ERd
ERd – 4
→
ERd
Assembly-Language Format
SUBS
#1, ERd
SUBS
#2, ERd
SUBS
#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 subtracts the immediate value 1, 2, or 4 from the contents of a 32-bit register ERd
(destination register). Differing from the SUB 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
SUBS
#1, ERd
1
B
0
0 erd
2
Register direct
SUBS
#2, ERd
1
B
8
0 erd
2
Register direct
SUBS
#4, ERd
1
B
9
0 erd
2
No. of
States
Addressing
Mode
*
Mnemonic
Operands
180