Mitsubishi Electronics E60 Video Game Controller User Manual


 
MOV
- 119 -
Program example
(1) Program to store input X0 to B data in D8.
No. of
steps
Com-
mand
Device
10 LD M0
11 MOV K3X0 D8
K3X0MOV D8
M0
(ON)
10
14
(2) Program to store 155 in D8 as binary value when X8 turns ON.
No. of
steps
Com-
mand
Device
10 LD X8
11 MOV K155 D8
K155
MOV
D8
X8
10
00000000100 011 11
D8
14
(3) Program to store 155 in D93 as BCD value in when XB turns ON.
No. of
steps
Com-
mand
Device
10 LD XB
11 MOV H155 D93
H155
MOV
D93
XB
10
000 00001010 110 01
D93
14
(4) Program to store 155 in D894 as hexadecimal (HEX) when X13 turns ON.
No. of
steps
Com-
mand
Device
10 LD X13
11 MOV H9B D894
H9B
MOV
D894
X13
10
00000000100 011 11
D894
14