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).
Pointer to last
word in stack
-n
(n=3)
Pointer
Data in pointer position - n
(n=3 in this example.)
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).
Pointer to last
word in stack
-n
(n=3)
Pointer
Data in pointer position - n
(n=3 in this example.)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Stack
Pointer
:
A
B
C
Data region
Pointer
(Unchanged)
Last word of
data in stack
Stack
Pointer
:
A
B
Data region
C
Pointer
(Unchanged)
Last word of
data in stack
Stack
:
A
B
C
Data region
A
Reads data from pointer
position - n.
(n=3 in this example.)
Stack
Overwrites data at pointer
position - n.
(n=3 in this example.)
:
M
B
Data region
C
3. Instructions
M
543
3
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers