Commodore 128 Programmer's Reference Manual page 73

Hide thumbs Also See for 128:
Table of Contents

Advertisement

1
BASIC BUILDING BLOCKS AND BASIC 7.0 ENCYCLOPEDIA
63
n
n
SAVE
Store the program in memory to disk or tape
SAVE ["filename"][,device number][,EOT flag]
EXAMPLES:
SAVE
Stores program on tape, without a name.
j j
SAVE "HELLO"
Stores a program on tape, under the name HELLO.
t
i
SAVE A$,8
Stores on disk, with the name stored in variable A$.
n
n
SAVE "HELLO",8
Stores on disk, with name HELLO (equivalent to
DSAVE "HELLO").
SAVE "HELLO", 1, 2
Stores on tape, with name HELLO, and places an END
I
OF TAPE marker after the program.
n
:
I
f
\
—>
J
SCALE
Alter scaling in
SCALE n
where:
graphics mode
[,Xmax,Ymax]
n = 1 (on) or 0 (off)
Coordinates may be scaled from 0 to 32767 (default = 1023) in both X and Y (in either
standard or multicolor bit map mode), rather than the normal scale values, which are:
U
multi-color mode
X = 0 to 159
Y = 0 to 199
1
bit map mode
X = 0 to 319 Y = 0 to 199
EXAMPLES:
10 GRAPHIC 1,1
Enter standard bit map, turn scaling
n
20 SCALE 1:CIRCLE 1,180,100,100,100
on to default size (1023, 1023) and
j I
draw a circle.
10 GRAPHIC 1,3
Enter multi-color mode, turn scaling
n
20 SCALE 1,1000,5000
on to size (1000, 5000) and draw a
|
30 CIRCLE 1,180,100,100,100
circle.
The SCALE command affects the sprite coordinates in the MOVSPR command. If
[j
you add scaling to a program that contains sprites, adjust the MOVSPR coordinates
' I
accordingly.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents