2.2.40 (3) NEG (L)
NEG (NEGate)
Negate Binary Signed
Operation
0 – ERd
→
ERd
Assembly-Language Format
NEG.L
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 takes the two’s complement of the contents of a 32-bit register ERd (destination
operand) and stores the result in the 32-bit register ERd (subtracting the register contents from
H'00000000). If the original contents of ERd was H'80000000, however, the result remains
H'80000000.
Available Registers
ERd: ER0 to ER7
Operand Format and Number of States Required for Execution
Notes
An overflow occurs if the previous contents of ERd was H'80000000.
Instruction Format
1st byte
2nd byte
3rd byte
4th byte
Register direct
NEG.L
ERd
1
7
B
0 erd
2
No. of
States
Addressing
Mode
Mnemonic
Operands
134