The following pages contain an alphabetic listing of the BASIC commands that you can use on the device.
For simplicity, the following conventions have been adopted in compiling this dictionary:
| expression | Indicates a numeric value, numerical variable or a formula including numeric values and numerical variables. |
|---|---|
| variable | Indicates a numerical variable or string variable including array variables. |
| "string" | Indicates a character string enclosed in quotation marks. |
| string variable | Indicates a string variable or string array variable. |
| Line number | Indicates a line number (10-30000) |
| *label | Indicates *label. |
| d: | Indicates a device name. The following are device names used on the device: |
| [ ] | The parameter in square brackets is optional. The brackets themselves are not part of the command entry. |
| ( ) | Used to enclose parameter values in certain commands. They should be entered as part of the command. |
| " " | Used to enclose string parameter values in certain commands. |
| A B | A or B can be selected. |
AND ASC
BEEP
CHR$ CIRCLE
CLEAR CLS
DATA DATE$
DEGREE DIM
END ERASE
FOR...NEXT
GCURSOR GLEN
GOSUB...RETURN GOTO
GPRINT GRAD
HEX$
IF...THEN...ELSE INKEY$
INPUT
LEFT$ LEN
LET LINE
LOCATE
MDF MID$
NOT
ON...GOSUB ON...GOTO
OR
PAINT POINT
PRESET PRINT
PSET
RADIAN RANDOMIZE
READ REM(')
RESTORE RIGHT$
RND
STOP STR$
TIME$
USING
VAL
VER
WAIT
XOR
CLOSE
EOF
FRE
INPUT#
KILL
LOF
OPEN
PRINT#
BASIC PROGRAM is composed line.
Line is as follow.
line number_[*label name:] Statement (_ is
space.)
line number : Indicates a line number (10-30000)
label name : Max character length is 16.
Statement : Command or expression.
Max line length is 255 characters.
Multi Statement:
line number_[*label name:] Statement [:Statement] (_ is space.)
In some case, error will be occurred or error number message (error number or error line number, or result of ERL/ERN function) is no correct in Multi Statement. Please don't use Multi-statement in that case.
The kinds of variables as following.
| NUMERIC VARIABLE: | NUMERIC SINGLE VARIABLE NUMERIC ARRAY VARIABLE |
AB,BQ etc. AB(2,3) etc. |
| STRING VARIABLE: | STRING SINGLE VARIABLE STRING ARRAY VARIABLE |
AB$,BQ$ etc. AB$(2,3) etc. |
The variable name consists of a letter and up to 2 alphanumeric characters. For string variables, "$" is attached to the end of the variable name. String variable is 16 character length in default. To change length, refer "DIM" Command. Numerical array and string array variables are recognized as different arrays. At the beginning of a program whole variables are cleared. Refer "DIM" Command for array variable.
Numeric entering
Normal numbers
plus +0.000000001 -
+9999999999
minus -0.000000001 -
-9999999999
ZERO 0
Exponent numbers
plus +1E-99 -
+9.999999999E99 = +1*10-99 - +9.999999999*1099
minus -1E-99 -
-9.999999999E99 = -1*10-99 - -9.999999999*1099
Hexadecimal numbers
& Hx 0 <= x <=
2540BE3FF
Note Hexadecimal numbers needs more time to execute than normal numbers, please use normal numbers in the program which needs speedy execution.
Strings
"String" :
Character length is 255.
1: PI
2: FUNCTION
3: ^
4: SIGN(+, -)
5: *, /
6: +, -
7: >, >=, <, <=, <>, =
8: AND, OR, XOR
File can be used using with the commands as following.
If the software version is the version that the VER function result is "49, 50", there is the possibility that the file commands do not work correct. So please check the software version before using FILE commands like as shown in EXAMPLE, and do not execute file command if the version is "49, 50".
COMMANDS FOR FILE
OPEN/CLOSE/KILL/EOF/LOF/FRE/PRINT#/INPUT#
EXAMPLE:
10 A=VER
20 IF (A<>49)*(A<>50) THEN 100
30 PRINT "This Program cannot be used this version software."
40 PRINT " Please use this program after system up-date."
50 WAIT
60 PRINT"(HIT ENTER KEY FOR EXIT)"
70 END
100 CLEAR
110 ...