x,y
Defines the height and width of the characters. The possible values are 0 and 1.
I,J,K
Erases all variables and reserves space for string storage, highest address for BASIC and graphical characters.
CLEAR 500 |
CLEAR 200,25000 |
Clears display
Reserves the lines between top and bottom for text.
CONSOLE 5,15 |
CONSOLE 0,24 |
Stores data in program for use by READ statement
Declares the type of a variable as either integer, real or string.
DEFINT A-B,O-Q defines A,B,O,P and Q as integer |
Dimensions one or more arrays. DIM X(40),A$(7,6),B(10,2)
Terminates program execution
When an error has occurred, the function ERR gives the code number and ERL gives the line number in which the error occurred.
Makes it possible to simulate error number n
.
address
Transfers control to machine language programs at address
.
Creates a program loop which is executed, for specified range of values, STEP indicates the increment. If STEP omitted, one is used.
Calls subroutine beginning at specified line number.
Causes immediate program branch to specified line number.
Tests condition. If true performs action 1 and jumps to next line, if false performs action 2.
Causes program to halt for entry from keyboard.
INPUT"ENTER NAME";N$ |
INPUT A,B,C,D |
Assigns value to variable. LET is not implemented. Use implied assignment
A=42 |
Hw$="HELLO WORLD" |
Allows input of line from keyboard, including commas. Line is terminated by [ENTER].
Place the cursor at location i,j
Multiway branch to specified lines
ON I GOSUB 100,200,300 |
Multiway branch to specified lines
ON K GOTO 245,187,310 |
Directs control to the specified line if a subsequent error is detected.
ON ERROR GOTO 5000 |
Places value in specified memory location. Value must be 0 - 255.
Prints content of following list on screen. Comma (,) causes tab to next 12 column print zone. Semicolon (;) holds print head position.
PRINT"THE ANSWER" |
PRINT A,B |
PRINT "YOU'VE HAD";T;"TRIES" |
Moves cursor to specified column position.
Prints output in specified format.
# number field |
$ dollar sign in front of number. |
* fills leading spaces with asterisks. |
^ prints in exponential format. |
+ causes sign to be printed. |
Assigns the next item in a DATA statement to specified variable.
Allows comments to be inserted in a program. Everything in a line following REM is ignored.
Resets the data pointer back to the first item in the first DATA statement or the statement at the specified line number.
RESTORE |
RESTORE 200 |
Return to the main program after execution of error subroutine.
Returns the program from subroutine to the statement following GOSUB.
Halts execution of program at line containing STOP. Use CONT to continue execution.