Returns -1 after a fatal error, 0 after a normal error.
FIELD [#]n,expression AS svar
Divides records into fields. The sum of the field length should equal the record
length.
n
Channel number
expression
Field length
svar
A string variable which accepts the data field.
FILES ["filespec" [TO "file"]]
Lists files on a disc giving a more detailed output than DIR.
FILESELECT "filespec","filename",x$
Creates a file selection box, filespec gives the search path,
filename may be used to set a default filename, and x$
returns the chosen file with its path. If cancel is selected x$
will be null.
FILL x,y
Fills a bordered area with the pattern set by DEFFILL.
FIX(x)
Returns the integer of x.
FOR var=a [DOWN] TO E [STEP s]
Creates a loop which is executed as many times as specified.
FORM INPUT n (, or AS) var$
Allows the input of a string of upto n characters (255 maximum), or allows
one to be modified (AS).
FRAC(x)
Returns the fractional part of a number.
FRE(x)
Returns the amount of free memory, x is disregarded.
Reads a record from a random access file, via channel n.
i may be used to specify the relative key (1 to 65535)
of the record, else the next record is read.
GOSUB name [(expression list)]
Performs the procedure name. Procedure names may begin with
a digit and may contain dots, underscores and alphanumeric
characters. By default parameters are passed to procedures by value. Parameters may be passed
by reference using the indirection operator *. Procedures may be called recursively.
GOTO label
Allows an unconditional jump to a label. label must end with
a colon, can begin with a digit and may contain dots, dashes and
alphanumeric characters.
GRAPHMODE n
Sets the graphics mode n. 1=replace, 2=transparent, 3=xor,
4=reverse transparent.
Executes different blocks depending on the condition.
INC var
Increases the value of var by 1.
INFOW n,"string"
Allocates an information line to window n. INFOW must initially be used
before OPENW as the information line cannot be switched on or off under GEM. If
"string" is null (""), the information line is cleared.
INKEY$
Reads the keyboard. Normal keys return the ASCII code, function keys
return 0 followed by the ASCII code.
INP(x)
INP(#n)
Reads one byte from a peripheral or file. x can take one of the
following values: 0=lst, 1=aux, 2=console, 3=midi, 5=console.
INP?(x)
Tests the input status of a peripheral, returning -1 if a byte is present otherwise 0.
x can take one of the following values: 0=lst, 1=aux, 2=console, 3=midi,
5=console.
INPUT ["prompt" (; or ,)] var [,var ...]
INPUT #n,var [,var ...]
Allows data to be input during program execution.
INPUT$(x [,#n])
Reads a string of upto x characters (32767 maximum) from
the keyboard or a file.
INSTR([n,]a$,b$)
Searches a$ for b$ and returns its position. n may be
used to specify the starting position for the search.
INT(x)
Determines the largest integer that is less than or equal to x.
Returns the leftmost character or specified number of characters from a string.
LEN(var$)
Determines the length of a string.
[LET] var=expression
Assigns a variable with the value of an expression.
LINE x,y,xx,yy
Draws a line.
LINE INPUT ["prompt" (; or ,)] var$ [,var$ ...]
LINE INPUT #n,var$ [,var$ ...]
Allows a string to be entered during program execution from the keyboard or a file.
Unlike INPUT, a comma is regarded as part of the string, not a separator.
LIST "filename"
Stores the current program to disc in ASCII format.
LLIST
Prints a listing of the current program.
LOAD "filespec"
Loads a program into memory.
LOC([#]n)
Returns the file pointer location, in bytes from the start of the file.
LOG(x)
LOG10
Determine the natural and base 10 logarithms of a number.
LPOS(n)
Returns the column in which the printer head is located.
LPRINT [expression [(, or ; or ') expression ...]]
Prints data on the printer.
LSET var$=string
Assigns a string to a variable, and left justifies it.
Returns the largest value from a list of expressions.
MENU field(n)
MENU KILL
MENU OFF
MENU n,x
Makes it possible to create and modify pull down menus. field is a
one dimensional array containing menu text. Menu items must follow the menu
title. The menu title must be followed by an empty string.
MENU(n)
Returns the value after an ON MENU GOSUB routine.
MID$(var$,a [,n])
Returns all or n characters from a string, starting at position a.
MIN(expression [,expression ...])
Returns the smallest value or string from a list of expressions.
MKI$(n)
Transforms a 16-bit number into a 2 byte string.
MKL$(n)
Transforms a 32-bit number into a 4 byte string.
MKS$(n)
Transforms a number into an atari basic 4 byte string.
MKF$(n)
Transforms a number into a GFA basic 6 byte string.
MKD$(n)
Transforms a number into an mbasic 8 byte string.
MONITOR [n]
Calls a memory resident monitor.
MOUSE x,y,k
MOUSEX
MOUSEY
MOUSEK
Sets the mouse pointer position, determines the mouse pointer position and
determines the button status. k may take the values:
Determines whether a number is odd. It returns 0 for FALSE and -1 for TRUE.
ON expression GOSUB procedure1 [,procedure2 ...]
Process a procedure based on the result of expression. If the value is
not in range (1 to n, where n is the number of procedures) no procedure is executed.
ON BREAK CONT
ON BREAK GOSUB procedure
Trap an attempt to halt the program and specify what action is to be taken.
ON ERROR GOSUB procedure
Trap run-time errors.
ON MENU GOSUB procedure1
ON MENU KEY GOSUB procedure2
ON MENU MESSAGE GOSUB procedure3
ON MENU IBOX a,x,y,b,h GOSUB procedure4
ON MENU OBOX a,x,y,b,h GOSUB procedure5
ON MENU BUTTON c,m,s GOSUB procedure6
Specify actions to be taken based on pull-down menu selections. c is the number
of mouse button clicks, m the button combination (1=left, 2=right, 3=both)
and s the button status (again 1, 2 or 3).
OPEN "mode",[#]n,"filename" [,len]
Open a data channel or disc file. Mode may be "O" for output, "I" for read,
"A" for append, "U" for read/ write, "R" for random access. The following
prefixes may be used with filenames: "CON:" for the console, "LST:" for the printer,
"AUX:" for the serial interface, "MID:" for midi, "VID:" for the console in
transparent mode and "IKB:" for direct access to the keyboard controller. len
may only be used with random access files to specify the record length.
OPENW n [,x,y]
Open a window numbered n. The point of contact for the 4 possible windows may
also be specified.
OPTION BASE (0 or 1)
Sets the lower array limit to either 0 or 1.
OUT x,a
OUT #n,a
Output 1 byte to a peripheral or file. x is the peripheral and may be 0 for the printer,
1 for the serial interface, 2 for the console, 3 for midi, 4 for the keyboard controller
and 5 for the console in transparent mode. a is the characters ASCII code.
OUT?(x)
Determines the output status of a peripheral, returning -1 if it can receive otherwise 0.
x is the peripheral and may be 0 for the printer, 1 for the serial interface,
2 for the console, 3 for midi, 4 for the keyboard controller
and 5 for the console in transparent mode.