參數(shù)資料
型號: NSB8
廠商: Electronic Theatre Controls, Inc.
英文描述: BASIC interpreter for Z80 family
中文描述: Z80的BASIC解釋為家庭
文件頁數(shù): 102/158頁
文件大小: 752K
代理商: NSB8
grifo
ITALIAN TECHNOLOGY
Page 90
NSB8 Rel. 5.10
THE FOR NEXT LOOP
BODY OF THE LOOP
BASIC includes facilities for the FOR NEXT loop (namely the statements FOR and NEXT) in order
to provide for repetition of any arbitrary block of BASIC statements. The block to be repeated (also
called the BODY of the loop), symbolized here as {BODY}, is sandwiched between a FOR statement
and a NEXT statement.
Example #1
10 FOR I=1 TO 10
{BODY}
99 NEXT
100 REM More program statements.
In example #1, the statements represented by {BODY} will be repeated 10 times unless specific
action is taken within the body to terminate repetition prior to the completion of the 10
th
cycle (for
example, see the sections on EXIT).
THE CONTROL VARIABLE AND THE LIMIT VALUE
In line 10, I, a numeric variable, is called the control variable of the loop. By using I as a counter,
BASIC will be able to know when to quit repeating {BODY}. In the example, the first time {BODY}
is executed, I will be set to 1 (the initial value, as specified in the FOR statement). After that,
whenever execution proceeds through {BODY} and reaches the NEXT statement in line 99, I will
be increased by 1. At such times, BASIC will compare I against 10 (the limit value set in line 10). If
I is less than or equal to the limit value, execution returns once more to the start of {BODY}, and the
cycle begins again. On the other hand, if I is greater than the limit value, then repetition ceases, and
execution continues beyond the NEXT statement (in the case of example #1, at line 100).
THE OPTIONAL STEP VALUE
In the example #1, I was increased by 1 after every repetition of the body. It is often useful for the
value of the control variable to be increased by a different amount than 1 each time, or perhaps it
should even be decreased! This is accomplished by adding a STEP clause to the FOR statement.
Example #2
10 FOR J=1 TO 10 STEP 2
{BODY}
99 NEXT
Example #3
10 FOR K(3)=5 TO 1 STEP -1
{BODY}
99 NEXT
相關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(雙偏置電阻晶體管)
相關代理商/技術參數(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 正向電壓下降: 恢復時間:1.2 us 正向連續(xù)電流:2 A 最大浪涌電流:35 A 反向電流 IR:5 uA 安裝風格: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 正向電壓下降: 恢復時間:1.2 us 正向連續(xù)電流:2 A 最大浪涌電流:35 A 反向電流 IR:5 uA 安裝風格:SMD/SMT 封裝 / 箱體:DO-221AC 封裝:Reel
NSB8AT/81 功能描述:二極管 - 通用,功率,開關 50 Volt 8.0 Amp 125 Amp IFSM RoHS:否 制造商:STMicroelectronics 產(chǎn)品:Switching Diodes 峰值反向電壓:600 V 正向連續(xù)電流:200 A 最大浪涌電流:800 A 配置: 恢復時間:2000 ns 正向電壓下降:1.25 V 最大反向漏泄電流:300 uA 最大功率耗散: 工作溫度范圍: 安裝風格: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 正向電壓下降: 恢復時間:1.2 us 正向連續(xù)電流:2 A 最大浪涌電流:35 A 反向電流 IR:5 uA 安裝風格:SMD/SMT 封裝 / 箱體:DO-221AC 封裝:Reel