290
The
VIC
20
User
Guide
This
pattern
is
converted
into
a set
of
numbers
to
be sent
to
the printer.
This
is
done
as follows: The rows (horizontal dots) are each given a numeric
value. The
top
row is
1,
the next row down
is
2,
and
so forth, with each
successive row being double the value
of
the one above it.
The
value
of
the
seventh row
is
64.
Add
up
the
numbers in
the
places
that
you want to print
dots.
To
this
number
you
then
add
128,
and
that
is the
number
that
you
put
into the printer.
Let's examine
the
smiling face
and
determine
what
the value
of
each
row should be
to
print it
on
the printer.
2
4
8
16
32
64
ABC
D E F G H
4+
8+
16=
28---'
2 + 8 +
32
=
42------!
1+4+16+64=85------~
1+16+64=81-------~
1+16+64=81---------------!
1 + 4 +
16
+
64
=
85
--------------------~
2+8+32=42------------------------~
4 + 8 +
16
=
28----------------------------'
Look
at
column A. The
dark
squares represent locations in which the
printer should print dots. Adding up the values
of
the locations in column A
we
get: 4 + 8 +
16
=
28.
Column B
is
2 + 8 +
32
= 42.
If
you
continue
through
all eight columns you will get the values 28, 42,
85,81,81,85,42,
and
28.