The Transactor V7 01 1986

88
8/7/2019 The Transactor V7 01 1986 http://slidepdf.com/reader/full/the-transactor-v7-01-1986 1/88

Transcript of The Transactor V7 01 1986

Page 1: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 1/88

Page 2: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 2/88

I f y o uw a n tt o g e t t h em o s to u to f y o u rC o m m o d o r e1 2 8o r 6 4 ,

w e h a v e g o o d s n e w sf o ry o u .T h e P a p e r b a c k1 2 8a n d6 4 S e r i e s

o f S o f t w a r e b o t ho f f e ry o us e r i o u s ,p r o f e s s i o n a lq u a l i t y

s o f t w a r ep a c k a g e st h a ta r ee a s yt o u s ea n di n e x p e n s i v e .

P a p e r b a c k1 2 8o r 6 4 S o f t w a r ei s s o e a s y ,y o u ' r er e a d yt o s t a r tu s i n gi t a s s o o na s i t ' sl o a d e di n t om e m o r y .E v e ni f y o u ' v e

n e v e rb e e ni n f r o n t o fa c o m p u t e rb e f o r e ,y o u ' l lb e u pa n d

r u n n i n gi n t h i r t ym i n u t e s .I n f a c t ,y o u p r o b a b l yw o n ' te v e rn e e d

t h e r e f e r e n c eg u i d e. . . ' h e l p 'i s a v a i l a b l ea t t h et o u c ho f a k e y .

T h a t ' sh o we a s y .

l o ws e r i o u s ?P a p e r b a c k1 2 8o r 6 4 p a c k a g e s h a v ea l l t h ep o w e ry o u ' r ee v e r

l i k e l yt o n e e d .T h e y h a v ea l lo f t h e f e a t u r e sy o u ' d e x p e c ti n

t o p - o f - t h e - l i n es o f t w a r e ,a n dt h e ns o m e .T h eg o o dn e w si s t h a t

P a p e r b a c k1 2 8o r 6 4 S o f t w a r eP a c k a g e sa r ep r i c e dw a y d o w nt h e r e. . . w h e r ey o u c a na f f o r dt h e m .

F a s t ,p o w e r f u l ,e a s yt o l e a r na n di n e x p e n s i v e .

S a y ,t h a ti s g o o dn e w s !

I I f o r r a i l

P a p e r b a c k1 2 8o r 6 4 S o f t w a r eP a c k a g e so f f e ry o us o m e t h i n g

e l s ey o um i g h tn o te x p e c t . . .i n t e g r a t i o n .Y o u c a nc o m b i n et h e

o u t p u to f P a p e r b a c kW r i t e r ,P a p e r b a c kF i l e ra n dP a p e r b a c kP l a n n e ri n t oo n ep i e c eo f w o r k .Y o uc a nc r e a t ea f i n i s h e d

d o c u m e n tw i t hg r a p h s ,t h e ns e n di n d i v i d u a l l ya d d r e s s e d

c o p i e s .

T h eb o t t o ml i n ei s S o l u t i o n s

T h ew o r ds o l u t i o n si s o u r m i d d l en a m ea n db o t t o ml i n e .W h e ny o up u r c h a s eP a p e r b a c k1 2 8o r 6 4 s o f t w a r e ,y o uc a nc o u n to n

i t t o s o l v ey o u r p r o b l e m s .

r *i t i o nw r i l et o :

D i g i t a lS o l u t i o n sP O .B o x3 4 5 ,S t a t i o nA

W i l l o w d o l e ,O n l o iM 2 N5 S 9

P a p e r b a c kW r i t e r1 2 8o r 6 4W o r dP r o c e s s i n g

W h a ty o us e ei s w h a ty o ug e t

W i t hP a p e r b a c kW r i t e r 1 2 8 o r6 4 ,t h e r e ' sn o m o r eg u e s s i n g

w h a tt e x tw i l ll o o kl i k ew h e ny o up r i n ti t . W h a ty o us e ei s w h a ty o ug e t . . .o n s c r e e na n di n p r i n t .T h e r ea r en o f a n c yc o d e st o

m e m o r i z e , n o b r o k e nw o r d sa t t h ee n do f a l i n e .

E a s yt o l e a r na n ds o p h i s t i c a t e d .P a p e r b a c kW r i t e r 1 2 8o r 6 4o f f e r ss t a n d a r dw o r dp r o c e s s i n g f e a t u r e sp l u s . . .

• o n - s c r e e nf o r m a t t i n ga n dw o r d w r a p

• o n - s c r e e nb o l d f a c e ,u n d e r l i n e sa n di t a l i c s

• n o c o m p l i c a t e df o r m a tc o m m a n d st o c l u t t e r t e x t

• o n - s c r e e nh e l pa t a l l l e v e l s

s p e l l i n g - c h e c k e rl e t sy o ua d dw o r d st o y o u rd i c t i o n a r y

4 0 o r 8 0 c o l u m n s o ns c r e e n

f i l e sc o m p a t i b l ew i t hP a p e r C l i p ™o r o t h e rw o r dp r o c e s s o r s

P a p e r b a c kP l a n n e r1 2 8o r 6 4C o m p u t e r i z e d S p r e a

M a k ef a s tw o r ko f b u d g e t i n ga n df o r e c a s t i n g

P a p e r b a c kP l a n n e r1 2 8o r 6 4 s o f t w a r el e t sy o um a k ef a s tw o r ko f a l ly o u rb o o k k e e p i n gc h o r e s .C h e q u eb o o k s ,h o u s e h o l da c c o u n t s ,b u s i n e s s f o r e c a s t i n ga n db o o k k e e p i n ga r ej u s ts o m eo f t h ej o b st h a tP a p e r b a c kP l a n n e r 1 2 8o r 6 4 p a c k a g e sm a k ee a s i e r .Y o u c a ne v e nc r e a t e f o u rd i f f e r e n t k i n d s o fg r a p h s .

A c c u r a t e ,s o p h i s t i c a t e da n de a s yt o u s e .P a p e r b a c kP l a n n e r1 2 8o r 6 4 o f f e r ss t a n d a r ds p r e a d s h e e tf e a t u r e sp l u s . . .

• a c c u r a c yu p t o 1 6 d i g i t s ,

a b o u tt w i c ea s m a n ya s m o s t

s p r e a d s h e e t sf o r t h e

C o m m o d o r e1 2 8o r 6 4• s i d e w a y sp r i n t i n ga v a i l a b l eo n

d o tm a t r i xp r i n t e r s ,f o r

o v e r s i z e ds p r e a d s h e e t st h a t

w o n ' tf i t o n s t a n d a r dp a p e r

• o n - s c r e e nh e l pa t a l l l e v e l s

• c o m p a t i b l ew i t hV i s i C a l c ™ - f i l e s

8 0 c o l u m no n - s c r e e no p t i o n

f o rt h eC o m m o d o r e6 4 i n

a d d i t i o nt o t h es t a n d a r d4 0

c o l u m n sg r a p h i c s i n c l u d eb a r ,s t a c k e db a r ,l i n ea n d p i eg r a p h st h a tc a na l s ob e u s e di n w o r dp r o c e s s i n gf i l e s

s m a r te v a l u a t i o no f

f o r m u l a ef o ra c c u r a t ec o m p l e xm a t r i c e s

P a p e r b a c kF i l e r1 2 8o r 6 4D a t a b a s eM a n a g e r

D a t a b a s em a n a g e m e n tm a d ee a s i

W i t hP a p e r b a c kF i l e r1 2 8o r 6 4 ,y o uc a no r g a n i z em a i l i n gl i s t s ,

a d d r e s s e s ,i n v e n t o r i e s ,t e l e p h o n en u m b e r s ,r e c i p e sa n do t h e ri n f o r m a t i o ni n a n e a s i l ya c c e s s i b l ef o r m .U s ei t w i t hP a p e r b a c kW r i t e r1 2 8o r 6 4 ( o ro t h e rw o r dp r o c e s s o r s )t o c o n s t r u c ti n d i v i d u a l l yc u s t o m i z e df o r ml e t t e r s .

P a p e r b a c kF i l e r1 2 8o r 6 4 p a c k a g e sa r ef a s t ,s o p h i s t i c a t e da n dt r u l ye a s yt o u s e .I n a d d i t i o nt o s t a n d a r dd a t a b a s ef e a t u r e st h e yo f f e r . . .

• u s eu p t o 2 5 5f i e l d sp e rr e c o r d( 2 , 0 0 0c h a r a c t e r sp e rr e c o r d )

• s o r t sb y u p t o 9 c r i t e r i a ,c a ns a v e 9d i f f e r e n ts o r t s

• p r i n tl a b e l si n m u l t i p l ec o l u m n s

• f l e x i b l er e p o r tf o r m a t t i n gi n c l u d i n gh e a d e r sa n af o o t e r s

1 o p t i o n a lp a s s w o r dp r o t e c t i o ni n c l u d i n gl i m i t e da c c e s sv i e w i n go r u p d a t i n g

o n - s c r e e nh e l pa t a l l l e v e l s

p r i n tf r o ma n yr e c o r dt o a n yr e c o r d

a r i t h m e t i ca n dt r i g o n o m e t r i cf u n c t i o n si n r e p o r t su s i n gu pt o 1 6 d i g i ta c c u r a c y

Page 3: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 3/88

S o l u t i o n s

P W1 2 8 / 6 4D i c t i o n a r ya l s o a v a i l a b l ea t S 1 4 . 9 5( U . S . )

P a p e r b a c kW r i t e r1 2 8

M A I L O R D E R S :

C R Y S T A LC O M P U T E RI N C .

I n M i c h i g a n1 - 5 1 7 - 2 2 4 - 7 6 6 7

O u t s i d eM i c h i g a n1 - 8 0 0 - 2 4 5 - 7 3 1 6

2 4 h o u r s o d a y , 7d a y sa w e e k .

S e r i o u ss o f t w a r e

t h a t ' ss i m p l et o u s e .

P a p e r b a c k" a n n e r 1 3 3

Y o uw a n tt h ev e r yb e s ts o f t w a r ey o uc a nf i n d f o ry o u r

C o m m o d o r e1 2 8o r 6 4 ,r i g h t ?

Y o uw a n ti n t e g r a t e ds o f t w a r e— w o r dp r o c e s s i n g ,

d a t a b a s ea n as p r e a d s h e e ta p p l i c a t i o n s— a t a s e n s i b l e

p r i c e .B u t ,y o ua l s ow a n tt o p - o f - t h e - l i n e f e a t u r e sW e l l ,

o u rP a p e r b a c k 1 2 8 / 6 4s o f t w a r eg o e so n eb e t t e r .

W i t h P a p e r b a c k 1 2 8o r 6 4 ,y o u ' l lf i n da l lt h e f e a t u r e sy o uc a ni m a g i n e . . .a n dt h e ns o m e .A n dP a p e r b a c k1 2 8 / 6 4i s

s o e a s yt o u s e ,y o uw o n ' te v e nn e e dt h er e f e r e n c e g u i d e .

O n - s c r e e na n di n m e m o r yi n s t r u c t i o n sw i l lh a v e y o uu pa n dr u n n i n gi n l e s st h a n3 0 m i n u t e s ,e v e ni f y o u ' v en e v e r

u s e da c o m p u t e rb e f o r e .

T h ep r i c e ?I t ' sa s l o wa s y o u ' de x p e c tf o ra l i n eo fs o f t w a r ec a l l e d' P a p e r b a c k ' .S u g g e s t e dR e t a i l P r i c e f o r

t h e6 4 S o f t w a r ei s $ 3 9 . 9 5( U . S . )a n d $ 4 9 . 9 5( U . S . )f o r

t h e1 2 8 .A n yo f t h e6 4 p r o d u c t sm a yb e u p g r a d e dt o

t h e i r1 2 8v e r s i o nf o r$ 1 5 . 0 0( U . S . )+ $ 3 . 0 0s h i p p i n ga n d

h a n d l i n g .( A v a i l a b l et o r e g i s t e r e do w n e r sf r o mD i g i t a l

S o l u t i o n sI n c .o n l y . )

P a p e r b a c kW r i t e r1 2 8o r 6 4 ,P a p e r b a c kP l a n n e r1 2 8o r

6 4 a n dP a p e r b a c kF i l e r1 2 8o r 6 4 . . . S o l u t i o n sa t

s e n s i b l ep r i c e sf r o mD i g i t a lS o l u t i o n sI n c .

I n t e r n a t i o n a l& D i s t r i b u t o re n q u i r i e st o :

' / / / /D i g i t a l

/ / / /S o l u t i o n sP . O .B o x3 4 5 ,S t a t i o nA

W i l l o w d a l e ,O n t a r i oC a n a d aM 2 N5 S 91 - 4 1 6 - 2 2 1 - 3 2 2 5

P a p e r b a c kW r i t e r1 2 8a n d 6 4a r en o wa v a i l a b l ei n F r e n c h .

Page 4: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 4/88

J O I NT P U GT h el a r g e s tC o m m o d o r eU s e r sG r o u p

B e n e f i tf r o m :

A c c e s st o l i b r a r yo f p u b l i cd o m a i ns o f t w a r e

f o rC - 6 4 ,V I C2 0 a n dP E T / C B M

M a g a z i n e( 1 0p e ry e a r )w i t ha d v i c ef r o m

J i mB u t t e r f i e l d

B r a dB j o m d a h l

L i zD e a l

T P U Gy e a r l ym e m b e r s h i p s :

R e g u l a rm e m b e r ( a t t e n d sm e e t i n g s )

S t u d e n tm e m b e r( f u l l - t i m e ,a t t e n d sm e e t i n g s )

A s s o c i a t e( C a n a d a )

A s s o c i a t e( U . S. A . )

A s s o c i a t e( O v e r s e a s— s e am a i l )

A s s o c i a t e( O v e r s e a s— a i rm a i l )

— $ 3 5 . 0 0C d n .

- $ 2 5 . 0 0C d n .

- $ 2 5 . 0 0C d n .

— $ 2 5 . 0 0U . S .

- $ 3 0 . 0 0C d n .

- $ 3 5 . 0 0U . S .

— $ 4 5 . 0 0U . S .

F O RF U R T H E RI N F O R M A T I O N :S e n d$ 1 . 0 0f o ra n i n f o r m a t i o n c a t a l o g u e

( t e l lu s w h i c hm a c h i n ey o uu s e ! )

T o : T P U GI N C .

D E P T .A ,

1 0 1D U N C A NM I L LR D . (S U I T EG 7

D O NM I L L S ,O N T A R I OC A N A D AM 3 B 1 Z 3

C O M A LI N F Oi f y o uh a v eC O M A L —

w e h a v ei n f o r m a t i o n .

B O O K S :C O M A LF r o mA T O Z , $ 6 . 9 5C O M A Lw o r k b o o k ,S 6 . 9 5C o m m o d o r e6 4 G r a p h i c sW i t hC O M A L ,S 1 4 . 9 5C O M A LH a n d b o o k ,$ 1 8 . 9 5B e g i n n i n gC O M A L ,$ 2 2 . 9 5S t r u c t u r e dP r o g r a m m i n gW i t hC O M A L ,$ 2 6 . 9 5F o u n d a t i o n sW i t hC O M A L ,$ 1 9 . 9 5C a r t r i d g eG r a p h i c sa n dS o u n d ,$ 9 . 9 5C a p t a i nC O M A LG e t s O r g a n i z e d ,$ 1 9 . 9 5

G r a p h i c sP r i m e r ,$ 1 9 . 9 5C O M A L2 . 0P a c k a g e s ,$ 1 9 . 9 5L i b r a r yo f F u n c t i o n sa n dP r o c e d u r e s ,$ 1 9 . 9 5

O T H E R :C O M A LT O D A Ys u b s c r i p t i o n ,6 i s s u e s ,S 1 4 . 9 5C O M A L0 . 1 4 ,C h e a t s h e e t K e y b o a r dO v e r l a y ,$ 3 . 9 5C O M A LS t a r t e rK i t( 3 d i s k s ,1 b o o k ) , $ 2 9 . 9 51 9 D i f f e r e n tC O M A LD i s k so n l y$ 9 4 . 0 5

D e l u x eC O M A LC a r t r i d g eP a c k a g e ,$ 1 2 8 . 9 5( i n c l u d e s2 b o o k s ,2 d i s k s ,a n dc a r t r i d g e )

O R D E RN O W :C a l lT O L L - F R E E : 1 - 8 0 0 - 3 5 6 - 5 3 2 4 e x t1 3 0 7V I S Ao r M a s t e r C a r do r d e r so n l y .Q u e s t i o n sa n d I n f o r m a t i o nm u s tc a l lo u rI n f oL i n e :6 0 8 - 2 2 2 - 4 4 3 2 .A l lo r d e r s p r e p a i do n l y — n oC O D .A d dS 2 p e r b o o ks h i p p i n g .S e n da S A S Ef o r F R E EI n f oP a c k a g eo r s e n dc h e c ko r m o n e yo r d e ri n U S D o l l a r st o :

C O M A LU S E R SC R O U P ,U . S . A . ,L I M I T E D5 5 0 1C r o v e l a n dT e n ,M a d i s o n ,w i 5 3 7 1 6

T R A D E M A R K S :C o m m o d o r e6 4 o fC o m m o d o r eE l e c t r o n i c sL t d . :

C a p t a i nC O M A Lo f C O M A Lu s e r sC r o u p .U . S . A . ,L t d .

F r o mT h eG u r uH i m s e l f !

T h e1 9 8 6C o m m o d o r eR e f e r e n c eD i a r y

A 6 5 p a g er e f e r e n c es e c t i o nt h a ti n c l u d e s :

• A l lh a r d w a r es p e c i f i c a t i o n si n c l u d i n g

t h e C i 2 8 a n d P C i 0 / 2 0

• U s e f u lm e m o r yl o c a t i o n s

• U s e f u lp r o g r a m s

• S u p e r C h a r t s

• B A S I Ca n dm a c h i n el a n g u a g eh i n t s

• H e x a d e c i m a lc o n v e r s i o n

• S o u n d ,v i d e o

• a n dm o r e

T h ef u l lc a l e n d a ra n dd a t eb o o ki n c l u d e s :

• N a t i o n a l h o l i d a y si n t e nc o u n t r i e s

• P e r s o n a l n o t e s

• 1 9 8 7f o r w a r dp l a n n e r

• N a m e ,a d d r e s s ,t e l e p h o n es e c t i o n

J u s t$ 5 . 9 5( p l u s5 0 1p o s t a g ea n dh a n d l i n g )

O r d e rY o u rC o p yT o d a y !

C a n a d a

T h eT r a n s a c t o r

5 0 0S t e e l e sA v e n u e

M i l t o n ,O n t a r i o

L 9 T3 P 7

U S AT h eT r a n s a c t o r

2 7 7L i n w o o dA v e n u e

B u f f a l o ,N e wY o r k

1 4 2 0 9

„ D e a l e r O r d e r s :C a n a d a

N o r l a n dA g e n c i e s

2 5 1N i p i s s i n gR o a dM i l t o n ,O n t a r i o

L 9 T 4 T 7

( 4 1 6 ) 8 7 6 - 4 7 7 4

U S A

M i c r o P a c eD i s t r i b u t i n g

1 5 1 0N o r t hN e i lS t r e e tC h a m p a i g n ,I l l i n o i s

6 1 8 2 0

1 8 0 03 6 2 - 9 6 5 3

Page 5: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 5/88

V o l u m e7

I s s u e0 1C i r c u l a t i o n6 4 , 0 0 0

I I I

I I I l l l

l i i i i i i

R O MR o u t i n e s/ K e r n e lR o u t i n e s

S t a r tA d d r e s sE d i t o r i a l 3

B i t sa n dP i e c e s 51 5 4 1E r r o r A l l o c a t e r

C o l o u r e dR e m a r k sW i t h o u tR E M

D i r e c t o r yF i l e n a m eH i g h l i g h t e r

E a s yS p e e d u pF o rT h e C - 1 2 8W i t h1 5 4 1D r i v eC - 1 2 8K e yR e p e a t

C - 6 4L o a dI t M yP l a c eN o tY o u r s !

C - 6 4I t a l i c s

T h eS C N K E YK e r n a l R o u t i n e

C - 6 4a n d V I CU n - N E W s

F a s tM e m o r yC l e a rU s i n gG a r b a g e

( P R I N TA TU p d a t e )U p d a t e

U s e rF r i e n d l yC o m m a n d s

R E MR A M :T a g - A l o n g P r o g r a mV a r i a b l e s

S t r i n g i n g s

R h e t o r i c a lL o o p s

S Y S i n gW i t hT h e C - 1 2 8

R u n n i n gA B a s i CF r o mT h eC L IO nT h e A m i g a

C - 6 4A u t o - S t a r t

T h e C - 6 4G r e a tE s c a p e

R e t u r no f T h eS w o r d sO f D o o m

D a t e C o n v e n t i o n s

T h eH i d d e n M e s s a g e

V e r f i z e rF o rT h eP l u s4 a n dC 1 2 8

C - 1 2 8 ' s H e l pK e yR e d e f i n e d

A m i g aL a t t i c eC N o t e s

R e a d i n g 8 2 5 0 - F o r m a t t e dD i s k s w i t ha n 8 0 5 0

1 5 7 1 ' sC a nB e l o oS m a r t

H o l yI n p u t - B u f f e r ,B a t m a n !

L e t t e r s 1 3H e l p :L i n eS c a n n e rR e q u i r e d

A t t e n t i o nH o t1 5 4 1O w n e r s

" . . . b u ti f y o uf o o lm et w i c et h e nI ' mi n d e e da f o o l . "

R e l a t i v eF i l eA c c e s sI n M L

R e a lP r o g r a m m e r s .. . V e r i f i z e rU p d a t e

H e l p R e q u i r e d S k yT r a v e lS u p p o r t

T h eD r i v eD i s a s t e r L A D St o P A LC o n v e r s i o n

N e w sB R K 7 7T r a n s a c t o ro n M i c r o f i c h e

T r a n s a c t o r M a i lO r d e rN e w s

T h eV i e w t r o nS t a r t e rK i t

T r a n s a c t o rO p e nO nV i e w t r o n !

T h eT r a n s a c t o rC o m m u n i c a t i o n sD i s k

M u s i cW o r k s h o p s

D i s t r e s s e dC o m m o d o r eU s e r sH o t l i n e

T h e1 5 4 1R e v e a l e d

U s e dC o m p u t e rL i s t i n gS e r v i c e

S t e v eJ o b sa n dP i x a rE m p l o y e e sB u yP i x a r

M S DD i s kD r i v eI n f o r m a t i o nE x c h a n g e

I n t r o d u c i n gS u p e rK i t / 1 5 4 1

D I S K O R G A N I Z E RF o rT h eC 6 4A m i g aS p r e a d s h e e t ,T e l e c o m m u n i c a t i o n sa n dB B S

T h eS o u r c e r e r6 5 0 0S e r i e sD i s a s s e m b l e r

H e l pM a s t e r F o rT h eC o m m o d o r e6 4

R E S W I T C Hf r o mC o m p u s a v e

U n i n t e r r u p t i b l eP o w e rS u p p l y

8 0 C o l u m nM o n oC a b l eF o rT h eC - l2 8

4 0 / 8 0C o l u m nS w i t c hC a b l eF o rT h eC - 1 2 8

T r a n s B A S I CI n s t a l l m e n t# 9 1 8

L o n g e rL i f eF o rT h eC 6 4a n d1 5 4 1 2 5

M a t r i XM a n i p U l a t O rm l a r r a ya c c e s st e c h n i q u e s 2 6

J i mB u t t e r f i e l d ' sC 1 2 8M e m o r yM a p s 2 9T h eC 1 2 8 - Y o uC a nB a n kO nI t 3 4

G e t t i n gT h eC 1 2 8 ' sC P / MI n G e a r 3 6

C l ^ OK A MD l S Ka n o n - h a r d w a r ep r o j e c t < J O

A m i g a B A S I CF u n c t i o nP l o t 4 2

K e r n e l R o u t i n e sI n T h eB 1 2 8 4 4

U n m a s k i n gT h eK e r n e l 4 6

K e r n e lW h O :m o r eo nt h em y s t e r i o u s K e r n e l 4 8A d d i n gF u n c t i o n sT oB A S I C 5 4

C o m m a n dW e d g ei n t e r c e p t i n gB A S I Cc o m m a n d s 5 8

I m p r o v i n gT h eS Y SC o m m a n d 6 3

A u t O L O a da n dt h eE P R O Ma u t o m a t i cl o a da n dr u no np o w e r - u p. . . 6 6

S Y M A o SF O rT h eC 6 4a s y m b o l i c a s s e m b l e rt h a t ' sP A Lc o m p a t i b l e !. . . 6 9

N o t e :B e f o r ee n t e r i n gp r o g r a m s ,

s e e" V e r i f i z e r "o n p a g e4 a n d1 1

T h eT r a n s a c t o r J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 6: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 6/88

T t r c u s a d o rI h »T * c h / N * w «J o u r n a lF o rC o m m o d o r * C o m p u ) « n

E d i t o ri n C h i e f

K a r lJ . H . H i l d o n

E d i t o r

R i c h a r dE v e r s

T e c h n i c a l E d i t o rC h r i sZ a m a r a

A r tD i r e c t o r

J o h nM o s t a c c i

A d m i n i s t r a t i o n& S u b s c r i p t i o n s

L a n aH u m p h r i e s

C o n t r i b u t i n gW r i t e r s

I a nA d a m

D a n i e lB i n g a m o n

N e i lB o y l e

A n t h o n yB r y a n t

T i mB u i s t

J i mB u t t e r f i e l d

G a r yC o b bJ e f f e r yC o o n s

P i e r r eC o r r i v e a u

R o b e r tV . D a v i s

E l i z a b e t hD e a l

F r a n kE . D i G i o i a

Y i j u nD i n g

M i c h a e lJ . E r s k i n e

J i m G r u b b s

T o mH a l l

B o bH a y e s

J o h nJ a yH i l f i g e r

A n d yH o c h h e i m e r

J o h nH o l t t u m

R o b e r tH u e h n

T o mH u g h e s

C h r i sJ o h n s o n

M a r kJ o r d a n

C l i f t o nK a r n e s

G a r yK i z i a k

J e s s eK n i g h t

J a m e sE . L a P o r t e

W i l l i a mL e v a k

J a c k L o t h i a n

S c o t tM a c l e a n

S t e v e M c C r y s t a l

J i mM c L a u g h l i n

T e r r yM o n t g o m e r y

M i c h a e lM o s s m a n

G e r a l d N e u f e l d

N o e lN y m a nD a v eP o l l a c k

R i c h a r dP e r r i t

T e r r yP r i d h a m

R a y m o n dQ u i r l i n g

G l e nR e e s o r

G a r yR o y a l

J o h n W .R o s s

J o h nR u s s e l l

L o u i sF . S a n d e r

F r e dS i m o n

P e r r y S h u l t z

E d w a r dS m e d a

D a r r e nJ . S p r u y t

N i c kS u l l i v a n

Z o l t a n S z e p e s i

K a r e lV a n d e rL u g t

A u d r y sV i l k a s

A n d r e wW a l d u c k

S t e v e n W a l l e y

J a c kW e a v e r

C h a r l e s W h i t t e r n

E v a nW i l l i a m s

C h r i sW o n g

P r o g r a mL i s t i n g sI n T h eT r a n s a c t o r

A l lp r o g r a m sl i s t e di n T h eT r a n s a c t o rw i l la p p e a ra s t h e yw o u l do n y o u rs c r e e ni n U p p e r / L o w e r

c a s em o d e .T oc l a r i f yt w op o t e n t i a lc h a r a c t e rm i x - u p s ,z e r o e sw i l la p p e a ra s ' 0 ' a n dt h el e t t e r" o "

w i l lo f c o u r s eb e i n l o w e rc a s e .S e c o n d l y ,t h el o w e rc a s e L( ' I ' )h a sa f l a tt o p a so p p o s e dt o t h e

n u m b e r1 w h i c hh a sa n a n g l e dt o p .

M a n yp r o g r a m sw i l lc o n t a i nr e v e r s ev i d e oc h a r a c t e r st h a tr e p r e s e n tc u r s o rm o v e m e n t s ,c o l o u r s ,

o r f u n c t i o nk e y s .T h e s ew i l la l s ob e s h o w ne x a c t l y a st h e yw o u l da p p e a ro n y o u rs c r e e n , b u t

t h e y ' r el i s t e dh e r ef o rr e f e r e n c e .A l s or e m e m b e r : C T R L - qw i t h i nq u o t e si s i d e n t i c a l t oa C u r s o r

D o w n ,e t a l .

O c c a s i o n a l l yp r o g r a m sw i l lc o n t a i nl i n e s t h a ts h o wc o n s e c u t i v es p a c e s .O f t e nt h e n u m b e ro f

s p a c e sy o ui n s e r tw i l ln o tb e c r i t i c a lt o c o r r e c to p e r a t i o no f t h ep r o g r a m .W h e ni t i s , t h er e q u i r e d

n u m b e ro f s p a c e sw i l lb e s h o w n .F o re x a m p l e :

p r i n t f l u s h r i g h t" - w o u l db e s h o w na s - p r i n t" [ 1 0 s p a c e s ] f l u s hr i g h t

C u r s o rC h a r a c t e r sF o rP E T/ C B M/ V I C/ 6 4

D o w n- Qu p HR i g h t - | ]

L e f t- [ L f t ]

R V S - QR V SO f f -1 8

I n s e r t - g |

D e l e t e -QC l e a rS c m- QH o m e

S T O P I

C o l o u rC h a r a c t e r sF o rV I C/ 6 4

B l a c k- CW h i t e- BR e d - QC y a n - [ C y n ]

P u r p l e- [ P u r ]

G r e e n- Q

B l u e - QY e l l o w -[ Y e l ]

O r a n g e-

B r o w n

L t .R e d -

G r e y1 -

G r e y2 -

L t .G r e e n-

L t .B l u e -

G r e y3 -

3 !Qaa3a

aG i

F u n c t i o nK e y sF o rV I C/ 6 4

F l -

F 2 -

F 3 -

F 4 -

F 5 -

F 6 -

F 7 -

F 8 -

P r o d u c t i o n

A t t i cT y p e s e t t i n gL t d .

P r i n t i n g

P r i n t e di n C a n a d ab y

M a c L e a nH u n t e rP r i n t i n g

P l e a s eN o t e :T h eT r a n s a c t o rh a s

a n e wp h o n en u m b e r :( 4 1 6 )8 7 8 8 4 3 8

T h eT 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 T r a n s a c t o r P u b l i s h i n gI n c . .5 0 0S t e e l e sA v e n u e ,M i l t o n .

O n t a r i o .L 9 T 3 P 7 .C a n a d i a n S e c o n dC l a s s m a i lr e g i s t r a t i o nn u m b e r 6 3 4 2 . U S P S 7 2 5 - 0 5 0 ,S e c o n dC l a s s

p o s t a g e p a i da t B u f f a l o ,N Y ,f o r U . S . s u b s c r i b e r s . U . S .P o s t m a s t e r s :s e n da d d r e s sc h a n g e st o T h e

T r a n s a c t o r ,2 7 7L i nw o o dA v e n u e .B u f f a l o .N Y ,1 4 2 0 9I S S N * 0 8 2 7 - 2 5 3 0 .

T h eT r a n s a c t o ri s i n n o w a yc o n n e c t e dw i t hC 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 e

I 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 s( P E T ,C B M ,V I C ,G A )a r e r e g i s t e r e d t 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 5 C d n . U . S . A .$ 1 5U S . A l lo t h e r$ 2 1 U S .

A i r M a i l{ O v e r s e a so n l y )$ 4 0U S .( $ 4 . 1 5p o s t a g e / i s s u e )

S e n da l l s u b s c r i p t i o n st o : T h eT 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 ,5 0 0S t e e l e sA v e n u e ,M i l t o n ,

O n t a r i o ,C a n a d a .L 9 T3 P 7 ,4 1 6 8 7 88 4 3 8 .N o t e :S u b s c r i p t i o n sa r e h a n d l e da t t h i sa d d r e s sO N L Y .

S u b s c r i p t i o n ss e n tt o o u rB u f f a l oa d d r e s s ( a b o v e )w i l lb e f o r w a r d e dt o M i l t o nH Q .F o rb e s tr e s u l t s ,u s e

p o s t a g ep a i d c a r da t c e n t e ro f m a g a z i n e . „ _ _ _ _ _ _

Q u a n t i t y O r d e r s :

U . S . A .D i s t r i b u t o r :

C a p i t a l D i s t r i b u t i n g

C h t i r l t o nB u i l d i n g

D e r b y .C T0 6 4 1 8

( 2 0 3 ) 7 3 5 3 3 8 1

( o ry o u rl o c a lw h o l e s a l e r )

M a s t e rM e d i a

2 6 1W y e c r o f tR o a dO a k v i f l e .O n t a r i oL f i J5 B 4

( 4 H i )8 4 2 1 5 5 5

( o ry o u rl o c a lw h o l e s a l e r )

C o m p u L i lP OB o x3 5 2

P o r t C o q u l l l a r n ,B CV 5 C 4 K G6 0 4 9 4 17 9 1 1

N o r l a n dC o m m u n i c a t i o2 5 1 N i p i s s i n gR o a d .U n i l 3M i l t o n .O n t a r i o

L 9 T 4 Z 54 H i 8 7 6 4 7 7 4

S O L DO U T :T h eB e s t o fT h eT r a n s a c t o rV o l u m e s1 & 2 & 3 ; V o l4 I s s u e s 0 4 ,0 5 , 0 6 ,V o l5 I s s u e s0 3 ,0 4 ■

S t i l lA v a i l a b l e : V o l .4 : 0 1 . 0 2 . 0 3 . V o l .5 : 0 1 . 0 2 , 0 4 , 0 5 ,0 6 . V o l .6 : 0 1 , 0 2 , 0 3 , 0 4 .0 5

B a c kI s s u e s :$ 4 . 5 0 e a c h .O r d e ra l l b a c ki s s u e sf r o mM i l t o nH Q .

E d i t o r i a lc o n t r i b u t i o n sa r ea l w a y sw e l c o m e .W r i t e r sa r ee n c o u r a g e dt o p r e p a r em a t e r i a la c c o r d i n gt o

t h e m e sa s s h o w ni n E d i t o r i a lS c h e d u l e( s e el i s t n e a r t h ee n do f t h i si s s u e ) .R e m u n e r a t i o ni s $ 4 0p e r

p r i n t e d p a g e . P r e f e r r e dm e d i ai s 1 5 4 1 .2 0 3 1 . 4 0 4 0 . 8 0 5 0 .o r 8 2 5 0d i s k e t t e sw i t hW o r d P r o ,W o r d C r a f t .S u p e r s c r i p t , o rS E Qt e x t f i l e s .P r o g r a ml i s t i n g so v e r2 0 l i n e ss h o u l d b ep r o v i d e do n d i s ko r t a p e .

M a n u s c r i p t s s h o u l db e t y p e w r i t t e n ,d o u b l es p a c e d , w i t hs p e c i a lc h a r a c t e r so r f o r m a t sc l e a r l ym a r k e d .

P h o t o so r i l l u s t r a t i o n sw i l lt i e i n c l u d e dw i t ha r t i c l e sd e p e n d i n go n q u a l i t y .A u t h o r ss u b m i t t i n gd i s k e t t e s

w i l lr e c e i v et h eT r a n s a c t o r D i s kf o rt h e i s s u ec o n t a i n i n gt h e i rc o n t r i b u t i o n .

A l lm a t e r i a la c c e p t e db e c o m e st h ep r o p e r t yo f T h eT r a n s a c t o r .A l l mP u b l i c a t i o n sI n c .R e p r o d u c t i o ni n a n y f o r mw i t h o u t p e r m i s s i o ni s i n v i

r e - c o n f i r ma n yp e r m i s s i o n s g r a n t e dp r i o rt o t h i sn o t i c e . S o l i c i t e dm a tb a s i s o n l y .W r i t et o t h e M i l t o n a d d r e s sf o ra w r i t e r sp a c k a g e .

T h eo p i n i o n s e 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 sa r e n o tn e c e s s a r i l yl h <

a c c u r a c yi s a m a j o ro b j e c t i v e .T h eT r a n s a c t o rc a n n o ta s s u m el i a b i l i t yf i

P r o g r a m sl i s t e d i nT h eT r a n s a c t o ra r e p u b l i cd o m a i n :f r e et o c o p y ,n o tI

l e r i a l i sc o p y r i g h tb y T r a n s a c t o r

l a t i o no l a p p l i c a b l el a w s .P l e a s e

i s a c c e p t e do n a n a l l r i g h t s

s e o f T h eT r a n s a c t o r .A l t h o u g hr e r r o r si n a r t i c l e so r p r o g r a m s ,

s e l l .

T h eT r a n s a c t o r J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 7: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 7/88

S p e c i a lA p r i lF e a t u r e :

S . N . I . F . F .:

A B o l dN e wV i s i o nI n R e c o r d i n gM e d i a

S o f t w a r ew i t ha n a d d e dd i m e n s i o no f r e a l i s m

T r a n s a c t o rm a g a z i n eh a sj u s ts c o o p e dt h es t o r yo n a n i n c r e d i

b l eb r e a k t h r o u g hi n f l o p p y - d i s kt e c h n o l o g yw h i c hp r o m i s e st o

a d da n e wd i m e n s i o nt o s o f t w a r er e a l i s m .S e n s o r yL a b o r a t o r i e s

o f F r e m o n tW y o m i n g ,a c o m p a n yw h i c hd e v e l o p sm o r en a t u

r a lm a n - m a c h i n ei n t e r f a c e s ,h a sb e e ns e c r e t l yd e v e l o p i n gt h e i r

n e wf l o p p y - d i s k t e c h n o l o g y ,c a l l e d" S e n s o r yN a s a lI n t e r f a c e

F o rF l o p p i e s " , o rS N I F F .

T h et e c h n o l o g yi s n o wr e a d yt o b e r e l e a s e df o rl i c e n s eb y m a j o r

s o f t w a r ec o m p a n i e s . S e n s o r y L a b sh a s m a n a g e dt o e m b e d

s c e n t sw i t h i nt h e m a g n e t i cp a r t i c l e so n a m a g n e t i cd i s k ' s

s u r f a c e .T h eb a s i ci d e aw o r k sm u c hl i k et h e" S c r a t c h - n - S n i f f "

s c e n ts a m p l e sp r o v i d e do n p a p e rc a r r i e r s .T h e d i s k - b a s e d

s m e l l s ,h o w e v e r ,a r e r e l e a s e db y t h e h e a t - p r o d u c i n gf r i c t i o n

c a u s e d b yt h ep r e s s u r ep a do p p o s i t et h eR e a d / W r i t eh e a d .A s

t h e d i s ks p i n sa n dt h ep r e s s u r ep a dr u b so n t h e d i s ks u r f a c e ,

t h e d i s k s u r f a c ei s s l i g h t l yw o r na n d h e a t e d , r e l e a s i n g t h e

s m e l l st o t h e s u r r o u n d i n ga i r ,w h i c hi s t h e n w a f t e di n t ot h e

r o o mt h r o u g ht h ed r i v e ' sv e n t i l a t i o ns l o t s .

S o f t w a r ev e n d o r ss h o u l db e e x c i t e db y t h e n e ws n i f f - d i s k s

( k n o w na s " f l o p p y - s n i f f s " ) ,s i n c et h e yc a na d da r e a l i s mt o t h e i r

p r o g r a m sw h i c hw a s n e v e rb e f o r ep o s s i b l e .S e n s o r yL a b s '

P r e s i d e n t ,T e r r e n c eP r i c e ,e x p l a i n s :" T h ef i r s tc o m p u t e r s

p r i n t e da l lt h e i r r e s u l t so n p a p e r .T h e n ,w eh a dt h eC R T ,w h i c h

e v e n t u a l l yo p e n e d u pt h ew o n d e r f u lv i s u a lw o r l do f c o m p u t e r

g r a p h i c s .N o ww eh a v eh i g h - q u a l i t ys o u n d a n ds p e e c hs y n t h e

s i sa s w e l l .T h es e n s eo f s m e l li s t h en e x tl o g i c a ls t e pi n h u m a n

i n t e r f a c et e c h n o l o g y . "

T h ef i r s tb a t c ho f d i s k sw i l lb e r e l e a s e di n 4 T P S( T r a c k sP e r

S n i f f )f o r m a t .O n a 3 5 - t r a c k d i s kl i k et h e C o m m o d o r e1 5 4 1

u s e s ,t h i s w i l lg i v ee i g h t d i f f e r e n ts m e l l sw h i c hc a n b er e l e a s e d .

( T h ed i r e c t o r y t r a c k s a r e n o ts c e n t e db e c a u s et h e yn e e dt o b e

a c c e s s e dp e r i o d i c a l l yd u r i n ga s n i f f - a c c e s s . )A p r o g r a mr e l e a s e s

a d e s i r e d s c e n tb y m o v i n gt h eR e a d / W r i t e h e a dt o t h ep r o p e r

s n i f f - t r a c ka n dh o l d i n gi t t h e r ef o ra t l e a s tt h r e es e c o n d s .( T h i s

i s c a l l e da " S n i f fa c c e s s "o r j u s ta " S n i f f " . )S n i f f - a c c e s st i m ei s

e x p e c t e dt o i m p r o v ei n f u t u r ea d v a n c e m e n t so f t h et e c h n o l o g y .

A p p l i c a t i o n s a r ee x p e c t e dt o i n c l u d eg a m e s( s m e l lt h em u s t y

d u n g e o ni n a n a d v e n t u r e ) ;a n da w h o l er a n g eo f S n i f f w a r ef o r

t h eb l i n d ,w h oh a v ea k e e n e rs e n s eo f s m e l la n dw i l lb e a b l et o

f o l l o w s c e n tp r o m p t sf r o mt h ep r o g r a m s .

P r i c ea d m i t st h a tt h e i d e ai s n o t c o m p l e t e l yo r i g i n a l ;h e w a s

i n s p i r e db y t h e c i n e m at e c h n i q u ek n o w na s S m e l l - o - R a m a ,

m o s tr e c e n t l yu s e di n t h em o v i e" P o l y e s t e r " .B u th e m a i n t a i n s

t h a tS e n s o r y L a b si s g o i n gb e y o n ds i m p l eo n e - a t - a - t i m es n i f f s ,

i n t o t h e e x c i t i n gs c i e n c eo f c o m p o u n ds c e n t . S c i e n t i s t sa t

S e n s o r yL a b sh a v eb r o k e nd o w ns m e l l si n t on i n ep r i m a r y

e l e m e n t s ,o u to f w h i c ha l m o s ta l l o t h e r s m e l l sc a n b ec r e a t e d .

S m e l l sc a n t h u sb e s y n t h e s i z e df r o mt h e p r i m a r ys m e l l so n

d i s k ,a s t h eR e a d / W r i t e h e a dq u i c k l ys e e k sf r o mo n et r a c kt o

a n o t h e r ,b l e n d i n gt h e s m e l l st o c r e a t en e wo n e s .

" O n c ew e c o m eo u tw i t ht h e 3T P Sf o r m a t " , e x p l a i n sP r i c e ,

" W e ' l lb e a b l et o p u t a l l o f t h e p r i m a r ys m e l l so n a f l o p p y ,

m a k i n gt r u es n i f f - s y n t h e s i sa r e a l i t y .A t t h a t s t a g e ,w e c a ns e l l

o u r' S n i f f - W r i t e r 's o f t w a r ew h i c hw i l la l l o wd e v e l o p e r so r e v e n

u s e r st o c r e a t ea n ys m e l lt h e yn e e dw i t h o u th a v i n gt o p l a c ea

s p e c i a lo r d e r . "

O n eo f t h ep r o b l e m sb e i n gw o r k e do n s t i l li s t h es n i f f - l i f eo f a

d i s k ;c u r r e n t l ya t y p i c a lt r a c ki s g o o df o ra b o u tf i v es n i f f - h o u r s .

T h i sm a yb e e n o u g hf o rm o s t g a m e s ,b u t s e r i o u s S n i f f w a r ew i l l

d e m a n dg r e a t e rS n i f f - l i v e s .I m p r o v e m e n t sa r e o n t h e w a y

t h o u g h ,a n dS e n s o r y L a b si s e v e nh o p i n gt o c o m eo u tw i t ha

H a r d - d i s kv e r s i o nc a l l e dt h e " H a r d - S n i f f " .A n o t h e rp o t e n t i a l

p r o b l e mi s t h a ti n t h ee v e n to f c e r t a i nh a r d w a r ef a i l u r e s ,t h ea i r

i n t h e r o o mc a n b e c o n t a m i n a t e dq u i c k l y . S n i f f - d i s k sc o m e

w i t hw a r n i n g st o u s e o n l yi n w e l l - v e n t i l a t e da r e a s .T h i si s

e s p e c i a l l yt r u ef o rp r o g r a m su s i n gs o m eo f t h e s t r o n g e rs m e l l s :

f o r e x a m p l e ,i n a n A d v e n t u r eg a m et h e p l a y e rm a ye n t e ra

r e c e n t l y - u s e db a t h r o o m .

L o o k i n gt o w a r d st h e f u t u r e ,S e n s o r yL a b sh o p e st o h a v e3 . 5

i n c hS n i f f - d i s k so u tb y J u n e ,a n dt h e H a r d - s n i f fb y n e x ty e a r .

W h e na s k e da b o u tt h e f u t u r eo f S n i f f - d i s kt e c h n o l o g y ,P r i c e

p r e d i c t s :" I s e ea m a j o rd e m a n df o rS n i f f w a r ei n t h en e x tf e w

y e a r s ,b e c a u s ep e o p l ea r ea l w a y sl o o k i n gf o rn e wm e t h o d so f

g e t t i n gi n f o r m a t i o nf r o mt h e i rc o m p u t e r s .A n da s w e s a y h e r e

a t S e n s o r yL a b s ,' a p i c t u r em a yb e w o r t ha t h o u s a n dw o r d s ,b u t

a s n i f fi s w o r t ha m i l l i o n ' " .

A n dr e m e m b e r ..

E d i t i o n -C Z

y o u r e a di t f i r s ti n T h eT r a n s a c t o rA p r i l

T h eT r a n s a c t o r J u l y1 9 8 6 :V o l u m e7 , I s s u eO 1

Page 8: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 8/88

U s i n g" V E R I F I Z E R "

T h eT 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 mf r o m

t h ep a g e so f T h eT 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 kl i n eb y

l i n ea s y o ue n t e r t h ep r o g r a m ,a 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 r

e a c hp r o g r a ml i n ew h i c hy o uc a nc h e c ka g a i n s tt h ec o r r e s p o n d i n g

c o d ei n t h ep r o g r a ml i s t i n g .

T h e r ea r et w ov e r s i o n so f V E R I F I Z E R o nt h i sp a g e ;o n ei s f o rt h e

P E T ,t h eo t h e rf o rt h eV I Co r 6 4 .E n t e r t h ea p p l i c a b l ep r o g r a m a n d

R U Ni t . I f y o ug e tt h em e s s a g e ," * * * * *d a t ae r r o r* * * * * " ,r e - c h e c k

t h ep r o g r a ma n dk e e pt r y i n gu n t i la l lg o e sw e l l .Y o us h o u l dS A V E

t h ep r o g r a m ,s i n c ey o u ' l lw a n tt o u s ei t e v e r yt i m ey o ue n t e ro n eo f

o u rp r o g r a m s .O n c ey o u ' v eR U Nt h e l o a d e r ,r e m e m b e rt o e n t e r

N E Wt o p u r g eB A S I Ct e x ts p a c e .T h e nt u r nV E R I F I Z E R o nw i t h :

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( t u r ni t o f fw i t hS Y S8 3 1 )

o r S Y S6 3 4t o e n a b l et h eP E Tv e r s i o n ( t u r ni t o f fw i t hS Y S6 3 7 )

O n c eV E R I F I Z E Ri s o n , e v e r yt i m ey o u p 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 pl 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 e

a n dw i l la p p e a ra s g r a p h i c s c h a r a c t e r s u n l e s sy o ua 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 gi t m e a n sw e ' v ee d i t t e dt h a t l i n ea t

t h el a s tm i n u t ew h i c hc h a n g e st h er e p o r tc o d e .H o w e v e r ,t h i sw i l l

o n l yh a p p e no c c a s i o n a l l ya n do n l yo 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 te n t e r t h ep r o g r a mf r o mt h e m a g a z i n

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 No n a

l i n e .I f t h ec o d ed o e s n ' tm a t c h u pw i t ht h el e t t e r sp r i n t e di n t h eb o x

b 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 t t h el i n e ,t h e nt r y

a g a i n .I f y o u w i s h ,y o u c a n L I S Ta r a n g eo f l i n e s ,t h e nt y p e

R E T U R No v e re a c hi n s u c c e s s i o nw h i l ec h e c k i n gt h e r e p o r tc o d e s

a s t h e ya p p e a r .O n c et h ep r o g r a mh a sb e e np r o p e r l y e n t e r e 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 Si n d i c a t e da b o v eb e f o r e

y o ud o a 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 s( e g . P 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 ) , b u t i g n o r e ss p a c e s ,s o y o um a ya d do r

o m i ts p a c e sf r o mt h e l i s t e dp r o g r a ma t w i l l( p r o v i d i n gy o ud o n ' t

s 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 ta 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 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 eb u f f e r ,s o i f

y o u ' r e u s i n ga d a t a s e t t eb e a w a r et h a tt a p e o p e r a t i o n sc a n b e

d a n g e r o u st o i t s h e a l t h .A s f a ra s c o m p a t i b i l i t yw i t h o t h e ru t i l i t i e s

g o e s ,V E R I F I Z E Rs h o u l d n ' tc a u s ea n y p r o b l e m ss i n c ei t w o r k s

t 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 e o r i g i n a l

d 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 .

K E

J F

L I

B E

D H

G KmK P

A F

I N

E C

E P

o cM NM GD MC A

N G

O KA N

G H

J C

E P

M HB H

L i s t i n g1 a : V E R I F I Z E Rf o rC 6 4a n d V I C - 2 0

1 0 r e m *d a t al o a d e rf o r " v e r i f i z e r "*

1 5 r e mv i c / 6 4v e r s i o n

2 0 c s= 0

3 0 f o ri = 8 2 8t o 9 5 8 : r e a d a : p o k ei , a

4 0 c s= c s + a : n e x ti

5 0 :

6 0 i f c s < > 1 4 7 5 5t h e np r i n t "* * * * *d a t ae r r o r* * * * * " :e n d

7 0 r e ms y s8 2 8

8 0 e n d

1 0 0 :

1 0 0 0d a t a

L i s t i n g 1 b :P E T / C B MV E R I F I Z E R ( B A S I C2 . 0o r 4 . 0 )

7 6 , 7 4

1 0 1 0d a t a2 5 2 ,1 4 1

1 0 2 0d a t a 3 , 2 4 0

1 0 3 0d a t a2 5 1 ,1 6 9

1 0 4 0d a t a 3 ,

1 0 5 0d a t a

1 0 6 0d a t a

1 0 7 0d a t a1 3 3 ,

1 0 8 0d a t a2 3 2 ,

1 0 9 0d a t a 3 2 ,

3 ,

0 , 1 6 0 ,

3 2 ,2 4 0 ,

9 0 ,

2 0 8 ,

2 1 0 ,

4 1 ,

8 9 ,

3

3

1 7

9 9 , 1 4 1

9 6 , 1 7 3 , 2 5 4 ,

0 ,

1 6 5 . 2 5 1 ,1 4 1

3 , 9 6 , 1 7 3

1 3 3 . 2 5 2 ,1 7 3

2 , 3 ,

1 ,

2 ,

9 1 , 2 0 0 ,

0 , 1 8 9 ,

1 5 , 1 3 3 ,

3 2 , 1 8 3 , 3 , 1 9 8 ,

2 2 9 , 5 6 , 3 2 , 2 4 0 ,

2 5 5 , 1 6 9 ,1 8 , 3 2 ,

1 1 0 0d a t a 8 9 , 4 1 , 1 5 , 2 4 ,1 0 5 , 9 7 ,

1 1 1 0d a t a1 6 5 , 8 9 , 7 4 ,7 4 , 7 4 , 7 4 ,

1 1 2 0d a t a 3 2 , 2 1 0 , 2 5 5 , 1 6 9 , 1 4 6 ,3 2 ,

1 1 3 0d a t a 3 2 , 2 4 0 , 2 5 5 , 1 0 8 , 2 5 1 ,0 ,

1 1 4 0d a t a1 0 1 , 8 9 , 1 3 3 ,8 9 , 9 6

2

3

2

1 6 9

1 3 3

2 4 0

1 5 2

9 0

2 5 5

2 1 0

3 2

2 4

2 1 0

1 6 5

3 ,

3 ,

3 ,

3 ,

8 9 .

2 2 ,

4 1 ,

1 6 ,

, 1 6 9 ,

, 2 5 5 ,

, 2 1 0 ,

, 1 0 5 ,

, 2 5 5 ,

9 1 ,

1 6 5

2 0 1

1 3 3

1 4 1

1 6 2

2 0 1

3

2 4 9

1 9

1 6 5

2 5 5

9 7

2 4

2 4

C l

C F

L I

H CD H

G KO GJ O

A F

I N

O N

I B

C KE B

H E

O l

J B

P A

H E

E L

L A

K l

E B

D M

1 0 r e m *d a t al o a d e rf o r " v e r i f i z e r4 . 0 "*

1 5 r e mp e t v e r s i o n

2 0 c s= 0

3 0 f o ri = 6 3 4t o 7 5 4 : r e a d a : p o k ei , a

4 0 c s = c s + a : n e x ti

5 0 :

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

7 0 r e ms y s6 3 4

8 0 e n d

1 0 0 :

1 0 0 0d a t a

" : e n d

7 6 , 1 3 8 ,2 , 1 2 0 , 1 7 3

1 0 1 0d a t a1 7 3 , 1 6 4 ,2 , 1 3 3 , 1 4 5

1 0 2 0d a t a1 4 5 ,2 0 1 , 2 , 2 4 0 , 1 6

1 0 3 0d a t a1 4 4 , 1 4 1 , 1 6 3 ,2 , 1 6 9

1 0 4 0d a t a 2 , 1 3 3 , 1 4 5 ,8 8 ,

1 0 5 0d a t a2 0 1 , 1 3 , 2 0 8 ,6 2 ,

1 0 6 0d a t a2 5 4 , 1 , 1 3 3 , 2 5 1 ,

1 0 7 0d a t a 0 , 2 , 1 6 8 , 2 0 1 ,

1 0 8 0d a t a1 6 5 , 2 5 3 ,4 1 ,

1 0 9 0d a t a1 9 8 ,2 5 4 , 1 6 ,

1 1 0 0d a t a2 5 1 , 4 1 , 1 5 ,

1 1 1 0d a t a1 6 5 ,2 5 1 , 7 4 ,

1 1 2 0d a t a1 4 1 , 1 , 1 2 8 ,

1 1 3 0d a t a2 5 1 ,1 3 3 , 2 5 1

3 .

2 4 9

2 4

7 4

1 0 8 ,

9 6

9 6 ,

1 6 5 ,

1 6 2 ,

3 2 ,

1 3 3 ,

2 3 2 ,

1 0 5 ,

7 4 ,

1 6 3 ,

1 6 3 , 2

8 8 , 9 6

1 4 1 ,1 6 4

1 6 5 ,1 3 3

8 5 ,2 2 8

1 6 7 , 2 0 8

0 , 1 3 4

2 4 0 , 1 5

2 5 4 , 3 2

1 5 2 , 2 0 8

1 9 3 ,1 4 1

7 4 , 2 4

2 , 1 5 2

, 1 3 3 ,

, 1 2 0 ,

2 ,

1 4 4 ,

, 1 6 5 ,

5 8 ,

, 2 5 3 ,

, 2 3 0 ,

2 3 6 ,

, 2 2 9 ,

0 ,

1 0 5 ,

2 4 ,

1 4 4

1 6 5

1 6 5

1 6 9

2 1 7

1 7 3

1 8 9

2 5 3

2

1 6 5

1 2 8

1 9 3

1 0 1

T h eT r a n s a c t o r J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 9: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 9/88

B i t sa n dP i e c e s

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 ,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 e u s ei t i n t h e

B i t s& P i e c e sc o l u m n ,w e' I Ic r e d i ty o ui n t h ec o l u m na n ds e n d

y o u af r e eo n e - y e a r ' ss u b s c r i p t i o nt o T h eT r a n s a c t o r

1 5 4 1E r r o rA l l o c a t e rS c o t tG r a y ,N e wB l o o m f i e l d ,M O

D o y o u h a v ea d i s ky o uc a n ' tu s e b e c a u s eo f e r r o r so n i t ?

R e j o i c e ,f o r h e l pi s h e r e !T y p ei n a n dS A V EE r r o rA l l o c a t e r .

P l a c e t h ef a u l t yd i s ki n t h ed r i v ea n dR U Nt h eA l l o c a t e r .I n a

f e wm i n u t e se v e r ys e c t o rw i t ha n e r r o ro n i t w i l lb e a l l o c a t e d .

N o w ,s i n c eD O Sw o n ' tt r y t o w r i t et o t h o s es e c t o r s ,y o uc a n

S A V Ep r o g r a m st o t h a td i s kw i t h o u t e n c o u n t e r i n gt h ed r e a d e d

R e a dE r r o r !

D A

K l

M N

G D

C O

F A

M L

H A

O L

P B

F K

1 0 r e m1 5 4 1e r r o r a l l o c a t e r

2 0 c $= c h r $ ( 1 4 7 ) :h $ = c h r $ ( 1 9 ) :l $ = c h r $ ( 1 5 7 ) :

3 0 p r i n tc $ :o p e n1 5 , 8 , 1 5 , "u ; " :o p e n2 , 8 , 2 ," # "

4 0 g o s u b1 1 0 :i f e f t h e ns t o p

5 0 f o rt - 1 t o 3 5 : f o r s= 0

t o 2 0 + 2 * ( t > 1 7 )+ ( t > 2 4 )+ ( t > 3 0 )

6 0 p r i n th $ "t r a c k "t " s e c t o r "s ;

7 0 p r i n t t l $ " [ 3s p a c e s ] " :p r i n t # 1 5 , "u 1 : "2 ; 0 ; t ; s

: g o s u b1 1 0 :i f e f= O t h e n1 0 0

8 0 p r i n t # 1 5 , " b - f : "O ; t ; s :p n n t # 1 5 , " b - a : "O ; t ; s

9 0 p r i n t :p r i n t "e r r o r "e r "o n " t " , "s "

1 0 0n e x t : n e x t :c l o s e2 : c l o s e1 5 :e n d

1 1 0 i n p u t # 1 5 , e r , e r $ , e 1 , e 2

: e f = 1 + ( e r= 0 o r e r = 6 5o r e r = 7 3 ) :r e t u r n

C o l o u r e dR e m a r k s

W i t h o u tR E M

L u i sP i s t o i a

A r g e n t i n a

H e r ei s a s i m p l ew a yt o m a k ei m p o r t a n tR E M s ,s u c ha s t h o s e

i d e n t i f y i n gs u b r o u t i n e s ,t o s t a n do u ti n p r o g r a ml i s t i n g s .

I n s t e a do f t h e u s u a lR E M ,l i k e

1 0 0 0 r e m* * *s o u n dr o u t i n e* * *

M a k ey o u rs u b r o u t i n e - i d e n t i f y i n gr e m a r kl i k et h i s :

1 0 0 0 r e m" | 3 | [ Y E L ] * * *s o u n dr o u t i n e* * * ^

T og e tt h eR e v e r s e - M ,e n t e r t h el i n ew i t ha s p a c ei n i t s p l a c ea t

f i r s t ,t h e nm o v et h ec u r s o ro v e rt h es p a c ea n dp r e s sR V S O N ,

s h i f t - M ,a n dR E T U R N .

W h e ny o u l i s ty o u r p r o g r a m ,t h e a b o v el i n e w i l la p p e a ri n

y e l l o wa s :

* * *s o u n dr o u t i n e* * *

Y o uc a nu s ey o u rf a v o r i t ec o l o u ri n s t e a do fy e l l o w , o ru s eR V S -

O Nt o h i g h l i g h tt h em e s s a g e .

D i r e c t o r y

F i l e n a m eH i g h l i g h t e r

D i n o B a v a r o

D o nM i l l s ,O N

H e r ei s a h a n d yd i s ku t i l i t yw h i c ha l l o w sy o ut o h i g h l i g h ta n y

f i l e n a m ei n t h e d i r e c t o r y .T h i si s u s e f u li n m a k i n gc e r t a i n

p r o g r a m ss t a n do u t ,s u c ha s p r o g r a mb o o t s ;o r t o t i t l ev a r i o u s

s e c t i o n so f t h e d i r e c t o r y .T h e h i g h l i g h t i n gi s a c h i e v e db y

r e n a m i n gt h ef i l ew i t hf o u rs p e c i a lc h a r a c t e r sp r e c e d i n gi t . T h e

f o u rc h a r a c t e r sa r e :s h i f t e ds p a c e ,t w od e l e t ec h a r a c t e r sa n da

r e v e r s e - o n .T h i sl e a v e se n o u g hs p a c ef o ro n l yt w e l v ec h a r a c

t e r s f o rt h er e s to f t h e f i l e n a m e .T h er o u t i n eb e l o ww i l lf i r s ta s k

y o uw h e t h e r y o u w a n tt o h i g h l i g h to r u n - h i g h l i g h ta n dt h e n

a s k f o r t h e f i l e n a m e .T o l o a d a h i g h l i g h t e df i l e f r o mt h e

d i r e c t o r yy o uc a nu s e :

l o a d "[ s h i f t e ds p a c e ] ? ? ? f i l e n a m e ", 8 , 1

N M

B N

G l

F N

F G

M D

K L

B B

G MN A

O J

A A

M F

K A

B H

C A

E G

A C

G E

I B

1 0 r e mf i l e n a m eh i g h l i g h t e r

2 0 o p e n1 5 , 8 , 1 5 :g o s u b 1 0 0 0

3 0 h d $ =c h r $ ( 1 6 0 )+ c h r $ ( 2 0 )+ c h r $ ( 2 O )+ c h r $ ( 1 8 )

4 0 i n p u t "1 : h i g h l i g h t ,2 : u n - h i g h l i g h t "; n

5 0 o nn g o s u b1 0 0 , 2 0 0

6 0 e n d

7 0 :

1 0 0i n p u t" f i l e n a m et o h i g h l i g h t "; h p $

1 1 0p r i n t # 1 5 , "r O : "+ h d $ + h p $ +" = " + h p $

1 2 0g o s u b1 0 0 0: r e mc h e c kd i s k e r r o r

1 3 0r e t u r n

1 4 0 :

2 0 0i n p u t "f i l e n a m et o u n - h i g h l i g h t "; d p $

2 1 0p r i n t # 1 5 , "r O : "+ d p $+ " = " + h d $ + d p $

2 2 0g o s u b1 0 0 0: r e mc h e c kd i s ke r r o r

2 3 0r e t u r n

2 4 0 :

1 0 0 0 i n p u t # 1 5 , e , e $ , t , s

1 0 1 0i f e t h e np r i n te , e $ :e n d

1 0 2 0r e t u r n

T h eT r a n s a c t o r J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 10: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 10/88

E a s yS p e e d u pF o r

T h e C - 1 2 8W i t h1 5 4 1D r i v e

R i c h a r dY o u n g

G r e e n w o o d ,N S

H e r e ' st h eB A S I CL o a d e r :

R e m e m b e rt h eV I C - 2 0a n dt h e1 5 4 1d i s kd r i v e ?R e m e m b e rt h e

i n s t r u c t i o ni n t h e d i s k d r i v em a n u a lf o ra d j u s t i n g t h e1 5 4 1f o r

u s ew i t ht h eV I C - 2 0 ?A c t u a l l y ,t h ec o m m a n dO P E N1 5 , 8 , 1 5 , "

U I - "w a sn o tr e q u i r e dt o m a k et h e 1 5 4 1V I C - 2 0c o m p a t i b l e ,

b u tr a t h e ri t a l l o w e dt h e1 5 4 1t o f u n c t i o nf a s t e rw i t ht h e V I C .

N o wn o t et h eF A S Tc o m m a n di n t h eC o m m o d o r e1 2 8( i n 1 2 8

m o d e ) ;i t t u r n so f ft h e4 0 - c o l u m ns c r e e n -n o b i gd e a lb e c a u s e

e v e r y 1 2 8u s e rs h o u l d r u ni t i n 8 0 c o l u m n sf o ra n y t h i n gb u t

g r a p h i c s- a n da l l o w s t h e1 2 8t o f u n c t i o nm u c hf a s t e r .N a t u

r a l l y ,i t c a ne a s i l yk e e pu p w i t ht h e 1 5 4 1s e t f o rt h eV I C - 2 0

s p e e d .A ne s t i m a t e d1 7 t o 1 8 p e r c e n ti n c r e a s ei n s p e e df o ra l l

d i s kI / Oi s t h er e s u l t .W i t ha 1 5 4 1a n dC o m m o d o r e1 2 8i n 8 0

c o l u m n s ,e n t e r :

f a s t :o p e n1 5 , 8 , 1 5 ," u i - "

N o wy o u ' r ei n f o rf a s t e rb u s i n e s sw i t h o u ts p e c i a ls p e e d - u p

s o f t w a r e !N o t et h a t" U I +" p u t s t h e1 5 4 1b a c kt o t h es l o w e r

s p e e dr e q u i r e df o r t h e6 4 m o d ea n d1 2 8i n 4 0 c o l u m n s .O f

c o u r s e ,a 1 5 7 1i s m u c hf a s t e rs t i l l .. .

E H

M E

I E

H O

I C

N l

L C

N C

B G

D F

K D

L I

A J

N H

K J

P G

P A

1 0 r e m" l o a d . i t . h e r e "b y f r a n kc o l a r i c c i

1 5 r e ml o a d s a p r ga t a g i v e na d d r e s s

2 0 r e m1 0 0 %r e l o c a t a b l e -e d i tl i n e3 5

2 5 r e ms y n t a x :

3 0 r e ms y sa , "f i l e n a m e ". d e v i c en u m b e r ,

l o a da d d r e s s

3 5 a = 4 9 1 5 2

4 0 f o ri = a t o a + 7 2 :r e a db : p o k ei , b :n e x t

4 5 e n d

5 0 d a t a0 3 2 , 2 5 3 ,1 7 4 ,0 3 2 ,1 5 8 ,1 7 3 ,0 3 2 ,1 4 3

5 5 d a t a1 7 3 , 1 6 9 , 1 0 0 ,1 6 0 ,1 0 1 ,0 3 2 , 2 1 9 ,1 8 2

6 0 d a t a1 6 0 ,0 0 2 ,1 7 7 , 1 0 0 ,1 5 3 , 2 5 1 , 0 0 0 , 1 3

6 5 d a t a0 1 6 , 2 4 8 ,1 6 5 ,2 5 1 ,1 6 6 ,2 5 2 ,1 6 4 ,2 5 3

7 0 d a t a 0 3 2 ,1 8 9 , 2 5 5 , 0 3 2 , 2 5 3 ,1 7 4 , 0 3 2 ,1 5 8

7 5 d a t a1 7 3 ,0 3 2 , 2 4 7 ,1 8 3 ,1 5 2 ,1 7 0 ,1 6 9 ,0 0 8

8 0 d a t a1 6 0 ,0 0 0 , 0 3 2 ,1 8 6 , 2 5 5 , 0 3 2 , 2 5 3 ,1 7 4

8 5 d a t a 0 3 2 ,1 5 8 , 1 7 3 ,0 3 2 ,2 4 7 ,1 8 3 ,0 7 2 ,1 5 2

9 0 d a t a1 7 0 , 1 0 4 , 1 6 8 , 1 6 9 ,0 0 0 , 0 3 2 , 2 1 3 ,2 5 5

9 5 d a t a0 9 6

C - 1 2 8 K e yR e p e a t M o r tA d l e r ,W i n n i p e g ,M B C - 6 4I t a l i c s G l e n M a c k i n n o n , H a n oO N

T h eC - 1 2 8h a sa u t o - r e p e a t i n g k e y sa s a d e f a u l ta f t e rp o w e r -D oy o uw i s ht h eC o m m o d o r e6 4 h a dm o r et h a no n eb u i l t - i n

u p .T od i s a b l e t h e a u t o - r e p e a t ,s i m p l yt y p e : c h a r a c t e rf o n t ?T h a n k st o t h eV I CI I c h i py o uc a n d e s i g ny o u r

o w nc u s t o mf o n t s ,u n l i k eP E To w n e r sw h oa r es t u c k w i t ht h e

p o k e2 5 9 4 , 6 4 . C o m m o d o r es e t .

T o r e - e n a b l ea u t o - r e p e a t ,t y p e :

p o k e 2 5 9 4 , 1 2 8

C - 6 4L o a dI t M yP l a c eN o t Y o u r s ! F r a n kC o l a r i c c i

W i n t e rP a r k ,F L

T h e V o l u m e6 I s s u e0 5 B i t s& P i e c e ss e c t i o nc o n t a i n e da

p r o g r a mn a m e d" r e l o c a t e " .I w o u l dl i k e t os u g g e s t ar e l o c a t

a b l e l o a da s a n a l t e r n a t i v et o e d i t i n gt h e l o a da d d r e s so f a d i s k

f i l e .

H e r e ' s a r o u t i n et h a tc a nb e a p p e n d e dt o y o u rp r o g r a mt h a tw i l l

l o a di n P R Gf i l e sw h e r ey o u w a n tt h e m .T h eM Lp r o g r a mt h a t

L O A D . I T . H E R E "c r e a t e si s r e l o c a t a b l ea n d m a yb e l o a d e d

w h e r e v e r y o uh a v e7 3 b y t e so f f r e em e m o r y .P l e a s en o t et h a t

l o c a t i o n s2 5 1t h r o u g h2 5 3a r eu s e dd u r i n gt h ee x e c u t i o no f t h i s

M Lp r o g r a m .

T h es y n t a xo f u s i n gL O A D . I T . H E R Ei s :

S Y Ss t a r t , "f i l e n a m e ". d e v i c en u m b e r j o a da d d r e s s

C u s t o mc h a r a c t e rs e t sa r eu s u a l l yr e p r o d u c e di n m a g a z i n e sv i a

h u n d r e d so f D A T As t a t e m e n t s , b u tt h i ss h o r tp r o g r a mc r e a t e s

t h en e wc h a r a c t e r sb y m o d i f y i n gt h e o l d c h a r a c t e r p a t ti n

m e m o r y .T h i sp r o g r a mu s e st h eb u i l t - i nc h a r a c t e rs e tt o c r e a t e

a n e ws e t o fp s e u d o - i t a l i cc h a r a c t e r s .

T h ep r o g r a ms h i f t st h eu p p e rf o u rr o w so f e a c hc h a r a c t e rt o t h e

r i g h t( t h eN / 2i n l i n e7 0 ) ,g i v i n gt h e ma n i t a l i c s - t y p es l a n t .T h e

n e wc h a r a c t e rs e t i s l o c a t e da t 1 2 2 8 8( h e x$ 3 0 0 0 )a n d i s

e n a b l e d b ya P O K E5 3 2 7 2 , 2 9 . S i n c et h i sp r o g r a mu s e ss t r a i g h t

f o r w a r dP O K E sa n do n l ya d i v i d e - b y - 2( s h i f tr i g h t i nm a c h i n e

l a n g u a g e ) ,i t i s a c h a l l e n g i n gb u t n o ti m p o s s i b l et a s kf o r

b e g i n n e r sl e a r n i n gm a c h i n el a n g u a g et o t r y t o t r a n s l a t e . I f a c t ,

t h i sp r o g r a ms h o u l d b et r a n s l a t e dt o m a c h i n el a n g u a g ef o r

i n c r e a s e d s p e e d ;i t i s p r e s e n t e d h e r ei n B A S I Ct o c l e a r l ys h o w

t h em e t h o do f i t a l i c i z i n gt h ec h a r a c t e r s .

A f t e r t h ep r o g r a mr u n s ,t h eu p p e ra n dl o w e r - c a s ec h a r a c t e r

a r e u n c h a n g e d ,b u t r e p l a c i n g t h e r e v e r s e c h a r a

i t a l i c — l i k e l e t t e r s( t h i sh a s t h e s i d ee f f e c to f d e s t r o y i n gt h e

c u r s o r ) .T o u s et h ei t a l i c s ,j u s tp r i n to r t y p ey o u rd e s i r e dt e x ti n

r e v e r s e - f i e l d .T o s w i t c hb a c kt o t h e r e g u l a r c h a r a c t e rs e t ,u s e

P O K E5 3 2 7 2 , 2 1 .

T h eT r a n s a c t o r J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 11: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 11/88

E l

B F

P O

M K

J O

C C

A M

D F

L M

H B

H M

1 0 r e mi t a l i c sf o rt h ec 6 4

2 0 p o k e5 3 2 7 2 , 2 9 :r e mc h a n g ec h a r , s e t

3 0 a d = 5 5 2 9 6 :t 1 = 1 2 2 8 8 :t 2 = 1 3 3 1 2

4 0 p o k e5 6 3 3 3 , 1 2 7 :p o k e1 , 5 1 :r e md i s a b l e

i r q ,g e tc h a r ,r o m

5 0 f o ri = 0 t o 1 0 2 3 :n = p e e k ( a d+ i )

6 0 p o k et 1 + i , n

7 0 i f ( i a n d 4 )= 0 t h e n n= n / 28 0 p o k et 2 + i , n :n e x ti

9 0 p o k e1 , 5 5 :p o k e5 6 3 3 3 , 1 2 9 : r e - e n a b l ei r q ,

n o r m a lr o m

1 0 0p r i n t "n o r m a lc h a r a c t e r s "

1 1 0p r i n t "^ i t a l i c sc h a r a c t e r s ! "

T h eS C N K E YK e r n a lR o u t i n e ( A u t h o rU n k n o w n )

H e r ei t i s , t h e n a k e dt r u t h :t h eS C N K E YK e r n a lr o u t i n eh a s

b e e ns a d l y n e g l e c t e d .W e l l ,n o m o r e !F o rs p e e d y k e y b o a r d

i n p u t ,i t i s u n p a r a l l e l e d ,a h a r et o G E T I N ' st o r t o i s e .

T o t e l l y o ut h e t r u t h ,I ' m n o te v e ns u r eh o wi t w a st h a tI

s t u m b l e da c r o s st h i sh a n d yr o u t i n e( l o c a t e da t 6 5 4 3 9- $ f f 9 f ) .I

n o t i c e dt h a ti n a l l t h e m e m o r ym a p s ,i t w a s m a r k e da s n o t

r e t u r n i n ga n yv a l u e s , b u td e c i d e dt o t r yi t o u ta n y w a y .V o i l a !

W h e nt h e r o u t i n ei s c a l l e d ,t h eA s c i iv a l u eo f t h e c u r r e n tk e y

d o w ni s r e t u r n e di n t h e . X r e g i s t e r ! .T h i sw a ss o m e t h i n gI ' d

b e e nl o o k i n gf o r f o ra l o n gt i m e ,a n dh a ss i n c ep r o v e dt o b e

s u p e r i o rt o G E T I Nt o c h e c kf o rk e y p r e s s e s .

I t w o r k st h i sw a y :t h eG E T I Nr o u t i n et a k e sa c h a r a c t e rf r o mt h e

k e y b o a r db u f f e ra n dr e t u r n si t i n t h ea c c u m u l a t o r .A l lk e y sc a n

b e m a d et o r e p e a tb y p u t t i n ga 1 2 8i n l o c a t i o n6 5 0 , b u t ad e l a y

l o o pi n t h ek e y b o a r ds c a nm e a n st h a to n l ya b o u t7 c h a r a c t e r sa

s e c o n da r e r e t u r n e d .

C - 6 4a n dV I CU n - N E W sS h e aT . S m a l l , T h o r n h i l l ,O N

I t ' sp r o b a b l yh a p p e n e dt o e v e r y o n e .W h i l ew o r k i n go n s o m e

B A S I Cp r o g r a m y o ua c c i d e n t a l l yt y p e" N E W " .U s u a l l yt h a t ' s

t h ee n do f t h a t .A l lt h o s eh o u r so f w o r kg o n ed o w nt h ed r a i n .

B u tt h e r ei s a w a yo u to f t h a t .E n t e rt h i sl i n e :

F o rt h e6 4 - p o k e 2 0 5 0 , 1: s y s 4 2 2 9 1: p o k e 4 5 , p e e k ( 3 4 ): p o k e 4 6 , p e e k ( 3 5 ) : c l r

F o rt h eV I C- p o k e 4 0 9 8 , 1: s y s 5 0 4 8 3 : p o k e 4 5 , p e e k (

: p o k e 4 6 , p e e k ( 3 5 ) : c l r

F a s tM e m o r yC l e a rU s i n gG a r b a g e D o n a l dF u l t o n

S t o n e m a n ,M A

G a r b a g ec a n b eu s e f u l .T h e B A S I Cl i n eb e l o ww i l lc l e a rm o s to f

f r e em e m o r y ,f r o m4 0 Kt o 8 K i n o n l y2 s e c o n d s .D o i n gt h e

s a m ej o bw i t hP O K Ew o u l dt a k ea l m o s t2 m i n u t e s .

z $ = " " : f o rx = 1 t o 2 5 5 :z $ = z $ + c h r $ ( 0 ) :n e x t

I n g e n e r a t i n go n ea c t i v es t r i n g o f2 5 5c h a r a c t e r s ,a n a m a z i n g

3 2 Ko f d e a ds t r i n g sa r el e f tb e h i n di n d y n a m i cs t r i n gs p a c e .T h e

m a t hi s t h es u mo f 1 + 2 + 3 + . . . + 2 5 4+ 2 5 5 .

T h i st e c h n i q u ei s e f f e c t i v ei n c l e a r i n g a h i - r e ss c r e e n( o rf i l l i n g

i t w i t ha n yg i v e nb y t e )i f t h es c r e e ni s l o c a t e dw i t h i nt h en o r m a l

f r e eR A Ma r e a( b e l o w$ A 0 0 0 ) .D o t h ec l e a rb e f o r em o v i n gt h e

t o po f B A S I Cd o w n .

( P R I N TA TU p d a t e )U p d a t e M i k eS c h m i d t

N o r t hT o n a w a n d a ,N Y

B u tS C N K E Yh a sn o s u c hl i m i t a t i o n s .I t i s c a l l e d a s p a r to f t h e

s t a n d a r di n t e r r u p tp r o c e s sa n du p d a t e st h e k e y b o a r db u f f e r

a n da l l k e yl o c a t i o n s .H o w e v e r ,r e a d i n gf r o mt h eb u f f e ri s s l o w

a n dt h e l o c a t i o n s( s u c ha s l o c a t i o n2 0 3 )r e t u r nv a l u e so t h e r

t h a nA s c i ic o d e s .I t ' st h e. X r e g i s t e rt h a t ' st h ek e y .T h ev a l u el e f t

h e r et a k e si n t oa c c o u n tt h es h i f t ,C T R La n dC o m m o d o r e - l o g o

k e y sa n dr e f l e c t st h e s t a t eo f t h e k e y b o a r dw h e nS C N K E Yi s

c a l l e d .B e s to f a l l ,S C N K E Yc a nb e c a l l e da n dt h ek e y b o a r dr e a d

e v e nw h e ni n t e r r u p t s a r e d i s a b l e d .T r y t h i s ;t h e s p e e di s S o ,t o s e tt h ec u r s o rp o s i t i o n :

a m a z i n g .

I n t h eV o l u m e6 , I s s u e5 B i t sa n dP i e c e sc o l u m na n a r t i c l et i t l e d

" P R I N TA TU p d a t e "s t a t e dt h a tt h eK e r n a lP L O Tr o u t i n ew a s

u n r e l i a b l ew h e ne n t e r e dt h r o u g ht h e j u m pt a b l ea t 6 5 5 2 0

( $ F F F 0 ) .

T h i si s n o t t h ec a s ei f t h ec a r r yi s s e to r c l e a r e d b e f o r ec a l l i n g

t h er o u t i n eb y P O K E i n gt h e d e s i r e ds t a t u s i n t om e m o r yl o c a

t i o n7 8 3( $ 0 3 0 F ) .B e f o r ee x e c u t i n gt h er o u t i n e ,B A S I Cw i l lp u t

t h ec o n t e n t so f 7 8 3i n t ot h ep r o c e s s o rs t a t u sr e g i s t e r .

T h eS C N K E Yr o u t i n ec a n b e u s e dt o g r e a ta d v a n t a g ei n b o t h

M La n dB A S I C .T o u s e i t f r o m B A S I C ,S Y S6 5 4 3 9 a n dt h e n

P E E K ( 7 8 1 )t o g e t t h e A s c i iv a l u eo f t h e k e yc u r r e n t l yh e l d T o r e a dt h e c u r s o rp o s i t i o n :

d o w n .I o n l yh o p et h a t f u t u r em e m o r ym a p sw i l lg i v et h i sg r e a t

l i t t l ep i e c eo f c o d ei t sd u e .

p o k e7 8 1, r o w :p o k e7 8 2 , c o l :p o k e7 8 3 , 0

: s y s6 5 5 2 0 :p r i n t "m e s s a g e "

p o k e7 8 3 , 1: s y s 6 5 5 2 0 :r o w= p e e k ( 7 8 1 )

: c o l= p e e k ( 7 8 2 )

T h eT r a n s a c t o r J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 12: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 12/88

Page 13: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 13/88

Page 14: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 14/88

B E

C K

A O

K M

M H

C O

E C

F L

C D

O G

N O

C l

A C

O H

P K

O GP E

G D

M J

J K

I G

E G

G F

C M

1 0 0p r i n t "E n t e rn a m eo f p r o g r a mt o b e a u t o - s t a r t e d "

1 1 0i n p u t "p r e s e n tn a m e "; f $

1 2 0p r i n t "E n t e r f i l e n a m ef o rn e wa u t o - b o o tp r o g r a m "

1 3 0i n p u t "n e wn a m e " ;n $

1 4 0p o k e6 4 9 , 0 :o p e n1 , 8 , 1 , " 0 : "+ n $

1 5 0p r i n t # 1, c h r $ ( 1 9 9 ) ; c h r $ ( 2 ) ;

1 6 0f o ri = 1 t o 6 1

1 7 0r e a dv : p r i n t # 1, c h r $ ( v ) ; :n e x t

1 8 0f o ri = 7 7 2t o 2 0 4 8

1 9 0p r i n t # 1 , c h r $ ( p e e k ( i ) ) ; :n e x t

2 0 0o p e n2 , 8 , 3 , f $ :g e t # 2 , g $ , g $

2 1 0f o ri = 0 t o 1

2 2 0g e t # 2 , g $ :i f g $ = " " t h e ng $ = c h r $ ( 0 )

2 3 0i = s t : p r i n t # 1 , g $ ; :n e x t

2 4 0c l o s e1 : c l o s e2

2 5 0 :

2 6 0d a t a1 6 9 , 4 7 , 1 3 3 ,

2 7 0d a t a1 6 9 , 0 , 1 3 3 ,

2 8 0d a t a 8 2 , 1 4 1 , 1 1 9 ,

2 9 0d a t a 2

3 0 0d a t a1 3 3

3 1 0d a t a1 6 4

3 2 0d a t a 3

1 6 9 ,

1 9 8 ,

1 4 1 ,

1 6 9 ,

1 3 .

1 6 9 ,

3 ,

1 7 3 ,

0 ,

1 5 7 ,

2 ,

1 4 1 ,

1 3 1 ,

3 ,

1 4 1 ,

1 6 9 ,

3 2 ,

1 6 9 , 2 1 3

1 2 1

1 4 1

1 6 9

2 4

5 5 , 1 3 3 , 1

6 8 , 2 2 9 ,1 6 9

1 4 1 , 1 2 0

1 6 9 , 33 , 1 6 9

1 4 1 , 2 0

7 6 , 1 1 6

2 ,

2 ,

5 2 ,

3 ,

3 3 0d a t a1 6 4 ,1 3 9 ,2 2 7 ,1 9 9 , 2

T h e C - 6 4G r e a tE s c a p e D a v i dC l a u s s e n

M e n o m o n e eF a l l s ,W I

B e l o wi s a s h o r tm a c h i n el a n g u a g ep r o g r a mf o rt h eC - 6 4t h a t

c r e a t e st h e e f f e c to f a n e s c a p ek e y .A n e s c a p ek e y ,w h i c hi s

n o r m a l l y f o u n do n I B Mc o m p a t i b l e s ,i s n o r m a l l yn o ta v a i l a b l e

f o rC o m m o d o r eo w n e r s .W h a ta n e s c a p ek e yd o e s ,s i m p l yp u t ,

i s l e tt h e u s e r" e s c a p e " f r o mw h a t e v e rh e o r s h em a yb e d o i n g

a t t h et i m e .

W h i l ep r o g r a m m i n gi n B A S I C ,w h a tt h i sf u n c t i o nd o e si s c l e a r

t h es c r e e nl i n e t h a tt h ec u r s o ri s o n a n dp o s i t i o n t h ec u r s o ra t

t h e f i r s tc o l u m n .I t a l s ot u r n so f f q u o t em o d e , w h i c ha l l o w s

n o r m a lu s eo f t h e c u r s o ra n do t h e rc o n t r o lk e y s .A n df i n a l l y ,i t

t u r n so f fr e v e r s em o d e .

T h eb a c k - a r r o wk e y ( l o c a t e da t t h e t o pl e f t c o r n e ro f t h e

k e y b o a r d )b e c o m e st h ee s c a p ek e y .I f y o uw i s ht o u s et h eb a c k -

a r r o w k e yi n a p r o g r a m ,h o l dd o w nt h eC o m m o d o r e - l o g ok e y

w h i l ep r e s s i n gb a c k - a r r o w .

F B

F M

H F

F B

G K

G J

A M

1 0 r e m* * e s c a p ek e y- p r e s sb a c k a r r o w* *

2 0 f o rj = 4 9 1 5 2t o 4 9 2 2 7 :r e a dx : p o k ej , x

: c k = c k + x : n e x t

3 0 i f c k < > 8 6 9 8t h e np r i n t "d a t ae r r o r " :s t o p

4 0 s y s 4 9 1 5 2

5 0 :

1 0 0d a t a1 2 0 , 1 6 9 ,1 3 , 1 4 1 ,2 0 , 3 , 1 6 9 , 1 9 2

1 1 0d a t a1 4 1 , 2 1 ,3 , 8 8 , 9 6 , 1 6 5 , 1 9 7 , 2 0 1

O J

K L

O M

B J

J L

C H

F N

L G

1 2 0

1 3 0

1 4 0

1 5 0

1 6 0

1 7 0

1 8 0

1 9 0

d a t a 5 7 ,

d a t a 2 4 0 ,

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

0

1 1 9

2

0

1 6 9

1 9 8

2 0 8 , 5 4 , 1 7 3 ,

4 7 , 1 6 6 , 2 1 4 ,

2 4 , 3 2 ,1 0 ,

2 , 1 6 9 ,1 5 7 ,

1 3 3 ,1 9 8 , 1 6 9 ,

1 3 3 , 1 9 9 ,1 6 9

1 5 7 , 1 4 1 ,1 2 0

7 6 , 4 9 , 2 3 4

1 4 1 ,

3 2 ,

2 2 9 ,

1 4 1 ,

0

3 2

2

2 ,

2 5 5 ,

1 6 9 ,

1 2 0 ,

1 3 3 ,

1 4 1

1 6 9

2 0 1 ,

2 3 3 ,

2 9 ,

2 ,

2 1 2 ,

1 1 9 ,

2 ,

2

1 6 0

1 4 1

1 6 9

1 6 9

2

1 3 3

R e t u r no f T h eS w o r d sO fD o o m A r t h u rW o l f

W i c h i t a ,K S

W et o l dy o ut h e y ' db e b a c k !T h i st i m e ,t h a n k st o M r . W o l f ' s

p r o g r a m ,t h eE v i lS w o r d s a p p e a ra s c o m e t s ! O o h ,s c a r ys t u f f ,

k i d s !

E P

J EK N

N l

B P

K G

A B

F P

M C

O C

L M

F P

B E

1 0 r e mf o rf r u s t r a t e dc o m e tg a z e r s

1 5 r e mh e r e ' st h i sr e n d i t i o no f c h r i s ' s2 0 r e m" E v i lS w o r d so f D o o m "( 6 / 4p . 9 )

2 5 :

3 0 l $ = c h r $ ( 1 5 7 )

3 5 p o k e5 3 2 8 0 , 0 :p o k e5 3 2 8 1 , 0

4 0a $ =" [ B L U E l M f l M f l [ C Y A N ] M

4 5 b $=

5 0 p r i n tc h r $ ( 1 4 2 )

5 5 p r i n t " s " t a b ( r n d ( 1 ) * 4 1 )

6 0 f o ri = 1 t o 1 9 :p r i n ta $ ;

6 5 f o r d= 1 t o 1 5 :n e x t

7 0 n e x ti : p r i n t b S ; :g o t o 5 5

D a t e C o n v e n t i o n s R . C .E l d r i d g e

P e m b e r t o n ,B C

T h e r eh a sa l w a y sb e e nc o n f u s i o nb e c a u s eo f t h eU . S .c o n v e n

t i o no f e x p r e s s i n gt h ed a t ei n t h eo r d e r" m o n t h - d a y - y e

a n dt h er e s to f t h ew o r l du s i n gd a y - m o n t h - y e a r .S e v e r a l y e a r

a g oa n i n t e r n a t i o n a ls t a n d a r d sb o d yr e c o m m e n d e dt h a te v e r y

o n eu s ey e a r - m o n t h - d a y a n di t i s s l o w l y c a t c h i n go n .

I f y o uu s ey e a r - m o n t h - d a ya s ad a t e r e f e r e n c ei n o n ef i e l do f a

d a t af i l e ,t h ec o m p u t e rw i l la u t o m a t i c a l l ys o r tr e f e r e n c e si n t o

t h e r i g h tc h r o n o l o g i c a lo r d e r .F o r l o g g i n gp u r p o s e sw h e r e

p r e c i s et i m ei s i m p o r t a n tt h en u m b e rc a n b e e x t e n d e dt o y e a r -

m o n t h - d a y - h o u r - m i n u t e .

T h eb a s i ci d e ai s u s e f u li n a t w o - d a ya m a t e u rr a d i oc o n t e s tl o g .

I f y o uu s et h ef o r md a y - h o u r - m i n u t ef o rt h et i m ee n t r y ,t h el o g

c a nb e r e - s o r t e de a s i l y i n t oc h r o n o l o g i c a lo r d e ra f t e rh a v i n g

s o r t e di n t o c a l l s i g n so r c o u n t r i e s o rw h a t e v e rf o ra n a l y s i s .

T h eT r a n s a c t o r 1 O J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 15: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 15/88

T h eH i d d e n M e s s a g e J i mB u t t e r f i e l d ,T o r o n t o

T h e r e ' sa n e n c r y p t e dm e s s a g ei n t h eC o m m o d o r e1 2 8 . Y o u ' l l

n e v e rf i n di t b y i n s p e c t i n gm e m o r y ,s i n c ei t i s d e f i n i t e l yi n c o d e

. . . a n dn o ta n e a s yo n et o c r a c k .

I ' l lt e l ly o uw h e r ei t i s l o c a t e d .I t ' si n b a n k1 5 - t h a t ' sR O M- a t

a d d r e s s e s4 4 6 4 4t o 4 4 7 9 9 .I t ' sn o te a s yt o c r a c k ;s i n c ee v e r y

o n eo f t h e1 5 6c h a r a c t e r sh a sa d i f f e r e n t" k e y "v a l u e ,i t ' sn o ta

s i m p l eC a e s a rc i p h e r .I n f a c t ,i f t h e1 5 6k e y sw e r ei n d e p e n d e n t

a n d r a n d o m ,t h ec o d ew o u l di n d e e db e u n c r a c k a b l e ,s i n c en o

k e yi s r e p e a t e d .B u t e a c h k e yi s m a t h e m a t i c a l l yr e l a t e dt o t h e

p r e v i o u s o n e ,a n da c r a c k e r w i t ht i m ea n di n g e n u i t ym i g h t-

p e r h a p s - b ea b l et o b r e a ki t . I ' ma b o u tt o g i v ei t a w a y ,s o y o u

m i g h tl i k e t os t o pr e a d i n gr i g h tn o wi f y o u ' r ea s e r i o u sc i p h e r

s o l v e r .

S e c r e tc o d ec a no f t e nb e f o u n di n s o f t w a r e .S o m e t i m e si t ' sa

p e r s o n a ls i g n a t u r eb y t h e a u t h o r .S o m e t i m e si t ' sa s e c r e tp r o o f

o f c o p y r i g h t .S o m e t i m e si t ' sa n a m u s e m e n t .H e r e ' sa s i m p l e

B a s i cp r o g r a mt o m a k et h ec o d er e a d a b l e .

B y t h ew a y ,i f y o uj u s tw a n tt o r e a dt h em e s s a g e ,I ' l lg i v ey o ua

q u i c km e t h o da t t h ee n do f t h i sa r t i c l e .

E n t e rt h e f o l l o w i n gc r u d ed e c o d i n gp r o g r a m o ny o u rC o m m o

d o r e1 2 8 .U s e4 0 c o l u m nm o d e ,b e c a u s eI ' mP O K E - i n gt o t h e

s c r e e n .

1 0 0b a n k1 5

1 1 0p r i n tc h r $ ( 1 4 7 ) ; c h r $ ( 1 4 )

1 2 0p r i n t : p r i n t : p r i n t

1 3 0f o rj = 1 t o 1 5 61 4 0 x= x o r ( x o r ( p e e k ( 4 4 6 4 3 + j ) , j ) , 5 9 )

1 5 0m = 1 9 2 : i f ( x a n dm )= 0 o r ( x a n dm )= m t h e nm = 0

1 6 0i f ( x o r ( x . m )a n d3 2 ) > 0t h e nm = x o r ( 1 2 8 , m )

1 7 0p o k e1 0 2 3+ j , 2 5 5a n dx o r ( j , m )

1 8 0n e x tj

Y o u ' l ls e e t h em e s s a g ei n c r u d es c r e e n f o r m a t- f o r m a t t i n g

c h a r a c t e r ss u c ha s R E T U R Nw i l la p p e a ra s c o n t r o lc h a r a c t e r s ,

b u ti t ' sr e a d a b l e .

I f y o uj u s tw a n tt o r e a d t h em e s s a g e ,a n dd o n ' tc a r ew h e r ei t ' s

s t o r e do r i n t h ed e c o d i n gp r o c e s s ,t h e r e ' sa n e a s i e r( a n dn e a t e r )w a yt o s e ei t o n y o u r1 2 8s c r e e n . J u s tt y p e :

s y s3 2 8 0 0 , 1 2 3 , 4 5 , 6

V e r f i z e rF o rT h eP l u s4 a n dC 1 2 8

B y n e x ti s s u ew e ' l lh a v ea V e r i f i z e r f o rt h eB M a c h i n e sa n df o r

t h eC 1 2 8i n 8 0 C o l u m nm o d e .T h e y ' l la l la p p e a ru p a t t h ef r o n t

w i t h t h eo t h e rV e r i f i z e rp r o g r a m s .

P l u s4 V e r f i z e r

I N l I 1 0 0 0 r e m* d a t al o a d e rf o r" v e r i f i z e r+ 4 "

T h eT r a n s a c t o r 1 1

P M

E E

N H

J l

A P

N P

J C

I D

P L

C A

O D

L P

E K

D l

L K

G J

D N

G JC B

C B

P E

D O

B A

B G

C 1 2 8

P K

A K

J KN H

O G

J P

M P

A G

I D

G F

M G

H E

L MJ A

E l

K J

D H

J M

K G

E F

C G

E C

A C

J A

c cB O

P D

1 0 1 0

1 0 2 0

1 0 3 0

1 0 4 0

1 0 5 0

1 0 6 01 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 0

1 1 7 0

1 1 8 01 1 9 0

1 2 0 0

1 2 1 0

1 2 2 0

1 2 3 0

1 2 4 0

r e m* c o m m o d o r ep l u s / ^

g r a p h i c1

v e r s i o n

s c n c l r :g r a p h i c0 : r e mm a k e

r o o mf o rc o d e

c s =

f o rj

: c h

0

= 4 0 9 6t o 4 2 1 6 :r e a c

= c h n- x : n e x t

i f c h < > 1 3 1 4 6 t h e np r i n t

: s t o p

p r i n tp r i n t

e n d

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t ad a t a

d a t a

d a t a

d a t a

d a t a

d a t a

" s y s" s y s

7 6 ,

1 6 5 ,

3 ,

2 ,

3 ,

2 0 ,

0 ,

1 7 6 ,

2 4 0 ,

2 0 0 ,1 6 ,

1 6 5 ,

0 ,

2 4 ,

0 ,

9 6

x : p o k e j ,X

' c h e c k s u me r r o r "

4 0 9 6 :r e mt o e n a b l e "4 0 9 9 :r e mt o d i s a b l e "

1 4 , 1 6 , 1 6 5 ,

2 1 2 , 1 4 1 ,3 ,

2 0 1 , 1 6 , 2 4 0 ,

3 , 1 3 3 , 2 1 1 ,

1 6 9 , 1 6 , 1 4 1 ,

1 3 3 , 2 0 8 ,1 6 2 ,

2 , 2 0 1 ,4 8 ,

3 , 2 3 2 ,2 0 8 ,

2 2 , 2 0 1 ,3 2 ,

1 5 2 , 4 1 , 3 ,1 9 8 , 2 0 9 ,1 6 ,

2 0 8 , 4 1 , 1 5 ,

1 2 , 1 6 5 , 2 0 8 ,

1 0 5 , 1 9 3 ,1 4 1 ,

1 6 5 , 2 1 0 ,2 4 ,

V e r i f i z e r( 4 0c o l u m nm o d e )

1 0 0 0

1 0 1 0

1 0 2 01 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

r e m

r e m

r e mc s =

f o rj =

: c h=

2 1 1

3

1 7

1 6 9

3

0

1 4 4

2 4 2

2 4 0

1 3 32 4 9

2 4

7 4

1

1 0 1

1 4 1

9 6

1 3 3

3 9

3

1 6 0

7

1 8 9

1 5

2 0 92 3 2

1 0 5

7 4

1 2

2 0 8

2 , 3

1 7 3 , 3

2 1 2 ,1 7 3

1 4 1 , 2

9 6 , 1 6 5

0 , 1 8 9

2 0 1 , 5 8

0 , 2

1 3 3 , 2 1 0

3 2 , 1 1 32 0 8 , 2 2 9

1 9 3 ,1 4 1

7 4 , 7 4

1 0 8 , 2 1 1

1 3 3 , 2 0 8

* d a t al o a d e rf o r " v e r i f i z e rd 2 8 "

* c o m m o d o r ec 1 2 8

* u s e3

v e r s i o n

i n 4 0 c o l u m nm o d e

= 3 0 7 2t o 3 2 1 4 : r e a d

= c h + x : n e x t

i f c h < > 1 7 8 6 0t h e np r i n t

: s t o p

p r i n t

p r i n t

e n d

d a t a

d a t a

d a t a

1 1 2 0d a t a1 1 3 0d a t a

1 1 4 0

1 1 5 0

1 1 6 0

1 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 01 2 5 0

1 2 6 0

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

" s y s

" s y s

2 0 8 ,

2 5 4 ,

2 0 1 ,

3 ,1 6 9 ,

1 3 3 ,

2 ,

3 ,

2 2 ,

1 5 2 ,

1 9 8 ,

3 2 ,

1 6 9 ,

1 5 ,

d a t a2 5 0 ,

d a t ad a t a

d a t a

3 2 ,2 4 ,

2 5 2 ,

3 0 7 2 , 1 :r e mt o

3 0 7 2 , 0 :r e mt o

1 1 ,1 6 5 , 2 5 3 ,

1 4 1 , 3 , 3 ,

1 2 , 2 4 0 ,1 7 ,

1 3 3 , 2 5 3 ,1 6 9 ,1 2 , 1 4 1 ,3 ,

2 5 0 , 1 6 2 ,0 ,

2 0 1 , 4 8 , 1 4 4 ,

2 3 2 ,2 0 8 ,2 4 2 ,

2 0 1 , 3 2 , 2 4 0 ,

4 1 , 3 , 1 3 3 ,

2 5 1 , 1 6 , 2 4 9 ,

2 4 0 , 2 5 5 ,1 6 9 ,

1 8 , 3 2 , 2 1 0 ,

2 4 , 1 0 5 ,1 9 3 ,

7 4 , 7 4 ,7 4 ,

2 1 0 , 2 5 5 ,1 6 9 ,3 2 ,2 4 0 , 2 5 5 ,

2 4 ,1 0 1 , 2 5 0 ,

o n l y

x : p o k e j ,X

c h e c k s u me r r o r "

e n a b l e "

d i s a b l e "

1 4 1 ,

9 6 ,

1 3 3 ,

3 8 ,3 ,

1 6 0 ,

7 ,

1 8 9 ,

1 5 ,

2 5 1 ,

2 3 2 ,

1 9 ,

2 5 5 ,

3 2 ,

7 4 ,

1 4 6 ,1 0 8 ,

1 3 3 ,

2 ,

1 7 3 ,

2 5 4 ,

1 4 1 ,9 6 ,

0 ,

2 0 1 ,

0 ,

1 3 3 ,

3 2 ,

2 0 8 ,

3 2 ,

1 6 5 ,

2 1 0 ,

2 4 ,

3 2 ,2 5 3 ,

2 5 0 ,

3 , 1 6 5

3 , 3

1 7 3 , 2

2 , 31 6 5 , 2 2

1 8 9 , 0

5 8 , 1 7 6

2 , 2 4 0

2 5 2 , 2 0 0

1 3 5 , 1 2

2 2 9 , 5 6

2 1 0 , 2 5 5

2 5 0 , 4 1

2 5 5 ,1 6 5

1 0 5 ,1 9 3

2 1 0 , 2 5 50 , 1 6 5

9 6

J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 16: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 16/88

C - 1 2 8 ' s H e l pK e yR e d e f i n e d W a l t e rK i c e l e f f

B u e n o sA i r e s ,A r g e n t i n a

I r e a l l yl i k ey o u rm a g a z i n e a n dI w o u l dl i k e t oc o n t r i b u t eb y

s e n d i n gy o ut h i s ' C u r i o s i t y 'I d i s c o v e r e di n m yc o m p u t e r .

I n t h eC o m m o d o r e1 2 8 ,y o uc a nr e d e f i n et h e' H E L P 'k e yt o u s e

i t l i k ea F u n c t i o nk e y .T h eH E L Pk e yh a sa m e m o r ya s s i g n m e n t

o f o n l y5 b y t e s( 4 1 6 8 - 4 1 7 2 ) .I f y o uP o k et h e s el o c a t i o n sw i t h

t h eA s c i iv a l u eo f t h e c h a r a c t e r sy o u w a n tt o u s e ; P r e s t o !I t

w o r k s .F o re x a m p l e :

1 0 f o n= 4 1 6 8 t o 4 1 7 2

2 0 r e a da $ :p o k ei , a s c ( a $ )

3 0 n e x ti

4 0 d a t ap , r , i , n , t

I f y o uw a n tt o a d da c a r r i a g er e t u r n ,p o k e4 1 7 2 , 1 3 .T h e ny o u r

m e s s a g ew i t hh a v e4 l e t t e r s( n o t5 ) p l u sa c a r r i a g er e t u r n .

A m i g aL a t t i c eC N o t e s R o b e r tC a s e

S p r i n g f i e l d ,O r e g o n

W h i l eu s i n gt h e A m i g aL a t t i c eC C o m p i l e ,v e r s i o n3 . 0 2 ,I

e n c o u n t e r e dt w op r o b l e m s .A d e s c r i p t i o no f e a c hp r o b l e m

f o l l o w s :

F i r s tP r o b l e m :s c a n f .. . W h e ns c a n fw a su s e di n t h e f o l l o w i n g

f o r m , t h ep r o g r a md i d n ' t h a l ta n dw a i tf o rk e y b o a r di n p u t :

s c a n t( " ° / o f ° / o c \ n " ,& f i r s t ,& s e c o n d ) ;

W h e nt h ef o r mw a sc h a n g e dt o :

s c a n f( " % f% c \ n " ,& t i r s t ,& s e c o n d )

T h ep r o g r a mw o u l dh a l ta n dw a i tf o r k e y b o a r di n p u t .T h e

a d d i t i o no f a s p a c eb e f o r ee a c h' % 'c o r r e c t e d t h ep r o b l e m .

S e c o n dP r o b l e m :l e t t e r s" E " a n d / o r" e " . . . w h e nt h e s e

l e t t e r sw e r eu s e da s ak e yt o " e x i t "t h ep r o g r a mu s i n g' s c a n f ' ,

t h e i ru s e w a sn o t r e c o g n i z e d .W h e nt h e l e t t e r" Q " w a s

s u b s t i t u t e df o r t h e l e t t e r" E " , t h e p r o g r a mw o r k e da s e x

p e c t e d .I s i t p o s s i b l et h a tt h el e t t e r" E " i s a r e s e r v e dw o r di n

t h i sv e r s i o no f C ?

A n o t h e rp o i n t :i t i s o f t e nh e l p f u lw h i l ew o r k i n gf r o mt h eC L It o

h a v ea l a r g e rS T A C Kt o p r e v e n ta s y s t e mc r a s h .I r e s e tt h es t a c k

t o 8 0 0 0o r e v e nh i g h e r b e f o r ep r o g r a m m i n ga n dt e s t i n g .( S e e

n e x tB i t )

R e a d i n g 8 2 5 0 - F o r m a t t e dD i s k s w i t ha n 8 0 5 0

S i n c e t h e8 2 5 0u s e sb o t hs i d e so f a d i s k e t t e ,y o uc a n ' tu s ea n

8 0 5 0t o r e a da n yd a t ao n t h e o p p o s i t es i d e .F o r t u n a t e l y ,t h e

8 2 5 0o n l yu s e st h e o t h e rs i d ew h e nt h e f i r s ts i d e g e t sf u l l .T o

f i n do u ti f a n yd a t ah a sb e e np l a c e do n t h e o p p o s i t es i d e ,c h e c kt h en u m b e ro f b l o c k sf r e e .I f t h e r e ' sl e s st h a n2 0 5 2b l o c k sf r e e ,

y o uc a nr e a da l l t h ef i l e so n t h ed i s kw i t ha n 8 0 5 0 .

1 5 7 l ' sC a n B et o oS m a r t

W ea l lk n o wt h a tt h e 1 5 7 1i s t h eg r e a t e s tt h i n gs i n c et h er e t u r n

o f t h em i n i - s k i r t .B u ti t t r i e ss o h a r dt h a ti t c a n c o n f u s ei n s t e a d

o f h e l p .F o re x a m p l e ,c o n s i d e rt h i ss e q u e n c eo f e v e n t s :

1 ) L O A Di n a s h o r t( 1 b l o c k )p r o g r a mf r o mt h eC 1 2 8

2 ) R e m o v et h ed i s k ,p u ti t i n t oa 1 5 4 1a n du s ea C - 6 4t o r e p l a c e

t h ep r o g r a mw i t ha d i f f e r e n to n e

3 ) P u t t h e d i s kb a c ki n t ot h e1 5 7 1a n dL O A D "* " , 8

Y o uw o u l de x p e c ti t t o l o a di n t h en e wv e r s i o no f t h ep r o g r a m ,

r i g h t ?W e l l ,t h e 1 5 7 1s t i l lh a st h ep r o g r a mi n i t s R A Mb u f f e r ,

a n dt h i n k si t c a nb e s m a r ta n ds a v et i m eb y g i v i n gy o ut h ec o p y

f r o mR A Mi n s t e a do f g o i n go u tt o d i s k .S o ,y o ug e tt h eo r i g i n a l ,

u n - m o d i f i e dp r o g r a mt h a td o e s n ' te v e ne x i s to n t h e d i s k

a n y m o r e .P r o o ft h a t" A l i t t l ek n o w l e d g ei s a d a n g e r o u st h i n g " .

O r , a sN i e t z s c h e p u ti t , " B e t t e rk n o wn o t h i n g t h a nh a l f - k n o w

m a n yt h i n g s " .

H o l yI n p u t - B u f f e r ,B a t m a n !

" R o b i n .. . I t h i n kt h e r ei s a d i a b o l i c a lp l o tb r e w i n ga t C o m m o

d o r eh e a d q u a r t e r s . "

" S a yi t i s n ' ts o ,B a t m a n ! "

" I ' ma f r a i di t i s . A r e y o uf a m i l i a rw i t h t h eI n p u tb u f f e ri n t h e

C o m m o d o r e6 4 ? "

" W e l l ,B a t m a n ,f r o mt h e B a t - C o m p u t e rI ' v e l e a r n e dt h a t

B A S I Cp r o g r a ml i n e sa r e s t o r e di n t h e i n p u tb u f f e ra f t e rt h e y ' r e

e n t e r e d . "

" R i g h tR o b i n !I b e l i e v et h a ta f t e rt h el i n e sa r es t o r e d ,t h e ya r e

a l s ot o k e n i z e di n t h eb u f f e r ,a r et h e yn o t ? "

" G o s h ,B a t m a n ,y o u ' r es o r i g h t ! "

" V e r yp e r c e p t i v eo f y o u ,B o yW o n d e r .N o wI h a v eb u to n e

m o r eq u e s t i o nf o ry o u rk e e nm i n d :i s t h el i n en u m b e rs t o r e di n

t h e I n p u tB u f f e r ? "

" T h i so n eI k n o w !J u s tl i k et h e B a t - B u f f e rh e r ei n t h eC a v e ,t h e

C - 6 4I n p u tB u f f e ro n l ys t o r e st h e l i n ei t s e l f ,w i t h o u tt h e l i n e

n u m b e r . "

" E x c e l l e n tR o b i n !N o wl o o ka t t h i sB a t - D u m po f t h eC o m m o

d o r e1 2 8I n p u tb u f f e rr i g h t a f t e ra l i n eh a sb e e ne n t e r e d . "

" H o l yR A M - C h i p !T h e r e ' st h el i n en u m b e ra t t h es t a r to f t h e

b u f f e r , j u s ta s i t w a se n t e r db y t h eu s e r ,l e a d i n gz e r o s ,t r a i l i n g

s p a c e sa n da l l !I n A S C I I !W h a tk i n do f a f i e n dw o u l dc o n c o c t

s u c ha s c h e m e ? "

" T h ew o r l di s f u l l o f f o r c e sw e d o n ' tu n d e r s t a n d , R o

C o m m o d o r ei s j u s to n eo f t h e m .T h e y ' v ed o n et h es a m ew i t h

t h e P l u s4 a n dC - 1 6a s w e l l !J u s tt h a n kt h eg o o dL o r dt h a tw e

h a v eB a t - D u m p s ,B a t - A n t h o l o g i e s ,a n dt h em i n d st o c o m p r e

h e n dt h e m . "

" W e l ls a i d ,B a t - F r i e n d ! "

T h eT r a n s a c t o r 1 2 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 17: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 17/88

L e t t e r s

H e l p :L i n eS c a n n e rR e q u i r e d :S o m et i m ea g o ,i n ' s o m e 'c o m

p u t e rm a g a z i n e ,I s a wa n a d v e r t i s e m e n tf o rw h a tI b e l i e v em i g h t

h a v e b e e nc a l l e da ' l i n ec o p i e r 'o r ' l i n es c a n n e r 'f o rP C s .I t w a s

s u p p o s e dt o b e a b l et o c o p yp r i n t e d o rt y p e dt e x td i r e c t l yf r o m

p a p e ra n dp u ti t i n t h ec o m p u t e r ' sm e m o r ya n d ,p r e s u m a b l y , o n t o

d i s k a s s e q u e n t i a lf i l e s . I ss u c ha d e v i c ea v a i l a b l ef o rt h eC o m m o

d o r e6 4 ?

W i l l i a mR . C a r r

R . R / 3 ,B o x2 3 3

H a r r i s b u r g ,I L ,U S A

6 2 9 4 6

A b o u ta y e a ra g o ,T h eT r a n s a c t o ra p p e a r e da t a c o m p u t e rs h o w

c a l l e d t h eC o m p u t e rF a i ri n t h eh e a r t o fT o r o n t o .T h eb o o t hn e x tt o

o u r sw a sd i s p l a y i n ga p r o d u c tt h a t r e a l l yc a u g h to u re y e .I t w a sa

l i n es c a n n e rc a l l e d t h eO m n i - R e a d e r .I t w o r k e di n a n o v e lm a n

n e r :t h e" e y e "o f t h er e a d e rw a s m o u n t e do n a v e r t i c a l / h o r i z o n t a l

s l i d e ra s s e m b l y .A d o c u m e n t w o u l db e p l a c e d u n d e r n e a t hi t a n d

y o uw o u l ds c a ne a c hl i n eb yh a n dw i t h t h es l i d e r .A t a p r e t t yg o o d

p a c e ,i t w o u l dr e c o g n i z ea b o u t 6o r 8 d i f f e r e n tt y p ef o n t s ,a n ds e n d

o u tt h e i rc h a r a c t e rc o d e st o a n R S 2 3 2p o r t .W ew e r ei m p r e s s e d .S o ,

i n t h et r u es p i r i to f a d v a n c i n gw i t h t h et i m e s ,K a r ls t r u c ku p a

c o n v e r s a t i o nw i t ht h e s a l e sr e p ,w h op r o m p t l ya g r e e dt o l e n du s

o n ef o ra f e w d a y st o t r y o u t .

W e l l ,t h ep e o p l er e p r e s e n t i n g t h eO m n i - R e a d e rm u s t h a v ef a l l e n

o f fo ft h ee d g eo ft h ew o r l db e c a u s ew en e v e rh e a r do ft h e ma g a i n .

T o ob a d ;a n i t e ml i k et h a td e s e r v e ss o m et e r r i f i cf r e ep r e s s .M y

a d v i c et o d a yi s t o h o p et h a tt h i sl e t t e r / r e p l yw i l lg e n e r a t es o m e

r e s p o n s ef r o m o u rr e a d i n ga u d i e n c e .I f a n y o n er e a d i n gk n o w so fa

l i n es c a n n e rf o r t h e C o m m o d o r e6 4 , o r f o r t h a tm a t t e ra n y

c o m p u t e r , p l e a s ed r o pu s o rW i l l i a ma l i n e .W e w o u l dr e a l l y

a p p r e c i a t ei t .

A t t e n t i o nH o t1 5 4 1O w n e r s :H e r e ' sa b i to f h e l p f u li n f o r m a t i o n

t o h e l ph o td i s kd r i v e u s e r st o c o o ld o w n .

A ne a s ya n di n e x p e n s i v ew a yt o p r e v e n t o v e r h e a t i n go f y o u r1 5 4 1

d i s kd r i v ei s t o b u yf o u rn e wp e n c i l sa n dc u tt h e md o w nt o t w oa n d

a q u a r t e ri n c h e s ,m e a s u r e df r o mt h ee n do f t h ee r a s e r .B e v e lt h e

c u te n d ss l i g h t l yw i t ha p e n c i ls h a r p e n e r .P l a c e t h e b e v e l l e de n d s

i n t ot h er e c e s s e ds c r e wh o l e so n t h eu n d e r s i d eo f t h ed i s kd r i v e .

T h i sa l l o w sf r e s ha i r t o g e t t o t h e b r e a t h e r sl o c a t e do n t h e

u n d e r s i d eo f t h ed r i v e .

I w o u l da l s ol i k e t oa s ka q u e s t i o n .I f I g e ta C - 1 2 8w i l lm yC - 6 4

m o d e mb ec o m p a t i b l ew i t ht h eC - 1 2 8i n a l lm o d e s ?W h a ta b o u ta n

i n t e r f a c ef o ra p r i n t e r ?

D u a n eB a r r y ,C a m b r i d g e ,O n t a r i o

A 1 5 4 1o n f o u rl e g s .I t m i g h tc a t c ho n .I a m p r e t t ys u r et h a t' h o t '

1 5 4 1u s e r sa l lo v e rw i l la p p r e c i a t ey o u ra d v i c e .T h a n k s .

A b o u tt h eC 6 4m o d e m .T h em o d e mw i l lw o r ki n t h eC 1 2 8m o d e

b u tn o tt h eC P / Mm o d e ,a t l e a s tn o ty e t .T h em o d e mi t s e l fi s n o ta t

f a u l to n t h i so n e .I t ' sj u s t t h a tC o m m o d o r ed i d n o ti n c l u d ea d r i v e r

f o rt h eR S - 2 3 2p o r tj u s ty e ti n t h e i rr e l e a s e v e r s i o no f C P / MP l u s .

W o r d ' so u t ,t h o u g h ,t h a ta v e r s i o ni s a v a i l a b l et h r o u g hC o m p u

S e r v et h a ts u p p o r t sR S - 2 3 2c o m m u n i c a t i o n s ,a n dt h a t w i t h i na f e w

m o n t h sC o m m o d o r ew i l lb e r e l e a s i n g t h es a m ef o rg e n e r a lp u b l i c

c o n s u m p t i o n .A b o u t C o m p u S e r v ea n dC P / M :a p p a r e n t l y ,C o m m o

d o r eh a si n c l u d e ds o m ee x t r as o f t w a r et h a tr e - c o n f i g u r e sy o u r

C 1 2 8i n C 1 2 8m o d et o a c t l i k ea C P / Mm a c h i n es o y o uc a n

d o w n l o a dt h e n e wC P / Ma n ds t o r ei t o n a C P / Mf o r m a t t e d

d i s k e t t e .J u s tm a k es u r et h a ty o ua r e i n C 1 2 8m o d ew i t ha n

a p p r o p r i a t e t e r m i n a lp a c k a g ew h e ny o u p h o n ei n ,a n dh a v ea C P /

M f o r m a t t e dd i s kh a n d y .

A r e g u l a rC o m m o d o r es e r i a lp r i n t e rw i l lw o r ki n a l lm o d e so f t h e

C - 1 2 8 .I f y o uh a v ea n i n t e r f a c et h a th a n g so f ft h es e r i a lp o r tt o

s o m es t r a n g e t y p eo fp r i n t e r ,c h a n c e sa r et h a ti t w i l lw o r kj u s tf i n e .

B u ti f y o u ri n t e r f a c e ,w h a t e v e rt h et y p e ,c o n n e c t st o t h ec a r t r i d g e

p o r t ,a s w i t ha n I E E Ei n t e r f a c e ,y o uc a nb ep r e t t yw e l la s s u r e dt h a t

t h eC 1 2 8w o n ' tl i k ei t .

T a k ef o re x a m p l e a nI E E Ei n t e r f a c e t h a tw e a l lu s ea t t h em a g a

z i n e .I t h a sb e e nd u b b e dt h eG L I N K( G a r v i n' s L i n k ) .I t i sa t e r r i f i c

t r u e - t o - l i f eI E E Ei n t e r f a c e f o rt h eC o m m o d o r e6 4 .I t st r u eb e a u t yl i e s

i n t h ef a c tt h a ti t d o e s n' t d o a n y t h i n g :n o e x t r ac o m m a n d sa n dn o

s p e c i a lt r i c k s .I tj u s ts u p p l i e sa r e a l l yf a s tI E E Ei n t e r f a c e f o ry o u r6 4

w i t h o u tc o n s u m i n g m e m o r y .I t d o e st h i sb ys w a p p i n gi t s e l fi n t o> f c

o f t h eE R O M .T h eR A Mu n d e r n e a t hi s l e f ta l o n e ,a s s u m i n gt h a t

o n el e a di s h o o k e du p c o r r e c t l y i n s i d eo ft h e6 4 t o a r e s i s t o r .B u tt h e

C 1 2 8i s a t o t a l l ys e p e r a t es y s t e ma n dt h eG L I N Ki s n o tc o m p a t i b l e

w i t hC l2 8R O M .

H o w e v e r ,t h eG L I N Kw i l lw o r k o nt h eC 1 2 8i n 6 4 m o d e ,a s w i l l

m o s to ft h ec a r t r i d g ep o r tc a r d sf o rt h e6 4 .B ec a r e f u lt h o u g h- s o m e

h a v el e a d st h a ta r ec o n n e c t e di n t e r n a l l ya n dt h eC 1 2 8P Cb o a r di s

m u c hd i f f e r e n tt h a nt h e C 6 4 .T h eG L I N K ,f o ri n s t a n c e ,h a sa l e a dt o

t h el e f tl e a do f R 4 4o n t h e6 4 ;o n t h eC 1 2 8i t g o e st o P i n2 9 o f t h e

O S 8 5 0 2c h i p .T h i sl i t t l et r i c kw a ss u p p l i e dt o u s b y ag e n t l e m a nw e

m e tr e c e n t l yw h i l e o u ti n S a nF r a n c i s c o .

O n el a s tp o i n t :t h e G L I N Kw o r k sf i n ew i t hb o t h V i e w t r o na n d

Q u a n t u mL i n kd o w n l o a d s .T h eV i e w t r o n s o f t w a r e l o a d sa n dr u n s

f i n ef r o mt h eI E E Ed r i v e s ,b u t t h eQ u a n t u ms o f t w a r em u s tb e

l o a d e d f r o ma 1 5 4 1 o rc o m p a t i b l e .B u tQ u a n t u md o w n l o a d st o t h e

I E E E w o r k- j u s tf l i pt h eG L I N Ks w i t c hb a c kt o s e r i a lw h e ni t ' sd o n e .

T h eT r a n s a c t o r 1 3 J u l y 1 9 8 6 :V o l u m e7 , t o u eO l

Page 18: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 18/88

" . . . b u t i f y o uf o o lm e t w i c et h e nI ' m i n d e e da f o o l . " :

T h a n ky o uv e r ym u c hf o rp u b l i s h i n gJ o h nH o l t t u m ' sT h eC o m m o

d o r e1 2 8 :I m p r e s s i o n sa n dO b s e r v a t i o n s 'i n V o l .6 , I s s u e5 . L i k e

m a n yC - 6 4 o w n e r sI s u s p e c t ,I f e l tw i n e d a n dd i n e db y C o m m o

d o r e ' sa d v a n c ea d v e r t i s i n gf o r t h en e wC - 1 2 8 .B u tI w a sm i l d l y

s u s p i c i o u sb e c a u s eo f t h e i rp o o rr e c o r dw i t ht h eP l u s / 4a n dC - 1 6 ,

n o t a b l yt h e i r f a i l u r e t op r o v i d eg o o dd o c u m e n t a t i o na n d p r o g r a m

m e r ' ss u p p o r tf o rt h o s em o d e l s ,i . e .s o m e t h i n ga k i nt o t h e' C o m

m o d o r e6 4 P r o g r a m m e r sR e f e r e n c eG u i d e ' . A l s o ,t h eC - 1 5 4 1d i s k

d r i v e ' sS A V E ®a n dS C R A T C H( y e sM a ,t h e r e ' sa S C R A T C Hb u gt o o )

b u g sa r ea p e r p e t u a l p a i ni n t h ey o u - k n o w - w h a tf o r( a )p r o g r a m

m e r sd u r i n gt h e p r o c e s so fw r i t i n g c o d e ,a n d( b )f o rt h ep r o s p e c t so f

r e l i a b l ed a t a b a s es y s t e m sw h i c hi n v o l v es c r a t c h i n go r r e p l a c i n g

f i l e so n d i s k .

T h a n k st o M r .H o l t t u ma n dT h eT r a n s a c t o r ,I n o l o n g e rh a v ea n y

p r o b l e md e c i d i n gw h e t h e rt o p u r c h a s et h eC - 1 2 8 / 1 5 7 1s y s t e m .

A c t u a l l y ,I d e c i d e dt h a tm yn e x t d i s kd r i v ew o u l dh a v et o b e a d u a l

d r i v ea n dp r e s u m a b l yt h e1 5 7 2i s e s s e n t i a l l yj u s tt w o1 5 7 1' s i n t h e

s a m ec a s e .B u ti n a n yc a s e ,I w i l ln o tb e b u y i n gt h eC - 1 2 8 / 1 5 7 1 /

1 5 7 2u n t i lt h e r e a r e p l e n t yo f i n d e p e n d e n tp u b l i cr e p o r t st h a t

C o m m o d o r eh a sr e m e d i e dt h ea b o v em e n t i o n e dp r o b l e m s .Y o u

c a nf o o lm eo n c e( t h eC - 1 5 4 1 ) ,b u ti f y o uf o o lm e t w i c et h e mI ' m

i n d e e da f o o l .

J o h nR . M e n k e ,C h e s s o f tL t d . ,M t .V e r n o n ,I L

N i c et o h e a r f r o my o ua g a i nJ o h n .T h e r ei s a r u m o u rt h a tn e w1 5 7 1

R O M sa r eu n d e rc o n s t r u c t i o nt h a tf i xS a u e @a s w e l la s o t h e rb u g s .

W h e ni t w i l lb e r e l e a s e da n du n d e rw h a tk i n do fo f f e rw ep r o b a b l y

w o n ' tk n o w' t i l li t ' sr e a d y .

D o c u m e n t a t i o ns e e m st o b e c o m i n g .C o m m o d o r ei s r e l e a s i n ga

t e c h n i c a lr e f e r e n c et h r o u g hS A M ' sa g a i n ,A b a c u sh a st h e " I n t e r

n a l s "b o o ka n da n o t h e ro n t h ew a y ,a n dJ i mB u t t e r f i e l d ' sb o o kw i l l

b e u p d a t e dt o o .

R e l a t i v eF i l eA c c e s sI n M L :L o v e dy o u re x c e l l e n ta r t i c l eo nd i s k

a c c e s sf r o mm a c h i n ec o d ei n V o l u m e6 I s s u e5 , a n dy e sI w o u l d

l i k e t os e em o r ec o d e o nt h eu s eo f r e l a t i v ef i l e s .

S o h e r e ' ss o m es t u f f .T h es y n t a xi n B a s i cf o rr e l a t i v ef i l e si s :

O P E Nt h ec o m m a n dc h a n n e lO P E N1 5 , 8 , 1 5

O P E Nt h er e l a t i v ef i l e O P E N2 , 8 , 2 , "O : f i l e n a m e "

S e tt h eP O I N T E Rt o t h e r e c o r dw i t h :

P R I N T # 1 5 , "P " + C H R $ ( c h a n n e l *+ 9 6 )+ C H R $ ( l o - r e c # )

+ C H R $ ( h i - r e c # )+ C H R $ ( c h a r a c t e r )

W R I T Eo r R E A Dt h ef i l ew i t hP R I N T * 2 ,I N P U T # 2 ,o r G E T * 2

C L O S Et h ec h a n n e l sa f t e ru s e .

O n ew o r do f c a u t i o n ;i f y o uw r i t et o t h ef i l e ,I M M E D I A T E L Ya f t e r

w r i t i n g t h ef i l e ,r e s e tt h e p o i n t e rt o t h e b e g i n n i n go f t h e f i l e

a c c e s s e dw i t ha r e c a l lt o t h es e tP O I N T E Rr o u t i n e .T h i sw i l ls t o p

a n y m e s s - u po f f i l e s .

S o r r yI d o n ' th a v eP A Lb u t I ' ms a v i n gm yp e n n i e su p t o g e ti t . I n

m a c h i n ec o d et h e r o u t i n e s a r es i m i l a rt o y o u ra r t i c l e .

O P E N C o m m a n dC h a n n e l

I d a * $ 0 f

t a y

l d x * $ 0 8

j s r $ f f b a

# $ 0 0I d a

j s r $ f f b d

j s r $ f f c O

j s r $ k e r r

O P E NR e l a t i v eF i l e :

I d a * $ 0 2

t a y

l d x * $ 0 8

j s r $ f f b a

I d a * < n a m

I d a * > n a m

j s r $ f f b d

j s r $ f f c O

j s r $ k e r r

j s r $ d e r r

P o i n t e rR o u t i n e

l d x # $ 0 f

j s r $ f f c 9

l d y # $ 0 0

; s e t l f s

; s e t n a m

; o p e n

y o u rk e r n a le r r o rr o u t i n e

l o a d =

I d a

j s r

i n y

c p y

b n e

j s r

w o r d , y

$ f f d 2

; s e t l f s

; l oa d d r e s sf i l en a m e

; h ia d d r e s sf i l en a m e

; s e t n a m

; o p e n

; k e r n a le r r o r

; d i s ke r r o rc h e c kr o u t i n e

; c h k o u tc h a n n e l1 5

; l e n g t ho f w o r dt o s e n d

; l o a dw o r d

; o u t p u tw o r dt o c o m m a n dc h a n n e l

; e n do f w o r dy e t ?

; c l r c h n

w o r d . b y t e$ 5 0 ,$ 5 c ,$ 0 1 , $ 0 0 ,$ 0 1

* $ 0 5

l o a d

$ f f c c

T h ec h a r a c t e r si n W O R Da r e :

$ 5 0= A s c i if o rt h el e t t e r' p '

$ 5 c= A s c i if o rc h a n n e l* + 9 6 ( 2+ 9 6 )

$ 0 1= A s c i if o rl o b y t e r e c o r d* ( # 1 )

$ 0 0= A s c i if o rh i b y t e r e c o r d* ( * 0 )

$ 0 1= A s c i if o rc h a r a c t e r* ( f i r s tc h a r )

T oa c c e s sa n yr e c o r da l ly o uh a v et o d o i s u p d a t et h e3 r d ,4 t h ,a n d

5 t h c h a r a c t e r so f W O R D( l o / h ib y t er e c o r d * ) b e f o r ey o uc a l lt h e

P O I N T E Rr o u t i n e .T o w r i t eo r r e a d t h e d a t au s et h e a p p r o p r i a

i n p u t o r o u t p u t r o u t i n e sa s i n y o u ra r t i c l e .

I t ' se a s ya n ds i m p l et o u s er e l a t i v ef i l e s .T h e ya r ef u n ,f a s ta n dN O T

c o m p u t e rm e m o r yr o b b e r s .H o p et h i si n f oi s o f u s e .

J o h nH o u g h t o n ,C o l l i n g w o o d , O n

/ / ' s n i c et o h e a ra k i n dw o r dm i x e dw i t hs o m eg o o da d v i c e .T h a n k s

f o ra l l . I a g r e et h a ta p r e t t yl a r g eh o l ew a sl e f ti n m y a r t i c l eb y

e x c l u d i n gr e l a t i v ef i l ea c c e s s ,b u tI f e l ti t h a r dt o w r i t ep u r et h e o r y

w i t h o u ti n c l u d i n ga M Lr e l a t i v ef i l ea c c e s sd e m ot h a tw o r k e di n a

T h eT r a n s a c t o r ! 4 ■ M y1 9 8 6 :V o l u m e7 , I s t u eO l

Page 19: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 19/88

f r i e n d l yw a y ,i e . v e r b o s e .A s y o u h a v es h o w n ,M Lr e l a t i v ef i l e

a c c e s si s n o tc o d ec o n s u m i n g .A tt h et i m eI k n e wt h a tt h eo n l yc o d e

c o n s u m i n gp a r tw o u l db e t h r o u g ht r y i n gt o m a k ei t e a s i l y u s e a b l e .

P e r h a p si n a f u t u r ei s s u eI ' l lw r i t eu p ag o o da n df r i e n d l yd a t a b a s e

o rs o m e t h i n gt h a tp e o p l ec a nu s ea n dl e a r nf r o m .M i g h tb e w o r t ha

s h o t .

I n c a s ei t h a s n' t b e e nn o t i c e dy e t , Id i de n c o u r a g ea l i t t l eb i to fb a d

p r a c t i c ei n m ya r t i c l ew i t ht h ef i l er e a d / w r i t et e c h n i q u ee m p l o y e d .

W i t ht h eP E T ,C B M ,V I Ca n d6 4 ,c o d es u c ha s :

l d x # l f i n p

j s r c h k i n

j s r c h r i n

p h a

l d x # l f o u t

j s r c h k o u t

p l a

j s r c h r o u t

; s e ti n p u t d e v i c e

; g e ta c h a r a c t e r

; s e to u t p u td e v i c e

; w r i t et h e c h a r a c t e r

W o u l dh a v eb e e na c c e p t a b l e ,a s s t a t e di n t h e a r t i c l e .U n f o r t u

n a t e l y ,w i t ha m a c h i n es u c h a st h e C 1 2 8a m e s s w o u l dh a v e

d e v e l o p e d .Y o uh a v et o m a k es u r et h a tC L R C H Nw a sp e r f o r m e d

b e f o r es e t t i n ge i t h e rt h e i n p u to r o u t p u tc h a n n e l s .F o rt h ee x a m p l e

a b o v e , t h es t a t e m e n t' J S RC L R C H N 's h o u l d b ei n s e r t e db e f o r et h e

' L D X* L F 'f o rb o t hi n p u ta n do u t p u t . T h i si s a c t u a l l yg o o dp r a c t i c e

i r r e g a r d l e s so ft h em a c h i n e y o ua r ew o r k i n go n .A t e m p o r a r yl a p s e

i n t ob a df o r mc a u s e dt h i su n f o r t u n a t es l i p .S o r r ya b o u tt h a t .

R e a lP r o g r a m m e r s . . . :I n l i g h to f m y f i r s tl e t t e r ,I t h o u g h tI ' d

b e t t e rs e n d y o ut h i s .I f o u n di t a f t e rm a n yh o u r so f r e s e a r c h( i . e .I

g o tl u c k y l o o k i n gt h r o u g hs o m eo l df i l e s ) .A t a n yr a t e ,I w o u l dr e a l l y l i k e t ot h a n ky o uf o rg i v i n gt h eI C L I Gs o m ef r e e p r e s s .

A n y w a y ,I h a v ee n c l o s e dm y s u b s c r i p t i o nf o r T h eT r a n s a c t o r .

N a s t yt r i c ko n y o u rp a r t .R a i s i n g t h ep r i c es o w e g e t a b e t t e r

d i s c o u n t .G e e ,I w i s hI w o u l dh a v et h o u g h to f t h a ts o o n e r .

K e n tT e g e l s

M a n a g e r :I n t e r n a t i o n a lC o m m o d o r eL a n g u a g eI n t e r e s tG r o u p

1 8 1 1 2N o r t hI

F r e m o n t , N E ,6 8 0 2 5

R e a lP r o g r a m m e r sD o n ' tW r i t eS p e c s b y P e t e rS . H i l l

N C AC o r p o r a t i o n

A st a k e nf r o m' T h e S p e c i a lC h a r a c t e rS e t '- S e p t e m b e r1 , 1 9 8 3

R e a lp r o g r a m m e r sd o n ' tw r i t es p e c s- u s e r ss h o u l dc o n s i d e rt h e m

s e l v e sl u c k yt o g e ta n y p r o g r a m sa t a l la n dl i k ew h a tt h e yg e t .

R e a lp r o g r a m m e r sd o n ' tc o m m e n tt h e i rc o d e .I f i t w a sh a r dt o

w r i t e ,i t s h o u l db e h a r dt o u n d e r s t a n d .

R e a lp r o g r a m m e r sd o n ' t w r i t e a p p l i c a t i o np r o g r a m s ;t h e yp r o g r a m

r i g h td o w no n t h e b a r em e t a l .A p p l i c a t i o np r o g r a m m i n gi s f o r

f e e b sw h oc a n ' td o s y s t e m sp r o g r a m m i n g .

R e a lp r o g r a m m e r sd o n ' te a tq u i c h e .I n f a c tr e a lp r o g r a m m e r sd o n ' t

k n o w h o wt o S P E L Lq u i c h e .T h e yl i v eo n T w i n k i e s ,D o r i t o s ,C o k e

a n dS w e c h w a nf o o d .

R e a lp r o g r a m m e r sd o n ' tw r i t ei n C O B O L .C O B O Li s f o rw i m p y

a p p l i c a t i o n sp r o g r a m m e r s .

R e a lp r o g r a m m e r s ' p r o g r a m sn e v e rw o r kr i g h tt h ef i r s tt i m e .B u ti fy o ut h r o wt h e m o nt h em a c h i n et h e yc a nb e p a t c h e di n t ow o r k i n g

i n ' o n l ya f e w '3 0 - h o u rd e b u g g i n gs e s s i o n s .

R e a lp r o g r a m m e r sd o n ' t w r i t ei n F O R T R A N .F O R T R A Ni s f o rp i p e

s t r e s sf r e a k sa n dc r y s t a l l o g r a p h yw e e n i e s .

R e a lp r o g r a m m e r sn e v e rw o r k9 t o 5 . I f a n yr e a lp r o g r a m m e r sa r e

a r o u n da t 9 A Mi t i s b e c a u s e t h e yw e r eu p a l ln i g h t .

R e a lp r o g r a m m e r sd o n ' t w r i t ei n B A S I C .A c t u a l l y ,n op r o g r a m m e r s

w r i t ei n B A S I Ca f t e rt h ea g eo f 1 2 .

R e a lp r o g r a m m e r sd o n ' tw r i t ei n P L / 1 .P L / 1i s f o rp r o g r a m m e r s

w h oc a n ' td e c i d ew h e t h e rt o w r i t ei n C O B O Lo r F O R T R A N .

R e a lp r o g r a m m e r sd o n ' tp l a yt e n n i s ,o r a n yo t h e rs p o r tt h a t

r e q u i r e sy o ut o c h a n g ec l o t h e s .M o u n t a i nc l i m b i n gi n O K , a n dr e a l

p r o g r a m m e r s w e a rt h e i rc l i m b i n gb o o t st o w o r ki n c a s ea m o u n

t a i ns h o u l ds u d d e n l ys p r i n gu p i n t h em i d d l eo f t h em a c h i n er o o m .

R e a lp r o g r a m m e r sd o n ' td o c u m e n t . D o c u m e n t a t i o ni s f o rs i m p s

w h oc a n ' tr e a d t h el i s t i n g so r t h eo b j e c tc o d e .

R e a lp r o g r a m m e r sd o n ' t w r i t ei n P A S C A Lo r B L I S So r A D Ao r a n y

o f t h o s eP I N K Oc o m p u t e rs c i e n c e l a n g u a g e s .S t r o n gt y p i n gi s f o rp e o p l e w i t hw e a km e m o r i e s .

W ed o r e c e i v e t h eo d dp i e c eo fm a i l f r o mt i m et o t i m e .T h a n k sf o r

r e l a y i n g t h a ts t r a n g eb i to f t o n g u e - i n - c h e e kp r o g r a m m i n ga d v i c e .

M ya d d i t i o nt o d a yt o M r .H i l l ' sl i s ti s ' R e a lp r o g r a m m e r s d oi t i n

t h e i rd r i v e s ! ' .A b i tw i e r db u ti t s e e m st o f o l l o wt h ep a t t e r n .

H e l pR e q u i r e d :I a m l o o k i n gf o rp e o p l ei n t e r e s t e di n h e l p i n gm e

t y p ei n t h eN e wT e s t a m e n tu s i n ga w o r dp r o c e s s o r .T h ep r o c e s s o rI

a mp r e s e n t l yu s i n gi s S p e e d S c r i p t ,b u ta n o t h e rp r o c e s s o rw o u l db e

a c c e p t a b l ea s l o n ga s t h e f i l e sa r ec o m p a t i b l e ,o r c o u l db e c o n

v e r t e df o ro u ru s e .I a mu s i n ga C o m m o d o r e6 4 ,w i t ha 1 5 4 1d i s k

d r i v e .

A f t e rc o l l e c t i n g ,c o m p i l i n ga n de d i t i n ga l l t h e i n c o m i n gd a t a ,I

w o u l dd i s t r i b u t et h ef i n i s h e dw o r kt o a l lt h ep a r t i c i p a n t s .I f y o ua r e

i n t e r e s t e dp l e a s ec a l lo r w r i t ef o ra s s i g n m e n t s .

R a n d a l lJ . B e r n a r d

B o x6 3 0

M o r e n c i ,A r i z o n a

8 5 5 4 0 ( 6 0 2 ) 8 6 5 - 3 5 5 0

W o w !W h a ta d o o z yo fa t a s k .W i t ha g o o dd a t a b a s ea n di n d e x i n g

s y s t e mt h o u g h ,i t w o u l db ea t e r r i f i ci t e m .T h ea b i l i t y t os e a r c ht h e

T h eT r a n s a c t o r 1 5 J u l y 1 9 8 6 :V o l u m e7 , I t t u eO l

Page 20: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 20/88

N e wT e s t a m e n tv i a d i s kw o u l db e i d e a lf o rr e p o r tr e f e r e n c e s .L e t u s

k n o ww h e ni t ' sd o n e .

T h eD r i v eD i s a s t e r :R e :T r a n s .D i s k# 1 0 .A F r a n t i cW a v e - O f f !I

t r i e d' I m p r o v e d1 5 4 1H e a d - C l e a n i n gP r o g r a m ' .D I S A S T E R !D r i v e

w a s1 0 0 %O Kb e f o r e u s i n gp r g .D r i v ei s n o wi n s h o pf o r r e

a l i g n m e n t !

D . C . K e r r i g a n ,G r e e n v i l l e ,S C

T h ep r o g r a ma s l i s t e d i nt h em a g a z i n e ,V o l u m e6 I s s u e0 5p a g e6 ,

i s p e r f e c t ,a s i s t h ec o p y o nd i s k * I 0 .A l t h o u g hw ec a na s s u r ey o uo f

t h i sa n df e e lc o n f i d e n tt h a tt h ec o d ew a sO K ,y o u rd r i v ei s s t i l li n

i n t e n s i v ec a r e .F o rt h i sw eo f f e rt w op o s s i b l e e x p l a n a t i o n s .

1 ) T h eC o m m o d o r ed r i v e sh a v ea n a w f u lh a b i to fg e t t i n gs t u c ka t

t i m e s ,c a u s i n gt h e mt o n o l o n g e rf u n c t i o np r o p e r l yf o ra p p a r e n t l y

n o r e a s o n .T h er e a lc r u n c hi s t h a te v e na f t e rp o w e r i n gd o w n ,t h e

d r i v ed o e s nt r e t u r nt o n o r m a l .O f t e n t i m e st h i sp r o m p t sp e o p l et o

b r i n gt h e i rd r i v ei n f o rs e r v i c e .U n f o r t u n a t e l y ,t h i si s o f t e na w a s t eo f

t i m ea n dm o n e y .A s i m p l ei n i t i a l i z a t i o no f a d i s k e t t ei n t h e

o f f e n d i n gd r i v ew i l lc u r et h ep r o b l e m .T h i s s t r a n g eo c c u r e n c ec a n

b e t r a c e db a c kt o t h ed r i v e ' sh e a db e i n gp u s h e do u tt o a n e x t r e m e

p o s i t i o ni n e i t h e rd i r e c t i o n .O n c ei n t h a t p o s i t i o n t h e r ee x i s t sa

c h a n c et h a tt h eh e a dw i l lg e ts t u c k .O n c es t u c kn o t h i n gb u ta d r i v e

i n i t i a l i z a t i o no r a l i t t l ei n t e r n a lp u s h o nt h em e c h a n i s mw i l lh e l p .

Y o u rd r i v em a yh a v eb e e no n eo f t h eu n l u c k i e st h a t g e t ss t u c ki n

e x t r e m ep o s i t i o n s .

2 ) T h e' I m p r o v e dH e a d - C l e a n i n g P r o g r a m 'a r t i c l es t a t e dt h a t t h e

p r o g r a mw a sn o tt o b e r u nt w i c ei n a r o w ,a s t h eq u o t et o f o l l o w

e x p l a i n s :

" T h eN E Wa t t h ee n do ft h ep r o g r a mi s n o ta n a t t e m p ta t p r o g r a m

p r o t e c t i o n ,i t ' s t h e r ea s d r i v e p r o t e c t i o n .T h i sd i r e c tm e t h o do f

s t e p p i n gt h eh e a dd o e sn o tu p d a t el o c a t i o n $ 2 4 .I ft h ep r o g r a mw a s

i m m e d i a t e l yr e r u n ,t h ed r i v eh e a dc o u l de n du p b e i n gs t e p p e dt o

t r a c k3 5 o r t o b u m pu p a g a i n s tt h es t o pa t t r a c k0 . "

A s at e s t ,I d e l e t e dl i n e4 6 0o f t h ep r o g r a mt h e nr a ni t f o rt h ef i r s t

t i m e .F o l l o w i n gt h a tI i m m e d i a t e l yr e - r a nt h ep r o g r a mt o s e ew h a t

w o u l dh a p p e n .A r o u n dt r a c k2 2 t h e d r i v em e c h a n i s ms t a r t e d

m a k i n ga n a w f u ln o i s ea n dc o n t i n u e dt o d o s o t h r o u g ht r a c k3 5 .

F o l l o w i n gt h i s ,I l o a d e di n t h ed i r e c t o r y .T h ed r i v ec h a t t e r e da b i t

i n i t i a l l yb u td i df i n a l l yl o a dt h ed i r e c t o r y .T h e r ew a sn o p e r m a n e n t

d a m a g et o t h e d r i v e .M y d r i v ei s a l m o s tn e wa n di n p e r f e c t

m e c h a n i c a ls h a p e .A d r i v et h a th a sh a da f e wm i l e so n i t m i g h tn o t

h a v ef a i r e da s w e l l .I f t h i sw a st h e c a s e ,I s t i l lf e e lt h a ta n

i n i t i a l i z a t i o nw o u l df o r c et h ed r i v e ' sh e a db a c ki n t o r e a l i t yo n c e

a g a i n .A l t h o u g hr u n n i n gt h ep r o g r a mt w i c ei n a r o w w o u l dh a v e

b e e na l m o s ti m p o s s i b l e a si t w a ss u p p l i e do n d i s ka n dl i s t e di n t h e

m a g a z i n e ,i t c o u l dh a v eb e e na c c o m p l i s h e da s I s t a t e da b o v e .Y o u r

p r o b l e mc a n p r o b a b l y b ew r i t t e no f f t oe x p l a n a t i o n* ] . J u s t

r e m e m b e r ,w h e ni n a b i n d ,i n i t i a l i z e .

V e r i f i z e rU p d a t e :A f t e r r e c e n t l yr e t i r i n gf r o m2 1 y e a r so f d e s i g n

i n g' L i t t l eB l a c kB o x e s 'f o rC e s n aA i r c r a f tC o . ,I p u r c h a s e da C - 6 4 .

I a mp r i m a r i l yi n t e r e s t e di n g r a p h i c sa n da n i m a t i o n .W h a tl i t t l eI

h a v el e a r n e ds o f a rs e e m st o i n d i c a t et h a tm a c h i n el a n g u a g ei s t h e

w a yt o g o . I np u r s u i to f t h i sI h a v e b e e na t t e m p t i n gt o l e a r nw h a tI

c a na b o u tM Lb u th a v e b e e nd i s a p p o i n t e dw i t hw h a tI h a v ef o u n d .

I t s e e m st o m et h a ty o u rp u b l i c a t i o nh a sm u c ht o o f f e rt o w a r d st h i s

g o a l . . .

. . . O n es m a l lp r o b l e m :W h e nu s i n g' V e r i f i z e r ' ,t h el e f tc h a r a c t e ro f

t h ec h e c ks i g n a lh i d e si n t h eu p p e rl e f tc o r n e ro f t h em o n i t o r .H o w

d o I m o v ei t a b o u tt w os p a c e st o t h er i g h t ?

W . D .A c k e r s o n ,W i c h i t a ,K a n s a s

A s y o uh a v ed i s c o v e r e d ,T h eT r a n s a c t o rl i v e sf o rm a c h i n el a n

g u a g e .H o w e v e r ,t h e r ea r ea f e wg o o db o o k so n t h e m a r k e tt o

t e a c hy o ut h eb a s i c st h r o u g h e x t r e m e s o ft a l k i n gt o y o u r c o m p u t

i n i t s m o t h e rt o n g u e .O n eb o o k ,w h i c hI c a n ' ts a ye n o u g hg o o d

t h i n g sa b o u t ,i s J i mB u t t e r f i e l d ' sM a c h i n e L a n g u a g eB o o k .P u b

l i s h e db yB r a d e y / P r e n t i c e - H a l l ,i t ' sa n e d u c a t i o n a ld r e a mf r o n tt o

b a c k .I fy o ue v e rs e ei t i n a b o o ks t o r e ,d o i t t h e s e r v i c eo fa q u i c k

l o o k - o v e r .Y o uw i l lp r o b a b l y b ei m p r e s s e d .

A b o u ty o u rV e r i f i z e rb l u e s :t h e r ei s a c u r e .S t e v eW a l l e y ,a r e a d e ri n

S u n n y m e a dC A , r a ni n t ot h es a m ep r o b l e mt h a ty o ud i d ,a n da s

s u c hs e n t u sh i sm o d i f i e dv e r s i o no f V e r i f i z e rt h a tp r i n t st w os e t so f

V e r i f i z e rc h e c k s u m s o nt h e s c r e e n .S e e' D o u b l eV e r i f i z e r ' i nV o l u m e

6 I s s u e0 6o np a g e5 .

S k yT r a v e lS u p p o r t :I e n j o y e dt h e r e v i e wo f S k yT r a v e la n d

w o u l dl i k e t om e n t i o nt h a tI a g r e ew i t hy o u ra s s e s s m e n to f t h e

p r o g r a m . W h a t ' s m o r e .I m i g h tj u s tm e n t i o na c o u p l eo f q u i c k

u t i l i t i e s :

A s e a s o n e dv e t e r a na m a t e u r a s t r o n o m e rf r i e n do f m i n e w a ss o

d e l i g h t e dw i t hS k yT r a v e l ,h e d u m p e dh i sc o l o rc o m p u t e rs y s t e m

a n dp u r c h a s e da C o m m o d o r e6 4 .D u r i n gD e c e m b e ra n dJ a n u a r y

w e u s e dt h ep r o g r a mt o l o c a t e H a l l e y ' sC o m e t( a sw e l l a s s e v e r

o t h e ro b j e c t s )w i t hs u r p r i s i n ga c c u r a c y .A sa r a n ka m a t e u ra s t r o n o

m e r ,( I b a r e l yk n o wt h ec o r r e c te n do f a t e l e s c o p et o l o o ki n )I w a s

a b l et o l o c a t et h e c o m e tu s i n gh a r dc o p y f r o mt h e p r o g r a m ,a

c o m p a s sa n db i n o c u l a r s .H o w e v e r ,f o r t h o s e w i t hs o p h i s t i c a t e

s y s t e m s , t h e d a t ag e n e r a t e df o r r i g h ta s c e n t i o na n dd e c l i n a t i o

s e e mt o b e r i g h to n t h eb u t t o n( p r o v i d e do f c o u r s ey o u rl o c a t i o n

a n dt i m e sa r ec o r r e c t ) .

S e v e r a lf r i e n d so f m i n ew h oa r e a l s oh a mr a d i oo p e r a t o r s ,a r e

e x p e r i m e n t i n gw i t hu s i n gt h e p r o g r a mf o r m o o nb o u n c e .T h e

t r a c k i n gf e a t u r ea n dp r o g r a m ' s a p p a r e n t a c c u r a c ym a k et h i sa

n a t u r a l .

I h a v ea l s ou s e dt h e p r o g r a mw i t hm y c h i l d r e n ( a n d m y s et o

b e c o m ea b i t m o r ef a m i l i a rw i t ht h es o u t h e r nN e wJ e r s e ys k i e s

( w h e nt h eg a r b a g ei n t h ea i ri s n o tt o ob a d ) .

I t ' sa f i r s tr a t ep a c k a g ea n d o n e w h i c ho u g h tt o c o s ta t l e a s tt h r e e o r

f o u rt i m e sm o r et h a ni t d o e s . . .a n e x t r a o r d i n a r yb u yf o r$ 2 9 . 9 5-

e s p e c i a l l yg i v e nw h a t y o uc a nd o w i t hi t a n dt h ei n f o r m a t i o ni t

c o n t a i n s .. . a n de s p e c i a l l yg i v e nh o wm u c hi s c h a r g e df o rm a n y

p o o rp a c k a g e s .

T h eT r a n s a c t o r 1 6 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 21: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 21/88

C o m m o d o r ed i du s a f a v o u rp u t t i n g t h a to n eo u t .. . h o p ep e o p l e

d o t a k ea d v a n t a g eo f i t .

P e t e rR . B e n t ,W e s tD e p t f o r d ,N J

F r a n kC o v i t zr e a d sT h eT r a n s a c t o r .F r a n kC o v i t zw r o t eS k yT r a v e l .

I a m p r e t t ys u r et h a tF r a n ki s s m i l i n gr i g h ta b o u t n o w . B u to n l y

a b o u tt h ec o m p l i m e n t ,f t s e e m st h a tS k yT r a v e li s o f t e nt i m e sp r e t t y

d i f f i c u l tt o l o c a t e .F r a n kw r o t et h ep a c k a g eb u tC o m m o d o r ek i n do fd i s t r i b u t e di t .A to n ep o i n t ,r i g h ta b o u tt h e t i m et h a tm yr e v i e ww a s

p u b l i s h e d ,S k yT r a v e lw a sc l o s et o b e i n gl i s t e da s m i s s i n gi n a c t i o n .

B u ta m i x t u r eo fp u b l i cp r e s s u r ea n dc o m m o nl o g i cb r o u g h tt h eS k y

T r a v e lb a c kf r o mt h ed e a di n t or e t a i ld i s t r i b u t i o no n c ea g a i n .I ff o r

a n yr e a s o na n y o n e w o u l dl i k e t og e ta c o p yo fS k yT r a v e l b u tc a n ' t

f i n di t a n y w h e r e ,t h e ne i t h e rp h o n eo r w r i t eC o m m o d o r ed i r e c t ,o r

i f t h a td o e s n ' tw o r k ,d r o pu s a l i n e .W e ' l lm a k es u r et h a ty o u r

r e q u e s td o e sn o tg o u n h e a r d .F r a n kd i dt o og o o do fa j o bt o a l l o w

S k yT r a v e lt o f a d ea w a ys o e a s i l y .

L A D St o P A LC o n v e r s i o n :M y r e c e n ts u b s c r i p t i o nt o T h e

T r a n s a c t o rh a sg o n ef a ri n r e s c u i n gt h i sa m a t e u r f r o ms o m es o r to f

c o m p u t e ro b l i v i o n .O t h e rm a g sa r ej u s tf i n ea n do f t e nv e r yh e l p f u l

b u tg a m e sa n da d sg e ti n t h ew a yq u i t ea l o t .I n T h eT r a n s a c t o ro n e

f i n d sa b a l a n c e d ,p r a c t i c a l l yf a t - f r e ed i e to f p e r t i n e n t ,c h a l l e n g i n g

a n du s e f u li n f o r m a t i o n .I n s h o r t ,I ' m av e r yh a p p yc u s t o m e r .

Q u i t ea p a r tf r o mt h i ss t a t e m e n to f u n b r i d l e dj o y ,I f o u n da s t a t e

m e n tb y N i c kS u l l i v a no n p a g e1 5 o f m yf i r s ti s s u e( V o l . 6 ,I s s u e 0 3 )

i n d i c a t i n g t h a t h i sT r a n s b a s i cp r a c t i c a l l yr e q u i r e s t h eu s eo f a P A L

a s s e m b l e r .

I u s ea R A M - b a s e dv e r s i o no f R i c h a r dM a n s f i e l d ' sL A D S / 6 4a s s e m

b l e ra n df i n di t v e r yd e p e n d a b l ea n de a s yt o u s e .

W i t h o u t e x p e r i e n c ew i t ha n yo t h e r a s s e m b l e r ,I f i n di t d i f f i c u l tt o

d e c i d ew h e t h e ri t w o u l db e p o s s i b l et o t r a n s l a t eT r a n s b a s i cf o r

a s s e m b l yw i t h t h eu n i tI u s e .Y o u ra d v i c ew o u l db e h e l p f u la t t h i s

p o i n t .

R . G . T i s c h e r ,S t a r k v i l l e ,M S

T ob e s th e l p o u te v e r y o n et r y i n gt o c o n v e r tP A Lf o r m a tt o t h e i ro w n

s p e c i a lb r a n do fa s s e m b l e r ,i t m i g h t b eb e s ti f I r u nd o w na f e wo f

t h em a i n P A Ld i r e c t i v e st o b e f o u n di n T h eT r a n s a c t o r .T h e ya r e a s

f o l l o w s :

. O P T

T h i sp s e u d o - o pi s a d i r e c t i v eo f o u t p u t( O u t P u T ) .T h e r ea r e a

n u m b e ro f w a y st o u s ei t . F o re x a m p l e :

. O P TN ; O u t p u t sn o t h i n g .J u s tc h e c k s a s s e m b l yt o s e ei f e r r o r s

e x i s t .

. O P T0 0 ; O u t p u t so b j e c tt o o r i g i n( m e m o r y ) .

. O P T0 8 ; O u t p u t so b j e c tt o d e v i c e# 8 ( i e . O P E N8 , 8 , 1 ," 0 : f i -

l e n a m e "b e f o r e )

. O P TP ; O u t p u t ss o u r c el i s t i n gt o t h e d e f a u l to u t p u t d e v i c e

d u r i n ga s s e m b l y

. 0 P T P 4; O u t p u t ss o u r c el i s t i n gt o d e v i c e# 4 ( i e . O P E N4 , 4

e x e c u t e db e f o r e )

F u r t h e rt o t h i s ,. O P Tc a nb e f o r c e dt o p e r f o r mm u l t i p l ed i r e c t i v e s

o f o u t p u t .F o re x a m p l e :

. O P T0 8 , P 4 ; w o u l do u t p u t t h e O b j e c tt o u n i t8 a n dP r i n tt h e

s o u r c el i s t i n gt o u n i t # 4 .

T oc o n t i n u e ,y o uw i l ln o t i c ea S Y S 7 0 0a t t h es t a r to f a l lP A Ls o u r c e

l i s t i n g sf o rt h e6 4 .T h i sc a l l sP A Ls o t h a tw h a t e v e rf o l l o w sw i l lb e

t r e a t e d a sa s s e m b l e rs o u r c ec o d e .F o ro t h e r a s s e m b l e r s ,t h i si s

e i t h e ro m i t t e do r s u b s t i t u t e dw i t hw h a t e v e rc o m m a n ds t a r t su p t h e

a s s e m b l yp r o c e s s .

T o s e tt h eo r i g i n t h a ty o u w o u l dl i k ey o u rc o d et o b e a s s e m b l e d ,

y o uw o u l du s ea s t a t e m e n ts u c ha s t h i s :

* = $ C 0 0 0

T h e' * 'r e p r e s e n t s t h e c u r r e n tp r o g r a mc o u n t e r ,s o i n e f f e c ty o ua r e

t e l l i n gt h e a s s e m b l e rt h a tt h e p r o g r a mc o u n t e rs h o u l de q u a l

$ C 0 0 0 .S o m ea s s e m b l e r s u s e. O R Gb u tt h e" s p l a t "i s m o r ec o m

m o n .

. W O R Da n d. B Y T E

T h e s ep s e u d o - o p sa l l o we i t h e rb y t e st o b e a s s i g n e dt o R A M ,o r

s p a c et o b e s e ta s i d ef o rt h es a m e .M o s ta s s e m b l e r su s et h es a m e

c o n v e n t i o n sb u tI h a v es e e n. D W( d e f i n ew o r d ,I g u e s s )a n d. D S

( d e f i n es t o r a g e ? ) .. W O R D0 , 0 i s O k a s i s . B Y T E0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 ,

e t c .T h e yb o t ha l l o wR A Mv e c t o r st o b e s e t ,o r b y t et a b l e s ,o r w o r d

t a b l e s .

. A S Ca l l o w ss t r i n g st o b e p l a c e di n m e m o r ys u c ha s :

. A S C" A S T R I N GI N M E M O R Y "

O t h e rt h a nt h e s ef e w q u i c k yp s u e d oo p s ,y o uw i l lf i n dw e r a r e l y

u s ea n yo f o t h e r s ,s u c ha s . F I L Et o c h a i ni n o t h e rs o u r c ef i l e s ,. B A S

t o w r i t e B a s i cc o d ew i t h i ny o u r a s s e m b l yl i s t i n g ,a n dg r e a ts c a d s

m o r e . F o ra m o r ed e t a i l e ds y n o p s i so f P A Lc o m m a n d s ,l o o ki n

K a r l ' s' C o m p l e t eI n n e rS p a c eA n t h o l o g y ' .Y o uw i l lf i n d t h a tm o s t

R A M - b a s e da s s e m b l e r s c a nt a k ea d v a n t a g eo f o u rs o u r c el i s t i n g s .

T r a n s B A S I C ,h o w e v e r ,r e q u i r e st h a tm o d u l e sb e " m e r g e d "t o

g e t h e r .T h i si s w h yt h e ys e e m ,a t f i r s tg l a n c e ,t o h a v eo d dl i n e

n u m b e rs e q u e n c e s .Y o u ' l ln o t i c et h a tc e r t a i n" a r e a s "o f e a c hm o d u l ea r e w r i t t e ni n v e r ys p e c i f i c l i n er a n g e s .T h i si s s o t h e y

m e r g et o g e t h e rw i t ht h es a m e" a r e a s "o f o t h e rm o d u l e s .I f y o u r

a s s e m b l e r1 ) u s e s t h eB A S I Ce d i t o rt o c r e a t es o u r c ec o d ef i l e s ,o r 2 )

h a sa m e r g ef e a t u r e ,y o us h o u l dh a v en op r o b l e ma f t e rm a k i n gt h e

p r e v i o u s l ym e n t i o n e da d j u s t m e n t s .O t h e r w i s ey o um a yh a v et o

s i m u l a t e t h em e r g i n gp r o c e s s .

D o n ' tf o r g e t ,T h eT r a n s B A S I CD i s ki s n o wa v a i l a b l ea n dc o m e s

c o m p l e t ew i t h t h eS Y M A S Sa s s e m b l e r .F o r$ 9 . 9 5 ,T r a n s B A S I C

b e c o m e sa t o t a l l ys e l f - c o n t a i n e du t i l i t y .S e e o u ro r d e rc a r d .

T h eT r a n s a c to r 1 7 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO 1

Page 22: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 22/88

T r a n s B A S I C

I n s t a l l m e n t# 9

N i c kS u l l i v a

S c a r b o r o u g h ,O n t .

T h eT r a n s B A S I CD i s k

T h e T r a n s B A S I CD i s kc o n t a i n sa l lo f t h em o d u l e sp u b l i s h e ds o

f a r a n di t c o m e sw i t hi t s o w na s s e m b l e r ,S Y M A S S3 . 1 .A n y

c o m b i n a t i o no f m o d u l e s c a nb e l i n k e di n t oB A S I Cw i t ho n l ya

f e ws i m p l es t e p s .F r o ms t a r t t o f i n i s hi s u s u a l l yn o m o r et h a na

c o u p l e o fm i n u t e s .. . e v e nl e s so n c ey o ug e t t h eh a n go f i t . I t

c o m e sw i t ha h a n d yr e f e r e n c ef o r j u s t$ 9 . 9 5 .S e et h eo r d e r c a r d

a t c e n t e rp a g e .

T r a n s B A S I CP a r t s1 t o 8 S u m m a r y :

P a r t1 : T h ec o n c e p to f T r a n s B A S I C- a c u s t o mc o m m a n d

u t i l i t yt h a ta l l o w so n et o c h o o s ef r o ma l i b r a r yo n l yt h o s e

c o m m a n d st h a ta r en e c e s s a r yf o ra p a r t i c u l a rt a s k .

P a r t2 : T h es t r u c t u r eo fa T r a n s B A S I Cm o d u l e- e a c hT r a n s B A

S I Cm o d u l ef o l l o w sa f o r m a t d e s i g n e dt o m a k et h e ms i m p l et o

c r e a t ea n d" m e r g e a b l e "w i t ho t h e rm o d u l e s .

P a r t3 : R O Mr o u t i n e su s e db y T r a n s B A S I C- m a n ym o d u l e s

m a k eu s eo f R O Mr o u t i n e sb u r i e di n s i d et h e C o m m o d o r e6 4 .

P a r t3 e x p l a i n sh o wt o u s et h e s er o u t i n e sw h e nc r e a t i n gn e w

m o d u l e s .

P a r t4 : U s i n gN u m e r i cE x p r e s s i o n s- d e t a i l so n h o wt o m a k e

u s e o ft h ee v a l u a t e e x p r e s s i o nR O Mr o u t i n e .

P a r t5 : A s s e m b l e rC o m p a t i b i l i t y- T r a n s B A S I C m o d u l e sa r e

w r i t t e ni n P A LA s s e m b l e rf o r m a t .T e c h n i q u e sf o rp o r t i n gt h e m

t o a n o t h e ra s s e m b l e rw e r ed i s c u s s e dh e r e .

P a r t6 : T h eU S EC o m m a n d- T h ec o m m a n d' A D D 'm e r g e s

T r a n s B A S I Cm o d u l e si n t ot e x ts p a c e .H o w e v e r ,a s m o r em o d

u l e sa r eA D D e d ,m e r g i n gg e t s s l o w .T h eU S Ec o m m a n dw a s

w r i t t e nt o s p e e dt h i n g su p . U S Ea l s oc o u n t st h e n u m b e ro f

s t a t e m e n t sa n df u n c t i o n sU S E da n du p d a t e st h et o t a l s( s o u r c e

l i n e9 5 ) a u t o m a t i c a l l y .

P a r t 7- U s u a l l yT r a n s B A S I C m o d u l e sd o n ' tn e e dt o w o r r y

a b o u ti n t e r f e r i n gw i t ho n ea n o t h e r .W h e nt w oo r m o r em o d u l e s

w a n tt o a l t e rt h e s a m es y s t e mv e c t o r ,h o w e v e r ,a p o t e n t i a l

c r a s hs i t u a t i o ne x i s t s .P a r t 7 d e a l s w i t h a v o i d i n gt h i sp r o b l e m .

P a r t8 - D e s c r i b e st h ef i v em o d u l e sf o rP a r t8 .

T r a n s B A S I CP a r t 9

T h i si s s u eI w a n tt o d o n o t h i n gm o r et h a np r e s e n ta f e ws h o r t

m o d u l e st h a tw i l lb r i n gt h i sc o l u m ni n t os t e pw i t ht h e n e w

T r a n s B A S I CD i s k .

F i r s to f f ( P r o g r a m1 ) i s S t r i n g S y n t h e s i s ,w h i c hc o n t a i n sa

h a n d f u lo f s p e c i a l i z e df u n c t i o n sf o rg e n e r a t i n gs p e c i a ls t r i n g s .

T h em o s ti n s t r u c t i v eo f t h e s ef r o ma m o d u l e - c r e a t o r ' sp o i n to f

v i e wi s t h eB U I L D $ (f u n c t i o n ,w h i c hi s a s o r t o fg l o r i f i e dC H R $ (

t h a tc a nt a k e m u l t i p l eP E T S C I 1a r g u m e n t s ,i n c l u d i n gr a n g e s ,t o

b u i l ds p e c i a ls t r i n g s .

T h ea b i l i t yo f B U I L D $ (t o h a n d l em u l t i p l ea r g u m e n t sm e a n s

t h a tw e h a v et o b e c a r e f u li n m a n a g i n gt h em e m o r yu s e df o r

i n t e r m e d i a t er e s u l t s ,s i n c ee a c ha r g u m e n tc a ni t s e l fb e a c o m

p l e x e x p r e s s i o nw i t hi t s o w nf u n c t i o nc a l l s ,t h e o r e t i c a l l ye v e n

i n c l u d i n gc a l l s t oB U I L D $ (i t s e l f .F o rt h i sr e a s o n ,B U I L D $ (u s e s

t h et w or o u t i n e sP S H T E Ma n dP U L T E M ,w h i c ht o g e t h e r t a k

c a r eo f s a v i n ga n dr e s t o r i n gt h e t e m p o r a r ym e m o r yr e g i s t e r s

T 2 t h r o u g hT 6 w h e n e v e ra n e wa r g u m e n ti s e v a l u a t e d .

T h i sm i g h tb e a g o o dt i m et o m e n t i o na c o u p l eo f t h i n g st h a t

d i s t i n g u i s hs t a t e m e n t sf r o mf u n c t i o n sw i t hr e s p e c tt o z e r op a g e

s t o r a g e .O n ei s t h a tt h e l o c a t i o n s$ 1 4a n d$ 1 5a r e u s e d b y

s t a t e m e n t so n l y ,n e v e rb y f u n c t i o n s ,s o y o uc a ne x p e c td a t a

s t o r ei n t h o s el o c a t i o n st o s u r v i v e e x p r e s s i o n e v a

i n t a c t ,n o m a t t e rh o wc o m p l e xt h e e x p r e s s i o nm a yb e . T h e

P O K Es t a t e m e n t ,f o re x a m p l e ,s t o r e st h eP O K Ea d d r e s sa t $ 1 4 /

1 5 b e f o r e e v a l u a t i n gt h eP O K Ev a l u e .J u s tr e m e m b e rn e v e rt o

u s e$ 1 4 / 1 5f o rs t o r a g ew h e nw r i t i n gf u n c t i o n so f y o u ro w n ,o r

y o u ' l le n d u pc l o b b e r i n gs o m ei n n o c e n t s t a t e m e n tt h a tc a l l s

y o u rf u n c t i o n .

A n o t h e rp o i n ti s t h a tb o t hs t a t e m e n t sa n d f u n c t i o n sh a v e

a c c e s st o t h eT r a n s B A S I Cs t o r a g ea r e aT 2 t h r o u g hT 6 .I f y o uu s e

t h i sa r e aa n dt h e ne v a l u a t ea n e x p r e s s i o n ,d o n o te x p e c tt h e

r e g i s t e r st o b e u n c h a n g e d .E i t h e rp u s ht h e v a l u e so n t ot h e

s t a c kw i t ht h e P S H T E Mr o u t i n e ,o r o n el i k ei t , o r c r e a t e a

s t o r a g ea r e a w i t h i ny o u ro w np r o g r a mc o d e .

T h eD e l a ym o d u l e( P r o g r a m2 ) c o n t a i n sa s i n g l es t a t e m e n t

D E L A Y ,w h i c hh a n g st h ec o m p u t e rf o ra s p e c i f i e dn u m b e ro f

h u n d r e d t h so f s e c o n d s .O n et h i n gy o um i g h tw a n tt o a d o p tf o r

y o u ro w np r o g r a m si s t h ec h e c kf o rt h eS T O Pk e y( J S R$ A 8 2 C ) ,

w h i c hw i l lb r e a ka u t o m a t i c a l l yt o d i r e c tm o d ei f t h e k e yi s

d o w n .

T h eT r a n s a c t o r 1 8 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 23: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 23/88

T h eS l i d em o d u l e( P r o g r a m3 ) c o n t a i n s t h es t a t e m e n tS L I D E ,

w h i c hl e t sy o um o v ea s p r i t eb y s p e c i f y i n ga d i s p l a c e m e n t

( r e l a t i v e )r a t h e rt h a na d e s t i n a t i o n( a b s o l u t e ) .S L I D Ew i l lw a i t

u n t i lt h e r a s t e rs c a ni s o f f t h e c u r r e n tl o c a t i o no f t h e s p r i t e

b e f o r e a l l o w i n gi t t o m o v e :i n m o s tc a s e st h i se l i m i n a t e s t h e

s h e a r i n ge f f e c tt h a t a r i s e sw h e nt h er a s t e rc a t c h e sa s p r i t e i n

m o t i o n .A n o t h e ri n t e r e s t i n gt h i n ga b o u tS L I D Ei s t h a ty o uc a n

s p e c i f yt h ed i r e c t i o no f m o v e m e n te i t h e r a sa n i n t e g e ro r a s a

s t r i n g .T h er o u t i n et h a ti n t e r p r e t st h e i n p u tm i g h t b eu s e f u li no t h e rc o m m a n d sa s w e l l .

T h eM a k em o d u l e( P r o g r a m4 ) c o n t a i n s t h es t a t e m e n tM A K E ,

w h i c hp r i n t sa s p e c i f i e dn u m b e ro f r e p e t i t i o n so f a s t r i n g .Y o u

c a n u s e t h i s t op r o d u c ep a t t e r n sa n d b o r d e r s ,a n d s t r i n g s

r e q u i r i n gr e p e t i t i v ec u r s o rm o v e m e n t .

T h eC e n t r em o d u l e( P r o g r a m5 ) c o n t a i n s t h es t a t e m e n tC E N

T R E ,w h i c hp r i n t sa s p e c i f i e ds t r i n g o fu p t o 4 0 c h a r a c t e r s

c e n t r e do n t h e m o n i t o rs c r e e n .T h eh a n d yt h i n ga b o u tt h i s

c o m m a n di s t h a ti t i g n o r e sc o n t r o lc h a r a c t e r si n t h es t r i n g( R V S

a n dc o l o u rc o n t r o l c h a r a c t e r s ,f o re x a m p l e )w h e nd e c i d i n gh o wf a rt o i n d e n tt h es t r i n g .

F i n a l l y ,t h eV o c a b M a n a g e r m o d u l e( P r o g r a m6 ) c o n t a i n st w o

s t a t e m e n t sa n d t w of u n c t i o n st h a tw i l lh e l pi n v o c a b u l a r y

s e a r c h i n ga p p l i c a t i o n sl i k ea d v e n t u r e g a m e s .T h eF I L Es t a t e

m e n t ,w h i c hi s s i m i l a ri n s t r u c t u r et o D A T A ,r e a d si n a l p h a n u

m e r i cs t r i n g sa n ds t o r e st h e mu n d e rt h eB A S I CR O M .W i t ht h e

S C A N (f u n c t i o n ,y o uc a nf i n dt h ep o s i t i o no f a p a r t i c u l a rs t r i n g

w i t h i nt h ev o c a b u l a r y .

W h e nV o c a b M a n a g e ri s c o m b i n e dw i t h o t h e rm o d u l e sl i k e

I n l i n e( i nT r a n s B A S I C# 8 ) ,F i r s t& B F $( # 7 ) ,a n dS t r i p& C l e a n( # 4 ) ,m a n ya p p l i c a t i o n st h a td e p e n do n i n p u tp a r s i n gb e c o m e

m u c hs i m p l e rt o p r o g r a m . N o to n l yt h a t ,b u t t h es t r i n g ss t o r e d

i n t h ev o c a b u l a r ya r eu n k n o w nt o B A S I Ci t s e l f ,a n dw i l ln o t

c r e a t eg a r b a g ec o l l e c t i o np r o b l e m s .

N e wC o m m a n d s

D E L A Y( T y p e :S t a t e m e n t C a t # :0 2 6 )

L i n eR a n g e :3 1 8 0 - 3 2 1 4

M o d u l e :D E L A YE x a m p l e :I F A = BT H E ND E L A Y1 0 0 :P R I N T" W H A T ? "

E x e c u t i o ni s s u s p e n d e df o rt h es p e c i f i e dn u m b e ro f h u n d r e d t h s

o f s e c o n d s( 0 t o 6 5 5 3 5 ) .T h et i m i n gi s n o t a c c u r a t ef o r v e r y

s m a l lv a l u e s .

S L I D E( T y p e :S t a t e m e n tC a t* : 0 4 3 )

L i n eR a n g e :3 8 3 0 - 3 9 2 8

M o d u l e :S L I D E

E x a m p l e :F O RI = 1 T O3 0 :S L I D E0 , "E " :N E X T

E x a m p l e :S L I D E3 , 2 , 8 4

E x a m p l e : D l $= " U " :S L I D E7 , D I $ , 2

T h i sc o m m a n dt a k e st w o a r g u m e n t sp l u sa n o p t i o n a lt h i r d .

T h ef i r s ti s t h es p r i t en u m b e r( 0 - 7 ) ,t h es e c o n dt h ed i r e c t i o ni n

w h i c hi t i s t o b e d i s p l a c e d ,a n d t h e t h i r di s t h e a m o u n to f

d i s p l a c e m e n t .I f t h et h i r da r g u m e n ti s n o tp r e s e n ti t i s t a k e nt o

b e o n e .T h es e c o n da r g u m e n tm a yb e g i v e na s a n u m b e rf r o m

0 t o 3 ; a s a s t r i n gb e g i n n i n gw i t ho n eo f " n " , " e " , " s " , " w " ;

o r a s as t r i n gb e g i n n i n gw i t ho n eo f " u " , " r " , " d " , " 1 " .T h e

s t r i n g sm a yb e i n e i t h e ru p p e ro r l o w e rc a s e .

M A K E( T y p e :S t a t e m e n t C a t # :0 4 8 )

L i n eR a n g e :4 1 0 6 - 4 1 4 2

M o d u l e :M A K EE x a m p l e :M A K E2 2 , "T R A N S B A S I C "+ C H R $ ( 1 3 )

T h es t r i n ga r g u m e n ti s p r i n t e dt h es p e c i f i e dn u m b e ro f t i m e s

( u pt o 2 5 5 )f r o mt h e c u r r e n t c u r s o rp o s i t i o n .

C E N T R E( T y p e :S t a t e m e n tC a t* : 0 4 9 )

L i n eR a n g e :4 1 4 4 - 4 1 9 2

M o d u l e :C E N T R E

E x a m p l e :C E N T R E" A P A I N T E DS H I PU P O NA P A I N T E D

O C E A N "

T h es t r i n gi s c e n t r e do n t h e c u r r e n ts c r e e nl i n e .C o n t r o l

c h a r a c t e r sa r ei g n o r e di n c a l c u l a t i n gt h eo f f s e tf r o mt h em a r g i n .

S t r i n g sl o n g e rt h a n4 0 c h a r a c t e r s( n o tc o u n t i n gc o n t r o lc h a r a ct e r s )g e n e r a t ea S T R I N GT O OL O N Ge r r o r .

F I L E( T y p e :S t a t e m e n tC a t # :0 5 0 )

L i n eR a n g e :4 1 9 4 - 4 2 7 2

M o d u l e :V O C A BM A N A G E R

E x a m p l e :F I L E" S W O R D . M A C E . S P E A R , P O I

B A N A N A

T h es t r i n g ss e p a r a t e db y c o m m a sa r e s t o r e du n d e rt h eB A S I C

R O Ms t a r t i n ga t $ A 0 0 1( 4 0 9 6 1 ) .A p o i n t e r( F L P T R )p o i n t st o t h e

n e x tf r e e b y t e .O n l ya l p h a n u m e r i c sa r e s t o r e d .U p p e rc a s e

a l p h a b e t i c sa r ec o n v e r t e dt o l o w e rc a s e .A v o c a b u l a r yb u i l tb y

F I L Es t a t e m e n t sc a n b es e a r c h e dw i t h t h eS C A N (f u n c t i o n( 0 5 3 ) .T h eo n l yq u o t e a l l o w e di n a F I L Es t a t e m e n ti s t h eo n e

t h a tp r e c e d e st h e s t r i n g d a t a ;a l s o ,n o o t h e rs t a t e m e n tm a y

f o l l o wt h eF I L Es t a t e m e n to n t h es a m el i n e .

I N I T F P( T y p e :S t a t e m e n tC a t # :0 5 1 )

L i n eR a n g e :4 2 7 4 - 4 3 0 6

M o d u l e :V O C A BM A N A G E R

E x a m p l e : I N I T F P

E x a m p l e :I N I T F P4 3 2 5 7

T h eF I L Es t a t e m e n tp o i n t e ri s i n i t i a l i z e d .I f n o p a r a m e t e ri s

p r e s e n t t h e p o i n t e ri s i n i t i a l i z e dt o a d d r e s s4 0 9 6 1 .I f a p a r a m e

t e rb e t w e e n4 0 9 6 1( $ A 0 0 1 )a n d4 9 1 5 1 ( $ B F F F )i s p r e s e n t t h ep o i n t e ri s i n i t i a l i z e dt o t h a ta d d r e s s .T h es e c o n d f o r mo f t h e

I N I T F Ps t a t e m e n tw o u l dn o r m a l l yb e u s e do n l yw h e na p r e

p a r e d v o c a b u l a r yi s l o a d e df r o md i s k ,i n s t e a do f b e i n gg e n e r

a t e df r o mF I L Es t a t e m e n t s w i t h i na p r o g r a m .I n t h i sc a s et h e

F I L Es t a t e m e n tp o i n t e rw o u l dh a v et o b e i n i t i a l i z e d t ot h ev a l u e

d e t e r m i n e dw i t ht h eF P L O Cf u n c t i o n( 0 5 2 )a f t e rt h ev o c a b u l a r y

w a sf i r s tg e n e r a t e d .

F P L O C( T y p e :F u n c t i o nC a t* : 0 5 2 )

L i n eR a n g e :4 3 0 8 - 4 3 1 4

M o d u l e :V O C A BM A N A G E R

E x a m p l e :P R I N TF P L O C - 4 0 9 6 1A q u a s i - v a r i a b l er e t u r n i n g t h e c u r r e n tv a l u eo f t h e F I L E

s t a t e m e n tp o i n t e r( 4 0 9 6 1t o 4 9 1 5 1 ) .

T h eT r a n s a c t o r J u t y 1 9 6 6 :V o l u m e7 , I s s u eO 1

Page 24: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 24/88

S C A N( T y p e :F u n c t i o n C a t # :0 5 3 )

L i n eR a n g e :4 3 1 6 - 4 4 6 8

M o d u l e :V O C A BM A N A G E R

E x a m p l e :I F S C A N ( A N $ ) < 8 3G O T O7 7 0

T h ev o c a b u l a r yc o m p i l e db y t h eF I L Es t a t e m e n ti s s e a r c h e df o r

a n e n t r ym a t c h i n gt h ea r g u m e n ts t r i n g .O n l ya l p h a n u m e r i c s

a r eu s e di n t h ec o m p a r i s o n ,a n du p p e rc a s e a l p h a b e t i cc h a r a c

t e r sa r e c o n v e r t e dt o l o w e rc a s e .T h e n u m b e ro f t h e f i r s t

m a t c h i n gv o c a b u l a r ye n t r yi s r e t u r n e d ,c o u n t i n gf r o mo n e .

Z e r oi s r e t u r n e di f t h es e a r c hi s u n s u c c e s s f u l .

A L P H $( T y p e :F u n c t i o n C a t * :0 2 1 )

L i n eR a n g e :2 8 9 4 - 2 9 0 0

M o d u l e :S T R I N G S Y N T H E S I S

E x a m p l e :P R I N TL E F T $ ( A L P H $ , 1 3 )

A q u a s i - v a r i a b l et h a tr e t u r n sa s t r i n gc o n s i s t i n go f t h el o w e r

c a s ea l p h a b e t .

U C A L P H $( T y p e :F u n c t i o nC a t* : 0 2 2 )

L i n eR a n g e :2 9 0 2 - 2 9 0 8

M o d u l e :S T R I N G S Y N T H E S I SE x a m p l e :P R I N TA L P H $+ U C A L P H $

A q u a s i - v a r i a b l et h a tr e t u r n sa s t r i n gc o n s i s t i n go f t h eu p p e r

c a s ea l p h a b e t .

N U M $( T y p e :F u n c t i o nC a t* : 0 2 3 )

L i n eR a n g e :2 9 1 0 - 2 9 2 6

M o d u l e :S T R I N GS Y N T H E S I S

E x a m p l e :A = A W A I T ( N U M $ )

A q u a s i - v a r i a b l et h a tr e t u r n sa s t r i n gc o n s i s t i n go f t h ed i g i t s

f r o m0 t o 9 .

R V S $( T y p e :F u n c t i o n C a t # :0 2 4 )L i n eR a n g e :2 9 2 8 - 2 9 8 4

M o d u l e :S T R I N G S Y N T H E S I S

E x a m p l e :P R I N TR V S $ ( "R U M P E L S T I L T S K I N" )

R e t u r n st h ea r g u m e n ts t r i n gi n r e v e r s e o r d e r( i n t h i s c a s e ,

N I K S T L I T S L E P M U R " ) .

B U I L D $( T y p e :F u n c t i o nC a t* : 0 2 5 )

L i n eR a n g e :2 9 8 6 - 3 0 9 8

M o d u l e :S T R I N GS Y N T H E S I S

E x a m p l e :A $= B U I L D $ ( 3 6 , 4 8 ; 5 7 , 3 2 , 6 5 ; 7 0 )

R e t u r n sa s t r i n g s p e c i f i e db y i t sA S C I Ic o m p o n e n t s .I n d i v i d u a l

v a l u e sm a yb e s p e c i f i e d ,a s w e l l a s r a n g e s .I n t h el a t t e rc a s e t h el o w a n dh i g he n d so f t h er a n g ea r es e p a r a t e db y a s e m i c o l o n .

T h es t r i n g" $ 0 1 2 3 4 5 6 7 8 9A B C D E F "i s r e t u r n e db y t h ee x a m

p l e .

O E

F H

M HH H

C F

J H

N JM l

C B

P r o g r a m1 : S T R I N GS Y N T H E S I S

r e ms t r i n gs y n t h e s i s( a u g2 9 / 8 4 ):

r e m0 s t a t e m e n t s ,5 f u n c t i o n s

r e m k e y w o r dc h a r a c t e r s :2 8

r e m k e y w o r dr e mf / a l p h $

r e mf / u c a l p h $

r o u t i n e

a l p h

u c a l p h

l i n e s e r #2 8 9 4 0 2 1

2 9 0 2 0 2 2

O EB K

M OA l

E N

K P

H P

E l

P D1 \ - J

G lL C

C F

K K

M BO BE E

H H

K M

D GM MP H

C N

I B

O L

C MP E

E M

D K

M MA H

E O

A J

P K

C DK K

A HE G

K E

E H

C MI M

M BP L

F B

G KH B

F C

L P

G KP A

N N

D F

N CO HH NA OH OG DP G

O BH K

K G

A H

D L

C G

9 r e mf / n u m $

1 0 r e mf / r v s $ (

1 1 r e mf / b u i l d $ (

1 2 :

n u m

r v s

b u i l d

1 3 r e mu / p s h t e m( 3 1 0 0 / 0 6 0 )

1 4 r e mu / p u l t e m( 3 1 3 4 / 0 6 1 )

1 5 r e mu / k p f t o p( 3 1 5 6 / 0 6 2 )

1 6 :

1 * 1 O l 1 1

1 8 :6 0 3. a s c " a l p h

: . b y t e $ a 4 :

6 0 4. a s c "r v s $

2 9 1 0 0 2 3

2 9 2 8 0 2 4

2 9 8 6 0 2 5

" : . b y t e $ a 4 : . a s c "u c a l p h "

. a s c" n u m " : . b y t e $ a 4

" : . b y t e $ a 8 : . a s c " b u i l d $ ": . b y t e $ a 8

1 6 0 3. w o r d a l p h - 1, u c a l p h - 1 ,

1 6 0 4. w o r dr v s - 1, b u i l d -

2 8 9 4u c a l p h

2 8 9 6

2 8 9 8

2 9 0 0 ;

2 9 0 2a l p h

2 9 0 4

2 9 0 6

2 9 0 8 ;

2 9 1 0n u m

2 9 1 2

2 9 1 4n u m 1

2 9 1 6

2 9 1 8

2 9 2 0

2 9 2 2

2 9 2 4

2 9 2 6 ;

2 9 2 8r v s

2 9 3 0

2 9 3 2r v 1

2 9 3 4

2 9 3 62 9 3 8

2 9 4 0

2 9 4 2

2 9 4 4

2 9 4 6

2 9 4 8

2 9 5 0r v 2

2 9 5 2

2 9 5 4

2 9 5 6

2 9 5 8

2 9 6 0

2 9 6 22 9 6 4

2 9 6 6

2 9 6 8

2 9 7 0

2 9 7 2

2 9 7 4

2 9 7 6

2 9 7 8

2 9 8 0

2 9 8 2r v 3

2 9 8 4 ;

2 9 8 6b u i l d

2 9 8 8

2 9 9 0

2 9 9 2b u 1

2 9 9 4

I d a

I d x

b n e

I d a

I d x

b n e

I d a

I d x

s t a

I d a

s t a

I d a

s t a

b n e

j s r

j s r

s t a

s t x

s t y

j s r

t a y

b e q

d e y

I d a

s t a

s t y

I d a

p h a

I d y

I d a

t a x

p l as l a

t x a

I d y

s t a

b e q

i n c

d e y

c p y

b c s

j m p

i d y

s t y

s t y

j s r

j s r

# " A "

# " Z "

n u m 1

# " a "

# " z "

n u m 1

# " 0 "

# " 9 "

t 3

# 0

t 2

# $ 8 0

t 4

b u 2

$ a e f 4

$ b 6 a 3

$ 6 1

t 5

t 6

$ b 4 7 d

r v 3

[ 2

1 3

( t 5 ) , y

t 2

( t 5 ) , y

( $ 6 2 ) , y

t 3

( $ 6 2 ) , y

r v 3

[ 2

t 2

r v 2

$ b 4 c a

# 0

t 2

t 4

p s h t e m

k p f 1

n u m - 1

; r a n g eo f u p p e r

; c a s ea l p h a b e t

; r a n g eo f l o w e r

; c a s ea l p h a b e t

; r a n g eo f d i g i t s

; e v a le x p r ,c h k ' ) '

; c r e a t ed e s c r i p t o r

; s a v e l e n g t h

; s a v ep o i n t e r

; t o s t r i n g

; a l l o c a t em e m o r y

; t e s ts t r i n gn u l l

; y e s

; i n d e xt o l a s tc h a r

; i n d e x t o1 s tc h a r t

; l o w e ri n d e xs a v e

; u p p e ri n d e xs a v e

; g e tu p p e rc h a r

; s e ti t a s i d e

; g e tl o w e r i n d e x

; g e tl o w e rc h a r

; s e ti t a s i d e

; r e - g e tu p p e rc h a r; s t o r ea s l o w e r

; r e - g e t l o w e rc h a r

; a n du p p e ri n d e x

; s t o r ea s u p p e r

; w h e nl e n ( s t r )= 1

; b u m pl o w e r i n d e x

; b a c ku p p e ri n d e x

; t e s ti n d i c e sc r o s s

; n o ty e t

; r e t u r ns t rd e s c r

; c l e a rt e m ps t o r a g e

; p u s h t 2 - t 6

; e v a lb y t et o . x

T h eT r a n s a c t o r 2 O J u l y 1 9 8 6 :V o l u m e7 , I s s u e0 1

Page 25: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 25/88

O KG A

K K

H H

E L

L A

M J

E A

L J

A MI B

M LH N

B K

C A

E J

M OL MD D

L I

B N

N E

P C

H E

O PL H

F H

F E

P D

L O

D J

F J

K C

N NM J

J L

N J

D F

F O

O GE C

L O

F D

O ME OJ G

K P

D A

K F

H PO KA 1

E A

I C

L H

N OM KE P

N MH C

I K

F OE H

K GA L

D M

2 9 9 6

2 9 9 8

3 0 0 0

3 0 0 2

3 0 0 4

3 0 0 6

3 0 0 8

3 0 1 0

3 0 1 2

3 0 1 43 0 1 6

3 0 1 8

3 0 2 0b u 2

3 0 2 2

3 0 2 4

3 0 2 6

3 0 2 8

3 0 3 0

3 0 3 2

3 0 3 4

3 0 3 6

3 0 3 8

3 0 4 0

3 0 4 2

3 0 4 4

3 0 4 6

3 0 4 8

3 0 5 0

3 0 5 2

3 0 5 4

3 0 5 6b u 3

3 0 5 8

3 0 6 0

3 0 6 2

3 0 6 4

3 0 6 6

3 0 6 8b c c

3 0 7 0b u 4

3 0 7 2

3 0 7 4

3 0 7 6

3 0 7 8

3 0 8 0

3 0 8 2

3 0 8 4b u 5

3 0 8 6b u 6

3 0 8 8

3 0 9 0

3 0 9 2

3 0 9 4b u 73 0 9 6b u 8

3 0 9 8•\ J \ J \ 3 \ J,

3 1 0 0 p s h t e m

3 1 0 2

3 1 0 4

3 1 0 6

3 1 0 8

3 1 1 0

3 1 1 2

3 1 1 4p h t 1

3 1 1 6

3 1 1 8

3 1 2 0

3 1 2 2D h t 2v _ J 1 l _ 1 — V J1 1 L £ —

3 1 2 4

3 1 2 6

T h ©T V o n s o c t o f

s t x

j s r

I d x

s t x

j s r

c m p

b n e

j s r

j s r

s t xj s r

I d x

t x a

s e c

s b c

b c c

a d c

b c s

p h a

a d c

b c s

s t a

p l a

s t x

j s r

s t x

s t y

I d x

s t a

I d y

t x a

i n y

c p y

b e q

s t a

d e x

b u 3

b i t

b m i

j s r

c m p

b n e

j s r

b n e

j s r

I d a

I d x

I d y

j m p

j m pj m p

I d a

j s r

p l a

s t a

p l a

s t a

I d x

I d a

p h a

d e x

b p l

I d a

p h a

I d a

$ 6 7

p u l t e m

$ 6 7

t 3

$ 7 9

# " ; "

b u 2

p s h t e m

k p f t o p

$ 6 7p u l t e m

$ 6 7

t 3

b u 7

# 0

b u 8

t 2

b u 8

t 2

t 3

$ b 4 7 d

$ 2 2

$ 2 3

t 3

t 3

# $ f f

t 3

b u 4

( $ 6 2 ) , y

t 4

b u 6

$ 7 9

b u 5

$ 7 3

b u 1

$ a e f 7

t 2

$ 6 2

$ 6 3

r v 1

$ b 2 4 8$ a 5 7 1

# 3

$ a 3 f b

$ 7 1

$ 7 2

# 4

t 2 , x

p h t 1

$ 7 2

$ 7 1

; a n ds a v e

; p u l l t 2 - t 6

; r e t r i e v eb y t e

; a n ds a v e

; t e s tr a n g ec h a r

; n o

; p u s h t 2 - t 6

; e v a lb y t et o . x

; a n ds a v e; p u l l t 2 - t 6

r e t r i e v eb y t e

; t e s tu p p e rb o u n d

; > = l o w e rb o u n d

; n o

; t e s tr a n g e s i z e2 5 6

; y e s

; p u s h r a n g e s i z e

; t e s tr e s u l t> 2 5 5

; y e s

; s a v er e s u l ts o f a r

; p u l lr a n g e s i z e

; s a v eu p p e rb o u n d+ 1

; r e s e r v es t r s p a c e

; c r e a t ep o i n t e rt o

; s t r i n gd a t a

; g e tu p p e rb o u n d +1

; s a v es t r i n gs i z e

; i n i ti n d e xt o s t r

; c h a rt o s t o r e

; b u m pi n d e x

; t e s t= s t r i n gs i z e

; y e s

; s t o r ec h a r a c t e r

; n e x tc h a rd o w n

; b r a n c h a l w a y s

; t e s ta l p h $e t c

; y e s

; t e s tm o r et o b u i l d

; n o

; s k i pc o m m a

; b r a n c ha l w a y s

; c h e c kc l o s ep a r e n

; c r e a t ed e s c r i p t o r

; r e v e r s et h es t r i n g

; ' i l l e g a lq u a n t i t y '; ' s t r i n gt o ol o n g '

; c h e c k6 s t a c k

; b y t e sf r e e

; s a v er e t u r na d d r

; p u s h t 6 t o t 2

■ r p t r i p v pr t s a d d r

E L

G CC L

P B

L A

K MC BD D

F N

G GI C

F l

P K

I M

A OH N

E N

1 0

I N

O A

I M

O CM OP C

E F

A O

H K

F H

A l

H H

F O

J H

N J

J O

M Hu n

O HD H

I G

K B

C C

O KM CN G

P Fn n

A f i

F N

I C

M GP GF N

O A

P G

I G

K K

E A

H L

F H

2 1

3 1 2 8

3 1 3 0

3 1 3 2

3 1 3 4

3 1 3 6

3 1 3 8

3 1 4 0

3 1 4 2

3 1 4 4

3 1 4 63 1 4 8

3 1 5 0

3 1 5 2

3 1 5 4

3 1 5 6

3 1 5 8

3 1 6 0

3 1 6 2

3 1 6 4

3 1 6 6

3 1 6 8

3 1 7 0

3 1 7 2

3 1 7 4

3 1 7 6

3 1 7 8

p h a

r t s

;

p u l t e mp l a

s t a $ 7 1

p l a

s t a $ 7 2

I d x # $ f b

p l t 1 p l a

s t a $ 7 , xi n x

b m i p l t 1

b p l p h t 2

k p f t o pj s r $ 7 3

k p f 1 I d a $ 3 3

p h a

I d a $ 3 4

p h a

j s r $ b 7 9 e

p l a

s t a $ 3 4

p l a

s t a $ 3 3

r t s

P r o g r a m2 :

0 r e md e l a y ( a u g2 5 / 8 4 )

1 :

2 r e m

3 :

4 r e m

5 :

6 r e m

7 r e m

8 :

Q r p r rE 7 1 C l I

1 0 :

; s a v er e t u r na d d r

; p u l l t 2 t o t 6

; r e t r i e v er t sa d d r

; s k i ps e p a r a t o r

; p u s h f r e t o p p t r

; e v a lb y t et o . x

; p u l lf r e t o pp t r

D E L A Y

1 s t a t e m e n t ,0 f u n c t i o n s

k e y w o r dc h a r a c t e r s .

k e y w o r dr o u t i n e

d e l a y d e l a

1 0 6. a s c" d e l a Y "

1 1 0 6

3 1 8 0

3 1 8 2

3 1 8 4

3 1 8 6

3 1 8 8

3 1 9 0

3 1 Q ?\ J I < J C -

3 1 9 4O I J H

3 1 9 6

3 1 9 8

3 2 0 0

3 2 0 2

3 2 0 4

3 2 0 6

3 2 0 8

3 2 1 0

3 2 1 2

3 2 1 4

0 r e m

1 :

. w o r d d e l a - 1

d e l a j s r $ a d 8 a

j s r $ b 7 f 7

d e l I d y # $ 0 e

d e 2 I d x # $ 8 5

d e 3 d e x

b n e d e 3

d e yh n p r i p ?\ J \ 1 O K J \ j C

j s r $ a 8 2 c

I d x $ 1 4

b n e d e 4

I d y $ 1 5

b e qd e 5

d e c $ 1 5

d e 4 d e c $ 1 4

j m p d e l

d e 5 r t s

t

P r o g r a m3 :

s l i d e( a u g2 5 / 8 4 )

5

l i n e s e r #

3 1 8 0 0 2 6

; e v a ln u me x p r

; c o n v t o i n t a t $ 1 4

; c o u n t1 / 1 0 0s e c

; c h e c ks t o pk e y

; d e c r e m e n tc o u n t e r

; c o u n t d o w n c o m p l e t

; n o td o n ey e t

S L I D E

;

J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 26: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 26/88

A l

H H

F O

J H

N J

J L

M H

D P

C M

G LK N

B l

M CN O

E l

p n

G l

D l

G J

P B

J O

O C

H LO F

E E

A N

J D

F O

F G

I F

J B

E B

F N

G F

C O

F JG OH F

M J

M OL L

P A

N N

O HN l

N N

E C

K C

E OK H

O N

J F

B l

N P

D OP B

G EJ D

A B

C C

H F

C BH O1 1 \ — /

I A

2 r e m

3 :

4 r e m

5 :

6 r e m

7 r e m

8 :

9 r e m

1 s t a t e m e n t ,0 f u n c t i o n s

k e y w o r dc h a r a c t e r s :5

k e y w o r dr o u t i n e

s / s l i d e s l i d

u / c h k s p r ( 3 6 6 4 / 0 3 7 )

1 0 r e mu / r a s c h k ( 3 6 7 6 / 0 3 8 )

1 1 r e mu / d i r e c t( 3 9 3 0 / 0 4 4 )1 2 r e md / p o w e r s( 3 6 9 4 / 0 3 9 )

1 3 :

l i n e s e r #

3 8 3 0 0 4 3

1 4 r e mt h i sm o d u l ea l s oc o n t a i n so n e

1 5 r e ml i n ef r o ms e ts p r i t e s-

1 6 :

1 7 r p ri / i d i i

1 8 :

1 1 0 . ;

1 1 1 0

3 6 2 4

3 6 6 4

3 6 6 6

3 6 6 83 6 7 0

3 6 7 2

3 6 7 4

3 6 7 6

3 6 7 8

3 6 8 0

3 6 8 2

3 6 8 4

3 6 8 6

3 6 8 8

3 6 9 0

3 6 9 2

3 6 9 43 6 9 6

3 8 3 0

3 8 3 2

3 8 3 4

3 8 3 6

3 8 3 8

3 8 4 0

3 8 4 2

3 8 4 4

3 8 4 6

3 8 4 8

3 8 5 0

3 8 5 23 8 5 4

3 8 5 6

3 8 5 8

3 8 6 0

3 8 6 2

3 8 6 4

3 8 6 6

3 8 6 8

3 8 7 0

3 8 7 2

3 8 7 4

3 8 7 6

3 8 7 8u u u u

3 8 8 2

T h eT r a n s a c t o r

i s c " s l i d E "

. w o r ds l i d — 1

x s 3 j m p$ b 2 4 8

c h k s p rj s r $ 7 3

c h s 1 j s r $ b 7 9 e

c p x # 8b c s x s 3

r t s

;

r a s c h kp h a

r a s 1 I d a $ d O 1 2

s b c $ d 0 0 1 , x

b c c r a s 2

c m p # $ 2 b

b c c r a s 1

r a s 2 p l a

r t s

J

- 3 6 2 4

; ' i l l e g a lq u a n t i t y '

; s k i pb y t e

; e v a le x p r t o. x

; t e s tv a l i d s p r i t e; n o

; g e t r a s t e rp o s ' n

; t e s ta b o v es p r i t e

; y e s

; t e s tb e l o ws p r i t e

; n o

p o w e r s. b y t e1 , 2 , 4 , 8 , 1 6 , 3 2 , 6 4 , 1 2 8;

s l i d j s r c h s 1

s t x $ 1 4

j s r $ a e f d

j s r d i r e c t

p h a

I d a $ 1 4

p h a

I d a # 1

s t a t 3

j s r $ 7 9

c m p# " , "

b n e s l 1j s r $ b 7 9 b

s t x t 3

s h p l a

t a y

a s l

t a x

p l a

j s r r a s c h k

b n e s l 2

I d a $ d 0 0 1 , x

s b c t 3

s t a $ d 0 0 1, x

r t so l p r m n # ?

b n e s l 3

; e v a ls p r i t e#

; s a v e

; c h e c kf o rc o m m a

; g e td i r e c t i o n

; p u s hd i r e c t i o n

; p u s hs p r i t e *

; s a v ed e f a u l t

; d i s p l a c e m e n t

; t e s tf o rc o m m a

; n o; e v a ld i s p l a c e m e n t

; a n ds t o r e

; p u l ls p r i t e *

; m a s ki n d e x. y

p o s i t i o ni n d e x. x

; p u l ld i r e c t i o n

; w a i tf o rr a s t e r

; d i r e c t i o nn o tu p

; s u b t r a c t d i s p

; f r o my - p o s ' n

■ t p o t H j rH n w ni ! C O LU l l U U V V I1

; n o

K E

N A

E E

F G

A CE G

M B

O J

N N

C FC H

I H

L H

G F

O Bo n

N GN G

C l

E l

J F

L K

O ML O

J A

D D

O B

L K

K E

I C

E F

M P

K J

M DC B

E DC ON G

J E

F D

M l

E H

K C

L F

N F

C H

B E

A A

C DE A

A M

F H

A l

H H

E O

J H

N J

1 0

M HH D

O H

2 2

3 8 8 4

3 8 8 6

3 8 8 8

3 8 9 0

3 8 9 2

3 8 9 4s l 3

3 8 9 6

3 8 9 8

3 9 0 0

3 9 0 23 9 0 4

3 9 0 6

3 9 0 8s l 4

3 9 1 0

3 9 1 2Q Q I A

3 9 1 6s l 5

3 9 1 8

3 9 2 0

3 9 2 2

3 9 2 4

3 9 2 6s l 6

3 9 2 8 ;3 9 3 0d i r e c t

3 9 3 2

3 9 3 4

3 9 3 6

3 9 3 8

3 9 4 0

3 9 4 2

3 9 4 4

3 9 4 6d i 1

3 9 4 8

3 9 5 0

3 9 5 2

3 9 5 43 9 5 6

3 9 5 8d i 2

3 9 6 0

3 9 6 2

3 9 6 4

3 9 6 6d i 3

3 9 6 8d i 4

3 9 7 0

3 9 7 2

3 9 7 4

3 9 7 6d i 5

3 9 7 8 ;

3 9 8 0d i r s3 9 8 2 ;

c l c

I d a $ d 0 0 1 , x

a d c t 3

s t a $ d 0 0 1, x

r t s

c m p # 1

b n e s l 5

I d a $ d 0 0 0 , x

c l c

a d c t 3s t a $ d 0 0 0 , x

b c c s l 6

I d a $ d 0 1 0

e o r p o w e r s . y

s t a $ d 0 1 0r t qI L O

I d a $ d 0 0 0 , x

s e c

s b c t 3

s t a $ d 0 0 0 , x

b c c s l 4

r t s

j s r $ a d 9 e

b i t $ 0 d

b m id i 1

j s r $ b 7 a 1

c p x # 4

b c s d i 5

t x a

r t s

j s r $ b 6 a 6

t a y

b e qd i 3

I d y # 0

I d a ( $ 2 2 ) , yI d y # $ 0 f

c m p d i r s . y

b e qd i 4

d e y

b p l d i 2

j m p$ a f O 8

t y a

I s r

I s r

r t s

j m p$ b 2 4 8

; a d dd i s p

; t o y - p o s ' n

; t e s td i rr i g h t

; n o

; a d dd i s p

; t o y - p o s ' n

; d o n ' tc r o s ss e a m

; t o g g l em s b

; o f x - p o s ' n

s u b t r a c td i s p

; f r o mx - p o s ' n

; c r o s ss e a m

; e v a ld i r e c t i o n

; t e s te x p rt y p e

; s t r i n g

; e v a ln u m e r i ct o . x

; t e s t< 4

; n o

; r e t u md i ri n . a

; c r e a t ed e s c r i p t o r

; t e s tl e n g t hz e r o

; y e s

; g e tf i r s tc h a r

; t e s tv a l i dd i r

; y e s

; ' s y n t a x '

; r e d u c et o n u m e r i c

; ' i l l e g a lq u a n t i t y '

. a s c" U u N n R r E e D d S s U W w "

P r o g r a m4 : M A K E

0 r e mm a k e( a u g2 5 / 8 4 )

1 :

2 r e m 1 s t a t e m e n t ,0 f u n c t i o n s

3 :

4 r e mk e y w o r dc h a r a c t e r s :4

5 :

6 r e m k e y w o r dr o u t i n e

7 r e mm a k e

8 :^ 1 C l I I

1 0 :

m a k

l i n e s e r #

4 1 0 6 0 4 8

J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 27: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 27/88

L I

C F

F D

O CK l

C A

M MB A

H J

F CA H

D N

P I

F D

O E

A E

D GA L

J F

D N

E K

F D

F H

A l

H H

G OJ H

N J

K GM HH D1 1 \ — J

O H

P OI L

M P

P B

N F

H J

M GP K

M A

A A

C l

J J

O M

H MK D

P O

F K

P M

N K

M CD J

C B

K M

K J

I J

O P

D PB L

P F

1 1 1. a s c" m a k E "

1 1 1 1. w o r d

4 1 0 6 m a k

4 1 0 8

4 1 1 0

4 1 1 2

4 1 1 4

4 1 1 6

4 1 1 8

4 1 2 04 1 2 2

4 1 2 4

4 1 2 6 m a k 1

4 1 2 8

4 1 3 0

4 1 3 2

4 1 3 4

4 1 3 6

4 1 3 8

4 1 4 0m a k 2

4 1 4 2 ;

m a k - 1

j s r $ b 7 9 e

t x a

p h a

j s r $ a e f d

j s r $ a d 9 e

j s r $ b 6 a 3

t a y

p l as t a t 3

t y a

I d x t 3

b e q m a k 2

d e c t 3

p h a

j s r $ a b 2 4

p l a

j m p m a k 1

r t s

; e v a l# r e p e t i t i o n s

; p u s h

; c h e c kf o rc o m m a

; e v a ls t r i n g

; m a k ed e s c r i p t o r

; s t r i n gl e n g t h

p u l l# r e p e t i t i o n s; c o u n t d o w nr e g i s t e r

; g e tr e m a i n i n gr e p s

; a l ld o n e

; c o u n td o w n

; p r i n ts t r i n g

P r o g r a m5 : C E N T F

0 r e mc e n t r e( s e p t4 / 8 4 )

1 :

2 r e m 1 s t a t e m e n t ,0 f u n c t i o n s

3 :

4 r e m k e y w o r dc h a r a c t e r s :

5 :

6 r e m k e y w o r dr o u t i n e

7 r e mc e n t r e c n t r

8 :Q r p mJ 1 C l I I

1 0 :

1 1 2. a s c" c e n t r E "1 1 1 2 . w o r d

4 1 4 4c n t r

4 1 4 6

4 1 4 8

4 1 5 0

4 1 5 2

4 1 5 4c e 1

4 1 5 6

4 1 5 8

4 1 6 0

4 1 6 2

4 1 6 4

4 1 6 64 1 6 8

4 1 7 0

4 1 7 2 c e 2

4 1 7 4

4 1 7 6

4 1 7 8

4 1 8 0

4 1 8 2

4 1 8 3

4 1 8 4

4 1 8 5

4 1 8 6

4 1 8 7c e 34 1 8 8

4 1 8 9

c n t r - 1

j s r $ a d 9 e

j s r $ b 6 a 3

t a y

p h a

I d x # 0

d e y

c p y # $ f f

b e qc e 2

I d a ( $ 2 2 ) , y

a n d # $ 7 f

c m p# $ 2 0

b c c c e 1i n x

b n e c e 1

t x a

s e c

s b c # $ 2 9

b c s c e 4

e o r # $ f f

I s r

I d x $ d 3

c p x # $ 2 8

b c c c e 3

a d c # $ 2 7

s t a $ d 3p i a

j m p $ a b 2 4

6

l i n e s e r #

4 1 4 4 0 4 9

; e v a l s t r i n g

; m a k ed e s c r i p t o r

; i n d e xf r o m s t r e n d

; p u s hs t r i n gl e n g t h

; # p r i n t a b l ec h a r s

; b a c ku p i n d e x

; t e s td o n e

; y e s

; g e ta c h a r a c t e r

; c l e a rh i g hb i t

; t e s tC t r lc h a r

; y e s; b u m pc o u n t e r

; b r a n c h a l w a y s

; t e s tc o u n t e r< = 4 0

; n o

; n e g a t ea n dh a l v e

; r e s u l t

; t e s tl o g i c a ll i n e

; 4 0 o r 8 0

; 4 0

; a d d4 0 ( c a r r ys e t )

; s e tc u r s o rh o r i z; p u l ls t r i n gl e n g t h

; p r i n ts t r i n g

L P

G N

C L

F H

J H

H H

C EJ H

N J

K MI E

J L

J D

P H

O HP E

C N

N N

E l

P DG l

D N

O B

P F

E C

H C

O K

L K

F M

O Bp 1

C l

G KA HD N

O OO N

H MN HA M

A E

L M

H K

C OK P

N LO H

N C

C D

F M

I J

O l

D D

O MA P

G P

H E

G E

M FN E

G H

4 1 9 0 c e 4j m p $ a 5 7 1

4 1 9 2

0 r e m

1 :

2 r e m

3 :

4 r e m5 :

6 r e m

7 r e m

8 r e m

9 r e m

P r o g r a m6 : V O C A BM A N A G E R

v o c a bm a n a g e r( a u g2 9 / 8 4 ) :

2 s t a t e m e n t s ,2 f u n c t i o n s

k e y w o r dc h a r a c t e r s :2 0

k e y w o r d r o u t i n e

s / f i l e f i l

s / i n i t f p i n f p t r

f / f p l o c f p l o

1 0 r e mf / s c a n ( s c a n

1 1 :

1 2 r e mu / c i f c h r( 2 5 6 0 / 0 0 3 )

1 3 r e m u / u s f p( 2 6 2 0 / 0 0 6 )

1 4 r e mu / c i f n u m( 4 0 9 2 / 0 4 7 )

1 5 r e m d / f l p t r ( 4 4 7 0 / 0 5 4 )

1 6 :

1 7 r e m- = = - - = = = = - = = = = = - - =1 8 :

1 1 3. 4

6 1 0 . £

1 1 1 3

1 6 1 0

2 5 6 0

2 5 6 2

2 5 6 4

2 5 6 6

2 5 6 8Q C ~ 7 f \

2 5 7 2

2 6 2 02 6 2 2

2 6 2 4

2 6 2 6

2 6 2 8

2 6 3 0

2 6 3 2

2 6 3 4

i s c " f i l E i n i t f P "

l i n e s e r #

4 1 9 4 0 5 0

4 2 7 4 0 5 1

4 3 0 8 0 5 2

4 3 1 6 0 5 3

i s c " f p l o C s c a n ": . b y t e $ a 8

. w o r df i l - 1. i n f p t r — 1

, w o r d f p l o - 1 , s c a n - 1

c i f c h r c m p # $ 5 b

b c c c i d

c l c

b c c c i c 2

c i d c m p# $ 4 1i - - > i f ~ > o r t c

u s f p I d x # 0s t x $ 0 d

s t a $ 6 2

s t y $ 6 3

I d x # $ 9 0

s e c

j m p $ b c 4 9

4 0 9 2 c i f n u mc m p # " : "

4 0 9 4

4 0 9 6

4 0 9 8

4 1 0 0

4 1 0 24 1 0 4

4 1 9 4

4 1 9 6

4 1 9 8

4 2 0 0

4 2 0 2

4 2 0 4

b c c c i n 1

c l c

b c c c i n 2

c i n 1 c m p # " 0 "

c i n 2 r t s;

f i l c m p# $ 2 2

b n ef i 4

I d y f l p t r

I d a f l p t r +1

s t y $ 2 2

s t a $ 2 3

4 2 0 6f i l I d y # 0

4 2 0 8

4 2 1 0

4 2 1 2

4 2 1 4

4 2 1 64 2 1 8

4 2 2 0

j s r $ 7 3

b c c V S

c m p # 0

b e qf i 3

c m p# $ 2 2b e qf i 4

c m p # " , "

; t e s ta l p h a b e t i c

; a n di f s o r e t u r n

; c a r r ys e t

; c o n v e r t. a / . y

; t o f l o a t i n gp o i n t

; f r o mu n s i g n e d

; 1 6 - b i ti n t e g e r

; t e s tn u m e r i c

; a n di f s o r e t u r n

; c a r r ys e t

; t e s tl e a d i n gq u o t e

; n o

; m a k ep o i n t e rt o

; f i r s tf r e eb y t e

; s e tu p i n d e x

; g e ta c h a r a c t e r

; n u m e r i c so k

; t e s te n do f l i n e

; y e s

; t e s te m b e d d e dq t e; y e s

; t e s te n do f w o r d

T h eT r o n s o c t o f 2 3 J u l y 1 9 8 6 :V o l u m e7 , I s t u eO l

Page 28: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 28/88

O E

M N

O BF D

M B

A K

H H

J F

G B

G PF F

O N

P C

H L

E P

A F

M P

E D

F C

M MM l

A H

L AN F

I L

L E

G CL O

0 1

C L

O J

J K

G NP K

I K

O AD F

C D

M F

H OH M

L M

M L

I E

G OF J

O F

A F

N HG L

H CE E

F D

C G

P J

G GM J

H CE E

I N

N A

L EA l

O L

4 2 2 2

4 2 2 4

4 2 2 6

4 2 2 8f i 2

4 2 3 0

4 2 3 2

4 2 3 4

4 2 3 6

4 2 3 7

4 2 3 84 2 4 0

4 2 4 2

4 2 4 4f i 3

4 2 4 6

4 2 4 8

4 2 5 0

4 2 5 2

4 2 5 4

4 2 5 6

4 2 5 8

4 2 6 0

4 2 6 2

4 2 6 44 2 6 6

4 2 6 8

4 2 7 0f i 4

4 2 7 2 ;

4 2 7 4i n f p t r

4 2 7 6

4 2 7 8

4 2 8 0

4 2 8 2

4 2 8 4

4 2 8 6

4 2 8 8

4 2 9 0i f p 14 2 9 2i f p 2

4 2 9 4

4 2 9 6i f p 3

4 2 9 8

4 3 0 0i f p 4

4 3 0 2

4 3 0 4

4 3 0 6 ;

4 3 0 8f p l o

4 3 1 0

4 3 1 2

4 3 1 4 ;

4 3 1 6s c a n4 3 1 8

4 3 2 0

4 3 2 2

4 3 2 4

4 3 2 6

4 3 2 8

4 3 3 0

4 3 3 2

4 3 3 4

4 3 3 6

4 3 3 8

4 3 4 0

4 3 4 24 3 4 4

4 3 4 6

b e qf i 3

j s r c i f c h r

b c c f i 1

t a x

s t a ( $ 2 2 ) , y

i n c $ 2 2

b n e f i 1

i n c $ 2 3

I d a $ 2 3

c m p# $ c 0b n e f i 1

j m p $ a 4 3 5

p h a

d e y

d e c $ 2 3

t x a

o r a # $ 8 0

s t a ( $ 2 2 ) , y

i n c $ 2 3

p l a

c m p # " , "

b e qf i 1

I d y $ 2 2I d a $ 2 3

b n e i f p 4

j m p $ a f O 8

b e q i f p 2

j s r $ a d 8 a

j s r $ b 7 f 7

c m p# $ a 0

b c c i f p 1

b e q i f p 3

c m p# $ c 0

b c c i f p 4

j m p $ b 2 4 8I d y # 1

I d a # $ a 0

c p y # 0

b e q i f p 1

s t y f l p t r

s t a f l p t r +1

r t s

I d y f l p t r

I d a f l p t r + 1

j m p u s f p

j s r $ a e f 4j s r $ b 6 a 3

s t a t 3

s t a t 4

t x a

p h a

t y a

p h a

I d a t 3

j s r $ b 4 7 d

s t x $ 2 4

s t y $ 2 5

p l a

s t a $ 2 3p l a

s t a $ 2 2

; y e s

; t e s ta l p h a b e t i c

; n o

; s a v eb y t e

; s t o r e t ob u f f e r

; b u m pp o i n t e r

; t e s te n do f b u f f e r

; ( $ c 0 0 0 ); n o

; ' o u to f m e m o r y '

p u s h n e wb y t e

; p o i n t t op r e v i o u s

; b y t ei n b u f f e r

; g e to l db y t e

; s e th i g hb i t

; s t o r e t ob u f f e r

; f i xp o i n t e r

; p u l ln e wb y t e

; t e s tc o m m a

; y e s

; s t o r en e wp o i n t e r; v a l u et o f l p t r

; b r a n c ha l w a y s

; ' s y n t a xe r r o r '

; n op a r a m

; e v a lp a r a m

; c o n v e r tt o i n t e g e r

; t e s t> = $ a 0 0 0

; n o

; = i s s p e c i a lc a s e

; t e s t< $ c 0 0 0

; y e s

; ' i l l e g a lq u a n t i t y 1; d e f a u l ti n i t

; t o $ a 0 0 1

; t e s t= $ a 0 0 0

; y e s

; i n i tf l p t r

; g e tf l p t rv a l u e

; r e t u r na s f l .p t .

; e v a l s t r , t e s t ); g e td e s c r i p t o r

; s t o r el e n g t h

; p u s h d a t aa d d r e s s

; r e s e r v em e m o r y

; m a k e p t r t o

; r e s e r v e ds p a c e

; m a k ep t rt o

; a r g u m e n td a t a

A A

L B

N D

M CJ l

G GD B

B P

I L

H BA l

O GF N

K OM P

N N

B D

A O

F N

K CN CP N

O HJ P

O J

E C

I H

B H

F B

M PG MH F

H L

N A

E E

P LL F

D B

F M

J G

D P

J G

O PF A

D D

G GJ P

D l

J FC CE J

O OF E

O l

A L

M J

G AI B

B C

D F

K O

P A0 0

4 3 4 8

4 3 5 0

4 3 5 2

4 3 5 4s e a l

4 3 5 6s c a 2

4 3 5 8

4 3 6 0

4 3 6 2

4 3 6 4

4 3 6 64 3 6 8

4 3 7 0

4 3 7 2

4 3 7 4s c a 3

4 3 7 6

4 3 7 8

4 3 8 0s c a 4

4 3 8 2

4 3 8 4

4 3 8 6

4 3 8 8

4 3 9 0

4 3 9 24 3 9 4

4 3 9 6s c a 5

4 3 9 8

4 4 0 0

4 4 0 2s c a 6

4 4 0 4

4 4 0 6

4 4 0 8

4 4 1 0

4 4 1 2 s c a 7

4 4 1 4

4 4 1 6

4 4 1 84 4 2 0s c a 8

4 4 2 2

4 4 2 4

4 4 2 6

4 4 2 8

4 4 3 0

4 4 3 2

4 4 3 4s c a 9

4 4 3 6

4 4 3 8

4 4 4 0s e a l 0

4 4 4 2

4 4 4 44 4 4 6

4 4 4 8

4 4 5 0

4 4 5 2s e a l1

4 4 5 4

4 4 5 6s e a l2

4 4 5 8

4 4 6 0b m p 6 2

4 4 6 2

4 4 6 4

4 4 6 6b 6 2

4 4 6 8 ;

4 4 7 0f l p t r4 4 7 2 ;

d e c 1

I d y # $ f f

I d x # 0

d e c t 4

i n y

c p y t 3

b e qs c a 4

I d a ( $ 2 2 ) , y

j s r c i f n u m

b e s s c a 3a n d# $ 7 f

j s r c i f c h r

b c c s e a l

s t a ( $ 6 2 , x )

j s r b m p 6 2

b n e s c a 2

s t x t 5

s t x t 6

b i t t 4

b m i s c a 1 1

I d a # 1

s t a $ 6 2

I d a # $ a Os t a $ 6 3

i n c t 5

b n e s c a 6

i n c t 6

I d a $ 6 3

c m pf l p t r +1

b n e s c a 7

I d a $ 6 2

c m pf l p t r

t x a

t a y

b e s s e a l 2

d e yi n y

I d a ( $ 6 2 ) , y

c p y t 4

b e qs c a 9

c m p( $ 2 4 ) , y

b e qs c a 8

b n e s c a 1 0

s b c ( $ 2 4 ) , y

c m p# $ 8 0

b e q s c a 1 1

I d a ( $ 6 2 , x )

p h p

j s r b m p 6 2p i p

b p l s c a 1 0

b m i s c a 5

I d y t 5

I d a t 6

i n c 1

j m p$ b 3 9 1

i n c $ 6 2

b n e b 6 2

i n c $ 6 3

r t s

. w o r d$ a 0 0 1

; s w i t c ho u t b a s i c

; i n i ts p a r ei n d e x

; d e c ra r gb y t ec n t r

; t e s te n do f w o r d

; y e s

; g e ta r gb y t e

; t e s tn u m e r i c

; y e s; c o n vc a pt o l o w e r

; t e s ta l p h a b e t i c

; y e s

; a d dt o n e ws t r i n g

; b u m pn e ws t rp t r

; b r a n c ha l w a y s

; r e s e tw o r dc o u n t e r

; t e s ts r c hs t r n u l l

; y e s

; i n i tv o c a bp o i n t e r

; t o $ a 0 0 1

; b u m pw o r dc o u n t e r

; s e tc a r r yi f v o c a b

; p o i n t e ra t e n d

; o f b u f f e r

; . x = . y = 0

; e n do f b u f f e r

; s e tu p p r e - i n c r; b u m pp o i n t e r

; g e tv o c a bb y t e

; t e s t l a s ta r g b y t e

; y e s

; t e s ta r g= v o c a b

; y e s

; n o

; t e s t l a s tv o c a b

; b y t e

; y e s

; a d v a n c ev o c a b

; p o i n t e rt o

; e n do f w o r d +1

; t r yn e x tw o r d

; g e tw o r dc o u n t e r

; s w i t c hi n b a s i c

; r e t u r na s f l .p t .

; b u m pp t r a t$ 6 2 / 6 3

; r e t u r nz c l e a r

; p t rt o f i l eb u f r

T h eT r a n s a c t o r 2 4 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 29: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 29/88

L o n g e rL i f e

F o rY o u r6 4 a n d1 5 4 1

R o b e r tV . D a v i s

S a l i n a ,K S

W i t ht h e p r i c eo f C o m m o d o r e6 4 c o m p u t e r sa t o n e - f o u r t hw h a ti t w a s

w h e nt h em a c h i n e sf i r s th i tt h em a r k e t ,t h et e m p t a t i o nt o r e p l a c ea n o l d e r

6 4 w i t ho n eo f t h el a t e rm o d e l si s s t r o n g .B u tf o rt h o s eo f u s w i l l i n gt o b r e a k

o u t t h es c r e w d r i v e ra n ds o l d e r i n gi r o n ,t h e r e a r es o m em i n o ri m p r o v e

m e n t sp o s s i b l et o p r o l o n gt h el i f eo f o u rc o m p u t e r sa n dd i s kd r i v e s .N o t e

t h a ta l l t h e f o l l o w i n g i n s t r u c t i o n sw i l li n v a l i d a t ey o u rw a r r a n t y ,i f a n y ,a n d

a n y o n ew h oi s n o tc o m f o r t a b l ew i t ht h e i d e ao f d i g g i n gi n t oe l e c t r o n i c

e q u i p m e n ts h o u l d g ot o t h en e x ta r t i c l e .

T h ef i r s tm o d i f i c a t i o nt o t h eC o m m o d o r e6 4 i s t o i m p r o v ei t sv i d e oq u a l i t y

. . .t h i so n l ya p p l i e st o t h o s eo f u s w h oh a v et h ee a r l i e rm o d e lC - 6 4 sw i t ha

f i v ep i nv i d e o o u t p u tj a c k .T h ea d d i t i o no f s o m eo f t h el u m i n a n c es i g n a lt o

t h ec o m p o s i t ec o l o u rv i d e ow i l lu s u a l l ys h a r p e nt h ep i c t u r en o t i c e a b l yo n a

c o l o u r m o n i t o r .N o t eF i g u r e1 , t h ei l l u s t r a t i o no f t h e t o p c e n t r eo f t h eC - 6 4

m a i np r i n t e dc i r c u i tb o a r d .

B e t w e e nt h ef i v ep i nv i d e oc o n n e c t o ra n dt h ea l u m i n u mb o xc o n t a i n i n g

t h eT Vm o d u l a t o rw i l lb e a r e s i s t o r( u s u a l l y4 7 0o h m s ) .A ss h o w ni n F i g u r e

1 , t h i sr e s i s t o rw i l lc o n n e c tt h e s o l d e rp a dl a b e l l e dn u m b e rt w ot o t h e

g r o u n da t t h e e d g eo f t h eb o a r d ,p a s s i n g o v e r' p o i n tI 1 . U s i n ga s m a l l

s o l d e r i n gi r o n( 2 5W a t t s ) ,u n d ot h eg r o u n de n do f t h er e s i s t o r .T h e ns o l d e r

a 1 5 0 - o h mq u a r t e r - w a t tr e s i s t o rt o p o i n t o n e .A t t a c ht h eo t h e re n do f t h a t

1 5 0 - o h mr e s i s t o r t ot h e s t i l l - c o n n e c t e de n do f t h eo r i g i n a lr e s i s t o ra t p o i n t

t w o .T h e n ,p r o b a b l y u s i n ga d d i t i o n a l w i r e , r e - a t t a c h t h eo t h e re n do f t h e

4 7 0 - o h mr e s i s t o rt o t h eg r o u n d ,a l lt h ew h i l ea v o i d i n gs o l d e rb r i d g e s ,b a r e

w i r e st o u c h i n ge a c ho t h e r ,a n ds o o n .

B yt h ew a y ,i f y o ua r eu s i n ga m o n o c h r o m ev i d e om o n i t o ro ny o u rC - 6 4 ,a

b e t t e rd i s p l a yr e s u l t sf r o mt a k i n g t h el u m i n a n c eo u t p u ti n s t e a do f t h e

n o r m a lv i d e o o u t p u t c o n t a i n i n g c o l o u r i n f o r m a t i o nt o y o u rv i d e od i s p l a y .

Y o uw i l lh a v et o m o v ea w i r ei n t h e f i v e - p i nD I Nc o n n e c t o r f r o mp i nf o u r

t o p i n o n e .A g a i n , b o t ho f t h e s e h i n t s a r ea p p r o p r i a t et o t h o s eo l d e rC - 6 4 s

w h i c hh a v ea f i v e - p i nv i d e o c o n n e c t o r .

S o m eC - 6 4 sc a m ef r o mt h ef a c t o r yw i t h o u ta h e a t s i n k a t t a c h e dt o t h ef i v e

v o l tr e g u l a t o rc h i pw h i c hi s m o u n t e dn e x tt o t h e j o y s t i c k p o r t s .T h a t

r e g u l a t o rs u p p l i e sp o w e rt o t h ev i d e oc i r c u i t r ya n dr u n sr a t h e rh o t .T h e

a d d i t i o no f a h e a ts i n k ,a l o n g w i t hh e a tt r a n s f e rc o m p o u n dw i l lr e a l l yh e l p

t h e r e g u l a t o rd o i t sj o b .L o o kn e x tt o t h ej o y s t i c kp o r t so n t h er i g h ts i d eo f

t h eb o a r df o ra s m a l ld e v i c eo n t h r e el e g ss o l d e r e dc l o s et o t h ec o r n e ro f t h e

v i d e oa n ds y s t e ms h i e l d b o x .I f a f l a tb l a c ks l o t t e dh u n ko f m e t a l a b o u to n e

i n c hs q u a r ei s b o l t e d o rr i v e t e dt o t h er e g u l a t o r ,y o ua r eO K .I f n o t ,t h e

r e g u l a t o rw i l lb e s t i c k i n gu p w i t ha h o l et h r o u g hi t st o pj u s tb e g g i n gy o ut o

h e l pi t c o o ld o w n .T h ep a r t sl i s ts u g g e s t s a p o s s i b l e h e a t s i n kw h i c hw i l l

p r o b a b l yr e q u i r es o m eb e n d i n gb e f o r ei t w i l lp r o p e r l yf i t .

A c o u p l eo f w a y st o k e e py o u r1 5 4 1( o r2 0 3 1 L P )d i s k d r i v e c o o l e r a r ei n

o r d e rn o w .T h eh a r dw o r ki n v o l v e st a k i n gt h ed r i v ec o m p l e t e l ya p a r ta n d

a d d i n gh e a ts i n kg r e a s et o h e l pt r a n s f e rh e a tf r o mt h eb i gb l a c k h e a t s i n ka t

t h eb a c ko f t h e d r i v et o t h ef r a m eo f t h eu n i t .1 h a v ef o u n dt h i sh e l p f u li n

b o t ho l da n dn e w1 5 4 1d r i v e s ,t o h e l pg e t t h eh e a tf r o mt h ed r i v ea n d

t w e l v ev o l tr e g u l a t o r ss p r e a da r o u n di n s i d et h eu n i t ,i n s t e a do f c o n c e n

t r a t e dn e a rt h e6 5 0 2a n d6 5 2 2c h i p s .

N o t ea g a i n ,y o uw i l lh a v et o r e m o v et h ep l a s t i ct o po f t h ed r i v e ,t h eR F

s h i e l do n t o po f t h em a i nP Cb o a r d ,a n dt h e nr e m o v et h eP Cb o a r di t s e l ft o

g e t t o t h e p a r t o ft h e h e a t s i n kw h e r e y o uc a na p p l yt h e h e a tt r a n s f e r

c o m p o u n d .T i n si s n o tf o rt h ef a i n to f h e a r t .K e e pp a p e rt o w e l sh a n d yt o

c l e a nu p a n yh e a t s i n k g r e a s eo t h e rt h a nt h a to n t h ep r o p e rs u r f a c e s .

F i n a l l y ,a f o o to r s o o f 5 / 1 6i n c hw o o d e nd o w e lr o dc u ti n t ot w ot o t h r e e

i n c hl e n g t h sw i t hf o u rm a t c h i n gr u b b e rf e e tc a nb e ( w i t hs o m es a n d i n g )

f o r c e di n t ot h eh o l e so n t h eb o t t o mo f t h e1 5 4 1w h e r et h es c r e w sh o l d i n g

t h et o po f t h ec a s er e s i d e .( E n d so fp e n c i l sw o r kg r e a tf o rt h i s !- E d . )T h e s e

l e g sw i l lr a i s et h e d r i v ea n da l l o wi m p r o v e da i r c i r c u l a t i o nt h r o u g hi t ,

p r o l o n g i n gt h el i f eo f t h e e l e c t r o n i ci n t e r n a l s .

T h e r e y o u h a v es o m ew a y so f k e e p i n gy o u rs y s t e mi n g o o dh e a l t ha t a

m i n i m u mo f e x p e n s e .G o o dl u c k !

P a r t sl i s t :

( R a d i oS h a c kP a r tn u m b e r sl i s t e d )

1 5 0o h m1 / 4w a t tr e s i s t o r * 2 7 1 - 1 3 1 2

H e a t s i n k * 2 7 6 - 1 3 6 3

H e a t s i n kg r e a s e * 2 7 6 - 1 3 7 2

5 / 1 6w o o d e nd o w e lr o d( 4 t w o - i n c hl e n g t h s )

5 / 1 6i n c hr u b b e rf e e t f o re n d so f d o w e l

( F o u rb r a n dn e wp e n c i l s , c u tt o t h ep r o p e rl e n g t h ,m a yb e u s e dt o r e p l a c e

t h ed o w e l sa n dr u b b e rf e e t )

F I U EP I N

V I D E OC O N N E C T O R

/

T O P C E N T E R C O M M O D O R E

V

1

2

6 4 T UOUTPUTMODULEF i g u r e1

* - —

o —

J O V S T I C KP O R T

T W O

1

o

R I G H T S I D E

C O M M O D O R E 6 4

. . .

J O V S T I C KP O R T

O N E

F i g u r e2

T h eT r a n s a c t o r 2 5 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 30: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 30/88

M a t r i xM a n i p u l a t o r R i c h a r dR i c h m o n

S p r i n g f i e l d ,O h i o

M a c h i n el a n g u a g ep r o g r a mt o s e to n ea r r a ye q u a lt o a n o t h e r .

B e c a u s eo p e r a t i o n si n B A S I Cm u s tb e h a n d l e dt h r o u g ht h e

i n t e r p r e t e r ,s o m et a s k sc a nb e v e r ys l o w .F o re x a m p l e ,t h e

f o l l o w i n gB A S I Cl i n ec a nt a k ea v e r yl o n gt i m e :

f o ri = 1 t o n : a ( n )= b ( n ) : n e x t n

M a n yo p e r a t i n gs y s t e m sf o r l a r g e rc o m p u t e r s h a v em a c h i n e

l a n g u a g e ( M L )r o u t i n e st h a ta l l o w m a t r i c e so r a r r a y s ( a r r a y s a r e

j u s to n e - d i m e n s i o nm a t r i c e s )t o b e m a n i p u l a t e dl i k en o n -

d i m e n s i o n e dv a r i a b l e s .I n s u c ha s y s t e m ,t h ea b o v ee x a m p l e

c o u l db e w r i t t e nl i k e A = B . F o rl a r g e ,m u l t i - d i m e n s i o n a l

a r r a y s ,o r f o rr e p e t i t i v eo p e r a t i o n s ,t h et i m es a v e dw i t hs u c ha

u t i l i t yc o u l db e v e r ys i g n i f i c a n t .

W h a tT h e P r o g r a mD o e s

T op e r f o r mt h e o p e r a t i o ni n t h ea b o v ee x a m p l e ,u s eS Y S5 1 8 0 0

" A , B "w i t h t h ea r r a yn a m e si n q u o t e s( t oa v o i dc o n f l i c t sw i t h

o t h e rM Lu t i l i t i e st h a ts t a r ta t 4 9 1 5 2 ,t h i sp r o g r a mi s m o v e du p

t o j u s tb e l o ww h e r et h eB A S I Cw e d g ew o u l db e l o a d e d ) .A n y

p r o p e r l yd i m e n s i o n e da r r a y sm a yb e u s e d .T h eo n l yr e s t r i c

t i o n sa r e t h a tb o t ha r r a y sm u s tb e o f t h e s a m et y p ea n d

d i m e n s i o n e dt h es a m es i z e .T h eu t i l i t yw i l ln o tc h e c kf o rt h i s ,

o n l yt h a tb o t hn a m e sa r ei n t h ea r r a yt a b l e .U n l i k eB A S I C ,t h e

s u b r o u t i n ew i l ln o t a u t o m a t i c a l l yd i m e n s i o n a na r r a y .I n s t e a d ,

a n e r r o rm e s s a g ei s p r i n t e da n dt h ep r o g r a mh a l t si f b o t ha r r a y s

h a v en o tb e e nd i m e n s i o n e d .

A s s t a t e de a r l i e r ,a n y t y p eo f a r r a yc a n b e u s e da n d t h e

s u b r o u t i n ed o e sr e c o g n i z e t h ed i f f e r e n c eb e t w e e nt y p e s .F o r

e x a m p l e ,A , A% a n dA $w o u l db e t r e a t e d a sd i f f e r e n ta r r a y sj u s t

l i k e i nB A S I C .W h e nt h es u b r o u t i n er e t u r n st o B A S I C ,e a c h

e l e m e n to f t h ef i r s ta r r a yw i l lb e t h es a m ea s t h ec o r r e s p o n d i n g

e l e m e n ti n t h e s e c o n da r r a y .T h es e c o n da r r a yw i l ln o t b e

a f f e c t e d .N o t e ,t h eo r d e ri n w h i c ht h ea r r a y s a r ed i m e n s i o n e di s

n o t i m p o r t a n t ,o n l yt h a tt h e a r r a y s a r ed i m e n s i o n e db e f o r e

c a l l i n gt h er o u t i n e .A l s oj u s tt o a v o i dp o s s i b l ec o n f u s i o n ,I h a v e

b e e nu s i n gA a n dB a s m ye x a m p l e sb u t t h e r ea r en o r e s t r i c

t i o n so n t h e n a m e st h a ty o uc a nu s e ,e x c e p tf o r t h e n o r m a l

B A S I Cr e s t r i c t i o n s .

H o wT h e P r o g r a mW o r k s

F o rt h o s ei n t e r e s t e di n A S S E M B L Yp r o g r a m m i n g ,t h e c o m

m e n t e dl i s t i n g i nP r o g r a m1 s h o u l db e u s e f u l .T h el i s t i n gi s

c o m p a t i b l ew i t ht h eI E AA s s e m b l e r ,b u tc a nb e e a s i l ya d a p t e d

t o o t h e rA s s e m b l e r s .I n g e n e r a l ,t h e f o l l o w i n gt a s k s a r ep e r

f o r m e d ;R O Mr o u t i n e sa r eu s e dt o f i n dt h el o c a t i o na n dl e n g t h

o f t h es t r i n gi n t h ec a l l i n gS Y Sc o m m a n d .T h et w oa r r a yn a m e s

a r e t h e ns e p a r a t e da n d t h e a p p r o p r i a t et y p ed e s i g n a t o ri s

a d d e d .I n B A S I C ,a l l a r r a y s a r e s t o r e di n a b l o c ko f m e m o r y .

T h es t a r t i n ga d d r e s so f t h i sb l o c ki s s t o r e di n l o c a t i o n s $ 3 0 , $

T h i sa d d r e s si s l o a d e da n dt h e a r r a ym e m o r ya r e ai s s c a n n e dt o

f i n dt h es t a r t i n ga d d r e s so f t h ef i r s ta r r a yp a s s e d f r o m B A

S o m ej u g g l i n go f t h ea r r a yn a m e st h e nt a k e s p l a c es o t h a tt h e

s a m ep o r t i o no f c o d ec a nb e u s e dt o f i n dt h e a d d r e s sf o rt h e

s e c o n d n a m e .

T h e l e n g t ho f t h e s e c o n da r r a y( a c t u a l l yt h e o f f s e t t ot h e

b e g i n n i n go f t h en e x ta r r a yi n t h es t o r a g ea r e a )i s t h e nf o u n d .

T h es e c o n da r r a yi s t h e ns t o r e db y t eb y b y t ei n t h ef i r s ta r r a y .

T h i s s i m p l eb y t ef o rb y t eo p e r a t i o ni s w h yt h er o u t i n ei s a b l et o

h a n d l ea n y t y p eo f v a r i a b l e .I t i s a l s ot h e r e a s o nt h a tt h e

p r o g r a m m e rm u s tu s e s i m i l a ra r r a y s .I f t h e f i r s ta r r a yw a s

s h o r t e r t h e t h es e c o n d ,t h ep r o g r a m w o u l dw r i t ep a s tt h ee n do f

t h ef i r s ta r r a yw i t hp o s s i b l yf a t a lr e s u l t s !

T y p i n gI t I n

P r o g r a m2 i s a M Ll o a d e rp r o g r a mf o rt h er o u t i n e .A su s u a l ,f i r s t

t y p ei t i n a n d s a v ei t . W i t ha d i s ki n y o u rd r i v e ,r u n t h e

p r o g r a m .W h e nt h ep r o g r a mi s f i n i s h e d ,y o uw i l lh a v ea f i l eo n

y o u rd i s k ;" M A T R I X M L " .T o u s et h e r o u t i n et y p eL O A D"

M A T R I X M L " , 8 , 1a n d( R E T U R N ) .T h e nt y p eN E W , ( R E T U

a n dl o a dy o u rB A S I Cp r o g r a m .

T h eT r a n s a c t o r 2 6 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 31: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 31/88

T o i l l u s t r a t et h e s p e e do f t h i s r o u t i n et y p ei n a n d r u n t h e

f o l l o w i n gp r o g r a m :

M a t r i x M a n i p u l a t o rB A S I CL o a d e r

O K

D F

B G

G l

I H

C F

A A

J J

B P

A L

D E

P J

K L

G A

1 0 0 d i m b ( 1 0 0 0 ) , d ( 1 0 0 0 )

1 1 0p r i n t "b e g i n n i n gb a s i cl o o p "

1 2 0 t 1 = t i

1 3 0f o ri = 0 t o 1 0 0 0 : b ( i )= d ( i ) : n e x t

1 4 0 t 2= t i

1 5 0p r i n t "e n do f b a s i cl o o p

1 6 0p r i n t "b e g i n n i n gm l l o o p

1 7 0 1 3 — t !

1 8 0 s y s 5 1 8 0 0" b , d "

1 9 0 t 4 = t i

2 0 0p r i n t "e n do f m l l o o p

2 1 0p r i n t "b a s i c= " ; t 2 - t 1 ; "j i f f i e s

2 2 0p r i n t" m l= " ; t 4 - t 3 ;" j i f f i e s

2 3 0s t o p

T h i sp r o g r a mj u s ts e t sD e q u a lt o C . T h ea c t u a lv a l u e si n t h e

a r r a ya r e o f n o i n t e r e s ti n t h i sc a s eb e c a u s ew e a r e o n l y

i n t e r e s t e di n t h e r e l a t i v es p e e d so f t h e t w om e t h o d s .O n m y

m a c h i n e ,B A S I Ct a k e s4 2 5j i f f i e sa n dM Lo n l y2 2 .T h a tm e a n s

t h a tt h eM Lr o u t i n ei s 2 0 t i m e sf a s t e rt h a nB A S I C .I f t h ea r r a y s

a r e c h a n g e dt o i n t e g e r( C % , D % )t h e t i m e sa r e 4 2 9a n d9 ,

m a k i n gM La l m o s t5 0 t i m e sf a s t e r !D i f f e r e n ts i z ea r r a y sw o u l d

y i e l d d i f f e r e n tt i m es a v i n g s .F o ra l lb u tt h ev e r ys h o r t e s ta r r a y s ,

t h eM Lr o u t i n es h o u l dp r o v i d ea s i g n i f i c a n t l yf a s t e ro p e r a t i o n .

F u t u r eA d d i t i o n s

A t p r e s e n t ,I a mw o r k i n gt o e x p a n dt h i sr o u t i n ei n t oa n e n t i r e

m a t r i xo p e r a t i o n s p a c k a g e .S o m eo f t h eo t h e r o p e r a t i o n st h a tI

a mw o r k i n go n i n c l u d e :

1 . I n i t i a l i z et h e a r r a y- s e t t h e e n t i r ea r r a ye q u a lt o a u s e r

d e f i n e dv a l u e .

2 . F o u rf u n c t i o nm a t ho p e r a t i o n s- a d d ,s u b t r a c t ,m u l t i p l y o r

d i v i d ea n a r r a yb y a v a r i a b l e o rb y a n o t h e ra r r a y .

3 . F i n dm a x i m u mo r m i n i m u mv a l u e so f a n a r r a y .

S u c ha p a c k a g ew o u l db e u s e f u li n g r a p h i c so r o t h e rp r o g r a m s

w h e r el a r g ea r r a y so f d a t am u s tb e w o r k e dw i t h .T h e s ea d d i

t i o n a lo p e r a t i o n sw i l li n c l u d e di n a s i n g l ep r o g r a ma n db e

r e a c h e d t h r o u g hd i f f e r e n te n t r yp o i n t s .

G A

B E

H H

K O

H F

E F

N C

F B

P O

E A

A E

A L

D J

A L

L J

L B

B H

L O

G K

N l

F C

J O

D A

P A

O B

O F

I C

L D

K D

M GD G

B L

I L

L F

1 0

F l

D K

J F

O P

A C

F L

N G

F N

E P

M MO OG N

P C

D F

I P

1 0

J C

A A

P B

C B

D H

G L

3 0 h i = i n t ( 5 1 8 0 0 / 2 5 6 ) : l o= 5 1 8 0 0 - h i * 2 5 6

4 0 o p e n1 , 8 , 1 , "0 : m a t r i x m l "

5 0 p r i n t # 1, c h r $ ( l o ) c h r $ ( h i ) ;

6 0 f o ri = 5 1 8 0 0t o 5 2 2 0 3

7 0 r e a dd a : p r i n t # 1, c h r $ ( d a ) ;

8 0 n e x t

9 0 c l o s e1

1 0 0d a t a 7 6 ,1 1 7 , 2 0 2 ,1 2 8 , 4 4 ,

8 2 , 8 2 , 6 5 , 8 9 , 3 2 ,

3 2 , 6 8 , 7 3 ,7 7 , 6 9 ,

7 9 , 7 8 , 6 9 , 6 8 ,0 ,

1 1 0d a t a

1 2 0d a t a

1 3 0d a t a

1 4 0d a t a

6 5

8 4

7 3

3 2 , 1 6 3 ,1 8 2 , 1 3 4 , 2 5 1

1 5 0d a t a1 6 0 , 0 , 1 4 0 , 1 7 3 ,2 ,

1 6 0d a t a1 7 7 ,2 5 1 , 1 4 1 , 1 7 2 ,2 ,

1 7 0d a t a2 5 1 , 2 0 1 ,4 7 , 1 4 4 ,6 ,

1 8 0d a t a 7 6 , 1 4 1 , 2 0 2 , 2 0 1 ,4 4 ,

1 9 0d a t a 3 7 , 2 0 8 ,8 , 1 7 3 ,1 7 2 ,

2 0 0d a t a1 4 1 , 1 7 2 ,2 , 1 7 3 , 1 7 3 ,

2 1 0d a t a1 4 1 , 1 7 3 ,2 , 2 0 0 , 2 0 2 ,

2 2 0d a t a 4 7 , 1 4 4 , 2 4 8 , 1 4 1 , 1 7 0 ,

2 3 0d a t a2 4 0 , 3 2 , 1 7 7 , 2 5 1 , 2 0 1 ,

2 4 0d a t a1 4 1 ,1 7 1 , 2 , 7 6 , 1 9 0 ,

2 5 0d a t a2 0 8 , 8 , 1 7 3 , 1 7 0 ,2 ,

2 6 0d a t a1 7 0 , 2 , 1 7 3 , 1 7 1 ,

2 7 0d a t a1 7 1 , 2 , 1 6 0 ,

2 8 0d a t a 9 1 , 2 0 2 ,1 3 6 ,

2 9 0d a t a 3 , 1 5 3 , 1 3 9 ,

3 0 0d a t a1 6 7 , 2 , 1 6 5 ,

2 ,

3 , 1 8 5 ,

1 6 , 2 4 7 ,

0 , 1 3 6 ,

4 8 , 1 3 3 ,

2 , 1 7 7 ,3 1 0d a t a1 3 3 ,2 5 1 , 1 6 0 ,

3 2 0d a t a2 0 0 ,1 7 7 ,2 5 1 ,1 3 3 , 2 5 4 ,

3 3 0d a t a2 5 1 , 2 0 5 ,1 7 2 , 2 , 2 0 8 ,

3 4 0d a t a2 5 1 , 2 0 5 ,1 7 3 , 2 , 2 4 0 ,

3 5 0d a t a 2 4 , 1 0 1 , 2 5 4 , 1 3 3 , 2 5 2 ,

3 6 0d a t a1 0 1 ,2 5 3 ,1 3 3 , 2 5 1 , 1 4 4 ,

3 7 0d a t a1 6 5 , 5 0 , 1 9 7 , 2 5 2 , 2 0 8 ,

3 8 0d a t a1 9 7 ,2 5 1 , 2 4 0 ,3 , 7 6

3 9 0d a t a 9 5 , 1 6 0 , 2 0 2 , 1 3 4 , 2 5 1

4 0 0d a t a 0 , 1 7 7 , 2 5 1

4 1 0d a t a2 0 0 , 7 6

4 2 0d a t a 2 6 , 7 6

4 3 0d a t a 2 , 1 6 5

4 4 0d a t a2 0 5 ,1 6 7

4 5 0d a t a1 4 1 ,1 7 2

4 6 0d a t a 2 , 1 7 3

4 7 0d a t a 2 , 1 3 34 8 0d a t a2 0 2 ,1 7 3

4 9 0d a t a 2 , 1 3 3

5 0 0d a t a2 5 2 ,1 3 6

5 1 0d a t a 2 4 , 1 0 1

5 2 0d a t a1 0 1 ,2 5 1

5 3 0d a t a1 6 9

5 4 0d a t a2 3 0

5 5 0d a t a2 0 8

5 6 0d a t a1 4 5

2 4 0 ,

2 0 3 ,

7 ,

3 2 ,7 3

5 5 , 1 6 4 ,1 6 5

2 5 2 ,1 4 1 ,1 6 9

2 4 0 , 2 8

1 7 3 , 1 7 1

2 , 1 3 3

1 3 9 , 2 3 8 , 1 6 71 6 9 , 2 , 1 3 3

1 6 0 , 3

1 4 1 ,1 3 3

2 5 2 , 1 3 3 , 2 5 4

1 3 3 , 2 5 3 , 2 0 8

2 .

2 ,

1 6 9 ,

1 4 1 ,

1 7 7 ,

4 , 1 0 1 , 1 4 1 ,1 3 3 ,

1 4 2 , 1 6 9 ,4 , 1 0 1 ,

2 , 2 3 0 ,1 4 0 ,1 6 0 ,

1 3 9 , 2 3 0 ,1 4 1 , 2 0 8 ,

5 7 0d a t a2 3 0 ,1 3 9 ,2 0 8 , 2 , 2 3 0 ,

5 8 0d a t a 2 2 8 ,2 5 3 , 2 0 8 , 2 3 4 ,1 6 6 ,

5 9 0d a t a2 0 8 , 2 2 8 , 1 6 0 ,3 , 1 8 5 ,

6 0 0d a t a 1 6 , 2 5 0 ,9 6 , 0

1 4 4 , 2 1 4 ,

7 8 , 7 9 ,

7 8 , 8 3 ,

3 2 , 1 5 8 ,1 7 3

1 3 2 , 2 5 2 ,1 7 0

1 4 0 , 1 7 1 ,2

2 0 0 , 2 0 2 , 1 7 7

1 4 1 , 1 7 3 ,2

2 4 0 , 2 0 , 2 0 1

2 , 9 , 1 2 8

2 , 9 , 1 2 8

1 7 7 , 2 5 1 , 2 0 1

2 , 2 0 0 ,2 0 2

4 7 , 1 4 4 , 6

2 0 2 , 2 0 1 ,3 7

9 , 1 2 8 ,1 4 1

9 , 1 2 8 ,1 4 1

1 3 9 , 0 , 1 5 3

1 6 9 , 0 , 1 6 0

2 0 8 . 2 5 0 ,1 4 1

2 5 2 , 1 6 5 ,4 7

2 5 1 ,1 3 3 , 2 5 3

1 6 0 , 0 , 1 7 7

8 , 2 0 0 ,1 7 7

6 2 , 1 6 5 , 2 5 2

1 6 5 . 2 5 1 ,2 4

2 , 2 3 0 ,2 5 2

6 , 1 6 5 ,4 9

2 , 2 0 3 ,1 6 2

1 3 2 . 2 5 2 , 1 6 0

3 2 , 2 1 0 , 2 5 5

2 2 6 , 2 0 3 , 1 6 2

2 5 1 ,1 4 1 ,1 6 8

2 , 1 6 9 , 1

1 7 3 , 1 7 0 ,2

2 , 1 4 1 ,1 7 3

1 4 0 ,1 7 3 ,1 6 8

2 , 7 6 , 2 5 01 4 2 , 1 7 3 ,1 6 8

1 7 7 , 1 4 1 , 1 3 3

2 5 1 ,1 6 5 ,1 4 2

1 6 5 , 1 4 1 ,2 4

2 , 2 3 0 ,2 5 4

1 4 1 , 2 0 8 ,2

1 3 9 , 1 3 3 ,1 3 9

0 , 1 7 7 , 1 4 1

2 , 2 3 0 ,1 4 2

1 4 0 ,1 6 6 ,1 4 1

1 4 2 , 2 2 8 , 2 5 4

9 1 , 2 0 2 ,1 3 6

T h eT r a n s a c t o r 2 7 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 32: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 32/88

M a t r i xM a n i p u l a t o r S o u r c eC o d e

1 0 0; m lr o u t i n et o s e ta = b

1 1 0; w h e r ea , ba r ea r r a y s

1 2 0; w r i t t e nb y

1 3 0; r i c h a r dr i c h m o n d

1 4 0; 3 0 8r o s e w o o da v e1 5 0- S p r i n g f i e l d ,O h i o4 5 5 0 6

1 6 0; ( 5 1 3 ) 3 2 2 - 7 6 5 0

1 7 0• = $ c a 5 81 R f l i m n o t o r t

1 O U

1 9 0 z p a g e

2 0 0♦

2 1 0t w o

2 2 0 o n e

2 3 0c h r o u t

2 4 0 w o r d

2 5 0

2 6 02 7 0s t a r t

2 8 02 9 0

3 0 0

3 1 0

3 2 0

3 3 0

3 4 0

3 5 03 6 0f i r s t

3 7 0

3 8 0

3 9 0a b

4 0 0

4 1 04 2 0

4 3 0

4 4 0

4 5 04 6 04 7 0s k i p

4 8 0

I I 1 ■ [ _ / O l C l lL

• + 4

= $ 0 2 a a

$ 0 2 a c

= $ f f d 2

; s y s 5 1 8 0 0" a , b "

. a s c' a r r a yn o td i m e n s i o n e d "

. b y t e O

j s r $ a d 9 e

j s r $ b 6 a 3

s t x $ f b

s t y $ f c

t a x

I d y # $ 0 0

s t y o n e +$ 0 1

s t y t w o +$ 0 1

I d a ( $ f b ) , y

s t a o n e

n y

d e xI d a ( $ f b ) , y

s t a o n e +$ 0 1

b c c s k i p

s t a o n e +$ 0 1

j m p a b

b e q s e c o n d

; u s er o mr o u t i n e

; t og e ts t r i n g

; a d d r e s s

; l e n g t h

; f i r s tc h a r a c t e r

; 1 s t a r r a y

; 2 n d c h a r

; c o m m a

4 9 0; c h e c kf o r' $ , % 'i n l a s tc h a r a c t e r

5 0 0; n a m e .b i t7 s e ti n b o t hb y t e si f

5 1 0; a r r a yi s i n t e g e r

5 2 0; b i t 7i n 2 n db y t es e ti f

5 3 0; a r r a yi s s t r i n g

5 4 0

5 5 05 6 0

5 7 0

5 8 0

5 9 06 0 0s k i p i

6 1 0

6 2 0

6 3 06 4 0 s e c o n d

b e q s e c o n d

c m p# $ 2 5

b n e s k i p i

I d a o n e

o r a # $ 8 0

s t a o n et

I d a o n e +$ 0 1

o r a # $ 8 0

s t a o n e +$ 0 1= *

6 5 0; r e p e a tf o rs e c o n d a r g u m e n t

6 6 0

6 7 0

6 8 0

6 9 0

7 0 0

7 1 0

7 2 0s e c 2

7 3 0

7 4 0

7 5 0

7 6 0

7 7 0

7 8 0

7 9 0

8 0 08 1 0a c

8 2 0

8 3 08 4 0

8 5 0

8 6 0

8 7 0a d

8 8 0

8 9 0

9 0 0

9 1 0d o n e

i n y

d e x

I d a ( $ f b ) , y

c m p# $ 2 f

b c c s e c o n d

s t a t w o,

i n y

d e x

b e q d o n e

I d a ( $ f b ) , y

c m p# $ 2 f

b c c a c

s t a t w o +$ 0 1

j m p s e c 2•

c m p# $ 2 5b n e a d

I d a t w o

o r a # $ 8 0

s t a t w o

*

I d a t w o +$ 0 1

o r a # $ 8 0

s t a t w o +$ 0 1= .

; c h e c kf o r

; s t r i n ge n d

; c h e c k f o r

; a l p h a n u m

9 2 0; d o n ew i t hn a m e s ,n o ws a v ep a r t

9 3 0; o fz e r op a g e8 b - 8 e

9 4 09 5 0s z p a g e

9 6 09 7 0

9 8 0

9 9 01 0 0 0

1 0 1 01 0 2 0c l e a r

1 0 3 0

I d y # $ 0 3= *

I d a $ 0 0 8 b , y

s t a z p a g e . y

d e y

b p l s z p a g eI d a # $ 0 0

I d y # $ 0 3

s t a $ 0 0 8 b , y

1 0 4 0 d e y1 0 5 0 b n ec l e a r

1 0 6 0 s t a $ 0 2 a 7 ; i n i t i a lc n t r

1 0 7 0 d o n e 1= •

1 0 8 0; s t o r ea d d r e s so f b e g i n n i n g

1 0 9 0; o fa r r a ys t o r a g ei n f c . f b

1 1 0 0 I d a $ 3 01 1 1 0 s t a $ f c

1 1 2 0 I d a $ 2 f

1 1 3 0 s t a $ f b

1 1 4 0d O - •

1 1 5 0 I d y # $ 0 21 1 6 0 I d a ( $ f b ) , y

1 1 7 0 s t a $ f d ; o f f s e t l o

1 1 8 0 i n y

1 1 9 0 I d a ( S f b ) . y

1 2 0 0 s t a $ f e ; o f f s e t h i

1 2 1 0 I d y # $ 0 01 2 2 0; l o a d1 s t c h a r a c t e ro f a r r a y

1 2 3 0; a n dc o m p a r ew i t h1 s t o f

1 2 4 0; a r g u m e n t

1 2 5 0 I d a ( $ f b ) , y

1 2 6 0 c m po n e

1 2 7 0 b n e d 21 2 8 0 i n y

1 2 9 0 I d a ( $ f b ) , y

1 3 0 0 c m po n e +$ 0 11 3 1 0 b e q b 3 ; j m p w h e n

1 3 2 0; a r r a yf o u n d

1 3 3 0 d 2

1 3 4 0 I d a $ f c

1 3 5 0 c l c

1 3 6 0; a d dh i b y t eo f f s e t t oa d d r e s s

1 3 7 0 a d c$ f e1 3 8 0 s t a $ f c

1 3 9 0 I d a $ f b

1 4 0 0 c l c

1 4 1 0; a d dl o b y t eo f f s e tt o a d d r e s s

1 4 2 0 a d c$ f d

1 4 3 0 s t a $ f b

1 4 4 0 b c c d 4

1 4 5 0 i n c $ f c

1 4 6 0 d 4 - •

1 4 7 0; c h e c ki f e n do f a r r a y

1 4 8 0; s t o r a g eh a sb e e nr e a c h e d

1 4 9 0 I d a $ 3 21 5 0 0 c m p$ f c

1 5 1 0 b n e d 3

1 5 2 0 I d a $ 3 1

1 5 3 0 c m p$ f b

1 5 4 0 b e q o u t

1 5 5 0; b r a n c ht o e r r o r r o u t i n e

1 5 6 0; i f e n do f a r r a ys t o r a g e

1 5 7 0 d 3

1 5 8 0 j m p d O

1 5 9 0; j m pb a c ka n dc h e c kn e x ta r r a y

1 6 0 0o u t = • b e g i n n i n go f e r r o r r o u t i n e

1 6 1 0; p r i n te r r o rm e s s a g e

1 6 2 0 I d x# > w o r d. I d y# s w o r d

1 6 3 0 s t x $ f b

1 6 4 0 s t y $ f c

1 6 5 0 I d y # $ 0 0

1 6 6 0e r r o r = «

1 6 7 0 I d a ( $ f b ) , y

1 6 8 0 b e q r e t u r n

1 6 9 0 j s r c h r o u t ; r o mr o u t i n e

1 7 0 0 i n y

1 7 1 0 j m p e r r o r

1 7 2 0r e t u r n = .

1 7 3 0 j s r r e s e t ; r e s t o r e z p a g e

1 7 4 0 I d x # $ 1 a

1 7 5 0 j m p $ a 4 3 7 ; e x i tt h r o u g h

1 7 6 0; r o mr o u t i n et o p r i n te r r o r1 7 7 0 b 3

1 7 8 0; s t o r ea d d r e s so f f i r s ta r r a y

1 7 9 0; i n a r g u m e n t

1 8 0 0 I d a $ f b

1 8 1 0 s t a $ 0 2 a 8

1 8 2 0 I d a $ f c

1 8 3 0 s t a $ 0 2 a 9

1 8 4 0 b 4 = .

1 8 5 0 I d a # $ 0 1 ; c h e c k

1 8 6 0 c m p$ 0 2 a 7 ; p o i n t e r

1 8 7 0 ;j m pt o b 5 2 n dt i m e

1 8 8 0; t h r o u g h l o o p

1 8 9 0 b e q b 5

1 9 0 0; t r a n s f e rs e c o n d a r g u m e n t

1 9 1 0; a d d r e s st o 1 s ts t o r a g e

1 9 2 0 I d a t w o

1 9 3 0 s t a o n e

1 9 4 0 I d a t w o +$ 0 1

1 9 5 0 s t a o n e +$ 0 11 9 6 0; t r a n s f e ra d d r e s so f f i r s t

1 9 7 0; a r g u m e n tt o z e r op a g e

1 9 8 0 ; a t $ 8 c , $ 8 b1 9 9 0 I d a $ 0 2 a 9

2 0 0 0 s t a $ 8 c

2 0 1 0 I d a $ 0 2 a 8

2 0 2 0 s t a $ 8 b

2 0 3 0 i n c $ 0 2 a 7

2 0 4 0; i n c r e m e n tp o i n t e ra n d

2 0 5 0; b r a n c hb a c kt o f i n da d d r e s s

2 0 6 0; o f s e c o n da r g u m e n t

2 0 7 0 j m pd o n e i

2 0 8 0b 5

2 0 9 0; a d d r e s so f s e c o n d a r g u m e n t

2 1 0 0; s t o r e da t $ 8 e , $ 8 d

2 1 1 0 ;l e n g t ho f a r r a y s s t o r e d

2 1 2 0 ; a t $ f c , $ f b

2 1 3 0; o n l ys e c o n da r r a y l e n g t h

2 1 4 0; u s e d ,b o t ha r r a y sm u s t h a v e2 1 5 0; d i m e n s i o n e dt h es a m es i z e

2 1 6 0 I d a $ 0 2 a 9

2 1 7 0 s t a $ 8 e

2 1 8 0 I d a $ 0 2 a 8

2 1 9 0 s t a $ 8 d2 2 0 0 I d y # $ 0 3

2 2 1 0 I d a ( $ 8 d ) . y

2 2 2 0 s t a $ f c

2 2 3 0 d e y2 2 4 0 I d a ( $ 8 d ) , y

2 2 5 0 s t a $ f b

2 2 6 0 I d a $ 8 e

2 2 7 0 c l c

2 2 8 0; e n d i n ga d d r e s so f s e c o n d

2 2 9 0; a r r a y s t o r e da t

2 3 0 0; $ f e , $ f d

2 3 1 0 s t a $ f e

2 3 2 0 I d a $ 8 d

2 3 3 0 c l c2 3 4 0 a d c $ f b

2 3 5 0 s t a $ f d

2 3 6 0 b n eb 7

2 3 7 0 i n c $ f e

2 3 8 0b 7 = *

2 3 9 0; s k i p4 b y t e s

2 4 0 0; t h i ss k i p s p a s t t h en a m ea n d

2 4 1 0; o f f s e tb y t e si n a r r a ys t o r a g e

2 4 2 0 I d a # $ 0 4

2 4 3 0 a d c $ 8 d

2 4 4 0 s t a $ 8 d

2 4 5 0 b n e b 8

2 4 6 0 i n c $ 8 e

2 4 7 0b 8 = •

2 4 8 0 I d a # $ 0 4

2 4 9 0 a d c $ 8 b

2 5 0 0 s t a $ 8 b

2 5 1 0 b n e b 9

2 5 2 0 i n c $ 8 c

2 5 3 0b 9

2 5 4 0; n o wr e a d yt o b e g i nt r a n s f e r i n g

2 5 5 0; d a t af r o m2 n da r r a yt o 1 s t

2 5 6 0 I d y # $ 0 0

2 5 7 0b 1 3

2 5 8 0; l o a dd a t a b y t eb y b y t e

2 5 9 0 I d a ( $ 8 d ) , y

2 6 0 0; s t o r ei n 1 s ta r r a y

2 6 1 0 s t a ( $ 8 b ) , y

2 6 2 0; i n c r e m e n tp o i n t e r -2 n d

2 6 3 0 i n c $ 8 d

2 6 4 0 b n e b 1 02 6 5 0 i n c $ 8 e

2 6 6 0b 1 0

2 6 7 0; i n c r e m e n tp o i n t e r- 1 s t

2 6 8 0 i n c $ 8 b

2 6 9 0 b n e b 1 1

2 7 0 0 i n c $ 8 c

2 7 1 0b 1 1

2 7 2 0; c o m p a r ep o i n t e rw i t he n d2 7 3 0; e n do f 2 n da r r a y

2 7 4 0 I d x $ 8 d2 7 5 0 c p x $ f d

2 7 6 0 b n e b 1 3

2 7 7 0 I d x $ 8 e

2 7 8 0 c p x $ f e

2 7 9 0 b n e b 1 3

2 8 0 0r e s e t

2 8 1 0; w h e nf i n i s h e d , r e s t o r e

2 8 2 0; z e r op a g em e m o r ya n dr e t u r n

2 8 3 0; t o b a s i c

2 8 4 0 I d y # $ 0 3

2 8 5 0 r e s t o r e z =.

2 8 6 0 I d a z p a g e . y

2 8 7 0 d e y2 8 8 0 b p l r e s t o r e z

2 8 9 0 r t s

2 9 0 0. e n d

T h eT r a n s a c t o r 2 8 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 33: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 33/88

J i mB u t t e r f i e k T sC o m p l e t eC 1 2 8M e m o r y M a A f e wi s s u e sb a c kw e p u b l i s h e d a n a b r i d g e dC 1 2 8R A M / R O Mm a pa s

p r e p a r e db y J i mB u t t e r f i e l d .A t t h et i m ew ew e r eq u i t ep l e a s e dt o h a v et h e

p r i v i l e g e o fp u b l i c a t i o n .A l t h o u g ht h em a p sw e r en o ti n a n yw a yc o m p l e t e ,

t h e yw e r eg o o de n o u g ht o s t a r tm a n yh u n g r yp r o g r a m m e r so n t h e i rw a y

w i t ht h eC 1 2 8 .

A f t e rm a n ym o n t h so f c a r e f u la n dv e r yw e l l c a l c u l a t e dp e s t e r i n go n o u r

p a r t ,J i mh a sf i n a l l yc o n s e n t e dt o a l l o wu s t o p u b l i s hh i sy e tu n r e l e a s e d

C 1 2 8M a p .T h i s o p p o r t u n i t yc o m e sa s a f o r mo f p r e l u d et o J i m ' sy e t

u n r e l e a s e dn e wv e r s i o no f , " M a c h i n eL a n g u a g eF o rT h eC o m m o d o r e6 4

A n dO t h e rC o m m o d o r eC o m p u t e r s " . J i mh a sc a r e f u l l y r e - w r i t t e ni t t o

i n c l u d e t h eC 1 2 8 ,a n da s i s u s u a lw i t hJ i m ' sb o o k s ,a r t i c l e s ,v i d e o s ,T V

s h o w s ,e t c . , e t c . , e t c . ,h i sM a c h i n eL a n g u a g eb o o kt a k e s t h e r e a d e rb y t h e

h a n da n dg e n t l yf o r c ef e e d sk n o w l e d g ew i t h o u ta n yp a i n f u li n f l i c t i o n .

J i m ' sn e wb o o ki s e x p e c t e dt o b e r e l e a s e di n A p r i lo f 1 9 8 6 ,p u b l i s h e d b y

B r a d e y , ad i v i s i o no f S i m o na n d S h u s t e r .A s w i t hh i s l a s t M a c h i n e

L a n g u a g eb o o k ,t h i sv e r s i o nw i l lb e a v a i l a b l em o s t e v e r y w h e r e t h r o u g h

m a n yo f t h em a j o rb o o ks t o r e s .I f a f t e r t h i si n c r e d i b l eb i to f J Bp r o p a g a n d ay o ur e m a i nu n m o v e d ,l e tm ea s s u r ey o ut h a t1 a mn o tb e i n gp a i df o rt h i s ,

e x c e p tf o ra b o t t l eo fS t e a mb e e rh e b o u g h tm ei n S a nF r a n c i s c o( f o rw h i c h1

p a i dh i mb a c kp r o m p t l y ) .I f e v e ry o ug e tt h ec h a n c e ,h a v ea r e a d . . .y o u

w i l ln o tb e d i s a p p o i n t e d .- R T E

C O M M O D O R E1 2 8M e m o r yM a p s J i mB u t t e r f i e l d

T h e s em a p sa p p l yt o t h em a c h i n ew h e nu s e di n t h e 1 2 8 K m o d e .W h e n

u s e di n t h e 6 4 m o d e ,t h e m a c h i n e ' sm a pi s i d e n t i c a lt o t h a to f t h e

C o m m o d o r e6 4 .

A r c h i t e c t u r e :" B a n k n u m b e r s "a s u s e di n B a s i cB A N Ka n d t h e M L M

a d d r e s s i n gs c h e m ea r e m i s l e a d i n g ;i n f a c t ,t h e y a r em o r ec o r r e c t l y

" c o n f i g u r a t i o nn u m b e r s " .B a n k0 s h o w sR A Ml e v e l0 , w h i c hc o n t a i n s

w o r ka r e a sa n dt h eu s e r ' sB a s i cp r o g r a m .B a n k1 a l s os h o w sR A M ,t h i s

t i m e( f o ra d d r e s s e sa b o v eh e x a d e c i m a l0 4 0 0 )l e v e l1 w h i c hc o n t a i n s

v a r i a b l e s , a r r a y s ,a n ds t r i n g s .O t h e r " b a n k s "a r e r e a l l yc o n f i g u r a t i o n s

w i t hv a r i o u st y p e so f R O Mo r I / Oo v e r l a y i n gR A M .T h u s ,b a n k1 5 ( t h e

m o s tp o p u l a r )i s R O Ma n dI / Oc o v e r i n gR A Mb a n k0 . B a n k1 4 ,h o w e v e r ,i s

R O Ma n dt h ec h a r a c t e r g e n e r a t o r o v e r l a y i n gR A Mb a n k0 . A r c h i t e c t u r ei s

s e t s o t h a ta d d r e s s e sb e l o w$ 0 4 0 0r e f e r e n c eb a n k0 o n l y .O t h e rb a n k

s w i t c h i n g( m o r ec o m p l e xt h a nt h es i m p l i f i e d1 6 - b a n kc o n c e p t )i s a c c o mp l i s h e dv i a s t o r i n ga m a s kt o a d d r e s s $ F F 0 0 ,o r c a l l i n gu p p r e - s t o r e d

m a s k sb y w r i t i n gt o $ F F 0 1 - F F 0 4 .

T h eC o m m o d o r eC 1 2 8M e m o r y M a pa s o f F e b r u a r y1 9 8 6A l lB a n k s :

H e x D e c i m a lD e s c r i p t i o n 0 0 7 6 1 1 8

0 0 0 0 0 I / Od i r e c t i o n a lr e g i s t e r 0 0 7 7 1 1 9

0 0 0 1 1 I / Op o r t ,s i m i l a rt o C 6 4 0 0 7 8 - 0 0 7 91 2 0 - 1 2 1

0 0 0 2 - 0 0 0 4 2 - 4S Y Sa d d r e s s ,M L Mr e g i s t e r s ( S R ,P C ) 0 0 7 A - 0 0 7 C1 2 2 - 1 2 4

0 0 0 5 - 0 0 0 95 - 9 S Y S ,M L Mr e g i s t e rs a v e( A ,X .Y . S R / S P ) 0 0 7 D - 0 0 7 E1 2 5 - 1 2 6

0 0 0 A 1 0 S c a n - q u o t e sf l a g 0 0 7 F 1 2 7

0 0 0 B I I T A Bc o l u m ns a v e 0 0 8 0 - 0 0 8 11 2 8 - 1 2 9

0 0 0 C 1 2 0 = L O A D , 1 =V E R I F Y 0 0 8 2 1 3 0

0 0 0 D 1 3 I n p u tb u f f e rp o i n t e r / n u m b e ro f s u b s c r i p t s0 0 8 3 1 3 1

0 0 0 E 1 4 D e f a u l tD I Mf l a g 0 0 8 4 1 3 2

0 0 0 F 1 5 T y p e : F F = s l r i n g ;0 0 = n u m e r i c 0 0 8 5 1 3 3

0 0 1 0 1 6 T y p e :8 0= i n t e g e r ;O 0= f l o a t i n gp o i n t 0 0 8 6 1 3 4

0 0 1 1 1 7 D A T As c a n / L I S Tq u o t e / m e m o r yf l a g 0 0 8 7 - 0 0 8 A1 3 5 - 1 3 8

0 0 1 2 1 8 S u b s c r i p t / F N x f l a g 0 0 8 B - 0 0 8 F1 3 9 - 1 4 3

0 0 1 3 1 9 0 = I N P U T ; $ 4 0 = G E T ; $ 9 8= R E A D 0 0 9 0 1 4 4

0 0 1 4 2 0 A T Ns i g n / C o m p a r i s o ne v a l u a t i o nf l a g 0 0 9 1 1 4 5

0 0 1 5 2 1 C u r r e n tI / O p r o m p tf l a g 0 0 9 2 1 4 6

0 0 1 6 - 0 0 1 72 2 - 2 3I n l e g e r v a l u e 0 0 9 3 1 4 7

0 0 1 8 2 4 P o i n t e r :t e m p o r a r ys t r i n gs l a c k 0 0 9 4 1 4 8

0 0 1 9 - 0 0 2 32 5 - 3 5S l a c kf o rt e m p o r a r ys t r i n g s 0 0 9 5 1 4 9

0 0 2 4 - 0 0 2 73 6 - 3 9U t i l i t yp o i n t e r a r e a 0 0 9 6 1 5 0

0 0 2 8 - 0 0 2 C4 0 - 4 4P r o d u c l a r e af o rm u l t i p l i c a t i o n 0 0 9 7 1 5 1

0 0 2 D - 0 0 2 E4 5 - 4 6P o i n t e r :s t a r t - o f - B A S I C( f o rb a n k0 ) 0 0 9 8 1 5 2

0 0 2 F - 0 0 3 04 7 - 4 8P o i n t e r : s t a r t - o f - v a r i a b l e s( b a n k1 ) 0 0 9 9 1 5 3

0 0 3 1 - 0 0 3 24 9 - 5 0P o i n t e r : s t a r l - o f - a r r a y s 0 0 9 A 1 5 4

0 0 3 3 - 0 0 3 45 1 - 5 2P o i n t e r :e n d - o f - a r r a y s 0 0 9 B - 0 0 9 C1 5 5 - 1 5 6

0 0 3 5 - 0 0 3 65 3 - 5 4P o i n t e r :s t r i n g - s t o r a g e( m o v i n gd o w n ) 0 0 9 D 1 5 7

0 0 3 7 - 0 0 3 85 5 - 5 6U t i l i t ys t r i n gp o i n t e r 0 0 9 E - 0 0 9 F1 5 8 - 1 5 9

0 0 3 9 - 0 0 3 A5 7 - 5 8P o i n t e r :l i m i t - o f - m e m o r y( b a n k1 ) 0 0 A 0 - 0 0 A 21 6 0 - 1 6 2

0 0 3 B - 0 0 3 C5 9 - 6 0C u r r e n tB A S I Cl i n en u m b e r 0 O A 3 - 0 O A B1 6 3 - 1 7 1

0 0 3 D - 0 0 3 E6 1 - 6 2T e x t p o i n t e r :B A S I Cw o r kp o i n t O 0 A C - 0 O A D1 7 2 - 1 7 3

0 0 3 F - 0 0 4 06 3 - 6 4U t i l i t yP o i n t e r 0 0 A E - 0 0 A F1 7 4 - 1 7 5

0 0 4 1 - 0 0 4 26 5 - 6 6C u r r e n tD A T Al i n en u m b e r 0 0 B 0 - 0 0 B 11 7 6 - 1 7 7

0 0 4 3 - 0 0 4 46 7 - 6 8C u r r e n tD A T Aa d d r e s s 0 0 B 2 - 0 0 B 31 7 8 - 1 7 9

0 0 4 5 - 0 0 4 66 9 - 7 0I n p u t v e c t o r 0 0 B 4 - 0 0 B 61 8 0 - 1 8 2

0 0 4 7 - 0 0 4 87 1 - 7 2C u r r e n tv a r i a b l en a m e 0 0 B 7 1 8 3

0 O 4 9 - 0 O 4 A7 3 - 7 4C u r r e n tv a r i a b l ea d d r e s s 0 0 B 8 1 8 4

O O 4 B - O O 4 C7 5 - 7 6V a r i a b l e p o i n t e rf o rF O R / N E X T 0 0 B 9 1 8 5

O O 4 D - O O 4 E7 7 - 7 8Y - s a v e ; o p - s a v e ;B A S I Cp o i n t e r s a v e 0 0 B A 1 8 6

0 0 4 F 7 9 C o m p a r i s o n s y m b o la c c u m u l a t o r 0 O B B - 0 O B C1 8 7 - 1 8 8

0 0 5 0 - 0 0 5 58 0 - 8 5M i s c e l l a n e o u sw o r ka r e a , p o i n t e r s ,a n ds o o nO O B D - O 0 C 51 8 9 - 1 9 7

0 0 5 6 - 0 0 5 88 6 - 8 8J u m pv e c t o rf o rf u n c l i o n s 0 0 C 6 - 0 0 C 71 9 8 - 1 9 9

0 0 5 9 - 0 0 6 2 8 9 - 9 8M i s c e l l a n e o u sn u m e r i cw o r ka r e a 0 0 C 8 - 0 0 C B2 0 0 - 2 0 3

0 0 6 3 9 9 A c c u m ' l :e x p o n e n t 0 0 C C - 0 0 C D2 0 4 - 2 0 5

0 0 6 4 - 0 0 6 71 0 0 - 1 0 3A c c u m ' l :m a n t i s s a 0 0 C E - 0 0 C F2 0 6 - 2 0 7

0 0 6 8 1 0 4 A c c u m ' l :s i g n 0 0 D 0 2 0 8

0 0 6 9 1 0 5 S e r i e se v a l u a t i o n c o n s t a n t p o i n t e r0 0 D 1 2 0 9

0 0 6 A - 0 0 6 F1 0 6 - 1 1 1A c c u m ' 2 :e x p o n e n t ,a n ds oo n O 0 D 2 2 1 0

0 0 7 0 1 1 2 S i g nc o m p a r i s o n .A c e '1 v e r s u s " 2 0 0 D 3 2 1 1

0 0 7 1 1 1 3 A c c u m ' ll o - o r d e r( r o u n d i n g ) 0 0 D 4 2 1 2

0 0 7 2 - 0 0 7 31 1 4 - 1 1 5C a s s e t t eb u f f e rl e n / S e r i e s p o i n t e r 0 0 D 5 2 1 3

0 0 7 4 - 0 0 7 51 1 6 - 1 1 7 A u t ol i n en u m b e ri n c r e m e n t 0 0 D 6 2 1 4

G r a p h i c s( l a g 0 0 D 7 2 1 5

C o l o r s o u r c en u m b e r 0 0 D 8 2 1 6

T e m p o r a r yc o u n t e r s 0 0 D 9 2 1 7

D S $d e s c r i p t o r 0 0 D A - 0 0 D F2 1 8 - 2 2 3

B A S I Cp s e u d o - s l a c kp o i n l e r 0 0 E 0- 0 0 E 1 2 2 4 - 2 2 5

F l a g :0 = d i r e c tm o d e 0 0 E 2 - 0 0 E 3 2 2 6 - 2 2 7

D O S ,U S I N Gw o r kf l a g s 0 0 E 4 2 2 8

S t a c k p o i n t e rs a v ef o re r r o r s 0 0 E 5 2 2 9

G r a p h i cc o l o rs o u r c e 0 0 E 6 2 3 0

M u l t i c o l o r1 ( 1 ] 0 0 E 7 2 3 1

M u l t i c o l o r2 ( 2 ) 0 0 E 8 - 0 0 E 9 2 3 2 - 2 3 3

G r a p h i cf o r e g r o u n dc o l o r( 1 3 ) 0 0 E A 2 3 4

G r a p h i cs c a l ef a c t o r s ,X & Y 0 0 E B 2 3 5

G r a p h i cw o r kv a l u e s 0 0 E C 2 3 6

S t a t u sw o r d S T 0 O E D - O O E E2 3 7 - 2 3 8

K e y s w i l c hI A :S T O Pa n dR V Sf l a g s 0 0 E F 2 3 9

T i m i n gc o n s t a n tf o rt a p e 0 0 F 0 2 4 0

W o r kv a l u e ,m o n i t o r ,L O A D / S A V E 0 0 F 1 2 4 1

S e r i a lo u t p u t :d e f e r r e d c h a r a c t e rf l a g 0 0 F 2 2 4 2

S e r i a ld e f e r r e d c h a r a c t e r 0 0 F 3 2 4 3

C a s s e t t ew o r kv a l u e 0 0 F 4 2 4 4

R e g i s t e rs a v e 0 0 F 5 2 4 5

H o wm a n yo p e nf i l e s 0 0 F 6 2 4 6

I n p u td e v i c e ,n o r m a l l y 0 0 0 F 7 2 4 7

O u t p u tC M Dd e v i c e ,n o r m a l l y3 0 0 F 8 2 4 8

T a p ep a r i t y ,o u t p u t - r e c e i v e df l a g 0 0 F 9 2 4 9

I / Om e s s a g e s : I 9 2= a l l ,6 4= e r r o r s , 0= n i l 0 0 F A - 0 0 F F2 5 0 - 2 5 5

T a p ee r r o rp o i n t e r s 0 1 0 0 - 0 1 F F2 5 6 - 5 1 1

J i f f yC l o c kH M L 0 1 0 0 - 0 I 3 E2 5 6 - 3 1 8

I / O w o r kb y t e s 0 1 0 0 - 0 1 2 42 5 6 - 2 9 2

P o i n t e r :t a p eb u f f e r ,s c r o l l i n g 0 1 2 5 - 0 1 3 82 9 3 - 3 1 2

T a p e e n da d d s / E n do fp r o g r a m 0 2 0 0 - 0 2 A 05 1 2 - 6 7 2

T a p el i m i n gc o n s t a n t s 0 2 A 2 - 0 2 A E6 7 4 - 6 8 6

P o i n l e r :s t a r to f t a p eb u f f e r 0 2 A F - 0 2 B D6 8 7 - 7 0 1

R S - 2 3 2 ,M i s cw o r kv a l u e s 0 2 B E - 0 2 C C7 0 2 - 7 1 6

N u m b e ro fc h a r a c t e r si n f i l en a m e 0 2 C D - 0 2 E 27 1 7 - 7 3 8

C u r r e n tl o g i c a lf i l e 0 2 E 3- 0 2 F B7 3 9 - 7 6 3

C u r r e n ts e c o n d a r ya d d r e s s 0 2 F C - 0 2 F D7 6 4 - 7 6 5

C u r r e n t d e v i c e' 0 3 0 0 - 0 3 0 17 6 8 - 7 6 9

P o i n t e rt o f i l en a m e 0 3 0 2 - 0 3 0 37 7 0 - 7 7 1

I / Ow o r kp o i n t e r s 0 3 0 4- 0 3 0 5 7 7 2 - 7 7 3

B a n k s :I / Od a t a ,f i l e n a m e 0 3 0 6 - 0 3 0 77 7 4 - 7 7 5

R S - 2 3 2i n p u t / o u t p u tb u f f e ra d d r e s s e s 0 3 0 8 - 0 3 0 9 7 7 6 - 7 7 7

K e y b o a r d d e c o d ep o i n t e r( b a n k1 5 ) O 3 0 A - 0 3 0 B7 7 8 - 7 7 9

P r i n t s i r i n gw o r kp o i n l e r 0 3 0 C - 0 3 0 D7 8 0 - 7 8 1

N u m b e ro l c h a r a c t e r si n k e y b o a r db u f f e r 0 3 0 E - 0 3 0 F7 8 2 - 7 8 3

N u m b e ro f p r o g r a m m e dc h a r sw a i t i n g 0 3 1 0 - 0 3 1 17 8 4 - 7 8 5

P r o g r a m m e dk e yc h a r a c t e ri n d e x 0 3 1 2 - 0 3 1 37 8 6 - 7 8 7K e ys h i f tf l a g :0 = n os h i f t 0 3 1 4 - 0 3 1 57 8 8 - 7 8 9

K e yc o d e :8 8 i f n o k e y 0 3 1 6 - 0 3 1 7 7 9 0 - 7 9 1

K e yc o d e :8 8i f n ok e y 0 3 1 8 - 0 3 1 97 9 2 - 7 9 3

I n p u tf r o m s c r e e n / f r o m k e y b o a r d0 3 1 A - 0 3 1 B7 9 4 - 7 9 5

4 0 / 8 0c o l u m n s :0 = 1 0c o l u m n s

G r a p h i c sm o d ec o d e

C h a r a c t e rb a s e :0 = R O M ,4 = R A M

M i s cw o r ka r e a

P o i n t e rt o s c r e e nl i n e / c u r s o r

C o l o rl i n ep o i n t e r

C u r r e n ts c r e e nb o t t o m m a r g i n

C u r r e n t s c r e e n t o pm a r g i n

C u r r e n t s c r e e nl e f tm a r g i n

C u r r e n t s c r e e nr i g h tm a r g i n

I n p u t c u r s o rl o g ( r o w ,c o l u m n )

E n d - o f - l i n ef o ri n p u t p o i n t e r

P o s i t i o no f c u r s o ro n s c r e e nl i n e

R o ww h e r ec u r s o rl i v e s

M a x i m u ms c r e e nl i n e s ,c o l u m n s

C u r r e n tI / Oc h a r a c t e r

P r e v i o u s c h a r a c t e r p r i n t e d

C h a r a c t e rc o l o r

T e m p o r a r yc o l o rs a v e

S c r e e nr e v e r s ef l a g

0 = d i r e c tc u r s o r :e l s ep r o g r a m m e d

N u m b e ro f I N S E R T So u t s t a n d i n g

2 5 5= A u t oI n s e r te n a b l e d

T e x tm o d el o c k o u t

0 = S c r o l l i n ge n a b l l e d

B e l ld i s a b l e

N o tu s e d

P r o c e s s o rs t a c k a r e a

T a p ee r r o rl o g

D O Sw o r ka r e a

P R I N T / U S I N Gw o r ka r e a

B A S I Ci n p u tb u f f e r

B a n kp e e ks u b r o u l i n e

B a n kp o k es u b r o u t i n e

B a n k c o m p a r es u b r o u t i n e

J S Rt o a n o t h e rb a n k

J M Pt o a n o t h e rb a n k

F u n c t i o n e x e c u t eh o o k[ 4 C 7 8 ]

E r r o rm e s s a g el i n k

B A S I Cw a r ms t a r tl i n k

C r u n c hB A S I Ct o k e n sl i n k

P r i n tt o k e n sl i n k

S t a r tn e wB A S I Cc o d el i n k

G e t a r i t h m e t i ce l e m e n tl i n k

C r u n c hF Eh o o k

L i s tF E h o o k

E x e c u t eF E h o o k

U n u s e dI R Qv e c t o r [ F A 6 5 ]

B r e a ki n t e r r u p tv e c t o r[ B 0 0 3 ]

N M Ii n t e r r u p tv e c t o r[ F A 4 0 ]

O P E Nv e c t o r| E F B D ]

T h eT r a n s a c t o r 2 9 J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 34: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 34/88

0 3 1 C

0 3 1 E

0 3 2 0

0 3 2 2

0 3 2 1

0 3 2 6

0 3 2 8

0 3 2 A

0 3 2 C

0 3 2 E

0 3 3 0

0 3 3 20 3 3 4

0 3 3 6

0 3 3 8

0 3 4 A

0 3 5 4

0 3 5 E

0 3 6 2

0 3 6 C

0 3 7 6

0 3 8 0

0 3 8 6

O 3 9 F

( B A B

0 3 B 7

0 3 C O

0 3 C 9

0 3 D 2

0 3 D 5

0 3 D 6

0 3 D A

- 0 3I D 7 9 6 - 7 9 7

- 0 3 I F 7 9 8 - 7 9 9

- 0 3 2 1 8 0 0 - 8 0 1

- 0 3 2 3 8 0 2 - 8 0 3

- 0 3 2 5 8 0 4 - 8 0 5

- 0 3 2 7 8 0 6 - 8 0 7

- 0 3 2 9 8 0 8 - 8 0 9

- 0 3 2 B 8 1 0 - 8 1 1

- 0 3 2 D 8 1 2 - 8 1 3

- 0 3 2 F 8 1 4 - 8 1 5

- 0 3 3 1 8 1 6 - 8 1 7

- 0 3 3 3 8 1 8 - 8 1 9- 0 3 3 5 8 2 0 - 8 2 1

- 0 3 3 7 8 2 2 - 8 3 2

- 0 3 3 9 8 2 4 - 8 2 5

- 0 3 5 3 8 4 2 - 8 5 1

- 0 3 5 D 8 5 2 - 8 6 1

- 0 3 6 1 8 6 2 - 8 6 5

- 0 3 6 B 8 6 6 - 8 7 5

- 0 3 7 5 8 7 6 - 8 8 5

- 0 3 7 F 8 8 6 - 8 9 5

- 0 3 9 E 8 9 6 - 9 2 6

9 0 2

- 0 3 A A 9 2 7 - 9 3 8

- 0 3B 6 9 3 9 - 9 5 0

- 0 3 B F 9 5 1 - 9 5 9

- 0 3 C 8 9 6 0 - 9 6 8

- 0 3 D 1 9 6 9 - 9 7 7

- O 3 D 4 9 7 8 - 9 8 0

9 8 1

- 0 3 D 9 9 8 2 - 9 8 5

9 8 6

0 3 D B - 0 3 D D9 8 7 - 9 8 9

0 3 D F 9 9 1

0 3 E 0- 0 3 E 1 9 9 2 - 9 9 3

0 3 E 2 9 9 4

0 3 E 3 9 9 5

0 3 F 0 - 0 3 F 61 0 0 8 - 1 0 1 4

F F O O 6 5 2 8 0

F F O l

F F 0 2

F F 0 3

F F 0 4

F F O l- F F 0 4 6 5 2 8 1 - 6 5 2 8 4

B a n k O :

0 4 0 0- 0 7 E 7 1 0 2 4 - 2 0 2 3

0 7 F 8

0 8 0 0

O A O C

O A O D

- 0 7 F F 2 0 4 0 - 2 0 4 7

- 0 9 F F 2 0 4 8 - 2 5 6 0

2 5 7 2

2 5 7 3

R O MM a p

4 0 0 0 B a s i c E n l r yJ u m p s

4 0 0 9

4 0 2 3

4 0 4 5

4 1 1 2

4 1 7 A

4 1 8 9

4 1 8 D

4 1 9 B

1 2 5 1

4 2 6 7

4 2 7 94 2 C E

4 2 D 3

4 2 D 8

4 2D C

4 2 E 2

4 2 E 7

4 2 E C

4 2 F 1

4 2 F 6

4 2 F B

4 3 0 0

4 3 0 5

4 3 0 A

4 3 E 2

4 4 1 7

4 6 F C

4 7 D 8

4 8 2 8

4 8 4 6

4 8 4 B

4 A 8 2

4 B 3 4

B a s i cR e s l a r t

B a s i cC o l dS t a r t

C L O S Ev e c t o r[ F l 8 8 ]

S e l - i n p u lv e c t o r[ F 1 0 6 ]

S e t - o u t p u tv e c t o r[ F 1 4 C ]

R e s t o r eI / Ov e c t o r [ F 2 2 6 ]

I n p u l v e c t o r[ E F 0 6 ]

O u t p u tv e c t o r| E F 7 9 ]

T e s t - S T O Pv e c t o r[ F 6 6 E ]

G E Tv e c t o r| E E E B ]

A b o r t I / Ov e c t o r[ F 2 2 2 ]

M a c h i n eL a n g M o n i t o rl i n k

L O A Dl i n k

S A V El i n kC o n t r o lc o d e( l o w )l i n k

H i g hA S C I Ic o d el i n k

E S Cs e q u e n c el i n k

K e y b o a r db u f f e r

T a bs l o pb i t s

L i n ew r a pb i t s

L o g i c a lf i l et a b l e

D e v i c en u m b e rt a b l e

S e c o n d a r y 1 a d d r e s st a b l e

C H R G E Ts u b r o u t i n e

C H R G O Te n l r y

F e t c hf r o mR A Mb a n k0

F e t c hf r o mR A Mb a n k1

F e t c hf r o mR A Mb a n k1

F e t c hf r o mR A Mb a n k0

F e t c hf r o mR A Mb a n k0

U n u s e d

C u r r e n tB A N Kl o rS Y S ,P E E K

1 N S T R w o r kv a l u e s

B a n kl o c a t i o nf o rs i r i n g

S p r i t ew o r kb y t e s

A c c u m * ! :O v e r f l o w

S p r i t ew o r kb y t e s

G r a p h i c / T e x tb a c k g r o u n d s

G r a p h i c / M u l t ic o l o rl o g

D M Al i n kc o d e

M M Uc o n f i g u r a t i o nr e g i s t e r

B a n k O

B a n k l

B a n k1 4

B a n k1 4 o v e rR A M1

M M Ul o a d c o n f i gr e g i s t e r s

4 0 - c o l u m ns c r e e nm e m o r y

S p r i t e i d e n t i t ya r e a( t e x t )

B A S I Cp s e u d o - s t a c k

C I A1 i n t e r r u p t l o g

C I A1 t i m e re n a b l e d

0 A 0 F

0 A 1 8

0 A 1 9

0 A 1 A

0 A 1 B

- 0 A 1 7

0 A 1 D - 0 A I F

0 A 2 0

0 A 2 1

O A 2 2

0 A 2 3

0 A 2 4

0 A 2 5

O A 2 6

0 A 2 7

0 A 2 B

0 A 2 C

0 A 2 E

0 A 4 0

0 A 6 0

0 A C 0

0 A C 1

0 B 0 0

0 B C 0

o c o o

0 E 0 0

1 0 0 0

1 0 0 A

1 1 0 0

1 1 3 1

1 I 6 F

1 1 7 0

1 1 7 1

1 1 7 8

1 1 7 A

1 1 7 C

1 1 7 E

1 1 D 6

1 1 E 6

1 1 E 7

1 1 E 9

1 1 E B

1 I E C

1 1E D

I 1 E E

1 2 0 4

1 2 0 B

1 2 1 0

1 2 1 2

4 B 3 FE x e c u t e / T r a c e S t a t e m e n t

4 B C BP e r f o r m[ s t o p ]

4 B C DP e r f o r me n d ]

S e t - U pB a s i cC o n s t a n t s 4 B F 7 S e t u pF NR e f e r e n c e

C h i m e 4 C 8 6 E v a l u a t e< o r >

S e tP r e c o n l i gR e g i s t e r s 4 C 8 9 E v a l u a t e< a n d >

R e g i s t e r sF o r$ D 5 0 1 4 C B 6E v a l u a t e< c o m p a r e >

I n i tS p r i t eM o v e m e n tT a b s 4 D 2 AP r i n t ' r e a d y '

P r i n tS t a r t u pM e s s a g e

S e tB a s i cL i n k s

B a s i cL i n k s

C h r g e tF o r$ 0 3 8 0G e tF r o m( S 5 0 )B a n k

4 D 3 7 E r r o r o rR e a d y

4 D 3 AP r i n t' o u to f m e m o r y '

4 D 3 CE r r o r

4 D A FB r e a kE n t r y1 4 D C 3R e a d yF o rB a s i c

G e tF r o m( S 3 F )B a n k1 4 D E 2H a n d l eN e wL i n e

G e tF r o m( $ 5 2 )B a n k1 4 F 4 F R e c h a i nL i n e s

G e tF r o m( $ 5 C )B a n k0 4 F 8 2 R e s e tE n d - o f - B a s i c

G e tF r o m( S 5 C )B a n k

G e tF r o m( $ 6 6 )B a n k

1 4 F 9 3 R e c e i v eI n p u lL i n t

1 4 F A AS e a r c hB - S t a c kF o r M a t c h

G e lF r o m ( $ 6 1 ) B a n k O 4 F F E M o v e B - S t a c kD o w n

G e tF r o m( $ 7 0 )B a n k0 5 0 1 7 C h e c kM e m o r yS p a c e

G e lF r o m( $ 7 0 )B a n k

G e tF r o m( $ 5 0 )B a n k

G e tF r o m( $ 6 1 )B a n k

1 5 0 4 7 C o p yB - S t a c kP o i n t e r

1 5 0 5 0 S e tB - S t a c kP o i n t e r

1 5 0 5 9 M o v eB - S l a c kU p

G e tF r o m( $ 2 4 )B a n k0 5 0 6 4 F i n dB a s i cL i n e

C r u n c hT o k e n s 5 0 A 0G e l F i x e dP i N u m b e r

C h e c k K e y w o r dM a l c h 5 0 E 2 P e r f o r m[ l i s l

K e y w o r d s

A c t i o nV e c t o r s

F u n c t i o nV e c t o r s

D e f u n c tV e c l o r s

5 1 2 3 L i s tS u b r o u t i n e

5 1 D 6P e r f o r m[ n e w ]

5 1 F 3 S e l U p R u n

5 1 F 8 P e r f o r m[ c l r ]

U n i m p l e m e n t e dC o m m a n d s 5 2 3 8 C l e a r S t a c k& W o r kA r e a

M e s s a g e s

F i n dM e s s a g e

5 2 5 0 P u d e fC h a r a c t e r s

5 2 5 4 B a c kU pT e x t P o i n t e r

U p d a t e C o n t i n u eP o i n t e r 5 2 6 2 P e r f o r m[ r e t u r n ]

- 0 A 2 A

- 0 A 2 F

- 0 A 5 A

- 0 A 6 D

- 0 A C 4

- 0 B B F

- O B F F

- 0 D F F

- O F F F

- 1 0 0 9

- 1 0 F F

- 1 1 3 0- U 6 E

- 1 1 7 3

- 1 1 7 7

- 1 1 9 7

- 1 I 7 B

- 1 1 7 D

- 1 1 D 5

- 1 1 E 5

- 1 1 E 8

- 1 1 E A

- 1 I F F

- 1 2 0 7

- 1 2 0 C

- 1 2 1 1

- 1 2 1 3

2 5 7 5 - 2 5 8 3R S - 2 3 2w o r kv a l u e s

2 5 8 4 R S - 2 3 2r e c e i v e p o i n t e r

2 5 8 5 R S - 2 3 2i n p u t p o i n t e r

2 5 8 6 R S - 2 3 2t r a n s m i t p o i n t e r

2 5 8 7 R S - 2 3 2s e n dp o i n t e r

2 5 8 8 - 2 5 9 0S l e e pc o u n t d o w n ;F F F F= d i s a b l e

2 5 9 2 K e y b o a r db u f f e r s i z e

2 5 9 3 S c r e e nf r e e z ef l a g

2 5 9 4 K e yr e p e a t :1 2 8= a l l ,6 4= n o n e

2 5 9 5 K e yr e p e a tt i m i n g

2 5 9 4 K e yr e p e a tp a u s e

2 5 9 5 G r a p h i c s / t e x tt o g g l el a t c h

2 5 9 6 4 0 - c o l c u r s o rm o d e

2 5 9 7 - 2 6 0 04 0 - c o lb l i n kv a l u e s

2 6 0 1 8 0 - c o lc u r s o rm o d e

2 6 0 2 4 0 - c o lv i d e o$ D 0 1 8i m a g e

2 6 0 6 - 2 6 0 78 0c o lp a g e s -s c r e e n ,c o l o r

2 6 2 4 - 2 6 5 04 0 / 8 0p o i n t e rs w a p S E O - F A

2 6 5 6 - 2 6 6 94 0 / 8 0d a t as w a p$ 3 5 4 - 3 6 1

2 7 5 2 P A Tc o u n t e r

2 7 5 3 - 2 7 5 6R O MP h y s i c a lA d d r e s sT a b l e

2 8 1 6 - 3 0 0 7C a s s e t t eb u f f e r

3 0 0 8 - 3 0 / 1

3 0 7 2 - 3 5 8 3 R S - 2 3 2i n p u t ,o u t p u tb u f f e r s

3 5 8 4 - 4 0 9 5S y s t e ms p r i t e s( 5 6 - 6 3 )

4 0 9 6 - 4 1 0 5P r o g r a m m e dk e yl e n g t h s

4 1 0 6 - 4 3 5 1P r o g r a m m e dk e yd e f i n i t i o n s

4 3 5 2 - 4 4 0 0D O S C o m m a n ds t a g i n ga r e a4 4 0 1 - 4 4 6 2G r a p h i c sw o r ka r e a

4 4 6 3 T r a c em o d e :F F = o n

4 4 6 4 - 4 4 6 7 R e n u m b e r i n gp o i n t e r s

4 4 6 8 - 4 4 7 1D i r e c t o r yw o r kp o i n t e r s

4 4 7 2 - 4 4 7 3G r a p h i c s i n d e x

4 4 7 4 - 4 4 7 5F l o a t - f i x e d v e c t o r [ 8 4 9 F ]

4 4 7 6 - 4 4 7 7F i x e d - f l o a tv e c t o r[ 7 9 3 C ]

4 4 7 8 - 4 5 6 5S p r i t em o t i o nt a b l e s( 8 x 1 1b y t e s )

4 5 6 6 - 4 5 8 1S p r i t eX / Yp o s i t i o n s

4 5 8 2 S p r i t eX - h i g hp o s i t i o n s

1 5 8 3 - 4 5 8 4S p r i t eb u m pm a s k s( s p r i t e ,b a c k g n d )

4 5 8 5 - 4 5 8 6L i g h tp e nv a l u e s ,X a n dY

4 5 8 7 C H R G E NR O Mp a g e ,t e x t[ D 8 ]

4 5 8 8 C H R G E NR O Mp a g e , g r a p h i c s[ D O ]

4 5 8 9 S e c o n d a r ya d d r e s sf o rR E C O R D

4 5 9 0 - 4 6 0 7U n u s e d"

4 6 1 2 - 4 6 1 5P Uc h a r a c t e r s !, . $ )

4 6 1 9 - 4 6 2 0T R A Pa d d r e s s :F F F Fi f n o n e

1 6 2 4 - 4 6 2 5E n do f B a s i c( B a n k0 )

4 6 2 6 - 4 6 2 7B a s i cp r o g r a ml i m i t[ F F O O ]

5 2 8 F P e r f o r m[ d a t a / b e n d ]

5 2 9 DP e r f o r mj r e m ]5 2 A 2 S c a nT oN e x tS t m n t

5 2 A 5S c a nT oN e x l L i n e

5 2 C 5 P e r f o r m[ i f )

5 3 2 0 S e a r c h / S k i pB e g i n / B e n d

5 3 7 C S k i pS t r i n gC o n s t a n t

5 3 9 1 P e r f o r m[ e l s e ]

5 3 A 3P e r f o r m[ o n ]

5 3 C 6 P e r f o r m[ l e t ]

5 4 F 6 C h e c kS t r i n gL o c a t i o n

5 5 3 AP e r f o r m[ p r i n t " ]5 5 4 0 P e r f o r m [ c m d ]

5 5 5 AP e r f o r m[ p r i n t ]

5 6 0 0 P r i n tF o r m a t C h a r

5 6 1 2 P e r f o r m[ g e l ]

5 6 3 5 G e t k e y

5 6 4 8 P e r f o r m[ i n p u t ' ]

5 6 6 2 P e r f o r m[ i n p u t ]

5 6 9 C P r o m p l& I n p u l

5 6 A 9P e r f o r m[ r e a d ]

5 7 K 4 P e r f o r m[ n e x t ]

5 8 7 B P e r f o r m[ d i m ]

5 8 8 5 P e r f o r m[ s y s ]

5 8 B 4 P e r f o r m[ I r o n ]

5 8 B 7 P e r f o r m[ i r o f f ]

5 8 B DP e r f o r m[ r r e g ]

5 9 0 1 A s s i g n< m i d $ >

5 9 7 5 P e r f o r m[ a u t o ]

5 9 8 6 P e r f o r m[ h e l p ]5 9 A CI n s e r tH e l p M a r k e r

5 9 C FP e r f o r m[ g o s u b ]

5 9 D BP e r f o r m[ g o t o ]

5 A I 5 U n d e r s t a t e m e n t

5 A 1 D

5 A 3 D

5 A 6 0

5 A 9 B

5 A C A

5 A F 0

5 A F 8

5 B A E

5 B F B

5 D 1 9

5 D 6 8

5 D 7 55 D 8 9

5 D 9 9

5 D A 7

5 D C 6

5 D D F

5 D E E

5 D F 9

5 E 8 7

5 E F B

5 F 3 4

5 F 4 D

5 F 6 2

5 F B 7

5 F D 8

5 F D B

5 F E 0

6 0 3 9

6 0 8 A6 0 B 4

6 O B 7

6 0 D B

6 0 E 1

1 2 1 4- 1 2 1 7

1 2 1 8- 1 2 1 A

1 2 1 B- 1 2 1 F

1 2 2 2

1 2 2 F

1 2 3 4- 1 2 3 7

1 2 3 9- 1 2 3 E

1 2 3 F- 1 2 7 0

1 2 3 F- 1 2 4 8

1 2 4 9- 1 2 5 2

1 2 5 3- 1 2 5 C

1 2 5 D- 1 2 6 6

1 2 6 7- 1 2 7 0

1 2 7 1- 1 2 7 4

1 2 7 5

1 2 7 6- 1 2 7 8

1 2 7 9- 1 2 7 E

1 2 7 F

1 2 8 0

1 2 B 1

1 3 0 0- 1 7 F F

1 8 0 0- I B F F

1 C 0 0- F B F F

1 C 0 0- 1 F F 7

4 6 2 8 - 4 6 3 1

4 6 3 2 - 4 6 3 4

4 6 3 5 - 4 6 3 9

4 6 4 2

4 6 5 5

4 6 6 0 - 4 6 6 3

4 6 6 5 - 4 6 7 0

4 6 7 1 - 4 7 2 0

4 6 7 1 - 4 6 8 0

4 6 8 1 - 4 6 9 0

4 6 9 1 - 4 7 0 0

4 7 0 1 - 4 7 1 0

4 7 1 1 - 4 7 2 0

4 7 2 1 - 4 2 7 4

4 7 2 5

4 7 2 6 - 4 7 2 8

4 7 2 9 - 4 7 3 4

■ 1 7 3 5

4 7 3 6

4 7 8 5

4 8 6 4 - 6 1 4 3

6 1 4 4 - 7 1 6 7

7 1 6 8 - 6 4 5 1 1

7 1 6 8 - 8 1 8 6

1 F F 8- 1 F F F 8 1 8 7 - 8 1 9 1

2 0 0 0- 3 F F F 8 1 9 2 - 1 6 3 8 3

4 0 0 0- F B F F1 6 3 8 4 - 6 4 5 1 1

B a n k l :

0 4 0 0- F B F F 1 0 2 4 - 6 4 5 1 1

B a n k1 4 :S a m ea s B a n k1 5

D 0 0 0- D F F F5 3 2 4 8 - 5 7 3 4 3

B a n k1 5 :

4 0 0 0- C F F F

D 0 0 0- D 0 2 E

D 4 0 0- D 4 1 C

D 5 0 0

D 5 0 1- D 5 O 4

D 5 O 5- D 5 0 6

D 5 O 7- D 5 0 A

D 6 0 0- D 6 0 1

1 0 - 1 1

1 2 - 1 3

1 A

I F

D 8 0 0- D 8 E 7

D C 0 0 - D C 0 F

D D 0 0 - D D 0 F

D F 0 0- D F 0 A

E 0 0 0- F E F F

F F 0 5- F F F F

P u tS u b T oB - S t a c k

P e r f o r m[ g o ]

P e r f o r m[ c o n t ]

P e r f o r m[ r u n ]

P e r f o r m[ r e s t o r e ]

1 6 3 8 4 - 5 3 2 4 7

5 3 2 4 8 - 5 3 2 9 4

5 4 2 7 2 - 5 4 3 0 0

5 4 5 2 8

5 4 5 2 9 - 5 4 5 3 2

5 4 5 3 3 - 5 4 5 3 4

5 4 5 3 5 - 5 4 5 3 8

5 4 7 8 4 - 5 4 7 8 5

1 6 - 1 7

1 8 - 1 9

2 6

3 1

5 5 2 9 6 - 5 6 2 9 5

5 6 3 2 0 - 5 6 3 3 6

5 6 5 7 6 - 5 6 5 9 1

5 7 0 8 8 - 5 7 0 9 8

5 7 3 4 4 - 6 5 2 7 9

6 5 2 8 5 - 6 5 5 3 5

K e y w o r d sT oR e n u m b e r

P e r f o r m[ r e n u m b e r

R e n u m b e r - C o n t i n u e d

R e n u m b e rS c a n

C o n v e r tL i n eN u m b e r

G e tR e n u m b e rS t a r

C o u n tO f fL i n e sA d dR e n u m b e rI n c

S c a nA h e a d

S e tU pB l o c kM o v e

B l o c kM o v eD o w n

B l o c kM o v e U p

C h e c kB l o c kL i m i t

P e r f o r m[ f o r ]

P e r f o r m[ d e l e t e ]

G e t L i n eN u m b e rR a n g e

P e r f o r m[ p u d e f ]

P e r f o r m[ t r a p ]

P e r f o r m [ r e s u m e ]

R e i n s t a t eT r a pP o i n

S y n t a xE x i t

P r i n t' c a n ' tr e s u m e '

P e r f o r m[ d o ]

P e r f o r m[ e x i t ]

P e r f o r m[ l o o p ]P r i n tl o o pn o tf o u n d '

P r i n t ' l o o pw i t h o u td o '

E v a l W h i l e / U n t i lA r g u m e n t

D e f i n eP r o g r a m m e dK e y

D Ow o r kp o i n t e r s

U S Rp r o g r a mj u m p[ 7 D 2 8 ]

R N Ds e e d v a l u e

S o u n d t e m p o

M u s i cs e q u e n c e r

N o t ei m a g e

C u r r e n te n vp a t t e r n

E n v e l o p et a b l e s . ,

A D ( S R )p a t t e r n

( A D ) S Rp a t t e r n

W a v e f o r mp a t t e r n

P u l s ew i d t hp a t t e r n

P u l s ew i d t hh i p a t t e r n

N o t e :x x , x x , v o l u m e

P r e v i o u sv o l u m ei m a g e

C o l l i s i o nI R Qt a s k t a b l e

C o l l i s i o nI R Qa d d r e s st a b l e s

C o l l i s i o nm a s k

C o l l i s i o nw o r kv a l u e

P E Nw o r kv a l u e

U n u s e d

R e s e r v e df o rk e yf u n c t i o n s

B A S I CR A Mm e m o r y( t e x t )

V i d e o( c o l o r )m a t r i x( h i - r e s )

S p r i t ei d e n t i t i e s( h i - r e s )

S c r e e nm e m o r y( h i - r e s )

B A S I CR A Mm e m o r y( h i - r e s )

B a s i cv a r i a b l e s , a r r a y s ,s r i n g s

, b e l o w ,e x c e p t :

C h a r a c t e r g e n e r a t o rR O M

R O M :B A S I C

4 0 - c o l v i d e o c h i p8 5 6 4

S I Ds o u n dc h i p6 5 8 1

M e m o r yM a n a g e m e n tU n i t8 7 2 2

M M Up r i m a r yc o n f i gr e gs t e r

M M Up r e c o n f i gr e g i s t e r s

M M Um o d e , r a mr e g i s t e r s

M M Up a g e0 , p a g e1 r e g s

8 0 - c o l u m nC R Tc o n t r8 5 6 3

X ,Y p o s i t i o n s

O n - c h i pR A Ma d d r e s s

B a c k g r o u n dc o l o r

O n - c h i pR A Md a t a

C o l o rn y b b l e s

C I A1 ( I R Q )6 5 2 6

C I A 2 ( N M 1 ) 6 5 2 6

D M As l o t

R O M :K e m a l

R O M :T r a n s f e r ,J u m pT a b l e

6 1 0 AP e r f o r m[ k e y ]

6 1 A 8P e r f o r m[ p a i n

6 2 7 C C h e c kP a i n t i n gS p l i t

6 2 B 7 P e r f o r m[ b o x ]

6 4 2 B P e r f o r m[ s s h a p e ]

6 5 8 DP e r f o r m[ g s h a p e ]

6 6 8 E P e r f o r m[ c i r c l e ]

6 7 5 0 D r a wC i r c l e

6 7 9 7 P e r f o r m[ d r a w

6 7 D 7P e r f o r m[ c h a r ]

6 9 5 5 P e r f o r m[ l o c a l e ]

6 9 6 0 P e r f o r m[ s c a l e6 9 E 2 P e r f o r m[ c o l o r ]

6 A 4 CC o l o rC o d e s

6 A 5 CL o gC u r r e n t C o l o r s

6 A 7 9P e r f o r m[ s e n tr ]

6 B 0 6 F i l lM e m o r yP a g e

6 B 1 7 S e tS c r e e nC o j r

6 B 3 0C l e a rH i - R e sS c r e e n

6 B 5 AP e r f o r m[ g r a p h i c ]

6 B C 9P e r f o r m[ b a n k ]

6 B D 7P e r f o r m[ s l e e p ]

6 C 0 9 M u l t i p l yS l e e pT i m e

6 C 2 DP e r f o r m[ w a i t

6 C 4 FP e r f o r m[ s p r i t e ]

6 C B 3B i tM a s k s

6 C C 6P e r f o r m [ m o v s p r ]

6 D E 1P e r f o r m[ p l a v

6 E 0 2 A n a l y z eP l a v C h a r a c t e r

6 E B 2S e tS I DS o u n d6 E F DP l a yE r r o r

6 F 0 3 D o l l e dN o t e

6 F 0 7 N o t eL e n g t hC h a r

6 F 1 E N o l e A - G

T h eT r a n s a c t o r 3 0 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 35: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 35/88

6 F 5 2

6 F 6 9

6 F 6 C

6 F 7 8

6 F D 7

6 F E - 1

6 F F . 7

6 F E C

7 0 2 F

7 0 3 9

7 0 - 1 6

7 0 C 1

7 1 6 1

7 1 9 0

7 1 1 3 6

7 1 C 5

7 1E C

7 2 C C

7 3 3 5

7 3 7 2

7 6 9 1

7 6 E C

7 7 B 3

7 7 0 1

7 7 D 7

7 7 D A

7 7 D D

7 7 E 7

7 7 E A

7 7 E F

7 8 D 7

7 9 3 C

7 9 5 0

7 9 5 C

7 9 6 C

7 9 7 8

7 A 8 5

7 A A F

7 B 3 C

7 B 4 6

7 C A B

7 D 2 5

7 D 2 8

7 E 3 E

7 E 7 1

8 0 0 0

8 0 2 0

8 0 4 A

8 0 5 2

8 0 7 6

8 0 C 5

8 0 E 5

8 0 F 6

8 1 3 9

8 1 4 2

8 1 6 B

8 1 8 2

8 1 8 C

8 1 9 B

8 2 0 3

8 2 4 D

8 2 A E

8 2 F A

8 3 1 E

8 3 6 1

8 3 7 C

8 3 9 7

8 3 E 1

8 4 0 7

8 4 3 4

8 4 9 0

8 4 9 A

8 4 9 F

8 4 A 7

8 4 A D

8 4 C 9

8 4 D 0

8 4D 9

8 4 D D

8 4E 0

8 4E 5

8 4 F 5

8 4F A

8 5 2 8

8 5 3 B

8 5 A E

8 5 B F

8 5 D 6

8 6 0 A

8 6 1 C

. . v o t x u m . .

S h a r p

F l a t

R e s l

P e r f o r m[ t e m p o ]

V o i c eT i m e sT w o

L e n g t hC h a r a c t e r s

C o m m a n dC h a r a c t e r s

C h i m eS e q

S I DV o i c eS t e p s

P e r f o r m[ f i l l e r ]

P e r f o r m[ e n v e l o p e ]

P e r f o r m[ c o l l i s i o n ]

P e r f o r m[ s p r c o l o r ]

P e r f o r m[ w i d t h ]

P e r f o r m[ v o l ]

P e r f o r m[ s o u n d ]

P e r f o r m[ w i n d o w ]

P e r f o r m[ b o o t ]

P e r f o r m[ s p r d e f j

S p r i t eV e c t o r s

P e r f o r m[ s p r s a v ]

P e r f o r m[ f a s t ]

P e r f o r m[ s l o w ]

T y p eM a l c hC h e c k

C o n f i r mN u m e r i c

C o n f i r mS t r i n g

P r i n t ' t y p em i s m a t c h '

P r i n l' f o r m u l a t o oc o m p l e x 1

E v a l u a t e E x p r e s s i o n

E v a l u a t el l e i n

F i x e d - F l o a t

E v a lW i t h i n P a r e n s

C h e c kC u m i n , i

S y n t a xE r r o r

S e a r c hF o r V a r i a b l e

U n p a c kR A M1 l o F A C ' l

L o c a t eV a r i a b l e

C h e c kA l p h a b e t i c

C r e a t eV a r i a b l e

S e tU pA r r a y

P r i n t' b a ds u b s c r i p t '

P r i n l i l l e g a l q u a n t i t y '

C o m p u t eA r r a yS i z e

A r r a yP o i n t e rS u b r l n

E v a l u a t e< f r e >

D e c r y p tM e s s a g e

E v a l u a t e< v a l >

S t r i n gl o F l o a l

E v a l u a t e< d e c >

E v a l u a t e< p e e k >

P e r f o r m[ p o k e ]

E v a l u a t e< e r r $ >

S w a px W i l h. v

E v a l u a t e< h e x $ >

B y t et o H e x

E v a l u a t e< r g r >

G e tG r a p h i c sM o d e

E v a l u a t e < r c l r >

E v a l u a t e< j o y >

E v a l u a t e< p o t >

E v a l u a t e< p e n >

E v a l u a t e< p o i n t e r >

E v a l u a l e < r s p r i t e >

E v a l u a t e < r s | > c o ! o r >

E v a l u a l e< b u m p >

E v a l u a t e< r s p o s >

E v a l u a t e< x o r >

E v a l u a l e< r w i n d o w >

E v a l u a l e< r n d >

R n dM u l t i p l i e r

V a l u e3 2 7 6 8

F l o a l - F i x e dU n s i g n e d

E v a l u a l e F i x e dN u m b e r

F l o a t - F i x e dS i g n e d

F l o a t( . y , . a )

E v a l u a t e< p o s >

C h e c kD i r e c t

P r i n l' i l l e g a ld i r e c t '

P r i n t" u n d e f ' d f u n c t i o n '

S e tU p1 6 B l F i x - F l o a t

P r i n t' d i r e c tm o d eo n l y '

P e r f o r m[ d e l ]

C h e c kF NS y n t a x

P e r f o r m[ I n

E v a l u a l e< s r S >

E v a l u a t e< c h r S >

E v a l u a l e < l e f l $ >

E v a l u a t e< r g h t $ >

E v a l u a t e< m i d $ >

T h eT r a n s a c t o r

8 6 4 D

8 6 6 8

8 6 6 E

8 6 7 7

8 6 8 8

8 6 9 A

8 7 4 E

8 7 7 B

8 7 E 0

8 7 F 1

8 8 0 3

8 8 1 5

8 8 2 E

8 8 3 1

8 8 4 5

8 8 4 8

8 9 1 7

8 9 4 E

8 9 5 D

8 9 9 C

8 9 C A

8 A 0 E

8 A 2 4

8 A 2 7

8 A 8 9

8 A B 4

8 A E 3

8 B 1 7

8 B 2 E

8 B 3 3

8 B 3 8

8 B 4 9

8 B 4 C

8 B D 4

8 B F 9

8 B F C

8 C 0 0

8 C 2 8

8 C 3 8

8 C 4 7

8 C 5 7

8 C 6 5

8 C 6 8

8 C 7 5

8 C 8 4

8 C 8 7

8 C C 7

8 C F B

8 D 2 2

8 D B 0

8 E 1 7

8 E 2 6

8 E 3 2

8 E 4 2

8 F 7 6

8 F 7 B

8 F 9 F

8 F B 7

8 F B E

8 F C I

8 F F A

9 0 0 5

9 0 3 3

9 0 D 0

9 0 D 8

9 0 D F

9 0 E 5

9 0 E B

9 0 F D

9 1 1 2

9 1 2 9

9 1 2 C

9 1 8 D

9 1 9 A

9 1 A E

9 1 D D

9 1 E 3

9 1 E B

9 1 F 6

9 2 4 3

9 2 5 1

9 2 5 7

9 2 5 D

9 2 6 3

9 2 6 9

9 2 6 F

9 2 7 5

9 2 7 B

9 2 8 1

9 2 8 7

P u l lS i r i n gP a r a m e t e r s

E v a l u a t e< l e n >

E x i tS t r i n gM o d e

E v a l u a l e< a s c >

C a l cS t r i n gV e c t o r

S e tU pS t r i n g

B u i l dS t r i n gt o M e m o r y

E v a l u a l eS t r i n g

C l e a nD e s c r i p t o r S t a c k

I n p u t B v l eP a r a m e t e r

P a r a m sF o r P o k e / W a i t

F l o a t / F i x e d

S u b t r a c tF r o mM e m o r y

E v a l u a t e< s u b t r a c t >

A d dM e m o r y

E v a l u a t e< a d d >

T r i mF A C ' lL e f t

R o u n dU pF A C ' l

P r i n t' o v e r f l o w '

L o gS e r i e s

E v a l u a l e< l o g >

A d d0 . 5

M u l t i p l yB y M e m o r y '

E v a l u a t e< m u l t i p i y >

U n p a c kR O Ml o F A C ' 2

U n p a c kR A M1 l o F A C ' 2

A d j u s tF A C ' l / ' 2

M u l t i p l yB y H I

+ 1 0

P r i n t ' d i v i s i o nb y z e r o '

D i v i d eB y 1 0

D i v i d eI n t oM e m o r y

E v a l u a t e< d i v i d e >

U n p a c kR O Ml o F A C ' l

P a c kF A C ' ll o S 5 E

P a c kF A C ' lt o $ 5 9

P a c kF A C ' lt o R A M1

F A C ' 2l o F A C ' l

F A C ' ll o F A C ' 2

R o u n dF A C ' l

G e lS i g n

E v a l u a l e< s g n >

B y t e F i x e d - F l o a t

F i x e d - F l o a t

E v a l u a t e< a b s >

C o m p a r eF A C *1 l o M e m o r y

F l o a l - F i x e d

E v a l u a t e< i n t >

S t r i n gt o F A C ' l

G e tA s c i i D i g i l

C o n v e r s i o nV a l u e s

P r i n ti n ' . . .

P r i n t I n t e g e r

F l o a tl o A s c i i

+ 0 . 5

D e c i m a lC o n s t a n t s

T ! C o n s t a n t s

E v a l u a l e < s q r >

R a i s el o M e m o r y 'P o w e r

E v a l u a t e< p o w e r >

E v a l u a t e< n e g a t e >

E x pS e r i e s

E v a l u a t e< e x p >

I / OE r r o rM e s s a g e

B a s i c' o p e n '

B a s i cc h r o u l '

B a s i ci n p u t '

R e d i r e c tO u t p u t

R e d i r e c tI n p u t

P e r f o r m[ s a v e ]

P e r f o r m[ v e r i f y ]

P e r f o r m[ l o a d ]

P e r f o r m[ o p e n ]

P e r f o r m[ c l o s e ]

G e tL o a d / S a v eP a r a m e t e r s

G e lN e x lB y t eV a l u e

G e tC h a r a c t e ro r A b o r t

M o v el o N e x tP a r a m e t e r

G e tO p e n / C l o s e P a r a m s

R e l e a s eI / OS i r i n g

C a l l' s t a t u s '

C a l l' s e t l l s '

C a l l' s e l n a m '

C a l l' g e t i n '

C a l l ' c h r o u l '

C a l l' c l r c h n '

C a l l' c l o s e '

C a l l' c l a l l '

P r i n tF o l l o w i n g T e x t

S e tL o a d / S a v eB a n k

9 2 8 D

9 2 9 3

9 2 9 9

9 2 E A

9 4 0 9

9 4 1 0

9 4 5 9

9 4 8 5

9 4 B 3

9 1 E 3

9 5 2 0

9 9 C 1

9 B 0 C

9 B 3 0

9 B F B

9 0 1 9

9 C 7 0

9 C C A

9 C E 3

9 D 1 C

9 D 2 - 1

9 D F 2

9 E 2 F

9 E 3 2

9 F 2 9

9 F 3 D

A 0 2 2

A 0 7 E

A U D

A 1 3 4

A 1 5 7

A 1 6 F

A 1 8 C

A 1 A 4

A 1 A 7

A 1 C 8

A 2 1 8

A 2 6 7

A 2 A 1

A 2 D 7

A 3 2 2

A 3 2 F

A 3 4 6

A 3 6 2

A 3 6 E

A 3 7 C

A 3 B F

A 5 E 7

A 5 E A

A 5 E D

A 6 2 7

A 7 E 1

A 8 0 D

A 8 - 1 5

A 8 1 D

A A I F

A A 2 4

A A 2 9

A E 6 4

A F 0 0

B 0 0 0

B 0 0 9

B 0 0 C

B 0 2 1

B 0 3 D

B 0 5 0

B 0 5 3

B 0 8 B

B O B C

B O B F

B 0 E 3

B 0 E 6

B O F C

B 1 1 A

B 1 2 A

B 1 3 D

B 1 5 2

B 1 9 4

B 1 A B

B 1 C C

B I D 6

B 1 D F

B 1 E 8

B 2 0 E

B 2 3 1

B 2 3 4

B 2 C 3

B 2 C 6

B 2 C E

B 3 3 7

C a l lp l o t '

C a l lg e l '

M a k eR o o mF o rS t r i n g

G a r b a g eC o l l e c t i o n

E v a l u a t e< c o s >

E v a l u a t e< s i n >

E v a l u a t e< t a n >

T r i gS e r i e s

E v a l u a l e< a t n >

S e r i e s

P r i n tU s i n g

E v a l u a t e < i n s t r >

E v a l u a t e< r d o l >

D r a wL i n e

P l o lP i x e l

E x a m i n eP i x e l

S e tH i - R e sC o l o rC e l l

V i d e oM a t r i x L i n e sH i

P o s i l i o n P i x e l

B i lM a s k s

C a l cH i - R e sR o w / C o l u m n

R e s t o r eP i x e lC u r s o r

P a r s eG r a p h i c sC o m m a n d

G e t C o l o rS o u r c eP a r a m

C o n vW o r d sH i

C o n vW o r d sL o

M o v eB a s i ct o S IC O1

P e r f o r m[ c a t a l o g / d i r e c t o r y ]

P e r f o r m[ d o p e n ]

P e r f o r m[ a p p e n d ]

F i n dS p a r eS A

P e r f o r m[ d c l o s e ]

P e r f o r mj d s a v e ]

P e r f o r m[ d v e r i f v ]

P e r f o r mj d l o a d j

P e r f o r m[ b s a v e ]

P e r f o r m[ b l o a d ]

P e r f o r m[ h e a d e r ]

P e r f o r m[ s c r a t c h ]

P e r f o r m[ r e c o r d ]

P e r f o r m[ d c l e a r ]

P e r f o r m[ c o l l e c t ]

P e r f o r m[ c o p y ]

P e r f o r m[ c o n c a t ]

P e r f o r m [ r e n a m e ]

P e r f o r m[ b a c k u p ]

P a r s eD O S C o m m a n d s

P r i n t' m i s s i n gf i l en a m e '

P r i n li l l e g a ld e v i c en u m b e r '

P r i n t' s t r i n gl o ol o n g '

D O S C o m m a n dM a s k s

P r i n t" a r ev o us u r e ? '

R e l e a s eS i r i n g

S e lB a n k1 5

I R QW o r k

P e r f o r m[ s t a s h ]

P e r f o r m[ f e t c h ]

P e r f o r m[ s w a p ]

E n c r y p t e dM e s s a g e

B a s i cV e c t o r s

P e r f o r m[ m o n i t o r ]

B r e a kE n t r y

P r i n t ' b r e a k '

P r i n t ' c a l l ' e n t r y

P r i n l' m o n i t o r '

P e r f o r m[ r |

P r i n t' p cs r . . . '

G e tC o m m a n d

E r r o r

P r i n t " . ' '

P e r f o r m[ x ]

C o m m a n d s

V e c t o r s

R e a dB a n k e dM e m o r y

W r i t eB a n k e dM e m o r y

C o m p a r eB a n k e dM e m o r y

P e r f o r m[ m ]

P e r f o r m[ ; ]

P e r f o r m[ > ]

P r i n le s c - o .u p '

P e r f o r m[ g ]

P e r f o r m[ j ]

D i s p l a yM e m o r y

P r i n l' : < r v s - o n > '

P e r f o r m[ c ]

P e r f o r m[ l ]

A d d1 t o O p3

D oN e x lA d d r e s s

P e r f o r m[ h ]

P e r f o r m[ I s v ]

3 1

B 3 C 7

B 3 D B

B 4 0 6

H x i i ;

B 5 7 C

B 5 7 F

B 5 8 B

B 5 9 9

B 5 B I

H 5 I M

B 5 F 5

B 6 5 9

B 6 A 1B 6 C 3

B 7 1 5

B 7 2 1

B 7 A 5

R 7 C F .

B 8 8 A

B 8 8 E

B 8 9 2

B 8 A 5

B 8 A 8

B 8 A D

B 8 B 4

B 8 B 9

B 8 C 2

B 8 D 2

B 8 E 7

B 8 E 9

B 9 0 1

B 9 0 E

B 9 2 2

B 9 3 C

B 9 5 0

B 9 6 0

B 9 7 4

B 9 8 3

B 9 B 1

B A 0 7

B A 4 7

B A 5 D

B A 9 0

c o o o

C 0 0 6

C 0 0 9

c o o c

C O O F

C 0 1 2

C 0 1 8

C 0 2 1

C 0 2 4

C 0 2 7

C 0 2 A

C 0 2 D

C 0 3 3

C 0 4 C

C 0 6 5

C 0 6 F

C 0 7 B

C 1 4 2

C 1 5 0

C 1 5 6

C 1 5 C

C 1 7 C

C 1 9 4

C 2 3 4

C 2 9 B

C 2 B C

C 2 F F

C 3 0 C

C 3 2 0

C 3 3 E

C 3 6 3

C 3 7 C

C 3 A 6

C 3 D C

C 4 0 D

C 4 A 5

C 5 3 C

C 5 3 E

C 5 5 D

C 6 5 1

C 6 D D

C 6 E 7

C 7 2 DC 7 7 D

C 7 9 A

C 7 B 6

C 8 0 2

P r i n t' e r r o r '

P e r f o r m[ f ]

P e r f o r m[ a ]

P r i n t' s p a c e< e s c - q > '

C h e c k2 A - M a t c h e s

C h e c k A - M a t c h

T r y N e x lO pC o d e

P e r f o r m[ d ]

P r i n t ' < c r > < e s c - q > '

D i s p l a yI n s t r u c t i o n

P r i n l' < 3 s p a c e s > '

C l a s s i f yO pC o d e

G e tM n e m o n i cC h a rM o d eT a b l e s

M o d eC h a r a c t e r s

C o m p a c t e dM n e m o n i c s

I n p u tP a r a m e t e r

R e a dV a l u e

N u m b e rB a s e s

B a s eB i t s

D i s p l a y5 - D i g i lA d d r e s s

D i s p l a y2 - D i g i tB y t e

P r i n tS p a c e

P r i n lC u r s o r - U p

N e wL i n e

B l a n kN e wL i n e

O u l p u l2 - D i g i tB v t e

B y t el o 2 A s c i i

G e t I n p u tC h a r

G e t C h a r a c t e r

C o p yA d d Ol o A d d 2

C a l c u l a t eA d d 2 - A d d O

S u b t r a c t

S u b t r a c t1

I n c r e m e n tP o i n t e r

D e c r e m e n tP o i n t e r

C o p yt o R e g i s t e rA r e a

C a l c u l a t eS t e p / R a n g e

P e r f o r m[ $+ & % ]

C o n v e r tt o D e c i m a l

T r a n s f e rA d d r e s s

O u t p u t A d d r e s s

P e r f o r m | @ ]

- c i n t -

G e tF r o mK e y b o a r d

S c r e e nI n p u tL i n k

S c r e e nP r i n lL i n k

- s c r e e n -

- s e n k e y -

- p l o l -

D e f i n eF NK e y

I R QL i n k

U p l o a d 8 0C o l

S w a p4 0 / 8 0

S e tW i n d o w

S c r e e n A d d r e s sL o w

S c r e e nA d d r e s s H i g h

I / OL i n k V e c t o r s

K e y b o a r dS h i f tV e c t o r s

I n i t i a l i z eS c r e e n

R e s e tW i n d o w

H o m eC u r s o r

G o l oL e f lB o r d e r

S e lU pN e wL i n e

D oS c r e e nC o l o r

( I R Q )S p l i tS c r e e n

G e ta K e y

I n p u tF r o mS c r e e n

R e a dS c r e e nC h a r

C h e c kF o rQ u o t e s

W r a pU pS c r e e nP r i n t

A s c i il o S c r e e nC o d e

C h e c kC u r s o rR a n g e

D oN e wL i n e

I n s e r ta L i n e

S c r o l lS c r e e n

D e l e t ea L i n e

M o v eS c r e e nL i n e

C l e a ra L i n e

S e t8 0 - c o l u m nC o u n t e rt o 1

S e t8 0 - c o l u m nC o u n t e r

K e y b o a r d S c a n S u b r l n

K e yP i c k u p& R e p e a t

P r o g r a m m e dK e y s

F l a s h4 0C o l u m nC u r s o r

P r i n t l oS c r e e nE s c - o( e s c a p e )

V e c t o r s

P r i n tC o n t r o lC h a r

P r i n tH i - B i tC h a r

C 8 5 4 C h r $ ( 2 9 ) C u r s o rR i g h t

C 8 5 AC h r S ( 1 7 )C u r s o rD o w n

C 8 7 5 C h r S ( ! 5 7 ) C u r s o rl e f t

C 8 8 0 C h r $ ( 1 4 ) T e x l

C 8 A 6C h r $ ( l l )L o c k

C 8 A CC h r $ ( 1 2 )U n l o c k

C 8 B 3C h r $ ( 1 9 )H o m e

C 8 B FC h r $ ( 1 4 6 ) C l e a r R v s M

C 8 C 2C h r $ ( 1 8 )R e v e r s e

C 8 C 7C h r $ ( 2 )U n d e r l i n e - O n

C 8 C EC h r $ ( 1 3 0 ) U n d e r l i n e - O

C 8 D 5C h r $ ( 1 5 )F l a s h - O n

C 8 D CC h r $ ( 1 4 3 )F l a s h - O f fC 8 E 3O p e nS c r e e nS p a c e

C 9 1 BC h r $ ( 2 0 ) D e l e t e

C 9 3 2 R e s t o r eC u r s o r

C 9 4 FC h r $ ( 9 )T a b

C 9 6 1 C h r $ ( 2 4 )T a bT o g g l e

C 9 6 CF i n dT a bC o l u m n

C 9 8 0 E s c - zC l e a rA l lT a b s

C 9 8 3 E s c - vS e tD e f a u l tT a b s

C 9 8 EC h r $ ( 7 )B e l l

C 9 B 1C h r $ ( 1 0 ) L i n e f e e d

C 9 B EA n a l v z e E s cS e q u e n c e

C 9 D EV e c t o r s

C A ME s c - tT o p

C A 1 6E s c - b B o t l o m

C A 1 BS e lW i n d o wP a r t

C A 2 4E x i tW i n d o w

C A 3 DE s c - iI n s e r lL i n e

C A 5 2E s c - dD e l e t e L i n e

C A 7 6E s c - qE r a s eE n d

C A 8 BE s c - pE r a s e B e g i n

C A 9 FE s c - @C l rR e m a i n d e ro fS c r n

C A B CE s c - vS c r o l lU p

C A C AE s c - wS c r o l lD o w n

C A E 2E s c - IS c r o l lO n

C A E 5E s c - mS c r o l lO f f

C A E AE s c - cC a n c e lA u t oI n s e r t

C A E DE s c - a A u t oI n s e r l

C A F 2E s c - s B l o c kC u r s o r

C A F EE s c - uU n d e r l i n eC u r s o r

C B 0 BE s c - eC u r s o rN o nF l a s h

C B 2 1 E s c - fC u r s o rF l a s h

C B 3 7E s c - gB e l lE n a b l e

C B 3 AE s c - hB e l lD i s a b l e

C B 3 FE s c - r S c r e e nR e v e r s e

C B 4 8E s c - n S c r e e nN o r m a l

C B 5 2E s c - k E n d - o f - L i n e

C B 5 8G e lS c r e e n C h a r / C o l o r

C B 7 4C h e c kS c r e e n L i n eo f L o

C B 8 I E x t e n d / T r i mS c r e e nL i n e

C B 9 FS e lU pL i n eM a s k s

C B B 1E s c - j S l a r l - o f - L i n e

C B C 3F i n dE n d - o f - L i n e

C B E DM o v eC u r s o rR i g h t

C C 0 0 M o v eC u r s o rL e f t

C C 1 ES a v eC u r s o r

C C 2 7P r i n tS p a c e

C C 2 FP r i n tC h a r a c t e r

C C 3 2P r i n tF i l lC o l o r

C C 3 4P u tC h a rt o S c r e e n

C C 5 BG e tR o w s / C o l u m n s

C C 6 AR e a d / S e tC u r s o r

C C A 2D e f i n e F u n c t i o nK e y

C D 2 CE s c - xS w i t c h4 0 / 8 0

C D 5 7P o s i t i o n8 0 - c o lC u r s o r

C D 6 FS e lS c r e e nC o l o r

C D 9 FT u r nC u r s o rO n

C D C AS e lC R T CR e g i s t e r3 1

C D C CS e tC R T CR e g i s t e r

C D D 8R e a dC R T CR e g i s t e r3 1

C D D AR e a dC R T CR e g i s t e r

C D E 6S e lC R T Cl o S c r e e nA d d r e s s

C D F 9S e lC R T Cl o C o l o rA d d r e s s

C E 0 CS e lU p8 0C o l u m nC h a rS e l

C E 4 CA s c i iC o l o rC o d e s

C E 5 CS y s t e mC o l o rC o d e s

C E 6 CB i tM a s k s

C E 7 4 4 0 - C o l l n i lV a l u e s( $ E 0 )

C E 8 E8 0 - C o l l n i lV a l u e s ( $ 0 A 4 0 )

C E A 8P r o gK e yL e n g t h s

C E B 2P r o gK e yD e f i n i t i o n s

E 0 0 0 R e s e tC o d e

E 0 4 BM M US e tU pB y l e s

E O 5 6 - r e s t o r -E 0 5 B- v e c l o r -

E 0 7 3 V e c t o r sl o $ 0 3 1 4

E 0 9 3 - r a m t a s -

E 0 C DC o d eF o rH i g hR A MB a n k s

J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 36: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 36/88

E 1 0 5

E 1 0 9

E lD C

E 1 F 0

E 2 4 2

E 2 4 B

E 2 6 3

E 2 6 B

E 2 B C

E 2 C 0

E 2 C 4

E 2 C 7

E 2 F 8E 3 3 B

E 3 3 E

E 4 3 E

E 4 D 2

E 4 E O

E 5 O 3

E S 1 5

E 5 2 6

E 5 3 5

E 5 4 5

E 5 4 E

E 5 5 7

E 5 6 0

E 5 6 9

E 5 7 3

E 5 9 F

E 5 B C

E 5 C 3

E 5 D 6

E 5 F B

E 5 F F

F f i 4 A

R A MB a n k M a s k s

- i o i n i t -

S e lU pC R T CR e g i s t e r s

C h e c kS p e c i a lR e s e t

R e s e tl o 6 4 / 1 2 8

S w i t c hl o 6 4 M o d e

C o d el o $ 0 2

S c a nA l lR O M s

R O MA d d r e s s e sH i

R O MB a n k s

P r i n t' c b m 'M a s k

V I C 8 5 6 4S e tU p

C R T C8 5 6 3S e tU pP a i r s- t a l k -

- l i s t e n -

- a c p t r -

- s e c o n d -

- t k s a -

- c i o u t -P r i n tS e r i a l

- u n t l k -

- u n l s n -

R e s e tA T N

S e tC l o c k H i g h

S e tC l o c kL o w

S e tD a t a H i g h

S e lD a t aL o w

R e a dS e r i a lL i n e s

S t a b i l i z eT i m i n g

R e s t o r eT i m i n g

P r e p a r e F o rR e s p o n s e

F a s tD i s kO f f

F a s tD i s kO n

F a s tD i s kO n / O f f

( N M I )T r a n s m i tR S - 2 3 2

R S - 2 3 2H a n d s h a k e

E 6 8 E

E 6 9 D

E 7 5 F

E 7 9 5

E 7 C E

E 7 E C

E 8 0 5

E 8 5 0

E 8 7 8

E 8 A 9

E 8 D 0

E 9 1 9

F . 9 8 0

E 9 8 7

E 9 9 A

E 9 B E

E 9 C 8

E 9 D F

E 9 E 9

E 9 F 2

E A 1 5

E A 2 6

E A 7 D

E A 8 F

E A A 1

E A E B

E C 1 F

E D 5 1

E D 5 A

F . D 6 9

E D 8 B

E D 9 0

E E 2 E

E E 5 7

K F . 9 R

S e tR S - 2 3 2B i tC o u n t

( N M I )R S - 2 3 2R e c e i v e

S e n dt o R S - 2 3 2

C o n n e c t R S - 2 3 2I n p u t

G e tF r o mR S - 2 3 2

I n t e r l o c kR S - 2 3 2 / S e r i a l

( N M I )R S - 2 3 2C o n t r o lI / O

R S - 2 3 2T i m i n g s

( N M I )R S - 2 3 2R e c e i v eT i m i n g

( N M I )R S - 2 3 2T r a n s m i tT i m i n g

F i n dA n yT a p e H e a d e r

W r i t eT a p e H e a d e r

G e tB u f f e rA d d r e s s

G e tT a p eB u f f e rS t a r t& E n dA d d r s

F i n dS p e c i f i cH e a d e r

B u m pT a p eP o i n t e r

P r i n t ' p r e s sp l a y. . . '

C h e c kT a p es t a t u s

P r i n t ' p r e s sr e c o r d . . '

I n i t i a t eT a p e R e a d

i n i t i a t eT a p eW r i t e

C o m m o nT a p eC o d e

W a i t F o rT a p e

C h e c kT a p eS t o p

S e tR e a d T i m i n g

( I R Q )R e a dT a p eB i t s

S t o r eT a p eC h a r s

R e s e t P o i n t e r

N e wC h a rS e lU p

S e n dT r a n s i t nt o T a p e

W r i t eD a t at o T a p e

( I R Q )T a p eW r i t e

( I R Q )T a p e L e a d e r

W i n d U pT a p eI / O

S w i t c hI R QV e c t o r

E E A 8

E E B O

E E B 7

E E C 1

E E C 8

E E D O

E E E B

E F 0 6

F . F 4 8

E F 7 9

E F B D

F O B O

F O C B

F 1 0 6

F 1 4 C

F 1 8 8

F I EI

F 2 O 2

F 2 1 2

F 2 2 2

F 2 2 6

F 2 3 D

F 2 6 5

F 2 7 B

F 3 2 A

F 3 A 1

F 3 E A

F 4 8 C

F 4 B A

F 4 C 5

F 5 0 3

F 5 0 C

F 5 0 F

F 5 2 1

F 5 3 3

I R QV e c t o r s

K i l lT a p e M o t o r

C h e c k E n dA d d r e s s

B u m pA d d r e s s

( I R Q ) C l e a rB r e a k

C o n t r o lT a p eM o t o r

- g e t i n -

— c h r i n —

G e tC h a rF r o mT a p e

- c h r o u t -

- o p e n -

S e tC I At o R S - 2 3 2

C h e c kS e r i a lO p e n

- c h k i n -

- c h k o u t -

- c l o s e -

D e l e t eF i l e

S e a r c hF o rF i l e

S e lF i l eP a r a m e t e r s

- c l a l l -

- c l r c h n -

C l e a rI / OP a t h

- l o a d -

S e r i a lL o a d

T a p e L o a d

D i s kL o a d

B u r s tL o a d

C l o s eO f fS e r i a l

G e lS e r i a lB y l e

R e c e i v eS e r i a lB y t e

T o g g l eC l o c kL i n e

P r i n t' u O 'D i s k R e s e t

P r i n t' s e a r c h i n g '

S e n dF i l eN a m e

P r i n tl o a d i n g 1

F 5 3 E

F 5 B 5

F 5 B C

F 5 C 8

F 5 F 8

F 6 3 D

F 6 5 E

F 6 6 5

F 6 6 E

F 6 7 C

F 6 7 F

F 6 8 2

F 6 8 5

F 6 8 8

F 6 8 B

F 6 8 E

F 6 9 1

F 6 9 4

F 6 9 7

F 6 B 0

F 7 I E

F 7 2 2

F 7 3 1

F 7 3 8

F 7 3 F

F 7 !1

F 7 5 7

F 7 5 C

F 7 5 F

F 7 6 3

F 7 7 2

F 7 8 1

F 7 8 6

F 7 9 D

F 7 A 5

- s a v e -

T e r m i n a t e S e r i a lI n p u t

P r i n ts a v i n g '

S a v et o T a p e

- u d t i m -

W a t c hF o rR U No r S h i f t

- r d t i m -

- s e l t i m -

- s l o p -

P r i n t' t o om a n yf i l e s '

P r i m ' f i l eo p e n '

P r i n t' f i l en o lo p e n '

P r i n t' f i l en o tf o u n d '

P r i m' d e v i c en o lp r e s e n

P r i n t' n o ti n p u tf i l e '

P r i n t ' n o to u t p u tf i l e '

P r i n t' m i s s i n gf i l en a m e

P r i n l' i l l e g a ld e v i c en o

E r r o r' 0

M e s s a g e s

P r i n lI I D i r e c l

P r i n lI / OM e s s a g e

- s e l n a m -

- s e t l f s -

S e lL o a d / S a v eB a n k

- r d s l -

S e tS t a t u sB i t

- s e l m s g -

S e tS e r i a lT i m e o u l

- m e m l o p -

- m e m b o t -

- i o b a s e -

S e a r c h F o rS A

S e a r c h& S e lU pF i l e

T r i g g e rD M A

F 7 A E

F 7 B C

F 7 C 9

F 7 D 0

F 7 D A

F 7 E 3

F 7 E C

F 7 F 0

F 8 0 0

F 8 5 A

F 8 6 7

F 8 9 0

F 9 0 B

F 9 2 F

F 9 8 B

F 9 B 3

F 9 F B

F A 0 8

F A1 5

F A 1 7

F A 4 0

F A 6 5

F A 8 0

F A D 1 I

F B 3 2

F B 8 B

F B E 4

F F O O

F F 0 5

F F 1 7

F F 3 3

F F 3 DF F 4 7

F F F A

G e tC h a rF r o mM e m o r y

S t o r eL o a d e dB y t e

R e a dB y l el o b eS a v e d

G e tC h a rF r o mM e m o r vB a n k

S t o r eC h a rl o M e m o r yB a n k

C o m p a r eC h a rW i t hM e m o r y

L o a dM e mC o n t r o lM a s k

B a n k M a s k s

S u b r l n st o S O 2 A 2 - S O 2 F B

D M AC o d et o S 0 3 F 0

C h e c kA u t oS l a r lR O M

C h e c kF o rB o o t D i s k

P r i n l' b o o t i n g '

P r i n l ' . . . '

W i n dU pD i s k B o o l

R e a d N e x lB o o t B l o c k

T o2 — D i g i tD e c i m a l

B l o c kR e a d

P r i n l ' T

P r i n la M e s s a g e

N M IS e q u e n c e

( I R Q )N o r m a lE n t r y

K e v b o a r dM a t r i x U n - S h i f t

K e y b o a r dM a t r i xS h i f t e d

K e v b o a r dM a t r i xC - K e y

K e y b o a r dM a t r i x C o n t r o l

K e y b o a r dM a t r i xC a p sL o c k

M M UC o n t r o l s

N M IT r a n s f e r E n t r y

I R QT r a n s f e r E n t r y

R e t u r nF r o mI n t e r r u p t

R e s e t T r a n s f e r E n t r y

J u m b o J u m pT a b l e

T r a n s f e r V e c t o r s

8 5 0 2P r o c e s s o r I / OR e g i s t e r s D M AC o n t r o l l e r

i i i j i i rj

i n n ]

X

X

l l ^ m 1 = 0 1 1 1

T i m eM o t o r

( ) = i n 1 - o u t

T a p eO u l | ) i i l

1 = o u l

H i R e s

1 = O l i !

l . o R e . s

l = o u l

C o l o rA c c e s s

D 5 0 I -[ i f . u l

i 1 3 1 1 . - ,

D 5 0 6

D 5 O 7

D 5 0 8

D 5 0 9

D 5 0 A

8 7 2 2M e m o r yM a n a g e m e n tU n i t

R A Ms e l e d0 - 3

4 0 / 8 0K e y M o d i

V i d e o - B a n k

H I G HR A M/ R O M

P r e c o n f i g u r a

S i m i l a rt o C

C a r t r - S e n s eC o l o r - B a n k

X X

Z e r o P a g e P o

M I DK A M/ R O M

o n r e g i s t e r s ,

5 0 0 .a b o v e

P a s l

D i s kX

S h a r e dR A Mh i l o w

l i t e r( S I H I O O I

S t a c kP a g eP o i n t e r( S I X M O )

. 0R A M

X

C G E N

Z 8 0

S h a r e dR A M0 = I K

1 .

1 1

L

I I

1 ) 0 1 I I 1 0

1 ) 0 0 1 ) 1

5 4 5 2 8

5 4 5 2 9 -5 4 5 3 2

5 4 5 3 : )

5 4 5 3 4

5 4 5 1 5

5 4 5 3 6

5 4 5 3 7

5 4 5 3 8

D F O O

D F 0 1

D F 0 2

D F 0 3

D F 0 4

D F 0 5

D R I 6

D F 0 7

D F 0 8

D F 0 9

D F O A

B u s y

E x e c

P a u l l

S u m

X

X

X X X X X

X I R Q I n ; - M o d e

1 .

H o s tA d d r e s s

1 1

i .

— E x p a n s i o n A d d r e s s

H

X

X X X X E x p a n s i o nB a n k

1 .

T r a n s l e rL e n g t h

I I

C h e c k s u m

V e ri o n .M a x i m u m - M e m o r y

5 7 0 8 8

5 7 0 8 ! )

5 7 0 9 1

5 7 0 9 1

5 7 0 9 2

5 7 0 9 3

5 7 0 9 - 1

5 7 0 9 5

5 7 0 9 1

5 7 0 9 7

5 7 0 9 8

6 5 2 6C I A1 ( I R Q )

( S a m ea s C I A1 f o rC 6 4 ,u n t i lD C 0 C )

6 5 2 6C I A2 ( N M I )

( S a m ea s C I A2 f o rC 6 4 )

D C O 0

D C 0 I

D C 0 2

D C 0 3

D C 0 4

D C 0 5

D C 0 6

D C 0 7

D G I C

D C 0 D

D C O E

D C O F

P a d d l e S e l e dA 1 ! F i r e R i g h t

J o y s t i c k0L e f t D o w n U p

K e y b o a r dR o wS e l e d( i n v e r t e d )

F i r e R i g h tJ o y s t i c k1

' L e f t D o w n

K e y b o a r dC o l u m nR e a d

U p

S F F - . A l lO u t p u t

$ 0 0 - A l lI n p u t

T i me r A

T i m e r B

1 .

1 .

H

S e r i a l( s h i f t )R e g i s t e r

I R Q X

S R e gI / O

X F l a g S . R e g

L o a d , O / S

L o a d , O / S

X T i i n . B

T i m e rAT o g g l e|

T i m e rB

T i m . A

S l a r l

S t a r t

P R A 5 6 3 2 1

P R B 5 6 3 2 1

D D R A5 6 3 2 2

D D R B5 6 3 2 3

T A I . 5 6 3 2 4

T A I I S K f f i

T B L 5 6 3 2 f

T B I I 5 6 3 2 7

5 G 3 3 2

5 6 3 3 3

5 6 3 3 4

5 6 3 3 5

D D O 0

D D I I 1

D D 0 2

D D 0 3

D D 0 4

D D 0 5

D D 0 6

D D 0 7

D D 0 D

D D D E

D D O F

S e n aI N

D S R\

I N

C l o c kI N

I T SI N

I N

S e r i a lO U T

O U T

C l o c kO U T

D C D 'I N

( H I T

A T NO U T

R l 'I N

O U T

R S 2 3 2O U T

D T RO U T

O U T

V i d e o

R T S

O U T

O U T

B l o c k

R S 2 3 2I N

O U T

$ 0 6f o rR S 2 3 2

T i m

T i m

e r A

e r B

1 .

H

1 .

I I

R S 2 3 2I N 1 " S "

T u n e rA

M i n e rA S t a n

I n n e rB S l . n l

' C o n n e c t e db u t n o lu s e d b yO S

■ ■P R Bi s t h eP a r a l l e lU s e rP o r t

D D R A= W F a lr e s e t

P R A 5 [ i 5 7 l i

P R B ' ' 5 6 5 7 7

D D R A5 6 5 7 8

D D R B5 6 5 7 9

T A L 5 6 5 8 0

T A I I 5 6 5 8 1

T B I . 5 6 5 8 2

T B I I 5 6 5 8 3

I C R 5 6 5 8 9

C R A 5 6 5 0 1 )

C R B 5 6 5 9 1

T h eT r a n s a c t o r 3 2 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 37: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 37/88

8 5 6 4V i d e oC h i p

C o n t r o l& M i s c e l l a n e o u sR e g i s t e r s

D o n

D 0 1 2

D 0 1 3

D O M

D 0 1 6

D 0 1 8

D 0 1 9

D 0 1 A

D 0 2 0

D 0 2 1

D 0 2 2

D 0 2 3

D 0 2 4

D 0 2 5

D 0 2 6

D 0 2 F

D 0 3 0

E x t e n d e d

C l r .M o d eK i t

M a oD i s p l a y

E n a b l eR o w

S e l e c tY - S c r o l l

R a s t e rR e g i s t e r

- L i g h tP e nI n p u tX

Y

X X R e s e t M u l t iC o l o u r

C o l u m nS e l e e l

X - S c r o l l

S c r e e n

V M I 3. V M 1 2. V M 1 1. V M 1 0

I R Q I n t e r r u p t S e n s e :

I n t e r r u p t E n a b l e :

C h a r a c t e rB a s eC B 1 3 C B 1 2 C B I lD g T T i

P e n

L i g f i iP e n

S p r - S p r

C o l l i s i o n

S p r - S p r

I ' o l l i s i u n s

S p r - B i i c k

C o l l i s i o n

S p r - B a c k

C o l l i s i o n s

X

R a s t e r

R a s t e r

X

X

X

X

X

X

X

X X XX X X

C o l o u rR e g i s t e r s

E x t e r i o rC o l o u r( B o r d e r )

B a c k g r o u n dC o l o u r" 0

B a c k g r o u n d C o l o u r" 1

B a c k g r o u n dC o l o u r# 2

B a c k g r o u n dC o l o u r* 3

S p r i t eM u l t i C o l o u r* ( )

S p r i t eM u l t i C o l o u r" 1

x x [ K e y b o a r dR o w s ]

Y v Y - r - , F a s tX X X l e s l c l o c k

5 3 2 6 5

5 3 2 6 6

5 3 2 6 7

5 3 2 6 8

5 3 2 7 0

5 3 2 7 2

5 3 2 7 3

5 3 2 7 4

5 3 2 8 0

5 3 2 8 1

5 3 2 8 2

5 3 2 8 3

5 3 2 8 4

5 3 2 8 5

5 3 2 8 6

5 3 2 9 5

5 3 2 9 6

6 5 8 1S I DS o u n dC h i p

( I d e n t i c a lt o 6 5 8 1o n C i v i )

V o i c e1

D 4 0 0

D 4 0 I

D 4 O 2

D 4 0 3

D 4 0 4

D 4 0 5

D 4 0 6

V o i c e2 V o i c e 3

D 4 I I 7 W O E

D 4 O 8 D 4 0 F

D i l l ! ) D 4 I I )

D 4 I I A D 4 1 I

1 ) 4 0 1 ! D - 1 1 2

D 4 0 C D 4 1 3

D 4 0 D D 4 1 4

D 4 1 5

D 4 I 6

-

0

N S F .

( 1 0

V o i c e I V p e, P U L, S A W

A t t a c k l i m e, 2 m s - l 8 s e c

S u s t a i nL t - v i

F r e q u e n c y

P u l s eW i d t h

( 1

T R I |

1

i 1

D e c a y, f i n i s - 2

R e l e a s e6 m s - 2

i n i e :

t m e

1 .

1 .

L

I I

K e y

V o i c e s a r e" w r i t e - o n l y "

\

0

t o l l

0

R e s o

P a s sH I

a r c e

. 1

! P

0

F i l t e rF

1 . 0

(

e q u s

i ;

|

n c y

F i l l e rV o i1 | V 3

M a s t e r V o l

e s

j m e

L

H

V I

V o i e e1

5 4 2 7 2

5 4 2 7 3

5 4 2 7 4

5 4 2 7 5

5 4 2 7 6

5 4 2 7 7

5 4 2 7 8

5 4 2 9 3

5 4 2 9 2

5 1 2 %

V o i c e2

5 4 2 7 9

5 4 2 8 1 )

5 4 2 8 1

5 4 2 8 2

5 4 2 8 3

5 4 2 8 4

5 4 2 8 5

V o i c e S

5 4 2 8 6

5 4 2 8 7

5 4 2 8 8

5 4 2 8 3

5 4 2 9 ( 1

5 4 2 9 1

5 4 2 9 2

F i l t e ra n d V o l u m e( w r i t eo n l y )

D 4 I 9 P a d d l eX ( A / I ) ' I )

P a d d l eY ( A / D" 2 )

N o i s e3 ( r a n d o m )

F . n v e l o p c3

S e n s e( r e a d o n l y )

N o i e : S p e c i a lV o i c eF e a t u r e s

( T E S T ,R I N G ,M O D ,S Y N C )

a r eo m i t t e d [ r u mt h ea b o v ed i a g r a m

S p r i t e S p r i t e

0 7

1 *

D ( K ) t ) D 0 0 E

D 0 0 1 D 0 0 F

D 0 2 7 D 0 2 E

8 5 6 4V i d e o C h i p

S p r i t eR e g i s t e r s

X P o s i t i o n

Y P o s i t i o n

S p r i t eC o l o u r

S p r i t e

01

5 3 2 4 8

5 3 2 4 9

5 3 2 8 7

B i tF o rS p r i t e *

8 5 6 38 0 - C o l u m nC R TC o n t r o l l e r

D f i O O r e a d( s

D 6 0 I )

D 6 0 0

5 4 7 8 4

I ) $ O I )

1 S i l l

2 S O 2

3 $ 0 3

4 $ 0 4

5 $ 0 5

6 $ 0 6

7 S O 7

8 $ 0 8

9 $ 0 9

I D S O A

1 1 S O B

I 2 S 0 C

1 3S O D

1 4 S 0 F

1 5 S O P

1 6$ 1 0

I 7 S 1 I

I S $ 1 2

H I $ 1 3

2 0 $ 1 4

2 1 S I S

2 2 * 1 6

2 3 $ 1 7

2 4 $ 1 8

2 5 $ 1 9

2 1 1 S I A

2 7 S I B

2 8 S I C

2 9 $ 1 0

3 0 S i t '

3 1 $ I F

3 2 $ 2 0

3 3 $ 2 1

3 4 $ 2 2

3 5 $ 2 3

3 6 S 2 4

a t u s ) :

S t a t u sU g h lP e n

V e r l

B l a n k X X X X X

D f O I

5 4 7 8 5

H o r i z o n t a l T o t a l

H o r i z o n t a lC h a r a c t e r s D i s p l a y e d( 8 0 )

H j r i z o n l a lS y n cp o s i t i o n

V e r t i c a lS y n c W i d t h

X

X

X

X

X

X

X

X

X

H o r i z o n t a lS v n cW i d t h

V e r t i c a l T o t a l

X X V e r t i c a l T o t a lA d j u s t

V e r t i c a lD i s p l a y e d( 2 5 )

V e r t i c a lS y n cP o s i t i o n

X

X

C u r s {

X

X

C h a r a c

X

B l o c kC o p y

B i t

M a p

X

S c r nR V S

C o l o u r

E n a b l e

X

X

M o d e

X

X X X I n t e r l a c e

S c a nL i n e sp e rC h a r a c t e r

C u r s o rS t a r t

C u r s o rE n d

D i s p l a yA d d r e s s

HC u r a o tA d d r e s s

HL i g h tP e i I n p u t

HV i d e oR A MA d d r e s s( S e er e g i s t e r3 1 )

1 1

C o l o u iA d d r e s s —1 .

e r T o t a l

X

B l i n k

R a t e

S e m iG r a p h

C h a r a c t e rD i s p l a y H o r i z o n t a l

C h a r a c t e rD i s p l a yV e r t i c a l

V S c r o l l

W i d eP i x e l

F o r e g r o u n dC o l o u r

H S c r o l l

B a c k g r o ui d C o l o u r

S c r o l lC o n t r o lH o r i z o n t a l

C h a rS e tA d d r e s s

X X X

R A M X X X X

U n d e r l i n e S c a nL i n eC o u n t

C h a r a c t e rC o u n t

V i d e oR A Md a t a( s e er e g i s t e r s1 8 , 1 9 )

I I

B l o c kC o p yS t a r tA d d r e s s

X X X

b e g i nD i s p l a y F . n a b l e

e n d

X D R A MR e f r e s hR a l e

5 4 7 8 4

T y p i c a l

V a l u e

1 2 6

8 0

1 0 2

1 a n d3

3 2o r 3 9

0

2 5

2 9o r 3 2

;

( 1

0

v a r i e s

v a r i e s

v a r i e s

v a r i e s

8

0

: „

3 2

B 4 o r 7 1

2 4 1 1

0

3 2

7

v a r i e s

v a r i e s

v a r i e s

v a r i e s

1 2 5

1 0 1 )

5

D O1 0

D 0 1 5

D 0 1 7

D 0 1 B

D 0 1 C

D OI D

D OI E

D 0 1 F

7

I

61

5 1 3 2

1 i i 1

X - P o s i t i o nH i g h

S p r i t eE n a b l eF l a g s

Y - E x p a n d

B a c k g r o u n dP r i o r i t y

S p r i t eM u l t i C o l o u rM o d e

X - E x p a n d

I n t e r r u p t :S p r i t e C o l l i s i o n

I n t e r r u p t :B a c k g r o u n dC o l l i s i o n

]

1

0i

S p r i t e

7

I

5 3 2 6 2

5 3 2 6 3

5 3 2 9 4

5 3 2 6 4

5 3 2 6 9

5 3 2 7 1

5 3 2 7 5

5 3 2 7 6

5 3 2 7 7

5 3 2 7 8

5 3 2 7 9

T h eT r a n s a c t o r 3 3 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 38: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 38/88

T h e C 1 2 8-

Y o uC a n B a n kO nI t

J i mB u t t e r f i e

T o r o n t o ,O n t a r i

Y o um a yh a v en o t i c e dt h a tt h eC o m m o d o r e1 2 8h a ss i x t e e n" m e m o r y

b a n k s " .I n B a s i c ,y o um a yc a l lw h a t e v e rb a n k y o uw a n t( f o rP E E K ,

P O K E ,S Y So r W A I T )b y u s i n gt h eB A N Kc o m m a n dw i t ha v a l u ef r o m

O t o1 5 .S i m i l a r l y ,m a c h i n el a n g u a g et y p e sw i l lr e f e r e n c eb a n k si n t h e

m o n i t o r b yp r e f i x i n ga n a d d r e s s w i t ha d i g i tf r o m0 t o F - t h es a m e

b a n kv a l u e so f 0 t o 1 6 .

H o w e v e r ,t h ea v e r a g ep r o g r a m m e r- w i t hn o c a r t r i d g e ,i n t e r n a lR O M ,

o r R A Me x p a n s i o n- c a no n l ym a k eu s eo f f o u ro f t h e s en u m b e r s .T h e

o n l yo n e st h a tm a k es e n s ea r eb a n k s0 , 1 , 1 4 a n d1 5 ( h e x0 , 1 , E , a n d

F )

W h a ta b o u tt h e o t h e rn u m b e r s ?B a n k s2 a n d3 a r e r e s e r v e df o r

m e m o r ye x p a n s i o n .B a n k s4 t o 7 a n d b a n k1 2 a r eo n l yu s e f u li f t h e

e m p t ys o c k e ti n s i d ey o u rm a c h i n eh a sb e e nf i t t e dw i t ha n " i n t e r n a l "

R O Mc h i p .B a n k s5 t o 1 1a n d1 3 a r eo n l yu s e f u li f a c a r t r i d g eR O Mi s

p l u g g e di n t oy o u rm a c h i n e .A n de v e ni f y o uh a v et h e s e e x t r a t h i n g s

f i t t e d ,c h a n c e sa r et h a ta c o m m e r c i a ls o f t w a r eh o u s eh a s t a k e nc a r eo f

a l l t h eb a n k i n gy o u ' r el i k e l y t on e e d ,l e a v i n gy o uw i t hl i t t l et o l o o ka t

f o rf u n .

1 d o n ' tl i k et h e t e r m' b a n k ' a si t i s u s e do n t h i sm a c h i n e .T h e s e

n u m b e r sr e p r e s e n t c o n f i g u r a t i o n s ;e a c hs o - c a l l e db a n ki s a n a s s e m

b l yo f v a r y i n gp a r t so f m e m o r y .

O n l y' B a n k0 ' i s n o t a m i x t u r e :i t u s e so n ek i n do f m e m o r yo n l y ,t h e

R A Mw h e r ey o u rB a s i cp r o g r a m sa r e h e l d( u s u a l l yc a l l e dR A M0 ) .A l l

t h e o t h e r s a r em i x t u r e so f d i f f e r e n tt y p e so f m e m o r ya p p e a r i n ga t

v a r i o u sa d d r e s s e s .E v e nb a n k0 i s s l i g h t l y" i m p u r e "- a d d r e s s e sh e x

F F 0 0t o F F 0 4a r e n o tR A M ,t h e y h o l da s p e c i a lm e m o r yc o n t r o lc h i p

c a l l e dt h eM M U( m e m o r y m a n a g e m e n tu n i t ) .

B a n k1 , f o r e x a m p l e ,i s a l m o s te n t i r e l yt h e R A Mw h e r eB a s i c ' s

v a r i a b l e s ,a r r a y sa n ds t r i n g sa r e s t o r e d( R A M1 ) .B u tt h e r e ' sa l i t t l eb i t

o f b a n k0 s t i l li n t h e r e ,a t a d d r e s s e s2 t o 1 0 2 3 ;a n dt h eM M Ui s s t i l l

p r e s e n ta t F F 0 0t o F F 0 4 .I n f a c t ,t h e s ei t e m sw i l lb e t h e r ei n a l l

" n o r m a l "c o n f i g u r a t i o n s .

B a n k s0 a n d1 , t h e n , a r ep u r eR A M ,r a n d o ma c c e s sm e m o r y .Y o uc a n

s t o r et h i n g st h e r e ,a n dy o uc a nr e a dt h ec o n t e n t so f t h e s e a d d r e s s e s .

B u ty o u ' dh a v et r o u b l er u n n i n g m o s tm a c h i n el a n g u a g ep r o g r a m si n

o n eo f t h e s eb a n k s( d o n ' tl e t t e r m i n o l o g yt h r o wy o u :I m e a n ," i no n e

o f t h e s ec o n f i g u r a t i o n s " ) .Y o uh a v e n oi n p u t / o u t p u tp a t h sa v a i l a b l e

f r o mt h e s ec o n f i g u r a t i o n s ,a n d y o ud o n ' th a v et h eb u i l t - i no p e r a t i n g

s y s t e m( t h e' K e r n a lR O M ' )t o h e l pt h e p r o g r a md o i t s j o b . I nm o s t

c a s e s ,y o u ' df i n db a n k1 5 ( h e xF ) t ob e m u c hm o r eu s e f u lf o rr u n n i n ga

p r o g r a m .

E x c u s et h eh e x a d e c i m a l n u m b e r s ,b u t s e r i o u sa r c h i t e c t u r es t u d e n t s

w i l lw a n tt o s e et h e mt h a tw a y .B a n k1 5 ( F )h a sR A M0 f r o ma d d r e s s2

t o $ 3 F F F ;a b o v et h a ti s t h eR O Mt h a th o l d s t h e B a s i cl o g i c ,f r o m4 0 0 0

t o B F F F ;a b o v et h a ti s t h e K e r n a lo p e r a t i n g s y s t e m ,i n t w oc h u n k s

f r o mC 0 0 0t o C F F Fa n d E 0 0 0t o F F F F ;a n df i n a l l y ,t h e b l o c kf r o m

D 0 0 0t o D F F Fi s u s e df o rt h eI n p u t / O u t p u t( I / O )c h i p s .I f y o un e e dt o

u s et h e c h a r a c t e rg e n e r a t o r ,B a n k1 4 ( E )h a st h es a m ea r c h i t e c t u r e

e x c e p tt h a tt h eb l o c kf r o mD 0 0 0t o D F F Fc o n t a i n st h ec h a r a c t e rs e t

i n s t e a do f I / O .

W h e ny o ug i v e aB A N Kc o m m a n d ,n o t h i n gh a p p e n s ;t h en u m b e ry o u

s u p p l yi s s t o r e d( a ta d d r e s s$ 0 3 D 5 ) .I t w o n ' tb e u s e du n t i ly o ug i v ea

c o m m a n dw h i c hn e e d st h i sn u m b e r :P O K E ,P E E K ,S Y S ,W A I Ta n d

s o m eo f t h eD O Sc o m m a n d ss u c ha s B L O A Da n d B S A V E . E v e nt h e n ,

t h ec o m p u t e rw i l lo n l ys e tu p t h e c o n f i g u r a t i o nf o ra f l e e t i n gm o m e n t

w h i l ei t t r a n s f e r sm a t e r i a lt o o r f r o mt h es e l e c t e db a n k .

R o l lY o u rO w n

S oy o uh a v eo n l yb a n k s0 , 1 , 1 4a n d1 5 f o ry o u rw o r k .N op r o b l e mf o r

a B a s i cp r o g r a m m e rw h om i g h to c c a s i o n a l l yP E E Ka n dP O K E .B u tf o r

t h e s e r i o u sm a c h i n el a n g u a g ep r o g r a m m e r ,i t ' ss o m e w h a tl i m i t i n g .T o

k e e pt h eK e r n a la n dI / O , t h ep r o g r a m m e ri s f o r c e dt o s e l e c tB A N K1 5 ;

a n dt h a tl i m i t st h ep r o g r a mt o R A Mi n t h ea r e ab e l o w$ 4 0 0 0( d e c i m a l

1 6 3 8 4 ) .T h i s c o u l db e s o m e w h a tr e s t r i c t i n g ,e s p e c i a l l yw h e na h i g h -

r e s o l u t i o ns c r e e nm i g h tr e s i d ei n t h es a m ea r e a .

T h e r e ' s h o p e .I n f a c t ,t h e r e a r e s i x t e e n a r c h i t e c t u r e st h a tt h e M L

p r o g r a m m e rc a nu s e .O n l yf o u ro f t h e mh a v eB A N Kn u m b e r s ,b u t t h e

o t h e r sc a nb e r e a c h e d b ys t o r i n ga v a l u ea t $ F F 0 0 .

T a b l e1 s h o w sa l l t h ep r a c t i c a lc o m b i n a t i o n s .H e r e ' s aq u i c kr u n d o w n

o n s o m eo f t h em o s ti m p o r t a n t :

0 0 - S t o r i n gt h i sv a l u ei n F F 0 0c a u s e st h e C 1 2 8t o t a k eu p i t s

" n o r m a l "B A N K1 5 c o n f i g u r a t i o n .U s et h i sb e f o r e r e t u r n i n gt o B a s i c .

3 F a n d 7 F- S t o r i n g$ 3 Fi n t oF F O Oc r e a t e s t h eB A N K0 a r c h i t e c t u r e

s t o r i n g$ 7 Fc r e a t e sB A N K1 . C a r e f u l :y o uh a v e n oI / Oo r K e r n a lR O M .

T h e r e ' sa s h o r t c u tt o t h e s ea r c h i t e c t u r e s :s t o r i n ga n y t h i n gt o F F 0 1

c r e a t e sB a n k0 ; s t o r i n ga n y t h i n gt o F F 0 2c r e a t e sB a n k1 .

O Ea n d4 E - S t o r i n g$ 0 Ei n t oF F O Oc r e a t e s t h eR A M0 f o ra d d r e s s e s

u p t o B F F F ;s t o r i n g$ 4 Ec r e a t e sR A M1 f o rt h i sa r e a .T h eK e r n a la n d1 /

O t a k eu p t h e i rn o r m a lp o s i t i o n s .T h i sa r et h e" i d e a l "c o n f i g u r a t i o n

f o rs e r i o u sm a c h i n el a n g u a g es t u f f :0 E f o ra p r o g r a mi n R A M0 , a n d4 E

f o r a p r o g r a mi n R A M1 . B a s i ci s r e m o v e d ,a n d y o uh a v el o t so f

m e m o r yt o p l a y w i t h .

O Fa n d4 F - T h e s ea r es i m i l a rt o 0 E a n d4 E a b o v e , e x c e p tt h a tt h e

c h a r a c t e rg e n e r a t o r c h i pi s a t a d d r e s s e s$ D 0 0 0t o D F F Fi n s t e a do f I / O .

T h eT r a n s a c t o r J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 39: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 39/88

U s e o n eo f t h e s e c o n f i g u r a t i o n s( b r i e f l y )w h e ny o u n e e dt o e x a m i n e

t h ep i x e l so f t h e c h a r a c t e r g e n e r a t o r ; b u td o n ' tc a l la n yi n p u to r o u t p u t

w h e ny o ua r es e tu p t h i sw a y .

0 2 , 0 3 ,4 2 a n d4 3 - T h e s ea r e c u r i o u s c o n f i g u r a t i o n st h a tk e e pt h e

u p p e rh a l fo f B a s i c( f r o m8 0 0 0t o B F F F ) .T h e yw o u l dn o t b e u s e d

m u c he x c e p t b ye n t h u s i a s t sw h ow a n t e dt o g e ta t t h ef l o a t i n gp o i n t

m a t hr o u t i n e si n t h a t a r e a .

S u m m a r y

Y o uc a n a r r a n g ea n yo f a n u m b e ro f c u s t o ma r c h i t e c t u r e si f y o un e e d

t o . T h es t a n d a r dB A N K Sa r eo f l i m i t e dh e l p ;u s et h e mt o g e tf r o m

B a s i ca n dt h e n o r g a n i z ey o u ro w na r c h i t e c t u r ew i t ha P O K Et o F F 0 0 .

F F O O

P o k e

V a l u e

0 0

0 1

0 2

0 3

0 E

O F

3 E

3 F

4 0

4 1

4 2

4 3

4 E

4 F

7 E

7 F

T a b l e1 .

(

(

0 1 2 3

R A M 0

R A M 0

R A M 0

R A M 0

R A M 0

R A M 0

R A M 0

R A M 0

R A M 1

R A M 1

R A M 1

R A M 1

R A M 1

R A M 1

R A M 1

R A M 1

T h es i x t e e n' u s e f u l 'a r c h i t e c t u r e s .

A d d r e s s e sw h o s e

4 5 6 7

R O M

R O M

R A M 0

R A M 0

R A M 0

R A M 0

R A M 0

R A M 0

R O M

R O M

R A M 1

R A M 1

R A M 1

R A M 1

R A M 1

R A M 1

d i g i t sa r e

8 9 A B

R O M

R O M

R O M

R O M

R A M 0

R A M 0

R A M 0

R A M 0

R O M

R O M

R O M

R O M

R A M 1

R A M 1

R A M 1

R A M 1

f i r s th e ;

C E F

R O M

R O M

R O M

R O M

R O M

R O M

R A M 0

R A M 0

R O M

R O M

R O M

R O M

R O M

R O M

R A M 1

R A M 1

{ )

)

D

I / O

C G E N

I / O

C G E N

I / O

C G E N

I / O

R A M 0

I / O

C G E N

I / O

C G E N

I / O

C G E N

I / O

R A M 1

B a n k

N u m b e r

" B A N K1 5 "

" B A N K1 4 "

" B A N K 0 "

" B A N K1 "

S t o r e

t o

F F 0 3

F F 0 1

F F 0 4

F F 0 2

N o t et h a ti n a l l c o n f i g u r a t i o n s , t h ef i r s t1 Ko f m e m o r y( a d d r e s s e s0 0 0 2

t o 0 3 F F )i s a l w a y sR A M 0 .A d d r e s s e s0 a n d 1 a r e i n t e r n a lt o t h e

p r o c e s s o rc h i p .

A n A r c h i t e c t u r e - T e s t i n gP r o g r a m

Y o um i g h tl i k et o t r yy o u rh a n da t c h e c k i n gt h e t y p eo f a r c h i t e c t u r e

t h a tr e s u l t sw h e ns p e c i f i cv a l u e sa r ep o k e di n t ol o c a t i o n$ F F 0 0 .R u n

t h i sp r o g r a m ,s u p p l ya v a l u e ,a n ds e ew h a t y o ug e t .

T h e" b u s i n e s se n d "i s a m a c h i n el a n g u a g ep r o g r a mw h i c ht r i e st h e

a r c h i t e c t u r ea n dp e e k sv a r i o u sl o c a t i o n s ,r e p o r t i n gw h a ti t f i n d s .S u c h

a p r o g r a mm u s tb e t u c k e di n t ot h ef i r s t1 Ko f m e m o r y :t h a t ' st h eo n l y

p l a c et h a ti s s a f ef r o ma r c h i t e c t u r e s w i t c h e s .

T h es p e c i f i cl o c a t i o n se x a m i n e db y t h ep r o g r a ma r e( h e x ) :3 0 0 0 , 6 0 0 0 ,

B 0 0 0 ,F 0 0 0 ,a n dD 0 2 0 .A v a l u eo f 0 i s p o k e dt o t h e s el o c a t i o n si n R A M

0 , a v a l u eo f 1 i n R A M1 . T h eR O Mv a l u e sa r ef i x e d ,h o p e f u l l y :6 0 0 0

c o n t a i n s6 0 ,b O O Oc o n t a i n s4 C ,a n dF 0 0 0c o n t a i n s2 9 .A t D 0 2 0 ,t h e

c h a r a c t e rg e n e r a t o r c o n t a i n s7 8 ,a n dw em a k es u r et h a tt h ev i d e o c h i p

b o r d e rc o l o u ri s s e t t oi t sn o r m a lv a l u eo f F D .

T h em a c h i n el a n g u a g ep r o g r a ms e t st h er e q u e s t e d v a l u ei n t oF F O O ,

a n dt h e nt e s t st h ec o n t e n t so f t h es p e c i f i c l o c a t i o n s .A z e r oi s t a k e nt o

b e R A M0 ; a 1 t o b e R A M1 ; o t h e rv a l u e sa r et e s t e df o ra m a t c ht o t h e

k n o w nR O Mv a l u e s .I f n o n eo f t h e s e a r e r e c o g n i z e d , t h en u m e r i c

v a l u ei s p r i n t e d .E a c hl o c a t i o ni s t e s t e df i v et i m e s ;i f t h ev a l u ei s n o t

c o n s t a n tf o r e v e r yr e a d ,i t ' s l i k e l y" n o tt h e r e "a n d i s s h o w na s

V A R Y I N G .

C 1 2 8 A r c h i t e s t e r

1 0 d a t a1 2 0 , 1 4 1 ,

2 0 d a t a1 7 4 ,

3 0 d a t a1 7 4 ,

4 0 d a t a1 7 4 ,

5 0 d a t a1 7 4 ,

6 0 d a t a1 7 4 ,

7 0 d a t a1 6 9 ,

0 , 2 5 5

0 , 4 8 , 1 4 2 , 1 2 8 , 2

0 , 9 6 , 1 4 2 ,1 2 9 , 2

0 , 1 7 6 , 1 4 2 , 1 3 0 ,2

0 , 2 4 0 , 1 4 2 , 1 3 1 ,2

3 2 , 2 0 8 ,1 4 2 , 1 3 2 ,2

0 , 1 4 1 , 0 , 2 5 5 ,8 8 , 9 6

8 0 f o rj = d e c ( "2 5 0 " )t o d e c ( "2 7 8" )

9 0 r e a dx : t= t + x : p o k ej , x

1 0 0n e x tj

1 1 0i f t < > 4 3 0 5t h e ns t o p

1 2 0 f o r j= 3 t o 0 s t e p ~ 1

1 3 0b a n k j

1 4 0p o k ed e c ( "3 0 0 0 ") , j : a ( 0 , 0 )= - 1

1 5 0 p o k ed e c ( "6 0 0 0 ") , j : a ( 1 , 0 )= d e c (

1 6 0 p o k ed e c ( "b O O O ") , j : a ( 2 , 0 )= d e c (

6 0 '

' 4 c "

1 7 0p o k ed e c ( " f O O O ") , j : a ( 3 , 0 )= d e c ( "2 9 "

1 8 0 p o k ed e c ( "d 0 2 0 ") , j : a ( 4 , 0 )= d e c ( "7 8 '

1 9 0n e x tj

2 0 0 b a n k1 5

2 1 0p o k ed e c ( "d 0 2 0 '

2 2 0a $ ( 0 )=

2 3 0 a $ ( 1 )=

2 4 0a $ ( 2 )=

2 5 0a $ ( 3 )=

2 6 0a $ ( 4 )=

" ) , 2 5 3

1 1 0 4 0 0 - 3 f f f "

" 4 0 0 0 - 7 f f f "

" 8 0 0 0 - b f f f "

11 c O O O - c f f f / e O O O - f f f f "

" d O O O - d f f f "

2 7 0i n p u t" v a l u eo f S f f O Op o k e ( h e x ) "; x $

2 8 0x = d e c ( x $ ) : i fx > 2 5 5g o t o2 7 0

2 9 0f o rt = 1 t o 5

3 0 0 s y s d e c ( " 0 2 5 0 " ) , x

3 1 0f o rj = 0 t o 4 : a ( j , t )= p e e k ( j+ d e c ( "0 2 8 0 ") ) : n e x tj

3 2 0 n e x t t

3 3 0 f o r j= 0 t o 4 : q =f r e ( 1 )

3 4 0a = a ( j , 1 ) : r $=

3 5 0f o rt = 2 t o 5 : i fa < > a ( j , t ) t h e na = 4 4 4

3 6 0 n e x t t

' r a m O "

' r a m 1"

1 r a m 2 "

" r a m 3 "

4 1 0i f a = a ( j , O )t h e nr $ = " r o m ": i fj = 4 t h e nr $ = " c g e n '

4 2 0i f j = 4 a n da = 2 5 3t h e nr $ = " i / o "

4 3 0i f a = 1 2 0t h e nr $ = " c g e n "

4 4 0i f a = 4 4 4t h e nr $ = " v a r i e s "

4 5 0 i f r $ = " " t h e nr $ = s t r $ ( a )

4 6 0p r i n ta $ ( j ) ; "- " ;

4 7 0p r i n tr $

4 8 0n e x ti

3 7 0 i f a= O t h e n r $=

3 8 0 i f a = 1 t h e nr $ =

3 9 0 i f a = 2 t h e nr $ =

4 0 0 i f a = 3 t h e nr $ =

T h eT r a n s a c t o r 3 5 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 40: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 40/88

G e t t i n gT h eC 1 2 8 ' s

C P / M +I n G e a r

C l i f t o nK a r n e s

G r e e n s b o r o ,N C

A f t e rs t a t i n gw ef e l tt h e r ew a sn o te n o u g hd e m a n df o rm o r eC P / M

i n f ot h a ni s a l r e a d ya v a i l a b l e ,w ew e r ed e l u g e dw i t hl e t t e r s .S e v e r a lo f

t h er e s p o n s e se x p l a i n e di t w a sj u s tt h ec o n t r a r y- t h a tw h a tl i t t l eC P / M

i n f oi s a r o u n d ,i s h a r dt o f i n d .S oh e r ei s t h ef i r s to fw h a tw eh o p ew i l l

b e m o r ea r t i c l e so n C 1 2 8C P / M + .- E I C .

O n eo f t h en i c e s tt h i n g sa b o u tt h en e wC 1 2 8 a n d1 5 7 1d i s k d r i v ei s

t h a tt h e yh a v ea C P / Mm o d et h a tc a nr e a dr e a lC P / Md i s k s .T h e

s y s t e ma s s u p p l i e dh a ss o m ee x c e l l e n tf e a t u r e sb u t u n f o r t u n a t e l yi t i s

i n c o m p l e t e .T h e r ei s , h o w e v e r ,a s o l u t i o n .

I n t h i s a r t i c l eI w i l ld i s c u s sh o wt o g e tt h eC l 2 8 ' sC P / M+ s y s t e mu p t o

p a r ,h o wt o b e g i n t a p p i n gt h eh u g es o u r c eo f p u b l i cd o m a i ns o f t w a r e ,

a n dd e s c r i b es o m el a n g u a g ei m p l e m e n t a t i o n s( b o t hc o m m e r c i a la n d

p u b l i cd o m a i n )t h a tI ' v et r i e do n t h eC l 2 8 i n C P / Mm o d e .

W h e r e ' st h eA s s e m b l e r ?

T h ef i r s tt h i n gy o u ' l ln o t i c ea b o u tt h e C P / M +d i s k si s t h a tt h e y

c o n t a i nn o A s s e m b l e r( M A C ) ,d e b u g g e r( S I D ) ,o r a n yo f t h e o t h e r

u t i l i t i e sa n ds o u r c ef i l e st h a ta r es u p p o s e dt o c o m ew i t hC P / M+ . T h i s

p r o b l e mi s e a s i l ys o l v e d .J u s ts e n di n t h ec a r df o rt h e" D R IS p e c i a l

O f f e r "( a n d$ 1 9 . 9 5 ) .C o m m o d o r ew i l ls e n dy o ut h em i s s i n gu t i l i t i e s

a n da h u g em a n u a l .

W h e r e ' st h eI / O ?

T h en e x t t h i n gy o u ' l ln o t i c ea b o u tt h eC P / M +i s t h a t ,b e s i d e s t h e

c o n s o l ea n dd i s k ,a l l t h es e r i a lI / Or o u t i n e s a r en u l l .T h i sm e a n st h a t

t h e U s e r ' sP o r ti s d e a d .I f y o u rp r i n t e ru s e st h i sp o r t o ry o uh a v ea

m o d e my o u w o u l dl i k et o u s e ,y o ua r eo u to f l u c k .B u td o n ' t d e s p a i r .

W h e r e ' st h eS t a n d a r dA S C I I ?

T h en e x tq u e s t i o nt h a tm a ya r i s er e g a r d sA S C I I .C P / Mu s e ss t a n d a r d

A S C I Ia n dt h e1 2 8i m p l i e si t d o e s( s e et h eS E T K E Yu t i l i t y ) .T h i si s t r u e

i n p a r t .T h ec h a r a c t e r s s e n tt o t h es c r e e na r es t a n d a r dr e p r e s e n t a t i o n s( c h a r a c t e r su n u s u a lt o P e t s c i ia r ef o r m e dw i t ht h eC T R Lk e yp l u s t h e

k e yt h a tm o s tn e a r l yr e s e m b l e st h ec h a r a c t e re g .C T R L[ a n dC T R L]

f o rl e f ta n dr i g h tc u r l y b r a c k e t s ,C T R L/ f o rb a c k s l a s h ) .B u tt h ec o d e s

s e n tt o t h ep r i n t e ra r e P e t s c i ia n dt h e r e ' sn o w a yt o c h a n g et h a t . I n

o t h e rw o r d s ,i f y o u ' v eg o ta f l e x i b l ep r i n t e rl i k et h eS t a rS G - 1 0a n da n

i n t e r f a c e ,y o uc a n ' tg e t o u t o f e m u l a t i o nm o d et o u s e a n yo f t h e

p r i n t e r ' se x t r a f e a t u r e s o rf o rt h a tm a t t e ri t s s t a n d a r dc h a r a c t e r st h a t

a r e n ' t p a r to f P e t s c i i .T h e r e ' s h o p e .

C o m m o d o r e , C o m p u S e r v ea n dI r vH o f ft o t h eR e s c u e !

C B ME n g i n e e r i n g( i n t h e g u i s eo f V o nE r t w i n e )h a sb e e n w o r k i n g o n

t h e s ep r o b l e m sa n d t h e r ei s a n e wa p p r o v e dC P / M +o p e r a t i n gs y s t e ma v a i l a b l ef r e et o a l l o n C o m p u S e r v e .T h i sn e wo p e r a t i n g

s y s t e me n a b l e st h e s e r i a lI / O s o y o u rU s e r ' sP o r t i s u n d e a d .I n

a d d i t i o nt o t h e n e wo p e r a t i n gs y s t e m ,t h e r e ' sa n e wu t i l i t yc a l l e d

C O N Ft h a ta l l o w sy o ut o c o n f i g u r ey o u r s y s t e mu s i n ga n A S C I Ip r i n t e r ,

d u a ld i s kd r i v e s ,d e f i n eb a u dr a t e ,s c r e e na n dc u r s o rc o l o r s ,k e yf e e l ,

a n dm u c hm o r e .I f t h i sw e r e n ' te n o u g ht h e r ei s e v e na m o d e m

p r o g r a mf o rt h e1 2 8a v a i l a b l eo n C o m p u S e r v e : I M Pb y I r vH o f f .I M Pi st h e l a t e s tC P / Mm o d e mp r o g r a mi n t h eh o n o r a b l el i n et h a tb e g a n

w i t hM O D E M 7 .T h i sm o d e mp r o g r a mi s e x c e l l e n ta n do p e n s u pt h e

w o r l dt o C P / M e r s .

H o wc a ny o ug e tt h i ss t u f f ?F i r s ty o u m u s tb e a m e m b e ro f C o m p u

S e r v e .I fy o u ' r e n o tt h e nt h i si s a g o o dt i m et o j o i n .Y o u ' l ln e e dV I D T E X

4 . 0 Ct o s t a r td o w n l o a d i n g .A l lo f t h i sm a t e r i a li s i n D L 3o f C P M - I G .

C P M - I G( t h eC P / MS p e c i a lI n t e r e s tG r o u p o n C o m p u S e r v h a s

s t a r t e dD L 3a s a D a t aL i b r a r ys p e c i f i c a l l yf o rC 1 2 8C P / M e r s .N i c e .

T h et h i n gt o d o f i r s ti s d o w n l o a dC 1 2 8 . I R V . T h i sf i l ee x p l a i n sw h i c h

o t h e rf i l e sa r en e e d e da n dh o wt o g e t t h e m .Y o u ' l ln e e dN E W S Y S -

. C O M( t h i sc r e a t e sa n e wC P / M+ o p e r a t i n gs y s t e m ) ,I M P - C 8 . B I N a I M P . D O C( t h i si s t h em o d e mp r o g r a ma n di t sd o c u m e n t a t i o n ) ,I 2 C 8 -

l . A S M( t h i si s a n o v e r l a yt o l e ty o uc u s t o m i z et h em o d e mp r o g r a m ) ,

C O N F . C O Ma n dC O N F . H L P( t h e s ea l l o wy o ut o s e ts y s t e m p a r a m e t e

a n dt e l ly o uh o w ) ,C 1 5 7 1. C O M( t h i sn e a r l yd o u b l e st h e w r i t es p e e do f

t h e 1 5 7 1i n C P / Mm o d e ) .I n a d d i t i o n t h e r e a r et w of i l e st o h e l py o u

w i t ht h ed o w n l o a d i n gp r o c e s s :B I B O O T . I M G( f o rs i n g l ed r i v eu s e r s )

a n d6 4 C O N V( f o ru s e r s w i t ht w od r i v e s ) .E v e na t 3 0 0 b a u dn o n eo f

t h e s ef i l e sa r e l o n ge n o u g ht o b e v e r ye x p e n s i v et o d o w n l o a d .I

r e c o m m e n dt h a ti f y o u ' r en o t am e m b e ro f C o m p u S e r v ey o uj o i n ,b u t

i f f o r o n e r e a s o no r a n o t h e rt h e w a yo f g e t t i n gt h i ss o f t w a r eI ' v e

d e s c r i b e di s n ' ta p p e a l i n g ,t h e ny o uc a ns e n dm ea f o r m a t t e dC P / M+

d i s k ,a n dS A S Ea n d$ 3 . 0 0a n dI ' l lc o p yt h ef i l e sf o ry o u .

F r e e S o f t w a r e

N o wt h a ty o u ' v eg o ty o u r s y s t e m t u n e du p y o u ' l lw a n tt o g e ts o m ef r e e

s o f t w a r e .T h eb e s t p l a c et o g e t s t a r t e di s t o l o o ki n t ot w o b o o k s o nt h e

s u b j e c t :F r e e S o f t w a r eb y R o b e r tA . F r o e l i c h( N e wY o r k :C r o w n

P u b l i s h e r s ,1 9 8 4 )a n dH o wt o G e t F r e e S o f t w a r e b yA l f r e dG l o s s b r e n -

n e r( N e wY o r k :S t . M a r t i n ' sP r e s s , 1 9 8 4 ) .B o t ho f t h e s ew o r k sg i v e

e x c e l l e n ti n t r o d u c t i o n st o o b t a i n i n gf r e es o f t w a r e .

T h e r ea r et w ob a s i cw a y st o g e tp u b l i cd o m a i ns o f t w a r e :d o w n l o a di t

o r b u yt h ed i s k s .Y o uc a nd o w n l o a df r o ma c o m m e r c i a ld a t a b a s e ,l i k e

C o m p u S e r v eo r f r o ma b u l l e t i nb o a r d .Y o ud o n ' ta c t u a l l yb u yp u b l i c

d o m a i ns o f t w a r e( o r s h o u l d n ' t ) b u tm o s tu s e r ' sg r o u p sc h a r g ea

d o n a t i o nf o r e q u i p m e n tw e a r - a n d - t e a r ,e t c . a n d t h e r ea r e c o p y

s e r v i c e st h a tc o p yp u b l i cd o m a i np r o g r a m sf o r p r o f i t( y o u ' r ep a y i n g

T h eT r a n s a c t o r 3 6 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 41: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 41/88

f o r t h e i rs e r v i c e- n o t t h e s o f t w a r e ) .W h i c hp r o c e d u r ei s m o r e

e c o n o m i c a l ?T h a td e p e n d so n y o u rs i t u a t i o n .I f y o u ' v eg o t a1 2 0 0b p s

m o d e ma n da l o c a lb u l l e t i nb o a r do r i f t h ef i l e sy o u ' r ei n t e r e s t e di n a r e

f a i r l ys h o r tt h e nd o w n l o a d i n gi s t h ew a yt o g o .I f ,h o w e v e r ,y o u ' r e n o t

i n t h i ss i t u a t i o n ,i t c a nb e c o m ev e r ye x p e n s i v et o d o w n l o a dp r o g r a m s

w i t ha l l t h e r e l e v a n tf i l e s .T h ec o s t sv a r y w i t hb u y i n gt h e d i s k s

t h e m s e l v e s f r o ms o m e t h i n gl i k ea d o l l a ra d i s kf o rl o c a lu s e r ' sg r o u p s

( y o u ' l lu s u a l l yh a v et o j o i nt h eg r o u pt o o ,w h i c hw i l lb e a r o u n d$ 1 0-

$ 2 5 )t o $ 1 5a n du p f o rc o p ys e r v i c e s .

T h e r ea r e t w op r i n c i p a ln a t i o n a ls o u r c e so f C P / Mp u b l i cd o m a i n

s o f t w a r eo n d i s k s :C P / MU s e r ' sG r o u p( C P M U G )a n d t h e S p e c i a l

I n t e r e s tG r o u pf o rM i c r o c o m p u t e r s( S 1 G / M ) .T h e s eg r o u p s b o t hh a v e

e x t e n s i v el i b r a r i e s .T h e s eb o o k sd i s c u s sb o t ht h e s es o u r c e sa t l e n g t h .

A sf o rt h ef o r m a t st h a tw i l lw o r ko n y o u r1 2 8 :K a y p r o 2 ,4 , I B MC P / M

8 6 a n d O s b o r n eD o u b l e - D e n s i t ya l l w o r kf i n e .T h a tc o v e r sa l o to f

t e r r i t o r y .M o s to f t h e p u b l i cd o m a i ns o f t w a r eo u t t h e r ei s f o rC P / M2 . 2 ,

b u tI h a v e n ' tf o u n da n yi n c o m p a t i b i l i t i e s y e tw i t ht h eC P / M3 . 0o n t h e

1 2 8 .

P r o g r a m m i n gL a n g u a g e s

T h em a i nr e a s o nm a n yo f y o ua r ei n t e r e s t e di n C P / Mi s t h ep r o g r a m

m i n gl a n g u a g e sa v a i l a b l e .M a n yl a n g u a g e sa r e e v e ni n t h e p u b l i c

d o m a i n .T h em o s tf a m o u so f t h e s ei s p e r h a p sS m a l l - C .W h a tf o l l o w s

i s a n a n n o t a t e dl i s t i n go f c o m m e r c i a lp r o g r a m m i n gl a n g u a g e sa n d

e d i t o r sI ' v et r i e dt h a ta r e l o wi n p r i c ea n dt h a tw o r ko n t h e 1 2 8 ,

f o l l o w e db ys o m ep u b l i cd o m a i np a c k a g e sa v a i l a b l ef r o mt h e n a t i o n a l

u s e r ' sg r o u p sm e n t i o n e da b o v e .

T h eB e g i n n i n g

A l t h o u g ht h i si s t h ee n do f o u rs m o r g a s b o r do f i n f o r m a t i o no n C 1 2 8

C P / M+ , I h o p ei t w i l lb e t h eb e g i n n i n gf o ry o u . F i n da s o u r c ea n d

s t a r tc h e c k i n gt h e s t u f fo u t .M a y b et h e T r a n s a c t o rw i l le v e ns t a r t

g i v i n ga p a g ee a c hi s s u et o C l2 8 C P / M+ d e v e l o p m e n t s .

C l i f t o nK a r n e s

2 5 1 9 O v e r b r o o k D r .

G r e e n s b o r o ,N C 2 7 4 0 8

( 9 1 9 ) 3 7 3 - 7 8 9 2

A d d r e s s e so f S o f t w a r e S o u r c e sM e n t i o n e d

M i xS o f t w a r e

2 1 1 6E . A r a p a h o

S u i t e3 6 3

R i c h a r d s o n ,T X 7 5 0 8 1

( 2 1 4 ) 7 8 3 - 6 0 0 1

E l l i sC o m p u t i n g

3 9 1 7N o r i e g aS t .

S a nF r a n c i s c o ,C A 9 4 1 2 2

( 4 1 5 ) 7 5 3 - 0 1 8 6

S o f t w a r eT o o l w o r k s

1 4 4 7 8G l o r i e t t a D r .

S h e r m a nO a k s ,C A 9 1 4 2 3

( 8 1 8 ) 9 8 6 - 4 8 8 5

S 1 G / MM a i nO f f i c e( w r i t et o t h e m

t o f i n dy o u rn e a r e s tS I G / Mr e p r e

s e n t a t i v e )

B o x9 7

I s e l i n ,N J 0 8 8 3 0

C P M U G

1 6 5 1 T h i r d A v e .

N e wY o r k ,N Y 1 0 1 2 8

C U s e r ' sG r o u p( C U G )

B o x9 7

M c P h e r s o n ,K S 6 7 4 6 0

( 2 1 6 ) 2 4 1 - 1 0 6 5

L a n g u a g e D e s c r i p t i o n P r i c e S u p p l i e r

M 1 X C F u l lK & RC c o m p i l e rw i t hU N I Xf u n c t i o n s ,4 0 0 - p a g e m a n u a l $ 3 9 . 9 5 M I XS o f t w a r e

N e v a d aF O R T R A NF o r t r a n I Vw i t h7 7 e x t e n s i o n s $ 4 9 . 9 5 E l l i sC o m p u t i n g

N e v a d aC O B O L A N S IC O B O L7 4 w i t hl e v e lI I f e a t u r e s $ 4 9 . 9 5 E l l i sC o m p u t i n g

L I S P / 8 0 I n t e r L I S Pd i a l e c t $ 3 9 . 9 5 S o f t w a r eT o o l w o r k s

M I XE d i t F u l ls c r e e n/ S p l i ts c r e e n ,p r o g r a m m a b l e $ 2 9 . 9 5 M i xS o f t w a r e

N e v a d aE d i t F u l ls c r e e n $ 4 9 . 9 5 E l l i sC o m p u t i n g

( I r e c e i v e d e x c e l l e n ts e r v i c ef r o ma l l o f c o m m e r c i a ls o u r c e sl i s t e da b o v e ) .I n a d d i t i o nt o t h e t h e s ec o m m e r c i a lp a c k a g e st h e r e a r es e v e r a l

l a n g u a g e sa v a i l a b l ei n t h e p u b l i cd o m a i n .T h e s ei n c l u d e :

E B A S I C G o r d o nE u b a n k ' sM a s t e r ' st h e s i sa n d a f o r e r u n n e ro f t h e w i d e l yu s e d

C B A S i C

F r e e C P M U GV o l u m e3 0

S m a l l - C ' C p r o g r a m m i n gl a n g u a g e b yR o nC a i n ,w i t h o n l yi n t a n dc h a rd a t at y p e s

b u tw i d e l yu s e d .C o m e sw i t h s o u r c ec o d e .

F r e e C U s e r ' sG r o u p

X L i S P E x p e r i m e n t a lL i s pb y D a v i dB e t z .C o m e sw i t h s o u r c ec o d ei n C . S o o nt o b e

u p g r a d e dt o a s u b s e to f C o m m o nL i s p .

F r e e S I G / M V o l u m e1 1 8

F O R T H - 8 3 F o r t h - 8 3 i m p l e m e n t a t i o nv e r s i o n2 . 0 F r e e S I G / M V o l u m e2 0 4

E - P r o l o g A s m a l l P r o l o gi m p l e m e n t a t i o n .C o m e sw i t hA S Ms o u r c ea n da V A L G O L

c o m p i l e rw r i t t e ni n P r o l o g .

F r e e S I G / M V o l u m e2 4 2

J R TP a s c a l F u l lP a s c a li m p l e m e n t a t i o n F r e e C P M U GV o l u m e8 2

T h i si s j u s ta l i s to f t h em o r ep o p u l a r l a n g u a g e sa v a i l a b l e- t h e r e a r eo t h e r s .A n dl o t so f o t h e rs o f t w a r e i n c l u d i n g :a s s e m b l e r s ,t e x te d i t o r s ,

d i s ku t i l i t i e s( t h e r ea r e t o n so f t h e s e- o n eo f t h eb e s ti s S W E E Pi n i t sl a t e s tv e r s i o n ) ,a n dg a m e s .A s t h et w o b o o k sm e n t i o n e da b o v es h o w

t h e r ei s n o s u c ht h i n ga s c o m p l e t e l yf r e es o f t w a r e ,t h ep r i c ey o up a yf o rp u b l i cd o m a i np r o g r a m s( e i t h e ri n d o w n l o a d i n gt i m eo r t o u s e r ' s

g r o u po r c o p ys e r v i c e )i s u s u a l l y av e r ys m a l lf r a c t i o no f t h ev a l u eo f w o r k .A l s o ,m o s to f t h ea b o v e - m e n t i o n e dp u b l i cd o m a i nw o r k sc a nb e

d o w n l o a d e df r o ma n yn u m b e ro f s o u r c e si f y o uc h o o s et h a t r o u t e .

T h eT r a n s a c t o r 3 7 J u l y1 9 M : V o l u m e7 , I s s u eO l

Page 42: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 42/88

C 1 2 8R A MD i s k N o e lN y m a n ,S e a t t l e ,W A

A d dA 1 6 KR A MD i s k T oY o u r C - 1 2 8W i t hN oA d d i t i o n a lH a r d w a r e !

A R A Md i s ki s a c h u n ko f r a n d o ma c c e s s( r e a d / w r i t e )m e m o r yt h a t a c t s

l i k ea d i s kd r i v e .L O A Da n dS A V Ew o r kw i t hi t . I t c a n n o tb e r e a c h e d b y

s t o r e ,P E E Ko r P O K E .R A Md i s ki s e x t e r n a lh a r d w a r e ,a c i r c u i tb o a r dw i t h

c h i p so f v a r i o u ss o r t s .I f i th a se n o u g hm e m o r yt o b e p r a c t i c a li t i s

p h y s i c a l l yl a r g ea n de x p e n s i v e .

T h ea d v a n t a g eo f R A Md i s ki s s p e e d .F i l e sc a n b el o c a t e da n dL O A D e d

r a p i d l y .S o m ed a t a b a s eu s e r sf i n dR A Md i s k sw o r t h w h i l e . B u ta 1 7 0 KR A M

d i s k c o s t sa b o u tw h a t y o uw o u l dp a yf o ra 1 5 4 1 ,a n dt h em e m o r yg o e s

a w a yw h e nt h ep o w e ri s t u r n e do f f .

I f y o uo w na C - 1 2 8y o uc a nt r y R A Md i s kw i t hn o a d d i t i o n a l o u t l a yf o r

h a r d w a r e .E v e r yC - 1 2 8h a s1 6 Ko f R A Mt h a ti s n o tp a r t o ft h e r e g u l a r

m e m o r ym a p- t h e e i g h t yc o l u m nv i d e oR A M .A l t h o u g ha 1 6 KR A Md i s ki s

s m a l lb y c o m m e r c i a ls t a n d a r d s ,i t w i l lh o l d6 2 b l o c k so f B a s i cp r o g r a m so r

o n e - f o u r t ho f t h e B a s i c v a r i a b l em e m o r y .A n e wB a s i cp r o g r a m ,o r aw h o l e

n e ws e t o f v a r i a b l e v a l u e s ,c a nb e b r o u g h ti n t om e m o r yi n a b o u tt w o

s e c o n d s .

T o u n d e r s t a n dh o wo u rR A Md i s kw i l lw o r k ,y o u m u s tk n o wa l i t t l ea b o u t

t h e e i g h t yc o l u m nd i s p l a ys y s t e m .W eo n l yh a v ea c c e s st o t h e8 5 6 3e i g h t y

c o l u m nv i d e o c h i pa n di t sR A Mt h r o u g ht w oa d d r e s s e so r " p o r t s " .O n eo f

t h e s ep o r t s ,l o c a t e da t B a n k1 5 ,a d d r e s s5 4 7 8 4 ( $ D 6 0 0i n h e x a d e c i m a l ) ,i s

u s e dt o s e l e c ta r e g i s t e ri n t h e 8 5 6 3 .T h eo t h e rp o r t ,l o c a t e da t 5 4 7 8 5

( $ D 6 0 1h e x ) ,i s u s e dt o r e a df r o mo r w r i t et o t h e s e l e c t e dr e g i s t e r .T h e

v i d e o c h i p u s e st h er e g i s t e rd a t at o m a k ec h a n g e so n t h e s c r e e n .T h eb u z z

w o r du s e dt o d e s c r i b et h i s s i t u a t i o ni s " p i p e l i n e d a r c h i t e c t u r e " .

T h e r ea r e 3 7 r e g i s t e r si n t h e v i d e oc h i p .S o m eo f t h e ma r e h i g h / l o w

a d d r e s sv e c t o r s( p o i n t e r s )t o t h ev i d e oR A M .O t h e r sc h a n g ee i g h t yc o l u m n

s c r e e nf u n c t i o n sb y p a s s i n gn u m b e r so r s e t t i n ga n dc l e a r i n gf l a g s .W e ' l l

o n l yb e c o n c e r n e dw i t ht h r e eo f t h er e g i s t e r s .

R e g i s t e r s 1 8a n d1 9 h o l dt h e v e c t o rt o a n a d d r e s si n v i d e oR A M . T h ev e c t o r

i s s t o r e di n H I G H / L O Wo r d e r .M a c h i n el a n g u a g ep r o g r a m m e r sa r eu s e dt o

t w ob y t ea d d r e s s e sb e i n gs t o r e di n t h eo p p o s i t es e q u e n c e ,s o i t ' si m p o r t a n t

t o n o t e t h ed i f f e r e n c e .

R e g i s t e r 3 1i s t h eC P UD a t ar e g i s t e r .T h ev a l u ea t t h ea d d r e s s p o i n t e dt o b y

r e g i s t e r s1 8 / 1 9i s a v a i l a b l ei n r e g i s t e r3 1 .I f w ea c c e s sr e g i s t e r3 1 a n ds t o r e

a n u m b e ra t t h ed a t ap o r t( $ D 6 0 1 ) ,i t w i l lb e p l a c e da t t h e v i d e oR A M

a d d r e s s p o i n t e dt o b y r e g i s t e r s1 8 / 1 9 .T h ev e c t o ra t 1 8 / 1 9i s t h e n

i n c r e m e n t e da u t o m a t i c a l l y .

W h e nw e s t o r e an e wr e g i s t e rv a l u ea t a d d r e s s$ D 6 0 0 ,t h ev i d e oc h i pi s

p r o b a b l yb u s yu p d a t i n gt h e e i g h t yc o l u m ns c r e e n .W eh a v et o w a i tu n t i l

t h ec h i pi s r e a d yt o l o o ka t o u rd a t a ,o r w e g e t e r r a t i cr e s u l t s . B i t* 7 o f

a d d r e s sS D 6 0 0i s h e l dl o ww h e nt h ev i d e oc h i pi s b u s y ,a n dg o e s h i g h

w h e ni t i s r e a d yt o a c c e p tn e wd a t a .T h eR O Mr o u t i n eb e l o wi s u s e db y t h e

8 5 0 2p r o c e s s o rt o c h e c kb i t* 7 .

F C D C A

C D C C

C D C F

C D D 2

C D D 4

C D D 7

A 2 I F

8 E 0 0 D 6

2 C 0 0 D 6

1 0 F B

8 D 0 1 D 6

L D X* $ 1 F

S T X $ D 6 0 0

B I T $ D 6 0 0

B P LS C D C F

S T A$ D 6 0 1

R T S

T h ev i d e or e g i s t e rt o b e a c c e s s e di s s t o r e di n t h eX r e g i s t e ro f t h e8 5 0 2a n d

t h e r o u t i n ei s e n t e r e da t a d d r e s s$ C D C C .T h ev a l u ei n X i s s t o r e da t $ D 6 0 0 .

T h e nt h eB I Tc o m m a n dc h e c k sf o rb i t* 7 t o g o h i g h .U n t i li t d o e s , t h eB P L

c o m m a n dw i l lb r a n c h b a c kt o t h eB I Ti n s t r u c t i o n .O n c eb i t* 7 g o e sh i g h ,

t h ev i d e o c h i pi s r e a d ya n dt h en e wd a t ai s s t o r e da t t h ed a t ap o r t ,$ D 6 0 1 .

I f w e w a n tt o s t o r ed a t ai n r e g i s t e r3 1 , t h e r o u t i n ei s e n t e r e da t a d d r e s s

$ C D C Aw h i c hs t o r e s 3 1 ( $ 1 F )i n X f o r u s . T h e r ei s a c o m p l e m e n t a r

r o u t i n es t a r t i n ga t $ C D D 8t h a tr e a d sa v i d e oc h i pr e g i s t e r .

T h ef o l l o w i n gp r o g r a m sw i l ls t o r ed a t at o t h e1 6 Kv i d e oR A Ma n dr e t r i e v e

i t f o rl a t e ru s e .Y o um u s tu s et h e4 0 c o l u m ns c r e e n w i t ht h e m ,s i n c ea n y

p r i n t i n gd o n et o t h e8 0 c o l u m na r e aw i l lg a r b l et h ed a t ay o u ' v ep l a c e d

t h e r e .B e f o r eR U N n i n gt h ep r o g r a m s ,s w i t c ht o 4 0 c o l u m n m o d e .I f y o u

h a v ea n 8 0c o l u m nm o n i t o ra v a i l a b l e ,c l e a rt h e8 0c o l u m ns c r e e na n dt y p e

t h ef o l l o w i n g :

P O K E5 4 7 8 4 , 2 5 :P O K E5 4 7 8 5 , 1 2 8

S t o r i n g1 2 8i n r e g i s t e r2 5 p u t s t h ev i d e o c h i pi n H i - R e so r b i t m a p p e d

m o d e .T h et w os e t s o f v e r t i c a lb a r sa t t h e t o po f t h es c r e e na r e t h et e x t

( C H R $ ( 3 2 )o n a c l e a r e d s c r e e n )a n da t t r i b u t e ( c o l o rr a m )s c r e e n s .T h e

h o r i z o n t a l b a r sb e l o wa r er e m n a n t so f t h eR A Mt e s td o n e o np o w e r - u p .

T h ef i v ec o l u m n sa t t h e b o t t o ma r e t h e c h a r a c t e rs e t s d a t a .T h eb l a n k

s p a c e sa r e t h e r ef o ra d d i t i o n a lc h a r a c t e r i n f o r m a t i o nf o ra d o u b l ew i d e

c h a r a c t e rm o d e .

B y s w i t c h i n gt o b i t m a p p e dm o d e ,y o u ' l lb e a b l et o s e et h e d a t aa n d

p r o g r a m sb e i n gS A V E dt o R A Md i s k .

L i s t i n g* 1 i s a B a s i cl o a d e rf o r a r o u t i n ed e s i g n e dt o c o p yp o r t i o n so f

m e m o r yf r o ma n yB a n kt o R A Md i s k .E n t e rt h el o a d e r ,R U Ni t , t h e nS A V E

t h er e s u l t i n gm a c h i n el a n g u a g ep r o g r a mb y t y p i n g :

B S A V E" M E M O R YD R A M " ,B O ,P 3 0 7 2T OP 3 1 8 4

T ou s et h er o u t i n e ,s e t - u pt h eb e g i n n i n ga n de n d i n ga d d r e s s e so f m e m o r y

u s i n gt h e s ec o m m a n d s :

S Y S 3 0 7 2 , l b , h b

S Y S 3 0 7 7 , l e , h e

W h e r e :

l b = l o wb y t eo f a d d r e s so f b e g i n n i n go f m e m o r y

h b = h i g h b y t eo f a d d r e s so f b e g i n n i n go f m e m o r y

l e = l o wb y t eo f a d d r e s s( + 1 ) o f e n do f m e m o r y

h e = h i g hb y t eo f a d d r e s s( + 1 ) o f e n do f m e m o r y

F o re x a m p l e ,i f y o uw a n tt o s a v ea l l t h e v a r i a b l e s ( e x c e p td y n a m i cs t r i n g

d a t a )c r e a t e db y a B a s i cp r o g r a m ,t y p e :

S Y S3 0 7 2 ,P E E K ( 4 7 ) ,P E E K ( 4 8 )

S Y S 3 0 7 7 ,P E E K ( 5 1 ) ,P E E K ( 5 2 )

B es u r et h a tn o m o r et h a n1 6 Ko f m e m o r yi s i n v o l v e d .T h e nt y p e :

S Y S3 0 8 2 , 0 , 0 , 1

T h eT r a n s a c t o r 3 8 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO 1

Page 43: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 43/88

T h ef i r s tt w on u m b e r sa f t e rt h eS Y Sa d d r e s sa r et h el o w / h i g hv e c t o rt o t h e

l o c a t i o ni n v i d e oR A Mw h e r et h em e m o r yw i l lb es t o r e d .T h et h i r dn u m b e r

i s t h eB a n kn u m b e ro f t h em e m o r yt o b e c o p i e d .F o rv a r i a b l e s ,t h i sw o u l d

b e B a n k1 .

A f t e rs t o r i n gt o R A Md i s k , t y p e :

P R I N TP E E K ( 2 5 1 ) 1 P E E K ( 2 5 2 )

T h i sw i l lg i v ey o ut h el o w / h i g hv e c t o ro f t h en e x ta v a i l a b l e l o c a t i o ni n

v i d e oR A M .Y o uc a ns t o r e s e v e r a lb l o c k so f m e m o r ya n dr e t r i e v et h e m

i n d e p e n d e n t l yb y k e e p i n gt r a c ko f t h e i rv i d e oR A Ms t a r t i n ga d d r e s s e s .

T o g e tt h ed a t ab a c k ,s e t u p t h es t a r t i n ga n de n d i n ga d d r e s s e sa s a b o v e .

T h e nS Y St o t h e r o u t i n eu s i n gt h es a m ev i d e or a ma d d r e s sv e c t o r s .A d d"

1 2 8 "t o t h eB a n kn u m b e rt o s i g n a lt h er o u t i n et o r e t r i e v ef r o mt h ev i d e o

R A Mr a t h e rt h a nc o p yt o i t . I f r e t r i e v i n g v a r i a b l e sf o ru s e w i t hB a s i c ,y o u

s h o u l da l s oP O K Et h ea p p r o p r i a t e v a l u e si n l o c a t i o n s4 7 / 4 8a n d5 1 / 5 2 .

I f y o u w a n tt o u s et h e e i g h t yc o l u m nt e x ts c r e e n ,y o uc a ns t i l lh a v ea c c e s s

t o 4 Ko fd i s kR A M . T h ea r e ab e t w e e nv i d e oR A Ma d d r e s s e s4 0 4 9 a n d8 1 9 1

i s u n u s e di n t e x tm o d e .I f y o us t o r em o r et h a n4 K i n t h i sa r e a ,y o u ' l l

o v e r w r i t et h ec h a r a c t e rs e t d a t a .

L i s t i n g* 2 i s a B a s i c l o a d e rf o r a r o u t i n et o S A V Ea n d L O A DB a s i c

p r o g r a m s .A sb e f o r e ,e n t e rt h ep r o g r a m ,R U Ni t , a n dt y p et h e f o l l o w i n gt o

S A V Et h em a c h i n ec o d e :

B S A V E" B A S I CD R A M " ,B O ,P 2 9 5 6T OP 3 5 7 3

T oa c t i v a t et h er o u t i n ee n t e r

S Y S2 9 5 6 .

B A S I CD R A MA d d s3 C o m m a n d st o t h eC - 1 2 8 .

M S A V E S A V E st h e B a s i cp r o g r a mi n m e m o r yt o R A Md i s k ,a s s i g n si t a

n u m b e r ,a n ds h o w st h e a m o u n to f m e m o r yr e m a i n i n gi n

R A Md i s k .

M L O A DL O A D sa p r o g r a mf r o mR A Md i s kt o t h e c u r r e n t B a s i c

m e m o r ys p a c ei n B a n k0 . T h ec o m m a n dm u s tb e f o l l o w e d

i m m e d i a t e l y ,n o s p a c e s ,w i t ht h en u m b e r( 0 - 9 )o f a p r o g r a m

a l r e a d yM S A V E d .

M S C R A T C HA s k sf o ra s t a r t i n gp r o g r a mn u m b e ra n d " s c r a t c h e s "t h a t

p r o g r a m a n da l l p r o g r a m sw i t h h i g h e rn u m b e r sf r o mt h e

R A Md i s k .

M L O A Dc a n b ef o l l o w e db y a c o l o na n do t h e rc o m m a n d si n d i r e c tm o d e .

F o re x a m p l e :

M L O A D 2 : R U N

w i l lp l a c ep r o g r a m# 2 f r o mR A Md i s ki n t om e m o r ya n dR U Ni t .

T h e C - 1 2 8h a st w o2 5 6b y t ep a g e sp e r m a n e n t l yd e s i g n a t e df o rR S - 2 3 2u s e

t h a ts i t b e l o wt h e B a s i cp r o g r a ma r e a .T h e s ea r e d e s t i n e dt o b e c o m e

p o p u l a r" s a f e " l o c a t i o n sf o rm a c h i n ec o d e .T h eM E M O R YD R A Mc o d ei s

l o c a t e di n t h eR S - 2 3 2i n p u tb u f f e r .T h eB A S I CD R A Mp r o g r a mi s l o n g e r

a n du s e s b o t hb u f f e r sa n dt h e t o po f t h et a p e b u f f e r a sw e l l .I f y o uR U Na

B a s i cp r o g r a mt h a tu s e sa n yo f t h e s eb u f f e r s ,t h ec o m p u t e rw i l lp r o b a b l y"

c r a s h " .

Y o uc a na l s ou s et h ev i d e oR A Mf r o mC - 6 4m o d e .T h ee i g h t yc o l u m n

s c r e e nw i l lb e a c c e s s i b l e ,p r o v i d e dt h a ty o u ' v eu s e dt h ec o m m a n d" G O 6 4 "

a f t e rf i r s tb o o t i n gi n C - 1 2 8m o d e .L i s t i n g s# 3 a n d* 4 a r e t h eC - 6 4m o d e

v e r s i o n so f t h eM E M O R Ya n d B A S I CD R A Mp r o g r a m s .T h e ya r e r e l o c a t e d

t o s t a r ta t 5 1 2 0 0( $ C 8 0 0 )i n t h e C - 6 4m e m o r ym a p .T h i si s h a l fw a y

b e t w e e nt h e p o p u l a r4 9 1 5 2( $ C 0 0 0 )l o c a t i o nu s e d b ym a n ym a c h i n e

l a n g u a g er o u t i n e sa n d 5 2 2 2 4( $ C C 0 0 ) u s e d b yt h eD O S5 . 1w e d g e .

T o u s e t h eC - 6 4M E M O R YD R A M ,e n t e r :

S Y S 5 1 2 0 0 , l b , h b

S Y S5 1 2 1 2 , l e . h e

S Y S5 1 2 2 4 , 0 , 0 , 0

T h et h r e ez e r o e sa f t e rt h el a s tS Y Sr e p r e s e n ta n yl o w / h i g hb y t ea d d r e s si n

v i d e oR A Ma n dt h ef l a g t os t o r eo r r e t r i e v em e m o r y .S i n c et h e r e a r en o

B a n k si n C - 6 4m o d e ,u s ea z e r ot o s t o r ea n d1 2 8t o r e c o v e r .

F o rC - 6 4B A S I CD R A M ,S Y S5 1 2 0 0t o i n i t i a l i z et h ep r o g r a m .T h e s a m e

t h r e ec o m m a n d sa r ea d d e d a n df o l l o w t h es a m er u l e sa s C - 1 2 8m o d e ,

e x c e p tt h a ta d d i t i o n a lc o m m a n d sc a n n o tb e u s e do n t h es a m el i n ea s

M L O A D .

T od i s a b l eB A S I CD R A Mi n e i t h e rm o d e ,u s et h er e s e ts w i t c hn e a rt h eo n -

o f fs w i t c ho r m a n u a l l yc h a n g et h eE R R O Rv e c t o ra t $ 0 3 0 0 / $ 0 3 0 1t o i t s

d e f a u l t v a l u e .T h eB A S I CD R A M( f o rb o t hm o d e s )i s a c o m p r o m i s e

b e t w e e nf e a t u r e sa n dl e n g t h .I t w i l lg i v ey o ua " D I S KF U L L "e r r o ri f y o u

t r y t oS A V Em o r et h a nt e n p r o g r a m s .B u t i t d o e s n ' tc h e c kf o r a c t u a l

m e m o r yl e f ti n v i d e oR A M .I f y o uS A V Es o m e t h i n gt o ol a r g e ,t h ea d d r e s s

r e g i s t e r sw i l lm e r r i l y" r o l lo v e r "t o z e r oa n ds t o r eo n t o po f d a t ay o u ' v e

a l r e a d y p l a c e dt h e r e .

A s s i g n i n gn u m b e r st o t h ep r o g r a m si s a n o t h e rc o m p r o m i s e .I t w o u l dh a v e

b e e nb e s tt o i n t e r c e p tt h eL O A Da n dS A V Er o u t i n e s , a s s i g na n u n u s e d

d e v i c en u m b e rt o t h e R A Md i s k ,u s ef i l en a m e s ,e t c .T h i sw o u l d h a v e

r e q u i r e da l o tm o r ec o d e ,t o om u c ht o t y p ei n f r o ma m a g a z i n el i s t i n g .

P o s s i b l y t h em o s ts i g n i f i c a n tc o m p r o m i s e w a sm a d et o a l l o wt h eR U N -

S T O P / R E S T O R Ek e y c o m b i n a t i o nt o h a l tB a s i cp r o g r a m s .T h eC - 1 2 8

R E S T O R Er o u t i n e c l e a r sb o t h s c r e e n sw h e ne x e c u t e d . S i n c ec l e a r i n ga

R A Md i s ki s n ' tw h a tw eh a di n m i n d ,t h eN M 1v e c t o ri s r e l o c a t e dt o p o i n tt o

a n a b b r e v i a t e dr o u t i n et h a tl e a v e st h e R A Md i s ka l o n e .T h en o r m a l

R E S T O R Er e s e t ss e v e r a lp o i n t e r s ,N M Ia m o n gt h e m .S i n c ew e c a n ' th a v e

t h a te i t h e r ,t h e p o i n t e r r o u t i n ew a sa l s oe l i m i n a t e d .R E S T O R Eu s e ss e v e r a l

J S Rc a l l st o R O Mr o u t i n e s .T o l e a v e o u to n l ys m a l lp o r t i o n so f t h e s e

r o u t i n e s ,w ew o u l dh a v et o p u tt h eb a l a n c eo f t h e mi n o u r p r o g r a m ,a n d

y o u w o u l dh a v et o t y p et h e mi n . I n s t e a d ,w e ' v el e f to u ts e v e r a lo f t h eJ S R

c a l l s ,a n dk e p tt h em i n i m u mt o g e tB a s i ct o w o r kp r o p e r l y .I f y o u h a v ea

f a v o r i t ep r o g r a mt h a tu s e sa n ym a c h i n ec o d e ,t e s ti t t h o r o u g h l yw h e n

u s i n gi t w i t hB A S I CD R A M .

T h e s ep r o b l e m sd o n ' tp l a g u et h eC - 6 4v e r s i o n .T h e r ei s n o e i g h t yc o l u m n

s c r e e nt o c l e a ro n a C - 6 4 ,s o R E S T O R Ed o e s n ' th a v et h a tf u n c t i o n .W ec a n

l e a v et h en o r m a lN M Ir o u t i n e si n t a c t .

W ed i dh a v et o a d ds o m ec o d et o t h eC - 6 4v e r s i o n ,h o w e v e r .T h eS Y S

c o m m a n di n t h eC - 1 2 8l o o k sf o rv a l u e ss e p a r a t e db y c o m m a sf o l l o w i n g

t h eS Y Sa d d r e s s .T h ef i r s tt h r e ew i l lb e t r a n s f e r r e dt o t h e A , X , a n dY

r e g i s t e r s o ft h e8 5 0 2 . T h i sm a k e sp a s s i n g v a l u e st o M Ls h o r ta n ds w e e t .( A

f o u r t hv a l u ew i l lb e p l a c e di n t h e S t a t u sR e g i s t e r ,b u tb e w a r eo f t h a t !T h e

v a l u e p l a c e dt h e r ew i l l a f f e c ta l l t h e f l a g s ,i n c l u d i n gd e c i m a lm o d e .T h e

p r o c e s s o rw i l la l s os e tb i t* 5 ,t h eu n u s e df l a g ,e v e ni f y o u rp a s s e dv a l u el e f t

i n c l e a r . )

T h eT r a n s a c t o r 3 9 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 44: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 44/88

T h eC - 6 4d o e s n ' th a v et h i sf e a t u r e ,a n dt o k e e pt h ec o m m a n d st h es a m e ,

t h ec o d em u s tb e a d d e d .W ea l s on e e d e dt o a d dt h e r o u t i n e st o a c c e s st h e

r e g i s t e ra n dd a t ap o r t sf o rt h ev i d e oc h i p .

B o t hB A S I CD R A M ' su s et h ee r r o rw e d g et e c h n i q u ed e s c r i b e db y B r i a n

M u n s h a wi n T r a n s a c t o r5 - 6( " AN e wW e d g ef o rt h eC o m m o d o r e6 4 " ) .

T h et h r e ea d d e dc o m m a n d sc a u s ea " s y n t a xe r r o r " .O u rp r o g r a mi n t e r

c e p t sa l le r r o rm e s s a g e sa n dp a s s e so n a n ye x c e p ts y n t a xe r r o r s .T h e s ea r e

e x a m i n e df o rt h eu s eo f a n i l l e g a lc h a r a c t e ri n f r o n to f a L O A D ,S A V E ,o r

S C R A T C Ht o k e n .S i n c ea n yi l l e g a lc h a r a c t e rw i l lw o r k ,X S A V Ew i l lh a v e

t h es a m ee f f e c ta s M S A V E .

T h eC - 6 4d o e s n ' tt o k e n i z et h ew o r d" s c r a t c h " , s os o m ea d d i t i o n a lc o d ei s

r e q u i r e d .T o e l i m i n a t ee x c e s st y p i n g ,w e ' v ed e c o d e do n l yt h e " s c "

p o r t i o n .M S C R E A Mw i l lw o r ka s w e l lf o rM S C R A T C H .

W eh o p et h a ty o ue n j o ye x p e r i m e n t i n gw i t hR A Md i s ka n df i n di t u s e f u l .

F o re x a m p l e ,y o uc o u l dM S A V Es e v e r a lp r o g r a m ss u c ha s D i s kD o c t o r ,

D i r e c t o r y R e o r g a n i z e r ,T w oC o l u m nD i r e c t o r yP r i n t e r ,e t c .p r i o rt o a h e a v y

d i s k r e o r g a n i z a t i o ns e s s i o n .T h e na s i m p l eM L O A D *w i l lq u i c k l y b r i n gi n

e a c hp r o g r a ma s y o un e e di t . T h i sw o u l db e a r e a la d v a n t a g et o a n y o n e

u s i n ga 1 5 4 1/ C — 1 2 8c o m b i n a t i o n .

T h eM e r l i n s o u r c ec o d ef o r t h e D R A Mp r o g r a m sw i l lb e f o u n do n T h e

T r a n s a c t o r D i s kf o rt h i s i s s u e .I f y o u ' dp r e f e rh a r dc o p yo f t h es o u r c e c o d e ,

m a i l$ 2 ( e i t h e rC a n a d i a no r U S )a n da l a r g ea d d r e s s e de n v e l o p et o :

N o e lN y m a n

G e o d u c kD e v e l o p m e n t a l S y s t e m

P OB o x5 8 5 8 7

S e a t t l e ,W A 9 8 1 8 8

L i s t i n gO n e

L L

G GC H

L J

E l

E E

P C

K M

H K

M L

C P

M J

K l

H L

B P

L A

O L

K H

N M

1 0 0 0 r e ms a v e " 0 : m e md r a m . l d r ", 8

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 0

1 1 7 0

1 1 8 0

f o rj = 3 0 7 2t o 3 1 8 3 :r e a dx : p o k e j . x :

c h = c h + x : n e x t

i f c h < > 1 9 0 5 6t h e np r i n t" c h e c k s u me r r o r "

1 3 8 ,

3 2 ,

4 2 ,

3 2 ,

d a t a1 3 3 ,2 5 1 ,

d a t a 2 5 4 ,9 6 ,

d a t a 7 2

d a t a1 0 4

d a t a 4 8

d a t a2 5 5

d a t a2 3 0 , 2 5 2 ,

d a t a1 6 5 ,2 5 2 ,

d a t a 3 2 , 2 1 8 ,

d a t a2 0 5 ,1 3 3 ,

d a t a1 6 9 ,2 5 1 ,

d a t a1 6 6 ,2 5 0 ,

d a t a 2 , 2 3 0 ,

d a t a 2 3 6 ,1 6 5 ,

1 3 4 , 2 5 2 ,

1 3 3 , 2 0 0 ,

1 6 2 , 1 8 ,

2 0 4 , 2 0 5 ,

1 6 6 , 2 5 0 ,

2 0 2 , 2 0 5 ,

1 6 5 , 2 5 1 ,

1 9 7 , 2 5 4 ,

2 0 5 ,1 3 3 ,

2 5 1 , 9 6 ,

1 4 1 , 1 8 5 ,

3 2 , 1 1 9 ,

2 5 2 ,1 6 5 ,

2 5 2 ,1 9 7 ,

9 6 , 1 3 3 ,

1 3 4 , 2 0 1 ,

3 2 ,2 0 4 ,

1 6 0 , 0 ,

1 6 9 , 2 5 1 ,

2 3 0 , 2 5 1 ,

1 9 7 , 2 5 3 ,

2 0 8 ,2 2 8 ,

2 5 2 , 2 3 2 ,

4 1 , 1 5 ,

2 , 3 2 ,

2 5 5 , 2 3 0 ,

2 5 1 ,1 9 7 ,

2 5 4 , 2 0 8 ,

2 5 3 ,1 3 4

1 3 2 , 2 5 0

2 0 5 ,2 3 2

1 6 5 , 2 5 0

3 2 , 1 1 6

2 0 8 , 2

2 0 8 , 2 3 4

1 6 2 , 1 8

3 2 , 2 1 8

1 3 3 , 2 5 0

2 1 6 , 2 0 5

2 5 1 , 2 0 8

2 5 3 ,2 0 8

2 3 0 , 9 6

L i s t i n gT w o

J J

O E

L H

J J

M G

2 0 0 0r e ms a v e "0 : b a s d r a m . l d r ", 8

2 0 1 0 :

2 0 2 0f o rj = 2 9 5 6t o 3 5 7 1 :r e a dx : p o k ej , x :

c h = c h + x : n e x t

2 0 3 0i f c h < > 6 9 8 9 3t h e np r i n t" c h e c k s u me r r o r "

2 0 4 0 :

I D

G B

A l

E M

L I

F F

M CG L

A G

N EM C

A N

I K

J H

E A

J l

D F

M N

H A

J N

F M

I L

M BL P

N A

A B

F E

C G

E K

P E

B l

P P

O M

E M

C M

H MH I

A F

I L

D L

M B

A M

F L

K E

J J

D M

M H

C M

D PG B

B D

E O

B H

M D

H B

A A

E J

H J

N M

E M

L I

P GN O

D N

2 0 5 0d a t a1 2 0 ,

2 0 6 0d a t a1 4 1 ,

2 0 7 0d a t a 1 1 ,

2 0 8 0d a t a1 4 1 ,

2 0 9 0d a t a1 6 9 ,

2 1 0 0d a t a 0 ,

2 1 1 0d a t a2 0 1 ,

2 1 2 0d a t a1 4 8 ,

2 1 3 0d a t a 6 0 ,

2 1 4 0d a t a 2 2 3 ,

2 1 5 0d a t a 2 5 5 ,

2 1 6 0d a t a 7 3 ,

2 1 7 0d a t a 2 7 ,

2 1 8 0d a t a1 8 2 ,

2 1 9 0d a t a 1 3 ,

2 2 0 0d a t a 1 3 ,

2 2 1 0d a t a 1 8 ,

2 2 2 0d a t a1 7 3 ,

2 2 3 0d a t a 2 0 2 ,

2 2 4 0d a t a1 3 3 ,

2 2 5 0d a t a 3 2 ,

2 2 6 0d a t a 2 0 8 ,

2 2 7 0d a t a2 0 8 ,

2 2 8 0d a t a1 6 4 ,

2 2 9 0d a t a 2 0 5 ,

2 3 0 0d a t a2 1 8 ,

2 3 1 0d a t a1 2 5 ,

2 3 2 0d a t a 3 2 ,

2 3 3 0d a t a 3 2 ,

2 3 4 0d a t a1 8 7 ,

2 3 5 0d a t a 3 2 ,

2 3 6 0d a t a1 7 0 ,

2 3 7 0d a t a 3 2 ,

2 3 8 0d a t a

2 3 9 0d a t a

2 4 0 0d a t a

2 4 1 0d a t a

1 7 3 , 0 ,

1 7 9 , 1 1 ,

1 6 9 , 1 8 1 ,

1 , 3 ,

1 3 , 1 4 1 ,

2 2 4 , 1 1 ,

1 4 7 ,2 0 8 ,

2 4 0 , 7 ,

1 3 , 1 6 9 ,

1 3 , 2 0 1 ,

1 3

8 3

8 1

1 2

1 8 ,

7 5 ,

1 4 1 ,

1 0 ,

8 3 .

7 3

6 5

2 7

2 4 2 0d a t a1 4 2 .

0 ,

7 ,

3 2 ,

1 5 ,

1 3 ,

2 4 3 0d a t a

2 4 4 0d a t a

2 4 5 0d a t a

2 4 6 0d a t a

2 4 7 0d a t a

2 4 8 0d a t a1 6 5

2 4 9 0d a t a2 0 4

2 5 0 0d a t a 3 2

2 5 1 0d a t a 3 2

2 5 2 0d a t a1 3 3

2 5 3 0d a t a 1 8

2 5 4 0d a t a2 5 4

2 5 5 0d a t a 3 2

2 5 6 0d a t a2 3 0

2 5 7 0d a t a1 9 7

2 5 8 0d a t a2 0 8

2 5 9 0d a t a1 6 9

2 6 0 0d a t a 1 4 1

2 6 1 0d a t a 3 2

2 6 2 0d a t a 7 1

2 6 3 0d a t a 7 1

2 6 4 0d a t a 8 2

2 6 5 0d a t a2 0 1

2 6 6 0d a t a 4 8

2 6 7 0d a t a 1 5

2 6 8 0d a t a 1 3

1 6 2 , 1 8 ,

2 3 2 , 3 2 ,

1 3 3 , 2 5 3 ,

1 7 , 1 8 ,

2 0 5 ,1 6 5 ,

2 5 2 ,1 6 0 ,

1 1 6 , 2 5 5 ,

2 , 2 3 0 ,

2 3 4 ,1 6 5 ,

2 0 0 , 2 0 0 ,

1 3 3 , 2 5 2 ,

2 0 5 ,1 3 3 ,

2 5 5 ,1 4 1 ,

8 0 , 8 2 ,

0 , 1 6 9 ,

1 2 , 3 2 ,

3 2 , 0 ,

1 6 9 , 6 2 ,

1 2 5 , 2 5 5 ,

3 2 , 8 2 ,

7 8 , 7 1 ,

7 7 , 3 2 ,

8 1 , 1 4 1 ,

2 0 1 ,1 6 2 ,

1 3 2 , 9 8 ,

1 8 6 ,1 6 9 ,

9 3 , 1 8 6 ,

2 0 5 ,2 2 3 ,

1 0 , 1 6 8 ,

2 0 0 ,1 8 5 ,

2 0 5 ,1 3 3 ,

2 0 4 , 2 0 5 ,

2 1 6 , 2 0 5 ,

2 5 1 ,1 0 1 ,

1 6 5 , 4 6 ,

1 6 9 , 2 5 1 ,

2 1 6 , 2 0 5 ,

2 5 1 , 2 0 8 ,

2 5 3 , 2 0 8 ,

2 3 0 , 3 2 ,

1 4 1 ,

6 7 ,

0 ,

8 3 ,

8 3 ,

3 2 ,

7 7 ,

3 2 ,

8 7

3 2

6 3

0 , 2 4 0

1 4 4 , 3 9

2 0 5 , 2 2 3

1 3 3 , 2 0 0

3 , 2 0 1 ,6 3 ,

1 7 3 , 1 , 3 ,

1 4 1 , 0 , 3 ,

1 6 9 , 1 9 5 , 1 4 1 ,

2 5 , 3 , 8 8 ,

2 4 0 , 3 , 1 0 8 ,

3 , 7 6 , 2 0 8 ,

2 0 1 , 2 4 2 , 2 0 8 ,

0 , 1 4 1 , 0

1 0 , 1 4 4 ,2 88 2 , 6 5 , 7 7

3 2 , 7 0 , 8 5 .

0 , 3 2 , 1 4 2

1 6 8 ,1 3 3 , 2 0 0

3 2 ,2 0 4 ,2 0 5

2 0 4 , 2 0 5 ,5 6

2 2 9 , 4 5 , 3 2

1 3 3 , 2 5 4 , 2 2 9

4 5 , 1 3 3 , 2 5 1

0 , 1 6 2 , 0

3 2 ,2 0 2 ,2 0 5

2 5 2 ,1 6 5 , 2 5 1

2 5 2 ,1 9 7 , 2 5 42 0 0 , 1 6 2 , 1 8

1 5 3 , 2 2 4 ,1 3

2 5 1 , 1 5 3 , 2 2 5

8 3 , 6 5 ,8 6

7 9 , 7 1 ,8 2

0 , 1 7 4 , 2 2 3

1 2 5 , 2 5 5 ,2 7

5 6 , 1 6 9 ,1 2 8

2 2 9 , 2 5 2 ,3 2

3 2 , 6 6 ,

6 9 , 7 7 ,

3 2 , 7 3 ,

6 8 , 7 3 ,

0 , 2 3 8 ,2 2 3

1 2 8 , 1 0 8 ,1 7 9

1 3 3 , 9 7 , 1 3 4

0 , 1 6 2 , 8

9 6 , 3 2 , 1 2 8

1 3 , 1 4 4 ,3

1 6 9 , 0 , 1 4 1

2 2 4 , 1 3 , 1 6 2

2 5 2 , 2 3 2 ,1 8 5

3 2 , 2 1 6 , 2 0 5

1 3 3 , 2 5 4 ,2 4

2 5 3 ,1 3 3 , 2 5 3

1 3 3 , 2 5 2 ,1 0 1

1 4 1 , 1 8 5 ,2

1 6 2 , 0 , 3 2

2 , 2 3 0 ,2 5 2

2 3 6 ,1 6 5 , 2 5 2

7 9 , 7 9 ,7 6

0 , 2 5 5 ,

8 2 , 6 5 ,

6 5 , 8 2 ,

8 4 ,

8 5 ,

0 ,

2 0 8 , 2 9

1 4 1 , 1 8 0

1 6 9 , 1 1

2 4 , 3

9 6 , 0

1 7 9 , 1 1

1 2 , 2 0 1

2 3 8 , 7 6

2 5 5 , 1 7 3

3 2 , 1 2 53 2 , 6 8

7 6 , 7 6

2 0 1 , 7 6

1 8 5 , 2 2 4

1 8 5 , 2 2 5

1 7 3 , 1 6

2 0 2 ,2 0 5

4 6 , 3 2

1 6 5 , 4 6

1 6 9 , 2 5 1

2 3 0 ,2 5 1

1 9 7 ,2 5 3

2 0 8 ,2 2 83 2 , 2 1 8

2 3 2 , 3 2

1 3

6 9 ,

6 5 ,

1 3 ,

8 1 ,

3 2

6 8

7 7

3 2

1 4 1

2 2 9 ,2 5 1

8 9

6 5 ,

7 8 ,

8 3 ,

1 8 7 ,

8 4 ,

7 3 ,

3 2 ,

7 5 ,

1 3 ,

1 2

6 9

7 8

8 2

3 23 2

7 3 ,

7 8 ,

3 2 ,

2 4 9 ,

2 0 1 ,

3 2 , 2 1 0

5 8 , 1 7 6

1 3 , 1 7 6 ,

2 3 0 , 2 0 0 ,

2 8

6

1 1 , 1 6 0

9 6 , 3 2

1 6 0 , 3

3 , 4 1

7 6 , 1 5 8

0 , 2 5 5

1 8 , 3 2

2 2 5 , 1 3

1 3 3 , 2 5 3

1 6 5 , 4 5

1 4 1 , 1 6

2 5 4 ,1 3 3

1 6 0 , 0

1 1 9 , 2 5 5

1 6 5 , 2 5 1

1 9 7 , 2 5 4

1 6 2 , 8 2

1 2 5 , 2 5 5

6 7 , 7 2

7 3 , 7 8

3 2 , 8 0

6 6 , 6 9

2 2 8 ,2 5 5

2 5 5 ,2 0 1

3 5 , 4 1

1 4 1 , 2 2 3

2 0 0 ,1 6 4

T h eT r a n s a c t o r 4 O J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 45: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 45/88

K M

F P

L K

D D

A D

B l

K J

E O

K L

J B

N O

O L

I M

N D

G G

H G

C J

E l

H D

K E

N F

I I

I G

C OI P

D E

B N

F J

N H

D H

G H

O N

B E

0 0

N B

B P

B B

G G

A E

F H

B AO E

M F

J l

M G

M N

F E

B B

C F

B P

I A

P L

F CM B

L L

L O

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

d a t a2 0 0 ,

d a t a 1 3 ,

d a t a1 8 2 ,

d a t a 7 8 ,

d a t a 8 2 ,

d a t a 8 5 ,

d a t a 0 ,

d a t a1 6 9 ,

d a t a 3 2 ,

d a t a1 6 9 ,

d a t a 7 6 ,

d a t a 0 ,

d a t a 0 ,

1 6 9 , 0 ,

2 0 0 , 2 0 0 ,

1 2 , 3 2 ,

8 6 , 6 5 ,

7 9 , 7 1 ,

7 7 , 6 6 ,

3 2 , 1 4 2 ,

1 2 7 , 1 4 1 ,

6 1 , 2 4 6 ,

1 4 7 , 3 2 ,

5 1 ,2 5 5 ,

0 , 0 ,

0 , 0 ,

1 5 3 , 2 2 4 ,

1 9 2 , 2 0 ,

1 2 5 , 2 5 5 ,

7 6 , 7 3 ,

8 2 , 6 5 ,

6 9 , 8 2 ,

2 0 1 , 7 6 ,

1 3 , 2 2 1 ,

3 2 , 2 2 5 ,

2 1 0 , 2 5 5 ,

0 , 0 ,

0 , 0 ,

0 , 0 ,

1 3 ,1 5 3 , 2 2 5

2 0 8 , 2 4 4 ,7 6

1 4 1 , 1 8 , 7 3

6 8 , 3 2 ,8 0

7 7 , 3 2 ,7 8

2 7 , 8 1 , 1 4 1

1 8 2 , 1 2 , 2 1 6

1 7 2 , 1 3 , 2 2 1

2 5 5 , 2 0 8 ,8

1 0 8 , 0 , 1 0

0 , 0 , 0

0 , 0 , 0

0 , 0 , 0

L i s t i n gT h r e e

1 0 0 0 r e ms a v e "0 : 6 4 m e md r a m . l d r ", 8

1 0 1 0 :

1 0 2 0f o rj = 5 1 2 0 0t o 5 1 3 7 4 :r e a dx : p o k e j . x :

c h = c h + x : n e x t

1 0 3 0i f c h < > 2 6 4 0 8t h e np r i n t" c h e c k s u me r r o r "

1 0 4 0 :

1 0 5 0d a t a 3 2 , 1 5 2 , 2 0 0 , 1 6 5 , 1 7 0

1 0 6 0d a t a1 7 1 , 1 3 3 ,2 5 2 , 9 6 , 3 2

1 0 7 0d a t a 1 7 0 ,1 3 3 , 2 5 3 , 1 6 5

1 0 8 0d a t a 3 2 , 1 4 1 , 2 0 0 , 1 6 5

1 0 9 0d a t a1 7 0 ,1 3 3 ,1 6 8 ,1 6 2

1 1 0 0d a t a 2 3 2 ,1 6 5 ,1 6 7 , 3 2

1 1 1 0d a t a1 6 5 ,1 7 1 , 4 8 ,

1 1 2 0d a t a2 0 0 ,2 3 0 ,2 5 1 ,

1 1 3 0d a t a2 5 1 ,1 9 7 , 2 5 3 ,

1 7 1 ,

1 6 9 ,

1 8 ,

1 1 5 ,

3 7

2 0 8

2 0 8

1 1 4 0d a t a 2 5 4 , 2 0 8 , 2 3 3 ,1 6 2

1 1 5 0d a t a1 3 3 ,2 5 2 , 2 3 2 ,3 2

1 1 6 0d a t a 9 6 , 3 2 , 1 2 7

1 1 7 0d a t a2 0 8 , 2 , 2 3 0

1 1 8 0d a t a2 0 8 , 2 3 9 ,1 6 5

1 1 9 0d a t a 9 6 , 1 6 2

1 2 0 0d a t a 2 1 4 ,1 6

1 2 1 0d a t a 3 1

1 2 2 0d a t a2 5 1

1 2 3 0d a t a 3 2

1 2 4 0d a t a 3 2

1 2 5 0d a t a1 7 7 ,

1 2 6 0d a t a1 7 3 ,

1 4 2

1 7 3

1 5 8

2 5 3

1 3 2

3 1 ,

2 5 1 ,

0 ,

1 ,

1 7 3 ,

1 7 4 ,

1 7 0 ,

2 0 0

2 5 2

2 5 2

1 4 2

1 4 1

2 1 4

2 1 4

3 2 , 1 7 0

3 2 , 1 5 8

3 2 ,2 5 3

1 3 3 , 2 5 1

1 5 2 , 2 0 0

1 3 3 , 2 5 4

1 3 3 ,1 6 7

3 2 , 1 1 5

2 0 0 ,1 6 0

1 7 7 , 2 5 1 ,3 2

2 , 2 3 0 ,2 5 2

2 3 9 ,1 6 5 , 2 5 2

1 8 , 3 2 , 1 2 9

1 2 9 , 2 0 0 ,1 3 3

1 4 5 , 2 5 1

1 6 5 , 2 5 1

1 9 7 , 2 5 4

0 , 2 1 4

1 , 2 1 4

4 4 , 0

9 6 , 3 2

1 7 7

1 7 3

1 7 4

2 3 0 ,

1 9 7 ,

2 0 8 ,

4 4 ,

1 6 5

1 6 5

9 6

1 6 5

2 0 0

0

1 1 3

1 6 5

1 9 7

2 0 0

2 5 1

2 5 1

2 5 3

2 3 3

0

3 2 , 1 7 0 , 1 7 7 ,1 3 2 ,1 7 1 ,

L i s t i n gF o u r

9 6 , 1 6 2

2 1 4 , 1 6

2 5 3 ,1 7 4

1 3 2 ,1 6 9

3 2 , 1 7 0

3 2 , 1 5 8

9 6

2 0 0 0r e ms a v e "0 : 6 4 b a sd r a m . l d r ", 82 0 1 0 :

2 0 2 0

2 0 3 0

2 0 4 0

2 0 5 0

2 0 6 0

2 0 7 0

2 0 8 0

2 0 9 0

2 1 0 0

2 1 1 0

2 1 2 02 1 3 0

2 1 4 0

2 1 5 0

f o rj = 5 1 2 0 0t o 5 1 7 7 7 :r e a dx : p o k ej , x :

c h = c h + x : n e x t

i f c h < > 6 7 5 8 2t h e np r i n t" c h e c k s u me r r o r "

d a t a1 2 0 ,

d a t a1 4 1 ,

d a t a2 0 0 ,

d a t a1 4 1 ,

d a t a 1 1 ,

d a t a 0 ,

d a t a2 0 1 ,

d a t a 3 2 ,

d a t a1 1 5 ,

d a t a2 0 1 ,

1 7 3 ,

2 9 ,

1 6 9 ,

1 ,

2 4 0 ,

2 0 1 ,

1 4 8 ,

1 2 1 ,0 ,

1 7 3 ,

d a t a1 6 9 , 1 7 0 ,

0 , 3 ,

2 0 0 , 1 7 3 ,

3 1 , 1 4 1 ,

3 , 8 8 ,

3 , 1 0 8 ,

1 4 7 , 2 0 8 ,

2 4 0 , 2 1 ,

0 , 2 0 1 ,

2 0 1 , 6 7 ,

4 5 ,2 0 2 ,

1 6 2 , 2 0 1 ,

2 0 1 , 1 3 9 ,

1 , 3 ,

0 , 3 ,

9 6 , 0 ,

2 9 ,2 0 0 ,

3 , 7 6 ,

1 6 9 , 1 ,

8 3 , 2 0 8 ,

2 0 8 , 2 2 1 ,

2 0 1 , 1 0 ,

3 2 , 3 0 ,

2 0 8 , 1 9

1 4 1 , 3 0

1 6 9 , 2 0 0

0 , 2 2 4

3 2 , 1 2 1

2 3 4 , 2 0 0

1 3 3 ,1 2 2

2 2 8 , 3 27 6 ,

1 4 4 ,

1 7 1 ,

7 2

1 0

7 6

F O

M OH A

C J

D E

E O

M OI K

K A

K PN M

G C

L B

G A

L F

H D

B J

N D

H B

G C

M M

K N

A l

H I

H G

M l

D K

C G

C P

A A

O A

D P

E F

J L

K J

P F

L P

D E

J N

L O

C P

J C

F l

H I

O P

L K

B D

H MJ M

I N

B O

A P

H O

G O

B A

N O

D A

G B

B E

M l

G JI E

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

2 2 3 0

2 2 4 0

2 2 5 0

2 2 6 0

2 2 7 0

2 2 8 0

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

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 0

2 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 02 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 02 7 7 0

d a t a 2 2 9 ,

d a t a2 0 2 ,

d a t a2 0 2 ,

d a t a1 3 3 ,

d a t a 4 6 ,

d a t a1 6 5 ,

d a t a1 6 0 ,

d a t a2 5 1 ,

d a t a 2 5 3 ,

d a t a2 3 3 ,

d a t a1 5 8 ,

d a t a 3 2 ,

d a t a1 6 9 ,

d a t a 0 ,

d a t a2 0 3 ,

d a t a1 2 8 ,

d a t a 3 2 ,

d a t a 3 0 ,

d a t a 2 9 ,

d a t a 1 5 ,

d a t a 2 0 1 ,

d a t a 3 2 ,

d a t a1 4 4 ,

d a t a1 5 6 ,

d a t a2 5 1 ,

d a t a 4 4 ,

d a t a 4 6 ,

d a t a2 3 0 ,

d a t a1 9 7 ,

d a t a2 0 8 ,

d a t a1 6 9 ,

d a t a2 2 8 ,

d a t a2 5 5 ,

d a t a 3 5 ,

d a t a1 4 1 ,

d a t a1 6 7 ,

d a t a1 5 3 ,

d a t a2 4 4 ,

d a t a 3 2 ,

d a t a1 4 2 ,

d a t a1 4 1 ,

d a t a2 1 4 ,

d a t a2 1 4 ,

d a t a 6 8 ,

d a t a

d a t a

d a t a

d a t ad a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

2 0 0 , 1 0 ,

1 6 2 , 1 8 ,

2 3 2 , 3 2 ,

2 5 3 , 2 2 9 ,

1 3 3 , 2 5 4 ,

4 3 , 1 3 3 ,

0 , 1 7 7 ,

2 0 8 , 2 ,

2 0 8 , 2 3 9 ,

1 6 4 ,1 6 7 ,

2 0 1 ,1 3 3 ,

1 5 8 , 2 0 1 ,

1 8 7 ,1 6 0 ,

1 7 4 , 4 5 ,

1 6 0 , 2 0 1 ,

2 2 9 , 2 5 1 ,

2 0 5 ,1 8 9 ,

1 7 1 , 2 3 8 ,

2 0 0 , 3 2 ,

2 0 5 , 4 5 ,

1 0 , 1 6 8 ,

1 4 4 , 2 0 1 ,

2 0 1 , 3 2 ,

2 0 1 , 1 3 3 ,

1 0 1 , 2 5 3 ,

1 3 3 , 2 5 2 ,

1 6 0 , 0 ,

2 5 1 , 2 0 8 ,

2 5 3 , 2 0 8 ,

2 3 3 , 3 2 ,

2 3 8 , 1 6 0 ,

2 5 5 , 2 0 1 ,

2 0 1 , 4 8 ,

4 1 , 1 5 ,

4 5 ,2 0 2 ,

1 6 4 , 1 6 7 ,

4 7 ,2 0 2 ,

7 6 ,2 2 9 ,

3 0 , 1 7 1 ,

0 , 2 1 4 ,

1 , 2 1 4 ,

4 4 , 0 ,

9 6 , 1 4 1 ,

7 3 , 8 3 ,

3 2

4 4

7 6 ,

6 8 ,

7 7 ,

6 6 ,7 7 ,

7 3 ,

7 3 ,

6 7 .

8 4 ,

8 7 .

3 2 ,

6 3 ,

6 5 ,

7 1 ,

6 6 ,

0 ,

0 ,

0 ,

1 4 1 ,

3 2 ,

3 2 ,

8 9 ,6 5 ,

7 8 ,

8 3 ,

8 2 ,

6 5 .

7 3 ,

7 8 ,

3 2 ,

7 6 ,

8 2 ,

6 9 ,

0 ,

0 ,

0

0 ,

8 0 ,

0 ,

8 4 ,7 3 ,

3 2 ,

7 5 ,

6 5 ,

8 2 ,

8 4 ,

8 5 ,

0 ,

7 3 ,

6 5 ,

8 2 ,

0 ,

0 ,

1 6 8 , 1 3 3 ,1 6 7

3 2 , 1 4 4 , 2 0 1

1 4 4 , 2 0 1 ,5 6

4 3 , 3 2 , 1 4 2

2 2 9 , 4 4

2 5 1 ,1 6 5

2 5 1 , 3 2 , 1 4 2 ,

2 3 0 , 2 5 2 ,1 6 5 ,

1 6 5 . 2 5 2 ,1 9 7 ,

2 0 0 . 2 0 0 ,1 6 2 ,

2 5 2 , 1 5 3 ,4 6 ,

1 3 3 , 2 5 1 ,1 5 3 ,

2 0 1 , 3 2 , 3 0 ,

2 0 2 , 3 2 , 2 0 5 ,

3 2 , 3 0 , 1 7 1 ,

1 7 0 , 1 6 9 ,6 2 ,

1 6 9 , 2 0 7 ,1 6 0 ,

4 5 , 2 0 2 ,1 6 2 ,

1 1 5 , 0 , 1 7 6 ,

2 0 2 ,1 4 4 , 3 ,

1 8 5 , 4 6 , 2 0 2 ,

2 3 2 , 1 8 5 ,4 7 ,

1 5 6 . 2 0 1 ,1 3 3 ,

2 5 4 , 2 4 , 1 6 5 ,

1 3 3 . 2 5 3 ,1 3 3 ,

1 0 1 . 2 5 4 ,1 3 3 ,

3 2 , 1 5 6 , 2 0 1 ,

2 , 2 3 0 , 2 5 2 ,

2 3 9 ,1 6 5 , 2 5 2 ,

5 1 , 1 6 5 ,7 6 ,

2 0 1 , 3 2 , 3 0 ,

0 , 2 4 0 , 2 4 9 ,

1 4 4 , 3 9 , 2 0 1 ,

2 0 5 ,4 5 , 2 0 2 , '

1 3 3 ,1 6 7 , 2 3 0 ,

1 6 9 , 0 , 1 5 3 ,

2 0 0 , 2 0 0 ,1 9 2 ,

2 0 0 , 1 6 9 ,1 9 ,

7 6 ,2 2 9 , 2 0 0 ,

4 4 , 0 , 2 1 4 ,

9 6 , 1 6 2 ,3 1 ,

2 1 4 , 1 6 , 2 5 1 ,

8 2 , 6 5 ,

3 2 ,

8 3 ,

7 9 ,

3 2 ,

8 3 ,7 3 ,

6 5 ,

1 8 5 , 4 6

1 8 5 , 4 7

1 6 5 , 4 5

2 0 1 , 1 6 5

1 4 2 , 2 0 1

1 3 3 , 2 5 2

2 0 1 , 2 3 0

2 5 1 ,1 9 7

2 5 4 ,2 0 8

1 8 , 3 2

2 0 2 ,2 3 2

4 7 , 2 0 2

1 7 1 , 1 6 9

1 8 9 ,1 6 9

5 6 , 1 6 9

2 2 9 ,2 5 2

2 0 1 , 3 2

1 2 8 ,1 0 8

2 4 6 , 4 1

7 6 , 1 3 2

1 6 2 , 1 8

2 0 2 , 3 2

2 5 3 , 3 2

4 3 , 1 3 3

4 5 , 1 6 5

2 5 4 ,1 3 3

1 4 5 , 2 5 1

1 6 5 , 2 5 1

1 9 7 , 2 5 4

2 2 9 ,2 0 0

1 7 1 , 3 2

3 2 , 2 1 0

5 8 , 1 7 6

1 7 6 , 2 8

1 6 7 , 6

4 6 ,2 0 2

2 0 , 2 0 8

1 6 0 , 2 0 2

1 6 2 , 3 1

1 6 , 2 5 1

1 8 ,

7 5 ,

1 4 1 ,

8 2 ,

1 4 1 ,

6 9 ,7 8 .

8 2 ,

3 2 , 1 4 1 ,

8 4 , 6 7 ,

8 4 , 7 3 ,

3 2 ,

6 6 ,

7 2 ,

7 7 ,

1 4 1 ,

6 8 ,

7 7 ,

1 4 1 ,

0 ,

0 ,

1 8 ,

3 2 ,

3 2 ,

0 ,

0 ,

0 ,

7 0 ,

6 5 ,

7 1 ,

3 2 ,

3 2 ,7 8 ,

7 7 ,

0 ,

7 2 .

7 8 ,

8 0 ,

6 9 .

7 3 ,

8 0 ,

7 8 ,

0 ,

0 .

0 .

1 4 2 ,

1 7 3 ,

7 7 ,

8 5 ,

8 6 ,

8 2 ,

0 ,

8 2 ,7 1 ,

3 2 ,

1 4 1 ,

3 2 ,

7 1 ,

7 1 ,

8 2 ,

7 8 ,

8 2 ,

8 5 ,

0 ,

0 ,

0 ,

0

1

3 2

/ 6

6 9

6 5

3 2

6 93 2

6 8

8 3

8 3

3 2

7 7

3 2

8 6

7 9

7 7

0

0

0

h eT r a n s a c t o r 4 1 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 46: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 46/88

A m i g a B a s i cF u n c t i o nP l o tC h r i sZ a m a r a ,T e c h n i c a lE d i t o r

A nA u t o - S c a l i n gP l o t t i n gD e m o

T h i sp r o g r a mw i l lo p e na n e ww i n d o ww i t ha l l t h es t a n d a r d

g a d g e t sa n d d i s p l a y t h eg r a p ho f a f u n c t i o nw i t h i ni t ,

i n c l u d i n gt h eX a n dY a x e s .T h eg r a p ha l w a y sf i l l st h ee n t i r e

w i n d o w , a n dw i l lr e - p l o tt o a n e ws i z ei f y o u r e s i z et h e

w i n d o ww i t hi t s s i z i n g g a d g e t .T h ef u n c t i o nt o b e p l o t t e di s

d e f i n e di n t h e p r o g r a mw i t ha D E FF N s t a t e m e n t ,o v e ra

r a n g eo f X v a l u e s d e f i n e db y t h e v a r i a b l e sD O M A I N1 a n d

D 0 M A I N 2 .

B e f o r ep l o t t i n gt h e f u n c t i o n ,t h ep r o g r a mf i n d st h e h i g h e s t

a n dl o w e s tv a l u e so f t h ef u n c t i o ns o t h a ti t c a ns c a l et o t h e

s i z e o ft h eo u t p u tw i n d o w .T h em e s s a g e" S c a l i n g .. . " w i l l

b e p r i n t e dw h i l et h i sp r o c e s st a k e sp l a c e .A f t e rs c a l i n g ,t h e

f u n c t i o ni s p l o t t e d ,t a k i n gu p t h e e n t i r eh e i g h to f t h ew i n

d o w ,w i t ht h e l i n e sX = 0 a n d Y = 0 p l o t t e di n c o l o u r2

( d e f a u l tc o l o u rb l a c k ) .Y o uc a n m o v et h e o u t p u tw i n d o w

a r o u n dw i t ht h ed r a gb a r si n t h e u s u a lm a n n e r ,a n di f y o u

r e - s i z et h ew i n d o w ,t h ep r o g r a mr e - p l o t st h e f u n c t i o nt o f i l l

t h ew i n d o wa t i t s n e ws i z e .S i n c et h e f u n c t i o ni s o n l yr e -

e v a l u a t e df o re a c hp i x e li n t h ew i d t ho f t h ew i n d o w ,y o u ' l l

f i n dt h a tt h ef u n c t i o np l o t sf a s t e rw h e nt h ew i n d o ww i d t hi s

s m a l l e r .

W h e nt h eo u t p u tw i n d o wi s f i r s to p e n e db y t h ep r o g r a m ,i t

i s s i z e ds o t h a ta f u n c t i o ni s a s p e c t - r a t i oc o r r e c t e d .T h a ti s ,

t h eX a n dY c o - o r d i n a t e sa r e t h es a m es i z eo n t h e s c r e e n ,i f

n o t t h es a m en u m b e ro f p i x e l s .T h u s ,t h e f u n c t i o nY =X w i l l

d e s c r i b ea t r u e4 5 - d e g r e ea n g l e . T h i s ,o f c o u r s e ,c a n b ec h a n g e db y r e - s i z i n g t h ew i n d o w ,s t r e t c h i n gt h ef u n c t i o ni n

t h eX o r Y d i r e c t i o n .

T h eo u t p u tw i n d o wi s o p e n e d a n ds e l e c t e db y t h ef o l l o w i n g

l i n ei n t h ep r o g r a m :

W I N D O W2 , t i t l e $ , ( 5 , 1 0 ) - ( 5 0 2 , 1 1 5 ) , 3 1' n e ww i n d o w

T h ea b o v ec o m m a n dw i l lo p e na N E Ww i n d o w ,l e a v i n g t h e

s t a n d a r dB A S I Cw i n d o wi n p l a c e .T h ew i n d o wi s a l s oa u t o -

r e f r e s h e d :m o v i n gi t a r o u n dw o n ' tm e s su p w h a t ' si n s i d e .

T h a tt a k e su p a l o t o f m e m o r y ,s o i f y o uo n l yh a v e2 5 6 K ,

y o u ' l lh a v et o c h a n g ei t t o W I N D O W1 , r e p l a c i n g t h eB A S I C

w i n d o w .O r ,y o uc a nj u s tr e m o v et h el i n ea l t o g e t h e r ,u s i n g

t h eB A S I Cw i n d o ww i t hi t so r i g i n a ls i z ea n dt i t l e .

T o s e tu p t h e f u n c t i o nt o b e p l o t t e d ,j u s tc h a n g et h eD E FF N

f u n c t i o nd e f i n i t i o na s s h o w ni n t h el i s t i n g ,a n d c h a n g et h e

D O M A I N1 a n d D 0 M A I N 2v a r i a b l ea s s i g n m e n t st o d e f i n e

t h es t a r ta n d e n dX v a l u e sf o rw h i c ht h ef u n c t i o ni s e v a l u

a t e d ,a s l i s t e d ,t h ep r o g r a mw i l lp l o tt h e f u n c t i o nY = S I N ( X )

f r o m0 t o 2 n ,w h i c hi s g o o df o rd e m o n s t r a t i o n p u r p b u t

a b i t b o r i n g .S e v e r a lo t h e rf u n c t i o n sa p p e a ra s c o m m e n t s

a l o n gw i t hr e c o m m e n d e dd o m a i np a r a m e t e r s .T a k eo u t t h e

c o m m e n tc h a r a c t e r" ' " ( a p o s t r o p h e )a n dc o m m e n to u tt h e

" D E FF N Y ( X )= S I N ( X ) " ,t h e ns e t u p t h e D O M A I N1 a n d

D 0 M A I N 2v a r i a b l ea s s i g n m e n t st o t r yo n e o f t h e l i s t e d

f u n c t i o n s .

T h ep r o g r a mu s e sm a n yo f A m i g a B a s i c ' sa d v a n c e dc a p a b i l i

t i e s .I t u s e sn o l i n en u m b e r so r l a b e l s ,u s i n gc o n t r o l s t r

t u r e st o c o n t r o lp r o g r a mf l o w .T h es c a l i n ga n dp l o t t i n ga r e

d o n eb y l o c a lp r o c e d u r e s ,w h i c ho n l ya f f e c tt h e r e q u i r e d

v a r i a b l e sa n dp r o d u c en o s i d ee f f e c t sl i k ea s t a n d a r dB A S I C

s u b r o u t i n ed o e s .

T h eo n l yb u gI k n o wa b o u ti s t h a ts o m e t i m e st h e f u n c t i

w i l lr e - p l o tt w i c ea f t e ra w i n d o wr e - s i z i n go p e r a t i o n .I t

p r o b a b l yo c c u r sw h e nt h e w i n d o wi s r e - s i z e db e t w e e n

c h e c k sf o rw i n d o ww i d t ha n dh e i g h t .

T h e m e t h o do f p r o v i d i n gt h e f u n c t i o nt o t h e p r o g r a mi s

o b v i o u s l yp r i m i t i v e .A m o r ep o l i s h e dp r o g r a mc o u l de a s i l y

g r o wf r o mt h e h u m b l eb i t o f c o d ep r e s e n t e d h e r et o d a y .

P u l l - d o w nm e n u sc o u l db e u s e dt o s e l e c tf u n c t i o n sa n dt h e

d o m a i no f t h e f u n c t i o n s .A g o o di d e am i g h tb e a k i n do f

" f u n c t i o n c o n s t r u c t i o nk i t " ,p u l l i n go u t i n d i v i d u a lt e r m so f

a n e q u a t i o na n d c o m b i n i n gt h e mt o c r e a t et h e d e s i r e

f u n c t i o n .A n o t h e rg o o di d e am i g h t b et o a l l o wd i f f e r e n

f u n c t i o n st o b e p l o t t e do n d i f f e r e n tw i n d o w s ,o r m a y b eo n

t h es a m ew i n d o w .A f a i r l ye a s yf e a t u r et o a d dw o u l db e a

m a g n i f yf u n c t i o n :p i c ka s t a r ta n d e n dp o i n to n t h e g r a p h

a n dr e - p l o tt h ec h o s e ns e c t i o n .Y o uc o u l da l s og e ti t t o p l o t

p r e - c a l c u l a t e d d a t af r o mD A T As t a t e m e n t so r a d i s kf i l e .

T h eT r a n s a c t o r 4 2 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 47: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 47/88

f u n c t i o np l o tf r o mT r a n s a c t o rM a g a z i n e

t h i sp r o g r a mm a yb e f r e e l yd i s r i b u t e d

M a r8 6 - C Z

P l o t sa n yf u n c t i o na n ds c a l e s

t o t h es i z eo f t h eo u t p u tw i n d o w .

S e t t h e f u n c t i o n u s i n gD E FF Nb e l o w

a n ds e tt h er a n g eo f X v a l u e s

w i t ht h e' d o m a i n i 'a n d' d o m a i n 2 'v a r i a b l e s .

i = 3 . 1 4 1 5 9 2

p u ty o u rf u n c t i o nb e l o w .. .

i t l e $= " y= s i n ( x ) "' o u t p u tw i n d o wt i t l e

E FF Ny ( x )= S I N ( x ) ' u s e0 t o 2 * p if o rd o m a i n

. . o r t r yo n eo f t h e s e

D E F F N y ( x )= S I N ( x )+ C 0 S ( 2 * x )' d o m a i n= ( 0 ,2 * p i )

D E F F N y ( x )= S I N ( x )+ 2 * S I N ( 1 5 * x )' d o m a i n= ( - p i ,+ p i )

D E F F N y ( x )= - 5 * x - 2 * x * x - 3 * x * x * x' t r y( - 1 0 ,+ 1 0 )

D E FF Ny ( x )= S Q R ( 9 - x * x )' ( - 3 ,+ 3 )

. s e tt h ed o m a i no f X v a l u e s h e r e

o m a i n i= 0 ' x s t a r t

o m a i n 2 =2 * p i' x e n d

m a k en e ww i n d o wt o d i s p l a yg r a p h

W I N D O W2 , t i t l e $ , ( 5 , 1 0 ) - ( 5 0 2 , 1 1 5 ) , 3 1' n e ww i n d o w

f i n dh i g h e s ta n dl o w e s ty v a l u e sf o rs c a l i n g

A L Ls c a l e ( r a n g e 1 ,r a n g e 2 )

r e v . w i d t h= 0 : p r e v . h e i g h t= 0

W H I L E1 ' c o n t i n u o u s l o o p

n e w . w i d t h= W I N D 0 W ( 2 )

n e w . h e i g h t= W I N D 0 W ( 3 )

' p l o tg r a p hi f w i n d o wi s r e - s i z e d

I F n e w . w i d t h O p r e v . w i d t hO Rn e w . h e i g h t Op r e v . h e i g h tT H E N

C A L LP l o t G r a p h ( r a n g e 1 , r a n g e 2 )

E N DI F

p r e v . w i d t h= n e w . w i d t h

p r e v . h e i g h t= n e w . h e i g h t

W E N D

h eT r a n s a c t o r 4 3

S U Bs c a l e ( r a n g e 1 ,r a n g e 2 )S T A T I C

' f i n dm a x .a n dm i n .y v a l u e so f f u n c t i o n

' f r o md o m a i n it o d o m a i n 2

S H A R E Dd o m a i n i ,d o m a i n 2

S H A R E DF Ny ( )

P R I N T" S c a l i n g . .. "

s = ( d o m a i n 2 - d o m a i n 1 ) / W I N D O W ( 2 )

r a n g e i= F Ny ( d o m a i n i )

r a n g e 2= r a n g e i

F O Rx = d o m a i n iT Od o m a i n 2S T E Ps

y = F Ny ( x )

I F y < r a n g e iT H E Nr a n g e i= y

I F y > r a n g e 2T H E Nr a n g e 2= y

N E X T x

E N DS U B

S U BP l o t G r a p h ( r a n g e 1 , r a n g e 2 )S T A T I C

1 P l o tG r a p ho f f u n c t i o nY t o s c a l e

' o f c u r r e n to u t p u tw i n d o w

S H A R E Dd o m a i n i ,d o m a i n 2

S H A R E DF N y O

w i n d o w . w i d t h= W I N D 0 W ( 2 ) - 1

w i n d o w . h e i g h t= W I N D 0 W ( 3 ) - 1

X . s c a l e= ( d o m a i n 2 - d o m a i n 1 ) / w i n d o w .w i d t h

Y . s c a l e= w i n d o w . h e i g h t / ( r a n g e 2 - r a n g e 1 )

Y . z e r o= r a n g e 2 * Y . s c a l e

X . z e r o= - d o m a i n 1 / X .s c a l e

' d r a wa x i s :l i n e sy = 0 a n dx = 0

C L S

L I N E( 0 ,Y . z e r o ) - ( w i n d o w . w i d t h ,Y . z e r o ) , 2

L I N E( X . z e r o , 0 ) - ( X . z e r o ,w i n d o w . h e i g h t ) , 2

' p l o tf i r s tp o i n t

P S E T ( 0 ,Y . z e r o - F Ny ( d o m a i n 1 ) * Y . s c a l e )

' n o wp l o tw h o l ef u n c t i o n

F O Rx . p i x e l= 0 T Ow i n d o w . w i d t h

x = x . p i x e l * X . s c a l e+ d o m a i n i

Y = F Ny ( x )

y . p i x e l= Y . z e r o -y * Y . s c a l e

L I N E- ( x . p i x e l ,y . p i x e l )

N E X T x . p i x e l

E N DS U B

J u l y 1 9 8 6 :V o l u m e7 I s s u eO l

Page 48: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 48/88

K e r n e lR o u t i n e s

I n T h e B 1 2 8

L i zD e a l

M a l v e r n ,P A

T h i si s a l i s to f 4 6 K E R N E Lr o u t i n e si n t h eB 1 2 8 .I t i s s o m e w h a t

d i f f e r e n tf r o mt h el i s ti n t h eP r o t e c t o / C B MG u i d e .M o s to f t h e

r o u t i n e si n t h e B 1 2 8a r e s i m i l a rt o t h e C 6 4 ,b u t s o m ec a l l

a d d r e s s e sh a v e b e e nc h a n g e d ,s e t u pr e g i s t e r ss o m e t i m e sd i f f e r ,

a n dt h e r ei s m o r ei m p a c to n t h e r e g i s t e r st h a nw a st h e c a s e

w i t h t h eC 6 4 .T h i sl i s ti s a l s ov a l i df o rt h eB 2 5 6m o d e l sw h i c h

h a v et h es a m eK e r n e lR O Ma s t h eB 1 2 8 .S o m eB 2 5 6m a c h i n e s

( i n E u r o p e )m a yh a v ea d i f f e r e n tK e r n e lR O M .T h e yc a nb e

d i s t i n g u i s h e df r o mt h em o s tr e c e n tv e r s i o nb y t h ep r e s e n c eo f

c o d ei n t h e" p a t c ha r e a " ,$ E C B 0 - E C E 8 .

M a k i n gt h i sl i s t w o u l dn o t h a v e b e e np o s s i b l ew i t h o u th e l p

f r o mJ i mB u t t e r f i e l di n t h ef o r mo f m e m o r ym a p sa n da s u p e r b

d i s a s s e m b l e r .

U n l e s so t h e r w i s en o t e d ,l o n g a d d r e s s e sa r e n o r m a l l ys e n t /

r e t u r n e di n t h i so r d e r :A = b a n k * ,Y = h i g hb y t e ,X = l o wb y t eo f

a d d r e s s .

U s u a l l yi n z e r o p a g e ,i t i s k e p ti n t h el o - h i - b a n ko r d e r .O f t e na

r e g i s t e rp o i n t st o t h ef i r s to f t h e t h r e eb y t e s .

A , X , Y a r ed a t ar e g i s t e r s .I f u n c h e c k e d ,i t m e a n s ,p o s i t i v e l

t h a tt h er o u t i n eh a sn o e f f e c to n t h er e g i s t e r .T h e" C "c o l u m

r e f e r st o t h e c a r r yf l a g .I t i s a r a r es u b r o u t i n et h a td o e sn o ta f f e c t

t h eC s t a t u s .S o t o a v o i da m b i g u o u sc l u t t e r ,t h eo n l y t i m eC i s

c h e c k e do f fi s w h e ni t m e a n ss o m e t h i n g .M u c ho f t h et i m ei n

t h eI / Or o u t i n e sC i n d i c a t e sa n e r r o r ,b u tS Td o e st h ej o bb e t t e r

- i t m a ys h o wa n e r r o rw h i l eC i s c l e a r .S T =6 4 a t t h ee n do f f i l e ;

t h i si s n o t i n d i c a t e di n t h e t a b l eb e l o w .

J u m b oJ u m pT a b l ei n C h r o n o l o g i c a lO r d e r- C B Mn a m e s

f f 6 c

f f 6 f

f f 7 2

f f 7 5

f f 7 8

f f 7 b

f f 7 e

f f 8 1

f f 8 4

f f 8 7

f f 8 a

f f 8 d

f f 9 0

f f 9 3

f f 9 6

f f 9 9

H 9 c

H 9 f

f f a 2

f f a 5

f f a 8

f f a b

f f a e

f f b l

f f b 4

j m p$ f e 9 d

j m p$ f b c a

j m p$ f e 3 3

j m p$ e O 2 2

j m p$ f c a b

j m p$ f 9 f b

j m p$ e 0 0 4

j m p$ f 4 0 0

j m p$ f b a 9

j m p$ f b a 2

j m p$ f 6 6 0

j m p$ f 6 7 8

j m p$ f b 5 a

j m p( $ 3 2 4 )

j m p( $ 3 2 6 )

j m p$ f b 7 8

j m p$ f b 8 d

j m p $ e O 1 3

j m p$ f b 7 4

j m p( $ 3 2 8 )

j m p ( $ 3 2 a )

j m p( $ 3 2 c )

j m p ( $ 3 2 e )

j m p( $ 3 3 0 )

j m p( $ 3 3 2 )

$ f 2 7 4

$ f 2 8 0

$ f 3 0 a

$ f 2 9 7

$ f 2 a b

$ f 2 a f

$ ( 2 3 4

$ f 2 3 0

; t x j u m p

; v r e s e t

; i p c g o

; f u n k e y

; i p r q s t

; i o i n i t

; c i n t

; a l o c a t

; v e c t o r

; r e s t o r

; l k u p s a

; l k u p l a

; s e t m s g

; s e c o n d

; t a l k s a

; m e m t o p

; m e m b o l

; s c n k e y

; s e t t m o

; a c p t r

; c i o u t

; u n t l k

; u n l s n

l l i s l e n

; t a l k

t r a n s f e ro f e x e c u t i o nj u m p

p o w e ro n / o f fv e c t o rr e s e t

l o o pf o ri p cs y s t e m

f u n c t i o nk e yv e c t o r

s e n di p cr e q u e s t

i / oi n i t i a l i z a t i o n

s c r e e ni n i t i a l i z a t i o n

a l l o c a t i o no f m e m o r y

r e a d / s e ti / ov e c t o r s

r e s t o r e i / o v e c t o r s

m a t c hs a

m a t c hl a

e n a b l e / d i s a b l eo s m e s s a g e s

s e n ds a a f t e r l i s t e n

s e n ds a a f t e rt a l k

s e t / r e a dt o po f m e m o r y

s e t / r e a db o t t o mo f m e m o r y

s c a nk e y b o a r d

s e ti e e et i m e o u t

h a n d s h a k ei e e eb y t ei n

h a n d s h a k ei e e eb y t eo u t

s e n du n t a l kt o i e e e

s e n du n l i s t e nt o i e e e

s e n dl i s t e nt o i e e e

s e n dt a l k t oi e e e

f f b 7

f f b a

f f b d

f f c O

f f c 3

f f c 6

f f c 9

f f c c

f f c f

f f d 2

f f d 5

f f d 8

f f d 8

f f d e

f f e l

f f e 4

f f e 7

f f e a

f f e d

f f f O

f f f 3

f f f 6

f f f 9

f f f a

j m p$ f b 4 a

j m p$ f b 4 3

j m p$ f b 3 4

j m p( $ 3 0 6 )

j m p( $ 3 0 8 )

j m p( $ 3 0 a )

j m p( $ 3 0 c )

j m p( $ 3 0 e )

j m p( $ 3 1 0 )

j m p( $ 3 1 2 )

j m p( $ 3l a )

j m p ( $ 3 1 c )

j m p$ f 9 0 e

j m p$ f 8 e 6

j m p( $ 3 1 4 )

j m p( $ 3 1 6 )

j m p( $ 3 1 8 )

j m p$ f 9 7 9

j m p $ e 0 1 0

j m p $ e O 1 9

j m p $ e 0 1 c

s t a $ O : r t s

. b y t e1

$ f 6 b f

$ f 5 e d

$ f 5 4 9

$ f 5 a 3

$ f 6 a 6

$ f 4 9 c

$ f 4 e e

$ f 7 4 6

$ f 8 4 c

$ f 9 6 b

$ f 4 3 d

$ f 6 7 f

H a r d w a r ev e c t o r s :n m i

; r e a d s t

; s e t l f s

; s e t n a m

; o p e n

; c l o s e

; c h k i n

; c h k o u t

; c l r c h n / r e s t i o

; c h r i n / b a s i n / i n p u t

; c h r o u t / b a s o u t

; l o a d

; s a v e

; s e t t i m

: r d t i m

; s t o p

; g e t i n

; c l a l l

; u d t i m

; s c r o r g / s c r e e n

; p l o t

; i o b a s e

. g o o d b y e

$ f b 3 1 ,r e s e t$ f 9 9 7 ,

r e a d / s e ts t

s e tf i l e sl a . f a . s a

s e tf i l en a m el e n g t ha n da d r s .

o p e nl o g i c a lf i l e

c l o s e / a b o r tl o g i c a lf i l e

c o n n e c ti n p u tc h a n n e l

c o n n e c to u t p u tc h a n n e l

r e s e td e f a u l ti / od e v i c e s

i n p u ta b y t ef r o mo p e nc h .

o u t p u t ab y t et o o p e nc h .

l o a df r o mf i l e

s a v et o f i l e

s e tT O Dc l o c k

r e a dT O Dc l o c k

c h e c kS T O Pk e y -

g e tb y t ef r o mK Bo r c h a n n e l

c l o s e o r a b o r tf i l e s

l a s tr o wK Bs c a n

r e t u r ns c r e e ns i z e

r e a d / s e tc u r s o rp o s i t i o n

r e t u r n i / ob a s ea d d r e s s

g o e st o a n o t h e rb a n k

i r q$ f b d 6 .

T h eT r a n s a c t o r J u l y1 9 8 6 :V o l u m e7 I s s u eO l

Page 49: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 49/88

C B M

a b e l

A C P T R

A L O C A T

C H K I N

C H K O U T H R I N

H K O IT

I N T

I O U T

L A I . L

L O S E

L R C H N

U N K F . Y

E T I N

O B A S E

O I N I T

P C G O

P R Q S T

I S T E N

K U P L A

K L 1 P S A

O A D

M E M B O T

M E M T O P

P E N

L O T

D T I M

E A D S T

E S T O R

A V E

C N K K Y

C R E E N

E C O N D

E T L F S

E T M S G

E T N A M

E T T 1 M

E T T M O

T O P

A L K

L K S A

X . I IM l '

U D T I M

U N L S N

U N T L K

V E C T O R

V R E S E T

J u m p

a d d r

F F A 5

F F 8 1

F F C 6

F F C 9F F C F

F F D 2

F F 7 E

F F A 8

F F E 7

F F C 3

F F C C

F F 7 5

F F E 4

F F F 3

F F 7 B

F F 7 2

F T T H

F F B 1

F F 8 D

F F 8 A

F F D 5

F F 9 C

F F 9 9

F F C O

F F F I )

F F D E

F F B 7

F F 8 7

F F Ii s

F F 9 F

F F E D

F F 9 3

F F B A

F F 9 0

F F B D

F F D B

F F A 2

F F E 1

F F B 1

F F 9 6

I T 6 C

F F E A

F F A E

I - ' K A H

F F 81

F F 6 F

h eT r a n s a c t o r

l u d

a d d r

3 2 8

3 0 a

3 0 c

3 1 0

3 1 2

3 2 a

3 1 8

3 0 8

: « > ( ■

3 1 6

_ _ _

3 3 0

3 1 a

3 0 6

3 1 c

3 2 4

. . .

-

3 1 4

3 3 2

3 2 6

_ _ _

3 2 e

3 2 c—

R e a l

c o d e

[ 3 0 a

1 4 0 0

( 5 4 9

f 5 a 3

f 4 9 c

I 4 e e

e ( ) 4 - l

[ 2 9 7

f 6 7 f

f 5 e d

[ 6 a 6

e 6 f 8

f 4 3 d

e O 3 a

f 9 f b

f e 3 3

( c a b

1 2 3 - 1

f 6 7 8

[ 6 6 0

( 7 4 6

f b 8 d

f b 7 8

( 6 b f

e O 2 5

( 8 e 6

f b - l a

[ b a 2

( 8 4 c

e 0 1 3

e O l O

( 2 7 4

[ 1 ) 4 3

f b . S a

[ 1 ) 3 - 1

( 9 0 e

f b 7 4

[ 9 6 b

f 2 3 0

f 2 8 0

f e 9 d

f 9 7 9

f 2 a f

f 2 a b

f b a 9

f b c a

B 1 2 8K e r n e lR o u t i n e s

G e l b y t ef r o mI E E E

A l l o c a t eY Xb y t e sr e l a t i v e t ot o po f u s e rm e m o r y '

O p e nc h a n n e l( o ri n p u t

O p e nc h a n n e lf o ro u t p u t

I n p u t c h a r a c t e r

O u t p u tc h a r a c t e r

O p e r a t i o nD e t a i l s

o u t :C =1 a n dS T= 2 i f t i m e o u t

i n : X= l o w Y= h i g h

o u t : C = li f f a i l e d( u s eM E M T O P )

i n :X = l o g i c a lf i l e *

o u t :C = ( )i f k e y b o a r do r R S 2 3 2

i EI E E E ,C =1 i f n o f i l e , n od e v i c e

( s e eC H K I N )

o u t :C = ( I i fk e y b o a r do r I E E E( u s eS T )

R S 2 3 2i f S T O P p e dt u r n sC = l

o u t :C = 0 i f s c r e e no r I E E E( u s eS T )

R S 2 3 2i f S T O P p e dt u r n sC = l

I n i t i a l i z es c r e e ne d i t o r ,t o po f u s e rm e m o r y ,f u n c t i o nk e y s

O u t p u tb y t et o I E E E

C l o s eo r a b o r ta l lf i l e s

C l o s eo n ef i l e

R e s t o r ed e f a u l td e v i c e s

P r i n t / E d i t ( u n c t i o nk e yd e f i n i t i o n s

G e ta b y l e

R e t u r n s a d d r e s so f I / O d e v i c e s

I n i t i a l i z eI / Oa n dT O Dc l o c k

L o o pf o ro t h e r p r o c e s s o r

S e n di p cr e q u e s t

M a k eI E E Ed e v i c el i s t e n

L o o k u pp a r a m e t e r s[ o r f i l e *

L o o k u pp a r a m e t e r so n k n o w ns e c . a d d r s

L o a da f t e rc a l l t oS E T L F S . S E T N A M

R e a d / S e tb o t t o mo f m e m o r y '

R e a d / S e tt o po f m e m o r y

O p e na l o g i c a lf i l e

R e a d / S e tc u r s o rp o s i t i o n

o u t :C =1 a n dS T =1 i f t i m e o u t

i n :A = d e v ' ,C = 0 a b o r t s ,d o e sC L R C H N

C =1 c l o s e su n t i le r r o r ,a b o r t sf i l e sa f t e rf i r s te r r o r

i n :A = l o g . H i e " ,( ' = 0a b o r t sf i l e ,C =1 r e a lc l o s ef i l e

P r i n ta l ld i n s - i n :Y = 0

E d i tk e y - i n :Y =k e y *

A = z e r op g p t r t ol e n g t ho f d f na n dl o n g a d d r .

o u t : X Yu n c h a n g e di n R S 2 3 2 / I E E E

C = 0 i n k e y b o a r d , R S 2 3 2 , I E E E( u s eS T )

o u t : b a n k1 5 , X= l o w . Y- h i g ha d d r

i n :A = d e v i c e "

i n :A = l o g . f i l e *

o u t :A = l o g .f i l e ' ,X = d e v 'Y = s e c a d d r ,C =1 i fn o f i l eL A

i n :Y = s e c o n d a r va d d r e s s

o u t :A = l o g . f i l e " ,X - - d e v "Y - ■ =s e c a d d r ,C = 1 i f n o f i l em a t c h e sS A

i n :A b i t7 - 0t o l o a d ,b i t7 - 1 t o v e r i f y ,b i t s0 - 3d e s t .b a n k *

Y , X = d e s t i n a t i o n a d d rh i . l o( X= Y= $ F Fl o l o a da l h e a d e ra d d r )

o u t :A , Y , X= l o n ga d d r .l a s tb y t ei n .

s e t :C = 0 ; A , Y , X =l o n ga d d r e s s

r e a d :C =1 ; A , Y , X= l o n ga d d r e s s

i n :C = 0 ; A , Y , X = l o n ga d d r e s so u t :C =1 ; A , Y , X= l o n ga d d r e s s

i n :C = 0 [ o rn o r m a lo p e n

C = 1 t e m pI E E Ec h a n n e l ,n o t a b l e .

r e a d -i n :C - 1

o u t :X =r o w Y = c o l u m n

s e t - i n : C= 0 ; X= r o wY = c o l u m n

R e a dT O Dc l o c ki n B C D( s e eb o o k( o rb i ta s s i g n m e n t s )

R e a d / S e tS T

R e s t o r es y s t e md e l a u l tv e c t o r s

S a v ea n ym e m o r y

S c a nk e y b o a r d

R e t u r ns c r e e ns i z eX =c o l u m n sY = r o w s

S e n ds e c o n d a r ya d r sa f t e rl i s t e n

S e tf i l ep a r a m e t e r s

E n a b l e / D i s a b l eO Sm e s s a g e s

S e tf i l en a m e

S e lT O Dc l o c ku s i n gB C Dv a l u e s

E n a b l e / D i s a b l eI E E Et i m e o u t

C h e c kS t o pk e y

M a k eI E E Ed e v i c et a l k

S e n ds e c o n d a r v a d d r e s sa f t e r t a l k

J u m pt o c o d ea t l o n g a d d r e s sA Y X

P a r t o fK Bs c a n( n o c l o c k w o r k ! ! )

U n l i s t e na l l I E E Ed e v i c e s

U n l a l ka l l I E E Ed e v i c e s

R A Mv e c t o r s s t o r i n g

S e tb u t t o n - r e s e tc o d et o b a n k1 5 a t X , Y

r e a d -i n :C —1

s e t - i n : C= 0 A = v a l u el o g ot o S T

i n :X = z e r op g p t r t ol o n gs t a r ta d d r

Y = z e r op g p l r t ol o n ge n da d d r s

o u t :A X Ya r eN O Tf i n a la d d r e s s

i n : A= l o g . f i l e " ,X = d e v " ,Y = s e ca d d r

i n :A b i t1 = I K E R N E Lm s g so n ,b i t6 = 1 C o n t r o lm s g so n

i n :A = l e n g l ho f ( i l en a m e ,X z e r op g p l r t ol o n gn a m ea d d i

i n : b i t sa s s i g n m e n t s - s e eb o o k

i n :A b i t7 = 0 e n a b l e ,b i t7 = 1 d i s a b l e

o u t :Z = 0i l S T O Pn o t u s e d :X u n c h a n g e d

Z = 1 i f S T O Pu s e d ,X c h a n g e db y c a l l t oC L R C H N

i n :A = d e v i c e *

i n :A = s e c o n d a r va d d r e s s

l o g sk e y s :e n t e r ,+ , - , / , s t o p

i n :C = 0m o v e su s e rl i s ta t A Y Xt o v e c t o r a r e a

C =1 m o v e sv e c t o r sl o a d d rA Y X

i n : X= l o wY = h i g h

A

-

-

-

-

a

-

a

a

a

a

-

-

-

-

-

a

a

-

a

a

a

-

-

a

-

-

-

a

a

a

a

a

-

a

a

a

-

-

a

-

I N

X Y C

x y -

x —

x - -

- - c

— c

_ y _

- y -

- v -

X V -

X V C

- - c

x y c

— c

- — c

— c

x y c

— c

— c

-

x y -

x y -

x —

x y -

x y -

x y c

X V -

M O D\ X \ ( ■

a — c

a , x y c

a x - c

a x —a — c

c

a x y -

- - - c

a x y c

a x \ ' -

I X - -

a x y -

a x y -

a x v -

- x y -

a x y -

a x y -

a x v -

a

a x v c

a x y c

a x y -

a x y -

a x v -

a x y -

- X V -

a

a x y -

a

a x y -

a x y -

a x y -

- x y -

a

a

a x —

a

a - - -

a x y c

a ■

a

a — - -

a x y -

a

M O DS T

.

*

*

»

4 5 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 50: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 50/88

U n m a s k i n g T h eK e r n a l

- A c o l l e c t i o no f n o t e sa b o u tu s i n g t h eI / Or o u t i n e s

J o h nR u s s e

S t .J o h n ' s ,N F

E v e r yp r o g r a m m e rw h ot a k e su p m a c h i n el a n g u a g es o o nr u n si n t ot h o s e

p u z z l i n gp h e n o m e n a k n o w na s t h e" K e r n a lR o u t i n e s " .T h o s ew h oh a v e

a l r e a d y a t t a i n e de n l i g h t e n m e n tu s et h e mw i t ha b a n d o na n du r g eo t h e r st o

d o t h es a m e ,b u tt h e yc a nb e p r e t t yd a r n c o n f u s i n gi f y o uh a v eb a r e l y

p a s s e dt h e" L D A# $ 0 0 "s t a g e .A t l e a s t ,t h e yw e r et o m e ,a r m e da s 1 w a s

w i t h o n l y aC 6 4P r o g r a m m e r ' sR e f e r e n c eG u i d e a n da c o p yo f S u p e r m o n .

I w a sb y n om e a n sa n o v e r n i g h ts u c c e s sa t l e a r n i n gm a c h i n el a n g u a g e .A t

f i r s t1 s h u n n e dt h em a c h i n el a n g u a g es e c t i o no f t h eG u i d ea s i f 1 w a sa f r a i d

t h e p a g e sw o u l db i t em e .B u to l d e r ,w i s e rh e a d sa s s u r e dm e t h a ti f I

p r o g r e s s e dt o t h e p o i n tw h e r eI n e e d e ds p e e db e y o n dt h a to f B a s i c ,I w o u l d

h a v et o b e c o m ei n v o l v e d w i t hm a c h i n el a n g u a g e .1 w a st o u g ht o c o n v i n c e ,

b u te v e n t u a l l y1 w a sg r i p p e d w i t hc u r i o s i t y .

A n ds o o n ed a y 1 d e c i d e dt o g i v eM - La t r y . 1 s t u d i e dc a r e f u l l yt h e

e x p l a n a t i o n sa n de x a m p l e sf r o mt h e R e f e r e n c eG u i d e .1 f i d d l e dw i t h

S u p e r m o n .1 p r i n t e dt h ea l p h a b e t .1 c h a n g e dt h ec o l o u ro f t h es c r e e n ,a n d

f i n a l l yf i g u r e do u tw h a t n u m b e r ss u c ha s $ D 0 2 0s t o o df o r .1 m e m o r i z e dt h e

m n e m o n i c sa n dt h e i rf u n c t i o n s .I p r i n t e dt h ea l p h a b e ta g a i n .B u ti t w a s

h e r et h a t1 w a ss t o p p e dc o l d ,b e c a u s e1 c o u l d n ' tr e a l l yc a u s e a n y t h i n gt o

h a p p e n( a s i d ef r o mc h a n g i n gt h e s c r e e n c o l o u r sa n dt h ee v e r - p o p u l a r

a l p h a b e tp r i n t i n g ) .1 n e e d e dt w ot h i n g s: y - i n d e x e dl o o p sa n dK e r n a l

R o u t i n e s .T h ef o r m e rw e r ed e s c r i b e dw e l le n o u g hi n t h eG u i d e ,1 j u s th a d

t o t h i n ka b i ta b o u tw h e r et o u s et h e m ;t h eK e r n a lR o u t i n e s ,h o w e v e r ,w e r e

d o w n r i g h tc o n f u s i n g .T h i sm i g h tn o ts e e ml i k ea m a j o rc r i s i s- w h on e e d s

t h e m ,a n y w a y ?W h a te x a c t l yd o t h e y d o ?W e l l ,t h ee a s i e s tw a yt o e x p l a i ni t

i s t o s a yt h a tw i t h o u tt h e m ,t h eo n l yw a yt o m a k et h ec o m p u t e rc o m m u n i

c a t ew i t ht h e o u t s i d ew o r l d( i . e .y o u o r a n o t h e ru s e r )i s b y p o k i n g

i n f o r m a t i o ne i t h e rt o s c r e e nm e m o r yo r t o t h em y s t e r i o u s" C I Ac h i p s "( o n e

b i ta t a t i m e ! ) .T h i sd i d n o ts e e mt o m et o b e a r e a l p o s s i b i l i t y ,s o 1 s e ta b o u t

t o f i g u r eo u te x a c t l yw h a tt h eK e r n a lw a sa l la b o u t .

D o n ' tl a u g h , b u tI t h o u g h tt h a tS u p e r m o nw o u l du n d e r s t a n dt h en a m e so f

e a c hr o u t i n e ,s o 1 h a dc o m m a n d sl i k e" J S RC H R O U T "w i t h o u tb e n e f i to f a n

a s s e m b l e r( S u p e r m o n ,M i c r o m o ne t a l , w i t ht h e i rn a r r o wf o r m a tf o r

e n t e r i n gi n s t r u c t i o n s ,a r em o n i t o r s ) .I c o u l d n ' tf i g u r eo u t t h eo r d e ro f m a n y

s e q u e n c e s .T h e r ea r e a h o s to f r o u t i n e st h a tc a nb e u s e dt o a c c e s st h e d i s k

o r p r i n t e r ,a n dj u s t t ob e s a f e ,1 w o u l da l w a y s u s ea s m a n ya s 1 c o u l d .

N e e d l e s st o s a y ,i t w a sa n i c ew h i l eb e f o r eI c o u l dd o a n y t h i n gw i t ht h e

d r i v e o rp r i n t e r .

M yb i g g e s t b e e fw a st h a tm a n yi m p o r t a n tr o u t i n e s ,l i k e" C L R C H N "a r e n o t

i d e n t i f i e d a si m p o r t a n t ,a n dr o u t i n e sl i k e" L I S T E N "( w h i c h1 h a v en e v e r

o n c e n e e d e dt o c a l ld i r e c t l y )a r en o ti d e n t i f i e da s u n n e c e s s a r y .H o wc o u l d

t h a tb e a p r o b l e m ,y o ua s k ?I " l i s t e n e d "a n d" u n l i s t e n e d "m yd r i v et o d e a t h

b u t n e v e rd i d a" C L R C H N " ,s o 1 a l w a y se n d e d u pw i t ha l o c k e du p

c o m p u t e r , a ne r r o rl i g h t ,a n da s t a rf i l ei n m yd i r e c t o r y .

T h eu n i v e r s a li n p u t / o u t p u tr o u t i n e s a r e n o ti d e n t i f i e da s s u c h , s oI c o u l d

n e v e rd e c i d ew h i c h o n e w a st h e r i g h to n e( C H R O U Ta n dG E T I Na r e

a l w a y sb e s t ,w i t ho n ee x c e p t i o n - s i m u l a t i n ga B a s i cI N P U Ts t a t e m e n t ) .

A l s o ,t h e r ew a sn os t e p - b y - s t e p g u i d et o o p e n i n ga f i l ea n dp e r f o r m i n g I / O

f u n c t i o n s .I r a n o u to f s t a c ks p a c ei n m y h e a dt r y i n gt o f o l l o wa l l t h o s e

p r e p a r a t o r yr o u t i n e sb a c kt o t h eb e g i n n i n g .A n dp u t t i n g" , s , w "o r " , p , w "

i n t h ef i l e n a m e si n o r d e rt o w r i t ea n y t h i n gt o t h e d i s ke s c a p e dm ef o rq u i t e

s o m et i m e .

A n e x t r e m ec a s e ?L e a r n i n gd i s a b i l i t i e s ?1 w a sb e g i n n i n gt o s u s p e c tt h a t

s u c hh a dt o b e t r u e .I n c o n t r a s tt o m y q u i c kg r a s po f c o m m a n d sa n d

t e c h n i q u e si n B a s i c ,1 w a sa s n a i la t l e a r n i n gm a c h i n el a n g u a g e .

L o o k i n gb a c k ,1 c a ns e et h a ti t w a s n ' tr e a l l yt h a tb a d .O n c e1 l e a r n e dt h e

o p - c o d e s a n dt h ed i f f e r e n tt y p e so f i n d e x i n gI c o u l dd o a n y t h i n gI w a n t e

t o , l i m i t e do n l yb y m y k n o w l e d g eo f t h e 6 4 ' si n p u t / o u t p u tc h i p s .N o w

w h e nI ' ma s k e dq u e s t i o n sa b o u tm a c h i n el a n g u a g eb y l e a r n e r s ,1 f i n dI ' m

a b l et o g i v ed e t a i l e da n s w e r sw i t h o u tr e f e r r i n gt o m e m o r ym a p so r t h e

G u i d e- b e c a u s eI w a sf o r c e dt o f i g u r es u c ht h i n g s o u tf o rm y s e l fa n dt e s t

t h e mb y t r i a la n de r r o r .

I s u s p e c tt h a te v e r y o n eh a ss i m i l a rp r o b l e m s ,a t l e a s ts t a r t i n go f f .A n d

a c c e s s i n g t h eK e r n a l R o u t i n e sp r o p e r l yi s l i k e l yt o b e t h e h i g h e s th u r d l e

y o u ' l lh a v et o c l e a ro n y o u rw a yt o b e c o m i n ga p r o f i c i e n tM - Lp r o g r a

m e r .

S o : h e r e ' sm yg u i d et o u s i n gK e r n a lR o u t i n e s .

- L e a r nt h eh e xa d d r e s s e so f t h ei m p o r t a n tr o u t i n e s .U s i n gt h es y m b o l

l a b e l si n a n a s s e m b l e rs u c ha s P A Li s a l lv e r yw e l la n dg o o d , b u ty o u ' l l

h a v ed i f f i c u l t yu n d e r s t a n d i n g d i s a s s e m b l i e so r o t h e r p e o p l e ' sc o d eo t h e r

w i s e .1 f i n d" j s r $ F F D 2 "j u s ta s e a s yt o t y p ea n d r e c o g n i z ea s " j s r

C H R O U T " .

- H o w e v e r ,t h o s ew h oh a v ea c c e s st o a n a s s e m b l e r c a n s a v e

t i m ea n db o t h e rb y a s s i g n i n gl a b e l st o i m p o r t a n tr o u t i n e se a r l yi n a

p r o g r a m( e gO P E N= $ F F C 0 ) .F o rt h o s ew h od o p r o g r a m m i n gw h i c h

m a k e se x t e n s i v e u s eo f t h e K e r n a l ,s a v ea P A Ls y m b o lt a b l eo r a L i b r a

f i l e( f o rt h eC o m m o d o r eM a c r oA s s e m b l e r )w h i c hc o n s i s t so f n o t h i n gb u t

t h el a b e l sa n da d d r e s s e so f f r e q u e n t l yu s e dK e r n a lr o u t i n e s .U s ea " . 1 s t " i

P A Lo r " . l i b "i n t h eM a c r oA s s e m b l e rt o h a v et h el a b e l sa s s i g n e d a u t o

c a l l y .

- T o p r i n t ac h a r a c t e rt o a n yd e v i c e( i n c l u d i n g s c r e e n )u s eC H R O U

( $ F F D 2 ) .N on e e dt o e v e r u s eC I O U T ,L I S T E N ,o r S E C O N D ,b e c a u s et h e

r o u t i n ea t $ F F D 2c h e c k st o s e ei f t h e c h a r a c t e ri s g o i n gt o d i s k o rp r i n t e

a n dc a l l st h e s e r o u t i n e sw h e nt h e ya r e n e c e s s a r y .

- T o r e c e i v e a c h a r a c t e rf r o ma n yd e v i c e( i n c l u d i n gk e y b o a r d ) u s eG E T I

( $ F F E 4 ) .T h i sd o e sa w a yw i t ht h en e e df o rA C P T R ,C H R I N , T A L K ,U N T L K

a n d T K S A ,f o rt h es a m er e a s o n sa s a b o v e .

- O fc o u r s e ,t h i sm e a n st h a ta n yt i m ey o uw a n tt o s e n dt o o r g e tf r o md i s k ,

p r i n t e r ,m o d e m ,e t c .y o u m u s tf i r s ti n d i c a t et h i s t ot h ec o m p u t e r( A h a !y o u

s a y ) .A f t e ra f i l eh a sb e e no p e n e d , u s eC H K I No r C H K O U Tt o s e l e c t t h a tf i l e

f o rt h ep r o p e ro p e r a t i o n s .T oa v o i ds e r i a lb u sc o n f u s i o n ,u s eC L R C H Nf i r s t .

I t ' s e a s i e rt o r e m e m b e ri f y o u p u t i n a r o u t i n ec a l l e d" t o p r i n t e r "o r

" f r o m d i s k "w h i c hw i l lc a l lC L R C H N ,t h e nC H K I No r C H K O U Tw h e n e v

n e c e s s a r y( o r i f y o u ' r e n o ts u r ew h e r ey o u rd a t ai s g o i n gt o o r c o m i n

f r o m ) .

T h eT r a n s a c t o r 4 6 J u l y 1 9 8 6 :V o l u m e7 , I s s u e0 1

Page 51: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 51/88

T h ef r i e n d l i e s tr o u t i n et o u s e b o t hb e f o r ea n da f t e rd o i n gd i s ko rp r i n t e r

o r ki s C L R C H N( $ F F C C ) .A n y t i m ey o up e r f o r mi n p u t o r o u t p u tt o

e r i p h e r a l s ,u s et h i sa f t e r w a r d st o m a k es u r e i n p u ta n do u t p u tg o b a c kt o

e y b o a r d / s c r e e n .U s ei t o f t e n ;y o uc a n n e v e r b et o oc a r e f u l .

U s eC H R 1 No n l ya s t h ee q u i v a l e n to f aB a s i c i n p u ts t a t e m e n t ,a n di n

x a c t l y t h ew a yi t ' ss h o w ni ne x a m p l e s . T h i si sa b i z a r r er o u t i n ew h i c hc a n

a v eu n p r e d i c t a b l er e s u l t si f n o th a n d l e dc a r e f u l l y .T r yc a l l i n gi t a s i n g l em ei f y o u ' r e n o tc o n v i n c e d .

W h e nu s i n gL O A Da n d S A V E ,d o n ' tu s eO P E Nf i r s t .T h e yp e r f o r mO P E Nt o m a t i c a l l y .

C L A L Ld o e s n ' ta l w a y sd ow h a ty o u ' de x p e c t .U s et h eC L O S Er o u t i n eo n

c hi n d i v i d u a lf i l e .I fy o u ' r el a z y( l i k em e ) ,h a v es e v e r a lf i l e so p e n ,o rh a v e

r o g r a mc r a s h w i t h t h e d r i v el i g h to na n df i l en u m b e r u n k n o w nO P E N

ed i s kc o m m a n dc h a n n e l , t h e nC L O S Ei t .T h i sc l o s e sa l lo p e nf i l e st o t h e

s k ,s o n e v e rC L O S Et h ec o m m a n dc h a n n e li f y o u ' r e n o tf i n i s h e dw i t hu ro t h e rf i l e s .

fy o ua r es e n d i n gd i s kc o m m a n d s ,u s i n g b l o c kr e a do rw r i t e ,c h e c k i n g

e e r r o rc h a n n e l ,o r a n y t h i n gt h a tr e q u i r e sy o ut o h a v et h ec o m m a n da n n e lt o t h ed i s ko p e n ,k e e pi t o p e nf o rt h ed u r a t i o n .I t c a n ' t h u r t ,a n d

uw i l ls u f f e rn oi l le f f e c t si f i t i s n ' tc l o s e da t t h ee n d .T h e r ew i l l ,h o w e v e r ,

n a s t ys u r p r i s e si fy o uc l o s ei t b e f o r ef i n i s h i n gu pw i t hy o u ro t h e rf i l e s .'

e n d i n ga c o m m a n dt o t h ed i s ki s m o s te a s i l yd o n eb y s e t t i n gt h e

l e n a m et ob et h ec o m m a n d( e . g ." s O . t e s t " )b e f o r ep e r f o r m i n gt h eO P E N .

e ns i m p l yo p e nt h ec o m m a n dc h a n n e l .I fn oc o m m a n di s t ob es e t ,u s ea

l e n a m eo f l e n g t hz e r o .D i s kc o m m a n d sa f t e rt h ef i r s tm u s tb ep r i n t e dt o

ec h a n n e l ,a s i n t h e B a s i cc o m m a n dp r i n t *1 5 , " i O " .

h eR E A D S Tr o u t i n e( $ F F B 7 )i s u s e d m a i n l yt o d e t e c t t h ee n do f af i l e

i si s t h ec r y p t i c" E O Il i n e "m e n t i o n e di n t h eC 6 4G u i d e ;i t s t a n d sf o r

n dO rI d e n t i t y " ) .A l o o pu s i n gi t w o u l dl o o ks o m e t h i n gl i k et h i s:

t m

r o u t

a d s t

o p

=

=

=

=

j s r

j s r

j s r

a n d

b e q

$ f f e 4

$ f f d 2

$ f f b 7

*

g e t i n

c h r o u t

r e a d s t

# $ 4 0

l o o p

; g e t a c h a r

p r i n ti t

; c h e c ks t a t u s

; i sb i t6 ( E O I )s t i l lc l e a r

; y e s ,g o b a c k

h e nr e a d i n gt h e e r r o rc h a n n e l ,a l o o pm u s tb e u s e dt o g e tc h a r a c t e r s

i la r e t u r n ( c h r $ ( 1 3 ) )i s r e c e i v e di n o r d e rt o t u r no f ft h e e r r o rl i g h t .

y o ug e t" s e a r c h i n gf o r . . . "a n ds i m i l a rm e s s a g e sw h e nl o a d i n ga n d

i n g w i t hm a c h i n el a n g u a g ey o uc a nt u r nt h e mo f fw i t h" a s l$ 9 d " .T h i s

a r sa c e r t a i nb i ta n da v o i d st h e h a s s l eo f t h eS E T M S Gr o u t i n e .

s ed r i v ea n df i l e - t y p ed e c l a r a t i o n si n f i l e n a m e st o a v o i de r r o r s- d o n ' t

l t " t e s t " ,c a l li t " 0 ; t e s t , p , w " .T h ee x c e p t i o n st o t h i sr u l ea r eL O A D

dS A V E , w h i c hd o n ' t r e q u i r ef i l et y p et o b e s p e c i f i e d .I t i s , h o w e v e r ,

s i b l et o g e t al o o ka t a s e q u e n t i a lf i l eb y d o i n ga L O A Do f " n a m e . s . r " .

er e s u l t i n gp r o g r a mi s s o m e w h a tg a r b l e d ,b u ti t c a n b ea u s e f u lt i m e -

e r .

we x a m p l e s( i nP A Lf o r m a t )s h o u l ds e r v et o m a k et h i n g sm o r ec l e a r .

r so f M - Lm o n i t o r ss h o u l du s ea c t u a ln u m b e r sa n da d d r e s s e si n p l a c e

a b e l s .

p e np r o g r a mf i l e" t e s t "o n d i s kf o rr e a d i n g . ..

; • * * *b e l o wi s e q u i v a l e n to f :' o p e n8 , 8 , 8 ," n a m e "

I d a # $ 0 8 ; t h ef i l en u m b e rt h ec o m p u t e rr e f e r st o

l d x # $ 0 8 . d e v i c en u m b e r8 - t h ed r i v e

I d y # $ 0 8 s e c o n d a r ya d d r e s s8 - a n y t h i n g o t h e rt h a n

1 5 ,0 , o r 1 i s s a f e s t

j s r $ f f b a ; s e t l f s- u s et h ea b o v e n u m b e r sI d a # $ 0 a ; 1 0 c h a r si n f i l e n a m e

I d x # < n a m e; t h e$ 3 4i na na d d r e s sl i k e$ 1 2 3 4I d y # > n a m e; t h e$ 1 2i n a na d d r e s sl i k e$ 1 2 3 4

j s r $ f f b d , s e tt h ef i l e ' sn a m ej s r $ f f c O ; d o t h ea c t u a lo p e n i n g

I d x # $ 0 8 . f i l e# 8( N O Td e v i c e8 )

j s r $ f f c 6 ; c h k i n -i g n o r ek e y b o a r d ,r e c e i v ec h a r a ct e r sf r o mf i l e# 8

( r o u t i n eu s i n g$ F F E 4t o r e a df r o mf i l e )

; * * * * c l o s ef i l e# 8 * * * *

j s r $ f f c c f i n i s h e dw i t h d i s kf o rn o wI d a # $ 0 8 ; f i l e # 8 a g a i n

j s r $ f f c 3 ; c l o s ef i l e# 8

r ' s ; a n dw e ' r ed o n e

n a m e= *

. a s c" O : t e s t , p , r "

f i l e n a m eg o e sb e l o w

; N B : u s e r so f m o n i t o r sm u s t p o k et h e i r

; f i l e n a m e si n t om e m o r ya n df i g u r e

i o u tt h eh e x a d d r e s s e st h e m s e l v e s

T os a v em e m o r yf r o m$ 1 2 3 4t o$ 5 6 7 8a s " p r o g "o nd i s k .

s t a r t = $ 1 2 3 4

e n d = $ 5 6 7 9

I d a # $ 0 8t a x

t a y

j s r $ f f b a

I d a # $ 0 6

I d x # < n a m e

I d y # > n a m e

j s r $ f f b d

I d a # > s t a r t

s t a $ f a

I d a # < s t a r t

s t a $ f b

I d a # $ f a

I d y # < e n d

I d x # > e n d

j s r $ f f d 8

r t s

n a m e= *

. a s c" 0 : p r o g "

; s t a r to f r a mt o s a v e

; e n do f r a m+ 1

; 3 8 ' s ,a s i n a b o v ee x a m p l e

; 6 c h a r si n f i l e n a m e

; l o w e r2 h e xd i g i t so f a d d r e s s

; h i g h e r 2h e xd i g i t s

; s e tt h ef i l e n a m e

; s t a r to f s a v e

; g o e si n t o$ f a , $ f b

; a s l o - b y t e , h i - b y t e

; b e c a u s e$ f aw a su s e da b o v e

; o n em o r et h a n

; e n do f s a v e

; n o ws a v ei t

; c o u l db e a n y w h e r e

; n of i l et y p en e e d e df o rl o a d& s a v e

N o t i c et h a tw h e ns a v ew a su s e d ,t h e r ew a sn o n e e dt o o p e na c h a n n e lo r

s e ta n o u t p u td e v i c e .D o i n gs o c a nl e a dt o a f i l ew i t hf i l et y p e " d e l "i n t h e

d i r e c t o r y .

O f c o u r s e ,i t ' si m p o s s i b l et o c o v e ra l l a s p e c t so f t h eK e r n a lr o u t i n e si n a

s i n g l ea r t i c l e- y o u c o u l dw r i t ea s i z a b l em a n u a l o nt h e i r i n t r i c a t e

w o r k i n g s .T h eb e s t b e ti s f o r p r o g r a m m e r st o r e f e rt o a w o r kl i k et h e

P r o g r a m m e r ' sR e f e r e n c eG u i d e( h e n c et h en a m e )f o rd e t a i l e dh o w - t o - u s e

i n f o r m a t i o na n dt h eq u i r k se a c hr o u t i n eh a s .A n d ,o f c o u r s e ,k e e pr e a d i n g

T h eT r a n s a c t o r !

4 7 J l 1 9 8 6V o l m e7 I O l

Page 52: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 52/88

K e r n a lW h o ? E v a nW i l l i a

W i l l i a m sL a k e ,B C

I s t a r t e dc o m p u t i n gw h e nF O R T R A NI Vw a sp o p u l a ra n dt h em a c h i n e

f i l l e dt h eb a s e m e n to f o n eo f t h eh a l l so n c a m p u s .I n t e r a c t i v ew a sa

w o r du s e di n t e a c h i n g , n o ti n p r o g r a m m i n g .A l lj o b sw e r er u ni n b a t c h

m o d e ;y o up u n c h e dy o u rc a r dd e c k ,d r o p p e di t o f f a tm i d n i g h t ,a n d

c a m eb a c ka t 3 A Mt o g e tt h e p r i n t o u t .A f e wo f t h ew e l l - e q u i p p e d

p h y s i c sl a b sh a da P D P - 4m o d e lo r t w o , am i n i - c o m p u t e r .I n t h o s e

d a y s" m i n i "m e a n tr e a l l ys m a l l( l i k es k i r t s ) .T h eP D Ps e r i e sw a sl u c k y

t o h a v e8 k o f m e m o r yi n s t a l l e d ,a n dm a n yh a d4 k .I d r o p p e do u to f

c o m p u t i n gf o ra n u m b e ro f y e a r s ,n o tb e i n ga b l et o a f f o r d2 - 3m i l l i o n

f o ra c o m p u t e ro r a v a nt o p o r ti t a r o u n di n .T h e n c a m eP E T .1 e a g e r l y

l a i do u t$ 1 2 0 0d o l l a r sf o ro n eo f t h ef i r s to n e st o h i tB . C .b a c k a r o u n d

1 9 7 8a n dt o o ki t h o m et o s e ew h a ti t c o u l dd o .1 s o o nd i s c o v e r e dt h e

g r e a tf e e l i n g o fb e i n ga b l et o c h a n g ea p r o g r a mt h em o m e n ta m i s t a k e

w a sd i s c o v e r e d .T h i sw a si n t e r a c t i v ep r o g r a m m i n g . T oa d dt o t h i s ,t h e

P E Th a so n eo f t h eb e s ts c r e e ne d i t o r se v e ri m p l e m e n t e d( l o n gb e f o r e

I B M P Co r T l P r o f e s s i o n a l ) .O n et h i n gl e dt o a n o t h e r ,a n ds o o nI w a s

s e a r c h i n gf o ra w a yt o b o o s tp e r f o r m a n c e .T h e r ei s o n l yo n er e a l l y

p r a c t i c a lw a yt o d o t h i s ,a n dt h a ti s m a c h i n el a n g u a g e .

W h a t ' sa K E R N A L ?

M a c h i n el a n g u a g ei s S U P E RS P E E D Yc o m p a r e dt o B A S I C ,b u ty o u

h a v et o d o e v e r yl i t t l et h i n g y o u r s e l fa n di t i s d i f f i c u l tt o m a k ey o u rr o u t i n e s a sf l e x i b l ea s B A S I C .F o r t u n a t e l y , t h e r ei s h e l p ,a n di t r e s i d e s

w i t h i nt h e R O M si n c l u d e d w i t hy o u rc o m p u t e r .T h i s h e l pi s i n t h e

f o r mo f a u s e f u ls e to f g e n e r a l - p u r p o s em a c h i n el a n g u a g er o u t i n e st h a t

p e r f o r ma v a r i e t yo f f u n c t i o n s .T h e s ef u n c t i o n s a r e p r i m a r i l yi n p u t ,

o u t p u ta n di n t e r n a lh o u s e k e e p i n g .T h er o u t i n e s a r es e tu p s o t h a tt h e y

w i l la c c e s s t h ec o r r e c t d e v i c e ,p a s s i n g i n f o r m a t i o nb a c ka n d f o r t h

f r o m y o u rp r o g r a mi n a s i m p l ea n dp r e d e f i n e dw a y .T h i sb l o c ko f

m a c h i n el a n g u a g er o u t i n e si s t h e h e a r to f t h ec o m p u t e r ' s o p e r a t i n g

s y s t e m ,a n d i n t h e C - 6 4h a sa R O Mc h i pa l l o f i t s o w nt o l i v ei n .

A r o u n dt h e s e r o u t i n e s a r eb u i l tm a n yo f t h e f u n c t i o n su t i l i z e db y

B A S I Co r m o s ta n yo t h e rp r o g r a mw r i t t e ni n m a c h i n el a n g u a g e .

B e c a u s et h e r o u t i n e s a r es u c ha c e n t r a le l e m e n to f t h ec o m p u t e r ,t h e

n a m eK E R N A Li s a p p l i e d .M a n yp r o g r a m m i n gl a n g u a g e se x i s tt h a t

h a v ea c o r eo f p r e d e f i n e dr o u t i n e st h a tm a yb e u s e dt o a s s e m b l em o r e

c o m p l e xf u n c t i o n s .I n t h e s el a n g u a g e st h ec e n t r a lc o r er o u t i n e sa r e

o f t e n c a l l e dt h e K E R N A L .T h em e t h o do f u s i n gt h e s er o u t i n e si n

C o m m o d o r ec o m p u t e r si s t h es a m e ,r e g a r d l e s so f w h i c hm o d e ly o u

o w n .T o C o m m o d o r e ' sc r e d i t ,t h e r e q u i r e m e n t sf o r e n t e r i n ge a c h

r o u t i n ea n dt h e r e s u l t sh a v eb e e nk e p ta s c o n s t a n ta s p o s s i b l eo n

d i f f e r e n tm a c h i n e s .

T h eJ u m pT a b l e

T h e j u m pt a b l ei s t h ew a yb y w h i c ha l lK E R N A Lr o u t i n e ss h o u l d b e

c a l l e d .T h i st a b l ei s a s e q u e n c eo fM Lj u m pi n s t r u c t i o n sf o u n dn e a rt h e

t o p o f m e m o r y . T h e ya r e i n t h e s a m ep l a c ei n a l l C o m m o d o r e

c o m p u t e r se x c e p tf o rr o u t i n e st h a ta r eu n i q u et o a s p e c i f i cm a c h i n e .

T oc a l la K E R N A Lr o u t i n eo n em u s tf i r s tc a l la n yp r e r e q u i s i t e r o u t i n e s

a n dt h e nl o a dc e r t a i nr e g i s t e r sw i t h b y t ev a l u e sn e e d e dt o t r a n s f e r

T h eT r a n s a c t o r

r e q u i r e d i n f o r m a t i o nt o t h eK E R N A Lr o u t i n e .S o m er o u t i n e sn e e dn o

s e t u pa t a l l ,w h i l eo t h e r sn e e do n eo r t w op r e v i o u sr o u t i n ec a l l s t og e t

t h i n g sr e a d y .F o rt h ep u r p o s e so f t h i sd i s c u s s i o nw ew i l lu s et h eC - 6 4

j u m pt a b l ea s a n e x a m p l e .T h o s eo f y o u u s i n go t h e rm o d e l so f

C o m m o d o r ec o m p u t e r s ,p a r t i c u l a r l yt h eP E Ts e r i e s , w i l lf i n dt h ej u m p

t a b l es i m i l a r ,g e n e r a l l yc o n t a i n i n ga s u b s e to f t h eC - 6 4j u m pt a b l e .I f

y o u h a v ea m a c h i n el a n g u a g e m o n i t o rh a n d yf o r y o u rc o m p u t e

( s u c ha s s u p e r m o n , m i c r o m o n ,e t c . )y o us h o u l dh a v ea l o o ka t t h e

s e c t i o no f m e m o r ys t a r t i n ga t $ F F 8 1 .W h e nt h i sa r e ai s d i s a s s e m b l

y o uw i l lf i n da s e q u e n c eo f " J M P$ x x x x "i n s t r u c t i o n sw h e r e" $ x x x x

i s a n a d d r e s so f e i t h e ra r o u t i n ei n t h e R O Mo r o f a n i n d i r e c tj u m p

v e c t o r .

I n t h ec a s eo f a n i n d i r e c tv e c t o r t h ea d d r e s so f t h ea c t u a lr o u t i n ew i l l

b e c o n t a i n e di n t w oc o n s e c u t i v em e m o r yl o c a t i o n ss t a r t i n gw i t ht h e

o n er e f e r e n c e db y t h e" J M P "i n s t r u c t i o n .T h et a r g e ta d d r e s si s s t o r e d

i n t h ev e c t o rl o c a t i o nw i t ht h el o wo r d e r b y t ei n t h el o wo r d e rm e m o r

a d d r e s sa n dt h e h i g hb y t ei n t h e h i g h o r d e rm e m o r yl o c a t i o n .F o r

e x a m p l e ,t h eC H R O U T( $ F F D 2 )r o u t i n e( s e e t a b l e I )v e c t o r st h r o u g

l o c a t i o n$ 0 3 2 6b y m e a n so f a " J M P( $ 0 3 2 6 ) "i n s t r u c t i o ni n t h ej u m p

t a b l e .W h e nt h i si n s t r u c t i o ni s e x e c u t e d ,t h em i c r o p r o c e s s o rw i l lf e t c h

t h e t w ob y t e sc o n t a i n e di n l o c a t i o n s$ 0 3 2 6a n d$ 0 3 2 7a n d i n s t a l

t h e mi n t h ep r o g r a mc o u n t e r .P r o g r a me x e c u t i o nw i l lt h e n c o n t is t a r t i n ga t t h i sn e wa d d r e s s .

A v e r yi m p o r t a n tf e a t u r eo f t h e r o u t i n e su s i n ga n i n d i r e c tj u m pv e c t o

i s t h ef a c tt h a tt h e v e c t o r s a r e s t o r e di n R / Wm e m o r y( u s u a l l yk n o w

a s R A Me v e n t h o u g hR O M ' sa r ea l s oR a n d o mA c c e s sM e m o r y ) .T h i s

m e a n st h a tt h ep r o g r a m m e rm a yc h a n g et h e s ev e c t o r st o p o i n tt o h i s

o w nr o u t i n e s ,o r s i m p l yt o a R T Si n s t r u c t i o ns o a st o d i s a b l ea r o u t i n

" P a t c h i n g "t h e s e v e c t o r si s a s i m p l ea n de f f e c t i v ew a yo f a d d i n go r

m o d i f y i n gt h e o p e r a t i o no f t h e c o m p u t e ro p e r a t i n g s y s t e m A s a n

e x a m p l e ,n e wc o m m a n d s m a yb e a d d e dt o B A S I Cb y c h a n g i n gt h e

e r r o rm e s s a g ev e c t o r( $ 0 3 0 0 )t o p o i n tt o y o u rr o u t i n e .T h i sr o u t i n

w o u l dt h e nu s et h eC H R G E Tr o u t i n et o r e - g e tt h eo f f e n d i n g s t a

a n dc o m p a r ei t t o y o u rl i s to f v a l i dc o m m a n d s .I f n o m a t c hw e r ef o u n d

t h e nt h ea c c u m u l a t o rv a l u ew o u l db e r e s t o r e da n dc o n t r o lp a s s e do n

t o B A S I Cb y J M P i n gt o t h en o r m a le r r o rr o u t i n e ( $ E 3 8 B ) .A n o t h e

t e c h n i q u ef o rc h a n g i n gK E R N A Lv e c t o r s , p a r t i c u l a r l yt h o s e u s

d i r e c tJ M Pc o m m a n d s ,i s t o c o p yt h eK E R N A Lt o t h eu n d e r l y i n gR A M

a n ds w i t c h i n go f ft h eK E R N A LR O M .I t i s n o wp o s s i b l et o c h a n g

a n y t h i n gy o uw i s hi n t h eK E R N A Li n c l u d i n ga n ya n da l l j u m pt a b l e

v e c t o r s .

U s i n gT h eK E R N A L

M o s to ft h eK E R N A Lr o u t i n e s r e q u i r es o m ef o r mo fs e t u pb e f o r eb e i n g

c a l l e d .S o m e ,h o w e v e r , d on o t .G e n e r a l l y , t h e r o u t i n e st h a tr e s e to rc l e a rs o m e t h i n g d on o t r e q u i r ea n yp r e p a r a t i o n .F o re x a m p l e ,t h e

R E S T O Rr o u t i n ed o e sn o tr e q u i r ea n yp r i o rK E R N A Lc a l l so r r e g i s t e

s e t u p .W h e nc a l l e d ,i t w i l lr e w r i t et h ej u m pt a b l ev e c t o r ss t a r t i n ga t

$ 0 3 0 0t o t h e d e f a u l t v a l u e s .A ni d i o s y n c r a s yo f t h em a n n e ri n w h i c h

J u l y 1 9 6 6 :V o l u m e7 I s s u eO l

Page 53: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 53/88

i sr o u t i n ei s w r i t t e nc a u s e si t t o a l s o w r i t e t h ej u m pt a b l ev e c t o r st o

A Ml o c a t i o n s$ F D 3 0 - $ F D 4 F .T h i sh a p p e n sb e c a u s et h e r o u t i n e

E C T O Ru s e sp a r to f t h es a m ec o d ea n di s w r i t t e nt o a l l o wm o v i n go f

e v e c t o r s .A s a r e s u l t ,i f y o u h a v ea n y t h i n gi m p o r t a n ts t o r e di n

D 3 0 - $ F D 4 Fi t w i l lb e o v e r - w r i t t e nw h e nR E S T O Ri s c a l l e d .R E S T O R

n eo f t h er o u t i n e sc a l l e dw h e nt h ek e y sR U N / S T O P - R E S T O R Ea r e

e s s e d .( Y o uw i l ln o t i c et h e s e b y t e sb e i n go v e r - w r i t t e ni f y o uv i e wa

g h - r e ss c r e e na t $ E 0 0 0 ,t h e nR U N / S T O P - R E S T O R Ea n dv i e wi t

a i n . )

o r ec o m m o n l y ,t h eK E R N A Lr o u t i n e sr e q u i r es o m er e g i s t e rs e t u p

f o r eu s e .P r o b a b l yt h e m o s t - u s e d s u c hr o u t i n ea n dp e r h a p st h e

s tc o m p l e xi s C H R O U T( $ F F D 2 ) . T h i sr o u t i n ei s u s e dt o o u t p u ta

n g l e c h a r a c t e r .T h eb y t e v a l u eo f t h e c h a r a c t e ri s p l a c e di n t h e

c u m u l a t o rw i t ha L D AX X c o m m a n da n dC H R O U Ti s c a l l e du s i n g

R $ F F D 2 .I f p r i n t i n go n t h e s c r e e ni s d e s i r e d ,n o o t h e r s e t u pw i l lb e

q u i r e d .T h eC H R O U Tr o u t i n ew i l le x a m i n es e v e r a lf l a g st o f i n do u t

a tc h a n n e li s t o b e u s e d .I f n o c h a n n e l sa r e o p e no r e n a b l e d ,

H R O U Tw i l lt h e ne x a m i n et h eb y t ev a l u ea n dd e t e r m i n ei f i ti s a

n t r o l c h a r a c t e r .

o t ,t h e c o r r e c ts c r e e nl o c a t i o nw i l lb e c a l c u l a t e d ,t h e c h a r a c t e ra n s l a t e dt o t h e c o r r e c ts c r e e nc o d e ,r e v e r s ep r i n t i n gc h e c k e d ,t h e

l u e p l a c e di n s c r e e nm e m o r y ,t h e c o l o rm e m o r yu p d a t e d , s c r e e n

r o l l i n gc h e c k e d / d o n e ,l i n el i n k t a b l eu p d a t e da n dm o r e .W h e n

n e ,C H R O U Ta n da l l o t h e rK E R N A Lr o u t i n e s r e t u r nw i t ha n R T S

m m a n d .

en i c ep a r ti s t h a tt h ep r o g r a m m e rd o e sn o th a v et o w o r r ya b o u t

yo f t h i s .T h eK E R N A Ld o e si t f o ry o u .A n o t h e rw e l lu s e dr o u t i n ei s

T I N .T h i sf u n c t i o n si n a l m o s tt h es a m e m a n n e ra s t h eB A S I CG E T

a t e m e n t .W h e nG E T I Ni s c a l l e d ,w i t hn o c h a n n e l so p e n ,a s i n g l e

a r a c t e rf r o mt h ek e y b o a r db u f f e rw i l lb e r e t u r n e di n t h ea c c u m u l a

.I f t h ek e y b o a r db u f f e ri s e m p t y ,t h ev a l u ez e r ow i l lb e r e t u r n e d .

R O G R A M1

o g r a m1 i s a s i m p l ei n p u t r o u t i n ei n m a c h i n el a n g u a g ew h i c hu s e s

eG E T i Nr o u t i n et o f e t c hc h a r a c t e r sf r o mt h ek e y b o a r db u f f e r .T h e

o g r a me x i t sw h e na r e t u r ni s p r e s s e d .O n l y a l p h a - n u m e r i ci n p u ti s

l o w e dw i t hn o c o n t r o l o rc u r s o rc h a r a c t e r sr e c o g n i z e do r p r i n t e d .

l i k et h e B A S I Ci n p u t r o u t i n et h i sp r o g r a mw i l la c c e p tu p t o 2 5 5

a r a c t e r sa s i n p u t .I t i s n o tp o s s i b l et o m o v eo f ft h el i n ea s o n l yt h e

l e t ek e ym a yb e u s e dt o e d i t .W h e nt h er e t u r nk e yi s p r e s s e d ,t h e

o g r a ma l t e r st h ep o i n t e ro f t h ef i r s tB A S I Cv a r i a b l ed e c l a r e db y t h e

A S I Cp r o g r a mt o p o i n ta t t h ei n p u tb u f f e r .F o rt h i sr e a s o n , t h ef i r s t

r i a b l ed e c l a r e di n t h eB A S I Cp r o g r a ms h o u l d b ea s t r i n gv a r i a b l e .

o nr e t u r nf r o mt h i sp r o g r a mt h i sf i r s tv a r i a b l ew i l lc o n t a i nt h e i n p u t

t a .T h el e n g t ho f i n p u tm a yb e c o n t r o l l e db y t h es e c o n dv a r i a b l e

c l a r e di n t h eB A S I Cp r o g r a m .T h i sm u s tb e a n i n t e g e r v a r i a b l ew i t h

a l u er a n g eo f 0 - 2 5 5 .P r o g r a m1 a s w r i t t e nw i l lu s e$ C 0 0 0t o $ C 0 F F

h ei n p u tb u f f e r .S e et a b l eI I f o re n t r ya d d r e s sa n d e x a m p l e so f u s e .

o g r a m1 g e t sa l l i n p u tf r o mt h ek e y b o a r da n dp u t sa l lo u t p u tt o t h e

r e e n .T h i si s b e c a u s en o i n p u to r o u t p u tc h a n n e l so t h e rt h a nt h e

f a u l to n e s h a v eb e e ns p e c i f i e d .T o g e t i n f o r m a t i o nf r o ms o m e

a n n e lo r d e v i c e o t h e r t h a nt h ek e y b o a r d ,i t i s n e c e s s a r yt o c a l ls o m e

e p a r a t o r yr o u t i n e sf i r s t .S i m i l a r l y ,t o o u t p u tt o a d e v i c e o t h e rt h a n

e s c r e e n ,s o m es e t u pi s r e q u i r e d .

R O G R A M S2 a n d3

o g r a m2 i s a l o wr e s o l u t i o ns c r e e nd u m pr o u t i n e .T h i sp r o g r a m

e n sa f i l et o d i s ka n dw r i t e s t h ec o n t e n t so f t h es c r e e n i n c l u d i n g

s p r i t ep o i n t e r so n t h ed i s k .I t f u n c t i o n sb y f i r s to b t a i n i n gt h e l o c a t i o n

i n m e m o r yo f t h ef i r s tv a r i a b l ed e c l a r e di n a B A S I C p r o g r a m a n du s i n g

t h ec o n t e n t so f t h i ss t r i n ga s t h ef i l en a m e / c o m m a n ds t r i n gt o s e n dt o

t h e d i s kd r i v e .T h eK E R N A Lr o u t i n eS E T N A Mi s t h e nc a l l e dt o s e tu p

s y s t e mp o i n t e r st o t h i s s t r i n g .

T h e l o g i c a lf i l e n u m b e r ,t h e d e v i c en u m b e ra n d t h e s e c o n d a r y

a d d r e s sa r e t h e nl o a d e di n t h e c o r r e c tr e g i s t e r sa n d t h e S E T L F S

r o u t i n ei s c a l l e d .A t t h i sp o i n ta l l t h a tr e m a i n si s a c a l lo f t h eO P E N

r o u t i n ea n dw e h a v ea o p e nf i l e .T h i ss e q u e n c ep r o d u c e se x a c t l y t h e

s a m er e s u l ta s t h eB A S I Cs t a t e m e n tO P E N1 , 8 , 2 ," 0 : t e s t , s , w "a s s u m

i n gt h e s t r i n gv a r i a b l ep a s s e df r o mB A S I Ct o p r o g r a m2 c o n t a i n e d

" 0 : t e s t , s , w " .T h ef i l en a m e / c o m m a n ds t r i n gm a yb e l o c a t e da n y

w h e r ei n m e m o r y .A l lt h a ti s n e c e s s a r yi s t o p l a c e t h el o w / h i g hv a l u e s

o f t h es t a r ta d d r e s so f t h ec o m m a n ds e q u e n c ei n t h e. x a n d. y r e g i s t e r s

a l o n g w i t ht h e l e n g t hi n t h e . A r e g i s t e r( A c c u m u l a t o r )a n dc a l lt h e

S E T N A Mr o u t i n e .

N e x ti n p r o g r a m2 t h eC H R O U Tr o u t i n ei s d i r e c t e dt o t h ed e v i c eu s e d

b y f i l e# 1 b y l o a d i n gt h e. x r e g i s t e rw i t ht h ef i l en u m b e ra n dc a l l i n g

t h eC H K O U Tr o u t i n e .T h i sm e a n st h a ta n yc a l l so f C H R O U Tw i l ls e n d

t h eb y t ei n t h ea c c u m u l a t o rt o t h ed i s k .A l lv a l u e s( 0 - 2 5 5 )a r e w r i t t e nw i t hn o f i l t e r i n go f e x c e p t i o n s .A f t e rr e a d i n ga l l b y t e sf r o mt h es c r e e n

a n ds e n d i n gt h e m ,t h ea c c u m u l a t o ri s l o a d e d w i t ht h ef i l en u m b e ra n d

t h eC L O S Er o u t i n ei s c a l l e d .T h i sc l o s e st h ef i l ea n dn o t i f i e st h ed i s k

d r i v et h a ti t i s t h ee n do f t h ef i l e .T h eC L A L Lr o u t i n ei s c a l l e d n e x t ;t h i s

r e s e t sa l l I / Ot o t h ed e f a u l tc h a n n e l sa n dc l e a r st h ef i l et a b l e .

P r o g r a m3 i s t h es c r e e n r e a dr o u t i n ea n di s v e r ys i m i l a rt o p r o g r a m2 .

T h em a i nd i f f e r e n c ei s t h a tt h ef i l eo p e n e di s a r e a df i l e( O : t e s t , s , r )a n d

t h ec h a n n e l so p e n e da r e i n p u tc h a n n e l s .I t s h o u l d b en o t e dt h a ta

c h a n n e lm a yb e e n a b l e df o ri n p u tu s i n gC H K 1 Nw i t h o u ta f f e c t i n gt h e

o u t p u tc h a n n e lw h e nc a l l i n gC H R O U T .T h e s a m ei s t r u ef o ro u t p u t .I t

i s t h e r e f o r e p o s s i b l et o i n p u tf r o md i s ku s i n gG E T I Na n dp r i n tt o t h e

s c r e e n u s i n gC H R O U T .C o n v e r s e l y ,i n p u tf r o mt h e k e y b o a r du s i n g

G E T I Na n do u t p u tt o d i s k o rp r i n t e ru s i n gC H R O U Ti s p o s s i b l e .A n

i m p o r t a n td i f f e r e n c ei n p r o g r a m3 i s t h eu s eo f a t e m p o r a r ys t o r a g e

l o c a t i o nf o rt h ei n d e xv a r i a b l eu s e di n t h e, y r e g i s t e r .T h i si s n e c e s s a r y

b e c a u s ea l l r e g i s t e r sa r ec l o b b e r e db y t h eG E T I N( S F F E 4 )r o u t i n e( s e e

T A B L EI ) .

T h ef i l eo p e n e di n p r o g r a m s2 a n d3 i s e x a c t l yt h e s a m ea s a f i l e

o p e n e db y a B A S I Cp r o g r a m .B e c a u s eo f t h i s ,i f a m a c h i n el a n g u a g e

p r o g r a mi s t o b e u s e da s a s u b r o u t i n eo f a B A S I Cp r o g r a m ,i t i s

p e r f e c t l yo k a yt o o p e n a n dc l o s et h ef i l ew i t h i n t h eB A S I Cp o r t i o no f

t h ep r o g r a m .I t i s r e c o m m e n d e dt h a tw h e nf e t c h i n gd a t af r o mt h e d i s k

t h eG E T I Nr o u t i n eb e u s e di n s t e a do f t h eC H R I Nr o u t i n e .T h er e a s o n s

a r e t h es a m ea s f o r u s i n gG E Ti n B A S I Ci n s t e a do f I N P U Ti n t h a t

G E T I Nw i l la c c e p ta n y a n da l l c h a r a c t e r s .T h en i c e t h i n ga b o u t

m a c h i n el a n g u a g ei s t h a tG E T I Nw i l lw o r kj u s ta s f a s ta s t h eC H R I N

r o u t i n ew h e na l lt h eo v e r h e a do f B A S I Ci s a b s e n t .P r o g r a m3 d o e sn o t

t e s tf o ra v a l i dc h a r a c t e ra f t e rc a l l i n gG E T I Ns i n c et h ef i l el e n g t hi s

a l w a y sc o n s t a n t .

P R O G R A M4

P r o g r a m4 i s t h e m o s t c o m p l e x .T h i sp r o g r a mp r o v i d e si n s t a n t

c h e c k i n go f t h e d i s ke r r o rc h a n n e lw h e nt h eC o m m o d o r ea n dc o n t r o l

k e y sa r ep r e s s e dt o g e t h e r .T h ed i s ks t a t u si s p r i n t e do n t h e t o pl i n e o f

t h es c r e e na n dt h ec u r s o rp o s i t i o ni s m a i n t a i n e d .I f i t i s d e s i r e dt o c a l lt h i sp r o g r a mf r o mw i t h i na n o t h e r p r o g r a m ,t h el a s ti n s t r u c t i o nc a n b e

c h a n g e dt o a R T S ,t h ee r r o rc h e c kB C SE X I T c h a n g e dt o N O P ' s ,a n d

t h ep r o g r a mc a l l e da t B E G I N .

Page 54: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 54/88

P r o g r a m4 u s e st h e s e r i a lb u s c o m m u n i c a t i o nr o u t i n e si n t h e

K E R N A Lw i t h o u to p e n i n ga f i l e .T h es e r i a ld e v i c ei s c o m m a n d e d

" s p e a k "w i t ht h eT A L K( $ F F B 4 )r o u t i n ea n dt h e s e c o n d a r ya d d r e s s

s e n tu s i n gt h eT K S A( $ F F 9 6 )r o u t i n e .T h eC o m m o d o r eP r o g r a m m e r s

R e f e r e n c eG u i d ei n c o r r e c t l ys t a t e s t h a tt o s e n dt h es e c o n d a r ya d d r e s s

o n el o a d s t h ea c c u m u l a t o rw i t ht h es e c o n d a r ya d d r e s s v a l u ea n dc a l l s

t h er o u t i n e .T h eG U I D Ed o e sn o tm e n t i o nt h a tt h es e c o n d a r ya d d r e s s

v a l u em u s tf i r s tb e O R ' e dw i t ht h eh e xv a l u e$ 6 0 .T o a c c e s s t h e d i s k

c o m m a n dc h a n n e l ,s e c o n d a r ya d d r e s s$ 6 F m u s tb e s e n t( $ 0 FO R$ 6 0

= $ 6 F ) .T h i sa p p l i e so n l yt o t h e d i r e c ts e r i a ls e c o n d a r ya d d r e s s

r o u t i n e sT K S Aa n dS E C O N D .T h e S E T L F Sr o u t i n e r e q u i r e so n l yt h e

u n m o d i f i e dc o r r e c ts e c o n d a r ya d d r e s sv a l u e .

W h e np r o g r a m4 i s r u n ,t h ei n t e r r u p tv e c t o ra t $ 0 3 1 4 — $ 0 3 1 5i s s e t t o

p o i n ta t t h e m a i n b o d yo f p r o g r a m4 . S i x t yt i m e s p e rs e c o n dt h e

s y s t e mi n t e r r u p tc a u s e st h e c o d ea t S T A R Tt o e x e c u t e .I f a m a t c h

b e t w e e nl o c a t i o n$ 0 2 8 Da n d $ F Ei s f o u n d ,t h er e s to f t h ep r o g r a mw i l l

e x e c u t e .I f n o m a t c hi s f o u n dt h en o r m a li n t e r r u p tr o u t i n ei s J M P ' e d

t o . W h e nt h ep r o g r a me x e c u t e sa n e wv a l u ei s p l a c e di n t h ec o u n t

d o w nt i m e r$ F Ea n dt h eT A L K( $ F F B 4 )r o u t i n ei s c a l l e dw i t ha d e v i c e

n u m b e ro f e i g h t .F o l l o w i n g , t h eT K S A( $ F F 9 6 )r o u t i n ei s c a l l e dw i t h

s e c o n d a r ya d d r e s s$ 6 F .T h i so p e n st h ec o m m a n dc h a n n e li n t h e d i s k

d r i v ef o rt a l k i n g( t ot h ec o m p u t e r ) .

N e x tt h eP L O T( $ F F F 0 )r o u t i n ei s c a l l e dw i t ht h e c a r r yb i t s e t .T h i s

r e t u r n s t h er o wa n dc o l u m np o s i t i o no f t h e c u r s o ri n t h e . x a n d. y

r e g i s t e r s .T h e s ea r es t o r e d .T h ec u r s o ri s n o ws e tt o t h eh o m ep o s i t i o n

b y a c a l lt o C H R O U T w i t ha v a l u eo f $ 1 3i n t h ea c c u m u l a t o r .N e x tt h e

s t a t u sb y t e( s a m ea s S T i n B A S I C )i s s e tt o z e r o .

T h eA C P T R( $ F F A 5 )r o u t i n ei s t h e nc a l l e da n dt h e r e t u r n e d v a l u e

p r i n t e do n t h es c r e e nb y C H R O U T .A c a l lt o R E A D S T( $ F F B 7 )f o l l o w s

t o d e t e r m i n ei f a n E O !w a ss e n t .I f n o t ,t h ep r o g r a ml o o p st o N E X Ta n d

r e p e a t su n t i lR E A D S Tr e t u r n s an o n - z e r ov a l u e .T h i si n d i c a t e st h e

d i s kh a ss a i da l l i t i s g o i n gt o a n di s n ' ts p e a k i n gt o u s a n y m o r e .

W et h e nt r yt o r e s e tt h e c u r s o rb a c kw h e r ei t c a m ef r o ma n dr u ni n t oa

p r o b l e mi n t h e P L O Tr o u t i n e .U n f o r t u n a t e l y , t h ev a l u e s r e t u r n e d

w h e n P L O Ti s c a l l e dt o o b t a i n c u r s o rp o s i t i o na r e n o ta l w a y st h es a m e

a s t h ev a l u e sw e m u s tu s et o r e s t o r ec u r s o rp o s i t i o n .T h ep r o b l e m

c o m e su p w h e nt h e c u r s o ri s p o s i t i o n e do n a w r a pl i n e ,i e . o n et h a ti s

l o n g e rt h a n4 0 c h a r a c t e r s .T h er e s t o r ep o s i t i o np a r to f t h e P L O T

r o u t i n ei n c o r r e c t l yh a n d l e st h e r o wc a l c u l a t i o n s .W e m u s tt e s tt h e

c o l u m np o s i t i o nr e t u r n e db y P L O Ta n d i f i t i s g r e a t e rt h a n $ 2 7

( d e c i m a l3 9 )w e m u s ts u b t r a c t$ 2 8b e f o r ec a l l i n gP L O T .

F i n a l l yw e c a l lt h eU N T L K( $ F F A B )r o u t i n et o u n t a l kt h es e r i a lb u s

d e v i c e sa n dt h e nJ M Pt o t h en o r m a li n t e r r u p th a n d l e r .

P R O G R A M5

P r o g r a m5 i s a B A S I Cp r o g r a mt h a tg e n e r a t e sa m a c h i n el a n g u a g e

p r o g r a mf i l eo n d i s k .T h i sf i l ew i l lc o n t a i na l lf o u re x a m p l ep r o g r a m s

w i t h t h ec a l la d d r e s s e sa s l i s t e di n T A B L EI I .J u s tt y p ei t i n a n dp l a c e a

r e a d yt o u s ed i s ki n t h e d r i v e .T h e nR U Nt h e p r o g r a m .T h eM L

p r o g r a mc a n b e l o a d e dw i t hL O A D" K E R N A LW H OC 1 0 0 ", 8 , 1 .

P r o b l e m sa n dt i p s

A f e w p r o b l e m sh a v e b e e nn o t e dw h e nu s i n gt h eK E R N A Lr o u t i n e st o

t a l k t ot h ed i s k d r i v e .I f a U N T L Ki s f o l l o w e di m m e d i a t e l yb ya T A L Kc o m m a n dt h ec o m p u t e rm a y" c r a s h " .T h i sa p p e a r st o b e c a u s e d b y

t h e d r i v e n o tb e i n ga b l et o r e s p o n dt o a n o t h e rc o m m a n du n t i li t h a s

f i n i s h e ds o m ei n t e r n a lw o r kt h u sc a u s i n gi t t o m i s st h ea t t e n t i o n

s e q u e n c ef r o mt h ec o m p u t e r .T h i st a k e s af e wm i l l i s e c o n d sa n di t i s

b e s tt o w a i ta t l e a s t1 0 0m i l l i s e c o n d s b e f o r es e n d i n ga n e wc o m m a n

T h i si s o n er e a s o nf o rt h ec o u n t d o w nt i m e rl o g i ci n p r o g r a m4 . T h a t

l o g i ci s a l s oi m p l e m e n t e ds i n c ep r o g r a m4 i s e x e c u t e do n t h ei n t e r r u

a n dt h e s ei n t e r r u p t so c c u r e v e r y1 6 . 7m i l l i s e c o n d s .I t i s n e c e s s a r yt o

p r e v e n tt h e r o u t i n ef r o mb e i n gc a l l e db y a s e c o n di n t e r r u p tt h a t

o c c u r s w h i l et h e r o u t i n ei s s t i l le x e c u t i n g .I n m o s ti n t e r r u p td r i v e

r o u t i n e st h i s i s n o t a p r o b l e mb u t t h es e r i a lb u s c o m m u n i c a

r o u t i n e sh a v ea n a s t yh a b i to f c l e a r i n g t h ei n t e r r u p tf l a gt h u sa l l o w i

f u r t h e ri n t e r r u p t s .

S o m e t h i n gt h a ti s n o ts p e c i f i c a l l ym e n t i o n e di n t h eG U I D Ei s t h ef a c t

t h a tt h eK E R N A Lr o u t i n e sn e v e rc a l la n yr o u t i n e si n t h eB A S I CR O M

r e s i d i n ga t $ A 0 0 0 - $ B F F F .T h i sm e a n st h a tt h e B A S I Cr o mm a yb e

t u r n e do f fa n dt h eK E R N A Lu s e da s m u c ha s y o ul i k e .T h i s a l l o w sy o u

t o u s et h e8 k o f R A Mt h e r ef o ry o u ro w np r o g r a m s .K e e pi n m i n dt h a t

t h eB A S I CR O Mm a k e sf r e q u e n tu s eo f t h eK E R N A Ls o t h ec o n v e r s i s

n o tt r u e .

A n o t h e rs y s t e mc h a r a c t e r i s t i ct h a ti s n o tm e n t i o n e da n y w h e r ei s t h a t

s p r i t e sM U S Tb e t u r n e do f f w h e nt h e s e r i a lb u s i s u s e d .I t i s n o t

s u f f i c i e n tt o h i d et h e mo n t h ee d g eo f t h es c r e e n ,t h e ym u s tb e O F F !

T h eV I Cc h i ps t e a l st i m ef r o mt h e6 5 1 0c p uw h e ns p r i t e sa r et u r n e do n

a n dt h i sw i l lc l o b b e rt h es e r i a lb u st i m i n gr o u t i n e s , p a r t i c u lt h e

E O 1( e n do f i n f o r m a t i o n )d e t e c t i o n .Y o u rc o m p u t e rw i l lo c c a s i o n a

m i s st h eE O Is i g n a la n dt h e nw a i tu n t i lt h es u nb u r n so u tt o g e ti t .

U s i n gs p r i t e sd o e sn o ts e e mt o a f f e c tt h eR S - 2 3 2r o u t i n e s s i n c

t i m i n gw i n d o w sa r em u c hw i d e r .

W h e nu s i n gt h es y s t e mR S - 2 3 2r o u t i n e si t i s o n l y n e c e s s a r yt o O P E

a f i l et o d e v i c en u m b e rt w oa n do u t p u t w i t hC H R O U To r i n p u t w

G E T I Na f t e rs e t t i n gt h ec o r r e c tI / Oc h a n n e l s .D on o tu s eC H R I Nw i t h

R S - 2 3 2s i n c eC H R I Ni s d e p e n d e n to n r e c e i v i n ga c a r r i a g e r e t ut o

t e r m i n a t et h e r o u t i n e . A l s o ,t h e R S - 2 3 2i n t e r r u p ts y s t e mu s e st h e

n o n - m a s k a b l ei n t e r r u p t( N M I )a s d o e st h es e r i a lb u s .T h e r e f o r e ,y o uc a n n o ts e n do r r e c e i v eR S - 2 3 2d a t aa n ds e r i a lb u sd a t aa t t h es a m e

t i m e .

A n o t h e ri t e mo f i n t e r e s ti s t h ew a yt h eC L O S Er o u t i n eh a n d l e st h eR S -

2 3 2c h a n n e l .I f C L O S Ei s c a l l e dt h e nt h eR S - 2 3 2f i l e i sk i l l e da l o n

w i t ht h eb u f f e r s .T h eu s e rp o r tw i l lb e s e t t od e f a u l tI / Ov a l u e s .I f t h e

R S - 2 3 2f i l ei s t o b e c l o s e dw i t h o u ta f f e c t i n gt h e s et h i n g sc a l lt h e

C L A L Lr o u t i n ei n s t e a d .T h i sw i l lw i p eo u t t h ef i l et a b l ea n ds e td e f a u l

I / Ob u tt h eu s e rp o r ti s u n a f f e c t e da n dt h eb u f f e r sr e m a i na l l o c a t e

O n ep r o b l e mw i t hR S - 2 3 2i s t h a tw h e na R S - 2 3 2f i l ei s O P E N e d ,t h e

u s e rp o r ti s s e tt o a s t a n d a r dd e f a u l tc o n d i t i o n .T h i sm e a n st h a ti f y o u

w e r eu s i n gs o m eo f t h e p i n sf o rc e r t a i nn o n - i m p l e m e n t e df u n c t i o n

s u c ha s t e l e p h o n el i n e c o n t r o l ,y o u ro u t p u tc o n d i t i o n sa n dp o r tv a l u e

m a yb e d i s r u p t e d .T h eo n l yw a yt o d e a lw i t ht h i si s t o o p e nt h eR S -

2 3 2f i l e" m a n u a l l y " .T od ot h i sy o uw i l lh a v et o s e t u pa l lt h et a b l ea n d

f i l ef l a g s ,a l l o c a t eb u f f e r s , s e ti n t e r r u p tt i m e r se t c .y o u r s e l f .A f u l l

d e s c r i p t i o no f t h i sp r o c e s si s b e y o n dt h es c o p eo f t h i s a r t i c l eb u tm a y

b e t h es u b j e c to f a f u t u r ea r t i c l e .

F u l l d e t a i l s o ft h ee n t r y ,e x i ta n de r r o rc o n d i t i o n st o b e c o n s i d e r ea r e

i n t h eC o m m o d o r e6 4P r o g r a m m e r sR e f e r e n c eG u i d e .I h a v el i s t e dt h e

K E R N A Lr o u t i n e si n T A B L EI i n o r d e rb y a d d r e s sb e c a u s et h et a b l ei n

t h eG U I D Ei s i n a l p h a b e t i c a lo r d e rb yl a b e la n dt h a ti s v e r yi n c o n v

i e n tw h e ny o ua r e l o o k i n gt h r o u g ha d i s a s s e m b l ya n dt r y i n gt o f i n

o u tw h a tr o u t i n ei s u s e d .

U s i n gt h eK E R N A Li s n o td i f f i c u l t .M a n yo f t h eo p e r a t i o n sa r e n o

m u c hd i f f e r e n tf r o mt h ew a yB A S I Cw o r k s .I ts a v e s t i m ea n dw i l lm a k el i f ea l o te a s i e rf o rt h ep r o g r a m m e r .

T h eT r o n s o c t o rS O

Page 55: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 55/88

T A B L EI

C o m m o d o r e6 4 K E R N A LJ u m pT a b l eI n A d d r e s sO r d e r

a b e l

0 I N 1 T

A M T A S

E S T O R

E C T O R

E T M S G

E C O N D

K S A

E M T O P

E M B O T

C N K E Y

E T T M O

C P T R

I O U T

N T L K

N L S N

I S T E N

A L KE A D S T

E T L F S

E T N A M

P E N

L O S E

H K I N

H K O U T

L R C H N

H R I N

H R O U T

O A D

A V E

E T T I M

D T I M

T O P

E T I N

L A L L

D T I M

C a l l

a d d r

$ F F 8 4

$ F F 8 7

$ F F 8 A

$ F F 8 D

$ F F 9 0

$ F F 9 3 *

$ F F 9 6 *

$ F F 9 9

$ F F 9 C

$ F F 9 F

$ F F A 2

$ F F A 5 *

$ F F A 8 *

$ F F A B *

$ F F A E *

$ F F B 1 *

$ F F B 4 *

$ F F B 7

$ F F B A

$ F F B D

$ F F C 0

$ F F C 3

$ F F C 6

$ F F C 9

$ F F C C

$ F F C F

$ F F D 2

V e c t o r

a d d r

_

_

-

-

-

-

-

_

-

-

-

-

-

-

-

-

-

( $ 0 3 1 A )

( $ 0 3 1 C )

( $ 0 3I E )

( $ 0 3 2 0 )

( $ 0 3 2 2 )\ * ' — ' K J — M j

( $ 0 3 2 4 )

( $ 0 3 2 6 )

$ F F D 5 * * { $ 0 3 3 0 )

$ F F D 8 * H $ 0 3 3 2 )

$ F F D B

$ F F D E

$ F F E 1

$ F F E 4

$ F F E 7

$ F F E A

-

-

( $ 0 3 2 8 )

( $ 0 3 2 A )

( $ 0 3 2 C )

-

T a r g e t

a d d r

$ F D A 3

$ F D 5 0

$ F D 1 5

$ F D 1 A$ F E 1 8

$ E D B 9

$ E D C 7

$ F E 2 5

$ F E 3 4

$ E A 8 7

$ F E 2 1

$ E E 1 3

$ E D D D

$ E D E F

$ E D F E

$ E D 0 C

$ E D 0 9

$ F E 0 7

$ F E 0 0

$ F D F 9

$ F 3 4 A

$ F 2 9 1

$ F 2 0 E

$ F 2 5 0

$ F 3 3 3

$ F 1 5 7

$ F 1 C A

$ F 4 9 E

$ F 5 D D

$ F 6 E 4

$ F 6 D D

$ F 6 E D

$ F 1 3 E

$ F 3 2 F

$ F 6 9 B

F u n c t i o n

D e s c r i p t i o n

i n i t i a l i z ei / o

r a mt p s fi f i i i i i v , 1 1

m o v ev e c t o r sc o n t r o lk e r n a lm s g

s e n dl i s t e n e rs e c o n d

s e n dt a l k e rs e c o n d

s e t t o pr a mp o i n t e r

s e ts t a r tr a mp o i n t

s c a n k e y b o a r d

s e tI E E Et i m e o u t

i n p u ts e r i a lb y t e

o u t p u ts e r i a lb y t e

u n t a l ks e r i a lb u s

u n l i s t e ns e r i a lb u s

l i s t e n s e r i a ld e v i c e

s e r i a ld e v i c et a l k

r e a di / os t a t u sb y t e

s e t - u pl o g i c a lf i l e

s e tf i l en a m e

o p e na l o g i c a lf i l e

c l o s e a s i n g l ef i l e

e n a b l ei n p u tc h a n n e l

e n a b l eo u t p u tc h a n

^ p tr h / U T it o r l p f a i t l tO C lL l l u lf o \ . \ J U d d U l L

i n p u t c h a r a c t e r s

o u t p u ta c h a r a c t e r

l o a dt o m e m o r y

s a v ef r o mm e m o r y

s e tj i f f yc l o c k

r e a dj i f f yc l o c k

t e s ts t o pk e y

g e tc h a r f r o mc h a n

c l e a r / c l o s ef i l e s

u p d a t ej i f f yc l o c k

R e s

e n t r y

_ _ _

- x y

a —a —a —- x y

- x y

a —

a —_ _ _

_ _ _

a —a —_ _ _

a x y

a x y

a —- x -

- X -

_ _ _

a —a x y

a x y

a x y

— _

l i s t e rU s a g e

r e t u r n

- X

a -

a -

- X

_ x

a -

a -

a -

a -

a -

a -

a -

a -

a -

a -

a -

a -

a -

a x

a -

a x

a -

a -

y

_

_

y

y

_

_

_

_

_

_

_

_

_

_

y

_

y

_

_

-

u s e d

a x y

a x y

a x y

a x y

a —a —a —- x y

- x y

a x y

a —a x -

_ _ _

a —a —a —a —a —a x y

a x y

a x y

a x y

a x -

a x -

a A —

a x -

a —a x y

a x y

a x y

a x y

a x -

a x y

a x -

a x -

N o t e s :

R e g i s t e r s i n d i c a t e d a sb e i n gu s e di n

t h e " u s e d "c o l u m nm a yc o n t a i nt h e

s a m ev a l u e l o a d e dt o c a l lt h er o u t i n e .

I f n o u s a g ei s i n d i c a t e d ,t h e nt h er e g i s

t e ri s s a f et o u s ef o ro t h e r p u r p o s e s ,e g .

i n d e x i n g , c o u n t i n g ,s t o r i n g ,e t c .W h e n

G E T I Ni s c a l l e df o rR S - 2 3 2i n p u t ,t h e

. x a n d, y r e g i s t e r sa r e n o ta f f e c t e d .T h e

p r o c e s s o rs t a t u sr e g i s t e ra n dt h ea c c u

m u l a t o rc a r r yb i t a r e a f f e c t e db y

n e a r l ya l l K E R N A Lr o u t i n e s .

W h e ns i x t e e n - b i tv a l u e sa r ep a s s e di n

o r o u t o f a r o u t i n e ,t h e . x r e g i s t e r

c o n t a i n st h el o wb y t ea n dt h e, y r e g i s

t e rc o n t a i n st h eh i g h - o r d e rb y t e .

D e t a i l e di n f o r m a t i o no n u s i n gs p e c i f i c

r o u t i n e sm a yb e f o u n di n t h eC o m m od o r e 6 4P r o g r a m m e r ' sR e f e r e n c e

G u i d e .

* S e r i a lI / O r o u t i n eo n l y ,n o tc o m

p a t i b l ew i t h s o m e I E E E - 4 8 8

a d a p t e r s

* * T h e s er o u t i n e su s e a n i n d i r e c t

j u m pl i n kA F T E Rb e i n ge n t e r e d

o g r a m1

y b o a r di n p u t r o u t i n e u s i n gG E T I Na n dC H R O U Tw i t h2 5 5c h a r a c

b u f f e ra n da u t o m a t i cB A S I Cv a r i a b l ea c c e s s .S t o r e sc h a r a c t e r sa t

0 0 0 - $ C F F F .T h ef i r s tv a r i a b l ei n t h e B A S I Cp r o g r a ms h o u l d b ea

i n g( e g .a $ =" " ) . W h e nt h e p r o g r a mi s c a l l e dt h i sv a r i a b l ew i l l

n t a i nt h e i n p u t .T h el e n g t ho f i n p u ti s c o n t r o l l e db y t h e s e c o n d

r i a b l ed e c l a r e db y t h eB A S I Cp r o g r a m . T h i sv a r i a b l em u s tb e a n

e g e r( e g .a %= 1 0 )a n dh a v ea v a l u eo f 0 - 2 5 5 .

L D A# $ 0 0 ; a z e r oi n . a

S T A $ F E ; i n d e xs t o r a g e

S T A $ C C ; f l a gt o f l a s hc u r s o r v a r i a b l eo f f s e t

L D Y# $ 0 A v a r i a b l eo f f s e t

L D A( $ 2 D ) , Y; g e tl o wb y t eo f s e c o n dv a r

S T A $ F D ; s a v ei t

O O P J S R $ F F E 4; " G E T I N" , g o g e ta c h a r a c t e r

C M P# $ 0 0 ; i s i t a z e r o ?

B E Q L O O P; i fz e r o t h e nl o o p

C M P# $ 0 D ; i s i t a r e t u r nk e y ?

B E QE N D ; e x i ti f r e t u r np r e s s e d

C M P# $ 1 4 ; i si t a d e l e t ek e y ?

B N EN O D E L; n o td e l e t et h e ns k i p

L D Y

B E Q

D E C

J M P

N O D E LT A X

A N DC M P

B C C

T X A

L D Y

C P Y

B C S

I N C

B N E

D E C

J M P

P U T S T A

O U T P U TJ S R

L D A

S T A

J M P

E N D L D Y

L D A

$ F E ; b u f f e rp o i n t e r

L O O P ; l o o pi f b u f f e re m p t y

$ F E ; d e l e t eb y d e c r e m e n t i n gp o i n t e r

O U T P U T; j m po u t p u t

; s a v e. a i n t h e. x r e g i s t e r

# $ 7 F ; r e m o v eh i g hb i tf r o m c h a r

# $ 2 0 ; i s i t a c o n t r o lc h a r a c t e r ?

L O O P ; i fl e s st h a n# $ 2 0y e s s ol o o p

; r e s t o r ec h a r a c t e rt o . a r e g

$ F E ; r e t r i e v eb u f f e ri n d e x

$ F D ; c h e c k i fl i m i tr e a c h e d

L O O P ; c a r r ys e t ,l i m i tr e a c h e d

$ F E ; i n c r e m e n tb u f f e rp o i n t e r

P U T ; i fb u f f e r n o tf u l ls k i pt o " P U T "

$ F E ; o o p s ,b u f f e rf u l ls o b a c kd o w no n e

L O O P ; l o o p

$ C 0 0 0 , Y; p l a c eb y t ei n $ c 0 0 0b u f f e r

$ F F D 2 ; " C H R O U T "- p r i n tt h e c h a r a c t e r

# $ 0 0 ; z e r o

$ D 4 ; d i s a b l eq u o t em o d e

L O O P ; p l a yi t a g a i ns a m

# $ 0 2 ; o f f s e t t os t r i n gv a r i a b l e l e n g t h

$ F E ; b u f f e rp o i n t e r

Page 56: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 56/88

S T A

I N Y

L D A

S T A

I N Y

L D A

S T A

I N C

L D AJ S R

R T S

P R O G R A M2

( $ 2 D ) , Y

# $ 0 0

( $ 2 D ) , Y

# $ C 0

( $ 2 D ) , Y

$ C C

# $ 2 0$ F F D 2

; p u ti n f i r s tv a r i a b l el e n g t hb y t e

; i n ci n d e xy o f f s e t t op o i n t e rl o wb y t e

; l o wo r d e r b y t eb u f f e rl o c a t i o n

; s t o r ei t i n s t r i n gv a r i a b l e p o i n t e r

- . i n c r e m e n ti n d e x

; h i g ho r d e r b y t e

; s t o r ei t i n s t r i n gv a r i a b l e p o i n t e r

; t u r no f fc u r s o r

; a s p a c et o c l e a rt h e c u r s o rb l o c k

; p r i n ti t ,

; a n dr e t u r n

D u m ps c r e e n c o n t e n t st o d i s ku s i n gn a m ef o u n di n f i r s tv a r i a b l e

d e c l a r e di n B A S I Cp r o g r a mc a l l i n gt h i sr o u t i n e .T h ef i r s tv a r i a b l e

s h o u l db e a s t r i n gv a r i a b l e o r t h en a m e m a yb e r a t h e rs t r a n g e .

; o f f s e tt o s t r i n gl e n g t h

; g e ts t r i n gl e n g t h

; z e r o l e n g t h , q u i tw h i l ea h e a d; s a v e l e n g t ho n s t a c k

; i n c r e m e n ti n d e x

; g e tl o wa d d r e s so f s t r i n g

; p u ti n . x

; i n c r e m e n ti n d e x

; g e th i g h o r d e rp o i n t e r

; p u t i n. y

; p u l ll e n g t hf r o ms t a c k

; S E T N A M :s e tf i l en a m e

; l o g i c a lf i l e * l

; d e v i c e# 8

- . s e c o n d a r ya d d r e s s

; S E T L F S :s e tl o g i c a lf i l e

; O P E N

; i f c a r r ys e tt h e ne r r o ro u t

; f i l en u m b e r

; C H K O U T :s e to u t p u tc h a n n e lt o f i l e1

; z e r oi n d e x

; s e tp o i n t e rl o wb y t e

; s t a r to f s c r e e n h i g h b y t e

; s e tp o i n t e rh i g hb y t e

; g e ts c r e e nc h a r a c t e r

; C H R O U T :o u t p u ta b y t et o d i s k

i n c r e m e n ti n d e x

; n o t 2 5 6 y e t ?

; i n c r e m e n t h i g hb y t eo f p o i n t e r

; g e tp o i n t e rh i g hb y t e

; d o n ef o u rp a g e sy e t ?

; i fc a r r yc l e a rt h e nn o

; f i l en u m b e r1

; C L O S E :c l o s et h ef i l e

; C L A L L :r e s t o r e d e f a u l t i / oc h a n n e l s

; r e t u r nt o B A S I C

S T A R T

S T A R T

L O O P

E X I T

L D Y

L D A

B E QP H A

I N Y

L D A

T A X

I N Y

L D A

T A Y

P L A

J S R

L D A

L D X

L D Y

J S R

J S R

B C S

L D X

J S R

L D Y

S T Y

L D A

S T A

L D A

J S R

I N Y

B N E

I N C

L D A

C M P

B C C

L D A

J S R

J S R

R T S

P R O G R A M3

# $ 0 2

( $ 2 D ) , Y

E X I T

( $ 2 D ) , Y

( $ 2 D ) , Y

$ F F B D

# $ 0 1

# $ 0 8

# $ 0 2

S F F B A

$ F F C 0

E X I T

# $ 0 1

$ F F C 9

# $ 0 0

$ F D

# $ 0 4

$ F E

( $ F D ) , Y

$ F F D 2

L O O P

$ F E

$ F E

# $ 0 8

L O O P

# $ 0 1

$ F F C 3

$ F F E 7

L o a ds c r e e nc o n t e n t sf r c

L O O P

E X I T

L D Y

L D A

B E Q

P H A

I N Y

L D A

T A X

I N Y

L D A

T A Y

P L A

J S R

L D A

L D X

L D Y

J S R

J S R

B C S

L D X

J S R

L D Y

S T Y

S T Y

L D A

S T A

J S R

L D Y

S T A

I N C

B N E

I N C

L D A

C M P

B C C

L D AJ S R

J S R

R T S

# $ 0 2 ; o f f s e tt o s t r i n gl e n g t h

( $ 2 D ) , Y; g e ts t r i n gl e n g t h

E X I T ; z e r o l e n g t h , q u i tw h i l ea h e a d

; s a v el e n g t ho n s t a c k

; i n c r e m e n ti n d e x

( $ 2 D ) , Y; g e tl o wa d d r e s so f s t r i n g

; p u t i n. x

; i n c r e m e n ti n d e x

( $ 2 D ) , Y; g e th i g ho r d e rp o i n t e r

; p u ti n . y

; p u l ll e n g t hf r o ms t a c k

$ F F B D ; S E T N A M :s e tc o m m a n ds t r i n g

# $ 0 1 ; l o g i c a l f i l e * l

* $ 0 8 ; d e v i c e# 8

* $ 0 2 s e c o n d a r ya d d r e s s

S F F B A ; S E T L F S :s e t l o g i c a lf i l e

S F F C O ; O P E N

E X I T ; i f c a r r ys e t t h e ne r r o r o u t

# $ 0 1 ; f i l en u m b e r

$ F F C 6 ; C H K I N :s e ti n p u tc h a n n e lt o f i l e1

# $ 0 0 ; z e r oi n d e x

$ F C ; z e r oi n d e xt e m p

$ F D ; s e tp o i n t e rl o wb y t e

# $ 0 4 ; s t a r to f s c r e e n h i g hb y t e

$ F E ; s e tp o i n t e rh i g hb y t e

$ F F E 4 ; G E T I N :g e ta b y t ef r o md i s k

$ F C ; g e ti n d e xt e m p

( $ F D ) , Y; s t o r eb y t eo n s c r e e n

$ F C ; i n c r e m e n ti n d e x

L O O P ; n o t2 5 6y e t ?

$ F E ; i n c r e m e n t h i g hb y t eo f p o i n t e r

$ F E ; g e tp o i n t e rh i g h b y t e

# $ 0 8 ; d o n ef o u rp a g e sy e t ?

L O O P ; i fc a r r yc l e a rt h e nn o

# $ 0 1 ; f i l en u m b e r1

$ F F C 3 ; C L O S E :c l o s et h ef i l e

$ F F E 7 ; C L A L L :r e s t o r e d e f a u l t i / o

; r e t u r nt o B A S I C

P R O G R A M4

F e t c h e sd i s ks t a t u sa n dd i s p l a y so n t o pl i n eo f s c r e e nw h e nt h ec o n t r o

a n dC o m m o d o r ek e y sa r ep r e s s e dt o g e t h e r .

d e c l a r e di n B A S I Cp r o g r a mc a l l i n g( h i sr o u t i n e .T h ef i r s tv a r i a b l e

s h o u l d b ea s t r i n g v a r i a b l e .

[ N I T

S T A R T

E X I T

B E G I N

S E I

L D A

S T A

L D A

S T A

C L I

L D A

S T A

R T S

L D A

C M P

B E Q

L D A

C M P

B E Q

D E C

J M P

L D A

S T A

# H , S T A R T

$ 0 3 1 5

# L , S T A R T

$ 0 3 1 4

# $ 0 6

$ F E

$ 0 2 8 D

$ F E

B E G I N

# $ 0 6

$ F E

E X I T

$ F E

$ E A 3 1

# $ 2 D

$ F E

i n t e r r u p t so f f

; h i g ho r d e r b y t eo f s t a r t

; c h a n g eh i g h o r d e rv e c t o r

; l o wb y t eo f s t a r t

; l o w b y t eo f v e c t o r

i n t e r r u p t so n

; m a t c hv a l u e

; s a v ei t

; r e t u r n

; l o a dk e y b o a r ds h i f tp a t t e r n

; 6 = c o n t r o l+ C o m m o d o r ek e y

; i f p r e s s e dt h e nd o i t

c o u n t d o w nl i m i t

; r e a c h e dy e t ?

; i fy e s t h e nc o n t i n u e

; c o u n t d o w no n em o r ej i f f y

; f i n i s hi n t e r r u p t

; 4 5j i f f y s( . 7 5s e c o n d )

x o u n t d o w nl o c a t i o n

T h eT r a n s a c t o r 5 2 J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 57: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 57/88

L D A

J S R

L D A

J S R

B C S

S E C

J S R

S T X

S T Y

L D AJ S R

L D A

S T A

E X T J S R

J S R

J S R

C M P

B E Q

L D X

L D A

C M P

B C C

S B CO P L O TT A Y

C L C

J S R

J S R

J M P

* $ 0 8

$ F F B 4

* $ 6 F

S F F 9 6

E X I T

S F F F O

$ F B

$ F C

* $ 1 3S F F D 2

* $ 0 0

$ 9 0

$ F F A 5

$ F F D 2

S F F B 7

* $ 0 0

N E X T

$ F B

$ F C

# $ 2 8

G O P L O T

* $ 2 8

$ F F F 0

$ F F A B

E X I T

; d e v i c en u m b e r

; T A L K :c o m m a n dd i s kt o t a l k

; s e c o n d a r y a d d r e s s1 5

; T K S A :s e n d s e c o n d

; e r r o ra b o r t

; s e tc a r r yb i t

; P L O T :f e t c hc u r s o rl o c a t i o n

; s a v ei t

; s a v ei t t o o

; h o m ec u r s o r c h a r a c t e r; C H R O U T :p r i n ti t

; a z e r o

; c l e a rt h es t a t u sw o r d

; A C P T R ;g e te r r o rc h a n n e lc h a r a c t e r

; C H R O U T :p r i n ti t

; R E A D S T :r e a ds t a t u sb y t e

; i fz e r o

; g e ta n o t h e rc h a r a c t e r

; c u r s o r xp o s i t i o n

; c u r s o r y

; s h o r tl i n e ?

; i fy e s g op l o t

; s u b t r a c t4 0

; m o v et o y r e g i s t e r

; c l e a rc a r r y

; P L O T :s e tc u r s o rb a c k

; U N T L K :u n t a l ks e r i a ld e v i c e s

i f i n i s h

T A B L EI I

C a l lA d d r e s sF o rP r o g r a m s1 , 2 . 3 a n d4

P R O G R A M

P R O G R A MP R O G R A M

P R O G R A M

P R O G R A M

lf o u rp r o g r a m sa r es t o r e c

H E X D E C I M A L

1 S C 1 0 0 4 9 4 0 82 $ C 1 5 F 4 9 0 5 3

3 $ C 1 A 6 4 9 5 7 4

4 S C 1 F 2 4 9 6 5 0

1 a s a b l o c ko c c u p y i n gt h es p a c ef r o m

l O Ot o S C 2 5 7 .$ C 0 0 0t o S C O F Fi s u s e da s b u f f e rs p a c eb yp r o g r a m1 .

c a l lp r o g r a m1

S a m p l e B A S I C P r o g r a m s

c l r :a $ =" " : a ° / o = 1 O

s y s4 9 4 0 8

p r i n t : p r i n t a $

c a l lp r o g r a m3

T o c a l lp r o g r a m2

1 0 c l r :a $ = " 0 : s c r e e nd u m p . s . w "

2 0 s y s4 9 0 5 3

T o c a l lp r o g r a m4

c l r :a $ =" 0 : s c r e e nd u m D . s . r " s v s4 9 6 5 0

s y s4 9 5 7 4

o g r a m5 i s a B A S I C p r o g r a mt h a tw i l lg e n e r a t ea m a c h i n el a n g u a g e

o g r a mo n d i s k .T h i sp r o g r a mc o n t a i n st h ea b o v ef o u rp r o g r a m sa n d

l lh a v et h en a m e" k e r n a l\

I I I I l a l1 U .

v h o c l O O. L o a dt h i sp r o g r a mw i t ht h e

L O A D" k e r n a lw h od 0 0 " , 8 , 1

e nt y p ei N t W a u up r e s si c i u m .

eT r a n s a c t o r S 3

P R O G R A M1 - 4G e n e r a t o r

B O

K G

P I

E A

C C

B L

M H

E PC l

I L

D C

F G

E K

C B

D F

M M

I H

E E

A F

P O

D L

E L

N K

P H

I E

A H

N M

O F

D l

F l

E D

G N

E F

N F

D D

L N

A K

H C

H B

F F

D H

M l

M M

L I

F FJ F

A E

P K

P G

M A

D F

M C

J O

M D

D N

J O

K K

C GF P

O G

1 0 0r e mo b j e c tf i l ec r e a t o rf o r

1 1 0r e mp r o g r a m s1 , 2

1 2 0r e mf o r a r t i c l e

, 3 a n d4

i " K E R N A L W H O ? "1 3 0r e m" E v a nW i l l i a m s1 9 8 6

1 4 0p r i n t" @ p l a c ed i s ki n d r i v ea n dp r e s sr e t u r n . "

1 5 0g e ta $ : i f a $ O c h r $ ( 1 3 ) t h e n1 5 0

1 6 0p r i n t" 0 o k ,p l e a s e

1 7 0f o ri = 1 t o 3 4 4 :

1 8 0 i f c k < > 5 0 1 4 3

s t a t e m e n t s " :

1 9 0p r i n t" 0 d a t a2 0 0o p e n !, 8 , 2 ," 0

r e a d

t h e n

e n d

1 w a i t "

a : c k = c k + a :

p r i n t" Q jn e x t

| e r r o ri n d a t a

o k ,c r e a t i n gd i s kp r o a r a mf i l e "

: k e r n a lw h oc 1 0 0 , o ,

2 1 0r e s t o r e :p r i n t # 1 , c h r $ ( 0 ) ; c h r $ ( 1 9 3 )

2 2 0 f o r i= 1 t o 3 4 4 :r e a d c

2 3 0 p r i n t # 1 , c h r $ ( a ) ;

2 4 0n e x t :c l o s e i

2 5 0p r i n t" 0 d o n e2 6 0 :

2 7 0d a t a1 6 9 , 0

2 8 0d a t a1 7 7 , 4 5

2 9 0d a t a 0 , 2 4 0

3 0 0d a t a 2 0 ,2 0 8

3 1 0d a t a 2 5 4 ,7 6

3 2 0d a t a 3 2 , 1 4 4

3 3 0d a t a1 7 6 ,2 1 8

3 4 0d a t a 7 6 , 1 2

3 5 0d a t a 2 5 5 ,1 6 9

3 6 0d a t a1 6 0 , 2

3 7 0d a t a 0 , 1 4 5

3 8 0d a t a2 3 0 ,2 0 4

3 9 0d a t a 2 , 1 7 7

4 0 0d a t a 4 5 , 1 7 0

4 1 0d a t a1 8 9 ,2 5 5

4 2 0d a t a 3 2 , 1 8 6

4 3 0d a t a1 6 2 , 1

4 4 0d a t a2 5 3 ,1 6 9 ,

4 5 0d a t a2 1 0 , 2 5 5 ,

4 6 0d a t a2 5 4 , 2 0 1 ,

4 7 0d a t a1 9 5 ,2 5 5 ,

4 8 0d a t a1 7 7 , 4 5 ,

4 9 0d a t a1 7 0 ,2 0 0 ,

5 0 0d a t a2 5 5 , 1 6 9 ,

5 1 0d a t a1 8 6 ,2 5 5 ,

5 2 0d a t a 1 , 3 2 ,

5 3 0d a t a1 3 2 ,2 5 3 ,

5 4 0d a t a 2 5 5 ,1 6 4 ,5 5 0d a t a 2 4 5 , 2 3 0 ,

5 6 0d a t a2 3 7 ,1 6 9 ,

5 7 0d a t a 2 5 5 ,9 6 ,

5 8 0d a t a1 6 9 , 3 ,

5 9 0d a t a1 3 3 ,2 5 4 ,

6 0 0d a t a2 4 0 , 1 1 ,

6 1 0d a t a1 9 8 ,2 5 4 ,

6 2 0d a t a 2 5 4 ,1 6 9 ,

6 3 0d a t a 3 2 , 1 5 0 ,

6 4 0d a t a 2 5 5 ,1 3 4 ,

6 5 0d a t a2 1 0 2 5 5

6 6 0d a t a2 5 5 , 3 2 ,

6 7 0d a t a 0 , 2 4 0 ,

6 8 0d a t a 4 0 , 1 4 4 ,

6 9 0d a t a2 4 0 ,2 5 5 ,

i

i " : e n d

, 1 3 3

, 1 3 3

, 2 4 9

9

6 2

2 2 5

2 3 0

1 9 3

0

1 6 5

4 5

1 6 9

4 5

2 0 0

1 6 9 ,

2 5 5 ,

3 2 ,

4 ,

2 0 0 ,

8 ,

3 2 ,

2 4 0 ,

1 7 7 ,

1 ,

3 2 ,

1 9 8 ,

1 6 9 ,

2 5 2 ,2 5 4 ,

1 ,

1 2 0 ,

1 4 1 ,

9 6 ,

1 6 9 ,

7 6 ,

8 ,

2 5 5 ,

2 5 1 ,

1 6 9 ,

2 1 0 ,

2 4 3 ,

3 ,

3 2 ,

2 5 4 ,1 3 3

2 5 3 , 3 2

2 0 1 , 1 3

1 6 4 , 2 5 4

1 9 3 ,1 7 0

1 3 8 ,1 6 4

2 5 4 ,2 0 8

1 5 3 , 0

1 3 3 , 2 1 2

2 5 4 ,1 4 5

2 0 0 ,1 6 9

3 2 , 7 6

2 4 0 , 6 1

1 7 7 , 4 5

1 , 1 6 2

3 2 , 1 9 2

2 0 1 , 2 5 5 ,

1 3 3 , 2 5 4 ,

2 0 8 ,2 4 8 ,

1 4 4 , 2 4 0 ,

2 3 1 , 2 5 5 ,

6 6 , 7 2 ,

4 5 , 1 6 8 ,

1 6 2 , 8 ,

1 9 2 , 2 5 5 ,

2 5 5 ,1 6 0 ,

4 , 1 3 3 ,

1 4 5 , 2 5 3 ,1 6 5 , 2 5 4 ,

3 2 , 1 9 5 ,

1 6 9 , 1 9 4 ,

2 0 , 3 ,

1 7 3 , 1 4 1 ,

6 , 1 9 7 ,

4 9 ,2 3 4 ,

3 2 , 1 8 0 ,

1 7 6 , 2 3 7 ,

1 3 2 , 2 5 2 ,

0 , 1 3 3 ,

2 5 5 , 3 2 ,

1 6 6 , 2 5 1 ,

2 3 3 , 4 0 ,

1 7 1 , 2 5 5 ,

, 2 0 4

, 2 2 8

2 4 0

2 4 0

4 1

2 5 4

5

1 9 2

7 6

4 5

1 9 2

2 1 0

7 2

1 6 8

8

2 5 5

1 6 0 ,

1 7 7 ,

2 3 0 ,

1 6 9 ,

9 6 ,

2 0 0 ,

1 0 4 ,

1 6 0 ,

1 7 6 ,

0 ,

2 5 4 ,

2 3 0 ,2 0 1 ,

2 5 5 ,

1 4 1 ,

8 8 ,

2 ,

2 5 4 ,

1 6 9 ,

2 5 5 ,

5 6 ,

1 6 9 ,

1 4 4 ,

1 8 3 ,

1 6 5 ,

2 4 ,

7 6 ,

w "

, 1 6 0

, 2 5 5

4 9

2 3 7

1 2 7

1 9 6

1 9 8

3 2

1 2

2 0 0

1 4 5

2 5 5

2 0 0

1 0 4

1 6 0

1 7 6 ,

0 ,

2 5 3 ,

2 5 4 ,

1 ,

1 6 0 ,

1 7 7 ,

3 2 ,

2 ,

3 9 ,

1 3 2 ,

3 2 ,

2 5 2 ,

8 ,

3 2 ,

2 1 ,

1 6 9 ,

1 9 7 ,

2 4 0 ,

4 5 ,

1 6 9 ,

3 2 ,

1 9 .

3 2 .

2 5 5 ,

2 5 2 ,

1 6 8 ,

1 8 ,

, 1 0

2 0 1

2 0 1

1 9 8

2 0 1

2 5 3

2 5 4

2 1 0

1 9 3

1 6 9

4 5

1 6 0

1 7 7

3 2

2

3 4

1 3 2

3 2

1 6 5

3 2

2

4 5

1 8 9

3 2

1 6 2

2 5 2

2 2 8

2 0 81 4 4

2 3 1

3

6

2 5 4

2

1 3 3

1 1 1

2 4 0

3 2

1 6 5

2 0 1

2 0 1

3 2

1 9 4

u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 58: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 58/88

A d d i n gF u n c t i o n st o B a s i c F r a n kE . D i G i o

A t h e n s ,G e o r g

E x e c u t eM a c h i n eL a n g u a g ep r o g r a m si n s i d ey o u r1 5 4 1

H o ww o u l dy o ul i k e t ob ea b l et o a d df u n c t i o n st o B A S I Cw i t ha s m u c h

e a s ea s y o ua r e a b l et o a d dc o m m a n d st h r o u g ht h e u s eo f w e d g e

p r o g r a m s ?I t c a n b ed o n e .A n d ,i n f a c t ,i t i s j u s ta s e a s yt o i m p l e m e n ta

f u n c t i o nw e d g ea s i t i s t o i m p l e m e n ta n yo t h e r t y p eo fw e d g ep r o g r a m .

T h en a t u r a lq u e s t i o ni s ,o f c o u r s e ,i f i t i s s o e a s y ,w h yh a v e n ' tw es e e n

f u n c t i o nw e d g e sb e f o r e ?I t h i n kt h a tt h er e a s o ni s s i m p l yb e c a u s et h e

t y p e so f w e d g e sw ea r em o s tf a m i l i a rw i t h a r e t h eo n e sw h i c ha r el e a s t

s u i t a b l ef o ra d d i n gf u n c t i o n s .

I f y o ut r y t ot h i n ko f a C H R G E Tw e d g eo r a n I E R R O Rw e d g er e t u r n i n g

a f u n c t i o nv a l u e ,t h e n ,i t d o e s , i n d e e d , l o o kl i k ea t o u g hj o b ,b e c a u s e

t h e s et y p e so f w e d g e sa r en o tr e a l l ys u i t a b l ef o rr e t u r n i n gv a l u e s .W e

n e e da w h o l en e wt y p eo f w e d g e .I n t h i sa r t i c l ea n dt h et w ot h a tw i l l

f o l l o wi t , w ew i l le x p l o r es e v e r a ld i f f e r e n tt y p e so f w e d g e s w h i c ha r e

n o ti n c o m m o nu s e ,b u tw h i c hh a v eg r e a t p o t e n t i a lf o ro p e n i n g u p

n e wa v e n u e so f p r o g r a m m i n gf o rt h o s ew h od e s i r et o e n h a n c et h e

w o r k i n g e n v i r o n m e n to f t h e i rc o m p u t e r .

W h yA F u n c t i o nW e d g e ?

P e r h a p sy o u ' r ew o n d e r i n gw h y w ee v e n n e e da f u n c t i o nw e d g e .A f t e r

a l l , C o m m o d o r ew a sg o o de n o u g ht o i n c l u d e t h eU S Rf u n c t i o ni n

B A S I C2 . 0w h i c ha l l o w su s t o a d do u ro w nf u n c t i o n st o B A S I C .W h i l e

i t i s v e r yt r u et h a tw e c a na d da l m o s ta n yf u n c t i o nw e d e s i r e v i at h e

U S Rf u n c t i o n ,t h ea d v a n t a g e so f a f u n c t i o nw e d g ei n c l u d et h ef a c tt h a t

m a n y n e wf u n c t i o n sc a nb e d e f i n e da t o n et i m ea s w e l la s t h ef a c tt h a t

w i t ha f u n c t i o nw e d g e ,w e a r e f r e e t od e t e r m i n et h e n u m b e ro f

p a r a m e t e r s ,m e t h o do f i n p u t ,e t c .F o re x a m p l e ,t a k et h ep r o g r a ml i n e :

1 0 p r i n t ! c o s h ( . 5 ) , ! s i n h ( . 9 ) , ! s e c ( . 1 2 )

W h i l et h ep u r i s tm a ya r g u et h a tt h el i n ec o u l db e i m p l e m e n t e dw i t h

U S Rf u n c t i o n s ,i t w o u l dt a k es e v e r a ll i n e st o i m p l e m e n ta n d w o u l dn o t

b e n e a r l ya s c l e a r a st h ea b o v el i n e .F u r t h e r ,w h a ti f y o u n e e dm u l t i p l e

a r g u m e n t sl i k e :

2 0 z = ! m o d ( x , y )

Y o uc o u l ds a yZ =U S R ( X ) , YI s u p p o s e ,b u ti t j u s ti s n ' tt h es a m e .

C r e a t eA N e wE n v i r o n m e n t

W h i l et h ea b o v ea r eg o o de n o u g hr e a s o n sf o ru s i n g a f u n c t i o nw e d g e ,

a n e v e nm o r en o v e lw a yt o u s ea d d e df u n c t i o n si s t o c h a n g et h e

B A S I C p r o g r a m m i n ge n v i r o n m e n t . T h a ti s ,g i v e t h ei l l u s i o n o fa d d i n g

n e wc o m m a n d s ,a n dc h a n g i n gt h ec a p a b i l i t i e so f B A S I C . F o re x a m p l e ,

a f u n c t i o nn a m e d@ t h a tt a k e st w op a r a m e t e r sa n dr e t u r n sa n u l l

s t r i n gc a n b e u s e dt o p l o tt h ec u r s o r ,t h u sc r e a t i n ga P R I N T @ ( x , y )

s t a t e m e n t .A n dw h os a y sw en e e dt o e n c l o s et h e f u n c t i o na r g u m e n ti n

p a r e n t h e s e s ?S u p p o s ew e m a k ea f u n c t i o nn a m e d' $ ' w h i c hc o n v e r

f r o mA S C I IH e xc h a r a c t e r st o i n t e r n a lf l o a t i n gp o i n t .T h e nw e c a n

e x e c u t es t a t e m e n t sl i k e :

1 0 p o k e $ c 0 0 0 , $ b 4

2 0 x = $ a 0 0 0

3 0 p r i n t$ d 0 0 0 , p e e k ( $ d 0 0 0 )

o r a d da f u n c t i o nn a m e d% f o rb i n a r ya n d y o uc a n

2 0 p o k e $ 0 3 3 c , p e e k ( $ 0 3 3 c ) a n d %

A d m i t t e d l y , t h ea b o v ec o u l db e d o n ew i t h aU S Rf u n c t i o n b u tb y u s i n

a f u n c t i o nn a m e d' $ ' o r ' % 'w e c r e a t et h ei l l u s i o no f a n e wo p e r a t i

s y s t e m .

H o wT o I m p l e m e n tT h eW e d g e

N o wt h a ty o ua r ef u l l yc o n v i n c e dt h a ta f u n c t i o nw e d g ei s a w o r t h

w h i l ee n d e a v o r ,l e tu s e x a m i n eh o wt o i m p l e m e n to n e .I t i s n ' th a r da t

a l l .T h ev e c t o rw ew i l lb e c h a n g i n gt o p o i n tt o o u re v a l u a t i o nr o u t i n

i s n a m e d1 E V A L a n di s l o c a t e da t $ 0 3 0 A / $ 0 3 0 B .I n a d d i t i o nt o j u s t

e x e c u t i n g o u rr o u t i n e ,h o w e v e r ,w e m u s tt e l l B A S I Cw h e t h e rt h e

r e s u l tw a ss t r i n go r n u m e r i ca n dw h e r et o f i n di t . A s f a ra s t h e t y p

g o e s , s t o r i n ga z e r oa t l o c a t i o nS O Di n d i c a t e sn u m e r i ca n dt e l l sB A S I

t o l o o kf o rt h er e s u l ti n t h eF A C( T h ef l o a t i n gp o i n ta c c u m u l a t o r— i f

y o ud o n ' tk n o ww h e r eo r w h a tt h a ti s , d o n ' tw o r r y , t h e r e a r R O M

r o u t i n e st h a tt a k e c a r eo f a l lo f t h a tf o ry o u . ) .S t o r i n ga $ F Fa t l o c a t i o

S O Di n d i c a t e st h a tt h er e s u l ti s o f t y p es t r i n ga n d B A S I Cl o o k so n t h e

t e m p o r a r ys t r i n gs t a c kt o f i n di t . I f y o ud o n ' tu n d e r s t a n dh o wt o s e tu p

a s t r i n g ,d o n ' tw o r r y ,w ew i l lu s ea R O Mr o u t i n et o d o t h i s f o r u s ,t o o .

O u re v a l u a t i o nr o u t i n ew i l ld e f a u l tt o t y p en u m e r i ca n dt h e R O M

r o u t i n e sw e w i l lu s et o s e tu p a s t r i n gw i l l s e tt h e t y p et o s t r i n gs o w e

n e v e rh a v et o w o r r ya b o u ts e t t i n gt h e t y p ef l a go u r s e l v e s .I n f a c t ,t h e

o n l yt h i n go u to f t h eo r d i n a r yt h a tw ew i l lh a v et o d o ,i s t o s e tu p t h e

s t r i n gd e s c r i p t o ri f t h er e s u l t o fo u rf u n c t i o ni s a s t r i n g .Y o uw i l ls e e

h o wt h i si s d o n ei n t h ee x a m p l ep r o g r a m .

A n E x a m p l eF u n c t i o nW e d g e

A t t h ee n do f t h i sa r t i c l ei s a v e r yu s e f u le x a m p l eo f a f u n c t i o nw e d g

t h a ty o uc a n u s ea n da d d y o u ro w nf u n c t i o n st o . I t i s a c t i v a t e db y

S Y S 4 9 1 5 2a n di s i m m u n et o R U N / S T O P - R E S T O R E H e r ea r e t h

f u n c t i o n sw ew i l li n c l u d ea n da n e x a m p l eo f h o wt h e ya r e u s e d :

T h e' @ 'f u n c t i o n :P l o tt h ec u r s o ra n dr e t u r na n u l ls t r i n g .( N o t e :m o r

t h a no n e@ i s a l l o w e di n o n ep r i n ts t a t e m e n t ) .T y p e :S T R I N G

E x . p r i n t @ ( 0 , 1 4 ) "m yr e p o r t "; @ ( 2 , 1 2 ) "b yJ o h ns m i t h "

T h eT r a n s a c t o r 5 4 J u l y 1 9 8 4 :V o l u m e7 , I s s u e0 1

Page 59: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 59/88

h e' $ ' a n d' % 'f u n c t i o n s :C o n v e r tH E Xa n dB I N A R Yc h a r a c t e r st o

l o a t i n gp o i n t .T y p e :N U M E R I C

x . p o k e $ d 0 1 6 ,p e e k ( $ d O 1 6 )a n d% 1 1 1 0 1 1 1 1

h e' * ' f u n c t i o n :C o n v e r tf r o mL O / H If o r m a tt o 1 6 b i tf l o a t i n gp o i n t .

T h i sr o u t i n ei s i n c l u d e dj u s ta s a n e x a m p l et o s h o wh o wt o c o n v e r t

o u rr e s u l t st o f l o a t i n gp o i n ti f t h e ya r e n ' t a l r e a d y ) .T y p e :N U M E R I C

x .p r i n t# ( p e e k ( 4 3 ) , p e e k ( 4 4 ) )

o u l db e u s e dt o r e a d t h es t a r ta d d r e s so f B A S I C .T or e a da n ya d d r e s s ,

u s tP R I N T# ( L O , H 1 ) .

i n a l l y ,s i n c ea l lt h ea b o v ef u n c t i o n s s of a rh a v e b e e nk i n do f o f ft h e

a l l ,I w i l li n c l u d ea p a r s e ra n ds o m ee x a m p l e so f f u n c t i o n ss i m i l a rt o

h a t y o um i g h ta d dy o u r s e l f ;i n c l u d i n ga s t r a i g h t f o r w a r ds t r i n g

u n c t i o n ,I D S T A T ,a n da s o m e w h a ts e r i o u sn u m e r i cf u n c t i o n ,! M 0 D ,

h i c hs h o w st h a te v e nY O Uc a nd o f l o a t i n gp o i n to p e r a t i o n sf r o m

a c h i n el a n g u a g e .

h eI D S T A Tf u n c t i o nr e t u r n st h e d i s ks t a t u sa s a s t r i n g .T h es t a t u si s

l e a r e do n c ei t i s r e a d s os a v ei t i n a v a r i a b l ei f y o un e e di t .

x .( P r i n tA S e q u e n t i a lF i l e )

1 0 o p e n 2 , 8 , 2 , "f i l e n a m e " :a $ = I d s l a t :i f v a l ( a $ ) < > 0 t h e n

p r i n ta $ :e n d

2 0 f o ri = 0 t o 1 : g e t # 2 , b $ :p r i n t b $ :i = s t : n e x t :c l o s e 2

h e! M 0 D ( X , Y )f u n c t i o n r e t u r n s t h ei n t e g e rr e m a i n d e r f r o md i v i d i n g

b y Y . M O Dh a st w os i s t e rf u n c t i o n s ,D I Va n dF R A C ,w h i c hr e t u r n

h ei n t e g e rq u o t i e n ta n df r a c t i o n a lr e m a i n d e r ,r e s p e c t i v e l y .

x . h i = ! d i v ( x , 2 5 6 )

l o = ! m o d ( x , 2 5 6 )

z z = ! f r a c ( x , y )

n yf u n c t i o n st h a tY O Um a yw a n tt o a d dc a nb e i n c l u d e dv i at h e !

y m b o l w h i c hi m m e d i a t e l yc a u s e sp a r s i n gf o r t h e f u n c t i o nn a m et o

x e c u t e .

l t h o u g ht h es o u r c ec o d ef o r t h i se x a m p l ei s f u l l yc o m m e n t e d ,I w i l l

r i e f l yd i s c u s ss o m ei m p o r t a n tp o i n t sf o rt h o s ei n t e r e s t e di n a d d i n g

h e i ro w nf u n c t i o n sw i t ht h i sc o d e .

o wI t W o r k s

h e w e d g ei t s e l fi s v e r ys i m p l e .I f n o tf o rt h eI c o m m a n d s ,t h ew e d g e

o u l do n l yb e a f e wl i n e s l o n g .W h e na f u n c t i o nn a m es t a r t i n gw i t h!

f o u n d ,c o n t r o li s p a s s e dt o t h e p a r s e rw h i c hl o o k st h r o u g ht h e

o m m a n dt a b l ef o ra m a t c ha n dj u m p st o t h ec o r r e s p o n d i n ga d d r e s s

i aR T S . T h a ti s , i t p l a c e s t h ea d d r e s so f t h e r o u t i n e( m i n u so n e )o n t h e

t a c ka n dt h e ne x e c u t e sa n R T S( a tt h ee n do f C H R G E T )t o j u m pt o t h e

o u t i n e .T h ep a r s e rc o d ei s w e l lw o r t hs t u d y i n g .I f y o u w a n tt o a d d

o u ro w nf u n t i o n st o B A S I C ,s i m p l yp u t t h en a m eo f y o u rf u n c t i o ni n

h eT A B L Eb e i n gs u r et o a d d$ 8 0t o t h el a s tb y t eo f t h en a m e .T h e np u t

h ea d d r e s s - 1i n t h eA D R T A Ba n dy o ua r ei n b u s i n e s s .

h eI D S T A Tf u n c t i o ni s s t r a i g h t f o r w a r da n dm a yb e u s e da s a m o d e l

o ra d d i n gy o u ro w ns t r i n gf u n c t i o n s .I t t a l k st o t h e d r i v ea n dt h e np u t s

h e l e n g t ho f t h er e s u l t i n gs t r i n gi n . A a n di n l i n e2 4 2 0a s k sB A S I C

h e r et o p u tt h es t r i n g .D L O O P 2c o p i e st h es t r i n gt h e r ea n dw ee n d

o u rf u n c t i o ni n l i n e2 5 0 0b y t e l l i n gB A S I C w h e r et h es t r i n gc a nb e

f o u n d . ( N o t et h a tX P L O T( T h e@ f u n c t i o n ) r e t u r n sa n u l l s t r i n gb y

r e s e r v i n gs p a c ef o ra s t r i n go f l e n g t h z e r o b e f o r es e t t i n gu p t h es t r i n g

d e s c r i p t o r . )

W r i t i n gn u m e r i cf u n c t i o n si s e a s y .J u s tb e s u r et o l e a v e t h ef i n a lr e s u l t

i n t h eF A C .I f y o u w e r ed o i n ga n i n t e g e rc a l c u l a t i o n ,y o uc a nc o n v e r t

t h er e s u l tt o f l o a t i n gp o i n ti n e x a c t l yt h es a m ew a ya s t h e# f u n c t i o n

d o e si t . S e el i n e s2 9 8 0 - 3 0 2 0 .

F i n a lN o t e s

T h ef u n c t i o nw e d g ei s t h eb e s tw a yp o s s i b l et o a d df u n c t i o n st o B A S I C .

I t i s i m m u n et o R U N / S T O P - R E S T O R E ,i t i s c o m p a t i b l ew i t ha l m o s t

e v e r yo t h e ru t i l i t yt h a tI k n o wo f i n c l u d i n gt h eD O Sw e d g ea n dE p y x

F a s t l o a dC a r t r i d g e( n o ,t h e $ c o m m a n d sd o n o t c o n f l i c t )a n d i t

p r o v i d e sa n a t u r a lw a yt o p a s s t h er e s u l t sb a c kt o B A S I C .A n yo f t h e s e

n e wf u n c t i o n sc a nb eu s e di n a n yw a yt h a ta n o l do n ec a nb eu s e d .I . E .

t h ef o l l o w i n gs t a t e m e n ti s p e r f e c t l yl e g a l :

a = $ f f O d * % 1 1 0 1 1 +s i n ( ! m o d ( $ f f a b c d , % 1 1 1 0 1 )

T h e r ea r e af e wv e r ym i n o rl i m i t a t i o n st o t h e f u n c t i o n sp r e s e n t e d

h e r e .I f y o ua r el i k em e ,t h ef i r s tt e s ty o uw i l lt r yw i t ht h e$ f u n c t i o ni s

P R I N TS A B C D E F .T h i sw i l lr e s u l ti n a s y n t a xe r r o rb e c a u s et h eB A S I C

k e y w o r dD E Fi s e m b e d d e di n t h en u m b e r .A d d i n ga s p a c eb e f o r e t h e

F w i l ls o l v e t h ep r o b l e m( T h e$ r o u t i n e i g n o r e ss p a c e s ) .T h eo n l y

o t h e rl i m i t a t i o ni s t h a tt h eM O D / D I V / F R A Cg r o u pi s i n t e n d e dt o b e

u s e dw i t hp o s i t i v eo p e r a n d so n l y .D o n ' tf o r g e tw h e nu s i n gt h e @f u n c t i o ni n d i r e c tm o d et h a tt h es c r e e nw i l l s c r o l li f y o up r i n tt o oc l o s e

t o t h eb o t t o m . T h i sp r o b l e mc a nb e e a s i l y f i x e dw i t ha W A I Ts t a t e

m e n t . T r yt h i sl i n e :

p r i n t @ ( 0 , 1 4 ) "m yr e p o r t "@ ( 2 , 1 3 ) "b yJ o h n

d o e "@ ( 2 4 , 1 4 ) "p a g e1 " ; : w a i t 1 9 8 , 1

I h o p et h a ty o uw i l lb e a b l et o u s et h e f u n c t i o n sp r e s e n t e d h e r ea n d

t h a t t h i se x a m p l ew i l lp r o v i d ey o uw i t ht h es k i l l sn e c e s s a r yt o a d d a n y

a d d i t i o n a lf u n c t i o n st h a ty o um a yn e e d .T h en e x ta r t i c l e ," C o m m a n d

W e d g e " ,w i l lf o c u so n a w e d g ef o r m o d i f y i n ge x i s t i n gB A S I Cc o m

m a n d s .B e f o r eg o i n gt h e r e ,t r yt h e s er e l a t i v e l ys i m p l ep r o j e c t s :

( 1 )A d dt w of u n c t i o n s! H I ( X )a n d! L O ( X )w h i c hr e t u r nt h e h i a n dl o

b y t e s , r e s p e c t i v e l y ,o f t h en u m b e rX .

( 2 ) a d da f u n c t i o n ,I S 1 Z E ,w h i c hr e t u r n st h e l e n g t ho f t h e B A S I C

p r o g r a mc u r r e n t l yi n m e m o r y .

( 3 )I f y o uh a v et w od r i v e s ,m a k eI D S T A Tr e q u i r e ad e v i c en u m b e rl i k e

! D S T A T 8 o r ! D S T A T 9 .

H I N T S :( D o n ' tr e a du n l e s sy o ua r es t u c k )

( 1 )T r ys o m e t h i n gl i k et h i s :L o o ka t t h e d e f i n i t i o no f L O a n dH I i n

t e r m so f I M O Da n dI D I Va b o v e .U s e J S R$ A E F 1t o g e tp a r mi n t o

F A C .( T h i sr o u t i n e t a k e s c a r eo f p a r e n t h e s e s ,e t c . )S t o r eF A Ca t

T E M P .( S e el i n e s4 1 9 0 - 4 2 1 0 ) .G e t2 5 6i n t oF A C( S e el i n e s2 9 8 0 -

3 0 2 0 )S t o r ea t M O D L U S( S e el i n e s4 2 6 0 - 4 2 8 0 )S e tf l a gf o rM O Do r

D I Va s r e q u i r e da n dJ M Pt o l i n e4 3 0 0 .

( 2 )E a s y . S u b t r a c ta d d r e s so f s t a r to f B A S I C( f o u n da t l o c a t i o n s4 3 / 4 4 )

f r o ma d d r e s so f s t a r to f v a r i a b l e s( f o u n da t 4 5 / 4 6 ) .C o n v e r tt h i s

r e s u l t t oF A C .

( 3 )S i m p l yr e p l a c el i n e2 2 2 0w i t hJ S RG E T B Y T . T h e na d ds o m ec h e c k s

s o t h a tn oo n ec a nh a n gi t u p b yg i v i n gi t a c r a z y d e v i c en u m b e r .

H a v ef u n !

h eT r a n s a c t o r 5 5 J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 60: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 60/88

N OF K

N L

G PJ CH GD J

O BF O

I N

A H

H L

H ON DO CE N

N DD P

N BN l

P A

I I

F B

H ND D1 - 1 B

N DM OG PL J

G l

L K

H L

L P

I J

A OJ C

O OJ B

J G

I C

J L

M LL F

C EP D

P GF C

F F

C ME J

A GB l

F B

D A

B A

J L

J L

M JN NB GD A

I C

B N

A H

M AJ J

L E

F G

1 0 0

1 1 0

1 2 0

1 3 0

1 4 0

1 5 0

1 6 0

1 7 0

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 04 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 06 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 0

7 5 07 6 0

7 7 0

7 8 0

r e mb a s i c l o a d e rf o rf u n c t i o nw e d g e

r e mb y f r a n ke . d i g i o i a1 1 / 1 4 / 8 5

r e ms y s4 9 1 5 2t o a c t i v a t e

f o ra d r= 4 9 15 2 t o 4 9 6 3 4 : r e a dm l

c s = c s + m l : p o k ea d r , m l : n e x t

i f c s < > 5 9 8 0 0 t h e n p r i n t "e r r o ri n d a t a "

F u n c t i o nW e d g e sS o u r c eC o d e

d a t a1 6 9 ,

d a t a 1 1 ,

d a t a1 1 5 ,

d a t a2 4 0 ,

d a t a2 4 0 ,

d a t a 0 ,

d a t a 3 2 ,

d a t a1 6 9 ,

d a t a1 8 9 ,

d a t a2 0 8 ,

d a t a 1 6 ,

d a t a2 0 8 ,

d a t a

d a t a

d a t a1 3 3

d a t a1 9 2

d a t a1 5 2

d a t a 7 7

d a t a 7 3

d a t a1 4 2

d a t a1 6 2

d a t a1 6 9

d a t a 0

d a t a 2 0 1

1 1 ,

3 ,

0 ,

2 1 ,

1 9 ,

7 6 ,

1 9 3 ,

0 ,

1 3 6 ,

2 ,

8 ,

8 ,

1 6 , 2 4 8 ,

7 6 , 6 3 ,

1 2 2 ,

1 0 ,

1 9 2 ,

7 9 ,

2 1 4 ,

1 9 3 ,

8 ,

1 1 1 ,

3 2 ,

1 3 ,

d a t a1 3 8 ,

d a t a 1 2 ,

1 4 1 , 1 0

9 6 , 1 6 9

2 0 1 , 3 6

2 0 1

2 0 1

1 4 1 ,

1 4 1 ,

1 9 3 ,

1 6 , 2 4 8 ,

3 2 , 2 4 2 ,

1 7 8 ,

2 5 5 ,1 8 0 ,

1 2 ,

1 3 8 ,

1 2 ,

2 4 2 ,

5 6 ,

1 ,

1 1 5 ,

1 1 4 ,

1 0 4 ,

5 ,

1 6 ,

1 4 4 ,

7 ,

d a t a

d a t a

d a t a 7 2

d a t a2 4 0d a t a2 0 2

d a t a1 4 2

d a t a1 8 3

d a t a1 7 4

d a t a 3 2

d a t a1 4 4 ,

d a t a1 6 9 ,

d a t a 3 2 ,

d a t a 3 2 ,

d a t a1 9 3 ,

d a t a1 6 2 ,

d a t a1 4 4 ,

d a t a 6 5 ,

d a t a2 3 3 ,d a t a 5 0 , 1 7 6 ,

d a t a 6 5 , 1 4 4 ,

d a t a 7 2 , 1 7 8 ,

d a t a1 3 9 ,

d a t a1 7 6 ,

d a t a1 8 5 ,

d a t a 1 ,

d a t a2 5 0 ,

d a t a1 9 3 ,

d a t a1 3 8 ,

d a t a1 9 3 ,

d a t a 3 2 ,

d a t a1 8 8 ,

d a t a 3 2 ,

d a t a

d a t a

7 3 ;

9 6 ,

1 9 3 ,

4 ,

4 ,

4 4 ,

1 7 4 ,

3 2 ,

1 7 3 ,

3 2 ,

1 5 ,

1 7 3 ,

8 3 ,

2 2 5 ,

1 8 4 ,

0 ,

6 4

3 3 ,

1 7 4 ,

7 6 , 2 1 3 ,

1 4 1 ,1 3 2 ,

1 9 2 ,2 4 0

2 4 0 ,2 4 3 ,

4 1 , 1 2 7

2 3 2 ,1 8 9

2 3 2 ,2 3 8

1 9 2 ,2 0 0

1 4 4 , 2

1 7 0 ,1 8 9

7 2 , 9 6

1 9 6 , 7 0

6 8 , 8 3

1 4 5 ,1 9 3

1 3 4 , 1 8 6

1 3 3 , 1 8 5

1 6 5 , 2 5 5

2 0 8 , 2 4 5

1 2 , 1 9 3

1 8 5 , 6 0

7 6 , 2 0 2

1 9 2 , 2 2 4

1 9 2 , 4 0

1 6 9 , 03 2 , 2 5 0

1 9 3 , 3 2

7 2 , 3 2

1 9 3 , 9 6

1 9 2 , 1 3 4

7 6 , 7 3

1 4 1 , 1 3 9

0 , 2 4 0

1 9 3 , 3 2

1 0 4 , 7 6

1 4 9 , 9 7

1 7 4 , 1 3 9

2 3 0 , 2 0 1

1 7 4 , 1 3 91 2 , 5 6

2 0 6 , 2 0 1

1 6 6 , 9 7

1 8 9 ,1 3 7

1 3 3 , 9 7

1 , 0

1 6 9 , 2 5 5 ,

3 2 , 1 3 8 ,

2 1 2 ,1 8 7 ,

3 2 ,2 4 7 ,

2 1 2 ,1 8 7 ,

1 8 7 , 3 2 ,

1 3 9 ,1 9 3 ,

1 8 4 , 1 7 3 ,

1 6 0 ,1 9 3 ,

3 2 ,2 0 4 ,

0

3 , 1 6 9 ,

0 , 1 3 3 ,

2 4 0 , 2 2 ,

2 4 0

2 4 0

7 6 ,

1 9 2 ,

2 0 ,

1 8 ,

2 9 ,

7 6 ,

1 9 2 ,1 7 0 ,

6 4 , 2 3 2 ,

2 0 2 ,1 8 9 ,

2 0 9 ,1 2 2 ,

1 3 6 , 1 9 2 ,

1 3 2 ,1 9 2 ,

1 5 2 , 2 4 ,

2 3 0 , 1 2 3 ,

1 5 3 , 1 9 2 ,

0 , 7 6 ,

8 2 , 6 5 ,

8 4 , 6 5 ,

1 3 9 ,1 9 3 ,

1 3 8 , 3 2 ,

3 2 , 1 5 0 ,

1 5 7 , 6 0 ,

3 2 , 1 7 1 ,

3 2 , 1 2 5 ,

3 , 1 4 5 ,

1 8 0 , 3 2 ,

2 5 , 1 4 4 ,

1 7 6 ,2 4 9 ,

3 2 , 1 2 5 ,1 7 4 , 3 2 ,

2 5 3 ,1 7 4 ,

2 4 7 ,1 7 4 ,

0 , 3 2 ,

9 9 , 1 3 2 ,

1 8 8 , 1 6 9 ,

1 9 3 , 3 2 ,

1 4 , 3 2 ,

1 2 6 , 1 8 9 ,

1 2 1 , 0 ,

2 0 2 , 1 6 ,

1 9 3 , 2 0 8 ,

7 1 , 1 7 6 ,

1 9 3 ,2 4 0 ,2 3 3 , 4 8 ,

9 1 , 1 7 6 ,

2 4 0 , 1 5 ,

1 9 3 , 2 4 ,

1 0 4 , 9 6 ,

1 6 9 , 0 ,

1 4 1 ,1 3 9 ,

1 7 3 ,1 6 2 ,

3 2 ,2 5 3 ,

1 7 4 , 1 6 2 ,

1 6 9 ,2 3 0 ,

1 2 , 1 8 8 ,

2 4 0 , 2 3 ,

1 3 9 , 1 9 3 ,

3 2 , 4 0 ,

1 8 8 , 3 2 ,

1 9 2 ,1 4 1

1 3 , 3 2

2 0 1 , 3 7

2 0 1 , 3 5

3 2 , 1 2 1

1 9 3 , 7 6

1 3 , 1 9 3

1 6 8 , 2 0 0

2 0 9 ,1 2 2

1 3 6 ,1 9 2

2 4 0 , 1 9

2 4 0 , 3 7

1 6 0 , 0

1 0 1 , 1 2 2

1 7 3 , 1 3 2

7 2 , 1 8 9

8 , 1 7 5

1 9 5 , 6 8

2 1 2 , 0

1 5 9 ,1 9 2

1 8 0 , 2 5 5

2 5 5 ,1 6 2

3 , 2 3 2

2 5 5 , 2 0 2

1 8 0 ,1 7 2

9 8 , 1 3 6

1 1 5 , 0

3 , 7 6

2 4 , 3 2

1 8 0 , 7 61 5 8 ,1 8 3

3 2 , 1 5 8

1 0 4 ,1 6 8

1 1 5 , 0

9 8 , 1 6 2

0 , 4 4

6 2 , 1 9 3

7 2 , 1 9 3

7 6 , 4 0

1 6 9 , 0

2 5 1 , 9 6

2 4 , 2 0 1

1 6 , 5 6

4 , 2 0 19 6 , 2 0 1

2 0 2 , 7 6

7 2 , 1 7 4

1 0 1 , 9 7

7 6 , 1 2 6

4 4 , 1 6 9

1 9 3 , 3 2

2 3 0 ,1 6 0

1 7 4 , 3 2

2 2 5 ,1 6 0

1 6 0 ,1 9 3

3 2 , 2 0 4

1 6 5 , 9 7

4 8 , 1 3

1 8 6 , 3 2

2 7 , 1 8 8

O f

B H

J K

D MG l

H MK J

C J

J G

I A

J N

M MG P

P D

M DP E

J C

O HC 3

N MN D

B D

K DD DD C

E J

D O

I L

P C

C NG E

M 0A K

G MB N

I D

M MA N

I D

D A

B P

J K

C GM AH P

M l

B H

J l

H J

I E

A GN J

H P

F J

M AO GI H

I J

E NP N

E l

c cI D

C A

J H| Q

S OH L

H B

I L

K B

E DF j

F C

B K

M EB J

G B

J J

E H

H L

N A

3 b

G A3 r

P F

- i f -

L NG AE F

0 0 0 ;

0 1 0j u n c t i o nw e d g e

0 2 0; b yf r a n ke . d i g i o i a

0 3 0 : 1 1 / 1 2 / 8 5

0 4 0 ;

0 5 0•

0 6 0 ;

0 7 0c h r g e t

1 0 8 0 c h r g o t

1 0 9 0i e v a l

1 1 0 0t y p e

1 1 1 0 ;

1 1 2 0i n i t

1 1 3 0

1 1 4 0

1 1 5 0

1 1 6 0

1 1 7 0

1 1 8 0 ;

1 1 9 0 f w e d g e

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 01 3 0 0

1 3 1 0

1 3 2 0

1 3 3 0

=

=

-

=

=

I d a

s t a

I d a

s t a

r t s

=

I d a

s t a

j s r

c m p

b e q

c m p

b e q

c m p

b e pc m p

b e p

c m p

b e q

S c O O O

$ 0 0 7 3

$ 0 0 7 9

$ 0 3 0 a

$ 0 d

# < f w e d g e

i e v a l

# > f w e d g e

i e v a l+ 1

,

# $ 0 0

t y p e

c h r g e t

# ■ $ '

j u m p

# ' % '

j u m p +3

* ' &

j u m p+ 6

| u m p+ 9

r rp a r s e r

1 3 4 0 ; n o t o n e o f o u r s

1 3 5 0

1 3 6 0

1 3 7 0 ;

1 3 8 0j u m p

1 3 9 0

1 4 0 0

1 4 1 0

1 4 2 0

1 4 3 0 ;

1 4 4 0p a r s e r

1 4 5 0

1 4 6 0

1 4 7 0

1 4 8 0

1 4 9 0 ;

1 5 0 0 p l o o p

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 0n e x t

1 5 9 0

1 6 0 0

1 6 1 0

1 6 2 0

1 6 3 0

1 6 4 0

1 6 5 0

1 6 6 0f i n d

1 6 7 0

1 6 8 0

1 6 9 0

1 7 0 0 ;

7 1 0 x 1

7 2 0

7 3 0

7 4 0

7 5 0 ;

7 6 0f o u n d

7 7 0

7 8 0

7 9 0

8 0 0

8 1 0

8 2 0

8 3 0

8 4 08 5 0

8 6 0

8 7 0

8 8 0

8 9 0

j s r

i m p

=

j m p

j m p

j m p

j m p

=

I d a

s t a

t a x

t a y

i n y

I d a

b e q

n x

c m p

b n sb e q

d e x

I d a

b o !

a r d

c m p

b e q

b n e

n x

I d a

b e q

b p l

i n x

i n c

I d y

j m p

=

i n y

t y a

c l c

a d c

s t a

i X C

i n c

I d a

a s l

t a x

I d a

p h a

c h r g o t

$ a e 8 d

.

h e x

b i n

x p l o t

e x p a n d

# $ 0 0

c o u n t

t a b l e . x

e r r o r

( $ 7 a ) , y

n e x t

p l o o p

t a b l e . x

f i n d

# $ 7 f

( $ 7 a ) . y

f o u n d

x 1

t a b l e . x

e r r o r

f i n d

c o u n t

# $ 0 0

p l o o p

,

$ 7 a

$ 7 a

. + 4

$ 7 b

c o u n t

a

a d r t a b+ 1

c o n v e n i e n ts t a r t

; g e tb y t eo f t e x t

; g e ts a m eb y t e

; e v a l u a t i o nv e c t o r

; t y p e f l a g

i n i t i a l i z er o u t i n e

; t h i si s t h ew e d g e

; f l a gf o rn u m e r i c

; s e tt y p ef l a g

; s e ew h a t w e ' v eg o !

; h e x c o n v e r s i o n p r i n !

; b i n a r yc o n v e r s i o n p r i n

; p l o t f u n c t i o n p r i n t

; t h e# c o m m a n d p r i n t

; u s e t h e p a r s e r p r i n t

; s e tf l a g sa g a i n

; u s eo r i g i n a lr o u t i n e

: j u m pt a b l ef o rf n s

; p a r s e& e x e c u t e

; c l e a ra l lr e g s

; a n dc o u n t e r

; i n c r t e x ti n d e x

; g e tt a b l eb y t e

; e n do f t a b l e

; i n c rt a b l ep o i n t e r

; c m p a r ew i t ht e x t

; f i n dn e x tw o r d

; m a t c h / k e e pl o o k i n g

; b u m p, x d o w no n c e

; e n do f t a b l ew o r d p r m t

; n o / f i n d e n d o fw o r d

; y e s / m a s kf l a g

; i si t a m a t c h p r i n t

; h o o r a y ! H

; g ob a c kf o rm o r e

; f i n de n do f w o r d

; l o o kf o rn e g a t i v e

; e n do f t a b l e

; k e e p l o o k i n g

; p o i n lt o n e x tw o r d

; w o r d# i n t a b l e

; r e s e tt e x ti n d e x

; s e a r c hs o m em o r e

e x e c u t i o nr o u t i n e

p o i n tt o n e x tb y t e

; u p d a t e t e x tp o i n t e r

; g e t o f f s e ti n t a b l e

; m u l t i p l yb y t w o

; u s ea s i n d e x

( h ib y t e a d r

: a sr e t u r na d rh i

J u l y 1 9 8 6 :V o l u m e7 , I s

Page 61: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 61/88

9 0 0

9 1 0

9 2 0

9 3 0 ;

9 4 0c o u n t

9 5 0e r r o r

9 6 0 ;

I d a

p h a

r l s

a d r t a b , >

. b y t e$ 0 0

i m p

9 7 0; d a t at a b l e s -

$ a f O 8

; l ob y t ea d r

; a sr e t u r na d r l o

; e x e c u t er o u t i n e

; s y n t a xe r r o r

- a d dy o u ro w n

9 8 0; r o u t i n en a m e sa n da d d r e s s e s

9 9 0; h e r e .b e s u r et o a d d$ 8 0t o

0 0 0; l a s tc h a r a c t e ro f n a m ea n d

0 1 0s u b t r a c t1 f r o mt h ea d d r e s s

0 2 0 ;

0 3 0t a b l e

0 4 0

0 5 0 ;

0 6 0 a d r t a b

0 7 0 ;0 8 0 ;

. b y t e

b y t e

' m o ' , $ c 4

' d i ' , $ d 6 ,

. w o r dm o d - 1 ,

, ' f r a ' , $ c 3

d s t a ' , $ d 4 , $ 0 0

r a c - 1 , d i v - 1 , d s t a t - 1

0 9 0f u n c t i o nc a l c u l a t i o nr o u t i n e s

1 0 0 ;

1 1 0 ; d s t a tf u n c t i o n

1 2 0 ;

1 3 0 a c p t r

1 4 0f a

1 5 0s a

1 6 0 w b u f

1 7 0t a l k

1 8 0 t k s a

1 9 0u n t a l k

2 0 0 ;

2 1 0d s t a t

2 2 0

2 3 0

2 4 0

5 0

2 6 0

7 0

8 0

9 0

0 0 ;

1 0 d l o o p

2 0

3 0

4 0

5 0

6 0

7 0

8 0 ;

9 00 0

1 0

2 0

3 0

4 0 ;

5 0 d l o o p 2

6 0

7 0

8 0

9 0

0 0

1 0 ;

2 0 ;

=

=

-

=

=

=

=

I d x

s t x

t x a

j s r

I d a

s t a

j s r

I d x

=

j s r

s t a

i n x

c m p

b n e

j s r

d e xt x a

s t a

j s r

I d y

=

I d a

s t a

d e y

b p l

i m p

$ f f a 5

$ b a

$ b 9

$ 0 3 3 c

S f f b 4

$ f f 9 6

S f f a b

# $ 0 8

f a

t a l k

# $ 6 f

s a

t k s a

# $ 0 0

a c p t r

w b u f . x

# $ 0 d

d l o o p

u n t a l k

l e n

$ b 4 7 d

l e n

w b u f , y

( $ 6 2 ) , y

d l o o p 2

$ b 4 c a

; g e tb y t e f r o ms e r i a lp o r t

; d e v i c en u m b e r

s e c o n d a r ya d d r e s s

; b u f f e rf o r s t r i n g

; t e l ld e v i c et o t a l k

; s e n d2 n da d rf o r t a l k

; f r e es e r i a lb u s

; d e v i c en u m b e r( d i s k )

; f i r s ta d d r e s s

; t e l ld r i v et o s p e a k

; c h a n n e l1 5 ( o r$ 6 0 )

s e c o n d a r ya d d r e s s

; s e n di t t o d r i v e

; r e a dc o m m a n dc h a n n e l

; g e tb y t ef r o md r i v e

; s t o r ec h a r a c t e r

; c a r r i a g e r e t u r n p r i n t

; f r e e s e r i a lp o r t

; f o r g e tt h e< c r >; p u tl e n g t hi n . a

; s a v ei t

; r e s e r v es p a c ef o rs t r i n g

; u s e l e n g t hf o ri n d e x

; c o p ys t r i n gf o rb a s i c

; g e tb y t eo f s t r i n g

; p u ti n s t r i n gm e m .

; b u m pp o i n t e rd o w n

; p u td s c r p t ro n s t a c k

3 0; @ ( r o w , c o l ) f u n c t i o n -p l o t

4 0; c u r s o ra n dr e t u r nn u l ls t r i n g

5 0 ;

6 0c h k l f t

7 0c h k r h t

8 0c h k c o m

9 0g e t b y t

0 0p l o t

1 0 ;

2 0x p l o t

3 0

4 0

5 0

6 0

7 0b a d

8 0 c h k y

9 0

0 0

1 0

2 0

3 0

4 0

5 0 ;

6 0 g e t p r m

7 0

8 0

9 0

0 0

1 0

=

=

=

=

M

j s r

j s r

c p x

b c c

j m p

c p y

b c s

c l c

j s r

I d a

j s r

j m p

=

j s r

j s r

s t x

j s r

j s r

$ a e f a

$ a e f 7

$ a e f d

$ b 7 9 e

S f f f O

c h r g e t

g e t p r m

# $ 1 9

c h k y

i i e g a l

# $ 2 8

b a d

p l o t

# $ 0 0

$ b 4 7 d

$ b 4 c a

c h k l f t

g e t b y t

l e n

c h k c o m

g e t b y t

; c h e c kl e f tp a r e n

; c h e c kr i g h tp a r e n

; c h e c ko n c o m m a; g e tb y t ei n t ox

; p l o t / f e t c hc u r s o r

; g e tn e x tb y t e

; g e tr o w / c o li n x / y

; r o wl e s st h a n2 5 p r i n t

; y e s / c h e c kc o l u m n

; n o / i l l e g a lq u a n t .

; c o ll e s st h a n 4 0 p r i n t

; n o / t r a s hi t .

l j u s tf o rl o o k s

; p l o tt h ec u r s o r

; s e tl e nt o z e r o

; r e s e r v es p a c e

; p u t d e s c r p t ro n s t a c k

; g e t ( a , b )i n t o . x / y

; c h e c ko p e np a r e n

; g e tf i r s tp a r m

; s a v ei t h e r e

; c h e c ko n c o m m a

; g e ts e c o n db y t e

F F

E A

E PC FI P

P C

M CC F

K M

E N

N GE N

C PB l

K D

O GJ O

B OL D

P E

J K

M EG F

O OB P

A EL L

I I

E J

G AM J

A OK L

N CH ME OD A

I J

G PE E

F E

N F

A OM l

O I

M D

E GC GP K

E GA DI H

v i F

L N

I P

A K

E P

D L

D CO DC N

D P

C GA J

E OG MH N

E A

M FH D

A L

I A

I G

F E

N GP E

C M

C PG l

G K

\ I H

N GM A

D A

N GM MG N

I N

H J

C P

C DE K

2 8 2 0

2 8 3 0

2 8 4 0

> 8 5 0

2 8 6 0

2 8 7 0

2 8 8 0

2 8 9 0l e n

2 9 0 0 ;

> 9 1 0 ;

t x a

p h a

j s r

p l a

t a y

I d x

r t s

c h k r h t

l e n

b y t e$ 0 0

? 9 2 0; t h e# ( l o , h i )c o m m a n d-

2 9 3 0; l o / h it o 1 6 b i tn u m b e r .

2 9 4 0 ;

2 9 5 0e x p a n d

2 9 6 0

? 9 7 0

E 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 ;

=

j s r

j s r

s t x

s t y

I d x

s e c

j m p

c h r g e t

g e t p r m

$ 6 3

$ 6 2

# $ 9 0

$ b c 4 9

; p u ti n . a

; k e e p i t s a f e

; c h e c kc l o s i n gp a r e n

r e t r i e v e2 n dp a r m

; p u t i n, y

r e t r i e v e1 s tp a r m

- c o n v e r t

; g e tn e x t b y t eo f t e x t

; g e tp a r m si n t ox / y

; l ob y t ei n $ 6 3

; h ib y t ei n $ 6 2

; s e te x p o n e n tt o 1 5

; d o n ' ti n v e r tm a n t i s s a

; c o n v e r tt o f a c

3 0 5 0; h e x / b i n a r yc o n v e r s i o nr o u t i n e—3 0 6 0; t h i sr o u t i n ec o n v e r t sa s c i i

3 0 7 0; h e xo r b i n a r yn u m b e r st o f l o a t i n g

3 0 8 0; p o m t

3 0 9 0 ;

1 0 0 a d d b y t

1 1 0i i e g a l

1 2 0 o f l o w

1 3 0 e x p

1 4 0 ;

1 5 0 h e x

1 6 0

1 7 0b i n

1 8 0

1 9 0

2 0 0 ;

2 1 0l o o p

2 2 0

2 3 0

2 4 0

2 5 0

2 6 0

2 7 0 ;

2 8 0q u i t

2 9 0

3 0 0 c d o n e

3 1 0 ;

m

=

=

=

I d a

$ b d 7 e

$ b 2 4 8

$ b 9 7 e

$ 6 1

# $ 0 0

, b y t e $ 2 c

I d a

s t a

j s r

j s r

b e q

j s r

j s r

j s r

i m p

p l a

p l a

j m p

# $ 0 1

f l a g

z e r o

c h r g e l

c d o n e

c o n v r t

i n c e x p

a d d b y t

l o o p

c h r g o t

3 2 0; h e x / b i ns u b r o u t i n e s

3 3 0 ;

3 4 0z e r o

3 5 0

3 6 0

3 7 0 ;

3 8 0z i l c h

3 9 0

4 0 0

4 1 0

4 2 0 ;

4 3 0c o n v r t

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 0d i g i t

5 4 0

5 5 0

5 6 0

5 7 0o k a y

5 8 0

5 9 0

6 0 0 ;

6 1 0 c h k e r r

6 2 0

6 3 0

6 4 0

6 5 0

6 6 0e r r 2

6 7 0 ;

6 8 0 ;

6 9 0i n c e x p

7 0 0

7 1 0

7 2 0

7 3 0

=

I d a

I d x

s t a

d e x

b p i

r t s

=

b c c

I d x

b n e

c m p

b c c

c m p

b c s

s e c

s b c

I d x

b e q

c m p

b c s

s e c

s b c

r t s

=

c m p

b c c

c m p

b c s

i m p

=

I d x

b e q

p h a

I d x

«

# $ 0 0

# $ 0 5

e x p . x

z i l c h

d i g i t

f l a g

c h k e r r

# ' a '

q u i t

# ' g '

c h K e r r

# $ 0 7

f l a g

o k a y

# ' 2 '

e r r 2

# $ 3 0

# $ 4 1

q u i t

# $ 5 b

q u i t

i i e g a l

e x p

e x i t

f l a g

; a d d. a t o f a c

; i l l e g a lq u a n t i t y

; o v e r f l o we r r o r

; e x p o n e n to f f a c

; f l a gf o rh e x

; s k i pn e x ti n s t r .

; f l a gf o rb i n a r y

; s a v ef l a g

; s e tf a ct o z e r o

; g e tn e x tc h a r .

; e n do f s t a t e m e n t

; c o n v e r t f r o ma s c i i

; i n c r .f a ce x p o n e n t

; a d dt h e b y t et o f a c

; p u l lr e t u r n a d r .

; s e tf l a g s& r t s

; s e tf a ct o z e r o

; h e r e ' st h e z e r o

; 5 b y t e s+ s i g n

; z e r oo u t b y t e

; b u m pi n d e xd o w n

; c o u n t e rr o l lo v e r p r i n t

; a s c i id i g i tt o t r u ev a l u e

; c h r g e tf l a g / d i gi t p r i n t

; h e x o rb i n a r y p r i n t

; b i n a r yn o n - d i g i t

; c h e c kl o w e rl i m i t

; l e s s t h a n' a '

; c h e c ku p p e rl i m i t

; b i g g e r t h a nf

; a c c o u n tf o re x t r a 7

; h e xo r b i n a r y p r i n t

; h e x / a n yd i g i ti s f i n e

; b i n / c h e c ku p p e rl i m i t

; b i g g e r t h a n1

; c o n v e r tt o t r u ev a l u e

; c h e c ki l l e g a lq u a n t .

; c o m p a r ew i t h' a

; l e s s t h a n ' a '

; c o mp a r ew i t h' [ '

; g r e a t e rt h a n' z '

; i l l e g a lq u a n t i t y

; i n c r e m e n te x p o n e n t

; g e te x p o n e n t

; f a c= 0 , d o n ' ti n c r .

; s a v e b y t ei n a

; u s ef l a g f o r o f f s e t

E H

M B

A GC LM OO J

O MI F

C PJ E

L H

A l

K lC OB l

I L

L E

M L

G LL N

E N

L A

C l

M l

C MM A

F CM M

K CE D

O ND D

N B

E L

G H

L D

C l

E K

J O

I J

N D

B B

G L

K H

B GP D

D D

J G

E C

O CN K

A B

D OE F

J B

I D

A E

G J

D H

O LC L

E H

I E

P I

C J

L E

M PA L

J J

K J

O MB A

J O

M OF K

O EK A

B B

A NP J

G J

B OG EM PA N

E GK A

P C

C l

C P

3 7 4 0

3 7 5 0

3 7 6 0

3 7 7 0

3 7 8 0

3 7 9 0

3 8 0 0e x i t

3 8 1 0 ;

3 8 2 0e r r 1

3 8 3 0i n c r

3 8 4 0f l a g

3 8 5 0 ;

3 8 6 0 ;

I d a

c l c

a d c

b c s

s t a

p l a

r t s

j m p

i n c r . x

e x p

e r r 1

e x p

o f l o w

. b y t e $ 0 4 , $ 0 1

. b y t e$ 0 0

3 8 7 0; d i v / m o d / f r a c

; g e ti n c ri n a

; a d de x pt o i n c r .

; o v e r f l o we r r o r

; u p d a t ee x p o n e n t

r e t r i e v e b y t et o . a

— t h e s er o u t i n e s r e s p e c t i v e l y

3 8 8 0; r e t u r nt h e i n t e g e r - q u o t i e n t ,

3 8 9 0; i n t e g e r - r e m a i n d e r ,o r f r a c t i o n a l

3 9 0 0; p a r to f t h eq u o t i e n ta / b .

3 9 1 0 ;

3 9 2 0 e x p

3 9 3 0f a c a r g

3 9 4 0f a c m e m

3 9 5 0m d i v

3 9 6 0s u b t r t

3 9 7 0 m m u l t

3 9 8 0f a c i n t

3 9 9 0r o u n d

4 0 0 0a d d 5

4 0 1 0 f r m n u m

4 0 2 0 ;

4 0 3 0 ;

4 0 4 0d i v

4 0 5 0

4 0 6 0

0 7 0m o d4 0 8 0

0 9 0

1 0 0 f r a c

1 1 0

1 2 0

1 3 0 ;

=

=

=

=

=

=

=

_

_

I d a

$ 6 1

$ b c 0 c

$ b b d 4

$ b b O f

$ b 8 5 3

$ b a 2 8

$ b c c c

$ b d b$ b 8 4 9

$ a d 8 a

t

# $ 0 0

. b y t e $ 2 c=

I d a

*

# $ 0 1

. b y t e $ 2 cm

I d a

s t a

1 4 0; g e tf i r s tp a r m

1 5 0; p a r mi n a r q .

1 6 0 ;

1 7 0

1 8 0

1 9 0

2 0 0

2 1 0

2 2 0

2 3 02 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 ;

j s r

j s r

I d x

I d y

j s r

j s r

j s r

j s r

I d x

I d y

j s r

I d a

I d y

j s r

j s r

j s r

# $ f f

f l a g

; a d ro f e x po f f a c

; c o p yf a ct o a r g

; s t o r e f a ca t a d ri n ( x / y )

; d i v i d e f a cb ym e ms u b t r a c tf a cf r o ma r g

; m u l t f a c b y m e m ( a / y

; c o n v e r tf a ct o i n t e g e r

; r o u n dt h ef a c

; a d d. 5 t of a c

; g e tn u m e r i cp a r mi n t of a c

; e n t r yf o rd i v

; f l a gf o rd i v

; s k i pn e x ti n s t r

; e n t r yf o rm o d

; f l a g f o rm o d

; s k i pn e x ti n s t r

; e n t r yf o rf r a c

; f l a gf o rf r a c

; s e tt h ef l a g

i n f a ca n d 2 n d

c h k l f t

f r m n u m

# < t e m p

# > t e m p

f a c m e m

c h k c o m

f r m n u mc h k r h t

# < m o d l u s

# > m o d l u s

f a c m e m

# < t e m p

# > t e m p

m d i v

f a c a r g

f a c i n t

3 6 0; c h e c kf l a g ,i f d i vf u n c t i o n

3 7 0; t h e nd o n e ,e l s ec o n t i n u e

3 8 0 ;

3 9 0

4 0 0

4 1 0 ;

4 2 0

4 3 0

4 4 0 ;

I d a

b e q

I d a

j s r

f l a g

d o n e

e x p

s u b t r t

4 5 0; c h e c kf l a g ,i f f r a c f u n c t i o r

4 6 0; t h e nd o n e ,e l s ec o n t i n u e

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 0d o n e

5 8 0

5 9 0 ;

6 0 0 m o d l u s

6 1 0t e m p

6 2 0 ;

6 3 0. e n d

I d a

b m i

I d a

I d y

j s r

j s r

j s r

j s r

r t s

. = .

f l a g

d o n e

# < m o d l u s

# > m o d l u s

m m u l t

a d d 5

f a c i n t

r o u n d

+ 5

+ 5

; o p e np a r e n p r i n t

; g e tf i r s tv a l u e

; l ob y t eo f a d d r e s s

; h ib y t eo f a d d r e s s

p l a c ei n t e m p

; c o m m a p r i n t

; g e t 2 n dp a r m; d o s i n gp a r e n p r i n t

; g e ta d ro f m o d l u s

; i n . x / . y

; s t o r ef a ca t m o d l u s

; a d r o f1 s tp a r m( t o )

; a d r o f1 s tp a r m( h i )

: f a c= t e m p / f a c

; a r g= f a c

; f a c= i n t ( f a c )

; m u s th a v e e x pi n . a

; f a c= a r g- f a c

i

; g e ta d d r e s so f t h e

; m o d u l u s i n, a / . y

; f a c= f a c• m o d l u s

; a d d. 5 f o rr o u n d o f f

; t r u n c a t eg a r b a g e

; r o u n dt h e f a c

eT r a n s a c t o r 5 7 J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 62: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 62/88

C o m m a n dW e d g e

M o d i f y i n gB A S I C sC o m m a n d s

E v e r y o n e h a st h e i ro w ni d e a so n h o wt h eB A S I Ci n t e r p r e t e rs h o u l d

c a r r y o u tc e r t a i nc o m m a n d s .W e ' v ea l lc a u g h to u r s e l v e st h i n k i n g ," I fI

h a dw r i t t e nt h i s i n t e r p r e t e r ,I w o u l dh a v ed o n et h u sa n ds o .. . " . T h e

f a c to ft h em a t t e ri s t h a tw h o e v e rD I Dw r i t e t h eB A S I Ci n t e r p r e t e rd i d n' t

w r i t ei tj u s t f o ry o ua n dm e .T h e yd e s i g n e dt h e i n t e r p r e t e r a n t i c i p a t i n g

w h a tt h en e e d so ft h eA V E R A G Eu s e rw o u l db e .U n f o r t u n a t e l y ,i t w a s

w r i t t e ns o m ey e a r sb a c k ,w h e nt h e ye x p e c t e dt h ea v e r a g eu s e rt o o w n

a t a p ed r i v ea n dn o t b ea p a r t i c u l a r l ys o p h i s t i c a t e dp r o g r a m m e r .

W e l l ,t i m e sh a v ec h a n g e d ,a n dt h u si t s e e m so n l yf i t t i n gt h a ti n t h i s

i s s u e ,w h i c hi s d e d i c a t e dt o t h eR O Mr o u t i n e s ,w es h o u l dd i s c u s sh o w

t o m o d i f yt h e e x i s t i n gB A S I Cc o m m a n d si n o r d e rt o c r e a t ea v e r s i o n o f

B A S I Cw h i c hi s p e r f e c t l yc u s t o m i z e dt o O U Rn e e d st o d a y .

I n t h ep r e v i o u sa r t i c l ew ee x p l o r e da n e ww e d g ew h i c h a l l o w e du s t o

e a s i l ya d df u n c t i o n st o B A S I C .T h ev e c t o rt h a tw eu s e df o r t h a tw e d g e

i s n a m e dI E V A La n di s l o c a t e da t S 0 3 0 A / S 0 3 0 B .I n t h i s i s s u e ,w ew i l l

b e u s i n g I E V A L ' st w i ns i s t e r ,I G O N El o c a t e da t $ 0 3 0 8 / 5 0 3 0 9 .T h e s e

t w o v e c t o r sa r e a l m o s ti d e n t i c a li n p u r p o s e ,t h e o n l yd i f f e r e n c e

b e t w e e nt h e mb e i n gt h a tI E V A Li s u s e df o re v a l u a t i o no f f u n c t i o n s ,

a n dI G O N Ei s u s e dt o e x e c u t ec o m m a n d s .T h e r e f o r e ,b e f o r ew e g o

a n yf u r t h e r ,p l e a s e n o t et h a ta l lo ft h em a t e r i a lf r o ml a s ti s s u e ' sa r t i c l e

o n a d d i n gf u n c t i o n st h r o u g ht h e v e c t o rI E V A Lc a n b e a p p l i e dt o

a d d i n gc o m m a n d st h r o u g ht h ev e c t o rI G O N E .T h ec o n v e r s ei s t r u ea s

w e l t :E v e r y t h i n gt h a tw e d o i n t h i sa r t i c l et o m o d i f ye x i s t i n gB A S I C

c o m m a n d s ,t h r o u g ht h e u s eo f I G O N E ,c a nb e d i r e c t l ya p p l i e dt o

m o d i f y i n ge x i s t i n gB A S I Cf u n c t i o n st h r o u g ht h e v e c t o rI E V A LN o w

t h a tw e ' v eg o tt h a ts t r a i g h t ,l e tu s b e g i no u re x a m p l e .

I m p l e m e n t i n gA C o m m a n dW e d g e

W h i l em o d i f y i n gt h eb u i l t - i nc o m m a n d so f t h eB A S I Ci n t e r p r e t e rm a y

s o u n dl i k eq u i t ea j o b ,l e t m e a s s u r ey o ut h a ti t i s r e a l l yq u i t ee a s yt o

d o .W h e n e v e rB A S I Cw a n t st o e x e c u t ea c o m m a n d ,i t J M P st h r o u g h

t h e v e c t o rn a m e dI G O N Ea t $ 3 0 8 / $ 3 0 9 .T h ee x e c u t i o nr o u t i n ec a l l s

C H R G E Tt o g e tt h et o k e no f t h ec o m m a n di n t ot h ea c c u m u l a t o r .B i t7

o f t h i st o k e ni s t h e nm a s k e do f fa n dt h er e s u l t i n gv a l u ei s m u l t i p l i e d

b y t w o .T h i sr e s u l ti s t h eo f f s e ti n t ot h ea d d r e s st a b l ef o rt h ea d d r e s s

( m i n u s1 ) o f t h e r o u t i n et o e x e c u t e .T h i s a d d r e s si s t h e np l a c e do n t h e

s t a c ka n da J M Pi s m a d et o C H R G E Tt o g e tt h en e x tb y t eo f t e x t .T h e

R T Si n C H R G E Tc a u s e st h eP C t o b e l o a d e dw i t ht h ea d d r e s so f t h e

r o u t i n et o e x e c u t es i n c et h i sa d d r e s sw a sj u s tp l a c e do n t h e s t a c k .

( N o t e :T h i sm e t h o di s a l m o s te x a c t l y t h es a m ea s t h eo n eI u s e di n t h e

p a r s e rf o r o u rf u n c t i o nw e d g ei n t h e l a s ti s s u e . )A r m e dw i t ht h i s

k n o w l e d g e ,w e c a ne a s i l yw e d g ei n t ot h ee x e c u t i o nr o u t i n e ,g e tt h e

c o m m a n dt o k e na n dd e c i d ei f i ti s o n eo f t h eo n e st h a tw e w i s ht o

m o d i f y .I f i t i s , t h e nw e w i l lp l a c et h ea d d r e s so f O U Rr o u t i n eo n t h e

s t a c k ,t h u se x e c u t i n gt h en e wr o u t i n e i n s t e a do f t h eo l do n e .I f i ti s n o t

o n et h a tw e w i s ht o c h a n g e ,w e w i l lg i v et h et o k e nb a c kt o B A S I Cf o r

f u r t h e rp r o c e s s i n g .

A n E x a m p l eW e d g e

A s a n e x a m p l eo f t h i st e c h n i q u e ,1 h a v ew r i t t e na w e d g ew h i c h

c h a n g e st h e a c t i o no f s e v e r a lo f t h e m o s tc o m m o n l yu s e dB A S I C

B yF r a n kE . D i G i o

A t h e n s ,G e o r g

c o m m a n d s .T h es o u r c ec o d ei s p r o v i d e da n ds h o u l db e s t u d i e di n

o r d e rt o g a i n af u l lu n d e r s t a n d i n go f t h et e c h n i q u e .E v e ni f y o u h a v

n o i n t e r e s t i nl e a r n i n gt h et e c h n i q u e sd e s c r i b e dh e r e ,y o us h o u l df i n d

t h i se x a m p l ec o m m a n dw e d g em o s tu s e f u li n y o u ro w np r o g r a

d e v e l o p e m e n t .

L i s t i n g1 c o n t a i n s aB A S I Cl o a d e rf o rt h ew e d g e .L i s t i n g 2i s t h es o u r c

c o d e .L i s t i n g3 i s a n e x a m p l e p r o g r a m w h i c hi l l u s t r a t e st h e u s eo f

s o m eo f t h em o d i f i e dc o m m a n d s .T h i ss h o r tp r o g r a mm a yg i v ey o u

i d e a sf o ry o u ro w na p p l i c a t i o n si n a d d i t i o nt o a l l o w i n gy o ut o t e s ty o u r

c o p yo f t h ew e d g e .

T h ec o m m a n d st h a tw ew i l lm o d i f ya r e :

R E S T O R E

L I S T

I F / T H E N

G O S U B

L O A D

I N P U T

G O T O

S A V E

N E W

W A I T

V E R I F Y

I n a d d i t i o n ,w e w i l lm a k et h ea p o s t r o p h e( ' ) a c t l i k et h eR E Mc o m

m a n da n dt h e E n g l i s hp o u n ds i g na c t l i k ea n E L S Es t a t e m e n t .I t i s

n o t e w o r t h yt h a te a c hm o d i f i e dc o m m a n dw i l lw o r ke x a c t l yl i k et h e

o r i g i n a lc o m m a n dw h e nt h eo r i g i n a ls y n t a xi s u s e d .T h i sf e a t u r ei s

v e r y i m p o r t a n ti n m a i n t a i n i n gc o m p a t i b i l i t yw i t ho l d e rp r o g r a m

W h a tf o l l o w si s a d e s c r i p t i o no f t h e m o d i f i e dc o m m a n d sw i t ha n

e x a m p l eo f e a c ho n e .

T h eT r a n s a c t o r 5 8 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 63: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 63/88

1 )T h ef i r s tc h a n g ei n o u rm o d i f i e dB A S I Ci s t h a tt h ea p o s t r o p h ei s

n o wt r e a t e da s a R E Ms t a t e m e n t .T h i sp r o v i d e sm u c hn e a t e r

l o o k i n gl i s t i n g s .

E x . 1 0 ' t h i si s a c o m m e n t

2 )T h eR E S T O R Ec o m m a n do r i g i n a l l ya c c e p t e dn o p a r a m e t e r sa n d

w a su s e dt o s e tt h e d a t a p o i n t e r sb a c kt o t h e b e g i n n i n go f t h e

p r o g r a m .H o w e v e r ,t h e r ew a sn o m e a n sp r o v i d e dt o a c c e s sa

p a r t i c u l a re l e m e n to f d a t aw h e nn e e d e d .T h eN E WR E S T O R Ec o m m a n dp r o v i d e sT R U ER A N D O MA C C E S St o y o u rd a t as t a t e

m e n t s .I t t a k e sf r o mz e r ot o t w op a r a m e t e r s .I f n op a r m sa r eg i v e n ,

t h eo r i g i n a lR E S T O R Ei s u s e d .

E x . 1 0 r e a d , a , b , c : d a t a 2 , 4 , 6 , 8 , 1 0

2 0 d a t a" P A M " , "P A U L " , "K E L L Y "

3 0 r e s t o r e 2 0 :r e a da $

4 0 r e s t o r e1 0 , 4 : r e a dx

T h eR E S T O R Ec o m m a n di n l i n e3 0 s e t st h e d a t a p o i n t e rt o l i n e2 0

a n dA $ w i l lb e a s s i g n e d t h ev a l u e" P A M " .I n l i n e4 0 , t h e R E

S T O R E c o m m a n ds e t st h ed a t a p o i n t e rt o t h e 4 t h d a t ae l e m e n to f

l i n e 1 0 ,s o X w i l lb e a s s i g n e d t h ev a l u e8 . A t t e m p t i n gt o R E S T O R E

t o a l i n e * o rd a t ae l e m e n tt h a td o e s n ' te x i s t w i l l r e s u l t i na n

i n f o r m a t i v ee r r o r .( T r yt h i sw i t h t h ee x a m p l ep r o g r a mi n l i s t i n g3 )

3 )T h en e wG O T Oa n dG O S U Bc o m m a n d sa l l o w v a r i a b l ee x p r e s s i o n s

a s a r g u m e n t s .

E x . 1 0 i f x > 0t h e n g o t ox *1 0

2 0 d r a w= 1 0 0 0 :p a i n t= 2 0 0 0

3 0 g o s u bd r a w : g o s u bp a i n t

4 )T h en e wW A I Tc o m m a n dd o e se x a c t l yw h a tt h en a m ei m p l i e s .I t

s i m p l yw a i t su n t i la k e yi s p r e s s e d .T h i sc o m m a n di s i n c r e d i b l y

h a n d y a n da s a n a d d e db o n u s ,o n c ea k e yi s p r e s s e d , t h en e w

W A I Tc o m m a n dl e a v e s t h eA S C I Iv a l u eo f t h ek e ya t l o c a t i o n2 .

E x 1 0 p r i n t "T o u c h a n yk e yt o c o n t i n u e "

2 0 w a i t : p r i n t "a s c i iv a l u e" ; p e e k ( 2 )

5 )T h en e w I N P U Tc o m m a n di s c a l l e dI N P U T Sa n d ,a s t h e n a m e

i m p l i e s ,i s u s e dt o i n p u ts t r i n g v a r i a b l e s .W h a ts e t st h i sc o m m a n d

a p a r tf r o mt h eO L DI N P U Ti s t h ef a c tt h a tI N P U T Sw i l la c c e p ta n y

c h a r a c t e r i n c l u d i n gq u o t e s ,c o l o n sa n dc o m m a sw i t hn o p r o b l e m s .

T h i sc a p a b i l i t yi s e x t r e m e l y i m p o r t a n ti n w r i t i n ga n yk i n do f d a t a

p r o c e s s i n gp r o g r a m .( H o wm a n yp u b l i cd o m a i nd a t a b a s ea n d

m a i l e rp r o g r a m s h a v e y o us e e nt h a tc r a s hi f y o ut r y t o i n c l u d ea

c o m m ao r c o l o ni n a n e n t r y ? )

E x . 1 0 p r i n t" e n t e r d a t A :" ; : i n p u t $ a $

6 ) T h em a i np o i n to f t h e n e wI F c o m m a n di s t h e f a c tt h a ti t i s

c o m p a t i b l ew i t ht h em o d i f i e dc o m m a n d sp r e s e n t e dh e r e .S i n c eI

h a dt o w r i t et h i sr o u t i n ea n y w a y ,I w e n t a h e a da n da d d e dt h e

c a p a b i l i t yt o e x e c u t ea n E L S Ec l a u s ei n t h ee v e n tt h a tt h ee x p r e s

s i o n e v a l u a t e st o f a l s e .R a t h e rt h a nu s i n g t h ew o r dE L S E ,h o w

e v e r ,t h e E n g l i s hp o u n ds i g n ( n e x tt o C L E A R / H O M E )i s u s e da s a

' t o k e n 'f o r t h ew o r dE L S E .B e s u r et o p l a c e ac o l o nb e f o r e t h e

p o u n ds i g n . I nt h e e x a m p l eb e l o w ,< L >r e p r e s e n t st h ee n g l i s h

p o u n d ss i g n .

E x . i f x > 1 0t h e np r i n t "g r e a t e r " : < L > p r i n t "l e s st h a n "

( 7 )T h en e wL I S Tc o m m a n di s e x a c t l yl i k et h eo l d ,e x c e p tt h a ti t c a n b e

u s e di n a p r o g r a m .T h eo l dl i s t ,y o uw i l lr e c a l l ,a l w a y sr e t u r n st o

d i r e c tm o d e w h e nf i n i s h e d .T h en e wL I S Tc o m m a n di s i n v o k e d b y

a d d i n g a n e x c l a m a t i o np o i n ta f t e rt h e w o r dL I S T .I n o r d e rt o

p r e s e r v e t h ei n t e g r i t y o ft h es t a c k ,t h eS T O Pk e yi s n o th o n o r e db y

t h en e wL I S Tc o m m a n d .

E x . o p e n 4 , 4 : c m d 4 : l i s t ! : p r i n t # 4 : c l o s e

Y o uc o u l du s ea F O R / N E X Tl o o pt o l i s tm u l t i p l e c o p i e so f y o u r

p r o g r a m( t o g i v et o t h e m e m b e r so f y o u ru s e r ' sg r o u p ,e t c . ) .

A n o t h e rw a yt o u s e t h i sn e wc a p a b i l i t yw o u l db e i n w r i t i n ga

p r o g r a m m i n gt u t o r i a l .Y o uc o u l dl i s t t h e l i n e sb e f o r ee x e c u t i n g

t h e m .F o re x a m p l e :

1 0 p r i n t "t h i sc o d em o v e st h es p r i t e "

2 0 l i s t !1 0 0 0 - 1 0 3 0 : w a i t : g o s u b 1 0 0 0

( 8 )L O A D / S A V E / V E R I F Y— A r a d i c a lc h a n g ef o r t h e s et h r e ec o m

m a n d s !N o to n l yd o y o u n ol o n g e rn e e dt o s p e c i f yt h e d e v i c e

n u m b e r , y o ud o n ' te v e n n e e dt o s p e c i f ya n a m e ! S u p p o s e y

L O A D" S T A T 1a n da f t e rm o d i f y i n gt h ep r o g r a m ,y o u w a n tt o s a v e

t h eu p d a t e dc o p y .J u s tt y p eS A V E( w i t hn o n a m e )a n dt h ep r o g r a m

w i l la u t o m a t i c a l l yb e r e p l a c e df o ry o u . B u tt h i si s n o ta s i m p l e

s c r a t c h& s a v e .T h en e w S A V Ef i r s tb a c k su p t h e o l df i l ea n dT H E N

r e p l a c e si t . T h eb a c k u pf i l e n a m ew i l lb e t h ef i r s tt w ol e t t e r so f t h e

o r i g i n a lf i l e n a m ef o l l o w e db y t h es u f f i x" . B A K " .

E x .S u p p o s ew e l o a dS T A T 1 ,t h e nw e m o d i f yi t a n dt y p eS A V E .I t

w i l lc r e a t ea f i l en a m e dS T . B A Kw h i c hi s t h eO L DS T A T 1a n dt h e n

i t w i l lr e p l a c e t h e o l dS T A T 1w i t ht h en e w ,u p d a t e dc o p y .T h e r e

f o r e ,y o uc a ns a f e l ya n dc o n f i d e n t l y t y p eS A V Ew h e ny o uf i n i s h

m o d i f y i n ga p r o g r a mk n o w i n gt h a t ab a c k u pw i l lb e m a d ei n c a s e

t h e m o d i f i c a t i o n sa r ew r o n g .T h ep r o g r a mc a n t h e n b ev e r i f i e db y

j u s tt y p i n gt h ew o r dV E R I F Y .( N o t e :O n l y o n eq u o t ei s r e q u i r e d

w h e na f i l e n a m ei s u s e dw i t ha n yo f t h e s ec o m m a n d s )

E x .( A l lo f t h e s ea r el e g a l )

l o a d " $

l o a d "s t a t

l o a d " s t a t "

l o a d" s t a t" , 8 , 1

s a v e : R E Ms a v e& r e p l a c e

s a v e "n a m e ": r e ms a v e( n or e p l a c e )

e t c .

I f y o ut y p eL O A D ,S A V E ,o r V E R I F Yw i t hn o f i l e n a m ea n d n on a m e

h a sy e tb e e nd e f i n e d ,y o u ' l lg e ta ' M I S S I N GN A M E 'e r r o r( U n l e s sy o u

h a v eE p y xF A S T L O A Di n p l a c e— i t d e f a u l t st o a f i l e n a m eo f M o r

s o m e t h i n go n L O A D ) .N o t e :O n c ea n a m ei s d e f i n e db y u s i n gi t i n

e i t h e rL O A D , S A V Eo r V E R I F Y ,t h i sn a m ew i l lb e t h ed e f a u l tf o ra l l

t h r e ec o m m a n d su n t i la n e wo n ei s d e f i n e d .W h i l eL O A D& V E R I F Y

d o n ' tm i n da f i l e n a m ew i t ha * i n i t , S A V Ei s u n a b l et o b a c k u ps u c ha

f i l ea n dw i l la b o r t .

A l s on o t e :A p r o g r a mc a n b eL O A D E Da n dR U Nb y d e p r e s s i n gt h e

S H I F T E DR U N / S T O Pk e y .

( 9 )T h eN E Wc o m m a n dh a sb e e nm o d i f i e ds o t h a ti t c l e a r st h ed e f a u l t

n a m e w h e ny o ut y p eN E Ws o t h a ty o ud o n ' ta c c i d e n t a l l yt r yt o s a v ea ne m p t yw o r k s p a c e .

h eT r a n s a c t o r 5 9 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO 1

Page 64: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 64/88

F i n a lN o t e s

T h ea b o v ei s j u s ta g l i m p s eo f w h a ty o uc a nd o w i t ht h ev e c t o rI G O N E .

I n a d d i t i o nt o j u s tm o d i f y i n gc o m m a n d s ,t h i sv e c t o ri s o n eo f t h eb e s t

p l a c e st o A D Dc o m m a n d st o B A S I C .D o n ' tf o r g e t ,y o u c a n a d d

C O M M A N D St h r o u g ht h i sv e c t o r u s i n g e x a c t l y t h es a m et e c h n i q u e

t h a tw e u s e dt o a d dF U N C T I O N St o B A S I Ct h r o u g hI E V A Li n t h el a s t

i s s u e .( L i k e w i s e ,y o uc a nm o d i f ye x i s t i n gB A S I Cf u n c t i o n st h r o u g ht h e

v e c t o rI E V A Lj u s ta s w e m o d i f i e de x i s t i n gB A S I Cc o m m a n d st h r o u g h

t h e v e c t o rI G O N Ei n t h i s i s s u e . )

U pu n t i ln o w ,w eh a v e b e e n e x a m i n i n gw e d g e sw h i c hm a k eo u rl i v e s

a s p r o g r a m m e r sa b i t e a s i e r . I nm y n e x ta r t i c l e ,w e w i l le x a m i n ea

v e r yu s e f u l ,t h o u g hs o m e w h a tu n u s u a l ,s p e c i a lp u r p o s ew e d g ew h i c h

m a k e sm a k e sU S I N Ga p r o g r a me a s i e r .U n t i lt h e n ,1 w i l ll e a v ey o u

w i t ht h ef o l l o w i n gs i m p l ep r o j e c t s :

( 1 )A d da c o m m a n do r a f u n c t i o n ( y o u r c h o i c e )c a l l e d! N A M Ew h i c h

e i t h e r p r i n t so r r e t u r n s t h en a m eo f t h ef i l ec u r r e n t l yi n m e m o r y .

U s et h ea r t i c l ef r o ml a s ti s s u e a s a g u i d e .

( 2 )A d da c o m m a n dc a l l e d! S E N Dw h i c hw i l ls e n da n yc o m m a n dt o

t h e d i s kd r i v e .F o re x a m p l e! S E N D " S O : D A T A "w i l ls c r a t c h t h ef i l e

n a m e dD A T A .

( 3 )M o d i f yt h eL I S Tc o m m a n ds o t h a ti f y o ut y p eL l S T * ni t w i l ld o a

l i s t i n gt o t h ep r e v i o u s l yo p e n e df i l en u m b e rn . F o re x a m p l e :

O P E N1 , 8 , 1 , "P R O G . L ": L I S T # 1: C L O S E 1

H i n t s :

( 1 )Y o uc a nd o t h i sw i t h o u t ah i n t .

( 2 )S e el a s ti s s u eh o wt o i n s t a l ln e w c o m m a n d st h e nj u s ts t o r et h eD O S

c o m m a n ds t r i n gi n a p l a c en a m e dC M Da n dc a l lS E N D( s e el i s t i n g

2 ) a s a s u b r o u t i n e .

( 3 )T h i sc o d ea t t h eb e g i n n i n go f t h e r o u t i n es h o u l dd o i t f o ry o u :

c m p# ' # '

b n e w h e r e v e r

j s r $ b 7 9 b

j s r $ f f c 9

e t c .. .

; n u m b e rs i g n ?

; n o / d ow h a t e v e r

; g e tf i l e #i n . x

; s e to u t p u td e v i c e

; s a m e a s l i s t !

A s w a st h ec a s ew i t ho u rf u n c t i o nw e d g e ,t h i sw e d g ei s i m m u n e

t o R U N / S T O P - R E S T O R Ea n d i s c o m p a t i b l ew i t hm o s tu t i l i t i e s

i n c l u d i n gt h eD O SW e d g e ,t h e F u n c t i o nW e d g ea n d E p y xF a s -

t l o a dC a r t r i d g e .

C o m m a n dW e d g eB A S I CL o a d e r

F K

M K

E M

L N

C A

K D

N G

P N

K K

I K

E G

I K

A K

I P

N L

1 0 0

1 0 1

1 0 2

1 0 3

1 0 4

1 0 5

1 0 6

1 0 7

1 0 8

1 0 9

1 1 0

1 1 1

1 1 2

1 1 3

1 1 4

r e mb a s i c l o a d e rf o rc o m m a n dw e d g e

r e mb y f r a n ke . d i g i o i a1 2 / 1 8 / 8 5

r e ms y s4 9 6 6 4t o a c t i v a t e

f o ra d r= 4 9 6 6 4t o 5 0 3 5 6 : r e a dm l

c s = c s + m l : p o k ea d r , m l : n e x t

i f c s < > 8 5 4 6 5 t h e n p r i n t "e r r o ri n d a t a "

d a t a1 6 9 , 1 1 , 1 4 1 ,8 , 3 , 1 6 9 , 1 9 4 , 1 4 1

d a t a 9 , 3 , 9 6 , 3 2 , 1 1 5 ,0 , 3 2 , 2 3

d a t a1 9 4 , 7 6 , 1 7 4 , 1 6 7 ,7 6 , 5 9 , 1 6 9 , 2 0 1

d a t a 3 9 ,2 4 0 ,2 4 9 , 2 0 1 ,9 2 ,2 4 0 , 2 4 5 ,1 7 0d a t a 1 6 , 3 2 , 1 6 2 ,0 , 1 4 1 ,7 2 , 1 9 4 , 1 8 9

d a t a 7 3 ,1 9 4 ,2 4 0 , 2 2 ,2 0 5 , 7 2 ,1 9 4 ,2 4 0

d a t a 3 , 2 3 2 , 2 0 8 , 2 4 3 , 1 3 8 , 1 0 , 1 7 0 , 1 8 9

A N

A H

D F

J A

O K

P J

A N

C O

H G

O l

A O

E L

C P

B H

K A

H I

C E

C B

L J

B M

C L

H B

C D

I B

D O

D K

A P

P M

P N

E O

A A

G N

J G

N J

K K

N A

G C

N F

B G

G L

F M

D D

I H

D H

B J

M L

B J

G E

I K

N P

M O

J H

L B

O O

L B

G C

F N

A N

M L

L L

F DN L

N C

D A

1 1 5d a t a 8 6 ,

1 1 6d a t a1 1 5 ,

1 1 7d a t a 0 ,

1 1 8d a t a1 4 7 ,

1 1 9d a t a1 9 5 ,

1 2 0d a t a1 9 5 ,

1 2 1d a t a1 9 6 ,

1 2 2d a t a 3 2 ,

1 2 3d a t a2 3 3 ,

1 2 4d a t a 6 6 ,

1 2 5d a t a1 7 4 ,

1 2 6d a t a2 4 0 ,

1 2 7d a t a2 0 8 ,

1 2 8d a t a 5 8 ,

1 2 9d a t a 4 4 ,

1 3 0d a t a1 0 1 ,

1 3 1d a t a 9 6 ,

1 3 2d a t a2 0 0 ,

1 3 3d a t a2 0 9 ,

1 3 4d a t a1 9 4 ,

1 3 5d a t a2 4 7 ,

1 3 6d a t a2 2 7 ,

1 3 7d a t a 6 9 ,

1 3 8d a t a 7 8 ,

1 3 9d a t a 6 8 ,

1 4 0d a t a1 2 1 ,

1 4 1d a t a 3 2 ,

1 4 2d a t a 3 2 ,

1 4 3d a t a 7 2 ,

1 4 4d a t a1 4 1 ,

1 4 5d a t a2 0 1 ,

1 4 6d a t a1 5 6 ,

1 4 7d a t a 7 1 ,

1 4 8d a t a 3 ,

1 4 9d a t a1 3 9 ,

1 5 0d a t a 3 ,

1 5 1d a t a 7 6 ,

1 5 2d a t a 0 ,

1 5 3d a t a2 5 5 ,

1 5 4d a t a 3 2 ,

1 5 5d a t a1 6 8 ,

1 5 6d a t a1 6 8 ,

1 5 7d a t a1 7 6 ,

1 5 8d a t a1 6 8 ,

1 5 9d a t a2 4 0 ,

1 6 0d a t a2 4 0 ,

1 6 1d a t a 1 3 ,

1 6 2d a t a2 4 3 ,1 6 3d a t a 6 9 ,

1 6 4d a t a 7 1 ,

1 6 5d a t a 7 6 ,

1 6 6d a t a1 9 5 ,

1 6 7d a t a 3 2 ,

1 6 8d a t a1 8 0 ,

1 6 9d a t a1 3 6 ,

1 7 0d a t a 6 0 ,

1 7 1d a t a2 4 0 ,

1 7 2d a t a2 4 0 ,

1 7 3d a t a1 6 9 ,

1 7 4d a t a 1 ,

1 7 5d a t a2 5 5 ,1 7 6d a t a2 4 0 ,

1 7 7d a t a1 5 3 ,

1 7 8d a t a1 9 6 ,

1 9 4 , 7 2 , 1 8 9

0 , 3 2 , 1 2 1

1 3 3 ,1 3 9 ,1 4 0

1 4 8 , 1 4 9 ,1 6 2

1 0 6 . 1 9 4 ,4

2 4 7 . 1 9 5 ,7

2 4 9 ,1 9 4 , 2 0 8

2 1 2 ,1 9 4 ,1 6 5

1 , 1 7 6 , 1

3 2 , 1 2 1 ,0

3 2 , 1 5 8 , 1 8 3

3 8 , 1 6 0 , 4

3 1 , 2 0 0 , 1 7 7

2 4 0 , 4 0 , 2 0 1

2 0 8 ,2 3 9 ,2 0 2

6 5 , 1 3 3 ,6 5

1 6 9 , 1 3 1 ,4 4

1 7 7 , 6 5 , 2 4 0

2 0 8 , 2 4 5 , 1 6 9

7 6 , 6 9 , 1 6 4

3 2 , 1 9

9 6 ,

6 9 ,

8 4 ,

1 8 3 ,

1 6 8 ,

7 6 ,

7 9 ,

1 2 8 , 1 6 9 ,

0 ,

2 4 7 ,

5

6

5 2

3

0

3 ;

7 6 ,

1 8 3 ,

2 5 1 ,1 6 3 ,1 6 5

1 6 5 , 5 8 , 7 2

7 2 , 3 2 ,

3 3 ,2 4 0 ,

1 6 6 , 1 6 9 ,

1 4 1 , 0 ,

3 2 , 1 1 5 ,

1 4 1 , 0 ,

1 6 9 , 4 9 , 1 4 1

2 1 0 , 2 5 5 ,3 2

2 0 1 ,1 3 7 , 2 4 0

1 7 4 , 1 6 5 , 9 7

1 1 , 1 6 9 ,1 7 0

3 2 , 1 2 1 ,0

1 6 5 , 1 2 2 ,5 6

2 , 1 9 8 , 1 2 3

1 0 4 , 1 0 4 ,1 0 8

3 , 7 6 , 1 9 1

1 5 , 1 6 2

2 4 0 , 3 2

1 6 9 , 1 8 6 , 1 3 3 ,1 6 4 , 7 7 , 7 3 ,

3 2 , 8 6 , 6 5 ,

6 9 , 1 2 8 ,1 4 2 ,

3 2 , 1 3 9 , 1 7 6 ,

1 6 3 ,1 8 2 ,1 7 3 ,

1 6 0 , 2 , 1 8 5 ,

1 6 , 2 4 8 ,1 7 2 ,

3 , 1 4 5 ,9 8 ,

3 , 7 6 , 4 5 ,

2 5 1 , 1 3 3 ,2 ,

0 , 1 3 3 ,1 0 ,

1 4 1 , 1 9 7 , 1 9 6 ,

1 6 2 , 8 , 3 2 ,

1 9 , 1 4 1 ,1 7 0 ,

1 8 1 , 1 9 6 ,1 3 6 ,

2 0 8 , 2 4 8 , 2 4 0 ,

0

1 5 7

8 5 , 1 9 4 ,

0 , 7 6 ,

1 3 7 , 1 4 1 ,

0 , 1 4 9 ,

1 9 5 , 1 3 ,

1 9 6 , 1 4 ,

3 , 7 6 ,

9 5 , 1 6 4 ,

1 3 6 ,1 3 3 ,

2 4 0 , 5 0 ,

1 3 8 , 2 4 0 ,

1 7 7 , 6 5 ,

6 5 ,2 4 0 ,

3 4 ,2 4 0 ,

2 0 8 ,2 3 6 ,

1 4 4 , 2 ,

1 6 9 , 3 4 ,

6 , 1 9 7 ,

2 2 7 ,1 3 3 ,

3 2 , 1 3 8 ,

1 6 6 ,1 7 6 ,

6 5 , 8 4 ,

6 9 , 7 8 ,

7 0 , 7 9 ,

1 4 1 , 1 7 0 ,

1 6 6 , 3 2 ,

1 6 3 ,1 6 8 ,

1 2 3 , 7 2 ,

1 6 5 , 5 7 ,

1 9 5 , 7 6 ,

3 2 , 1 2 1 ,

1 4 1 , 2 0 ,

1 6 9 , 1 9 5 ,

3 2 , 1 5 6 ,

1 6 9 , 2 2 7 ,

2 0 , 3 ,

1 5 8 ,1 7 3 ,

5 , 1 6 9 ,

2 0 8 , 1 1 ,

2 0 8 , 2 4 ,

1 7 6 , 3 ,

2 3 3 , 1 ,

1 6 0 , 0 ,

8 , 3 ,

1 7 1 , 3 2 ,

3 2 ,2 0 7 ,

6 0 , 3 ,

3 4 , 1 6 9 ,8 3 , 8 3 ,

8 2 , 7 3 ,

1 7 0 ,1 9 6 ,

1 3 3 , 7 3 ,

1 7 0 , 1 9 6 ,

9 7 , 0 ,

1 7 0 ,1 9 6 ,

1 3 6 , 1 6 ,

1 8 4 , 3 2 ,

9 6 ,1 6 9 ,

1 6 9 , 0 ,

1 6 9 , 0 ,

2 1 9 , 2 2 5 ,

1 9 6 ,1 6 8 ,

1 7 7 ,1 8 7 ,

3 8 ,1 7 3 ,

7 2 , 7 6

2 3 7 ,1 6 7

1 5 5 ,1 4 6

1 9 5 , 9 0

1 9 5 , 3 9

1 9 6 , 4

2 9 , 1 6 8

9 6 , 5 6

6 5 , 1 3 2

3 2 ,2 5 34 1 , 2 0 2

2 0 1 , 1 3 1

4 4 , 2 0 1

2 1 , 2 0 1

1 5 2 , 2 4

2 3 0 , 6 6

1 3 3 , 2 5 1

2 5 1 , 2 4 0

3 4 , 1 6 9

1 7 3 ,

3 ,

6 5 ,

8 4 ,

8 5 ,

1 9 6 ,

1 3 8 ,1 7 3

1 6 9 , 3

1 6 5 ,1 2 2

7 2 , 1 6 9

1 7 4 ,1 6 7

3 2

7 6

3 2

3 2

7 8

3 2

0 ,

3 ,

1 4 1 ,

7 6

1 6 9

1

1 6 6 ,1 6 9

1

1 3

1 4 1

1 6 9

3 2 , 1 2 1

1 6 7 , 3 2

1 6 2 , 9 2

7 6 ,2 5 1

7 6 ,1 6 0

1 3 3 ,1 2 2

3 2 , 2 5 1

2 0 1 , 3 6

1 1 5 , 0

2 5 5 ,2 0 1

2 3 2 ,2 0 8

1 9 5 , 7 67 3 ,

6 5 ,

3 2 ,

1 3 2 ,

3 2 , 1 1 7

1 4 5 , 7 3

1 3 6 ,1 8 5

2 4 8 , 9 6

2 2 8 ,2 5 5

1 , 4 4

4 4 , 1 6 9

3 2 , 1 8 9

1 6 5 ,1 8 3

1 6 9 , 0

1 5 3 ,1 8 1

1 7 0 ,1 9 6

7 8

6 6

8 6

7 4

T h eT r a n s a c t o r

Page 65: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 65/88

L D

L E

N B

I E

C P

O H

N M

B C

P A

E CN L

F F

A O

H N

K M

D E

1 7 9d a t a2 4 0 , 3 3 , 1 7 3 , 1 9 7 , 1 9 6 , 2 4 0 ,1 8

1 8 0d a t a1 8 1 ,1 9 6 .1 4 1 , 1 7 4 ,1 9 6 .1 7 3 ,1 8 2

1 8 1d a t a1 4 1 , 1 7 5 , 1 9 6 ,3 2 , 1 1 4 , 1 9 6 ,3 2

1 8 2d a t a1 9 6 ,1 7 3 ,1 7 0 , 1 9 6 ,1 6 2 , 1 8 1 ,1 6 0

1 8 3d a t a 3 2 , 1 8 9 ,2 5 5 ,1 7 3 , 1 9 7 ,1 9 6 ,2 0 8

1 8 4d a t a 7 6 , 1 1 1 , 2 2 5 , 1 6 6 ,4 5 , 1 6 4 ,4 6

1 8 5d a t a 4 3 , 3 2 , 2 1 6 , 2 5 5 , 1 4 4 ,3 , 7 6

1 8 6 d a t a 2 2 4 ,9 6 , 1 6 9 ,8 3 , 1 4 1 , 1 7 1 , 1 9 6

1 8 7d a t a 0 , 1 4 1 , 1 8 0 , 1 9 6 ,7 6 , 1 4 0 , 1 9 6

1 8 8 d a t a 8 2 , 1 4 1 , 1 7 1 , 1 9 6 , 1 6 9 ,6 1 , 1 4 1

1 8 9d a t a1 9 6 , 7 6 , 1 4 0 , 1 9 6 , 1 6 9 ,8 , 1 3 3

1 9 0d a t a 3 2 ,1 7 7 , 2 5 5 ,1 6 9 ,1 1 1 , 1 3 3 ,1 8 5

1 9 1d a t a1 4 7 ,2 5 5 ,1 6 2 , 0 , 1 8 9 , 1 7 1 ,1 9 6

1 9 2d a t a 6 , 3 2 , 1 6 8 , 2 5 5 , 2 3 2 , 2 0 8 , 2 4 5

1 9 3d a t a1 7 4 ,2 5 5 , 0 , 8 3 , 4 8 , 5 8 ,0

1 9 4d a t a 4 6 , 6 6 , 6 5 ,7 5 , 0

o m m a n dW e d g eD e m oP r o g r a m

I F

O F

M GN K

B O

K l

E J

A C

N L

C E

C F

E

K

D

D

D

B

B

H

N

O

I I

O

A

P

E

H

HG

P

N

A

H

M

D

M

G

P I

N L

1 0 '

2 0 ' c o m m a n dw e d g ed e m o

3 0 '

4 0 ' b y f r a n ke . d i g i o i a

5 0 1 1 / 1 7 / 8 5

6 0 '

7 0

8 0 p r i n t "p r e s sa n yk e yt o s t a r t ": w a i t

9 0 p r i n t : p r i n t "k e yf o u n d !a s c i i "p e e k ( 2 )

1 0 0p r i n t" 0 t o u c ha n yk e yt o t e s tl i s t "

1 1 0w a i t : l i s t ! : p r i n t" 0 l i s td o n e ! "1 2 0p r i n t " 0 c h o o s ea s u b r o u t i n e1 , 2 , 3 "1 3 0w a i t : s u b r= p e e k ( 2 ) - a s c ( " 0 " )

1 3 5i f s u b r < 1o r s u b r > 3t h e ng o t o1 2 0

1 4 0g o s u bs u b r * 3 0 0+ 5 0 : ' c o m p u t e dg o s u b

1 4 2p r i n t : p r i n t "t y p ea n yc h a r s :" ; : i n p u t $z $ : p r i n t

1 5 0p r i n t : i n p u t "g o t o1 7 0 ,1 8 0o r 1 9 0 "; a

1 5 5i f a < > 1 7 0 a n da < > 1 8 0 a n da < > 1 9 0 t h e n 1 5 0

1 6 0g o t oa

1 7 0p r i n t" H l i n e # 1 7 0" : g o t o 2 0 01 8 0p r i n t" B l l i n e# 1 8 0 ": g o t o 2 0 01 9 0p r i n t" B l l i n e# 1 9 0 "2 0 0p r i n t" 0 J t o u c ha n yk e yf o rr e s t o r ed e m o"

2 1 0w a i t : d a t a1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 1 0

2 2 0p r i n t" E B I d a t ai n l i n e2 1 0p r i n t e db a c k w a r d s

2 3 0f o r i= 1 0 t o 1 s t e p - 1 : r e s t o r e 2 1 0 , i : r e a d a : p r i n t a ; :

2 4 0d a t a" g e o r g i a " , "c l e m s o n " , "u s e "

2 5 0d a t a" c o l o n s : : : " ," c o m m a s , , , " ," d o t . "2 6 0d a t a" c 6 4" , "1 5 4 1" , "m p s 8 0 1"

2 7 0p r i n t : p r i n t "c h o o s ea d a t al i n e : "

2 8 0i n p u t "2 4 0 ,2 5 0o r 2 6 0 "; l i n e

2 8 5i f N O 2 4 0a n dN O 2 5 0a n dl i < > 2 6 0 t h e n2 7 0

2 9 0p r i n t : p r i n t "c h o o s ea d a t ae l e m e n t : "

3 0 0i n p u t "1 , 2 o r 3 " ; d e : i f d e < 1 t h e n 3 0 0

3 1 0r e s t o r el i n e , d e : r e a da $

3 2 0p r i n t" 0 e l e m e n t i s :" a $ : g o t o 2 7 03 5 0p r i n t "e x e c u t i n gs u b r# 1 " : r e t u r n

6 5 0p r i n t "e x e c u t i n g s u b r# 2 ": r e t u r n

9 5 0p r i n t" e x e c u t i n g s u b r# 3 " :r e t u r n

, 1 7 3

, 1 9 6

1 2 7

1 9 6

3

1 6 9

2 4 9

1 6 9

1 6 9

1 8 0

1 8 6

3 2

2 4 0

7 6

0

" y o ut y p e d :" z $

" : p r i n t

n e x t : p r i n t

C o m m a n dW e d g eS o u r c eC o d e

1 0 0 0 ;

1 0 1 0; c o m m a n d w e d g e1 0 2 0; b y f r a n ke d i g i o i a

1 0 3 0 ; 1 1 / 1 7 / 8 51 0 4 01 0 5 0 .

1 0 6 0 ;

1 0 7 0i n i t

1 0 8 01 0 9 01 1 0 0

1 1 1 0

= $ c 2 0 0

I d a # < c w e d g es t a $ 0 3 0 8I d a # > c w e d g es t a $ 0 3 0 9r t s

1 1 2 0;

1 1 3 0 c w e d g e= •

1 1 4 01 1 5 0

1 1 6 0

1 1 7 0 ;

1 1 8 0r e m

1 1 9 0 ;

1 2 0 0 c h k t o k1 9 1n

I d . I U

1 2 2 01 2 3 0

1 2 4 0

1 2 5 0

1 2 6 0 ;

1 2 7 01 2 8 0

1 2 9 0 l l o o p1 3 0 01 3 1 0

1 3 2 0

1 3 3 0

1 3 4 01 t s h ■

1 3 6 0 e x e c1 3 7 01 ^ a n

I J O U

1 3 9 01 4 0 0

1 4 1 0

1 4 2 01 4 3 0

1 4 4 0 ;

1 4 5 0w e x i l

1 4 6 0

1 4 7 0 ;1 4 8 0t o k e n

1 4 9 0;

1 5 0 0t o k t a b1 5 1 0

1 5 2 0■1 5 3 0 n e w a d r

1 5 4 01 5 5 0

1 5 6 0■

1 5 7 0; r e s t o r e

1 5 8 0 ;

1 5 9 0 c h r g e t

1 6 0 0 c h r g o t1 6 1 0f r m n u m1 6 2 0 f a c i n t

1 6 3 0;1 6 4 0 r e s t o r

1 6 5 0

1 6 6 0

1 6 7 01 6 8 0

1 6 9 0

1 7 0 01 7 1 01 7 2 01 7 3 0

1 7 4 0

1 7 5 0

1 7 6 01 7 7 0

1 7 8 0 ;

1 7 9 01 8 0 0

1 8 1 0

1 8 2 01 8 3 0

1 8 4 0

1 8 5 01 8 6 0

1 8 7 01 8 8 0

1 8 9 0 ;

1 9 0 0l o o p

1 9 1 0

1 9 2 0

1 9 3 01 9 4 0

1 9 5 0

| s r c h r g e t

j s r c h k t o k

i m p$ a 7 a e

i m p $ a 9 3 b

e m p# $ 2 7

o e q r e m

e m p# $ 5 c

b e q r e m

t a x

b p l w e x i t

I d x # $ 0 0s t a t o k e n

I d a t o k t a b , x

b e qw e x i t

e m pt o k e n

b e qe x e c

i n x

b n e t l o o p

t x a

a s l a

t a x

I d a n e w a d r + 1 ,p h a

I d a n e w a d r . x

p h aj m pc h r g e t

j s r c h r g o t

i m p $ a 7 e d

b y t e$ 0 0

: i n s t a l lw e d g e

; t h i si s t h ew e d g e; g e tn e x t b y t e

; w h a t i s i t ?

i n t e r p r e t e rl o o p

; b a s i cr e mc o m m a n d

; s m g l eq u o t e 7

; n e wr e mc o m m a n d; ' e l s e -p s e u d o - t o k e n; h a n d l e a sr e m

; s e tf l a g s

; n o t a t o k e n

; u s e. x a s i n d e x

; s a v ef o rc o m p a r e; b y t ef r o mt a b l e

; e n do f t a b l e

; a m a t c h ' '

; y e s / e x e c u t ei t

; n o / b u m pi n d e x

; k e e pl o o k i n g

; p u t o f f s e ti n . a

; m u l tb y I w o

; u s ea s i n d e x

< ;p u ta d d r e s s

; o fn e wr o u t i n e

; o ns l a c k .

; n e x tb y t e& r t s

; g e tb y t ea g a i n

; g i v ei t t o b a s i c

. b y t e $ 8 5 , $ 8 b , $ 8 c , $ 8 9 . $ 8 db y t e$ 9 b , $ 9 2 , $ 9 3 . $ 9 4 . $ 9 5 , $ a 2 . $ 0 0

. w o r di n p - 1 ,i f - 1 ,r e s t o r - 1

w o r dg o t o - 1, g o s u b - 1 . l i s t - 1. w a i t - 1

w o r dl o a d - 1 . s a v e - 1 , v e r f y - 1 , n e w - 1

x . y— a l l p a r m so p t i o n a l

= $ 0 0 7 3= $ 0 0 7 9

$ a d 8 a. $ b 7 f 7

_ ,

b n e • + 5

i m p$ a 8 1 dj s r g e t p r m

I d a $ 5 f

I d y $ 6 0

s e cs b c # $ 0 1

b e s < + 3

d e y

s t a $ 4 1s t y $ 4 2| s r c h r g o t

b e qr d o n e

i s r $ a e f di s r $ b 7 9 e

t x a

b e q r d o n e

d e x

b e q r d o n e

I d y # $ 0 4

I d a ( $ 4 1 ) . y

e m p# $ 8 3b n e f i n d a t

m y

I d a ( $ 4 1 ) . y

b e q n o t f n d

c m p l ' : 1

b e q n o t f n d

e m p# $ 2 2

; g e ln e x tb y t e

; g e tl a s tb y t e

; g e tn u m e r i cp a r m

; c h a n g e f a ct o i n t

; n e wr e s t o r ec m d; a n yp a r m s ?

; n o / u s er o mr o u t i n e

; y e s / g e tl i n e & a d r

; a d d r e s sl o

; a d d r e s sh i

s u b t r a c t1

; d e c rh i b y t e ?

; d a t a p o i n t e rl o

; d a t ap o i n t e rh i

; a n o t h e rp a r m ?

; n o / w e ' r e d o n e

; y e s / c h e c kc o m m a; g e t b y t ei n t o. x

; O ' t he l e m e n t ? ? ?

; 1 ' s t e l e m e n t / d o n e

; . y i s t e x ti n d e x

; g e tb y t eo f t e x t

; d a t as t a t e m e n t 9

; n o / f i n di t

; c o m m as e a r c hl o o p

; g e tb y t ef r o ml i n e

; e n do f l i n e

; c o l o n ?

; e n do f d a t a s t m n t

; q u o t e ?

eT r a n s a c t o r 6 1 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 66: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 66/88

1 9 6 01 9 7 01 9 8 01 9 9 0

2 0 0 02 0 1 0;2 0 2 0'2 0 3 0

2 0 4 02 0 5 0

2 0 6 0

2 0 7 02 0 8 0r d o n e

2 0 9 0;2 1 0 0f i n d a t

2 1 1 0

2 1 2 0;2 1 3 0f i n q t e

2 1 4 0

2 1 5 0;

2 1 6 0 b l o o p2 1 7 02 1 8 0

2 1 9 02 2 0 0

2 2 1 0

2 2 2 0

2 2 3 0;2 2 4 0n o t f n d

2 2 5 0

2 2 6 0

2 2 7 0

2 2 8 0

2 2 9 0;2 3 0 0g e t p r m

2 3 1 02 3 2 0

2 3 3 02 3 4 0

2 3 5 02 3 6 0f o u n d

2 3 7 0 ;

2 3 8 0m s g2 3 9 0e o m2 4 0 0;2 4 1 0; n e w—2 4 2 0 ;

2 4 3 0n e w2 4 4 02 4 5 02 4 6 0

2 4 7 0 ;2 4 8 0; g o t o-

2 4 9 0 ;2 5 0 0g o t o

2 5 1 0

2 5 2 02 5 3 0 ;

2 5 4 0; g o s u b

2 5 5 0 ;2 5 6 0g o s u b

2 5 7 02 5 8 0

2 5 9 02 6 0 0

2 6 1 02 6 2 0

2 6 3 0

2 6 4 02 6 5 0

2 6 6 0

2 6 7 0

2 6 8 0

2 6 9 02 7 0 0 ;

b e qf i n q t e

c m p # ' , '

b n e l o o p

d e xb n e l o o p

t y a

c l c

a d c $ 4 1

s t a $ 4 1b c c ♦ + 4

i n c $ 4 2

r t s

I d a # $ 8 3. b y t e $ 2 c

I d a # $ 2 2

s t a $ f b

i n y

I d a ( $ 4 1 ) , y

b e q n o t f n d

c m p $ f bb e q l o o p

b n e b l o o p

I d a # < m s gs t a $ 2 2I d a # > m s gj m p $ a 4 4 5

j s r f r m n u mj s r f a c i n t

j s r $ a 6 1 3b c s f o u n d

j m p $ a 8 e 3

r t s

; f i n dc l o s i n gq u o t e

; c o m m a ?; n o / t r ya g a i n

; f o u n d o n e !

; n e e dx m o r e

; p u to f f s e ti n . a

; u p d a t et h ed a t a

; p o i n t e r s

; t o k e nf o rd a t a

; s k i pn e x ti n s t r .

; a s c i t l o rq u o t e

; s a v e b y t et o f i n d

; f i n db y t ea t $ f b

; g e tb y t eo f t e x t

; e n d o fl i n e

; f o u n di t ?

; y e s / g o t om a i nl o o p

; n o / k e e pl o o k i n g

; p r i n t m e s g& d i e

; o u t p u te r rm e s g

; g e tp a r m& c h e c ki t

; g e tp a r mi n f a c; c o n v e r tt o i n t .

; g e t a d ro f l i n e

; l i n ef o u n d ?; n o / u n d e f ' e dl i n e

. b y t e' d a t ae l e m e n tn o tf o u n d '

. b y t e$ 8 0

c l e a r d e f a u l tn a m e

I d a # $ 0 0

s t a J e n

j s r c h r g o t

j m p $ a 6 4 2

; s e tl e n g t h z e r o

; t oc l e a rn a m e

; g e tl a s tb y t e

; b a s i cn e wc o m m a n d

- c o m p u t e dg o t o s t a t e m e n t

j s r f r m n u m

j s r f a c i n t

i m p $ a 8 a 3

; g e tp a r mi n f a c

; c o n v e r t t oi n t e g e r

; t h a t ' sa l lf o l k s !

- c o m p u t e dg o s u bs t a t e m e n t

I d a # $ 0 3j s r $ a 3 f b

I d a $ 7 bp h a

I d a $ 7 ap h a

I d a $ 3 ap h a

I d a $ 3 9p h a

I d a # $ 8 d

p h a

j s r g o t o

j m p $ a 7 a e

2 7 1 0; l i s t- a l i s ts u b r o u t i n e

2 7 2 0 ;2 7 3 0l i s t

2 7 4 0

2 7 5 0

2 7 6 02 7 7 0 ;2 7 8 0 1 1

2 7 9 02 8 0 0

2 8 1 02 8 2 02 8 3 0

2 8 4 02 8 5 0

2 8 6 0 ;2 8 7 0r t r n

2 8 8 0

2 8 9 02 9 0 0

2 9 1 0

2 9 2 02 9 3 0c r

2 9 4 0

c m p # ' ! '

b e q 1 1

j s r c h r g o t

j m p $ a 6 9 c

I d a # $ 3 4s t a $ 0 3 1 4

I d a # < r t r n

s t a $ 0 3 0 0

I d a # > r t r n

s t a $ 0 3 0 1

j s r c h r g e t

j s r $ a 6 9 c

I d a # $ 8 bs t a $ 0 3 0 0

I d a # $ e 3s t a $ 0 3 0 1

I d a # $ 3 1

s t a $ 0 3 1 4

I d a # $ 0 dj m p$ f f d 2

; h a l f# o f b y t e s; e n o u g hs t a c ks p a c e ?; t e x tp o i n t e rh i

; t e x tp o i n t e rl o

; l i n en u m b e rh i

; l i n en u m b e rl o

; t o k e nf o rg o s u b

; a si . d .o n s t a c k; d o a g o t o

i n t e r p r e t e rl o o p

; o u rc o m m a n d ?; y e s / u s e o u rr o u t i n e

; n o / r e s e tf l a g s&; u s en o r m a ll i s t

; d i s a b l e s t o p k e y

; l ob y t eo f i r q

p o i n te r r o r

; v e c t o ra t r e t u r n

; a d d r e s sf o rl i s t

; g e tn e x tb y t e

; r e a ll i s t c m d

; s e te r r o r

; v e c t o rb a c kt o

; n o r m a l .

; e n a b l e s t o p k e y

; l ob y t eo f i r q

; c a r r i a g e r e t u r n

; o u t p u ti t

2 9 5 0 ;2 9 6 0; i f— a l l o w se x t e n d e ds t a t e m e n t s

2 9 7 0 ;2 9 8 0i f j s r $ a d 9 e e v a l u a t e e x p r e s s i o n

2 9 9 03 0 0 0

3 0 1 03 0 2 0

3 0 3 03 0 4 0 c h k e x p

3 0 5 0

3 0 6 03 0 7 0

3 0 8 0

3 0 9 03 1 0 03 1 1 0

3 1 2 0d o i t

3 1 3 0

3 1 4 03 1 5 0 ;

3 1 6 0 d e c p t r

3 1 7 03 1 8 0

3 1 9 03 2 0 03 2 1 0

3 2 2 0

3 2 3 0 ;

3 2 4 0c m m d3 2 5 0

3 2 6 03 2 7 0

3 2 8 0 ;3 2 9 0 ; m p u t $

3 3 0 0 ;3 3 1 0 w b u f

3 3 2 0 ;3 3 3 0i n p

3 3 4 0

3 3 5 0

3 3 6 0

3 3 7 0

3 3 8 0 ;

3 3 9 03 4 0 0g e t i t

3 4 1 03 4 2 0

3 4 3 03 4 4 0

3 4 5 0

3 4 6 0 ;

3 4 7 0x 1

3 4 8 0

3 4 9 0

3 5 0 0

3 5 1 0n o p r m3 5 2 0 ;3 5 3 0e o i

3 5 4 03 5 5 03 5 6 0

3 5 7 03 5 8 0

3 5 9 03 6 0 0

3 6 1 0

3 6 2 0i 4

3 6 3 03 6 4 0

3 6 5 03 6 6 0 ;

3 6 7 0

3 6 8 03 6 9 0i 5

3 7 0 03 7 1 0

3 7 2 0

3 7 3 0

3 7 4 0 ;

3 7 5 0; w a i t—3 7 6 0 ;3 7 7 0w a i t

3 7 8 0

3 7 9 0w l o o p3 8 0 03 8 1 0

3 8 2 0

3 8 3 0 ;

j s r $ 0 0 7 9

c m p# $ 8 9b e qc h k e x p

I d a # $ a 7

j s r $ a e f f

I d a $ 6 1

b n ed o i t

I d x # $ 5 cj s r $ a 9 0 b

t a x

b n e c m m dj m p $ a 8 f b

j s r c h r g o t

b c s d e c p t r

i m p $ a 8 a 0

I d a $ 7 a

s e c

s b c # $ 0 1

s t a $ 7 ab c s > + 4

d e c $ 7 b

I d y # $ 0 0

j s r $ a 8 f b

p ia

p l ai m p( $ 0 3 0 8 )

— i n p u ta n ys t r i n

= $ 0 3 3 c

c m p # ' $ '

b e q* + 5j m p $ a b b f

j s r c h r g e t

b e q x 1

I d x # $ 0 0

j s r $ f f c f

c m p# $ 0 d

b e qe o i

s t a w b u f , x

i n x

b n e g e t i t

I d a # < n o p r m

s t a $ 2 2I d a # > n o p r m

j m p $ a 4 4 5

; g e tl a s tc h a r

; " g o t o " t o k e n ?

; y e a h / c h e c kr e s u l t

; " t h e n " t o k e n; c h e c k o n" t h e n "

e x p r e s s i o nt r u e ?

; y e s / e x e c u t ec m d; p s u e d ot o k e nf o r ' e l s e '

; l o o k f o r" e l s e "

; e o l n ?

; n o / d oe l s ec l a u s e; y e s / u p d a t et x t p t r

; a n dr e t u r nt o i n t e r p

; g e tl a s tc h a r

; n o t d i g i t / e x e c u t ei t

; d i g i t / e x e c u t eg o t o

d e c r e m e n tt x t p t r

; c l e a r. y f o ru p d a t e

; u p d a t et e x tp o i n t e r

; e x e c u t ev i av e c t o r

3

; o u rc o m m a n d ?; y e s / i t ' s o u r s

; n o / o l d i n p u t

; n e x tb y t e

; m i s s i n gp a r a m e t e r

; i n p u tb y t e

; c a m a g er e t u r n ?

; y e s / e n do f i n p u t

; s a v ei t

; a b s o l u t e j u m p

; s e tu p e r r o rm e s g

. o u t p u tm e s g

. b y t e' m i s s i n gv a r i a b l e ' , $ 8 0

s t x l e n

j s r c r

j s r $ b O 8 b

s t a $ 4 9s t y $ 4 a

j s r $ b 6 a 3

I d a l e n

j s r $ b 4 7 5I d y # $ 0 2

I d a $ 6 1 , y

s t a ( $ 4 9 ) , y

d e y

b p l i 4

I d y l e n

d e yI d a w b u f , y

s t a ( $ 6 2 ) , y

d e y

b p l i 5

r t s

; s a v el e n

; o u t p u t < c r >

; l o o ku p v a r i a b l e

; s a v ea d d r e s s

; a sp o i n t e r

; f r e e s t r i n g

; g e tl e n g t h

; r e s e r v es p a c e

; 3 b y t e st o c o p y; c o p ys t r i n gd s c r p t r

; t o v a r i a b l e t a b l e

; b u m pc o u n t e r

; t i l ld o n e

; g e tl e n g t h

; b u m pd o w n; c o p ys t r i n gd a t a

; t o r e s e r v e dl o c .

; b u m pc o u n t e r

; t i l ld o n e

- p a u s eu n t i lk e yp r e s s e d

b e q • + 5

j m p $ b 8 2 dj s r $ f f e 4

b e q w l o o p

s t a $ 0 2r t s

, a n yp a r m s ?; y e s / u s eo l d w a i t

; g e tc h a r a c t e r

; b u f f e re m p t y ?; s a v e c h a r a c t e r

3 8 4 0; l o a d / s a v e— a l l p a r m so p t i o n a l

3 8 5 0 ;3 8 6 0s e t n a r r

3 8 7 0s e t l f s

3 8 8 0 ;3 8 9 0v e r f y

3 9 0 0

3 9 1 0l o a d

3 9 2 03 9 3 0

= S f f b d

= S f f b a

I d a # $ 0 1

, b y t e $ 2 c

I d a # $ 0 0s t a $ 0 a

I d a # $ 0 0

; s e tn a m ep a r a m e t e r

; s e tf i l ep a r a m e t e r

; v e r i f yf l a g

; s k i pn e x ti n s t r .

; f l a g f o rl o a d

; s t o r es y s t e mf l a g

; a c tl i k el o a dn o w

3 9 4 0

3 9 5 0s a v e

3 9 6 0

3 9 7 03 9 8 03 9 9 0

4 0 0 04 0 1 0

4 0 2 0

4 0 3 0;4 0 4 04 0 5 0

4 0 6 04 0 7 0

4 0 8 0 ;4 0 9 0n l o o p

4 1 0 04 1 1 0

4 1 2 0

4 1 3 0

4 1 4 0;4 1 5 0n o n a m e

4 1 6 04 1 7 0

4 1 8 04 1 9 0

4 2 0 0;4 2 1 04 2 2 0

4 2 3 0

4 2 4 0

4 2 5 0 ;

4 2 6 04 2 7 04 2 8 0 ;

4 2 9 0s e t u p

4 3 0 04 3 1 04 3 2 0

4 3 3 0 ;

4 3 4 0e x i t

4 3 5 04 3 6 0

4 3 7 0;4 3 8 0s a v e 2

4 3 9 04 4 0 0

4 4 1 0

4 4 2 0

4 4 3 04 4 4 04 4 5 0 ;4 4 6 0s c r a c h

4 4 7 0

4 4 8 0

4 4 9 0

4 5 0 04 5 1 04 5 2 0 ;

4 5 3 0r e n a m e

4 5 4 04 5 5 0

4 5 6 0

4 5 7 04 5 8 0

4 5 9 0 ;

4 6 0 0 ;4 6 1 0 ; s e n d -

. b y t e $ 2 c

I d a # $ 0 1

s t a I s f l a g

I d a # $ 0 0j s r s e t n a m

I d x # $ 0 8

j s r $ e 1 d bI d a $ b 7b e q n o n a m e

s t a l e n

l a y

I d a # $ 0 0s t a n a m e . y

d e yI d a ( $ b b ) . y

s t a n a m e . y

b n e n l o o p

b e qe x i t

I d a l e n

b e q e x i t

I d a I s f l a g

b e q s e t u p

I d a n a m es t a a b r

I d a n a m e+ 1

s t a a b r+ 1

j s r s c r a c h

j s r r e n a m e

I d a l e n

I d x # < n a m eI d y # > n a m e

j s r s e t n a m

I d a I s f l a g

b n e s a v e 2

j m p $ e 1 6 f

I d x $ 2 dI d y $ 2 eI d a # $ 2 bj s r $ f f d 8

b c c • + 5

j m p $ e 0 f 9

r t s

I d a # ' s '

s t a c m dI d a # $ 0 0

s t a e q u a l

j m p s e n d

= +

I d a # ' r '

s t a c m dI d a # ' = '

s t a e q u a l

j m p s e n d

; s k i pn e x ti n s t r .

; f l a g f o rs a v e

; s t o r eo u rf l a g

; d e f a u l tl e n g t h

; s e td e f a u l tn a m e; d e f a u l td e v i c e *

; g e ta n yp a r m s

; l e n g t ho f n a m e; n on a m es p e c i f

; s t o r en e w n a m; u s e. y a s i n d e x; e n dn a m ew i t h0

; c o p yn e wf i l e n a

; g e tb y t eo f n a m e; s a v ei t

; k e e pi t u pc o n t i n u ec o m m

; n on a m es p e c i f

; i sn a m ed e f i n e

; n o / e r r o rc o m i n

; l o a d o rs a v e ?. l o a d / f i n i s hu p

; s e t u p t w o c

a b b r e v i a t i o no f

f i l e n a m ef o r

; e a s yb a c k u p

; s c r a t c h o l db a c k

; c r e a t eb a c k u pc o

; g e tp a r a m e t e

; f o rf i l e n a m et o

; l o a do r s a v e

; s e tp a r a m e t e r

; l o a do r s a v e ?; s a v ec o m m a n; c o n t i n u el o a dc m

; e n d a d ro f s a v e

; i . e .s t a r to f v a r s

; p o i n tt o s t a r ta d r

; c o n t i n u es a v ec m ; n o r m a lt e r m i n a

; n o / " b r e a k "e r r o

; s c r a t c hb a c k u

; ' s ' f o rs c r a t c h

; s e tc o m m a n ; e n do f b u f f e r

; n oe q u a ls i g n

; s e n dd o s c o m

; r e n a m e o l df i l e

; ' r ' f o rr e n a m e

; s e tc o m m a n ; e q u a l s i g n

; w h e r e e l s e ; s e n dd o sc o m m

- t h i sr o u t i n ec a nb e u s e d4 6 2 0; t os e n d a n y d o sc o m m a n dt o d r i v e

4 6 3 0; b e s u r et o e n dc o m m a n dw i t hz e r o

4 6 4 0 ;

4 6 5 0c i o u t

4 6 6 0l i s t e n

4 6 7 0s e c o n d4 6 8 0u n l s t n

4 6 9 0 ;

4 7 0 0 s e n d

4 7 1 0

4 7 2 04 7 3 0

4 7 4 0

4 7 5 04 7 6 0 ;

4 7 7 04 7 8 0d l o o p

4 7 9 0

4 8 0 0

4 8 1 0

4 8 2 0

4 8 3 0 ;

4 8 4 0e x i H

4 8 5 0 ;4 8 6 0l e n

4 8 7 0c m d4 8 8 0a b r

4 8 9 0e q u a l

4 9 0 0n a m e4 9 1 0I s f l a g

4 9 2 0. e n d

= $ f f a 8

= $ t f b 1

= $ f f 9 3= $ t f a e

I d a # $ 0 8s t a $ b aj s r l i s t e n

I d a # $ 6 f

s t a $ b 9j s r s e c o n d

I d x # $ 0 0

I d a c m d . xb e q e x i t i

j s r c i o u t

i n x

b n e d l o o p

j m p u n l s t n

. b y t e$ 0 0

. b y t e ' s 0 : '

. b y t e$ 0 0 , $ 0 0 , '

b y t e$ 0 0. = . + 1 6

. b y t e$ 0 0

; s e n ds e r i a lp o r t

; t e l ld r i v el i s t e n

; s e n d2 n da d rI s t ; q u i tl i s t e n i n g

; d e v i c en u m b e ; s t o r ef o rs y s t e m

; l i s t e nt o c o m m ; c h# o r ' e dw / $ 6s e c o n d a r ya d r

; s e n di t t o d r i v e

; u s e. x a si n d e x

; g e tb y t eo f c m d; 0 b y t em a r k s e

; o u t p u tt o d r i v e

; b u m pp o i n t e r

; j m pt o d l o o p

; a l ld o n e !

b a k '

T h eT r a n s a c t o r 6 2 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 67: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 67/88

I

m p r o v i n g

h e S Y SC o m m a n dN e i lB o y l e

C a l g a r y ,A l b e r t a

. . m a k eu s e o ft h o s em a c h i n el a n g u a g e

r o u t i n e ss u p p l i e df r e eb y C o m m o d o r e .

h eS Y Sc o m m a n di n B A S I Ci s v e r yu s e f u l- i t g i v e st h e

o g r a m m e ra c c e s st o t h e f a s t ,p r e c i s ew o r l do f m a c h i n en g u a g e .T h ew r i t e r so f t h e C o m m o d o r eB A S I Ci n t e r p r e t e r

a l i z e dt h a tp r o g r a m m e r so f t e nw i s ht o t r a n s f e rv a l u e sf r o m

A S I Ct o m a c h i n el a n g u a g e , s ot h e yi n c l u d e d t h eU S Rc o m

a n d ,a s p e c i a l i z e df o r mo f S Y S .U n f o r t u n a t e l y , t h eU S R

o m m a n di s l i m i t e dt o t r a n s f e r i n go n en u m e r i cv a l u e .A u s e f u l

t e n s i o no f t h e S Y Sc o m m a n dw o u l da l l o wt h e p a s s i n go f

u l t i p l ep a r a m e t e r si n t h ef o r mo f v a l u e s ,v a r i a b l e s ,e q u a t i o n s

d s t r i n g s .A s i m p l em e t h o do f d o i n gt h i sw o u l db e t o

l c u l a t e t h ev a l u e si n B A S I Ca n dp o k et h e mi n t om e m o r y ,

e nS Y St o t h e M Lp r o g r a ma n dh a v ei t r e a dt h e v a l u e s .

f e c t i v e ,b u ta w k w a r d ,s l o wa n dc l u m s y .

a s t e ra n dm o r ee l e g a n tm e t h o di s t o m a k eu s eo fs o m eo f t h e

a c h i n el a n g u a g er o u t i n e ss u p p l i e df r e eb y C o m m o d o r e-

o s ei n t h e B A S I Ci n t e r p r e t e ra n dt h e K E R N A L .T h e r ea r e

u t i n e sf o r c o n v e r t i n gf l o a t i n gp o i n tv a l u e st o i n t e g e ra n d

c k ,f o r e v a l u a t i n gB A S I Ce x p r e s s i o n s ,f o r m a n i p u l a t i n g

r i n g s , f o rp r i n t i n gd a t ai n n u m e r i co r s t r i n gf o r m ,f o rs t o r i n g

t ai n v a r i a b l e s ,a n df o rp r i n t i n g i n t e r p r e t e ro r K E R N A Le r r o r

s s a g e s .I n a d d i t i o n ,a l l m a t h e m a t i c a lf u n c t i o n sh a n d l e d b y

e C o m m o d o r e6 4 c a n b e u s e df r o ma m a c h i n el a n g u a g e

o g r a m .T h e s er o u t i n e s a r ef a i r l ys i m p l et o u s e ,a n d o p e n u p

n u m e r a b l eo p p o r t u n i t i e s .

h ed a t aw h i c hc a nb e p a s s e db a c ka n df o r t hb e t w e e nt h et w o

n g u a g e su s u a l l yt a k e so n eo f t h r e ef o r m s :s t r i n g ,i n t e g e ro r

o a t i n g p o i n t .S t r i n g s a r ef a i r l ys t r a i g h t f o r w a r d ,a n da r e h a n

e dm u c ht h es a m ew a yi n e a c hl a n g u a g e .I n t e g e r s ,t o o ,a r e

i r l ys i m p l e , b u tc a nb e s t o r e di n o n e ,t w oo r m o r eb y t e s .

u m b e r so u t s i d e t h er a n g eo f B A S I Ci n t e g e r s( - 3 2 7 6 8t o

7 6 7 ) , o r t h o s e w i t hd e c i m a lp o i n t s ,a r e s t o r e di n f l o a t i n g

i n t f o r m a t ,a n dr e q u i r e5 o r 6 b y t e s .O n ea d v a n t a g eo f u s i n g

e i n t e r p r e t e rr o u t i n e sr a p i d l yb e c o m e sa p p a r e n t :f l o a t i n g

i n tv a l u e sc a ne a s i l yb e c o n v e r t e dt o i n t e g e ra n db a c k .T h u s ,

t ac a n b e c o n v e r t e df r o mo n ef o r mt o a n o t h e r ,m a n i p u l a t e d ,

dc o n v e r t e db a c k ,e f f o r t l e s s l y ( w e l l ,a l m o s t ) .

T h er e a lp r o b l e ml i e si n t r a n s f e r r i n gt h ep a r a m e t e r s f r o mo n e

p r o g r a mt o t h e o t h e r .A s i m p l em e t h o do f d o i n gt h i su s i n g

t h e s er o u t i n e st a k e s t h ef o l l o w i n g f o r m a t :

S Y SP A ,v a l u e l ,v a l u e 2 ,v a l u e 3

w h e r eP Ai s t h es t a r t i n ga d d r e s so f t h eM Lr o u t i n e ,a n dv a l u e l -

3 a r e t h e p a r a m e t e r st o b e p a s s e d .F o re a c hp a r a m e t e r ,M L

r o u t i n e sm u s tb e c a l l e dt o c h e c kf o rt h ec o m m aa n dt o e v a l u a t e

t h ep a r a m e t e r .T h er o u t i n ea t $ A E F Dc h e c k sf o ra c o m m aa n d

r e t u r n sa n e r r o rm e s s a g ei f i t i s n o t f o u n d .T h ev a l u ef o l l o w i n g

t h ec o m m ac a n b ee v a l u a t e db y t h e r o u t i n ea t $ A D 9 E .T h e

v a l u ec a n b e a n y t h i n gt h a tB A S I Cc a ne v a l u a t e :s t r i n g sa n d

s t r i n gf u n c t i o n s , i n t e g e ro r r e a lo r b o o l e a ne q u a t i o n s ,v a r i a b l e s ,

e t c .I f t h ev a l u ei s a s t r i n go r a s t r i n gf u n c t i o n ,t h e r e s u l ti s

s t o r e da t $ 0 1 0 0 ,a n di f n u m e r i c ,i t i s s t o r e di n f l o a t i n gp o i n t

f o r m a ti n F A C 1 . F A C 1 ,o r f l o a t i n gp o i n ta c c u m u l a t o r* 1 , i s

l o c a t e da t $ 6 2t o $ 6 5 ,a n di s u s e db y t h eB A S I Ci n t e r p r e t e rf o r

f l o a t i n gp o i n tv a l u em a n i p u l a t i o n .I f t h e t y p eo f d a t at o b e

p a s s e di s u n k n o w n ,r e f e r e n c et o t w of l a g s w i l ls o r tt h i so u t .T h e

l o c a t i o n$ 0 Ci s u s e dt o i n d i c a t et h et y p eo f d a t a- 2 5 5f o r s t r i n g ,

a n d0 f o rn u m e r i c .T h et y p eo f n u m e r i cd a t ai s i n d i c a t e da t $ 0 D

- 1 2 8f o ri n t e g e ra n d0 f o rf l o a t i n g p o i n t .A n a l t e r n a t ee v a l u a

t i o nr o u t i n ee x i s t sa t $ B 7 9 E .F o l l o w i n gt h i se v a l u a t i o n ,t h e

e x p r e s s i o ni s s t o r e d a sa o n e - b y t ei n t e g e r( r a n g e0 - 2 5 5 )i n t h e

X r e g i s t e r .

I w r o t et h ef o l l o w i n gr e l o c a t a b l eM Lp r o g r a mt o d e m o n s t r a t e

t h i sm e t h o do f e x t e n d i n gt h eS Y Sc o m m a n d . T h ep r o g r a mi s a

P R I N TA Tr o u t i n ew h i c ha l l o w s t h ep r o g r a m m e rt o s p e c i f yt h e

c o l u m n a n d r o wo f h i s / h e r o u t p u tt o t h es c r e e n .T h i si s s i m p l e r

a n dc l e a n e rt h a nf i d d l i n ga b o u tw i t he m b e d d e dc u r s o rc o n

t r o l s .T h ef o r m a ti s :

S Y SP A ,c o l ,r o w ,v a l u e

P A - t h ea d d r e s so f t h es t a r to f t h eM Lr o u t i n e

c o l - t h en u m b e ro f c o l sf r o mt h el e f ts c r e e nb o r d e r( 0 - 3 9 )r o w - t h en u m b e ro f r o w s f r o mt h et o po f t h es c r e e n ( 0 - 2 4 )

v a l u e- a n y t h i n gt h eP R I N Tc o m m a n dc a nh a n d l e

eT r a n s a c t o r 6 3 J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 68: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 68/88

Page 69: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 69/88

i n F A C 1 .

o u t i n et o c o n v e r t

l o a t i n gp o i n tv a l u ei n F A C 1t o a n A S C I Is t r i n g :

b d d dc o n v e r t sa f l o a t i n gp o i n tv a l u ei n F A C 1t o a n A S C I I

s t r i n g s t a r t i n ga t $ 0 1 0 0 .

t h e ru s e f u lr o u t i n e s :

4 3 7p r i n t st h e e r r o rm e s s a g e( f r o mt h e t a b l ea t $ A 1 9 E )

c o r r e s p o n d i n gt o t h ev a l u ei n t h eX r e g i s t e r .F o re x a m

p l e ,l o a d i n ga 1 4i n t h eX r e g i s t e ra n dt h e nj u m p i n gt o

t h i s r o u t i n ep r o d u c e st h e e r r o rm e s s a g e" I L L E G A L

Q U A N T I T Y " .

a a OP R I N Tc o m m a n d- p r i n t sw h a t e v e rf o l l o w s ,c h e c k i n g

f o r T A B ,S P C ,c o m m a sa n d s e m i c o l o n s .A j s r t o t h e

C H R G E Tr o u t i n ei s n e e d e db e f o r ej u m p i n gt o t h i s

r o u t i n e .

s e f u l r o u t i n e sa n df l a g s

o mZ e r oP a g ea n dt h eK E R N A L :

3 - C H R G E T- g e t st h en e x tc h a r a c t e ri n a B A S I Cs t a t e

m e n t .

c -f l a g :t y p eo f d a t a .A v a l u eo f 2 5 5i n d i c a t e s as t r i n g ,a n d

a z e r oi n d i c a t e sn u m e r i cd a t a .

d - f l a g :t y p eo f n u m e r i cd a t a .A v a l u eo f 1 2 8i n d i c a t e sa ni n t e g e r ,a n da z e r oi n d i c a t e sa f l o a t i n gp o i n tv a l u e .

f f O - K E R N A Lp l o tr o u t i n e- i f t h ec a r r yf l a gi s c l e a r e d ,t h e

c u r s o ri s p l a c e da t t h ec o l u m ni n t h eX r e g i s t e ra n dt h e

r o wi n t h eY r e g i s t e r .

e f e r e n c el o c a t i o n s :

F A C 1 - $ 6 2 - $ 6 5( f l o a t i n gp o i n ta c c u m u l a t o r )

F A C 2 - $ 6 9 - $ 6 E

a c c u m u l a t o r- $ 3 0 c( 7 8 0 )( . A )

X r e g i s t e r- $ 3 0 d( 7 8 1 )( . X )

Y r e g i s t e r- $ 3 0 e( 7 8 2 )( . Y )

i n gt h e s eB A S I Ci n t e r p r e t e rr o u t i n e so p e n sm a n yp o s s i b i l i

e si n c o m b i n i n gB A S I Ca n dM Lp r o g r a m s .A l lf o r m so f B A S I C

t a ,e q u a t i o n s ,a n dv a r i a b l e sc a n b ep a s s e dt o M Lp r o g r a m s ,

dM Ld a t ac a ne a s i l yb e p a s s e db a c k .F o ra m o r ec o m p l e t e

s c r i p t i o no f t h e s er o u t i n e s ,I r e f e rt h e r e a d e rt o " C o m p u t e l ' s

C - 2 0 a n dC o m m o d o r e6 4 T o o lK I T :B A S I C "b y D a nH e e b ,

h i c hh a sb e e nt h es o u r c eo f i n n u m e r a b l ei d e a sf o rm e .

T h a n k sa l s ot o S h e l d o nL e e m o na n d h i s i n v a l u a b l eb o o k ,

" M a p p i n gt h eC o m m o d o r e6 4 " ,f o rd e s c r i p t i o n so f t h e s er o u

t i n e s .F o rt h o s em o r ei n t e r e s t e di n t h ea c t u a lc o d ef o r t h e s e

r o u t i n e s ,i t c a nb e f o u n di n " T h eA n a t o m yo f t h eC o m m o d o r e

6 4 "f r o mA b a c u sS o f t w a r e .

O M

G D

G C

I G

C E

B H

K H

K C

C G

O D

I E

K G

O C

G H

K D

J K

G L

J A

I J

O C

O C

L N

G EI A

H O

K G

M L

H E

N L

A H

J G

K B

P F

E H

G BI L

M OG E

A H

D P

H A

1 0 0

1 2 0

1 3 0

1 4 0

1 5 0

1 6 0

1 7 0

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 03 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

r e mp r i n t e rv e r s i o n

o p e n 4 ,

p r i n t # 4

c l o s e 4

o p e n 4 ,

s y s 7 0 0

. o p to o

4

, c h r $ ( 2 7 ) " p "

4 , 2

p 4

; m l p r i n t a t

;

;

c h r g e t

e r r p r t

p r i n t

=

=

=

c o m c h k =

e v a l x r

s e t c r s

;

e r r o r

c o l

r o w

t o o b i g

=

=

=

j s r

j s r

c p x

b c st x a

p h a

j s r

j s r

c p x

b c s

p l a

t a y

c l c

j s r

j s r

j m p

r t s

I d x

j m p

. b y t e

. b y t e

. b y t e

$ 7 3

$ a 4 3 7

$ a a a 0

$ a e f d

$ b 7 9 e

$ f f f O

$ c 0 0 0

c o m c h k

e v a l x r

c o l

e r r o r

c o m c h k

e v a l x r

r o w

e r r o r

s e t c r s

c h r g e t

p r i n t

t o o b i g

e r r p r t

4 0

2 5

1 4

c h r $ ( 6 6 )

; g e tn e x t c h a r a c t e r

; p r i n te r r o rt y p e. x

; b a s i cp r i n t

; c h e c k f o rc o m m a

; p u te x pi n . x0 - 2 5 5

; k e r n a l - p l a c e c u r s o r

; c h e c k f o rc o m m a

; e v a l u a t ec o li n . x

; b r a n c hi f c o l> = 4 0

; s t o r e c o lo n s t a c k

; c h e c kf o rc o m m a

; e v a l u a t er o wi n . x

; b r a n c hi f r o w > =2 5

; g e tc o lf r o ms t a c k

; s e tc u r s o ra t x , y

; f i r s tc h a rf o r p r i n t

; p a r a m e t e rt o ob i g

; p r i n te r r o r. x

; # o f c o l u m n s

; # o fr o w s

; i l l e g a lq u a n t i t y

eT r a n s a c t o r 6 5 J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 70: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 70/88

A u t o l o a d& t h eE P R O Mb y T o mH u g h e s& S t e v e M c C r y s t a l

M i l w a u k e e ,W i s c o n s i n

W h e nt h ep o w e rc o m e su p ,s o d o e sy o u ra p p l i c a t i o np r o g r a m !

I m a g i n ey o u ' r e u s i n gy o u rC o m m o d o r e6 4 t o o p e r a t ea c o m p u t

e r i z e db u l l e t i nb o a r da n d o n es t o r m y d a ya s t r a yl i g h t n i n gb o l t

k n o c k so u t t h e l o c a lp o w e rs t a t i o n .Y o u rB B Sc r a s h e s .O f

c o u r s ey o u ' r en o ta r o u n dt o p i c ku p t h ep i e c e s ,s o w h e np o w e r

f i n a l l yi s r e s t o r e dy o u r 6 4s i t s i d l y ,f l a s h i n gi t s c u r s o r ,w h i l e

y o u rm o d e mk e e p s a n s w e r i n ga n da n s w e r i n ga n da n s w e r i n g

t h o s ei n c o m i n gp h o n ec a l l s .

I f y o u r6 4 h a d b e e ne q u i p p e dw i t h A u t o l o a d ,t h e c o m p u t e r

w o u l dh a v ea u t o m a t i c a l l yl o a d e da n dr u n t h e f i r s td i s kp r o

g r a m( y o u rB B Sl o a d e r )i m m e d i a t e l ya f t e rp o w e rw a sr e s t o r e d .

Y o uc o u l dh a v e b e e nm i l e sa w a y .

A u t o l o a di s a s h o r tr o u t i n et h a tr e s i d e si n t h e6 4 ' sK E R N A L .

T h i n ko f A u t o l o a da s a " h a r d "w e d g ea s o p p o s e dt o t h e" s o f t "

D O S5 . 1w e d g ew h i c hv a n i s h e sa s s o o na s t h e6 4 i s t u r n e do f f .

S i n c ei t i s d e s i g n e dt o b e c o m ea p e r m a n e n tp a r to f t h ec o m

p u t e r ' so p e r a t i n g s y s t e m ,t h eo n l yp r a c t i c a lw a yt o u s eA u t o

l o a di s t o b u r ni t i n t oa n E P R O M( a l o n gw i t ht h e r e s t o ft h e

K E R N A L )a n dt h e nr e p l a c ey o u ro l dK E R N A Lw i t ht h eA u t o

l o a dE P R O M .

A u t o l o a di s a b l et o l o a da n dr u na d i s kf i l eb e c a u s ei t b y p a s s e s

t h e 6 4 ' sn o r m a ls t a r t - u po r R E S E Tr o u t i n e .N o r m a l l y ,o n

p o w e r - u po r a c o l ds t a r tt h e6 4 j u m p st o t h e R E S E Tv e c t o ra t

$ F F F C - F F F Dw h i c hp o i n t st o $ F C E 2 .T h i sr o u t i n es e t st h eV I CI I c h i pa n d t h e o p e r a t i n g s y s t e m ' ss o f tv e c t o r sa t $ 0 3 0 0 ,

i n i t i a l i z e sB A S I C ,r e s e t st h es t a c k ,a n df i n a l l yt u r n sc o n t r o lo f

t h e6 4 o v e rt o t h eB A S I Ci n t e r p r e t e r .A u t o l o a d p e r f o r m sa l lo f

t h e s eh o u s e k e e p i n gf u n c t i o n s ,b u ti t a l s od o e sa L O A D" 0 : *" , 8

a n dt h e ns t u f f st h ek e y b o a r db u f f e rw i t ht h eB A S I Cc o m m a n d

R U N .F i n a l l y ,i t j u m p st o B A S I C ,w h i c hs e e si t h a s a R U N

c o m m a n dw a i t i n g ,a n dt h a t ' s t h a t .

W h a ti f y o u ' r en o t r u n n i n ga B B S ?I f y o u ' r e6 4 i s n ' ta " d e d i

c a t e d "o r s i n g l e - p u r p o s ec o m p u t e r ,A u t o l o a dc o u l db e c o m e

q u i t ea n u i s a n c e .E a c ht i m ey o uf l i p p e do n t h e6 4 ' sp o w e rt h e

c o m p u t e r w o u l da l w a y s- r e p e a ta l w a y s- t r y t ol o a da n dr u n .T o

g e ta r o u n dt h i sp o t e n t i a l l ya n n o y i n gf e a t u r e ,A u t o l o a d p a u s e s

a b o u t1 m i n u t eb e f o r e l o a d i n g ,a n da t a n yt i m ed u r i n gt h i s

d e l a yy o uc a na b o r tt h el o a db y s i m p l yp r e s s i n g t h eC o m m

d o r el o g o k e y .T h i sd e l a ya l s os e r v e sa s e c o n dp u r p o s e i t

a l l o w sa d i s k d r i v ee n o u g ht i m et o r e s e ti t s e l f .F o rs o m ed r i v e

t h a td o a s e l f - i n i t i a l i z a t i o n , l i k et h e4 0 4 0 ,t h e r e ' sa c h a n c eo f a

" d e v i c en o tp r e s e n t "e r r o ro c c u r r i n gi f t h ed r i v ei s a c c e s s e dt o o

s o o n .

N o t h i n g ' sf r e e. . . y o u ' l ln e e dt o g e t a s u i t a b l eE P R O Ma n d

h a v ea c c e s st o a n E P R O Mb u r n e r ,f o re x a m p l e ,t h eP r o m e n

( s e es e c t i o n b e l o w ) .A l s o , f o r g e ta b o u tu s i n ga c a s s e t t ew i t h

A u t o l o a db e c a u s e A u t o l o a dr e s i d e sa t $ F 7 2 Ca n de f f e c t i v

e r a s e sp a r to f a K E R N A Lc a s s e t t e r o u t i n e .H o w e v e r ,p a t c h

h a v eb e e np l a c e di n t h e K E R N A Lw h i c hp r o t e c ty o u f r o m

a t t e m p t i n ga n yc a s s e t t eo p e r a t i o n s .O n ef i n a ln o t e :R e p l a c

t h e K E R N A Lt h a tc a m ew i t hy o u r6 4 w i t ht h eA u t o l o a dc u s t o

K E R N A Lw i l lv o i dy o u r c o m p u t e r ' sw a r r a n t y .

I f y o u ' r ew i l l i n gt o p a r tw i t ht h eu s eo f a c a s s e t t e ,t h e nt h e r e ' sa

f a i ra m o u n to f " f r e es p a c e "i n t h eK E R N A Lf o ro t h e rc u s t o m

i n g .F o re x a m p l e ,t h ec a s s e t t el o c a t i o n sb e t w e e n$ F 7 2 C - F

a n d$ F B 9 7 - F C D 0s e e mt o b e r i p et e r r i t o r y .S i n c ea l lt h i ss p a c

i s a v a i l a b l e ,w h yn o tm a k eu s eo f i t ?

O t h e rK E R N A Lm o d i f i c a t i o n sm i g h ti n c l u d e :

• w r i t i n gy o u ro w np o w e r - u p m e s s a g ea t $ E 4 7 9 .

• a d d i n ga " h a r d "D O Sw e d g e .

• a n I E E EK E R N A L .

• a r o u t i n et o r e a da n ds e tt h et i m e - o f - d a yc l o c k s .

• o r a n yn u m b e ro f s h o r t ,g e n e r a lp u r p o s ep r o g r a m st h a

y o uu s er e p e a t e d l y .

T h a n k st o t h eb a n k - s w i t c h i n gc a p a b i l i t i e so f t h eC o m m o d

6 4 ,c u s t o mK E R N A Lr o u t i n e sc a nu s u a l l yb e s o f tt e s t e d ;t h a ti s ,

r u nw i t h o u tu s i n ga n E P R O M .T h es o u r c ec o d ef o rA u t o l o

f o re x a m p l e ,i n c l u d e sa c o n d i t i o n a la s s e m b l yv a r i a b l e , c

E P R O M ,t h a t a l l o w sA u t o l o a dt o b e s o f t r u n " u n d e r "t h e

K E R N A LR O Mi t s e l f .

T h eT r a n s a c t o r 6 6 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 71: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 71/88

e r ea r et h es t e p si n v o l v e df o rs o f tr u n n i n gA u t o l o a d :

) A s s e m b l eA u t o l o a dw i t ht h ev a r i a b l eE P R O M= 0 .

) L o a da m a c h i n el a n g u a g em o n i t o ra n dr u ni t .

) U s i n gt h em o n i t o r ,s a v et h eK E R N A L( $ E 0 0 0 - F F F F )a s a

d i s kf i l e .T h e nl o a di t b a c k .Y o un o wh a v ea n e x a c tc o p yo f

t h eK E R N A Li n t h eR A Mu n d e rt h eK E R N A L .

) T r a n s f e rB A S I Ct o i t s e l f .F o re x a m p l e ,m o s tm o n i t o r sh a v e

a t r a n s f e rc o m m a n ds u c ha s T A 0 0 0 B F F FA 0 0 0 ' .T h i s

m o v e sB A S I Ct o t h eR A Mu n d e ri t s e l f .

5 ) *L o a dt h ea s s e m b l e d A u t o l o a d f r o md i s k .T h i sa d d sA u t o

l o a dt o t h eR A MK E R N A L .

) C r e a t et h i sb a n ks w i t c h i n gr o u t i n ew i t ht h em o n i t o r :

S T A R TS E I

L D A* $ 3 5

S T A$ 0 1

C L I

R T S

h i ss h o r tm a c h i n el a n g u a g er o u t i n ew i l lf l i po u t b o t ht h e

E R N A La n d B A S I CR O M sw h e ni t i s c a l l e da n d t r a n s f e r

o n t r o lo f t h e6 4 o v e rt o t h ec u s t o m i z e d A u t o l o a dK E R N A L .

) E x i tt h em o n i t o ra n dd o a S Y St o S T A R T .A u t o l o a di s n o w

i n p l a c e .N e x t ,t y p eS Y S 6 4 7 3 8( a R E S E T )a n dA u t o l o a d

s h o u l dd o i t ss t u f f .

N O T E :C o m m o d o r e ' sa s s e m b l e r w o n ' ta l l o wi t so b j e c tc o d et o

e d i r e c t l ya s s e m b l e dt o R O M .H o w e v e r ,C B M ' sH I L O A D E R 6 4

n dL O L O A D E R 6 4p r o g r a m sc a n b em o d i f i e dt o a s s e m b l ei n t o

O Mw i t ha f e wp o k e sw h i c hp l a c e6 5 0 2N O Pi n s t r u c t i o n si n a

o m p a r i s o nr o u t i n e :

F o rL O L O A D E R 6 4 ,P O K E2 3 8 8 , 2 3 4a n dP O K E2 3 8 9 , 2 3 4

F o rH I L O A D E R 6 4 ,P O K E5 1 5 2 5 , 2 3 4a n dP O K E5 1 5 2 6 , 2 3 4

s i n gt h eP r o m e n a d eE P R O MP r o g r a m m e r

a k i n ga m o d i f i e dK E R N A Lc a nb e d o n eu s i n ga n yo f s e v e r a l

P R O Mp r o g r a m m e r so r " b u r n e r s "a v a i l a b l et o h o m eu s e r s .I

s et h eP r o m e n a d es o l db y J a s o n - R a n h e i mC o .o f S a nJ o s e ,

a l i f o r n i a ,a n dr e c o m m e n di t h i g h l yb e c a u s ei t ' si n e x p e n s i v e ,i m p l et o o p e r a t ea n dv e r yv e r s a t i l e .

n t i l r e c e n t l y ,I u s e dt h e 2 7 6 4 - t y p eE P R O Ma s a K E R N A L

e p l a c e m e n tc h i pb e c a u s eo f i t sl o wc o s t .H o w e v e r ,t h i si s a 2 8 -

i nc h i p .S i n c et h eK E R N A LR O Mh a sa 2 4 - p i nc o n f i g u r a t i o n ,

h e2 7 6 4r e q u i r e sa n a d a p t e r s o c k e ta n ds o m ej u m p e rw i r e s

e f o r ei t c a nb e p l u g g e di n t ot h e6 4 ' sc i r c u i tb o a r d .

u tb e c a u s eo f r e c e n tp r i c ed e c r e a s e si n t h eM o t o r o l aM C M -

8 7 6 4 ,t h i sc h i pi s n o wm y E P R O Mo f c h o i c e .T h eM o t o r o l a

P R O M ,u n l i k e t h e2 7 6 4 ,i s p i nc o m p a t i b l ew i t hC o m m o d o r e ' s

E R N A Lc h i p .T h ea d d i t i o n a lc o s to f t h eM C M - 6 8 7 6 4i s o f f s e t

y n o th a v i n gt o f o o la r o u n dw i t ha n a d a p t e r s o c k e ti n t e r f a c e .

T o p r o g r a ma c u s t o mK E R N A Lw i t ht h e P r o m e n a d e ,t h e

m o d i f i e dm a c h i n ec o d em u s tb e l o a d e di n t ot h e6 4 ' sm e m o r y .

F o re x a m p l e ,I r e l o c a t et h ec u s t o mK E R N A La t $ 2 0 0 0s i m p l y

b e c a u s ei t ' s e a s yt o r e m e m b e r .T h eE P R O Mi s t h e np r o

g r a m m e do r " b u r n e d " b yt h eE P R O Mp r o g r a m m e r .U s i n gt h e

P r o m e n a d e( w i t ht h eP r o m e n a d es o f t w a r e )w i t ht h eK E R N A L

a t $ 2 0 0 0 a n dt h e6 8 7 6 4c h i p ,t h ep r o g r a m m i n gc o m m a n dh a s

t h e f o l l o w i n g s y n t a x :

7 i 8 1 9 2 , 1 6 3 8 3 , 0 , 4 8 , 0

" 8 1 9 2 "= d e c i m a ls t a r ta d d r e s so f t h e c o d et o b e b u r n e d

( $ 2 0 0 0 ) .

" 1 6 3 8 3 "= d e c i m a le n da d d r e s so f t h ec o d e( $ 3 F F F ) .

" 0 " = f i r s tb y t eo f t h e E P R O Mt o b e p r o g r a m m e d .( R e

m e m b e r ,c o m p u t e r ss t a r tc o u n t i n gf r o mz e r o ) .

" 4 8 " = P r o m e n a d e" c o n t r o lw o r d " w h i c ht e l l st h eb u r n e r

w h a tt y p eo f E P R O Mi t ' sb u r n i n g .

" 0 " = P r o m e n a d e" p r o g r a mm e t h o dw o r d "o r P M W .T h i s

g i v e s t h eP r o m e n a d ei n s t r u c t i o n so n h o wt h e

6 8 7 6 4s h o u l db e p r o g r a m m e d .

P r o m e n a d eo w n e r st a k en o t e :Y o uw o n ' tf i n dt h ea b o v eP M W

l i s t e di n y o u rd o c u m e n t a t i o n .I w a sf o r c e dt o d e v e l o pm y o w n

P M Wb e c a u s et h es u g g e s t e do n e sf a i l e d t ow o r ko n t h e6 8 7 6 4

a b o u t9 0 %o f t h et i m e .

E P R O Mb u r n i n gt a k e sa b o u t4 m i n u t e s .I f t h e e r r o rl i g h ti s n ' t

f l a s h i n go n t h eP r o m e n a d ea f t e rt h eb u r n i n g ,t h e nt h ec u s t o m

i z e dK E R N A Li s r e a d yt o i n s t a l l .

M o t o r o l aM C M - 6 8 7 6 4E P R O M sa r e a v a i l a b l ef r o mJ A M E C OE l e c t r o n i c si n t h e U n i t e dS t a t e sa s w e l l a so t h e rs o u r c e s .

B e s i d e sb e i n ga d i r e c tr e p l a c e m e n tf o r t h e K E R N A L ,t h i s

E P R O Mc a na l s or e p l a c eB A S I Ca s w e l la s t h e1 5 4 1d i s kd r i v e ' s

R O M .

A u t o l o a dK e r n a lP a t c h( C B MA s s e m b l e rf o r m a t )

p u t " @ : s / k a u t o "

o p tn o s y m

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

* *

* a u t o l o a dk e r n a l *

o n p o w e r u po r r e s e t ,l o a d s

t h e1 s t f i l ef r o md r i v e0

a n dt h e nr u n st h ep r o g r a m .

h o w e v e r ,a d e l a yp e r i o di s

p r o v i d e da l l o w i n g t h eu s e r

t i m et o a b o r tt h e l o a db y

p r e s s i n gt h ec m d rl o g ok e y .

* - b y t o r nh u g h e s v 2 4 0 6 8 5- *

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

h eT r a n s a c t o r 6 7 J u l y1 9 8 6 :V o l u m e7 , I s s u eO 1

Page 72: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 72/88

. s k i p ( ; s e n d sl i n ef e e d ( s )t o p r i n t e r )

;

; c 6 4e q u a t e s

b a s i c

b a s i n i

b a s m s g=

c l a l l

c l o s e

c l r c h n =

d o b a s

k e y d

l o a d =

n d x =

s e t l f s

s e t n a m=

s e t t i m

s h f l a g

t i m e

v a r t a b =

v e c 3 0 0=

. s k i p

;

; c o n s t a n t s

e p r o m =

w a i t =

$ 0 8 0 1

$ e 3 b f

$ e 4 2 2

$ f f e 7

$ f f c 3

$ f f c c

$ a 4 7 4

$ 0 2 7 7

$ f f d 5

$ c 6

$ f f b a

$ f f b d

$ f f d b

$ 0 2 8 d

$ a O

$ 2 d

$ e 4 5 3

0

3

. p a g e' d i v e r s i o n s '

i

; b a s i cs t a r t sh e r e

i n i t i a l i z eb a s i c

; p r i n tp o w e r u pm e s s a g e

; c l o s e a l lf i l e s

; c l o s eo n ef i l e

; i / ot o d e f a u l t s

; b a s i cw a r ms t a r t

; k e y b o a r db u f f e r

; l o a dr a mf r o md i s k

; # o f c h a r si n k e y b r db u f f

; s e tf i l ep a r a m e t e r s

; s e tf i l en a m e

; s e tj i f f yc l o c k

; s h i f tp a t t e r nr e g i s t e r

; j i f f yc l o c k( 3 )

; b a s i c v a r i a b l es t a r t( 2 )

; s e tp a g e3 o . s .v e c t o r s

; 1 = e p r o m / 0= s o f tk e r n a l

; w a i t* 4 = d e l a yi n s e e s

; c a s s e t t er o u t i n ep a t c h e s

I

. s k i p

; n o t e :a t t e m p t e d u s eo f

; w i l lr e s u l ti n

. s k i p

* —

j m p

* =

j m p

* =

j m p

*

j m p. s k i p2

* =

; d i v e r ts y s t e m

. s k i p

. i f n e p r o m<

s t x

j s r

j s r

j s r

j s r

c l i

a c a s s e t t er o u t i n e

l l e g a ld e v i c e # "

$ f 2 c e

$ f 2 7 1

$ f 3 8 b

$ f 7 1 3

$ f 5 3 9

$ f 7 1 3

$ f 6 5 f

$ f 7 1 3

$ f c e f

r e s e t

$ d O 1 6

$ f d a 3

$ f d 5 0

$ f d 1 5

$ f f 5 b

; f i xc a s s e t t e c l o s e

; f i xc a s s e t t eo p e n

; f i xc a s s e t t e l o a d

; f i xc a s s e t t es a v e

; r e s e tv i c i ic h i p ,

i n i t i a l i z ei / o ,

; m e m o r yp o i n t e r s ,

; s o f ti / ov e c t o r s ,

; s c r e e n& k e y b o a r d

j m p a u t o l d

. p a g e' a u t o l o a d '

* = $ f 7 2 c

; p o w e r u pa u t o l o a d

. s k i p

a u t o l d

a u t o l O

. s k i p

; a u t o r u r

;

a u t o 2 0

a u t o 3 0

. s k i p

f i l n a m

r u ni t

. e n d

j s r

j s r

j s r

I d x

t x s

I d a

j s r

I d a

e m p

b e q

I d a

e m p

b n e

j s r

I d a

I d x

I d y

j s r

I d a

I d x

I d y

j s r

I d a

I d x

I d y

j s r

s t x

s t y

I d a

j s r

j s r

v e c 3 0 0

b a s i n i

b a s m s g

# 2 5 1

# 0

s e t t i m

s h f l a g

# 2

a u t o 3 0

t i m e+ 1

# w a i t

a u t o l O

c l a l l

# 2

§ 8

# 0

s e t l f s

# 3

# < f i l n a m

# > f i l n a m

s e t n a m

# 0

# < b a s i c

# > b a s i c

l o a d

v a r t a b

v a r t a b+ 1

# 2

c l o s e

c l r c h n

r o u t i n e

I d y

I d as t a

n y

c p y

b n e

s t y

j m p

. b y t

. b y t

# 0

r u n i t . yk e y d . y

# 4

a u t o 2 0

n d x

d o b a s

' 0 : * '

' r u n ' , 1 3

; g ot o a u t o l o a d

; s e t$ 0 3 0 0v e c t o r s ,

; i n i t i a l i z eb a s i c ,

; p r i n tp o w e r u pm e s s a g e ,

; a n dr e s e ts t a c k

; z e r oj i f f yc l o c k

; i fc m d rk e yp r e s s e d ,

; s k i pt h el o a d

; e l s ew a i tt i l ld e l a yi s u p

; t h e nc l o s ea l lf i l e s

; i g n o r ef i l eh e a d e r

; l o a d" 0 : * " , 8

; s e te n d - o f - b a s i cp t r s

; c l o s el o a dc h a n n e l

; w r i t e" r u n "+ c r; t ok e y b o a r db u f f e r

; a n ds e t b u f f e r s i z e

; t h e nr u nt h ep r o g r a m

T h eT r a n s a c tO f J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 73: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 73/88

Y M A S S :

A S y m b o l i cA s s e m b l e r

o rT h eC o m m o d o r e6 4

R o b e r tH u e h n

N e u s t a d t ,O n t a r i o

N o wA s s e m b l eA n yT r a n s a c t o rP r o g r a m ,A n y t i m e !

y m b o l i ca s s e m b l e r s ,u s e dt o a s s e m b l em a c h i n el a n g u a g e

o g r a m s ,a r e e s s e n t i a l t o o l sf o r s e r i o u sp r o g r a m m e r s .T h e

e r i t so f m a c h i n el a n g u a g en e e dn o tb e d i s c u s s e dh e r e .I f y o u

a v e n ' tb r o k e nd o w na n db o u g h to n ey e t ,y o u ' v e p r o b a b l y

e e nu s i n ga m o n i t o rs u c ha s S u p e r m o n .M o n i t o r sw e r en e v e r

e a n tf o rp r o g r a md e v e l o p m e n t .A f t e rt r y i n gt o i n s e r ta c o u p l e

i n s t r u c t i o n si n t oa l o n gp r o g r a mw i t ha m o n i t o r ,y o u m u s t

s or e a d j u s tt h er e s to fy o u rp r o g r a mp r o p e r l y .T h e ny o ut h i n k

r y h a r d a b o u ta l t e r n a t i v e s .

n f o r t u n a t e l yt h e r ew e r ev e r yf e wc h o i c e su n t i ln o w .S Y M A S S

a sw r i t t e nt o f i l lt h eg a p .I t i s a v e r yf a s t ,c o m p a c t ,e a s yt o u s e

s e m b l e rw i t he n o u g hf e a t u r e sf o rs e r i o u sp r o g r a m s .B e s i d e s ,

si n t h ep u b l i cd o m a i n .A f t e re x p e r i e n c i n gS Y M A S Si n a c t i o n ,

uw i l lg l a d l yd e m o t ey o u rm o n i t o rt o d e b u g g e r .

o u ' r el i k e l ya l r e a d yf a m i l i a rw i t hS Y M A S Ss y n t a x , s i n c ei t i s

t a l l yc o m p a t i b l ew i t hP A L .P A Ls o u r c ec o d ei s p u b l i s h e d

t e ni n e a c hi s s u eo f T h eT r a n s a c t o r .S Y M A S Ss y n t a xe v o l v e d

r o u g hm a n yc h a n g e sf r o mi t sb e g i n n i n ga s aB A S I Cp r o g r a m

h i c hw o u l dt a k eo v e r t w e n t ym i n u t e st o a s s e m b l ee a r l y

r s i o n s . )I t n o wi n c l u d e sm o s to f P A L ' sf e a t u r e s ,i n c l u d i n g t h e

e sm o s to f t e nu s e di n T r a n s a c t o rp r o g r a m s .P A Lh a s n o

o b l e m sa s s e m b l i n gS Y M A S Si t s e l f ,b u t S Y M A S Si s f a s t e r .

Y M A S Ss o u r c ec o d ei s a b o u t1 8 K b y t e sl o n ga n dP A Lt a k e s

o u t1 7s e c o n d st o a s s e m b l ei t . S Y M A S Sa s s e m b l e si t s e l fi n s i xc o n d s .

p ei n S Y M A S S3 . 0 . G E N ,t h e n r u ni t . ( I t ' sn o t l o n g ,b u ty o u

g h tc o n s i d e rg e t t i n gt h eT r a n s a c t o rd i s kf o rt h i si s s u e ,e s p e

a l l yi f y o uw a n tt h e s o u r c ec o d e . )I t w i l lc r e a t e t h ef i n a l

o g r a m ,S Y M A S S3 . 0 ,o n d i s k .( T h eg e n e r a t o rp r o g r a mc o u l d

s ob e m o d i f i e df o rt a p e ,s i n c eS Y M A S Sd o e s n ' tu s et h ed i s k

i v e . )T h eS Y M A S S3 . 0l o a d e rw i l lr e l o c a t ei t s e l fa t t h et o po f

e m o r y w h e ni t i s r u n .S o u r c ec o d ei s e n t e r e d w i t ht h eB A S I C

i t o r ;u s e ' s y s7 0 0 'a l o n eo n t h e f i r s tl i n et o c a l lS Y M A S S .

a v eo u t t h eP A L ' s. o p tx x s t a t e m e n ts i n c eS Y M A S Sa s s e m b l e s

m e m o r yo n l y .T y p e' r u n 'a n ds a v et h eo b j e c tc o d ew i t ha

o n i t o r .

P r o b a b l yt h em a j o rl i m i t a t i o no fS Y M A S Si s b o t hs o u r c ea n dt h e

r e s u l t i n go b j e c tc o d em u s tr e s i d ei n m e m o r ya l o n g w i t hS Y

M A S S .S Y M A S Sd o e s n ' tt a k eu p m u c hr o o m ,( a b o u t2 . 6K ) b u t

y o uw i l lh a v e p r o b l e m si f t h es o u r c ei s t o ol o n gt o f i tw i t ht h e

o b j e c tc o d e .

A p a r t i a ll i s to f S Y M A S S / P A Lc o m p a t i b l ef e a t u r e sf o l l o w s :

* = $ c 0 0 0 ; d e f i n es t a r to f p r o g r a m

n a m e= $ f f ; a s s i g na v a l u et o a s y m b o l

* = * + n ; s k i pn b y t e sf o rs t o r a g e

; ; c o m m e n t sf o l l o w

$ ; h e x a d e c i m a lv a l u e , d e f a u l ti s d e c i m a l

% ; b i n a r yv a l u e

; A S C I 1v a l u eo f c h a r a c t e r

! ; f o r c ea b s o l u t e a d d r e s s i n g

> h i g h ,< l o w; l o wo r h i g hb y t eo f w o r d

+ , - ; a d d ,s u b t r a c t

. b y t e$ f f ; s t o r eb y t e s

. w o r dS f f f f ; s t o r ew o r d s

. a s c" t e x t " ; s t o r es t r i n go f c h a r a c t e r s

. e n d ; e n da s s e m b l y

Y o uc a n u s eS Y M A S Sw i t h o u tk n o w i n gh o wi t w o r k s ,b u t t h e

e x p l a n a t i o nw i l lh e l py o ug e tt h em o s to u to f i t .

S Y M A S Si t s e l fi s c o m p o s e do f s m a l lm o d u l e s ,e a c hp e r f o r m i n g

a s p e c i f i cf u n c t i o n .I n g e n e r a l ,e a c hm o d u l ec o u l db e r e p l a c e d

b y a n o t h e rs e c t i o no f c o d e ,i f i t p e r f o r m st h e f u n c t i o nc o r r e c t l y .

T h i sm a k e si t e a s i e rt o m o d i f ys m a l ls e c t i o n sw i t h o u ta n ys i d e

e f f e c t s .S Y M A S Sw a sd e b u g g e dt h a tw a y .

S Y M A S Sm a k e st w op a s s e so v e rt h es o u r c ec o d e .D u r i n gt h e

f i r s tp a s s ,S Y M A S Sb u i l d s as y m b o lt a b l e o fa l l t h e s y m b o l s

w h i c ha p p e a ri n t h ep r o g r a m .I t t h e ns t o r e st h eo b j e c tc o d et o

m e m o r yo n t h es e c o n dp a s s ,a f t e ra l l u n k n o w ns y m b o lv a l u e s

h a v ea l r e a d yb e e nd e f i n e d .A v a r i a b l ec a l l e dF L A Gi s s e tt o 0 o r

1 , d e p e n d i n g w h i c hp a s sS Y M A S Si s c u r r e n t l y o n .

eT r a n s a c t o r 6 9 J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 74: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 74/88

T h es o u r c ec o d eh a sa l r e a d yb e e nt o k e n i z e db y t h e B A S I C

e d i t o r ,b u tt h i sc a u s e sn op r o b l e m s .I t e v e nr e d u c e st h ea m o u n t

o f m e m o r yn e e d e df o rt h e s o u r c e .O p c o d e ss u c ha s ' a n d 'a r e

a l r e a d ys t o r e da s t o k e n si n t e r n a l l y ,a s a r ec u s t o m p s e u d o - o p s

l i k e' . e n d ' .

W O R Di s t h em o s tb a s i cr o u t i n et o f i n dt h en e x tw o r d .W O R D

d e f i n e sa w o r da s as e q u e n c eo f c h a r a c t e r se n d i n gw i t ha s p a c e ,

c o l o n ,s e m i - c o l o n ,o r e q u a ls i g n .I t a l s oi g n o r e s l e a d i n gs p a c e s ,

a n dh a sa q u o t em o d et h a ta c c e p t sa n yc h a r a c t e re x c e p tt h e

e n do f l i n e .

A p o i n t e r ,A D , a n dt h e. y r e g i s t e ri s a l w a y s u s e dt o a c c e s s t h e

s o u r c ec o d e .W h e nW O R Di s c a l l e d ,t h e p o i n t e rA D i s a d

v a n c e do v e rl e a d i n gs p a c e s ,t h e nt h e. y r e g i s t e ri s a d v a n c e dt o

t h ee n do f t h ew o r da n dt h er e s u l ti s s t o r e di n L E N .T h e r e f o r e ,

L E Ni s t h e l e n g t ho f t h ew o r d ,l ( a d ) , y 'g i v e s t h e s t o p c h a r a c t e r

w h e n. y e q u a l sL E N ,a n dt h e f i r s tc h a r a c t e rw h e n. y e q u a l s

z e r o .T w or o u t i n e s ,N E X T W O R Da n dN E W W O R D ,s e tu p A D

a n dc a l lW O R D .N E X T W O R Ds t a r t sa t t h e c u r r e n ts t o pc h a r a c

t e r ,s o w i l lo n l yg e ta n o t h e rw o r di f a s p a c es e p a r a t e st h e m .

N E W W O R D ,o n t h eo t h e r h a n d ,s k i p so v e rt h es t o p ,a n di s

u s e dt o g e tt h ee x p r e s s i o na f t e ra n e q u a l ss i g n .

I t ' si m p o r t a n tt o u n d e r s t a n dh o wt h o s er o u t i n e sw o r ki f y o u

w i s ht o u s et h e mi n y o u ro w na d d i t i o n st o S Y M A S S .

S Y M A S Sc r e a t e sa s y m b o lt a b l ew h i c hs t a r t sa t t h e t o po f

m e m o r ya n dg r o w sd o w n w a r dt o t h ee n do f t h es o u r c ec o d e .A

s y m b o lt a b l eo v e r f l o wr e s u l t si f n o te n o u g hm e m o r yi s a v a i l a

b l e .E a c he n t r y t a k e s t e nb y t e s ; e i g h tt o s t o r et h en a m e , a n d

a n o t h e rt w of o rt h ev a l u e .I f t o k e n sa r ee m b e d d e di n t h en a m e ,

i t sa c t u a ll e n g t hc o u l db e l o n g e r t h a ne i g h t c h a r a c t e r s ,b u ti t ' s

n o t ag o o di d e a .

C R S Y Mc r e a t e sa s y m b o lt a b l e e n t r y .I t d e c i d e si f t h e r ei s

e n o u g hr o o m , t h e nc o p i e s t h e c u r r e n tw o r di n t ot h et a b l e .I t i s

y o u rr e s p o n s i b i l i t yt o m a k es u r ea s y m b o li s n ' td e f i n e dt w i c e .

W h e n e v e rt h ev a l u eo f a s y m b o li s n e e d e d ,F I N D S Y Mi s c a l l e d .

F I N D S Y Mr e t u r n sw i t ht h ev a l u ei n t h e . a a n d. x r e g i s t e r s ,o r

p r i n t sa n ' u n d e f i n e ds y m b o l 'm e s s a g e .

F I N D S Y Mu s e st h es i m p l e s t p o s s i b l es e a r c hm e t h o d ,s e a r c h i n g

f r o m b e g i n n i n gt o e n d .I t m i g h t b e w o r t h w h i l et o u s ea d i f f e r e n t

m e t h o d , s u c ha s a h a s hf u n c t i o n ,t o s a v et i m e . ( C a l c u l a t et h e

s t o r a g ea d d r e s s w i t ha s p e c i a lf u n c t i o n ,s u c ha s t h er e m a i n d e r

o f t a b l es i z e/ A S C I Is u mo f n a m e . )

T h eo p c o d et a b l em a k e su p 7 2 8b y t e so f S Y M A S S .A g a i n ,

F I N D O Pd o e sa l i n e a rs e a r c h .T h e m o r ec o m m o n l yu s e d

o p c o d e sa r e c l o s et o t h eb e g i n n i n g .Y o uc o u l df i n e - t u n et h e

t a b l et o y o u rs t y l eb y c o u n t i n gt h e n u m b e ro f t i m e se a c h

o p c o d ea p p e a r si n y o u rp r o g r a m s , t h e n r e a r r a n g i n gt h et a b l ei n

t h a t o r d e r .I f y o ud o s o , c h a n g et h e b r ko p *a n db i t o p *i n

D O O Pa n dP U T O Pt o t h e i rn e wp o s i t i o n s .Y o uc o u l da l s o e a s i l ya d de x t r ao p c o d e ss u c ha s s k b( s k i p b y t e )t o t h et a b l e ,c h a n g i n g

N O P St o r e f l e c tt h ec h a n g e .

T w oo t h e rm a j o rr o u t i n e s a r eE V A La n dP U T O P .

E V A Lt a k e s t h e c u r r e n tw o r d ,a n e x p r e s s i o n c o n t a in o

s p a c e s ,e v a l u a t e si t , a n d r e t u r n s t h er e s u l t .I t c a n a d d o r

s u b t r a c ts y m b o l s ,d e c i m a l ,a n dh e x a d e c i m a l n u m b e rA c h a r

a c t e re n c l o s e di n s i n g l eq u o t e sw i l lr e t u r ni t sA S C I Iv a l u e .A >

o r < c a n b ep l a c e da t t h eb e g i n n i n go f t h ee x p r e s s i o nt o r e t u r n

e i t h e rt h eh i g ho r l o wb y t eo f t h er e s u l t .T h en u m b e rc o n v e s i o n r o u t i n e so n l yc o n v e r tf r o mB A S I C ' Sf o r m a ta s a s t r i n go f

c h a r a c t e r st o a u s e f u lt w o - b y t eb i n a r yn u m b e r ,n o tb o t h w a y

T h i si s w h y S Y M A S Sg i v e s t h ee n do f a s s e m b l ya s a d e c i m a

n u m b e ri n s t e a do f h e x .T h eB A S I CR O Mr o u t i n et h a tp r i n t s' i n

x x x x x 'i s u s e d .

D u r i n gt h e f i r s tp a s sD O O Pk e e pt r a c ko f t h e c u r r e n to b j e c

a d d r e s s w i t ha p o i n t e rc a l l e dP T R .P U T O Pi s u s e do n t h e

s e c o n dp a s st o s t o r et h em a c h i n ec o d ei n t om e m o r y .I t r e c o g

n i z e sa l l a d d r e s s i n gm o d e s .S i n c et h e r ei s n o d i f f e r e n c i n

s y n t a xb e t w e e nz e r oa n da b s o l u t em o d e s ,t h e c o r r e c tm o d

m a ys o m e t i m e sb e a m b i g u o u s .

S u p p o s e y o ua r es t o r i n gv a r i a b l e si n m e m o r ya f t e rt h ee n do f

y o u rp r o g r a m ,w i t ha l a b e lt o i d e n t i f yt h el o c a t i o n .O n t h ef i r s t

p a s s ,a n i n s t r u c t i o ns u c ha s ' I d av a r i a b l e 'w o u l dn o r m a l l yc a u s

F I N D S Y Mt o g i v ea n u n d e f i n e ds y m b o le r r o r .F I N D S Y Mt h e r e

f o r et r i e st o g u e s sy o u rm e a n i n gb y r e t u r n i n g t h ev a l u eo f P T R

f o ru n d e f i n e ds y m b o l so n t h ef i r s tp a s s .O t h e ra s s e m b l e r sm a y

u s ez e r o ,a n dc a u s ea n i n s t r u c t i o nl i k e ' I d av a r i a b l e + 1t o

p r o d u c ea p h a s ee r r o r .A p h a s ee r r o rr e s u l t sw h e nt h ea s s e m

b l e rm a k e st h ew r o n gg u e s s ,a n dr e s e r v e sa n i n c o r r e c tn u m b e

o f b y t e sf o ra n i n s t r u c t i o n .

S Y M A S Sd o e s n ' th a v e p h a s ee r r o r s .Y o uc a nf o r c eS Y M A S t o

u s ea b s o l u t em o d ew i t ha ! p r e f i x ,o r t o z e r op a g eb y a < , w h i c

w o r k sb y r e t u r n i n g t h el o wb y t e .

Y o uc a na d dy o u ro w ns p e c i a l i z e dc o m m a n d st o S Y M A S Sb y

a d d i n gt h e mt o t h e C U S T O Pr o u t i n e .O n es u c hc o m m a n

' . p a d 'w i l la d da z e r ot o t h eo b j e c tc o d ei f t h e c u r r e n ta d d r e s si s

o d d .Y o um i g h tu s e i t s o m e t i m et o m a k es u r ea j u m pt a b l e

d o e s n ' t c r o s s ap a g e b o u n d a r y .

S Y M A S Sl e a v e sr o o mf o ro p t i m i z a t i o n ;t h e m a j o rg o a l si n i t s

d e s i g nw e r es i m p l i c i t y ,s p e e da n de a s eo f u s e .W O R D ,s i n c ei t i s

u s e ds o o f t e n ,i s a g o o dc a n d i d a t e .P A Ld o e s n ' ts e e mt o

r e c o g n i z e' = ' a s t h ee n do f a w o r d .I f t h e r e l e v a n tp a r t so f

S Y M A S Sw e r ec h a n g e d ,t h e c h e c kc o u l d b e t a k e no u t o f

W O R D .A u s e f u l ,b u tp r o b a b l ym o r ec o m p l i c a t e di m p r o v e m

i s a s s e m b l yt o d i s k .

S Y M A S S ' sh i d d e ns t r e n g t hi s t h e e a s e w i t hw h i c hi t c a nb e

m o d i f i e d ,c o m p a r e dt o c o m m e r c i a lp r o g r a m sw h i c hd o n o t

p r o v i d e s o u r c ec o d e .Y o uc a na l s os t u d yS Y M A S Sj u s tt o l e a r n

h o wt o w r i t ea n a s s e m b l e r .I n t h ee n dt h o u g h ,S Y M A S Si s a t o o l

w h i c hw i l le n a b l ey o ut o w r i t em a c h i n el a n g u a g ep r o g r a m a sc o m p l e xa s y o u r g r o w i n gs k i l l sa l l o w .

T h eT r a n s a c t o r 7 O J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 75: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 75/88

M A S SS o u r c eL i s t i n g

r c ec o d e( o rS Y M A S S3 . 1h a sn o tb e e nv e r i f i z e d- i t ' sh e r e

e r e n c e o n l y- w ec o u l d n ' ti m a g i n ea n y o n ee n t e r i n gi t b y

o u w a n ts o u r c ew es u g g e s ty o ut v p ei n t h e l o a d e ra n d

e m b l ei

s 7 0 0

< <

o t h e r w i s eg e tD i s k ' 1 2f o rt h i si s s u e

< < s y m a s s 3 . 1> > > >

s y m b o l i c a s s e m b l e r

r o b e r th u e h nJ u n e .O c t o b e r1 9 8 5

=c ( ) 0 0

s m 3 . 1 0 3

op a g ee q u a t e s

a 5 r c

v a r

m s i z

k

m p t r

m e n d

p t r

n s t a n t

s

d y

n e

l b a s

d l i n e

$ 5 0 ; s t a r t o ls o u r c e

- $ 2 d ; e n do fs o u r c e

$ 3 7 . l o po fs y m b o lt a b l e

= $ 4 e ; b a s i cl i n el i n k

= $ 3 9 : c u r r e n t l i n en u m b e r

$ 7 a ; c u r r e n ts o u r c ea d d r e s s

■ $ 5 2 ; s y m b o l v a l u ep o i n t e r

= $ 5 7 ; b o l t o mo fs y m b o lt a b l e

$ 5 9 ; c u r r e n t o b j e c ta d d r e s s

= $ 5 b ; o p c o d et a b l ep o i n t e r

> $ 5 d J e n g l ho fw o r d

= $ 2 6 t e m p o r a r yn u m b e r

■ $ 2 8 ; s t o r a g ef o re v a l

= $ 2 a ; s i g ns a v e

= $ 5 e

= $ 5 1

= $ 6 0

$ 0 2 ; f i r s to rs e c o n dp a s s

- 5 5 ; n u m b e r o li n s t r u c t i o n s

= $ a 4 7 4 ; b a s i cr e a d y

* $ b d c 2 ; r > r i n l' i nl i n e '

= 5 a 7 a e x o n l i n u eb a s i c

■ $ a 6 c 9 ; l i s ll i n e

= $ a 6 1 3 ; f i n db a s i cl i n e

i np r o g r a m

l i n e

l w o r d

w l

2

3

4

• ; b e g i nf i r s tp a s s

I d a ' 0

s l a f l a g

i d x ' < m e s s s t a r; s t a r t

: d y * > m e s s s t a r

s r p r i n t m s g

d x $ 3 a

m x

} n e i l l

m p r e a d y . s i n c ei n d i r e c tm o d ei d x " < m e s s f i r; ( i r s tp a s s

I d y * > m e s s f i r

i s r p r i n t m s g

I d a m e m s i z ; i n i ts y m b o lt a b l e

s t a s v m e n d

; d a m e m s i z + 1

s l a s y m e n d+ l

i n c a d

D n e i t 2

i n c a d + 1

I d a a d

s l a s l a s r c

s l a l i n k

I d a a d + 1

s t a s l a s r c + 1

s t a l i n k + l

■ • ; s l a t tn e x tl i n e

j s r n e x t l i n e

b n e g e t w o r d

j m p s e c p a s s

- ' ; p r o c e s sw o r d

j s r w o r d

b n e g w l

e m p' $ b 2 ; = t o k e n

b n e n e x t

j m p a d d v a l

I d x " 0 ; c h e c k l o r .= . + l

I d a ( a d . x )

e m p' $ a c ; ■ t o k e n

b n e g w 2

j s r d o p l r

j m p n e x t

I d a ( a d ) , y

e m p' $ b 2 ; =

b n e g w 3

j m p a d d s y m

j s r f i n d o p

b e c g w 4

j m p d o o p

I d y ' 0

I d a ( a d ) . y

e m p' "

1 0 3 0

I O 4 0

1 0 5 0 ;

1 0 6 0l a b e l

1 0 7 0 ;

1 0 8 0

1 0 9 0

1 1 0 0

1 1 1 0

1 1 3 0

1 1 4 0

1 1 5 0 ;

1 1 6 0n e x l

1 1 7 0 ;

1 1 8 0

1 1 9 0

1 2 0 ( 1

1 2 1 ( 1

1 2 2 0

1 2 3 0

1 2 4 0

1 2 5 0n l

1 2 6 0

1 2 7 0

1 2 8 0

1 2 9 0

1 3 0 ( 1

1 3 H i

1 3 2 0n

1 3 3 0 ;

1 3 4 0s e c p a s s

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 n e w l i n e 2

1 4 6 0 ;

1 4 7 0

1 4 8 0

1 4 9 0

1 5 0 0 ;

1 5 1 0 g e l w o r d 2

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

1 6 1 0 g 2 w l

1 6 2 0

1 6 3 0

1 6 4 O g 2 w 2

1 6 5 0

1 6 6 0

1 6 7 0

1 6 8 0

1 6 9 0 ;

1 7 O O n e x t 2

1 7 1 0 ;

1 7 2 0

1 7 3 0

1 7 4 0

1 7 5 0

1 7 6 01 7 7 0

1 7 8 0

1 7 9 0 n 2 x l

1 8 0 0

1 8 1 0

I t !2 1 1

1 8 3 0

1 8 4 0

1 8 5 0

1 8 6 0 n 2 x

1 8 7 0 ;

1 8 8 0F i n i s h

1 8 9 0 ;

1 9 0 0

1 9 1 0

1 9 2 0

1 9 3 0

1 9 4 0

1 9 5 0

I 9 6 01 9 7 0

1 9 8 0

1 9 9 0 ;

b n e l a b e l

j m p c u s t o p

= • ; s a v e w o r d , c u r r e n t a d d r e s s

j s r c r s y m

I d v " 0

I d s p t r

s l a ( s y m p t r ) . y

i n y

I d a p t r + 1

s t a ( s v m p t r ) . y

= • ; g e lr e a d y( o rn e x tw o r d

I d v l e n

I d a ( a d ) , y

e m p■ '

b e q n l

e m p' ' : '

b e q n l

j m p n e w l i n e

i n y

l y a

c l c

a d c a d

s l a a d

b e c n

i n c a d + 1

j m p g e t w o r d

= * ; b e g i ns e c o n dp a s s

i n c f l a g

I d x ' < m e s s s e c; s e c o n d p a s s

I d y " > m e s s s e c

j s r p r i n t m s g

I d a s l a s r c ; p u l l i n ka t s t a r t

s l a l i n k

I d a s l a s r c+ 1

s l a l i n k + l

= • ; s t a r ln e x tl i n e

j s r n e x t l i n e

b n e g e t w o r d 2

j m p f i n i s h

= • ; p r o c e s sw o r d

j s r w o r d

b e q n e x t 2

I d x ' 0

I d a ( a d . x )

e m p' $ a c •

b n e g 2 w l

j s r d o p t r

j m p n e x t 2

j s r l i n d o p

b e c g 2 w 2

j m p p u t o p

I d y ' 0

I d a ( a d ) , y

e m p' ' . "

b n e n e x l 2

j m p c u s t o p

= • ; g e lr e a d yl o rn e x lw o r d

I d v l e n

I d a ( a d j . y

e m p' 5 2 0

b e q n 2 x l

e m p' 5 3 a

b e q n 2 x l

j m p n e w l i n e 2

i n j

l y a

c l c

a d c a d

s l a a d

b e c n 2 x

i n c a d + 1

j m p g e t w o r d 2

= * ; e n d

l d . \ ' < m e s s a c. a s s e m b l yc o m p l e t e

I d y ' > m e s s a c

j s r p r i n t m s g

I d a p t r

s t a l i n e

I d a p l r + 1

s t a l i n e + 1

j s r i n l i n e

j m p r e a d y

2 0 0 0 s u b r o u t i n e s u s e d b v m a i n p r o g r a m

2 0 1 0 ;

2 0 2 0a d d s y m= . ; s a v es y m b o lw i t hv a l u e

2 0 3 0 ;

2 0 4 0

2 0 5 0

2 0 6 0

2 0 7 0

2 0 8 0

2 0 9 0

2 1 0 0

2 1 1 0

2 1 2 d

2 1 3 0 ;

2 1 4 0a d d v a l

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

2 2 3 ( 1

2 2 4 0

2 2 5 0 c r s y m

2 2 6 0 ;

2 2 7 0

2 2 8 0

2 2 9 1 1

2 3 0 0

2 3 1 0

2 3 2 0

2 3 3 0c s l

2 3 4 0

2 3 5 0

2 3 6 02 3 7 0

2 3 8 0

2 3 9 0

2 4 0 0

2 4 1 0

2 4 2 0c s 2

2 4 3 0

2 4 4 0

2 4 5 0

2 4 6 0

2 4 7 0

2 4 8 0

2 « 0

2 5 0 0

2 5 1 0c s 4

2 5 2 0

2 5 3 ( 1

2 5 4 0

2 5 5 0c s 5

2 5 6 02 5 7 0

2 5 8 0

2 5 9 0

2 6 0 d

2 6 1 0 ;

2 6 2 0d o o p

2 6 3 0 ;

2 6 4 0

2 6 5 0

2 6 8 )

2 6 7 0

2 6 8 ( 1

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 0d o l 2

2 7 6 02 7 7 0 d o 3

2 7 8 0

2 7 9 0

2 8 0 0d o l

2 8 1 0

2 8 2 0

2 8 3 0

2 8 4 0 d o 2

2 8 5 0

2 S 6 0

2 8 7 0

2 4 8 ( 1

2 3 9 "

2 9 ( 1 0

2 9 1 0

2 9 2 0

2 9 3 0

2 9 - l d

2 9 5 0

2 9 6 02 9 7 0

2 9 8 0

2 9 9 0

s o n

3 0 1 0

3 0 2 0

j s r c r s y m

j s r n e w w o r d

j s r e v a t

I d y ' 0

s t a ( s y m p t r ) . y

i n y

I x a

s t a ( s y m p l r ) . y

j m p n e x l

= * ; c h a n g el a b e l i n t os y m b o l

j s r n e w w o r d

j s r e v a l

I d y ' 0

s l a ( s y m p t r l y

i n y

t x a

s l a ( s y m p t r l y

j m p n e x t

= • ; c r e a t es y m b o lt a b l ee n t r y

I d a s y m e n d ; l o w e rs y m e n dt o

s e c ; m a k er o o m

s b c ' 1 0

s t a s v m e n d

b e s c s l

d e c s v m e n d + 1

e m ps t a v a r ; c h e c kf o r

I d a s y m e n d + l

s b c s t a v a r + 1

b e s c s 2

I d x ' < m e s s s t o; s y m b o lt a b l e

I d y ' > m e s s s t o o v e r f l o w

j s r p r i n t m s g

j s r i n l i n e

i m p l i s t l i n e

c l c ; p o i n ls y m p t rt o

I d a s v m e n d ; s y m b o l v a l u e a d d r e s s

a d c ' 8

s t a s y m p t r

I d a s y m e n d + l

a d c ' 0

s t a s y m p t r + 1

I d v ' 8 ; e r a s es p a c el o rn a m e

I d a " 0

d e y

s l a ( s y m e n d ) . y

b n e c s 4

I d y l e n ; m a xl e n g t hi s 8

d e y ; c o p ys y m b o ln a m e

I d a ( a d ) . y

s l a ( s y m e n d j . y

l y a

b n e c s 5

r t s

= • ; m o v ep i rp a s t i n s t r u c t i o n

I d v " 0

I d a ( a d ) , y

e m p• • ) '

b e q d o 3

e m p' ' b '

b n e d o l

c p x ' $ 2 1 ; b r ko p "

b e q d o l

c p x " $ 2 0 . b i to p '

b e q d o l

j s r n e x t w o r d

I d a ' 2

b n e d oj s r n e x t w o r d

I d a ' 3

b n e d o

j s r n e x t w o r d

b n e d o 2

I d a ' 1

b n e d o

I d v ■ ( )

I d a ( a d ) . y

e m p* " ' "

b e q d o l 2

e m p' ' ( '

b e q d o ! 2

I d v l e n

d e y

b e q d o 5

d e y

b e q d o 5

I d a ( a d ) . y

e m p• ' , 'b n e d o 5

i n v ; r e c o g n i z ei n t e n d e da b s o l u t e

I d a ( a d ) . y

I d y ' 7

e m p* ' x *

b e q d o 7

3 0 3 0

3 0 4 0 d o "

3 0 5 0

3 0 6 0

3 0 7 0

M i l l

3 1 0 0

3 1 1 0

3 1 2 0

3 1 3 ( 1

3 1 4 0

3 1 5 0 d o 5

3 1 6 0 d o 6

3 1 7 0d o l 3

3 1 8 0 d o

3 1 9 0

3 2 ( 1 0

3 2 1 0

3 2 2 0

3 2 3 0d o 4

3 2 4 0 ;

3 2 5 0d o p l r

3 2 6 0 ;

3 2 7 0

3 2 8 0

3 2 9 u

3 3 ( 1 0

3 3 1 0

3 3 2 0

3 3 3 0 ;

i n y

I d a ( o p p t r ) . y

e m p' S l a

b e q d o l 3

I d v l e n

d e y : d e y

s t y l e n

j s r e v a l

i n c l e n

i n c l e n

c p x " 0

j m p d o 6

j s r e v a l

b e q d o l 2

I d a ' 3

c l c

a d c p t r

s t a p t r

b e c d o 4

i n c p t r + 1

j m p n e x t

= * ; c h a n g ep t r e g .» = » + 2

j s r n e x t w o r d

j s r n e w w o r d

j s r e v a l

s t a p t r

s t x p t r + 1

r t s

3 3 4 0; e v a lr o u t i n e sb e g i n h e r e

3 3 5 0 ;

3 3 6 0l i t e r a l

3 3 7 0 ;

3 3 8 0

3 3 9 H

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 0s y m

3 4 7 0 ;

3 4 8 0s v l

3 4 9 0

3 3 0 0

3 5 1 0

3 5 2 0

3 5 3 0

3 5 . 1 ( 1

3 5 5 ( 1

3 5 6 0s v

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 0e v a l

3 6 4 0 ;

3 6 5 0

3 6 6 0

; i ( i ? o

: « « ( )

3 6 9 0

3 7 0 0e v l

3 7 1 0

3 7 2 0

3 7 3 0

3 7 4 0

3 7 5 0 e v 8

3 7 6 03 7 7 0

3 7 8 0

3 7 9 0

3 8 0 ( 1

3 8 1 0

3 8 2 0

3 8 3 0

3 8 4 0

3 8 5 0

3 8 6 0 e v 9

3 8 7 0

; s s 8 o

3 8 9 0

W i l d

3 9 1 0

3 9 2 0 ;

3 9 3 0h i l o

3 9 4 0 ;

3 9 5 0

3 9 6 03 9 7 0

3 9 8 0

3 9 9 0h i

4 0 0 0

4 0 1 0 ;

4 0 2 0p t r v a l

= « ; r e t u r n s i n g l ea s c i iv a l u e

i n y

I d a ( a d ) , v

s l a t l

I d a ' 0

s l a 1 1+ 1

i n y r i n y

j m p l a s t

= • : l i n de n d a n dc a l ll i n d s y n :

i n y

c p y l e n

b e q s v

I d a ( a d ) , y

e m p' $ a a ; +

b e q s y

e m p' $ a b ; -

b n e s v l

s t y l ij s r l i n d s v m

I d y 1 1

s l a 1 1

s t x t l + 1

j m p l a s t

= • e v a l u a t es i n g l ee x p r e s s i o n

I d a ' 0

s t a 1 2

s t a 1 2 + 1

s t a s s

s l a t 4

I d v ' 0

I d a ( a d j . y

e m p* " $ "

b n e e v 8

j m p h e x

e m p' $ 2 2 ; '

b e q l i t e r a le m p' S a c ; •

b e q p t r v a l

e m p' S b l ; >

b e q h i l o

e m p* $ b 3 : <

b e q h i l o

e m p * * % '

b n e e v 9

j m p b i n

s e c

s b c " 5 3 0

b e e s y m

e m p* S 0 a

b e s s y m

j m p d e c i

= • ; > o r< b y t e e x t r a c t i o n s

s t a t 4

i n c a db n e t i l

i n e a d + 1

d e c l e n

b n e e v l

= • ; g i v ec u r r e n t a d d r e s s

eT r a n s a c t o r 7 1 J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 76: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 76/88

4 0 3 0 -

4 0 4 0 '4 0 5 0

4 0 6 0

4 0 7 0

4 0 8 0

4 0 9 0 ;

4 1 0 0l a s l

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 O e v 3

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 0e v 4

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 0s i g n

4 3 9 0 :

4 4 0 0

4 4 1 0

4 4 2 "

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

4 5 0 0

4 5 1 O e v 5

4 5 2 0

4 5 3 0

4 5 4 0

4 5 5 0

4 5 6 0

4 5 7 0e v

4 5 8 0

4 5 9 0

4 6 0 0

4 6 1 0

4 6 2 0e v 6

4 6 3 0

4 6 4 0

4 6 5 0

4 6 6 0

4 6 7 0 e v 7

4 6 8 0

4 6 9 0

4 7 0 0 ;

4 7 1 0h e x

4 7 2 0 ;

4 7 3 0

4 7 4 0

4 7 5 0

4 7 6 04 7 7 0h x l

4 7 8 0

1 7 9 0

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 0

4 8 7 0

4 8 8 0 h x 2

4 8 9 0

1 9 0 1 )

4 9 1 0

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 0

5 0 1 0

5 0 2 0

i n y

I d a p t r

s l a i l

I d a p l r+ 1

s t a 1 1+ 1

= . ; p e r f o r ml a s ls i g n

I d a s s

b n e e v 3

I d a 1 1 ; n o s i g n

s l a 1 2

I d a I l + l

s l a 1 2 + 1

i m p s i g n

c m p' $ a a ; +

b n e e v 4

c l c

I d a I I

a d c 1 2

s t a 1 2

I d a I l + l

a d c 1 2+ 1

b c c s i g n

i m p i q

s e c ; - ( d e f a u l t )

I d a t 2

s b c 1 1

s l a 1 2

I d a 1 2 + 1

s b c I l + l

s t a 1 2+ 1

b c c i q

= . ; s a v e s i g n o rs l o p

c p v l e n

b e q e v

I d a ( a d ) , y

s t a s s

i n v

l y a

c l c

a d c a d

s l a a d

b c c e v 5

i n c a d + 1

s e c

I d a l e n

s l y l e n

s b c l e n

s l a l e n

j m p e v l

I d a 1 4

b n e e v 6

I d a 1 2

I d x 1 2+ 1

r t s

c m p' $ b l ; >

b n e e v 7

I d a 1 2 + 1

I d x ' 0

n s

I d a 1 2 ; <

I d x ' 0

r t s

• . c o n v e r th e xn u m b e r

i n y

I d a ' 0

s l a I I

s l a 1 1+ 1

I d a ( a d ) , y

s e c

s b c ' 5 3 0

b c c h x

c m p" S O a

b c c h x 2

s b c ' i l l

b c c h x

c m p' S 0 6

b c s h x

a d c " $ 0 a

a s l 1 1

r o l 1 1+ 1

b c s i q

a s l I I

r o l I l + l

b c s i q

a s l 1 1

r o l 1 1+ 1

b c s i q

a s l I I

r o l I l + l

b c s i q

a d c 1 1

s l a I I

I d a I l + l

5 0 3 0

5 0 4 0

5 0 5 0

5 0 6 0

5 0 7 0

5 0 8 0h x

5 0 9 0 :

5 1 0 0i q

5 1 1 0

5 1 2 0

5 1 3 0

5 1 4 0

5 1 5 0

5 1 6 0 ;

5 1 7 0d e c i

5 1 8 0 ;

5 1 9 0

5 2 0 0

5 2 1 0

5 2 2 0d e l

5 2 3 0

5 2 4 0

5 2 5 0

5 2 6 0

5 2 7 0

5 2 8 0

5 2 9 0

5 3 0 0

5 3 1 0

5 3 2 0

5 3 3 0

5 3 4 0

5 3 5 0

5 3 6 05 3 7 0

5 3 8 0

5 3 9 0

5 4 0 0

5 4 1 0

5 4 2 0

5 4 3 0

5 4 4 0

5 4 5 0

5 4 6 0

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

5 5 4 0

5 5 5 0 d e

5 5 6 0 ;5 5 7 0b i n

5 5 8 0 ;

5 5 9 0

5 6 0 0

5 6 1 0

5 6 2 0

5 6 3 0b n l

5 6 4 0

5 6 5 0

5 6 6 0

5 6 7 0

5 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

5 7 6 0

5 7 7 0

5 7 8 0

5 7 9 0 b n

5 8 0 0 ;

a d c ' 0

s l a I l + l

b c s i q

i n y

b n e h x l

j m p l a s l

= t . i l l e g a lq u a n i t y

I d x ' < m e s s i q

I d y " > m e s s i q

j s r p r i n l m s g

j s r i n l i n e

j m p l i s t l i n e

= • ; c o n v e r id e c i m a l

I d a ■ ( )

s l a i l

s l a I l + l

I d a ( a d ) . y

s e c

s b c ' $ 3 0

b c c d e

c m p' S O a

b c s d e

p h a

I d a i l

I d x 1 1 +1

a s l I I

r o l I l + l

b c s i q

a s l 1 1

r o l I l + l

b c s i q

a d c I I

s l a I I

t x a

a d c t l + l

s l a I l + l

b c s i q

a s l t l

r o l I l + l

b c s i q

p l a

a d c 1 1

s t a 1 1

I d a I l + l

a d c " 0

s l a I l + l

b c s i q

i n y

b n e d e l

i m p l a s l

= . ; c o n v e r tb i n a r y

i n v

I d a " 0

s l a 1 1

s l a I l + l

I d a ( a d ) . y

s e c

s b c " S 3 0

b c c b n

c m p" 2

b c s t i n

a s l I I

r o l I l + l

b c s i q

a d c 1 1

s t a I I

I d a I l + l

a d c ' 0

s l a I l + l

i n y

b n e b n l

j m p l a s t

5 8 1 0f i n d o p = • ; s e lc a r r yi f o p c o d e .

5 8 2 0; o p p l rp o i n i sl o p o s i t i o n . 6 3 9 9 9

5 8 3 0; . xh o l d so p c o d en u m b e r

5 8 4 0 ;

5 8 5 0

5 8 6 0

5 8 7 0

5 8 8 0

5 8 9 0

5 9 0 0 l o l

5 9 1 0 l o 2

5 9 2 0

5 9 3 0

5 9 4 0

5 9 5 0

5 9 6 0

5 9 7 0

5 9 8 0I o 3

5 9 9 0

6 0 0 0

6 0 1 0

6 0 2 0I o 4

I d a " < o p t a b; o p c o d et a b l e

s t a o p p l r

I d a " > o p l a b

s l a o p p l r + 1

I d x " 0

I d y " 0

I d a ( o p p l r l . y

b e q I o 3

c m p( a d ) , y

b n e f o 4

i n y

c p y " 3

b c c I o 2

c p v l e n

b n e I o 4

s e c

r t s

i n x

6 0 3 0

6 0 4 0

6 0 5 0

6 0 6 0

6 0 7 0

6 0 8 0

6 0 9 0f o 5

6 1 0 0

6 1 1 0

6 1 2 0

I d a o p p t r

c l c

a d c " $ l ) d

s t a o p p t r

b c c I o 5

i n c o p p t r+ 1

c p x " n o p s

b n e f o l

c l c

r t s

6 1 3 0 ;

6 1 4 0 f i n d s y m =■ ; f i n ds y m b o l ,r e t u r n

6 1 5 0 ; v a l u ei n . a , x

6 1 6 0 ;6 1 7 0 I d a m e m s i z

6 1 8 0

6 1 9 0

6 2 0 0

6 2 1 0f s l

6 2 2 0

6 2 3 0

6 2 4 0

6 2 5 0

6 2 6 0

6 2 7 0f s 2

6 2 8 0

6 2 9 0

6 3 0 0

6 3 1 0

6 3 2 0

6 3 3 0

6 3 4 0

6 3 5 0

6 3 6 0I s 86 3 7 0

6 3 8 0

6 3 9 0

6 4 0 0

6 4 1 0I s 3

6 4 2 0f s 4

6 4 3 0

6 4 4 0

6 4 5 0

6 4 6 0

6 4 7 0

6 4 8 0

6 4 9 0f s 7

6 5 0 0

6 5 1 0I s 9

6 5 2 0

( K < 0

6 5 4 0

1 1 5 5 0

6 5 6 06 5 7 0 ;

6 5 8 0 l i s l l m e

6 5 9 0 ;

6 6 0 0

6 6 1 0

6 6 2 0

0 6 3 H

6 6 4 0

6 6 5 0

6 6 6 0

6 6 7 0 ;

6 6 8 0 n e x l l m

6 6 9 0 ;

6 7 0 0

6 7 1 0

6 7 2 0

6 7 3 0

6 7 4 0

6 7 5 0

6 7 6 0

i ' , 7 7 "

6 7 8 0

6 7 9 0

6 8 0 0

S 8 1 0

6 8 2 0

6 S 3 ii

6 8 4 0

6 8 5 0

6 8 6 0

6 8 7 0

6 8 8 0

6 8 9 0

6 9 0 0

6 9 1 0

6 9 2 0

6 9 3 0n l

6 9 4 0 ;

s l a s y m p l r

I d a m e m s i z +1

s t a s v m p l r + l

t d a s y m p l r

s e c

s b c ' 1 0

s t a s v m p l r

b c s I s 2

d e c s y m p l r + 1

c m ps y m e n d

I d a s y m p l r +1

s b c s y m e n d+ 1

b c s f s 3

I d a H a g

b n e I s 8

I d a p t r ; r e l u r np l r o n1 s tp a s s

I d x p l r + 1

r t s

I d x " < m e s s u su n d e f i n e d s y m b o lI d y * > m e s s u s

j s r p r i n l m s g

j s r i n l i n e

i m p l i s t l i n e

I d y " 0

I d a ( s v m p l r ) . v

b e q I s 7

c m p( a d ) . v

b n e f s l

i n y

c p y ' 8

b c c I s 4

c p y 1 1 ; l e n g t h

b n e I s l

I d y ' 9 : l o u n d i l

I d a ( s y m p t r ) . y

l a x

d e y

I d a ( s y m p l r ) . y

r t s

= . ; l i s to f f e n d i n gl i n e

I d a l i n e

s l a 1 1 4

I d a l i n e + l

s l a $ 1 5

j s r l i n d l i n e

j s r l i s t

i m p r e a d y

e = • ; r e a d yf o rn e x tl i n e

I d a l i n k ; m o v ea d t o n e x tl i n e

s l a a d

I d a l i n k + 1

s l a a d+ 1

I d y ' 0 ; n e wl i n k

I d a ( a d | . y

s l a l i n k

i n v

I d a ( a d ) , y

s l a l i n k1

b e q n l ; e n do l s o u r c er e t u r nz s e t

i n v ; n e wl i n en u m b e r

I d a ( a d ) . y

s l a l i n e

i n y

I d a | a d ) , y

s l a l i n e + l

c l c ; m o v ea do v e rl i n ka n dl i n e

I d a a d

a d c ' 4

s t a a d

b c c n l

i n c a d + 1 ; r e t u r n z c l e a r

r t s

6 9 5 0n e w w o r d= - ; g e ln e x tw o r dp a s t=

6 9 6 0 ;

6 9 7 0

6 9 8 0

6 9 9 0

7 0 0 0 ;

I d y l e n

i n v

. b y t eS 2 c

7 0 I O n e x l w o r d= • ; g e ln e x tw o r d

7 0 2 0 ;

7 0 3 0

7 0 4 0

7 1 1 5 0

7 0 6 0

7 0 7 0

7 0 8 0

7 0 9 0

7 1 0 0n w

7 1 1 0 ;

7 1 2 0p r i n t m s g

7 1 3 0 ;

7 1 4 0

7 1 5 0

7 1 6 07 1 7 0p m l

7 1 8 0

7 1 9 0

7 2 i "

7 2 1 0

I d y l e n

I v a

c l c

a d c a d

s l a a d

b c c n w

i n c a d + 1

j m p w o r d

= . ; p r i n lm e s s a g e

s i x I I

s l y i l +1

I d ' v " 0I d a ( l l | . y

b e q p m

j s r S f f d 2 ; p r i n tc h a r a c t e r

i n y

b n e p m l

7 2 2 0 p m n s

7 2 3 0 ;

7 2 4 0; p u l o pr o u t i n e sb e g i n h e r e

7 2 5 0 ;

7 2 6 0r e l a t i v e

7 2 7 0 ;

7 2 8 0

7 2 9 0

7 3 0 0

7 3 1 0

7 3 2 0

7 3 3 0

7 3 4 0

7 3 5 0

7 3 6 0

7 3 7 0r l l

7 3 8 0

7 3 9 0

7 1 O i l

7 4 1 0

7 4 2 0

7 4 3 0

7 4 4 0

7 4 5 0

7 4 6 0

7 4 7 0

7 4 8 0

7 4 9 0

7 5 0 "

7 5 1 0

7 5 2 0

7 5 3 0

7 5 4 0r l

7 5 5 0

7 5 6 0

7 5 7 0 ;

7 5 8 0i m m

7 5 9 0 ;

7 6 0 0

7 6 1 0

7 6 2 0

7 6 3 0 i m l

7 6 4 0

7 6 5 0

7 6 6 0

7 6 7 0

7 6 8 0

7 1 1 9 0

7 7 0 0 ;

7 7 1 0i n d i r e c

7 7 2 0 ;

7 7 3 0

7 7 4 0

7 7 5 0

7 7 6 0 m d l

7 7 7 0

7 7 8 0

7 7 9 0

7 8 0 0

7 8 1 0

7 8 2 0

7 8 3 0

7 8 4 0

7 8 5 0

7 8 6 0i n d 2

7 8 7 0

7 8 8 0

7 8 9 0

7 9 0 0

7 9 1 0

7 9 2 0

7 9 3 0

7 9 4 0 ;

7 9 5 0 p u l o p

7 9 6 0 ;

7 9 7 0

7 9 8 0

7 9 9 0

S o w

8 0 1 0

8 0 2 0 p o p 5

= « c a l c u l a t eo f f s e t

I d y " 3

I d a ( o p p l T ) . y

j s r p u l o u l o p

j s r n e x l w o r d

j s r e v a l

s e c

s b c ' 1

b c s r l l

d e x

s e c

s b c p l r

s l a 1 1

t x a

s b c p l r + 1

l a x

c l c

I d a I I

a d c ' S 8 0

I x a

a d c ' 0

b e q r l

I d x " < m e s s b o o r. b r a n c ho u to l

I d y " > m e s s b o o r; r a n g e

j s r p r i n l m s g

j s r i n l i n e

j m p l i s t l i n e

I d a I I

j s r p u l o u l

j m p n e x l 2

. ; d oi m m e d i a t em o d e " ' '

i n c a d

b n e i m l

i n c a d + 1

I d y ' S 0 a

I d a ( o p p l r l . y

j s r p u t o u l o p

d e c l e n

j s r e v a l

j s r p u l o u l

j m p n e x l 2

= • ; d o ( , x ) e l s e ( ) . y

i n c a d

b n e i n d l

i n c a d + !

I d a l e n

s e c

s i x - - 1

l a y

s l v l e n

I d a | a d ) . v

I d y " 1 1

c m p• " , '

b e q i n d 2

i n v

I d a ( o p p t r ) . y

j s r p u l o u l o p

j s r e v a l

j s r p u l o u l

i n c l e n

i n c l e n

i n c l e n

j m p n e x l 2

= ■ g e n e r a t e sm a c h i n ec o d e

I d y " ( I

I d a ( a d | . y

c m p• " ] '

b n e p o p 5

j m p j u m p

c m p' " ! > '

T h eT r a n s a c t o r 7 2 J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 77: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 77/88

l

o p 2

o p 3

4

b n e p o p l

c p x " $ 2 1 : b r ko p "

b e q p o p l

c p x " $ 2 0 ; b i lo p "

b e q p o p l

j m p r e l a t i v e

j s r n e x t w o r d

b n e p o p 2

I d y " 9

I d a ( o p p t r ) . y

j s r p u t o u t o p

j m p n e x ! 2

I d v " 0

I d a ( a d ) . y

c m p" ' " '

b n e p o p 3

j m p i m m

c m p• " ( "

b n e p o p 4

i m p i n d i r e c t

c m p' " ! "

b n e a b s o l u t e

c e da b s o l u t eb v !p r e f i x

i n c a d

b n e f r

i n c a d + 1

d e c l e n

. b y l eH e

o l u t e• . ; l h r e eb v t em o d e

b 3

b

p

I d a " 0

s l a 1 5

I d x " 3

I d y l e n

d e y

b e q a b l

d e v

b e q a b l

I d a ( a d ) . y

c m p" * . *

b n e a b l

s t y l e n

i n x

i n v

I d a ( a d ) , y

c m p' " x "

b e q a b l

i n x

s i x 1 3

j s r e v a l

b e q a b 2

I d y 1 3

I d a ( o p p l r ) , y

j s r p u t o u t o pI d a 1 2

j s r p u t o u t

I x a

j s r p u l o u t

j m p a b 3

I d a 1 5

b n e a b 4

I d y 1 3

m y : i n y : i n y

I d a ( o p p t r ) . y

c m p" $ f a

b e q a t ) 4

j s r p u t o u t o p

I d a 1 2

j s r p u t o u t

I d y 1 3

d e y : d e y : d e y

b e q a b

i n c l e n

i n c l e n

j m p n e x t 2

• ; j m p ,j s ra n dj m p( )

j s r n e x t w o r d

I d v - 0

I d a ( a d ) , y

c m p" ' ( '

b e q | p l

I d y " 3

I d a f o p p t r j . y

j s r p u t o u t o p

j s r e v a l

j s r p u t o u t

I x a

j s r p u t o u l

j m p n e x l 2

i n c a d

b n e j p 2

i n c a d + 1

d e c l e n

d e c l e n

I d y " 4

I d a ( o p p l r j . y

j s r p u l o u t o p

9 0 3 0

9 0 4 0

9 0 5 ( 1

9 0 6 0

9 0 7 0

9 0 8 0

9 0 9 0 ;

9 1 0 0 p u t o u t o

9 1 1 0 ;

9 1 2 0

9 1 3 0

9 1 4 0

9 1 5 0

9 1 6 0

9 1 7 0

9 1 8 0

9 1 9 0 ;

9 2 0 0p u t o u l

9 2 1 0 ;

9 2 2 0

9 2 3 0

9 2 4 0

9 2 5 0

9 2 6 0

9 2 7 0p i

9 2 8 0 ;

9 2 9 0 w o r d

j s r e v a l

j s r p u t o u l

I x a

j s r p u l o u l

i n c l e n

i m p n e x l 2

= * ; v e r i f yo pm o d e

c m p' S f a

b n e p u l o u l

I d x " < m e s s i m; i l l e g a lm o d e

I d y * > m e s s i m

j s r p r i n l m s g

j s r i n l i n e

j m p l i s l l i n e

* ; o u t p u t o b j e c tc o d e

I d y " 0

s l a | p l r ) . y

i n c p t r

b n e p i

i n c p l r + l

r t s

= • ; b a s i cr o u t i n et o g e lw o r d

9 3 0 0; | a d )m u s tp o i n tl o s t a r t

9 3 1 0; i g n o r e sl e a d i n gs p a c e s

9 3 2 0 ; ' : ; ='

9 3 3 0; r e l u r n .

9 3 4 0 ;

9 3 5 0

9 3 6 0

9 3 7 0 w l

9 3 8 0

9 3 9 0

9 1 0 1 1

9 4 1 0

9 4 2 0

9 4 3 0

9 4 4 0

9 4 5 0

9 4 6 0

9 4 7 0

9 4 8 0

9 4 9 0

9 5 0 0

9 5 1 0w 2

9 5 2 0

9 5 3 0w 3

9 5 4 0

9 5 5 0

9 5 6 ( 1

9 5 7 09 5 8 0

9 5 9 0w 4

9 6 0 0

9 6 1 0

9 6 2 0

9 6 3 0w 5

9 6 4 0

9 6 5 0

9 6 6 0 ;

9 6 7 0c u s l o p

9 6 8 0 ;

9 6 9 0

9 7 0 0

9 7 1 0

9 7 2 0

9 7 3 0

9 7 4 0c p l

9 7 5 0

9 7 6 0

9 7 7 0 c p 2

9 7 8 0

9 7 9 0

9 8 0 0c p 3

9 8 1 0

9 8 2 0

9 8 3 0c p l

9 8 4 0

9 8 5 0

9 8 6 0c p S

9 8 7 0

9 8 8 0

9 8 9 0

9 9 0 ( 1

9 9 1 0 ;

9 9 2 0c p

9 9 3 0

9 9 4 0

9 9 5 0 c p 6

9 9 6 0 ;

9 9 7 0b v t e

9 9 8 0 ; '9 9 9 0

1 0 0 0 0

1 0 0 1 0

1 0 0 2 0

c o p i e d o n l yi n q u o t em o d e

' - l e n g t h ,s l o pc h a ri n a

I d x " 0

I d y " 0

I d a ( a d ) , y

b e q w 5 ; e n do l l i n e

c m p' $ 2 2 ; "

b e q w 4

c p x ' 5 8 0

b e q w 2

c m p■ ' : '

b e q w 5

c m p* " ;*

b e q w 5

c m p" $ b 2 ; .

b e q w 5

c m p" "

b e q w 3

i n y ; c o p v

b n e w l

c p y ' 0 ; l e a d i n gs p a c e

b n e w 5

i n c a d

b n e w l

i n c a d+ 1b n e w l

t x a ; t o g g l e

e o r " $ 8 0

t a x

j m p w 2

s l y l e n

c p y " 0

r t s

= • ; c u s l o mp s e u d o - o p s

i n v

I d a ( a d j . y

c m p' " b "

b n e c p l

j m p b y t e

c m p* " w "

b n e c p 2

j m p b y l e + 2

c m p' S c 6 ; a s t

b n e c p 3

i m p a s c

c m p' $ 8 0 ; e n d

b n e c p 4

j m p e n d

c m p' " p '

b n e c p 5

j m p p a d

I d x " < m e s s i p; i l l e g a l

I d y ' > m e s s i p; p s e u d o - o p

j s r p r i n t m s g

j s r i n l i n e

j m p l i s t l i n e

I d a H a g

b n e c p 6

j m p n e x t

j m p n e x t 2

= • ; , b y l ea n d. w o r d

I d a ' 0

s l a 1 5

j s r n e x t w o r d

s l y t 3

1 0 0 3 0b v l

1 0 0 4 0 b y 2

1 0 0 5 0

1 0 0 6 0

1 0 0 7 0b v 9

1 0 0 8 0'

1 0 0 9 0

1 0 1 0 0b y . 3

1 0 1 1 0

1 0 1 2 0

1 0 1 3 0

1 0 1 4 0

1 0 1 5 0

1 0 1 6 0

1 0 1 7 0

1 0 1 8 ( 1

1 0 1 9 0

1 0 2 0 0

1 0 2 1 0

1 0 2 2 0 b v 4

1 0 2 3 0'

1 0 2 4 0

1 0 2 5 0

1 0 2 6 0

1 0 2 7 0

1 0 2 8 0 b y 5

1 0 2 9 0

1 0 3 0 0

1 0 3 1 0

1 0 3 2 0

1 0 3 3 0

1 0 3 4 0

1 0 3 5 0

1 0 3 6 0

1 0 3 7 01 0 3 8 0

1 0 3 9 0 b y 6

1 0 4 0 0

1 0 4 1 0

1 0 4 2 0

1 0 4 3 0 b y ?

1 0 4 4 0

1 0 4 5 0

1 0 4 6 0

1 0 4 7 0

1 0 4 8 0 b y 8

1 0 4 9 0

1 0 5 0 0b y

1 0 5 1 0 ;

1 0 5 2 0a s c

1 0 5 3 0 ;

1 0 5 4 0

1 0 5 5 0

1 0 5 6 0a s l

1 0 5 7 01 0 5 8 0

1 0 5 9 0

1 0 6 0 0

1 0 6 1 0

1 0 6 2 0

1 0 6 3 0

1 0 6 4 0a s 2

1 0 6 5 0

1 0 6 6 0

1 0 6 7 0a s

1 0 6 8 0a s 3

1 0 6 9 0

1 0 7 0 0

1 0 7 1 0

1 0 7 2 0 ;

1 0 7 3 0 e n d

1 0 7 4 0 ;

1 0 7 5 0

1 0 7 6 0

1 0 7 7 0

1 0 7 8 0 e n

1 0 7 9 0

1 0 8 0 0

1 0 8 1 0

1 0 8 2 0

1 0 8 3 0

1 0 8 4 0

1 0 8 5 0

1 0 8 6 0

1 0 8 7 0

1 0 8 8 0 ;

1 0 8 9 0 p a d

I d y " 0

I d a l a d ' . y

c m p' . ' ; s p l i lu pe x p r e s s i o n s

b e q b y 3

i n v

c p y 1 3

b n e b y 2

I d a H a g

b e q b y 6

s t y l e n

i n v

I d a 1 3

s l y 1 3

s e c

s b c 1 3

s l a 1 3

b e s b v 4

I d a • ( ' )

s l a 1 3

j s r e v a l ; e v a la n d

j s r p u t o u t . p u l o u lo n eb v l e

I d a 1 5

b e q b y 5

I x a

j s r p u l o u l ; o ro n e w o r d

I d a 1 3

b e q b v

I d y l e n

i n y

t y a

c l c

a d c a d

s t a a d

b e c b y l

i n c a d + 1b n e b v l

c l c

I d a 1 5

b e q b v "

I d a " 1

a d c ' 1

a d c p t r ; i n c p t ro n f i r s tp a s s

s l a p l r

b e c b y 8

i n c p t r + 1

c p v 1 3

b n e b y 9

j m p c p

= « ; . a s c

j s r n e x t w o r d

I d y " 1

I d a ( a d ) . y

c m p" $ 2 2 ; "b e q a s

I d x H a g

b e q a s 3

s t y t 3

j s r p u l o u l

I d y 1 3

i n y

c p y l e n

b n e a s l

j m p c p

i n c p t r

b n e a s 2

i n c p t r + 1

b n e a s 2

= > ; . e n d

I d a f l a g

b n e e n

j m p s e c p a s s

j s r n e x t w o r d

I d x * < m e s s a c

I d y " > m e s s a c

j s r p r i n l m s g

I d a p t r

s t a l i n e

I d a p l r + l

s t a I t n e + I

j s r i n l i n e

j m p c o n l b a s

. ; p a d o b j e c t w i t ha t )i f a l

1 0 9 0 0; o d d b v l el ok e e pj m pt a b l e s s a l e

1 0 9 1 0

1 0 9 2 0

1 ( 1 9 3 0

1 0 9 4 0

1 0 9 5 0

n w a i

1 0 9 7 0

1 0 9 8 0p a

1 0 9 9 0p a l

1 1 0 0 0

1 1 0 1 0

1 1 0 2 0

I d a p t r

a n d " 1

b e q p a

I d a H a g

b e q p a l

I d a " 0

j s r p u l o u t

j m p c p

i n c p t r

b n e p a

i n c p t r + 1

b n e p a

1 1 0 3 0 ;

I 1 0 4 0 o p l a b =• : o p c o d et a b l e

1 1 0 5 0 ;

1 1 0 6 0. a s c' I d a ' : . b v t e $ a d .S b d . S b 9 .S a S .$ b 5 .$ f a . $ l a ,$ a 9 .S a l .$ b l

1 1 0 7 0. a s c ' s l a ': . b y l e$ 8 d .S 9 d .$ 9 9 . S 8 5 . $ 9 5 .$ l a . $ l a , $ l a .$ 8 1 . $ 9 1

1 1 0 8 0. a s c "b n e ': . b v l eS d O ,S l a . S l a . S f a . S f a , $ f a , $ l a , $ l a . S l a .S l a

1 1 0 9 0 . a s c ' b e q ': . b y l e S I 0 .S f a . S l a , S l a , S l a , S i a , S f a , S l a . S l a .S f a

1 1 1 0 0. a s c 'c m p ': . b v l e S c d , ( d d ,S d 9 .$ c 5 .S d 5 .S f a , S l a .S c 9 , S c l ,S d l

1 1 1 1 0 . a s c ' j s r ': . b y t e$ 2 0 .S f a .$ f a , $ f a .$ f a . $ l a ,$ l a , $ l a , S f a .S l a

1 1 1 2 0. a s c ' I d x ': . b y l e S a e .S l a .$ b e . $ a 6 .$ l a .$ b 6 .$ f a ,S a 2 ,S l a .S f a

1 1 1 3 0. a s c ' r t s ': . b y t eS l a . S f a . S f a . $ l a .S f a , S f a ,$ 6 0 .S l a , S l a ,S l a

I I 1 4 0. a s c ' I d y ': . b y l e S a c ,S b c ,S f a .$ a 4 . S b 4 , S f a .$ f a ,S a O .S f a .S f a

l U S O . a s c" b m i ": . b y t eS 3 0 .S l a .S l a . S l a . S l a , S l a . S f a . S l a , S l a .S l a

M l S O . a s c" d e c ": . b y t e S e e , $ d e .$ l a ,$ c 6 ,$ d 6 ,$ f a , S l a , S l a . $ l a .S l a

1 1 1 7 0. b y l eS a l , 0 , 0 , S 2 d , $ 3 d , $ 3 9 . $ 2 5 , $ 3 5 . $ l a , $ l a , S 2 9 . S 2 1 .; a n d

l l l S O . a s c " b e s ": . b y t e $ b 0 .S l a . $ l a , $ l a . $ f a . S l a . S l a . S l a , S l a .S l a

1 1 1 9 0 . a s c" i n c ' : , b v t e S e e ,$ l e ,S l a ,$ e 6 .$ 1 6 . $ l a , $ l a , $ ( a , $ l a ,$ f a

1 1 2 0 0 . a s c" b e c ": . b v t e $ 9 0 .$ l a ,$ l a . $ f a , $ f a . $ l a .S l a .S l a . S l a .S l a

1 1 2 1 0 a s c "t y a " : . b v t e $ ( a .S l a ,S f a , S f a , $ f a . S f a .$ 9 8 .S f a . S f a .S f a

1 1 2 2 0. a s c" b p l ": . b y t e $ 1 0 .S l a ,S f a , $ l a , $ f a . $ f a . $ l a . $ l a , $ l a ,$ l a

1 1 2 3 0. a s c 'a s l " : . b y t e $ 0 e . $ l e .$ l a .$ 0 6 . $ 1 6 .$ f a .$ 0 a .$ f a . $ l a .$ l a

1 1 2 4 0. a s c ' c l c ': . b v t e $ l a .$ l a . $ l a . $ l a , $ l a . $ f a .$ 1 8 .$ l a . $ l a .$ l a

1 1 2 5 0 . a s c ' a d c ": . b y t e$ 6 d . $ 7 d . $ 7 9 . $ 6 5 . $ 7 5 .$ f a .$ l a .$ 6 9 . $ 6 1 . $ 7 1

1 1 2 6 0. b y t e$ 4 5 , $ b O , O . S 4 d . S 5 d , $ 5 9 , $ 4 5 . $ 5 5 . $ l a , S l a , S 4 9 . $; e o r

1 1 2 7 0 . a s c ' I x a ': . b y t e $ f a .$ f a .$ l a .$ l a , $ f a , $ f a .$ 8 a ,$ f a , $ l a .$ f a

1 1 2 8 0. a s c ' c p x ': . b y t e$ e c .$ l a , S l a ,S e 4 ,$ f a , $ f a , $ l a ,$ e ( ) ,$ l a ,$ f a

1 1 2 9 0. a s c" j m p ": . b v t e $ 4 c .$ 6 c ,$ l a ,$ l a ,$ l a ,$ l a .$ l a . $ l a ,$ l a ,$ l a

1 1 3 0 0 . a s c ' t a x ': . b y l e $ l a ,$ l a . $ l a , $ l a , $ l a . $ l a ,S a a .S l a . S l a ,S l a

1 1 3 1 0 . a s c ' i n y ': . b y l e S l a ,$ l a . S l a . S l a , S l a . S l a .$ c 8 ,$ l a , $ f a .$ l a

1 1 3 2 0 . a s c' s t y ' : . b v t e S 8 c ,S l a . S l a .S 8 4 . S 9 4 . S f a .S l a . S l a . S f a .S i a

1 1 3 3 0. b v t e$ b 0 . $ 4 1 . d . S 0 d , $ l d 1 $ l 9 . S ( ) 5 , S I 5 . S f a , $ l a . $ 0

1 1 3 4 0 . a s c ' d e y ': . b y l e $ l a .$ f a . S l a . S l a . S l a , S f a .$ 8 8 .S l a . S l a .S l a

1 1 3 5 0. a s c" d e x ": . b y l e $ l a ,$ l a . S f a . S l a , S l a . S l a .S e a .S l a . S l a .S l a

1 1 3 6 0 . a s c ' s i x ': . b v l e $ 8 e ,$ l a , $ l a ,$ 8 6 ,S l a .$ 9 6 .$ f a . S l a . S l a ,S f a

1 1 3 7 0. a s c ' s b c ': . b y l e$ , e d ,$ l d . S I 9 ,S e 5 ,$ 1 5 .S l a . S f a .S e 9 ,S e l . S I l

1 1 3 8 0 . a s c ' b i t ': . b y t e $ 2 c ,S l a , $ l a ,$ 2 4 ,S f a ,S f a . S l a .S f a . S f a ,S f a

1 1 3 9 0 . a s c' b r k ' : . b y l e $ l a .$ l a , $ f a . ( l a .$ f a , $ f a ,$ 0 0 ,S f a .S f a .S l a

1 1 4 0 0 . a s c ' b v c ': . b y t e $ 5 0 .S f a . $ l a . $ l a . $ f a . $ f a . $ f a . S f a . S l a .S l a

1 1 4 1 0 . a s c " b v s ": . b y l e S 7 0 ,S l a .S l a , S l a , S f a , S f a , S f a . S f a . S f a .$ l a

1 1 4 2 0 . a s c" e l d ": . b v l e S f a .S f a , S l a , S l a . S l a , S l a ,$ d 8 ,S f a . S f a .S f a

1 1 4 3 0. a s c " c l i " : . b y t e S l a ,S l a . S l a , S l a , S f a , S l a ,S 5 8 .S l a , S l a ,S l a

1 1 4 4 0 . a s c" c i v ": . b y l e S f a ,S f a ,S f a , $ f a , S f a ,S l a ,S b 8 ,S l a , S l a ,S l a

1 1 4 5 0 . a s c ' c p y ": . b y ! e $ c c .S l a .S l a .$ c 4 ,S l a , S l a , S l a ,S c O ,$ l a .$ l a

1 1 4 6 0 . a s c " i n x ": . b y l e $ l a .S l a .S l a . S l a . S l a , S l a ,S e 8 .$ l a , $ ( a .$ l a

1 1 4 7 0. a s c 'I s r " : . b y l e $ 4 e , S 5 e .S l a ,$ 4 6 , S 5 6 ,S l a ,S 4 a ,$ l a , $ l a ,$ l a

1 1 4 8 0. a s c" n o p ": . b y l e $ l a ,$ l a ,$ l a . $ l a . S l a . S l a ,$ e a .$ l a . $ l a .$ l a

1 1 4 9 0. a s c" p h a ": . b v t e $ f a ,S f a . S f a . $ f a .S f a . S f a ,$ 4 8 .$ l a . $ f a ,$ f a

1 1 5 0 0. a s c" p h p ": . b y l e $ l a ,$ l a .$ l a , $ l a . S f a . S f a ,$ 0 8 .S f a . S f a .S f a

1 1 5 1 0a s c " p l a ": . b y t e $ l a ,M a ,$ l a , $ l a , S f a , S f a ,$ 6 8 .S f a , S f a ,S f a

1 1 5 2 0 . a s c " p i p ': . b y t e S f a .S f a . S f a , S l a , S f a .S f a ,$ 2 8 .S f a . S l a ,S l a

1 1 5 3 0. a s c 'r o l " : . b y t eS 2 e , $ 3 e .S l a .$ 2 6 , $ 3 6 ,S f a ,$ 2 a ,S f a . S f a ,S l a

1 1 5 4 0. b y t e$ 5 2 , $ b 0 , 0 , $ 6 e , S 7 e . $ l a . S 6 6 , $ 7 6 , $ l a , S 6 a . $ l a . $ l

1 1 5 5 0. a s c" r t i " : . b y t e S f a .S f a .S f a . S f a . S f a , S f a .$ 4 0 .S f a , S f a .S f a

1 1 5 6 0. a s c ' s e c ': . b y t e S l a ,$ l a . S f a . S f a , S l a , S f a ,$ 3 8 .S l a . S l a .$ l a

1 1 5 7 0. a s c ' s e d ': . b y l e $ ! a ,S l a . S l a .S l a . $ l a . $ l a . $ 1 8 .$ l a . S l a .S l a1 1 5 8 0 . a s c ' s e i ': . b y l e S l a .$ l a , S l a .S l a . S l a , S l a .$ 7 8 .S f a . S f a .S l a

I I 5 9 0 . a s c ' l a y ': . b y l e $ l a .$ l a , S f a . S l a , S l a ,$ ( a ,$ a 8 ,S l a ,S l a ,S f a

1 1 6 0 0. a s c ' I s x ': . b y t e $ l a ,$ l a ,S l a . S l a , S f a ,S l a ,$ b a .$ l a ,S l a ,S l a

1 1 6 1 0 . a s c ' t x s ': . b y t e $ f a ,$ l a .S l a . S f a .S l a , S f a ,$ 9 a ,$ f a , $ f a ,$ f a

1 1 6 2 0 ;

1 1 6 3 0; s y m a s sm e s s a g e s

1 1 6 4 0 ;

1 1 6 5 0m e s s s i a r. a s c 'J y m a s s 3 . 1 0r o b e r th u e h nf e b1 9 8 6 ': . b y t e1 3 . 0

1 1 6 6 0m e s s l i r. b y t e 1 3 : . a s c' l i r s ip a s s . . . ": . b y l e0

] 1 6 7 0 m e s s s e c. a s c ' s e c o n d p a s s . . . ' : . b y t e O

1 1 6 8 0m e s s a c. b y t e 1 3 : . a s c" a s s e m b l yc o m p l e t e ": . b y t e0

1 1 6 9 0 m e s s s l o. b y t eI 3 : . a s c ' s y m b o l l a b l e o v e r f l o w * : . b y t e 0

I 1 7 0 0 m e s s i q. b y t e I 3 : . a s c " i l l e g a l q u a n t i t y ' : . b y l e l )

1 1 7 1 0m e s s u s. b y l e I 3 : . a s c" u n d e f i n e ds y m b o l ": . b y t e0

1 1 7 2 0 m e s s b o o r. b y l e 1 3 : . a s c" b r a n c ho u to fr a n g e *: . b v l e0

1 1 7 3 0 m e s s i m. b y l e 1 3 : . a s c" i l l e g a lm o d e ' : . b v l e 0

1 1 7 4 0 m e s s i p. b y t e 1 3 : . a s c' i l l e g a l p s e u d o - o p ': . b y l e ( l

eT r a n s a c t o r 7 3 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 78: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 78/88

S Y M A S SL o a d e r

G e n e r a t e sd i s k f i l e" s y m a s s3 . 1 "w h i c h y o ut h e nl o a da n dr u n .D o n ' t

f o r g e tt o s a v et h i sp r o g r a mf i r s t .

P F

N MP OB L

P FN l

A KM MH OO CO CK CN DM DK B

I L

L K

G F

M JN l

H GJ E

N N

L PD K

M CA P

F FP A

D DF l

D A

D AG CL E

P J

J B

K MC L0 1

B FN E

H DP CN HJ K

K KH F

E GJ CJ J

C HG LD J

D AP M

L N

A l

H LG NO BE DC KN M

1 0 0o p e n 1 , 8 r 1 ," 0 : s y m a s s 3 . 1"

1 1 0p r i n t # 1 , c h r $ ( 1) c h r $ ( 8 ) ;

1 2 0f o r a= 2 0 4 9 t o 5 2 5 3 : r e a d d : c= c + d

1 3 0p r i n t # 1 , c h r $ ( d ) ; : n e x t

1 4 0c l o s e11 5 0i f c < > 4 0 0 7 9 2 t h e n p r i n t "d a t ae r r o r "

1 6 0e n d

8 ,

0 ,

1 0 0 0d a t a 1 1 , 8 , 1 0 , 0 , 1 5 8 ,5 0 ,

1 0 1 0d a t a 4 9 , 0 , 0 , 0 , 1 6 5 ,5 5 ,

1 0 2 0d a t a1 6 5 , 5 6 , 1 3 3 ,4 1 , 1 6 5 ,4 5 ,

1 0 3 0d a t a1 6 5 , 4 6 , 1 3 3 , 3 9 , 1 6 0 ,0 ,

1 0 4 0d a t a2 0 8 , 2 , 1 9 8 ,3 9 , 1 9 8 ,3 8 ,

1 0 5 0d a t a2 0 1 , 3 , 1 7 6 ,7 9 , 7 2 , 1 6 5 ,

1 0 6 0d a t a 2 , 1 9 8 , 3 9 , 1 9 8 ,3 8 , 1 7 7 ,

1 0 7 0 ' d a t a3 , 1 4 4 ,5 0 , 1 7 0 , 1 6 5 ,3 8 ,1 0 8 0 d a t a 1 9 8 ,3 9 , 1 9 8 , 3 8 , 1 7 7 ,3 8 ,

1 0 9 0d a t a 5 5 , 1 3 3 ,4 2 , 1 3 8 , 1 0 1 ,5 6 ,

1 1 0 0d a t a 2 0 8 ,1 6 , 1 6 5 ,4 0 , 2 0 8 , 2 ,

1 1 1 0d a t a1 9 8 , 4 0 , 1 3 8 , 1 4 5 ,4 0 , 1 6 5 ,1 1 2 0d a t a1 4 4 , 1 0 , 2 0 1 , 1 , 2 0 8 ,4 ,

1 1 3 0d a t a1 4 4 , 2 , 1 6 5 ,4 2 , 7 2 , 1 6 5 ,

1 1 4 0d a t a 2 , 1 9 8 ,4 1 , 1 9 8 ,4 0 , 1 0 4 ,

1 1 5 0d a t a 2 4 , 1 4 4 , 1 6 3 , 2 0 1 , 1 2 7 , 2 0 8 ,

1 1 6 0d a t a 7 6 , 1 4 1 , 1 8 8 ,2 , 1 6 5 ,4 0 ,

1 1 7 0 d a t a2 , 1 3 3 ,5 5 , 1 6 5 , 4 1 , 1 4 1 ,

1 1 8 0d a t a1 3 3 , 5 6 , 3 2 ,9 9 , 1 6 6 , 1 6 9 ,

1 1 9 0d a t a 5 8 , 7 6 , 1 8 8 ,2 , t 2 7 , 1 6 9 ,

1 2 0 0d a t a1 3 3 , 2 , 2 , 1 6 2 ,5 8 , 2 5 5 ,

1 2 1 0d a t a 5 8 , 2 5 5 , 1 , 3 2 , 1 5 0 , 2 4 9 ,

1 2 2 0d a t a 5 8 , 2 3 2 , 2 0 8 ,3 , 7 6 , 1 1 6 ,

1 2 3 0d a t a 9 4 , 2 5 5 , 2 , 1 6 0 , 9 4 , 2 5 5 ,

1 2 4 0d a t a1 5 0 ,2 4 9 , 0 , 1 6 5 , 5 5 , 1 3 3 ,

1 2 5 0d a t a 5 6 , 1 3 3 ,8 8 , 2 3 0 , 1 2 2 , 2 0 8 ,

1 2 6 0d a t a2 3 0 ,1 2 3 , 1 6 5 , 1 2 2 , 1 3 3 , 8 0 ,

1 2 7 0d a t a1 6 5 , 1 2 3 , 1 3 3 ,8 1 , 1 3 3 ,7 9 ,

1 2 8 0d a t a 2 4 9 ,0 , 2 0 8 , 3 , 7 6 , 2 0 1 ,

1 2 9 0d a t a 3 2 , 3 8 , 2 5 1 ,0 , 2 0 8 , 7 ,

1 3 0 0d a t a 2 0 8 ,5 9 , 7 6 , 7 8 , 2 4 6 ,0 ,

1 3 1 0d a t a 0 , 1 6 1 , 1 2 2 , 2 0 1 , 1 7 2 , 2 0 8 ,

1 3 2 0d a t a 2 6 , 2 4 7 , 0 , 7 6 , 1 7 2 , 2 4 5 ,

1 3 3 0d a t a1 2 2 ,2 0 1 ,1 7 8 ,2 0 8 , 3 , 7 6 ,

1 3 4 0d a t a 0 , 3 2 , 2 0 1 , 2 4 8 ,0 , 1 4 4 ,

1 3 5 0d a t a1 6 0 , 2 4 6 ,0 , 1 6 0 , 0 , 0 ,

1 3 6 0d a t a2 0 1 , 4 6 , 2 0 8 ,3 , 7 6 , 9 7 ,

1 3 7 0d a t a 3 2 , 9 5 , 2 4 6 , 0 , 1 6 0 ,0 ,

1 3 8 0d a t a 8 9 , 1 4 5 ,8 2 , 2 0 0 , 1 6 5 ,9 0 ,

1 3 9 0d a t a1 6 4 , 9 3 , 1 7 7 , 1 2 2 , 2 0 1 ,3 2 ,

1 4 0 0d a t a2 0 1 , 5 8 , 2 4 0 , 3 , 7 6 , 9 6 ,

1 4 1 0d a t a2 0 0 ,1 5 2 , 2 4 , 1 0 1 , 1 2 2 , 1 3 3 ,

1 4 2 0d a t a 2 , 2 , 2 3 0 , 1 2 3 ,7 6 , 1 0 4 ,

1 4 3 0d a t a2 3 0 , 2 , 2 , 1 6 2 , 1 0 9 , 2 5 5 ,

1 4 4 0d a t a1 0 9 ,2 5 5 , 1 , 3 2 , 1 5 0 , 2 4 9 ,

1 4 5 0 d a t a8 0 , 1 3 3 ,7 8 , 1 6 5 , 8 1 , 1 3 3 ,

1 4 6 0d a t a 8 8 , 2 4 9 , 0 , 2 0 8 ,3 , 7 6 ,

1 4 7 0d a t a 0 , 3 2 , 3 8 , 2 5 1 ,0 , 2 4 0 ,

1 4 8 0d a t a 0 , 0 , 1 6 1 , 1 2 2 , 2 0 1 , 1 7 2 ,

1 4 9 0d a t a 3 2 , 2 6 , 2 4 7 , 0 , 7 6 , 8 ,

1 5 0 0d a t a 3 2 , 2 0 1 , 2 4 8 ,0 , 1 4 4 , 3 ,

1 5 1 0d a t a2 5 0 , 0 , 1 6 0 , 0 , 0 , 1 7 7 ,

1 5 2 0d a t a 4 6 , 2 0 8 ,3 , 7 6 , 9 7 , 2 5 1 ,

1 5 3 0d a t a 9 3 , 1 7 7 , 1 2 2 , 2 0 1 ,3 2 , 2 4 0 ,

1 5 4 0d a t a 5 8 , 2 4 0 , 3 , 7 6 , 2 1 8 , 2 4 5 ,

1 5 5 0d a t a1 5 2 , 2 4 , 1 0 1 , 1 2 2 , 1 3 3 , 1 2 2 ,

1 5 6 0d a t a 2 , 2 3 0 ,1 2 3 , 7 6 , 2 2 6 , 2 4 5 ,

4 8 ,

1 3 3 ,

1 3 3 ,

1 6 5 ,

1 7 7 ,

5 4

4 0

3 8

3 8

3 8

3 8 , 2 0 8

3 8 , 2 0 1

2 0 8 , 2

2 4 , 1 0 1

1 7 0 ,1 0 4

1 9 8 , 4 1

4 2 , 2 41 3 8 , 2 4

4 0 ,2 0 8

1 4 5 , 4 0

2 3 7 ,1 6 9

1 4 1 , 1 8 9

1 9 0 , 2

2 5 5 , 1 3 3

0 , 0

2 , 1 6 0

0 , 1 6 6

1 6 4 ,1 6 2

1 , 3 2

8 7 , 1 6 5

2 , 21 3 3 , 7 8

3 2 , 8 8

2 4 5 , 0

2 0 1 , 1 7 8

1 6 2 , 0

6 , 3 2

0 , 1 7 7

5 8 , 2 4 6

3 , 7 6

1 7 7 ,1 2 2

2 5 1 , 0

0 , 1 6 5

1 4 5 , 8 2

2 4 0 , 7

2 4 5 , 0

1 2 2 ,1 4 4

2 4 5 , 0

2 , 1 6 0

0 , 1 6 5

7 9 , 3 2

3 7 , 2 4 6

3 3 , 1 6 2

2 0 8 , 6

2 4 6 , 0

7 6 , 3 7

1 2 2 , 2 0 1

0 , 1 6 4

7 , 2 0 1

0 , 2 0 0

1 4 4 , 2

0 , 1 6 2

P NG F

F H

L F

A EH A

H LI K

J KH M

P MB MK J

C PH A

E K

P MH BE DC AA AD AF D

H B

L BO CP K

F D

H J

H NG DM NB B

O l

K J

P GI P

J A

M KP J

O JA O

I C

A LH P

J D

F B

M CM DM NF F

K CO BG GD H

J GB HN J

A J

B A

E B

G GD MC PC NK J

H OA L

D l

A M

1 5 7 0

1 5 8 0

1 5 9 0

1 6 0 0

1 6 1 0

1 6 2 0

1 6 3 0

1 6 4 0

1 6 5 0

1 6 6 0

1 6 7 01 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

1 7 9 0

1 8 0 0

1 8 1 01 8 2 0

1 8 3 0

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

1 9 4 0

1 9 5 01 9 6 0

1 9 7 0

1 9 8 0

1 9 9 0

2 0 0 0

2 0 1 0

2 0 2 0

2 0 3 0

2 0 4 0

2 0 5 0

2 0 6 0

2 0 7 0

2 0 8 0

2 0 9 0

2 1 0 0

2 1 1 0

2 1 2 0

2 1 3 0

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

2 2 3 0

2 2 4 0

2 2 5 0

2 2 6 0

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t ad a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t ad a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t ad a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

3 2 ,

8 2 ,

0 ,

0 ,

1 2 4 , 2 5 5

1 5 0 , 2 4 9

9 0 , 1 3 3

1 6 4 , 3 2

0 ,

1 4 5 ,

2 4 5 ,

2 4 7 ,

1 3 8 ,1 4 5

8 7 , 5 6

2 , 1 9 84 6 , 1 7 6

1 4 3 , 2 5 5

1 9 4 ,1 8 9

8 7 , 1 0 5

0 , 0

0 , 1 3 6

1 3 6 ,1 7 7

9 6 , 1 6 0

2 4 0 , 1 9

2 4 0 , 1 8

2 4 9 , 0

1 3 5 , 2 4 9

1 3 5 ,2 4 9

2 0 8 , 6 73 5 , 2 4 0

9 3 , 1 3 6

1 2 2 , 2 0 1

1 6 0 , 7

1 7 7 , 9 1

1 3 6 ,1 3 6

2 3 0 , 9 3

1 0 , 2 4 7

1 7 1 ,1 6 9

1 4 4 ,

0 ,

0 ,

9 0 ,

0 ,2 4 7 ,

1 2 2 , 2 0 1

2 4 1 , 1 3 2

3 8 , 1 3 3

0 , 1 6 9

1 3 3 , 4 2

1 2 2 , 2 0 1

0 , 2 0 1

3 9 , 2 0 1

1 9 , 2 0 1

0 , 5 6

1 7 6 ,1 7 4

2 3 0 ,1 2 2

9 3 , 2 0 8

1 6 5 , 9 0

1 6 5 , 3 8

7 6 , 2 1 0

2 4 , 1 6 5

3 9 , 1 0 1

0 , 5 6

1 6 5 , 4 1

1 9 6 , 9 3

2 0 0 ,1 5 2

2 , 2

9 3 , 2 2 9

0 , 1 6 5

4 1 , 9 6

1 6 2 , 0

0 , 9 6

1 3 3 , 3 9

5 3 , 2 0 1

2 , 1 6 0 ,

0 , 1 6 5 ,

5 8 , 3 2 ,

9 5 ,2 4 6 ,

8 3 ,2 4 7 ,

2 0 0 ,1 3 8 ,

3 2 , 1 3 1 ,

1 6 0 , 0 ,

8 2 , 7 6 ,

2 3 3 , 1 0 ,

8 8 , 1 9 7 ,1 3 , 1 6 2 ,

1 , 3 2 ,

7 6 , 7 1 ,

8 , 1 3 3 ,

1 3 3 , 8 3 ,

1 4 5 , 8 7 ,

1 2 2 , 1 4 5 ,

0 , 0 ,

2 0 1 , 6 6 ,

2 2 4 , 3 2 ,

1 6 9 , 2 ,

0 , 1 6 9 ,

0 , 2 0 8 ,

1 6 0 , 0 ,2 2 8 , 2 0 1 ,

2 4 0 , 4 3 ,

4 4 , 2 0 8 ,

2 0 1 , 8 8 ,

2 0 1 , 2 5 0 ,

1 3 2 , 9 3 ,

2 3 0

0 ,

3 ,

2

3 2

3 2

9 6

00

9 3 ,

3 2 ,

2 4 ,

2 , 2 3 0 ,

1 3 5 ,2 4 9 ,

8 3 , 2 4 7 ,

2 0 0 ,1 7 7 ,

1 3 3 , 3 9 ,2 0 0 ,1 9 6 ,

1 7 0 , 2 4 0 ,

3 8 , 3 2 ,

3 8 , 1 3 4 ,

0 , 0 ,

1 3 3 , 9 5 ,

3 6 , 2 0 8 ,

3 4 , 2 4 0 ,

1 7 7 ,2 4 0 ,

3 7 , 2 0 8 ,

2 3 3 , 4 8 ,

7 6 , 9 1 ,

2 0 8 , 2 ,

1 9 8 ,2 0 0 ,

1 3 3 , 3 9 ,

1 3 3 , 4 0 ,

2 4 7 , 0 ,

3 8 , 1 0 1 ,

4 1 , 1 4 4 ,

1 6 5 , 4 0 ,

2 2 9 , 3 9 ,

2 4 0 , 2 7 ,

2 4 , 1 0 1 ,

2 3 0 ,1 2 3 ,

9 3 , 1 3 3 ,

9 5 , 2 0 8 ,

2 0 1 ,1 7 7 ,

0 , 9 6 ,

2 0 0 ,1 6 9 ,

1 7 7 , 1 2 2 ,

1 0 , 1 4 4 ,

1 2 4 ,2 5 5 ,

8 9 , 1 3 3 ,

1 9 4 , 1 8 9 ,

0 , 3 2 ,

0 , 1 6 0 ,

1 4 5 , 8 2 ,

2 4 9 , 0 ,

0 , 1 4 5 ,

1 7 2 , 2 4 5 ,

1 3 3 , 8 7 ,

4 5 , 1 6 5 ,1 4 3 , 2 5 5 ,

1 5 0 , 2 4 9 ,

2 4 9 , 0 ,

8 2 , 1 6 5 ,

1 6 0 , 8 ,

2 0 8 , 2 5 1 ,

8 7 , 1 5 2 ,

1 7 7 , 1 2 2 ,

2 0 8 , 2 2 ,

2 4 0 , 1 4 ,

2 , 2 0 8 ,

3 , 2 0 8 ,

4 , 1 6 9 ,

0 , 1 7 7 ,4 0 , 2 4 0 ,

1 3 6 ,2 4 0 ,

3 4 , 2 0 0 ,

2 4 0 , 1 ,

2 4 0 , 2 3 ,

3 2 , 8 3 ,

2 2 4 , 0 ,

8 3 , 2 4 7 ,

1 0 1 , 8 9 ,

9 0 , 7 6 ,

0 , 3 2 ,

0 , 1 3 3 ,

1 2 2 , 1 3 3 ,

2 0 0 , 2 0 0 ,9 3 , 2 4 0 ,

4 , 2 0 1 ,

2 5 0 , 2 4 8 ,

3 9 , 7 6 ,

1 3 3 , 4 0 ,

1 6 0 , 0 ,

3 , 7 6 ,

1 8 8 , 2 0 1 ,

2 3 , 2 0 1 ,

3 , 7 6 ,

1 4 4 , 1 7 8 ,

2 4 8 , 0 ,

2 , 2 3 0 ,

1 6 5 , 8 9 ,

1 6 5 , 4 2 ,

1 6 5 , 3 9 ,

2 0 1 ,1 7 0 ,

4 0 , 1 3 3 ,

1 8 , 7 6 ,

2 2 9 , 3 8 ,

1 3 3 , 4 1 ,

1 7 7 , 1 2 2 ,

1 2 2 , 1 3 3 ,

5 6 , 1 6 5 ,

9 3 , 7 6 ,

5 , 1 6 5 ,

2 0 8 , 5 ,

1 6 5 , 4 0 ,

0 , 0 ,

5 6 , 2 3 3 ,

1 0 , 2 3 3 ,

1 , 3 2

5 7 , 1 6 5

7 6 , 1 1

1 3 1 , 2 4

0 , 0

7 6 , 1 7 2

3 2 , 8 3

8 2 , 2 0

0 , 1 6 5

1 7 6 , 2

8 8 , 2 2 2 , 1 6 0

0 , 3 2

2 4 , 1 6 5

8 8 , 1 0 5

1 6 9 , 0

1 6 4 , 9 3

2 0 8 . 2 4

2 0 1 , 7 4

2 2 4 , 3 3

3 2 , 1 3

8 3 , 3 2

7 6 , 3 2

1 , 1

1 2 2 , 2 0 2 2 4 , 1 6

4 0 , 1 7 7

1 7 7 ,1 2 2

1 , 2 0 0

1 6 4 , 9 3

2 4 7 , 0

0 , 7 6

0 , 2 4 0

1 3 3 , 8 9

1 7 2 , 2 4

1 3 1 . 2 4

8 9 , 1 3 4

3 8 , 1 6 9

7 6 , 1 6 01 0 , 1 7 7

1 7 1 , 2 0

0 , 1 6 4

1 6 0 , 2 4

1 3 3 , 4 1

0 , 1 7 7

8 , 2 4 8

1 7 2 ,2 4 0

1 7 9 ,2 4 0

1 6 1 , 2 4

2 0 1

1 3 3

1 0

9 5

1 2 3 ,1 9 8

3 8

1 1

4 1

1 6

1 3 3

2 0 8

1 3 3

2 0 8

4 0 , 1 6 5

7 8 , 2 4

1 3 3 , 4 0

1 4 4 ,1 2 4

1 3 3 , 4 2

1 2 2 , 1 4

9 3 , 1 3

9 3 , 2 4

4 0 , 1 6 6

1 6 5 , 4 1

1 6 2 , 0

1 3 3 , 3 8

4 8 , 1 4 4

1 7 , 1 4 4

T T i ©T r o n s Q c t o f 7 4 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 79: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 79/88

D GM D

N

C LK

GK C

CO J

B

G C

K P

OC

MNDO

G l

P

E

A

L

AL

J

GD

J

D

GKKL

HE

J

POA

J

I

P

MA

N

L

K

O

L

O

DDA

l

OM

E

MC

J

EE

M l

0

PK

GM

4 5

3 8

3 9 .

2 4 ,

3 8

2 2 7 0d a t a

2 2 8 0d a t a

2 2 9 0d a t a

2 3 0 0d a t a

2 3 1 0d a t a

2 3 2 0d a t a1 3 3 ,

2 3 3 0d a t a1 6 0 ,

2 3 4 0d a t a1 6 6 ,

2 3 5 0d a t a1 9 4 ,

2 3 6 0d a t a 0 ,

2 3 7 0d a t a 2 3 3 ,2 3 8 0d a t a 7 2 ,

2 3 9 0d a t a 3 9 ,

2 4 0 0d a t a2 0 9 ,

2 4 1 0d a t a1 3 3 ,

2 4 2 0d a t a1 7 6 ,

2 4 3 0d a t a 3 9 ,

2 4 4 0d a t a 2 0 0 ,

2 4 5 0d a t a1 6 9 ,

2 4 6 0d a t a1 2 2 ,

2 4 7 0d a t a 2 ,

2 4 8 0d a t a1 4 9 ,

2 4 9 0d a t a 0 ,

2 5 0 0d a t a1 6 0 ,

2 5 1 0d a t a 9 1 ,2 5 2 0d a t a 0 ,

2 5 3 0d a t a 9 ,

2 5 4 0d a t a1 4 4 ,

2 5 5 0d a t a 9 6 ,

2 5 6 0d a t a 9 1 ,

2 5 7 0d a t a 2 0 8 ,

2 5 8 0d a t a1 6 5 ,

2 5 9 0d a t a 1 0 ,

2 6 0 0d a t a1 9 7 ,

2 6 1 0d a t a1 6 5 ,

2 6 2 0d a t a 9 0 ,

2 6 3 0d a t a 2 5 5 ,

2 6 4 0d a t a1 8 9 ,

2 6 5 0d a t a1 7 7 ,2 6 6 0d a t a2 0 0 ,

2 6 7 0d a t a1 9 6 ,

2 6 8 0d a t a 8 2 ,

2 6 9 0d a t a1 3 3 ,

2 7 0 0d a t a 7 6 ,

2 7 1 0d a t a 7 9 ,

2 7 2 0d a t a1 3 3 ,

2 7 3 0d a t a 2 1 ,

2 7 4 0d a t a1 2 2 ,

2 7 5 0d a t a1 3 3 ,

2 7 6 0d a t a1 6 4 ,

2 7 7 0d a t a1 0 1 ,

2 7 8 0d a t a1 2 3 ,

2 7 9 0d a t a 3 9 ,2 8 0 0d a t a 3 2 ,

2 8 1 0d a t a 3 ,

2 8 2 0d a t a1 3 5 ,

2 8 3 0d a t a 2 3 3 ,

2 8 4 0d a t a 2 2 9 ,

2 8 5 0d a t a 2 4 ,

2 8 6 0d a t a 0 ,

2 8 7 0d a t a 2 0 2 ,

2 8 8 0d a t a1 9 4 ,

2 8 9 0d a t a 3 2 ,

2 9 0 0d a t a 2 3 0 ,

2 9 1 0d a t a 1 0 ,

2 9 2 0d a t a 9 3 ,

2 9 3 0d a t a2 9 4 0d a t a

2 9 5 0d a t a

6

3 9

3 0 .

3 8 .

3 8

2 0 1

3 8

1 7 6

6 ,

1 3 3 ,

3 9 , 1 7 6 ,

2 4 7 , 0 ,

2 5 5 , 1 ,

1 8 9 , 7 6 ,

1 3 3 , 3 8 - ,

4 8 , 1 4 4 ,1 6 5 , 3 8 ,

1 7 6 , 2 1 5 ,

1 0 1 , 3 8 ,

3 9 , 1 7 6 ,

1 9 2 ,1 0 4 ,

1 0 5 , 0 ,

2 0 8 ,1 9 5 ,

0 , 0 ,

5 6 ,2 3 3 ,

1 7 6 , 1 9 ,

1 0 1 , 3 8 ,

0 , 1 3 3 ,

2 4 7 , 0 ,

1 6 9 , 9 8 ,0 , 1 6 0 ,

2 0 9 ,1 2 2 ,

2 4 3 ,1 9 6 ,

2 3 2 ,1 6 5 ,

1 4 4 , 2 ,

2 1 9 , 2 4 ,

5 6 , 1 3 3 ,

1 3 3 , 8 2 ,

8 7 , 1 6 5 ,

2 , 2 ,

9 6 , 1 6 2 ,

1 , 3 2 ,

7 6 , 7 1 ,

8 2 ,2 4 0 ,1 9 2 , 8 ,

1 6 0 , 9 ,

9 6 , 1 6 5 ,

2 1 , 3 2 ,

1 1 6 , 1 6 4 ,

1 3 3 ,1 2 3 ,

7 8 , 2 0 0 ,

2 0 0 ,1 7 7 ,

1 3 3 , 5 8 ,

1 2 2 , 1 4 4 ,

9 3 ,2 0 0 ,

1 2 2 , 1 3 3 ,

7 6 , 3 8 ,

1 6 0 , 0 ,2 1 0 , 2 5 5 ,

1 7 7 , 9 1 ,

2 4 9 , 0 ,

1 , 1 ,

8 9 , 1 3 3 ,

1 6 5 , 3 8 ,

2 4 0

2 5 5

4 1

3 6 .

3 8 .

3 9 ,

3 9 ,

1 7 6 ,

1 7 6 ,

6 ,

3 8 ,

1 6 5 ,

6 , 2 0 0 ,

1 6 2 , 1 6 6 ,

3 2 , 1 5 0 ,

7 1 , 2 4 9 ,

1 3 3 , 3 9 ,

5 4 , 2 0 1 ,1 6 6 , 3 9 ,

6 , 3 8 ,

1 3 3 , 3 8 ,

1 9 8 , 6 ,

1 0 1 , 3 8 ,

0 , 1 3 3 ,

7 6 , 1 6 0 ,

1 3 3 , 3 8 ,

4 8 , 1 4 4 ,

6 , 3 8 ,

1 3 3 , 3 8 ,

3 9 , 2 0 0 ,

1 6 9 , 9 8 ,

2 5 2 , 1 ,

0 , 0 ,

2 0 8 , 1 1 ,

9 3 , 2 0 8 ,

9 1 , 2 4 ,

2 , 2 3 0 ,

9 6 , 1 6 5 ,

8 3 , 1 6 5 ,

1 7 6 , 2 ,

8 3 , 2 2 9 ,

2 0 8 , 5 ,

1 8 4 , 2 5 5 ,

1 5 0 ,2 4 9 ,

2 4 9 , 0 ,

9 , 2 0 9 ,1 4 4 ,2 4 3 ,

1 7 7 , 8 2 ,

5 7 , 1 3 3 ,

1 9 , 1 6 6 ,

7 8 ,

0 ,

0 ,2 ,

4 ,

2 9 6 0d a t a2 0 1 ,

1 3 ,

1 ,

1 8 9 , 7 6 ,

2 7 , 2 5 1 ,

1 2 2 , 2 0 8 ,

1 7 7 , 9 1 ,

3 2 , 8 3 ,

7 6 , 8 ,2 , 2 3 0 ,

1 6 8 , 1 3 2 ,

4 4 , 2 4 0 ,

1 6 5

1 6 0

1 7 7 , 1 2 2 ,

1 2 2 ,1 3 3 ,

2 4 , 1 6 5 ,

2 , 2 ,

4 4 , 1 6 4 ,

1 2 2 , 1 4 4 ,

2 5 1 , 0 ,

0 , 1 7 7 ,2 0 0 , 2 0 8 ,

3 2 , 1 0 ,

3 2 , 8 3 ,

1 7 6 , 1 ,

3 8 , 1 3 8 ,

1 0 5 ,1 2 8 ,

1 6 2 , 2 0 2 ,

3 2 , 1 5 0 ,

7 1 , 2 4 9 ,

0 , 7 6 ,

2 , 2 ,

3 2 , 1 0 ,

2 4 7 , 0 ,

2 4 6 , 0 ,1 2 3 , 1 6 5 ,

9 3 , 1 7 7 ,

1 , 1 ,

, 1 0 5 .

6

3 8 ,

1 7 6 ,

1 0 5 ,

2 0 8 ,

2 5 5 ,

2 4 9 ,

0 ,

1 7 7 ,

1 0 ,6 ,

3 8 ,

1 3 8 ,

3 8 ,

1 3 3 ,

3 9 ,

2 4 7 ,

1 3 3 ,

2 3 ,

3 8 ,

1 6 5 ,

2 0 8 ,

2 5 2 ,

1 3 3 ,1 7 7 ,

2 0 0 ,

2 ,

1 0 5 ,

9 2 ,

5 5 ,

8 2 ,

2 ,

8 8 ,

1 6 5 ,

2 ,

0 ,

1 6 0 ,

1 2 2 ,1 9 6 ,

1 7 0 ,

2 0 ,

3 2 ,

1 3 3 ,

0 ,

1 3 3 ,

5 7 ,

1 2 2 ,

2 3 0 ,

9 3 ,

2 ,

1 3 4 ,

3 8 ,2 4 6 ,

2 5 1 ,

2 4 7 ,

1 ,

2 2 9 ,

1 3 8 ,

2 5 5 ,

2 4 9 ,

0 ,

8 ,

2 3 0 ,

2 5 1 ,

3 2 ,

2 3 0 ,9 3 ,

1 2 2 ,

2 0 0 ,

1 0 , 6

3 8 , 3 8

3 9 , 1 7 6

1 8 , 1 0 1

0 , 0

1 9 6 , 7 6

2 , 1 6 0

0 ,

1 6 9 ,

1 2 2 ,

1 7 6 ,3 8 ,

3 2

0

5 6

5 03 8

3 9 , 1 7 6

1 0 1 , 3 9

3 8 , 3 9

3 8 , 1 6 5

1 7 6 ,1 7 9

0 , 2 0 0

3 9 , 1 7 7

2 0 1 , 2

3 9 , 1 7 6

3 9 , 1 0 5

2 2 6 , 7 6

2 , 1 3 3

9 2 , 1 6 29 1 , 2 4 0

1 9 2 , 3

2 , 5 6

1 3 , 1 3 3

2 2 4 , 5 5

1 3 3 , 8 2

5 6 , 2 3 3

1 9 8 , 8 3

1 7 6 , 2 2

8 9 , 1 6 6

1 6 0 ,1 8 4

3 2 , 1 9 4

0 , 0

2 0 8 ,2 0 53 8 ,2 0 8

1 3 6 ,1 7 7

1 6 5 , 5 8

2 0 1 ,1 6 6

1 2 2 ,1 6 5

1 7 7 ,1 2 2

7 9 , 2 4 0

2 0 0 ,1 7 7

1 0 5 , 4

1 2 3 , 9 6

1 5 2 , 2 4

2 , 2 3 0

3 8 , 1 3 2

2 4 0 , 69 6 , 1 6 0

0 , 3 2

0 , 5 6

2 0 2 , 5 6

9 0 , 1 7 0

1 0 5 , 0

2 , 1 6 0

0 , 3 2

1 6 5 , 3 8

2 4 6 , 0

1 2 3 ,1 6 0

0 , 1 9 8

2 7 , 2 5 1

1 2 2 , 2 0 85 6 , 2 3 3

1 6 0 , 1 1

1 7 7 , 9 1

L J

I N

C NJ L

B KH FP L

D AF HN D

I PM NM ED MN KG J

K CA DE GE N

H CA MM JB J

D EC GH D

I J

L B

A L

D F

D P

H BC PP DB E

L P

K F

C FE OD DF K

D F

G MB DM FB B

I H

C MH KM HN O

H CI J

J L

C DF CH NC DG l

E E

F B

L E

L OI M

F C

B JO FF H

N D

2 9 7 0d a t a 3 2 ,

2 9 8 0d a t a 3 2 ,

2 9 9 0d a t a 2 3 0 ,

3 0 0 0d a t a 0 ,

3 0 1 0d a t a 2 0 3 ,

3 0 2 0d a t a 3 3 ,

3 0 3 0d a t a1 6 7 ,

3 0 4 0d a t a 1 0 ,

3 0 5 0d a t a 0 ,

3 0 6 0d a t a1 7 7 ,

3 0 7 0d a t a2 4 9 ,3 0 8 0d a t a 2 4 9 ,

3 0 9 0d a t a 2 0 8 ,

3 1 0 0d a t a1 6 9 ,

3 1 1 0d a t a 9 3 ,

3 1 2 0d a t a1 2 2 ,

3 1 3 0d a t a 2 0 0 ,

3 1 4 0d a t a 2 3 2 ,

3 1 5 0d a t a 1 9 ,

3 1 6 0d a t a 0 ,

3 1 7 0d a t a 3 2 ,

3 1 8 0d a t a1 6 5 ,

3 1 9 0d a t a 2 0 0 ,

3 2 0 0d a t a 1 . 0 ,

3 2 1 0d a t a 0 ,3 2 2 0d a t a 2 3 0 ,

3 2 3 0d a t a 3 2 ,

3 2 4 0d a t a1 2 2 ,

3 2 5 0d a t a 9 1 ,

3 2 6 0d a t a 0 ,

3 2 7 0d a t a2 5 1 ,

3 2 8 0d a t a2 0 8 ,

3 2 9 0d a t a 9 3 ,

3 3 0 0d a t a 0 ,

3 3 1 0d a t a 0 ,

3 3 2 0d a t a 7 6 ,

3 3 3 0d a t a1 6 2 ,

3 3 4 0d a t a 3 2 ,

3 3 5 0d a t a 7 1 ,3 3 6 0d a t a 2 3 0 ,

3 3 7 0d a t a1 6 2 ,

3 3 8 0d a t a 2 4 0 ,

3 3 9 0d a t a2 4 0 ,

3 4 0 0d a t a 2 4 0 ,

3 4 1 0d a t a2 4 0 ,

3 4 2 0d a t a2 0 8 ,

3 4 3 0d a t a2 0 8 ,

3 4 4 0d a t a2 5 1 ,

3 4 5 0d a t a 2 0 0 ,

3 4 6 0d a t a1 5 8 ,

3 4 7 0d a t a1 6 0 ,

3 4 8 0d a t a 3 ,

3 4 9 0d a t a 4 1 ,3 5 0 0d a t a 7 2 ,

3 5 1 0d a t a 2 3 7 ,

3 5 2 0d a t a1 9 4 ,

3 5 3 0d a t a 2 ,

3 5 4 0d a t a 8 ,

3 5 5 0d a t a 3 2 ,

3 5 6 0d a t a 0 ,

3 5 7 0d a t a1 9 6 ,

3 5 8 0d a t a 5 1 ,

3 5 9 0d a t a 5 6 ,

3 6 0 0d a t a 0 ,

3 6 1 0d a t a 3 2 ,

3 6 2 0d a t a1 3 8 ,

3 6 3 0d a t a 3 6 ,3 6 4 0d a t a1 3 3 ,

3 6 5 0d a t a 2 4 ,

3 6 6 0d a t a 1 ,

1 0 , 2 5 1 ,

2 7 , 2 5 1 ,

9 3 , 7 6 ,

1 7 7 , 1 2 2 ,

2 5 0 , 0 ,

2 4 0 , 7 ,

2 4 9 , 0 ,

1 6 0 , 9 ,

7 6 , 8 ,

1 2 2 , 2 0 1 ,

0 , 2 0 1 ,0 , 2 0 1 ,

2 , 2 ,

0 , 0 ,

1 3 6 , 2 4 0 ,

2 0 1 , 4 4 ,

1 7 7 , 1 2 2 ,

1 3 4 , 9 4 ,

1 6 4 , 9 4 ,

1 6 5 , 4 0 ,

2 7 , 2 5 1 ,

9 6 , 2 0 8 ,

1 7 7 , 9 1 ,

2 5 1 , 0 ,

1 6 4 , 9 4 ,9 3 , 2 3 0 ,

1 3 5 ,2 4 9 ,

2 0 1 , 4 0 ,

3 2 ,

3 2 ,

0 ,

2 ,

1 6 0 ,

3 2 ,

1 3 8 ,

1 0 ,

2 7 ,

7 6 ,

2 ,

4 ,

8 3 ,

3 2 ,

8 , 2 4 6 ,

2 2 3 , 2 5 5 ,

1 5 0 , 2 4 9 ,

2 4 9 , 0 ,8 9 ,2 0 8 ,

0 , 0 ,

4 6 , 2 0 1 ,

1 6 , 2 0 1 ,

3 0 , 2 0 1 ,

3 , 2 0 0 ,

1 5 , 2 3 0 ,

2 1 3 ,1 3 8 ,

0 , 1 3 2 ,

1 7 7 , 1 2 2 ,

2 5 1 , 0 ,

2 5 1 ,

2 5 2 ,

2 5 2 ,2 5 2 ,

2 5 5 ,

1 8 9 ,

2 0 8 ,

2 4 6 ,

1 3 5 , 2 4 9 ,

1 7 7 ,1 2 2 ,

9 4 ,2 0 8 ,

1 3 2 , 9 3 ,

2 2 9 , 9 4 ,

0 , 1 3 3 ,

2 7 , 2 5 1 ,

3 2 , 2 7 ,

1 6 4 , 9 3 ,1 2 2 ,1 4 4 ,

1 6 5 , 9 6 ,

1 0 5 , 1 ,

0 ,

0 ,

0 ,

0 ,

1 ,

7 6 ,

3 ,

0 ,

0 ,

0 ,

8 ,

2 0 1 ,

2 0 1 ,

2 2 4 ,

3 2 ,

1 7 7 ,

2 4 6 ,

3 5 ,

4 0 ,

3 3 ,

2 3 0 ,

1 3 3 ,

2 0 ,

2 0 8 ,

2 0 1 ,

3 2 ,

1 7 7 ,

3 2 ,

0 ,

2 3 3 ,

2 0 1 ,

1 6 5 ,

1 3 6 ,9 3 ,

0 ,

2 4 0 ,

2 5 1 ,

2 5 1 ,

8 ,

2 3 0 ,

1 7 7 ,

2 4 7 ,

2 7 ,

0 ,

2 ,

0 ,

1 6 0 ,2 ,

1 6 0 ,

3 4 ,

5 8 ,

1 7 8 ,

2 0 8 ,

1 2 2 ,

7 3 ,

9 3 ,

2 0 1 ,

2 0 1 ,

2 0 1 ,

2 0 1 ,

2 0 1 ,1 6 2 ,

3 2 ,

7 1 ,

7 6 ,

1 6 9 ,

0 ,

2 0 1 ,

2 4 5 ,

2 0 0 ,

1 3 3 ,

9 4 ,

0 ,

2 5 1 ,

2 0 0 ,1 9 2 ,

2 4 0 ,

1 ,

3 2 , 8 3

2 3 0 , 9 3

2 4 6 , 0

7 4 , 2 0 8

6 6 , 2 0 8

3 2 , 2 4 0

1 3 5 , 2 4 9

9 1 , 3 2

0 , 1 6 0

2 0 8 , 3

2 0 8 , 32 0 8 , 9

1 2 3 ,1 9 8

9 6 , 1 6 2

1 3 6 , 2 4 0

1 1 , 1 3 2

8 8 , 2 4 0

8 3 , 2 4 7

9 1 , 3 2

2 7 , 2 5 1

7 6 , 1 8 9 ,

1 6 4 , 9 4 ,

2 5 0 ,2 4 0 .

4 0 , 3 2 ,

1 3 6 , 1 3 6 ,7 6 , 8 ,

1 6 0 , 0 ,

2 0 , 1 6 0 ,

0 , 3 2 ,

0 , 1 3 8 ,

2 4 6 , 0 ,

1 2 3 , 1 9 8 ,

9 1 , 3 2 ,

0 , 3 2 ,

2 5 1 , 0 ,

2 0 1 , 2 5 0 ,

1 6 0 ,2 2 3 ,

3 2 , 1 9 4 ,

0 , 0 ,

2 , 2 3 0 ,

0 , 0 ,

2 4 0 , 3 5 ,

2 4 0 , 3 4 ,

2 4 0 , 2 6 ,

2 2 5 ,1 9 2 ,

2 0 8 , 2 1 7 ,

1 2 8 , 1 7 0 ,

1 9 2 , 0 ,

6 6 ,2 0 8 ,

8 7 , 2 0 8 ,

1 9 8 , 2 0 8 ,

1 2 8 , 2 0 8 ,

8 0 ,2 0 8 ,2 3 7 , 2 5 5 ,

1 5 0 , 2 4 9 ,

2 4 9 , 0 ,

1 7 2 , 2 4 5 ,

0 , 0 ,

1 3 2 , 9 4 ,

4 4 , 2 4 0 ,

1 6 5 , 2 ,

1 6 5 , 9 4 ,

9 4 , 1 7 6 ,

3 2 , 8 3 ,

1 6 5 , 9 6 ,

0 , 1 6 5 ,

1 5 2 , 2 4 ,2 3 0 ,1 2 3 ,

2 , 2 ,

1 0 1 , 8 9 ,

2 4 7 , 0

2 3 0 , 9 3

1 6 0 , 0

3 , 7 6

1 1 , 2 2 4

3 , 7 6

0 , 2 0 8

1 0 , 2 5 1

0 , 0

7 6 , 2 2 6

7 6 , 2 5 02 3 0 , 1 2 2

9 3 , 4 4

3 , 1 6 4

1 7 , 1 7 7

9 3 , 2 3 2

1 , 1

0 , 2 4 0

1 0 ,2 5 1

0 , 1 3 8

2 5 0 , 0

2 0 0 ,2 0 0

2 2 2 , 3 2

2 7 , 2 5 1

2 4 0 , 42 4 6 , 0

0 , 1 7 7

3 , 1 7 7

8 3 , 2 4 7

3 2 , 2 7

2 3 0 ,1 2 2

9 3 , 1 9 8

1 0 , 2 5 1

2 7 , 2 5 1

2 3 0 ,

2 0 8 ,

2 5 5 ,

1 8 9 ,

1 4 5 ,9 0 ,

9 3

1 3

1

7 6

8 99 6

1 7 7 ,1 2 2

2 2 4 ,1 2 8

2 0 1 , 5 9

2 0 1 ,

0 ,

3 2

0

2 3 0 ,1 2 3

7 6 , 7 0

9 6

7 6

7 6

7 6

7 6

7 61 6 0

0 ,

3 ,

3 ,

3 ,

3 ,

3 ,

2 ,

0 ,

1 6 5 ,

0 ,

1 3 3 ,

1 6 0 ,

3 2

2

7 6

9 6

0

5 , 2 0 0

2 , 2 4 0

1 3 2 , 9 4

4 , 1 6 9

2 4 7 , 0

2 4 0 , 4

9 4 , 2 4 0

1 0 1 ,1 2 22 0 8 ,1 8 8

1 6 9 , 1

1 3 3 , 8 9

eT r a n s a c t o r 7 5 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 80: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 80/88

F KN M

I J

N KK K

P OF OE A

N l

M l

E LK GM PI O

B AG LB HJ L

K D

O J

F OC GC NO E

O JK B

K L

G NK DO ND OK MG DM MP J

L B

M PP F

N DE P

D J

N CP DC MK P

D LI G

B DO HC NM HD H

I F

A MB KP P

A P

M J

J D

K NK OD M

N LD J

C AB GH EA H

C E

L A

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 03 7 8 0

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 03 9 2 0

3 9 3 0

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t ad a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

' d a t a

d a t a

d a t a

d a t ad a t a

d a t a

3 9 4 0d a t a

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 0

4 0 5 04 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

T h eT r a n s a c t o r

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t ad a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

1 4 4 , 2 , 2 , 2 3 0 ,9 0 , 1 9 6 ,9 4 , 2 0 8

1 7 5 , 7 6 , 1 4 8 , 2 5 1 ,0 , 3 2 , 1 3 5 , 2 4 9

0 , 1 6 0 , 1 , 1 ,1 7 7 , 1 2 2 ,2 0 1 , 3 4

2 4 0 , 1 6 , 1 6 6 , 2 , 2 ,2 4 0 , 1 5 , 1 3 2

9 4 , 3 2 ,2 7 , 2 5 1 , 0 , 1 6 4 ,9 4 , 2 0 0

1 9 6 , 9 3 , 2 0 8 , 2 3 4 , 7 6 , 1 4 8 , 2 5 1 ,0

2 3 0 , 8 9 ,2 0 8 , 2 4 4 , 2 3 0 ,9 0 , 2 0 8 ,2 4 0

1 6 5 , 2 , 2 , 2 0 8 , 3 , 7 6 , 2 0 1 , 2 4 5

0 , 3 2 , 1 3 5 , 2 4 9 ,0 , 1 6 2 , 1 2 4 , 2 5 5

2 , 1 6 0 , 1 2 4 , 2 5 5 ,1 , 3 2 , 1 5 0 , 2 4 9

0 , 1 6 5 ,8 9 , 1 3 3 ,5 7 , 1 6 5 ,9 0 , 1 3 35 8 , 3 2 , 1 9 4 , 1 8 9 ,7 6 , 1 7 4 , 1 6 7 , 1 6 5

8 9 , 4 1 , 1 , 1 , 2 4 0 , 9 , 1 6 5 ,2

2 , 2 4 0 , 8 , 1 6 9 ,0 , 0 , 3 2 , 2 7

2 5 1 , 0 , 7 6 , 1 4 8 , 2 5 1 ,0 , 2 3 0 ,8 9

2 0 8 , 2 4 9 , 2 3 0 ,9 0 , 2 0 8 , 2 4 5 ,7 6 , 6 8

6 5 , 1 7 3 , 1 8 9 , 1 8 5 , 1 6 5 , 1 8 1 ,2 5 0 ,2 5 0

1 6 9 , 1 6 1 , 1 7 7 ,8 3 , 8 4 , 6 5 , 1 4 1 , 1 5 7

1 5 3 , 1 3 3 ,1 4 9 ,2 5 0 , 2 5 0 , 2 5 0 ,1 2 9 ,1 4 5

6 6 , 7 8 ,6 9 ,2 0 8 , 2 5 0 , 2 5 0 , 2 5 0 ,2 5 0

2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 ,6 6 , 6 9 ,8 1

2 4 0 , 2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 ,2 5 0

2 5 0 , 2 5 0 ,6 7 , 7 7 ,8 0 , 2 0 5 , 2 2 1 , 2 1 7

1 9 7 , 2 1 3 , 2 5 0 , 2 5 0 , 2 0 1 , 1 9 3 , 2 0 9 ,7 4

8 3 , 8 2 ,3 2 , 2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 ,2 5 02 5 0 , 2 5 0 , 2 5 0 , 2 5 0 ,7 6 , 6 8 ,8 8 , 1 7 4

2 5 0 ,1 9 0 , 1 6 6 ,2 5 0 ,1 8 2 ,2 5 0 ,1 6 2 ,2 5 0

2 5 0 , 8 2 , 8 4 , 8 3 ,2 5 0 ,2 5 0 , 2 5 0 ,2 5 0

2 5 0 , 2 5 0 ,9 6 , 2 5 0 , 2 5 0 , 2 5 0 ,7 6 , 6 8

8 9 , 1 7 2 , 1 8 8 ,2 5 0 ,1 6 4 , 1 8 0 ,2 5 0 ,2 5 0

1 6 0 , 2 5 0 , 2 5 0 ,6 6 , 7 7 , 7 3 ,4 8 , 2 5 0

2 5 0 ,2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 ,2 5 0 ,2 5 0 ,2 5 0

6 8 , 6 9 ,6 7 , 2 0 6 , 2 2 2 , 2 5 0 , 1 9 8 , 2 1 4

2 5 0 ,2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 ,1 7 5 , 0 , 0

0 , 0 , 4 5 , 6 1 , 5 7 , 3 7 ,5 3 , 2 5 0

2 5 0 , 4 1 , 3 3 ,4 9 , 6 6 ,6 7 , 8 3 , 1 7 6

2 5 0 ,2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 ,2 5 0 ,2 5 0 ,2 5 0

2 5 0 , 7 3 , 7 8 ,6 7 , 2 3 8 , 2 5 4 ,2 5 0 ,2 3 0

2 4 6 , 2 5 0 , 2 5 0 , 2 5 0 ,2 5 0 ,2 5 0 , 6 6 , 6 76 7 , 1 4 4 ,2 5 0 ,2 5 0 ,2 5 0 , 2 5 0 ,2 5 0 ,2 5 0

2 5 0 ,2 5 0 , 2 5 0 ,8 4 , 8 9 , 6 5 ,2 5 0 ,2 5 0

2 5 0 ,2 5 0 ,2 5 0 ,2 5 0 ,1 5 2 ,2 5 0 ,2 5 0 ,2 5 0

6 6 , 8 0 ,7 6 , 1 6 , 2 5 0 , 2 5 0 , 2 5 0 , 2 5 0

2 5 0 ,2 5 0 ,2 5 0 ,2 5 0 ,2 5 0 , 6 5 , 8 3 ,7 6

1 4 , 3 0 , 2 5 0 , 6 , 2 2 , 2 5 0 ,1 0 , 2 5 0

2 5 0 ,2 5 0 , 6 7 , 7 6 ,6 7 , 2 5 0 , 2 5 0 ,2 5 0

2 5 0 ,2 5 0 , 2 5 0 ,2 4 ,2 5 0 ,2 5 0 ,2 5 0 , 6 5

6 8 , 6 7 , 1 0 9 , 1 2 5 , 1 2 1 , 1 0 1 , 1 1 7 , 2 5 02 5 0 , 1 0 5 , 9 7 , 1 1 3 ,6 9 , 1 7 6 , 0 , 0

7 7 , 9 3 , 8 9 ,6 9 , 8 5 ,2 5 0 ,2 5 0 , 7 3

6 5 , 8 1 , 8 4 ,8 8 , 6 5 , 2 5 0 , 2 5 0 , 2 5 0

d a t a2 5 0 ,2 5 0 , 2 5 0 ,1 3 8 ,2 5 0 , 2 5 0 , 2 5 0 ,6 7

d a t a8 0 , 8 8 ,2 3 6 , 2 5 0 , 2 5 0 , 2 2 8 , 2 5 0 ,2 5 0

d a t a2 5 0 ,2 2 4 , 2 5 0 , 2 5 0 ,7 4 , 7 7 ,8 0 , 7 6

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

d a t a

1 0 8 ,2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 ,2 5 0 ,2 5 0 ,2 5 0

2 5 0 , 8 4 , 6 5 , 8 8 ,2 5 0 , 2 5 0 , 2 5 0 ,2 5 0

2 5 0 ,2 5 0 ,1 7 0 ,2 5 0 , 2 5 0 ,2 5 0 , 7 3 , 7 8

8 9 ,2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 ,2 5 0 ,2 5 0 ,2 0 0

2 5 0 , 2 5 0 , 2 5 0 ,8 3 , 8 4 , 8 9 , 1 4 0 , 2 5 02 5 0 ,1 3 2 , 1 4 8 ,2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 ,2 5 0

1 7 6 , 6 5 , 0 , 0 , 1 3 , 2 9 , 2 5 , 5

2 1 , 2 5 0 , 2 5 0 ,9 , 1 , 1 , 1 7 , 6 8

6 9 , 8 9 , 2 5 0 , 2 5 0 , 2 5 0 ,2 5 0 ,2 5 0 ,2 5 0

1 3 6 , 2 5 0 , 2 5 0 , 2 5 0 ,6 8 , 6 9 ,8 8 , 2 5 02 5 0 , 2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 , 2 0 2 , 2 5 0 ,2 5 0

2 5 0 , 8 3 , 8 4 ,8 8 , 1 4 2 , 2 5 0 , 2 5 0 , 1 3 4

2 5 0 , 1 5 0 , 2 5 0 , 2 5 0 , 2 5 0 , 2 5 0 ,8 3 , 6 66 7 ,2 3 7 , 2 5 3 , 2 4 9 , 2 2 9 ,2 4 5 ,2 5 0 ,2 5 0

2 3 3 , 2 2 5 , 2 4 1 ,6 6 , 7 3 , 8 4 ,4 4 , 2 5 0

2 5 0 , 3 6 ,2 5 0 , 2 5 0 , 2 5 0 ,2 5 0 ,2 5 0 ,2 5 0

K H

K GO PA N

I H

P L

L A

B l

N P

L J

O GJ E

C MO AN MJ K

I D

E MB BA L

F A

N F

F CC H

E CN P

I J

A H

L B

B J

A l

I M

E K

I J

J A

N L

P OH E

A PA CO PJ B

E P

G BJ F

K CE E

E l

B FG JJ K

N F

I KL GC H

I N

N KP MK NE L

N LM KA BL F

7 6

4 3 7 0d a t a

4 3 8 0d a t a

4 3 9 0d a t a

4 4 0 0d a t a

4 4 1 0d a t a

4 4 2 0d a t a

6 6 ,

2 5 0 ,

6 7 ,

2 5 0 ,

2 5 0 ,

6 7 ,

4 4 3 0d a t a 2 5 0 ,

4 4 4 0d a t a

4 4 5 0d a t a

4 4 6 0d a t a

4 4 7 0d a t a4 4 8 0d a t a

4 4 9 0d a t a

2 5 0 ,

2 5 0 ,

2 5 0 ,

8 0 ,2 5 0 ,

2 5 0 ,

4 5 0 0d a t a 2 5 0 ,

4 5 1 0d a t a

4 5 2 0d a t a

4 5 3 0d a t a

4 5 4 0d a t a

4 5 5 0d a t a

4 5 6 0d a t a

8 6 ,

8 0 ,

2 5 0 ,

2 5 0 ,

8 0 ,

2 5 0 ,

4 5 7 0d a t a 2 5 0 ,

4 5 8 0d a t a

4 5 9 0d a t a

4 6 0 0d a t a

4 6 1 0d a t a4 6 2 0d a t a

4 6 3 0d a t a

4 6 4 0d a t a

4 6 5 0d a t a

4 6 6 0d a t a

2 5 0 ,

2 5 0

7 9

4 21 1 0

2 5 0

2 5 0

6 9

5 6

4 6 7 0d a t a2 5 0

4 6 8 0d a t a

4 6 9 0d a t a

4 7 0 0d a t a

4 7 1 0d a t a

4 7 2 0d a t a

4 7 3 0d a t a

2 5 0

2 5 0

8 9

2 5 0

2 5 0

8 4

4 7 4 0d a t a2 5 0

4 7 5 0d a t a4 7 6 0d a t a

4 7 7 0d a t a

4 7 8 0d a t a

4 7 9 0d a t a

4 8 0 0d a t a

4 8 1 0d a t a

4 8 2 0d a t a

4 8 3 0d a t a

4 8 4 0d a t a

4 8 5 0d a t a

4 8 6 0d a t a

4 8 7 0d a t a

4 8 8 0d a t a

4 8 9 0d a t a4 9 0 0d a t a

4 9 1 0d a t a

4 9 2 0d a t a

4 9 3 0d a t a

4 9 4 0d a t a

4 9 5 0d a t a

4 9 6 0d a t a

4 9 7 0d a t a

4 9 8 0d a t a

4 9 9 0d a t a

5 0 0 0d a t a

7 74 8

3 2

6 9

0

3 2

0

3 2

0

6 6

7 6 ,

8 9 ,

6 6 ,

7 0 ,

7 6 ,8 5 ,

0 ,

7 8 ,

7 9 ,

7 8 ,

7 9 ,

0 ,

6 5 ,

0 .

7 6 ,

4 5 ,

8 2 ,

0 ,

8 0 ,

2 5 0 ,

2 5 0 ,

7 6 ,

2 1 6 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

8 9 ,1 9 2 ,

2 5 0 ,

7 6 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

7 2 ,

8

2 5 0

2 5 0

2 5 0

7 6

2 5 01 2 6

2 5 0

2 5 0

6 7

2 5 0

2 5 0

8 3

2 5 0

2 5 0

2 5 0

2 5 0

8 8

1 5 4

6 53 2

7 2

6 6

0

8 0

0

8 0

0 ,

7 6

6 9

7 7

7 6 ,

7 6 ,

7 6 ,6 5 ,

1 3 ,

6 9 ,

7 6 ,

6 7 ,

7 0 ,

0 ,

7 6 ,

1 3 ,

3 2 ,

7 9 ,

7 5 ,

0 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

6 8 ,

2 5 0 ,

2 5 0 ,

6 7 ,

2 5 0 ,

2 0 4 ,2 5 0 ,

2 5 0 ,

8 3 ,

7 4 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

8 0 ,

2 5 0 ,

2 5 0 ,

8 0 ,

2 5 0

4 6

2 5 02 5 0

8 2

2 5 0

2 5 0

2 5 0

2 5 0

6 9

1 2 0

2 5 0

2 5 0

2 5 0

8 3

2 5 0

8 38 2

8 5

3 2

1 3

6 5

8 3

6 5

1 3 ,

8 9 ,

8 4 ,

6 6 ,

6 9 ,

7 9 ,

6 9 ,7 8 ,

8 5 ,

6 8 ,

0 ,

7 2 ,

3 2 ,

1 3 ,

3 2 ,

7 3 ,

8 0 ,

8 0 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

6 6 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

7 6 ,

1 8 4 ,

2 5 0 ,2 5 0 ,

2 5 0 ,

8 2 ,

2 5 0 ,

2 5 0 ,

8 0 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

2 5 0

7 6

4 0

6 2

2 5 01 0 2

8 4

6 4

2 5 0

2 5 0

2 5 0

7 3

2 5 0

2 5 0

8 4

2 5 0

2 5 0

2 5 0

8 37 9

6 9

4 9

7 0

8 3

6 9

8 3

6 5

3 2

6 9

7 9

3 2 ,

8 7 ,

7 1 ,8 4 ,

7 8 ,

3 2 ,

0 ,

3 2 ,

8 2 ,

7 3 ,

7 7 ,

7 6 ,

8 3 ,

0 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

8 6 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

8 6 ,

2 5 0 ,

2 5 0 ,7 3 ,

2 5 0 ,

7 8 ,

2 5 0 ,

2 5 0 ,

7 2 ,

7 2 ,

2 5 0

2 5 0

2 5 0

8 0

2 5 0

2 5 0

8 21 1 8

7 3

2 5 0

2 5 0

8 3

2 5 0

2 5 0

2 5 0

2 5 0

8 3

1 8 6

2 5 0

2 5 0

3 26 6

7 2

5 7

7 3

8 3

6 7

8 3

8 3

6 7

0

7 6

7 9 ,

0 ,

6 5 ,7 3 ,

6 8 ,

8 3 ,

1 3 ,

7 9 ,

6 5 ,

7 6 ,

7 9 ,

7 6 ,

6 9 ,

0

2 5 0 ,

2 5 0 ,

2 5 0 ,

8 3 ,

2 5 0 ,

2 5 0 ,

6 7 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

1 9 6 ,7 8 ,

2 3 2 ,

9 4 ,

2 5 0 ,

2 5 0 ,

6 5 ,

2 5 0 ,

2 5 0 ,

8 0 ,

2 5 0 ,

2 5 0 ,

2 5 0 ,

3 8

1 7 62 5 0

2 5 0

2 5 0

2 5 0

6 9

2 4 8

2 5 0

2 5 0

2 5 0

8 8

2 5 0

2 5 0

1 8

5 16 9

7 8

5 6

8 2

4 6

7 9

4 6

8 3

7 9

0 ,

3 2 ,

8 6 ,

0 ,

7 6 ,8 4 ,

6 9 ,

8 9 ,

6 6 ,

8 5 ,

7 8 ,

7 6 ,

6 8 ,

6 9 ,

8 5 ,

2 5 0

6 6

2 5 0

1 1 2

2 5 0

2 5 0

7 6

8 8

2 5 0

2 5 0

2 5 08 8

2 5 0

2 5 0

7 8

2 5 0

2 5 0

2 5 0

2 5 0

7 6

1 0 4

2 5 0

2 5 0

5 4

01 0 6

2 5 0

2 5 0

2 5 0

6 8

2 5 0

2 5 0

8 4

2 5 0

2 5 0

2 5 0

2 5 0

8 3

4 68 2

3 2

5 4

8 3

4 6

7 8

4 6

6 9

7 7

1 3

8 4

6 9

1 3

3 28 9

7 0

7 7

8 2

8 4

7 1

6 9

6 9

7 1

( 3 8

u l y1 9 8 6 :V o l u m e7 ,

2 5 0

8 6

2 5 0

2 5 0

2 5 0

2 5 0

7 3

2 5 0

2 5 0

6 7

, 2 5 0, 2 5 0

, 2 5 0

, 7 0

, 7 9

, 2 3 4

, 2 5 0

, 2 5 0

, 2 5 0

, 6 5

, 2 5 0

, 2 5 0

, 8 2

, 2 5 0

, 0, 2 5 0

, 2 5 0

, 8 3

, 2 5 0

, 2 5 0

, 2 5 0

, 2 5 0

, 6 5

, 1 6 8

, 2 5 0

, 2 5 0

, 2 5 0

, 8 9

, 4 9, 8 4

, 7 0

, 1 3

, 8 4

, 4 6

, 6 8

, 4 6

, 7 7

, 8 0

, 8 3

, 6 5

, 8 2

, 7 3

, 8 1, 0

, 7 3

, 6 6

, 6 5

, 3 2

, 6 9

7 1

0

6 5

7 9

I s s u eO l

Page 81: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 81/88

N e w sB R K

b m i t t i n gN E W S B R KP r e s s R e l e a s e s

o u h a v ea p r e s sr e l e a s ew h i c hy o uw o u l dl i k e t os u b m i tf o rt h eN E W SB R K

l u m n ,m a k es u r et h a tt h ec o m p u t e ro r d e v i c ef o rw h i c ht h ep r o d u c ti s

t e n d e di s p r o m i n e n t l yn o t e d .W er e c e i v eh u n d r e d so f p r e s s r e l e a s e sf o re a c h

s u e ,a n d o n e sw h o s ei n t e n d e dr e a d e r s h i pi s n o tc l e a rm u s tu n f o r t u n a t e l yg o

r a i g h tt o t h et r a s hb i n .I t s h o u l da l s ob e m e n t i o n e dh e r et h a tw eo n l yp r i n t

o d u c tr e l e a s e sw h i c ha r ei n s o m ew a yA p p l i c a b l et o C o m m o d o r ee q u i p m e n t .

r a n s a c t o rN e w s

a n s a c t o ro n M i c r o f i c h e

en o wh a v e1 8 T r a n s a c t o rM a g a z i n e so n m i c r o f i c h e !- a l l o f V o l u m e4 ,

l u m e5 , a n dV o l u m e6 . A c c o r d i n gt oC o m p u t r e x ,o u rf i c h em a n u f a c t u r e r ,t h e

i p sa r e t h e" p o p u l a r9 8 p a g es i z e " ,s o t h e ys h o u l d b e c o m p a t i b l ew i t he v e r y

h er e a d e r .

k e e pt h i n g s s i m p l e ,w e ' r em a k i n gt h e p r i c eo f t h e f i c h et h e s a m ea s

g a z i n e s , w i t ho n ee x c e p t i o n .A s i n g l eb a c ki s s u ew i l lb e $ 4 . 5 0( r e m e m b e r ,

uc a nn o wg e tt h o s e5 T r a n s a c t o r st h a ta r en o l o n g e r a v a i l a b l eo n p a p e r ! ) ,

ds u b s c r i p t i o n sw i l la l s ob e t h es a m ep r i c ea s s h o w no n t h eo r d e rc a r d .T h e

c e p t i o n ?A c o m p l e t es e to f 1 8( V o l u m e s4 , 5 ,a n d6 ) w i l lc o s tj u s t$ 3 9 . 9 5 !

a n s a c t o rM a i lO r d e rN e w s

rm a i l - o r d e rd e p a r t m e n ti s e x p a n d i n gn i c e l y ,b u to u rm a i l - o r d e rc a r di s n ' t .

e m sw ej u s tc a n ' t f i n da n ym o r e r o o mt o p u tm o r et e x tw i t h o u tm a k i n gi t s o

a l lt h a ty o uc a n ' tr e a di t . S o ,i f y o u ' r e u s i n g t h e c a r dt o o r d e r ,w es u g g e s ty o u

l li t o u ta n dc r o s s - r e f e r e n c ew i t ht h el i s tb e l o wf o rm o r ed e t a i l s .

n n e rS p a c e A n t h o l o g y$ 1 4 . 9 5

i si s o u re v e r p o p u l a rC o m p l e t eC o m m o d o r eI n n e rS p a c eA n t h o l o g y .E v e n

e ra y e a r ,w es t i l lg e ti n q u i r i e sa b o u ti t sc o n t e n t s .B r i e f l y ,T h eA n t h o l o g yi s a

f e r e n c eb o o k- i t h a sn o " r e a d i n g "m a t e r i a l( i e ." p a r a g r a p h s " ) .I n 1 2 2p a g e s ,

e r e a r em e m o r ym a p sf o r5 C B Mc o m p u t e r s ,3 D i s kD r i v e s ,a n dm a p so f

O M A L ;s u m m a r i e so f B A S I C c o m m a n d s ,A s s e m b l e r a n dM L Mc o m m a n d s ,

dW o r d p r o c e s s o ra n dS p r e a d s h e e tc o m m a n d s .M a c h i n e L a n g u a g ec o d e sa n d

d e sa r es u m m a r i z e d ,a s w e l la s e n t r yp o i n t st o R O Mr o u t i n e s .T h e r ea r e

c t i o n so n M u s i c , G r a p h i c s ,N e t w o r k a n dB B Sp h o n en u m b e r s ,C o m p u t e r

u b s ,H a r d w a r e ,u n i t - t o - u n i tc o n v e r s i o n s ,p l u sm u c hm o r e . . .a b o u t2 . 5

l l i o n c h a r a c t e r st o t a l !

T h eT o o l b o x ( P A La n dP O W E R )$ 7 9 . 9 5

La n dP O W E Rf r o mP r o - L i n e a r et w oo f t h em o s tp o p u l a rp r o g r a m sf o rt h e

m m o d o r e6 4 .P A Li s a n e a s y - t o - u s ea s s e m b l e r( m o s ta s s e m b l e rl i s t i n g si n

eT r a n s a c t o ra r ei n P A Lf o r m a t ) ,a n dP O W E Ri s a p r o g r a m m e r ' sa i dp a c k a g e

ta d d se d i t i n gf e a t u r e sa n du s e f u lc o m m a n d st o t h ep r o g r a m m i n ge n v i r o n

n t .T h e yc o m ew i t ht w on i c em a n u a l s ,a n do u rp r i c ei s $ 5 0l e s st h a n

g g e s t e dr e t a i l !

T h eG U N KC 6 4t o I E E EI n t e r f a c e$ 4 9 . 9 5

eG L I N Kp l u g si n t ot h ec a r t r i d g ep o r t ,b u t d o e s n ' te x t e n dt h ep o r tf o rm o r e

r t r i d g e s( f o rt h a t y o u ' l ln e e da " m o t h e r b o a r d "o fs o m ek i n d ) .T h eo t h e rs i d eo f

eG L I N Ki s a I E E Ec a r d - e d g es u i t a b l ef o ra P E T - I E E Ec a b l e .F r o mt h e r e ,a n y

E Ed e v i c e c a n b e a c c e s s e di n c l u d i n g d i s kd r i v e s ,m o d e m s ,p r i n t e r s ,e t c .T h e

I N Ki s " t r a n s p a r e n t "- t h a tm e a n si t w o n ' ti n t e r f e r ew i t h p r o g r a m s ,e x c e p t

o s et h a tr e l yo n t h es e r i a lr o u t i n e sw h i c hi t r e p l a c e s( i e .p r o g r a m sw i t hb u i l t -

f a s t l o a d e r s "f o rt h e1 5 4 1w o n ' tl i k et h ep r e s e n c eo f t h eG L I N K ) .I t h a sn o

n u a l( a s i d ef r o mo n ep a g eo f i n s t a l l a t i o ni n s t r u c t i o n s )b e c a u s ei t a l t e r s

t h i n ga n dl e a v e se v e r y t h i n gu n c h a n g e d !A n o n - b o a r ds w i t c ha l l o w sy o ut o

e c t S e r i a lo r I E E E .G L I N Kw o r k sw i t hb o t ht h eC 6 4a n dt h eC l2 8 i n 6 4 m o d e .

■ T h eT r a n s B A S I CD i s k $ 9 . 9 5

T h i si s t h ec o m p l e t ec o l l e c t i o no f e v e r yT r a n s B A S I Cm o d u l ee v e rp u b l i s h e d .

T h e r ea r eo v e r 1 2 0c o m m a n d sa t y o u rd i s p o s a l .Y o up i c k t h eo n e s y o u w a n tt o

u s e ,a n di n a n yc o m b i n a t i o n !I t ' ss o s i m p l et h a ta s u m m a r yo f i n s t r u c t i o n sf i t s

r i g h to n t h ed i s kl a b e l .T h em a n u a ld e s c r i b e se a c ho f t h ec o m m a n d s ,p l u sh o w

t o m a k ey o u ro w nc o m m a n d s .

■ J i mB u t t e r f i e l d ' s1 9 8 6D i a r y$ 5 . 9 5( p l u s5 0 «p & h )

J i mh a sp u t t o g e t h e r ah a n d yp o c k e tr e f e r e n c et h a ti n c l u d e s t h em o s t - u s e d

a r e a so f m e m o r ym a p s ,c o m m a n ds u m m a r i e s , e q u i p m e n t s u m m a r is o m e

s h o r tp r o g r a m s ,s o u n da n dv i d e o ,m a c h i n el a n g u a g e ,a n da g l o s s a r y ,f o l l o w e d

b ya p o c k e td i a r ya n da n e a t c o l o u rm a po f t h eL o n d o nE n g l a n d U n d e r g r o u n

i n c a s ey o u ' r e g o i n gt h e r e .

■ T h eS MC o m p i l e r$ 3 9 . 9 5 U S , $ 4 9 . 9 5C d n

T h i s c o m p i l e ri s f o rB A S I C7 . 0o n t h eC o m m o d o r e1 2 8 .W e ' v e c o m p a r e di t w i t h

t w oo t h e r s ,a n dt h i si s t h e o n ew e l i k e .W a t c hf o r t h a tc o m p a r i s o ni n a n

u p c o m i n gi s s u e .

■ S u p e rK i t1 5 4 1 $ 2 9 . 9 5 U S , $ 3 9 . 9 5C d n

S u p e rK i ti s ,q u i t e s i m p l y ,t h eb e s t d i s kf i l eu t i l i t yt h e r ei s .N om o r el o s i n gt h o s e

v a l u a b l ec o p y - p r o t e c t e do r i g i n a l s( l i k ew h a t ' sh a p p e n e dt o m et w i c ei n t h el a s t

m o n t h ) .S e et h eN e w sB R Ki t e m a h e a d .

■ P a p e r b a c kW r i t e rC 6 4 $ 3 9 . 9 5U S ,$ 4 9 . 9 5C d n

■ P a p e r b a c kP l a n n e rC 6 4 $ 3 9 . 9 5 U S ,$ 4 9 . 9 5C d n

■ P a p e r b a c kF i l e r C 6 4 $ 3 9 . 9 5 U S ,$ 4 9 . 9 5C d n

■ P a p e r b a c kW r i t e rC 1 2 8$ 4 9 . 9 5 U S , $ 6 9 . 9 5C d n

■ P a p e r b a c kP l a n n e rC 1 2 8$ 4 9 . 9 5 U S , $ 6 9 . 9 5C d n

■ P a p e r b a c kF i l e r C l 2 8$ 4 9 . 9 5 U S , $ 6 9 . 9 5C d n

■ P a p e r b a c kD i c t i o n a r y$ 1 4 . 9 5U S ,$ 1 9 . 9 5C d n

I n o u ro p i n i o n , t h eP a p e r b a c kp a c k a g e s f r o mD i g i t a lS o l u t i o n sa r et h eb e s ty o u

c a ng e to n t h e i ro w n- t h ef a c tt h a tt h e yw o r kw i t he a c ho t h e rm a k e s t h e me v e n

b e t t e r .P l a n n e ra n dF i l e rd a t ac a n b e l o a d e di n t ot h eW r i t e r ,W r i t e rt e x tc a nb e

s e n tt o t h eF i l e r ,a n de t c e t e r a .T h eD i c t i o n a r ys p e l lc h e c k e rw o r k sw i t h b o t h

v e r s i o n so f t h eW r i t e r .

A s m e n t i o n e de a r l i e r ,a l l i s s u e so f T h eT r a n s a c t o rf r o mV o l u m e4 I s s u e 0 1

f o r w a r da r en o wa v a i l a b l eo n m i c r o f i c h e .S o m ei s s u ea r eO N L Ya v a i l a b l eo n

m i c r o f i c h e -t h e s ea r em a r k e d" M Fo n l y " .T h i sl i s ta l s os h o w st h e" t h e m e s "o f

e a c hi s s u e ." T h e m ei s s u e s "d i d n ' ts t a r tu n t i lV o l u m e5 , I s s u e0 1 .

I V o l .4 ,

I V o l .4 ,

I V o l .4 ,

I V o l .5 ,

I V o l .5 ,

I V o l .5 ,

I V o l .5 ,

I V o l .5 ,

I V o l .5 ,

I V o l .6 ,

I V o l .6 ,

I V o l .6 ,

I V o l .6 ,

I V o l .6 ,

I V o l .6 ,

I V o l .7 ,

I s s u e 0 1

I s s u e0 2

I s s u e0 3I s s u e0 1

I s s u e0 2

I s s u e0 3

I s s u e0 4

I s s u e0 5

I s s u e0 6

I s s u e 0 1

I s s u e0 2

I s s u e0 3

I s s u e0 4

I s s u e0 5

I s s u e0 6

I s s u e0 1

D i s k l ) ■ V o l .4 , I s s u e0 4

D i s k l ) ■ V o l .4 , I s s u e0 5

D i s k l ) ■ V o l .4 , I s s u e0 6- S o u n da n dG r a p h i c s

- T r a n s i t i o nt o M a c h i n eL a n g u a g e

- P i r a c ya n dP r o t e c t i o n- M Fo n l y

- B u s i n e s s& E d u c a t i o n -M Fo n l y

- H a r d w a r e& P e r i p h e r a l s

- A i d s& U t i l i t i e s

- M o r eA i d s& U t i l i t i e s

- N e t w o r k i n g& C o m m u n i c a t i o n s

- T h eL a n g u a g e s

- I m p l e m e n t i n gT h eS c i e n c e s

- H a r d w a r e& S o f t w a r eI n t e r f a c i n g

- R e a lL i f eA p p l i c a t i o n s

- R O M/ K e r n e lR o u t i n e s

- M F o n l y

- M F o n l y

- M F o n l y

D i s k1 )

D i s k1 )

D i s k1 )

D i s k2 )

D i s k2 )

D i s k2 )

D i s k3 )

D i s k4 )

D i s k5 )

D i s k6 )

D i s k7 )

( ■ D i s k8 )

( ■ D i s k9 )

( ■ D i s k1 0 )

( ■ D i s k1 1 )

( ■ D i s k1 2 )

( I

N o t e s :T h eT r a n s a c t o r D i s k* 1 c o n t a i n sa l l p r o g r a mf r o mV o l u m e4 , a n dD i s k

* 2 c o n t a i n sa l l p r o g r a m s f r o mV o l u m e5 , I s s u e s1 - 3 .A f t e r w a r d st h e r ei s a

s e p a r a t e d i s kf o re a c hi s s u e .D i s k 8 f r o mT h eL a n g u a g e sI s s u ec o n t a i n sC O M A L

eT r a n s a c t o r 7 7 J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 82: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 82/88

0 . 1 4 ,a s o f t - l o a d e d ,s l i g h t l ys c a l e dd o w nv e r s i o no f t h eC O M A L2 . 0c a r t r i d g e .

A n dV o l u m e6 , I s s u e0 5 p u b l i s h e dt h ed i r e c t o r i e sT r a n s a c t o r D i s k s1 t o 9 .

T h eV i e w t r o nS t a r t e rK i t

S i n c eV i e w t r o ni s n o ws h i p p i n gs t a r t e rk i t s f o rf r e e( $ 2 . 5 0 U S .p & h ) ,w e ' v e

d i s c o n t i n u e dd i s t r i b u t i o n .S e et h ea d t h i si s s u ef o rm o r ed e t a i l s .

T r a n s a c t o rO p e nO nV i e w t r o n !

R e m e m b e r ,a n yo f t h ea b o v ei t e m sc a n b e o r d e r e df r o mo u rT r a n s a c t o rS e c t i o n

o n V i e w t r o n .J u s t s i g no n , e n t e r" t r a n s a c t o r " ,a n dp r o c e e dt o t h e o r d e rs e c t i o n .

W e ' l lr e s p o n dt o c o n f i r m ,a n du s u a l l yh a v e y o u ro r d e ro u t t h es a m ew e e k .S e e

t h e" V i e w t r o nK e y w o r d s "a r t i c l eo n p a g e2 6 o f t h i si s s u ef o rm o r ei n f o .

I n t h e n e x tT r a n s a c t o rw e ' l lh a v ea c o m p l e t er u n d o w no n u s i n gt h eT r a n s a c t o r

s e c t i o n ,w h i c h ,f o rt h em o s tp a r t , w i l la p p l yt o j u s ta b o u ta n yV i e w t r o ns e c t i o n .

I fy o ug e to n b e f o r et h a t ,l e a v eu s s o m em a i l- w e ' l lb e h a p p yt o h e a rf r o my o u !

T h eT r a n s a c t o rC o m m u n i c a t i o n sD i s k

W e ' r ec u r r e n t l yw o r k i n g o na " T r a n s a c t o rC o m m u n i c a t i o n sD i s k " .W ea l r e a d y

h a v ep e r m i s s i o nf r o mV i e w t r o nt o i n c l u d et h e i rs o f t w a r ea n dh o p et o i n c l u d e

m a n ym o r e .W h e nf i n i s h e di t c o u l dh o s ta s m a n ya s 1 5d i f f e r e n tm o d e m

p r o g r a m s a n dm a ye v e nr e q u i r et w od i s k e t t e s .W ea l s op l a na n " a l l - i n - o n e "

m a n u a lt o g o w i t hi t s oy o u ' l ln e v e rb ew i t h o u t at e l e c o m m u n i c a t i o n sp r o g r a m

f o rv i r t u a l l ya n yh o s tc o m p u t e r a n dp r o t o c o l .B u ti t ' sn o tr e a d yy e ts o d o n ' ts e n d

a n yo r d e r s .M o r en e x ti s s u e .

I n d u s t r yN e w s

W o r k s h o p sI n C o m p u t e r - A s s i s t e dI n s t r u c t i o nI n M u s i c

T h el a bf o rC o m p u t e r - A s s i s t e dI n s t r u c t i o ni n M u s i ca t B r o o k l y nC o l l e g ew i l lb e

o f f e r i n gt w ow o r k s h o p st h i ss u m m e rf o rm u s i ct e a c h e r sw h oa r ei n t e r e s t e di n

u s i n gc o m p u t e r sa s a t e a c h i n gt o o l .E a c hw o r k s h o pw i l ll a s tf i v ed a y sa n di n c l u d e1 5 h o u r so f c l a s s r o o mi n s t r u c t i o no n t h eC o m m o d o r e6 4 c o m p u t e r s

a n dt h e i ra p p l i c a t i o n si n t e a c h i n gm u s i c .T h ec o s t :$ 2 0 0 . 0 0 / w o r k s h o p .T h e

d a t e sa r e J u l y7 - 1 1 , 1 9 8 6 a n dJ u l y1 4 - 1 8 ,1 9 8 6 .

T h e s e w o r k s h o p sa r eo f f e r e di n a f f i l i a t i o nw i t ht h eC e n t e rf o rC o m p u t e rM u s i c

a t B r o o k l y nC o l l e g e .F o rf u r t h e ri n f o r m a t i o na n da p p l i c a t i o n , c o n t a c t :

G a r yS . K a r p i n s k i , D i r e c t o r

L a bf o rC A 1i n M u s i c

C o n s e r v a t o r yo f M u s i c

B r o o k l y nC o l l e g e ,B r o o k l y n ,N Y 1 1 2 1 0

( 7 1 8 ) 7 8 0 - 5 2 8 6

D i s t r e s s e dC o m m o d o r eU s e r sH o t l i n e

O nJ a n u a r y1 s t ,1 9 8 6 ,D a v i d B r a d l e yb e g a no p e r a t i n g ab r a n dn e wF r e e w a r e

s e r v i c ef o rn e wC o m m o d o r ec o m p u t e ru s e r s .I t i s a h o t l i n ef o ru s e r st o c a l l

w h e nt h e ya r eh a v i n gt r o u b l e ( s )w i t ht h e i rn e wm a c h i n e s .T h eh o t l i n eo p e r a t e s

M o n d a yt o F r i d a yf r o m2 : 0 0P Mt o 1 0 : 0 0P Ma n dt h en u m b e rf o ru s e r st o c a l li s

( 4 1 6 )4 8 8 - 4 7 7 6 .U s e r st h a tw a n tm o r ei n f o r m a t i o na b o u tt h es e r v i c ec a nw r i t e

t o :

D i s t r e s s e dC o m m o d o r eU s e r sH o t l i n e

1 4 7R o eA v e n u e

T o r o n t o ,O n t a r i o ,C a n a d a

M 5 M 2 H 8

O rt h e yc a nc a l la n yl i n eo f t h eB r a d l e yB r o t h e r sB u l l e t i nB o a r d S y s t e ma t ( 4 1 6 )

4 8 7 - 5 8 3 3 ,( 4 1 6 )4 8 1 - 8 6 6 1 ,( 4 1 6 )4 8 1 - 9 0 4 7o r ( 4 1 6 )2 7 7 - 9 9 9 1 .A l lf o u rl i n e s

o p e r a t e 2 4 h o u r sa d a y ,7 d a y sa w e e k .

T h e1 5 4 1R e v e a l e d

" T h e1 5 4 1 R e v e a l e d "i s a 4 8 - p a g eb o o k l e tf r o m W r i t eP r o t e c tP u b l i s h i

W r i t t e nb y F e l i xR i v e r aa n dE v e l i o Q u i r o s , t h eb o o kc o n t a i n si n f o r m a t i oa n d

d i a g r a m sc o n c e r n i n gt h e 1 5 4 1d i s kd r i v e ' si n t e r n a l s ,a n dp r a c t i c a lt i p s t

p r o l o n gt h eu n i t ' sl i f e .S e c t i o n so f t h eb o o ki n c l u d e :A no v e r v i e wo f t h e 1 5 4

h o wa n dw h yp r o b l e m sa r i s e ," T h e N a k e d1 5 4 1 " , C l e a n i n g ,l u b r i c a t i

a d j u s t i n ga n da l i g n i n g .A s e c t i o no n m o d i f i c a t i o n s e x p l a i n sh o wt o : c h a n g

d e v i c en u m b e r s ,a d da f r o n t - m o u n t e dp o w e rs w i t c h ,c h a n g et h eh e a de n d - s t

t o a " s p r i n g y " o n e ,a n da d da w r i t e - p r o t e c t s w i t c h .T h ew r i t i n gs t y l ei s i n f o r ma n de a s yt o u n d e r s t a n d .

A l a b e l l e dg e n e r a lb o a r dl a y o u to f t h e1 5 4 1i s f o u n di n t h e c e n t r eo f t h eb o o k l e

a n da " t r a c kc h e c k e r "p r o g r a ma n da l i s to f r e f e r e n c e si s i n c l u d e da t t h e e n

P r i c eo f t h eb o o k l e ti s $ 5 . 0 0 .F o rm o r ei n f o r m a t i o n ,c o n t a c t :

W r i t eP r o t e c tP u b l i s h i n gC o m p a n y

S u i t e 4 E ,1 3 5 C h a r l e sS t r e e t

N e wY o r k ,N Y1 0 0 1 4

U s e dC o m p u t e rL i s t i n gS e r v i c e

D u et o w i d e s p r e a dd e m a n d ,C o m p - U s e d ,w h i c hh a s h e l p e d b u y e r sa n ds e l l e

o f u s e dc o m p u t e r e q u i p m e n ti n t h eN o r t hE a s tf o rt w oy e a r s ,i s e x p a n d i ni t s

s e r v i c e s .

C o m p - U s e di s a l i s t i n gs e r v i c et h a tf a c i l i t a t e st h es a l ea n dp u r c h a s eo f u s e d

c o m p u t e re q u i p m e n t .A n y o n ew i t he q u i p m e n t w o r t ho v e r$ 1 0 0c a nc o n t a

t h eC o m p - U s e dc o m p u t e rt o r e g i s t e rt h ep r o d u c tf o r s a l e . I nt h es a m ev e i n

a n y o n ei n t h em a r k e tt o p u r c h a s ee q u i p m e n tc a nc a l lt h eC o m p - U s e dc o m p u

f o ri n f o r m a t i o n .C o m p - U s e dc o n n e c t st h eb u y e ra n ds e l l e ra n dt h e yf i n a l i z et h e

s a l e .W h e na t r a n s a c t i o n t a k e sp l a c e ,t h e s e l l e rp a y sC o m p - U s e da s m a l

c o m m i s s i o n ;t h e r ei s n o c h a r g et o b u y .

T ot a l kw i t ht h eC o m p - U s e dt e l e p h o n e c o m p u t e r ,c a l l( 2 0 3 )7 6 2 - 8 6 7 7

C o m p - U s e d8 5 R i v e r g a t eD r i v e

W i l s o n ,C T 0 6 8 9 7

S t e v eJ o b sa n dP i x a rE m p l o y e e sB u yP i x a r

S a nR a p h a e l ,C A . -P i x a r ,t h ec o m p u t e rg r a p h i c sd i v i s i o no f L u c a s f i l mL t d . ,h a s

a n n o u n c e dt h a ti t h a sb e e na c q u i r e db y S t e v e nP . J o b sa n dt h ee m p l o y e eo f

P i x a r . P i x a r ,n o wa n i n d e p e n d e n tc o m p a n y ,w i l ld e s i g n ,m a n u f a c t u ra n d

m a r k e th i g hp e r f o r m a n c e c o m p u t e r sa n ds o f t w a r es p e c i f i c a l l yt a i l o r e df o rs t a t

o f t h ea r tc o m p u t e rg r a p h i c sa n di m a g ep r o c e s s i n ga p p l i c a t i o n s .

T h e n e wf i r mh a sa p r o d u c t , t h e P i x a rI m a g e C o m p u t e r ,r e a d yf o r m a r k e

D e v e l o p e dd u r i n gt h e l a s tt h r e ey e a r sa t L u c a s f i l mL t d . ,t h e P i x a rI m a g

C o m p u t e ri s n e a r l y2 0 0t i m e sf a s t e rt h a n c o n v e n t i o n a lm i n i c o m p u ta t

p e r f o r m i n gc o m p l e xg r a p h i ca n di m a g ec o m p u t a t i o n s .A t t h e s es p e c i a l i

t a s k s ,t h e P i x a rI m a g eC o m p u t e ri s a l s of a s t e rt h a na $ 6m i l l i o ns u p e r c o m p

T h eP i x a rI m a g eC o m p u t e rw i l lb e i n t r o d u c e dt o t h ec o m m e r c i a l a n ds c i e n t i

m a r k e t sw i t h i n t h e n e x t9 0d a y sa n dw i l ls e l lf o ra p p r o x i m a t e l y$ 1 2 5 , 0 0 0 .

P i x a rw a so r i g i n a l l yf o r m e di n 1 9 7 9 b yG e o r g eL u c a st o b r i n gh i g ht e c h n o l

t o t h e f i l mi n d u s t r y .L u c a s f i l mL t d . w i l lc o n t i n u et o u s e t h e P i x a rI m a g

C o m p u t e ra n do t h e rt e c h n o l o g i e st o p r o d u c ec o m p u t e ra n i m a t i o nf o rf i l m

t h r o u g hi t ss p e c i a le f f e c t sd i v i s i o n , I n d u s t r i a lL i g h t& M a g i c( 1 L M ) ,a n df o rh o m

e n t e r t a i n m e n t t h r o u g hi t sG a m e sG r o u p .

M S DD i s k D r i v eI n f o r m a t i o nE x c h a n g e

N o wt h a tM i c r oS y s t e mD e v e l o p m e n t ,t h em a k e ro f M S DD i s kD r i v e s ,i s n o

l o n g e ri n b u s i n e s s ,a n i n f o r m a t i o ne x c h a n g ei s b e i n gs e tu p t o s e r v e t h en e e d

o f M S Dd i s kd r i v eu s e r s .T h ef i r s tp r o j e c ti s a d a t a b a s eo f c o m p a t i b l es o f t w a

T h eT r a n s a c t o r 7 8 J u l y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 83: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 83/88

e r so f M S Dd i s kd r i v e s a r ee n c o u r a g e dt o p a r t i c i p a t ei n t h ee x c h a n g e . D I S K O R G A N I Z E RF o rT h e C 6 4

eM S DI n f o r m a t i o nE x c h a n g ei s a n o f e e s , n o t - f o r - p r o f i t ,u s e rs e r v i c e .T h o s e

oc o n t r i b u t e i n f o r m a t i o nt o t h ee x c h a n g ew i l lb e p r o v i d e dt h e f o l l o w i n g

v i c e s :

o ra s e l f - a d d r e s s e ds t a m p e de n v e l o p e ,a p r i n t o u to fa v a i l a b l ei n f o r m a t i o ni n

n es e l e c t e dc a t e g o r y .

o ra b l a n kd i s kw i t h m a i l e ra n dr e t u r n p o s t a g e , ac o p yo f t h e I n f o r m a t i o n

x c h a n g ed a t ad i s ki n S u p e r b a s e6 4 f o r m a t( d a t ad i s ko n l y ) .

p i c a le n t r i e si n t h ee x c h a n g ed a t ab a s e i n c l u d e -

r dP r o c e s s o r ,P a p e r C l i p6 4 ,B a t t e r i e sI n c l u d e d ,6 4 CE d i t i o n

- 2 :F u l l yc o m p a t i b l es e r i a lo r p a r a l l e l( Q u i c k s i l v e ri n t e r f a c e )

r e a d s h e e t , M u l t i p l a n6 4 ,H e s w a r e ,v . 1 . 0 6

- 2 :P a r t i a l l yc o m p a t i b l e .D a t af i l e sm a yn o tb e s a v e d .

c k u p ,M S DS h u r eC o p y , M e g a s o f t

- 2 :S e r i a lc o m p a t i b l e .P a r a l l e l :I n c o m p a t i b l ew i t h Q u i c k s i l v e r

t e r t a i n m e n t ,F l i g h tS i m u l a t o rI I ,S u bL o g i c

- 2 :I n c o m p a t i b l e

ei n f o r m a t i o ne x c h a n g ew i l la l s om a i n t a i nf i l e so n t h e a v a i l a b i l i t y o f

h n i c a li n f o r m a t i o no n M S Dd i s k d r i v e s i n c l u d i n gp a r t s ,s e r v i c e ,s e r v i c e o r

i n t e n a n c em a n u a l s ,w i r i n g d i a g r a m s ,m e m o r ym a p s ,e t c .a s p r o v i d e db y

r s .

o f t w a r eN e w s

t r o d u c i n gS u p e rK i t / 1 5 4 1

i s m S o f t w a r ei s p r o u dt o i n t r o d u c eS u p e rK i t / 1 5 4 1f o rt h eC o m m o d o r e6 4 .

p e rK i ti s t h em o s tf u l l - f e a t u r e d1 5 4 1u t i l i t yp a c k a g et o b e f o u n dt o d a y . J u s t

o ka t t h ef e a t u r e so f f e r e d :

n g l e / D u a lN o r m a lC o p i e r :C o p i e sa d i s kw i t hn o e r r o r si n 3 2 . 6 8s e c o n d s .

a lv e r s i o nh a sg r a p h i c sa n dm u s i c .

n g l e / D u a l N i b b l eC o p i e r :N i b b l ec o p i e s a d i s ki n 3 4 . 9 2s e c o n d s .D u a lv e r s i o n

sg r a p h i c sa n dm u s i c .

n g l e / D u a lF i l eC o p i e r : 6t i m e sn o r m a lD O Ss p e e d . I n c l u d e sm u l t i - c o p y ,

l t i - s c r a t c h ,v i e w - e d i tB A M ,a n dn e wS u p e rD O SM o d e .

a c ka n dS e c t o rE d i t o r : F u l l e d i t i n go f t & si n h e x ,d e c ,a s c i i ,b i n .I n c l u d e s

n i t o r / d i s a s s e m b l e r w i t hp r i n t o u tc o m m a n d s .

RE d i t o r :Y e sd i s kf a n s ,a f u l lb l o w ns e c t o rb y s e c t o ro r t r a c kb y t r a c kG C R

t o r .I n c l u d e sB i tD e n s i t yS c a n .

p e rD O SI : F a s tb o o tf o rS u p e r D O S .1 5 0b l o c k si n 1 0 . 1 2s e c o n d s .

p e rD O SI I :S c r e e no n a n ds t i l ll o a d s1 5 0b l o c k si n 1 4 . 8 7s e c o n d s .

p e rN i b b l e r :Q u i t ef r a n k l y ,i f i tc a nb e c o p i e do n a 1 5 4 1 ,t h i sw i l ld o i t !

c l u d i n gA b a c u s ,T i m e w o r k s ,A c c o l a y d e , E p y x ,A c t i - v i s i o n ,E l e c t r o n i cA r t s .

ep r i c e ,$ 2 9 . 9 5p l u s$ 3 . 0 0 s h i p p i n ga n dh a n d l i n g .

i s m S o f t w a r e

1L a k eA i r D r i v e , S u i t eD

c o , T e x a s7 6 7 1 0

d e r s( 8 1 7 )7 5 7 - 4 0 3 1( o ru s e o r d e rc a r da t c e n t e r )

c h ( 8 1 7 ) 7 5 1 - 0 2 0 0

Y o up r o b a b l yb o u g h t y o u rc o m p u t e r ,a t l e a s tp a r t i a l l y , t oh e l py o ug e to r g a

n i z e d .A n dy o up r o b a b l ys t a r t e dw i t ha h a n d f u lo f d i s k so n w h i c h y o us t o r e da l l

y o u rf i l e s .B u tn o wy o u h a v eb o x e sa n db o x e so fd i s k sw i t hd i r e c t o r i e st h a tl o o k

l i k et h e yw e r eo r g a n i z e db y a n o tp a r t i c u l a r l y b r i g h tc h i m p a n z e e .Y o ul i k e

e l e g a n c ea n do r d e r ,a n d y o uw i s hy o uc o u l do r g a n i z ey o u rd i s k s ,b u tt h i ss e e m s

s u c ha g a r g a n t u a nt a s kt h a ty o uk e e pp u t t i n gi t o f f .T h eo r d e ro f t h ef i l e so n a

C o m m o d o r ed i s kd i r e c t o r ys e e m st o b e e n g r a v e di n s t o n e .( T h es a m es t o n e

h o l d st h e h e a d e r . )T h eo n l yw a yt o r e o r g a n i z et h e d i r e c t o r yi s t h r o u g hl a b o r i o u sf i l ec o p y i n gt o a f r e s h d i s k , r i g h t ?W r o n g !W eh a v eg o o dn e w s :

D I S K O R G A N I Z E Rf o rt h eC - 6 4 .

W i t ht h i su l t i m a t ed i s ku t i l i t yf o rt h eC - 6 4y o uc a nq u i c k l ya n de a s i l ys o r ta n d

r e a r r a n g e t h ed i s k d i r e c t o r yo f a n y u n p r o t e c t e dd i s kt o m e e ty o u ro w n

s p e c i f i c a t i o n s ,a n dt h en e wd i r e c t o r yi s a c t u a l l yw r i t t e nb a c ko n t ot h ed i s k !

U s i n ga c o n v e n i e n ts c r e e ne d i t o ry o uc a na l s oc h a n g et h e h e a d e r , s c r a t c hf i l e s ,

c o p yf i l e so f a n ys i z et o a n o t h e rd i s k ,r e n a m ef i l e s ,a d d' f e n c e s 't o m a r ko f f

s e c t i o n so f t h e d i s kf o re a s y r e a d i n ga n di n d e p e n d e n ts o r t i n g , ' s c r a t c h - p r o t e c

a n yf i l e ,p o s i t i o ni n d i v i d u a lf i l e sa n y w h e r ei n t h ed i r e c t o r y ,a n d ,o fc o u r s e ,p r i n t

o u t c o p i e so f y o u rr e v i s e dd i r e c t o r i e s .

Y o um a yh a v ea c o p i e ru t i l i t yo r u t i l i t yt o r e n a m et h eh e a d e ro ry o um a yu s et h e

w e d g ef o rc o m m o nd i s kc o m m a n d s .B u ty o ud o n ' th a v ea s i n g l ep r o g r a mt h a t

w i l lt a k e c a r eo f a l l y o u rd i s kh o u s e k e e p i n g( e v e nh o u s e k e e p i n g y o ud i d n ' t

t h i n kp o s s i b l e )q u i c k l ya n de a s i l y .B u ty o uw i l l ,i f y o ug e tD I S K O R G A N I Z E

a n dg e to r g a n i z e d .D I S K O R G A N I Z E Ri s a v a i l a b l ef o r$ 2 9 . 9 5f r o m :

T h eG . A . S . S .C o m p a n y

9 7 0 C o p e l a n d

N o r t hB a y , O n t a r i o ,C a n a d a

P 1 B - 3 E 4

( 7 0 5 ) 4 7 4 - 9 6 0 2

A m i g aS p r e a d s h e e t ,T e l e c o m m u n i c a t i o n sa n dB B S

M i c r o - S y s t e m sS o f t w a r eI n c .h a sr e l e a s e d t h r e en e ws o f t w a r et o o l sf o r t h e

A m i g a .T h ef i r s t i sa s p r e a d s h e e tc a l l e dA n a l y s e ! . S i m i l a ri n c o n c e p tt o L o t u s1 -

2 - 3 ,t h e$ 9 9 . 9 5p r o g r a mt a k e sm a x i m u ma d v a n t a g eo f A m i g a ' sc a p a b i l i t i e s

( p u l ld o w nm e n u s , m o u s e , w o r k b e n c h )a n dc a np r o d u c ep r o f e s s i o n a l s i z e d

s p r e a d s h e e t s( 2 5 6c o l u m n sx 8 , 1 5 6r o w s ) .

T h es e c o n dp a c k a g e ,O n l i n e ! ,i s a f u l l - f e a t u r e dt e l e c o m m u n i c a t i o n ss y s t e mf o r

t h eA m i g at h a tr e t a i l sf o r$ 6 9 . 9 5 .T h et h i r dp a c k a g e ,B B S - P C ,i s a v e r s a t i l e

e l e c t r o n i c b u l l e t i nb o a r d s y s t e mt h a tt r a n s f o r m sa n yA m i g ai n t oa n o n l i n e

i n f o r m a t i o nn e t w o r k .

T h e$ 9 9 . 9 5p r o g r a me a s i l y i n t e r f a c e st o a h a r dd i s k o rk e e p su pw i t ha 2 4 0 0b p s

m o d e m .I n a d d i t i o n ,B B S - P Cw o r k si n t h e" b a c k g r o u n d " ,s o t h eA m i g ac a n

a n s w e rt h e p h o n ea n d t a k em e s s a g e sw h i l eu s e r s a r ew o r k i n go n o t h e r

p r o j e c t s .

A l lt h r e ep a c k a g e sa r eb e i n gd i s t r i b u t e db yS o f t e a m ,N a t i o n a lS o f t w a r eD i s t r i b u

t o r sa n dC o m p u t e rS o f t w a r eS e r v i c e si n t h eU . S ,a n di n C a n a d ab y P h a s e4

D i s t r i b u t o r s .F o ra d d i t i o n a li n f o r m a t i o nc o n t a c t :

B r o w n - W a g hP u b l i s h i n g

1 0 0V e r o n aC o u r t

L o sG a t o s ,C a l i f o r n i a9 5 0 3 0 ( 4 0 8 )3 9 5 - 3 8 3 8

T h eS o u r c e r e r6 5 0 0S e r i e sD i s a s s e m b l e r

T h eS o u r c e r e ri s a m u l t i - p a s sd i s a s s e m b l e rw h i c hc o n v e r t s6 5 0 0s e r i e sm a

c h i n e l a n g u a g e( o b j e c tc o d e )i n t oA s s e m b l y L a n g u a g e( s o u r c ec o d e ) .I t o p e r a t e s

d i s k - t o - d i s k ,d i s k - t o - s c r e e n ,o r d i s k - t o - p r i n t e r .T h ec o m m e n t e dA s s e m b l yL a n

g u a g ew h i c hi s p r o d u c e dc a n b e i m m e d i a t e l yr e - a s s e m b l e d w i t ht h eC o m m o

d o r ea s s e m b l e r , o rl o a d e df o re d i t i n gw i t ht h eC o m m o d o r ee d i t o r .A n ys p e c i f i e d

eT r a n s a c t o r 7 9 J u l y 1 9 8 6 :V o l u m e7 , I s s u eO l

Page 84: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 84/88

r a n g eo fc o d ew i t h i n ap r o g r a mc a n b ed i s a s s e m b l e d .L o n g p r o g r a m sa u t o m a t i

c a l l yp r o d u c el i n k e d d i s kf i l e sf o re a s ye d i t i n g .A l la d d r e s s e sr e f e r e n c e di n t h e

c o d ea r ec o n v e r t e dt o l a b e l s , i ns e v e r a l s o r t e dc a t a g o r i e s .T h eS o u r c e r e ri s

w r i t t e ni n 1 0 0 %m a c h i n el a n g u a g ef o rf a s to p e r a t i o n ,a n dw i l ld i s a s s e m b l ea

2 0 kp r o g r a mw i t hs e v e r a lt h o u s a n da d d r e s sl a b e l si n l e s st h a n1 3m i n u t e s .T h e

t i m er e q u i r e df o rt h ef i n a lo u t p u to f s o u r c ec o d ed e p e n d s o nt h es p e e do f t h e

o u t p u td e v i c e( d i s k ,s c r e e n , o rp r i n t e r ) .

T h eS o u r c e r e ri s o n l y $ 2 9 . 9 5p p d .o n a 1 5 4 1d i s kc o m p l e t ew i t ho p e r a t i n g

i n s t r u c t i o n s .O r d e rf r o m :

C h e s s o f tL t d .

7 2 3B a r t o nS t r e e t

M t .V e r n o n ,1 L 6 2 8 6 4

H e l p M a s t e r F o rT h eC o m m o d o r e6 4

H e l pM a s t e r 6 4i s a s o f t w a r e / b o o kp a c k a g et h a tw i l la i dB a s i cp r o g r a m m e r s .

H e l pM a s t e r 6 4 p r o v i d e si n s t a n t ,o n - l i n eh e l ps c r e e n so n e a c ha n de v e r yB a s i c

c o m m a n du s e db y t h eC o m m o d o r e6 4 c o m p u t e r .

O n c el o a d e d ,H e l pM a s t e r 6 4r e m a i n sh i d d e ni n m e m o r yu n t i ly o u n e e di t . I t

t a k e su p a b s o l u t e l yn o n eo f t h e B a s i cR A M ,i s c o m p l e t e l y c o m p a t i b l e w i t ht h e

D O Sw e d g e ,a n dh a sn o e f f e c to n y o u ra b i l i t yt o w r i t e ,e d i t ,l o a d ,s a v eo r r u n

a n yB a s i cp r o g r a m .

W h e ny o u n e e dh e l p ,t y p i n g t h eq u o t em a r kp l u s t h en a m eo f t h ec o m m a n d

w i l li n s t a n t l yp r o d u c ea h a l f - s c r e e no v e r l a ys h o w i n gt h eC o m m o d o r ea b b r e v i a

t i o nf o rt h ec o m m a n d ,t h ep r o p e rs y n t a x , a d e s c r i p t i o no f t h ec o m m a n da n d

r e f e r e n c ep a g en u m b e r si n v a r i o u sm a n u a l s w h i c hw i l lp r o v i d em o r ei n f o r m a

t i o nt h a ni s a v a i l a b l e o n - s c r e e n .T h i sh a l f - s c r e e nf o r m a tw i l la l l o wy o ut o v i e w

b o t hy o u ra c t u a lp r o g r a ml i n ea n dt h eH e l p M a s t e re x a m p l ea t t h es a m et i m es o

y o uc a ns e ew h a tt h ed i f f e r e n c e sa r e .

A f t e rv i e w i n gt h e h e l ps c r e e n ,y o um a yr e s t o r et h e i n f o r m a t i o nt h a tw a so n t h e

t o ph a l f o ft h e s c r e e n , o ry o uc a nc o r r e c ty o u r p r o g r a ml i n ew h i l et h e h e l p

s c r e e ni s s t i l lb e i n gd i s p l a y e d .

H e l pM a s t e r 6 4c o m e sw i t ht h e' H a n d b o o kO fB a s i cf o rt h eC o m m o d o r e6 4 ' ,a n

e x c e l l e n t3 6 8 p a g er e f e r e n c em a n u a lo n C o m m o d o r eB a s i cb y F r e d e r i c kE .

M o s h e ra n dD a v i dI . S c h n e i d e r ,p u b l i s h e db y B r a d e yC o m m u n i c a t i o n s ,I n c .

T h ep a c k a g eh a sa r e t a i lp r i c eo f $ 2 9 . 9 5 .F o rm o r ei n f o r m a t i o nc o n t a c t :

M a s t e rS o f t w a r e

6 H i l l e r yC o u r 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

H a r d w a r eN e w s

R E S W I T C Hf r o mC o m p u s a v e

R e s w i t c hi s a r e s e ts w i t c h / p o w e r - o ni n d i c a t o rf o rt h eC o m m o d o r e6 4 w h i c h

r e p l a c e s t h ee x i s t i n gp o w e r - o nL E D .I n s t a l l a t i o nr e q u i r e sn o d r i l l i n go r c u t t i n g ,

a s t h eu n i tp o p si n t ot h es a m eh o l ea s t h ee x i s t i n gL E D .T h eR e s w i t c hi s a

t r a n s p a r e n tp u s h b u t t o nc o n t a i n i n ga n L E Da n da c t se x a c t l yl i k et h eo r i g i n a l

L E De x c e p tt h a tp u s h i n gd o w no n i t c a u s e st h e6 4 t o r e s e t .T h ep a c k a g ec o m e s

w i t hd e t a i l e di n s t a l l a t i o ni n s t r u c t i o n sa n de v e r y t h i n gn e e d e dt o h o o ku p . P r i c e

i s $ 1 0 . 0 0 . C o n t a c t :

C o m pU S a v e

1 1 5 E s s e xS t .S u i t e *1 4 6

N e wY o r k ,N Y1 0 0 0 2

U n i n t e r r u p t i b l eP o w e rS u p p l y

A no n - l i n e ,s i n ew a v eU n i n t e r r u p t i b l eP o w e rS u p p l yi s b e i n g i n t r o d u c e db y

E l e c t r o n i cS p e c i a l i s t s .C a p a b l eo f s u p p l y i n gu p t o 2 0 m i n u t e sp o w e rd u r i n g

e x t e n d e dp o w e ro u t a g e s , t h e o n - l i n eu n i to p e r a t e sw i t h o u td i s r u p t i v es w i t c h

t r a n s i e n t s .A u t o m a t i ci n t e r n a lb a t t e r yr e c h a r g ei s i n c o r p o r a t e d .

W i d eb a n d E M I / R F If i l t e r i n ga n dH i g h - S p e e d , H i g h - C u r r e n tS p i k e S u p p r

p r o v i d e e x t e n d e dp r o t e c t i o n .A d d e dp r o t e c t i o ni s p r o v i d e d b ya n i n t e g r a lo v e r

l o a d / s h o r t - c i r c u i tp r o o fc o n f i g u r a t i o n .

A f r o n tp a n e lT E S Ts w i t c hp e r m i t sc o n v e n i e n tp o w e rr e m o v a lt o c h e c kf r o n

p a n e l m o n i t o r sa n dc o m p l e t es y s t e mo p e r a t i o n .

L i n ep h a s el o c k ,a u t o m a t i c B l a c k o u ti l l u m i n a t i o n , B a t t e r y - S aa u t o m a

s h u t - d o w no p t i o na n de x t e r n a lb a t t e r yo p t i o na r ef e a t u r e d .A v a i l a b l ei n 2 5 0

a n d 5 0 0w a t t s .F o rm o r ei n f o r m a t i o n ,c o n t a c t :

E l e c t r o n i cS p e c i a l i s t sI n c .

1 7 1S o u t hM a i nS t r e e t

N a t i c k ,M a s s a c h u s e t t s

0 1 7 6 0 1 - 8 0 0 - 2 2 5 - 4 8 7 6

8 0 C o l u m nM o n oC a b l e F o rT h eC - 1 2 8

T h i si s t h e c a b l ef o ra n 8 0 c o l u m nm o n o c h r o m ed i s p l a ya s d e s c r i b e di n m a n

C o m m o d o r es p e c i f i cm a g a z i n e .I t e l i m i n a t e st h en e e df o ra n R G Bm o n i t o ra n d

a l l o w st h eu s eo f a n yc o m p o s i t ec o l o r o rm o n o c h r o m em o n i t o r .E x c e l l e n f o r

d a t ab a s ea n dw o r dp r o c e s s i n ga p p l i c a t i o n s .( S e en e x t i t e mf o ra d d r e s s )

4 0 / 8 0C o l u m nS w i t c hC a b l eF o rT h eC - 1 2 8

A f l i po f a s w i t c ho n t h ec o n n e c t o ri s a l lt h a t ' sn e e d e dt o c h a n g ef r o m4 0 t o 8 0

c o l u m nd i s p l a ya n db a c ka g a i n .P l u s as i m p l e k e y s t r o k e( E S CX ) .I n 4 0c o l u

m o d ea l l 1 6 c o l o r s a r e a v a i l a b l eo n y o u rc o l o rm o n i t o r .

I t ' s s m a l la n d e a s yt o i n s t a l l ,w i t hn o b u l k ys w i t c h e s ,b o x e so r e x p o s

c o m p o n e n t s .

T h e8 0 C o l u m nM o n oC a b l er e t a i l s f o r$ 9 . 9 5 .T h e4 0 / 8 0C o l u m nS w i t c h

c a b l er e t a i l s f o r$ 2 3 . 9 5 .F o rm o r ei n f o r m a t i o nc o n t a c t :

I n n o v a t i v eC o m p u t e rA c c e s s o r i e s

1 2 4 9D o w n i n gS t r e e t ,P OB o x7 8 9

I m p e r i a lB e a c h ,C A 9 2 0 3 2 - 0 8 3 7( 6 1 9 )2 2 4 - 1 1 7 7

C O M M O D O R EA S S O C I A T I O NS O U T H / E A S T

p r e s e n t s

T H EC O M M O D O R

S H O Wa t t h e

O p r y l a n dH o t e lN a s h v i l l e ,T e n n e s s e e

A p r i l2 6 t h& 2 7 t h ,9 : 0 0a . m .t o 5 : 0 0 p . m .

N A T I O N A LC O M M O D O R ES P E A K E R S !

V E N D O R SA N DD I S P L A Y S !

S H O WS P E C I A L SA N DD O O RP R I Z E S !

S E EI N N O V A T I O N S A V A I L A B L EF O RT H EC O M M O D O R EM A R K E T !

T H EO N L YC O M M O D O R EC O N F E R E N C EI N T H E S O U T HE A S T !

U S E RG R O U PO R I E N T E D !

2 - D A YR E G I S T R A T I O NF E E :$ 1 0 . 0 0( $ 7 . 5 0 b e f o r eA p r i l1 5 )

T i c k e t s a r e a v a i l a b l ea t a l l a f f i l i a t e dc l u b s ,

o r f o rm o r ei n f o r m a t i o n ,c o n t a c t :

C A . S . E .• P . O .B O X1 1 0 3 8 6• N A S H V I L L E ,T N 3 7 2 2 2

( 6 1 5 )8 3 4 - 5 6 7 9• ( 6 1 5 )8 3 4 - 2 0 7 3• ( 2 0 5 )8 5 4 - 3 4 9 6

T h eT r a n s a c t o r 8 O J u r y1 9 8 6 :V o l u m e7 , I s s u eO l

Page 85: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 85/88

T r a n s a c t o r

P A Y S

$ 4 0p e rp a g ef o ra r t i c l e s

W e ' r ea l s ol o o k i n gf o r

p r o f e s s i o n a l l y

d r a w nc a r t o o n s !

S e n da l lm a t e r i a lt o :

T h eE d i t o r

T h eT r a n s a c t o r5 0 0S t e e l e sA v e n u e

M i l t o n ,O n t a r i o

L 9 T 3 P 7

V o l u m e6 E d i t o r i a lS c h e d u l e

I s s u e * T h e m e C o p yD u e P r i n t e d

1

2

3

4

5

6

1

2

3

4

5

6

M o r eA i d s& U t i l i t i e s

C o m m u n i c a t i o n s& N e t w o r k i n g

L a n g u a g e s

I m p l e m e n t i n gT h eS c i e n c e s

H a r d w a r e& S o f t w a r eI n t e r f a c i n g

R e a lL i f eA p p l i c a t i o n s

F e b1

A p r1

J u n1

A u g l

O c t1

D e c1

M a r2 2

M a y2 4

J u l 2 6

S e p 2 0

N o v 2 2

J a n2 4

V o l u m e7 E d i t o r i a lS c h e d u l e

R O MR o u t i n e s/ K e r n e lR o u t i n e sF e b1 M a r2 1

G a m e s F r o mT h eI n s i d eO u t

P r o g r a m m i n g T h eC h i p s

G a d g e t sa n d G i z m o s

S i m u l a t i o n sa n dM o d e l l i n g

P r o g r a m m i n gT e c h n i q u e s

A p r1

J u n1

A u g1

O c t l

D e c1

M a y2 3

J u l 2 5

S e p 2 6

N o v 2 1

J a n2 3

R e l e a s eD a t e

A p r i l1 / 8 5

J u n e1

A u g u s t1

O c t o b e r1

D e c e m b e r1

F e b r u a r y 1 / 8 6

A p r i l1

J u n e1

A u g u s t1

O c t o b e r1

D e c e m b e r1

F e b r u a r y1 / 8 7

A d v e r t i s e r sa n dA u t h o r ss h o u l dh a v em a t e r i a ls u b m i t t e dn o

l a t e rt h a nt h e' C o p yD u e 'd a t et o b e i n c l u d e d

w i t ht h e r e s p e c t i v ei s s u e .

T H K T l sH o wy o ub oi t

Page 86: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 86/88

h i l ed r i v i n gd e e pi n t ot h eB l a c kF o r e s to f G e r m a n y ,o u rs l o wa n du n r e l i a b l eV o l k s w a g e ns t a r t e ds p u t t e r i n ga n dp u t t e r i n ga n dt h e nt o o u rd i s m a y ,j u s tq u i t

r u n n i n g . A f t e rh o u r so fu n r e l e n t l o u st i n k e r i n g ,o u rp o o rl i t t l em o b i l ew a sr u n n i n g , s l o w l y , b u t

A n d w ew a n t e dt o g e to u t o ft h a td a n k a n dd a r kf o r e s tq u i c k l y .B e f u d d l e da n dc o n f u s e d ,w ew e r ee c s t a t i

t o s e ea s t r a n g el i t t l eG n o m ee m e r g ef r o mb e h i n da t r e e .T h i sc r e a t u r e ,w h oc a l l e dh i m s e l fH a c k e r ,

u s e dh i si n f i n i t ew i s d o ma n dw i z a r d r y

t of i x o u rV o l k s w a g e na n dg e tu s

s p e e d i l yo n o u r

w a y .W e l l ,w e w e r es o i m p r e s s e dw i t hH a c k e rG n o m e ' sw i z a r d r y ,t h a tw ec o n v i n c e dh i mt o r e v e a lh i s

s e c r e t sf o rs p e e da n dr e l i a b i l i t y .A n dw ea r e p a s s i n gt h e s es e c r e t sa l o n gt o y o us o t h a ty o uc a n

w r i t et h e v e r yb e s tB a s i cP r o g r a m s .

I N T R O D U C I N G - G N O M ES P E E D( A B a s i c7 . 0C o m p i l e rf o ry o u rC o m m o d o r e1 2 8 )

G n o m eS p e e da l l o w sy o ut o

t r a n s f o r mv i r t u a l l ya n yB a s i c 7 . 0

P r o g r a mi n t oa c o m p i l e dv e r s i o nt h a t

i s a s s o p h i s t i c a t e da n df a s ta s i f i t

w e r ew r i t t e ni n m a c h i n ec o d e .

S i m p l yc o m p i l i n g y o u rp r o g r a mw i t h

G n o m eS p e e dn o to n l yg i v e sy o u

s u p e r - f a s te x e c u t i o ns p e e d ,b u ta l s o

i n f o r m sy o uo f a l l y o u rp r o g r a m

c o d i n ge r r o r s ,s o t h a ty o u r c o m p i l e d

p r o g r a mi s e r r o r - f r e e .A n df o r t h o s eo f y o uw h ow a n tt o s e l ly o u r

p r o g r a m ,a l l y o u re f f o r t sa n d

p r o g r a m m i n gs e c r e t sw i l lr e m a i n

y o u r s ,s i n c eo n l yt h ec o m p i l e d

v e r s i o n— n o ty o u rB a s i cs o u r c e

c o d en e e db e i n c l u d e do n t h e d i s k .

T h ep r i c e ?O n l y$ 5 9 . 9 5( U . S . )

N OD O N G L E S ! !

N OC O P Y - P R O T E C T I O N ! ! !

U . S . A .M A I LO R D E R S :

S MS o f t w a r e ,I n c .

1 - 2 1 5 - 6 8 2 - 4 9 2 0

C A N A D I A N M A I LO R D E R S :

T h eT r a n s a c t o r

1 - 4 1 6 - 8 7 8 - 8 4 3 8

( s e eo r d e rc a r d )

D E A L E RI N Q U I R I E S

M i c r o - P a c e ,I n c .

1 - 2 1 7 - 3 5 6 - 1 8 8 4

S u iS MS O F T W A R E ,I N C .

P . O .B o x2 7

M e r t z t o w n ,P A .1 9 5 3 9 - 0 0 2 7

1 - 2 1 5 - 6 8 2 - 4 9 2 0

Page 87: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 87/88

R O D U C

B Y M A R T YF R A N Z& J O EP E T E R

S I N G L E / D U A LN O R M A LC O P I E RC o p i e sa d i s k w i t hn o e r r o r si n 3 2 . 6 8s e c o n d s ,

d u a l v e r s i o nh a sg r a p h i c s& m u s i c .

S I N G L E / D U A L N I B B L EC O P I E RN i b b l eC o p i e sa d i s ki n 3 4 . 9 2 s e c o n d s . D u a l

v e r s i o nh a sg r a p h i c s& m u s i c .

S I N G L E / D U A LF I L EC O P I E R7 t i m e sn o r m a lD O Ss p e e d .I n c l u d e sm u l t i - c o p y ,

m u l t i - s c r a t c h , v i e w / e d i tB A M , &N E WS U P E R

D O SM O D E .I n S u p e rD O SM o d e ,i t t r a n s f e r s

7 - 1 5t i m e s n o r m a l s p e e d , c o p i e s1 5 0b l o c k si n 2 3

s e c o n d s .

T R A C K& S E C T O RE D I T O RF u l le d i t i n go f t & si n h e x , d e c ,a s c i i ,b i n .I n c l u d e s

m o n i t o r / d i s a s s e m b l e rw i t h p r i n t o u tc o m m a n d s .

G C RE D I T O RY e sd i s kf a n s ,a f u l lb l o w ns e c t o rb y s e c t o ro r

t r a c kb y t r a c kG C RE d i t o r .I n c l u d e sT R U EB i t

D e n s i t y / T r a c kS c a n .

3 S U P E RD O SF A S TL O A D E R SO v e r1 5 t i m e sn o r m a lD O Ss p e e d .S u p e rD O SF i l e sa r e s t i l lC o m m o d o r eD O Sc o m p a t i b l e .

I m a g i n el o a d i n g1 5 0b l o c k si n 1 0 s e c o n d s .

S U P E RN I B B L E R /S U P E RD I S KS U R G E O NQ u i t ef r a n k l y ,t h e s ew i l lp r o v i d ey o ut h e u s e rw i t h

t h eb a c k u py o un e e d !E v e nc o p i e si t s e l f .

$ 2 9 . 9 5u . s .

P L U S$ 3 . 0 0S H I P P I N G / H A N D L I N GC H A R G E- $ 5 . 0 0C . O . D .C H A R G E

i T

P R I S MS O F T W A R E

P E RK I T / 1 5 4 1i s f o r a r c h i v a l

n l y !W e d o n o tc o n d o n e

n c o u r a g ep i r a c yo f a n yk i n d .

f

I I I

4 0 1L A K EA I RD R . ,S U I T E D• W A C O , T E X A S7 6 7 1 0O R D E R S( 8 1 7 )7 5 7 - 4 0 3 1• T E C H( 8 1 7 )7 5 1 - 0 2 0 0

M A S T E R C A R D& V I S AA C C E P T E D

S e ec e n t e rp a g ef o r

m a i l o r d e rc a r d .

\ \

Page 88: The Transactor V7 01 1986

8/7/2019 The Transactor V7 01 1986

http://slidepdf.com/reader/full/the-transactor-v7-01-1986 88/88

T H ET I M ES A V E

T y p ei n a l o to f T r a n s a c t o rp r o g r a m s ?