Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
11 Applied Instructions (Data Operation)
11.2 DECO / Decode
230
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation (DECO, DECOP)
One bit among the devices specified by [ to +2
n
-1] is set to ON according to the value of the device
specified by .
1) When the device specified by is a bit device (1 n 8)
n bits (1 n 8) of a device specified by is decoded to the device specified by .
- When all bits of the devices specified by are "0", the bit device specified by turns ON.
- When "n" is "8", the bit device specified by occupies maximum 2
8
= 256 bits.
2) When the device specified by is word device (1 n 4)
n bits on the low-order side of the device specified by is decoded to the device specified by .
- When all bits of the device specified by are "0", b0 of the word device specified by turns
ON.
- In the case of "n 3", all of high-order bits of the device specified by become "0" (turn OFF).
0000000000000010
n
Up to 256 bits (The number of occupied bits varies depending on the specified "n" value.)
Up to
M31
Up to
M63
Up to
M127
Up to
M255
·········
K1K2K3K4K5K6K7K8
Turns ON when all bits
of are OFF.
0 0 0 0 1 1 1 0
1
2
4
8
16
32
64
128
2
n
8 bits
b0b1b2b3b4b5b6b7
M255
M0M1M2M3M4M5M6M7M8M9
M10M11M12M13M14M15
b8b9
b10b11b12b13b14b15
when is D0
When is M0
Ignored
when "n" is "8"
d
s
s
when it is Y, M or S
(1n8)
Command input
Number of bits
Decoded data
DECO
EN
s
n
ENO
d
Resulting data
0000000000000001
K1K2K3K4
Turns ON when all bits
of are OFF.
Up to 16 bits
1 0 1 0 0 1 1 1 1
1
2
4
8
4 bits
0 001 0 1 0
b0b1b2b3b4b5b6b7b8b9b10b11b12b13b14b15
b0b1b2b3b4b5b6b7b8b9b10b11b12b13b14b15
when is D0
When is D2
Ignored
When "n" is "4"
When it is T, C, D, R, U
\G
, V, Z, K or H
(1 n 4)
Command input
Number of bits
Decoded data
DECO
EN
s
n
ENO
d
Resulting data
n
2
n
s
d
s