EasyManua.ls Logo

Commodore PET - Page 396

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...
ASCIC$)
AND 63
again provides the numerical equivalent of
C$.
631O=3F16. This AND operation zero
es
the
two
high-
order bits of the
ASCII
code (which were developed
in
the previous expresson), leaving the five low-order bits
ready
to
be
ORed
in. After this operation. this term
has
a
value of:
00XXXXXX2
where x=O or
1.
Now the
OR
operation
is
performed. producing the screen memory code
equivalent
to
the
ASCII
code of the character
C$.
After the
OR
operation .the com-
bined term
has
a value of:
01
xxxxxx2 or 00xxxxxx2
This
is
the value
POKEd
into the last screen position at line 150. Since
no
further
messages
are
to
be
printed. line 160 branches past the
HIT
A
KEY
message.
383

Table of Contents

Related product manuals