Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
26 Applied Instructions (Character String Control)
26.10 $MOV / Character String Transfer
651
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 ($MOV/$MOVP)
The character string data stored in the device specified by and later is transferred to the device specified
by and later.
From the device number specified by to a device after that which stores "00H" in its high-order or low-
order byte are transferred at one time.
Even if the device range storing the character string data to be transferred overlaps the device range storing
the transferred character string data, transfer is executed.
For example, when a character string stored in D10 to D13 is transferred to D11 to D14, the transfer is
executed as shown below.
Cautions
1) When "00H" is stored in the low-order byte of the device specified by " + n", "00H" is stored to both
the high-order byte and low-order byte of the device specified by " + n".
2) The Character string transfer instruction is not available in ST.
Head device storing transferred character string
Command
input
Directly specified character string (up to 32 characters)
or head device storing character string which is handled
as the transfer source
$MOV
EN ENO
d
s
+1
+2
2nd character
4th character
6th character
1st character
3rd character
5th character
00H "n"th character
+2
+1
2nd character
4th character
6th character
1st character
3rd character
5th character
00H "n"th character
"00H" indicates the end of character string.
+0 +0
b15 b8 b7 b0
b15 b8 b7 b0
ds
D11
Command
input
D10
$MOV
EN ENO
d
s
31H(1)
b15 b8 b7 b0
D10
32H(2)
D11
D12
D13
D14
34H(4)
36H(6)
31H(1)
33H(3)
35H(5)
D10
32H(2)
D11
D12
D13
D14
34H(4)
36H(6)
33H(3)
35H(5)
32H(2) 31H(1)
It is same as the
character string
before transfer.
...
b15 b8 b7 b0
00H00H
00H
Command
input
Directly specified character string (up to 32 characters)
or head device storing character string which is handled
as the transfer source
$MOV
EN ENO
d
s
Head device storing transferred character string
42H(B)
44H(D)
45H(E)
41H(A)
43H(C)
00H
+1
+2 +2
+1
The high-order byte
is not transferred.
42H(B)
44H(D)
00H
41H(A)
43H(C)
00H
"00H" is automatically stored
in the high-order byte.
ds
+0+0
b15 b8 b7 b0
b15 b8 b7 b0