The keys may be redefined In a program. For example:
10 KEY 2,"TESTING" + CHR$(34):KEY3, "NO"
10 FOR I tc 1 TO 8: KEY I,
CHRS(I+132):NEXT
EXAMPLES:
HEADER "MYDISK", 123, DO
HEADER "THEBALL", 145, Dl, U8
i
defines the function keys as
they are defined on the
Commodore 64 and VIC 20
I
I
I
I
I
I
I
I
I iI
I
I
I
I
I
I
I i I
I
I
I
I
I
I
I
I
I
.1
f
HELP
HELP
The HELP command is used after you get an error in your program.
When you type HELP, the line where the error occured is listed, with
the portion containing the error displayed in flashing characters.
KEY
KEY [key #, string]
There are eight (8) function keys available to the user on your
Commodore 16 computer: four unshifted and four shifted. Your
Commodore 16 allows you to define what each key does when
pressed. KEY without any parameter specified gives a fisting displaying
all the current KEY assignments. The data you assign to a key is typed
out when that function key is pressed. The maximum length for all the
definitions together is 128 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 computer to select text mode and list your program
whenever the 'FT key is depressed (in direct mode). The CHR$(13) is
the ASCII character for intlitig . Use CHR$(34) to incorporate a
double quote into a KEY string.
To restore all function keys to their default values, reset your
Commodore 16 by turning it off and on. or press the RESET button.
LIST
LIST f irst linelI • [last line])
The LIST command lets you look at lines of a BASIC program that have
been typed or LOADed into the Commodore 16's memory. When LIST
is used alone (without any numbers following it), you get a complete
LISTing of the program on your screen. which may be slowed down by
holding down the G. key, paused by
CT!!.
-S (unpaused by pressing
any other key), or STOPped by pressing the '201#11TIBE key. If you
follow the word LIST with a line number, your Commodore 16 only
shows that The number. 11 you type UST with two numbers separated
by a dash, the Commodore 16 shows all lines from the first to the
second line number. If you type LIST followed by a number and just a
dash, it shows all the lines from that number to the end of the program.
And if you type LIST, a dash, and then a number, you get all the lines
from the beginning of the program to that line number. Using these
variations. you can examine any portion of a program, or easily bring
lines to the screen for modification.
EXAMPLES:
LIST
Shows entire program.
LIST 100-
Shows from line 100 until the end of the program.
102
103
Need help?
Do you have a question about the Commodore 16 and is the answer not in the manual?
Questions and answers