參數(shù)資料
型號: NSB8
廠商: Electronic Theatre Controls, Inc.
英文描述: BASIC interpreter for Z80 family
中文描述: Z80的BASIC解釋為家庭
文件頁數(shù): 79/158頁
文件大?。?/td> 752K
代理商: NSB8
ITALIAN TECHNOLOGY
grifo
Page 67
NSB8 Rel. 5.10
PASSING VALUES TO USER FUNCTIONS
A DEF statement must includen a list of string and/or numeric variable names, called PARAMETERS
to the function. This parameter list is enclosed in parentheses following the function name. For
example, in the following DEF statement, X$, Y, and Z are parameters to function FNW:
50 DEF FNW(X$,Y,Z)=LEN(X$)+Y+Z
A function call must include a list of string and/or numeric expressions. This expression list is
enclosed in parentheses following the function name. When a function is called, the values of the
expressions in the expression list are assigned, one by one, left to right, to the corresponding variables
in the parameter list of the called function. After this assignment process, the variables named in the
parameter list will contain the corresponding values from the expression list and can be used in the
body of the function in computing the function value.
The number of expressions in the function call’s expression list must match the type of the
corresponding parameter in the parameter list. If the types or number of parameters in the function
definition do not match the types or number of expressions in the function call, an ARGUMENT
MISMATCH ERROR or a SYNTAX ERROR will occur.
NUMERIC PARAMETERS
At function call time, before each numeric variable in the parameter list is assigned its value from
the expression list, the value of the variable is saved by BASIC. When function execution is
completed, the saved values of the numeric variables from the parameter list are restored as the values
of those variables. Thus, the values of the numeric variables from the parameter list after the function
call is completed remain the same as before the function was called. This means that the numeric
parameters of a function may be thought of as separate variables when used during function
execution.
10 DEF FNX(B)=B*3
20 B=2 \ PRINT B
30 PRINT FNX(3)
40 PRINT B
B prints out as 2 before as well as after FNX is called, even though B=3 during the evaluation of FNX
because of the B value of 3 supplied in parentheses in the function call.
STRING PARAMETERS
Unlike those of numeric parameters, the values of string parameters of a function are not saved at
function call time. Thus, after function execution is completed, those variables will retain the most
recent values they acquired during function execution. Note that the assignment of string expressions
to string parameters at function call time follows the same rules as assignment to string variables in
LET statements. In particular, if the string parameter has not been dimensioned as a string variable
before the function call, it will automatically be dimensioned to maximum length of 10.
To contrast the treatment of string and numeric parameters at function call time, try this program:
相關(guān)PDF資料
PDF描述
NSB9435T1 High Current Bias Resistor Transistors(高強度電流偏置電阻晶體管)
NSBA114EDXV6T1 Dual Bias Resistor Transistors(雙偏置電阻晶體管)
NSBA114YDXV6T1 Dual Bias Resistor Transistors(雙偏置電阻晶體管)
NSBC143TPDXV6T1 Dual Bias Resistor Transistors(雙偏置電阻晶體管)
NSBC144EPDXV6T1 Dual Bias Resistor Transistors(雙偏置電阻晶體管)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
NSB8AT 制造商:VISHAY 制造商全稱:Vishay Siliconix 功能描述:Glass Passivated General Purpose Plastic Rectifier
NSB8AT/31 功能描述:整流器 50 Volt 8.0 Amp 125 Amp IFSM RoHS:否 制造商:Vishay Semiconductors 產(chǎn)品:Standard Recovery Rectifiers 配置: 反向電壓:100 V 正向電壓下降: 恢復(fù)時間:1.2 us 正向連續(xù)電流:2 A 最大浪涌電流:35 A 反向電流 IR:5 uA 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:DO-221AC 封裝:Reel
NSB8AT/45 功能描述:整流器 50 Volt 8.0 Amp 125 Amp IFSM RoHS:否 制造商:Vishay Semiconductors 產(chǎn)品:Standard Recovery Rectifiers 配置: 反向電壓:100 V 正向電壓下降: 恢復(fù)時間:1.2 us 正向連續(xù)電流:2 A 最大浪涌電流:35 A 反向電流 IR:5 uA 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:DO-221AC 封裝:Reel
NSB8AT/81 功能描述:二極管 - 通用,功率,開關(guān) 50 Volt 8.0 Amp 125 Amp IFSM RoHS:否 制造商:STMicroelectronics 產(chǎn)品:Switching Diodes 峰值反向電壓:600 V 正向連續(xù)電流:200 A 最大浪涌電流:800 A 配置: 恢復(fù)時間:2000 ns 正向電壓下降:1.25 V 最大反向漏泄電流:300 uA 最大功率耗散: 工作溫度范圍: 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:ISOTOP 封裝:Tube
NSB8AT-E3/31 功能描述:整流器 50 Volt 8.0 Amp 125 Amp IFSM RoHS:否 制造商:Vishay Semiconductors 產(chǎn)品:Standard Recovery Rectifiers 配置: 反向電壓:100 V 正向電壓下降: 恢復(fù)時間:1.2 us 正向連續(xù)電流:2 A 最大浪涌電流:35 A 反向電流 IR:5 uA 安裝風(fēng)格:SMD/SMT 封裝 / 箱體:DO-221AC 封裝:Reel