
(Liz Deal Printer tips continued from page 2)
lines/page. Channel 3 on the printer understands that. I haven’t
tried it but this should work:
open 4,4,3:print#3,chr$(90):close 4 — for 90 lines/page
How to page? print clear-the-screen to the printer just as you
open it. Either chr$(147) or, in quotes, the CLR character
(shifted CLR/HOME key):
open4,4:print#4,chr$(147):cmd4:Iist
print#4:close4
Lists a program, and skips over the perforations IF AND
ONLY IF you started with the print head positioned right under
the perforation.
Once paging is turned on, do not do any manual adjustments
- or you’ll confuse things. If some printing ends before a page
is over, push the red-light-button to move to the next page. (Don’t
do it if you haven’t defined paging - unless of course you NEED
to MOVE ALL the paper from this to the other side...)
Suppose you want to list a disk directory to the printer. No
problem. There are two ways: the old-fashioned way is to
ioad"$0",8 for directory in drive zero. The problem is that this
method destroys any program in memory so do it when you don’t
need a program. Now follow the load with the listing instruction:
open4,4:cmd4:Iist
print#4:close4
Few people realize that the B-machine is capable of printing
the directory on the printer WITHOUT having to LOAD it in.
First let’s see how to see the directory. The magic words are
DIRECTORY or CATALOG, they can be abbreviated ’cA’ or if
you prefer three letters to two, ’diR’. The full and complete
syntax would include drive number and unit (if you forget the
drive number, the wrong drive always fires up, right?):
catalog u9,dl,"optional pattern matching scheme"
But it’s perfectly all right to omit much of this stuff, catalog
dl or directory dO do just fine. So, to put it out on the printer,
we say:
open4,4:cmd4:directory
Hurray. You’d think Commodore would let us in on this
secret!
Liz’s hint for the day: Compact Disk Directory Listings:
Put computer in text mode (no graphics), then:
open4,4,7:print#4:close4 text mode
open4,4,6:print#4,chr$(24):close 4 9/16 inch
load"$0",8
open4,4"cmd4:list — now it all prints
print#4:close4 to kill CMD
It should be possible to ’page’ in the 9/16 inch mode, by
telling the 4023 that it’s page length is now 99:
yet.
open4,4,3:print#4,chr$(99):cIose 4 — but I’ve not tried it
8023p PRINTER TIPs hy John Branca
CBM 8023p printer format settings needed with Super
script II edit mode:
a.) Set condense:
RVSsal3
b.) Cancel" RVSsal4
c.) set Double strike RVSsal3:sal5
d.) Cancel RVSsal4:sal2
e.) Reset width when in width default mode; ESC shifted
CLR - when control line says "restart program?", answer "y".
When the screen appears, change width setting to the one
desired. 160 is about right for a full 8 1/2" line of condensed
mode.
f.) Cancel width setting: same as e. above except change
back to 80.
These are the program changes necessary for the "banner"
program when using CBM 8023p printer. If you use the
program "as is" you will have 2 blank spaces between each
line which produces an unsatisfactory looking letter - too long.
Correct the problem as follows:
a.) List line 4030, change print#2, chr$(24) to
print#2,chr$(9). Use (8) if you want a more solid letter.
b.) List line5005, change is the same as for line 4030.
(4023 continued from page 1)
there is something else wrong.
THE 4023 DIAGNOSTICS
This is a general descrip
tion of the routine run when
the 4023 is first turned on. The
first thing done is to turn the
LED (light) off. Then it pro
ceeds to check the zero page
ram. Each byte gets the values
0 through 255 stored in it and
is checked to see if the value
read is the same as the one
stored. If any of the bytes foil
the test, the printer flashes an
error code of one.
Upon passing the zero page
test the printer computes the
checksum of the ROM. If an
incorrect value is obtained, it
generates error 2.
If the checksum is right, it
then proceeds to check internal
timers. The timers that I num
bered one through four are
started. It waits until timer 1
has counted down to zero and
checks to see if timer two is
also at zero. This code seems
peculiar in that if timer one is
not working, the computer
will probably sit there forever
waiting for timer one, without
indicating an error.
If timer one works and
timer two doesn’t, error 3 is
generated. If timer two is in
sync with timer one but timer
three isn’t, error 4 is gener
ated. If timer three is in sync
with timer one but timer four
isn’t, error 5 is generated. Al
though this timer is not used
by the 4023, it is probably
checked because it is used on
some other printer and it’s op
erating system was re-used so
a new one need not be written
from scratch.
At this point, the diagnos
tics are complete and the LED
is turned on. Then the printer
sets up house and gets ready to
print.
June 1993
15
Comentarios a estos manuales