VlCOMMODORE 64FUN AND GAMES




Table 1. NotationUsed for ProgramListings (continued)
•
COMMODORE@
{@}•
SHIFT •
SHIFT@\
{@}•
COMMODORE
COMMODORE \*
{~}•
Scren
Scren
Pres:
Graphics:
Listed:
Pres:
Graphics:
SHIFT *Key(s) toKey(s) to
Listed:


{*}
{*}
{\}





out the optional blanks, we strongly recommendthatTable 1, you wil hold down the SHIFT key_and pres
you use them.the CLR key. A reverse-video heart graphic character
To make the program listings conform to the for-wil appear on the screen.
mat of this book, we "folded" long statement lines atIt is useful to notice that the keys we have named,
a convenientplace on the line and continuedthesuch as {elr}, are al printedin lowercaseleters.
statementon the next line. When you type the pro-When capital leters appear within the braces, they
gram in, you should ignore where we have "wrapped"always representgraphic charactersproducedwith
the line aroundand just kep typing. When longeither the SHIFT or the COMMODORE key. Since the
statementlines are continued,they are aligned withkeys we have named are al printedin lowercase,
the rest of the text. Since the screen of the C-64 is 40thereisn'tanyposibilityof confusionbetween
columns wide, the longer lines of the programswilnamesof keys and the same set of keys used to
look diferenton your scren than they do in theproduce graphics.
book.

Another minor point about these listings isthat weCursor Movement Keys
show the line numbersaligned to the right, rather
than the left as they wil appear on the C-64 screen.To indicate cursor movement keys that are entered
This was done to make the listings look more atrac-in strings, we use {home} ,{elr}, {up}, {down} ,{left},
tive and easier to type in.and {right}. The "insert character"function is shown
as {inst}.

Special Notation
Color Keys and Reverse-Video
Everything inside curly braces ("{" and "}") is our
special notation that tels you which keys to pres onAs you know, the C-64 can display16 colors.
the C-64 keyboard. There are thre types of keys thatAbbreviationsfor eight of the colors are printed on
wil appearwithin the braces: keys that move thethe frontof the numberkeys. To producethese
cursor, keys that control color, and keys that producecolors, you hold down the CTRL key and pres the
C-64 graphic symbols.number. key with the name of the color you want.
There are several keys that we've given specialWith each listing, we show these first eight colors by
names. For example, we use {home} to mean "presprinting the name of the color on the front ofthe key:
the HOME key."This is the easiest part of the notation{blk}, {wht}, {red}, {cyn}, {pur}, {grn}, {blu}, and
to learn, since al you need to know is what we've{yel}. These colors are names for the keys, just as
decided to cal the various keys. Table 1 has three{down} is the name for the cursor-downkey.
diferent headings:what wilappear inour listing, theThe remainingeight colors, whose names are not
actual key you ned to pres, and a picture of theprinted on the C-64 keycaps, are shown as the under-
graphic characterthat wil appear on the screen.lined names of the colors which are on the keycaps.
When you ned to enter a "clear scren" code in aWhen you see an underlinedcolor name, it means
program, we wil show {clr}in the listing. As shown in"hold down the COMMODORE key and pres the key

