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
70 / 153
jsrr
Description:
Configures the jump to the relative location of the status register condition.
If the condition defined by the SrSel operand is satisfied according to the polarity Pol,
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:
jsrr Dest SrSel Pol;
Operands:
•
Dest – Operand defines the 5-bit relative destination address in the range of {–16, 15}
•
SrSel – Operand defines the status register condition (Status_reg_uc0 (105h, 125h)
and Status_reg_uc1 (106h, 126h) registers) that triggers the jump
Operand label
Operand description
b0
Status register bit 0 (LSB)
b1
Status register bit 1
b2
Status register bit 2
b3
Status register bit 3
b4
Status register bit 4
b5
Status register bit 5
b6
Status register bit 6
b7
Status register bit 7
b8
Status register bit 8
b9
Status register bit 9
b10
Status register bit 10
b11
Status register bit 11
b12
Status register bit 12
b13
Status register bit 13
b14
Status register bit 14
b15
Status register bit 15 (MSB)
Pol – Operand defines the active polarity for the selected bit
Operand label
Operand description
low
Active condition if the selected bit is '0'
high
Active condition if the selected bit is '1'