Storing The Formatting Data; The Formatting Characters; Numeric - Commodore CBM Printer 4022 User Manual

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

Advertisement

storing the Formatting Data:
sa=2
Perhaps
the
most
significant
feature of
your
printer
is its
ability
to
format
data.
Picture
formatting generates a
simple one-to-one
correspondence between
the
column
position
of
the
print line
and
the
symbol
that
is
to
appear
there.
Formatting
allows
you
to
left-
or
right-justify
columns
of data,
or
to align
numeric
data
on
its
decimal
point
position.
Example:
OPEN
2,
4,
2
OPEN
1,4,
1
PRINT#2,
"S$$.99'
PRINT#1..05
Results
in:
$.05
The
commands
in
the
example above
transfer
formatting data
to
the
printer's internal
memory
for
future
print
editing use.
Once
completed,
READY
and
the
blinking
cursor
appear on
the
screen.
The
Formatting Characters
Specification
of
aformat
is
accomplished
by
a
set of
formatting characters which,
when
joined,
define the
rules of
formatting data
for
the
printer
format
interpreter.
The
formatting characters
may
be
grouped
into
three
classes:
Numeric
9,Z,$,S,
.,-
Alpha
A
Skip
(Blank)
Fields are specified
by combining these
formatting characters.
Up
to
80
characters are
accepted
in
a format
string.
Excess
(overflow)
characters are
printed
onto
the next
print
line.
Figure 5 contains formatting examples.
Numeric:
9
Specifies a
digit
position
in
a
numeric
field.
If
there
is
no
digit
to
print
in
this
position,
then a
blank
is
substituted.
Z
Also
specifies
a
digit
position
in
a
numeric
field.
Unlike the
9,
this
character forces a
to
be
printed
if
there
is
no
digit
available
for this position.
This
is
desirable
if
leading
zeroes
are
required
in
a
numeric
field.
23-

Advertisement

Table of Contents
loading

Table of Contents