SAM Coupe Disk Drive Manual 23
Load
Return
Clear Characters
will ask you for a
filename;
type this in
and the
program
will load the file. The
file must be a file of
user-defined
graphics, either created by you or the
sample file supplied, (called 'test.udg').
You can also load the file called 'font'
which contains the international
character set. SELECT allows you to
select which four characters to work on,
again by using the joystick or the
cursor keys and spacebar.
returns you to editing user-defined
characters.
empties the four characters currently
selected.
For example, suppose you load UDG Design
and create various graphic characters.
Once you have finished you save them as a
file called, say, SUPER.UDG.
If you now write a BASIC program and wish
to use the characters you have created, at
the beginning of your program include the
line:
LOAD "SUPER.UDG" CODE
To display your graphics in your program
you must print graphics
characters
by the
numbers assigned to them. User defined
graphics are stored as character numbers
144 to 167. For example to print character
number 144:
PRINT CHR$ 144
Or to print all your graphics characters:
10 FOR character=144 TO 167
20 PRINT CHR$ character,
30 NEXT character
To finish with UDG Design press ESCape
(after SAVEing your work) and then press
F9.
A simple
demonstration
program,'udg demo' is
included. Load it from the main menu by
choosing option K and then the program
number (25). The program returns to the
menu when finished.
INDEX
Summary of Contents for SAM drive
Page 1: ......