Commodore 16 User Manual
Download Operation & user’s manual of Commodore 16 Desktop for Free or View it Online on All-Guides.com.
EXAMPLES:
HEADER "MYDISK",
123, DO
HEADER "THEBALL", US, Dl,
US
HELP
HELP
The
HELP command Is used after you gel an error in your program.
When
you
type HELP,
the
line
where Ihe error occured is listed, with
me portion containing
the
error displayed in Mashing
characters.
KEY
KEY |key#. string)
There
are
eight
(8)
function Keys availaDle
to Ihe
user
on your
Commodore 16
compuler tour unshitted and lour shifted
Your
Commodore 16 allows
you to define
what
each key does when
pressed.
KEY without any parameter specified
gives a listing displaying
all the current KEY assignments: The
data you
assign
to a key
is
typed
out when that
lunction
key is pressed. The maximum length tor
all the
definitions
together
is 1
28
characters.
Entire commands or
a
series of
commands)
can
be
assigned
to a key. For example:
KEY 7, "GRAPHICO" + CHR$(13) + "LIST" + CHR$(13)
causes the compuler
lo
select lexl mode and list your program
whenever Ihe 'F7' key is depressed (in direct mode). The CHR5(1
3)
is
the ASCII character
for ktuwi Use CHR$<34) to
incorporate
a
double quote into
a
KEY string.
! 'I
I
I
I
I (
I (
) I
I
I
I
102
I I
(
I
'
I
I
I
I
I
I
I
I
I
I
I
.
1
I
.
I
I
[
The keys may be
redefined in
a
program, For
example:
10KEY2,"TESTING"
+ CHR$(34):KEY3, "NO"
10 FOR I
-
1T0
8:
KEY I,
CHR$(I+132):NEXT
defines the
function
keys
as
they
are defined on the
Commodore
64
and
VIC 20
To resfore
all function
keys to
Iheir default values, reset your
Commodore 1
6 by
turning it off and on, or press the
RESET bulton,
LIST
LIST
[first
line)
I
-[last tine]]
The LIST command lets
you
look al lines of a BASIC program that have
been typed or LOADed into the Commodore
1
6's
memory. When LIST
is used
alone (without
any
numbers following it),
you get a
complete
LISTlng
of the
program on your screen, which may
be
slowed down by
holding down ihe
&
key, paused
by
CTKL -S (unpaused by pressing
any other key), or STOPped by
pressing
the mm/no*
key. II
you
follow
Ihe word
LIST with
a
line number,
your
Commodore 1
6
only
shows that
line
number
If
you type
LIST wilh
iwo
numbers separated
by a
dash,
the Commodore
1
8 shows
all lines from the first
to
the
second line number. If
you type
LIST followed by a number and just a
dash, il shows all the lines
from that number
lo the end of the
program
And if
you type
LIST,
a
dash, and then a
number,
you get
all
the
lines
from
the
beginning ol
the
program to
that
line number Using these
variations,
you
can examine any portion of a program, or
easily
bring
lines
lo the
screen for modification.
EXAMPLES.
LIST
LIST I0Q-
Shows entire
program
Shows from line 100
until
the end of me program.
103