Download Compute_n 15_p 101

Transcript
AARDVARK
NOWMEANS
NOW
MEANS BUSINESS!
OSI
WORD PROCESSIN
G THE EASY WA
YPROCESSING
WAYW
ITH M
A X I·PROS
WITH
MAXI-PROS
T
hi s is a
-o riented word processo
This
a line
line-oriented
processorr dede
ssigned
igned for the office that doesn't want to send
every new girl out for training
train ing in how to ty
pe a
type
lette
r.
letter.
It has automat
ic right and le
ft margin justi
justi·
automatic
left
fication and lets you vary tthe
he wid
t h and margins
width
during pri
nti ng . It has automatic pagination and
printing.
automatic page numbering. It wil
willl print any text
single
le oorr triple spaced and has text
te xt censingle,, doub
double
cen
tering commands
ill make any numbe
commands.. It w
will
numberr of
multiple cop
ies o
toge ther to p
rint an
copies
orr chain files together
print
entire disk of ddata
a ta at one time
time..
MAX
I-PADS has both global and line edit
MAXI-PROS
capability and the polled
poll ed keyboard versions
con
ta in a correcte
d key
b oard routine that make
contain
corrected
keyboard
th e 051
the
OSI
keyb
oard decode as a
keyboard
a standard tYpe
type wri
ter keyboard
writer
keyboard..
MAXI-PROS also has sophisticated file
capabi
b ilities. It can access a
capabibilities.
a file for names and
f or inputs, and print form letters.
addresses, stop for
IItt has ffile
il e mergin
g capabilities so that it can store
merging
and combine paragraphs and page
pagess in any order.
Best of all, it is
565051
/4 " or
is in BASIC (0
(0S65D
51/4"
8" disk) so that it can be easily adap
ted to any
adapted
prin
ter or p
rinting job and so that it can be sold
printer
printing
for a
rice.
a measly p
price.
MAX
I,PROS - $39.95
MAXI-PROS-$39.95
THE EDSON PACK
ALL MACHINE CODE GAMES
FOR THE 8K C1P
a fast interceptor
INTERCEPTOR -You man a
protect
ing your cities ffrom
ro m Hordes of Yukky
protecting
Invaders. A
ut,
A pair o
off automatic cannon help o
out,
but the action speeds u
p with
wi t h each incoming
up
's act
ion, action everywhere. Lots of
wave. It
It's
action,
excitement
.95
excitement!! $14
$14.95
MONSTER MAZE -- A
n Arcade
le action
An
Arcade stY
style
game where you run a
ring monsters
a maze devou
devouring
as you go. If one sees you first, you become
lunch meat
meat.. Easy enough for the kids to Jearn,
learn,
and cha
llenging enough tto
o keep daddy happy.
challenging
$12
.95
$12.95
COLLIDE -— Fast-paced lane-swi
tching exc
itelane-switching
excite
ment as you pick up paints
points avoiding the jam
u succeed, we'll add m
are cars. The
car. If yo
you
more
fas t graphics and smooth
assembler code provides fast
S9.95
action. S9
.95
SPECIAL DEAL-THE ENTIRE EDSON PACK
PACK.95
ALL THREE GAMES FOR S29
S29.95
THE AARD
V ARK JOURNAL
AARDVARK
FOR OSI U
SERS -- T
his is a
USERS
This
a bi-monthly
tutorial journal running only articles abou
aboutt OSI
systems. Eve
ry issue contains programs ccustom
ust omEvery
ized for OS
I, tutorials on how to use and modify
OSI,
th
e system, and reviews of 051
the
OSI related products.
In the last two yea
rs we have run articles like
years
like
these !
these!
orial on Machine Code for BASIC
1)
1) A
A tut
tutorial
programmers.
programmers.
2)
stings of two word p
rocessors
2} Complete li
listings
processors
for BAS
IC IN ROM mach
ines.
BASIC
machines.
3) Moving the Directory off track 12.
4) Listings
Listings for 20 game programs for the OSI.
5) How
w rite high speed BASIC -- and
How to write
lots more -—
- $9.00
Vol. 1
1 (1980)
(1980) 6 back issues
issues-S9.00
ion for
Vol. 2 (1981) 2 back issues and subscript
subscription
4 additional issues - S9.00.
$9.00.
A CCOUNTS
ACCOUNTS
RECEI
V ABLE
RECEIVABLE
--
T
his
This
BOOKKEEPIN
G T
H E EASY WA
Y
BOOKKEEPING
THE
WAY
SIN ESS I
--WITH
WITH BU
BUSINESS
p
rogram
program
w il l handle up to
to 420 open accounts. It will age
will
accoun
ts, p
rin t invoices (including payment
accounts,
print
reminders) and give account totals. It can add
t eres t charges and warnings on late
au
t omatic in
automatic
interest
ovide and calaccounts, and can automatically pr
provide
cal
culate volume discounts.
24K and 05650
ual disks recom 0S65D required, d
dual
mended. Specif
y system.
Specify
ivable. S99
.95
Accounts Rece
Receivable.
S99.95
• •• •■ SPECIAL D
EA L -- NO LE
SS! ■ " *
DEAL
LESS!
plete business package for 05
A com
complete
OSI1 small
systems -- IC1,
I(C1, C2, C4 or C81.
C8). Includes MAX
MAXIPROS
ERA L L
ED GE R, IN
VEN TORY,
PROS, GEN
GENERAL
LEDGER,
INVENTORY,
PAYR'OLL
VA BLE -PAYROLL AND ACCOUNTS RECEI
RECEIVABLE
ALL T
HE PROGRAMS T
HE SMALL BUSIALL
THE
THE
BUSI
.95
NESS MAN NEEDS. S299
S299.95
P.S
P.S.. We're so confident of the quality of these
programs that the documentat
ion con
tains the
documentation
contains
programmer's home ph
one numbe
r!
phone
number!
SU
PERDISK II
SUPERDISK
T
his disk contains a
hat boots
This
a new BEXEC
BEXEC*' tthat
up with a
ich allows
a numbered directory and wh
which
creation, ddeletion
eletion and renam
ing of files
fi les without
renaming
calling other program
s. It also contains a
programs.
a slight
modif
ication to BASI
C to allow 14 character
modification
BASIC
fi
le names.
file
T
he disk conta
ins a disk manager that con The
contains
ta
ins a d
isk packer, a he
x/dec calculator and
tains
disk
hex/dec
several other utilities.
It also has a full screen editor (in machine
code on C2P
/C4)) that makes correct
ions a snap.
C2P/C4))
corrections
bering and program
We'll also tOSS
toss in renum
renumbering
search programs -- and sell the whole th
ing lor
thing
for -SUPERDISK
1/4")
(8").
SUPE
RD ISK II S29.95 I{ 5 1/4
'" S34.95 IS"'.
ANDFUN,
ANDFUN
TOO!
OSI
Our b
usiness package 1
business
1 is a set of programs
designed for the small businessman who does no
nott
have
e accountant
have and does no
nott need a
a full tim
time
an
on his payroll.
Th
is package is built around a
This
a GENERAL
LEDG
ER program which records al
ion s
LEDGER
alll transact
transactions
d es month
ly, quarterly, annual,
and which provi
provides
morthly.
an
d year·to-date
and
year-to-date PROF IT AND LOSS statements.
GENERA
L LEDG
ER <lIsa
GENERAL
LEDGER
also provides for cash
account balanCing,
LANCE SHEET
balancing, provides a
a BA
BALANCE
and has modules ffor
or DEPRECIAT
ION and
DEPRECIATION
LOAN
computation.
L
OAN ACCOUNT computat
ion.
GENERAL L
EDGER (an
d MO
DU L ES ) 5
129 .95 .
LEDGER
land
MODULES)
S129.95.
PA
Y ROLL is
t he
PAYROLL
Is designed to interface with the
GENERAL LED
GER . It will handle annua
LEDGER.
annuall
records on 30 employees with as many as 6
deduct
ions per employee.
deductions
PA
YROLL - $49
.95 .
PAYROLL$49.95.
INVENTORY is
it h
is also designed to interface w
with
the gene
ral ledge
r. T
his one will provide instant
general
ledger.
This
information on suppliers.
suppliers, initial cost and curren
currentt
value of your inventory. It also kee
ps track of the
keeps
order points and d
ate of last ship
ment .
date
shipment.
IN
VEN T ORY -- $59.95
INVENTORY
$59.95..
GAMES FOR ALL
A LL SYSTEMS
GALA
X IAN -- 4K .- One of the
the fastest and finest
GALAXIAN
mes ever wri
tten for the 051,
arcade ga
games
written
OSI, this one
features rows of hard-hitt
ing evasive dogf
ighti ng
hard-hitting
dogfighting
aliens thirsty ffor
or your blood. For those who
loved (and tired of) Alien
Alien Invad
ers. Specify
Invaders.
.95
system -— A bargain at 59
S9.95
MINOS -- 8K ■ -— Features amazing 3D graphics.
t he screen blanks,
You see a maze from the top
top,, the
and when it clears, you are
are in the maze at ground
level finding your way through on foot. R
eal istic
Realistic
enough to cause claustrophobia. -— $12
.95
S 12.95
NEW
- NE
W - NE W
NEWNEW-NEW
LABYRINTH - 8K -- T
his has a disp
lay backThis
display
back
ground simil
ar to MINOS as the action takes
similar
p
lace in a realistic maze seen from ground level.
place
Th
is is, however, a real ttime
ime monster hunt as you
This
ttrack
rack down and shoot mobile mon
sters on ffoot.
oot.
monsters
Checking o
ut and testing this one was the most
out
3.9 5.
fun I've had in years! -- $1
$13.95.
TIME TRE
K -■ 8K -- R
eal Ti
me an
d Real
cs
TREK
Real
Time
and
Real graphi
graphics
T
rek. See your
y our torpedoes
to rpedoes hit and watch your
Trek.
instrume
nt s work in real ti
me. N
o more uninstruments
time.
No
un
plays! -- $9.95
realistic scrolling dis
displays!
S9.95
SUPPORT ROMS FO
R BA
SIC IN ROM MAFOR
BASIC
MA
CHINES -- C1S/
C2S . T
his ROM adds line edit
C1S/C2S.
This
ffunctions,
un ctions, softwa
re selecta
ble sc
ro ll windows,
software
selectable
scroll
bel
belll support, choice of OS
OSII or standard keyboard
ro
ut ines, two cal
lable screen clears, and so
ftwar e
routines,
callable
software
support for 32-64 characters per liline
ne video.
Has
cter command to switch model
Has one chara
character
2 C
1P from 24 to 4
8 character line. When inC1P
48
in
stalled in C2 or C4 (C2S) requires instal
lati on
installation
of addi
ti onal chip. Cl
P requi
res only a
additional
C1P
requires
a jumper
change. -- 539
.95
$39.95
C1
E/ C2E simila
C1E/C2E
similarr to above but with extended
machine cod
e monitor. -- $59.95
code
Please specify system on all orders
~
OSI
Th
is is on
ly a p
art ial lilisting
st ing of wh
at we h
ave to offer
ve r 100 programs
at a shee
ts, ROMS
This
only
partial
what
have
offer.. We
We now offer o
over
programs,, d
data
sheets,
ROMS,, and boards
for OSI syste
m s. Our S1.00
alo g li
sts it all and con
tains ffree
ree program listi
n gs and p
rog ram m ing hin
ts tto
o boo
t.
systems.
$1.00 cat
catalog
lists
contains
listings
programming
hints
boot.
AARDVARK TECHNICAL SERVICES, LTD.
LTD.
2352 S. Commerce, Walled Lake, MI
Ml 48088
(313)
669-3110
(313)669-3110
-
OSI
Aug
UST. 1981.
\ugust.
1981. lsslJe
Issue 15
COMPUTE!
OSI RS232 Port
And The High
Speed Printer
Interface
Paul
Pau Lilly
Pelha
m,AL
PelhamAL
What About It?
II believe th
e th
in g II like most
ut m
rboa rd
the
thing
most abo
about
myy Supe
Superboard
II is that
that it
ii is full of surprises. Whateve
Whateverr OS
OSII
lacked in ddocumentation
ocumentatio n the
y made uupp for it in
they
u just ha
ve to find it. While use
rs of oth
er
utility, yo
you
have
users
other
syste
m
s
pay
upwards
from
$
100
for
a
seria
l
inte
r
systems
serial inter
face, yo
u ca
n put one oonn a Supe
rboard II for
you
can
Superboard
aaround
ro und $5. A
nd that includ
es a softwa
re se
lectabl e
And
includes
software
selectable
nd sha kin g. This article will show
ba ud rate with ha
baud
handshaking.
yo
u hhow
ow to in
stall the port,
pon, aand
nd how to use it as a
you
install
high speed printer
prin ter in
te rface.
interface.
How To Do It
OS
ws the sche
matic for tthis
hi s inte
rface in their
th e ir
OSII sho
shows
schematic
interface
nd, aalthough
ltho ug h tthe
he board has the run
user manual
manual,, a
and,
runss
etc
hed in it, tthe
he parts
pans were not in
stalled by
by OS
I.
etched
installed
OSI.
But don
't tr
y going by
by th
e board layout 10
plu g in
don't
try
the
to plug
yo ur parts,
pans, it's nnot
ot exactl
y co
rrect. Figure
Fig ure 1I is a
your
exactly
correct.
correct board layout.
la yout. If you
YO Li oonly
nl y nneed
eed a oone-way
n e-wa y
port, yo
u can
ca n omit Q2
,D 16,R62 and R66. If
I f yo
u
port,
you
Q2,Dlr>,R02
you
RS2 32 voltage swings, you can ccut
ut
want true RS232
betwee n the 2 pads show
n in the Note,
Note , and hook
between
shown
the high
hi g h eend
nd (pin 7 ooffJJ8)
3) 10
egative suppl
y.
to your n
negative
supply.
I have aann Anadex
printe r hoo
ked up 10
Anadcx DP8000 printer
hooked
to
m y Superboard aand
nd aalthough
lth o ug h the man
u a l fo
it
my
manual
torr ii
says it need
fo r its RS232
needss a minimum of -3 volts for
input, I've le
ft th
e 2 pads
pad s conn
ected (voltage to
left
the
connected
printe r swin
gs + 5 to 0 volts) aand
nd th
e printer
printe r wo
rks
printer
swings
the
works
just
fin e aanyway.
n ywa y. Of co
urse that doesn't
d oes n 't mean
m ea n
just fine
course
yours will,
will , so you ma
y want 10
d th
e nnegative
ega tive
may
to ad
add
the
suppl
y. IIff yo
u don
't need oorr want the extra speed
supply.
you
don't
from yo
ur printer,
printe r , yo
u need nnot
ot hoo
k up the
your
you
hook
handshake
signals.
This
you
handsh
a ke signa
ls. T
hi s way yo
u would be trans
tr"nsbaud ,
fe lTin g information to you
ferring
yourr printer a
att 300 baud,
ld allow yo
u to LIST a program oonn yo
ur
wh
ich wou
which
would
you
your
prin te r aand
nd tape at the same time. But if you
yo u want
printer
'■v
101
oorr need to run your
yo ur printer
p rin ter at hi
gh speed (we ca
n
high
can
run 44800
800 baud wit
h no hardware cha
n ges), for
with
changes),
printin g re
ports, ma
kin g lilistings
stin gs of oone
n e program,
program ,
printing
reports,
making
e n yo
u wi
ll need th
e hhandshake
a ndsha ke ca
pabili ty.
e tc., th
etc.,
ihen
you
will
the
capability.
e hhandshake
a ndsh a ke ca
pa bi lity. we ca
n connect
co nn ect oone
ne
For th
the
capability,
can
of four different ways (d
e pending on oour
ur printer),
(depending
to the Supe
rboard 's CIS
CTS (Clea
10 Se
nd) bus. If
Superboard's
(Clearr to
Send)
your printer uses aann RS232 co
mpa ta ble BUSY/
compatible
na l, th
e n co
nn ect it
to pin 3 ofJ3 a
nd :
READY sig
signal,
then
conned
it to
and:
+ ) when
whe n th
e printer
printe r is
I)
e sig
na l is high ((+)
1) II f th
the
signal
the
ead y, connect pin 6 of JJ33 10
fJ 3. See
rready,
to pin 9 o
ofJ3.
fifigure
g ure 33..
he signa
w (-)
e printer
printe r is
2) If tthe
signall is lo
low
(-) when th
the
read y, co
nn ect pin 10 oofJ3
f J 3 to
J 3 . See
ready,
connect
to pin 9 of
ofJ3.
fifigure
g ure 3.
If your
yo ur printer
printe r uuses
ses a TT
L compatable BUSY/
TTL
READY sign
a l (here we ca
n omit Q2
,D 16, R62 ,R66)
signal
can
Q2,D16,R62,R66)
and;
1) IIfr the sig
na l is hi
g h (( +
+ ) when
whe n the printer
printe r IS
signal
high
is
read y, conn
ect the sig
na l to pin 6 oofJ3,
fJ 3, the
th e
ready,
connect
signal
connect pin 10 oofJ3
f J 3 to
3.
to pin 9 of JJ3.
l
is
low
(-)
wh
en
the
printe r is
2) If the signa
signal
when
printer
ready
,
conn
ect
th
e
sig
nal
to
pin
9
o
f J 3. See
ready, connect the signal to
ofJ3.
fifigure
gure 33..
The
n in aallll cases, in fifigure
g ure 2 cut oone
n e foil
fo il aand
nd
Then
conn
ect between
be twee n 2 pads
pad s as shown
ro ute this
connect
shown,, to route
CTS sig
nal to
to th
e AC
IA. That's it for th
e hard
wa r e.
signal
the
ACIA.
the
hardware.
port, rready
eady to
to run yo
ur
Yo u now hhave
ave your
yo ur seria
You
seriall port,
your
printe r. Although this article ddescribes
escribes a hhook-up
ook-up
printer.
to a printer
printe r we ca
n aalso
lso hoo
k up to a te
nnin a l, aand
nd
can
hook
terminal,
pon as aann aud
io port. (More oonn the
use the serial port
audio
audio port
pon at the eend
nd ooff th
is article).
this
A little about the ACIA
g funhe
r , som
e unde
rs ta ndin g ooff the
th e
Before goin
going
further,
some
understanding
AC IA is necessa
r y. OSI
OS I uses tthe
he Motoro
la 685
0
ACIA
necessary.
Motorola
6850
ACIA chip
as 4 registers in it. Two registers
chip,, which h
has
n read from oonly;
nl y; the Receive Data Register
we ca
can
(r
ead hhex
ex add
... F001),
Faa I), aand
nd the Sta
tu s Registe
(read
addr.
Status
Registerr
ex add
... FOOO).
h e other
othe r two rregisters
egiste rs we
(r
ead hhex
(read
addr.
F000). T
The
ca
n oonly
nl y write into; th
e Transmit Data Register
Registe r
can
the
ex add
... Faa
I), and tthe
he Control Register
(write hhex
addr.
F001),
(w
rite hhex
ex add
... FOOO).
Control and Status
(write
addr.
F000). The Control
register
re what
wh a t ggive
ive us
u s th
e programmable
registerss a
are
the
fl
ex ibility to
to get th
e most oout
ut of oour
ur $5 inte
rface.
flexibility
the
interface.
Th
e contro
llows us to select th
e form
at
The
controll Registe
Registerr a
allows
the
format
we use
u se to tra
n slnit aand
nd receive bits, select Qour
UI'
transmit
tra
n smit rate (baud
), en
a bl e or di
sable control aand
nd
transmit
(baud),
enable
disable
inte
rrupt
sign
a
ls,
a
nd
r
eset
the
AC
I
A.
Bits
DO
a
nd
interrupt signals, and reset
ACIA.
and
re the counte
e and reset bits. Table 1I
DII a
are
counterr divid
divide
hese bits.
shows the usage for tthese
own in th
e tabl
e we can se
lect 1I of 3
As sh
shown
the
table
select
o
102
102
COMPUTE!
COMPUTE!
possible divisions of our transmit clock merely by
programming
If you have a stock Superboa
Superboard
progra
mming it. If
rd
The
III,
I, the TX clock input is aapprox.
pprox. 4800 Hz. T
he
monitor ROM (during system initialization) sets
the clock divide to 16, which gives us our baud rate
of 300 for oour
ur cassette interface. Now here's the
trick,
outputting
printer,, we write
tri
ck , prior to o
utpulting to our printer
zeros into DO and D
I, settin
g our clock divide to I.
Dl,
setting
1.
With our existing TX clock input of 4800 Hz, this
have
ve 300
will give us a baud rate ooff 4800. Now we ha
cassette,, and 4800 baud for our
baud for our cassette
printer,, with no hardwa
hardware
printer
re changes to go back and
between
D2,, D3
D3,, and D4 select
forth betwee
n them. Bits D2
different
length,, parity, a
and
diffe
re nt combinations of word length
nd
monitor
stop bits, Table 2 gives their usage. The moni
tor
sets these bits such that we transmit 8 bits
bits,, then 2
stop
That
my
sto
p bits. T
hat setup works fine with m
y printer
printe r so
kept
I ke
pt that format in my programming. You will
manual for your printer, d
deter
want to check the manual
etermine what format in which it needs to receive bits,
ACIA
D5,D6
and program the AC
IA accordingly. Bits D5,
D6
and D7 are used to program the IRQ and RTS
functions,, which are not needed at thi
thiss time, so we
functions
will leave these bits cleared. Therefore when you
want to set up the ACIA to run the printer at 4800
baud you will first want to write the binary
binary word
wo rd
00000011
into
F000 (POKE61440
(POKF.61440,3)
000000
11 in
to hex addr, FOOO
,3) top
ACIA,
then
word
reset the AC
IA, th
en write the binary
bin ary wo
rd
00010000 into F000
FOOO (POKE61440
, 16), to select the
(POKE61440,16),
format
fo rm at and baud rate.
(among
The Status Register will (amo
ng many other
othe r
things)
Transmitter
thin
gs) let us know when the
th e Tra
nsmitte r Register
is ready to accept anothe
anotherr word. Bit 1I of the Status
Register is the Transmistte
Transmistterr Register Read
Ready
y bit. If
it is
is set to 1,
I, we can
ca n send another word to the
(F00I).
Transmit Register (FOO
I). Two things will keep
set; 1)
ACIA
this bit from being set;
I) If
I f the
th e ACI
A has not
nOt yet
transferred the last word that was written
wrillen and 2) If
the CTS line to the ACIA is high,
high , indication
indi cation the
peripheral
cannot
nnot accept a word. Although the
pe riphe ral ca
Status Register
Registe r has a bit
bit (D3) reserved
rese rved to indicate
th e condition
co nditio n of the CTS line, itit will not
not be necessary
necessa ry
the
to check
is going
goin g to inhibit
inhibit DI
D I bit
bit anyway.
chec k it
it since
sin ce itit is
The monitor ROM checks the
th e Status
Statu s Register
Registe r prior
to loading a word into the Transmit
Transmit Register,
Register , and
will continue
con tinue looping
loopin g to check
check D1
D I in the Status
Status
Register
Register until itit finds
find s itit set, then
th en the monitor will
load the
th e word we want to transfer into the Transmit
Transmit
Register. We
We need no extra
extra programming
programming to
support
handsha ke signal,
signal, as the monitor
monitor is
support our handshake
already
already taking care
ca re of this for us.
us.
How To
To Test
Test
We can
can now test our system to see
see if itit is
is working
properly.
prope rly. We don't
don 't need to hook
hook the printer up to
make these checks,
checks , in
in fact
fact itit will probably
probably be
be better
better
if
if we
we don't.
do n't. The
T he first
first thing we should do isis load aa
fairly
program into the system. As it's
it's loading,
fairl y long
lo ng program
notice
notice the
the speed itit isis listing on
o n the
the screen,
screen, that's
300
300 baud.
baud. Now from
from the
the keyboard,
keyboard , type
August.
August, 1981.
1981 Issue
Issue 15
15
PO
KE7 1440,3 (reset AC
IA) the
n type
POKE71440,3
ACIA)
then
PO
KE61440, I6 (program AC
IA). Next type
POKE61440,I6
ACIA).
SA
VE, then LI
ST. Now you shou
ld see
e program
SAVE,
LIST.
should
sec th
the
listing at a speed 16 times faster th
an it is loaded at,
than
or 4800 baud. Now
Now,, as the program is listing,
connect your CTS input to either + 5 volts or
ground (depe
ndin g oonn how we co
nfigured it
(depending
configured
ea
rlier) such that you sim
ulate a peripheral
periph eral B
USY
earlier)
simulate
BUSY
state. The program should stop listing and not
continue until we remove th
e input. If
the
If these tests
r ; if
re ready to hook up our printe
pass then we aare
printer;
the tests fa
il , you will need to go back and recheck
fail,
ing.
the ha
rdwa re modifications and programm
hardware
programming.
Check the manu
al for your printer and see what is
manual
necessar
y to set it up for an RS232 in
put at 4800
necessary
input
he Anad
ex printer has 3 sets of dip switches
baud. T
The
Anadex
that can be set for a wide range of baud rates,
different types of inte
rfaces, paper le
ngth, number
interfaces,
length,
of lines to skip over perforation
pe rforation etc. Hook the
BUSY/ READY output from the printer to JJ33 of
BUSY/READY
yo
ur Superboard as described ea
rli er for your
your
earlier
system. Hook the RS232 ooutput
utput from your Superboard JJ33 pin 2 to th
e printer
printe r input. Hook pin 11 of
the
JJ33 to the printer COM lin
e (gro
und ). T
urn on your
line
(ground).
Turn
printer and away you go.
Add A Speaker
I f yo
u don't have a printer at this time but want
wa nt to
If
you
go ahead and make the hardware addition anyway,
you ca
n use this
this port to hook up a speaker. You
can
can con
nect an 8 ohm speaker between pins 1I and
connect
2 of JJ3.
3. Now set
setup
up fo
forr 4800 baud and see how
u LIST
LI ST it. You
Yo u can
your program sounds when yo
you
ea, and add some interesting
expand on this id
idea,
eeffects
ffects to your existing programs.
progra ms. Remember,
Remember,
mode , aany
ny PRINT
PRI NTaargument
rgument
when you are in SAVE mode,
goes to the AC
IA as well
we ll as your sc
ree n when you
ACIA
screen
LI ST it.
LIST
FInals
Some Finals
re fu l not to program the ACIA
AC IA
You should be ca
careful
SA VE mode. II don't
don't know
whil e you are in the SAVE
while
ha ngs up the system
system sometimes
sometim es when
whe n
wh y, but it hangs
why,
POKE5 17 , I will put
p ut you in SAVE
you try to do it. POKE517,1
POK E5 17,O will take you
you out of
o f it.
mode and POKE517,0
mode
Alth ough you can
ca n now run your printer at 4800
Although
li mited to 300 baud for your
yo ur
baud, you are still limited
the audio
a udio frequencies
frequ encies generated
gene rated in
cassette due to the
yo ur Superboard.
Superboard . Since the
th e
the cassette portion of your
sends its
its argument
argument to the ACIA
AC IA
PRINT statement sends
SA VE mode,
mod e, we can
ca n output to the
when in
in the SAVE
when
printe r any
any results
resu lts we normally
no rmall y send to the video
printer
scree n. Most
Most small
sma ll system
s)'stem printers
printe rs provide
provide 80
80
screen.
co lumns per line.
line . The
Th e Superboard
Supe rboa rd software
so ftware is set
set
columns
LF/CR, after
afte r 72 consecutive
consecu tive characters
characte rs
up to force a LF/CR,
AC IA. During
Durin g a cold start,
start, the system
system defaults
defaults
to the ACIA.
to a terminal
te rminal width
width of
o f 72
72 characters
characters per
pe r line if
if you
you
to
la rger line
line length.
le ngth. This
Th is can
ca n be
be
try to request
request aa larger
try
fi xed by writing
writin g 80
80 (Hex 50)
50) in the
th e terminal
terminal width
width
fixed
sto rage location
location (hex
(hex F)
F) after
afte r initialization,
initia li za ti on , by
by the
storage
POK E 15,80.
15,80.
statement POKE
August.1981
1981, Issue
Issue 15
15
August.
103
103
COMPUTE!
COMPUTE!
Table 1I - Control
Contro l Register
R egister Usage,
Usage, Bits
Bits DO
DO 8c
& Dl
DI
Table
OSI
HEXDOS
OSIHEXDOS
01
Dl
00
DO
RESULTS
RESULTS
o
0
0
TX Clock
Clock input
inp ut equals
equa ls the
the transmit
tran smit rate
ra te
TX
0
Can
Can your
your disk
disk operating
operating system
system do
do this?
this?
(baud )
(baud)
o
0
1
1
0
1
1
TX Clock
C loc k input
input is
is divided
divide d by
by 16
16 to
to give
g ive
TX
transm it rate
rate (baud)
(bau d)
transmit
T X Clock
Cloc k input
inp ut is
is divided
di vided by
by 64 to
to give
g ive
TX
trans mit rate
rate (baud)
(bau d)
transmit
Reset AC
ACIIA
A
Reset
o
No
No matter
maner what
what you
you do
do with
with your
your C1P
C1 P or
or Superboard
Superboard II,
II, here's
here's
a
bener.
a remarkable
remarkable disk
disk operating
operating system
system that
that will
will help
help you
you do
do itit better.
By
By using
using subroutines
subroutines in
in OSI's
OSl's ROM
ROM BASIC.
BASIC, HEXDOS
HEXOOS offers
offers
power,
power, versatility,
versatility, and
and incredible
incredible compactness
compactness (only
(only 2K).
2K). HEXHEXDOS
the capabilities
capabilities of
of OS65D,
OS65D, liberating
liberating 10K
10K of
of
DOS far
far surpasses
surpasses the
memory
memory and
and disk
disk space
space in
in the
the process.
process.
•• Load
or save
save BASIC
BASIC programs,
programs, machine
machine language,
language, and
and data
data
Load or
files
files by
by name.
name.
•• Chain
disk.
Chain BASIC
BASIC programs
prog rams from
from disk.
•• Up
to 22
22 data
data files
fi les may
may be
be open
open simultaneously.
simultaneously.
Up to
Table 22 - Control Register
R egiste r Usage,
Usage, Bits
Bits D2,
D2 , D3,
D 3, D4
Table
•• Resides
Resides at
at the
the beginning
beginning of
of RAM,
RAM , leaving
leaving maximum
maximum space
space
RESU LTS (TRANSMIT
(TRANSM IT FORMAT)
FO RMAT)
RESULTS
0
0
for user
user programs.
programs.
for
•• Full
w~h optional
optional single-stepping.
single·stepping.
Full trace
trace of
of BASIC
BASIC programs
programs with
7 bit
bit word,
word , 11 parity
p a rity bit
bit (even),
(even ), 22 stop bits
bi ts
7
•• Supports
Supports real-time
real-time clock
clock and
and tone
tone generator.
generator.
0
bit word,
wo rd , 1I parity
parity bit (odd),
(odd), 22 stop bits
bits
7 bit
7
•• True
to correct mistakes
mistakes easily.
easily.
True line
line editing
editing allows
allows you
you to
o
7 bit
bit word,
word, 1I parity
parity bit
bit (even),
(even), 1I stop
s to p bit
bit
7
b it word,
wo rd , 1I parity
parity bit
bit (odd), 11 stop
S l O p bit
bit
7 bit
•• Includes
to de
deIncludes aa disassembler
disassembler and
and eight useful
useful programs
programs to
1
0
0 0
0
1
bit word,
word , 22 stop bits
b its
8 bit
11
0
0
11
add
add random-access
random·access capability
capability to
to disk files.
fi les.
•• Satisfaction
your money
money promptly
promptly refunded.
refunded .
Satisfaction guaranteed,
guaranteed, or your
1
1I
11
word , 1I parity
parity bit (even),
(eve n ), 1I stop
sto p bit
bit
8 bit word,
b it word,
wo rd , 1I parity
parit y bit
bit (odd), 1I stop
s top bit
bi t
8 bit
04
D4
03
D3
02
D2
0
0
0
0
00
0
11
0
1
0
0
1
0
0
I1
11
monstrate
monstrate the
the power of
of the
the system.
system. Two
Two BASIC
BASIC subroutines
"Documentation
" Documentation is clear
crear and
and complete,
complete, the
the best II have seen
from
from any
any source."
source."
- Ronald
Ronald C.
C. Whitaker,
Whitaker, Compute!
Compute! magazine, April
April 1981
1981
Price:
Price : $55.
$55.
(Manual
(Manual and 51/4-inch
5V.-inch diskette)
diskette)
The
Th e 6502 Program
Program Exchange
2920 West
West Moana
Moana
Reno,
Reno, NV 89509
J3
lt hl
\&
HOME OF THE •••• f\ O I FULL
5
W' MIHCORMOE
.. .. W.
O.S.l.~~~LpHICS
...-- — °OFATIHAE
O.I-GRAPHICS
DATA FLIGHT
! W MICRO rx*TA
FLIGHT SIMULATOR
SIMULATOR
STREAMW0OD,lLLIN0IS
C2/C4P
STREAMWOOD,ILLI NOIS C2IC4P
G
$14.95
....... ......... 514.
95
60103
FULL GRAPHICS/MADE
GRAPHICS / MADE EASY...C1/C2/C4P...$14.95
EASY... C1/ C2 / C4P' .. S14 .95
(VERY USEFUL
USEFUL'UTILITY
PROGRAM)}
{VERY
' UTILITY PROGRAM
1
SIMON!
SIMON!
.... · ' · ... "10·;
°
(". r", 1 10"1"""11
_ _ _ _ __
-, 0
I(hl'~
®
@
IIIIV
0
"'''10';
Note:
I ,nror "imc
"1" 1(",,,!'I'l
RS232 ."h~I('·
rulug
«wSnf»-<( ".
in roil
roil Ibeiwet
~""'~'
..· .....·.·"
I§]
FULL GRAPHIC
GRAPHICS(SOUNDC4P)....C1/C2/C4P...$7.95
FULL
S{ SOUND C4Pl... .C1 / C2 / C4P.. . S7. 95
ADD
MUSIC TO
$7.95
ADD STEREO MUSIC
TO YOUR
YOUR SYSTEM
SYSTEM ........ .. ........ S7.
95
(PLANS AND
COMPLETE DOCUMENTATION
DOCUMENTATION....TTL
LOGIC)
{PLANS
AND COMPLETE
... T n
LOGIC }
VOTRAX
CASSETTE
$5-95
PROGRAMS ON CASS
ETTE FROM .. ...... S5.95
TIPS
WITH PROGRAMMING TIP
S AND HARD COPY
$1-00
OF FULL GRAPHICS PROGRAM .. ...... ...... ...... .. .. .. .. .. .. . $1.00
CATALOG
CATA LOG
ALL
ALL
COPY....
SOFTWARE COMPLETE WITH HARD COpy
.. ..
°
I
AL:EW
SPACESHIPS AlIt
Ailt mW11IIO
HtLtAJIN; XOH*.
.....
IDl UAe~"ln
.~""u
HUH UNI CAN
Rampaging
RrjbarsI
Robo
ts I
l(Ii
'\ 11110\
Rf.l
I OK
khl
Riil 1010\
tUK
kh
', nil
R6R
17(1
kR72
7:! II
..
IK
OF tTHE
SPACESHIPS, WI'
Bin1 Tn
THE
0'
U UIoCUBIlS,
BQ3OTS AHE SO PAST THAT
::
~~~~ ~r:'f, ~~:.nU!
-AS
ALL
SE
O'ILK
TP
IBEI
A
<.~
unrifllH ICIlOtS
agio's
1llIIP~1""
I0U
BLIKX1
is A
* 'lilT
vebi
IS
r
f;:.-~
fas:
pur
c-AM
.uu; '01
, U
nC_I ... _.
FOB ...
MI
Sit OS
OS!I ....
BASIC.IX-H0R
cCASSETTE
...:ur:-:r
BASE3 COl\,IJTP_
CCKPLTE'.. I:
IT
I4SrtI
C3LOB I1 SOUIIO.
SCWND. 1(1
1CI
COI.O_
K03£L
~
'.1
::
ISOLDES
1. =L ~
7CWPAT1BLE
t
~n~l.U '
.....u
1 1.00 I t O'IDDIIIG .~ .. . C ~
:a,.ltI r<ll
iI'ClJil.T A!.J. ' .\.!Its ,14TlIIo l so"..II~ Fe," e lP
-ME RS28a
k"'
'l1'l "IS
fJ'l
QB 21'01'10
2N39D4I
1)110
D16 11'0'111
IN9I I
kll
'l 4.7K
1.7 h
RU3
khi
KiJt.i Hlh
HiK
BEFORE
IDU7
EtT.to. POINtS ASD BOK-JS BiEfi^l
IlBI AHAADED F3B HITTING 0\E
"I
1Part*
'''rI~ ILJiil
'"
YOU DESTHOY
;~~~~~:'~;I;~~~;:U ,
'. ~"'~
' 0 ~ \D
SBT
r.I I
i
1("''l
'\201 I
RS232OLT1
QI
'l"':J!lIlI,
yi
2N380fl
c.ono
OF MIle£
UUCE lI
XILLEll
Oh TILl
;Mt UII:.
UflTIs '■
O~
UJt • •ROBOTS 011
1';011,"
.1",,,,, .f,,,
... ,,1.
Pad* shown
(fallI.,,,
on "",I.
widen!
..arbaatdl.Canun
r h"~''' I , ( " ..... 'nrgai
'''I(~ ' '''
"'1'1,1> ' " I' ",
312/837-7569
312/
837-7569
741 SURREY DRIVE
......:. OBDDtS
.v;t
:e PAIDI
Pilm THUlE
iHHin .....
u.;
SKIPPED P~I.CE
~ '"
::!.x~ft~~~ci~
Introductory
OUer
Ottei::
h.
...9S
ItxPl!\U 911 S/8\l
SOON!
COMINO BOON.
Piolrolland
Soil ware
P,ets
e l1and Software
* WHITTAKEAAD
WHITTAKERRO..
22005
00!5A
YPSILANTI.MI.481B?
YP81LANTI,
MI. 48187
Figu
re I1
Figure
a:~ l'
5PECIH
SYiltH""*
· ···· nw[ snC
IH fIOUR
OWl STAI
D'. ·····
.
COMPUTE!
1()4
Announcing:
U14
6850
t'ROM WII
August.
August 1981. Issue 15
COMPUTE!^
COMPUTE!'s
FIRST
BOOK OF
PETICBM™
PET/CBM
o
Conn 1*1 [ pads
I
Cul f"i
fnill hr
hire
CUI
r" '
2
OF
... handshal<.,
'Fur
hancKhaki- ullabitit
rapahilili)
fro
m pr
iml:r . nil
From
printer,
rut f"i
foill
w
h u,", ~shot*
h o .. n
, mal<.,
when?
n.makr
('onn«
lion "'herr
h ""I1.
conneclion
where ~-.hown.
ESC
Q
Since our first issue in the Fall of 1979,
1979,
we've provided more PET/CBM inforinfor
mation to owners and users than
any other magazine in the industry,
industry.
Now we're taking the best of ou
ourr
published material, adding new
material,
material, and putting it all together
into our first special PET/CBM book:
book;
COMPUTE!'s
COMPUTED First Book Of PET/CBM
will be available in the early Fall.
With a design intended to make it
easy to use, and contents a
imed at
aimed
assisting a range of users from
beginners to advanced, you'll find
ill become a
that COMPUTE! Books w
will
luable and permanent addition
va
valuable
to your reference library, But what
else would you expect? After all,
all
we're the resource,
resource.
Reserve your copy today at your
COMPUTE! dealer. If one's not handy,
handy,
use the coupon below or call TOLL
Figure 2
+5
J3
,
R62
R66
Q2
1116
-=
FREE 800-227-1617, Ext.
Ext. 401.
401.
6~-----------
In Callfomi
a coli
5 , Ext. 401
California
call 800·n2-354
800-772-3545,
401..
9
U62
We accept MasterCard and VISA
Dealer Inquiries Invited
8
PET/CBM~ trademark of Commodore Bu!oines.s
PET/CBM'"
Business Mochines.lnc.
Machines, Inc.
r------------------,
I
10'>-- - - - - - -- - 10
L-_ _ _ _ _ _
~
me _ _ copy(s) of COMPun!'s
Please send me
COMPUTER'S First Book
PET/CBM <E
(n $12.95 each.
each
I Of PETICBM
Nome
I ~me
I Address
_ __ _ _ _ CTS
II
City
.
State
Zip
lip
Please add
odd $2.00 for postage/handling for
(or each book ordered.
Payment must be in US funds,
fee.
funds $1.00 b1l!ing
billing tee.
I;
I
II
I
II
]
\
I All
All orders
orders from
from outside
outside US
US and
and Canada
Canada must
must be
be prepaid.
prepaid
II
~-----------------~
|
Figure 3