NXP Semiconductors
PT2001SWUG
PT2001 programming guide and instruction set
PT2001SWUG
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2019. All rights reserved.
User guide
Rev. 3.0 — 29 April 2019
44 / 153
jarr
Description:
Configures jump to relative location on arithmetic condition.
If the condition defined by the BitSel operand is satisfied, the program counter (uPC) is
handled such as the next executed instruction is relative destination address.
The jump is relative to the instruction Code RAM location. The destination address is the
actual instruction Code RAM location added to the Dest operand value. This 5-bit value
is a two's complemented number. The MSB is the sign. So Dest operand value is in the
range of {–16, 15}.
Assembler syntax:
jarr Dest BitSel;
Operands:
•
Dest – Operand defines the 5-bit relative destination address in the range of {–16, 15}.
•
BitSel – Operand defines the arithmetic condition that triggers the jump. The arithmetic
conditions are stored into the ALU condition register.
Operand label
Operand description
Operand binary value
opd
OD -Operation complete
0000
ovs
SO - Overflow with signed operands
0001
uns
SU - Underflow with signed operands
0010
ovu
UO - Overflow with unsigned operands
0011
unu
UU - Underflow with unsigned operands 0100
sgn
CS - Sign of result
0101
zero
RZ - Result is zero
0110
mloss
ML - Multiply precision loss
0111
mover
MO - Multiply overflow
1000
all1
MM - Result of mask operation is FFFFh 1001
all0
MN - Result of mask operation is 0000h 1010
aritl
false if add/sub saturation is enabled,
instruction)
1011
arith
false if logic is set to two's complement,
true if logic is set to positive numbers
instruction)
1100
carry
C - Carry
1101
conv
CS - Conversion sign
1110
csh
SB - Carry on shift operation
1111
Table 46. jarr instruction format
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
1
0
0
1
0
BitSel
Dest