
SK, Extended, Disk
Returns the byte read from port I.
I must be in
the
range
0
to 255.
INP is the complementary
function to the OUT statement, Section 2.47.
Action:
Returns a string of X characters, read from
the
terminal or from file number Y.
If the terminal
is used for input, no characters will be
echoed
and
all
control
characters are passed through
except Control-C, which is used to interrupt the
execution of the INPUT$ function.
Example 1:
5' LIST THE CONTENTS OF A SEQUENTIAL FILE IN
HEXADECIMAL
100PEN"I",1,"OATA"
20 IF EOF(1) THEN 50
30 PRINT HEX${ASC{INPUT${1,.1»):
40 GOTO
20
50 PRINT
60 END
•
100 PRINT "TYPE P TO PROCEED OR S TO STOP"
110 X$=INPUT$(1)
120 IF X$="p
lI
THEN 500
130 IF X$=
II
S" THEN 700 ELSE 100
Содержание Basic Interpreter Basic 80
Страница 1: ...5IA iC intc tit tcl c t ...
Страница 2: ......
Страница 6: ... ...
Страница 10: ......
Страница 26: ......
Страница 33: ...2 5 Intentially left blank ...
Страница 37: ...BASIC SO COMMANDS AND STATEMENTS 2 9 Intentially left blank ...
Страница 40: ...410 DEF FNAB X Y XA3 YA2 420 T FNAB I J Line 410 de ines the function function is called in line 420 ...
Страница 112: ......
Страница 136: ......
Страница 140: ......
Страница 160: ......
Страница 165: ......
Страница 166: ......
Страница 174: ......
Страница 176: ......
Страница 182: ......
Страница 184: ......
Страница 190: ......