Excalibur electronic A-MNL-NIOSPROG-01.1 manual IFRz, Equivalent to SKPRnz Instruction

Models: A-MNL-NIOSPROG-01.1

1 122
Download 122 pages 44.67 Kb
Page 68
Image 68

32-Bit Instruction Set

IFRz

Equivalent to SKPRnz Instruction

Operation:

Assembler Syntax: Example:

if (RA ! = 0) then begin

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

else PC PC + 4

end

IFRz %rA

IFRz %g3

BSR SendIt ; only call if %g3 is zero

NOP ; (delay slot) executed in either case

Description:

 

 

 

 

Skip next instruction if RA is not zero. 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:

 

 

Rw

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Fields:

 

 

A = Register index of operand RA

 

 

 

 

 

 

 

15

14

13

 

12

11

10

 

9

8

7

 

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1

1

 

1

1

1

 

1

 

1

0

 

1

0

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

56

Altera Corporation

Page 68
Image 68
Excalibur electronic A-MNL-NIOSPROG-01.1 manual IFRz, Equivalent to SKPRnz Instruction