Defining A Programmable Character - Commodore CBM Printer 4022 User Manual

Hide thumbs Also See for CBM Printer 4022:
Table of Contents

Advertisement

Defining a
Programmable
Character:
sa=5
A
secondary address
of
5 allows
you
to create
a
custom
character
of
your own.
This
programmable
character
is
initialized
with
this
secondary
address.
Suppose you wanted
to
program
the special
symbol
in
Commodore
Business Machines'
logo,
which
is:
^
commodore
Lay
out a
7x6
matrix
(the
same
matrix as
is
on
the
print
head).
To
the
left
of
the
matrix, write
the
binary
bit
value
of
each
line.
Use
dots,
one
per
square
to
create
your
character.
Then
add up
the
binary
bits
indicated
by your dots
in
each column. These
totals
are
used
in
the
DATA
statement
in
your program.
Example:
64
32
16
8
4
2
1
28
34
65
65
54
34
TOTALS
The
DATA
statement
in
your
program
will
read;
DATA
28.34,65,65,54.34
The
program
shown
in
the
printout
in
the next
example
writes
the
Commodore
logo ten
times.
It
creates a
string
with the
CHR$
value
of
the
column
totals
and
passes
the
string to
the
printer
with
sa=5.
To
achieve upper-
and
lowercase
characters,
use
the
CRSR
Up
(Cursor Up)
for
uppercase
characters,
and
CRSR Down
(Cursor
Down)
for
lowercase
characters.
29-

Advertisement

Table of Contents
loading

Table of Contents