Mitsubishi Electronics E60 Video Game Controller User Manual


 
DROR
- 155 -
Program example
Program to rotate the D10, 11 details 3 bits to the right when M0 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD XA
11 DMOV K1 D10
15 LD M0
16 DROR D10 K3
K1
DMOV
D10
XA
10
D10
DROR
K3
M0
15
(pulse coding)
19
After execution
(n=3)
Transition
Carry flag
(SM12)
B15B31B30B29 B16 B2 B1 B0
D10
D11
B0 when n=2
B28B27 B5 B4 B3B14B17B18
To B31
To B31
To B31
1
1
1
1
100 00 00000 000 000
0
0
000000
000000
0000000000
00000
00000
00000
0000
0000
Before execution
B0 before
execution
(n=1)
B0 when n=1
(n=2)
Right rotation of data using DROR command