32-Bit Instruction Set

SKPS

Skip On Condition Code

Operation:

Assembler Syntax:

Example:

if (condition IMM4 is true) then begin

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

else PC PC + 4

end

SKPS cc_IMM4

SKPS cc_ne

BSR SendIt ; only call if Z flag clear NOP ; (delay slot) executed in either case

2

32-Bit Set

Description:

Skip next instruction if specified condition is true. If the next instruction is PFX,

 

 

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

Condition Codes:

Settings:

 

 

 

 

 

 

 

 

 

 

 

cc_c

0x0

(C)

 

 

 

 

 

 

 

1 These condition

 

cc_nc

0x1

(not C)

 

 

 

 

 

 

 

cc_z

0x2

(Z)

 

codes have

 

different numeric

 

cc_nz

0x3

(not Z)

 

values for IFS and

 

 

 

 

 

 

cc_mi

0x4

(N)

 

SKPS instructions.

 

 

 

 

 

 

 

cc_pl

0x5

(not N)

 

 

 

 

 

 

 

 

 

cc_ge

0x6

(not (N xor V))

 

 

 

 

 

 

 

 

 

cc_lt

0x7

(N xor V)

 

 

 

 

 

 

 

 

 

cc_le

0x8

(Z or (N xor V))

 

 

 

 

 

 

 

 

 

cc_gt

0x9

(Not (Z or (N xorV)))

 

 

 

 

 

 

 

 

 

cc_v

0xa

(V)

 

 

 

 

 

 

 

 

 

cc_nv

0xb

(not V)

 

 

 

 

 

 

 

 

 

cc_la

0xc

(C or Z)

 

 

 

 

 

 

 

 

 

cc_hi

0xd

(not (C or Z))

 

 

 

 

 

 

 

 

 

 

 

 

Additional alias flags allowed:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

cc_cs = cc_c

 

cc_n = cc_mi

cc_cc = cc_nc

 

cc_vc = cc_nv

 

 

 

 

 

 

 

cc_eq = cc_z

 

cc_vs = cc_v

cc_ne = cc_nz

 

cc_p

= cc_pl

 

 

 

 

 

 

 

Codes mean skip if, e.g., skps cc_eq means skip if equal

 

 

 

Instruction Format:

 

i4w

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Fields:

 

IMM4 = 4-bit immediate value

 

 

 

 

 

 

 

 

 

15

14

13

 

12

11

10

 

9

8

7

6

5

 

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1

1

 

1

1

1

 

1

 

0

1

1

1

 

0

 

 

IMM4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction

Altera Corporation

89

Page 101
Image 101
Excalibur electronic A-MNL-NIOSPROG-01.1 manual Skip On Condition Code, Skps ccIMM4 Skps ccne