Sinclair QL Beginner's Manual page 31

Hide thumbs Also See for QL:
Table of Contents

Advertisement

The following program sets borders, 8 pixels wide, in red (code 2), in three windows designated #0,
#1, #2.
100 REMark Border
110 FOR k = 0 TO 2 : BORDER #k,8,2
You can save it on a microdrive by inserting a cartridge and typing:
SAVE mdv1_bord
The program will be saved in a Microdrive file called "bord".
CHECKING A CARTRIDGE
If you want to know what programs or data files are on a particular cartridge place it in Microdrive 1
and type:
DIR mdv1_
The directory will be displayed on the screen. If the cartridge is in Microdrive 2 then type instead:
DIR mdv2_
COPYING PROGRAMS AND FILES
Once a program is stored as a file on a Microdrive cartridge it can be copied to other files. This is one
way of making a backup copy of a Microdrive cartridge. You might copy all the previous programs,
and similar commands for other programs, onto another cartridge in Microdrive 2 by typing:
COPY mdv1_bord TO mdv2_bord
DELETING A CARTRIDGE FILE
A file is anything, such as a program or data, stored on a cartridge. To delete a program called "prog"
you type:
DELETE mdv1_prog
LOADING PROGRAMS
A program can be loaded from a Microdrive cartridge by typing:
LOAD mdv2_bord
If the program loads correctly it will prove that both copies are good. You can test the program by
using:
LIST to list it.
RUN to run it.
Instead of using LOAD followed by RUN you can combine the two operations in one command.
LRUN mdv2_bord
The program will load and execute immediately.
MERGING PROGRAMS
Suppose that you have two programs saved on Microdrive 1 as "prog1" and "prog2".

Advertisement

Table of Contents
loading

Table of Contents