Next Previuos Contents

 

NAME

PURPOSE

FORMAT

ON ... GOSUB Causes branching to a
sub-routine
ON COM GOSUB n
ON MDM GOSUB n (M10 MODEM only;
ON TIME$="hh:mm:ss" GOSUB n
ON KEY GOSUB n
ON x GOSUB n

where: n is the first line of the sub-routine
x is a numeric expression
OPEN Opens files in RAM or
cassette or allocates a
buffer to a peripheral.
OPEN "CAS:filename" FOR mode AS file number
In place of CAS can be RAM, COM:cbpsx, LCD, LPT (line printer), MCM:bpsx
(M10 MODEM only), WAND (bar code reader)
filenumber is the number allocated
mode is INPUT, OUTPUT or APPEND
OUT Used to send a byte of
data to an output
port.
OUT n,i where: n is the port number
i is the data byte

- 46 -

Next Previuos Contents