Excalibur electronic A-MNL-NIOSPROG-01.1 用户手册

下载
页码 122
Altera Corporation
89
32323232
32-Bit Instruction Set
2
3
2
-B
it In
st
ru
ctio
n
Se
t
SKPS
Skip On Condition Code
Operation:
if (condition IMM4 is true)
then begin
if (Mem16[PC + 2] is PFX)
then PC
← PC + 6 
else PC
← PC + 4
end
Assembler Syntax:
SKPS cc_IMM4
Example:
SKPS cc_ne
BSR SendIt ; only call if Z flag clear
NOP ; (delay slot) executed in either case
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:
1
These condition 
codes have 
different numeric 
values for IFS and 
SKPS instructions.
cc_c
0x0
(C)
cc_nc
0x1
(not C)
cc_z
0x2
(Z)
cc_nz
0x3
(not Z)
cc_mi
0x4
(N)
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_eq = cc_z
cc_n  = cc_mi
cc_vs = cc_v
cc_cc = cc_nc
cc_ne = cc_nz
cc_vc = cc_nv
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