Altera Corporation 53
3232323232-Bit Instruction Set
2
32-Bit Instruction
Set
IF0

Equivalent to SKP1 Instruction

Operation: if (RA[IMM5] = = 1)
then begin
if (Mem16[PC+ 2 ] is PFX)
then PC PC + 6
else PCPC + 4
end
Assembler Syntax: IF0 %rA,IMM5
Example: IF0 %o3,21 ; do if 21st bit of %o3 is zero
ADDI %g0,1 ; increment if 21st bit clear
Description: Skip next instruction if the single bit RA[IMM5 ] is 1. If the next instru ction is PFX,
then both PFX and the instruction following PFX ar e skipped together.
Condition Codes: Flags: Unaffected
Instruction Format: Ri5
Instruction Fields: A = Register index of operand RA
IMM5 = 5-bit immediate value
1514131211109876543210
010101 IMM5 A
NVZC
−−−−