![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268114.webp)
75
Instruction Functions
Section 2-2
2-2-15 Table Data Processing Instructions
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
SET STACK
SSET
@SSET
630
Output
Required
704
PUSH ONTO
STACK
PUSH
@PUSH
632
Output
Required
707
LAST IN FIRST
OUT
LIFO
@LIFO
634
Output
Required
713
FIRST IN FIRST
OUT
FIFO
@FIFO
633
Output
Required
710
SSET(630)
TB
N
TB
: 1st stack
address
N
: Number of
words
TB
TB+1
TB+2
TB+3
m+(N
−
1)
m+(N
−
1)
Defines a stack of the specified length beginning at the specified word
and initializes the words in the data region to all zeroes.
Internal I/O
memory address
N words
in stack
Stack
pointer
Last word
in stack
PUSH(632)
TB
S
TB
: 1st stack
address
S
: Source word
TB
TB+1
TB+2
TB+3
TB
TB+1
TB+2
TB+3
PUSH(632)
Writes one word of data to the specified stack.
Internal I/O
memory address
Internal I/O
memory address
LIFO(634)
TB
D
TB
: 1st stack
address
D
: Destination
word
TB
TB+1
TB+2
TB+3
TB
TB+1
TB+2
TB+3
−
1
m
−
1
m
−
1
m
Last-in first-out
The pointer is
decremented.
Stack
pointer
Newest
data
Internal I/O
memory address
Stack
pointer
Reads the last word of data written to the specified stack (the newest
data in the stack).
Internal I/O
memory address
A is left
un-
changed.
FIFO(633)
TB
D
TB
: 1st stack
address
D
: Destination
word
m
−
1
TB
TB+1
TB+2
TB+3
TB
TB+1
TB+2
TB+3
m
−
1
First-in first-out
Reads the first word of data written to the specified stack (the oldest
data in the stack).
Internal I/O
memory address
Internal I/O
memory address
Oldest
data
Stack
pointer
Stack
pointer
Содержание 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...