Toshiba 6F3B0250 Video Gaming Accessories User Manual


 
6F3B0250
Basic Hardware and Function
247
7. Instructions
FUN 165 FG Function generator
Expression
Input
-
[
A
FG (
n
)
B
®
C
]
-
Output
Function
When the input is ON, this instruction finds the function value
f(x)
for
A
as
x
, and stores it in
C
. The
function
f(x)
is defined by the parameters stored in 2
´
n
registers starting with
B
.
Execution condition
Input Operation Output
OFF No execution OFF
ON Execution ON
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
Input value
x
ÖÖÖÖÖÖÖÖÖÖ Ö
n
Parameter size 1 - 32
B
Start of
parameters
ÖÖÖÖÖÖÖ
C
Function value
f
(x)
ÖÖÖÖÖÖÖÖÖ
Example
When R010 is ON, the FG instruction finds the function value
f(x)
for
x
= XW004, and stores the
result in D0100.
The function
f(x)
is defined by 2
´
4 = 8 parameters stored in D0600 to D0607. In this example,
these parameters are set at the first scan.
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net