72 Altera Corporation
32-Bit Instruction Set
NEG
Arithmetic Negation
Operation:
RA ← 0 – RA
Assembler Syntax: NEG %rA
Example: NEG %o4
Description: Negate the value of RA. Perform two’s complement negation of RA.
Condition Codes: Flags: Unaffected
Instruction Format: Rw
Instruction Fields: A = Register index of operand RA
1514131211109876543210
011111 00001 A
NVZC
−−−−