135
Appendix G
BASIC Commands, Statements, and
Functions
The following tables list the BASIC commands, statements, and functions alphabetically.
The characters in the Command, Statement, and, Function columns denote the following:
Gen: General statement
Char: Character String function
Dev: Device Control statement
Spec: Special function
Arith: Arithmetic Operation function
Comm: Command
Item
Description
Command
Statement
Function
Page
ABS
Returns the absolute value of a number
Arith
ACOS
Returns the arc cosine of a number
Arith
ASC
Returns the value of the first character in a
character string.
Char
ASIN
Returns the arc sine of a number
Arith
ATN
Returns the arc tangent of a number
Arith
AUTO
Automatically generates line numbers
Comm
CDBL
Rounds off a numeric value to make an integer
Arith
CHR$
Returns the character corresponding to the ASCII
code given by the argument
Char
CINT
Converts a numeric value into a double-precision
real number
Arith
CLEAR
Initializes numeric and character variables
Gen
CLOSE
Closes a port
Dev
CLS
Clears the screen
Dev
COM ON/
OFF/STOP
Enables, disables, or stops an interrupt from a
communication port
Gen
CONT
Resumes execution of a program that has been
stopped
Comm
COS
Returns the cosine of a number
Arith
CSNG
Converts a numeric value into a single-precision
real number
Arith
DATA
Defines numeric and character variables for
subsequent READ statements
Gen
DATE$
Sets or assigns the date
Spec
DAY
Sets or assigns the day (in numbers)
Spec
DEF FN
Defines and names a user-generated function
Gen
DEF
INT/SNG/DBL/
STR
Declares the variable type as integer,
single-precision, double-precision or string
Gen
DEF USR
Specifies the start address of the assembly
language subroutine called from memory by USR
Gen
DEL
Deletes a line or portion of a line in the program
Comm
DIM
Specifies the maximum values for array variables
and assigns the area
Gen
EDIT
Edits one line of the program
Comm
END
Terminates the execution of a program and closes
all files
Gen
EOF
Verifies that the port buffer of the specified port is
empty
Spec
Содержание C500-ASC04
Страница 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Страница 5: ...iv ...
Страница 7: ...vi ...