AH500 Programming Manual 
6-112 
 
6.4.2  Explanation of Data Transfer Instructions 
API 
Instruction code  Operand 
Function 
0300  D
MOV  P 
S, D 
Transferring the data 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#  “$”  F 
16-bit instruction (5 steps) 
32-bit instruction (5 steps) 
  AH500  AH500  AH500 
Symbol: 
 
S 
: 
Data source 
Word/Double word 
D 
: 
Data destination 
Word/Double word 
Explanation: 
1.  When the instruction is executed, the data in S is transferred to D. When the instruction is not 
executed, the data in D is unchanged. 
2.  Only the data in S which is used in the 32-bit instruction can be the floating-point number. 
3.  Only the 32-bit instructions can use the 32-bit counter. 
Example: 
1.  To transfer the 16-bit data, users should use the instruction MOV. 
  When X0.0 is OFF, the data in D0 is unchanged. When X0.0 is ON, the value 10 is 
transferred to the data register D0. 
  When X0.1 is OFF, the data in D10 is unchanged. When X0.1 is ON, the current value of 
T0 is transferred to the data register D10. 
2.  To transfer the 32-bit data, users should use the instruction DMOV. 
  When X0.0 is OFF, the data in (D31, D30) and (D41, D40) is unchanged. When X0.2 is 
ON, the current value in (D21, D20) is transferred to (D31, D30), and the current value of 
HC0 is transferred to (D41, D40). 
3.  To transfer the floating-point number, users should use the instruction DMOV. 
  When X0.3 is OFF, the data in (D51, D50) is unchanged. When X0.3 is ON, the 
floating-point number 3.450 is converted into the binary floating-point number, and the 
conversion result is transferred to (D51, D50).