3. Instruction Set
Example 5
When S overlaps D, and the device number of S is less than the device number of D, the transfer
of the data to D starts from the ending code 16#00. The value in S will not be overwritten.
The operand S:
Device High byte Low byte Note
D0 16#31 16#30 ‘1’=16#31; ‘0’=16#30
D1 16#33 16#32 ‘3’=16#33; ‘2’=16#32
D2 16#35 16#34 ‘5’=16#35; ‘4’=16#34
D3 16#30 16#00 ‘0’=16#30; 16#00 is the ending code.
D4 16#38 16#37 ‘8’=16#38; ‘7’=16#37
After the instruction is executed, the data in D is as follows.
Device High byte Low byte Note
D1 16#31 16#30 ‘1’=16#31; ‘0’=16#30
D2 16#33 16#32 ‘3’=16#33; ‘2’=16#32
D3 16#35 16#34 ‘5’=16#35; ‘4’=16#34
D4 16#00 16#00
The ending code 16#00 is in the low byte.
16#00 is automatically added in the high byte.
D5 Unchanged
Unchanged