The Transactor V6 06 1986

84
8/7/2019 The Transactor V6 06 1986 http://slidepdf.com/reader/full/the-transactor-v6-06-1986 1/84

Transcript of The Transactor V6 06 1986

Page 1: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 1/84

Page 2: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 2/84

T H T I M E S A

Page 3: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 3/84

V o l u m eI s s u e 0 C i r c u l a t i o n 6 4 , 0 0 0

m

R e a l L i f e A p p l i c a t iS t a r t A d d r e s s E d i t o r i a l

B i t s a n P i e c e sS A V E R I F YD o u b l e V e r i f i z e rC o r r u p t i n g R A M T A S U p d a t eF i n d i n g t h M i s s i n g F i l eL O A D & R U N T r i c kC h e c k F o D e v i c e P r e s e n tW o r d - W r a p F o V I C , 6 4 P E T , e t c .V i s i b l e " s e a r c h i n g " M e s s a g e sC - 6 4 S c r o l l D o w n R o u t i n eE a s y ' R E S T O R E x S n e a k y S a v e sS a n i t a t i o n E n g i n e e r : F a s t e r G a r b a g e C o l l e c t i o n ?C 1 2 8 B i t sO r n a m e n t a n H a p p y N e Y e a r I H i g h - R e sM u l t i p l e C i r c l e , T r i a n g l e a n S q u a r e H i g h R e D r a w R o u t i n eI n c r e d i b l e 3 - E f f e c t H i g h R e D r a w R o u t i n eM o r e I d e a sA m i g a B i t s : S o m e N o t e s A b o u t C L

L e t t e r s 1 1T h G r e m l i n E f f e c tJ o r d a n R o l l t o p S t a n d R e v i s i t e dT h H o r r o r O f H e F a l s e I

N e w s B T h T r a n s B A S I CP A a n P O W E R T h e G - L i n k I n t e A t t e n t i o n A n t h o W o r l d O C o m m o C . A . S . E M e e t i n gN A A U G F o A m iB B F o A m i g a d B T r a n s l a t o r CT h T r a d i n g B o a2 8 9 0 D a t a b a s e sT y m n e t O f f e r s L B a s i c C o m p i l e rC h a r t p a k 1 2 8 f o S t a t i s t i c a l P r o g r B o o k k e e p e r ' s A iW i l a n t a D e s c e n dA t t e n t i o n M a c

1 2 0 0 B P R e s p o n s eM o r e R e s p o n d i n g a 1 2 0 0 B P A l m o s t C l e a rT r a n s a c t o r / O h i o P o r t i n g

B I O P r o b l e mL e f t W i n g I n t e r f e r e n c e

A t t a c k O T h K i l l e r C l o n e

I n S t a l l m e n t # 8 M o d u l e s S o F a o T h A m i g a : U s e r ' s P e r s p e c t i v eT h A m i g a : P r o g r a m m e r ' s P e r s p e c A m i g a D O a n C L C O m m a n d S A h a n d A m i g a E d i t o r C o m m a n d s U s i n g " E D " , t h e s c r e E D I T : A m i g a ' s L i n e O r i e n t e d E d i t o rP i c k A r e a S a n P O M e n U S D r o p - d o w n m e n u s1 _ v y f v r v J A . D C o n v e r t y o u r k e y b o a r d t h r o u g h s o f t w a r e

C o m p l e t e k e y b o a r d c o n t r o l f r o m j o y s t i c k

M a k e t e a m s p o r t s p r e d i c t i o n s w i t h t h i s s t a t i s t i c s a n

Page 4: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 4/84

T r a n s a c t o rT h T e c h / N e w s J o u r n a l F o C o m m o d o r e C o m p u t e r *

E d i t o r i C h i e fK a r l J . H . H i l d o n

E d i t o rR i c h a r d E v e r s

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

A r D i r e c t o rJ o h n M 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 sL a n a H u m p h r i e s

C o n t r i b u t i n g W r i t e r s

I a A d a mD a n i e l B i n g a m o nA n t h o n y B r y a n tT i B u i s tJ i B u t t e r f i e l dG a r y C o b bJ e f f e r y C o o n sP i e r r e C o r r i v e a uB o D a v i sE l i z a b e t h D e a lY i j u n D i n gM i c h a e l J E r s k i n eJ i G r u b b sT o H a l lB o H a y e sJ o h n J a H i l f i g e rA n d y H o c h h e i m e rJ o h n H o l t t u mC h r i s J o h n s o nM a r k J o r d a nG a r y K i z i a kJ e s s e K n i g h tJ a m e s E L a P o r t eW i l l i a m L e v a kJ a c k L o t h i a nS c o t t M a c l e a n

J i m M c L a u g h l i nT e r r y M o n t g o m e r yM i c h a e l M o s s m a nG e r a l d N e u f e l dN o e l N y m a nD a v e P o l l a c kR i c h a r d P e r r i tT e r r y P r i d h a mR a y m o n d Q u i r l i n gG l e n R e e s o rG a r y R o y a lJ o h n W R o s sL o u i s F S a n d e rF r e d S i m o nP e r r y S h u l t zE d w a r d S m e d aD a r r e n J S p r u y tN i c k S u l l i v a nZ o l t a n S z e p e s iK a r e l V a n d e r L u g tA u d r y s V i l k a sA n d r e w W a l d u c kS t e v e n W a l l e yJ a c k W e a v e rC h a r l e s W h i t t e r nC h r i s W o n g

P r o d u c t i o nA t t i c T y p e s e t t i n g L t d .

P r i n t i n gP r i n t e d i C a n a d a b M a c L e a n H u n t e r P r i n t i n g

P r o g r a m L i s t i n g s I T h T r A l p r o g r a m s l i s t e d i n T h T r a n s a c t o r w i l l a p p e a r a t h e y w o uc a s e m o d e . T c l a r i f y t w p o t e n t i a l c h a r a c t e r m i x - u p s , z e r o e sw i l l o c o u r s e b i l o w e r c a s e . S e c o n d l y , t h l o w e r c a s en u m b e r w h i c h h a a a n g l e d t o p .M a n y p r o g r a m s w i l l c o n t a i n r e v e r s e v i d e o c h a r a c t e r s t h a t r e o r f u n c t i o n k e y s . T h e s e w i l l a l s o b s h o w n e x a c t l y a t h e yt h e y ' r e l i s t e d h e r e f o r e f e r e n c e . A l s o r e m e m b e r : C T R L - q w i D o w n , e a l

O c c a s i o n a l l y p r o g r a m s w i l l c o n t a i n l i n e s t h a t s h o w c o n s e c us p a c e s y o i n s e r t w i l l n o b c r i t i c a l t o c o r r e c t o p e r a t i o n o t h n u m b e r o s p a c e s w i l l b s h o w n . F o e 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 d b s h o w n a

C u r s o r C h a r a c t e r s F o P E C B D o w nu R i g h t - f lL e f t [ L f t ]R V R V O f f - I

I n s D e lC l e H o mS T O

C o l o u r C h a r a c t e r s F o r V I B l a c k -W h i t eR e C y a nP u r p l eG r e e nB l u e -

[ C y n ][ P u r ]

O r a nB r o wL t R G r e yG r e yL t G L t B

Y e l l o w - [ Y e l ] G r e y

F u n c t i o n K e y s F o V I F l F 2 F 3 F 4

F F F F

P l e a s e N o t e : T h T r a n s n e p h o n e n u m b e r : ( 4 1

Page 5: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 5/84

S o f t B o u n d

W h a t i h a p p e n i n g ? ! C r e a t i v e C o m p u t i n g , 1 y e a r s p u b l i s h i n g , g o n e .P o p u l a r C o m p u t i n g , g o n e . i n f o A g e , C o m m a n d e r , M i c r o , K i l o b a u d , S o f tw a r e N o w , a l g o n e . T h i s l i s t g o e s o n t o o , i n t o a r e a s o u t s i d e t h o s e c o v e r i n gC o m m o d o r e e q u i p m e n t . O n r e p o r t r e c a l l s t a t e d " o u t o 1 6 c o m p u t e rm a g a z i n e s t h a t w e r e p u b l i s h i n g i 1 9 8 2 , o n l y 3 5 r e m a i n t o d a y " . T h c o m m o n c o m p l a i n t i l a c k o a d v e r t i s i n g r e v e n u e d u t " s o f t " m a r k e t .

I h i c l o s i n g e d i t o r i a l , C r e a t i u e ' s D a v i d A h l c o m p l a i n e d t h a t m o s t a d v e rt i s i n g h a b e c o m e a d e c i s i o n b a s e d o " l o w e s t c o s t p e t h o u s a n d r e a d e r s " .B u t h i n k t h e i n d u s t r y i g e t t i n g s m a r t e r t h a n t h a t . i n f o A g e ' s G o r d o nC a m p b e l l d o e s t o o . " I n f o A g e s u f f e r e d f r o m n o b e i n g a b l e t d e l i v e rs t a b l e m a r k e t t o u a d v e r t i s e r s " , w b e c a m e t o " h e t e r o g e n o u s " a q u o t e d f r o m T o r o n t o C o m p u t e s . V e r t i c a l m a g a z i n e s o f f e r t h e r e a d e r m o r er e a d i n g p e r d o l l a r . S i t ' s o n l y n a t u r a l t h a t m o r e r e a d e r s , w h a r a l s og e t t i n g s m a r t e r , w i l l b a t t r a c t e d t t h h i g h e r c o n c e n t r a t i o n . I n d i c a t i o n sa r t h a t m a n y f i r m s a r s p e n d i n g t h e i r a d o l l a r s i m a g a z i n e s t h a t h a v et i g h t e r f o c u s o t h i n d u s t r y . A h l ' s c o m p l a i n t b e c o m e s o n o s e m a n t i c s . I o n l y a f r a c t i o n o f e a c h t h o u s a n d r e a d e r s c a b q u a l i f i e d , c o s t p e t h o u s a n d g o e s w a u p

H o w e v e r , a d m i t t h e h o r i z o n t a l p u b l i c a t i o n s c o u l d n ' t j u s t p u l l b r a n d( r o m h a t , a n f o c u s . T h e y c o u l d h a v e , b u t t h e y w a i t e d t o o l o n g . a l s os u s p e c t n o t e n o u g h d e f l e c t i o n o t h ' l e a n a n t r i m ' m e t e r . B e c a u s e w h a tc o n f u s e s m m o s t i t h a t a l t h a b o v e m a g s d i h a v e a d s . A l m o s t h a l f o fC r e a t i v e ' s 9 6 p a g e f i n a l w a a d v e r t i s i n g !

N o d o n ' t c l a i m w a r i m m u n e t t h s a m e f a t e b e c a u s e w s e e m t b a f l o a t w i t h o u t a d r e v e n u e . N o a a l l . F o t h l a s t i s s u e s w h a v ed e p e n d e d o n n o t h i n g b u s a l e s . D i s t r i b u t o r s h a v e t o l d u s " p u b l i s h e r sw o u l d s e l l t h e i r s o u l s f o y o u r s t i c k r a t e a t h n e w s s t a n d " . B u i j u s td o e s n ' t s e e m t b e e n o u g h . I t h i s a S . O . S . ? N o B u i y o k n o w a p l a c ew h e r e o n e m o r e T r a n s a c t o r m i g h t b e s o l d , y o c a h e l p . W r i t e t h e i r n a m ea n a d d r e s s o o u r p o s t a g e p a i d s u b s c r i p t i o n f o r m a n c h e c k o f t h b o m a r k e d " p l e a s e s e n d d e a l e r i n f o r m a t i o n " . Y o c a b e w e ' l l g e t i t o u c hw i t h t h e m , b u p l e a s e u s d i s c r e t i o n . I t h m a g a z i n e d i s t r i b u t i o n b u s i n e s sy o s o o n l e a r n t h a t n o e v e r y s m o k e s h o p a n d c o n v e n i e n c e s t o r e i s u i t a b l e v e n u e . W e ' r e l o o k i n g f o o u t l e t s t h a t s p e c i a l i z e i r e a d i n g m a t e r i a la m u c h a w d o A n d w h o k n o w s y o m a j u s t h e l p y o u r s e l f g e T r a n s a c t o r l i t t l e c l o s e r t h o m e .

w e ' r e s e l l i n g T h T o o l b o x t h r o u g h m a i l -W l i k e t h i s p a c k a g e a n d i y o t h i n k w e ' Y o u r p e r c e n t a g e w o u l d n ' t c h a n g e , b u t c o s t o a d v e r t i s i n g w i t h m e r c h a n d i s e Y o c o u l d l o o k m u i T o r o n t o d i r e c t o t r o u b l e . I t ' s 4 1 2 2 2 9 2 2 a n y t i m e .

D o e s t h i s m e a n t h e n o t h 9 5 % A dp a g e s w i l l b a v a i l a b l e t o s t a r t t h c o i n s e r t a t h e c e n t e r o t h m a g a z i n e . o v ea n i r e s p o n s e w a r r a n t s m o r e a s p a ci n c r e a s e d t m a i n t a i n t h r a t i o . C o l o u r a a g a i n , o n l y i t h e y m e e t w i t h c r i t e r i a .

B e x p a n d i n g o u h o r i z o n s T h T r a n i n s u l a t e d f r o m t h a d s p a c e i n s e r t i o n o r dp r o p a g a t e t h r o u g h t o u m a i l - o r d e r o p e r n i t y t s t r e n g t h e n o u s a l e s , h e l p s t i m u l a a t h s a m e t i m e o f f e r a t r u s t w o r t h y s e r v i

I b r i e f , o u 2 0 / 2 0 d e a l s t i l l s t a n d s o r V i e w t r o n s e c t i o n s h o u l d b e o p e r a t i o n a l" t r a n s a c t o r " , a n w e ' l l h a v e c o m p l e t eT h " u l t r a - g l a z e d " c o v e r m e a n s y o c a a n y o u ' r e l o o k i n g a o u r v e r y f i r s t e x p y e s , i l o o k s l i k e t h e r e w i l l b e a n o t h e r I n nl e a s t a n o t h e r m o n t h s . W e ' r e m a k i n gi n p u t . I t h e r e ' s t a b l e , l i s t i n g , c h a r t , d i o t h e r s k i a g r a p h i c a l c a r t o g r a p h i c i m a g e st h e y c a n b e c o m p u t e r g e n e r a t e d a n m r e f l e x . A n y o n e w h i a w a r e o e r r o r s i t h e m a l o n g . W h a v e a c o u p l e c o p i e s( T P U G , 1 C P U G , P C A ) b u i y o k n o w o a n p e r s o n a l l y a p p r e c i a t e d .

S o m e o t h i t e m s w h a v e p l a n n e d f o m a t e r i a l f o t h 6 8 0 0 0 a n t h A m i g a , C

f o p o s t e r i t y , 1 5 7 1 n o t e s , M S D O S c o mp r i n t e r i n f o , m o r e h a r d w a r e s p e c s , a D a t a P a c a n o t h e r n e t w o r k p a r a m e t e r

Page 6: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 6/84

U s i n g " V E R I F I Z E R "T h T r a n s a c t o r ' s F o o l p r o o f P r o g r a m E n t r y M e t h o d

V E R I F I Z E R s h o u l d b r u b e f o r e t y p i n g i a n l o n g p r o g r a m f r o mt h p a g e s o T h T r a n s a c t o r . I w i l l l e y o c h e c k y o u r w o r k l i n e b l i n e a y o e n t e r t h p r o g r a m , a n c a t c h f r u s t r a t i n g t y p i n g e r r o r s .T h V E R I F I Z E R c o n c e p t w o r k s b d i s p l a y i n g a t w o - l e t t e r c o d e f o e a c h p r o g r a m l i n e w h i c h y o u c a n c h e c k a g a i n s t t h e c o r r e s p o n d i n gc o d e i t h p r o g r a m l i s t i n g .

T h e r e a r t w v e r s i o n s o V E R I F I Z E R o t h i s p a g e ; o n i f o t h P E T , t h o t h e r f o t h V I o 6 4 E n t e r t h e a p p l i c a b l e p r o g r a m a n dR U i t I y o g e t h m e s s a g e , " * * * * * d a t a e r r o r * * * * * " , r e - c h e c kt h p r o g r a m a n d k e e p t r y i n g u n t i l a l g o e s w e l l . Y o s h o u l d S A V Et h p r o g r a m , s i n c e y o u ' l l w a n t t u s i e v e r y t i m e y o e n t e r o n o o u r p r o g r a m s . O n c e y o u ' v e R U t h l o a d e r , r e m e m b e r t e n t e rN E t p u r g e B A S I C t e x t s p a c e . T h e n t u r n V E R I F I Z E R o w i t h :

S Y 8 2 t e n a b l e t h C 6 4 / V I C v e r s i o n ( t u r n i o f w i t h S Y 8 3 1 )o S Y 6 3 t e n a b l e t h P E v e r s i o n ( t u r n i o f w i t h S Y 6 3 7 )

O n c e V E R I F I Z E R i o n e v e r y t i m e y o p r e s s R E T U R N o p r o g r a m l i n e t w o - l e t t e r r e p o r t c o d e w i l l a p p e a r o t h e t o p l e f t o t h s c r e e n i r e v e r s e f i e l d . N o t e t h a t t h e s e l e t t e r s a r i u p p e r c a s ea n w i l l a p p e a r a g r a p h i c s c h a r a c t e r s u n l e s s y o a r i u p p e r /l o w e r c a s e m o d e ( p r e s s s h i f t / C o m m o d o r e o n C 6 4 / V I C ) .

N o t e : I a r e p o r t c o d e i m i s s i n g i m e a n s w e ' v e e d i t t e d t h a t l i n e a t h l a s t m i n u t e w h i c h c h a n g e s t h r e p o r t c o d e . H o w e v e r , t h i s w i l lo n l y h a p p e n o c c a s i o n a l l y a n o n l y o R E s t a t e m e n t s .

W i t h V E R I F I Z E R o n j u s t e n t e rn o r m a l l y , c h e c k i n g e a c h r e p o r t c l i n e . I t h c o d e d o e s n ' t m a t c h u b e s i d e t h l i s t i n g , y o c a n r e - c h a g a i n . I y o w i s h , y o c a L IR E T U R N o v e r e a c h i s u c c e s s i o na t h e y a p p e a r . O n c e t h p r o g r as u r e t t u r n V E R I F I Z E R o f w i t hy o u d o a n y t h i n g e l s e .

V E R I F I Z E R w i l l c a t c h t r a n s p o s ii n s t e a d o P O K E 5 3 2 8 1 , 0 ) , b u t i go m i t s p a c e s f r o m t h l i s t e d p r o g s p l i t u k e y w o r d s ! ) . S t a n d a r di n s t e a d o n e x t ) w i l l n o a f f e c t t h

T e c h n i c a l i n f o : V E R I F I Z E R r e sy o u ' r e u s i n g a d a t a s e t t e b a w a d a n g e r o u s t i t h e a l t h . A f a a s g o e s , V E R I F I Z E R s h o u l d n ' t c a u st h r o u g h t h B A S I C w a r m - s t a r td e s t i n a t i o n o t h l i n k a f t e r i t ' s f i t h l i n k t i t o r i g i n a l c o n t e n t s .

K J

L B D G F K A

L i s t i n g 1 a V E R I F I Z E R f o C 6 a n V I C - 2 01 r e m * d a t a l o a d e r f o v e r i f i z e r "1 r e v i c / 6 4 v e r s i o n2 c 3 f o = 8 2 8 t 9 5 8 : r e a d a : p o k e i , 4 0 c s c a : n e x t5 0 6 i c s < > 1 4 7 5 5 t h e n p r i n t " * * * * * d a t a e r r o r7 r e s y 8 2 8 e n

L i s t i n g b P E T / C B M V E R I

" e n

C C

L H D G O J A

1 r e m * d a t a l o a d e r f o r " 1 r e p e v e r s i o n2 c 3 f o 6 3 t 7 5 4 : r e a d4 c c a : n e x t5 0 6 i c s < > 1 5 5 8 0 t h e n p r i n 7 r e s y 6 3 8 0 e n d

Page 7: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 7/84

B i t s a n P i e c e s

G o a i n t e r e s t i n g p r o g r a m m i n g t i p , s h o r t r o u t i n e , o a u k n o w n b i o C o m m o d o r e t r i v i a ? S e n d i i i w u s i i t h B i t s P i e c e s c o l u m n , w ' I c r e d i t y o i t h c o l u m n a n s e n dy o f r e e o n e - y e a r ' s s u b s c r i p t i o n t T h T r a n s a c t o r

S A V E R I F Y B o H a y e sW i n n i p e g , M a n i t o b a

T h i s i s h o r t p r o g r a m w h i c h e n a b l e s t h 6 ( a n d p o s s i b l yo t h e r C o m m o d o r e ? ) o w n e r t S A V E a n V E R I F Y p r o g r a mw i t h o n c o m m a n d . T h e f o r m a t i s

S Y S ( a d d r e s s ) " f i l e n a m e " ,

W h e r e t h a d d r e s s i t h s t a r t o t h m a c h i n e l a n g u a g e c o d e( r e l o c a t a b l e i t h B A S I C l o a d e r ) .

H e r e i t h a s s e m b l y :

s t a r t j s j s I d s t b i s t j s r t

$ e 1 d 4$ e 1 5 9# $ 0 1$ 9 $ 0 0 a 9$ 0 $ e 1 6 f

A n t h B A S I C l o a d e r :

1 r e * s a v e r i f y b o h a y e s * 2 r e * w p g , m a n . C a n a d a * 2 s 8 2 8 : r e s t a r t a d d r e s s - n o t e : r e l o c a t a b l e3 0 q $ c h r $ ( 3 4 ) : 0 f o t 1 8 r e a d q p o k e s x ,

b y s h o w i n g t h e t w o - l e t t e r v e r i f i z es e c o n d r o o t h T s c r e e n . T h v e c t o r t u p d a t e t h s c r e e n e v e r y

T u s D o u b l e V e r i f i z e r , j u s t r u r e g u l a r V e r i f i z e r i a c t i v a t e d .

K B D

G I

E K K F L

1 0 f o a 6 7 t 7 2 0 : r 1 1 s y s 6 7 9 : p r i n t : p r i n t1 2 p r i n t " d o u b l e v e r i f i z e 1 3 d a t a 1 2 0 , 1 6 9 , 1 8 0 ,1 4 d a t a 1 6 9 , 2 , 1 4 1 ,1 5 d a t a 9 6 1 6 2 , 0 1 6 d a t a 1 5 7 , 4 0 , 2 1 6 ,1 7 d a t a 2 0 8 , 2 4 5 , 1 6 2 ,1 8 d a t a 4 , 1 5 7 , 4 0 1 9 d a t a 2 , 2 0 8 , 2 4 5 ,

C o r r u p t i n g R A M T A S U p d a t e

" C o r r u p t i n g R A M T A S R o u t i n e " i i s s u e 4 m e n t i o n e d t h f a c t t h a t $ Ar e s e t . B u t h e r e i m o r e . R A fw r i t t e n w i t h t h c o n t e n t s o t h r o u t i n e a $ F D 1 5 ( $ F F 8 A , r e s e tc a l l e d i r e s e t p r o c e s s . A c t u a l l y ,

Page 8: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 8/84

T h n a m e o t h l a s t f i l e u s e d w i l l b d i s p l a y e d a t h e t o p l e f t -h a n d c o r n e r o t h s c r e e n . Y o h a v e t P O K E t t h s c r e e n i t h i s m a n n e r b e c a u s e P R I N T i n g w i l l c o r r u p t t h l a s t c h a r a c t e r i t h s t r i n g . U s e r s w i t h R O v e r s i o n w i l l h a v e t a l s o P O K E t c o l o u r m e m o r y ( a 5 5 2 9 6 i o m a k e s u r e t h e r e i s o m e t e x ta l r e a d y o t h e t o p l i n e o f t h s c r e e n .

L O A D R U T r i c k C h r i s W o n g

. . r e a l l y n e a t l o a d a n r u t r i c k : A f t e r y o t y p e

l o a d " f i l e n a m e " , 8 , 1o l o a d " f i l e n a m e " , 8

P r e s s s h i f t e d R U N / S T O P i n s t e a d o R E T U R N . T h p r o g r a m w i l la u t o m a t i c a l l y R U i t s e l f a f t e r l o a d i n g . I e l i m i n a t e s t h e o l dl o a d / r e t u r n / r u n / r e t u r n r o u t i n e , e a s i n g u l o a d i n g a b i t .

C h e c k F o D e v i c e P r e s e n t D a v e P o l l a c kC o m m o d o r e E B r u n s w i c k

U s e r s G r o u p ( C E B U G ) , E B r u n s w i c k , N

A m o s t e v e r y C - 6 4 u s e r k n o w s , t h ' D E V I C E N O P R E S E N T 'm e s s a g e a n d c o n s e q u e n t c r a s h i n o t t h e m o s t p l e a s a n t e x p e r ie n c e i t h w o r l d t e n d u r e . B e l i e v e m e I ' v e b e e n s e a r c h i n gf o c l o s e t y e a r f o A N s o l u t i o n t h a t w i l l w o r k . I w a n o t h a t o b v i o u s . s t u m b l e d u p o n i q u i t e b a c c i d e n t a f t e r c o d i n gs m a l l r o u t i n e t h a t p r o v i d e d w a f o m t p r i n t t h v a l u e o t h ' S T ' v a r i a b l e a f t e r m u l t i p l e I / o p e r a t i o n s . I y o u d o t h a ty o u ' l l n o t i c e s o m e t h i n g i n t e r e s t i n g . A O P E N f o l l o w e d b a i m m e d i a t e C L O S E w i l l n o h a n g t h c o m p u t e r e v e n i t h d e v i c e i n o p r e s e n t , b u i a l l o w s y o t i n t e r r o g a t e S w h i c hr e t u r n s n o n z e r o r e s u l t i t h i s c a s e .

I y o u s t h f o l l o w i n g c o d e , y o u r p r o g r a m w i l l b a b l e t c h e c k f o D E V I C E N O P R E S E N T a n c o n t i n u e w i t h o u t b o m bi n g .

1 0 o p e n 1 5 , 8 , 1 5 : c l o s e 1 1 1 0 i f s t O - 1 2 8 t h e n 1 6 1 2 p r i n t " ! D R I V E N O P R E S E N T ! ! "1 3 p r i n t # # c h e c k d r i v e p o w e r a n d c a b l e s , t h e n

b e g i n n i n g o a n o t h e r . W h i n i n gt r i e d ) , b u w o r d - w r a p d o e s . P l a ci ' w $ ' , t h d e s i r e d l i n e w i d t h i

1 0 0 r e m * r e c u r s i v e w o r1 1 r e m * p u s t r i n g i w 1 2 r e m * l i n e w i d t h i 1 3 0 :1 4 0 i f l e n ( w $ ) > w t h e n 1 1 5 p r i n t w $ r e t u r n1 6 0 f o t 1 7 i a n m i d $ ( w $ 1 8 n e x t : h r i g h t $ ( w 1 9 0 w $ l e f t $ ( w $ , p ) : g o2 0 0 w $ h $ g o t o 1 4

S i n c e s t r i n g s i M i c r o s o f t B A S I l o n g , y o u c a n e a s i l y s q u e e z e f i vp e a c e o m i n d t h a t c a o n l y c o w i l l b f o r m a t t e d l e g i b l y . B u t b ea n d a s s u m e s t h a t w o r d s i t h t I t h e l e n g t h o w i g r e a t e rs p a c e s i w i l l l o o p f o r e v e r , s m i g h t b l o n g e r t h a n y o u r d e s i 1 7 t l o o k f o h y p h e n s , t o o ) .

V i s i b l e " s e a r c h i n g " M e s s a g

I d i r e c t m o d e y o g e ' S E A R C t h a t t e l l y o w h a t i g o i n g i n t oc a n b e e x t r e m e l y h e l p f u l , e s p w h e n L O A D s t a t e m e n t s a r e n c m e s s a g e s a r s u p p r e s s e d . D u r w o u l d b n i c e t s e w h a t ' s g o iw a y s t s e t h e s e m e s s a g e s f r o

1 U s G O T O i n s t e a d o R U t l i n e i 0 G O T O d o e s n ' t n e e d

2 P O K E 1 5 7 , 1 2 8 t f l a g d i r e c t mP O K E 1 5 7 , 0 . T h i s w a y o c a t h p r o g r a m a n d b l o c k t h e m

Page 9: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 9/84

c l e a r s t h l i n k t a b l e b e f o r e a n a f t e r c a l l i n g t h s c r o l l - d o w nr o u t i n e .

T h s y n t a x t u s i s

S Y a d d r e s s , n t o p l i n e

W h e r e i t h n u m b e r o t i m e s y o u w a n t t h s c r e e n t b s c r o l l e d d o w n o n l i n e a n t o p l i n e ( 0 t o 2 4 i t h l a s t l i n e n o t b s c r o l l e d . A l t h l i n e s b e l o w t h i s w i l l b s c r o l l e d d o w nt i m e s .

I ' v e f o u n d s h o r t e r a n e a s i e rT r a n s B A S I C :

1 0 d o k e 6 5 , l i n

T h i s i n c r e d i b l e p r o g r a m l i n e d o C u r r e n t D A T A A d d r e s s . I r e s t o r e sl i n e X . T h i a d d e d t a v o i d r e t h p r e v i o u s l i n e . T h i s i s m a l l s c a d w i t h T r a n s B A S I C !

T c h a n g e t h l o c a t i o n o t h r o u t i n e , j u s t c h a n g e t h v a l u e o i l i n e 1 1 0 . T h l o a d e r w i l l m a k e t h n e c e s s a r y c h a n g e s t t h m a c h i n e c o d e .

r e m * c - 6 4 s c r o l l d o w n4 9 1 5 2 : r e s t a r t a d d r e s s ( r e l o c a t a b l e )

f o s t o s 3 3 r e a d a p o k e i , a : n e x tp r i n t " * s c r o l l d o w n - s y n t a x : "p r i n t " s y s " s " , n , t o p l i n e "p r i n t " W h e r e ' n n u m b e r o f l i n e s t o s c r o l l "

f 4 9 1 5 2 t h e n e n 2 2 j 7 3 4 j

j 1 p o k e j 1 , u / 2 5 6 : p o k e j u , u - 2 5 6 * p e e k ( j u 1 p o k e j + , r / 2 5 6 : p o k e j j , r - 2 5 6 * p e e k ( j j + 1 p o k e j r 1 , r / 2 5 6 : p o k e j r , r - 2 5 6 * p e e k ( j r 1

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

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

' d a t a 2 4 7 , 9

S n e a k y S a v e s T e r r

A M O P D L E O

G C A P B K H K F A G

1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8

E a s y ' R E S T O R E x U s i n g T r a n s B A S I C

A n d y H o c h h e i m e rW a l l a c e b u r g , O n

h a v e b e e n u s i n g l o o D A T A s t a t e m e n t s i p r o g r a m m i n g f o q u i t e w h i l e . 9 9 o t h t i m e h a v e t R E S T O R E t h e n s e a r c hf o m d a t a o s p e c i f i c l i n e n u m b e r b e f o r e r e a d i n g a g a i n . I

I V o i s s u e 3 " U n v e i l i n g T h S l e i g h t o H a n d " ' Y O l d e S t s h i f t e d - s p a c e b e f o r e t h e f i l e n a m d i r e c t o r y t h a t s h o w s t w q u o t e s f

s a v e " 0 : [ S h i f t - s p a c

I t h e d i r e c t o r y i b e c o m e s :

" f i l e n a m

B e x p e r i m e n t i n g w i t h i t f o u n d m i n d s o P i r a t e s ( a i t h e y w e r e n ' d i r e c t o r i e s w h e r e t h n a m e o t h W e l l h e r e ' s h o i t ' s d o n e . T y p e :

s a v e , 1 q u o t e , d r i v e n u m b e r , cd e l e t e , i n s e r t s , s h i f t - M , r v s o c o m m a , d e v i c e n u m b e r

W h e n d o n e , i w i l l a p p e a r s o m e t h i

s a v e O l f f i l l f i

I t h d i r e c t o r y , i w i l l s h o w t h b lw h e r e i w o u l d n o r m a l l y a p p e a rc a r r i a g e r e t u r n ( b e c a u s e s h i f t e df i l e n a m e w i l l a p p e a r r i g h t u n d e rf i e l d . T h f i l e t y p e i n d i c a t o r ( i . e . " i n i w i l l a l s o a p p e a r i r e v e r s e f i

Page 10: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 10/84

S a n i t a t i o n E n g i n e e r F r e d S i m o nG i b b s b o r o , N e J e r s e y

D i y o e v e r h a v e t w a i t f o s e v e r a l m i n u t e s w h i l e y o u rc o m p u t e r c o l l e c t e d " g a r b a g e " s t r i n g s ? G a r b a g e c o l l e c t i o n o t h C - 6 4 h a b e e n k n o w n t t a k e m o r e t h a n t w e n t y m i n u t e sw h e n a l a r g e n u m b e r o s t r i n g s n e e d b p r o c e s s e d . W i t h t h p r o g r a m " S a n i t a t i o n E n g i n e e r " , a c t i v e s t r i n g s a r c o l l e c t e dl i g h t n i n g f a s t .

W h a t I G a r b a g e C o l l e c t i o n ?

E a c h t i m e t h e B a s i c i n t e r p r e t e r e n c o u n t e r s n e s t r i n g v a r i ab l d e f i n i t i o n , i b u i l d s t h a t s t r i n g c h a r a c t e r b c h a r a c t e r i h i g h m e m o r y , w o r k i n g d o w n w a r d f r o m l o c a t i o n 4 0 9 6 0 . I s t r i n g v a r i a b l e i c h a n g e d , t h e o l d s t r i n g r e m a i n s i m e m o r y a " g a r b a g e " . I t h a v a i l a b l e f r e e m e m o r y i l e s s t h a n t h m a x im u l e n g t h o c o u p l e o s t r i n g s , o i t h e B a s i c c o m m a n dF R E ( O ) i i s s u e d , t h g a r b a g e c o l l e c t i o n r o u t i n e i c a l l e d . T h i sr o u t i n e l o o k s a e a c h s t r i n g v a r i a b l e t f i n d t h o n s t o r e dh i g h e s t i m e m o r y , m o v e s a l o t h e o t h e r s t r i n g s d o w n b t h l e n g t h o f t h i s s t r i n g , a n t h e n c o p i e s t h e s t r i n g t t h e t o p o a v a i l a b l e m e m o r y . T h e l e n g t h o t i m e i t a k e s t c o m p l e t e t h i st a s k d e p e n d s o n l y o t h n u m b e r o s t r i n g s a n n o t h e i rl e n g t h .

T s e g a r b a g e c o l l e c t i o n a w o r k , t r y t h i s p r o g r a m :

1 0 5 0 0 : d i x $ ( d )2 f o t d x $ ( j ) s t r $ ( j ) : n e x t3 p r i n t s t a r t i n g c o l l e c t i o n . . 4 0 t i f r e ( O )5 p r i n t ( t i — 1 ) / 6 0 " s e c o n d s "

C h a n g e t h v a l u e o i n l i n e 1 t s e e t h e e f f e c t o i n c r e a s i n gt h n u m b e r o f s t r i n g s .

F a s t e r C o l l e c t i o n

O n w a t s p e e d u g a r b a g e c o l l e c t i o n i t f i r s t c o p y t h s t r i n g m e m o r y t a b u f f e r a r e a ( S a n i t a t i o n E n g i n e e r u s e s t h a r e a l o c a t e d u n d e r n e a t h t h K e r n a l R O M ) . E a c h a c t i v e s t r i n gc a t h e n b p u l l e d o u t o t h b u f f e r a n w r i t t e n t t h e c l e a ns t r i n g a r e a . T h b o t t o m o t h s t r i n g m e m o r y i t h e n t h b o t t o m

n e e r i w r i t t e n o v e r t h e o l d c o l l R E A D Y , p r o m p t i c h a n g e d t B a s i c h a b e e n m o d i f i e d . I y o S a n i t a t i o n E n g i n e e r w i l l b d e a c tS Y 5 1 7 4 0 . T r y t h t e s t p r o g r a mt 5 0 0 0 a n d t r a g a i n . N o m o r e

S a n i t a t i o n E n g i n e e r B a s i c L

P D F B H B E G O M H A J N L B J E N

N N D E G G K K H N B E O

J D

B

1 r e s a v e " 0 : s a n i t a t i1 0 0 r e m s a n i t a t i o n e n g i1 1 r e f o t h c o m m o d1 2 r e b f r e d s i m o n1 3 c 0 f o 5 1 7 4 01 4 0 p o k e i , d : c c 1 5 i c 6 3 5 9 1 t h e n1 6 p r i n t e r r o r i d a t a1 7 0 :1 8 d a t a1 9 d a t a2 0 d a t a

1 2 0 , 1 6 9 , 53 , 1 6 0 , 2 , 1 3 6 , 2 0 8

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

1 4 1 , 1 2 5 , 1 6 1 5 7 , 3 8 , 1 8

8 6 , 2 0 2 , 1 6 1 5 1 3 3 , 2 5 5 2 , 1 4 1 , 2 4

2

51 4 1 , 2 4 1 , 2 0

5 6 , 1 7 3 , 2 4 1 3 3 , 2 5 1 , 1 0 1 0 5 , 1 , 1 31 3 3 , 9 5 , 1 6 1 6 5 , 4 7 , 1 3

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

2 4 0 , 2 0 3 , 1 7 0 , 1 3 3 , 2 5 1

3 2 , 2 4 3 , 2 0

2 3 d a t a2 4 d a t a2 5 d a t a2 6 d a t a2 7 d a t a2 8 d a t a 1 9 , 1 4 42 9 d a t a 5 0 , 1 0 53 0 d a t a 5 2 , 1 0 53 1 d a t a 2 5 0 , 1 6 53 2 d a t a3 3 d a t a3 4 d a t a3 5 d a t a3 6 d a t a3 7 d a t a

4 1 d a t a4 2 d a t a4 3 d a t a

Page 11: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 11/84

K C J L A K H M E

O E

I J K

D C P H O N

I J D

5 6 d a t a5 7 d a t a5 8 d a t a5 9 d a t a6 0 d a t a6 1 d a t a6 2 d a t a6 3 d a t a6 4 d a t a6 5 d a t a6 6 d a t a6 7 d a t a6 8 d a t a6 9 d a t a7 0 d a t a7 1 d a t a7 2 d a t a7 3 d a t a7 4 d a t a7 5 d a t a7 6 d a t a7 7 d a t a7 8 d a t a

2 2 3 , 2 2 8 , 9 6 1 6 5 , 2 5 3 , 1 3 3 ,2 0 8 , 4 , 2 2 8 ,1 7 7 , 9 5 , 1 0 1 ,9 5 1 0 2 0 0 , 8

9 1 4 4 ,1 3 3 ,1 3 2 ,

9 6 9 5

1 0 1 0 5 ,3 2 3 0 ,

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

7 8 , 1 4 5 , 8 8 2 3 0 , 7 9 , 2 0 2 ,1 6 9 , 5 3 , 1 3 3 ,

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

5 1 , 2 4 1 , 9 5 1 6 5 , 5 2 , 2 3 3 ,

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

7 3 , 7 7 , 7 9 ,

2 0 8 , 2 1 9 , 2 4 09 5 , 1 3 4 , 9 5 0 2 4 0 , 3 9 5 1 3 3 , 2 5 31 7 0 , 1 6 0 ,1 6 2 1 8 , 1 6

5 , 1 0 1 , 9 9 6 , 2 4 , 9

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

2 0 0 , 2 0 8 , 2 4 2 0 8 , 2 4 2 , 9

1 1 0 4 , 1 9 2 4 1 0 1 , 2 4 9 ,

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

0 1 3 3 , 5 2 1 7 7 , 9 5 , 2 4 0 ,1 4 5 , 5 1 , 1 5 2 ,

1 8 8 , 2 4 ,0 , 0 , 0 ,5 3 , 3 2 , 7 0 ,

7

, 2 1 2 , 2 6 9 4

1 6 0 , 22 0 0 , 1 7 1 7 7 , 9

4 1 7 1 3 3 , 9 1 6 5 , 2 4 81 6 0 ,2 3 2 , 1 7 2 3 0 , 8

7 2 1 2 2 4 8 , 1 4

1 3 3 , 7 5 6 1 6

1 4 5 , 9 2 0 0 , 1 4

9 1 6 2 0 8 , 2 4 81 6 5 , 2 5 4

0 6 4 6 8

S o m e C 1 2 8 B i t s P e r r y S h u l t z , M i a m i , F l o r i d a

O r n a m e n t a n H a p p y N e Y e a r I H i g h - R e s

g r a p h i d : s c n c l r : c o l o r 1 , 5 : f o r u 1 t o 5 0 s t e p 3 : c i r c l e 1 , 1 6 0 ,7 5 , u , 6 0 - u : n e x t : c o l o r 1 , 2 : f o r r 9 t o 8 5 s t e p 5 : c i r c l e 1 , 1 6 0 ,r / 9 , r * 2 , r * 3 . , , , 7 2 : n e x t r : c h a r 1 , 1 3 , 1 8 , " h a p p y n e y e a r " ,

N o t e s : T h l i n e n u m b e r m u s t b 9 o l e s s . T y p e l i n e w i t h n s p a c e s . A f t e r e n t e r i n g t h e l a s t c h a r a c t e r , c u r s o r b a c k a n y w h e r ei t h l i n e t h e n r e t u r n .

M u l t i p l e C i r c l e , T r i a n g l e a n S q u a r eH i g h R e s D r a w R o u t i n e

g r a p h i c " ! , : f o r i 2 5 t o 3 0 0 s t e p 9 : c i r c l e 1 , i 1 0 0 , 2 0 ,1 8 , , , , 1 2 0 : n e x t : f o r i 2 5 t o 3 0 0 s t e p 9 : c i r c l e 1 , i , 2 0 , 2 0 ,1 8 , , , , 4 5 : n e x t : f o r i 2 5 t o 3 0 0 s t e p 9 : c i r c l e 1 , i , 1 7 5 ,

1 1 0 , r 2 0 , r 1 8 , , , , 9 0 : n e x t r3 g r a p h i d , 0 : s c n c l r : f o r r 3 t o 1 2

2 0 , r 2 0 , r 1 8 , , , , 9 0 : n e x t r4 0 g r a p h i d , 0 : s c n c l r : f o r r 3 t o 1 01 1 0 , r 2 0 , r 1 8 , , , , 1 5 0 : n e x t r4 g r a p h i d , 0 : s c n c l r : f o r r 3 t o 1 2

9 9 , r 2 0 , r 1 8 , , , , 3 0 : n e x t r5 0 g r a p h i d , 0 : s c n c l r : f o r r 3 t o 1 2

9 5 , 1 0 0 , r + 1 0 , , , , 7 5 : n e x t r5 5 g r a p h i d , 0 : s c n c l r : f o r r 7 t o 1 0

6 0 , r 5 5 , r 3 , , , , 7 2 : n e x t r

M o r e I d e a s

R e d e f i n e t w f u n c t i o n k e y s a g r a p( h i - r e s s c r e e n ) t h i s e n a b l e s s ct o u c h .

W i t h t h 1 6 b y t e s p e l i n e , h o p el i n e r s .

A n F o t h F i r s t T i m e . .

S o m e A m i g a B i t s a n P i e c e s

G o a A m i g a ? T h e n n o d o u b t y o e v e r y d a w d o W a T h p l e a s e d i w c o u l d s h a r e y o u r d i s cS a m e d e a l a s " B i t s " w e ' l l c r e d i y e a r ' s s u b s c r i p t i o n .

S o m e N o t e s A b o u t C L

C L I , A m i g a ' s C o m m a n d L i n e I n tA m i g a D O S . Y o c a a c c e s s C L b W o r k B e n c h d i s k t h C L i c o n a p p c h o s e n i " P r e f e r e n c e s " . W h e nt h s y s t e m l o o k s f o t h c o m m a n di n o t f o u n d , i t h s u b d i r e c t o r yt h a t w a b o o t e d w i t h ) . S e t h a r td e s c r i p t i o n o t h D O c o m m a n d s .

Page 12: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 12/84

o d i s k c a l l e d U t i l i t i e s " , y o c o u l d j u s t e n t e r :

d i u t i l i t i e s :

T h s y s t e m w o u l d t h e n p u u a r e q u e s t e r a s k i n g y o t o i n s e r tv o l u m e u t i l i t i e s " i n t h d r i v e , a n d w o u l d g i v e y o d i r e c t o r ya f t e r y o u h a d d o n e s o Y o c a w o r k w i t h a n f i l e o d i r e c t o r yo t h n e d i s k i t h i s w a y , f o e x a m p l e :

t y p e u t i l i t i e s : s t u f f / T e x t F i l e

. . w o u l d d i s p l a y t h f i l e " T e x t F i l e " i t h e s u b - d i r e c t o r ys t u f f " o t h e d i s k u t i l i t i e s " . T h i s m e t h o d w o r k s f i n e w h e ny o k n o w t h v o l u m e n a m e o t h e d i s k y o u ' r e i n t e r e s t e d i ( w h i c h y o s h o u l d , s i n c e y o u ' v e t h o u g h t f u l l y w r i t t e n i o t h d i s k l a b e l , r i g h t ? ) , a n d y o u o n l y w a n t t u s t h e d i s k a f e t i m e sa n d o n ' t m i n d s w a p p i n g d i s k s b a c k a n f o r t h .

2 I y o w i s h t s w i t c h t n e d i s k f o a w h i l e t p e r f o r ms e v e r a l c o m m a n d s , a n t h n e d i s k h a t h o s e c o m m a n d s o i ( u s u a l l y i t h s u b - d i r e c t o r y ) , y o c a j u s t c h a n g e t h a s s i g n m e n t o f C : t e l l i n g t h s y s t e m t l o o k e l s e w h e r e f o c o m m a n d s . F o e x a m p l e , i f r o m t h o r i g i n a l d i s k y o t y p e d :

a s s i g n c u t i l i t i e s : c

Y o w o u l d b p r o m p t e d t o i n s e r t v o l u m e u t i l i t i e s : " , a n t h s u b - d i r e c t o r y o t h a t d i s k w o u l d t h e n b s e a r c h e d f o a l

D O c o m m a n d s s u b s e q u e n t l y i s s u e d .

L i k e w i s e , y o c o u l d r e - a s s i g n t h e c u r r e n t d i r e c t o r y u s i n g t h C c o m m a n d , a i n

c u t i l i t i e s : c

T h d i s a d v a n t a g e w i t h t h i s a p p r o a c h i t h a t i l o c k s y o i n t oa t h e c u r r e n t d i r e c t o r y .

3 m o r e d i r e c t a p p r o a c h f o u s i n g a n e d i s k w h i c h a l s oc o n t a i n s t h D O c o m m a n d s i t r e f e r t t h d i s k e x p l i c i t l yw h e n i s s u i n g t h c o m m a n d , p r e v e n t i n g D O f r o m r e q u e s t i n gt h S Y S : d i s k . F o e x a m p l e , i y o u w a n t e d d i r e c t o r y o a n o l d i s k l a y i n g a r o u n d ( r e m e m b e r , i M U S T c o n t a i n t h r e q u i r e d

t h s y s t e m t l o o k t h e r e f o t h f o l l o w i n g s e q u e n c e o c o m m a n ds e q u e n c e b a t c h f i l e , t a c c o m p l i

m a k e d i r r a m : c ; m a k e s u b c o p y c r a m : c ; c o p y e n t i r ea s s i g n c r a m : ; a s s i g n r a a

T h i s s e e m s t b t h u l t i m a t e s o y o u r c o m m a n d s e x e c u t e o u o y o u ' r e n e v e r b o u n d t d i s k wd i s a d v a n t a g e ( t h e r e h a t b R A M , a n a l s o ( O K , t w o ) i t a k e sc o m m a n d s . N o n e t h e l e s s , s o m ee n o u g h t i m e t h a t t h i s r e a l l y i tf l e x i b l e D O c o m m a n d s .

5 v a r i a t i o n o t h a b o v e R t h o u g h t u p b y A m i g a - b u f f R i c oD O c o m m a n d s , f o e x a m p l e Da n d T Y P E , a n d c o p y t h e m t R Ao t h o s e f i l e s , a n u s t h o s e n e n a m e s . ( A S S I G N i j u s t w a o t v o l u m e , d i r e c t o r y , o f i l e . )v e n t i o n , m a k e t h a s s i g n e d n a n a m e s , e x c e p t f o t h e r e q u i r e x a m p l e b e l o w s h o u l d c l e a r u t h i s i y o u r s t a r t u p - s e q u e n c e ) .

c o p y : c / d ic o p y : c / cc o p y : c / cc o p y : c / ta s s i g n d i r a s s i g n c o a s s i g n c d a s s i g n t y

N o w , w i t h t h o s e a s s i g n m e n t s i D I R , j u s t t y p e d i r : ( w i t h t h e c o l d i c o m m a n d f r o m R A M , e x e c uh a v e t h a v e t h d i c o m m a n dd r i v e . A l s o , y o h a v e n ' t u s u

Page 13: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 13/84

Page 14: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 14/84

t i n e s ( T i m e r i t h e t r a n s m i t c l o c k a n d T i m e r i t h e r e c e i v ec l o c k ) . M o r e a c c u r a t e l y , t h e p r e - s c a l e r v a l u e s i t h b a u d - r a t et a b l e s a r w h a t m i g h t b c a l l e d t h h a l f - b i t t i m e s . T h v a l u e sa r h a l f t h n u m b e r o c l o c k c y c l e s i t a k e s t t r a n s m i t o r e c e i v e o n b i t a t t h e s e l e c t e d b a u d r a t e . T h O P E N r o u t i n eu s e s t h e s e v a l u e s t c a l c u l a t e t h f u l l - b i t t i m e s , a n s t o r e s b o t hv a l u e s i p a g e 2 l o c a t i o n s i l b y t e / h i b y t e f o r m ( t h e h a l f - b i tt i m e i a $ 0 2 9 5 / 9 6 , a n t h f u l l - b i t t i m e i a $ 0 2 9 9 / 9 A ) . T h R S 2 3 2 r o u t i n e s i t h e k e r n e l m a k e u s o b o t h v a l u e s , a l t h o u g he x a c t l y h o t h e y d s i b e y o n d t h s c o p e o t h i s l e t t e r .

W a r n o i a p o s i t i o n t u n d e r s t a n d e x a c t l y h o u s e r -d e f i n e d r a t e s a r i m p l e m e n t e d o t h C 6 4 . I t h l o n y b b l e o t h f i r s t c h a r a c t e r i t h f i l e n a m e f i e l d o t h O P E N c o m m a n di z e r o , t h e n t h p r e - s c a l e r v a l u e s a r n o o b t a i n e d f r o m t h b a u d - r a t e t a b l e s a a l l . I n s t e a d , t h t h i r d a n f o u r t h c h a r a c t e r so t h f i l e n a m e f i e l d a r c o n s i d e r e d t b t h e p r e - s c a l e r v a l u e s .T h i s i e x a c t l y w h a t t h f o r m u l a s i t h P r o g r a m m e r ' s R e f e re n c e G u i d e p r o d u c e t h h a l f - b i t t i m e i l b y t e / h i b y t e f o r m .

W c a a l s o b e g i n t a p p r e c i a t e w h e r e s o m e o t h c o n f u s i o ns u r r o u n d i n g t h R S 2 3 2 r o u t i n e s i t h e k e r n e l h a a r i s e n . I t h f i r s t p l a c e , t h l o w n y b b l e o t h f i r s t c h a r a c t e r c a h a v e s i x t e e nd i f f e r e n t v a l u e s , b u n o a l s i x t e e n m e a n s o m e t h i n g . Z e r o g i v e st h u s e r - d e f i n e d r a t e , a n t h e r e a r e t e n d i f f e r e n t v a l u e s i t h b a u d - r a t e t a b l e s . W h a t h a p p e n s i t h l o w n y b b l e h a v a l u eg r e a t e r t h a n t e n ? S i m p l e t h e r e i n e r r o r c h e c k i n g , s t h i n d e x n o p o i n t s t r a n d o m b y t e s b e y o n d t h e n o t h b a u d -r a t e t a b l e s a n t h o s e a r u s e d a t h e p r e - s c a l e r v a l u e s . W h d o e s n ' t t h u s e r - d e f i n e d r a t e w o r k o t h e V i c 2 0 A u n d e rs t a n d i t t h e k e r n e l o t h e V i c 2 d o e s n o s p e c i f i c a l l y c h e c k f o z e r o i t h l o w . n y b b l e o t h f i r s t c h a r a c t e r n o t h i n d e xp o i n t s t s o m e w h e r e b e f o r e t h b e g i n n i n g o t h b a u d - r a t et a b l e s , a n a g a i n r a n d o m v a l u e i u s e d f o t h e p r e - s c a l e rv a l u e . T h i s i a p p a r e n t l y b u g w h i c h w a s f i x e d i t h C 6 4 .

O n m o r e t h i n g w h i c h i n o a p p a r e n t i w h t h C 6 h a t r o u b l e w i t h s o m e 1 2 0 0 b p s m o d e m s . B e x a m i n g t h b a u d -r a t e t a b l e s i i c l e a r t h a t t h b a u d r a t e p r o d u c e d w h e n 1 2 0 0 b p i r e q u e s t e d i e x a c t l y 1 2 0 0 b p s . W h a t c a p o s s i b l y b t h p r o b l e m , t h e n ? I t u r n s o u t t h a t i i t h 1 2 0 0 m o d e m s t h a t d n o o p e r a t e a 1 2 0 0 b p s . T y p i c a l l y , 1 2 0 0 b p m o d e m s a c t u a l l yt r a n s m i t a 1 2 1 9 b p a n r e c e i v e a 1 1 8 2 . S o m e m o d e m s a r

h o p e t h i s h e l p s c l e a r u s o mt h e C 6 4 R S 2 3 2 r o u t i n e s .

A n t o

A l m o s t C l e a r : W h i l e r e a d i n gI s s u e 0 1 , 1 c a m e a c r o s s t h i n gI t h i s s u e b e f o r e t h e r e w a p r o g r a m i w h i c h t h e t o p l i n

l o n g I R r o u t i n e t d t h i s .s a m e t h i n g u s i n g t h c l e a r s c e x a m p l e o h o i w o r k s :

1 f o t 3 8 p r i n t a b c n e x t

2 f o t 1 0 0 0 : n e x t3 f o r k t 2 4 p o k e 7 8 , 4 f o t 1 0 0 0 : n e x t

T h p r o g r a m f i l l s t h s c r e e n w ia l t h l i n e s a r e c l e a r e d e x c e p tp a u s e a l l o w i n g t i m e t s h o w t w o u l d w a n t t u s a n d c h a n g T h i s l i n e d o e s a l t h w o r k . h o t h l o n g I R r o u t i n e .

M i k

T h a n k s f o t h e c o d e . L i n e 3 m( w i t h o u t s p a c e s ) , n a s s e m b l ec o n c e r n e d , i g o e s o f f p r e t t y d a c u r e f o r a p r o b l e m .

I n c i d e n t l y , t h I R d r i v e n r o u t c o n t i n u o u s s c r e e n d i s p l a y r o m e a s u r e d i a 4 b y t e s o or o u t i n e w a w r i t t e n t b c a l l e c o u n t o 2 b y t e s . A l t h o u g hw e r e n o t o t e r r i b l y l o n g . N o ww r i t e i i a s s e m b l e r , w c o m e

8 2 ; c a s s e t t e

I d # 2

Page 15: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 15/84

Page 16: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 16/84

f o l l o w i n g l i n e i n t h p r o g r a m :

1 2 8 0 I L C < 1 0 0 0 T H E N 1 3 5 0

T h a t f i x e s e v e r y t h i n g e x c e p t w h e n y o t r t u n - a s s e m b l el o n g b i ( t h e r e ' s t h a t g r e m l i n a g a i n ! ? ) o m a c h i n e c o d e . T h u n a s s e m b l e r i n s e r t s l o o u n n e c e s s a r y s p a c e s i t h s o u r c ec o d e , c r e a t i n g s i g n i f i c a n t l i m i t o t h a m o u n t o s o u r c e c o d ew h i c h c a b c r e a t e d o o r d i n a r y d i s k e t t e s . W i t h a o r d i n a r y1 7 0 k 1 5 4 1 d i s k e t t e , o n l y a b o u t 1 2 o m a c h i n e c o d e c a b u n - a s s e m b l e d . D e l e t i n g u n n e c e s s a r y s p a c e s f r o m t h g e n e ra t e d c o d e c a d o u b l e t h l i m i t . 2 4 s o u n d s a n i l o b e t t e r !T h i s c h a n g e i f a i r l y e a s i l y a c c o m p l i s h e d b y g o i n g t h r o u g h t h p r o g r a m a n s u b s t i t u t i n g a s i n g l e s p a c e w h e r e v e r t h e r e a r em u l t i p l e s p a c e s , n o t a b l y i l i n e s 1 2 5 0 , 1 2 6 0 , 1 3 8 0 , a n d 1 4 0 0 . I a l s o s e e m s d e s i r a b l e t i n c r e a s e t h e d i m e n s i o n s i n l i n e 1 2 t L I ( 2 0 0 0 ) a n L 2 ( 2 0 0 0 ) , w h i c h w i l l t h e n h a n d l e u t a b o u t 2 4 o m a c h i n e c o d e i s i n g l e u n - a s s e m b l y . ( a l e a s t , a f t e rc o m p i l a t i o n )

B u l e t ' s n o g e t c a r r i e d a w a y w i t h d e l e t i n g s p a c e s ! T h p r o p o rt i o n a l t y p e s e t t i n g m a c h i n e u s e d t s e T r a n s a c t o r p r o g r a ml i s t i n g s i p r o b l e m t o o . B s u r e t i n c l u d e s p a c e b e t w e e n. B Y T E a n d i l i n e 1 4 8 0 . O t h e r w i s e t h C o m m o d o r e a s s e mb l e r g e n e r a t e s t h R A O F E N O F C A R D " e r r o r m e s s a g e .T h a t e r r o r m e s s a g e p r e s u m a b l y m e a n s t h a t a c o u p l e o c o o t i e ss i t t i n g o t h A c o S p a d e s w i l l n e v e r r e a l l y k n o w w h e t h e r t h c a r d i f l a t o r o u n d .

F i n a l l y , a f t e r t h c o r r e c t i o n s a n c h a n g e s a i n d i c a t e d a b o v e ,w a n t t c o n f i r m t h a t t h u n - a s s e m b l e r w o r k s v e r y w e l l . I c a b e a s i l y c o m p i l e d w i t h t h A b a c u s c o m p i l e r t g i v e 3 - 4 xi n c r e a s e i o v e r a l l s p e e d , w i t h n e g l i g i b l e e x p a n s i o n o t h p r o g r a m c o d e . M c o m p i l e d v e r s i o n o t h u n - a s s e m b l e r t o o ka b o u t h o u r s t u n - a s s e m b l e 2 1 k o c o d e , i . e . a l m o s t t h f u l lc a p a c i t y o 1 7 0 k 1 5 4 1 d i s k e t t e . A f t e r d e l e t i n g u n n e c e s s a r ys p a c e s f r o m t h g e n e r a t e d c o d e , t h r e s u l t i n g c o d e i a p p r o x im a t e l y 5 - 6 x e x p a n s i v e .

I n c i d e n t l y , c o n f i r m e d t h a t a f t e r t h B I t . B Y T E c o r r e c t i o n ,t h u n - a s s e m b l e r c o r r e c t l y h a n d l e s t h s t a n d a r d C - 6 4 d i s kw e d g e p r o g r a m , a l l o w i n g r e l o c a t i o n o t h u t i l i t y t a n m e o r a r e a s i m p l y b v a r y i n g t h f i r s t l i n e i t h s o u r c e c o d e .

L e f t W i n g I n t e r f e r e n c e : h a t h a t t h o u g h t m i g h t b e o i nC o m m o d o r e 1 5 4 1 d i s k d r i v e .

M s o n ' s " W i n n i e T h P o o h I p r o g r a m w a h a v i n g d i f f i c u l t y l oa n d w o u l d s o m e t i m e s p r o v i d ep r o b l e m w i t h t h e d i s k d r i v e . T hd r i v e m i g h t b e o u o a l i g n m e n t .A d j u s t / A l i g n m e n t " f u n c t i o n o t h P r o g r a m " f r o m C S S o f t w a r e .t i m e t a c c e s s e v e r y s e v e n t h s e c a l i b r a t i o n d i s k s u p p l i e d w i t h t h i n d i c a t e d i t h p r o g r a m r e p o r t1 0 0 . T h p r o g r a m w a s i n d i c a t i1 1 3 , a n b l i n k i n g o t h e r e d l i gt h e r e w a d i f f i c u l t y i n a c c e s s i n g

T h d i s k d r i v e a n T n o r m a l l w i c h r o l l u t a s i d e a r o m 6 i s e t f o r u s e . B e c a u s e t h e r e i t d i s a s s e m b l e a n a d j u s t t h d r it h e n r e c h e c k e d m t i m i n g n u m b 1 0 w e l l w i t h i n t h a c c e p t p r a c t i c a l l y n t r o u b l e a c c e s s i n gt u r n i n g t h e d r i v e t t h c a r t , t h o g r e a t e r .

l i t t l e i n v e s t i g a t i o n s h o w e d t h a t h l e f t o m T ( o m C o m m o dt r o u b l e a c c e s s i n g t h d r i v e . W h r i g h t , t h e r e w a l i t t l e o n t r o u b

I c o n c l u s i o n , s i t t i n g t h d i s k m o n i t o r c a p r o d u c e s y m p t o m sl e m s . R e a d e r s m i g h t w a n t t c h eb e f o r e g o i n g t t h e t r o u b l e o h a

J

w h i l e a g r e c e i v e d 1 5 4 1f r o m P r o l i n e f o r r e v i e w . T h f a s tw a s m o r e e n l i g h t e n i n g w a t h t h r o u g h t h a u t h o r s n o t e s , s i

Page 17: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 17/84

A l t h o u g h t h d i s k e t t e i a c t u a l l y i g o o d s h a p e , a n t h a l i g nm e n t i O k t h c h e c k s u m a l w a y s b o m b s o u t h e r e b y f l a g g i n ga e r r o r . t h e o r y w o r t h c o n s i d e r i n g . I t ' s w o r t h m e n t i o n i n g h e r et h a t o r i g i n a l l y s h o t o f o n a n a l t o g e t h e r d i f f e r e n t t a n g e n tb l a m i n g s p e e d v a r i a t i o n s d u t t h p h y s i c a l p l a c e m e n t t t h m o n i t o r , b u m f a t h e r b r o u g h t m b a c k d o w n t e a r t h . T h a n k sD a d .

H e r e i a n o t h e r t i g l e a n e d t h r o u g h e x p o s u r e t m f a t h e r .O n c e a g a i n ; t h a n k s D a d .

I m a n y c a s e s o s u p p o s e d a l i g n m e n t p r o b l e m s w i t h t h e 1 5 4 1 ,t h r o o t o a l e v i l c a n b e f o u n d i t h f o r m o s p e e d e r r o r .S p e e d v a r i a t i o n s c a b c a u s e d b y v a r i e t y o r e a s o n s , o n o w h i c h i n o t u s i n g i f o a e x t e n d e d p e r i o d o t i m e . I f t h i ss a b b a t i c a l i s p e n t b a s k i n g i f a i r l y w a r m t h o e n v i r o n m e n t( ' S c h o o l ' s O u F o S u m m e r ! ' ) , t h d e m o n m a a p p e a r . G i v e nt h e s e c o n d i t i o n s , t h e d r i v e b e l t w i l l d r y o u t t h u s t a k i n g o t h s h a p e i i c u r r e n t l y i n a o v a l . O n c e t h d r i v e i f i r e d b a c k u a g a i n , t h s p e e d w i l l b a l o v e r t h p l a c e d u t t h r i g i dm a l f o r m a t i o n o t h b e l t . T h c u r e i n t h i s c a s e i t e i t h e rr e p l a c e t h e b e l t o r c o n t i n u e u s i n g t h e d r i v e u n t i l t h b e l t l o s e ss o m e o i t r i g i d i t y , o r c o n s i d e r j u s t p o p p i n g t h b e l t o f a n l e a v i n g i i n s i d e t h c a s e i e x t e n d e d n o n - u s e i a n t i c i p a t e d .

T h G r e m l i n E f f e c t : I s e e m e d t m t h a t y o u r c u r r e n t p i e c ea b o u t e r r o r s o p a g e 1 o V o 6 * 0 c o u l d a p p l y t m r e c e n tl e t t e r o l a s t J u n e 1 2 t h .

I i c o m p l a i n e d t h a t t w p r o g r a m s f r o m t h J u l y , V o 6 * 0 T r a n s a c t o r j u s t w o u l d n ' t w o r k f o m a n i f a c t k e p t p r o d u c i n ge n d l e s s l o o p s a n f o u l e d u g e n e r a l l y ! N a m e l y , y o u r o w F i l eP u r s u i t " a n J e f f G o e b e l ' s B o o t m a k e r I I " .

d e c i d e d t h a v e a n o t h e r c r a c k a t h e m t o n i g h t . T a k i n g b r a n dn e d i s k , l o a d i n g " V e r i f i z e r " i n t o m 6 4 r e - e n t e r e d " F i l eP u r s u i t " a n t h i s t i m e i w o r k e d a b s o l u t e l y p e r f e c t l y !

w e n t b a c k t m o r g i n a l " s a v e " o a o l d e r d i s k a n r l o a d e d t h a t f o c o m p a r i s o n . A p a r t f r o m f e s p a c i n g d i f f e re n c e s b e t w e e n s o m e w o r d s o c o m m a n d s , t h t w v e r s i o n sa p p e a r e d t b i d e n t i c a l w h e n l i s t e d o s c r e e n i m a n a g e a b l e

Q u i t e f r a n k l y h a b e g u n t t h i n kh a v e a e a r l i e r R O c h i p i i t h k n o w w h e n f o u l u e n t e r i n g l i t h a t e v e n i o n s p o t s a e r r o r a n l i n e , i m a n e v e r b e r i g h t . I w h ie n t i r e l i n e . h a v e h a t h i s h a p p e ni o t h e r m a g a z i n e s a n b o o k s . F i nd o r e 6 4 m a g a z i n e s n o h a v e c p r o g r a m s , o a l e a s t o n e s w h i c hc a t c h e r r o r s r i g h t a w a y . H o w e v e r4 b C a n a d i a n a u t h o r , s t i l l c a n h a f i l e l o a d i n g p r o b l e m s w i t h a

R e a d i n g ' T r a n s a c t o r ' h a p e r s u a d b o o k s o n m a c h i n e l a n g u a g e a n s h o u l d b a l s e t t o g r o w s o m e m o r

Q u i t e f r a n k l y I ' m b e g i n n i n g t t h r e s i d e n t g r e m l i n i n s i d e , o n t h a td e c i d e d l y " o f f " n i g h t a n r e f u s e e n t e r e d c o r r e c t l y . I h a d n ' t e x p e s u i t a n B o o t m a k e r I I " , I ' m n o i c o u l d h a p p e n ! ! !

L o o k s l i k e I ' g o i n g t h a v e t g e m o r e p r o g r a m s n o w ! A l e a s t w h i m o o d !

J o h n

A l t h o u g h V e r f i z e r w i l l c a t c h e n t r A b o u t t h o n l y c r i t i c a l S p a c e s p o s s i B l o c k C o m m a n d s s e n t t t h H o w e v e r , w u s e d s e m i - c o l o n s i P u r s u i t f o r j u s t t h i s r e a s o n . S i c e i d e n t i c a l e n t r i e s w o u l d n o w o r k t h a n y o u r f i r s t " s a v e " o F i l e P u r s u i tl i n e w h i l e c h e c k i n g t h V e r i f i z e r c o d d i s c r e p e n c y , w h i c h w o u l d c e r t a i n l t i o n a l .

J o r d a n R o l l t o p S t a n d R e v i s i t et h " J o r d a n R o l l t o p S t a n d " i t h e 0 5 F i r s t f r o m t e c h n i c a l s t a n d p o i

Page 18: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 18/84

Y o c a b u i l d w i t h c o n s t r u c t i o n l u m b e r f i n e , b u a i s i t s i y o u r h o u s e w h i c h i p r o b a b l y a b o u t t m . c . t h l u m b e rw i l l d r f u r t h e r ( t " e q u a l i z e " i t s e l f t i t s u r r o u n d i n g s ) . W h e nt h i s h a p p e n s , t h p i e c e w i l l s h r i n k a n d / o r w a r p s l i g h t l y , s o m et i m e s c a u s i n g r e a l p r o b l e m s , e s p e c i a l l y i f u r n i t u r e w i t h m o i n p a r t s . F o p i e c e o f u r n i t u r e m e a n t t l a s t , l u m b e r d r i e d t

t 8 m . c . i m u s t .

B u m p o i n t i w r i t i n g i n o t c r i t i q u e t h a r t i c l e , b u r a t h e rt o o f f e r h e l p t T r a n s a c t o r r e a d e r s . T o a n y o n e w h i i n c l i n e d t b u i l d t h " J o r d a n R o l l t o p S t a n d " ( o a n w o o d w o r k i n g p r o j e c tf o t h a t m a t t e r ) w c a s u p p l y q u a l i t y A p p a l a c h i a n h a r d w o o d sa n N e E n g l a n d W h i t e P i n e i a n f o r m f r o m r o u g h s i z e d ,s u r f a c e d b o a r d s r i g h t t h r o u g h t " r e a d y - t o - a s s e m b l e " p i e c e s ,a n c a s u p p l y t h e m f o r l e s s m o n e y t h a n m o s t f u r n i t u r el u m b e r s u p p l i e r s . T a k e f o i n s t a n c e t h e " J o r d a n R o l l t o p S t a n d " ;i y o u w a n t e d t m a k e t h i s o u o C h e r r y o H a r d M a p l e y o uc o u l d g e t h r o u g h s i z e d b o a r d s t d i f o a b o u t t e d o l l a r s( U . S . ) ( d e p e n d i n g o t h a c t u a l s i z e o f t h d e s k i w a t b p l a c e d o n o g e r e a d y - t o - a s s e m b l e p i e c e s , l e s s t h c l o t h f o t h t a m b o u r , f o a b o u t t w e n t y - f i v e d o l l a r s ( U . S . ) . S h i p p i n g c h a r g e sa r e e x t r a a n w i l l v a r y d e p e n d i n g o d i s t a n c e .

I y o u ' v e g o y o u r o w i d e a f o p r o j e c t , s e n d d r a w i n g o p i c t u r e o r a c u t t i n g l i s t i y o h a v e o n - a l o n g w i t h f i v ed o l l a r ( U . S . ) d e p o s i t a n w w i l l d r a w t h p l a n s f o y o u a n ds e n d y o c u s t o m p r i c e q u o t e . I f o s o m e r e a s o n y o d o n ' tb u t h l u m b e r , t h f i v e d o l l a r s c o v e r s o u r t i m e i d r a w i n g u t h p l a n s . ( N d e p o s i t i n e c e s s a r y i y o s e n d a c u t t i n g l i s t . )T r a d i t i o n a l f u r n i t u r e w o o d s , s u c h a A s h , C h e r r y , H a r d M a p l e ,P o p l a r , R e O a a n d W h i t e P i n e a r a l r e a d i l y a v a i l a b l e a n m o s t o t h e r N o r t h A m e r i c a n w o o d s c a n b e g o t t e n ( a l o n g a y o u ' r e n o i h u r r y ! ) S d o n ' t d e c i d e n o t b u i l d t h a t p r o j e c tb e c a u s e o f e a r o s a w s , l a c k o a b i l i t y , o a n o t h e r e x c u s e y o um a h a v e f o l e a v i n g y o u r c o m p u t e r a r e a i m e s s ; w e ' l l m e e ty o r i g h t w h e r e y o u w a n t w i t h t h l u m b e r y o n e e d .

M a t t h e w S t r a n g eP . O . B o M a n s f i e l d , P U S 1 6 9 3 3

F i r s t , l e t m q u o t e f r o m h a n d - w r i t t e n l e t t e r a t t a c h e d t t h i so n w h e n w e r e c e i v e d i t

T h H o r r o r O f H e x : h a v e ho v e r y e a r n o b u t , e v e n t h o up r e v e n t t h s e f r o m f o l l o w i n g t t r t h a v e m s a y .

o w C o m m o d o r e 6 4 a q p r o g r a m f a i r l y w e l l i M . L . M f ri n t o H E n o t a t i o n a l t h e t i m e . I

T h u s o H e i g a m e s o m ep u t e r d o e s n o u n d e r s t a n d H e xm e m o r y , b o t h t h m e m o r y a n

h a v e m e m o r y m a p o l o m e m o r y l o c a t i o n g i v e n i H e x . We v e r y h e a d d r e s s i n t o d e c i m a lr o u t i n e o r b e f o r e c o u l d S Y t i t h H E c o d e t p r e p a r e t h m c a u s e d u n t o l d h o u r s u p o n h o u rm e r s e v e r y w h e r e d e c o d e t h H e

W h e n r e a d a a r t i c l e i m a h a v e l i t t l e i a n d i f f i c u l t y f o l f l o w . 9 0 o m t i m e i w a s t t h r o u g h m H e t d e c i m a l c o n

I y o r e a l l y t a k e a o b j e c t i v e v iw a s t e f u l H E i s E v e n T r a n s a cm e n t s i d e c i m a l . T H L I N E NA R I D E C I M A L ! ! !

I H E i r e a l l y s g r e a t , w h n u m b e r s a n f o t h P A G E N U M t p r o g r a m m e r s w h a t L a t i n i p r i v a t e c l i q u e t w h i c h t h " u n d D o c t o r s a r e g r a d u a l l y g i v i n g u p r o g r a m m e r s w o u l d g i v e u H E

I d o i n g l e m s a d u n d e r s t i i a n h o m e o b u s i n e s s c o m p

T h e r e - s a i d i t T h o m a s

Page 19: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 19/84

I C w h e r e o r i g i n a l l y d e s i g n e d w i t h , s a y , 6 a d d r e s s l i n e s ( 0 t o9 9 9 9 9 9 ) a n d a t a l i n e s ( t 9 9 9 ) t h e n d e c i m a l w o u l d h a v e f i m u c h m o r e n a t u r a l l y . E x c e p t e a c h l i n e o f e v e r y c h i p w o u l dn e e d t h e c a p a b i l i t y t s e n s e 1 0 v o l t a g e l e v e l s a n t h a t m i g h t b ee x p e n s i v e . B e s i d e s t h a t , " I A d o r e M C o m m o d o r e 1 0 0 " d o e s n ' tr h y m e a n d " K w o u l d a c t u a l l y b e 1 0 0 0 b y t e s n o t h a t ' sc o n f u s i n g !

Y o u m i g h t s a y t h a t b i n a r y w o u l d t h e n b t h m o s t n a t u r a l s i n c et h e r e a r o n l y v o l t a g e l e v e l s , b u g r o u p s o a n 1 ' I ' s a n ' ' t a k e u f a t o m u c h p a p e r s p a c e . H e m e r e l y a l l o w s y o t " s e e f o u r o f t h o s e c h a r a c t e r s b o n l y l o o k i n g a t o n e . g u e s s ,o n c e a g a i n , i t ' s s o m e t h i n g y o g e u s e d t i t i m e . k n o w s o m ep r o g r a m m e r s t h a t s w e a r b O c t a l !

F a l s e I D T h T r a n s a c t o r i r e a l w i n n e r a n a l w a y s l o o kf o r w a r d t n e i s s u e . Y o h a v e p u b l i s h e d m a n y g o o d a r t i c l e so t h 1 5 4 1 d i s k d r i v e . H o w e v e r , c a n n o t f i n d a n y t h i n g t h a tt e l l s m h o t c h a n g e a d i s k I D w i t h o u t d e s t r o y i n g w h a t i o t h d i s k . k n o w t h I i a b y t e 1 6 2 - 1 6 3 o t r a c k 1 8 s e c t o r 0 a n h a v e n t r o u b l e c h a n g i n g t h a t , b u u n d e r s t a n d t h I i p r i n t e d t e v e r y s e c t o r o d i s k . W h e n d i s p l a y o t h e r t r a c k s d n o g e t h e I D i n f o r m a t i o n . w o u l d r e a l l y a p p r e c i a t e y o u r h e l pi t h i s m a t t e r .

E . C . M c P h e r s o n , O t t a w a , O n t a r i o

C o m m o d o r e D O i v e r y u n i q u e i c o n c e p t ; d u r i n g f o r m a t t i n gp r o c e d u r e , i m a g i c a l l y t u c k s a w a y t h d i s k e t t e ' s I w i t h e v e r ys e c t o r . T h e m a g i c p a r t o f t h i s e n t i r e p r o c e d u r e i t h a t t h a v e r a g e u s e r w o u l d n e v e r k n o w o i t e x i s t e n c e .

T h D O u s e s t h i s I a c h e c k - s u m t e n s u r e t h a t t h e d i s k e t t ei O w h i l e y o w o r k w i t h i t I f o s o m e r e a s o n s e c t o r g e t sm e s s e d u p t h I o f f e r s D O a n o t h e r m e t h o d t d e t e c t a e r r o r .A l o n g w i t h t h i s h i d d e n I D a r a w h o l e s l e w o f o t h e r e q u a l l yi m p o r t a n t b i t s o i n f o r m a t i o n . T h e r e i o n l y o n p r o b l e m :C o m m o d o r e w r o t e t h D O t m a k e t h i s p o r t i o n o t h e s e c t o rd i f f i c u l t i n o t i m p o s s i b l e t a c c e s s . T h e y f e l t t h a t t h e r e w a n r e a s o n w h a n y o n e w o u l d e v e r w a n t t d i t h i s d e e p i n t o t h e i ro p e r a t i o n s . T h e r e f o r e , y o a r g o i n g t h a v e p r o b l e m s c h a n gi n t h I D

C o n s i d e r i n g t h a t y o d i d n o t m e n t i o n w h y o u n e e d t c h a n g e

h i g h - l e v e l i n f o r m a t i o n . T r y h i t t i n gd o r e d e a l e r s f o t h b o o k . T h e r ed o n ' t h a v e i t t h e y w o u l d a l e a s t k r i g h t d i r e c t i o n .

A t t a c k O f T h e K i l l e r C l o n e :a n h a v e p r o b l e m s . c a n n o t fd r i v e e x c e p t f o t h m a n u a l ( ? ) a w i t h t h u n i t . W h e r e c a o b t a i nb e e n n o t h i n g i a n C o m m o d o r ee x c e p t a d v e r t i s i n g t h i s d r i v e f o s a

a t h e P r e s i d e n t o T R A C E ( T h eE n t h u s i a s t s ) , w i t h 6 m e m b e r s . T hi t h e g r o u p , a n e a c h h a v e p r o b l

W c a n n o t g e M i c r o p r o s e s o f t w a r M S D - 1 . A l c a l l s t M i c r o p r o s e h a vO n l y t e s t e d o t h 1 5 4 1 a n n o a n y t h i n g e l s e . . . . W h a t g o e s ? A l o d i s k f r o m o t h e r c o m p a n i e s L o a d M S D - 1 . P r o g r a m s S a v e d o n d i s kI N D U S o M S D - 1 w o r k .

W h a v e t r i e d e v e r y t h i n g b u n o t

q u i c k b i o c o m p u t e r t r i v i a o p r o b l e m i p e r s p e c t i v e .

l o n g , l o n g , v e r y l o n g t i m e a g o , v e r y g o o d f r i e n d s , A b a n C u s .d u t d i f f i c u l t p r o b l e m A b a n b a s i s . I n t h e i r v i l l a g e , A b a n C uf i n e s t m a t h e m a t i c i a n s w i t h i n 1 t h t o w n s p e o p l e w o u l d o f t e n r e l yw h a t e v e r f i n a n c i a l m e s s t h e y f o u n p r e s e n t e d n p r o b l e m . T e f i n g e r ss u f f i c i e n t f o e v e n t h m o s t v e x i n gb e x p e c t e d w i t h a n s u c c e s s f u l s t o t a l o a n a t o m i c a l p a r t s w e r e i n s u t h A b a c u s .

A b a n C u b u i l d t h e f i r s t u n i t w

Page 20: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 20/84

A t i m e m o v e d a l o n g , A b a c u s w a d e l u g e d w i t h r e q u e s t s f o h e l p r e g a r d i n g A b a c u s c l o n e s . P r o b l e m s s u c h a b e a d s f a l l i n go f f , b e a d s s e i z i n g i p l a c e , i n s u f f i c i e n t o t o m a n y b e a d ss u p p l i e d a n d , o c o u r s e , n b e a d s , w e r e i g r e a t q u a n t i t y . I p e r f o r m i n g a m a r k e t s u r v e y , t h e y f o u n d t h a t 9 5 o t h e c l o n e sh a v e r y o b v i o u s s h o r t c o m i n g s , w i t h t h e b a l a n c e p r e s e n t i n gt h e m s e l v e s a p e r f e c t r e p l i c a s . B u A b a n C u h a b e e n i b u s i n e s s f o s m u c h l o n g e r t h a t e v e n t h s u t o t a l o a l t h c l o n e s a d d e d u t o n l y s m a l l p e r c e n t a g e o f t h n u m b e r o o r i g i n a l s t h e y s o l d . T h e y f o u n d t h e y c o u l d n o p o s s i b l y s p e n dt h t i m e c o v e r t i n g t h e i r A b a c u s w a r e t w o r k o a n y t h i n g b u t h e i r o w u n i t s . T h i r d p a r t y a b a c u s w a r e d e v e l o p e r s f e l t t h s a m e . I s o o n b e c a m e t h r e s p o n s i b i l i t y o t h c l o n e m a n u f a ct u r e r s t b m o r e c o m p a t i b l e . H o w e v e r , t h e y d e c i d e d n o t s i n c e t h e y c o u l d n ' t p o s s i b l y a n t i c i p a t e e v e r y e x c e p t i o n o u t s i d e" n o r m a l u s e " .

T h e m o r a l o t h i s s t o r y , a a s u r e A b a n C u w o u l d a g r e e ,i t h a t c l o n e m a s a v e y o u m o n e y , b u y o u h a v e t b p r e p a r e d t o l i v e w i t h t h p r o b l e m s o f u s i n g c o p y . T h I N D U S -G a n M S D - 1 d r i v e s a r c o m p a t i b l e w i t h t h e 1 5 4 1 i m a n yr e s p e c t s . I t r u t h , e a c h h a v e s u p e r i o r f e a t u r e s t t h e 1 5 4 1 . B u t h e y a r e n o t a b s o l u t e l y c o m p a t i b l e . I e a c h R O r o u t i n e w a t h s a m e , t h e n C o m m o d o r e w o u l d h a v e r e a l l y g o o d c h a n c eo w i n n i n g j u i c y l i t t l e l a w s u i t . B o t h m a n u f a c t u r e r s d i p r d u c e a l m o s t p e r f e c t c l o n e s , b u t h a l m o s t p e r f e c t i t h k i l l e r .D i s k p r o t e c t e d s o f t w a r e p a c k a g e s o f t e n r e l y o t e c h n i q u e s o fb y p a s s i n g t h D O S ' s I n t e r f a c e P r o c e s s o r a n w o r k i n g d i r e c t l yw i t h t h F l o p p y D i s k C o n t r o l l e r . A t h i s l e v e l o o p e r a t i o n ,a n y t h i n g i p o s s i b l e . g o o d c h a n c e e x i s t s t h a t q u i t e f e p a c k a g e s u s t h D O R O r o u t i n e s d i r e c t l y , a l o n g w i t hu t i l i z i n g l i t t l e k n o w n q u i r k s o t h e 1 5 4 1 .

M o n l y a d v i c e , a f a a s s o f t w a r e p a c k a g e s g o i t b c a r e f u la n h o p e t h a t e i t h e r t h s o f t w a r e o r h a r d w a r e m a n u f a c t u r e r sa r r e s p o n s i b l e e n o u g h t o l i s t e n t l e g i t i m a t e c o m p l a i n t s . O t h e rw i s e , b p r e p a r e d t t e a r d o w n t h o s e p r o g r a m s y o u r s e l f t f i n da n m o d i f y t h a t o n p i e c e o f n o n - p o r t a b l e c o d e t h a t s t a n d s i y o u r w a y .

A f a a d o c u m e n t a t i o n g o e s , t r t g e h o l d o w h a t e v e rC o m m o d o r e d r i v e u s e r s m a n u a l s y o u c a n f i n d . T h i s a n f e C o m m o d o r e D O b o o k s a n a r t i c l e s w i l l p r o b a b l y h e l p y o o u a m u c h a y o c a e x p e c t . I t h d r i v e s a r c l o n e s , C o m m o

T r a n s b l H i - R e s T e r m i n a l l y 1 1 1 : A f t e r r eM o r e O f t e n O o p s T h a n B l o o p s " o t o r , m o v e d o t t y p e i t h H I R E P r o j e c t o r p r o g r a m . I w o u l d n o w e r r o r , b u b e c a u s e o a o u t - o f - d a t

t r i p l e c h e c k e d a l t h d a t a s t a tc o u n t e d a l t h l i n e s . B u t h i s t i m e

F o r t u n a t e l y , h a v e c o p y o T h H I R E S w a f i r s t p u b l i s h e d . c o m p t h a t t h f i r s t 3 d a t a i t e m s a r m i s n u m b e r 5 1 2 3 3 i l i n e 1 0 5 0 s h o u c h e c k s u m n u m b e r i n l i n e 1 0 6 0 s h 2 4 5 , 7 2 7 .

a l s o d i s c o v e r e d t h a t y o u h a d f o r g t t h m a c h i n e l a n g u a g e p r o g r a mt h i s l i n e t H i r e s C r e a t e :

1 0 4 5 p r i n t # 8 , c h r

r a t h p r o g r a m a g a i n a n t h e nw o r k e d b e a u t i f u l l y . T h i s i g r e a tt h a n k y o f o p u b l i s h i n g i t

T o

S t r a n g e l y e n o u g h , i t o o k q u i t e w ht u t h a t H I R E S w a s s i c k t h a t i s s u w a o u ( m y ) f a u l t .

T t r a n s f o r m o b j e c t i n t o d a t a s t a u s o n o t w p r o g r a m s . T h f i r s tt r a n s f o r m a n o b j e c t i n t o c l e a ns e c o n d i t h s a m e w i t h s o m e h e a vm o d s p r o d u c e a D a t a l o a d e r t h a t Od i s k , t a k e s t h f i r s t t w d a t a e l e m b a l a n c e a t h o b j e c t . F r o m t h a t p ot b L o a d e d v i , 8 , 1 . T h p r o b l e mb e c a m e t e r m i n a l l y i l l . I s e e m e d t l i n e s . F o u r l i n e s e l e m e n t s p e e l e m e n t s w e r e t h s t a r t a d d r e s s , t h

Page 21: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 21/84

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

N S c a r b o

T h T r a n s B A S I C D i s k

S i n c e t h T r a n s B A S I C m o d u l e s p u b l i s h e d s f a a r c o n s u m i n g s m u c h s p a c e o e a c h T r a n s a c t o r D i s k , w h a v e d e c i d e d t p r o d u c eT h e T r a n s B A S I C D i s k . S t a r t i n g w i t h t h i s i s s u e , o n l y t h m o d u l e sp u b l i s h e d i e a c h i s s u e w i l l b o n T h e T r a n s a c t o r D i s k . T h o t h e r s ,p l u s s e v e r a l t h a t h a v e n o y e b e e n p u b l i s h e d , w i l l r e s i d e o n T h eT r a n s B A S I C D i s k , w h i c h c o n t a i n s a l m o s t 5 0 b l o c k s o f s o u r c ec o d e . I n c l u d e d i m a n u a l s h o w i n g e a c h c o m m a n d f r o m e v e r ym o d u l e w i t h s h o r t e x a m p l e s . M o r e c o m p l e t e d o c u m e n t a t i o n f o c o m m a n d c a n a l w a y s b f o u n d i T r a n s a c t o r b a c k i s s u e , s h o u l dy o u n e e d i t O t h e r w i s e y o s i m p l y r u * a n s t a r t a d d i n gc o m m a n d s

A f t e r s e l e c t i n g c o m m a n d s f r o m t h l i b r a r y t h e y n e e d t b a s s e mb l e d w i t h P A L . U n t i l n o w ! S Y M A S S 3 i m a c h i n e l a n g u a g ea s s e m b l e r t h a t i c o m p a t i b l e w i t h P A f o r m a t s o u r c e c o d e , a n i w i l l b o n T h e T r a n s B A S I C D i s k ! ( I w i l l a l s o b p u b l i s h e d i t h n e x t T r a n s a c t o r , w i t h a s s e m b l e r - d e s i g n t h e o r y a n c o m p l e t e i n t r u c t i o n s ) S Y M A S S 3 . i n o c o m p a t i b l e w i t h a l o P A L ' s e x o t i cf e a t u r e s , a n a l t h o u g h i w i l l a s s e m b l e m o s t a n p r o g r a m , i i n o a " d e v e l o p m e n t " p a c k a g e . S Y M A S S d o e s n o p r i n t l i s t i n g s a n s e n d s o b j e c t c o d e t m e m o r y o n l y . S i y o u ' r e w r i t i n g c o d e , P A L ' se r r o r c h e c k i n g a n e l a b o r a t e p s e u d o - o p s a r s t i l l t h e i d e a l a p r o a c h , b u t f o a s s e m b l i n g T r a n s B A S I C m o d u l e s , S Y M A S S 3 . i p e r f e c t !

T h T r a n s B A S I C D i s k w i t h S Y M A S S 3 . i j u s t $ 9 . 9 5 . S e N e w sB R t h i s i s s u e f o r m o r e , o r u s e o u r p o s t a g e p a i d o r d e r c a r d a c e n t e r p a g e .

T r a n s B A S I C P a r t s t S u m m a r y :

P a r t 1 T h c o n c e p t o T r a n s B A S I C c u s t o m c o m m a n d u t i l i t yt h a t a l l o w s o n t c h o o s e f r o m l i b r a r y o n l y t h o s e c o m m a n d s t h a ta r n e c e s s a r y f o p a r t i c u l a r t a s k .

P a r t 2 T h s t r u c t u r e o T r a n s B A S I C m o d u l e e a c h T r a n s B A S I Cm o d u l e f o l l o w s f o r m a t d e s i g n e d t m a k e t h e m s i m p l e t c r e a t e

P a r t 6 T h U S C o m m a n d T T r a n s B A S I C m o d u l e s i n t o t e x t s p a c e a r A D D e d , m e r g i n g g e t s s l o w . T h s p e e d t h i n g s u p U S a l s o c o u n t s t h u p d a t e s l i n e 9 a u t o m a t i c a l l y .

P a r t 7 T h e T r a n s B A S I C k e r n e l u s e sS h o u l d t w o o m o r e m o d u l e s a t tp o t e n t i a l c r a s h s i t u a t i o n e x i s t s . P a rs i t u a t i o n .

T r a n s B A S I C P a r t

O u f i r s t m o d u l e t h i s i s s u e ( P r o g r a mb J o e l M R u b i n o S a F r a n c i s c o , Cs t a t e m e n t , a l s o c a l l e d O L D . L i k e t h o o t h e r u t i l i t i e s , O L r e s t o r e s B A S t h r o u g h i n a d v e r t e n t u s o t h N E m o r e m o d u l e s a p p e a r i n g i f u t u r e i

T h s e c o n d m o d u l e i I N P N I Nc o n t r o l l e d i n p u t o e i t h e r n u m e r i c ( c h a r a c t e r s . T h i s o n i b W a y n eY o r k ( w h o a l s o w r o t e t h S E L E C TW a y n e n o t e s t h a t i w o u l d b e e a s yt h a t s c r e e n s t h i n p u t c h a r a c t e r s , i i t h i s p u b l i s h e d v e r s i o n d n o e x a r e q u i r e m e n t s . T h i s m o d u l e a l s o m a m o d u l e ( s e e b e l o w ) , s i y o u ' r e t y c o d e i d u p l i c a t e d , a n t h e r e ' s n o nw i l l i n g d l i t t l e j u g g l i n g .

S E L E C T ( P r o g r a m 3 i a s h o r t b u v i d e s s t r u c t u r e n o u n l i k e t h S W I Ts t r u c t u r e o f P a s c a l . S E L E C T i n o cb e i n g B A S I C , a f t e r a l b u i s i n s t a n c e s w h e r e a n u n w i e l d y s e r i e s o n l y a l t e r n a t i v e . T h S E L E C T s t r u c e n d s w i t h E N D S E L E C T , w i t h a s t a t e m e n t s a n a o p t i o n a l O T H E R

Page 22: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 22/84

y o h a v e t h c h o i c e o f o u r c o l o u r s i e a c h l o w - r e s p i x e l ( b m u l t i c o l o u r p i x e l s ) , r a t h e r t h a n t h t w c o l o u r s a l l o w e d i r e g u l a rh i - r e s ( t h o u g h o n o t h e f o u r i t h b a c k g r o u n d c o l o u r , c o m m o nt t h w h o l e s c r e e n ) . T h d r a w b a c k o m u l t i c o l o u r i l o s s o fr e s o l u t i o n y o g e 1 6 b 2 0 p i x e l s c r e e n i n s t e a d o t h 3 2 b 2 0 p i x e l s o r e g u l a r h i - r e s . H o w e v e r , t h i s i s s t i l l e n o u g h t a l l o wg o o d d e t a i l .

O n p r o b l e m w i t h p r o g r a m s t h a t r u i g r a p h i c s m o d e s o t h e r t h a nt h d e f a u l t t e x t m o d e i t h a t s y n t a x o o t h e r e r r o r c a l e a v e y o w i t h m e s s o n y o u r s c r e e n a n d n o o b v i o u s w a t g e o u o i t T g e a r o u n d t h i s , t h M G R A P H I C S m o d u l e r e r o u t e s t h e e r r o rv e c t o r w h e n t h e h i - r e s s c r e e n i t u r n e d o n a n r e t u r n s t h e s c r e e nt n o r m a l b e f o r e h a n d l i n g t h e r r o r . T h e r r o r t r a p i d e a c t i v a t e dw h e n t h e h i - r e s i s w i t c h e d o f f . T h i s w i l l n o r m a l l y i n t r o d u c e n a d d i t i o n a l p r o b l e m s , b u i y o u w a n t t i n t e r c e p t t h e e r r o r v e c t o rf o y o u r o w p u r p o s e s , b s u r e t d s o n l y w h e n t h m u l t i c o l o u ri o f f . B t h w a y , i y o h a p p e n t b w r i t i n g h i - r e s m o d u l e sy o u r s e l f , w h e t h e r m u l t i c o l o u r o n o t , i w o u l d b g o o d i d e a t u s t h s a m e e r r o r - t r a p p i n g p r o c e d u r e , o e v e n t h s a m e r o u t i n e s , a t h o s e e m p l o y e d b M G R A P H I C S .

F i n a l l y t h i s m o n t h w h a v e I N L I N E ( P r o g r a m 5 ) v a r i a n t o B A S I C ' S I N P U T c o m m a n d t h a t d o e s a w a y w i t h t h q u e s t i o n - m a r kp r o m p t a n d a l s o a l l o w s a l p u n c t u a t i o n m a r k c h a r a c t e r s t b i n p u t . T h i s o n e w o r k s o n l y f r o m t h k e y b o a r d m a y b e i f u t u r ei s s u e w e ' l l r u s e q u e l t h a t d o e s t h s a m e t h i n g f o r e a d i n g f r o mf i l e s .

N e w C o m m a n d sI N L I N E ( T y p e : S t a t e m e n t C a * 0 3 0 )L i n e R a n g e : 3 4 5 4 - 3 5 2 8M o d u l e : I N L I N EE x a m p l e : I N L I N E S A S O M E T H I N G : ; A I d e n t i c a l i s y n t a x a n o p e r a t i o n t t h e r e g u l a r I N P U T s t a t e m e n te x c e p t t h a t : t h q u e s t i o n m a r k p r o m p t i n o t g i v e n ; o n l y o n v a r i a b l e m a b i n p u t a n t h a t m u s t b s t r i n g v a r i a b l e ; c o m m a s ,c o l o n s a n s e m i c o l o n s a r a c c e p t e d a i n p u t .

O L ( T y p e : S t a t e m e n t C a # 1 4 2 )L i n e R a n g e : 1 0 1 9 0 - 1 0 2 1 6M o d u l e : O L E x a m p l e : O L T h i s c o m m a n d w i l l r e s t o r e a B A S I C p r o g r a m i m e m o r y a f t e rN E h a a c c i d e n t a l l y b e e n g i v e n o t h c o m p u t e r h a b e e n r e s e t( i t h l a t t e r c a s e , y o w i l l h a v e t f i r s t r e s e t T r a n s B A S I C w i t h S Y 4 9 1 5 5 o P O K E 4 9 1 5 2 , 9 6 , t h e n r e - e n a b l e i w i t h S Y 4 9 1 5 2 ) . T h

I N P A ( T y p e : S t a t e m e n t C a * 1 L i n e R a n g e : 1 0 2 1 8 - 1 0 3 8 6M o d u l e : I N P N I N P AE x a m p l e : I N P A " Y O U R N A M E :T h i s i c o n t r o l l e d i n p u t c o m m c h a r a c t e r s , u p p e r a n l o w e r c a s et i o n ( s p a c e , p e r i o d , p l u s , m i n u s ,r a n g e 5 8 t h r o u g h 6 4 ) . T h c o l o n5 9 a r a c c e p t e d a i n p u t l i k e o t h T h c u r s o r i n o n - f l a s h i n g u nl o w e d c o n t r o l c h a r a c t e r s a r D a u t o m a t i c q u e s t i o n m a r k p r o m p t ;e x a m p l e ) i o p t i o n a l . T h v a r i a b l

S E L E C T ( T y p e : S t a t e m e n t C a L i n e R a n g e : 1 0 3 8 8 - 1 0 4 1 0M o d u l e : S E L E C TE x a m p l e : S E L E C TE x a m p l e : S E L E C T A ( 3 ) - 1T h i s s t a t e m e n t b e g i n s t h S E L E g i v e n ( f i r s t e x a m p l e ) , t h e s t r u c t u r

p a r a m e t e r i p r e s e n t ( s e c o n d e xm o d e . F o f u r t h e r d e t a i l s s e e t h ( 1 4 6 ) .

W H E N ( T y p e : S t a t e m e n t C a t * :L i n e R a n g e : 1 0 4 1 2 - 1 0 4 4 6M o d u l e : S E L E C TE x a m p l e : W H E N P R I N TE x a m p l e : W H E N P R I N T C A T h i s s t a t e m e n t i p a r t o t h S E L ET h f i r s t e x a m p l e i l l u s t r a t e s t h l o g i c a l m o d e : t h W H E N i f o l l o wa i t h I s t a t e m e n t , c o n t r o l sp r o g r a m l i n e i e x e c u t e d . T h s y n t a x o t h c o m p a r i s o n m o d e e x p r e s s i o n w h o s e r e s u l t i c o m p a s i o n a c c o m p a n y i n g t h S E L E C Tt h l i n e i e x e c u t e d i t h t w v a e x p r e s s i o n i s u c c e s s f u l ( a n d t h ul i n e i e x e c u t e d ) , t h e S E L E C T s t r s t a t e m e n t s a n O T H E R W I S E ( * 1 4

O T H E R W I S E ( T y p e : S t a t e m e n t L i n e R a n g e : 1 0 4 4 8 - 1 0 4 5 8M o d u l e : S E L E C TE x a m p l e : O T H E R W I S E P R I N TT h O T H E R W I S E s t a t e m e n t i

Page 23: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 23/84

H C L R ( T y p e : S t a t e m e n t C a * 1 4 9 )L i n e R a n g e : 1 1 1 0 6 - 1 1 1 3 4M o d u l e : M G R A P H I C SE x a m p l e : H C L RT h i s s t a t e m e n t c l e a r s t h h i g h - r e s o l u t i o n s c r e e n a a d d r e s s$ E 0 0 0 - $ F F F F b f i l l i n g t h a t a r e a o m e m o r y w i t h z e r o b y t e s .

M C O N ( T y p e : S t a t e m e n t C a " 1 5 0 )L i n e R a n g e : 1 1 0 6 8 - 1 1 1 0 4M o d u l e : M G R A P H I C SE x a m p l e : M C O NT h i s s t a t e m e n t e n a b l e s t h m u l t i c o l o u r h i - r e s s c r e e n a a d d r e s s$ E 0 0 0 , w i t h v i d e o m a t r i x a $ D 8 0 0 . C u r r e n t v a l u e s o b a c k g r o u n dc o l o u r , t e x t c o l o u r a n c h a r a c t e r s e l o c a t i o n a r e s a v e d , t b r e s t o r e d l a t e r w i t h t h H O F F ( * 1 5 1 ) c o m m a n d .

H O F F ( T y p e : S t a t e m e n t C a t * : 1 5 1 )L i n e R a n g e : 1 1 1 5 4 - 1 1 1 9 8M o d u l e : M G R A P H I C SE x a m p l e : H O F FT h i s s t a t e m e n t d i s a b l e s h i - r e s a n m u l t i c o l o u r m o d e s , s e t s t h v i d e o m a t r i x ( l o w - r e s s c r e e n ) t i t u s u a l l o c a t i o n o $ 0 4 0 0 , a n r e s t o r e s p r e v i o u s l o w - r e s v a l u e s o b a c k g r o u n d c o l o u r , t e x t c o l o u ra n c h a r a c t e r s e l o c a t i o n , a s a v e d w i t h t h M C O N ( # 1 5 0 ) c o m a n d .

M S E T ( T y p e : S t a t e m e n t C a * 1 5 2 )L i n e R a n g e : 1 0 7 4 6 - 1 0 7 6 2M o d u l e : M G R A P H I C SE x a m p l e : M S E T 1 0 0 , 3 0 , 2T h i s s t a t e m e n t s e t s t h s p e c i f i e d s c r e e n l o c a t i o n ( i t h e x a m p l ex = 0 0 3 0 t t h s p e c i f i e d c o l o u r . T h c o l o u r i t h e x a m p l e i n u m b e r 2 a s e t i n t h M C O L O R c o m m a n d ( " 1 5 9 ) .

M T E X T ( T y p e : S t a t e m e n t C a * 1 5 3 )L i n e R a n g e : 1 1 7 8 4 - 1 1 9 9 6M o d u l e : M G R A P H I C SE x a m p l e : M T E X T 1 0 , 4 0 , 1 , 2 , 3 , " H E L L O "T h i s c o m m a n d w r i t e s t h g i v e n s t r i n g , i a s p e c i f i e d c o l o u r , t l o c a t i o n o t h m u l t i c o l o u r h i g h - r e s s c r e e n . T h t e x t m a b m a g n i f i e d b y a n i n t e g e r f a c t o r i b o t h t h a n d i m e n s i o n s ( n m a g n i f i c a t i o n r e s u l t s i a c h a r a c t e r s i z e o f b 8 m u l t i c o l o u rp i x e l s ) . T h o r d e r o p a r a m e t e r s i s l o c a t i o n , l o c a t i o n ,m a g n i f i c a t i o n , m a g n i f i c a t i o n , c o l o u r a n t h s t r i n g t b p r i n t e d .T h c h a r a c t e r s h a p e s a r d r a w n f r o m t h U p p e r C a s e / G r a p h i c sR O c h a r a c t e r s e t . T h e x a m p l e p r i n t s t h t e x t H E L L O " a c o o r d i n a t e s x 1 0 4 0 w i t h n m a g n i f i c a t i o n i t h d i m e n

m a g n i f i c a t i o n , m a g n i f i c a t i o n a n c i r c l e o f r a d i u s 5 a c o o r d i n a t e st i o n i e i t h e r t h o d i m e n s i o n s M C O L O R c o m m a n d ( * 1 5 9 ) .

M D I S C ( T y p e : S t a t e m e n t C a * 1 5 L i n e R a n g e : 1 1 3 5 6 - 1 1 7 8 2M o d u l e : M G R A P H I C SE x a m p l e : M D I S C 8 0 , 1 0 0 , 6 0 , 1 , . 8 , 1T h i s c o m m a n d i i d e n t i c a l t M C Ic i r c l e i f i l l e d i n s t e a d o b e i n g d r a w n

M R E C T ( T y p e : S t a t e m e n t C a t * : 1 L i n e R a n g e : 1 1 2 7 0 - 1 1 3 1 8M o d u l e : M G R A P H I C SE x a m p l e : M R E C T 3 0 , 4 0 , 5 0 , 1 5 , 1T h i s s t a t e m e n t d r a w s r e c t a n g l e s t w d i a g o n a l l y o p p o s i t e c o m e r s , i m a t t e r w h i c h c o r n e r s a r s p e c i f i e d . T w h o s e l o w e r l e f t c o r n e r i a 3 0 c o r n e r i a 5 0 y 1 5 u s i n g c o c o m m a n d ( * 1 5 9 ) .

M B O X ( T y p e : S t a t e m e n t C a # 1 5 7L i n e R a n g e : 1 1 3 2 0 - 1 1 3 5 4M o d u l e : M G R A P H I C SE x a m p l e : M B O X X 1 . Y 1 , X 2 , Y 2 , CT h i s c o m m a n d i i d e n t i c a l t M R r e c t a n g l e i f i l l e d i n s t e a d o b e i n g d

M D R A W ( T y p e : S t a t e m e n t C a # L i n e R a n g e : 1 0 4 7 2 - 1 0 6 2 6M o d u l e : M G R A P H I C SE x a m p l e : M D R A W 1 3 , 1 1 1 , 7 7 , 9 9 , 0T h i s c o m m a n d d r a w s l i n e b e t w ec o l o u r . T h e x a m p l e d r a w s l i n e

9 9 i t h b a c k g r o u n d c o l o u r a ( * 1 5 9 ) .

M C O L O R ( T y p e : S t a t e m e n t C a * L i n e R a n g e : 1 0 9 5 4 - 1 1 0 6 6M o d u l e : M G R A P H I C SE x a m p l e : M C O L O R 1 0 , 1 0 , 2 5 , 2 0 , 0 T h i s c o m m a n d s e t s t h f o u r c o l o u r p a l e t t e f o a s p e c i f i e d s c r e e n r e g i o no r d i n a t e s ( t 3 9 t 2 4 o c o r n e r s . T h e x a m p l e s e t s c o l o u r

Page 24: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 24/84

M o d u l e s S F a T r a n s B A S I C M o d u l e s t h a t h a v e a p p e a r e d s f a ( I n s t a l m e n t s t

T r a n s B A S I C # T B / K E R N E LS t a t e m e n t s : F u n c t i o n s : 0 K e y w o r d C h a r a c t e r s :0 0 S / I F M o d i f i e d I t w o r k w i t h T r a n s B A S I C0 0 S / E L S E P a r t o I F - E L S E c o n s t r u c t0 0 S / E X 1 T D i s a b l e c u r r e n t T r a n s B A S I C d i a l e c t

S C R E E N T H I N G SS t a t e m e n t s : F u n c t i o n s : 0 K e y w o r d C h a r a c t e r s : 2 20 1 3 S / G R O U N D S e b a c k g r o u n d c o l o u r0 1 4 S / F R A M E S e b o r d e r c o l o u r0 1 5 S / T E X T S e t e x t c o l o u r0 1 S / C R A M F i l l c o l o u r m e m o r y w i t h v a l u e0 1 S / C L S C l e a r s c r e e n , o s c r e e n l i n e r a n g e

T r a n s B A S I C # D O K E D E E KS t a t e m e n t s : F u n c t i o n s : K e y w o r d C h a r a c t e r s : 90 0 7 S / D O K E0 0 F / D E E K (

P o k e 1 6 - b i t v a l u eP e e k a 1 6 - b i t v a l u e

B I T W I D D L E R SS t a t e m e n t s : F u n c t i o n s : K e y w o r d C h a r a c t e r s : 1 0 0 S / S E T0 1 0 S / C L E A R0 1 S / F L I P

S e t s p e c i f i e d b i t a t a d d r e s sC l e a r s p e c i f i e d b i a a d d r e s sF l i p s p e c i f i e d b i a a d d r e s s

C H E C K A W A I TS t a t e m e n t s : 0 F u n c t i o n s : K e y w o r d C h a r a c t e r s : 1 20 1 F / C H E C K ( C h e c k k e y b o a r d f o v a l i d c h a r a c t e r0 1 F / A W A 1 T ( W a i t f o v a l i d c h a r a c t e r f r o m k e y b o a r d

K E Y W O R D SS t a t e m e n t s : F u n c t i o n s : K e y w o r d C h a r a c t e r s : 8

S E S P R I T E SS t a t e m e n t s : F u n c t i o n s : 0 K e y w 0 3 S / C O L S P R S e c o l o u r o f s 0 3 2 S / S S P R T u r n o n s p r i 0 3 S / C S P R T u r n o f s p r i 0 3 S / X S P R M o v e s p r i t e t 0 3 S / Y S P R M o v e s p r i t e t o0 3 S / X Y S P R M o v e s p r i t e t

W I T H I NS t a t e m e n t s : F u n c t i o n s : K e y w 0 4 F / W I T H I N ( R e t u r n t r u e i

R E A D S P R I T E SS t a t e m e n t s : F u n c t i o n s : K e y w 0 4 F / X L O C ( R e t u r n x - p o s i 0 4 F / Y L O C ( R e t u r n y - p o s i

T r a n s B S T R I P C L E A NS t a t e m e n t s : F u n c t i o n s : K e y w 0 4 5 F / S T R I P $ ( R e m o v e n o n - 0 4 F / C L E A N $ ( R e m o v e n o n

s t r i n g

S C R O L L SS t a t e m e n t s : F u n c t i o n s : K e y w 0 6 S / U S C R O L0 6 8 S / D S C R O L0 6 S / L S C R O L0 7 S / R S C R O L

S c r o l l s c r e e nS c r o l l s c r e e n S c r o l l s c r e e nS c r o l l s c r e e n

Page 25: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 25/84

T O K E N V A S t a t e m e n t s : 0 F u n c t i o n s : K e y w o r d C h a r a c t e r s : 1 0 7 F / T O K E N $ ( R e t u r n t o k e n i z e d v e r s i o n o a r g u m e n t s t r i n g0 7 F / V A R (

I N S T R I N GS t a t e m e n t s : 00 8 0 F / I N S T R (

P L A C ES t a t e m e n t s :0 8 F / P L A C E (

R e t u r n a d d r e s s o d a t a o n a m e d v a r i a b l e

F u n c t i o n s : K e y w o r d C h a r a c t e r s : 6S e a r c h s t r i n g f o s t r i n g 2 B o o l e a n o p t i o n s

F u n c t i o n s : K e y w o r d C h a r a c t e r s : 6S e a r c h s t r i n g f o s t r i n g f r o m s p e c i f i e d p o s it i o n

A R C F U N C T I O N SS t a t e m e n t s :0 8 2 F / A S N (0 8 3 F / A C S (

P R I N T A TS t a t e m e n t s :0 8 4 S / P R I N T < 3

F u n c t i o n s : 2 K e y w o r d C h a r a c t e r s : 8R e t u r n a r c s i n e o a r g u m e n tR e t u r n a r c c o s i n e o a r g u m e n t

F u n c t i o n s : 0 K e y w o r d C h a r a c t e r s : 6P r i n t a s p e c i f i e d c u r s o r p o s i t i o n

S O U N D T H I N G SS t a t e m e n t s : 2 0 8 S / C L E S I D0 8 6 S / F R E Q0 8 7 S / P U W 1 D0 8 8 S / F I F R E Q0 8 S / A D P U L0 9 S / A D S A W0 9 S / A D T R 10 9 S / N O W A V0 9 S / N O 10 9 S / P U L0 9 S / S A W0 9 S / T R I0 9 S / T E S T0 9 8 S / R I N G0 9 S / S Y N C1 0 0 S / G A T E1 0 S / A T T

F u n c t i o n s : 4 K e y w o r d C h a r a c t e r s : 1 2 C l e a r S I c h i pS e S I v o i c e f r e q u e n c yS e p u l s e w i d t hS e f i l t e r c u t o f f f r e q u e n c yA d p u l s e t w a v e f o r mA d s a w t o o t h t w a v e f o r mA d t r i a n g l e t w a v e f o r mC l e a r w a v e f o r m r e g i s t e rS e n o i s e w a v e f o r mS e p u l s e w a v e f o r mS e s a w t o o t h w a v e f o r mS e t r i a n g l e w a v e f o r mS e t / c l e a r w a v e f o r m r e g i s t e r t e s t b i tS e t / c l e a r r i n g m o d u l a t i o nS e t / c l e a r s y n c h r o n i z a t i o nS e t / c l e a r g a t e b i S e t a t t a c k

U S S t a t e m e n t s :1 1 7 S / U S E

T r a n s B A S

F u n c t i o n s : K e y w o r F a s t - m e r g e p r o g

M O V E F I L LS t a t e m e n t s :1 1 8 S / M O V E1 1 S / F I L L

F u n c t i o n s : 0 K e y w o r M o v e a r e a o m e F i l l a r e a o m e m o

D O S U P P O R TS t a t e m e n t s :1 2 3 S / C A T1 2 4 S / D O S1 2 5 S / D E V1 2 6 S / D L O A D1 2 7 S / D S A V E1 2 8 F / D S S1 2 9 F / D S

L I N E C A L CS t a t e m e n t s :1 3 0 S / J U M P1 3 S / C A L L1 3 2 F / L 1 N E (

B E E PS t a t e m e n t s :1 3 3 S / B E E P

R A N D O MS t a t e m e n t s :

F u n c t i o n s : K e y w o r L i s t d i r e c t o r y t S e n d c o m m a n dS e t d e f a u l t d i s kL o a d p r o g r a m f rS a v e p r o g r a m t R e t u r n d i s k e r r o R e t u r n d i s k e r r o

F u n c t i o n s : K e y w o r G o t o p r o g r a m l i C a l l s u b r o u t i n eD e t e r m i n e a d d r e

F u n c t i o n s : K e y w o r P r o d u c e b e e p

T r a n s B A S

F u n c t i o n s : K e y w o r 0 2 F / R A N D O M ( R e t u r n r a n d o m

P H R A S E S P L I T T E R SS t a t e m e n t s :0 2 F / F 1 R S T $ (0 2 F / B F $

F u n c t i o n s : K e y w o r R e t u r n f i r s t w o r dR e t u r n a l b u f i r

Page 26: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 26/84

I F A

H D J N J

M p p

O O F C D D J J J O A D N I

D N O

O F D H

1 J N B D N P r P

M B B F

r e

r e

r e 5 r e r e

8 r a c i i

1 0

P r o g r a m 1

o l ( j r u b i n , s e p t / 8 5 )

O L

s t a t e m e n t , f u n c t i o n s

< e y w o r d c h a r a c t e r s :

k e y w o r d r o u t i n es / o l d o

1 4 . a s c " o l D "1 4 4 11 0 1 9 01 0 1 9 21 0 1 9 41 0 1 9 61 0 1 9 81 0 2 0 01 0 2 0 21 0 2 0 41 0 2 0 61 0 2 0 81 0 2 1 01 0 2 1 21 0 2 1 41 0 2 1 6

r e

r e 3

r e 5

r e r e r e

9 r p

w o r d o l — 1o I d #

t y s t ( 4 3 ) , yj s $ a 5 3 3c l I d $ 2 a d # s t 4 I d $ 2 a d c # 0s t 4 j s $ a 6 6 0j m $ e 3 8 6

l i n e s e 1 0 1 9 0 1 4 2

; m a k e f i r s t l i n e h l i n k n o n - 0

; r e l i n k p r o g r a m; ( $ 2 2 ) p o i n t s

b y t e p a s t e n o p r o g r a m , a d 2 a n w r i t e t s t a r t o f v a r s

; c l rr e a d y

P r o g r a m 2 I N P A

i n p a & i n p n ( w . h a p p 1 9 8 5 )

s t a t e m e n t s , f u n c t i o n s

k e y w o r d c h a r a c t e r s :

k e y w o r d r o u t i n es / i n p a n p s / i n p n n p

* I I C

1 1 4 . a s c i n p A i n p N1 4 4 23 4 7 83 4 8 0

w o r d n p a - 1 , n p n - 1n l j s $ a d 8 f

s t $ 4

l i n e s e r #1 0 2 1 8 1 4 1 0 2 2 4 1 4

F C D

I N N C C O G A F v _

O A C B F A K K

N K E E

G L I

K B B

C H O P F A H B G F

C J J N L J

I L E G

3 5 1 23 5 1 43 5 1 63 5 1 83 5 2 03 5 2 23 5 2 43 5 2 63 5 2 8 ;1 0 2 1 8 n p a1 0 2 2 01 0 2 2 2 ;1 0 2 2 4 n p n1 0 2 2 61 0 2 2 81 0 2 3 01 0 2 3 21 0 2 3 4 n p 1 0 2 3 61 0 2 3 81 0 2 4 01 0 2 4 21 0 2 4 41 0 2 4 6 n p 21 0 2 4 81 0 2 5 01 0 2 5 21 0 2 5 41 0 2 5 61 0 2 5 8 n p 31 0 2 6 01 0 2 6 2 n p 1 0 2 6 41 0 2 6 61 0 2 6 81 0 2 7 01 0 2 7 21 0 2 7 41 0 2 7 61 0 2 7 81 0 2 8 01 0 2 8 21 0 2 8 41 0 P R 6K c . k J \ J1 0 2 8 81 0 2 9 01 0 2 9 21 0 2 9 41 0 2 9 6

j s $ b 4 8 dj s $ b 7 e 2j s $ a 9 d aI d $ 4 I d $ 4 s t $ 7 s t $ 7 r t

I d # " [ ". b y t e $ 2 c

I d # " : "s t t j s $ 7 b n n p j m $ a f O 8c m # $ 2 2b n n p j s $ a e b dI d # " ; "j s $ a e f fj s $ a b 2 1j s $ b 3 a 6I d # " , "s t $ 0 f I d # s t t s t $ 1 I d # $ a 4j s $ f f d 2j s $ f f e 4c m p # $ 0 db e q n p 8c m p # $ 1 4b e q n p 7c m # $ 2 0b e q n p 6c m # " . "b e q n p 6c m # b e q n p 6c m p # " - "b e n p I d t c p # [ b n n p c m p # " A "b c n p

Page 27: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 27/84

H N D D J

I

G J J A F

J K F C M L A

P K J C

B 0 I

A H F I I

J F J H C J N B M E F P K \ L

B B

1 0 3 2 81 0 3 3 01 0 3 3 21 0 3 3 41 0 3 3 61 0 3 3 81 0 3 4 01 0 3 4 21 0 3 4 41 0 3 4 61 0 3 4 81 0 3 5 01 0 3 5 21 0 3 5 41 0 3 5 61 0 3 5 81 0 3 6 01 0 3 6 21 0 3 6 41 0 3 6 61 0 3 6 81 0 3 7 01 0 3 7 21 0 3 7 41 0 3 7 61 0 3 7 81 0 3 8 01 0 3 8 21 0 3 8 41 0 3 8 6

r e

r e 3

r e 5

r e r e r e r e 1 r e

1 r p C C

1 3

s t i n b n

n p I d b e j s j s d e b p

n p I d j s I d j s s t s t I d b n i m

n p j s p h j s b e j m

n p 1 0 p l I d c p b n j m

n p 1 1 j m

$ 0 2 0 0 ,t n p t n p $ f f d 2$ f f d 2t n p # $ 1 4$ f f d 2t $ a a c a$ 4 $ 4 t n p $ a b f 3$ b O 8 b

$ 7 n p 1 0$ a f O 8

t # " [ "n p 1 1i n l 2$ a c 1 8

; c h a r t b u f f e r; b u m p i n d e x; g e t a n o t h e r c h a r; t e s t i n d e x

n ; d e l e t e c u r s o r; d e l e t e c h a r a c t e r; b a c k u i n d e x; h a n d l e n e x t i n p u t; d e l e t e c u r s o r

; g e t b u f f e r i n d e x; p r i n t c ; $ f t i n p u t p t

; t e s t i n p u t n u l ln

; n a s s i g n m e n t; f i n d v a r i a b l e

; t e s t e n o l i n e; y e s; ' s y n t a x '

; t e s t a l p h a

n ; e n t e r i n l i n e r t ; e n t e r r o i n p u t

P r o g r a m 3 S E L E C T

s e l e c t ( w a y n e h a p p ,

s t a t e m e n t s

1 9 8 5 )

f u n c t i o n s

c e y w o r d c h a r a c t e r s :

k e y w o r ds / s e l e c ts / w h e n; / o t h e r w i s e

s / e n d s e l e c

2

r o u t i n e l i n e s e s e w h o t w n

1 4 . a s c s e l e c T w h e N

1 0 3 8 8 1 4 1 0 4 1 2 1 4 1 0 4 4 8 1 4 1 0 4 3 8 1 4

P D

E H O

J C P O O O M J F

O H

I E P

G K L K A P E F I

L M

D a r r e n ' s

1 0 4 1 2 w h n1 0 4 1 41 0 4 1 61 0 4 1 81 0 4 2 01 0 4 2 21 0 4 2 41 0 4 2 61 0 4 2 8 w n 11 0 4 3 0 w n 21 0 4 3 21 0 4 3 41 0 4 3 61 0 4 3 8 w n 31 0 4 4 01 0 4 4 21 0 4 4 41 0 4 4 61 0 4 4 8 o t 1 0 4 5 01 0 4 5 21 0 4 5 41 0 4 5 6 o t 1 0 4 5 8 ;1 0 4 6 0 s f l g i1 0 4 6 2 ;1 0 4 6 4 s f l g 21 0 4 6 6 ;1 0 4 6 8 s e l t s t1 0 4 7 0 ;

b e j s I d b e I d b n I d b n j m I d I d j s b n I d s t j s j m

b e I d b n b e j m

o t h 1$ a d 8 as f l g iw n s f l g 2w n $ 6 w n $ a 9 3 b# < s e l t s# > s e l t s$ b c 5 bw n # s f l g i$ 7 $ a 9 4 0

o t h 1s f l g iw n w n $ a f O 8

. b y t e O

. b y t e

P r o g r a m

d o n e i a g a i n !

I M G

i * h i s n e x t T s o u r c e c o d e o T r a n s a c t o rr e f e r e n c e , b u w d i d n ' t

D i s k * 1i n c l u d e t h

i m a g i n e a n y o n e a c t u a l l y t y p i n g i i n e

r e m g r a p h i c s ( d s p r u y t , 1 9 8 5 )

r e 1 s t a t e m e n t s , f u n c t i o n3

r e m k e y w o r d c h a r a c t e r s : 5 5

r e m k e y w o r d r o u t i n e l i n er e m s / m c o nr e s / m s e tr e s / h o f f

h 1 1 0 6 8m e s e t 1 0 7 4 6m c r s t r 1 1 1 5 4

1 r e m s / m d r a w m e d r a 1 0 4 7 21 r e s / m r e c1 r e m s / m c

m c r e c 1 1 2 7 0; l m c c r 1 1 3 6 2

s e r #1 4 I S 1 5 1 5 1 5 1 5

Page 28: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 28/84

1 0 5 3 61 0 5 3 81 0 5 4 01 0 5 4 21 0 5 4 41 0 5 4 61 0 5 4 81 0 5 5 01 0 5 5 21 0 5 5 41 0 5 5 61 0 5 5 81 0 5 6 01 0 5 6 21 0 5 6 41 0 5 6 61 0 5 6 81 0 5 7 01 0 5 7 21 0 5 7 41 0 5 7 61 0 5 7 8 m d r 51 0 5 8 01 0 5 8 21 0 5 8 41 0 5 8 61 0 5 8 81 0 5 9 01 0 5 9 21 0 5 9 41 0 5 9 61 0 5 9 81 0 6 0 01 0 6 0 21 0 6 0 41 0 6 0 61 0 6 0 81 0 6 1 01 0 6 1 21 0 6 1 41 0 6 1 61 0 6 1 81 0 6 2 01 0 6 2 21 0 6 2 41 0 6 2 6 ;1 0 6 2 8 m c p l o1 0 6 3 01 0 6 3 21 0 6 3 41 0 6 3 61 0 6 3 81 0 6 4 01 0 6 4 21 0 6 4 41 0 6 4 61 0 6 4 81 0 6 5 01 0 6 5 21 0 6 5 4 m c p 11 0 6 5 61 0 6 5 81 0 6 6 01 0 6 6 21 0 6 6 41 0 6 6 61 0 6 6 8 m c p 2

I d $ a s t $ a I d $ a S t $ 3 I d # s t $ a I d S a s t S a j s m c d i vI d S a s t $ a I d $ a s t $ a I d # $ 8 0s t S a s t $ a I d # $ a 9j s m c n e gI d # $ a cj s m c n e gI d S a I d $ a s t $ b I d S a s t S b I d $ b j s m c p l oI d S a c l a d c $ a 9s t $ a I d $ a a d c S a as t $ a I d $ a c l a d c $ a cs l $ a I d $ a a d c $ a ds t $ a d e c p # $ f fb n m d r 5r t

s t $ a s t t I d 1 b e m c p 2b m m c p 1j s m c p 2I d $ b c l a d t s t S b I d t s t S a j m m c p 2j s m c p 2I d S b c l a d t s t S b I d t s t S a I d $ b

b $ a v a ; c o p y 1 6 - b i t

r e s u l t t ( $ a 9 )

; z e r o l o c a t i o n

p e r f o r m s a m ed i v i s i o n f o w i t h r e s u l t i n( $ a c )

; s e t p l o t v a l u e s; l o w e r f r a c t i o n s

t 0 .

1 0 7 0 81 0 7 1 01 0 7 1 21 0 7 1 41 0 7 1 61 0 7 1 8 m c p 51 0 7 2 01 0 7 2 21 0 7 2 41 0 7 2 6 m c p 61 0 7 2 81 0 7 3 01 0 7 3 21 0 7 3 41 0 7 3 61 0 7 3 8

c o m p l e m e n t ( $ a 9 ) 1 0 7 4 0i f n e e d e d 1 0 7 4 2

c o m p l e m e n t ( $ a c ) 1 0 7 4 4 ;i f n e e d e d 1 0 7 4 6 m c s e t

; n u m b e r o s t e p s; c o p y v a l u e

t o p l o t l o c ' nc o p y v a l u e

t o p l o t l o c ' n; c o l o u r - p a t t e r np l o t p o i n ta c c u m u l a t e

f r a c t i o n s t ; a n v a l u e s

; d e c p l o l s - l o - d oc o u n t a n l o o pi f n e c e s s a r y .

c o l o u r - p a t t e r n

; g e t m o d en o r m a l d r a w

p a r a l l e lp a r a l l e l

; g e t v a l u e

; a d d p a r a l l e lv a l u e

; g e t c o l o u r

; r e p l o t p a r a l l e lp l o t i n i t i a l; g e t v a l u e

; a d d p a r a l l e lv a l u e

; g e t c o l o u rr e p l o t p a r a l l e l

; g e t v a l u e

1 0 7 4 81 0 7 5 01 0 7 5 21 0 7 5 41 0 7 5 61 0 7 5 81 0 7 6 01 0 7 6 2 ;1 0 7 6 4 m c g e t1 0 7 6 6 m e 1 0 7 6 81 0 7 7 01 0 7 7 2 ;1 0 7 7 4 m c d i v1 0 7 7 61 0 7 7 81 0 7 8 0 m c d v i1 0 7 8 21 0 7 8 41 0 7 8 61 0 7 8 81 0 7 9 0 m c d v 21 0 7 9 21 0 7 9 41 0 7 9 61 0 7 9 81 0 8 0 0 m c d v 31 0 8 0 21 0 8 0 41 0 8 0 6 ;1 0 8 0 8 m c n e g1 0 8 1 01 0 8 1 21 0 8 1 41 0 8 1 61 0 8 1 81 0 8 2 01 0 8 2 21 0 8 2 41 0 8 2 61 0 8 2 81 0 8 3 0 m e n !1 0 8 3 21 0 8 3 4 p t r 1 91 0 8 3 61 0 8 3 81 0 8 4 0

D C m c p 5a s a s a i a s p i b c m c p 6a s a s s l $ a p l I d # j s r o p e na n ( $ 1 9 ) , yo r $ a s t ( $ 1 9 ) , yj s r c l o s ej m m c r 5

I d # s t 1 j s m c g 1s t $ b j s m c g e ts t $ b j s m c g e tj m p m c p l o

j s S a e f dj s S b 7 9 et x r t

I d # $ 1 0I d # a s S a r o s u b t r a c tb c m c d v 3c m S a b c m c d v 2s b S a r o $ a r o $ a d e b n m c d v ir t s b S a s e b c m c d v 2

I d 2 . b p m c n 1s e I d a 0 , xe o # $ f fa d # s t 0 , I d 1 , e o # $ f fa d c # 0s t , r t

I d S b I s I s a n # $ f e

2 / 3 p a t t e r n; 0 / 1 p a t t e r n; l n y b b l e t o h i

r e t r i e v e c a r r y; s k i p i f 3 / p a ; s h i f t b i t s

m o r e p l a c e s u ; s a v e v a l u ep u l l m a s k v a l u e; i n i t i n d e x; o p e n r a ; a n d v a l u e w i t h

m a s k , o p a t tp u v a l u e b a c kc l o s e r a ; f i n i s h u

; s e l e c t n o n -d u p l i c a t i n g

; g e l v a l u e ,

v a l u e .

c o l o u r p a t t e r np l o t p o i n t

c h e c k c o m m a; e v a l b y t ep a r a m e t e r t .

; d i v i d e $ a v a b S a v a w i t hs h i f t a n

h b y t e o r e s u l l w i l l b

o

p e r f o r m t w o sc o m p l e m e n t o c o u n t v a l u e i fc o u n t d i r e c t i o ni n e g a t i v e

; d i v i d e y v a l u eb 4 c l e a r I s b

1 0 8 8 0 p 1 9 r 21 0 8 8 2 ;1 0 8 8 4 m c r e a1 0 8 8 61 0 8 8 81 0 8 9 0 m c r 11 0 8 9 21 0 8 9 4 m c r 21 0 8 9 61 0 8 9 81 0 9 0 01 0 9 0 21 0 9 0 41 0 9 0 61 0 9 0 81 0 9 1 01 0 9 1 21 0 9 1 41 0 9 1 61 0 9 1 81 0 9 2 01 0 9 2 21 0 9 2 41 0 9 2 61 0 9 2 81 0 9 3 01 0 9 3 2 m c r 31 0 9 3 41 0 9 3 61 0 9 3 81 0 9 4 0 m c r 41 0 9 4 2 m c r 51 0 9 4 41 0 9 4 61 0 9 4 81 0 9 5 0 m c r 61 0 9 5 21 0 9 5 4 m c c o l1 0 9 5 61 0 9 5 81 0 9 6 01 0 9 6 21 0 9 6 41 0 9 6 61 0 9 6 81 0 9 7 01 0 9 7 21 0 9 7 41 0 9 7 61 0 9 7 81 0 9 8 01 0 9 8 21 0 9 8 41 0 9 8 61 0 9 8 81 0 9 9 01 0 9 9 21 0 9 9 41 0 9 9 61 0 9 9 81 1 0 0 01 1 0 0 21 1 0 0 41 1 0 0 61 1 0 0 81 1 0 1 01 1 0 1 2

r t

I d $ b c m # $ c 8b c m c r 2I d # $ f fr t I d S b c m # $ a 0b c m c r 1t y p h j s p t r 1 9I d # I d $ b I s p h I s j s r o p e nI d a ( $ 1 9 ) , yj s r c l o s eb c m c r 3I s I s I s I s p i b c m c r 4I s I s a n # s l $ a p l t a I d S a r t

i s m c g 1s t $ a j s m c g e ts t $ a j s m c g e ts e s b c S a 7b c m c r 6s t $ a j s m c g e ts e s b $ a b c c m c r 6s t $ a j s m c g e ls t $ d O 2 1j s m c g e ta s a s a s a s s l $ a j s m c g e ta n # $ 0 fo r S a s t $ a j s m c g e ts t $ a I d # s t $ 1

; t e s t v a l u ei r a n g e

; y e s; s e t e r r o r f l a g

; t e s t v a l u ei r a n g en

p u s h .

c r e a t e p o i n t e r; i n i t i n d e x; g e t a n s a v e; s a v e l s b t o s rp u s h s ; n e x t l s b t o s r; o p e n r a ; g e t v a l u eC l o s e r a c o l o u r 2 / ; s h i f t h n y b b l e

t l n y b b l e( c o l o u r 0 / 1 )

p u l l x - v a l u e I s c o l o u r o : s h i f t b i t s r t

; s a v e 2 l o w b i t s

p u l l . y

r e t r i e v e .

; s e t c o l o u r s; l e f t v a l u e

; t o p y v a l u e; r i g h t v a l u e; c a l c d i f f

; r i g h t < l e f t

; b o t t o m y v a l u ec a l c d i f f

; b o t t o m < t o p

; s e t b a c k g r o u n d

; s h i t t % 0 i v a l u et h n y b b l e

; t e m p s a v e; o w i t h % O v a l

; s a v e; % 1 1 v a l u e

c r e a t e p o i n t e rl c o l o u r r a

1 1 0 51 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 01 1 11 1 11 1 11 1 11 1 11 1 11 1 11 1 11 1 11 1 11 1 11 1 11 1 11 1 11 1 11 1 1 1 1 1 11 1 11 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Page 29: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 29/84

1 1 2 2 41 1 2 2 61 1 2 2 81 1 2 3 0 ;1 1 2 3 2 m c f i x 51 1 2 3 41 1 2 3 61 1 2 3 81 1 2 4 01 1 2 4 21 1 2 4 41 1 2 4 61 1 2 4 81 1 2 5 0 m c f 11 1 2 5 21 1 2 5 41 1 2 5 61 1 2 5 81 1 2 6 01 1 2 6 21 1 2 6 41 1 2 6 6 m c f 21 1 2 6 8 ;1 1 2 7 0 m c r e c1 1 2 7 21 1 2 7 41 1 2 7 61 1 2 7 81 1 2 8 01 1 2 8 21 1 2 8 41 1 2 8 61 1 2 8 81 1 2 9 01 1 2 9 21 1 2 9 41 1 2 9 61 1 2 9 81 1 3 0 01 1 3 0 21 1 3 0 41 1 3 0 61 1 3 0 81 1 3 1 01 1 3 1 21 1 3 1 41 1 3 1 61 1 3 1 8 ;1 1 3 2 0 m c b o x1 1 3 2 21 1 3 2 41 1 3 2 6 m c b 11 1 3 2 81 1 3 3 01 1 3 3 21 1 3 3 41 1 3 3 61 1 3 3 81 1 3 4 01 1 3 4 21 1 3 4 41 1 3 4 61 1 3 4 81 1 3 5 01 1 3 5 21 1 3 5 4 ;1 1 3 5 6 m c d i s

j s m c g e ts t $ b r l

j s m c g e l 5I d a $ 1 fc m p $ 1 db c s m c f 1I d $ 1 s t $ 1 s t S a s t $ 1 s t $ 2 I d $ 2 c m p $ 1 eb c m c f 2I d $ 1 s t $ 1 s t $ a s t $ 2 s t $ t r t

j s m c f i x 5I d # $ f 1s t t I d $ 1 s t $ 2 I d $ 1 s e s b $ 1 s t t j s m d r 1I d a # 1s t 1 I d $ 1 s t $ a s t 1 I d $ 2 s e s b $ 1 s t t I d $ 1 s t $ a I d a $ 1 fs t $ 2 j m p m d r 1

j s m c f i x 5I d # s l 1 I d $ 1 s l $ a s t t I d $ 1 s t $ 2 I d a $ 1 1s t $ a j s m d r 1i n $ 1 I d $ 1 c p y $ 2 0b e q m c b 1b c m c b 1r l

I d #

; c o l o u r

; g e t p a r a m sd u p l i c a t i n g o n

v e r t i c a l l i n e s .; s a v e x 1

; x m i n u s x

; s a v e d i f f e r e n c e; d r a w l i n e

; d r a w d u p l i c a t eh o r i z . l i n e s; s a v e y

; y m i n u s y ; y m i n u s y

; s a v e d i f f e r e n c e; s e t v a l u e s; d r a w l i n e s

; d r a w l i n e s

; g e t p a r a m s; n d u p l i c a t i n g

; s t o r e y

; s t o r e x

; s t o r e x

; d r a w l m e; b u m p y v a l u e; t e s t d o n e ( y 2

; y e s; n

; f l a g d i s c

1 1 3 9 61 1 3 9 81 1 4 0 01 1 4 0 21 1 4 0 41 1 4 0 61 1 4 0 81 1 4 1 01 1 4 1 21 1 4 1 4 m c d 11 1 4 1 61 1 4 1 81 1 4 2 01 1 4 2 21 1 4 2 4 m c d 21 1 4 2 61 1 4 2 81 1 4 3 01 1 4 3 2 m c d 31 1 4 3 41 1 4 3 61 1 4 3 81 1 4 4 01 1 4 4 21 1 4 4 41 1 4 4 6 m c d 41 1 4 4 81 1 4 5 01 1 4 5 2 m c d 51 1 4 5 41 1 4 5 61 1 4 5 81 1 4 6 01 1 4 6 21 1 4 6 41 1 4 6 6 m c d 61 1 4 6 81 1 4 7 01 1 4 7 21 1 4 7 41 1 4 7 61 1 4 7 81 1 4 8 01 1 4 8 21 1 4 8 4 m c d 71 1 4 8 61 1 4 8 8 m c d 81 1 4 9 01 1 4 9 21 1 4 9 41 1 4 9 61 1 4 9 81 1 5 0 01 1 5 0 21 1 5 0 41 1 5 0 61 1 5 0 8 m c d 91 1 5 1 01 1 5 1 2 m c d 1 01 1 5 1 41 1 5 1 61 1 5 1 81 1 5 2 01 1 5 2 21 1 5 2 41 1 5 2 61 1 5 2 8

I d I d j s j s s t I d s t s t s t I d I d a s b c

i s e a d b c i n s t s t s e s b b c d e c l s b b c d e s t s t j s I d b n I d s t I d I d p h I d p i b e s e s b j m c l a d s l I d I d p h I d p i b e s e s b j m c l a d s t I d j s I d

n s t c p b n j m

# < m x m u# > m x m u$ b b d 7m c g e t$ b # $ a $ a $ a $ a $ a

m c d 2

S a m c d 3

$ a S a

$ a m c d 4

$ a m c d 5

$ a S a m c m u l

m c d 1 1# t S a m x t y p e . y

m x a d d s . y

m c d 7

0 . m c d 8

0 , $ b $ a m y t y p e . y

m y a d d s . y

m c d 9

0 . m c d 1 0

0 , $ b $ b m c p l o1

t # m c d 6m c d 1 7

f a c t o r

; g e t c o l o u r

; c l e a r w o r k a r e a; p o s i t i o nb a s e l o

; b a s e h ; c a l c b a s e 2 .

i a / . x

; s a v e n e v a l u e

; c a l c y - 2 « x + 1i . a / . x

; s a v e n e v a l u e

; a d j f o r f a c t o r s; t e s t c i r c l e

n d i s c; c l e a r c o u n t e r

f o p l o t s; g e l f o c a l p i ; p u s h t y p e a p t

; g e t z o f f s e t; t e s t t y p e

a d d i t i o ns u b t r a c t v a l u e

a 0 , ; s k i p a d d i t i o n; a d d v a l u e a 0 ,

; u p d a t e f o c a l p t ; g e t f o c a l p t ; p u s h t y p e a t p t .

; g e t z o f f s e t; t e s t t y p e

a d d i t i o n; s u b ( r a c l v a l u e

a 0 , ; s k i p a d d i t i o n; a d d v a l u e a 0 . r e f e r e n c e d; u p d a t e f o c a l p ; c o l o u r p a t t e r n; p l o t p o i n t; b u m p c o u n t e r

; t e s t c o u n t e r < y e

; s k i p d i s c r l

1 1 5 6 81 1 5 7 01 1 5 7 21 1 5 7 41 1 5 7 61 1 5 7 81 1 5 8 01 1 5 8 2 m c d 1 41 1 5 8 41 1 5 8 61 1 5 8 81 1 5 9 0 m c d 1 51 1 5 9 21 1 5 9 41 1 5 9 61 1 5 9 8 m c d 1 61 1 6 0 01 1 6 0 21 1 6 0 41 1 6 0 61 1 6 0 81 1 6 1 01 1 6 1 21 1 6 1 41 1 6 1 6 m c d 1 71 1 6 1 81 1 6 2 01 1 6 2 21 1 6 2 41 1 6 2 61 1 6 2 81 1 6 3 01 1 6 3 21 1 6 3 41 1 6 3 61 1 6 3 81 1 6 4 01 1 6 4 21 1 6 4 41 1 6 4 6 m c d 1 81 1 6 4 8 m c d 1 91 1 6 5 01 1 6 5 2 m c d 2 01 1 6 5 41 1 6 5 61 1 6 5 81 1 6 6 01 1 6 6 21 1 6 6 41 1 6 6 61 1 6 6 81 1 6 7 01 1 6 7 21 1 6 7 41 1 6 7 6 m c d 2 11 1 6 7 8 m c d 2 21 1 6 8 01 1 6 8 2 m c d 2 31 1 6 8 41 1 6 8 61 1 6 8 81 1 6 9 01 1 6 9 21 1 6 9 41 1 6 9 61 1 6 9 81 1 7 0 0

a n # b n m c d 1 4I d $ a c l I d m c t b l 4 , ya d 0 , j m m c d 1 5I d $ a s e I d m c t b l 4 , ys b 0 , s t $ a s l 1 j s m d r 1I d # S O fI d m c b u f i . ys t $ a 3 , yd e b p m c d 1 6I d t i n s t y t 6c p y # 4b n m c d 1 3I d S a s t S a I d S a s t $ a i n $ a I d S a b p m c d 1 9e o # $ f fl a I d $ a e o # $ f fc l a d # b c m c d 1 8i n j m m c d 2 0t a I d S a s t 1 s l I d $ a b p m c d 2 2e o # $ f ft a I d $ a e o # $ f fc l a d # b c m c d 2 1

n j m m c d 2 3t a I d $ a s t $ 1 s t $ 1 I d 1 c m p $ 1 5b c m c d 2 4I d a 7c m p $ 1 4b e m c d 2 4b c m c d 2 4I d $ a

: s e l; g e l f o c a l p ; a d d o l f s e l i ; 0 , x

; s k i p; g e t f o c a l .; s u b t r a c l o f f s e t

0 ,

; s a v e v a l u e

; d r a w l i n e. r e s t o r e o l

v a l u e s

; b u m p c o u n t e r: v a l u e

; t e s t c o u n t e rn

; c o p y ( S a b )t ( S a d )

; b u m p y c o u n t e r; t e s t h v a p o ; y e sc o m p l e m e n t

; s k i p; s e t u . a .

S t o r e

; l e s t h v a p o ; y e sc o m p l e m e n t

; s k i p; s e t u p . a , ,

; s t o r e

; a b s h o ; a b s h i o f x; x > y; l o ; l o f ; x

; c o p y c u r r e n t

Page 30: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 30/84

1 1 9 1 2 m d 1 1 9 1 41 1 9 1 61 1 9 1 8 m c t 71 1 9 2 01 1 9 2 21 1 9 2 41 1 9 2 61 1 9 2 81 1 9 3 0 m c t 81 1 9 3 2 m c t 91 1 9 3 41 1 9 3 61 1 9 3 81 1 9 4 01 1 9 4 2 m c t 1 01 1 9 4 41 1 9 4 61 1 9 4 81 1 9 5 01 1 9 5 21 1 9 5 41 1 9 5 61 1 9 5 81 1 9 6 01 1 9 6 21 1 9 6 41 1 9 6 61 1 9 6 81 1 9 7 01 1 9 7 21 1 9 7 41 1 9 7 61 1 9 7 81 1 9 8 01 1 9 8 21 1 9 8 41 1 9 8 61 1 9 8 81 1 9 9 01 1 9 9 21 1 9 9 41 1 9 9 6 ;1 1 9 9 8 r o p e n1 2 0 0 01 2 0 0 21 2 0 0 41 2 0 0 61 2 0 0 81 2 0 1 01 2 0 1 2 ;1 2 0 1 4 r c l o s e1 2 0 1 61 2 0 1 81 2 0 2 01 2 0 2 21 2 0 2 41 2 0 2 61 2 0 2 81 2 0 3 0 a d d 1 91 2 0 3 21 2 0 3 41 2 0 3 61 2 0 3 81 2 0 4 01 2 0 4 2 a 1 91 2 0 4 4 ;

a s l ; t e s t l e f t b i b c m c t 8p h d $ b

j s m c p l oi n $ b d e c $ a 9b n e m c t 7j m p m c t 1 0p h I d # j s m c p l oi n $ b d e c $ a 9b n m c t 9I d $ a s t $ a p l d e $ a b p m c t 6i n $ b d e c $ a ab n e m c t 5I d S a s t $ a I d $ a i n s t $ a c p y # 8b n m c t 5I d $ a a s a s

d a d c S a 7s t S a I d $ a i n c p S a b e q a 1 9j m m c t 1

p h s e I d a n # $ f 8s l p l r t

p h I d o r # s t C l p l r t

I d $ 1 d a d c # $ 2 8s t $ 1 b c c a 1 9i n $ 1 r t

c l e a r n p l o t; p u s h . ; g e t c o l o u r; p i o t; b u m p v a l u e; d e c m u l t; l o o p t i l l; s k i p; p u s h . ; d e a r p o i n t s

; b u m p x v a l; d e c m u l t; l o o p t i l l; r e s e t x m u l t v a l

; p u l l b i t p a t t e r n; c o u n t d o w n; l o o p t i l l < ; b u m p y v a l u e; d e c m u l tl l o o p t i l l O; r e s e t m u l t

; b u m p c h a r r o

; t e s t < ; y e s; g e t m u l t; t i m e s f o n e x t

c h a r a c t e r

; b u m p i n d e x i n t os t r i n g

; t e s t l e n g t h; y e s; h a n d l e n e x t c h a r

; o p e n u p r a mu n d e r n e a t h t h r o m s , d i s a b l et h i r a n p r e s e r v e . a

; c l o s e u p r a mu n d e r n e a t h t h r o m s , e n a b l et h i r a n p r e s e r v e .

; a d d s c r e e n w i d t h( 4 0 , $ 2 8 ) t p o i n t e r ( $ 1 9 )

1 2 0 4 6 m c t b l i : h i - r e s l i n e a d d r e s s e s1 2 0 4 8 . w o r d $ e 0 0 01 2 0 5 0 . w o r d $ e 1 4 01 2 0 5 2 . w o r d $ e 2 8 01 9 0 ^ 4 w n r H T l p ' ^ r O£ . \ J \ j ^ W v V 4 J C J O v1 2 0 5 6 . w o r d $ e 5 0 01 2 0 5 8 . w o r d $ e 6 4 01 2 0 6 0 . w o r d $ e 7 8 01 2 0 6 2 . w o r d $ e 8 c O1 2 0 6 4 . w o r d $ e a 0 01 2 0 6 6 . w o r d $ e b 4 01 2 0 6 8 . w o r d $ e c 8 01 2 0 7 0 . w o r d $ e d c 01 2 0 7 2 . w o r d $ e ( 0 01 2 0 7 4 . w o r d $ ( 0 4 01 2 0 7 6 . w o r d $ 1 8 1 2 0 7 8 . w o r d $ f 2 c O1 2 0 8 0 w o r d $ 1 4 0 01 2 0 8 2 . w o r d $ 1 5 4 01 2 0 8 4 . w o r d $ 1 6 8 01 2 0 8 6 . w o r d $ f 7 c O1 2 0 8 8 . w o r d $ 0 0 01 2 0 9 0 . w o r d $ f a 4 01 2 0 9 2 . w o r d $ f b 8 01 2 0 9 4 . w o r d $ f c c O1 2 0 9 6 . w o r d $ f e O O1 2 0 9 8 ;1 2 1 0 0 m c t b l 2 . b y t e $ 3 f , $ c f , $ f 3 , $ f c1 2 1 0 2 ;1 2 1 0 4 m c t b l 3 . b y t e $ 1 d , $ 1 d , $ 1 e , $ 1 e1 2 1 0 6 ;1 2 1 0 8 m c t b l 4 , b y t e $ 1 f , $ 1 f , $ 2 0 . $ 2 01 2 1 1 0 ;1 2 1 1 2 m x m u l t1 2 1 1 4 ;1 2 1 1 6 m y m u l t . + 1 2 1 1 8 ;1 2 1 2 0 m x t y p e . b y t e 0 , 1 , 0 , 1 , 0 , 1 , 0 , 11 2 1 2 2 ;1 2 1 2 4 m y t y p e . b y t e 0 , 0 , 1 , 1 , 0 , 0 , 1 . 11 2 1 2 6 ;1 2 1 2 8 m x a d d s =1 2 1 3 0 , b y t e $ 1 d , $ 1 d , $ 1 d , $ 1 d1 2 1 3 2 . b y t e $ 1 e , $ 1 e , $ 1 e , $ 1 e1 2 1 3 4 ;1 2 1 3 6 m y a d d s =1 2 1 3 8 . b y t e $ 1 f , $ 1 f , $ 1 f , $ 1 f1 2 1 4 0 . b y t e $ 2 0 , $ 2 0 , $ 2 0 , $ 2 01 2 1 4 2 :1 2 1 4 4 m c b u f i + $ 1 01 2 1 4 6 m c b u f 2 .1 2 1 4 8 :1 2 1 5 0 . . + ( . & 1 ) ; s k i p o d b y t e1 2 1 5 2 e v t m p . w o r d $ e 3 8 b ; e r r o r v e c t o r1 2 1 5 4 ;1 2 1 5 6 m c f x e r s e 1 2 1 5 8 I d $ 3 0 0 ; v e c t o r t o t e m p1 2 1 6 0 I d $ 3 0 1 s t o r a g e1 2 1 6 2 s t e v t m p1 2 1 6 4 s t e v t m p +1 2 1 6 6 I d # < m c e r r ; c o p y s u b s t i t u t e1 2 1 6 8 I d # > m c e r r a d d r e s s t p a g e1 2 1 7 0 s t $ 3 0 01 2 1 7 2 s t $ 3 0 11 2 1 7 4 c l 1 2 1 7 6 r t 1 2 1 7 8 :

P F 1

A H G J N C M H O M O G D B N O O D L J O L

D E B E E O

I N N N P I

O M J

E C

D F I L

r e -

r e 3

r e 5

r e r e

8 r e

1

P r o q r a

i n l i n e ( a u g 2 5 / 8

s t a t e m e n t ,k e y w o r d c h a r a

k e y w o r di n l i n e

1 0 . a s c1 1 0 73 4 5 43 4 5 63 4 5 83 4 6 03 4 6 23 4 6 43 4 6 63 4 6 83 4 7 03 4 7 23 4 7 43 4 7 63 4 7 83 4 8 03 4 8 23 4 8 43 4 8 63 4 8 83 4 9 03 4 9 23 4 9 43 4 9 63 4 9 83 5 0 03 5 0 23 5 0 43 5 0 63 5 0 83 5 1 03 5 1 23 5 1 43 5 1 6

r o i n l

. w o r d i n l i n - 1n l i n c m

b n j s I d j s j s

i n j s j s s t s t I d j s j s s t s l I d I d s t s t I c l xI d s f s t j s I d s t s t I d I d j s j s j s

m z i n $ a # $ $ a e $ a $ b $ a $ 4 $ 4 # $ b $ a $ 4 $ 4 $ 7 $ 7 $ 4 $ 4 $ 4 $ 4 $ 7 $ 7 $ 7 # $ 0 $ 0 $ 7 $ 7 $ b $ b $ a

Page 31: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 31/84

T h A m i g a : U s e r ' s P e r s p e c t i v eC h r i s Z a m a r a , T e c h n i c a l E d i t o r

T h A m i g a p r o v i d e s n e a n s w e r s t t h o l q u e s t i o n , ' ' G r e a t , b u t

T h A m i g a m a f i l l t h p r o m i s e o b e i n g t h t o o l f o t h a v e r a g ec o m p u t e r - n a i v e p e r s o n a n e n t h u s i a s t a l i k e . B e c a u s e o i t v i s u a l l y o r i e n t e d u s e r i n t e r f a c e , t h c o n s i s t e n t w a o d o i n gt h i n g s a m o n g a l p r o g r a m s , a n t h p o w e r a n d c a p a b i l i t i e si n h e r e n t t t h h a r d w a r e i t s e l f , t h i s e y e - o p e n i n g m a c h i n e c a b u s e d a n e n j o y e d e v e n b t h m o s t c o m p u t e r - s h y a m o n gu s A n n o u s e d a s t o y , b u a s f l e x i b l e t o o l f o p e r s o n s i m a n y f i e l d s . I i n o b u s i n e s s c o m p u t e r , o " h o m e "c o m p u t e r , o m u s i c c o m p u t e r , o g r a p h i c s c o m p u t e r , o s o f t w a r e d e v e l o p m e n t s y s t e m . I i a l o t h e s e , a n m a n a g e s t b w e l l s u i t e d t b o t h t h c o m p u t e r - p h o b e a n d c o m p u t e rp h i l e .

R e g a r d l e s s o w h i c h o t h e s e c a t e g o r i e s y o f a l l u n d e r ( s t r o n g l y e x p e c t t h l a t t e r , t h o u g h ) , t h e f o l l o w i n g i l o o k a t h m a i n e l e m e n t s o t h A m i g a f r o m t h e n u s e r ' s s t a n d p o i n t .( T h e m a c h i n e i a l s o g r e a t f o p r o g r a m m e r s , b u t h a t ' s a n o t h e ra r t i c l e . ) T h e l e m e n t s o t h s y s t e m w h i c h c o n c e r n t h u s e ra r e : T h W o r k B e n c h , A m i g a ' s e f f i c i e n t a n i n t u i t i v e l y -o p e r a t e d u s e r i n t e r f a c e ; t h b o t t o m l i n e e x a m p l e s o a c t u a la p p l i c a t i o n s o f t w a r e ; a n t h b a s i c h a r d w a r e i t e r m s o e r g on o m i c s a n e x p a n d a b i l i t y . W h a t f o l l o w s i a c l o s e r l o o k a t h e s e t h r e e e l e m e n t s o t h A m i g a s y s t e m a n p h i l o s o p h y .

T h e W o r k B e n c h : Y o u r L i n k W i t h T h S y s t e m

T h W o r k B e n c h i v e r y f u n , f r i e n d l y a n m o d e r n ( r e a d :M a c i n t o s h / G E M - l i k e ) f r o n t e n t t h p o w e r f u l A m i g a D O So p e r a t i n g s y s t e m l u r k i n g b e n e a t h . I l e t s y o c o n t r o l t h t a s k sa n f i l e s i t h s y s t e m w i t h o u t k n o w i n g t h a t y o u ' r e d o i n g s u c ho m i n o u s - s o u n d i n g w o r k . Y o u ' l l b s t a r t i n g s t a s k s a n c o p y i n g

w h i c h a r e s u b - d i r e c t o r i e s c o n t a ( f i l e s u s e d b t o o l s ) , o m o r e d r a w eu a n o t h e r w i n d o w s o m e w h e r ec o n t e n t s o t h i s n e d r a w e r .

N o i m a s o u n d l i k e q u i t e m e w i n d o w s , i c o n s a n d p r o g r a m n a m w i n d o w h a v a r i o u s g a d g e t s w h i c y o u ' r e c o n c e r n e d w i t h . U s i n g t h w i n d o w ' s s i z e b d r a g g i n g i t rl o c a t i o n o t h s c r e e n b u s i n gw h e r e v e r y o u w i s h . Y o c a a l s ot h b a c k o s t a c k o w i n d o w s u s it h w i n d o w . A l l o f t h e s e o p e r a t i o m o v i n g a n c l i c k i n g . I w i n d o wi c o n s w i t h i n i t y o c a e i t h e r e n s c r o l l i n g g a d g e t s t s e d i f f e r e n t p " c l o s e " g a d g e t a l l o w s y o t g e r i o t h i s m a s o u n d r a t h e r c o n f u s i n f e w m i n u t e s t b e c o m e c o m f o r t a b

T h i c o n s r e p r e s e n t i n g t h t o o l s ,w i n d o w c a n b e d r a g g e d a r o u n dw i l l c o p y t h f i l e t w h a t e v e r d i s k c a d u p l i c a t e a e n t i r e d i s k b d ra n o t h e r d i s k . T g e r i o f i T r a s h c a n , a i c o n i t h m a i n d i t h t r a s h , t h o u g h , y o c a s t i l l r e t t h T r a s h c a n . A l l o f t h i s i g r e a tr e - o r g a n i z i n g a l o y o u r f i l e s j u sc o p y i n g f i l e s a n r u n n i n g p r o g r a md o w n m e n u s w h i c h a l l o w o t h e r f

W h e n t o o l i o p e n e d ( r u n n i n g p r o g r a m ) , i c a r u i i t A p p l i c a t i o n S o f t w a r e

Page 32: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 32/84

o w w i n d o w i t h w o r k b e n c h . F o e x a m p l e , y o m a o p e nt e r m i n a l p a c k a g e w h i c h b r i n g s u n e w i n d o w . T h i s w i n d o wa c t s a s c o m p u t e r i i t s e l f , w i t h t h e t e r m i n a l p r o g r a m r u n n i n gi n s i d e . D e p e n d i n g u p o n t h t o o l r u n n i n g , t h i s w i n d o w c a u s u a l l y b r e - s i z e d , r e - o r d e r e d , o r c l o s e d j u s t l i k e a n o t h e rw i n d o w . Y o u a r f r e e t o s t a r t a m a n y p r o g r a m s a y o w i s h i t h i s m a n n e r ( l i m i t e d b a v a i l a b l e m e m o r y ) , e a c h w i t h i t o w w i n d o w ; a n d e a c h r u n n i n g a t h s a m e t i m e ! B c l i c k i n ga n g i v e n w i n d o w , y o u " s e l e c t " i s t h a t y o c a s u p p l y i n p u tt i t p r o g r a m a n d a c t i v a t e t h a t p r o g r a m ' s p u l l - d o w n m e n u s .T h a b i l i t y t o h a v e n u m b e r o p r o g r a m s r u n n i n g , e a c ha v a i l a b l e a a n g i v e n m o m e n t , a d d s n e d i m e n s i o n t c o m p u t e r u s a g e . C o n s i d e r t h i s : y o u ' r e w r i t i n g a e s s a y o w o r d p r o c e s s o r , a n w h i l e i t ' s p e r f o r m i n g l o n g s e a r c ht h r o u g h t e x t , y o g e b o r e d a n c l i c k y o u r a d v e n t u r e g a m e t t h f r o n t . J u s t b e f o r e y o u ' r e a b o u t t b i l e t h d u s t a t h h a n d so b l o o d t h i r s t y t r o l l , y o n o t i c e t h a t s o m e o n e h a c a l l e d u y o u r B u l l e t i n B o a r d S y s t e m , w h i c h i r u n n i n g i i t o w w i n d o w , b a r e l y v i s i b l e a b o v e t h t r o l l ' s m i s s h a p e n h e a d . A f t e re n l a r g i n g t h e B B w i n d o w a n c h a t t i n g w i t h t h f e l l o w w h l o g g e d o ( t h e t r o l l h a m e a n w h i l e e n j o y e d s a t i s f y i n g l u n c h ) ,y o d e c i d e t h a v e l o o k a h o m u c h r o o m i s l e f t o y o u rd i s k , s y o u c h e c k t h I N F O m e n u a f t e r c l i c k i n g t h m a i nw o r k b e n c h s c r e e n , v i s i b l e u n d e r l a y e r s o w i n d o w s . C l i c k i n gb a c k t y o u r e s s a y , y o f i n d t h a t y o u r w o r d s e a r c h h a s l o n gs i n c e c o m p l e t e d a n d y o u a r r e a d y t w r i t e o n . f a n c i f u le x a m p l e p e r h a p s , b u t t h e r e a r e m a n y r e a l - w o r l d o c c a s i o n sw h e n y o u w a n t t d s o m e t h i n g w i t h t h s y s t e m o a n o t h e rp r o g r a m w i t h o u t h a v i n g t s a v e y o u r p r o j e c t , b r i n g i n e p r o g r a m , t h e n b r i n g i t h o r i g i n a l p r o g r a m a g a i n l a t e r . J u s tt h a b i l i t y t e a s i l y s w i t c h b e t w e e n t a s k s i m a r v e l o u sc o n v e n i e n c e ; m u l t i t a s k i n g a w e l l m e a n s w e ' r e t a l k i n g s e r i o u sc o m p u t i n g p o w e r h e r e .

S o m e p r o g r a m s t a k e u a e n t i r e s c r e e n r a t h e r t h a n w i n d o w .T h i s d o e s n ' t m e a n t h a t i d o m i n a t e s t h m a c h i n e , t h o u g h ; y o c a s l i d e t h s c r e e n d o w n t r e v e a l w h a t e v e r w a t h e r e b e f o r e .L i k e w i n d o w s , m o r e t h a n o n s c r e e n c a n b e a c t i v e , a n e a c hc a n b e s l i d u p a n d d o w n t r e v e a l w h a t e v e r i d e s i r e d . L i k ew i n d o w s , s c r e e n s h a v e r e - o r d e r i n g g a d g e t s t p u s h o n t t h t o o b o t t o m o f s t a c k o s c r e e n s . F o m a j o r a p p l i c a t i o np r o g r a m , o o n t h a t n e e d s c o n s t a n t s c r e e n w i d t h , s c r e e nc a b m o r e c o n v e n i e n t t h a n w i n d o w . E a c h s c r e e n m a h a v ew i n d o w s w i t h i n i t s i n c e p r o g r a m m a m a k e i t o w w i d o w s .

O n o t h e i d e a s b e h i n d t h A m i i t h a t o n c e y o l e a r n t u s t c h o o s e m e n u o p t i o n s , y o c a C o m m o d o r e 6 o r s i m i l a r c o m p u " l e a r n i n g h o t w o r k t h c o m p u r u w i l l h a v e i t o w r u l e s a o p t i o n s o s e l e c t i n g f u n c t i o n s . W io p e r s a r e n c o u r a g e d t u s ts y s t e m a n t f o l l o w c e r t a i n c o n c a b r i n g u p r o g r a m a n d s t a y o k n o w h o w t a c c e s s t h e m e n up r o j e c t ; h o t s e l e c t a n o p t i o n

c o n s i s t e n t u s e r i n t e r f a c e a m o n w o n d e r f u l t h i n g !

B e s i d e s t h f a c t t h a t p r o g r a m ss a m e m a n n e r , t h e y a l s o w i l l ( a o t h e r p r o g r a m s i t h s y s t e m , i b p u s h e d a s i d e t w o r k o s o m ec o n v e n t i o n r a t h e r t h a n r u l e ,p r o g r a m w h i c h h o g s t h w h o l e p r o g r a m b q u i t , o e v e n t h s y u s a n o t h e r p r o g r a m . S u c h s y se v e r , t o t a l l y d e f e a t t h p u r p o s e o e n v i r o n m e n t a n d s h o u l d b a v g r a m , m a k e s u r e t h a t i c a a li n t e n d e d ; a s m u l t i - t a s k i n g m a c h

s y s t e m h o g g i n g p r o g r a m w i l l s m u c h f r u s t r a t i o n w h e n y o d i s co t h e r s o f t w a r e , a n 2 h o p e f u l l ys o f t w a r e d e v e l o p e r s g o v e r n i n gW h i l e I ' b e e f i n g , o n m o r e p s o f t w a r e : i y o u h a v e e x t e r n a l R A t t h i n t e r n a l 5 1 2 k , s o m e p r b e c a u s e t h e y d o n ' t s p e c i f i c a l l yt h e y n e e d i ( t h e v i d e o c h i p s c a n T h i s h o p e f u l l y w o n ' t b c o n s o f t w a r e d e v e l o p e r s t e s t t h e i r p r n a R A M .

I o r d e r t g e a i d e a o t h k i n dt h A m i g a , b e l o w i l o o k a t h b l e , c o v e r i n g d i f f e r e n t a s p e c t s o

Page 33: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 33/84

a r d i g i t a l r e c o r d i n g s s t o r e d i m e m o r y a n c o n v e r t e d t o t h e k n e e . T h f a i t h m a i

Page 34: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 34/84

a n a l o g a h i g h r a t e b D M A . T h a t g i v e s y o u s o m e t h i n g l i k ep r o g r a m m a b l e t a p e r e c o r d e r t p l a y w i t h , m a k i n g c o m p l e xs o u n d s p i e c e o c a k e . Y o c a c h a n g e i n s t r u m e n t s a a n t i m ei y o u r c o m p o s i t i o n s i m p l y b p u t t i n g a i n s t r u m e n t i c o n o t h s t a f f i n s t e a d o n o t e o r e s t . E d i t i n g s o n g i f a s t a n s i m p l e , a n w h i l e i t ' s p l a y i n g , y o c a a d j u s t t h s p e e d , t e m p oa n o t h e r s e t t i n g s b " s l i d i n g " o n - s c r e e n " c o n t r o l s " w i t h t h m o u s e - d r i v e n p o i n t e r . T h e r e a r s o m e p r e t t y i m p r e s s i v e s a p l s o n g s o t h d i s k t h a t y o c a b r i n g i t p l a y a n e d i t .

B e s i d e s s t a f f m o d e , a i t ' s c a l l e d , t h e r e i a l s o s y n t h e s i z e r m o d e .T h s y n t h e s i z e r i s c r e e n f u l l o c o n t r o l s w h i c h y o c a u s t c r e a t e y o u r o w i n s t r u m e n t t u s o s a v e o d i s k w i t h t h o t h e r s . Y o c a a c t u a l l y d r a w y o u r o w w a v e f o r m o n l i t t l eg r a p h , o r g e n e r a t e w a v e f o r m m a t h e m a t i c a l l y b y c h o o s i n gs t a n d a r d f u n c t i o n a n a d d i n g t w o t h r e e t i m e s i t f r e q u e n c yt i t s e l f a a n a m p l i t u d e . T h e r e a r l i t e r a l l y d o z e n s o m o u s e -o p e r a b l e s l i d e c o n t r o l s o t h s y n t h e s i z e r , w h i c h c o n t r o l f i l t e r s ,o s c i l l a t o r s , a m p l i t u d e g e n e r a t o r s , a n v a r i o u s l e v e l s . T h s e u b a s i c a l l y s i m u l a t e s g o o d s y n t h e s i z e r , b u e v e n i y o d o n ' tk n o w w h a t h a l f t h s t u f f d o e s , y o u ' l l h a v e b a l l j u s t m e s s i n ga r o u n d w i t h t h e c o n t r o l s a n l i s t e n i n g t t h r e s u l t s ( t a k e i f r o m m e ) . M u s i c r a f t w o u l d a l s o p a s s t h e t e s t b y o u r l o c a lc o m p u t e r - p a r a n o i d , b u t h i s o n d o e s n ' t e v e n h a v e t k n o wh o t t y p e . I f a c t , t h k e y b o a r d i s n ' t r e q u i r e d a a l l , u n l e s sy o u w a n t t p l a y n o t e s l i v e , o p l a y a l o n g w i t h o n o y o u rc o m p o s i t i o n s . k e y b o a r d s c r e e n l e t s y o s e w h a t n o t e s a r a s s i g n e d t w h i c h k e y s , a n l e t s y o u c h a n g e t h a s s i g n m e n t s .I t h c a s e o M u s i c r a f t , i t s i m p l e o p e r a t i o n i m o r e t h a n j u s tc o n v e n i e n c e , s i n c e i o p e n s t h d o o r f o m a n y m u s i c i a n s w h h a v e n o d e s i r e t l e a r n a b o u t p r o g r a m m i n g c o m p u t e r s o h o t u s c o m p l e x p a c k a g e . h a v e s e e n n o n - c o m p u t e r i s tg u i t a r p l a y e r s i d o w n i f r o n t o M u s i c r a f t a n s t a r t p r o d u c i n gm u s i c a f t e r f e m i n u t e s , c o n c e n t r a t i n g o t h c o m p o s i t i o ni t s e l f r a t h e r t h a n o h o t u s t h p r o g r a m . T h a t ' s h o i s h o u l d b e

T h A m i g a H a r d w a r e

H e r e ' s s o m e t h i n g t h a t C o m m o d o r e 6 u s e r s i p a r t i c u l a r w i l la p p r e c i a t e : t a d s t a n d a r d E p s o n - t y p e p r i n t e r t t h A m i g a ,y o p l u g i i a n i w o r k s . P e r i o d . F o r g e t t h e i n t e r f a c e . T h e r e i

s t a n d a r d p a r a l l e l p r i n t e r p o r t p r o v i d e d o t h e b a c k , a n t h

t h e r e a r s o m e A m i g a o w n e r s o u a n s a y i n g , " W h a t f a n ? " .

T h b u i l t - i n d i s k d r i v e u s e s 3 . a r m u c h b e t t e r t h a n f l o p p i e s s h a r d p l a s t i c c a s e a n r e q u i r e n r e c o r d i n g s u r f a c e i p r o t e c t e d b a w a y w h e n t h e d i s k i i t h d r8 8 0 K , a n d a t a a c c e s s i q u i t e f o n l y a b o u t 9 s e c o n d s . P e r h a p ss t a n d a r d s h i r t p o c k e t . I a n y o n ec o n s i d e r a t i o n w h e n d e s i g n i n g t h t h i m .

F o f u r t h e r e x p a n s i o n o t h s y s t s i d e o t h m a c h i n e ; d e v i c e s c a n t h e s i d e o t h i s p o r t . T h i s d o e s n ' t

c a r d - c a g e l i k e i n t h I B P C p r o b a b l y h a t g r o w t o m u c hd a t e s u c h a a r r a n g e m e n t . S e o f f e r i n g m o t h e r b o a r d s t h o u g h ,m u l t i p l e b o a r d s . Y o c a a l s oo u t f i t s , i n c l u d i n g C o m s p e c C o m m w i l l b o f f e r i n g t w o m e g a b y t ea d d i t i o n a l i n f o r m a t i o n a b o u t A m it d e v e l o p e r s . I ' v e b e e n u s i n gR A e x p a n s i o n u n i t s f o f e t h a t m e m o r y c a r e a l l y s p e e d t hs u p e r - f a s t d i s k d r i v e . H a r d d r i v ew a s o o n f r o m v a r i o u s c o m p a n i A m i g a w i t h 2 M e g a b y t e h a r dd o r e ' s p r o m o t i o n a l p e o p l e s a y .

I I W o r t h i t

J u d g i n g f r o m t h A m i g a ' s r e a l - w a v a i l a b l e , a f f o r d a b l e s o f t w a r e , i t s a t h a t t h A m i g a m a w e l l b es p e c i f i c p r o g r a m . M u s i c r a f t , f o a l o n e f o b u d d i n g m u s i c i a nG r a p h i c r a f t f o t h g r a p h i c a r t i s tb e s t o a l i t h a t a n y o n e c a r e g a r d l e s s o h i f i e l d o i n t e r e s t

Page 35: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 35/84

T h A m i g a : P r o g r a m m e r ' s P e r s p e C h r i s Z a m a r a , T e c h n i c a l E d i t o r

. . c a n s i n g l e m o r t a lw h i p u p g a m e o u t i l i t y w i t h i nn o r m a l l i f e t i m e ?

T h A m i g a i d e s i g n e d t b p o e r f u l y e e a s y f o a n y o n e t u s e . I o t h e r w o r d s , i i m a c h i n e o r e n t e d t t h u s e r , w i t h m u c h o t h a p p l i c a t i o n s o f t w a r e b e i n g d e v e lo p e d b t h m a j o r s o f t w a r e c o p a n i e s . B u h o i i f o t h a v e r a g e h a c k e r c a s i n g l e m o t a w h i p u g a m e o u t i l i t y w i t h i n

n o r m a l l i f e t i m e ?

W e l l , h e ' l l h a v e b i o l e a r n i n g t d o b u u s i n g o n o A m i g a ' s B A -S I C s , h e ' l l b w r i t i n g p r o g r a m s u i n g m u l t i p l e w i n d o w s , g r a p h i c s ,p u l l - d o w n m e n u s , t h m o u s e , a n e v e n s p e e c h i n t i m e . A l o t h o s e g o o d i e s - a n o t h e r s w h i c h a r i n h e r e n t t t h A m i g a e n v i r o n m e n t a r e a v a i l a b l e t t h p r o g r a m m e r e v e n i A s s e m b l e r , b e c a u s e o t h b u i l t - i n o p e r a t i n g s y s t e m f u n c t i o n sa n t h l i b r a r i e s a v a i l a b l e o d i s k . P r o g r a m m i n g a t h e l o w e s tl e v e l , i . e . m a n i p u l a t i n g t h h a r d w a r e i t s e l f , i s p r e t t y m u c h o u t ,b u t h o p e r a t i n g s y s t e m d o e s s m u c h f o y o t h a t y o u ' l l n e v e rn e e d t d s o

T h e A m i g a c o m e s w i t h B A S I C ( M e t a C o m p c o ' s A B a s i C o M i c r os o f t ' s A m i g a B a s i c ) , a n a t h t i m e o w r i t i n g , C " P a s c a l , a n

S i n c e t h e i d e a b e h i n d t h A m i gi n t u i t i v e l y ( h e n c e " I n t u i t i o n " a s y s t e m ) , t h e r e a r e c e r t a i n s t a n d f o l l o w t w o r k p r o p e r l y i t h m w h i c h a r r e c o m m e n d e d s t h aa m o n g a p p l i c a t i o n p r o g r a m s . T h K e r n e l r o u t i n e s a v a i l a b l e m a k en e A m i g a p r o g r a m m e r , b u a l f r i e n d l y , p r o f e s s i o n a l p r o g r a m s .

F o m a n y a p p l i c a t i o n s , p r o g r a m m

b i c r y p t i c a n e x t r e m e l y t e c h n i c a l , b u t h o n e s a i m e d a t h o d i s k b s i m p l y t y p i n g i t n a m

Page 36: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 36/84

u s e r l i k e t h A m i g a D O S U s e r ' s m a n u a l a r v e r y e a s y t u n d e r s t a n d a n f u l l o e x a m p l e s . S i n c e t h A m i g a i v e r y n e a n d c o m p l e x s y s t e m , u p d a t e s o t h e s e m a n u a l s a r o c c u r r i n gc o n s t a n t l y , a n t h s t a c k o e r r a t a p a g e s i n c l u d e d w i t h t h d e v e l o p e r ' s k i i q u i t e l a r g e . W h e n t h f i n a l d o c u m e n t a t i o n i a c t u a l l y r e l e a s e d t t h p u b l i c , t h m a n u a l s s h o u l d b e f a i r l ya c c u r a t e , a t h q u e s t i o n s o d e v e l o p e r s s e r v e t w e e d o u t t h ee r r o r s a n o m i s s i o n s .

W o r k b e n c h a n B A S I C m a n u a l s c o m e w i t h t h s y s t e m , a n f o t h e c a s u a l B A S I C p r o g r a m m e r c o n t a i n e v e r y t h i n g h e ' l l p r o b ab l n e e d t k n o w . W o r k b e n c h i A m i g a ' s I c o n - o r i e n t e d u s e ri n t e r f a c e , a n t h m a n u a l e x p l a i n s h o t u s i t c o p y ,r e n a m e , a n d e l e t e f i l e s , d u p l i c a t e d i s k s , r u p r o g r a m s ( t o o l s

" ) u s t h w i n d o w g a d g e t s , e t c . W o r k b e n c h i d e s i g n e d t m a k e t h s y s t e m i n t u i t i v e l y e a s y f o u s e r s t o p e r a t e , b u a l o i t f u n c t i o n s c a a l s o b p e r f o r m e d d i r e c t l y u s i n g A m i g a D O Sf r o m C L I , t h C o m m a n d - L i n e I n t e r f a c e . I y o w i s h t o f u l l yu n d e r s t a n d a n u s C L a n t h D O c o m m a n d s , t h s e o t h r e e A m i g a D O S m a n u a l s i a v a i l a b l e f r o m d e a l e r s . O t h e rA m i g a b o o k s f r o m o u t s i d e p u b l i s h e r s a r e x p e c t e d t a r r i v es h o r t l y a s w e l l .

T h e a m o u n t o d o c u m e n t a t i o n a l r e a d y a v a i l a b l e s u g g e s t s t h a tt h A m i g a w i l l b v e r y o p e n " s y s t e m , a n s o f t w a r e w i l la b o u n d f r o m i n d e p e n d e n t u s e r s e v e r y w h e r e . I a d d i t i o n , ad e d i c a t e d m a g a z i n e , A m i g a W o r l d , a l r e a d y e x i s t s . T h i s i n s h o d d y n e w s l e t t e r , b u h i g h - q u a l i t y , f u l l c o l o u r p u b l i c a t i o n .S o u r c e s o A m i g a i n f o r m a t i o n f o p r o g r a m m e r s a l s o i n c l u d en e t w o r k s w i t h a A m i g a s e c t i o n s u c h a U s e N e t , n o t m e t i o n t h A m i g a - s p e c i f i c B B S ' s , U s e r G r o u p s , a n n e w s l e t t e r sw h i c h a r e s p r i n g i n g u p a r o u n d t h e c o n t i n e n t . T h T r a n s a c t o ra n o t h e r C o m m o d o r e - s p e c i f i c m a g a z i n e s a r a l s o c o v e r i n gt h A m i g a a o n l e v e l o r a n o t h e r .

A m i g a D O S a n t h C L

E v e n w i t h o u t b r i n g i n g p a r t i c u l a r l a n g u a g e i n t o t h s y s t e m ,y o c a d s o m e u s e f u l t h i n g s u s i n g A m i g a D O S t h r o u g h C L I .T h C L ( C o m m a n d L i n e I n t e r f a c e ) i p r o c e s s p r o v i d e d b A m i g a D O S , a n c a n b e r u f r o m W o r k B e n c h . L i k e W o r k -B e n c h , C L i u s e r i n t e r f a c e t t h s y s t e m , b u i c o m m a n d -

d i r e c t o r y m a c o n t a i n f i l e s , o r c o n t a i n o t h e r f i l e s o d i r e c t o r i e s ,d i s k d i r e c t o r y h i e r a r c h y a n a l l o d i r e c t o r y o d i s k . S o m e o t h e td i s p l a y a n o a l d i r e c t o r i e s , s o c r e a t i o n a n s i z e a l s o d i s p l a y e d ( s c r e e n a t e x t o h e ( T Y P E ) , CJ O I N f i l e s , s e o v i e w t h D A T Eh a n d l i n g a n g e n e r a l s y s t e m f u c a u s e s a n c o m m a n d o p r o g r a ma l l o w i n g y o t c o n t i n u e i t h e ce x e c u t e s ; i o t h e r w o r d s i l e t s y c o m m a n d s a r E a n E D I T , we d i t o r s . F o c o m p l e t e D O S , E a a r t i c l e s e l s e w h e r e i n t h i s i s s u e .

A l l o f t h D O c o m m a n d s a r o f i l e s , a n e x i s t i t h " d i r e c W h e n c o m m a n d i c a l l e d b n a e x e c u t e d . T h i s a r r a n g e m e n t m a k o r e n a m e c o m m a n d s a w i l l . T h h a v e a v a i l a b l e i D O i o n l y d e C d i r e c t o r y , a n y o c a c r e a t eb w r i t i n g p r o g r a m a n p u t t i n g

A n i n p u t o o u t p u t o D O c o m t t h e c u r r e n t w i n d o w ( k e y b o ad i r e c t e d t a n f i l e o d e v i c e t h a to p e r a t o r s . T h i s w a y , y o c o u l d , f

c o m m a n d s u c h a D A T E t p r i n t e r o t h s e r i a l p o r t i n s t e a d o c r e a t e c u s t o m w i n d o w o a n s i n p u t o r o u t p u t , a s y o u w o u l du s e f u l d e v i c e i t h b u i l t - i n R A d i s k d r i v e ; y o c a n c o p y t o f r o m a k e s u b - d i r e c t o r i e s , e v e n e x e m a n d s o u o R A M . T h R A d e v id e v e l o p m e n t , s i n c e y o c a n s p e e e n o r m o u s l y b d o i n g i d i r e c t l yc i a l l y a t t r a c t i v e i y o h a v e a d d i t is y s t e m .

C L I h a s a p r o v i s i o n f o b a t c h f i

t h S t a r t u p - S e q u e n c e , m a k i n g t h s y s t e m l e a v e y o i C L t t h s c r e e n b e h i n d i a n s l i d e

Page 37: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 37/84

a f t e r r e - b o o t i n g , s o t h a t y o c a u s D O d i r e c t l y w i t h o u th a v i n g t i n v o k e C L I f r o m W o r k B e n c h . Y o u m a s e u y o u rS t a r t u p - S e q u e n c e t d a n y t h i n g y o w a n t , l i k e d i s p l a y t h d a t e , c o p y y o u r f a v o u r i t e c o m m a n d s t t h R A d i s k , s t a r tg i v e n p r o g r a m , e t c .

A B a s i C : T h O r i g i n a l A m i g a B A S I C

A B a s i C f r o m M e t a C o m p C o i t h B A S I C t h a t u n t i l r e c e n t l y w a s h i p p e d w i t h e v e r y A m i g a . I i i m a n y w a y s a o l d - f a s h i o n e dB A S I C , m u c h l i k e t h a t o C o m m o d o r e 6 4 b u w i t h m a n ym o r e c o m m a n d s i i t v o c a b u l a r y . T h i s B A S I C u s e s l i n e n u b e r s , G O T O s , n i n d e n t i n g o p r o g r a m l i n e s , a n L I S T i n g o p r o g r a m s b l i n e n u m b e r j u s t l i k e i t h o l d a y s . I d o e ss u p p o r t W H I L E . W E N D c o n t r o l s t r u c t u r e , b u t h a t ' s a b o u ti f o m o d e r n f e a t u r e s . I f a c t , i t h e d i t i n g d e p a r t m e n t i t ' sb a c k t t h d a r k a g e s w h e n t e l e t y p e s r o a m e d t h c o m p u t e rr o o m s o t h e a r t h : i i l i n e - o r i e n t e d e d i t o r . N m o v i n g t h c u r s o r o v e r l i n e a n s i m p l y c h a n g i n g i t c o r r e c t i t A f i r s tt h i s c a n b e d i s a p p o i n t m e n t t t h o s e w e a n e d o C o m m o d o r e so r s i m i l a r s c r e e n - o r i e n t e d s y s t e m s , b u o n c e y o u g e u s e d t t h e d i t o r ' s c o m m a n d s , i t ' s r e a l l y n o a l t h a t t e r r i b l e .

T h l a n g u a g e i t s e l f i v e r y r i c h , a l l o w i n g m o u s e i n p u t , t h c r e a t i o n o r e a l w i n d o w s w i t h a l t h e u s u a l g a d g e t s , c o m p l e t es e o g r a p h i c s i n s t r u c t i o n s ( w h i c h w o r k i t h b l i n k o a e y t h a n k s t t h A m i g a ' s c u s t o m g r a p h i c s c h i p s ) , s p e e c h a n s o u n d c a p a b i l i t i e s , e r r o r t r a p p i n g , a n j u s t a b o u t a n y t h i n g e l s ey o c o u l d a s k f o f u n c t i o n - w i s e . F i l e h a n d l i n g i q u i t e s o p h i s t ic a t e d , a n d w o r k s i s i m i l a r m a n n e r t I B P C ' s B A S I C ;r a n d o m f i l e r e c o r d s a r e m a p p e d t s t r i n g v a r i a b l e s w i t h t h F I E L D c o m m a n d . W i n d o w s a r e t r e a t e d a s f i l e s a n c a b P R I N T e d t a n I N P U T f r o m . A l g r a p h i c s a n m o u s e i n p u tp a r a m e t e r s a r a l w a y s r e l a t i v e t t h e c u r r e n t l y a c t i v e w i n d o w ,a l l o w i n g t h u s e r t m o v e a r o u n d a n y w i n d o w s t h a t p r o g r a mi u s i n g w i t h o u t t h p r o g r a m e v e n k n o w i n g u n l e s s i w a n t st o D e b u g g i n g i n s t r u c t i o n s i n c l u d e T R A C E , a n w o n d e r f u lc o m m a n d c a l l e d F O L L O W w h i c h a l l o w s y o t t r a c e a n v a r i a b l e a n o b s e r v e i w h e n e v e r i c h a n g e s v a l u e . T h c o m a n d s o A B a s i C c o v e r s u c h w i d e r a n g e o f u n c t i o n s t h a tt h e r e ' s n w a t l i s t t h e m a l h e r e . S u f f i c e i t s a t h a t a f a a

h a p p i l y w a i t i n g f o y o u r r e t u r n .b e t w e e n B A S I C a n W o r k B e n c hw h i c h m a b e x e c u t i n g , l i k e B t h a v e a c c e s s t C L a a n t i y o u r c u r r e n t p r o g r a m , a n d e v e ns c r e e n . Y o c a e v e n b r i n g u a o t h e m r u n n i n g i t h e i r o w s ca r o u n d a n w o r k w i t h w h i c h e v e ru a m a n y B A S I C s a y o u h a v eu n l e s s y o h a v e m o r e t h a n t h d e f a u l t A B a s i C s c r e e n i 3 2 w h i c h a l l o w s f o 4 c h a r a c t e r sc o m m a n d , y o c a c h a n g e t c o l u m n s .

Y o c a d e f i n i t e l y w r i t e s o m eA B a s i C , a n f o m a n y a p p l i c a t i o s i n c e i i j u s t a o r d i n a r y B A S Id i f f i c u l t t d e b u g , a a l v a r i a b l p a r a m e t e r s t s u b r o u t i n e s ) , a n p o i n t i n g t n u m b e r b l i n e c a w F o m a j o r a p p l i c a t i o n s , t h i n g s c a b u i y o u ' r e u s e d t t h a t s o r t o l af i n e . O t h e r t h a n t h l i n e e d i t o r , i B A S I C o a n p r e v i o u s C o m m o d o

A m i g a B a s i c F r o m M i c r o s o f t

M i c r o s o f t ' s A m i g a B a s i c i t h r e b e i n g s h i p p e d w i t h a l n e A m i g w i t h A B a s i c , s e e y o u r d e a l e r a b oA m i g a B a s i c . A m i g a B a s i c i a u p o w e r f u l , f a s t a n c o m p l e t e l y s t b e r s a r e n o t r e q u i r e d , a n y o u r p w i n d o w f r o m t h m a i n r u n " wg r a m o u t p u t a n l e t s y o e n t e r dW H I L E . W E N D a n I . . c o n s t r u c t s e x i s t , a n r e a l s u b - p r a r i n v o k e d b y n a m e a n c a n b e o a r r a y s . I n s h o r t , t h i s B A S I Cl a n g u a g e w h i c h i i n t e r a c t i v e , p o

Page 38: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 38/84

Page 39: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 39/84

Page 40: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 40/84

A M I G A D O C L C o m m a n d b R o R e d d y , T o r o n t o , O n t a r i o

T h f o l l o w i n g a r t i c l e i m e a n t a s a q u i c k r e f e r e n c e c a r d f o t h o s e u s e r s w i t h o u t a A m i g a D O S M a n u a l . A t t i m e o w r i t i n g C o m m o d o r e s t a t e s t h a t t h e y a r e s u p p l y i n g A M I G Ad e v e l o p e r s w i t h t h A M I G A m a n u a l s e t s a n t h a t t h e y h o p et h a v e t h e s e m a n u a l s a v a i l a b l e t e n u s e r s i e a r l y 1 9 8 6 .T h m a n u a l s w i l l b s o l d t h r o u g h t h s a m e r e t a i l o u t l e t s t h a tA M I G A c o m p u t e r s m a b p u r c h a s e d .

S i n c e t h m a n u a l s e t s a r e n o t a v a i l a b l e t e v e r y A M I G Au s e r a t h i s t i m e t h i s a r t i c l e b e c o m e s m o r e t i m e l y . T h m a n d a t e o t h i s a r t i c l e i t o o f f e r a q u i c k r e f e r e n c e t t h c o m m a n d s a v a i l a b l e i A m i g a D O S . I i n o p o s s i b l e t c o v e r t h c o m m a n d s i m o r e d e t a i l t h a n t h m a n u a l sw i t h o u t b e i n g l a r g e r t h a n t h m a n u a l s .

T h A m i g a D O S e n v i r o n m e n t i v e r y h e l p f u l , i f a c t i h a s o r t o b u i l t - i n h e l p . I y o r e m e m b e r t h c o m m a n d b u f o r g e t t h e p a t t e r n f o t h a r g u m e n t s y o u c a n a s A m i g a -D O t s h o w y o u . T h s y n t a x f o t h i s k i n d o h e l p i

C o m m a n d s p a c e r e t u r n

F o r m a t ( N u m e r i c B r a c k e t s n u m e r i c i n p u t r e q u i r e d

/ a r g u m e n t m u s t u s t h i s k e yE g T Y P E f i l e O P ; T h e " H

s p e c i f i e

/ a r g u m e n t i u s e d a s s w i t c E g L I S T Q U I C K D A T E ; L i s t s

l e n a m ea r f u n c

I f u t u r e i s s u e s t h c o m m a n dc o u l d b f u r t h e r d i s c u s s e d b u c o m m a n d s t h a t a r a v a i l a b l e i

T h A m i g a D O S C o m m a n d s Q

I f i l e o r d i r e c t o r y n a m e s , c o l t o r y , a n s l a s h ( / c a b e u s e da n f i l e n a m e c o n t a i n s s p a c e s , d t h e n t i r e f i l e n a m e . S o m e e x a m p l

d f d g o l d f i s h ; r e f e r s t f i l ed i r e c t o r y o d

F i l e U t i l i t i e s

Page 41: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 41/84

c o m m e n t c h a r a c t e r . A l l o w s c o m m e n t s f o u s i b a t c h f i l e s ( E x e c u t a b l e s e q u e n c e s o D O c o m m a n d s )

F o r m a t [ < c o m m a n d > ] [ < c o m m e n t > ]T e m p l a t e " c o m m a n d " " c o m m e n t "E x a m p l e sc o p y D F O : c / l i s t t r a m : C o p y l i s t p r o g r a m t R A d r i v el i s t D F 1 : d i s p l a y d i r e c t o r y o D F 1 : d r i v e

D i r e c t c o m m a n d i n p u t a n o u t p u t r e s p e c t i v e l y . A l o w s r e d i r e c t i o n o c o m m a n d ' s i n p u t o o u t p u t t f i l e o d e v i c e

F o r m a t < c o m m a n d > o [ < a r g > ]T e m p l a t e c o m m a n d T F R O M a r g s "E x a m p l e sD A T E > d a t e - f i l e ; s e n d c u r r e n t d a t e t " d a t e - f i l e "E C H O S E R : M e s s a g e f r o m A m i g a " ; s e n d m e s s a g e t o s e r i a l p o r t

C O P Y c o p i e s o n f i l e t a n o t h e r , o r c o p i e s a l t h f i l e s f r o mo n d i r e c t o r y t a n o t h e r .

F o r m a t C O P Y [ F R O M ] < n a m e > [ T < n a m e > [ A L L ] [ Q U I E T ]T e m p l a t e C O P Y F R O M , T O / A , A L L / S , Q U I E T / SE x a m p l e sC O P Y D F O : T D F 1 : A L L Q U I E T ; c o p y a l l f i l e s f r o m d r i v e t d r i v e

w i t h o u t p r i n t i n g " c o p y i n g . . . " m e s s a g e sC O P Y E x t r a s : d e m o s / m y p r o g T D F l : b a s i c d e m o s / ; c o p y " m y p r o g

f r o m d i r e c t o r y d e m o s " o d i s k E x t r a s " t t h d i r e c t o r yb a s i c d e m o s " o t h e d i s k i d r i v e 1 k e e p i n g t h s a m e f i l e n a m e

C O P Y p r i n t - f i l e T P R T : ; s e n d p r i n t - f i l e " t p r i n t e r

D E L E T E d e l e t e s u t 1 f i l e s o d i r e c t o r i e s .

F o r m a t D E L E T E < n a m e > [ < n a m e > ] [ A L L ] [ Q o Q U I E T ]T e m p l a t e D E L E T E , , , , , , , , , , A L L / S , Q = Q U I E T / SE x a m p l e sD E L E T E o u t - d a t e d - f i l e ; d e l e t e " o u t - d a t e d - f i l e " i c u r r e n t d i r e c t o r yD E L E T E t e m p s / f i l e l t e m p s / f i l e 2 ; d e l e t e " f i l e l " a n " f i l e 2 " i

d i r e c t o r y t e m p s "

D I s h o w s f i l e n a m e s i d i r e c t o r y .

F o r m a t D I [ < n a m e > ] [ O P T o o A l T e m p l a t e D I " D I R . O P T / K "E x a m p l e s

E D I T e n t e r s a l i n e b l i n e

F o r m a t E D I T [ F R O M ] < n a m e >[ W I T H < n a m e > [ V E R

T e m p l a t e E D I T F R O M / A , T O , W I E x a m p l e s :E D I T e d - f i l e W I T H e d i t s V E n i l : ; G

e d i t e d - f i l e " , a n d d o n o p r i n t a E D I T o r i g - f i l e T n e w - f i l e

F I L E N O T E a t t a c h e s a n o t e w i t h s p e c i f i e d f i l e .

F o r m a t F I L E N O T E [ F I L E ] < f i l e T e m p l a t e F I L E N O T E F I L E / A . C E x a m p l e sF I L E N O T E m y - p i c t u r e C O M M E N TF I L E N O T E s r c - f i l e C O M M E N T s o u

J O I N c o n c a t e n a t e s u t

F o r m a t J O I N < n a m e > < n a m e >T e m p l a t e J O I N , , , , , , , , , A S / A / KE x a m p l e s J O I N s r c - f i l e s r c - f i l e 2

J O I N t e x t d a t a r e s u l t s A

L I S T e x a m i n e s a n d d i s p l f i l e o d i r e c t o r y .

F o r m a t L I S T [ D I R ] < d i r > [ o [ N O D A T E S ] [ T 0 < n a m e [ U P T O < d a t e > ] [ Q U I C K

T e m p l a t e L I S T D I R , P P A T / K , K EN O D A T E S / S , T O / K , S / K ,

E x a m p l e sL I S T D F 1 : ; L i s t a l f i l e s o d i s k s i r L I S T ? ; L i s t a l f i l e s i c u r r e n t d i r e

i l e n g t hL I S T : 1 h a n d l e r ; L i s t a l f i l e s i d i r

t h c h a r a c t e r s " h a n d l e r " s o m e w L I S T S I N C E Y E S T E R D A Y ; L i s t a l f i l e

M A K E D I R c r e a t e s a d i r e c t o r y w

F o r m a t M A K E D I R < d i r > T E x a m p l e s

R E N A M E r e n a m e s f i l e o r d i r e c t o r y . S O R T s o r t s s i m p l e f i l e s .

Page 42: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 42/84

F o r m a t R E N A M E [ F R O M ] < n a m e > [ T o A S < n a m e >T e m p l a t e R E N A M E F R O M / A , T O A S / AE x a m p l e sR E N A M E O L D - N A M E N E W - N A M ER E N A M E r a m x / f i l e l A n e w - f i l e

S E A R C H l o o k s f o a s p e c i f i e d t e x t s t r i n g i a l t h f i l e s o d i r e c t o r y .

F o r m a t S E A R C H [ F R O M ] < n a m e > o < p a t t e r n > [ S E A R C H ]< s t r i n g > [ A L L ]

T e m p l a t e S E A R C H F R O M , S E A R C H / A , A L L / SE x a m p l e sS E A R C H D F O : m y - n a m e ; S e a r c h f o t h t e x t m y - n a m e " i t h r o o t

d i r e c t o r y o t h e d i s k i d r i v e 0S E A R C H D F 1 : s o u r c e A L ; S e a r c h f o t h t e x t i t h r o o t d i r e c t o r y

a n a l t h d i r e c t o r i e s t h e r e i n o d r i v e

F o r m a t S O R T [ F R O M ] < n a m e >< n > ]

T e m p l a t e S O R T F R O M / A , T O / A , C E x a m p l e sS O R T f i l e T s o r t e d - f i l eS O R T l i s t T s o r t - l i s t C O L S T A R T

b y t e i e a c h r e c o r d a s s o r t k e

T Y P E t y p e s a f i l e t t h ss p e c i f y a s t e x t o r h e x

F o r m a t T Y P E [ F R O M ] < n a m e >T e m p l a t e T Y P E F R O M / A , T O , O P TE x a m p l e sT Y P E p r e f e r e n c e s O P ; p r i n t h e T Y P E : s / s t a r t u p - s e q u e n c e ; p r i n t f i l eT Y P E s o m e - f i l e T s e r : ; s e n d s o m e

C L C o n t r o lB R E A K s e t s a t t e n t i o n f l a g s i n g i v e n p r o c e s s .

F o r m a t B R E A K < t a s k > [ A L L ] [ C [ D [ E [ F T e m p l a t e B R E A K " T A S K / A , A L L / S , C / S , D / S , E / S , F / S "E x a m p l e sB R E A K ; S e n d C T R L - C t t a s kB R E A K F ; S e n d s a C T R L - D a n C T R L - F t t a s kC s e t s c u r r e n t d i r e c t o r y a n d / o r d r i v e .

F o r m a t C [ < d i r > ] T e m p l a t e C " D I R "E x a m p l e sC R A M : ; S e t r o o t d i r e c t o r y i R A M - d i s k a t h c u r r e n t d i r e c t o r yC D F l : t e m p / l ; s e t d i r e c t o r y " 1 " i d i r e c t o r y " t e m p " o d i s k i

d r i v e a t h e c u r r e n t d i r e c t o r y

E N D C L I e n d s a n i n t e r a c t i v e C L p r o c e s s .

F o r m a t E N D C L I T e m p l a t e E N D C L IE x a m p l e s : E N D C L IN E W C L I c r e a t e s n e i n t e r a c t i v e C L p r o c e s s .

F o r m a t N E W C L I [ < w i n d o w > ]T e m p l a t e N E W C L I " W I N D O W "

R U e x e c u t e s c o m m a n d sC o n t i n u e s C L a c o

F o r m a t R U < c o m m a n d >T e m p l a t e R U c o m m a n d

c o m m a n dE x a m p l e s :R U T Y P E : s / s t a r t u p - s e q u e n c eR U N C O P Y : c / l i s t T R A M :

C R A M :L I S T

S T A C K d i s p l a y s o s e t s t h s

F o r m a t S T A C K [ < n > ]T e m p l a t e S T A C K S I Z EE x a m p l e sS T A C KS T A C K 9 0 0 0

S T A T U S d i s p l a y s i n f o r m a t i o r e n t l y i e x i s t e n c e .

F o r m a t S T A T U S [ < p r o c e s s > ] [ F

C o m m a n d S e q u e n c e C o n t r o l

Page 43: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 43/84

E C H OF o r m a t

E x a m p l e sE X E C U T EF o r m a tT e m p l a t eE x a m p l e s

F A I L A T

F o r m a tE x a m p l e s

I

F o r m a t

T e m p l a t eE x a m p l e s

d i s p l a y s t h e m e s s a g e s p e c i f i e d i c o m m a n d a r g .

E C H O s t r i n g T e m p l a t e E C H O "

E C H O T h i s s t r i n g w a e c h o e d t t h s c r e e n

E X E C U T E < c o m r n a n d f i l e > [ a r g u m e n t s ]E X E C U T E c o m m a n d - f i l e " , a r g s "E X E C U T E : s / s t a r t u p - s e q u e n c e

f a i l s c o m m a n d s e q u e n c e i p r o g r a m r e t u r n s a e r r o r c o d e g r e a t e r t h a n o e q u a l t s p e c i f i e d n u m b e r .

F A I L A T < n T e m p l a t e F A I L A T r c l i mF A I L A TF A I L A T 1

t e s t s s p e c i f i e d a c t i o n s w i t h i n c o m m a n d s e q u e n c e .

I [ N O T ] [ W A R N ] [ E R R O R ] [ F A I L ] [ < s t r i n g > E < s t r i n g > ] [ E X I S T S < n a m e > ]I " N O T / S , W A R N / S , E R R O R / S , F A 1 L / S , , E Q / K , E X 1 S T S / K "

I E X I S T S : c / c d ; e x e c u t e c o m m a n d s u t E N D 1 F i t h f i l e c i i d i r e c t o r y o r o o t d i r e c t o r y

A S S I G N

F o r m a tT e m p l a t eE x a m p l e s :A S S I G N t e

L A F o r m a tE x a m p l e s

Q U I T

F o r m a tE x a m p l e s

S K I P

F o r m a tE x a m p l e s :

W A I T

F o r m a tT e m p l a t eE x a m p l e s

d e f i n e s a l a b e l ( s e e S

L A < s t r i n g > T e L A e r r o r - l o c a t i o n

e x i t s f r o m c o m m a n dc o d e .

Q U I T [ < r e t u m c o d e > ] T e Q U I T 1 Q U I T

j u m p s f o r w a r d t L A L A B ) .

S K l P < I a b e l > T e S K I PS K I P e r r o r - l o c a t i o n

w a i t s f o r , o u n t i l , s

W A I T < n [ S E C o S E C S ] W A I T " , S E C S E C S / S , M I W A I T ; W a i t o n s e c o n dW A I T U N T I L 1 2 : 2 5W A I T M I

S y s t e m a n S t o r a g e M a n a g e m e n ta s s i g n s a l o g i c a l d e v i c e n a m e t a d i r e c t o r y o f l e n a m e .

A S S I G N [ [ < n a m e > ] < d i r > ] [ L I S T ]A S S I G N " N A M E , D I R , L I S T / S "

l p D F O : s o u r c e / f i l e sA S S I G N ; S h o w a l c u r r e n t a s s i g n m e n t s

D A T E

F o r m a tT e m p l a t e

d i s p l a y s o s e t s t h s y s t e m d a t e a n t i m e .

D A T E [ < d a t e > ] [ < t i m e > ] [ T o V E < n a m e > ]D A T E " D A T E , T 1 M E , T O V E R / K "

F A U L T

F o r m a tE x a m p l e s :F A U L T 1 2 F A U L T 1 3 F O R M A TF o r m a tT e m p l a t eE x a m p l e s

d i s p l a y s m e s s a g e s c o re r r o r c o d e s .

F A U L T [ < n > ] T e

; D i s p l a y e r r o r m e s s a g e # 1 2 3 4 2 4 5 ; D i s p l a y l i s t o m e s

f o r m a t s a n i n i t i a l i z e s

F O R M A T D R I V E < d r i v e nF O R M A T " D R I V E / A / K , NF O R M A T D R I V E D F O : N A

Page 44: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 44/84

A M I G A E d i t o r C o m m a n d b R o R e d d y , T o r o n t o , O n t a r i o

T h e r e a r t w e d i t o r s t h a t c o m e w i t h e v e r y A M I G A a p a r t o t h W O R K B E N C H d i s k e t t e . T h e n a m e s a r e ' E D ' a n ' E D I T . T h e y a r e ,r e s p e c t i v e l y , s c r e e n e d i t o r a n l i n e e d i t o r . T h i s a r t i c l e i m e a n t t b q u i c k r e f e r e n c e t t h c o m m a n d s a v a i l a b l e i e a c h e d i t o r .

E T h S c r e e n O r i e n t e d E d i t o r

T h t e m p l a t e f o t h s c r e e n e d i t o r " E D " i

E " F R O M / A , S I Z E / K "

. . w h e r e t h ' F R O M ' a r g u m e n t i t h f i l e t b e d i t e d . E a l l o w s

f o f i l e o 4 0 , 0 0 0 b y t e s a t h e n t h ' S I Z E ' s w i t c h m a b ' E D ' h a s t w o c a t e g o r i e s o c a n e x t e n d e d c o m m a n d s . I m m o k e y s t r o k e s p e r f o r m e d w h i l ei m m e d i a t e c o m m a n d s a r ca n o t h e r k e y . E x t e n d e d c o m m am o d e . T h e 2 5 t h r o o t h s c c o m m a n d l i n e a n i e n t e r e dc o m m a n d s a r a v a i l a b l e i bc o m p r i s e t h q u i c k r e f e r e n c e f

I m m e d i a t e C o m m a n d sC u r s o r M o v e m e n t I m m e d i a t e C o m m a n d s

C u r s o r U m o v e s c u r s o r U C u r s o r D O W N m o v e s c u r s o r D O W NC u r s o r R I G H T m o v e s c u r s o r R I G H TC u r s o r L E F T m o v e s c u r s o r L E F TB A C K S P A C E m o v e s c u r s o r l e f t a n e r a s e s c h a r .

C T R L + AC T R L + BC T R L + D

C T R L + E

C T R L + F

C T R L + GC T R L + H

I n s e r t L i n e a f t e r t h e c u r r e n t l i n eD e l e t e t h e c u r r e n t l i n ea l m o s t e q u i v a l e n t t C U R S O R U P s c r o l l sd o w nm o v e t o p p o s i t e ( t o p o b o t t o m ) c o r n es c r e e n .

D E E S R E T U R N

T A

d e l e t e s c h a r a c t e r u n d e r c u r s oE n t e r s t h e e x t e n d e d c o m m a nr e t u r n c u r s o r t l e f t e d g e a n b b r o k e n i t w o .m o v e s c u r s o r t n e x t T A p o

C T R L K e C o m m a n d sC T R L + IC T R L

e x C T R L

o C T R LC T R L + T

f l i p s t h e c a s e o t h e c h a r a c t e r u n d e r t h c u r - C T R Ls o w i l l r e p e a t t h l a s t E x t e n d e d c o m m a n de q u i v a l e n t t B A C K S P A C E

C T R L + VC T R L + [C T R L + ]

e q u i v a l e n t t T A e q u i v a l e n t t R E T U R Nd e l e t e s s p a c e s u n t i l n e x t n o n -a D E i n o t a s p a c em o v e s c u r s o r t t h s p a c e f o m o v e s c u r s o r t t h s t a r t o ta l m o s t e q u i v a l e n t t C U R S O w i l l u p d a t e o r e d r a w t h s c re q u i v a l e n t t E S m o v e c u r s o r t o p p o s i t e ( l e f t

E x t e n d e d C o m m a n d sE S o C T R L + [ s t a r t s t h e x t e n d e d m o d e . S o m e e x t e n d e d c o m m a n d s c a c o n t a i n a d d i t i o n a S t r i n g s m u s t b d e l i m i t e d b c h a r a c t e r o t h e r t h a n l e t t e r s , s p a c e , n u m b e r s , b r a c k e t s , o r s e m i c o l o a c c e p t a b l e d e l i m i t e r a n w i l l b e u s e d i t h e x a m p l e s i t h i s a r t i c l e .

A / s t r / i n s e r t l i n e o f t e x t " s t r " A f t e r c u r r e n t l i n em o v e c u r s o r t t h B o t t o m o t h f i l e L

B s e t h B l o c k E n a c u r s o r p o s i t i o nB / s t r / s e a r c h f o ' s t r i n g ' B a c k w a r d s

J o i n s t h e c u r r e n t l i ns e E t d i s t i n g u i s hM o v e s t h e c u r s o r t m o v e s t h e c u r s o r t

E D I T : A m i g a ' s L i n e O r i e n t e d E d

Page 45: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 45/84

b R o R e d d y , T o r o n t o , O n t a r i o

T h i s a r t i c l e d e s c r i b e s t h e l i n e o r i e n t e d E d i t o r o A m i g a D O S c a l l e d' E D I T ' . T h d o c u m e n t a t i o n c o v e r i n g ' E D I T ' i t h A m i g a m a n u a l" A m i g a D O S U s e r ' s M a n u a l " i 3 5 p a g e s l o n g . T h i s a r t i c l e a n t h f o l l o w i n g p a g e s w i l l a c a s q u i c k r e f e r e n c e g u i d e o n l y a n c a n n o tc o v e r t h i s E d i t o r i a m u c h d e t a i l a s t h e m a n u a l .C o m m o d o r e f u l l s c r e e n E d i t o r s h a v e s p o i l e d m t h u s m a k i n g i h a r dt g e i n t e r e s t e d i s t u d y i n g l i n e E d i t o r . E D I T h o w e v e r o f f e r s q u i t eb i o p o w e r i n t h a t i c a m o d i f y f i l e s u s i n g c o m m a n d s f r o m a n o t h e rf i l e c a l l e d a " E d i t C o m m a n d F i l e " . T h f o l l o w i n g d e s c r i b e s E D I T ' sf o r m a t a n t e m p l a t e

F o r m a t E D I T [ F R O M ] < n a m e > [ T O ] < n a m e > ] [ W I T H < n a m e > ][ V E R < n a m e > ] [ O P T P n : W n : P n W n ]

T e m p l a t e E D I T F R O M / A , T O , W I T H / K , V E R / K , O P T / K

E D I T h a s o m e l i m i t a t i o n s , t h f i r s t o w h i c h , y o w i l l d i s c o v e r , i t h a ty o u c a n n o t c r e a t e n e f i l e u s i n g E D I T . F o r t h i s r e a s o n t h e ' F R O M 'a r g u m e n t m u s t e x i s t e v e n t h o u g h t h k e y w o r d ' F R O M ' i o p t i o n a l .

T h a r g u m e n t ' T O ' i n s t r u c t s E D I T w h a t f i l e n a m e t g i v e t h e d e s t i n at i o n f i l e . I t h e ' T O ' a r g u m e n t i o m i t t e d E D I T c r e a t e s f i l e a n w i l l

r e n a m e i w i t h t h ' F R O M ' n a m e w h f i l e i s s a v e d a ' : T / E D 1 T - B A C K U P ' a n

T h ' W I T H ' f i l e i s t h " E D I T C o m m aa d d i t i o n a l e d i t i n g p o w e r . T h ' V E R ' f m e s s a g e s t h a t m a h a v e b e e n g e n e r ae i t h e r t h ' W I T H ' o ' V E R ' a r g u m e n t k e y b o a r d a n s c r e e n f o i n p u t a n o u E D I T h a m e m o r y a n l i n e w i d t h d e f t h ' O P T ' k e y w o r d a n d e i t h e r / b o t h t ' P a r g u m e n t y o c a a d j u s t t h a m r e t a i n p r e v i o u s l i n e s . T h ' W a r g u m l e n g t h u s e d b y E D I T . T h d e f a u l tP 4 0 W 1 2 0 4 p r e v i o u s l i n e s r e t a i n e dT h i s t a b l e d e s c r i b e s t h a b b r e v i a t i o g u i d e .

/ q s / q u a l i f i e d s t r i n g < f H s t r i n g s

l i n e n u m b e r , o

m o v e c h a r a c t e r p o i n t e r l e f tm o v e c h a r a c t e r p o i n t e r r i g h td e l e t e c h a r a c t e r a p o i n t e r < S P A C E >

C h a r a c t e r P o i n t e r C o m m a n d sl o w e r c a s e c h a r a c t e r a p o i n t e r P / q s /u p p e r c a s e c h a r a c t e r a p o i n t e r P / q s /t u r n c h a r a c t e r a p o i n t e r t s p a c e P

m o v e c m o v e c r e s e t c h

C u r r e n t L i n e P o s i t i o n i n g C o m m a n d s F i l e S e a rn m o v e t l i n e

m o v e t h i g h e s t l i n e i m e m o r ym o v e t l o w e s t l i n e i n m e m o r y

m o v e t N e x t l i n e i m e m o r y / q s /m o v e t P r e v i o u s l i n e i m e m o r y B / q s /

R E W I N D m a k e c u r r e n t l i n e l i n e # o s o u r c e f i l e D / q s /s e a r c s e a r c s e a r c

T e x t D i s p l a y a n V e r i f i c a t i o n C o m m a n d s? v e r i f y c u r r e n t l i n e

v e r i f y w i t h c a s e i n d i c a t o r st y p e l i n e s u n t i l e n o f i l et y p e l i n e s f o r w a r d

T t y p e n l i n e s w i t h l i n e n u m b e r sT m o v e s t l o w e s t l i n e t h e n t y p e l i n e s

s s w i t c h t t u r n o n / o f f l i n e d i s p l a y v e r i f i c a t i o n

C o m m a n d s T h a t O p e r a t e G l o b a l l yG / q s / t / G l o b a l l y p l a c e s t r i n g I A f G A / q s / t / G l o b a l l y p l a c e s t r i n g I B eG / q s / t / G l o b a l l y e x c h a n g e s t r i n g / C [ n C a n c e l G l o b a l o p e r a t i o n [ n D [ n D i s a b l e G l o b a l o p e r a t i o n [ E [ n E n a b l e G l o b a l o p e r a t i o n [ n S H S h o w i n f o r m a t i o n a b o u t G l

C o m m a n d s T h a t O p e r a t e O T h C u r r e n t L i n e/ q s / t / i n s e r t s t r i n g I A f t e r s t r i n g / q s / o c u r r e n t l i n e

A / q s / t / s a m e a a b o v e b u m o v e s c h a r a c t e r p o i n t e r

I n p u t / O u t p u t R e d i r e c t i o nF R O M r e a d F r o m s o u r c e ( o r i g i n a lF R O M < f r e a d F r o m f i l e < f

Page 46: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 46/84

P i c k A r e a sa n P o M e n u s G r a v e n h

D r o p - D o w n M e n u s F o Y o u r C o m m o d o r e 6

S u c h t i t l e d e f i n i t e l y n e e d s e x p l a i n i n g . W h i l e r e a d i n g o t h e rc o m p u t e r l i t e r a t u r e , y o m a h a v e h e a r d t h t e r m ' P O P M E N U S ' .' P i c k A r e a s ' a r j u s t a c o m m o n , b u l e s s d o c u m e n t e d . T h e s ef e a t u r e s a r e n o a v a i l a b l e o y o u r C - 6 4 w i t h t h h e l p o a s h o r ta s s e m b l y l a n g u a g e p r o g r a m .

P o M e n u s a r j u s t w h a t t h e y s o u n d l i k e . m e n u t h a t c a b ' p o p p e d o n t h s c r e e n f o d e c i s i o n t b m a d e , t h e n b ' p o p p e do f a g a i n w h e n t h e d e c i s i o n h a b e e n m a d e . Y o c a d j u s t a b o u tt h s a m e i B A S I C , h o w e v e r t h m a c h i n e l a n g u a g e v e r s i o n p r es e n t e d h e a r h a m o r e f e a t u r e s . I a u t o m a t i c a l l y r e m e m b e r s w h a tw a p r e s e n t o t h s c r e e n w h e n i w a ' p o p p e d o n a n w i l l r e s t o r et h i n f o r m a t i o n b a c k t t h s c r e e n a g a i n w h e n i i ' p o p p e d o f f , ' a w e l l a r e m e m b e r i n g t h c o r r e c t c o l o r s . T h p o m e n u o t h s c r e e n a l s o c o m e s c o m p l e t e w i t h b o r d e r a n a r e v e r s e f i e l d l i n ef o s e l e c t i n g t h e a p p r o p r i a t e i t e m i t h m e n u .

P i c k a r e a s a r e a r e a s o t h e s c r e e n g i v e n ( X , Y ) p o s i t i o n , w i d t h a n h e i g h t a n f i n a l l y a I n u m b e r . W h e n a p o i n t e r o t h s c r e e n i m o v e d i n t o P i c k A r e a , t h e a r e a i h i g h l i g h t e d ( r e v e r s e d ) a n f l a g i s e t t e l l t h m a i n p r o g r a m t h a t t h e p o i n t e r h a b e e n m o v e di n t o a P i c k A r e a . T h i s m a n o s e e m l i k e m u c h , b u i p a v e s t h w a f o p o w e r f u l m e n u a n s e l e c t i n g f e a t u r e s t b a d d e d t b a s i c p r o g r a m v e r y e a s i l y . T h p o i n t e r i a i n t e g r a l p a r t o t h i sp a c k a g e a n i o p e r a t e s f r o m t h e c u r s o r k e y s w h e n t h e y a r e n o t i u s e . ( i . e . d u r i n g r u o B A S I C p r o g r a m w h e n n i n p u t i b e i n ga c c e p t e d ) .

T h P I C K A R E A a n P O M E N U m a c h i n e l a n g u a g e p r o g r a m i v e r y e a s y t u s e . T h e r e a r j u s t f e S Y S ' s t u s ( 5 a n y o c a b o y o u r w a t a g r e a t l o o k i n g p r o g r a m . T h f i r s t S Y t u r n s o t h P I C K p r o g r a m , i i s

. w i l l d e l e t e t h e P i c k A r e a w i A r e a s .

S Y

. w i l l t u r n o f t h P I C K p r o g r as c r e e n . W h i l e t h P I C K p r o g r P I C K a r e a , i t ' s I w i l l b p l a c e d

T h l a s t S Y i f o u s w i t hp r o g r a m d o e s n o h a v e t b a c tu s e a p o p - m e n u ,

S Y 4 9 1 5 8 ,

. w i l l c r e a t e p o m e n u a ( X a n h e i g h t u s i n g c o l o r

s t r i n g o d a t a w i t h w h i c h t f i p l a c e s a b o r d e r a r o u n d i t t h w i( H - 2 ) a n t h n u m b e r o l i n e sn e e d s n c u r s o r c h a r a c t e r s t b ' w r a p ' i n s i d e t h e a r e a a u t o m a t i c

I m e n u w a t b c r e a t e d h ab e i n g 6 c h a r a c t e r s l o n g , a n t s e p a r a t e l i n e s ' W H I T E , B L A C K w o u l d b e d o n e . D e f i n e s t r i n g

A $ " W H I T E B L A C S Y 4 9 1 5 8 , 0 , 0 , 8 , 6 , 1

T h i s w o u l d p l a c e p o m e n u a i t N O T E : t h s t r i n g i t b e x a cl a c k t h e r e o f i i m p o r t a n t . O n c e

P o M e n u s D e m o P r o g r a m P o M e n u s B A S I C L o a d e r

Page 47: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 47/84

A J

A M M L

O C K

O I

H O N

C E

M C F P I

M J

I H

K P F K G G C M M

O P E F M

9 5 i f f l - t h e n 2 0 1 0 p e e k ( 4 9 1 5 2 ) p e e k ( 4 9 1 5 3 ) * 2 5 6 p e e k ( 4 9 1 5 4 )1 1 0 i f a 4 1 0 8 t h e n 2 0 01 2 f l - 1 : l o a d " p i c k . m l p . c O O O " , 8 , 12 0 0 :3 0 h c h r $ ( 1 9 2 ) c h r $ ( 1 9 2 ) : h 2 $ h h 3 1 v c h r $ ( 2 2 1 )3 2 u l c h r $ ( 1 7 6 ) : r e u p p e r l e f t c o r n e r ( a 3 3 u r c h r $ ( 1 7 4 ) : r e u p p e r r i g h t c o r n e r ( s 3 4 l l c h r $ ( 1 7 3 ) : r e l o w e r l e f t c o r n e r ( z 3 5 l r c h r $ ( 1 8 9 ) : r e l o w e r r i g h t c o r n e r ( x 1 0 0 0 r e w i n d o w u s i n g p r o g r a m1 0 1 0 p r i n t " @ " ;1 0 3 0 p r i n t u l $ h 2 $ c h r $ ( 1 7 8 ) h 2 $ h 2 $ h 2 $ h 1 $ c h r $ ( 1 7 8 )

h 2 $ h 2 $ h 2 $ h 2 $ h 1 $ u r $ ;1 0 4 0 p r i n t v $ e x i t " v $ [ 1 s p c s ] " v $ " b a c k g r o u n d

[ s p c s ] " v $ ;1 0 5 0 p r i n t c h r $ ( 1 7 1 ) h 2 $ c h r $ ( 2 1 9 ) h 2 $ h 2 $ h 2 $ h 1

C h r $ ( 1 7 7 ) h 2 $ h 2 $ h 2 $ h 2 $ h 1 $ l r $ ;1 0 6 0 p r i n t v $ " t i m e " v 1 0 7 0 p r i n t v $ " o n [ 2 s p c s ] " v 1 0 8 0 p r i n t c h r $ ( 1 7 1 ) h 2 $ c h r $ ( 1 7 9 )1 0 9 0 p r i n t v $ " o p t s " v 1 1 0 0 p r i n t l l $ h 2 $ l r $1 2 0 0 g o s u b 6 0 0 0 01 2 1 0 g e t a $ :1 2 1 2 p r i n t " B H " ; b : i f t h e n1 2 1 4 i f a $ O c h r $ ( 1 3 ) t h e n 1 2 1 01 2 2 0 i p e e k ( 2 ) e t h e n 2 0 0 0 01 2 3 0 i p e e k ( 2 ) b t h e n 2 1 0 0 01 2 5 0 i p e e k ( 2 ) t t h e n 2 3 0 0 01 9 0 0 g o t o 1 2 1 02 0 0 0 0 a n y e s "2 0 0 1 0 s y s 4 9 1 5 8 , 0 , 0 , 5 , 4 , 1 , a 2 0 0 2 0 i f p e e k ( 5 9 9 ) t h e n s y s 4 9 1 6 4 : s t o p2 0 0 3 0 g o t o 1 2 1 02 1 0 0 0 a b l a c k w h i t e r e d [ 3 s p c s ] c y a n [ 2 s p c s ]

p u r p l e g r e e n b l u e [ 2 s p c s ] y e l l o w "2 1 0 1 0 s y 4 9 1 5 8 , 2 1 , 0 , 8 , 1 0 , 0 , a $2 1 0 2 0 p o k e 5 3 2 8 1 , p e e k ( 5 9 9 ) - 12 1 0 3 0 g o t o 1 2 1 02 3 0 0 0 i t h e n 2 3 1 0 02 3 0 1 0 z ^ ^

C I

P J J N

I E M N I

A M P K

H H

I J F G A M A G D P H N M

I E A F L P N D K G F K A

1 0 o p e n 1 5 , !1 1 0 p r i n t # 1 5 ,1 2 o p e n 1 , 8 ,

3 , 1 5' s O : p i c k . m l 2 , p i c k . m l p

1 3 p r i n t # 1 , c h r $ ( 0 ) ; c h r $ ( 1 4 r e s t a r t 3 b a s i c l o a 1 5 0 r e a d a , b , d1 6 p r i n t " n o l o a d i n g i 1 7 0 f o r k a t > 1 8 r e a d c : p r i n t # 1 , c h r $ ( c ) ; 1 9 p o k e 1 0 2 4 , c : p o k e 5 5 22 0 c c c : n e x t : c l o s e 12 1 0 i f c h O d t h e n p r i n t "2 2 p r i n t " d o n e . " : e n d9 9 d a t a 4 9 1 5 2 , 5 0 3 2 11 0 0 0 d a t a 7 1 0 1 0 d a t a 1 9 1 0 2 0 d a t a 1 6 1 0 3 0 d a t a 1 2 1 0 4 0 d a t a 1 9 1 0 5 0 d a t a 3 1 0 6 0 d a t a 1 7 1 0 7 0 d a t a 3 1 0 8 0 d a t a 7 1 0 9 0 d a t a 2 0 1 1 0 0 d a t a 3 1 1 1 0 d a t a 1 7 1 1 2 0 d a t a 1 9 1 1 3 0 d a t a 1 1 1 4 0 d a t a 2 0 1 1 5 0 d a t a 1 9 1 1 6 0 d a t a 3 2 1 1 7 0 d a t a 7 2 1 1 8 0 d a t a 9 3 1 1 9 0 d a t a 1 0 1 2 0 0 d a t a 7 6 1 2 1 0 d a t a 1 4 2 ,1 2 2 0 d a t a 2 1 2 3 0 d a t a 1 9 2 ,1 2 4 0 d a t a 2 5 1 ,1 2 5 0 d a t a 1 4 5 ,1 2 6 0 d a t a 2 5 1 ,1 2 7 0 d a t a 1 9 6 ,1 2 8 0 d a t a 1 4 5 ,1 2 9 0 d a t a 1 5 3 ,

1 6 4 , 1 9 7 6 , 1 8 5

0 3 1 9 6 , 2 0 12 0 1 ,2 3 4 , 1 9

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

2 1 9 3 6 1 9

1 2 9 , 1 9 1 3 6 , 1 6 1 6 9 , 6 2 4 9 , 1 6 9 ,1 6 9 , 4 0

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

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

d a

,

1

1

1 1 1 1 1 2 2

1 1

1 1 1

2 2

C B

1 4 7 0 d a t a1 4 8 0 d a t a

2 0 8

1 9 9 , 1 6 9 6 , 1 6 5

1 9 1 , 1 3 3 ,3 4 , 1 3 3 , 3 6 , 1 6 5 , 3

F E

2 1 0 0 d a t a 1 6 2 1 1 0 d a t a 2

2 5 2 3

Page 48: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 48/84

D F J D G O N A A N O P K M C L K E

A 0

1 L L D C K D F 0 G

K B M L A C N F F F

L B I

N B

I

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

1 6 9

1 0 1 1 1 4

9 1 6

9 2 0

4

2 0 1 4

6 2 5

6 1 7 2 0 2 3 1 2 2 3 1 0

1 6 4

1 8 2 4

2 4

1 7

1 3

1 7 1 9 2 4 1 9 1 9

7 1 7 1 7 1 9

4 , 1 3 3, 2 5 2 , 4 , 1 6 0 , 0

9 5 , 1 9 61 9 6 , 1 3

, 2 5 1 , 1 3 3 2 , 2 3 4

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

6 4 1 4 2 , 2 3 3

1 9 6 , 2 4 09 6 3

1 9 6 , 9 4 8 1 5 2 5 1 7

1 9 5 , 2 4 07 8 1 9

1 9 5 , 2 4 09 5 1 9 9 6 1 6 8 2 7

2 3 4 , 1 7 32 5 4 , 1 6 52 4 5 , 1 6 2 2 1 , 5

4 8 2 4 0 , 41 7 2 , 1 4 2 0 5 , 92 0 8 , 1 1 4 0 , 5 2 0 8 , 1 4

3 8 2 0 2 0 1 , 2

2 2 1 3 2 0 1 , 01 5 9 , 1 7

1 6 2 0 6 0 1 9 2 4 1 0

3 7 1 6 5 , 2 5 1 , 1 3 3 , 2 5 33 9 , 2 1 6 , 1 3 3 , 2 5 4

, 1 3 8 , 1 4 1 , 1 4 6 , 1 9 6 , 2 1 7 0 , 3 2 1 3 0 , 1 9 5 , 1 7

, 1 3 6 , 1 7 7 , 2 5 1 , 7 3 , 1 2 8, 2 0 8 , 2 4 7 , 1 7 4 , 1 4 6 , 1 9 , 1 9 5 , 2 2 4 , 1 7 , 1 7 6 ,

6 1 , 1 9 6 , 9 6 , 1 6 9 , 2 5 5, 2 0 8 , 4 1 , 1 2 7 , 1 4 1 , 2 , 2 3 4 , 1 4 1 , 2 1 3 , 1 6 9

3 8 8 9 6 2 4 , 1 1 7, 1 4 4 , 2 , 2 4 6 , 1 9

2 , 2 3 3 , 6 4 , 2 0 1 , 1 2 86 4 9 6 , 1 6 0 , 1 6 , 1 8 5

6 1 3 6 , 2 0 8 , 2 4 8 , 1 6 91 1 , 1 9 4 , 4 8 , 2 5 0 , 1 5 33 2 , 2 3 4 , 1 9 5 , 2 0 1 , 4 07 8 , 1 9 6 , 3 2 , 2 3 4 , 1 9 53 8 , 1 5 3 , 9 5 , 1 9 6 , 3 3 0 , 1 5 3 , 1 1 2 , 1 9 6 , 2

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

2 5 5 , 9 6 , 1 6 9 , 1 9 4 , 7 8 7 2 , 7 2 , 7 2 , 7

8 8 2 , 2 0 8 , 3 7 1 5 7 , 4 8 , 2 4 9 , 1 6 5 , 2 0 41 9 8 , 1 8 5 , 1 1 8 , 2 1 6 1 9 6 , 2 4 0 , 5 , 2 0 2 , 1 1 9 8 , 1 9 8 , 1 6 5 , 2 0 3 , 2 0 12 0 1 , 2 , 2 0 8 , 2 1 6 , 4

2 , 2 4 0 , 9 , 1 9 2 ,2 7 6 , 1 4 3 , 1 9 4 , 2 0 1

1 7 2 , 5 9 , 1 9 6 , 2 4 0 , 5 61 9 6 , 7 6 , 2 0 8 , 1 9 4 , 2 0 11 7 2 , 5 9 , 1 9 6 , 1 9 2 , 9 91 4 0 , 5 9 , 1 9 6 , 7 6 , 2 0 82 0 8 , 1 2 , 1 7 2 , 6 0 , 1 9 61 4 0 , 6 0 , 1 9 6 , 7 6 , 2 0 82 0 8 , 1 1 1 7 2 , 6 0 1 9

4 , 2 0 0 , 1 4 0 , 6 0 , 1 9 64 1 1 2 7 , 1 4 1 , 1 6 2 0 1 0 , 1 4 4 , 3 3 2 , 1 5 32 4 , 1 4 4 , 3 3 2 , 1 5 3

H G M K C O C N E A E H G O P

C N K K E O

I B B G A K E O

I C M G A C

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

1 9 1 3 1 9

7 2 0 1 5 1 9

1

1 9 1 5 1 4

9 1 5

2 1

1 4

0

0 0 0

P o M e n u s S o u r c e

( I O

P A G O

s y 7 0 5 . o p t o

2 ; 3 0 ; .I

5 ;

w i n d o w a n d b y d a r r e

« ( c ) 1 9 8 5 b y

1 1 0 0 1 11 0 0 1 21 0 0 1 3

I d p i c k w i d l hc m * b c f

; w i d t h a n ; h e i g h ! I

1 0 9 2 01 0 9 3 0 ; u 1 0 9 4 0

b i

c p

e p

• ; a l o p p r i n t

N ( I

1 2 9 4 01 2 9 4 5

Page 49: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 49/84

I

E P

0 N G B P M E l .

E G K

D D B A H C L

G A J D A E H 3

3 G O L v I

C N

N H

O O

C I

A ) ) I

M F

C P '

O

1 0 0 1 41 0 0 1 61 0 0 1 81 0 0 2 01 0 0 2 21 0 0 2 41 0 0 2 61 0 0 2 81 0 0 3 01 0 0 3 21 0 0 3 41 0 0 3 61 0 0 3 81 0 0 4 01 0 0 5 01 0 0 5 21 0 0 5 41 0 0 5 6 e n O1 0 0 9 01 0 1 0 01 0 2 0 01 0 2 1 01 0 2 2 01 0 2 2 51 0 2 3 01 0 2 4 01 0 2 5 01 0 2 6 01 0 2 7 01 0 2 7 21 0 2 8 01 0 2 9 0 e n 1 0 3 0 01 0 3 0 2

1 0 3 1 01 0 3 2 01 0 3 3 0

0 3 4 0 e n 0 3 5 0 e l 0 3 6 00 3 7 00 3 7 50 3 8 00 3 9 00 4 0 00 4 0 20 4 0 40 4 1 00 4 2 00 4 3 00 4 4 0 e n 0 4 5 00 4 6 00 4 7 00 4 7 50 4 8 00 4 9 00 5 0 0 e n 50 5 1 00 5 1 50 5 2 00 5 3 0

s t j s M j s j s I d I d j s I d I d s t d e I d s t I d I n n -d e d e I d j s I d

j s I d j s I d d e k l

s t d e b m I d s t d e b m b n I d s l s t I d I d j s j s I d d e b e c p b e I d I d s t i n c p b e I d j s s t i m d e I d s t s t I d

a v a i lg e t p a r a mc o l o r$ a e f d$ a d 9 e$ 6 $ 6 $ b 6 d b• ( $ 6 4 ) , y$ 4

( $ 6 4 ) , y$ 4 $ 4 e n $ 4 $ 4 • c o p y l• m a k e pp i c k h e i g h tc o l o r l i n ep i c k w i d t h

• $ 6 e( $ f b ) , y

e n • $ 4 0( M b ) , y

e n e n • $ 7 0( $ f b ) , yt e m p' $ 2 8* $ f ba d c o l o r l i n et e m p

e n • e n • • $ 5 d( $ f b ) . y

p i c k w i d t he n ( $ 4 7 ) , yc o r r a s c i i( $ f b ) . ye n

• $ 5 d( $ f b ) . yt e m pp i c k w i d t h

; s e t a v a i l f i

; g e l c o l o r; c h e c k c o m m a; e v a l i n p u t

; c l n d e s c s l

; g e l a d h

; g e t a d l

; d e c a d d r e s s; b o n

; c o p y s e c t i o n

; m a k e p n t r

; ' C = a n d S "

; S h i f t a n d . "

; " C = a n d A "

i n c r e a s e p n t r

; l i n e c n l r

; e x i t i d o n e

; S h i f t a n d - "

; g e t c h a r

; l s c r e e n

; S h i f t a n d - "

A F

H F I

M J B A F G P F P N K

M B O H B H

C F

F N A D J I D

D O G F

, i - :K H

N L J

O M C

) A

D .

K F K

, F

O

G

1 0 9 5 01 0 9 6 01 0 9 7 01 0 9 8 0H O O O e p l1 1 0 1 01 1 0 1 21 1 0 1 41 1 0 1 61 1 0 2 01 1 0 3 01 1 0 4 01 1 0 5 01 1 0 6 01 1 1 0 0 e p 1 1 1 1 01 1 1 2 01 1 1 3 01 1 1 4 01 1 1 5 01 1 1 6 01 1 1 7 01 1 4 9 9 ;1 1 5 0 0 c o l o r l i n e1 1 5 1 01 1 5 2 01 1 5 3 01 1 5 4 01 1 5 5 0 e l 1 1 5 6 01 1 5 7 01 1 5 8 01 2 0 0 0 c o p y l1 2 0 0 51 2 0 1 01 2 0 2 01 2 0 3 01 2 0 3 21 2 0 3 4

2 0 4 02 0 5 02 0 6 02 0 7 02 0 8 0

b e j s d e i m c m b u I x c l a d c m b r ( |j s i n . xi m c m b n s i I d j s I d s l r t

I d j s d e I d s l d e b p r t s t I d s t I d s l I d j s I d a n s e s l j s

e p r e v l i n e

e p

e p

* p i c k h e i g h te p r e v l i n e

e p » $ 0 de p $ 0 2 5 7• $ 8 0c o p y l

a v a i l

p i c k w i d t hi m a g e p n t r s

c o l o r( $ f d ) , y

e l

d i • $ 2 • $ t > 0$ 2 • m a k e p$ 0

$ 0 i m a g e p n t r s

2 1 0 0 t r a n s f e r f r o m ( $ f b ) t o ( $ 2 2 )2 1 1 02 1 1 5 e p 92 1 2 02 1 2 2 e p 2 1 2 42 1 2 62 1 2 72 1 2 82 1 2 92 1 3 02 1 3 2 e p a2 1 3 42 1 3 62 1 3 82 l 5 0 e p 82 1 6 02 2 0 0 ; i n c p n t r s

I d I d d e I d b p I d s t I d s t i m I d s l I d s l d e b p

p i c k h e i g h tp i c k w i d l h

d i e p ( $ 2 2 ) , y( $ f b ) , y( $ 2 4 ) , y

e p ( $ l b ) , y( $ 2 2 ) , y( $ f d ) , y( $ 2 4 ) , y

e p

; y e s; u n r e v r s l i n e

; u ; d o w n ?

; a b o t t o m; v e sl u n r e v r s l i n e

i n c r e a s e l i n e; i r e t u r n: n o p e; s e l l i n e n u ; c o p y b a c k; d a t a t s r e l e a s e p n t r

; b a c k t b a s i c

i b a c k u p p n t r s

; s e t l i n ea c c o r d i n g

; f i n i s h

; s e t ( $ 2 2 ) t

; $ b 0 0 0

m a k e a d d r e s s

; l o c k i r q s; o p e n t h r o

; c o p y f r o m m e m o r y; l s c r e e n

; c o p y f r o m s c r e e n; t m e m o r v

; f i n i s h l i n e

J H . 1 I

E D

G B K G H D F H H K L H F A N F O M F F H E M O L E \ I

M H I . N

M K

) .

\ I I I

P I

D S

M D

K M

I !

E

■ D

1 2 9 5 01 2 9 5 51 2 9 6 01 3 0 0 01 3 0 2 01 3 0 3 01 3 0 3 21 3 0 4 01 3 0 5 01 3 0 5 51 3 0 6 01 3 0 7 01 3 0 8 01 3 0 8 21 3 0 9 01 3 1 0 01 3 1 1 01 3 1 2 01 3 1 3 01 3 1 3 51 3 1 4 01 4 9 9 9 ;1 5 0 0 0 d1 5 0 1 01 5 0 2 01 5 0 3 01 5 0 5 01 5 0 6 01 5 0 7 01 5 0 8 0 1 5 0 9 01 5 9 8 9 ;1 5 9 9 91 6 0 0 01 6 0 1 01 6 0 2 01 6 0 3 01 6 0 4 01 6 0 5 01 6 0 6 01 6 0 7 01 6 0 8 0

6 0 9 06 9 9 9 ;9 0 0 0 a9 0 1 09 0 2 09 0 3 09 0 4 09 0 5 09 0 6 0 a9 0 6 9 ;9 1 0 0 c 9 1 1 09 1 2 09 1 3 09 1 4 0 c 9 1 5 09 1 6 09 1 7 0 c r9 9 9 9 ;0 0 0 0 a 0 0 1 0

Page 50: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 50/84

D v o r a k K e y b o a r d

Page 51: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 51/84

F o T h C o m m o d o r e 6 D o n a

C a l g

. . C h r i s t o p h e r L a t h a m S h o l e s c a m e u w i t h t h Q W E R T Y l a y o u tw h i c h p l a c e s t h m o s t - u s e d l e t t e r s a f a a p a r t a s p o s s i b l e . .

T h f o l l o w i n g p r o g r a m w i l l r e d e f i n e t h e C o m m o d o r e 6 k e b o a r d t t h D v o r a k l a y o u t . T h i s l a y o u t f a c i l i t a t e s m o r e e f f ic i e n t t y p i n g a n r e d u c e s f a t i g u e .

C o n t r a r y t p o p u l a r b e l i e f , t h k e y b o a r d l a y o u t t h a t t h m a j o ri t o u f a c e w h e n u s i n g o u r c o m p u t e r s i n e i t h e r t h e f i r s t , n o o n l y k e y b o a r d l a y o u t a v a i l a b l e . A w a l k n o w , t h i s k e y b o a r dl a y o u t , i n g e n i o u s l y n i c k n a m e d " Q W E R T Y " , i a a t a v i s m t h a tc o m p u t e r u s e r s h a v e i n h e r i t e d f r o m t h t y p e w r i t e r .

T h i n v e n t i o n o b o t h t h e t y p e w r i t e r a n Q W E R T Y k e y b o a r dc a n b e c r e d i t e d t g e n t l e m a n b y t h n a m e o C h r i s t o p h e rL a t h a m S h o l e s . O f t e n t i m e s h i n a m e w i l l a p p e a r i r e f e r e n c et t h l e g e n d a r y Q W E R T Y k e y b o a r d u n d e r t h p s e u d o n y m o t h " S h o l e s " k e y b o a r d . T h i s i n v e n t i o n c a m e a b o u t i t h 1 8 6 0 ' s , w i t h p a t e n t b e i n g g r a n t e d f o b o t h t h e t y p e w r i t e r a n k e y b o a r d l a y o u t t o g e t h e r . I n t r u t h , p r i o r t S h o l e s ' t y p e w r i t e rt h e r e w e r e a b o u t 5 o t h e r t y p e w r i t e r p a t e n t s i e x i s t e n c e .C u r i o u s l y , t h o u g h , t h e c u r r e n t S h o l e s l a y o u t i a c t u a l l y a i m p r o v e d v e r s i o n o h i e a r l y a t t e m p t s . N a m e l y , t h o r i g i n a ll a y o u t s p r o v e d t b t o g o o d i t h a t t h e y e n a b l e d t h o p e r at o r s t a c h i e v e c o n s i d e r a b l e t y p i n g s p e e d . C o n t r a r y t w h a t o n w o u l d e x p e c t , t h i s w a a u n w e l c o m e d f e a t u r e d u t t h i n f e r i o r m e c h a n i c s o t h t y p e w r i t e r . T h a d v a n t a g e s o h i g hs p e e d t y p i n g w e r e q u i c k l y w a s t e d d u t t h c o n s t a n t j a m m i n go t h k e y s . T " c o r r e c t " t h i s s h o r t c o m i n g , S h o l e s c a m e u w i t h

t h e u s e r s f i n g e r s . T h i s , a g a i n , p r o c o m p a r i n g t h e f f i c i e n c y o D v o r e s u l t s s h o w e d a i m p r o v e m e n t b eb e l i e f i t h a t t h a c t u a l s p e e d i n c r et h e e l i m i n a t i o n o f a t i g u e r e s u l t s i m e n t .

I s p i t e o t h e s e i m p r e s s i v e s t a t i s b e e n v e r y s l o w i c o m i n g i n t oh o w e v e r , m o s t e f f i c i e n t w i t h t h e i n c r e a s e d c o m f o r t a n s p e e d m o r er e l e a r n t y p i n g a l o v e r a g a i n . S or e c o g n i t i o n s y s t e m s t e l i m i n a t e g e t h e r , h e r e g o e s . .

L a d i e s a n G e n t l e m e n , S t a r t Y

T g e s o m e h a n d s o e x p e r i e n c e ,i n B a s i c l o a d e r p r o g r a m n a m e dt h p r o g r a m i s a v e d b e f o r e r u nc a l c u l a t e s a c h e c k s u m t i n s u r e t c h e c k s u m p r o v e s i n a c c u r a t e , t h w i l l s h o w u t i n d i c a t e t h e o b v i o u g o e s w e l l , y o w i l l f i n d t h a t y o u r k a l o n g t h l i n e s o t h D V O R A K s t a

d o w n . T h e o n e s o b t a i n e d b p r e s s i n g t h e C o m m o d o r e k e m o d i f i e d , i a l s o c o p i e d . T

Page 52: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 52/84

h a v e n o m o v e d . T h i s i b e c a u s e o n l y t w o t h f o u r k e y b o a r dt a b l e s h a v e b e e n r e d e f i n e d . T h r e a s o n f o m o v i n g o n l y t h u n s h i f t e d a n s h i f t e d t a b l e s i b e c a u s e t h e s e t w t a b l e s c o n t a i nt h a l p h a n u m e r i c c h a r a c t e r s w h i c h i w h e r e t h D V O R A Kk e y b o a r d l a y o u t i a i t s t r o n g e s t . I o t h e r w o r d s , t h i s l a y o u t i p e r c e i v e d a m o s t u s e f u l i t e x t b a s e d a p p l i c a t i o n s w h i c h u s g r a p h i c s c h a r a c t e r s v e r y s p a r i n g l y i a a l l .

F i n a l l y , t h e r e h a b e e n o n m i n o r m o d i f i c a t i o n t t h K E R N A Ls t h a t p r e s s i n g S T O P / R E S T O R E w i l l n o t r e v e r t b a c k t Q W E R T Y l a y o u t . T h i s i s t h a t i t h p r o g r a m y o h a p p e n e d t b e r u n n i n g l o c k s - u p , S T O P / R E S T O R E w i l l c o m e t t h r e s c u ew h i l e m a i n t a i n i n g t h D v o r a k k e y b o a r d .

H o I t ' s D o n e

B e f o r e w g e t i n t o t h i n a n o u t s , f e w o r d s a b o u t h o t h v a l u e s f o i n d i v i d u a l k e y s a r a r r i v e d a i t h C o m m o d o r e 6 4 I y o c o u n t a l t h k e y s o y o u r k e y b o a r d , i n c l u d i n g t h f u n c t i o n a n a l o t h e r s p e c i a l k e y s , t h t o t a l n u m b e r i 6 5 O n k e y , t h S H I F T L O C K , i a c t u a l l y t h s a m e a t h l e f t S H I F T k e s i n c e i m e c h a n i c a l l y h o l d s t h i s k e d o w n . S t h a c t u a ln u m b e r o k e y s t h s y s t e m c a n " s e e " i 6 4 T h e s e k e y s , w h i c hi n e f f e c t a r j u s t s i m p l e s w i t c h e s , a r e a r r a n g e d i n t o a m a t r i x , ( s e e F i 3 T h i s m a t r i x i c o n n e c t e d t t w r e g i s t e r s o t h C I A # 1 c h i p . O n r e g i s t e r , $ D C 0 0 ( 5 6 3 2 0 ) , c o n n e c t s t t h k e y b o a r d c o l u m n , w h i l e t h o t h e r , $ D C 0 1 ( 5 6 3 2 1 ) , c o n n e c t s t t h k e y b o a r d r o w . W i t h o u t g o i n g i n t o t o m u c h d e t a i l , t h e s et w r e g i s t e r s e v e n t u a l l y y i e l d t h e k e n u m b e r . T h i s n u m b e r i u s e d a a i n d e x t o b t a i n t h e a c t u a l k e v a l u e f r o m t h k e t a b l e . T h i s v a l u e i w h a t w a r a l f a m i l i a r w i t h w h e n w es a m p l e t h k e y b o a r d u s i n g t h G E s t a t e m e n t i B A S I C .

T h e r e a r e , a s m a t t e r o f a c t , f o u r d i f f e r e n t k e t a b l e s . T h t a b l ew h i c h i a c c e s s e d i d e t e r m i n e d b t h o p e r a t i n g s y s t e m b a s e do w h e t h e r t h S H I F T , C o m m o d o r e o C T R L k e y s a r p r e s s e di a d d i t i o n t " r e g u l a r " k e y s . T h f o u r t a b l e s a r a t h f o l l o w i n g a d d r e s s e s :

1 $ E B 8 1 - $ E B C 1 ( 6 0 2 8 9 - 6 0 3 5 4 ) n o s p e c i a l k e y s p r e s s e d

i m p o s s i b l e t s w i t c h t h K e r R O a w e l l . T h i s i a c c o m pt i o n w i t h # $ F D ( 2 5 3 ) . S e c ot h k e y b o a r d l a y o u t t a b l e s t a b l e s a r e m o d i f i e d b e c a u s ec h a r a c t e r s r e s i d e .

T h i s p r o g r a m c a a l s o b k e y b o a r d l a y o u t s . T h d a t ac o r r e s p o n d t t h k e y b o a r dk e t b m o d i f i e d a n p l a c e p l a c e i t h D A T A s t a t e m e n t s

L e u s f o e x a m p l e , r e d e f i s c r e e n ' . q u i c k c h e c k i t h t h a t t h e F l k e i l o c a t e d i i n l o c a t i o n i t h D A T A s r e n t l y c o n t a i n s v a l u e o $ 8 F a q u i c k c h e c k i t h P v e r i f y . I y o d n o h a v ep r o g r a m :

1 0 g e t a $ : i 2 p r i n t a s c

I w i l l w a i t f o k e t b v a l u e o t h k e i d e c i m a l .t h e v a l u e f o ' c l e a r s c r e e n ' a n p l a c e t h i s v a l u e a t h f i w i l l u p s e t t h e c h e c k s u m w h R O R " m e s s a g e w h e n t h i n t e n t i o n a l , i g n o r e i a n e n a

S

N o p r e s s F a n s u r e e n o u

O h o a b o u t c h a n g i n g t h e t h F - k e y s ? T r y p u t t i n g a $ 2 7 0 . T h i s w i l l p r o m p t l y m a k er e d !

D V O R A K B a s i c L o a d e r D V O R f l K L R G 1 r e s a v e " O : d v o r a k . l d r " ,

Page 53: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 53/84

F A A E G

0

E M P

M C B E M C I

P F

G M K P A F A

O N L

M F P E K P

G C

1 0 f o 8 2 t 1 0 1 7 : r e a d x 1 1 a s c ( l e f t $ ( x $ , ) ) - 4 8 : i h > t h e n h - 1 2 a s c ( r i g h t $ ( x $ , ) ) - 4 8 : i l > t h e n I - 1 3 = h * 1 6 l p o k e i , x : c c x n e x t1 4 i c h < > 2 5 3 0 1 t h e n p r i n t * d a t a

e r r o r * * " : e n 1 5 s y s 8 2 0 : p r i n t * d v o r a k k e y b o a r d

e n a b l e d * * " : e n 1 6 0 :1 7 d a t a a O 0 0 , 8 4 , f b 8 4 f d a 9 e

I |

s u | i | d ■ c

' ■ ■ ■

a 9 , a O , 8 5 f e 1 f f d 8 8 d d O e f a

1 8 d a t a 8 5 f

1 9 d a t a 9 1 f b b 1 , f d , 9 2 0 d a t a f 5 e 6 f e e 6 f c 2 1 d a t a 0 1 , 2 9 , f d 8 5 , 0 1 , a 9 , 7 7 , 8 2 2 d a t a f b a 9 0 3 , 8 5 , f c a 9 , 8 0 , 8 2 3 d a t a f d a 9 e b , 8 5 , f e a O , . 8 1 , b 12 4 d a t a f b 9 1 f d 8 8 d O f 9 a 9 e 2 5 d a t a 8 d , d 6 , f d 6 2 6 0 r e m * * u n s h i f t e d k e y s * * 2 7 d a t a 1 4 O d 1 d 8 8 , 8 5 , 8 6 , 8 7 , 1 2 8 d a t a 3 3 2 c , 4 1 , 3 4 , 3 b , 4 f 2 e 0 2 9 d a t a 3 5 , 5 0 , 4 5 , 3 6 , 4 a 5 5 5 9 5 3 0 d a t a 3 7 , 4 6 , 4 9 , 3 8 , 5 8 , 4 4 , 4 7 , 4 3 1 d a t a 3 9 4 3 4 8 3 0 , 4 d , 5 4 , 5 2 4 3 2 d a t a 5 d 4 c 4 e 3 d 5 6 , 5 3 , 3 f 5 3 3 d a t a 5 c 2 a 2 d 1 3 0 1 3 d 5 e 5 3 4 d a t a 3 1 5 f 0 4 3 2 , 2 0 , 0 2 , 2 7 , 0 3 5 d a t a f 3 6 r e * * s h i f t e d k e y s * * 3 7 d a t a 9 4 , 8 d , 9 d , 8 c 8 9 , 8 a , 8 b , 9 13 8 d a t a 2 3 2 c d 2 4 , 3 a , c f 2 e 0 3 9 d a t a 2 5 d O c 5 , 5 c , c a d 5 d 9 d 4 0 d a t a 2 6 c 6 c 9 2 a d 8 c 4 c 7 c 4 1 d a t a 2 8 c 3 , c 8 , 2 9 , c d , d 4 , d 2 , c 4 2 d a t a 5 b c c , c e , 2 b , d 6 , d 3 , 3 f d 4 3 d a t a a 9 , c O , 2 d 9 3 , 0 1 , 3 d d e d 4 4 d a t a 2 1 5 f 0 4 , 4 0 , a O 0 2 2 2 8 4 5 d a t a f

I i 1

, ■

f

P | V | F J C | R | L

K | M |

D v o r a k k e y b o a r d / M a P

N O R I i O C C I J R R E H C

P L R C E

; "

c

C

1

W O R DT H O R H I iT

I T H R TI W R H

3T F

E T E H T R

D V O R R K K E Y B Q f l R D / M R P L

K E V E O R R D D E C O D E T f l E L E

S c r e e n b o a r d

Page 54: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 54/84

F o T h C o m m o d o r e 6 B r i

P r o b a b l y t h m o s t r e w a r d i n g e n d e a v o u r c o m p u t e rh o b b y i s t c a n p u r s u e i u s i n g t h e c o m p u t e r t h e l p o t h e rp e o p l e . T h f o l l o w i n g p r o g r a m i j u s t s u c h a e n d e a v o u r .

I T r a n s a c t o r V o l u m e 5 I s s u e 4 t h e r e w a a a r t i c l e c a l l e d" H e l p i n g T h H a n d i c a p p e d " . I y o m i s s e d i t t h a r t i c l ec o n c e r n e d a n a t t a c h m e n t f o w h e e l c h a i r c o n s i s t i n g o p u s h b u t t o n s o b o a r d t h a t c o u l d b e u s e d a j o y s t i c ks i m u l a t o r . r e a d t h a r t i c l e w h i l e g o i n g t h r o u g h m b a c ki s s u e s o t h T a n w a i n s p i r e d t w r i t e t h p r o g r a my o s e h e r e .

" S c r e e n b o a r d " i w h a t c a l l t h i s p r o g r a m a n t h n a m ed e s c r i b e s i w e l l . B e c a u s e o c e r t a i n p h y s i c a l h a n d i c a p s ,t h k e y b o a r d o c o m p u t e r i j u s t a n o t h e r o b s t a c l e f o s o m e p e o p l e . W h a t S c r e e n b o a r d d o e s i m a k e k e y b o a r do p e r a t i o n a e a s y a u s i n g j o y s t i c k .

W h e n e x e c u t e d , t h e p r o g r a m w i l l d i s p l a y k e y b o a r d c h a ra c t e r s i t h t o p p o r t i o n o t h s c r e e n . c u r s o r i m o v e da r o u n d i n s i d e t h k e y b o a r d ' w i n d o w ' b m o v i n g j o s t i c k p l u g g e d i n t o p o r t 2 k e i s e l e c t e d b p l a c i n g t h ec u r s o r o v e r t h e d e s i r e d c h a r a c t e r o a b b r e v i a t i o n ( e g .C U f o c u r s o r - u p ) a n p r e s s i n g t h f i r e b u t t o n .

O m o r e t e c h n i c a l s i d e , t h p r o g r a m i e x e c u t e dt h r o u g h t h I R v e c t o r s o i m a n o b e c o m p a t i b l e w i t ha l s o f t w a r e . I a l s o w o r k s t h r o u g h t h ' t e s t s t o p k e y 'v e c t o r a $ 0 3 2 8 . I m a b d i s a b l e d b h i t t i n g t h e r e s t o r ek e y .

S c r e e n b o a r d B A S I C L o a d

N L

L D G C D A h I

D A G E K A B D K G M O

E N

I P K M L M

1 r e m * d a t a l o a d e r f 2 0 c s3 f o = 4 9 1 5 2 t 4 9 9 4 c c a : n e x t5 0 6 i c s < > 7 9 0 7 7 t h e n7 0 s y s 4 9 1 5 28 e n 1 0 0 :1 0 0 0 d a t a1 0 1 0 d a t a

7

1 0 2 0 d a t a 01 0 3 0 d a t a 1 6 1 0 4 0 d a t a 1 4 1 0 5 0 d a t a 1 9 1 0 6 0 d a t a 4 1 0 7 0 d a t a 4

1 8 0 o

1 9 2 ,1 4

1 7 3 ,3 3

1

111

1 1

1 0 8 0 d a t a 9 6 1 7 3 ,1 0 9 0 d a t a 1 4 , 1 9 2 , 11 1 0 0 d a t a 1 4 5 , 1 6 9 ,1 1 1 0 d a t a 1 9 2 , 3 2 , 11 1 2 0 d a t a 2 2 4 , . 6 , 11 1 3 0 d a t a 2 4 0 , 2 5 5 ,1 1 4 0 d a t a 9 6 1 7 3 ,1 1 5 0 d a t a 1 3 3 , 2 5 3 , 2 1 1 6 0 d a t a 1 9 2 , 7 6 , 21 1 7 0 d a t a 9 6 1 6 9 ,1 1 8 0 d a t a 3 6 , 2 5 3 , 2 1 1 9 0 d a t a 2 4 2 1

F N D

1 3 5 01 3 6 01 3 7 0

d a t a 1 3 d a t a 1 1 d a t a 2 0

2 2

2 4 9 ,

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

8 1 8 9 ,1 9 8 , 3 2

6 1 6 9 ,

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

S c r e e n b o a r d P A S o u r c eF D

1 0 0 s y s 7 0 01 1 0 ; " s c r e e n b o a r d "

Page 55: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 55/84

B C N C M B P I

C N A H E

I A N P B F K N J

O K A E L

M J F

K C N J M K L C L B B

1 3 8 01 3 9 01 4 0 01 4 1 01 4 2 01 4 3 01 4 4 01 4 5 01 4 6 01 4 7 01 4 8 01 4 9 01 5 0 01 5 1 01 5 2 01 5 3 01 5 4 01 5 5 01 5 6 01 5 7 01 5 8 01 5 9 01 6 0 01 6 1 01 6 2 01 6 3 01 6 4 01 6 5 01 6 6 01 6 7 01 6 8 01 6 9 01 7 0 01 7 1 01 7 2 01 7 3 01 7 4 01 7 5 01 7 6 01 7 7 01 7 8 0

d a t a 1 9 2 .

6

7 1 6

2 1 0

0 4 1

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

7 9 8 6 5 1 9 3 3 9 6 0

4 2 6 8

9 6 1 0 5 .2 5 5 ,1 4 1 .

9 4

1 4 1 ,1 9 2 ,2 4 5 ,1 3 3 ,1 9 2 ,1 6 9 ,

6 3 2 0 0 ,2 1 6 ,

0 3 2

5 2 3 7 ,2 5 4 ,2 5 1 ,2 3 2 ,

6 4 2 1 6 ,1 7 4 ,

2 4 1 3 3 ,2 0 1 ,

0 9 6 7 2 8 0 8 7 5 2 3 2 4 0 6 1 2 9

2 4 9 ,4 7 7 8

5 6 0

3 7 1 2

1 1 7 4 ,

1 2 4 1 3 2

2 5 2 ,1 4 1 ,

3 2 2 0 4 ,1 4 5 ,2 0 0 ,1 8 9 ,2 3 9 ,1 9 2 ,

5 9

1 7 3 ,2 2 4 ,1 4 5 ,2 0 0 ,

1 0 1 0 9 ,2 5 4 ,

3 1 4 1 ,

6 5 7 3 8 1 8 8 5 3 3 3 4 1 6 2

1 4 8 ,2 5 0 ,

3 2 3 2

2 3 3 , 2 5 0 ,1 3 3 , 2 5 5 ,2 5 5 , 1 5 7 ,1 9 2 , 1 7 4 ,1 7 4 , 8

9 1 9 2 ,1 9 2 , 9 6

2 1 5 7 ,7 1 , 1 9 3 ,

1 6 9 , 0 1 1 1 9 2 ,

1 4 5 , 2 5 1 ,5 1 9 2 ,

2 5 1 , 1 7 3 ,2 3 2 , 2 2 4 ,1 0 6 , 1 9 4 ,1 9 3 , 4 1 2 0 1 , 1 2 0 ,1 9 2 , 2 0 1 ,1 2 8 , 1 3 3 ,

3 1 9 2 ,8 0 , 4 8 ,

2 5 1 , 1 7 3 ,2 0 2 , 2 0 8 ,1 9 2 , 1 8 9 ,

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

1 8 9 ,7

1 1

1 1 6 6 7 4 8 2 8 9 5 4 3 4 4 4 6 4 2 0

1 9 2 ,6 7 7 5 8 3 9 0 5 5 3 5 4 6 9 4 1 9

7 4 1 7 0 , 1 6 7 1 9

1 9 2 , 1 6 7 1 9 2 , 2 4 0

1 9 2 , 2 4 0 ,2 4 0 , 2 1 6 2 , 2 , 1 8 9

7 1 9 2 , 2 0 29 6 1 7 3 , 1 3

1 3 3 , 2 5 1 , 1 4 1 6 2 , 0 , 1 6 01 8 9 , 2 6 , 1 9 42 0 8 , 2

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

2 0 1 , 2 5 5 , 2 0 86 3 1 3 3 , 2 5 4

1 4 4 , 1 5 , 1 5 23 , 1 7 6 , 6

2 5 4 , 1 6 5 , 2 5 41 5 3 , 0 , 2 1 62 0 4 , 1 6 2 , 4

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

7 , 1 9 2 , 1 01 7 0 , 1 8 9 , 1 8 1 9 2 , 1 7 3 , 1 2 3 8 , 1 0 , 1 9 21 0 4 , 1 7 0 , 1 6

6 8 , 6 9 , 7 7 7 8 4 4 9 5 7 3 7 5 8

2 5 1 , 2 5 2 ,6 7 8 5 6 7 7 6

7 8 5 9 3 5 1 4

2 5 3 , 2 5 4 , 2 5 8 0 3 2 6 7 0 3 2 6

7 3 4 5 3 6 3 2 1 4

1 4 7 , 4

N F

C G B A N M O

I E H G B C M N K D P B

A J E J F

O E B D K N J J

M D C

I K E B B H P

M J

M P 0 F P L N A

1 2 j o y s t i c k - c o n t r o l l e d o n 1 3 k e y b o a r d1 4 0 ;1 5 ; o r i g i n a l p r o g r a m b d a1 6 ; t h i s v e r s i o n j a n 8 6 - c 1 7 0 ;1 8 0 ; f r o m1 9 T h T r a n s a c t o r "

2 0 0 ;2 1 0 ;2 2 . o p t o 2 3 $ c 0 0 02 4 0 ;2 5 c h r o u t2 6 p l o t2 7 s c r e e n2 8 j o y m a s k2 9 0 t e m p3 0 t e m p 23 1 0 x a d d3 2 j o 3 3 0 ;3 4 3 5 0 ;3 6 c o l o u r3 7 0 s i n d e x3 8 r v s c h a r3 9 m o v f l g4 0 k e y f l a g s4 1 4 2 4 3 4 4 0 t o g c n t4 5 t o g 24 6 f l a g i m4 7 s t o p f l g4 8 o l k v e c4 9 o l s t o p5 0 0 ;5 1 s t a r t5 2 5 3 5 4 5 5 5 6

$ f f d 2S f f f O$ f $ f $ f $ f $ 8 5 6 3 2 0

j m s t a r t

. b y t e 1 . b y t e O. b y t e O. b y t e O

. b y t e O. b y t e O. b y t e O. b y t e O. b y t e O. b y t e O. b y t e O. w o r d. w o r d

s

s e I d a # < i r q r t ns t $ 0 3 1 4I d # > i r q r t ns t $ 0 3 1 5

5 7 ; s a v e k e y b o a r d v e c t o r5 8 5 9 6 0 6 1

I d $ 0 2 8 fs t o l k v e cI d $ 0 2 9 0s t o l k v e c +

6 2 ; c h a n g e t h s t o p v e c t o r6 3 6 4 6 5

I d $ 0 3 2 8s t o l s t o pI d $ 0 3 2 9

O J O A

8 6 8 7 n o s t o p8 8 8 9

s t

j m

s t o p f l g

( o l s t o p )

M O F O

1 6 4 0 s t o r n e w1 6 5 01 6 6 01 6 7 0

s t s t e m

s i n d e r v s c h# 1 2 0

Page 56: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 56/84

K C O D F I

M O H E

C F K P M A K I

D G H L L F J A D A F D F M

C L P C D

I M B E C A P D J I I

M M A J D F

9 0 0 ;9 1 i r q r t n9 2 9 3 9 4 9 5 9 6 9 7 ; y e s i i s 9 8 9 9 1 0 0 01 0 1 0 c r s o k1 0 2 01 0 3 01 0 4 01 0 5 0 ;1 0 6 0 ;1 0 7 0 s c m o v e1 0 8 01 0 9 01 1 0 01 1 1 01 1 2 01 1 3 01 1 4 01 1 5 01 1 6 0 s c m 01 1 7 01 1 8 01 1 9 01 2 0 01 2 1 01 2 2 01 2 3 01 2 4 01 2 5 01 2 6 01 2 7 01 2 8 0 s e m i1 2 9 01 3 0 01 3 1 01 3 2 01 3 3 0 s c m 21 3 4 01 3 5 01 3 6 01 3 7 01 3 8 01 3 9 01 4 0 01 4 1 01 4 2 0 s u b 21 4 3 0

j s s e j s c p b c

d r a w s c r n

p l o t# c r s o k

; d r a w s c r e e n b o a r d

; c h e c k c u r s o r p o ; s e e i i t ' s i s c r n b r d; n i t i s n ' t

T i o v e c u r s o r d o w nI d c l

j s

j s j m r t

I d a n e o s t b n I d s t j m

I d b n I d s t I d b i b n I d a n b e I d

I d a n b e I d

I d a n b e I d e m b e I d j m I d

#

p l o t

s c m o v e$ e a 3 1

j o # 3 # 3 j o y m a s ks c m O# m o v f l gn o s t o r

m o v f l gn o s t o r# m o v f l g# 1 j o y m a s kk e y p u s hj o y m a s k# s e m i# - 4 0j o y m a s k# s c m 2# 4

j o y m a s k# s c m 3s i n d e x# 1 2 0s u b 2# - s c m 3

# -

; s c r n b d c u r s o r m o v e

; m o v e s c u r s o r r o w , c o l

; s t i c k m o v e d

m o v e d l a s t t i m e

; f i r e b u t t o n b i

; e n t e r k e

; c h e c k u ; n o t u p c h e c k d o w n; u p , s u b t r a c t 4

; c h e c k d o w n; n o t d o w n , c h e c k l e f t; d o w n , a d 4

; c h e c k l e f tn o l e f t , c h e c k r i g h t

; s u b t r a c t f o t o r o w s; s u b t r a c t f o b o t t o m

; l e f t , s u b t r a c t 2

A C B B E I C O O L J

H P N D H D E O E E

O C B B O F C

F I

N P

E D A K O A K L N L F

A G K

I M G A B L I

E

1 6 8 01 6 9 01 7 0 01 7 1 0 n o s t o r1 7 2 01 7 3 0 ;1 7 4 0 ;1 7 5 0 k e y p u s h1 7 6 01 7 7 01 7 8 01 7 9 01 8 0 01 8 1 0 k p s 1

b e a n s t

r t

I d e m b c I s j m

n o s t o # % 1 1r v s c h

s i n d e# 1 2 0k p s 1

k p s 2

1 8 2 0 ; i b o t t o m r o w s1 8 3 01 8 4 01 8 5 01 8 6 01 8 7 01 8 8 01 8 9 0 k p s 21 9 0 0 ;1 9 1 01 9 2 01 9 3 01 9 4 01 9 5 0 n o r m c1 9 6 01 9 7 0

s e s b I s I s c l a d

t a I d e m b c c p b c

# 1 2 0

# k l e n

k e y s .# 2 4 9s p e c i # 3 k b u f

1 9 8 0 ; y e s , u s c u s t o m k e 1 9 9 02 0 0 02 0 1 02 0 2 02 0 3 02 0 4 0 ;2 0 5 0 k b u f2 0 6 02 0 7 02 0 8 02 0 9 02 1 0 02 1 1 02 1 2 0 k b u f2 1 3 02 1 4 02 1 5 0 ;2 1 6 0 ;2 1 7 0 s p e c i a l2 1 8 02 1 9 02 2 0 02 2 1 0

I d s t j s j s r l

I d c p b c I d s t i n

j s r t

e m b n I d s t

k e y c 2 0 n e w kk i l l t o

1 9 6 4 k b u f ik e y s 6 3 1 , 1 9

k i l l t o

# 2 4 9s p l 1# $ 7 fs t o p f

E J P D P

2 4 2 02 4 3 0 n k 2 4 4 02 4 5 02 4 6 0

o r

I d b e

#

k e y f l a g s + n k

N K A L

3 2 0 03 2 1 03 2 2 03 2 3 0

s t $ d 8 0 0 , yi n i n c p # x k l e n

Page 57: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 57/84

F J

O F B

O O C M E F

O J H L D

P N G K E I

F I B

K H C F D O D G A M N M I

B M G C H E <

A G C K G K A

I

2 4 7 0 n k 2 4 8 02 4 9 02 5 0 02 5 1 0 n k 2 5 2 02 5 3 02 5 4 0 ;2 5 5 0 ;2 5 6 0 k i l l t o g2 5 7 02 5 8 0 k i l l2 5 9 02 6 0 02 6 1 02 6 2 02 6 3 02 6 4 02 6 5 02 6 6 0 ;2 6 7 0

o r

I d b e o r

s t r t

I d

I d a n s t d e b p j s r t

2 6 8 0 d r a w s c m =2 6 9 02 7 0 02 7 1 02 7 2 02 7 3 02 7 4 02 7 5 02 7 6 02 7 7 0 d r 2 7 8 02 7 9 02 8 0 02 8 1 02 8 2 02 8 3 02 8 4 02 8 5 0 n o r v s2 8 6 02 8 7 02 8 8 02 8 9 02 9 0 02 9 1 02 9 2 02 9 3 02 9 4 0 ;

I d s t I d s t s t s t I d I d

I d s t I d a n c p b n o r

i n s t I d s t i n i n c p b c

#

k e y f l a g s +n k # f l a g i m

#

k e y f l a g s , x# k e y f l a g s , xk i l lm a k i m a g

6 4 s c r e e n + # s c r e e nt o g c n tt o g 2# #

# 3 ( s c r e e n ) . yk e y s . x# 6 r v s c h a rn o r v s# 1 2 8

( s c r e e n ) , yc o l o u r$ d 8 0 0 , y

# k l e nd r

2 9 5 0 ; p r i n t b o t t o m t w k b r o w s2 9 6 02 9 7 0 d r 2 9 8 02 9 9 0

I d

I d c m

#

x k e y s . x# 2 5 5

; k i l l 1 - t i m e k e y f l a g s

; d r a w s c r e e n b o a r d; s c r e e n p a g e

; c h e c k f o r e v e r s c h

; s e t h i g h b i t o r v r s

c h a r a c t e r c o u n t e r

; t o g g l e s

F I

H K E A E A F

C D J M A K I M

G I I

J G F E K N K B A K K N H N K N

I F B K O

I A K M B G L P

C F

K G E

3 2 4 03 2 5 0 ;

b m d r

3 2 6 0 u n d e r l i n e k e y b o a r d3 2 7 03 2 8 0 d r 3 2 9 03 3 0 03 3 1 03 3 2 03 3 3 03 3 4 03 3 5 03 3 6 03 3 7 0 ;3 3 8 0 ;

I d # 4 I d # 6 s t ( s c r e e n ) , yI d c o l o u rs t $ d 8 0 0 , yi n d e b n d r r t

3 3 9 0 d r a w t o g3 4 0 0 ; p r i n t o f f , o n o l o c k m e s s a g 3 4 1 03 4 2 03 4 3 03 4 4 03 4 5 03 4 6 03 4 7 03 4 8 03 4 9 03 5 0 03 5 1 03 5 2 03 5 3 03 5 4 03 5 5 03 5 6 03 5 7 03 5 8 03 5 9 0 t g 3 6 0 03 6 1 03 6 2 03 6 3 03 6 4 0 ;3 6 5 0 ;3 6 6 0 k e y s3 6 7 0 . a s c3 6 8 0 . a s c

t x p h I d t o g c n tI d a k e y f l a g s , xa s a s c l a d t o g 2t a I d t o g t e x t , xs t t e m pi n t o g 2I d t o g 2c m # b c t g i n t o g c n tI d # s t t o

p l t a I d t e m pr t

a b c d e f g h i j k l m n o p q r st u v w x y z 0 1 2 3 4 5 6 7 8 9 [ ]

3 6 9 0 . b y t e 3 3 , 3 43 7 0 0 . a s c3 7 1 0 k l e n

# $ % & ' ( ) , . ? : ; < > @ • - k e y s

3 7 2 0 c t r l c h r s3 7 3 0 . b y t e3 7 4 0 . b y t e3 7 5 0 . a s c3 7 6 0 ;3 7 7 0 x k e y s

1 4 5 , 1 7 , 1 5 7 , 2 9 , 1 4 8 , 2 0 , 1 3 , 2 4 9 , 2 5 0 , 2 5 1 , 2 5 2 , 2 5

C r y s t a l B a l l

Page 58: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 58/84

F o T h C 6 o V I 2 B r i

s o u t h e r n r e a d e r s , t h e s e p l a y o f f s i n v o l v e s i x t e e n t e a m s p l a y i n gu t 8 g a m e s i o r d e r t d e c i d e t h w i n n e r o t h h i s t o r i c

2 M a i n M e n u . W h e n y o R U p r e s e n t e d w i t h t h m e n u . S e l e c t i o n

Page 59: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 59/84

S t a n l e y C u p . P r e d i c t i n g t h e w i n n e r o t h C u c a n b e i n t e r e s ti n g , d e c i d i n g w h e t h e r t h N e Y o r k I s l a n d e r s o r E d m o n t o nO i l e r s w i l l c o n t i n u e w h i p p i n g t h o t h e r t e a m s . H o w e v e r ,p o p u l a r c h a l l e n g e i f o g r o u p o f a n s t g e t o g e t h e r a n t r t p r e d i c t t h e r e l a t i v e p e r f o r m a n c e o i n d i v i d u a l s a m o n g t h 3 2 p l a y e r s i t h e p l a y o f f s . S i n c e t h e p o i n t p r o d u c t i o n o e a c hp l a y e r m a d e p e n d o h i a b i l i t i e s , t h n u m b e r o g a m e s h i t e a m s t a y s i t h p l a y o f f s , a n t h c a l i b r e o f t h o p p o s i t i o n ,t h i s p r e d i c t i o n c a n b e c o m p l e x t a s k . T h i s p r o g r a m i i d e a l f o t h a t p u r p o s e .

H o w e v e r , i c a n b e e q u a l l y w e l l a p p l i e d t v a r i e t y o o t h e rs i t u a t i o n s a n s p o r t s . M o s t t e a m s p o r t s k e e p t r a c k o p l a y e rp r o d u c t i o n , w h e t h e r i i h i t s i n b a s e b a l l , y a r d s g a i n e d i f o o t b a l l , o d o l l a r v a l u e o e n d o r s e m e n t s . T n e t w o r k s e m p l o ya r m i e s o s t a t i s t i c a l e x p e r t s t c o m p i l e a n d c o n v e y t h i s i n f o r m at i o n t t h f a n s . P r e d i c t i n g t h e s e s t a t i s t i c s c a n b e b o t h e n j o ya b l e a n c h a l l e n g i n g ; w h i l e t h i s p r o g r a m w o n ' t d t h w h o l ej o b , i c a b v e r y v a l u a b l e a s s i s t a n t .

T h p r o g r a m i t s e l f i s t r a i g h t f o r w a r d . M u c h o i t l e n g t h i t a k e n u b m a k i n g i ' u s e r - f r i e n d l y ' , a n d y o u r e f f o r t i n t y p i n gi i n w i l l b r e p a i d m a n y t i m e s w h e n u s i n g i t I t ' s a l i B A S I C ,s t h e r e ' s n o t h i n g t o c o m p l i c a t e d o p r o b l e m a t i c . A f t e r i n d i c at i n g t h n u m b e r o t e a m s a n p l a y e r s , R U t h p r o g r a m . A l f u n c t i o n s a r e c o n t r o l l e d b t h m a i n m e n u . O n c e y o u h a v ee n t e r e d t h n e c e s s a r y d a t a , i n s t r u c t t h p r o g r a m t p r o c e e d t c a l c u l a t e e x p e c t e d p e r f o r m a n c e , a n p r e p a r e l i s t s o p l a y e r sr a n k e d b y p e r f o r m a n c e a n a l p h a b e t i c a l l y . T h r e s u l t s a r m o s t u s e f u l w h e n d i r e c t e d t y o u r p r i n t e r .

B e c a u s e o i t a m p l e m e m o r y , t h 6 i i d e a l f o r t h i s t a s k . T h p r o g r a m i p r e s e n t l y c o n f i g u r e d f o a n a l y s i s o u t 2 0 p l a y e r s ' p e r f o r m a n c e , b u t c o u l d e a s i l y b i n c r e a s e d t 5 0 o m o r e . d i s k d r i v e m a k e s t h t a s k o s t o r i n g a n r e t r i e v i n g d a t am u c h f a s t e r . F o r t h e V I 2 0 a l e a s t 3 o e x p a n s i o n m e m o r yw o u l d b n e e d e d t r u t h f u l l p r o g r a m , b u 8 o m o r e w o u l da l l o w t h e a n a l y s i s o m o r e m e a n i n g f u l n u m b e r s o f p l a y e r s .s t r i p p e d - d o w n v e r s i o n i a l s o s u p p l i e d f o t h m i n i m u m -c o n f i g u r a t i o n V I C , m o d i f i e d t u s t a p e d r i v e i n s t e a d o f d i s k .

e i t h e r n u m b e r k e o t h c o r r e s p w a n t t l o a d a e x i s t i n g f i l e f r o m d i sa n g i v e t h e f i l e n a m e . O t h e r w i s e , pd a t a . C h o o s i n g a n y o t h o t h e r s e l j u s t g e n e r a t e s o m e g a r b a g e .

3 T e a m d a t a . F o e a c h t e a m , y o u n a m e ;

t h n u m b e r o g a m e s o f h i s t o r i ct h t e a m p e r f o r m a n c e o v e r t g a m e p o i n t s , 2 f o v i c t o r y , f

t h n u m b e r o w i n s a n d l o s s e sp e r i o d ( t h e r e s t o t h e s e a s o n , t

T h p r o g r a m w i l l p r o m p t f o a m a nl i n e 1 2 3 0 . A a n t i m e , y o c a p r p r o m p t a n d q u i t , b u y o C A N N O T tt e a m s .

W h e n y o u h a v e f i n i s h e d e n t e r i n gd i s p l a y s l i s t o t h t e a m s s y o e n t e r e d . A n e r r o r s a t h i s s t a g e w c h e c k t h d a t a c a r e f u l l y . T h c o m e x p e c t e d w i n s a n d l o s s e s f o a l t e g a m e h a w i n n e r a n d l o s e r , t h t o t h e y a r d i f f e r e n t , y o m a w i s h t gy o u r p r o j e c t i o n s . W h e n a l i o k , p r e t u r n t t h m a i n m e n u .

I t h i s s e g m e n t , t h p r o g r a m a l s of a c t o r f o e a c h t e a m , b a s e d o h i s t o l o s s e s ( l i n e 1 6 4 0 ) . b a s i c a s s u m p t i om o r e p o i n t s o t e a m t h a t i w i n n i n

t i u s e d , w h i c h i t y p i c a l o f m o h o c k e y , o b a s e b a l l ; f o e x a m p l e , f 1 7 O n e x c e p t i o n t o t h i s r a t i o w o u lt h e p o i n t s p r e a d b e t w e e n w i n n e r s a o l e s s .

4 P l a y e r D a t a . F r o m t h m a i n m e

S i m p l y p r e s s R E T U R N f o a n i t e m t h a t d o e s n o n e e d t b c h a n g e d .

M o d i f i c a t i o n s

Page 60: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 60/84

I y o u ' r e g e t t i n g t i r e d o t y p i n g , p r e s s f o ' n c h a n g e s ' , a n r e t u r n t t h m a i n m e n u . A t h i s p o i n t , i i g o o d i d e a t s a v et h e d a t a t d i s k o r t a p e . Y o c a c o m e b a c k t t h i s f u n c t i o nl a t e r t o a d m o r e p l a y e r s , a n t h p r o g r a m w i l l r e m i n d y o uw h e r e y o l e f t o f f .

5 C a l c u l a t e a n s o r t . D o n ' t s e l e c t t h i s o p t i o n u n t i l y o u h a v ee n t e r e d t h t e a m a n p l a y e r d a t a ; a l s o , i y o s u b s e q u e n t l yc h a n g e a n y o t h d a t a , y o w i l l h a v e t c o m e b a c k a n r e p e a tt h i s f u n c t i o n . T h i s m e n u s e l e c t i o n i n c l u d e s t h r e e b a s i c s t e p s :

e a c h p l a y e r ' s p r o j e c t e d p e r f o r m a n c e i c a l c u l a t e d , b a s e do a l t h d a t a e n t e r e d f o t h p l a y e r a n t h t e a m . T h r e s u l t s a r d i s p l a y e d a c a l c u l a t e d .

t h p l a y e r s a r e r a n k e d i o r d e r o m a x i m u m p r o d u c t i o n .a s c r o s s - i n d e x , a a l p h a b e t i c a l l i s t i n g o p l a y e r s a n r a n k i n g s i a l s o p r o d u c e d .

T h t w r a n k i n g s a r p e r f o r m e d b y s h e l l s o r t i n B A S I C ;a l t h o u g h t h i s i v e r y e f f i c i e n t , t h s o r t t i m e s d i n c r e a s e w i t ht h n u m b e r o f p l a y e r s . I y o u h a v e m a n y p l a y e r s , t a k e c o f f e eb r e a k . W h e n t h t w l i s t i n g s a r e r e a d y , y o u h a v e t h o p t i o n o v i e w i n g o b y p a s s i n g e a c h o n e ; t h e y g b f a s t , s u s t h C O N T R O L o S T O P k e i y o w a n t t p e r u s e t h e m o t h s c r e e n .

I a n p l a y e r h a f e w e r t h a n 2 g a m e s o f h i s t o r i c d a t a , t h i st e n d s t c a s t d o u b t o t h s t a t i s t i c a l v a l i d i t y o t h p r o j e c t i o nb e c a u s e o t h e s m a l l s a m p l e s i z e . T h p r o g r a m f l a g s t h i ss i t u a t i o n b e s i d e t h p l a y e r ' s l i s t i n g . I f o o t b a l l , h o w e v e r , t h s h o r t e r s e a s o n w o u l d d i c t a t e d i f f e r e n t t h r e s h o l d , s a y 1 0g a m e s . M a k e t h e n e c e s s a r y a d j u s t m e n t i n l i n e 2 4 3 0 o t h p r o g r a m .

6 S h o w r e s u l t s . M e n u s e l e c t i o n 6 a l l o w s y o t r e v i e w t h r a n k i n g s w i t h o u t w a i t i n g t h r o u g h t h c a l c u l a t e a n s o r t s t e p s .N e e d l e s s t s a y , t h c a l c u l a t i n g a n s o r t i n g m u s t h a v e b e e nd o n e p r e v i o u s l y , o y o w i l l g e g a r b a g e .

7 P r i n t o u t . M e n u s e l e c t i o n w i l l s e n d a l o t h t e a m d a t a

T h m a i n p r o g r a m l i s t i n g r w o u l d r e q u i r e m i n i m a l m o d ir u i V I w i t h a l e a s t 3 t h R E M ' s , b u 8 w o u l d b c h a n g e s t l i n e s 1 2 7 0 a n d p r o g r a m . T h v e r s i o n f o d e l e t e s a l o o t h f r i l l s s u c t i o n s , a n f u n c t i o n k e y s . I f o s t o r i n g t e a m a n p l a y e rd i s k a c c e s s .

W h a t e v e r y o u r s p o r t , h o u s e f u l a n i n t e r e s t i n g t o o l .n o t h e r e a r m a n y i h u m a n a t h l e t e ' s p e r f o r m a nm o s t c a r e f u l l y p l a n n e d p r e de v e r , t h a t w i t h o u i n p u t a n f i r s t p l a c e i t h o f f i c e p o o l .

C r y s t a l B a l l F o T h e C 6 4 a

F M H G

E B D A N

I F

c L A G D K

1 0 0 0 r e m s a v e " 0 : c r y 1 0 1 0 r e m * * t h e c r y s t 1 0 2 0 r e * * w r i t t e n b 1 0 3 0 c s $ c h r $ ( 1 4 7 ) :

b k $ = c h r $ ( 1 4 4 ) :1 0 4 0 p r i n t c s $ : g o t o 11 0 5 0 1 r e n u m e 1 0 6 0 2 * b : i f b < n p1 0 7 0 b / 2 : i b < t 1 0 8 0 f o t o n p - b :1 0 9 0 b i p l ( i x °1 1 0 0 i x ° / o ( c ) : i x % ( c

i c > t h e n 1 0 9 01 1 1 0 n e x t : g o t o 1 0 7 01 1 2 0 1 r e a l p h a 1 1 3 0 b 2 * b : i f b < n p1 1 4 0 b / 2 : i b < t 1 1 5 0 f o t n p - b : 1 1 6 0 d b i p l $ (

t h e n 1 1 8 0

Page 61: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 61/84

A J

2 3 8 0 :2 3 9 0 i n p t h e n p r i n t e n t e r d a t a f i r s t ! " : g o s u b 2 8 9 0 :

r e t u r n

M M H

2 8 2 0 p r i n t c s $ : p r i n t2 8 3 0 g o s u b 2 8 9 0 : i f r 2 8 4 0 p r i n t b o n n e c h

Page 62: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 62/84

C O

A

B

D A

B A N

P P

K C H A E

P O M C L L G L P

C B

C N F

B

2 4 0 0 p r i n t : p r i n t " c a l c u l a t i n g "2 4 1 0 d 3 b = 1 0 : 2 f o t n p

i n t ( p l ° / o ( i , d ) * b * t m ( p l % ( i , 1 ) ) / p l ° / o ( i , a ) )2 4 2 0 p l ( i ) p a r i g h t $ ( " [ s p c s ] " s t r $ ( p ) , 4 ) :

p $ ( i ) l e f t $ ( a $ , 3 ) " . r i g h t $ ( a $ , 1 2 4 3 0 i p l ° / o ( i , a ) < 2 5 t h e n p $ ( i ) p $ ( i ) *

s t r $ ( p l ° / o ( i , a ) ) + g a m e s "2 4 4 0 p r i n t i , p l $ ( i ) p $ ( i ) : n e x t2 4 5 0 p r i n t : p r i n t : p r i n t : p r i n t " s o r t i n g . . " g o s u b 1 0 5 0 :

g o s u b 1 1 2 02 4 6 0 p r i n t : p r i n t s o r t e d " p r i n t : g o s u b 2 9 0 02 4 7 0 p r i n t w a n t t s e t h r a n k i n g ? " : p r i n t : g o s u b 2 8 9 0 :

i r $ " n t h e n 2 5 1 02 4 8 0 p r i n t p k r a n k [ 3 s p c s ] p l a y e r [ 5 s p c s ] t e a m

[ s p c s ] p r o d u c t i o n " b k $ : p r i n t2 4 9 0 f o t o n p : i x % ( i )2 5 0 0 p r i n t t a b ( 7 ) p l $ ( a ) " t m $ ( p l % ( a , 1 ) ) " [ s p c s ] "

l e f t $ ( p $ ( a ) , 8 ) : n e x t2 5 1 0 p r i n t : p r i n t : p r i n t " w a n t t s e t h a l p h a l i s t ? "2 5 2 0 g o s u b 2 8 9 0 : i r n " t h e n r e t u r n2 5 3 0 p r i n t : p r i n t s p c ( 7 ) p k $ " a l p h a b e t i c a l l i s t " b k $ : p r i n t2 5 4 0 f o t n p a l ° / o ( i ) : p r i n t t a b ( 7 ) ;2 5 5 0 i x ° / o ( a ) : p r i n t p l $ ( a ) " " t m $ ( p l ° / o ( a , 1 ) ) " [ s p c s ] "

l e f t $ ( p $ ( a ) , 8 ) : n e x t2 5 6 0 g o s u b 2 8 9 0 : r e t u r n2 5 7 0 :2 5 8 0 p r i n t o u t2 5 9 0 :2 6 0 0 o p e n 4 , 4 : a c h r $ ( 1 0 )2 6 1 0 p r i n t # 4 , a $ ; a $ ; c h r $ ( 1 4 ) ;2 6 2 0 p r i n t # 4 , " * * * c r y s t a l b a l l * * * " c h r $ ( 1 5 )2 6 3 0 p r i n t # 4 , a $ ; a $ ; a $ ; c h r $ ( 1 4 ) " [ s p c s ] t e a m s " c h r $ ( 1 5 )2 6 4 0 p r i n t # 4 , a $ " [ s p c s ] t e a m [ 8 s p c s ] w i n s [ 4 s p c s ]

l o s s e s " a 2 6 5 0 f o t n t t m ° / o ( i , 2 )2 6 6 0 p r i n t # 4 , r i g h t $ ( " [ s p c s ] " s t r $ ( i ) [ s p c s ] " , 6

t m $ ( i ) " [ s p c s ] " a ; s p c ( 5 - ( a < 1 0 ) ) t m ° / o ( i , 3 )2 6 7 0 n e x t2 6 8 0 p r i n t # 4 , a $ ; c h r $ ( 1 2 ) ; c h r $ ( 1 4 ) " [ 3 s p c s ] r a n k i n g s "

c h r $ ( 1 5 )2 6 9 0 p r i n t # 4 , a $ " r a n k [ 2 s p c s ] p l a y e r [ 6 s p c s ] t e a m [ 5 s p c s ]

p r o d u c t i o n " a 2 7 0 0 f o t o n p : a i x ° / o ( i )

C A A E E M C B G C

M I

D I I

C M G A

L

C C P K E G G K M I

M

E K L A

I E H

2 8 5 0 e n d2 8 6 0 :2 8 7 0 k e y b o a r d & b e 2 8 8 0 :2 8 9 0 p o k e 1 9 8 . 0 : w a i 2 9 0 0 p o k e w , 6 5 : f o t 2 9 1 0 :2 9 2 0 i d e n t i f y t e a m2 9 3 0 :2 9 4 0 0 v a l ( a $ ) :

p r i n t t m $ ( t ) : r e t u 2 9 5 0 a $ l e f t $ ( a $ , 1 1 )2 9 6 0 f o t n t i f a

p r i n t t m $ ( t ) : r e t u 2 9 7 0 n e x t : p r i n t a $ ; p k 2 9 8 0 g o s u b 2 9 0 0 :2 9 9 0 :3 0 0 0 d i s p l a y t e a m r e3 0 1 0 :3 0 2 0 p r i n t c s $ ; p k $ " [

w i n s " , " l o s s e s " 3 0 3 0 t . : t l = . f o

" [ 2 s p c s ] " , 2 , 3 ) t 3 0 4 0 p r i n t t m % ( U ) , t m ° / 3 0 5 0 t t t m ° / o ( i , 2 3 0 6 0 i t w - t l t h e n p r i n t3 0 7 0 p r i n t : p r i n t t o t a l3 0 8 0 r e t u r n3 0 9 0 :3 1 0 0 : l i s t p l a y e r s3 1 1 0 :3 1 2 03 1 3 0 1 p r i n t c s $ ; p

t e a m [ 6 s p c s ] g a 3 1 4 0 p r i n t m i d $ ( s t r $ ( i )

t m $ ( p l % ( i , 1 ) ) p l % ( 3 1 5 0 + 1 + 1 3 1 6 0 i j < 2 3 t h e n 3 1 4 03 1 7 0 g o s u b 2 8 9 0 : g o t3 1 8 0 :3 1 9 0 d i s k c h e c k3 2 0 0 :3 2 1 0 m p u t # 1 5 , a , b $

C r y s t a l B a l l F o T h U n - E x p a n d e d V i c - 2 0

O N

1 0 0 0 r e m s a v e " O : c r y s t a l b a l l v i e " , 1 0 1 0 r e m * t h c r y s t a l b a l l f o t h u n - e x p a n d e d v i

N

F J

p $ ( i ) l e f t $ ( r $ [ s p e s i f f t h e n 1 5 1 0p ° / o ( i , 1 ) t n p n p + 1 : n g o s u b 2 0 1 0

1 5 4 0

1 5 5 01 5 6 0

Page 63: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 63/84

H G

C I

D L N G G

C O A G D J F

B F

F K

I J C F L J F

F D

H 0 L

A

C C N C

1 0 2 0 r e m * w r i t t e n b y : i a n a d a m , V a n c o u v e r , b . c .1 0 3 0 c s c h r $ ( 1 4 7 ) : y l c h r $ ( 3 0 ) : p k c h r $ ( 2 8 ) :

b k c h r $ ( 1 4 4 ) : b n $ = c h r $ ( 1 5 1 )1 0 4 0 g o t o 1 1 9 01 0 5 0 b 1 0 6 0 b 2 * b : i f b < n p t h e n 1 0 6 01 0 7 0 b b / 2 : i b < t h e n 1 1 2 01 0 8 0 f o t o n p - b :1 0 9 0 b i p ( i % ( c ) ) > p ( i % ( d ) ) t h e n 1 1 1 01 1 0 0 i ° / o ( c ) : i ° / o ( c ) i ° / o ( d ) : i ° / o ( d ) a c - b :

i f c > . t h e n 1 0 9 01 1 1 0 n e x t : g o t o 1 0 7 01 1 2 01 1 3 0 b 2 * b : i f b < n p t h e n 1 1 3 01 1 4 0 b / 2 : i b < t h e n r e t u r n1 1 5 0 f o t n p - b :1 1 6 0 b i f p $ ( i ° / o ( a % ( c ) ) ) < p $ ( i ° / o ( a ° / o ( d ) ) ) t h e n 1 1 8 01 1 7 0 a % ( c ) : a ° / o ( c ) a % ( d ) : a ° / o ( d ) a c - b :

i f c > t h e n 1 1 6 01 1 8 0 n e x t : g o t o 1 1 4 01 1 9 0 1 2 n 4 d i m i % ( m ) , a % ( m ) , p $ ( m ) , p ( m ) ,

p % ( m , 2 ) , t $ ( n t ) , t % ( n t , 2 ) , t ( n t )1 2 0 0 f o t m i ° / o ( i ) i a ° / o ( i ) i : n e x t1 2 1 0 p r i n t c s $ ; b k $ " t e a m d a t a "1 2 2 0 p r i n t " p l a y e r d a t a "1 2 3 0 p r i n t " 3 f r o m t a p e "1 2 4 0 p r i n t " t t a p e "1 2 5 0 p r i n t " 5 c a l c / s o r t "1 2 6 0 p r i n t " p r i n t "1 2 7 0 p r i n t : p r i n t e n d "1 2 8 0 g o s u b 1 9 4 0 : o v a l ( r $ ) g o s u b 1 2 9 0 , 1 4 9 0 , 1 4 0 0 ,

1 6 6 0 , 1 7 5 0 , 1 8 4 0 , 2 0 5 0 : g o t o 1 2 1 01 2 9 0 i t % ( n t , 1 ) t h e n 1 3 3 01 3 0 0 f o t n t a $ " " p r i n t : i n p u t n a m e " ; a $ :

i a $ " t h e n 1 3 3 01 3 1 0 t $ ( t ) l e f t $ ( a $ [ s p e s ] " , 6 1 3 2 0 g o s u b 1 3 7 0 : n e x t1 3 3 0 g o s u b 1 9 8 01 3 4 0 p r i n t : p r i n t c h a n g e s ? " : g o s u b 1 9 4 0 :

i f r $ n " t h e n r e t u r n1 3 5 0 i n p u t t e a m ; a $ : g o s u b 1 9 5 0 : i f t h e n 1 3 6 01 3 6 0 g o s u b 1 3 7 0 : g o t o 1 3 3 01 3 7 0 p r i n t : i n p u t " g a m e s , p t s " ; d , t ° / o ( t , 1 )1 3 8 0 p r i n t : i n p u t e x w I " ; t ° / o ( t , 2 ) , t ° / o ( t , O )

E

C J D C B

E H

O H N J E D K K O F

G

J C G D G H L B D B

P

O

K N

B

F P

p r i n t : p r i n t : p r i n t c h a n g ei r t h e n r e t u r n

0 p r i n t : i n p u t " p # " ; i :p r i n t p $ ( i ) t $ ( p ° / o ( i , 1 ) ) p ° / o ( ip r i n t p $ ( i ) ; : i n p u t " o r " ; p $ a $ t $ ( p ° / o ( i , 1 ) ) : p r i n t a $ ; p r i n t p ° / o ( i , 2 ) ; : i n p u t " g m s p r i n t p ° / o ( i , O ) ; : i n p u t " p t s ,p $ ( i ) l e f t $ ( p $ ( i ) [ s p i f f t h e n 1 5 8 0p ° / o ( i , 1 ) t p r i n t p $ ( i ) t $ ( t p r i n t : i n p u t f i l e n a m e " ; o p e n 1 , 1 , 1 , r $p r i n t * 1 , c r p n n t # 1 , n t : p r i n t # 1 , n pf o t n t p r i n t # 1 , t $ ( i ) f o t 2 p r i n t * , t ° / o ( i ,f o t n p : p r i n t # 1 , p $ ( f o t 2 p r i n t # 1 , p % ( i ,c l o s e 1 r e t u r nb 1 0 f o t n p p ( i )

1 5 7 0

1 5 8 01 5 9 01 6 0 01 6 1 01 6 2 01 6 3 01 6 4 0

1 6 5 01 6 6 01 6 7 01 6 8 01 6 9 01 7 0 01 7 1 01 7 2 01 7 3 01 7 4 01 7 5 0

1 7 6 0 p r i n t i ; p $ ( i ) p ( i ) : n e x t : p r i n t1 7 7 0 p r i n t : p r i n t : p r i n t r e a d y " 1 7 8 0 f o t n p i % ( i )1 7 9 0 p r i n t c h r $ ( 1 5 7 ) ; i ; p $ ( a ) "1 8 0 0 p r i n t : p r i n t a b c ? " : p r i n t :1 8 1 0 f o t n p a ° / o ( i ) :1 8 2 0 i % ( a ) : p r i n t p $ ( a ) "1 8 3 0 g o s u b 1 9 4 0 : r e t u r n1 8 4 0 o p e n 4 , 4 : a c h r $ ( 1 0 )1 8 5 0 p r i n t # 4 , a $ ; a $ ; s p c ( 6 ) " t e

[ s p c s ] l o s s e s " a $1 8 6 0 f o t n t p r i n t # 4 , i " [ 3

t ° / o ( i , 2 ) " [ s p e s ] " t ° / o ( i , O ) :1 8 7 0 p r i n t # 4 , a $ ; a $ " r a n k [ 2 s p

[ s p c s ] p r o d " a $1 8 8 0 f o t o n p : a i ° / o ( i )1 8 9 0 p r i n t # 4 , i " [ s p e s ] " p $ ( a )

n e x t1 9 0 0 p r i n t # 4 , a $ " r a n k [ 2 s p c s ]

[ s p e s ] p r o d " a 1 9 1 0 f o t o n p : a a ° / o ( i ) : p1 9 2 0 i % ( a ) : p r i n t # 4 , p $ ( a ) "

H o m e C o n t r o l J e

Page 64: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 64/84

O V I 2 M o n

" . t u r n s o l i g h t s , c o n t r o l s c o l d s t o r a g e r o o m , g a t h e r s t e m pd a t a , a n k e e p s w a t c h o m m o t o r c y c l e p a r k e d i t h b a

W i t h V I 2 0 a v a i l a b l e a s u c h l o p r i c e s t h e s e d a y s , M r . D e R o s i e r s ' w o r k a p p r o a c h e s t h i d e a l r e a l l i ff a c t , t h B S C o m m a n d C o n s o l e a n r e m o t e m o d u l e s w i l l e a s i l y c o s t m o r e t h a n t h V I a n M r D e R o s T h B S s y s t e m i a v a i l a b l e a E a t o n s o R a d i o S h a c k , a n u s e s t h A l i n e s a l r e a d y i n s i d e t h e w a l l ss e n d s i g n a l s t r e m o t e m o d u l e s p l u g g e d i n t o a n o u t l e t . T h e s e s i g n a l s a r e s e n t a m u c h h i g h e r f r e q us o t h e y w o ' I i n t e r f e r e w i t h t h 1 2 v o l t A p o w e r . T h e r e m o t e m o d u l e t h e n t r a n s f e r s p o w e r t w h a t e v e ri t a n v o i l a ! A n A o r c a b c o n t r o l l e d a a n t i m e ! A n w i t h t h p r o g r a m p r e s e n t e d h e r e t h e y c a a n t i m e o a n d a o t h w e e k . T t o i o f f , M r D e R o s i e r s h a a d d e d e i g h t a n a l o g t d i g i t a l i n p u t s s b c o l l e c t e d t h a t c a b u s e d t d e t e r m i n e c o n t r o l l e r o u t p u t . T h i n p u t c o u l d c o m e f r o m s i m p l e s t e m p e r a t u r e s e n s o r , f o w h i c h d e t a i l e d s c h e m a t i c s a r e i n c l u d e d ! A i t h a t w e r e n ' t e n o u g h , D e R o s i e rr e m o t e s t a t u s i n d i c a t o r s f r o m s e g m e n t d i s p l a y s s y o c a e l i m i n a t e y o u r T o m o n i t o r a n u s i e l

s t a r t e d p l a y i n g w i t h m i c r o p r o c e s s o r s w h e n b o u g h t u s e d K I M .T h e n b o u g h t t h k i v e r s i o n o t h S i n c l a i r Z X 8 0 . f e y e a r s l a t e rg o h o l d o r e a l m i c r o c o m p u t e r D E V T - 1 8 0 , b u w h e n m

y o u n g d a u g h t e r a l w a y s w a n t e d t h a m m e r a w a y a m k e y b o a r d ,d e c i d e d t g e h e V I 2 0 T h a d p r o m i s e d g r e a t e d u c a t i o n a ls o f t w a r e , p l u s t h e y h a s t a r t e d t d r o p i n p r i c e .

T h " g r e a t e d u c a t i o n a l s o f t w a r e " c a m e i e x p e n s i v e a n i m p r a c t ic a c a r t r i d g e s , a n a l i e n g l i s h . f r e n c h s p e a k i n g t w y e a r o l c a n ' t b t a u g h t t h s u b t l e t i e s o f t h e n g l i s h l a n g u a g e i a s h o r te n o u g h t i m e t b e c o m e i n t e r r e s t e d , a n d o n V I 2 0 S t h p o o rv i w a l e f t a l o n e i i t b o x . l a t e r b o u g h t 6 a n s h q u i c k l yl e a r n e d n u m b e r s a n t h e a l p h a b e t .

t h e n t r i e d t o s e l l t h p o o r V I 2 0 b u n o b o d y w a s f o o l i s h e n o u g ht c o n s i d e r b u y i n g i t T h e n r e a d i n g t h e 6 4 ' s p r o g r a m m e r s r e f e re n c e m a n u a l n o t i c e d i h a 2 h o u r c l o c k , t h e n c h e c k e d t h V I 2 t f i n d i h a c l o c k t o o . T h a t l e m t t h i n k a b o u t t h t i m e s w a n t e d t h a v e c o m p u t e r r u f e t h i n g s a r o u n d t h h o u s e b u r e j e c t e d t h e i d e a a s b e i n g t o c o m p l i c a t e d .

h a r e a d t h n u m e r o u s a r t i c l e s t h a t w e r e w r i t t e n t h r o u g h o u t t h y e a r s a b o u t h o m e c o n t r o l , m o s t o t h e m e i t h e r r e q u i r e d l o o h a r d w a r e m o d i f i c a t i o n s o r t y i n g u p a n e x p e n s i v e m i c r o c o m p u t e r ,

s e o a l t h e t i m e . M o s t o t h r e q u i r e d . I t h f u l l p o s s i b i l i t b u i l d w h a t e v e r i n t e r f a c e s a r

H a r d w a r e a n S o f t w a r e D

M e m o r y E x p a n s i o n

T h 8 e x p a n s i o n i s i m p l ye x p a n s i o n c o n n e c t o r , a s h o

B S I n t e r f a c e

T h e B S R i n t e r f a c e , f i g u r e 2 i o c i r c u i t t h a t a p p e a r e d i V o l t a g e t p o w e r t h o s c i l l a t c o n s o l e i t s e l f . L o c a t e a l a r g ec o n s o l e , c o n n e c t t h r e s p e c t i t h c a p a c i t o r l e a d s . T h e r e s c a p , b u b c a r e f u l w h e n m c o n s o l e b e c a u s e i i n o i s o l ao p t o - i s o l a t o r i u s e d t c o n n eo u t p u t f r o m t h o s c i l l a t o r i c I . C . ( t h e 5 4 2 C i t h o n l y c

g r a m t h e n s e a r c h e s t h i s s t r i n g a n p o k e s t h a p p r o p r i a t e v a l u e s i m e m o r y . F o z e r o , t h p r o g r a m p o k e s t h v a l u e s 2 a n 1 3 i t w c o n s e c u t i v e m e m o r y l o c a t i o n s . F o o n e , t h n u m b e r s p o k e da r 8 a n 8 0 T h e s e n u m b e r s w e r e c h o s e n t g i v e t h e c o r r e c tt i m i n g u s i n g i n s t r u c t i o n l o o p s i m a c h i n e l a n g u a g e . W h e n t h

T h p o w e r s u p p l y i f i g u r e 5 w o r k sA . C . f r o m t h t r a n s f o r m e r i r e c t i f i e db a t t e r y . u s e d t r a n s f o r m e r f r o m t h

l o c a l p a r t s s t o r e , a n w i t h i t h c h a r T h b a t t e r y c a b a n s i z e 1 v o l t

Page 65: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 65/84

w h o l e s t r i n g h a b e e n e x a m i n e d a n d t h a p p r o p r i a t e v a l u e sp o k e d , t h m a c h i n e l a n g u a g e s u b r o u t i n e t a k e s o v e r a n t o g g l e st h I / p o r t a c c o r d i n g t t h v a l u e s p r e v i o u s l y p o k e d i m e m o r y .T h n e r e s u l t i c o m p l e t e e m u l a t i o n o t h B S c o m m a n dc o n s o l e . T h u s t h s e q u e n c e i t f i r s t s e n d a u n i t c o d e , t h e n t h a c t i o n t b t a k e n , j u s t a i s o m e o n e w a p u s h i n g t h b u t t o n s .

A / C o n v e r t e r

T h A / u s e d i a s i n g l e c h a n n e l A D C - 0 8 0 4 . 4 0 5 1 C M O Sa n a l o g m u l t i p l e x e r e x p a n d s i t t o t a l o 8 a n a l o g i n p u t s . T h a n a l o g c h a n n e l i s e l e c t e d b a o c t a l l a t c h . T h I / p o r t c o u l d b u s e d t d t h s a m e t h i n g , b u w o u l d b l e s s e l e g a n t . T h w h o l ec i r c u i t i s h o w n i f i g u r e 3 S i n c e d e c o d e d a d d r e s s e s w e r en e e d e d ( t h e o c t a l l a t c h a n t h A / a r m e m o r y m a p p e d ) a n t h r e e 8 a d d r e s s b l o c k s w e r e l e f t u n u s e d ( b l o c k i u s e d b y t h 8 e x p a n d e r ) , t h e r e w a n o n e e d f o a a d d r e s s d e c o d e r . S b l o c k i u s e d t s e l e c t a a n a l o g c h a n n e l , b l o c k s t a r t s a a n a l o g c o n v e rs i o n a n b l o c k r e a d s t h e r e s u l t f r o m t h A / D .

T h s o f t w a r e u s e d i q u i t e s i m p l e . F i r s t t h s e l e c t e d A / c h a n n e lt b u s e d , f r o m t 7 i p o k e d w h e r e t h m a c h i n e l a n g u a g es u b r o u t i n e i l o c a t e d , t h e n t h i s v a l u e i s t o r e d t l o c a t i o n 1 6 3 8 4( 4 0 0 0 h e o b l o c k 2 ) S i n c e t h o c t a l l a t c h ( 7 4 L S 3 7 3 ) i s e l e c t e d b b l o c k 2 w e n u w i t h a n a n a l o g c h a n n e l b e i n g s e l e c t e d . S e c o n d ,t s t a r t c o n v e r s i o n w o n l y n e e d t s e n d a p u l s e t l o c a t i o n2 4 5 7 6 ( 6 0 0 0 h e o b l o c k 3 ) T g i v e t h A / t i m e t c o m p l e t e i t ' sc o n v e r s i o n , a s m a l l d e l a y l o o p i e x e c u t e d . T h e n t h e v a l u e f r o ml o c a t i o n 4 0 9 6 0 ( A 0 0 0 o b l o c k 5 i l o a d e d i t h a c c u m u l a t o r a n s t o r e d i m e m o r y l o c a t i o n 1 6 1 5 6 , w h i c h i w h e r e t h b a s i c p a r t o t h p r o g r a m r e t r i e v e s t h r e s u l t o f t h c o n v e r s i o n . T h i s w h o l ep r o c e s s i r e p e a t e d 4 t i m e s t i r o n o u p e a k s o s t r a y v a l u e s .

T e m p e r a t u r e S e n s o r s a n A m p l i f i e r s

s e o u t f i n d c h e a p , e a s y - t o - g e t a n r e l i a b l e s e n s o r s . f i n a l l yo p t e d f o r e g u l a r 2 N - 2 2 2 2 A t r a n s i s t o r s . T h e m i t t e r b a s e j u n c t i o no s i l i c o n t r a n s i s t o r w i l l m e a s u r e a b o u t . v o l t s w h e n f o r w a r db i a s e d , a n g o e s d o w n a t e m p e r a t u r e i n c r e a s e s . T h c h a n g e i v o l t a g e i m i n i m a l , a b o u t 2 . 1 6 m V / ° C o 2 1 m f r o m 0 ° C t 1 0 0 ° C . S i n c e t h e t e m p e r a t u r e s w a w o r k i n g w i t h w o u l d g i v e m t h s a m e r a n g e ( - 5 0 ° C t + 5 0 ° C ) , w a f o r c e d t a m p l i f y t h s i g n a l . A s i d e b e n e f i t , t h s i g n a l i i n v e r t e d s o t h a t v o l t a g e g o e su a t e m p e r a t u r e g o e s u p T h a m p l i f i e r s a r e i m p l e m e n t e d w i t h

i n d u s t r i a l l e a d - a c i d b a t t e r y , b u t a s m a r i g h t n u m b e r o n i c k e l - c a d m i u m c e l l v o l t s f r o m t h e b a t t e r y i b r o u g h t d o w r e s i s t o r f e e d i n g a L M - 3 2 3 t h r e e a m u s e d t r e d u c e t h i n p u t v o l t a g e t t e m p e r a t u r e w o u l d c l i m b t o h i g h a n s h u t - d o w n . E v e n t h o u g h t h i n p u t v o i s t i l l w i s e t h e a t s i n k t h r e g u l a t o r .V I a s u s u a l . I t h e v e n t o l o s s o fr e g u l a t o r w i l l k e e p t h V I 2 h u m w o r k i n g w o u l d b t h c a s s e t t e i n t e r f a c

A n o t h e r w a t g e t h s a m e b a c k u p w c e l l s w i t h r e c t i f i e r s u s e d a c u r r e n t s s t y l e V I C ' s u s D c e l l s t o g e v of i l t e r c a p r e c e d i n g t h v o l t s r e g u l n e w e r V I C ' s u s c e l l s w i t h r e c t i f i e rt h p o w e r c a b l e , a i f i g u r e 7

R e m o t e D i s p l a y

F i g u r e i s c h e m a t i c t g i v i n g a v i s u ao n w i t h o u t h a v i n g t k e e p t h T o mu s e d t w d i s p l a y s o f o u r d i g i t s e a c h . O s h o w t h t i m e , a n i u p d a t e d e a c h t i mt h m a i n l o o p . T h o t h e r i u s e d t s h ot h s e n s o r s , c h o s e n b k e y b o a r d e n t r ys i o n b e t w e e n t h V 1 C - 2 0 a n t h d i s p e c u l i a r i t y ; t h s a m e w i r e t h a t s e n d s t d i s p l a y . O n l y t h r e e w i r e s a r u s e d t d i s p l a y s , s t h a t i c a b l o c a t e d q u i t ew i r e s s t r u n g a l o v e r t h p l a c e o r h a v p o w e r t h d i s p l a y s .

A / C a l i b r a t i o n

I i n o n e c e s s a r y t t r i m e v e r y c h a n n s a m e w a y . T h r e q u i r e d o f f s e t w i l lm e a s u r e t h e v o l t a g e a t h o u t p u t o s e n s o r i m m e r s e d i c r u s h e d i c e , t h es e n s o r p l u n g e d i b o i l i n g w a t e r , t h i s 1 0 0 ° C , o m s y s t e m t h r a n g e w a 1 . a 1 0 0 ° C , t h u s :

( 3 . 7 6 - 1 . 6 ) / 1 0 0 0 . 0

c a l i b r a t e d i a g l a s s f i l l e d w i t h m i x t u r e o f i c e a n w a t e r . L e t h r e a d i n g s t a b i l i z e a n n o t e t h e r e a d i n g ( T h e f i r s t r e a d i n g i f o C % ( 0 ) a n t h l a s t C % ( 7 ) g i v i n g a l e i g h t c h a n n e l s ) . T h i s i t h o f f s e t t o b e u s e d w i t h t h a t c h a n n e l . N o t e t h e r e a d i n g s f o a l e i g h ts e n s o r s ( i t h e y a r a l u s e d ) a n i n s e r t t h p r o p e r v a l u e s i t h

1 4 6 0 t 1 4 9 0 S e n d d a t a t t 1 5 0 0 t 1 5 5 0 C l o c k o f f s e t r o

T e m p e r a t u r e a n t i m e r e l a t e 1 0 9 0 a n 1 1 0 0 . T h v a l u e s

Page 66: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 66/84

m a i n p r o g r a m .

L i s t i n g T e m p e r a t u r e S e n s o r O f f s e t

1 2

f o t p r i n tg

3 0 p o k e 1 6 3 8 4 , i4 f o t 1 5 p o k e 2 4 5 7 6 , 06 g g p e e k ( 4 0 9 6 0 )7 n e x t j8 r e s u l t = 1 2 7 - ( g t / 2 0 )

G i G r a n d T o t a ls e l e c t a n a l o g c h a n n e lr e a d s e n s o r 2 t i m e ss t a r t c o n v e r s i o nr e a d r e s u l t a n a d t p r e v i o u s

r e s u l t i o f f s e t9 p r i n t i n t ( ( i n t ( r e s u l t * 1 0 0 ) ) / 1 0 0 )1 0 n e x t

d r o p a l f r a c t i o n s

1 1 0 f o r i 0 t o 9 9 9 : n e x t1 2 g o t o 1

s e c o n d d e l a y

T h c o m m e n t s t e l l t h e s t o r y p r e t t y w e l l . U s i n g t h o f f s e t g e n e r a t e db t h i s s m a l l r o u t i n e , h a v e t e s t e d t w s e n s o r s o n n e x t t t h o t h e r , a n d h a v e f o u n d t h e m t b a c c u r a t e t w i t h i n 0 . 5 ° C f r o m0 ° t 4 5 ° C . T h t e m p e r a t u r e r e a d i n g s g i v e n b b o t h s e n s o r s w e r ee x a c t l y t h s a m e t h r o u g h o u t t h r a n g e .

P r o g r a m S t r u c t u r e : L i s t i n g

L i n e ( s ) D e s c r i p t i o n1 0 2 5 b y t e s a r r e s e r v e d f o t h m a c h i n e l a n g u a g e

s u b r o u t i n e s f r o m 1 6 1 2 8 t 1 6 3 8 3 .1 1 T h o f f s e t r e q u i r e d b t h t e m p e r a t u r e s e n s o r s a r

i n s e r t e d o t h i s l i n e .1 2 0 A r r a y s a r D I M e d h e r e , O i c l o c k o f f s e t .1 3 t 2 2 B S m e s s a g e f o r m a t s2 3 t 3 7 D a t a s t a t e m e n t s f o m a c h i n e l a n g u a g e r o u t i n e s3 6 t 4 6 C o n s t a n t s a n s e t h m a i n a r r a y t k n o w n v a l u e .4 7 t 5 9 M e n u d i s p l a y .6 0 t 6 6 S e c l o c k a n d a y .6 7 t 9 0 S e A c t i o n a r r a y " r o u t i n e s .9 1 t 9 8 S e B S m o d u l e s N O W .9 9 t 1 0 2 0 L o a d a r r a y f r o m t a p e .1 0 3 0 t 1 0 6 0 S a v e a r r a y t o t a p e .1 0 7 0 G e t c h a r a c t e r f r o m k e y b o a r d , i e q u a l t T e r m i n a t e ,

g b a c k t m e n u .1 0 8 0 t 1 1 0 0 I c h a r a c t e r i n p u t i f r o m t 8 s e n d v a l u e r e a d

f r o m s e n s o r s e l e c t e d t r e m o t e d i s p l a y .

c o n t a i n e d i A C ( 0 ) t A C ( 7 ) ,u s e d a o u t p u t t s o u n d a s a l a r m s e n s o r s . I m o r e b i t s o f o r g e t t c h a n g e a d d r e s s 1 6 1 6w h a t b i t s a r u s e d a s o u t p u t .o u t p u t s . P B i c o n n e c t e d t u s e d f o t h r e m o t e d i s p l a y s .

h a t i n c l u d e " C l o c k o f f s o t h V I C 2 0 i s l i g h t l y f a s t w e r e t w w a y s t g a b o u to s c i l l a t o r o s e c o n d m a k e t h i n c l u d e d w i l l t r i m s e c o n d st h t i m e a l m o s t p e r f e c t l y .

S i n c e t h i s i n o c o m m e r c iw r o n g d a t a , a n t h p r o g r s o m e o n e s m a r t e n o u g h t w o u l d n o b f o o l i s h e n o u g h

E x p l a n a t i o n O V a r i a b l e s

C ° / o ( x ) T e m p e r a t u r e o f f s e C $ ( x ) B S m e s s a g e s t r i nT ° / o ( l , J , A ) M a i n a c t i o n a r r a y

t h t i m e a n a c t i oH H M M A w h e r e H a c t i o n , m e a n sz e r o , o f f . T h n u m o l o w e r t h a n 0 r e p r e s e n t s c h a n n e

i o n o f o u r a cX ° / o ( l , A ) D a i l y a r r a y , m e

k e e p f r o m s e n d i n p r o g r a m . R a n g e

K c o n s t a n t e q u a lJ O $ ( x ) D a y s o t h w e e k .

D a o t h w e e k ,C V a l u e o c h a r a c t e r

t e m p e r a t u r e v a l u eC E q u a l s C A - 1H V a l u e t b p o k e

R e p r e s e n t s t h t h H V a l u e t b p o k e

G T o t a l o 4 A v e r a g e o

s e n s o r v a l u e st h 4 v a l u e s G T / 4 0 )

T e m p e r a t u r e v a l u e w i t h o f f s e t a d d e dt t w p l a c e s . ( " C C . C C )

i n s t r u c t i o n l o o p a 1 6 2 2 4 g i v e s t h A / s i o n . T h A / c o n v e r t e r i t h e n r e a ds t o r e d i m e m o r y l o c a t i o n 1 6 1 5 6 . T h r e t r i e v e d a n t r e a t e d b t h b a s i c p a r t

Page 67: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 67/84

M a c h i n e L a n g u a g e

B S I n t e r f a c e

1 6 1 6 01 6 1 6 21 6 1 6 41 6 1 6 71 6 1 6 91 6 1 7 21 6 1 7 51 6 1 7 61 6 1 7 71 6 1 7 81 6 1 8 01 6 1 8 11 6 1 8 41 6 1 8 71 6 1 8 81 6 1 8 91 6 1 9 01 6 1 9 11 6 1 9 31 6 1 9 51 6 1 9 61 6 1 9 71 6 1 9 91 6 2 0 11 6 2 0 41 6 2 0 61 6 2 0 81 6 2 0 91 6 2 1 21 6 2 1 31 6 2 1 5

1 6 9 , 11 6 0 , 01 4 1 , 1 8 , 1 4 51 6 9 , 11 4 1 , 1 6 , 1 4 53 2 , 6 9 , 6 32 3 2 3 2 3 1 6 9 , 02 0 1 4 1 , 1 6 , 1 4 53 2 , 6 9 , 6 32 3 2 3 2 3 2 0 1 9 2 , 2 42 0 8 , 2 2 89 2 3 1 6 9 , 01 0 5 , 13 2 , 8 1 , 6 32 0 1 , 1 14 8 , 2 4 79 1 9 0 , 0 , 6 32 0 2 0 8 , 2 5 39

R o u t i n e s

I d # I d # s t a 3 7 1 3 8 ( D D R f o p o r t B I d # s t 3 7 1 3 6 ( D A T A r e g . f o p o r t B j s 1 6 1 9 7n o n o n o l d a # 0i n s t 3 7 1 3 6 ( D A T A r e g . f o p o r t B j s 1 6 1 9 7n o n o n o i n c p y # 2 4b n e 1 6 1 6 7r t n o l d a # 0a d c # 1j s 1 6 2 0 9c m # 1 b m i 1 6 1 9 9r t I d 1 6 1 2 8 , Yd e b n e 1 6 2 1 2r t

T h f i r s t t h r e e l i n e s s e t u t h e u s e r p o r t t k n o w n s t a t e . T h e n t h p r o g r a m j u m p s t c o u p l e o i n s t r u c t i o n l o o p s t h a t p r o v i d e t h p r o p e r d e l a y . L i n e 1 6 2 0 9 l o a d s t h e r e g i s t e r w i t h t h e v a l u e s t h a tw e r e p o k e d i m e m o r y b t h b a s i c p a r t o t h p r o g r a m , s i n c e i l o a d e d f r o m a d d r e s s 1 6 1 2 8 i n d e x e d b y Y w m a n a g e t s c a n t h 2 m e m o r y l o c a t i o n s c o n t a i n i n g t h v a l u e s c h o s e n t g i v e t h ep r o p e r t i m i n g r e l a t i o n s h i p . S i n c e t h v a l u e s c h o s e n g a v e o n l y o n

R e m o t e D i s p l a y

1 6 2 3 61 6 2 3 81 6 2 4 11 6 2 4 41 6 2 4 71 6 2 4 91 6 2 5 21 6 2 5 31 6 2 5 51 6 2 5 61 6 2 5 81 6 2 5 91 6 2 6 21 6 2 6 51 6 2 6 81 6 2 7 01 6 2 7 31 6 2 7 41 6 2 7 6

1 6 2 , 1 0 01 7 2 , 2 9 , 6 31 7 3 , 3 1 , 6 31 4 1 , 1 6 , 1 4 51 6 9 , 01 4 1 , 1 6 , 1 4 51 3 2 0 8 , 2 4 22 0 2 0 8 , 2 3 69 1 7 2 , 3 0 , 6 31 7 3 , 3 1 , 6 31 4 1 , 1 6 , 1 4 51 6 9 , 01 4 1 , 1 6 , 1 4 51 3 2 0 8 , 2 4 29

I d # 1 0 0I d y 1 6 1 5 7I d 1 6 1 5 9s t 3 7 1 3 6l d a # 0s t 3 7 1 3 6d e b n e 1 6 2 4 1d e b n e 1 6 2 3 8r t I d 1 6 1 5 8I d 1 6 1 5 9s t 3 7 1 3 6l d a # 0s t 3 7 1 3 6d e b n e 1 6 2 6 2r t

( T ( T h ( P o r( D a

( D a

( T e ( P o r( D a

( D a

T h i s s u b r o u t i n e i u s e d t s e n d d a t a t t t h e b a s i c p a r t o t h p r o g r a m i d o n e1 6 1 5 7 t 1 6 1 5 9 . T h f i r s t t w l o c a t ih u n d r e d s , a n t h t e n s u n i t s o t h n u t h l a s t c o n t a i n s t h b i v a l u e o t h c o n s i s t s o i n s t r u c t i o n l o o p s c o n t r o l l e T h t w r o u t i n e s ( 1 6 2 3 6 t 1 6 2 5 8b a s i c a l l y t h e s a m e , e x c e p t t h a t t h f i r s tg i v e t h e c o r r e c t n u m b e r o t i m e s t h a tn u m b e r u t 9 9 9 9 c a b s e n t , a l op o k e d i m e m o r y .

B S C o m m a n d) D D D D F u n c t i o n

A L O A L O F O O F B R I G H T

Page 68: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 68/84

K C K N O

1 2 9 0 n e x t : n e x t : r e t u r n1 3 0 0 e n $ c $ ( i ) : g o s u b 1 3 6 0 : i f a c % t h e n e n $ a 1 3 1 0 i f a c % O t h e n e n S = e 1 3 2 0 g o s u b 1 3 6 0 : r e t u r n1 3 3 0 f o r i 0 t o 1 5 : e n $ c $ ( i ) : g o s u b 1 3 6 O : i f t t ° / o ( i )

A I

B O

1 4 3 0 p e e k ( 1 6 1 5 6 ) : g t g 1 4 4 0 i n t ( g t / 4 0 ) : y ( k * ( 1 4 5 0 p r i n t " s e n s o r " ; + , c : a c ( 1 4 6 0 p o k e 1 6 1 5 7 , h a : p o k e 1 6 1 5

: p o k e 3 7 1 3 6 , h c : p o k e 3 7 1

Page 69: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 69/84

D B D

A O O F C A

t h e n e n $ e 1 3 4 0 i f t t % ( i ) t h e n e n $ a 1 3 5 0 g o s u b 1 3 6 0 : n e x t : r e t u r n1 3 6 0 f o r j 0 t o 9 : c $ m i d $ ( e n $ , j 1 , 1 )1 3 7 0 i f c $ 0 t h e n p o k e i 6 1 3 0 + j * 2 , 2 4 : p o k e 1 6 1 3 1 j * 2 , 1 3 '1 3 8 0 i f c $ = " " t h e n p o k e 1 6 1 3 0 + j * 2 , 8 0 : p o k e 1 6 1 3 1 + j * 2 , 8 01 3 9 0 n e x t : s y s 1 6 1 6 0 : r e t u r n1 4 0 0 p r i n t " S : p r i n t t i $ , j o $ ( e ) : p r i n t1 4 1 0 f o r i 0 t o 7 : p o k e 1 6 2 1 7 , i : g t1 4 2 0 f o r j = 0 t o 3 9 : s y s 1 6 2 1 6

M M O H

B I

L K K

1 4 7 0 f o r k t o : n e x t : i f h a > 0 1 4 8 0 i f h b > 0 t h e n s y s 1 6 2 5 91 4 9 0 r e t u r n1 5 0 0 h d v a l ( t i $ ) : h d h d - o f : i

n g h t $ ( s t r $ ( h d ) , 1 ) : r e t u r n1 5 1 0 i f h d < 1 O O t h e n t i S " 0 0 0 01 5 2 0 i f h d < 1 O O O t h e n t i S 0 0 1 5 3 0 i f h d < 1 O O O O t h e n t i S " 0 1 5 4 0 i f h d < 1 0 0 0 0 0 t h e n t i $ = " 1 5 5 0 i f h d > 9 5 9 5 9 t h e n t i $ n g h

L i s t O F i g u r e s

F i g u r e S i n g l e C h i p 8 M e m o r y E x p a n s i o nF i g u r e B S I n t e r f a c eF i g u r e 3 A n a l o g t D i g i t a l C o n v e r t e rF i g u r e T e m p e r a t u r e S e n s o r s a n A m p l i f i e r sF i g u r e P o w e r S u p p l y f o b o t h s t y l e V I 2 0 ' sF i g u r e 6 A l k a l i n e C e l l s B a t t e r y B a c k - u p ( o l d V I 2 0 ' s )F i g u r e A l k a l i n e C e l l s B a t t e r y B a c k - u p ( n e w V I C 2 0 ' s )F i g u r e 8 R e m o t e D i s p l a y T r a n s m i t t e rF i g u r e 8 R e m o t e D i s p l a y R e c e i v e r

S e m i c o n d u c t o r s

H M 6 2 6 4 P - 1 5 8 S t a t i c R A c h i pT I L - 1 1 1 o p t o c o u p l e r2 N - 3 9 0 4 N P T r a n s i s t o r1 N - 4 7 4 4 A 1 V o l t W a t t Z e n e r D i o d e4 0 0 1 Q u a d 2 - I n p u t N O G a t e2 N - 2 2 2 2 A N P T r a n s i s t o r sL M - 3 2 4 Q u a d O P - A M P4 0 3 3 D e c a d e c o u n t e r w i t h s e g m e n t o u t p u tM A N - 3 s e g m e n t d i s p l a y1 N - 4 0 0 1 R e c t i f i e r7 4 L S 0 5 H e i n v e r t e r w i t h o p e n c o l l e c t o rT I P - 1 1 7 D a r l i n g t o n P N P o w e r T r a n s i s t o r7 4 L S 0 4 H e i n v e r t e r7 4 L S 0 0 Q u a d 2 - i n p u t N A N D G a t e

A r t i c l e

C o m p u t e r i z e H o m eP l u g I R e m o t e C o n t r o l S y s t e mA 8 0 8 0 - B a s e d R e m o t eA p p l i a n c e C o n t r o l l e rS i n g l e W i r e P a i r M u l t i p l e x e sP o w e r a n d D a t a F o D i s p l a y

R e f e r e n c e s

A u t h o r

S t e v e C i a r c i aS t e v e C i a r c i aD a v i d S t o e h l i n

T o m m y N T y l e r

P a r t s L i s t

R e s i s t o r s

1

3 1 0 1 2 1 8 7 5 I 5 . 1 k9 . 1 k1 0 3 3 1 0 0 k1

2 1 / 1 / 1 / 1 / 4 W1 / 4 W1 / 4 W1 / 1 / 1 / 4 W1 / 4 W1 / 4 W1 /

C a p a c i

2 0 4 7 0 . 0 . 1 0 5 0

F I G U R ES I N G L E C H I P 8 M E M O R Y E X P A N S I O N

Page 70: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 70/84

P i n s o e x p a n s i o n c o n n e c t o r

C h i p u s e d i a H M 6 2 6 4 P - 1 5 b H i t a c h i

v c F I G U R E

B S I N T E R F A C E

T I L - 1 1 1 C 4 0 0 1

F I G U R EA N A L O G T D I G I T A L C O N V E R T E R

Page 71: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 71/84

A n a l o g i n p u t s

+ +

B L K 54 0 9 6 0 1 7 7 4 L S 0 0 1 / 7 4 L S 0 4

F I G U R ET E M P E R A T U R E S E N S O R S A N D A M P L I F I E R S

Page 72: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 72/84

C H A NC H A NC H A NC H A N

1 ,

2 ,

3 , 4 , 1

1 1

O U

1

Q U

2 a m 5 0 P I V b r i d g e

T h s p e c s f o r t h e a r l y V a a s p s .

O T h e n e w s t y l e V I C 2 0 ' s u s e t O t h o l s t y l e V I C 2 0 ' s u s e o c o n n e c t e d a t h B a m e p o i n t b

F I G U R E A L C A L I N E C E L L B A T T E R Y B A C K - U P F O O L S TR e g u l a t o r i n s i d e t h V I

F I G U R E 8

R E M O T E D I S P L A Y T R A N S M I T T E R

Page 73: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 73/84

T I P - 1 1 7

7 4 L S 0 5

7 4 L S 0 5 V C o p i 1 V S o p i + c o n n e c t e d t u s e r p o r t p i I N G N

C O O K T T

F I G U R E 8

R E M O T E D I S P L A Y R E C E I V E RI N

3 3

1 N 4 0 0 1 A L L 4 0 3 3

■ w B O O u F

2 N 3 9 0 4

1

1

1

1

1

1

1

1

1

C o m p a r i s o n o F o u r W o r d P r o c e s s o r s W i n n

Page 74: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 74/84

E v e n h a r d - c o r e c r i t i c s o ' t h e h o m e c o m p u t e r r e v o l u t i o n ' g r u d g i n g l yc o n c e d e t h a t w o r d p r o c e s s i n g i r e a s o n e n o u g h f o h a v i n g c o m p u t e ra r o u n d I h h o u s e . W o r d p r o c e s s i n g p r o g r a m s f o t h C o m m o d o r e 6 a b o u n d i p l e n t y a n r u i p r i c e f r o m f e d o l l a r s t h u n d r e d s .P r e s e n t e d h e r e i m i m p r e s s i o n o f o u r m e d i u m - p r i c e d w o r d p r o c e s -s o r s f o b e g i n n e r s a n m o d e r a t e l y a d v a n c e d u s e r s o w o r d p r o c e s s i n g .T h e s e f o u r p r o g r a m s a r e :

S P E E D S C R I P T 3 . f r o m C o m p u t e ! P u b l i c a t i o n s o d i s k f o $ 1 8 . 0 0

G o l d D i s k v o l u m e f r o m G o l d D i s k S o f t w a r e o d i s k f o $ 1 6 . 9 5

O M N I W R I T E R / O m n i s p e l l f r o m H E S W A R E o d i s k f o a b o u t$ 5 0 . 0 0

S U P E R T E X T - 6 4 f r o m M U S E o d i s k f o a b o u t $ 6 0 . 0 0 .

T h e s e f o r m t w o c o m p a r a b l e p a i r s i t h e i r p r i c e s a n f u n c t i o n s .

G e n e r a l f e a t u r e s : B o t h S P E E D S C R I P T a n G O L D D I S K c o m e o w r i t e - p r o t e c t e d d i s k s w i t h o t h e r p r o g r a m s ( g a m e s , u t i l i t i e s e t c . ) .S P E E D S C R I P T i t r a n s f e r a b l e w h i l e G O L D D I S K i c o p y - p r o t e c t e d .I n s t r u c t i o n s f o S P E E D S C R I P T a p p e a r e d i C o m p u t e ! ( v o l . 7 n o . 3 M a r c h 1 9 8 5 ) , w h i l e t h o s e f o G O L D D I S K a r i n c l u d e d a t e x t f i l e s o t h s a m e d i s k . S P E E D S C R I P T a n O M N 1 W R I T E R b o t h c a w o r k w i t ht a p e s a s w e l l a s d i s k s . T h o t h e r t w c a o n l y a c c e s s d i s k .

O M N 1 W R 1 T E R c o m e s w i t h c o m p a c t a n l u c i d m a n u a l . T h s y s t e md i s k i w r i t e - p r o t e c t e d a n c o n t a i n s s e v e r a l e x a m p l e f i l e s . T h p r g r a m p e r m i t s m a i l m e r g e , l a b e l m a k i n g a n h a 3 0 0 0 0 + w o r ds p e l l i n g c h e c k e r w h i c h i a d e q u a t e l y f a s t a n i u s e r - e d i t a b l e ( a d d o d e l e t e w o r d s ) . T h e r e a r a l s o u t i l i t i e s f o b a c k i n g u d i s k s ( t e x t f i l e s )a n f o c o p y i n g t h d i c t i o n a r y t a n o t h e r d i s k .

S U P E R T E X T c o m e s w i t h t w i d e n t i c a l d i s k s w h i c h c a n b e u s e d f o s t o r i n g f i l e s . T h m a n u a l i r o u g h l y t h s a m e s i z e a s t h C 6 4 m a n u a la n i e x c e l l e n t . S e v e r a l e x a m p l e f i l e s a r p r o v i d e d o t h d i s k s .

T h l a t t e r s h o w s a p o r t i o n o T h e d g e s c a n b s e e n b h o r i s t a t u s l i n e a t h t o o t h s c r a n t h p a g e , l i n e a n c o l u m f o r m a t t e d ( e x c e p t f o l i n e s p av i e w i n g o n - s c r e e n i n o s u p p y o c a n n o t c o n t i n u o u s l y s c r o m e n t t t h o t h e r . F r e e m o v e m t t h e n e x t p a g e ; y o c a a l s o

S U P E R T E X T a c c e p t s l i n e s o fn o r m a l s i z e d 4 c o l u m n d i s p l d i s p l a y ; t h d i s p l a y i s e l e c t e w i t h o u t a f f e c t i n g t h d o c u m e n i u n u s a b l e f o c o m p o s i n g tm o n o c h r o m e m o n i t o r , a n t t h i s . I i h o w e v e r , m o r e t h a nc h e c k i n g p a g e l a y o u t . T h D i sb m a d e s b p r e s s i n g t h ' & h i g h l y s o p h i s t i c a t e d ( s e e p r i n t w h i c h a l l o w s y o t v i e w t d o c u m e n t o n t h s a m e s c r e e nc o p y o p e r a t i o n s o w h i l e t r y i f o e a s y r e a d a b i l i t y .

E d i t i n g a n F o r m a t t i n g : S c o d e s ( P R G ) . G O L D D I S K c a P R o S E Q . G O L D D I S K f i l eo n l y f o r m a t t i n g a n s o m eS P E E D S C R i P T f i l e s h o w e v e rb u s e d . S P E E D S C R I P T p e r m i i n D O c o m m a n d s . G O L D D Ii n v e r s e l e t t e r s a s f o r m a t t i n g s t o a n b o t t o m ) , p a g e l e n g t h ,f o r c e d p a g e b r e a k s , t e x t j u s t i f c o n t r o l s e q u e n c e s f o t r a n s p o i n d e n t i n g , d e l e t i n g b a c k w a r d so p a r a g r a p h a n t h e n r e t r i e vk e y s f o m o v i n g f o r w a r d s o

S P E E D S C R 1 P T h a l a r g e b u f f e r t a c c o m m o d a t e 4 4 o f t e x t a n a l l o w s l i n k i n g o f i l e s f r o m d i s k a n t a p e d u r i n g p r i n t i n g ( n o t d u r i n ge d i t i n g ; o n l y S U P E R T E X T p e r m i t s t h a t ) . G O L D D 1 S K a l l o w s o n l y 2 4 w i t h n l i n k i n g o f i l e s . B o t h p r o g r a m s a l l o w a p p e n d i n g o f i l e s i m e m o r y b s e r i a l l y L O A D i n g d o c u m e n t s . B o t h a l l o w s e l e c t i v e a n g l o b a l s e a r c h e s a n r e p l a c e s . T a b u l a t i o n i d i f f i c u l t o b o t h i n o

m o d e w h i c h p e r m i t s o v e r w r i t i n g . Y o m o v e m e n t o t h c u r s o r b p r e s s i n gc h a r a c t e r , w o r d , h a l f l i n e , l i n e , h a l ff o r m a t t i n g i s u p p o r t e d . Y o c a n u m b e i t h e c e n t e r o l i n e o o t h r i g h t a n U t 1 t a b s a r s u p p o r t e d f o t a b u l a t

Page 75: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 75/84

i m p o s s i b l e .

O M N I W R 1 T E R f i l e s ( P R G ) a r e d i v i d e d i n t o f o u r a r e a s c a l l e d p a g e sw o r k a r e a f o n o t e s t y o u r s e l f , o f o m o v i n g d e l e t e d b l o c k s ( s o r t o a i n c o n v e n i e n t r e c a l l b u f f e r ) , a n f o m a t e r i a l w h i c h c a b m e r g e dd u r i n g p r i n t i n g ( a d d r e s s e s , l a b e l s e t c . ) . T h o t h e r t h r e e a r e a s a r e f o t h t e x t , h e a d e r a n f o o t e r . I n c i d e n t a l l y , a n o t h e s e c a h a v e m o r et h a n o n p a g e a n c a b a c c e s s e d e a s i l y f o e d i t i n g . H o r i z o n t a lt a b b i n g ( l e f t j u s t i f i e d f o r t e x t a n d e c i m a l j u s t i f i e d f o r n u m b e r s ) m a k e st a b u l a t i o n e a s y . A n y n u m b e r o t a b s a r e p e r m i t t e d . T h t w o e x t r e m em a r k e r s o f o r m a t l i n e d e c i d e t h l e f t a n r i g h t m a r g i n . I t h e s e t a b sa r e r e p o s i t i o n e d l a t e r , t h e n t i r e d i s p l a y c h a n g e s a n t e x t i r e a rr a n g e d . O n i n t e r e s t i n g t o u c h i t h a t w h e n y o p l a c e t h e c u r s o r o a n f o r m a t s y m b o l , n o r m a l l y i n v i s i b l e l e t t e r s h o w s u p t i n d i c a t et h k e f o s e l e c t i n g t h e f u n c t i o n r e p r e s e n t e d . U t t e n s p e c i a l A S C I Ip r i n t e r c o m m a n d s c a n b e p r o g r a m m e d . R i g h t j u s t i f i c a t i o n i c o t r o l l e d d u r i n g p r i n t i n g w h i c h m e a n s t h a t y o u r e n t i r e d o c u m e n t w i l le i t h e r h a v e s t r a i g h t o r r a g g e d r i g h t m a r g i n . C u r s o r m o v e m e n t t t o a n b o t t o m o d o c u m e n t , b p a g e s , s c r e e n s , l i n e s , t a b s a n c h a r a c t e r s i s u p p o r t e d . O t h e r s t a n d a r d f e a t u r e s l i k e s e l e c t i v e / g l o b a ls e a r c h e s , r e p l a c e s , a n b l o c k o p e r a t i o n s a r e p r o v i d e d . L i n e s p a c i n gc a b e c h a n g e d f r o m t 9 b u t d o e s n o s h o w u o t h e s c r e e n ( s a m ea s t h e o t h e r p r o g r a m s ) . P a g i n g ( t e x t l e n g t h ) h a t b m a n u a l l yd e t e r m i n e d b p l a c i n g e n d - o f - p a g e m a r k e r s . T h i s a l s o m e a n s t h a t i y o u s v a r i a b l e s p a c i n g i y o u r d o c u m e n t y o u h a v e t d b i o m e n t a l c a l c u l a t i o n s s i n c e t h e s t a t u s l i n e w o u l d s h o w l i n e n u m b e r s a i f i t w a s i n g l e s p a c e d - d o c u m e n t a n y o m a e n d u p w i t h p r i n t e dp a g e w h i c h e x t e n d s i n t o t h n e x t p a g e . Y o c a o v e r w r i t e o i n s e r tt e x t a n y w h e r e i t h d o c u m e n t e a s i l y . T h l a c k o a u t o m a t i c p a g i n gh o w e v e r h a o n b e n e f i t . I a v o i d s p r i n t i n g h e a d i n g b e l o n g i n g t t h p a r a g r a p h s t a r t i n g o t h n e x t p a g e a t h b o t t o m o p a g e ! T h d o c u m e n t c a n b e u t 3 4 l o n g a n l i n k i n g o m e r g i n g o o t h e r f i l e si e a s y d u r i n g e d i t i n g . T h i s i n c l u d e s a n s e q u e n t i a l f i l e ( d a t a b a s e s ,s p r e a d s h e e t s , t e l e c o m m u n i c a t i o n s ) o r o t h e r S E o P R w o r d p r o c e s -s o f i l e . V a r i a b l e i n f o r m a t i o n c a b m e r g e d f r o m t h w o r k p a g e ,o t h e r 0 M N I W R 1 T E R f i l e s , o a n s e q u e n t i a l f i l e . f o r m l e t t e r t h u sc o u l d b c o m p o s e d a n d d i f f e r e n t n a m e s a n a d d r e s s e s m e r g e d w i t h i t o g e t m u l t i p l e c o p i e s ( M a i l - m e r g e ) . D i r e c t o r y a n D O c o m m a n d sa r k e y p r e s s a w a y . I y o t r y t o q u i t w i t h o u t s a v i n g a a l t e r e dd o c u m e n t w a r n i n g i d i s p l a y e d .

S U P E R T E X T i p r o g r a m w i t h a u n i q u e p e r s o n a l i t y . O t h o n h a n di h a v e r y f l e x i b l e a n s o p h i s t i c a t e d p r i n t i n g p a c k a g e a n f i l el i n k i n g a n m e r g i n g f a c i l i t i e s , y e o t h o t h e r h a n d i h a v e r y s l o w

n u m b e r s y o u h a v e t p u t t h e 0 a f t e r d w i t h t h e d e c i m a l t a o O M N I W R I T E R ) . T1 0 b u y o c a g t l i n k e d f i l e f o r wA l s o , i y o a r L O A D i n g s e q u e n t i a l f w o r d p r o c e s s o r ) w h i c h i l a r g e r t h a n 1 0 a n S A V E t h e m a l i n k e d f i l e s ! N i n e u s e r f o s e n d i n g A S C I I c o d e s t p r i n t e r s . Y o r e p r e s e n t a f r e q u e n t l y u s e d w o r d o p h r E v e r y t i m e t h k e i p r e s s e d t h e p h m e n t .

P r i n t i n g : S P E E D S C R I P T a l l o w s p r e v i ed o e s n o t . B o t h p r i n t t t h l o w e s t c o m m p r i n t e r . S P E E D S C R I P T h a p r o b l e m s w i t h a p r o b l e m s w i t h 1 5 2 6 ! ( s p e c i a l v e r

O M N I W R I T E R f o r m a t s t h t e x t o n - s c r n e e d p r i n t p r e v i e w i n g . Y o c a n n o t s e t i o n o t h s c r e e n t h o u g h . Y o c a p r i n f o l d . P r i n t i n g c a b h a l t e d a n t h e n y o t h p a g e o a b o r t . S e l e c t i v e p r i n t i n g ( M a n y p r i n t e r s i n c l u d i n g R S 2 3 2 d e v i c es u p p o r t e d . T h e r e a r u t i l i t i e s a n s p e c iI E E E p r i n t e r s a s w e l l . S U P E R T E X T u s e sf i l e s . P r i n t p r e v i e w i n g o s c r e e n i s u p p s c r e e n c a n b e h a l t e d a n y o c a c o n t i n ua t i m e , s k i p p a g e o a b o r t . Y o c a p p o s s i b l e w i t h l i n k e d f i l e s f o o b v i o u s r e a s l o w e r t h a n a n o t h e r p r o g r a m ( i p r o b a b B o t h t h e s e p r o g r a m s c a s e n d s p e c i a lt i o n s l i k e i t a l i c s , e m p h a s i z e d , b o l d ,g r a p h i c s a n u n d e r l i n i n g e t c . ( p r o v i d e df u n c t i o n s ) .

O v e r v i e w : S P E E D S C R I P T f o i t p r i c ew o r d p r o c e s s o r . I h a t h l a r g e s t t e x t a g e n t l y d e s i g n e d c u r s o r m o v e m e n t s ( b e l i n e s / s c r e e n e t c . ) . I a l s o h a a u n d o o o t h o t h e r p a c k a g e s r e v i e w e d h e r e p o s s8 0 c o l u m n s , m a i l m e r g i n g , o s p e l l i n ge x p e c t e d . T h o n l y v i t a l t h i n g m i s s i n g

Y o h a v e t m e n t a l l y c o u n t w h e r e o t h p r i n t e d p a g e y o a r a n s e p a g e e n m a r k e r s a c c o r d i n g l y . C h o o s e v a r i a b l e s p a c i n g a n y o a r i n f o r m o r e w o r k ! H o w e v e r , i i c o m f o r t i n g t k n o w t h a t t h f e a t u r e i t h e r e a n d y o u c a s p a c e y o u r d o c u m e n t v a r i a b l y u t s p a c e sb e t w e e n l i n e s . S U P E R T E X T d o e s n o a l l o w t h i s c h o i c e . Y o e i t h e rh a v e a s i n g l e o d o u b l e s p a c e d d o c u m e n t t h r o u g h o u t , p e r i o d . T h i s

m u l t i p l e c u s t o m c h a r a c t e r s y w h i c h w o r k e d f i n e w i t h t h ee r r o r ! T h s o l u t i o n i s i m p l e c h a r a c t e r , y o d r a w a b c o l u m n s ( 1 , 2 , 4 , 8 , 1 6 , 3 2 , 6 4 , 1 2 p r i n t i n g c e l l s ( 0 i b l a n k ) . T h u s

Page 76: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 76/84

b e e f a s i d e , O M N I W R I T E R / O m n i s p e l l i v e r y c o n v e n i e n t , e f f i c i e n tp a c k a g e , e a s i l y t h b e s t a m o n g t h o n e s r e v i e w e d h e r e . I t f l e x i b l ef o r m a t t e d s c r e e n o u t p u t , u n c l u t t e r e d s c r e e n , a l p h a n u m e r i c t a b b i n g ,c o n v e n i e n t e d i t i n g a n t h i c i n g i t h f o r m o m a i l m e r g i n g a n ds p e l l i n g c h e c k i n g m a k e i v e r y a t t r a c t i v e p a c k a g e . T h i s i w o r d p r o -c e s s o r w h i c h e v e n b e g i n n e r c a u s e a s i l y a n c o n t i n u e e x p l o r i n ga n g r o w i n g w i t h i f o v e r y l o n g t i m e .

A d d i t i o n a l N o t e F o r 1 5 2 6 O w n e r s : W h i l e w a e x p l o r i n g t h e s ew o r d p r o c e s s o r s , w a a m a z e d t f i n d t h a t m o s t s o f t w a r e d e s i g n e r sh a n o g i v e n s e r i o u s c o n s i d e r a t i o n t t h 1 5 2 6 p r i n t e r . T h i s i i r o n i cb e c a u s e 1 5 2 6 / M P S - 8 0 2 i m o r e s u i t a b l e f o s e r i o u s w o r d p r o c e s s i n gt h a n t h 1 5 2 5 / M P S - 8 0 1 ! T h 1 5 2 6 w h e n f i r s t i n t r o d u c e d h a f i r mw a r e b u g s . I w o u l d l o c k u t h s e r i a l b u a n d w a s s e n s i t i v e t t h o r d e r i w h i c h d e v i c e s w e r e s w i t c h e d o n l e t t e r f r o m C o m m o d o r ei n d i c a t e s t h a t t h l a t e s t C 6 4 - c o m p a t i b l e 1 5 2 6 h a v e r s i o n 0 R O a n t h a t t h m o r e r e c e n t v e r s i o n 0 7 C w a s i n t r o d u c e d t i n c r e a s ec o m p a t i b i l i t y w i t h t h n e w e r a n + 1 c o m p u t e r s . M r e c e n te x p e r i e n c e h o w e v e r i n d i c a t e s t h a t m o s t w o r d p r o c e s s o r s a r a l l e r g i c t ot h 1 5 2 6 w i t h v e r s i o n 0 R O M . Y o w o u l d e i t h e r g e n p r i n t o u t ( w i t hG O L D D I S K , u n l e s s y o u s s p e c i a l v e r s i o n , r e a d i l y s u p p l i e d b G O L D D I S K ) , s t r a n g e " ? h ? H G $ - " c h a r a c t e r s a t h h e a d o y o u r d o c um e n t ( a l m o s t a l w o r d p r o c e s s o r s ) o e v e n w o r d j u m b l e ( L E T T E RW I Z A R D , D A T A S O F T ) . I y o h a v e v e r s i o n 0 7 R O a l o t h e s e w i l lw o r k p e r f e c t l y . B U i y o R U a n o t h e r p r o g r a m w h i c h u s e s

a c o n c a t e n a t e d c h a r a c t e ra d d r e s s o 5 a n t h e n w h e n y c h a r a c t e r . I y o h a v e a n 0 7 T E S T R I N G T S . A . 5 U S I N Gn o p r i n t a n c a n b e a z e r o . W d o r e d e s i g n e r s r u o u o c o f f t b r e a k t h b b a r r i e r ? O w o n ' t !

O m n i s p e l l S p e l l i n g C h e c k ee f f i c i e n t a n a f f o r d a b l e w o r d p g r a m w i t h a 3 0 , 0 0 0 w o r d e x p ac o p i e d t y o u r w o r k d i s k s . A f t h c o m m o d o r e k e f o l l o w r e s u l t s i t h l o a d i n g a n e x e c p r e p a r e s w o r d - l i s t ( a b o u td o c u m e n t a n w o r d - d i s t r i b u t c h e c k i n g , l i s t w o r d s a l p h a b e t c o m p a r e s t h w o r d s w i t h t d i s p l a y s t h e u n r e c o g n i z e d o n a n i s s u e a v e r i f y c o m m a n d .l o c a t e d y o u h a v e a o p t i o n t w o r d . O n c e t h i s i d o n e , y o c n e w o r d s l e a r n e d t t h d i c t f a s t a n i u s u a l l y u s e d o n l s h a p e . T h i s h o w e v e r m a k e s O

C o m p a r i s o n T a b l eA d v a n t a g e s

S P E E D S C R I P TU t 2 5 c o l u m n s . L i m i t e d C B g r a p h i c s . L o g i c a l c u r s o r m o v em e n t . T r a n s p o s e l e t t e r . C H a N g ec a s e . R e c a l l b u f f e r . L a r g e c a p a ci t y . D i s k / t a p e f i l e s . V E R I F Y f i l e s .S e f o r m a t t e d f i l e s p r i n t a b l ew i t h o u t w o r d p r o c e s s o r . E a s i l yc o p y a b l e . V e r y g o o d v a l u e f o m o n e y .

G O L D D I S KL i m i t e d C B g r a p h i c s . R i g h t j u t i f i c a t i o n . B a c k u p u t i l i t y i c l u d e d . P o o r v a l u e f o m o n e y( w h e n c o n s i d e r i n g w o r d p r o c e ss o p r o g r a m a l o n e ) .

O M N I W R I T E RG o o d d e s i g n . 2 4 c o l u m n d p l a y . G o o d t a b u l a t i o n . M m e r g / l a b e l . D i s k / t a p e f i l e s .c e p t s f i l e s f r o m o t h e r w o r d p c e s s o r s , a n s e q . f i l e f r o m d b a s e / s p r e a d s h e e t s / t e l . c oP a r a l l e l / I E E E d r i v e r s i n c l u d S u p p o r t s R S 2 3 2 p r i n t e r s . E x c l e n t w a r n i n g f o a l t e r e d b u U S A V E D f i l e s . B a c k u p u t i l i t y

N e w s B R T r a n s a c t o r N e w s T h G - L i n k I n t e r f a c e a n t h a m o u n t

R o b e r t G r a h a m ,

Page 77: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 77/84

S u b m i t t i n g N E W S B R P r e s s R e l e a s e s

I y o h a v e p r e s s r e l e a s e w h i c h y o u w o u l dl i k e t s u b m i t f o t h N E W S B R c o l u m n ,m a k e s u r e t h a t t h c o m p u t e r o d e v i c e f o w h i c h t h p r o d u c t i i n t e n d e d i p r o m i n e n t l yn o t e d . W r e c e i v e h u n d r e d s o p r e s s r e l e a s e sf o e a c h i s s u e , a n d o n e s w h o s e i n t e n d e dr e a d e r s h i p i n o c l e a r m u s t u n f o r t u n a t e l y g s t r a i g h t t t h t r a s h b i n . I s h o u l d a l s o b m e n t i o n e d h e r e t h a t w o n l y p r i n t p r o d u c tr e l e a s e s w h i c h a r i s o m e w a y A p p l i c a b l e t C o m m o d o r e e q u i p m e n t .

T h e T r a n s B A S I C D i s k

W e l l o v e r 1 0 0 c o m m a n d s a n f u n c t i o n s h a v eb e e n p u b l i s h e d o v e r t h l a s t T r a n s B A S I CC o l u m n s a n t h e r e a r e d o z e n s m o r e t c o m e .S w e ' v e d e c i d e d t c o l l e c t e v e r y c o m m a n d ,i n c l u d i n g t h e u n p u b l i s h e d o n e s , a n p u t h e m a l o t h f i r s t r e l e a s e o T h T r a n s B AS I D i s k . r e f e r e n c e m a n u a l g i v e s e x a m p l e so e v e r y c o m m a n d i t h l i b r a r y . Y o s i m p l yl o a d a n r u t h f i r s t p r o g r a m o t h e d i s ka n b e g i n a d d i n g c o m m a n d m o d u l e s . A f t e ra s s e m b l i n g t h s e l e c t e d m o d u l e s , y o u r n e T r a n s B A S I C " d i a l e c t " c a b s a v e d t d i s k f o f u t u r e u s e .

S Y M A S S 3 . i t h a s s e m b l e r r e s i d e n t o T h T r a n s B A S I C D i s k . I t ' s w r i t t e n i m a c h i n ec o d e a n w a m o d e l l e d a f t e r ( a n d t e s t e d w i t h )T r a n s B A S I C m o d u l e s . P r e v i o u s l y , P A w a n e c e s s a r y f o d o i n g t h f i n a l a s s e m b l y . S M A S S 3 . w i l l a s s e m b l e a n y s o u r c e c o d e t h a ti n m o r e e x o t i c t h a n t y p i c a l T r a n s B A S I Cm o d u l e , b u i d o e s n ' t o u t p u t l i s t i n g s o s e n do b j e c t c o d e t d i s k . F o d e v e l o p m e n t p u p o s e s w s t i l l r e c o m m e n d P A L ( s e e n e x ti t e m ) , b u S Y M A S S 3 . m a k e s t h T r a n s B AS I D i s k t o t a l l y s e l f - c o n t a i n e d !

T h T r a n s B A S I C D i s k w i t h r e f e r e n c e m a n u a l

T h e r e a r e a c o u p l e o C 6 t I E E E i n t e r f a c e sa v a i l a b l e b u o n e y o u p r o b a b l y h a v e n ' t h e a r dm u c h a b o u t i t h e G - L i n k , o r C l i n k a i t ' sp r o n o u n c e d a m o n g t h f e o u w h o w o n e . W h d w u s G l i n k s ? T h e y ' r e t o t a l l yt r a n s p a r e n t ! T h o t h e r s h a v e " f e a t u r e s " l i k em a c h i n e l a n g u a g e m o n i t o r s a n B a s i c e x t e ns i o n s t h a t t e n d t i n t e r f e r e w i t h c e r t a i n m o r es o p h i s t i c a t e d p r o g r a m s . T h G l i n k d o e s n o n eo t h a t . N o d o e s i u s t h R A t h a t l i e su n d e r n e a t h t h B A S I C a n K e r n a l R O M s . I a l s o h a a s w i t c h f o r s e r i a l b u o p e r a t i o n . I c o m e s w i t h i n s t a l l a t i o n i n s t r u c t i o n s f o $ 4 9 . 9 5 , b u t t h e r e a r e o n l y f e i e x i s t e n c es i t ' s f i r s t c o m e f i r s t s e r v e d . O n c e t h e y ' r eg o n e , t h e y ' r e g o n e .

A t t e n t i o n A n t h o l o g y O w n e r sT h e B B S p h o n e n u m b e r s s e c t i o n o t h I n n e rS p a c e A n t h o l o g y l i s t s p h o n e n u m b e r f o T h S i m a r i l l i o n B B i G a r d e n G r o v e , C A T h o w n e r o t h n u m b e r i n f o r m e d u t h a ta l t h o u g h h h a C 6 4 , a n d w o u l d a l s o l i k e t of i n d t h c o r r e c t n u m b e r f o T h S i m a r i l l i o n ,h i n o t h n u m b e r b y o u ' r e l o o k i n g f o r .U n f o r t u n a t e l y w h a v e m i s p l a c e d h i i d e nt i t y , s o " n u m b e r ^ , . . i y o u r ' r e l i s t e n i n g , . . a r e n ' t y o r e a d y f o t h f u a n e x c i t e m e n t o fy o u r o w B B S . P e r h a p s s o m e o n e m i g h to f f e r t o l o a n h i m o d e m ? a n s o m e B B Ss o f t w a r e ? T h n u m b e r i o p a g e 8 o t h A n t h o l o g y , b u u s t h e v o i c e l i n e .

E v e n t sW o r l d O C o m m o d o r e I I I T o r o n t o S u c c e s s

T h t h i r d a n n u a l W o r l d O C o m m o d o r e I I h e l d i T o r o n t o i e a r l y D e c e m b e r w a c o m p l e t e s u c c e s s , w i t h m o r e t h a n 3 3 , 0 0 0p e o p l e a t t e n d i n g t h e f o u r - d a y s h o w . I f a c t ,t h s h o w w a s s u c c e s s f u l t h a t C o m m o d o r eB u s i n e s s M a c h i n e s i l o o k i n g a e x p a n s i o n

V i r t u a l l y a l t h e 1 9 8 6 . "

A l o n g w i t h s e m it h a n 3 5 p e o p l ep e r t s , e n g i n e e r ss t r a t e d t h c a p a bw i t h t h o t h e r C w e l l , C o m m o d o r O l y m p i c s f o t h i n $ 1 0 , 0 0 0 . 0 0 s y s t e m , a d m i s s i os a l e o m a g a z i n e

C . A . S . E M e e t i n

T h p l a c e t b 2 7 1 9 8 6 , i a t v i l l e , T e n n e s s e eg e t - t o g e t h e r . C . A t i o n o t h S o u t h u s e r g r o u p s o f o r m e d t b e t t e rm u n i t y o C o m m a r n o n - p r o f i tC o m m o d o r e W o ro w s p e c i a l m e s d o r e N a t i o n a l N e

W i n v i t e t h g t w o - d a y J a m b o r ep r e s e n t a w e l lf u r n i s h e d b c h i n e s , L i m i t e d .e r t h e g e n e r a lJ a m b o r e e .

T i c k e t s a r a v a i l a t e c l u b , o b s a t h a d d r e s s b a t t e n d t h i s s o u t hm o d o r e c o m p u t e a b l e a t h d o o r$ 1 0 . 0 0 .

Page 78: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 78/84

S o f t w a r eB a s i c C o m p i l e r F o T h e C 1 2 8

A b a c u s S o f t w a r e o G r a n d R a p i d s , M i c h i g a n ,h a a n n o u n c e d t h e r e l e a s e o n e B a s i cc o m p i l e r f o t h C o m m o d o r e C - 1 2 8 , " B A S I C -

1 D e s c r i p t i v e S t a t i s t i c s , w h i c h c a l c u l a t e t h a r i t h m e t i c m e a n , g e o m e t r i c m e a n , h a r m o n i cm e a n , q u a r t i l e s , q u a r t i l e r a n g e , m o d e , m d i a n , v a r i a n c e , s t a n d a r d d e v i a t i o n , c o e f f ic i e n t o v a r i a t i o n , a n s k e w n e s s a n k u r t o s i si n d e x f o e a c h g r o u p .2 C o r r e l a t i o n / R e g r e s s i o n , w h i c h c a l c u l a t e s

T A X A I D i a v a i l V i 2 w i t h 1 6 k ,P l u s / 4 a c o s i n f o r m a t i o n c o n t

T a x a i d S o f t w a r e ,6 0 6 S e c o n d A v e n

Page 79: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 79/84

1 2 C o m p i l e r " . W r i t t e n i W e s t G e r m a n y b T h o m a s H e l b i g , t h " B A S I C - 1 2 8 C o m p i l e r "w i l l i n c r e a s e t h s p e e d o B a s i c p r o g r a m e x c u t i o n b f a c t o r o t 3 5 F o t h e u l t i m a t ei n v e r s a t i l i t y , y o c a n c o m p i l e B a s i c p r og r a m s t e i t h e r p u r e 8 5 1 0 m a c h i n e c o d e ,v e r y c o m p a c t P - c o d e , o c o m b i n a t i o n o b o t h . T h c h o i c e i y o u r s .

I n c l u d e d w i t h t h e " B A S I C - 1 2 8 C o m p i l e r " i a 8 0 - p a g e i n s t r u c t i o n g u i d e w h i c h d e t a i l s a l a s p e c t s o w o r k i n g w i t h t h e c o m p i l e r . S i m p l et v e r y a d v a n c e d f e a t u r e s a r o u t l i n e d , i c l u d i n g t i p s a n t e c h n i q u e s t h a t e v e r y p r g r a m m e r w i l l a p p r e c i a t e . T h s u g g e s t e d r e t a i lp r i c e i $ 5 9 . 8 5 ( U S ) . F o m o r e i n f o r m a t i o n ,c o n t a c t :

A b a c u s S o f t w a r eP . O . B o 7 2 1 12 2 0 1 K a l a m a z o o S . E .G r a n d R a p i d s , M 4 9 5 1 0 ( 6 1 6 ) 2 4 1 - 5 5 1 0

C h a r t p a k 1 2 f o t h C o m m o d o r e C 1 2 8T h e r e ' s n e C h a r t p a k a v a i l a b l e f o t h C o m m o d o r e C - 1 2 8 , " C h a r t p a k - 1 2 8 " . T a k i n ga d v a n t a g e o t h n e w , e x p a n d e d f e a t u r e s o t h e C - 1 2 8 , " C h a r t p a k - 1 2 8 " n o h a 3 t h r e s o l u t i o n o t h e a r l i e r C o m m o d o r e 6 v e s i o n . Y o c a n o v i e w a n e n t i r e c h a r t o rg r a p h , o s c r o l l t h e s c r e e n t s e e t h e h i g h e r -r e s o l u t i o n d e t a i l . A n d , u t i l i z i n g t h C 1 2 8 ' se x t r a R A M , C h a r t p a k a l l o w s y o t e n t e rg r e a t e r a m o u n t o d a t a i w h i c h t b u i l d y o u rc h a r t s , w h i l e s t i l l r e t a i n i n g t h o s e f a m i l i a r d a t ae n t r y / m a i n t e n a n c e f e a t u r e s t h a t m a d e t h C 6 v e r s i o n s s u c c e s s f u l . T h r o u g h C h a r t p a ky o c a p r o d u c e h i g h - q u a l i t y p i e , b a r , o l i n ec h a r t s a n g r a p h s t h a t , o n c e c o m p l e t e d , c a b p r i n t e d o u t t a v a r i e t y o d o t - m a t r i xp r i n t e r s .

I n c l u d e d w i t h C h a r t p a k i 1 4 0 - p a g e u s e r ' s

a n r e p o r t s a l p o s s i b l e c o r r e l a t i o n s i s e o d a t a , a n a l l o w s t h e u s e r t p e r f o r m m u l t i p l el i n e a r r e g r e s s i o n w i t h a n c o m b i n a t i o n o v a r i a b l e s .3 A n a l y s i s o V a r i a n c e , w h i c h p e r f o r m s a a n a l y s i s o v a r i a n c e o n u p t n i n e i n d e p e nd e n t v a r i a b l e s a r r a n g e d w i t h o w i t h o u t r p e a t e d m e a s u r e s . I a d d i t i o n , t h p r o g r a ma c c e p t s u n e q u a l c e l l s i z e s .4 S i g n i f i c a n c e T e s t e r , w h i c h c a l c u l a t e s t h e x a c t p r o b a b i l i t y o ' z s c o r e s , ' t a n ' r a t i o s ,c o r r e l a t i o n c o e f f i c i e n t s ( r ) , a n c h s q u a r e ds c o r e s .5 D a t a T r a n s f o r m e r , w h i c h a l l o w s t h e d a t at b m a n i p u l a t e d i o r d e r t m a x i m i z e t h h o m o g e n e i t y o v a r i a n c e .6 R a n d o m N u m b e r G e n e r a t o r , w h i c h g e n e ra t e s u t 6 , 0 0 0 r a n d o m n u m b e r s w i t h i nr a n g e s e l e c t e d b t h u s e r .7 P e r m u t a t i o n s a n C o m b i n a t i o n s , w h i c hc a l c u l a t e s t h e p e r m u t a t i o n s a n d c o m b i n at i o n s p o s s i b l e u s i n g t h d i f f e r e n t a d d i n gr u l e s .

T h p r o g r a m r e q u i r e s C o m m o d o r e c o mp u t e r , d i s k d r i v e , a n p r i n t e r . S e v e r a l o t h p r o g r a m s h a v e b e e n c o m p i l e d t o p t i m i z ec o m p u t a t i o n s p e e d , b u t a l o t h o r i g i n a lB a s i c c o d e i a l s o s u p p l i e d f o u s e r s w h w i s ht r e v i e w t h a l g o r i t h m u s e d . c o p y o t h p r o g r a m d i s k a n a o p e r a t i o n m a n u a l m a b p u r c h a s e d b s e n d i n g $ 1 0 . 0 0 ( U S ) t o

D a v i d J P i t t e n g e rD e p a r t m e n t o P s y c h o l o g yT h U n i v e r s i t y o G e o r g i aA t h e n s , G 3 0 6 0 2

B o o k k e e p e r ' s A i d :M o r e T h a n J u s t T a R e c o r d S y s t e m

N o r t h l a n d A c c o u n t i n g h a r e l e a s e d t h e n e r e v i s e d e d i t i o n s o t h " T a x a i d " s e r i e s o i n c o m e t a p r e p a r a t i o n p r o g r a m s f o t h C o m m o d o r e 6 4 V i 2 a n P l u s / 4 c o

T w H a r b o r s , M H a r d w a r eW i l a n t a D e s c e

G e t r u e d e s c e n d 1 5 2 5 , 8 0 3 , G P - p r i n t e r s w i t h t h F e a t u r e s i n c l u d et i o n , n o c h a n g et i e s , n c h a n g e i n o c h a n g e i p rp l e t e i n s t r u c t i o n n s o l d e r i n g , o n lO n t a r i o r e s i d e n t s a l e s t a x . C h e q u e t e r C a r d a c c e p t e d

W i l a n t a A r t s6 9 4 3 B a r r i s d a l eM i s s i s s a u g a , O n t L 5 N - 2 H 5 ( 4 1

A t t e n t i o n M a O n M e g a b y t e

H o w o u l d a l B 2 5 6 o w n e r s l i k i y o u r m a c h i n

Q u e s t i o n - W h a to R A i y o u r B

A n s w e r S U P E b a n k s t h r o u g hy o u r c o m p u t e r a

A n s w e r T h w h i c h a l l o w s t h m o d o r e 8 0 3 2 c B a s i c p r o g r a m s i

m a x i m u m o f 1b a c k a n f o r t h b g r a m s i y o u r c o

Page 80: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 80/84

C o m p u - t o o n sT h T r a n s a c t o r h a b e e n c o l l e c t i n g c a r t o o n s f o a l m o s t t w y e a r s . S e v e r a l o t h e m , f o o n r e a s o n o r a n o t h e r , w i l l n e v e r b e

Page 81: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 81/84

p u b l i s h e d . W e ' r e c o n s i d e r i n g t h e i d e a o " C o m p l e t e T r a n s a ct o C a r t o o n C o l l e c t i o n " - e v e r y c a r t o o n e v e r r e c e i v e d , t h b e s t ,a n t h e w o r s t , b o u n d t o g e t h e r i n t o l o c o s t b o o k l e t t h a t w c o u l d a l s o i n c l u d e f r e e w i t h o t h e r i t e m s o r g i v e a w a y a c o m p u t e r s h o w s . I y o h a v e s u b m i t t e d c a r t o o n s t h a t w h a v ed e e m e d u n s u i t a b l e f o t h m a g a z i n e , w w o u l d s t i l l l i k e t i n c l u d e t h e m i t h " c o l l e c t i o n " . H o w e v e r , w w o u l d n o b a b l e t p a y o f o t h e m . S h o u l d t h i s b u n a c c e p t a b l e , p l e a s ec o n t a c t u a n w e ' l l h a v e y o u r d r a w i n g s r e t u r n e d . O t h e r w i s e ,w e ' l l s e n d f r e e c o p y o T h C T C C t e v e r y o n e w h p a r t i c ip a t e s . C A S H O C H A R

T h i s o n e ' s s t u b b o r n i h a t b k i c k - s t a r t e d !

P a . . . \ u a - e { h Z S O B r u n s

J O I N T P U GT h l a r g e s t C o m m o d o r e U s e r s G r o u p

Page 82: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 82/84

B e n e f i t f r o m :A c c e s s t l i b r a r y o p u b l i c d o m a i n s o f t w a r e

f o C - 6 4 , V I 2 a n P E T / C B MM a g a z i n e ( 1 p e y e a r ) w i t h a d v i c e f r o m

J i B u t t e r f i e l dB r a d B j o m d a h l

L i D e a lT P U G y e a r l y m e m b e r s h i p s :R e g u l a r m e m b e r ( a t t e n d s m e e t i n g s )S t u d e n t m e m b e r ( f u l l - t i m e , a t t e n d s m 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 m a i l )A s s o c i a t e ( O v e r s e a s a i m a i l )

- $ 3 5 . 0 0 C d n .- $ 2 5 . 0 0 C d n .- $ 2 5 . 0 0 C d n .- $ 2 5 . 0 0 U . S .- $ 3 0 . 0 0 C d n .- $ 3 5 . 0 0 U . S .- $ 4 5 . 0 0 U . S .

F O F U R T H E R I N F O R M A T I O N :S e n d $ 1 . 0 0 f o a i n f o r m a t i o n c a t a l o g u e( t e l l u w h i c h m a c h i n e y o u u s e ! )

T o T P U G I N C .D E P T . A 1 0 D U N C A N M I L L R D . , S U I T E G D O M I L L S , O N T A R I OC A N A D A M 3 B 1 Z 3

C O M A L I N F Oi y o u h a v e C O M A L —

w h a v e i n f o r m a t i o n .B O O K S :

C O M A L F r o m T Z $ 6 . 9 5C O M A L W o r k b o o k , $ 6 . 9 5C o m m o d o r e 6 4 G r a p h i c s w i t h C O M A L , $ 1 4 . 9 5C O M A L H a n d b o o k , $ 1 8 . 9 5B e g i n n i n g C O M A L , $ 2 2 . 9 5S t r u c t u r e d P r o g r a m m i n g W i t h C O M A L , $ 2 6 . 9 5F o u n d a t i o n s W i t h C O M A L , $ 1 9 . 9 5

F r o m T h T h 1 9 8 6 C o m m

6 p a g e r e f e r A l h a r d w a r et h e C i 2 8 a n dU s e f u l m e m o U s e f u l p r o g r S u p e r C h a r t sB A S I C a n d m H e x a d e c i m a lS o u n d , v i d e oa n m o r e

T h f u l l c a l e n d a N a t i o n a l h o l iP e r s o n a l n o t 1 9 8 7 f o r w a r dN a m e , a d d r e

Page 83: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 83/84

T h T r a n s a c t o r p r e s e n t s ,T h C o m p l e t e C o m m o d o r e

I n n e r S p a c e A n t h o l o g y

Page 84: The Transactor V6 06 1986

8/7/2019 The Transactor V6 06 1986

http://slidepdf.com/reader/full/the-transactor-v6-06-1986 84/84

O v e r 7 , 0 0 0 D e l i v e r e d S i n c e M a r c h ' 8 P o s t a g e P a i d O r d e r F o r m a C e n t e r P a g e