Toshiba 6F3B0250 Video Gaming Accessories User Manual


 
6F3B0250
Basic Hardware and Function
181
7. Instructions
FUN 064 TEST Bit test
Expression
Input
-
[
A
TEST
B
]
-
Output
Function
When the input is ON, this instruction finds logical AND of
A
and
B
. Then if the result is not 0, sets the
output to ON.
Execution condition
Input Operation Output
OFF No execution OFF
ON Execution When the result is not 0 ON
When the result is 0 OFF
Operand
Name Device Re
g
ister Constant Index
X Y R S T. C. XW YW RW SW T C D I J K
A
Source
ÖÖÖÖÖÖÖÖÖÖ Ö Ö
B
Test data
ÖÖÖÖÖÖÖÖÖÖ Ö Ö
Example
Logical AND operation is executed for the data of RW07 and the constant data H0FFF, and if the
result is not 0, R00A is turned ON. (R00A is turned ON when any device from R070 to R07B is
ON.)
If the data of RW07 is H4008, R00A is turned ON.
FEDCBA9876543210
RW07 0100000000001000
4008
AND
Constant 0000111111111111
0FFF
Result is not 0
Result 0000000000001000
R00A comes ON
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net