Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
27 Applied Instructions (Data Operation 3)
27.3 POP / Shift Last Data Read [FILO Control]
661
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21
Applied Instructions
(Real Time
Clock Control)
22
Applied Instructions
(External Device)
23
Applied Instructions
(Extension
Function)
24
Applied Instructions
(Others)
25
Applied Instructions
(Block Data
Operation)
26
Applied Instructions
(Character
String Control)
27
Applied Instructions
(Data Operation 3)
28
Applied Instructions
(Data Comparison)
29
Applied Instructions
(Data Table
Operation)
30
Applied Instructions
(External Device
Communication)
Function and operation explanation
1. 16-bit operation (POP/POPP)
Data for FILO control
1) Every time the instruction is executed for the word devices specified by " to + n-1", a device
" + Pointer data" is read to the device specified by . (The last data entry written by the shift
write (SFWR) instruction for first-in first-out control is read to the device specified by .) Specify "n" in
the range from "2" to "512".
2) Subtract "1" from the value of the pointer data of the device specified by .
Related device
for the zero flag use method, refer to Section 1.3.4.
Description
Pointer data (amount of data stored)
+1
Data area
(First-in data written by shift write (SFWR) instruction)
+2
+3
...
+n-3
+n-2
+n-1
Device Name Description
M8020 Zero flag Turns ON when the instruction is executed while the pointer is "0".
POP
EN
s
ENO
d
n
Head device storing the first-in data
Command
input
Number of pieces of data stored
Device storing last-out data
Data area
Pointer
+n-2+n-1 +6 +5 +3 +2 +1
No changes in the data area
Pointer
+n-2+n-1 +6 +5 +3 +2 +1
+4
In the case of K4
K4 K3
+4
dsssssssss
sssssssss