
2.0 Architectural Description
(Continued)
TABLE 2-2. NS32FX16 Instruction Set Summary
(Continued)
STRINGS
String instructions assign specific functions to the General
Purpose Registers:
R4 D Comparison Value
R3 D Translation Table Pointer
R2 D String 2 Pointer
R1 D String 1 Pointer
R0 D Limit Count
Options on all string instructions are:
B
(Backward):
Decrement string pointers after each
step rather than incrementing.
U
(Until match):
End instruction if String 1 entry matches
R4.
W
(While match): End instruction if String 1 entry does not
match R4.
All string instructions end when R0 decrements to zero.
Format
Operation
Operands
Description
5
MOVSi
MOVST
CMPSi
CMPST
SKPSi
SKPST
options
options
options
options
options
options
Move string 1 to string 2.
Move string, translating bytes.
Compare string 1 to string 2.
Compare, translating string 1 bytes.
Skip over string 1 entries.
Skip, translating bytes for until/while.
5
5
JUMPS AND LINKAGE
Format
Operation
Operands
Description
3
0
0
3
2
3
1
1
3
1
1
1
1
1
1
1
1
1
JUMP
BR
Bcond
CASEi
ACBi
JSR
BSR
CXP
CXPD
SVC
FLAG
BPT
ENTER
EXIT
RET
RXP
RETT
RETI
gen
disp
disp
gen
short,gen,disp
gen
disp
disp
gen
Jump.
Branch (PC Relative).
Conditional branch.
Multiway branch.
Add 4-bit constant and branch if non-zero.
Jump to subroutine.
Branch to subroutine.
Call external procedure
Call external procedure using descriptor.
Supervisor call.
Flag trap.
Breakpoint trap.
Save registers and allocate stack frame (Enter Procedure).
Restore registers and reclaim stack frame (Exit Procedure).
Return from subroutine.
Return from external procedure call.
Return from trap. (Privileged)
Return from interrupt. (Privileged)
[
reg list
]
, disp
[
reg list
]
disp
disp
disp
CPU REGISTER MANIPULATION
Format
Operation
Operands
Description
1
1
2
2
3
3
3
5
SAVE
RESTORE
LPRi
SPRi
ADJSPi
BISPSRi
BICPSRi
SETCFG
[
reg list
]
[
reg list
]
areg,gen
areg,gen
gen
gen
gen
[
option list
]
Save general purpose registers.
Restore general purpose registers.
Load dedicated register. (Privileged if PSR or INTBASE)
Store dedicated register. (Privileged if PSR or INTBASE)
Adjust stack pointer.
Set selected bits in PSR. (Privileged if not Byte length)
Clear selected bits in PSR. (Privileged if not Byte length)
Set configuration register. (Privileged)
17