551
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Table Data Processing Instructions
3
Table Data Processing Instructions
z SREAD(639)
Reads the data from the specified data element in the stack. The offset value indicates the location of
the desired word (the number of words before the current pointer position).
z SWRIT(640)
Writes the source data to the specified data element in the stack (overwriting the existing data). The
offset value indicates the location of the desired word (the number of words before the current pointer
position).
A
:
A
B
C
:
A
B
C
Data region
Pointer
Pointer
(Unchanged)
Last word of
data in stack
Stack
Data region
Data in pointer position - n
(n=3 in this example.)
Stack
Pointer to last
word in stack
Pointer
Reads data from pointer
position - n.
(n=3 in this example.)
-n
(n=3)
M
:
A
B
C
:
M
B
C
Stack
Data region
Pointer
Pointer
(Unchanged)
Last word of
data in stack
Stack
Data region
Pointer to last
word in stack
Data in pointer position - n
(n=3 in this example.)
Pointer
Overwrites data at pointer
position - n.
(n=3 in this example.)
-n
(n=3)