COMMANDS |
Index |
Name |
Syntax |
Description |
0 |
ARC |
ARC X,Y,S_Angle,E_Angle,Radius,Mode |
Draws a portion
of a circle at center point X,Y with Radius starting from
S_Angle to E_Angle. Mode = 0 - Arc only, Mode =1 -
Filled pie section, Mode = 2 - Outlined pie section, Mode >
2 - Error |
1 |
BEEP |
BEEP Frequency,Length |
Generates a square wave note at
a specific frequency and a length in 100ths of a second. |
2 |
BLIT WRITE |
BLIT WRITE X,Y,String |
Blits a graphic stored in
String at point X,Y. The string holds the width and
height. Draws using the mode set by MODE |
3 |
BLIT COPY |
BLIT COPY Xs,Ys,W,H,Xd,Yd |
Does a direct Blit Read from
point Xs,Ys with a Width W and Height H, and Blit Writes to
point Xd,Yd |
4 |
BOX |
BOX X,Y,W,H,Filled |
Draws a box from point X,Y with
Width W and Height H. Draws a filled box if Filled is
non-zero. |
5 |
CASE |
CASE value |
Used with SELECT |
6 |
CD # |
CD #stream,"Directory name" |
Changes the current directory
on the specified stream. |
7 |
CIRCLE |
CIRCLE X,Y,Radius,Filled |
Draws a circle at center point
X,Y with Radius either as an outline or filled if Filled is
non-zero. |
8 |
CLEAR |
CLEAR [Memory Address] |
Clears all variables.
Sets a new Ramtop if a valid address is given. |
9 |
CLS |
CLS |
Clears the screen |
10 |
CONTINUE |
CONTINUE |
Continues execution of a
program after an error, break or STOP |
11 |
COPY # |
COPY #stream,"Source","Destination" |
Copies a file from opened
stream from Source to Destination |
12 |
DATA |
DATA followed by comma separated string and
numeric values |
Provides a method for storing a
table of string and numeric values. |
13 |
DEFINE FUNCTION |
|
|
14 |
DELETE |
DELETE From,To |
Deletes program lines. |
15 |
DIM |
DIM variable[$],value[,.value][,value] |
Dimensions an array. |
16 |
DRAWTO |
DRAWTO X,Y |
Draws a line from the last
point plotted to X,Y |
17 |
ELLIPSE |
ELLIPSE X,Y,Rx,Ry,Filled |
Draws a filled or unfilled
ellipse at center point X,Y with x-radius Rx and y-radius Ry.
Filled if non-zero |
18 |
ENDSELECT |
ENDSELECT |
Ends a SELECT CASE series |
19 |
EXIT IF |
EXIT IF condition |
Exits from any loop if
condition is met |
20 |
FORMAT # |
FORMAT #stream[,command] |
Sends the format command to the
specified stream. For storage devices it formats it.
For serial devices it sets the speed and other parameters,
only for streams already opened, as OPEN # typically does
this. |
21 |
FOR |
FOR variable=Start_value TO End_value [STEP
value] |
Starts a loop and continues
looping as long as the variable does not equal or exceed
End_value |
22 |
GOSUB |
GOSUB number [or variable] |
Calls a subroutine |
23 |
GOTO |
GOTO number [or variable] |
Transfers program control to a
specific line number |
24 |
IF |
IF condition THEN command [ELSE command] |
Executes commands if condition
is met |
25 |
INK |
INK value |
Sets the drawing color. |
26 |
INPUT |
INPUT [#stream]
variable[$][,"prompt"] |
Retrieves the value from the
stream for a numeric or string variable, and will prompt the
user with the given string if applicable. |
27 |
LET |
LET variable[$]=["]value["] |
Assigns a value to a string or
numeric variable. Value can be a number or numeric
expression, or a quoted string. |
28 |
LIST |
LIST [#stream] [start][,end] |
Sends a program listing to the
default or given stream. If no start or end line is
given, then the whole program is dumped to the stream,
otherwise only the range given. |
29 |
LOAD |
LOAD [#stream,]"filename' [CODE] [address] |
Loads a BASIC program from the
default or specified stream if no "CODE" specification is
passed. Otherwise it loads the file as binary data.
If an address is passed, then the data is loaded at that
address, otherwise it's loaded at the address it was saved
from. |
30 |
LOCATE |
LOCATE [#stream,]column,row |
Locates the cursor or drawing
point to column,row. For graphical streams it moves
the plotting point as row=y and column=x. |
31 |
MKDIR # |
MKDIR #stream,"dirname" |
Only works for mass storage
streams. Creates a directory with the given "dirname" |
32 |
DRAWMODE |
DRAWMODE value |
Sets the drawing mode to the
specific mode: 0 = Overwrite mode.
1 = XOR mode
2 = AND mode
3 = MASK mode (draw only if original pixel is set to the
PAPER color) |
33 |
MOVE # |
MOVE #stream,"source","destination" |
Moves a file from one path to
another. |
34 |
NEW |
NEW [type] |
Performs a system reboot.
If no type is given, it is a warm boot. If type is
used, then the following are the possible values: 0 = Cold
Boot. All memory is cleared and all peripherals reset
to default values, just like at power on.
1 = Warm Boot. All memory below RAMTOP is cleared and
all peripherals set to their default values.
2 = Lukewarm Boot. All memory below RAMTOP is cleared,
but peripherals are not reset.
3 = Peripheral Boot. Only peripherals are reset to
default values, memory and system remains intact. |
35 |
NEXT |
NEXT variable |
identifies the ending portion
of a FOR-NEXT loop by identifying the conditional variable
identified in the FOR command. |
36 |
ON ERROR |
ON ERROR GOTO line
ON ERROR GOSUB line |
GOTO - If an error is
triggered, the execution jumps to an error handler. GOSUB
- If an error is triggered, the error handler is called and
execution can be returned to the main routine via a RETURN
at the end of the error handler. Execution begins
immediately after the problem statement or line. |
37 |
ON |
ON value GOTO line[,line etc.]
ON value GOSUB line[,line etc.] |
GOTO - program execution jumps
to the line index indicated by the value. Value is an
expression result or variable value that acts as an index
into the list of line numbers at the end of the statement.
GOSUB - A specific routine is called at the line number
indexed by the expression or variable indicated by "value." |
38 |
OPEN # |
OPEN #stream[,parameters] |
The method for opening and
initial configuration of a stream. The parameters can
be numeric or string and should be comma separated. It
is up to the driver to determine how to parse. |
39 |
OUT |
OUT port,value |
Sends an 8 bit value to the I/O
port. Port is identified by a 16 bit value. |
40 |
PAPER |
PAPER value |
Sets the background color to
value. |
41 |
PAUSE |
PAUSE [value] |
Waits for a keypress
indefinitely if no value given, or for a specific number of
seconds. |
42 |
POKE |
POKE address,value |
Sets an 8 bit value to the
specified 24 bit address |
43 |
DPOKE |
DPOKE address,value |
Sets a 16 bit value starting at
the 24 bit address given, in little endian format. |
44 |
LPOKE |
LPOKE address,value |
Sets a 24 bit value starting at
the 24 bit address given, in little endian format. |
45 |
PLOT |
PLOT x,y |
Sets a pixel at position x,y
for a graphical screen. Otherwise it prints a solid
square at column,row for text streams. |
46 |
PRINT |
PRINT [#stream;]
expression[,][;]expression][,][;] |
Prints either a string or
numeric expression separated by commas or semi-colons.
Commas insert tabs and semi-colons are just dividers.
If no semi-colon or comma ends the statement, then a CR/LF
is sent to the stream as well. |
47 |
READ |
READ variable[$] |
reads the next value from the
DATA tree. |
48 |
REM |
REM Descriptive text |
Is completely ignored by BASIC
and execution immediately jumps to the next line or
statement. |
49 |
RESTORE |
RESTORE [line] |
Sets the READ index at the
beginning of the DATA tree, if no line given, otherwise at
the line given. |
50 |
RETURN |
RETURN |
Returns from a routine called
by GOSUB or ON ERROR GOSUB, immediately after the GOSUB call
statement. |
51 |
RUN |
RUN [line] |
Clears all variables and begins
program execution at the beginning or at the line number
given by "line." |
52 |
SAVE # |
SAVE #stream,"filename" [LINE start]
SAVE #stream,"filename" [CODE start,length] |
Saves a file to the mass
storage device stream. If "CODE" is given, it dumps
memory starting at address "start" with a length of
"length". Otherwise the BASIC program is saved.
If "LINE" is given, BASIC is told to start execution at the
given line number when loaded. |
53 |
SELECT |
SELECT value |
Part of the SELECT-CASE-ENDSELECT
commands. Sets the conditional value which is either a
variable or expression. It must be numeric though! |
54 |
STOP |
STOP |
Ends program execution with the
message "STOP Received at Line xxxx". Helpful with
debugging. |
55 |
WHILE |
WHILE (expression result is true) |
Executes the loop only if the
expression is true. |
56 |
WEND |
WEND |
Indicates the end of the
WHILE-WEND loop. |