Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
25 Applied Instructions (Block Data Operation)
25.3 BKCMP=, >, <, < >, <=, >= / Block Data Compare
612
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation
(BKCMP=, BKCMP>, BKCMP<, BKCMP<>, BKCMP<=, BKCMP>=, BKCMP=P, BKCMP>P, BKCMP<P,
BKCMP<>P, BKCMP<=P, BKCMP>=P)
1) "n" 16-bit binary data starting from the device specified by are compared with "n" 16-bit binary data
starting from the device specified by , and the comparison result is stored in "n" points starting from
the device specified by .
2) A constant can be directly specified in the device specified by .
3) The table below shows the comparison result in each instruction.
4) When the comparison result is ON (1) in all of "n" points starting from the device specified by ,
M8090 (block comparison signal) turns ON.
Instruction Comparison result ON (1) condition Comparison result OFF (0) condition
BKCMP=
=
BKCMP>
>
BKCMP<
<
BKCMP<>
=
BKCMP<=
>
BKCMP>=
<
+0
+1
+2
+n-2
+n-1
"n"
points
>
+0
+1
+2
+n-2
+n-1
"n"
points
+0
Comparison result
+1
+2
+n-2
+n-1
"n"
points
K1234
K5678
K7777
K5000
K4321
K5321
K3399
K6543
K5678
K1200
OFF(0)
ON(1)
ON(1)
OFF(0)
ON(1)
*2
*2. An example of
BKCMP>.
EN ENO
d
s1
s2
n
Command
input
Comparison value or device storing comparison value
Head device storing comparison source data
Number of pieces of comparison data
Device storing comparison result
*1. BKCMP=, BKCMP>, BKCMP<, BKCMP<>, BKCMP<=, BKCMP>=, BKCMP=P, BKCMP>P,
BKCMP<P, BKCMP<>P, BKCMP<=P, and BKCMP>=P are put in.
*1
BKCMP=
ds1 s2
=
K32000
*3
+0
Comparison result
+1
+2
+n-2
+n-1
"n"
points
ON(1)
OFF(0)
OFF(0)
ON(1)
OFF(0)
d
+0
+1
+2
+n-2
+n-1
"n"
points
K32000
K4321
K1234
K32000
K5678
s2
s1
*3. An operation example of BKCMP=
instruction is shown here.