
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
142 / 153
xor
Description:
Applies the XOR-mask contained in the Ir register to the value contained in the op1
register and places the result in the op1 register. The initial data stored in the op1 register
is lost.
Operation:
(Source) XOR Immediate register → (Source)
Assembler syntax:
xor op1;
Operands:
•
op1 – One of the registers listed in the operand
•
Ir – The ALU immediate register
Condition register:
•
MN – Mask result is 0000h
•
MM – Mask result is FFFFh
Table 128. xor 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
0
1
1
0
1
0
op1
4 Specific assembler language
The PT2001 requires microcode to enable most of its functions. The main benefit is
the large flexibility in configuring the device. This microcode is defined by the software
engineer in a source file, coding the PT2001 specific instructions in assembler language.
The extension *.dfi or *.psc is generally used for the source file. Any other extension
can be used as a source code extension, with the exception of assembler's input file
extensions (*.link, *.xml, *.key) or output file extensions. (*.cip, *.hex, *.bin, *.asm, *.log,
*.reg, *.cip.bin, *.cip.hex).
The assembler language coding rules are defined in the following sections.
4.1 Writing an instruction
Instructions allow the software designer to define the behavior that is executed
independently by each microcore.
The allowed instructions and parameters are only the ones defined in the default
instructions library (syntax.xml) or the custom syntax files. All the instructions must
be followed by the mandatory parameters. All the instructions must terminate with the
character ';'. The instruction syntax is as follows:
InstructionName
Parameter1NameOrValue
Parameter2NameOrValue
...;
The instruction and parameter descriptions are provided in
Section 3 "Instruction set and
. The instructions and the associated parameters are case sensitive. They can
only be placed:
•
At the beginning of the line
•
Or after the end-of-comment field character '*'
•
Or after a valid Label