Mitsubishi Electronics E60 Video Game Controller User Manual


 
DOR
- 143 -
Program example
(1) Program that executes logical OR of the X0 to 1F 32-bit data and the F0FF hexadecimal when
XB turns ON, and stores the results in R66, 67.
HF0FFDMOV R66
XB
10
K8X0
R66
DOR
Store the F0FF hexadecimal in R66, 67.
Logical OR the X0 to 1F 32-bit data and R66, 67
32-bit data, and store the results in R66, 67.
Coding
No. of
steps
Com-
mand
Device
10 LD XB
11 DMOV
HFOFF
R66
14 DOR K8X0 R66
18
(2) Program that executes logical OR of the M64 to 87 24-bit data and X20 to 37 24-bit data when
M8 turns ON, and stores the results in D23, 24.
K6X20DMOV D23
M8
10
K6M64
D23
DOR
Store the X20 to 37 24-bit data in D23, 24.
Logical OR the M64 to 87 24-bit data and
D23, 24 data, and store the results in D23, 24.
Coding
No. of
steps
Com-
mand
Device
10 LD M8
11 DMOV K6X20 D23
14 DOR
K6M64
D23
18