Mitsubishi Electronics E60 Video Game Controller User Manual


 
LDBIT, ANDBIT, ORBIT
- 187 -
Program example
(1) Program to test bit 3 of D10.
Coding
No. of
steps
Com-
mand
Device
10 LD<= D10 K3
12 OUT Y33
10
< =
K3
D10
Y33
(LDBIT)
13
(2) Program to test bit 15 of D10.
Coding
No. of
steps
Com-
mand
Device
10 LD M3
11 AND<= D10 K15
10
< =
K15D10
Y33
M3
(ANDBIT)
13 OUT Y33
14
(3) Program to test bit 15 of D10.
Coding
No. of
steps
Com-
mand
Device
10 LD M3
11 LD<= D10 HF
13 OR M8
14 ANB
15 OUT Y33
10
< =
HFD10
Y33
M3
M8
(LDBIT)
16
(4) Program to test bit 10 of D10.
Coding
No. of
steps
Com-
mand
Device
10 LD M3
11 AND M8
12 OR<= D10 K10
14 OUT Y33
10
< = K10D10
Y33
M3
M8
(ORBIT)
15