Exercise 8 - Using The Reverse Field - Commodore PET 2001 Series Introduction Manual

Hide thumbs Also See for PET 2001 Series:
Table of Contents

Advertisement

Now let's insert the missing HOW.
Now position the cursor over the
several times.
then
to get past the
READY
You
With editing that easy you need have no fear of making typing
errors. Agreed?
Let's try another interesting screen edit. First, type NEW to clear
out the old program.
Enter:
1 0 P R I N T "ANYTHING"
(This time we won't type LIST each time we make a correction.)
Press
and
so that you position the cursor over
in line # 10.
Press
then press
2
Now type EVERYTHING" and press
Now press
cursor over the
in line #20. Press
2
in EVERYTHING and type NOTHING". Press
E
Because EVERYTHING is three letters longer than NOTHING.)
Press
Now type LIST and press
14
in ARE by pressing
A
in the display. Type LIST.
1
until it reaches the
in ANYTHING"
A
together so that you position the
over to the
then
3
three times. (
SPACE
You'll read:
Interesting? Think of the applications. If you want to repeat a com-
plex statement several tines in the same program ... or if you want to
change just a part of a statement on one line and enter that
amended statement on another line.

Exercise 8 - Using the reverse field

Every key on the keyboard, with the exception of a few which we
shall note, prints almost exactly what you see onto the screen. We
say "almost" because the screen displays characters in white
on a black background. There is a
causes all subsequent characters to be displayed in reverse
field - black on white - on that line.
Type
and you'll see:
A B C
A B C
Your PET displays 128 unique symbols which, with the addition of
reverse field, really adds up to a total of 256 different characters
that can be displayed.
Reverse field remains in effect until a) you type RETURN or b)
you
As an example, type:
key which, when pressed.
1
5

Advertisement

Table of Contents
loading

Table of Contents