參數(shù)資料
型號: NSB8
廠商: Electronic Theatre Controls, Inc.
英文描述: BASIC interpreter for Z80 family
中文描述: Z80的BASIC解釋為家庭
文件頁數(shù): 103/158頁
文件大?。?/td> 752K
代理商: NSB8
ITALIAN TECHNOLOGY
grifo
Page 91
NSB8 Rel. 5.10
Example #2 will repeat {BODY} five times, with successive values of J being 1, 3, 5, 7, and 9. J is
increased by 2 after each iteration. In example #3, {BODY} is also repeated 5 times, but the value
of K(3) will decrease by 1 for each iteration.
If the STEP clause is not used in a FOR, then the step value is always assumed to be 1.
Note that, when the step value is positive, the initial value must be less than or equal to the limit
value. When the step value is negative, the initial value must be greater than or equal to the limit. If
these rules are not followed, {BODY} will never be executed, as in the next example:
Example #4
10 FOR Q=5 TO 1
20
PRINT “THIS LINE WILL NEVER BE EXECUTED”
99 NEXT
100 PRINT “PAST THE LOOP”
Running the above program yields only the message
PAST THE LOOP
on your terminal. In this case, line 20 is the body, but even before it can be executed, BASIC sees
that the value of Q is greater than 1, and that, with an implied step of 1, Q will never acquire the limit
value of 1, so it does not execute the body at all, and jumps down to line 100 to continue execution.
The initial, limit, and step value expressions in a FOR statement need not be integer in nature. Thus,
it is possible to have a loop such as
Example #5
10 FOR I=.1 TO 10.5 STEP .1
{BODY}
99 NEXT
100 REM Above loop will repeat 105 times.
Because I is a regular BASIC variable, its value may be compared with others or changed outright
during repetition, using the IF and LET statements, respectively. Changing the value of the control
variable, however, should be done with great care, and is an advanced technique not recommended
for the beginning programmer. It is not possible to change the initial, limit, or step values of the loop
during iteration. They are permanently set for the given loop when its FOR statement is first executed
(it is suggested that the control variable not be used in the limit or step expressions).
FOR LOOP NESTING
FOR loops may be executed while other FOR loops are already in progress. This is caled nesting of
FOR loops.
Example #6
10 FOR I=0 TO 9
20 FOR J=0 TO 9
30 PRINT I, J
40 NEXT
50 NEXT
相關(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