DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming
Example 2
Suppose the data in S is the string “12345” (odd number of bytes). When M0 is enabled, the data
12345 is transferred to D0–D3 as follows.
The operand S:
String ‘1’ ‘2’ ‘3’ ‘4’ ‘5’
Hexadecimal value
16#31 16#32 16#33 16#34 16#35
After the instruction is executed, the data in the operand D is as follows.
Device High byte Low byte Note
D0 16#32 16#31 ‘1’=16#31; ‘2’=16#32
D1 16#34 16#33 ‘3’=16#33; ‘4’=16#34
D2 16#00 16#35 The ending code 16#00 is in the high byte.
D3 Unchanged Unchanged