Mitsubishi Electronics E60 Video Game Controller User Manual


 
DRCL
- 165 -
Program example
Program to rotate the D10, 11 details 3 bits to the left when M0 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD XA
11 DMOV
H80000000
D10
15 LD M0
16 DRCL D10 K3
H80000000DMOV D10
XA
10
D10
DRCL
K3
M0
15
(Pulse coding)
19
Before execution
After execution (n=3)
Transition
Carry flag
(SM12)
1
B15B31B30B29 B16 B2 B1 B0
D10
D11
B28B27 B5 B4 B3B14B17B18
0
0
To carry flag
0
0
0
000 00 00000 000*10
0000*1
00000*
0000000 000
00000
00 000
10000
0000
0000
(n=2)
(n=1)
To carry flag
To carry flag
*
*The carry flag is set to 1 or 0 before execution.
Left rotation of data using DRCL command