User`s manual

System
2800
User's
Manual
4.7
Custom
printer
drivers
The
"user
area"
is
the
part
of
CP/M
which
contains
the
printer
drivers.
'll1e
CONFIG
program
described
above
makes
changes
to
the
"user
area"
by
activating
and
deactivating
printer
drivers
as
you
request.
If
you
type
DIR
(return)
after
the
A>
prompt,
you
will
get
a
list
of
the
files
on
the
CP/M
disk
in
drive
A.
If
you
do
this
with
your
Vector
Graphic
CP/M
2.x
System
Disk,
you
will
see
a
file
called
USERAREA.ASM
and
another
called
USERAREA.
PRN.
The
former
is
an
assembly
language
text
file
which
when
you
assemble
it
and
load
it,
replaces
the
code
in
the
"user
area"
part
of
CP/M.
The
latter
is
a
copy
of
the
printed
output
produced
when
you
assemble
USERAREA.ASM.
You
can
print
the
latter
using
the
PIP
utility.
(Type
PIP
1ST:
=USERAREA.
PRN
(return)
following
the
A>
prompt.)
You
will
also
see
a
file
called
USERCUST.ASM.
This
is
a
copy
of
the
"framework"
of
USERAREA.ASM.
It
contains
the
labels
of
the
various
routines,
the
EQU
statements,
and
explanations
of
what
each
routine
should
have
in
it,
but
does
not
contain
the
actual
printer
driver
routines
present
in
USERAREA.ASM.
If
you
want
to
create
your
own
printer
driver,
you
do
it
by
writing
it
within
the
USERCUST.ASM
assembly
language
text,
using
the
CP/M
editor
on
your
system
disk.
Do
not
neglect
to
include
in
the
COLDBOOT
routine
instructions
to
initialize
the
serial
ports
used
by
your
serial
printer
and
other
serial
peripherals,
if
any.
Use
ZSM
to
assemble
your
modified
USERCUST.ASM
(i.e.
with
the
Personalized
CP/M
System
Disk
in
drive
A
and
with
CCP
in
control,
type
ZSM
USERCUST
(return).)
wring
the
assembly,
you
will
be
asked
what
size
the
system
is.
Enter
56
(return)
for
a
56K
computer.
You
will
also
be
asked
what
version
(single,
double
or
mixed)
is
required.
ZSM
will
put
the
assembled
code
on
the
disk
in
drive
A,
calling
the
file
USERCUST.HEX.
Then
load
USERCUST.
HEX
into
IlEmory
using
the
DDT
(Dynamic
Debugger)
(type
DDT
USERCUST.HEX
(return).)
'll1is
causes
USERCUST.HEX
to
overlay
the
user
area,
as
desired.
DDT
is
finished
when
a
"-"
appears.
Depress
control-C
to
return
to
CCP.
With
a
serial
printer,
the
computer's
serial
r:orts
must
be
reset
before
printing.
A
cold
boot
always
does
this,
but
the
CONFIG
program
also
does
it
by
calling
the
COLDBOOT
routine
in
the
user
area
if
a
printer
is
selected.
Hence,
before
testing
a new
serial
printer
driver,
run
the
CONFIG
utility
and
select
ANY
of
the
three
standard
printers
(this
will
not
damage
your
custom
driver.)
Just
press
(return)
in
res:r;:onse
to
the
other
questions.
You
can
now
test
your
printer.
When
you
are
satisfied
with
it,
to
save
this
new
user
area
onto
your
Personalized
CP/M
2.x
System
Disk,
execute
the
CONFIG
program
(again).
iNhen
it
asks
you
which
printer
you
are
using
f and
whether
you
want
auto
paging,
just
press
t.~e
(return)
key.
If
you
do
not
want
to
change
the
auto
carrmand,
also
depress
the
(return)
key
in
response
to
that
request.
Finish
by
resFOnding
!
to
the
question
"Ib
you
want
your
selections
made
permanent".
(Note
to
programmers:
when
CONFIG
saves
the
user
area,
it
resets
to
zero
the
page
position
of
the
logical
lister.)
4-8
Rev.
l-C
8/15/80