Commodore 16 User Manual
Download Operation & user’s manual of Commodore 16 Desktop for Free or View it Online on All-Guides.com.
to
disk dies only. (File
types
are prg.seq, rel, and usr; modes are
read and
write.)
EXAMPLES:
10 OPEN 3,3
10 OPEN
1,0
20 OPEN 1,1,0,"UP"
OPEN 4,4
OPEN 15,8.15
OPENS the SCREEN as
device.
OPENs the
keyboard
as
device.
OPENs the cassette
tor
reading, tile
to be
searched
lor
is
named
UP
OPENs
a
channel
to use
the
printer.
OPENs trie command
channel on
the
disk
5 OPEN 8,8. 12,"TESTFILE,SEQ, WRITE" creates a
sequential disk tile
tor writing.
See also CLOSE, CMD, GET.*, INPUT*, and PRINT*
statements,
system variable ST, DS, and DS$.
PAINT
PAINT
[colour source]
[,[a,bl (.model
|
Colour
source
(0-3); (default
is l
,
foreground colour)
a.b.
starting coordinate, scaled (detaull is at the PC)
i
r
I
f
f
l
f
I
i
i
i
I
i
i
!
I
I
!
(
I
r
12B
f
'
f
mode.
.0
=
paint an area detmed by
the colour source
selected
1 - paint an
area
defined
by
any non-background
source
The PAINT
command lets
you
fill an area with colour It
tills
m the
area
around the specified point until
a
boundary ot the same
colour (or any
non-background
colour, depending on which mode
you
have chosen) Is
encountered The final position of the PC will
be
at the starting point
<a
(
b).
NOTE:
If
the
starting point is already the colour ot colour source
you
name (or any non-background when mode t is
used),
there is no
change
EXAMPLE:
10 CIRCLE, 160.100.6S.50
20 PAINT , 160,100
draws outline of circle
in the circle with
colour
POKE
POKE address,
value
The POKE command allows you to
change
any
value In the
Commodore
16
RAM memory, and lets you
modify many of the
Commodore
16
InpuVOutput
registers. POKE is
always followed
by
two
numbers, (or equations). The first number
is
a
location inside your
computer's memory.
This could
have any
value Irom to
65535
The
second
number is
a
value from
to 255,
which is placed tn the
locat<on,
replacing any value that was there previously This
command can
be
used to control anything
on
the screen, from
placing
a
character at that
location to changing the colour there.
EXAMPLE:
10 POKE
16000,8 Sets
location
16000
to 8
129