
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
73 / 153
jtsr
Description:
Configures the jump to subroutine to relative location on condition.
When jump to subroutine is called, the current program counter value (uPC) is stored into
the auxiliary register (aux) to handle end-of-subroutine return.
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:
jtsr Dest;
Operands:
•
Dest – Operand defines the 5-bit relative destination address in the range of {–16, 15}.
Table 62. jtsr instruction format
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
1
0
1
1
1
1
0
0
1
Dest