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
126 / 153
store
Description:
Copies the content of the op1 source register in a Data RAM line defined by the 6-bit
Data RAM address Dram.
The operand Dram can be identified with a univocal label. The compiler automatically
substitutes the 'define' label (if used) with the suitable Data RAM address.
The Data RAM address is accessed according to the Boolean operand Ofs using the:
Immediate addressing mode (IM).
Indexed addressing mode (XM). In that case, the address base is added to the address
Dram. The address base is set using the stab instructions.
Assembler syntax:
store op1 Dram Ofs;
Operands:
•
op1 – One of the registers listed in the operand
•
Dram – Operand defines the 6-bit DRAM address
•
Ofs – Operands sets data RAM addressing mode
Operand label
Operand description
_ofs
Data RAM immediate addressing mode (IM)
ofs
Data RAM indexed addressing mode (XM)
Table 112. store instruction format
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
0
Ofs
op1
Dram
0
1
Source code example: