Appendix G
BASIC Commands, Statements, and Functions
137
Item
Page
Function
Statement
Command
Description
ON KEY GOTO
ON KEY
GOSUB
Causes branching to the specified line when the
specified key is input
Gen
ON PC GOSUB
Defines an interrupt number and its associated
subroutine branch line number
Gen
OPEN
Opens a port
Dev
PC GET
Reads data from the PC output area and assigns it
to the specified variable
Gen
PC ON/STOP
Enables or stops an interrupt invoked by the PC
Gen
PC PUT
Writes the value of a numeric expression to the PC
input data area
Gen
PC READ
Reads data from the specified PC memory area,
converts it to the specified format, and assigns it to
the specified variables
Gen
PC WRITE
Converts data to the specified format and writes it to
the specified PC memory area
Gen
PEEK
Reads the contents of a specified memory address
Spec
PGEN
Sets the program memory area to be used
Comm
PINF
Displays the program area currently being used
Comm
PNAME
Names, or deletes the name, of the program
selected
Comm
POKE
Writes data to a specified memory address
Gen
PRINT/LPRINT
Displays or prints the value of an expression
Gen
PRINT USING
LPRINT USING
Displays or prints a character string in the specified
format
Gen
RANDOM
Reseeds the random number generator
Gen
READ
Reads values from a data statement and assigns
them to variables
Gen
REM
Inserts a comment statement into the program
Gen
RENUM
Reassigns line numbers in the program
Comm
RESTORE
Specifies which DATA statement will be used by the
next READ statement
Gen
RESUME
Specifies the line where execution will resume after
error processing
Gen
RIGHT$
Returns the number of characters in a string starting
from the right
Char
RND
Returns a random number between 0 and 1
Arith
RUN
Executes the program
Comm
SAVE
Saves the program to the EEPROM or to a device
connected to a communication port
Comm
SGN
Returns the sign of an argument
Arith
SIN
Returns the sine of a number
Arith
SPACE$
Returns an empty string of the specified number of
characters
Char
STOP
Stops program execution
Gen
STR$
Converts a numeric value into a character string
Char
STRING$
Returns a character string of the specified length
Char
TAB
Outputs spaces up to the specified column position
Char
TAN
Returns the tangent of a number
Arith
TIME$
Sets or gives the time
Spec
TRON/TROFF
Specifies or cancels a program trace
Comm
USR
Calls an assembly language function routine defined
by a DEF USR statement
Spec
Summary of Contents for C500-ASC04
Page 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Page 5: ...iv ...
Page 7: ...vi ...