60
EOF Function
Purpose:
To check whether the specified port buffer is empty
Format:
EOF (<port#>)
Example:
IF EOF (2) THEN CLOSE#1 ELSE GOTO 100
Remarks:
This function returns true (-1) if the specified port is empty. If not, it returns false
(0). Note that the port specified by <port#> must already be open and in the input
mode.
ERR and ERL Variables
Purpose:
To return the error code and the location (line number) of the
error
Format:
x = ERL
y = ERR
Remarks:
When an error occurs, the error code is assigned to the variable ERR and the
statement number is assigned to ERL.
If the statement that caused the error was executed in direct mode, statement
number 65535 is assigned to ERL.
ERL and ERR can be used in error handling routines to control the execution
flow of the program.
FRE Function
Purpose:
To return the amount of unused memory
Format:
FRE(0)
FRE(<x$>)
Example:
PRINT FRE (0)
Remarks:
If the argument is numeric, the number of unused bytes in the program area is
given.
If the argument is a character expression, the number of unused bytes in the
character variable area is given.
When this instruction is executed, the unnecessary parameter area will be filled.
To avoid long interruption times, execute this instruction intermittently so that
each interruption will be a short one.
INKEY$ Function
Purpose:
To return the character code of the key being pressed
Format:
INKEY$ [#<port>]
Example:
A$ = INKEY$
Remarks:
A null string is returned if no key is being pressed. Any key input other than
CTRL+X is valid. Port 1 is the default port.
INPUT$ Function
Purpose:
To Read a string of characters from the keyboard or from a pe-
ripheral device
Format:
INPUT$ (<num>[,#<port>])
<num> is the number of characters to be input. <num> must be
from 1 to 255.
Commands, Statements, and Functions
Содержание C500-ASC04
Страница 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Страница 5: ...iv ...
Страница 7: ...vi ...