3. Instructions
562
CS/CJ/NSJ Series Instructions Reference Manual (W474)
z FIFO
When CIO 0.00 is ON in the following example, FIFO(633) reads the content of D4 (TB+4 for the stack
beginning at D0) and writes that data to D300.
After the data is written to D300, the stack pointer is decremented by one and the remaining data is
shifted down. (The content of D5 is shifted to D4 and the content of D6 is shifted to D5.)
TB:
D: D300
TB
Read by FIFO(633).
Stack pointer
PC memory address
of last word in stack
Last word
in stack
Stack
pointer
D: D300
–1
Last word
in stack
Stack
pointer
PC memory address
of last word in stack
Stack pointer
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
0.00
D0
D300