32-Bit Instruction Set

IF0

Equivalent to SKP1 Instruction

Operation:

Assembler Syntax: Example:

if (RA[IMM5] = = 1) then begin

if (Mem16[PC + 2] is PFX) then PC PC + 6

else PC PC + 4

end

IF0 %rA,IMM5

IF0 %o3,21 ; do if 21st bit of %o3 is zero ADDI %g0,1 ; increment if 21st bit clear

2

32-Bit

Description:

 

 

 

 

Skip next instruction if the single bit RA[IMM5] is 1. If the next instruction is PFX,

 

 

 

 

 

 

then both PFX and the instruction following PFX are skipped together.

 

Condition Codes:

 

 

Flags: Unaffected

 

 

 

 

 

 

 

 

 

 

 

 

 

 

N

 

V

Z

C

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Format:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ri5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Fields:

 

 

A = Register index of operand RA

 

 

 

 

 

 

 

 

 

 

 

 

 

IMM5 = 5-bit immediate value

 

 

 

 

 

 

 

15

14

13

 

12

11

10

 

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1

0

 

1

0

1

 

 

 

 

 

IMM5

 

 

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Set

Altera Corporation

53

Page 65
Image 65
Excalibur electronic A-MNL-NIOSPROG-01.1 manual Equivalent to SKP1 Instruction, IF0 %rA,IMM5