Date post: | 08-Apr-2018 |
Category: |
Documents |
Upload: | cubemanpdx |
View: | 216 times |
Download: | 0 times |
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 1/84
C a n a d a$ 4 . 2
U S A$ 3 . 5
OO
■
0
:
U
.
U
U
L o a d e r m a k e r- T a k et h e p a i n o u to f G E O Sp r o g r a md e v e l o p m e n t
F a t t e n i n gt h eC 1 2 8- R A Me x p a n s i o na U e r n a t i v e s
C u s t o m i z i n gC 1 2 8C P / M- P a t c h e sf o rC P M + . S Y S
H o wr a n d o mi s R N D ?A n a n a l y s i so f t h eC 6 4a n dC 1 2 8R N Dr o u t i n e s
I n s i d eG E O S1 2 8- I n f o r m a t i o ny o uw o n ' tf i n da n y w h e r ee l s e
T h eC 6 4P o w e rC S h e l l- M a k i n gi t w o r kw i t ha R A Me x p a n s i o nu n i t
T u r n i n go f fw r i t e / v e r i f y- M o d i f y i n g1 5 7 1v e c t o r s
C o n v e r t i n g1 5 4 1d i s k st o 1 5 7 1 f o r m a t
A n i n t r o d u c t i o nt o G E O Sf i l e s- U s i n gt h eh i g h - l e v e ld i s k r o u t i n e s
P r o d u c tR e v i e w s :M a c r oS e t1 f r o mX y t e c ,X - 1 0P o w e r h o u s eC o m p u t e r
I n t e r f a c e ,S F XS o u n dE x p a n d e r , W h a t ' sR e a l l yI n s i d eT h eC 6 4 ?r e v i e w e d b
J i mB u t t e r f i e l d
P l u sR e g u l a rc o l u m n sb y T o d dH e i m a r c ka n dJ o e lR u b i n ,B i t s ,a n dm o r e
T h u n d e r B e a rb y W a y n eS c h m i d t
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 2/84
U T I L I T I E SU N L I M I T E D ,i n c .
1 2 3 0 5N . E .1 5 2 n dS t r e e t
B r u s hP r a i r i e ,W a s h i n g t o n9 8 6 0 6
O V E R5 0 0 0U N I T SS O L D ! ! !
U n l i k eo u rc o m p e t i t o r s ,w ea tU t i l i t i e sU n l i m i t e d ,I n c .h a v eb e e nc o n c e n
t r a t i n ga l lo u re f f o r t si nb r i n g i n gt h en e w e s tt e c h n o l o g y .T h er e s u l to ft h a t
e f f o r ti sS u p e r C a r d .I ti sf a rs u p e r i o rt oa l lt h ec o p yu t i l i t i e so u tt h e r ei n c l u d i n g :
R a m b o a r dR e n e g a d e ,
D a t e lB u r s t
N i b b l e r ,
2 1 S e c o n d ,
U l t r a b y t e ,
a n d
a n y
o t h e rb a c k u pu t i l i t yo nt h em a r k e t .S od o n ' tb el e d
a s t r a y .W ew i l lg i v ey o u
y o u rm o n e yb a c ki ft h e yc a nb a c ku pm o r eo ft h el a t e s ts o f t w a r e ,w i l l
t h e y ? ? ?
I n
a
w o r d
" N O !
A L L
S A L E S
A R E
F I N A L ! ! ! "
T h a t
i s
t h e i r
r e s p o n s ei fy o uw a n tt or e t u r nR A M B O .
I fy o uh a p p e nt os e et h ea d so nR A M B O a r d( o r i g i n a ln a m eh u h ) ,t h e y
c l a i mt ob ec h e a p e r .W e l l ,t h a t ' sp a r t i a l l yt r u e ,b u ta si su s u a l ,m o s t l y
f a l s e .F i r s ty o un e e dt ob u yt h e i rb o a r d ,t h e ny o u
n e e dt os p e n da n o t h e r
$ 3 4 . 9 5f o rs o f t w a r et or u nt h e i rb o a r d .T h a tm a k e st h ec o s to fR a m b oR e n e g a d e
t ob ea tl e a s t5 6 9 . 9 0 .B u tt h e nt h e yc l a i my o uc a nu s eo u rs o f t w a r e( w h a td o e st h a t
s a ya b o u tt h e i rs o f t w a r e ? ) .W e l ln o w ,t h a tm a yb ej u s ta
b i to faw h i t el i ea sw e l l ,
w h i l ei t ' st r u et h a te a r l y ,l e s sr e l i a b l ev e r s i o n sw o r kw i t hT H E I Rt h i n g ,t h en e w
m o r er e l i a b l ev e r s i o n so fS u p e r C a r ds o f t w a r ei ss p e c i f i c a l l yd e s i g n e dn o tt ow o r k
w i t ht h e i rR A M B O .F o rt h o s ep e o p l et h a th a v ef o u n do u tt h a tt h eR A M B Oa n d
R e n e g a d es o f t w a r ep a c k a g ea r eq u i t ei n t e r i o rt oS u p e r C a r dw eo f f e rt h ef o l l o w i n g
s u g g e s t i o n .S e n di ny o u rR A M B Oa n d5 2 4 . 9 5a n dW E I LS E N DY O UT H ER E A L
T H I N G—S u p e r C a r d .N e e d l e s st os a yy o un e e dap a i ro fh i pb o o t st ow a l k
t h r o u g ht h e i rc l a i mt h a tt h e ya r et h eb e s t .B yt h ew a y ,t h e i rs o f t w a r et h a t
b a c k su pa nu n p r o t e c t e dd i s ki n5 0s e c o n d s ,w e l l ,
i td o e s n ' te v e nu s et h e
R A M B Ot ow o r k .Is u p p o s ei fy o uh a dac h o i c eo fa nO L D S M O B I L Eo raC o r v e t t e
w i t hn oe n g i n e ,y o uw o u l ds t i l lp i c kt h eO l d s m o b i l e .
S u p e r C a r d1 5 4 1 / 1 5 4 1 C
$ 4 9 . 9 5
2d r i v ev e r s i o n
$ 7 9 . 9 0
S u p e r C a r d1 5 4 1 - 1 1
$ 5 9 . 9 5
2d r i v ev e r s i o n
$ 9 9 . 9 0
S u p e r C a r d1 5 7 1
$ 5 9 . 9 5
2d r i v ev e r s i o n
$ 9 9 . 9 0
S u p e r C a r d1 5 4 1 - 1 3v e r s i o nw i l lw o r kw i t hm o s tc o m p a t i b l ed r i v e s .
T h e s ep r i c e si n c l u d es o f t w a r e .Y o ud o n ' tn e e dt os t e a l
a n y o n ee l s e ' ss o f t w a r et o
m a k ei tw o r k . S
U P E RP A R A M E T E R S5 0 0P a c k# 1a n d# 2
5 0 0P a c k# 1■$ 2 4 . 9 5h a st h ev i n t a g ep a r a m e t e r so n
i tt h a tn oo n ee l s eh a s .
T h i sp a c kc o m e si na5 - d i s ks e t .
5 0 0P a c k# 2■$ 2 9 . 9 5h a sa l lt h em o s tc u r r e n tp a r a m e t e r so ni t .A n dp u t
t o g e t h e ra so n l yU t i l i t i e sU n l t d .c a n .A l lS u p e rP a r a m e t e rP a c k sa r ec o m
p l e t e l ym e n ud r i v e n ,f a s ta n dr e l i a b l e .I n c l u d e do nb o t h5 0 0P a c k si so u r
s t a t e - o f - t h e - a r t6 4 / 1 2 8S u p e rN i b b l e ra tn oe x t r ac h a r g e .
S U P E RP A R A M E T E R S1 0 0 0P a c k# 1
U t i l i t i e sU n l t d .h a sd o n ei ta g a i n ! !W eh a v ec o n s o l
i d a t e da n dl o w e r e dt h e
p r i c e s
o n
t h e
m o s t
p o p u l a r
p a r a m e t e r s
o n
t h e
m a r k e t
.
.
.
S u p e r -
P a r a m e t e r s ,
n o wy o uc a ng e t
1 0 0 0p a r a m e t e r sa n do u r6 4 / 1 2 8n i b b l e r
p a c k a g ef o rj u s t5 3 9 . 9 5 ! ! !T h i si sac o m p l e t e1 0
d i s ks e t ,t h a ti n c l u d e s
e v e r yp a r a m e t e rw eh a v ep r o d u c e d .
P A R A M E T E R SC O N S T R U C T I O N
S E T
T h e
c o m p a n yt h a th a s
T h eM o s t
P a r a m e t e r si sa b o u tt o
d o
s o m e t h i n g
U n b e l i e v a b l e .W ea r eg i v i n gy o um o r eo fo u rs e c r e t s .U s i n gt h i sV e r yE a s y
p r o g r a m ,i jw i l ln o to n l yR e a d ,C o m p a r ea n dW r i t eP a r a m e t e r sf o rY o u ;i tw i l l
a l s oC u s t o m i z et h ed i s kw i t hy o u rn a m e .I tw i l li m p r e s sy o ua sw e l la sy o u r
f r i e n d s .T h e" P a r a m e t e rC o n s t r u c t i o nS e t "i sl i k en o t h i n gy o u ' v ee v e rs e e n .
I nf a c ty o uc a ne v e nR e a dP a r a m e t e r st h a ty o um a yh a v ea l r e a d yw r i t t e n ;
t h e nb yu s i n gy o u rc o n s t r u c t i o ns e tr e w r i t ei tw i t hy o u rn e wC u s t o m i z e d
M e n u .$ 2 4 . 9 5
I fy o uw i s ht op l a c ey o u ro r d e rb yp h o n e ,p l e a s e
c a l l2 0 6 - 2 5 4 - 6 5 3 0 .
A d d$ 3 . 0 0s h i p p i n g
&
h a n d
l i n g ;
$ 3 . 0 0
C O D
o n
a l l
o r d e r s ,
v i s a ,
M / C
a c c e p t e d .D e a l e rI n q u i r i e sI n v i t e d .
W O R L D ' SB I G G E S T
P R O V I D E RO F
C 6 4 / 1 2 8
U T I L I T I E S
S o f t w a r eS u b m i s s i o n sI n v i t e d
W ea r el o o k i n gf o rH A C K E RS T U F F :p r i n tu t i l i t i e s ,
p a r a m e t e r s ,
t e l e c o m m u n i c a t i o n s ,
a n d
t h e
u n u s u a l .
W en o wh a v eo v e r1 , 0 0 0p a r a m e t e r si ns t o c k !
L O C KP I C K-T H EB O O K S-f o rt h eC 6 4a n dC 1 2 8
L o c kP i k6 4 / 1 2 8w a sp u tt o g e t h e rb yo u rc r a c kt e a m ,a sat o o lf o rt h o s e
w h oh a v ead e s i r et os e et h eI n t e r n a lW o r k i n g so fap a r a m e t e r .T h eb o o k s
g i v ey o uS t e p - B y - S t e pI n s t r u c t i o n so nb r e a k i n gp r o t e c t i o nf o rb a c k u po f1 0 0
c l e a ra n dp r e c i s et h a ta n y o n ec a n
u s ei t .
p o p u l a rp r o g r a mt i t l e s .
U s e sH e s m o na n dS u p e r e d i t .I n s t r u c t i o n sa r es o
•O U RB O O KT W OI SN O WA V A I L A B L E•
B O O R1 :I n c l u d e sH e s m o na n dad i s kw i t hm a n yu t i l i t i e ss u c ha s :K E R N A L
S A V E ,I / OS A V E ,D I S KL O GF I L Ea n dl o t sm o r e ,a l lw i t hi n s t r u c t i o n so nd i s k .
A l o n g - t i m ef a v o r i t e .
B O O K2 :
1 0 0N E W
E X A M P L E S ,H e s m o no nd i s ka n dc a r t r i d g ep l u sm o r e
u t i l i t i e st oi n c l u d e :AG e n e r a lO v e r v i e wo nH o wt oM a k eP a r a m e t e r sa n daD i s k
S c a n n e r .
$ 1 9 . 9 5e a c hO RB U YB O T HF O RO N L Y$ 2 9 . 9 5
N o ww i t hF R E E
H e s m o nC a r t r i d g e .
T H E1 2 8S U P E R C H I P
-A ,Bo rC( a n o t h e rf i r s t )
A—T h e r ei sa ne m p t ys o c k e ti n s i d ey o u r1 2 8j u s tw a i t i n gf o ro u rS u p e r
C h i pt og i v ey o u3 2 Kw o r t ho fg r e a t
B u i l t - i nU t i l i t i e s ,a l la tj u s tt h eT o u c ho fa
F i n g e r .Y o ug e tb u i l t - i nf e a t u r e s :F i l eC o p i e r ,N i b b l e r ,T r a c k&S e c t o rE d i t o r ,
S c r e e nD u m p ,a n de v e na3 0 0 / 1 2 0 0b
a u dT e r m i n a lP r o g r a mt h a t ' s1 6 5 0 ,1 6 7 0
a n dH a y e sc o m p a t i b l e .B e s to fa l l ,i td o e s n ' tu s eu pa n ym e m o r y .T ou s e ,
s i m p l yt o u c haf u n c t i o nk e y ,a n di tr e s p o n d st oy o u rc o m m a n d .
B—H A SS U P E R8 1U T I L I T I E S ,ac o m p l e t eu t i l i t yp a c k a g ef o rt h e1 5 8 1 .C o p y
w h o l ed i s k sf r o m1 5 4 1o r1 5 7 1f o r m a tt o1 5 8 1 .M a n yo p t i o n si n c l u d e1 5 8 1
d i s ke d i t o r ,d r i v em o n i t o r ,R a mw r i t e ra n dw i l la l s op e r f o r mm a n yC P / M&
M S - D O Su t i l i t yf u n c t i o n s .
C—" C "I SF O RC O M B Oa n dt h a t ' sw h a ty o ug e t .As u p e rc o m b i n a t i o no f
b o t hc h i p sAa n dBi no n ec h i p ,s w i t c h a b l ea tag r e a ts a v i n g st oy o u .A l l
C h i p sI n c l u d e1 0 0P a r a m e t e r sF R E E !
C h i p sAo rB :$ 2 9 . 9 5
e a .
C h i pC :$ 4 4 . 9 5e a .
S U P E RG R A P H I C S1 0 0 0P A C K
T h a t ' sr i g h t !O v e r1 0 0 0g r a p h i c si na1 0 - d i s ks e tf o ro n l yS 2 9 . 9 5 .T h e r ea r e
g r a p h i c sf o rv i r t u a l l ye v e r y t h i n gi nt h i sp a c k a g e .T h e s eg r a p h i c sw o r k
w i t hP r i n tS h o pa n dP r i n tM a s t e r .
A L LT H EA B O V EF E A T U R E S ,A N DM U C HM O R E !
P L U SAF R E EU T I L I T YD I S Kw / S U P E RE X P L O D E !V 4 . 1 .
M A K EY O U RC - 6 4 ,6 4 - Co rC - 1 2 8 * ,D - 1 2 8 *S U P E RF A S Ta n dE A S Yt ou s e .
A D U L TG A M E&G R A P H I C SD A T AD I S K S
G A M E :Av e r yu n u s u a lg a m et ob ep l a y e db yav e r yO p e nM i n d e da d u l t .I ti n
c l u d e saC a s i n oa n dH o u s eo f1 1 1R e p u t e .P l e a s e ,y o uM u s tb e1 8t oo r d e rE i t h e r
O n e .
D A T A
• :T h i sP o p u l a rd i s kw o r k sw i t hP r i n tS h o pa n dP r i n tM a s t e r .
N o wV e r s i o n1
+
2. . .
$ 2 4 . 9 5e a .
••••••••••••••••••••••••••••••••••••••••••••••••••
*
N E W !S U P E RC A R T R I D G EE X P L O D E !V 4 . 1w / C O L O RD U M P$ 4 4 . 9 5
I n t r o d u c i n gt h eW o r l d ' sF i r s tC o l o rS c r e e nD u m pi nac a r t r i d g e .E x p l o d e !V 4 . 1
w i l ln o wS u p p o r tD i r e c t l yf r o mt h es c r e e n .F U L LC O L O RP R I N T I N Gf o rt h e
R a i n b o wS t a rN X - 1 0 0a n da l s ot h eO k i d a t a1 0&2 0p r i n t e r s .
T h eM o s tP o w e r f u lD i s k
D r i v ea n dP r i n t e rC a r t r i d g ep r o d u c e df o rt h eC O M M O
D O R EU S E R .S u p e rF r i e n d l yw i t ht h ef e a t u r e sm o s ta s k e df o r .
•
S U P E RF A S Tb u i l t - i ns i n g l ed r i v e8o r9F I L EC O P Y ,c o p yf i l e so fu pt o
2 3 5B L O C K Si nl e n g t h ,i nl e s st h a n1 3s e c o n d s !
•
S D P E RS C R E E NC A P T U R E .C a p t u r ea n dC o n v e r tA n yS c r e e nt oK O A L Ao r
D O O D L E .
•
S U P E RF A S TF O R M A
T( 8S E C ' S )-p l u sF U L LD . O . S .W E D G Ew / s t a n d a r d
f o r m a t !
•
S U P E RF A S T L O A Da n dS A V E( 5 0 ki n9S E C ' S )w o r k sw i t ha l lC - 6 4o rC - 1 2 8 ' s
N oM a t t e rW h a tV i n t a g e !A n dw i t hm o s ta f t e rm a r k e td r i v e sE X C E P Tt h e
1 5 8 1 ,M . S . D .
1o r2 .
•
S U P E R
P R I N T E RF E A T U R E Sa l l o w sA N Y
D O T
M A T R I X
P R I N T E R
e v e n
1 5 2 6 / 8 0 2t op r i n t
H I - R E SS C R E E N S( u s i n g1 6s h a d eG R A YS C A L E ) .
A n yP r i n t e ro rI n t e r f a c eC o m b i n a t i o nc a nb eu s e dw i t hS U P E RE X P L O D E !
V 4 . 1o rV 3 . 0 .
•
N E Wa n dI M P R O V E DC O N V E R Tf e a t u r ea l l o w sa n y b o d yt oc o n v e r t( e v e n
T E X T )S c r e e n si n t oD O O D L Eo rK O A L AT y p eP i c t u r e sw / F u l lC o l o r !
•
S U P E RF A S TS A V Eo fE X P L O D E !S C R E E N Sa sK O A L Ao rD O O D L EF I L E S
w / C O L O R .
•
S U P E RF A S TL O A D I N Gw i t hC o l o rR e - D i s p l a yo lD O O D L Eo rK O A L Af i l e s .
•
S U P E RF A S TL O A Do rS A V Ec a nb eT U R N E DO F Fo rO Nw i t h o u tA F F E C T
I N Gt h eR E S To fS U P E RE X P L O D E ' SF E A T U R E S .T h er e s to fE x p l o d e
V 4 . 1i ss t i l la c t i v e .
•
S U P E RE A S YL O A D I N Ga n dR U N N I N Go fA L LP R O G R A M Sf r o mt h eD I S K
D I R E C T O R Y .
•
S U P E R
B U I L T - I NT W O - W A Y
S E Q .
o r
P R G .
f i l e
R E A D E R
u s i n g
t h e
D I S K
D I R E C T O R Y .
•
N E V E RT Y P EAF I L EN A M EA G A I Nw h e n
y o u
u s e
S U P E R
E X P L O D E ' S
u n i q u eL O A D E R S .
•
C A P T U R E4 0C O L U M NCo rD - 1 2 8S C R E E N S !( w i t ho p t i o n a lD I S A B L E
S W I T C H ) .A d d$ 5 .
*
S U P E RT R A C K E R
U t i l i t i e sU n l i m i t e dh a sd o n ei ta g a i n .A tl a s ta ne a s yw a yt of i n do u tw h e r et h ep r o t e c t i o nr e a l l yi s .
S u p e rT r a c k e rw i l ld i s p l a yt h el o c a t i o no fy o u rd r i v eh e a dw h i l ey o u
a r el o a d i n gap i e c eo fs o f t w a r e .
T h i si n f o r m a t i o nw i l lb ev e r yu s e f u l ,t of i n dw h e r et h ep r o t e c t i o ni s .S u p e rT r a c k e rh a so t h e ru s e f u l
o p t i o n ss u c ha s :t r a c ka n dh a l f - t r a c kd i s p l a y ,8a n d9s w i t c h ,d e n s i t yd i s p l a y ,w r i t ep r o t e c to n / o f f .
T h i si n c r e d i b l el i t t l et o o li se n c a s e di nah a n d s o m eb o xt h a ts i t so nt o po fy o u rd r i v e .W o r k sw i t ha l l
C / 6 4 / 1 2 8a n dm o s tC / 6 4c o m p a t i b l ed r i v e s .S o m em i n o rs o l d e r i n gw i l lb er e q u i r e d .
I n t r o d u c t o r yP r i c e da tJ u s t$ 6 9 . 9 5
*
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 3/84
N oo t h e r t r a i n i n g — i ns c h o o l ,o nt h ej o b ,a n y w h e r e — s h o w sy o uh o wt o t r o u b l e
s h o o ta n ds e r v i c ec o m p u t e r sl i k eN R I
H A R DD I S K
2 0m e g a b y t eh a r dd i s k d r i v ey o uI n s t a l li n t e r n a l l yf o rg r e a t e r d a t a s t o r a g ec a p a c i t ya n dd a t aa c c e s ss p e e d .
P A C K A R DB E L LC O M P U T E RN E C v o od u a ls p e e d( 4 . 7 7M H z / 8M H z )C P U ,5 1 2 K R A M , 3 6 O Kd o u b l e - s i d e dd i s kd r i v e .
D I G I T A LM U L T I M E T E RP r o f e s s i o n a lt e s tI n s t r u m e n tf o rq u i c ka n de a s ym e a s u r e m e n t s .
L E S S O N Sc i e a r c u t .I l l u s t r a t e dt e x t sb u i l dy o u ru n d e r s t a n d i n go f c o m p u t e r ss t e pb y s t e p .
S O F T W A R Ei n c l u d i n gM S - D O S ,C WB A S I C ,w o r dp r o c e s s i n g ,
M O N I T O RH i g h - r e s o l u t i o n , n o n - g l a r e ,1 2 "t t lm o n o c h r o m em o n i t o rw i t ht i l ta n ds w i v e l b a s e .
T E C H N I C A LM A N U A L SW i t hp r o f e s s i o n a lp r o g r a m s a n d
c o m p l e t es p e c so n P a c k a r dB e l lc o m p u t e r .
p r o g r a m s .
O n l yN R l w a l k sy o ut h r o u g ht h es t e p - b y - s t e pa s s e m b l yo f a p o w e r f u lX T - c o m p a t i b l ec o m p u t e r s y s t e my o uk e e p — g i v i n gy o ut h eh a n d s - o ne x p e r i e n c ey o un e e dt o w o r kw i t h ,
t r o u b l e s h o o t ,a n ds e r v i c ea l lo f t o d a y ' sm o s tw i d e l yu s e dc o m p u t e rs y s t e m s .Y o ug e ta l li t
t a k e st o s t a r ta m o n e y - m a k i n gc a r e e r ,e v e nab u s i n e s so f y o u ro w ni n c o m p u t e rs e r v i c e .
N od o u b ta b o u ti t :T h eb e s tw a yt o l e a r nt o s e r v i c ec o m p u t e r si s t o a c t u a l l y
b u i l da s t a t e - o f - t h e - a r tc o m p u t e r f r o mt h ek e y b o a r do nu p .A sy o up u tt h e
m a c h i n et o g e t h e r ,p e r f o r m i n g k e yt e s t sa n dd e m o n s t r a t i o n sa t e a c hs t a g eo f
a s s e m b l y ,y o us e e f o r y o u r s e l fh o we a c hp a r to fi t w o r k s ,w h a tc a ng ow r o n g ,
a n dh o wy o uc a nf i xi t .
O n l yN R I — t h el e a d e r i nc a r e e r - b u i l d i n g ,a t - h o m ee l e c t r o n i c st r a i n i n gf o r7 5
y e a r s — g i v e sy o us u c hp r a c t i c a l ,r e a l - w o r l dc o m p u t e rs e r v i c i n ge x p e r i e n c e . I n d e e d ,
n oo t h e r t r a i n i n g — i ns c h o o l ,o nt h ej o b ,a n y w h e r e —s h o w s y o uh o wt o t r o u b l e -
s h o o ta n ds e r v i c ec o m p u t e r sl i k eN R I .
Y o ug e ti n - d e m a n dc o m p u t e rs e r v i c i n gs k i l l sa s y o ut r a i nw i t hy o u ro w nX T - c o m p a t i b l es y s t e m — n o w
w i t h2 0m e gh a r dd r i v e
W i t hN R I ' se x c l u s i v eh a n d s - o nt r a i n i n g ,y o ua c t u a l l yb u i l da n dk e e pt h ep o w e r f u ln e wP a c k a r dB e l lV X 8 8P C / X Tc o m p a t i b l e c o m p u t e r ,c o m p l e t e w i t h5 1 2 KR A Ma n d
2 0m e gh a r dd i s kd r i v e .
Y o us t a r tb ya s s e m b l i n ga n dt e s t i n gt h e" i n t e l l i g e n t "k e y b o a r d ,m o v eo n t o t e s t
t h ec i r c u i t r yo nt h em a i nl o g i cb o a r d ,i n s t a l lt h ep o w e rs u p p l ya n d5 l A "d i s kd r i v e ,
t h e ni n t e r f a c ey o u rh i g h - r e s o l u t i o nm o n i t o r .B u tt h a t ' sn o ta l l .
O n l yN R Ig i v e sy o ua t o p - r a t e dm i c r ow i t hc o m p l e t e
t r a i n i n gb u i l ti n t ot h ea s s e m b l yp r o c e s s
Y o u r N R Ih a n d s - o nt r a i n i n gc o n t i n u e sa sy o ui n s t a l lt h ep o w e r f u l2 0m e g a b y t eh a r d
d i s kd r i v e — t o d a y ' sm o s t w a n t e d c o m p u t e rp e r i p h e r a l — i n c l u d e di n y o u rc o u r s et o
d r a m a t i c a l l y i n c r e a s ey o u rc o m p u t e r ' ss t o r a g e c a p a c i t yw h i l eg i v i n gy o ul i g h t n i n g -
q u i c kd a t aa c c e s s .
H a v i n gf u l l ya s s e m b l e dy o u rP a c k a r dB e l lV X 8 8 , y o ut a k ei t t h r o u g ha c o m p l e t e
s e r i e so fd i a g n o s t i ct e s t s ,m a s t e r i n gp r o f e s s i o n a lc o m p u t e rs e r v i c i n g t e c h n i q u e sa s y o u
t a k ec o m m a n do ft h ef u l lp o w e ro ft h eV X 8 8 ' sh i g h - s p e e dV 4 0m i c r o p r o c e s s o r .
I n n ot i m ea t a l l ,y o uh a v et h e c o n f i d e n c ea n dt h ek n o w - h o wt o w o r kw i t h ,
t r o u b l e s h o o t ,a n ds e r v i c ee v e r yc o m p u t e ro nt h em a r k e tt o d a y .I n d e e dy o uh a v e
w h a ti t t a k e st o s t e p i n t oa f u l l - t i m e ,m o n e y - m a k i n gc a r e e ra s a n i n d u s t r y t e c h n i c i a n ,
e v e ns t a r ta c o m p u t e rs e r v i c e b u s i n e s so fy o u ro w n .
N oe x p e r i e n c e n e e d e d ,N R Ib u i l d si t i n
Y o un e e dn op r e v i o u s e x p e r i e n c ei n c o m p u t e r so re l e c t r o n i c st o s u c c e e d w i t h N R I .
Y o us t a r tw i t ht h eb a s i c s ,f o l l o w i n ge a s y - t o - r e a d i n s t r u c t i o n sa n dd i a g r a m s , q u i c k l y
D I S C O V E R YL A BC o m p l e t eb r e d d b o a r d i n g
s y s t e mt o l e ty o ud e s i g na n dm o d i f yc i r c u i t s ,d i a g n o s e
a n dr e p a i rf a u l t s .
D I G I T A LL O G I C
P R O B Es i m p l i f i e s
a n a l y z i n gd i g i t a lc i r c u i to p e r a t i o n .
m o v i n gf r o mt h ef u n d a m e n t a l st o
s o p h i s t i c a t e dc o m p u t e rs e r v i c i n g
t e c h n i q u e s . S t e pb ye a s ys t e p ,y o u
g e tt h ek i n d o fp r a c t i c a lh a n d s - o n
e x p e r i e n c et h a tm a k e sy o uu n i q u e l y
p r e p a r e dt o t a k ea d v a n t a g e o fe v e r y
o p p o r t u n i t yi n t o d a y ' st o p - g r o w t h
f i e l do fc o m p u t e rs e r v i c e .
W h a t ' sm o r e — y o ul e a r na t y o u ro w n
p a c ei n y o u ro w nh o m e .N oc l a s s r o o mp r e s s u r e s ,n on i g h ts c h o o l ,n on e e dt o
q u i ty o u rp r e s e n t j o bu n t i ly o u ' r er e a d y
t o m a k ey o u rm o v e .A n da l lt h r o u g h o u t
y o u rt r a i n i n g ,y o uh a v et h ef u l ls u p p o r to fy o u rp e r s o n a lN R Ii n s t r u c t o ra n dt h eN R It e c h n i c a ls t a f fa l w a y s r e a d yt o a n s w e r y o u rq u e s t i o n sa n dg i v ey o uh e l pw h e n e v e r
y o u n e e di t .
Y o u rF R E EN R Ic a t a l o gt e l l sm o r e
S e n dt o d a yf o ry o u rf r e ef u l l - c o l o rc a t a l o gd e s c r i b i n ge v e r ya s p e c to fN R I ' si n n o v a t i v e
c o m p u t e rt r a i n i n g ,a sw e l la sh a n d s - o nt r a i n i n gi n r o b o t i c s ,v i d e o /a u d i os e r v i c i n g ,
e l e c t r o n i cm u s i ct e c h n o l o g y ,s e c u r i t y e l e c t r o n i c s ,d a t ac o m m u n i c a t i o n s ,a n do t h e r
g r o w i n gh i g h - t e c h c a r e e rf i e l d s .
I ft h ec o u p o ni s m i s s i n g ,w r i t et oN R IS c h o o lo fE l e c t r o n i c s ,M c G r a w - H i l lC o n t i n u i n gE d u c a t i o n C e n t e r ,4 4 0 1C o n n e c t i c u t A v e n u e , W a s h i n g t o n ,D C2 0 0 0 8 .
P C / X Ta n dX Ta r cr e g i s t e r e dt r a d e m a r k so f I n t e r n a t i o n a lB u s i n e s sM a c h i n e sC o r p o r a t i o n
' S c h o o lo f -E l e c t r o n i c s
M c G r a w - H i l lC o n t i n u i n g E d u c a t i o n C e n t e r
4 4 0 1C o n n e c t i c u t A v e n u e , W a s h i n g t o n ,D C2 0 0 0 8
M C h e c ko n eF R E Ec a t a l o go n l y
O C o m p u t e r s a n dM i c r o p r o c e s s o r s
□ R o b o t i c s
□ T V / V i d e o / A u d i oS e r v i c i n g
[ U C o m p u t e rP r o g r a m m i n g
F o rc a r e e r c o u r s e s
a p p r o v e du n d e rG Ib i l l
□ c h e c kf o rd e t a i l s
□ S e c u r i t y E l e c t r o n i c s
□ E l e c t r o n i cM u s i c T e c h n o l o g y
C HB a s i c E l e c t r o n i c s
C HD a t aC o m m u n i c a t i o n s
N a m e ( p l e a s e p r i n t ) A g e
A d d r e s s
C i t y / S t a t e / Z i p 0 0 0 0 - 0 0 0I A c c r e d i t e db yt h e N a t i o n a lH o m eS t u d y C o u n c i l I
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 4/84
V o l u m e9 , I s s u e4
P u b l i s h e r
A n t o n yJ a c o b s o n
V i c e - P r e s i d e n tO p e r a t i o n s
J e a n n i eL a w r e n c e
A s s i s t a n tA d v e r t i s i n gM a n a g e r
J u l i eC a l e
E d i t o r s
M a l c o l mO ' B r i e n
N i c kS u l l i v a n
C h r i sZ a m a r a
C o n t r i b u t i n g W r i t e r sM a r t eB r e n g l e
P a u lB o s a c k i
B i l lB r i e r
A n t h o n yB r y a n t
J o s e p hB u c k l e y
J i mB u t t e r f i e l d
W i l l i a mC o l e m a n
R i c h a r dC u r c i o
M i k l o sG a r a m s z e g h y
L a r r yG a y n i e r
T o d d H e i m a r c k
A d a m H e r s t
R o b e r tH u e h n
G e o r g eH u g
Z o l t a nH u n t
D e n n i sJ a r v i s
G a r r yK i z i a k
F r a n c i sK o s t e l l a
M i k eM o h i l o
D J . M o r r i s s
N o e lN y m a n
A d r i a nP e p p e r
S t e v e P u n t e r
R o b e r tR o c k e f e l l e r
J o e lR u b i n
D a v i dS a n n e r
S t e p h e nS h e r v a i s
A u d r y sV i l k a s
N i c h o l a sV r t i s
W . M a tW a k e s
C o v e rA r t i s t
W a y n eS c h m i d t
T r a n s a c t o rT h eM a g a z i n ef o rC o m m o d o r eP r o g r a m m e r s
I n s i d eG E O S1 2 8 2b y W i l l i a mC o l e m a n
A t l a s t !R e a di t h e r ef i r s t !W h a ty o un e e dt o k n o wt o p r o g r a mG E O So n t h e 1 2 8 .
L o a d e r m a k e r 3 4
b y N i c h o l a sJ . V r t i s
D e v e l o p i n ga G E O Sp r o g r a mi n t h es t a n d a r de n v i r o n m e n t ?T h i sp r o g r a me l i m i n a t e s c o n v e r s i
A nI n t r o d u c t i o nT oG E O Sf i l e s 4 0
b y F r a n c i sG . K o s t e l l a
A h a n d yI c o n D e f i n e rp r o g r a mt h a td e m o n s t r a t e st h eu s e o ft h e h i g h - l e v e l d i s kr o u t i n e s .
R A M i f i c a t i o n s
b y R i c h a r dC u r c i o
S o m es u g g e s t i o n sf o r f a t t e n i n g t h eC 1 2 8 .
H o wR a n d o mi s R N D ? 5 0
b y D . J . M o r r i s
T h e C 6 4 / C 1 2 8R N Dr o u t i n e s :T h eo r d e r l yg e n e r a t i o n o fd i s o r d e r i n c l u d e ss o m es u r p r i s e s . . .
T u r n i n g O f fW r i t e / V e r i f y 5 6
b y D e n n i s . J .J a r v i s
T h ei n n e rw o r k i n g so f t h e1 5 7 1 ' s v e c t o r e do p e r a t i n g s y s t e m . I n c l u d e s aB A S I Cp r o g r a mt h a t w i l lr u n
o n a l l8 - b i tC o m m o d o r ec o m p u t e r s .
M a k e2 S i d e d
b y D e n n i s J .J a r v i sC o n v e r t i n g 1 5 4 1d i s k st o 1 5 7 1 f o r m a t- o u c o u l dd o i t b y h a n db u tt h i sp r o g r a m m a k e si t s i m p l e .
C u s t o m i z i n gC 1 2 8C P / M 6 2
b y M i k l o sG a r a m s z e g h y
P a t c h i n gt h eC P M + . S Y Sp r o g r a m .
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 5/84
D e p a r t m e n t sa n dC o l u m n s
L e t t e r s
B i t s
8
1 0
F a s tG r a p h i c sw i t hS Y M A S S
Q u i c k i eF l a s hR o u t i n e
C 1 2 8M LM o n i t o rT r i c k s
C o m m a n dT a i l s
D e v i c eP r e s e n c eC h e c k e r
1 2T h eM LC o l u m n
b y T o d dH e i m a r c k
E v e rw o n d e r e dh o wd a t ac o m p r e s s i o nw o r k s ?T o d de x p l a i n st h ei n sa n do u t so f H u f f m a ne n c o d i n g a n d
c r u n c h e sa v e r s ef r o mA . A .M i l n e .
T h eE d g eC o n n e c t i o n 2 2
b y J o e lR u b i n
J o e l s h a r e sh i se x p e r i e n c e s w i t ha 1 7 0 0R A Me x p a n s i o nu n i t .T h e r e ' sm u c hm o r ec a p a b i l i t yi n t h a t
1 2 8 Kt h a ny o um i g h t h a v et h o u g h t .A n dt h ep r i c ei s r i g h t . . .
R e v i e w s
W h a t ' sR e a l l yI n s i d e t h eC o m m o d o r e6 4 ?J i mB u t t e r f i e l da n a l y z e st h i sc o m m e n t e dd i s a s s e m b l y
M a c r oS e t1
R e d u c ep r o g r a m d e v e l o p m e n tt i m ew i t ht h i sh a n d y p a c k a g e f r o m X y t e c
S F XS o u n dE x p a n d e rC o m m o d o r eU K ' sh a r d w a r ea d d - o ni s n o wm a k i n gb e a u t i f u lm u s i ci n N o r t hA m e r i c a
X - 1 0P o w e r h o u s eC o m p u t e rI n t e r f a c e
W i t ha n X - 1 0 ,y o uc a nc o n t r o l t h ew o r l d . . .o r a t l e a s ty o u rh o u s e .
6 9
7 0
7 2
7 5
A b o u tt h e c o v e r :T h u n d e r B e a rw a sc r e a t e db y W a y n eS c h m i d tu s i n gK w i k p a i n ta n d
A r t i s t6 4 .W a y n ed e s c r i b e st h e p i c t u r e a s f o l l o w s :
* ' I n s p i r e db y K w a k i u t lm o t i f s( N o r t hW e s tC o a s tI n d i a n s ) ,t h e s u b j e c ti s a
' t r a n s f o r m a t i o n 'm a s kd e s i g nw o r nb y s h a m a n sd u r i n gi n i t i a t i o na n dc e r e m o n i a le v e n t s .
D u r i n gt h e s ee v e n t s , t h eT h u n d e r b i r do u t e rm a s ko p e n st o r e v e a la g r e a tB e a rs p i r i t . "
T r a n s a c t o ri s p u b l i s h e d b i m o n t h l yb y C r o f t w a r
P u b l i s h i n gI n c . ,8 5 - 1 0W e s tW i l m o tS t r e e t ,R i c h
m o n dH i l l ,O n t a r i o ,L 4 B1 K 7 .I S S N #0 8 3 8 - 0 1 6 3
C a n a d i a nS e c o n dC l a s sM a i l R e g i s t r a t i o N o .
7 6 9 0 ,G a t e w a y - M i s s i s s a u g a ,O n t .U S P SP o s tm a s t e r s :s e n da d d r e s sc h a n g e st o : T r a n s a c t o r
P OB o x3 3 8 ,S t a t i o nC . B u f f a l o ,N Y , 1 4 2 0 9 .
C r o f t w a r dp u b l i s h i n gI n c .i s i n n o w a yc o n n e c t e d
w i t h C o m m o d o r eB u s i n e s sM a c h i n e sL t d . o r
C o m m o d o r eI n c o r p o r a t e d .C o m m o d o r ea n dC o m m o d o r ep r o d u c tn a m e sa r er e g i s t e r e dt r a d e
m a r k so f C o m m o d o r eI n c .
S u b s c r i p t i o n s :
C a n a d a $ 1 9C d n .
U S A$ 1 5U S
A l lo t h e r s$ 2 1U SA i rM a i l( O v e r s e a so n l y )$ 4 0U S
S e n da l l s u b s c r i p t i o n st o : T r a n s a c t o r . ,S u b
s c r i p t i o n sD e p a r t m e n t ,8 5 W e s tW i l m o tS t r e e t ,
U n i t1 0 , R i c h m o n dH i l l ,O n t a r i o ,C a n a d a ,L 4 B
1 K 7 ,( 4 1 6 )7 6 4 - 5 2 7 3 . F o rb e s tr e s u l t s ,u s et h e
p o s t a g ep a i dc a r da t t h e c e n t r eo f t h em a g a z i n e .
Q u a n t i t yO r d e r s :I n C a n a d a :I n g r a m S o f t w
L t d . ,1 4 1A d e s s oD r i v e ,C o n c o r d ,O n t a r i o ,L 4 K
2 W 7 ,( 4 1 6 )7 3 8 - 1 7 0 0 .i n t h eU S A ;I P D( I n t e r n a
t i o n a lP e r i o d i c a lD i s t r i b u t o r s ) ,1 1 7 6 0 - BS o r r e n t o
V a l l e yR o a d ,S a nD i e g o ,C a l i f o r n i a ,9 2 1 2 1 ,( 6 1 9 )
4 8 1 - 5 9 2 8 ;a s kf o rD a v eB u e s c h e r .
E d i t o r i a lc o n t r i b u t i o n sa r ew e l c o m e . O n l yo r i g i n a l ,
p r e v i o u s l yu n p u b l i s h e dm a t e r i a lw i l lb e c o n s i d
e r e d .P r o g r a ml i s t i n g sa n d a r t i c l e s ,i n c l u d i n g
B I T Ss u b m i s s i o n s ,o f m o r et h a na f e wl i n e s ,
s h o u l db e p r o v i d e do n d i s k .P r e f e r r e df o r m a ti s
1 5 4 1 - f o r m a tw i t hA S C I It e x tf i l e s .M a n u s c r i p t
s h o u l db e t y p e w r i t t e n ,d o u b l e - s p a c e d ,w i t hs p e
c i a lc h a r a c t e r s o rf o r m a t sc l e a r l ym a r k e d . P h o
s h o u l db e g l o s s y b l a c ka n dw h i t ep r i n t s . I l l u s t
t i o n ss h o u l db e o nw h i t ep a p e rw i t hb l a c ki n ko n
l y . H i - r e sg r a p h i c sf i l e so n d i s ka r e p r e f e r r e dt o
h a r d c o p yi l l u s t r a t i o n sw h e np o s s i b l e .W r i t et o
T r a n s a c t o r ' sR i c h m o n dH i l lo f f i c et o o b t a i na w r i t
e r ' sg u i d e .
A l l m a t e r i a la c c e p t e db e c o m e st h e p r o p e r t yo f
C r o f t w a r dp u b l i s h i n g I n a ,e x c e p tb y s p e c i a la r
r a n g e m e n t .A l lm a t e r i a li s c o p y r i g h tb y C r o f t w a r
p u b l i s h i n gI n c .R e p r o d u c t i o ni n a n yf o r mw i t h o u t
p e r m i s s i o ni s i nv i o l a t i o no f a p p l i c a b l el a w s .W r i t e
t o t h eR i c h m o n dH i l la d d r e s sf o ra w r i t e r ' sg u i d e .
T h eo p i n i o n se x p r e s s e di n c o n t r i b u t e da r t i c l e s
a r e n o t n e c e s s a r i l yt h o s eo f C r o f t w a r dp u b l i s h i n
I n c .A l t h o u g ha c c u r a c yi s a m a j o ro b j e c t i v e ,C r o f t
w a r dp u b l i s h i n gI n c .c a n n o ta s s u m el i a b i l i t yf o r
e r r o r si n a r t i c l e so r p r o g r a m s .P r o g r a m sl i s t e di n
T r a n s a c t o r ,a n d / o ra p p e a r i n go n T r a n s a c t o rd i s k s ,
a r e c o p y r i g h tb y C r o f t w a r dp u b l i s h i n gI n c .a n d
m a yn o tb e d u p l i c a t e d o rd i s t r i b u t e dw i t h o u tp e r
m i s s i o n .
P r o d u c t i o n
I n - h o u s ew i t hA m i g a2 0 0 0a n d
P r o f e s s i o n a lP a g e
F i n a lo u t p u tb y V e l l u mP r i n t&
G r a p h i cS e r v i c e s ,I n c . ,T o r o n t o
P r i n t i n g
P r i n t e di n C a n a d ab y
B o w n eo f C a n a d aI n c .
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 6/84
U s i n g" V E R I F I Z E R "
T r a n s a c t o r ' sf o o l p r o o fp r o g r a me n t r ym e t h o d
V E R I F I Z E Rs h o u l db e r u nb e f o r e t y p i n gi n a n yl o n gp r o g r a m
f r o mt h ep a g e s o fT r a n s a c t o r .I t w i l ll e ty o uc h e c ky o u rw o r k
l i n eb y l i n ea s y o ue n t e r t h ep r o g r a ma n dc a t c hf r u s t r a t i n gt y p
i n ge r r o r s .T h eV E R I F I Z E Rc o n c e p tw o r k sb y d i s p l a y i n g at w o -
l e t t e rc o d ef o re a c hp r o g r a ml i n e ;y o uc a nt h e nc h e c kt h i sc o d e
a g a i n s tt h ec o r r e s p o n d i n go n ei n t h e p r i n t e dp r o g r a ml i s t i n g .
T h e r ea r et h r e ev e r s i o n so f v e r i f i z e rh e r e :o n ee a c hf o r t h e
P E T / C B M ,V I C / C 6 4 ,a n dC 1 2 8c o m p u t e r s . E n t e rt h ea p p l i c a
b l ep r o g r a ma n dR U Ni t . I f y o ug e t a d a t a o rc h e c k s u me r r o r ,
r e - c h e c kt h ep r o g r a ma n d k e e pt r y i n gu n t i la l l g o e sw e l l .Y o u
s h o u l dS A V Et h ep r o g r a ms i n c ey o u ' l lw a n tt o u s ei t e v e r y
t i m ey o ue n t e ra p r o g r a m f r o mT r a n s a c t o r .O n c ey o u ' v eR U N
t h e l o a d e r ,r e m e m b e rt o e n t e rN E Wt o p u r g eB A S I Ct e x t
s p a c e .T h e nt u r nV E R I F I Z E Ro n w i t h :
S Y S6 3 4t o e n a b l et h eP E T / C B Mv e r s i o n( o f f :S Y S6 3 7 )
S Y S8 2 8t o e n a b l et h eC 6 4 / V I Cv e r s i o n( o f f :S Y S8 3 1 )
S Y S3 0 7 2 , 1t o e n a b l et h eC 1 2 8v e r s i o n( o f f :S Y S3 0 7 2 , 0 )
O n c eV E R I F I Z E Ri s o n , e v e r y t i m ey o up r e s sR E T U R No n a
p r o g r a ml i n ea t w o - l e t t e rr e p o r tc o d ew i l la p p e a ro n t h e t o p
l e f to f t h es c r e e ni n r e v e r s ef i e l d .N o t et h a tt h e s el e t t e r sa r ei n
u p p e r c a s ea n dw i l la p p e a ra s g r a p h i c sc h a r a c t e r su n l e s sy o u
a r e i n u p p e r / l o w e r c a s em o d e( p r e s ss h i f t / C o m m o d o r eo n
C 6 4 / V I C ) .
N o t e :I f a r e p o r tc o d ei s m i s s i n g( o r " - - " )i t m e a n sw e ' v e
e d i t e dt h a tl i n e a tt h e l a s tm i n u t e ,c h a n g i n gt h e r e p o r tc o d e .
H o w e v e r ,t h i sw i l lo n l yh a p p e no c c a s i o n a l l ya n du s u a l l yo n l y
o n R E Ms t a t e m e n t s .
W i t hV E R I F I Z E Ro n , j u s t e n t e r t h ep r o g r a mf r o mt h em a g a z i n e
n o r m a l l y ,c h e c k i n g e a c hr e p o r tc o d ea f t e ry o up r e s sR E T U R N
o n a l i n e .I f t h ec o d ed o e s n ' tm a t c hu p w i t ht h el e t t e r sp r i n t e d
i n t h eb o xb e s i d et h el i s t i n g ,y o uc a nr e - c h e c ka n dc o r r e c tt h e
l i n e ,t h e nt r ya g a i n .I f y o uw i s h ,y o uc a nL I S Ta r a n g eo f l i n e s ,
t h e n t y p eR E T U R No v e re a c hi n s u c c e s s i o n w h i l ec h e c k i n g
t h e r e p o r tc o d e sa s t h e ya p p e a r .O n c et h e p r o g r a mh a sb e e n
p r o p e r l ye n t e r e d ,b e s u r et o t u r nV E R I F I Z E Ro f fw i t ht h eS Y S
i n d i c a t e da b o v eb e f o r ey o u d oa n y t h i n ge l s e .
V E R I F I Z E Rw i l lc a t c ht r a n s p o s i t i o n e r r o r sl i k eP O K E5 2 3 8 1 , 0
i n s t e a do f P O K E5 3 2 8 1 , 0 .H o w e v e r ,V E R I F I Z E Ru s e s a
" w e i g h t e dc h e c k s u mt e c h n i q u e "t h a tc a nb e f o o l e di f y o ut r y
h a r de n o u g h :t r a n s p o s i n gt w os e t so f f o u r c h a r a c t e r sw i l lp r o
d u c et h es a m er e p o r tc o d e , b u tt h i sw i l lr a r e l yh a p p e n .( V E R I
F I Z E Rc o u l dh a v e b e e nd e s i g n e dt o b e m o r ec o m p l e x ,b u tt h e
r e p o r tc o d e sw o u l dn e e dt o b e l o n g e r ,a n du s i n gi t w o u l db e
m o r et r o u b l et h a nc h e c k i n gt h ep r o g r a mm a n u a l l y ) ,v e r i f i z e
i g n o r e s s p a c e s s oy o um a ya d do r o m i ts p a c e sf r o mt h el i s t e d
p r o g r a ma t w i l l( p r o v i d i n gy o ud o n ' ts p l i tu p k e y w o r d s ! )S t a n
d a r dk e y w o r da b b r e v i a t i o n s( l i k en E i n s t e a do f n e x t )w i l ln o t
a f f e c tt h ev e r i f i z e rr e p o r tc o d e .
T e c h n i c a li n f o :V I C / C 6 4v e r i f i z e rr e s i d e si n t h e c a s s e t t
b u f f e r ,s o i f y o u ' r e u s i n g ad a t a s e t t eb e a w a r et h a tt a p eo p e r a
t i o n sc a n b ed a n g e r o u st o i t s h e a l t h .A s f a r a sc o m p a t i b i l
w i t ho t h e ru t i l i t i e sg o e s ,V E R I F I Z E Rs h o u l d n ' tc a u s ea n yp r o b
l e m ss i n c ei t w o r k st h r o u g ht h e B A S I Cw a r m - s t a r tl i n ka n d
j u m p st o t h eo r i g i n a ld e s t i n a t i o no f t h el i n ka f t e ri t ' sf i n i s h e d
W h e nd i s a b l e d ,i t r e s t o r e s t h el i n kt o i t so r i g i n a l c o n t e n t s
P E T / C B MV E R I F I Z E R( B A S I C2 . 0o r 4 . 0 )
C I 1 0 r e m *d a t a l o a d e r f o r" v e r i f i z e r4 . 0 "*
L I 2 0 c s = 0
H C 3 0 f o ri = 6 3 4t o 7 5 4 :r e a da : p o k ei , a
D H 4 0 c s = c s + a :n e x ti
G K 5 0 :
O G 6 0 i f c s < > 1 5 5 8 0t h e np r i n t " * * * * *d a t ae r r o r* * * * * " :e n d
J O 7 0 r e ms y s6 3 4
A F 8 0 e n d
I N 1 0 0 :
O N 1 0 0 0d a t a 7 6 , 1 3 8 ,2 , 1 2 0 , 1 7 3 , 1 6 3 ,2 , 1 3 3 ,1 4 4
I B 1 0 1 0d a t a1 7 3 , 1 6 4 ,2 , 1 3 3 , 1 4 5 ,8 8 , 9 6 , 1 2 0 , 1 6 5
C K 1 0 2 0d a t a1 4 5 ,2 0 1 , 2 , 2 4 0 ,1 6 , 1 4 1 , 1 6 4 ,2 , 1 6 5
E B 1 0 3 0d a t a1 4 4 , 1 4 1 , 1 6 3 ,2 , 1 6 9 , 1 6 5 , 1 3 3 , 1 4 4 ,1 6 9
H E 1 0 4 0d a t a 2 , 1 3 3 , 1 4 5 ,8 8 , 9 6 ,8 5 , 2 2 8 , 1 6 5 , 2 1
O I 1 0 5 0d a t a2 0 1 , 1 3 , 2 0 8 ,6 2 , 1 6 5 , 1 6 7 , 2 0 8 ,5 8 , 1 7 3
J B 1 0 6 0d a t a2 5 4 , 1 , 1 3 3 ,2 5 1 ,1 6 2 , 0 , 1 3 4 ,2 5 3 ,1 8 9
P A 1 0 7 0d a t a 0 , 2 , 1 6 8 , 2 0 1 ,3 2 , 2 4 0 ,1 5 , 2 3 0 , 2 5 3
H E 1 0 8 0d a t a 1 6 5 ,2 5 3 , 4 1 , 3 , 1 3 3 , 2 5 4 , 3 2 , 2 3 6 ,
E L 1 0 9 0d a t a 1 9 8 ,2 5 4 , 1 6 ,2 4 9 ,2 3 2 ,1 5 2 ,2 0 8 , 2 2 9 ,1 6 5
L A 1 1 0 0d a t a2 5 1 , 4 1 , 1 5 , 2 4 , 1 0 5 , 1 9 3 , 1 4 1 ,0 , 1 2 8
K I 1 1 1 0d a t a1 6 5 , 2 5 1 ,7 4 , 7 4 , 7 4 , 7 4 ,2 4 , 1 0 5 , 1 9 3
E B 1 1 2 0d a t a1 4 1 , 1 , 1 2 8 ,1 0 8 , 1 6 3 ,2 , 1 5 2 ,2 4 , 1 0 1
D M1 1 3 0d a t a 2 5 1 ,1 3 3 , 2 5 1 ,9 6
T r a n s a c t o r A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 7/84
V I C / C 6 4V E R I F I Z E R
K E 1 0 r e m *d a t a l o a d e rf o r" v e r i f i z e r "*
J F 1 5 r e mv i c / 6 4v e r s i o n
L I 2 0 c s = 0
B E 3 0 f o ri = 8 2 8t o 9 5 8 : r e a da : p o k ei , a
D H 4 0 c s = c s + a : n e x ti
G K 5 0 :
F H 6 0 i f c s o l 4 7 5 5t h e np r i n t " * * * * *d a t ae r r o r
K P 7 0 r e m s y s 8 2 8
A F 8 0 e n d
I N 1 0 0 :
E C 1 0 0 0d a t a 7 6 , 7 4 ,
E P 1 0 1 0d a t a2 5 2 ,1 4 1 ,
O C 1 0 2 0d a t a 3 , 2 4 0 ,
M N1 0 3 0d a t a2 5 1 , 1 6 9 ,
M G1 0 4 0d a t a 3 , 3 ,
D M1 0 5 0d a t a 0 , 1 6 0 ,
C A 1 0 6 0d a t a 3 2 , 2 4 0 ,
N G 1 0 7 0d a t a1 3 3 , 9 0 ,
O K 1 0 8 0d a t a2 3 2 , 2 0 8 ,2 2 9 , 5 6 ,
A N 1 0 9 0d a t a 3 2 , 2 1 0 , 2 5 5 , 1 6 9 ,
G H 1 1 0 0d a t a 8 9 , 4 1 , 1 5 , 2 4 , 1 0 5 ,
J C 1 1 1 0d a t a 1 6 5 ,8 9 , 7 4 , 7 4 , 7 4 ,
E P 1 1 2 0d a t a 3 2 , 2 1 0 , 2 5 5 , 1 6 9 , 1 4 6 ,
* * * * * " :e n d
3 , 1 6 5 , 2 5 1 , 1 4 1 ,2 ,
3 , 3 , 9 6 , 1 7 3 ,3 ,
1 7 ,1 3 3 ,2 5 2 ,1 7 3 , 2 ,
9 9 , 1 4 1 ,2 , 3 , 1 6 9 ,
9 6 , 1 7 3 , 2 5 4 ,1 , 1 3 3 ,
0 , 1 8 9 , 0 , 2 , 2 4 0 ,
9 1 , 2 0 0 , 1 5 2 ,
3 , 1 9 8 ,9 0 ,
3 2 ,2 4 0 , 2 5 5 ,
1 8 , 3 2 , 2 1 0 ,
1 5 ,1 3 3 ,
3 2 , 1 8 3 ,
M H1 1 3 0d a t a 3 2 ,2 4 0 , 2 5 5 ,1 0 8 ,2 5 1 ,
B H 1 1 4 0d a t a 1 0 1 ,8 9 , 1 3 3 ,8 9 , 9 6
9 7 , 3 2 ,
7 4 , 2 4 ,
3 2 , 2 1 0 ,
0 , 1 6 5 ,
3 , 1 6 5
3 , 2 0 1
3 , 1 3 3
3 , 1 4 1
8 9 ,1 6 2
2 2 ,2 0 1
4 1 , 3
1 6 ,2 4 9
1 6 9 , 1 9
2 5 5 , 1 6 5
2 1 0 ,2 5 5
1 0 5 , 9 7
2 5 5 , 2 4
9 1 , 2 4
* N E W *C 1 2 8V E R I F I Z E R( 4 0o r 8 0 c o l u m n m o d e )
K L 1 0 0 r e m s a v e " 0 : c l 2 8 v f z . l d r " , 8
O I 1 1 0r e mc - 1 2 8v e r i f i z e r
M O1 2 0r e mb u g sf i x e d :1 ) w o r k si n 8 0 c o l u m nm o d e .
D G 1 3 0r e m 2 ) s y s3 0 7 2 , 0n o ww o r k s .
K K 1 4 0r e m
G H 1 5 0r e mb y j o e lm . r u b i n
H G 1 6 0r e m* d a t a l o a d e rf o r" v e r i f i z e rc l 2 8 "
I F 1 7 0r e m* c o m m o d o r ec l 2 8v e r s i o n
D G 1 8 0r e m* w o r k si n 4 0 o r 8 0 c o l u m nm o d e ! ! !
E B 1 9 0 c h = 0
G C 2 0 0f o rj = 3 0 7 2t o 3 2 2 0 :r e a dx : p o k ej , x :c h = c h + x :n e x t
N K 2 1 0i f c h o1 8 6 0 2t h e np r i n t" c h e c k s u me r r o r " :s t o p
B L 2 2 0p r i n t" s y s3 0 7 2 , 1t o e n a b l e
D P 2 3 0p r i n t" s y s3 0 7 2 , 0t o d i s a b l e
A P 2 4 0e n d
B A 2 5 0d a t a1 7 0 ,2 0 8 , 1 1 ,1 6 5 ,2 5 3 , 1 4 1 ,2 , 3
M M 2 6 0 d a t a1 6 5 , 2 5 4 ,1 4 1 , 3 , 3 , 9 6 , 1 7 3 ,3
A A 2 7 0d a t a 3 , 2 0 1 , 1 2 ,2 4 0 , 1 7 , 1 3 3 ,2 5 4 ,1 7 3
F M 2 8 0d a t a 2 , 3 , 1 3 3 , 2 5 3 , 1 6 9 , 3 9 , 1 4 1 ,2
I F 2 9 0d a t a 3 , 1 6 9 , 1 2 , 1 4 1 ,3 , 3 , 9 6 , 1 6 9
F A 3 0 0d a t a 0 , 1 4 1 , 0 , 2 5 5 ,1 6 5 , 2 2 ,1 3 3 ,2 5 0
L C 3 1 0d a t a1 6 2 , 0 , 1 6 0 , 0 , 1 8 9 ,0 , 2 , 2 0 1
A J 3 2 0d a t a4 8 , 1 4 4 , 7 , 2 0 1 , 5 8 , 1 7 6 ,3 , 2 3 2
E C 3 3 0d a t a2 0 8 , 2 4 2 ,1 8 9 , 0 , 2 , 2 4 0 ,2 2 , 2 0 1
P I 3 4 0d a t a 3 2 , 2 4 0 ,1 5 , 1 3 3 , 2 5 2 , 2 0 0 , 1 5 2 ,4 1
F F 3 5 0d a t a 3 , 1 3 3 , 2 5 1 ,3 2 , 1 4 1 ,1 2 , 1 9 8 , 2 5 1D E 3 6 0d a t a 1 6 , 2 4 9 , 2 3 2 , 2 0 8 , 2 2 9 ,5 6 , 3 2 , 2 4 0
C B 3 7 0d a t a2 5 5 ,1 6 9 , 1 9 , 3 2 , 2 1 0 , 2 5 5 , 1 6 9 ,1 8
O K 3 8 0d a t a 3 2 , 2 1 0 , 2 5 5 , 1 6 5 , 2 5 0 ,4 1 , 1 5 , 2 4
O N 3 9 0d a t a1 0 5 , 1 9 3 , 3 2 ,2 1 0 ,2 5 5 , 1 6 5 ,2 5 0 , 7 4
O I 4 0 0d a t a 7 4 , 7 4 , 7 4 ,2 4 , 1 0 5 , 1 9 3 ,3 2 , 2 1 0
O D 4 1 0d a t a2 5 5 ,1 6 9 , 1 4 6 , 3 2 ,2 1 0 , 2 5 5 ,2 4 , 3 2
P A 4 2 0d a t a2 4 0 , 2 5 5 ,1 0 8 ,2 5 3 , 0 , 1 6 5 ,2 5 2 , 2 4
B O 4 3 0d a t a1 0 1 ,2 5 0 ,1 3 3 ,2 5 0 , 9 6
T h eS t a n d a r dT r a n s a c t o r
P r o g r a mG e n e r a t o r
I f y o ut y p ei n p r o g r a m sf r o mt h em a g a z i n e ,y o um i g h t b ea b l e
t o s a v ey o u r s e l fs o m ew o r kw i t ht h ep r o g r a ml i s t e do n t h i s
p a g e .S i n c em a n yp r o g r a m sa r ep r i n t e di n t h ef o r mo f a B A
S I C" p r o g r a mg e n e r a t o r "w h i c hc r e a t e sa m a c h i n el a n g u a g
( o r B A S I C )p r o g r a mo n d i s k ,w e h a v ec r e a t e da " s t a n d a r
g e n e r a t o r "p r o g r a mt h a tc o n t a i n sc o d ec o m m o nt o a l lp r o g r a m
g e n e r a t o r s .J u s tt y p et h i si n o n c e ,a n ds a v ea l l t h a tt y p i n gf o r
e v e r yo t h e rp r o g r a mg e n e r a t o ry o ue n t e r !
O n c et h e p r o g r a mi s t y p e di n ( c h e c kt h e V e r i f i z e rc o d e sa s
u s u a lw h e ne n t e r i n gi t ) ,s a v ei t o n a d i s kf o rf u t u r eu s e .W h e n
e v e ry o ut y p ei n a p r o g r a mg e n e r a t o r , t h el i s t i n gw i l lr e f e rt o
t h e s t a n d a r dg e n e r a t o r .L o a dt h es t a n d a r d g e n e r a t o rf i r s t ,t h e n
t y p et h el i n e sf r o mt h el i s t i n ga s s h o w n .T h er e s u l t i n gp r o g r a m
w i l li n c l u d et h eg e n e r a t o rc o d e a n db e r e a d yt o r u n .
W h e ny o ur u nt h en e wg e n e r a t o r ,i t w i l lc r e a t ea p r o g r a m o
d i s k( t h eo n ed e s c r i b e di n t h e r e l a t e da r t i c l e ) .T h eg e n e r a t o
p r o g r a mi s j u s ta n e a s yw a yf o ry o ut o p u t am a c h i n el a n g u a g
p r o g r a mo n d i s k ,u s i n gt h es t a n d a r dB A S I Ce d i t o ra t y o u rd i s
p o s a l .A f t e rt h e f i l e h a s b e e nc r e a t e d , t h eg e n e r a t o ri s n o
l o n g e r n e e d e d .T h es t a n d a r dg e n e r a t o r ,h o w e v e r ,s h o u l db e
k e p th a n d yf o rf u t u r ep r o g r a mg e n e r a t o r s .
T h es t a n d a r dg e n e r a t o rl i s t e dh e r ew i l la p p e a ri n e v e r yi s s u e
f r o mn o wo n ( w h e nn e c e s s a r y )a s a s t a n d a r dT r a n s a c t o ru t i l i t y
l i k e V e r i f i z e r .
M G1 0 0r e mt r a n s a c t o rs t a n d a r dp r o g r a mg e n e r a t o r
E E 1 1 0n $ = " f i l e n a m e " :r e mn a m eo f p r o g r a m
L K 1 2 0 n d = 0 0 0 :s a = 0 0 0 0 0 :c h = 0 0 0 0 0
K O 1 3 0f o ri = l t o n d :r e a dx
E C 1 4 0c h = c h - x : n e x t
F B 1 5 0i f c h t h e np r i n t" d a t ae r r o r " :s t o p
D E 1 6 0p r i n t" d a t a o k ,n o wc r e a t i n gf i l e . "
C M 1 7 0r e s t o r e
C H 1 8 0o p e nl , 8 , l , " 0 : " + n $
H M1 9 0h i = i n t ( s a / 2 5 6 ) :l o = s a - 2 5 6 * h i
N A 2 0 0 p r i n t # l , c h r $ ( l o ) c h r $ ( h i ) ;
K D 2 1 0f o ri = l t o n d :r e a dx
H E 2 2 0p r i n t # l , c h r $ ( x ) ; :n e x t
J L 2 3 0c l o s e1
M P 2 4 0p r i n f ' p r gf i l e' " ; n $ ; " ' c r e a t e d . . . "
M H2 5 0p r i n t " t h i sg e n e r a t o rn o l o n g e r n e e d e d . "
I H 2 6 0 : Q
T r a n s a c t o r A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 8/84
F o l l o w - u p sa n dr e t u r n s
L a s t i s s u et h i s s p a c ew a s d e v o t e dt o c o p y
p r o t e c t i o n .S p e c i f i c a l l y ,I w a s u p s e tt h a t C o m
m o d o r eG E O Si s p r o t e c t e da n dA p p l eG E O Si s n ' t .
S i n c et h a tt i m eI h a v ed i s c o v e r e da v e r yi n t e r e s t i n g
t h i n g :W h e nf i r s tr e l e a s e d ,A p p l eG E O Sw a sc o p y
p r o t e c t e db u tt h er e s p o n s ef r o mt h eA p p l ec o m m u
n i t yw a ss o n e g a t i v et h a tB e r k e l e y S o f t w o r k sr e
m o v e dt h e p r o t e c t i o n !S i n c et h e n ,A p p l eG E O S
s a l e s f i g u r e sh a v ei m p r o v e d .O f c o u r s e ,s o m em a y
c o n t e n dt h a t s a l e sw e r es t i m u l a t e d p r i m a r i l yb y t h e
r e l e a s eo f A p p l eG e o P u b l i s h ,b u tm yo w nf e e l i n gi s
t h a t s a l e so f b o t ha r ea u g m e n t e db e c a u s eo f t h ea b
s e n c e o fc o p y - p r o t e c t i o n .
T h i sm e a n st h e r ei s h o p e !W r i t et o B e r k e l e ya n dt e l l
t h e mh o wy o uf e e l .M a y b ew e c a ng e t t h es i t u a t i o n
c h a n g e d .I n t h ec a s eo f A p p l eG E O S ,B e r k e l e yS o f t -
w o r k sh a sd e m o n s t r a t e dt h a tt h e ya r er e s p o n s i v et o
t h eu s e rc o m m u n i t y .T h eb a l li s i n y o u rc o u r tn o w . . .
T h er e s p o n s et o P a u lB o s a c k i ' sh a r d w a r ep r o j e c ti n
9 : 2 h a s b e e n p h e n o m e n a l .S e e m sl i k ee v e r y b o d y
w a n t sm o r eR A M !A s a m p l i n go f t h e l e t t e r sP a u l
h a sr e c e i v e d( a n dP a u l ' sr e p l i e s )h a v e b e e ni n c l u d e d
i n L e t t e r s .A l s oi n t h i si s s u ei s a n a r t i c l eb y R i c h a r d
C u r c i os u g g e s t i n ga s i m i l a r p r o j e c t f o rt h eC 1 2 8 .I n
c l u d e dw i t ht h a ta r e t h e l e t t e r sb e t w e e nP a u la n d
R i c h a r da n ds o m es c h e m a t i c sf r o mR i c h a r d .T h i si s
a t o p i ct h a ti s n o tg o i n gt o g o a w a y !N o wi f o n l yt h e
p r i c eo f R A Mw o u l dc o m ed o w n . . .
I n 9 : 3w e w e r e' p u s h i n gt h e l i m i t s 'w i t hG e o r g
H u g ' sT o w a r d2 4 0 0 ;a n o t h e ra r t i c l et h a tw a sv e r y
w e l lr e c e i v e d .I d o n ' tk n o wh o wm a n yp e o p l eh a v e
c a l l e da b o u tt h a t .S o m eo f t h e mc a l l e dt o g e t t h e
m i s s i n gd a t as t a t e m e n tl i n ef r o mt h e C I At e s tp r o
g r a m( s e eB l o o p s ) .S o m ew e r ei n t e r e s t e di n i n c o r
p o r a t i n gt h e r o u t i n e si n t h e i ro w np r o g r a m s .A t l e a s t
t h e p r i c e so n 2 4 0 0b p sm o d e m sh a v eb e c o m ea f
f o r d a b l e . . .
W e ' r ep u s h i n gt h e l i m i t s i n' f l e s h w a r e 't o o .B y t h e
t i m ey o ur e a dt h i st h eT r a n s a c t o re d i t o r i a l s t a f fw i l l
b e 3 3 %l a r g e r .T h a t ' sr i g h t ,w e h a v ea n e we d i t o r .
T i mG r a n t h a md i de i g h tA m i g aD i s p a t c h e sc o l u m n
f o r u s b e f o r eD o nC u r t i ss t a r t e dd o i n gi t w h e nw e
s t a r t e du p T r a n s A m i .T i ma l s or e c e n t l ys t a r t e da
n e wc o l u m ni n T r a n s A m ic a l l e dH a r dC o p y .T i m
h a sb e e n' i n d e e p 'f o r q u i t ea w h i l ew i t hb o t ht h e
A m i g aa n dt h e 8 - b i tm a c h i n e s .W e ' r ev e r yp l e a s e
t o w e l c o m eT i mb a c kt o T r a n s a c t o r .T h ee x t r am a n
p o w e r m e a n sw e ' l lh a v et i m ef o ro t h e rt h i n g s ,s u c h
a s e a t i n g ,s l e e p i n ga n db r e a t h i n g .
A l s or e t u r n i n gt h i si s s u e a r eL e t t e r sa n dN e w s B R
T o t h o s e o fy o uw h ow r o t ei n a b o u ti t o r w e r ej u s t
w o n d e r i n g ,t h e y h a v e n ' tb e e nd i s c o n t i n u e d .W ej u s t
n e e d e dt h e s p a c e .B o t hd e p a r t m e n t sa r e f a i r l y
w e i g h t yt h i st i m e .
M a l c o l mD . O ' B r i e n
T r a n s a c t o r A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 9/84
L R
P l e a s e a d d r e s sl e t t e r s t ot h ee d i t o rt o :
L e t t e r s ,T r a n s a c t o rM a g a z i n e ,
1 0 - 8 5 W e s tW i l m o tS t r e e t ,
R i c h m o n dH i l l ,O n t a r i oL A B1 K 7 .
A t a l eo f w o e . . .a n da s o l u t i o n :I w o u l d
l i k et o t h a n ky o ua l l f o r t h ec o m p l i m e n
t a r yc o p yo f T r a n s a c t o rc o n t a i n i n gJ o e l
M . R u b i n ' sc o m p a r i s o n r e v i e wo f af e w
C o m m o d o r em a c r oa s s e m b l e r s ;m yB u d
d y i n c l u d e d .B r i a nH i l c h i eo n c es a i dt o
m e , r e g a r d i n g a n o t s ot o t a l l yp o s i t i v e
r e v i e wo f h i sC c o m p i l e r ," B a dp u b l i c i t y
i s b e t t e rt h a nn o p u b l i c i t y . "O f c o u r s ei t
w a s n ' ta b a dr e v i e w , o ru n f a i r .B u ti t s t i l l
p i s s e dm e o f f a n dm a d em e s a y s o m e
g o s hd a r nb a dw o r d s .
B u tb e f o r eI l a u n c hi n t oa n ym o r eh e a r t
r e n d i n gw h i n i n go r t h er e a s o nw h yI f e l t
c o m p e l l e dt o s a y t h e s eb a d w o r d s ,I
w o u l dl i k e t os h a r e ag l i m p s eo f t h es o f t
w a r ei n d u s t r yt h r o u g ht h ee y e so f B u d
d y ' s g r e a t e s tf a na n dv i c t i m :i t s a u t h o r ;
t h e i d e ab e i n gn o t o n l yt o e g o i z eo n a
b i t ,b u tt o t r y a n dp i e c e t o g e t h e ra n a d
m i t t e d l yc y n i c a ls o f t w a r e p u b l i c a t i o n
t h e o r yt o b e c o n s i d e r e db y o t h e ru s e r s
a n dh a c k e r sp u r ei n s p i r i t .
E v e r yh a c k e rh a sd r e a m s( i na d d i t i o nt o
t h o s eo f f l y i n ga n db e i n gf o u n di n e x p l i
c a b l ya n de m b a r r a s s i n g l yn a k e di n p u b
l i c p l a c e s )o f g a i n i n gr e c o g n i t i o na n dr e
w a r df o rh i sa w e s o m ep r o g r a m m i n ga c
c o m p l i s h m e n t s .I ( e x c e p tf o r t h e f l y i n gd r e a m s )a mn o d i f f e r e n t .
B e f o r e B u d d y ,I d i d a s c r e e n d e s i g na n d
a n i m a t i o nu t i l i t yf o r g a m e sp r o g r a m
m e r sc a l l e d6 4 A n i m a t o r .A l t h o u g hl i f e
o n E a r t h( a n d p e r h a p sm y m a r r i a g e )
c o u l dw e l lh a v ec a r r i e do n m u c ht h e
s a m ei f I h a dn o t ,i t w a s n ' tb a d ,a n de v
e r y p u b l i s h e rt h a te v e rl o o k e da t i t d r e w
u p a c o n t r a c t .E x c e p tC o m m o d o r e .
C o m m o d o r el o o k e da t i t f o r a b o u ts i x
m o n t h sa n dt h e ns a i dt h e y w e r e n ' ti n t h e
s o f t w a r e b u s i n e s sa n y m o r e .I d o b e l i e v e
h o w e v e rt h a ts o m eo f t h e i d e a si n i t m a y
h a v e f o u n dt h e i rw a yi n t ot h es p r i t er o u
t i n e so n t h e 1 2 8 .( C a l lm ep a r a n o i d ;c a l l
m e a m e g a l o m a n i a c ;j u s td o n ' tc a l lm e a
l a w y e r . )C o m m o d o r e( C a n a d a )r e t u r n e d
t h e s i x t yb u c k sI h a dp u tu p t o g e tt h e m
t o l o o ka t i t i n t h ef i r s tp l a c e ; t h e r e b y ,i n
t h e i re x p r e s s e dc o n s i d e r a t i o n ,v o i d i n g
o u rn o n - d i s c l o s u r ea g r e e m e n t .
R i c h v a l eT e l e c o m m u n i c a t i o n s( r e m e m b e r
S c r i p t6 4 1 ) s i g n e du p f o rA n i m a t o rn e x t-
t h e ns a to n i t f o ra b o u ts i x m o n t h su n t i l
t h e yw e n tu n d e r .N e x ti t w a sP r o - L i n e ' s
t u r n .P r o - l i n ed i n k e d a r o u n dw i t hi t l i t e r
a l l yf o ry e a r sb e f o r er e l e a s i n gi t t o S p i n
n a k e rw h or e l e a s e di t b a c kt o t h e mw h o
r e l e a s e di t b a c kt o m e .R i c h a r dE v e r s '
N o r t h e r nB l u eM a r k e t i n gI n c .c o n t r a c t e d
t o p u b l i s hi t n e x t ,a n di s c u r r e n t l yd o i n g
s o ,a n d- g e tt h i s- h a sa c t u a l l y s e n tm ea
r o y a l t yc h e q u e .R i c h a r da n d c o m p a n y
a n df a m i l y ,I l o v e y o u ;I r e a l l yd o .
B u d d ya s s e m b l e rw a sP r o - L i n e ' si d e a .T h ew o r l do w e s B u d d yt o P r o - L i n ea n d
O S A P( O n t a r i oS t u d e n tA s s i s t a n c eP r o
g r a m ) .I e v e nm a d ea l m o s te n o u g hm o n
e y t h ef i r s ty e a rt o , s a y ,c o v e rm yh y d r o
( I h e a tw i t ho i l ) . S t i l l ,i t w a sb e t t e rt h a n
t h e n o t h i n gI w a sa c c u s t o m e dt o . T h e n
P r o - L i n e d e c i d e dt o s i g na n a g r e e m e
f o r a l l o f t h e i rp r o d u c t sw i t ht h e b i g
b o y sa t S p i n n a k e rd o w ni n B o s t o n .A n d
t h a tw a st h a t .T h ef i r s tq u a r t e rI a c t u a l l y
e a r n e d an e g a t i v er o y a l t y .O f c o u r s e ,
t h e yd i d n ' tm a k em e p a y ; t h e yl e t m e
o w ei t t o t h e m .N e x tq u a r t e rI p a i dP r o -
L i n eb a c kf r o mr o y a l t i e sb a s e do n b a c k
c o l l e c t i o n sf r o mt h e i ro w ns a l e sa n dI
h a v e n ' t s e e n an i c k e ls i n c e .A n dn e i t h e r
h a sP r o - L i n ef r o m w h a tI h e a r .
A n y o n ew h ob o u g h tS p i n n a k e r ' sp a c k
a g e ( n o b o d ya c c o r d i n gt o m y p e r c e n t
a g e )p r o b a b l yw o n d e r e dw h yt h e n a m e
P o w e rA s s e m b l e ri s d i s p l a y e da b o v eC
s o u r c e c o d e . A f t e ra l l , t h e a s s e m b l e
s a y s " B u d d y " w h e ny o u r u n i t ; y o u
h a v et o t y p ei n " B u d "t o i n v o k ei t ; t h e
m a n u a lr e f e r st o t h e " B u d d yS y s t e m "
t h r o u g h o u t ;a n dC s o u r c ew o u l ds u r e l y
b e a w o n d e r f u ls o u r c e- o f s y n t a xe r r o r s .
B u tI w o u l db e w i l l i n gt o l e t t h e ms l i d e
f o rs e e m i n g l ys t i c k i n gi t i n a u s e db o x ;I
w o u l de v e n b ew i l l i n gt o i g n o r et h ef a c t
t h a tt h e yh a v en e v e ra d v e r t i s e dt h ep r o d
u c t- i f i t w e r en o tf o r t h ef o l l o w i n g :
S p i n n a k e ra p p a r e n t l yd o e sn o tb e l i e v ei n
u p d a t i n gt h e i r r e l e a s e s .T h ev e r s i o nr e
v i e w e di s a s o l da s t h ep r o v e r b i a lh i l l s .B u d d yh a sb e e na t r u em a c r oa s s e m b l e
T r a n s a c t o r A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 10/84
f o r y e a r s ;i t h a s a v e r t i c a ls p l i t - s c r e e n
e d i t o r ,s u p e r i o rm e m o r ym a n a g e m e n t ,
s p e e d ,a n dd i s p l a y f o r m a t t i n g ,a n de v e n
i m p r o v e dd o c u m e n t a t i o n( a l t h o u g h
s o m em i g h ts t i l lf i n di t o v e r l yc o n c i s e ) .
J i m B u t t e r f i e l d ,L i z D e a l ,R i c h a r dE v -
e r s , M i k l o s G a r a m s z e g h y ,D a r r e n
S p r u y t ,J o h nL e ma n da z i l l i o no t h e r s
g a v em e v a l u a b l ef e e d b a c ki n b r i n g i n g
B u d d yu p t o w h a ti s c u r r e n t l yn o t
a v a i l a b l ef r o mS p i n n a k e rt o d a y .N o w ,I
k n o wt h a t h a c k e r su p d a t et h e i r s t u f f
h o u r l ya n da p u b l i s h e rc a n ' ta l w a y s b e
r e s t u f f i n gb o x e s , b u tS p i n n a k e rh a sh a d
t h e l a t e s ta n dg r e a t e s tf o r o v e ra y e a r .
J u s ts i t t i n g t h e r e .
N o w ,I ' l l p r o b a b l yn e v e rg e t r i c ho f f
B u d d y ,b u ti t d o e sg i v em ea n i c e ,w a r m ,
f u z z yf e e l i n gt o k n o wt h a ts o m e o n eo u t
t h e r ei s o c c a s i o n a l l yw o w e db y i t a n d
f i n d si t u s e f u l .A n di t a n n o y st h e s o c k s
o f fm ew h e ng i a n t s s l e e pi n t h e r o a d .
I g u e s sm y a d v i c et o h a c k e r si n s e a r c h
o f r e c o g n i t i o na n dr e w a r dw o u l db e t o
s e e ko u tt h e s m a l l e s tp u b l i s h e ry o uc a n
f i n d .S o f t w a r ep u b l i s h e r sa r e l i k ef i s h :
t h eb i g g e rt h e ya r e ,t h eh a r d e r t h e yj e r k
y o ua r o u n d .T h i si s m yt h e o r y ;i t i s w h a t
I h a v ec o m et o b e l i e v e .
T r a n s a c t o rh a sb e e nm y s t a u n c h e s ta l l y
a l l a l o n g ;a l w a y sc o n n e c t i n gm ew i t ht h e
r i g h tp e o p l ea n dt h e r i g h ti n f o r m a t i o n .
E v e rc a t e r i n gt o m y e v e r - s t a r v i n g e g o .
Y o ug u y ss a v e dm y l i f e .I c a n n o tt h a n k
y o ue n o u g h .
I n o ws p e n dm y d a y s c o d i n g m e d i c a l
s y s t e m si n C o n K i t c h e n e r O n l i n eD a t a ' s
s t a t eo f t h ea r t ,3 2 - n o d e ,Q N Xn e t w o r k .
1 e n j o yt h ew o r ka n dt h ep e o p l e .B u tt h e
C o m m o d o r e6 4 w a sm y f i r s ta n di s m y
d e e p e s tl o v e .I f e e lb a df o r l e t t i n gh e r
l a n g u i s hs o m e t i m e s , b e c a u s ei f i t w e r e
n o tf o r t h eC o m m o d o r e6 4 a n dT r a n s a c
t o r I h o n e s t l yb e l i e v et h a tI w o u l ds t i l l
b e p a i n t i n gt o w n h o u s e so r w a s h i n gp o t s
f o r a l i v i n g- i n s t e a do f p l a y i n go n t h e
v i r t u a lc i r c u i t s .A l lt h eb e s t ,
C h r i s M i l l e r
2 H i l d aP l a c e ,K i t c h e n e r ,O NN 2 G1 K 3
A s y o uc a ns e e ,t h i si s n o ty o u ra v e r a g e
l e t t e rt o t h e e d i t o r .S i n c ei t c o n t a i n s
s o m ep r o v o c a t i v em a t e r i a l ,I p h o n e d
C h r i st o a s kh i mi f h e w o u l dm i n di f w e
p r i n t e di t . H e s a i dt h a th e h a dw r i t t e ni t
f i g u r i n gt h a tw e w o u l dp u b l i s ha t l e a s t
s o m eo f i t . O f c o u r s e ,t h e s t a t e m e n t s
m a d ea n do p i n i o n se x p r e s s e da r eC h r i s '
o w n . T r a n s a c t o rr e c e i v e da l e t t e ra n d
p u b l i s h e di t , t h a t ' sa l l .
S i n c eh i sm a i nc o n c e r na t t h i sp o i n t ,a s
e x p r e s s e di n t h e l e t t e r , i st h e u n
a v a i l a b i l i t yo f h i s u p g r a d e ,I m a d ea
s u g g e s t i o na n dC h r i sa g r e e dt o i t . I s u g
g e s t e dt h a tC h r i ss u p p l yt h eu p g r a d ed i
r e c t l y .C h r i sw a sc o n c e r n e dt h a tu s e r s
w o u l dt h i n kt h a th e w a sj u s tt r y i n gt o
s c o o pu p s o m ec a s hb y w r i t i n gh i sl e t t e r .
I t o l dh i mt h a tI w o u l ds a yt h a t t h eu p
g r a d eo f f e rw a sm yi d e a( a n ds o i t w a s ) .
H e a l s od i d n ' tw a n tt o c h a r g es o m u c h
t h a tp e o p l ew o u l db e p u to f fa n db e d e
n i e dt h e u p g r a d e .W e a g r e e dt h a t$ 1 0
w a sa r e a s o n a b l ef i g u r ea n du n l i k e l yt o
d i s s u a d ea n y o n eo n t h eb a s i so fc o s t .
O f c o u r s e , t h er i g h t st o B u d d ya r e h e l d
b y S p i n n a k e ra n dh e c a n ' tb e t a k i n gc u s
t o m e r sf r o mt h e m .S o . . . i fy o us e n d y o u r
o r i g i n a lP o w e rA s s e m b l e rd i s ka n d$ 1 0
t o t h ea d d r e s sp r i n t e da b o v e , C h r i sw i l l
s e n dy o ut h e " l a t e s ta n dg r e a t e s t "v e r
s i o no fB u d d yw i t hs o m es u p p l e m e n t a r y
d o c so n d i s k .I s t r e s st h a ti t m u s tb e t h e
o r i g i n a ld i s k .T h i sw a y , C h r i si s n o tt a k
i n g c u s t o m e r sf r o mS p i n n a k e r .T h e y
m a k et h e i rm o n e y w h e ny o up u r c h a s e
P o w e rA s s e m b l e r .I n e f f e c t ,C h r i si s p r o
v i d i n gc u s t o m e rs u p p o r t f o rt h e i rp r o d
u c t o n " v o l u n t e e rp l u sc o s t sp l u sa l i t
t l e " b a s i s .S i n c et h ep r o d u c ti s n o tc o p y
p r o t e c t e d ,y o uw o n ' th a v et o d o w i t h o u t
w h i l ei t ' si n t h e m a i l .
P u s h i n gt h eL i m i t s :P a u lB o s a c k i ' sa r
t i c l eo n e x p a n d i n gt h eC 6 4 ' sm e m o r yi n
t e r n a l l yh a sb e e nv e r yw e l lr e c e i v e d ,t o
p u t i t m i l d l y .P a u lh a sr e c e i v e dn u m e r
o u s l e t t e r sa n d i s s t i l lr e c e i v i n gt h e m
( a n dr e p l y i n gt o t h e m )a s w eg o t o p r e s s .
I n t h es p a c er e m a i n i n gw e ' v ei n c l u d e d
s o m eo f t h e s el e t t e r sa l o n gw i t hP a u l ' s
r e s p o n s e s .I ' v e e d i t e db o t ht h e l e t t e r s
a n d r e s p o n s e ss o m e w h a tt o e l i m i n a t e
m a t e r i a lw h i c hd o e sn o tp e r t a i nd i r e c t l y
t o t h ea r t i c l e .- M O
W a n t e d :N o n - v o l a t i l e1 7 5 0 : 1r e a dy o u r
a r t i c l e ," C a r e a n dF e e d i n go f t h eC 2 5 6 "
i n T r a n s a c t o r9 : 2w i t hg r e a ti n t e r e s t .I ' m
w r i t i n gy o u i n t h e h o p et h a ty o um a y
h a v e a na n s w e rt o a p o s s i b l eh a r d w a r
f i xf o r t h e1 7 5 0R E U .I u s ei t a s a C P / M
R A M d i s ko n t h e C 1 2 8 . I ' mt o l dt h a ti t
m i g h t b ep o s s i b l et o c o n v e r tt h e R E U
i n t oa n o n - v o l a t i l eR A M d i s k .T h i sa p
p a r e n t l yc o u l db e d o n eb y i n t e r r u p t i
t h e p o w e rs u p p l yl i n e f r o mt h e m a i n
b o a r di n s i d e t h e c a r t r i d g e , i na
" r e f r e s h e rc i r c u i t " ( o s c i l l a t o r / r
a n d c o n n e c t i n gt h i sc i r c u i t t oa d i r e c t
a n dc o n s t a n tp o w e rs u p p l y .
N o ta b a t t e r y ;u s e d ,f o r i n s t a n c e ,b y t h e
Q u i c kB r o w nB o x .S i n c et h e R E Uu s e s
d y n a m i ca n dn o t s t a t i cR A M ,a b a t t e r y
w o u l d n ' t k e e pi t s c h a r g e v e r yl o n g , s u s
t a i n i n g5 1 2 Ko f D R A M .B u tr a t h e rc o n
n e c t i n gt h ec i r c u i t t oa t r a n s f o r m e rp l u g ,
o f t h ek i n d u s e dt o p o w e rt r a n s i s t o rr a
d i o s w h e nt h e i rb a t t e r i e s a r e n ' tb e i n g
u s e d .I t w a ss u g g e s t e dt h a ta p l u g s u p
p l y i n g 7v o l t sw o u l db e a b o u tr i g h t .
D o e si t s e e mt o y o ut h a tt h i sw o u l db e
p o s s i b l e ?I f s o ,I ' mn o ts u r eI ' d a t t e m p
i t m y s e l f , b u tw i t ht h e p r o p e ri n s t r u c
t i o n sa n da r o u g hs c h e m a t i c ,i f n e e d e d
I ' d h a p p i l yh a n di t o v e rt o a n e x p e r i
e n c e dt e c h n i c i a n .
C a r l G a b l e r ,V a nN u y s ,C A
A n dI ' m a f r a i dt h a ta l l I h a v ei s b a d
n e w sf o ry o u .I t o o ,h a v e h e a r do fs u c ha
h a r d w a r ef i x ,b u to n l yi n t h e" w o u l d n ' i t
b e g r e a ti f "s t a g e s .W h e nI f i r s tr e c e i v e
y o u rl e t t e r ,I l o o k e db r i e f l y i n t ot h ep r o b
l e m ,a n dt h o u g hI b e l i e v ei t p o s s i b l e ,I
j u s th a v e n ' th a dt h et i m et o d o a n y t h i n
a b o u ti t . Y o u rn o t eo u t l i n e dt h ep r o b l e
e x a c t l y :e x t e r n a lp o w e rs u p p l y , v o l
r e g u l a t o ra n da r e f r e s h e ro fs o m es o r t .
T h e4 1 2 5 6D R A Mh a sa n o n b o a r dr e
f r e s hc o u n t e r ,s o a l l t h a t ' sn e c e s s a r yi n
t h e r e f r e s h e ri s a t i m e r( t h e t i m i n
t e n s e )a n da m e t h o do f s t r o b i n g* R A S
w h i l e* C A Si s h e l dl o w .T h ep o w e rc o n
s u m p t i o nw o u l db e h i g h ,b u t t h e nw e ' v e
a n e x t e r n a lp o w e rs u p p l y ,s o t h a t ' sn o ta
p r o b l e m .
A n y w a y ,t h a t ' sp r e t t ym u c ha l l I h a v et o
s a yo n t h e t o p i c r i g h tn o w .I f I g e ta n y
f u r t h e r w i t hi t , I ' l ll e ty o uk n o w .O n t h e
o t h e rh a n d ,i f y o um a n a g et o c o m eu p
w i t ha n y t h i n g ,I ' d a p p r e c i a t eh e a r i n
T r a n s a c t o r 8 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 11/84
a b o u ti t . M y R E Uc o u l du s e t h e s a m e
t r e a t m e n t .T h a n ky o uf o r y o u ri n t e r e s t .
I ' ms o n yI c o u l d n ' tb e o fm o r eh e l p .
I j u s tg o tT r a n s a c t o r9 : 2w i t hy o u ra r t i
c l e i ni t . I a mv e r yi n t e r e s t e di n k n o w i n g
h o wy o um a n a g e dt o s q u e e z e1 M Bi n t o
a C 6 4 .P l e a s es e n dm e a n y i n f oy o u
h a v eo n t h ep r o c e d u r e .I s t h e 1 M Ba l s oG E O Sc o m p a t i b l e ?
W h a to t h e rp r o j e c t s a r ei n t h e w o r k s ?
H o wf a r c o u l dt h e 6 4 b e e x p a n d e d ?
C o u l da n o t h e r g r a p h i c s c h i pb e i n t e r
f a c e dt o i m p r o v er e s o l u t i o n ?C o u l dt w o
6 4 sb e l i n k e dt o c o m m o nm e m o r yt o d o
m u l t i t a s k i n go r p a r a l l e lp r o c e s s i n g ?
A s y o uc a n s e e ,I ' m f u l lo f q u e s t i o n s .
A n y t h i n gy o uc o u l d s e n dt o a n s w e ra f e w
w o u l db e g r e a t l y a p p r e c i a t e d .T h a n ky o u .
D a l eS c h o e k ,H u r s t ,T X
/ s t u f f e da m e gi n t ot h e 6 4 u s i n gt w o
v e r yd i f f e r e n tt e c h n i q u e s .T h ef i r s t ,a n d
p e r h a p sl e a s to b v i o u s- I e x p a n d e d a
1 7 6 4R E Ut o 5 1 2 K .A s y o um a yk n o w ,
t h i su n i tc o m e sw i t h2 5 6 Ki n s t a l l e d .T a k
i n g i t t o 5 1 2 Ki s a s s i m p l ea s o p e n i n g
t h e u n i ta n di n s t a l l i n ga n o t h e rb a n ko f
4 1 2 5 6 ' s .T h e1 5 0n a n o s e c o n dc h i p s a r e
t h eo n e st o u s e .T h e y ' r ed e s i g n a t e dw i t h
a - 1 5a t t h ee n do f t h ec h i pn u m b e r ,i . e .
4 1 2 5 6 - 1 5 .
I n o r d e rt o i n s t a l lt h e e x t r aR A M ,y o u
w i l lh a v et o c l e a rt h e s o l d e rr i n g s ,b u t
o t h e rt h a nt h a t ,t h e r e ' sn o t h i n ge l s ei n
v o l v e d .J u s ta l i t t l ep r o f i c i e n c y w i t ha
s o l d e r i n gi r o n ,a n dt h eu s u a la n t i - s t a t i c
p r e c a u t i o n s .
N o w ,c o n c e r n i n gt h e 5 1 2 Ke x p a n s i o n
b o a r dt h a tI h a v ei n s t a l l e di n m y 6 4 : i t
n o wl o o k sa s t h o u g h T r a n s a c t o rw i l lb e
p u b l i s h i n gt h e5 1 2 KU p g r a d ea r t i c l ei n
a n u p c o m i n gi s s u e .B e c a u s eo f t h i s ,I ' m
b a c ki n d e v e l o p m e n t ,t r y i n gt o s t r e a m
l i n et h eb o a r d .S o u n t i l It e s to u tt h en e w
b o a r d ,I r e a l l yw o u l df e e lu n c o m f o r t a b l e
r e l e a s i n gt h a t i n f o r m a t i o n .K e e py o u r
e y e so p e n ;i t ' l lb e i n a T r a n s a c t o rs o o n .
A s w e l l ,t h e a r t i c l e w i l lp r e s e n tt h e
d r i v e rt h a tw i l lc o n f i g u r et h e e x t r aR A M
a s a 1 5 7 1R A MD I S K ,a s w e l la s a l l o w
t h e1 7 x xR E U ' s a n dm yR A Me x p a n s i o n
t o f u n c t i o nt o g e t h e r .I n t h ef i r s t a r t i c l e ,i t
w a so n eo r t h eo t h e r .N o tb o t h .
W h a to t h e r p r o j e c t sa r e i n t h e w o r k s ?
M o s t l y ,I ' m w o r k i n go n s o f t w a r er i g h t
n o w ,a n dt h e u p c o m i n gT r a n s a c t o ra r t i
c l e .I ' v ea l s ob e e nl o o k i n ga t d o i n ga n i n
t e r n a lR A Me x p a n s i o nt o o n e m e g ,u s i n g
o n em e gc h i p s .I t g e t sa l i t t l er i d i c u l o u st h o u g h .T h r o u g h b a n k e dR A M ,t h e r e ' sn o
r e a s o n w h y y o u c o u l d n ' ti n s t a l l
m e g a b y t e so f m e m o r yi n t oa 6 4 ( p o w e r
s u p p l yc o n s i d e r e d ) .B u tw h e ny o uc o n s i d
e r t h a ta 6 4 c o s t sl e s st h a n$ 1 7 5a n da
f u l lm e g a b y t eo f R A M$ 3 2 0 . . .w e l l ,y o u
s e ew h a tI m e a n .S o ,i t s t o p ss o m e w h e r e ,
p r o b a b l yw h e r et h e c o s to f t h e m e m o r y
e x c e e d st h eo r g i n a lp u r c h a s ep r i c eo f t h e
c o m p u t e r .5 1 2 Kp u s h e si t .
C o n c e r n i n gs o m eo f y o u ro t h e rq u e st i o n s h e r e .T h e r e ' sn o s e n s ei n a d d i n g
a n o t h e rV I Cc h i pt o a 6 4 .N o ,i t w o u l d n ' t
i n c r e a s er e s o l u t i o n .I n f a c t ,i t ' sp r o b a b l y
i m p o s s i b l ed u et o t h ew a yt h eV I Ch a n
d l e st h ea d d r e s sa n dd a t a b u s e sa n dr e
f r e s ht i m i n ga n db u s t i m i n g ,e t c .W h a t
I ' v ea l w a y st h o u g h tw o u l db e a r e a l l y
n e a t o p t i o ni s a n e wc h i pt h a t ' sc o m p a t i
b l e w i t h t h e e a r l i e rV I C b u t o f f e r s
( t h r o u g ha d d i t i o n a lr e g i s t e r s )h i g h e r
r e s o l u t i o n s ,m o r ec o l o u r s ,e t c . T h a t
w o u l db e t h ew a yt o g o .B u tt h a t ' su p t o
C o m m o d o r e ,s o I d o u b tw e ' l l s e es o m e
t h i n gl i k e t h a t .A l t h o u g h ,I h a v eh e a r d
r u m o u r st h a tC o m m o d o r ei s c o n s i d e r i n g
a n e w8 - b i tc o m p u t e rt h a tw o u l db e 6 4 -
c o m p a t i b l e .M a y b ea ' t u r b o '6 4 w i t he n
h a n c e dg r a p h i c sa n d m e m o r y !
A n dl a s t l y ,c o n c e r n i n gm u l t i t a s k i n g .T h e
5 1 2 Kb o a r do f f e r s t h a to p t i o n .T h e2 5 6 K
m o d ,a s y o u k n o w , k e e p sa c e r t a i n
a m o u n to f m e m o r yc o m m o nt o e a c h
b a n k . T h e 5 1 2 Km o d a l l o w sy o u ,
t h r o u g hs o f t w a r e ,t o t u r no f f t h a t o p t i o n .
W h a th a p p e n st h e ni s t h a t ,w i t ha l i t t l e
b i to fs e t - u p ,y o uh a v e8 a b s o l u t e l ys e p a
r a t e6 4 Kp a r t i t i o n s .E a c hw i t hi t s o w n
s t a c k ,z p a g e ,a n dK e r n a lv e c t o r s .T h e
o n l yt h i n g t h a th a s t o b e h a n d l e di s
r e l o a d i n gt h eI I Oc h i p so n b a n ks w i t c h .
Y o u ' l lr e a da l la b o u ti t s o o n .
S o m ea l t e r n a t i v e s :I v e r ym u c he n j o y e d
r e a d i n gy o u r" C 2 5 6 "a r t i c l ei n T r a n s a c
t o r 9 : 2 .T o m y k n o w l e d g e y o ua r e t h e
f i r s tt o d e m o n s t r a t ea w o r k i n gc o n v e r
s i o no f t h i st y p ef o r t h eC 6 4 .N o wt h a t
y o uh a v ed o n et h eh a r dp a r t ,t h er e s to f
u s c a nj u s ts i t b a c k a n dw a i tf o r s o m e
c h e a pR A Mt o c o m ea l o n g .
I f c o n v e n i e n t ,I w o u l da p p r e c i a t ey o u r
s e n d i n gm e a l i s to f a n ye r r o r s i nt h ea r
t i c l e .I a s s u m et h a to n p a g e7 1 t h eA E C
s w i t c hs e t t i n gu n d e rB ( i i )s h o u l dr e a d" e n a b l e dw h e nc l o s e d " , b u tI w o u l dl i k e
t o k n o wa b o u ta n yo t h e rt y p o sy o um a y
h a v ef o u n d .
C o n g r a t u l a t i o n so n y o u rs u c c e s s f u lp r o
j e c ta n df i n ea r t i c l e s .I l o o kf o r w a r dt o
f u t u r e i n s t a l m e n t s .
C o n c e r n i n gt y p o si n t h ea r t i c l e .Y o u ' v e
c a u g h tt h eg l a r i n go n e .T h er e s t a r e , t o
m y k n o w l e d g e ,j u s t m i s s p e l l i n g s ,a n d
t h o s ea r e m i n e , n o tT ' s .T h eo n l y o t h et h i n gi s a n o m i s s i o ni n t h ec o d e . I nt h e
h e a d e rd e c l a r a t i o n ,t h e i c o ni s m i s s i n g .
A p p a r e n t l y ,t h eT i s p l a n n i n ga n e r r a t a .
[ T h em i s s i n gi c o nd a t ai s i n c l u d e d a sa
" b l o o p "i n t h i s i s s u e .- M O ] □
N O WA V A I L A B L E F O R T A M I G A
T h eM i c r o F l y t eJ O Y S T I C K ,t h e o n l yf u l l y
p r o p o r t i o n a lc o n t i n u o u s l yv a r i a b l e j o y s t i c kc o n
t r o lf o r F l i g h tS i m u l a t o rI I
" . . . I t t r a n s f o r m sa n e x c e l l e n tp r o g r a mi n t oa
t r u l yr e a l i s t i cf l i g h ts i m u l a t i o ns y s t e m "B . A . C . E .
M I C R O C U B EP R O D U C T S
C o m m o d o r e6 4 / 1 2 8
• M i c r o F l y t eA T CJ o y s t i c k $ 5 9 . 9 5
• T e s t / C a l i b r a t i o nD i s k :A d i a g n o s t i ct o o lf o ry o u r
j o y s t i c k $ 4 . 9 5
A m i g a
• M i c r o F l y t eJ o y s t i c k — P l u g si n t ot h e m o u s ep o r t& w o r k sw i t hm o s ts o f t w a r e. $ 1 1 9 . 9 5
• A n a l o gJ o y s t i c k $ 7 4 . 9 5
I n c l u d e$ 4 . 0 0s h i p p i n g o fj o y s t i c ko r d e r s .F S I Ii s
a t r a d e m a r ko f s u b L O Q I CC o r p .
O r d e rD i r e c t f r o m :
M I C R O C U B E
C O R P O R A T I O N
P . O .B o x4 8 8
L e e s b u r g .U A2 2 0 7 5( 7 0 3 ) 7 7 7 - 7 1 5 7
T r a n s a c t o r A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 12/84
G o ta n i n t e r e s t i n gp r o g r a m m i n gt i p ,a s h o r tr o u t i n e ,o r a n u n k n o w nb i to f
C o m m o d o r et r i v i a ?S e n di t i n - i f w eu s ei t i n t h eb i t sc o l u m n ,w e ' l lc r e d i ty o ui n t h e
c o l u m na n ds e n dy o u af r e eo n e - y e a rs u b s c r i p t i o nt o T r a n s a c t o r .
F a s tG r a p h i c sP r i m i t i v e sw i t hS Y M A S S
H e n r yC a l e ,R o s w e l l ,N e wM e x i c o
R o b e r tH u e h n ' se x c e l l e n tF a s tG r a p h i c sP r i m i t i v e sp r o g r a mi n
t h e D e c e m b e r1 9 8 9i s s u e( V o l u m e9 I s s u e2 ) o f T r a n s a c t o rw o r k sw e l la f t e rb e i n ga s s e m b l e du s i n gS Y M A S Si f t h ef o l l o w
i n gm i n o rc h a n g e sa r em a d et o t h ea s s e m b l yc o d e :( 1 )R e m o v e
t h ec o m m e n ta f t e rS Y S7 0 0i n l i n e1 0 0 .( 2 )E n t e r5 7 0 0. E N D
a s t h el a s tl i n eo f t h el i s t i n g .( 3 )C h a n g et h ec o d es t a r t i n ga d
d r e s st o 2 9 0* = $ C 0 0 0o r s o m eo t h e rs a f e l o c a t i o n .A t $ 9 0 0 0
t h ea s s e m b l e d c o d eo v e r w r i t e sS Y M A S S ' s s y m b o l st a b l ew h i c h
p r o p a g a t e sd o w n w a r df r o ms y m a s sc a u s i n gs y m b o l n o t
F O U N De r r o r s .
C o m m a n dT a i l sf o rt h eC 6 4 / C 1 2 8
N o e lN y m a n ,S e a t t l e ,W a s h i n g t o n
A t a r e c e n t u s e rg r o u pm e e t i n g ,a m e m b e ra s k e dm e i f i t w a s
p o s s i b l et o p a s sd a t at o a p r o g r a ma s p a r to f t h eR U Ns t a t e
m e n t .F o re x a m p l e ,C P / Ma l l o w sy o ut o t y p e :
R E A Df i l e n a m e . e x t
" R e a d "i s t h en a m eo f a p r o g r a mt o b e e x e c u t e d ;C P / Ml o a d s
a n dr u n st h i sp r o g r a m .I t a l s om a k e sa v a i l a b l e t h ed a t a" f i l e -
n a m e . e x t " ,c a l l e d t h e' c o m m a n dt a i l ' ,t o t h e p r o g r a mR E A D ,
w h i c hc a n d ow h a ti t l i k e sw i t ht h e i n f o r m a t i o n .A m i g a D o s ,
M S - D O S , a n do t h e r o p e r a t i n gs y s t e m sa l s oa l l o wa r g u m e n t st o
b e p a s s e dt o p r o g r a m si n t h i sw a y .
A t f i r s t , Is a i dt h a ty o uc a n ' td o t h a t i nC o m m o d o r eb a s i c ,
t h e nI t h o u g h ta b o u ti t a b i t a n dr e a l i z e dt h a ty o uc a n ,a n d
q u i t ee a s i l y !
W h e nR E T U R Ni s p r e s s e do n a s c r e e nl i n e ,t h e e n t i r e l i n ei s
t r a n s f e r r e dt o a n a r e ao f m e m o r yc a l l e dt h e i n p u tb u f f e r .T h e
l i n ei s t o k e n i z e d d u r i n gt h et r a n s f e r :e a c hB A S I Ck e y w o r di s r e
p l a c e d w i t ha s i n g l e - b y t e t o k e n .
R U N :" f i l e n a m e
O n t h e C 6 4 ,R U Nc a no n l yb e f o l l o w e db y a c o l o no r a l i n e
n u m b e r .T h eo p e r a t i n gs y s t e mi g n o r e sa n y t h i n gt h a tf o l l o w
t h e c o l o n ,b u tt h eb y t e sa r es t i l li n t h ei n p u tb u f f e r .A l la p r o
g r a mh a st o d o i s s c a nf o rt h eR U Nt o k e na n dt h ec o l o n .
A z e r o b y t ei n d i c a t e s t h ee n do f t h e l i n e i nt h eb u f f e r .A n yt h i n gb e t w e e nt h ec o l o na n dt h ez e r o b y t ei s d a t aw e c a nm a
n i p u l a t ei n a n yw a yw ec h o o s e .
B e l o wi s a s i m p l es e q u e n t i a lf i l er e a d i n gp r o g r a mt h a tu s e st h e
' c o m m a n dt a i l 't o g e t t h en a m eo f t h ef i l et o r e a d .
A n y t h i n gb e t w e e na c o l o n f o l l o w i n gR U Na n dt h ee n do f t h e
l i n ei s p l a c e di n B F $ .L e a d i n gs p a c e sa n dq u o t em a r k sa r e d i s
c a r d e d .I f B F $i s n u l l ,t h e r ew a sn o c o m m a n dt a i la n dw e a s k
t h eu s e rf o ra f i l en a m e .
Y o uc o u l dc h e c kf o rn u m b e r s ,M S - D O Ss t y l es w i t c h e s( s l a s h )
U n i x - s t y l e o p t i o n s ( h y p h e n ) , o ra n y t h i n gy o uw a n t .Y o uc a n
d o i t i n m a c h i n el a n g u a g e , o rk e e pi t i n B A S I C ,w h i c hi s p r o b a
b l yf a s te n o u g h .
T h eC 1 2 8m a k e st h e c o m m a n de v e nm o r eu s e f u l .I t a l l o w s
R U Nt o a l s oL O A Dt h ep r o g r a m .S o ,
R U N" f i l e r e a d e r " :" f i l e n a m e
. . . w i l lL O A Dt h ep r o g r a mc a l l e d" f i l er e a d e r "f r o md r i v e0 o f
d e v i c e8 a n dR U Ni t . F i l eR e a d e rt h e n p a r s e s p a s tt h ec o l o na n d
p u t s" f i l e n a m e "i n B F $ .T h em a i np r o g r a mt h e no p e n st h er eq u e s t e df i l ea n dd i s p l a y si t sc o n t e n t so n t h es c r e e n .
I t ' sb e s tt o u s e q u o t e sa h e a do f t h ef i l en a m et o a v o i dt o k e n i z
i n ga n y B A S I Cc o m m a n d st h a tm a yb e p a r to f t h en a m e .
H 6 1 0 0r e mp a r s e t h ei n p u tb u f f e rf o ra f i l e
N C 1 1 0r e mn a m e f o l l o w i n gr u n :
E 0 1 2 0r e mb y n o e l n y m a n
G P 1 3 0:
P I 1 4 0x = 5 1 2: r e m s t a r t o f i n p u t b u f f e r
6 H 1 5 0x x = 5 9 2 :r e m c h a n g e t o6 7 3f o r c l 2 8
F H 1 6 0: i f p e e k ( x ) < 1 3 8a n dp e e k ( x ) > 0t h e nx = x + l : g o t o1 6 0 :r e m 1 3 8 = r u nt o k e n
C J 1 7 0: i f p e e k ( x ) = 0g o t o2 5 0 :r e m e n do f l i n e i nb u f f e r
T r a n s a c t o r 1 0 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 13/84
1 8 0
1 9 0
2 0 0
2 1 0
2 2 0
2 3 0
2 4 0
2 5 0
2 6 0
2 7 0
2 8 0
2 9 0
3 0 0
3 1 0
3 2 0
3 3 0
3 4 0
3 5 0
3 6 0
3 7 0
3 8 0
3 9 0
4 0 0
4 1 0
i f p e e k ( x ) = 5 8 t h e nx = x + l :g o t o2 1 0 :r e mf o u n da c o l o n
x = x + l :i f x > x x g o t o2 5 0 :r e m x x p o i n t s t o e n d o f i n p u t b u f f e r
g o t o1 8 0
i f p e e k ( x ) = 3 2 a n db f $ = " "t h e nx = x + l :g o t o2 1 0 :r e m s k i p l e a d i n g s p a c e s
i f p e e k ( x ) = 3 4 t h e nx = x + l :g o t o2 2 0 :r e m s k i p q u o t e s
i f p e e k ( x ) < > 0 t h e n b f $ = b f $ + c h r $ ( p e e k ( x ) ) :x = x + l :g o t o2 2 0
i f b f $ = " "t h e ni n p u t " e n t e r f i l en a m e :" ; b f $ :r e m n oa r g u m e n t s
o p e n1 5 , 8 , 1 5
o p e n 2 , 8 f 2 , " 0 : " + b f $ + " , s , r "
i n p u t | 1 5 , x , x $
i f x > 1 9 t h e np r i n t" f i l e n a m e =" b f $ :p r i n t" d i s k e r r o r " x , x $ :g o t o3 9 0
g e t i 2 , x $
p r i n tx $ ;
w a i t6 5 3 , 1 , 2 5 5 :r e ms h i f tk e yp a u s e s ,s h i f t / l o c k h o l d s
i f s t = 0g o t o3 2 0
c l o s e2 : c l o s e1 5
e n d
Q u i c k i eF l a s hR o u t i n e
R J . P o u l i n ,F r e d e r i c k ,M a r y l a n d
A s h o r ta n ds w e e t' f l a s h 'r o u t i n ef o rt h eC 6 4i s a l w a y si n d e
m a n d .H e r e ' so n eI u s e w i t hm y n o t i c et o a f o r g e t f u lu s e rt o
t u r no n h i sp r i n t e r :
5 0 0r e ms i m p l e f l a s hs u b r o u t i n e
5 1 0r e mr . j . p o u l i n , f r e d e r i c k ,m d5 2 0f = 0 :p r i n t" p r e s s< r e t u r n >w h e nr e a d y " :p r i n t
5 3 0p r i n t c h r $ ( f ) " t u r n o n y o u r p r i n t e r ! " c h r $ ( 1 4 5 )
5 4 0 g e ta $ : f = 1 8 - f :f o r i = l t o 2 5 0 :n e x t
5 5 0 i fa $ O c h r $ ( 1 3 )t h e n5 3 0
5 6 0r e t u r n
C 1 2 8M LM o n i t o rT r i c k s
J a m e sD e v l i n ,D e c a t u r ,G e o r g i a
T h ef o l l o w i n gp o k e sw i l lt u r n t h eR E S T O R Ek e yi n t oa m o n i t o r
B R Kk e y :
p o k ed e c ( " 0 3 1 8 " ) , p e e k ( d e c ( " 0 3 1 6 " ) )p o k e d e c ( " 0 3 1 9 " ) , p e e k ( d e c ( " 0 3 1 7 " ) )
E n t e rt h ep o k e s a n dh i t t h er e s t o r ek e y( y o ud o n ' tn e e dt h e
S T O Pk e y ) .Y o u rc o m p u t e rw i l lB R Ki n t ot h em a c h i n el a n g u a g e
m o n i t o r ,j u s ta s i f i t h a de n c o u n t e r e da B R Ki n s t r u c t i o n .A n d
t h eb e s t t h i n ga b o u tt h i st r i c ki s t h a tt h ep r o g r a mc o u n t e ra n d
r e g i s t e r sd i s p l a y e dw i l l r e f l e c te x a c t l yw h a tt h ec o m p u t e rw a s
d o i n gw h e ny o uh i tR E S T O R E !
T h i st r i c kw o r k s b yc o p y i n gt h em o n i t o r ' sB R Kv e c t o ri n t ot h e
N M Iv e c t o r ,s o t h a tt h e n o n - m a s k a b l ei n t e r r u p tg e n e r a t e db y
t a p p i n gt h e r e s t o r ek e yf o r c e sa j m pt o t h e m o n i t o r ' sB R Kr o u t i n er a t h e rt h a nt h en o r m a lN M Ir o u t i n e .
D e v i c e P r e s e n c eC h e c k e r
P a u lS a w y e r ,O r a n g e v i l l e ,O n t a r i o
T h i sm a c h i n el a n g u a g ep r o g r a mw i l lr e p o r to n t h ep r e s e n c eo f
a g i v e nd e v i c en u m b e r .Y o uc a nu s ei t t o c h e c ki f t h eu s e rh a s
h i s d i s kd r i v eo r p r i n t e rp l u g g e di n a n dt u r n e do n b e f o r ep r o
c e e d i n g w i t ha n o p e r a t i o n .
T h ep r o g r a mi s r e l o c a t a b l e ;i n t h i sl i s t i n gi t r e s i d e sa t 4 9 1 5 2 .T o u s ei t , p u tt h e d e v i c en u m b e ri n l o c a t i o n2 5 2 , t h e nS Y S
4 9 1 5 2 ,a n dp e e kl o c a t i o n2 5 1 ;i f t h er e s u l ti s z e r o ,t h ed e v i c e
i s o f fo r n o t c o n n e c t e d .
I f y o uc h e c kf o r a d i s kd r i v et h a ti s p r e s e n t , t h e d r i v e
l i g h tw i l lf l a s h .J u s ti n i t i a l i z et h e d r i v ea n de v e r y t h i n gw i l lb e
o k a y .
B A S I CL o a d e r
N 6 1 0 0r e m d e v i c e p r e s e n c e c h e c k e r
M J 1 1 0r e m b y p a u l 9 s a w y e r
J A 1 2 0 r e m s t o r e d e v i c ei i n 2 5 2 ,
J O 1 3 0r e m s y st o r o u t i n e( 4 9 1 5 2 ) ,
H K 1 4 0r e m t h e n p e e k ( 2 5 1 ) .i f v a l u ei s
K J 1 5 0r e m 0 t h e n d e v i c ei s o f f ,
L P 1 6 0r e m 1 t h e nd e v i c ei s o n .
I M 1 7 0r e m
N P 1 8 0r e m i f d e v i c e c h e c k e di s ad i s k
D K 1 9 0r e m d r i v e ,i n i t i a l i z e a f t e r c a l l i n g
J M 2 0 0r e m r o u t i n e .
K P 2 2 0 f o r i = 4 9 1 5 2t o 4 9 1 9 1 : r e a d x : p o k ei , x : n e x t
B M 2 3 0d a t a1 6 9 , 0 , 1 3 3 , 2 5 1 , 1 6 5 , 2 5 2 , 1 7 0 ,1 6 0
H N 2 4 0 d a t a0 , 3 2 , 1 8 6 , 2 5 5 , 1 6 9 ,1 , 1 6 6 ,2 5 1
B C 2 5 0d a t a1 6 0 , 0 , 3 2 , 1 8 9 ,2 5 5 , 3 2 , 1 9 2 ,2 5 5
O F 2 6 0d a t a1 6 5 , 1 4 4 , 7 2 , 1 6 5 ,2 5 2 , 3 2 , 1 9 5 ,2 5 5
B G 2 7 0d a t a1 0 4 , 4 8 ,4 , 1 6 9 , 1 , 1 3 3 , 2 5 1 , 9 6
S o u r c e c o d e
N B 3 0 0 * = $ c 0 0 0
O J 3 1 0. o p t0 0
O M 3 2 0d e v i c e =$ f c
N K 3 3 0o n f l a g =$ f b
N H 3 4 0I d a| 0 : s t a o n f l a g
D H 3 5 0I d ad e v i c e : t a x :l d y1 0
F J 3 6 0 j s r $ f f b a ; s e t l f s
C C 3 7 0 I d af l : l d xo n f l a g :l d yf O
J I 3 8 0 j s r $ f f b d ; s e t n a m
M & 3 9 0 j s r $ f f c 0 ; o p e n
J K 4 0 0I d a$ 9 0 :p h a
F A 4 1 0I d ad e v i c e :j s r $ f f c 3 ; c l o s e
C K 4 2 0 p l a :b m i o f f
F I 4 3 0o n I d a| 1 : s t a o n f l a g
D D 4 4 0 o f fr t s Q
L T U 1 TT o p - T e c hI n t e r n a t i o n a l ,I n c .
A d v a n c e d C o m p u t e rS y s t e m s
I N D U S T R YF I R S T- L I F E T I M EC O M P U T E R "
S E R V I C EP E R F E C T I O N— L i f e t i m eW a r r a n t yf o rC - 6 4 / 1 2 8C o m p u t e r s ! ! !E x c l u s i v e l yf r o mT O PT E C HW O R L D ,I N C .
F l a tS e r v i c eR a t e s— F A S T ,P r o f e s s i o n a lS e r v i c e
F u l ll i n eo f C B Mc o m p u t e r s& p e r i p h e r a l s ;P o w e rS u p p l i e sf o rC - 6 4( 3 - y rw a r r a n t y ) ;
S o f t w a r e : H a r d - t o - f i n dp a r t s ;S e r v i c eM a n u a l s ;P r o t e c t i v e D e v i c e s .
V I S A ,M A S T E RC A R D ,D I S C O V E R ,A M E X( 8 0 0 )8 4 3 - 9 9 0 1• 1 1 1 2S . D e l a w a r eA v e . ,P h i l a d e l p h i a ,P A 1 9 1 4 7• ( 2 1 5 )3 8 9 - 9 9 0 1
T r a n s a c t o r 1 1 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 14/84
T h eM LC o l u m n
C r u n c h i n g :f r o mo r d e rt o c h a o s
b y T o d dH e i m a r c k
I t d o e s n ' ts e e mt o m a k es e n s e .C r u n c h i n gr e d u c e st h e s i z eo f a
f i l ew i t h o u tr e d u c i n gt h ea m o u n to f i n f o r m a t i o nt h e r e .H o wi s
t h a tp o s s i b l e ?
I f y o u ' v e u s e dp r o g r a m sl i k eA R C ,y o uk n o wt h a t ,h o w e v e ri t
w o r k s ,i t w o r k s .I n t h i s a r t i c l e ,w e ' l ll o o ka t t h ec l a s s i cc r u n c h
i n ga l g o r i t h mc a l l e dH u f f m a ne n c o d i n g .
H u f f m a ne n c o d i n ga n do t h e rc o m p r e s s i o nt e c h n i q u e su s u a l
l y r e d u c et h e s i z eo f a f i l e .H o w e v e r , y o uc a nf i n dm a t h e
m a t i c i a n s ,c o m p u t e rs c i e n t i s t s ,a n do t h e rt h e o r e t i c i a n sw h o
c a np r o v et h a tc o m p r e s s i o na l g o r i t h m sc a nf a i l .O n c ei n a
w h i l e ,y o uc r u n c ha f i l ea n d( s u r p r i s e ! )y o ug e tb a c ks o m e
t h i n gt h a t ' sb i g g e rt h a nt h eo r i g i n a l .T h a t ' st h ec h a n c ey o u
t a k e .
B u tt h a t ' sa r e a s o n a b l er u l e .I f y o uo w n e da c r u n c h i n ga l g o
r i t h mt h a tg u a r a n t e e da 2 0 %r e d u c t i o ni n s i z e ,y o uc o u l d r u n
t h ep r o g r a mo v e ra n do v e r a g a i nt o c o m p r e s sa w h o l ee n c y c l o
p e d i ai n t oo n eb y t e .Y o u ' dj u s tr u nt h eo u t p u ti n t ot h e i n p u t
u n t i li t s h r a n kd o w nt o w h a t e v e rs i z ey o uw a n t e d .
T h et h e o r y :m a k i n gc h a o s
T h eb a s i c t h e o r yo f c r u n c h i n gi s t h a ty o ul o o kf o rp a t t e r n so f
o r d e ri n t h e i n p u tf i l e .Y o ut h e nr e p l a c et h e p a t t e r n sw i t h
s m a l l e rc o d e st h a t w i l ll a t e re x p a n dd u r i n gt h e u n c r u n c h i n g
p r o c e s s .T h ec r u n c h e df i l e i sm o r ec h a o t i ca n dm o r er a n d o m( i na n o r d e r l yw a y )t h a nt h es o u r c ef i l e .
A s a v e r y s i m p l ee x a m p l e ,i m a g i n et h a ta t e x tf i l ec o n t a i n s4 3 1
i n s t a n c e so f t h ew o r d" t h e " .T h e w o r d" q z "a p p e a r sn o w h e r e
i n t h e f i l e ,m a i n l yb e c a u s ei t ' s n o t a n E n g l i s hw o r d .I f y o u
s e a r c ha n dr e p l a c e" t h e "w i t h" q z " ,y o us a v e4 3 1b y t e s .T w o
l e t t e r sh a v er e p l a c e dt h r e el e t t e r s .B u ty o u ' v em a d et h e f i l e
m o r er a n d o m .A t s o m ep o i n ty o ur u no u to f o r d e r l yp a t t e r n s
a n dy o uc a n ' tc o m p r e s s a n ym o r e .
A b e n e f i to f c r u n c h i n gi s t h a ty o us a v es p a c e ,w h e t h e ri t ' sd i s k
s p a c eo r m e m o r y .A d r a w b a c ki s t h a ti t t a k e st i m et o c r u n c h
a n du n c r u n c h .
H u f f m a ne n c o d i n g ,w h i c hi s c a p i t a l i z e db e c a u s ei t ' sn a m e da f t e r
i t s i n v e n t o r , t y p i c a l l yr e d u c e s af i l eb y 2 0t o 4 0 p e r c e n t ,s o m e
t i m e s m o r e .I t w o r k sb e s to n t e x tf i l e s ,w h i c ha b o u n dw i t h s p a c
c h a r a c t e r sb e t w e e nw o r d s .T e x tf i l e sa l s oh a v ea l o to f c h a r a ct e r s i nt h e a - za n dA - Zr a n g e .T h e y ' r ep r e d i c t a b l ea n do r d e r l y .
E n o u g ht h e o r y .L e t ' sc r u n c hs o m e t h i n g .
H o wi t w o r k s
T h ew r i t e rA . A .M i l n e ,a u t h o ro f " W i n n i et h eP o o h " ,w r o t ea
p o e mt h a ts t a r t sw i t ht h e s el i n e s :
O fa l lt h eK n i g h t si n A p p l e d o r e
T h ew i s e s tw a sS i rT h o m a sT o m .
H em u l t i p l i e da s f a ra s f o u r ,
A n dk n e ww h a tn i n ew a st a k e nf r o m
T o m a k ee l e v e n .
T o i n t r o d u c et h ec o n c e p t s o fH u f f m a nc o d i n g ,w e w i l lc r u n c h
t h o s ef i v el i n e s .I n c l u d i n gl e t t e r s ,p u n c t u a t i o n ,s p a c e s ,a n df i v e
c a r r i a g er e t u r n s ,t h e r e a r e1 4 3b y t e st o c r u n c h .
O n t h ef i r s tp a s so f t h eH u f f m a np r o g r a m ,w e c o u n t e a c hc h a r
a c t e r' s f r e q u e n c y .N e x t ,w e s o r tt h el e t t e r sf r o mm o s tc o m m o
t o l e a s tc o m m o n .T h a tl i s t i su s e dt o c r e a t et h eH u f f m a nc o d e s ,
w h i c ha r el a b e l e dH C O D E Si n T a b l e1 .
C o l u m n s1 - 3l i s tt h ec h a r a c t e r ,t h eP E T A S C I I c o d e ,a n dt h ef r e
q u e n c y .C o l u m n s4 a n d5 g i v et h eH u f f m a nc o d ea n di t s l e n g t h
( n o t et h a tt h el e n g t hv a r i e si n t h i se x a m p l e f r o m3 b i t st o 8 b i t s
a n dt h a tt h em o s tf r e q u e n tc h a r a c t e r sh a v et h es h o r t e s t l e n g
C o l u m n s6 a n d7 l i s tt h en u m b e ro f b i t sf o r t h eH u f f m a nc o d e
a n dt h en u m b e ro f b i t sf o r t h e e i g h t - b i t s - i n - a - b y t eA S C I I c o d e
T a k et h ee n t r yf o rt h el e t t e r' A ' , f o re x a m p l e .I t l o o k sl i k et h i s :
A 1 9 3 2 1 1 1 0 0 1 6 1 2 1 6
T h eP E T A S C I Ic o d ei s 1 9 3a n di t a p p e a r st w ot i m e si n t h es a mp l e t e x t .T h eH u f f m a nc o d ef o r t h i sp a r t i c u l a re x a m p l ei s
T r a n s a c t o r 1 2 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 15/84
T a b l e1 : C h a r a c t e r sS o r t e db y F r e q u e n c y
C H R A S C
s p c * 3 2
e
a
n
s
i
1
t
o
r
h
w
m
< *
f
T
k
d
P
u
A
/
S
0
K
H
V
g
* T h e
6 9
6 5
7 8
8 3
7 3
7 6
8 4
7 9
8 2
7 2
8 7
7 7
1 3
7 0
2 1 2
7 5
6 8
8 0
4 6
8 5
1 9 3
4 4
2 1 1
2 0 7
2 0 3
2 0 0
8 6
7 1
s p a c e
a s s p ca n d
F R E Q
2 3
1 4
1 0
8
8
7
6
6
6
5
5
5
5
5
4
4
3
3
3
2
2
2
1
1
1
1
1
1
1
c h a r a c t e r
< .
H C O D EH L E N
0 0 0 3
1 1 0 3
0 1 0 0 i
1 0 0 0 i
1 0 0 1 '
1 0 1 1 i
1 1 1 1 * ■
0 0 1 0 0 5
0 0 1 0 1 5
0 0 1 1 1 5
0 1 1 0 0 5
0 1 1 0 1 5
0 1 0 1 0 5
0 1 0 1 1 5
0 1 1 1 1 5
1 0 1 1 1 5
1 1 1 0 1 5
0 0 1 1 0 0 6
0 0 1 1 0 1 6
0 1 1 1 0 1 6
1 1 1 0 0 0 6
1 1 1 0 0 1 6
0 1 1 1 0 0 1 7
0 1 1 1 0 0 0 0 8
0 1 1 1 0 0 0 1 8
1 0 1 0 1 1 0 7
1 0 1 0 1 1 1 7
1 0 1 0 1 0 0 7
1 0 1 0 1 0 1 7
a n dt h e c a r r i a g e
H B I T S
6 9
4 2
4 0
3 2
3 2
2 8
2 4
3 0
3 0
2 5
2 5
2 5
2 5
2 5
2 0
2 0
1 5
1 8
1 8
1 2
1 2
1 2
7
8
8
7
7
7
7
r e t u r na r e
8 B I T S
1 8 4
1 1 2
8 0
6 4
6 4
5 6
4 8
4 8
4 8
4 0
4 0
4 0
4 0
4 0
3 2
3 2
2 4
2 4
2 4
1 6
1 6
1 6
8
8
8
8
8
8
8
l i s t e d
1 1 1 0 0 1 ,w h i c hi s 6 b i t sl o n g( i n a n o t h e re x a m p l e ,t h e c o d e
m i g h tb e s o m e t h i n gc o m p l e t e l yd i f f e r e n t ) .I n t h ec r u n c h e df i l e ,
2 t i m e s6 i s 1 2 ( f r e q u e n c y t i m e sl e n g t h ) .I n a n o r m a lA S C I If i l e ,
t w o 8 - b i tb y t e sw o u l dn e e d1 6 b i t s .F o rt h i sc h a r a c t e r ,w e
c r u n c h1 6b i t sd o w nt o 1 2 ,a s a v i n g so i 2 5 % .
C o m p a r i n gt h eh b i t sc o l u m n( 6 3 0b i t s )a g a i n s t t h e8 B I T Sc o l
u m n( 1 1 4 4b i t s )s h o w st h a tu s i n gH u f f m a nc o d e ss h o u l ds a v e
4 5 % .A c t u a l l y , a sw e ' l ls e ei n a m i n u t e ,t h eo v e r h e a dn e e d e d
f o rt h ec o d et a b l ew i p e so u tt h e s a v i n g s .
I t ' sn o ta t a l l o b v i o u sw h e r et h e H u f f m a nc o d e1 1 1 0 0 1f o r
" A "c a m ef r o m . W e ' l lg e tt o t h a ts o o n .B u tf i r s t ,l e t ' se x a m i n e
a c o d e dl i n e .F i g u r e1 s h o w st h e c h a r a c t e r so f t h ef i r s tl i n eo f
t h ep o e m .T h e H u f f m a nc o d ef r o mt h et a b l ea b o v ei s u n d e r
e a c hc h a r a c t e r .T h eb i t sa r er e p a c k a g e da s 8 - b i tb y t e s ,w h i c h
w o u l db e w r i t t e nt o t h ec r u n c h e df i l e .T h ec o m m a sw o u l dn o t
a p p e a ri n m e m o r yo r i n t h ef i l e ;t h e y ' r ei n c l u d e dt o v i s u a l l y
s e p a r a t e t h eb i t s .
F i g u r e1 : C r u n c h i n g" O fa l lt h eK n i g h t so fA p p l e d o r e <
s p c a s p ct s p c
0 1 1 1 0 0 0 1 , 0 1 1 1 10 0 0 ,0 1 0 01 1 1 1 ,1 1 1 1 0 0 0 0 , 0 1 0 0 0 1 1 0 , 01 1 0 0 0 0
$ 7 1 $ 7 8 $ 4 F $ F 0 $ 4 6 $ 6 1
Ks p c o
1 , 0 1 0 1 1 01 0 , 0 0 1 0 1 11 0 , 1 0 1 0 10 1 1 , 0 00 0 1 0 01 , 0 0 1 0 0 00 0 , 1 0 10 1 1 1 1 ,
$ 5 A $ 2 E $ A B $ 0 9 $ 2 0 $ A F
s p cA e d e <
0 0 01 1 1 0 0 , 10 0 1 1 0 10 , 0 1 1 0 11 1 1 , 1 1 1 00 0 1 1 , 0 00 0 1 0 10 , 0 1 1 11 1 00 , 1 0 1 1
$ 1 C $ 9 A $ 6 F $ E 3 $ 0 A $ 7 C $ B ?
U n c r u n c h i n g
N o wi t ' st i m et o u n c r u n c ht h ef i l e ,w h i c hy o um a yn o t i c ei s a
l o tm o r ec h a o t i ct h a ni t w a sb e f o r e .T h el e t t e r" 1 "r e p e a t s t h r t i m e s , f o re x a m p l e ,i n t h e o r i g i n a ll i n e .N o to n eb y t er e p e a t si n
t h ec r u n c h e dl i n e .
B e f o r ew e s t a r tt o u n c r u n c h ,w e s h o u l db r i e f l yr e v i e wb i n a r y
t r e e s .A ' t r e e 'i s a d a t as t r u c t u r em a d eu p o f n o d e s . T h e r e
a l w a y so n e n o d ea t t h et o p .A n o d ec a nd o o n eo f t w ot h i n g s :i t
c a nt e r m i n a t e o ri t c a nb r a n c h .I f i t b r a n c h e s ,i t ' sc a l l e da p a r
e n tn o d ea n dt h en o d e sb e l o wa r e c a l l e dc h i l d r e n .
I n a b i n a r yt r e e ,t h ep a r e n tn o d e s c a nh a v eo n l yt w oc h i l d r e n-
n o tt h r e ea n dn o to n e .I f y o ub r a n c ht o t h el e f t ,y o uf i n dc h i l d
0 . O n t h er i g h ti s c h i l d1 . ( O t h e rk i n d so f t r e e sc a nh a v em o r et h a nt w oc h i l d r e n ,b u tw e ' r eu s i n ga s t r i c t l yb i n a r yt r e ef o r
H u f f m a nc o d e s . )
T h e H u f f m a nc o d e sl i s t e da b o v e h a p p e nt o f i t i n t oa b i n a r y
t r e et h a t ' si l l u s t r a t e d i nF i g u r e2 .
T o u n c r u n c ht h e H u f f m a nc o d e s ,w e n e e dt o d o s o m e t h i n
c a l l e d" t r a v e r s i n gt h et r e e " .T h eb i tp a t t e r n so f t h ef i r s tt w o
b y t e sl o o kl i k et h i s :
0 1 1 1 0 0 0 1 , 0 1 1 1 1 0 0 0
S t a r ta t t h e t o po f t h et r e ea n dr e a dt h eb i t sf r o ml e f tt o r i g h t .
F i r s tt h e r e ' sa 0 , w h i c hm e a n sy o um o v e d o w nt o t h el e f tt o
c h i l d0 , w h i c hh a p p e n st o b e a p a r e n tn o d e .N e x ta 1 , s o m o v e
d o w na n dr i g h t t oc h i l d1 . T h e nr i g h t , r i g h t ,l e f t , l e f t , l e f t ,a n d
r i g h t .T h ee i g h tn o d et e r m i n a t e si n t h el e t t e r" O " .P r i n tt h a t
l e t t e r( o rs e n di t t o a n o u t p u tf i l e )a n dg ob a c kt o t h et o po f t h e
t r e e .O n el e f ta n df o u rr i g h t st a k e s u st o t h et e r m i n a t i n gn o d e
" f " .P r i n ti t a n d g o b a c kt o t h et o p .T h en e x tt r a v e r s a ld o e s
t h r e eq u i c kl e f t sa n dh i t st h es p a c ec h a r a c t e r .
Y o um i g h ta s kt h e q u e s t i o n" W h a ti f o n e c o d ei s 0 1 a n d
a n o t h e ri s 0 1 0 1 ? "H o wd o y o uk n o ww h e nt o s t o pa n dw h e nt o c o n t i n u e ?I f y o ul o o ka t t h et r e e ,y o u ' l l s e et h a ta n o d e
T r a n s a c t o r 1 3 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 16/84
s p ca
t o I r m < h wd p
S 0v g K H
F i g u r e2 : T h eb i n a r yt r e e
e i t h e rt e r m i n a t e so r h a sc h i l d r e n .I t ' si m p o s s i b l et o h a v eb o t h
0 1 a n d0 1 0 1 . S i n c et h es p a c ec h a r a c t e rs t a r t sw i t h0 0 0 ,n o o t h
e r c h a r a c t e r ss t a r tw i t hO O O x( w h e r e xi s a 0 o r 1 ) .
H o wt o g r o wa t r e e
O f c o u r s e , t h en e x tq u e s t i o ni s h o wd o y o uc r e a t ea b i n a r y
t r e e ?W e l l ,w ew a n ti t t o b e ' w e i g h t e d ' ,w h i c hm e a n sw e w a n t
t h e p o p u l a rc h a r a c t e r sn e a rt h e t o p ( a s h o r t p a t h )a n d t h e
u n p o p u l a r o n e sn e a rt h eb o t t o m( a l o n g e rp a t h ) .
L e t ' ss t a r tw i t h a s m a l le x a m p l e .S u p p o s ey o uh a v ea f i l ew i t h
s i xc h a r a c t e r sd i s t r i b u t e dl i k et h i s( t h e" t "m e a n s" t e r m i n a t i n g
n o d e " ) :
t E
t T
t A
t o
t N
t Q
5 0
3 1
1 5
1 2
8
8
A f t e rs o r t i n gt h e f r e q u e n c i e s ,y o us t a r tb u i l d i n gn o d e sf r o m
t h eb o t t o m .C o m b i n et N a n dt Q i n t oa n e wn o d ec a l l e dp O l
( t h e" p " m e a n s" p a r e n tn o d e " ) ,w h i c hh a s af r e q u e n c y o f8 + 8
o r 1 6 .I t r e p l a c e st h es e c o n dt o t h el a s tn o d ea n dw ed e l e t e t h e
l a s tn o d e :
t E
t T
t A
t o
p O l
5 0
3 1
1 5
1 2
1 6
T h et r e ei s s t i l ls o r t e d ,e x c e p tf o rt h ef i n a ln o d e .N e x tw ep e r
f o r ma n i n s e r t i o ns o r t ,t o p u tt h a tn o d ei n i t sr i g h tp l a c e :
t E
t T
5 0
3 1
p O l
t A
t o
1 6
1 5
1 2
( c h i l d r e nt N a n dt Q )
C o m b i n et h et w ob o t t o mn o d e st A a n dt O i n t op O 2 ,w i t ha f r e
q u e n c yo f 2 7 a n ds o r ta g a i n :
t E
t T
p O 2
p O l
5 0
3 1
2 7
1 6
( c h i l d r e n
( c h i l d r e n
t A
t N
a n d
a n d
t o )
t Q )
T h ep r o c e s sc o n t i n u e su n t i lo n l yt w on o d e sr e m a i n ,w h i c ha r e
t h e nh o o k e di n t ot h en o d ea t t h ev e r yt o p .
H o wt o u s e t h ep r o g r a m
S a y y o uw a n tt o c r u n c ha s e q u e n t i a lf i l ec a l l e dZ E B R Ai n t oa
s e q u e n t i a lf i l ec a l l e d Z . H U F F .L o a dt h eH u f f m a np r o g r a mi n t o
m e m o r ya n dr u nt h i sp r o g r a m :
1 0 O P E N 2 , 8 , 2 , " Z E B R A , S , R " :S Y S 4 9 1 5 2 :R E MF I R S TP A S S
2 0 O P E N3 , 8 , 3 , " Z E B R A , S , R " :O P E N4 , 8 , 4 ," Z . H U F F , S , W ": S Y S 4 9 1 5 5
T h ef i l eZ . H U F Fi s c r e a t e d .I n a d d i t i o n , t h eo r i g i n a lf i l es i z ea n d
t h ec r u n c h e ds i z ea r e p r i n t e do n t h es c r e e n .
T ou n c r u n c h , r u nt h i sp r o g r a m :
1 0 O P E N5 , 8 , 5 ," Z . H U F F , S , R " :O P E N6 , 8 ,6 , " O U T F I L E , S , W ": S Y S 4 9 1 5 8
I t ' si m p o r t a n tt h a tt h ef i l e sb e o p e n e da s n u m b e r s2 , 3 , a n d4
w h e ny o uc r u n c ha n d5 a n d6 w h e ny o uu n c r u n c h .
P r o g r a mN o t e s
T h ep r o g r a mh a st h r e ep a r t s :E P A S S l( 4 9 1 5 2 ) ,E P A S S 2( 4 9 1 5 5 )
a n dd e c o d e( 4 9 1 5 8 ) .T r a n s a c t o r 1 4 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 17/84
T h eE P A S S lr o u t i n ec o u n t st h eb y t e si n C O U N T E M ,w h i c hs t o r e s
t h e f r e q u e n c i e si n t h e t a b l e sC F R E Q L Oa n dC F R E Q H I( t h eC
m e a n s" c h a r a c t e r " ) .T h e ni t s o r t st h el i s ti n S O R T E M , w h i c hi n
t u r nc a l l sI S O R T , t h e i n s e r t i o ns o r tr o u t i n e .T h e nM A K E T R E E
b u i l d sa t r e e .T h en o d ef r e q u e n c i e sa r es t o r e di n N F R E Q L Oa n d
N F R E Q H I .T h ec o d e sa r ei n N C O D E . T h ep a r e n tn o d e sf o rc h a r
a c t e r sa r ei n C P N O D E ,f o rn o d e st h e y ' r ei n N P N O D E .
E P A S S 2w o n ' tw o r ku n l e s sE P A S S lh a s b e e nc a l l e df i r s t . I t
s e n d so u t as e t o f b y t e st h a td e s c r i b et h et r e e . F i r s t ,t h et o t a l
n u m b e ro f b y t e si s s e n t( t w ob y t e s ) ,t h e nt h en u m b e ro f c h a r
a c t e r st h a tb r a n c hl e f t( t h ez e r o s )a n de a c ho n e ' s p a r e n ta n d
n a m e .N e x t ,t h ec h i l d r e nw h ob r a n c hr i g h t ( o n e s ) ,t h en o d e s
t h a ta r eO s ,a n dt h en o d e st h a ta r eI s .
T h eo v e r h e a dn e e d e dt o d e s c r i b et h et r e ei n c r e a s e s t h es i z eo f
t h e f i l e .F o re x a m p l e ,t h ep o e ma b o v eh a s1 4 3c h a r a c t e r s ,b u t
o n l y2 9 a r eu n i q u e .T h eh e a d e r n e e d s2 9 t i m e s4 p l u s2 b y t e s :
1 1 8b y t e si n a l l . T h e 1 4 3 c h a r a c t e r sc r u n c hd o w ni n t o7 9
b y t e s ,b u tw h e ny o ua d dt h eo v e r h e a d ,t h ec r u n c h e df i l ec o n
t a i n s1 9 7b y t e s( c o m p a r e dt o 1 4 3i n t h eo r i g i n a l ) .
T h eH u f f m a nc o d e sf o l l o wt h e h e a d e r . I n t h ee x a m p l ea b o v e ,
t h e l e t t e r" n "h a st h ec o d e1 0 0 0 .T h et a b l e sa r ea r r a n g e db y
p a r e n t n o d e s , s ot o f i g u r eo u t t h e c o d e ,t h e p r o g r a m w o r k s
b a c k w a r d s :0 , 0 , 0 ,1 . W h e ni t g e t st o t h et o p ,i t r e v e r s e st h e
( r e v e r s e d )b i t s t o g e t 1 0 0 0 .T h ev a r i a b l e - l e n g t hc o d e sa r e
p a c k e di n t ob y t e so f e i g h tb i t s e a c ha n d s e n to u t t o t h e
c r u n c h e df i l e .
T h eD E C O D Er o u t i n eu n c r u n c h e sH u f f m a nc o d e s .I t s e t su p a
t a b l e( c h o n a m e ,c h o t y p e ,c h i n a m e ,a n dC H 1 T Y P E ) .N o t et h a t
t h i si s a t a b l eo f c h i l d r e n ,w h e r e a st h ee n c o d i n gr o u t i n eu s e da
t a b l eo f p a r e n t s .I n t h ed e c o d i n gp r o c e s s ,t h ep r o g r a mg e t sb i t s
o n ea t a t i m eu n t i li t g e t sa c h i l dt h a t ' sa c h a r a c t e r .T h e ni t
g o e sb a c kt o t h et o po f t h et r e e .
H o ww e l ld o e si t w o r k ?
I n s o m et e s t sI r a n , t e x tf i l e sc r u n c h e db e s t .A 1 5 4 0 0 - b y t ef i l e
c r u n c h e dd o w nt o 9 1 1 8b y t e s( f r o m6 1 d i s kb l o c k st o 3 6 ) .
T h a t ' sa 4 1 %s a v i n g s .T h ep a ls o u r c ec o d e f r o mt h i sp r o g r a m ,
w h i c hi s m o s t l yt e x t ,r e d u c e df r o m1 0 1 2 6b y t e st o 8 2 1 8 , a
1 9 %s a v i n g s .T h eS p e e d S c r i p tp r o g r a m( a l lm a c h i n el a n g u a g e )
d i d n ' tc r u n c hv e r yw e l la t a l l , p r o b a b l y b e c a u s e o ft h e
o v e r h e a d .I t s h r a n ks l i g h t l y ,f r o m 6 1 5 3b y t e st o 6 0 4 2 ,a 2 %
s a v i n g s .
" h u f f . s r c "- s o u r c ec o d ei n P A L f o r m a t
I J 1 0 0r e m s a v e " h u f f . s r c "
P D 1 1 0 s y s 7 0 0
I L 1 2 0 * = 4 9 1 5 2
K 0 1 3 0. o p to o
H M 1 4 0 f s t a t= $ 9 0 ; f i l e s t a t u s
M H 1 5 0g e t i n =$ f f e 4
I C 1 6 0c h k i n =$ f f c 6
0 1 1 7 0c h r i n = $ f f c f
A K
L A
G N
J P
H C
L 0
A D
J A
J E
F 0
O H
M H
N F
L M
P G
A K
J P
E M
A B
N N
O K
C L
K L
A B
C C
J P
K P
J O
B M
F M
F F
N P
L I
A I
G K
O P
C J
H O
L B
J A
O H
G G
M G
H M
L I
E A
E C
F E
J A
H N
I M
D A
P B
K J
M L
A F
O KH G
H I
G M
O P
P K
J L
I J
G D
N E
J M
J K
0 D
P P
N P
B G
L K
E A
1 8 0
1 9 0
2 0 0
2 1 0
2 2 0
2 3 0
2 4 0
2 5 0
2 6 0
2 7 0
2 8 0
2 9 0
3 0 0
3 1 0
3 2 0
3 3 0
3 4 0
3 5 0
3 6 0
3 7 0
3 8 0
3 9 0
4 0 0
4 1 0
4 2 0
4 3 0
4 4 0
4 5 0
4 6 0
4 7 0
4 8 0
4 9 0
5 0 0
5 1 0
5 2 0
5 3 0
5 4 0
5 5 0
5 6 0
5 7 0
5 8 0
5 9 0
6 0 0
6 1 0
6 2 0
6 3 0
6 4 0
6 5 0
6 6 0
6 7 0
6 8 0
6 9 0
7 0 0
7 1 0
7 2 0
7 3 0
7 4 07 5 0
7 6 0
7 7 0
7 8 0
7 9 0
8 0 0
8 1 0
8 2 0
8 3 0
8 4 0
8 5 0
8 6 0
8 7 0
8 8 0
8 9 0
9 0 0
9 1 0
c l r c h n = $ f f c c
c l o s e = $ f f c 3
c h k o u t = $ f f c 9
c h r o u t= $ f f d 2
b b = $ c 5 0 0
c f r e q l o= b b + 0
c f r e q h i = b b + $ 1 0 0
c c o d e = b b + $ 2 0 0
c p n o d e = b b + $ 3 0 0
n f r e q l o = b b + $ 4 0 0
n f r e q h i = b b + $ 5 0 0
n c o d e = b b + $ 6 0 0
n p n o d e= b b + $ 7 0 0
l i s t = b b + $ 8 0 0
t y p e = b b + $ 9 0 0
h b i t s = b b + $ a 0 0
c h O t y p e= b b + 0
c h O n a n e = b b + $ 1 0 0
c h l t y p e= b b + $ 2 0 0
c h i n a m e= b b + $ 3 0 0
j m p e p a s s l
j r o pe p a s s 2
j m p d e c o d e
•
e p a s s l =*
l d x# 2
j s r c h k i n
j s r z e r o n e m
j s r c o u n t e m
I d a1 2
j s r c l o s e
j s r c l r c h n
j s r s o r t e m
j s r m a k e t r e e
j s r n o d e O
r t s
;
z e r o n e m =*
I d a# 0
t a y
z e l o o p s t a c f r e q l o, y
s t a c f r e q h i , y
s t a c c o d e ,y
s t a c p n o d e , y
s t a n c o d e , y
s t a t y p e , y
s t a l i s t , y
d e y
b n e z e l o o p
s t a f i l e l e n
s t a f i l e l e n + 1
s t a n u m c h a r
s t a n u m n o d e
i n cn u m n o d e
r t s
;
c o u n t e m =*
j s r c h r i n
t a x
c h a r a c t e r s 'f r e q u e n c y
c o d e( 0 0 = 0 , f f = l )
p a r e n t n o d e
n o d e s 'f r e q
c o d e
p a r e n t( 0 = t o p )
s o r t e dl i s t
t y p e0 0 = c h a r ,f f = n o d e
m yo w n s t a c k
r e u s e d v a r i a b l es p a c e — c h i l d0 t y p e
c h i l d0 n a m e
e n c o d e p a s s o n e
e n c o d e p a s s t w o
d e c o d e
- o p e n c h a n n e l2 f o r i n p u t
• z e r o o u tm e m o r y
• c o u n t t h e b y t e s
* c l o s e u p c h a n n e l2
* s o r tt h e l i s t
• b u i l dt h e t r e e
• t h et i p o f t h e t r e e
s a v en o d e0 f o rt h e t o p
; g e t a c h a r a c t e r f r o m d i s k
; i n d e xb y . x
i n cc f r e q l o , x; o n e m o r ei n t h a ts l o t
b n e b y t e c o u n t
i n c c f r e q h :
b y t e c o u n t i n cf i l e l e i
b n e c o t e s t
l , x ; i f 0 , t h e n i n c t h e h i g h b y t e
i
i n c f i l e l e n + 1
c o t e s t l d yf s t a t
b e qc o u n t e r
l d xf i l e l e i
; f i l es t a t u s( 0 = m o r e t oc o m e ]
\ ; g o b a c kf o rm o r e b y t e s
l
I d a f i l e l e n + 1
j s r $ b d c d
I d a1 6 2
j s rc h r o u t
r t s
•
; p r i n tl e n g t h ,>
;
T r a n s a c t o r 1 5 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 18/84
D E
N O
I L
0 1
G H
K L
G I
M L
I A
F G
D D
E G
H N
A P
B G
N H
E C
J E
K G
G F
B J
M E
K N
J E
I N
G J
E E
D J
F G
B J
F M
E M
J F
H J
O M
H P
F O
F H
G NO G
N P
P B
D P
N B
H P
A G
O A
F C
K F
J C
C H
J O
E M
K G
L O
F D
H D
G P
I P
K K
M M
L E
P L
P C
I P
C M
H C
F M
M C
9 2 0
9 3 0
9 4 0
9 5 0
9 6 0
9 7 0
9 8 0
9 9 0
1 0 0 0
1 0 1 0
1 0 2 0
1 0 3 0
1 0 4 0
1 0 5 0
1 0 6 0
1 0 7 0
1 0 8 0
1 0 9 0
1 1 0 0
1 1 1 0
1 1 2 0
1 1 3 0
1 1 4 0
1 1 5 0
1 1 6 01 1 7 0
1 1 8 0
1 1 9 0
1 2 0 0
1 2 1 0
1 2 2 0
1 2 3 0
1 2 4 0
1 2 5 0
1 2 6 0
1 2 7 0
1 2 8 0
1 2 9 0
1 3 0 01 3 1 0
1 3 2 0
1 3 3 0
1 3 4 0
1 3 5 0
1 3 6 0
1 3 7 0
1 3 8 0
1 3 9 0
1 4 0 0
1 4 1 0
1 4 2 0
1 4 3 0
1 4 4 0
1 4 5 0
1 4 6 0
1 4 7 0
1 4 8 0
1 4 9 0
1 5 0 0
1 5 1 0
1 5 2 0
1 5 3 0
1 5 4 0
1 5 5 0
1 5 6 0
1 5 7 0
1 5 8 0
1 5 9 0
1 6 0 0
s o r t e m= *
l d y i O
s t y l i s t l e n
s t y l c
s o l o o p l d yl c
I d ac f r e q l o , y
o r ac f r e q h i , y
b e q n o c h a r
t y a
l d yn u m c h a r
s t a l i s t , y
i n c n u m c h a r
j s r i s o r t
i n c l i s t l e n
n o c h a r i n cl c
b n e s o l o o p
r t s
i s o r t =*
l d yl i s t l e n
b n ei s O l
r t s
i s O l I d al i s t , y
s t a i s l i s t
t a x
I d at y p e , y
s t a i s t y p e
b n e a n o d e
I d ac f r e q l o , x
s t a i s l o
I d ac f r e q h i , x
s t a i s h i
j m p i s O 2
a n o d eI d an f r e q l o , x
s t a i s l o
I d an f r e q h i , x
s t a i s h i
i s 0 2 =*
d e y
l d xl i s t , yI d at y p e , y
b n e a n o d e 2
I d a c f r e q l o , x
s t a t e s t l o
I d ac f r e q h i , x
s t a t e s t h i
j m p i s O 3
a n o d e 2I d an f r e q l o , x
s t a t e s t l o
I d an f r e q h i , x
s t a t e s t h i
i s O 3 =*
I d a i s h i
c m pt e s t h i
b c c i n s e r t
b n ei s O 4
I d a i s l o
c m p t e s t l o
b e qi n s e r t ,
b c c i n s e r t ,
i s O 4c p y i O
b n ei s O 2
d e v
i n s e r t =*
i n y
s t y t e m p y ,
c p yl i s t l e n
b n e d o i t
r t s
T r a n s a c t o r
; u s e d b yt h e i s o r tr o u t i n e
; c h e c k i f f r e q< > 0
; i f e q , t h e n n o c h a r a c t e r s
; a d di t t o t h e l i s t
; t h i si s t h ea s c i ic o d e
; o n em o r e c h a r a c t e r
; i n s e r t i o ns o r t
; t h e l i s t h a s o n e m o r e m e m b e r
; k e e p g o i n g w i t hl c 0 t o 2 5 5
; l e n g t h o f t h el i s t
; i f = 0 , s k i pt h i s
; s a v et h e s ev a l u e s
; i f < > 0 ,i t ' s a n o d e
* s a v e f r e q u e n c i e s
* g o c o m p a r e t h e m
s a v ef r e q u e n c i e s
c o u n t b a c k w a r di n t h e l i s t
a n o t h e r n o d e
c o m p a r e
i n s e r t i n t h e l i s t h e r e
k e e pl o o p i n g ,m a y b e
n o ts u r e ,s o c h e c k l o w b y t e
i f e q u a l ,i n s e r t
i f i s l o < t e s t l o , i n s e r t
e l s e d r o pt h r o u g h
i f . y = 0 , d r o p t h r o u g ht o i n s e r t
s a v et h e v a l u e
D I
D P
E M
I E
G B
H D
G N
A H
I C
P F
G O
I D
K O
A H
H G
O G
G N
K G
L C
H H
J M
P D
H H
H I
G B
C A
E K
N J
L O
O J
K I
M G
G P
N H
L J
C L
N G
H K
F F
M L
P H
M L
A LB N
H C
I H
C A
J M
L D
J F
P J
E D
J D
F E
C B
I E
M D
M H
H O
K H
F L
P E
K P
N K
D C
L K
B P
I F
O J
I L
I M
I A
H H
G A
E E
J O
1 6
1 6 1 0d o i t
1 6 2 0 i s l o o p
1 6 3 0
1 6 4 0
1 6 5 01 C C f \1 6 6 0
1 6 7 0
1 6 8 0
1 6 9 0
1 7 0 0
1 7 1 0
1 7 2 0
1 7 3 0
1 7 4 0
1 7 5 0
1 7 6 0
1 7 7 0
1 7 8 0;
l d y l i s t l e n;
d e y
I d a l i s t , y
i n y
s t a l i s t , y
d e y
I d at y p e , y
i n vj
s t a t y p e , y
d e y
c p yt e m p y
b n e i s l o o p
I d a i s l i s t
s t a l i s t , y
I d ai s t y p e
s t a t y p e , y
r t s
1 7 9 0m a k e t r e e =*
1 8 0 0
1 8 1 0
1 8 2 0
1 8 3 0m a m a i n
1 8 4 0
1 8 5 0
1 8 6 0
1 8 7 0
1 8 8 0
1 8 9 0
1 9 0 0
1 9 1 0
1 9 2 0
1 9 3 0 f i x c n
1 9 4 0
1 9 5 0
1 9 6 0
1 9 7 0
1 9 8 0
1 9 9 0
2 0 0 0
2 0 1 0 f i x s r
2 0 2 0
2 0 3 02 0 4 0
2 0 5 0
2 0 6 0
2 0 7 0
2 0 8 0t s a c h a r
2 0 9 0
2 1 0 0
2 1 1 0
2 1 2 0
2 1 3 0f i x f r e q
2 1 4 0
2 1 5 0
2 1 6 0
2 1 7 0
2 1 8 0
2 1 9 0
2 2 0 0
2 2 1 0
2 2 2 0
l d xn u m c h a r
d e x
s t x l i s t l e n
l d y l i s t l e n
j s r f i x c n ;
j s r f i x f r e q;
j s r a d d n o d e;
j s r i s o r t
i n c n u m n o d e
I d al i s t l e n
c m p# 1
b n e m a m a i n;
r t s
= *
l d y l i s t l e n
I d a f $ f f
j s r f i x s r ;
d e y
I d a # 0
j s r f i x s r ;
r t s
l d xt y p e , y
b e qt s a c h a r;
l d x l i s t , ys t a n c o d e , x;
I d a n u m n o d e
s t a n p n o d e , x
r t s
l d x l i s t , y
s t a c c o d e , x
I d a n u m n o d e
s t a c p n o d e , x
r t s
= *
l d y l i s t l e n
l d xt y p e , y
b e qa n o t c h a r;
l d x l i s t , y
I d an f r e q l o , x
s t a l o w l
I d an f r e q h i , x
s t a h i l
i m pa h e a d
2 2 3 0a n o t c h a rl d xl i s t v
2 2 4 0
2 2 5 0
2 2 6 0
2 2 7 0
2 2 8 0a h e a d
2 2 9 0
2 3 0 0
2 3 1 0
2 3 2 0
2 3 3 0
2 3 4 0
2 3 5 0
2 3 6 0
I d ac f r e q l o , x
s t a l o w l
I d ac f r e q h i , x
s t a h i l
d e y
l d xt y p e , y
b e qi t s c h a r;
l d xl i s t , y
I d a n f r e q l o , x
s t a I o w 2
I d an f r e q h i , x
s t a h i 2
j m pa d d e m
s t a r t a tt h e e n d
f i x t h e c o d e s& n o d e s f o r y a n d y - 1
f i x t h en e wn o d e ' s f r e q u e n c y
a d d t h e n o d e t o t h el i s t
s o r ti t
q u i t w h e n o n l y t w o n o d e s r e m a i
t h i s m e a n sc o d e= 1
s e t t h e c o d e / n o d e
c o d e =0 o n t h el e f t
i t s a c h a r
i t ' s an o d e
a n o t h e r c h a r
a n o t h e r c h a r
A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 19/84
A C
J D
D L
H D
A I
I J
E P
D K
D K
C N
L H
K H
K N
A L
E E
M A
G 6
B N
D L
E J
P C
F E
K A
O J
G D
J I
I A
N A
G H
P E
K G
D D
E E
I K
C A
H I
A C
F D
N A
A J
N L
D I
G N
D P
H O
H P
D I
J A
H J
D D
L P
F L
D G
A E
E N
D A
N G
D F
I G
D E
F O
L O
H L
A D
L L
P J
J H
E J
N D
C F
2 3 7 0
2 3 8 0
2 3 9 0
2 4 0 0
2 4 1 0
2 4 2 0
2 4 3 0
2 4 4 0
2 4 5 0
2 4 6 0
2 4 7 02 4 8 0
2 4 9 0
2 5 0 0
2 5 1 0
2 5 2 0
2 5 3 0
2 5 4 0
2 5 5 0
2 5 6 0
2 5 7 0
2 5 8 0
2 5 9 0
2 6 0 0
2 6 1 0
2 6 2 0
2 6 3 0
2 6 4 0
2 6 5 0
2 6 6 0
2 6 7 0
2 6 8 0
2 6 9 0
2 7 0 0
2 7 1 0
2 7 2 0
2 7 3 0
2 7 4 0
2 7 5 0
2 7 6 0
2 7 7 0
2 7 8 0
2 7 9 0
2 8 0 0
2 8 1 0
2 8 2 0
2 8 3 0
2 8 4 0
2 8 5 0
2 8 6 0
2 8 7 0
2 8 8 0
2 8 9 0
2 9 0 0
2 9 1 0
2 9 2 0
2 9 3 0
2 9 4 0
2 9 5 0
2 9 6 0
2 9 7 0
2 9 8 0
2 9 9 0
3 0 0 0
3 0 1 0
3 0 2 0
3 0 3 0
3 0 4 0
3 0 5 0
3 0 6 0
i t s c h a r l d x l i s t , y
I d a c f r e q l o , x
s t a I o w 2
I d a c f r e q h i , x
s t a h i 2
a d d e m l d x n u m n o d e
d c
I d a l o w l
a d cI o w 2
s t a n f r e q l o , x
I d a h i la d ch i 2
s t a n f r e q h i , x
r t s
;
a d d n o d e =*
d e c l i s t l e n
l d x l i s t l e n
I d a# $ f f
s t a t y p e , x
I d a n u m n o d e
s t a l i s t , x
r t s
n o d e O= *
l d y# 1
l d xl i s t , y
I d a# $ f f
s t a n c o d e , x
l d a f O
s t a n p n o d e , x;
d e y
l d xl i s t , y
s t a n c o d e , x
s t a n p n o d e , x
r t s
;
e p a s s 2 =*
l d x1 4
j s r c h k o u t ;
I d a1 0
s t a o u t l e n
s t a o u t l e n + 1;
j s r h e a d e r ;
j s r e n c f i l e ;
I d aUj s r c l o s e
I d a# 3
j s r c l o s e
j s r c l r c h n
l d xo u t l e n
I d ao u t l e n + 1
j s r $ b d c d
r t s
h e a d e r =*
I d a f i l e l e n
j s r c h r o u t
I d a f i l e l e n + 1
j s r c h r o u t ;
l d y§ 0
l d x1 0
c h a r OI d ac f r e q l o , x
o r ac f r e q h i , x;
b e qh e a d O
I d ac c o d e , x
b n e h e a d O ;
t x a
s t a h b i t s , y
i n y
T r a n s a c t o r
t y p e o fa p a r e n ti s a l w a y sa n o d e
a d d t h e n o d e n u m b e r t o t h el i s t
t h e p a r e n t i s n o d e0 a t t h e t o p
c h a n n e l4 f o r w r i t i n g
z e r oo u t f i l e l e n g t h
s e n d t h e h e a d e r b y t e s
s e n d t h e e n c o d e df i l e
p r i n t c r u n c h e d l e n g t h
l e n g t ho f i n p u tf i l e
i s t h i s c h a ri n f i l e
i f n of r e q ,d o e s n ' t e x i s t
i g n o r e$ f f
p u s ho n t e m p s t a c k
A H
I J
J M
I J
N P
N E
A L
P I
F J
A O
J N
A C
J M
O N
O P
F C
F F
E C
J I
K N
M D
L B
D C
C K
D J
M K
F F
K G
M I
D L
K D
L O
K L
P B
B L
C N
B L
J L
L D
N P
C E
L O
A A
E C
J E
C N
B I
A F
F L
I E
I G
P E
G C
G I
F H
L M
J B
P J
F P
H A
K H
M A
I D
K O
H O
B H
J D
H I
N A
D G
G K
K D
1 7
3 0 7 0
3 0 8 0
3 0 9 0
3 1 0 0
3 1 1 0
3 1 2 0
3 1 3 0
3 1 4 0
3 1 5 0
3 1 6 0
3 1 7 0
3 1 8 0
3 1 9 0
3 2 0 0
3 2 1 0
3 2 2 0
3 2 3 0
3 2 4 0
3 2 5 0
3 2 6 0
3 2 7 0
3 2 8 0
3 2 9 0
3 3 0 0
3 3 1 0
3 3 2 0
3 3 3 0
3 3 4 0
3 3 5 0
3 3 6 0
3 3 7 0
3 3 8 0
3 3 9 0
3 4 0 0
3 4 1 0
3 4 2 0
3 4 3 0
3 4 4 0
3 4 5 0
3 4 6 0
3 4 7 0
3 4 8 0
3 4 9 0
3 5 0 0
3 5 1 0
3 5 2 0
3 5 3 0
3 5 4 0
3 5 5 0
3 5 6 0
3 5 7 0
3 5 8 0
3 5 9 0
3 6 0 0
3 6 1 0
3 6 2 0
3 6 3 0
3 6 4 0
3 6 5 0
3 6 6 0
3 6 7 0
3 6 8 0
3 6 9 0
3 7 0 0
3 7 1 0
3 7 2 0
3 7 3 0
3 7 4 0
3 7 5 0
3 7 6 0
3 7 7 0
3 7 8 0
h e a d O i n x
b n e c h a r O
t y a
p h a
j s r c h r o u t
j s r s e n d c h a r
l d y1 0
l d x f O
c h a r l I d ac c o d e , x
b e qh e a d l
t x a
s t ah b i t s , y
i n y
h e a d l i n x
b n e c h a r l
t y a
p h a
j s r c h r o u t
j s r s e n d c h a r
;
l d y# 0
l d x# 1
p n o d e OI d an c o d e , x
b n eh e a d 2
t x a
s t a h b i t s , y
i n y
h e a d 2 i n x
c p x n u m n o d e
b n e p n o d e O
t y a
p h a
j s r c h r o u t
j s r s e n d n o d e
l d yt 0
l d x# 1
p n o d e l I d a n c o d e , x
b e q h e a d 3
t x a
s t ah b i t s , y
i n y
h e a d 3 i n x
c p x n u m n o d e
b n ep n o d e l
t y a
p h a
j s r c h r o u t
j s r s e n d n o d e
;
l d y# 4
a d d l o o pp l a
c l c
a d c o u t l e n
s t a o u t l e n
I d af O
a d c o u t l e n + 1
s t a o u t l e n + 1
d e y
b n e a d d l o o p
a s l o u t l e n
r o l o u t l e n + 1
c l c
I d a o u t l e n
a d c# 6
s t a o u t l e n
I d af O
a d c o u t l e n + 1
s t a o u t l e n + 1
r t s
'*
; s e n df o f O c h i l d r e n a n d t h e n n a m e s
; i g n o r e$ 0 0
; p u s h o n t e m ps t a c k
; s e n d# o f l c h i l d r e n a n d t h e nn a m e s
; i g n o r e$ f f
; p u s ho n t e m p s t a c k
; s e n d# o f O n o d e sa n dt h e nn a m e s
; i g n o r e$ 0 0
; p u s h o n t e m p s t a c k
; s e n d1 o f l n o d e sa n d t h e nn a m e s
A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 20/84
H M
J E
F A
P I
K K
M C
H 6
H L
K A
O J
N D
N K
E H
D P
O A
A J
L M
B E
0 6
C A
A P
C K
F K
L O
O H
N OI M
O E
D M
O D
F K
N 6
0 6
6 H
J N
N N
F I
C A
P H
0 6
H O
D L
H A
E C
M P
K I
H O
P J
O L
H M
N A
P J
J C
I H
N A
F E
6 0
6 0
F 6
E D
E F
P 6
6 E
A D
E M
L M
H H
N C
B M
K M
K 6
3 7 9 0
3 8 0 0
3 8 1 0
3 8 2 0
3 8 3 0
3 8 4 0
3 8 5 0
3 8 6 0
3 8 7 0
3 8 8 0
3 8 9 0
3 9 0 0
3 9 1 0
3 9 2 0
3 9 3 0
3 9 4 0
3 9 5 0
3 9 6 0
3 9 7 0
3 9 8 0
3 9 9 0
4 0 0 0
4 0 1 0
4 0 2 0
4 0 3 0
4 0 4 04 0 5 0
4 0 6 0
4 0 7 0
4 0 8 0
4 0 9 0
4 1 0 0
4 1 1 0
4 1 2 0
4 1 3 0
4 1 4 0
4 1 5 0
4 1 6 0
4 1 7 0
4 1 8 0
4 1 9 0
4 2 0 0
4 2 1 0
4 2 2 0
4 2 3 0
4 2 4 0
4 2 5 0
4 2 6 0
4 2 7 0
4 2 8 0
4 2 9 0
4 3 0 0
4 3 1 0
4 3 2 0
4 3 3 0
4 3 4 0
4 3 5 0
4 3 6 0
4 3 7 0
4 3 8 0
4 3 9 0
4 4 0 0
4 4 1 0
4 4 2 0
4 4 3 0
4 4 4 0
4 4 5 0
4 4 6 0
4 4 7 0
4 4 8 0
4 4 9 0
s e n d c h a r
s e n d n o d e
i
e n c f i l e:
e n l o o p
l a s t o n e
f i n i s h
;
w a l k u p =
u p l o o p
u p o u t
;
w a l k d o w n
T r a n s a c t o r
d e y
l d xh b i t s , y
I d ac p n o d e , x
j s r c h r o u t;
t x a
j s r c h r o u t ;
c p y§ 0
b n es e n d c h a r
r t s
d e y
l d xh b i t s , y
I d a n p n o d e , x
j s r c h r o u t ;
t x a
j s r c h r o u t ;
c p y§ 0
b n es e n d n o d e
r t s
= *
i n c f i l e l e n + 1
I d a1 8
s t a o u t b i t s;
j s r w a l k u p;
j s r w a l k d o w n;
d e c f i l e l e n
b n ee n l o o p
d e c f i l e l e n + 1
b n e e n l o o p;
l d x o u t b i t s
c p x| 8
b e qf i n i s h
a s l o u t b y t e
d e x
b n e l a s t o n e
l d x| 4
j s r c h k o u t
I d a o u t b y t e
j s r c h r o u t ;
i n co u t l e n
b n ef i n i s h
i n c o u t l e n + 1
r t s
*
l d x 1 3
j s r c h k i n
j s r c h r i n
t a x
l d y i O
I d a c c o d e , x
s t a h b i t s , y
i n y ;
I d a c p n o d e , x
b e qu p o u t
t a x
I d a n c o d e , x
s t ah b i t s , y
i n y
I d a n p n o d e , x
b n eu p l o o p;
d e y
r t s
= *
I d a h b i t s , y
r o l
r o l o u t b y t e;
d e c o u t b i t s
b e qg o t a b y t e;
s e n d p a r e n t ' s n a m e
s e n d n a m e
s e n d p a r e n t ' s n a m e
s e n d n a m e
8 b i t si n ab y t e
w a l ku p t h e t r e e
o u t p u t t h e b y t e
k e e p g o i n g w h i l e t h ec h a r a c t e r s a r ec o i n i n g
s e n d t h el a s to n e
g e t t h e n e x ti n p u tb y t e
f i r s tc o d e
i f p a r e n ti s z e r o ,e x i t
g e t t h e c o d ea n ds a v ei t
b r a n c hi f n o t p a r e n t0
b u i l da b y t ea b i t a t at i m e
i f o u t b i t s =0 , 8b i t s a r e r e a d y
F I
C H
C D
6 0
C D
J O
P B
M J
J B
F D
O B
E 6L D
L K
D L
H L
J N
E L
F M
D K
D P
6 H
J K
K I
E K
A J
O PL K
K A
6 P
L I
K N
H M
J M
B B
H C
B K
M Rr a n
K H
J D
C I
A H
D A
C F
C E
B E
M I
P J
K B
E P
H F
F L
K P
K O
L H
K M
H L
L I
B A
H B
D J
M 6
E N
K K
C H
E 6
D P
C E
C D
D A
M H
P I
M A
E O
1 8
4 5 0 0d o w n t e s t
4 5 1 0
4 5 2 0
4 5 3 0
4 5 4 0;
4 5 5 0 g o t a b y t e
4 5 6 0
4 5 7 0
4 5 8 0
4 5 9 0
4 6 0 0
4 6 1 0
4 6 2 0
4 6 3 0
4 6 4 0r e s e t 8
4 6 5 0
4 6 6 0
4 6 7 0;
4 6 8 0d e c o d e =
4 6 9 0
4 7 0 0
4 7 1 0
4 7 2 0
4 7 3 0
4 7 4 0
4 7 5 0
4 7 6 0 c h i O4 7 7 0
4 7 8 0
4 7 9 0 d e l p l
4 8 0 0
4 8 1 0
4 8 2 0
4 8 3 0
4 8 4 0
4 8 5 0
4 8 6 0A Q 1 ( \.H O I vi
4 8 8 0 c h i l
4 8 9 0
4 9 0 0
4 9 1 0d e l p 2
4 9 2 0
4 9 3 0
4 9 4 0
4 9 5 0
4 9 6 0
4 9 7 0
4 9 8 0
4 9 9 0;
5 0 0 0p a r O
5 0 1 0
5 0 2 0
5 0 3 0d e l p 3
5 0 4 0
5 0 5 0
5 0 6 0
5 0 7 0
5 0 8 0
5 0 9 0
5 1 0 0
5 1 1 0;
5 1 2 0p a r l
5 1 3 0
5 1 4 0
5 1 5 0 d e l p 4
5 1 6 0
5 1 7 0
5 1 8 0
5 1 9 0
5 2 0 0
5 2 1 0
5 2 2 0
5 2 3 0;
d e y
c p y1 2 5 5
b n e w a l k d o w n
r t s
s t y t e m p y
l d x# 4
j s r c h k o u t
I d a o u t b y t e
j s r c h r o u t ;
l d y t e m p y
i n c o u t l e n;
b n e r e s e t 8
i n co u t l e n + 1
I d a1 8
s t a o u t b i t s
b n ed o w n t e s t;
*
l d x f 5
j s r c h k i n ;
j s r c h r i n
s t a f i l e l e n
j s r c h r i n
s t a f i l e l e n + 1
i n c f i l e l e n + 1
j s r c h r i n ;b e qc h i l
s t a l c
j s r c h r i n
t a x
j s r c h r i n
s t a c h 0 n a m e , x
I d a§ 0
s t a c h 0 t y p e , x
d e c l c
b n e d e l p l
j s r c h r i n ;
b e q p a r O
s t a l c
j s r c h r i n
t a x
j s r c h r i n
s t a c h l n a m e , x
I d af O
s t a c h l t y p e , x
d e c l c
b n e d e l p 2
j s r c h r i n
b e qp a r l
s t a l c
j s r c h r i n
t a x
j s r c h r i n
s t a c h 0 n a m e , x
I d a # $ f f
s t a c h 0 t y p e , x
d e cl c
b n e d e l p 3
j s r c h r i n ;
b e q b i t t e r
s t a l c
j s r c h r i n
t a x
j s r c h r i n
s t a c h l n a m e , x
I d a # $ f f
s t a c h l t y p e , x
d e c l c
b n ed e l p 4
e n d o f w a l k d o w n
s e n da c h a r a c t e r
i n c r e m e n t l e n g t h o f o u t p u t f i l
b r a n c ha l w a y s
c h a n n e l5 i s i n p u t
h o wm a n yc h i l d O ' s
l o o p c o u n t e r
h o w m a n yc h i l d l ' s
l o o p c o u n t e r
h o w m a n yp a r e n t O ' s
l o o p c o u n t e r
h o w m a n yp a r e n t l ' s
l o o p c o u n t e r
A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 21/84
P 6
N 6
O P
H D
L J
K L
E K
J L
P D
6 J
I K
O P
B D
H H
M J
P C
L E
M M
A 6
M K
J N
A M
H J
A O
A A
6 J
P K
J D
6 A
B A
H P
A H
M O
J J
C M
E N
N L
K O
B D
J P
L A
F M
P . T
K M
F C
P K
L D
D M
P F
O E
C O
M C
E L
O J
I E
N A
M A
J C
O A
D A
N K
6 6
E O
F H
N M
E K
D H
O L
0 1
J A
M E
E F
O F
5 2 4 0b i t t e r=
5 2 5 0
5 2 6 0
5 2 7 0o u t l o o p
5 2 8 0
5 2 9 0
5 3 0 0
5 3 1 0
5 3 2 0
5 3 3 0 i n l o o p
5 3 4 0
5 3 5 0
5 3 6 0 i t s a O =
5 3 7 0
5 3 8 0
5 3 9 0
5 4 0 0
5 4 1 0 n e x t b i t
5 4 2 0
5 4 3 0
5 4 4 0
5 4 5 0;
5 4 6 0 i t s a l=J l V v l U o Q J l
5 4 7 0
5 4 8 0
5 4 9 0
5 5 0 0
5 5 1 0
5 5 2 0;
5 5 3 0 p r i n t i t
5 5 4 0
5 5 5 0
5 5 6 0
5 5 7 0
5 5 8 0
5 5 9 0
5 6 0 0
5 6 1 0t o t h e t o j
5 6 2 0
5 6 3 0
5 6 4 0
5 6 5 0
R f i f i f )•J u O Ui
5 6 7 0 c l e a n u pC C O f i5 6 8 0
5 6 9 0
5 7 0 0
5 7 1 0
5 7 2 0
5 7 3 0
5 7 4 0;
5 7 5 0 f i l e l e n
5 7 6 0 n u m c h a r
5 7 7 0 n u m n o d e
5 7 8 0 l c
5 7 9 0 l i s t l e n
5 8 0 0i s l i s t
5 8 1 0i s t y p e
5 8 2 0i s l o
5 8 3 0 i s h i
5 8 4 0 t e s t l o
5 8 5 0 t e s t h i
5 8 6 0t e m p yc o i n l « . , i5 8 7 0 l o w !
5 8 8 0 h i l
5 8 9 0 I o w 2
5 9 0 0 h i 2
5 9 1 0o u t l e n
5 9 2 0 o u t b y t e
5 9 3 0 o u t b i t s
5 9 4 0h u f f e r
5 9 5 0 n o d e
5 9 6 0n u m b i t s
T r a n s a c t o r
*
I d aH O
s t a n o d e
l d x# 5
j s r c h k i n
j s r c h r i n
s t a h u f f e r1 J « 1 1 0I d a# 8
s t a n u m b i t s
l d y n o d e
r o l h u f f e r
b c si t s a l*
I d a c h O n a m e
s t an o d e
> y
l d x c h 0 t y p e , y
b e qp r i n t i t
= *
d e c n u m b i t s
b n e i n l o o p
b e qo u t l o o p
*
I d a c h l n a m e
s t a n o d e
l d x c h l t y p e
b e qp r i n t i t
b n en e x t b i t
l d x# 6
j s r c h k o u t
I d a n o d e
j s r c h r o u t
d e cf i l e l e i
g o t8 b i t s
t h e n o d ei s t h e p a r e n t
g e ta b i t i n t oc a r r y
i f c s , t h eb i t i s 1
- g e t t h e n a m e o fc h i l d0
* w h oi s t h e n e w p a r e n t / n o d e
* d o e si t t e r m i n a t e
• y e s ,g o p r i n t
, y ; g e t t h e n a m e o f c h i l d1
; w h oi s t h en e wp a r e n t / n o d e
i , y ; d o e s i t t e r m i n a t e
; y e s ,g o p r i n t
l
b n e t o t h e t o p
d e c f i l e l e n + 1
) I d af O
s t a n o d e
I d af i l e l e i
; b a c ku p t o n o d e0 a t t h e t o p
i
o r a f i l e l e n + 1
b n en e x t b i i
— XS «
1 J o i l EI d a 8 5
j s r c l o s e
I d a 1 6
j s r c l o s e
j s r c l r c h n
r t s
= *
= * + 2
= * + 3
= * + 4
= * + 5
= * + 6
= * + 7
= * + 8
= * + 9
= * + 1 0
= * + l l
= * + 1 2
= i s l o
= i s h i
= t e s t l o
= t e s t h i
= * + 1 3
= * + 1 5
= * + 1 6
= i s l o
= i s h i
= t e s t l o
l e n g t h o fs r e f i l e
f o f c h a r s
i o f n o d e s
l o o p c o u n t e r
l e n g t h o fl i s t ,u s e d b yi s o r t r o u t i n e
t e m p o r a r y s t o r a g e f o rl i s t , t y p e ,f r e q l o ,
a n d f r e q h i
i s l o / h ii s t e s t e d a g a i n s t t e s t l o / h i
f o r i n s e r t i o ns o r t
t e m p s t o r a g ef o r . y
o u t p u t f i l e l e n g t h
t h e ( c r u n c h e d )h u f f m a n b y t e t o s e n d o u t
n u m b e r o f b i t s( w h e n i t = 8 ,t h e b y t e g e t ss e n t )
h u f f m a nb y t e( w h e nu n c r u n c h i n g )
t h e c h i l d n o d e( e i t h e ra n o t h e rn o d e o ra c h a r )
n u m b e r o f b i t s
L B
F B
H H
1 0 0r e m g e n e r a t o rf o r " o b j e c t "
1 1 0n $ = " o b j e c f: r e m n a m e o fp r o g r a m
1 2 0 n d = 1 1 7 8 : s a = 4 9 1 5 2 :c h = 1 7 3 0 4 1
( f o rl i n e s1 3 0 - 2 6 0 ,
H 6
N P
M B
E l
B B
C F
P A
E B
H I
O L
M H
E J
M F
D K
D A
M I
L J
H P
B P
B A
C I
0 1
6 1
L C
P N
M P
I A
P I
P I
A D
C A
1 6
P H
B E
N O
C H
E D
L FF J
I P
L O
C J
M A
I A
M N
I M
F I
D F
6 A
J E
J J
F O
6 D
J DM B
6 0
J P
C A
H F
E F
A N
F E
I L
6 K
L E
M H
E J
N F
J F
B B
H N
1 9
1 0 0 0d a t a 7 6 ,
1 0 1 0d a t a1 9 5 ,
1 0 2 0 d a t a1 9 2 ,
1 0 3 0d a t a2 5 5 ,
1 0 4 0 d a t a6 2 ,
1 0 5 0d a t a1 6 8 ,
1 0 6 0d a t a 0 ,
1 0 7 0d a t a1 5 3 ,
1 0 8 0d a t a2 3 2 ,
1 0 9 0 d a t a1 5 6 ,
1 1 0 0d a t a 9 6 ,
1 1 1 0d a t a2 0 8 ,
1 1 2 0d a t a2 0 8 ,
1 1 3 0d a t a2 3 2 ,
1 1 4 0d a t a2 0 5 ,
1 1 5 0 d a t a1 6 0 ,
1 1 6 0d a t a1 7 2 ,
1 1 7 0d a t a1 9 8 ,
1 1 8 0d a t a 0 ,
1 1 9 0d a t a2 3 8 ,
1 2 0 0 d a t a9 6 ,
1 2 1 0 d a t a0 ,
1 2 2 0 d a t a2 0 6 ,
1 2 3 0d a t a1 9 7 ,
1 2 4 0d a t a1 6 3 ,
1 2 5 0d a t a1 4 1 ,
1 2 6 0d a t a1 9 6 ,
1 2 7 0d a t a2 0 8 ,
1 2 8 0d a t a1 8 9 ,
1 2 9 0d a t a1 9 2 ,
1 3 0 0d a t a 0 ,
1 3 1 0d a t a2 0 5 ,
1 3 2 0d a t a1 6 2 ,
1 3 3 0d a t a 5 ,
1 3 4 0d a t a1 6 6 ,
1 3 5 0d a t a1 7 2 ,
1 3 6 0d a t a1 5 3 ,
1 3 7 0d a t a1 5 3 ,1 3 8 0d a t a2 3 4 ,
1 3 9 0d a t a1 6 1 ,
1 4 0 0d a t a1 9 6 ,
1 4 1 0 d a t a3 2 ,
1 4 2 0d a t a1 9 3 ,
1 4 3 0d a t a1 5 9 ,
1 4 4 0d a t a1 5 9 ,
1 4 5 0d a t a1 6 9 ,
1 4 6 0d a t a2 0 6 ,
1 4 7 0d a t a2 0 3 ,
1 4 8 0d a t a1 9 0 ,
1 4 9 0d a t a1 9 6 ,
1 5 0 0 d a t a1 9 0 ,
1 5 1 0d a t a1 8 9 ,
1 5 2 0d a t a2 0 2 ,
1 5 3 0d a t a 0 ,1 5 4 0d a t a1 8 9 ,
1 5 5 0d a t a 0 ,
1 5 6 0d a t a 0 ,
1 5 7 0d a t a1 4 1 ,
1 5 8 0d a t a2 0 5 ,
1 5 9 0d a t a 0 ,
1 6 0 0d a t a 2 4 ,
1 6 1 0 d a t a0 ,
1 6 2 0 d a t a1 5 7 ,
1 6 3 0d a t a1 5 9 ,
1 6 4 0 d a t a1 5 7 ,
1 6 5 0d a t a1 9 0 ,
1 6 6 0d a t a1 6 9 ,
1 6 7 0d a t a2 0 5 ,
1 6 8 0d a t a1 6 2 ,
1 6 9 0d a t a1 6 7 ,
1 7 0 0d a t a 3 2 ,
s e e t h e s t a n d a r d g e n e r a t o r o n p a g e5 )
9 , 1 9 2 , 7 6 , 3 2 ,1 9 4 , 7 6 , 1 7 2
1 6 2 , 2 , 3 2 , 1 9 8 ,2 5 5 , 3 2 , 3 8
3 2 , 8 1 ,1 9 2 ,1 6 9 , 2 , 3 2 , 1 9 5
3 2 , 2 0 4 , 2 5 5 ,3 2 , 1 2 0 ,1 9 2 , 3 2
1 9 3 , 3 2 , 6 , 1 9 4 , 9 6 , 1 6 9 , 0
1 5 3 , 0 , 1 9 7 , 1 5 3 ,0 , 1 9 8 ,1 5 3
1 9 9 ,1 5 3 , 0 , 2 0 0 ,1 5 3 , 0 , 2 0 3
0 , 2 0 6 ,1 5 3 , 0 , 2 0 5 ,1 3 6 ,2 0 8
1 4 1 , 1 5 4 , 1 9 6 ,1 4 1 ,1 5 5 , 1 9 6 ,1 4 1
1 9 6 , 1 4 1 ,1 5 7 ,1 9 6 ,2 3 8 ,1 5 7 ,1 9 6
3 2 , 2 0 7 ,2 5 5 , 1 7 0 ,2 5 4 , 0 , 1 9 7
3 , 2 5 4 , 0 , 1 9 8 , 2 3 8 , 1 5 4 ,1 9 6
3 , 2 3 8 ,1 5 5 ,1 9 6 , 1 6 4 ,1 4 4 ,2 4 0
1 7 4 , 1 5 4 , 1 9 6 , 1 7 3 , 1 5 5 , 1 9 6 ,3 2
1 8 9 , 1 6 9 ,6 2 , 3 2 ,2 1 0 ,2 5 5 , 9 6
0 , 1 4 0 , 1 5 9 , 1 9 6 , 1 4 0 , 1 5 8 ,1 9 6
1 5 8 , 1 9 6 , 1 8 5 ,0 , 1 9 7 , 2 5 , 0
2 4 0 , 1 6 , 1 5 2 , 1 7 2 , 1 5 6 , 1 9 6 ,1 5 3
2 0 5 , 2 3 8 ,1 5 6 ,1 9 6 , 3 2 , 1 6 1 ,1 9 2
1 5 9 , 1 9 6 , 2 3 8 , 1 5 8 , 1 9 6 , 2 0 8 ,2 2 4
1 7 2 , 1 5 9 , 1 9 6 , 2 0 8 ,1 , 9 6 , 1 8 5
2 0 5 , 1 4 1 , 1 6 0 , 1 9 6 , 1 7 0 , 1 8 5 ,0
1 4 1 , 1 6 1 , 1 9 6 ,2 0 8 , 1 5 , 1 8 9 , 0
1 4 1 , 1 6 2 , 1 9 6 , 1 8 9 ,0 , 1 9 8 ,1 4 1
1 9 6 , 7 6 , 2 0 9 , 1 9 2 , 1 8 9 ,0 , 2 0 1
1 6 2 , 1 9 6 , 1 8 9 ,0 , 2 0 2 ,1 4 1 ,1 6 3
1 3 6 , 1 9 0 ,0 , 2 0 5 ,1 8 5 , 0 , 2 0 6
1 5 , 1 8 9 , 0 , 1 9 7 , 1 4 1 ,1 6 4 ,1 9 6
0 , 1 9 8 , 1 4 1 , 1 6 5 , 1 9 6 ,7 6 , 2 4 5
1 8 9 , 0 , 2 0 1 , 1 4 1 , 1 6 4 , 1 9 6 ,1 8 9
2 0 2 ,1 4 1 , 1 6 5 , 1 9 6 , 1 7 3 , 1 6 3 ,1 9 6
1 6 5 , 1 9 6 , 1 4 4 ,1 7 , 2 0 8 , 1 0 , 1 7 3
1 9 6 , 2 0 5 ,1 6 4 ,1 9 6 , 2 4 0 ,7 , 1 4 4
1 9 2 , 0 , 2 0 8 , 1 9 6 , 1 3 6 , 2 0 0 ,1 4 0
1 9 6 ,2 0 4 ,1 5 9 , 1 9 6 ,2 0 8 , 1 , 9 6
1 5 9 , 1 9 6 ,1 3 6 ,1 8 5 , 0 , 2 0 5 ,2 0 0
0 , 2 0 5 ,1 3 6 ,1 8 5 , 0 , 2 0 6 ,2 0 0
0 , 2 0 6 , 1 3 6 , 2 0 4 , 1 6 6 , 1 9 6 ,2 0 81 7 3 , 1 6 0 , 1 9 6 , 1 5 3 ,0 , 2 0 5 ,1 7 3
1 9 6 , 1 5 3 ,0 , 2 0 6 , 9 6 , 1 7 4 ,1 5 6
2 0 2 ,1 4 2 , 1 5 9 , 1 9 6 , 1 7 2 , 1 5 9 ,1 9 6
9 5 , 1 9 3 , 3 2 , 1 4 1 , 1 9 3 ,3 2 , 2 4 4
3 2 , 1 6 1 , 1 9 2 ,2 3 8 ,1 5 7 , 1 9 6 ,1 7 3
1 9 6 , 2 0 1 ,1 , 2 0 8 , 2 3 1 ,9 6 , 1 7 2
1 9 6 , 1 6 9 , 2 5 5 , 3 2 , 1 1 0 , 1 9 3 ,1 3 6
0 , 3 2 , 1 1 0 ,1 9 3 , 9 6 , 1 9 0 , 0
2 4 0 , 1 3 , 1 9 0 ,0 , 2 0 5 , 1 5 7 ,0
1 7 3 , 1 5 7 , 1 9 6 , 1 5 7 ,0 , 2 0 4 , 9 6
0 , 2 0 5 ,1 5 7 , 0 , 1 9 9 ,1 7 3 ,1 5 7
1 5 7 , 0 , 2 0 0 , 9 6 , 1 7 2 , 1 5 9 ,1 9 6
0 , 2 0 6 ,2 4 0 , 1 8 , 1 9 0 , 0 , 2 0 5
0 , 2 0 1 ,1 4 1 ,1 6 2 , 1 9 6 ,1 8 9 , 0
1 4 1 , 1 6 3 , 1 9 6 , 7 6 , 1 8 2 , 1 9 3 ,1 9 0
2 0 5 ,1 8 9 , 0 , 1 9 7 ,1 4 1 ,1 6 2 ,1 9 60 , 1 9 8 , 1 4 1 , 1 6 3 , 1 9 6 , 1 3 6 ,1 9 0
2 0 6 , 2 4 0 ,1 8 , 1 9 0 , 0 , 2 0 5 ,1 8 9
2 0 1 ,1 4 1 ,1 6 4 ,1 9 6 , 1 8 9 ,0 , 2 0 2
1 6 5 , 1 9 6 ,7 6 , 2 2 1 ,1 9 3 , 1 9 0 ,0
1 8 9 , 0 , 1 9 7 , 1 4 1 , 1 6 4 , 1 9 6 ,1 8 9
1 9 8 , 1 4 1 , 1 6 5 , 1 9 6 , 1 7 4 , 1 5 7 ,1 9 6
1 7 3 , 1 6 2 ,1 9 6 ,1 0 9 , 1 6 4 ,1 9 6 ,1 5 7
2 0 1 ,1 7 3 , 1 6 3 , 1 9 6 ,1 0 9 ,1 6 5 ,1 9 6
0 , 2 0 2 , 9 6 , 2 0 6 , 1 5 9 ,1 9 6 ,1 7 4
1 9 6 , 1 6 9 , 2 5 5 , 1 5 7 ,0 , 2 0 6 ,1 7 3
1 9 6 , 1 5 7 ,0 , 2 0 5 , 9 6 , 1 6 0 ,1
0 , 2 0 5 ,1 6 9 ,2 5 5 , 1 5 7 ,0 , 2 0 3
0 , 1 5 7 , 0 , 2 0 4 ,1 3 6 , 1 9 0 ,0
1 5 7 , 0 , 2 0 3 , 1 5 7 ,0 , 2 0 4 , 9 6
4 , 3 2 , 2 0 1 , 2 5 5 , 1 6 9 ,0 , 1 4 1
1 9 6 , 1 4 1 , 1 6 8 , 1 9 6 ,3 2 , 7 4 ,1 9 4
2 7 , 1 9 5 , 1 6 9 ,4 , 3 2 , 1 9 5 ,2 5 5
A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 22/84
K B
1 7 1 0
H A 1 7 2 0
D E 1 7 3 0
I I 1 7 4 0
C J 1 7 5 0
L A 1 7 6 0
L L 1 7 7 0
6 E 1 7 8 0
A A 1 7 9 0
D O 1 8 0 0
1 8 1 0
1 8 2 0
1 8 3 0
P F 1 8 4 0
H M 1 8 5 0
B E 1 8 6 0
K G 1 8 7 0
L F 1 8 8 0
P L 1 8 9 0
P K 1 9 0 0
A M 1 9 1 0
G P 1 9 2 0
M K 1 9 3 0
C J 1 9 4 0
J O 1 9 5 0
L P 1 9 6 0
C J 1 9 7 0
O F 1 9 8 0C P 1 9 9 0
O G 2 0 0 0
J B 2 0 1 0
M E 2 0 2 0
B A 2 0 3 0
B G 2 0 4 0
H A 2 0 5 0
K J 2 0 6 0
E N 2 0 7 0
H C 2 0 8 0
J L 2 0 9 0
I B 2 1 0 0
K J 2 1 1 0
F J 2 1 2 0
G K 2 1 3 0
C F 2 1 4 0
F N 2 1 5 0
L J 2 1 6 0
I B 2 1 7 0
F A 2 1 8 0
1 0 2 1 9 0
H N 2 2 0 0
F O 2 2 1 0
P M 2 2 2 0
K N 2 2 3 0
N A 2 2 4 0
F N 2 2 5 0
O P 2 2 6 0
N B 2 2 7 0
L C 2 2 8 0
A C 2 2 9 0
A C 2 3 0 0
D F 2 3 1 0
C M 2 3 2 0
E E 2 3 3 0
O O 2 3 4 0
J I 2 3 5 0
M F 2 3 6 0
N N 2 3 7 0
M N 2 3 8 0
K I 2 3 9 0
K E 2 4 0 0
O C 2 4 1 0
F K 2 4 2 0
G L 2 4 3 0
A O 2 4 4 0
G C 2 4 5 0
I L 2 4 6 0
G C 2 4 7 0
d a t a1 6 9 ,
d a t a1 7 4 ,
d a t a1 8 9 ,
d a t a1 7 3 ,
d a t a1 6 2 ,
d a t a2 4 0 ,
d a t a1 5 3 ,
d a t a 7 2 ,
d a t a 0 ,
d a t a1 3 8 ,
d a t a1 5 2 ,
d a t a1 6 0 ,
d a t a 5 ,
d a t a1 5 7 ,
d a t a2 5 5 ,
d a t a1 8 9 ,
d a t a2 0 7 ,
d a t a1 5 2 ,
d a t a1 6 0 ,
d a t a1 6 7 ,
d a t a1 6 8 ,
d a t a 4 6 ,
d a t a 6 ,
d a t a1 9 6 ,
d a t a2 0 7 ,
d a t a 3 2 ,
d a t a1 3 6 ,
d a t a2 1 0 ,d a t a2 0 8 ,
d a t a1 4 1 ,
d a t a1 9 5 ,
d a t a1 9 6 ,
d a t a2 4 0 ,
d a t a1 6 2 ,
d a t a 3 2 ,
d a t a2 3 8 ,
d a t a2 5 5 ,
d a t a 0 ,
d a t a2 0 0 ,
d a t a 0 ,
d a t a1 3 6 ,
d a t a1 9 6 ,
d a t a2 5 5 ,
d a t a 4 ,
d a t a2 1 0 ,
d a t a2 0 8 ,
d a t a1 7 0 ,
d a t a2 5 5 ,
d a t a2 0 7 ,
d a t a 3 2 ,
d a t a 3 2 ,
d a t a 0 ,
d a t a1 5 8 ,
d a t a 2 3 ,
d a t a 3 2 ,
d a t a1 5 7 ,
d a t a 3 2 ,
d a t a 3 2 ,
d a t a 0 ,
d a t a1 5 8 ,
d a t a 2 3 ,
d a t a 3 2 ,
d a t a1 5 7 ,
d a t a1 6 9 ,
d a t a1 9 8 ,
d a t a1 6 9 ,
d a t a 4 6 ,
d a t a1 4 1 ,
d a t a2 0 6 ,
d a t a 0 ,
d a t a2 4 0 ,
d a t a2 5 5 ,
d a t a1 5 4 ,
d a t a 0 ,
d a t a1 5 5 ,
d a t a2 5 5 ,
d a t a2 5 5 ,
3 , 3 2 ,
1 6 7 , 1 9 6 ,
9 6 , 1 7 3 ,
1 5 5 , 1 9 6 ,
0 , 1 8 9 ,
1 0 , 1 8 9 ,
0 , 2 0 7 ,
3 2 , 2 1 0 ,
1 6 2 , 0 ,
1 5 3 , 0 ,
7 2 , 3 2 ,
0 , 1 6 2 ,
1 3 8 , 1 5 3 ,
1 9 6 ,2 0 8 ,
3 2 , 8 ,
0 , 2 0 3 ,
2 0 0 ,2 3 2 ,
7 2 , 3 2 ,
4 , 1 0 4 ,
1 9 6 , 1 6 9 ,
1 9 6 , 1 3 6 ,
1 6 8 , 1 9 6 ,
1 4 1 , 1 6 7 ,
1 4 1 , 1 6 8 ,
1 8 9 , 0 ,
2 1 0 , 2 5 5 ,
1 9 0 , 0 ,
2 5 5 , 1 3 8 ,2 3 8 , 9 6 ,
1 7 0 , 1 9 6 ,
2 0 6 ,1 5 4 ,
2 0 8 , 2 4 0 ,
2 5 , 1 4 ,
4 , 3 2 ,
2 1 0 ,2 5 5 ,
1 6 8 , 1 9 6 ,
3 2 , 2 0 7 ,
1 9 9 , 1 5 3 ,
2 4 0 , 1 3 ,
2 0 7 , 2 0 0 ,
9 6 , 1 8 5 ,
2 0 6 , 1 7 0 ,
2 0 8 , 2 3 9 ,
3 2 , 2 0 1 ,
2 5 5 , 1 7 2 ,
3 , 2 3 8 ,
1 9 6 ,2 0 8 ,
3 2 , 2 0 7 ,
2 5 5 ,1 4 1 ,
2 0 7 , 2 5 5 ,
2 0 7 , 2 5 5 ,
1 9 8 , 1 6 9 ,
1 9 6 ,2 0 8 ,
1 4 1 , 1 5 8 ,
2 0 7 , 2 5 5 ,
0 , 1 9 9 ,
2 0 7 , 2 5 5 ,
2 0 7 , 2 5 5 ,
1 9 8 , 1 6 9 ,
1 9 6 , 2 0 8 ,
1 4 1 ,1 5 8 ,
2 0 7 , 2 5 5 ,
0 , 1 9 9 ,
0 , 1 4 1 ,
2 5 5 , 3 2 ,
8 , 1 4 1 ,
1 6 2 , 1 9 6 ,
1 6 3 , 1 9 6 ,
1 6 4 , 1 9 6 ,
2 0 0 , 1 4 1 ,
2 , 2 0 8 ,
1 7 3 , 1 6 3 ,
1 9 6 ,2 0 8 ,
1 4 1 , 1 6 3 ,
1 9 6 ,2 0 8 ,
1 6 9 , 6 ,
9 6
1 9 5 ,2 5 5 ,
1 7 3 , 1 6 8 ,
1 5 4 , 1 9 6 ,
3 2 , 2 1 0 ,
0 , 1 9 7 ,
0 , 1 9 9 ,
2 0 0 , 2 3 2 ,
2 5 5 , 3 2 ,
1 8 9 , 0 ,
2 0 7 ,2 0 0 ,
2 1 0 , 2 5 5 ,
1 , 1 8 9 ,0 , 2 0 7 ,
2 4 0 , 1 5 2 ,
1 9 5 , 1 6 0 ,
2 4 0 , 5 ,
2 3 6 , 1 5 7 ,
2 1 0 ,2 5 5 ,
2 4 , 1 0 9 ,
0 , 1 0 9 ,
2 0 8 , 2 3 7 ,
2 4 , 1 7 3 ,
1 9 6 , 1 6 9 ,
1 9 6 , 9 6 ,
2 0 0 , 3 2 ,
1 9 2 , 0 ,
2 0 7 , 1 8 9 ,
3 2 , 2 1 0 ,2 3 8 , 1 5 5 ,
3 2 , 8 4 ,
1 9 6 ,2 0 8 ,
1 7 4 ,1 7 0 ,
1 6 9 ,1 9 6 ,
2 0 1 ,2 5 5 ,
2 3 8 , 1 6 7 ,
9 6 , 1 6 2 ,
2 5 5 , 1 7 0 ,
0 , 2 0 7 ,
1 7 0 , 1 8 9 ,
1 8 9 , 0 ,
0 , 2 0 7 ,
1 9 6 , 2 4 0 ,
9 6 , 1 4 0 ,
2 5 5 , 1 7 3 ,
1 6 6 , 1 9 6 ,
1 6 8 ,1 9 6 ,
2 1 8 , 1 6 2 ,
2 5 5 , 1 4 1 ,
1 5 5 ,1 9 6 ,
2 4 0 , 2 3 ,
1 7 0 , 3 2 ,
0 , 1 5 7 ,
2 3 6 , 3 2 ,
1 9 6 , 3 2 ,
1 5 7 , 0 ,
2 0 6 , 1 5 8 ,
2 4 0 , 2 3 ,
1 7 0 , 3 2 ,
2 5 5 , 1 5 7 ,
2 3 6 , 3 2 ,
1 9 6 , 3 2 ,
1 5 7 , 0 ,
2 0 6 , 1 5 8 ,
1 6 3 ,1 9 6 ,
2 0 7 , 2 5 5 ,
1 6 4 ,1 9 6 ,
1 7 6 , 1 8 ,
1 9 0 , 0 ,
2 0 8 , 2 3 2 ,
1 6 3 ,1 9 6 ,
2 3 6 , 1 6 2 ,
1 9 6 , 3 2 ,
3 , 2 0 6 ,
1 9 6 ,1 7 3 ,
2 0 4 , 1 6 9 ,
3 2 , 1 9 5 ,
3 2 , 2 0 4 ,2 5 5
1 9 6 , 3 2 , 2 0 5
3 2 , 2 1 0 ,2 5 5
2 5 5 ,1 6 0 , 0
2 9 , 0 , 1 9 8
2 0 8 , 5 , 1 3 8
2 0 8 , 2 3 5 ,1 5 2
2 4 5 ,1 9 4 ,1 6 0
1 9 9 , 2 4 0 ,5
2 3 2 ,2 0 8 ,2 4 3
3 2 , 2 4 5 , 1 9 4
0 , 2 0 3 ,2 0 8
2 0 0 , 2 3 2 ,2 3 6
7 2 , 3 2 ,2 1 0
0 , 1 6 2 , 1
1 3 8 , 1 5 3 ,0
1 9 6 , 2 0 8 ,2 4 0
3 2 , 8 , 1 9 5
1 6 7 ,1 9 6 ,1 4 1
1 6 8 ,1 9 6 ,1 4 1
1 4 , 1 6 7 ,1 9 6
1 6 7 , 1 9 6 ,1 0 5
0 , 1 0 9 ,1 6 8
1 3 6 , 1 9 0 ,0
2 1 0 , 2 5 5 ,1 3 8
2 0 8 , 2 3 8 ,9 6
0 , 2 0 4 , 3 2
2 5 5 ,1 9 2 , 01 9 6 ,1 6 9 , 8
1 9 5 , 3 2 , 1 2 2
2 4 5 ,2 0 6 ,1 5 5
1 9 6 , 2 2 4 ,8
2 0 2 , 2 0 8 ,2 5 0
1 7 3 , 1 6 9 ,1 9 6
1 9 6 , 2 0 8 ,3
3 , 3 2 , 1 9 8
1 6 0 , 0 , 1 8 9
2 0 0 ,1 8 9 , 0
0 , 2 0 3 ,1 5 3
2 0 4 , 2 0 8 ,2 4 3
4 2 , 4 6 ,1 6 9
6 , 1 3 6 ,1 9 2
1 6 6 , 1 9 6 ,1 6 2
1 6 9 , 1 9 6 ,3 2
2 3 8 , 1 6 7 ,1 9 6
1 6 9 , 8 , 1 4 1
5 , 3 2 , 1 9 8
1 5 4 ,1 9 6 , 3 2
2 3 8 ,1 5 5 ,1 9 6
1 4 1 ,1 5 8 ,1 9 6
2 0 7 , 2 5 5 ,1 5 7
0 , 1 9 7 ,2 0 6
2 0 7 , 2 5 5 ,2 4 0
2 0 7 , 2 5 5 ,1 7 0
2 0 0 ,1 6 9 , 0
1 9 6 , 2 0 8 ,2 3 6
1 4 1 ,1 5 8 ,1 9 6
2 0 7 ,2 5 5 ,1 5 7
0 , 1 9 7 ,2 0 6
2 0 7 ,2 5 5 ,2 4 0
2 0 7 , 2 5 5 ,1 7 0
2 0 0 , 1 6 9 ,2 5 5
1 9 6 ,2 0 8 ,2 3 6
1 6 2 , 5 , 3 2
1 4 1 , 1 6 2 ,1 9 6
1 7 2 , 1 6 3 ,1 9 6
1 8 5 , 0 , 1 9 8
1 9 7 , 2 4 0 ,2 0
2 4 0 , 2 1 4 ,1 8 5
1 9 0 , 0 , 1 9 9
6 , 3 2 , 2 0 1
2 1 0 ,2 5 5 ,2 0 6
1 5 5 ,1 9 6 ,1 6 9
1 5 4 ,1 9 6 , 1 3
5 , 3 2 , 1 9 5
2 5 5 , 3 2 , 2 0 4
□
N e w !I m p r o v
T R A N S B A 2 1w i t hS Y M A S S 1
" I u s e dt o b e s o a s h a m e do f m yd u l l ,m e s s yc o d e ,b u t
n o m a t t e rw h a tI t r i e dI j u s tc o u l d n ' tg e t r i do f t h o s es t u b b o r ns p a g h e t t is t a i n s ! 1 1w r i t e sM r s .J e n n yR . o f
R i c h m o n dH i l l ,O n t a r i o .' T h e nt h eT r a n s a c t o rp e o p l e
a s k e dm e t o t r y n e wT r a n s B A S I C2 , w i t hS y m a s s ®
T h e ye x p l a i n e dh o wT r a n s B A S I C2 , w i t hi t ss c o r e so f
t i n y ' t o k e n s 1 ,w o u l dg e tm yc o d el o o k i n gc l e a n ,f a s t !
" I w a ss c e p t i c a l ,b u tI f i g u r e dt h e r ew a sn o h a r mi n
g i v i n gi t a t r y .W e l l ,a l l i t t o o kw a so n el o a da n dI w a s
c o n v i n c e d !T r a n s B A S I C2 w e n tt o w o r ka n dg o tm y
c o d el o o k i n gc l e a na s n e wi n s e c o n d s !N o wI ' mt e l l i n g
a l lm yf r i e n d st o t r yT r a n s B A S I C2 i n t h e i rm a c h i n e s !
T r a n s B A S I C2 , w i t hS y m a s s ,t h es y m b o l i ca s s e m b l e r .
P a c k a g ec o n t a i n sa l l 1 2 s e t so f T r a n s B A S I Cm o d u l e s
f r o mt h em a g a z i n e ,p l u sf u l ld o c u m e n t a t i o n .M a k ey o u r
B A S I Cp r o g r a m sr u nf a s t e ra n db e t t e rw i t ho v e r1 4 0
a d d e ds t a t e m e n ta n df u n c t i o nk e y w o r d s .
D i s ka n dM a n u a l$ 1 7 . 9 5 U S , $ 1 9 . 9 5
( s e eo r d e rc a r da t c e n t e ra n dN e w sB R Kf o rm o r ei n f o )
T r a n s B A S I C2" C l e a n e r c o d e , l o a da f t e rl o a d ! 1 1
T r a n s a c t o r 2 0 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 23/84
F O RC O M M O D O R E6 4 / 1 2 8
R A P I U BA N D F O RC P / MC O M P U T E R S
S o a l l y o u rf r i e n d sh a v eI B M ' sa n dM a c s ?
N o wy o uc a nf e e l
s o r r yf o rt h e m .
T H ES U P E R F A S TP A R A L L E LD O SF O RT H EC O M M O D O R E6 4 / 1 2 8A N D1 5 4 1
Y o u ' r ea C o m m o d o r eo w n e r .Y o u V eg o tg r e a t
c o l o r sa n df a n t a s t i cs o u n d ,d y n a m i cf e a t u r e s
t h a tI B Ma n dM a co w n e r s c a no n l yd r e a mo f .
Y o u V eg o ti t a l l- e x c e p ts p e e d .
W e l l ,y o ud o n ' th a v et o b e l e f ti n t h e d u s t
a n y m o r e !L a w r e n c eH i l e r ,o n eo f t h eo r i g i n a l
" B a s e m e n tB o y s " ,b r i n g sy o ut h em o s te x c i t i n g
d e v e l o p m e n ti n t h eh i s t o r yo f C o m m o d o r e
c o m p u t e r s- R a p i D o s !P a c k e dw i t h f e a t u r e s ,
R a p i D o sw i l lt r a n s f o r my o u rs l u gi n t oa b u l l e t-
j u s tt a k ea l o o ka t t h ec h a r tb e l o w !
G e ty o u rR a p i D o s ,t h e ni n v i t ey o u rI B M a n dM a cf r i e n d so v e rt o s e ey o u r " n e w " s u p e r
c o m p u t e r . B u tb e n i c e- m a k es u r et h e y ' r es i t t i n g
S a m p l eR a p i D o sF e a t u r e s :
• A L Ld i s ka c c e s sc o m m a n d se x e c u t ea t s u p e r f a s ts p e e d s !
• D e s i g n e dt o s u p p o r tm u l t i p l ed r i v e sI
• O nb o a r dD O SW e d g e/ S c r e e nD u m p/ M - LM o n i t o r !
• C e n t r o n i c sp a r a l l e l p r i n t e rs u p p o r ta v a i l a b l e !
• F u l l yC o m m o d o r ec o m p a t i b l e& y o u rc a r t r i d g e p o r ti s l e f tf r e e !
R a p i D o sP r o f e s s i o n a l F e a t u r e s :
• G i v e se v e nf a s t e rd i s ka c c e s st h a nR a p i D o s !
• 8 KR A Mt r a c kb u f f e r i n ga n dh a r d w a r eG C Rc o n v e r s i o n !
• P r o v i d e s4 0 t r a c ke x t e n s i o n ( 7 4 9 b l o c k sF R E E ) !
• A d d s 2 0N E Wd i s kc o m m a n d s( l o c kf i l e s ,r e n a m ed i s k ,e t c ) !
S P E C I A L :R A M B O a r d ™c a p a b i l i t i e sa r eb u i l ti n !R a p i D o sP r oc a nu s eM a v e r i c k ™p a r a m e t e r st o b a c k u ps o m eo f t h e
n e w e s t ,h o t t e s tt i t l e so n t h em a r k e tt o d a y !
a o w nD e i o r ey o ud i o \
F u n c t i o n
L r > a d2 0 2b l o c k s
S a v e 2 0 2b l o c k s
F o r m a l3 5t r a c k s
v i n e ma w a y i
N o r m a lD O S
1 2 8s e c o n d s
1 9 6 s e c o n d s
9 0s e c o n d s
P a r a l l e lU t i l i t i e sD i s k
R a p i D o s
1 5 s e c o n d s
9 8s e c o n d s
2 4 s e c o n d s
A v a i l a b l eF o r B o t h
R a p i D o sP r o
3 s e c o n d s
8 s e c o n d s
1 8s e c o n d s
V e n l o n *- O n l y$ 1 9 . 9 5
Y o u rS y s t e m
?
?
?
R a p i D o s- O n l y$ 4 9 . 9 5/ R a p i D o sP r o f e s s i o n a l- O n l y$ 1 1 9 . 9 5T h e s ep r i c e sa r ef o ra s t a n d a r dC - 6 4a n d1 5 4 1d r i v e .R a p i D o si s a v a i i a b ef o ro t h e rC o m m o d o r ec o n f i g u r a t i o n s ,b u tp r i c e sd o v a r y-
c o n t a c tu s f o rd e t a i l s .R a p i D o sr e q u i r e sa s o c k e t e dk e m a lR O MU 4i ny o u rC - 6 4 .R a p i D o si s e a s i l yu p g r a d e a b i et o t h eP r o f e s s i o n a lv e r s i o n .T h e R a p i D o sP r o f e s s i o n a ld r i v e c o n t r o l l e ri s Q 1 9 8 7m t sd a t aG b R ,t h ec r e a t o r s o f t h eb e s tp a r a l l e ls y s t e m si n E u r o p e l
• A H i l e rD e s i g n•
T H EM S DM A S SD U P L I C A T O R/ / Y o u ' r eL o o k i n gF o rS p e e d ,Y o u ' v eC o m eT o T h eR i g h tP l a c e
N oo n ew i l ld e n yt h a ta s t o c k C o o r v e t t ei s a f a s t c a r .B u ti n t h eh a n d so f a k n o w l e d g e a b l ee x p e r t ,i t c a ng e t
f a s t e r .M u c hf a s t e r .L a w r e n c eH i l e ri s a C o m m o d o r eh a r d w a r ee x p e r t .T h ef i r s tt i m eh e s a wa n M S DS D - 2 , h e
l i k e dw h a t h es a w .B u th e k n e wi t c o u l dg o f a s t e r .
M u c hf a s t e r .
T h eM S DM a s sD u p l i c a t o ri s f i r m w a r et h a tt u r n sa no r d i n a r yS D - 2i n t oa p r o f e s s i o n a l ,h i g hs p e e dd i s kc o p y i n g
s y s t e mo f u n e q u a l e d p e r f o r m a n c e .W h a tk i n do f p e r f o r m a n c e ?H o wa b o u t :
• 1 5s e c o n d b a c k u po f s t a n d a r df o r m a t t e dd i s k s !
• 1 8s e c o n df u l lG C RQ u i c k N i b b l ef o ra r c h i v i n g p r o t e c t e d d i s k s !
• 9 s e c o n dd i s k f o r m a t- e v e nf o rt w od i s k sa t t h es a m et i m e !
N o tb a d ,e h ?B u tt h a t ' sn o ta l l• o u rA u t o C o p yR O MO p t i o n a l l o w sy o ut o u s ey o u rS D - 2W I T H O U Th a v i n gi t
c o n n e c t e dt o y o u rC o m m o d o r ec o m p u t e ra t a l l !Y o u rM S Di s t r a n s o r m e di n t oa D E D I C A T E DH i g hs p e e d
d u p l i c a t i o nm a c h i n e- a m a c h i n e s of a s ta n dr e l i a b l et h a ti t i s t h es a m es y s t e mw eu s eh e r ea t S o f t w a r eS u p p o r tt o p r o d u c e o u ro w nc o m m e r c i a ls o f t w a r e !
I f Y o u ' r el u c k ye n o u g ht o o w na n M S DS D - 2 ,y o u ' r ej u s ta s i m p l e , s o l d e r l e s s , p l u g - i ns t e pa w a yf r o mo w n i n gt h ef i n e s t ,f a s t e s th i g hs p e e dd i s k d u p l i c a t o rw e ' v e e v e r s e e n .W h yw a s t ea n y m o r et i m e- o r d e rM a s sD u p i c a t o r
t o d a y !
T H EM S D M A S SD U P L I C A T O R / O N L Y$ 3 9 . 9 5S p e c i a lB o n u s - N o wI n c l u d e sO u rD y n a m i c A u t o C o p yR O MO p t i o nF R E E !
T U R B O6 4L i f eI n T h eF a s tL a n e
W h a td o e s a T u r b o 6 4c a r t r i d g eh a v ei nc o m m o nw i t ha L a m b o r g i n i ? T h e y ' r e b o t hf a s t .E x p e n s i v e .A n dd e f i n i t e l yn o tf o re v e r y o n e . F o rm o s tp e o p l e , t h eT u r b o 6 4c a r t r i d g ew o u l d b eo v e r k i l l .B u tf o rt h ef e ww h oc a nh a n d l ei t , i tc a n b ea s s a t i s f y i n ga s a f a s t r i d ei n a h o tc a r .
J u s t p l u gt h eT u r b o 6 4c a r t r i d g ei n ,a n dt h eo nb o a r d6 5 8 1 6p r o c e s s o r t a k e so v e r .T h i si s t h es a m eh i g hs p e e d8 / 1 6b i tc h i pt h a t ' sf o u n di n t h eA p p l eI I G S .Y o uc a na d j u s t t h e c l o c ks p e e df r o m1 0 0 k h z1 / 1 0o fn o r m a l )t oa b l i s t e r i n g4 . 5 m h z( 4 1 / 2t i m e sn o r m a ls p e e d ) !Y o u rg a m e s ,g r a p h i c s ,a n da p p l i c a
t i o n s ( i n c l u d i n gG E O S )w i l lf l o w .G e t T u r b o 6 4- a n dg e ti n t ot h e p a s s i n gl a n e !
T u r b o6 4 / $ 1 9 9 . 0 0
C - 6 4B u r s tR O M/ C - 1 2 8 B u r s tR O ME x c e e d T h eS p e e dL i m i t
I f y o uo w na C - 6 4w i t ha s o c k e t e dK e r n a lR O MU - 4y o u ' r ei n l u c k .W i t ho u rC - 6 4B u r s tR O Mc h i p
i n s t a l l e d ,y o u c a na c c e s st h eb u r s tm o d eo f a C o m m o d o r e1 5 7 1o r 1 5 8 1d i s kd r i v e .T h i sm e a n st h a t
y o u c a nl o a d1 0 0b l o c k si n j u s t6 s e c o n d s o na 1 5 7 1 ( e v e n d o u b l e s i d e df o r m a t ) ,a n d 4 s e c o n d s o n
a 1 5 8 1d r i v e !I n a d d i t i o n ,y o ug e ts u p e rf a s ta c c e s so f d i r e c t o r i e sa n ds e q u e n t i a la n dr e l a t i v ef i l e s .
T h e r e ' se v e n aD O Sw e d g eb u i l ti n !
T h e C - 1 2 8v e r s i o np r o v i d e st h es a m ef e a t u r e sa s f o u n do n t h eC - 6 4v e r s i o n ,a n da l l o w st h eC - 1 2 8t or u na tb u r s ts p e e dw h e ni nt h e6 4m o d e . G e tt h e v e r s i o nf o ry o u rm a c h i n e ,a n ds t a r ts p e e d i n gt o d a y !
C - 6 4B u r s tR O M / O n l y$ 3 9 . 9 5C - 1 2 8B u r s tR O M / O n l y$ 4 9 . 9 5P l e a s eN o t e :T h e K e m a lR O MU 4 C h i p l n Y o u r C o m p u t e rM u s t B e S o c k e t e dT oA c c e p tAB u r s tR O MC h i p
^ ^
S 0 F T 1 1 J H R E
I N T E R N A T I O N A L
P L E A S ER E A DB E F O R EO R D E R I N G :W ea c c e p tm o n e yo r d e r s ,c e r t i f i e dc h e c k s ,V I S A ,M / Ca n d ,D i s c o v e r .
P r e v i o u s S o f t w a r e S u p p o r tc u s t o m e r sm a yu s eC . O . D .a n dp e r s o n a l c h e c k s .O r d e r ss h i p p e dt oU . S A( 4 8s t a t e s ) ,
F . P . O . ,A . P . O . , o r p o s s e s s i o n s ,p l e a s ea d d$ 3 . 5 0 p e ro r d e rf o rS &H .U . S . s h i p p i n gi s b yU P Sg r o u n di nm o s t
c a s e s .F A S T2 n dD A YA I Ra v a i l a b l e :a d d$ 1 . 0 0 p e rp o u n da d d i t i o n a l ( U . S .4 8s t a t e so n l y ) .A l a s k ao rH a w a n( a l l
o r d e r s s h i p p e d2 n d d a ya i r ) ,p l e a s ea d d$ 7 . 5 0 p e r o r d e rf o rS &H . C . O . D .a v a i l a b l e t oU . S .c u s t o m e r so n l y ( 5 0
s t a t e s ) :a d d$ 2 . 7 5 a l o n gw i t hy o u rS & Hc h a r g e s p e ro r d e r .C a n a d i a nc u s t o m e r sm a yc a l c u l a t et h eS &H c h a r g e s
b yi n c l u d i n g$ 4 . 0 0( m i n i m u mc h a r g e )f o rt h ef i r s tt w op i e c e so fS O F T W A R Ea n d$ 1 . 0 0f o re a c ha d d i t i o n a lp i e c e
p e rs h i p m e n t .A l lm o n i e s m u s tb e s u b m i t t e di n U . S . f u n d s .C a n a d i a n s m u s tc a l lo r w r i t ef o rh a r d w a r es h i p p i n g
c h a r g e s . F o r e i g nc u s t o m e r sm u s tc a l lo rw r i t e f o rs h i p p i n g c h a r g e s . D e f e c t i v e i t e m s a r e r e p l a c e da t n oc h a r g ei f
s e n tp o s t p a i d .A l li ns t o c k o r d e r s a r ep r o c e s s e dw i t h i n2 4h o u r s . U . S .S O F T W A R Eo r d e r so v e r$ 1 0 0w i l lb es h i p p e d
2 n dD a yA i r a to u rr e g u l a r$ 3 . 5 0S &H c h a r g e( 4 8s t a t e s o n l y ) .W a s h i n g t o nr e s i d e n t sp l e a s ea d d7 . 6 %a d d i t i o n a l
f o rS a l e sT a x .A l lp r i c e s s u b j e c tt oc h a n g e .A l ls a l e s a r ef i n a lu n l e s sa u t h o r i z e db ym a n a g e m e n t
M a i ly o u r o r d e rt o :S o f t w a r e S u p p o r t .I n t .
2 7 0 0N EA n d r e s e nR o a dV a n c o u v e r .W A9 8 6 6 1
D E A L E R S- W EH A V ET H ES U P P O R TY O U ' R EL O O K I N GF O R !
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 24/84
T h eE d g eC o n n e c t i o n
E x p e r i e n c e sw i t ha R A Me x p a n s i o nu n i t
b y J o e lM .R u b i n
O nB o x i n gD a y( n o ta h o l i d a yh e r e ) ,h a v i n g l o o k e df a ra n d
w i d ef o r t h em y t h i c a l1 7 5 05 1 2 KR A ME x p a n s i o nU n i tf o r
t h eC o m m o d o r e1 2 8( w h i c ha p p e a r st o b e o n e t e r n a lb a c k -
o r d e r ) ,I g r a b b e da 1 7 0 0f o r $ 9 0( U S ) .C o n t r a r yt o t h e
p r o m i s e so n t h eb o x ,I r e c e i v e dn e i t h e r a" n e w "C P / Md i s k
n o rt h eR A M D O Ss o f t w a r e ;b u t ,s i n c e t h e p r i c ew a sr i g h ta n d
I a l r e a d yh a db o t hp i e c e so f s o f t w a r e ,I d i dn o ts c r e a mt o o
l o u d l y .
T h en e w e s tv e r s i o no f t h eU . S .C 1 2 8K e r n a l( $ F F 8 0c o n t a i n s
t h e i d e n t i f y i n gv a l u e$ 0 1a n dt h eD M AK e r n a lj u m pa t $ F F 5 0
j u m p st o t h ep a t c ha r e aa t $ C F 8 0 )f i x e st h r e eb u g sw i t hD M A
a c c e s s .F i r s to f a l l ,a s p r e v i o u s l yn o t e di n t h i sm a g a z i n e ,i t
t e m p o r a r i l ys h u t s o f fm a s k a b l ei n t e r r u p t s( s e i )w h i c hc o u l d
f o r c et h eC 1 2 8i n t oB A N K1 5 b e f o r et h ed e f e r r e dD M Aa c c e s si s
c o n s u m m a t e d .( I fb i t4 o f $ D F 0 1i s n o ts e t- w h i c hi s t h ew a y
B A S I Cd o e si t - a D M Ap r o c e s si s n o tc a r r i e do u tu n t i lt h en e x t
w r i t et o $ F F 0 0 .B u t ,t h eN M Ia n dI R Qr o u t i n e s w r i t et o $ F F 0 0 ,
s e t t i n gb a n k1 5 s o ,i f t h e yh a p p e na t t h ew r o n gt i m e , t h eD M At r a n s f e r w i l lt a k ep l a c ef r o mB A N K1 5 , e v e ni f y o uw a n t e d
B A N K0 . )
O f c o u r s e ,o n ec a n n o ts h u t o f fn o n - m a s k a b l ei n t e r r u p t s ,s o b e
c a r e f u lw i t ht h eR E S T O R Ek e y a n dp s e u d o - R S - 2 3 2a c t i v i t i e s .
S e c o n d l y ,i f y o ur e q u e s ta D M Aa c t i v i t yu s i n gb a n k1 r a m ,t h e
n e wK e r n a lr o u t i n et e m p o r a r i l y s w i t c h e st h e V I C / D M AR A M
B A N Kr e g i s t e r( b i t6 o f$ D 5 0 6 )t o b a n k1 . T h e r e f o r e ,w i t hn e w
K e r n a l1 2 8 s ,c o n t r a r yt o t h eR E Um a n u a l ,y o u d on o th a v et o
d o t h i sy o u r s e l fw h e ny o u d oa B A S I C F E T C H ,S T A S Ho r s w a p
i n v o l v i n gb a n k1 r a m- j u s tu s et h eb a s i c" b a n k1 " s t a t e
m e n t .
H o w e v e r ,t h en e wK e r n a lc a l ld o e sn o t t e m p o r a r i l ys w i t c ht o
S L O Wm o d e ,s o y o uw i l ls t i l lh a v et o s w i t c ht o 1 M H zy o u r
s e l f .( A c t u a l l y ,D M Ao p e r a t i o n ss e e mt o w o r kc o r r e c t l yi n
F A S T m o d e ,b u tt h e8 5 0 2g e t sc o n f u s e da t t h ee n do f t h ep r o
c e s sa n dt e n d st o d r o pi n t ot h em o n i t o r . )
F i n a l l y ,u n d e rt h e o l dr o u t i n e ,t h e r ew a ss o m et r o u b l ew i t h
t h eI / Oc h i p s( $ D 0 0 0 - $ D F F F )a l w a y sb e i n gi n c o n t e x t d u r i n g
a K e r n a lD M Ao p e r a t i o n ,c a u s i n ge r r o r s( a n dl i k e l y ,c r a s h e s )
w h e ny o ut r i e dt o u s eD M Ao p e r a t i o n so n R A Mu n d e rt h eI / O
p a g e .T h en e wK e r n a lr o u t i n ef i x e st h a t .
o l dd m a - c a l l( $ f f 5 0- $ f 7 a 5 ) :
. f f 7 a 5b d f O f 7 I d a $ f 7 f O , x;
. £ £ 7 a 8 2 9 f ea n d f $ f e ;
. f £ 7 a a a a t a x
. f f 7 a b 4 cf O 0 3 j m p $ O 3 f O;
n e wd m a - c a l l( $ f f 5 0- $ c f 8 0 ) :
g e t c o n f i g u r a t i o n v a l u e
m a s ko u t i / o b i t
m o v e c o n f i g u r a t i o n v a l u et o x - r e g i s t e r
j u m p t o c o m m o n r a m d m a
. f c f 8 0a d 0 6 d 5I d a$ d 5 0 6
. f c f 8 3 4 8 p h a
. f c f 8 45 d f O f 7 e o r$ f 7 f O , x
. f c f 8 72 9 3 f a n d f $ 3 f
. f c f 8 95 d f O f 7 e o r $ f 7 f O , x
. f c f 8 c8 d 0 6 d 5s t a $ d 5 0 6
. f c f 8 fb d f O f 7 I d a $ f 7 f O , x
. f c f 9 2a a t a x
. f c f 9 3 0 8 p h p
. f c f 9 47 8 s e i
. f c f 9 5 2 0f O 0 3 j s r $ 0 3 f 0
. f c f 9 82 8 p i p
. f c f 9 96 8 p l a
. f c f 9 a 8 d 0 6 d 5 s t a $ d 5 0 6
. f c f 9 d6 0 r t s
s a v e t h e v i e r a m b a n ko n t h e s t a c k
t u r ni t t o b a n k1 f o rb a n k1 o p e r a t i o n s
s a v et h e s t a t u s o nt h e s t a c k
s h u to f f i r q ' s( b u tn o t n m i ' s , a l a s )
d o d m a
c l i i fi r q ' s p r e v i o u s l yt u r n e do n
r e c o v e ro l dv i er a m b a n k
. 0 0 3 f 0
. 0 0 3 f 3
. 0 0 3 f 6
. 0 0 3 f 9
. 0 0 3 f c
a e 0 0 f f l d x $ f f O O
8 c 0 1 d f s t y $ d f 0 1
8 d 0 0 f fs t a $ f f O O
8 e 0 0 f f s t x $ f f O O
6 0 r t s
W o r dp r o c e s s o r sw h i c ha l l o wy o ut o l o a dt h ew h o l ed i c t i o
n a r yi n t o t h e R E Ua n d t h e n a u t o m a t i c a l l yc h e c ky o u r
s p e l l i n ga s y o ut y p e ,s u c ha s P a p e r c l i p H I / 1 2 8 ,a n dt h e
n e w e s tv e r s i o no f W o r d P r o1 2 8 ,w o n ' td o t h i sa u t o c h e c k i
i f y o uo n l yh a v e1 2 8 Ko f R E U ,b u tP a p e r c l i pc a nl o a da l l
t h eo v e r l a y sy o u w a n ti n t ot h eR E U .G E O S2 . 0a n dG E O S1 2 8w o n ' ta l l o wy o ut o u s ea 1 2 8 K R E Ua s a R A M d i s k ,b u ty o u
c a nc o n f i g u r ea 1 2 8 KR E Uf o rf a s tr e b o o t i n ga f t e re x i t i n gt o
B A S I C ,a n d / o rt o s p e e du p G E O Sa p p l i c a t i o n sb y a l l o w i n
t h e V L I Ro v e r l a y st o b e s t o r e di n t h e R E U .F a s tr e b o o t i n
d o e sn o tr e q u i r e t h ec o p y - p r o t e c t e dG E O Sk e yd i s k- o n l ya
d i s kw i t ht h e d e s k T o p .G e o p r o g r a m m e r ' ss u p e r d e b u g g
a s s o p h i s t i c a t e da d e b u g g e ra s i s f o u n d o nm a n ym a i n
f r a m e s ,w o r k sf i n eo n a 1 2 8 Kr e u .
O f c o u r s e ,a l l b u tt h ee a r l i e s tv e r s i o n so f C P / Ma l l o wt h eu s e
o f a 1 2 8 K R E Ua s a R A M d i s k ,d e v i c eM : .N o ta l l C P / Ms o f t
w a r es u p p o r t sd e v i c eM : , h o w e v e r ,y o uc a ng e ta r o u n dt h i s .
F i r s t ( d u e t o K e n F l i p p ow r i t i n gi n N o v e m b e r1 9 8 8
T r a n s a c t o r 2 2 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 25/84
F O G H O R N ,F O G ,P . O .B o x3 4 7 4 ,D a l yC i t y ,C a l i f o r n i a9 4 0 1 5
U . S . A . ,T e l e p h o n e( 4 1 5 )7 5 5 - 2 0 0 0 )y o uc a np o k et h ea d d r e s s
o f t h e R A Md i s kh a n d l e ri n t o t h ed p hp o i n t e r a d d r e s so f t h e
l o g i c a ld i s k d r i v ey o u w a n tt h eR A Md i s kt o b e .F o r e x a m p l e ,
i n t h e 8D e c e m b e r1 9 8 5B I O S ,d i s kd r i v eC : h a si t s t a b l ee n t r y
a t 0 F B D 5 ha n dt h eR A Md i s kh a n d l e ri s a t 0 F B 9 6 h .L i k et h e
6 5 0 2 ,t h eZ 8 0l i k e si t sw o r d sl o w - b y t ef i r s t .E r g o ,
c o n fp o k ef b d 5 = 9 6 f b
w o u l ds e t / c h a n g ed e v i c e C :f r o md e v i c e1 0 , d r i v e0 , t o t h e
R A Md i s k .O F B D l hi s d e v i c eA : ,0 F B D 3 hi s d e v i c eB : ,a n ds o
o n .I f y o uw a n t ,y o uc a np u tt h i sl i n e i na p r o f i l e . s u bf i l e ,s o i t
a u t o m a t i c a l l yh a p p e n s o nb o o t .O r , i f y o ua r e a f a n a t i c ,y o u
c a ne i t h e rf i n dt h ep a t c ha d d r e s si n y o u rv e r s i o no f C P M + . S Y S
a n d m o d i f yi t o r , i f y o uh a v et h e s o u r c ec o d ef o ry o u rB I O S ,
( t h e s o u r c ec o d ef o r o n e o f t h e D e c e m b e r1 9 8 5B l O S si s
i n c l u d e di n t h eC P / M d e v e l o p m e n tp a c k a g e )y o uc a nc h a n g ei t
a n dr e a s s e m b l ei t . W h e nI e x a m i n e dC P M + . S Y Sw i t hs i da n dt h e
C 1 2 8n a t i v e - m o d e m o n i t o r( w h i c h ,u n l i k es i d , h a s ah u n t
f u n c t i o n ) ,I d i d n o tf i n da n i m m e d i a t e l y o b v i o u sp a t c hs p o t ,s o
t h i sc h o r ei s l e f ta s a n e x e r c i s et o t h er e a d e r .
A c c o r d i n gt o M i k l o s G a r a m s z e g h y ' sC P / M +m e m o r ym a p
( T r a n s a c t o r9 : 2 o r T w i nC i t i e s1 2 8i s s u e2 1 ) t h e e n t r y f o r
d e v i c eA : i s a t O F B D l hi n a l lv e r s i o n so f C P / M + w h i c hs u p p o r t
t h eR A Me x p a n d e r- a l l D e c e m b e ra n dM a yv e r s i o n s .( A u g u s t
v e r s i o n su s e ad i f f e r e n ta d d r e s s b u t d o n ' t s u p p o r tt h e R E U . )
H o w e v e r ,i f y o uh a v ea v e r s i o no t h e rt h a n8 D e c e m b e r , y o u
m a yw i s ht o c h e c kt h ev a l u eo f t h eR E Uh a n d l e r .U s e :
c o n f d u m pf b e 9
a n ds u b s t i t u t et h ef i r s tt w ov a l u e sf o r9 6 F Ba b o v e .
O n eC 1 2 8C P / Mu s e r ,J . W a l t r i p ,m a d es e v e r a lm o d i f i c a t i o n st o
h i s b i o s .T h es o u r c ea n do b j e c tc o d e sa r e a v a i l a b l e ,a m o n g
o t h e rp l a c e s ,o n F O Gd i s k 1 8 6 .M r .W a l t r i ph a st h eR A M d i s ka s
d e v i c eD : , a n d h ea l s oe l i m i n a t e dv i r t u a ld r i v eE : a n d4 0 -
c o l u m ns u p p o r t .
A n R E Ua l s op r o v i d e sa w a yo f t r a n s f e r r i n gf i l e sb e t w e e nC o m
m o d o r e D O Sa n dC P / M .T o c o p ya f i l ef r o m C P / Mt o C o m m o d o r e
D O S ,p i pi t t o t h eR E Ua n dr e b o o tt o C o m m o d o r eD O S .O na 1 7 0 0 ,
t h ef i l eb e g i n sa t b a n k0 , $ 0 8 0 0 .T h ed i r e c t o r ye n t r y ,n e a rt h eb e g i n n i n g o ft h eR E U ,s h o w sh o wl o n gt h ef i l ei s , i n t h es t a n d a r d
C P / Md i r e c t o r y e n t r ym e t h o d .W i t ht h e1 7 0 0 ,e a c ha l l o c a t i o n u n i t
i s I K ,a n dt h es a m es h o u l db e t r u ew i t ht h e1 7 6 4 .H o w e v e r ,s i n c e
e a c ha l l o c a t i o n u n i th a sa o n e - b y t ee n t r yi n C P / M ,i f y o uh a v ea
1 7 5 0 ,e a c ha l l o c a t i o n u n i tm u s tb e 2 K( 5 1 2 K / 2 5 6e n t r i e s ) .
G o i n gt h e o t h e rw a y ,f i r s tb o o tC P / M .T o c r e a t ea d i r e c t o r y
e n t r yu p t o 6 4 K ,u s es a v et o s a v ea f i l et o t h eR E U .I f y o uh a v e
a b i g g e rf i l e ,y o uc a nc r e a t em o r et h a no n ef i l e ,e a c hi n m u l t i
p l e so f t h eR E Ua l l o c a t i o n u n i t( I Ko r 2 K ) .N o w ,r e b o o tt o
C o m m o d o r eD O S ,p u ty o u rf i l ei n 1 7 x xm e m o r y ,b e g i n n i n ga t
$ 0 8 0 0 ,b a n k0 , a n dr e b o o t C P / M . S i n c et h eR A M d i s ks u r v i v e sar e b o o t ,y o u rf i l ew i l ln o wb e i n d e v i c eM : .I f y o uh a v em o r e
t h a no n ef i l e ,y o uc a np i pt h e mt o g e t h e r- m a k i n gs u r e ,i f t h e y
a r en o tt e x tf i l e s ,t h a tp i pi s i n b i n a r ym o d e .
( F o rr e l a t i v e l ys h o r tf i l e s ,t h e r ei s a n e a s i e rm e t h o dn o ti n v o l v
i n gt h eR E U- f r o mC o m m o d o r eD O St o C P / M ,l o a dt h ef i l ei n
B A N K1 , b e g i n n i n ga t $ l C 0 0 , a n dt h e nb o o tC P / M +a n du s et h e
C P / M + p r o g r a ms a v et w i c e .T o g e ta f i l ei n t oC o m m o d o r eD O S ,
u s es i do r d d to n i t . M o v et h e a r e af r o m $ 0 1 0 0t o $ 0 3 F Ft o a
h i g h e ra r e ai n m e m o r y( s i n c e$ 0 1 0 0 - $ 0 3 F Fo f b a n k1 a r e
o r d i n a r i l yi n v i s i b l ei n 1 2 8m o d e ) .N o w ,h i ts t o p - r e s e ta n d e n d
u p i n t h em o n i t o r .Y o u rf i l ei s i n b a n k1 . )
I c a n ' t g e tm y 1 7 0 0t o w o r kw i t hm y o l d C a r d c om u l t i -
c a r t r i d g eb o a r d .I d o n ' tk n o wi f t h i si s j u s ta l a c ko f p h y s i c a l
c o n t a c t o rt h a tt h e I / Oe x p a n s i o nl i n e sa r eb u f f e r e di n s o m e
i n a p p r o p r i a t ew a y .I h a v et r o u b l eu s i n gt h eC a r d c ob o a r dw i t h
s o m e( b u tn o t a l l ) b a n k - s w i t c h e dc a r t r i d g e sw h i c hu s e t h e
$ D E 0 0o r $ D F 0 0I / O e x p a n s i o ns p a c e s .S i m o n ' s B A
w o r k e df i n ew i t ht h eC a r d c ob o a r d a n da 6 4 ,b u t n o tw i t ht h e
C a r d c ob o a r da n da 1 2 8 .( I tw o r k sf i n eo n t h e1 2 8 w i t h o u tt h e
C a r d c ob o a r d . )O nt h e o t h e rh a n d , b o t ht h e1 2 8 a n d6 4 m o d e s
o f C i n e m aw a r e ' sW a r p s p e e d( m yf a v o u r i t ec a r t r i d g e , r i
n o w ) w o r kw i t ht h eC a r d c ob o a r d ,a n dt h e6 4 m o d eu s e st h e
$ D E 0 0I / O s p a c ef o r b a n ks w i t c h i n g . U n f o r t u n a t e W a r p -
s p e e da l s ou s e st h e $ D F 0 0I / O s p a c e ,w h i c hi s t h e s a m e
a d d r e s sa s t h eR A Me x p a n s i o nc o n t r o l l e r c h i p ,s o t h e r ei s n o
h o p eo f u s i n gb o t hW a r p s p e e da n da 1 7 x xa t t h es a m et i m e-
e v e nw i t ha d i f f e r e n tm u l t i - c a r t r i d g eb o a r d .
[ S t o pt h ep r e s s e s !T h i sj u s ti n f r o mJ o e l : ]T h ep r o b l e mw i t h
m y 1 7 0 0R E Ua n dC a r d c oc a r t r i d g et u r n e d o u tt o b e e n t i r e l y
p h y s i c a l- t h e1 7 0 0w o r k sf i n ew i t hi t i f " y o ur e m o v et h ep l a s t i c
o u t e rs h e l lo f t h e1 7 0 0 .H o w e v e r ,b e c a u s eo f t h e$ D F 0 0c o n
f l i c t ,y o us t i l lc a n ' tu s et h e1 7 0 0w i t hW a r p s p e e d .
I n t e r r u p t sa n dt h eC 1 2 88 0 - c o l u m nc h i p
T h e r eh a sb e e ns o m eq u e s t i o na s t o j u s tw h e ny o uc a nu s ea n
i n t e r r u p tr o u t i n ew h i c hw r i t e st o t h eC 1 2 8V D Cc h i p .I ' v eb e e n
p l a y i n gw i t ht h i sa b i t ,a n dm y c o n c l u s i o ns e e m st o b e t h a ta s
l o n ga s t h em a i np r o g r a mi s n o ti n a n a c t u a l r o u t i n ew h i c hr e a d s
o r w r i t e st o t h eV D Cc h i p ,y o ua r e s a f e- p r o v i d e dt h a ty o us a v e
a n dr e s t o r er e g i s t e r s$ 1 2a n d$ 1 3 ,t h eR A Ma d d r e s sr e g i s t e r s .
F o rw e l l - b e h a v e dp r o g r a m s( p r o g r a m sw h i c hs t a yw i t ht h en o rm a lt e x ts c r e e n sa n do n l y u s et h es c r e e ne d i t o rR O Mr o u t i n e st o
r e a d o rw r i t et o t h eV D C )y o us h o u l db e s a f e a sl o n ga s t h eh i g h
b y t e o ft h ep r o g r a mc o u n t e ri s n o t$ C D .I f y o ua r eu s i n ga p r o
g r a mw h i c hd o e sw e i r dt h i n g st o t h e V D Cc h i pu s i n gi t s o w n
R A M - b a s e dr o u t i n e s ,s u c ha s G E O S 1 2 8o rb a s i c8 , a l lb e t s a r eo f f .
t s x
I d a $ 1 0 7 , x
c m p# $ c d
b n e o k
j m p $ f a 6 5; o l d i r q
O K , y o u rc o d eh e r e
T r a n s a c t o r 2 3 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 26/84
I f y o u w a n tt o b e a b i t s a f e r ,y o uc a nm a k es u r et h a tt h eh i g h
b y t eo f t h eP Ci s n o tb e t w e e n$ C 4 0 0a n d$ C F F F( T h el a s tp a g e
a n da h a l fo f $ C 0 0 0i s a p a t c ha r e as o t h e r em i g h tb e s o m e
t h i n gh a v i n gt o d o w i t ht h ev d ci n t h ef u t u r e ) .S i n c et h ec o m
p u t e rs p e n d sm u c ho f i t st i m ei n a w a i t i n g l o o pa r o u n d$ C 2 0 0 ,
t h i s i s m u c hb e t t e rt h a n$ C 0 0 0 - $ C F F F .I h a v ei n c l u d e da n
i n t e r r u p t - d r i v e nc l o c kr o u t i n ew h i c hw i l lr u ni n e i t h e r f o r t yo r
e i g h t yc o l u m nt e x tm o d e .
H e y ,w a n n ab u ya c h e a po r p h a n ?
I n o t i c et h a ta t l e a s to n em a i lo r d e rh o u s e( A m e r i c a n D e s i g n
C o m p o n e n t s ,P . O .B o x2 2 0 , F a i r v i e w ,N J0 7 0 2 2 ,t e l e p h o n e ( 2 0 1 )
9 4 1 - 5 0 0 0o r ( 8 0 0 )5 2 4 - 0 8 0 9 )i s g e t t i n gr i do f P l u s / 4 s f o r$ 4 9 . 9 5 .
T h e s ea r er e t u r n e dm a c h i n e s ,b u t t h e yh a v e b e e nt e s t e d .W h a tc a n
y o u d ow i t ha P l u s / 4 ( n o a n a t o m i c a ls u g g e s t i o n s , p l e a s e ) ?
T h e r ei s , o r w a s , aP l u s / 4u s e r s 'g r o u pa t P . O .B o x1 0 0 1 ,M o n
t e r e y ,C a l i f o r n i a .M y l o c a lT o y s - R - U s ,j u s td o w nt h e r o a d
f r o m W y a t tE a r p ' s t o m b s t o n e ,c a r r i e sa w o r dp r o c e s s o ra n da n
a c c o u n t i n gp a c k a g ef o r t h eP l u s / 4 .T h e r ea r ea d sf o rv a r i o u s
p r o g r a m s ,i n c l u d i n ga n a s s e m b l e r ,i n t h ep a g e so f C o m m o d o r e
C o m p u t i n gI n t e r n a t i o n a l .T h ea s s e m b l e ri s s o l db y a B r i t i s h
s o f t w a r e h o u s e , S u p e r s o f t ,w h o s ep r o d u c t sa r e s o l di n t h e
U . S .b y S k y l e sE l e c t r i cW o r k s ,s o o n e m i g h t c h e c kw i t h
t h e m .T h eP l u s / 4c a nr u nm a n yB A S I C7 . 0g r a p h i c sp r o g r a m s
w r i t t e n f o r t h e 1 2 8 .
W h i l et h eP l u s / 4o n l yh a s4 0 c o l u m n s ,i t d o e sh a v ea 6 5 5 1
U A R T ,s o i t m i g h t b eu s e df o r t r a n s f e r r i n gf i l e st o / f r o mC o m
m o d o r eD O St o o t h e rm a c h i n e sa t a h i g hb a u dr a t e .{ P a p e r c l i p
I I I / 1 2 8 ' st e l e c o m m u n i c a t i o n sm o d u l ea n dG e o L a s e rb o t hh a v e
9 6 0 0b a u ds e t t i n g s .S o , i f y o ud o s o m eC I Ab i t t w i d d l i n g ,
r a t h e rt h a n u s i n gt h eK e r n a lr o u t i n e s ,i t s h o u l db e p o s s i b l et o
u s et h eC 1 2 8 , a n dm a y b ee v e nt h eC 6 4 ,a t 9 6 0 0b a u d .I s u s
p e c tt h a te v e nw i t ht h ef a n c i e s tb i t t w i d d l i n g ,y o u ' ds t i l lh a v e
t o s h u t o f f t h eC 1 2 8 / C 6 44 0 - c o l u m ns c r e e nt o a c h i e v es u c h
s p e e d s ,a n dy o um i g h tn e e da g o o d l yn u m b e ro f n u l l si f y o u
w a n tt o s c r o l lt h eC 1 2 88 0 - c o l u m ns c r e e n . )
M o v i n gf o r w a r dw i t ht h e8 - b i tl i n e
F i n a l l y ,a r e p l yt o I n f om a g a z i n e ' sr u m o u rc o l u m n .A c c o r d i n gt o
t h eJ a n u a r y / F e b r u a r yi s s u e ,C o m m o d o r ew a st h i n k i n go f p u t t i n g
o u ta s u p e r - 6 4o r s u p e r - 1 2 8 ,a n d o n eo f t h eq u e s t i o n st h e yw e r e
a s k i n g w a s ," H o wc o m p a t i b l em u s ts u c h am a c h i n e b e ? "I n f o
s a i d ," 1 0 0 % " .B u tt h i sw o u l dp r e c l u d es u c hg o o d i e sa s a 6 5 8 1 6 ,
a b u i l t - i nU A R Ta t $ D E 0 0 ,a b u i l t - i n1 7 5 0 ,a b u i l t - i n3 . 5 "d i s k
d r i v e ,e t a l i a . It h i n kt h a ti f C o m m o d o r e ' s8 - b i t l i n ei s t o s u r v i v e ,
i t m u s t ,l i k et h eA p p l e/ / G S ,m o v ef o r w a r dw i t ht h e t i m e s .I f i t
d o e s ,i t w i l lc o n t i n u et o g e tt h i r dp a r t ys u p p o r t .I f i t d o e s n ' t ,i t
w i l l ,l i k et h e A t a r i8 - b i tl i n e ,b e c o m ej u s ta c a r t r i d g eg a m e
m a c h i n e .
B y t h e w a y ,i f C o m m o d o r ei s i n t e r e s t e di n c o m p e t i n gw i t h
c a r t r i d g eg a m em a c h i n e s , s u c ha s t h eN i n t e n d o ,i t c o u l db r i n g
o u tt h eM a xM a c h i n e .( T h i sw a sa g a m em a c h i n ew i t hw h i c ht h e C 6 4i s u p w a r dc o m p a t i b l e .I t w a sn e v e rb r o u g h to u t i n
N o r t hA m e r i c a . ) T h i s c o u l de a s i l yb e s o l df o r$ 5 0( u s )l i s ta n d
w o u l dh a v ea l l t h e s o u n da n dg r a p h i c sf a c i l i t i e so f t h eC 6 4 .
A n d ,i t w o u l dg i v eu s C o m m o d o r e8 - b i th a c k e r sa n e wa l m o s
p i r a t e - p r o o fi n s t a l l e db a s ef o rw h i c ht o p r o g r a mg a m e s .
C l o c k . s r c :C I 2 8i n t e r r u p t - d r i v e nc l o c kr o u t i n ef o r4 0 o r 8 0
c o l u m nt e x tm o d e .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* c l o c kp r o g r a mf o rc ' 1 2 8 *
* w o r k si n 4 0o r 8 0 - c o l u m n*
* t e x tm o d e . *
* ( c ) 1 9 8 9j o e lm . r u b i n *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
c o l 4 0 J 0= $ d 7
w r i t d a t = $ c d c a
w r i t r e g =w r i t d a t + 2
r d d a t = $ c d d 8
r d r e g = r d d a t + 2
o l d i r q= $ f a 6 5
i r q v =$ 0 3 1 4
t i m e = $ d c O 8
o r g$ 1 3 0 0
s e i
I d aJ K n e w i r q
s t a i r q v
I d af > n e w i r q
s t a i r q v + 1
d i
r t s
c u r r e n t s c r e e ni s 4 0 - c o l u m n s i f0 ,
8 0 - c o l u m n s i f1 2 8
. a = > w r i t e. a t o v d c d a t a r e g i s t e r( 3 1 )
. a , . x = > w r i t e. a t o v d c r e g i s t e rf . x
r e a d v d c d a t a( 3 1 )r e g i s t e ri n . a
. x = > r e a d v d c r e g i s t e r f . xi n . a
s t a n d a r d c ' 1 2 8i r q r o u t i n e
i r qv e c t o r
c i a c l o c kf 1
* p u t2 b e dd i g i t s( . a ) o n
* c u r r e n t s c r e e na t c u r r e n t
* p o s i t i o n
p r i n t i t t a y
l s r
l s r
l s r
l s r
p r i n t 2
o r af " 0 "
j s r w r i t i t
t y a
a n d# $ 0 £
o r af " 0 "
j m pw r i t i t
d o u b l eq u o t e sh e r ei n d i c a t e s m o s t
s i g n i f i c a n t b i ts e t , s o r e v e r s e d
p u ta s c r e e n v a l u e a t c u r r e n t *
p o s i t i o no n c u r r e n t s c r e e n .*
*
d a t u mi n . a *
f o r 4 0 - c o l u m ns c r e e n , *
s c r e e np o s i t i o ni n . x *
w r i t i tp h a
I d a c o l 4 08 0
b p l : 4 0
p l a
j m pw r i t d a t
T r a n s a c t o r 2 4 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 27/84
: 4 0
n e w i r q
p l a
s t a
i n x
r t s
I d a
b p l
$ 4 0 0 , x
c o l 4 08 0
d o 4 0 "
* f o r 8 0 c o l u m n so n l y ,m a k e *
* s u r e t h a t w e ' r e n o td o i n g *
* a n y t h i n gw i t ht h ev d c r i g h t*
* n o w - $ c 4 0 0t o $ c f f fn o g o o d .** *
* c o u l d p r o b a b l yg e ta w a y w i t h*
* $ c d 0 0t o $ c d f fi n b a n k1 5 *
* b u t t h e r ei s a r e f e r e n c e t o*
* $ d 6 0 0i n $ c 5 0 0p a g e . *
* *
* a l s o ,t h e r e i sa p a t c ha r e a *
* a t t h e e n do f $ c e 0 0p a g e *
* t o $ c f f fw h i c h c o u l d *
* c o n t a i n v d c r e f e r e n c e si n *
* t h e f u t u r e . *
c o l 8 0t s x
I d a
c m p
b i t
c m p
b g e
j m p
$ 1 0 7 , x
# $ c 4
o k
# $ d 0
o k
o l d i r q
f o r 8 0 c o l u m n so n l y ,
p u t t h e v a l u e s o f v d c
r e g i s t e r$ 1 2a n d $ 1 3 o n
t h e s t a c k .
s i n c e w ea r e g o i n g t o w r i t e
t o t h e b e g i n n i n g o f t h e
8 0 c o l u m ns c r e e n ,w e a r eg o i n gt o s e t t h e s e r e g i s t e r s
t o 0 .
k l d x
j s r
p h a
I d a
t a y
j s r
i n x
j s r
p h a
t y a
j s r
c o m m o n:
# $ 1 2
r d r e g
# 0
w r i t r e g
r d r e g
w r i t r e g
r o u t i n e sf o r *
4 0 c o l u m n s a n d8 0 c o l u m n s*
d o 4 0 l d x# 0
I d at i m e + 3
p h a
a n d# $ l f
j s r p r i n t i t
I d a# " : "
j s r w r i t i t
I d a t i m e + 2
j s r p r i n t i t
I d a § " : "
j s r w r i t i t
I d at i m e + 1
h o u r s+ a m / p m
h o u r s
m i n u t e s
; s e c o n d s
j s r
I d a
j s r
I d a
j s r
I d a
j s r
p l a
b m i
I d a
h e x
m I d aj s r
I d a
j s r
I d a
b p l
p r i n t i t
# " . "
w r i t i t
t i m e
p r i n t 2
r "
w r i t i t
p m
f ' a ' V ? "
2 c
# " p " & " ? "w r i t i t
# " m ' V ? "
w r i t i t
c o l 4 08 0
f i n 4 0 "
; t e n t h s o f s e c o n d s
; g e tb a c ka m / p m f l a g
; s k i p n e x tt w o b y t e s
* 8 0 c o l u m n so n l y — f i l li n *
* v d c a t t r i b u t e r a m w i t h t h e*
* c u r r e n tc o l o r . *
* —
I d a# 8
l d x # $ 1 2
j s r w r i t r e g
i n x
l d a # 0
j s r w r i t r e g
I d a$ £ 1
a n d # $ f
l d y# 1 3
: 1 j s r w r i t d a t
d e y
b n e : 1
8 0 c o l u m n so n l y — t a k eo l d *
v a l u e s o f v d c r e g i s t e r s*
$ 1 3a n d$ 1 2o f f t h es t a c k . *
l d x
p l a
j s r
d a s
p l a
j s r
e n d i tj m p
# $ 1 3
w r i t r e g
w r i t r e g
o l d i r q
* 4 0 c o l u m n so n l y — f i l li n
* c o l o rr a mw i t h c u r r e n t
* c u r s o rc o l o r ,i f w e a r e
* i n l o w e r / u p p e rm o d e ,t u r n
* t h e l o w e r c a s e r e v e r s e d
* " a m "o r " p m "t o " a m "o r " p m " ,
: 1
f i n 4 0l d x1 1 2
I d a $ £ 1
s t a $ d 8 0 0 , :
d e x
b p l : 1
I d a $ a 2 c
c m p # 2 2
b n e e n d i t
I d a $ 4 0 b
o r a# $ 4 0
s t a $ 4 0 b
I d a# " m "
s t a $ 4 0 c
b n ee n d i t
l o w e r / u p p e r m o d e
□
T r a n s a c t o r 2 5 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 28/84
T h eC 6 4P o w e rC S h e l l
W i t hn o t e so n m o d i f y i n gt h es h e l lf o rR E Uu s e r s
b y A d r i a n P e p p e r
I n ap r e v i o u sa r t i c l e( " O n T h eC S i d e " ,T r a n s a c t o r ,V o l u m e9 ,
I s s u e1 ) , Ih i n t e da t t h ea b i l i t y t ou s eP o w e rC w i t ha R A Md i s k
i n a 1 7 6 4R e u ,b u tg a v en o d e t a i l s .U s i n gt h eR A Md i s ks o f t
w a r ep r o v i d e dw i t ht h e1 7 6 4r e q u i r e sa 2 5 6b y t ep a g eo f r e g u
l a r C 6 4R A Mt o b e s e ta s i d ef o rt h ei n t e r f a c e t ot h eR A Md i s k
s o f t w a r e . I n t h es t a n d a r dP o w e rC e n v i r o n m e n t ,i t i s n o tp o s s i
b l et o d o t h i s .
W h a tf o l l o w sw i l lg i v es o m eb a c k g r o u n dt o t h ee x p l a n a t i o no f
m a k i n gt h eR A Md i s k s o f t w a r ew o r kw i t hP o w e rC . I t d i g r e s s
e s a b i t ,b u tt h i ss h o u l dh e l pl e a dt o b e t t e ru n d e r s t a n d i n g o ft h e
P o w e rC e n v i r o n m e n ti n g e n e r a l .E v e nr e a d e r sw h od o n ' tu s e
P o w e rC m a yf i n dt h i si n t e r e s t i n ga n dh e l p f u l ,e s p e c i a l l yi f
t h e ya r ec o n s i d e r i n gp u r c h a s i n gi t .
O v e r v i e w
T h eC o m m o d o r e6 4 P o w e rC s h e l li s a m a c h i n el a n g u a g e p r o
g r a mt h a tl o a d sa t $ 8 0 1 ,a n do c c u p i e st h em e m o r ya l m o s tt o
$ 1 8 0 0 .I t i s d e s i g n e dt o w o r ke a s i l yw i t ho n eo r t w od r i v e sa t a
t i m e .I t r e c o g n i z e s aw o r kd r i v e ,w h e r eu s e rf i l e s( s o u r c e ,o b
j e c ta n de x e c u t a b l e )s h o u l db e ,a n da s y s t e md r i v e ,w h e r ef i l e s
s u c ha s t h e d i f f e r e n tp a s s e so f t h e c o m p i l e r ,a n do b j e c tl i
b r a r i e sa r e e x p e c t e dt o b e . T h e s em a yb e t w od r i v e si n t h e
s a m e( d u a ld r i v e )d e v i c e ,o r d r i v e si n s e p a r a t ed e v i c e s .T h e
d e f a u l tc o n f i g u r a t i o nw h e nt h es h e l li s r u ni s s u i t a b l ef o ra s i n
g l e d r i v es y s t e m ,a n dh a sb o t ha s s i g n e dt o t h es a m ed r i v e( d e
v i c e8 , d r i v e0 ) .T h i sc o n f i g u r a t i o ni s u s a b l e ,b u tn e c e s s i t a t e sa
l o to f d i s ks w a p p i n gw h e nc o m p i l i n ga n dl i n k i n gp r o g r a m s .
O n c er u n n i n g ,t h e s h e l lr e a d sl i n e so f u s e r i n p u tf r o mt h e
s c r e e n .I t p a r s e st h el i n e si n t ow o r d s( s e r i e so f n o n - b l a n kc h a r
a c t e r s ) ,g a t h e r i n gt h e ma s t h e' a r g u m e n t s 't o t h ec o m m a n dt o
b e e x e c u t e d .G e n e r a l l y ,e a c hw o r db e c o m e sa s e p a r a t ea r g u
m e n t ;t h ef o l l o w i n gc h a r a c t e r sc a u s ec e r t a i ne x c e p t i o n s :
1 1 w i l lt u r na s e r i e so f c h a r a c t e r s ,i n c l u d i n gb l a n k s ,i n t oa s i n
g l ea r g u m e n t ,u n t i la c l o s i n gd o u b l e - q u o t ei s f o u n d .
< w i l lu s et h e w o r df o l l o w i n gi t a s t h en a m eo f as e q u e n t i a l
f i l e . I tw i l ll o o kf o r t h ef i l eo n t h ew o r kd i s k ,a n do p e ni t a s
s t a n d a r di n p u tf o r t h ec o m m a n de x e c u t e di n r e s p o n s et o t h e
c o m m a n dl i n e .N e i t h e rt h e ' < ' n o rt h ef i l en a m ea r e a c t u a l l y
p a s s e da s a r g u m e n t st o t h ec o m m a n d .
> w i l lu s et h ew o r df o l l o w i n gi t a s t h en a m eo f as e q u e n t i
f i l e . I tw i l la t t e m p tt o c r e a t e t h ef i l eo n t h ew o r kd i s k , t o r
c e i v es t a n d a r do u t p u tf o r t h ec o m m a n de x e c u t e d .A s p e c i a
c a s ei s ' » ' , w h i c hw i l lc a u s es t a n d a r d o u t p u tt o b e d i r e c t e dt o
t h ep r i n t e r .
T h ef i r s ta r g u m e n tf o u n di s t a k e na s t h en a m eo f a c o m m a n
F i r s t ,t h e s h e l lc h e c k st o s e ei f t h i si s o n eo f i t s o w nb u i l t - i
c o m m a n d s :
b y e :e x i t t ob a s i c .
1 : l i s td i r e c t o r yo f w o r kd i s k .
I s : l i s td i r e c t o r yo f s y s t e md i s k .
r m :r e m o v e( s c r a t c h )a f i l e .
m v :m o v e( r e n a m e )a f i l e .
p r :c o p ya f i l eo n t h ew o r kd i s kt o s t a n d a r do u t p u t .
d i s k :s e n da r b i t r a r yd i s kc o m m a n dt o w o r kd e v i c e .
l o a d :l o a d ,b u td o n ' tr u n ,a n a p p l i c a t i o np r o g r a m .
w o r k :s e to r d i s p l a y t h ew o r kd e v i c ea n dd i s kn u m b e r s .
s y s :s e to r d i s p l a yt h es y s t e md e v i c ea n dd i s kn u m b e r s .
M o s to f t h e s ec o m m a n d sw i l lu s eo t h e ra r g u m e n t st h a tm a yb e
p r e s e n to n t h ec o m m a n dl i n e .F o ri n s t a n c e , t h eI a n dI s c o m
m a n d sw i l lu s ea n o p t i o n a lf i l e n a m ep a t t e r n .D e t a i l s a r eg i v e n
i n t h eP o w e rC m a n u a l .T h eo u t p u tr e d i r e c t i o nw i l lw o r kw h e n
a p p r o p r i a t e ,t o s e n do u t p u t( e . g .a d i r e c t o r yl i s t i n g )t o d i s k o
p r i n t e r .
I f t h ef i r s ta r g u m e n ti s n o to n eo f t h e s eb u i l t - i n s ,i t i s a s s u m e
t o b e t h e n a m eo f a u s e rp r o g r a m .F i r s tt h e w o r kd i s ki s
s e a r c h e df o r a p r o g r a mf i l en a m e da s t h ef i r s ta r g u m e n ts u f
f i x e dw i t h" . s h " .I f i t i s n o tf o u n d o nt h ew o r kd i s k ,t h e s y s
t e md i s ki s s e a r c h e d .I f f o u n do n o n eo f t h et w od i s k s ,t h ep r o
g r a mi s l o a d e da t a d d r e s s$ 1 8 0 0 , a n dc a l l e db y t h e s h e l l aa
s u b r o u t i n e .
T r a n s a c t o r 2 6 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 29/84
T h i sm a k e sP o w e rC a v e r yt a i l o r a b l ee n v i r o n m e n t .I f y o u
c a ne x p r e s sa c e r t a i nc o m m a n da s a C p r o g r a m ,y o uc a ne a s
i l y a d di t t o y o u ra v a i l a b l e ' v o c a b u l a r y ' .T h e n u m b e ro f a r
g u m e n t sf o u n do n t h ec o m m a n dl i n ei s p a s s e dt o t h em a i n ( )
r o u t i n eo f t h eC p r o g r a ma s i t s f i r s ta r g u m e n t ,w i t ha p o i n t e r
t o a n a r r a yo f c h a r a c t e rp o i n t e r st o e a c h o ft h ec o m m a n dl i n e
a r g u m e n t sb e i n gp a s s e da s t h es e c o n d( t h e t r a d i t i o n a la r g c
a n da r g v ) .A l lp r o g r a m sr e a df r o ms t a n d a r d i n p u ta n dw r i t e
t o s t a n d a r do u t p u tb y d e f a u l t .S i n c et h e s ec a nb e ' r e d i r e c t e d '
o n t h e c o m m a n dl i n e ,m a n i p u l a t i n gf i l e si s e s p e c i a l l ye a s y .
S e v e r a ln o t - s os i m p l eC a p p l i c a t i o n sa r e s u p p l i e di n s o u r c e
f o r mo n t h eP o w e rC d i s k ,i n c l u d i n g at e x tf o r m a t t e r ,a n o b
j e c tf i l el i b r a r ye d i t o r ,a ' f i l t e r 'f o r a d d i n gp a g eh e a d i n g st o
s o u r c ef i l e si n p r e p a r a t i o nf o r p r i n t i n g ,a n d a p r o g r a mt o
s e a r c ha f i l ef o ra t e x t p a t t e r n .
P o w e rC h a s a n o t h e rf e a t u r et o s p e e dt h i n g su p .S i n c et h es h e l l
b u i l t - i nc o m m a n d sd o n o t u s et h eR A Mf r o m $ 1 8 0 0o n ,a u s e r
p r o g r a mt h a th a s b e e nl o a d e dt h e r er e m a i n s u n t o u c h e db y
t h e m .T h e r e f o r ea c o m m a n dp r o g r a mw i l ln o te v e nb e r e l o a d
e d f r o md i s ki f i t s n a m ei s t h es a m ea s t h el a s tu s e ra p p l i c a t i o n
r u n( o rl o a d e du s i n gt h el o a dc o m m a n d . )T h i ss p e e d su p t h e
r e r u n n i n go f a p r o g r a m ,a n du s i n gt h el o a dc o m m a n da l l o w s
s t a n d a r d i n p u t d a t at o b e o na d i f f e r e n td i s kf r o mt h ep r o g r a m
e v e no n a o n e - d r i v es e t u p .
B u tt h i sc a nc a u s es o m ep e c u l i a r b e h a v i o u r .I f a p r o g r a mi s
r u na s e c o n dt i m ew i t h o u tr e l o a d i n g ,g l o b a la n ds t a t i cd a t aa r e
' r e m e m b e r e d 'f r o mt h ep r e v i o u sr u n .T h u s ,C p r o g r a m so r i g i
n a t i n go n o t h e ri m p l e m e n t a t i o n st h a ta r e ' p o r t e d 't o P o w e rC
o f t e nm u s tb e m o d i f i e dt o e x p l i c i t l yi n i t i a l i z el a r g e p o r t i o n so f
t h e i rg l o b a l d a t aa t r u n - t i m e .S t a t i cd a t at h a ti s l o c a lt o a f u n c
t i o nm u s to f t e nb e m o v e do u t s i d et h ef u n c t i o n s oi t c a nb e i n i
t i a l i z e d .
A s a n a s i d e ,n o t et h a tt h e e a s i e s tw a yt o g e t a r o u n dt h i s
p r o b l e m( u n t i lt h e o f f e n d i n gp r o g r a mi s m o d i f i e df o r t h e
P o w e rC e n v i r o n m e n t )i s p r o b a b l yb y w r i t i n gt h e s h o r t e s tC
p r o g r a m :
m a i n ( )
o r ,i f y o up r e f e r ,t h e s h o r t e s tm a c h i n el a n g u a g ep r o g r a m ,u s i n g
a n ya s s e m b l e rp a c k a g ey o ul i k e ,a s l o n ga s t h el o a d a d d r e s s
e n d su p a s $ 1 8 0 0 :
r t s
N a m et h er e s u l t a n tp r o g r a m" u n l o a d " ,o r s o m e t h i n gs i m i l a r ,a n d
e x e c u t ei t w h e ny o u w a n tt o f o r c ea r e l o a do f a n o t h e rp r o g r a m .
M e m o r yu s a g eb y C p r o g r a m sa n dt h es h e l l
$ 1 7 f a : n u m b e ro f d e v i c e c o n t a i n i n gs y s t e md i s k .
$ 1 7 f b : n u m b e ro f d r i v ec o n t a i n i n gs y s t e md i s k .
$ 1 7 f c : n u m b e ro f d e v i c e c o n t a i n i n gw o r kd i s k .
$ 1 7 f d : n u m b e ro f d r i v ec o n t a i n i n gw o r kd i s k .
$ 1 7 f e :f l a g ;0 m e a n ss t a n d a r di n p u ti s u s i n gt h e d e f a u l
K e r n a lc h r i n d e v i c e ;1 m e a n ss t a n d a r d i n p u ti s
K e r n a ll o g i c a lf i l e# 1 .
$ 1 7 f f : f l a g ;0 m e a n ss t a n d a r d o u t p u ti s u s i n gt h e d e f a u l
K e r n a lc h r o u td e v i c e ;1 m e a n ss t a n d a r d o u t p u i s
K e r n a ll o g i c a lf i l e# 2 .
I t c a nu s e f u lt o i n s p e c t t h e s el o c a t i o n sf r o mC p r o g r a m s .F o r
i n s t a n c e ,y o um a yw a n tt o s u p p r e s sp r o m p t si f s t a n d a r di n p u t
h a sb e e nr e d i r e c t e d .O fc o u r s e ,t h i sw i l lh a v et h ed i s a d v a n t a
o f m a k i n gt h eC s o u r c eC o m m o d o r e6 4 d e p e n d e n t .
I n a d d i t i o n ,a f e wr u n - t i m er o u t i n e s f r e q u e n t l yu s e db y C p r o
g r a m sa c t u a l l yr e s i d ei n t h e s h e l l .T h e r ei s a j u m pt a b l e t o
t h e s en e a rt h eb e g i n n i n go f t h es h e l l ,e a c he n t r y c o n s i s t i n go f a
j m pi n s t r u c t i o nt o o n eo f t h ef o l l o w i n gr o u t i n e s :
$ 8 0 e :
$ 8 1 1 :
$ 8 1 4 :
$ 8 1 7 :
$ 8l a :
$ 8 1 d :
$ 8 2 0 :
$ 8 2 3 :
i n i t i a l i z es h e l l
C $ 1 1 0 2 c o d e
c $ f u n c t _ i n i tc o d e
p r i n t fc o d e
f p r i n t f c o d e
s p r i n t fc o d e
c $ g e t cc o d e( p a r to f g e t c h a r ( ) )
C $ 2 1 0 2c o d e
T h ec $ f u n c t _ i n i t r o u t i n ed o e s q u i c ks e t - u p f o ra C - c a l l a b l em a
c h i n e - l a n g u a g er o u t i n e .I t i s u s e db y t h ep r i n t fc o d e ,a c t u a l l y .
T h eC $ 1 1 0 2r o u t i n es i m p l yp u s h e st h ea c c u m u l a t o r o n t ot h eC
r u n - t i m es t a c k( t h ep o i n t e rt o w h i c hi s l o c a t e di n $ l a , $ l bo f
z e r op a g e ) .T h eC $ 2 1 0 2r o u t i n ej u s tc a l l sC $ 1 1 0 2t o p u s ht h e
v a l u ez e r oo n t ot h eC r u n - t i m es t a c k .
F i n d i n ga f r e ep a g ef o rt h eR A Md i s ki n t e r f a c e
T h eP o w e rC s h e l lo c c u p i e so r u s e sn e a r l ya l l t h em e m o r yb e
t w e e n$ 8 0 1a n d$ 1 8 0 0 .C a p p l i c a t i o np r o g r a m sa r el o a d e da t
$ 1 8 0 0 .T h e ys e tu p t h e i rr u n - t i m es t a c kt o g r o wu p w a r d s f r o
t h e e n do f t h e l o a d e dc o d e .T h i ss t a c ki s u s e df o r a u t o m a t i c
v a r i a b l e sa n ds o m ep a r a m e t e rp a s s i n g ,a n di s p o i n t e dt o b y
( $ l a , $ l b )i n t h ez e r o - p a g e .M e m o r yd y n a m i c a l l ya l l o c a t e db y
t h eC l i b r a r yr o u t i n e sm a l l o c ,c a l l o ca n dr e a l l o ci s t a k e nf r o m
t h et o p - o f - m e m o r yd o w n .A p p l i c a t i o n sr u n n i n gu n d e rt h eP o w e r
C s h e l lp o t e n t i a l l yu s ea l l m e m o r y . W h i l et h e t o p - o f - m e m o
c a n b es e t w i t h i na s i n g l eC p r o g r a mb y t h eP o w e rC r o u t i n e
h i g h m e m ,i t c a n n o tb e s e tf o r t h ee n t i r ee n v i r o n m e n t .S t a n d a r d
p r o g r a m ss u c ha s e d ,t h ee x c e l l e n tP o w e rC t e x t ( s o u r c e - f i
e d i t o r ,a n dc c ,t h ec o m p i l e rc o m m a n d ,w h i l et h e ya r en o tC p r o
g r a m s ,w i l l c e r t a i n l yt r yt o u s ea l lt h e a v a i l a b l em e m o r y .
H o w e v e r , b yr e w r i t i n g t h es h e l l ,i t h a s p r o v e np o s s i b l et o
s q u e e z ea f r e ep a g ei n t h e r e .B yc a r e f u l l yc o m p a c t i n gt h ec o d e
W h e nr u n n i n g , aC p r o g r a mr e l i e so n s o m el o c a t i o n si n t h e a l i t t l e ,a n dr e - a r r a n g i n gt h eu s eo f m e m o r yw i t h i nt h es h e l l ,
s h e l l ' sm e m o r ya r e a ,a m o n gt h e m : t h ep a g ef r o m$ 1 6 0 0t o $ 1 6 f f( p a g e 2 2 )c a nb e f r e e d .
T r a n s a c t o r 2 7 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 30/84
B y l o a d i n gt h eR A Md i s ks o f t w a r ea n ds p e c i f y i n gp a g e 2 2a s
t h ei n t e r f a c ep a g e ,p r i o rt o l o a d i n gt h e s p e c i a l l y r e w r i t t e ns h e l l
a n dr u n n i n gi t , a l l C p r o g r a m sw i l lw o r k ,a n dt h eR A Md i s ki s
m a d ea c c e s s i b l ea s a d i s kd r i v e .
O t h e r p r o b l e m s( a n df i x e s )
T h eo n l yh i t c h e so c c u rw h e nt h e R A Md i s kd o e sn o tb e h a v e
q u i t el i k eo t h e rC o m m o d o r ed i s kd r i v e s .F o ri n s t a n c e ,a m a j o r
p r o b l e mi s t h a tt h ec c p r o g r a m ,w h i c hl o a d sa n dr u n st h e t w o
p a s s e so f t h eC c o m p i l e ra t t e m p t st o c o n c a t e n a t et w of i l e sb y
s e n d i n gt h ew o r kd i s k d r i v e t h ec o m m a n d :
c O : f i l e . o = 0 : x x x t e m p l , x x x t e m p 2
W e l l ,t h eR A Md i s kd o e sn o t s u p p o r t c o n c a t e n a t i o ni n t h i sf a s h
i o n .S o e v e n t h o u g ht h et w op a s s e s o ft h eC c o m p i l e rw o u l d
l o a da n dr u np r o p e r l yf r o mt h eR A Md i s ka n dp r o d u c ec o r r e c t
o u t p u to n a r e g u l a rd i s kd r i v e ,t h ef i n a lo b j e c tf i l ew o u l dn o t
b e p r o d u c e dc o r r e c t l yi f t h eR A Md i s ki t s e l fw a sb e i n gu s e da s
t h eP o w e rC w o r kd i s k .B u ti t i s a l s op o s s i b l et o r e w r i t e t h ec c
c o m m a n dt o p e r f o r mt h ec o n c a t e n a t i o nb y r e a d i n ga n dw r i t i n g
t h e f i l e s .I t w a sw h i l ed o i n gt h i sr e w r i t et h a tI d i s c o v e r e dt h e
b u gi n R A M D O S3 . 3 r e f e r r e dt o i n " O nT h eC S i d e " .H a p p i l y
t h a tb u gh a sb e e nf i x e di n t h em o r er e c e n tR a m d o s4 . 2 .R A M -
D O Sr e l e a s e sc a nb e f o u n do n v a r i o u sB B S s ,a n di t i s g o o dt o
t r ya n dg e ta s r e c e n ta v e r s i o na s y o uc a n .
I n g e n e r a l ,t h o u g h ,m o s tp r o g r a m sr e a d i n g o rw r i t i n gm u l t i p l e
f i l e so n t h eR A Md i s ka r es u r p r i s i n g l y s l o w .I t h i n k t h ep r o c e s s
o f s w i t c h i n gf r o mw o r k i n gw i t ho n ef i l et o a n o t h e ri n t h eR A M
d i s ks o f t w a r ei s q u i t e s l o w .P e r f o r m a n c es e e m st o i m p r o v e n o
t i c e a b l yi f t h ei n p u ta n do u t p u ti s h e a v i l yb u f f e r e d .
A p l e a s a n tw o r k i n ge n v i r o n m e n t
A f t e r w r i t i n gt h em o d i f i e ds h e l l ,a n dt h ec c c o m m a n d ,I c o m
b i n e dt h e mw i t ha c o u p l eo f o t h e rs u p p o r tu t i l i t i e si n t oa c o m
p r e s s e da r c h i v ef i l e ,s h e l l r a m . a r c .I h a v e u p l o a d e dt h i s t ot h e
P r o - l i n eP o w e rC B B S( 4 1 6 - 2 7 6 - 6 8 1 1 ) ,a n dI t h i n ki t m a yb y
n o wb e a v a i l a b l ef r o mo t h e r p l a c e sa s w e l l ( i n c l u d i n gt h e
T r a n s a c t o rd i s kf o rt h i si s s u e ) .
S o w i t ht h e m o d i f i e ds h e l l ,a n dt h e c c c o m m a n d ,I h a v ea
P o w e rC e n v i r o n m e n ti n w h i c ht h e e d i t o rl o a d si n s t a n t l y ,a n d
t a k e so n l ya c o u p l eo f s e c o n d st o l o a do r s a v el a r g es o u r c e
f i l e so n t h eR A Md i s k .A l t h o u g ht h e a c t u a lc o m p u t a t i o n - b o u n d
c o m p i l a t i o np r o c e s s e sa r e n o t m u c hf a s t e r ,e v e nw h e nt h e
s o u r c ei s o n t h eR A Md i s k ,t h e r e a r en o a n n o y i n gd e l a y sw h i l e
e a c hp a s s o ft h ec o m p i l e ri s l o a d e d . I na d d i t i o n ,t h ec o n c a t e n a
t i o no f t h et w ot e m p o r a r yf i l e st o p r o d u c et h ef i n a lo b j e c tf i l e
i s a l o tf a s t e r ,a n da l o te a s i e ro n t h eh a r d w a r e , b o t hd i s k sa n d
d r i v e s .O n c ec o m p i l e d ,e v e nl a r g ep r o g r a m sl o a di n t h et i m ei t
t a k e st o t y p et h e i rn a m e .
I n f a c t ,w h e nu s i n gP o w e rC w i t ht h eR A Md i s k ,I o f t e n t h i n ki t
i s a g r e a tt r i b u t e t oP o w e rC t h a tI w a sa b l et o t o l e r a t eu s i n gi t
w i t hr e g u l a rd i s kd r i v e sa t a l l . □
B i t s& P i e c e sI :
T h eD i s k
F r o mt h ef a m o u sb o o ko f t h es a m en a m e ,T r a n s a c t o
P r o d u c t i o n sn o wb r i n g sy o uB i t s& P i e c e sI : T h eD i s k !
Y o u ' l lt h r i l lt o t h e s p e c i a le f f e c t so f t h e s c r e e n
d a z z l e r s !Y o u ' l ll a u g ha t t h e h o u r so f t y p i n g t i m
y o u ' l ls a v e lY o u ' l lb e I n s p i r e da s y o ub o l d l yg o
w h e r en o b i t sh a v eg o n eb e f o r e !
' ' E x t r a o r d i n a r i l yf a i t h f u lt o t h ep l o t " A b s o l u t e lo f t h e b o o k . . . T h eB A Ma l o n ei s m a g n e t i c ! !
w o r t ht h ep r i c eo fa d m i s s i o n ! " Q e n es y s c a l l
V i n c e n tC a n b y t e
" I fy o u m o u n to n l yo n eb i t sd i s ki n 1 9 8 7 ,m a k ei t t h i s
o n e !T h ef u l l yc r o s s - r e f e r e n c e di n d e xi s u n f o r g e t t a b l e
R e c s R e a d ,N e wY o r kT l $
B I T S& P I E C E SI : T H ED I S K ,A M y l a rF i l m , I na s s o c i a t i o nw i t hT r a n s a c t o r P r o d u
P l a y i n ga t a d r i v en e a r y o u l
D i s k $ 8 . 9 5 U S , $ 9 . 9 5C d n .B o o k$ 1 4 . 9 5 U S ,$ 1 7 . 9 5C d n .
B o o k& D i s kC o m b oJ u s t$ 1 9 . 9 5 U S ,$ 2 4 . 9 5C d n l
T r a n s a c t o r 2 8 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 31/84
I n s i d eG e o s1 2 8
T h ei n f oy o un e e d e da n dc o u l d n ' tf i n d . . .
b y W i l l i a mC o l e m a n
G e o sf o r t h eC o m m o d o r e1 2 8h a sb e e na v a i l a b l e f o r q u i t ea
w h i l en o w .A n e wa n d i m p r o v e dv e r s i o n( V 2 . 0 ) h a sj u s tb e e n
r e l e a s e d .U n f o r t u n a t e l yt h e r es t i l la r e v e r yf e wa p p l i c a t i o n s
w r i t t e ns p e c i f i c a l l yf o ri t . M o s ta r es i m p l yC 6 4G E O Sp r o g r a m s
t h a t w i l lr u ni n 4 0 - c o l u m nm o d e .O n eo f t h eb i g g e s t o b s t a c l e s
h a s b e e na l a c ko f i n f o r m a t i o n .T h i sa r t i c l ew i l la t t e m p tt o
r e m e d yt h i s s i t u a t i o nb y p r o v i d i n ga l l o f t h e i n f o r m a t i o n
r e q u i r e dt o p r o g r a mi n 8 0 - c o l u m n m o d e .T h e r ei s n ' te n o u g h
r o o mt o t e a c hG E O Sp r o g r a m m i n gf r o ms c r a t c h ; t h e r e f o r e ,t h e
r e a d e ri s a s s u m e dt o a l r e a d yb e f a m i l i a rw i t hG E O Sp r o g r a m
m i n go n t h eC 6 4 .
W h i c hi s w h i c h ?
B e f o r e y o u ra p p l i c a t i o nc a nd o i t s j o b ,i t n e e d st o k n o ww h a t
c o m p u t e r a n d w h a tm o d ei t i s r u n n i n gu n d e r .G e o s( t h r o u g h
o u t t h i s a r t i c l et h e t e r mG E O Si s u s e dt o s i g n i f yG E O S1 2 8 ,
u n l e s ss t a t e do t h e r w i s e )p r o v i d e st w ov a r i a b l e s f o r t h ep u r p o s e
o f d i f f e r e n t i a t i o n .
T h e f i r s t ,a v a i l a b l et o a l l v e r s i o n s( V I . 3a n d a b o v e ) ,i s
c l 2 8 F l a g( $ C 0 1 3 ) .I f b i t7 i s s e t t h e nt h ea p p l i c a t i o ni s r u n
n i n gu n d e rG E O S1 2 8 .N o t et h a tt h e 1 2 8D e s k T o pw i l lp a r s e
o u tp r o g r a m st h a tc a n ' tb e r u n u n d e rt h e c u r r e n tm o d eo r c o m
p u t e r( w e ' l ld i s c u s sj u s th o wa b i t l a t e r )b u tt h e 6 4 D e s k T o p
c a n ' t .I f y o ua r ew r i t i n ga 1 2 8 - o n l ya p p l i c a t i o n ,i t w i l ln e e dt o
c h e c kt h i sf l a gt o m a k es u r et h a ti t i s n ' tb e i n gr u nu n d e rG E O S
6 4 .U s et h i sr o u t i n et o c h e c k :
C h e c k P u t e r :
I d a # $ 1 2
c m p v e r s i o n
b p l 1 0 $
I d a c l 2 8 F l a g
1 0 $ :
r t s
1 5
0
1
1
0
B i t
1 4
0
1
0
1
G r a p h i cd o u b l i n g
T h e8 0 - c o l u m ns c r e e ni s , o f c o u r s e ,t w i c ea s w i d ea s t h e4 0 -
c o l u m ns c r e e n .G e o sp r o v i d e s am e a n st o a u t o m a t i c a l l yd o u
b l e t h ew i d t ha n d / o rX p o s i t i o no f a l l g r a p h i c sd r a w no n t h e
s c r e e n .T h eh i g h e s tt h r e eb i t so f t h ew i d t h / Xp o s i t i o nb y t e( o r
b y t e s )a r eu s e df o rt h i sa s f o l l o w s :
1 3
0 L e a v eX v a l u ea s i s ( p o s i t i v ev a l u e )
0 L e a v e X v a l u ea s i s ( n e g a t i v e v a l u
n X = X * 2 + n . D o u b l e dp o s i t i v e ,
n X = X * 2 - n . D o u b l e dn e g a t i v e .
N o r m a l l y y o uw o n ' ta c c e s st h e s eb i t sd i r e c t l yb u tw i l li n s t e a d
u s et h en e wG E O Sc o n s t a n t sA D D 1 _ W ,A D D 1 . B ,D O U B L E . W ,a n d
D O U B L E _ B .S i m p l yO R t h e a p p r o p r i a t ec o n s t a n to r c o n s t a n t
i n t ot h ew i d t ho r X p o s i t i o nv a l u e .U s et h eb y t e( B ) c o n s t a n
i n t h o s ea r e a sw h e r ea b y t e( c a r d )v a l u ei s r e q u i r e d ,i . e .i c o n
t a b l e s .H e r e ' sa n e x a m p l e :
m y l c o n T a b :
. b y t e t h i s m a n y
. w o r d m s e L e f1 1 D O U B L E _ W
. b y t e m s e T o p
f i r s t l c o n :
. w o r d m y l c o n
. b y t e l e f t E d g e | D O U B L E _ B
. b y t e y P o s
. b y t e w i d t h | D O U B L E _ B
. b y t e h e i g h t
. b y t e S e r v i c e
. . . e t c .
A f t e rc a l l i n gt h i sr o u t i n e ,b p lw i l lb r a n c hi f r u n n i n gu n d e ra T h en e w e rv e r s i o n so f P u t C h a ra l l o wy o ut o p a s s n e g a t i v eX
p o s i t i o nv a l u e s . I nt h e s e c a s e sy o us h o u l dE O Rt h ec o n s t a n t s
r a t h e rt h e nO R i n gt h e m . T h i sw i l lm a i n t a i nt h e b i t p a t t e r n
r e q u i r e df o rn e g a t i v ev a l u e s .
C 6 4 .
T h es e c o n dv a r i a b l e ,c a l l e dg r a p h M o d e ,i s a v a i l a b l et o G E O S
1 2 8o n l y ,a l lv e r s i o n s .I f b i t7 i s s e tt h e ny o ua r ei n 8 0 - c o l u m n
m o d e .V i r t u a l l ya l l G E O Sg r a p h i ca n dt e x tr o u t i n e sc h e c kt h i sv a r i a b l et o f i n do u tw h a tm o d ei s a c t i v e .
A n a s t u t er e a d e rw i l lp r o b a b l yr e m a r kt h a ta n yn u m b e rw h e nm u l t i p l i e db y t w ow i l lb e e v e n . T h e r e f o r e ,y o u w o u l dn o tb e
T r a n s a c t o r 2 9 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 32/84
a b l et o a c c e s so d dp o s i t i o n s( f o rc l e a r i n g t h es c r e e n ,e t c . ) .T o
g e ta r o u n dt h i sp r o b l e ms i m p l yO Rw i t hA D D 1 _ Bo r A D D 1 _ Wa s
a p p r o p r i a t e .T h i sw i l la d do n et o t h ef i n a lr e s u l t .T h eo n l y t i m e
y o uw i l ln o r m a l l yn e e dt h i si s w h e nc l e a r i n g t h es c r e e n( i . e .
3 1 9 l D O U B L E _ W l A D D l _ W ) .
T h er o u t i n eu s e dt o p e r f o r ma l l o f t h i sm i r a c u l o u s d o u b l i n g
i s c a l l e dN o r m a l i z e X .I t w i l lb e c a l l e da u t o m a t i c a l l yb y a l l
o f t h eG E O Sg r a p h i ca n dt e x tr o u t i n e s . I n4 0 - c o l u m nm o d e
t h i sr o u t i n ew i l lR T Sw i t h o u td o i n ga n y t h i n g .Y o uc a n ,i f
y o uw i s h ,c a l li t f r o mw i t h i ny o u ra p p l i c a t i o nb u t u n d e r
n o r m a lc i r c u m s t a n c e s( i s t h e r er e a l l ys u c ha t h i n g ? )y o u
s h o u l d n ' th a v et o . S e eT a b l e1 f o r am o r ec o m p l e t ed e s c r i p
t i o n .
G r a p h i c sa n dt h e6 4
W h i l eG E O S1 2 8w i l lc o r r e c t l yh a n d l e d o u b l i n gb i t sr e g a r d l e s s
o f t h ev i d e om o d e ,G E O S6 4 d o e s n ' tk n o wd o u b l i n gb i t sf r o m
A d a m .I f y o ut r y t ou s et h e mt h eg r a p h i cr o u t i n e sw i l lt r y t o
p r i n tw a yo f f t h es c r e e nw i t h o b v i o u s l y l o u s yr e s u l t s .T h i s
m a k e sc r e a t i n ga p r o g r a mt h a t w i l lr u ni n 8 0 - c o l u m n1 2 8a n d
G E O S6 4 r a t h e rd i f f i c u l t .
P r o b a b l yt h ee a s i e s tw a yt o w r i t ea t o t a l l yc o m p a t i b l ep r o g r a m
i s t o k e e pt r a c ko f a l l t h ep l a c e si n t h ep r o g r a mw h e r ed o u
b l i n gb i t sa r e r e q u i r e d ,a n dp o k et h ea p p r o p r i a t ev a l u e si n d u r
i n gi n i t i a l i z a t i o n .
I n t h o s ep l a c e sw h e r et h ev a l u ei s l o a d e di n t oa r e g i s t e r , t r yt h e
f o l l o w i n g :
M y N o r m a l i z e X :
j s r
b m i
I d a
a n d
s t a
1 0 $ :
r t s
C o n v e r t :
; p a s s :
p h a
t x a
p h a
l d x
j s r
l d x
j s r
p l a
t a x
p l a
r t s
C h e c k P u t e r
1 0 $
$ 0 1 , x
# % 0 0 0 1 1 1 1 1;
$ 0 1 ,x
r 2 L - r 4j u s t l i k e
# r 3
M y N o r m a l i z e X
# r 4
M y N o r m a l i z e X
i f C 1 2 8
i t ' s a 6 4
s o c l e a r t h e
d o u b l i n gb i t s
i n R e c t a n g l e
W h i l ea l lo f t h i si s a p a i nf o rs m a l l e ra p p l i c a t i o n s ,i t g e t sd a r n
n e a r i m p o s s i b l et o m a i n t a i nw i t hl a r g e ro n e s .T h i si s w h ym o s
l a r g e a p p l i c a t i o n sh a v et w ov e r s i o n s- o n ef o rG E O S6 4 a n d o n
f o rt h e1 2 8 .
T h e1 2 8m e m o r ym a p
T h em a i n G E O S1 2 8b a n ki s b a n k1 . I t i s v i r t u a l l y i d e n t
t h eG E O S6 4 m e m o r ym a pw i t ht h ef o l l o w i n ge x c e p t i o n s :
1 ) T h eI / Oa r e ai s a l w a y sb a n k e di n .
2 ) T h em m uc a nb e s e e na t $ F F 0 0 .
3 ) B e c a u s eo f # 2 t h e i n p u t d r i v e rh a sb e e nm o v e d .T h ei n p u
d r i v e r t a b l ei s s t i l li n t h es a m ep l a c e( i nt h i sc a s e ,a t t h ee n d
o f t h e d r i v e ri n s t e a do f a t t h eb e g i n n i n g ) .
U n d e rn o r m a lc i r c u m s t a n c e s( i . e .w h e na p p l i c a t i o nc o d ei s
e x e c u t i n g ) , t h e r ei s n o c o m m o nR A Md e f i n e d .T h e r ei s a s e c
t i o no f t h e G E O SK e r n a li n h i g hm e m o r yo f b a n k0 . W h e
G E O Sn e e d st o a c c e s st h i s ,i t s e t sc o m m o nR A Mh i g ha n dt h i s
a r e aw i l lf l i pi n .
T h es o f t s p r i t ev a r i a b l e s r e s i d ei n b a n k0 b e t w e e n$ 0 4 0 0a n d
$ 1 F F F .W h e nt h e s ev a r i a b l e sn e e dt o b e a c c e s s e dt h eK e r n a
w i l ls e tc o m m o nr a ml o w .
G E O S1 2 8 d o e sn o ts w a pm e m o r yt o d i s kt h ew a yt h eG E O S6 4
d o e s . I n s t e a di t u s e s$ 2 0 0 0t o $ 9 F F Fo f b a n k0 . Y o uc a nu s e
t h i sa r e aa s a b u f f e rb u ti f y o u ra p p l i c a t i o nl o a d sD e s kA c c e s
s o r i e st h i sa r e aw i l lb e t r a s h e d .T h e r ei s ,u n f o r t u n a t e l y ,n o w a y
t o p r e v e n tt h i s .
W h i l ea t f i r s tg l a n c ey o uw o u l dt h i n kt h e1 2 8h a sm u c hm o r e
r o o mt h i si s n o tr e a l l yt h ec a s e w i t hG E O S1 2 8 .T h ea c t i v ef o n t
m u s tb e i n f r o n tR A M( b a n k1 ) ,a s m u s tt h es p r i t ep i c t u r e sa n d
a l l t a b l e sp a s s e dt o G E O Sr o u t i n e s .W h i l et h e r ei s a l a r g ea r e a
i n b a c kR A M( b a n k0 ) , i t i s h a r dt o u s ea n dw i l lb e t r a s h e db y
D A S .
T h e' r u n n a b l eo n 'f l a g
E v e r yG E O Sf i l eh a s a f l a gi n t h e h e a d e r b l o c ka t p o s i t i o
O F F 1 2 8 F L A G S .T h i sf l a gt e l l st h eG E O S1 2 8 K e r n a lw h a tc o m
p u t e r a n d / o rm o d et h ep r o g r a mc a nr u nu n d e r .O n l yt h eh i g h
e s tt w ob i t sm a t t e r ; t h er e s ts h o u l db e z e r o .
b i t 7
0
1
0
1
b i t 6
0
0
1
1
4 0 - c o l u m n m o d e o n l y
4 0 - a n d 8 0 - c o l u m n m o d e s
D o e sn o t r u n u n d e r G E O S1 2 8
8 0 - c o l u m nm o d eo n l y
N o ws i m p l yu s et h ed o u b l e d f o r m so f a l l X p o s i t i o n sa n dc a l l
C o n v e r tb e f o r ea l l c a l l st o R e c t a n g l e ,F r a m e R e c t a n g l e ,e t c .A d m i t t e d l y ,t h i si s a b i to f ak l u d g eb u ti t w o r k s .
N o t et h a tt h i sf l a gi s n o tr e c o g n i z e db y a n yG E O S6 4 v e r s i o
( w h i c hi s w h yz e r om e a n s4 0 - c o l u m no n l y ) .Y o uc a ns o m e
t i m e sc h a n g et h i s f l a g w i t h i n t e r e s t i n gr e s u l t s .B o t h
g e o A s s e m b l e ra n dg e o L i n k e ra r es e ts o t h a tt h e yw i l ln o tr u n
o n t h e 1 2 8 .H o w e v e r , y o uc a n c h a n g et h i sf l a ga n dt h e yw i l lr u nj u s tf i n e !I n f a c t ,i f y o ud o n ' tm i n da w e i r dl o o k i n gs c r e e n
T r a n s a c t o r 3 0 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 33/84
y o uc a n r u n t h e mi n 8 0 - c o l u m nm o d ea t t w i c et h e n o r m a l
s p e e d !
S o m en a s t yb u g s
T h e r ea r ea c o u p l e o fs e r i o u sb u g st h a ty o us h o u l db e a w a r e
o f . I f $ 1 3 0 0i s n o n - z e r o ,t h es o f t s p r i t e w i l ln o tf u n c t i o np r o p
e r l y .T h i so n ei s a r e a lp a i nt o w o r ka r o u n d .I f p o s s i b l e ,s t a r t
y o u r p r o g r a m sa t $ 1 3 0 0a n dm a k et h ef i r s ti n s t r u c t i o n. b l o c k
1 . Y o uc a nt h e nu s e$ 0 4 0 0t o $ 1 2 f ff o rb u f f e r s .
S i n c et h e f i r s tv e r s i o no f G E O St h e r eh a sb e e na b u gi n t h e
m e n uh a n d l e rt h a tp r e v e n t sm e n u sf r o mg o i n gp a s t p o s i t i o n
2 5 5 .U n f o r t u n a t e l yt h i sa l s o a p p l i e st o t h e1 2 8v e r s i o n se v e ni n
8 0 - c o l u m nm o d e !T h i so n e c a n b e q u i t ed i f f i c u l tt o w o r k
a r o u n di f y o uu s el a r g em e n u s .
I r a n u p a g a i n s tt h i sp r o b l e mw h e nI w a sw r i t i n gm y 1 2 8
t e r m i n a l .I n 4 0 - c o l u m n m o d e ,t h em a i nm e n ue x t e n d e dt o 2 5 3 .
I n 8 0 - c o l u m nm o d et h i st r a n s l a t e dt o a b o u t3 3 0( t h eB S W 8 0
f o n ti s a b o u t1 . 3 t i m e sa s w i d ea s B S W 4 0 ) .O f c o u r s e ,i t
w o u l d n ' tw o r k .W h a tI f i n a l l yd i d w a sf o o lU s e S y s t e m F o n t
i n t ot h i n k i n gi t w a sa l w a y si n 4 0 - c o l u m nm o d es o t h a ti t
w o u l da l w a y sr e t u r nB S W 4 0 .I t w o r k sf i n el i k et h i sb u tt h e8 0 -
c o l u m nm e n ui s a w f u l l yt i n y .H o p e f u l l y ,V 2 . 0h a sf i x e d t h e s e
p r o b l e m s ,b u tI ' mn o th o l d i n gm yb r e a t h .
T h ef o l l o w i n gt a b l e sp r o v i d ea l lo f t h en e wr o u t i n e s , v a r i a b l e s ,
e t c . I w o u l ds u g g e s tm a k i n gu p a n e wi n c l u d ef i l e c a l l e d
g e o s l 2 8 S y m .Y o uc a nt h e n i n c l u d ei t i n a l l o f y o u r 1 2 8p r o
g r a m s .I f y o u a d d e v e r y t h i n gt o g e o s S y my o u w i l lw a s t e
a s s e m b l yt i m er e a d i n gv a r i a b l e st h a ta r e n ' tu s e d .
T a b l e1 - G E O S1 2 8R o u t i n eD e s c r i p t i o n s
D o B O p- $ C 2 E C
P a s s :r O - B L K l .P o i n t e rt o t h es t a r to f a b l o c ko f m e m o r y .
r l - B L K 2 .P o i n t e rt o t h es t a r to f a b l o c ko f m e m o r y .
r 2 - N u m b e ro f b y t e st o m o v e .
r 3 L - B a n ko f B L K l( 0 = b a n k0 , 1 = b a n k1 )
r 3 H - B a n ko f B L K 2( 0 = b a n k0 , 1 = b a n k1 )
Y - M o d eo f o p e r a t i o na s f o l l o w s :
t h ed e s t i n a t i o n .W h e ns w a p p i n gm e m o r yi n t h es a m eb a n kt h e
r e v e r s ei s t r u e .
b i t 1 b i t20 0
0 1
1 0
1 1
M o v ef r o m B L K lt o B L K 2
M o v ef r o mB L K 2t o b l k i
S w a pB L K lw i t hB L K 2
V e r i f yo n l y
R e t u r n :r O - r 3u n c h a n g e d
X 0 = m a t c h ,$ F F =m i s m a t c h( v e r i f yo n l y )
D e s t r o y :a , x ,y
T h i sr o u t i n ei s a l o w l e v e l ,g e n e r a l p u r p o s e ,b a n kt o b a n k
m e m o r y m o v er o u t i n e .I f b o t hs o u r c ea n dd e s t i n a t i o na d d r e s se s a r ei n t h es a m eb a n kt h e nt h es o u r c em u s tb e g r e a t e rt h e n
H i d e O n l y M o u s e- $ C 2 F 2
P a s s : n o t h i n g
D e s t r o y :a , x ,y , r l - r 6
R e t u r n :n o t h i n g
T h i sr o u t i n ei s u s e dt o e r a s e t h em o u s es o f t s p r i t ef r o mt h e
s c r e e nw h e ni n 8 0 - c o l u m nm o d e .I t w i l lb e r e d r a w nd u r i n gt h e
n e x tp a s st h r o u g hM a i nL o o p .T h i sr o u t i n ew i l lh a v en o e f f e c ti f
c a l l e dw h e ni n 4 0 - c o l u m n m o d e .U s u a l l yi t i s b e s tt o c a l lT e m p -
H i d e M o u s e .S i n c et h e g r a p h i c s r o u t i n e su s eT e m p H i d e M o
t h i sr o u t i n ei s w o r t h l e s si f y o ua l s oc a l la g r a p h i c sr o u t i n e .
M o v e B D a t a- $ C 2 E 3
P a s s :r O - P o i n t e rt o s t a r to f t h eS O U R C Eb l o c k o fm e m o r y .
r l - P o i n t e rt o s t a r to f D E S T I N A T I O Nb l o c ko f m e m o r y .
r 2 - N u m b e ro f b y t e st o m o v e .
r 3 L - S O U R C E B a n k( 0 = b a n k0 , 1= b a n k1 )
r 3 H - d e s t i n a t i o nB a n k( 0 = b a n k0 , 1= b a n k1 )
R e t u r n :r O - r 3u n c h a n g e d
D e s t r o y :a , x , y
T h i sr o u t i n es i m p l yl o a d sY w i t h z e r oa n dc a l l sD o B O p .I f
b o t ha r e a s a r ei n t h es a m e b a n kt h e nD E S T I N A T I O Nm u s tb e l e s s
t h a ns o u r c e .
N o r m a l i z e X- $ C 2 E 0
P a s s : x - P o i n t e rt o t h ez e r op a g ew o r dt o n o r m a l i z e ,e . g .
l d x# r 3 .
R e t u r n :x - u n c h a n g e d D e s t r o y :a
T h i sr o u t i n ei s u s e dt o c o n v e r td o u b l i n gb i t st o a n a b s o l u t e
v a l u e .g r a p h M o d ei s c h e c k e da n d ,i f c a l l e dw h e ni n 4 0 -
c o l u m nm o d e ,w i l ls i m p l ys t r i pt h e d o u b l i n gb i t s .A l lG E O Sg r a p h i c sr o u t i n e sc a l l t h i sr o u t i n e ,s o n o r m a l l y a na p p l i c a t i o
w i l ln o tn e e dt o c a l li t .
S e t M o u s e- $ F E 8 9
P a s s : n o t h i n g R e t u r n :n o t h i n g
D e s t r o y :a s s u m ea , x ,y , r O - r l 5
T h i sr o u t i n ei s c a l l e db y t h e i n t e r r u p tr o u t i n ej u s ta f t e rt h e
k e y b o a r di s s c a n n e d .I t ' sj o bi s t o r e s e tt h eP O Tl i n e s .T h i si s o n l y n e c e s s a r yf o ra m o u s e ;a l l o t h e rd r i v e r sw i l ls i m p l y
T r a n s a c t o r 3 1 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 34/84
R T S .A n a p p l i c a t i o ns h o u l dn e v e rn e e dt o c a l l t h i sr o u t i n e
d i r e c t l y .
S e t M s e P i c- $ C 2 D A
P a s s : r O - p o i n t e rt o 3 2 b y t e so f d a t a( t w o1 6 b y t ei m a g e s )
o r A R R O Wt o s w i t c ht o t h ed e f a u l t .
R e t u r n :n o t h i n g D e s t r o y :a , x ,y , r O - r l 5
T h i sr o u t i n ei s u s e dt o c h a n g et h e s h a p eo f t h e m o u s es o f t -
s p r i t e( # 0 )i n 8 0 - c o l u m n m o d e .U n l i k et h e o t h e rs e v e ns o f t -
s p r i t e s ,t h em o u s es o f t s p r i t ei s h i g h l yo p t i m i z e ds o t h a ti t w i l l
f u n c t i o ns m o o t h l ya s a m o u s e .I t i so n l y1 6 x 8p i x e l si n s i z e .
T h ef i r s t1 6 b y t e so f t h e t a b l e a r ea m a s ki m a g e .T h el a s t1 6
b y t e sa r e t h e p i c t u r ei t s e l f .T h em o u s eh a n d l e rw i l lf i r s ta n d
t h e a r e aw i t ht h em a s ki m a g e .A n y0 ' s i nt h em a s kw i l l c l e a r
t h a tp i x e lo n t h e s c r e e n .T h e nt h e i m a g ei t s e l fi s O R ' e di n .
H e r e ' sa n e x a m p l e :
T r i a n g l e M o u s e :
L o a d W r O , M S E P I C
j s r S e t M s e P i c
r t s
D e f a u l t M o u s e :
L o a d W r O , A R R O W
j s r S e t M s e P i c
r t s
; m a c r ot o s t o r ew o r di n H i / L o o r d e r
. m a c r or v w o r d w o r d
. b y t e > w o r d , < w o r d
. e n d m
M S E P I C :
; m a s k
r v w o r d % 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
r v w o r d % 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1
r v w o r d % 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1
r v w o r d % 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1
r v w o r d % 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1
r v w o r d % 0 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1
r v w o r d % 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1
r v w o r d % 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1
; i m a g e
r v w o r d % 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
r v w o r d % 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0
r v w o r d % 0 1 1 0 0 0 0 0 1 1 1 0 0 0 0 0
r v w o r d % 0 1 1 0 0 0 1 1 1 0 0 0 0 0 0 0
r v w o r d % 0 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0
r v w o r d % 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0
r v w o r d % 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0
r v w o r d % 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
T r a n s a c t o r 3 2
S e t N e w M o d e- $ C 2 D D
P a s s : g r a p h M o d e- s e tt o t h en e wm o d e
R e t u r n :n o t h i n g
A l t e r s :r i g h t M a r g i n ,c l k r e g ,c a l l sU s e S y s t e m F o n t
D e s t r o y :a , x ,y , r O - r l 5
T h i sr o u t i n ei s u s e dt o s w i t c hg r a p h i c sm o d e .T h ea p p l i c a t
m u s tr e d r a wt h en e ws c r e e ni t s e l f .N o t et h a tU s e S y s t e m F i s
c a l l e d ;s o , i f y o ua r eu s i n g ac u s t o ms e t ,y o uw i l lh a v et o r e -
e n a b l ei t . H e r e ' sa n e x a m p l e :
S w i t c h M o d e :
; f i r s t e r a s eo l d s c r e e n
j s r i — R e c t a n g l e
. b y t e 0 , 1 9 9
. w o r d 0 , 3 1 9 | D O U B L E J W | A D D 1 _ W
; n o ws w i t c h m o d e s
I d a g r a p h M o d e
e o r # % 1 0 0 0 0 0 0 0
s t a g r a p h M o d e
j s r S e t N e w M o d e
; n o wi n i t i a l i z e t h en e w s c r e e n
j s r D r a w S c r e e n
r t s
S w a p B D a t a- $ C 2 E 6
P a s s :r O - B L K 1 .P o i n t e rt o s t a r to f ab l o c ko f m e m o r y .
r l - B L K 2 .P o i n t e rt o s t a r to f a b l o c ko f m e m o r y .
r 2 - N u m b e ro f b y t e st o m o v e .
r 3 L - B a n ko f b l k i( 0 = b a n k0 , 1 = b a n k1 )
r 3 H - B a n ko f B L K 2( 0 = b a n k0 , 1 = b a n k1 )
R e t u r n :r O - r 3u n c h a n g e d
D e s t r o y :a , x , y
T h i sr o u t i n es i m p l yl o a d sY w i t ht w oa n dc a l l sD o B O p .I f b o t h
a r e a sa r ei n t h es a m eb a n kt h e nB L K 2 m u s tb e l e s st h e nb l k i .
T e m p H i d e M o u s e- $ C 2 D 7
P a s s : n o t h i n g R e t u r n :n o t h i n g
D e s t r o y :a , x
T h i sr o u t i n ei s u s e dt o e r a s ea l l o f t h es o f t s p r i t e sf r o mt h e
s c r e e nw h e ni n 8 0 - c o l u m n m o d e .T h e yw i l lb e r e d r a w
d u r i n gt h en e x t p a s st h r o u g hM a i nL o o p .T h i sr o u t i n ew i l l
h a v e n oe f f e c ti f c a l l e dw h e ni n 4 0 - c o l u m n m o d e .A l l t h e
G E O Sg r a p h i c sr o u t i n e sc a l lT e m p H i d e M o u s eb e f o r ed r a w
i n g t o t h e s c r e e n .T h eo n l y t i m e a na p p l i c a t i o nw i l ln e e d
A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 35/84
t o c a l l i t i s w h e nm a n i p u l a t i n gs c r e e n( V D C )m e m o r y
d i r e c t l y .
V e r i f y B D a t a- $ C 2 D 7
P a s s :r O - b l k i. P o i n t e rt o t h es t a r to f a b l o c ko f m e m o r y .
r l - B L K 2 .P o i n t e rt o t h es t a r to f ab l o c ko f m e m o r y .
r 2 - N u m b e ro f b y t e st o m o v e .
r 3 L - B a n ko f b l k i( 0 = b a n k0 , 1= b a n k1 )
r 3 H - B a n ko f B L K 2( 0 = b a n k0 , 1= b a n k1 )
R e t u r n : r O - r 3u n c h a n g e d
D e s t r o y :a , x , y
T h i sr o u t i n es i m p l yl o a d sY w i t ht h r e ea n dc a l l sD o B O p .
C I O I N
C K R N L B A S I O I N
C K R N L I O I N
C R A M 6 4 K
D O U B L E _ W
D O U B L E _ B
G P _ 4 0
6 R _ 8 0
I N C O M P A T I B L E
I N P U T 1 2 8
K E Y H E L P
K E Y A L T
K E Y E S C
K E Y N O S C R L
K E Y E N T E R
O F F 1 2 8 F L A G S
S C R E E N B Y T E W I D T H
S C R E E N P I X E L W I D T H
= $ 7 e
= $ 4 0
= $ 4 e
= $ 7 f
= $ 8 0 0 0
= $ 8 0
= 0 ; u s e t h e s e t w ot o t e s t
= $ 8 0 ; g r a p h M o d e
= 1 4 ; n e wd i s k e r r o r
= 1 5 ; n e w i n p u t d e v i c e
= 2 5
= 2 6
= 2 7
= 7
= 1 1
= 9 6 ; o f f s e ti n t o h e a d e rb l
= 8 0
= 6 4 0
T A B L E2
N e wE q u a t e s ,V a r i a b l e sa n dC o n s t a n t s( g e o s l 2 8 S y m )
; J u m p T a b l e
A c c e s s C a c h e
C o l o r C a r d
C o l o r R e c t a n g l e
D o B O p
H i d e O n l y M o u s e
J m p I n d X
M o v e B D a t a
N o r m a l i z e X
S e t C o l o r M o d e
S e t M s e P i c
S e t N e w M o d e
S w a p B D a t a
T e m p H i d e M o u s e
V e r i f y B D a t a
; V a r i a b l e s
g r a p h M o d e=
s c r 8 0 P o l a r =
s c r 8 0 C o l o r s=
v d c C l r M o d e=
k e y r e g =
c l k r e g =
m m u =
V D C
M O U S E B A S E
E N D M O U S E
c o n f i g =
; C o n s t a n t s
A D D 1 _ W
A D D 1 _ B
A R R O W =
T r a n s a c t o r
= $ c 2 e f
= $ c 2 f 3
= $ c 2 f b
= $ c 2 e c
= $ c 2 f 2
= $ 9 d 8 0
= $ c 2 e 3
= $ c 2 e O
= $ c 2 f 5
= $ c 2 d a
= $ c 2 d d
= $ c 2 e 6
= $ c 2 d 7
= $ c 2 e 9
$ 0 0 3 f; b i t 7 s e t = 8 0 c o l u m n m o d e
$ 8 8 b c ; c o p y o fV D C r e g2 4
$ 8 8 b d ; c o p y o fV D Cr e g 2 6
$ 8 8 b e / c u r r e n t c o l o rm o d e
$ d O 2 f
$ d 0 3 0
$ d 5 0 0
$ d 6 0 0
$ f d 0 0
$ f e 8 0
$ f f 0 0
$ 2 0 0 0
$ 2 00 ; p a s st h i s t o S e t M s e P i c
E d i t o r i a lN o t e :T h eT r a n s a c t o rd i s kf o rt h i si s s u e( T d i s k# 2 7 )
w i l li n c l u d eg e o s l 2 8 S y m ,A l s ow o r t hn o t i n ga t t h i st i m ei s t h e
f a c tt h a ts i n c e 9 : 1( w h e nI s t a t e dt h a tw e w o u l ds u p p o r t P A
f o r m a t ) ,a l l s u b m i s s i o n sr e c e i v e dh a v e b e e ni n g e o P r o g r a m
m e rf o r m a t .( A l t h o u g hF r a n c i sK o s t e l l aw e n tt o t h et r o u b l eo f
m a k i n gh i s a r t i c l ef o r t h i s i s s u eP A L - c o m p a t i b l e . )C o n s e
q u e n t l y ,m o s ta r t i c l e s w i l lb e i n g e o P r o g r a m m e rf o r m a tu s i n g
B S Wl a b e l sa n ds y m b o l s .G e n e r a l l ys p e a k i n g ,a n a r t i c l ew i l lb e
p u b l i s h e di n t h ef o r mi n w h i c hi t i s r e c e i v e d ;a n dt h a tf o r m
w i l lm o s tl i k e l yb e g e o P r o g r a m m e r .- M O □
N O T H I N GL O A D SY O U R P R O G R A M SF A S T E R
T H EQ U I C KB R O W NB O X
A N E WC O N C E P TI N C O M M O D O R EC A R T R I D G E
S t o r eu p t o 3 0 o f y o u rf a v o r i t ep r o g r a m s— B a s i c& M / L , G a m e s&
U t i l i t i e s ,W o r dP r o c e s s o r s& T e r m i n a l s— i n a s i n g l eb a t t e r y - b a c k
c a r t r i d g e .R E A D YT O R U NA T T H ET O U C HO F A K E Y .
H U N D R E D SO FT I M E SF A S T E RT H A ND I S K .C h a n g ec o n t e n t s
a s o f t e na s y o uw i s h .T h eQ B Ba c c e p t sm o s tu n p r o t e c t e dp r o g r a m s
i n c l u d i n g" T h eW r i t eS t u f ft h eo n l yw o r dp r o c e s s o rt h a ts t o r e sy o u r
t e x t a sy o ut y p e .U s ea s a p e r m a n e n tR A M - D I S K ,a p r o t e c t e dw o r k
a r e a ,a n a u t o b o o tu t i l i t y .I n c l u d e su t i l i t i e sf o rC 6 4a n dC - 1 2 8m o d e .
P a c k a g e sa v a i l a b l ew i t h" T h eW r i t eS t u f f , "" U l t r a t e r mI I I , "" Q D i s k "
( C P / MR A MD i s k ) ,o r Q B BU t i l i t i e sD i s k .P r i c e :3 2 K$ 9 9 ;6 4 K$ 1 2 9 .
( + $ 3S / H ;$ 5 o v e r s e a sa i r ;M a s sr e s i d e n t sa d d5 % ) .1 Y e a rW a r r a n t y .
B r o w nB o x e s ,I n c ,2 6 C o n c o r dR d ,B e d f o r d ,M A0 1 7 3 0 :( 6 1 7 )2 7 5 -
0 0 9 0 ;8 6 2 - 3 6 7 5
3 3 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 36/84
L o a d e r m a k e r
E a s yG E O Si n f os e c t o r s
b y N i c h o l a sJ . V r t i s
O n c ey o ug e t t h ef e e lf o ri t , c o d i n ga s s e m b l e rf o rG E O Si s e a s y .
T h er o u t i n e s a r ep r e t t ye a s yt o a c c e s s ,a n dy o uc a nd o s o m e
p r e t t yi m p r e s s i v et h i n g sw i t hj u s to n e s u b r o u t i n ec a l l .T h e
p r o b l e mi s t h a td u r i n ga d e v e l o p m e n tc y c l ey o ue n du p a s s e m
b l i n ga n dt e s t i n gt h es a m ep r o g r a mo v e ra n do v e r .T h i sp r o
c e s sc a ng e tm e s s ya n di n c o n v e n i e n ti f y o uh a v ea p r o g r a m
l i k eP R G T O G E O Sf r o m T h eO f f i c i a lG E O SP r o g r a m e r ' s R e f e r
e n c eG u i d e .
T h et r o u b l ei s t h a to n c ey o uc o n v e r ta f i l et o G E O Sf o r m a t ,y o u
m u s td e l e t ei t w i t hG E O S ,o r y o u e n du p w i t ha s e c t o ra l l o c a t e d
i n t h e B A Mb u t n o tt i e d t oa n y p r o g r a m( b e c a u s et h e D O S
s c r a t c hd o e s n ' tk n o wa b o u tt h eG E O Si n f os e c t o r ) .I f y o ua r e
l i k eI a m ,w h e ny o ua r et e s t i n ga n a s s e m b l e rp r o g r a m( p a r t i c u
l a r l yi f y o ua r ej u s tl e a r n i n gG E O S ) ,y o uf r e q u e n t l yh a n gt h e
s y s t e mu p a n d n e e dt o r e s e ti t . S o t o p u tu p a n e wv e r s i o no f
t h e p r o g r a my o un e e dt o b o o tu p G E O S ,s c r a t c ht h e o l dp r o
g r a m ,t h e n b o o tu p y o u ra s s e m b l e r ,c h a n g et h e s o u r c e ,
r e a s s e m b l e ,a n dr e b o o tG E O Sa n dc o n v e r t . F i n a l l yy o ug e tt o
t e s ty o u rc h a n g e !W i t ht h e v a r i o u sc o p yp r o t e c t i o ns c h e m e s
i n v o l v e di n G E O Sa n dy o u ra s s e m b l e r ,t h e r e a r ea c o u p l eo f
d i s ks w a p si n v o l v e di n t h ep r o c e s s .
L o a d e r m a k e r w a sw r i t t e nb e c a u s eI a m l a z ya n d w a n t e dt o
s h o r t e nt h e p r o c e s s . A l lL o a d e r m a k e rd o e si s c r e a t ea s h o r t
G E O Sp r o g r a mw h o s es o l ep u r p o s ei s t o l o a da n o n - G E O Sp r o
g r a m , a n ds t a r ti t r u n n i n gi n t h eG E O Se n v i r o n m e n t .S i n c et h e
l o a d e rp r o g r a md o e s n ' td o a n y t h i n ge x c e p t l o a dt h ep r o g r a m
y o ua r et e s t i n g ,t h e r ei s n o ta l o to f n e e dt o c h a n g ei t . S i n c et h e
t e s tp r o g r a mi s a n o r m a lC o m m o d o r ef i l e ,y o uc a nu s ey o u r
a s s e m b l e ra n ds c r a t c h ,r e a s s e m b l e ,e t c .t o y o u rh e a r t sc o n t e n t
w i t h o u tc o l l e c t i n ge x t r aG E O Si n f os e c t o r s .
O p e r a t i o no f t h e p r o g r a mi s p r e t t y s t r a i g h t f o r w a r d .D o u b l e
c l i c ko n t h ei c o nt o g e ti t r u n n i n g .Y o uw i l lg e ta m e n uw i t h
t h r e e o p t i o n s :' D o n e 'w i l lg e t y o ub a c kt o t h e D e s k T o p ,
' M a k e 's t a r t st h e p r o c e s s ,a n d' H e l p ' s u p p l i e sa l i t t l ee x p l a n a
t i o no f t h ep r o g r a mp u r p o s ea n do p e r a t i o n . S e l e c t i n g' M a k e '
w i l lp r e s e n ty o uw i t h aw i n d o ww h i c ha s k sf o r t h en a m eo f t h e
p r o g r a m y o u w a n tt h eb o o tp r o g r a mt o l o a d .T h i ss h o u l db e
t h en a m eo f y o u ra s s e m b l e ro u t p u t .I t d o e sn o th a v et o e x i s ta t
t h i st i m e .T h es e c o n dq u e s t i o ni s t h en a m ef o r t h eb o o tp r o
g r a mw h i c hw i l ld o t h e l o a d i n g .T h i si s t h en a m eo f t h eG E O Sp r o g r a m y o uw i l ld o u b l ec l i c ko n t o g e ty o u rp r o g r a ml o a d e d
a n dr u n .I f t h i sf i l ea l r e a d ye x i s t s ,y o uw i l lb e a s k e di f y o u
w a n ti t o v e r l a i dw i t ht h en e wv e r s i o n o rn o t .I f y o uc l i c ko n
Y E S , an e wc o p yi s w r i t t e no u t .I f y o uc l i c ko n N O ,t h e ny o u
w i l lb e a s k e df o r a n e w n a m ef o r t h eb o o tl o a d e rp r o g r a m
T h a t ' si t . Y o uw i l lg o b a c kt o t h em a i nm e n ut o e i t h e r q u i to r
c r e a t ea n o t h e rb o o tl o a d e r .
T h eo p e r a t i o no f t h eb o o tl o a d e rp r o g r a mg e n e r a t e db y L o a d
e r m a k e ri s e v e ns i m p l e r t h a nL o a d e r m a k e r .A l ly o u d oi s d o u
b l e c l i c ko n t h e i c o n ,a n dy o ua r e o f fa n dr u n n i n gw i t hy o u r
a s s e m b l e r p r o g r a m .T h el o a d e r r u n s o u to f l o c a t i o n$ 7 F 4 0 ,s o i t
w i l ln o t l o a d ap r o g r a mt o t h a ta r e a .I t u s e st h e l o a da d d r e s
f o u n da s t h ef i r s tt w ob y t e so f t h ea s s e m b l e rf i l e( a l a n o r m a
l o a d" . . . " , 8 , 1 ) .T h es t a r t i n ge x e c u t i o na d d r e s si s a s s u m e dt o
b e t h es a m ea s t h es t a r t i n gl o a da d d r e s s .
S i n c eL o a d e r m a k e ri s s u c ha s i m p l eG E O Sp r o g r a m ,i t a l s o
m a k e sa g o o ds a m p l eo f h o wt o c o d e o n eu p .W h i l es i m p l e ,i t
u s e sm o s to f t h eb a s i cG E O Sp r o c e s s e s( m e n u s ,w i n d o w s ,f i l e
I / O ,e t c . ) .I w o u l dr e c o m m e n dt w os o u r c e so f i n f o r m a t i o no n
G E O S .T h ef i r s ti s a s h a r e w a r em a n u a l b yA l e x a n d e rB o y c e
( 2 2 6 9G r a n d v i e wA v e . ,A p t1 , C l e v e l a n dH e i g h t s ,O H4 4 1 0 6
3 1 4 4 ,o r c h e c k y o u rl o c a lB B S ) .T h es e c o n di s T h eO f f i c i a
G E O SP r o g r a m m e r s 'R e f e r e n c eG u i d e b yB e r k e l e y( B a n t a
C o m p u t e rB o o k s ) .T h el a t t e ri s a l i t t l em o r ec o m p l e t e , b u d i f
f i c u l tt o r e a da n df i n d t h i n g si n .T h ef o r m e ri s m u c he a s i e rt o
r e a d ,a n db e t t e ri n d e x e d .T h e L o a d e r m a k e rp r o g r a mi s a m i x
t u r e .T h er o u t i n en a m e sa r e f r o mB o y c e ' s m a n u a l ,a n dt h e
P a g eZ e r od e f i n i t i o n sa r ef r o mt h eB e r k e l e y m a n u a l .
M o s to f t h ep r o g r a mi s a p r o c e s so f s e t t i n gu p P a g eZ e r or e g i s
t e r sw i t hp o i n t e r st o a t a b l e ,c a l l i n ga G E O Sr o u t i n et o d o t h e
w o r k ,a n dt h e nc h e c k i n gt h er e s u l t s .I w o n ' tt r y t o e x p l a i na l l
t h e o p t i o n su s e di n e a c ho f t h e t a b l e s .E i t h e ro f t h em a n u a l
m e n t i o n e de a r l i e rc a nd o t h a t( a n dI ' v ei n c l u d e dl i b e r a lc o m
m e n t si n t h e s o u r c e ) .W h a tI w i l ld o h e r ei s p o i n to u ts o m eo f
t h et h i n g sw h i c ha r e n ' t r e a l l ym e n t i o n e di n t h em a n u a l s .
O n eo f t h e h a r dp a r t so f G E O Si s d e s i g n i n ga t e x ts c r e e n
( b e l i e v ei t o r n o t ) .S i n c ea l l t h et e x ti s p r o p o r t i o n a l ,y o uc a n ' t
j u s tc o u n tc h a r a c t e r st o d e c i d ei f t h e yw i l lf i t o n a l i n eo r i n a
b o x .I u s e t w od i f f e r e n tm e t h o d s .F o r s m a l la r e a ss u c ha s
m e n uo p t i o n sa n dt i t l el i n e s ,I t a k ea g u e s sa n dt h e nm a k ea d j u s t m e n t sa f t e rI s e ei t o n t h es c r e e n .N o t et h a tw h e nd o i n g
T r a n s a c t o r 3 4 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 37/84
m e n uo p t i o n s ,G E O St a k e sc a r eo f t h ed i v i d i n gl i n eb e t w e e na l l
t h e o p t i o n s ,s o a l l y o uh a v et o d o i s w o r r ya b o u tt h ew i d t ho f
t h eb o xa r e a . I fy o ud o n ' ta l l o we n o u g hr o o m ,G E O Sg e t sc o n
f u s e da n d ,w h e ny o us e l e c t t h a t e n t r y ,i t r e v e r s e - i m a g e sm o r e
t h a ni t s h o u l d .O t h e rt h a nl o o k i n gf u n n y ,i t w o r k sf o rt e s t i n g .
L i n i n gu p s u b m e n u si s r e a l l ya c h a l l e n g e , s i n c et h e d i v i d i n g
l i n ei s p u ti n b y G E O S .A g a i n ,t a k ea g u e s sa n da d j u s ta f t e ry o u
s e ei t o n t h e s c r e e n .A f t e r aw h i l ey o uc a ng e tg o o d e n o u g ht o
c o u n td o t so n t h es c r e e n( a s c r e e nd o ti s o n ep i x e l ) .
T h es e c o n dm e t h o do f f i g u r i n go u tw h a tw i l lf i t i st h e o n eI
u s e f o r l a r g e ra r e a s( s u c ha s t h e h e l pw i n d o wt e x t ) .T h i si s
m o r ec o m p l i c a t e d .I d o t h et e x ti n g e o W r i t e ,w i t ht h em a r g i n s
p u l l e di n t ot h es i z eo f t h ea r e aI a m w o r k i n gw i t h .T h a tw a y ,
g e o W r i t ew i l lt e l lm e w h a tf i t s ,a n dw r a pt h e l i n e sa s n e e d e d
( f o ry o u ri n f o r m a t i o n ,t h es t a n d a r ds p a c i n gb e t w e e nl i n e su s e d
b y g e o W r i t ei s 1 0 p i x e l s ) .T h e r ea r ea l o tm o r e' m o v i n gp a r t s '
t h i sw a y ,b u ti t d o e s n ' tt a k ea n yl o n g e r t h a ni f y o uj u s t t r i e d t o
g u e s sa n da d j u s te a c hl i n ea s y o ug o .
I r e c o m m e n du s i n gb o l d i n gf o rm o s ts h o r tt e x t .P l a i nB S Wf o n t
( t h e d e f a u l t f o n t )i s a l i t t l eh a r dt o r e a d .Y o us h o u l da l s on o t e
t h a ti f y o uh a v ea p a t t e r no n t h es c r e e na n dp u tt e x to n i t w i t h
t e n p i x e l sb e t w e e nl i n e st h e r ew i l lb e o n ep i x e lo f p a t t e r n
s h o w i n gb e t w e e nm o s tc h a r a c t e r s ,b u t n i n ep i x e l sb e t w e e n
c a u s e st h e t o p sa n db o t t o m so f s o m el e t t e r st o t o u c h .T h e r e
f o r e ,I r e c o m m e n dp u t t i n gt e x to n a p l a i nb a c k g r o u n di f p o s s i
b l e ,o r l i n ei t u p w i t hy o u rp a t t e r n ( p a t t e r n s a r e8 p i x e l s h i g h ) .
I a l s or e c o m m e n da s p a c eb e f o r ea n da f t e ra n yt e x tw h i c hi s
p u to n a p a t t e r n .O t h e r w i s et h ef i r s ta n dl a s tc h a r a c t e r so f t h e
t e x tr u ni n t ot h ep a t t e r n .
M u l t i p l el i n e so f t e x t i na w i n d o wa r es o r to f t r i c k y .A c a r r i a g e
r e t u r n( d e c i m a l1 3 ) t a k e sy o ut o t h e s t a r to f t h e l e f tm a r g i n ,
a n dt h e w i n d o wp r o c e s s o rs e t st h e l e f tm a r g i nt o 0 . A n yt e x t
p o s i t i o n i n gc o n t r o l s a r ei n r e f e r e n c et o t h el e f tm a r g i n , n o tt h e
e d g eo f t h ew i n d o w .S i n c et h ew i n d o wp r o c e s s o r a l l o w sm u l t i
p l e t e x tr e f e r e n c e s ,I w o u l dr e c o m m e n dt h i sm e t h o df o rm o s t
w i n d o w st h a tn e e dm o r et h a no n el i n e .I t t a k e sf i v eb y t e st h i s
w a y( o n ec o n t r o l ,t h r e e c o o r d i n a t e s ,a n d o n e 0a t t h e e n d ) .
A n a l t e r n a t em e t h o d( w h i c hI u s e df o rt h ew i n d o wt e x t )i s t o
u s e t h e p o s i t i o n i n gc o n t r o l sw i t h i nt h e t e x ta n d a d j u s t f o r
w h e r et h ew i n d o ww i l l b e .T h i s o n l yt a k e sf o u rb y t e s ,b u t h a s
t h ed i s a d v a n t a g eo f n e e d i n g c h a n g e si f y o um o v et h ew i n d o w .
A w o r do f c a u t i o no n t e x t :i f y o uf o r g e t t h e0 a t t h ee n do f t h e
t e x t ,y o uw i l lu s u a l l y g e ta s y s t e me r r o ra n d / o rh a n g u pG E O S .
I t i s p o s s i b l et o p o s i t i o ns o m et h i n g s( c l i c kb o x e s ,t e x t ,e t c . )s o
t h e yh a n go u t s i d et h e w i n d o w .T h i st e n d st o m e s su p y o u r
s c r e e n , s i n c e t h ew i n d o wp r o c e s s o r o n l y r e c o v e r st h ep o r t i o n
o f t h es c r e e n d e f i n e db y t h ew i n d o w , a n di t w i l ll e a v et h es t u f f
w h i c hh u n go v e ro n t h es c r e e n .
O n ef i n a lp o i n ta b o u tt e x t i nG E O S :G e o su s e st r u eA S C I I
i n s t e a do f C o m m o d o r eA S C I I .T h i sm e a n st h a tm o s tC o mm o d o r ea s s e m b l e r sw i l lh a v et r o u b l ea s s e m b l i n g a n y t h i n go t h
e r t h a nl o w e rc a s et e x ts t r i n g s .I m o d i f i e dS Y M A S Sw i t ha n e w
p s e u d oo p c o d e ,. t a s c ,w h i c ht e l l sS Y M A S St o a s s e m b l et r u e
A S C I Ic h a r a c t e r si n s t e a do f C o m m o d o r eA S C I I .
T h ef i n a lc h a l l e n g en o wb e c o m e s :h o wd o I a s s e m b l e L o a d
m a k e rw i t hS Y M A S S ,a n dm a k ei t a G E O Sp r o g r a ms o I d o n ' t
h a v et o m e s sw i t hm a k i n gG E O Sp r o g r a m sf o ra w h i l ea g a i n .
A c t u a l l y ,t h e r e a r e t h r e ew a y s .I f y o uh a v ea l r e a d yt y p e di n
p r g t o g e o sf r o mt h eB e r k e l e yB o o k ,t h e na l ly o un e e dt o d o i s
t a k eL o a d e r m a k e r ,a s s e m b l ei t , a n du s ea c o n v e n i e n tM Lm o n i
t o r t os a v et h e o b j e c tc o d et o d i s k .T h e nj u s tr u nP R G T O G E
a g a i n s ti t . T h es o u r c ef o rL o a d e r m a k e ri s s e tu p w i t ht h eG E O S
i n f o s e c t o ro n t h ef r o n tw h e r eP R G T O G E O Se x p e c t si t .
I f y o uh a v en o tt y p e di n P R G T O G E O S( o rd o n ' th a v et h eB e r k e
l e yB o o k ) ,t h e ny o uw i l ln e e da h a n d ys e c t o r e d i t o rp r o g r a mt o
p e r f o r ms o m em i n o rd i s km a g i c .I f y o ua r eg o i n gt o d o t h i s , I
s t r o n g l yr e c o m m e n dt h a ty o us t a r tw i t ha d i s kt h a td o e s n ' t
h a v ea n y t h i n go n i t t h a ty o u w a n t( p r e f e r a b l ye m p t y ) .Y o uw i l l
b e r e w r i t i n g d i r e c t o r y b l o c k s ,a n di t i s p o s s i b l et o m a k ea m i s
t a k ea n dm e s su p t h e d i s ks o t h a ty o uc a n n o ta c c e s sa n y t h i n g
o n i t ( n o tl i k e l y ,b u tp o s s i b l e ) .
F i r s t ,a s s e m b l eL o a d e r m a k e ra n ds a v ei t o u tt o y o u rs c r a t c h
d i s ka s a n o r m a lC o m m o d o r eP R Gf i l ew i t ha c o n v e n i e n tM L
m o n i t o r .T h e ny o un e e dt o u s ey o u rs e c t o re d i t o rt o f i n d t h e
d i r e c t o r y e n t r yf o rL o a d e r m a k e r .T h ed i r e c t o r yi s a t t r a c k$ 1 2 ,
s e c t o r$ 0 1 .I f y o us t a r t e dw i t ha n e m p t yd i s k ,t h eL o a d e r m a k
e n t r yw i l lb e t h ef i r s t( a n do n l y )e n t r y .I t w i l ls t a r tw i t ha $ 8 2 ,
t h es t a r t i n gt r a c ka n ds e c t o r ,a n dt h e nt h en a m e .Y o uw i l ln e e d
t o w r i t ed o w nt h e s t a r t i n gt r a c ka n ds e c t o rn u m b e r( t h i sw i l l
b e c o m et h eG E O Si n f os e c t o r ) .
U s ey o u rs e c t o r e d i t o rt o r e a dt h es t a r t i n gt r a c ka n ds e c t o r .T h e
f i r s tt w ob y t e so f t h i ss e c t o ra r e t h et r a c ka n ds e c t o rw h e r et h e
L o a d e r m a k e rc o d es t a r t s .W r i t et h e s en u m b e r sd o w n( t h e yw i l l
b e c o m et h e p r o g r a ms t a r t i n g s e c t o r ) .T h et h i r da n d f o u r t h
b y t e st e l lw h e r et h e d a t aw a ss a v e df r o m( s h o u l db e $ 0 4$ 4 f ) .
Y o uw a n tt o c h a n g et h e s e f o u r b y t e st o $ 0 0$ F F$ 0 3$ 1 5 ,a n d
w r i t et h e s e c t o rb a c kt o d i s k .N e x t ,y o u w a n tt o r e r e a dt h e
d i r e c t o r y s e c t o rt h a th a dt h eL o a d e r m a k e re n t r yi n i t ( $ 1 2$ 0 1
i f t h ed i s kw a se m p t y ) .S t a r t i n ga t t h e$ 8 2i n t h eL o a d e r m a k
d i r e c t o r ye n t r y ,y o uw a n tt o c h a n g et h e$ 8 2t o $ 8 3 , t h e ny o u
w a n tt o c h a n g et h en e x tt w ob y t e st o b e t h e t r a c ka n ds e c t o ro ft h ep r o g r a ms t a r t i n gs e c t o ry o uw r o t ed o w nf r o mb e f o r e .T h e
n a m ep o r t i o no f a d i r e c t o r ye n t r yi s a l w a y st h e s a m el e n g t h ,
a n dt h en a m ei s p a d d e dw i t hs h i f t e ds p a c e s( $ A 0 ' s ) .I m m e d i
a t e l yf o l l o w i n gt h en a m e ,y o uw a n tt o e n t e r t h et r a c ka n ds e c
t o r n u m b e r so f t h e i n f os e c t o ry o ur e c o r d e dp r e v i o u s l y .F o l
l o w i n gt h e i n f os e c t o r ,y o u w a n tt o e n t e r t h ef o l l o w i n gf i v e
b y t e s :$ 0 0 $ 0 6$ 5 8$ 0 1$ 0 1 .F i n a l l y ,r e w r i t et h e d i r e c t o r ys e c
t o rb a c kt o d i s k .
A t h i r dm e t h o di s t h eo n eI u s ea f t e rI h a v et e s t e da n e wp r o
g r a ma n d w a n tt o m a k ei t i n t oa n o r m a lG E O Sp r o g r a m .I j u s t
' s t e a l 'a n i n f o s e c t o rf r o ma n o t h e rG E O Sp r o g r a m . A g a iI
u r g ed o i n gt h i so n a n e m p t yd i s k- j u s t i nc a s e .W h a tI d o i s
T r a n s a c t o r 3 5 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 38/84
c o p ya G E O Sp r o g r a mt h a th a sa n i n f os e c t o rs i m i l a rt o w h a tI
w a n t .T h e nI p o i n tt o t h a ts e c t o ra s t h e i n f o s e c t o ro f m y n e w
p r o g r a m , a n df i x u p t h e l o a da d d r e s s ,e t c .F i n a l l y ,I b o o tu p
G E O Sa n dt r a s ht h ec o p yI t o o kt h ei n f o s e c t o rf r o m .I t h e nu s e
G E O St o v a l i d a t et h e d i s k( b e c a u s ei t h a s s c r a t c h e dm y i n f o
s e c t o r ) .W h i l et h i ss o u n d ss o r to f c o m p l i c a t e d ,I d o n ' th a v et o
d o i t e n o u g ht o m a k ei t w o r t hm y w h i l et o b o t h e rk e y i n gi n
P R G T O G E O S ,a n dh a v i n gt o k e yi n t h e i n f o s e c t o r f o re a c hn e w
p r o g r a m .
L o a d e r m a k e r . s r c
B F 1 0 0 s y s 4 9 1 5 2
O L 1 1 0; " L O A D E R M A K E R . S R C— c r e a t e s a m l l o a d e rp r o g r a mo n G E O Sd i s k "
D G 1 2 0 / " N i c kV r t i s - - J a n u a r y1 9 8 8 "
I P 1 3 0;
C B 1 4 0; w o r kr e g i s t e r s a s i n g e o sp r o g r a m m e r s r e f e r e n c e
N K 1 5 0 r O =$ 0 2
P L 1 6 0r l = $ 0 4
J P 1 7 0r 4 = $ 0 a
F B 1 8 0r 6 = $ 0 e
H P 1 9 0r 9 =$ 1 4
E C 2 0 0 r l O= $ 1 6
C C 2 1 0 a O= $ £ bF D 2 2 0 a l = $ f d
M F 2 3 0;
A D 2 4 0 . t a s c / a s s e m b l e t r u e a s c i i l i t e r a l s
A H 2 5 0;
D B 2 6 0* = $ 5 0 0 0 - 2 5 2 / a l l o w f o r g e o si n f o s e c t o r( $ 4 f O 4 )
M C 2 7 0. b y t e$ b f
L P 2 8 0. b y t e$ 0 0 , $ 0 0 , $ 0 0 , $ 7 f , $ f f , $ f e , $ 4 0 , $ l f
G K 2 9 0 . b y t e$ f e , $ 5 f , $ 8 0 , $ 7 e , $ 6 f , $ f f , $ 7 e , $ 7 7
N J 3 0 0. b y t e$ f e , $ 7 e , $ 7 7 , $ 0 5 , $ f e , $ 7 6 , $ 0 3 , $ f e
O N 3 1 0 . b y t e$ 7 4 , $ f f , $ f e , $ 7 5 , $ 8 0 , $ 7 e , $ 7 5 , $ f f
F N 3 2 0. b y t e $ f e , $ 7 5 , $ 8 0 , $ 7 e , $ 7 4 , $ f f , $ e 6 , $ 7 6
P J 3 3 0 . b y t e$ 0 3 , $ l a , $ 7 7 , $ 0 7 , $ f c , $ 7 7 , $ f f , $ f c
P O 3 4 0. b y t e$ 7 7 , $ a 3 , $ f c , $ 7 7 , $ b 8 , $ f a , $ 7 0 , $ 3 f
J G 3 5 0. b y t e$ 0 6 , $ 7 f , $ f f , $ f e , $ 0 0 , $ 0 0 , $ 0 0
J L 3 6 0. b y t e$ 8 3 , $ 0 6 , $ 0 0L A 3 7 0. w o r d b e g i n / s t a r t i n g l o a d a d d r e s s
P I 3 8 0 . w o r dl d r e n d / e n d i n g l o a d a d d r e s s
B J 3 9 0 . w o r db e g i n / s t a r t i n g e x e c u t i o n a d d r e s s
P B 4 0 0. a s c" L o a d e r M a k e r V l . O "
O B 4 1 0 . b y t e0 , 0 , 0 , 0 , 0
K J 4 2 0 . a s c " N i c kV r t i s- 1 9 8 8 "
C I 4 3 0 . b y t e0 , 0
E J 4 4 0 . b y t e0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0
O E 4 5 0 . b y t e0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0
N A 4 6 0. a s c" C r e a t ea l o a d e rp r o g r a mo n G E O S d i s kt o l o a dM Lf i l e s"
O C 4 7 0. a s c" c r e a t e db y a n o n - G E O S a s s e m b l e r "
E N 4 8 0 . b y t e0
A G 4 9 0;
H N 5 0 0* = $ 5 0 0 0
C F 5 1 0m o v e t o= $ 7 f 4 0 / w h e r eb o o tc o d ew i l l e x e c u t e f r o m
J C 5 2 0b e g i nI d a# < t i t l e
K G 5 3 0s t a r O
E O 5 4 0I d a # > t i t l e
A E 5 5 0s t a r 0 + l
K F 5 6 0 j s rg r p h i c / d ot h eo p e n i n gc r e d i t s
A L 5 7 0;
C G 5 8 0d o a g a i n= * / r e s t a r tp o i n t
C A 5 9 0I d aK m a i n m e n u
A L 6 0 0s t a r O
C B 6 1 0I d a # > m a i n m e n u
G I 6 2 0s t a r 0 + l
N N 6 3 0I d af l / c u r s o r o n o p t i o n1 2
A F 6 4 0j m pm e n u
A A 6 5 0;
H E 6 6 0d o q u i t =* / h a n d l e t h e q u i t o p t i o n
A K 6 7 0 j m pr e s t r t / b a c kt o d e s k t o p
O B 6 8 0;
T r a n s a c t o r 3 6
B P
G O
A PA T
H P
O G
K F
J A
K P
E C
G P
E D
D OP L
J M
F G
J J
G I
D B
M N
G G
J I
O G
J J
L F
G N
A O
N NB B
O P
L I
N O
M E
N P
C C
P O
O A
F A
A L
P K
A M
B B
B M
J C
E F
O F
L J
D E
A M
F B
L K
O P
L L
E N
I H
E E
K N
P I
D K
C O
L K
G O
F K
I G
O H
F F
O A
1 0
P G
I C
P N
J I
C G
M J
G P
6 9 0d o h e l p= * / h a n d l e t h e h e l p o p t i o n
7 0 0l d x § < h e l p w
7 1 0l d y ! > h e l p w
7 2 0j s r x y w i n d o w
7 3 0 j m pd r w m n u / r e d r a w t h em e n u
7 4 0;
7 5 0d o m a k e =* / h a n d l e t h em a k eo p t i o n
7 6 0j s r c m e n u s / c l o s e a l lm e n u s
7 7 0I d aj k p g m n a m e
7 8 0 s t a r l O
7 9 0I d a# > p g m n a m e
8 0 0s t a r l 0 + l8 1 0 l d xK l o a d n w
8 2 0l d y| > l o a d n w
8 3 0 j s rx y w i n d o w
8 4 0I d ar O / c h e c k f o rc a n c e l
8 5 0c m p| 2
8 6 0b e qd o a g a i n; . . y e s - r e s t a r t
8 7 0;
8 8 0g e t l n = * / g e t n a m e f o r l o a d e r f i l e
8 9 0 I d aK l d r n a m e
9 0 0s t a r l O
9 1 0I d a i > l d r n a m e
9 2 0s t a r l 0 + l
9 3 0 l d xK l d r o w
9 4 0 l d y§ > l d m w
9 5 0 j s rx y w i n d o w9 6 0I d ar O / c h e c k f o r c a n c e l
9 7 0 c m p| 2
9 8 0b e qd o a g a i n ; . . y e s - r e s t a r t
9 9 0 I d aK l d r n a m e
1 0 0 0 s t ar 6
1 0 1 0I d af > l d m a m e
1 0 2 0 s t a r 6 + l
1 0 3 0 I d a d r v s r c h / c h e c k o n l y ' a c t i v e ' d r i v e f o rn e wn a m e
1 0 4 0p h a / s a v ec u r r e n t s e t t i n g
1 0 5 0 I d ai O
1 0 6 0 s t a d r v s r c h
1 0 7 0 j s rl o o k u p/ t r yt o f i n d l o a d e r n a m e
1 0 8 0p l a
1 0 9 0 s t a d r v s r c h / r e s e t d r i v e s e a r c h f l a g
1 1 0 0 t x a / c h e c k r e t u r n f r o m l o o k u p
1 1 1 0b n ef i l e o k ; . . n o tf o u n d — g o o d
1 1 2 0 l d xK e r a f n w
1 1 3 0l d y # > e r a f n w
1 1 4 0 j s r x y w i n d o w
1 1 5 0 I d ar O / s e e i f o k t o o v e r l a y
1 1 6 0 c m p# 4
1 1 7 0b e qg e t l n ; . . n o - g e t an e wl o a d e r n a m e
1 1 8 0 I d a # < l d r n a m e
1 1 9 0 s t a r O
1 2 0 0 I d aj j > l d r n a m e
1 2 1 0 s t a r 0 + l
1 2 2 0 j s r d e l e t e / e r a s e c u r r e n tv e r s i o n
1 2 3 0;
1 2 4 0 f i l e o k =* / f i l e s e t u pi s o k
1 2 5 0 l d xf 0 / m o v e l o a d e r c o d e t o w h e r ei t w i l l r u n f r o m
1 2 6 0 l d r m o v e= *
1 2 7 0 I d a l d r c o d e , x
1 2 8 0 s t am o v e t o , x
1 2 9 0 i n x
1 3 0 0 c p xK l d r e n d - l d r c o d e
1 3 1 0b n el d r m o v e
1 3 2 0c l c ; c a l ce n d a d d r e s s o fs a v e
1 3 3 0I d aK l d r e n d - l d r c o d e
1 3 4 0a d cK m o v e t o
1 3 5 0s t a s a v e n d
1 3 6 0I d ak l d r e n d - l d r c o d e
1 3 7 0a d c § > m o v e t o
1 3 8 0 s t a s a v e n d + 1
1 3 9 0I d a§ 0 / t r y s t a r t i n g o n1 s tp a g e o f d i r e c t o r y
1 4 0 0 s t ar l O
1 4 1 0 I d aK l d r i n f o
1 4 2 0 s t ar 9
A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 39/84
M K 1 4 3 0I d aM d r i n f o
M M 1 4 4 0s t a r 9 + l
N J 1 4 5 0 j s r s a v e / s a v en e wf i l e
B M 1 4 6 0 j m pd o a g a i n/ r e d om e n u / o p t i o n s
E D 1 4 7 0;
F E 1 4 8 0x y w i n d o w= * / p r o d u c ew i n d o w p o i n t e dt o b y x / yr e g s
6 1 1 4 9 0 s t xr O
6 F 1 5 0 0 s t y r O + 1
M E 1 5 1 0 j m pw i n d o w / g o th e r e v i a j s r / r e t u r n d i r e c t l y
6 6 1 5 2 0;
1 6 1 5 3 0m a i n m e n u. b y t e0 / s t a r t@ t o po f s c r e e n
D 6 1 5 4 0. b y t e 1 4 / t o + 1 4d o w n
6 D 1 5 5 0. w o r d0 / l e f te d g e
F F 1 5 6 0 . w o r d9 2 / r i g h te d g e
M A 1 5 7 0. b y t e3 ; 3 h o r i z o n t a l o p t i o n s
A O 1 5 8 0 . w o r dd o n e
K F 1 5 9 0. b y t e$ 8 0 / s u b m e n uo p t i o n
F L 1 6 0 0. w o r dd o n e m e n u/ s u b m e n ud e f i n a t i o n
N H 1 6 1 0 . w o r dm a k e
N F 1 6 2 0 . b y t e0 / f l a s h& d o o p t i o n
C B 1 6 3 0 . w o r dd o m a k e
M K 1 6 4 0 . w o r dh e l p
6 6 1 6 5 0 . b y t e0
D E 1 6 6 0. w o r dd o h e l p
F H 1 6 7 0d o n e. a s c" D o n e ": . b y t e0
A J 1 6 8 0m a k e. a s c" M a k e ": . b y t e0
N N 1 6 9 0h e l p. a s c" H e l p ": . b y t e0
K B 1 7 0 0;
I P 1 7 1 0 d o n e m e n u. b y t e 1 4/ s t a r tb e l o w m a i n
N L 1 7 2 0 . b y t e 1 4 + 1 4 / s t i l l1 4 p i x e l s h i g h
K O 1 7 3 0 . w o r d0 / l e f te d g e
A B 1 7 4 0. w o r d2 9 / r i g h t e d g e
O H 1 7 5 0. b y t e$ 8 0 + 1 / o n ev e r t i c a l e n t r y
O F 1 7 6 0 . w o r dq u i t
D F 1 7 7 0. b y t e0 / f l a s h& d o
F P 1 7 8 0 . w o r dd o q u i t
L K 1 7 9 0 q u i t. a s c" Q u i t ": . b y t e0
O H 1 8 0 0;
A H 1 8 1 0t i t l e. b y t e $ 0 5 , 2 8 / f i l lp a t t e r n
A D 1 8 2 0 . b y t e$ 0 1 , 0 , 0 , 0 / t o p / l e f tc o r n e r
N N 1 8 3 0. b y t e$ 0 3 : . w o r d 3 2 0 : . b y t e1 9 9 / f i l lw h o l e s c r e e n
I C 1 8 4 0 . b y t e$ 0 5 , 9 / n e w f i l lp a t t e r nB L 1 8 5 0. b y t e$ 0 3 : . w o r d 3 2 0 : . b y t e2 0 / f i l lt o p t i t l el i n e
C K 1 8 6 0. b y t e$ 0 6 : . w o r d8 : . b y t e1 9 0 / o u t p u tt i t l e
O M 1 8 7 0. b y t e$ 1 8 , $ 2 0 , $ l a ; b o l d + o u t l i n e d
C H 1 8 8 0. a s c" L o a d e r M a k e r "
B H 1 8 9 0. b y t e $ l b , $ 1 8 / j u s tb o l d
P O 1 9 0 0. a s c" V I . 0M a c h i n eL a n g u a g e L o a d e r M a k e r"
J A 1 9 1 0 . b y t e$ 1 6 , 8 , 0 , 1 4 2 ; n e w p o s i t i o nf o rt e x t
M E 1 9 2 0. a s c" N i c h o l a sJ . V r t i s"
J P 1 9 3 0 . b y t e$ 1 6 , 2 0 0 , 0 , 1 4 2
F B 1 9 4 0. a s c" C o p y r i g h t1 9 8 8"
P D 1 9 5 0. b y t e$ 1 6 , 8 , 0 , 1 5 8
E l 1 9 6 0. a s c" 5 8 6 3P i n e t r e eS . E ."
H F 1 9 7 0 . b y t e$ 1 6 , 8 , 0 , 1 7 4
J J 1 9 8 0 . a s c" K e n t w o o d ,M I 4 9 5 0 8"
F F 1 9 9 0. b y t e$ l b , 0 / b a c k t o p l a i n t e x ta t e n dG E 2 0 0 0;
L E 2 0 1 0h e l p w. b y t e $ 0 1/ n o n - s t a n d a r d s i z e dw i n d o wh e r e
K E 2 0 2 0. b y t e2 2 , 1 7 8 / t o p / b o t t o m p i x e l s
O B 2 0 3 0 . w o r d4 / l e f te d g e
N J 2 0 4 0 . w o r d 3 0 5 / r i g h t e d g e
N A 2 0 5 0 . b y t e$ 0 b , 2 , 1 5
P P 2 0 6 0 . w o r dh e l p m s g
A B 2 0 7 0. b y t e$ 0 1 , 3 1 , 1 3 5 , 0 / - c a n c e l -b o x
L L 2 0 8 0 h e l p m s g. b y t e$ 1 8
J I 2 0 9 0. a s c" T h i sp r o g r a mi s u s e dt o c r e a t ea 6 E 0 Sp r o g r a mw h i c h "
A N 2 1 0 0. b y t e$ 1 6 , 6 , 0 , 4 7 / c h a n g eh e r ei s w i n d o ws i z ea d j u s t e d
D F 2 1 1 0. a s c" c a nb e r u n f r o m t h eD e s k T o p . T h e6 E 0 Sp r o g r a mw i l l "
P L 2 1 2 0. b y t e$ 1 6 , 6 , 0 , 5 7
D H 2 1 3 0. a s c " t h e nl o a d a n d r u n a n a s s e m b l e r p r o g r a m c r e a t e da s a "
6 N 2 1 4 0. b y t e$ 1 6 , 6 , 0 , 6 7
H J 2 1 5 0. a s c" ' n o r m a l 'C o m m o d o r e p r o g r a m . T h i s a v o i d sh a v i n gt o "
N O 2 1 6 0. b y t e$ 1 6 , 6 , 0 , 7 7
L B 2 1 7 0. a s c" r u na s e p a r a t ep r o g r a mt o ' c o n v e r t 'y o u r a s s e m b l e r "
E A 2 1 8 0. b y t e$ 1 6 , 6 , 0 , 8 7
N D 2 1 9 0. a s c" p r o g r a m e a c h t i m e y o u r e a s s e m b l ei t . A ' n o r m a l " 1
L B 2 2 0 0. b y t e$ 1 6 , 6 , 0 , 9 7
P F 2 2 1 0. a s c" C o m m o d o r e p r o g r a m h a s t h e l o a d a d d r e s sa s t h ef i r s t "
C D 2 2 2 0. b y t e$ 1 6 , 6 , 0 , 1 0 7
A H 2 2 3 0. a s c " t w od a t a b y t e s o ft h ef i l e ,a n ds t a r t se x e c u t i o na t "
K E 2 2 4 0. b y t e$ 1 6 , 6 , 0 , 1 1 7
E O 2 2 5 0. a s c" t h a t a d d r e s s a f t e rb e i n gl o a d e d . "
C J 2 2 6 0. b y t e$ l b , 0
E F 2 2 7 0;
6 1 2 2 8 0l d r n w. b y t e $ 8 1/ s t a n d a r ds i z ew i n d o wB J 2 2 9 0 . b y t e$ 0 b , 1 0 , 3 0
I P 2 3 0 0 . w o r dl n m s g
L J 2 3 1 0. b y t e$ 0 b , 1 0 , 4 0/ t w ol i n e s o ft e x ti n t h i sw i n d o w
C K 2 3 2 0 . w o r dI n m s g 2
L E 2 3 3 0. b y t e$ 0 d , 1 0 , 6 0/ g e ti n p u t i n w i n d o w
B C 2 3 4 0. b y t e< r l O , 1 6 ; r l 0 i sb u f f e r p o i n t e r / m a x1 6 c h a r a c t e r s i n p u
6 F 2 3 5 0. b y t e$ 0 2 , 1 7 , 7 8 / - c a n c e l -b o x
M C 2 3 6 0. b y t e0
M 6 2 3 7 0l n m s g. b y t e $ 1 8
C D 2 3 8 0. a s c" E n t e r n a m e f o rN E Wl o a d e r "
K E 2 3 9 0. b y t e0
H F 2 4 0 0 I n m s g 2. a s c" p r o g r a m t ob e c r e a t e d . "
I C 2 4 1 0. b y t e$ l b , 0
K O 2 4 2 0;
P A 2 4 3 0l o a d n w. b y t e$ 8 1 / a g a i na s t a n d a r d s i z e dw i n d o wH C 2 4 4 0. b y t e$ 0 b , 1 0 , 3 0
A J 2 4 5 0. w o r d p l m s g
D E 2 4 6 0. b y t e$ 0 d , 1 0 , 6 0
K H 2 4 7 0. b y t e< r l O , 1 6
J F 2 4 8 0 . b y t e$ 0 2 , 1 7 , 7 8/ c a n c e lb o x
O K 2 4 9 0 . b y t e0
A P 2 5 0 0p l m s g. b y t e $ 1 8
O B 2 5 1 0. a s c" E n t e r n a m e o f P R O G R A M t ol o a d . "
6 J 2 5 2 0. b y t e$ l b , 0
I F 2 5 3 0;
P E 2 5 4 0e r a f n w. b y t e$ 8 1
F J 2 5 5 0. b y t e$ 0 b , 1 0 , 3 0
F P 2 5 6 0. w o r de r r m s g
L K 2 5 7 0. b y t e$ 0 b , 1 0 , 4 0
B N 2 5 8 0 . w o r de r r m s g 2A L 2 5 9 0. b y t e$ 0 3 , 1 7 , 6 0/ - y e s -b o x
J K 2 6 0 0. b y t e$ 0 4 , 1 7 , 7 8/ - n o -b o x
6 C 2 6 1 0. b y t e0
6 L 2 6 2 0e r r m s g. b y t e$ 1 8
6 N 2 6 3 0. a s c" T h a tf i l e a l r e a d y e x i s t s . "
E E 2 6 4 0. b y t e0
1 0 2 6 5 0 e r r m s g 2. a s c" O Kt o o v e r l a y? "
C C 2 6 6 0. b y t e$ l b , 0
E O 2 6 7 0;
P L 2 6 8 0l d r i n f o. w o r dl d r n a m e
E B 2 6 9 0. b y t e$ 0 3 , $ 1 5 , $ b f
M D 2 7 0 0. b y t e $ f f , $ f f , $ f f , $ 8 0 , $ 0 0 , $ 0 1 , $ a a , $ a 0
O A 2 7 1 0. b y t e$ 0 1 , $ a 0 , $ 5 5 , $ 8 1 , $ 9 0 , $ 0 0 , $ 0 1 , $ 8 8
E l 2 7 2 0. b y t e$ 0 1 , $ 8 1 , $ 8 0 , $ f 8 , $ 0 1 , $ 8 9 , $ f c , $ 0 1
A C 2 7 3 0. b y t e$ 8 3 , $ 0 0 ,$ 0 1 , $ 8 a ,$ 7 £ , $ 8 1 , $ 8 2 ,$ 0 0K D 2 7 4 0. b y t e$ 0 1 , $ 8 a , $ 7 f , $ 8 1 f$ 8 3 , $ 0 0 , $ 0 9 , $ 8 9
K M 2 7 5 0. b y t e$ f c , $ a 5 , $ 8 0 , $ f 8 r$ 0 3 , $ 8 8 , $ 0 0 , $ 0 1
F C 2 7 6 0. b y t e$ 8 0 ,$ 5 4 ,$ 0 3 , $ 8 8 , $ 0 5 ,$ 0 5 ,$ 8 d , $ 4 0
C I 2 7 7 0. b y t e$ a 9 , $ 8 0 , $ 0 0 , $ 0 1 , $ f f , $ f f , $ f f
N C 2 7 8 0. b y t e$ 8 3 , $ 0 6 , $ 0 0
B M 2 7 9 0 . w o r dm o v e t o / b e g i n a d d r e s s o f s a v e
M J 2 8 0 0s a v e n d* = * + 2 / e n da d d r e s s f o r s a v e
L O 2 8 1 0 . w o r d m o v e t o + 1 7 / e x e c u t i o n s t a r t a d d r e
D J 2 8 2 0. a s c" L o a d e r M a k e r V l . O "
C J 2 8 3 0. b y t e0 , 0 , 0 , 0 , 0
O A 2 8 4 0. a s c" N i c kV r t i s- 1 9 8 8 "
6 P 2 8 5 0 . b y t e 0 , 0
I A 2 8 6 0. b y t e0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0
C M 2 8 7 0. b y t e0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ,
M J 2 8 8 0. a s c" L o a da n d R u na 6 E 0 Sp r o g r a mc r e a t e db y a n o n - G E O Sa s s e m b l e r ."O P 2 8 9 0. a s c " T h i sp r o g r a ml o a d s"
K M 2 9 0 0;
T r a n s a c t o r 3 7 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 40/84
2 9 1 0l d r n a m e. b y t e0
B D 2 9 2 0 * = * + 1 6
1 0 2 9 3 0;
O P 2 9 4 0l d r c o d e= *
M K 2 9 5 0p g m n a m e. b y t e0
M P 2 9 6 0 * = * + 1 6
A B 2 9 7 0;
P K 2 9 8 0l o a d m lI d af < m o v e t o
C B 2 9 9 0s t a r 6
E J 3 0 0 0 I d a # > m o v e t o
1 0 3 0 1 0s t a r 6 + l
J J 3 0 2 0 j s rl o o k u p
K L 3 0 3 0t x a
B K 3 0 4 0b e qd i s k o k
K L 3 0 5 0 j m pr e s t r t
K G 3 0 6 0;
N N 3 0 7 0d i s k o kI d ad e n t r y + 2
E C 3 0 8 0s t a r l + 1
M N 3 0 9 0 I d ad e n t r y + 1
6 H 3 1 0 0 s t a r l
A B 3 1 1 0 I d a # < b u f 0
A J 3 1 2 0s t a r 4
H O 3 1 3 0 I d a # > b u f 0
6 6 3 1 4 0 s t a r 4 + l
H f l 3 1 5 0 j s r r e a d
B F 3 1 6 0I d a b u f O + 2
J K 3 1 7 0 s t a a O
M H 3 1 8 0s t a a l
M 6 3 1 9 0I d a b u f O + 3
J I 3 2 0 0s t a a 0 + l
F J 3 2 1 0 s t a a l + 1
D J 3 2 2 0 l d x| 3
N O 3 2 3 0b n e s k i p r e a d
A D 3 2 4 0 r e a d p g m I d a b u f O
M A 3 2 5 0s t a r l
O K 3 2 6 0 I d a b u f 0 + l
C O 3 2 7 0s t a r l + 1
M C 3 2 8 0 j s rr e a d
N K 3 2 9 0l d x# 1
I N 3 3 0 0s k i p r e a d l d y f $ £ f
M 6 3 3 1 0I d a b u f O
K C 3 3 2 0b n e g o o d n x t t
K J 3 3 3 0l d y b u f 0 + l
H D 3 3 4 0g o o d n x t ts t y r O
B 6 3 3 5 0l d y| 0
B D 3 3 6 0m o v e l o o pi n x
K M 3 3 7 0I d a b u f 0 , x
C C 3 3 8 0s t a ( a 0 ) , y
P A 3 3 9 0 i n ca O
E l 3 4 0 0b n e a O o k
N D 3 4 1 0i n ca 0 + l
H D 3 4 2 0a O o k c p xr O
C E 3 4 3 0b n em o v e l o o p
P P 3 4 4 0I d a b u f O
C P 3 4 5 0b n er e a d p g m
H A 3 4 6 0 j m p( a l )
E A 3 4 7 0;
K P 3 4 8 0l d r e n d= *
I B 3 4 9 0;
M I 3 5 0 0b u f O = $ 8 0 0 0
K 6 3 5 1 0 d e n t r y = $ 8 4 0 0
P P 3 5 2 0d r v s r c h= $ 8 8 6 e
A E 3 5 3 0;
J B 3 5 4 0g r p h i c= $ d 3 6
A H 3 5 5 0m e n u = $ d 5 1
E B 3 5 6 0d r w m n u= $ d 9 3
P N 3 5 7 0 c m e n u s =$ c l b d
L E 3 5 8 0 r e a d =$ d e 4
O D 3 5 9 0 s a v e = $ c l e d
I F 3 6 0 0l o o k u p = $ c 2 0 b
P K 3 6 1 0 r e s t r t = $ c 2 2 c
M D 3 6 2 0d e l e t e= $ c 2 3 8
K C 3 6 3 0w i n d o w= $ c 2 5 6
O K 3 6 4 0;
O B 3 6 5 0. e n d
/ a l l o w f o r f u l l n a m e+ t r a i l i n gn u l l
/ l o a d e rc o d es t a r t sh e r e
/ a d d r e s s o f n a m e o fp r o g r a mt o l o a d
/ c h e c k r e t u r n
/ . . f o u n d i t o k
/ e l s ea b a n d o nt h el o a d& g o b a c kt o d e s k t o p
/ s e c t o ro f f i l e b e g i n n i n g
/ t r a c k o f f i l e b e g i n n i n g
/ s e tp o i n t e r t o b u f f e rf o rr e a d
/ r e a d 1 s tb u f f e r
/ g e tp r o g r a m l o a da d r e s s
/ a l s os t o r ea s s t a r t i n g a d d r e s s
/ s k i pt / s & a d d r e s s
/ . . u n c o n d i t i o n a l - s k i p1 s t r e a d
/ g e tt r a c k / s e c t o ro f n e x t b l o c k
/ s k i pt / s p o i n t e rf o r a l l o t h e r b l o c k s
/ a s s u m e a f u l l s e c t o r
/ c h e c kn e x tt r a c k p o i n t e r
/ . . g o o d n e x t t r a c k
/ e l s et h i si s l a s ts e c t o r / p i c k u p# v a l i d b y t e s
/ s a v ef v a l i db y t e s( 2 5 5f o rf u l l s e c t o r )
/ g e ti n p u t b y t e
/ s t o r e i t
/ b u m pp o i n t e r
/ c h e c k i ft o e n do f b u f f e r
/ . . n o ty e t / m o r et o d o
/ c h e c ki f m o r e s e c t o r s t o g o
; . . y e s( n e x tt r a c k p o i n t e ri s n o n - z e r o )
/ n o w g o s t a r tp r o g r a m
/ e n d o f l o a d e r c o d e t om o v e
; g e o sb u f f e r0
/ d i r e c t o r ye n t r yf r o m l o o k u p
; d r i v es e a r c h f l a g
/ g r a p h i c t a b l ep r o c e s s o r
/ m e n up r o c e s s o r
/ r e d r a wt h e m e n u
; c l o s e a l l m e n u s
/ r e a da s e c t o r
/ s a v ea g e o s f i l e
/ l o o k u p f i l e i n d i r e c t o r y
/ r e l o a d d e s k t o p& r e s t a r t g e o s
/ d e l e t eg e o s f i l e
/ w i n d o wp r o c e s s o rr o u t i n e
T h el i n e sb e l o ws h o u l d b ee n t e r e d( w h i l et h el i n e sa b o v ea r e
s t i l li n m e m o r y )i fy o ua r eN O Tu s i n gN i c kV r t i s 'm o d i f i e dv e r
s i o no ft h eS y m a s sa s s e m b l e rf r o mt h eT r a n s a c t o rd i s kf o rt h i s
i s s u e .T h e yc o n t a i nt h eA S C I Ib y t e sf o r t h em e s s a g e si n t h e
L o a d e r m a k e rp r o g r a m .
s y s7 0 0
' . b y t e7 6 , 1 1 1 ,9 7 , 1 0 0 , 1 0 1 , 1 1 4 ,7 7 ,9 7
. b y t e1 0 7 , 1 0 1 , 1 1 4 ,8 6 , 4 9 , 4 6 ,4 8
. b y t e7 8 , 1 0 5 , 9 9 , 1 0 7 , 3 2 , 8 6 , 1 1 4 , 1 1 6
. b y t e1 0 5 , 1 1 5 , 3 2 , 4 5 , 4 5 , 3 2 , 4 9 , 5 7 , 5 6
. b y t e 5 6
. b y t e6 7 , 1 1 4 , 1 0 1 , 9 7 , 1 1 6 , 1 0 1 , 3 2 , 9 7
. b y t e3 2 , 1 0 8 , 1 1 1 , 9 7 , 1 0 0 , 1 0 1 , 1 1 4 , 3 2
. b y t e1 1 2 , 1 1 4 , 1 1 1 , 1 0 3 , 1 1 4 , 9 7 , 1 0 9
. b y t e3 2 , 1 1 1 , 1 1 0 , 3 2 , 7 1 , 6 9 , 7 9 , 8 3 , 3 2
. b y t e1 0 0 , 1 0 5 , 1 1 5 , 1 0 7 , 3 2 , 1 1 6 , 1 1 1
. b y t e3 2 , 1 0 8 , 1 1 1 , 9 7 , 1 0 0 , 3 2 , 7 7 , 7 6
. b y t e3 2 , 1 0 2 , 1 0 5 , 1 0 8 , 1 0 1 , 1 1 5 , 3 2
. b y t e9 9 , 1 1 4 , 1 0 1 , 9 7 , 1 1 6 , 1 0 1 , 1 0 0 , 3 2
. b y t e9 8 , 1 2 1 , 3 2 , 9 7 , 3 2 , 1 1 0 , 1 1 1 , 1 1 0
. b y t e4 5 , 7 1 , 6 9 , 7 9 , 8 3 , 3 2 , 9 7 , 1 1 5 , 1 1 5
. b y t e1 0 1 , 1 0 9 , 9 8 , 1 0 8 , 1 0 1 , 1 1 4
d o n e. b y t e6 8 , 1 1 1 , 1 1 0 , 1 0 1
. b y t e0
m a k e. b y t e7 7 , 9 7 , 1 0 7 , 1 0 1
. b y t e0
h e l p. b y t e7 2 , 1 0 1 , 1 0 8 , 1 1 2
. b y t e0
q u i t. b y t e8 1 , 1 1 7 , 1 0 5 , 1 1 6
. b y t e0
. b y t e7 6 , 1 1 1 , 9 7 , 1 0 0 , 1 0 1 , 1 1 4 , 7 7 , 9 7
. b y t e1 0 7 , 1 0 1 , 1 1 4
. b y t e3 2 , 8 6 , 4 9 , 4 6 , 4 8 , 3 2 , 7 7 , 9 7 , 9 9
. b y t e1 0 4 , 1 0 5 , 1 1 0 , 1 0 1 , 3 2 , 7 6 , 9 7
. b y t e1 1 0 , 1 0 3 , 1 1 7 , 9 7 , 1 0 3 , 1 0 1 , 3 2
. b y t e7 6 , 1 1 1 , 9 7 , 1 0 0 , 1 0 1 , 1 1 4 , 3 2 , 7 7
. b y t e9 7 , 1 0 7 , 1 0 1 , 1 1 4 , 3 2
. b y t e3 2 , 7 8 , 1 0 5 , 9 9 , 1 0 4 , 1 1 1 , 1 0 8 , 9 7
. b y t e1 1 5 , 3 2 , 7 4 , 4 6 , 3 2 , 8 6 , 1 1 4 , 1 1 6
. b y t e1 0 5 , 1 1 5 , 3 2
. b y t e3 2 , 6 7 , 1 1 1 , 1 1 2 , 1 2 1 , 1 1 4 , 1 0 5
. b y t e1 0 3 , 1 0 4 , 1 1 6 , 3 2 , 4 9 , 5 7 , 5 6 , 5 6
. b y t e 3 2
. b y t e3 2 , 5 3 , 5 6 , 5 4 , 5 1 , 3 2 , 8 0 , 1 0 5
. b y t e1 1 0 , 1 0 1 , 1 1 6 , 1 1 4 , 1 0 1 , 1 0 1 , 3 2
. b y t e8 3 , 4 6 , 6 9 , 4 6 , 3 2
. b y t e3 2 , 7 5 , 1 0 1 , 1 1 0 , 1 1 6 , 1 1 9 , 1 1 1
. b y t e1 1 1 , 1 0 0 , 4 4 , 3 2 , 7 7 , 7 3 , 3 2 , 5 2
. b y t e5 7 , 5 3 , 4 8 , 5 6 , 3 2
. b y t e8 4 , 1 0 4 , 1 0 5 , 1 1 5 , 3 2 , 1 1 2 , 1 1 4
. b y t e1 1 1 , 1 0 3 , 1 1 4 , 9 7 , 1 0 9 , 3 2 , 1 0 5
. b y t e1 1 5 , 3 2 , 1 1 7 , 1 1 5 , 1 0 1 , 1 0 0 , 3 2
. b y t e1 1 6 , 1 1 1 , 3 2 , 9 9 , 1 1 4 , 1 0 1 , 9 7
. b y t e1 1 6 , 1 0 1 , 3 2 , 9 7 , 3 2 , 7 1 , 6 9 , 7 9
. b y t e8 3 , 3 2 , 1 1 2 , 1 1 4 , 1 1 1 , 1 0 3 , 1 1 4
. b y t e9 7 , 1 0 9 , 3 2 , 1 1 9 , 1 0 4 , 1 0 5 , 9 9
. b y t e1 0 4
. b y t e9 9 , 9 7 , 1 1 0 , 3 2 , 9 8 , 1 0 1 , 3 2 , 1 1 4
. b y t e1 1 7 , 1 1 0 , 3 2 , 1 0 2 , 1 1 4 , 1 1 1 , 1 0 9
. b y t e3 2 , 1 1 6 , 1 0 4 , 1 0 1 , 3 2 , 6 8 , 1 0 1
. b y t e1 1 5 , 1 0 7 , 8 4 , 1 1 1 , 1 1 2 , 4 6 , 3 2 , 3 2
. b y t e8 4 , 1 0 4 , 1 0 1 , 3 2 , 7 1 , 6 9 , 7 9 , 8 3
. b y t e3 2 , 1 1 2 , 1 1 4 , 1 1 1 , 1 0 3 , 1 1 4 , 9 7
. b y t e1 0 9 , 3 2 , 1 1 9 , 1 0 5 , 1 0 8 , 1 0 8
. b y t e1 1 6 , 1 0 4 , 1 0 1 , 1 1 0 , 3 2 , 1 0 8 , 1 1 1
. b y t e9 7 , 1 0 0 , 3 2 , 9 7 , 1 1 0 , 1 0 0 , 3 2 , 1 1 4
. b y t e1 1 7 , 1 1 0 , 3 2 , 9 7 , 1 1 0 , 3 2 , 9 7 , 1 1 5
. b y t e1 1 5 , 1 0 1 , 1 0 9 , 9 8 , 1 0 8 , 1 0 1 , 1 1 4
. b y t e3 2 , 1 1 2 , 1 1 4 , 1 1 1 , 1 0 3 , 1 1 4 , 9 7
. b y t e1 0 9 , 3 2 , 9 9 , 1 1 4 , 1 0 1 , 9 7 , 1 1 6
. b y t e1 0 1 , 1 0 0 , 3 2 , 9 7 , 1 1 5 , 3 2 , 9 7
. b y t e3 9 , 1 1 0 , 1 1 1 , 1 1 4 , 1 0 9 , 9 7 , 1 0 8
F D
6 6
B B
B D
H F
F J
B I
D 6
D I
A C
N L
E P
A E
M G
A L
N E
L N
J F
I L
L H
A E
F I
D B
P I
P M
D P
J N
6 A
6 C
P D
A P
K N
A F
E A
E PL A
M N
L O
L F
6 1
J K
D F
K A
N D
H 6
L L
B M
P K
K A
C P
6 H
L E
M B
E L
H I
6 C
A L
K A
F O
A O
J H
B L
O L
J L
I P
I D
P N
M C
1 0 0
2 4 0
4 0 0
4 0 14 2 0
4 2 1
4 2 2
4 6 0
4 6 1
4 6 2
4 6 3
4 6 4
4 6 5
4 6 6
4 7 0
4 7 1
4 7 2
4 7 3
1 6 7 0
1 6 7 1
1 6 8 0
1 6 8 1
1 6 9 0
1 6 9 1
1 7 9 0
1 7 9 1
1 8 8 0
1 8 8 1
1 9 0 0
1 9 0 1
1 9 0 2
1 9 0 3
1 9 0 4
1 9 2 0
1 9 2 11 9 2 2
1 9 4 0
1 9 4 1
1 9 4 2
1 9 6 0
1 9 6 1
1 9 6 2
1 9 8 0
1 9 8 1
1 9 8 2
2 0 9 0
2 0 9 1
2 0 9 2
2 0 9 3
2 0 9 4
2 0 9 5
2 0 9 6
2 0 9 7
2 1 1 0
2 1 1 1
2 1 1 2
2 1 1 3
2 1 1 4
2 1 1 5
2 1 1 6
2 1 3 0
2 1 3 1
2 1 3 2
2 1 3 3
2 1 3 4
2 1 3 52 1 3 6
2 1 5 0
T r a n s a c t o r 3 8 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 41/84
O E 2 1 5 1. b y t e3 9 , 3 2 , 6 7 , 1 1 1 , 1 0 9 , 1 0 9 , 1 1 1
B I 2 1 5 2. b y t e1 0 0 , 1 1 1 , 1 1 4 , 1 0 1 , 3 2 , 1 1 2 , 1 1 4
G P 2 1 5 3. b y t e1 1 1 , 1 0 3 , 1 1 4 , 9 7 , 1 0 9 , 4 6 , 3 2 , 3 2
D I 2 1 5 4. b y t e8 4 , 1 0 4 , 1 0 5 , 1 1 5 , 3 2 , 9 7 , 1 1 8
A O 2 1 5 5. b y t e1 1 1 , 1 0 5 , 1 0 0 , 1 1 5 , 3 2 , 1 0 4 , 9 7
D J 2 1 5 6. b y t e1 1 8 , 1 0 5 , 1 1 0 , 1 0 3 , 3 2 , 1 1 6 , 1 1 1
E F 2 1 7 0. b y t e1 1 4 , 1 1 7 , 1 1 0 , 3 2 , 9 7 , 3 2 , 1 1 5
A B 2 1 7 1. b y t e1 0 1 , 1 1 2 , 9 7 , 1 1 4 , 9 7 , 1 1 6 , 1 0 1
O B 2 1 7 2 . b y t e3 2 , 1 1 2 , 1 1 4 , 1 1 1 , 1 0 3 , 1 1 4 , 9 7
C A 2 1 7 3 . b y t e1 0 9 , 3 2 , 1 1 6 , 1 1 1 , 3 2 , 3 9 , 9 9 , 1 1 1
B P 2 1 7 4 . b y t e1 1 0 , 1 1 8 , 1 0 1 , 1 1 4 , 1 1 6 , 3 9 , 3 2
G P 2 1 7 5. b y t e1 2 1 , 1 1 1 , 1 1 7 , 1 1 4 , 3 2 , 9 7 , 1 1 5E O 2 1 7 6. b y t e1 1 5 , 1 0 1 , 1 0 9 , 9 8 , 1 0 8 , 1 0 1 , 1 1 4
A O 2 1 9 0. b y t e1 1 2 , 1 1 4 , 1 1 1 , 1 0 3 , 1 1 4 , 9 7 , 1 0 9
L P 2 1 9 1. b y t e3 2 , 1 0 1 , 9 7 , 9 9 , 1 0 4 , 3 2 , 1 1 6 , 1 0 5
H A 2 1 9 2 . b y t e1 0 9 , 1 0 1 , 3 2 , 1 2 1 , 1 1 1 , 1 1 7 , 3 2
J A 2 1 9 3. b y t e1 1 4 , 1 0 1 , 9 7 , 1 1 5 , 1 1 5 , 1 0 1 , 1 0 9
A C 2 1 9 4. b y t e9 8 , 1 0 8 , 1 0 1 , 3 2 , 1 0 5 , 1 1 6 , 4 6 , 3 2
F O 2 1 9 5. b y t e3 2 , 6 5 , 3 2 , 3 9 , 1 1 0 , 1 1 1 , 1 1 4 , 1 0 9
K L 2 1 9 6. b y t e9 7 , 1 0 8 , 3 9
F B 2 2 1 0. b y t e6 7 , 1 1 1 , 1 0 9 , 1 0 9 , 1 1 1 , 1 0 0 , 1 1 1
A N 2 2 1 1. b y t e1 1 4 , 1 0 1 , 3 2 , 1 1 2 , 1 1 4 , 1 1 1 , 1 0 3
F D 2 2 1 2. b y t e1 1 4 , 9 7 , 1 0 9 , 3 2 , 1 0 4 , 9 7 , 1 1 5 , 3 2
A D 2 2 1 3. b y t e1 1 6 , 1 0 4 , 1 0 1 , 3 2 , 1 0 8 , 1 1 1 , 9 7
O N 2 2 1 4. b y t e1 0 0 , 3 2 , 9 7 , 1 0 0 , 1 0 0 , 1 1 4 , 1 0 1
F I 2 2 1 5 . b y t e1 1 5 , 1 1 5 , 3 2 , 9 7 , 1 1 5 , 3 2 , 1 1 6
G O 2 2 1 6. b y t e1 0 4 , 1 0 1 , 3 2 , 1 0 2 , 1 0 5 , 1 1 4 , 1 1 5
K J 2 2 1 7. b y t e1 1 6
O C 2 2 3 0. b y t e1 1 6 , 1 1 9 , 1 1 1 , 3 2 , 1 0 0 , 9 7 , 1 1 6
D C 2 2 3 1. b y t e9 7 , 3 2 , 9 8 , 1 2 1 , 1 1 6 , 1 0 1 , 1 1 5 , 3 2
L C 2 2 3 2. b y t e1 1 1 , 1 0 2 , 3 2 , 1 1 6 , 1 0 4 , 1 0 1 , 3 2
E l 2 2 3 3. b y t e1 0 2 , 1 0 5 , 1 0 8 , 1 0 1 , 4 4 , 3 2 , 9 7
J E 2 2 3 4. b y t e1 1 0 , 1 0 0 , 3 2 , 1 1 5 , 1 1 6 , 9 7 , 1 1 4
K D 2 2 3 5 . b y t e1 1 6 , 1 1 5 , 3 2 , 1 0 1 , 1 2 0 , 1 0 1 , 9 9
O C 2 2 3 6. b y t e1 1 7 , 1 1 6 , 1 0 5 , 1 1 1 , 1 1 0 , 3 2 , 9 7
O K 2 2 3 7 . b y t e 1 1 6
J M 2 2 5 0 . b y t e1 1 6 , 1 0 4 , 9 7 , 1 1 6 , 3 2 , 9 7 , 1 0 0
F D 2 2 5 1. b y t e1 0 0 , 1 1 4 , 1 0 1 , 1 1 5 , 1 1 5 , 3 2 , 9 7
M C 2 2 5 2. b y t e1 0 2 , 1 1 6 , 1 0 1 , 1 1 4 , 3 2 , 9 8 , 1 0 1
F F 2 2 5 3. b y t e1 0 5 , 1 1 0 , 1 0 3 , 3 2 , 1 0 8 , 1 1 1 , 9 7
I D 2 2 5 4. b y t e1 0 0 , 1 0 1 , 1 0 0 , 4 6
O N 2 3 8 0. b y t e6 9 , 1 1 0 , 1 1 6 , 1 0 1 , 1 1 4 , 3 2 , 1 1 0
A N 2 3 8 1. b y t e9 7 , 1 0 9 , 1 0 1 , 3 2 , 1 0 2 , 1 1 1 , 1 1 4H C 2 3 8 2 . b y t e3 2 , 7 8 , 6 9 , 8 7 , 3 2 , 1 0 8 , 1 1 1 , 9 7
F P 2 3 8 3. b y t e1 0 0 , 1 0 1 , 1 1 4
A O 2 4 0 0 I n m s g 2 . b y t e1 1 2 , 1 1 4 , 1 1 1 , 1 0 3 , 1 1 4
E P 2 4 0 1. b y t e9 7 , 1 0 9 , 3 2 , 1 1 6 , 1 1 1 , 3 2 , 9 8 , 1 0 1
J D 2 4 0 2. b y t e3 2 , 9 9 , 1 1 4 , 1 0 1 , 9 7 , 1 1 6 , 1 0 1
G B 2 4 0 3. b y t e1 0 0 , 4 6
A G 2 5 1 0. b y t e6 9 , 1 1 0 , 1 1 6 , 1 0 1 , 1 1 4 , 3 2 , 1 1 0
O E 2 5 1 1 . b y t e 9 7 , 1 0 9 , 1 0 1 , 3 2 , 1 1 1 , 1 0 2 , 3 2 , 8 0
B A 2 5 1 2 . b y t e8 2 , 7 9 , 7 1 , 8 2 , 6 5 , 7 7 , 3 2 , 1 1 6
N L 2 5 1 3. b y t e1 1 1 , 3 2 , 1 0 8 , 1 1 1 , 9 7 , 1 0 0 , 4 6
N D 2 6 3 0 . b y t e8 4 , 1 0 4 , 9 7 , 1 1 6 , 3 2 , 1 0 2 , 1 0 5
K K 2 6 3 1 . b y t e1 0 8 , 1 0 1 , 3 2 , 9 7 , 1 0 8 , 1 1 4 , 1 0 1
K K 2 6 3 2. b y t e9 7 , 1 0 0 , 1 2 1 , 3 2 , 1 0 1 , 1 2 0 , 1 0 5
O M 2 6 3 3. b y t e1 1 5 , 1 1 6 , 1 1 5 , 4 6
O G 2 6 5 0e r r m s g 2. b y t e7 9 , 7 5 , 3 2 , 1 1 6 , 1 1 1 , 3 2
H J 2 6 5 1 . b y t e1 1 1 , 1 1 8 , 1 0 1 , 1 1 4 , 1 0 8 , 9 7 , 1 2 1
C F 2 6 5 2. b y t e3 2 , 6 3
F I 2 8 2 0 . b y t e7 6 , 1 1 1 , 9 7 , 1 0 0 , 1 0 1 , 1 1 4 , 7 7 , 9 7
F K 2 8 2 1. b y t e1 0 7 , 1 0 1 , 1 1 4 , 8 6 , 4 9 , 4 6 , 4 8
L M 2 8 4 0 . b y t e7 8 , 1 0 5 , 9 9 , 1 0 7 , 3 2 , 8 6 , 1 1 4 , 1 1 6
I L 2 8 4 1. b y t e1 0 5 , 1 1 5 , 3 2 , 4 5 , 4 5 , 3 2 , 4 9 , 5 7
N C 2 8 4 2. b y t e5 6 , 5 6
K L 2 8 8 0. b y t e7 6 , 1 1 1 , 9 7 , 1 0 0 , 3 2 , 9 7 , 1 1 0 , 1 0 0
P L 2 8 8 1. b y t e3 2 , 8 2 , 1 1 7 , 1 1 0 , 3 2 , 9 7 , 3 2 , 7 1
D M 2 8 8 2. b y t e6 9 , 7 9 , 8 3 , 3 2 , 1 1 2 , 1 1 4 , 1 1 1 , 1 0 3
A P 2 8 8 3. b y t e1 1 4 , 9 7 , 1 0 9 , 3 2 , 9 9 , 1 1 4 , 1 0 1 , 9 7
J K 2 8 8 4 . b y t e1 1 6 , 1 0 1 , 1 0 0 , 3 2 , 9 8 , 1 2 1 , 3 2 , 9 7
D K 2 8 8 5. b y t e3 2 , 1 1 0 , 1 1 1 , 1 1 0 , 4 5 , 7 1 , 6 9 , 7 9
H M 2 8 8 6. b y t e8 3 , 3 2 , 9 7 , 1 1 5 , 1 1 5 , 1 0 1 , 1 0 9 , 9 8
A D 2 8 8 7. b y t e1 0 8 , 1 0 1 , 1 1 4 , 4 6 , 3 2 , 3 2
L N 2 8 9 0. b y t e8 4 , 1 0 4 , 1 0 5 , 1 1 5 , 3 2 , 1 1 2 , 1 1 4
K O 2 8 9 1. b y t e1 1 1 , 1 0 3 , 1 1 4 , 9 7 , 1 0 9 , 3 2 , 1 0 8
C B 2 8 9 2. b y t e1 1 1 , 9 7 , 1 0 0 , 1 1 5 , 3 2
G E TM O R EP L E A S U R E
F R O MT H E
B I B L EW I T H
L A N D M A R
T h e C o m p u t e rR e f e r e n c eB i b l e
H e r e ' sw h a tL A N D M A R Kw i l le n a b l ey o ut o d o :
• S E A R C HT H EB I B L E — F i n dP h r a s e s ,w o r d so r s e n t e n c e s .
• D E V E L O PT O P I C A LF I L E S — C o p yf r o mT h eB i b l et e x t
a n ds e a r c hr e s u l t st h e na d dy o u ro w nc o m m e n t sa n dn o t e s .
• C O M P I L EY O U RP E R S O N A LB I B L E - O u t l i n et e x t si n
c o l o r .A d dn o t e s ,c o m m e n t s ,a n dr e f e r e n c e s .M a k ey o u rB i b l e
S t u d y o r g a n i z e da n do n p e r m a m e n tr e c o r d !
• C R E A T EF I L E S —T h e nc o n v e r tt h e mf o ru s ew i t hw o r d p r o c e s s o r sl i k eP a p e r c l i pa n dG E O S .
• M A K ES U P P L E M E N T A R YS T U D YF I L E S - F o rs p e c i f i c
s t u d ya n dd e v e l o pt r a n s l a t i o nv a r i a t i o n s .
N E WL O WP R I C E !$ 1 1 9 . 9 5
v l . 2f o rC 6 4a n dv 2 . 0f o rC 1 2 8C A L LO RW R I T ET O D A Y F O RA F R E EB R O C H U R E
W H I C H S H O W SH O WV A L U A B L EL A N D M A R KC A NB EI N Y O U RB I B L ES T U D Y
P . A . V . Y .S o f t w a r eP . O .B o x1 5 8 4
B a l l w i n ,M O6 3 0 2 2( 3 1 4 )5 2 7 - 4 5 0 5
F a s t e r t h a n aS p e e d i n gC a r t r i d g e
M o r eP o w e r f u lt h a n aT u r b oR O MI t ' sF a s t ,I t ' sC o m p a t i b l e ,I t ' sC o m p l e t e ,I t ' s . . .
J i f f v E K tU l t r a - F a s tD i s k O p e r a t i n gS y s t e mf o r t h eO 6 4 ,S X - 6 4A C - 1 2 8
• S p e e d su pa l ld i s ko p e r a t i o n s .L o a d ,S a v e ,F o r m a t ,S c r a t c h ,V a l i d a t e ,a c c e s s
P R G , S E Q ,R E L ,& U S Rf i l e su pt o1 5 t i m e sf a s t e r l
• U s e s n op o r t s ,m e m o r y ,o re x t r ac a b l i n g .T h eJ i f f y O O SR O M su p g r a d ey o u r
c o m p u t e ra n dd n v e ( s )i n t e r n a l l y f o rm a x i m u ms p e e da n dc o m p a t i b i l i t y .
• G u a r a n t < » d 1 0 0 \ c o m p t t l b l « w r t h a l l 8 o f t w i r t a r > d h t r d J i f f y O O Ss p e e d s
u pt h el o a d i n ga n dI n t e r n a l f i l e - a c c e s so p e r a t i o no fv i r t u a l l ya l l c o m m e r c i a ls o f t w a r e .
• B u i l t - i nD O SW e d g ep l u s1 4a d d i t i o n a lc o m m a n d sa n dc o n v e n i e n c ef e a t u r e s
i n c l u d i n go n e - k e yl o a o V s a v e / s c r a t c h , d i r e c t o r ym e n ua n ds c r e e nd u m p .• E a s yd o - i t - y o u r s e l fi n s t a l l a t i o n .N oe l e c t r o n i c se x p e r i e n c eo rs p e c i a lt o o l s r e
q u i r e d .I l l u s t r a t e ds t e p - b y - s t e pi n s t r u c t i o n s I n c l u d e d .
A v a i l a b l ef o rC - 6 4 , 6 4 C ,S X - 6 4 ,C - 1 2 8& C - 1 2 8 D( J r f f y D O S / 1 2 8s p e e d su pb o t h6 4
a n d1 2 8 m o d e s )a n d 1 5 4 1 , 1 5 4 1 C ,1 5 4 1 4 , 1 5 7 1 , 1 5 8 1 , F S D - 1 & 2 ,M S DS D - 1 & 2 ,
E x c e l2 0 0 1 , E n h a n c e r 2 0 0 0 , A m t e c h , S w a n , l n d u s A B I u e c h
i n c l u d e sR O M sf o rc o m p u t e ra n d1 d i s kd r i v e ,s t o c k / J i f f y D O S s w i t c h i n gs y s t e m ,
i l l u s t r a t e d i n s t a l l a t i o ni n s t r u c t i o n s ,U s e r ' sM a n u a l a n dM o n e y - B a c kG u a r a n t e e .
j C r e a t i v eM i c r oD e s i g n s ,I n c .
□
T r a n s a c t o r 3 9 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 42/84
A nI n t r o d u c t i o nT o G E O SF i l e s
U s i n gt h eh i g h - l e v e ld i s kr o u t i n e s
b y F r a n c i sG . K o s t e l l a
W h i l ec o d i n gm y f i r s ta t t e m p t sa t a w o r k i n gG E O Sp r o g r a m ,I
w a so v e r w h e l m e d- a n dm o r et h a na l i t t l ec o n f u s e d- a t t h e
s e e m i n gc o m p l e x i t yo f t h e G E O Sk e r n a l .A f t e ra l l , t h e r e a r e
a l m o s t2 0 0 c a l l a b l er o u t i n e sa n d h u n d r e d so f v a r i a b l e s
a v a i l a b l et o t h ep r o g r a m m e r , a n dI b e l i e v eI ' v eh a dt h eo p p o r
t u n i t yt o u s em o s to f t h e mt h ew r o n gw a y ! B u ta b i to f p e r s i s
t e n c ed o e sp a yo f f a n d ,a f t e ra w h i l e , t h es t r u c t u r eb e g i n st o
m a k es e n s e .W h a to n c es e e m e dl i k eh o o p st o b e j u m p e d
t h r o u g hb e c a m es i m p l em e t h o d so f a c h i e v i n gc o m p l e xr e s u l t s .
M yf i r s tf e wp r o g r a m sa v o i d e du s i n ga n yt y p eo f d i s ka c c e s s ,
e x c e p tt o e x i tt h ep r o g r a ma n dr e l o a dt h eD e s k T o p .B u tl a t e rI
b e c a m ea b i tb o l d e ra n dd e c i d e dt o t a k ea l o o ka t t h ed o z e n so f
d i s kr o u t i n e s a v a i l a b l ea n dt r y t ou s et h e mi n m y p r o g r a m s
( b e s i d e s ,m yp r o g r a m s w e r es t a r t i n g t oe a tu p a l l t h e a v a i l a b l e
m e m o r ya n dI ' dh a v et o l o a da n ds a v es e c t i o n st o d i s k ) .A f i r s t
g l a n c ei n T h eO f f i c i a lG E O S P r o g r a m m e r sR e f e r e n c eM a n u a l
f r o mB e r k e l e yS o f t w o r k ss h o w e do v e r5 0 d i s k r o u t i n e s
a v a i l a b l e ,s o I p r e p a r e d m y s e l ft o w r i t ea n u m b e ro f c o m p l e x
s e t u p r o u t i n e sa n dt o d o h o u r s o fd e b u g g i n g .
W e l l ,m y f i r s te f f o r t sf a i l e dm i s e r a b l y ,b u t f u r t h e rs t u d y
s h o w e dt h a tI w a su s i n g t o om a n yr o u t i n e s .L o o k i n g b a c ki t
s e e m sI w a st r y i n gt o u s ea s m a n yo f t h e a v a i l a b l e r o u t i n e sa s
p o s s i b l e ,w h e no n eo r t w ow o u l dh a v es u f f i c e d .T h eg r e a t
m a j o r i t yo f t h ed i s kc a l l sa r et h e p r i m i t i v e st h a tm a k eu p t h e
h i g h e rl e v e lr o u t i n e st h a tl o a da n ds a v ev l i ra n dG E O SS E Q
f i l e s .
L o a d i n ga f i l ei s e a s i l ya c c o m p l i s h e d o n c ey o uh a v et h ef i l e
n a m e , a n dt h er e c o r dn u m b e ri f t h ef i l ei s a v l i rf i l e .T o l o a d aG E O SS E Q u e n t i a ls t r u c t u r ef i l e ,w e s i m p l yp u tt h ea d d r e s so f
t h en u l l - t e r m i n a t e d f i l e n a m es t r i n g i n t ot h ez e r op a g er e g i s t e r
r 6 ( $ 0 E / 0 F ) ,s t o r ea z e r oi n r O ( $ 0 2 )a n dt h e n J S Rt o $ C 2 0 8
[ G e t F i l e ( L O A D ) ] .( T h r o u g h o u tt h i sa r t i c l e ,a n di n t h ep r o g r a m
l i s t i n g ,t h eh e xa d d r e s so f t h e r o u t i n ei s u s e d ,f o l l o w e db y t h e
B S Wl a b e la n dt h e B o y c el a b e l . )T h ef i l e i s l o a d e dt o t h e
a d d r e s si n t h ef i l e ' sH e a d e rB l o c k .I f w e w a n tt o l o a dt h ef i l e
t o a d i f f e r e n ta d d r e s s ,w e s t o r ea 1 i n r O ,a n dp a s st h ea d d r e s s
t o l o a di n r 7 ( $ 1 0 / 1 1 ) .F i l e n a m e sa r ee a s i l yo b t a i n e df r o md i s k
o r f r o mt h eu s e rw i t h ad i a l o gb o x( s e et h ee x a m p l ep r o g r a m ) .
I f w e ' r et r y i n g t ol o a da r e c o r df r o ma V L I Rf i l ew e f i r s to p e nt h ef i l eb y p a s s i n gt h ep o i n t e rt o t h ef i l e n a m ei n r O ( $ 0 2 / 0 3 )
t h e nc a l l i n g$ C 2 7 4[ O p e n R e c o r d F i l e( V O P E N ) . ]N e x tw e p a s s
t h er e c o r dn u m b e rw e w a n ti n . A a n dJ S R$ C 2 8 0[ P o i n t R e c
( G O T O ) . ]W e ' r en o wp o i n t i n ga t t h er e c o r d ,t o l o a di t p a s st h e
l o a d a d d r e s si n r 7 ,a n dt h e n u m b e ro f b y t e se x p e c t e di n r 2
( $ 0 6 / 0 7 ) .F i n a l l y , a f t e rt h er e c o r di s r e a di n , ( a s s u m i n g w
d o n er e a d i n gr e c o r d s )w e c l o s et h e f i l e w i t h J S R$ C 2 7
[ C l o s e R e c o r d F i l e( V C L O S E ) . ]
T o s a v ea f i l e o f a n y t y p e ,w e n e e dt o c r e a t ea n a r e ai n
m e m o r yt h a t w i l lb e s a v e dt o d i s k a s t h eH e a d e r B l
a t t a c h e dt o t h ef i l e .T h eH e a d e ri s 2 5 6b y t e sl o n ga n dw i l lt e l l
t h e s a v er o u t i n e t h ef i l et y p e ,f i l es t r u c t u r e ,l o a da d d r e s s ,e t c .
E x a c td e s c r i p t i o n so f t h e s t r u c t u r eo f t h eH e a d e rc a nb e f o u n
i n e i t h e rA l e xB o y c e ' sm a n u a lo r t h eB S WP R G ,b u tt h e r e a r ea
f e w b y t e s w e ' l lu s e w h e ns a v i n ga f i l e t h a t s h o u l db e
e x p l a i n e d .
W h e nt h eH e a d e ri s w r i t t e nt o d i s k ,t h e f i r s tt w ob y t e sw i l l
b e r e p l a c e d w i t h$ 0 0$ F Ft o i n d i c a t et h a tt h ee n t i r es e c t o ri s
u s e d a n dn o o t h e r ,b u t w h i l et h eH e a d e ri s s t i l li n R A M ,t h e s e
t w ob y t e sw i l lb e u s e dt o p o i n tt o a n u l l - t e r m i n a t e d f i
T h i si s t h en a m et h a t w i l lb e u s e di n t h ef i l e ' sd i r e c t o r ye n t r y .
A f e wo t h e r b y t e sw i l lb e u s e dt o b u i l dt h e d i r e c t o r ye n t r y .
B y t e6 8 i n t h e H e a d e rw i l lh o l dt h e n o r m a lD O Sf i l et y p e
( u s u a l l y$ 8 3 ,U S R ) .B y t e6 9 w i l ld e s c r i b eo n eo f t h eG E O Sf i l e
t y p e s( f o n t ,a p p l i c a t i o nd a t a ,d e s ka c c e s s o r y ,a n d s o o n ) .
B y t e 7 0w i l lt e l lu s t h eG E O Sf i l es t r u c t u r e ,1 f o rv l i ra n d0
f o r G E O Ss e q u e n t i a l .T h e n e x tt w o p a i r so f b y t e sa r e
a d d r e s s e s :7 1 / 7 2i s t h e l o a d / b e g i n n i n ga d d r e s s ,7 3 / 7 4i s t h e
e n da d d r e s s .
T o s a v ea n a r e ao f m e m o r ya s a G E O Ss e q u e n t i a lf i l e ,w e s e t
u p t h ea b o v e m e n t i o n e db y t e sa n da d d r e s s e s , l o a dt h ea d d r e s
o f t h eH e a d e ri n t or 9 ( $ 1 4 / 1 5 ) ,p u ta z e r oi n t or l O l( $ 1 6 )a n d
c a l l$ C 1 E D[ S a v e F i l e( S A V E ) . ]
T o s a v e aV L I Rr e c o r d ,w e m u s tf i r s tc r e a t e t h ef i l e .C a l l
$ C 1 E Da s a b o v e , b u ts e t t h eb e g i n n i n ga d d r e s si n t h eH e a d e
t o $ 0 0 0 0a n dt h ee n da d d r e s st o $ F F F F .( I ft h eV L I Rf i l ei s a n
e x e c u t a b l ef i l e ,p u tt h e l o a da d d r e s so f t h e f i r s tr e c o r di n t o
H e a d e rb y t e s7 1 / 7 2 ,t h el o a da d d r e s s - 1i n t o7 3 / 7 4 ,a n dt h ej m p
a d d r e s si n t o7 5 / 7 6 . )N o ww e h a v et o c r e a t e t h e r e c o r df i r s t
o p e ni t , c a l l$ C 2 8 91 2 6t i m e s ,t h e nc l o s e t h eV L I Rf i l e ,l i k et h i s :
T r a n s a c t o r 4 0 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 43/84
I d a # < f i l n a m
s t a r O ; ( $ 0 2 )
I d a # > f i l n a m
s t a r O + 1
j s r $ c 2 7 4; o p e n r e c o r d f i l e( v o p e n )
l d y # 1 2 6
a l o o p
j s r $ c 2 8 9; a p p e n d r e c o r d( a p p e n d )
d e y
b n e a l o o p
j s r $ c 2 7 7; c l o s e r e c o r d f i l e( v c l o s e )
o w r i t ea r e c o r d ,s e l e c tt h e r e c o r db y c a l l i n g$ C 2 8 0
P o i n t R e c o r d ( G O T O ) ]w i t ht h e r e c o r dn u m b e ri n . A ,p u tt h e
e g i n n i n gs a v ea d d r e s si n r 7 ( $ 1 0 / 1 1 )a n dt h en u m b e ro f b y t e s
o s a v ei n r 2 ( $ 0 6 / 0 7 )a n dJ S R$ C 2 8 F[ W r i t e R e c o r d( v s a v e ) . ]
h eG E O Sd i s k r o u t i n e sd o t h e i ro w ne r r o rc h e c k i n ga n du s u a l
y r e t u r n e r r o rn u m b e r si n t h e. X r e g i s t e r .U s i n gt h ea b o v er o u
i n e sf o rs i m p l e l o a d i n ga n ds a v i n g ,t h eo n l ye r r o r I ' v eh a dt o
e a lw i t hi s # 1 1 :r e c o r de m p t y ,w h e na t t e m p t i n gt o t or e a da
o n e x i s t e n tV L I Rr e c o r d .O f c o u r s e ,m o r ec o m p l e xa p p l i c a
i o n s w i l lw a n tm o r ee l a b o r a t ee r r o rc h e c k i n g .S e et h ea b o v e -
m e n t i o n e d p r o g r a m m e r ' sr e f e r e n c eg u i d e sf o rm o r ed e t a i l s .
A n o t h e rt h i n gI s h o u l dm e n t i o n ,i s t h a tt h e a b o v er o u t i n e s
s s u m et h a ty o ua r en o tc h a n g i n gd i s kd e v i c e sn o rs w a p p i n g
i s k s .C h a n g i n gd r i v e si s a c c o m p l i s h e db y c a l l i n g$ C 2 B 0
S e t D e v i c e( D R V S E T ) ]w i t ht h e d e v i c en u m b e ri n . A . T h i s
h o u l db e f o l l o w e db y a c a l lt o $ C 2 A 1[ O p e n D i s k( O P N D S K ) ]
w h i c hi s a l s ou s e dt o r e a d an e w l yi n s e r t e dd i s k .T h e s et w o
o u t i n e s ,w h e nu s e d ,s h o u l db e c a l l e db e f o r e u s i n ga n yo f t h e
o a d o rs a v er o u t i n e sd e t a i l e da b o v e .
A b o u tt h ep r o g r a m s
r o g r a m2 , I c o n D e f i n e rw i l l t r a n s l a t ea p h o t of r o ma P h o t o
A l b u mi n t oa f o r mr e a d i l y d i g e s t i b l eb y y o u ra s s e m b l e r .I u s e
h i s p r o g r a mt o ' g r a b 'm y c o m p a c t e di c o nd r a w i n g sf r o m
e o P a i n tf o ru s ei n m yp r o g r a m s .I n f a c t ,t h ei c o n su s e di n t h e
r o g r a m w e r et r a n s l a t e db y a n e a r l i e rv e r s i o no f t h i sp r o g r a m .
A f e wn o t e s :T h ef i r s tt h r e eb y t e so f t h eg r a p h i ca r e t h ew i d t h
n dh e i g h to f t h eb i t m a p ;y o us h o u l dd e l e t et h e mo r c o m m e n t
h e mo u ta s t h e yw i l l i n t e r f e r ew i t ht h e G E O Su n c o m p a c t i n g
o u t i n e s .A l s o ,t h el a s tf e wb y t e sa r et h ec o l o u r i n f o r m a t i o nf o r
h eb i t m a p .I f y o uh a v ea c o p yo f t h eB S WP R G ,s e eA p p e n d i x
D ; o t h e r w i s e ,y o uc a nl e a v et h e mi n , o r c a l c u l a t et h e mf r o m
h ew i d t ha n dh e i g h tb y t e s .
h er e s u l t i n gS E Qf i l ec a n b ec o n v e r t e dt o a P R Gf i l ew i t hP r o
r a m1 , w h i c hi s f r o ma n e a r l i e rT r a n s a c t o r .I f y o u ' r et r a n s l a t
n g l o t so f i c o n s ,u s et h eD O Sc o m m a n dC O :t o c o n c a t e n a t e a
r o u po f S E Qf i l e st o s a v et i m e .I f y o u ' dl i k et o h a v ea G E O S
H e a d e ra t t a c h e dt o t h eo u t p u tf i l e ,c h a n g eb y t e6 9 t o 3 . T h e
r o g r a mi s e a s i l ym o d i f i e dt o a c c e p td i f f e r e n ti n p u ta n do u t p u ti l e s ,s o e x p e r i m e n t .I ' d l i k et o t h a n kJ o eB u c k l e yf o re x p l a i n
n gt o m e t h eu s e o ft h eu n d o c u m e n t e dr o u t i n eA p p e n d R e c o r d .
P r o g r a m1 : " c o n v e r t s e q t o p a l "
C M 0 r e m s a v e " c o n v e r t s e q t o p a l " ,8
P I 1 0 o p e n l , 8 , 2 , " 0 : f i l e n a m e " : 1 = 1 0 0 0
E A 2 0 p r i n t "{ d r }{ d o w n } ": f o r i = 0 t o 8 : p r i n t1 ; : 1 = 1 + 2
D P 3 0 g e t # l , a $ : s = - ( s t = 0 ) : i f s = 0 g o t o 5 0
B G 4 0 i f a $ O c h r $ ( 1 3 ) t h e n p r i n t a $ ;: g o t o 3 0
D 6 5 0 p r i n t : n e x t i
M B 6 0 i £ s t h e n p r i n t " l = n ; l ; " : p o k e l 5 2 , l : g o t
K N 7 0 f o r i = 6 3 1 t o 6 3 9 + s : p o k e i , 1 3 : n e x t
K H 8 0 p o k e l 9 8 ,9 + s :d o s e l - s : p r i n t "{ h o m e }" ; : e n d
O M 9 0 :
P r o g r a m2 : " i c o nd e f i n e r . s r c "
L B 1 0 0 0
D M 1 0 1 0
N A 1 0 2 0
M H 1 0 3 0
M E 1 0 4 0
F F 1 0 5 0
K D 1 0 6 0
N E 1 0 7 0
A 6 1 0 8 0
K J 1 0 9 0
D H 1 1 0 0
P I 1 1 1 0
M L 1 1 2 0
M 6 1 1 3 0
P H 1 1 4 0
C J 1 1 5 0
P D 1 1 6 0
I A 1 1 7 0
I F 1 1 8 0
0 6 1 1 9 0
A P 1 2 0 0
E l 1 2 1 0
M 6 1 2 2 0
F G 1 2 3 0
O E 1 2 4 0
I L 1 2 5 0
C G 1 2 6 0
C M 1 2 7 0
K L 1 2 8 0
L B 1 2 9 0
C P 1 3 0 0
A J 1 3 1 0
D P 1 3 2 0
B A 1 3 3 0
A P 1 3 4 0
P A 1 3 5 0
I J 1 3 6 0
B D 1 3 7 0M F 1 3 8 0
B G 1 3 9 0
R O 1 4 0 0
I P 1 4 1 0
I F 1 4 2 0
G N 1 4 3 0
C C 1 4 4 0
G G 1 4 5 0
O B 1 4 6 0
J N 1 4 7 0
O D 1 4 8 0
L I 1 4 9 0
I H 1 5 0 0
E G 1 5 1 0
M I 1 5 2 0
A H 1 5 3 0
I A 1 5 4 0
E l 1 5 5 0
o p e n 2 , 8 , l , " 0 : i d "
s y s 7 0 0
. o p to 2
s t a r t = $ 0 3 0 4
; - - e q u a t e s - -
r O = $ 0 2
= $ 0 4
= $ 0 6
= $ 0 c
= $ 1 0
= $ 1 4
= $ 1 6
= $ 7 0
= $ 7 2
a 4 = $ 7 4
d i s b u f = $ 2 f
p l o a d= <
p d e p t h = $ 0 b 0 1
p s t a r t = $ 0 b 0 3
s b e g i n = $ 2 0 d 0
; m a x3 4 9l i n e s
r e c v e c =$ 8 4 b l
* = s t a r t
f o r e / b a c k s c r e e n w r i t e( d i s p l a y b u f f e r o n )
l o a d p h o t oh e r e , i s a l s ow i d t h b y t e
d e p t h s t o r e d h e r e
1 s t b y t eo f b i t m a p
s t a r ts e qs a v eh e r e
o f 1 6 b y t e s e a c h
r e c o v e r s c r e e n f r o m d i a l o gb o x
; l s t 4 b y t e sc o m m e n t e do u t
; t h e y w i l l b ep l a c e di n t h e
; f i l e h e a d e rb y " m a k e t o g e o s "
; . b y t e $ 0 0 , $ f f
; . b y t e 3 , 2 1; 3 x 2 1 i c o n
. b y t e$ b f , $ f f , $ f f , $ f f , $ 8 2 , $ 2 0 , $ 0 1
. b y t e$ 8 4 , $ 5 0 , $ 0 1 , $ 8 9 , $ 8 8 ,$ 0 1
. b y t e$ 8 4 , $ 8 4 , $ 0 1 , $ 8 e , $ 5 2 , $ 0 1 , $ 8 7
. b y t e$ 3 1 ,$ 0 1 ,$ 8 3 , $ 9 8 , $ 8 1 ,$ 8 1 ,$ d ,$ 8 1 , $ f 4
. b y t e$ e 3 , $ 0 1 , $ 8 c , $ f f , $ 0 1 , $ f 4 , $ a l , $ 0 1
. b y t e$ 8 4 , $ 5 2 , $ 0 1 , $ 8 4 , $ 5 2 ,$ c l , $ 8 4 ,$ a l
. b y t e$ 7 9 , $ 8 4 , $ 8 0 , $ 5 5 , $ 8 f , $ a 0 , $ 6 d , $ 8 4
. b y t e$ a l , $ 5 7 , $ 8 0 , $ 5 2 , $ c b , $ 8 0 , $ 3 c , $ 0 d
. b y t e $ f f , $ f f , $ f f
. b y t e$ 8 3
. b y t e6
. b y t e0
. w o r d s a d d r
. w o r de n d c o d
. w o r ds t j u m p
; c =f i l e t y p e u s e r
/ a p p l i c a t i o n
; g e o ss e q f i l e
/ s t a r ta d d r
/ e n d a d d r
/ s t a r ta d d rj u m p
. a s c" i c o nd e f i n e r v l . O "
. b y t e0 , 0 , 0 , 0
. a s c" f . g . k o s t e l l a "
. b y t e0 , 0 , 0 , 0
/ t h er e s t o f t h e h e a d e ri s n o tu s e dh e r e
r a n s a c t o r 4 1 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 44/84
O N 1 5 6 0; — s t a r tg e o sf i l e - —
I M 1 5 7 0 * =s t a r t + $ f c
E l 1 5 8 0s t j u m p = * / t h e s ea r e t h e s t a r t i n gp o i n t s
L E 1 5 9 0 s a d d r = * / s p e c i f i e d i n t h i s f i l e ' sh e a d e r
N C 1 6 0 0 I d a§ 1
C J 1 6 1 0s t a e r f l a g / f o r f i r s t c a l l
N G 1 6 2 0 j s rc l r s c r / g i v ei n s t r u c t i o n s
J N 1 6 3 0j s r d o i c o n / d o i c o n s
G L 1 6 4 0 r t s ; t o m a i n l o o p
F N 1 6 5 0; — i n i t i a l s c r e e n—D H 1 6 6 0 c l r s c r = *
B H 1 6 7 0 I d a# 0
M J 1 6 8 0j s r $ d 3 9 / s e t p a t t e r n( s e t p a t )
E O 1 6 9 0 j s r$ d 9 f ; i . r e c t a n g l e( p f i l l 2 )
P T n f l f l K t r f Af l 1 Q Qb u i r u u . o y t eu , i 7 ?
N O 1 7 1 0w o r 0 3 1 9
0 0 1 7 2 0; t u r n o f f t h e b a c k g r o u n d s c r e e n
F A 1 7 3 0; ( w e ' r eu s i n gt h a tr a m )
G J 1 7 4 0; i n s e r t o u r o w n r o u t i n e i n t o t h e
A J 1 7 5 0; d b s c r e e n r e c o v e rv e c t o r .
A A 1 7 6 0 I d a d i s b u f
A N 1 7 7 0a n d1 * 1 0 1 1 1 1 1 1/ b i t6 - b a c k g r o u n d e n a b l e
C F 1 7 8 0 s t a d i s b u f
H D 1 7 9 0I d a i < r e c o v r/ o u rr o u t i n e
G H 1 8 0 0 s t a r e c v e c / g e o sv e c t o r
E D 1 8 1 0I d af l > r e c o v r
M E 1 8 2 0 s t a r e c v e c + 1
M J 1 8 3 0;
N G 1 8 4 0 j s r$ d a 2 ; i . f r a m e r e c t a n g l e( p b o x 2 )
L H 1 8 5 0. b y t e0 , 1 6
K I 1 8 6 0. w o r1 4 4 , 3 1 9
F L 1 8 7 0 . b y t e $ f f / s o l i d l i n e
M J 1 8 8 0; p r i n t s o m eu s e r h e l pi n f o
K G 1 8 9 0; f i r s td r a wt h e ' f a k e 'i c o n s
I N 1 9 0 0 j s r$ d a b / i . b i t m a p u p( c b o x 2 )
N G 1 9 1 0. w o ri c o n c h
P E 1 9 2 0 . b y t e3 , 6 0 , 6 , 1 6
C O 1 9 3 0 j s r$ d a b
O L 1 9 4 0. w o rl a r r o w
L G 1 9 5 0 . b y t e3 , 8 4 , 3 , 1 6
A A 1 9 6 0j s r $ d a b
C O 1 9 7 0. w o rr a r r o w
I E 1 9 8 0. b y t e3 , 1 0 8 , 3 , 1 6
O B 1 9 9 0 j s r$ c l a b
A A 2 0 0 0. w o ri c o n s a
N F 2 0 1 0. b y t e3 , 1 3 2 , 6 , 1 6
H f l 2 0 2 0; t e l lw h a tt h e yd o
P D 2 0 3 0 j s r$ d a e / i . p u t s t r i n g( d s p t x 2 )
D L 2 0 4 0. w o r 2 4
0 0 2 0 5 0. b y t e4 0 , 2 4
F M 2 0 6 0. a s c" i c o nd e f i n e rv l . O "
K A 2 0 7 0 . b y t e0
L H 2 0 8 0j s r $ c l a e
F O 2 0 9 0 . w o r2 4
P P 2 1 0 0. b y t e 5 2
O B 2 1 1 0. a s c" b yf . g . k o s t e l l af o r "
K G 2 1 2 0. b y t e1 4 ; u n d e r l i n e o n
K C 2 1 3 0. a s c " t h et r a n s a c t o r "
C H 2 1 4 0. b y t e1 5 , 0 ; o f fB M 2 1 5 0 j s r $ c l a e
J C 2 1 6 0. w o r8 0
L E 2 1 7 0. b y t e 7 2
P O 2 1 8 0. a s c " ap h o t o a l b u m "
C I 2 1 9 0. b y t e0
D P 2 2 0 0 j s r$ d a e
E G 2 2 1 0. w o r 5 6
D J 2 2 2 0 . b y t e9 6
P D 2 2 3 0. a s c" p r e v i o u sa l b u mr e c o r d "
E L 2 2 4 0. b y t e0
F C 2 2 5 0j s r $ d a e
G J 2 2 6 0. w o r 5 6
N M 2 2 7 0. b y t e 1 2 0
E F 2 2 8 0. a s c" n e x ta l b u mr e c o r d "
G O 2 2 9 0. b y t e0
H F 2 3 0 0 j s r$ d a eP L 2 3 1 0. w o r8 0
L A 2 3 2 0. b y t e 1 4 4
T r a n s a c t o r
A I 2 3 3 0. a s c" c u r r e n ta l b u mr e c o r d "
I B 2 3 4 0. b y t e0
K B 2 3 5 0 r t s
L P 2 3 6 0; — i c o n s—D E 2 3 7 0d o i c o n= *
K A 2 3 8 0 I d a# < m y i c o n
O K 2 3 9 0s t a r O
K B 2 4 0 0I d a# > m y i c o n
E l 2 4 1 0s t a r 0 + l
G B 2 4 2 0 j s r $ c l 5 a
K G 2 4 3 0r t s
O P 2 4 4 0/
H B 2 4 5 0m y i c o n= *
B D 2 4 6 0. b y t e5 , 9 9 , 0 , 9 9
K J 2 4 7 0. w o ri c o n c h
C G 2 4 8 0. b y t e0 , 0 , 6 , 1 6
L G 2 4 9 0. w o rc h o o s e
U N z o v u. w o ri c o n e x
D L 2 5 1 0 . b y t e3 8 , 0 , 2 , 1 6
L P 2 5 2 0. w o rd o e x i t
M A 2 5 3 0. w o rl a r r o w
A B 2 5 4 0. b y t e6 , 0 , 3 , 1 6
M N 2 5 5 0. w o rd o l a s t
A D 2 5 6 0. w o rr a r r o w
H D 2 5 7 0 . b y t e9 , 0 , 3 , 1 6
O B 2 5 8 0. w o rd o n e x t
O E 2 5 9 0. w o ri c o n s aP P 2 6 0 0 . b y t e 1 2 , 0 , 6 , 1 6
F H 2 6 1 0. w o rs a v e i t
' p u tu p i c o n s
* d o i c o n s( c b o x e s )
i c o nt a b l e s
I , x & y p o i n t e r
g r a p h i cp o i n t e r
x , y , w , h d i m e n s i o n s
s v cr t n p o i n t e r
B F 2 6 2 0/ — i c o ns e r v i c er o u t i n e s—B L 2 6 3 0 d o e x i t = *
H C 2 6 4 0 j m p $ c 2 2 c
I C 2 6 5 0; —F I 2 6 6 0c h o o s e= *
O A 2 6 7 0 j s rf i n d f l
D D 2 6 8 0c m p| 2
M M 2 6 9 0b e qc h o o s 2
G P 2 7 0 0 I d a# 0
I A 2 7 1 0 s t a r e c n u m
K I 2 7 2 0j m pg e t i t
D E 2 7 3 0 c h o o s 2= *
A K 2 7 4 0 r t s
M I 2 7 5 0; —
F J 2 7 6 0 d o n e x t = *
G C 2 7 7 0 i n c r e c n u m
H E 2 7 8 0b p l d o n e x 2
B N 2 7 9 0I d a§ 0
C G 2 8 0 0 s t a r e c n u m
L M 2 8 1 0 d o n e x 2 = *
0 0 2 8 2 0j m pg e t i t
M N 2 8 3 0; —
O D 2 8 4 0 d o l a s t = *
B F 2 8 5 0 d e cr e c n u m
P P 2 8 6 0b p lg e t i t
B C 2 8 7 0 I d af t O
C L 2 8 8 0 s t a r e c n u m
A M O Q Q f l•A H £ 0 ? U,
E P 2 9 0 0 g e t i t = *
F N 2 9 1 0 j s rd o n a m e
E H 2 9 2 0 j s r g e t r e c
O F 2 9 3 0 r t s
K E 2 9 4 0; —
D O 2 9 5 0 s a v e i t = *
O M 2 9 6 0 j s r g e t f n m
F F 2 9 7 0 c m p§ 2
D D 2 9 8 0b e qs a v e 2
K B 2 9 9 0 j s r r e c b y t
G D 3 0 0 0j s r s a v s e q
E P 3 0 1 0 s a v e 2 = *
I L 3 0 2 0 r t s
M D 3 0 3 0; — s e t u p& c a l ]
q u i ta p p l i c a t i o n
e n t e r d e s k t o p( r e s t r t )
c h o o s ea p h o t o a l b u m
p u t u p f i l e n a m e s
c a n c e ls e l e c t e d
s t a r tw i t hr e c# 0
n e x t r e c o r d
p r e v i o u sr e c o r d
p u tu p f i l e n a m e
a n d g e t t h er e c o r d
p r o m p t f o r s a v e n a m e
c a n c e l s e l e c t e d
t r a n s l a t e
s a v et o d i s k
d b t og e t f i l e n a m e—L K 3 0 4 0g e t f n m= * / u s e r e n t e r sn a m e o ff i l e
E E 3 0 5 0; c l e a r o u t f i l e n a m eb u f f e r
D O 3 0 6 0l d y# 1 6
J O 3 0 7 0I d a# 0
4 2 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 45/84
L A
E G
H N
L E
P 6
H E
G K
H F
M H
K I
E N
G E
K J
E
N N
P
G H
N A
D
O N
E
B
N
A
G
B
N
P
I
K
K
A
G
E
E
F
K
D
D
M
F
A
J
I
C
J
P
E
A
P
O
A
N
K
H
L
F
J
G
J
N
M
A
J
E
E
O
M
E
J
M
O
B
C
C
D
E
M
3 0 8 0 g e t f n 2 = *
3 0 9 0s t a s v n a m e , y
3 1 0 0d e y
3 1 1 0b p l g e t f n 2
3 1 2 0; r 5 t o h o l d s e l e c t e d n a m e i n d b
3 1 3 0 I d a# < s v n a m e
3 1 4 0s t a r 5
3 1 5 0I d a # > s v n a m e
3 1 6 0 s t ar 5 + l
3 1 7 0I d aK g e t n d b
3 1 8 0s t a r O
3 1 9 0 I d a# > g e t n d b
3 2 0 0s t a r 0 + l
3 2 1 0 j s r $ c 2 5 6
3 2 2 0I d ar O
3 2 3 0 r t s
3 2 4 0; —3 2 5 0; d b t a b l e
3 2 6 0 g e t n d b = *
3 2 7 0 . b y t e $ 8 1
3 2 8 0 . b y t e2 , 1 6 , 6 8
3 2 9 0. b y t e1 1 , 1 6 , 1 6
3 3 0 0. w o rg n m s t r
; a d d r o f d b t a b l e
; d o d l g b o x( w i n d o w )
; . a h o l d s # 2 i f c a n c e l
; r e t u r ni t t o c a l l e r
- r e t u r ns a v en a m ei n r 5p o i n t e r
s t a n d a r d p o s i t i o n
c a n c e li c o n
t e x t s t r c m n d
p o i n t e r
3 3 1 0. b y t e1 3 , 1 6 , 3 0 , $ 0 c , 1 6 , 0; g e t s t r d b c m n d( $ 0 c= r 5 )
3 3 2 0;
3 3 3 0g n m s t r= *
3 3 4 0. b y t e 2 4
3 3 5 0 . a s c" p l e a s ee n t e rf i l e n a m e "
3 3 6 0 . b y t e 2 7 , 0
3 3 7 0;
3 3 8 0; — s e t u p& c a l ]
3 3 9 0 f i n d f l = *
3 4 0 0; c l e a r o u t t h e
3 4 1 0l d y# 1 6
3 4 2 0 I d a§ 0
3 4 3 0 f i f l 2= *
3 4 4 0s t a p h n a m e , y
3 4 5 0d e y
3 4 6 0 b p l f i f l 2
3 4 7 0; s e a r c h f o r t h i s
3 4 8 0I d af 7
3 4 9 0s t a r 7
3 5 0 0; r e t u r n s e l e c t e d
3 5 1 0I d aK p h n a m e3 5 2 0 s t a r 5
3 5 3 0 I d a # > p h n a m e
3 5 4 0 s t ar 5 + l
. d b t of i n dp h o t oa l b u m so n d i s k—
p h n a m e
g e o sf i l e t y p e :
a p p l .d a t a
f i l e n a m e i n
3 5 5 0; s e a r c h f o r f i l e sw i t ht h i s
3 5 6 0; p e r m a n e n t n a m e
3 5 7 0I d a # < p e r m n m
3 5 8 0s t a r l O
3 5 9 0I d a# > p e r m n m
3 6 0 0s t a r l 0 + l
3 6 1 0 I d a# < f f i l d b;
3 6 2 0s t a r O
3 6 3 0I d a # > f f i l d b
3 6 4 0s t a r 0 + l
a d d ro f d b t a b l e
3 6 5 0 j s r $ c 2 5 6 ; d o d l g b o x
3 6 6 0I d ar O
3 6 7 0 r t s; r O i si n . a
3 6 8 0;
3 6 9 0; d b t a b l e
3 7 0 0f f i l d b= *
3 7 1 0. b y t e $ 8 1
3 7 2 0. b y t e1 6 , 4 , 4 ;
3 7 3 0. b y t e5 , 1 7 , 2 4;
3 7 4 0. b y t e2 , 1 7 , 7 2 , 0;
3 7 5 0;
3 7 6 0; p r i n t f i l e n a m e
3 7 7 0d o n a m e= *
3 7 8 0I d a# 9
3 7 9 0 j s r$ d 3 9
3 8 0 0 j s r$ d 9 f
3 8 1 0. b y t e0 , 1 5
3 8 2 0. w o r1 4 5 , 3 0 3
3 8 3 0 j s r$ d a e
3 8 4 0. w o r 1 6 0
3 8 5 0 . b y t e 1 0 , 3 2 , 0
r a n s a c t o r
s t a n d a r d
g e t f i l e s c m n d
o p e n i c o n
c a n c e l
t o s c r e e n
h o r z l i n e s
s p a c e , s e t p o s .
L L
G H
A P
M E
G F
M A
A L
F J
M L
J F
C J
G K
F G
A B
H L
G J
C I
N G
H F
P H
I G
C N
I K
G O
I H
J H
A B
M DF B
K K
E D
H D
E L
H D
E F
F J
F N
C A
M H
O N
N I
L P
M K
K E
I E
O C
L M
E A
I B
H N
P I
J C
J A
G I
I F
E L
I K
O A
E E
M H
I F
P F
E H
F K
A I
E B
P M
M E
K G
L A
K O
A A
M D
D L
C F
J L
I C
H F
4 3
3 8 6 0 I d aK p h n a m e
3 8 7 0s t a r O
3 8 8 0 I d a| > p h n a m e
3 8 9 0 s t a r 0 + l
3 9 0 0 j s r$ d 4 8
3 9 1 0I d a| 4 7
3 9 2 0 j s r$ d 4 5
3 9 3 0 I d ar e c n u m
3 9 4 0 s t a r O
3 9 5 0I d a# 0
3 9 6 0s t a r 0 + l
3 9 7 0 I d a # $ c 0
3 9 8 0 j s r$ d 8 4
3 9 9 0 I d a# 3 2/ s p a c e
4 0 0 0 j s r$ d 4 5
4 0 1 0 r t s
4 0 2 0; —4 0 3 0d o g r i d= *
4 0 4 0I d a| 1 6
4 0 5 0 j s r $ c l 3 9
4 0 6 0j s r $ d 9 f
4 0 7 0. b y t e1 6 , 1 9 9
4 0 8 0 . w o r d 0 , 3 1 9
4 0 9 0 r t s
4 1 0 0; — e r r o r r t n s
4 1 1 0n o r e c= *
4 1 2 0 j s r$ d a e
4 1 3 0 . w o r d 1 1 04 1 4 0. b y t e 1 0 2
/ s e l e c t e d f i l e
; s l a s h
; p u t c h a r( d s p c h r )
; r e c o r d#
; f l u s h l e f t
; p u t d e c i m a l( d s p n u m )
; d r a wg r i db e h i n db i t m a p
; s e t p a t t e r n
; i - r e c t a n g l e
—
; i . p u t s t r i n g
4 1 5 0. a s c" e m p t yr e c o r d"
4 1 6 0. b y t e0
4 1 7 0I d a# 1
4 1 8 0s t a e r f l a g
4 1 9 0 j s r $ c 2 7 7
4 2 0 0 r t s
4 2 1 0; - -
4 2 2 0d e r r o r= *
4 2 3 0p h a
4 2 4 0 j s r $ c l a e
4 2 5 0. w o r 1 1 0
4 2 6 0. b y t e 1 0 2
; c l o s e r e c o r d f i l e( v d o s e )
; e r r # i s i n . a
; i - p u t s t r i n g
4 2 7 0 . a s c" - d i s k e r r o r -I "
4 2 8 0 . b y t e0
4 2 9 0p l a
4 3 0 0p h a
4 3 1 0s t a r O
4 3 2 0I d a# 0
4 3 3 0 s t a r 0 + l
4 3 4 0I d a# $ c 0
4 3 5 0 j s r$ d 8 4
4 3 6 0 I d a# 3 2
4 3 7 0 j s r$ d 4 5
4 3 8 0 I d a# 1
4 3 9 0s t a e r f l a g
4 4 0 0 j s r $ c 2 7 7
4 4 1 0p l a
4 4 2 0c r o p# 1 1
4 4 3 0b n ed e r r 2
4 4 4 0 j s r$ d a e
4 4 5 0. w o r d 1 1 0
4 4 6 0 . b y t e1 1 1
; f l u s h l e f t
; p u t d e c i m a l( d s p n u m )
; e r r 1 1 = t o o l o n g
; w a s t h er e c o r d t o ol o n g
; i - p u t s t r i n g
4 4 7 0. a s c" - r e c o r d t o ol o n g -"
4 4 8 0 . b y t e0
4 4 9 0d e r r 2= *
4 5 0 0 r t s
4 5 1 0;
4 5 2 0e r f l a g. b y t e0
4 5 3 0; — d r a w t h e p h o t o—4 5 4 0d r a w p h= *
4 5 5 0 I d a # > p s t a r t
4 5 6 0 s t a r 0 + l
4 5 7 0I d a# < p s t a r t
4 5 8 0s t a r O
4 5 9 0I d a# 0
4 6 0 0s t a r l
4 6 1 0I d a# 1 6
4 6 2 0 s t a r l + 1
4 6 3 0I d ap l o a d
; d r a ws e l e c t e d p h o t o
; s k i p sw / h
; x b y t e s p o s
; y p i x e l p o s
; w i d t h( a t l e a s t1 )
A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 46/84
N B
C P
A O
K J
F N
C A
G A
L J
0 1
E O
A H
I B
E l
M L
F J
E G
E L
G L
I P
C N
K K
H G
D D
E N
N P
P I
J M
A FA B
L K
A B
C E
B M
F F
J O
K G
F N
I A
D I
A P
E P
P J
M D
F MN H
M E
C E
O E
I M
E C
E O
B M
H D
D M
I C
P G
E l
C F
L B
J A
G N
A K
G L
N L
E K
I M
D B
K B
B B
K P
J A
M E
H J
G P
I L
F C
J K
O A
4 6 4 0b e q b a d m a p
4 6 5 0 c m p# 4 0
4 6 6 0b c s b a d m a p
4 6 7 0 s t a r 2
4 6 8 0 I d ap d e p t h
4 6 9 0b e qb a d m a p
4 7 0 0c m p# 1 8 4
4 7 1 0b c s b a d m a p
4 7 2 0s t a r 2 + l
4 7 3 0 j s r$ d 4 2
4 7 4 0 r t s
4 7 5 0b a d m a p= *
4 7 6 0 j s r$ c l a e
4 7 7 0 . w o r d 1 1 0A 1 Q f \ K i r f A1 r t 94 7 o u. b y t ei u *
n o tv a l i dp h o t o - m i g h tb e t h e p h o t o n a m e s t r i n g s
t o o w i d e
h e i g h t l o - b y t e o n l y
n o tv a l i d
t o o l o n g
a b i t m a p u p( c b o x )
; i - p u t s t r i n g
4 7 9 0. a s c - b a d D i t m a y -
4 8 0 0. b y t e0
4 8 1 0 r t s
4 8 2 0,
4 8 3 0; w h e n e x i t i n ga
4 8 4 0; t o r e c o v e r t h e
4 8 5 0r e c o v r= *
4 8 6 0I d a r v f l a g
4 8 7 0b n en o r c v r
4 8 8 0I d a# 1
4 8 9 0s t a r v f l a g
4 9 0 0j s r d o g r i d
4 9 1 0I d a e r f l a g4 9 2 0b n e n o b m a p
4 9 3 0j s r d r a w p h
4 9 4 0n o b m a p= *
4 9 5 0 r t s
4 9 6 0 n o r c v r= *
4 9 7 0I d a# 0
4 9 8 0s t a r v f l a g
4 9 9 0 r t s
5 0 0 0r v f l a g. b y t e0
5 0 1 0;
d b , t h i s r t ni s c a l l e d t w i c e
d b s h a d o w& t h e d b
; c a l l e d t h r o u g h$ 8 4 b l
; c a l lo n c e
; i s t h e r ea b i t m a p
; t h e n d i s p l a yi t
; r e s e t o n2 n dc a l l
5 0 2 0; — d i s k r o u t i n e s—5 0 3 0r e c n u m. b y t e0
5 0 4 0; o p e n d r i v e= * ; c
5 0 5 0 ; l d a# 8 ; d r i v e
5 0 6 0; j s rs e t d e v i c e
5 0 7 0g e t r e c= *5 0 8 0 j s rd o g r i d
5 0 9 0 j s r $ c 2 a l
5 1 0 0 I d aK p h n a m e
5 1 1 0 s t ar O
5 1 2 0I d a # > p h n a m e
5 1 3 0 s t a r 0 + l
5 1 4 0 j s r $ c 2 7 4
5 1 5 0t x a
5 1 6 0b e qg r c l
5 1 7 0 j s rd e r r o r
5 1 8 0 r t s
5 1 9 0g r c l= *
5 2 0 0I d a r e c n u m
5 2 1 0 j s r $ c 2 8 0
5 2 2 0t y a
5 2 3 0b n eg r c 2
5 2 4 0 j s rn o r e c
5 2 5 0 r t s
5 2 6 0g r c 2= *
5 2 7 0; o k , n o w r e a d]
5 2 8 0 I d a # $ 1 5
5 2 9 0 s t a r 2 + l
5 3 0 0 I d a # $ d 0
5 3 1 0 s t ar 2
5 3 2 0I d a # > p l o a d
5 3 3 0 s t a r 7 + l
5 3 4 0 I d a# < p l o a d
5 3 5 0s t a r 7
5 3 6 0 j s r $ c 2 8 c
5 3 7 0; . x h o l de r r o r
5 3 8 0t x a
5 3 9 0b e qg r c 3
5 4 0 0 j s rd e r r o r
5 4 1 0 r t s
T r a n s a c t o r
> p t i o n a l
; o p e n d i s k( o p n d s k )
; n a m e o f a l b u m
; o p e n r e c o r d f i l e( v o p e n )
; x = 0i f n o e r r o r
; p o i n t r e c o r d( g o t o )
; 0 i f e m p t y
; r e c e m p t y
L t i n
; m a xf o f b y t e s( = s b e g i n - p l o a d )
; l o a d t o a d d r e s s
; r e a d r e c o r d( v l o a d )
#
H F
D K
A B
B L
O D
P G
D F
O J
I D
P F
M HI Mu M
C C
B J
N C
L N
M G
D A
L C
D Bn *O n
G N
F F
G O
L C
B H
D E
M N
J L
B G
J O
L J
O M
C M
C O
B F
G P
J I
K A
J I
O B
F P
C D
P P
K F
P O
H I
E G
G G
L K
K O
E A
N O
N M
J A
I N
O L
M O
L N
I H
N B
C G
D P
H M
C C
H I
C E
G L
K E
G D
A L
F I
O F
0 1
M I
H F
N P
H A
B B
4 4
5 4 2 0 g r c 3 = *
5 4 3 0 ; r 7 = a d d ro f f i r s t
5 4 4 0 I d ar 7
5 4 5 0 s t aa 4
5 4 6 0I d a r 7 + l
5 4 7 0 s t a a 4 + l
5 4 8 0 I d a# 0
5 4 9 0 s t ae r f l a g
5 5 0 0j s r d r a w p h
5 5 1 0j s r $ c 2 7 7
5 5 2 0 r t s
5 5 4 0 p c o u n t. b y t e0
5 5 5 0 r e c b y t = *
5 5 6 0; p h o t ol o a d e da t
5 5 7 0; t h eb y t e sf i l e
b y t e f o l l o w i n g t h el a s tb y t e r e a di n
w e ' l l u s ea 4 a sa p o i n t e r
( r 7 i s d e s t r o y e d ,a 4 i sr e s e r v e df o ro u ru s e )
i f i t g o tt h i sf a r !
c l o s e r e c o r d f i l e( v c l o s e )
p l o a dt o t h e a d d r i na 4 - 1
w i l lb e s a v e d f r o m s b e g i n t o a 3
5 5 8 0; s e t u p a 2 ( p h o t op o i n t e r )& a 3 ( b y t e sp o i n t e r )
5 5 9 0 I d a# < p l o a d
5 6 0 0 s t aa 2
5 6 1 0 I d a # > p l o a d
5 6 3 0 I d a# < s b e g i n
5 6 4 0 s t a a 3
5 6 5 0 I d a# > s b e g i n
5 6 6 0 s t a a 3 + l
5 6 7 0 l d y# 0
5 6 8 0 s t y p c o u n t
5 6 9 0 x b y t l = * ; l o o p
5 7 0 0 I d a p c o u n t
5 7 1 0 a n d # $ 0 f
5 7 2 0 b n e x b y t 2
5 7 3 0 I d a # 1 3
5 7 4 0j s r a d d c h r
5 7 5 0 I d a # 4 6
5 7 6 0 j s ra d d c h r
5 7 7 0I d a # 6 6
5 7 8 0j s r a d d c h r
5 7 9 0 I d a# 8 9
5 8 0 0 j s ra d d c h r
5 8 1 0 I d a # 8 4
5 8 2 0 j s ra d d c h r
5 8 3 0 I d a # 3 2
5 8 4 0 j s ra d d c h r
5 8 5 0 j m px b y t 3
5 8 6 0;
5 8 7 0x b y t 2= *
5 8 8 0I d a# 4 4
5 8 9 0 j s ra d d c h r
5 9 0 0x b y t 3= *
5 9 1 0i n c p c o u n t
5 9 2 0I d a ( a 2 ) , y
5 9 3 0 j s rb y t h e x
5 9 4 0 j s r i n c a 2
5 9 5 0 j s r c m p a 2 4
5 9 6 0b c cx b y t l
5 9 7 0I d a# 1 3
5 9 8 0 j s ra d d c h r
5 9 9 0 I d a# 1 3
6 0 0 0 s t a ( a 3 ) , y
6 0 1 0 I d a # < s b e g i n
6 0 2 0s t a s s t a r t
6 0 3 0I d a # > s b e g i n
6 0 4 0s t a s s t a r t + 1
6 0 5 0 I d aa 3
6 0 6 0 s t a s e q e n d
6 0 7 0I d aa 3 + l
6 0 8 0s t a s e q e n d + 1
6 0 9 0 r t s
6 1 0 0;
e v e r y1 6 b y t e s , s t a r t an e wl i n e
e o l
p e r i o d
b
y
t
s p c
• u s e a c o m m a
• i n d e x i n t o p h o t of i l e
* d o n e y e t
s a v e s t a r t i nh e a d e r
s a v ee n d i n h e a d e r
6 1 1 0; t r a n s l a t e a b y t e i n t o h e x f o r m a t
6 1 2 0b y t h e x p h a
6 1 3 0I d a# 3 6
6 1 4 0j s r a d d c h r
6 1 5 0p l a
6 1 6 0p h a
6 1 7 0l s r
6 1 8 0l s r
6 1 9 0l s r
6 2 0 0l s r
s a v e b y t e
m o v e h i - n y b b l ei n t ol o w
A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 47/84
L K
N K
G M
F T .£ i l l
O L
A G
C K
H F
E N
E P
I D
N C
A HC O
K L
O E
I L
H F
A L
M O
A I
P K
F B
H B
N
C L
G O
E
E
B
O
N
0
B
M A
C
L
N
G
J
L
C
N
G
L
f l
I
B
I
J
O
G
D
D
E
F
0
M
M
KA
N
E
G
P
C
M
G
B
K
C
E
C
K
O
J
N
L
=6 2 1 0 j s rf n d a s c
6 2 2 0 j s ra d d c h r
6 2 3 0p l a
6 2 4 0 j s r f n d a s c
6 2 5 0 j s ra d d c h r
6 2 6 0 r t sc o i n .
6 2 8 0f n d a s c= *
6 2 9 0a n d # $ 0 f
6 3 0 0c m p# $ 0 a
6 3 1 0b m i f i n d l
6 3 2 0a d c # $ 0 6
6 3 3 0 f i n d l = *
= = =; r e t u r n sw i t ha s c i i c h a r i n. a
; w r i t ei t t o b u f f e r
• g e t o r i g i n a l b y t e
w r i t ei t
r e t u r n s a s c i i f o r4 l s b i n . a
c l e a r4 h i b i t s
> 9 p r i n t
i t ' s a - f ; + $ 3 6
i f i t ' s0 - 9 ,a d d$ 3 0t o c o n v e r tt o a s c i i6 3 4 0a d c # $ 3 0
6 3 5 0 r t s
6 3 6 0;
6 3 7 0a d d c h r= * ; a d d c h a ri n . a t o t h e b y t e( f i l e )b u f f e r6 3 8 0 s t a ( a 3 ) , y
6 3 9 0 j s r i n c a 3
6 4 0 0 r t s
6 4 1 0;
6 4 2 0i n c a 2i n c a 2
6 4 3 0b n e x i a 2
6 4 4 0i n c a 2 + l
6 4 5 0x i a 2r t s
6 4 6 0;
6 4 7 0 i n c a 3 i n c a 3
6 4 8 0b n e x i a 3
6 4 9 0i n c a 3 + l
6 5 0 0 x i a 3 r t s
6 5 1 0;
6 5 2 0 c m p a 2 4= *
6 5 3 0; i f a 2 > o r =a 4 t h e n w e ' v e e x c e e d e d t h ee o fs o s e t. c a r r y
6 5 4 0; i f < t h e n r e t u r n w i t h. c a r r yc l e a r
6 5 5 0;
6 5 6 0s e c
6 5 7 0 I d aa 2
6 5 8 0s b ca 4
6 5 9 0s t a x x t e m p
6 6 0 0 I d a a 2 + l
6 6 1 0s b ca 4 + l
6 6 2 0o r a x x t e m p ; f l a g ss e t
6 6 3 0 r t s
6 6 4 0;
6 6 5 0 x x t e m p. b y t e0
6 6 6 0;
6 6 7 0;
6 6 8 0s a v s e q= *
6 6 9 0I d a # < h e a d e r; h e a d e r b l o c kf o r f i l e
6 7 0 0s t a r 9
6 7 1 0I d a # > h e a d e r
6 7 2 0s t a r 9 + l
6 7 3 0 I d a# 0
6 7 4 0s t a r l O
6 7 5 0 j s r$ c l e d ; s a v e f i l e( s a v e )
6 7 6 0 r t s
6 7 7 0;
6 7 8 0; — i c o n g r a p h i c s—6 7 9 0i c o n e x= * ; e x i t i c o n
6 8 0 0 . b y t e1 6 0 , 2 5 5 , 2 5 5 , 0 , 0 , 2 5 5 , 2 5 5 , 1 2 8 , 1 , 1 2 8 , 1 , 1 2 8 , 16 8 1 0 . b y t e1 4 3 , 2 4 1 , 1 4 3 , 2 4 1 , 1 4 3 , 2 4 1 , 1 2 8 , 1 , 1 2 8
6 8 2 0 . b y t e1 , 1 2 8 , 1 , 2 5 5 , 2 5 5 , 0 , 0 , 2 5 5 , 2 5 5 , 0 , 0
6 8 3 0; t h e i c o n sb e l o ww e r e" g r a b b e d "
6 8 4 0; w i t ha n e a r l i e r v e r s i o n o f t h i s
6 8 5 0; p r o g r a m .
6 8 6 0i c o n c h= * ; c h o o s e i c o n
6 8 7 0. b y t e $ 0 5 , $ f f , $ 8 2 , $ f e , $ 8 0 , $ 0 4 ,$ 0 0 ,$ 8 2
6 8 8 0 . b y t e$ 0 3 , $ 8 0 , $ 0 4 , $ 0 0 , $ b 8 , $ 0 3 , $ 8 f , $ 9 8
6 8 9 0 . b y t e$ 0 0 , $ 0 0 , $ 0 0 , $ 0 3 , $ 9 8 , $ d 8 , $ 0 0 , $ 0 0
6 9 0 0. b y t e$ 0 0 , $ 0 3 , $ 9 8 , $ l f , $ l e , $ 3 c , $ 7 8 , $ f 3
6 9 1 0. b y t e$ 9 8 , $ l d , $ b 3 , $ 6 6 , $ c d , $ 9 b , $ 9 8 , $ 1 9
6 9 2 0. b y t e$ b 3 , $ 6 6 , $ d , $ 9 b , $ 9 8 , $ 1 9 , $ b 3 , $ 6 6
6 9 3 0 . b y t e$ 7 9 , $ f b , $ 9 8 , $ 1 9 , $ b 3 , $ 6 6 , $ 0 d , $ 8 3
6 9 4 0 . b y t e$ 9 8 , $ d 9 , $ b 3 , $ 6 6 , $ c d , $ 9 b , $ 8 f , $ 9 9
6 9 5 0. b y t e$ 9 e , $ 3 c , $ 7 8 , $ f 3 , $ 8 0 , $ 0 4 , $ 0 0 , $ 8 2
6 9 6 0. b y t e$ 0 3 , $ 8 0 , $ 0 4 , $ 0 0 ,$ 8 1 ,$ 0 3 , $ 0 6 , $ f f
6 9 7 0 . b y t e$ 8 1 , $ 7 f , $ 0 5 , $ f f
6 9 8 0;
r a n s a c t o r
D G
M E
C M
I G
P K
B C
L F
I I
K G
H O
N B
O F
M D
B M
L F
J O
C K
P H
H A
H O
M I
A G
K K
N C
D L
A J
L E
H D
M N
M F
I K
D H
E F
H B
N C
O E
N F
L E
F H
B N
E F
K B
N FA M\ J a
G D
L K
P P
M J
O K
B I
G J
F J
P J
A G
J K
M C
H F
N J
L BG P
A I
A N
E H
I K
C B
P I
D I
D H
P K
M J
A I
C J
K L
O J
J N
E F
C C
4 5
■
6 9 9 0i c o n s a= * ; s a v e i c o n
7 0 0 0 . b y t e$ 0 5 , $ f f , $ 8 2 , $ f e , $ 8 0 , $ 0 4 , $ 0 0 , $ 8 2
7 0 1 0. b y t e$ 0 3 , $ 8 0 , $ 0 4 , $ 0 0 , $ b 8 , $ 0 3 , $ 8 0 , $ l f
7 0 2 0. b y t e$ 0 0 , $ 0 0 , $ 0 0 , $ 0 3 , $ 8 0 , $ 3 1 , $ 8 0 , $ 0 0
7 0 3 0. b y t e$ 0 0 , $ 0 3 , $ 8 0 , $ 3 0 , $ l e , $ 6 6 , $ 7 8 , $ 0 3
7 0 4 0. b y t e$ 8 0 , $ 3 0 , $ 3 3 , $ 6 6 , $ c c , $ 0 3 , $ 8 0 , $ l f
7 0 5 0 . b y t e$ l f , $ 6 6 , $ c c , $ 0 3 , $ 8 0 , $ 0 1 , $ b 3 , $ 3 c
7 0 6 0 . b y t e$ f c , $ 0 3 , $ 8 0 , $ 0 1 , $ b 3 , $ 3 c , $ c 0 , $ 0 3
7 0 7 0 . b y t e$ 8 0 , $ 3 1 , $ b 3 , $ 1 8 , $ c c , $ 0 3 , $ 8 0 , $ l f
7 0 8 0 . b y t e$ l f , $ 1 8 , $ 7 8 , $ 0 3 , $ 8 0 , $ 0 4 , $ 0 0 , $ 8 2
7 0 9 0. b y t e$ 0 3 ,$ 8 0 , $ 0 4 , $ 0 0 , $ 8 1 , $ 0 3 , $ 0 6 , $ f f
7 1 0 0 . b y t e$ 8 1 , $ 7 f , $ 0 5 , $ f f
7 1 2 0l a r r o w= * ; l e f ta r r o w i c o n
7 1 3 0 . b y t e$ b 0 , $ f f , $ f f , $ f f , $ 8 0 , $ 0 0 , $ 0 3 , $ 8 0
7 1 4 0 . b y t e$ 0 0 , $ 0 3 , $ 8 0 , $ 0 0 , $ 0 3 , $ 8 0 , $ 4 0 , $ 0 3
7 1 5 0. b y t e$ 8 1 , $ c 0 , $ 0 3 , $ 8 7 , $ f f , $ f 3 , $ 9 f , $ f f
7 1 6 0 . b y t e$ f 3 , $ 8 7 , $ f f , $ f 3 , $ 8 1 , $ c 0 , $ 0 3 , $ 8 0
7 1 7 0. b y t e$ 4 0 , $ 0 3 , $ 8 0 , $ 0 0 , $ 0 3 , $ 8 0 , $ 0 0 , $ 0 3
7 1 8 0. b y t e$ 8 0 , $ 0 0 , $ 0 3 , $ f f , $ f f , $ f f , $ 7 f , $ f f , $ f f
7 1 9 0;
7 2 0 0r a r r o w= * ; r i g h ta r r o w i c o n
7 2 1 0 . b y t e$ b 0 , $ f f , $ f f , $ f e , $ 8 0 , $ 0 0 , $ 0 3 , $ 8 0
7 2 2 0 . b y t e $ 0 0 , $ 0 3 , $ 8 0 , $ 0 0 , $ 0 3 ,$ 8 0 , $ 0 4 ,$ 0 3
7 2 3 0 . b y t e$ 8 0 , $ 0 7 , $ 0 3 , $ 9 f , $ f f , $ c 3 , $ 9 f , $ f f
7 2 4 0 . b y t e$ f 3 , $ 9 f , $ f f , $ c 3 , $ 8 0 , $ 0 7 , $ 0 3 , $ 8 0
7 2 5 0. b y t e$ 0 4 , $ 0 3 , $ 8 0 , $ 0 0 , $ 0 3 , $ 8 0 , $ 0 0 , $ 0 3
7 2 6 0 . b y t e$ 8 0 , $ 0 0 , $ 0 3 , $ f f , $ f f , $ f f , $ 7 f , $ f f , $ f f7 2 7 0;
7 2 8 0p e r m n m= * ; f i n da n yv e r s i o n
7 2 9 0 ; . a s c " p h o t oa l b u m"
7 3 0 0. b y t e$ 7 0 , $ 6 8 , $ 6 f , $ 7 4 , $ 6 f , $ 2 0 , $ 6 1 , $ 6 c , $ 6 2 , $ 7 57 3 1 0 . b y t e0 ; ( v e r s i o n n o t i n c l u d e d )
7 3 2 0; t h e n e w p h o t o a l b u m( v 2 . 1 )s t o r e st h e
7 3 3 0; n a m e s o ft h ei n d i v i d u a lp h o t o sa s t h e
7 3 4 0; l a s tu s e dr e c o r d .
7 3 5 0; u s e : . a s c" p h o t oa l b u mv l . 0 "
7 3 6 0; t o r e a d t h e o l d e r v e r s i o n s e x c l u s i v e l y .
7 3 7 0; u s e : . a s c" p h o t o a l b u m v 2 . 1 "
7 3 8 0; t o r e a d t h e n e w e r v e r s i o n .
7 3 9 0;
7 4 0 0p h n a m e. b y t e0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0; s e l e c t e d p h o t o a
7 4 1 0 s v n a m e. b y t e0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0; u s e r e n t e r e dn a m e
7 4 3 0; t h i s h e a d e ri s s a v e d a l o n g w i t h t h ef i l e
7 4 4 0h e a d e r= *
7 4 5 0 . w o r s v n a m e
7 4 6 0 . b y t e 3 , 2 1 , $ b f; 3 x 2 1i c o n
7 4 7 0 . b y t e$ f f , $ f f , $ f f , $ 8 0 , 0 , l , $ 8 0 , 0 , l , $ 8 0
7 4 8 0 . b y t e0 , l , $ 8 0 , 0 , l , $ 8 0 , 0 , l , $ 8 0 , 0 , l , $ 8 0 , 0 , l
7 4 9 0 . b y t e$ 8 0 , 0 , l , $ 8 0 , 0 , l , $ 8 0 , 0 , l , $ 8 0 , 0 , l , $ 8 0
7 5 0 0. b y t e0 , 1 , $ 8 0 , 0 , 1 , $ 8 0 , 0 , 1 , $ 8 0 , 0 , 1 , $ 8 0 , 0 , 1
7 5 1 0. b y t e$ 8 0 , 0 , l , $ 8 0 , 0 , l , $ 8 0 , 0 , l , $ f f , $ f f , $ f f
7 5 2 0 ; t h i si c o ni s j u s ta s q u a r e o u t l i n e
7 5 3 0; s a v et h e f i l ea s a c =s e q
7 5 4 0. b y t e $ 8 1 ; c = s e q
7 5 5 0; a c t u a l l y ,w h e nt h e k e r n a lw r i t e s
7 5 6 0; t h e f i l et o d i s k , i tw o n ts a v e
7 5 7 0; t h e h e a d e r t o d i s k7 5 8 0; w h e ni t s e e st h en e x t
7 5 9 0; b y t e , af i l e t y p eo f n o n - g e o s .
7 6 0 0. b y t e0 ; n o n - g e o s / a l t e r n a t e l y u s e3 f o r d a t a
7 6 1 0 . b y t e0 ; g e o s s e q
7 6 2 0; n e x t t w o w o r d sp l a c e d b yt r a n s l a t e r t n
7 6 3 0 s s t a r t = *
7 6 4 0. w o r0 ; s t a r ta d d r
7 6 5 0s e q e n d= *
7 6 6 0. w o r 0 , 0 ; e n da d d r ,j u m p a d d r
7 6 7 0. a s c" i c o nd e f i n e r v l . O "
7 6 8 0 . b y t e 0 , 0 , 0 , 0
7 6 9 0;
7 7 0 0. a s c" f . g . k o s t e l l a"
7 7 1 0. b y t e0 , 0 , 0 , 0
7 7 2 0;
7 7 3 0 * = * + 1 3 9
7 7 4 0e n d c o d= * ; s p e c i f i e di n h e a d e r
7 7 5 0 . e n d □
A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 48/84
R A M i f i c a t i o n s
A p p r o a c h e st o f a t t e n i n gt h eC 1 2 8 ,
w i t hc r i t i q u ea n dc o m m e n t s f r o mP a u lB o s a c k i ,
w h od i di tf o rt h e6 4
b y R i c h a r dC u r c i o
P a u lB o s a c k i ' sC 2 5 6( V o l u m e9 , I s s u e2 ) i s t h em o s te x c i t i n g
h a r d w a r ep r o j e c t f o r t h eC 6 4t o c o m ea l o n gi n a l o n gt i m e .I
o f f e ra b i to f a d v i c et o o t h e r sw h ow o u l dm o d i f ya v a l u a b l e
p i e c eo f e q u i p m e n t :
D o n ' tp l a no n r e - u s i n gc h i p sd e s o l d e r e df r o me q u i p m e n t .
O f t e n ,t h ee f f o r t s t or e m o v et h ec h i pi n t a c t r e s u l t i nd a m a g et o
t h e c i r c u i tb o a r d .I f t h e I Ci s s u c c e s s f u l l yr e m o v e d , o n ec a n
n e v e r b e1 0 0 %c e r t a i no f i t s r e l i a b i l i t y .W i t h o u ta c c e s st o p r o
f e s s i o n a ld e s o l d e r i n ge q u i p m e n t ,i t ' sb e t t e r t op l a no n d i s c a r d
i n g a n yr e m o v e dc h i p s .H a v i n gm a d et h i sd e c i s i o n ,c h i pr e
m o v a l b e c o m e sm u c he a s i e r .
O n t h e s o l d e r s i d eo f t h ec i r c u i tb o a r d ,s o m ep i n sm a yb e b e n t
o v e r .S t r a i g h t e n t h e s eb y h e a t i n gw i t ha l o w - w a t t a g es o l d e r i n g
i r o na n ds l i p p i n g t h eb l a d eo f a s m a l lj e w e l l e r ' ss c r e w d r i v e r o r
a h o b b yk n i f e ( X - a c t o )b e t w e e nt h eb e n t - o v e rp o r t i o na n dt h e
P C b o a r d . ( T h i ss t e pi s e s s e n t i a li f y o u d od e c i d et o r i s k r e
u s i n gt h ec h i p s . )O n t h ec o m p o n e n ts i d eo f t h eb o a r d ,u s i n g a
s h a r p ,s m a l l d i a g o n a lc u t t e r ,c l i pe a c hI C p i na s c l o s ea s y o u
c a ng e tt o t h eb o d yo f t h e c h i p .
O n c ea l l t h ep i n so f o n ec h i ph a v e b e e nc l i p p e d ,a n dt h eb o d y
d i s c a r d e d ,b e g i nd e s o l d e r i n gt h ep i n s .H e a t i n g e a c hp i nf r o m
t h eb o t t o mo f t h eb o a r d ,m o s tp i n sw i l ls i m p l y d r o po u t o ft h e
h o l e .T h o s et h a td o n ' tc a n b er e m o v e df r o mt h et o p - s i d e .G r a b
e a c hp i n w i t h s m a l ln e e d l e - n o s ep l i e r so r t w e e z e r s w h i l eh e a t
i n g t h ep i n w i t ht h e s o l d e r i n gi r o n .W i t hj u s ta f e wj i g g l e s ,t h e
p i ns h o u l dc o m ef r e e .
C l e a ro u tt h eh o l ef r o mt h es o l d e rs i d ew i t ha " s o l d e r s u c k e r " .R a d i oS h a c kc a r r i e sa v e r yi n e x p e n s i v eo n e .T h et r i c kw i t h
t h e s ei s t o k e e pt h en o z z l ec l e a r .E m p t yt h e s u c k e ro f t e na n d
u s ea t o o t h - p i c k o rs t r a i g h t e n e dp a p e rc l i pt o c l e a rt h e n o z
A s h a r p e n e dw o o d e nt o o t h - p i c ki s a l s ou s e f u lf o r c l e a r i no u
t h eP Cb o a r dh o l e s .
D o u b l e - s i d e dp r i n t e dc i r c u i tb o a r d s( c i r c u i tt r a c e so n b o t
s i d e s )u s e" p l a t e d - t h r o u g h "h o l e s .I n o t h e rw o r d s ,t h ei n s i
o f t h eh o l ei s c o p p e rc l a dt o c o n t i n u et h ec i r c u i tf r o mo n es i d
o f t h eb o a r dt o t h eo t h e r .I f a n yd e s o l d e r e dc o m p o n e n tl e a do r
I C p i nc o m e so u tw i t ha s m a l lc o p p e r - c o l o u r e dc y l i n d e ro n i t
t h e t h r o u g h - p l a t i n gh a s c o m el o o s e .U s u a l l y , s o l d e t h
r e p l a c e m e n tp a r to n b o t hs i d e so f t h eb o a r dw i l l r e s t o r e tc i r
c u i t ' sc o n t i n u i t y .I f y o uc a n ' t g e tt o t h ec o m p o n e n ts i d eo f t h
p a r t( s u c ha s t h eu n d e r s i d eo f a n I C s o c k e t , )f l o wj u s ta l i t t
m o r es o l d e rt h a n n e c e s s a r yf r o mt h eb o t t o mo f t h eb o a r d .
Y o um i g h tw a n tt o p r a c t i s et h e s et e c h n i q u e s b e f o r em a n g l
y o u rt r u s t yC 6 4 .M o s tl a r g ec i t i e sh a v ea n a r e at h a tu s e dt o b e
k n o w na s " R a d i oR o w " ,w h e r eo n e c a n p u r c h a s ee v e r y t h
f r o ma n c i e n tt e l e t y p em a c h i n e sa n dr a d a rt r a n s m i t t e r st o o b s
l e t ea n d / o r d e f e c t i v ec o n s u m e re l e c t r o n i c s .P i c ku p a f e wj u n
c i r c u i tb o a r d sa n dt r yy o u rh a n da t r e m o v i n gi c s .
R A M i f i c a t i o n s :t h eC 1 2 8
T h e r ea r ea n u m b e ro f p o s s i b i l i t i e s( w i t ha t t e n d a n td i f f i c u l
i n p e r f o r m i n ga m e m o r ye x p a n s i o ns i m i l i a rt o P a u lB o s a c k
o n t h eC 1 2 8 .T h ef o l l o w i n gi s t h er e s u l to f m a n yn i g h t ss p e
s t u d y i n gt h e C 1 2 8s c h e m a t i c sa n d i s i n t e n d e dt o s t i m u l
s o m ed e b a t eo n t h es u b j e c t .
A s m a n yf u n c t i o n sa s i s r e a s o n a b l e s h o u l db e c o n t r o l l eb ys o f t w a r e ,w i t ha f e wk e yf u n c t i o n sc o n t r o l l e db y s w i t c h e st h a
o v e r - r i d e t h es o f t w a r es e t t i n g s .T h e r ei s a m p l eI / Os p a c ef o
T r a n s a c t o r 4 6 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 49/84
d d i n gl a t c h e sa n ds u c hw i t h o u t u s i n gt h e ' o f f i c i a l ' I / Ol o c a
i o n s .A t l e a s tp a r to f t h ea d d e dm e m o r ys h o u l db e a v a i l a b l ei n
4 m o d ea n db e c o m p a t i b l ew i t hM r .B o s a c k i ' sd e s i g n .
i t ht h e s ec r i t e r i ai n m i n d ,c o n s i d e rt h e s e s u g g e s t i o n s :
) R e p l a c et h e 6 4 Ko f R A M1 w i t h2 5 6 Kc h i p s ,d i v i d i n g
R A M1 i n t o' s u b - b a n k s ' .
n 1 2 8m o d e ,w en e e dn o tb e c o n c e r n e dw i t ht h e l o c a t i o na n d
m o u n to f c o m m o nR A Ms i n c ei t ' s a l w a y si n R A M0 a n dt h e
M Uw i l lt a k e c a r eo f e v e r y t h i n g .P i n4 7 o f t h eM M U ,v a r i
u s l yr e f e r r e dt o a sM S 3o r c 1 2 8 ,g o e st o l o g i c0 i n 6 4 m o d e ,
i s a b l i n g t h ef a s ts e r i a lc i r c u i t r ya n ds i g n a l l i n g t h eP L At o a s
u m ei t sC 6 4p e r s o n a .T h i sc a n b e u s e dt o d i s r e g a r dR A M0 a n d
w i t c h o v e rt o t h ee x p a n d e dR A M1 i n 6 4 m o d ea n de n a b l et h e
R A Mc i r c u i t r y t h a tw o u l db e n e e d e d ,s i n c e t h eM M Ue f f e c
i v e l yv a n i s h e s .
o w e v e r ,w e w o u l dl o s e t h ea b i l i t y t oh a v es o m e t h i n gi n
A M0 b e p r e s e n tw h e nw e s w i t c ht o 6 4 m o d e .I f w e a t t e m p tt o
a k eR A M0 a v a i l a b l e ,a l o n g w i t ht h ee x p a n d e dR A Ml , i n 6 4
o d e w et h e nh a v ef i v e6 4 K b a n k s- a m a j o ri n c o m p a t i b i l i t y
i t hM r .B o s a c k i ' sd e s i g n .
) R e p l a c eb o t hR A M0 a n d 1 w i t h2 5 6 Kc h i p s ,c r e a t i n ga
C 5 1 2 !
5 ) D on o t h i n g .W a i tf o rC o m m o d o r et o p r o d u c et h eC 1 0 0 0 .
( D o n ' t h o l dy o u rb r e a t h . )
P e r s o n a l l y ,I a m i n c l i n e dt o g o w i t h i t e mo n ea s a p l a no f a c
t i o n .M e m o r yi s i n c r e a s e db y 1 9 6 Kt o a t o t a lo f 3 2 0 K .D e a l i n g
w i t ht h e d i f f i c u l t i e so f i t e mt w om a yr e q u i r ea n i n o r d i n a t
a m o u n to f l o g i c .I n i t i a l l yi t e mt h r e em e r e l yd o u b l e st h e
a m o u n to f m e m o r ya n dr e q u i r e se v e nm o r e' o u t b o a r d 'e l e c
t r o n i c s .
T h e r ea r en u m e r o u sd e t a i l s t ob e w o r k e do u ti n i m p l e m e n t i
a n yo f t h ea b o v e( e x c e p tf o r i t e m5 ) : W h a ti s t h e d i f f e r e n
b e t w e e nM U X ,w h i c hd o e s n ' te x i s ti n t h eC 6 4 ' so l dV I Cc h i p ,
a n dC A S ?S h o u l dt h en e wC R A Mc i r c u i t r yl o o ka t t h ep r o c e s s o r
a d d r e s sb u s , o r t h e t r a n s l a t e da d d r e s sb u s ?H o ws h o u l dt h e
p r e c o n f i g u r a t i o nr e g i s t e r sb e h a n d l e d ,i f a t a l l ?H o ws h o u l d
e x p a n d e dm e m o r yb e h a v ei n Z 8 0m o d e ?
W i t he n o u g hh a r d w a r e ,a n y t h i n gi s p o s s i b l e .T h eq u e s t i o ni s :
I s i t p r a c t i c a l ?
D i a l o g u e
T h ef o l l o w i n gt e x ti s t a k e nf r o ma n e x c h a n g e o fl e t t e r sb e
t w e e nM r .C u r c i oa n dM r .B o s a c k i . M r .C u r c i o ,l i k eM r .B o -
s a c k i b e f o r eh i m ,h a sk i n d l ya g r e e dt o t h ep u b l i c a t i o no f h i s
a d d r e s s .- M O
e s i d e st h ep o t e n t i a lf o rd a m a g i n gt h ec i r c u i tb o a r db y d e s o l -
e r i n g1 6 s i x t e e np i nc h i p s( t h a t ' s2 5 6p i n s ,f o l k s ) ,w eh a v et o
u p l i c a t e t h eC R A Ma c t i o n so f t h e M M U .T h e r ei s n o s i g n a l
r o mt h eM M Ut o i n d i c a t et h a tc o m m o nR A Mi s b e i n ga c c e s s e d .
h e t a s ki s t o c a p t u r et h e c o m m o nR A Ma m o u n ta n dl o c a
i o n ^ ) v a l u e sw r i t t e nt o t h e R A Mc o n f i g u r a t i o nr e g i s t e ra t
D 5 0 6( n o to v e r l yd i f f i c u l t ;$ D 5 x xi s a l r e a d yd e c o d e d ) ,a n d
u a l i f yo u rC R A Me n a b l e w i t ht h eC A Si n t e n d e df o rR A M0 . A p
r o p r i a t et h r e e - s t a t ec i r c u i t r y ,c o n t r o l l e db y M S 3 ,c o u l d a l l o w
h i sm o dt o m i m i cM r .B o s a c k i ' s m o d i f i c a t i o ni n 6 4 m o d e .
) A d dt w o6 4 Kb a n k s ,c o m p r i s e do f f o u r6 4 K x 4D R A M s .
n a d d i t i o nt o c a p t u r i n gt h eC R A Mp a r a m e t e r s ,i f w e a l s oc a p
u r eb i t 7 o f $ F F 0 0 ,w e c a ni m p l e m e n tt h em i s s i n gb a n k s 2
n d3 , w h i c ht h eo p e r a t i n gs y s t e ma l r e a d yk n o w sa b o u tb u tt h e
M Ua n dt h er e s to f t h eh a r d w a r ed o n ' tp r o v i d e .O n l y m i n o r
l t e r a t i o n sn e e d b e p e r f o r m e do n t h e C 1 2 8P C b o a r d .M o r e
A Mc o u l db e a d d e da t a l a t e rd a t e .T h eh a r d e s tp a r tm a yb e
e t t i n gi t a l lt o f i t i n s i d e t h ec a s e .
) D o n ' t a d d a n yR A M .I n s t e a d ,m a k eR A Ml , t h e s e c o n d
c o l o u rm e m o r yb a n k ,a n dp o s s i b l yt h e f a s ts e r i a l c i r c u i t s ,
a v a i l a b l ei n 6 4 m o d e .
h i si s p r e t t ys i m p l e .C o m m o d o r ec o u l dh a v em a d et h i s
v a i l a b l e a sa n ' e n h a n c e d '6 4 m o d e . )W h e nc o m p a r e dt o a
2 5 6 ,t h i si s p r e t t ym e a g r ef a r e ,a n dm a yn o tb e w o r t ht h e e fo r t .O nt h e o t h e rh a n d ,t h e e x e r c i s em a yb e u s e f u l a sa p r e l i m
n a r yh a c k .
I a p p l a u d y o u r a c c o m p l i s h m e n t ,c r e a t i n ga f a tC 6 4 . 1a me a g e r
t o k n o wt h ed e t a i l so f t h e5 1 2 Ke x p a n s i o n .I f i t u s e sa s w i t c h
t o s e l e c tt h es e c o n d2 5 6 K ,y o um i g h t b ei n t e r e s t e di n F i g u r e2
o f t h ee n c l o s e ds c h e m a t i c s .I a m t o l dt h a ty o u rm o d i f i c a t i
d o e s n ' tw o r ko n t h en e w e r6 4 C s .C a ny o uc o n f i r mt h i so r p r o
v i d ea f i x ?[ H a p p i l y ,M r .B o s a c k i h a so b t a i n e da n E - b o a r d
6 4 Ca n ds t a t e st h a t t h em o dc a nb e a c h i e v e di n t h a tm a c h i n e
a l s o .- E d . ]A l s o ,h o wa r e R A M - b a s e dc h a r a c t e r sh a n d l e db y
y o u rc i r c u i t ?D o e sC o n f i g u r e2 5 6 w o r kw i t hg e o P a i n f tH o w
c a nw e i m p l e m e n ty o u rG E O Sm o dw i t h o u tt h e( a l l e g e d )b e n e
f i t o f G e o P r o g r a m m e r lI a mn o t a f a no f G E O Sa n di f y o uc a n
p r o v i d ea n y i m p r o v e m e n t st o i t ( l i k et u r n i n g o f fp r o p o r t i o n
s p a c i n gi n t e x t i ng e o P a i n t )t h a tw o u l db e g r e a t .
H a v ey o uc o n s i d e r e dt h ep o s s i b i l i t yo f aC 1 2 8e x p a n s i o n ?I
h a v ea f e wi d e a sr e g a r d i n gt h a t ,a n di t s e e m st h a tt h e r e a r e
m o r et h a na f e wd i f f i c u l t i e st o o v e r c o m e .
I h a dh e a r d a b o u ty o u rC 2 5 6s o m em o n t h sb e f o r e s e e i n gi t i n
T r a n s a c t o r .W h i l ea w a i t i n gt h a t i s s u e ,I d e v i s e d ( o n p a p e rm y
o w nm e t h o df o rR A Me x p a n s i o n .I d o n ' tk n o wi f i t w o u l dw o r k ,
a n dI a d m i tt h a tm y k n o w l e d g eo f d y n a m i cR A Mi s s o m e w h a
P L A
b r e a k E x i s t i n gR A M
i s 4 1 6 4x 8
I 4 4 6 4x 2■ j c a s
D E C O D E Rf i g u r e 1
r a n s a c t o r 4 7 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 50/84
f i g u r e 2 a
b r e a k
T \
A 9 :
A 8 ]
$ D 5 x x$ D 6 x x$ D 7 x x
V z 7 4 L S 1 3 9
f i g u r e2 b
B A N KS E L E C TC R A M A M O U N TL , H E N A B L EA E CE N A B L E
« 2
D G - D 7 >
s k e t c h y .M ym e t h o dr e q u i r e sa b i tm o r eh a r d w a r ea n dw i r i n gt h a n
y o u r s .I t w o u l df i ti n s i d ea C 6 4b u t p r o b a b l y n o ta 6 4 C .
B a s i c a l l y ,m y s c h e m e( F i g u r e1 ) ,w o u l dl e a v et h eo r i g i n a lR A M
c h i p si n p l a c e ,a n dd i v e r tt h e p l a ' sC A S R A Ms i g n a lf r o mt h e
4 1 6 4 st o t h ee n a b l e o f a7 4 L S 1 3 9o r s i m i l a rd e c o d e r .O n ed e c o d e d
o u t p u tg o e st o t h eo n - b o a r dm e m o r yc h i p sa n dt h e o t h e r sg o t o
b a n k so f 4 4 6 4 s( 6 4 Kx 4 ) .T h ev a l u eo n t h ed e c o d e r ' ss e l e c tb i t s
d e t e r m i n e sw h i c h b a n kg e t sC A S ' e d .( A t h r e e - b i td e c o d e rw o u l d
p r o v i d e8 6 4 K' b a n k s ' . )A n yC o m m o n R A Mo r B a n kE n a b l e
s i g n a lw o u l df o r c et h i s v a l u et o s e l e c tt h e o r i g i n a lR A M .
M e m o r yc o u l db e e x p a n d e di n s t a g e s ,a n dt h er i s ko f d a m a g et o
t h ec i r c u i tb o a r di s m i n i m i z e db y n o t d e s o l d e r i n ga n yc h i p s .
O n t h eo t h e rh a n d ,a l l t h ed a t aa n dM Al i n e sw o u l dh a v et o b e
b r o u g h tt o t h ee x p a n d e rb o a r d .L o o k i n ga t y o u rd e s i g n ,I g e t
t h eu n e a s yf e e l i n gt h a tm i n ew o u l d n ' t w o r k .A mI m i s t a k e ni n
a s s u m i n gt h a tu n s e l e c t e db a n k sw o u l dc o n t i n u et o b e r e f r e s h e d
v i aR A S ?
A m a s t e r' m o dd i s a b l e 's w i t c hi s a g o o di d e a .I ' v eg o t t e nu s e d
t o s e t t i n gs w i t c h e st o c o n f i g u r em y v i C - 2 0 ,b u t f o r t h eC 6 4
s w i t c h e ss e e ml i k es e v e r a l s t e p sb a c k w a r d s .
T h ef e a t u r e sI h a v ei n m i n dn e e dm o r eb i t st h a nt h o s ep r o v i d e d
b y t h ec a s s e t t el i n e so f t h e6 5 1 0p o r t .T o c r e a t em o r eI / Os p a c e
t o s u p p l yt h en e e d e db i t s ,F i g u r e2 a d e c o d e sS D D ' se n a b l e( w h i c h
o c c u p i e sa w a s t e f u lI K o f I / O ) ,i n t of o u r p a g e s .O n eo f t h e s ei s
u s e dt o e n a b l e a 6 5 C 2 2o r o t h e rp a r a l l e l i n t e r f a c e c h i p .
S Q — <S I5 2
V -
c i m o u n t
L . e n a b l e
C R Q M H
f i g u r e 3
C H 5 B E N
T h i sw o u l dp o w e ru p o r r e s e tw i t hi t s p o r tp i n sh i g h( v i ap u l l
u p r e s i s t o r s )a n dt h e l o g i cw o u l db e s u c ht h a tt h i ss e l e c t st h e
n o r m a lm e m o r yc o n f i g u r a t i o n .S o f t w a r ew o u l db e c o m p a t
a s l o n ga s i t d o e s n ' tu s ea n yS I D ' i m a g e 'a d d r e s s e s .T h e6 5 C 2
i s u n d o u b t e d l yo v e r - k i l lf o rt h i sa p p l i c a t i o n( t h eC M O Sv e r s i o
t o r e d u c ec u r r e n tc o n s u m p t i o n ,i s a l s oh a r dt o f i n d ) ,b u ti t ' s
e a s i l yi n t e r f a c e da n di t s o t h e r p o r tm i g h tc o m ei n h a n d y ,
h a p sf o rs e l e c t i n ga l t e r n a t eR O M s .
T h ea l t e r n a t i v ei s t o a l s od e c o d eR / wa n dp h a s e 2t o p r o v i d a
W R i t es t r o b e f o ra l a t c ha n da R e a Df o r a t r i - s t a t eb u f f e rt o
r e a db a c kt h el a t c hc o n t e n t s .T h el a t c hs h o u l dh a v ea " c l e a
i n p u ts o t h a tR E S E Tp r o v i d e sa l lz e r o e sa s t h ed e f a u l t .
T h e6 5 C 2 2w o u l dn e e dt o b e i n i t i a l i z e d .O n r e s e t ,t h e p o r t sg o
h i g hb e c a u s et h e D D R s( a n da l l o t h e rr e g i s t e r s )a r e c l e a
p u t t i n g t h e p o r t si n i n p u tm o d e .C h a n g i n gt h eD D R st o o u t p
' c o l d 'w o u l dc a u s et h ep o r tp i n st o g o l o wb e c a u s et h eO u t p
R e g i s t e r sw e r ea l s o c l e a r e d . F o r t u n a t e l y , t h e6 5 C 2 2 p e
w r i t i n gt o t h e O u t p u tR e g i s t e r sw h i l e c o n f i g u r e df o r i n p u
W h yi s n ' t t h i sa p r o b l e mw i t ht h eM P Up o r t ?( O ri s i t ? )
A n o t h e rw a yt o o b t a i nm o r eI / Os p a c ei s s h o w ni n F i g u r e2 b
H e r eo n eo f t h eC I Ae n a b l e si s i n t e r c e p t e da n dd e c o d e dw i t
A 7 t o p r o v i d ea n e we n a b l e .I t e n dt o f a v o u rt h i sa p p r o a
a n dt h el o w e rh a l fo f t h ef i g u r es h o w st h el a t c h / b u f f e r a
t i v e t ot h e 6 5 C 2 2 .I f B a n kS e l e c tr e m a i n sa t t h e 6 5 1 0p o r t
t h r e eo f t h e l a t c hb i t sa r eu n u s e da n da v a i l a b l ef o ro t h e rt r i c k s
I w o u l dl i k e t oh a v ed i f f e r e n ta m o u n t so f c o m m o nR A M ,p e r
h a p sa s m u c ha s 1 6 Ks o t h a ta b i t - m a pa t $ 2 0 0 0c o u l db e s e e
f r o mt h eo t h e rb a n k s .I n F i g u r e3 t h eO Rg a t e so f y o u rd e s i
a r es l i g h t l yr e a r r a n g e dt o p r o v i d ea l o g i c0 w h e nt h el o w e s t1 ,
2 , 4 ,o r 1 6 Ko f m e m o r ya r ea d d r e s s e d .B i t sS Oa n dS I o f t h e
7 4 L S 1 5 1d a t as e l e c t o rc h o o s eh o w m u c hl o wc o m m o n
w i l lb e p r e s e n t .B i tS 2 c a nf o r c et h e ' 1 5 1t o l o o ka t t h e p i
h e l da t + 5 V ,c a u s i n gC R A M Lt o b e h i g h .( T h eE i n p u tc a n ' tb e
u s e d b e c a u s ew h e nt h e ' 1 5 1i s d i s a b l e d ,o u t p u tY i s l o w-
w h i c hi s t h eo p p o s i t eo f w h a t ' s n e e d e d , a l t h o u g i t c o u l d
u s e df o r a s o f t w a r e' m o dd i s a b l e ' . )W i t h n o l o wc o m m
r a m ,e a c hb a n kc o u l dt h u sh a v ei t so w nz e r o - p a g ea n ds t a c k !
B e c a u s eo f t h e s c a r c i t yo f f r e eR A Mi n t h e l o w e s tI K o f
m e m o r y ,F i g u r e3 a l s op r o v i d e st h e c a p a b i l i t yo f c o m m
R A Mi n h i g hm e m o r y .T h r e e - i n p u ta n dg a t eA , w i t ht w ol e f t
o v e ri n v e r t e r s ,s u p p l i e sC R A M Hw h e nA 1 5 ,1 4 ,a n d1 3 a r e 1 1 0
T h i sd e c o d e sa d d r e s s e s$ C 0 0 0 - $ D F F Fa s c o m m o n R Aw h e
H e n a b l ei s l o w .O f c o u r s e ,D - b l o c ki s a c c e s s i b l eo n l yw h e
I / Oa n dc h a r a c t e rR O Ma r e s w i t c h e do u t .G a t eB r e p l a c e st h e
t w o - i n p u tA N Dg a t ei n y o u rc i r c u i t .T h er e m a i n i n gO Rg a t ec a n
b e u s e df o ra s o f t w a r eA E Ce n a b l e .( I ny o u rc i r c u i t ,h o wd o e
a n o p e ns w i t c ht r a n s l a t e t oA E Ce n a b l e d ,s i n c eA E Cd o e s n
m a t t e r ? )A d di n v e r t e r s a sn e c e s s a r yt o p r o v i d et h e p o w e r -
c o n f i g u r a t i o n- d e p e n d i n gu p o na 6 5 C 2 2p o r tw i t ha l l p o r tb i t
a t 1 o r ac l e a r e dl a t c hw i t ha l l z e r o e s .T h a tl e a v e so n ei d l
t h r e e - i n p u ta n dt w o2 - i n p u ta n d sf o ra n yo t h e re n h a n c e m I n t h i sc i r c u i tt h ea m o u n to f H i g hC o m m o nR A Mi s f i x e d ,b u
a d d e dc o m p l e x i t yc o u l d p r o v i d ev a r i a b l ea m o u n t s .
T r a n s a c t o r 4 8 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 51/84
h e nt h i n g sb e c o m et o o c o m p l e xf o r g a t e sa n d d e c o d e r s ,
o m e m e a n sm u s tb e f o u n dt o r e d u c et h ec h i pc o u n t .I i n c l u d e
d a t a s h e e tf o r a U Ve r a s a b l eP L A .T h i s d e v i c ew a ss o l db y
a m e c oa w h i l ea g o .I d o n ' tk n o wi f i t ' s s t i l la v a i l a b l e .S u p
o s e d l y ,t h i sd e v i c ec o u l db e p r o g r a m m e di n a n E P R O Mb u r n
r ^ ) .I f i t d o e s n ' tc o m eo u tr i g h t ,e r a s ei t a n dt r y a g a i n .I a s
u m et h em a n u f a c t u r e r c a np r o v i d em o r ei n f o r m a t i o n r e g a r d
n gp r o g r a m m i n g ,e t c .
v e nw i t h o u tr e s o r t i n gt o a h o m e - b u r n e dP L A ,I ' m s u r et h a t
o m eo f t h ea b o v ec o u l db e d o n em o r ee f f i c i e n t l y .E v e r yt i m e
t h o u g h tt h a tt h i sl e t t e rw a sf i n i s h e d ,a n e wi d e aw o u l dp o p
n t om yh e a d .T h a n ky o uf o ra m o s ts t i m u l a t i n gp r o j e c t .I c a n
a r d l yw a i tt o t r yt h i ss t u f f .
i c h a r dC u r c i o
2 S e v e n t hA v e n u e
r o o k l y n ,N . Y .1 1 2 1 7
h a n ky o uf o ry o u rr e s p o n s et o m y a r t i c l e .T h eb i g k i c k w i t h
h i s a r t i c l eh a sn o tb e e ng e t t i n gi t p u b l i s h e d ,b u tr a t h e rr e c e i v i n ge t t e r sl i k ey o u r s .L e t t e r sf r o mp e o p l ew h ou n d e r s t a n dt h ew o r k
n g so f t h ep r o j e c t .M yw i f e ,I ' ma f r a i d ,h a sg o t t e na b i tt i r e do f
e a r i n ga b o u ta n dg a t e sa n d* C R A Ma n d" t w ob i tc o d e s "e t c .
u t ,o n t o y o u rq u e s t i o n s .T h em o s ti m p o r t a n t o fw h i c hi s : I s
h e p r o j e c tc o m p a t i b l e w i t ht h e n e w e r6 4 s .T h ep r e l i m i n a r y
n s w e ri s a c a u t i o u s" y e s " .T h en e w e r m o d e l su s eL H 2 4 6 4 ' s
r e a d4 1 4 6 4 ) ,a 6 4 x 4 Kb i tD R A M . T h em o d i f i c a t i o n ,a s I s e ei t a t
h i sp o i n t ,i s s i m p l e .T h e' L S 1 5 7m u l t i p l e x o ri s r e p l a c e dw i t h
n ' L S I 3 9w h i c hi s p e r m a n e n t l ye n a b l e d .T h et w op s e u d o a d
r e s s e sa r et h e nu s e dt o d r i v e t h es e l e c tp i n so f o n eh a l fo f t h e
L S 1 3 9 .T h ef o u ro u t p u tp i n sa r et h e nc o n n e c t e dt o f o u rb a n k s
f 2 x 6 4 x 4 Kb i t d r a m s .T h ep r o b l e mh e r ei s t h e a d d i t i o n a l
i r i n go f t h e d r a m s .A l l t h i s i s , a s I s a i d ,p r e l i m i n a r y ;I
a v e n ' tt r i e di t y e t ,a n d I ' ms t i l li n t h ep r o c e s so f d r a w i n gu p
h es c h e m a t i c s .
h eo t h e rp o s s i b i l i t yh e r ei s f o r s a k i n gt h et w ox 4 d r a m so n t h e
o a r da n dl a y i n gi n a b a n ko f 4 1 2 5 6 ' s .A l t h o u g ht h el a y o u to f
h es y s t e mb o a r di s q u i t ed i f f e r e n tt h a nt h a to f t h eo l d6 4 s ,a l l
h e s i g n a l sn e e d e da r e d i r e c t l ya c c e s s i b l e .M y o p i n i o ni s t h a t
h i si s t h ew a yt o g o .B u ta g a i n ,I h a v e n ' tt r i e di t y e t .A n dD R A M
e x p e n s i v er i g h tn o w( I g o tm yf i r s t2 5 6 Kf o r $ 5 0 ) .
o u rn e x t q u e s t i o ni s a b i t u n c l e a r .D o e st h i sR a m E xw o r k
i t hg e o P a i n t ?I t a k ei t t o m e a n ,d o y o ug e t t h ef a s tD M At h a t
l l o w st h e q u i c ks c r o l l i n ga b o u ta g e o P a i n td o c u m e n t ?I f
h a t ' sy o u rq u e s t i o n , t h ea n s w e ri s n o .A s I m e n t i o n e di n t h e
r t i c l e ,t h es t a s h ,f e t c h ,s w a pa n dv e r i f yr o u t i n e sa r en o ts u p
o r t e d .S t i l lv a g u e ?T h eD M Ar o u t i n e si n G E O Sa r eb a s e do n t h e
r i n c i p l et h a ti t ' sf a s t e rt o u s et h eR E Ut o m o v ed a t at h a ni t i s
o u s et h eM P U .A n dt h e y ' r er i g h t .M yR a m E x ,h o w e v e r ,u s e s
h eM P Ut o m o v ed a t a ,a n ds i n c ei t m o v e si t a c r o s sb a n k s ,t h a t
o v ei s a l i t t l es l o w e rt h a n am o v ew i t h i no n eb a n k .S o ,f o r
h a tr e a s o n ,I c h o s en o tt o s u p p o r tt h o s er o u t i n e s .F o rt h a tr e ao na n da n o t h e r :y o uc a no n l ym o d i f ys o m u c hG E O Sc o d eb e
o r ey o ur u no u to f s p a c e .
T o i m p l e m e n tt h e G E O Sm o dw i t h o u tg e o P r o g r a m m e r :U s e
P A Lo r s o m eo t h e ra s s e m b l e r( I u s e dt o u s e B u d d y ) .T y p ei n
c o d er e m e m b e r i n gt o e x p a n da l l m a c r o s ,s h o r t e nt h e r o u t i n e
n a m e s ,a n dm a k ea l l o t h e rc h a n g e sa p p r o p r i a t et o y o u ra s s e m
b l e r .T h e na s s e m b l ea n ds p l i tt h e t h eh e a d e r m a n u a l l yf r o mt h e
p r o g r a m .T a k ea l o o ka t t h eG E O Sp r o g r a m f r o mt h ep r e v i o u s
T r a n s a c t o r . [ T h i si s a r e f e r e n c et o t h e " m a k e t o g e o s "p r o g r a m
a n dP A L - f o r m a ts o u r c ec o d et h a tw a sf e a t u r e di n " P r o g r a m
m i n gi n G E O S "b y F r a n c i s G .K o s t e l l ai n T 9 : 1 .- M O ]T h a t ' s
h o wt h e yd i di t .
C o n c e r n i n gt h e ' a l l e g e d 'a d v a n t a g e s o fg e o P r o g r a m m e r .H a v
i n gu s e di t , B u d d ya n dP A L ,I w o u l d n ' tg o b a c k .I t ' sj u s tt o o
g o o d .A n d ,o f c o u r s e ,f o rp r o g r a m m i n gu n d e r G E O S ,j u s tt o o
n e c e s s a r y !
I k n o wi t ' s i m p o s s i b l et o g e t t e x tt o l i n e u p p r o p e r l yi n
g e o P a i n t .I f y o uw a n tt o g e tr i d o f p r o p o r t i o n a ls p a c i n g ,t r y
u s i n gt h eC o m m o d o r ef o n t .I t ' sa n u g l yf o n t ,b u ti t w i l ld o j u s t
t h a t .I f y o u r p r o b l e mi s g e t t i n gt e x t t o l i n eu p ,u s et h ee d i tt o o l
a n dj u s tm o v ei t i n t o p l a c e .O n c ey o ud e v e l o pt h ek n a c k ,i t ' s
q u i t ee a s yt o d o .
A b o u te x p a n d i n gt h e 1 2 8 :m yo n l y t h o u g h tt h e r eu s e dt o b e t h i s :
p i g g y b a c kt h eD R A M sw i t h4 1 6 4 ' s ,b e n d u pp i n1 5 a n dc o n n e c t
i t t o t h eM M U ' s* C A S 2 ,a n d* C A S 3o u t p u t .T h a t ' sa n e a s y2 5 6 K ,
w i t h1 2 8 Ku n u s e di n a n yw a yb y t h e O S .O t h e rt h a nt h a t ,I d o n ' t
h a v ea c c e s st o s c h e m a t i c sf o rt h a tm a c h i n ea n da m u n f a m i l i a
w i t hi t sa r c h i t e c t u r e .W i l lm ya b o v es u g g e s t i o ne v e nw o r k ?I s n ' t
t h a t p a r to f w h a ty o u ' r eg e t t i n ga t i n y o u rc o m m e n t s ?Y o u ' r e
b e t t e r q u a l i f i e dh e r e t h a nm e . A l t h o u g hI w o u l dl o v et o g e tm y
h a n d so n t h es c h e m a t i c sf o rt h a tm a c h i n e .G o ta n o r d e rn u m b e r ?
S o m e t h i n gI w a n tt o g e t a t h e r ea b o u ty o u rm o d i f i c a t i o n I t
s e e m st h a ti t w o u l dw o r k ,y e s .A n d ,y e s ,t h eR A Mw o u l db e r e
f r e s h e dv i a* R A S .B u td o n ' to v e r l o o kt h eC 6 4p o w e rs u p p l y .
O n er e a s o nI w e n tf o rr e p l a c i n gt h ed r a m sa l t o g e t h e rw a st h a t
p o w e rs u p p l y .T o om u c hs u p p o r tc i r c u i t r ya n d t w o m u c h
d r a me q u a l so n ed e a dp o w e rs u p p l y ,a n dt h a td e a dp o w e rs u p
p l yw i l lp r o p a b l yh a v et a k e nt h eD R A Mw i t hi t . S o m e t h i n gt o
c o n s i d e r !M y b o a r d d o e sn o tr e q u i r ea b e e f i e rp o w e rs u p p l y
( e x c e p ti n t h o s em a r g i n a lc a s e s ) .M y6 4 r a nf o rs i xm o n t h sb e
f o r eI g o ta n R E U ,w i t hn o p r o b l e m s .A n dt h e nI w e n tt o 5 1 2 K ,
w h i c hd e f i n i t e l yr e q u i r e st h eh e a v i e rp o w e rs u p p l y .
A l t h o u g hi t ' sc e r t a i n l yn o t o b v i o u s ,I h a dt w oo v e r r i d i n gc o n
c e r n sw h e nI w e n ta t t h i se x p a n s i o np r o j e c t .K e e pt h e p a r t s
c o u n td o w na n d k e e pi t t r a n s p a r e n t .U s i n gt h eM P Up o r tl i t e r a l l y
r e q u i r e dt h em a s t e rd i s a b l e s w i t c h .A n dt h e o t h e rs w i t c h e s ?I
a g r e e ,s w i t c h e sa r ea s t e pi n t h ew r o n gd i r e c t i o n .B u tI w a n t e d
t o s h o wt h a ti t c o u l db e d o n es i m p l y .T h eo t h e ro p t i o n ,e v e n
w h e nt h a tb o a r dw a s b e i n g d e v e l o p e d ,w a s a n 8 - b i t l a t c h
m a p p e di n t op h a n t o mI / Os p a c e ,b u tt h e a d d i t i o n a lc i r c u i t r yw a s
t o om u c ha c o m p l i c a t i n gf a c t o r .I t h o u g h tt h a tm a n ym o r ep e o
p l ew o u l dt r y t o b u i l da s i x - c h i pb o a r dt h a n at w e l v e . Y e s ,m y
f i r s t5 1 2 Kh a d1 2c h i p sa n dw a sa p a t c ho n t h eo r i g i n a lb o a r d .
P a u lB o s a c k i □
r a n s a c t o r 4 9 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 52/84
H o wR a n d o mi s R N D ?
A na n a l y s i so f t h eC 6 4a n dC 1 2 8R N Dr o u t i n e s
b y D . J . M o r r i s s
T h eb e g i n n e ri n B A S I Ci s o f t e ns u r p r i s e dt o f i n d t h eR N Df u n c
t i o n .W h a ti s t h eu s e o fa f u n c t i o nt h a ts u p p l i e sa n a l l e g e d l y
c o m p l e t e l yu n p r e d i c t a b l en u m b e r ?T h e m o r ee x p e r i e n c e dp r o
g r a m m e rs e e st h eu t i l i t yo f s u c ha f u n c t i o ni n g a m e s ;o r ,m o r e
s e r i o u s l y ,i n s i m u l a t i o n s .B u ts o m en e wq u e s t i o n so c c u r :h o w
d o e st h e c o m p u t e rg e n e r a t e t h e s er a n d o mn u m b e r s , a n da r e
t h e yt r u l yr a n d o m ,o r d o t h e ye x h i b i ts o m eh i d d e nb i a s ?Y o u ' r ea b o u tt o i m p l e m e n ta c o s t - c u t t i n gi n v e n t o r yc o n t r o l
s y s t e m ,b a s e do n y o u rs i m u l a t i o no f t y p i c a ld e m a n dl e v e l s ;
w i l li t c u tc o s t so r l o s e s a l e s ?O r y o u ' r es p e c i f y i n gm a x i m u m
d r a i n a g ec a p a c i t yf o r ap r o p o s e dm u n i c i p a ls t o r m - s e w e rs y s
t e m ,a f t e rs i m u l a t i n g2 0 0y e a r so f r a i n f a l le x t r e m e so n y o u r
c o m p u t e r . T h i sc o u l dg e te x p e n s i v e !
P a r to f t h ep r o b l e mi s t h a ta r a n d o m - n u m b e rg e n e r a t o ri s , b y
i t s v e r yn a t u r e ,d i f f i c u l t t ot e s t .I f y o uc o m eu p w i t ha g r e a t
n e ws q u a r e - r o o tr o u t i n e ,y o un e e dt r y o n l ya f e wv a l u e st o
k n o wi f i t w o r k sp r o p e r l y .B u ta r a n d o m n u m b e rg e n e r a t o rc a n
b e s h o w nt o b e ' g o o d 'o n l yb y e x a m i n i n gm a n yo b s c u r ep r o pe r t i e so f l o n g s e q u e n c e s o fn u m b e r sp r o d u c e db y t h eg e n e r a
t o r .M o s to f u sl a c kb o t ht h es k i l la n dt i m et o r i g o r o u s l yt e s ta
R N Df u n c t i o n , p r e f e r r i n gt o t r u s ti n t h ed e s i g n e r so f t h eB A S I C
I n t e r p r e t e r .U n f o r t u n a t e l y , t h eR N Df u n c t i o n ,a s i m p l e m e n t e d
o n t h eC 6 4a n d C 1 2 8 ,h a sa n u m b e ro f s e r i o u ss h o r t c o m i n g s
t h a ts h o u l db e r e c o g n i z e di f R N Di s t o b e u s e de f f e c t i v e l y .
I n t h e o r y ,a c o m p u t e ri s a c o m p l e t e l yd e t e r m i n e ds y s t e m :g i v
e n t h ei n i t i a ls t a t e ,a n di n t h ea b s e n c eo f s u c hv a r i a b l e s a sk e y
b o a r di n p u t ,t h e s u b s e q u e n ts t a t e so f t h e c o m p u t e ra r e c o m
p l e t e l y d e f i n e d .S u c ha s y s t e mc a n n o tg e n e r a t et r u er a n d o m
n u m b e r s ;i n s t e a d ,R N Dp r o d u c e sp s e u d o - r a n d o mn u m b e r s .
T h e yp a s s( o r s h o u l dp a s s )a l l t h e t e s t so f r a n d o mn u m b e r s ,
s u c ha s a v e r a g ev a l u e ,s t a n d a r dd e v i a t i o n ,a n dr u n su p a n d
d o w n ,b u t t h e ya r eg e n e r a t e db y s o m es p e c i f i cm a t h e m a t i c a l
t e c h n i q u e .T h ep r o o ft h a tt h e s e a r en o tt r u er a n d o mn u m b e r s
l i e si n t h ef a c t t h a tt h es a m es e q u e n c e sc a nb e c r e a t e do v e ra n d
o v e ra g a i n .I n f a c t ,t h e r ea r e t h r e e s e p a r a t em a t h e m a t i c a lt e c h
n i q u e su s e dt o g e n e r a t ep s e u d o - r a n d o m n u m b e r s o nt h e C 6 4
a n d C 1 2 8 , s o m e t i m e si n c o n j u n c t i o n .
T h ef i r s ti s j u g g l i n g :t h ed i g i t st h a tm a k eu p t h en u m b e ra r er e
a r r a n g e di n s o m ed e f i n e dp a t t e r n . I nt h eC 6 4a n dC 1 2 8 ,t h i s
j u g g l i n gi s d o n eo n t h e b a s i so f i n d i v i d u a lb y t e so f a f o u r b y t e
n u m b e r .T h es e c o n d s y s t e mi s m u l t i p l i c a t i o na n d a d d i t i o n :
s o m es t a r t i n gn u m b e ri s m u l t i p l i e db y o n ec o n s t a n t ,a n da n o t
e r c o n s t a n ti s a d d e d .T h er e s u l t i n gr a n d o m n u m b e ri s p e r h a
a l t e r e d i ns o m eo t h e rw a y ,a n db e c o m e st h es t a r t i n gp o i n tf o ra
r e p e a to f t h es a m ep r o c e s s .T h et h i r ds y s t e mi n v o l v e s p a
t h e b u c k ;t h ec o m p u t e rt r i e st o f i n ds o m ee x t e r n a ls o u r c e
r a n d o mn u m b e r st h a ti t c a nu s et o g e n e r a t ei t s i n t e r n a lr a n d o
n u m b e r s .
T h eR N Df u n c t i o no n t h eC 1 2 8i s l o c a t e di n R O M ,s t a r t i n ga t
$ 8 4 3 4 ,i n B a n k1 5 ,a n di s t h es a m ei n b o t hV e r s i o n s0 a n d1 o f
t h e R O M s .T h er o u t i n em a k e se x t e n s i v eu s e o fF l o a t i n g P
A c c u m u l a t o r# 1 , ( F P A# 1 ) ,w h e r eB A S I Cs t o r e si n t e r m e d
r e s u l t s ,l o c a t e df r o m$ 6 3t o $ 6 8 .A n o t h e ri m p o r t a n ts t o r a
a r e ai s c a l l e dR N D X ,l o c a t e df r o m$ 1 2 I Bt o $ 1 2 1 F . T h i si s t h e
m y s t e r i o u sr a n d o m n u m b e rs e e d ,f r o m w h i c hn e wr a n d o
n u m b e r sg r o w .L i s t i n g1 i s a c o m m e n t e dd i s a s s e m b l yo f t h e
C 1 2 8r o u t i n e .S u b r o u t i n e su s e db y R N Da r en o ti n c l u d e d ,b u t
t h e i rp u r p o s e sa r e i n d i c a t e d .
T h eC 6 4 r n dr o u t i n ei s l o c a t e da t $ E 0 9 7 , f p a# 1 i s a t $ 6 1t o
$ 6 6 ,a n dR N D Xi s a t $ 0 0 8 B . A l t h o u g hs o m eo f t h ed e t a i l sa n d
s u b r o u t i n ec a l l sa r ed i f f e r e n t ,t h eg e n e r a lf l o wo f t h eC 6 4 R
r o u t i n ei s t h e s a m ea s t h eC 1 2 8v e r s i o n . L i s t i n g2 i s a c o m
m e n t e dd i s a s s e m b l yo f p a r to f t h eC 6 4 R N Df u n c t i o n .M o s to f
t h ef o l l o w i n gd i s c u s s i o no f t h eC 1 2 8r o u t i n ea p p l i e se q u a l l yt o
b o t hc o m p u t e r s ;w h e r ed i f f e r e n c e s a r es i g n i f i c a n t ,t h e ya r e
n o t e d .
T h eC 1 2 8r o u t i n es t a r t sa t $ 8 4 3 4 ,b y d e t e r m i n i n gt h es i g no f
t h e a r g u m e n to f R N D ,s t o r e di n F P A# 1 .T h er o u t i n et h e nt a k e
t h r e ed i f f e r e n t r o u t e s ,d e p e n d i n go n w h e t h e rt h a ta r g u m e n i s :
a ) n e g a t i v e ; b ) z e r o ;o r c ) p o s i t i v e .
R N D ( - )
( T h eC 1 2 8a n dC 6 4v e r s i o n so f t h i sp a r to f R N Da r ei d e n t i c a
I f t h ea r g u m e n to f R N Di s n e g a t i v e ,t h eC 1 2 8r o u t i n eb r a n c h
t o $ 8 4 6 A .H e r e ,t h ef i r s ta n df o u r t hb y t e so f F P A # 1a r ei n t e r
c h a n g e d ,t h e nt h es e c o n da n dt h i r d .A t t h i sp o i n t ,F P A # 1c o n
t a i n e d t h en e g a t i v ea r g u m e n to f R N D .T h es i g nb y t ei s s e t t o
z e r o ,m a k i n gt h e v a l u ep o s i t i v e ,a n d t h e e x p o n e n tb y t ei s
t r a n s f e r r e dt o t h er o u n d i n gb y t e .T h ee x p o n e n tb y t ei s t h e ns e t
t o $ 8 0 ,m e a n i n ga n u m b e rb e t w e e no n e - h a l fa n do n e ,a n dt h e
T r a n s a c t o r 5 0 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 53/84
n u m b e ri s " n o r m a l i z e d " .T h ep r o c e s so f s w i t c h i n gb y t e sm a y
h a v el e dt o a n u m b e ri n w h i c ht h em o s ts i g n i f i c a n tb i t( o rb i t s )
o f t h em o s ts i g n i f i c a n tb y t ei s n o t ao n e .D u r i n gn o r m a l i z a t i o n ,
h e w h o l ef o u r - b y t en u m b e ri n f p a# 1 i s s h i f t e dl e f t ,a n dt h e
e x p o n e n td e c r e a s e db y o n ef o re a c hs h i f t ,u n t i lt h a tm o s ts i g
n i f i c a n tb i ti s o n e .T h en e wb i t sn e e d e da t t h el e a s ts i g n i f i c a n t
e n do f t h e n u m b e r( i f a n y )a r e o b t a i n e df r o mt h er o u n d i n g
b y t e .T h i sn e wn u m b e ri n f p a # 1i s l e f tt h e r ea s t h e v a l u e
r e t u r n e db y t h eR N Df u n c t i o n ,b u t ac o p yi s p a c k e d( s t o r e d i na
s l i g h t l y d i f f e r e n tw a y )i n R N D X ,s t a r t i n ga t a d d r e s s$ 1 2 I B ,f o r
e a s o n st h a t w i l l( I h o p e )b e c o m ec l e a rs o o n .
T h u s ,w e s e et h a tR N Do f a n e g a t i v en u m b e rc r e a t e sa r a n d o m
n u m b e rb y c a r r y i n g o u ta s p e c i f i cm a n i p u l a t i o no n t h a tn e g a
i v en u m b e r .S o ,R N D ( - 3 )w i l la l w a y sy i e l d t h es a m en u m b e r ,
a n d R N D ( - 1 1 2 2 3 3 )w i l la l w a y sy i e l ds o m eo t h e rs p e c i f i cn u m
b e r ,r n d ( - )o n t h eC 6 4f o l l o w se x a c t l yt h es a m ep r o c e d u r e : a
g i v e nn e g a t i v ea r g u m e n tg i v e st h e s a m e r a n d o m n u m b e ro n
b o t hm a c h i n e s .
A s t h e d i s a s s e m b l y s h o w s ,t h e l e a s ts i g n i f i c a n tb y t eo f t h ea r g u m e n tb e c o m e st h em o s ts i g n i f i c a n tb y t e o ft h e r e s u l t i n g
a n d o mn u m b e r .I f t h ea r g u m e n ti s a n u m b e rw i t ho n l y af e w
d i g i t s( w h e ne x p r e s s e di n b i n a r yf l o a t i n gp o i n t f o r m ) ,t h e nt h e
e a s ts i g n i f i c a n tb y t e( o rb y t e s )w i l lb e z e r o .S u c ha r g u m e n t s
n c l u d ei n t e g e r s ,a n df r a c t i o n sl i k e0 . 1 3 2 8 1 2 5( 1 7 / 1 2 8 )a n d
0 . 8 9 0 6 2 5( 5 7 / 6 4 ) .W h e nt h e s ez e r o b y t e sa r e s w i t c h e dt o
b e c o m et h em o s ts i g n i f i c a n tb y t e so f t h er a n d o mn u m b e r ,a l o t
o f n o r m a l i z a t i o ni s n e c e s s a r y .T h i si n t u r nm e a n st h a tt h e
e x p o n e n ti s d e c r e a s e da l o t , c r e a t i n ga v e r ys m a l lr a n d o m
n u m b e r .R N D ( - 3 7 ) ,f o r e x a m p l e ,i s 3 . 4 5 8 0 8 0 7 6 E - 8 ,a n d
R N D ( - 6 . 6 2 5 )i s 4 . 9 4 7 9 2 4 0 3 E - 8 .O n t h eo t h e rh a n d ,t h eb i n a r y
e p r e s e n t a t i o no f 3 7 / i 3 1 ,f o re x a m p l e ,u s e sa l l f o u rb y t e s ,a n d
R N D ( - 3 7 / 1 3 1 )i s a m o r er e a s o n a b l e0 . 9 8 5 6 8 1 3 2 9 .( C a n a n y
a n d o mn u m b e rb e t e r m e dr e a s o n a b l e ? )
H o wd o e s R N D ( - 3 7 / 1 3 1 )c o m p a r et o R N D ( - 3 7 / 1 3 1 / 2 )o r
R N D ( - 3 7 / 1 3 1 * 6 4 ) ?T h e ya r et h es a m e !T h eo n l yd i f f e r e n c ei n
h eb i n a r yf l o a t i n gp o i n tf o r mo f t h et h r e ea r g u m e n t si s i n t h e
e x p o n e n t ,a n dt h ee x p o n e n tg e t ss h i f t e d t ot h er o u n d i n gb y t e ,
o b e u s e da s t h e s o u r c ef o rn e wb i t sd u r i n gn o r m a l i z a t i o n .
S i n c et h e s ea r g u m e n t su s ea l l f o u rb y t e s ,l i t t l en o r m a l i z i n gi s
r e q u i r e d ,a n dt h er o u n d i n gb y t ei s p r o b a b l y n o tn e e d e d .O nt h e
o t h e rh a n d , R N D ( - 5 ) , R N D ( - I O ) ,a n dR N D ( - 2 0 ) , a l t h o u g ha l l
v e r yc l o s e , a r ed i f f e r e n t .T h ed i f f e r e n te x p o n e n t so f t h ea r g u
m e n t s ,s t o r e di n t h er o u n d i n gb y t e ,b e c o m es i g n i f i c a n tw h e n
t h er a n d o mn u m b e r s ,w i t h o n l ya f e wb i t ss e t ,a r en o r m a l i z e d .
I h a v eo f t e ns e e na r t i c l e sw h i c hr e c o m m e n dr n d ( - t i )a s a
g o o ds o u r c eo f r e a l l yr a n d o mn u m b e r s .S i n c et h ej i f f yc l o c k
k e e p st i m ei n i n t e g r a ln u m b e r so fj i f f i e s ,i t i s c l e a rt h a tR N D ( -
T i )w i l la l w a y sy i e l dv e r ys m a l lr a n d o mn u m b e r s . P e r h a p sa
v a r i a t i o nl i k eR N D ( - T I * S Q R ( 2 ) )w o u l dg i v et h ed e s i r e dr e s u l t .
S i n c e R N D ( - )a l w a y sg i v e st h es a m ev a l u ef o ra g i v e nn e g a t i v e
a r g u m e n t ,i t w o u l dn o ta p p e a rt o b e a v e r yu s e f u lr a n d o m -n u m b e rg e n e r a t o r .I n d e e d ,a b o u tt h eo n l yp u r p o s eo f R N D ( - )i s
t o s t o r ea n e w ,d e f i n i t ev a l u ei n t h eR N D Xa r e a .
R N D ( O )
( T h eC 1 2 8a n dC 6 4v e r s i o n so f t h i sp a r to f R N Da r e s i g n i f i
c a n t l yd i f f e r e n t . )
R e f e r r i n gt o t h ed i s a s s e m b l y o ft h eR N Dr o u t i n e a g a i n ,i f t h e
a r g u m e n to f R N Di s z e r o ,t h e C 1 2 8r o u t i n ef a l l st h r o u g ht o
$ 8 4 3 B .H e r e ,t h e r o u t i n es e l e c t sB a n k1 5 , t h e np r o c e e d st o
l o a dF P A# 1 w i t ht h ec o n t e n t so f $ D C 0 4t o $ D C 0 7 ,a n dj u m p s
t o $ 8 4 7 A .T h i si s t h es a m ep a r to f t h e r o u t i n et h a ts e t st h es i g n
p o s i t i v e ,t h e e x p o n e n tb y t et o $ 8 0 ,n o r m a l i z e st h e v a l u
c o p i e si t t o $ 1 2 1 B , a n dt h e ne x i t s .
T h el o c a t i o n st h a tp r o d u c et h e r a n d o mn u m b e r ,$ D C 0 4t o
$ D C 0 7 ,a r ef o u rr e g i s t e r so n C o m p l e xI n t e r f a c eA d a p t e r( C I A )
# 1 .T h e s ef o u rb y t e ss t o r et h eh i g ha n d l o wb y t e so f t w oi n t e r n a
1 6 - b i t t i m e r s .T h e ya r en o tp a r to f t h eT i m eO fD a yC l o c k s ,a s
s o m er e f e r e n c e sh a v es t a t e d( b u ts e e t h eC 6 4v e r s i o n d i s c u
b e l o w ) .T h et i m e r sa r en o r m a l l yu s e dt o c o u n tp u l s e so f t h es y s
t e mc l o c k .I n t h e o r y ,e a c hb y t ec o u l dh a v ea n yv a l u ef r o m 0t o
2 5 5 ,g i v i n gt o t a l l yr a n d o mn u m b e r s ;h o w e v e r ,o n l yo n eo f t h e s et w ot i m e r si s r u n n i n g !T h eo t h e rt i m e r ,a t $ D C 0 4 - 0 5 ,i s u s e di n
t h eC 1 2 8f o rt a p ea n df a s td i s ko p e r a t i o n s ,a n di s l e f ts t o p p e db y
t h e s er o u t i n e s ,u s u a l l yr e a d i n g2 o r 1 . E n t e ra n dr u nt h i ss h o r t
p r o g r a mt o d i s p l a y t h e f o u rt i m e rb y t e s .
1 0 0 b a n k1 5 : s a = 5 6 3 2 0
1 1 0 f o r k = 4 t o 7 : p r i n tp e e k ( s a+ k ) ,
1 2 0 n e x t : p r i n t
1 3 0 g o t o1 1 0
A s y o uc a ns e e ,o n l yt w oo f t h ef o u r b y t e sa r ec h a n g i n g .T h i s
l i m i t st h er a n g e o fp o s s i b l ev a l u e st h a tw i l lb e t r a n s f e r r e dt o
F P A# 1 , a n dt h u sl i m i t st h e r a n d o mn u m b e r sp r o d u c e db y
R N D ( 0 ) . S i n c e o n l yt h e f i r s ta n dt h i r db y t e so f t h e r a n d o
n u m b e ra r ec h a n g i n g ,w h i l et h es e c o n db y t ei s a c o n s t a n t ,a n d
t h ef o u r t hi s z e r o ,t h er e s u l ti s a s e to f r a n d o mn u m b e r sc l u s
t e r e d c l o s e l y ( b u tn o tv e r y ,v e r yc l o s e l y )a b o u t2 5 6e v e n l y
s p a c e dv a l u e s .
T o d e m o n s t r a t et h ee f f e c to f t h i ss t o p p e dt i m e r ,r u nt h i ss h o r t
p r o g r a m :
2 0 0 p r i n tr n d ( 0 )* 2 5 6 : g o t o2 0 0
N o t et h a ta l lt h en u m b e r sp r i n t e d a r ev e r yc l o s et o w h o l en u m
b e r s .I n f a c t ,i f t h es t o p p e dt i m e ri s r e a d i n g1 , t h ef r a c t i o n
p a r t o f t h e n u m b e rw i l l b e b e t w e e n 0 . 0 0 3 9 0
0 . 0 0 7 8 1 2 5 ;t h a ti s ,b e t w e e n1 / 2 5 6a n d2 / 2 5 6 .
T h i sl i m i t a t i o ns e r i o u s l yd e c r e a s e st h eu s e f u l n e s so f R N D ( 0
F o re x a m p l e ,y o um a yw i s ht o g e n e r a t e ar a n d o mi n t e g e
b e t w e e n1 a n d 1 0 0 0i n c l u s i v e ;a s t a t e m e n tl i k e :
x = i n t ( r n d ( 0 ) * 1 0 0 0+ 1 )
w o u l da p p e a rt o d oe x a c t l yt h i s .I n f a c t ,o n l y2 5 6o f t h e1 0 0 0
i n t e g e r sw o u l de v e rb e g e n e r a t e d !
T r a n s a c t o r5 1
A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 54/84
T h i si s a v e r yg o o dr e a s o nt o a v o i d R N D ( O ) .H o w e v e r ,t h e r e
m a yb e c i r c u m s t a n c e sw h e r ei t m u s tb e u s e d ;f o re x a m p l e ,t o
i n c r e a s es p e e d( s e e t h et i m i n gr e s u l t sb e l o w ) .T om a k er n d ( O )
t r u l yr a n d o m ,t h es t o p p e dt i m e rm u s tb e s t a r t e da n dk e p t r u n
n i n g .T h i ss h o r tp r o g r a m ,f o r t h eC 1 2 8 ,w i l ls t a r tt h e t i m e r ,
a n ds e ti t c o u n t i n gd o w nr e p e a t e d l yf r o m6 5 5 3 5 .
3 0 0 b a n k1 5
3 1 0 s a = 5 6 3 2 0 : p o k e s a + 4 , 2 5 5 : p o k e s a + 5 , 2 5 5
3 2 0 p o k es a + 1 4 ,1 : e n d
R e - r u nt h e p r e v i o u sR N D ( O )e x a m p l e s ,a f t e rs t a r t i n g t h e
t i m e r ,a n d y o uw i l ls e e t h a tR N D ( O )i s n o ww e l l - b e h a v e d .
U n f o r t u n a t e l y ,a n ys e r i a lp o r to p e r a t i o n ,s u c ha s c a l l i n gu p a
D I R E C T O R Y ,w i l ls t o pt h et i m e ru n t i lt h ep r o g r a ma b o v ei s r u n
a g a i n .
T h eC 6 4v e r s i o no f r n d ( 0 )i s q u i t e s i m i l a r ( s e eL i s t i n g# 2 ) ,
b u t u s e ss o m ed i f f e r e n t r e g i s t e r so n C I A # 1t o g e n e r a t et h er a n
d o mn u m b e r ;t h et w or e g i s t e r so f T i m e r # A ,f o rB y t e s # 1a n d
# 3 ,a n dt h e 1 / 1 0s e c o n da n ds e c o n d sr e g i s t e r so f t h eT i m eo f
D a yC l o c k ,f o rB y t e s# 2 a n d# 4 .T o w a t c ht h e s er e g i s t e r so n
t h eC 6 4 ,r u nt h i sp r o g r a m :
1 5 0 s a = 5 6 3 2 0
1 6 0 p r i n tp e e k ( s a + 4 ) , p e e k ( s a + 5 ) ,
p e e k ( s a + 9 )
1 7 0 g ot o 1 6 0
p e e k ( s a + 8 ) ,
N o t et h a tt h el a s tt w or e g i s t e r sa r ef i x e da t z e r o ; t h u s ,R N D ( 0 )
o n t h eC 6 4i s e v e nm o r el i m i t e d t h a nt h eC 1 2 8v e r s i o n .R u n
t h e p r o g r a mf o u n di n L i n e2 0 0a b o v e ,t o d e m o n s t r a t et h e
e f f e c to f t h i sp r o b l e m o nr n d ( 0 ) .
T h eT i m eo f D a yC l o c ki s r u n n i n g ;h o w e v e r ,u n t i la w r i t et o
t h e 1 / 1 0s e c o n dr e g i s t e rt a k e sp l a c e ,t h er e g i s t e r sa r el a t c h e d .
R u nt h i sp r o g r a m :
1 8 0 p o k e5 6 3 2 8 , 0
t o a l l o wt h er e g i s t e r s t of o l l o wt h e t i m e ;r e - r u nt h ep r o g r a ma t
L i n e1 5 0 a n ds e et h ec h a n g e .
U n f o r t u n a t e l y ,t h i sd o e s n o ti m p r o v e R N D ( 0 ) o nt h eC 6 4v e r y
m u c h .T h e1 / 1 0s e c o n dr e g i s t e ro n l y r u n su p t o 9 ( d e c i m a l ) ,a n dt h es e c o n d sr e g i s t e ro n l yr u n su p t o 8 9 ( d e c i m a l ) ,$ 5 9 .S o
e v e ni f t h eT i m eo f D a yC l o c kr e g i s t e r sa r ec h a n g i n g ,t h er a n
d o mn u m b e r sg e n e r a t e da r es t i l lc l u s t e r e da b o u t2 5 6v a l u e s .
A n o t h e r p r o b l e mw i t hR N D ( 0 )i s t h a t ,i f i t i s u s e dr e p e a t e d l y ,i n
s u c c e s s i o n ,i n a B A S I Cp r o g r a m ,t h et i m e r sw i l lc h a n g ei n a p r e
d i c t a b l ew a yi n t h ec o n s t a n ti n t e r v a lb e t w e e ns u c c e s s i v ec a l l st o
R N D ,y i e l d i n gp a i r so fr a n d o mn u m b e r st h a ta r eh i g h l yc o r r e l a t e d .
F o re x a m p l e ,u s i n gr n d ( 0 )t w i c et o s i m u l a t er o l l i n ga p a i ro f
d i c ew i l lp r o d u c ea v e r yu n u s u a l ,n o n - r a n d o md i s t r i b u t i o no f
p a i r so f v a l u e s ;s o m ep a i r so f v a l u e sw i l ln e v e ra p p e a r !T r yt h i ss h o r tp r o g r a m :
4 0 0 d i m a ( 6 , 6 )
4 1 0 x= r n d ( . ) : y = r n d ( . )
4 2 0 x = 6 * x + l: y = 6 * y + l
4 3 0 a ( x , y ) = a ( x , y ) + 1
4 4 0 g e t q $ : i f q $ = " "t h e n g o t o4 1 0
4 5 0 p r i n t : p r i n t
4 6 0 f o r k = 1 t o 6
4 7 0 f o r 1 = 1 t o 6
4 8 0 p r i n ta ( k , 1 ) ,
4 9 0 n e x t 1 : p r i n t : n e x tk
5 0 0 g ot o 4 1 0
P r e s sa n yk e yo c c a s i o n a l l yt o s e ea n u p d a t eo f h o wo f t e ne a c h
p o s s i b l ep a i ro f v a l u e ss h o w su p . N o t et h e e x t r e m en o n
r a n d o md i s t r i b u t i o no f t h ep a i r so f v a l u e s .S w i t c h i n gt o F A S
m o d ea c c e n t u a t e st h ep r o b l e m .I n t e r r u p t s t h a to c c u rb e t w e
t h e t w oc a l l st o R N D ( 0 )a l l o wt h e t i m e r st o r u nf o r d i f f e
l e n g t h so f t i m e ,a n di n c r e a s e( s l i g h t l y )t h er a n d o m n e s so f t h e
d i s t r i b u t i o no f p a i r so f v a l u e s .T h er e s u l t so f t h i sp r o g r a mo n
t h eC 6 4a r es t i l ld i s t o r t e d ,b u tl e s ss e v e r e l y .
F o rb o t ht h e s er e a s o n s ,R N D ( 0 )s h o u l db e u s e d o n l yt o c r e a t
n e wv a l u e sf o rR N D X ,a s w a st h ec a s eo f f o rr n d ( - )
R N D ( + )
( T h eC 1 2 8a n dC 6 4v e r s i o n so f t h i sp a r to f R N Da r ei d e n t i c a l
R e f e r r i n go n c em o r et o t h ed i s a s s e m b l yo f R N D ,i f t h ea r g u
m e n ti s p o s i t i v e ,t h e r o u t i n eb r a n c h e st o $ 8 4 5 5 .H e r e ,t h e
n u m b e rs t o r e di n $ 1 2 1 B - $ 1 2 1 F( r n d x )i s r e c o v e r e di n t oF P A
# 1 , a n dm u l t i p l i e db y t h e c o n s t a n ts t o r e d( i n f l o a t i n g - p
f o r m )i n R O Ma t $ 8 4 9 0- $ 8 4 9 4 .T h ec o n s t a n ti n $ 8 4 9 5- $ 8 4 9i s t h e n a d d e d .T h er o u t i n et h e nf a l l st h r o u g ht o t h ec o d et h a t
j u g g l e st h eb y t e s ,s e t st h e s i g na n de x p o n e n t , n o r m a la n d
f i n a l l ys t o r e st h en e wv a l u eb a c ki n $ 1 2 1 B .
N o t et h a tt h ev a l u ef o u n di n F P A # 1a t t h eb e g i n n i n g o ft h er o u
t i n e ,t h e p o s i t i v ea r g u m e n to f t h eR N Df u n c t i o n ,i s n e v e ru s e d
I n s t e a d ,i t i s o v e r - w r i t t e nb y t h el a s tr a n d o mn u m b e r ,s t o r e di n
r n d x .I t i s t h i so l dr a n d o mn u m b e rt h a ti s u s e dt o c r e a t e t
n e x tr a n d o mn u m b e r ,w h i c hi n t u r nb e c o m e st h es e e df o r t h
n e x tr a n d o mn u m b e r .
A n yp o s i t i v ea r g u m e n t ,c o n s t a n to r v a r i a b l e , f o rr n dw o u l
h a v e p r o d u c e de x a c t l yt h es a m en e wr a n d o m n u m b e f r o ma
g i v e ns e e d .
F r o mt h i sd e s c r i p t i o n ,i t i s c l e a rt h a t ,g i v e na p a r t i c u l a rv a l u
s t o r e di n R N D X ,r e p e a t e d u s eo f r n dw i t ha n yp o s i t i v ea r g u
m e n tw i l lg i v et h es a m es e q u e n c eo f r a n d o mn u m b e r se v e r
t i m e .T h ec o l d - s t a r tr o u t i n ei n i t i a l i z e sR N D Xt o z e r o ,s o t h a t
s i m p l yu s i n gr n dw i t h ap o s i t i v ea r g u m e n tw o u l da l w a y
y i e l dt h e s a m es e q u e n c ea f t e r r e s e t t i n g .T h eo n l yw a yt o
c h a n g et o a n e ws e q u e n c eo fr a n d o mn u m b e r si s t o c h a n g et o a
n e wv a l u ei n r n d x ;u s er n d ( - ) ,i f y o u w a n tt o s w i t c ht o s o m e
s p e c i f i cs e q u e n c e ,o r R N D ( 0 ) ,i f y o uw i s ht o j u m pt o a n u n d et e r m i n e dn e ws e q u e n c e .
T r a n s a c t o r5 2 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 55/84
O n ei m p o r t a n tq u e s t i o na b o u tR N D ( + )i s : h o wl d n gb e f o r et h e
r a n d o mn u m b e r sg e n e r a t e dt h i sw a yb e g i nt o r e p e a t .R e m e m
b e r ,a s l o n ga s y o uu s e R N D ( + ) ,y o ua r ef o l l o w i n ga f i x e dp a t h ,
u m p i n gi n a d e f i n i t er o u t ef r o m o n en u m b e rt o a n o t h e r .S o o n
e r o r l a t e r ,y o u m u s tl a n do n a n u m b e ry o u h a v eb e e nt o
b e f o r e .A f t e ra l l ,t h e r e a r eo n l ys o m a n yd i f f e r e rt n u m b e r so n
w h i c ht o l a n d .O n c et h i sh a p p e n s ,y o ut h e n r e p e a ty o u rp r e v i
o u ss e q u e n c eo f r a n d o mn u m b e r s ,o v e ra n do v e r .T h el e n g t ho f
h i sl o o pi s d e p e n d e n to n t h e c o n s t a n t su s e dt o g e n e r a t et h e
n e wr a n d o mn u m b e rf r o mt h eo l do n e .I w a sc u r i o u sa s t o h o w
w e l lt h eC 6 4a n dC 1 2 8d e s i g n e r sh a dc h o s e nt h e s ec o n s t a n t s .
T h em a c h i n el a n g u a g ep r o g r a m( L i s t i n g3 ) w , a sw r i t t e nt o
d e t e r m i n et h el e n g t ho f t h e s el o o p s .
T h ep r o b l e mo f f i n d i n gt h el o o pl e n g t hi s c o m p l i c a t e db y t h e
p o s s i b i l i t yo f a s i t u a t i o nl i k et h i s :r a n d o ms e e dA p r o d u c e s B ,
w h i c hp r o d u c e sC , w h i c hp r o d u c e sD , w h i c hp r o d u c e sE ,
w h i c hp r o d u c e sF , w h i c hp r o d u c e sC , a n dt h el o o pi s c o m p l e t
d w i t h o u te v e rr e t u r n i n gt o A . T h es e q u e n c ec o n s i s t so f a
i s n o te n o u g h
s e q u e n c ei n
o o p ,C , D , E , F , a s w e l la s a " t a i l " ,A , B . T h e r e
o o mt o k e e pe v e r yr a n d o m n u m b e ro f t h e
m e m o r y ,n o ri s t h e r et i m et o c h e c kt h e c u r r e n tr a n d o mn u m b e r
g a i n s ta l lp r e v i o u sr a n d o mn u m b e r st o f i n da m p t c hw h e nt h e
o o pc l o s e s .
T h es o l u t i o ni s t o r u nt w os e q u e n c e s .T h e yb o t hs t a r tw i t ht h e
a m es e e d .O n es e q u e n c ec a l c u l a t e sR N D ( + )o n c e ;t h e nt h e
t h e rs e q u e n c ec a l c u l a t e sR N D ( + )t w i c e ;t h e nt h e p r o c e s si s
e p e a t e d .E a c hs e q u e n c el o a d si t s o w no l d s e e di n t or n d x
e f o r e t a k i n gi t s s i n g l eo r d o u b l es t e p ,a n ds a v e si t s n e wc u r
e n ts e e da f t e r w a r d s .E v e n t u a l l yt h ed o u b l e - s t e p p i n gs e q u e n c e
w i l lc o m p l e t et h el o o pa n dc a t c hu p w i t ht h e s i n g l e - s t e p p i n g
e q u e n c ef r o mb e h i n d .T h e n u m b e ro f s t e p sn e e d e di s t h ee n g t ho f t h el o o p .
T h es i t u a t i o ni s a b i t m o r ec o m p l i c a t e di f t h es e q u e n c es t a r t s
n t h et a i la t t a c h e dt o a l o o p , a sd e s c r i b e d a b o v e .I f t h et a i li s
o n g ,c o m p a r e dt o t h e l o o p ,t h e nt h ep r o g r a mi n L i s t i n g3 w i l l
e c o r d al e n g t ht h a ti s a p p r o x i m a t e l ye q u a lt o t h el e n g t ho f t h e
a i l .T h er e p o r t e d l e n g t hw i l lb e a m u l t i p l eo f t h el o o pl e n g t h .
W h e nt h i sM Lp r o g r a m w a sr u n w i t h o v e r1 0 0 0d i f f e r e n ts t a r t
n gr a n d o ms e e d s ,a r e m a r k a b l ep a t t e r nw a sd i s c o v e r e d .F u l l y
8 3 %o f t h es e q u e n c e s l o o p e di n t h es a m el e n g t h :6 3 , 6 7 1r a n
d o mn u m b e r s !A b o u t2 %o f t h es e q u e n c e sc o n t a i n e de x a c t l y
w i c ea s m a n yn u m b e r s ;t h e s ew e r ed e t e r m i n e dt o b e l o o p s o f
h es a m el e n g t h ,6 3 , 6 7 1 , e n t e r e dt h r o u g ha t a i la t l e a s ta s l o n g .
N o s e q u e n c e sl o n g e r t h a nt h i sw e r ef o u n d .
T h er e m a i n i n g1 5 %o f t h es e q u e n c e sw e r ec o n s i d e r a b l ys h o r t
r . 5 % o f t h es e q u e n c e st r a c e dh a dl e s st h a n1 0 , 0 0 0r a n d o m
n u m b e r s .T h es h o r t e s ts e q u e n c e o b s e r v e dh a do n l y5 9 0n u m
b e r si n i t !
T h es h o r ts e q u e n c e ss h o w e da n o t h e rs t r a n g ep r o p e r t y .T h e y
a l m o s ta l lt u r n e do u tt o b e l o o p sw i t ht a i l s ,a n dt h el o o p sw e r e
o f o n l ya f e wd i f f e r e n t l e n g t h s .F o re x a m p l e , a b o u t9 %o f t h e
s e q u e n c e ss t u d i e d t u r n e d o u tt o e n di n l o o p so f l e n g t h 7 2 4 .
S o m eo f t h e s es e q u e n c e sh a dv e r y l o n gt a i l s ,t w e n t yo r t h i r t y
t h o u s a n dn u m b e r sl o n g ,b u t t h e l o o pa t t h e e n dw a sq u i t e
s h o r t .A n o t h e r2 %o f t h es e q u e n c e ss t u d i e de n d e di n l o o p so f
l e n g t h7 0 3 6 , w h i l ea f e wo t h e rl o o pl e n g t h s ,l i k e4 2 3 2 , 2 6 4
a n d5 6 6 0s h o w e du p a t t h ee n do f a f e ws e q u e n c e s .T h er e a s o n
t h a tt h e s el o o pl e n g t h s ,a n do n l yt h e s el o o pl e n g t h s ,w e r e
o b s e r v e di s a m y s t e r yt o m e .
D e s p i t et h e s h o r t l o o p s ,C o m m o d o r es e e m st o l i k et h i sp a r t i c u
l a r v e r s i o no f R N D ( + ) .T h et w oc o n s t a n t su s e dt o g e n e r a t et h e
n e x t r a n d o mn u m b e ra r e 1 1 8 7 9 5 4 6( m u l t i p l i c a n d )a n d
3 . 9 2 7 6 7 7 7 4 E - 8( a d d e n d ) .T h e s ea r e e x a c t l yt h e s a m e
c o n s t a n t sa s R N Du s e si n t h eC 6 4 ,a n dt h u sR N D ( + ) o nt h eC 6 4
s u f f e r sf r o mt h e s a m ep r o b l e ma s R N D ( + )o n t h e C 1 2 8 .T o
i l l u s t r a t et h i sp r o b l e m ,r u nt h i ss h o r tp r o g r a m o ne i t h e ra C 1 2 8
o r C 6 4 ,w i t ht h ea p p r o p r i a t ev a l u eo f s a , t h ea d d r e s so f t h e
s t a r to f r n d x :
6 0 0 s a = 4 6 3 5: r e m f o r c l 2 8 ,s a = 1 3 9 f o rc 6 4
6 1 0 b a n k1 5 : f a s t : r e m o n c l 2 8o n l y
6 2 0 f o r k = 0 t o 4 : r e a d x : p o k es a + k ,x : n e x t
6 3 0 d a t a1 2 8 , 1 1 5 , 1 5 3 ,5 6 , 1 9 7
6 4 0 y = r n d ( l ) :p r i n t y
6 5 0 f o r k = 1 t o 2 9 4 : x = r n d ( l ): n e x t
6 6 0 g o t o6 4 0
T h i sp r o g r a ms e e d st h e f i v eb y t e so f r n d xw i t hv a l u e st h a t
p l a c ei t o n a l o o p o fl e n g t h 2 9 5 .I f y o un o wu s eR N D ( + )r e p e a t
e d l y ,y o uw i l lg e n e r a t et h e s a m e2 9 5r a n d o mn u m b e r so v e r
a n do v e ra g a i n .A s y o uc a ns e ef r o mt h eo u t p u to f t h i sp r o
g r a m ,t h es a m ev a l u eo f Y i s g e n e r a t e da n dp r i n t e de a c h t i m
a r o u n dt h el o o p .A l l t h e o t h e r2 9 4r a n d o mn u m b e r sa r er e p e a t
e d a s w e l l .
A c u r i o u sp r o g r a m m i n gt r i c kt u r n e du p w h e nI c h e c k e dt h e
v a l u e s o ft h e s eR N Dc o n s t a n t si n e a r l i e rP E T / C B Ms y s t e m s .T h e
d e s i g n e r sm a n a g e dt o s t o r et w of i v e - b y t e c o n s t a n t si n o n l y
e i g h tb y t e s .T h e ya c c o m p l i s h e dt h i sa p p a r e n t m i r a c l eb y o v e r
l a p p i n gt h ec o n s t a n t s .T h u s ,t h ef i f t hb y t eo f t h ef i r s tc o n s t a n t
i s a l s o t h ef i r s tb y t e o ft h es e c o n dc o n s t a n t ; t h ef i r s tb y t e o ft h e
r o u t i n ei s a l s ot h ef i f t hb y t e o ft h es e c o n dc o n s t a n t .W h e nt h i s
r o u t i n ew a st r a n s f e r r e dt o t h em o r es p a c i o u sC 6 4a n d C 1 2 8
t h e c o n s t a n t sw e r eg i v e nf i v eb y t e se a c h .B u tt h et w on e wf i f t h
b y t e sw e r es e tt o z e r o .T h u st h e c o n s t a n t sw e r e c h a n g e di n v a l
u e s l i g h t l y ,a n dt h es e q u e n c e s o fr a n d o mn u m b e r sg e n e r a t e
b y R N D ( + )o n t h eP E T / C B Ma n do n t h eC 6 4a n dC 1 2 8a r ec o m
p l e t e l yd i f f e r e n t .
A l t h o u g h6 3 , 6 7 1r a n d o mn u m b e r ss e e m sl i k ea l o t ,i t s h o u l d
b e c o n s i d e r e di n l i g h to f t h eo v e r3 5 b i l l i o np o s s i b l er a n d o m
n u m b e r s .C l e a r l y ,f o ra n yp a r t i c u l a rs t a r t i n gr a n d o ms e e d ,o n l y
a s m a l lf r a c t i o no f a l lp o s s i b l er a n d o mn u m b e r si s a v a i l a b l eo n
t h a tp a r t i c u l a rs e q u e n c e .I f t h et o t a ln u m b e ro f r a n d o mn u m
b e r su s e de x c e e d s6 3 , 6 7 1 ,a s i t w e l lm i g h t ,t h es e l e c t i o no f
n u m b e r sw i l ln o tb e r a n d o m . T h e r ei s a l s o t h ed i s t i n c tp o s s i
b i l i t yo f h i t t i n ga m u c hs h o r t e rs e q u e n c e .F o ri m p o r t a n ta p p l i
c a t i o n s ,i t w o u l db e a g o o di d e at o u s e R N D ( - )o r r n d ( 0 )f r e
q u e n t l y ,t o j u m pt o a n o t h e rl o o p .
T r a n s a c t o r 5 3 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 56/84
T i m i n g
A s t h ed i s a s s e m b l yi n d i c a t e s ,t h e r e a r e l a r g e d i f f e r e n c e si n t h e
t h r e e p o s s i b l e r o u t e st h r o u g ht h e R N Df u n c t i o n , r e s u l t i n gi n
l a r g e d i f f e r e n c e si n e x e c u t i o nt i m e .T h e s ee x e c u t i o nt i m e s
w e r e m e a s u r e df o r t h eC 1 2 8b y e x e c u t i n ga s h o r tp r o g r a m
w i t ha l o o pt h a te x e c u t e d2 0 , 0 0 0t i m e s .T h et i m e t a k e nf o rt h e
s t a t e m e n tx = r n d ( y )w a s c o m p a r e dt o t h et i m ef o r t h es t a t e
m e n tx = y . T h i se l i m i n a t e dt h eo v e r h e a dt i m ed e v o t e dt o f i n d
i n ga n ds t o r i n gv a r i a b l e s .N a t u r a l l y ,y w a sa l l o w e dt o b e n e g a
t i v e , z e r o ,a n d p o s i t i v e .S e v e r a ls i g n i f i c a n tr e s u l t sw e r e
o b t a i n e d .
F i r s t ,R N D ( O )h a dt h e s h o r t e s te x e c u t i o nt i m e .R N D ( - ) t o o k
4 . 4 3t i m e sa s l o n gt o e x e c u t e ,a n d R N D ( + )t o o k4 . 6 9t i m e sa s
l o n g ,c o m p a r e dt o R N D ( O ) . S e c o n d l y ,t h e t i m et o p a r s ea n d
e v a l u a t ea n u m e r i c a lc o n s t a n ta r g u m e n tw a s s i g n i f i c a n t l y
l o n g e rt h a nt h e t i m en e e d e dt o f i n da n dt r a n s f e ra v a r i a b l e
a r g u m e n t .F o re x a m p l e ,t h e l o o p t o o k a b o u t1 0 %l o n g e rt o
c o m p l e t eu s i n gx = r n d ( - l ) ,c o m p a r e dt o x = r n d ( y ) ,w h e r e
y h a de a r l i e rb e e nd e f i n e da s - 1 . T h ea b s o l u t es p e e dc h a m p
w a sr n d ( . ) ; t h eB a s i cI n t e r p r e t e rr e c o g n i z e s as o l i t a r yd e c i
m a lp o i n ta s a z e r of a s t e rt h a ni t r e c o g n i z e st h e d i g i tz e r o ,
a n df a s t e rt h a ni t c a nl o o ku p a v a r i a b l ee q u a lt o z e r o ,e v e ni f
t h a tv a r i a b l ei s a t t h eb e g i n n i n go f t h ev a r i a b l et a b l e .
G o o da d v i c e
1 ) A v o i du s i n gR N D ( 0 )u n l e s sa b s o l u t e l y n e c e s s a r y .S t a r ta n d
r e - s t a r tT i m e rA i n C I A# 1 ,i f y o ui n s i s to n u s i n gR N D ( 0 )o n
t h eC 1 2 8 . F o rm a x i m u ms p e e d ,u s e R N D ( . )
2 ) U s eR N D ( - )t o e s t a b l i s ha n e ws e q u e n c eo f r a n d o mn u mb e r s .U s ea s t h ea r g u m e n ta n e g a t i v en u m b e rt h a td o e sn o t
h a v ea n e x a c tr e p r e s e n t a t i o ni n f l o a t i n gp o i n tb i n a r y n o t a
t i o n .A v o i d n u m b e r sl i k e- 7 8 ,- 5 4 8 ,a n d- 1 2 . 8 7 5
3 ) U s er n d ( + )f o rm o s tp u r p o s e s .U s ea v a r i a b l ea r g u m e n t ,
r a t h e rt h a na c o n s t a n ta r g u m e n t ,f o r a u s e f u l i n c r e a s ei n
s p e e d .S w i t c ht o a d i f f e r e n ts e q u e n c eb y u s i n gR N D ( - )o r
R N D ( 0 )b e f o r et h es e q u e n c eb e g i n st o r e p e a t .
f 8 4 5 5
f 8 4 5 7
f 8 4 5 9
£ 8 4 5 c
£ 8 4 5 e
£ 8 4 6 0
£ 8 4 6 3
£ 8 4 6 5
£ 8 4 6 7
£ 8 4 6 a£ 8 4 6 c
£ 8 4 6 e
f 8 4 7 0
f 8 4 7 2
f 8 4 7 4
f 8 4 7 6
f 8 4 7 8
I d a
l d y
j s r
I d a
l d y
j s r
I d a
l d y
j s r
l d xI d a
s t a
s t x
l d x
I d a
s t a
s t x
# $ l b
# $ 1 2
$ 8 b d 4
# S 9 0
# $ 8 4
$ 8 a O 8
# $ 9 5
# $ 8 4
$ 8 a l 2
$ 6 7$ 6 4
$ 6 7
$ 6 4
$ 6 5
$ 6 6
$ 6 5
$ 6 6
P O S I T I V EA R G U M E N TR O U T I N E
s e t p o i n t e r s t o R N D s e e d
i n R A Ma t $ 1 2 1 B
r o u t i n et o u n p a c kR N D s e e d
t o F P A# 1
s e t p o i n t e r s t om u l t i p l i c a n d
a t $ 8 4 9 0i n R O M
r o u t i n e t o u n p a c k c o n s t a n t t o
F P A# 2 a n d m u l t i p l y b y
F P A# 1 ,
l e a v i n g r e s u l t i nF P A# 1
s e t p o i n t e r st o a d d e n d
a t $ 8 4 9 5 i nR O M
- r o u t i n e t ou n p a c kc o n s t a n t t o
• F P A# 2 a n d a d d t o F P A# 1 ,
- l e a v i n g r e s u l ti n F P A# 1
• N E G A T I V EA R G U M E N TR O U T I N E
• s w a p B y t e s # 1a n d# 4• o f F P A# 1
; s w a p B y t e s# 2 a n d# 3
; o f F P A# 1
£ 8 4 7 a
£ 8 4 7 c
£ 8 4 7 e
£ 8 4 8 0
f 8 4 8 2
f 8 4 8 4
£ 8 4 8 6
£ 8 4 8 9
£ 8 4 8 b
£ 8 4 8 d
I d a # $ 0 0
s t a $ 6 8
I d a$ 6 3
s t a $ 7 1
I d a# $ 8 0
s t a $ 6 3
j s r $ 8 8 b
l d x # $ l b
l d y# $ 1 2
j m p
C O M M O N E X I T R O U T I N E
s e t s i g n b y t e o fF P A# 1
t o z e r o f o rp o s i t i v e
c o p y e x p o n e n t o fF P A# 1
t o r o u n d i n g b y t e
s e t e x p o n e n t b y t e o fF P A# 1
t o $ 8 0
n o r m a l i z e F P A# 1
s e t p o i n t e r st o R N Ds e e d
A T$ 1 2 1 B i nR A M
J M Pt o r o u t i n e t o p a c k F P A# 1
i n t o R N Ds e e d ;u s e t h a t r o u t i n e ' s
R T S t o e x i t
L i s t i n g1 : C o m m e n t e dd i s a s s e m b l yo ft h eC 1 2 8r n d ( ) r o u t i n eL i s t i n g2 : C o m m e n t e dd i s a s s e m b l yo ft h eC 6 4r n d ( ) r o u t i
£ 8 4 3 4
f 8 4 3 7
£ 8 4 3 9
£ 8 4 3 b
£ 8 4 3 e
£ 8 4 4 1
£ 8 4 4 3
£ 8 4 4 6
f 8 4 4 8
f 8 4 4 b
£ 8 4 4 d
£ 8 4 5 0
£ 8 4 5 2
j s r
b m i
b n e
j s r
I d a
s t a
I d a
s t a
I d a
s t a
I d a
s t a
j m p
$ 8 c 5 7
$ 8 4 6 a
$ 8 4 5 5
$ a 8 4 5
$ d c O 6
$ 6 4
$ d c O 7
$ 6 6
$ d c O 4,
$ 6 5
$ d c O 5;
$ 6 7 ;
$ 8 4 7 a ;
; d e t e r m i n e s i g n o f a r g u m e n t
; b r a n c hi f n e g a t i v e
; b r a n c hi f p o s i t i v e
' Z E R OA R G U M E N T R O U T I N E
s e t b a n k1 5
f i l l B y t e s# 1 a n d# 3 ,
F P A# 1 , f r o m T i m e rB ,
C I A# 1
f i l l B y t e s# 2 a n d# 4 ,
F P A# 1 , f r o m T i m e rA ,
C I A# 1
N O T E :T I M E RS T O P P E D !
j u m pt o C O M M O NE X I T
e O 9 7
e O 9 a
e O 9 c
e O 9 e
e O a l
e 0 a 3
e 0 a 5
e 0 a 7
e 0 a 9
e O a b
e O a c
e O a e
j s r
b m i
b n e
j s r
s t x
s t y
l d y
I d a
s t a
i n y
I d a
s t a
$ b c 2 b
$ e O d 3
$ e O b e
$ f f £ 3
$ 2 2
$ 2 3
# $ 0 4
( $ 2 2 ) , y
$ 6 2
( $ 2 2 ) , y
$ 6 4
; d e t e r m i n es i g n o fa r g u m e n t
; b r a n c hi f n e g a t i v e
; b r a n c h i f p o s i t i v e
; Z E R OA R G U M E N T R O U T I N E
; s e t u p i n d i r e c ta d d r e s s
' t o $ D C 0 0 i n$ 2 2a n d
$ 2 3
f i l lF P Af l ,
B y t e s1 a n d3 ,
f r o m T i m e rA ,
C I A# 1
T r a n s a c t o r 5 4 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 57/84
e O b O l d y # $ 0 8
e 0 b 2 I d a ( $ 2 2 ) , y
e 0 b 4 s t a $ 6 3
e 0 b 6 i n y
e 0 b 7 I d a ( $ 2 2 ) , y
e 0 b 9 s t a$ 6 5
e O b b j m p$ e 0 e 3
f i l lF P Af t
B y t e s2 a n d4 ,
f r o mT i m s o fD a yC l o c k
R e g i s t e r s ,C I Af l
j u m p t o C O M M O N E X I T
( r e m a i n d e r o fr o u t i n ei d e n t i c a lt o C - 1 2 8v e r s i o n ,e x c e p tf o r
d i f f e r e n ta d d r e s s e so fr o u t i n e s ,f p a # 1 ,a n dc o n s t a n t s )
L i s t i n g3 : r a n d o m . s r c
C B 1 0 0 2s y s 4 0 0 0
K I 1 0 0 4 . o r g 4 8 6 4
C J 1 0 0 6. m e m
P 1 0 0 8; t a b l e o fv a r i a b l e s
H J 1 0 1 0c o u n t = 1 0 2 4; s t a r t o fc o u n t e r
O M 1 0 1 2r n d x= $ 1 2 1 b/ s t a r to f r n ds e e d
B 1 0 1 4m m u= $ f f 0 0 ; c h a n g e b a n k
N 1 0 1 6 r n d p o s = $ 8 4 5 5; p o s i t i v e r n d e n t r y
1 0 1 8;
1 0 2 0s t a r t
1 0 2 2;
1 0 2 4:
1 0 2 6:
1 0 2 8:
1 0 3 0:
1 0 3 2;
1 0 3 4:
1 0 3 6:
s e i ; n o i n t e r r u p t s
I d am m u
s t a t e m p
I d a# 0 0
s t am m u
; s t o r e b a n k a n d
; g o b a n k1 5
O 1 0 3 8 l o o p l = *
1 0 4 0:
1 0 4 2:
1 0 4 4:
1 0 4 6;
1 0 4 8:
O 1 0 5 0I o o p 2
G 1 0 5 2:
1 0 5 4:
1 0 5 6:
1 0 5 8:
l d x§ 4
I d a # 0
s t a c o u n t , x
d e x
b p ll o o p l
z e r oc o u n t e r
a l l f i v e b y t e s
l d xf 4
I d ar n d x , x
s t a s e e d l , x
s t a s e e d 2 , x
d e x
b p lI o o p 2
s t o r e c u r r e n t r n ds e e d
i n s e e d la n ds e e d 2
a l l f i v eb y t e s
L 1 0 6 0;
1 0 6 2m a i n= *
1 0 6 4;
1 0 6 6:
1 0 6 8I o o p 3
1 0 7 0:
1 0 7 2:
1 0 7 4:
1 0 7 6:
1 0 7 8:
1 0 8 0;
1 0 8 4:
1 0 8 6;
1 0 8 8:
M 1 0 9 0 I o o p 4
C 1 0 9 2:
P 1 0 9 4:
1 0 9 6:
A 1 0 9 8:
O 1 1 0 0;
O
L
G
G
N
P
N
O
l d x 1 4
I d ar n d x , x
s t a s e e d 2 , x
I d a s e e d l , x
s t a r n d x , x
d e x
b p l I o o p 3
m o v e r n d s e e d t o
s e e d 2a n ds e e d l
t o r n d s e e d
a l l f i v e b y t e s
j s r r n d p o s ; d o ar n d ( + )
l d x1 4
i n cc o u n t , x
b n ed o n e
d e x
b p l I o o p 4
j m p e x i t
i n c r e m e n t c o u n t e r
c h e c k f o r c a r r y
c o u n t e r o v e r f l o w
M C
H G
I C
A A
E B
P F
G A
J J
I P
H I
N A
O P
I F
P J
O D
L J
K B
I F
M A
I N
B L
P N
0 1
I B
F H
G A
L H
K A
L O
O H
1 1 0 2d o n e
1 1 0 4:
1 1 0 6 l o o p
1 1 0 8:
1 1 1 0:
1 1 1 2:
1 1 1 4:
1 1 1 6:
1 1 1 8•
1 1 2 0:
1 1 2 2:
1 1 2 4•
1 1 2 6:
1 1 2 8 I o o p 6
1 1 3 0:
1 1 3 2:
1 1 3 4:
1 1 3 6:
1 1 3 8•
1 1 4 2e x i t
1 1 4 4:
1 1 4 6:
1 1 4 8:
1 1 5 0.
1 1 5 2 s e e d l
1 1 5 4 . b y t e
1 1 5 6 s e e d 2
1 1 5 8 . b y t e
= *
l d x# 4
5 I d a r n d x , x
s t a s e e d l ,x
I d a s e e d 2 , x
s t a r n d x , x
d e x
b p l I o o p 5
j s r r n d p o s
j s r r n d p o s
l d xf 4
I d ar n d x , x
c m ps e e d l , x
b n em a i n
d e x
b p l I o o p 6
I d a t e m p
s t a m m u ,
c l i
r t s
= *
0 , 0 , 0 , 0 , 0
= *
0 , 0 , 0 , 0 , 0
1 1 6 0t e m p= *
1 1 6 2. b y t e0
=
; m o v e r n d s e e d
; t o s e e d la n ds e e d 2
; t o r n d s e e d
; a l l f i v e b y t e s
; d o r n d ( + )
; t w i c e
; c o m p a r er n ds e e d
; a n ds e e d l
1 n o te q u a l , s os t a r t o v e r
c o m p a r ef i v eb y t e s
a l l f i v e m a t c h , s o
r e s t o r eo l db a n k ,
a l l o wi n t e r r u p t s ,a n d
b a c k t o
V I D E O B Y T Et h ef i r s tF U L LC O L O R !
v i d e od i g i t i z e rf o rt h eC - 6 4 ,C - 1 2 8
I n t r o d u c i n g t h e w o r l d ' sf i r s tF U L LC O L O R !v i d e od i g i t i z e rf o rt h eC o m m o d o r eC - 6 4 ,C - 1 2 8& 1 2 8 - Dc o m p u t e r .V I D E OB Y T Ec a ng i v ey o ud i g i t i z e dv i d e of r o my o u rV . C . R . ,B / Wo r
C O L O RC A M E R Ao r L I V EV I D E O( t h a n k st o a f a s t !2 . 2s e c .s c a nt i m e ) .
• F U L LC O L O R I Z I N G !I s p o s s i b l e ,d u et o a u n i q u eS E L E C Ta n dI N S E R Tc o l o r p r o c e s s ,w h e r ey o uc a ns e l e c to n eo f 1 5C O L O R Sa n di n s e r t t h a tc o l o ri n t oo n eo f 4 G R A YS C A L E S .T h i sp r o c e s sw i l lg i v ey o uo v e r3 2 , 0 0 0d i f f e r e n tc o l o rc o m b i n a t i o n st o u s ei ny o u rv i d e op i c t u r e s .
• S A V E Sa s K O A L A S !V i d e oB y t ea l l o w sy o ut o s a v ea l ly o u rp i c t u r e st o d i s ka s F U L LC O L O RK O A L A ' S .A f t e rw h i c h( u s i n gK o a l ao r s u i t a b l ep r o g r a m )y o u c a n g oi n a n dr e d r a wo r r e c o l o ry o u rV i d e oB y t ep i c ' s .
• L O A Da n d R E - D I S P L A Y !V i d e o B y t ea l l o w sy o ut o l o a da n dr e - d i s p l a ya l lV i d e o B y t ep i c t u r e sf r o mi n s i d eV i d e oB y t e ' sm e n u .
• M E N UD R I V E N !V i d e o B y t ec o m e sw i t ha n e a s yt o u s em e n ud r i v e nU T I L I T YD I S K a n dd i g i t i z e rp r o g r a m *
• C O M P A C T !V i d e oB y t e ' sh a r d w a r ei s c o m p a c t !I n f a c tn o b i g g e r t h a ny o u ra v e r a g ec a r t r i d g e !V i d e oB y t ec o m e sw i t hi t s o w nc a b l e .
• I N T E G R A T E D !V i d e oB y t ei s d e s i g n e dt o b e u s e dw i t ho r w i t h o u tE X P L O D E !V 4 . 1 c o l o r
c a r t r i d g e .E x p l o d e !V 4 . 1i s t h ep e r f e c tc o m p a n i o n .
• F R E E !V i d e oB y t e u s e r sa r e a u t o m a t i c a l l y s e n tF R E ES O F T W A R Eu p d a t e sa l o n gw i t h
n e wd o c u m e n t a t i o n ,w h e ni t b e c o m e sa v a i l a b l e .
• P R I N T !V i d e oB y t ew i l lp r i n t o u t p i c t u r e s t om o s tp r i n t e r s .H o w e v e rw h e nu s e dw i t h
E x p l o d e !V 4 . 1y o u rp r i n t o u t ' sc a n b ed o n ei n F U L LC O L O Ro n t h eR A I N B O WN X - 1 0 0 0 ,R A I N B O WN X - 1 0 0 0C , J X - 8 0a n dt h eO K I D A T A1 0 / 2 0 .
W h yD R A Wa c a r ,a i r p l a n e ,p e r s o no r f o r t h a tm a t t e r .. .
a n y t h i n gw h e ny o uc a nB Y T Ei t . . . l l i n c nD V T CW OA CV i d e oB y t ei t i n s t e a d . V I D E OB Y T E$ 7 9 . 9 5
S U P E RE X P L O D E !V 4 . 1w / C O L O RD U M PI f y o u rl o o k i n gf o ra C A R T R I D G Ew h i c hc a nC A P T U R EA N YS C R E E N , P R I N T SA L LH I - R E S a n dT E X TS C R E E N Si n F U L LC O L O Rt o t h eR A I N B O WN X - 1 0 0 0 ,R A I N B O WN X - 1 0 0 0C , E P S O NJ X - 8 0a n dt h eO K I D A T A1 0 o r 2 0 . P r i n t si n 1 6 g r a ys c a l e t oa l l
o t h e rp r i n t e r s .C o m e sw i t h t h e w o r l d ' sF A S T E S TS A V Ea n dL O A Dr o u t i n e si n a c a r
t r i d g eo r ad u a lS E Q . ,P R G .f i l er e a d e r .P l u s ab u i l t - i n8 S E C O N Df o r m a ta n dM U C H ,M U C HM O R E !T h a nE x p l o d e !V 4 . 1i s f o ry o u .
P R I C E ?$ 4 4 . 9 5+ S / Ho r $ 4 9 . 9 5w / o p t i o n a l d i s a b l es w i t c h .
• i n 6 4 m o d eo n l y V I D E O B Y T Eo n l y $ 7 9 . 9 5
S U P E RE X P L O D E !V 4 . 1$ 4 4 . 9 5
T OO R D E RC A L L1 - 3 1 2 - 8 5 1 - 6 6 6 7 P L U S$ 1 . 5 0S / HC O . D . ' SA D D$ 4 . 0 0
P e r s o n a lC h e c k s 1 0 D a y st o C l e a r I L R E S I D E N T SA D D6 %S A L E ST A X
T H ES O F TG R O U P ,P . O .B O X1 1 1 ,M O N T G O M E R Y ,I L 6 0 5 3 8
□
r a n s a c t o r 5 5 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 58/84
T u r n i n g O f fW r i t e / V e r i f y
M o d i f y i n g1 5 7 1v e c t o r s
b y D e n n i sJ . J a r v i s
C o p y r i g h t© 1 9 8 9D J .J a r - v i s
B e f o r eI g e ti n t ot h ea c t u a lo p e r a t i n gs y s t e mI w o u l dl i k et o
g i v es o m eb a c k g r o u n do n t h e1 5 7 1 ' s o p e r a t i n g s y s t e m .
W h e nC o m m o d o r er e l e a s e dt h e2 0 3 1d i s kd r i v e ,w h i c hw a sa
s i n g l e d r i v eu n i t ,i t i n c l u d e dD i s kO p e r a t i n gS y s t e m2 . 6 .D O S
2 . 6t h u sb e c a m et h es t a n d a r df o r s i n g l ed i s k d r i v eu n i t s .T h i sd r i v ei s w h a tt h e V I C - 1 5 4 0w a sb a s e do n . T h eI E E Eb u sw a s
r e d u c e dt o a s e r i a lb u s ,a n dt h e d i s kf o r m a t i n gm e t h o d w a s
c h a n g e d( G A P 1w a si n c r e a s e db y 1 o n t h e1 5 4 0 ) .
T h i si s w h yt h e4 0 4 0a n d2 0 3 1d i s k d r i v e s a r er e a dc o m p a t i b l e
w i t ht h e 1 5 x xs e r i e so f d i s kd r i v e sb u ta r en o tw r i t ec o m p a t i
b l e .F o rm o r ei n f o r m a t i o no n t h i sr e a d / w r i t ep r o b l e mc o n s u l t
t h eb o o kI n s i d eC o m m o d o r eD O Sb y R i c h a r dI m m e r sa n dG e r
a l dG . N e u f e l do n p a g e2 0 8 .
W h e nC o m m o d o r er e l e a s e dt h eP l u s / 4c o m p u t e rt h e yi n c l u d e d
a s e r i a lb u sf o r t h e e x i s t i n gs e r i a lb u sd e v i c e s ,b u t t h e ya l s o
i n c l u d e da n e wt y p e o fb u sc a l l e d t h eT E Db u s .T h i sb u sw a sa
c r o s sb e t w e e nt h es e r i a lb u sa n da n I E E Eb u sw i t h8 d a t al i n e s
a n da f e wh a n d s h a k el i n e s .W h e nC o m m o d o r er e l e a s e dt h e
1 5 5 1d i s k d r i v e( a l s ok n o w na s t h e4 8 8 d i s kd r i v e )t h e y
( D a v i dS i r a c u s a )m a d es e v e r a lc h a n g e st o t h eo p e r a t i n gs y s
t e m ,w h i c hi n c l u d e d af a s t e rG C Rt o b i n a r y c o n v e r s i o n , af a s t
f o r m a tr o u t i n e ,a n dc o r r e c t i o n s f o rs o m eo l db u g si n t h eb l o c k -
r e a da n db l o c k - w r i t er o u t i n e s .
O d d l ye n o u g h ,t h i sD O Sw a sr e l e a s e da s D O S2 . 6 ,w h i c hi s t h e
s a m eD O Sv e r s i o nt h a ti s s t i l li n t h e 1 5 4 xd i s kd r i v e s ,e v e n
t h o u g ht h e i rm e m o r ym a p sa r en o w h e r en e a rt h es a m e .C o m
m o d o r e ' sl o g i ci n n u m b e r i n gt h e i rD O Sv e r s i o n si s s t i l ln o t
v e r yc l e a rt o m e !
C o m m o d o r eb a s e dt h en e w1 5 7 1d i s k d r i v eo n t h e 1 5 4 x ' s
m e m o r ym a p .W h a tD a v i dd i dw a st o r e m o v ea l o to f t h ec o d e
h e i n s t a l l e di n t h e1 5 5 1d i s kd r i v ea n ds p l i c ei t i n t ot h e1 5 7 1
( s u c ha s t h en e w G C Rr o u t i n e sa n dt h ef a s t e rf o r m a t i n gc o d e ,
e t c . )
I o n l yw i s hC o m m o d o r eh a dr e l e a s e dt h e 1 5 7 1w i t ha s e r i a l
b u s a n da n I E E Eo r 1 5 5 1t y p eo f b u sw h i c h w o u l dh a v ei n c r e a s e dt h e o v e r a l ls p e e do f t h e d r i v e- i f t h e D O Sw a s
r e c o d e dc o r r e c t l y .T ow r a p u pa l lo f t h ea b o v e ,t h eo n l yd r i v e s
t h a ta r eb o t hr e a da n dw r i t ec o m p a t i b l ea r e t h e4 0 4 0a n d 2
d i s kd r i v e s ,a n dt h e 1 5 x xs e r i e so f d r i v e sa r er e a da n dw r i
c o m p a t i b l e .O fc o u r s e ,y o uc a n ' tp u t a1 5 7 1d i s ki n a 1 5 x x
r e a ds i d e1 s i n c ey o ud o n ' th a v et h er e a d / w r i t eh e a dt o d o i
- w i t h .Y o uc a nr e a dt h es a m ed i s k sw i t ht h e 1 5 x x ,2 0 3 0 ,a n
4 0 4 0 ,b u td o n o tw r i t eb a c kt o t h e mo r y o um a yr e g r e ti t .
O n eo f t h ec h a n g e sm a d ei n t h e 1 5 7 1D O Sw a st h em e t h o b
w h i c hi t h a n d l e st h e I R Q s( I n t e r r u p tR e Q u e s t s ) .I n s t e a o
a l w a y sj u m p i n gt o a c o n s t a n tm e m o r yl o c a t i o n( a d d r e s si
j u m p st h r o u g ha v e c t o rt h es a m ew a yt h a ty o u rc o m p u t e r 'K e
n a lj u m p st h r o u g ht h eI C H R O U Tv e c t o rt o o u t p u t ac h a r a c t t
t h es c r e e n / p r i n t e r ,e t c .S i n c et h i si s t h ef i r s td i s k d r i v et o h a v
t h i sa b i l i t y ,s u c hp r o g r a m sa s t h i sw e r en o tp o s s i b l eb e f o r e w
o u ta m a j o re f f o r to n t h e p a r to f t h ep r o g r a m m e r .W i t ht h i sn e
v e c t o r i n gs y s t e mi n y o u rd i s kd r i v ew e h a v em a n yo p t i o nt
p u r s u e- s u c ha s t h eo n ec o v e r e di n t h i sa r t i c l e .
T h ed r i v e ' s v e r i f i c a t i o nr o u t i n e
W h e n e v e ro n e o f t h e c u r r e n t d i s k d r i v e s( f r o mt h e 2 0
t h r o u g ht o t h e c u r r e n t1 5 7 1 )w r i t e sa s e c t o rt o d i s k ,i t w i l lt h e
p r o c e e dt o r e a dt h a ts e c t o rb a c ki n o f f t h ed i s kt o v e r i f i
a g a i n s tw h a ti t h a si n R A Mt o e n s u r et h a tt h eb y t e sw e r ew r i
t e nc o r r e c t l y .
G e n e r a l l yy o uw i l ln e v e rs e ea n e r r o ro c c u ru n l e s sy o uh a v a
b a dd i s k e t t eo r a h a r d w a r ef a i l u r ei n t h ed i s k d r i v e os e r i
b u s .N o r m a l l ya b a dd i s ki s d e t e c t e dd u r i n gt h ef o r m a tp r c e s s ,b u tt h e yd o f a i lf r o mt i m et o t i m ej u s tb y s i t t i n g i ny o
d i s k b o x .
I n e i t h e r c a s e ,y o uw o n ' ts e et h ep r o b l e mv e r yo f t e n .W h a tt h
p r o g r a md o e sw h e ni n s t a l l e di n t h e 1 5 7 1i s t o ' w e d g e 'i t s e
i n t ot h eI R Qv e c t o rt o a l l o wm yp r o g r a mt o c h e c kt o s e ei f t h
D O Si s a b o u tt o d o a V E R I F Yo p e r a t i o n ;i f i t i s ,I r e p l a c ei t w i
a S E E Ko p e r a t i o n .I f y o ud o n ' tu n d e r s t a n da n yo f t h i s ,d o n
w o r r ya b o u ti t a s i t i s n o t r e q u i r e dt o k n o w h o wt h ep r o g
w o r k st o u s ei t .
T h i sp r o g r a mc o u l db e c o n s i d e r e dr i s k yt o s o m ed e g r e ea n di
p r o b a b l yi s r i s k y ,b u tI ' v eb e e nu s i n gt h i sp r o g r a md a i l yf o
t h r e em o n t h sw i t hn o p r o b l e m se n c o u n t e r e dt o d a t e .D o I
T r a n s a c t o r 5 6 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 59/84
' v e r i f y . b a s "- T u r n so f fw r i t ev e r i f yo n t h e1 5 7 1
T h i sp r o g r a mr u n so n a n y
C o m m o d o r ec o m p u t e rf r o mt h e
V I C - 2 0 t o t h e C 1 2 8 . . .
g u a r a n t e et h i sp r o g r a m ?N o to n y o u rd i s k1 d o n ' t .W h y ,y o u
m i g h ta s k ?W e l l ,t o p u ti t s i m p l y ,t h e r e a r et o om a n yv a r i a b l e s
i n v o l v e d ;f r o my o u rd i s kd r i v eh a v i n gt h ef l u ,t o d i s k st h a ta r e
u s e da s f l o o rm a t s .I t w o u l do n l yt a k eo n es m u d g et o w i p ea
d i s k .O na n ya c c o u n t ,s i m p l y r u nt h i sp r o g r a ma n dg i v ei t a t r y
b y d o i n gs o m et e s t i n go n a .j u n kd i s k .( Y o uk n o wt h eo n e ,i t ' s
t h eo n ey o ud o n ' t c a r ei f y o u rd o go r c a te a t s ,o r i f J u n i o r u s e s
i t a s a f r i s b e e !W h a tI ' mt r y i n gt o s a yi s t h a tI ' v eu s e dt h i sp r o
g r a mf o r q u i t ea w h i l e w i t hn o p r o b l e m so n s e v e r a l d i f f e r e n t
v e r s i o n so f t h e1 5 7 1D i s kO p e r a t i n g S y s t e m ,b u tt h i sc h o i c ei s
u p t o y o ut o m a k e ,n o t m e . )
T h i ss h o r tp r o g r a ma l l o w sy o ut o t u r n o f ft h e w r i t ev e r i f yo p e r a
t i o ni n y o u r 1 5 7 1d i s kd r i v ee v e nw h i l ei t ' si n t h e 1 5 4 1m o d e .
C u r r e n t l yt h e r ea r e s e v e r a l s i m i l a rv e r s i o n so f t h i sp r o g r a mr u n
n i n ga r o u n do n p u b l i cd o m a i nb u l l e t i nb o a r d sb u ts e v e r a lo f
t h e mc o n t a i nb u g sb e c a u s et h e y , l i k et h i so n e ,s i ts o m ew h e r ei n
$ 0 1 0 0 ,w h i c hi s t h e d i s kd r i v e ' ss t a c k .M o s to f t h eo n e sI h a v e
s e e nt o d a t eu s eu p t o om u c hr o o mo n t h e s t a c k a n d ,u p o nt h e
f i r s tD O Se r r o r ,- c r a s h !- t h e d r i v ed i e s .T h ef o l l o w i n gp r o g r a m
h a sb e e nt e s t e d ,t e s t e d a g a i n ,t h e nt e s t e d m o r e . . .
T o u s et h i sp r o g r a ma l l y o un e e di s a 1 5 7 1d i s k d r i v ea n dt h i s
p r o g r a m .T h i sp r o g r a mr u n so n a n yC o m m o d o r ec o m p u t e r
f r o mt h eV I C - 2 0t o t h eC 1 2 8 .T o s t a r tt h ep r o g r a m ,j u s tl o a di t
u p a n dt y p er u n .T h ep r o g r a mw i l lm a k eo n l yo n er e q u e s t ,a n d
t h a ti s , s i m p l y :" E n t e rt h ed e v i c en u m b e ro f y o u r1 5 7 1d i s k
d r i v e : " .T h i s v a l u ec a n b ei n t h er a n g e o f5 t h r o u g h3 0 ,a n d
w o u l db e t h es a m e n u m b e rt h a ty o uw o u l de n t e rf o ra b a s i c
c o m m a n da s d l o a d "f i l e n a m e ", u ( j p c )o r l o a d" f i l e n a m e ", x x
w h e r ex x i s t h ed e v i c en u m b e ro f t h e 1 5 7 1d i s kd r i v e .I f t h e
p r o g r a mf i n d st h a ty o ui n d e e dh a v ea 1 5 7 1d i s kd r i v ea t t h a t
d e v i c en u m b e r ,i t w i l lp r o c e e d w i t hi t s a s s i g n e dt a s k .I f t h e r e
i s n o ta 1 5 7 1o n l i n e ,i t w i l ld i s p l a ya n e r r o rm e s s a g e .W h e n
t h e p r o g r a mh a s t u r n e do f ft h e w r i t ev e r i f yo p e r a t i o ni t w i l li n f o r my o u b yd i s p l a y i n g" W r i t ev e r i f yo p e r a t i o ni s n o w
t u r n e do f f ! "
D u r i n gt h ec o u r s eo f t h i sp r o g r a mI m a k es e v e r a lc h e c k st o
e n s u r et h i si s r e a l l ya 1 5 7 1d i s kd r i v e :F i r s tI c h e c kt h eI R Q
v e c t o ra t $ F F F Et o e n s u r ei t c o n t a i n sa n $ F E 6 7 ;t h i sw i l l
e n s u r et h a ti t i s a 1 5 4 xo r 1 5 7 xt y p e o fd r i v e .N e x tI c h e c k
$ 8 0 0 2f o r t h et e x tS / t o e n s u r ei t i s a 1 5 7 1d i s kd r i v e .F i n a l l yI
c h e c k$ 0 2 A 9w h i c hi s t h eI R Qv e c t o rf o r t h e1 5 7 1d i s kd r i v e .
W h e nI c h e c kt h i sv e c t o rI e n s u r et h a tt h eM S Bo f t h ea d d r e s s
c o n t a i n sa v a l u eg r e a t e rt h a n$ 8 0t o e n s u r et h a tt h eI R Qi s
g o i n gs o m e w h e r ei n t oR O M ,a n dn o tt o a n o t h e rp r o g r a ms u c h
a s m i n e .I f a l lo f t h ea f o r e m e n t i o n e da r et r u e ,I d o w n l o a dt h e
M Li n t ot h ed r i v ea n de x e c u t ei t .
F P
D A
C A
H N
J O
K E
J L
C A6 E
F A
A H
G H
K J
J K
P B
K M
6 K
E F
O F
D F
L B
O LN C
B E
E F
D O
M G
L E
A J
N I
A O
D P
J M
B B
C OC G
L O
G L
1 0 r e m p u b l i c a t i o nr i g h t sr e s e r v e d
2 0 p r i n t c h r $ ( 1 4 2 ) " { h o n e } { h o m e } { c l r } { d o w n } { d o w n }
{ w h i t e } t u r n o f fw r i t e v e r i f y o p e r a t i o nf o r "
3 0 p r i n t " c o m m o d o r e ' s{ c y a n } 1 5 7 1 { w h i t e }d i s k d r i v e
4 0 p r i n t " { d o w n }{ c y a n } ( c ) { w h i t e }1 9 8 8 ,1 9 8 9
5 0 p r i n t " { d o w n } b y
6 0 p r i n t c h r $ ( 1 5 ) " { d o w n } d e n n i sj . j a r v i s " c h r $ ( 1 4 3 )
7 0 p r i n t " { d o w n } k i s s i m m e e f l o r i d a "
8 0 p r i n t c h r $ ( 7 ) c h r $ ( 1 5 ) " { d o w n } { d o w n }{ I t .b l u e } p r e s s a n y k e yt o{ s p a c e } c o n t i n u e " c h r $ ( 1 4 2 )
9 0 g e t a $ : i f a $ O " " t h e n 9 0 : r e mp u r g e b u f f e ro f a n yp r e v i o u s k e ys t r i k e s
1 0 0g e t a $ : i f a $ =I M I t h e n l 0 0 : r e mw a i t f o ra k e yt o b e p r e s s e d n o w
1 1 0p r i n t " { d r } "
1 2 0i n p u t " { w h i t e j w h a ti s t h e 1 5 7 1 ' s d e v i c e n u m b e r8 { l e f t } { l e f t }
{ l e f t } { l e f t } " ; a $ : d v = v a l ( a $ )
1 3 0 i f d v < 5 o r d v > 3 0 t h e n l 2 0
1 4 0p r i n t " { c l r } "
1 5 0o p e n l 5 , d v , 1 5
1 6 0d o s e l 5 : i f s t t h e n p r i n t " { c l r } { d o w n } { d o w n } { d o w n }
{ r i g h t } { r i g h t }d e v i c e n u m b e r : " s t r $ ( d v ) ni s n o tt u r n e do n " : e n d
1 7 0o p e n l 5 , d v , 1 5
1 8 0I s b = 2 5 4 : m s b = 2 5 5 : g o s u b 3 5 0 : r e mr e a dt h er o mi r qv e c t o r( $ f f f c )
1 9 0i f l s b = 1 0 3 a n d m s b = 2 5 4 t h e n 2 2 0
2 0 0 p r i n t " { c l r } { d o w n } { d o w n } { d o w n } { d o w n } { d o w n } { r i g h t } { r i g h t } s o r r y t h i sp r o g r a mw i l l o n l y w o r ko n t h e1 5 7 1d i s kd r i v e "
2 1 0c l o s e l 5 : e n d
2 2 0I s b = 0 0 2 : m s b = 1 2 8 : g o s u b 3 5 0 : r e m c h e c k t e x ta t $ 8 0 0 2 ' s / w- d a v i d
g . s i r . . . e t c
2 3 0i f l s b < > 8 3 o r m s b < > 4 7 t h e n 2 0 0
2 4 0 l s b = 1 6 9: m s b = 0 0 2 : g o s u b 3 5 0 :r e mm a k es u r e i r qi s p o i n t i n gt o a r o u t i n e i nr o m
2 5 0i f m s b < 1 2 8 t h e n p r i n t " { c l r } { d o w n } { d o w n } { d o w n } {
s o r r y s o m e o n ei s u s i n g t h e i r q v e c t o r " : g o t o 2 1 0
2 6 0f o r i = 2 t o 5 0 : r e a d h $ : a $ = l e f t $ ( h $ , l ) : b $ = r i g h t $ ( h $
2 7 0g o s u b 3 0 0 : b = a * 1 6 : a $ = b $ : g o s u b 3 0 0 : c = a + b
2 8 0p r i n t # 1 5 , " m - w " c h r $ ( i ) c h r $ ( l ) c h r $ ( l ) c h r $ ( c ) : n e
2 9 0p r i n t # 1 5 r " m - e " c h r $ ( 2 3 ) c h r $ ( 1 ) : p r i n t " { c l r ( { d o w
{ r i g h t } { r i g h t } { r i g h t } { r i g h t } { r i g h t } w r i t e v e r
3 0 0i f a $ < " : " a n d a $ > I 7 " t h e n s = 4 8 : g o t o 3 3 0
3 1 0i f a $ > " @ " a n d a $ < " g " t h e n s = 5 5 : g o t o 3 3 03 2 0p r i n t " i n v a l i dh e x b y t e- " h $ " : s t o p
3 3 0a = a s c ( a $ ) - s
3 4 0 r e t u r n
3 5 0 p r i n t § 1 5 , " m - r " c h r $ ( l s b ) c h r $ ( m s b ) c h r $ ( 2 ) : g e t j
: m s b = a s c ( b $ + c h r $ ( 0 ) ) : r e t u r n
s a v ea c e .3 6 0d a t a
3 7 0d a t a
3 8 0d a t a
3 9 0d a t a
4 0 0d a t a
4 1 0d a t a
4 2 0d a t a
4 3 0d a t a
4 4 0d a t a
4 5 0d a t a4 6 0d a t a
4 7 0d a t a
4 8 :
8 a :
4 8 :
a 2 , 0 5 :
b 5 , 0 0 :
c 9 , a O :
d O , 0 4 :
0 9 , 1 0 :
9 5 , 0 0 :
c a :
1 0 , f 3 :
4 c , f e , f f :
: r e mp h a
: r e mt x a
: r e mp h a
: r e ml d x§ 5
: r e mI d a $ 0 0 , y
: r e me m p # $ a 0
: r e mb n e* + 1 5
: r e mo r a# $ 1 0
: r e m s t a$ 0 0 , y
: r e md e x: r e mb p lM l
: r e m j m p$ 0 0 0 0
s a v ex r e g .o n t ot h es t a c k
n u m b e r o fj o bq u e u e ' st o c h e c k
g e t c u r r e n tj o bo u t o f q u e u e
i s i ta v e r i f yc o m m a n d ?
n o t h e nb r a n c h
r e p l a c e t h e v e r i f y f u n c t i o n
w i t h as e e kc o m m a n d
m o v ed o w n t o n e x t q u e u ei f a n ym o r et o d o b r a n c h
s e e t e x tf o r t h i s o n e
4 8 0:
4 9 0 : r e mt h i si s w h e r e t h ep r o g r a mi s e x e c u t e dw h e ni t ' s i n t h e d i s k d r C r t A • A A A A A A A A A A A A A A A A A A A A A A A A A A A A a A A
s t o pb a c k g r o u n dj o b s
g e t t h e a d d r e s so f t h e
c u r r e n t a d d r e si n t h e i r q
v e c t o r a n d a d d3 t o i s t h e n
s a v ei t f o r u s t o j u m pt o ,
t h i sw a sd o n e t os a v e c o d e
( p l a c ea t j m p$ x x x x
p l a c et h e a d d r e s so f o u r
n e wi r q r o u t i n e i n t o t h e
5 1 0d a t a
5 2 0d a t a
5 3 0d a t a
5 4 0d a t a
5 5 0d a t a
5 6 0d a t a
5 7 0d a t a
5 8 0d a t a
5 9 0d a t a
6 0 0d a t a6 1 0d a t a
6 2 0d a t a
6 3 0d a t a
7 8 :
a d , a 9 , 0 2 :
1 8 :
6 9 , 0 3 :
8 d , 1 5 , 0 1 :
a d , a a , 0 2 :
8 d , 1 6 , 0 1 :
a 9 , 0 2 :
8 d , a 9 , 0 2 :
a 9 , 0 1 :8 d , a a , 0 2 :
5 8 :
6 0 :
: r e m s e i
: r e m I d a$ 0 2 a 9
: r e m c l c
: r e ma d c# 3
: r e ms t a$ 0 1 1 5
: r e m I d a$ 0 2 a a
: r e m s t a$ 0 1 1 6
: r e m I d a f 2
: r e m s t a$ 0 2 a 9
: r e mI d af l: r e m s t a$ 0 2 a a
: r e m c l i
: r e m r t s
t h e 1 5 7 1 ' s i r qv e c t o r
s o w e r e c a l l e d e a c hi r q .
r e s t a r tt h e b a c k g r o u n dj o b s
a n d w e r e d o n e □
T r a n s a c t o r5 7 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 60/84
M a k e2 S i d e d
C o n v e r t i n g1 5 4 1d i s k st o 1 5 7 1f o r m a t
b y D e n n i sJ . J a r v i s
C o p y r i g h t© 1 9 8 9D J .J a r v i s
T h i sp r o g r a mw a sw r i t t e nt o s o l v et w op r o b l e m sI w a sh a v i n g
w i t ht h e1 5 7 1d i s kd r i v e :
1 ) C o n v e r t i n ga s i n g l e - s i d e dd i s k e t t e t oa d o u b l e - s i d e do n e
2 ) D o i n ga C O L L E C To n a 1 5 7 1d i s kw h i l ei t w a si n 1 5 4 1m o d e ,c a u s i n gi t t o r e v e r tt o b e i n ga s i n g l e - s i d e dd i s k .
( N O T E :T h i sp r o b l e mh a sb e e nc o r r e c t e di n t h en e w e r1 5 7 1
d i s kd r i v e s . )
T h ef i r s tp r o b l e mc a n b ea p a i ni n t h ek e y b o a r d .W h a tw a s
r e q u i r e dw a st h a tI u s et h eD O Ss h e l lo r o t h e rs u c hp r o g r a m
a n d c o p yt h ef i l e so v e rt o a n e w l yf o r m a t e d 1 5 7 1d i s k e t t e .I
c o u l dn o t u s ea n yf u l ld i s k c o p i e r sb e c a u s et h e yw o u l dc o p y
t r a c k1 8 a n d 0f r o mt h e s i n g l e - s i d e dd i s kt o t h e d o u b l e -
s i d e dd i s k ,t u r n i n gi t b a c ki n t oa s i n g l e - s i d e d d i s k( a s f a ra s
t h e 1 5 7 1w a s c o n c e r n e d ) .W e l l ,t h a t g o t t o b e a t i m e -
c o n s u m i n go p e r a t i o n .S o I s e t o u t t o f i n da n e a s i e rw a y .
U s i n gm y 1 5 7 1I n t e r n a l sb o o kf r o mA b a c u sS o f t w a r e ,I
b e g a nt o s c a nt h r o u g ht h ef o r m a tr o u t i n e s .A s i t t u r n e do u t ,
w h e nD a v i dS i r a c u s aw r o t et h ef o r m a tr o u t i n e ,h e s e t i t u p
a s at w o - p a s so p e r a t i o n .F i r s t ,h e f o r m a t sa l l o f s i d e0 , t h e n
r e t u r n st o f o r m a ts i d e1 .
B e f o r eI g o i n t oa n yf u r t h e rd e t a i l so n h o wt o u s et h ef o r m a t
r o u t i n eI w o u l dl i k e t ot e l ly o uh o wt h e 1 5 7 1 c h e c k st o s e ei f
i t ' sg o t a d o u b l e - s i d e dd i s k e t t e i nt h e d r i v e o rn o t .W h e ny o u
p e r f o r mm o s td i s kf u n c t i o n s , t h eD i s kO p e r a t i n gS y s t e m( D O S )
r e a d st r a c k1 8 s e c t o r0 i n t ot h e d i s kd r i v e ' sR A M ,t h e nc h e c k s
t h e t h i r db y t ei n t o t h a ts e c t o r( t h ef i r s tb y t ei s b y t e0 ) a n d
c h e c k st o s e ei f i t h a sb i t7 s e t .I f i t i s n o ts e t ,i t i s a s i n g l e -
s i d e dd i s k .I f b i t7 i s s e t ,t h e d r i v ew i l lr e a di n t r a c k5 3 s e c t o r
0 t o r e a dt h er e s to f t h ed i s k ' sB l o c kA v a i l a b i l i t yM a p( b a m ) .
T h i s i n f o r m a t i o ni s u s e dt o f i n do u ti f a s e c t o ro n a s p e c i f i c
t r a c ko n s i d e1 o f t h ed i s ki s i n u s eo r i f i t i s f r e e .
A s y o uc a ns e e ,b e f o r et h eD O Sw i l la l l o wy o ut o r e a da
t r a c kb e y o n dt r a c k3 5 u s i n gt h en o r m a lD O S ,i t n e e d st o s e e
b i t7 s e ti n t h et h i r db y t e o ft r a c k 1 8 s e c t o r0 . M yp r o g r a m
w i l la l w a y ss e tt h i sb i t .A f t e rt h i sh a sb e e nd o n eI s e n do u t
a n 1 0 :w h i c hd o e sa c o u p l e o ft h i n g s :F i r s t ,i t f o r c e s t h ed i s k
d r i v et o r e l o a dt r a c k1 8 s e c t o r0 i n t oi t s R A M( t h eB A Mf o r
s i d e0 ) a n ds e t t h e i n t e r n a ls i n g l e / d o u b l e - s i d e d d i s kf l a g .
S e c o n d ,i t w i l lf o r c e t h eD O St o r e a di n t h i sd i s k ' sf o r m a
t i n gI D S .
W h e n e v e ry o u f o r m a ta d i s ku s i n g a s t a t e m e n ts u c ha s
" n O : c o m m o d o r e1 5 7 1 , d j "i t w i l lm a k et h ed i s k ' sn a m ec o m
m o d o r e1 5 7 1 ,a n dp l a c et h ef o r m a t t i n gI D si n e a c hh e a d e rp r e
c e d i n ge a c hs e c t o r .I n t h i sc a s et h ef o r m a t t i n gi d sw o u l db e d j .
T h e s eI Db y t e sa r ep l a c e da l o n gw i t ht h en a m eo n t r a c k1 8 s e c
t o r 0 . T h e s ec a nb e c h a n g e db y v a r i o u ss o f t w a r ep r o g r a
s u c ha s H E A D E RC H A N G E , w h i c hi s o n t h e 1 5 7 1t e s t / d e m od i s k
w h i c hw a sb u n d l e dw i t hy o u r1 5 7 1 .I f y o uc h a n g et h en a m eo f
t h ed i s k o rt h ed i s k I Do n t r a c k1 8 s e c t o r0 , y o ua r e j u s tc h a n g
i n gt h ei n f o r m a t i o nt h a ty o uw o u l ds e ew h e ny o ul o a d / r e a di n
t h e d i r e c t o r y .T h e a c t u a lf o r m a t t i n gI D b y t e sc a n n o t
c h a n g e dw i t h o u tr e f o r m a t t i n gt h ed i s kf r o ms c r a t c h .
O n c et h ed i s kh a sb e e ns e tu p a s a d o u b l e - s i d e dd i s k ,a n dh a s
r e a di n t h ed i s kI Db y t e s ,w e ' r er e a d yt o g o t o w o r k .N e x t ,I s e t
t h er e a da t t e m p t st o o n et o p r e v e n tt h ed i s kf r o ms e a r c h i n gt o o
l o n g( s o i t d o e sn o tw a s t ey o u rt i m e ) ,t h e nI a t t e m p tt o r e a d
t r a c k5 3 s e c t o r0 . T r a c k 5 3s e c t o r0 c o u l dh a v eb e e n a n yt r a c k
o n t h es e c o n ds i d eo f t h ed i s k . I fI ' ma b l et o r e a di n t h i st r a c k
a n ds e c t o r ,t h e nI k n o wt h a tt h ed i s kw a sp r e v i o u s l yf o r m a t t
a s a d o u b l es i d e dd i s k ,b u t h a sr e v e r t e dt o a s i n g l e - s i d e d
d u et o p r o b l e mt w os t a t e da b o v e .A l lI h a v et o d o i s t o p e r f o r
a c o l l e c tc o m m a n do n t h ed i s kt o r e c o n s t r u c ta v a l i d( c o r r e c
B A M .I f I ' mu n a b l et o r e a dt r a c k 5 3 , s e c t o r0 t h e nI k n o wt h a t
s i d eo n ew a sn e v e rf o r m a t t e d ,a n dI n e e dt o f o r m a ti t .
N o t et h a tt h i sp r o g r a md o e s n o tc o n v e r tf l i p p i e s .F l i p p i e s
t h o s ed i s k st h a th a v e b e e nn o t c h e do n t h eo t h e re d g es o t h a t
t h e yc a n b ef l i p p e do v e ra n du s e do n t h e o t h e rs i d e .I n o r d e rt o
f o r m a ts i d eo n eo n l y ,a l lI h a v et o d o i s t o e n t e rt h ef o r m a t t
r o u t i n ea t $ A 4 4 5i n t h e1 5 7 1d i s kd r i v e .O n c et h i si s d o n et h e
d i s kd r i v ew i l lg o o ni t sw a yf o r m a t t i n gs i d eo n eo n l yo f t h i s
d i s k . I fn o e r r o r so c c u r ,p e r f o r m i n ga c o l l e c to n t h ed i s kw i l l
c r e a t ea b a mf o rt h es e c o n ds i d e .O n c et h i sh a sb e e n c o m p
e d y o uw i l lh a v ea d o u b l e - s i d e dd i s kw i t hn of i l e so ns i d eo n e .
E v e nt h o u g ht h i sp r o g r a mm a ys o u n ds t r a i g h t f o r w a ri t i s
n o t !Y o um u s ta l l o wm a k e2 s i d e dt o c o m p l e t ei t s t a s ko r i t
w i l lc a u s ey o up r o b l e m si n t h ef u t u r e .A ne x a m p l e :y o uh a v ea
s i n g l e - s i d e d d i s kt h a ty o u w a n tt o c o n v e r tt o a d o u b l e - s
T r a n s a c t o r 5 8A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 61/84
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 62/84
m a k ea c o m m e n t !A l l o f t h e a f o r e m e n t i o n e dp r o g r a m m e r s
h a v eb e e np r o g r a m m i n go n v a r i o u sC o m m o d o r ed i s kd r i v e s
f o r m a n yy e a r s ,a n dh a v ef a r m o r eh a n d s - o nt i m et h a nI d o .
L i k es o m a n yo t h e r s ,I ' ms t i l lj u s ta b e g i n n e r .
H o p e f u l l y ,i n t h en e x tm o n t ho r t w oI w i l lh a v ef o u n dt h et i m e
t o c l e a nu p t h ec o m m e n t si n m y s o u r c ec o d ef o rm yF a s tF o r
m a tf o r t h e1 5 4 x ,a n d1 5 7 1( i n 1 5 7 1 ,o r 1 5 4 1m o d e ) ,a n dw i l l
b e a b l et o g e tt h e mo f ft o T r a n s a c t o r- a n dt o y o u . U n t i lt h e n ,
k e e pt h o s e d i s k d r i v e ss p i n n i n g .
" m a k e2 s i d e d . b a s "
M F 1 0 r e m * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I F 2 0r e m * *
H A 3 0 r e m* t h i sp r o g r a mi s u s e d t oc o n v e r ta d o u b l e s i d e d d i s k e t t e t h a t
F G 4 0 r e m* w a sc o l l e c t e do n t h e 1 5 7 1d i s kd r i v e w h i l ei t w a si n t h e 1 5 4 1m o d e
C N 5 0 r e m* w h i c h w i l la u t o m a t i c a l yc o n v e r ta d i s k e t t eb a c k t oa s i n g l es i d e d
E E 6 0 r e m* d i s k e t t e ,t h i sp r o g a m w i l la l s o c o n v e r ta d i s k e t t e f o r m a t t e d
A F 7 0 r e m* o n a1 5 4 1t o a d o u b l es i d e d1 5 7 1 d i s k e t t e .
E l 8 0 r e m* t o u s et h i sp r o g r a mj u s tp l a c e t h e a f f e c t e d d i s k e t t e
0 1 9 0 r e m* i n t h e1 5 7 1d i s k d r i v e a n d r u n t h i sp r o g r a m ,a n di f t h i s
L K 1 0 0r e m* p r o b l e m h o l d s t r u e t h e n t h i sp r o g r a mw i l l c o r r e c t t h e p r o b l e m .
C L 1 1 0r e m*
E G 1 2 0r e m* w a r n i n g : i ff o r a n y r e a s o n a n y e r r o r s o c c u ro r i fd u r i n g t h e
e x e c u t i o no f t h i sp r o g r a m y o u s h o u l dc h a n g e y o u rm i n d
j u s ta n s w e r( n ) ot o t h e q u e s t i o n s ,i f f o r s o m e r e a s o n
( s u c ha s aw r i t e e r r o r o ra p o w e r f a i l u r e ) t h i s p r o g r a m
d o e s n o t f i n i s h i t s t a s k y o u m u s t r e r u n t h i s p r o g r a m o r
s e r i o u sp r o b l e m s c o u l do c c u rw i t h y o u rd i s k e t t e ! .
J F 1 3 0r e m*
P K 1 4 0r e m *
B I 1 5 0r e m*
L G 1 6 0r e m*
D M 1 7 0r e m*
I P 1 8 0r e m* *
D M 1 9 0r e m* ( c ) 1 9 8 8 ,1 9 8 9 b y d e n n i sj . j a r v i sp u b l i c a t i o n sr i g h t s r e s e r v e d *
M A 2 0 0r e m* *
E C 2 1 0r e m * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
D L 2 2 0 a = 4 0: r e mc h a n g e t h i s t oy o u rc o m p u t e r s s c r e e n s i z e4 0 , 8 0 e t c .
O D 2 3 0s c = a / 2 : p r i n t s c
F B 2 4 0p r i n t " { h o m e }{ h o m e }{ d r } " : r e mc l e a r t h e s c r e e n a n d d e l e t e a n y
c u r r e n t w i n d o w s( i f a n y )
E l 2 5 0 d v = 8
L M 2 6 0p $ = " e n t e r t h e d i s k d r i v e s d e v i c en u m b e r " : r e ms t r i n g t o b ep r i n t e d
E F 2 7 0r o w = 1 2 : r e mr o w t o p r i n t t h es t r i n go n
J E 2 8 0g o s u b l 8 2 0 : r e mp r i n ti t t o t h e c e n t e ro f t h e s c r e e n
B K 2 9 0 p r i n t d v ; " { l e f t } { l e f t } " ;: r e md i s p l a yt h e d e f a u l t d r i v e n u m b e r
E A 3 0 0o p e n 5 , 0 : r e mp r e v e n t q u e s t i o n m a r k f r o mb e i n g p r i n t e d
E M 3 1 0i n p u t | 5 , a $ : r e ma l l o w t h e u s e r t o c h a n g e t h e c u r r e n t d e v i c e n u m b e r
G E 3 2 0 c l o s e 5 : r e ma l l o wp r o p e rs c r e e np r o m p t i n g
E J 3 3 0 d v = a b s ( v a l ( a $ ) ) : r e mm a k e t h e d e v i c e n u m b e rp o s i t i v e
C D 3 4 0i f d v= 0 t h e np r i n t " { d r } " : e n d : r e mt h e y ' r ed o n en o w
C M 3 5 0i f d v > 5 a n d d v < 3 1 t h e n4 3 0 :r e mi f t h e d e v i c e n u m b e ri s i n r a n g e b r a n c h
H N 3 6 0p r i n t " { c l r } ": r e m i f i t ' s n o tt h e nc l e a r s c r e e na n dp r i n t t h e m e s s a g e
F P 3 7 0p $ = " i l l e g a l d e v i c e n u m b e r" : r e mt o t h e s c r e e n
F P 3 8 0 r v = l
A P 3 9 0r o w = 1 2
J H 4 0 0 g o s u b l 8 2 0
O J 4 1 0 g o s u b l 7 0 0
H M 4 2 0g o t o 2 5 0
P N 4 3 0 o p e n l , d v , 1 5 , " u : "
: r e ms e tt h e r e v e r s ef i e l do n f l a g
: r e mp r i n ti t i nt h e c e n t e ro f t h es c r e e n
: r e mp r i n ti t t o t h es c r e e n
: r e m w a i t f o r t h e u s e r t o a c k n o w l e d g e t h e e r r o r
: r e mr e s t a r t t h e i n p u t l o o p
: r e m s o f t r e s e t t h ed i s kd r i v et o o b t a i n m o d e ln u m b e r
P E 4 4 0f o r x = 0 t o 2 0 0 0 : n e x t : r e m g i v e t h e d r i v e t i m e t o f i n i s hi t s r e s e t p r o c e s s
J N 4 5 0g o s u b 2 0 5 0 : r e mr e a di n a n d s a v ed i s kd r i v e sm o d e ln u m b e r
B P 4 6 0 p r i n t # l / f I u 0 > m l " : r e m j u s t i nc a s e w e r e r u n n i n go n an o nf a s tb u s c o m p u t e r
C F 4 7 0 p r i n t f l , " u 0 > r " + c h r $ ( l )
N C 4 8 0g o s u b 2 0 8 0 : r e m c l o s ed o w n t h e c o m m a n d c h a n n e l t ot h ed i s k d r i v e
D B 4 9 0i f l e f t $ ( r i g h t $ ( e $ , 9 ) , l ) = " 7 " t h e n o = l : g o t o 5 1 0
I G 5 0 0o = 0
H C 5 1 0i f o t h e n 5 7 0 : r e m i fi t ' s a 1 5 7 1 o n l i n e t h e nb y p a s st h ee r r o r m e s s a g
F O 5 2 0p r i n t " { c l r } " : p $ =" s o r r y f o rt h e1 5 7 1 d i s kd r i v eo n l y "
: r e ms t r i n gt o b e p r i n t e d
K H 5 3 0r o w = 1 2 : r e mp r i n ti t o n t h i s r o w
C C 5 4 0 r v = l : r e mp r i n ti t i n r e v e r s e d f i e l d
H F 5 5 0 g o s u b l 8 2 0: r e mp r i n ti t t o t h e c e n t e r o f t h e s c r e e n
N L 5 6 0g o s u b 2 0 8 0 : f o r x = 0 t o 3 0 0 0 : n e x t : r u n
E H 5 7 0g o s u b l 6 6 0 : r e mo p e nt h ep r o p e rc h a n n e l st o t h e d i s k d r i v e
P K 5 8 0f 1 = 1 2 8 : g o s u b l 2 3 0: r e m s e tt h ef l a gf o rd o u b l e s i d e dd i s k
I G 5 9 0p r i n t i l , " u O > r " + c h r $ ( l ) : r e ms e t r e a d a t t e m p t s t o1
O N 6 0 0p r i n t | l , " u l : 20 5 3 0 " : r e ma t t e m p tt o r e a d s e c o n d s i d e o f t h e d i
F N 6 1 0g o s u b 2 0 5 0 : d = e: r e mp r e s e r v e t h e e r r o r c h a n n e l
J P 6 2 0p r i n t S l , " u O > r " + c h r $ ( 5 ) : r e mr e s e t n u m b e ro f r e a da t t e m p t s
G D 6 3 0 i fd = 6 6t h e n8 1 0 : r e m i fu n a b l e t o r e a d t h e s e c o n ds i d eo f t h e d i s k
M B 6 4 0r e m t h e n b r a n c h t os e e i ft h e y w a n tt o f o r m a ti t
F E 6 5 0r e m d w i l le q u a l6 6 ( i l l e g a lt r a c k a n ds e c t o ri f
C C 6 6 0r e m i t ' su n a b l et o r e a d t h e s e c o n ds i d e o ft h ed i s k )
K B 6 7 0g o s u b 2 0 8 0: r e mc l o s e a l lo p e nc h a n n e l st o t h ed i s kd r i v e
J C 6 8 0g o s u b 2 0 9 0: r e mm a k et h ed r i v e r e c o g n i z et h a t t h i sd i s k2 s i d e dd i s k
a n d h a v ei t r e a di n t h e d i s ki d ' s
G J 6 9 0p r i n t "{ d r }
M G 7 0 0 p $ = " d i s k h a s n o w b e e n r e s t o r e d t oa d o u b l e s i d e d d i s k e t t e "
B N 7 1 0r o w = l l : g o s u b l 8 2 0
F P 7 2 0p $ = " i a mn o wp e r f o r m i n ga c o l l e c t o n t h i s d i s k p l e a s e w a i t .
D L 7 3 0 r o w = 1 3 : r v = l : g o s u b l 8 2 0 : g o s u b 2 0 8 0 : g o s u b 2 0 9 0 :
: p r i n t " { d r } " : e n d
A E 7 4 0 r e m*
7 5 0r e m* i f w ea r eu n a b l e t o r e a d t h e s e c o n ds i d e o ft h e d i s k e t t e t h e n
G DK P
A A
P I
L P
G A
J J
B L
H N
H O
N P
M N
G C
I I
H H
F J
E O
C C
F I
J J
I C
O C
O F
0 0
G I
C O
K J
M I
7 6 0r e m
7 7 0r e m
7 8 0r e m
7 9 0 r e m
g i v et h e u s e r t h e o p t i o no f f o r m a t t i n go n l yt h e s e c o n ds i d eo f t h e
d i s k ,i f s e l e c t e d t h e n w e w i l lf o r m a t o n l yt h es e c o n d s i d e o f t h
d i s k ,o r i f n o tw a n t e d t h e n w er e s t o r e t h e s i n g l e s i d e d f l
t h e d i s k a n d t e r m i n a t e t h i s r o u t i n e .
T r a n s a c t o r6 0
8 1 0p r i n t "{ d r }
8 2 0g o s u b 2 0 8 0
8 3 0p $ = " s o r r yt h i sd i s k e t t ew a s n o t f o r m a t t e da s a d o u b l e s i d e d d i s k e t
8 4 0r o w = 1 0 : g o s u b l 8 2 0 : p $ = "w o u l dy o ul i k et o m a k ei t o n e ?( y / n )? " : r o w = 1 2 : r v
: g o s u b l 8 2 0 : g o s u b l 9 2 0 :
8 5 0p r i n t "{ d r }8 6 0p $ =" a r ey o u s u r e ? t h i s w i l l e r a s e t h e s e c o n d s i d e o ( y / n ) "
8 7 0r o w = 1 3
8 8 0g o s u b l 8 2 0
8 9 0g o s u b l 9 2 0: r e mg e t t h e i r r e s p o n s e i fi t ' s ' y ' t h e n r e t u r n
9 0 0g o s u b l 4 1 0: r e mf o r m a tt h e s e c o n ds i d eo f t h e d i s k e t t e
9 1 0g o t o 6 9 0 : r e mi n f o r m t h e u s e r a n d p e r f o r ma c o l l e c to n t h e d i s k e t t e
9 2 0g o s u b 2 0 8 0: r e mc l o s e d o w n a l l o p e nf i l e s
9 3 0g o s u b l 6 6 0: r e mo p e n t h ep r o p e rc h a n n e l s t o t h e d i s k d r i v e
9 4 0f l = 0 : r e ms e tt h e f l a g f o ra s i n g l e s i d e d d i s k e t t e
9 5 0g o s u b l 2 3 0: r e mr e s e t s i n g l e s i d e d d i s k e t t e f l a g
9 6 0r e t u r n
9 7 0r e m * *
9 8 0r e m* t h i s r o u t i n ei s t h e e r r o r h a n d l e r , i f a n y d i s k e r r *
9 9 0r e m* o c c u r e d , o t h e r t h a n t h e d r i v eb e i n go f f, t h er o u t i n e o u t p u t s t *
1 0 0 0r e m* e r r o r m e s s a g e a n d r e s e t s t h e d o u b l e s i d e d / *
1 0 1 0r e m* b a c kt o a s i n g l e s i d e d d i s k e t t e , n o t e t h a t t h i si s v e r y i m p o r t a
1 0 2 0r e m * *
1 0 3 0 i f( s ta n d1 2 8 )t h e n l l 3 0: r e mc h e c k f o r t h e d i s k d r i v e b e i nt u r n e do f f
1 0 4 0g o s u b 2 0 5 0 : i f e < 2 t h e n r e t u r n: r e m i ft h e r e a r e n o d r i v e e r r o r s
1 0 5 0 p r i n t " { c l r } " : o p e n 5 , 0
1 0 6 0p $ =" d i s ke r r o rh a so c c u r r e d- " : r o w = l l : r = 0 : g o s u b l 8 2 0 : g o
: r o w = 1 3 : r = l : g o s u b l 8 2 0 : p r i n t : g o t o 9 20
1 0 7 0r e m *
1 0 8 0r e m* t h i s r o u t i n ei s u s e db yt h e t r a p c o m m a n d t o d e t e c t
1 0 9 0r e m* a s s y n t a x ,o r t h ed i s k d r i v eb e i n gt u r n e do f f ,i f t h ed i s k d r i v e
1 1 0 0 r e m* i s t u r n e d o f f t h e n i t p r i n t s a w a r n i n g t o t h e
1 1 1 0r e m* t h e p r o g r a m ,i f a n y o t h e r e r r o r o c c u r s t h e n t h e p ri s a b o r t e d .1 1 2 0r e m* *
1 1 3 0p $ = " t u r no ny o u r d i s kd r i v e" : r v = l : r o w = 1 2 : g o s u b l 8 2 0 : g o1 1 4 0r e m * *
1 1 5 0r e m* r e a dt h e d i s k e t t e sb a mi n t ot h eb u f f e ra n ds e t t h e f l a g t o*
A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 63/84
A K
1 1 6 0r e i n *i n d i c a t e t h i s d i s ki s d o u b l e s i d e d t o e n a b l eu s t o r e a d t h e s e c o n d*
1 1 7 0r e m* s i d e o f t h ed i s k ,a n di f w e a r e a b l e t o r e a di t t h e n t h i s d i s k e t t e*
1 1 8 0r e m* w a s f o r m a t t e da s a d o u b l e s i d e dd i s k ,b u ti f w e a r e n o t a b l e t o
1 1 9 0 r e m* r e a d t h e s e c o n d s i d e o f t h e d i s k e t t e t h e ni t w a s f o r m a t t e da s a
1 2 0 0r e m* s i n g l es i d e d d i s k e t t es o r e s e t t h e f l a gb a c kt o i n d i c a t e t h a t t h i s
1 2 1 0r e m* i s as i n g l e s i d e d d i s k e t t ea n d e n dt h i s p r o g r a m .
1 2 2 0r e m *
1 2 3 0p r i n t | l , " u l : 20 1 8 0 " : r e mr e a di n t h e d i s k e t t e sb a m
1 2 4 0g o s u t > 1 0 4 0 : r e mc h e c k f o rr e a de r r o r s
1 2 5 0 p r i n t j j l , " b - p2 3 " : r e m s e tt h ep o i n t e rt o t h e d o u b l es i d e i n d i c a t o r
1 2 6 0 p r i n t | 2 , c h r $ ( f l ) ;: r e ms e t t h e f l a g t o t h e v a l u e f o r s i n g l e
o r d o u b l e s i d e d
1 2 7 0p r i n t j j l ," u 2 : 20 1 8 0 " : r e mw r i t e t h e n e w b a m b a c k t o t h e d i s k e t t e
1 2 8 0g o s u b l 0 4 0 : r e mc h e c k f o rw r i t e / r e a de r r o r s
1 2 9 0p r i n t f l , " i 0 : " : r e mf o r c ed r i v e t o r e a di t ' sn e wb a mi n
1 3 0 0g o s u b 2 0 8 0 : r e mc l o s ed o w no u rc h a n n e l s( 1 5 7 1j u s td i d ! )
1 3 1 0g o s u b l 6 6 0 : r e mr e o p e n t h e c h a n n e l s
1 3 2 0 r e t u r n
1 3 3 0:
1 3 4 0r e m* t h i s r o u t i n ei s u s e d t of o r m a tt h e s e c o n d s i d e o ft h ed i s k
1 3 5 0r e m* t h a ti s c u r r e n t l y f o r m a t t e da s as i n g l e s i d e dd i s k ,t o d o t h i sa
1 3 6 0r e m* r o u t i n e t h a ti s i n t h e1 5 7 1d i s k d r i v ei s u s e d ,w h i c hi s i n t h e
1 3 7 0r e m* n o r m a lf o r m a t t i n gp r o c e s s , t ou s et h i sr o u t i n ew e p l a c et h em a x .
1 3 8 0r e m* n u m b e ro f t r a c k so n t h i sd i s k( 7 1 ) ,i n t o $ 0 2 a c ,a n dj u m pt o t h e
1 3 9 0r e m* f o r m a t r o u t i n e( $ a 4 4 5 )t o f o r m a tt h es e c o n d s i d eo f t h e d i s k
1 A O A r a m*
1 4 1 0a = 2 8 4 : r e mm a x i m u m t r a c k( l o c a t e di n t h e1 5 7 1 ' sm e m o r ya t $ 0 2 a c )
1 4 2 0 b = 7 1 : r e mm a x i m u mt r a c kn u i b e r - 1t o f o r m a tt o o
1 4 3 0 o p e n l , d v , 1 5 : r e m o p e n t h ec o m m a n dc h a n n e l t o t h ed i s kd r i v e
1 4 4 0g o s u b1 5 7 0 : r e mc h e c k f o r a n y e r r o r s
1 4 5 0p r i n t i l , " m - w " + c h r $ ( a a n d 2 5 5 ) c h r $ ( a / 2 5 5 ) c h r $ ( l ) c h r $ ( b ) : r e ms e tm a xt r k
1 4 6 0p r i n t "{ d r }
1 4 7 0p $ = " t h ef o r m a t t i n g p r o c e s si s n o w b e i n g p e r f o r m e do n s i d e1 o f
{ s p a c e } y o u r d i s k e t t e "
1 4 8 0 r o w = l l : g o s u b l 8 2 0: p r i n t f1 ," m - e " c h r $( 6 9 )c h r $( 1 6 4 ): g o s u b l 5 7 0 : d o s e l 5
: g o s u b 2 0 8 0 : r e t u r n
1 5 0 0r e m* t h i s r o u t i n e w i l l c h e c k t o e n s u r e t h a t t h e r e a r e n o e r r o r s d u r i n g *
1 5 1 0r e m* t h e f o r m a t p r o c e s s , s u c ha s t h e u s e r p o p p i n g t h e d i s k e t t e o u t o f*
1 5 2 0r e m* t h ed i s kd r i v e ,o r a n yw r i t ee r r o r s ,e t c .i f a n yo c c u r t h e n t h i s
1 5 3 0r e m* s u b r o u t i n e w i l l t e r m i n a t e t h e f o r m a t t i n g p r o c e s s a n d r e s e t t h e
1 5 4 0r e m* s i n g l e / d o u b l e s i d e d f l a gb a c kt o a s i n g l e s i d e dd i s k e t t e .
1 5 5 0r e m* n o t e :r e a dt h ew a r n i n gi n t h e f i r s ts e t o f r e ms t a t e m e n t s .
1 5 6 0r e m *
1 5 7 0g o s u b 2 0 5 0 : i f e < 2 0 t h e nr e t u r n: r e mi f n o d i s kd r i v e e r r o r sh a v e
o c c u r r e dt h e n r e t u r n
1 5 8 0p r i n t " { d r } " : c l o s e 5 : p $ = " ad i s k d r i v e e r r o rh a so c c u r e d" : r o w = 9 : r v = 0
: g o s u b l 8 2 0 : p $ = e $ : r o w = l l : r v = l : g o s u b l 8 2 0 : p $ = " p l e a s e c h e c k y o u r d i s k d r i v e"
1 5 9 0r o w = 1 3 : g o s u b l 8 2 0 : g o s u b l 7 0 0 : g o s u b 9 2 0 : g o t o 8 1 0
1 6 0 0r e m * *
1 6 1 0 r e m* t h i s r o u t i n e w i l l o p e n t h e c o m m a n d c h a n n e l t o t h e d i s k d r i v e*
1 6 2 0r e m* w h o s e n u m b e ri s s p e c i f i e di n d v , a n d w i l l a l s o r e s e r v e *
1 6 3 0r e m* a b u f f e rf o r o u r u s e i n s i d eo f t h e d i s k d r i v et o a l l o wu s t o r e a d*
1 6 4 0r e m* a n d w r i t e t h eb a mf r o m / t o t h e d i s k d r i v e *
1 6 5 0r e m * *
1 6 6 0c l o s e 2 : c l o s e l: r e me n s u r ec h a n n e l s a r ec l o s e d
1 6 7 0o p e n 2 , d v , 2 , " i " : r e ma l l o c a t ea b u f f e rf o r o u ru s ei n t h e d i s k d r i v e
1 6 8 0o p e n l , d v , 1 5: r e mo p e nt h ec o m m a n d c h a n n e l t o t h e d i s k d r i v e
1 6 9 0g o t o1 5 7 0 : r e mc h e c kf o ra n y d i s k e r r o r s t h e n r e t u r n
1 7 0 0p $ =" p r e s s a n y k e y t o c o n t i n u e n : r v = l : r o w = r o w + 2 : g o s u b l 8 2 0 : g o s u b 2 0 4 0
1 7 1 0g e t a $ : i f a $ = " " t h e n l 7 1 0
1 7 1 5p r i n t " { d r ) " : r e t u r n
1 7 2 0r e m * *1 7 3 0r e m* t h i s r o u t i n ei s u s e d t o p r i n t o u r t e x t c e n t e r e do n t h e4 0 o r 8 0 *
1 7 4 0 r e m* c o l u m n t e x t s c r e e n s . *
*
*
*
*
*
*
*
*
*
*
o c
F C
L O
H J
I D
P B
T OA O
L I
8 0
V PK b
F Jn oC K
I B
A L
M TH J
F P
G J
E J
O C
6 J
L O
B F
H O6 A
G K
K A
L D
O L
G C
*
*
*
*
, — *
1 7 5 0r e m* *
1 7 6 0r e m* t o u s e t h i s r o u t i n e y o um u s tp r e d e f i n e t h e f o l l o w i n gv a r i a b l e s .*
1 7 7 0r e m* *
1 7 8 0r e m* p $ = t h es t r i n gy o uw i s ht o p r i n tc e n t e r e d o n t o t h es c r e e n *
1 7 9 0r e m* r = r e v e r s e f i e l do n ( 1 ) ,o r o f f ( 0 ) *
1 8 0 0r e m* r o w = r o w n u m b e r t o p r i n t t h e t e x to n *
l o i u r e m - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 8 2 0 n l= l e n ( p $ ) / 2: r e mf i n d t h et r u el e n g t ho f t h e s t r i n g
1 8 3 0p r i n t " ( h o m e } " : f o r x = 2 t o r o w : p r i n t : n e x t
1 8 4 0f o r i = l t o a b s ( s c - l e n ( p $ ) / 2 ) : p r i n t " ( r i g h t } " ; : n e x t : i f
1 8 5 0p r i n t p $ ; : r v = 0 : r e t u r n
1 Q C f ir a m * *1 O O UI C l D" — " — " — — — — — — — — — —
1 8 7 0r e m* c l e a r t h ek e y b o a r db u f f e ro f a n yk e y p r e s s e s a n dw a i t f o rt h e *
1 8 8 0r e m* u s e r t o p r e s sa k e y a n di f i t ' st h e k e y' y ' t h e n r e t u r nt o t h e *
1 8 9 0r e m* c a l l i n gr o u t i n e ,e l s e r e s e t t h e f l a gi n t h eb a mt o i n d i c a t e t h i s*
1 9 0 0 r e m* d i s ki s a s i n g l e s i d e dd i s k ,n o ta d o u b l e s i d e d d i s k e t t e t h e *
1 Q 1 f lr a m * - — — *
1 9 2 0 g o s u b 2 0 4 0: r e mp u r g e t h e k e yb o a r db u f f e r o f a n y
o u t s t a n d i n g k e yp r e s s e s
1 9 3 0g e t z $ : i f z $ = " " t h e n l 9 3 0: r e mw a i tf o rt h e u s e r t o p r e s sa k e y
1 9 4 0 i f z $ = " y " t h e n r e t u r n
1 9 5 0g o s u b 9 2 0 : r e ms e tt h e f l a gf o ra s i n g l e s i d e dd i s k e t t e
1 9 6 0 g o s u b 2 0 8 0: r e mc l o s e a n yo p e n d i s kd r i v e f i l e s
1 9 7 0p r i n t " { h o m e } ( h o m e ) { d r } ": r e mc l e a r t h e s c r e e n a n d t e r m i n a t e
1 9 8 0e n d t e r m i n a t et h i sp r o g r a m
1 Q Q f lr a m * *1 7 ? v i c I U - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 0 0 0r e m* g e n e r i cp u r g er o u t i n e f o r a l lc b mc o m p u t e r s , t h i s s u b r o u t i nw i l l*
2 0 1 0r e m* r e m o v e a l l c h a r a c t e r se n t e r e d u p t ot h i sp o i n t . *
O f l O f lr a m * *L M i MI c m * — — — — — — — — — — — —
2 0 3 0g e t z z $ : i f z z $ O " " t h e n 2 0 3 0: r e ma n ym o r ek e y s i n t h eb u f f e r ?i f s ol o o p
2 0 4 0r e t u r n : r e mb u f f e r n o w p u r g e d
2 0 5 0e $ = " "
2 0 6 0i f s t t h e ne = v a l ( l e f t $ ( e $ , 2 ) ) : r e t u r n
2 0 7 0g e t § l , a $ : e $ = e $ + a $ : g o t o 2 0 6 0
2 0 8 0c l o s e 2 : d o s e l :r e t u r n
2 0 9 0o p e n l , d v , 1 5 ; " i 0 : " : d o s e l : r e t u r n □
C H I PC H E C K E R
• O v e r6 5 0D i g i t a lI C s
• 7 5 / 5 4T T L( A l s . a s . f . h . l . l s . s )
• 7 4 / 5 4C M O S( C . h c ,h c t ,s c )
• 1 4 / 4C M O S
8 0 0 0N a t i o n a l+ S i g .
9 0 0 0T T L
1 4 - 2 4P i nC h i p s
. 3 " + . 6 " I C W i d t h s
P r e s s i n ga s i n g l ek e yi d e n t i f i e s / t e s t sc h i p sw i t hA N Y
t y p eo f o u t p u ti n s e c o n d s .T h e C H I PC H E C K E Rn o w
a l s ot e s t sp o p u l a rR A Mc h i p s .T h e C H I PC H E C K E Ri s
a v a i l a b l ef o rt h eC 6 4o r C 1 2 8f o r$ 1 5 9 .T h eP C c o m
p a t i b l ev e r s i o ni s $ 2 5 9 .
D U N ES Y S T E M S
2 6 0 3W i l l aD r i v e
S t . J o s e p h , M l4 9 0 8 5
( 6 1 6 )9 8 3 - 2 3 5 2
T r a n s a c t o r 6 1 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 64/84
C u s t o m i z i n gC 1 2 8C P / M
P a t c h e sf o rC P M + . S Y S
b y M . G a r a m s z e g h y
C o p y r i g h t© 1 9 8 8 H e r n e D a t aS y s t e m sL t d .
C 1 2 8C P / Mm o d er e l i e so n a R A M - b a s e do p e r a t i n gs y s t e mt o
c o n t r o lt h eb a s i c f u n c t i o n so f t h ec o m p u t e r .T h e s eR A M - b a s e d
o p e r a t i n gs y s t e m sh a v es e v e r a la d v a n t a g e so v e rR O M - b a s e d
s y s t e m s( s u c ha s t h e s t a n d a r dC o m m o d o r e8 - b i tK e r n a la n d
b a s i cs y s t e m s )i n t h a ti t i s v e r y e a s yt o m a k ec h a n g e s , m o d i f i
c a t i o n sa n d g e n e r a lc u s t o m i z a t i o nb y p a t c h i n gt h e R A M ,
w h e r e a sa n E P R O Mb u r n e ri s g e n e r a l l y r e q u i r e dt o m a k e
c h a n g e st o a R O M - b a s e ds y s t e m .T h i sa r t i c l ed e a l sw i t ha n u m
b e ro f f a i r l ys i m p l e ,b u tq u i t e u s e f u l m o d i f i c a t i o n s , o r p a t c h e s ,
t h a tc a n b em a d et o t h eC P / Mb o o t p r o g r a m .
B e f o r ew eg e ts t a r t e d ,a b i to f b a c k g r o u n di n f om a yb e u s e f u l .
O f f i c i a l l y ,t h e r e a r ef o u rv e r s i o n so f t h e C P / Mb o o t p r o g r a m ,
C P M + . S Y S ,g e n e r a l l y a v a i l a b l ef o rt h eC 1 2 8 .T h e s ec a n b ei d e n
t i f i e db y t h e d a t e sd i s p l a y e dw h e nt h eC P / Ms y s t e mf i r s tb o o t s
u p : 1 A U G8 5 ,6 D E C8 5 ,8 D E C8 5 a n d 2 8M A Y8 7 .T h e1 A U G
8 5 v e r s i o n d i dn o t s u p p o r te i t h e rt h e R S - 2 3 2 p o r t o rt h e
1 7 0 0 / 1 7 5 0R A Me x p a n d e r .S u p p o r tf o rt h e s ew e r e a d d e dw i t ht h e6 D E C8 5 v e r s i o n .A m i n o rb u gi n t h ep r i n t e rr o u t i n ew a s
c o r r e c t e dw i t ht h e 8D E C8 5 r e l e a s e ;a n df u l ls u p p o r tw a s
a d d e df o r t h e1 5 8 1d r i v ew i t ht h e 2 8 M A Y8 7 v e r s i o n .T h e
p a t c h i n gp o i n t su s e di n t h i s a r t i c l ef o r t h e 6 D E Ca n d8 D E C
v e r s i o n sa r ei d e n t i c a l .T h e r e f o r e , t h e yw i l lb o t hb e r e f e r r e dt o
a s t h e" D E C8 5 "v e r s i o n .
T h e r ea r e a l s on u m e r o u sm o d i f i e d ," u n o f f i c i a l "a n db e t at e s t
v e r s i o n si n l i m i t e dc i r c u l a t i o n .T h i sa r t i c l ed e a l so n l y w i t ht h e
f o u ro f f i c i a lv e r s i o n s ,a l t h o u g ht h ee x p e r i e n c e dp r o g r a m m e r
c a ne a s i l ya d a p tt h et e c h n i q u e se x p l a i n e dh e r e i nt o o t h e rv e r
s i o n s .
A l t h o u g ht h ep r o c e d u r ei s f a i r l ys t r a i g h t f o r w a r d ,I w i l la s s u m e
t h a t t h e r e a d e rh a s a c e r t a i nd e g r e eo f u n d e r s t a n d i n ga n d
f a m i l i a r i t yw i t ht h eC P / Me n v i r o n m e n t .S p e c i f i c a l l y ,e x t e n s i v e
u s ei s m a d eo f t h eC P / Md e b u g g i n gu t i l i t yS 1 D . C O M .( O fn o t et o
l o n g t i m eC 6 4u s e r si s t h a tt h i sp r o g r a mh a s n o t h i n gt o d o
w i t ht h es o u n dc h i po f t h es a m en a m e .I n t h i sc a s e S I Di s s h o r t
f o r" S y m b o l i cI n s t r u c t i o nD e b u g g e r " . )
N o t e :T h ea d d r e s s e sg i v e ni n t h i s a r t i c l ef o rt h ep a t c hp o i n t s
r e f e rt o t h o s e o b t a i n e d u s i n g S I D o ra n e q u i v a l e n td e b u g g e r
w h i c hl o a d st h ef i l eb e i n gp a t c h e di n t ot h en o r m a lt r a n s i e n t
p r o g r a ma r e a( t p a )m e m o r ys p a c e .C o n s e q u e n t l y ,a l l a d d r e s s
e s a r ec a l c u l a t e db a s e do n t h eb e g i n n i n go f t h e f i l eb e i n ga t
a d d r e s s$ 1 0 0( i . e .t h en o r m a ls t a r to f t h e t p a ) .I f y o ua r eu s i n
a h e xf i l ee d i t o rw h i c hc a l c u l a t e si t s a d d r e s s e sb a s e do n t h e
b e g i n n i n go f t h e f i l eb e i n ga d d r e s s0 ( s u c ha s E D F 1 L E . C
y o u m u s ts u b t r a c t$ 1 0 0f r o mt h ea d d r e s s e sg i v e nh e r ei n a l l
c a s e st o g e t t h e p a t c hp o i n tf o r t h e s eo t h e rp r o g r a m s .F o r
e x a m p l e ,a d d r e s s$ 4 4 0w i t hS I D ,i s a c t u a l l yo f f s e t$ 3 4 0w h e
y o uc o u n ti t f r o mt h eb e g i n n i n g o ft h ef i l eu s i n gE D F I L E .( $ 3 4
f r o mt h es t a r to f t h eT P Aa t $ 1 0 0= $ 4 4 0 )
S t a r t i n go f f
T h ef i r s ts t e pi n c u s t o m i z i n gy o u rC P / Ms y s t e mi s t o b o o tu p
C P / M a n de n t e r t h eS I De n v i r o n m e n t .T h i si s d o n eb y f i r s t
p u t t i n gt h eC P / Mb o o td i s ki n d i s kd r i v e8 a n dt u r n i n go n t h e
c o m p u t e ro r p r e s s i n gt h e r e s e t b u t t o n .O n c et h e C P / Mc o m
m a n dp r o m p t( n o r m a l l yA > )a p p e a r s ,y o uc a n p r o c e e dt o t h e
n e x ts t e p .W i t ha c o p yo f S I D . C O Mo n t h e s a m ed i s ka s y o u r
C P M + . S Y Sf i l e ,t y p ei n :
S I D C P M + . S Y S < r e t u r n >
N o t e :U s ea b a c k u pw o r kd i s k .D on o td o t h i sw i t hy o u ro r i g i
n a ls y s t e md i s kb e c a u s ei t w i l lm a k ep e r m a n e n tc h a n g e st o t h e
o p e r a t i n gs y s t e m .
A f t e r af e w m o m e n t s ,t h e s c r e e ns h o u l dd i s p l a ys o m e t h i
l i k e :
C P / M3 S I D - V e r s i o n x . x
N E X T M S Z EP C E N D
z z z z z z z z 0 1 0 0C E F F
#
w h e r ez z z zi s a h e x a d e c i m a ln u m b e ri n d i c a t i n gt h el e n g t ho f
t h eC P M + . S Y Sf i l e .F o rt h e1 A U G8 5 v e r s i o n ,i t w i l lh a v ea v a l
u e o f 5 D 0 0 ;a v a l u e o f6 4 0 0f o r t h ed e c8 5 v e r s i o n s ;a n da
v a l u e o f6 3 0 0f o r t h e2 8 M A Y8 7 v e r s i o n .I f o n eo f t h e s en u m
b e r sd o e sn o ts h o wu p ,t h e np r o c e e d w i t hc a u t i o nb e c a u s ey o u
m a yn o tb e w o r k i n gw i t ha n ' o f f i c i a l 'r e l e a s ea n ds o m eo r a l l
o f t h ep a t c hp o i n t sm a yb e d i f f e r e n t .I n a n yc a s e ,m a r kt h i s
n u m b e rd o w nb e c a u s ei t w i l lb e n e e d e da t t h ee n dw h e ny o u
s a v ey o u rc h a n g e s .T h e# i s S l D ' sn o r m a li n p u tp r o m p t :i t i s
n o wa w a i t i n gy o u rf u r t h e r i n s t r u c t i o n s .
T r a n s a c t o r 6 2 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 65/84
Y o us h o u l ds e ea d i s p l a ys i m i l a rt o :
0 5 F 0 : 0 0 1 1 2 2 3 34 4 5 5 6 6 7 7 8 89 9
A A B B C C D D E EF F . . " 3 D U f w . ..
T h r o u g h o u tt h er e m a i n d e ro f t h i sa r t i c l e ,I w i l lb e r e f e r r i n gt o
t h r e em a i nS I Dc o m m a n d s .T h e s ea r ed f o rd i s p l a ym e m o r y ;s
f o r s e t m e m o r y( i . e .c h a n g em e m o r yb y t e s ) ;a n dw f o r w r i t e
m e m o r yt o f i l e .T h es y n t a xf o r e a c ho f t h e s ec o m m a n d si s
s u m m a r i z e db e l o w .N o t et h a tt h e r ei s n o s p a c eb e t w e e nt h e
c o m m a n dl e t t e ra n dt h ef i r s ta r g u m e n t ,b u t as p a c e( o rc o m m a ,
a s a p p l i c a b l e )i s r e q u i r e db e t w e e na r g u m e n t s .
d < s t a r ta d d r e s s > , < e n d a d d r e s s >
s < s t a r t a d d r e s s >
\ r < f ± l es p e c > , < s t a r t a d d r e s s > , < e n d a d d r e s s >
I n a l l c a s e s ,< s t a r ta d d r e s s >a n d< e n da d d r e s s >a r ee x p r e s s e d
a s h e x a d e c i m a lv a l u e sa n db o t ha d d r e s s e sa r e o p t i o n a l .I f
< s t a r ta d d r e s s >i s o m i t t e d w i t ht h ed c o m m a n d ,t h e d i s p l a y
s t a r t sa t t h e c u r r e n tp r o g r a mc o u n t e r v a l u e( d e f a u l ts t a r t a t
0 1 0 0 ,a n dw i t h s u b s e q u e n tu s e s ,i t r e s u m e sf r o m w h e r ei t l a s t
l e f to f f ) ,w h i l ei f < e n da d d r e s s >i s o m i t t e d ,t h en e x t1 9 2b y t e s
w i l lb e d i s p l a y e d ( 1 2l i n e so f 1 6 b y t e s ) .I f < s t a r ta d d r e s s >a n d
< e n da d d r e s s >a r eo m i t t e d w i t ht h ew c o m m a n d ,t h ev a l u e s
d i s p l a y e di n S i D ' ss i g n - o nm e s s a g eu n d e rP C a n dN E X Ta r e
u s e da s t h es t a r ta d d r e s sa n d e n da d d r e s sr e s p e c t i v e l y .F o r
s a f e t y ' s s a k e ,i t i s a g o o di d e at o s p e c i f yt h ea d d r e s s e se x p l i c
i t l yw h e nm o d i f y i n gb y t e sw i t ht h es c o m m a n do r w r i t i n g t h e
m o d i f i e df i l ew i t hw . T h a tw a yy o u d on o th a v et o k e e pt r a c k
o f t h e d e f a u l tv a l u e sf r o mt h ep r o g r a mc o u n t e r .W i t hS I D ,t h e
p a r a m e t e r sc a nb e s e p a r a t e db y e i t h e rs p a c e s o rc o m m a s .
S c r e e nc o l o u r s
A s p a r to f t h e s t a r t - u p r o u t i n e ,C 1 2 8C P / Ms p e c i f i e st h e
s c r e e nc o l o u r sf o r t h ec h a r a c t e r s ,b a c k g r o u n d a n d 4 0 - c o l u m n
b o r d e ra r e a .N o w ,y o um u s ta d m i tt h a tn o te v e r y o n ew i l ll i k e
t h e p u r p l ec h a r a c t e r so n a b l a c kb a c k g r o u n dw i t ha b r o w n
b o r d e rt h a t t h e w i s ef o l k sa t C o m m o d o r ec h o s ea s t h e
d e f a u l t s .O u rf i r s tt a s ki s t o c h a n g et h e mi n t os o m e t h i n ga b i t
m o r ep a l a t a b l e .
O ne x a m i n i n gt h eC P / Ms o u r c e c o d e ,o n ef i n d st h a tt h es t a r t
u p r o u t i n es p e c i f i e s l o g i c a lc o l o u r0 f o r t h eb a c k g r o u n d ,
l o g i c a lc o l o u r4 f o rt h ef o r e g r o u n d( i . e .t h e c h a r a c t e r s )a n d
l o g i c a lc o l o u r9 f o r t h e4 0 - c o l u m nb o r d e ra r e a .A r m e dw i t h
t h i sk n o w l e d g e ,t h e r e a r et w ow a y st o c h a n g et h ed e f a u l t s :
c h a n g et h e l o g i c a lt o p h y s i c a l c o l o u rt r a n s l a t i o n t a b l eo r
c h a n g et h el o g i c a lc o l o u rc o d e si n t h es t a r t - u p r o u t i n e .Y o u
n e e do n l yd o o n eo f t h e f o l l o w i n g c h a n g e s ,s o t a k ey o u r
p i c k .
T h ef i r s tm e t h o di s p e r h a p st h ee a s i e s t ,a n di s a g o o di n t r o d u c
t i o n t ot h ew o r k i n g so f S I D .I n a l l o f f i c i a lv e r s i o n so f C 1 2 8
C P / M ,t h el o g i c a l t op h y s i c a lc o l o u rt r a n s l a t i o n t a b l ei s i n t h e
s a m es p o t .T y p ei n t h ef o l l o w i n ga t t h eS I Dp r o m p t# :
d 5 f O
f o l l o w e db y t h eR e t u r nk e y .( F r o mt h i sp o i n to n ,w h e n e v e rI S I Dw i l lr e s p o n dw i t h :
s a yt o t y p ei n s o m e t h i n g ,y o us h o u l da l w a y sp r e s s t h eR e t u r n
k e ya f t e r w a r d s . )
f o l l o w e db y a n u m b e ro f o t h e rl i n e so f s i m i l a rf o r m a t .T h i s
f i r s tl i n ei s t h e l o g i c a lt o p h y s i c a l c o l o u rt r a n s l a t i o nt a b l e .( I f
y o u h a v e p r e v i o u s l y r e d e f i n e dy o u r c o l o u r s u s i n gt h e
K E Y F I G . C O Mu t i l i t y ,t h e na l l o f t h e n u m b e r sm a yn o ta p p e a r
e x a c t l ya s s h o w n . )M e m o r yl o c a t i o nO 5 f Oc o n t a i n st h ep h y s i
c a lc o l o u r sc o r r e s p o n d i n gt o l o g i c a lc o l o u r0 f o r t h e8 0 a n d4 0
c o l u m nd i s p l a y s ( t h e yc a nb e d i f f e r e n t ,i f y o us o d e s i r e ) ,w h i l e
0 5 f fc o n t a i n st h ep h y s i c a l c o l o u r sf o rl o g i c a lc o l o u rf . I n e a c h
b y t e , t h el o wn y b b l e ,- x , c o n t a i n st h ep h y s i c a l c o l o u rf o r t h e
8 0 - c o l u m ns c r e e n ,w h i l et h eh i g hn y b b l e ,x - ,h a st h ec o l o u rf o r
t h e4 0 - c o l u m ns c r e e n .I n i t i a l l y , a l ll o g i c a lc o l o u r sa r ed e f a u l t
e d t o t h ec o r r e s p o n d i n gp h y s i c a lc o l o u rn u m b e r s , h e n c et h e0 0
1 1 2 2 3 3 e t c .
R e c a l lt h a t l o g i c a lc o l o u r0 i s s p e c i f i e df o r t h eb a c k g r o u n d .T o
c h a n g et h i s ,t y p ei n :
s 5 f O
S l Dw i l lr e s p o n dw i t h :
0 5 F 0 0 0
I n t h i sc a s e ,0 0 i s t h ec u r r e n tv a l u ef o rm e m o r yl o c a t i o n5 f 0
a n d i s t h e l o c a t i o no f t h e c u r s o r .T y p ei n y o u rn e wh e x
v a l u e ,s a y 1 6 .( T h i sw i l lg i v e a b l a c kb a c k g r o u n do n t h e4 0 -
c o l u m ns c r e e na n da b l u eo n eo n t h e8 0 - c o l u m ns c r e e n . )T h e
p h y s i c a l c o l o u rn y b b l e sc a nb e o b t a i n e df r o mt h e f o l l o w i nt a b l e( n o t e t h e d i f f e r e n c e sb e t w e e n4 0 a n d 8 0 - c o l u m nm o d e s ) :
N y b b l e V a l u e
0
1
2
3
4
5
6
7
8
9
a
b
c
d
e
f
C o l o u r
B l a c k
W h i t e
R e d
C y a n
P u r p l e
G r e e n
B l u e
Y e l l o w
O r a n g e
B r o w n
L t . R e d
D k . G r a y
M d . G r a y
L t . G r e e n
L t . B l u e
L t . G r a y
( I t .
( I t .
( I t .
( d k .
( d k .
( d k .
c y a n8 0
p u r p8 0
y e l l o w
p u r p8 0
y e l l o w
c y a n8 0
c o l )
c o l )
8 0 c o l )
c o l )
8 0 c o l )
c o l )
0 5 F 1 1 1
T r a n s a c t o r6 3 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 66/84
. . . w h i c hi s t h e n e x tm e m o r yl o c a t i o nt o p a t c h .W e w i l ln o t
m a k ea n yc h a n g e sh e r ef o rn o w ,s o p r e s sR e t u r na f e wt i m e s
u n t i lS I Ds a y s :
d b
d b
f i l l e r
e n d o f m e s s a g e
0 5 F 4 4 4
T h i si s t h ef o r e g r o u n do r c h a r a c t e rc o l o u rl o c a t i o n .T y p ei n t h e
n e wv a l u e ,s a y1 1 ,f o rw h i t ec h a r a c t e r so r 5 5 f o rg r e e n( l i k ea
g r e e ns c r e e n m o n i t o r ) .P r e s sR e t u r na f e w m o r et i m e su n t i l
y o ug e t :
0 5 F 9 9 9
T h i si s t h ef i n a lc o l o u rl o c a t i o nt o p a t c h .I t c a nb e i g n o r e di f
y o uu s ea n 8 0 - c o l u m nd i s p l a yb e c a u s et h e b o r d e r c o l o u ri s
o n l yu s e di n 4 0 - c o l u m nm o d e .I t i sg e n e r a l l ym o s ta p p e a l i n g
t o s e tt h i so n et o e i t h e rt h es a m ec o l o u ra s t h eb a c k g r o u n do r a
d i f f e r e n ts h a d e o ft h e s a m ec o l o u r ( s u c ha s l i g h tb l u ew i t h
d a r kb l u e ,l i g h tr e d w i t hd a r kr e d ,e t c . )
A f t e ry o uh a v ec o m p l e t e dt h ec h a n g e s ,t y p ei n a p e r i o d( ' . ' )t oe x i tt h es c o m m a n da n dr e t u r nt o t h em a i nS I Di n p u tp r o m p t( # ) .
( N o t et h a ti t i s a l s op o s s i b l et o p a t c ht h i sc o l o u rt a b l eu s i n gt h e
C 1 2 8k e y b o a r dr e d e f i n i t i o nu t i l i t yK E Y P I G . C O M . B e a ri n m i n d
t h a tt h el o g i c a lc o l o u r st o b e c h a n g e dt o s e tt h ed e f a u l ts c r e e n
c o l o u r sa r e t h es a m ea s t h o s e o u t l i n e da b o v e . )
T h es e c o n dp a t c hm e t h o df o rc h a n g i n gt h es c r e e n c o l o u r sm a y
s e e ma b i tm o r ec o m p l e xt o s o m eb e c a u s et h ep r e c i s e l o c a t i o n
t o m o d i f yd e p e n d su p o nt h ev e r s i o no f C P / Mt h a ty o ua r em o d i
f y i n g .H o w e v e rt h et e c h n i q u ei s v i r t u a l l y i d e n t i c a l t o t h a to u t
l i n e da b o v e .T h ec o l o u r sa r e a c t u a l l ys e tj u s tb e f o r et h e s i g n -o n m e s s a g eb y u s i n ga s e r i e so f e s c a p ec o d e sp r i n t e dt o t h e
s c r e e na c c o r d i n gt o t h e f o l l o w i n ge x t r a c tf r o mt h e s o u r c e
c o d e :
c a l l p r t $ m s g ; c a l lr o u t i n e t op r i n ts i g n o nm e s s a g e
d b > > z ' ' - ' ' w '; c o n t r o l - Zt o c l e a r s c r e e n
( n o t et h i s s c r e e nc l e a ri s n o t r e a l l yr e q u i r e d )
d b e s c , e s c , e s c/ p r e f i x f o rs e t t i n gc o l o r
d b p u r p l e + $ 5 0; l o g i c a lc o l o r4 f o r f o r e g r o u n d
d b e s c , e s c , e s c
d b b l a c k + $ 6 0/ l o g i c a lc o l o r0 f o r b a c k g r o u n d
d b e s c , e s c , e s c
d b b r o w n + $ 7 0/ l o g i c a lc o l o r9 f o r b o r d e r
d b " z " - " " '/ c l e a rs c r e e n
( t h i s i st h e o n ew h i c hi s r e q u i r e d )
d b ^ C P / M3 . 0 O n t h e C o m m o d o r e1 2 8 " / s i g n o nm s g
d b d a t e
d b c r , l f
( p r o g r a m r e s u m e se x e c u t i o nh e r e )
N o t et h a tt h e t h r e ec o l o u r sn e e dn o tb e s p e c i f i e di n a n yg i v e n
o r d e r .T h e ym a ya l s ob e s p e c i f i e d a sp h y s i c a l c o l o u r sr a t h e r
t h a nl o g i c a lo n e s .T h ep a t c hl o c a t i o n sa r e a sf o l l o w s :
C o l o rC o d e
1
F o r e g r o u n d
B a c k g r o u n d
4 0 c o l b o r d e r
A U G8 5
2 8 d 7
2 8 d b
2 8 d f
L o c a t i o n
D E C8 5
2 f f b
2 f f f
2 f O 3
2 8 M A Y8 7
2 e 0 1
2 e O 5
2 e O 9
A l l t h r e e l o c a t i o n sa r e i n t e r c h a n g e a b l eb e c a u s et h e c o l o u
s o u r c ew h i c hi s a c t u a l l ys e tb y a g i v e nl o c a t i o nd e p e n d so n l y
o n t h ev a l u eo f b y t e .T o s e ta g i v e nl o c a t i o n a s a l o g i c
g r o u n dc o l o u r ,a d d$ 5 0t o t h e c o l o u rt a b l en u m b e r sg i v e n
a b o v e .T o s p e c i f yt h el o c a t i o na s a l o g i c a lb a c k g r o u n dc o l o u
a d d$ 6 0 ,a n df o r t h e4 0 - c o l u m nb o r d e r c o l o u ra d d$ 7 0 .F o r
e x a m p l e ,i f y o u w i s ht o s p e c i f yt h e f o r e g r o u n da s l o g i c
c o l o u r1 , t h eb a c k g r o u n da s l o g i c a lc o l o u r7 a n dt h eb o r d e ra s
l o g i c a lc o l o u r3 , t h eb y t ev a l u e sw o u l db e $ 5 1 ,$ 6 7 a n d$ 7 3 .
I f y o up r e f e rt o s p e c i f y t h ec o l o u r sa s p h y s i c a l c o l o u r s( i . e .t h e
l o g i c a l t op h y s i c a lc o l o u rt r a n s l a t i o n t a b l ei s b y p a s s e da n dt h e
s p e c i f i e dv a l u ei s u s e dd i r e c t l ya s t h ec o l o u r ) ,t h ec o r r e s p o
i n ga d d e r sa r e$ 2 0f o r t h ef o r e g r o u n d ,$ 3 0f o r t h eb a c k g r o a n d$ 4 0f o r t h e b o r d e r .F o re x a m p l e ,i f y o uu s e dv a l u e s
$ 2 1 , $ 3 2 ,$ 4 6 y o u w o u l da l w a y s h a v ew h i t ec h a r a c t e r so n a
r e db a c k g r o u n dw i t ha b l u e4 0 - c o l u m nb o r d e r , r e g a r d lo f
h o wy o uh a dd e f i n e dy o u rl o g i c a l c o l o u r s .
U s es i D ' ss c o m m a n dt o s e tt h ea p p r o p r i a t el o c a t i o n st o y o u r
d e s i r e dn e wv a l u e s .( D o n ' tf o r g e tt o t y p ei n a p e r i o dw h e ny o u
a r ed o n et o r e t u r nt o t h em a i nS I D p r o m p t . )I t m a ya p p e a rt h a t
t h e l o c a t i o n sg i v e nf o r t h ed e c8 5 v e r s i o na r eo u to f s e q u e n c
I a s s u r e y o u ,h o w e v e r ,t h a tt h e ya r ei n c o r r e c ts e q u e n c e .T h e
i l l u s i o ni s c r e a t e db y t h eo b s c u r em e t h o di n w h i c h m o s to f t h e
C P M + . S Y Sf i l ei s s t o r e do n d i s k .I t i ss t o r e di n 1 2 8 - b y t er e c o r d
i n r e v e r s eo r d e r( i . e .t h ef i r s tr e c o r da f t e rt h ef i l eh e a d e ri s
p l a c e di n t ot h eh i g he n do f t h ec o m p u t e r ' sm e m o r ya n dp r o
c e e d sd o w n w a r d s ) .T h i sc r e a t e sa p p a r e n td i s c o n t i n u i t ii n
p a r t so f t h ef i l ew h i c h h a p p e nt o c r o s so v e ro n eo f t h e 1 2 8 -
b y t e r e c o r db o u n d a r i e s .A s w e s h a l ls e ei n t h en e x te x a m p l
t h i sc a na l s o c r e a t es o m em i n o rc o n f u s i o nw h e nt r y i n gt o
p a t c ha c r o s s as p l i tr e c o r d .
T h es i g n - o nm e s s a g e
A s l i s t e da b o v ei n t h ee x c e r p tf r o mt h eC P / Ms o u r c ec o d e ,
s i g n - o nm e s s a g ei s i n c l u d e df o rd i s p l a y i n go n t h es c r e e nw h e n
C P / Mf i r s tb o o t su p . I ni t s d e f a u l tf o r m ,t h i si s a v e r yb o r i n
T r a n s a c t o r 6 4 A p r i l1 9 8 9 :V o l u m e9 , I s
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 67/84
m e s s a g ec o n s i s t i n go f " C P / M3 . 0. . . "e t c .f o l l o w e db y t h ed a t e .
B e i n gi n t h em o o df o rc u s t o m i z a t i o n ,w e c a nc h a n g et h i st o
a n y t h i n gt h a tw e l i k e ,u p t o a b o u t5 0 b y t e st o t a ll e n g t h .
W o u l d n ' ti t b e m o r ei n t e r e s t i n g f o ry o u rc o m p u t e rt o d i s p l a ya
p e r s o n a lg r e e t i n ge a c ht i m ey o u s t a r t e di t u p ? H o wa b o u t
" G o o dm o r n i n gF r e d ,t h i s i s H A Ls p e a k i n g " ?O r " D o n ' t
b o t h e rm en o w , I ' mt h i n k i n g " ?
T h ep a t c h i n g p r o c e d u r e sf o r t h eD E C8 5 a n d 2 8M A Y8 7 v e r
s i o n s a r es i m p l ea n ds t r a i g h tf o r w a r d .W i t ht h e D E C8 5 v e r
s i o n ,y o uh a v e 5 3b y t e st o p l a y w i t ha t a d d r e s s e s 2 f O 5t o 2 f 3 9 .
( N o ti n c l u d i n ga n i n i t i a lC T R L - Z( $ l a )a t $ 2 f O 4 ,t o c l e a rt h e
s c r e e n b e f o r ep r i n t i n g t h em e s s a g e . )W i t ht h eM A Y8 7 v e r s i o n ,
y o uh a v e 5 4b y t e sf r o m2 e 0 bt o 2 e 4 0 , w i t ht h e c l e a r - s c r e e na t
$ 2 e 0 a .
Y o u rc u s t o m m e s s a g ec a n b ec r e a t e db y u s i n g av a r i a t i o no f
S l D ' ss c o m m a n d .T y p ei n s < s t a r ta d d r e s s >w h e r es t a r ta d d r e s s
s t h ep r e v i o u s l ym e n t i o n e dv a l u ef o r t h eC P / Mv e r s i o ny o ua r e
u s i n g .S i dw i l lr e s p o n dw i t hs o m e t h i n gl i k e :
2 F 0 54 3
a n dw i l la w a i ty o u ri n p u t .I n s t e a do f t y p i n gi n a s i n g l eh e xv a l
u e a s b e f o r e ,y o uc a nt y p ei n y o u rd e s i r e dA S C I Is t r i n g ,p r e c e d
e d b y a q u o t e :
" F r e d ' s c o m p u t e r .G o o dm o r n i n g . . .
a n df o l l o w e db y a R e t u r n .N o t et h a ty o ud o n o t u s ea t r a i l i n g
q u o t e .A n y t h i n ge n t e r e da f t e rt h ef i r s tq u o t ei s i n t e r p r e t e da s
p a r to f t h e s t r i n g .U s i n ga t r a i l i n gq u o t ew i l lc a u s et h i sq u o t e
m a r kt o b e i n c l u d e di n y o u r m e s s a g e .
n a d d i t i o n ,y o us h o u l dn o t u s et r a i l i n gs p a c e su n l e s sy o uw a n t
h e mt o b e i n c l u d e di n y o u r m e s s a g e . S l Dw i l ld i s p l a yt h en e x t
a v a i l a b l em e m o r yl o c a t i o na f t e ry o u rc h a n g ef o l l o w e db y t h e
c u r r e n tv a l u eo f t h i sl o c a t i o na n dt h e i n p u tc u r s o r .T y p ei n a
p e r i o da n dR e t u r ni f y o ua r ed o n eo r m o r et e x ti f y o ua r en o t .
Y o uc a ni n c l u d el i n e f e e d s( h e x$ 0 a ) ,R e t u r n s( h e x $ 0 d ) ,a s
w e l la s o t h e r c u r s o ra n ds c r e e nc o n t r o le s c a p ec o d e si n y o u r
m e s s a g e .T h e s ea r e e a s i e s tt o e n t e rw i t ht h e n o r m a ls c o m
m a n do u t l i n e da b o v ef o rc h a n g i n gt h eh e xv a l u e o fi n d i v i d u a l
b y t e s .( W h e nd o i n gt h i s ,y o us h o u l du s et h ed c o m m a n df r e
q u e n t l yt o k e e pt r a c ko f w h e r ey o us t a n d . )
W h e ny o uh a v ef i n i s h e dy o u rc u s t o mm e s s a g e ,c h e c k y o u r
o v e r a l lw o r kw i t ht h ed c o m m a n dt o s e eh o wm u c hp a d d i n g
y o us h o u l da d d :
d 2 f O 5 ( o r d 2 e 0 bf o r t h e M A Yv e r s i o n )
Y o u rm e s s a g es h o u l db e p a d d e do u tw i t ha s e r i e so f b l a n k s
( $ 2 0b y t ev a l u e s )u n t i ly o ur e a c h$ 2 f 3 a( D E Cv e r s i o n )o r $ 2 e 4 1( M A Yv e r s i o n ) ,a t w h i c hp o i n ty o us h o u l dh a v ea h e x0 b y t e .
T h i s0 b y t ei s v e r yi m p o r t a n ta s i t s e r v e sa s a n e n do f m e s s a g e
m a r k e r .T h ep r i n tm e s s a g er o u t i n et h a tw a sc a l l e da t t h e s t a r t
o f t h es i g n - o nw i l lr e s u m ea t t h ea d d r e s si m m e d i a t e l yf o l l o w
i n g t h i sb y t e .M i s p l a c e m e n to f t h ez e r o b y t et e r m i n a t o rm a y
c a u s ea s y s t e mc r a s h .
U n f o r t u n a t e l y ,t h es i g n - o nm e s s a g ef o rt h eA U G8 5 v e r s i o ni s
s p l i ta c r o s s ar e c o r db o u n d a r y .T h ef i r s th a l fo f t h em e s s a g e
c o n s i s t so f 3 1b y t e s l o c a t e da t $ 2 8 e lt o $ 2 8 f fa n dt h es e c o n d
h a l fi s 2 4 b y t e sl o n ga t $ 2 8 0 0t o $ 2 8 1 7 .T h ei n i t i a lc l e a r -
s c r e e ni s a t $ 2 8 e Oa n dt h e 0 b y t em e s s a g et e r m i n a t o ri s a t
$ 2 8 1 8 .
I t i s e s p e c i a l l yi m p o r t a n ti n t h i sc a s et o k e e pt r a c ko f y o u rb y t e
c o u n tw h e ne n t e r i n gt h en e wm e s s a g eb e c u s ei f y o uo v e r s h o o
t h e a v a i l a b l es p a c e ,y o uw i l lc o r r u p ty o u r s y s t e md i s k .
T h eR U N / S T O Pk e y
M o s tp e o p l ew h oa r e f a m i l i a rw i t ht h eo p e r a t i o no f t h eC 1 2 8
i n n a t i v em o d e( a n df o rt h a tm a t t e r ,m o s to t h e rC o m m o d o r e8 -
b i t c o m p u t e r s )u s et h eR U N / S T O Pk e ya s s o r to f a ' s o f t 'r e s e t
b u t t o nt o h a l tt h ee x e c u t i o no f a B A S I C , o re v e na m a c h i n el a n
g u a g ep r o g r a m .H o w e v e r ,y o um a yh a v ea l s od i s c o v e r e dt h a t
t h i sd o e s n o tw o r ki n C P / Mm o d e .( H o wo f t e nh a v ey o ub e e ni n
C P / Mm o d et r y i n gt o a b o r ta p r o g r a ma n dp r e s s e dR U N / S T O
o u to f h a b i t ? )T h ee q u i v a l e n t g e n e r a lp r o g r a me x i tc o m m a n
a n ds o f tr e s e ti n C P / Mi s C T R L - C . ( T h a ti s , h o l dd o w nt h eC o n
t r o lk e ya n dp r e s st h el e t t e rC k e ya t t h es a m et i m e . )
T h i sn e x tp a t c hm o d i f i e st h ek e y b o a r dd e c o d i n gt a b l e s t oa s s i g n
a v a l u eo f C T R L - C( h e x$ 0 3 )t o t h eR U N / S T O Pk e y .T h ep a t c h
p o i n ti s t h es a m ef o ra l l t h r e ev e r s i o n so f C 1 2 8C P / M :$ 0 5 8 c .
C h a n g et h eb y t ea t t h i sl o c a t i o nf r o m 0( r e p r e s e n t i n gt h ee q u i v a
l e n to f n o a c t i o n )t o 3 ( r e p r e s e n t i n ga C T R L - C ) .T h a t ' sa l lt h e r ei s
t o t h i sp a t c h .N o ww h e ny o up r e s sR U N / S T O Pi n C P / Mm o d e ,i t
w i l lb e t h es a m ea s p r e s s i n gC T R L - Ct o e x i ta p r o g r a m .
T h eR A Md i s k
T h eA U G8 5 C P / Mv e r s i o nd o e sn o ts u p p o r tt h eR A Md i s k ,s o i t
w i l ln o tb e d i s c u s s e df u r t h e rf o rt h i st o p i c .
A ) T h ed i s kl a b e l :C P / Mh a s a c o n v e n i e n tm e t h o do f a s s i g n i n
a n a m e( o r v o l u m el a b e l ) t oa g i v e nd i s kt o h e l py o uk e e p
t r a c ko f w h i c hd i s ki s w h i c h .( T h i si s s i m i l a rt o t h ec o n v e n t i o
o f n a m i n ga C o m m o d o r eD O Sd i s kd u r i n gf o r m a t t i n g ,e x c e p t
t h a ti t c a n b ed o n ea t a n yt i m e . )T h en a m ei s a s s i g n e du s i n g
t h eC P / M S E T . C O Mu t i l i t y .
T h el a b e li s r e c o r d e da s a s p e c i a le n t r yi n t h ed i s kd i r e c t o r y
w h i c hi s n o r m a l l yi n v i s i b l e .( Y o uc a n n o ts e e t h ev o l u m el a b e l
w h e ny o ud o a D I Rc o m m a n df o rt h ed i s kd i r e c t o r y . )C e r t a i n
o p e r a t i n gs y s t e me x t e n s i o n sm a k eu s e o ft h e d i r e c t o r yl a b e la s
a w a yo f t e l l i n gw h i c hd i s ki s c u r r e n t l yi n y o u rd r i v e .I t c a n
a l s ob e a s i m p l em e t h o do f ' p e r s o n a l i z i n g 'y o u rd i s k s .
S o f a rs o g o o d ,o r a t l e a s to n ew o u l dt h i n ks o .B u t- a n dh e r e
c o m e st h ec r u n c h e r- y o us h o u l db e w a r yo f a s s i g n i n ga n a m e
T r a n s a c t o r 6 5 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 68/84
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 69/84
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 70/84
C o r r e c t i n gb u g s
T h i sf i n a lp a t c h c u r e s ab u gi n t h eA U G8 5 v e r s i o nw h i c hp r e
v e n t sy o u f r o me x e c u t i n gc u s t o m 8 5 0 2 m a c h i n el a n g u a g er o u
t i n e sf r o mw i t h i n C P / M .( Y e sV i r g i n i a ,y o uc a ns w i t c ht h e8 5 0 2
o n f r o mw i t h i nC P / Mm o d ea n de x e c u t e8 5 0 2 m a c h i n l a n
g u a g ep r o g r a m s ! )T h ee r r o ri s a t $ 5 c a bw h i c he n d su p i n t h e
B I O S8 5 0 2p o r t i o no f t h eC P / Mo p e r a t i n g s y s t e m .C h a n g et h i s
b y t ef r o ma $ c 3t o a $ 6 ca n dy o ua r eo f ft o t h e r a c e sw i t h B If u n c t i o n 3 0 ,g r o u p4 , s u b f u n c t i o n9 " U s e rc a l lt o 8 5 0 2C o d
R o u t i n e "( d e s c r i b e do n p a g e7 0 0a n d7 0 1 o f t h e C 1 2 8P r o
g r a m m e r sR e f e r e n c eG u i d e ) .T h e8 5 0 2c o d ea t t h i sl o c a t i
s h o u l db e J M P( F D 0 5 ) ,b u tt h e$ 6 cf o r t h eJ M Pi n s t r u c t i o nw a s
s o m e h o ws c r a m b l e di n t oa $ c 3b y t h e c r o s sa s s e m b l e ru s e dt o
c r e a t e t h er o u t i n e .
C l o s i n gu p
N o wt h a ty o uh a v e c o m p l e t e da l l o f t h ep a t c hw o r ko n y o u r
s y s t e md i s k ,t h el a s tt h i n gt o d o i s t o s a v e ac o p yo f i t . T h i si s
d o n ew i t hS l D ' sw c o m m a n d :
w c p m + . s y s , 1 0 0 , z z z z
w h e r ez z z zi s t h e a d d r e s st h a ty o uc o p i e dd o w nf r o mS l D '
s i g n - o ns c r e e na t t h eb e g i n n i n g o ft h ep r o c e s s .T o r e f r e s hy o u
m e m o r y ,i t s h o u l db e 5 d 0 0f o r t h eA U G8 5 v e r s i o n ,6 4 0 0f o r
t h eD E C8 5 v e r s i o n o r6 3 0 0f o r t h eM A Y8 7 v e r s i o n .A f t e rS I D
h a sr e w r i t t e n t h ef i l e ,i t s h o u l dd i s p l a ya m e s s a g es i m i l a rt o :
y y y y hr e c o r d ( s )w r i t t e n
w h e r e y y y yh a s a v a l u e o f0 0 B 8f o rt h eA U G8 5 v e r s i o n ,0 0 C
f o r t h eD E C8 5 v e r s i o n ,o r 0 0 C 4f o rt h eM A Y8 7 v e r s i o n .A f t e
y o ug e tt h i sm e s s a g e ,y o uc a ne x i tS I Dw i t ha C T R L - C .
T o s e et h ee f f e c to f y o u rc h a n g e s ,y o u m u s t d oa c o l ds y s t e
r e b o o t( i . e .w i t ht h em o d i f i e dC P M + . S Y Sd i s ki n d r i v e A : , p
C T R L - < E n t e r >o r t h er e s e tb u t t o n ) .W h e nC P / Mc o m e sb a c k
o n ,y o u r c h a n g e ss h o u l db e i n f o r c e .
( I fb y s o m ec h a n c ey o uh a v em a d ea n e r r o ri n t h ep a t c h e s ,a n d
y o uc a n n o tg e tC P / Mt o r e b o o to r i t d o e ss o m e t h i n gu n e x p e
e d , i t i s p r o b a b l ye a s i e r t os t a r tw i t h af r e s hc o p yo f t h eo l d
u n m o d i f i e d C P M + . S Y Sf i l er a t h e rt h a nt r y i n gt o f i xy o u rm o d i
f i e do n e .I t i sa l s ow i s et o w a i t as h o r tt i m eb e f o r ey o uc o p y
y o u rm o d i f i e dC P / Ms y s t e mt o y o u r b o o td i s k st o c h e c kt h a t
y o uh a v en o t c r e a t e da n y ' h i d d e n 'b u g sb y y o u rp a t c h i
a t t e m p t s . )
^ ^ N e wB y t ev a l u e A t f i r s tg l a n c e ?t h i sa r t i c l em a ys e e mt Q s u g g e s t af o r m i d a
a u g8 5 d e c8 5 M A Y8 7 t a s k ,e s p e c i a l l yf o rt h en o v i c eC P / M p r o g r a m m e r .H o w e v e ri t
i s f u l l yr e c o g n i z e dt h a tn o te v e r y o n ew i l lw a n tt o m a k ea l lo f
1 4 0 4 2 1 6 5i f O 8 o o t h ec h a n g e sm e n t i o n e d a b o v eb u ta c o m b i n a t i o no f a f e wo f
1 4 0 5 2 1 6 6 i f0 9 8 6 t h e mc a n a d ds o m en i c ec u s t o mt o u c h e st o y o u r C P / Me n v i r o
1 4 0 6 2 1 6 7 l f o a o i r n e n t .I n a d d i t i o n , t h e r e a r ep r o b a b l ym a n ym o r ec h a n g e st h a t
1 4 1 2 2 1 7 3 i f 1 6 " m g 1 5 8 1( e n t e ra s t e x ts t r i n g )c o u l db e m a d ei n t h ef o r mo f p a t c h e s .I l e a v e t h e s et o o t h e
r e a d e r st o f i g u r eo u t . q
c o m m a n d . T h eC C Pp r o m p tt a k e st h e f o r mo f " { u s e rn u m
b e r )[ d r i v el e t t e r } > " ( s u c ha s 3 M > ) ,w h e r eu s e rn u m b e ra n d
d r i v el e t t e rr e p r e s e n tt h e " c u r r e n t l yl o g g e d "u s e r a r e a( 3 i n
t h i sc a s e )a n dd i s kd r i v e( M :i n t h i s c a s e ) .W h e ny o uf i r s tb o o t
u p , t h i si s n o r m a l l ys e t t o u s e r a r e a0 o n d r i v eA : ,g i v i n gt h e
f a m i l i a rA >p r o m p t .I n s o m ec a s e s ,s u c ha s w h e ny o uu s eo n e
d i s kd r i v et o b o o tf r o m ,b u ts t o r em o s to f y o u rp r o g r a m so n a
d i f f e r e n td r i v e ,y o um a yw i s ht o c h a n g et h i sd e f a u l ts e t t i n g t o
a v o i dh a v i n gt o c h a n g et h e d r i v ea s s i g n m e n te x p l i c i t l ye a c ht i m ey o ub o o tu p .
T h ed e f a u l t d r i v eo n a c o l db o o ti s c o n t r o l l e db y t h eb y t ea t
$ 1 2 2 ff o r t h eD E C8 5 a n dM A Y8 7 v e r s i o n sa n da t $ 0 e 2 ff o r t h e
A U G8 5 v e r s i o n .T h ev a l u eo f t h i sb y t ei s 0 f o rd r i v eA : , 1 f o r
d r i v eB : ,e t c . ,u p t o ff o rd r i v eP : . ( T h i sb y t e ,w h i c he n d su p a t
o f f s e t$ 1 3o f t h es y s t e mc o n t r o lb l o c k( S C B ) ,i s a l s ou s e db y
t h e C C Pd u r i n gt h e w a r mb o o tr o u t i n ef o r e s t a b l i s h i n g t h e
d e f a u l t d r i v ea f t e re x i t i n gf r o ma t r a n s i e n tp r o g r a m .T h ev a l u e
a t t h i sl o c a t i o ni s u p d a t e de a c ht i m ey o ue x p l i c i t l ys e t t h e
d r i v ef r o mt h e C C Pb y i s s u i n g a< d r i v el e t t e r > :< R e t u r n >
c o m m a n d .T h i sp a t c ho n l ys e t st h e i n i t i a lv a l u eu s e da f t e ra
c o l db o o t . )
T h ed e f a u l tu s e r a r e ao n a c o l db o o ti s c o n t r o l l e db y t h eb y t e
a t $ 1 2 3 0f o rt h eD E C8 5 a n dM A Y8 7 v e r s i o n sa n da t $ 0 e 3 0f o r
t h eA U G8 5 v e r s i o n .T h ev a l u e o ft h i sb y t er a n g e sf r o m 0f o r
u s e r a r e a0 t o f f o ru s e r a r e a1 5 .I t e n d su p a t o f f s e t$ 1 4o f t h e
S C Ba n di s a l s ou s e db y t h eC C Pd u r i n ga w a r mb o o t .
E x t e n d e d1 5 8 1s u p p o r t
I n V o l u m e8 , I s s u e0 3 o f T r a n s a c t o r( N o v e m b e r1 9 8 7 ) ,I p r e
s e n t e d a p a t c hf o r t h eA U G8 5 a n dd e c8 5 v e r s i o n so f C 1 2 8
C P / Mt h a tw o u l da l l o wf u l lu s e o ft h e c a p a c i t yo f t h e 1 5 8 1
d r i v e .A s I m e n t i o n e da t t h e t i m e ,m y 1 5 8 1d i s kf o r m a tw o u l d
n o tb e c o m p a t i b l e w i t ht h e" o f f i c i a l "C o m m o d o r ev e r s i o n( i . e .
t h e M A Y8 7 C P / Mr e l e a s e ) .S i n c es o m eo f y o u m a yh a v e
o b t a i n e dt h e m a y8 7 C P / Mr e l e a s es i n c em a k i n gm y i n i t i a l
p a t c h ,y o um a yb e w o n d e r i n gh o wt o a c c e s st h e 1 5 8 1d i s k s
m a d ew i t hm yv e r s i o n .F e a rn o t ,t h en e x t p a t c ha l l o w st h em a y
8 7 v e r s i o nt o r e a da n dw r i t et h e s ee a r l y1 5 8 1d i s k s , i na d d i t i o n
t o t h e" o f f i c i a l "1 5 8 1d i s k s .( T h ep a t c hp o i n t sa r ea l s or e p e a t
e d f o rt h eA U G8 5 a n dd e c8 5 v e r s i o n sf o rt h e b e n e f i to f t h o s e
w h om i s s e dt h e mt h e f i r s tt i m ea r o u n d . )C h a n g et h e l i s t e d
b y t e st o t h e " n e wb y t ev a l u e "t o c o m p l e t et h e p a t c h .T h i s
p a t c hf i d d l e sw i t ht h e d i s kp a r a m e t e rt a b l ee n t r i e sf o r t h e
E P S O NQ X - 1 0d i s kt y p e ( 1 0x 5 1 2s e c t o r s ) ,s o y o uw i l ll o s e
c o m p a t i b i l i t yw i t ht h i st y p e ,b u t g a i na n 8 0 0 Kd i s ki n s t e a d .
T r a n s a c t o r 6 8 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 71/84
W h a t ' sR e a l l yI n s i d e
T h eC o m m o d o r e6 4 ?
b y M i l t o nB a t h u r s t
B o o kr e v i e wb y J i mB u t t e r f i e l d
P u b l i s h e db yD a t a C a p ,1 2 T r i x h a l ,B - 4 5 4 5F e n e u r ,B e l g i u m
A v a i l a b l ei n N o r t hA m e r i c af r o m :
S c h n e d l e rS y s t e m s
D e p t .9 4 , 2 5E a s t w o o dR d .
P . O .B o x5 6 9 4
A s h e v i l l e ,N C 2 8 8 1 3
7 0 4 )2 7 4 - 4 6 4 6
2 4 2p a g e s ,$ 2 9 . 9 5U Sp o s t p a i dU S A
T h i sb o o ki s a c o m p l e t ea n dr e l a t i v e l yg o o dd i s a s s e m b l y ,
w i t hc r o s s - r e f e r e n c em a t e r i a l ,o f t h eR O Mo f t h eC o m m o d o r e
6 4 .T h et i t l e i sm i s l e a d i n g ,s i n c e t h e r e a r em a n yo t h e r t h i n g s
n s i d e t h eC o m m o d o r e6 4 t h a tc o u l db e d o c u m e n t e d :I / O
c h i p s ,s p e c i a l i z e dR A Ma r e a s ,a n dp o r t s ( p i nc o n n e c t i o n sa n d
e v e l s ) .
B a r eb o n e sd i s a s s e m b l y
T h eb o o kc o n t a i n sl i t t l ee l s ea p a r tf r o mt h eR O Md i s a s s e m b l y .
T h ea u t h o r h a sd o n eh i s j o b c a r e f u l l y ;d a t at a b l e sa r e n o t
c o n f u s e da s c o d e ,a n dt h e t r i c k yB I T e n t r ym a s k sa r ec a u g h t
w e l l ." I m m e d i a t e "d a t a ,w h e r en u m e r i cv a l u e sm i g h ts o m e
i m e sb e c o n f u s e d w i t ha d d r e s s f r a g m e n t s ,a r e g e n e r a l l y
g o o d .
A d i s a s s e m b l yi s n o ti n i t s e l fe x t e n s i v ed o c u m e n t a t i o n o fR O M .
W h a tw o u l db e n e e d e dt o d o t h ej o bb e t t e ri s d e t a i l e dr e g i s t e r ,
m e m o r ya n dc o n d i t i o nc o d er e q u i r e m e n t sf o r t h ev a r i o u sr o u
i n e sa s t h e ya r ee n t e r e da n da s t h e ye x i t .F o re x a m p l e ,h e r e ' s
d o c u m e n t a t i o no f s u b r o u t i n eC H R G E T :B e f o r ec a l l i n g ,a p o i n t e r
( t x t p o i n t e r ,a d d r e s sh e x7 A / 7 B )n e e d st o b e p o i n t i n ga t t h e
a d d r e s st o b e s c a n n e d ;n o s p e c i a lr e g i s t e ro r f l a gs e t u pi s n e e d
e d .W h e nt h es u b r o u t i n er e t u r n s , r e g i s t e r sX a n dY w i l ln o tb e
d i s t u r b e d ;r e g i s t e rA w i l lc o n t a i nt h en e x tc h a r a c t e rf r o mt h e
t e x ts t r e a m ;T X T P O I N T E Rw i l ln o wp o i n ta t t h a tc h a r a c t e r ,f l a g s
Z , C , a n dN w i l lb e a f f e c t e da c c o r d i n gt o t h en a t u r eo f t h e
c h a r a c t e r .
I f y o ud o n ' th a v ed e t a i l s l i k et h o s eo f t h ea b o v ee x a m p l e ,y o uw i l l
n e e dt o d o a g o o dd e a lo f r e s e a r c h b e f o r e u s i n gs u c h as u b r o u t i n
f r o my o u ro w np r o g r a m .T h e b o o kd o e s n ' t s e es u c hd e t a i la s p a r t
o f i t st a s k ;d o n ' te x p e c tt o g e tt h a ti n f o r m a t i o nh e r e .
T h e b o o kd o c u m e n t sR O M ,n o t R A M . . . y e ts o m e t i m e sR A M
c o n t a i n si m p o r t a n tc o d e .F o re x a m p l e ,C H R G E T , m e n t i
a b o v e ,i s i n R A M ;a t s t a r t u pt i m e ,i t ' s c o p i e df r o mE 3 A 2i n
R O Ma n dp l a c e da t $ 0 0 7 3i n r a m .I t ' sa n i m p o r t a n ts u b r o u
t i n et h a ti s u s e df r e q u e n t l yb y B A S I C .B u ti f , a s y o ul o o k
t h r o u g ht h eb o o k ,y o us e eJ S R$ 0 0 7 3 ,n o a m o u n to f f r e n z i e d
f l i p p i n go f p a g e sw i l ls h o wy o ua s u b r o u t i n ea t t h a ta d d r e s s .
W h i l et h ec o d ei s a n n o t a t e d- a b o u t8 0 p e r c e n to f t h em a c h i n e
l a n g u a g ei n s t r u c t i o n s c a r r ya b r i e fn o t e- i t d o e s n ' te x p l a i n ,
a n dd o e sn o ts e tt h es t a g e .W h e ny o ul o o ka t t h em a t hs u b r o u
t i n e s ,y o u m u s tk n o wi n a d v a n c eh o wf l o a t i n gp o i n tn u m b e r s
a r es e tu p o nt h e 6 4 .Y o um u s tk n o wt h a tf l o a t i n gp o i n tr e g i s
t e r sw i l lb e p r e - l o a d e dw i t ht h e v a l u e st o b e h a n d l e d .W h e n
y o ul o o ka t t h ec o d ef o ra c o m m a n ds u c ha s L I S T ,y o um u s t
k n o wt h a t ,u p o ne n t r y ,t h eC f l a gw i l lb e c l e a ri f l i s ti s f o l
l o w e d b ya n o n - n u m e r i cc h a r a c t e r ,a n dt h eZ f l a g w i l lb e s e ti f
L I S Ts t a n d sa l o n e .T h eb o o kw o n ' tt e l l y o ua n yo f t h i s ;i t
a s s u m e sy o uk n o wi t i n a d v a n c e .
C r o s sr e f e r e n c e
A u s e f u lp a r to f t h eb o o k- n o tr e a d i l ya v a i l a b l ee l s e w h e r e- i s
a c r o s s - r e f e r e n c eo f t h eR O Mc o d e .T h i si s c a r e f u l l yd o n e , b u t
i t ' s f r a g m e n t e d :j u m p s ,b r a n c h e s ,s u b r o u t i n ec a l l s ,v e c t o r s ,
" e x t e r n a l "a d d r e s s e s ,a n dz e r op a g ea d d r e s s e sa r el i s t e ds e p a
r a t e l y ,e a c hw i t h as p e c i a lp r e f i x ;a n dt o a d dt o t h e p r o l i f e r
t i o no f c r o s s - r e f e r e n c ee n t r i e s ,t h e B A S I Ca n dK e r n a lR O M s
e a c hh a v et h e i ro w ns e to f l i s t i n g s .
F r a g m e n t e da d d r e s s e sa r eg e n e r a l l yh a n d l e dw e l l ,a n da r ec a r
r i e dt h r o u g hc o r r e c t l yt o t h e c r o s s - r e f e r e n c ea r e a .F o re x a m p l e
. . . c o n t i n u e do np a g e7 1
T r a n s a c t o r 6 9 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 72/84
M a c r oS e t1 f o rC 6 4 / C 1 2 8
f r o mX y t e c
R e v i e wb y M . G a r a m s z e g h y
A v a i l a b l ef r o m :
X y t e c
1 9 2 4D i v i s a d e r o
S a nF r a n c i s c o ,C A 9 4 1 1 5
$ 2 9 . 9 5 U S ,$ 5 . 0 0S & H ,a d d$ 1 . 8 0 f o rC a n a d a
M a c r oS e t1 f r o mX y t e ci s a c o l l e c t i o no f s o m e3 6 r e a d yt o
u s e a s s e m b l e rs o u r c ec o d es u b r o u t i n e sa n d 6 0a s s e m b l e r
m a c r o s .I t i s c u r r e n t l y a v a i l a b l ef o r t h e M e r l i na n d C o m
m o d o r eA s s e m b l e rD e v e l o p e rS y s t e m ,w h i l ev e r s i o n s f o r o t h e r
p o p u l a r a s s e m b l e rf o r m a t s ( s u c ha s P A Lo r B u d d y )a r e s a i dt o
b e f o r t h c o m i n g .I t p r o v i d e s ar e a d i l y a v a i l a b l ea n de a s yt o u s e
s o u r c eo f a s s e m b l e rs o u r c ec o d ef o r m a n yc o m m o nt a s k s
f a c e db y p r o g r a m m e r s .
M a c r ob a s i c s
F o rt h o s ew h oa r ei n t e r e s t e d ,a n a s s e m b l e rm a c r oi s r e a l l y j u s t
a s i m p l ew a yt o i n s e r ta l e n g t h y p i e c eo f s t a n d a r d i z e d s o u r c e
c o d ei n t oy o u rp r o g r a m b ys p e c i f y i n ga n a m ew i t hp e r h a p sa
f e wp a r a m e t e r s .( N o ta l l a s s e m b l e r ss u p p o r tm a c r o s , b u tm o s t
o f t h e b e t t e ro n e sd o . )E a c ht i m et h em a c r oi s c a l l e di n y o u r
a s s e m b l e rs o u r c e c o d e ,a f u l lc o p yo f t h er e p r e s e n t e dc o d ei s
i n s e r t e di n t ot h eo b j e c t c o d e .
F o re x a m p l e ,i f y o uw a n t e dt o o p e na d i s kf i l e ,y o un o r m a l l y
h a v et o g o t h r o u g ha s e r i e so f s t e p su s i n gt h eK e r n a lS E T N A M ,
S E T L F S( s e t b a n ko n t h eC 1 2 8 )t h e nO P E N .I n s t e a do f m a n u a l
l y r e p e a t i n gt h e s es t e p se a c ht i m ey o uw a n t e dt o o p e na f i l e ,
y o uc o u l ds e tu p a m a c r o( l e t ' sc a l li t D O P E N )w h i c hc o n t a i n e d
a l l t h e s es t e p s .Y o u ra s s e m b l e r s o u r c ec o d em a yt h e nc o n t a i n
s o m el i n e sw h i c hm a yl o o k s o m e t h i n gl i k e( r e m e m b e r ,t h e
s y n t a xf o rv a r i o u sa s s e m b l e r si s d i f f e r e n t ) :
D O P E N ' f i l e n a m e ' , f i l e # , d e v i c e * , c h a n n e l *
w h e r ef i l e n a m e ,f i l e # ,d e v i c e #a n dc h a n n e l #a r ey o u rp a r a m e
t e r sf o r t h eg i v e nf i l e .N o w ,e a c ht i m ey o u ra s s e m b l e rs e e st h i s
l i n e ,i t t a k e s t h es o u r c ec o d e( w h i c hm a yb e s e v e r a lh u n d r e d
l i n e sl o n g ) a s s o c i a t e dw i t ht h e m a c r o D O P E N ,i n s e r t st h e
p a r a m e t e r sa t t h ea p p r o p r i a t es p o t ,t h e ni n s e r t st h ec o d ei n t o
y o u rm a i np r o g r a m .B yk e e p i n gs e t so f o f t e nu s e dm a c r o si n
s t a n d a r dr e f e r e n c el i b r a r i e s ,y o uc a ng r e a t l yr e d u c et h ee f f o r
i n w r i t i n gn e wa s s e m b l e r p r o g r a m s .
T h el i b r a r i e s
M a c r oS e t1 d o e sj u s tt h a tf o ry o u .M a c r o sa n ds u b r o u t i n e a r e
p r o v i d e df o r m o s th o u s e k e e p i n gf u n c t i o n ss u c ha s s c r e ep r i n t i n g ,k e y b o a r di n p u t ,d i s kf i l eI / O ,e t c .A s e to f E Q U A T E f o r
t h es t a n d a r dK e r n a le n t r yp o i n t sa n do t h e rm e m o r ya n ds y s t e
v a l u e s( c o l o u rc o d e s )i s a l s op r o v i d e di n o n eo f t h el i b r a r i e
( H o w e v e r ,c o n s p i c u o u sb y i t s a b s e n c ei s s u p p o r tf o rs o m eo f
t h e p e r i p h e r a l sa n dp r o g r a m m i n ga r e a sm a n yp e o p l en e e dh e l p
w i t hs u c ha s s o u n d ,g r a p h i c s ,m i c e a n dR A Me x p a n s i o nu n i t s
I n a d d i t i o n ,a l t h o u g ht h ed i s kl a b e ls t a t e s" f o rt h eC o m m o d
6 4 a n d1 2 8 " ,t h e r ei s n o s u p p o r tf o rt h eC 1 2 88 0 - c o l u m nv d c
c h i p ,b a n ks w i t c h i n go r t h eC 1 2 8 ' se n h a n c e dK e r n a ls e t . )
T h e m a c r o s a n ds u b r o u t i n e sa r e d i v i d e di n t o s i xl i b r a r i
w h i c hc a nb e c o m b i n e dw i t hy o u ro w na s s e m b l e rs o u r c ec o d e
( O n ev e r yn i c et o u c hi s t h a tt h em a n u a ls t a t e st h a tp r o g r a
c o n t a i n i n gc o d ed e v e l o p e df r o mt h e X y t e cr o u t i n e sm a yb e
f r e e l y d i s t r i b u t e dw i t h o u ta t t r i b u t i o n .A f t e r r e a d i n gt h ec o n d i
t i o n so f m a n yc o m p i l e r s ,c o d el i b r a r i e s ,e t c .t h a tb a s i c a l l ys t a t e
y o u c a n n o ts e l l a n y p r o g r a md e v e l o p e du s i n gs y s t e mX Y Z
w i t h o u tt h ep e r m i s s i o n o fM e g aX Y ZC o r p . ,t h i si s t r u l ya w e l
c o m er e l i e f ! )I n t h eC A D - 6 4v e r s i o n ,w h i c hI t e s t e d ,t h e
l i b r a r i e sw e r es u p p l i e da s S E Q u e n t i a l d a t af i l e s .( O t h e rv e r
s i o n so f M a c r oS e t 1 w o u l dp r e s u m a b l y h a v el i b r a r yf i l e s
c o m p a t i b l e w i t ht h eg i v e na s s e m b l e r . )
T h eS T A R Tl i b r a r yc o n t a i n st h eK e r n a la n ds y s t e mE Q U A T
a s w e l la s g e n e r a lw o r ka r e a s ,p s e u d o1 6 - b i t r e g i s t e h a n
d l i n gr o u t i n e sa n dg e n e r a lh o u s e k e e p i n g( i . e .s c r e e nc l e a r i n
c u r s o rp o s i t i o n i n g ,e t c ) .T h ei n p u tl i b r a r yc o n t a i n sa f a i r l
s o p h i s t i c a t e dm a c r of o r k e y b o a r di n p u t .T h eB S A Ml i b r a r
h a sf i l eh a n d l i n gm a c r o s a n ds u b r o u t i n e s .A r i t hc o n t a i n a
v a r i e t yo f m a t ha n d n u m b e rc o n v e r s i o nr o u t i n e s .T h e
l i b r a r i e sD Y D U M Pa n dT R A C Ec o n t a i nd e b u g g i n ga n dm o n i t o
i n gt y p er o u t i n e s .
T h e s el i b r a r i e sc o n t a i nq u i t ea n u m b e ro f t e s t e da n d
d e b u g g e da s s e m b l e rr o u t i n e s ,s o m ep e r h a p so f m o r eu s et o
t h ee v e r y d a yp r o g r a m m e rt h a no t h e r s ,b u ta l l w e l lt h o u g
o u ta n de a s yt o u s e .
T r a n s a c t o r 7 0 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 73/84
S t a r tl e t sy o uu s ep s e u d o1 6 - b i t r e g i s t e r sf o rm a t h ,a d d r e s s
n ga n dg e n e r a lp u r p o s e s .I t d o e st h i sb y s e t t i n gu p a s e r i e so f
o w b y t e ,h i g hb y t em e m o r ys t o r a g ep a i r sw h i c hc a n b e
d i r e c t l ym a n i p u l a t e db y a n u m b e ro f t h em a c r o sa n ds u b r o u
i n e s .T h i sf e a t u r em a k e s1 6 - b i tm a t h o nt h e8 - b i t6 5 x xp r o c e s
s o ra r e a ls n a pt o u s e .
W h a t ' su p d o c s
T h e d o c u m e n t a t i o n( o r P r o g r a m m e r ' sR e f e r e n c eG u i d e ,a s
h e yc a l li t ) i s a f a i r l ye x t e n s i v ed e s c r i p t i o no f t h e a v a i l a b l e
m a c r o s a n ds u b r o u t i n e sg r o u p e db y l i b r a r ym o d u l e ,a s w e l la s
n e c e s s a r yb a c k g r o u n di n f oo n h o wt h e l i b r a r i e si n t e r a c tw i t h
e a c ho t h e r .A l s oi n c l u d e da r es o m eo f t h e b a s i cc o n c e p t sa n d
a s s u m p t i o n s u s e di n d e v e l o p i n gt h e r o u t i n e s f o re a c hl i b r a r y .
T h em a n u a li s i n d e x e db y r o u t i n ef u n c t i o na s w e l la s b y g e n e r
a l s u b j e c t ,a n di n c l u d e sa l i s t i n go f k e y w o r d s a n dr e s e r v e d
w o r d su s e db y t h ev a r i o u sr o u t i n e s .
T h ee n t r yf o re a c hm a c r oo r s u b r o u t i n ei s a c c o m p a n i e db y a
h o r td e s c r i p t i o no f i t s f u n c t i o n , s p e c i a lp r e p a r a t i o nr e q u i r e d ,
w h i c hr e g i s t e r sa r e a f f e c t e da n d t h e s y n t a x .M o s ta r e a l s o
a c c o m p a n i e d b ya s h o r te x a m p l eo f t h e i ru s a g e .I f I h a do n e
c o m p l a i n ta b o u tt h e m a n u a l ,i t w o u l db e t h a tm o s to f t h e
e x a m p l e sa r et o ob r i e fo r v a g u et o g e ta r e a l l yg o o di d e ao f
w h a tt h e ya r e t r y i n gt o d o .
O n t h ed o w ns i d e ,t h es u p p l i e d s o u r c ec o d ei n t h el i b r a r i e si s
v e r ys p a r s e l yc o m m e n t e d .I t s e e m st h a tt h e d e g r e eo f c o m
m e n t i n gi s i n v e r s e l y p r o p o r t i o n a lt o t h ec o m p l e x i t yo f t h er o u
i n e s .T h ee a s yo n e sa r e e x p l a i n e d ,w h i l et h e c o m p l e xo n e s
h a v el i t t l eo r n o c o m m e n t st o t h e m .I t i s o f t e nv e r yd i f f i c u l tt o
i g u r eo u tw h a ti s g o i n go n .T h i si s e s p e c i a l l yi m p o r t a n ti f y o u
w a n tt o m o d i f ya n yo f t h er o u t i n e s .( I t i sa l w a y sn i c et o u n d e r
s t a n dw h a t y o ua r e t r y i n gt o c h a n g e ,j u s tt o b e s u r et h a ty o u
a r en o tr e m o v i n gs o m e t h i n gv i t a l ! )
A f e wd e t a i l e de x a m p l e sw o u l da l s ob e n i c e .H o wa b o u ta
c o m p l e t e s a m p l es o u r c ec o d ep r o g r a mt h a tc a l l sa n u m b e ro f
h em a c r o sa n ds u b r o u t i n e st o d e m o n s t r a t et h e i rp r o p e r u s a g e ?
S o m e t h i n ga s s i m p l ea s a s e q u e n t i a lf i l er e a d e rw o u l dm a k e
u s eo f a f a i rn u m b e ro f t h em a c r o s a n ds u b r o u t i n e s .
P a r t i n gw o r d s
A l lt h i n g sc o n s i d e r e d ,I w o u l dr e c o m m e n d M a c r oS e t1 f o r
a l l l e v e l so f a s s e m b l e rp r o g r a m m e r ;a l t h o u g hi t w o u l dp r o b a
b l yb e o f m o s tu s et o t h ei n t e r m e d i a t el e v e lp r o g r a m m e rw h o
s c o m p e t e n te n o u g ht o u n d e r s t a n dt h eb a s i cc o n c e p t s o ft h e
m a c r os y s t e m , b u t n o tq u i t eu p t o w r i t i n gr e a m so f s o u r c e
c o d e .B e g i n n e r ss h o u l db e a b l et o f o l l o wa l o n gw i t ht h ea i d
o f a g o o d b o o ko n a s s e m b l yp r o g r a m m i n g ,w h i l ea d v a n c e d
u s e r sm a yl i k ei t f o r t h e' w h yr e - i n v e n t t h ew h e e l 'f e e l i n g
t h a ti t p r o v i d e st h e m .
I f a v e r s i o n o fM a c r oS e tI i s n o ta v a i l a b l e f o ry o u rf a v o u r i t e
a s s e m b l e r ,a n e x p e r i e n c e dp r o g r a m m e rs h o u l db e a b l et o a d a p t
o n eo f t h e e x i s t i n go n e sw i t hl i t t l ed i f f i c u l t y . □
I n s i d et h eC o m m o d o r e6 4 . . . .f r o m p a g e6 9
L D A# $ 7 1 ,l d y # $ A 9i s c o r r e c t l yt r a n s l a t e da s L D A< T A 3 7 1 ,
l d y> T A 3 7 1. . . w e l l ,a l m o s tc o r r e c t l y ,s i n c em o s ta s s e m b l e r
w o u l dc a l lf o r t h e " # "s y m b o lt o b e r e t a i n e d .I n d e e d ,t h a ti m m e
d i a t es y m b o li s l a c k i n gt h r o u g h o u tt h ed i s a s s e m b l y .
E v e nt r i c k i e rc o d ei s h a n d l e di n t e l l i g e n t l y .T h eI R Qv e c t o rt a b l ea t
$ F D 9 Bs e e m sn e v e rt o b e r e f e r e n c e d ,b u t t h e b o o kc o r r e c t l yd e d u c e st h a ti t ' sr e a c h e d w i t ha n o f f s e tf r o m$ F C B D ,t h u s :L D A
T D A F 9 B - 8 , X . .L D AT D A F 9 B - 7 , X .B u tt h ea u t h o rd i d n ' tm a n a g e
t o u n r a v e la l l t h ec o d i n gp u z z l e s .F o re x a m p l e ,t h e r e ' sa s e e m
i n g l yb a f f l i n gr e f e r e n c et o $ 9 F E A( n o te v e ni n R O M ! )a t a d d r e s s
A F D 6 .N o tu n t i ly o ut r a c kt h ec a l lt o $ A F A 7( f r o m$ A E E E )
w o u l d y o ur e a l i z e t h a tt h ec a l li s m a d ew i t ha v a l u ei nA o f$ B 4o r
g r e a t e r ;t h r o u g hs o m eo d da r i t h m e t i c ,t h i sg e n e r a t e sa v a l u ei n Y
o f $ 6 8o r a b o v e .T h e$ 9 F E Ar e f e r e n c ec o u l dt h e nb e c h a n g e dt o
L D A$ A 0 5 2 - $ 6 8 , Y .A 0 5 2i s t h e t a b l eo f a d d r e s s e sf o rf u n c t i o n
c a l l s ,b u ty o uw o n ' tf i n di t a d d r e s s e da n yo t h e rw a y .
I fy o uk n o wy o u rw a ya r o u n d
R O Mc o d e ,y o u 9I If i n di t a
h a n d y c o m p a c tr e f e r e n c e . . .
O t h e rb o o k s
Y o um i g h t w a n tt o c o n s i d e ro t h e rb o o k si n t h es a m ev e i n ,t o
s u b s t i t u t ef o ro r s u p p l e m e n tt h i si n f o r m a t i o n .T w oo t h e rr e f e r
e n c e sg i v eR O Md e t a i l s .
T h eA b a c u sb o o kT h eA n a t o m yo f t h eC o m m o d o r e6 4 g i v e sa
d i s a s s e m b l yp l u s d i s c u s s i o no f p r o g r a m m i n gc o n s i d e r a t i o
w i t hs e v e r a le x a m p l e so f c o d e .T h ed i s a s s e m b l y( c o n t a i n e
i n a n a p p e n d i xt h a ti s l a r g e rt h a nt h e b o o k ' sm a i nt e x t )i s
c o m m e n t e d ,b u t n o ta s t h o r o u g h l ya s i n W h a t ' s R e a l l yI n s i d e
t h eC o m m o d o r e6 4 ,a n dn o c r o s s - r e f e r e n c ei s s u p p l i e d .
C o m p u t e !b o o k sh a s p u b l i s h e d T o o lK i t :K e r n a la n dT o o lK i t :
B A S I C ,b o t hb y D a nH e e b .T h e s et w ob o o k ss t u d yt h eR O Mo f
t h eC o m m o d o r e6 4 ,a n dt h a to f t h eV I C - 2 0 ,w h i c hh a si d e n t i c a l
l o g i c f l o w ,t o c o n s i d e r a b l ed e p t h .T h ec o d ei s e x t e n s i v e l yd i s
c u s s e d ,n o tj u s tc o m m e n t e d .N o ta l l o f t h eR O Mc o d ei s d i s
c u s s e d ,b u tm o s to f i t i s t h e r e .
S u m m a r y
W h a t ' sR e a l l yI n s i d et h eC o m m o d o r e6 4 i s a c o m p l e t eR O M
l i s t i n g .I f y o uk n o wy o u rw a ya r o u n dR O Mc o d e ,y o u ' l l f i n di t
a h a n d y c o m p a c tr e f e r e n c e .
A l t h o u g ht h ed i s a s s e m b l yc o n t a i n sb r i e fc o m m e n t s ,t h i sb o o k
w o u l db e t o u g hs l e d d i n gf o rl e a r n e r s .I t a s s u m e st h a tt h er e a d
e r k n o w sq u i t ea b i ta b o u tt h e 6 4 ' so r g a n i z a t i o n b e f o r e □
T r a n s a c t o r 7 1 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 74/84
S F XS o u n dE x p a n d e r
S I Dd e t h r o n e d
R e v i e wb y R i c h a r dC u r c i o
S F XS o u n dE x p a n d e ra n dD i s k ,$ 9 0
5 O c t a v ef u l l s i z ek e y b o a r d ,$ 8 0
M I D Ii n t e r f a c e ,$ 5 4
M u s i cM a k e rk e y b o a r do v e r l a y ,$ 1 0 ( C 6 4o n l y )
F MC o m p o s e r a n dE d i t o rd i s k ,$ 3 0
S F XP r o g r a m m e r sR e f e r e n c eG u i d e ,$ 1 0
( A l lp r i c e si n U Sd o l l a r s )
F e a r n& M u s i c ,5 1 9W .T a y l o r # 1 1 4 ,S a n t a M a r i a ,C A ,9 3 4 5 4 .
C a l l( 8 0 0 )4 4 7 - 3 4 3 4 .I n C A ,c a l l( 8 0 5 )9 2 5 - 6 6 8 2 .
O n eo f t h em o r en o t a b l ef e a t u r e so f t h eC o m m o d o r e6 4 h a sb e e n
i t se x c e l l e n ts o u n dg e n e r a t i n gc a p a b i l i t i e s .T h ep o w e r f u lS I Dc h i p ,
c o n t a i n i n gt h r e eo s c i l l a t o r sw i t hf o u rw a v e f o r m se a c h ,f o u r - p a r t
e n v e l o p e s ,a n df i l t e r ,i s a l m o s ta c o m p l e t es y n t h e s i z e ri n a s i n g l e
i n t e g r a t e dc i r c u i t .S i n c et h e i n t r o d u c t i o no f t h eC 6 4 ,s y n t h e s i z e r
t e c h n o l o g yh a s o v e r t a k e na n dp a s s e dS I D .F o rb u i l t - i ns o u n d
g e n e r a t i o n ,h o w e v e r ,f e wp e r s o n a lc o m p u t e r sh a v es u r p a s s e do r
e v e ne q u a l l e dt h eC 6 4 .( I nf a c t ,o n l yt w or e a d i l yc o m et o m i n d .
O n ei s t h eA m i g a ,w i t hf o u r c h a n n e l so f s a m p l e ds o u n d .T h eo t h
e r i s n o ta n A t a r i . )T h eS F XS o u n dE x p a n d e rb r i n g st o t h eC 6 4a
d i f f e r e n tf o r mo f s o u n dg e n e r a t i o n : D i g i t a lF MS y n t h e s i s .
A b r i e fe x p l a n a t i o n
T h ef o u rw a v e f o r m so f S l D ' s o s c i l l a t o r sa r em o r eo r l e s sf i x e d .
T h ef i l t e rc a nb e u s e dt o r e m o v eo r e m p h a s i z eh a r m o n i c so r
o v e r t o n e so f t h ew a v e f o r ma n dt h u ss i m u l a t ev a r i o u sm u s i c a l
i n s t r u m e n t s .T h i s p r o c e s si s c a l l e d' s u b t r a c t i v es y n t h e s i s ' .
A n o t h e rm e t h o do f s o u n dg e n e r a t i o ni n v o l v e s t h ea d d i n g
t o g e t h e ro f h a r m o n i c a l l yr e l a t e ds i n e w a v e si n v a r i n ga m o u n t s .
T h i si s r e f e r r e dt o a s ' a d d i t i v e s y n t h e s i s ' .
F M s y n t h e s i si s a n a l t o g e t h e rd i f f e r e n tp r o c e s s .S o u n d sa r e
c r e a t e db y h a v i n go s c i l l a t o r sf r e q u e n c ym o d u l a t ee a c ho t h e ra t
h i g hr a t e s i nc o m p l e xw a y s .B e i n gm o r et h a nt h eg e n t l eF Mo f
v i b r a t o ,s i d e b a n d sa r eg e n e r a t e d ;a n db y v a r y i n gt h es p e e da n d
d e p t h o fm o d u l a t i o n ,a n dt h e i n t e r c o n n e c t i o n sb e t w e e nt h e
o s c i l l a t o r s ,v e r yc o m p l e xs o u n d sc a nb e g e n e r a t e d .D oa l l t h i s
w i t hd i g i t a lt e c h n o l o g y ,a n dy o uh a v eD i g i t a lF MS y n t h e s i s .
T h i ss a m ep r o c e s si s u s e di n t h ee l e c t r o n i ci n s t r u m e n t sm a d e
b y Y a m a h a ,a n dn o t s u r p r i s i n g l y ,t h e S F XS o u n dE x p a n d e r
e m p l o y sa Y a m a h ai c .
H a r d w a r e
T h eS F Xm o d u l ei s n o t an e wp r o d u c t .I t i s m a n u f a c t u r b y
C o m m o d o r eU Ka n dh a sb e e na v a i l a b l ei n E u r o p ef o rs e v e r a
y e a r s .F e a r n& M u s i ci s n o wi m p o r t i n gS F X m u s i cp r o d u c t st o
t h e U . S .P h y s i c a l l y ,t h eS F XS o u n dE x p a n d e ri s a l a r g i s hc a r
t r i d g e ,r e s e m b l i n gC o m m o d o r e ' s M a g i cV o i c em o d u l e .I t p l u g i n t ot h eC 6 4e x p a n s i o np o r ta n dh a s at r a pd o o rm e c h a n i s f o r
t h e i n s e r t i o no f a c o m p a n i o nM I D Ic a r t r i d g e ,a v a i l a b l es e p a
r a t e l yf o r$ 5 4 .T h es l o t( a n ds o f t w a r e )i s n o t c o m p a t i b l
M I D Ic a r t r i d g e sf r o mP a s s p o r t , S e q u e n t i a l ,a n do t h e r s .O n o n e
s i d eo f t h eS F Xm o d u l ei s a s i n g l eR C Ap h o n oj a c kf o ra u d i
o u t p u t .T h i sc a n b ec o n n e c t e dt o a s t e r e oo r i n s t r u m e n t a
f i e r .A s p e c i a lc a b l e( i n c l u d e d )a l l o w st h es o u n d st o b e p l a y e
o n a t e l e v i s i o nb y r o u t i n gt h es i g n a l i n t o t h eC 6 4a u d i o / v i
c o n n e c t o r .
O n t h e o t h e rs i d eo f t h e S F Xm o d u l ei s a c o n n e c t o rf o r a n
e x t e r n a lm u s i ck e y b o a r d ,a l s o a v a i l a b l es e p a r a t e l yf o r $ 8 0 .
T h i sk e y b o a r dh a s f i v eo c t a v e s o ff u l l - s i z e dp i a n ok e y s ,i s
e x t r e m e l yl i g h tw e i g h t ,a n dc o m p a c t .I t i sn e i t h e r v e l o
s e n s i t i v en o rp r e s s u r e - s e n s i t i v e ,b u ti t s ' a c t i o n 'i s q u i t eg o o d
a n dn o ta t a l l ' s q u i s h y ' a s e l e c t r o n i ck e y b o a r d st e n dt o b e
A l t h o u g hi t i s a n o p t i o n ,t h i se x t e r n a lk e y b o a r di s e s s e n t i a i f
y o u w a n ta c c e s s t h eE x p a n d e r ' sm o r es o p h i s t i c a t e df e a t u r e
T h et o pt w or o w so f t h ec o m p u t e rk e y b o a r dc a na l s ob e u s e d
t o p l a yt h eE x p a n d e r .A M u s i cM a k e rk e y b o a r do v e r l a yi s a l s o
a v a i l a b l ea t $ 1 0 .T h i si s a p l a s t i cc o v e r w i t hm i n i - s i z e dp i a n
k e y st h a to v e r h a n gt h e c o m p u t e rk e y b o a r d .T r y i n gt o p l a y
m u s i cw i t h o u tt h e o v e r l a yo r t h e f u l l - s i z e dk e y b o a r di s
e x t r e m e l yc l u m s y ,t e d i o u s ,a n df r u s t r a t i n g .
T h eS F XS o u n dE x p a n d e rh a s n i n e' v o i c e s 'o r s o u n dg e n e r
t o r s ,e a c hc o n s i s t i n go f t w oo s c i l l a t o r s( c a l l e d ' o p e r a ti n
F M t e r m i n o l o g y ) ,w i t he n v e l o p ea n dp h a s eg e n e r a t o r s .T h e
s o f t w a r e s u p p l i e dw i t ht h eE x p a n d e rp r o v i d e se i g h t v o i c e
s i xv o i c e sp l u sf i v ep e r c u s s i o n s o u n d s .
S o f t w a r e
T h ed i s kt h a tc o m e sw i t ht h eS F XS o u n dE x p a n d e ru s e st h e
f o r mo f c o p yp r o t e c t i o nt h a ta b u s e st h ed i s kd r i v e :w h i l el o a d
i n g ,t h e d r i v ee m i t sc h a t t e r i n g ,g r i n d i n g ,m a c h i n e - g u n
e f f e c t s .S i n c et h es o f t w a r ei s u s e l e s sw i t h o u tt h eh a r d w a r e ,a n d
T r a n s a c t o r 7 2 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 75/84
t h eh a r d w a r ei s i n f i n i t e l ym o r ed i f f i c u l t( i fn o t i m p o s s i b l e )t o
d u p l i c a t e ,o n eq u e s t i o n st h en e e df o rc o p y - p r o t e c t i o n .S e n d i n g
a s i m p l ec o m m a n dt o t h ed r i v e ,b e f o r e l o a d i n g s o f t w a r ep r o
t e c t e di n t h i sm a n n e r , c a nm i n i m i z et h e v i o l e n c e .
o p e n l 5 , 8 , 1 5 :p r i n t # 1 5 ," m - w " ;c h r $ ( 1 0 6 ) ;
c h r $ ( 0 ) ; c h r $ ( l ) ; c h r $ ( 1 3 3 ) :d o s e l 5
w i l lc a u s et h ed r i v et o b e s i g n i f i c a n t l yq u i e t e rw h e ns o f t w a r e
p r o t e c t e dt h i sw a yi s l o a d e d .
O n c et h eS F Xs o f t w a r ei s r u n n i n g ,a m e n ul i n ea p p e a r sa t t h et o p
o f t h e s c r e e n ,w i t ha w i n d o wi n t h e c e n t r ed i s p l a y i n gt w om u s i c
s t a v e sw i t hb a s sa n dt r e b l ec l e f s .T h i sw i n d o ws h o w st h en o t e s
a s t h e ya r ep l a y e d .T h eC 6 4f u n c t i o nk e y sa r er e p r o g r a m m e dt o
p r o v i d ec u r s o ru p a n d d o w n ,l e f t a n d r i g h t ,i n c r e a s ea n d
d e c r e a s e ,o r o n a n do f f a s a p p l i c a b l et o t h ec h o s e no p e r a t i o n ,
p l u s' E n t e r ' .T h i sa r r a n g e m e n tt a k e sg e t t i n gu s e dt o , a n dI s t i l l
f i n dm y s e l ft r y i n g t ou s et h en o r m a lc u r s o ra n dr e t u r nk e y s .T h e
m e n us e l e c t i o n sa r es e t u p ,s y n t h ,r h y t h m ,r i f f ,a n dd i s k .
H i g h l i g h t i n gS E T U Pw i t ht h e c u r s o r / f u n c t i o nk e y s ,a d r o p - d o w n
w i n d o wa p p e a r sw i t h an u m b e ro f o p t i o n sa f f e c t i n g t h em o d
u l e ' so p e r a t i o n .W h e nN o r m a li s c l i c k e do n , t h es o u n ds e l e c t e d
i n t h eS Y N T H w i n d o wc a nb e p l a y e d o v e rt h ef u l lk e y b o a r d .O n e
F i n g e rC h o r dp r o v i d e sm a j o ra n d m i n o rc h o r d sb y p r e s s i n gs i n
g l ek e y so n t h e l o w e rt w o r o w so f t h ec o m p u t e rk e y b o a r d ,o r
c o m b i n a t i o n so f l e f t - h a n dk e y so n t h e e x t e r n a lk e y b o a r d .( T h e s e
a r ea c t u a l l yt w o - f i n g e rc h o r d s ,b u tw h yq u i b b l e ? )
T h eR H Y T H Ms e l e c t e di n t e r a c t sw i t ht h i sa n dF i n g e r e dC h o r d
t o p r o d u c ea u t o - a c c o m p a n i m e n t .M e m o r yh o l d s ac h o r da f t e r
t h ek e y ( s )a r er e l e a s e d .P r e s s i n gt h es p a c e b a rc a n c e l s ah e l dc h o r d .T h e e x t e r n a lk e y b o a r d c a nb e S P L I T ,a n d d i f f e r e n t
s o u n d sa s s i g n e dt o t h e u p p e ra n d l o w e rp o r t i o n s .T h es p l i t
p o i n tc a nb e a n y w h e r eo n t h ek e y b o a r d .
T h eS Y N T Hm e n up r o v i d e sa s e l e c t i o no f 1 2 d i f f e r e n ts o u n d s .
T h ed i s kc o m e sw i t ht w o' v o i c e 'o r s o u n db a n k s .A d d i t i o n a l
s o u n d s c a n b ec r e a t e du s i n gt h ec o m p a n i o n p r o g r a mF MC o m
p o s e ra n d S o u n dE d i t o r , a v a i l a b l es e p a r a t e l y .T h ek e y b o a r d
c a nb e s h i f t e d + / -1 o c t a v e .T h en o t e sd i s p l a y e do n t h em u s i c
s t a v e sd o n ' tc h a n g ew h e nt h eo c t a v ei s s h i f t e d .T h ek e y b o a r d
c a na l s ob e t r a n s p o s e d+ 6 a n d- 5 s e m i t o n e s .P l a y e dn o t e sa r e
h e n d i s p l a y e da t t h e i rn e wp o s i t i o n s .E n s e m b l eh a l v e st h e
n u m b e ro f v o i c e sa n da s s i g n st w ov o i c e st o a k e y .T h et w o
v o i c e sa r e t h e ns l i g h t l yd e - t u n e dt o ' f a t t e n 't h e s o u n d .T h e
R H Y T H Mm e n up r o v i d e s p e r c u s s i o na c c o m p a n i m e n ti n v a r i o u s
s t y l e s :P o p ,R o c k , B o s s a n o v a ,C o u n t r y ,e t c .T h e d r u ms o u n d s
a r e u n c a n n i l yr e a l i s t i c( e s p e c i a l l yt h e c y m b a l s ) ,u n l i k et h e
" b o o m - c h i k a - b o o m "o f o t h e ri n e x p e n s i v ee l e c t r o n i cr h y t h m
u n i t s .I t b e a t sa m e t r o n o m ea n yd a y .W h e nt h ep e r c u s s i o ni s
a c t i v e ,t h en u m b e ro f p l a y a b l e v o i c e sd r o p st o s i x .
S u m m a r y
T h eo v e r a l lp e r f o r m a n c eo f t h i sp a c k a g ei s e x c e l l e n t .T h es o f t
w a r ed o e sh a v ea f e ws h o r t c o m i n g s ,h o w e v e r .T h em e n uh i g h
l i g h tb a rd o e s n ' t' r o l lo v e r 'f r o mt o pt o b o t t o mo r v i c ev e r s a .
W h e ny o ur e a c ho n ee n d ,y o uh a v et o g o t h r o u g ha l lt h e s e l e c
t i o n st o g e tt o t h eo t h e r e n d .A r u d i m e n t a r yt o n ec o n t r o li s p r o
v i d e df r o mt h e c o m p u t e rk e y b o a r d ,b u t i t w o u l dh a v eb e e n
n i c et o h a v es o m es o r to f p e r f o r m a n c ec o n t r o l s ,p e r h a p su s i n g
a j o y s t i c k o r p a d d l e s ,t o a l t e rt h e s o u n d si n r e a l - t i m e .A n d
w h a tC o m m o d o r eU Kc a l l sa U s e r ' sG u i d ei s p a t h e t i c .
H o w e v e r ,t h es o u n d st h a te m a n a t e f r o mt h eS F XS o u n d E x p a n
a r es i m p l ya s t o u n d i n gi n t h e i rr e a l i s m .T h eS t r i n g ss o u n di s e s p e
c i a l l yc o n v i n c i n g ,p a r t i c u l a r l yw h e nE n s e m b l ei s e n a b l e d .W i t h
t h e o p t i o n a lC o m p o s e r / E d i t o r p r o g r a m , a n ys o u n df o u n dt o b e
l e s st h a ns a t i s f a c t o r yc a nb e s h a p e dt o t h e u s e r ' sl i k i n g .A C 6 4
o w n e rr e a l l yc a np u tt o g e t h e ra D X 7 - l i k e i n s t r u m e n tf o ra f r a c t i o n
o f t h ec o s t .T h em i g h t yS I D h a sb e e nd e t h r o n e d .
F MC o m p o s e ra n dS o u n dE d i t o r
T h ec o m p a n i o ns o f t w a r ef o r t h eS F XS o u n dE x p a n d e ri s
F MC o m p o s e r a n dS o u n dE d i t o r .T h i sp a c k a g ee n h a n c e st h e
p e r f o r m a n c eo f t h a td e v i c e ,a n di s i n d i s p e n s a b l ei f y o u w a n tt oc r e a t ey o u ro w ns o u n d sa n dc o m p o s i t i o n sf o rt h eS F Xm o d u l e .
T h eD i s k :T h es o f t w a r ee m p l o y st h e a b u s i v ef o r mo f c o p y
p r o t e c t i o nt h a tb a n g st h e d i s k d r i v eh e a da r o u n d .W h i l et h e r e
m a yb e s o m ej u s t i f i c a t i o nf o rc o p yp r o t e c t i n gt h i sd i s k ,t h e r e
c a nb e n o j u s t i f i c a t i o nf o r t h e m e t h o du s e d .A f t e rt h e i n i t i a l
h e a d - b a n g i n g ,a s c r e e na p p e a r s w i t ht h e c h o i c e sE d i t o ra n d
C o m p o s e r .A f t e rm a k i n gy o u rc h o i c e ,t h ed r i v ei s s u b j e c t e dt o
s o m e m o r ea b u s eb e f o r et h e s e l e c t e dp r o g r a ma p p e a r s .
F MC o m p o s e r : T h es k i m p yb o o k l e tt h a tC o m m o d o r eU Kj o k
i n g l yc a l l sa " U s e r ' sG u i d e "c l a i m st h a t t h i s p r o g r a mi s
" p o w e r f u l ,y e te a s yt o u s e " .T h i si s o n l yh a l ft r u e .T h eC o m
p o s e ri s i n d e e de x t r e m e l yp o w e r f u l .I t i sa l s oe x t r e m e l yd i f f i
c u l t ,a n da u s e rm u s tb e p r e p a r e dt o s p e n da l o to f t i m ee x p e r i
m e n t i n g a n dl e a r n i n gi t s f e a t u r e sb e f o r e a t t e m p t i n gt o c r e a t ea
m u s i c a ls c o r e .
F M C o m p o s e ra l l o w st h e S F XS o u n dE x p a n d e rt o p l a yb a c k
n i n e - p a r tm u s i cs c o r e sp o l y t i m b r a l l y .I n o t h e rw o r d s ,e a c hp a r t
c a n h a v ea d i f f e r e n ts o u n d .W i t ht h e c o m p a n i o nM I D Ic a r
t r i d g e ,e a c hv o i c ec a nr e c e i v e n o t e so v e ra n yo f 1 6 M I D Ic h a n
n e l s .A n e x t e r n a lM l D i - e q u i p p e dd e v i c ec a ns e tt h et e m p of o r
p l a y b a c k( m i d ic l o c k ) .A n yv o i c ec a n b et u r n e do n o r o f f f o r
p l a y b a c k , o rs l i g h t l yd e t u n e df r o mt h eo t h e rv o i c e s .
I n i t s " c l e a rm e m o r y "s t a t e ,t h e C o m p o s e rh a s m e m o r y
a v a i l a b l ef o ro v e rt w e l v et h o u s a n d" e v e n t s " .F o rc o m p o s i t i o
m a n yc o m m o na n du n c o m m o nt i m es i g n a t u r e sa r es u p p o r t e d
i n c l u d i n g5 / 2 ,7 / 1 6 ,a n d9 / 4 .N o t e sc a nb e e n t e r e df r o mt h e
c o m p u t e rk e y b o a r d ,t h e o p t i o n a le x t e r n a lk e y b o a r d ,o r v i a
M I D I .R e s t sa r ee n t e r e d w i t ht h es p a c eb a r .W h e ne n o u g hn o t e s
a n dr e s t so f t h ep r o p e rd u r a t i o n sh a v e b e e ne n t e r e dt o f i l la
m e a s u r eo f t h et i m es i g n a t u r es e l e c t e d ,t h ep r o g r a ma u t o m a t i
c a l l yi n s e r t sa b a rl i n e .K e ya n dt i m es i g n a t u r e sc a nc h a n g e
w i t h i na p i e c eo f m u s i c .T r i p l e t sa n dd o t t e d n o t e sa r es u p p o r t
e d .T h ei n s t r u m e n ts o u n dc a nc h a n g ew i t h i n ap a r t .
T r a n s a c t o r 7 3 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 76/84
A s c o r ee n t e r e d w i t ht h i sp r o g r a mc a nh a v ea l lt h ec o n v e n t i o n
a l m u s i cn o t a t i o n s .R i t a r d a n d o , s f o r z a n d o ,t e n u t o ,a n d D a
C a p oa r ea f e wo f t h e t e r m su s e di n t h e i n s t r u c t i o nb o o k l e t .
O b v i o u s l y , am o r et h a ns u p e r f i c i a lk n o w l e d g eo f m u s i ct e r m i
n o l o g yi s n e e d e dt o u s et h i sp r o g r a mt o i t sf u l lp o t e n t i a l .
O n p l a y b a c k ,t h ep i e c ec a n b es h i f t e d + / -2 o c t a v e so r t r a n s
p o s e d+ / -6 s e m i t o n e s .D i f f e r e n ts o u n d s c a nb e a s s i g n e dt o t h e
n i n ep a r t sf r o ma l i b r a r yo f 6 4 s o u n d s . A d d i t i o n a ls o u n d s c a n
b e c r e a t e dw i t ht h eE d i t o r d e s c r i b e db e l o w .
T h el i s to f f e a t u r e sg o e so n a n do n , a n dp e r h a p st h a t ' st h e
m a i np r o b l e mw i t ht h i sp r o g r a m :i t t r i e st o o h a r d .T h es o -
c a l l e dU s e r ' sG u i d ed o e s n ' tp r o v i d em u c hg u i d a n c ea n dt h e
s i n g l eh e l ps c r e e ni s n ' tv e r yh e l p f u l .S t i l l ,j u d g i n gf r o mt h e
d e m op i e c ei n c l u d e do n t h ed i s k ,s o m e o n ew i l l i n gt o s p e n dt h e
t i m en e c e s s a r yt o l e a r nt h i sp r o g r a mw i l lb e a b l et o d o a m a z
i n gt h i n g sw i t ht h eS F XS o u n dE x p a n d e r .
F M S o u n dE d i t o r :T h i sp r o g r a me n a b l e st h eu s e rt o d e v e l o p
n e ws o u n d sf o r t h eS F XS o u n dE x p a n d e r .T h es o u n d sc r e a t e d
c a nb e u s e db y t h eF MC o m p o s e ro r t h e b a s i cs o f t w a r e i n c l u d e d
w i t ht h eE x p a n d e r .I t a l s of u n c t i o n sa s a n i n e - v o i c ep o l y p h o n i c
s y n t h e s i z e r .
T h eS E T U Pm e n ua l l o w ss e l e c t i o no f o n eo f 6 4 d i f f e r e n ts o u n d s .
T h eu p p e ra n dl o w e rp o r t i o n so f t h e e x t e r n a lk e y b o a r dc a nh a v e
t w od i f f e r e n ts o u n d s .T h ek e y b o a r dc a nb e s p l i ta t a n yp o i n t .
T h ek e y b o a r d c a n b es h i f t e du p o r d o w no n eo c t a v e , o rt r a n s
p o s e d .W i t ht h e M I D Ii n t e r f a c e ,t h e u n i tc a n b o t hs e n da n d
r e c e i v ei n f o r m a t i o n o v e ra l l 1 6 M I D Ic h a n n e l sa n d" O m n i " .
A s i m p l ed r u ms e q u e n c e ri s i n c l u d e d ,w i t hf i v ep e r c u s s i o ns o u n d s .T h es e q u e n c ei s 3 2 s t e p sw i t hn o p r o v i s i o nt o a l t e rt h e
l e n g t ho r s a v et h es e q u e n c e .D r u me v e n t sc a n b ee n t e r e df r o m
t h e k e y b o a r da s t e pa t a t i m e ,o r i n r e a lt i m e .T e nd i f f e r e n t
d r u m' k i t s 'a r e p r o v i d e d .A g a i n ,w h e nd r u m sa r e a c t i v e ,t h e
n u m b e ro f m a n u a l l yp l a y a b l e v o i c e sd r o p st o s i x .
T h eE d i tS o u n ds c r e e ni s t h er e a lm e a to f t h i sp r o g r a m .W i t h
i t , a n yo f t h e 6 4 s o u n d si n t h e l i b r a r yc a n b et a i l o r e dt o t h e
u s e r ' sl i k i n g .B e c a u s eo f t h ec o m p l e x i t yo f F Mp r o g r a m m i n g ,
c e r t a i nc o m p r o m i s e sa r e m a d e .T h es c r e e np r e s e n t ss e v e r a l
' s l i d e r s 'a f f e c t i n gv a r i o u sq u a l i t i e so f t h es o u n d .B r i l l i a n c ea n d
V o l u m ea r e s e l f - e x p l a n a t o r y .W h e r et h ec o m p r o m i s ei s o b v i
o u s i s i n t h e E n v e l o p ec o n t r o l .I n s t e a do f t h e f o u r - p a r t
e n v e l o p e sf a m i l i a rt o S I Dp r o g r a m m e r s ,a s i n g l es l i d e rs e l e c t s
o n eo f 2 5 5p r e s e te n v e l o p e s .N o g r a p h i cr e p r e s e n t a t i o no f t h e
e n v e l o p ei s o f f e r e d .
B e c a u s ea n F Mv o i c ec o n s i s t so f t w oo s c i l l a t o r s ,c o n t r o lo v e r
t h e t w op i t c h e si s p r o v i d e d .A s l i d e rl a b e l l e dE x p a n d e rc o n
t r o l st h ef e e d b a c kb e t w e e nt h et w oo s c i l l a t o r s .E a c ho s c i l l a t o r
c a n h a v ed i f f e r e n t l e v e l so f V i b r a t oa n d / o r T r e m o l o .O n c e
y o u ' v eg o tt h es o u n dj u s tt h ew a yy o u w a n ti t , i t c a nb e s t o r e d
i n t h el i b r a r ya n dt h ew h o l el i b r a r ys a v e dt o d i s k .T h ef i r s t1 2
s o u n d so f a l i b r a r yc a n b e s a v e da s a ' V o i c eB a n k 't o b e l o a d e d
b y t h eE x p a n d e r ' sb a s i c s o f t w a r e .
F r u i tM a c h i n e :T h i si s a s i l l yn a m ef o ra v e r yc l e v e rp r o c e s
R a t h e rt h a na s s e m b l ea s o u n d f r o ms c r a t c h ,t h es c r e e ns h o w sa
d i s p l a ys i m i l a r t oa s l o tm a c h i n e ,w i t hl i t t l ep i c t u r e so f d i f f e r
e n t m u s i c a li n s t r u m e n t s .E n t e r i n gt h e G o c o m m a n d ,t h e
w h e e l sa r e s p u n .W h e nt h e ys t o p ,y o uc a np r e s sa f e wk e y
a n d i f y o ul i k et h e s o u n d ,g o t o t h e E d i t s c r e e na n dm a k
a d j u s t m e n t s ,o r s p i na g a i nf o ra d i f f e r e n ts o u n dc o m b i n a t i o
O v e r a l l :M ym a i nc o m p l a i n t a b o u tt h i ss o f t w a r ei s t h em e t h o
o f c o p yp r o t e c t i o ne m p l o y e da n dt h en o n - i n t e g r a t e dn a t u r eo f
t h e s e p a r a t ep r o g r a m s .I f y o u ' r ei n t h eE d i t o ra n dy o u w a n t o
e x i t t ot h eC o m p o s e r ,t h ec o m p u t e rm u s tb e r e s e ta n dt h el o a d
i n gp r o c e s s ,r e p l e t ew i t hd r i v e - a b u s e ,b e g u na l lo v e ra g a i n .
W i t hi t s m a n yf e a t u r e s ,t w os h o r t c o m i n g s o ft h eC o m p o s e a r e
e s p e c i a l l ya n n o y i n g .O n p l a y b a c k ,t h es c r e e nd i s p l a yi s s t a t i c
s t u c kw h e r e v e ri t w a sw h e nt h eP l a yc o m m a n dw a sg i v e n .T h i
m a k e sl o c a t i n go n e ' s m i s t a k e sd i f f i c u l t .T h i si s c o m p o u n d b y
t h ef a c t t h a tw h e ny o uc h a n g ep a r t s ,t h ed i s p l a yj u m p st o t h e
s t a r to f t h en e wp a r t ,r a t h e rt h a nt h e l o c a t i o nc o r r e s p o n d t o
t h e p o i n tw h e r et h ep r e v i o u sp a r tw a se x i t e d .F u r t h e r m o r n o
n u m b e r i n go f t h em e a s u r e si s p r o v i d e d .T h ei n a d e q u a c yo f t h e
C o m p o s e ri n s t r u c t i o n sm a yd i s c o u r a g es o m eu s e r s .T h i sw o u l
b e a s h a m e , b e c a u s ei t a p p e a r st o b e a s p o w e r f u la s c l a i m e
D i l i g e n c ea n dp a t i e n c eo n t h e u s e r ' s p a r t a r ec l e a r l yn e c e s s a
I n c o n t r a s t , t h e r e ' sl i t t l et o f i n df a u l tw i t hi n t h eS o u n dE d i t o r .
T h e S F X E x p a n d e r ,c o m b i n e dw i t ht h e E d i t o r / C o m p
b r i n g ss o p h i s t i c a t e d s y n t h e s i st o C 6 4o w n e r sa t a v e r yl o w
p r i c e .O n ew o n d e r sw h y C o m m o d o r ed i d n ' tm a k et h i sp r o d u
a v a i l a b l ei n t h i sc o u n t r ys o o n e r .
A l s oa v a i l a b l e :S F XP r o g r a m m e r ' sR e f e r e n c e G u i d$ 1 0 T h i s3 1 - p a g eb o o k l e t ,t i t l e d" D a s M u s i kG e s c h a f t "i s
m o r es p e c i f i c a l l ya b o u tt h e Y a m a h aY M 3 5 2 6I C t h a na b o u
t h eS F Xm o d u l e .T h ec h i pi s a c c e s s e di n a m a n n e rs i m i l a rt o
t h e C 1 2 88 0 c o l u m nV D C .O n l yt w o l o c a t i o n sa p p e a ri n
m e m o r y ,o n et o w r i t ea r e g i s t e ra d d r e s s ,a n d o n et o w r i t
t h e d a t a o rr e a dt h e c h i p ' ss t a t u s .T h eb o o k l e t p r o v i n o
p r o g r a m m i n ge x a m p l e si n 6 5 x xo r a n yo t h e rm l ,b u td o e
e x p l a i nt h en u m e r o u sr e g i s t e r sa n df u n c t i o n s .
I a m i n t h ep r o c e s so f d i s s e c t i n g t h eS F Xm o d u l e ,a n dt h e
f o l l o w i n gi n f o r m a t i o ni s , a t t h i st i m e ,t e n t a t i v e :T h em a t r i
f o rt h e e x t e r n a lk e y b o a r do c c u p i e se i g h t l o c a t i o n sa t $ D F 0
$ D F 0 F .T h eY M 3 5 2 6l i v e sa t $ D F 2 0 .I n c o m p l e t ea d d r e s sd e c o
i n g c a u s e s' i m a g e s ' o ft h em a t r i xa n dY a m a h ac h i pt o r e p e a
t h r o u g h o u tI / O 2 .T h eY M 3 5 2 6i s n o tc l o c k e db y t h ec o m p u
e r ' sc l o c k ,b u ti n s t e a dh a si t s o w n3 . 5 M H zc r y s t a lo s c i l l a t
T h e r ei s t h ep o s s i b i l i t y t h a ta v a r i a b l ec l o c kc a nb e s u b s t
t u t e df o r f i n et u n i n go r p i t c h - b e n d .T h ec o n n e c t o rf o r t h
M I D Ic a r t r i d g ea p p e a r st o h a v es o m ea d d r e s sl i n e ss w a p p
o r s h i f t e d .T h i sw o u l de x p l a i nt h ei n c o m p a t i b i l i t yw i t ht h i r
p a r t ym i d ic a r t r i d g e s .A s m o r ei s l e a r n e da b o u tt h i sp i e c e
h a r d w a r e ,I e x p e c tp r o g r a m m e r so n t h i ss i d eo f t h eA t l a n t
w i l ld e v e l o pt h e i ro w ns o f t w a r ef o r i t , p e r h a p sa C 1 2 8v e r
s i o nt h a tm a k e su s eo f t h e l a r g e rm e m o r y ,b u i l t - i nw i n d o w
h i g hr e s o l u t i o nr o u t i n e s ,a n d8 0 c o l u m nd i s p l a y . □
T r a n s a c t o r 7 4 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 77/84
X - 1 0 P o w e r h o u s eC o m p u t e rI n t e r f a c
C o n t r o lt h ew o r l dw i t hy o u rC 6 4
H a r d w a r er e v i e wb y N o e lN y m a n
X - 1 0P o w e r h o u s eC o m p u t e rI n t e r f a c e
M a n u f a c t u r e db yX - 1 0 ( U S A )I n c
1 8 5 A L e G r a n d A v e
N o r t h v a l eN J 0 7 6 4 7
A v a i l a b l ef r o ms e v e r a ls o u r c e si n c l u d i n g
C o m p u t e rD i r e c t ,I n c .
2 2 2 9 2N o r t h P e p p e rR o a d
B a r r i n g t o n I L6 0 0 1 0
8 0 0 - B U Y - W I S Eo r 3 1 2 - 3 8 2 - 5 0 5 8( o r d e r s )
3 1 2 - 3 8 2 - 2 8 8 2( t e c h n i c a l a s s i s t a n c e )
$ 3 9 . 9 5( U S )p l u s s h i p p i n gi n W i n t e r1 9 8 9c a t a l o g
R e q u i r e d :C 6 4( o rC 1 2 8 )a n do n e 1 5 4 1 1 1 5 7 1d i s kd r i v e
W h e nI f i r s tb o u g h ta h o u s e ,I w a n t e dt o a u t o m a t ee v e r y
h i n g .I n t h o s e d a y s ,c o m p u t e r sw e r et o oe x p e n s i v et o d e d i
c a t et o m u n d a n et h i n g sl i k et u r n i n gl i g h t so n a n do f f .S o ,I
s e t u p a s y s t e mu s i n gl o g i cg a t e s ,p r o g r a m m e df r o ma p a t c h
p a n e l .I r a ne x t r aw i r e sw h e r en e e d e d ,a n du s e dt h r e ed i f f e r
e n t v o l t a g el e v e l s .I m a i n t a i n e dt h es p i r i t , i fn o tt h el e t t e r ,o f
h e e l e c t r i c a lc o d e s .T h eh a r d w a r ec o s ta b o u t$ 2 5f o r e a c h
i g h ts w i t c h .
W i t ht h eX - 1 0C o m p u t e rI n t e r f a c ea n da C 6 4o r C 1 2 8 ,a n y o n e
c a nc r e a t ea m u c hm o r ee l a b o r a t es y s t e mt h a nm y o r i g i n a l .I t
e q u i r e sv e r yl i t t l ee l e c t r i c a le x p e r i e n c e ,n o e x t r a w i r i n g ,a n d
o n l y af e wm i n u t e st o i n s t a l l .U n l i k em y l o g i cg a t ec i r c u i t ,i t ' s
e a s yt o p r o g r a m .I t f e a t u r e sa n o n - b o a r dc l o c k / t i m e ra n df u l l
b a t t e r yb a c k - u p .
T h ec o m p u t e ri s u s e do n l yt o i n i t i a l i z et h ei n t e r f a c e .O n c ep r o
g r a m m e d ,i t c a nb e d i s c o n n e c t e df r o mt h ec o m p u t e r a n do p e r
a t e di n s t a n d - a l o n em o d e .
T h eC o m p u t e rI n t e r f a c eo r i g i n a l l ys o l df o r o v e r$ 1 5 0 .I n
e c e n t y e a r si t ' s b e e nd r a s t i c a l l yd i s c o u n t e dt h r o u g hm a i l
o r d e ro u t l e t s .A t $ 4 0 ,i t ' sc l o s ei n c o s tt o t h es t a n d a r dX - 1 0
c o n t r o l l e r s .
T h eX - 1 0 S y s t e m
X - 1 0( f o r m e r l ym a r k e t e da s t h eb s rS y s t e m )c o n t r o l s1 2 0v a c
l i g h t s ,l a m p s ,a n da p p l i a n c e sb y u s i n gp o w e rl i n e c a r r i e r t r a
m i s s i o n . I ns i m p l et e r m s ,a n i n t e r f a c ei s p l u g g e di n t oa n e l e c
t r i c a lo u t l e ti n y o u rh o u s e .U n d e rp r o g r a mo r m a n u a lc o n t r o l ,t h e i n t e r f a c es e n d sa c o d e dr a d i os i g n a lt h r o u g ht h e 1 2 0V A C
w i r e st o " c o n t r o lm o d u l e s " .
T h em o d u l e sa r eu s u a l l ys m a l lb o x e st h a tp l u gi n t ow a l lr e c e p
t a c l e s .T h ed e v i c et o b e c o n t r o l l e dp l u g si n t oa n o u t l e to n t h e
m o d u l e . A n o t h e rt y p eo f m o d u l ei s d e s i g n e dt o r e p l a c es t a n
d a r dw a l l s w i t c h e sf o ri n c a n d e s c e n tl i g h t s .
T h em o d u l e sd e s i g n e df o r l i g h t i n ga p p l i c a t i o n sc a nt u r n t h e
l i g h t so n o r o f f ,a n dd i mt o a n ys e l e c t e dl e v e l .T h e s a m em o d
u l e sc a n b eu s e df o r n o n - i n d u c t i v ea p p l i a n c e s , t h i n g st h a t
d o n ' th a v em o t o r s .A p p l i a n c em o d u l e sa r e a v a i l a b l et h a tc a ns w i t c ha n yl o a du p t o 5 0 0w a t t s .T h e yu s e s m a l lr e l a y s ,s o
l o a d sc o n n e c t e dt o t h e mc a n n o tb e d i m m e d .
E a c hm o d u l eh a st w od i a l so r r o t a r y s w i t c h e s .O n ed i a ls e l e c t s
l e t t e r sf r o mA t o P ( 1 6p o s s i b i l i t i e s ) .T h eo t h e rd i a ls e l e c t s
n u m b e r sf r o mo n et o s i x t e e n .E a c h m o d u l ec a nh a v e o n eo f
2 5 6a d d r e s s e sc o m p o s e do f a l e t t e ra n da n u m b e r .
T h e r ea r em a n yt y p e so f i n t e r f a c e s a v a i l a b l et o c o n t r o lm o d
u l e s .M o s th a v ea s e l e c t a b l el e t t e ra d d r e s sr a n g e ,u s i n ga
s w i t c ho r d i a l .T h i si s c a l l e dt h e " h o u s ec o d e " .T h eh o u s e
c o d ei s n o tc h a n g e dd u r i n gn o r m a lo p e r a t i o n .D e p e n d i n go n
c o n t r o l l e rs t y l e ,t h e r e a r ef o u rt o s i x t e e n s w i t c h e s .E a c hc o n
t r o l sa m o d u l e ,w h i c hi s a l s os e t t o t h e p r e - s e l e c t e dh o u s e
c o d e ,b y n u m b e r . T h e r em a yb e a d d i t i o n a ls w i t c h e st o d i m
m o d u l e s o n c et h e ya r e s e l e c t e d .S o m ei n t e r f a c e sp r o v i d e
s w i t c h e sf o r" a l ll i g h t so n " ,a n do t h e rf u n c t i o n s .
M o s ti n t e r f a c e su s em a n u a ls w i t c h e s .S o m er e s p o n dt o r e m o t e
c o n t r o l d e v i c e s ,e i t h e ri n f r a - r e do r r a d i o .S p e c i a li n t e r f a c e s
a n s w e rt h e p h o n ea n dr e s p o n dt o t o u c h t o n es i g n a l s .O t h e r s
a r e d e s i g n e df o r u s e w i t hb u r g l a ra l a r ms y s t e m s .S o m eh a v e
i n t e r n a lc l o c k sa n dc a n b ep r e - p r o g r a m m e dt o e x e c u t ec o m
m a n d sb a s e do n t i m ea n dd a y .Y o uc a nh a v em a n yi n t e r f a c e
i n d i f f e r e n t l o c a t i o n st o c o n t r o l t h es a m e ,o r d i f f e r e n tm o d u l e s .
T r a n s a c t o r 7 5 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 78/84
T h e C o m p u t e rI n t e r f a c ea n dt h eC 6 4
T h eC o m p u t e rI n t e r f a c eh a s e i g h tm a n u a ls w i t c h e sa n da
d i nc o n n e c t o r .I t c o m e sw i t ha s p e c i a ld i nt o u s e rp o r tc o n
n e c t o rf o r t h e C 6 4 / C 1 2 8 , a n da d i s ko f s o f t w a r ei n 1 5 4 1
f o r m a t .A n i n e - v o l tb a t t e r yi s u s e da s a p o w e rf a i l u r eb a c k
u p .
T o u s et h eC o m p u t e rI n t e r f a c e ,y o uj u s tp l u gi t i n t oa w a l l
o u t l e ta n dt h e C 6 4 .A s w i t ha n yu s e r p o r t d e v i c e ,b e s u r e
t h ec o m p u t e ri s t u r n e do f fb e f o r ec o n n e c t i n gt h ec a b l e .S t a r t
t h e s u p p o r tp r o g r a m b y R U N n i n gt h e f i r s tp r o g r a mo n t h e
d i s k .
T h ep r o g r a mi s l a r g e l ym e n ud r i v e n .Y o uc a nu s et h ek e y b o a r d
o r aj o y s t i c kt o s e l e c tm e n uo p t i o n s .A f t e rs e t t i n gt h ei n t e r n a l
c l o c k w i t ht h ed a yo f t h ew e e ka n dt i m e ,y o u ' r ea s k e df o ra
h o u s ec o d e .T h i sc o d ew i l lb e u s e dw i t ht h e e i g h tm a n u a l
s w i t c h e st o a l l o wt h e i n t e r f a c et o w o r ka s a s t r i p p e dd o w n
s t a n d a r dc o n t r o l l e r .A t t h e m a i ns c r e e n ,s e l e c tt h e i n s t a l l
o p t i o n .
T h ep r o g r a md i s p l a y s a' m e n u 'o f r o o m si n a h o u s e ,a n df r o n t
a n dr e a rv i e w so f t h ee x t e r i o r .T h e n a m e so f t h er o o m sc a n ' t
b e c h a n g e d .S o ,i f y o uw a n ta m o d u l ei n t h e d e n , y o u ' l lp r o b a
b l yc h o o s et h e ' s p a r e 'r o o m .Y o u rf a m i l yr o o mm i g h tb e c o m e
t h e ' g u e s t 'r o o m .A c t u a l l y ,y o uc o u l dp u ta l l t h em o d u l e si n
o n e' r o o m 'f o re a s eo f p r o g r a m m i n g ,r e g a r d l e s so f t h e i rl o c a
t i o n si n t h eh o u s e .
I n t h ee m p t yr o o m ,y o u ' l lh a v es e v e r a lp o s s i b l em o d u l el o c a
t i o n ss h o w na s r e ds q u a r e s .S o m ea r eo n t h ef l o o r ,o t h e r so n
t h ew a l l sa n dc e i l i n g .A s y o up o i n tt o a s q u a r ei t t u r n s w h i t e .
A f t e rs e l e c t i n ga s q u a r e ,y o uc h o o s el a m po r a p p l i a n c e .A p p l i
a n c e sc a n ' tb e d i m m e d ,s o t h ep r o g r a mw o n ' tg i v ey o ut h a t
o p t i o ni f y o uc h o o s ea p p l i a n c e .
N e x t ,y o u ' r eg i v e na c h o i c eo f l a m p so r a p p l i a n c e st o u s e .
T h e s ea r ec u t ep i c t u r e sm a d eo f m u l t i c o l o u rs p r i t e s .T h e r e ' s
a v a r i e t yo f a p p l i a n c e so r l a m ps t y l e si f y o up i c k e da l o c a
t i o no n t h e f l o o r .W a l ll o c a t i o n sg i v ey o uo n l y w a l ll a m p s
a n dt h e r m o s t a t s . C e i l i n g sc a n h a v e h a n g i n gl a m p s ,o r t h e
g e n e r i c ' c u s t o m 'a p p l i a n c e , a" C ? " .A f t e ri n s t a l l a t i o n ,
t h e s ep i c t u r e sw i l la p p e a ra t t h e i rl o c a t i o n sw h e n e v e r y o u
s e l e c tt h i sr o o m .
E a c h m o d u l ei s a s s i g n e d ah o u s e c o d ea n dn u m b e r .T h ep r o
g r a mw i l ld e f a u l tt o t h en e x ta v a i l a b l en u m b e rf o r t h eh o u s e
c o d ea s s i g n e dt o t h eC o m p u t e rI n t e r f a c e .B u t ,y o uc a nc h a n g e
t h i st o a n yo f t h e2 5 6c o m b i n a t i o n s .O n eo f t h ef e a t u r e so f t h e
C o m p u t e rI n t e r f a c eo v e ro t h e ri n t e r f a c e si s t h a ti t c a n u s e
m a n yh o u s ec o d e ss i m u l t a n e o u s l y .
A f t e ri n s t a l l i n gt h em o d u l e st h r o u g h o u tt h eh o u s e ,y o up u s hQ
t o g o b a c kt o t h em a i ns c r e e na n ds e l e c to p e r a t e .
A g a i n ,y o um o v et h r o u g ht h eh o u s et o s e l e c ta r o o ma n dm o d
u l e .T h ep r o g r a ml e t sy o us e to n a n do f ft i m e sf o re a c h m o d u l e .
Y o uc a ns e l e c ts e v e r a lt i m e sf o re a c hd e v i c e .Y o uc a na l s os e l e c
o n ec y c l e( n o w ,t o d a y ,o r t o m o r r o w ) ,o r p e r i o d i c c y c l e s
d a yo r s p e c i f i c d a y s ) .Y o uc a ns e l e c tf u l lo r d i mp e r c e n t a g f o r
l a m p sa n dw a l ls w i t c h e s .Y o uc a nu s ee x a c tt i m e ,o r ' s e c u r i t
f o r s l i g h t l yv a r y i n go n / o f f t i m e s .Y o uc a na l s og r o u ps e v e r a
m o d u l e st o u s et h es a m et i m e dc y c l e .
W h e nd o n e p r o g r a m m i n g ,j u s t t u r no f f t h e c o m p u t e ra n d
u n p l u gt h e C o m p u t e rI n t e r f a c e .A r e d L E D( L i g h tE m i t t i
D i o d e )o n t h eC o m p u t e rI n t e r f a c e f l a s h e ss l o w l yw h e nt h e u n
i s d i s c o n n e c t e df r o mt h ep o w e rl i n e .
P l u gt h eC o m p u t e rI n t e r f a c ei n t oa n yo u t l e t .I t w i l ln o wc y c l
t h em o d u l e sy o u ' v ep r o g r a m m e d .Y o uc a na l s ou s et h em a n u a
s w i t c h e st o c o n t r o lm o d u l e so n et h r o u g he i g h tt h a ts h a r et h e
i n t e r f a c e ' sh o u s ec o d e .T h eC o m p u t e rI n t e r f a c ec a n n o td i m
l a m p sm a n u a l l y .
A f e a t u r eu n i q u et o t h e C o m p u t e rI n t e r f a c ei s t h e a b i l i t yt o
s a v et h e s t o r e dm o d u l ep r o g r a m o nd i s k .Y o uc a nk e e ps e v e r
p r o g r a m sf o r v a r i o u sp u r p o s e sa n dl o a dt h e mi n t ot h e i n t e rf a c e ,s a v i n g j o y s t i c kt i m e .T h ed i s ka l s oh a su t i l i t i e st o c o n t r o
d e v i c e sd i r e c t l ya n dc h a n g et h e t i m ei n t h e i n t e r f a c ew i t h o
u s i n gt h em e n up r o g r a m .
A d v a n t a g e sa n dd i s a d v a n t a g e s
T h eX - 1 0s y s t e m s y s t e mi s i n c r e d i b l ye a s yt o u s e ,e s p e c i a
i f y o u ' v ee v e rs p e n th o u r s c r a w l i n g a b o u tu n d e ra h o u s
i n s t a l l i n ga w i r e ds y s t e m !J u s tp l u gt h i n g si n a n dm o v et h e
j o y s t i c k .T h ew a l ls w i t c hm o d u l e s d or e q u i r ea s c r e w d r i
t o r e m o v et h ew a l lp l a t ea n do l ds w i t c h .Y o u ' l la l s ou s e w i
n u t s ( s u p p l i e d )t o c o n n e c tt h e m o d u l e .B e s u r et o t u r n t h
p o w e ro f fa t t h eb r e a k e r p a n e lb e f o r ei n s t a l l i n gw a l ls w i t c
m o d u l e s .
I p r e f e r t h ew a l lm o d u l e st o c o n v e n t i o n a ls w i t c h e s ,e v e ni f
t h e ya r e n ' tc o n t r o l l e db y i n t e r f a c e s .T h e X - 1 0w a l lm o d u l
a r e p u s h - o n ,p u s h - o f f .I t ' s e a s yt o t u r no n a l i g h tw i t hy o u
h a n d sf u l l .J u s tp u s h o nt h es w i t c h w i t hy o u re l b o w .
A d i s a d v a n t a g ei s a s m a l lm e c h a n i c a ls l i d e j u s tb e l o wt h ep u s h
b u t t o n .I t t u r n s o f f t h el i g h tw h e np u s h e dt o t h el e f t .X - 1 0s a y s
t h i s i s a s a f e t yf e a t u r et o d i s c o n n e c tp o w e rw h e nr e p l a c i
l a m p s .I t ' se a s yt o h i tt h a t s l i d es w i t c hi n s t e a do f t h em a i nb u t
t o n .I f t h e r o o mi s d a r k ,y o um a yt r y s e v e r a lp r e s s e sb e f o r
d i s c o v e r i n g ,b y t o u c h ,t h a ty o u ' v ei n a d v e r t e n t l ym o v e dt h e
s l i d e .
Y o uc a n n o td i ml i g h t sm a n u a l l ya t t h e s w i t c h .I t c a no n l yb e
d o n ew i t ha n i n t e r f a c e .Y o uc a no v e r i d et h e i n t e r f a c eb r i g h
n e s sl e v e lb y t u r n i n gt h e c o n t r o l l e dl a m po n o r o f f .L i g h t st o
b e d i m m e da r e f i r s tt u r n e do n a t f u l li n t e n s i t y ,t h e nb r o u g
d o w nt o t h ed e s i r e dl e v e l .
T h el a m pm o d u l e st h a tp l u gi n t o o u t l e t sh a v es o m ee x t r
i n t e l l i g e n c et h a tw a sa p l e a s a n ts u r p r i s e .I f y o uh a v ea l a m
p l u g g e di n t oa m o d u l e , y o uc a nt u r ni t o n b y t h r o w i n gi t s
T r a n s a c t o r 7 6 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 79/84
o r m a ls o c k e ts w i t c ho r p u l lc h a i n .I t m a yt a k et w oo r t h r e e
r i e s ,b u tt h em o d u l ew i l ls e n s et h e s w i t c ha c t i v i t ya n ds u p
l y p o w e rt o t h e l a m p .I f y o ut u r n o f ft h e l a m pu s i n gt h e
n o r m a l 's w i t c h ,t h em o d u l ew o n ' t b ea b l et o t u r ni t b a c ko n .
T h eX - 1 0 ' sa r eg o o d ,b u tn o tt h a tg o o d !
T h e r ea r es p e c i a l i z e dm o d u l e sf o r2 4 0v a ca p p l i a n c e s ,s u c ha s
w a t e rh e a t e r s .T h e r e ' s at h e r m o s t a tm o d u l et h a tm o u n t s b e l o w
y o u rn o r m a lt h e r m o s t a t .I t t u r n s t h ef u r n a c eo f fb y h e a t i n g a
m a l lc o i l t ot r i c ky o u r h o u s et h e r m o s t a t .I t ' sa b u l k ya r r a n g e
m e n tt h a ty o um a yf i n da e s t h e t i c a l l yu n p l e a s i n g .S p e c i a l' t w o
w a y 'm o d u l e sa r e u s e df o r t w ow a l l s w i t c h e sc o n t r o l l i n g t h e
a m el i g h t .
X - 1 0m o d u l e sa r e s o l db y m o s th a r d w a r ea n dd e p a r t m e n t
t o r e s ,s o m ec o m p u t e rs t o r e s ,a n d R a d i oS h a c k .T h e ym a y
p p e a ru n d e rv a r i o u sb r a n dn a m e sa n d h a v es l i g h t d i f f e r
n c e si n a p p e a r a n c e .T h e ya l l w o r kw i t ht h e C o m p u t e r
n t e r f a c e .S o m eo f t h e s p e c i a l t ym o d u l e sm a yo n l yb e
v a i l a b l ef r o mX - 1 0( U S A )d i r e c t l y .C h e c kf o r s a l e sa n d
m a i lo r d e rs o u r c e s .M o d u l e sa n di n t e r f a c e s a r eo f t e nd i s o u n t e d .
T h eX - 1 0s i g n a l sw i l lg e n e r a l l yt r a v e lt h r o u g ht h e p o w e r
i n e sa s f a r a st h e n e a r e s tu t i l i t yt r a n s f o r m e r .T h a tm e a n s
y o u rn e i g h b o r ' si n t e r f a c e s i g n a l sm a yr e a c hy o u rh o u s e .I f
y o ua r eo n f r i e n d l y t e r m s , j u s ts e l e c ts e p a r a t eh o u s ec o d e s .
f y o ud o n ' tl i k ee a c ho t h e r ,X - 1 0m o d u l ew a r sm a yb r e a k
u t .
e r t h a nt h eh a r d w a r ep r o j e c tI b u i l ty e a r sa g o .I t c a nb e c o s t l y
i f y o ud e c i d et o c o n t r o l s e v e r a l d e v i c e s .B u t ,y o uc a n ' tr e p l i
c a t e t h ee l e c t r o n i c s f o rt h e p r i c e sX - 1 0c h a r g e s .
B e y o n dt h eC o m p u t e rI n t e r f a c e
M o s t X - 1 0s y s t e m sl a c ka n ' i n p u t 't o t h e i n t e r f a c ef r o mt h e
r e a lw o r l d .Y o uc a n ' t t u r nl i g h t so n w h e na d o o ri s o p e n e d ,
b e c a u s ey o uc a n ' t d e t e c ta ' d o o ro p e n 's w i t c h .O n es o l u t i o ni s
t o l e a v et h e C o m p u t e rI n t e r f a c ep l u g g e di n t ot h e c o m p u t e r
T h ej o y s t i c kp o r t sc a nb e u s e df o r s w i t c hd e t e c t i o n ,a n da
B A S I Cp r o g r a mc a no p e r a t et h em o d u l e s .T h a tt i e su p t h ec o m
p u t e r ,h o w e v e r .
A b e t t e rs o l u t i o n f o re x p e r i m e n t e r si s t h en e wP L 5 1 3m o d u l e
f r o mX - 1 0 .T h i sp o w e rl i n ei n t e r f a c ec a nr e c e i v ea s w e l la s
s e n dX - 1 0s i g n a l s .
S t e v eC i a r c i a ,o f B y t em a g a z i n ef a m e ,a l s op u b l i s h e s am a g a
z i n ed e v o t e dt o c o m p u t e rh a r d w a r et o p i c sc a l l e d C i r c u i tC e l
l a r I N K .M a n yo f t h ea r t i c l e si n t h e p a s ty e a rh a v ed e a l tw i t ha d v a n c e dX - 1 0c o n t r o l .Y o uc a ns u b s c r i b e o rg e t p a s t i s s u e sb y
c o n t a c t i n g :
C i r c u i tC e l l a rI N K
S u b s c r i p t i o n s
1 2 D e p o tS q u a r e
P e t e r b o r o u g hN H 0 3 4 5 8 - 9 9 0 9
( 2 0 3 ) - 8 7 5 - 2 1 9 9 □
T h e C o m p u t e rI n t e r f a c eh a sw o r k e dw e l lf o r m e .I u s ei t t o
u r no n l i g h t su s i n gt h e ' s e c u r i t y 'f e a t u r e .W e c o n t r o ll i g h t s
h a tw o u l dn o r m a l l yb e o n ,s o t h eh o u s el o o k s' l i v e di n ' ,e v e nf w e ' r en o t t h e r e .S i n c em a n ym o d u l e sc a ns h a r et h e s a m e
o d e ,i t w a se a s yt o c o n t r o ls e v e r a lC h r i s t m a sd i s p l a y sw i t h
n es w i t c h .
d i d f i n d t h ek i t c h e nl i g h to n a t o d dt i m e s .T h eC o m p u t e r
n t e r f a c ep r o g r a m m i n g w a sc o r r e c t .B u t ,t h el i g h ts t i l lc a m eo n
y i t s e l fo c c a s i o n a l l y .I s o l v e dt h ep r o b l e m b yc h a n g i n gt h e
m o d u l ec o d e .I t ' su n l i k e l yt h a tr a d i o n o i s eo n t h ep o w e rl i n e
w a sc a u s i n gt h e p r o b l e m .T h e X - 1 0s i g n a li s c o m p l e x ,a n d
e n tt w i c ef o rv e r i f i c a t i o n .
A n o t h e rf e a t u r ew h e nu s i n gs e c u r i t yi s t h a ts e v e r a lo n o r o f f
i g n a l sm a yb e s e n tt o a m o d u l e .A t m y a p a r t m e n t ,I u s e da
m o d u l et o c o n t r o l t h ec o m p u t e rr o o ml i g h t .I t w a st h em o s t
i s i b l er o o mf r o mt h e s t r e e t .S i n c eI n o r m a l l yq u i ta r o u n d
1 1 p m ,I s e tt h ep r o g r a mf o ra ' s e c u r i t yo f f ' a tt h a tt i m e .
O f c o u r s e ,I w a so f t e nw o r k i n gw e l lp a s t1 1 p mo n a p e s k yp r o
g r a mb u g .T h ei n t e r f a c ew o u l dt u r n t h el i g h to f fa t 1 0 : 5 0o r s o .
' d r e a c ho v e rt o t h ew a l la n dt u r ni t b a c ko n .M a y b et e nm i n
t e sl a t e rt h e l i g h tw o u l dg o o f f a g a i n .T h i sm i g h t h a p p e n
n c e ,t w i c e ,o r n o ta t a l l .I f n o o n ew a si n t h er o o m ,s e v e r a l o f f
y c l e sw o u l d n ' tb e i m p o r t a n t .
r e c o m m e n dt h eC o m p u t e rI n t e r f a c es y s t e m .I t ' sm u c hc h e a p -
H B T - 1A R T - l :A c o m p l e t ei n t e r f a c es y s t e mf o r s e n da n d r e c e i v eo n C W ,R T T Y
( B a u d o ta A S C I I ) a n d A M T O R ,f o ru s e w i t h t h e C o m m o d o r e 6 4 / 1 2 8c o m p u t e r .O p e r a t i n g p r o g r a mo nd i s k i n c l u d e d . $ 1 9 9 . 0 0
A I R - 1 : Ac o m p l e t ei n t e r f a c es y s t e mf o r s e n da n d r e c e i v e o nC W ,R T T Y( B a u d o t5 A S C I I ) a n d A M T O R , f o ru s e w i t h C o m m o d o r eV I C - 2 0 .O p e r a t i n g p r o g r a mi n R O M . $ 9 9 . 9 5
S W L :A r e c e i v e o n l y c a r t r i d g e f o rC W ,R T T Y( B a u d o t$ A S C I I ) f o r u s ew i t h C o m m o d o r e6 4 / 1 2 8 .O p e r a t i n gp r o g r a mi n R O M . $ 6 4 . 0 0
A I R D I S K :A n A I R - 1t y p eo p e r a t i n gp r o g r a mf o r
u s e w i t hy o u r i n t e r f a c eh a r d w a r e . B o t h V I C - 2 0a n d C 6 4 / 1 2 8 p r o g r a m s o no n e d i s k . $ 3 9 . 9 5A I R - R O M : C a r t r i d g ev e r s i o no f A I R D I S Kf o rC 6 4 / 1 2 8o n l y . $ 5 9 . 9 5
M O R S EC O A C H
M O R S EC O A C H :A C o m p l e t et e a c h i n ga n d t e s t i n gp r o g r a mf o r l e a r n i n gt h e M o r s ec o d ei n a c a r t r i d g e .F o r C 6 4 o r C 1 2 8 . $ 4 9 . 9 5V E CS P E C I A L $ 3 9 . 9 5
T h e s ep r o d u c t sf o r m e r l ym a n u f a c t u r e db y
G a n dG E L E C T R O N I C SO F M A R Y L A N D
8 5 2 4D A K O T AD R I V E ,G A I T H E R S B U R G ,M D 2 0 8 7 7
( 3 0 1 )2 5 8 - 7 3 7 3
T r a n s a c t o r 7 7 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 80/84
N e w s B R K
G e o sW r i t e r6 4 : T i m e w o r k s ,I n c .h a sr e l e a s e dG e o sW r i t e r
6 4 , a G E O S - b a s e dw o r dp r o c e s s i n gs y s t e mt h a ti n c l u d e s a
W Y S I W Y Gp r e v i e wm o d ea n d h i g hs p e e dt e x t e n t r y ,a n d
i m p o r t sa n de x p o r t st e x ta n dg r a p h i c s .T h ep r o g r a ma l s o f e a
t u r e sa 1 0 0 , 0 0 0 - w o r d ,b u i l t - i ns p e l l i n gc h e c k e r ; aw i d ev a r i e t y
o f s p e c i a l e f f e c tf o n t s ;m a i lm e r g ec a p a b i l i t y ;e x t e n s i v ef o r
m a t t i n gc o n t r o l ;a ' f a s t - d r a f t 'p r i n t i n gm o d e ;h e a d e r sa n df o o t
e r s ; d o c u m e n tc h a i n i n g ,t o p r i n td o c u m e n t so f u n l i m i t e d
l e n g t h ;s i n g l e - k e y s t r o k ec o m m a n do p t i o n ;u s eo f m o u s e ,j o y
s t i c ko r k e y b o a r dt o m o v ea r o u n dt h ed o c u m e n t ;o n l i n eh e l p
s c r e e n s .G e o sW r i t e r6 4 i s s u p p o r t e db y T i m e w o r k s 't e c h n i c a l
s u p p o r tt e a ma t n o c h a r g et o r e g i s t e r e du s e r s .T h ep r o g r a m
l i s t sf o r$ 4 9 . 9 5U S .O r d e rf r o m :T i m e w o r k s ,4 4 4L a k eC o o k
R d . , D e e r f i e l d ,I L 6 0 0 1 5 ,U S A .
G e o sW r i t e r6 4 : T i m e w o r k s ,I n c .h a s r e l e a s e dG e o sW r i t e r
6 4 , a G E O S - b a s e dw o r dp r o c e s s i n gs y s t e mt h a t i n c l u d e s a
W Y S I W Y Gp r e v i e wm o d ea n d h i g hs p e e dt e x t e n t r y ,a n d
i m p o r t sa n de x p o r t st e x ta n dg r a p h i c s .T h ep r o g r a ma l s of e a
t u r e sa 1 0 0 , 0 0 0 - w o r d ,b u i l t - i ns p e l l i n gc h e c k e r ; aw i d ev a r i e t y
o f s p e c i a l e f f e c tf o n t s ;m a i lm e r g ec a p a b i l i t y ;e x t e n s i v ef o r
m a t t i n gc o n t r o l ;a ' f a s t - d r a f t 'p r i n t i n gm o d e ;h e a d e r sa n df o o t
e r s ; d o c u m e n tc h a i n i n g ,t o p r i n td o c u m e n t so f u n l i m i t e d
l e n g t h ;s i n g l e - k e y s t r o k ec o m m a n do p t i o n ;u s e o fm o u s e ,j o y
s t i c ko r k e y b o a r dt o m o v ea r o u n dt h ed o c u m e n t ;o n l i n e h e l p
s c r e e n s .G e o sW r i t e r6 4 i s s u p p o r t e db y T i m e w o r k s 't e c h n i c a l
s u p p o r tt e a ma t n o c h a r g et o r e g i s t e r e du s e r s .T h ep r o g r a ml i s t sf o r$ 4 9 . 9 5U S .O r d e rf r o m :T i m e w o r k s ,4 4 4L a k eC o o k
R d . , D e e r f i e l d ,I L 6 0 0 1 5 ,U S A .
I n v e s t m e n ts t r a t e g yo n t h e C 1 2 8 :S t r a t e g yS o f t w a r eh a s
a n n o u n c e dt h e r e l e a s eo f T h eS t r a t e g i s t ,a C 1 2 8m a r k e tt i m i n g
p r o g r a mf o ri n v e s t o r si n s t o c k s ,b o n d s ,m u t u a lf u n d sa n dc o m
m o d i t i e s .
A c c o r d i n gt o S t r a t e g yS o f t w a r e ,t h et y p i c a lt e c h n i c a l a n a l y s i s
p r o g r a ma p p r o a c h e st h e i n v e s t o r ' sr e a lq u e s t i o n- w h i c hs t r a t
e g yi s b e s t ?- o n l yi n d i r e c t l y .I t a l l o w st h eu s e rt o c h a r ti s s u e
p r i c e s a g a i n s to n eo r s e v e r a li n d i c a t o r ss o t h a th e o r s h ec a n
v i s u a l l yp i c k t h o s et h a ts e e mt o c a l lt h e t u r n si n t h e m a r k e t ,
t h e n u s et h e mt o t i m et r a d e s .B u t ,s a y st h ec o m p a n y ,t h e s ep r o
g r a m sf a i lt o g i v e ah a r dm e a s u r eo f h o wm u c ha g i v e ns t r a t
e g yw o u l dh a v ep a i d( o r c o s t )t h e i n v e s t o rh a dh e o r s h eu s e d
i t i n t h er e a lw o r l di n t h ep a s t .
S t a r t i n gw i t h ah i s t o r i c a lq u o t ef i l ef o rt h e i s s u eo f i n t e r e s ta n d
a s t r a t e g y s p e c i f i e db y t h eu s e r ,S t r a t e g i s tg o e st h r o u g ht h ef i l e
m a k i n gr e a l i s t i cs i m u l a t e dt r a d e st o s e eh o wm u c ht h es t r a t e g y
w o u l dh a v ep a i di n r e a ll i f e .T h e n ,s t a r t i n gw i t ht h eu s e r ' si n i
t i a ls t r a t e g y ,t h ep r o g r a mg o e s t h r o u g ht h eh i s t o r i c a lf i l eo v e r
a n d o v e r ,v a r y i n gt h e s t r a t e g ys l i g h t l ye a c ht i m e ,u n t i li t
a r r i v e sa t a s t r a t e g yt h a tg i v e st h eo p t i m a lp a y o f f .
S t r a t e g i s tu s e sa h i g h - l o wt r a d i n g s y s t e m ,e n h a n c e db y t h eu s e
o f p e r s i s t e n c ec h e c k st o c o n f i r mb u ya n d s e l l s i g n a l sa n d
e x p o n e n t i a la v e r a g e s o fq u o t e - t o - q u o t ev o l a t i l i t yt o m o d i f yt h e
p e r s i s t e n c e s t a n d a r d sa n dt h eb u ya n ds e l lt r i g g e rs e n s i t i v i t i
S t r a t e g i s t c o s t s$ 2 9 . 9 5U S , w h i c hi n c l u d e st h em a i np r o g r a
a n dt w os u p p o r tp r o g r a m s :o n ec r e a t e s h i s t o r i c a lf i l e sa n dt h e
o t h e rt r a c k sw e e k - t o - w e e kp r i c ea c t i v i t y( i n t h e p r e s e n t )f o r
t r a d i n gs i g n a l s .T h ep a c k a g ea l s o i n c l u d e s at e l e c o m m u
t i o n sp r o g r a m ,a s e q u e n t i a lf i l er e a d e ra n ds e v e r a ly e a r so f h i s
t o r i c a lq u o t e sf o ra f i c t i o n a li n s u r a n c ec o m p a n y .T h ep r o g r a
r u n si n c o m p i l e d B A S I C a n di s n o t c o p y - p r o t e c t e d
S o f t w a r e ,B o x1 4 - 2 4 0 3 ,A n c h o r a g e , A l a s k a9 9 5 1 4 ,U S A .
T r o u b l e s h o o t i n ga n dR e p a i r i n gt h e C o m m o d o r e1 2 8 :T A B
B o o k sI n c .h a sa n n o u n c e dt h ep u b l i c a t i o no f T r o u b l e s h
a n dR e p a i r i n gt h eC o m m o d o r e1 2 8b y A r tM a r g o l i s .
T h eb o o ki n c l u d e sa c o m p l e t es e t o f d i a g n o s t i cp r o g r a m st h a t
r e a d e r sc a nu s e t o t e s tt h e i ro w nm a c h i n e s .E v e r yo n eo f t h e
C 1 2 8 ' sc h i p si s d e t a i l e di n a s e p a r a t e c h a r tt h a ts h o w st h ec h i p
l o g i c ,p i n o u t s ,a n d v o l t a g e' s c o p e r e a d i n g s .M a r g o l i sa l s o
d e s c r i b e sh o wt o t a k et h em a c h i n ea p a r ta n dr e a s s e m b l ei t s a f e l y
a n dp r o v i d e st h el a t e s tc h i p - c h a n g i n gt e c h n i q u e s .I n c l u d e da r ea
v i t a l - c h i pl o c a t i o ng u i d ea n dm a s t e rs c h e m a t i co f t h eC 1 2 8 .
T h ec o n t e n t sa l s oi n c l u d e c h a p t e r s o n :t e s tp o i n t s ;s e r v i c it h e l o g i cg a t e s ;s e r v i c i n gd i g i t a l r e g i s t e r s ;t h eP L Ac h i p ; t
m e m o r ym a n a g e m e n tu n i t ;t h e a d d r e s s ,d a t aa n dc o n t r o l b u
t h e8 5 6 3v i d e oc o n t r o l l e r ;a n dt h ep o w e rs u p p l y .
T h eb o o kh a s4 4 8p a g e sa n d2 9 0i l l u s t r a t i o n s .C o s ti s $ 2 4 . 5
C a n .( $ 1 8 . 6 0U S )f o r t h ep a p e r b a c ke d i t i o na n d$ 3 6 . 5 0C a n
( $ 2 7 . 9 5U S )f o rt h eh a r d c o v e rv e r s i o n .T A BB o o k s ,I n c . ,B l u
R i d g e S u m m i t ,P A1 7 2 9 4 - 0 8 5 0 ,U S A .
1 5 8 1t o o l k i t :A c c o r d i n gt o S o f t w a r e S u p p o r tI n t e r n a t i o
i t t o o kn e a r l y1 2 m o n t h st o p r o d u c et h e 1 5 8 1T o o l k i t .T h e
p a c k a g ei n c l u d e st h e f o l l o w i n gf e a t u r e s f o r t h e1 5 8 1u s e r
f a s t d a t a c o p i e r ; t r a c ka n d s e c t o re d i t o r ;b y t e p a t t e r
s e a r c h e r ;f i l et r a c ka n ds e c t o rt r a c e r ;r e l o c a t a b l ef a s tl o a d e r
f a s tf i l ec o p i e r ;d i r e c t o r ye d i t o r ;e r r o r s c a n n e r ;f a s tf o r m a
t e r ; p a r t i t i o nc r e a t o r ;a n d a 1 5 8 1D O SR e f e r e n c eG u i d e
T h ed o c u m e n t a t i o ni s i n a t h r e e - r i n g b i n d e r .S o f t w a r eS u p
p o r tI n t e r n a t i o n a l ,2 7 0 0N . E .A n d e r s e nR d . ,# A - 1 ,V a n c o
v e r ,W A9 8 6 6 1 ,U S A .
I n c o m et a x p r e p a r a t i o n :M a s t e rS o f t w a r ea n n o u n c e st h e
r e l e a s eo f t h e 1 9 8 8v e r s i o no f T a xM a s t e r ,w h i c ha i d si n t h e
p r e p a r a t i o no f U Sf e d e r a li n c o m et a x e s .T h ep r o g r a mi s f o r t h
C 6 4 ,w i t he i t h e ra s i n g l ed i s kd r i v e ,a d u a ld i s kd r i v e ,o r t w o
s i n g l ed i s kd r i v e s .A p r i n t e ri s o p t i o n a l .
T r a n s a c t o r 7 8 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 81/84
T a xM a s t e r1 9 8 8c o v e r sa l l t h en e wt a x l a w s ,a n dg u i d e st h e
u s e rt h r o u g ht h ep r e p a r a t i o no f F o r m s1 0 4 0 a n d4 5 6 2( d e p r e
c i a t i o n ) ,a n d S c h e d u l e sA t h r o u g hF . I t a l s o i n c l u d e s t h et a x
t a b l e s ,f i g u r e s t a x a u t o m a t i c a l l y ,p e r f o r m sa l lc a l c u l a t i o n s ,a n d
t r a n s f e r sr e s u l t sf r o mo n et a xf o r mt o a n o t h e r .
T a xM a s t e r1 9 8 8i n c l u d e sa b u i l t - i nc a l c u l a t o rf u n c t i o nt h a t
c a nb e a c c e s s e da t a n yp o i n ti n t h e p r o g r a m .T h ec a l c u l a t o r
r e s u l t sc a n b et r a n s f e r r e dd i r e c t l y t ot h e l i n eo f t h e t a xf o r m
b e i n gw o r k e du p o n .T h ep r o g r a mr e t a i l sf o r $ 3 2 U S a n d
i n c l u d e sa c o u p o ns a i dt o b e g o o df o ra s u b s t a n t i a ld i s c o u n to n
t h e 1 9 8 9v e r s i o n .M a s t e rS o f t w a r e ,6 H i l l e r y C o u r t ,R a n d a l l -
s t o w n ,M D2 1 1 3 3 ,U S A .
G E O S1 2 8 , v e r s i o n2 . 0 :B e r k e l e y S o f t w o r k sa n n o u n c e sv e r
s i o n 2 . 0o f t h e C 1 2 8 ' sg r a p h i co p e r a t i n ge n v i r o n m e n t .I t
i n c l u d e se n h a n c e dv e r s i o n so f d e s k T o p , g e o P a i n t ,D e s kA c c e s
s o r i e sa n d d i s k T u r b o .S o m eo f t h e n e w f e a t u r e si n c l u d e
s t r e t c h i n ga n ds c a l i n go f i m a g e s ,c o n s t r a i na n dm e a s u r et o o l s
a n dn e wg r a p h i cs h a p e sf o rg e o P a i n t ; s u p p o r tf o rt w od r i v e s
( 1 5 4 1 ,1 5 7 1o r 1 5 8 1 )a n dR A Me x p a n s i o nu n i t ,m u l t i p l ef i l e
s e l e c t i o na n dc o l o u rc o d i n go f f i l e si n d e s k T o p ;a n dc u ta n d
p a s t e o p t i o n sa n da u t o m a t i co p e n i n go f t h ef i r s tp h o t oa l b u m
o n d i s kf o r t h eD i s kA c c e s s o r i e s .
G E O S1 2 82 . 0a l s oi n c l u d e ss e v e r a ln e wa p p l i c a t i o n s :
• g e o W r i t eW o r k s h o p1 2 8i s a w o r dp r o c e s s o rt h a tf e a t u r e s :
i n d i v i d u a lp a r a g r a p hf o r m a t t i n g ;l e f t ,r i g h t ,c e n t r ea n df u l l
j u s t i f i c a t i o n ;h e a d e r sa n df o o t e r s ;d e c i m a lt a b s ;f u l lp a g e
p r e v i e w ;1 1 f o n t si n s e v e ns t y l e sa n dm u l t i p l es i z e s ;m i x i n g
o f t e x ta n dg r a p h i c s ;s u p p o r tf o r m u l t i p l ec o l u m n s ,h e a d
l i n e sa n db o r d e r s ;a n dP o s t S c r i p to u t p u tt o t h eA p p l eL a s e rW r i t e r
• g e o S p e l l1 2 8o p e r a t e si n 8 0 c o l u m n sa n dp e r m i t sv i e w i n g
o f d i c t i o n a r i e sa n dd o c u m e n t sw h i l ec h e c k i n gs p e l l i n g .I t
a l l o w st h e c r e a t i o na n du p d a t i n go f p e r s o n a ld i c t i o n a r i e s
a n ds u p p o r t s g l o b a l s e a r c ha n dr e p l a c e ;
• T e x tG r a b b e rl e t s t h e u s e ri m p o r tt e x tf r o m a n yC o m
m o d o r ew o r dp r o c e s s o r ;
• g e o M e r g ep r o v i d e sm a i lm e r g ec a p a b i l i t y .
U n t i lA p r i l1 5 , 1 9 8 9 ,G E O S1 2 82 . 0i s a v a i l a b l et o r e g i s t e r e d
u s e r so f G E O S1 2 8f o r$ 3 5U S ,p l u s$ 4 . 5 0U S s h i p p i n ga n d
h a n d l i n g( a d d$ 2 . 4 5s a l e st a xi f i n C a l i f o r n i a ) ,f r o mB e r k e l e yS o f t w o r k sF u l f i l l m e n tC e n t e r ,5 3 3 4S t e r l i n gC e n t e rD r i v e ,
W e s t l a k eV i l l a g e ,C A9 1 3 6 1 ,U S A .
G e n e a l o g i c a ls o f t w a r e :Q u i n s e p tI n c .h a sc r e a t e da l i n eo f
g e n e a l o g i c a l s o f t w a r ef o r t h eC 6 4 :
• L i n e a g e s / S t a r t e rl e t st h eu s e rs t o r ed a t af o ru p t o 5 7 0p e o
p l e ,p r i n ta l p h a b e t i cl i s t si n a v a r i e t yo f w a y s ,a n dp r i n t
d e s c e n d a n tc h a r t sa n dt h r e ek i n d so f a n c e s t o rc h a r t so n a
C o m m o d o r ep r i n t e r .
• L i n e a g e s / S t a n d a r dd o e s e v e r y t h i n gf o u n d i n L i n
e a g e s / S t a r t e ra n d a d d sc r o s s - r e f e r e n c i n ga n dp r i n t i n go f
a d d r e s sl a b e l s ,a n d i n f o r m a t i o ns h e e t ss h o w i n gw h a ti s
s t o r e df o re a c hp e r s o n .
• L i n e a g e s / A d v a n c e dp e r m i t st h e u s eo f a l m o s ta n yp r i n t e r
a n d u pt o f o u r d i s kd r i v e s .T h eu s e rc a n c u s t o m i z et h ep r o
g r a m ,f o re x a m p l e ,t o h a v ei t a l w a y sp r i n tl a s tn a m ef i r s t ,o r
t o a d da n o c c u p a t i o n .I t c a nd o s e a r c h e si n a n u m b e ro f
w a y s .A s m a l lb u i l t - i nw o r dp r o c e s s o r p e r m i t st h e a d d i t i o
o f s t o r i e st o e a c hp e r s o n ' sd a t a .T h i sv e r s i o na l s oc o m e s
w i t ht e l e p h o n ea n dm a i ls u p p o r t .
• F a m i l yR o o t sa d d sm a n ym o r ec a p a b i l i t i e st o t h e L i n
e a g e s / A d v a n c e dp r o g r a m ,i n c l u d i n g t h eu s e o ff u n c t i o n
k e y sf o rq u i c ke n t r yo f r e p e t i t i v ep l a c en a m e so r s u r n a m e s
t r a c i n go f a n e wl i n eo f r e l a t i o n so n t h es c r e e na n ds e n d i n g
o n l yt h o s ey o uw i s ht o t h ep r i n t e r ;m a k i n ga c h a r ts h o w i n g
o n l yt h e f a t h e r ' sl i n e ;a n d s o o n . T h i sp r o g r a mi s a l s o
a v a i l a b l e f o r t h eC 1 2 8i n i t sn a t i v em o d e .
• T r e eC h a r t si s a s u p p l e m e n t a lp r o g r a mt o b o t hL i n e a g e
a n d F a m i l y R o o t se n a b l i n gt h e u s e rt o c r e a t ea n dp r i n ta
g r a p h i c a l r e p r e s e n t a t i o no f t h ef a m i l yt r e e .
Q u i n s e p tI n c .c a n b e r e a c h e da t B o x2 1 6 ,L e x i n g t o n ,M A
0 2 1 7 3 ,U S A .T e l e p h o n e( 6 1 7 ) 6 4 1 - 2 9 3 0 .Q u i n s e p ti s r e p r e
s e n t e di n C a n a d a b yG e n e r a t i o nP r e s sI n c . ,1 7 2K i n gH e n r y ' s
B o u l e v a r d ,A g i n c o u r t ,O NM I T2 V 6 .T e l .( 4 1 6 )2 9 2 - 9 8 4 5 .
N e wC 1 2 8C P / Md i s t r i b u t o r :P o s e i d o nE l e c t r o n i c so f N e w
Y o r k ,N Yh a sb e e na p p o i n t e dp r i m a r yU S d i s t r i b u t o ro f t h e
l i n eo f C 1 2 8C P / Ms o f t w a r ef r o m H e r n eD a t a S y s t e m so f
T o r o n t o ,O N .P o s e i d o ni s w e l l - k n o w nf o r i t s d i s t r i b u t i o no f
C o m m o d o r es p e c i f i cC P / Ms o f t w a r ea n dw i l li n i t i a l l yh a n d l e
t w oH e r n e D a t ap r o d u c t s :J U G G ' L E R - 1 2 8 ,v e r s i o n3 . 4 ,a n d
Q D i s k ,v e r s i o n2 . 1 .T h ef o r m e rp r o g r a mi s a d i s ku t i l i t yf o r t h e
1 5 7 1a n d1 5 8 1t h a ta l l o w st h e mt o r e a d ,w r i t ea n df o r m a t o v
1 4 0 t y p e so f 5 1 / 4 a n d3 1 / 2 C P / Md i s k s .T h el a t t e ri s am e m o r y - r e s i d e n td e v i c ed r i v e rt h a tp r o v i d e sC P / Mm o d es u p
p o r tf o r t h eQ u i c kB r o w nB o x ,a b a t t e r y - b a c k e dC M O SR A M
c a r t r i d g et h a to p e r a t e sa s a n o n - v o l a t i l eR A Md i s kd r i v e .P o s e i
d o nE l e c t r o n i c s ,1 0 3W a v e r l yP l a c e ,N e wY o r k ,N Y 1 0 0 1 1 ,
U S A .T e l e p h o n e( 2 1 2 )7 7 7 - 9 5 1 5 .
B a s i c 8r e t u r n s !F r e eS p i r i tS o f t w a r eI n c .h a s i n t r o d u c e ds e v
e r a l p r o d u c t sf o r t h e C 1 2 8a n d C 6 4 ,i n c l u d i n ga n e w l y -
e n h a n c e dv e r s i o no f B a s i c8 , w h i c ha d d so v e r5 0 g r a p h i cc o m
m a n d st o B A S I C7 . 0 .S e v e r a lp r e p r o g r a m m e dB a s i c8 a p p l i c a
t i o n sa r e i n c l u d e d :B a s i cP a i n t ,W r i t ea n dC a l c .F r e eS p i r i ti s
a l s oo f f e r i n ga B a s i c8 T o o l k i tf e a t u r i n ga p o i n ta n dc l i c ko p e ra t i n gs y s t e mt h a tl e t su s e r s c r e a t ec u s t o mp o i n t e rf o n t s ,p a t
t e r n sa n di c o n s .T h eT o o l k i ta l s oa l l o w st h e u s e rt o c o n v e r t
P r i n tS h o pg r a p h i c si n t oB a s i c8 g r a p h i c sf i l e s ,a n dp r o v i d e s
n u m b e ro f d i s ku t i l i t i e st h a ti n c l u d em a k ea u t o b o o t ,c o n v e r t
i c o nf i l et o b r u s hf i l e ,s c r a t c hf i l e ,r e n a m ef i l e ,t o g g l e d r i v
a n ds o o n .B a s i c8 h a sa s u g g e s t e dr e t a i lp r i c eo f $ 3 9 . 9 5U S ;
t h eT o o l k i ti s a v a i l a b l ef o r$ 1 9 . 9 5 .
A l s oa v a i l a b l e :
• S k e t c h p a d1 2 8p r o v i d e s f r e e - h a n dd r a w i n go n a 6 4 0x 2 0 0
s c r e e n ,w i t hn u m e r o u sd r a w i n gt i p sa n df o n t s .O u t p u ti s
c o m p a t i b l ew i t hB a s i c8 , P r i n tS h o p ,N e w sM a k e r1 2 8a n d
T r a n s a c t o r 7 9 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 82/84
S p e c t r u m1 2 8 .P r i c ei s $ 2 9 . 9 5U S .
N e w sM a k e r1 2 8 i s a d e s k t o pp u b l i s h i n gp r o g r a mf o r
n e w s l e t t e r s ,r e p o r t s ,s i g n sa n d p o s t e r s .I t u s e s s t a n d a r d
s e q u e n t i a lf i l e sf o r ' p o u r i n g 't e x ti n t ou s e r - d e f i n e dc o l u m
n s . F u l l p a g el a y o u t ,p o p d o w nm e n u s , s m o o t hs c r e e n
s c r o l l i n g ,f o n ts e l e c t i o n ,c u t , p a s t e ,m i r r o ra n d f l i p a r e
a m o n gt h eo p t i o n sa v a i l a b l e .C o s ti s $ 2 9 . 9 5U S .
S p e c t r u m1 2 8i s a m e n u - o p e r a t e dp a i n tp r o g r a mf o r t h e
C 1 2 8 Dt h a tc a n d i s p l a y t h e1 6 s t a n d a r d c o l o u r sa n da n
a d d i t i o n a l1 2 8c o l o u r st h r o u g hc o l o u rd i t h e r i n go n a 6 4 0x
2 0 0 s c r e e n .I t s f e a t u r e si n c l u d ea i r b r u s h ,e r a s e , m i r r o r ,
m u l t i c o l o u r ,b l o c kf i l lo r e r a s e ,p i x e le d i t o r ,c o l o u re d i t o r ,
f o n t s ,s l i d es h o wa n do t h e r s .I t r e q u i r e s t h e1 3 5 1o r c o m
p a t i b l em o u s ea n dc o s t s$ 3 9 . 9 5 .
L a n d m a r kT C R Bi s n o tc o p yp r o t e c t e da n dc a n b eb a c k e du p
t o 1 5 8 1 s ,I E E Ed r i v e ss u c ha s t h eS F D1 0 0 1o r t o a h a r dd i s k
B u r s tm o d ei s u s e dw i t h1 5 7 1a n d1 5 8 1d r i v e s .T h es p e e do f
a n ys e a r c hi s e n t i r e l yd e p e n d e n to n t h es p e e do f t h ed i s k d r i
u s e d .C o m m e r c i a ld i s ks p e e d u pp r o d u c t sw i l l w o r kw i t h
L a n d m a r k( L o a d a n ds e a r c hf i l e so n o n es i d eo f a d i s k :s t o c k
1 5 4 1- 6 : 0 0m i n . ;w / E p y xF a s tL o a d -1 : 3 8 m i n . ) .
L a n d m a r kw i l la l l o wy o ut o e x t r a c ti n f o r m a t i o nt o c r e a t ey o u r
o w nt o p i c a lf i l e s .T h e s ec a nb e m a n i p u l a t e dw i t hL a n d m a r
o w ne d i t i n g f e a t u r e so r y o uc a n u s e t h e F i l eC o n v e r t e t o
e x p o r tf i l e st h a tc a n b e u s e dw i t h P a p e r c l i p ,E a s yS c r i p t
g e o W r i t e( v 2 )o r F l e e t S y s t e m .L a n d m a r ki s w r i t t e ni n 1 0 0 %
M Lf o rs p e e d .F u l l ym e n u - d r i v e nf o re a s eo f u s e .
F r e eS p i r i th a sa l s oi n t r o d u c e ds o m eC 6 4p r o d u c t s ,i n c l u d i n g
f o u rg r a p h i c sp r o g r a m sw h i c hh a v e b e e nl i c e n s e df r o mS o l u
t i o n sU n l i m i t e d ,I n c . :I c o nF a c t o r yi s a g r a p h i c sc o n v e r s i o n
u t i l i t y( $ 3 4 . 9 5U S ) ;S c r e e nF I Xi s a s l i d e s h o wc r e a t i o na n d
p r e s e n t a t i o np r o g r a m( $ 3 4 . 9 5U S ) ;B i l l b o a r dM a k e rt a k e s
g r a p h i c sf r o m m o s td r a w i n gp r o g r a m sa n dc o n v e r t st h e mt o 4 -
f t . x 3 - f t .s i g n s( $ 3 4 . 9 5U S ) ;a n dP h o t oF i n i s h o p t i m i z e st h e
c l a r i t yo f t h e p r i n t e di m a g e( 6 4 0x 4 0 0r e s o l u t i o n- $ 2 9 . 9 5
U S ) .
E S PT e s t e r( $ 2 4 . 9 5U S )n o wi n c l u d e s a v e r s i o nt h a t w i l lr u n
o n t h eC 6 4 .T h ep r o g r a mi s s a i dt o u s et h em e t h o d sd e v e l o p e d
b y D r . J . B . R h i n ea n dt h e F o u n d a t i o nf o r R e s e a r c ho n t h e
N a t u r eo f M a nt o t e s t f o r c l a i r v o y a n c e ,p r e c o g n i t i o na n d
t e l e p a t h y .
M A C H( M a n e u v e r a b l eA r m e dC o m p u t e rH u m a n s )i s a n
a r c a d e - s t y l e ,s h o o t ' e m - u pg a m ef o r t h eC 6 4t h a t f e a t u r e s" t h eu l t i m a t ew a r r i o ro f t h ef u t u r e "( $ 2 9 . 9 5U S ) .O r d e rf r o m :F r e e
S p i r i tS o f t w a r eI n c . ,P . O .B o x 1 2 8 ,K u t z t o w n ,P A 1 9 5 3 0 ,
U S A .T e l e p h o n e( 2 1 5 )6 8 3 - 5 6 0 9 .
G u i t a rc h o r de a rt r a i n i n g :C h o r dP r i n t e ri s a d i c t i o n a r yo f
g u i t a rc h o r df i n g e r i n g sf o rt h eC 6 4c o n t a i n i n g 1 9o f t h em o s t -
u s e dc h o r dt y p e si n p o p u l a rm u s i c .U s e r s c a nl e a r nt h ec h o r d
f o r m u l a sf o re a c ht y p ea n dt h e i rs o u n db y l i s t e n i n gt o t h eC 6 4
p l a yt h e ma s a r p e g g i o s .O t h e ro p t i o n s i n c l u d eu t i l i t i e sf o r
p r i n t i n gh a r dc o p i e so f s t a f fp a p e r ,t a b l a t u r ep a p e r ,b l a n kf i v e -
f r e td i a g r a m sa n dr o o t - n o d el i s t i n g sf o r t h ef o u r t h ,f i f t ha n d
s i x t hs t r i n g s .C h o r dP r i n t e ri s a v a i l a b l ea t a c o s to f $ 1 9 . 9 5U Sf r o mC o m p u t e r s ,E t c ! ,D e p t .G C P , 4 5 2 1 - A B e eR i d g eR d . ,
S a r a s o t a ,F L3 4 2 3 3 ,U S A .T e l e p h o n e( 8 1 3 )3 7 7 - 1 1 2 1o r ( 8 0 0 )
6 3 4 - 5 5 4 6( o r d e r s , o n l y ) .
K i n g J a m e sB i b l eo n C 6 4 :L a n d m a r k ,t h eC o m p u t e rR e f e r
e n c eB i b l ec o n s i s t so f t h e e n t i r eK i n g J a m e sv e r s i o no f t h e
B i b l eo n 2 4 d o u b l e - s i d e dd i s k s .T h e L a n d m a r ks o f t w a r ep r o
v i d e s a c c e s st o t h ed i s k s ,w i t hi n d i v i d u a lv e r s e r e f e r e n c e sa n d
t h e w o r d so f C h r i s th i g h l i g h t e di n c o l o u r .A c o n c o r d a n c eo f
o v e r3 , 3 0 0o f t h em o s tf r e q u e n t l yl o o k e df o rw o r d si s a l s op r o
v i d e do n s i xd o u b l e - s i d e dd i s k s .T h ep r o g r a me n a b l e st h eu s e r
t o , f o re x a m p l e ,c r e a t ea p e r s o n a lB i b l e ,c o m p l e t ew i t hn o t e s ,
c o m m e n t s ,r e f e r e n c i n ga n do u t l i n i n go f t e x t .
C o s ti s $ 1 1 9 . 9 5U S .P A V YS o f t w a r e ,P . O .B o x1 5 8 4 , B a l l
M O6 3 0 2 2 ,U S A .
F r e es o f t w a r ef r o mM e m o r e x :M e m o r e xh a se s t a b l i s h a
' f r e q u e n tb u y e r 'p r o g r a mt h a t l e t s c u s t o m e r sb u i l dp o i n t
t o w a r df r e es o f t w a r e .T i t l e sa v a i l a b l ei n c l u d et h e P F Ss e r i e
f r o mS o f t w a r eP u b l i s h i n gC o r p . ,a n do t h e r sf r o mA c c o l a d
A c t i v i s i o nD i s k - C o u n tS o f t w a r e ,E l e c t r o n i cA r t s ,I n d i v i d
a n d P u b l i s h i n gI n t e r n a t i o n a l( B y t e - S i z e ) .T h ep r o g r a mp r o
m o t e st h ef u l ll i n eo f M e m o r e xc o m p u t e rs u p p l i e s ,i n c l u d i
d i s k sa n dp a p e r . I n s t r u c t i o n sa n da c o m p l e t el i s to f a v a i l a b
s o f t w a r ea r e o n e a c hp a c k a g e .M e m o r e xC o m p u t e rS u p p l i e
2 4 0 0 C o n d e n s aS t . ,S a n t aC l a r a ,C A9 5 0 5 1 - 0 9 9 6 ,U S A .T e l e
p h o n e( 4 0 8 )9 5 7 - 1 0 0 0 .
W EW O N TP A YY O U RT A X E S !B u tT A XM A S T E Rw i l lh e l py o uc o m p u t e t h e m m o r eQ U I C K L Ya n d E A S I L Y .B e t h e
M a s t e ro f y o u rI n c o m eT a x e sw i t hT A XM A S T E R ,n o wa v a i l a b l ef o r y o u r1 9 8 8F e d e r a l
I n c o m eT a x e sf o rt h eC - 6 4 / C - 1 2 8w i t h s i n g l e , t w i n o rd u a ld i s k d r i v ea n do p t i o n a lp r i n t e r .
• N E WT a xl a w s a r e c o v e r e d .
• F O R M S1 0 4 0 , 4 5 6 2 ,& S c h e d u l e sA , B , C , D , E & F .
• P E R F O R M Sa l l a r i t h m e t i cC O R R E C T L Y .
• E A S YC H A N G Eo f a n ye n t r y w i t ha u t o m a t i cR E C A L C U L A T I O No f t h ee n t i r ef o r m .
• T R A N S F E R Sn u m b e r sb e t w e e nf o r m s .
• C A L C U L A T E Sy o u rt a x e sa n dR E F U N D .T a xt a b l e sa r e i n c l u d e d .
• S A V E Sa l l y o u rd a t at o d i s kf o r f u t u r ec h a n g e s .
• P R I N T St h e d a t af r o me a c hf o r m .
• C A L C U L A T O Rf u n c t i o ni s b u i l t - i n .
• D I S C O U N Tc o u p o nt o w a r dt h ep u r c h a s eo f n e x ty e a r ' su p d a t e dp r o g r a mi s i n c l u d e d .
T A XM A S T E R ( O ND I S K ) O N L Y$ 3 2 . 0 0
T I R E DO F S W I T C H I N GC A B L E S ?V I D E OM A S T E R1 2 8p r o v i d e s c o n t i n u o u s8 0 c o l u m nc o l o r( R G B I ) ,8 0 c o l u m nm o n o
c h r o m ea n da u d i oo u t .S w i t c hb e t w e e n 8 0 c o l u m nm o n o c h r o m ea n d 4 0 c o l u m nc o l o r
f o rc o m p o s i t em o n i t o r .U s eu p t o 4 m o n i t o r sa t o n c e !I n c l u d e sc o m p o s i t ec a b l e .
V I D E OM A S T E R1 2 8 f o r C o m m o d o r e1 2 8 $ 3 9 . 9
F E DU P W I T HS Y N T A X E R R O R SH E L PM A S T E R6 4 p r o v i d e si n s t a n tO n - L i n e H e l p s c r e e n sf o r a l l 6 9 B A S I Cc o m m a n d
w h e ny o u n e e dt h e m .T a k e s n oB A S I CR A M . N oi n t e r f e r e n c ew i t h l o a d i n g ,s a v i n g ,e d i t i n g o rr u n n i n gB A S I Cp r o g r a m s .I n c l u d e s3 6 8 p a g e B A S I Cr e f e r e n c et e x t ,m o r e .
H E L PM A S T E R6 4 f o r C o m m o d o r e6 4 , 6 4 C $ 2 4 . 9 5
O T H E RM A S T E RS O F T W A R EI T E M SR E S E TM A S T E RC - 6 4( n o t6 4 C )r e s e ts w i t c hw / 2s e r i a lp t s $ 2 4 . 9 5
C H I PS A V E RK I Tp r o t e c t sc o m p u t e r ' sc h i p sf r o ms t a t i c 5 . 9 5
M O D E MM A S T E Ru s e rp o r te x t e n d e r $ 2 9 . 9 5 ;w / r e s e t 3 4 . 9 5
Y - N O T ?6 - f o o ts e r i a lY c a b l e ,1 m a l e ,2 f e m a l ec o n n e c t o r s 1 5 . 0 0
Y - Y E S !6 - f o o ts e r i a lY c a b l e ,3 m a l ec o n n e c t o r s 1 5
C - 1 2 88 0 c o l .m o n o c h r o m ec a b l ef o r n o n - R G Bm o n i t o r 9 . 0 0
D i s kN o t c h e r — l e t sy o u u s eb o t hs i d e so f d i s k 6 . 0 0
6 4 - T R A NT h eo n l y F o r t r a nc o m p i l e rf o rC - 6 4 / 6 4 C 5 0 . 0 0
M A (S e n df o rF r e eC a t a l o g
1 T E Rq J o f t w a r e
6 H i l l e r y C t .
R a n d a l l s t o w n ,M D2 1 1 3 3
( 3 0 1 )9 2 2 - 2 9 6 2
A D D$ 2 . 0 0p e ro r d e r s h i p p i n g& h a n d l i n gU S
a n dC a n a d a ,$ 7 . 0 0f o r e i g n .A l l p r i c e si n U S
D o l l a r s .C a n a d i a no r d e r su s e C a n a d i a
P O S T A L m o n e yo r d e r .M a r y l a n dr e s i d e n t s
a d d5 % t a x .D e a l e ri n q u i r i e sw e l c o m e !
T r a n s a c t o r 8 0 A p r i l1 9 8 9 :V o l u m e9 , I s s u e4
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 83/84
T H €F I N A LC A R T B I D Q lH 4 P O o m p .H o l l a n dw o- 4 2 3 1 9 « 2
9 " P A C M f t N7 2 " F L I G H T7 0 ? "1 1 " B A L L E T J E "
' U N1 1 U h I I D A T E1 1S C R A T C H|
B 4 " E X P L 0 D I N 0 - F l i - T5 7 " H E - M A N "1 8 B L O C K SF R E E
1 P I R 2 |U P
F I N A LC A R T R I D G EH IT h eB e s tU t i l i t yE v e rf o rY o u rC - 6 4o r 1 2 8
O n l y ! $ 6 9 . 9 5O n l y !S P E C I A L V A L U E :
T o t a lR e t a i lV a l u e ,T h i sp o w e r f u lR O M - b a s e do p e r a t i n g
s y s t e mc o n t a i n s e a s y - t o - u s ew i n d o w s
a n dp u l ld o w nm e n u s .A l l o w i n gt h e
u s e rt o s e l e c te i t h e rm o u s e ,j o y s t i c k
o r k e y b o a r d ,h e m a ya c c e s so v e r 6 0
n e wc o m m a n d sa n df u n c t i o n s .L e t
y o u rC - 6 4p e r f o r ml i k ea n A m i g a .
V a r i o u sp r i n t e ri n t e r f a c e s a sw e l la s a
b a s i ct o o l k i tc a na l s ob e a c c e s s e d .
E x t e n d e dM LM o n i t o r
D o e sn o tr e s i d ei n m e m o r y !I n c l u d e s 1 5 4 1
d r i v e a c c e s sa n ds p r i t ee d i t i n g .F e a t u r e s
u p a n dd o w ns c r o l l i n ga n dp r i n t e rd r i v e r !
N o t e P a d / W o r d P r o c e s s o r
C o n t a i n sp r o p o r t i o n a l c h a r a c t e r sa n d w o r d
w r a p .E n a b l e sy o ut o s t o r ea n dp r i n t s m a l l
n o t e s ,e t c .
F a s t e s tD i s kL o a d i n gE v e r !
C o n t a i n s2 d i s kl o a d e r s ,w i t h s p e e d su p t o
1 5 xf a s t e rt h a nn o r m a l !
T r a n s f o r mY o u rC - 6 4I n t oA n A m i g aL o o k - A u k e !
V a r i o u sw i n d o w ss u c ha s : P r e f e r e n c e s ,
T a p e , D i s kW i n d o w s ,D i r e c t o r y ,P r i n t e r&
C l o c ka l l o wy o ut o f e e la s i f y o ua r e
w o r k i n gi n t h e s a m ef r i e n d l ye n v i r o n m e n t
a s t h eA m i g a !
E a s y - t o - U s eM e n uB a r
A l m o s ta n yc o m m a n dn o ta c t i v a t e db y
w i n d o w sc a n b ea c c e s s e d w h i l ei n B a s i c
b y j u s tt y p i n gi n B o x .
B a s i cT o o l k i t& K e y b o a r dE x t r a s
I n c l u d e s :R e n u m b e r i n g ,a u t o ,o l d ,d e l e t e ,
k i l l ,s a v e ,2 4 KR A Mf o r B a s i c ,f a s tf o r m a t
a n dm a n y ,m a n ym o r e .
" . . . / c a n ' tb e g i nt o t h i n ko f a c a r t r i d g e
w h i c hd o e ss o m a n yu s e f u lt h i n g s .. . a t r e
m e n d o u sv a l u e ,a m u s ti t e m ,f o r t h eB AS I Ca n d m a c h i n el a n g u a g ep r o g r a m m e r . "
— A r tH u n k i n s ,C o m p u t e ' sG a z e t t e7 / 8 7
F R E EJ o y s t i c ka n dF R E E1 0 0P A R A M E T E RP A K ,
$ 3 9 . 9 5 , w i t h e a c h p u r c h a s eF I N A LC A R T R I D G EmS t a t eo f t h eA r tF r e e z e r
I n c l u d e sv a r i a b l es i z es c r e e nd u m p s( c o l o r
i f E p s o nc o l o ro r N E Ci s u s e d ) .A l l o w st o
t a l b a c k u po f a n ym e m o r y - r e s i d e n ts o f t
w a r eo n t h em a r k e tt o d a y !F i l e sa r e
p a c k e da n dr e l o a d a b l ew i t h o u t t h ec a r
t r i d g e ,6 0 Ki n j u s t1 5 s e c o n d s . E x i t st o
B a s i c o rM Lm o n i t o r .
G a m e sK i l l e r
K i l l ss p r i t e t o s p r i t ea n d / o rb a c k g r o u n d
c o l l i s i o n .C a nb e s t a r t e da t a n yp o i n ti n
y o u rg a m e s .
A u t oF i r eE n g i n e
T r a n s f o r m sn o r m a lj o y s t i c ki n t oa n a u t o
f i r e !
E a s y - t o - U s eR e s e tS y s t e m
R e s e ty o u rc o m p u t e rb y t h e s i m p l e t o u c h
o f ab u t t o n ! !W o w ! !
' W on e e df o r a l l t h o s ee x t r a sw h e ny o u
h a v et h i sC - 6 4a s s i s t a n t .. .a c o n v e n t i o n a l
r e v i e wd o e s n ' td o t h eF i n a lC a r t r i d g ej u s
t i c e .. . f u na t a p r i c ei s a r a r i t y . "
- T i mW a l s h ,R U NM a g a z i n e9 / 8 7
C O M P U T E R SO F A M E R I C A
H o m e& P e r s o n a lC o m p u t e r so f A m e r i c a
1 5 4V a l l e y S t r e e t
S o u t hO r a n g e ,N J 0 7 0 7 9
2 0 1 - 7 6 3 - 3 9 4 6 ,d e a l e r so n l y ,2 0 1 - 7 6 3 - 1 6 9 3
I N T R O D U C I N GS U P E RC A R DB a c k su p a n ys o f t w a r e p r o g r a m !
E v e nt h e l a t e s tp r o t e c t i o ns c h e m e s !
P l u g si n t oy o u rd r i v ew i t ho n l y t h e
u s eo f a s c r e w d r i v e r .I f a n y t h i n g
c o u l db a c ku p e v e r y t h i n g ,t h i si s i t .
1 0 0 %s a t i s f a c t i o ng u a r a n t e e d !1 0 d a y
o r m o n e yb a c kg u a r a n t e e !
O N L Y$ 3 9 . 9 5 !
F I N A LC A R T R I D G EI I
O N L Y$ 2 4 . 9 5C a l lo r w r i t ef o rm o r ei n f o r m a t i o n
A t t e n t i o n S c h o o l sa n dE d u c a t o r s :
C - S c a n+ i s t h eu l t i m a t en e t w o r kf o rC o m m o d o r e
c o m p u t e r s ,e i g h tc o m p u t e r ss h a r eo n eo r t w od i s k
d r i v e s ,a n do n l yo n ep r i n t e ra n ds o f t w a r ep r o g r a mi s
n e e d e d .
S i m p l ei n s t a l l a t i o n ,a u t o s c a n n i n ga n da u t op o w e ro n .
W o r k sp e r f e c t l yw i t hT h eF i n a l C a r t r i d g e .1 y e a r
w a r r a n t y .
C - S c a n + $ 1 9 9 . 9 5
C a b l e sa v a i l a b l ei n t h e f o l l o w i n gl e n g t h s :
9 f t . . . $ 1 3 . 9 5
1 8 f t . . . $ 1 7 . 9 5
3 6 f t . . . $ 1 9 . 9 5
E X T R A SA V A I L A B L E
• F i n a lC a r t r i d g eI $ 1 4 . 9 5
* C - 1 3 5 1M o u s e $ 3 2 . 9 5
D e l u x eJ o y s t i c k $ 8 . 9 5
C e n t , p r i n t e r
c a b l e *( o p t i o n a l ) $ 1 9 . 9 5* L i m i t e dq u a n t i t i e sa v a i l a b l e .
O r d e r i n gI n f o :O r d e r s O n l yC a l l :
1 - 8 0 0 - 4 5 8 - 8 6 8 2M C / V i s aa c c e p t e d .M o n e yo r d e r s{ i m m e d i a t es h i p m e n t s ) .
P e r s o n a lc h e c k( a l l o w2 - 3w e e k sf o rc h e c kc l e a r i n g ) .N Y&
N J r e s i d e n t sa d da p p r o p r i a t es a l e st a x .A d dS 3 . 0 0f o r s / h .
Q u e s t i o n sa n di n f o , c a l l :
( 2 0 1 ) 7 6 3 - 3 9 4 6
F a x : ( 2 0 1 )7 6 3 - 1 6 9 3
A N YP R O D U C TP U R C H A S E DF R O M
D A T E L E L E C T R O N I C SW I L LN O TB E G U A R A N T E E DB Y H & P
C O M P U T E R .
8/7/2019 The Transactor V9 04 1989 Apr
http://slidepdf.com/reader/full/the-transactor-v9-04-1989-apr 84/84
S o f t w a r eI n c .
" . . . e x c e l l e n t ,e f f i c i e n tp r o g r a mt h a tc a nh e l py o u s a v eb o t h
m o n e ya n d d o w n t i m e . " C o m p u t e r sG a z e t t e
1 S 4 1 U 5 7 1 D « . ,1 9 8 7D R I V EA L I G N M E N T
1 5 4 1 / 1 5 7 1D r i v eA l i g n m e n tr e p o r t st h e a l i g n m e n tc o n d i
t i o no f t h e d i s kd r i v ea s y o up e r f o r ma d j u s t m e n t s .O n
s c r e e nh e l pi s a v a i l a b l ew h i l e t h ep r o g r a mi s r u n n i n g .I n
c l u d e sf e a t u r e sf o rs p e e da d j u s t m e n t .C o m p l e t ei n s t r u c t i o n
m a n u a lo n a l i g n i n gb o t h1 5 4 1a n d1 5 7 1d r i v e s .E v e ni n
c l u d e si n s t r u c t i o n so n h o wt o l o a da l i g n m e n tp r o g r a mw h e n
n o t h i n ge l s ew i l ll o a d !W o r k so n t h eC 6 4 ,S X 6 4 ,C 1 2 8i n
e i t h e r6 4 o r 1 2 8m o d e ,1 5 4 1 , 1 5 7 1i n e i t h e r1 5 4 1o r
1 5 7 1m o d e !A u t o b o o t st o a l l m o d e s .S e c o n dd r i v ef u l l y
s u p p o r t e d .P r o g r a md i s k ,c a l i b r a t i o nd i s ka n d i n s t r u c t i o nm a n u a li n c l u d e d .
S u g g e s t e dr e t a i lp r i c e$ 3 4 . 9 5
S u p e r8 1 U t i l i t i e si s a c o m p l e t eu t i l i t i e sp a c k a g ef o r t h e
1 5 8 1d i s kd r i v e .S e p e r a t ev e r s i o n a r ea v a i l a b l ef o rC 6 4o r
C 1 2 8 .A m o n gt h e m a n yS u p e r8 1 U t i l i t i e sf e a t u r e sa r e :
• C o p yw h o l ed i s k sf r o m1 5 4 1o r 1 5 7 1f o r m a tt o 1 5 8 1
p a r t i t i o n s .
• C o p y1 5 4 1o r 1 5 7 1f i l e st o 1 5 8 1d i s k s• B a c k u p 1 5 8 1d i s k so r f i l e sw i t h1 o r 2 1 5 8 1s
• S u p p l i e do n b o t h . 3 W 'a n d5 W d i s k e t t e ss o t h a ti t w i l l
l o a do n a 1 5 4 1 , 1 5 7 1o r 1 5 8 1d r i v e
• P e r f o r m sn u m e r o u sD O Sf u n c t i o n ss u c ha s r e n a m ea d i s k ,
r e n a m ea f i l e ,s c r a t c ho r u n s c r a t c hf i l e s ,l o c ko r u n l o c k
f i l e s ,c r e a t e a u t o - b o o ta n dm u c hm o r e !
S u p e r8 1 U t i l i t i e su s e sa n o p t i o nw i n d o wt o d i s p l a ya l l
c h o i c e sa v a i l a b l ea t a n yg i v e nt i m e .A f u l lf e a t u r e dd i s k
u t i l i t i e ss y s t e mf o rt h e 1 5 8 1 !
S u g g e s t e dr e t a i lp r i c e$ 3 9 . 9 5
M L/ A
S k e t c h p a d1 2 8 *
C o m p l e t e d r a w i n gs y s t e mf o r t h e C o m m o d o r e 1 2 8a n d
1 3 5 1M o u s e . S k e t c h p a d1 2 8t a k e sa d v a n t a g eo f t h ec r i s p
8 0 c o l u m ng r a p h i c sc a p a b i l i t i e so f t h e C 1 2 8 .S m o o t h
f r e e h a n d d r a w i n g ,6 4 0 x 2 0 0 d r a w i n gs c r e e n ,w i d e
s e l e c t i o no f d a w i n gt i p s ,m a n yf o n t sp r o v i d e d .C o m p a t i b l e
w i t h B a s i c8 , P r i n tS h o p ,N e w sM a k e r1 2 8a n d S p e c t r u m
1 2 8 . S k e t c h p a d1 2 8c a n b e u s e dt o c r e a t e8 0 c o l u m n
a r t w o r k ,s l i d e s h o w s ,s i g n s ,p o s t e r sa n dm a n yo t h e r u s e s .
S u g g e s t e dr e t a i lp r i c e$ 2 9 . 9 5
N e w sM a k e r1 2 8
D e s kt o p p u b l i s h i n gf o rt h eC 1 2 8 D( o rt h e C 1 2 8w i t h6 4 K
V i d e oR a mU p g r a d e ) .N e w sM a k e r1 2 8 c a n b e u s e dt o
c r e a t ep r o f e s s i o n a l l o o k i n g n e w s l e t t e r s ,r e p o r t s ,s i g n sa n d
p o s t e r s .I t c a n b e u s e da s a s t a n da l o n ep r o g r a mo r i n
c o m b i n a t i o nw i t hw o r dp r o c e s s i n go r g r a p h i c ss o f t w a r e .I t
u s e ss t a n d a r ds e q u e n t i a lf i l e sf o r" p o u r i n g "t e x ti n t ou s e r -
d e f i n e dc o l u m n s .F u l lp a g el a y o u t ,p o p d o w nm e n u s ,s m o o t h
s c r e e ns c r o l l i n g ,f o n t s e l e c t i o n ,c u t ,p a s t e ,m i r r o r ,f l i pa r e
a m o n gt h e o p t i o n sa v a i l a b l e .
S u g g e s t e dr e t a i lp r i c e$ 2 9 . 9 5
S p e c t r u m1 2 8A d e l u x ep a i n tp r o g r a mf o r t h e C 1 2 8 Dc o m p u t e r( o r t h e
C 1 2 8w i t h6 4 KV i d e oR A MU p g r a d e ) .U s e s8 0 c o l u m n
d i s p l a yf o r 6 4 0x 2 0 0p i x e lr e s o l u t i o n .W i l ld i s p l a y1 2 8
c o l o r s !M e n uo p e r a t e d .R e q u i r e s1 3 5 1 o r c o m p a t i b l e
M o u s e .F e a t u r e si n c l u d ea i r b r u s h , e r a s e ,m i r r o r , m u l t i
c o l o r ,b l o c kf i l l o r e r a s e ,p i x e le d i t o r ,c o l o re d i t o r ,f o n t s ,
s l i d es h o wa n d m o r e . C o m p a t i b l ew i t hS k e t c h p a d1 2 8 ,
N e w sM a k e r1 2 8 ,B a s i c8 , 1 7 5 0R E U ,1 5 4 1 ,1 5 7 1a n d
1 5 8 1d i s kd r i v e s . S u g g e s t e dr e t a i lp r i c e$ 3 9 . 9 5