
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
136 / 153
toc2
Description:
Converts the integer value contained in the AluReg register into a two's complement
format.
If the conversion bit in the arithmetic condition register is zero, the 'toc2' instruction
makes the most significant bit in the operand register zero.
If the conversion bit is one, then it returns the two's complement of the operand
(bits[14:0] only) register.
Assembler syntax:
toc2 op1;
Operands:
•
op1 – One of the registers listed in the operand
Table 124. toc2 instruction format
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
1
1
0
1
1
1
0
0
1
1
0
op1