![Omron CJ1G-CPUxx Instructions Manual Download Page 94](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491094.webp)
73
Instruction Functions
Section 2-2
STACK SIZE
READ (CS1-H,
CJ1-H, CJ1M, or
CS1D only)
SNUM
@SNUM
638
Counts the amount of stack data (number of words) in the specified stack. Output
required
STACK DATA
READ (CS1-H,
CJ1-H, CJ1M, or
CS1D only)
SREAD
@SREAD
639
Reads the data from the specified data element in the stack. The offset
value indicates the location of the desired data element (how many data
elements before the current pointer position).
Output
required
STACK DATA
OVERWRITE
(CS1-H, CJ1-H,
CJ1M, or CS1D
only)
SWRIT
@SWRIT
640
Writes the source data to the specified data element in the stack (overwrit-
ing the existing data). The offset value indicates the location of the desired
data element (how many data elements before the current pointer posi-
tion).
Output
required
STACK DATA
INSERT (CS1-H,
CJ1-H, CJ1M, or
CS1D only)
SINS
@SINS
641
Inserts the source data at the specified location in the stack and shifts the
rest of the data in the stack downward. The offset value indicates the loca-
tion of the insertion point (how many data elements before the current
pointer position).
Output
required
STACK DATA
DELETE (CS1-H,
CJ1-H, CJ1M, or
CS1D only)
SDEL
@SDEL
642
Deletes the data element at the specified location in the stack and shifts
the rest of the data in the stack upward. The offset value indicates the
location of the deletion point (how many data elements before the current
pointer position).
Output
required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
TB: First stack
address
D: Destination
word
SNUM(638)
TB
D
TB: First stack
address
C: Offset value
D: Destination
word
SREAD(639)
TB
C
D
TB: First stack
address
C: Offset value
S: Source data
SWRIT(640)
TB
C
S
TB: First stack
address
C: Offset value
S: Source data
SINS(641)
TB
C
S
TB: First stack
address
C: Offset value
D: Destination
word
SDEL(642)
TB
C
D
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 ...