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


 
100 Altera Corporation
32-Bit Instruction Set
SUBI
Subtract Immediate
Operation: RA RA (0x00.00 : K : IMM5)
Assembler Syntax: subi %rB,IMM5
Example: Not preceded by PFX:
SUBI %L5,6 ; subtract 6 from %L5
Preceded by PFX:
PFX %hi(1000)
SUBI %o3,%lo(1000) ; subtract 1000 from %o3
Description: Not preceded by PFX:
Subtracts the immediate value from the contents of RA. The immediate value is
in the range of [0..31].
Preceded by PFX:
The Immediate operand is extended from 5 to 16 bits by concatenating the
contents of the K-register (11 bits) with IMM5 (5 bits). The 16-bit immediate value
(K : IMM5) is zero-extended to 32 bits and subtracted from register A.
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: Ri5
Instruction Fields: A = Register index of RA operand
IMM5 = 5-bit immediate value
1514131211109876543210
000011 IMM5 A
NVZC
∆∆∆∆