codes
are
listed in
two
formats, labeled decimal and hexa-
decimal.
Be
sure to
use
the form your software instructions
tell you to
use
.
Remember, your software may
notlet
your OKIDATA 120
do everything it's capable
of.
You
may not
be
able to turn
a feature on and off in the middle
of
a line, for example, or
you may only
be
able to print
an
entire file using a particu-
lar feature.
PROGRAMMING
ON
YOUR
OWN
In
addition to printing
with
commercial software, you can
also write your own programs for the OKIDATA 120, con-
trolling all the printing features directly. Many Commodore
computer owners
won't
have to
read
this section. It ex-
plains the programming codes
used
by your printer. If you
don't
plan on writing programs, skip this section for now.
You
may need it later
if
you plan to write programs or
if
you have software that requires you to enter printer codes.
We'll explain
how
to program your printer, and show you
some examples in
BASIC.
You
will,
however,
need
at
least
a little knowledge
of
programming in order to do some-
thing useful.
For
more details on programming,
see
your
computer's Owner's Guide or Programmer's Reference
Guide. There
are
also a number
of
books available that
teach
BASIC.
To
start printing with Commodore
BASIC,
you'll
need
these
three statements:
OPEN 1
A,O
PRINT#l,
CLOSE1
The statements above
are
the ones any program
needs
in
order to control the printer. Let's look at them one at a
time:
• The
OPEN
statement opens a line
of
communication
19