Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
33 Applied Instructions (Extension File Register Control)
33.2 SAVER / Save to ER
749
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
31
Applied Instructions
(Data Transfer 3)
32
Applied Instructions
(High Speed
Processing 2)
33
Applied Instructions
(Extension File
Register Control)
34
Applied Instructions
(FX
3U
-CF-ADP)
35
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
B
Applied
Instruction List
Function and operation explanation
1. 16-bit operation (SAVER)
The contents (current values) of 2,048 extension registers (R) starting from the device specified by are
written (transferred) to extension file registers (ER) inside a memory cassette (flash memory) having the
same device numbers in "2048/n" operation cycles ("2048/n +1" cycles if there is the remainder).
When the instruction is being executed, the number of already written points is stored in .
1) Extension file registers are written in units of sector (2048 points).
The table below shows the head device number in each sector.
2) If "n" is set to "0", it is handled as "2048" when the instruction is executed.
3) When writing (transfer) of 2048 points is finished, execution of the instruction is completed and the
instruction execution complete flag M8029 turns ON.
4) The number of already written points is stored in the device specified by .
2. Related devices
Sector
number
Head device number Written device range
Sector
number
Head device number Written device range
Sector 0 R0 ER0 to ER2047 Sector 8 R16384 ER16384 to ER18431
Sector 1 R2048 ER2048 to ER4095 Sector 9 R18432 ER18432 to ER20479
Sector 2 R4096 ER4096 to ER6143 Sector 10 R20480 ER20480 to ER22527
Sector 3 R6144 ER6144 to ER8191 Sector 11 R22528 ER22528 to ER24575
Sector 4 R8192 ER8192 to ER10239 Sector 12 R24576 ER24576 to ER26623
Sector 5 R10240 ER10240 to ER12287 Sector 13 R26624 ER26624 to ER28671
Sector 6 R12288 ER12288 to ER14335 Sector 14 R28672 ER28672 to ER30719
Sector 7 R14336 ER14336 to ER16383 Sector 15 R30720 ER30720 to ER32767
Device number Name Description
M8029
Instruction execution
complete
When execution of the target instruction is completed, the instruction execution complete
flag M8028 turns ON.
In a program, however, there may be two or more instructions which can use the flag
M8029. To avoid confusion, be sure to use the NO (normally open) contact of this flag
immediately under SAVER instruction so that this flag works only for SAVER instruction
Command input
M
M8029
Operation execution complete flag
SAVER instruction operation complete flag
SAVER
EN
s
n
ENO
d
Device of extension register to
which data is to be transferred
Number of points written
in one operation cycle
Device storing the number
of already written points
E
E+1
E+2
E +2047
+1
+2
+2047
Write (transfer)
*1
Extension file registers (ER)
inside memory cassette
Extension registers (R)
inside built-in RAM
*1. "n" points are written (transferred) in each operation cycle.
(Number of points specified by )
n
s
s
s
s s
s
s
s