EasyManua.ls Logo

Commodore PET - Page 121

Commodore PET
447 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Program
1.
CLEAN SCREEN. Have the program clear the screen before print-
ing the HIT A
KEY
message.
Program
2.
MESSAGES. Have the program
print
"HIT
A KEY" when the pro-
gram
is
first run
but
then have
it
print
"HIT
A
KEY
OR
<R>
TO
END" for subse-
quent
display.
Program
3.
SINGLE. Combine the last
two
messages of the display onto one
line so
that
the program prints:
PHEW! HIT A
KEY
OR
<R>
TO
END
---
10
spaces
Have this line
print
on the
bottom
line. Increase character lines printed to 24.
Program
4.
CALLING YOU. Structure the program
as
a subroutine. Add a main
program
that
calls the subroutine and ends the program.
Program
5.
SLOW
DaWN.
Slow
down
the display. The character display takes
about 16 seconds to print. Lengthen this print time
to
about double.
Program
6.
SPEED UP. Speed up the program. The character display takes
about 16 seconds to print. Shorten this
print
time. The time
can
be
shortened,
using
PRINT,
to about
two
seconds.
Hint: You
will
need
to
decrease the number of
PRINTs.
Program
7.
INDIAN
BLANKET.
Allow
input
and display of different characters
while
the display
is
being printed.
Modify
messages
as
in Program
2,
but
with
the
following
messages:
HIT
ANY
KEY
HIT
ANY
KEY
OR
<R>
TO
END
At
the same time
slow
down
the display,
as
in
Program
5,
but
make
it
even
slower
to
allow
time
to
press different keys
while
viewing the display -
slow
to
about 75 seconds.
Remember
when
running the program
that
once vou press a
key,
it
automat-
ically repeats
until
vou press the next
key.
Can vou get the display
to
look like
an
Indian blanket?
/08

Table of Contents

Related product manuals