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
23 / 153
add
Description:
Sums the value contained in the op1 register with the value contained in op2 register and
places the result in the res register.
Operation:
(Source1) + (Source2) → (Destination); Carry → C
Assembler syntax:
add op1 op2 res;
Operands:
•
op1 – One of the registers listed in the operand
•
op2 – One of the registers listed in the operand
•
res – One of the registers listed in the operand
Condition register:
•
C – Carry over bit
•
RZ – Addition or subtraction result is zero
•
RS – Addition or subtraction result is negative
•
UU – Unsigned underflow
•
UO – Unsigned overflow
•
SU – Signed underflow
•
SO – Signed overflow
Table 30. add instruction format
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
1
0
1
0
res
0
op2
op1