Excalibur electronic A-MNL-NIOSPROG-01.1 DJ Equipment User Manual


 
Altera Corporation 45
3232323232-Bit Instruction Set
2
32-Bit Instruction
Set
CMP
Compare
Operation: ∅←RA RB
Assembler Syntax: CMP %rA,%rB
Example: CMP %g0,%g1 ; set flags by %g0 - %g1
Description: Subtract the contents of RB from RA, and discard the result. Set the condition
codes according to the subtraction. Neither RA nor RB are altered.
Condition Codes: Flags:
N: Result bit 31
V: Signed-arithmetic overflow
Z: Set if result is zero; cleared otherwise
C: Set if there was a borrow from the subtraction; cleared otherwise
Instruction Format: RR
Instruction Fields: A = Register index of RA operand
B = Register index of RB operand
1514131211109876543210
000100 B A
NVZC
∆∆∆∆