2.2.59 (3) SUB (L)
SUB (SUBtract binary)
Subtract Binary
Operation
ERd – <EAs>
→
ERd
Assembly-Language Format
SUB.L
<EAs>, ERd
Operand Size
Longword
Condition Code
H: Set to 1 if there is a borrow at bit 27;
otherwise cleared to 0.
N: Set to 1 if the result is negative; otherwise
cleared to 0.
Z: Set to 1 if the result is zero; otherwise
cleared to 0.
V: Set to 1 if an overflow occurs; otherwise
cleared to 0.
C: Set to 1 if there is a borrow at bit 31;
otherwise cleared to 0.
I
UI
H
U
N
Z
V
C
—
—
↕
—
↕
↕
↕
↕
Description
This instruction subtracts a source operand from the contents of a 32-bit register ERd (destination
operand) and stores the result in the 32-bit register ERd.
Available Registers
ERd: ER0 to ER7
ERs: ER0 to ER7
Operand Format and Number of States Required for Execution
Notes
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
5th byte
6th byte
Immediate
SUB.L
#xx:32, ERd
7
A
3
0 erd
IMM
6
Register direct
SUB.L
ERs, ERd
1
A
1 ers 0 erd
2
No. of
States
Mnemonic
Operands
Addressing
Mode
179