![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268117.webp)
78
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
743
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
745
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
748
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
751
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
754
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
SNUM(638)
TB
D
TB
: First stack
address
D
: Destination
word
SREAD(639)
TB
C
D
TB
: First stack
address
C
: Offset value
D
: Destination
word
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
S
: Source data
SDEL(642)
TB
C
D
TB
: First stack
address
C
: Offset value
D
: Destination
word
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...