![Omron CJ1G-CPUxx Instructions Manual Download Page 641](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491641.webp)
620
Table Data Processing Instructions
Section 3-17
LIFO(634)
Reads the last (most recent) word of data that was stored in the stack. Decre-
ments the pointer by one and reads the data at this address (the most recent
data stored in the stack). The read data will not be cleared.
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 cur-
rent pointer position).
Stack
Pointer
Stack
Pointer
Data region
Data region
A is the last word
stored in the stack.
Decrements the pointer by one
and reads content of A.
A
B
A
B
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)
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...