The Transactor V7 06 1987 May

84

Transcript of The Transactor V7 06 1987 May

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 1/84

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 2/84

L i f e D o e s n ' t S t a n d S t i l l . . .W h S h o u l d Y o u r P i c t u r e s ?

F u l l S c r e e n A n i m a t i o n O Y o u r C o m m o d o r e 6 4 I u s e d t b e e v e n t h e x p e r t s c o u l d n ' t d i t N o w , a n y o n e c a n .M o v i n g P i c t u r e s b y A H A ! i m o r e t h a n j u s t a n o t h e r a n i m a t i o np a c k a g e . I t ' s w h o l e n e b r e a k t h r o u g h i s o f t w a r e t e c hn o l o g y .M o v i n g P i c t u r e s i f a s t , s m o o t h , f u l l - s c r e e n a n i m a t i o n t h a t i t o t a l l y u n d e r y o u r c o n t r o l .Y o u s e y o u r f a v o u r i t e g r a p h i c s t o o l t d r a w t h f r a m e s o y o u r m o v i e , t h e n s h o w i a f u l l a n i m a t i o n s p e e d w i t hs i n g l e c o m m a n d !W r i t e m o v i e " s c r i p t s " i B A S I C , u s i n g t h p o w e r f u l M o v i n gP i c t u r e s c o m m a n d s e f o c o m p l e t e c o n t r o l o y o u r c r e at i o n s !W h e t h e r y o u ' r e p r o g r a m m e r o n o v i c e , y o u ' l l b a b l e t p u t t o g e t h e r a n d i s p l a y i n t r i c a t e s c e n e s o y o u r o w i n v e n t i o n . Y o c a e v e n e d i t y o u r s c r i p t s o e x e c u t e B A S I Cp r o g r a m w h i l e a m o v i e i b e i n g d i s p l a y e d M o v i n g P i c t u r e si m u l t i t a s k i n g s y s t e m !

B e s i d e s b e i n g f u i i t s e l f . M o v i n g P i c t u r e s l e t s y o e a s i l ya d a n i m a t i o n s e q u e n c e s t y o u r o w B A S I C p r o g r a m s .J u s t a f e w o t h m a n y M o v i n g P i c t u r e s f e a t u r e s :

a l l o w s s p l i t s c r e e n o p e r a t i o n p a r t g r a p h i c s , p a r t t e x te v e n w h i l e m o v i e i r u n n i n gr e p e a t , s t o p a a n f r a m e , c h a n g e p o s i t i o n , a n c o l o u r s ,v a r y d i s p l a y s p e e d a n d m o r eh o l d s e v e r a l m o v i e s i m e m o r y a n s w i t c h i n s t a n t l y f r o mo n m o v i e t t h o t h e ri n s t a n t , o n - l i n e h e l p a v a i l a b l e a t t h e t o u c h o k e n c o p y p r o t e c t i o n u s e d o t h d i s ka n h e r e ' s t h e b e s t p a r t : t h p r i c e i j u s t $ 2 9 . 9 5 !

G r a p h i c s p r o g r a m n o i n c l u d e d . M o v i n g P i c t u r e s u s e ss t a n d a r d h i - r e s b i t m a p , s m a n y g r a p h i c s p r o g r a m s a r f u l l y c o m p a t i b l e , i n c l u d i n g : F l e x i d r a w ™ , D o o d l e ™ , G o l d D i s kA r P a c k a g e ™ , P r i n t S h o p S c r e e n M a g i c ™ , P e r s p e c t i v e s ™ .

M a i l O r d e r s : T r a n s a c t o r P u b l i s h i n g I n c . , 5 O S t e e l e s A v e n u e , M i l t o n , O N C a n a d a , L 9 3 P ( 4 1 6 ) 8 7 8 - 8 4 3 8( o u s o r d e r c a r d a c e n t e r ) .

C a n a d i a n a n d I n t e r n a t i o n a l D e a l e r I n q u i r i e s T o N o r l a n d S o f t w a r e P r o d u c t s , 2 5 N i p i s s i n g R o a d , U n i t 3

M i l t o n , O N C a n a d a , L 9 4 Z 5 . ( 4 1 6 ) 8 7 6 - 4 7 7 4 .

U S D e a l e r I n q u i r i e s T o A m e r i c a n S o f t w a r e D i s t r i b u t o r s I n c . , B o 2 9 O ,

U r b a n a l L , U S A 6 1 8 O 1 1 - 8 0 0 - 2 2 5 - 7 9 4 1 .

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 3/84

V o l u m eI s s u e 0 C i r c u l a t i o n a L a r g e

7 2 , 0 0 0

I

0

S i m u l a t i o n s a n M o d e l l i n gS t a r t A d d r e s s E d i t o r i a lB i t s a n P i e c e s . U s i n g t h W A I T F u n c t i o n F o S c r e e n C h a n g e s

L a s t F i l e u s e d " u p d a t eE a s y C - 1 2 8 U n - N e wP r i n t e r o u t p u t f r o m a M m o n i t o rQ u i c k D i r e c t o r y H i d e rE d i t i n g i t h C - P o w e r S h e l l" H i g h - R e s 1 2 8 " V i d e o F i

L i t t l e - K n o w n F e a t u r e s o D O T h e A m a z i n g 1 6 6 0 M o d e mB i C o r r e c t i o n : D O W e d g eC o r r e c t i o n : F o r m a t T r a c k 3 A s s e m b l e r S t a r t - u p C o d eC 1 2 8 R S - 2 3 2 B u g sU s i n g T h C - 1 2 8 S y s t e m V e c t o rM o v i n g T h C a s s e t t e B u f f e rR e s e t a n R u B o r d e r A n i m a t i o n !V e r i f i z e r a n F a s t - L o a d C a r t r i d g e sA m i g a B i t sT h V a n i s h i n g W o r k b e n c hB e a t i n g T h L o M e m o r y B l u e sM o d i f y i n g T h E p s o n P r i n t e r D r i v e r

T W o r k W i t h O t h e r P r i n t e r s

T r a n s B l o o p e r sE P R O M B u r n sH i - r e s T r a c e U t i l i t y S Y A d d r e s sU n c o n t r o l l e d S p r i t e B i t sT a p e V e r i f i z z l eS l a s h i n g a n d P o u n d i n g

1

L e t t e r s 1 A n g l i n g f o w e i r d p a r t sN e f a r i o u s p l o t sY e a n o t h e r r e q u e s t f o U r d u s o f t w a r eC - 6 4 N u m e r i c sR e m o t e l i n e f e e d sK e r n a l r e v i s i o n r e v i s i o nE a v e s d r o p p i n g o m o d e m sI E E E f o C - 1 2 8A m i g a m a r k e t i n gN n i c h e f o A m i g a

N e w s B R 7 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 sT r a n s a c t o r C u r r e n c y S t a n d a r d D e c r e e dS u b s c r i p t i o n I n t e r s e c t i o n S e tD i s k S u b s c r i p t i o n N o t e sT o r o n t o C o m p u S e r v e N o d eF r e e T r a n s a c t o r T ' S u b s c r i b e r M a i l O r d e r sC u s t o m s / D u t y o n H a r d w a r e P r o d u c t sS o l d O u t !T r a n s a c t o r M a i l O r d e rT r a n s a c t o r D i s k s , B a c k I s s u e s , a n M i c r o f i c h eN e B o o k s f r o m A b a c u sE y e - S c a n f o C - 6 4 / 1 2 8S p a r t a n n o w i t h A p p l e I d i s kP e e k B y t e 1 2

S m i l e ! Y O r O R L s h o r t T e l e C o l u m n f o l l o w e d b R L f i l e s r e v e a l e d . . 1 B u l l e t i n B o a r d S y S t e m S c o m p a r i s o n o o n l i n e s e r v i c e s . . 1

i E u r o p e w i t h c o m p a r i s o n o e q u i p m e n t p r i c e s 2 T h O U g h t r e c u r s i o n d e s c r i b e d , a n a p p l i e d i t w g a m e s 2

M a c h i n e L a n g u a g e R a n d o m N u m b e r G e n e r a t i o n . . 2 C 6 N - B o d y S i m u l a t o r s o i a r s y s t e m s i a c t i o n ! 3

T W B u t t o n M O U S e m o d i f i c a t i o n s a n s o f t w a r e f o t h 1 3 5 0 m o u s e 3 E P R O M P r o g r a m m e r U p d a t e c o r r e c t i o n s , m o d i f i c a t i o n s , a n m o r e . . 4 H e l p ! H e l p ! t r a n s p a r e n t i n s t a n t h e l p u t i l i t y 4 1 5 7 1 R A D i s k C o p i e r c o p y d o u b l e s i d e d d i s k s i o n g u l p 5 T e X t S C a n C P / M s o u r c e f i l e b r o w s e r 5 T h a t G u D O C S H a v e M e S S a g e d e c i p h e r t h o s e m e d i t a t i o n n u m b e r s 5 S t r U C t U r e B r O W S e r h a n d y t o o l f o A m i g a e x p l o r e r s 7 A m i g a F i l e S t r U C t U r e a n o t h e r l o o k a d i s k d a t a f o r m a t 7 A m i g a D i S p a t C h e S w i t h a s p e c i a l W o r l d o C o m m o d o r e ' 8 r e p o r t 7 C o m p u - t o o n s 7

N o t e : B e f o r e e n t e r i n g p r o g r a m s ,s e " V e r i f i z e r " o p a g e

T h T r a n s a c t o r M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 4/84

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

A t h o s E d i t o rK a r l J H . H i l d o nP o r t h o s E d i t o r

R i c h a r d E v e r sA r a m i s E d i t o r

C h r i s Z a m a r aD ' A r t a g n a n E d i t o r

N i c k S u l l i v a nA 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 sA n n e R i c h a r d

K a t h r y n H o l l o w a yC o n t r i b u t i n g W r i t e r s

I a A d a mJ i B a r b a r e l l oA n t h o n y B e r t r a mT i B o l b a c hR a n j a n B o s eA n t h o n y B r y a n tJ i B u t t e r f i e l dB e t t y C l a yJ o s e p h C a f f r e yG a r y C o b bT o K C o l l o p yR o b e r t V D a v i sE l i z a b e t h D e a lR o l f A . D e i n i n g e rF r a n k E D i G i o i aC h r i s D u n nM i c h a e l J E r s k i n eJ a c k F a r r a hW i l l i a m F o s s e t tJ i F r o s tM i k l o s G a r a m s z e g h yM a r t i n G o e b e lR J a m e s d G r a f fT i G r a n t h a mA d a m H e r s tJ o h n H o l t t u mD a v i d H o o kT o m a s H r b e kR o b e r t H u e h nD a v i d J a n k o w s k iB o b J o n k m a nB r i a n J u n k e rC l i f t o n K a r n e sL o m e K l a s s e nJ e s s e K n i g h tG r e g o r y K n o x

J a m e s E L a P o r t eJ a m e s A L i s o w s k iR i c h a r d L u c a sS c o t t M a c l e a nD a v i d M a r t i nS t e v e M c C r y s t a lS t a c y M c l n n i sS t e v e M i c h e lC h r i s M i l l e rT e r r y M o n t g o m e r yR a l p h M o r r i l lR i c k M o r r i sM 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 nK e v i n O ' C o n n o rR i c h a r d P e r r i tD o n a l d P i v e nT 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 a r y R o y a lJ o h n W R o s sD a v i d S h i l o hF r e d S i m o nP A S l a y m a k e rE d w a r d S m e d aD a r r e n J S p r u y tA u b r e y S t a n l e yD a v i d S t i d o l p hR i c h a r d S t r i n g e rA n t o n T r e u e n f e l sK a r e l V a n d e r L u g tA u d r y s V i l k a sJ a c k W e a v e rE v a n W i l l i a m sC h r i s W o n g

P r o g r a m L i s t i n g s I n T h T r a n s a c t o rA 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 u l d o y o u r s c r e e n i U p p e r / L o w e rc a s e m o d e . T o 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 s w i l l a p p e a r a ' 0 a n t h l e t t e r " o w 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 e ( T i s t r a i g h t l i n e a o p p o s e d t t h n 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 p r e s e n t c u r s o r m o v e m e n t s , c o l o u r s , o 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 s t h e y w o u l d a p p e a r o y o u r s c r e e n , b u t t h e y ' r el 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 t h i n q u o t e s i i d e n t i c a l t C u r s o r 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 u t i v e s p a c e s . O f t e n t h n u m b e r o s p a c e sy o i n s e r t w i l l n o b c r i t i c a l t c o r r e c t o p e r a t i o n o t h p r o g r a m . W h e n i i s t h r e q u i r e d n u m b e r o s p a c e s w i l l b e 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 e s h o w n a p r i n t " [ 1 0 s p a c e s j f l u s h r i g h t

C u r s o r C h a r a c t e r s F o r P E C B V I 6 D o w nU - B R i g h tL e f t [ l i t ]

R V R V S O f f - I

I n s e r t | D e l e t eC l e a r S c r n -H o m eS T O P

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

[ C y n ][ P u r ]

O r a n g eB r o w nL t R e G r e y lG r e yL t G r e e nL t B l u e -

Y e l l o w - [ Y e l ]

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

F 5

F 7 F 8

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 gT h T r a n s a c t o r i p u b l i s h e d b i - m o n t h l y b T r a n s a c t o r P u b l i s h i n g I n c . , 5 0 S t e e l e s A v e n u e , M i l t o n , O n t a r i o ,L 9 3 P 7 . C a n a d i a n S e c o n d C l a s s m a i l r e g i s t r a t i o n n u m b e r 6 3 4 2 . U S P S 7 2 5 - 0 5 0 , S e c o n d C l a s s p o s t a g ep a i d a B u f f a l o , N Y f o U . S . s u b s c r i b e r s . U . S . P o s t m a s t e r s : s e n d a d d r e s s c h a n g e s t T h T r a n s a c t o r , 2 7 L i n w o o d A v e n u e , B u f f a l o , N Y 1 4 2 0 9 r S S N » 0 8 2 7 - 2 5 3 0 .T h T r a n s a c t o r i i n w a c o n n e c t e d w i t h C o m m o d o r e B u s i n e s s M a c h i n e s L t d . o C o m m o d o r eI n c o r p o r a t e d . C o m m o d o r e a n C o m m o d o r e p r o d u c t n a m e s ( P E T , C B M , V I C , 6 4 a r r e g i s t e r e d t r a d e m a r k so C o m m o d o r e I n c .

S u b s c r i p t i o n s :C a n a d a $ 1 C d n . U . S . A . $ 1 U S A l o t h e r $ 2 1 U S .

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

S e n d a l s u b s c r i p t i o n s t o T h T r a n s a c t o r , S u b s c r i p t i o n s D e p a r t m e n t , 5 0 S t e e l e s A v e n u e , M i l t o n ,O n t a r i o , C a n a d a , L 9 3 P 7 , 4 1 6 8 7 8 8 4 3 8 . N o t e : S u b s c r i p t i o n s a r e h a n d l e d a t h i s a d d r e s s O N L Y .S u b s c r i p t i o n s s e n t t o u B u f f a l o a d d r e s s ( a b o v e ) w i l l b f o r w a r d e d t M i l t o n H Q F o r b e s t r e s u l t s , u s p o s t a g e p a i d c a r d a c e n t e r o m a g a z i n e .

P l e a s e N o t e : T h T r a n s a c t o r ' sp h o n e n u m b e r i s ( 4 1 6 ) 8 7 8 - 8 4 3 8

U . S . A . D i s t r i b u t o r :C a p i t a l D i s t r i b u t i n gC h a r l t o n B u i l d i n gD e r b y , C 0 6 4 1 8( 2 0 3 ) 7 3 5 3 3 8 1( o y o u r l o c a l w h o l e s a l e r )

Q u a n t i t y O r d e r s :M a s t e r M e d i a2 6 W y e c r o f t R o a dO a k v i l l e , O n t a r i oL 6 5 B ( 4 1 6 ) 8 4 2 1 5 5 5( o y o u r l o c a l w h o l e s a l e r )

N o r l a n d C o m m u n i c a t i o n s2 5 N i p i s s i n g R o a d , U n i tM i l t o n , O n t a r i oL 9 4 Z 4 1 6 8 7 6 4 7 7 4

S O L D O U T : T h B e s t o T h T r a n s a c t o r V o l u m e s 3 V o l 4 I s s u e s 0 3 , 0 4 , 0 5 , 0 6 , a n V o l 5 I s s u e s 0 2 ,0 3 0 a r a v a i l a b l e o m i c r o f i c h e o n l y

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

B a c k I s s u e s : $ 4 . 5 0 e a c h . O r d e r a l b a c k i s s u e s f r o m M i l t o n H Q E d i t o r i a l c o n t r i b u t i o n s a r a l w a y s w e l c o m e . W r i t e r s a r e e n c o u r a g e d t p r e p a r e m a t e r i a l a c c o r d i n g t t h e m e s a s h o w n i E d i t o r i a l S c h e d u l e ( s e e l i s t n e a r t h e e n o f t h i s i s s u e ) . R e m u n e r a t i o n i $ 4 p e p r i n t e dp a g e . P r e f e r r e d m e d i a i 1 5 4 1 . 2 0 3 1 , 4 0 4 0 , 8 0 5 0 , o 8 2 5 0 d i s k e t t e s w i t h W o r d P r o , W o r d C r a f l , S u p e r s c r i p t ,o S E t e x t f i l e s . P r o g r a m l i s t i n g s o v e r 2 l i n e s s h o u l d b p r o v i d e d o d i s k o r t a p e . M a n u s c r i p t s s h o u l d b t y p e w r i t t e n , d o u b l e s p a c e d , w i t h s p e c i a l c h a r a c t e r s o r f o r m a t s c l e a r l y m a r k e d . P h o t o s o i l l u s t r a t i o n s w i l lb i n c l u d e d w i t h a r t i c l e s d e p e n d i n g o q u a l i t y . A u t h o r s s u b m i t t i n g d i s k e t t e s w i l l r e c e i v e t h e T r a n s a c t o rD i s k f o t h e i s s u e c o n t a i n i n g t h e i r c o n t r i b u t i o n .

A l m a t e r i a l a c c e p t e d b e c o m e s t h p r o p e r t y o T h T r a n s a c t o r . A l m a t e r i a l i c o p y r i g h t b T r a n s a c t o rP u b l i c a t i o n s I n c . R e p r o d u c t i o n i a n f o r m w i t h o u t p e r m i s s i o n i i v i o l a t i o n o a p p l i c a b l e l a w s . P l e a s e r c o n f i r m a n p e r m i s s i o n s g r a n t e d p r i o r t o t h i s n o t i c e . S o l i c i t e d m a t e r i a l i a c c e p t e d o a a l r i g h t s b a s i so n l y . W r i t e t t h M i l t o n a d d r e s s f o w r i t e r s p a c k a g e .

T h T r a n s a c t o r M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 5/84

C o m m o d o r e ' s m o s t r e c e n t w o r s t k e p t s e c r e t i t h A m i g a 5 0 a n A m i g a 2 5 0 0 . S f a r I ' v e h e a r d a b o u t t h n e m o d e l s f r o mn l e s s t h a n 8 d i f f e r e n t p e o p l e f r o m a m a n y d i f f e r e n t c i t i e s s i n c et h J a n u a r y C E i V e g a s , a n I ' v e r e a d a b o u t t h e m i c o u p l eo c l u b n e w s l e t t e r s p u b l i s h e d b e f o r e t h s h o w e v e n o p e n e d .W o r d i t h a t s e v e r a l d e a l e r s w h a t t e n d e d C E w e r e o f f e r e dd e m o n s t r a t i o n , b u t t h e m a c h i n e s w e r e n o " o f f i c i a l l y a n o u n c e d " .

T h 5 0 s o u n d s c u r i o u s l y s i m i l a r t t h A t a r i 1 0 4 0 S T s e l f -c o n t a i n e d u n i t , e x c e p t f o t h e e x t e r n a l p o w e r s u p p l y , w i t h 3 V i n c h d r i v e ( p r o b a b l y a o n e n d ) , M e o R A M , a n K i s k s t a r t i R O M . A p p a r e n t l y t h R O K i c k s t a r t w i l l h a v e e n o u g h " h o o k s "s t h a t u p d a t e s c a b o s m o s e d i n t o t h s y s t e m . P r i c e i s u p p o s e d t o p e n a r o u n d $ 6 0 0 U . S . , t h s a m e t a t h C o m m od o r e 6 c a r r i e d w h e n i a r r i v e d .

T h 2 5 0 0 i b e i n g a i m e d a t h b u s i n e s s m a r k e t , e s p e c i a l l y i t h c o m p u t e r a i d e d d e s i g n f i e l d . T h w o r d " I B M c o m p a t i b i l i t y "i g e t t i n g t o s s e d a r o u n d a g a i n , w i t h u n c o n f i r m e d r e p o r t s o I B c a r d s l o t s a n a o n b o a r d 8 0 8 8 . T h c a s e c a n b e f i t t e d w i t h 3d i s k d r i v e s i a n c o m b i n a t i o n o 3 V 2 , 5 V 4 , a n h a r d d i s k . P r i c ei s u p p o s e d t b e a r o u n d t h $ 2 0 0 0 U . S . m a r k , b u i t ' s r u m o u r e dt h a t E u r o p e a n d C a n a d a w i l l g e t e s t m a r k e t s h i p m e n t s b e f o r ei t ' s r e l e a s e d i t h S t a t e s .

B a c k w h e n t h 1 0 0 0 h i t h e m a r k e t , C o m m o d o r e s a i d t h A m i g aw o u l d b n e l i n e o f m a c h i n e s , n o j u s t a n o t h e r s i b l i n g t b s h o v e d o u t t h e d o o r . C o m m o d o r e s h o u l d b e p r o u d t b e k e e p i n gt h i s p r o m i s e . T h e A m i g a i f i n e p r o d u c t , a n e x p l o i t i n g a g o o dt h i n g i g o o d b u s i n e s s . F o r t h i s t i m h a t o w a r d W e s t C h e s t e r ,b e c a u s e b u s i n e s s i w h a t C o m m o d o r e n e e d s t s t a y a l i v e , a n I f o o n e , w a n t t h e m t o H o w e v e r , i t ' s t h e x e c u t i o n o t h i s e x p l o i tt h a t h a m s c r a t c h i n g m h e a d .

C o m m o d o r e w a n t e d t k e e p n e w s o t h 5 0 0 a n d 2 5 0 0 a q u i e ta p o s s i b l e , p a r t i c u l a r l y t h e 5 0 0 . T h e y ' r e a f r a i d t h a t t o m u c he a r l y p u b l i c i t y w o u l d h u r t s a l e s o t h 1 0 0 0 . B u d o n ' t t h i n kt h a t s h o u l d b t h e i r l a r g e s t c o n c e r n . ( E v e n i d i d , t h p u b l i c i t yt h e y ' l l g e h e r e p r o b a b l y w o n ' t a f f e c t s i n g l e s a l e m o s tc o m p u t e r h o b b y i s t s d o n ' t r e a d T h T u n t i l w e l l a f t e r t h e y b u y )C o m m o d o r e i n t e n d s t b u i l d t h 2 5 0 0 f i r s t , f o l l o w e d b t h e 5 0 0 ,a n t h i n k t h a t ' s t h w r o n g o r d e r .

I w h o l e n e i g h b o u r h o o d o $ 2 0 0 , 0 0 0 d o l l a r h o m e s w e r e g o i n gu p b u t 2 m o n t h s l a t e r y o k n o w a n o t h e r n e i g h b o u r h o o d n o f a

a w a y w i l l h a v e a c r e s o s i m i l a r h o m e s f o o n l y $ 6 0 , 0 0 0 ,w o u l d n ' t y o w a i t a n s e e ? k n o w w o u l d . N o g r a n t e d , t h el e s s e x p e n s i v e m o d e l s m i g h t n o a p p e a l t m e B u i t h e y c a m ea l o n g f i r s t , a n d h a d e v e r y t h i n g w a n t e d , I ' p r o b a b l y b i t e e v e n i

c o u l d a f f o r d t h l u x u r y m o d e l .

R e g a r d l e s s , m o s t w o n ' t h a v e t h e e x t r a 1 4 0 0 o s d o l l a r s t s i n ki n t o t h A m i g a 2 5 0 0 , a n d m o s t w o n ' t n e e d t h a d d e d p o w e r .P e r h a p s C o m m o d o r e w a n t s t h i s t m a k e t h 1 0 0 0 m o r e a t t r a ct i v e a t p o i n t o p u r c h a s e . B u t h 5 0 i n o m u c h o s e c r e t , a n i w o u l d s e e m t m t h a t l e s s p e o p l e w o u l d w a i t f o t h m o r ee x p e n s i v e m a c h i n e t a r r i v e , a o p p o s e d t t h o s e w h w i l l w a i tf o t h l e s s e x p e n s i v e A m i g a . I n t r o d u c e t h 2 5 0 0 f i r s t , a n b e l i e v e s a l e s w i l l s l o w f o b o t h o t h a v a i l a b l e m o d e l s . B r i n g o u t h 5 0 f i r s t , a n t h e r e w i l l b p o p u l a r i t y f o i t h a t i n c l u d e st h o s e w h c o u l d n ' t a f f o r d t h 1 0 0 0 . T h s m a l l m a r k e t r a t i o o p o t e n t i a l 2 5 0 0 u s e r s w i l l h a v e t w a i t , b u t n o t f o l o n g i C o m m o d o r e g e t s m o v i n g o i t

C o m m o d o r e s h o u l d n ' t f e a r f o t h 1 0 0 0 f o o t h e r r e a s o n s . T h p r i c e d i f f e r e n c e b e t w e e n t h 1 0 0 0 a n d 5 0 0 w i l l n o b t h a t b i g ,a n u n l i k e t h 5 0 0 , t h 1 0 0 0 w i l l h a v e t h e s e p a r a t e k e y b o a r da n t h e e x p a n d a b i l i t y t m a i n t a i n i t p o s t u r e . O n c e a l t h r e em o d e l s a r e o u t b e l i e v e n o n e o t h e m w i l l b i g n o r e d a t h c o u n t e r .

C o m m o d o r e h a p r o b a b l y c o n s i d e r e d t h i s s i t u a t i o n v e r y c a r ef u l l y , a n t h e i r d e c i s i o n i o n t h a t u n d o u b t e d l y s p a n s m u c hm o r e t h a n j u s t o n p a g e o f d e t a i l s . O n r e p o r t s t a t e s t h a t b o t hm a c h i n e s s h o u l d b r e a d y b e a r l y 1 9 8 7 . I t h a t h a p p e n s ,C o m m o d o r e s h o u l d f a r e p r e t t y w e l l w h i c h e v e r w a t h e y d i t

O n t h i n g t r e m e m b e r , a l o t h a b o v e i r u m o u r . I C o m m od o r e s h e l v e s a n o a l o i t d i s a p p o i n t m e n t w i l l b u n j u s t i f i a b l e .O t h o t h e r h a n d , w h e n t h n e A m i g a s d a r r i v e , C o m m od o r e s h o u l d b l o o k i n g f o r w a r d t s u b s e q u e n t p r o f i t a b l e q u a rt e r s , a n t h o s e s h a r e s d i d n ' t b u b a c k i 7 j u s t m i g h t b w o r t h l o o k i n g i n t o r i g h t n o w . T o m m o r r o w , i f a c t .

R e m e m b e r , t h e r e ' s n o t h i n g a c o n s t a n t a c h a n g e , r e m a i n . . .

K a r l J . H . H i l d o n , E d i t o r i C h i e f

T h T r a n s a c t o r M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 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 m t 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 u 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 IZ E c o n c e p t w o r k s b y 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 ml 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 c o r r e s p o n d i n g c 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 f i v e v e r s i o n s o V E R I F I Z E R h e r e ; o n f o P E T / C B M s , V I o C 6 4 , P l u s 4 C 1 2 8 , a n B 1 2 8 . E n t e r t h a p p l i c a b l e p r o g r a m a n d R U i t I y o g e t a d a t a o c h e c k s u m e r r o r , r e - c h e c k t h p r o g r a m a n d k e e pt 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 E t h p r o g r a m , s i n c e y o u ' l lw 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 p r o g r a m s . O n c e y o u ' v eR U t h l o a d e r , r e m e m b e r t e n t e r N 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 6 3 t e n a b l e t h P E T / C B M v e r s i o n ( o f f : S Y 6 3 7 )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 ( o f f : S Y 8 3 1 )S Y 4 0 9 6 t e n a b l e t h e P l u s v e r s i o n ( o f f : S Y 4 0 9 9 )S Y 3 0 7 2 , 1 t e n a b l e t h C 1 2 8 v e r s i o n ( o f f : S Y 3 0 7 2 , 0 )B A N K 1 5 S Y 1 0 2 4 f o B 1 2 8 ( o f f : B A N K 1 5 S Y 1 0 2 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 ml 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 e a 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 ss 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 r e p o r t c o d e i m i s s i n g ( o " — " ) i m e a n s w e ' v e e d i t e d t h a tl 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 e r e p o r t c o d e . H o w e v e r , t h i sw i l l o n l y h a p p e n o c c a s i o n a l l y a n u s u a l l y 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 r t h e p r o g r a m f r o m t h m a g a z i n e n o m a l l y , c h e c k i n g e a c h r e p o r t c o d e a f t e r y o p r e s s R E T U R N o l i n e . I t h c o d e d o e s n ' t m a t c h u p w i t h t h l e t t e r s p r i n t e d i t h b o b e s i d e t h l i s t i n g , y o c a n r e - c h e c k a n c o r r e c t t h e l i n e , t h e n t r a g a i n . I y o w i s h , y o c a n L I S T r a n g e o l i n e s , t h e n t y p e R E T U R N o v e r e a c h i s u c c e s s i o n w h i l e c h e c k i n g t h e r e p o r t c o d e s a t h e y a p p e a r . O n c e t h p r o g r a m h a b e e n p r o p e r l y e n t e r e d , b s u r e t t u r n V E R I F I Z E R o f w i t ht h S Y i n d i c a t e d a b o v e b e f o r e y o d 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 i t i o n e r r o r s l i k e P O K E 5 2 3 8 1 , 0 i n s t e a do P O K E 5 3 2 8 1 , 0 . H o w e v e r , V E R I F I Z E R u s e s " w e i g h t e d c h e c k s u mt e c h n i q u e " t h a t c a n b e f o o l e d i y o t r h a r d e n o u g h ; t r a n s p o s i n g t w s e t s o 4 c h a r a c t e r s w i l l p r o d u c e t h s a m e r e p o r t c o d e b u t h i s s h o u l dn e v e r h a p p e n s h o r t o d e l i b e r a t e l y ( v e r i f i z e r c o u l d h a v e b e e n d e s i g n e dt b m o r e c o m p l e x , b u t h r e p o r t c o d e s w o u l d n e e d t b l o n g e r , a n u s i n g i w o u l d b e m o r e t r o u b l e t h a n c h e c k i n g c o d e m a n u a l l y ) . V E R I F IZ E i g n o r e s s p a c e s , s y o m a a d o o m i t s p a c e s f r o m t h l i s t e dp r o g r a m a w i l l ( p r o v i d i n g y o d o n ' t s p l i t u k e y w o r d s ! ) . S t a n d a r dk e y w o r d a b b r e v i a t i o n s ( l i k e n i 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 V E R I F I Z E R r e p o r t c o d e .

T e c h n i c a l i n f o : V I C / C 6 4 V E R I F I Z E R r e s i d e s i t h c a s s e t t e b u f f e r , s i y o u ' r e u s i n g a d a t a s e t t e b e a w a r e t h a t t a p e o p e r a t i o n s c a n b ed a n g e r o u s t i t h e a l t h . A f a a s c o m p a t i b i l i t y w i t h o t h e r u t i l i t i e 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 s e a n p r o b l e m s s i n c e i w o r k s t h r o u g h t h B A S I C w a r m - s t a r t l i n k a n d j u m p s t t h o r i g i n a l d e s t i n a t i o n o t h l i n ka f t e r i t ' s f i n i s h e d . W h e n d i s a b l e d , i r e s t o r e s t h l i n k t i t o r i g i n a lc o n t e n t s .

C C

L H D G O J A I

O I

C E H 0 J P H E L K

E D

K J L

B D G F K A I

E E

O M M D C N O A G J E

M B

P E T / C B M V E R I F I Z E R ( B A S I C 2 . 0 o r 4 . 0 )1 0 r e m * d a t a l o a d e r f o " v e r i f i z e r 4 . 0 "1 r e p e t v e r s i o n2 c 3 f o 6 3 t 7 5 4 : r e a d a : p o k e i , 4 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 t " * * * * * d a t a e r r o r * * 7 0 r e m s y 6 3 8 e n 1 0 0 :1 0 0 0 d a t a 7 6 , 1 3 8 ,1 0 1 0 d a t a 1 7 3 , 1 6 4 ,1 0 2 0 d a t a 1 4 5 , 2 0 1 ,1 0 3 0 d a t a 1 4 4 , 1 4 1 , 1 6 3 ,1 0 4 0 d a t a 2 , 1 3 3 , 1 4 5 ,1 0 5 0 d a t a 2 0 1 , 1 3 , 2 0 8 , 6 1 0 6 0 d a t a 2 5 4 , 1 , 1 3 3 , 2 5 11 0 7 0 d a t a 0 2 , 1 6 8 , 2 0 11 0 8 0 d a t a 1 6 5 , 2 5 3 , 4 1 1 0 9 0 d a t a 1 9 8 , 2 5 4 ,1 1 0 0 d a t a 2 5 1 , 4 1 1 1 1 0 d a t a 1 6 5 , 2 5 1 , 7 4 , 7 4 ,1 1 2 0 d a t a 1 4 1 , 1 , 1 2 8 , 1 0 8 , 1 6 3 ,1 1 3 0 d a t a 2 5 1 , 1 3 3 , 2 5 1 , 9

" e n

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

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

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

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

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

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

8 8

V I C / C 6 4 V E R I F I Z E R1 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 5 r e m v i c / 6 4 v e r s i o n2 0 c s3 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 f 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 0 r e m s y 8 2 8 0 e n d1 0 0 :1 0 0 0 d a t a 7 6 , 7 4 , 3 , 1 6 5 , 2 5 1 , 1 4 1 ,1 0 1 0 d a t a 2 5 2 , 1 4 1 , 3 , 3 , 9 6 , 1 7 3 ,1 0 2 0 d a t a 3 , 2 4 0 , 1 7 , 1 3 3 , 2 5 2 , 1 7 3 ,

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

0 , 1 8 9 , 0 2 , 2 4 01 5 , 1 3 3 , 9 1 , 2 0 0 , 1 5 23 2 1 8 3 ,

■ " : e n d

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

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

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

0 1 6

3 3 3 3

8 9 2 2 4 1 1 6

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

9 1

1 6 2 0 1 3 1 4 1 6 2 0

2 4 1

1 6 2 5

9 2 2

V I C / 6 4 D o u b l e V e r i f i z e r S t e v e n W a l l e y , S u n n y m e a d , C W h e n u s i n g ' V E R I F I Z E R ' w i t h s o m e T V s , t h u p p e r l e f t c o r n e r o t h s c r e e n i c u o f f , h i d i n g t h e v e r i f i z e r - d i s p l a y e d c o d e s . D O U B L E V E R IF I Z E R s o l v e s t h a t p r o b l e m b 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 e r c o d e o b o t h t h f i r s t a n s e c o n d r o o t h T s c r e e n . J u s t r u t h b e l o wp r o g r a m o n c e t h 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 .

T h T r a n s a c t o r M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 7/84

K B D

G I

E K K F L

1 0 f o a d 6 7 t 7 2 0 : r e a d d a : p o k e a d , d a : n e x t a 1 1 0 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 r a c t i v a t e d " : n e w1 3 d a t a 1 2 0 , 1 6 9 , 1 8 0 , 1 4 1 , 2 0 1 4 d a t a 1 6 9 , 2 , 1 4 1 , 2 1 3 8 1 5 d a t a 9 6 1 6 2 , 0 , 1 8 9 , 0 , 2 1 61 6 d a t a 1 5 7 , 4 0 , 2 1 6 , 2 3 2 , 2 2 4 ,1 7 d a t a 2 0 8 , 2 4 5 , 1 6 2 , 0 , 1 8 9 ,1 8 d a t a 4 , 1 5 7 , 4 0 4 , 2 3 2 , 2 2 41 9 d a t a 2 , 2 0 8 , 2 4 5 , 7 6 4 9 , 2 3 4

V E R I F I Z E R F o T a p e U s e r s T o P o t t s , R o w l e y , M T h f o l l o w i n g m o d i f i c a t i o n s t t h V e r i f i z e r l o a d e r w i l l a l l o w V I C a n d 6 o w n e r s w i t h D a t a s e t t e s t u s t h V e r i f i z e r d i r e c t l y ( w i t h o u t t h l o a d e r ) .A f t e r r u n n i n g t h n e l o a d e r , y o u ' l l h a v e s p e c i a l c o p y o t h e V e r i f i z e rp r o g r a m w h i c h c a b l o a d e d f r o m t a p e w i t h o u t d i s r u p t i n g t h e p r og r a m i m e m o r y . M a k e t h e f o l l o w i n g a d d i t i o n s a n d c h a n g e s t t h V I C /6 V E R I F I Z E R l o a d e r :

N 3 f o = 8 5 0 t 9 8 0 : r e a d a p o k e i , A 6 i c s < > 1 4 8 2 1 t h e n p r i n t " * * * * * d a t a e r r o r * * * * * " : e n

I 7 r e s y s 8 5 0 o n s y s 8 5 3 o f 8 d e l e t e l i n e1 0 d e l e t e l i n e

O 1 0 0 0 d a t a 7 6 9 6 3 , 1 6 5 , 2 5 1 , 1 4 1 , 2 3 , 1 6 5M 1 0 3 0 d a t a 2 5 1 , 1 6 9 , 1 2 1 , 1 4 1 , 2 3 , 1 6 9 , 3 , 1 4 1E 1 0 7 0 d a t a 1 3 3 , 9 0 3 2 , 2 0 5 , 3 , 1 9 8 , 9 0 1 6 , 2 4 9B 2 0 0 0 a v e r i f i z e r . s y s 8 5 0 [ s p a c e ] "K 2 0 1 0 f o = 8 5 0 t 9 8 G 2 0 2 0 a a c h r $ ( p e e k ( i ) ) : n e x tD 2 0 3 0 o p e n 1 , 1 , 1 , a $ : c l o s e

I 2 0 4 0 e n d

N o R U N , p r e s s i n g P L A Y a n R E C O R D w h e n p r o m p t e d t d s o ( u s e ar e w o u n d t a p e f o e a s y f u t u r e a c c e s s ) . T u s t h s p e c i a l V e r i f i z e r t h a th a j u s t b e e n c r e a t e d , f i r s t l o a d t h e p r o g r a m y o u w i s h t v e r i f y o rr e v i e w i n t o y o u r c o m p u t e r f r o m e i t h e r t a p e o d i s k . N e x t i n s e r t t h e t a p ec r e a t e d a b o v e a n b s u r e t h a t i i r e w o u n d . T h e n e n t e r i d i r e c tm o d e : O P E N h C L O S E l . P r e s s P L A Y w h e n p r o m p t e d b t h c o m p u t e r ,a n w a i t w h i l e t h s p e c i a l V e r i f i z e r l o a d s i n t o t h t a p e b u f f e r . O n c el o a d e d , t h e s c r e e n w i l l s h o w F O U N D V E R I F I Z E R . S Y S 8 5 0 . T o a c t i v a t e ,e n t e r S Y 8 5 ( n o t t h 8 2 a i t h o r i g i n a l p r o g r a m ) . T d e - a c t i v a t e ,u s S Y 8 5 3 .

I y o a r g o i n g t u s t a p e t S A V E p r o g r a m , y o u m u s t d e - a c t i v a t e( S Y S 8 5 3 ) s i n c e V E R I F I Z E R m o v e s s o m e o t h i n t e r n a l p o i n t e r s u s e dd u r i n g S A V E o p e r a t i o n . A t t e m p t i n g S A V E w i t h o u t t u r n i n g o f V E R I F I Z E R f i r s t w i l l u s u a l l y r e s u l t i n c r a s h . I y o w i s h t u s V E R I F I Z E R a g a i n a f t e r u s i n g t h e t a p e , y o u ' l l h a v e t r e l o a d i w i t h t h eO P E N 1 : C L O S E 1 c o m m a n d s .

P l u s V E R I F I Z E R

N P E N

J A N J I

P C O L E

1 0 0 0 r e d a t a l o a d e r f o v e r i f i z e r 4 1 0 1 0 r e c o m m o d o r e p l u s / 4 v e r s i o n1 0 2 0 g r a p h i c 1 s c n c l r : g r a p h i c 0 r e m a k e r o o m f o c o d e1 0 3 0 c 1 0 4 0 f o 4 0 9 6 t 4 2 1 6 : r e a d x p o k e j , x : c c x n e x t1 0 5 0 i c h O 1 3 1 4 6 t h e n p r i n t " c h e c k s u m e r r o r " : s t o p1 0 6 0 p r i n t s y 4 0 9 6 : r e t e n a b l e "1 0 7 0 p r i n t s y s 4 0 9 9 : r e t d i s a b l e "1 0 8 0 e n d1 0 9 0 d a t a 7 6 1 4 1 6 , 1 6 5 ,1 1 0 0 d a t a 1 6 5 , 2 1 2 , 1 4 1 , 3 1 1 1 0 d a t a 3 , 2 0 1 , 1 6 , 2 4 0 ,1 1 2 0 d a t a 2 3 , 1 3 3 , 2 1 1 ,1 1 3 0 d a t a 3 , 1 6 9 , 1 6 , 1 4 1 , 3 , 3 , 9 6 , 1 6 5

2 1 1 ,3

1 7 1 6 9 .

1 4 1 ,9 6

1 3 3 ,3 9

2 1 7 3 ,2 1 2 ,1 4 1 .

1 7

D L G D G C C P D B B

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

1 3 3 , 2 0 8 ,2 , 2 0 1 ,3 2 3 2 ,

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

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

1 6 2 , 0 4 8 1 4 4 ,

2 0 8 , 2 4 2 ,3 2 2 4 0 ,

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

2 0 8 , 7 4 1 4 1 , 1

2 4 1 0 1 ,

1 6 0 , 0 , 1 8 97 , 2 0 1 , 5

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

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

7 4 , 7 4 , 7 1 2 1 0 8 , 2 1 1

2 0 8 , 1 3 3 , 2 0 8

P A J N O J M A

I G M H L J E

K D J K E

C E A J c B P

C 1 2 8 V E R I F I Z E R ( 4 c o l u m n m o d e )

1 0 0 0 r e d a t a l o a d e r f o v e r i f i z e r 2 8 1 0 1 0 r e c o m m o d o r e 2 v e r s i o n1 0 2 0 r e u s i 4 0 c o l u m n m o d e o n l y !1 0 3 0 c 1 0 4 0 f o 3 0 7 2 t 3 2 1 4 : r e a d x p o k e j , x : c c x n e x t1 0 5 0 i c h < > 1 7 8 6 0 t h e n p r i n t c h e c k s u m e r r o r " : s t o p1 0 6 0 p r i n t s y 3 0 7 2 , 1 : r e t e n a b l e "1 0 7 0 p r i n t s y 3 0 7 2 , 0 : r e t d i s a b l e "1 0 8 0 e n d1 0 9 0 d a t a 2 0 8 , 1 1 , 1 6 5 , 2 5 3 , 1 4 1 , 2 1 1 0 0 d a t a 2 5 4 , 1 4 1 , 3 , 3 , 9 6 , 1 7 3 ,

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

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

3 1 6

2 0 , 1 6 0 , 0 , 1 8 9 , 0

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

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

3 2 3

2 4 0 , 1 5 , 1 3 3 , 2 5 2 , 2 0 01 3 3 , 2 5 1 , 3 2 , 1 3 5 , 1

2 0 1 ,4 1

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

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

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

B 1 2 8 V E R I F I Z E R E l i z a b e t h D e a l , M a l v e r n , P

r e s a v e " @ 0 : v e r i f i z e r b 1 2 8 " , 81 r e m * d a t a l o a d e r f o v e r i f i z e r b 1 2 8 "2 0 c s3 0 b a n k 1 5 : f o r 1 0 2 4 t 1 1 6 3 : r e a d a : p o k e i , a4 c c a : n e x t5 i c s < > 1 6 8 2 8 t h e n p r i n t " * * d a t a e r r o r * * " : e n 6 0 r e m b a n k 1 5 s y 1 0 2 47 e n

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

2 1 6 9 ,1

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

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

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

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

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

1 0 4 , 1 3 3 ,2 3 3 , 1 3 3 , 2 3 3

2 4 0 ,4 1

2 4 9 ,1 9 3 ,

2 4 1 0 8 ,

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

4 7 2

1 0

1 6 5 , 2 5 23 9 2 4

1 6 9 , 3 9 6 1 6 2 7 1 3 2 2 2 0

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

1 1 4 0 d a t a 1 7 0 , 1 7 0 , 1 7 0 , 1 7 0

T h T r a n s a c t o r M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 8/84

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 n 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 c o l u m n , w 1 c r e d i t y o i t h c o l u m n a n s e n d y 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

U s i n g t h W A I T F u n c t i o nF o S c r e e n C h a n g e s

F r a n c i s O S a f f e l lE u g e n e , O

I y o u ' v e w o r k e d w i t h g r a p h i c s o t h C - 6 4 y o k n o w t h a tc h a n g e s i s p r i t e v a l u e s , s c r e e n c o l o u r a n b a n k s e l e c t i o n c a o f t e n l o o k j i t t e r y . T h i s i b e c a u s e y o c a u g h t t h r a s t e r b e a m o f g u a r d w i t h y o u r c h a n g e . F o n i c e c l e a n t r a n s i t i o n s y o c a a s t h c o m p u t e r t w a i t t i l l t h r a s t e r i o u o f s i g h t b e f o r e m a k i n gt h c h a n g e :

W A I T 5 3 2 6 5 , 1 2 8

. . w i l l s t o p y o u r p r o g r a m u n t i l t h b e a m i o u o s i g h t .

L a s t F i l e u s e d u p d a t e D a S c h e i nW e s t L a w n , P

I t h B i t s s e c t i o n o V o l u m e 7 I s s u e 0 ( J a n 1 9 8 7 ) , D a v eN e w b e r r y s u b m i t t e d S Y s t a t e m e n t t p r i n t t h l a s t f i l e n a m eu s e d o 6 4 H e r e a r e q u i v a l e n t S Y c o m m a n d s f o o t h e rC o m m o d o r e m o d e l s .

V I 2 S Y 6 3 0 6 5C - 6 4 S Y 6 2 9 1 3P l u s / 4 S Y 6 1 8 1 0C - 1 2 8 S Y S 6 2 7 5 3

E a s y C - 1 2 8 U n - N e w M i c h a e l D P a u lM a n s f i e l d , O h i o

E v e r y o n e c a n a l w a y s u s p o g r a m t r e s t o r e a n a c c i d e n t a l l yN E W ' d B A S I C p r o g r a m . H e r e ' s o n f o t h C - 1 2 8 t h a t u s e s o n l y1 2 b y t e s a n c a n b e l o c a t e d a l m o s t a n y w h e r e . s t o r e i o d i s ka n u s i b t y p i n g B O O T " U N N E W " .

* $ B 0 0L D # $ 0 1L D # $ 0 0S T ( $ 2 D ) , yJ S $ 4 F 4 FJ M $ 4 F 8 2

c a s s e t t e b u f f e r

p o i n t e r t o s t a r t b a s i cr o u t i n e t r e c h a i n l i n e sr o u t i n e t o r e s e t t e n o b a s i c

T h i s s h o u l d w o r k r e g a r d l e s s o w h e r e t h s t a r t o B A S I C i s

P r i n t e r o u t p u t f r o m a M m o n i t o r D a v i d O R o w e l lM a r i e t t a , N

I s e e m s t h a t t h f o l k s w h w r o t e t h e x c e l l e n t M m o n i t o rp r o g r a m s f o t h C - 6 4 f o r g o t t h a t p r i n t e r w o u l d b h a n d y f o m a n y u s e s w i t h i n t h e m o n i t o r . T h i s o m i s s i o n b u g g e d m f o q u i t e w h i l e b e f o r e g a v e i a n w o r k e d o u t a s o l u t i o n .

T h f o l l o w i n g b i o m a c h i n e c o d e w i l l a l l o w y o t t o g g l ep r i n t e r o u t p u t o n a n d o f f :

P R I N T E R L D # $ 0 4T X L D # $ F FJ S $ F F B AL D # $ 0 0J S $ F F B DJ S $ F F C 0L D # $ 0 4J S $ F F C 9B R

S C R E E N J S $ F F C CB R

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

T h i s l i t t l e r o u t i n e h a t w e n t r y p o i n t s : P R I N T E R t t u r n t h p r i n t e r o ( a s i n O P E N 4 , 4 : C M 4 s t h a t e v e r y t h i n g t h a tw o u l d h a v e p r i n t e d o t h s c r e e n n o g o e s t t h p r i n t e r , a n

T h T r a n s a c t o r M a 1 9 6 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 9/84

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 10/84

c a v e r y e a s i l y t u r n y o u r C o m m o d o r e 6 i n t o a a n s w e r i n gm a c h i n e . J u s t u s t h s h o r t p r o g r a m b e l o w w i t h y o u r s p e e c hp a c k a g e a n y o u r 6 w i l l a n s w e r a w a y ! I c a e a s i l y b c h a n g e dt t a k e t h t i m e o t h c a l l , o d o w h a t e v e r e l s e y o w i s h .M a y b e i y o u ' r e g o o d w i t h e l e c t r o n i c s , y o c o u l d c o n n e c tv o i c e r e c o g n i t i o n s y s t e m t t h m o d e m a n d h a v e i a n s w e r o d i g i t i z e t h c a l l e r r e s p o n s e ! W h e n u s i n g t h p r o g r a m , m a k es u r e y o u r m o d e m i s e o A N S W E R , n o O R I G I N A T E .

9 o 5 6 5 7 7 : h 3 2 l 2 5 5 - 3 2 :1 0 p r i n t : p r i n t " w a i t i n g f o c a l l .1 1 i ( p e e k ( o h ) a n 8 t h e n 1 1 1 2 p o k e ( o h 2 ) , ( p e e k ( o h 2 o h i

p o k e o h , ( p e e k ( o h ) a n l o 1 3 p r i n t " p h o n e r i n g i n g , n o a n s w e r i n g . . 1 4 0 r e m i n s e r t c o m m a n d s f o y o u r s p e e c h p r o g r a m h e r e1 5 0 r e m w i t h t h s p e e c h t h a t y o u w a n t t h c a l l e r t h e a r1 6 0 p o k e o h , ( p e e k ( o h ) o h i ) :1 7 p r i n t " c a l l s a n s w e r e d : "1 8 g o t o 1 0

A s s e m b l e r S t a r t - u p C o d e A n d r e w W a l d u c kO r i l l i a , O n t .

B i C o r r e c t i o n : D O W e d g e R o b e r t C K o d a d e kA s t o n , P

I t h B i t s c o l u m n , V o l u m e 7 I s s u e 4 r e a d e r J o e l P i c k e t t w r o t ei t s a t h a t t h D O w e d g e p r o g r a m s u p p o r t s o n l y o n 1 5 4 1d r i v e . A c t u a l l y , t h D O w e d g e ( v e r s i o n 5 . 1 ) h a c o m m a n df o c h a n g i n g t h d e v i c e n u m b e r t h ' * ' . T h p r o p e r s y n t a x f o t h e l i t t l e - k n o w n c o m m a n d i s

@ # ( d e v i c e n u m b e r )

F o r e x a m p l e , t c h a n g e f r o m d e v i c e t d e v i c e 9 t h c o m a n d i s @ # 9 . T h u s o t h i s c o m m a n d i c e r t a i n l y e a s i e r t h a ng o i n g t t h e t r o u b l e t c h a n g e t h l o a d e r p r o g r a m a n h a v i n gt r e m e m b e r t P O K E a d d r e s s 5 2 3 4 3 w i t h t h e c u r r e n t d e v i c en u m b e r .

C o r r e c t i o n : F o r m a t T r a c k 3 T h o m a s E C a l i s eB r i c k , N

h a v e f o u n d a e r r o r i M r D . A . H o o k ' s p r o g r a m ( f o r m a t t r a c k3 6 t h a t w a p u b l i s h e d i t h S e p t e m b e r ' 8 T r a n s a c t o r . A f t e rr u n n i n g t h p r o g r a m a n d c h e c k i n g t h e x t r a f o r m a t t e d t r a c kf o e r r o r s u s i n g t h 1 5 4 1 S u p e r K i t S u p e r S c a n , c o n t i n u o u s l yc a m e u w i t h # 2 r e a d e r r o r f o s e c t o r # 1 6 . U p o n i n s p e c t i o no t h c o d e p r e s e n t e d i h i a r t i c l e , r e a l i z e d t h a t t h w r o n gn u m b e r w a b e i n g s t o r e d i l o c a t i o n $ 4 3 . I n s t e a d o $ 1 i s h o u l d b e a $ 1 1 . T c o r r e c t t h s i t u a t i o n , c h a n g e l i n e 1 0 2 0 i t h p r o g r a m t o

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

A f t e r t h c h a n g e w a m a d e , a l s e c t o r s c h e c k e d o u p r o p e r l y .

H e r e i s o m e a s s e m b l e r c o d e , i P A L - c o m p a t i b l e f o r m a t , t h a tu s a t h s t a r t o f m a n y o m p r o g r a m s . I m a k e s p r o g r a mt h a t c a n b e L O A D e d a n R U l i k e a n B A S I C p r o g r a m , a n t h u s e r d o e s n ' t h a v e t r e m e m b e r S Y c o m m a n d t g e i g o i n g .W h e n t h p r o g r a m i l o a d e d , i w i l l a p p e a r a s t h e B A S I C l i n eS Y 2 0 6 2 " , a n w h e n r u n , c o n t r o l w i l l b p a s s e d t t h m a c h i n e c o d e t h a t f o l l o w s .

1 0 o p e n 1 5 , 8 , 1 5 , " s 0 : p r o g r a m n a m e " : c l o s e 1 1 1 o p e n 3 , 8 , 3 , " 0 : p r o g r a m n a m e , p , w "1 2 s y 7 0 1 3 . o p t o 31 4 0 * = $ 0 8 0 11 5 0 , w o r $ 0 8 0 c1 6 0 . w o r $ 0 0 0 01 7 O . b y t $ 9 e1 8 . a s c 2 0 6 2 '1 9 0 . b y t $ 0 02 0 0 . w o r $ 0 0 0 0

; s t a r t u p a ; o u t p u t o b j e c t t d i s k; p u t p r o g r a m a t s t a r t o b a s i c; l i n k a d d r e s s; l i n e n u m b e r z e r o; t o k e n f o ' s y s '; a s c i i l i t e r a l f o s y a d d r e s s; e n d o b a s i c l i n e t o k e n; e n d o b a s i c p r o g r a m

2 1 0 ;2 8 ; y o u r s o u r c e c o d e s h o u l d s t a r t h e r e

C 1 2 8 R S - 2 3 2 B u g s A l b e r t J M c C a n n , J r G l e n o l d e n , P 1 9 0 3 6

T h e r e a r t w b u g s i t h C o m m o d o r e 1 2 i t h R S - 2 3 2r o u t i n e s t h a t i n t e r f e r e w i t h R S - 2 3 2 o p e r a t i o n . B o t h b u g s h a v et d w i t h t h e c a r r y f l a g i n t h 8 5 0 2 b e i n g s e t t o t h w r o n g s t a t eu p o n e x i t i n g t h e r o u t i n e s .

T h f i r s t b u i i t h B A S I N " c o d e f o R S - 2 3 2 i n p u t . T h c o d e i a f o l l o w s :

E F 6 5 C L E F 6 6 R T E F 6 7 J S $ E E F D ; g e t r s - 2 3 2 b y t eE F 6 A B C $ E F 6 5 ; e x i t i c a r r y s e t , b r a n c h t w r o n g l o c .E F 6 C C M P # 0 0 ; n u l lE F 6 E B N $ E F 6 6 ; i v a l i d c h a r , e x i t , c a r r y s e a r e s u l t

; o c o m p a r e , b r a n c h g o e s t w r o n gl o c a t i o n

E F 7 0 R E S T O C O D ET h c h a n g e s n e e d e d t m a k e t h i s w o r k a r e :

E F 6 A B 0 F A B C $ E F 6 6E F 6 E D F B N $ E F 6 5

T h s e c o n d b u i e v e n n a s t i e r . I i i t h R S - 2 3 2 O P E Nr o u t i n e s a n p r e v e n t s o p e n i n g a R S - 2 3 2 X - L I N E " h a n ds h a k e c h a n n e l . T h f o l l o w i n g o p e n s t a t e m e n t w i l l w o r k o 6 b u t n o t o 1 2 b e c a u s e t h 6 i g n o r e s t h c a r r y f l a g .

T h T r a n s a c t o r M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 11/84

O P E N 2 , 2 , 0 , C H R $ ( 6 ) + C H R $ ( 1 ) : R E M 3 0 B A U D ,F U L L D U P L E X , X - L I N E H A N D S H A K E

W h e n t h i s e x e c u t e s , y o w i l l g e r a n d o m e r r o r s a n i w i l l s t o pB A S I C p r o g r a m . T h c o d e i a f o l l o w s :

F 0 9 4 L D $ 0 A 1 1F O 9 7 L S F 0 9 8 B C $ F 0 A 3F 0 9 A L D $ D D 0 1 ; c h e c k i d s m i s s i n gF 0 9 DF 0 9 E

r s - 2 3 2 c o m m a n d r e b i t c a r r yb r a n c h i 3 - l i n e r s - 2 3 2

A S B C $ F 0 A 3

b i t c a r r yi i n p u t p i i n o c o n n e c t e d , o e l s e i

h i g h " t h e n c a r r y 1 d s i t r u eh i g h " a t h i s p o i n t

F 0 A 0 J S R $ E 7 5 5 ; s e t s t a t u s v a r i a b l e t i n d i c a t e d s i m i s s i n g , i n p u t p i i l o w " . t h i s r o u t i n ec l e a r s c a r r y s i y o u g r o u n d t h e d s ri n p u t p i t h e n t h a b o v e o p e n w i l l w o r k

F 0 A 3 R E S T O C O D EF O A F R T

1 r e r e s e t - c o n t r o l l e r2 b a n k3 0 p o k e d e c ( " f f f 8 " ) , 04 0 p o k e d e c ( " f f f 9 " ) , 1 95 f o d e c ( " 1 3 0 0 " ) t d e c ( " 1 3 0 5 " )6 r e a d a p o k e i , a : n e x t7 d a t a 3 2 1 3 2 , 2 5 5 : r e j s r $ f f 8 48 d a t a 7 6 0 1 7 6 : r e j m p $ b 0 0 0

T h f i r s t t h i n g t h p r o g r a m d o e s i r e s t o r e I / b c a l l i n g I O I N I Ta $ F F 8 4 . T h e n i j u m p s t t h e m o n i t o r . T h i s v e c t o r h a m a n yu s e s , f o e x a m p l e m a k i n g ' r e s e t - p r o o f p r o g r a m , o w i t h a u n - n e w r o u t i n e t r e s t o r e a n b a s i c p r o g r a m i m e m o r y .

N o t e t D a v i d M o r a : w c a n ' t f i n d y o u r c o m p l e t e a d d r e s s !P l e a s e g i v e u c a l l s t h a t w c a s e n d y o y o u r f r e es u b s c r i p t i o n . - C

M o v i n g T h C a s s e t t e B u f f e r J o h n T e l l e f s o nS a l i n a , K

T h e r e i n o e n o u g h r o o m a t t h i s p o i n t t i n c l u d e C L T h f o l l o w i n g t i a p p l i e s t V I 2 a n 6 u s e r s w h u s t a p ei n s t r u c t i o n s o j u m p t a p a t c h . T h c o d e t f i t h i s i s f o r s t o r a g e . I m a a p p l y t o t h e r C o m m o d o r e c o m p u t e r s .

F 0 A C 4 C F 3 F E J M P S F E F 3 ; j u m p t p a t c h

F E F 3 8 D 1 A 0 A S T A $ 0 A 1 A ; o r i g i n a l c o d eF E F 6 1 C L ; t h i s i a d d e dF E F 7 6 R T ; e x i t

T h e s e c h a n g e s w e r e p u i n t o 2 7 1 2 8 e p r o m t r e p l a c e t h K E R N A L r o i t h 1 2 8 . 1 u s P r o m e n a d e w h i c h w o r k s n i c e l yi 6 m o d e . W h i l e y o u ' r e p o k i n g a r o u n d t h K E R N A L m a k i n gf i x e s , h e r e i o n t h a t i u n r e l a t e d t R S - 2 3 2 b u b u g s m a n yp e o p l e :

F C 2 2 D

T h i s f i x e s C a p s - L o c k Q A l s o , t r e p l a c e t h K E R N A L r o i t h 1 2 8 , y o w i l l n e e d t w o c o m p u t e r s : 1 2 a n 6 o s e c o n d1 2 8 . T h r e a s o n b e i n g t h a t t h e r e i 4 o i n v i s i b l e r o ( Z - 8 0c o d e ) . T h i s i n o a c c e s s i b l e f r o m 1 2 8 m o d e . T h K E R N A L r o i c h i p U 3 5 . Y o m u s t r e m o v e t h i s c h i p a n r e a d i i n t o t h s e c o n d c o m p u t e r t h r o u g h t h e p r o m p r o g r a m m e r . T h e n y o c a n m o d i f y t h c o d e a n s e n d i t a n e p r o m .

M a n y s m a l l u t i l i t i e s s u c h a " V e r i f i z e r " a r w r i t t e n t r u i t h t a p e b u f f e r , a n d a n y t a p e o p e r a t i o n c l o b b e r s t h u t i l i t y . T h i sc a b a v o i d e d b m o v i n g t h t a p e b u f f e r i t h V I C a n d 6 4 t h b u f f e r i l o c a t e d b a d d r e s s e s 1 7 8 - 1 7 9 , a n t h s y s t e md o e s n ' t m i n d i y o m o v e i t I i 1 9 b y t e s l o n g , a n d y o u c a p u i a n y w h e r e i f r e e R A a l o n g a i d o e s n ' t o v e r w r i t e y o u rp r o g r a m , v a r i a b l e s o R O M . I y o o n l y S A V E a n L O A D f r o md i r e c t m o d e , i d o e s n ' t m a t t e r i y o o v e r w r i t e v a r i a b l e s , s i n c et h e y w i l l b c l e a r e d t h e n e x t t i m e y o R U a n y w a y . H e r e i s a m p l e c o d e f r a g m e n t t h a t m o v e s t h e t a p e b u f f e r t 1 9 b y t e sb e l o w t h b o t t o m o f s t r i n g s t o r a g e s p a c e :

p e e k ( 5 1 ) 2 5 6 * p e e k ( 5 2 ) - 1 9 2 : p o k e 1 7 9 , a / 2 5 6p o k e 1 7 8 , a - 2 5 6 * p e e k ( 1 7 9 )

( i m e m o r y i t i g h t , y o m a w a n t t c h e c k ' i f r e ( O ) > l 9 2 ' b e f o r ed o i n g t h a b o v e a l l o c a t i o n ) .

A e x t r a a d v a n t a g e : W i t h t h e t a p e b u f f e r m o v e d , y o u c a p u c o d e i t h e t a p e b u f f e r ' s n o r m a l p l a c e a n s a v e i t t a p e w i t h am o n i t o r . Y o c a t h e n l o a d t h p r o g r a m i a n u s i a i t i n t e n d e d l o c a t i o n .

U s i n g T h e C - 1 2 8 S y s t e m V e c t o r D a v i d M o r aS a J o s e , C

R e s e t a n R u T h C - 1 2 8 h a v e r y n i c e f e a t u r e f o p r o g r a m m e r s . I $ F F F 8a n $ F F F 9 o R A b a n k i a u s e f u l v e c t o r c a l l e d t h ' s y s t e mv e c t o r ' . A f t e r t h r e s e t b u t t o n i p r e s s e d , c o n t r o l i p a s s e d t t h r o u t i n e l y i n g a t h a d d r e s s i n t h i s v e c t o r . F o e x a m p l e , t a u t o m a t i c a l l y e n t e r t h m o n i t o r a f t e r r e s e t , r u t h f o l l o w i n gp r o g r a m .

N o e l N y m a nS e a t t l e W

H e r e ' s w a t h a v e y o u r f a v o r i t e B A S I C p r o g r a m a v a i l ab l a t h p u s h o b u t t o n w i t h o u t b u i l d i n g t h e h a r d w a r ed e s c r i b e d i " C 6 4 R A C a r t r i d g e " ( V o l u m e 7 I s s u e 4 ) M a k e t h f o l l o w i n g c h a n g e s t l i s t i n g # o p a g e 5 2

T h T r a n s a c t o r M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 12/84

C h a n g e t h f i l e n a m e i l i n e 1 0 9 0 t 0 : n o c a r t " .C h a n g e t h e n o l o o p i l i n e 1 1 1 0 t 3 3 0 0 8 ( f r o m 3 2 9 9 9 ) .C h a n g e t h c h e c k s u m i l i n e 1 1 2 0 t 2 9 2 6 7 ( f r o m 2 8 3 4 5 ) .C h a n g e l i n e 1 2 9 0 t r e a d :

1 2 9 0 D A T A 1 9 8 , 7 6 2 3 2 , 1 2 8 , 5 6 , 1 6 5 , 4 6 , 2 2 A d l i n e 1 2 9 1 :

1 2 9 1 D A T A 0 0 , 1 6 9 , 1 2 8 , 1 3 3 , 5 6 , 1 0 8 , 2 , 3

R u t h m o d i f i e d l o a d e r t c r e a t e " n o c a r t " o d i s k . T h e n u s " n o c a r t " a n f o l l o w t h e i n s t r u c t i o n s i t h a r t i c l e t o s t o r e y o u rf a v o r i t e B A S I C p r o g r a m i R A a b o v e $ 8 0 0 0 . T h e n e n t e r t h ec o m m a n d :

P O K E 5 6 , 1 2 8 : C L

T h i s p r o t e c t s t h R A a r e a a b o v e $ 8 0 0 0 f r o m B A S I C s t r i n gv a r i a b l e s . T h c o d e y o u a d d e d t t h l o a d e r w i l l p e r f o r m t h i sf u n c t i o n a g a i n w h e n e v e r y o u r s t o r e d B A S I C p r o g r a m i R U N .

U s i n g S Y 6 4 7 3 8 o h i t t i n g r e s e t s w i t c h w i l l R U t h s t o r e dB A S I C p r o g r a m , j u s t a i i w e r e i R A c a r t r i d g e . T h o n l yd i f f e r e n c e i t h a t t h p r o g r a m i w i p e d o u w h e n t h c o m p u t e ri t u r n e d o f f .

B o r d e r A n i m a t i o n ! T e r r y M o n t g o m e r yW a l l s , M

E v e r t r y t o d i s p l a y a n y t h i n g i t h s c r e e n b o r d e r ? O t h e r t h a nc h a n g i n g t h c o l o u r , i t ' s p r e t t y h a r d t g e t t h e b o r d e r t d a n y t h i n g e x c i t i n g . T h i s m a c h i n e l a n g u a g e p r o g r a m f r o m T e r r yM o n t g o m e r y , h o w e v e r , w i l l p u c o l o u r f u l d i s p l a y i y o u rs c r e e n b o r d e r s t h a t y o n e v e r t h o u g h t p o s s i b l e ! N o o n l y t h a t ,b u t h p r o g r a m i i n t e r r u p t - d r i v e n , m e a n i n g t h a t y o c a e d i ta n d , e v e n r u m o s t B A S I C p r o g r a m s w h i l e t h d i s p l a y c o t i n u e s . g r e a t a d d i t i o n t y o u r " G e e - W h i z " c o l l e c t i o n .

L K D G E

E A I K

M D D G K

I K A O D H N C M

1 r e m * d a t a l o a d e r f o " c o l o u r b a r s "2 0 c s3 0 f o r i 4 9 1 5 2 t o 4 9 3 9 4 : r e a d a : p o k e i , a4 c c a : n e x t5 0 6 i c s < > 2 9 6 6 6 t h e n p r i n t " I d a t a e r r o r ! " : e n 7 0 r e m s y 4 9 1 5 28 e n 1 0 0 :1 0 0 0 d a t a 1 2 0 , 1 6 9 , 1 2 7 , 1 4 1 , 1 3 , 2 2 0 , 1 6 9 ,1 0 1 0 d a t a 1 4 1 , 2 6 , 2 0 8 , 1 7 3 , 1 7 , 2 0 8 , 4 1 , 1 2 71 0 2 0 d a t a 1 4 1 , 1 7 , 2 0 8 , 1 6 9 , 3 6 , 1 4 1 , 2 0 1 0 3 0 d a t a 1 6 9 , 1 9 2 , 1 4 1 , 2 1 3 , 1 6 9 , 0 , 1 4 11 0 4 0 d a t a 1 8 , 2 0 8 , 8 8 9 6 , 1 7 3 , 2 5 , 2 0 8 , 4 1 0 5 0 d a t a 1 , 2 0 8 , 3 7 6 , 1 0 1 , 1 9 2 , 1 6 9 ,1 0 6 0 d a t a 1 4 1 , 2 5 , 2 0 8 , 1 7 2 , 1 7 6 , 1 9 2 , 1 8 5 , 1 7 1 0 7 0 d a t a 1 9 2 , 1 4 1 , 3 2 , 2 0 8 , 2 3 8 , 1 7 6 , 1 9 2 , 1 7 1 0 8 0 d a t a 1 7 6 , 1 9 2 , 2 3 6 , 1 7 7 , 1 9 2 , 2 0 8 , 8 3 1 0 9 0 d a t a 1 0 4 , 1 9 2 , 1 6 2 , 0 1 4 2 , 1 7 6 , 1 9 2 , 1 7 H O O d a t a 1 7 , 2 0 8 , 4 1 , 1 2 7 , 1 4 1 , 1 7 , 2 0 8 , 1 8 51 1 1 0 d a t a 1 9 1 , 1 9 2 , 1 4 1 , 1 8 2 0 8 , 1 7 3 , 1 7 6 , 1 9 1 1 2 0 d a t a 2 0 8 , 3 7 6 4 9 , 2 3 4 , 7 6 , 1 8 8 , 2 5 41 1 3 0 d a t a 2 3 8 , 1 7 8 , 1 9 2 , 1 7 3 , 1 7 8 , 1 9 2 , 2 0 1 , 1 1 1 4 0 d a t a 1 7 6 , 1 4 , 1 6 0 , 0 , 1 8 5 , 2 0 4 , 1 9 2 , 1 5 3

p C P G H E G G I

A E P G

I G M

1 1 5 01 1 6 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 01 2 9 01 3 0 0

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 ad a t ad a t ad a t a

V e r i f i z e r a n F a s t - L o a d »

1 9 1 ,1 7 3 ,

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

2 8

5 5 9 5

1 3 0 ,4 0

1 2 0 ,6 0

1 0 0 ,

1 9 2 , 2 0 0 , 1 9 2 ,1 7 8 , 1 9 2 , 2 0 1 ,1 8 5 , 2 1 7 , 1 9 2 ,

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

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

4 2 , 7 ,6 0 , 6 5 , 7 0 ,

1 0 0 , 1 0 5 , 4 0 1 5 0 , 1 7 0 , 1 9 0 ,

5 0 , 6 0 , 7 0 1 3 0 , 1 4 0 , 1 5 0 ,

6 5 , 7 0 , 7 5 1 0 5 , 1 1

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

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

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

9 5 0 1 4

7 5 , 8 0 , 8 5 0 7 0 9

2 1 0 , 2 3 0 , 2 5 08 0 9 0 , 1 0 0

1 6 0 , 1 7 0 , 5 8 0 8 5 9

9 1 6 2 0 1 9 2 3 2 0

9 1 5 9

1 1 1

1 1 5 9

M i k e I a r a t eC a r t r i d g e s P a r k e r s b u r g , W 2 6 1 0 1

w a h a v i n g t r o u b l e u s i n g t h V e r i f i z e r f o t h 1 2 8 : w h e n r a t h p r o g r a m , s o m e t i m e s i w o u l d w o r k , a n d s o m e t i m e s t h m o n i t o r w o u l d b r e a k i n A f t e r s o m e t r o u b l e s h o o t i n g , f o u n dt h a t t h M a c h l 2 f a s t l o a d c a r t r i d g e w a c a u s i n g t h p r o b l e m .h a v e c o m e t d e p e n d o i s m u c h t h a t o f t e n f o r g e t t h a t i i t h e r e a n u s u a l l y h a v e n o p r o b l e m w i t h m o s t o t h e s o f t w a r et h a t u s e .

H e r e i t h p r o b l e m a f a a c a d e t e r m i n e . W h e n u s t h c a r t r i d g e t l o a d p r o g r a m , t h e r e a r e t w o s y m b o l s t h a t a r s u b s t i t u t e d f o t h L O A D c o m m a n d : s l a s h , a n t h u p - a r r o w .T h e s e u s s o m e t y p e o a i n t e r r u p t t h a t s e t s t h e Z - f l a g a n t h B - f l a g i t h s t a t u s r e g i s t e r . h a v e n ' t s e e n t o m u c h w r i t t e na b o u t t h e B - f l a g ( b r e a k f l a g ) . A n y w a y , w h e n r e m o v e t h c a r t r i d g e f i n d t h a t t h s t a t u s r e g i s t e r r e t u r n s t z e r o , a n t h e nc a l o a d a n u s t h v e r i f i z e r n o r m a l l y . I t ' s n b i g d e a l t f i t h p r o b l e m ; j u s t a d t h i s l i n e t t h p r o g r a m :

1 0 8 0 p o k e 0 5 , 0 : e n

I a n y b o d y e l s e i h a v i n g p r o b l e m s u s i n g V e r i f i z e r 1 2 8 , m a y b et h i s w i l l f i t h p r o b l e m . a s u r e t h e r e a r e l o o p e o p l eu s i n g t h M a c h l 2 8 c a r t r i d g e .

A m i g a B i t s

T h V a n i s h i n g W o r k b e n c h

D i y o e v e r s l i d e d o w n t h s c r e e n o s o m e a p p l i c a t i o n ,e x p e c t i n g t f i n d t h W o r k b e n c h s c r e e n p a t i e n t l y a w a i t i n gy o u r r e t u r n , o n l y t o f i n d t h a t i h a v a n i s h e d ? T h i s h a p p e n sw h e n a a p p l i c a t i o n c l o s e s t h W o r k b e n c h s c r e e n i a e f f o r tt s a v e m e m o r y . E x a m p l e s o p r o g r a m s t h a t d t h i s a r A B a s i c( t h e o r i g i n a l B A S I C s h i p p e d w i t h A m i g a s ) , a n d D e l u x e M u s i cf r o m E l e c t r o n i c A r t s . T h i s m a b f i n e w a t s a v e m e m o r y ,b u l i f e c a n b e d i f f i c u l t w i t h n W o r k b e n c h s c r e e n - i m a k e s i i m p o s s i b l e t r u n a n y t h i n g e l s e u n t i l y o e x i t y o u r p r o g r a m !F o r t u n a t e l y , t h s y s t e m w o n ' t l e a n y o n e c l o s e t h e W o r k b e n c h

T h T r a n s a c t o r 1 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 13/84

s c r e e n i t h e r e a r e a n w i n d o w s o p e n o i t S o i y o u w a n t t m a k e s u r e y o d o n ' t l o s e y o u r s c r e e n , b r i n g u w i n d o wb e f o r e y o l a u n c h y o u r W o r k b e n c h - c l o s i n g a p p l i c a t i o n . g o o dc a n d i d a t e t h a v e u i C L w i n d o w , s i n c e y o u ' l l p r o b a b l yw a n t o n e a r o u n d a n y w a y f o d o i n g d i s k o p e r a t i o n s f r o m t i m et t i m e .

B e a t i n g T h L o w M e m o r y B l u e s

I y o c a n ' t b r i n g a p r o g r a m u p b e c a u s e y o u ' r e r u n n i n g l o o m e m o r y , t r c l o s i n g a s m a n y w i n d o w s o t h W o r k b e n c h a p o s s i b l e . Y o c a c l o s e e v e r y w i n d o w o t h s c r e e n , e v e n t h o n c o n t a i n i n g t h e p r o g r a m y o u ' r e t r y i n g t r u n , b d r a g g i n gt h p r o g r a m ' s i c o n o u t s i d e t h w i n d o w o n t o t h W o r k b e n c hs c r e e n ( a c t u a l l y , b a c k d r o p w i n d o w ) i t s e l f . O n c e y o c l o s e u e v e r y t h i n g y o c a n , y o c a n l a u n c h t h p r o g r a m b y d o u b l e -c l i c k i n g t h i c o n a s u s u a l . M a k e s u r e y o e v e n t u a l l y d r a g t h ei c o n b a c k i n t o t h d r a w e r i c a m e f r o m , o i t ' l l d i s a p p e a r f r o mt h d i s k f o r e v e r .

I y o w a n t t k e e p s o m e w i n d o w s a r o u n d , y o c a m i n i m i z et h m e m o r y c o n s u m e d b m a k i n g s u r e t h e y d o n ' t o v e r l a p . I y o u ' r e t o t a l l y d e s p e r a t e a n a b s o l u t e l y n e e d f e m o r e K y o c a a l w a y s u n p l u g y o u r s e c o n d d r i v e ( i y o u h a v e o n e ) , a n r b o o t . I y o d o n ' t h a v e t h i n t e r n a l 2 5 6 K R A e x p a n s i o nm o d u l e , g e i t I y o c a a f f o r d t o g e m o r e i t ' s a m a z i n g w h a t

f e e x t r a M e g a b y t e s c a d f o A m i g a !

M o d i f y i n g T h E p s o n P r i n t e r D r i v e rT W o r k W i t h O t h e r P r i n t e r s

P e t e r I n s k e e pL o n g V a l l e y , N

u s t h S c r i b b l e ! w o r d p r o c e s s o r , v e r s i o n 2 . 0 , a n G e m i n iS t a r 1 0 - X p r i n t e r . I E p s o n i s e l e c t e d a s t h p r i n t e r t h r o u g hP r e f e r e n c e s , m a n y o t h p r i n t e r c o m m a n d s w o r k p r o p e r l y o t h S t a r t 1 0 - X . O n c o m m a n d t h a t d o e s n o w o r k i t h p a r a g r a p h r e t u r n , a w o u l d b t h c a s e w h e n p u t t i n g s p a c eb e t w e e n t w p a r a g r a p h s . I n v a r i a b l y , t h e p r i n t e r w i l l s k i p n o o n e , b u t t w l i n e s , b e f o r e s t a r t i n g t h n e x t p a r a g r a p h . S c r i b b l e !i n o a w a r e o t h i s e x t r a l i n e s k i p , s i d o e s n o a d t h e x t r al i n e w h e n c a l c u l a t i n g w h e r e t h e n o t h p a g e r e a l l y i s T h m o r e b l a n k l i n e s b e t w e e n p a r a g r a p h s , t h m o r e t h p r o g r a mg e t s o u o f l i n e a t h e n o t h e p a g e .

C r e a t i n g c u s t o m p r i n t e r - d r i v e r i f o r m i d a b l e t a s k . B u t , i t h E p s o n p r o g r a m i b m o d i f i e d o n l y s l i g h t l y i c a n b e m a d e t w o r k w e l l w i t h t h S t a r 1 0 - X . u s e d t h e " E d i t " p r o g r a m o t h W o r k B e n c h d i s k t m a k e t h e m o d i f i c a t i o n d i r e c t l y t t h E p s o np r i n t e r d r i v e r .

T h E p s o n p r i n t e r d r i v e r i l o c a t e d w i t h a l t h e o t h e r s i t h " d e v s / p r i n t e r " d i r e c t o r y . U s i n g t h c o m m a n d , " t y p e d f O : d e v s /p r i n t e r / e p s o n o p h f r o m C L t d i s p l a y h e d u m p o t h f i l e ,

l o c a t e d t h e c h a r a c t e r s t h a t c o n t r o l l e d t h l i n e f e e d f o t h p r i n t e r . T h i s w a a l o c a t i o n $ 0 4 3 0 ( h e x ) , w h e r e t h e c h a r a c t e r sr e a d a f o l l o w s :

$ 0 4 3 0 : 0 0 0 0 F F 0 0 0 A 0 0 0 D 0 A 0 0 0 0 F F 0 0 5 .

T h c a r r i a g e r e t u r n / l i n e f e e d a $ 0 4 3 6 a n d $ 0 4 3 7 ( i b o l da b o v e ) w e r e c a u s i n g t h d o u b l e - s k i p . I p r e p a r a t i o n f o s u g e r y , t h f i l e w a c o p i e d t n e f i l e c a l l e d " S t a r " o s p a r ed i s k .

E d i t w a t h e n i n v o k e d t m a k e t h c o r r e c t i o n . B e c a u s e s o m e o t h " l i n e s " i t h f i l e w e r e v e r y l o n g , i w a n e c e s s a r y t s p e c i f yt h u n u s u a l l y l o n g l i n e l e n g t h t E d i t , o t h l i n e s w o u l d b t r u n c a t e d a n t h f i l e c o r r u p t e d . T h E d i t c o m m a n d u s e d w a " e d i t s t a r o p p 6 5 w 5 5 0 " . T h 0 0 0 D 0 A c o m b i n a t i o n w a f o u n di l i n e s 1 a n 1 3 L i n e 1 c o n t a i n s 0 0 0 D , b u t o n l y t h e 0 s h o w s i t h E d i t c o m m a n d i u s e d . L i n e 1 3 c o n t a i n s o n l y 0 ( y o u c a n ' t s e i t s i n c e i t ' s l i n e f e e d , b u i t ' s t h e r e ) . L i n e 1 2 w a d e l e t e d a n r e p l a c e d u s i n g t h e c o n t r o l - 2 a n c o n t r o l - j k e y s .H e r e a r a l t h e d i t c o m m a n d s r e q u i r e d :

1 1 C T R L - 2 C T R L - j

T h i n s t r u c t i o n s f o u s i n g E d i t c a b f o u n d i t h A m i g a D O Sm a n u a l . S i n c e t h e c o n t r o l - 2 a n c o n t r o l - j k e y c o m b i n a t i o n sa r n o n - p r i n t i n g , y o w i l l n o s e a n y t h i n g b e i n g a d d e d , b u y o a r e p u t t i n g t h t w c h a r a c t e r s 0 0 0 A i n t o t h f i l e .

L i n e 1 w a d e l e t e d , b e c a u s e t h 0 a $ 0 4 3 7 w a r e a l l y t h b u f o t h S t a r 1 0 - X . T h i s l e f t t h f i l e s h o r t o n c h a r a c t e r , s 0 w a a d d e d a t h b e g i n n i n g o f l i n e 1 t p u 0 0 0 A a $ 0 4 3 6 .T o a d d t h e c h a r a c t e r t t h b e g i n n i n g o t h l i n e , b e f o r e t h e 0 A

s u b s t i t u t e n u l l s t r i n g c o m m a n d w a u s e d :

A / / C T R L - 2 /

A f t e r E d i t w a w o u n d u p t h n e w l y e d i t e d f i l e " S t a r " w a c h e c k e d f o s i z e w i t h t h l i s t c o m m a n d t m a k e s u r e i w a t h s a m e s i z e a s " E p s o n " . ' T y p e s t a r o p h w a u s e d t s e i t h c h a n g e s h a d b e e n m a d e i t h r i g h t p l a c e . T h c o r r e c t e d f i l er e a d a f o l l o w s :

$ 0 4 3 0 O O O O F F O O 0 A O O O A O O O O O O F F O O 5 .

" S t a r " w a t h e n c o p i e d t t h S c r i b b l e d i s k ( c o p y s t a r t s c r i b b l e ! / d e v s / p r i n t e r s ) . P r e f e r e n c e s w o u l d r e c o g n i z e t h n e p r i n t e r f i l e , b u f o s o m e r e a s o n S c r i b b l e ! d e c l a r e d " n p r i n t e r "w h e n t h p r i n t m e n u w a s e l e c t e d . T k e e p S c r i b b l e ! h a p p y ,r e n a m e d " E p s o n " t " T r u e E p s o n " , a n " S t a r " t " E p s o n " .A f t e r t h a t , t h e r e w a n p r o b l e m .

A l t h o u g h h a v e n o d o n e i t a s s u m e t h a t m a n y o t h p r i n t e rd r i v e r s c o u l d b s i m i l a r l y m o d i f i e d . I t o o k p a t i e n c e t f i g u r eo u h o t u s E d i t , e s p e c i a l l y w i t h n o n - p r i n t i n g c h a r a c t e r s .p u t h w h o l e m e s s i t h r a d i s k ( " r a m : " ) w h i l e e x p e r im e n t e d , w h i c h m a d e a l t h t r i a l a n e r r o r g m u c h f a s t e r .

B t h w a y , a r e a l l y e n j o y i n g S c r i b b l e ! . M i c r o - S y s t e m s s e n tt h S c r i b b l e ! 2 . u p g r a d e , w i t h t h e s p e l l i n g d i c t i o n a r y , a s o o na i w a a v a i l a b l e , a n e n h a n c e d S c r i b b l e ! a t h s a m e t i m e . I w a r e a l b a r g a i n , b e c a u s e t h e r e w a n c h a r g e f o t h u p g r a d e .

T h T r a n s a c t o r M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 14/84

L e t t e r s

W g e l o o m a i l f r o m r e a d e r s w h h a v e v e r y s p e c i f i c q u e s t i o n sa b o u t t h e i r C o m m o d o r e a n t h i r d - p a r t y e q u i p m e n t . M a n y o t h e s ea r i n t e r f a c i n g p r o b l e m s o o n k i n d o a n o t h e r : w h i c h s o f t w a r ew i l l w o r k w i t h m m o d e m ? H o c a g e m p r i n t e r a n m w o r dp r o c e s s o r t w o r k t o g e t h e r ? H o c o m e m s y s t e m w o n ' t l o a d f r o md r i v e 1 n o t h a t I ' v e i n s t a l l e d a M a g i c S h m o o ( t m ) E x p a n d e r b o xo m g a m e p o r t ?

T h e s e k i n d s o q u e s t i o n s a r e o f t e n i m p o s s i b l e t a n s w e r u n l e s s y o h a v e s p e c i f i c e x p e r i e n c e w i t h t h p a r t i c u l a r e q u i p m e n t c o n f i g u r at i o n i n v o l v e d . S i n c e w d o n ' t h a v e e v e r y i m a g i n a b l e p i e c e o fe q u i p m e n t o n t h m a r k e t , w e ' r e o f t e n l e f t s c r a t c h i n g o u r h e a d s f o

r e p l y .

Y o u , o t h o t h e r h a n d , m a h a v e r e c e n t l y d i s c o v e r e d t h n e c e ss a r y i n c a n t a t i o n s t m a k e t h M a g i c S h m o o ( t m ) b o x w o r k w i t hy o u r d i s k d r i v e s , a n w o u l d j u s t l o v e t s h a r e y o u r d i s c o v e r y w i t ht h r e s t o t h w o r l d . T h a t ' s w h a t t h i s n e x t b u n c h o l e t t e r s a r a l a b o u t . R e a d t h e m o v e r s e i y o c a h e l p . W ' l o v e t h e a r f r o my o u , a n s w o u l d t h a u t h o r s o t h e s e q u e s t i o n s .

A n g l i n g f o w e i r d p a r t s : B e c a u s e o s t i f f c o r d o m ( r e p l a c em e n t ! ) p o w e r p a c k , a n l o o m o v e m e n t o t h k e y b o a r d b o u f o u r u s e r s , t h p o w e r r e c e p t a c l e b r o k e i t s o l d e r j o i n t s t o t h P b o a r d . s i m p l e r e m o v a l o t h P a s s e m b l y , l i f t i n g o f t h R s h i e l d a n c a r e f u l r e s o l d e r i n g h a v e c u r e d t h p r o b l e m . H o w e v e r , i c o u l d h a v e b e e n w o r s e , a n t h a t l e a d s m t t h e f o l l o w i n g s u b j e c t .

t r i e d t l o c a t e 7 - p i n D I m a l e b f e m a l e r i g h t a n g l e a d a p t e r s oc o u l d l e a d m p o w e r c a b l e o u t t h e r e a r o t h b o a r d . T h i s i d e ac a r r i e d o v e r t a l s o t r y i n g t s o u r c e a a n g l e a d a p t e r f o t h r e a rs e r i a l r e c e p t a c l e o m 8 0 p r i n t e r ( t h e c a b l e i n t e r f e r e s w i t h t h p a p e r f e e d ) . M i n t e n t i o n w a t f a s t e n t h e s e t t h e c a s e s s o f l e xl o a d s w o u l d b t a k e n b t h e a s i l y r e p a i r e d c o r d s .

c o u l d n o f i n d s u p p l i e r i n t h i s a r e a ( 2 5 0 k o u o V a n c o u v e r ) .C o u l d y o s u g g e s t s u p p l i e r o t h e f o l l o w i n g i t e m s w o u l d l i k e t op u r c h a s e : r i g h t a n g l e D I N m / f a d a p t e r s ; l o n g e r s e r i a l c o r d s o m / s e r i a l c o r d e x t e n d e r s ; a s i m p l e i n e x p e n s i v e m o d e m .

D o u g H u r d , P e n t i c t o n , B r i t i s h C o l u m b i a

N e f a r i o u s p l o t s : a w o n d e r i n g i a n y o n e h a n o t i c e d a n b u g si t h 1 5 2 0 p l o t t e r w h e n a t t e m p t i n g t p l o t i n r e l a t i v e c o o r d i n a t e s .

I s e e m s t h a t w h e n t h p e c a r r i a g e i a c e r t a i n ( h o r i z o n t a l )p o s i t i o n s , t h f i r s t ' j s u b - c o m m a n d a f t e r a s e n d s t h p e o f t t h e a b s o l u t e o r i g i n i n s t e a d . T c u r e t h i s , i i n e c e s s a r y t i n s e r t t h a p p a r e n t l y r e d u n d a n t s u b c o m m a n d P R I N T # 1 , " R " , 0 , 0 , a f t e rP R I N T S , " I " .

T h 1 5 2 0 s e e m s t b r a t h e r u n p o p u l a r p e r i p h e r a l a n h a v e n ' tc o m e a c r o s s a n o t h e r u n i t t t e s t w h e t h e r a l h a v e t h i s f a u l t o j u s tm i n e .

M i c h a e l S e m a n , S o u t h P e r t h , W e s t e r n A u s t r a l i a

Y e t a n o t h e r r e q u e s t f o U r d u s o f t w a r e : h a v e b e e n r e g u l a rs u b s c r i b e r t T h T r a n s a c t o r f o t h l a s t t w y e a r s . h a v e o w n e df a i t h f u l C - 6 4 f o t h l a s t f o u r y e a r s ! h a v e r e c e n t l y s e e n a A r a b i cv e r s i o n o w o r d p r o c e s s o r t h a t i o c a r t r i d g e t h a t c o n v e r t s t h C - 6 4 t a A r a b i c l a n g u a g e c o m p u t e r .

a i n t e r e s t e d t k n o w i t h e r e i a n s u c h s o f t w a r e f o t h U r d ul a n g u a g e a v a i l a b l e ? w o u l d b g r a t e f u l t a n T r a n s a c t o r r e a d e r sw h c o u l d p r o v i d e m w i t h i n f o r m a t i o n o s u c h a p r o d u c t .

M S h a r i f B u t t , M a k k a h , S a u d i A r a b i a

C - 6 4 N u m e r i c s : e n j o y e d t h ' e x t r a ' l a n g u a g e s i s s u e , e s p e c i a l l yt h b e n c h m a r k s .

W h a t n u m e r i c c a l c u l a t i o n s o f t w a r e e n v i r o n m e n t s e x i s t f o r C o m o d o r e 6 4 A n p u b l i c d o m a i n s t u f f ?

T h " A p p l e N u m e r i c s m a n u a l " ( I S B N 1 7 7 4 1 - 2 A d d i s o n - W e s l e y )d e s c r i b e s S A N E , t h S t a n d a r d A p p l e N u m e r i c s E n v i r o n m e n t ,w h i c h r u n s o t h 6 5 0 2 m i c r o p r o c e s s o r i a s s e m b l y l a n g u a g e . H a s o m e t h i n g l i k e t h i s b e e n w r i t t e n f o C o m m o d o r e s y s t e m ?

" I n t e r a c t i v e S i m u l a t i o n L a n g u a g e " ( I n t e r a c t i v e M i n i S y s t e m s I n c . )w i t h t h " I S L M P 3 " c o m p i l e r i a v a i l a b l e f o C o m m o d o r e 6 4 I i n c l u d e s m o d u l e s f o s o l v i n g n o n - l i n e a r d i f f e r e n t i a l e q u a t i o n s .

b o u g h t s o m e t h i n g f r o m D y n a c o m p w r i t t e n i B A S I C w i t h n e r r o r t r a p p i n g a n c l u m s y p l o t t e r r o u t i n e s f o C 6 4 . R u n s , b u t n o tw h a t I ' h o p e d t o f i n d .

E d w a r d C o n n o r s , F r e d e r i c k , M a r y l a n d

R e m o t e l i n e f e e d s : h a v e e n j o y e d T h T r a n s a c t o r f o m a n yi s s u e s , e s p e c i a l l y N e t w o r k i n g a n d C o m m u n i c a t i o n s . T h p r o g r a m

w o u l d l i k e t o r e f e r t i R e m o t e 6 4

A f t e r c h a n g i n g 1 t i n l i n e 1 0 0 0 t g i v e f u l l d u p l e x t r a n s m i s s i o n ,t h i s b r o u g h t m n o n - C o m m o d o r e t e r m i n a l t l i f e a n c a i n t e r a c tw i t h m 6 r e m o t e l y .

T h o n l y p r o b l e m i t h a t m r e m o t e t e r m i n a l e x p e c t s a l i n e f e e d( c h r $ ( 1 0 ) ) , a n u n l e s s m p r o g r a m s a r m o d i f i e d t g i v e o n e , t h et e r m i n a l w i l l j u s t w r i t e o v e r t h s a m e l i n e . P r o g r a m a n d i r e c t o r yl i s t s s e e m i m p o s s i b l e .

I t h e r e a s i m p l e m e t h o d t s e n d l i n e f e e d a f t e r c a r r i a g e r e t u r nb m o d i f y i n g R e m o t e 6 4

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

T i R a y w o r t h , K e n t v i l l e , N o v a S c o t i a

P u a w a y t h o s e s l e e p i n g p i l l s , T i m , a n a d t h f o l l o w i n g l i n e s t ot h R e m o t e 6 s o u r c e f i l e :

T h T r a n s a c t o r 1 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 15/84

1 0 7 5 p h 1 0 8 5 p l 1 0 8 6 c m p # 1 31 0 8 7 b n 1 0 8 8 I d # 1 1 0 8 9 j s n o r m o u t

K e r n a l r e v i s i o n r e v i s i o n : I a l m o s t b r o u g h t t e a r s t m e y e s t s e T o n y D o t y ' s a r t i c l e s ' A u t o D e f a u l t f o t h C 6 4 ' i V o l u m e 6 I s s u e 1 N o o s a d n e s s , t h o u g h t h t w ' f i x e s ' h d e s c r i b e s c u r et w o t h m o s t a g g r a v a t i n g ' f e a t u r e s ' o f t h C 6 4 . h a v e b e e nr u n n i n g m o w E P R O M K e r n a l r e v i s i o n f o t w y e a r s n o w ,i n c o r p o r a t i n g n o t o n l y t h o s e r e v i s i o n s b u n u m b e r o o t h e r s .H o w e v e r , a t h i s s t a g e o f f e r t w p o i n t s o c o m m e n t o T o n y ' sa r t i c l e .

1 T h d e f a u l t d e v i c e n u m b e r o c c u r s n o t o n l y a $ D b u a l s o a $ E 2 2 8 , t h l a t t e r a f f e c t i n g t h K e r n a l O P E N . a n o t s u r e o t h i m p l i c a t i o n s o l e a v i n g t h i s a 1 b u t b s u r e c h a n g e d i a n y w a y .

2 U s o t h R U k e ( i . e . s h i f t e d R U N / S T O P ) l e a v e s t h e t e x t i t h i n p u t b u f f e r . ' n o r m a l ' B A S I C p r o g r a m w i t h G E o I N P U Tf r o m t h k e y b o a r d b e f o r e a n o t h e r I / w i l l f i n d t h i s t e x t u n l e s sc l e a r e d b P O K E 1 9 8 , 0 .

T a k i n g T o n y ' s p o i n t o d e f a u l t d e v i c e o n s t e p f u r t h e r , f o u n d t h a to v e r 9 p e c e n t o f l o c a l C 6 o w n e r s , a n e v e n m o r e a m o n g n o n -g a m e r s , d n o u s c a s s e t t e a a l l ! A s o n e o t h a t l a r g e m a j o r i t y ,s o m e 1 . 8 K o K e r n a l w a l i b e r a t e d b d e c l a r i n g d e v i c e a i l l e g a l ,a n i n t e r c e p t i n g a l a t t e m p t s t r e f e r e n c e i t T h i s p e r m i t t e d t h ef l e x i b i l i t y t c a r r y o u t s o m e r a t h e r e x t e n s i v e m o d i f i c a t i o n s , i n c l u di n i n t e g r a t i o n o t h D O M a n a g e r i t h e K e r n a l , t h e r e b y a v o i di n s o m e i n c o m p a t i b i l i t y p r o b l e m s a n d s a v i n g t h e h a s s l e o l o a d i n g a e a c h p o w e r - u p .

W h i l e o n t h e s u b j e c t o t h D O m a n a g e r , i i i n t e r e s t i n g t c o n s i d e r t h e i m p a c t o t h C H R G E T - w e d g e t e c h n i q u e . I e f f e c t , a l i n p u t , i n c l u d i n g f r o m d i s k , i s c a n n e d b y a d d i t i o n a l c o d e d e s i g n e dt i n t e r c e p t D O c o m m a n d s . T h r e s u l t i n g d e g r a d a t i o n o a I / O -b o u n d p r o g r a m i m a s s i v e . A q u i c k s o l u t i o n , a l w a y s d i s a b l e t h D O m a n a g e r ( Q b e f o r e r u n n i n g y o u r p r o g r a m s i t h e y a r h e a v yo d i s k i n p u t . I c a a l w a y s b r e s u s c i t a t e d w i t h S Y c a l l ,a l t h o u g h t h i s i a i n t r o v e r t e d p r o c e d u r e t h C H R G E T c o d e i b e i n g e x e c u t e d w h e n t h S Y S e d c o d e i c h a n g i n g t h C H R G E Tc o d e ! T h i s c o r r e c t l y r e i n s t a t e s t h w e d g e , b u i a l s o r e s u l t s i S Y N T A X E R R O R , a l t h o u g h t h i s i o n i m p o r t a n c e u n l e s s y o i n t e n d e d t C O N T i n u e t h p r o g r a m t h e r r o r b l o c k s c o n t i n u at i o n . S u c h w e d g e t e c h n i q u e s a r e ' q u i c k a n d i r t y ' . T h e l e g a n ta p p r o a c h i t i n t e r c e p t t h e r r o r h a n d l e r v i t h $ 0 3 0 0 v e c t o r , a n c h e c k f o v a l i d D O c o m m a n d s b e f o r e t r e a t i n g a s g e n u i n e e r r o rt h s a m e a p p r o a c h a i u s e d f o m a n y B A S I C e x t e n s i o n s .

P e t e r M o r g a n , L e s m u r d i e , W e s t e r n A u s t r a l i a

E a v e s d r o p p i n g o n m o d e m s : P l e a s e l e m t a k e t h i s o p p o r t un i t y t t h a n k y o f o t r u l y i n f o r m a t i v e m a g a z i n e . M a n y o m p r o j e c t s , p r o g r a m s a n m o s t o m e x p e r i e n c e i d i r e c t l y r e l a t e d t t h a r t i c l e s y o h a v e p u b l i s h e d .

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

u s P o c k e t M o d e m a n t e r m i n a l p r o g r a m c a l l e d D a r k T e r mo m C 6 4 . B o t h t h m o d e m a n t h e t e r m i n a l p r o g r a m h a v ea u t o d i a l c a p a b i l i t y , b u t h e y a r u n a b l e t s e n s e b u s y s i g n a l ,r i n g i n g p h o n e , o a a n s w e r e d v o i c e s i g n a l . T h i s m e a n t t h a t h a t m o n i t o r t h c a l l b h o l d i n g t e l e p h o n e t m e a r . M a n y a r e t h eh e a d a c h e s c a u s e d b a d e t e c t e d c a r r i e r . h a v e o v e r c o m e t h i sa n n o y i n g p r o b l e m w i t h t w i t e m s f o u n d i l o c a l R a d i o S h a c ks t o r e . T h f i r s t i c a l l e d P h o n e P i c k u p C o i l , p a r t n u m b e r 4 4 - 5 3 3 ;t h s e c o n d i c a l l e d a A u d i o A m p / S p e a k e r , p a r t n u m b e r 2 7 7 -1 0 0 8 .

T h p h o n e p i c k u p c o i l i n o r m a l l y c o n n e c t e d t t a p e r e c o r d e ra n t h e n f a s t e n e d t t h t e l e p h o n e h a n d s e t v i r u b b e r s u c t i o nc u p , t a l l o w p h o n e c o n v e r s a t i o n s t b r e c o r d e d . H o w e v e r , w h e nc o n n e c t e d t t h A u d i o A m p / S p e a k e r , t h p h o n e c o n v e r s a t i o n sc a n b e h e a r d w i t h o u t l i s t e n i n g t t h t e l e p h o n e h a n d s e t . N o w , i t h p i c k u p c o i l i p l a c e d o t h f r o n t r i g h t c o r n e r o t h P o c k e tM o d e m c a s e , a n t h m o d e m i t u r n e d o n l i n e , t h s p e a k e r w i l lb r o a d c a s t t h d i a l t o n e , o t h t e l e p h o n e c o n v e r s a t i o n , j u s t l i k e i d i w i t h t h e t e l e p h o n e . T h i s m e a n s t h a t c a n o u s m y m o d e ma n t e r m p r o g r a m w i t h o u t h a v i n g t h o l d m t e l e p h o n e t m e a r .

u s t h a b o v e s e t u p e v e r y t i m e u s m m o d e m . W i t h i c a c h e c k f o f o l l o w i n g :

1 d i a l t o n e w h e n f i r s t t u r n o m m o d e m .2 L i s t e n t h o m y m o d e m d i a l s t h p h o n e n u m b e r .3 L i s t e n f o t h p h o n e t r i n g o t h e o t h e r e n d , o r k n o w i m m e d i

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

m c o m p u t e r h a a n s w e r e d i t 5 I d o n ' t g e a n a n s w e r a f t e r t h r e e r i n g s h a n g u a n c h e c k t h

n u m b e r .6 I s h o u l d d i a l v o i c e n u m b e r w i l l h e a r t h e m o t h s p e a k e r

a n c a t h e n p i c k u t h p h o n e a n e x p l a i n o r a p o l o g i z e .7 W h e n a u p l o a d i n g o d o w n l o a d i n g , l e a v e t h e s p e a k e r o

a n l i s t e n t o t h e d a t a b e i n g t r a n s f e r r e d . h a v e f o u n d o n u m b e r o o c c a s i o n s , w h e n m c o m p u t e r m y s t e r i o u s l y l o c k e du w h i l e u p l o a d i n g , t h a t t h p r o b l e m w a c a u s e d b t h B B h a n g i n g u p o n m e . W i t h o u t t h p i c k u p c o i l a n s p e a k e r s e t u p ,o h o l d i n g t h p h o n e t m e a r , n e v e r w o u l d h a v e f i g u r e d o u t h c a u s e .

h a v e i n s t a l l e d t h p i c k u p c o i l s e m i p e r m a n e n t l y o n m P o c k e tM o d e m w i t h a d a o h o t g l u e ( C r a z y G l u e o E p o x y w i l l a l s o w o r k ) .T h H o t G l u e c a n b e p e e l e d o f f , a n i l e a v e s n o m a r k s i s h o u l dd e c i d e t s e l l m m o d e m . A l s o i n s t e a d o r e m o v i n g t h r u b b e rs u c t i o n c u t u r n e d t h c o i l u p s i d e d o w n : t h c o i l w i l l s t i l l w o r k ,a n o n d a m a f i g u r e o u t a u s f o t h s u c t i o n c u p b e h i n d t h c o m p u t e r .

T h c o i l a n s p e a k e r s h o u l d w o r k o a n t y p e o m o d e m . C o n n e c tt h c o i l t o t h a m p / s p e a k e r , t u r n o t h m o d e m a n p a s s t h e c o i lo v e r t h m o d e m c a s e u n t i l t h d i a l t o n e i h e a r d . I w i l l b n e c e s s a r y t e x p e r i m e n t t f i n d t h e l o u d e s t s i g n a l a n t h e n j u s tg l u e t h e c o i l i n t h a t s p o t . T h b e a u t y t o t h i s s e t u p i t h a t n p e r m a n e n t m o d i f i c a t i o n s a r n e c e s s a r y t t h c o m p u t e r , m o d e mo p h o n e l i n e s . A l s o , t h e r e i n w a y o c a d a m a g e t h c o m p u t e r o m o d e m , o m e s s u y o u r p h o n e s e r v i c e . T h o n l yd i s a d v a n t a g e t t h s y s t e m i t h a t t h c o i l w i l l p i c k u h u i p l a c e d t o o c l o s e t t h m o n i t o r o T V

T h T r a n s a c t o r 1 M a 1 9 6 7 : V o l u m e 7 I s s u e 0

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 16/84

N o t e : I y o a r c u r i o u s a b o u t w h p e o p l e h a v e t r o u b l e w i t h d i s kd r i v e s a n D a t a s e t t e s w h e n p l a c e d o t h l e f t s i d e o t h e m o n i t o r ,j u s t p a s s t h c o i l b t h l e f t s i d e o y o u r m o n i t o r a n l i s t e n . w o u l ds u g g e s t y o u k e e p t h v o l u m e t u r n e d d o w n !

P e r h a p s t h e n e a t e s t t h i n g a b o u t t h i s p r o j e c t i t h p r i c e . T h p i c k u p c o i l c o s t s $ 2 . 1 9 a n t h A m p / S p e a k e r i w o r t h $ 1 5 . 9 5 a R a d i o S h a c k . T h i s s p e a k e r a n c o i l m o d i f i c a t i o n i l o l i k e m F a s t l o a d C a r t r i d g e : n o t h a t h a v e u s e d i t w o n ' t l e a v e h o m ew i t h o u t i t

h o p e t h a t t h i s p r o j e c t w i l l p r o v e a s u s e f u l t y o a i h a t m e K e v i n L e m o n , S t C a t h a r i n e s , O n t a r i o

I E E E f o r C - 1 2 8 : I n r e s p o n s e t y o u r q u e r y i t h M a r c h ' 8 i s s u ea b o u t w h e t h e r t h e r e i a I E E E i n t e r f a c e f o t h C - 1 2 8 : t h e r e i s . t h e Q u i c k s i l v e r 1 2 8 f r o m S k y l e s E l e c t r i c . h a v e b e e n u s i n g o n o t h e s e f o a b o u t t w m o n t h s o C - 1 2 8 e q u i p p e d w i t h a H e w l e t t -P a c k a r d T h i n k j e t p r i n t e r a n 7 4 7 0 A t w p e p l o t t e r . T h d e v i c ep l u g s i n t o t h e x p a n s i o n p o r t a n r e q u i r e s r e p l a c e m e n t o R O a n a t t a c h i n g a j u m p e r c l i p i n s i d e t h c o m p u t e r . A i m p o r t a n tf e a t u r e i t h a t t h i s u n i t a l s o w o r k s w i t h t h C - l 2 8 r u n n i n g i C - 6 4m o d e .

U n l i k e t h e o l d e r B u s C a r d I f o t h C - 6 4 , t h i s i n t e r f a c e d o e s n o h a v e b u i l t - i n m o n i t o r o e n h a n c e d D O c o m m a n d s . A l t h o u g hn o n e e d e d f o 1 2 m o d e , t h e y a r r e a l l y m i s s e d i C - 6 4 m o d e . I a l s o d o e s n o h a v e p a r a l l e l p r i n t e r o u t p u t .

A a d v e r t i s e d , t h e Q u i c k s i l v e r s e e m s t b f u l l y t r a n s p a r e n t .H o w e v e r , o n e b u e x i s t s i f i t i t b u s e d i C - 6 4 m o d e . I y o t u r no t h C - 1 2 8 a n d ' G O 6 4 i m m e d i a t e l y , y o w i l l n o b a b l e t a c c e s s t h e I E E E b u i C - 6 4 m o d e . T h s o l u t i o n i t o p e n a n dc l o s e a n y I E E E d e v i c e w h i l e p a s s i n g t h r o u g h C - 1 2 8 m o d e . T h i sc o u l d b e h a n d l e d w i t h a n a u t o b o o t d i s k r o u t i n e i n f i n a l v e r s i o n s o a p p l i c a t i o n p r o g r a m s .

J o h n A S p e n c e r , E d w a r d s v i l l e , I l l i n o i s

f o o t i i t h p o o r s u p p o r t t h e y h a v e g i v e n t h e i r d i s t r i b u t o r s . T w l o c a l o u t l e t s h a v e s a i d t h a t t h e y w i l l n e v e r d e a l w i t h C o m m o d o r ea g a i n . r e a l i z e t h a t t h i s i h o l d o v e r f r o m t h T r a m i e l e r a , b u t h c u r r e n t s u p e r s t r u c t u r e a C o m m o d o r e d o e s n o s e e m t h a v ea d d r e s s e d t h i s p r o b l e m a d e q u a t e l y . A l s o , C o m m o d o r e s e e m i n g l yd o e s n o k n o w h o t w i t h p r e s s . T h e P C c a u g h t o o n l yb e c a u s e o t h f a m i l i a r t h r e e i n i t i a l s . T h c o m p u t e r p r e s s f o l l o w e d

f a m i l i a r t r a i l a n i e s t a b l i s h e d " s t a n d a r d " w i t h a p o o r l yd e s i g n e d m a c h i n e . B u s u c c e s s b r e e d s s u c c e s s a n t h e p r e s ss e e m s i n t e n t o b u r y i n g t h n a m e C o m m o d o r e . G r a n t e d t h a t t h er u m o u r e d 1 5 0 , 0 0 0 i n s t a l l e d s y s t e m s m a n o e x c i t e s o f t w a r ed e v e l o p e r s , s o m e g o o d a n d e f f e c t i v e P e f f o r t o t h p a r t o C o m m o d o r e d e v o t e d t t h s e e m i n g l y h o s t i l e p a r t o t h c o m p u t e rp r e s s c o u l d e f f e c t d r a s t i c c h a n g e . I w o u l d n o b e a s y b u t i c o u l db v i t a l .

O n f o o t n o t e t m f i r s t p o i n t : t h e r e c e n t r u m o u r t h a t C o m m o d o r eh a a b a n d o n e d t h A m i g a 1 0 0 0 a o t h f i r s t o t h y e a r i f a v o u ro t h " 2 0 0 0 " a n " 5 0 0 " d o e s n o t h i n g t i n s p i r e c o n f i d e n c e i t h o s e o u s w i t h t h e 1 0 0 0 . T h i s t a c t i c s e e m s t h a v e b e e n t a k e n o u o I B M ' s m a n u a l o d e s e r t i n g t h e l o y a l c u s t o m e r s .

R e v . F r J P a u l M o r r i s , L o n g B e a c h , C a l i f o r n i a

H a v i n g e x p e r i e n c e d i o u r s e l v e s , w s y m p a t h i z e w i t h a n y o n e g o i n gt h r o u g h t h e v e r t i g o y o g e w h e n y o m o v e u t t h A m i g a f r o mt h e 8 - b i t m a c h i n e s . B u a i h a p p e n s , s e n d i n g d i r e c t o r y t t h p r i n t e r i e a s y a n n a t u r a l o t h A m i g a : t y p i n g d i > p r t : o p s h o u l d d i t T r i y o w o m i s s t h o l C o m m o d o r e s y n t a x f o l o n g .

A w g t o p r e s s , t h e r e ' s s t i l l n o f f i c i a l w o r d o t h n e A m i g am o d e l s y o m e n t i o n , s o i t ' s t o e a r l y t s a w h e t h e r t e x p e c tc o m p a t i b i l i t y p r o b l e m s . H o w e v e r , y o c a t a k e h e a r t f r o m t h f a c tt h a t t h e A m i g a ' s o p e r a t i n g s y s t e m s o f t w a r e i d e s i g n e d f r o m t h g r o u n d u p w i t h f l e x i b i l i t y a n e x p a n d a b i l i t y i m i n d i i l i g h ty e a r s a h e a d o a l o t h e r C o m m o d o r e c o m p u t e r s i n t h i s r e s p e c t . I t h o l d a y s a C o m m o d o r e , ' c o m p a t i b i l i t y ' a n ' a n a l p h a b e t e s 'w e r e c a t c h w o r d s o a b o u t e q u a l c u r r e n c y .

A m i g a m a r k e t i n g : T h a n k y o f o V o 7 I s s u e 5 f i r s t f o t h i n c l u s i o n o f a r t i c l e s o t h A m i g a ; a n s e c o n d f o t h e x c e l l e n tS t a r t A d d r e s s .

A l t h o u g h t h A m i g a a r t i c l e s a r o v e r m h e a d , a l e a s t t h e y a r r e c o g n i t i o n t h a t y o p l a n t s u p p o r t t h m o d e l . a o n o t h o s ew h a r s t i l l t r a p p e d i a 8 - b i t o r i e n t a t i o n i 3 2 - b i t e n v i r o nm e n t . s t i l l w a n t t L o a d a n R u w i t h s i m p l e S h i f t / R u n a n t c a l l u d i r e c t o r y w i t h a c a T d O o r 1 . 1 y e a r n t b a b l e t p r i n td i r e c t o r y o p r o g r a m l i s t i n g w i t h a o p e n 4 , 4 : c m d 4 : ( c a T o l i s t ) : p r i n t # 4 : c l o s e 4 . T h a t w a s o a u t o m a t i c . N o a b e g i n n i n gt m a s t e r c d 1 d i o p a b u c a n n o t g e i t p r i n t e v e n i t y p e d i o p t p r t : A n a s t i r e d o f g e t t i n g s o m e t h i n ga b o u t c o m m a n d l a c k i n g a r e t u r n c o d e a n c a n n o t f i n d a n y t h i n gi t h m a n u a l s o n " r e t u r n c o d e s " ! A n t h m a n u a l s w e r e n o w r i t t e n f o s u c h a I H o a b o u t s o m e a r t i c l e s f o r t h a n a l p h a b e t e si t h A m i g a a u d i e n c e ?

O t h s e c o n d p o i n t , a g r e e w i t h y o u r e d i t o r i a l w h o l e h e a r t e d l y .B u t a n o t h e r w a t h a t C o m m o d o r e h a r e p e a t e d l y s h o t i t s e l f i t h

N n i c h e f o A m i g a : W h a r A m i g a s n o s e l l i n g ? T h s h o r ta n s w e r i t h a t I B M / M S D O i t h b u s i n e s s s t a n d a r d a n t h c h e a p e r b i c o m p u t e r s a r m o r e t h a n a d e q u a t e f o m o s t h o m eu s e s . A m i g a w o u l d b g r e a t f o d e s k t o p p u b l i s h i n g , b u t t h M a a l r e a d y o w n s t h a t t e r r i t o r y .

E x p a n d a b i l i t y ? Y o u ' r e s e l l i n g M e R A b o f o $ 1 0 3 5 , n e a r l yt h p r i c e o t w d r i v e c l o n e . A n y o n e n e e d i n g t h i s m u c h m e m o r yi p r o b a b l y r u n n i n g b u s i n e s s p r o g r a m s a n d w o u l d b b e t t e r o f w i t h D O h a r d w a r e , k l u d g y t h o u g h i i s D i t t o f o S i d e c a r . T p u i a n o t h e r w a y , w h s p e a k E s p e r a n t o t h e n t r a n s l a t e e v e r y t h i n g i n t oE n g l i s h ?

M u l t i t a s k i n g m i g h t b s l e e p e r , b u t a l o o u h a v e t r o u b l e e n o u g hc o n c e n t r a t i n g o n o n e t a s k a t i m e . G r a n t e d , t h e i d e a o h a v i n gs p r e a d s h e e t c h u r n i n g a w a y w h i l e y o w r i t e l e t t e r t y o u r M s o u n d s g o o d o p a p e r . B u s e r i o u s l y f o l k s , w h e n ' s t h l a s t t i m e y o h a t r e c a l c u l a t e t h o r b i t s o a l t h s t a r s a n p l a n e t s ? M o s t r e a lw o r l d s p r e a d s h e e t a p p l i c a t i o n s r u i f e s e c o n d s , e v e n o n t h l o w l y P C .

T h T r a n s a c t o r 1 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 17/84

A t h r i s k o f s o u n d i n g l i k e c u r m u d g e o n , m u s t c o n f e s s t l o a t h i n g o m i c e . T h i s u n f a s h i o n a b l e p r e j u d i c e m a s i m p l y r e f l e c tm u p b r i n g i n g o I B M s a n d C o m m o d o r e b i t s , b u t I ' m n o t s os u r e . M o s t t o o l s t h a t a r e a s y t l e a r n a r e l e s s s a t i s f a c t o r y f o r t h e x p e r i e n c e d u s e r . T o d r a w w h a t m a b a u n f a i r a n a l o g y , a r y o g u y s d o i n g w h o l e l o o p r o g r a m m i n g i B A S I C ?

S w h o ' s l e f t ? T e c h n o f r e a k s a n a r t i s t s . B u s i n e s s e m p i r e s o t h i sm a r k e t a r n o b u i l t . D o n ' t g e m w r o n g . a c k n o w l e d g e t h A m i g a a w i z a r d m a c h i n e , b u r i g h t n o i t ' s s o l u t i o n l o o k i n gf o p r o b l e m .

J i O ' H a r e , V i c t o r i a , B r i t i s h C o l u m b i a

/ ' b i i r o n i c t h a t t h e A m i g a , w h i c h i a r g u a b l y t h m o s t p o w e r f u lm i c r o o t h m a r k e t t o d a y , s h o u l d b e w i d e l y s e e n a h a v i n g n n a t u r a l p l a c e . I t i s e v e n m o r e i r o n i c t h a t i t m o s t r a d i c a l i n n o v a t i o n

m u l t i t a s k i n g s h o u l d b s b a d l y u n d e r v a l u e d . t h i n k i t ' sm i s c o n c e p t i o n t s u p p o s e - a y o u r s p r e a d s h e e t e x a m p l e i m p l i e sy o d t h a t t h e r e i n b e n e f i t t m u l t i t a s k i n g u n l e s s a l t a s k s a r c o n t i n u o u s l y r u n n i n g f u l l b o r e .

P e r h a p s i y o u r l e t t e r t y o u r M y o u w o u l d l i k e t i n c l u d e s o m ej u i c y n u m b e r s a b o u t g o v e r n m e n t w a s t e . N p r o b l e m j u s t s a v ey o u r d o c u m e n t f i l e f r o m y o u r w o r d p r o c e s s o r , e x i t t h p r o g r a m ,l o a d y o u r s p r e a d s h e e t , m a k e y o u r c a l c u l a t i o n , w r i t e d o w n t h n u m b e r s , e x i t t h s p r e a d s h e e t , r e l o a d t h w o r d p r o c e s s o r , r e l o a dt h d o c u m e n t f i l e , a n y o u ' r e r e a d y t g o E a s y ! O r y o c a c l i c kt h w o r d p r o c e s s o r o u t o f t h w a y , d y o u r s p r e a d s h e e t c a l c u l at i o n , t h e n g o b a c k i n t o t h w o r d p r o c e s s o r w i t h a n o t h e r m o u s ec l i c k . E a s i e r !

B u t h a t ' s j u s t s c r a t c h i n g t h e s u r f a c e . T h r e a l v a l u e o t h m u l t it a s k i n g e n v i r o n m e n t m i g h t n o b e c o m e a p p a r e n t t y o u n t i l a f t e ry o u ' v e w o r k e d o t h m a c h i n e f o m o n t h o t w o . A n t h a t ' sw h e n f o s o m e r e a s o n y o h a v e t g b a c k t s i n g l e - t a s k i n gc o m p u t e r f o w h i l e . Y o 1 f i n d i f r u s t r a t i n g a n c o n f i n i n g . B t h i st i m e y o u ' v e b e c o m e u s e d t s l i p p i n g f l u i d l y f r o m o n p r o g r a m t a n o t h e r a n b a c k a g a i n , w i t h a l m o s t t h s a m e e a s e a s y o u rt h o u g h t s s h i f t b e t w e e n t o p i c s , o y o u r h a n d s b e t w e e n t o o l s . A n y o w o n ' t w a n t t g b a c k t m a c h i n e w i t h n a r r o w - m i n d e d ,s e r i a l l y - o r i e n t e d o p e r a t i n g s y s t e m .

P a r t o C o m m o d o r e ' s m a r k e t i n g p r o b l e m i t h a t m u l t i t a s k i n g i h a r d t p r o m o t e . R e a d i n g a b o u t i i s ' t e n o u g h y o h a v e t l i v ew i t h i t a p p r e c i a t e i t t r u e p o w e r . B u t i m e w i l l t a k e c a r e o t h a t ,a n f e y e a r s f r o m n o s i n g l e - t a s k i n g m a c h i n e s m a b j u s tM e s o z o i c c u r i o s i t i e s . T h a t m a o m a n o h e l p t h A m i g a , s i n c eb e i n g t o o e a r l y c a b j u s t a b a a b e i n g t o l a t e , b u i t ' s n o i n c o n c e i v a b l e t h a t i c o u l d e v e n t u a l l y b m o r e s u c c e s s f u l t h a na n y o n e n o i m a g i n e s .

T r a n s B l o o p o r sE P R O M B u r n s :

O u t h a n k s t e v e r y o n e w h s e n t i e r r o r r e p o r t s f o t h U n i v e r s a lE P R O M P r o g r a m m e r a r t i c l e i n V o l u m e 7 I s s u e 0 5 f o l l o w u a r t i c l e a p p e a r s i t h i s i s s u e .

H i - r e s T r a c e U t i l i t y S Y A d d r e s s :

I y o u ' v e h a d a n y s l i g h t d i f f i c u l t i e s w i t h t h e t r a c e u t i l i t y o p a g e 6 o V o l u m e 7 I s s u e s u c h a t h p r o g r a m f a i l i n g t o w o r k y o m a w i s h t c h a n g e t h S Y a d d r e s s i l i n e 1 0 6 0 f r o m 5 2 0 9 6 t 5 2 7 2 3 .A n a l w a y s b o y o u r g u a r d f o s o p h i s t i c a t e d D A T A f i e r s t h a tc a v a l i e r l y a s s u m e t h a t a p r o g r a m ' s s t a r t a d d r e s s i g o i n g t b t h s a m e a i t e n t r y p o i n t .

T h t r a c e u t i l i t y a l s o h a p r o b l e m w i t h v e r s i o n C 6 R O M s t h v e r s i o n t h a t f i l l s c o l o u r R A w i t h t h e b a c k g r o u n d c o l o u r w h e ny o c l e a r t h s c r e e n . T m a k e t h p r o g r a m w o r k p r o p e r l y o t h e s em a c h i n e s , m a k e t h e f o l l o w i n g c h a n g e s :

l i n e 1 8 6 0 : d e l e t e t h l a s t d a t a i t e m ( 1 6 2 )l i n e 1 8 9 0 : d e l e t e t h l a s t d a t a i t e m ( 1 6 9 )l i n e 1 9 0 0 : d e l e t e t h e n t r i e s 1 4 7 , 3 2 2 1 0 , 2 5 F i n a l l y , c r e a t e a n e l i n e :1 8 6 5 d a t a 1 6 9 , 1 4 7 , 3 2 2 1 0 , 2 5 5 , 1 6

I t h a s s e m b l e r s o u r c e c o d e , t h o n l y c h a n g e r e q u i r e d i t r e p o s i t i o n l i n e s 4 8 9 0 a n d 4 9 0 0 t f a l l b e t w e e n l i n e s 4 6 9 0 a n 4 7 0 0 .

U n c o n t r o l l e d S p r i t e B i t s :

D a v i d J o h n s o n o G a n d e r , N e w f o u n d l a n d , r e p o r t s a e r r o r i t h t h i r d e x a m p l e o t h a r t i c l e ' B i t A d d r e s s i n g o S p r i t e C o n t r o l s ' , f r o mV o l u m e 7 I s s u e 2 H s u g g e s t s t h e f o l l o w i n g c h a n g e s :

C h a n g e l i n e t l d x # 5 , i n s t e a d o I d * C h a n g e l i n e t b e d a b b l e , i n s t e a d o b e m a s k o r

T a p e V e r i f i z z l e :

A p p a r e n t l y n o t o m a n y o y o a r m a k i n g u s o t h V e r i f i z e r f o rc a s s e t t e u s e r s t h a t w e ' v e b e e n p u b l i s h i n g f o t h l a s t w h i l e ,b e c a u s e w e ' v e j u s t n o f o u n d o u f r o m s i n g l e l e t t e r t h a t u u n t i lt h i s i s s u e i h a f a t a l e r r o r i t h d a t a s t a t e m e n t i l i n e 1 0 7 0 . T h l a s t n u m b e r i t h a t l i n e s h o u l d b e 2 4 7 i n s t e a d o 2 4 9 . T h a n k s f o s p o t t i n g t h e r r o r g o e s t P h i l H o f f o C h i c o , C a l i f o r n i a .

S l a s h i n g a n P o u n d i n g :

I h i b o o k , T h H o m e C o m p u t e r W a r s , M i c h a e l T o m c z y k r p o r t e d t h a t o n o h i b i g g e s t t r i u m p h s a o n e - t i m e C o m m o d o r em a r k e t i n g e x e c u t i v e w a t h r e p l a c e m e n t o t h s t a n d a r d A s c i ib a c k s l a s h ( c o d e 9 2 w i t h t h e E n g l i s h p o u n d s i g n . T h i s a s t o u n d i n gi n n o v a t i o n w a f i r s t s e e n o t h V I 2 0 a n d w a s i n h e r i t e d b C o m m o d o r e ' s s u b s e q u e n t 8 - b i t m a c h i n e s . W e l l , m a y b e T o m c z y kh a a p o i n t a n m a y b e h d i d n ' t , b u t a s i d e e f f e c t o t h s w i t c h i t h a t w h a v e t b e x t r a c a r e f u l w h e n w e p r i n t a a r t i c l e w i t h t h ep o u n d s i g n i i t T h t y p e s e t t i n g m a c h i n e d o e s n ' t k n o w C o m m od o r e f r o m c o c o n u t s , a n c o d e 9 c o m e s o u a s b a c k s l a s h e v e r yt i m e ; t g e t h p o u n d s i g n w h a v e t m a n u a l l y s u b s t i t u t ec h a r a c t e r f r o m s p e c i a l f o n t . A l l o f w h i c h e x p l a i n s w h t h ' C o m m o d o r e 6 2 3 R A D i s k ' a r t i c l e i V o l u m e 7 I s s u e 5 u s e da i n c o r r e c t b a c k s l a s h b o t h i t h t e x t o f t h a r t i c l e a n i l i n e 1 8 o t h p r o g r a m , i n s t e a d o t h c o r r e c t B r i t i s h p o u n d s i g n . T h a n k s t J a c k R F a r r a h o C i n c i n n a t i , O h i o , a n d J a m e s C S a n d e r s o K n o x v i l l e , T e n n e s s e e f o p o i n t i n g o u t t h e e r r o r .

T h T r a n s a c t o r 1 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 18/84

S m i l e ! Y o u ' r e o R L E ! C h r i s t o p h e r D u n nC h i c a g o , I l l i n o i s

R L w a f i r s t i m p l e m e n t e d o n C o m p u S e r v e t h a n d l e d i s p l a yo t h N a t i o n a l W e a t h e r S e r v i c e r a d a r w e a t h e r m a p s . .

B u F i r s t , W o r d F r o m O u r S p o n s o r . . .

O u r e g u l a r T e l e C o l u m n d o e s n o a p p e a r t h i s i s s u e a s u s u a l .I n s t e a d , w h a v e j u s t f e n o t e s h e r e ( s o r r y f o t h i n t e r r u p t i o nC h r i s ) . T e l e C o l u m n w i l l b b a c k i t h n e x t T r a n s a c t o r , b u p a r to w h a t w i n t e n d e d f o t h T e l e C o l u m n t h a t i s n ' t h e r e w a t h c o m m a n d s e q u e n c e f o c o n f i g u r i n g t h D a t a P a c n e t w o r k t a l l o w s u c c e s s f u l u p / d o w n l o a d s o C o m p u S e r v e . H o w e v e r ,R a n j a n B o s e t h o u g h t f u l l y i n c l u d e d t h i s a t h e n o f h i s o n l i n es e r v i c e s c o m p a r i s o n ( s e e n e x t a r t i c l e ) .

T h C o m m o d o r e " M a g N e t " i t h t e n t a t i v e n a m e f o t h e o n l i n em a g a z i n e s e c t i o n o t h C o m m o d o r e N e t w o r k o n C o m p u S e r v e .S f a t h e r e ' s b e e n m i x e d r e s p o n s e o v e r t h e c h o i c e o n a m e ,r a n g i n g f r o m " t e r r i f i c m a r k e t i n g i d e a " , t " c a t c h y " , a n d o nt h r o u g h " t o o c u t e " . S o , b e i n g t h d e m o c r a t i c b l o k e s t h a t w a r e ,t h f l o o r i c u r r e n t l y o p e n t s u g g e s t i o n s . I y o h a v e o n e , o i y o l i k e " M a g N e t " , p l e a s e l e u k n o w . Y o c a c a l l , w r i t e , o e v e n m e s s a g e u o C o m p u S e r v e ( e n t e r G C B M N E T a n c h o o s e C B M C O M o C B M P R G ) .

B u i l d i n g t h o n l i n e m a g a z i n e s e c t i o n f o C B M N E T i l i k el e a r n i n g n e l a n g u a g e - a n t h f i r s t p r o g r a m y o w r i t e i d a t a b a s e ! H o w e v e r , p r o g r e s s i b e i n g m a d e a n a r t i c l e s f r o mt h i s i s s u e w i l l b a m o n g t h f i r s t t a p p e a r ! W e ' r e a l s o c o n s i d e ri n a s u b - s e c t i o n o " O n l i n e E x c l u s i v e s " . W o f t e n r e c e i v ea r t i c l e s c o n t a i n i n g p r o g r a m s t h a t a r j u s t t o b i t p u b l i s h i t h m a g a z i n e . T h e s e w o u l d b i d e a l i a O n l i n e E x c l u s i v e ss e c t i o n s i n c e " e n t e r i n g t h e p r o g r a m b h a n d " i n l o n g e rc r i t e r i a f o r d e e m i n g a a r t i c l e u n a c c e p t a b l e . W t o o k o u o u b o o f u n u s e d s t u f f a n f o u n d s e v e r a l w c o u l d a l r e a d y p u t t u s f o r t h i s i d e a . T h e r e ' s o n l y o n p r o b l e m o u r a u t h o rp a y m e n t s b u d g e t c a n ' t h a n d l e t h e l o a d o f t h i s e x t r a m a t e r i a l ,b u i f r e e T - s h i r t o s o m e o t h e r g i f t w o u l d s u f f i c e , w e ' l l b h a p p y t o b l i g e .

A u t h o r s w h s u b m i t t e d m a t e r i a l t h a t w o u n d u i t h u n u s e db o p r o b a b l y k n o w w h y o a r e , a n w e ' l l b g e t t i n g i t o u c hw i t h y o s h o r t l y t s e h o t h i d e a m i g h t a p p e a l t y o u .N a t u r a l l y , y o c a f e e l f r e e t o d e c l i n e a n y o u r m a t e r i a l w i l l b r e t u r n e d . F u r t h e r , w e ' v e a l r e a d y r e t u r n e d m a n y a r t i c l e s t h a tm i g h t a l s o h a v e f i i n t o t h i s c a t e g o r y , a n t h e r e a r u n d o u b te d l y o t h e r s w i t h a r t i c l e s t h a t w o u l d m e r i t a p l a c e i t h i s" t e l e s p o t l i g h t " . S o i y o u ' d l i k e t r e - s u b m i t t h e m , t h e y ' l l b c o n s i d e r e d f o O n l i n e E x c l u s i v e s .

C h r i s t o p h e r a n P a m e l a D u n n

O k w h a t i R L E ? I s t a n d s f o R u L e n g t h E n c o d i n g , a n i s y s t e md e v e l o p e d a C o m p u S e r v e t e n a b l e t h e m t t r a n s m i t h i g h r e s o l u t i o ng r a p h i c i m a g e s t d i f f e r e n t b r a n d s o c o m p u t e r s .

h i r e s i m a g e i m a d e u o p i x e l s , a m o s t o u k n o w , t h a t c a n b e s e t d i f f e r e n t c o l o r s t f o r m t h p i c t u r e o o u s c r e e n . T h i m a g e c a n b eg e n e r a t e d i v a r i o u s w a y s , m o s t o f t e n w i t h d r a w i n g p r o g r a m o s o m e s o r t , o w i t h d i g i t i z e r w h e n c o n v e r t i n g r e a l w o r l d i m a g e .T h i s i m a g e c a n t h e n b s t o r e d t d i s k f o r r e c a l l l a t e r . D i f f e r e n tc o m p u t e r s u s d i f f e r e n t f o r m a t s f o r t h i s s t o r a g e , a n e v e n d i f f e r e n tp r o g r a m s o t h s a m e c o m p u t e r u s e i n c o m p a t i b l e f o r m a t s f o s t o r i n gi m a g e s . J u s t a b o u t t h o n l y c o m m o n i t e m w a t h a t a l c o m p u t e r s u s e dp i x e l s t f o r m t h e s c r e e n i m a g e . R L i w a o e n c o d i n g t h e s c r e e ni m a g e s t h a t t h o r i g i n a l p i c t u r e m a b v i e w e d o m o s t d i f f e r e n tt y p e s o c o m p u t e r s .

I T h B e g i n n i n g . . .

R L w a f i r s t i m p l e m e n t e d o n C o m p u S e r v e t h a n d l e d i s p l a y o t h N a t i o n a l W e a t h e r S e r v i c e r a d a r w e a t h e r m a p s . I y o w e r e l u c k ye n o u g h , b a c k f e y e a r s a g o , t h a v e a t e r m i n a l p r o g r a m t h a t h a t h R L d a t a d e c o d e r b u i l t i n t h e n y o c o u l d d i r e c t l y v i e w t h e s e h i r e sm a p s o y o u r s c r e e n . I y o d i d n o t h a v e R L c a p a b i l i t y , a l y o u s a ww a g i b b e r i s h . A t h f o r m a t o R L f i l t e r e d d o w n t v a r i o u s p r o g r a mm e r s , p r o g r a m s w e r e w r i t t e n t d e c o d e t h d a t a . S o m e w e r e b u i l t i n t ot e r m i n a l p r o g r a m s , s o m e w e r e m e a n t t b u s e d o f l i n e t o d e c o d ec a p t u r e d d a t a .

T h T r a n s a c t o r 1 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 19/84

M o r e R L s e l e c t i o n s w e r e a d d e d t C o m p u S e r v e , U s e r s P i c t u r e s ,i m a g e s o t h F B I ' s 1 M o s t W a n t e d , a n m o r e r e c e n t l y , i m a g e s o M i s s i n g C h i l d r e n . H o w e v e r , a l o t h e s e i m a g e s w e r e b e i n g g e n e ra t e d a C o m p u S e r v e , u s e r s t h e m s e l v e s w a n t e d t t r a n s l a t e t h e i ro w w o r k s o a r i n t o R L E . S t e p i t h w i z a r d s a g a i n , a n s o o np r o g r a m s p o p p e d u p t t r a n s f e r h i r e s i m a g e s o n y o u r c o m p u t e ri n t o R L f i l e s . T h e s e f i l e s c o u l d t h e n b e u p l o a d e d t d a t a b a s e f o a l t v i e w , ( a s s u m i n g t h e y h a a R L d e c o d e r o c o u r s e . )

S p e c i f i c a t i o n s

T h f o r m a t o R L i r e a l l y q u i t e s i m p l e . I h a t b s i m p l eb e c a u s e i h a t b u n d e r s t a n d a b l e b w i d e r a n g e o c o m p u t e r s .F i r s t o f f , a l R L i m a g e s a r i m o n o c h r o m e . w o n t s a y b l a c k a n w h i t e , b e c a u s e y o c o u l d d i s p l a y R L i m a g e i b l u e a n y e l l o w ,o a n 2 c o l o r s i y o l i k e , b u t t h e R L d a t a o n l y t e l l s y o i p i x e lo y o u r s c r e e n i o o o f f , n o w h a t c o l o r i i s T h e ' s t a n d a r d i R L f i l e s i B l a c k b a c k g r o u n d ( P i x e l o f f ) a n w h i t e f o r e g r o u n d ( p i x e lo n ) .

T h s c r e e n s i z e f o a R L i m a g e i 2 5 p i x e l s a c r o s s a n 1 9 d o w n . T h i s w a c h o s e n b e c a u s e i w a t h r e s o l u t i o n o t h s c r e e no t h o r i g i n a l R a d i o S h a c k C o l o r C o m p u t e r , w h i c h w a s w i d e l y i u s w h e n R L w a b e i n g d e v e l o p e d . O t h C 6 4 , t h e s c r e e n s i z e i 3 2 0 b y 2 0 0 , s o a R L w i l l n o q u i t e f i l l t h e s c r e e n . b o r d e r i l e f to t h l e f t , r i g h t a n b o t t o m .

I y o l o o k a h i r e s i m a g e o y o u r s c r e e n , a n s t a r t i n g i t h u p p e r l e f t c o r n e r , c o u n t e d t h n u m b e r o p i x e l s t h a t w e r e o o n c o l o r , t h e n w h e n y o h i p i x e l o n e c o l o r , s t a r t n e c o u n t ,y o w o u l d h a v e a i d e a o w h a t R u L e n g t h E n c o d i n g i s R L i t h c o u n t o d a r k a n l i g h t p i x e l s a c r o s s a l i n e o t h s c r e e n . R L d a t a i s e n t i p a i r s o A S C I I c h a r a c t e r s . T h f i r s t t r a n s l a t i n g i n t ot h n u m b e r o d a r k p i x e l s a n t h s e c o n d t r a n s l a t i n g i n t o t h n u m b e r o l i g h t p i x e l s t f o l l o w .

I m a g e C o d i n g / D e c o d i n g

S a t h a t t h f i r s t l i n e o f a n i m a g e h a d d a r k p i x e l s , t h e n l i g h t o n f o l l o w e d b d a r k o n e s a n a n o t h e r l i g h t o n e . T h e R L E e n c o d i n gp r o g r a m w o u l d c o u n t t h f i r s t d a r k p i x e l s , s e t h a t t h n e x t o n w a l i g h t , s g e n e r a t e f o t h f i r s t d a r k v a l u e . T h e n t h p r o g r a mc o u n t s t h l i g h t p i x e l s , f i n d s o n l y o n e , a n b e c o m e s t h l i g h tv a l u e . W n o h a v e o u f i r s t p a i r ; a a n 1 T h i s c o u l d b u s e da t h R L d a t a , b u t a c h a r a c t e r w i t h a A S C I I v a l u e o h a p p e n st b t h C o n t r o l - C c h a r a c t e r . T r y i n g t s e n d t h a t o u o n m o s tn e t w o r k s w o u l d c a u s e h a v o c ! S t t h r a v a l u e s a o f f s e t o 3 i a d d e d . 3 2 i a A S C I I S P A C E , s a l R L d a t a i a l e a s t s p a c ec h a r a c t e r o r h i g h e r . T h m a x i m u m c h a r a c t e r u s e a b l e i A S C I I i 1 2 7 , t h e D e l e t e c h a r a c t e r . 1 2 - 3 9 S t h l a r g e s t v a l u e f o s t r i n g o p i x e l s i 9 5 G e t t i n g b a c k y o o u r e x a m p l e , t h r a p i x e lc o u n t i a d j u s t e d t p r o d u c e t h A S C I I c h a r a c t e r s ' * a n ' ! ( c h r $ ( 3 5 ) a n c h r $ ( 3 3 ) ) . T h n e x t p i x e l s w o u l d t h e n b e c o u n t e df r o m t h i m a g e a n t h e p r o c e s s c o n t i n u e d .

W h e n t h e n o l i n e i r e a c h e d , y o s i m p l y w r a p a r o u n d o t h n e x t l i n e . I t h p i x e l s d o n ' t c h a n g e s t a t e f r o m t h e n o o n l i n e t t h b e g i n n i n g o t h n e x t , y o j u s t k e e p c o u n t i n g . I y o h i 9 p i x e l s i r o t h o u g h , y o u h a v e t s t o p . S i n c e t h e m a x i m u mA S C I I c h a r a c t e r u s a b l e i 1 2 7 , a n t h a t m e a n s 9 p i x e l s i r o w ,w h a t h a p p e n s w h e n t h e r e a r m o r e t h a n 9 5 I t h p i x e l s c o u n t

w a o d a r k p i x e l s , t h f i r s t c h a r a c t e r o t h p a i r , y o u w o u l dg e n e r a t e t h e c h a r a c t e r 1 2 7 . F o t h l i g h t c h a r a c t e r t h a t f o l l o w s y o w o u l d g e n e r a t e c h a r a c t e r 3 ( A S C I I f o s p a c e ) . A t h d e c o d i n ge n d , t h 1 2 w o u l d g i v e y o 9 d a r k p i x e l s , a n N l i g h t p i x e l ss i n c e 3 - 3 0 Y o t h e n g o c o u n t i n g t h d a r k p i x e l s w h e r ey o l e f t o f a n g e n e r a t e a n e p a i r o c h a r a c t e r s a n e e d e d . T h s a m e w o u l d h o l d t r u e i t h f i r s t p i x e l e n c o u n t e r e d i a i m a g e w a l i g h t . T h f i r s t c h a r a c t e r o t h d a t a p a i r , t h o n f o t h d a r k c o u n t ,w o u l d b a A S C I I 3 2 m e a n i n g N d a r k p i x e l s t o s t a r t w i t h .

Y o c a n o s e t h m e a n i n g o R u L e n g t h E n c o d i n g . Y o r u d o w n t h l e n g t h o t h i m a g e s c o u n t i n g p i x e l s a n g e n e r a t i n g t h d a t a f r o m t h c o u n t o d a r k a n l i g h t p i x e l s f o u n d . T h R L d a t a i s t o r e d i t e x t f i l e , a n t e x t f i l e s a r e a s y t t r a n s m i t v i m o d e m s .

A t h e d i s p l a y i n g e n d , e v e r y t h i n g r u n s i r e v e r s e , t h f i r s t p a i r o d a t a i t a k e n a n d d e c o d e d i n t o t h n u m b e r o d a r k a n l i g h t p i x e l st d r a w o n t h s c r e e n , t h e n t h n e x t p a i r i t a k e n a n s o u n t i lt h b o t t o m i r e a c h e d .

T h o n l y a d d i t i o n t a R L f i l e w i l l m e n t i o n i t h a t i h a b y t eh e a d e r ; t h c h a r a c t e r s < E S O G H . T h < E S C > i A S C I I 2 7 A n t h G s t a n d s f o G r a p h i c H i r e s . T h i s c o d e i u s e d t s w i t c ht e r m i n a l p r o g r a m s i n t o R L d e c o d i n g m o d e a u t o m a t i c a l l y . T h e n o R L f i l e i m a r k e d w i t h < E S O G N f o G r a p h i c N o r m a l .( N o r m a l t e r m i n a l m o d e . )

C o m m o d o r e R L E

w a w r i t i n g a b o v e i g e n e r a l t e r m s b e c a u s e i a p p l y s t a l c o m p u t e r s , n o o n l y C o m m o d o r e e q u i p m e n t . N o w i l l g e t i n t os o m e s p e c i f i c p r o g r a m s f o t h C 6 t h a t c r e a t e a n d i s p l a y R L f i l e s .

A R L w a s m e a n t t d i s p l a y p i c t u r e s w h i l e c o n n e c t e d o l i n e , t h R L d e c o d i n g s o f t w a r e w a s a d d e d t t e r m i n a l p r o g r a m s . Y o c a a l s o d o w n l o a d o R A b u f f e r c a p t u r e t h R L d a t a a n d i s p l a y i o f f l i n e . P r e s e n t l y k n o w o t e r m i n a l p r o g r a m s t h a t w i l l d i s p l a yR L i m a g e s o l i n e . C o m p u S e r v e ' s V i d t e x 4 . a n m o w C B t e r m / C 6 4 . I y o c a p t u r e t h e R L d a t a t d i s k f i l e , y o m a d i s p l a y i o f l i n e w i t h p r o g r a m s l i k e R L E 2 H R . Y o u m a g e n e r a t ey o u r o w R L f i l e s f r o m y o u r h i r e s i m a g e s w i t h t h p r o g r a mH R 2 R L E . C B t e r m / c 6 4 , R L E 2 H R , a n H R 2 R L E m a y b f o u n d f o d o w n l o a d i n g f r o m t h d a t a b a s e s o t h C o m p u S e r v e C B I G S i g .V i d t e x 4 . i a v a i l a b l e f o p u r c h a s e f r o m C o m p u S e r v e . C B t e r m w i l la l s o p r i n t t h h i r e s i m a g e i y o h a v e S t a r o E p s o n t y p e p r i n t e r .B o t h C B t e r m a n V i d t e x m a b m a d e t s a v e t h h i r e s i m a g e t d i s k i D o o d l e o K o a l a c o m p a t i b l e f i l e w i t h t h u s o a o v e r l a ys u b r o u t i n e f o e a c h p r o g r a m a l s o a v a i l a b l e i t h d a t a b a s e s o C B I G S i g .

N o t e t V i d t e x u s e r s : B e f o r e R L p i c t u r e s c a n b e d i s p l a y e d , y o m u s t e n a b l e H i r e s M e m o r y . E n t e r M e t a - Q a n s e l e c t O p t i o nH I R E S M E M . E n t e r ' E f o E n a b l e a n h i R e t u r n t w i c e t e x i t( O p t i o n d e f a u l t s t ' D f o D i s a b l e d ) .

R L I m a g e S o u r c e s

N o t h a t y o h a v e r e a d t h i s a r t i c l e , y o m a b w o n d e r i n g w h a tk i n d s o i m a g e s a r e a v a i l a b l e t l o o k a o n l i n e ? A m e n t i o n e d i t h e b e g i n n i n g , y o m a v i e w t h w e a t h e r r a d a r m a p s u p d a t e d

T h T r a n s a c t o r 1 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 20/84

h o u r l y ( G W E A T H E R ) , o t h F B I ' s 1 m o s t w a n t e d l i s t ( G T E N )o r p i c t u r e s o m i s s i n g c h i l d r e n ( G M I S S I N G ) . O t h e r a r e a s o C o m p u S e r v e a r a d d i n g R L i m a g e s a l t h t i m e . B u t h a t i o n l yt h h a l f o i t T h e r e a r h u n d r e d s o p i c t u r e s t h a t h a v e b e e ng e n e r a t e d b u s e r s a n u p l o a d e d t v a r i o u s F o r u m s o C o m p uS e r v e . D a t a b a s e o C B I G c o n t a i n s o v e r 1 0 0 R L i m a g e s a l o n e ,r a n g i n g f r o m v e r y f i n e d e t a i l e d d r a w i n g s b y s o m e v e r y s k i l l e da r t i s t s t s o m e e q u a l l y i n t e r e s t i n g c o m p u t e r r o o m " N u d e s " .

T h F l o r i d a F o r u m u s e s R L f i l e s t d i s p l a y m a p s a n d i m a g e s o a t t r a c t i o n s f r o m t h a t s t a t e . T h e n t h e r e i t h P i c t u r e S u p p o r tF o r u m ( G P I C S ) t h a t w a f o r m e d f o t h p u r p o s e o h e l p i n gp e o p l e w i t h d i s p l a y i n g a n g e n e r a t i n g R L f i l e s . I h a a v a s td a t a b a s e o u s e r c o n t r i b u t e d i m a g e s .

I D L 1 2 o T h C o m m o d o r e A r t s a n G a m e s F o r u m ( G O C B M A R T )y o u ' l l f i n d p r o g r a m c a l l e d C A D 3 0 . B I N . A l s o i D L 1 2 a r s o m e 4 R L F i g u r e f i l e s t h a t g w i t h t h i s C A p a c k a g e . S i n c e t h i s i i f a c tt h " A r t s " f o r u m f o C o m m o d o r e u s e r s , t h e i r D L w i l l c o n t a i no t h e r i n t e r e s t i n g R L E s , a n p r o b a b l y m a n y m o r e t c o m e .

A R L f i l e i h i g h l i g h t e d i f o r u m ' s d a t a b a s e b t h e a d d i t i o n o " / T Y P E : R L E " p r i n t e d a f t e r t h e f i l e n a m e . I y o u R e a d t h a t f i l e a n a r r u n n i n g t e r m i n a l p r o g r a m t h a t w i l l d R L E , t h e n t h i m a g ew i l l d i s p l a y o y o u r s c r e e n . W h e n y o u g o t u p l o a d y o u r o w R L f i l e t a d a t a b a s e , y o s h o u l d a l s o a d " / T Y P E : R L E " t t h u p l o a dc o m m a n d s C o m p u S e r v e w i l l m a r k t h f i l e a a R L i m a g e .

N e f i l e s a r b e i n g a d d e d t t h f o r u m s a l t h e t i m e . A s t h f o r u m ' s S Y S O P i t h e r e i s p e c i a l p l a c e f o R L i m a g e s . S i n c e R L i u n i v e r s a l f o r m a t , y o u r C o m m o d o r e g e n e r a t e d i m a g e c a b d i s p l a y e d o l o w l y I B M s a n A p p l e s . I t a b o u t t i m e t h o s e f o l k s c a s e w h a t r e a l c o m p u t e r c a n d o . . .

I y o u h a v e a n y q u e s t i o n s m i g h t b e a b l e t h e l p w i t h , l e a v e t h e mt m a t h C B I G s i ( G C B I G , l e a v e m e s s a g e t S Y S O P ) o E a z y p l e x m a 7 6 7 0 3 , 7 1 7 . w i l l h e l p I c a n . T h e r e a r e a l s on u m b e r o g r a p h i c s u t i l i t i e s f o c o n v e r s i o n b e t w e e n v a r i o u s h i r e sf o r m a t s a v a i l a b l e i C B I G ' s d a t a b a s e s a n 5 T h e R L E i m a g e s a r i d a t a b a s e 3

E d i t o r ' s N o t e : A b o n u s , t h p r o g r a m s " R L E 2 H R " a n " H R -2 R L E " w i l l b o T h T r a n s a c t o r D i s k t h a t g o e s w i t h t h i s i s s u e( D i s k * 1 7 ) .

( T h e v e r t i c a l w h i t e l i n e s i d a r k a r e a s a r d u t t h p r i n t e r , n o t t h e R L i m a g e f i l e .

F i l l m o r e R a C r o s s , J r .f i g e : 4 B o r n : f r a * i . 1 1 , 1 3 4 2S a F r a n . . C j f t

I H e i g h t : £ ; ■ 'W e i g h t : 1 7 l b s .B u i l d : S l i m - M e d .

v e s : H a z e lR a c e - W h i t eH a i r ; B r o w n

H a i r - . B l o n d ei t w a l eN a t i o n a l i t y : & m e i

T a t t o o o s n a k er o s e , u p p e r r t

C h r i s t o p h e rE n o c f t b e y t aM i s s i n g : J u l y 1 5 / 8 6a a g m o n t h sF r O f f l " C o l o r a d op i n g S j C o l o r a d oJ l g ' H Q e : 1 m o n t h sH B o m : N o G . 2 8 , 7 9 8 5L y e s : B l u eH e i g h t : 2 ' 2 "

F r o m F B T e M o s t W a n t e d S e c t i o n ( G F B I ) F r o m T h M i s s i n g C h i l d r e n s S e c t i o n ( G M I S S I N G )T h T r a n s a c t o r 1 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 21/84

B e y o n d B u l l e t i n B o a r d S y s t e m sR a n j a n B o s e , W i n n i p e g , M a n i t o b a

T h r e a l f u a n p o w e r o t e l e c o m m u n i c a t i n g e x t e n d sb e y o n d r e a d i n g E - m a i l o m e s s a g e s . .

T e l e c o m m u n i c a t i o n i a f a s c i n a t i n g a n e x t r e m e l y u s e f u l a p p l ic a t i o n o c o m p u t e r s . F e o t h o s e w h h a v e t r i e d i e v e r g e o v e r t h s h e e r m a g i c o t h a b i l i t y t o ' t a l k ' w i t h r e m o t ec o m p u t e r s t h a t a r e u s u a l l y s m u c h b i g g e r a n p o w e r f u l t h a nt h e i r o w n . C o m m o d o r e e q u i p m e n t o w n e r s h a v e g e n e r a l l yb e e n f o r t u n a t e i n t h i s r e s p e c t b e c a u s e C B h a a l w a y s b e e na c t i v e l y i n v o l v e d i p r o m o t i n g t h i s b r a n c h o c o m p u t i n ga m o n g t h e i r p a t r o n s . T h e y h a v e i n t r o d u c e d f o u r m o d e m s s f a r , e a c h s t e p b e t t e r t h a n t h l a s t . T h e i r f i r s t m o d e m , p o p ul a r l y d u b b e d t h ' V i c m o d e m ' , w h i c h w a i n t r o d u c e d w i t h t h V I C - 2 0 , w a v e r y b a s i c p i e c e o h a r d w a r e . N e x t c a m e t h 1 6 5 0 a u t o m o d e m , s o o n t b f o l l o w e d b t h 1 6 6 0 w i t h t o u c h -t o n e d i a l i n g , t h e n f i n a l l y , t h 1 6 7 0 , w h i c h n o o n l y m a d e 1 2 0 0b p a c c e s s a v a i l a b l e , b u a l s o m a n y o t h e r c o n v e n i e n t f e a t u r e si n c l u d i n g H a y e s - l i k e ' s m a r t ' c o m m a n d s . T h e m o d e m c o m e sp a c k a g e d w i t h s e v e r a l t e l e c o m m u n i c a t i o n p r o g r a m s o h i g hq u a l i t y , a n a l t h i s w i t h o u t o n h a v i n g t t r a d e i n t h a t t i c k e t t oH a w a i i .

B e y o n d B B S s

t y p i c a l t e l e c o m m u n i c a t i o n s n e o p h y t e u s u a l l y t e e t h e s o b u l l e t i n b o a r d s y s t e m s , w h i c h o f t e n v a r y l o i f e a t u r e s a n c a p a b i l i t i e s . T h r e a l f u a n p o w e r o t e l e c o m m u n i c a t i n g ,h o w e v e r , e x t e n d s b e y o n d r e a d i n g E - m a i l o m e s s a g e s o e v e ne x c h a n g i n g p r o g r a m s . I t h e p r e s e n t a g o ' I n f o m a n i a ' , o n n e e d s t k n o w l o o v a r i e d b i t s a n p i e c e s o i n f o r m a t i o n .T h e s e b i l l i o n s a n b i l l i o n s o f c h a r a c t e r s c a n b e h a n d l e d e f f ic i e n t l y o n l y b m a i n f r a m e c o m p u t e r , i f a c t , s e v e r a l o t h e mw o r k i n g t o g e t h e r . S e v e r a l s u c h h u g e i n f o r m a t i o n d a t a b a s e se x i s t , p r o v i d i n g t h e f o l l o w i n g c a t e g o r i e s o s e r v i c e s :

a P u r e i n f o r m a t i o n E n c y c l o p e d i a s , r e s e a r c h l i b r a r i e s , n e w si t e m s , s t o c k p r i c e s , e t c .

b P u b l i c - d o m a i n s o f t w a r e , f r e e w a r e a n s h a r e w a r e .c E l e c t r o n i c m a i l ( E - M a i l )d I n t e r a c t i v e g a m e s i n v o l v i n g s i n g l e o r m o r e p l a y e r s .e S p e c i a l i n t e r e s t g r o u p s ( S I G s ) o r c l u b s c a t e r i n g t w i d e

v a r i e t y o i n t e r e s t s f r o m A s t r o n o m y t Z e n .f R e a l t i m e i n t e r a c t i v e c o n f e r e n c i n g ( e l e c t r o n i c C B ) .g C o m m e r c i a l s e r v i c e s - B a n k i n g , s t o c k i n v e s t m e n t s , b o o k s ,

s o f t w a r e , t r a v e l a r r a n g e m e n t s , e t c .

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

O n b i g d i f f e r e n c e b e t w e e n b u l l e t i n b o a r d s a n i n f o r m a t i o ns e r v i c e s i t h a t o n i c h a r g e d b t h m i n u t e w h e n a c c e s s i n g

t h l a t t e r . F o m o s t p e o p l e l i v i n g o u t s i d e t h c o n t i n e n t a lU . S . A . , t h e r e a r e a d d i t i o n a l t e l e c o m m u n i c a t i o n c h a r g e s . S i n c eo n m a b p a y i n g f r o m 1 t 7 C a n a d i a n d o l l a r s p e h o u r ,o n r e a l l y h a t p l a n a o n l i n e s e s s i o n a h e a d o t i m e , a n f a m i l i a r i t y w i t h t h s y s t e m h e l p s .

T h r e e o t h m a n y s e r v i c e s w h i c h s u p p o r t t h i n t e r e s t s o fC o m m o d o r e u s e r s a r C o m p u S e r v e ( C I S ) , D e l p h i ( D E L ) a n Q u a n t u m L i n k ( Q L ) . A l t h r e e p e r m i t a c c e s s u t a l e a s t 1 2 0 0b p s , w i t h C o m p u S e r v e h a v i n g d i f f e r e n t i a l r a t e s f o 3 0 0 , 4 5 a n 1 2 0 0 b p a c c e s s . O t h e s e , Q u a n t u m l i n k c a t e r s e x c l u s i v e l yt o w n e r s o t h C - 6 4 a n C - 1 2 8 .

S o f t w a r e R e q u i r e m e n t s

Q u a n t u m l i n k r e q u i r e s s p e c i a l t e l e c o m m u n i c a t i o n s s o f t w a r ew h i c h i d i s t r i b u t e d f r e e w i t h s e v e r a l s o f t / h a r d w a r e p a c k a g e s( e . g . G E O S , 1 6 7 0 , e t c . ) . m o n t h l y m i n i m u m s e r v i c e c h a r g e o $ 9 . 9 5 ( U S ) i l e v i e d , w h i c h i n c l u d e s o n f r e e h o u r o s p e c i a ls e r v i c e s ( a l m o s t a n y t h i n g o f i n t e r e s t i n c l u d i n g E m a i l ! ) c o s t i n g$ 3 . 6 0 / h o u r ( U S ) . C o m p u S e r v e r e c o m m e n d s i t ' V i d t e x ' s o f tw a r e s y s t e m w h i c h s u p p o r t s i t p r o p r i e t a r y e r r o r - c h e c k i n g " B p r o t o c o l , a p r o t o c o l t h a t i m o r e e f f i c i e n t a n f a s t e r t h a nX m o d e m , h i g h r e s o l u t i o n g r a p h i c d i s p l a y s ( R L E ) , a n o t h e rs p e c i a l a n s t a n d a r d f e a t u r e s . S e v e r a l p u b l i c - d o m a i n p r g r a m s a l s o s u p p o r t s o m e o a l o t h e s e f e a t u r e s . I n a d d i t i o n t t h ' B a n X m o d e m p r o t o c o l s , C I a l s o s u p p o r t s f i l e t r a n s f e r su s i n g X o n / X o f f , a n s p e c i a l s o f t w a r e i n o a b s o l u t e l y e s s e nt i a l . D e l p h i p e r m i t s X m o d e m t r a n s f e r s a n i c o m p a t i b l e w i t hm o s t s o f t w a r e . T h e r e a r n m i n i m u m m o n t h l y c h a r g e s f o r e g u l a r m e m b e r s o C I a n D E L .

A c c e s s

Q i t h e a s i e s t t a c c e s s b e c a u s e i t s p e c i a l s o f t w a r e a u t o m a t ic a l l y d i a l s a n c o n n e c t s w i t h t h e s y s t e m . T h s o f t w a r e s u p p o r t sp r a c t i c a l l y a l p o p u l a r m o d e m s . A c c e s s i n g C I o D E i b i m o r e i n v o l v e d d e p e n d i n g o n w h e t h e r y o u a r c o n n e c t i n gd i r e c t l y , o t h r o u g h t e l e c o m m u n i c a t i o n n e t w o r k s u c h a T y m n e t , T e l e n e t o D a t a p a c . S o m e t e r m i n a l p r o g r a m s s u p p o r tu s e r - d e f i n a b l e k e y s a n a u t o s t a r t f e a t u r e s w h i c h , o n c e p r g r a m m e d , m a k e t h l o g - o n p r o c e d u r e e a s y . C I a n D E i d e n t i f y a u s e r a c c o u n t b a u s e r i a n p a s s w o r d ; t h l a t t e rs h o u l d b e c h a n g e d p e r i o d i c a l l y t p r o t e c t o n e ' s a c c o u n t f r o mu n a u t h o r i z e d a c c e s s . Q h a n d l e s a c c o u n t i d e n t i f i c a t i o n a u t om a t i c a l l y .

T h T r a n s a c t o r 1 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 22/84

F e a t u r e s

A l t h o u g h a l t h r e e s e r v i c e s p r o v i d e a l o t h e b a s i c f e a t u r e s , t h r a n g e o s e r v i c e s o C I i t h l a r g e s t . Q w i l l b o g r e a t e ri n t e r e s t t b e g i n n e r s b e c a u s e e v e r y t h i n g i m e n u - d r i v e n , a n t h m e n u - s c r e e n s a r c o l o u r f u l . T h s y s t e m , h o w e v e r , i n o f l e x i b l e , a n d a d v a n c e d u s e r s c a n n o t b u t h e l p f e e l c a g e d a n s l o w e d d o w n . C I a n D E p e r m i t m e n u s f o b e g i n n e r s , a n s h o r t p r o m p t s o c o m m a n d m o d e f o a d v a n c e d u s e r s . T h e s es a v e l o o t i m e ( $ $ ) i t h l o n g r u n .

T h q u a l i t y o g a m e s o Q i m u c h b e t t e r , b e c a u s e o t h i n t e r a c t i v e , c o l o u r f u l h i g h - r e s o l u t i o n g r a p h i c d i s p l a y s , w h e nc o m p a r e d w i t h t h e p r i m a r i l y t e x t - o r i e n t e d g a m e s a v a i l a b l e o t h o t h e r t w s e r v i c e s .

O t h e o t h e r h a n d , b o t h C I S a n D E p r o v i d e a c c e s s t r e s e a r c h d a t a b a s e s s u c h a D I A L O G , M E D L I N E , e t c . B o t h o t h e s e s e r v i c e s a l s o o f f e r s e a r c h e s m a d e o o n e ' s b e h a l f b e x p e r i e n c e d l i b r a r i a n s ( $ $ ) .

E l e c t r o n i c m a i l i e a s i e r a n d m o r e f l e x i b l e o C I t h a n o D E L ,w h i c h , h o w e v e r , p r o v i d e s s e r v i c e s s u c h a s T e l e x , G l o b a l i n k ,e t c . B o t h p e r m i t f o r w a r d i n g o m a i l t o t h e r i n f o r m a t i o n s e r vi c e s .

Q i e n t i r e l y C o m m o d o r e - s p e c i f i c a n d i c u r r e n t l y s u p p o r t e db C B M . T h e r e i G E O S S I G , C o m m o d o r e h o t l i n e , p r o d u c tr e v i e w s , A H O Y a n R U f o r u m s a n u n i q u e p r o g r a m p r v i e w s e c t i o n f r o m w h e r e o n e c a d o w n l o a d g o o d q u a l i t y d e m ov e r s i o n s o c o m m e r c i a l s o f t w a r e a n t h e i r a b r i d g e d d o c u m e nt a t i o n . S e v e r a l p u b l i c d o m a i n p r o g r a m l i b r a r i e s a r s p r e a d a l o v e r t h e s y s t e m . T h C o m m o d o r e S I G s o C I S , w h i c h p r e v io u s l y w e r e s u p p o r t e d b y C B M , s t i l l c o n t i n u e s t s u p p o r t p r og r a m m e r s , t e l e c o m m u n i c a t i o n s , g r a p h i c a n d s o u n d a r t i s t s , a n p r o v i d e s t e c h n i c a l i n f o r m a t i o n . I i n o m a n a g e d b t h s t a f ff r o m T h T r a n s a c t o r a n o t h e r s . S e v e r a l d a t a l i b r a r i e s c h o c -f u l l o p u b l i c - d o m a i n p r o g r a m s e x i s t o t h s y s t e m . C I S S I G sa l s o s u p p o r t m o s t o t h e r c o m p u t e r s a n d e l e c t r o n i c e d i t i o n s o s e v e r a l p o p u l a r m a g a z i n e s . D E i t h p o o r e s t i t h i s r e s p e c t . I h a ' F l a g s h i p C o m m o d o r e ' f o r u m m a n n e d b e x - S Y S O P sf r o m C I S , a n h a l i m i t e d f a r e f o C o m m o d o r e e n t h u s i a s t s .

A l t h r e e s e r v i c e s h a v e s e c t i o n s f o p l a c i n g a n r e a d i n g C l a s s if i e d a d s , w h i c h a r f r e e o C I a n Q L C I a n D E a s s i g np e r s o n a l d i s k s p a c e t u s e r s f o s t o r i n g t h e i r f i l e s a n o t h e ri n f o r m a t i o n .

N a v i g a t i n g

C I i b f a t h m o s t f l e x i b l e s y s t e m , w i t h t h e a s i e s t a n f a s t e s t n a v i g a t i n g c o m m a n d s , p e r m i t t i n g o n t j u m p a r o u n dt h e s y s t e m . O n c a e v e n c u s t o m - d e s i g n t h f i r s t m e n u t i n c l u d e o n l y a r e a s o p r i m a r y i n t e r e s t . E x c e l l e n t m a n u a l s ,c h a r t s a n t h f a m o u s b o o k b B o w e n a n P e y t o n , " H o w t G e T h M o s t O u o C o m p u S e r v e " ( B a n t a m ) a r r e c o m m e n d e dr e a d i n g . O n s h o u l d t r t g a i n f a m i l i a r i t y q u i c k l y a n s w i t c ht C o m m a n d m o d e a s o o n a s p o s s i b l e f o i n c r e a s e d s p e e d ,t h e r e b y s a v i n g t i m e a n d m o n e y . N a v i g a t i n g c o m m a n d s o C I

a r l o g i c a l a n c o n s i s t e n t b e t w e e n s i m i l a r s e c t i o n s . I n a d d i t i o n ,C I t r a n s f e r s i n f o r m a t i o n a p p r e c i a b l y f a s t e r t h a n t h o t h e r t w o ,w h i c h a r p r o n e t d e l a y s e v e n d u r i n g n o n - r u s h h o u r s . Q c a b p a i n f u l l y s l o w a 3 0 b p a n h a v e r y s l o w S E A R C Ho p e r a t i o n . T h i s a l m o s t w i p e s o u t h e d i f f e r e n c e s i f e s t r u ct u r e , a n C I c o m e s o u a h e a d o t h o t h e r t w o . M o v i n g f i l e sb e t w e e n y o u r p e r s o n a l d i s k a r e a a n p u b l i c a r e a s , o s e n d i n gt h e m a E - m a i l i m u c h m o r e a d v a n c e d y e e a s y o C I S , w h i c hp r o v i d e s c h o i c e o t w d i f f e r e n t e d i t o r s w i t h d i s t i n c t i v ef e a t u r e s ( a c t u a l l y t h i r d k i n d o f e d i t o r i a l s o a v a i l a b l e f o s p e c i a l u s e ) . T w s p e c i a l c o m m a n d s o C I S , n a m e l y G a n F I N D , a r r e a l l y h e l p f u l i m o v i n g a r o u n d t h s y s t e m e f f ic i e n t l y . A l l t h r e e p r o v i d e f e e d b a c k s e r v i c e s f o a n s w e r i n gs p e c i f i c q u e s t i o n s a n p r o b l e m s . C I S ' f e e d b a c k s e r v i c e i m o r eh u m a n , a n r e a d s l e a s t l i k e c o m p u t e r - g e n e r a t e d f o r m l e t t e r !

I s u m m a r y , f o C o m m o d o r e e q u i p m e n t o w n e r s , b o t h C I a n Q o f f e r l o o u s e f u l s e r v i c e s a n i n f o r m a t i o n . Q i s o m ew h a t l i m i t e d i f e a t u r e s b u e x t r e m e l y e a s y t u s e , w i t h s o m eu n i q u e a n i n t e r e s t i n g f e a t u r e s s u c h a c o m m e r c i a l s o f t w a r ed e m o s , G E O S f o r u m , e d u c a t i o n a l r e s o u r c e c e n t e r a n f a n t a s t i cg a m e s . C o m p u S e r v e , o n t h e o t h e r h a n d , h a s a h u g e , d y n a m i cs p e c t r u m o f e a t u r e s , e a s y , f l e x i b l e a n f a s t n a v i g a t i o n , a n l o m o r e t o f f e r , e s p e c i a l l y a f t e r o n g a i n s s o m e f a m i l i a r i t y .D e l p h i , i m o p i n i o n , h a r d l y o f f e r s a n y t h i n g u n i q u e l y a t t r a ct i v e t o p a t r o n s o C o m m o d o r e e q u i p m e n t a t h i s t i m e .

S p e c i a l n o t e f o C I S u s e r s a c c e s s i n g v i D A T A P A C :

F o y e a r s n o w , C a n a d i a n u s e r s , a c c e s s i n g C I v i D A T A P A C ,w e r e n o a b l e t t r a n s f e r p r o g r a m s o o t h e r f i l e s u s i n g ' B o X m o d e m p r o t o c o l s . T h p r o b l e m i d u t D A T A P A C ' s a g g r e ss i v e i n t e r f e r e n c e w h i c h b l o c k s t r a n s m i s s i o n a n d h a n g s u p t h s y s t e m s i n v o l v e d . T h f o l l o w i n g p r o c e d u r e c a n , h o w e v e r ,s o o t h e D A T A P A C i n t o l e t t i n g s u c h t r a n s f e r ( B o r X m o d e m )p r o c e e d . T h i s r o u t i n e w a w o r k e d o u b s o m e u s e r a n w a p r o v i d e d t m b C o m p u S e r v e . h a v e u s e d i f r e q u e n t l y w i t h1 0 0 % s u c c e s s . :

1 A f t e r d i a l i n g D A T A P A C a n e n t e r i n g o n o t w p e r i o d s ( 3 0 0o 1 2 0 0 b p s ) a n r e c e i v i n g t h D A T A P A C n o d e a d d r e s sm e s s a g e , e n t e r 2 9 4 0 0 1 3 8 < R e t u r n >

2 A t h C o m p u S e r v e u s e r i p r o m p t , e n t e r : t P P A R < R E -T U R N > C o n t r o l - P P A R

Y o w i l l n e x t s e e a l a r g e l i s t o n u m b e r s f o l l o w i n g " P A R " .3 E n t e r : P R O F < R e t u r n >T h i s c a u s e s g l o b a l c h a n g e a n d y o u w i l l l o s e e c h o f r o mD A T A P A C . T y p e t h f o l l o w i n g b l i n d l y , o u s p r e d e f i n e d m a c r ok e y s , o r s w i t c h i n t o h a l f - d u p l e x i y o u r m o d e m h a a s w i t c h t d s o

4 E n t e r : S E 1 2 6 : 0 0 4 , 0 0 3 : 0 0 0 , 0 0 4 : 0 0 4 , 0 0 1 : 0 0 0 < R e t u r n >5 E x i t D A T A P A C b e n t e r i n g a < C a r r i a g e R e t u r n > f o l l o w e d b y

G O O D B Y E < R e t u r n >6 T h e C o m p u S e r v e u s e r i p r o m p t r e a p p e a r s . T y p e o a

u s u a l .

T h T r a n s a c t o r 2 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 23/84

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 24/84

T h E u r o p e a n s a l s o h a v e s e c o n d C - 1 2 8 c o m p a t i b l e d i s kd r i v e t c h o o s e f r o m : t h e 1 5 7 0 . T h i s d r i v e r e s e m b l e s 1 5 4 1 i o u t w a r d a p p e a r a n c e b u i a c t u a l l y s i n g l e s i d e d v e r s i o n o t h 1 5 7 1 . I s u p p o r t s t h f a s t s e r i a l b u s , b u r s t m o d e a w e l l a s s i n g l es i d e d M F t y p e C P / M f o r m a t s . T h p r i c e i a b o u t m i w a b e t w e e n 1 5 4 1 a n 1 5 7 1 .

T h s p e c i a l 1 5 5 1 p a r a l l e l d r i v e f o t h P l u s / 4 a n C - 1 6 ( v e r yh a r d t c o m e b i t e m i N o r t h A m e r i c a ) i r e l a t i v e l y e a s y t f i n d i m o s t p a r t s o E u r o p e . S e v e r a l t h i r d p a r t y m a n u f a c t u r e r so f f e r 1 5 4 1 c o m p a t i b l e d r i v e s a n o t h e r m a s s s t o r a g e d e v i c e s ,s u c h a s 2 0 0 k w a f e r t a p e d r i v e t h a t w o r k s o t h c a s s e t t e p o r t .S p e a k i n g o c a s s e t t e s , m o s t c a s u a l E u r o p e a n u s e r s s e e m t p r e f e r t a p e u n i t s o v e r d i s k d r i v e s . J u d g i n g b t h r e l a t i v e l y h i g hc o s t o t h e q u i p m e n t , a n o s u r p r i s e d !

T h e r e w e r e s e v e r a l f a i r l y " p o p u l a r i N o r t h A m e r i c a " i t e m st h a t d i d n o t s e i a l m w a n d e r i n g s a r o u n d E u r o p e . P e r h a p st h m o s t n o t i c e a b l e w a t h 1 7 0 0 a n 1 7 5 0 R A e x p a n s i o nc a r t r i d g e s , a l t h o u g h s e v e r a l t h i r d p a r t y R A e x p a n d e r s w e r ea v a i l a b l e f o t h C - 6 4 . M o d e m s w e r e a l s o v e r y s c a r c e a n e x p e n s i v e .

T a b l e i s u m m a r y o s o m e o t h m o r e c o m m o n c o m p u t e rp r i c e s i s e l e c t e d c o u n t r i e s . A l p r i c e s a r s h o w n i C a n a d i a nd o l l a r s , c o n v e r t e d f r o m t h e a p p r o p r i a t e n a t i o n a l c u r r e n c y a t h p r e v a i l i n g e x c h a n g e r a t e . I s h o u l d b n o t e d t h a t m o s t o t h E u r o p e a n p r i c e s i n c l u d e a l t a x e s ( u t 3 0 o m o r e ,w h i c h i m o s t c a s e s a r r e f u n d a b l e t n o n - r e s i d e n t p u r c h a s e r su p o n l e a v i n g t h e c o u n t r y ) w h i l e N o r t h A m e r i c a n p r i c e s g e n e ra l l y d n o t . E u r o p e a n s a l s o t e n d t s e l l c o m p u t e r s a p a r t o fp a c k a g e w i t h m o n i t o r a n t a p e o r d i s k d r i v e , s o m e t i m e se v e n w i t h p r i n t e r , u s u a l l y w i t h b u n d l e d s o f t w a r e . T h p r i c e si t h t a b l e h a v e b e e n s e p a r a t e d t t h e x t e n t p o s s i b l e i n t o t h c o m p o n e n t i t e m s . S o m e i t e m s i t h l i s t m a n o b f a m i l i a r t N o r t h A m e r i c a n r e a d e r s s u c h a s t h e S i n c l a i r a n d A m s t r a dc o m p u t e r s . T h e s e a r b o t h q u i t e p o p u l a r i m o s t p a r t s o E u r o p e a n d a r a i m e d a a s i m i l a r t y p e o m a r k e t . T h e y a r i n c l u d e d t g i v e a i n d i c a t i o n o t h e p r i c e o C o m m o d o r ee q u i p m e n t r e l a t i v e t s i m i l a r e q u i p m e n t . I a d d i t i o n , a f e o t h C o m m o d o r e p r o d u c t n u m b e r s m e a n d i f f e r e n t t h i n g s i d i f f e r e n t c o u n t r i e s . F o e x a m p l e , i N o r t h A m e r i c a 1 9 0 1m o n i t o r i m o n o c h r o m e m o n i t o r w h i l e i A u s t r i a a n G e m a n y i i a c o l o r m o n i t o r e q u i v a l e n t t t h N o r t h A m e r i c a n1 9 0 2 .

C o m m o d o r e 1 2

T h T r a n s a c t o r 2 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 25/84

T a b l e 1 I n t e r n a t i o n a l C o m p a r i s o n O S e l e c t e d C o m p u t e r P r i c e s ( N o v , 1 9 8 6 )

C o m m o d o r e :( C o m p u t e r s )C - 1 6

C - 6 4 ( o l d )C - 6 4 ( n e w )C - 1 2 81 2 8 - DA m i g aP C - 1 0 I P C - 2 0 I

( D i s k d r i v e s )1 5 3 0 D a t a s s e t t e1 5 4 11 5 5 11 5 7 01 5 7 1S F D - 1 0 0 1( M o n i t o r s )1 7 0 21 8 0 11 9 0 11 9 0 2( P r i n t e r s )M P S 1 0 0 01 5 2 5M P 8 0 1 5 2 0M P 8 0 2 / 1 5 2 6D P 1 1 0 1A t a r i :8 0 X 1 3 0 X E5 2 S ( m o n o )1 0 4 0 S ( c o l o r )

S i n c l a i r :Q S p e c t r u mS p e c t r u mS p e c t r u m 1 2 8 kS p e c t r u m 1 2 8 k +A m s t r a d :4 6 m o n o c h r o m e . t a p e6 6 c o l o r , 3 . 5 d i s k6 1 2 8 c o l o r , 3 . 5 d i s k

C a n a d a

9 1 9 2 4 2 9 4 5

1 9 9 51 8 0 02 5 0 0

4 3 4

4 2

3 9

5 4

4 9 1 9

3 9 4 9

1 5 2 4

1 0 9 91 6 9 9

5 9

1 A l p r i c e s a r e$ 1 . 0 0 U $ 1 . 4 0 C D N ; I A $ 0 . 1 0

U . S .

1 2 1 9 2 4 3 8

1 5 0 0

5 2 1

3 5 3 9

2 7 2 9

3 9

3 5

9 1 9 9 1

1 5 9 9

q u o t e d i C a n a d i a nC D N ; D $ 0 . 7 0

2 P r i c e s b a s e d o a v e r a g e o s e v e r a l t y p i c a l r e t a i l e r s i

\ u s t r i a

1 9 2 9 2 9 3 9 5 9

1 1 9 82 3 0 0

7 3 9 4 5 4 9 5 9

4 9 5 9 7 9

6 9

4 9 3 9

1 9 3 9

1 4 9 92 3 9 9

3 9 2 4 2 9

6 4 1 1 9 91 3 9 9

N o t e s :D o l l a r s b a s e dC D N ; 1 U e a c h c o u n t r y ;

G e r m a n y

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

2 2 5 02 3 0 03 2 0 0

6 3 6 4 0 4 2 5 0 4 0

3 9 6 5

2 7 2 7 1 7

2 1

U . K .

1 5 2 5 2 9 3 9 5 3 9 9

1 9 5 0

6 3 9

4 5 5 1 5 0

5 5

5 1

2 9 1 7 7 0 5 5

1 4

1 1 9 01 8 0 0

3 0 1 6 2 2 2 8 3 2

4 0

8 0

o t h e f o l l o w i n g e x c h a n t$ 2 . 0 0 C D E u r o p e a n ]

f o r i n t = $ > r i c e s i n c l u d e

H u n g a r y

7 3

1 9 1 1

2 2 8 8

9 0

r a t e s :

0 2 C D N ; F

F r a n c e

3 2 4 2 5 9

2 8 0 02 7 8 54 2 8 9

7 4 4

6 5

3 2 1 2 9 02 5 8 0

4 2

5 7

1 2 8 9

$ 0 , 2 1 5 C D a p p l i c a b l e V A ( s a l e s t a x ) .

T h T r a n s a c t o r 2 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 26/84

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 27/84

t h r o u g h t h P R I N T o n c e f o e a c h t i m e y o p r e s s e d k e y , b u b e c a u s e t h c o r r e c t a n s w e r i a l m o s t a l w a y s o m u l t i p l ec h o i c e q u e s t i o n s ( s a m e a m m a r k ) .

I y o p r e s s e d t o m a n y k e y s b e f o r e t h Q y o u w o u l d b l o w u t h e s t a c k b n e s t i n g G O S U B s t o d e e p l y .

I s i m i l a r p r o g r a m w e r e w r i t t e n i P a s c a l t h e n E w o u l d b t h c o r r e c t a n s w e r . T h a t a g a i n w o u l d b r e c u r s i o n .

S W h a t ' s I G o o d F o r ?

R e c u r s i o n i u s e f u l f o l o o t h i n g s b e s i d e s p r i n t i n g i n p u tb a c k w a r d s ; n e s t e d e x p r e s s i o n e v a l u a t i o n s , b i n a r y s e a r c h e sa n q u i c k s o r t s , j u s t t o n a m e a f e w . O n o t h m o s t t r a d i t i o n a la p p l i c a t i o n s o r e c u r s i v e a l g o r i t h m s i i a n a l y z i n g b o a r d g a m ep o s i t i o n s , w h e r e p r o g r a m m u s t c h e c k e v e r y p o s s i b l e l i n el e a d i n g f r o m g i v e n p o s i t i o n f o s p e c i f i e d n u m b e r o m o v e sb e f o r e c h o o s i n g t h b e s t .

T h t w C o m m o d o r e 6 p r o g r a m s i n c l u d e d w i t h t h i s a r t i c l e a r t h b o a r d g a m e s R E V E R S I a n m v e r y o w p e r s o n a l v e r s i o no t h i s g a m e , F E N C E . T h e f o l l o w i n g s h o r t r o u t i n e p r o v i d e s t h b r a i n s f o e a c h o t h e m , a n i n d e e d c o u l d b u s e d i a n s i t u a t i o n i w h i c h o n e w a n t e d p r o g r a m t " l o o k " d o w nd e c i s i o n t r e e .

D o n ' t b o t h e r t y p i n g i i a n t r y i n g t r u i u n l e s s y o u ' r e i l o v e w i t h y o u r a s s e m b l e r ' s U N D E F I N E D S Y M B O L e r r o r m e s a g e . S e i y o c a f o l l o w i g e n e r a l w a w h a t i h a p p e n i n g ,s t h a t w h e n t h n e e d a r i s e s y o u ' l l b r e a d y .

i n i t i a l i z e l e v e l t o p r e s e n t p o s i t i o n; t v a r i a b l e a r r a y s f o c u r r e n t l e v e l

; c u r r e n t d e p t h o a n a l y s i s; h o w d e e p t g ; i e q u a l d o n t g a n y d e e p e r

m o v e c o u n t . x ; o m o v e s t e s t e d o t h i s l e v e l; r e t u r n s o m o v e s a n a r r a y o m o v e s

c h e c k ' n e x t ' m o v e = I d l e v e l ; t a c c e s s t a b l e v a l u e s f o t h i s l e v e lI d m o v e n u m . x ; n u m b e r o m o v e s t l o o k a c m m o v e c o u n t . x ; s e e i a l m o v e s a r a c c o u n t e d f o b e r e t u r n ; i s r e t u r n

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

i n l e v e lj s s e t p o i n t e r sj s s w i t c hj s c h e c k l e v e l

; n e x t l e v e l i ; f o r n e l e v e l d a t a; t u r n s t h b o a r d a r o u n dr e c u r s i v e c a l l t r o u t i n e e x e c u t i n g

f i n d ' b e s tI d s t j s

' m o v e# l e v e ls e t p o i n t e r s

c h e c k l e v e l = I d c p b e

I d s t j s

l e v e ld i f f i c u l t yr e t u r n

# m o v e c o u n tf i n d m o v e s

; * * * n o w h a v e a n a l y z e d t r e q u i r e d d e p t hj s s w i t c h ; s i d e s a g a i nd e l e v e lj s s e t p o i n t e r s ; t d a t a f o l a s t l e v e lj s e v a l u a t e ; a t t a c h n u m e r i c r a t i n g t f i n a l

p o s i t i o nj s r e s e t ; r e s e t t h p o s i t i o n , i e t a k e b a c k

m o v ej s c h e c k ' n e x t ' m o v e ; r e c u r s i v e c a l l t n e x t m o v e a n

l e v e lj s p i c k ; c h o o s e t h e b e s t l i n e

r e t u r n = r t

T h a b o v e p a s s a g e a d m i t t e d l y s m a c k s m o r e o p s e u d o - c o d et h a n o a u s e f u l s u b r o u t i n e t h a t o n c a p l u g i n b l a c k b o f a s h i o n , t p r o g r a m . I i n o s o m e t h i n g b e g i n n e r m a w a n tt c u t t e e t h o n . I d o e s d i s p l a y f a i r l y p o w e r f u l a n c o n c i s em a c h i n e l a n g u a g e m e t h o d f o t r a v e r s i n g t r e e s a n d , h o p e f u l l y ,w i l l p r o v i d e f o o d f o t h o u g h t f o p r o g r a m m e r s w h o ' v e n e v e rc o n s i d e r e d t h p o s s i b i l i t i e s o f c o n t r o l l e d r e c u r s i o n i n t h e i rp r o g r a m s .

N o t i c e h o . i u s e d t a c c e s s n o n - a r r a y v a r i a b l e s r e l a t i n g t t h l e v e l o f r e c u r s i o n . S E T P O I N T E R S s e t s u t h t a b l e d a t a f o l e v e l s t h a t r e c u r s i o n i c o m p l e t e l y s u p p o r t e d .

O v e r - t h e - b o a r d p o s s i b i l i t i e s a r s t r u c t u r e d l i k e d e c i s i o n t r e e .E a c h n o d e r e p r e s e n t s a p o s i t i o n w i t h t h r o o t b e i n g t h e c u r r e n tp o s i t i o n . T h b r a n c h e s o f e a c h n o d e r e p r e s e n t p o s s i b l em o v e s . T h a b o v e a l g o r i t h m z i p s t t h b o t t o m o t h t r e e t h e n

■ w o r k s i t w a b a c k u p e x p l o r i n g e v e r y p o s s i b l e c o m b i n a t i o n o m o v e s . O n l y t h f i n a l ( l e a f ) p o s i t i o n s a r e a c t u a l l y e v a l u a t e dw i t h r e s u l t s c o m p a r e d a n p a s s e d b a c k u t h t r e e v i t h P I C Kr o u t i n e .

W h e n t h i s r o u t i n e f i n a l l y e x i t s , t h o u t c o m e o e v e r y p o s s i b l el i n e t t h s p e c i f i e d d e p t h h a b e e n e v a l u a t e d . T h c o m p u t e rt h e n s i m p l y c h o o s e s t h e b e s t ( o l e a s t w o r s t ) a l t e r n a t i v e . I c o m p u t e r s w e r e f a s t e n o u g h o i t h u n i v e r s e w a g o i n g t b a r o u n d l o n g e r e v e r y g a m e c o u l d b a n a l y z e d r i g h t t o t h e e n d ;t h m a c h i n e w o u l d n e v e r l o s e .

T h e F u n S i d e O A l l T h i s : R e v e r s i

R e v e r s i i g o o d g a m e e x c e p t t h a t i t ' s p a i n t p l a y o v e r t h b o a r d . s i n g l e m o v e c a e n t a i l f l i p p i n g 2 o 3 p i e c e s o v e r ,a n k l u t z e s l i k e m t e n d t k n o c k t h e m a l o v e r t h p l a c e ,l o s i n g t h p o s i t i o n .

T h T r a n s a c t o r 2 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 28/84

R e v e r s i i d e m o c r a t i c c a m e . A l p i e c e s a r e e q u a l . R e v e r s i i v e r y p o s i t i o n a l a n s t r a t e g i c , b u t n o t t e r r i b l y t a c t i c a l u n t i l l a t ei t h g a m e .

T h r u l e s a r s i m p l e : l a d o w n m a s t h a t y o o u t - f l a n ky o u r o p p o n e n t a l o n g r o w s , c o l u m n s o r d i a g o n a l s . I t h e r e a r n o u t - f l a n k i n g m o v e s t h e n y o u r o p p o n e n t m o v e s a g a i n . T h g a m e i o v e r w h e n n o n c a m o v e . T h w i n n e r c o n t r o l s t h m o s t s q u a r e s .

I y o d o n ' t q u i t e u n d e r s t a n d y e t d o n ' t w o r r y . J u s t L O A D" R E V E R S I " , 8 a n d R U i t H e l p i a v a i l a b l e .

I y o u w a n t t p l a y F l i p ( t h e c o m p u t e r ) s e l e c t p l a y e r . S e l e c t i n gp l a y e r s t e l l s t h p r o g r a m t m o n i t o r a n r e f e r e e g a m e

b e t w e e n t w h u m a n s .

S e l e c t l o l e v e l o d i f f i c u l t y w h e n p r o m p t e d , s a o 2 u n l e s sy o r e a l l y w a n t t g e c r e a m e d . I N F I N I T E l e v e l w i l l a n a l y z ee v e r d e e p e r u n t i l k e i p r e s s e d ( y o u w o n t l i v e l o n g e n o u g h t c r a s h t h e s t a c k ) . A n y t h i n g o v e r l e v e l m a t a k e a f e m i n u t e s ,e s p e c i a l l y i t h m i d d l e g a m e . I y o c h o o s e t p l a y l e v e l y o u rg r a n d c h i l d r e n m a h a v e t f i n i s h t h g a m e f o y o u .

h e a r t b e a t s i t h u p p e r - r i g h t c o r n e r o t h s c r e e n w h i l e t h c o m p u t e r t h i n k s s t h a t y o d o n ' t h a v e t w o n d e r i f i t h a p a s s e d a w a y o s o m e t h i n g . F l i p w i l l m a k e t w e e d l i n g n o i s ea f t e r m o v i n g , i c a s e y o f e l l a s l e e p o w e r e d o i n g s o m e t h i n ge l s e .

W h e n y o c h o o s e y o u r c o l o u r , k e e p i m i n d t h a t i R E V E R S I ,b l a c k m o v e s f i r s t .

G e t H e l p

I y o a r e n ' t s u r e w h a t y o u r m o v e s a r e , p r e s s f o h e l p a n t h e y w i l l b s h o w n t y o u . U s t h C R S R k e y s ( o j o y s t i c k i p o r t 2 t p o s i t i o n t h b i o v e r t h s q u a r e y o w a n t , a n p r e s sR E T U R N ( o f i r e ) . T h a p p r o p r i a t e p i e c e s w i l l b t u r n e d a n t h e n t h c o m p u t e r w i l l p l a y i t m o v e .

T h e r e a r e b u z z e r s a n h o r n s a n p o i g n a n t m e s s a g e s f o s t u c kp o s i t i o n s a n a t t e m p t s a t i l l e g a l m o v e s . I y o b e a t t h e c o p u t e r . . w e l l , s e f o y o u r s e l f .

N C h e a t i n g

T h e r e a r k e y s f o r e m o v i n g a n d a d d i n g p i e c e s o e i t h e r c o l o u ra n f o t r a d i n g s i d e s ( B , W , E , T ) . T h e s e a r f o p r o b l e m c o m p o s it i o n a n s p e c i a l o p e n i n g p o s i t i o n s o n l y n o f o c h e a t i n g . N C h e a t i n g ! ! !

I n s t a n t R e p l a y

W h e n t h g a m e i o v e r , y o w i l l b a s k e d i y o w a n t t r e p l a y ,s t a r t o v e r o q u i t . G a m e s a r r e c o r d e d i m e m o r y . R e p l a ya l l o w s y o t s i n g l e s t e p , u s i n g t h s p a c e b a t h r o u g h g a m ej u s t c o m p l e t e d . B p r e s s i n g P y o u c a r e - e n t e r t h g a m e a a n p o i n t a n p l a y t h r o u g h t h o s e " i o n l y h a d d a . . s i t u a t i o n s .

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

T h G a m e O F e n c e

I y o l i k e R e v e r s i , y o w i l l l o v e F E N C E . E v e n i y o d o n ' t l i k eR e v e r s i y o m a g e o f o i t F e n c e i l i k e R e v e r s i e x c e p t t h a ti n s t e a d o b e i n g p l a y e d o n a n b s q u a r e c h e c k e r t y p e b o a r ,i i p l a y e d o l a r g e r 1 b 1 b o a r d , a n o n l y o t h d i a g o n a l s .

L O A D " F E N C E " , 8 t h e n R U p r e f e r F E N C E :

I i p o s s i b l e t s e f a r t h e r a h e a d i n t o p o s i t i o n b e c a u s e t h e r ea r f e w e r l e g a l m o v e s u n f o r t u n a t e l y , t h s a m e i t r u e f o t h c o m p u t e r ( G n a s h ) .

T h e g a m e i s h o r t e r a n m u c h m o r e t a c t i c a l t h a n R e v e r s i . I i p o s s i b l e ( t h o u g h n o n e c e s s a r i l y a d v i s a b l e ) f o t h e p l a y e r m o i n f i r s t t f o r c e a s t u c k p o s i t i o n o h i s / h e r / i t s o p p o n e n t a f t e ro n l y f e m o v e s . T h a l l - p o w e r f u l c o r n e r s q u a r e s n l o n g e re x i s t , b u a r r e p l a c e d b 2 i r r e v e r s i b l e s i d e s q u a r e s w h i c hc o m e i n t o p l a y e a r l y i m o s t g a m e s . I i n o u n u s u a l f o g a m eo F E N C E t e n l o n g b e f o r e t h e b o a r d i f i l l e d .

S c o r e b o a r d , f e a t u r e s , c o m m a n d s , g r a p h i c s , w h i s t l e s , b e l l s a n b u z z e r s a r t h s a m e a w i t h t h e R e v e r s i g a m e . T h o n l yd i f f e r e n c e i t h a t i y o b e a t t h c o m p u t e r y o g e t . . w e l l , s e f o y o u r s e l f .

W h e r e n u m b e r o m o v e s h a v e e q u a l v a l u e , t h c o m p u t e r w i l lr a n d o m l y s e l e c t o n e , s m e m o r i z i n g w i n n i n g l i n e ( w h e n y o g e l u c k y ) i p r o b a b l y n o g o i n g t h e l p y o t h e n e x t t i m e .

U n l e s s y o f i n d e x t r e m e t e d i u m t h e r a p e u t i c , i i u n l i k e l y t h a ty o w o u l d w a n t t t y p e i t h t h o u s a n d s o d a t a l i n e s t h a t t h e s ep r o g r a m s w o u l d g e n e r a t e e v e n i T r a n s a c t o r w e r e t s e f i t p r i n t t h e m . I y o a r i n t e r e s t e d i c h e c k i n g F E N C E a n R E V E R S ! o u t h i s m i g h t b e g o o d t i m e t g f o t h T r a n s a c t o rd i s k .

T h T r a n s a c t o r 2 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 29/84

R a n d o m N u m b e r G e n e r a t i o nI M a c h i n e L a n g u a g e

G r e g o r y D K n o xW u r t s m i t h A F B ,

M i c h i g a n

. . s o m e a p p l i c a t i o n s a r m o r e c r i t i c a l t h a n o t h e r s , b u t h p o i n t h e r e i t h a t y o s o m e t i m e s n e e d s e q u e n c e s o r a n d o mn u m b e r s t h a t a r w e l l b e h a v e d ( i r a n d o m s o r t o w a y ) . .

v a r i e t y o a p p l i c a t i o n s r e q u i r e g e n e r a t i n g a s e q u e n c e o r a n d o m n u m b e r s . M a n y g a m e s , f o e x a m p l e , u s e r a n d o m l yg e n e r a t e d n u m b e r t s i m u l a t e t h e r o l l i n g o f d i c e o t c h a n g es o m e f e a t u r e o t h p r o g r a m ' s o p e r a t i o n i a u n p r e d i c t a b l ew a y . I y o a r d o i n g a n k i n d o s i m u l a t i o n w i t h a c o m p u t e r ,y o a r a l m o s t s u r e t n e e d t h e s e n u m b e r s i o n w a o a n o t h e r . M a y b e y o u n e e d t s i m u l a t e s o m e k i n d o i n p u t t m o d e l e d s y s t e m b u o n l y h a v e s t a t i s t i c a l d e s c r i p t i o n o t h i n p u t " s i g n a l " , o p e r h a p s y o u ' r e w o r k i n g w i t h t h e s i m u l a t i o nt e c h n i q u e c a l l e d M o n t e C a r l o a n a l y s i s . T h e s e a p p l i c a t i o n s a n m o r e c a a l m a k e s t r i n g e n t d e m a n d s o t h s e q u e n c e o r a n d o m n u m b e r s y o u u s e . O c o u r s e s o m e a p p l i c a t i o n s a r m o r e c r i t i c a l t h a n o t h e r s , b u t t h e p o i n t h e r e i t h a t y o s o m e t i m e s n e e d s e q u e n c e s o r a n d o m n u m b e r s t h a t a r e w e l lb e h a v e d ( i r a n d o m s o r t o f w a y ) . T h i s a r t i c l e d e s c r i b e s at e c h n i q u e t p r o d u c e l o n g s e q u e n c e s o r a n d o m n u m b e r s .

I ' v e b e e n u s i n g t h e t e r m " r a n d o m " h e r e w i t h o u t m u c h r e g a r df o i t r i g o r o u s m e a n i n g . I r e a l i t y , t h s e q u e n c e s w c a g e n e r a t e w i t h c o m p u t e r a r p r o p e r l y c a l l e d p s e u d o - r a n d o ms e q u e n c e s . T h c o m p u t e r i d e t e r m i n i s t i c d e v i c e a n t h e r ef o r e p r o d u c e s d e t e r m i n i s t i c r e s u l t s . T r u l y r a n d o m n u m b e r sw o u l d h a v e t b g e n e r a t e d u s i n g s o m e k i n d o n o n d e t e r m i n i s -t i p r o c e s s , f o e x a m p l e , s a m p l i n g t h e l e c t r i c a l n o i s e v o l t a g ea c r o s s d i o d e o r e s i s t o r . O c o u r s e y o c o u l d u s e s u c hn u m b e r s i y o u r c o m p u t e r , a n t h e r e a r i n s t a n c e s w h e r e y o m i g h t n e e d t o b u i g e n e r a l t h e r e a r e g o o d r e a s o n s f o n o d o i n g s o . F i r s t o a l l , i t ' s i n c o n v e n i e n t , b u t b e y o n d t h a t y o s o m e t i m e s w a n t r a n d o m - l i k e d a t a b u t n e e d t u s t h s a m es e q u e n c e m o r e t h a n o n c e . I i t ' s v e r y l o n g s e q u e n c e , s t o r i n g i c o u l d b p r e t t y b i g w a s t e o m e m o r y . A n o t h e r r e a s o n i t h a ty o c a e x e r c i s e d e g r e e o c o n t r o l o v e r t h s t a t i s t i c a l p r o p e rt i e s o s e q u e n c e s y o g e n e r a t e i d e t e r m i n i s t i c f a s h i o n .

M o s t h i g h - l e v e l l a n g u a g e s h a v e s o m e t y p e o i n s t r u c t i o n t h a tl e t s y o g e n e r a t e s e q u e n c e s o p s e u d o - r a n d o m ( h e r e a f t e rc a l l e d r a n d o m ) n u m b e r s . D e p e n d i n g o n t h p a r t i c u l a r l a ng u a g e a n i t i m p l e m e n t a t i o n , t h e s e r a n d o m n u m b e r s m a o

m a n o b v e r y " g o o d o n e s " . T h e r e a r s e v e r a l f a c t o r s w n e e d t c o n s i d e r w h e n t a l k i n g a b o u t " g o o d n e s s " . T w o t h m o r e i m p o r t a n t o n e s a r e : A n s e q u e n c e w g e n e r a t e w i t h a a l g o r i t h m w i l l e v e n t u a l l y r e p e a t i t s e l f . T h i s i a u n a v o i d a b l ep r o p e r t y a n o s o m e i m p o r t a n c e . S e c o n d l y , t h e r e l a t i v e f r q u e n c y o o c c u r r e n c e f o e a c h n u m b e r i n o t g e n e r a l l y t h s a m e .

I a l m o s t a l c a s e s , w w o u l d l i k e t h n u m b e r o e l e m e n t sc o n t a i n e d i r a n d o m s e q u e n c e t b e v e r y l a r g e b e f o r e t h es e q u e n c e b e g i n s t r e p e a t i t s e l f . T h e r e a r m e t h o d s o p r o d u ci n r a n d o m n u m b e r s t h a t r e s u l t i t h r e p e t i t i o n o t h s q u e n c e a f t e r o n l y v e r y f e w n u m b e r s h a v e b e e n g e n e r a t e d . A t h e o t h e r e n o t h s p e c t r u m , t h e r e a r m e t h o d s t h a t y i e l ds e q u e n c e s t h a t a r n o n - r e p e a t i n g f o l e n g t h s o f t r u l y a s t r on o m i c a l m a g n i t u d e . T h r a n d o m n u m b e r g e n e r a t i n g f a c i l i t i e sp r o v i d e d w i t h m o s t h i g h - l e v e l l a n g u a g e s a r n o a l w a y s a s t e r l i n g i t h i s r e g a r d a y o m i g h t e x p e c t , t h o u g h s o m e a r q u i t e g o o d .

U s u a l l y w h e n y o g e n e r a t e a s e q u e n c e o r a n d o m n u m b e r s ,y o u w a n t t h e m t b u n i f o r m l y d i s t r i b u t e d . T h a t i t s a t h a tt h e r e s h o u l d b e t h s a m e f r e q u e n c y o o c c u r r e n c e f o a l n u m b e r s . T h e r e a r l o t s o a p p l i c a t i o n s t h a t r e q u i r e s o m e o t h e rd i s t r i b u t i o n , b u t t h e s t a r t i n g p o i n t f o t h g e n e r a t i o n o t h e s en o n - u n i f o r m s e q u e n c e s i o f t e n t h u n i f o r m d i s t r i b u t i o n .n u m b e r o o t h e r m o r e i n v o l v e d c o n s i d e r a t i o n s a l s o e x i s t w h e r et h e e v a l u a t i o n o r a n d o m s e q u e n c e s a r c o n c e r n e d , b u w d o n ' t r e a l l y n e e d t d e a l w i t h t h e m h e r e .

R o l l i n g Y o u r O w W h e n p r o g r a m m i n g i a s s e m b l y l a n g u a g e , y o o f t e n d o n ' th a v e a c c e s s t a r o u t i n e t h a t l e t s y o g e n e r a t e r a n d o m n u b e r s . N e v e r t h e l e s s , a w e ' v e s e e n , s u c h n e e d m a w e l l a r i s e .Y o m a b a b l e t u s t h e B a s i c m a c h i n e l a n g u a g e s u b r o u t i n ec o n t a i n e d i R O M , b u t h i s i s n ' t a l w a y s p o s s i b l e a n m i g h t n o

T h T r a n s a c t o r 2 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 30/84

b j u s t w h a t y o u n e e d a n y w a y . T h e r e i w a t p r o d u c e , i m a c h i n e c o d e , r a n d o m s e q u e n c e s t h a t a r n o n - r e p e a t i n g f o a s t r o n o m i c a l l y l o n g i n t e r v a l s . I n a d d i t i o n , t h e s e s e q u e n c e s a r a u n i f o r m l y d i s t r i b u t e d a i p o s s i b l e t o b t a i n . A l t h o u g h w h a v e n ' t e x a m i n e d o t h e r f i g u r e s o m e r i t f o r a n d o m s e q u e n c e s ,i t u r n s o u t t h a t t h e s e p a r t i c u l a r s e q u e n c e s p o s s e s s m a n y o t h o s e o t h e r d e s i r a b l e p r o p e r t i e s a w e l l . T h r a n d o m s q u e n c e s w e ' l l l o o k a h e r e a r c a l l e d L i n e a r M a x i m a l L e n g t hS h i f t R e g i s t e r S e q u e n c e s . T h i s s o u n d s p r e t t y i n t i m i d a t i n g , b u u s i n g t h e s e s e q u e n c e s i a c t u a l l y q u i t e e a s y .

B e f o r e w t a k e a l o o k a t h t e c h n i q u e , l e t ' s d i g r e s s a n t a l ka b o u t l i t t l e h a r d w a r e f o m i n u t e . A t h n a m e s u g g e s t s , o n o t h e a r l i e r i m p l e m e n t a t i o n s o t h e s e t h i n g s i n v o l v e d d i g i t a ls h i f t r e g i s t e r s . T h s h i f t r e g i s t e r s w e r e c o n n e c t e d s a t t a k et h v a l u e o t h e o u t p u t a n d o n e o m o r e o t h e r s h i f t r e g i s t e rc e l l s , a d t h e m t o g e t h e r M O 2 a n f e e d t h r e s u l t b a c k t t h i n p u t o f i r s t s h i f t r e g i s t e r c e l l , t h e n i n i t i a t e a n o t h e r s h i f to p e r a t i o n .

* 5

F i g u r e

F i g u r e s h o w s w h a t t h i s l o o k s l i k e f o r s h i f t r e g i s t e r w i t h f i v ec e l l s . N o t e t h b i p o s i t i o n s , o c e l l s , w h e r e t h t a p s m u s t b a p p l i e d t o b t a i n t h e v a l u e s t h a t g e t f e b a c k t t h e i n p u t c e l l .T h e s e c o n n e c t i o n s w e r e n ' t c h o s e n r a n d o m l y . T h i s p a r t i c u l a ra r r a n g e m e n t o t a p s f o f i v e c e l l s h i f t r e g i s t e r g i v e s u s t h em a x i m u m l e n g t h s e q u e n c e w a r l o o k i n g f o r . S o m e o t h e rf e e d b a c k a r r a n g e m e n t w o u l d c e r t a i n l y g e n e r a t e a o u t p u ts e q u e n c e , b u i c o u l d b v e r y s h o r t o n e . C o n s e q u e n t l y , y o r e a l l y d o n ' t w a n t t c o n s i d e r a n b u t t h e p a r t i c u l a r c o n n e c t i o no t a p s t h a t p r o d u c e s t h m a x i m u m l e n g t h s e q u e n c e . U s i n gs u c h c o n n e c t i o n , y o w o u l d g e a o u t p u t s t r e a m o f I s a n O t h a t a p p e a r e d v e r y r a n d o m i n d e e d . I y o u r s h i f t r e g i s t e r h a d ,s a y , 3 c e l l s , t h s e q u e n c e w o u l d c o n t a i n ( 2 t 3 0 ) - l n u m b e r sb e f o r e i s t a r t e d t r e p e a t . I y o u w e r e g e n e r a t i n g t h e s e n u b e r s a t h r a t e o f t h o u s a n d p e r s e c o n d , v e r y e a s y t d o t h s e q u e n c e w o u l d n o r e p e a t f o a l m o s t 3 0 h o u r s .

T h p r o b l e m o h o t s e l e c t t h p r o p e r t a p s s t i l l n e e d s t b a d d r e s s e d . Y o c a b u i l d s h i f t r e g i s t e r w i t h a n n u m b e r o c e l l s y o w a n t , r e g i s t e r s w i t h t w c e l l s o t h o u s a n d a r e q u a l l y p o s s i b l e . E a c h h a s o m e c o n f i g u r a t i o n o t a p s t h a tm a k e s i L i n e a r M a x i m a l L e n g t h S h i f t R e g i s t e r . H o d o y o uk n o w w h a t t a p s t u s e ? T h e r e ' s a i n v o l v e d m a t h e m a t i c a lt e c h n i q u e t h a t w i l l g i v e t h e m t y o b u t h a t ' s p r e t t y m e s s y .l o o k u t h e r e q u i r e d c o n n e c t i o n i t a b l e t h a t l i s t s t h t a p o s i t i o n s r e q u i r e d f o s h i f t r e g i s t e r o g i v e n l e n g t h . F i g u r e i s u c h t a b l e f o s h i f t r e g i s t e r l e n g t h s u t 3 c e l l s .

F i g u r e

S h i f t R e g i s t e r C o n n e c t i o n sF o M a x i m a l L e n g t h S e q u e n c e s

C e l l s

1 1 1

T a p s2 , 3 , 4 , 5 , 6 . 7 , 8 , 4 , 3 , 29 ,

1 0 , 31 1 , 21 2 , 6 , 4 , 1

C e l l s1 1 1 1 1 1 1 2 2 2 2

T a p s1 3 , 4 , 3 , 11 4 , 1 0 , 6 , 11 5 , 11 6 , 1 2 , 3 , 11 7 , 31 8 , 71 9 , 5 , 2 , 12 0 , 32 1 , 22 2 , 12 3 , 5

C e l l s2 2 2 2 2 2 3 3 3 3 3

T a p s2 4 , 7 , 22 5 , 32 6 , 6 , 22 7 , 5 , 22 8 , 32 9 , 23 0 , 2 3 ,3 1 , 33 2 , 2 2 ,3 3 , 1 33 4 , 2 7 ,

,

2

2

2

S h i f t r e g i s t e r s e q u e n c e s o t h i s s o r t h a v e m a n y a n v a r i e d u s e si t h c o m m u n i c a t i o n e l e c t r o n i c s f i e l d a w e l l a i o t h e r a r e a s .W c a u s e t h e b a s i c t h e o r y o u r s e l v e s t g e n e r a t e r a n d o mn u m b e r s u s i n g m a c h i n e l a n g u a g e . T h h a r d w a r e t e c h n i q u ed e s c r i b e d a b o v e u s e d b i n a r y s h i f t r e g i s t e r s t s t o r e t h I a n 0 s E a c h c e l l o s u c h s h i f t r e g i s t e r c o u l d c o n t a i n b u t a s i n g l eb i a n d , o c o u r s e , t h a t i t h e r e a s o n t h e s h i f t r e g i s t e r o u t p u tc o n s i s t s o s e r i a l b i s t r e a m o n l y o n b i w i d e . T h t h e o r y t h a ta p p l i e s t t h e s e b i n a r y s h i f t r e g i s t e r s , h o w e v e r , c a n b m o r eg e n e r a l l y s t a t e d . A l t h o u g h i s e e m s t h a v e b e e n g i v e n l i t t l ea t t e n t i o n , y o d o n ' t h a v e t r e s t r i c t y o u r s e l f t u s i n g b i n a r ys h i f t r e g i s t e r s . Y o c o u l d d e s i g n s h i f t r e g i s t e r w i t h c e l l s t h a tc a t a k e o a n o n u m b e r o d i s c r e t e v a l u e s , f o i n s t a n c e ,a n i n t e g e r b e t w e e n a n 9

I t u r n s o u t t h a t a l t h t h e o r y a p p l i c a b l e t t h b i n a r y v e r s i o no L i n e a r M a x i m a l L e n g t h S h i f t R e g i s t e r a l s o a p p l i e s t t h e s en o n - b i n a r y v e r s i o n s . A a l w a y s , t h e r e i p r o v i s o : w i t h t h b i n a r y s h i f t r e g i s t e r , w d i o u a d d i t i o n M O 2 w i t h a n o t h e rb a s e ( B w m u s t d o o u a d d i t i o n M O B F o r e x a m p l e , i y o u rs h i f t r e g i s t e r w o r k s w i t h t h e i n t e g e r s f r o m t ( t h a t ' s b a s e 1 0 ) ,t h e n y o u r a d d i t i o n m u s t b e d o n e M O 1 0 O n o t h e r t h i n g : t h b a s e y o s e l e c t m u s t b s m a l l e r t h a n t h n u m b e r o c e l l s i ny o u r s h i f t r e g i s t e r o t h s e q u e n c e t h a t r e s u l t s w o n ' t b o n o m a x i m u m l e n g t h . F o e x a m p l e , i y o u h a v e a e i g h t c e l l s h i f tr e g i s t e r , y o u h a v e t o p e r a t e i b a s e ( i n t e g e r s f r o m t o 6 ) o l e s s .

D o i n g i i S o f t w a r e

N o t h a t w e ' v e l o o k e d l i t t l e a t h i s h a r d w a r e s t u f f w h a t c a w d w i t h i t

R e m e m b e r h o l o n g t h 3 c e l l b i n a r y s h i f t r e g i s t e r p r o d u c e dI a n 0 s b e f o r e r e p e a t i n g . I y o t a k e t h i s s a m e 3 c e l l s h i f tr e g i s t e r , b u t o p e r a t e i b a s e 1 0 s a y , i n s t e a d o b a s e 2 t h o u t p u ts t r e a m w i l l c o n s i s t o i n t e g e r s i t h r a n g e o t 9 I y o g e n e r a t e t h i s s e q u e n c e a t h s a m e r a t e a t h b i n a r y s e q u e n c ew w o r k e d w i t h e a r l i e r , i w o n ' t r e p e a t f o 3 6 , 5 3 3 , 8 7 7 y e a r s .T h a t ' s r i g h t , m i l l i o n s o y e a r s .

T h T r a n s a c t o r 2 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 31/84

O c o u r s e w e ' r e m u c h m o r e i n t e r e s t e d i p r o d u c i n g r a n d o mn u m b e r s w i t h s o f t w a r e . I i v e r y e a s y t p r o g r a m t h c o m p u t e rt m i m i c t h e o p e r a t i o n o s h i f t r e g i s t e r . E a c h o t h c e l l s o t h s h i f t r e g i s t e r i r e p r e s e n t e d b m e m o r y l o c a t i o n . S i n c e e a c hm e m o r y l o c a t i o n i a e i g h t b i b y t e , e a c h c e l l o t h s h i f tr e g i s t e r c o u l d h o l d a n o 2 5 v a l u e s , n u m b e r f a l a r g e r t h a ny o u n e e d f o t h i s t e c h n i q u e . W h a t y o d i d e c i d e o t h n u m b e r o c e l l s y o w a n t t u s t h e n s e u t h a t m a n y m e m o r yl o c a t i o n s i R A M . B e f o r e y o c a u s t h s h i f t r e g i s t e r y o u h a v et f i l l e a c h o t h c e l l s w i t h a n u m b e r . R e m e m b e r t h a t t h i sn u m b e r h a t b l e s s t h a n t h m o d u l u s B y o u ' v e d e c i d e d o ( f r o m 0 t 9 f o e x a m p l e , i i t ' s M O 1 0 ) . A n c o m b i n a t i o n c a nb u s e d e x c e p t a l t h c e l l s c a n ' t b z e r o o n o u t p u t w i l l r e s u l t .N e x t , c o n s u l t F i g u r e t d e t e r m i n e w h a t t a p s a r e r e q u i r e d .

T m a k e t h i s s o f t w a r e s h i f t r e g i s t e r a c t u a l l y s h i f t , y o p e r f o r ma a d d i t i o n M O o t h v a l u e s i t h c e l l l o c a t i o n s i n d i c a t e da s t a p s i F i g u r e 2 S a v e t h i s r e s u l t s o m e w h e r e t e m p o r a r i l y .N e x t , l o a d t h h i g h e s t n u m b e r e d c e l l ( m e m o r y l o c a t i o n ) w i t ht h e n e x t h i g h e s t n u m b e r e d c e l l ' s v a l u e a n s o d o w n t c e l l2 A t h i s p o i n t , a l c e l l s w i l l h a v e t h v a l u e t h e i r p r e d e c e s s o rh a w i t h t h e x c e p t i o n o c e l l 1 N o t a k e t h e s t o r e d r e s u l t o t h a d d i t i o n a n l o a d i i n t o c e l l 1 T h i s c o m p l e t e s a s i n g l e s h i f to p e r a t i o n a n r e s u l t s i t h e g e n e r a t i o n o o n n u m b e r o t h r a n d o m s e q u e n c e . Y o c a u s t h v a l u e c o n t a i n e d i a n c e l la y o u r s o u r c e o o u t p u t b u a l w a y s u s e t h s a m e c e l l .

A b o u t t h P r o g r a m s

P r o g r a m ( R N D G E N 1 ) i a n a s s e m b l y l a n g u a g e l i s t i n g o fp r o g r a m t h a t i m p l e m e n t s 2 c e l l s h i f t r e g i s t e r o p e r a t e d M O 1 0 N o t e t h a t b e f o r e y o c a u s t h i s r o u t i n e y o u h a v e t f i l le a c h o t h 2 c e l l s w i t h s o m e i n t e g e r v a l u e l e s s t h a n 1 0 P r o g r a m i B A S I C p r o g r a m t h a t l o a d s t h o b j e c t c o d e f o R N D G E N 1 a n t h e n l e t s y o w o r k w i t h i f r o m B A S I C . I w i l la s y o t t y p e i a 2 d i g i t n u m b e r ( t h e s e e d ) . O n c e y o u d ot h i s , t h m a c h i n e l a n g u a g e r o u t i n e w i l l s t a r t p r o d u c i n g r a n d o mn u m b e r s . T h e s e w i l l b p r i n t e d o t h s c r e e n a t h e y a r g e n e r a t e d . Y o m i g h t o b s e r v e t h e f f e c t o d i f f e r e n t s e e d v a l u e so t h o u t p u t v a l u e s .

T h i s m a c h i n e l a n g u a g e r o u t i n e c o u l d b t h b a s i s f o r a n d o mn u m b e r g e n e r a t o r i n l o t s o a p p l i c a t i o n s , b u i p r e s e n t e d h e r em a i n l y t s h o w h o e a s i l y t h c o n c e p t i p r o g r a m m e d . I m i g h tb i n c o n v e n i e n t t l o a d 2 n u m b e r s e v e r y t i m e y o u n e e d e dt h i s r o u t i n e .

P r o g r a m ( R N D G E N 2 ) i m o r e e x t e n s i v e d e v e l o p m e n t o t h i d e a . T h i s r o u t i n e a l r e a d y h a 1 o t h s e e d v a l u e s p r e -p o s i t i o n e d i t h s h i f t r e g i s t e r c e l l s a n d y o u o n l y n e e d t s u p p l yf i v e o t h e r s . T h e y g i t h f i r s t f i v e c e l l s o t h s h i f t r e g i s t e r( l o c a t i o n s $ 2 3 2 C t h r o u g h $ 2 3 3 0 ) . T h e n , b e f o r e a n n u m b e r sa r p r o d u c e d a s o u t p u t , t h s h i f t r e g i s t e r i s h i f t e d 2 5 6 0 t i m e s .T h i s e n s u r e s t h a t t h o r i g i n a l s e e d h a s l o n g s i n c e d i s a p p e a r e d .O n c e t h i s i d o n e , s h i f t i n g o c c u r s n o r m a l l y . N o t i c e t h a t t h f i r s tt i m e y o e n t e r t h i s p r o g r a m y o u d o i a I N I T ( l o c a t i o n $ 2 3 4 1 ) .T h p r o g r a m t h e n p e r f o r m s t h 2 5 6 0 s h i f t o p e r a t i o n s d e s c r i b e da b o v e . W h e n t h i s i c o m p l e t e d , a R T i e x e c u t e d r e t u r n i n g

c o n t r o l t t h c a l l i n g p r o g r a m . F r o m h e r e o y o e n t e r t h er o u t i n e a S H I F T ( l o c a t i o n $ 2 3 4 A ) e a c h t i m e y o w a n t t r e t r i e v e r a n d o m n u m b e r .

P r o g r a m d o e s t h s a m e t h i n g t d e m o n s t r a t e R N D G E N 2 a p r o g r a m d o e s f o R N D G E N 1 e x c e p t t h a t y o o n l y e n t e r a f i v ed i g i t n u m b e r . A l l o f t h p r o g r a m s w i l l o p e r a t e i b o t h C - 6 4 a n C - 1 2 8 m o d e ( 4 o 8 c o l u m n d i s p l a y i C - 1 2 8 m o d e ) .

B o t h o t h e s e a s s e m b l y l a n g u a g e p r o g r a m s p r o d u c e a o u t p u ts i n g l e i n t e g e r f r o m t f o e a c h s h i f t o p e r a t i o n . O c o u r s e ,y o m a w a n t r a n d o m n u m b e r o s o m e o t h e r l e n g t h , s a f o u ro f i v e d i g i t s i n w i d t h . Y o c a d t h i s e a s i l y b t a k i n gs u c c e s s i v e v a l u e s a n a s s e m b l i n g t h e m a c c o r d i n g l y . T h e x a c td e t a i l s w o u l d d e p e n d o h o y o w e r e u s i n g t h r a n d o mn u m b e r g e n e r a t o r , w h e t h e r f r o m m a c h i n e l a n g u a g e o B A S I C ,e t c . A y o c a s e e , i i v e r y e a s y t p r o d u c e a s t r o n o m i c a l l yl o n g s e q u e n c e s o p s e u d o - r a n d o m n u m b e r s , ( t h i s 2 c e l li m p l e m e n t a t i o n g e n e r a t e s 1 0 2 1 n u m b e r s b e f o r e i r e p e a t s ) .T h t e c h n i q u e i r e l a t i v e l y s t r a i g h t f o r w a r d t p r o g r a m a t h a s s e m b l y l a n g u a g e l e v e l ; e v e n s o i i p o w e r f u l m e t h o d f o p r o d u c i n g r a n d o m n u m b e r s .

P R O G R A M 1 S o u r c e C o d e F o R N D G E N 1

b a s ec e l l 2 1c e l l 2c e l Mt m

$ 2 3 4 1

s h i f t

t e m p

l o o p

c l I d a d c m b c s b s t I d I d s t d e c p b n I d s t r t

$ 2 3 2 b$ 2 3 4 0$ 2 3 2 d$ 2 3 2 c$ 2 3 2 a

c e l l 2 1c e l l 2# 1 t e m p# 1 t m # 2 b a s e . xb a s e + 1 ,

# l o o pt m c e l M

; e n t r y p o i n t

; a d d t h e s e c e l l s

; a c c < 1 0 : a l r e a d y m o 1 ; i n o t , m a k e r e s u l t m o 1 ; s t o r e u n t i l s h i f t i d o n e; o t i m e s t s h i f t; s h i f t f r o m h e r e . . ; t h e r e; n e x t l o w e r c e l l; d o n e y e t ?; n o , t h e n l o o p; g e t m o 1 a d d i t i o n r e s u l t; a n d p u t i t h f i r s t c e l l; b a c k t o m a i n p r g m .

. e n d

P R O G R A M 2 B a s i c D e m o / L o a d e r F o R N D G E N 1

C O

I N H

1 0 r e s a v e " 0 : p g m 2 " , 1 1 r e p r o g r a m1 2 r e l o a d s a n r u n s r n d g e n i1 3 r e t d e m o r a n d o m g e n e r a t o r o u t p u t1 4 r e b a s i c l o a d e r

T h e T n 2 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 32/84

I E B I J

G I

H K I

I

I C C

L E E D C N L A G

1 5 f o t 3 1 6 r e a d b1 7 p o k e 9 0 2 5 + a , 1 8 n e x t1 9 0 r e m r n d g e n i d e m o f r o m b a s i c2 0 r e 2 1 p r i n t t y p e a n 2 d i g i t

n u m b e r =2 2 f o t 2 2 3 g e k $ i k $ " t h e n 2 3 2 4 j j k 2 5 p o k e 9 0 0 4 a , v a l ( k $ ) : r e c e l l s t h r u 2 g e

s e e d l o a d e d2 6 p r i n t c h r $ ( 1 4 7 ) ; j $2 7 n e x t2 8 s y 9 0 2 5 : r e = $ 2 3 4 12 9 p r i n t p e e k ( 9 0 0 4 ) ; : r e = $ 2 3 2 c3 0 g o t o 2 8 3 1 0 r e m3 2 0 r e m l o a d d a t a3 3 d a t a 2 4 , 1 7 3 , 6 4 3 5 , 1 0 9 , 4 5 3 5 , 2 0 13 4 d a t a 1 0 , 1 4 4 , 2 , 2 3 3 , 1 0 , 1 4 1 , 4 2 3 3 5 d a t a 1 6 2 , 2 0 , 1 8 9 , 4 3 3 5 , 1 5 7 , 4 4 3 3 6 d a t a 2 0 2 , 2 2 4 , 0 , 2 0 8 , 2 4 5 , 1 7 3 , 4 2 3 3 7 d a t a 1 4 1 , 4 4 , 3 5 , 9

P R O G R A M 3 S o u r c e C o d e F o R N D G E N 2

b a s e $ 2 3 2 bc e l l 2 1 $ 2 3 4 0c e l l 2 $ 2 3 2 dc e l l 1 $ 2 3 2 ct m $ 2 3 2 at l a g $ 2 3 2 9h i c n t $ 2 3 2 8

p a r t i a l s e e d$ 2 3 3 1

. b y t e 3 , 5 , 9 , 4 , 7 , 1 , 4 , 6 , 3 , 2 , 0 , 5 , 7 , 4 , 9 , 8* = $ 2 3 4 1

i n i t I d # ; e n t r y p o i n t t r e i n i t i a l i z es t a h i c n t ; z e r o c o u n t e r m o s t s i b y t es t f l a g ; c l e a r f l a gt a y ; z e r o c o u n t e r l e a s t s i b y t e

s h i f t c l c ; e n t r y a f t e r r e i n i t i a l i z a t i o nI d c e l l 2 1a d c e l l 2c m p # 1 0b c t e m p ; a c c < 1 0 : a l r e a d y m o 1 s b # 1 ; i n o t . m a k e r e s u l t m o 1

t e m p s t t m ; s t o r e u n t i l s h i f t i d o n eI d # 2 ; # o f t i m e s t s h i f t

l o o p I d b a s e . x ; s h i f t f r o m h e r e . . s t b a s e 1 , ; t h e r ed e ; n e x t l o w e r c e l lc p # ; d o n e y e t ?b n l o o p ; n o , t h e n l o o pI d t m ; g e t m o 1 a d d i t i o n r e s u l t . .

s t c e l M ; a n d p u i t h f i r s t c e l lI d f l a g ; g e t f l a gc m p # $ f f ; i n i t i a l r u n n u p d o n e ?b n I o o p 2 ; n o , t h e n c o n t i n u er t ; y e s , b a c k t m a i n p r g m

I o o p 2 i n ; i n c r e m e n t l e a s t s i b y t ec p y # 0b n s h i f t ; n o t O : c o n t i n u ei n h i c n t ; 0 i n c r e m e n t m o s t s i b y t eI d h i c n tc m p # 1 0 ; r u n n u p d o n e y e t ?b n s h i f t ; n o , c o n t i n u eI d # $ f fs t f l a g ; y e s , s e f l a gj m s h i f t ; d o n e r u n n u p , s h i f t n o r m a l n o

. e n d

P R O G R A M 4 B a s i c D e m o / L o a d e r F o R N D G E N 2

E G J N H G E H

I M

G I

N K I

P

I C C L F C O N H

I E B D G O

L E J D I

1 0 r e s a v e " 0 : p g m 4 " , 1 1 r e p r o g r a m1 2 r e l o a d s a n r u n s r n d g e n 21 3 0 r e m t d e m o r a n d o m # g e n e r a t o r o u t p u t1 4 r e b a s i c l o a d e r1 5 f o t 9 1 6 r e a d1 7 p o k e 9 0 0 9 + a , 1 8 n e x t1 9 r e r n d g e n 2 d e m o f r o m b a s i c2 0 r e 2 1 p r i n t = = d i g i t s e e d2 2 f o t 2 3 g e k $ i k $ " t h e n 2 3 2 4 0 j $ j k 2 5 0 p o k e 9 0 0 4 a , v a l ( k $ ) : r e c e l l s t h r u 5 g e t

s e e d l o a d e d2 6 p r i n t c h r $ ( 1 4 7 ) ; j $2 7 n e x t2 8 s y 9 0 2 5 : r e = $ 2 3 4 12 9 s y 9 0 3 4 : r e $ 2 3 4 a3 0 p r i n t p e e k ( 9 0 0 4 ) ; : r e = $ 2 3 2 c3 1 g o t o 2 9 3 2 r e 3 3 r e l o a d d a t a3 4 d a t a 3 , 5 , 9 , 4 , 7 , 1 4 3 5 d a t a 3 , 2 , 0 , 5 , 7 , 4 , 9 ,3 6 d a t a 1 6 9 , 0 , 1 4 1 , 4 0 3 5 , 1 4 1 , 4 1 3 3 7 d a t a 1 6 8 , 2 4 , 1 7 3 , 6 4 3 5 , 1 0 9 , 4 5 3 3 8 d a t a 2 0 1 , 1 0 , 1 4 4 , 2 , 2 3 3 , 1 0 , 1 4 1 , 4 3 9 0 d a t a 3 5 , 1 6 2 , 2 0 , 1 8 9 , 4 3 3 5 , 1 5 7 , 4 4 0 d a t a 3 5 2 0 2 , 2 2 4 , 0 2 0 8 , 2 4 5 , 1 7 3 , 4 4 1 d a t a 3 5 , 1 4 1 , 4 4 3 5 , 1 7 3 , 4 1 3 5 , 2 0 14 2 d a t a 2 5 5 , 2 0 8 , 1 9 6 , 2 0 0 , 1 9 2 , 0 , 2 0 84 3 d a t a 2 0 8 , 2 3 8 , 4 0 3 5 , 1 7 3 , 4 0 3 5 , 2 0 14 4 d a t a 1 0 , 2 0 8 , 1 9 8 , 1 6 9 , 2 5 5 , 1 4 1 , 4 1 3 4 5 d a t a 7 6 7 4 3

T h T r a n s a c t o r 3 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 33/84

N - B o d y S i m u l a t o rF o T h C o m m o d o r e 6

R i c h a r d L u c a sW L o A n g e l e s , C

T h s o l a r s y s t e m i a n e x a m p l e o m u l t i p l e - b o d y s y s t e m . E a c hp l a n e t i a f f e c t e d b t h g r a v i t a t i o n a l a t t r a c t i o n so t h o t h e r p l a n e t s a n d , m o s t l y , t h s u n . .

I n t r o d u c t i o n

T h m o t i o n s o m u l t i p l e a s t r o n o m i c a l b o d i e s , a f f e c t e d o n l y b t h g r a v i t a t i o n a l p u l l t h e y e x e r t u p o n o n a n o t h e r , t r a c e c o p l e x p a t h s t h a t u s u a l l y d e f y e a s y a n a l y t i c a l s o l u t i o n . F i n d i n gt h m o t i o n s o a a r b i t r a r y g r o u p o b o d i e s i c a l l e d t h N B o d y P r o b l e m , w h i c h , i g e n e r a l , h a n a n a l y t i c s o l u t i o n .

T h s o l a r s y s t e m i a e x a m p l e o m u l t i p l e - b o d y s y s t e m .E a c h p l a n e t i a f f e c t e d b t h g r a v i t a t i o n a l a t t r a c t i o n s o t h o t h e r p l a n e t s a n d , m o s t l y , t h e s u n . J u p i t e r a n i t m a n ys a t e l l i t e s a r a n o t h e r m u l t i p l e b o d y s y s t e m . M a n y s t a r s i t h g a l a x y c o m e i c l u m p s o t w o , t h r e e , o m o r e s u n s o r b i t i n ga r o u n d o n a n o t h e r .

I o n w a n t s t c o m p u t e t h t r a j e c t o r i e s i a n - b o d y s y s t e m ,t w b a s i c o p t i o n s a r a v a i l a b l e : a a n a l y t i c a l a p p r o x i m a t i o n ,w h i c h u s u a l l y r e q u i r e s s o m e e x p e r i e n c e w i t h m a t h e m a t i c s a n c e l e s t i a l m e c h a n i c s ; o n u m e r i c a l i n t e g r a t i o n o d i g i t a l c o p u t e r . N u m e r i c a l i n t e g r a t i o n i c o m p l e t e l y g e n e r a l , a n r q u i r e s m o d e s t e f f o r t t s e u p a n d s t u d y s y s t e m .

N - B o d y S i m u l a t o r ( N B S ) i p r o g r a m f o t h C o m m o d o r e 6 t h a t s o l v e s t h N - B o d y P r o b l e m b n u m e r i c a l i n t e g r a t i o n . Y o c a s p e c i f y a n s y s t e m u t f o r t y b o d i e s a n w a t c h t h e i rm o t i o n s a t h e y a r p l o t t e d i t h C o m m o d o r e 6 4 ' s h i g hr e s o l u t i o n b i m a m o d e . B e s i d e s h a v i n g v a l u e a d i s p l a y t o o lf o a s t r o d y n a m i c i s t s , t h p r o g r a m i e d u c a t i o n a l s i n c e i a l l o w sy o t r e a c h i a n m a n i p u l a t e c e l e s t i a l s y s t e m s . ( T h e s c r e e nd i s p l a y s a r e a l s o v e r y a t t r a c t i v e , b u t h i s i n o t t h e m a i n p o i n t o t h p r o g r a m . )

S i m u l a t o r M a t h e m a t i c s

T h m o t i o n o e a c h b o d y i d e s c r i b e d b s e v e n a t t r i b u t e s : t h b o d y ' s l o c a t i o n i x y c o o r d i n a t e s ; t h e b o d y ' s v e l o c i t y i x y c o o r d i n a t e s ( w h i c h a r e r e f e r r e d t a u v a n w ) a n t h e m a s s .

N B u s e s c o o r d i n a t e s y s t e m c o m p a t i b l e w i t h t h e C o m m o d o r e6 h i g h r e s o l u t i o n s c r e e n t d i s p l a y b o d y m o t i o n s . T h x - a x i s

i h o r i z o n t a l a n p o s i t i v e g o i n g t t h r i g h t , t h y - a x i s i v e r t i c a l a n p o s i t i v e d o w n w a r d , a n t h z - a x i s , w h i c h r e a l l yc a n ' t b s e e n i t h d i s p l a y , g o e s d i r e c t l y i n t o t h s c r e e n . T h u p p e r l e f t - h a n d c o r n e r o t h s c r e e n i t h c o o r d i n a t e ( 0 , 0 , z ) ,a n t h l o w e r r i g h t - h a n d c o r n e r i t h c o o r d i n a t e ( 3 1 9 , 1 9 9 , z ) .

B o d y p o s i t i o n s a n v e l o c i t i e s a r e s t o r e d i t e r m s o " p i x e l s "a n " p i x e l s p e u n i t t i m e " . T h d i s t a n c e e a c h p i x e l r e p r e s e n t sd e p e n d s u p o n t h s c a l e s e l e c t e d . T h r e e s c a l e s a r e a v a i l a b l e i N B S :

1 p i x e l 1 0 T 7 k i l o m e t e r sm a s s 1 0 0 0 k i l o g r a m st i m e d a

2 p i x e l a s t r o n o m i c a l u n i t ( o n e A e q u a l s t h m e a nd i s t a n c e f r o m t h e a r t h t t h e s u n )

m a s s e a r t h m a s s ( 5 . 9 7 4 2 x 1 0 1 2 4 k i l o g r a m s )t i m e d a

3 p i x e l 1 0 t 6 m e t e r sm a s s k i l o g r a mt i m e s e c o n d

S c a l e i a p p r o p r i a t e f o d i s p l a y i n g t h i n n e r s o l a r s y s t e m o u t M a r s . S c a l e 2 a l l o w s t h e e n t i r e s o l a r s y s t e m t f i o t h s c r e e n ( t h o u g h t h o r b i t s o f t h e i n n e r p l a n e t s w o n ' t b v e r yd i s t i n g u i s h a b l e ) . S c a l e i i n t e n d e d f o d i s p l a y s o n e a r - E a r t hs p a c e .

S i m u l a t i o n O p e r a t i o n

T h N B c o m m a n d s c r e e n s h o w s t h a t t r i b u t e s o o n e b o d yf r o m t h s y s t e m c u r r e n t l y i m e m o r y a n m e n u o c o m a n d s . T h b o d y a t t r i b u t e s a r d i s p l a y e d i w i n d o w . Y o c a d e t e r m i n e w h i c h b o d y i d i s p l a y e d i n t h i s w i n d o w b p r e s s i n gt h F l o r F k e y s . A l c o m m a n d s c a b e x e c u t e d f r o m t h m a i n m e n u . S i m p l y p r e s s t h e h i g h l i g h t e d l e t t e r c o r r e s p o n d i n gt t h e d e s i r e d c o m m a n d .

T h T r a n s a c t o r 3 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 34/84

C o m m a n d sE x i t E n t h p r o g r a m .P l o t S t a r t t h e s i m u l a t i o n .N e S y s t e m I n p u t t h p a r a m e t e r s f o o n o m o r e b o d i e s . T h p r o g r a m

p r o m p t s f o t h n u m b e r o b o d i e s i t h e s y s t e m . N B d o e s n ' t e r a s ea n v a l u e s p r e s e n t l y s t o r e d , s o p r e s s i n g R E T U R N a a n y p r o m p tw i t h o u t e n t e r i n g a n y t h i n g s i m p l y r e t a i n s t h p r e v i o u s v a l u e .

s C a l e C h a n g e t h s c a l e u s e d .D i s p l a y C h a n g e f r o m s p r i t e m o d e t h i g h r e s o l u t i o n m o d e , o r v i c e v e r s a .

I h i g h r e s o l u t i o n m o d e t h p o i n t s r e p r e s e n t i n g t h e b o d i e s a r n o e r a s e d , s e a c h b o d y g r a d u a l l y l e a v e s a t r a c i n g o i t p a t h a c r o s st h s c r e e n . S p r i t e m o d e c a d i s p l a y m a x i m u m o e i g h t b o d i e s .

L o a d L o a d a n - b o d y s y s t e m f r o m d i s k .S a v e S a v e t h n - b o d y s y s t e m p r e s e n t l y i m e m o r y t d i s k . N B

a u t o m a t i c a l l y a d d s t h s u f f i x " . n b " t t h f i l e n a m e .P r e v i o u s B o d y D i s p l a y t h p a r a m e t e r s o t h p r e v i o u s b o d y i t h s y s t e m l i s t .N e x t B o d y D i s p l a y t h n e x t b o d y .X Y P o s i t i o n E n t e r n e v a l u e f o t h b o d y c u r r e n t l y i t h d a t a w i n d o w .U V V e l o c i t y C h a n g e t h v e l o c i t y o t h b o d y c u r r e n t l y i t h e d a t a w i n d o w .M a s s C h a n g e t h m a s s o t h b o d y c u r r e n t l y d i s p l a y e d .T i m e C h a n g e t h t i m e s t e p i n t e r v a l .R e n a m e C h a n g e t h n a m e o t h b o d y i t h e d a t a w i n d o w .

P r e s s i n g a n k e s t o p s t h e s i m u l a t i o n ,b u t n o t e t h a t t h c u r r e n t p o s i t i o n s a r el o s t w h e n t h d i s p l a y i i n t e r r u p t e d i t h i s m a n n e r . P r e s s i n g t h e F k e i n t e rr u p t s t h s i m u l a t i o n a n s t o r e s t h c u r e n t p o s i t i o n s s o t h a t y o c a c h o o s e t p i c k u w h e r e y o l e f t o f f .

S i m u l a t i o n S t r a t e g i e sA c c u r a c y d e p e n d s o n t h s i z e o f t h i n t e g r a t i o n t i m e s t e p . A c c u r a c y i a c h i e v e d b u s i n g s m a l l t i m e s t e p . O t h o t h e r h a n d , s m a l l t i m e s t e p m a k e st h s i m u l a t i o n p r o c e e d m o r e s l o w l y .T h b e s t c o m p r o m i s e i t h l a r g e s t t i m es t e p t h a t g i v e s a c c e p t a b l e a c c u r a c y .

F o n e s i t u a t i o n s t r i a l a n e r r o r w i l lr e v e a l t h b e s t t i m e s t e p . S t a r t w i t hl a r g e t i m e s t e p ( w h i c h t a k e s l e s s c o m p ut a t i o n t i m e ) , t h e n d e c r e a s e t h t i m e s t e pu n t i l g o o d r e s u l t s a r a c h i e v e d .

B o d y *

B o d y *

B o d y

B o d y

'

( F o r J u n e

N a m eS u

M e r c u r yV e n u sE a r t hM a r s

( F o r J u n e

N a m eS u

J u p i t e rS a t u r nU r a n u s

N e p t u n eP l u t o

1 1 9 8 6 i

M a s s1 . 9 8 9 e 2 75 . 9 7 e 2 04 . 8 7 e 2 15 . 9 7 e 2 16 . 4 2 e 2 0

1 1 9 8 6 i

M a s s3 3 2 9 3 1 . 63 1 7 . 8 6 7

9 5 . 2 4 31 4 . 5 4 5 91 7 . 2 4 0 8

2 . 1 7 6 e - 3

S o m e S i t u a t i o n s T T r I n n e r s o l a r s y s t e m

h e l i o c e n t r i c c o o r d i n a t e s b a s e d o t h e c l i p t i c o 1 9 5 0 . )

1 5 1 4 7 . 8 61 4 0 . 6 21 4 4 . 7 41 4 7 . 8 4

s c a l e

1 0 1 0 4 . 2 51 0 5 . 2 18 5 . 7 7 17 8 . 1 8 4

. 5 4 5 9. 6 1 4 3

1 . 2 2 e - 3- . 4 0 8 3

O u t e r s o l a r s y s t e m

0 - . 4 6 0 5 - . 1 7 2 0 . 0 2 7 6 0 7- . 1 4 8 2 - . 2 6 6 4 . 7 5 e - 3

. 2 3 7 2 - . 0 9 5 . 5 e - 6. 2 1 6 5 - 2 . 7 6 e - 3 - 5

h e l i o c e n t r i c c o o r d i n a t e s b a s e d o t h e c l i p t i c o 1 9 5 0 . )

T r i n a r y s t a r s y s t e m :s c a l e

N a m e M a s sS u n 'S u n 'S u n '

' 3 e 2 7* 3 e 2 7' I e 2 7

1 5 9 1 5 0 1 3 5

5 0 1 0 0

B i n a r y s t a r s y s t e m :s c a l e

N a m e M a s sS u n 'S u n '

* 3 e 2 7* 3 e 2 7

1 5 0 1 0 01 5 0 1 2 5

1 5 1 5 4 . 6 31 4 5 . 9 61 4 9 . 6 71 5 1 . 7 11 2 6 . 7 7

U - . 1 5 0

. 1 . 0

- . 1 5 0. 1

s c a l e

1 0 9 8 . 1 4 49 0 . 8 2 78 0 . 7 2 26 9 . 7 5 68 3 . 6 2 7

- . 0 9 6 6 3. 3 1 8 2 0

- . 0 6 8 4. 5 7 8 9

8 . 4 4 3

B o d y *

B o d y *

0 2 . 7 1 9 e - 3 7 . 3 6 9 e - 3 - 4 . 7 8 9 e - 3 - 2 . 2 6 e - 3 - 3 . 9 0 3 e - 3 - 2 . 4 7 7 e - 4 - 3 . 1 0 8 e - 3 1 . 9 4 2 e - 4 - 2 . 0 4 4 e - 3 - 2 . 8 5 8 e - 3 - 3

3 3 e - 3

0 2 0 e - 55 3 e - 41 4 3 e - 56 2 9 e - 50 6 2 e - 4

K e m p l e r e r ' s R o s e t t es c a l e

N a m e M a s sS u n * l 1 . 8 e 2 9 1 2 0 7 0S u n * 2 1 . 8 e 2 9 1 8 0 7 0S u n * 3 1 . 8 e 2 9 1 8 1 3 S u n * 4 1 . 8 e 2 9 1 2 0 1 3 0

S i m p l e S y s t e ms c a l e

N a m e M a s s X H e a v y l e 3 0 1 5 0 1 0 0

L i g h t l e l O 1 5 0 1 5 0

-

0

-

T h T r a n s a c t o r 3 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 35/84

I 0

I G

N F D N

E M O C

I

G C M

L

A

M P

F F N P

N

N M P C A

I A O

C K E J

N J

B

I O

I

J B

N - B o d y S i m u l a t o r

1 0 r e n - b o d y s i m u l a t o r1 1 0 r e m v e r s i o n 6 . 0 91 2 0 r e m b r i c h a r d l u c a s1 3 0 :1 4 0 r e m i n i t i a l i z e1 5 0 p o k e 2 0 3 8 , p e e k ( 5 5 ) : p o k e 2 0 3 9 , p e e k ( 5 6 )1 6 p o k e 5 6 , 6 2 : p o k e 5 5 , 0 : c l 1 7 0 d i m x ( 4 0 ) , y ( 4 0 ) , z ( 4 0 ) , u ( 4 0 ) , v ( 4 0 ) , w ( 4 0 ) ,

x 1 ( 4 0 ) , y 1 ( 4 0 ) , z 1 ( 4 0 )1 8 d i m ( 4 0 ) , g m ( 4 0 ) , e 2 ( 7 )1 9 0 d i m x 0 ( 4 0 ) , y 0 ( 4 0 ) , z 0 ( 4 0 ) , u 0 ( 4 0 ) , v 0 ( 4 0 ) ,

w 0 ( 4 0 ) , a O ( 4 0 ) , b 0 ( 4 0 ) , c 0 ( 4 0 )2 0 d i e x ( 7 ) , u n ( 3 ) , u n $ ( 3 ) , t u $ ( 3 )2 1 0 f o r i 1 t o 3 : r e a d t u $ ( i ) , u n $ ( i ) : n e x t2 2 d a t a d a y s " , " 1 0 t 7 k i l o m e t e r s - t o n s - d a y s " ,

d a y s " , " A U - E a r t h m a s s - d a y s " , " s e c o n d s "2 3 d a t a 1 0 O O k m - k g - s e c2 4 g o s u b 2 8 2 02 5 0 g = 6 . 6 7 e - 1 1 : s y 1 : c f 4 0 : c 4 5 0 4 : c 7

: c 2 4 8 : v i 5 3 2 4 8 : h i v 1 6 : c 5 = 2 5 52 6 h 1 6 1 0 2 4 : o $ e p n c d l s " c h r $ ( 1 3 3 )c h r $ ( 1 3 6 ) x y z u v w m t r " : s

2 7 n b O : d t 1 0 : d 2 d t * d t / 2 : d 3 d 2 * d t / 3: d d 3 * d t / 4 : c b

2 8 f o r i 0 t o 7 : e x ( i ) 2 t ( 7 - i ) : n e x t2 9 f o r i 0 t o 7 : e 2 ( i ) 2 t i : n e x t3 0 u n ( 1 ) 1 0 0 0 * 8 6 4 0 0 t 2 / 1 e 1 0 t 33 1 u n ( 2 ) 5 . 9 7 4 2 e 2 4 * 8 6 4 0 0 t 2 / 1 , 4 9 5 9 7 8 9 e 1 1 1 33 2 0 u n ( 3 ) 1 / 1 e 6 t 33 3 p o k e 5 3 2 8 0 , 0 : p o k e 5 3 2 8 1 , 0 : p r i n t c h r $ ( 1 4 )

c h r $ ( 8 ) c h r $ ( 1 5 1 ) ;3 4 b $ " : l $ = " : f o r i 1 t o 3 8 : b $ b c h r $ ( 3 2 )

: l l c h r $ ( 1 9 2 ) : n e x t i3 5 b c h r $ ( 2 9 ) b c h r $ ( 2 9 )3 6 0 :3 7 r e m a i n l o o p3 8 0 g o s u b 2 4 6 03 9 0 g o s u b 2 6 2 04 0 p r i n t " > " ;4 1 0 g e t a $ : i f a $ = " " t h e n 4 1 4 2 f o r i 1 t o 1 8 : i f a $ m i d $ ( o $ , i , 1 ) t h e n p r i n t a $

: g o t o 4 5 4 3 n e x t4 4 g o t o 4 1 4 5 o g o t o 4 9 0 , 5 1 0 , 1 9 7 0 , 2 9 0 0 , 3 0 7 0 , 2 1 1 0 ,2 2 5 0 , 3 1 9 0 , 3 2 3 04 6 i 1 t h e n i n p u t " N e n a m e o b o d y " ; n $ ( c b )

: g o t o 3 7 4 7 i n p u t " n e v a l u e " ; n 4 8 o i - g o t o 2 3 9 0 , 2 4 0 0 , 2 4 1 0 , 2 4 2 0 , 2 4 3 0 ,

2 4 4 0 , 2 3 8 0 , 2 4 5 04 9 0 p o k e 5 5 , p e e k ( 2 0 3 8 ) : p o k e 5 6 , p e e k ( 2 0 3 9 )

: c l r : e n d5 0 0 :5 1 r e p l o t t r a j e c t o r i e s5 2 i n b t h e n p r i n t N b o d i e s i c u r r e n t

s y s t e m . " : g o t o 3 7 05 3 i s t h e n 6 1 0 : r e m s k i p h i r e s f o s p r i t e s5 4 r e s e u h i r e s s c r e e n

G

M G M

H

A

F M A O O N O O

N M N M L I I I

N A G D N E A A A M H F F F C A D

G K A

N H K K L

M G B P P P

M B

5 5 p o k e 5 6 5 7 8 . p e e k ( 5 6 5 7 8 ) o r 3 : r e m s w i t c h t o v i eb a n k i ( 1 6 k - 3 2 k )

5 6 0 p o k e 5 6 5 7 6 , ( p e e k ( 5 6 5 7 6 ) a n d 2 5 2 ) o r 25 7 0 p o k e 5 3 2 7 2 , ( p e e k ( 5 3 2 7 2 ) a n d 1 5 ) o r 1 2 8

: r e m c h a r s c r e e n i i 9 t 5 8 0 p o k e 5 3 2 6 5 , p e e k ( 5 3 2 6 5 ) o r 3 2 : r e m t u r n o

h i r e s s c r e e n5 9 0 p o k e 8 2 0 , 0 : p o k e 8 2 1 , 6 4 : p o k e 8 2 2 , 0

: p o k e 8 2 3 , 9 6 : p o k e 2 5 1 , 0 : s y s 4 9 1 5 26 0 p o k e 8 2 0 , 0 : p o k e 8 2 1 , 9 6 : p o k e 8 2 2 , 2 3 1

: p o k e 8 2 3 , 9 9 : p o k e 2 5 1 , 1 6 : s y s 4 9 1 5 26 1 i f s p t h e n f o r i v i t o h i : p o k e i , . : n e x t6 2 i f s p t h e n a O : f o r i t o 8 : a 1 a o

( - ( i < n b ) * 2 t ( i - 1 ) ) : n e x t : p o k e v 2 , a 6 3 i f s p t h e n p o k e 5 3 2 8 1 , 0 : p r i n t c h r $ ( 1 4 7 )6 4 0 16 5 0 :6 6 r e m o v e s t a r t p a r a m e t e r s t w o r k i n g a r r a y s6 7 f o r i 1 t o n b6 8 0 x ( i ) x 0 ( i )6 9 0 y ( i ) y 0 ( i )7 0 0 z ( i ) z 0 ( i )7 1 u ( i ) u 0 ( i )7 2 v ( i ) v 0 ( i )7 3 w ( i ) w 0 ( i )7 4 n e x t7 5 r e c o m p u t e a c c e l a t i m e d b e f o r e s t a r t7 6 f o r i 1 t o n b7 7 0 a 0 ( i ) . : b 0 ( i ) . : c 0 ( i )7 8 n e x t7 9 f o r i 1 t o n b8 0 0 a x . : a y . : a z8 1 0 f o r j 1 t o n b8 2 i f j t h e n 9 1 08 3 d x ( j ) - x ( i )8 4 0 d y y f f l - y ( i )8 5 d z z ( j ) - z ( i )8 6 s q r ( d x * d x d y * d y d z * d z )8 7 r r * r * r / g m ( j )8 8 a a d x / r 38 9 a a d y / r 39 0 a a d z / r 39 1 n e x t9 2 x ( i x ( i ) - u ( i ) * d t + a x * d 29 3 ( i y ( i ) - v ( i ) d a d 9 4 z ( i z ( i ) - w ( i ) * d t a z * d 29 5 n e x t9 6 f o r i 1 t o n b9 7 a . : a y . : a z9 8 0 f o r j 1 t o n b9 9 i f j t h e n 1 0 8 01 0 0 0 d x x 1 ( j ) - x 1 ( i )1 0 1 0 d y = y 1 ( j ) - y 1 ( i )1 0 2 0 d z z ( j ) - z 1 ( i 1 0 3 0 s q r ( d x * d x d y * d y d z * d z )1 0 4 0 r 3 = r * r * r / g m ( j )1 0 5 0 a a d x / r 31 0 6 0 a a d y / r 31 0 7 0 a a d z / r 31 0 8 0 n e x t1 0 9 0 a 0 ( i ) a

T h T r a n s a c t o r 3 M a 1 9 8 7 : V o l u m e 7 I s s u e 0

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 36/84

O L E O B 0

A F P I I I

E P K 1

G K

I H G N C H P 0

D D D O J J

H F E D C B D G J O E K M B G K

K K E O E

I H G H G F 1

P

1 1 0 0 b O ( i ) a " 1 " 1 o O / I A 3 " I \ J L i v J t I d Z 1 1 2 0 n e x t1 1 3 0 :1 1 4 0 r e m c a l c u l a t e n e s y s t e m s t a t e1 1 5 0 f o r i t o n b1 1 6 0 a 1 = . : b 1 = . : d = . : a 2 - b 2 c 2 1 1 7 0 f o r j t o n b1 1 8 0 i f i = j t h e n 1 2 7 01 1 9 0 d x ( j ) - x ( i )1 2 0 0 d y y f l ) - y ( i )1 2 1 0 d z z ( j ) - z ( i )1 2 2 0 s q r ( d x * d x d y * d y d z * d z )1 2 3 0 r 3 r * r » r / g m ( j )1 2 4 0 a 1 = a 1 + d x / r 31 2 5 0 b = b + d y / r 31 2 6 0 = c 1 + d z / r 31 2 7 0 n e x t1 2 8 0 j 0 ( a 1 - a 0 ( i ) ) / d t1 2 9 0 k 0 = ( b 1 - b 0 ( i ) ) / d t1 3 O O I O ( c 1 - c O ( i ) ) / d t1 3 1 0 x 2 = x ( i ) u ( i ) * d t a 1 * d 2 j 0 * d 31 3 2 0 y y ( i ) v ( i ) * d t b * d k O * d 31 3 3 0 z z ( i ) w ( i ) * d t * d 2 + I O * d 31 3 4 0 f o r j t o n b1 3 5 0 i f i = j t h e n 1 4 4 01 3 6 0 d x x ( j ) - x 21 3 7 0 d y y ( j ) - y 21 3 8 0 d z z ( j ) - z 21 3 9 0 s q r ( d x * d x + d y * d y + d z * d z )1 4 0 0 r 3 r * r * r / g m ( j )1 4 1 0 a 2 a d x / r 31 4 2 0 b 2 b d y / r 31 4 3 0 c 2 c d z / r 31 4 4 0 n e x t1 4 5 0 j 1 = ( a 2 - a 1 ) / d t1 4 6 0 k = ( b 2 - b 1 ) / d t1 4 7 0 1 1 = ( c 2 - d ) / d t1 4 8 0 m ( a 2 - 2 * a 1 + a O ( i ) ) / ( d t * d t )1 4 9 0 n = ( b 2 - 2 * b 1 b O ( i ) ) / ( d t * d t )1 5 0 0 o 1 = ( c 2 - 2 * d + c O ( i ) ) / ( d t * d t )1 5 1 0 x ( i x ( i ) u ( i ) * d t a * d J * d + m * d 1 5 2 0 y ( i y ( i ) v ( i ) * d t b * d k * d n * d 1 5 3 0 z ( i z ( i ) w ( i ) * d t * d + 1 * d o * d 1 5 4 0 u ( i u ( i ) a * d t + J 1 * d + m * d 1 5 5 0 v ( i v ( i ) b * d k * d n * d 1 5 6 0 w 1 ( i w ( i ) * d + 1 * d o * d 1 5 7 0 a 0 ( i ) a 1 5 8 0 b 0 ( i ) b 1 5 9 0 c O ( i ) c 1 6 0 0 n e x t1 6 1 0 :1 6 2 0 f o r i t o n b1 6 3 0 x ( i ) x 1 ( i )1 6 4 0 y ( i ) y ( i 1 6 5 0 z ( i ) z 1 ( i )1 6 6 0 u ( i ) u 1 ( i )1 6 7 0 v ( i ) v 1 ( i )1 6 8 0 w ( i ) = w 1 ( i )1 6 9 0 x ( i ) : i f x ( i ) < . o r x ( i ) > 3 1 9 t h e n 1 7 2 01 7 0 0 y ( i ) : i f y ( i ) < . o r y ( i ) > 1 9 9 t h e n 1 7 2 0

L M O H

I E H N M

I P D E I

B E

O O O O K

K K D F

M I

P A A K

I A L B N

N

P B

I H

I D H

P

O A

F O O

L A O H

1 7 1 0 g o s u b 2 7 1 01 7 2 0 n e x t1 7 3 0 1 d 1 7 4 0 i s t h e n p r i n t c h r $ ( 1 9 ) ; t1 7 5 0 g e t a $ : i f a $ " t h e n i 1 5 1 7 6 0 :" 1 7 7 r f ^ m r ^ Q t f " i r ^ p h c s r o o t o r c r r o o n\ C 1 C o l U I O I d C l O l f c J l o U C C 1 7 8 0 p o k e 5 3 2 6 5 , p e e k ( 5 3 2 6 5 ) a n d 2 2 31 7 9 0 p o k e 5 6 5 7 8 , p e e k ( 5 6 5 7 8 ) o r 31 8 0 0 p o k e 5 6 5 7 6 , ( p e e k ( 5 6 5 7 6 ) a n d 2 5 2 ) o r 31 8 1 0 p o k e 5 3 2 7 2 , ( p e e k ( 5 3 2 7 2 ) a n d 1 5 ) o r 1 61 8 2 0 p o k e v 2 1 , 0 : r e m t u r n o f s p r i t e s1 8 3 0 p o k e 5 3 2 8 1 , 01 8 4 0 i a c h r $ ( 1 3 3 ) t h e n 1 8 6 01 8 5 0 g o t o 3 7 1 8 6 0 p r i n t c h r $ ( 1 7 ) ; " S t o r i n g p r e s e n t s y s t e m i

m e m o r y . " : g o s u b 3 1 6 01 8 7 0 f o r i t o n b1 8 8 0 x 0 ( i ) x ( i )1 8 9 0 y 0 ( i ) y ( i )1 9 0 0 z 0 ( i ) z ( i )

1 9 1 0 u 0 ( i ) u ( i )1 9 2 0 v 0 ( i ) v ( i )1 9 3 0 w 0 ( i ) w ( i )1 9 4 0 n e x t1 9 5 0 g o t o 3 7 1 9 6 0 :1 9 7 0 r e m g e n e s y s t e m f r o m u s e r1 9 8 0 i n p u t " N u m b e r o b o d i e s " ; n 1 9 9 0 i f n b < 1 o r n b > 5 0 t h e n 3 7 02 0 0 0 f o t n 2 0 1 0 c b i : g o s u b 2 4 6 02 0 2 0 p r i n t " N a m e o b o d y " i ; : i n p u t n $ ( i )2 0 3 0 i f l e n ( n $ ( i ) ) > 2 5 t h e n 2 0 2 02 0 4 0 p r i n t " M a s s o b o d y " i ;2 0 5 0 i n p u t m ( i ) : g m ( i ) g * m ( i ) * u n ( s y )2 0 6 0 i n p u t " I n p u t l o c a t i o n i x , y , z f o r m " ;

x 0 ( i ) , y 0 ( i ) , z 0 ( i )2 0 7 0 i n p u t " I n p u t v e l o c i t y i u , v , w f o r m " ;

u 0 ( i ) , v 0 ( i ) , w 0 ( i )2 0 8 0 n e x t2 0 9 0 g o t o 3 7 2 1 0 0 :2 1 1 0 r e l o a d s y s t e m d e s c r i p t i o n f r o m d i s k2 1 2 0 p r i n t L o a d s y s t e m d a t a f r o m d i s k . "2 1 3 0 i n p u t " T y p e n a m e o d a t a f i l e " ; a 2 1 4 0 i l e n ( a $ ) > 1 3 t h e n p r i n t " T o o l o n g . "

: g o t o 2 1 3 02 1 5 0 o p e n 1 5 , 8 . 1 5 : o p e n 2 , 8 , 2 , " 0 : " + a

, n b , s , r "2 1 6 0 g o s u b 3 1 7 02 1 7 0 i e r O O t h e n p r i n t e r $ ( 1 ) ; e r $ ( 2 ) ; e r $ ( 3 ) ; e r $ ( 4 )

: g o s u b 3 1 6 0 : g o t o 2 2 3 02 1 8 0 i n p u t # 2 , s y , n b2 1 9 0 f o r i t o n b2 2 0 0 i n p u t # 2 , n $ ( i ) , x O ( i ) , y O ( i ) , z O ( i ) , u O ( i ) ,

v 0 ( i ) , w 0 ( i ) , m ( i )2 2 1 0 g m ( i ) g * m ( i ) * u n ( s y )2 2 2 0 n e x t2 2 3 0 c l o s e 2 : c l o s e 1 5 : c b2 2 4 0 g o t o 3 7

T h T r a n s a c t o r 3 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 37/84

0 G D D

O C E G

O E A

M N D N J F F

B N D

F M E E C E

P

F

D

J A F H C D G E J J I

J

G

M O O H O F

A

2 2 5 0 r e s a v e c u r r e n t s y s t e m t d i s k2 2 6 0 p r i n t S a v e c u r r e n t s y s t e m . "2 2 7 0 i n p u t " T y p e n a m e o f i l e " ; a 2 2 8 0 i l e n ( a $ ) > 1 3 t h e n p r i n t " N a m e t o l o n g . "

: g o t o 2 2 5 02 2 9 0 o p e n 1 5 , 8 , 1 5 : c $ c h r $ ( 1 3 )2 3 0 0 o p e n 2 , 8 , 2 , " 0 : " a . n b , s , w "2 3 1 0 g o s u b 3 1 7 02 3 2 0 i e r O O t h e n p r i n t e r $ ( 1 ) ; e r $ ( 2 ) ; e r $ ( 3 ) ; e r $ ( 4 )

: g o s u b 3 1 6 0 : g o t o 2 2 3 02 3 3 0 p r i n t # 2 , s y ; c $ ; n b2 3 4 0 f o r i 1 t o n b2 3 5 0 p r i n t # 2 , n $ ( i ) ; c $ ; x 0 ( i ) ; c $ ; y 0 ( i ) ; c $ ; z 0 ( i ) ; c $ ; u 0 ( i ) ;

c $ ; v 0 ( i ) ; c $ ; w 0 ( i ) ; c $ ; m ( i )2 3 6 0 n e x t2 3 7 0 c l o s e 2 : c l o s e 1 5 : g o t o 3 7 2 3 8 0 m ( c b ) n v : g m ( c b ) g * m ( c b ) * u n ( s y ) : g o t o 3 7 2 3 9 0 x 0 ( c b ) n v : g o t o 3 7 2 4 0 0 y O ( c b ) n v : g o t o 3 7 2 4 1 0 z 0 ( c b ) n v : g o t o 3 7 2 4 2 0 u 0 ( c b ) n v : g o t o 3 7 2 4 3 0 v 0 ( c b ) n v : g o t o 3 7 2 4 4 0 w 0 ( c b ) n v : g o t o 3 7 2 4 5 0 d n v : d 2 d t * d t / 2 : d 3 d 2 * d t / 3 : d 4 d 3 * d t / 4

g o t o 3 7 2 4 6 0 r e d i s p l a y c u r r e n t s y s t e m v a l u e s2 4 7 0 p r i n t c h r $ ( 1 4 7 ) " N - B O D Y S I M U L A T O R "2 4 8 0 p r i n t c h r $ ( 1 7 6 ) ; l $ ; c h r $ ( 1 7 4 ) ;2 4 9 O I 1 $ = c h r $ ( 2 2 1 )2 5 0 0 p r i n t M S " n a m e : " n $ ( c b ) ; t a b ( 7 9 ) ; H $ ;2 5 1 0 p r i n t h $ b o d y # c b ; t a b ( 1 7 ) " m a s s : " m ( c b ) ;

t a b ( 3 9 ) H $ ;2 5 2 0 p r i n t l 1 $ " x : x 0 ( c b ) ; t a b ( 6 0 ) " u : u 0 ( c b ) ;

t a b ( 7 9 ) ; l 1 $ ;2 5 3 0 p r i n t l 1 $ " y : y 0 ( c b ) ; t a b ( 2 0 ) " v : v 0 ( c b ) ;

t a b ( 3 9 ) ; l 1 $ ;2 5 4 0 p r i n t h $ z : z 0 ( c b ) ; t a b ( 6 0 ) " w : w 0 ( c b ) ;

t a b ( 7 9 ) ; M $ ;2 5 5 0 p r i n t c h r $ ( 1 7 3 ) ; l $ ; c h r $ ( 1 8 9 )2 5 6 0 p r i n t n u m b e r o b o d i e s : " n 2 5 7 0 p r i n t t i m e i n t e r v a l : " d t ; t u $ ( s y )2 5 8 0 p r i n t u n i t s y s t e m : u n $ ( s y )2 5 9 0 i s t h e n p r i n t s p r i t e m o d e " ; c h r $ ( 1 7 ) : r e t u r n2 6 0 0 p r i n t " h i r e s p o i n t m o d e " ; c h r $ ( 1 7 ) : r e t u r n2 6 1 0 :2 6 2 0 r e d i s p l a y m e n u2 6 3 0 p r i n t H e l S l x i t H p l H l o t H " n 0 e w s y s t e m "2 6 4 0 p r i n t s l i c K i a l e y d K l s p l a y f I B l o a d "2 6 5 0 p r i n t " y s 0 a v e B ^ P r e v b o d y Q f 7 | £

n e x t b o d y "2 6 6 0 p r i n t Q x p o s i t i o n Q y p o s i t i o n

p o s i t i o n "2 6 7 0 p r i n t E v e l o c i t y Q v v e l o c i t y | J v v | j ]

v e l o c i t y "2 6 8 0 p r i n t " f l m Q a s s f l t Q i m e f l r 0 e n a m e "2 6 9 0 r e t u r n2 7 0 0 r e p l o t p o i n t o h i r e s s c r e e n2 7 1 0 i s t h e n 2 7 5 02 7 2 0 m h ( y a n d c 8 ) * c f ( y a n d c 7 ) ( x a n d c 4 )2 7 3 0 p o k e m l , p e e k ( m l ) o r e x ( x a n d c 7 )2 7 4 0 r e t u r n

D F

A N J L

G F

I IM M O M M

J B M

I L

N G J A A E L

H M P E B I

G M B L

B

B

B

E

F L N C F

I

C P

M L D F

2 7 5 0 i i > t h e n r e t u r n2 7 6 0 2 4 : y 5 2 7 7 0 p o k e v ( i - 1 ) * 2 , x a n d c 52 7 8 0 p o k e v i * 2 - 1 , y2 7 9 0 i f x > c 5 t h e n p o k e h i , p e e k ( h i ) o r e 2 ( i - 1 )2 8 0 0 i f x < 2 5 6 t h e n p o k e h i T p e e k ( h i ) a n d ( c 5 - e 2 ( i - 1 ) )2 8 1 0 r e t u r n2 8 2 0 r e m m c o d e f o h i g h s p e e d e r a s e2 8 3 0 4 9 1 5 22 8 4 0 r e a d m c : i f m c 2 5 6 t h e n r e t u r n2 8 5 0 p o k e i , m c : i + : g o t o 2 8 4 02 8 6 0 d a t a 1 7 3 , 5 2 3 , 1 3 3 , 2 , 1 7 3 , 5 3 , 3 , 1 3 3 , 32 8 7 0 d a t a i 6 5 , 2 5 1 , 1 6 0 , 0 1 6 6 ,2 8 8 0 d a t a 1 4 5 , 2 , 2 3 6 , 5 5 3 , 2 0 8 , 7 , 1 6 6 , 2 , 2 3 6 ,

5 4 , 3 , 2 4 0 , 92 8 9 0 d a t a 2 3 0 , 2 , 2 0 8 , 2 3 6 , 2 3 0 , 3 , 7 6 , 1 4 , 1 9 2 , 9 6 2 5 2 9 0 0 p r i n t c h r $ ( 1 4 7 ) ; " S e l e c t s y s t e m o u n i t s . "2 9 1 0 p r i n t c h r $ ( 1 7 ) ; " 1 p i x e l 1 0 t 7 k i l o m e t e r s "2 9 2 0 p r i n t m a s s 1 0 0 0 k i l o g r a m s "2 9 3 0 p r i n t t i m e d a y "2 9 4 0 p r i n t c h r $ ( 1 7 ) ; " 2 p i x e l A ( e a r t h r a d i u s ) "2 9 5 0 p r i n t m a s s = e a r t h m a s s "2 9 6 0 p r i n t t i m e d a y "2 9 7 0 p r i n t c h r $ ( 1 7 ) ; " 3 . p i x e l 1 0 0 0 k i l o m e t e r s "2 9 8 0 p r i n t m a s s k i l o g r a m "2 9 9 0 p r i n t t i m e s e c o n d "3 0 0 0 p r i n t : i n p u t " W h i c h s y s t e m " ; s 3 0 1 0 i s y < 1 o r s y > 3 t h e n 3 7 03 0 2 0 f o r i 1 t o n b3 0 3 0 g m ( i ) g * m ( i ) * u n ( s y )3 0 4 0 n e x t3 0 5 0 g o t o 3 7 3 0 6 03 0 7 0 r e s w i t c h p l o t s y s t e m s3 0 8 0 i s t h e n s O : g o t o 3 7 3 0 9 0 s 3 1 0 0 f o r i 1 5 8 7 2 t o 1 5 8 7 2 + 8 * 6 4 : p o k e i , . : n e x t

: r e m b l a n k o u s p r i t e i m a g e s3 1 1 0 f o r i 0 t o 7 : p o k e 1 5 8 7 2 i * 6 4 , 2 2 4

. p o k e i 5 8 7 5 + i * 6 4 , 2 2 4 : n e x t : r e m f o r m d o s h a p e3 1 2 0 f o r i 0 t o 7 : p o k e 2 0 4 0 i , 2 4 8 i : n e x t : r e m s e t s p r i t e

p o i n t e r s3 1 3 0 f o r i 0 t o 7 : p o k e v i 3 i , + : n e x t : r e m s e s p r i t e

c o l o r s3 1 4 0 p o k e v + 2 9 , 0 p o k e v + 2 3 , 0 : r e m c o m p r e s s

s p r i t e s3 1 5 0 g o t o 3 7 3 1 6 0 f o r d e t o 1 5 0 0 : n e x t : r e t u r n3 1 7 0 i n p u t # 1 5 , e r $ ( 1 ) , e r $ ( 2 ) , e r $ ( 3 ) , e r $ ( 4 )3 1 8 0 e v a l ( e r $ ( 1 ) ) : r e t u r n3 1 9 0 c b c b - 1 : i f c b < 1 t h e n c b = n 3 2 0 0 p r i n t c h r $ ( 1 9 ) c h r $ ( 1 7 ) c h r $ ( 1 7 ) ; b $ ; b $ ; b $ ; b $ ; b $

: p r i n t c h r $ ( 1 9 )3 2 O g o s u b 2 4 8 03 2 2 0 f o r i 1 t o 6 : p r i n t c h r $ ( 1 7 ) ; : n e x t i : p r i n t c h r $ ( 2 9 ) ;

: g o t o 4 1 03 2 3 0 c c + : i c b > n b t h e n c 3 2 4 0 g o t o 3 2 0 03 2 5 0 p o k e 5 3 2 7 2 , p e e k ( 5 3 2 7 2 ) a n d 2 4 73 2 6 0 p o k e 5 3 2 6 5 , p e e k ( 5 3 2 6 5 ) a n d 2 2 3

T h T r a n s a c t o r 3 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 38/84

T w o - B u t t o n M o u s e A n t h o n y B r y a n tW i n n i p e g , M a n i t o b a

. . e x p e r i m e n t i n g w i t h t h C - 1 3 5 0 M o u s e , a n m o r e . . .

I y o a r e p r e s e n t l y u s i n g t h e o l d i g i t a l j o y s t i c k o p a d d l e s , t m o v e a c u r s o r a r o u n d t h e s c r e e n , o d r a w w i t h , t h e n j o i n t h m o u s e k e t e e r s t r y t h i s n e m o u s e !

O t h C - 1 2 8 ( o C - 6 4 w i t h S u p e r E x p a n d e r c a r t r i d g e ) f r o mB A S I C , y o c a r e a d t h e m o u s e w i t h t h J O Y O f u n c t i o n . T h l e f t b u t t o n i r e a d l i k e t h f i r e " b u t t o n . O n l y t h l e f t b u t t o n !B u t , y o s a ( s u r e d i d ! ) t h i s m o u s e , w h i c h h a t h s a m ep h y s i c a l a p p e a r a n c e a t h A m i g a m o u s e , h a t w b u t t o n sl e f t a n r i g h t !( H m m m )

A n o m e n t i o n i m a d e o t h r i g h t b u t t o n i t h m a n u a l ,d e c i d e d t d i s e c t t h i s l i t t l e c r i t t e r t o s e w h y .

M o u s e P i n o u t s

I n t e r n a l l y , t h i s i a s t a t e - o f - t h e - a r t m o u s e . T w o p t i c a l l y -e n c o d e d d i s c s , s e i m o t i o n b y r o l l i n g b a l l , g e n e r a t e p h a s e -q u a d r a t u r e p u l s e s . T h e s e a r d e c o d e d i h a r d w a r e ( u s i n go p - a m p s a n c o m p a r a t o r s ) a n f o u r o u t p u t s a r g e n e r a t e dU P D N L F a n R H T . T w a c t i v e p u s h b u t t o n s a r a l s o o u t p u t !M f i n d i n g s a r e t a b l e d i F I G U R E 1

F I G U R E 1 C o n t r o l P o r t P i n o u t s

P i J o U

D o w nL e f t

R i g h t

B u t t o n5

G N

M o u s eU

D o w nL e f t

R i g h t

B u t t o n5

G N B u t t o n

S t i c k

B u t t o nB u t t o n

P o t Y

5 G N P o t X

F I G U R E s h o w s t h p i n o u t s f o t h r e e t y p e s o C o n t r o l P o r ti n p u t d e v i c e s f o c o m p a r i s o n t h d i g i t a l J O Y s t i c k , t h eM O U S E , a n t h a n a l o g j o y S T I C K . O t h C - 1 3 5 0 m o u s e , t h l e f t b u t t o n c o m e s o u o P i s a m e a t h J O f i r e " b u t t o na n t h r i g h t b u t t o n c o m e s o u o P i s a m e a s t h e S T I C K ' sP O l i n e . P O a n P O a r i n p u t s ( R E A D O N L Y ) t t h A / c o n v e r t e r u s e d t d i g i t i z e t h a n a l o g p o s i t i o n o p o t e n t io m e t e r s . T h d i a g r a m b e l o w o r e g i s t e r $ D C 0 0 o C I s h o w st h b i d i s t r i b u t i o n f o e a c h d e v i c e ' s d i g i t a l l o g i c l i n e s .

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

F I G U R E 2 A n a l o g J o y s t i c k S c h e m a t i c

D E - 9 S

B 7 N 1

F I G U R E i t h s c h e m a t i c o t w b u t t o n a n a l o g j o y s t i c k . I c o u l d a l s o b f o g r a p h i c s p a d , o r o t h e r h o m e b r e w c o n f i g u r at i o n t y p e o i n p u t d e v i c e . I g r a p h i c a l l y s h o w s t h a t a l t h a t i r e q u i r e d o t h P O l i n e i p o t e n t i o m e t e r b e t w e e n P i a n d P i n 7 ( 5 v ) .

J o S t i c k

V l o u s e

P o r tP o r tP o r t 2

P o r tP o r t lP o r t

C I A 1 R e g i s t e r $ D C 0 0

B T

B T N 1

R i g h tB T R i g h t

L e f tB T

L e f t

D o w n

D o w n

U

U

T h T r a n s a c t o r 3 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 39/84

F I G U R E 3 C - 1 3 5 0 M o u s e S c h e m a t i c

F I G U R E i s i m p l e s c h e m a t i c o t h C - 1 3 5 0 m o u s e . T h l e f tb u t t o n i B T N 1 a n t h r i g h t b u t t o n i B T N 2 . T h C o n t r o l P o r tc o n n e c t s B T N 2 w i t h r e g i s t e r $ D 4 1 9 . T h i s r e g i s t e r a l l o w s t h m i c r o p r o c e s s o r t r e a d t h p o s i t i o n " o r i t h i s c a s e , t h l o g i c s t a t e " o f t h P O l i n e , w i t h v a l u e s r a n g i n g f r o m $ 0 a m i n i m u m r e s i s t a n c e ( = l o g i c h i g h ) t $ F a m a x i m u m r e s i st a n c e ( = l o g i c l o w ) . S w i t c h c l o s u r e g e n e r a t e s t h l o g i c l o w , a n w h a t i n e e d e d t g e n e r a t e t h l o g i c h i g h i p u l l - u p "r e s i s t o r b e t w e e n P i ( B T N 2 ) a n P i 5 v ) .

M o u s e M o d i f i c a t i o n

F I G U R E s h o w s t h e l a y o u t o t h p . c . b o a r d . T h m o u s e c a b l ep l u g s i n t o B l o c k P l u g o t h e b o a r d .

T h c o l o u r c o d e o t h B l o c k P l u g i a f o l l o w s :

B l o c k P l u g P i n C o l o u ry e l l o wo r a n g e

r e b r o w nw h i t e

b l u eg r e e nb l a c k

L a b e lR H L F D U G N

5 B T N 1B T N 2

S o l d e r t h e r e s i s t o r b e t w e e n p i n s 6 a n o f t h i s B l o c k P l u g o t h f o i l s i d e a n r e - a s s e m b l e t h m o u s e .

M o u s e M a c h i n e C o d e

N o t h a t w h a v e r i g h t b u t t o n w i t h t w d i s c e r n a b l e l o g i cs t a t e s , s o m e c o d e i n e e d e d t u s i t T h i s i t y p i c a l c o d i n g ,m o d u l a r i z e d s t h a t y o c a a d a p t i t y o u r s p e c i f i c n e e d s .

T h o b j e c t i t m a i n t a i n a n c o o r d i n a t e s a n r e p o r t b u t t o ns t a t u s .

E x p e r i m e n t i n g w i t h a v a r i a b l e p o t e n t i o m e t e r a n s c o p e ,f o u n d v a l u e o 4 7 t b a b o u t r i g h t f o r t h " p u l l - u p "r e s i s t o r . I t ' s n o c r i t i c a l , b u s h o u l d r a n g e b e t w e e n 2 2 k a n 1 0 0 k .

T h e r e i r o o m i n s i d e t h e m o u s e f o o n r e s i s t o r . u s e d t i n yw a t t 4 7 r e s i s t o r . A l s o r e q u i r e d i a P h i l l i p s - h e a d s c r e w

d r i v e r a n a f i n e p o i n t l o w - w a t t a g e s o l d e r i n g i r o n .

T w s c r e w s o t h u n d e r s i d e o t h m o u s e h o l d t h c a s e h a l v e st o g e t h e r . T w s c r e w s i n s i d e h o l d t h e p . c . b o a r d a s s e m b l y ( a n dp u s h b u t t o n s u b - b o a r d ) t t h b o t t o m c a s e h a l f .

F I G U R E 4 M o u s e M o d i f i c a t i o n S c h e m a t i c

B l o c kP l u g

O P 7 O - E L E C T R O N I C S P . C . B O A R D

; d e f i n e v a r i a b l e l a b e l sX P O S . B Y TY P O S . B Y TB T N S . B Y T

; s a v e p o s i t i o n; s a v e p o s i t i o n; s a v e b t s t a t u s

; s u b r o u t i n e t r e a d C o n t r o l P o r t 2R D P O R T S E

L D # $ C 0S T $ D C 0 2L D * $ 8 0S T $ D C 0 0L D * $ 0 0I N X : B N E * - L D $ D 4 1 9L D $ D 4 1 AL D # $ F FS T $ D C 0 0R T

; l o c k o u k e y b o a r d

; s e t d d t r e a d

; r e a d C o n t r o l P o r t 2; a l l o w t i m e f o ; l i n e s t s e t t l e

r e a d P O ; r e a d P O

r e s e t P o r t 2

Y o c o u l d n o s i m p l y s t o r e t h ' a b s o l u t e p o s i t i o n ' a n c o o r d i n a t e s j u s t r e a d , f o t h a n a l o g j o y S T I C K , b u t i m p e r f e ct i o n s i t h p o t s r e s u l t s i j i t t e r o t h s c r e e n . S o m e f i n e s s e i i o r d e r ! m o v i n g a v e r a g e a l g o r i t h m s m o o t h s o u t t h e r o u g hs p o t s .

T h T r a n s a c t o r 3 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 40/84

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 41/84

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 42/84

t h p r o g r a m m e r i n t o t h C 6 4 . N o w , u s i n g t h s c h e m a t i c , v e r i f y e v e r yc o n n e c t i o n . T h i s f i n d s 9 9 . 9 % o a l p r o b l e m s w i t h t h c i r c u i t . V e r i f ya l s o t h a t p i n s ( 2 , 3 ) a n ( 1 , 2 2 , A , Z ) o t h b o a r d a r e n o t s h o r t e dt o g e t h e r . F i n g e r s 2 , a r t h + v o l t s u p p l y a n 1 , 2 2 , A , Z a r e t h eg r o u n d . V e r i f y a l s o t h a t n o t h e r f i n g e r s o t h b o a r d a r d i r e c t l ys h o r t e d t g r o u n d . W i t h t h a t c o m p l e t e t h n e x t t e s t s h o u l d b d o n e .

W i t h t h b o a r d p l u g g e d i a n d p o w e r t u r n e d o n , t h e 6 4 s h o u l d p o w e ru w i t h t h e u s u a l m e s s a g e o t h s c r e e n . I t h i s i n o s u c c e s s f u l , r e c h e c k a l c o n n e c t i o n s a n s o l d e r j o i n t s . O n c e y o c a g e t h b o a r dp o w e r e d u p t h b a t t l e i h a l f o v e r . M a k e t h f o l l o w i n g c h e c k s w i t hv o l t m e t e r s e t r e a d v o l t s .

P O S I T I V Ep i 2 6 U 1p i n 2 6 U 2p i n l 4 U 3p i 2 Z I p i n 1 3 P s k t

N E G A T I V Ep i n ? U p i U p i U p i n 1 4 Z I p i P s k t

R E A D I N G5 . 5 . 5 . 5 . 5 .

I a n o t h r e a d i n g s a b o v e a r e i n c o r r e c t c h e c k t h w i r i n g o t h 5 v o l ts u p p l y ( p i n s 2 , 3 a n 1 , 2 2 , A , Z , o t h f i n g e r s o f t h b o a r d ) .

I y o u h a v e g o t t e n t h i s f a y o a r a l m o s t t h e r e ! W i t h v o l t m e t e r s e t t or e a d 5 v o l t s c o n n e c t t h p o s i t i v e l e a d t p i 3 o U o r U 2 . C o n n e c tt h n e g a t i v e l e a d o t h v o l t m e t e r t p i 7 o U o U 2 Y o s h o u l dr e a d c l o s e t v o l t s ( l e s s t h a n . v o l t s ) . I n o t , s t a r t o v e r w i t h t h o h m m e t e r c h e c k ; i i a l s o p o s s i b l e t h a t y o u h a v e a d e f e c t i v e 7 4 0 0 . I t h a t t e s t w a s u c c e s s f u l , w i t h t h v o l t m e t e r s t i l l c o n n e c t e d a a b o v e ,d e p r e s s t h r e s e t b u t t o n a n h o l d i t T h v o l t m e t e r s h o u l d r e a d c l o s et v o l t s ( g r e a t e r t h a n 3 . v o l t s ) . I n o t , c h e c k t h w i r i n g o t h r e s e tc i r c u i t a n t h 1 N 9 1 4 d i o d e . W i t h t h i s t e s t d o n e , y o a r r e a d y t p r o c e e d t t h s o f t w a r e t e s t .

s h o r t p r o g r a m a p p e a r s a t h e n o t h a r t i c l e t h a t w i l l a s s i s t i n t h t e s t i n g o f t h c o m p l e t e d p r o g r a m m e r . T h i s p r o g r a m w i l l a l l o w y o t s e l e c t i v e l y t u r n o c e r t a i n p i n s o t h 8 2 5 5 s a n c h e c k t h e m w i t h t h v o l t m e t e r . C o n n e c t t h e n e g a t i v e l e a d o v o l t m e t e r s e f o 5 v o l t s t p i o U 1 T h e n c o n n e c t t h p o s i t i v e l e a d t t h e p i n i n d i c a t e d b t h p r o g r a m . R e f e r r i n g t t h s c h e m a t i c , t h e r e a r e f o u r p o r t s t t e s t : p o r to U l p o r t B o U l p o r t o U l a n p o r t o U 2 T h f i r s t m e n u o t h p r o g r a m a l l o w s y o t s e l e c t t h b i ( o p i n ) t t e s t . F o e x a m p l e , i y o w i s h t t e s t p o r t o U 2 s e l e c t ' 4 f r o m t h m a i n m e n u . T h s c r e e n w i l l t h e n i n d i c a t e t h a t y o a r t e s t i n g P o r t o U 2 T t u r n b i ( o p i n ) o t h 8 2 5 5 ' o n ' , e n t e r t h e d e s i r e d b i n u m b e r a n p r e s s r e t u r n .T h a t b i o n l y w i l l b t u r n e d o n T h ' o n ' s t a t e i r e p r e s e n t e d b v o l t a g e g r e a t e r t h a n 3 . v o l t s . S e l e c t i n g a n o t h e r b i t u r n s t h e l a s t b i to f a n t h n e o n o n E n t e r i n g ' 8 f o b i n u m b e r r e t u r n s y o t t h m a i n m e n u . A f t e r t e s t i n g a l f o u r p o r t s o t h 8 2 5 5 s y o a r r e a d yt o t r y y o u r f i r s t E P R O M .U s i n g t h P r o g r a m m e r

L e t ' s e x a m i n e f e w a y s t u s t h p r o g r a m m e r . S u p p o s e y o w i s h t m a k e a m o d i f i c a t i o n t t h K e r n a i r o i y o u r C 6 4 . F i r s t , l o a d y o u rf a v o r i t e m o n i t o r p r o g r a m i n t o t h C 6 a n e n t e r t h e m o n i t o r . T m o d i f y t h K e r n a i y o u m u s t f i r s t r e l o c a t e i t L e t ' s a s s u m e y o t r a n s f e rf r o m $ E 0 0 0 - $ F F F F t $ 6 0 0 0 - $ 7 F F F . N o w , u s i n g y o u r m o n i t o r , m a k et h e d e s i r e d c h a n g e s i m e m o r y a t h n e l o c a t i o n s i n s i d e $ 6 0 0 0 -$ 7 F F F . W h e n y o a r d o n e s a v e t h e n t i r e 8 b l o c k t d i s k a p r o g r a m f i l e . T h a t ' s a l t h a t i n e e d e d t u s i w i t h t h E P R O Mp r o g r a m m e r .

T m a k e t h E P R O M , i n s t a l l t h p r o g r a m m e r i n t o t h c a r t r i d g e p o r ta n t u r n p o w e r o n L o a d t h E P R O M p r o g r a m m e r p r o g r a m s u p p l i e di t h J a n u a r y 8 i s s u e o T r a n s a c t o r a n p l a c e t h e d i s k w i t h y o u r n e

K e r n a i i t h d r i v e . W i t h t h p r o g r a m r u n n i n g , s e l e c t m e n u i t e m * ( P R O G R A M E P R O M ) . T h e p r o g r a m w i l l a s y o t s e l e c t t h s i z e o fE P R O M y o a r g o i n g t p r o g r a m ; e n t e r ' 3 f o a 8 E P R O M . N e x tt h p r o g r a m w i l l a s f o f i l e n a m e , s t y p e i t h n a m e o t h n e k e r n a i t h a t y o j u s t m a d e . I t h f i l e i f o u n d t h p r o g r a m w i l l a s y o t p r e s s k e w h e n r e a d y . P l a c e a b l a n k E P R O M i t h p r o g r a m m e rs o c k e t ( 2 7 6 4 i t h i s c a s e ) a n t h p r o p e r p e r s o n a l i t y p l u g f o t h E P R O M u s e d . C o n n e c t o r t u r n o y o u r s o u r c e o V p p r o g r a m m i n gv o l t a g e ( 2 v o l t s f o s t a n d a r d 2 7 6 4 ) . P r e s s i n g a n k e w i l l s t a r t t h p r o g r a m m i n g p r o c e s s . F i r s t y o s h o u l d n o t i c e t h e L E a s s o c i a t e dw i t h t h r e l a y a n t h r e l a y t u r n i n g o n A t h e l o c a t i o n n u m b e r o t h s c r e e n c o u n t s u p y o u s h o u l d n o t i c e s l i g h t b l i n k o t h C L E D . T h C L E i o n m o s t o t h t i m e a n i o f f o o n l y a v e r y s h o r t t i m e .P r o g r a m m i n g w i l l t a k e a w h i l e ( a b o u t 1 0 m i n u t e s ? ) . W h e n t h p r g r a m i d o n e t h m a i n m e n u w i l l r e - a p p e a r . S e l e c t t h e o p t i o n t v e r i f yE P R O M w i t h d i s k a n a n s w e r t h q u e s t i o n s a t h e y a p p e a r . I a l i w e l l t h e p r o g r a m w i l l r e t u r n t t h m a i n m e n u .

A 8 2 7 6 4 E P R O M h a 2 p i n s a n t h K e r n a i R O s o c k e t h a s o n l y2 p i n s . F i g u r e s h o w s h o t m a k e a a d a p t e r f r o m 2 p i s o c k e ta n 2 p i D I h e a d e r . T h i s w i l l w o r k f o t h B a s i c R O a l s o .

N o l e t ' s t r y j u s t c o p y i n g a n o t h e r E P R O M . F i r s t i n s t a l l t h p r o g r a mm e a n l o a d t h p r o g r a m a d e s c r i b e d p r e v i o u s l y . P l a c e t h e E P R O Mt b c o p i e d i n t o t h E P R O M s o c k e t . M a k e s u r e t h a t y o u h a v e a l r e a d yi n s t a l l e d t h p r o p e r p e r s o n a l i t y s o c k e t f o t h E P R O M . S e l e c t t h o p t i o n t c o p y t h E P R O M t d i s k . A n s w e r t h q u e s t i o n s a s k e d b y t h p r o g r a m a n d g i v e t h e f i l e n a m e . W h a t y o a r d o i n g i c r e a t i n gd i s k f i l e t l a t e r b u r n i n t o b l a n k E P R O M . R e a d i n g a n E P R O M d o e s n ' tt a k e a l o n g a p r o g r a m m i n g o n e . W h e n t h p r o g r a m i d o n e c o p y i n gt h E P R O M t d i s k , f o l l o w t h e s a m e p r o c e d u r e s a d e s c r i b e d p r e v io u s l y .

F o t h i r d e x a m p l e , l e t ' s a s s u m e y o u h a v e m a c h i n e l a n g u a g ep r o g r a m y o u w a n t t p u o n a n E P R O M . F i r s t , a s s e m b l e t h f i l e i m e m o r y a n s a v e t h f i l e a p r o g r a m a d e s c r i b e d i t h f i r s te x a m p l e . I y o u a s s e m b l e d i r e c t l y t d i s k y o w i l l h a v e t l o a d t h eo b j e c t f i l e i n t o m e m o r y a n r e - s a v e i t T h i s i r e q u i r e d i y o u rp r o g r a m f i l e i n o t e x a c t l y t h e s a m e s i z e a y o u r E P R O M . I y o u r f i l e i s f o e x a m p l e , o n l y I l o n g a n d y o u a r u s i n g 2 E P R O M , b e f o r el o a d i n g y o u r p r o g r a m f i l e , f i l l 2 b l o c k o m e m o r y w i t h t h v a l u e$ F ( 2 5 5 d e c i m a l ) . T h e n l o a d y o u r f i l e t t h i s b l o c k a n r e - s a v e t h e n t i r e 2 b l o c k . T h i s w i l l a l l o w y o t a d t t h a t E P R O M l a t e rw i t h o u t e r a s i n g t h e w h o l e E P R O M .

F i g u r e s h o w s a a d d i t i o n a l p e r s o n a l i t y s o c k e t f o r e a d i n g t h C 6 K e r n a i a n B a s i c R O M s d i r e c t l y . T h i s a l l o w s y o t c r e a t e a f i l e t b l o a d e d , m o d i f i e d , a n r e c o p i e d t a E P R O M . A i n t e r e s t i n g p r o j e c tm i g h t b t m o d i f y t h e c h a r a c t e r g e n e r a t o r R O i t h C 6 4 a n d c r e a t ey o u r o w s e o c h a r a c t e r s .T h l a s t e x a m p l e i f o t h o s e o y o t h a t l i k e t o p r o g r a m o t h r o c k( r i g h t i n h e c o d e ) . T p r o g r a m a E P R O M f o u s i d i f f e r e n tc o m p u t e r o r a s a c h a r a c t e r g e n e r a t o r o l o g i c a r r a y , u s y o u r f a v o r i t em o n i t o r a n u s t h e d i s p l a y o r m e m o r y d u m p c o m m a n d . F i l l a e n t i r e b l o c k t h s i z e o y o u r E P R O M w i t h t h v a l u e $ F ( 2 5 5 d e c i m a l )f i r s t . A y o s h o u l d k n o w , a n e r a s e d E P R O M c o n t a i n s a l $ F F s a t h s t o r e d v a l u e . W h e n y o a r d o n e e n t e r i n g t h e v a l u e s f o y o u r E P R O Mi m e m o r y , s a v e t h e n t i r e b l o c k a p r o g r a m f i l e a n f o l l o w t h f i r s te x a m p l e f o p r o g r a m m i n g t h E P R O M .

T h u s e s o t h p r o g r a m m e r ( a s i n a n t o o l ) a r e l i m i t e d o n l y b y y o u ri m a g i n a t i o n .

I y o r e q u i r e a f a s t e r p r o g r a m m i n g t i m e , y o c a n u s e a B a s i cc o m p i l e r . K e e p i m i n d t h a t t h p r o g r a m m i n g p u l s e t i m e f o a

T h T r a n s a c t o r 4 M a 1 9 8 7 : V f o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 43/84

i a l e a s t 5 m i l l i s e c o n d s a n y o u m u s t a d t h f o l l o w i n g l i n ey o u r p r o g r a m :

1 7 7 5 F O C T 3 0 N E X T C n l a s t w o r d o c a u t i o n , d n o e r a s e a E P R O M f o l o n g e r t h a n j u s t

q u i r e d ( a b o u t 1 5 m i n u t e s f o m o s t e r a s e r s ) , a n u s g o o d c o nv o l t a g e s u p p l y f o V p p .

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

t o r ' s N o t e : S i n c e p u b l i s h i n g h i E P R O M b u r n e r , T i h a b e e nb s e v e r a l u s e r g r o u p s t g i v e p r e s e n t a t i o n s . . a n h a

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

A l s o , s e n d a S A S E a n d i s k , a n T i w i l l r e t u r n i w i t h t h a n b u r n e r p r o g r a m s . W r i t e t o T i B o l b a c h , 1 5 7 5 C r e s t w o o d ,

O h i o , 4 3 6 1 2

F i g u r e 2 2 7 6 4 ( 2 p i n ) T 2 3 6 4 ( 2 p i n ) A d a p t e r2 3 6 4 2 7 6 4

G M J E P

C F M H E N D I I

O I

M P B D A G K F N K N F G A D A N F O L G

I H J E E

N D K H

1 r e * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *2 r e * * E P R O M p r o g r a m m e r t e s t e r * * * * *3 0 r e m * * * b t i b o l b a c h ( 1 9 8 6 ) * * * * *4 0 r o m * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *5 0 n $ ( 1 ) = " u p o r t " : a d ( 1 ) 5 6 8 3 26 0 n $ ( 2 ) u p o r t b : a d ( 2 ) 5 6 8 3 37 0 n $ ( 3 ) u p o r t c " : a d ( 3 ) 5 6 8 3 48 n $ ( 4 ) u p o r t b : a d ( 4 ) 5 7 0 8 79 f o a = t o 4 : f o r t 0 t 7 : r e a d p ( a , t + 1 ) : n e x t t : n e x t1 0 0 r e m * * s e a l p o r t s t w r i t e1 1 0 p o k e 5 6 8 3 5 , 1 2 81 2 0 p o k e 5 7 0 9 1 , 1 2 81 3 0 r e m * * m e n u s e l e c t * * 1 4 p r i n t "1 5 p r i n t "1 6 p r i n t "1 7 p r i n t1 8 p r i n t "1 9 p r i n t "2 0 p r i n t "2 1 p r i n t

D D D D D D D D

A A A A A A A A A A A 1 A l W

r V c

G N

1

1 ■ !

1

1

r ,

3 2

2

1

J 2

2 2

1

D D D D D D D D

A A A A A A A A A A A 1 A l A 1

V p V c P G V c G N

| E P R O M p r o g r a m m e r t e s t e r " : p r i n tm e n u

u 1 p o r t a 2 u 1 p o r t b 3 u 1 p o r t c

u p o r t b 2 2 p r i n t : p r i n t : p r i n t " y V e f e r t s c h e m a t i c d i a g r a m f o 2 3 p r i n t " y " c h i p a n p o r t d e s i g n a t i o n s "2 4 p o k e 1 9 8 , 0 : w a i t 1 9 8 , 1 : g e t a $2 5 0 a a s c ( a $ ) - 4 8 : i f a > 4 o r a < 1 t h e n 2 4 2 6 p r i n t " H 2 7 p r i n t " Q s e t v o l t m e t e r f o v o l t s2 8 p r i n t " y c o n n e c t n e g a t i v e t o p i n # 2 9 p r i n t " y c o n n e c t p o s i t i v e t p i s h o w n 0 "3 0 p r i n t : p r i n t3 1 p r i n t n $ ( a ) ; " a d d r e s s i ; a d ( a )3 2 p r i n t : p r i n t : p r i n t3 3 f o t 3 4 p r i n t " p i ; p ( a , t + 1 ) ; t a b ( 2 0 ) ; " b i t " ; 3 5 n e x t3 6 p r i n t r p r i n t " c o m m o n i p i # 7 3 7 p r i n t : p r i n t3 8 i n p u t b i t t u r n o ( m e n u ) ; 3 9 i f b < 0 o b > t h e n 3 8 4 0 0 i f b 8 t h e n 1 3 04 1 0 p o k e a d ( a ) , 2 t b4 2 g o t o 2 6 4 3 d a t a 4 , 3 , 2 , 1 , 4 0 , 3 9 , 3 8 , 3 74 4 d a t a 1 8 , 1 9 , 2 0 , 2 1 , 2 2 , 2 3 , 2 4 , 2 4 5 d a t a 1 4 1 5 , 1 6 , 1 7 , 1 3 , 1 2 , 1 1 1 4 6 d a t a 1 8 , 1 9 , 2 0 2 1 2 2 2 3 2 4 2

U s 2 p i W s o c k e t a n 2 p i r i b b o n c a b l e h e a d e r ( m a l e ) . O t h 2 p i D I P , c u t d o w n p i n s 1 2 , 2 0 , 2 3 , 2 6 , 2 a n 2 t a b o u t 3 / 8 "U s i n g w i r e w r a p , s h o r t p i n s 1 2 6 2 a n 2 8 C o n n e c t p i 2 t p i 2 o t h e c a b l e h e a d e r , p i n 2 t p i 1 8 p i 2 t p i 1 2 a n p i n 2 t p i 2 1 T h l o n g p i n s w i l l p l u g d i r e c t l y i n t o t h e c a b l e h e a d e r s u c h t h a tp i o t h 2 p i W g o e s t p i o t h 2 p i h e a d e r ( p i n t p i 2 t 3 e t c , 2 t 2 3 2 t o 2 4 ) .

h T r a n s a c t o r 4 M a 1 9 8 7 : V t o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 44/84

F i g u r e 1 E P R O M P r o g r a m m e r S c h e m a t i c w i t h c o r r e c t i o n s a n c h a n g e sT h T r a n s a c t o r 4 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 45/84

H e l p !N i c k S u l l i v a n a n C h r i s Z a m a r a

I n s t a n t H e l p f r o m a n u n e x p e c t e d p l a c e !

i u t i l i t y t h a t w i l l p r o v i d e y o w i t h i n s t a n t , o n - l i n e h e l p ,j u s t a b o u t a n a p p l i c a t i o n y o m a b r u n n i n g . T h

c a e l i m i n a t e t h n e e d f o p i l e o m a n u a l s b y o u ra n c a n s p e e d u t h l e a r n i n g p r o c e s s w h e n i c o m e s t

c o m p l i c a t e d n e p i e c e o f s o f t w a r e . C r e a t i n g s u c ho n t h a t c a w o r k a l o n g s i d e o t h e r p r o g r a m s c a b

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

h q u e s t i o n i s h o d y o w r i t e t o t a l l y t r a n s p a r e n t c o d e ?

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

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

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

h a d h a p p e n e d .

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

t r a p t h f i r s t s p e c i a l k e y p r e s ss a v e t h u s e r ' s l o R A a n s c r e e n i s o m e s e c r e t p l a c e , t ob r e s t o r e d l a t e r o p r i n t t h f i l e m e n uw a i t f o s e l e c t i o no p e n f i l e , o e x i t t h e h e l p u t i l i t y a n r e s t o r e t h o r i g i n a lc o n t e x tp r i n t t h f i l e , p a u s i n g a f t e r e a c h s c r e e n f u l u n t i l t h u s e rw a n t s t c o n t i n u ec l o s e t h f i l e a n g b a c k t s t e p 2

t h s a m e t i m e , w w a n t t h i s c o d e t b u n d i s t u r b e d b y m o s to g r a m s a n d t c o n s u m e m i n i m u m a m o u n t o p r e c i o u s

H o w ?

h a n s w e r i s y o d o n ' t .

y o u r h e l p p r o g r a m i o c a r t r i d g e , y o c a m a k e i a l m o s ty t r a n s p a r e n t t o t h e r a p p l i c a t i o n s . B u c a r t r i d g e s a r e

o e x p e n s i v e a n d i f f i c u l t t m a n u f a c t u r e f o e v e r y d a y p u r

y o u r h e l p p r o g r a m i r u n n i n g u n d e r m u l t i t a s k i n g o p e r a t i n gl i k e t h A m i g a ' s , t r a n s p a r e n c y i a g a i n n o h a r d t

B u w e ' r e t a l k i n g a b o u t t h C o m m o d o r e 6 4 h e r e a n d ,h l a s t t i m e w l o o k e d , m u l t i t a s k i n g w a s n ' t a v a i l a b l e .

S w d w h a t p r o g r a m m e r s h a v e a l w a y s d o n e o t h 6 4 l o o kf o s o m e s p a c e f o o u p r o g r a m w h e r e t h t r a f f i c i e s p e c i a l l yl i g h t , a n d h o p e t h a t n o b o d y d u m p s o i t I u s e d t b t h a t s h o r tu t i l i t i e s w o u l d n o r m a l l y b e p l a c e d i t h c a s s e t t e b u f f e r . T h i sw a a i n h e r i t a n c e f r o m t h P E d a y s , w h e n t h e r e w e r e f e o t h e r p l a c e s f o m a c h i n e l a n g u a g e p r o g r a m s t o g o . B u o u p r o g r a m i n o t h a t s h o r t a n d , i a n c a s e , t h t h c a s s e t t eb u f f e r i b u s i e r n o w .

T h n e x t c h o i c e w a t h 4 o R A a $ C 0 0 0 , w h i c h w a e i t h e rd e s i g n q u i r k o a i n t e l l i g e n t d e c i s i o n o t h p a r t o C o m m o

d o r e , d e p e n d i n g o h o y o l o o k a i t N a t u r a l l y , i s o o nb e c a m e i m p o s s i b l e t d e p e n d o n a n y t h i n g s u r v i v i n g i t h C b l o c k f o a n l e n g t h o t i m e .

N e x t c a m e t h t o o B A S I C , a l s o p o p u l a r i P E d a y s . T h i s h a s o m e a d v a n t a g e s . B A S I C m e m o r y i t h 6 i f a i r l y l a r g e , s y o c a t a k e a w a y s o m e w i t h o u t i n f l i c t i n g a g r e a t p e n a l t y o t h u s e r . I i a l s o l e s s u s e d t h a n t h C - b l o c k , s y o u r p r o g r a mh a c o r r e s p o n d i n g l y g r e a t e r c h a n c e o s u r v i v i n g ( a l o n g a y o p r o t e c t i f r o m B A S I C i t s e l f b a d j u s t i n g c o u p l e o p o i n t e r s ) . B u i a l s o h a s d r a w b a c k s . F o o n t h i n g , y o n e v e rk n o w i a d v a n c e j u s t w h e r e t h e t o p o B A S I C i s s y o h a v e t m a k e y o u r c o d e r e l o c a t a b l e . F o a n o t h e r , t h i s a r e a o m e m o r yg e t s m o r e u s n o t h a n i d i o n c e u p o n t i m e ( P O W E R , P A La n S u p e r m o n a l u s i t f o i n s t a n c e ) s t h r i s k o i n c o n v e ni e n c i n g B A S I C b u s i n g u t o m u c h R A h a g r o w n o v e r t h y e a r s .

T h a t l e a v e s u s w i t h t h e ' h i d d e n ' R A u n d e r l y i n g t h e R O M s . I t h e a r l y d a y s , t h i s R A w a g o d s e n d n o b o d y u s e d i f o a n y t h i n g . I y o c o u l d g e y o u r c o d e i t h e r e , a n g e a w i t hs o m e w e d g i n g s c h e m e o o t h e r , y o u w e r e h o m e f r e e . N l o n g e r . P r o g r a m m e r s d i s c o v e r e d t h a t t h v i d e o c h i p c a l o o k a t h a t R A w i t h o u t p r o b l e m s , a n s t a r t e d u s i n g t h R A a $ A 0 0 0 a n $ E 0 0 0 f o h i g h r e s o l u t i o n s c r e e n s , c h a r a c t e r s e t sa n s p r i t e d a t a . T h e y a l s o f o u n d t h a t m a c h i n e l a n g u a g e c a n b r u q u i t e n i c e l y o u a $ A 0 0 0 O u s t k i c k o u B A S I C f o l i t t l ew h i l e ) a n e v e n a $ E 0 0 0 i y o d o n ' t n e e d t h K e r n a l f o I / ( a n d y o c a s t i l l l o a d i n t o t h a t R A w i t h o u t s p e c i a l p r e c a ut i o n s ) .

L i k e s o m e p e a c e f u l t r i b e d r i v e n i n t o i n c r e a s i n g l y i n h o s p i t a b l et e r r i t o r y b h o s t i l e n e i g h b o u r s , u t i l i t y w r i t e r s w e r e i n e v i t a b l yf o r c e d i n t o t h e s e u n f r i e n d l i e r r e g i o n s o m e m o r y i o r d e r t h a v e a n y h o p e t h a t t h e i r c o d e w o u l d s u r v i v e t h c o m p e t i t i o nf o R A M . O n b o n e , t h e s e n e w l y - m a s t e r e d a r e a s j u s t a i n e v i t a b l y b e c a m e o v e r c r o w d e d i n t h e i r t u r n .

T r a n s a c t o r 4 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 46/84

T h o n l y p l a c e t h a t w a g e n e r a l l y i g n o r e d w a t h o n w h a v e n ' t y e m e n t i o n e d : t h D - b l o c k o R A t h a t u n d e r l i e s n o tj u s t R O ( i t h i s c a s e t h e c h a r a c t e r s e R O M ) b u a l s o t h i n p u t / o u t p u t r e g i s t e r s f o t h V I I I S I D a n d C I c h i p s . Y o c a n ' t l o a d i n t o t h i s a r e a i w r i t e s o v e r y o u r I / r e g i s t e r s ,w h i c h i a p r e t t y s u r e - f i r e m e a n s o c r a s h i n g t h s y s t e m . Y o c a n ' t s a v e f r o m i t b e c a u s e t h R A a n t h I / c h i p s n e e d e dt c o m m u n i c a t e w i t h t h d i s k d r i v e a r e n o t s i m u l t a n e o u s l ya c c e s s i b l e . W h a t ' s w o r s e , a n y c o d e e x e c u t i n g i t h D - R A Mc a n n o t d i r e c t l y a c c e s s a n I / ( t h e v i d e o c h i p , S I c h i p , s e r i a lp o r t , e t c . ) , b e c a u s e w h e n t h D - R A M i s e l e c t e d , a l o t h I / i s w i t c h e d o u t . I t h e r e i u s f o t h i s R A M , i t ' s c e r t a i n l y n o o b v i o u s a f i r s t g l a n c e .

W h e r e , t h e n , d w p u o u h e l p u t i l i t y ? R e l u c t a n t l y , w p u i i t h D - b l o c k .

H a v i n g m a d e t h i s f u n d a m e n t a l , a n p o s s i b l y m i s g u i d e d d e s i g nd e c i s i o n , l e t ' s f o l l o w t h e p r o g r a m m i n g s t e p s t h r o u g h i m o r ed e t a i l . F i r s t , i t ' s o b v i o u s t h a t w c a n ' t p u t e v e r y t h i n g u n d e rR O i w d i d , w c o u l d n ' t r e a c h o u c o d e t e x e c u t e i i t h f i r s t p l a c e . S w n e e d b i o l i n k c o d e t h a t w i l l s w i t c h o u t t h eo v e r l y i n g s t u f f i n t h D - b l o c k ( b p o k i n g $ 3 i n t o t h m e m o r y c o n f i g u r a t i o n r e g i s t e r a l o c a t i o n 1 t h e n j u m p t t h r e a l p r o g r a m . O y e s , w a l s o n e e d a n o t h e r l i n k t o b r i n g t h eR O M s b a c k i ( w i t h $ 3 i l o c a t i o n 1 s w c a c o n t i n u e l i f ea n o r m a l a f t e r t h c o d e h a f i n i s h e d e x e c u t i n g .

T h i s b r i n g s b a c k t h s a m e o l q u e s t i o n - w h e r e c a w p u o u c o d e ( t h e l i n k c o d e t h i s t i m e ) s t h a t i w i l l g e t i n t h w a o t h f e w e s t o t h e r p r o g r a m s ? W e l l , w e ' r e o n l y t a l k i n g a b o u t t w v e r ys h o r t r o u t i n e s n o w , s o t h e t o o B A S I C s p a c e s e e m s l i k en a t u r a l : t h u s e r i n o l i k e l y t n o t i c e t h d i f f e r e n c e , a n m o s tp r o g r a m s t h a t i n h a b i t t h i s a r e a a r r e l o c a t i n g , a m e n t i o n e da b o v e , s w p r o b a b l y w o n ' t g e w r i t t e n o v e r . S o m e t i m e s ,t h o u g h , t h t o o B A S I C w o n ' t b s a f e , s w e ' l l i n c l u d e a o p t i o n t p u t t h e l i n k c o d e s o m e w h e r e e l s e i m e m o r y i t h u s e r d e s i r e s .

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

N o b a c k t t h s e v e n s t e p s d e s c r i b e d a b o v e :

1 T t r a p t h f i r s t k e y p r e s s , w e ' l l u s e t h e v e c t o r a $ 0 2 8 F . T h i sv e c t o r ( k n o w n a K E Y L O G i t h m e m o r y m a p s ) , i t h s t e p p i n g s t o n e t t h R O r o u t i n e t h a t c o n v e r t s r a k e y -c o d e s t r e a l P E T S C I I c h a r a c t e r s , a n i i n v o k e d d u r i n ge v e r y I R i n t e r r u p t j u s t a f t e r t h k e y b o a r d h a b e e ns c a n n e d . I i n o v e r y w e l l - k n o w n , s n o m a n y p r o g r a m sb o t h e r t e n s u r e t h a t i i s e t t o i t d e f a u l t v a l u e a p a r t o t h e i r i n i t i a l i z a t i o n s e q u e n c e s , w h i c h i l e s s t r u e o t h m o r ep o p u l a r v e c t o r s i p a g e ( i i r e s e t b R U N / S T O P -R E S T O R E , h o w e v e r ) . W e ' l l s u b s t i t u t e f o r t h i s v e c t o r t h ea d d r e s s o o u o w r o u t i n e i ' o p e n ' R A M , w h o s e f u n c t i o nw i l l b e s i m p l y t s w i t c h o u t t h e R O M s { a l l t h R O M s w e ' l l

h a v e p u r e R A c o m p u t e r w i t h n I / r e g i s t e r s a t h i sp o i n t ) a n c a l l o u m a i n p r o g r a m i t h D - b l o c k .

2 B e f o r e i d o e s a n y t h i n g e l s e , t h a t p r o g r a m h a t s a v e t h u s e r ' s c u r r e n t e n v i r o n m e n t s t h a t i c a n b e r e s t o r e d l a t e ro n W e ' l l w a n t t s a v e a l p a r t s o m e m o r y t h a t t h h e l pu t i l i t y i t s e l f w i l l s u b s e q u e n t l y a f f e c t . T h e s e i n c l u d e : z e r op a g e , t h e s t a c k ( p a g e 1 ) f e b y t e s i p a g e ( 6 4 6 t h r o u g h6 4 8 ) , t h l o w - r e s s c r e e n a r e a w e ' l l b u s i n g ( p a g e s t h r o u g h7 ) c o l o u r R A ( p a g e s $ D t h r o u g h $ D B ) , a n t h v i d e or e g i s t e r s f r o m $ D 0 1 1 t h r o u g h $ D 0 2 1 . W e ' l l s t o r e a l t h i s d a t ai t h s a f e s t p l a c e w k n o w a b o u t r i g h t a l o n g s i d e o u p r o g r a m i t s e l f i D - b l o c k R A M .

U n f o r t u n a t e l y , t h i s p r e s e n t s n e p r o b l e m . T w r i t e s t u f fi n t o D - b l o c k w n e e d t h a v e t h I / r e g i s t e r s s w i t c h e d o u t .B u t s a v e t h e c o l o u r R A a n t h v i d e o r e g i s t e r s w n e e dt h I / s w i t c h e d i n T h a n s w e r ? M o r e l i n k c o d e . T m i n im i z e o u d e m a n d s o t h u s e r ' s R A M , w e ' l l c o p y t h a t c o d ei n t o o n e e n d o p a g e ( t h e s t a c k p a g e ) e v e r y t i m e t h e h e l pu t i l i t y i i n v o k e d , a n e x e c u t e i t h e r e . A t h s a m e t i m e ,w e ' l l m o v e t h s t a c k p o i n t e r t t h o t h e r e n o t h s t a c k s ot h e r e ' l l b n c o n f l i c t . ( T h e s t a c k w i l l b r e s t o r e d t i t o r i g i n a l s t a t e a f t e r t h h e l p u t i l i t y h a f i n i s h e d e x e c u t i n g . )B u n o t h a t w e ' v e b r o k e n t h i s n e g r o u n d , w m a a s w e l lu s i f o m o r e t h a n j u s t c o p y i n g I / O r e g i s t e r s t R A M . W e ' l la l s o p u h e r e o u r r o u t i n e s f o c o p y i n g t h R A b a c k t t h r e g i s t e r s ( w h i c h w e ' l l n e e d w h e n w e ' r e r e a d y t e x i t ) , a n o u d i s k I / r o u t i n e s ( f o r o p e n i n g , g e t t i n g b y t e s f r o m , a n c l o s i n g t h e d i s k f i l e s , f o k e y b o a r d i n p u t a n f o s c r e e no u t p u t ) .

3 N o w h a v e t p r i n t t h f i l e m e n u . N p r o b l e m . W a l r e a d yh a v e t h d a t a i t h D - b l o c k , s w j u s t m a k e r e p e a t e d c a l l st o u p r i n t c h a r a c t e r r o u t i n e i p a g e t i l l t h e p r i n t i n g i d o n e .

4 N o w w a i t f o t h u s e r ' s s e l e c t i o n . A g a i n t h e r o u t i n e w n e e d i g o i n g t b o t h s t a c k p a g e . R a t h e r t h a n d J S G E T I N h e r e , w p r e f e r r e d t d J S S C N K E Y a n i n t e r p r e tt h k e y c o d e s o u r s e l v e s . T h i s a v o i d s c o m p l i c a t i o n s w i t hi n t e r r u p t s , a n a l s o l e t s u l o o k a t h e l o g o k e ( o u r e s c a p ek e y ) a n t h m a i n k e y b o a r d s e p a r a t e l y .

5 T o o p e n t h f i l e w c a l l a n o t h e r o o u r o u t i n e s o t h s t a c kp a g e . B t h i s p o i n t i t h p r o j e c t , w e ' v e s e t t l e d o s t a n d a r df i l e n a m e s o t h f o r m ' h e l p - a ' , ' h e l p - b ' , a n s o n w h i c hm e a n s t h a t w o n l y h a v e t p a s s t h e d i s t i n g u i s h i n g f i n a lc h a r a c t e r o t h n a m e t o u o p e n r o u t i n e .

6 W f e t c h a n p r i n t t h f i l e b y t e b b y t e , w a i t i n g f o s i g n a l t e i t h e r c o n t i n u e o a b o r t a f t e r e a c h s c r e e n f u l . A l o n g w i t h o u r o u t i n e s f o p r i n t i n g t t h e s c r e e n a n s c a n n i n g t h k e b o a r d , w n e e d n e o n t g e b y t e s f r o m d i s k ; t h i s w i l l g o p a g e w i t h t h o t h e r s .

7 F i n a l l y w h a v e t c l o s e t h f i l e ( a l s o v i a a r o u t i n e i p a g e 1 a n g b a c k t s t e p 2

T h T r a n s a c t o r 4 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 47/84

a l t h i s s t u f f h a b e e n w o r k e d o u t , a n t h c o d e h a b e e n. N o a l w n e e d t d i f i n d s o m e w a t a s s e m b l e i

n o f o r g e t t i n g t h a t w e ' r e g o i n g t n e e d s o m e B A S I C a t h o n t o f i s t h a t t h m e n u s e l e c t i o n s t r i n g s c a b e c h a n g e d t

t h a c t u a l h e l p f i l e s a v a i l a b l e . W w a n t t u s P A ( t h ec t o r ' s d e f a u l t a s s e m b l e r ) , b u P A d o e s n ' t h a v e g o o d

o h a n d l i n g t h i s s c a t t e r e d c o d e i o n a s s e m b l y . T h T S D S( T o t a l 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 b y K e v i n P i c k -

o t h o t h e r h a n d , h a s t h ' * = p s e u d o - o p , w h i c h i a l l y d e s i g n e d t a l l o w y o t a s s e m b l e d i s c o n t i g u o u so c o d e i o n p i e c e . T S D S a l s o l e t s y o b r i n g i b i n a r y

( o u r B A S I C f r o n t e n d , i n t h i s c a s e ) f r o m d i s k , a t h o u g h i b e e n c o d e d w i t h . B Y T E s t a t e m e n t s . A f t e r b i o f o o l i n g

t h e t h i n g i d o n e .

p u b l i c a t i o n , t h o u g h , t h p r o g r a m r e a l l y s h o u l d b e i P A a l l , t h a t ' s t h a s s e m b l e r m o s t o o u r e a d e r s a r u s i n g . P A

t h . B A S p s e u d o - o p , w h i c h l e t s y o i n c o r p o r a t e B A S I Cd i r e c t l y i n t o y o u r p r o g r a m , u s i n g S Y < l a b e l > t i n v o k e

m a c h i n e c o d e . B u i d o e s n ' t l e y o u a s s e m b l e t h o s eu o u s b l o c k s i o n p i e c e . T h a n s w e r t h i s t i m e i t i t w p i e c e s , a p p e n d i n g t h s e c o n d p i e c e o o b j e c t t

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

R A a n a f t e r ( t h e V E C S E T r o u t i n e , t h h e l p u t i l i t yp r e f e r e n c e s a n s o m e o t h e r d a t a ) w h i c h m e a n s s o m e

f o o t w o r k w i t h l a b e l s , b u i t u r n s o u t t b p o s s i b l e .

c r e a t e t h e H E L P p r o g r a m , y o c a e i t h e r a s s e m b l e t h c o d e i n l i s t i n g o t y p e i t h B A S I C d a t a l o a d e r i

2 I y o c h o o s e t a s s e m b l e t h s o u r c e , y o u ' l l h a v e t P A 6 o e l s e f a c e v e r y t r i c k y p o r t i n g j o b . O t h e r w i s e ,i n l i s t i n g a n r u i t E i t h e r w a y , t h i s w i l l c r e a t e t h f i l e

h e l p " o d i s k , w h i c h i t h f i n a l p r o g r a m , a n a l y o u ' l le x c e p t f o t h e s e q u e n t i a l t e x t f i l e s t h e m s e l v e s .

t h H E L P p r o g r a m , a n t h e h e l p i t h e r e a f t e r a v a i l a b l e a t i m e ( a l e a s t u n t i l t h e n e x t R U N - S T O P / R E S T O R E ) . T g e h e l p , p r e s s C T R L - < l e f t - a r r o w > . Y o u r c u r r e n t s c r e e n w i l l

r e p l a c e d b s c r e e n c o n t a i n i n g t h m e n u c h o i c e s , w h i c hs e l e c t b l e t t e r . ( E x c e p t i o n : i y o u h a v e m o r e t h a n o n f i l e

t h h e l p u t i l i t y w i l l r e f u s e t w o r k , a n w i l l j u s t d b r i e fr i e s o f s c r e e n f l a s h e s i n s t e a d . ) E a c h m e n u s e l e c t i o n c o r r e s

t d i s k f i l e , w h i c h w i l l t h e n b p r i n t e d a d e s c r i b e d( i t h f i l e i n o o y o u r c u r r e n t d i s k , y o u ' l l g e t g a r b a g e

a n s p a c e b a p r o m p t w d i d n ' t h a v e r o o m f o e r r o r c h e c k i n g ) . A f t e r y o u ' v e f i n i s h e d l o o k i n g a h e l p

y o u ' l l b r e t u r n e d t w h e r e v e r i w a y o c a m e f r o m ,m i g h t b d i r e c t m o d e o m i g h t b r u n n i n g p r o g r a m .

s c r e e n c o l o u r s a n s o w i l l b t h w a t h e y w e r e b e f o r e .y o u w a n t t d i s a b l e t h e h e l p f o a n r e a s o n , p r e s s S H I F T -

a r r o w > ; y o u ' l l g e l o n g s e r i e s o s c r e e n f l a s h e s ,t h s p e c i a l k e y p r e s s w i l l n l o n g e r w o r k . Y o u ' l l h a v e l o s t

1 7 b y t e s o o p e n R A i t h p r o c e s s . T r e - e n a b l e t h y o u ' l l h a v e t l o a d a n r u t h o r i g i n a l p r o g r a m f i l e a l l

a g a i n .

i n s t a l l y o u r s e q u e n t i a l h e l p f i l e s , f i r s t r e n a m e t h e m a h e l p - b " a n s o n T h e n l o a d t h e h e l p p r o g r a m ,

a n w r i t e y o u r m e n u s e l e c t i o n s i n t o t h s t r i n g s i t h D A T As t a t e m e n t s b e t w e e n l i n e s 5 a n 6 ( y o u c a h a v e u t 2 s e l e c t i o n s , h e n c e 2 d i f f e r e n t h e l p f i l e s ) . M a k e s u r e t h a t y o u d on o a l t e r t h e l e n g t h o t h s t r i n g s o r f o t h a t m a t t e r , a n l i n e i t h p r o g r a m , a f t e r a s s e m b l y t h i s i v e r y i m p o r t a n t . W h e n t h p r o g r a m e n c o u n t e r s D A T A s t a t e m e n t b e g i n n i n g w i t h a b l a n k ,i a s s u m e s t h a t t h e r e a r e n m o r e m e n u s e l e c t i o n s t c o m e .W h e n y o u ' v e e n t e r e d a l o t h e s e s t r i n g s i n t o t h D A T A s t a t em e n t s , e n t e r R U 1 0 t i n s t a l l t h e m , a n r e s a v e t h p r o g r a m( b e f o r e d o i n g a r e g u l a r R U N ) t m a k e y o u r c h a n g e s p e r m a n e n t .W h e n t h p r o g r a m i s u b s e q u e n t l y R U N , t h n e s e l e c t i o n sw i l l b d i s p l a y e d i t h m e n u . B e s i d e s c h a n g i n g t h n a m e s o m e n u i t e m s i t h h e l p u t i l i t y , y o c a c o n t r o l t h b o r d e r ,b a c k g r o u n d a n c h a r a c t e r c o l o u r s b y c h a n g i n g t h P O K E s i l i n e s 2 3 t h r o u g h 2 5 0 .

I y o u w a n t t o s e t t h l o c a t i o n o t h e 1 7 b y t e s o l i n k c o d e t h a t g i n o r m a l R A M , c h a n g e t h e 5 — d i g i t a d d r e s s i l i n e 1 0 ( a s s i g n e dt h e r e t t h v a r i a b l e A ) I t h i s a d d r e s s i z e r o , t h h e l p u t i l i t yp u t s t h e l i n k c o d e a t h e t o p o B A S I C . I i i n o n - z e r o , t h l i n kc o d e g o e s t t h s p e c i f i e d a d d r e s s . I y o u d o c h a n g e t h i sn u m b e r , j u s t m a k e s u r e y o d o n ' t c h a n g e t h e l e n g t h o t h l i n e( i . e . t h n u m b e r m u s t a l w a y s b d i g i t s l o n g ) .

N o t e f o P A u s e r s : A f t e r y o a s s e m b l e , t h s t a t e m e n t S Y S "I N I T " , i l i n e 1 1 w i l l h a v e b e e n c h a n g e d t S Y S 3 2 9 8 : , A ( t h ea c t u a l n u m b e r m a v a r y d e p e n d i n g o j u s t h o y o t y p e t h B A S I C p o r t i o n i n ) . T h c o l o n a f t e r t h n u m b e r i a e r r o r , o c o u r s e ; i r e s u l t s f r o m a n o v e r s i g h t i P A L . C h a n g e t h c o l o n t

s p a c e ( d o n ' t j u s t d e l e t e i t ! ) b e f o r e y o s a v e t h p r o g r a m .

O n m o r e t h i n g b e f o r e w c l o s e . T h e r e ' s u n d o u b t e d l y m o r ey o c a d w i t h t h D - b l o c k R A t h a n j u s t p r i n t s e q u e n t i a lf i l e s . I c a s o m e t i m e s b r e a l l y u s e f u l t b a b l e t d s o m e t h i n g w h i l e i t h m i d s t o a n o t h e r p r o g r a m , i o r d e r t c h a n g e t h p r o g r a m ' s b e h a v i o u r i s o m e w a y . ( T h e H E L Pu t i l i t y e v e n w o r k s f r o m m a n y c o m m e r c i a l p r o g r a m s . ) s i m p l ee x a m p l e i c h a n g i n g s c r e e n c o l o u r s ; m o r e d i f f i c u l t t h i n gw o u l d b a d d i n g f e a t u r e s t p r o g r a m . A l t h a t ' s r e q u i r e d t a d a p t t h i s p r o g r a m f o y o u r o w p u r p o s e s i t m o d i f y t h c e n t r a l p a r t o t h h e l p r o u t i n e , a n r e p l a c e t h f i l e p r i n t i n gr o u t i n e s , t h s t r i n g s t o r a g e a n t h s t a c k - p a g e s u b r o u t i n e sw i t h c o d e o y o u r o w d e v i s i n g . T h o t h e r p a r t s o t h p r o g r a ms h o u l d n o n e e d t b c h a n g e d . P l e a s e l e u k n o w i y o c o m eu w i t h a n y t h i n g i n t e r e s t i n g t h a t y o u w a n t t s h a r e w i t h o t h e rT r a n s a c t o r r e a d e r s .

H e l p ! B A S I C L o a d e r

P F F J

N B O F B

1 P

1 r e m * d a t a g e n e r a t o r f o h e l p ! "2 r e m * c r e a t e s f i l e o d r i v e3 0 c s4 f o = 2 0 4 9 t 4 7 1 8 : r e a d a5 0 c s c a : n e x t i6 i c s < > 2 2 5 1 2 5 t h e n p r i n t " ! d a t a e r r o r ! " : e n 7 r e s t o r e8 o p e n i , 8 , 1 5 , " i O : o p e n 2 , 8 , 1 , " 0 : h e l p ! "9 i n p u t # 1 , e , e $ , t , s : i f e t h e n p r i n t " ! d i s k e r r o r ! " : g o t o 1 5 1 0 p r i n t # 2 , c h r $ ( 1 ) ; c h r $ ( 8 ) ;1 1 f o = 2 0 4 9 t 4 7 1 8 : r e a d a

T r a n s a c t o r 4 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 48/84

F C G G A O C L O A P H

M P

M N

M E H H M B A J

0 F O E I

F I

A H A

I G F A N M G C J O N H C F A C I I I

F H J

O H N K D C N E

1 2 p r i n t # 21 3 f o 1 4 p r i n t # 21 5 c l o s e 21 6 e n 1 7 0 :1 0 0 0 d a t a1 0 1 0 d a t a1 0 2 0 d a t a1 0 3 0 d a t a1 0 4 0 d a t a1 0 5 0 d a t a1 0 6 0 d a t a1 0 7 0 d a t a1 0 8 0 d a t a1 0 9 0 d a t a1 1 0 0 d a t a1 1 1 0 d a t a1 1 2 0 d a t a1 1 3 0 d a t a1 1 4 0 d a t a1 1 5 0 d a t a1 1 6 0 d a t a1 1 7 0 d a t a1 1 8 0 d a t a1 1 9 0 d a t a1 2 0 0 d a t a1 2 1 0 d a t a1 2 2 0 d a t a1 2 3 0 d a t a1 2 4 0 d a t a1 2 5 0 d a t a1 2 6 0 d a t a1 2 7 0 d a t a1 2 8 0 d a t a1 2 9 0 d a t a1 3 0 0 d a t a1 3 1 0 d a t a1 3 2 0 d a t a1 3 3 0 d a t a1 3 4 0 d a t a1 3 5 0 d a t a1 3 6 0 d a t a1 3 7 0 d a t a1 3 8 0 d a t a1 3 9 0 d a t a1 4 0 0 d a t a1 4 1 0 d a t a1 4 2 0 d a t a1 4 3 0 d a t a1 4 4 0 d a t a1 4 5 0 d a t a1 4 6 0 d a t a1 4 7 0 d a t a1 4 8 0 d a t a1 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 a

, c h r $ ( a ) ; : n e x tt 5 3

, c h r $ ( O ) ; :c l o s e i

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

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

0 2 4 0 ,9 2 4

4 8 , 4 8 ,6 8 7 3 7 8 7 5 6 5 6 8

0 , 1 5 8 ,6 5 , 5 8 ,

0 , 1 3 7 ,9 2 0 , 1 3 1

7 3 7 8 4 6 3 2 3

9 5 7 3 , 7 8 ,7 9 8 5 3 2 3

0 , 1 5 6 ,1 9 3 , 8

3 2 , 2 1 17 1 3 3 2 3 3 2 3 7 1 3 6 9 6 3 2 , 3 2 ,

0 1 3 1 ,3 2 3

n e x t

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

0 6 9

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

1 4 3 ,3 2 7 2 7 2

0 7 3 8 2 7 7 6 9

8 0

5 8 7 1 3 2 6 8 3 2 3 2 3 2

0 3 2 7 1 6 8 3 2

0 8 4 8 2 3 2

9 7 9 8 0

1 9 7 ,0

1 9 9 ,1 9 8 ,

3 2 3 2 3 2 3 2

0 8 2 8 2 8 4

8 7 5 6 5 7 2 6 5

1 4 3 ,8 2

8 3 2 6 9 6 7

0 8 4 3 2 8 3

0 3 2 6 5 6 9 3 2

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

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

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

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

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

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

8 6 9 8 0 7 3 6 6

0 1 7 8 ,1 4 3 ,

8 4 6 5

0 5 3

0 5 2

0 1 9 9 ,2 1 1 ,

3 2 3 2 3 2 7 8

2 1 2 ,3 2

0 6 8 7 6 8 2

9 8 4 7 8 3 2

0 3 2 3 2

3 2 7 8 7 2 7 6

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

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

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

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

2 2 4 ,3 2 3 2

8 4 8 3 6 9 7 3

1 4 3 ,8 5 6 5 8 3

0 6 7 5 7

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

1 9 6 ,3 2 6 9 6 9 3 2

0 6 5 7 9 3 2 6 9

0 4 8 5 3 7 6 6 9

9 5 2

9 0 9

8 4 6 5 3 2

0 2 0 8 ,

3 2 8 8 3 2 3 2 7 8 7 3 8 2

0 7 3 8 3 3 2

9 3 2 3 2

7 6 7 8 3 7 7 3 9 8 5 3 5 6

7 7 3

7 8 7 6

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

1 2 8

2 1 8 3 3 7 7 8

1 3 7 7 3 5 3 3

O D G E L A A K N G C A

I J

M J N H B M

L F B

H O C D B F

D N G P L L E L I

D K

K I

G M B F N M M J D P F

A F C F J B O G F P A

1 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 a1 9 3 0 d a t a1 9 4 0 d a t a1 9 5 0 d a t a1 9 6 0 d a t a1 9 7 0 d a t a1 9 8 0 d a t a1 9 9 0 d a t a2 0 0 0 d a t a2 0 1 0 d a t a2 0 2 0 d a t a2 0 3 0 d a t a2 0 4 0 d a t a2 0 5 0 d a t a2 0 6 0 d a t a2 0 7 0 d a t a2 0 8 0 d a t a2 0 9 0 d a t a2 1 0 0 d a t a2 1 1 0 d a t a

3 2 3 2 1 0

2 1 2 ,8 4 6 5

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

0 3 2 3 2 4 6 1 0

2 1 3 ,3 2 6 9

0 6 6 3 2 7 2 3 2 3 2 7 7 6 5 7 8

3 4 3 1 7 7 8

3 3 3 3 3 8 8 8

7 6 8 1

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

6 8

8 7 8 3 3 7

3 2 3 2 5 5 7 2 3 2 8 4 3 6 7 3 8 6 3 2 3 4 3 4 6 5 6 6 3 2

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

1 7 2 ,6 9

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

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

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

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

3 2 3 2

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

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

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

0 8 4 8 3 7 7 3 2 3 2 7 8 8 7 3 2

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

0 8 7 6 9 8 0 3 2 3 2 7 2 6 7 8 2

0 6 9 7 7 7 7 1 1 8 1 7 6 7 2

0 8 4 7

3 2 3 2

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

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

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

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

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

2 2 2 ,7 2 R

3 2 3 2 3 2 7 0 8 5 3 2

0 8 3 6 5 7 7 1 0 7 8 8 7 8 3

0 8 7 8 0 7 9 3 2 3 2 7 9 8 5 7 7

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

0 7 6 8 3 3 7 6 3

3 8 3 1 6 3 6

6 6 6 3 3 6 7 3

7 7 7 1 8 7

3 2 3 4 3 4 7 3 8 2 3 2

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

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

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

2 4 0 ,7 3 7 3 7 2 3 4 3 4 6 9 3 2 3 2

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

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

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

3 2 0

3 2 8 2 3 2 3 2 3 2 6 5 6 9 7 6

0 3 2 7 6 7 9 1 0 6 9 7 3 6 9

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

0 6 9 6 7 1 7 8 3

7 3 7 3 3 3 6 3

6 3 6 1 3 8 6

3 7 3 3 3 6 7 4

8 4

3

3 8 6 3 3 6 3 6

1 3 8 7 8 5 7 8 6

1 3 3 4 8 3 3 4 6 3

1 3 3 3 7 6 6 7 6 1 7 7 7 3 3 3 3 3

1 3 3 3 7 6 6 7 6

1 5 3 8 7 3 3 3 6 6

1 3 7 6

T h T r a n s a c t o r 4 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 49/84

B J D M C C K D

E B B E L

D A B

D E H

I A F E O

B L

H A I

G P C P D J P L E

N P N J E

J K

H A

K P F F N N J

1 2 7 5 6 5 1 4 8 7 3

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

4 9 5 4 9 5 1

5 5 4 1 2

0 7 8 9 0

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

3 2 3 2

0 1 3

3 2 , 3 2 ,3 2 , 3 2 ,5 8 0

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

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

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

0 9 2 1 7 8 , 4 9

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

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

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

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

0 1 0 1 7 0 , 4 9

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

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

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

2 0 0 , 1 3 7 4 1

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

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

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

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

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

0 , 1 3 0 , 3 2 0 , 1 5 1 , 3 2 0 , 1 6 5 , 1 2

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

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

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

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

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

0 6 0 1 3 1 7 0 , 5 1 , 4 4 ,

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

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

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

3 2 3 1 1 7

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

1 7 8 , 1 9 45 3 5

1 7 1 , 5 0 4

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

5 0 4 1 2 9 , 3

8 3 7 0 , 1 5 1

4 0 2 0 4 1 7 3 8 3 , 1 7 01 8 0 ,3 2 8 3 2 , 1 3 9

1 3 7 , 3 1 9 0 ,

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

0 , 2 3 01 2 , 2 3 04 4 3

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

4 4 8 4 8 2 8

1 1 5 3 3 3 4 8

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

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

0 , 2 1 34 0 6

K H K I

C F J B P D N J D L B A J N L P N C C 0 K B H H J K F I

D P

B B I

N M

I K O O G K A C

A D P G F

I K A

I II

F I

H F K M L

2 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 02 9 5 02 9 6 02 9 7 02 9 8 02 9 9 03 0 0 03 0 1 03 0 2 03 0 3 03 0 4 03 0 5 03 0 6 03 0 7 03 0 8 03 0 9 03 1 0 03 1 1 03 1 2 03 1 3 03 1 4 03 1 5 03 1 6 03 1 7 03 1 8 03 1 9 03 2 0 03 2 1 03 2 2 03 2 3 03 2 4 03 2 5 03 2 6 03 2 7 03 2 8 03 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 03 3 8 03 3 9 03 4 0 03 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 0

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

5 8 1 4 2 ,0 , 0 ,

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

1 4 1 7 0 ,1 7 1 3 3 ,

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

1 1 1 4 1 ,1 8 5 , 1 4

3 4 1 3 6 ,1 3 1 5 3 ,

2 2 1 , 1 3 1 3 3 ,1 3 2 ,1 3 2 ,1 4 5 ,

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

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

2 , 1 7 2 ,5 1 , 2 1 8 ,

1 4 1 , 1 4 3 ,1 0 , 1 7 0 ,

1 3 5 3 7 3 6

0 0 0

5 7 2

2 4 0 ,0 0

2 0 1 ,1 4 1 ,1 7 6 , 2 4 2 ,2 1 8 , 1 7 2 ,

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

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

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

2 0 8 , 2 5 1 ,2 0 2 , 2 0 8 ,1 6 2 , 5 5

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

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

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

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

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

0 , 2 1 90

1 7 4 , 3 1 4 4 ,

1 4 1 7 2 0 8 , 1

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

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

1 8 1 9 8 , 5

5 2 , 1 3 31 7

1 4 4 ,1 7 3 , 5

2 1 4 1 0 1 ,

0 0 0

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

5 1 , 2 1 8 ,4 1 6 2 ,

1 5 2 , 2 4 08 9 2

1 7 3 , 1 0 9 ,2 2 1 , 7 6

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

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

1 1 4 1 ,3 2 3 8 ,3 2 3 8 ,

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

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

3 2 , 1 9 2 ,1 2 0 , 1 6 2 ,

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

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

3 4

6 4

1 3 8 4 9 , 9 ,

1 3 8 , 1 7 3 , 3 2 2 8 , 2 2 4 , 1 4 1 4 3 , 2 , 1 4 2

5 6 , 1 6 5 , 5 1 6 5 , 5 6 , 2 3 3

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

1 4 1 2 0 , 1 6 1 6 0 , 1 4 , 1 3 31 6 0 , 2 1 8 , 1 3 31 6 2 , 6 , 1 7 72 4 9 , 2 3 0 , 3

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

9 6 , 1 2 0 , 1 6 51 7 6 5 2 5 5 , 2 5 5 , 1 7 3

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

2 9 0 2 0 , 2 4 90

1 4 4 ,2 0 0 ,

0 0

5 6 , 2 1 8 , 1 6 51 0 8 , 4 8 , 2 1 81 4 4 , 2 4 6 , 2 2 41 3 3 , 2 0 3 , 1 7

3 2 1 8 , 2 1 84 8 , 2 0 8 , 3 2 2 , 2 0 1 ,3 2 1 4 8 , 2 1 8

2 3 2 , 1 4 88 8 , 2 1 9 , 3

1 5 5 , 2 1 8 , 1 5 33 2 , 6 4 ,

9 , 4 , 7 1 2 3 6 ,

2 0 8 , 2 3 8 ,5 2 1 3 3 ,

1 7 3 , 2 5 5 , 2 5 52 5 5 , 2 5 5 , 2 3

6 1 , 2 3 81 9 1 1 4

2 3 8 , 3 2 3 8 , 3

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

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

2 5 5 , 1 0 4 , 1 7

1 3

1 1 3

6 3 1 6 2 4 1 4

5 2 1 3 4 5

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

3 2 1 9 5 , 2 5 51 3 3 , 1 3 1 2 9 , 2 3 5 . 1 7 2

T r a n s a c t o r 4 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 50/84

N M D H F G

I F J N B A F H D M L D D B L

I IF

P U l J

E C A M N D J C

H L K D N N

K E J P A

G P D J G M J K G K B J C H P F A C M A

3 5 0 0 d a t a3 5 1 0 d a t a3 5 2 0 d a t a3 5 3 0 d a t a3 5 4 0 d a t a3 5 5 0 d a t a3 5 6 0 d a t a3 5 7 0 d a t a3 5 8 0 d a t a3 5 9 0 d a t a3 6 0 0 d a t a3 6 1 0 d a t a3 6 2 0 d a t a3 6 3 0 d a t a3 6 4 0 d a t a3 6 5 0 d a t a3 6 6 0 d a t a3 6 7 0 d a t a3 6 8 0 d a t a3 6 9 0 d a t a3 7 0 0 d a t a3 7 1 0 d a t a3 7 2 0 d a t a3 7 3 0 d a t a\ J \ J \ J C X l C i

3 7 4 0 d a t a

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

1 6 9 , 4 , 1 6 0 , 2 1 0 , 1 7 0 , 3 2 2 5 , 2 2 11 8 6 , 1 4 2 , 2 2 6 , 2 2 1 , 1 6 2 , 2 5 5 , 1 5 4 , 1 6 1 6 6 , 1 8 5 , 1 7 8 , 2 1 8 , 1 5 3 , 0 1 , 1 3 61 9 2 , 2 5 5 , 2 0 8 , 2 4 5 , 2 0 0 , 1 4 0 , 5 1 4 0 , 1 2 1 , 1 6 9 , 4 , 1 3 3 , 2 , 1 6 22 1 6 , 1 4 2 , 6 1 , 1 6 2 , 2 1 4 , 1 4 2 , 1

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

2 2 1 , 1 4 1 , 1 2 1 , 1 4 0 , 1 3 1 , 1 6 01 6 , 1 3 2 , 2 0 4 , 3 2 0 1 , 1 3 6 , 1 6

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

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

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

1 1 6 ? 0 1 4 3 1 4 4 1 , 1 6 0 , 1 6 3 2 , 3 1 , 1 , 1 3 6 , 1

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

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

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

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

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

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

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

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

1 , 1 6 2 , 2 1 4 , 1 4 2 , 3 3 1 , 1 6 2 , 2 1 61 4 2 , 4 0 1 , 1 6 9 , 4 , 1 3 3 , 2 3

3 1 1 , 1 3 6 , 2 0 8 , 2 5 0 , 1 9 8 , 2 , 2 0 83 9 5 0 d a t a 2 4 6 , 1 7 3 , 4 3 , 2 1 8 , 1 7 2 , 4 4 , 2 1 8 , 1 7 43 9 6 0 d a t a3 9 7 0 d a t a3 9 8 0 d a t a3 9 9 0 d a t a4 0 0 0 d a t a4 0 1 0 d a t a

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

3 2 1 , 1 4 0 , 3 3 1 , 1 6 9 , 0 , 1 6 02 2 1 , 1 4 1 , 3 9 1 , 1 4 0 , 4 0 1 3

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

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

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

4 , 1 6 9 , 2 1 0 , 1 6 2 , 4 3 2 2 5 , 2 2 13 2 0 , 2 1 8 , 1 0 8 , 4 8 , 2 1 8 , 5 6 3 2 4 , 1 3 3 , 3 5 , 1 3 2 , 3 7 , 1 6 0 , 0 , 1 3 23 4 , 1 3 2 , 3 6 , 1 7 7 , 3 4 , 1 4 5 , 3 6 , 2 0 02 0 8 , 2 4 9 , 2 3 0 , 3 5 , 2 3 0 , 3 7 , 2 0 2 , 2 0 8

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

G O O B

C F

G I

N J

O K C

D N M K C M

I

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

P G N O H

A F J I

C I

H D

L L P F

P J D H

I K K

M A M L J M G H A F N B O

G K

H

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

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

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

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

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

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

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

0 , 0 , 0 , 0 , 2 ,

H e l p ! P A S o u r c e

1 o p e n 1 , 8 , 1 5 , " s O : t - h e l p ! " : c l o s e1 o p e n 2 , 8 , 1 , " O . t - h e l p ! "1 2 s y s "1 3 . o p t1 4 . b a s1 r e 1 r e 1 r e 1 r e 1 r e 2 0 2 r e 2 2 r e m2 3

7 0 0

t h t r a n s a c t o r h e l p u t i l i t yn i c k s u i l i v a n a n c h r i s z a m a r aO c t o b e r 1 9 8 6( c 1 9 8 6 t h t r a n s a c t o ro k a y t c o p y , n o t s e l l

d n o a l t e r t h l e n g t h o a n

2 0 8 ,2 2 1 ,

3 1 3

1 1 3 2 4 1 3 2 4

9 3 1 3 1 7 8

2 1 3 6

l i n e a f t e r p r o g r a m i a s s e m b l e d

2 0 0 0 0 0 : r e d i g i t l i n k b a s e a d d r2 s y s ' i n i t " , a : c l 2 g o t o 3 4 2 7 5 d a t a5 d a t a5 d a t a5 d a t a5 d a t a5 d a t a5 d a t a5 d a t a5 d a t a5 d a t a6 d a t a6 d a t a6 d a t a6 d a t a6 d a t a6 d a t a6 d a t a6 d a t a6 d a t a6 d a t a7 0 1 0 s

" G e t t i n g S t a r t e dP r i n t i n g Y o u r T e x tA v o y d i n g S p e l l i n g E r r o r s

" G e t t i n g F i n i s h e d

T h f i r s t f o u r d a t al i n e s a b o v e a r s a m p l em e n u t h a t w i l l b s h o w nw h e n h e l p i i n v o k e d .

U t 2 m e n u i t e m s m a y "b u s e d . F o r e a c h o n e ,

" t h e r e m u s t b e m a t c h i n g" f i l e o d i s k , w i t h" f i l e n a m e o t h e f o r m :

h e l p - ?w h e r e t h ' ? r e p r e s e n t sa a l p h a b e t i c c h a r a c t e r .

T h e a b o v e m e n u i t e m sr e q u i r e f i l e n a m e s h e l p - a

" t h r o u g h h e l p - d .

3 2 0 1 3 2 2 2 0 2 2

7 3

1 3 1 6 3 6 7

2 0 6

1 4

2 5 1 r e 2 5 c h a r s p e m e n u i t e mT h T r a n s a c t o r 4 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 51/84

1 1 s p e e k ( 4 5 ) 2 5 6 . p e e k ( 4 6 ) - 2 0 . s l - 11 2 r e a d a 1 3 0 i f l e f t $ ( a !1 4 f o 1 5 0 p o k e1 6 n e x t1 7 p o k e1 8 0 n1 9 0 :2 0 1 2 2 :2 1 0 a = 1 2 3 :2 2 0 :2 3 p o k e2 4 0 p o k e2 5 p o k e2 6 0 p o k e

5 , 1 )o s l - 1

c h r $ ( 3 2 ) g o t o

i , a s c ( m i d $ ( a $ , i ) )

i , s l i f n < 2 0 g o t o 1 2

g o s u b 3 3 0 : zg o s u b 3 3 0 : z =0

+ 2 5 6 « a + 1 1

1 , 0 9 : r e m b o r d e r2 , 0 9 : r e m b a c k g r o u n d3 , 0 0

2 7 p r i n t " d o n e ! "2 8 0 :

r e c u r s og o t o 3 4

2 9 0 r e m s u b r o u t i n e c a l c u l a t e s a d d r o 3 0 r e c h r g e t p t r a t c o l o n i l i n e 3 3 3 1 0 r e m ( n s p a c e s a l l o w e d i 3 3 0 )3 2 0 :3 3 0 a p e e k ( a ) : r e t u r n3 4 e n 3 5 0 :1 0 0 0 c h r o u t1 0 1 0 c h k i n1 0 2 0 g e t i n1 0 3 0 s e t l f s1 0 4 0 s e t n a m1 0 5 0 o p e n1 0 6 0 c l o s e1 0 7 0 c l r c h n1 0 8 0 s c n k e y1 0 9 0 ;1 1 0 0 s u b1 1 1 0 p r o g1 1 2 0 ;

$ f f d 2$ f f c 6$ f f e 4$ f f b a$ f f b d$ f f c O$ f f c 3$ f f c c$ f f 9 f

2 5 $ d a 0 0

; k e r n a l a d d r e s s e s

; t e m p s u b r t n s b a s e; p r g 2 c o d e s t a r t

1 1 3 0 ; t h e n e x t f o u r b y t e s c a n b e s e 1 1 4 0 ; f r o m b a s i c w i t h r u 1 0 1 1 5 0 ;1 1 6 0 n u m t o p . b y t e 41 1 7 0 b o r d1 1 8 0 b a c k1 1 9 0 c u r s1 2 0 0 ;1 2 1 0 ;

. b y t e. b y t e. b y t e O

1 2 2 0 e s c a p e r t 1 2 3 0 ;1 2 4 0 i n i t

o h e l p f i l e sh e l p b o r d c o l o u rh e l p b g n d c o l o u rh e l p t e x t c o l o u r

1 2 5 0 ; c a l l e d f r o m b a s i c o r u 1 2 6 01 2 7 01 2 8 01 2 9 01 3 0 01 3 1 01 3 2 01 3 3 01 3 4 01 3 5 01 3 6 01 3 7 0 ;1 3 8 0 i 1 3 9 01 4 0 01 4 1 01 4 2 01 4 3 01 4 4 01 4 5 01 4 6 0 ;1 4 7 0 i n 21 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 0 ;1 5 9 0 i n 1 6 0 01 6 1 0 ;1 6 2 0 i n 1 6 3 01 6 4 01 6 5 01 6 6 01 6 7 0 ;1 6 8 0 i n 1 6 9 0

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

s e I d s b s t t a I d s b s t

s t s t s t s t t a t y o l a d s t b c i n

s t I d

I d s t d e b p I d

I d s t

$ a e f d$ a d 8 a$ b 7 f 7$ 0 2 9 0$ e e s c a p eo u t 1 + 2$ 0 2 8 fo u t 1

i n

$ 3 # e n d - s t a r t$ 3

6 3 # $ 3

n e w l o gn e w l o g + $ 2 $ 2

# o u t - s t a r to j m pn

o j m p +

c h e c k c o m m ae v a l u a t e a d d r e s sc o n v t i n t e g e rt e x t k e y l o g n o

i r o n

s a v e o l k e y l o gv e c t o r

t e s t v a n

m a k e r o o m f o t o o b a s i c s u b r t n s

i n s t a l l n e k e y l o g v e c t o r

s e u t c o p yl i n k c o d e

s e u p j u m p t o l k e y l o g - l i n kk e y l o g - l i n k

# e n d - ( s t a r t + 1 )

s t a r t , y( S 2 2 ) , y

I l #

o o r d . y

c o p y l i n k c o d e t i t n e h o m e

s e u v i d e on l p v i d 1 5 , y ; p r e f e r e n c e s

P P A D M P H D A C P I

O A N

F I

E P

K M

I IJ J L A

I IG D E C C A E K O C M G F C O O I

C H J D A K P B C M H M M F B I

C M G D D E O G D O G H L

C A

I E K M A K O H

I C C B G G E O A D M G

1 7 0 0 d e y1 7 1 0 b p 1 7 2 0 I d 1 7 3 0 s t 1 7 4 0 s e 1 7 5 0 I d 1 7 6 0 s t 1 7 7 0 I d 1 7 8 0 I d 1 7 9 0 s t 1 8 0 0 s t 1 8 1 0 I d 1 8 2 0 I d 1 8 3 0 s t 1 8 4 0 s t 1 8 5 0 I d 1 8 6 0 I d 1 8 7 0 ;1 8 8 0 i n I d 1 8 9 0 s t 1 9 0 0 m 1 9 1 0 b n 1 9 2 0 i n 1 9 3 0 i n 1 9 4 0 d e x1 9 5 0 b n e1 9 6 0 j s 1 9 7 0 I d 1 9 8 0 s t 1 9 9 0 c l 2 0 0 0 I d 2 0 1 0 b n 2 0 2 0 d e c2 0 3 0 ;2 0 4 0 i n 1 0 d e 2 0 5 0 r t 2 0 6 0 ;2 0 7 0 ;

i n n u m t o p ; s a v e o h e l pn t s a v e f i l e s a v a i l a b l e

; c o n f i g 1 0 0 % r a # $ 3 4 ( n i / o , r o m s )

# < e n d ; c o p y h e l p c o d e# > e n d t $ d a 0 0 r a m$ 2 $ 2 # < p r o g# > p r o g$ 2 $ 2 # # > $ e O f l - p r o g ; p a g e s t c o p y

( $ 2 2 ) . y( S 2 4 ) , y

i n $ 2 $ 2

i n e n ; v e c s e t i l o r a # $ 3 7 ; c o n f i g f o b a s i c

$ 3 d e c r e m e n t t o i n 1 0 o b a s i c d u t $ 3 b a s i c v a l Q . b u $ 3

2 0 8 0 ; t h e n e x t r o u t i n e s a r s t o r e d i 2 0 9 0 ; ' n o r m a l ' r a m , e i t h e r a t h e t o p2 1 0 0 ; o b a s i c , o a a n a d d r e s s2 1 1 0 s p e c i f i e d b t h e u s e r2 1 2 0 ;2 1 3 0 ;2 1 4 0 s t a r t2 1 5 0 ; s w i t c h o u r o m , d n e k e y s c a n2 1 6 0 s e 2 1 7 0 I d 2 1 8 0 p h 2 1 9 0 I d 2 2 0 0 s t 2 2 1 0 j m 2 2 2 0 ;2 2 3 0 ;2 2 4 0 o u

# $ 3 4

s c a n

2 2 5 0 ; r e s t o r e r o m s , d r o k e y s c a n2 2 6 0 p l 2 2 7 0 s t 2 2 8 0 o u t 1 j m 2 2 9 0 ;2 3 0 0 e n 2 3 1 0 ;2 3 2 0 ;

$ f f f f

2 3 3 0 ; v e c s e t a n h l p v i d a r n e e d e d b 2 3 4 0 ; b o t h i n i t c o d e a n h e l p c o d e2 3 5 0 ;2 3 6 0 ;2 3 7 0 v e c s e t =2 3 8 0 ; s a v e o l d v e c t o r , i n s t a l l n e o n 2 3 9 0 I d 2 4 0 0 I d 2 4 1 0 s t 2 4 2 0 s t 2 4 3 0 I d 2 4 4 0 I d 2 4 5 0 ;2 4 6 0 v c s 1 s t 2 4 7 0 s t 2 4 8 0 r t 2 4 9 0 ;2 5 0 0 ;

$ 0 2 8 f$ 0 2 9 0p r o g ( o l d l o g - v e c s e t )p r o g ( o l d l o g + - v e c s e t )p r o g ( n e w l o g - v e c s e t )p r o g ( n e w l o g + - v e c s e t )

$ 0 2 8 f$ 0 2 9 0

2 5 1 0 ; t h e f o l l o w i n g t a b l e w i l l b e p o k e d2 5 2 0 ; i n t o v i d e o c h i p o e n t e r i n g h e l p2 5 3 0 ;2 5 4 0 ;2 5 5 0 h l p v i d2 5 6 0 . b y t e $ b , $ 0 a , $ a a , $ 6 5 , $ 0 0 , $ c 82 5 7 0 . b y t e $ 0 0 , $ 1 7 , $ 7 9 , $ f 0 , $ 0 0 , $ 0 02 5 8 0 b y t e $ 0 0 , $ 0 0 , $ 0 0 , $ f 9 , $ f 92 5 9 0 ;2 6 0 0 ;2 6 1 0 ; t h e v a r i a b l e s i t h f o l l o w i n g2 6 2 0 ; t a b l e a r e d e f i n e d b e l o w2 6 3 0 ;2 6 4 0 ;

3 K A

L L H M K A J E L F C C G A B A H

I C H G I

A C M B A K L J

A C

I G N K B A

P G

O L O F N G P E H P D

M E C B J I

K C M C O M G N K F N L G M E L I F

O C N H

E E

I H H N P B B P I

C E

2 6 5 0 h c u r s . b y t e O2 6 6 0 ;2 6 7 0 u s r t x t . b y t e O2 6 8 0 u s r c o l . b y t e O2 6 9 0 u s r s c r . b y t e2 7 0 0 u s r b n k . b y t e O2 7 1 0 ;2 7 2 0 n t s a v e . b y t e O2 7 3 0 ;2 7 4 0 o j m p . w o r d2 7 5 0 ;2 7 6 0 o l d l o g . w o r d O2 7 7 0 n e w l o g . w o r d2 7 8 0 ;2 7 9 0 . =2 8 0 0 ;2 8 1 0 ;2 8 2 0 ; ' s c a n ' i t h a d d r e s s o f t h2 8 3 0 ; a c t u a l p r o g r a m c o d e d - b l o c k2 8 4 0 ; r a m , a c a l c u l a t e d b a s s e m b l e r2 8 5 0 ;2 8 6 0 ;2 8 7 0 s c a n p r o g ( » - v e c s e t )2 8 8 0 ;2 8 9 0 ; e n d 1 s a s s e m b l y2 9 0 0 . e n d2 9 1 0 :2 9 2 0 :2 9 3 0 p r i n t : r e c o s m e t i c n e w l i n e2 9 4 0 :2 9 5 0 :2 9 6 0 r e m t h o u t p u t f r o m t h s e c o n d2 9 7 0 r e m a s s e m b l y i a p p e n d e d t t h a t2 9 8 0 r e f r o m t h f i r s t2 9 9 0 :3 0 0 0 o p e n 2 , 8 , 2 , " 0 : t - h e l p ! , p , a "3 0 1 0 :3 0 2 0 s y 7 0 3 0 3 0 « $ d a O O3 0 4 0 . o p t o 3 0 5 0 ;3 0 6 0 c h r o u t = $ f f d 23 0 7 0 c h k i n $ f f c 63 0 8 0 g e t i n $ f f e 43 0 9 0 s e t l f s S f f b a3 1 0 0 s e t n a m = $ f f b d3 1 1 0 o p e n $ f f c O3 1 2 0 c l o s e $ f f c 33 1 3 0 c l r c h n = $ f f c c3 1 4 0 s c n k e y = $ f f 9 f3 1 5 0 ;3 1 6 0 s u b = $ 1 0 03 1 7 0 f l a s h = $ 1 4 03 1 8 0 d e s l e n = 2 3 1 9 0 ;

; k e r n a l a d d r e s s e s

; t e m p s u b r t n s b a s e; s c r e e n f l a s h a d d r; b y t e s / d e s c

3 2 0 0 ; m o s t o t h a c t u a l d a t a f o t h 3 2 1 0 f o l l o w i n g s t o r a g e a r e a w r i t t e n3 2 2 0 ; h e r e b t h f i r s t p a r t o t h 3 2 3 0 ; p r o g r a m . i t i d u p l i c a t e d h e r e3 2 4 0 b e c a u s e w n e e d t t e l l p a a b o u t3 2 5 0 ; t h e v a r i o u s a d d r e s s e s3 2 6 0 ;3 2 7 0 v e c s e t » 1 3 2 8 0 v c s 13 2 9 0 h l p v i d3 3 0 0 h c u r s3 3 1 0 u s r t x t3 3 2 0 u s r c o l3 3 3 0 u s r s c r3 3 4 0 u s r b n k3 3 5 0 n t s a v e3 3 6 0 o j m p3 3 7 0 o l d l o g3 3 8 0 n e w l o g

1

3 3 9 0 ;3 4 0 0 . = . + 3 4 1 0 ;3 4 2 0 s c a n3 4 3 0 ; n e w k e y s c a n r o u t i n e3 4 4 0 I d $ c 3 4 5 0 c m p # $ 3 93 4 6 0 b e s c a 23 4 7 0 ;3 4 8 0 s e a l j m ( o j m p )3 4 9 0 ;3 5 0 0 s c a 2 I d $ 0 2 8 d3 5 1 0 c p x # 43 5 2 0 b c s e a l3 5 3 0 c p # 3 5 4 0 b e s e a l3 5 5 0 I d # $ 4 03 5 6 0 s t $ c 3 5 7 0 I d o l d l o g3 5 8 0 I d o l d l o g +3 5 9 0 j s v c s 1

; v e c t o r s w a pr o u t i n e

; h e l p v i d e o p r e f s; h e l p c r s r c o l o u r; t e x t c o l o u r s a v e; c o l o u r u n d e r c r s r; s c r e e n p a g e; 1 6 k v i d e o b a n k; o h e l p f i l e s; e x i t r o u t i n e a d d r; o l d k e y l o g a d d r; n e w k e y l o g a d d r

; s k i p l o a d a d d r e s s

; t e s t l a s t k e w a l e f t a r r o w

; y e s

; o l d k e y l o g l i n k

; t e s t ( s h i f t ) c t r l

n

n p u t ' n o k e y ' i

l a s t k e p r e s s e d; r e s t o r e v e c s o 2 d

p r e s s w o n ' t b o m b

T r a n s a c t o r 4 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 52/84

P B A B O A

C M L M D

H D

I E G

M A N E G

I J M N

I P O F K C M P

M D J

I IO C M K B K E G N N N

G N L A F J A P H G K

I O

1 A D G A K F F

M P J N

C H J L O F M C J

O E P I

C L G

F B B L N E

3 6 0 03 6 1 03 6 2 03 6 3 03 6 4 0 ;3 6 5 0 s c a 33 6 6 0 ;3 6 7 0 s c a 43 6 8 03 6 9 03 7 0 03 7 1 03 7 2 03 7 3 03 7 4 03 7 5 03 7 6 03 7 7 0 ;3 7 8 0 s c a 53 7 9 0 ;3 8 0 0 s c a 63 8 1 0 ;3 8 2 0 s c a 73 8 3 0 ;3 8 4 0 s c a 83 8 5 03 8 6 03 8 7 03 8 8 03 8 9 03 9 0 0 ;3 9 1 0 ;3 9 2 0 h a s h

c p x # 4b e s c a 3I d # $ 3 0b n e s c a 7

I d # $ 1 0

I d $ 9 b e s c a 5c m p # 1b n s c a 6I d $ 0 2 5 9j s h a s hs t f i l eI d $ 0 2 6 dj s h a s hs t s e c a d d

j m h e l p

j s v e c s e t

I d # e n d f l a

I d f l a . ys t a f l a s h , yd e b p s c a 8j s f l a s hj m s e a l

; t e s t u n s h i f t e dy e

; l o n g f l a s h c o u n t; f l a s h a n e x i t

; s h o r t f l a s h c o u n t

; t e s t o p e n f i l e sz e r o - o

; > o n e - e x i t; c u r r e n t I f; g e t u n i q u e I f

; c u r r e n t s e c a d d; g e t u n i q u e s e c a d d

j n s t a l l n e w k ' l o g

; c o p y f l a s h r o u t ' n

; d f l a s h; e x i t h e l p p g

3 9 3 0 ; s e l e c t n o n - c o n f l i c t i n q f i l e o s 3 9 4 03 9 5 03 9 6 03 9 7 03 9 8 0 ;3 9 9 0 ;

a n d # $ 7 eo r # e o # r t

; c l e a r b i t s 0 ; s e t b i c l e a r b i

4 0 0 0 ; t h i s r o u t i n e i c o p i e d t t h 4 0 1 0 ; s t a c k w h e n n e e d e d , a n r u n t h e r e4 0 2 0 ;4 0 3 0 ;4 0 4 0 f l 4 0 5 0 ; f l a s h s c r e e n4 0 6 04 0 7 04 0 8 0 ;4 0 9 0 f l a 14 1 0 04 1 1 04 1 2 04 1 3 04 1 4 04 1 5 04 1 6 04 1 7 04 1 8 0 ;4 1 9 0 e n d f l g4 2 0 0 ;4 2 1 0 ;

I d # $ 3 7s t

c p $ d O 1 2b n f l a 1i n $ d 0 2 0i n $ d O 2 1d e b n f l a 1I d # $ 3 4s t r t

. - ( f l a 1

; s w i t c h i n i / o e t

; w a i t f o r a s t e r

; b u m p c o l o u r s

; t e s t f i n i s h e dn r e f l a s hy e e x i t

4 2 2 0 ; t h e n e x t s u b r o u t i n e s a r e c o p i e d4 2 3 0 ; f r o m d - b l o c k r a m t $ 1 0 0 e v e r y4 2 4 0 ; t i m e h e l p i u s e d4 2 5 0 ;4 2 6 0 ;4 2 7 0 s u b r4 2 8 0 ; c o p y b y t e f r o m r a a d d r ( s u b r 5 4 2 9 0 ; t d - b l o c k r a a d d r ( s u b r + 1 2 )4 3 0 04 3 1 04 3 2 04 3 3 04 3 4 04 3 5 04 3 6 04 3 7 04 3 8 04 3 9 0 ;4 4 0 0 S b 4 4 1 04 4 2 04 4 3 0 ;4 4 4 0 S b 4 4 5 0 ;4 4 6 0 ;4 4 7 0 z u b r

I d # $ 3 7s t I d S f f f fI d # $ 3 4s t s t S f f f fi n s u b +b n s b i n s u b +

i n s u b + 1 2b n s b i n s u b + 1

r t

r o m s i n

; a d d r s e o c a l lr o m s o u t

; a d d r s e o c a l l; b u m p f e t c h a d d r

; b u m p s t a s h a d d r

4 4 8 0 ; c o p y b y t e f r o m d - b l o c k r a a d d r4 4 9 0 ; ( z u b r + 1 t r a a d d r ( z u b r 8 4 5 0 04 5 1 04 5 2 04 5 3 04 5 4 0

I d S f f f fI d # $ 3 7s t s t S f f f fI d # $ 3 4

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

; a d d r s e o c a l lr o m s o u t

J G N A E

J I

P M F

A N

I O I

M N H C A M M F D A L

M L P M K

P B G

G M B E

I O

L G A F D O

P C M G C

J B L J J N G

I F E O C H O M N H N A H J N G M E E O F P

H H B P N O

I C K H A J F

O I

4 5 5 04 5 6 04 5 7 04 5 8 04 5 9 0

s t i n z u ; b u m p f e t c h a d d rb n z b i n z u b +

4 6 0 0 z b 1 i n z u ; b u m p s t a s h a d d r4 6 1 04 6 2 04 6 3 0

b n z b i n z u b +

4 6 4 0 z b r t 4 6 5 04 6 6 0 c a l c a b s o l u t e a d d r e s s o z u b r4 6 7 0 z u b = s u z u b r - s u b r4 6 8 04 6 9 04 7 0 0 o p 4 7 1 04 7 2 04 7 3 04 7 4 04 7 5 04 7 6 04 7 7 04 7 8 04 7 9 04 8 0 04 8 1 04 8 2 04 8 3 04 8 4 04 8 5 04 8 6 04 8 7 04 8 8 0

o p e n h e l p f i l e ( h e l p - a , e t c )s t a f i l n a m 5 ; l a s t f i l n a m c h a rI d f i l e ; o p e n l f , 8 , s a . . .p h i d s e c a d dI d # $ 3 7s t I d # j s s e t l f sI d # < f i l n a m ; . . . " h e l p - ? "I d # > f i l n a mI d # j s s e t n a mj s o p e np l t a ; o p e n i n p u t c h a nj s c h k i n

4 8 9 0 o f 1 s e i ; ( r o m d i c l i )4 9 0 04 9 1 04 9 2 04 9 3 04 9 4 0

I d # $ 3 4 r o m s o u ts t r t

c a l c a b s o l u t e a d d r e s s o o p 4 9 5 0 o p n f i l s u + o p n - s u b r4 9 6 04 9 7 04 9 8 0 h e l p f i l e n a m e l a s t c h a r v a r i e s4 9 9 0 f n a m . a s c " h e l p - ? "5 0 0 05 0 1 0 ; c a l c a b s o l u t e a d d r e s s o f n a m5 0 2 0 f i l n a m = s u b + f n a m - s u b r5 0 3 05 0 4 05 0 5 0 g e 5 0 6 05 0 7 05 0 8 05 0 9 05 1 0 05 1 1 05 1 2 05 1 3 0

; g e t b y t e f r o m h e l p f i l eI d # $ 3 7 r o m s i ns t j s g e t i n ; g e t t h e b y t ec l r e l o c a t a b l e j m b e o f

; c a l c a b s o l u t e a d d r e s s o g e 5 1 4 0 g e t b y t s u b + g e t - s u b r5 1 5 05 1 6 05 1 7 0 e l 5 1 8 05 1 9 05 2 0 05 2 1 05 2 2 05 2 3 05 2 4 05 2 5 05 2 6 05 2 7 05 2 8 05 2 9 0

; c l o s e h e l p f i l eI d f i l ep h I d # $ 3 7 r o m s i ns t j s c l r c h n ; c l o s e t h f i l ep l j s c l o s ec l r e l o c a t a b l e j m b e o f

; c a l c a b s o l u t e a d d r e s s o e l 5 3 0 0 c l s f i l s u c l s - s u b r5 3 1 05 3 2 05 3 3 0 k e 5 3 4 05 3 5 05 3 6 05 3 7 05 3 8 05 3 9 05 4 0 05 4 1 05 4 2 0

; g e t a s c i i b y t e , r e t u r n i n . ar e t u r n s h i f t k e r e g i s t e r i ,

I d # $ 3 7 r o m s i s t j s s e n k e y ; s c a n k y b d m a t r i xI d $ c ; g e t k e y c o d eI d $ e b 8 1 , y ; c o n v t a s c i iI d $ 0 2 8 d ; s h i f t k e r e g i s t e r

5 4 3 0 k y c l r e l o c a t a b l e j m 5 4 4 05 4 5 05 4 6 0

b e o f

; c a l c a b s o l u t e a d d r e s s o k e 5 4 7 0 k e y c h k = s u b k e y - s u b r5 4 8 05 4 9 0

F L E N L L P

I H F G A

I L

O I I

J I I L K E P

O K A L E E K D M

M N K H

F I

G E H F H G A A H K H J D O K A D M B A M H K

F O E C O P D K E D B

M I

B D E O L C B J A B E P K A C O

I D G

I L

5 5 0 0 p u 5 5 1 0 ; p r i n t a c h a r a c t e r t t h s c r e e n5 5 2 05 5 3 05 5 4 05 5 5 05 5 6 05 5 7 0 ;

I d s t j s c l b e

# $ 3 7

c h r o u t

O f r e l o c a t a b l e j m

5 5 8 0 ; c a l c a b s o l u t e a d d r e s s o p u 5 5 9 0 p u t b y t5 6 0 0 ;5 6 1 0 ;

s u + p u t - s u b r

5 6 2 0 ; c a l c o s u b r o u t i n e b y t e s5 6 3 0 s u b s i z5 6 4 0 ;5 6 5 0 ;

• - s u b r

5 6 6 0 ; n e x t c o m e s t h a c t u a l c o d e t h a t5 6 7 0 ; e x e c u t e s i d - b l o c k r a m . t h e5 6 8 0 ; f i r s t s e c t i o n s w a p s o u t t h e u s e r5 6 9 0 e n v i r o n m e n t , i n s t a l l s n e o n 5 7 0 0 ;5 7 1 0 ;5 7 2 0 h e l p5 7 3 0 ; t h e h e l p u t i l i t y m a i n l i n e5 7 4 05 7 5 05 7 6 05 7 7 05 7 8 05 7 9 05 8 0 05 8 1 05 8 2 05 8 3 05 8 4 05 8 5 05 8 6 05 8 7 0 ;5 8 8 0 h e 5 8 9 05 9 0 05 9 1 05 9 2 05 9 3 05 9 4 05 9 5 05 9 6 05 9 7 05 9 8 05 9 9 06 0 0 06 0 1 06 0 2 0 ;6 0 3 0 h e 6 0 4 06 0 5 06 0 6 06 0 7 06 0 8 06 0 9 06 1 0 06 1 1 06 1 2 06 1 3 06 1 4 06 1 5 06 1 6 06 1 7 06 1 8 0 ;6 1 9 0 h e 6 2 0 06 2 1 06 2 2 06 2 3 06 2 4 06 2 5 06 2 6 06 2 7 06 2 8 06 2 9 06 3 0 06 3 1 06 3 2 06 3 3 06 3 4 06 3 5 06 3 6 06 3 7 06 3 8 06 3 9 06 4 0 06 4 1 06 4 2 06 4 3 06 4 4 0

I d I d I d j s I d I d t a j s t s s t I d t x I d

I d s t d e c p b n m s t s t I d s t I d s t I d S I

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

j s d e b p I d I d I d s t s t s t I d s i I d l a s t s t s t s l I d I d s t s t j s I d o r j s I d

# # $ d 0# c o p y# # $ d 2

c o p y

s t k s a v# $ f f

# s u b s i z

s u b r . ys u b , y

# $ f fh e s u b +s u b + 1 #

# $ d 8s u b +# $ d 6s u b + 1

s u

h e

h e # < $ d 0 1 1# > $ d 0 1 1s u b +s u # < v i d b u f# > v i d b u fs u b + 1 s u 1 # 1 $ c

s u

h e $ 0 2 8 6$ 0 2 8 7$ 0 2 8 8u s r t x tu s r c o lu s r s c r# $ 0 2 8 8# < $ d d O O# > $ d d O Os u b +s u b +z u b +z u b +# < u s r b n k# > u s r b n ks u b + 1 s u 1 s u u s r b n k# z u b +# < h l p v i d

; c o p y $ 0 0 0 0 - 0 1 f f; t o $ d O O O - d 1 f f

; c o p y $ 0 4 0 0 - 0 7 f f1 $ d 2 0 0 - d 5 f f

; s a v e u s e r s t p t

; p u t o u s t p t f a f r o m s u b r t n s

; c o p y s u b r o u t i n e si n t o s t a c k p a g e

; c o p y c o l o u r r a ( $ d 8 0 0 - $ d b f f )t r a b e n e a t h( $ d 6 0 0 - $ d 9 f f )

; c o p y v i d e o r e g st s a v e b u f f e r

; s a v e c o l o u i o t e x t a n o c h a ru n d e r c u r s o r ,a n s c r e e n p a g e

; s c r e e n a p a g e; s a v e u s e r ' s v i d e o

b a n k n u m b e r( t h e h a r d w a y )

; c o p y o u v i d e o

T h T r a n s a c t o r 5 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 53/84

6 4 5 06 4 6 06 4 7 06 4 8 06 4 9 06 5 0 06 5 1 06 5 2 06 5 3 0 ;6 5 4 0 h e 6 5 5 06 5 6 06 5 7 06 5 8 06 5 9 0 ;6 6 0 0 h e 6 6 1 06 6 2 06 6 3 06 6 4 06 6 5 06 6 6 06 6 7 06 6 8 06 6 9 06 7 0 06 7 1 06 7 2 0 ;6 7 3 0 h e 6 7 4 06 7 5 06 7 6 06 7 7 06 7 8 06 7 9 06 8 0 06 8 1 06 8 2 06 8 3 06 8 4 06 8 5 06 8 6 06 8 7 0 ;6 8 8 0 h e 6 8 9 06 9 0 06 9 1 06 9 2 06 9 3 06 9 4 0 ;6 9 5 0 h e 86 9 6 06 9 7 06 9 8 06 9 9 07 0 0 07 0 1 07 0 2 07 0 3 07 0 4 07 0 5 07 0 6 07 0 7 0 ;7 0 8 0 h e 7 0 9 07 1 0 07 1 1 07 1 2 07 1 3 07 1 4 07 1 5 07 1 6 07 1 7 0 ;7 1 8 0 h e 1 07 1 9 07 2 0 07 2 1 07 2 2 07 2 3 07 2 4 07 2 5 07 2 6 07 2 7 07 2 8 07 2 9 07 3 0 0 ;7 3 1 0 h e 1 17 3 2 07 3 3 07 3 4 07 3 5 07 3 6 07 3 7 07 3 8 07 3 9 0

I d # > h l p v i ds t z u b + 1s t z u I d # < $ d O 1 1I d # > $ d O 1 1s t z u s t z u b +I d # 1

j s z u d e b p h e I d h c u r ss t $ 0 2 8 6

I d # < h l p t x tI d # > h l p t x tj s p r s t rI d # 1 j s p u t b y tj s p u t b y tI d # < n a m e sI d # > n a m e ss t s t I d # s t

c l a d # " a "j s p u t b y tI d # $ 2 0j s p u t b y tI d I d j s p r s t rc l I d a d # d e s l e ns t b c c h e 7i n

I d # 1 j s p u t b y ti n I d c m n t s a v eb n e h e 6

j s k e y c h kc p # b e q h e 9t a s e s b # " a "b c c h e 8c m n t s a v eb c h e t x j s p r t f i lj m p h e 5

I d # < v i d b u fI d # > v i d b u fs t z u s t z u b +I d # < $ d O 1 1I d # > $ d O 1 1s t z u b +s t z u b +I d # 1

j s z u d e b p h e 1 0i n s t z u + s t z u b +I d # $ d 6s t z u b +I d # $ d 8s t z u + I d # s t

j s z u d e b n h e 1 1d e b n h e 1 1I d a u s r t x tI d u s r c o lI d u s r s c rs t $ 0 2 8 6

T r a n s a c t o r

p r e f e r e n c e s i n t ov i c h i p

; o u r t e x t c o l o u r

; s t a r t u p m e s s a g e

; t w o r e t u r n s

; a d d r e s s o h e l pt o p i c s t r i n g s

; t o p i c

; c o n v t o p i c t c h a r a n p r i n t

p r i n t s p a c e

; p r i n t t o p i c s t

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

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

; t e s t a l p r i n t e dn

; g e t c h a r a c t e r; t e s t l o g o p r e s s e d

y e ; s a v e c h a r a c t e r; c o n v k e y p r e s s t

h e l p t o p i ci n v a l i d

i n v a l i dr e t r i e v e c h a r

; p r i n t t h f i l e; r e p r i n t m e n u; r e s t o r e u s e r ' s

v i d e o

; c o p y f r o m d - r a m( $ d 7 0 0 - $ d a f f )t c o l o u r r a ( $ d 8 0 0 - $ d b f f )

P G O E J E F L

I ID L J M O K H H J K F J I

H K H N C M D C A F B I

O F K A

O E 0

I P I

B C B E O

I J

G B L K C E

I A J

L P E P A C E P P E M K E I

C M L J K F M O M M L H K K C

I A L P H G

7 4 0 07 4 1 07 4 2 07 4 3 07 4 4 07 4 5 07 4 6 07 4 7 07 4 8 07 4 9 07 5 0 07 5 1 07 5 2 07 5 3 07 5 4 0 ;7 5 5 0 h e 1 1 a7 5 6 07 5 7 07 5 8 07 5 9 07 6 0 07 6 1 07 6 2 07 6 3 07 6 4 07 6 5 07 6 6 07 6 7 0 ;7 6 8 0 h e 1 27 6 9 0 h e 1 47 7 0 07 7 1 07 7 2 07 7 3 07 7 4 07 7 5 07 7 6 07 7 7 07 7 8 0 h e 1 57 7 9 0 ;7 8 0 0 ;

s t $ 0 2 8 7s t $ 0 2 8 8I d # < u s r b n kI d # > u s r b n ks t z u + s t z u I d # < $ d d O OI d # > $ d d O Os t z u + s t z u + j s z u I d s t k s a vt x I d #

I d $ d O 2 2 , xs t $ 0 7 f 8 , xd e b p h e 1 1 aI d # $ d Os t $ d O 2 3I d # s t $ d O 2 2s t $ d O 2 4s t $ d O 2 5I d # b n e x c o p y

I d # I d $ 0 7 f 8 , xs t $ 2 2 , xd e b p h e 1 4I d # I d # $ d 2I d # j s c o p yj s v e c s e tj m ( o j m p )

; r e s t o r e s t a c k p t

; s a v e 4 0 - p g b y t e s

r e s t o r e p g s l o wr a f r o m $ d 0 0 0( d o u b l i n g v e c s$ 2 $ 2 i d - r a m i m a g e )

; p u t z p b y t e s b a c k

r e s t o r e $ 4 0 0 - $ 7 f ff r o m $ d 2 0 0 - $ d 5 f f

; s e t u o u v e c t o r; e x i t v i r o

7 8 1 0 ; t h e n e x t r o u t i n e c o p i e s p a g e s o 7 8 2 0 ; m e m o r y . e n t e r w i t h s o u r c e p a g e i 7 8 3 0 ; . a . t a r g e t p a g e i n . y , o p a g e s7 8 4 0 ; t c o p y i . x ' c o p y ' i t h 7 8 5 0 . n o r m a l v e r s i o n ; ' x c o p y i 7 8 6 0 . k l u d g e t a v o i d u s i n g t h e s t a c k7 8 7 0 ; c o p y i n g i n t o p a g e o m e m o r y .7 8 8 0 ;7 8 9 0 ;7 9 0 0 x c o p y7 9 1 0 ; c o p y m e m o r y , b r a n c h b a c k t h e 1 27 9 2 07 9 3 07 9 4 0 ;7 9 5 0 c o p y

s e . b y t e $ 2 ; ' b i t ' ( s k i p c l c )

7 9 6 0 ; c o p y m e m o r y , r e t u r n v i r t 7 9 7 07 9 8 07 9 9 08 0 0 08 0 1 08 0 2 08 0 3 0 c p 8 0 4 08 0 5 08 0 6 08 0 7 08 0 8 08 0 9 08 1 0 08 1 1 08 1 2 08 1 3 0 ;8 1 4 0 ;8 1 5 0 p r t f i l

c l s t $ 2 s t $ 2 I d # s t $ 2 s t $ 2 I d ( $ 2 2 ) , ys t ( $ 2 4 ) , yi n b n c p i n $ 2 i n $ 2 d e b n c p b c s h e 1 2r t

8 1 6 0 ; p r i n t h e l p f i l e8 1 7 08 1 8 0 ;8 1 9 0 p r l 18 2 0 08 2 1 08 2 2 08 2 3 0 ;8 2 4 0 p r t 28 2 5 08 2 6 0 ;8 2 7 0 p r t 38 2 8 08 2 9 08 3 0 08 3 1 08 3 2 08 3 3 08 3 4 0

j s o p n f i l

I d # $ 9 3j s p u t b y tI d # 2 s t l i n c n t

I d # 4 s t e o l e n t

j s g e t b y tj s p u t b y tI d $ 9 b n p r t 6c m # 1 b e p r t 4d e e o l e n tb n p r t 3

5

; s o u r c e h ; t a r g e t h i

; s o u r c e l ; t a r g e t l

p a g e c o u n t e r

; x c o p y e s c a p e

; o p e n t h f i l e

; c l e a r s c r e e n

; i n i t l i n e c o u n t

; i n i t c o l u m n c o u n t

; g e t d i s k b y t ep r i n t i t

; t e s t s t a t u se o

; t e s t c ; y e s; t e s t e n o l i n e

n

E H A H H G O K H C B G A D A L E D

M O M A A K F B P F M A A

I F D I

B C A K H E I I

C O F A K G B G H H G M O E C J I

L G A N G N

I C K

G A N N I

N F M H A K D

M I

C K F

O K

8 3 5 0 ;8 3 6 0 p r t 4 d e l i n c n t ; t e s t e n o p a g e8 3 7 0 b n e p r t 2 n 8 3 8 0 j s s p e s t r ; ' s p c t c o n t i n u e '8 3 9 0 I d # < h t 1 ; ' l o g o t o e x i f8 4 0 0 I d # > h t 18 4 1 0 j s p r s t r8 4 2 0 ;8 4 3 0 p r t 5 j s k e y c h k ; g e t a k e y8 4 4 0 c p y # 2 ; t e s t l o g o p r e s s e d8 4 5 0 b e p r t 8 y e 8 4 6 0 c m # $ 2 0 ; t e s t s p p r e s s e d8 4 7 0 b n e p r t 5 n 8 4 8 0 b e q p r t 1 y e 8 4 9 0 ;8 5 0 0 p r t 6 j s s p e s t r ; ' s p c t c o n t i n u e '8 5 1 0 ;8 5 2 0 p r t 7 j s k e y c h k ; g e t a k e y8 5 3 0 c m # $ 2 0 ; t e s t s p p r e s s e d8 5 4 0 b n e p r t 7 n 8 5 5 0 ;8 5 6 0 p r t 8 j m c l s f i l ; c l o s e a n e x i t8 5 7 0 ;8 5 8 0 ;8 5 9 0 s p e s t r8 6 0 0 ; p r i n t ' p r e s s s p a c e t c o n t i n u e '8 6 1 0 I d # < s p c t x t8 6 2 0 I d # > s p c t x t8 6 3 0 ;8 6 4 0 p r s t r8 6 5 0 p r i n t s t r i n g a d d r e s s e d i . a / . y8 6 6 0 s t $ 2 8 6 7 0 s t $ 2 8 6 8 0 I d # 8 6 9 0 ;8 7 0 0 p r s 1 I d a ( $ 2 2 ) , y8 7 1 0 b e p r s 28 7 2 0 j s p u t b y t ; p r i n t c h a r a c t e r8 7 3 0 i n 8 7 4 0 b n p r s 18 7 5 08 7 6 08 7 7 08 7 8 08 7 9 08 8 0 08 8 1 08 8 2 0

3 r s 2 r t

m e s s a g e s n r o o m f o a n y t h i n g t o f a n c y h e r e

8 8 3 0 h l p t x t8 8 4 0 . b y t e 1 3 , 8 , 1 4 78 8 5 0 . a s c H e l p ! H e l p ! "8 8 6 0 . b y t e 1 3 , 1 3 , 1 88 8 7 0 . a s c S e l e c t a t o p i c "8 8 8 0 ;8 8 9 0 ; n e x t m s i p a r t o h l p t x t , b u 8 9 0 0 ; c a n a l s o b e a d d r e s s e d s e p a r a t e l y8 9 1 0 ;8 9 2 0 h t 8 9 3 0 . b y t e 1 8 9 4 0 . a s c ( L O G O k e t o e x i t ) "8 9 5 0 . b y t e 1 4 6 , 08 9 6 0 ;8 9 7 0 s p c t x t8 9 8 0 . b y t e 1 3 , 1 88 9 9 0 . a s c S P A C E t c o n t i n u e "9 0 0 0 . b y t e 1 4 6 , 09 0 1 0 ;9 0 2 0 ;9 0 3 0 u n i n i t i a l i z e d d a t a a r e a9 0 4 0 ;9 0 5 0 ;9 0 6 0 s t k s a v . b y t e O ; o l d s t a c k p t 9 0 7 0 l i n c n t . b y t e ; l i n e s p e p a g e9 0 8 0 e o l e n t . b y t e O ; c h a r s p e r l i n e9 0 9 0 f i l e . b y t e ; l o g i c a l f i l e9 1 0 0 s e c a d d . b y t e s e c o n d a r y a d d r e s s9 1 1 0 ;9 1 2 0 v i d b u f • 1 ; v i d e o s a v e a r e a9 1 3 0 ;9 1 4 0 ;9 1 5 0 ; w h o l e b u n c h o e m p t y b y t e s9 1 6 0 ; f o r t h h e l p t o p i c s t r i n g s9 1 7 0 ;9 1 8 0 ;9 1 9 0 n a m e s9 2 0 0 • n a m e s ( 2 0 « d e s l e n ) - 19 2 1 0 . b y t e9 2 2 0 ;

M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 54/84

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 55/84

G u l p C o p y P r o g r a m L i s t i n g

E A

I ID F

I P

0 D L O E A G

M

E A I

D P

N

G B

M K K

D

H

L

K

M D

M

K M B I

M

1 0 0 0 r e m s a v e " O : g u l p c o p y " , 1 0 1 0 p r i n t c h r $ ( 1 4 7 ) : p r i n t * 1 5 7 1 g u l p c o p y * * 1 0 2 0 p r i n t : p r i n t " 5 1 2 k r a m v e r s i o n "1 0 3 0 p r i n t : p r i n t b y m . g a r a m s z e g h y " : p r i n t : p r i n t1 0 4 0 e 2 8 1 6 : e e 3 e e 3 r e t h r e e a s

e n t r y p o i n t s1 0 5 0 d i s n ( 3 5 ) : c h = 01 0 6 0 f o 2 8 1 6 t 3 0 3 8 : r e a d x p o k e i , x : c c

n e x t1 0 7 0 i c h < > 2 8 6 0 0 t h e n p r i n t c h e c k s u m e r r o r ! " : s t o p1 0 8 0 f o t 1 7 s n ( i ) 2 1 : n e x t1 0 9 0 f o 1 t 2 4 s n ( i ) 1 9 n e x t1 1 0 0 f o = 2 t 3 0 s n ( i ) 1 8 n e x t1 1 1 0 f o 3 1 t o 3 5 : s n ( i ) 1 7 n e x t1 1 2 0 g r a p h i c c l 1 1 3 0 g o s u b 1 3 6 0 : b a n k 1 5 : o p e n 1 5 , 8 , 1 5 , " i O "

o p e n 8 , 8 , 8 , " # " 0 o 0 1 1 4 0 p r i n t * 1 5 , " u 1 : " ; 8 ; 0 ; 1 8 : 0 : p r i n t # 1 5 , " b - p : " ; 8 1 6

g e t # 8 , i l $ , i h $1 1 5 0 s 1 s 1 p r i n t # 1 5 , " u 1 : " ; 8 ; 0 ; 4 2 ; 0 : i d t h e ns 0 s 1 1 6 0 p r i n t : p r i n t c o p y i n g " s + s i d e s . . " p r i n t1 1 7 0 c l o s e 8 : p r i n t # 1 5 , " u O c h r $ ( 4 )1 1 8 0 p r i n t " r e a d i n g .1 1 9 0 5 2 f o t 9 g o s u b i 4 1 0 : 2 1 n e x t

: s y s e 3 , ( o 2 ) , 1 2 81 2 0 0 5 2 f o 1 t 1 7 g o s u b i 4 1 0 : 2 1 n e x t

: s y s e 3 , ( o 2 + 1 ) , 1 2 81 2 1 0 5 2 f o 1 t 2 7 g o s u b i 4 1 0 : s n ( i )

n e x t : s y s e 3 , ( o 2 2 ) , 1 2 81 2 2 0 5 2 f o 2 t 3 5 g o s u b i 4 1 0 : s n ( i )

n e x t : s y s e 3 , ( o 2 3 ) , 1 2 81 2 3 0 i s t h e n s 0 o 2 4 3 5 g o t o 1 1 9 01 2 4 0 g o s u b 1 3 9 0 : p r i n t : p r i n t " f o r m a t t i n g . . 1 2 5 0 p r i n t # 1 5 , " u O c h r $ ( 6 ) c h r $ ( 0 ) i l i h 1 2 6 0 p r i n t # 1 5 , " u O c h r $ ( 4 ) : p r i n t w r i t i n g . .

o 0 1 2 7 0 s y e 3 , ( o 2 ) , 1 2 9 : 5 2 f o t 9 g o s u b 1 4 4 0

2 1 : n e x t1 2 8 0 s y s e 3 , ( o 2 1 ) , 1 2 9 : 5 2 f o 1 t 1

g o s u b 1 4 4 0 : 2 1 n e x t1 2 9 0 s y e 3 , ( o 2 2 ) , 1 2 9 : 5 2 f o 1 t 2

g o s u b 1 4 4 0 : a s n ( i ) : n e x t1 3 0 0 s y e 3 , ( o 2 3 ) 1 2 9 : 5 2 f o 2 t 3

g o s u b 1 4 4 0 : s n ( i ) : n e x t1 3 1 0 i s t h e n s 0 o 2 4 3 5 g o t o 1 2 7 01 3 2 0 :1 3 3 0 p r i n t c h r $ ( 1 4 7 ) : p r i n t * d o n e * * " : p r i n t # 1 5 , " i O

d o l o s e1 3 4 0 p r i n t : i n p u t c o p y a n o t h e r ( y / n ) " ; c a $ : i c a y

t h e n 1 1 3 0 : e l s e e n 1 3 5 01 3 6 0 p r i n t : p r i n t i n s e r t s o u r c e d i s k . . t h e n p r e s s r e t u r n "1 3 7 0 g e t k e y a $ i a $ O c h r $ ( 1 3 ) t h e n 1 3 7 0 : e l s e r e t u r n1 3 8 0 :1 3 9 0 p r i n t : p r i n t i n s e r t t a r g e t d i s k t h e n p r e s s r e t u r n "

g o t o 1 3 7 01 4 0 0 :1 4 1 0 p r i n t # 1 5 , " u O c h r $ ( 6 4 ) c h r $ ( i o c h r $ ( 0 )

c h r $ ( s n ( i ) ) c h r $ ( i 1 1 4 2 0 s y e 2 , a , s n ( i ) , 0 : r e t u r n

K O

K I

C F C J L

O O D D A

I D H B F J B K G G N B I

E K H M P

C 1 2 8A P F

H D M K M I

O C H J J J K D L J E E A B D

F I F

F O O

1 4 3 0 :1 4 4 0 p r i n t # 1 5 , " u O " c h r $ ( 6 6 ^ c h r S ; ( l - t

c h r $ ( s n ( i ) ) c h r $ ( i 1 1 4 5 0 s y s e 1 , a , s n ( i ) :1 4 6 0 :1 4 7 0 d a t a1 4 8 0 d a t a1 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 a

G u l p C o p y

7 6 1 1 , 1 3 3

1 3 3 , 2 5 41 7 3 ,

6 9 , 2 5 41 4 2 , 0

0 2 5 5 ,6 4 1 3 3 ,

2 4 0 , 2 5 1 ,2 5 5 , 4

1 6 1 4 1 ,2 2 0 , 2 4 0 ,1 4 1 , 0 2 5 1 , 7 6

9 6 , 1 3 3 ,0 1 2 0 ,

3 2 1 6 3 ,1 4 2 , 0

0 2 5 5 ,5 2 3 0 ,

2 0 4 , 2 5 5 ,2 4 0 , 2 5 1 ,

0 , 2 2 1 ,2 2 3 , 1 4 2 ,2 2 3 , 1 4 1 ,

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

r e t u r n

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

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

1 3 , 2 2 0 , 1 7 3 ,0 , 2 2 1 , 1 6 9 ,

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

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

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

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

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

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

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

P A S o u r c e L i s t i n g

1 0 0 0 r e m s a v e " 0 : g u l p c o p y . p a l " , 1 0 1 0 r e m * * 5 1 2 k g u l p b i c o p y f o t h e c 1 2 {1 0 2 0 o p e n 8 , 1 0 3 0 s y 7 0 1 0 4 0 . o p t 0

5 , 1 , " 0 : g u l p c o p y . o b j "

1 0 5 0 * = $ 0 b 0 01 0 6 0 ;1 0 7 0 r a m p t r1 0 8 0 n u m s e c1 0 9 0 t s t b i t1 1 0 0 d l s d r1 1 1 0 d l i c r1 1 2 0 d 2 p r a1 1 3 0 d m a c m c1 1 4 0 d m a a d l1 1 5 0 d m a l o1 1 6 0 d m a b n k1 1 7 0 d m a d a l1 1 8 0 m m u c o r1 1 9 0 s p n s p t1 2 0 0 c l r c h n1 2 1 0 ;1 2 2 0 . b y t e 7 1 2 3 0 . b y t e 7 1 2 4 0 . b y t e 7 1 2 5 0

$ f $ f $ f $ d c 0 c

= S d c O dS d d O O$ d f O 1$ d f O 2$ d f O 4$ d f O 6$ d f O 7$ f f O O$ f f 4 7$ f f c c

1 1 2

3 2 2 2 4 1 6 1 6

4 2 4

0 8

2 2 1 ,2 4 0 ,

3 2 1 3 2 ,

3 2 1 1 1 6 2 ,

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

0 5 3

6 3 2 5 5 ,

- o c h r $ ( 0 )

7 6 , 1 8 21 6 9 , 6

7 1 , 2 5 52 0 8 , 2 4 1 6 2 , 6

0 , 1 4 22 5 4 , 7

1 3 , 2 2 03 2 7

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

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

■ 1 7 0 , 1 11 6 2 , 6 0 , 1 4 22 5 2 , 2 4

8 8 3 1 3 , 2 2 01 6 1 4

1 4 1 ,1 4 1 ,2 2 3 , 1 4 12 2 3 , 1 6 91 4 2 ,

9

; ( p t r ) , y t h r o u g h r a f o d a t a; n u m b e r o s e c t o r s t r e a d / w r i t e; t e s t s e r i a l p o r t s t a t u s; s e r i a l d a t a r e g i s t e ri n t e r r u p t c o n t r o l r e g i s t e r; s e r i a l p o r t 6 5 2 6 c i ; d m a c o n t r o l l e r s t a t u s r e g i s t e r; l s b o f i n t e r n a l a d d r e s s t a c c e s s; l s b o e x t e r n a l e x p a n s i o n r a t a c c e s s; 6 4 k e x t e r n a l r a ; l s b o b y t e c o u n t; m m u c o n t r o l

b a n k

; s p i n - s p o u t s e u f a s t s e r i a l p o r t f o i / ; c l e a r a l c h a n n e l s

< e n t r y 1 , > e n t r y 1< e n t r y 2 , > e n t r y 2< e n t r y 3 , > e n t r y 3

1 2 6 0 ; * e n t r y p o i n t # 1 1 2 7 0 e n t r y 11 2 8 01 2 9 0

w r i t e d a t a t d i s k

s t r a m p t r ; h i g h r a p t s t n u m s e c ; s e c t o r s t w r i t e o u

T r a n s a c t o r 5 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 56/84

N H N N C N B O K

L H

H G M F

H D E O P C L N E L O

N N C B I F K O C

1 C

K I

J J F D I

K O N A D J P L N M N F K E G E

I M P M P G B N F O H A

1 3 0 01 3 1 01 3 2 01 3 3 01 3 4 0 ;1 3 5 0 m o r e l1 3 6 01 3 7 01 3 8 0 ;1 3 9 0 w a t f s t1 4 0 01 4 1 01 4 2 01 4 3 0 ;1 4 4 01 4 5 01 4 6 01 4 7 0 ;1 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 0 ;1 5 9 0 w a i t 11 6 0 01 6 1 01 6 2 0 ;1 6 3 01 6 4 01 6 5 0 ;1 6 6 01 6 7 01 6 8 01 6 9 01 7 0 01 7 1 01 7 2 01 7 3 0 ;1 7 4 0 w a i t 21 7 5 01 7 6 01 7 7 0 ;1 7 8 01 7 9 01 8 0 01 8 1 01 8 2 01 8 3 0 ;1 8 4 01 8 5 01 8 6 0 ;1 8 7 0 b a c k 11 8 8 01 8 9 01 9 0 01 9 1 0 ;

s e I d # % 0 1 0 0 0 0 0 0s t t s t b i tI d #

s e j s s p n s p t

I d d 2 p r ac m d 2 p r ab n w a t f s t

e o t s t b i t

; s e t u f a s t s e r i a l p o r t

; s e r i a l p o r t 6 5 2 6 c i ; w a i t f o c h a n g e o s t a t e

; t e s t s t a t ea n # % 0 1 0 0 0 0 0 0b e w a t f s t

I d # % 0 0 1 1 1 1 1 1 ; s e t f o r r a a n k e r n a ls t m m u c o nI d a ( r a m p t r ) , yI d # s t m m u c o ns t d l s d rI d t s t b i t

; m m u c o n t r o lg e f r o m r a

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

e o # % 0 1 0 0 0 0 0 0 ; f l i p s t a t es t t s t b i tI d #

b i d l i c rb e w a i t i

i n b n w a t f s t

c l j s s p n s p tb i d l i c rI d d 2 p r a

i n t e r r u p t c o n t r o l r e g i s t e r

; s e t u f a s t s e r i a l p o r ti n t e r r u p t c o n t r o l r e g i s t e r; s e r i a l p o r t 6 5 2 6 c i

o r # % 0 0 0 1 0 0 0 0s t d 2 p r aI d #

b i d l i c rb e w a i t 2

I d d 2 p r a

i n t e r r u p t c o n t r o l r e g i s t e r

; s e r i a l p o r t 6 5 2 6 c i a n # % 1 1 1 0 1 1 1 1s t d 2 p r ad e n u m s e cb e b a c k i

i n r a m p t r +j m m o r e l

c i j s c l r c h nr t

; c l e a r a l c h a n n e l s

1 9 2 0 * e n t r y p o i n t # 2 - g e t d a t a f r o m d i s k * *1 9 3 0 e n t r y 21 9 4 01 9 5 01 9 6 01 9 7 01 9 8 01 9 9 02 0 0 02 0 1 0 ;

=

s t r a m p t r + 1s t n u m s e cs t r a m p t rI d # s e b i d l i c rj s g e t 1

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

M H O F F

G N M B

D I

P C N

H A B

N O K K

I M A K

J O D

E F G

D D K P O E

M D P F I

D O C

G

N G A K F I J A N G

K K

2 0 2 0 m o r e 22 0 3 02 0 4 0 ;2 0 5 0 g e t m o r2 0 6 02 0 7 02 0 8 02 0 9 02 1 0 02 1 1 02 1 2 02 1 3 02 1 4 0 ;2 1 5 02 1 6 02 1 7 0 ;2 1 8 02 1 9 02 2 0 0 ;2 2 1 0 b a c k 22 2 2 02 2 3 02 2 4 02 2 5 0 ;2 2 6 0 d s k g e t2 2 7 02 2 8 0 ;2 2 9 0 w a i t 32 3 0 02 3 1 02 3 2 0 ;2 3 3 0 g e t 12 3 4 02 3 5 02 3 6 02 3 7 02 3 8 02 3 9 0 ;

j s d s k g e t

j s d s k g e t

; g e t d a t a f r o m d i s k

; g e t d a t a f r o m d i s kI d # % 0 0 1 1 1 1 1 1 ; f l i p t r a a n k e r n a ls t m m u c o ns t ( r a m p t r ) , yI d # s t m m u c o ni n b n e g e t m o r

d e n u m s e cb e b a c k 2

i n r a m p t r + 1j m m o r e 2

c i j s c l r c h nr t

I d #

b i d l i c rb e w a i t 3

I d d 2 p r a

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

b a c k t n o r m a l

; d e c r e a s e s e c t o r s t g ; i s e c t o r s f i n i t h e n r e t u r n

; c l e a r a l c h a n n e l s

i n t e r r u p t c o n t r o l r e g i s t e r

; s e r i a l p o r t 6 5 2 6 c i e o # % 0 0 0 1 0 0 0 0s t d 2 p r aI d a d l s d rr t

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

2 4 0 0 * e n t r y p o i n t # i n i t i a l i z e c o n f i g u r a t i o n * 2 4 1 0 e n t r y 32 4 2 02 4 3 0

2 4 4 02 4 5 02 4 6 0

2 4 7 0

2 4 8 02 4 9 02 5 0 02 5 1 02 5 2 02 5 3 02 5 4 02 5 5 02 5 6 02 5 7 02 5 8 0 ;2 5 9 0 . e n d

s t d m a b n ks t d m a c m d

I d # s t d m a a d is t d m a l o

s t d m a l o +

s t d m a d a lI d # $ 3 4s t d m a a d iI d # $ c 8s t d m a d a l

; 6 4 k e x t e r n a l r a m b a n k ( o 4 ; d m a c o n t r o l l e r s t a t u s r e g i s t e r( 1 2 8 o 1 2 9 )

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

a c c e s s; m s b o e x t e r n a l e x p a n s i o n r a t a c c e s s

; l s b o b y t e c o u n t

1 ; m s b o i n t e r n a l a d d r e s s t a c c e s s

1 ; m s b o b y t e c o u n tI d # 0 / o 0 0 1 1 1 1 1 1 ; s e t f o r a a n k e r n a ls t m m u c o nI d # s t m m u c o nr t

; m m u c o n t r o l; t h e n b a c k t n o r m a l; m m u c o n t r o l

T h T r a n s a c t o r 5 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 57/84

C P / MF o T h e C 1 2 8

A u b r e y S t a n l e yM i s s i s s a u g a , O n t a r i o

T E X T S C A N w a d e v e l o p e d f o v i e w i n g Z 8 s o u r c e f i l e s . Y o v i e w i e i t h e r d i r e c t i o n , c o n t r o l t h e n u m b e r o l i n e s y o s c r o l l ,o l i n e n u m b e r i n g , s e a r c h f o r a c h a r a c t e r s t r i n g , a n m o r e . .

a l g r o w n a c c u s t o m e d t t h 6 4 e v e n o u p e b u d g i e ! B u a 8 0 - c o l u m n s c r e e n . O t h a t w a q u i t e a d a m a n t . S w

i t h s y s t e m , p r i n t e r a n a l l , f o C 1 2 8 ( m i n u s p r i n t e r ) .

o t h e t h i n g s p l a n t d i d e v e l o p C 1 2 8 a n C P / M m o d eu s i n g t h Z 8 c h i p . T h i s m a k e s l o o s e n s e , b u y o

t h t o o l s . T h i s c o u l d p r o v e e x p e n s i v e , a n t h e r e ' s n o m u c hf o t h C 1 2 8 . B u t f o u n d e r t h i r t y b u c k s ( C a n a d i a n ) y o

s e n d a w a y t h f o r m f r o m t h S y s t e m G u i d e a n r e c e i v e t h e D R C P / M S y s t e m : s o u r c e , u t i l i t i e s a n m a n u a l s . T h a t ' s a

b a r g a i n c o n s i d e r i n g y o n o p o s s e s s c o m p l e t e Z 8 d e v e l o ps y s t e m . Y o c a u s C P / M m o d e t d e v e l o p i Z 8 0 a n d l a t e r

t h c o d e t t h C 1 2 8 e n v i r o n m e n t . P o r t i n g i s e p a r a t et h a t I ' l l t a c k l e w h e n t h t i m e a r i s e s . F o n o n e e d t n d w h a t i t a k e s t c o n t r o l t h h a r d w a r e t h r o u g h Z 8

T h D R 1 p a c k a g e i n c l u d e s c o m p l e t e s o u r c e c o d e a n d t h i s w i l lo v i d e a v a l u a b l e i n s i g h t i n t o Z 8 i n t e r f a c e s . T h a t ' s o n r e a s o n

d e v e l o p e d T E X T S C A N . c a e x a m i n e a e n t i r e s o u r c e f i l ee a s i l y , r i g h t t h e r e o t h s c r e e n , a n n o h a v e t p r i n t i ( e v e n

d i h a v e p r i n t e r ) .

d o e s h a v e a b u i l t - i n c o m m a n d c a l l e d " T Y P E " , b u i i o n l ya d e q u a t e f o c u r s o r y e x a m i n a t i o n o t e x t . I d i s p l a y s a s c r e e n

t i m e , a l l o w i n g y o t g o f o r w a r d s t h r o u g h t h t e x t i m a n n e r . T E X T S C A N g i v e s y o v i e w p o r t i n t o y o u r

d o c u m e n t . Y o c a v i e w i e i t h e r d i r e c t i o n , c o n t r o l t h o l i n e s y o s c r o l l , a d v a n c e r a p i d l y t h r o u g h t h t e x t , t u r n

l i n e n u m b e r i n g , a n e v e n s e a r c h f o a c h a r a c t e r s t r i n g ( g r e a t f o s o u r c e c o d e ! ) . A n i i f a s t .

o n l y l i m i t a t i o n i t h a t i w i l l o n l y l o a d t h e f i r s t 5 4 o f i l e i n t of o v i e w i n g . c a n ' t i m a g i n e s o m e o n e c r e a t i n g f i l e s t h a t

b u i y o n e e d t v i e w o n e , t h e n s p l i t i u i n t o s m a l l e r p a r t s .

T h e P r o g r a m

o c o u r s e t h a t y o h a v e r e c e i v e d t h e m a i l - o r d e r p a c kl i s t e d i n t h S y s t e m G u i d e , t h e n g e n e r a t i n g t h e p r o g r a m i

s t r a i g h t f o r w a r d . T h f i r s t s t e p i t c r e a t e b o o t a b l e C P / Mt w o r k w i t h . F o r m a t d i s k a n u s e P I P t c o p y o v e r

. S Y S a n C C P . C O M a e x p l a i n e d i t h S y s t e m G u i d e . A l s oo v e r E D . C O M u n l e s s y o a r l u c k y e n o u g h t h a v e a n o t h e r

( A l m o s t a n o t h e r e d i t o r i b e t t e r t h a n E D ! ) . N e x t c o p yf r o m t h D R S o u r c e d i s k , a n t h f i l e s , M A C . C O M a n

f r o m t h D R A d d i t i o n a l U t i l i t i e s d i s k .

t h s y s t e m f r o m y o u r w o r k d i s k a n u s E ( o a l t e r n a t i v e )t y p e i t h s o u r c e o T E X T S C A N . A S M , s a v i n g i u n d e r t h i s

n a m e . H e r e y o u c a n n o t u s t h V e r i f i z e r t h e l p y o u , s o b e s p e c i a l l y c a r e f u l . I n a n c a s e , d o u b l e c h e c k y o u r i n p u t f o t h S U M C H E C K r o u t i n e w h i c h b e g i n s t h p r o g r a m . O c o u r s e y o n e e d n ' t e n t e r t h e c o m m e n t s ( a n y t h i n g b e g i n n i n g w i t h ' ; ' ) ■

W h e n y o a r s a t i s f i e d w i t h t h f i l e , r u M A T E X T S C A N . T h i sw i l l g e n e r a t e t h r e e o u t p u t f i l e s w i t h e x t e n s i o n s - . H E X , . P R N a n d. S Y M . C o r r e c t a n y a s s e m b l y e r r o r s t h a t a r l i s t e d a n r e p e a t t h p r o c e s s . Y o m a n e e d t r u T Y P E T E X T S C A N . P R N t i d e n t i f yw h e r e s o m e o t h e r r o r s a r e , a t h m a c r o p r o c e s s m a d i s p l a ye r r o r s w h i c h a r d i f f i c u l t t p l a c e . I e r r o r f r e e , t h e n a f u r t h e rc h e c k o y o u r i n p u t , m a k e s u r e t h a t t h d i s p l a y s h o w s ' 0 6 5 6 ' ( l a s ta s s e m b l e d a d d r e s s ) f o l l o w e d b y a n ' 0 2 3 h U S F A C T O R ' .

N o r u H E X C O M T E X T S C A N w h i c h w i l l c o n v e r t t h . H E X f i l ei n t o a e x e c u t a b l e p r o g r a m f i l e , T E X T S C A N . C O M . I s h o u l d l i s tf i r s t a d d r e s s o 0 1 0 0 , l a s t a d d r e s s o 0 5 B B , b y t e s r e a d 0 4 B C a n r e c o r d s w r i t t e n O A

U s i n g T e x t s c a n

S t a r t b r u n n i n g T E X T S C A N T E X T S C A N . A S M t v i e w y o u r s o u r c ef i l e . I a l l i s w e l l , t h e n t i r e s o u r c e f i l e w i l l b r e a d i n t o m e m o r y a n t h f i r s t 2 l i n e s d i s p l a y e d . I t h p r o g r a m c r a s h e s , t h e n m o s t l i k e l y

s o u r c e e r r o r i t h S U M C H E C K r o u t i n e i t s e l f c a u s e d t h c r a s h .C h e c k t h i s s o u r c e a g a i n . H o w e v e r , i t h p r o g r a m p r i n t s ' ? a n t h e n g r a c e f u l l y e x i t s , t h e n b a s u m c h e c k h a b e e n g e n e r a t e d ,m e a n i n g t h a t t h e r e i t y p o s o m e w h e r e i y o u r s o u r c e . C o r r e c ta n e r r o r s a n r e a s s e m b l e y o u r p r o g r a m .

W i t h y o u r t e x t f i l e d i s p l a y e d o t h s c r e e n , y o u h a v e s e v e r a lo p t i o n s , a l o t h e m c l u s t e r e d a r o u n d t h N u m e r i c K e y p a d a n t h t o r o ( e x c e p t f o t h e f u n c t i o n k e y s ) . Y o u ' l l f i n d t h a t t h k e y s g i v ey o u i m m e d i a t e r e s p o n s e , i . e , y o c a i n s t a n t l y m o d i f y t h e a c t i o ne v e n a t e x t i b e i n g d i s p l a y e d .

( E N T E R ) O u t p u t s t h n u m b e r o l i n e s l a s t d e f i n e d b t h ( 9 a n ( . k e y s .

( 0 - 9 ) D e f i n e s t 1 l i n e s f o o u t p u t . ( 0 c o u n t s a 1 0 A l s oa c t s a i ( E N T E R ) w a s p r e s s e d .

( . D e f i n e s 2 l i n e s f o o u t p u t ( d e f a u l t ) . A l s o a c t s a i ( E N T E R ) w a s p r e s s e d .

( A L T ) T o g g l e s D o u b l e m o d e w h i c h a l l o w s k e y s ( 9 ) t od e f i n e 1 t 2 l i n e s f o r o u t p u t .

- C h a n g e s s c r o l l d i r e c t i o n u p w a r d s . I h e l d d o w n , w i l lc o n t i n u o u s l y s c r o l l t e x t i n t h f o r w a r d d i r e c t i o n .

( - C h a n g e s s c r o l l d i r e c t i o n d o w n w a r d s . I h e l d d o w n , w i l lc o n t i n u o u s l y s c r o l l t e x t i n t h e r e v e r s e d i r e c t i o n .

T r a n s a c t o r 5 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 58/84

( N O S C R O L L )

( T A B )

( L I N E F E E D )

( C R S R U P

( C R S R D O W N )( H E L P )

( E S C )

T o g g l e s S c r o l l M o d e w h e r e t e x t i c o n t i n u o u s l y s c r o l l e d i t h e c u r r e n td i r e c t i o n .S k i p s 2 l i n e s i n d i r e c t i o n o s c r o l l a n a c t s a i ( E N T E R ) w a s p r e s s e d .B r e p e a t e d l y t a b b i n g y o c a q u i c k l y a d v a n c e t h r o u g h t h t e x t .T o g g l e s L i n e N u m b e r m o d e w h e r e l i n e n u m b e r s a r d i s p l a y e d b e f o r ee a c h l i n e .G o e s t t h b e g i n n i n g o t e x t , s e t s f o r w a r d d i r e c t i o n a n t h e n a c t s a i ( E N T E R ) w a s p r e s s e d .G o e s t t h e n o t e x t , s e t s r e v e r s e d i r e c t i o n a n t h e n a c t s a i ( E N T E R ) w a p r e s s e d .E r a s e s t h e c u r r e n t l i n e t o l i n e i r e v e r s e s c r o l l , o b o t t o m l i n e i f o r w a r d s c r o l l . N o y o c a e n t e r a s t r i n g o f u t 4 c h a r a c t e r s . T h l i n e e d i t i n g f u n c t i o n s s u p p o r t e d b C P / M w i l l w o r k n o r m a l l y . P r e s s i n g( R E T U R N ) c a u s e s s e a r c h t b i n i t i a t e d i t h c u r r e n t d i r e c t i o n o t h s c r o l l , i . e , e i t h e r t t h b e g i n n i n g o e n o f i l e . T h f i r s t m a t c h w i l lr e s u l t i n e s e o f l i n e s o u t p u t , s t a r t i n g w i t h t h e m a t c h e d l i n e . I t h s e a r c h f a i l s , t h o r i g i n a l l i n e t h a t w a e r a s e d w i l l b r e - d i s p l a y e d .

- E x i t s b a c k t t h C P / M .

b e . ! e q u 0 7 h

D e c o d e d v a l u e s f o C 1 2 8 k e y sp e r i o dp l u sm i n u se n d o fb g n o fn s c r o ln u m b e ra l t a e n t e rh e l p

e q 2 e q u 2 8e q u 2 7e q u 2 9e q u 3 0e q u 3 2e q 3 e q 3 e q 2 e q 2 e q 3

k e

C u d o w nC u u N s c r o l l

; 0 - 9A l

; T a bE n t e r

; H e l p

O f f s e t s f o v a r i a b l e s o t h I X r e g i s t e rs c r o l y e q s t o pd i I m i tI n u md o u b l e e q c n t 1 e q c n t 2 e q c o u n t e q

e q e q e q e q

S c r o l l m o d eS t o p s c r o l lC u r r e n t d i r e c t i o nL i m i t r e a c h e dL i n e n u m b e r i n g o D o u b l e 0 - v a l u e sC u r r e n t n u m b e r f o s c r o l lN u m b e r o f l i n e s s c r o l l e dG e n e r a l p u r p o s e

L e s s o n s L e a r n t

A l t h o u g h h a p r e v i o u s l y c o d e d i Z 8 0 , t h i s w a m f i r s t a t t e m p t w i t h C P / M a n w i t hC 1 2 8 . S o b v i o u s l y s o m e l e s s o n s w e r e t b l e a r n t .

T h C P / M M a c r o A s s e m b l e r s , M A a n R M A C , s u p p o r t a l t h Z 8 i n s t r u c t i o n s t h r o u g ht h Z 8 0 . L I B l i b r a r y f i l e . B u s i n g t h i s f i l e y o c a n c o d e a l t h Z 8 i n s t r u c t i o n s .T E X T S C A N u s e s t h i s l i b r a r y e x t e n s i v e l y . E x a m i n e Z 8 0 . L I B t u n d e r s t a n d t h s y n t a x o t h m n e m o n i c s u s e d .

l i k e d t h C P / M + f a c i l i t y t r e a d u t 1 6 a t i m e i n t o a s p e c i f i e d a r e a u s i n gM u l t i s e c t o r I / O . T E X T S C A N d o e s t h i s i n l o o p w i t h c o u n t o 3 e a c h i t e r a t i o n r e a d i n gu t 1 2 s e c t o r s ( 1 2 8 t i m e s 1 2 b y t e s , o 1 6 K ) . T h e n i t h e r e i s s t i l l d a t a t b r e a d , t h l o o p i e x e c u t e d o n c e m o r e t r e a d i a f u r t h e r 6 K O e a c h r e a d , r e g i s t e r r e t u r n s t h a c t u a l n u m b e r o s e c t o r s r e a d i t h f i l e i s e x h a u s t e d . O t h e r w i s e r e g i s t e r c o n t a i n s 0 T h i s i n o t t o o o b v i o u s f r o m t h m a n u a l s .

c o u l d n ' t f i n d a n m e t h o d t m a k e k e y s r e p e a t i C P / M m o d e . B e c a u s e w a n t e d t h a n ( - k e y s t r e p e a t , ( i o r d e r t s c r o l l ) , d e c i d e d t b y p a s s t h B D O S c o n s o l e r o u t i n ea n s c a n t h k e y s m y s e l f . A t h k e y s I ' c h o s e n w e r e C 1 2 8 m o d e k e y s , h a t u n r a v e lh o t h e s e k e y s w e r e s c a n n e d . T h r e s u l t i t h K S C A N r o u t i n e w h i c h s c a n s t h C 1 2 8k e y s .

S c a n n i n g t h C 2 k e y s m e a n s u s i n g t h I / r e g i s t e r s i t h D X X X b l o c k o m e m o r y . B u C P / M t r a n s i e n t p r o g r a m s d o n o h a v e I / O t u r n e d o i B a n k w h e r e t h e y a r e r u n ! Y e T E X T S C A N w o r k s e v e n w i t h o u t m a n i p u l a t i n g t h e C o n f i g u r a t i o n r e g i s t e r s . T h i s l e a d s m t c o n c l u d e t h a t i y o u s t h Z 8 I n p u t / O u t p u t i n s t r u c t i o n s , t h e n y o u d o n o n e e d I / s w i t c h e d i t a c c e s s t h I / r e g i s t e r s b o n u s f o Z 8 p r o g r a m m e r s !

' T E X T S C A N ' F O C P / M O T H C 1 2 8A u b r e y S t a n l e y , N o 1 9 8 6

T E X T S C A N Z 8 S o u r c e C o d es d l m f e q 1 1 ; S e t o u t p u t d e l i m i t e r

; C P / Mb o o tb d o sd c i o fp r i n t fc o n i n fo p e n fc l o s e fr e a d fs d m a fm s e c fs c o n m

m a c l i b z 8 o r 1 0 0 h

F u n c t i o n se q e q e q e q e q 1 e q e q

1 1

e q u 2 0e q u 2 6e q u 4 4e q u 1 0 9

; Z 8 0 m a c r o l i b r a r y; S i a r t a d d r e s s

; W a r m s t a r t; C P / M F u n c t i o n V e c t o r; D i r e c t c o n s o l e; P r i n t s t r i n g; R e a d c o n s o l e b u f f e r; O p e n f i l e; C l o s e f i l e; R e a d s e q u e n t i a l; S e t D M a d d r e s s; M u l t i - s e c t o r I / ; S e t c o n s o l e m o d e

F i l e C o n t r o l B l o c kf c e q 5 c f c b e x e q f c 1 f c b c r e q u f c b + 3

C o n s o l e B u f f e r f o F i n d s t r i n gd m a b u f e q u 8 0 hm e q d m a b u f ; M a x c h a r sn e q m x + 1 ; N u m c h a r sr c h a r e q n ; C h a r s t r i n g

C h a r a c t e r e q u a t e sr a w i n p e q O a h ; R a w i n p u t m o d ee o m c e q 1 a h ; E n d o f i l ec e q u O d h ; C a r r i a g e r e I e q O a h ; L m e f e e dt a b c e q u 0 9 h J a

c h k s u m : C H E C K S U M S y o u r c o d e -; C a n b D E L E T E D w h e n a l l i s w e l lI x I x i yI x m v

c h k s : I d d a i n x i yd c m o o r j r n zm o o r j r m v I x c a l lr e

b , p r o g e n d - s t a r t ; C o u n t t c h e c ks t a r th , 9 1 7 0 hd , e ,

a ,

c h k sa ,

s t a r tc d c i o fd , ' ? 'b d o s

; F r o m s s t a r t; C h e c k s u m e x c e s s

; C h e c k l o o p; . . a d d s b y t e s

; S h o u l d; . . b e O; G o o d c o d e; B a d c o d e; . . p r i n t ?; . . a n d; . . e x i t; E N D O C H E C K S U M C O D E

s t a r t : ; S e t s t a c k a n d o p e n f i l es s p d o l d s pI x s p . s t k t o p

f c b e xf c b c rd . f o b

x r s i s t I x

I n i t f c b

m v c o p e n fc a l lo r

; O p e nb d o s

r e a dd . o p n e r r ; B a d o p e n

f i n i s :

I x m v c p r i n t fc a l l b d o s; r e s t o r e s t a c k a n e x i tI s p d o l d s pr e

r e a d : ; r e a d f i l eI x i xI x

p f l a g sh ,

s h l d l i n em v s t

e , 1 2 8e . l m i t

m v c m s e c fc a l l b d o sm v i x 3 , c o u n tI x d . f b e g i nc a l l r l o o po r a aj r n z c l o s ep u s hm v e , 4 8s t e j m i tm v c . m s e c fc a l l b d o sp o

; P r i n t f l a g s b a s e; l n i t s e c t o r c o u n t

1 2 s e c t o r s t r e a d; S a v e f o r l o o p

; S e t m u l t i s e c t o r s; r e a d s; S t a r t o r e a d a r e a; R e a d u p t o 4 8 K; C h e c k e n d o f i l e; . . y e s !: S a v e d m a d d r e s s; R e a d 4 m o r e s e c t o r si S a v e f o r l o o p

; S e t m u l t i s e c t o r s

T h T r a n s a c t o r 5 M a 1 9 8 7 : V o l u m e 7 I s s u e 0

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 59/84

m v i xc a l lI x m v c a l lb d o s

. c o u n tr l o o pd . f c bc o l o s e f

; r e a d; R e a d u t 6 m o r e; C l o s e

C a l c u l a t e t o t a l c h a r sI h l dm v d a d c j r n zI x d a m v d c c m j r m o

n c p j r m v i n m v i n m v s h l di n s h l dj m

l i n eb ,

b y t e 1 d . f b e g i n

a . e o m c

e o a ,

I fe o 1 m , c r

I T l . l f

m . e o m cf e n d

l i n b u fp r i n t

; T o t a l s e c t o r s; C o u n t

D o u b l e v a l u e; . . t i m e s

; S t a r t; E n d

; F i n d l a s t c h a r

; C R / L F a e n

; E n d o f i l e c h a r; E n d o f i l e a d d r e s s; L i n e b u f f e r a d d r e s s; o u t p u t r o u t i n e

; R e a d s m u l t i s e c t o r s a n k e e p s c o u n tp u s hm v c a l lI x m v c a l lc p j r

c s d m a fb d o sd . f c bc r e a d fb d o s

r l p 5

; E r r o r o n r e a dI x m v c a l lI x m v c a l li m o r j r n zI d m o m v

d , r d e r rc p r i n t fb d o sd . f c bc . c l o s e fb d o sf i n i s

r l p 6h . l m l te . d ,

; S a v e d m a d d r e s s

; S e t d m a a d d r e s s

; R e a d m u l t i s e c t o r sB a e r r o r ?

; . . n o !

; C l o s e

; M o r e t o r e a d ?; N o !; S t o r e f u l l c o u n t; s e c t o r s r e a d

; s u m t o t a l s e c t o r s s f a I h l dd a s h l dp o c p r m v a d m o d c r xj r n zx r r e

l i n e

i n

a , 6 4

d , c o u n tr l o o p

[ C u r r e n t c o u n t; A d d i s e c t o r s r e a d

; E n d o f i l e ?; Y e s !; N e x t d m a d d r e s s; . . u 1 2 s e c t o r s; . . o r 1 6 K i n D E; A n y m o r e r e a d s ?; Y e s , c o n t i n u e r e a d i n g; m o r e b y t e s s t a t u s

i n i t i a l i z e f o p r i n t i n g f i l em v s t m v i xm v i xm v i xm v i xm v i xm v i xI x m v i n m v i n

a , 4 0m n s c r o l . s t o pO . s c r o l y0 , d o u b l ep l u s . d i rO . l n u m2 4 , c n t 1h . f b e g i n - 2m . e o m c

m . l f

; 4 c h a r b u f f e r; . . f o r F i n d; T s c r o l l; N o t c o n t i n u o u s; d o n t d o u b l e c o u n t

D i r e c t i o n; N l i n e n u m b e r s; 2 l i n e s t i m e; S t o r e b e g i n n i n g; . . o f i l e; . . p r e a m b l e

p r 1 0 :

p l o o p :

p l p 1 0 :

p l p 1 2 :

p l p 1 8 :

p l p 2 0 :

s h l dI x s h l dc a l lj r n zI h l ds h l dI x s h l dI x s h l dm v i xm v m v c a l lI x m v c a l lc a l l

l i n eh , l i n og e t l np r 1 0l i n oe n d l nh . f b e g i nl i n eh , l i n oO . l m i te . l fc . s d l m fb d o sd , r a w i n pc . s c o n mb d o sc l e a r

; A d d r e s s o ; . . f i r s t l i n e; . . l i n e n u m b e r; G e t n e x t l i n e; . . u n t i l l i m i t; S t o r e l a s t l i n e ' s; . . l i n e n u m b e r; S t a r t w i t h; . . f i r s t l i n e

; C l e a r l i m i t; S e t L ; . d e l i m i t e r; . f o o u t p u t; C o n s o l e m o d eI . . s e t

; C l e a r s c r e e n

; P r i n t l o o p c o n t r o l s o u t p u t t s c r e e nI d s t c a l lI x I d o r j r n zI x m v c a l lI d o r c n c a l lI d e dm v c a l lc a l lI d o r j r m v i xj d c r xj r n zm v i xj

a . c n t ia , c n t 2g e t k e yd . s f w da . d i r

p l p 1 2d , s b a kC p r i n t fb d o sa . l n u m

n u m o u tb u f l i nl i n b u fc p r i n t fb d o sg e t l na . l m i t

p l p 2 0O . s t o pp l p 1 Oc n t 2p l p 1 0O . s t o pp l o o p

; L i n e s t o u t p u t

C o n d i t i o n s o u t p u tF o r w a r d

; . . d i r e c t i o n

; B a c k w a r d; O u t p i n s e r t o d e l e t e; . . l i n e s t r i n g; C h e c k l i n e; . . n u m b e r i n g; . . o a n o u t p u t n u ; E x p a n d l i n e i b u f f e r; L i n e b u f f e r a d d r e s s; O u t p u t; . . . l i n e; G e t n e x t l i n e p o i n t e r; C h e c k f i l e l i m i t; . . r e a c h e d; N o !; S t o p o u t p u t

[ C o u n t d o w n

; C o u n t e x p i r e d . . s t o p

A c t i o n s k e y i n p u t . . l o o p s u n t i l S t o p c l e a r e dg e t k e y :

g k 2 0 :

g k 2 2 :

g k 3 0 :

g k 3 4 :

g k 3 6 :

i i n p u t r o u t i n ec a l lo r j r o j r n zx o r xs t \

c p j r n zc a l lj c p j r n zx o r xs t c a l lI

C p j r j r n cc p j r n cm o I d o r m o j r a d s t

j c p j r n zx o r xs t

k s c a n

g k g 6 0n u m b e rg k 2 0I n u ma . l n u mg k 4 8

t a g k 2 2u p l ng k 4 8a l g k 3 0d o u b l ea . d o u b l es o u n dg k g 6 0

e n t e rg k 4 8g k 3 61 g k 3 4b , a . d o u b l e

a , g k 3 4

a . c n t ig k 4 8n s c r o lg k 4 0s c r o l ya . s c r o l y

; S c a n 1 2 k e y s

; N p r e s s; L i n e F e e d ?

J o g g l e l i n e; . . n u m b e r f l a g

; T a b ?

; A d v a n c e l i n e; . . p o s i t i o n; A l t ?

J o g g l e; . . d o u b l e f l a g; S o u n d b e l l

E n t e r ?; Y e s !; N o t n u m b e r k e y !; P e r i o d k e y . . 2 4 l i n e s ?; Y e s !

; D o u b l e f l a g ?

; D o u b l e 1 - ( 1 ) 0; N e w o u t p u t c o u n t

; N S c r o l l ?

J o g g l e; . . s c r o l l f l a g

g k g 6 0 :

g k 4 0 :

g k 4 4 :

g k 4 6 :g k 4 7 :

g k 4 8 :

g k 5 0 :

g k 5 2 :

g k 5 4 :

g k 6 0 :

g k 6 2 :g k 6 4 :

g k 7 0 :

u p l n :

u p l n i :

g e t l n :

u p l u s :

u p p 1 0 :

u p m i n :

j

c p j r n zm v i xI x s h l dI x j c p j r n zm v i xI h l dI x c a l lI h l ds h l dc a l lm v i xI d s t j

c p j r n zc a l lj r n zm v i xm v i xj c p j r n zx r I d s t c m j r j

I d o r j r m v i xI d o i j r n zm v i xI d o r j r e

g k 6 0

b g n o fg k 4 4p l u s . d i rh . f b e g i nl i n eh , g k 4 6e n d o fg k 5 0O . d i rf e n db , 2 0 0 0u p m O 2e n d l nl i n oc l e a rO . l m i ta . c n t ia , c n t 2g k 6 4

h e l pg k 5 2f i n dg k 4 71 , c n t 2O . s c r o l yg k 6 4m i n u sg k 5 4

b . d i ra . d i r

g k 6 2g k 4 7

a . s c r o l y

g k 7 0

1 , c n t 2a . l m i t

g k 7 0n s c r o l . s t o pa s t o p

g e t k e y

; A d v a n c e 2 4 l i n e sI d o r r n m v i xd c r xc n j r n zm v i xr e

a . l m i t

2 5 , c o u n tc o u n tg e t l nu p l n iO . l m i t

; G e t n e x t l i n eI h l dI x i d o r j r

m v I x c c i rm v c m j r n zm v i xr e

I d o r j r n zI d c p j r

l i n eb . 2 0 0 0a . d i r

u p m i n

a . l fd ,

a . e o m c

u p m 1 0L i m i t

l i n o +

u p m O 2l i n o

u p p 1 0

; C u r s U p ?

; S c r o l l u d i r e c t i o n; F i r s t l i n e; . . a d d r e s s; L i n e

; C u r s D o w n ?

; S c r o l l d o w n d i ; E n d o f i l e a d d r e s s; M a x l e n g t h o l i n e; G b a c k t o l a s t l i n e; L a s t l i n e n u m b e r; l _ i n e n u m b e r; C l e a r s c r e e n; C l e a r l i m i t c o n d i t i o n; N e w c o u n t

; H e l p ?

; F i n d i n p u t s t r i n g

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

; M i n u s ?; N o , m u s t b e P l u s !

; U p d a t e d i r e c t i o n

D i r e c t i o n c h a n g e d

; C h e c k s c r o l l o

; N o !

; F e e d o n g o i n g c o u n t; C h e c k l i m i t r e a c h e d

; Y e s !; C l e a r s t o p c o n d i t i o n; l s t o p c o n d i t i o n; . . t h e n; . . l o o p u n t i l c l e a r

; D o n t a d v a n c e; . . i ; . . o l i m i t

; G e t n e x t l i n e; N o t o l i m i t; C l e a r l i m i t i f s e t ; . . d s p s t / l a s t l i n e

; L i n e a d d r e s sM a l e n g t h

; C h e c k d i r e c t i o n

; S e a r c h c h a r

; F i n d n e x t l i n e; R e a c h e d l i m i t

; N o !; R e t u r n l i m i t; . . s e t

; C h e c k; . . i ; . . o ; . . f i r s t; . . l i n e; Y e s !

h T r a n s a c t o r 5 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 60/84

u p m O 2 :

u p m 1 0 :

n u m o u t :

t o a s c :t o a s i :

b u f l i n :

b u f H O :b u f l 1 2 :

b u f l 1 4 :

b u f l 1 5 :

b u f l 1 6 :

f i n d :

d c d c m v I x c c d ri n i n s h l dm v i xI h l dd a s h l dm v o r r e

a , l fd , - i

l i n eO . l m i tl i n o

l i n oa ,

; F i n d p r e v i o u s l i n e

; N e w l i n e a d d r e s s; C l e a r l i m i t

U p d a t e; . . l i n e; . . n u m b e r

R e t u r n; . . g o o dc o n d i t i o n

; O u t p u t l i n e n u m b e rI x i yI h l dI x c a l lI x c a l lI x c a l lI x c a l lm o a d s t I x m v c a l lr e

m v i n d a j m o c m m o m o c m m o i n d a s t i n x i yr e

l i n a s cl i n od , - 1 0 0 0 0t o a s cd , - 1 0 0 0t o a s cd , - 1 0 0t o a s cd , - 1 0t o a s ca , ' 0 a , d , l i n a s cc . p r i n t fb d o s

c , ' 0 ' - 1

t o a s ia ,

d , a ,

e ,

c ,

; B a s e f o s t r i n g; L i n e n u m b e rJ e t h o u s a n d s; C o n v e r t t A S C I It h o u s a n d s; H u n d r e d s

; T e n s

; 0 - 9

; P r i n t s t r i n g

: P r e p a r e l i n e f o o u t p u tI b c dI h l dm v i xI d a xi n c p j r n cc p j r c p l r c p j r n zm v i n d c r xj r n zj m v i n o r m o i n c p r d c r x

j

l i n el i n b u f8 , c o u n t

2 0 b u f l 1 6c b u f l 1 6I fb u f n et a b cb u f l 1 5m ,

c o u n tb u f l 1 4b u f I 1 0m , ' t '

4 0 m ,

i f

c o u n tb u f H Ob u f l 1 2

; C u r r e n t l i n e a d d r e s s; L i n e b u f f e r a d d r e s sJ a c o u n t

J r a p c o n t r o l c h a r; N o t o n e; C a r r i a g e r e t u r n ?

L i n e f e e d ?

; C h e c k i f t a b; N o !; E x p a n d t a b

; C o n v e r t c o n t r o l c h a r; . . t t w c h a r s; . . f o r d i s p l a y; N o r m a l c h a r

l i n e f e e d; . . e n d s l i n e

; S e a r c h I n p u t S t r i n g f u n c t i o nc a l lI d o r j r n z

k s c a nk t a b l e

f i n d

; l o o p u n t i l; . . h e l p; . . k e y i ; . . r e l e a s e d

f i n d O 2 :

f i n d i O :f i n d 1 2 :

f i n d 1 4 :

f i n d 1 6 :

f i n d 2 0 :

s o u n d :

r e v r s e :

c l e a r :

k s c a n :

k s c n 2 :

k s c n 3 :

c a l lc a l lc a l lI x I d o r j r n zI x m v c a l lI x m v c a l lI d o r r s t I h l ds h l dI h l ds h l dI b c dm v I x I d a xc m i n

n j r n ?i n m o c m p xj r n zj c p j r n zc a l lj r n zI h l ds h l dI h l ds h l dm v i xr e

; B e l lm v I x c a l lm v o r r e

r e v r s eg e t l nr e v r s ed . c b o ta . d i r

f i n d O 2d . c t o pc p r i n t fb d o sd . d m a b u fc . c o n i n fb d o sn

a . c o u n tl i n ot e m p nl i n et e m p il i n ee , h . r c h a r

f i n d 1 6

a , c o u n tf i n d 1 4s o u n dI f i n d 1 2g e t l nf i n d i Ot e m p il i n et e m p nl i n oO . l m i t

c d c i o fd . b e l lb d o s8 ,

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

; B o t t o m l i n e; C h e c k d i r e c t i o n

J o l i n e; C l e a r l i n e

; B u f f e r f o i n p u t; G e t i n p u t s t r i n g

C h e c k c h a r c o u n t

; E m p t y s t r i n g

: S a v e; . . c u r r e n t l i n e; . . p a r a m s i c a s e; . . n m a t c h; B e g i n s e a r c h l o o p

; S t r i n g f o u n d

; L i m i t r e a c h e d; . s ; . r e s t o r e; . . o r i g i n a l l i n e; C l e a r l i m i t

; R e v e r s e c u r r e n t d i r e c t i o nm v x o r xs t r e

a , p l u sd i a . d i r

; C l e a r S c r e e nI x r n v ic a l lr e

d . c l rc p r i n t fb d o s

; S c a n C 1 2 8 K e y sd I x I x m v o u t pm v m v I x o u t pI x i n p u s hi n c m p o j r n zc m m o m o x r a n

h k t a b l eb , 0 d c 0 0 hd . O f f h

d . O f e h9 , b , 0 d 0 2 f h

b , 0 d c 0 1 h

k s c n 3b , m ,

; K e y p r e s s / c h a n g e t a b l e; K e y m a t r i x d r i v e s f o ; . . C 6 4 k e y s a r ; . . a r e d i s a b l e d; D r i v e o n e r o w; . . o t h r e e; D r i v e s f o ; . . C 1 2 8 k e y sJ r e a d r o ; R e a d k e y s; l i t t l e d e l a y; . . h e l p s a l o n g t h w a y !; D e b o u n c e

; C h e c k a g a i n; M a k e 1 ' s o f p r e s s e sP r e v i o u s k e y s

; N e w k e y s; . . g i v e s c h a n g e s; . . a n d p r e s s e d c h a n g e s

k c h n g :

k c h g i :

k c h g 2 :

k c h g 3 :

k c h g i O :

k c h g 1 2 :

k c h g 1 4 :

k c h g 2 0 :

d t a b l e :

k t a b l e :

o p n e r r :r d e r r :

s f w d :s b a k :c t o p :c b o t :c l r :l i n a s c :

p r o g e n d

f e n d :l i n b u f :l i n e :l i n o :e n d l n :t e m p i :t e m p n :p f l a g s :o l d s p :

s t k t o p

f b e g i n

i n m o i n r l c rd c j r n z

m , ; S a v e p r e s s e d c h a n g e sN o f o

; . . n e x t r o

k s c n 2

; P r o c e s s C h a n g e se I x m o a n j r c a l lj m m o a i n j r o r m o i n i n m v m o c m i n a n j n f l e xd c d c j r n zr e

h , k t a b l e ; F i r s ta , ; . . c h e c k

; . . E S C ?k c h g ic l e a r ; C l e a r s c r e e nf i n i s ; . . a n d e x i ta , 0 6 / p r e s s e s ?

k c h g 2; F o r c e a c h a n g e

m ,

c , ; C o u n ta , ; P r e s s e d c h a n g e s

; E x t r a c t o n c h a n g ek c h g i O ; F o u n d o n e

; G o t o n e x t r o

k c h g 3; N c h a n g e s f o u n d

D e c o d e C h a n g eI x I x d c a d j r n cd a m v d c j r d a j m o r e

h , d t a b l e ; K e y D e c o d e t a b l ed ,

k c h g 1 2

6 ,

k c h g 2 0

k c h g 1 4a , m ; D e c o d e d v a l u e

; K e y D e c o d e T a b l ed d d

h e l p , 0 8 , 0 5 , t a b , 0 2 , 0 4 , 0 7 , 0 10 0 p l u s , m i n u s , n u m b e r , e n t e r , 0 6 . 0 9 , 0 3a l t , 1 0 , 2 4 , b g n o f , e n d o f , 0 0 , 0 0 , n s o r o l

; K e y P r e s s / C h a n g e T a b l e : r o w s - d d d

d d

d d d d d d e q

d d d d d d d d d d e q

e q

e n

0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 00 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 00 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0

c r , l f , ' n o f i l e $ 'c r . l f / b a d r e a d e r r o r $ '

1 b h , 3 d h , 2 0 h , 2 0 h , 1 b h , 5 2 h , 1 b h , 3 d h , 3 7 h , 2 0 h , 0 a hb h , 3 d h , 2 0 h , 2 0 h , b h , 4 5 h , 0 a hb h , 3 d h , 2 0 h , 2 0 h , b h , 5 4 h , 0 a hb h , 3 d h , 3 7 h , 2 0 h , 1 b h , 5 4 h , 0 a h

1 a h , 0 a h' 0 0 0 0 0 : ' , 0 a h

; U s e d f o c h e c k s u m o c o d e

; F i l e e n a d d r e s s; L i n e b u f f e r a d d r e s s; C u r r e n t l i n e a d d r e s s

2 ; C u r r e n t l i n e n u m b e r; L a s t l i n e n u m b e r; W o r k a r e a; W o r k a r e a

1 I r e g i s t e r v a r i a b l e s; S a v e d s t a c k

1 2 P r o g r a m s t a c k

8 0 0 h J e x t f i l e l o a d s h e r e

T h T r a n s a c t o r 5 M a 1 9 8 7 : V o l u m e 7 I s s u e 0

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 61/84

T h a t G u r u D o e s H a v e M e s s a g e !B e t t y C l a y , A r l i n g t o n , T e x a s

a a n y o n e e s c a p e d t h G U R U ? A s o m e t e r r i b l y i m p o r t a n ty o s e t h r e q u e s t e r b o t h a t s a y s :

" S o f t w a r e e r r o r t a s k h e l d .C a n c e l A L d i s k a c t i v i t y .S e l e c t C A N C E L t r e s e t / d e b u g . "

y o p r e s s t h e b u t t o n , t h e b l a c k a n r e a l e r t b o a p p e a r st h t h e ' G u r u M e d i t a t i o n ' m e s s a g e :

F A I L U R E ! P R E S S L E F T M O U S E B U T T O NT O C O N T I N U E "

b n u m b e r o m a n y d i g i t s , s u c h a o # 8 3 0 1 0 0 0 9 . 0 0 0 0 2 4 6 3 . F o t h a v e r

g u s e r , t h o n l y c h o i c e i t r e s e t t h c o m p u t e r . T h e m e ss e e m t o t a l l y m e a n i n g l e s s ; s o m e t i m e s t h e y e v e n a p p e a r

b a c r u e l j o k e p l a y e d o h e l p l e s s u s e r s b t h c r e a t o r s o t h W h y ?

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

i n f o r m a t i o n . S e r i o u s p r o g r a m m e r s c a a t t a c h t e t t h A m i g a w i t h n u l l m o d e m c a b l e , s e t t h e i r w o r kp r o g r a m s t d e b u g b e f o r e t h e y l o a d t h e p r o g r a m , a n

a w o r k o n t h e i r p r o g r a m s t h r o u g h t h t e r m i n a l w i t h o u tt h s t a t e o f t h A m i g a . T h e y c a n u s e t h R O M W A C K

t h a t e x i s t s o a l K i c k S t a r t d i s k s , o t h d e b u g g e r t h a t i p a r t o t h d e v e l o p e r s ' p a c k

A n t h e y w i l l p o r e o v e r t h R O K E R N A L M A N U A L S a w o r k . T h o s e v o l u m e s a r n o t w r i t t e n i w h a t m o s t o u

c a l l E n g l i s h , b u t t h e y c o n t a i n m o r e i n f o r m a t i o n t h a no u e v e r e x p e c t e d C o m m o d o r e t r e l e a s e t u s a n i i t h a t w f i n d t h e x p l a n a t i o n s o t h G u r u M e s s a g e s , m o r e

c a l l e d ' A l e r t s . '

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

s o m e m e a n i n g t t h a l e r t s , a n t a s s u r e t h e r e a d e r t h a te r e a r e p r o g r a m m e r s o u t t h e r e t w h o m t h e s e m e s s a g e s a r

l l y u s e f u l .

s t , l e t ' s b r e a k t h m e s s a g e s i n t o m a n a g e a b l e p i e c e s . T h e nt r t m a k e s e n s e o e a c h p i e c e . T a k e a ( h y p o t h e t i c a l )M e s s a g e n u m b e r l i k e :

# 0 7 0 6 0 0 0 6 . 0 0 0 0 8 3 2 1

B r e a k i u l i k e t h i s :

0 0 0 0 0 6 . 0 0 0 0 8 3 2 1

# 0 7 0 6 0 0 0 6 . 0 0 0 0 8 3 2 1

T h f i r s t p a r t ( 0 7 ) d e n o t e s t h d e v i c e o l i b r a r y f r o m w h i c h t h e r r o r m e s s a g e c a m e . T h e r e a r t w e n t y o t h e s e d e v i c e s , l b r a r i e s , e t c . , a n t h e y a r e l i s t e d i n u m e r i c a l o r d e r i t h r e f e r e n c e p a g e t h a t a c c o m p a n i e s t h i s a r t i c l e . I y o l o o k t h e r e ,y o w i l l s e t h a t ' 0 7 ' i n d i c a t e s t h a t t h e r r o r o c c u r r e d w h i l eu s i n g t h e D O l i b r a r y . T h z e r o a t h b e g i n n i n g i n d i c a t e s t h a ti w o u l d b p o s s i b l e t r e c o v e r f r o m t h i s e r r o r , i w h a v e t h p r o p e r e q u i p m e n t a n d k n o w l e d g e t d t h d e b u g g i n g . F o n o w , w m u s t b c o n t e n t t k n o w t h a t i t h b e g i n n i n g d i g i t i z e r o , t h e r r o r m i g h t b c o r r e c t a b l e ; b e g i n n i n g d i g i t o e i g h to m o r e i n d i c a t e s a e r r o r f r o m w h i c h t h e r e i n o h o p e o r e c o v e r y . T h u s , y o m i g h t h a v e D O l i b r a r y e r r o r t h a t b e g a nw i t h ' 0 7 ' ( r e c o v e r a b l e ) o r w i t h ' 8 7 ' ( h o p e l e s s ) . T h e s e a r h e a d e c i m a l d i g i t s , s y o m i g h t f i n d A B , C , D , o r i t h l e f tc o l u m n .

T p u i b i m o r e t e c h n i c a l l y , i t h e r r o r i i r r e v e r s i b l e , t h h i g h b i i s e t . ( F a t a l e r r o r s a l s o c a u s e t h e n t i r e s c r e e n t g b l a c k , w h i l e r e c o v e r a b l e o n e s o n l y p u s h t h n o r m a l s c r e e nd o w n b i t . )

* 0 7 O 6 0 0 0 6 . 0 0 0 0 8 3 2 1

T h s e c o n d p i e c e o i n f o r m a t i o n ( 0 6 ) m a b o n o t h s i " g e n e r a l e r r o r c o d e s . " I n t h i s c a s e , c h o s e t h " I / O E r r o r "b e c a u s e i s e e m e d a p p r o p r i a t e f o d i s k e r r o r , t h o u g h i n r e a l i t yi i m o r e l i k e l y t o o c c u r i o t h e r l i b r a r i e s . T h s i g e n e r a l e r r o rc o d e s a r a l s o l i s t e d i t h e r e f e r e n c e p a g e . T h o n e y o u w i l le n c o u n t e r m o s t o f t e n i ' 0 1 ' , i n s u f f i c i e n t m e m o r y . I t h g e n e r a le r r o r i n o a t t r i b u t a b l e t o n o t h e s e s i c o d e s , t h e r e s h o u l db t w z e r o s i n t h i s f i e l d o t h e r r o r m e s s a g e .

* 0 7 0 6 O O O 6 . 0 0 0 0 8 3 2 1

T h f o u r d i g i t s i m m e d i a t e l y t t h l e f t o t h d e c i m a l p o i n t t e l le x a c t l y w h a t i w a t h a t w e n t w r o n g . I o u s a m p l e m e s s a g e ,t h d i g i t s a r ' 0 0 0 6 ' , a n t h e r e f e r e n c e c h a r t w i l l s h o w t h a t , i nt h D O L i b r a r y , c o d e o s i i n d i c a t e s a d i s k b l o c k s e q u e n c ee r r o r .

Y o p r o b a b l y w o u l d n o m e m o r i z e t h e s e n u m b e r s , f o t h s a m e n u m b e r w i l l m e a n d i f f e r e n t t h i n g s f o d i f f e r e n t l i b r a r i e s /

h T r a n s a c t o r 5 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 62/84

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 63/84

R E F E R E N C E C H A R T F O G U R U M E S S A G E S

0 0 0 0 0 0 0

D E V I C E S ,E x e c L i b r a r yG r a p h i c s L i b r a r yL a y e r s L i b r a r yI n t u i t i o n L i b r a r yM a t h L i b r a r yC L i s t L i b r a r yD O L i b r a r y

L I B R A R I E S , A N R E S O U R C E S :0 0 1 1 1 1 1

R A L i b r a r yI c o n L i b r a r yA u d i o D e v i c eC o n s o l e L i b r a r yG a m e P o r t D e v i c eK e y b o a r d D e v i c eT r a c k D i s k D e v i c e

1 2 2 2 3 3

T i m e r D e v i c eC I R e s o u r c eD i s k R e s o u r c eM i s c . R e s o u r c eB o o t s t r a pW o r k b e n c h

G E N E R A L E R R O R C O D E S0 0 0 0 0 0

I n s u f f i c i e n t m e m o r yM a k e L i b r a r y E r r o rO p e n L i b r a r y E r r o rO p e n D e v i c e E r r o rO p e n R e s o u r c e E r r o rI / E r r o r

E x c p t V e c tB a s e C h k S u mL i b C h k S u mL i b M e mM e m C o r r u p tI n t r M e m

C o p D i s p l a yC o p l n s t rC o p L i s t O v e rC o p I L i s t O v e rC o p L i s t H e a dL o n g F r a m eS h o r t F r a m eF l o o d F i l lT e x t T m p R a sB l t B i t M a p

G a d g e t T y p eG a d g e t T y p eC r e a t e P o r tI t e m A l l o cS u b A l l o cP l a n e A l l o cI t e m B o x T o pO p e n S c r e e nO p e n S c r n R a s tS y s S c r n T y p eA d d S W G a d g e tO p e n W i n d o wB a d S t a t eB a d M e s s a g e

W e i r d E c h oN o C o n s o l e

S P E C I F I C E R R O RE X E C L I B R A R Y : 0 0 0 0 0 0

8 0 0 0 0 0 18 0 0 0 0 28 0 0 0 0 0 38 0 0 0 0 48 0 0 0 0 0 58 0 0 0 0 6

G R A P H I C S8 0 0 0 0 18 0 0 0 0 28 0 0 0 0 0 38 0 0 0 0 0 48 0 0 0 0 58 0 0 0 0 68 0 0 0 0 78 0 0 0 0 80 0 0 0 0 98 0 O O O A

C O D E SD O L I B R A R Y : 0 7 0 0 0 0 0 0

T h C P t r a p v e c t o r h a i n c o r r e c t c h e c k s u m . S t a r t M e m 0 0 1 0 0 0 1 T o l i t t l e m e m o r y a s t a r t u p .E x e c B a s e h a c h e c k s u m e r r o rL i b r a r y h a c h e c k s u m e r r o rN o e n o u g h m e m o r y t m a k e l i b r a r yF r e e m e m o r y l i s t i s c o r r u p t e dN o e n o u g h m e m o r y f o i n t e r r u p t s e r v e r s .

L I B R A R Y : 0 O O O O ON m e m o r y f o c o p p e r d i s p l a y l i s tN o m e m o r y f o c o p p e r i n s t r u c t i o n l i s tC o p p e r l i s t o v e r l o a d ( t o o l o n g )C o p p e r i n t e r m e d i a t e l i s t t o l o n gN m e m o r y f o c o p p e r l i s t h e a dN o e n o u g h m e m o r y f o L o n g F r a m eN o e n o u g h m e m o r y f o S h o r t F r a m eN o e n o u g h m e m o r y t F l o o d F i l lN o e n o u g h m e m o r y t d r a w t e x tB l t B i t M a p , n o t e n o u g h m e m o r y

L A Y E R S L I B R A R Y : 0 0 0 0 0 0

I N T U I T I O N8 0 0 0 0 10 0 0 0 0 18 0 0 0 0 28 0 0 0 0 38 0 0 0 0 48 0 0 0 0 58 4 0 0 0 0 0 68 0 0 0 0 78 0 0 0 0 88 0 0 0 0 0 98 0 O O O A8 0 0 0 0 B8 4 0 0 0 0 0 C8 4 0 0 0 0 0 D

8 4 0 0 0 0 0 E8 4 0 0 0 0 0 F

L I B R A R Y : 0 0 0 0 0 0U n k n o w n g a d g e t t y p e , f a t a lR e c o v e r y f o r m o g a d g e t t y p eN m e m o r y t c r e a t e p o r tI t e m p l a n e a l l o c a t e , n m e m o r yN o e n o u g h m e m o r y t s u b a l l o c a t eP l a n e a l l o c a t e , n m e m o r yI t e m b o t o R e l Z e r oN m e m o r y t o p e n s c r e e nO p e n S c r e e n ' s r a s t e r a l l o c a t e , n m e m o r yO p e n s y s s c r e e n , u n k n o w n t y p eA d S g a d g e t s , n m e m o r yn m e m o r y t o p e n w i n d o wB a S t a t e r e t u r n e n t e r i n g i n t e r r u p tB a M e s s a g e r e c e i v e d b I D C M P ( I n t u i t i o nD i r e c t C o m m u n i c a t i o n M e s s a g e P o r t s )W e i r d e c h o c a u s i n g i n c o m p r e h e n s i o nC o u l d n ' t o p e n t h C o n s o l e D e v i c e

E n d T a s k 0 0 0 0 0 2 T h t a s k d i d n ' t e n d !Q P k t F a i l 0 0 0 0 0 0 3 Q P k t f a i l u r e ( Q u e u e m e s s a g e ? )A s y n c P k t 0 0 0 0 0 0 4 U n e x p e c t e d p a c k e t r e c e i v e dF r e e V e c 0 7 0 0 0 0 0 5 F r e e V e c f a i l e dD i s k B l k S e q 0 0 0 0 0 6 E r r o r i d i s k b l o c k s e q u e n c eB i t M a p 0 7 0 0 0 0 0 7 T h b i t m a p i n o v a l i dK e y F r e e 0 7 0 0 0 0 0 8 K e i a l r e a d y f r e eB a d C h k S u m 0 7 0 0 0 0 0 9 T h e c h e c k s u m i i n v a l i dD i s k E r r o r 0 7 0 0 O O O A D i s k e r r o rK e y R a n g e 0 7 0 0 0 0 0 B T h k e i o u o r a n g eB a d O v e r l a y 0 7 0 0 0 0 0 C

T R A C K D I S K D E V I C E : 1 O 0 0 0 0T D C a l i b S e e k 1 0 0 0 0 0 1 C a l i b r a t e : s e e k e r r o rT D D e l a y 1 0 0 0 0 0 2 D e l a y : e r r o r o t i m e r w a i t

D I S K R E S O U R C E : 2 0 0 0 0 0D R H a s D i s k 2 0 0 0 0 1 g e u n i t : a l r e a d y h a d i s kD R I n t N o A c t 2 0 0 0 0 0 2 I n t e r r u p t : n a c t i v e u n i t

W O R K B E N C H : 3 0 O O O O

C P E R R O R C O D E S :0 B u E r r o r0 A d d r e s s E r r o r0 I l l e g a l i n s t r u c t i o n0 D i v i s i o n b z e r o0 C H i n s t r u c t i o n ( r e s u l t f e l l o u t s i d e d e s i g n a t e d

b o u n d s )0 T r a p o v e r f l o w0 P r i v i l e g e v i o l a t i o n0 I n s t r u c t i o n t r a c e0 L i n e E m u l a t i o n 6 8 0 0 0 e n c o u n t e r e d a n i n s t r u c

t i o n w o r d w i t h v a l u e s b e t w e e n A 0 0 0 - A F F F0 L i n e F E m u l a t i o n 6 8 0 0 0 e n c o u n t e r e d a n i n s t r u c

t i o n w o r d w i t h v a l u e s b e t w e e n F 0 0 0 - F F F FT R A P i n s t r u c t i o n s o p e r a t i n g s y s t e m c a l l i n s t r u c t i o n s

h T r a n s a c t o r 6 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 64/84

T h T r a n s a c t o r A m i g a S t r u c t u r e B r o w s e rb C h r i s Z a m a r a a n N i c k S u l l i v a n

Y o u r g u i d e d t o u r t h r o u g h t h s y s t e m

W i t h t h i s p r o g r a m a n t h i n f o r m a t i o n g i v e n i t h i s a r t i c l e , y o w i l l g a i n k n o w l e d g e a b o u t y o u r A m i g a t h a t y o y e a r n e d f o r , b u c o u l d n ' t f i n d . T h i s k n o w l e d g e w i l l m a k e y o b e t t e r p r o g r a m m e r ,a l m o s t c e r t a i n l y m a k i n g y o m o r e p r o s p e r o u s t h a n y o w o u l dh a v e b e e n o t h e r w i s e .

W i t h a l o y o u r e x t r a m o n e y , y o u c a b u m o r e e x p e n s i v ec o m p u t e r h a r d w a r e a n a d v a n c e y o u r s e l f e v e n f u r t h e r . Y o w i l lb s u c c e s s f u l , a n t h a t s u c c e s s w i l l g i v e y o g r e a t e r s e l f -c o n f i d e n c e . P e o p l e w i l l t u r n t y o f o a d v i c e a n y o w i l l h e l p o u m a n y o t h e r s w h w o u l d l i k e t o b a s c l e v e r a n s u c c e s s f u l a sy o u r s e l f . B h e l p i n g t h e s e p e o p l e , n o t o n l y w i l l y o g a i n d e e pp e r s o n a l f u l f i l l m e n t , b u y o w i l l b e c o m e q u i t e p o p u l a r a n w e l l -l i k e d , w h i c h c e r t a i n l y c a n ' t h u r t y o u r s e l i f e . S i n c e s o m a n yp e o p l e w i l l b l o o k i n g u t y o a n f o l l o w i n g y o u r a d v i c e , y o w i l l w i e l d q u i t e b i o p o w e r i t h c o m p u t e r c o m m u n i t y a n i y o u r b u s i n e s s d e a l i n g s i g e n e r a l . B f e e l i n g g o o d a b o u t y o u r s e l f ,y o w i l l c e r t a i n l y g e t i n t o b e t t e r p h y s i c a l s h a p e a n w i l l d e f i n i t e l yl i v e l o n g e r m a y b e u t t h r e e h u n d r e d y e a r s !

I n s h o r t , r e a d i n g t h i s a r t i c l e a n t y p i n g i t h p r o g r a m a t h e n w i l l g i v e y o k n o w l e d g e , p o w e r , s u c c e s s a n p r o s p e r i t y . I w i l li m p r o v e y o u r s e l i f e a n g i v e y o g r e a t e r s e l f e s t e e m a n f e e l i n go u s e f u l n e s s . Y o w i l l b a b l e t b u l o t s o e x p e n s i v e c o m p u t e rh a r d w a r e , a n f a s t c a r s a s w e l l i y o w i s h . Y o w i l l l i v e l o n g e r . B u t h c h o i c e i y o u r s r e a d t h i s a r t i c l e a n m a k e t h o s e c h a n g e s i y o u r l i f e , o r s k i p p a s t i a n p o s s i b l y n e v e r r e a l i z e t h e n o r m o u sp o t e n t i a l t h a t y o k n o w i i n s i d e o y o u .

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

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

T h s t r u c t u r e h a d i r e c t C - l a n g u a g e i m p l e m e n t a t i o n , b u w c a s p e a k o s t r u c t u r e t e m p l a t e ( t h e d e f i n i t i o n o t h s t r u c t u r e )i n d e p e n d e n t l y o l a n g u a g e . s t r u c t u r e i j u s t t h p a r t i c u l a r w a t h a t s o m e d a t a a r g r o u p e d . F o e x a m p l e , s t r u c t u r e c a l l e d ' X m i g h t b e d e f i n e d a w o r d , f o l l o w e d b a p o i n t e r t a n o t h e rs t r u c t u r e ' X ' , f o l l o w e d b a p o i n t e r t s t r u c t u r e Y f o l l o w e d b l o n g w o r d . B y k n o w i n g s t r u c t u r e ' s t e m p l a t e a n w h e r e i

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

W h a t k i n d o i n f o r m a t i o n c a w f i n d i v a r i o u s s t r u c t u r e st h r o u g h o u t t h s y s t e m ' s m e m o r y ? W e l l , s o m e i n t e r e s t i n g t h i n g sa r t b f o u n d , f o e x a m p l e , i t h I n t u i t i o n - m a n a g e d s t r u c t u r e s .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 , y o u ' l l b a b l e t l o o k a S c r e e n ,W i n d o w , a n G a d g e t s t r u c t u r e s , a m o n g o t h e r s . I n f o r m a t i o n a b o u ta n y p r o g r a m i t h s y s t e m c a n b e g a i n e d b l o o k i n g a t h e s es t r u c t u r e s , s i n c e e v e r y b o d y ' s w i n d o w s , s c r e e n s a n g a d g e t s a r m a i n t a i n e d i k i n d o n e t w o r k w h e r e t h e y c a n b e a c c e s s e d v i p o i n t e r s f r o m o t h e r S c r e e n , W i n d o w a n G a d g e t s t r u c t u r e s .

p o i n t e r t t h f i r s t S c r e e n i s a l l t h a t i n e e d e d t o f i n d e v e r y t h i n ge l s e , a n t h a t i f o u n d i t h e " I n t u i t i o n B a s e " s t r u c t u r e , w h i c h , i t u r n , i f o u n d w h e n t h I n t u i t i o n l i b r a r y i o p e n e d b c a l l t t h O p e n L i b r a r y ( ) f u n c t i o n . ( O p e n L i b r a r y ( ) i i t h E x e c l i b r a r y ,p o i n t e r t w h i c h i f o u n d i m e m o r y l o c a t i o n 0 0 0 0 0 4 , t h o n l yf i x e d l o c a t i o n i t h e n t i r e A m i g a m e m o r y m a p . C - l a n g u a g es t a r t u p c o d e o p e n s t h E x e c l i b r a r y . ) A l p r o g r a m s t h a t u s I n t u it i o n h a v e t h e i r i n f o r m a t i o n i t h e s e s t r u c t u r e s , s t h r o u g h t h e my o c a l e a r n t h i n g s a b o u t a l m o s t a n p r o g r a m c u r r e n t l y r u n n i n gi t h e s y s t e m .

s c r e e n s t r u c t u r e c o n t a i n s e v e r y t h i n g I n t u i t i o n n e e d s t k n o wa b o u t s c r e e n , l i k e i t s i z e , t i t l e , n u m b e r o b i t - p l a n e s , p o i n t e r t i t g a d g e t s , f l a g s d e s c r i b i n g w h a t k i n d o s c r e e n i i s t h c o l o u r s i t ' sr e n d e r e d i n e t c . T h s c r e e n s t r u c t u r e p o i n t s t w i n d o w s t r u c t u r ef o t h f i r s t w i n d o w o t h s c r e e n . w i n d o w s t r u c t u r e h a p o i n t e r t h a t c a p o i n t t a n o t h e r w i n d o w s t r u c t u r e , s t h a t a l w i n d o w s i a s c r e e n a r l i n k e d t o g e t h e r . I t h e r e i m o r e t h a n o n s c r e e n i t h s y s t e m ( u n l e s s y o h a v e a n a p p l i c a t i o n r u n n i n g t h a to p e n s i t o w s c r e e n , t h o n l y s c r e e n w i l l b t h W o r k b e n c hs c r e e n ) , t h e r e w i l l b a p o i n t e r i t h f i r s t s c r e e n s t r u c t u r e t t h n e x t s c r e e n ; a n n u m b e r o s c r e e n s c a n b e l i n k e d t o g e t h e r i n t h i sw a y .

I w i n d o w s t r u c t u r e y o u ' l l f i n d t h e u s u a l s i z e a n c o l o u ri n f o r m a t i o n , a l o n g w i t h a I D C M P F l a g s v a r i a b l e d e s c r i b i n g w h a tm e s s a g e s I n t u i t i o n i g e t t i n g f r o m t h a t w i n d o w . p o i n t e r t t h f i r s t g a d g e t i a l i n k e d l i s t o g a d g e t s c a a l s o b f o u n d i t h w i n d o w s t r u c t u r e . g a d g e t s t r u c t u r e t o t a l l y d e s c r i b e s a g a d g e t ( s i m p l e w a t g e i n p u t f r o m t h u s e r t h r o u g h t h m o u s e ) i t p o s i t i o n , s i z e , t y p e , i m a g e r y , e t c . T h g a d g e t s t r u c t u r e i s e u b a a p p l i c a t i o n b e f o r e t h s t r u c t u r e i s u b m i t t e d t i n t u i t i o n , s t h v a l u e s w i t h i n r e p r e s e n t t h o s e t h a t t h p r o g r a m m e r a c t u a l l y p u i n t o h i c o d e - i o t h e r w o r d s , p e e k i n t o p r o g r a m ' s g a d g e ts t r u c t u r e c a g i v e s o m e i n s i g h t i n t o h o p r o g r a m w a w r i t t e n .

T h T r a n s a c t o r 6 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 65/84

s t r u c t u r e s o f i n t e r e s t t h a t a r n o i m p l e m e n t e d i V e r s i o n0 o f S t r u c t u r e B r o w s e r : M e n u , I m a g e , R e q u e s t e r , V i e w , V i e w P o r t ,

I n t e r r u p t , M e m C h u n k , M s g P o r t , M e s s a g e , T a s k , V S p r i t e ,( M a n y o t h e s e s t r u c t u r e s , l i k e T a s k a n I n t e r r u p t , a r

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

k e t f i n d i n g t h m e m o r y l o c a t i o n o a n s t r u c t u r e i t h B a s e s t r u c t u r e s . E v e r y s h a r e d l i b r a r y ( " g r a p h i c s . l i b r a r y " ,

i b r a r y " , " l a y e r s . l i b r a r y " , t n a m e f e w ) h a l i b r a r ys t r u c t u r e t h a t c o n t a i n s p o i n t e r s t s t r u c t u r e s o f i n t e r e s t t oi t h a t l i b r a r y . A m e n t i o n e d a b o v e , t h s t r u c t u r e s f o r m

o n e t w o r k , s i n c e y o c a r e a c h s t r u c t u r e s t h r o u g h p o i n t e r so t h e r s t r u c t u r e s . I n t h i s n e t w o r k c a b f o u n d n e a r l y e v e r y i t e md a t a t h a t t h s y s t e m c a r e s a n y t h i n g a b o u t : d i r e c t l i n k t t h e t h e

s t a t e o f m i n d a a n g i v e n m o m e n t . I w k n o w t h n s f o t h s y s t e m s t r u c t u r e s ( t h e r e a r e o v e r h u n d r e d o

a l t o g e t h e r ) , w c a s n o o p a r o u n d a n d i s c o v e r a n y t h i n g w t k n o w a b o u t w h a t t h s y s t e m k n o w s . A n i t h A m i g a , t h

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

S t r u c t u r e B r o w s e r P r o g r a m

S t r u c t u r e B r o w s e r ( S f r o m n o o n m a k e s i e a s y t s n o o pm a n y o t h e s t r u c t u r e s i t h s y s t e m . Y o s t a r t w i t h l i s t

t h l i b r a r y b a s e s t r u c t u r e s ; i t h c u r r e n t v e r s i o n o t h p r o n l y I n t u i t i o n B a s e i a v a i l a b l e . T d i s p l a y t h e c o n t e n t s o t h

b a s e s t r u c t u r e , j u s t m o v e t h e p o i n t e r t t h l i b r a r y b a s eo t h s c r e e n a n p r e s s t h e l e f t m o u s e b u t t o n . T h l i b r a r y

s t r u c t u r e w i l l i m m e d i a t e l y b e d i s p l a y e d , s h o w i n g e a c h s t r u cm e m b e r ' s n a m e ( a d e f i n e d i t h e s t a n d a r d A m i g a h e a d e ra n i t d a t a t y p e . I t h c a s e o t h e I n t u i t i o n B a s e s t r u c t u r e , a l

a r e i t h e r i m p o r t a n t s t r u c t u r e s i t h e i r o w r i g h t , o e l s et s u c h s t r u c t u r e s ; t d i s p l a y a n o t h e s e , j u s t c l i c k o i t

a s u s u a l . T h i s p r o c e s s c a b r e p e a t e d a g a i n i t h n e r e , t b r i n g y o t o t h e r s t r u c t u r e s o f i n t e r e s t .

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

r e c u r s i v e l y ( t h e n u m b e r o f l e v e l s d e e p y o a r i d i s p l a y e dt h h e a d i n g a t h t o o t h w i n d o w ) . S t r u c t u r e s t h a t c o n t a i n

m e m b e r s t h a n w i l l f i o t h w i n d o w s h o w t h f i r s t 1 a n d i s p l a y g a d g e t t h a t s a y s " ( M O R E ) " . Y o c a n g o t

e n e x t p a g e o s t r u c t u r e m e m b e r s b c l i c k i n g o ( M O R E ) , a n g t h p r e v i o u s p a g e b y c l i c k i n g o t h " P r e v i o u s P a g e " g a d g e t .

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

F o e x a m p l e w h a t k i n d o g a d g e t s a r b e i n g u s e d i n e a t c o m m e r c i a l p r o g r a m ? A r e t h e y g a d g e t s a a l l ? D i t h

u s a r e q u e s t e r o r a w i n d o w f o t h a t p r o m p t ? J u s t b a r o u n d w i t h S B y o c a f i n d i a l o u t !

d a t a t y p e f o e a c h s t r u c t u r e m e m b e r i s h o w n i t h s a m e w a t h m e m b e r s a r d e c l a r e d i t h h e a d e r f i l e s ( t h e a p p r o p r ih e a d e r f i l e m u s t b e c o m p i l e d - u s i n g t h # i n c l u d e s t a t e m e n t

a n p r o g r a m t h a t w a n t s t o r e f e r t s y s t e m s t r u c t u r e ) .

T h e s e d a t a t y p e s a r e s t a n d a r d i A m i g a c o d e , b e c a u s e t h e y a r e' t y p e d e f s ' t h a t a r s e u i t h h e a d e r f i l e " e x e c / t y p e s . h " . T h b a s i c t y p e s a r e :

B Y T E s i g n e d 8 - b i t v a l u e ( c h a r )U B Y T E u n s i g n e d 8 - b i t v a l u e ( u n s i g n e d c h a r )S H O R T s i g n e d 1 6 - b i t v a l u e ( s h o r t )U S H O R T u n s i g n e d 1 6 - b i t v a l u e ( u n s i g n e d s h o r t )L O N G s i g n e d 3 2 - b i t v a l u e ( l o n g )U L O N G u n s i g n e d 3 2 - b i t v a l u e ( u n s i g n e d l o n g )

P o i n t e r s t a n o t h a b o v e a r d e n o t e d a i s t a n d a r d s y n t a x ,w i t h a a s t e r i s k ( * ) . F o e x a m p l e , a p o i n t e r t S H O R T w o u l d b d e n o t e d b S H O R T i t h t y p e f i e l d . S t r u c t u r e m e m b e r s t h a t a r p o i n t e r s t o t h e r s t r u c t u r e s a l s o u s t h s y n t a x ; a p o i n t e r t ' W i n d o w ' s t r u c t u r e , f o i n s t a n c e , i d e n o t e d b y ' s t r u c t W i n d o w * '

s t r u c t u r e m e m b e r t h a t i a a c t u a l s t r u c t u r e , n o a p o i n t e r t s t r u c t u r e , h a n a s t e r i s k ; S d o e s n o d i s p l a y a a d d r e s s f o s u c hm e m b e r , s i n c e i i c o n t a i n e d w i t h i n t h e s t r u c t u r e b e i n g v i e w e d ,w h o s e a d d r e s s i a l r e a d y s h o w n .

S t r u c t u r e m e m b e r s t h a t r e p r e s e n t n o t p o i n t e r s t o t h e r s t r u c t u r e s ,b u a c t u a l d a t a t h a t m a b o i n t e r e s t , a r d i s p l a y e d i v a r i o u sw a y s d e p e n d i n g o t h e i r n a t u r e . T h e s e d a t a c a b e s i m p l e n u b e r s , l i k e t h o s e g i v i n g a w i n d o w ' s L e f t E d g e , T o p E d g e , W i d t h a n H e i g h t . T h i t e m o f i n t e r e s t m i g h t b e b y t e , w o r d o l o n g w o r dc o n t a i n i n g f l a g s o s o m e s o r t , l i k e t h f l a g s i n d i c a t i n g a w i n d o w o g a d g e t t y p e . O t h d a t a y o u ' r e c o n c e r n e d w i t h m i g h t j u s t b a a r e a o m e m o r y t h a t c o n t a i n s t a b l e o s o m e s o r t o d e s c r i b e sg r a p h i c i m a g e .

S i m p l e d a t a v a l u e s , l i k e L e f t E d g e , e t c . a r s h o w n i b l a c k o t h S w i n d o w . S u c h s t r u c t u r e m e m b e r s c a n n o t b e u s e d t b r i n g u a n f u r t h e r i n f o r m a t i o n b p o i n t i n g o t h e m a n c l i c k i n gn o t h i n g w i l l h a p p e n i y o u d o s o T h e y a r j u s t w h a t t h e y a p p e a r t b e n u m b e r f o y o t o s e e . T h v a l u e s i b l a c k a r e o f t e n j u s t w h a ty o w a n t t f i n d o u a f t e r g e t t i n g t s t r u c t u r e o i n t e r e s t . W h e no n o t h e s e v a l u e s i u s e d f o c o n t a i n i n g f l a g s o s o m e s o r t , i i t r e a t e d d i f f e r e n t l y : y o c a c l i c k o i t g e l i s t o w h a t f l a g s a r s e t . A e x a m p l e m i g h t b " s m a r t r e f r e s h " w i n d o w w i t h s i z i n g ,c l o s e a n d r a g s y s t e m g a d g e t s . T h " F l a g s " m e m b e r o s u c hw i n d o w ' s s t r u c t u r e , w h e n s e l e c t e d , w o u l d s h o w :

W I N D O W D R A GW I N D O W C L O S E

W I N D O W S I Z I N GS M A R T _ R E F R E S H

( L i k e t h m e m b e r n a m e s , t h f l a g n a m e s a r t h o s e d e f i n e d i t h s t a n d a r d h e a d e r f i l e s u s e d f o o a s s e m b l e r p r o g r a m d e v e l o pm e n t . )

A n o t h e r f o r m o s p e c i a l i z e d o u t p u t i S i t h h e d u m p . W h e ns t r u c t u r e m e m b e r i a a r r a y o v a l u e s o a p o i n t e r t a a r e a o m e m o r y l i k e b i t - p l a n e o i m a g e d a t a , c l i c k i n g o t h m e m b e rn a m e c a u s e s h e d u m p o t h d a t a t b d i s p l a y e d . I t h d a t at y p e i s p e c i f i e d i t h s t r u c t u r e t e m p l a t e , t h e d a t a s i z e i t a k e ni n t o a c c o u n t i t h h e d u m p t h h e v a l u e s a r s h o w n a s e i t h e rb y t e s , w o r d s , o l o n g w o r d s .

T r a n s a c t o r 6 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 66/84

S a m p l e T o u r

O p a p e r , t h e p r o c e s s m a s o u n d r a t h e r i n v o l v e d , b u u s i n g S i b r e e z e . H e r e ' s a e x a m p l e o h o y o c o u l d f i n d o u t t h e t y p e o g a d g e t u s e d b p r o g r a m t h a t i c u r r e n t l y r u n n i n g i t h s y s t e m .L e t ' s u s a a e x a m p l e t h S t r u c t u r e B r o w s e r p r o g r a m i t s e l f w e ' l lt a k e l o o k a t h s t r u c t u r e f o t h p r o g r a m ' s " P r e v i o u s L e v e l "g a d g e t .

F i r s t , w h a v e t r u S B . T h a t ' s n o t h a r d : t y p e ' s b ' f r o m t h C L I . ( o ' r u n s b i y o u w a n t t k e e p t h C L a v a i l a b l e f o l a u n c h i n g o t h e rt a s k s w h i l e S i r u n n i n g ) . S w i l l b r i n g u w i n d o w t h a t i t h f u l lw i d t h o t h s c r e e n , b u i s n ' t f u l l h e i g h t , l e a v i n g b i o t h W o r k B e n c h s c r e e n v i s i b l e a t h t o p . O t h w i n d o w y o w i l l b p r o m p t e d t s e l e c t l i b r a r y s t r u c t u r e . S i n c e o n l y o n c h o i c e i a v a i l a b l e i t h i s v e r s i o n o t h p r o g r a m , t h d e c i s i o n i s n ' t d i f f i c u l t :s e l e c t " I n t u i t i o n " b p o i n t i n g w i t h t h m o u s e a n c l i c k i n g t h l e f tb u t t o n . A f t e r c l i c k i n g , l i s t o t h e " I n t u i t i o n B a s e " s t r u c t u r e m e b e r s w i l l b d i s p l a y e d , w i t h t h e i r t y p e s a n v a l u e s s h o w n o t h r i g h t . A l m e m b e r s a r e e i t h e r w h o l e e m b e d d e d s t r u c t u r e s o e l s es t r u c t u r e p o i n t e r s . T h t o t w a r p a r e n t h e s i z e d , m e a n i n g t h a tt h o s e s t r u c t u r e t y p e s a r n o a v a i l a b l e i t h i s v e r s i o n o t h p r o g r a m . T k e e p t h m a g a z i n e l i s t i n g r e a s o n a b l y s h o r t , w o n l yi m p l e m e n t e d f e w k e y s t r u c t u r e t y p e s ; r e f e r e n c e s t d a t a t y p e sn o h a n d l e d b t h b r o w s e r a r p a r e n t h e s i z e d , a n c l i c k i n g o t h e m h a n e f f e c t .

N o w , o w i t h o u t r a v e l s t t h g a d g e t s t r u c t u r e o i n t e r e s t . S i n c et h p r o g r a m w e ' r e i n t e r e s t e d i h a w i n d o w o t h W o r k b e n c hs c r e e n , w m u s t g e t t h a t s c r e e n ' s s t r u c t u r e f i r s t . W c a g e t h e r eb c l i c k i n g o t h " A c t i v e S c r e e n " m e m b e r i t h I n t u i t i o n B a s es t r u c t u r e , s i n c e t h e a c t i v e s c r e e n t h o n w e ' r e c u r r e n t l y w o r ki n o i t h W o r k B e n c h s c r e e n . O n c l i c k , a n d u p c o m e s t h f i r s t p a g e o t h s t r u c t u r e m e m b e r s i t h W o r k b e n c h s c r e e ns t r u c t u r e . Y o c a t e l l y o u ' v e g o t h r i g h t s c r e e n b l o o k i n g a t h m e m b e r c a l l e d " T i t l e " ; t t h r i g h t i s h o u l d s a " W o r k b e n c hS c r e e n " . T s e m o r e s c r e e n m e m b e r s , y o c a c l i c k o t h " ( M O R E ) " g a d g e t t h a t h a a p p e a r e d a t h b o t t o m o t h w i n d o w ,a n t h e n c l i c k o " P r e v i o u s P a g e " t g e b a c k . T h s e c o n dm e m b e r o t h s c r e e n s t r u c t u r e i c a l l e d " F i r s t W i n d o w " , a n i p o i n t s t t h f i r s t w i n d o w s t r u c t u r e i a l i n k e d l i s t c o n t a i n i n g a l w i n d o w s o t h s c r e e n .

C l i c k o " F i r s t W i n d o w " a n w i n d o w s t r u c t u r e w i l l b d i s p l a y e d .M o r e t h a n l i k e l y , t h i s i t h w i n d o w w e ' r e l o o k i n g f o r , t h w i n d o wb e l o n g i n g t S i t s e l f . T h " T i t l e " m e m b e r w i l l t e l l y o u w h a tw i n d o w y o u ' r e l o o k i n g a t s i n c e i w i l l s a e x a c t l y w h a t i o t h t i t l e b a o t h c o r r e s p o n d i n g w i n d o w . I t h w i n d o w i s n ' t t h o n y o u ' r e l o o k i n g f o r , y o c a g e t t h e n e x t w i n d o w s t r u c t u r e i t h l i s t b c l i c k i n g o t h f i r s t m e m b e r o t h s t r u c t u r e , t h o n c a l l e d" N e x t W i n d o w " . T h s t r u c t u r e f o t h n e x t w i n d o w w i l l t h e n b ed i s p l a y e d y o c a k e e p c h a i n i n g t h r o u g h a l t h w i n d o w s i t h s c r e e n i t h i s w a y . S t o p w h e n y o g e t t h S t r u c t u r e B r o w s e rw i n d o w ( c h e c k " T i t l e " ) . Y o u ' l l a l s o n o t i c e o t h e r i t e m s o f i n t e r e s t i t h s t r u c t u r e , l i k e t h w i n d o w ' s d i m e n s i o n s a n t h f l a g s s e f o t h w i n d o w . T r c l i c k i n g o t h " F l a g s " m e m b e r t s h o w t h w i n d o w f l a g s . E v e n i y o u ' r e n o t f a m i l i a r w i t h I n t u i t i o n p r o g r a mm i n g , t h n a m e s o t h f l a g s s h o u l d s u g g e s t t h e i r p u r p o s e .

N o t h a t w e ' v e f o u n d t h w i n d o w s t r u c t u r e w w a n t , l e t ' s l o o k f o a p o i n t e r t t h e g a d g e t l i s t a t t a c h e d t t h w i n d o w . T h e r e ' s n o t h i n gl i k e t h a t o t h f i r s t p a g e , s c l i c k t h " ( M O R E ) " g a d g e t t s e m o r ew i n d o w m e m b e r s . A b o u t h a l f w a d o w n i t h m e m b e r" F i r s t G a d g e t " , w h i c h p o i n t s t g a d g e t s t r u c t u r e ( i t s t y p e i ' s t r u c tG a d g e t * ' m e a n i n g a p o i n t e r t G a d g e t s t r u c t u r e ) . C l i c k t h e r e ,a n d u p c o m e s t h f i r s t i a l i n k e d l i s t o g a d g e t s t r u c t u r e s f o t h a tw i n d o w . B l o o k i n g a t h L e f t E d g e a n T o p E d g e v a r i a b l e s , y o c a s e t h e p o s i t i o n o t h e g a d g e t o t h s c r e e n . T g t t h e n e x tg a d g e t s t r u c t u r e i t h l i s t , j u s t c l i c k o t h f i r s t m e m b e r , " N e x -t G a d g e t " . Y o c a c h a i n t h r o u g h t h p r o g r a m ' s e n t i r e g a d g e t l i s tt h i s w a y , s t o p p i n g w h e n y o w i s h t e x a m i n e t h f l a g v a r i a b l e s" F l a g s , " A c t i v a t i o n " , o " G a d g e t T y p e " . G a d g e t T y p e w i l l t e l l y o i t h e g a d g e t i B O O L G A D G E T ( b o o l e a n ) , P R O P G A D G E T ( p r o p o rt i o n a l ) , o S T R G A D G E T ( s t r i n g ) .

E v e n t u a l l y , w g e t g a d g e t w i t h i t T o p E d g e a - 1 2 , a n i t L e f t E d g e a 1 0 S i n c e t h G R E L B O T T O M f l a g i s e i t h F l a g sv a r i a b l e , w e k n o w t h T o p E d g e v a l u e i n d i c a t e s t h a t t h e t o p e d g e o t h e g a d g e t i 1 2 p i x e l s a b o v e t h w i n d o w ' s b o t t o m b o r d e r . T h a t ' st h e " p r e v i o u s l e v e l " g a d g e t t h a t w e ' r e l o o k i n g f o r . W c a e x a m i n et h G a d g e t s t r u c t u r e t s e e x a c t l y h o t h a t g a d g e t w a s e u i t h S t r u c t u r e B r o w s e r p r o g r a m . ( U s i n g t h e s a m e i m a g e r y a s o m e o n e e l s e ' s g a d g e t i y o u r p r o g r a m s m i g h t b e c o n s i d e r e dv i o l a t i o n o c o p y r i g h t , b u t h e c u r r e n t v e r s i o n o S d o e s n ' ts u p p o r t I m a g e s t r u c t u r e s a n y w a y s t h e r e ' l l b n " D o n ' t t r y t h i s a th o m e , k i d s ! " w a r n i n g h e r e . )

S t r u c t u r e B r o w s e r d o e s n ' t s u p p o r t a l t h s y s t e m s t r u c t u r e s a s i s t a n d s n o t h e r e a r j u s t t o m a n y a n t h p r o g r a m w o u l d f i l lt h e n t i r e m a g a z i n e . R a t h e r , w h a v e p u i s o m e o t h m o r ei n t e r e s t i n g I n t u i t i o n s t r u c t u r e s a n w p l a n o a d d i n g m o r e f o v e r s i o n 2 . o S B w h i c h w i l l b f o u n d o T h T r a n s a c t o r ' s f i r s tA m i g a d i s k , a n w i l l b u p l o a d e d t C o m p u S e r v e ' s A m i g a F o r u m .T h p r o g r a m i d e s i g n e d s t h a t i i e a s y t a d n e s t r u c t u r e s a y o w i s h i y o h a v e a c c e s s t t h " i n c l u d e " f i l e s f o d e v e l o pm e n t ( o t h l i s t i n g s o t h e m i t h R O K e r n a l m a n u a l ) , i s h o u l db e e a s y f o y o t a d d w h a t e v e r s t r u c t u r e s y o u ' r e i n t e r e s t e d i n t ot h p r o g r a m . I n f o r m a t i o n a b o u t d o i n g t h i s i g i v e n l a t e r i t h a r t i c l e . S i p u b l i c d o m a i n , s o y o u ' r e f r e e t u s a n m o d i f y i a y o w i s h ; i y o d o a d d n e s t r u c t u r e s , t h o u g h , p l e a s e u s t h s t a n d a r d A m i g a m e m b e r n a m e s a n t y p e s e x a c t l y a t h e y a p p e a ri t h i n c l u d e f i l e s . W p l a n t s e h o f a t h S c o n c e p t o s y s t e m s t r u c t u r e b r o w s i n g c a n b e t a k e n f e i d e a s f o e n h a n c em e n t s a r g i v e n l a t e r i n t h i s a r t i c l e .

A p p l i c a t i o n s f o S

B n o y o u ' v e p r o b a b l y s e e n t h a t S i a g r e a t t o o l f o l e a r n i n ga b o u t t h A m i g a ' s i n t e r n a l d a t a s t r u c t u r e s . B u t h e r e a r a c t u a l l yq u i t e f e g o o d r e a s o n s t h a v e S a r o u n d o n y o u r m o s t - u s e dd i s k m a y b e e v e n i t h d i r e c t o r y o y o u r u s u a l W o r k b e n c h o d e v e l o p m e n t d i s k .

F o o n t h i n g , S B m a k e s v e r y h a n d y r e f e r e n c e t t h s t r u c t u r et e m p l a t e s t h e m s e l v e s . I t ' s e a s i e r t b r i n g u S a n c l i c k t s t r u c t u r e t h a n t l o o k u t h a t s t r u c t u r e d e f i n i t i o n i t h R O K e r n a l m a n u a l . A n i y o d o n ' t h a v e t h m a n u a l , i t ' s e a s i e r t h a n

T h T r a n s a c t o r 6 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 67/84

t h r o u g h l o t s o i n c l u d e f i l e s . I y o d o n ' t h a v e t h i n c l u d ei t ' s t h o n l y w a y !

c a a l s o b u s e d a d e b u g g i n g t o o l : i y o u r p r o g r a m i a c t i n gy o c a p e e k a I n t u i t i o n ' s v i e w o y o u r w i n d o w s ,

e t c . , t m a k e s u r e t h e y a r p r o p e r l y s e u a n l i n k e dt h e r t h e w a y o i n t e n d e d . Y o c a l o o k a t h e s e t h i n g s a a n

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

h p r o g r a m ' s i n t e r a c t i o n w i t h t h e o p e r a t i n g s y s t e m .

b e n e f i t o S i t h a t y o c a u s i t l e a r n p r o g r a m m i n gb l o o k i n g a h o o t h e r a p p l i c a t i o n s h a v e s e u t h e i r

r e s t a c h i e v e c e r t a i n e f f e c t s . B i n v e s t i g a t i n g t h s t r u c t u r e sk n o w n s y s t e m e n t i t i e s , y o c a s e w h a t e f f e c t c e r t a i n f l a g s a n

h a v e o t h e i r b e h a v i o u r . I y o u ' r e c u r i o u s a b o u t t h t h a t s o m e p r o g r a m i u s i n g , j u s t t a k e b r o w s e t h r o u g h i t

a n w i n d o w s . F o i n s t a n c e , d i y o k n o w t h a t W o r k b e n c ha b o r d e r l e s s , b a c k d r o p w i n d o w t h a t l i e s o t h W o r k b e n c h

j u s t b e l o w t h s c r e e n t i t l e ? W d i d n ' t e i t h e r , u n t i l w u s e dt l o o k a t h W o r k b e n c h w i n d o w s t r u c t u r e . Y o c a g e s o m e

i d e a s f r o m o t h e r p e o p l e ' s u s o I n t u i t i o n ' s r e s o u r c e s .

e V e r s i o n s o S

r m a i n g o a l f o S i t e v e n t u a l l y h a v e i e n c o m p a s s n e a r l y a l s t r u c t u r e s a n f l a g s . T h e p r o g r a m c a b e e x p e c t e d t g r o w

s i z e c o n s i d e r a b l y , b u i w i l l b e w o r t h i f o t o t a l m a o t h t e m ' s i n n e r t h o u g h t s . B u b e s i d e s e x p a n d i n g i s c o p e , t h e r e

a l s o b m o r e f l e x i b i l i t y i t h w a y s t h a t l o w e s t - l e v e l d a t aa r e d i s p l a y e d . F o e x a m p l e , g r a p h i c d a t a c o u l d b d i s p l a y e d

o a h e x - d u m p , b u a t h a c t u a l i m a g e t h a t i d e f i n e s . S o m el i k e t h m o u s e ' s a n c o o r d i n a t e s t h a t a r f o u n d i

s t r u c t u r e , c o u l d b u p d a t e d f r e q u e n t l y t g i v e c u r r e n tT h h e d u m p s h o u l d a l s o d i s p l a y A S C I I e q u i v a l e n t s o

b y t e s . P e r h a p s l e s s i m m e d i a t e l y - i m p l e m e n t e d f e a t u r e w i l lt h s a v i n g o i m a g e a n B i t M a p d a t a t d i s k a s I F F - f o r m a t f i l e s .

s h o u l d b e w a t s a v e a n s t r u c t u r e a n i t c u r r e n t v a l u e sf i l e a w e l l , p e r h a p s a o a s s e m b l e r c o d e f o e a s y i n c l u s i o n

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

( r e a d : w d o n ' t w a n t t d a l t h w o r k o u r s e l v e s ! )

L i s t i n g N o t e s

h e C s o u r c e f o S i b r o k e n i n t o s e v e r a l f i l e s , e a c h w i t h i t o w T h m a i n l i n e a n g e n e r a l f u n c t i o n s a r i t h f i l e " s b . c " .

h I n t u i t i o n c a l l s a n a l f u n c t i o n s d e a l i n g w i t h t h p r o g r a m ' si n t e r f a c e i i t h f i l e " s b i o . c " . T h o t h e r f i l e s c o n t a i n t h e

r o u t i n e s t h a n d l e d i f f e r e n t s t r u c t u r e t y p e s , " s b w i n -" s b s c r e e n . c " , a n " s b g a d g e t . c " c o n t a i n t h e f u n c t i o n s t h a t

t h s t r u c t u r e s t h e i r n a m e s s u g g e s t , " s b g f x . c " h a n d l e s t h l i b r a r y - r e l a t e d s t r u c t u r e s , R a s t P o r t a n B i t M a p . I a d d i

h e a d e r f i l e , " s b . h " , c o n t a i n s v a r i o u s # d e f i n e s t a t e m e n t s a n s t r u c t u r e d e f i n i t i o n i s h o u l d b s t o r e d i s u b d i r e c t o r y c a l l e d

" . A l o t h e s e s e p a r a t e f i l e s c a b c o m p i l e d w i t h M a n xu s i n g " m a k e " a n t h m a k e f i l e p r o v i d e d . T h m a k e f i l e

t a k e s a d v a n t a g e o M a n x ' s p r e - c o m p i l e d h e a d e r f i l e c a p a b i l i t y t s p e e d u c o m p i l a t i o n b n o h a v i n g t r e - c o m p i l e " i n t u i t i o n . h " i e a c h o t h s i s o u r c e f i l e s , i y o a r u s i n g t h i s m e t h o d , y o c a d e l e t e t h # i n c l u d e a t h e t o p o e a c h s o u r c e f i l e a i n d i c a t e d i t h c o m m e n t . F o u s e r s o f L a t t i c e C j u s t c o m p i l e a l s i f i l e s a n l i n kt h e m n o r m a l l y d o n ' t w o r r y a b o u t t h e m a k e f i l e .

S i n c e r e q u i r e m e n t o f t h i s p r o g r a m w a t h a t i d i d n ' t u s u t o m a n y v a l u a b l e m a g a z i n e p a g e s , w h a t m a k e f e c o m p r om i s e s i t h s t y l e d e p a r t m e n t . F o r o n t h i n g , t h p r o g r a m h a f a t o f e c o m m e n t s w h o p e t c l e a r u p m a i n p o i n t s r e g a r d i n g t h p r o g r a m ' s o p e r a t i o n i t h i s a r t i c l e . T h e r e a r a l s o v e r y f e b l a n kl i n e s t h a t m i g h t h a v e m a d e t h p r o g r a m e a s i e r t l o o k a t F u n c t i o np a r a m e t e r d e c l a r a t i o n s a r p u o s i n g l e l i n e , a n o t h s a m el i n e a s t h e f u n c t i o n d e c l a r a t i o n i t s e l f , i p o s s i b l e . T h c o d e i s n ' t t o u n r e a d a b l e , t h o u g h , a n t h d i s k / C o m p u s e r v e v e r s i o n o S ( V 2 . 0 ) w i l l b m u c h p r e t t i e r .

W h e n e n t e r i n g t h e p r o g r a m , t a k e e x t r a c a r e i e n t e r i n g t h e t h e' s t r u c t d a t a ' a r r a y s i e a c h s t r u c t u r e p r i n t f u n c t i o n . T h f i r s t c h a r a ct e r o f e a c h m e m b e r n a m e i e i t h e r s p a c e , m i n u s , o l e f t p a r e n t h es i s ; i i i m p o r t a n t t u s t h c o r r e c t o n e . A l s o , i y o u s t h w r o n gd a t a s i z e c o n s t a n t ( l i k e p u t t i n g i I N T S I Z E w h e r e i s h o u l d b P T R S I Z E ) , y o w i l l g e b a r e s u l t s w h e n y o t r y t o d i s p l a y t h a ts t r u c t u r e , o w o r s e y e t , a s o f t w a r e e r r o r .

P r o g r a m N o t e s

S i q u i t e u s e f u l a i s t a n d s , b u y o m a w a n t t m o d i f y i t i n c o r p o r a t e s o m e o t h e r s t r u c t u r e s t h a t y o u ' r e i n t e r e s t e d i n I y o d o h e r e i s o m e e x p l a n a t i o n o t h p r o g r a m t h e l p y o o u t . T h s p e c i f i c s a r u t y o u ; h a v e b a l l , h a c k e r s !

T h p r i n c i p l e b e h i n d S i v e r y s i m p l e . s p e c i a l i z e d f u n c t i o ne x i s t s f o r e a c h k i n d o s t r u c t u r e . I s t r u c t u r e c o n t a i n s m o r em e m b e r s t h a n w i l l f i o n o n e p a g e , t h e r e i a f u n c t i o n f o e a c hs u b s e q u e n t p a g e . T h f u n c t i o n i p a s s e d a p o i n t e r t t h s t r u c t u r e( a n d a o f f s e t , i t h e c a s e o m u l t i p l e - p a g e s t r u c t u r e s ) , a n i p r i n t st h s t r u c t u r e ' s m e m b e r s , t y p e s a n v a l u e s , t h e n w a i t s f o i n p u t .( T h e a c t u a l o u t p u t a n i n p u t i h a n d l e d b f u n c t i o n s i " s b i o . c " ,b u m o r e o t h a t l a t e r . ) D e p e n d i n g o n t h m e m b e r s e l e c t e d b t h u s e r , a a p p r o p r i a t e r o u t i n e i c a l l e d t p r i n t t h a t s t r u c t u r e ' sm e m b e r s a n a g a i n w a i t f o i n p u t . I m a b t h a t a r o u t i n e c a l l si t s e l f , a w h e n c h a i n i n g t h r o u g h l i n k e d l i s t o f l i k e s t r u c t u r e s .

I a n c a s e , e a c h s e l e c t i o n b r i n g s t h e p r o g r a m o n l e v e l o n e s t i n gd e e p e r , a n t h o n l y w a t g u l e v e l i b t h e u s e r c l i c k i n g t h " P r e v i o u s L e v e l " o " P r e v i o u s P a g e " g a d g e t , c a u s i n g t h e r e t u r nf r o m a f u n c t i o n . ( S i n c e e a c h e x t r a l e v e l y o v i s i t r e p r e s e n t s a e x t r a l e v e l o f u n c t i o n c a l l n e s t i n g , y o f a c e t h e o r e t i c a l p o s s i b i l i t yo s t a c k o v e r f l o w i y o g t o d e e p . E v e n w i t h t h s y s t e m d e f a u l ts t a c k o 4 0 0 0 b y t e s , t h o u g h , w e s t i m a t e y o u ' d h a v e t g w e l l o v e r1 0 l e v e l s d e e p b e f o r e t h e r e w a s a n y d a n g e r o t h i s h a p p e n i n g . )

B e s i d e s f u n c t i o n s t h a t h a n d l e s p e c i f i c s t r u c t u r e s , t h e r e a r e t h em o r e g e n e r a l o u t p u t f u n c t i o n s t h a t d i s p l a y h e d u m p s o f l a g st h e s e a r i t h f i l e " s b . c " . T h f u n c t i o n u s e d t t e l l t h o u t p u tf u n c t i o n i " s b i o . c " w h a t t d i s p l a y i c a l l e d p u t ( ) , a n i a l s o i

T r a n s a c t o r 6 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 68/84

" s b . c " i i c a l l e d b a l t h s t r u c t u r e o u t p u t f u n c t i o n s a n i p a s s e d a p o i n t e r t t h s t r u c t u r e a n a p o i n t e r t a a r r a y o s p e c i a l" S t r u c t D a t a " s t r u c t u r e s . S e t t i n g u t h i s a r r a y i t h k e t a d d i n gm o r e s t r u c t u r e s t S B ' s r e p e r t o i r e .

" S t r u c t D a t a " s t r u c t u r e i d e f i n e d i t h f i l e " s b . h " s e e n i t h l i s t i n g . I c o n t a i n s i n f o r m a t i o n t h a t S n e e d s t k n o w a b o u ts t r u c t u r e m e m b e r : i t n a m e , t y p e , p r i n t o p t i o n , a n s i z e . T h n a m e a n t y p e a r j u s t p o i n t e r s t s t r i n g s f o d i s p l a y . T h p r i n tt y p e i n e e d e d s t h a t p u t ( ) k n o w s h o t o p r i n t t h m e m b e r ' sv a l u e - a b y t e , s h o r t , o l o n g , s i g n e d o u n s i g n e d , o a s t r i n go p o i n t e r . S e t h p u t ( ) f u n c t i o n t s e h o t h p r i n t c o d e s a r i n t e r p r e t e d . T h o t h e r m e m b e r o s t r u c t S t r u c t D a t a , t h d a t a s i z e ,i n d i c a t e s t h e n u m b e r o b y t e s u s e d b y t h s t r u c t u r e m e m b e r . T h ec o n s t a n t s B Y T E S I Z E , I N T S I Z E , a n P T R S I Z E a r e d e f i n e d i " s b . h "t s p e c i f y t h c o m m o n s i z e s 1 , 2 , a n 4 W h e n t h m e m b e r i s t r u c t u r e ( n o t a p o i n t e r t s t r u c t u r e , b u a i n s t a n c e o t h s t r u c t u r e i t s e l f ) , u s t h S m a c r o d e f i n e d i " s b . h " t c a l c u l a t e t h s i z e o f t h s t r u c t u r e , e . g . S Z ( V i e w ) i n s t e a d o s i z e o f ( s t r u c t V i e w ) .

B l o o k i n g a t h f u n c t i o n s P r W i n d o w ( ) , P r S c r e e n ( ) , a n P r G a d g e t ( ) a e x a m p l e s , y o s h o u l d h a v e n d i f f i c u l t y a d d i n g t h f u n c t i o n s t d i s p l a y s y s t e m s t r u c t u r e s o f i n t e r e s t t y o u . I y o a d

n e s t r u c t u r e , y o u ' l l h a v e t a l l o w t h u s e r t s e l e c t i f r o ma n o t h e r s t r u c t u r e b y r e m o v i n g t h p a r e n t h e s e s f r o m a r o u n d t h m e m b e r n a m e a n t y p e . A o p e n i n g p a r e n t h e s i s a t h s t a r t o m e m b e r n a m e i n s t e a d o s p a c e p r e v e n t s t h a t m e m b e r f r o mb e i n g s e l e c t e d b t h e u s e r ( d o e s n ' t m a k e i g a d g e t ) . J u s t r e m o v et h e s e p a r e n t h e s e s f r o m a l f u n c t i o n s w h o s e s t r u c t u r e c o n t a i n sp o i n t e r t y o u r n e w l y - i m p l e m e n t e d s t r u c t u r e , a n a d c a l l t y o u r n e f u n c t i o n i t h S W I T C H s t a t e m e n t . A g a i n , r e f e r t t h f u n c t i o n s m e n t i o n e d a b o v e f o c l a r i f i c a t i o n .

I t h p r i n t f u n c t i o n f o a n n e s t r u c t u r e y o u ' v e a d d e d t t h p r o g r a m , s e u s t a t i c ' s t r u c t d a t a ' a r r a y o S t r u c t D a t a s t r u c t u r e s( t r y s a y i n g t h a t t h r e e t i m e s q u i c k l y ! ) a i t h e o t h e r f u n c t i o n s .M e m b e r s ' n a m e s s h o u l d b e g i n w i t h s p a c e f o f l a g s , a r r a y s , o p o i n t e r s t s t r u c t u r e s t h a t S c a n h a n d l e ( i . e . a n y t h i n g f o w h i c hp r i n t f u n c t i o n e x i s t s ) , m i n u s ( - f o s i m p l e d a t a e l e m e n t s t h a t w i l lb e r e n d e r e d i b l a c k a n w i l l n o b s e l e c t a b l e b t h u s e r , o r p a r e n t h e s i s f o p o i n t e r s t s t r u c t u r e s t h a t a r n o s u p p o r t e d b t h p r o g r a m .

T h o u t p u t o m e m b e r s t t h w i n d o w a n t h i n p u t o r e s p o n s ef r o m t h u s e r i h a n d l e d b t h s a m e f u n c t i o n , G e t C h o i c e ( ) .S e l e c t a b l e s t r u c t u r e m e m b e r s a r i m p l e m e n t e d a I n t u i t i o n g a g e t s t h a t h a v e n r e n d e r i n g o t h e r t h a n t h a s s o c i a t e d I n t u i T e x t . A a r r a y o 1 I n t u i T e x t s t r u c t u r e s i s e u t c o n t a i n t h t e x t f o e a c hl i n e p r i n t e d t t h w i n d o w . A a r r a y o 1 b o o l e a n g a d g e t s , e a c hp o i n t i n g t d i f f e r e n t I n t u i T e x t s t r u c t u r e , i a l s o d e c l a r e d . G a d g e ts t r u c t u r e s a l s o e x i s t f o t h " P r e v i o u s L e v e l " a n " ( M O R E ) " g a g e t s t h a t a p p e a r o t h w i n d o w .

W h e n G e t C h o i c e ( ) i c a l l e d , i c a l l s R e d i s p l a y ( ) t p u u t h s t r u c t u r e m e m b e r n a m e s a n b u i l d t h e r e q u i r e d l i s t o g a d g e t s .R e d i s p l a y ( ) f i r s t r e m o v e s a l e x i s t i n g g a d g e t s e x c e p t t h f i r s t i t h g a d g e t l i s t , t h " P r e v i o u s L e v e l " g a d g e t ( B a c k G a d g ) . D e p e n d i n g o t h n u m b e r o s t r u c t u r e m e m b e r s t b d i s p l a y e d , u t 1 6 p a s s e st h r o u g h l o o p a r m a d e t e i t h e r p r i n t a I n t u i T e x t o a d t h

a s s o c i a t e d g a d g e t t t h g a d g e t l i s t . A f t e r t h l o o p , t h " ( M O R E ) "g a d g e t ( M o r e G a d g ) i a d d e d i t h e r e a r e m o r e t h a n 1 s t r u c t u r em e m b e r s t d i s p l a y . F i n a l l y , c a l l t t h I n t u i t i o n f u n c t i o n R e f r e s h G a d g e t s ( ) d i s p l a y s t h e g a d g e t t e x t o t h w i n d o w .

A f t e r R e d i s p l a y ( ) h a d o n e i j o b , G e t C h o i c e ( ) w a i t s f o a I D C M P( I n t u i t i o n D i r e c t C o m m u n i c a t i o n M e s s a g e P o r t ) e v e n t , w h i c h w i l ls i g n i f y t h a t t h u s e r h a s e l e c t e d g a d g e t . I t h w i n d o w c l o s eg a d g e t w a s e l e c t e d , C l o s e O u t ( ) i c a l l e d t c l o s e u l i b r a r i e s a n t h o p e n w i n d o w , t h e n c a l l e x i t ( ) t f i u t h s t a c k a n r e t u r n t C L I . I a n o t h e r g a d g e t w a s e l e c t e d , t h g a d g e t ' s I i r e t u r n e d t t h c a l l e r o f G e t C h o i c e ( ) . T h I D o t h s t r u c t u r e m e m b e r g a d g e t sa r t h e i r o r d i n a l v a l u e s f o t h f i r s t a n s o n T h " P r e v i o u sL e v e r g a d g e t h a a I o 0 a n t h " ( M O R E ) " g a d g e t ' s I i t h c o n s t a n t M O R E G A D G , d e f i n e d a 2 i " s b . h " .

T o S B 2 . 0 . . . A n B e y o n d !

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

M e a n w h i l e , h a v e f u n p i c k i n g I n t u i t i o n ' s b r a i n s w i t h S 1 . 0 , a n w e ' l l s e y o n e x t i s s u e !

* • * * * * * • * • * * * • • * * * " h e a d e r / s b . h " * • * * • * * * * * • * « * • * * • • * * * * *

♦ i n c l u d e < i n t u i t i o n / i n t u i t f o n . h ># d e f i n e S Z ( x ) s i z e o f ( s t r u c t x i d e f i n e D A T A S I Z E s i z e o f ( s t r u c t d a t a ) E i z e o f ( s t r u c t S t r j c t D a t i Oi d e f i n e P T R S I Z E s i z e o f ( A P T R )# d e f i n e I N T S I Z E s i z e o f ( i n t )# d e f i n e B Y T E S I Z E s i z e o f ( c h a r )# d e f i n e M A X G A D G 1 f d e f i n e M O R E G A D G 2 5 / * I o " m o r e " g a d g e ts t r u c t S t r u c t D a t a { c h a r " m e m b e r n a m e ;

c h a r * m e m b e r t y p e ;i n p r i n t t y p e ;i n d a t a s i z e ;

T h T r a n s a c t o r S t r u c t u r e B r o w s e r ( S B ) V 1 . 0F r o m T r a n s a c t o r M a g a z i n e , V o l u m e 7 I s s u e 0 6

B y N i c k S u l l i v a n a n d C h r i s Z a m a r a ( A H A ! ) ( c ) 1 9 8 6S d i s p l a y s s y s t e m s t r u c t u r e s v i p o i n t e r s f o u n di o t h e r s t r u c t u r e s . Y o u s t a r t f r o m l n t u i t i o n B a s e .s t r u c t u r e s i m p l e m e n t e d i V 1 . 0 :

l n t u i t i o n B a s e , W i n d o w , S c r e e n , R a s t P o r t , B i t M a p , G a d g e tU s a g e i t h r o u g h i n t u i t i o n , c l i c k i n g o n s t r u c t u r e m e m b e rn a m e s t d i s p l a y i n f o o r n e w s t r u c t u r e .

* * * * * T H I S P R O G R A M M A Y B F R E E L Y D I S T R I B U T E D * ♦ • • •

/ i n c l u d e n o n e e d e d f o A z t e c u s i n g p r o v i d e d m a k e f i l e * # i n c l u d e " h e a d e r / s b . h "t f d e f i n e M I N ( x . y ) ( ( x ) < ( y ) ? ( x ) : ( y > )# d e f i n e F L A G F I E L D Se x t e r n s t r u c t l n t u i t i o n B a s e M n t u i t i o n B a s e ;e x t e r n s t r u c t I n t u i T e x t C h o i c e T e x t [ ] B a c k l T e x t ;A P T R O p e n L i b r a r y ( ) i n l e v e l ■ 0 / c u r r e n t l e v e l o f n e s t i n g * s t a t i c c h a r t e x t n e s [ M A X G A D G + 1 H 8 0 ] ;

T h T r a n s a c t o r M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 69/84

m a i n (

i n c h o i c e - 1 S e t u p G e d g O ;O p e n S t u f f O ; / o p e n i n t u i t i o n l i b r a r y t w i n d o w • w h i l e ( c h o i c e )

p u t H e a d e r C C h o o s e L i b r a r y s t r u c t u r e " , N U L L ) ;C h o i c e T e x t [ 0 ] . I T e x t ( U B T T E • ) I n t u i t i o n s t r u c t L i b r a r y " ;B a c k l T e x t . I T e x t ( U B Y T E • ) O u i t P r o g r a m « s w i t c h ( c h o i c e G e t C h o i c e ( D )

c a s e 1 P r l n t u i B a s e ( " T h e I n t u i t i o o B a s e s t r u c t u r e " , I n t u i t i o n B a s e ) ;b r e a k ;

C l o s e O u t O ;

P r l n t u i B a s e ( s t r i n g , I B o s e ) c h a r * s t r i n g ; s t r u c t I n t u i t i o n B a s e " I B a s e ;

s t a t i c s t r u c t S t r u c t D a t a s t r u c t d a t a [ ]" ( L i b N o d e " ," ( V i e w L o r d " ,

A c t i v e W i n d o w " ,A c t i v e S c r e e n " ,F i r s t S c r e e n " ,

" s t r u c t L i b r a r y ) 1 1 , 0 S 2 ( L i b r a r y » ," s t r u c t V i e w ) " , 0 S Z ( V i e w ) } • s t r u c t W i n d o w • " 5 P T R S I Z E > " s t r u c t S c r e e n ♦ " 5 P T R S I Z E ) " s t r u c t S c r e e n • » 5 P T R S I Z E

I n ( s u m , c h o i c e - 1 l e v e l * - * ;w h i l e ( c h o i c e )

s u S e t O p t i o n T e x t ( s t r t n g , s t r u c t d a t a , ( A P T R ) I B a s e , D A T A S I Z E , 0 ) s w i t c h ( c h o i c e G e t C h o i c e ( D A T A S I Z E ) )

c a s e 3

i U B a s e - > A c t i v e U i n d o w )P r U i n d o w C ' T h e c u r r e n t l y a c t i v e w i n d o w " , I B a s e - > A c t i v e U i n d o w ) ;

b r e a k ;c a s e 4

P r S c r e e n ( " T h e c u r r e n t l y a c t i v e s c r e e n " , I B a s e - > A c t i v e S c r e e n > ;b r e a k ;

c a s e 5 P r S c r e e n C T h e f i r s t s c r e e n o I n t u i t i o n s l i s t " ,

I B a s e - > F i r s t S c r e e n ) , •b ^ e a k , •

l e v e l - - ;

p u ( o p t i o n , s t u f f , b a s e , o f f s e t )i n o p t i o n ; s t r u c t S t r u c t D a t a ' s t u f f ; c h a r * b a s e ; i n o f f s e t ;r e g i s t e r l o n g I n u m ;r e g i s t e r i n i n u m ;c h a r b u [ 4 0 ] ;i n i

s p r i n t f ( t e x t l i n e s [ o p t i o n ] , " X - 1 6 s X - 2 4 s " ,s t u f f - > m e m b e r n a m e , s t u f f - > m e m b e r t y p e ) ;

s w i t c h ( s t u f f - > p r i n t t y p e )c a s e 0 / d o n ' t p r i n t a n y t h i n g

b u f [ 0 ] 1 \ 0 1 ;b r e a k ;

e a s e 1 / p r i n t l o n gI n u m * ( l o n g * ) ( b a s e ♦ o f f s e t ) ;s p r i n t f ( b u f , " S X S l x X 1 0 l d " , I n u m , I n u m ) ;b r e a k ;

c a s e 2 / " p r i n t a i n i n u m * ( i n t * ) ( b a s e o f f s e t ) ;s p r i n t f ( b u f , " i % 8 x X 1 0 d " , i n u n , i n u m ) ;b r e a k ;

c a s e 3 : / • p r i n t b y t ei n u m * ( b a s e o f f s e t ) ;s p r i n t f ( b u f , " » X 8 x X 1 0 d " , i n u m , i n u m ) -b r e a k ;

c a s e 4 / • p r i n t s t r i n gi ( K l n u m " ( l o n g * ) ( b a s e o f f s e t ) )

s p r i n t f ( b u f , " N U L L " ) ;e l s e

f o ( = 0 3 0 & & * ( ( c h a r * ) l n u m i ) i + + )b u [ 1 > * ( ( c h a r * ) l n u m i )

b u f t O ] b u f t i 1 1 \ » " ;b u f [ i + 2 1 \ 0 1 ;i ( * ( ( c h a r * ) l n u m i )

s t r c a t ( b u f , " . . . " ) ;

b r e a k ;c a s e 5 / p r i n t p o i n t e r

i ( K l n u m * ( l o n g * ) ( b a s e o f f s e t ) ) s p r i n t f ( b u f , " N U L L " ) ;

e l s es p r i n t f ( b u f , " $ X 8 l x X 1 0 l d " , I n o m , I n u m ) ;

b r e a k ;c a s e 1 1 / p r i n t a l o n g

I n u m * ( l o n g * ) ( b a s e + o f f s e t ) ;s p r i n t f ( b u f , " J X S l x X I O l u " , I n u m , I n u m ) ;b r e a k ;

c a s e 1 2 / p r i n t a i n i n u m V i n t * ) ( b a s e + o f f s e t ) ;s p r i n t f ( b u f , » $ X 8 x X 1 0 u » , i n u m , i n u m ) ;b r e a k ;

c a s e 1 3 / • p r i n t a b y t ei n u m ' ( b a s e o f f s e t ) ;s p r i n t f ( b u f , « t X 8 x X 1 0 u " , i n u m , i n u m ) ;b r e a k ;

s t r c a t ( t e x t l i n e s [ o p t i o n ] , b u f ) ;C h o i c e T e x t [ o p t i o n ] . I T e x t ( U B Y T E * ) t e x t l i n e s [ o p t i o r O ;

F l a g P r i n t ( s t r i n g , n a m e s , f l a g s )c h a r * s t r i n g , * * n a m e s ; U L O N G f l a g s ;i n ) l i n e , f i e l d s F L A G F I E L D S ;c h a r b u f [ 3 2 1 ;S e t B o c k T e x t d ) ; / ' p r e v l e v e l 1 * /f o ( = 0 < 8 I + + )

B t r c p y < t e x t i n e s [ i ] , l 1 - 1 1 ) ;C h o i c e T e x t [ i ] . l T e x t ( U B Y T E * ) t e x t l i n e s [ i ] ;

p u t H e a d e r ( s t r i n g , N U L L ) ;f o ( l i n e * 0 3 2 ; i + + )

i ( ( f l a g s I ( 1 i ) n a m e s [ i ] )s p r i n t f ( b u f , " X - 1 9 S 1 1 , n a m e s l l ] ) ;s t r c a t ( t e x t l i n e s [ l i n e ] , b u f ) ;i ( ! - - f i e l d s )

C h o i c e T e x t [ l i n e ] . I T e x t ( U B Y T E * ) t e x t l i n e s [ l i n e ] ;l i n e + + ;f i e l d s F L A G F I E L D S ;

i ( f i e l d s F L A G F I E L D S )C h o i c e T e x t t l f n e ] . I T e x t ( U B Y T E * ) t e x t l i n e s [ l i n e ] ;

w h i l e ( G e t C h o i c e d i n e 1

H e x D u m p ( s t r i n g , a d d r e s s , u n i t , s i z e )c h a r * a d d r e s s , * s t r i n g ; i n u n i t ; l o n g s i z e ;i n l i n e 0 , c ;c h a r * b u f [ 8 0 ] ;

B a c k l T e x t . I T e x t ( U B Y T E * ) " E x i t H e x D u m p " I ( s i z e - 1

s i z e 0 x 7 f f f f ;d

s p r i n t f ( b u f , " X f r o m X l x ( X l d ) 1 1 ,s t r i n g , a d d r e s s , a d d r e s s ) ;

p u t H e a d e r ( b u f , N U L L ) ;i ( l i n e = M A X G A D G )

l i n e = 0 w h i l e ( l i n e M A X G A D G & & s i z e 0

H e x L i n e ( a d d r e s s , u n i t , l i n e + + , s i z e ) ;s i z e - = 1 6 ;a d d r e s s + 1 6

c G e t C h o i c e ( s i z e M A X G A D G l i n e ) ;w h i l e ( s i z e > S . S . - - M O R E G A D G ) ;

H e x L i n e ( a d d r e s s , u n i t , l i n e , s i z e )U B Y T E " a d d r e s s ; i n u n i t , l i n e ; l o n g s i z e ;

U S H O R T i j c h a r b u f [ 8 0 ] ;s t a t i c c h a r h e x d i g i t [ ] " 0 1 2 3 4 5 6 7 8 9 A B C 0 E F " ;

s p r i n t f ( t e x t l i n e s [ l i n e ] , U - X 6 l x : " a d d r e s s ) ;f o ( 0 M I N t s i z e , 1 6 ) ; u n i t )

s w i t c h ( u n i t )c a s e B Y T E S I Z E :

" ( a d d r e s s i > s p r i n t f ( b u f , " X c X c " h e x d i g i t [ j 1 6 ] , h e x d i g i U j X 1 6 ] ) ;b r e a k ;

c a s e I N T S I Z E :s p r i n t f ( b u f , " X 0 4 x " " ( i n t * ) ( a d d r e s s i ) ) ;b r e a k ;

c a s e P T R S I Z E :s p r i n t f ( b u f , " X 0 8 l x « " ( l o n g " X a d d r e s s I ) ) ;b r e a k ;

s t r c a t ( t e x t l i n e s [ l i n e ] , b u f ) ;

C h o i c e T e x t [ l i n e ] . I T e x t ( U B Y T E * ) t e x t l i n e s [ l i n e ] ;

S e t O p t i o n T e x t ( h d r t e x t , d a t a , o b j e c t , s i z e , o f f s e t )c h a r " h d r t e x t ;s t r u c t S t r u c t D a t a " d a t a ;A P T R o b j e c t ;i n s i z e , o f f s e t ;

f n i s u m ;S e t B a c k T e x t C o f f s e t 1 ) p u t H e a d e r ( h d r t e x t , o b j e c t ) ;f o ( s u = 0 s i z e ; i + + )

p u t ( i , & d a t a [ i ] , o b j e c t , s u m o f f s e t ) ;s u m + • d a t a [ i ) . d a t a s i z e ;

r e t u r n ( s u m o f f s e t ) ;

T r a n s a c t o r 6 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 70/84

P r S t r i n g ( h e a d i n g , s t r i n g ) c h a r * h e » d i n 8 , * s t r i n g -c h a r ' n e w s t r i n g , * m a l l o c ( ) ;

p u t H e a d e r ( h e a d i n g , N U L L ) ;n e u s t r i n g m a l l o c ( s t r l e n ( s t r i n g ) 1 ) • n e w s t r i n g » ' - ' ;s t r c p y ( n e w s t r i n g 1 s t r i n g ) ;C h o i c e T e x t [ 0 ] . I T e x t C U B Y T E * ) n e w s t r i n g ;G e t C h o i c e d ) ;f r e e ( n e w s t r i n g ) ;

• • * * * * « * • * » • • * « » » • • * " s b i o . c " * * • » • • • * * « * • • • * • • • » ♦ • • • • • « •

/ i n c l u d e n o t n e e d e d f o A l t e c u s i n g p r o v i d e d m a k e f i l e * t f i n c l u d e " h e a d e r / s b . h "# d e f i n e C H O I C E U I D T H 2 8 # d e f i n e C H O I C E H E I G H Tt f d e f i n e S P A C I N G# d e f i n e T O P G A D G 3 # d e f i n e P U T T E X T U e x t , x y < : M o v e C r p , ( l o n g ) x , ( l o n f l ) y ) ;

T e x t C r p , t e x t , ( l o n g ) s t r l e n ( t e x t ) ) ;s t r u c t I n t u i t i o n B a s e ' I n t u i t i o n B e s e N U L L ;s t r u c t G f x B a s e * G f x B a s e N U L L ;s t r u c t W i n d o w * O p e n U i n d o w ( ) , * M a i n U i n d o w N U L L ;s t r u c t R a s t P o r t * r p ;e x t e r n i n l e v e l ;A P T R O p e n L i b r a r y O ;s t r u c t I n t u i T e x t C h o i c e T e x t [ M A X G A D G + 1 ] ;s t r u c t G a d g e t C h o i c e G a d g [ M A X G A D G 1 ]

s t r u c t I n t u i T e x t B a c k l T e x t3 , 2 , J A M 2 ,5 , 2 ,N U L L , N U L L , N U L L

s t r u c t

s t r u c t

> s t r u c t

s t r u c t

I n t u i T e x t M o r e l T e x t = 2 3 J A M 2 ,5 , 2 ,N U L L ,( U B Y T E * ) " ( M O R E ) " ,N U L L

G a d g e t B a c k G a d gN U L L ,1 0 - 1 2 , 1 4 0 , 1 2 G A D G H C O M P G R E L B O T T O M ,R E L V E R I F Y ,B O O L G A D G E T ,N U L L , N U L L , S B a c k l T e x t ,N U L L , N U L L ,0 N U L L / g a d g e t I D i s z e r o

G a d g e t M o r e G a d gN U L L ,3 0 0 , - 1 2 , 5 9 1 2 G A D G H C O M P G R E L B O T T O M ,R E L V E R I F Y ,B O O L G A D G E T ,N U L L , N U L L , M o r e l T e x t ,N U L L , N U L L ,M O R E G A D G , N U L L

N e u W i n d o w N U i n d o w0 1 0 M 0 1 8 9 ,■ 1 , " I ,G A D G E T U P

C l O S E U I N D O W ,U I N D O U D E P T H

W I N D O W C L O S EW I N D O W S R A GR M B T R A PA C T I V A T EN O C A R E R E F R E S HS M A R T R E F R E S H ,

S B a c k G a d g ,N U L L ,( U B Y T E * ) " T h e T r a n s a c t o r S t r u c t u r e B r o w s e r 1 . 0 " ,N U L L , N U L L ,0 , 0 , 0 , 0 , / s i z i n g l i m i t s ( n o n - r e s i i a b l e ) * W B E N C H S C R E E N

/ l e f t , t o p , w i d t h , h e i g h t/ u s e s c r e e n c o l o u r s/ I D C H P f l a g s

/ w i n d o w f l a g s

/ * f i r s t g a d g e t i l i s t

S e t u p G a d g (

i n i f o ( * 0 M A X G A D G ; i + + )

C h o i c e T e x t [ i ] . B a c k P e nC h o i c e T e x t [ iC h o i c e T e x t [ iC h o i c e T e x t [ iC h o i c e T e x t [ iC h o i c e T e x t [ iC h o i c e T e x t [ iC h o i c e G a d g [ iC h o i c e G a d g [ iC h o i c e G a d g [ i

. D r a w M o d e. L e f t E d g e. T o p E d g e. I T e x t F o n t. T e x t. N e x t T e x t. L e f t E d g e. T o p E d g e ■ . W i d t h

C h o i c e G a d g [ i ] - H e i g h tC h o i c e G a d g [ i . F l a g sC h o i c e G a d n M ] . A c t i v a t i o n

0 J A M 2 ;0 0 N U L L ;N U L L ;N U L L ;2 0

S P A C I N G ■ >C H O I C E W I D T H ;C H O I C E H E I G H T ;G A D G H C O M P ;R E L V E R I F Y ;

T O P G A D G ;

C h o i c e G a d g [ i ] . G a d g e t T y p e B O O L G A D G E T ;C h o i c e G a d g l i ] . G a d g e t T e x t S C h o i c e T e x t [ i l ;C h o i c e G a d g C i ] . G a d g e t I D 1 / g a d g e t I D s t a r t » *

G e t C h o i c e ( n u m ) i n n u m ;

s t r u c t I n t u i M e s s a g e * G e t M s g ( ) , * m e s s a g e ;U L O N G m s g c l a s s ; / m e s s a g e c l a s s f r o m I D C M P • /A P T R I A d d r ; / • p o i n t e r t g a d g e t f r o m I D C M P • /

R e d i s p l a y ( n u m ) ; / * p u t u p c h o i c e s i w i n d o w * F O R E V E R / • * ♦ m a i n e v e n t l o o p * * * /

W a i t < 1 M a i n W i n d o w - > U s e r P o r t - > m p _ S i g B i t ) ;w h i l e ( m e s s a g e G e t M s g ( M a i n W i n d o w - > U s e r P o r t ) )/ g e t w h a t w e n e e d f r o m t h m e s s a g e p o r t * /

m s g c l a s s m e s s a g e - > C l a s s ;l A d d r m e s s e g e - > I A d d r e s s ;R e p l y M s g ( m e s s a g e ) ; / r e p l y t m e s s a g e r i g h t a w a y * / c h e c k f o g a d g e t s e l e c t e d * i ( m s g c l a s s • G A D G E T U P )

r e t u r n ( ( s t r u c t G a d g e t * ) I A d d r ) - > G a d g e t I D ) / * f i n i s h u p i t h c l o s e g a d g e t i c l i c k e d * e l s e i ( m s g c l a s s C L O S E U I N D O W )

C l o s e O u t O ; / c l e a n u p a n d e x i t * /

p u t H e a d e r t s t r i n g , p t r ) c h a r * s t r i n f l ; A P T R p t r ;/ * p u t t i t l e a n p o i n t e r a t o o s c r e e n

i p t i N U L L , p u t s t r i n g o n l y .*

c h a r b u f l S O ] ;S e t A P e n ( r p , O L ) ;R e c t F i l K r p , 1 L 1 0 L , ( l o n g ) M a i n W i n d o w - > W i d t h - 2 5 , 2 7 L > ;S e t A P e n ( r p , 3 L ) ;i ( p t r )

« p r i n t f ( b u f , " X d : X s ( a d d r e s s K l x ) : » , l e v e l , t t r i n f l , p t r ) ;P U T T E X T ( ■ # ! • ' •H e m b e r T y p e V a l u e ( h e x / d e c i m a l ) " ,

2 0 L , 1 0 2 r p - > T x H e i g h t > ;e l s e

s p r i n t f ( b u f , " X d : X s : « , l e v e l , t t r i n s ) ;P U T T E X U b u f , 2 0 L , 1 0 L r p - > T x H e i g h t ) ;

O p e n S t u f f (

/ o p e n i n t u i t i o n g r a p h i c s l i b r a r i e s a n d w i n d o w • i ( I ( I n t u i t i o n B a s e ( s t r u c t I n t u i t i o n B a s e *

O p e n L i b r a r y ( " i n t u i t i o n . I i b r a r y " O L ) C l o s e O u t O ;

i ( K G f x B a s e ■ = ( s t r u c t G f x B a s e * ) O p e n L i b r a r y ( " g r a p h i c s . i b r a r y " 0 L ) C l o s e O u t O ;

/ n o a t t e m p t t o p e n t h m a i n w i n d o w * i ( K M o i n W i n d o w O p e n U i n d o w ( M w i n d o w ) )

C l o s e O u t O ;r M a i n W i n d o w - > R P o r t ; / r a s t p o r t f o g r a p h i c s r o u t i n e s *

C l o s e O u t (

/ • c l o s e e v e r y t h i n g u b e f o r e e n d i n g • i ( M a i n W i n d o w ) C l o s e W i n d o w ( M a i n W i n d o w ) ;i ( I n t u i t i o n B a s e ) C l o s e L i b r a r y ( I n t u i t i o n B a s e ) ;i ( G f x B a s e ) C l o s e L i b r a r y ( G f x B a s e ) ;e x i t ( 0 ) ; / * e x i t p r o g r a m w m a b d e e p l y n e s t e d ♦

R e d i s p l a y ( n u m ) i n n u m ;/ c l e a r w i n d o w , r e m o v e o l d g a d g e t s , p r e p a r e a n d a d d n e w o n e s * s t r u c t G a d g e t * g a d g ;B O O L M o r e F l a g F A L S E ;i n i c

S e t A P e n ( r p , 0 L ) ; / * r e c t f t l l w i t h b a c k g r o u n d c o l o u r t c l e a r * /R e c t F i l K r p , 1 L ( l o n g ) T O P G A D G , ( l o n g ) M a i n W i n d o w - > W i d t h

( l o n g ) M a i n W i n d o w - > H e i g h t 2 ) i ( n u m M A X G A D G )

n u M A X G A D G ;M o r e F l a g T R U E ; / * p u t u p " m o r e " g a d g e t *

/ r e m o v e a l c h o i c e g a d g e t s * g a d g S B a c k G a d g ;w h i l e ( g a d g g a d g - > N e x t G a d g e t )

R e m o v e G a d g e U M a i n W i n d o w , g a d g ) ;/ r e n d e r g a d g e t s a c c o r d i n g t s i n g l e - d i g i t c o d e a

t h e s t a r t o t h g a d g e t s ' s i n t u i t e x t * f o ( i 0 n u m ; i + + )

C h o i c e T e x t [ i ] . F r o n t P e n 1 i ( ( c = * C h o i c e T e x t [ i ] . I T e x t ) ■ = ' • l i ' ( ' ) fi ( • ■ ■ )

• C h o i c e T e x t [ i ] . I T e x t ' C h o i c e T e x t [ i ] . F r o n t P e n 2

P r i n t T e x t ( r p , S C h o i c e T e x t [ i ] ,d o n g ) C h o i c e G a d g [ i ] . L e f t E d g e ,U o n g ) C h o i c e G a d g [ i ] . T o p E d g e ) ;

T h T r a n s a c t o r 6 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 71/84

e l s eA d d G s d g e U M a i n U i n d o w , & C h o i c e G a d g [ i ] , - 1 L ) ;

i ( M o r e F l a g )A d d G a d g e t ( M a i n W i n d o w , i M o r e G a d g , - 1 L ) ;

/ d i s p l a y g a d g e t i m a g e r y ( t h e t e x t ) * R e f r e s h G a d g e t s ( & B a c k G a d g , M a i n W i n d o w , N U L L ) ;

( s f l a g ) i n s f l a g ;

B a c k l T e x t . I T e x t ( U B Y T E * > ( s f l a gP r e v i o u s P a g e P r e v i o u s L e v e l " )

F i l e " s b s c r e e n . c "

" s t r u c t S c r e e n * " " s t r u c t W i n d o w • " " S H O R T " ," S H O R T " ," S H O R T " ," S H O R T " ," S H O R T " ," S H O R T " ," U S H O R T " ," U B Y T E * " " U B Y T E * " " B Y T E " ," B Y T E " ," B Y T E " ," B Y T E " ," B Y T E " ,

5 P T R S I Z E5 P T R S I Z E2 I N T S I Z E2 I N T S I Z E2 I N T S I Z E2 I N T S I Z E2 I N T S I Z E2 I N T S I Z E

1 2 I N T S I Z E4 P T R S I Z E4 P T R S I Z E3 B Y T E S I Z E3 B Y T E S I Z E3 B Y T E S I Z E3 B Y T E S I Z E3 B Y T E S I Z E

} ) } ) ) ) ) ) ) ) ) > > ) J

i n c l u d e n o n e e d e d f o A z t e c u s i n g p r o v i d e d m a k e f i l e • u d e " h e e d e r / s b . h "

i n l e v e l ;c r e e n ( s t r i n g , s c r e e n ) c h a r ' s t r i n g ; s t r u c t S c r e e n " s c r e e n ;

s t r u c t S t r u c t D a t e s t r u c t d a t a [ ] « N e x t S c r e e n " ,F i r s t W i n d o w " ,

" - L e f t E d g e " ," • T o p E d g e " ," - W i d t h " ," - H e i g h t " ," - M o u s e Y " ," - M o u s e X " ,

F l a g s " ,{ T i t l e " ,

D e f a u l t T i t l e "" - B a r H e i g h t " ," - B a r V B o r d e r " ," - B a r H B o r d e r " ," - M e n u V B o r d e r " ," - M e n u H B o r d e r " ,

a t i c c h a r * f l a g n a m e s t B ]" W B E N C H S C R E E N " , " C U S T O M S C R E E N " , N U L L , N U L L ," S H O W T 1 T L E " , " B E E P I N G " , " C U S T O M B I T M A P " , N U L L

i s u m , c h o i c e ■ - 1 ;b i t s ;

l e v e l * * ;w h i l e ( c h o i c e )

s u S e t O p t i o n T e x K s t r i n s , s t r u c t d a t a ,( A P T R ) s c r e e n , O A T A S I Z E , 0 )

s w i t c h ( c h o i c e G e t C h o i c e ( M A X G A D G 1 ) c a s e 1

i ( s c r e e n - > N e x t S c r e e n )P r S c r e e n C ' T h e n e x t s c r e e n i I n t u i t i o n ' s l i s t " ,

s c r e e n - > N e x t S c r e e n ) ;b r e a k ;

c a s e 2 i ( s c r e e n - > F i r s t W i n d o w )

P r W i n d o w C ' T h e s c r e e n ' s f i r s t w i n d o w " , s c r e e n - > F i r s t W i n d o w )b r e a k ;

c a s e 9 i ( ( b i t s s c r e e n - > F l a g s ) 2

b i t s A « 1 F l e g P r i n t C ' T h e S c r e e n ' s F l a g s " , f l e g n e m e s , b i t s ) ;b r e a k ;

c a s e 1 0 P r S t r i n g C ' T h e S c r e e n ' s T i t l e " , s c r e e n - > T i t l e ) ;b r e a k ;

c a s e 1 1 P r S t r i n g C ' T h e S c r e e n ' s D e f a u l t T i t l e " , s c r e e n - > D e f a u l t T i t l e ) ;b r e a k ;

c a s e M O R E G A D G :P r S c r e e n 2 ( " S c r e e n m e m b e r s ( p a g e 2 ) " , s c r e e n , s u m ) ;b r e a k ;

l e v e l - ■ ;

c r e e n 2 ( s t r i n g , s c r e e n , o f f s e t )" s t r i n g ; s t r u c t S c r e e n " s c r e e n ; i n o f f s e t ;

i n i s u n , c h o i c e - 1 l e v e l * * ;w h i l e ( c h o i c e )

s u S e t O p t i o n T e x K s t r i n s , s t r u c t d a t a ,( A P T R ) s c r e e n , O A T A S I Z E , o f f s e t ) -s w i t c h ( c h o i c e O e t C h o i c e ( D A T A S I Z E ) )

c a s e 7 P r R a s t P o r t ( « T h e s c r e e n ' s R a s t P o r t " , * s c r e « n - > R a s t P o r t ) -b r e a k ;

c a s e 8 P r B i t M a p C ' T h e s c r e e n ' s B i t M a p " , » s c r e e n - > B i t M a p ) ;b r e a k ;

c a s e 1 0 i ( s c r e e n - > F i r s t G a d g e t )P r G a d g e t C ' T h e s c r e e n ' s f i r 6 t g a d g e t " , s c r e e n - > F i r s t G a d g e t ) •

b r e a k , -

l e v e l • ■ ;

F i l e " s b w i n d o w . c "/ * i n c l u d e n o t n e e d e d f o A z t e c u s i n g p r o v i d e d m a k e f i l e * # i n c l u d e " h e a d e r / s b . h "e x t e r n i n l e v e l ;

P r W i n d o w ( s t r i n g , w i n d o w ) c h a r " s t r i n g ;s t a t i c s t r u c t S t r u c t D a t a 6 t r u c t d a t a [ ]

s t r u c t W i n d o w " w i n d o w ;

N e x t W i n d o w " , " s t r u c t W i n d o w" - L e f t E d g e " , " S H O R T " ," - T o p E d g e " , " S H O R T " ," - W i d t h " , " S H O R T " ," - H e i g h t " , " S H O R T " ," - M o u s e Y " , " S H O R T " ," - M o u s e X " , " S H O R T " ," - M i n W i d t h " , " S H O R T " ," - M i n H e i g h t " , " S H O R T " ," - M a x W i d t h " , " S H O R T " ," - M a x H e i g h t " , " S H O R T " ,

F l a g s " , " U L O N G " ," ( M e n u S t r i p " , " s t r u c t M e n u

T i t l e " , " U B Y T E • " " ( F i r s t R e q u e s t " , " s t r u c t R e q u e s" ( D M R e q u e s t " , " s t r u c t R e q u e s

s t a t i c c h a r * f l a g n a m e s [ 3 2 ] =

5 P T R S I Z E } 2 I N T S I Z E } 2 I N T S I Z E } 2 I N T S I Z E ) 2 I N T S I Z E } 2 I N T S I Z E ) 2 I N T S I Z E > 2 I N T S I Z E ) 2 I N T S I Z E > 2 I N T S I Z E ) 2 I N T S I Z E )

1 1 P T R S I Z E } ) " 5 P T R S I Z E >

4 P T R S I Z E } t e r • ) " , 5 P T R S I Z E ) t e r * ) " , 5 P T R S I Z E

" W 1 N D O W S I Z I N G " ," S I Z E B R I G H T " ," B A C K D R O P " ," A C T I V A T E " ," R M B T R A P " ,N U L L ," W I N D O W R E F R E S H " ,

' W I N D O W D R A G " ," S I Z E B B O T T O M " ," R E P O R T M O U S E " ," W I N D O U A C T I V E " ," N O C A R E R E F R E S H " ,N U L L ," W B E N C H U I N D O W " ,

" W I N D O w D E P T H " ," S I M P L E _ R E F R E S H "" G 1 M M E Z E R O Z E R O " ," I N R E Q U E S T " ,N U L L ,N U L L ," W I N D O W T I C K E D "

" W I N D O W C L O S E " ," O T H E R R E F R E S H "" B O R D E R L E S S " ," M E N U S T A T E " ,N U L L ,N U L L ,

i n i s u m , c h o i c e ■ - 1 ;U L O N G b i t s ;

l e v e l * * ;w h i l e ( c h o i c e )

s u S e t O p t i o n T e x t ( s t r i n g , s t r u c t d a t a ,( A P T R ) w i n d o w , D A T A S I Z E , 0 )

s w i t c h ( c h o i c e = G e t C h o i c e ( M A X G A D G D c a s e 1

i ( w i n d o w - > N e x t W i n d o w )P r W i n d o w C ' T h e n e x t w i n d o w i I n t u i t i o n ' s l i s t "

w i n d o w - > N e x t U i n d o w ) ; :b r e a k ;

c a s e 1 2 b i t s w i n d o w - > F l e g s - S U P E R U N U S E D ;s w i t c h ( ( b i t s & R E F R E S H B I T S ) 6

c a s e 0 f l a g n a m e s [ 6 ] " S M A R T R E F R E S H " ;b i t s | 0 x 4 0 ;b r e a k ;

s t r u c t S t r u c t D a t a s t r u c t d a t a C ■ " - W B o r T o p " ," - W B o r L e f t " ," - W B o r R i g h t " ," - W B o r B o t t o m " ," ( F o n t " ," ( V i e w p o r t " ,

R a s t P o r t " ,C B i t M a p " ,

" ( L a y e r l n f o " ,{ F i r s t G a d g e t " ,

" - D e t a i l P e n " ," - B l o c k P e n " ," - S a v e C o l o r O " ," ( B a r L a y e r " ," ( E x t D a t a " ," ( U s e r D a t a " ,

" B Y T E " ," B Y T E " ," B Y T E " ," B Y T E " ," s t r u c t T e x t A t t r * ) " ," s t r u c t V i e w p o r t ) " ," s t r u c t R a s t P o r t " " s t r u c t B i t M a p " ," s t r u c t L a y e r I n f o ) " ," s t r u c t G a d g e t * " " U B Y T E " ," U B Y T E " ," U S H O R T " ," s t r u c t L a y e r * ) " ," U B Y T E * ) " ," U 8 Y T E • ) " ,

3 B Y T E S I Z E > 3 B Y T E S I Z E > 3 B Y T E S I Z E > 3 I N T S I Z E > 5 P T R S I Z E > 0 S Z ( V i e w P o r t ) > 0 S Z ( R a 8 t P o r t ) } 0 S Z ( B i t M a p ) } 0 S Z U e y e r I n f o ) > ,5 P T R S I Z E )

1 3 B Y T E S I Z E > 1 3 B Y T E S I Z E ) 1 2 I N T S I Z E >

5 P T R S I Z E ) 5 P T R S I Z E > 5 P T R S I Z E

c a s e 1 f l a g n a m e s [ 6 ]b r e a k ;

c a s e 2 l a g n a m e s [ 7 ]

b r e a k ;c a s e 3

l a g n a f l i e s [ 7 ]b i t s " 0 x 4 0 ;b r e a k ;

" S I M P L E R E F R E S H "

" S U P E R _ B 1 T M A P " ;

" O T H E R R E F R E S H "

F l a g P r i n t C ' F l a g s s e i t h i s w i n d o w " , f l a g n a m e s , b i t s ) ;b r e a k ;

c a s e 1 4 P r S t r i n g C ' T h e W i n d o w ' s T i t l e " , w i n d o w - > T i t l e ) ;

b r e a k ;c a s e M O R E G A D G :

P r W i n d o w 2 ( " W i n d o w m e m b e r s ( p a g e 2 ) " , w i n d o w , s u n ) ;b r e a k ;

l e v e l - - ;

r a n s a c t o r M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 72/84

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 73/84

l e v e l

b i t s ( b i t s & O x f f O O ) ( ( ( ( b i t s O x f O ) 4 F l e g P r i n t C ' G a d g e t t y p e f l a g s s e f o r t h i s g a d g e t 1 1 ,

s y s t y p e n a m e s , ( U L O N G ) b i t s ) ;

e l s eb i t s ( b i t s O x f f O O ) ( ( ( b i t s O x O f ) 1 > > ;F l e g P r i n t C ' G a d g e t t y p e f l a g s s e t f o r t h i s g a d g e t 1 1 ,

a p p l i t y p e n a n e s , ( U L O N G ) b i t s ) ;

b r e a k ;

P r R a s t P o r t 2 C M o r e R a s t P o r t m e m b e r s " , r a s t p o r t , s u n ) ;b r e a k ;

* * * * * * * * * * * * * * * * * * * * F i l e " s b g f x . c " * * * * * * * * * * * * * * * * * * * * * * * * * *

/ i n c l u d e n o t n e e d e d f o A z t e c u s i n g p r o v i d e d m a k e f i l e * # i n c l u d e " h e a d e r / s b . h "e x t e r n i n t l e v e l ;

P r B i t M a p ( s t r i n g , b i t m a p ) c h a r " s t r i n g ; s t r u c t B i t M a p * b i t « a p ;s t a t i c s t r u c t S t r u c t D a t a s t r u c t d a t e H *

[ " - B y t e s P e r R o w " ,{ " • R o w s " ,{ " • F l a g s " ,{ " ■ D e p t h " ,{ " • P a d " ,{ P l a n e s [ 8 ] " ,

" U W O R D " ," U W O R D " ," U B Y T E " ," U B Y T E " ," U W O R D " ," P L A N E P T R 1

1 2 1 2 1 3 1 3 1 2

5

I N T S I Z EI N T S I Z EB Y T E S I Z EB Y T E S I Z EI N T S I Z EP T R S I Z E * 8 )

i n i s u m , c h o i c e « - 1 ;e v I + + ;

w h i l e ( c h o i c e )s u S e t O p t i o n T e x t ( s t r i n g , s t r u c t d a t e ,

( A P T R ) b i t m a p , D A T A S I Z E , 0 ) i ( ( c h o i c e G e t C h o i c e ( D A T A S I Z E ) ) ■ • 6 )

P r P l a n e s C ' B i t P l a n e s b e l o n g t o t h e B i t M a p " , b i t m a p - > P l a n e s ,b i t m a p - > R o w s , b f t m a p - > B y t e s P e r R o w ) ;

l e v e l - - :

P r P l a n e s ( s t r i n g , p l a n e s , r o w s , b y t e s )c h a r ' s t r i n g ; P L A N E P T R p l a n e s ! ] ; U W O R D r o w s , b y t e s ;s t a t i c s t r u c t S t r u c t D a t a s t r u c t d a t a t ]

(

C C < C <

B i t P l a n e [ 0 ] "B i t P l a n e [ 1 ] "B i t P l a n e [ 2 ] "B i t P l a n e [ 3 ] "B i t P l a n e K l "B i t P l a n e [ 5 ] "B i t P l a n e [ 6 ] "B i t P l a n e [ 7 ] "

" P L A N E P T R "" P L A N E P T R "" P L A N E P T R "" P L A N E P T R "" P L A N E P T R "" P L A N E P T R "" P L A N E P T R "" P L A N E P T R "

5 P T R S I Z E5 P T R S I Z E5 P T R S I Z E5 P T R S I Z E5 P T R S I Z E5 P T R S I Z E5 P T R S I Z E5 P T R S I Z E

i n i s u m , c h o i c e - 1 l e v e l + + ;w h i l e ( c h o i c e )

s u S e t O p t i o n T e x t C s t r i n g , s t r u c t d a t a ,( A P T R ) p l a n e s , D A T A S I Z E , 0 )

c h o i c e G e t C h o i c e ( 8 ) ;i ( c h o i c e > & c h o i c e p l a n e s t c h o i c e 1 ]

H e x D L m p ( s t r u c t d a t a [ c h o i c e 1 ] . m e m b e r n a m e ,p l a n e s [ c h o i c e 1 ] P T R S I Z E , ( l o n g ) ( r o w s b y t e s ) ) ;

l e v e l • • ;

l e v e l -

P r R a s t P o r t 2 ( s t r i n g , r a s t p o r t , o f f s e t )c h a r ' s t r i n g ; s t r u c t R a s t P o r t ' r a s t p o r t ; i n o f f s e t ;

s t a t i c s t r u c t S t r u c t D a t a s t r u c t d a t a M{ " - c p _ x " , " S H O R T " ,

{ m i n t e r m s [ 8 ] " ,{ " • P e n U i d t h " ,{ " - P e n H e i g h t " ,{ " ( T e x t F o n t " ,{ " - A l g o S t y l e " ,{ " ( T x F l a g s " ,{ " - T x H e i g h t " ,{ " • T x W i d t h " ,( " • T x B a s e l i n e " ,{ " • T x S p a c i n g " ,{ " • R P J J s e r " ,{ w o r d r e s e r v e d [ 7 ] '{ l o n g r e s e r v e d [ 2 ] '{ r e s e r v e d [ 8 ] " .

" S H O R T " ," U B Y T E " ," S H O R T " ," S H O R T " ," s t r u c t F o n t * ) "" U B Y T E " ," U B Y T E ) 1 1 ," U W O R D " ," U W O R D " ," U W O R D " ," W O R D " ," W O R D " ," U W O R D " ," U L O N G " ," U B Y T E " ,

2 I N T S I Z E > 2 I N T S I Z E ) 0 B Y T E S I Z E 8 ) 2 I N T S I Z E } 2 I N T S I Z E > 5 P T R S I Z E )

1 3 B Y T E S I Z E > 1 3 B Y T E S I Z E > 1 2 I N T S I Z E > 1 2 I N T S I Z E } 1 2 I N T S I Z E }

2 I N T S I Z E > 2 I N T S I Z E > 0 I N T S I Z E } 0 P T R S I Z E * } 0 B Y T E S I Z E 8

i n i s u m , c h o i c e - 1 l e v e l * * ;w h i l e ( c h o i c e )

s u S e t O p t i o n T e x U s t r i n g , s t r u c t d s t a ,( A P T R ) r a s t p o r t , D A T A S I Z E , o f f s e t ) ;

s w i t c h ( c h o i c e G e t C h o i c e ( D A T A S I Z E ) )c a s e 3

H e x D u m p C ' H e x d u m p o R a s t P o r t m i n t e r m s b y t e s " ,S r a s t p o r t - > i j i i n t e r m s [ 0 ] , B Y T E S I Z E , ( l o n g ) B Y T E S I Z E • 8 ) ;

b r e a k ;c a s e H

H e x D u m p ( " H e x d u m p o r e s e r v e d R a s t P o r t w o r d s " ,t r a s t p o r t - > w o r d r e s e r v e d [ 0 ] , I N T S I Z E , ( l o n g ) I N T S I Z E * 7 ) ;

b r e a k ;c a s e 1 5

H e x 0 u m p ( " H e x d u m p o r e s e r v e d R a s t P o r t l o n g w o r d s " ,« r a s t p o r t - > l o n g r e s e r v e d [ 0 ] , P T R S I Z E , ( l o n g ) P T R S I Z E 2 )

b r e a k ;c a s e 1 6

H e x D u m p C ' H e x d u m p o r e s e r v e d R a s t P o r t b y t e s " ,& r a s t p o r t - > r e s e r v e d [ 0 ] , B Y T E S I Z E , ( l o n g ) B Y T E S I Z E 8 )

b r e a k ;

l e v e l - - ;

f o A z t e c m a k e u t i l i t y * • • • ♦ * • * • • • • •

# t h i s m a k e f i l e u s e s p r e - c o m p i l e d h e a d e r f i l e t s p e e d u pc o m p i l e s b y a v o i d i n g r e d u n d a n t c o m p i l a t i o n o i n t u i t i o n . h

O B J S s b . o s b w i n d o w . o s b s c r e e n . o s b g f x . o s b g a d g e t . o s b i o . os t ( O B J S )

I - K O B J S ) - I

P r R a s t P o r t ( s t r i n g , r a s t p o r t ) c h a r * s t r i n g

s t a t i c s t r u c t S t r u c t D a t a s t r u c t d a t a [ ]s t r u c t R a s t P o r t * r a s t p o r t ;

s y m b o l s . p h e a d e r / s b . hc ♦ H s y m b o l s . p h e a d e r / s b . h

S ( O B J S ) s y m b o l s . pc + I 6 y m b o l s . p * * . c

{ " ( L a y e r " ,{ B i t M a p " ,{ " ■ A r e a P t r n " ,{ " ( T m p R a s " ,{ " ( A r e a l n f o " ,{ " ( G e l s l n f o " ,{ " - M a s k " ,{ " - F g P e n " ,{ " ■ B g P e n " ,{ " • A O l P e n " ,{ " - D r a w M o d e " ,{ " ■ A r e a P t S z " ,{ " ■ l i n p a t c n t " ,{ " - d u m y " ,{ " ( F l a g s " ,{ " ■ L i n e P t r n " ,

" s t r u c t L a y e r * > " s t r u c t B i t M a p * " U S H O R T * " " s t r u c t T m p R a s * " s t r u c t A r e a l n f o" s t r u c t G e l s l n f o" U B Y T E " ," B Y T E" B Y T E "" B Y T E " ," B Y T E "" B Y T E "" B Y T E " ," B Y T E "" U S H O R T ) " ," U S H O R T " ,

- 1

> } } > } )

5 P T R S I Z E5 P T R S I Z E5 P T R S I Z E5 P T R S I Z E5 P T R S I Z E5 P T R S I Z E

I S B Y T E S I Z E } J B Y T E S I Z E > 3 B Y T E S I Z E > 3 B Y T E S I Z E > 3 B Y T E S I Z E ) 3 B Y T E S I Z E } 3 B Y T E S I Z E > 3 B Y T E S I Z E } 1 2 I N T S I Z E > 1 2 I N T S I Z E

i n i s u m , c h o i c el e v e l + + ;

w h i l e ( c h o i c e )s u S e t O p t i o n T e x U s t r i n g , s t r u c t d a t a ,

( A P T R ) r a s t p o r t , D A T A S I Z E , 0 ) s w i t c h ( c h o i c e C e t C h o i c e ( M A X G A O G 1 )

c a s e 2 i ( r a s t p o r t - > B l t M a p )

P r B i t M a p C ' T h e B i t M a p f o r t h e R a s t P o r t " , r a s t p o r t - > B i t M a p ) ;b r e a k ;

c a s e N O R E G A D G :

T r a n s a c t o r 7 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 74/84

A m i g a F i l e S t r u c t u r eS e c o n d L o o k

B e t t y C l a yA r l i n g t o n , T e x a s

M o s t r e a d e r s o T r a n s a c t o r a r e f a m i l i a r w i t h t h e l a y o u t o t h d i s k e t t e s f o r m a t t e d o a l o t h C o m m o d o r e d r i v e s p r i o r t t h A m i g a . W h a v e s t u d i e d t h e b o o k s b D i c k I m m e r s a n G e r r yN e u f e l d , r e a d t h e a r t i c l e s b y M i k e T o d d o I C P U G , a n w h a v el e a r n e d a b o u t h e a d e r g a p s , t a i l g a p s , a n G C R . W k n o w t h a t t h d i r e c t o r y i o t r a c k 1 ( o 3 o t h 8 0 5 0 / 8 2 5 0 ) , t h a t t h n u m b e ro s e c t o r s i n c r e a s e s a t h h e a d m o v e s o u t t h e d g e o t h d i s k ,a n t h a t t h 4 0 4 0 , 2 0 3 1 , 1 5 4 1 , a n d 8 0 5 0 d r i v e s w r i t e o t h b o t t o m o t h d i s k o n l y . M o s t o u a r a d e p t a u s i n g t r a c k a n s e c t o r e d i t o r s o t h o s e d r i v e s . T h i s k n o w l e d g e c a h e l p u s o t h A m i g a , b u t t h e s e d i s k e t t e s a r e o r g a n i z e d i v e r y d i f f e r e n t w a y .

P H Y S I C A L L A Y O U T

T h A m i g a d i s k e t t e s a r e l a i d o u i t r a c k s a n s e c t o r s , b u e a c hs i d e o t h e d i s k h a t r a c k s n u m b e r e d f r o m z e r o t h r o u g h s e v e n t y -n i n e . E a c h o t h e s e t r a c k s ( 1 6 0 i a l l ) h a s e l e v e n s e c t o r s . T w s i m i l a r l y n u m b e r e d t r a c k s f r o m o p p o s i t e s i d e s o t h d i s k m a k ec y l i n d e r w i t h t o t a l o t w e n t y - t w o s e c t o r s . T h e s e s e c t o r s a r n u m b e r e d s e q u e n t i a l l y f r o m z e r o t h r o u g h 1 7 5 9 , a n t h s e c t o rn u m b e r i s t o r e d w i t h i n t h s e c t o r . T h c y l i n d e r s a r e n u m b e r e df r o m t h e o u t s i d e i n T h a t i s c y l i n d e r z e r o i t h o u t e r m o s t , a n c y l i n d e r 7 i n e a r e s t t h c e n t e r . T h s e c t o r s b e g i n a c y l i n d e r 0 s e c t o r 0 s u r f a c e ( t h e t o s i d e ) .

T h d r i v e s h a v e t w o h e a d s t h a t m o v e i u n i s o n , b u t t h e y c a b a d d r e s s e d i n d i v i d u a l l y . H e a d z e r o i o t h u p p e r s i d e o t h d i s k ,a n d h e a d n u m b e r o n i b e l o w . T h h e a d s a r m o v e d t t h d e s i r e d t r a c k w i t h a S E E K c o m m a n d , a n t h e n t i r e t r a c k i r e a d i w i t h a C M D _ R E A D o a n E T D _ R E A D c o m m a n d . T h e s e , a n o t h e r c o m m a n d s , a r u s e d b t h e t r a c k - d i s k d e v i c e t c o n t r o l t h ed r i v e s . T h e r e a r p r o g r a m s a v a i l a b l e t c o n t r o l t h d r i v e s f o p r o g r a m m e r s a n f o a s s e m b l y l a n g u a g e p r o g r a m m e r s , b u h a v en o f o u n d w a t m a k e t h e n e c e s s a r y . b m a p f i l e s t c o n t r o l t h e mf r o m B A S I C .

T h d a t a i w r i t t e n i M F ( M o d i f i e d F r e q u e n c y M o d u l a t i o n )f o r m a t , a n i e n c o d e d o d e c o d e d i t h b l i t t e r c h i p . I i p o s s i b l et s e t h d r i v e t w r i t e i G C R , b u t h i s m o d e r e a d s o r w r i t e s a h a l ft h s p e e d o M F M . S o m e o n e w i l l p r o b a b l y f i n d w a t u s t h i sm o d e s t h a t w c a r e a d t h e n o r m a l C o m m o d o r e d i s k s w i t h t h A m i g a , a n d w a r e n o t l i k e l y t o c o m p l a i n a b o u t s p e e d i t h i s a b i l i t yb e c o m e s p o s s i b l e .

L O G I C A L L A Y O U T

E a c h o t h e l e v e n s e c t o r s o a t r a c k h a s e c t o r - h e a d e r o 1 b y t e s , p l u s 1 b y t e s t h a t a r r e s e r v e d f o f u t u r e u s e , a n 5 1 b y t e so ' u s a b l e d a t a ' , s o u 8 8 0 K d i s k e t t e s a l s o c o n t a i n 5 5 o l a b e ld a t a , m a k i n g t o t a l o a l e a s t 9 3 5 K b y t e s p e d i s k ( t h e r e i h i n t o 2 8 m o r e ) . T h e r e a r n h e a d e r g a p s o t a i l g a p s , b u e a c h t r a c kh a o n g a m a d e u o f n u l l s . S i n c e e a c h t r a c k h a t h s a m en u m b e r o s e c t o r s , o n w o u l d a s s u m e t h a t t h g a o n u l l s g r o w sl o n g e r t o w a r d t h e o u t e r e d g e o t h d i s k .

T h h e a d e r o l a b e l a r e a h a t h s a m e p a t t e r n f o a l s e c t o r s , b u t h 5 1 b y t e s o d a t a a r o r g a n i z e d d i f f e r e n t l y a c c o r d i n g t t h e t y p eo b l o c k . I a d a t a f i l e , t h e r e a r 2 b y t e s o f i d e n t i f i c a t i o n a t h b e g i n n i n g o t h s e c t o r , f o l l o w e d b 4 8 b y t e s o a c t u a l d a t a .d i r e c t o r y b l o c k o r a f i l e h e a d e r b l o c k h a 2 b y t e s ( s i x l o n g - w o r d s )f o s e c t o r n u m b e r , f i l e t y p e , c h e c k s u m , e t c . , a t h b e g i n n i n g o t h b l o c k , 2 8 b y t e s o h a s h - t a b l e o r d a t a , a n f i f t y l o n g - w o r d s f o t h f i l e n a m e , c o m m e n t , d a t e , f o r w a r d a n d b a c k w a r d p o i n t e r s , e t c . , a tt h e n o t h b l o c k .

O a A m i g a d i s k , s o m e i n f o r m a t i o n i c o d e d i 8 - b i t b y t e s , s o m ei 1 6 - b i t w o r d s , a n s o m e i 3 2 - b i t l o n g - w o r d s . ' b y t e ' s t i l lm e a n s b i t s , b u w m u s t d i s t i n g u i s h b e t w e e n ' w o r d s ' a n ' l o n g -w o r d s . ' I t h d i a g r a m b e l o w , a l o t h ' w o r d s ' a r e a c t u a l l y 3 2 - b i tl o n g - w o r d s .

D I A G R A M O F B L O C K L A Y O U TF o a n t y p e o s e c t o r :

L a b e l a r e a : b y t e s o 0 b y t e s o A ( s y n c b y t e i M F M )b y t e o f o r m a t t y p e ( F F o 1 . 0 )b y t e o t r a c k n u m b e rb y t e o s e c t o r n u m b e ro f f s e t b y t e M O R E A B O U T T H I S B E L O W !

1 6 b y t e s o o p e r a t i n g s y s t e m r e c o v e r y i n f o ( n o t c u r e n t l y u s e d )

b y t e s o h e a d e r c h e c k s u mb y t e s o d a t a - a r e a c h e c k s u m

F o d a t a b l o c k , s u c h a s s e q u e n t i a l f i l e :

D a t a A r e a : w o r d o f i l e t y p ew o r d f o h e a d e r k e ( s e c t o r w h e r e f i l e b e g i n s )w o r d f o t h s e q u e n c e n u m b e r o t h i s b l o c kw o r d f o n u m b e r o b y t e s o d a t a i t h e b l o c kw o r d f o t h n u m b e r o t h e n e x t b l o c k i f i l ew o r d f o t h c h e c k s u m

u t 4 8 b y t e s o d a t a

O f o r o o t d i r e c t o r y b l o c k :

D a t a A r e a : w o r d o f i l e t y p ew o r d o s e c t o r n u m b e rw o r d o f i l e l e n g t hw o r d o h a s h - t a b l e s i z ew o r d n o u s e d

7 w o r d s o h a s h - t a b l ew o r d o b i m a f l a g

2 w o r d s o b i t m a p p a g e s ( i n s t e a d o B A M )w o r d s o d a t e a n t i m e l a s t a l t e r e d

1 w o r d s o d i s k n a m ew o r d s o d a t e a n t i m e o d i s k c r e a t i o nw o r d s o f o r w a r d a n d b a c k w a r d p o i n t e r sw o r d o s e c o n d a r y f i l e t y p e

T h T r a n s a c t o r 7 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 75/84

s o f t w a r e i w r i t t e n t a l l o w f o s e c t o r s o d i f f e r e n t l e n g t h i f u t u r e v e r s i o n s . I n s t e a d o p o i n t i n g t a p a r t i c u l a r w o r d , t h

i n f o r m a t i o n i t h l a s t f i f t y w o r d s a r a c c e s s e d w i t hi z e n ' w h e r e ' n i t h n u m b e r o l o n g w o r d s b e f o r e t h e

o t h s e c t o r .

T H D I S K

t h S E E K c o m m a n d i g i v e n , t h h e a d s m o v e i u n i s o n t d e s i g n a t e d t r a c k . U p o n r e c e i v i n g t h e R E A D c o m m a n d , t h r e a d c o n t i n u o u s l y f o t w f u l l r o t a t i o n s o f t h d i s k , b r i n g i n g

t h c o n t e n t s o a e n t i r e c y l i n d e r . E l e v e n s e c t o r s f r o m o n s i d et h e d i s k a r e r e a d i n t o o n b u f f e r , a n t h e l e v e n f r o m t h o t h e r

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

t h b e g i n n i n g o s e c t o r ! T h e y j u s t r e a d i t h e d a t a f r o mp a r t o t h t r a c k i u n d e r t h h e a d w h e n t h R E A D

T h d a t a i d e c o d e d b t h b l i t t e r a n t h d e c o d e d b y t e sp l a c e d i t h t r a c k b u f f e r a s t h e y c a m e f r o m t h d i s k . I i t h i s

o r e a d i n g t h a t m a k e s t h o f f s e t b y t e o t h l a b e l a r e a s o

O F F S E T N U M B E R

v e r y f i r s t t i m e t r a c k i w r i t t e n t t h d i s k , i w i l l b w r i t t e ng a o n u l l b y t e s , a n t h e n t h e l e v e n s e c t o r s i n u m e r i c a lI t h t r a c k b u f f e r , t h i s f i r s t w r i t e w o u l d h a v e t h i s f o r m :

S e c t o r N o . 0 1 2 3 4 5 6 7 8 9 1 n u l l sO f f s e t N o 1 1 9 8 7 6 5 4 3 2 . . . .

i w o u l d b e n c o d e d f o t h e d i s k i t h e e x a c t o r d e r i h a i t h T h o f f s e t n u m b e r t e l l s t h d a t a p o i n t e r h o m a n y m o r em u s t b r e a d o r w r i t t e n b e f o r e i r e a c h e s t h g a o f n u l l s .

t h i s s e c t o r i r e a d b a c k , h o w e v e r , t h h e a d s a r e n o t l i k e l y t or e a d i n g a t h e g a p , n o a s e c t o r 0 S u p p o s e t h a t s e c t o r 7 w e r e

t h h e a d a t h b e g i n n i n g o t h R E A D . T h e n t h e t r a c kw o u l d b l i k e t h i s :

P a r t o s e c t o r G u n k ) a n t h e n :S e c t o r N o . 8 9 1 n u l l s 1 O f f s e t N o 3 1 1

( m o r e j u n k )7 6 5 4

i t h t r a c k b u f f e r , t h e p o i n t e r w i l l f i n d t h f i r s t s y n c m a r kb l o c k m o v e t h d a t a i s e c t o r s 8 , 9 , a n 1 0 s o t h a t s e c t o r e i g h t

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

u t j o i n t h f i r s t o n e s , l e a v i n g t h e n u l l s a t h e n o t h W h e n s e c t o r i n e e d e d f o u s e , t h s o f t w a r e s o r t s t h r o u g h

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

t r a c k . I t h e d a t a h a b e e n c h a n g e d , t h c u r r e n t t r a c k w i l lw r i t t e n b a c k t t h e d i s k b e f o r e t h e n e x t t r a c k i r e a d i n

o u h y p o t h e t i c a l t r a c k i w r i t t e n b a c k t t h d i s k , t h s e c t o r si n t h e i r o r i g i n a l n u m b e r s , b u t n o t t h e o r i g i n a l p o s i t i o n . S n o s e c t o r o f f s e t s w i l l b c h a n g e d t a g r e e w i t h t h n e o r d e r o t h

S e c t o r N o 9 1 0 1 2 3 4 5 6 7O f f s e t N o 1 1 9 8 7 6 5 4 3 2 n u l l s

E a c h t i m e t h e t r a c k i r e - w r i t t e n , t h s e c t o r o f f s e t s w i l l b c h a n g e d , a n t h c o m p u t e r u s e s t h o f f s e t n u m b e r s t f i n d t h c o r r e c t s e c t o r . T h i s m e t h o d o w r i t i n g t h s e c t o r s t t h t r a c k , a n t h p r a c t i c e o r e a d i n g a e n t i r e t r a c k e a c h t i m e , r e m o v e s t h n e e df o i n t e r l e a v i n g a n h e a d e r - o t a i l - g a p s , a l l o w i n g a b o u t t w e n t yp e r c e n t m o r e i n f o r m a t i o n t b p u o t h d i s k . B r e a d i n g a e n t i r e t r a c k s e q u e n t i a l l y , d i s k a c c e s s i m u c h f a s t e r a n m o r ee f f i c i e n t .

M F E N C O D I N G

W h e n d a t a i e n c o d e d i M F M , a e x t r a d i g i t i p l a c e d i f r o n t o e a c h b i t e n s u r e t h a t t h e r e w i l l n e v e r b e t w o T s i a r o w , n o m o r e t h a n f o u r z e r o s i a r o w . I M F M , ' 1 b i b e c o m e s ' 0 1 ' . ' 0 b i w i l l b e n c o d e d a ' 0 0 ' i f i t f o l l o w s a ' 1 b i t , b u a ' 1 0 ' i i f o l l o w s

' 0 b i t . T h u s , f o e v e r y b i o d a t a t b r e c o r d e d , t w b i t s a r a c t u a l l y w r i t t e n . T h e A m i g a s o f t w a r e , u s i n g t h b l i t t e r c h i p f o e n c o d i n g a n d e c o d i n g , s e p a r a t e s t h e o d b i t s f r o m t h e v e n b i t s .F i r s t t h o d b i t s a r e n c o d e d a n d w r i t t e n o u t ; t h e n t h e v e n b i t sa r e s h i f t e d l e f t o n p o s i t i o n , e n c o d e d , a n w r i t t e n b e h i n d t h o d b i t s o t h d i s k . W h e n t h d a t a i r e a d b a c k , t h e b l i t t e r c h i pr e m o v e s t h e e x t r a l e a d i n g z e r o s a n o n e s t h a t w e r e a d d e d f o e n c o d i n g , l e a v i n g ' h o l e s ' b e t w e e n t h o d b i t s f o r t h e v e n b i t s t f a l l i n t o .

T h e n c o d i n g p r o c e s s f o t h s e c t o r l a b e l s i i n t e r e s t i n g . T h f i r s tf o u r b y t e s o t h l a b e l a r e n c o d e d a s e p a r a t e b y t e s — f i r s t t h e o d b i t s , t h e n t h e v e n b i t s o f e a c h b y t e . T h e n t h n e x t f o u r ( t h ef o r m a t , t r a c k n u m b e r , s e c t o r n u m b e r , a n d o f f s e t ) a r e n c o d e d a o n l o n g - w o r d . T h 1 b y t e s o o p e r a t i n g s y s t e m r e c o v e r y i n f o rm a t i o n a r e n c o d e d a a b l o c k o 1 b y t e s . T h h e a d e r c h e c k s u ma n t h d a t a - a r e a c h e c k s u m a r e a c h e n c o d e d a o n l o n g - w o r d .T h 5 1 b y t e s o t h d a t a - b l o c k a r e n c o d e d a s i n g l e b l o c k o d a t a — t h e o d d b i t s o a l 5 1 b y t e s , a n t h e n t h e v e n b i t s .

B I O M A T H E M A T I C S

D i s k s a r t i m e d t r o t a t e a 3 0 r e v o l u t i o n s p e r m i n u t e . F o G C e n c o d i n g , t h A m i g a w r i t e s a r a t e o f o u r m i c r o s e c o n d s p e b i t .I M F M , i r e q u i r e s o n l y t w m i c r o s e c o n d s p e b i t . A 3 0 r e v o l ut i o n s p e m i n u t e , t h e r e w o u l d b f i v e r e v o l u t i o n s p e r s e c o n d , o t w h u n d r e d m i l l i s e c o n d s p e r e v o l u t i o n . T w m i c r o s e c o n d s p e b i p e r m i t s t h e w r i t i n g o 1 0 0 , 0 0 0 b i t s p e r e v o l u t i o n . I t a k e s t w M F b i t s f o e a c h a c t u a l d a t a b i t , t h o u g h , a l l o w i n g m a x i m u m o 5 0 , 0 0 0 d a t a b i t s p e t r a c k . W h a v e 1 6 0 t r a c k s , m a k i n g 8 , 0 0 0 , 0 0 0p o s s i b l e d a t a b i t s , o 1 , 0 0 0 , 0 0 0 b y t e s p e d i s k . W h a v e a c c o u n t e df o 9 5 7 , 4 4 0 b y t e s ( 9 3 5 1 0 2 4 ) , e x c l u d i n g t h g a p s o n u l l s . I s n ' tt h i s r e m a r k a b l e e f f i c i e n c y ?

A N D A M Y S T E R Y

T h e r e i m y s t e r y a b o u t t h s e c t o r l a b e l s . T h R O K E R N A LM A N U A L s a y s t h a t t h e r e i 1 6 - b y t e s e c t i o n o d e s c r i p t i v e d a t a f o e a c h s e c t o r , t o t a l o 2 7 . 5 K b y t e s . T h d r i v e , i s a y s , d o e s n o i n t e r p r e t t h e s e s e c t i o n s u n l e s s t h p r o g r a m m e r h a i n s t r u c t e d i t d s o T h i s c a n n o t b e t h l a b e l a r e a d e s c r i b e d a b o v e , b e c a u s e t h i n f o r m a t i o n i t h a t a r e a m u s t b i n t e r p r e t e d f o n o r m a l d r i v eo p e r a t i o n s . D o e s t h i s r e f e r t t h 1 b y t e s t h e R K s a y s a r c u r r e n t l y u n u s e d , b u a r t b e u s e d f o o p e r a t i n g s y s t e m r e c o v e r yi n f o r m a t i o n ? O i t h e r e a n o t h e r d e s c r i p t i v e l a b e l a r e a ? H a v e Y O f o u n d t h a n s w e r t o t h i s m y s t e r y ?

T r a n s a c t o r 7 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 76/84

A m i g a D i s p a t c h e sb T i m G r a n t h a m , T o r o n t o , O n t a r i o

" A n d o n t h e t h i r d q u a r t e r , C o m m o d o r e a r o s e . "

d o n ' t k n o w a b o u t y o b u g o b i k i c k o u t o t h f o u r t h a n n u a l W o r l d o C o m m o d o r e s h o w , h e l d a t h I n t e r n a t i o n a l C e n t r e i T o r o n t o d u r i n g t h f i r s t w e e k o D e c e m b e r . A f t e r a y e a r o b e i n g k e p t o t h e d g e o o u s e a t s ,i w a v e r y s a t i s f y i n g t a c t u a l l y s e e t h e S i d e c a r , t h G e n l o c k a n D O 1 . w o r k i n g a n d u f o s a l e . T r u e , S i d e c a r c o s t a b o u t $ 4 0 0 t o m u c h ( m e a n ,r e a l l y , y o u c a n g e C o m m o d o r e P 1 0 I I f o $ 1 0 0 0 a n t h a t c o m e s w i t hk e y b o a r d ) , a n t h G e n l o c k w a s n ' t q u i t e r e a d y f o s a l e , b u t t h e s e w e r em i n o r f l i e s i t h s o u p . W i t h p l e n t y o e x h i b i t o r s , v e n d o r s a n v i s i t o r s , t h w h o l e s h o w p o s i t i v e l y r a d i a t e d o p t i m i s m a n d g o o d t i m e s r e t u r n e d f o C o m m o d o r e .

I w a a l s o c h a n c e f o m t m e e t t h f a c e s a t t a c h e d t t h h a n d l e s - i y o s p e n d a n t i m e o t h i n f o r m a t i o n n e t w o r k s y o k n o w w h a t m e a nb t h a t . ' H a z y ' D a v e H a y n i e ( a u t h o r o D i s k s a l v ) , J o h n F o u s t ( e d i t o r o fA m a z i n g C o m p u t i n g ) , L a r r y P h i l l i p s ( s y s o p o t h A m i g a f o r u m o n T h S o u r c e ) f r o m V a n c o u v e r , a n B r i a n N i e s s e n a n W a y n e S c h m i d t ( a s s i s t a n ts y s o p s o t h C o m m o d o r e F o r u m s o C o m p u S e r v e ) , D a v e P a u l . . . i w a p l e a s u r e t a c t u a l l y m e e t t h e m a l f a c e t f a c e a n d e x c h a n g e n e w s a n v i e w s . T h p r e s s w a t h e r e i f o r c e t h T r a n s a c t o r , o c o u r s e , r e p r es e n t e d b y t h u s u a l g a n g o i d i o t s ; R u a n A m i g a W o r l d , f r o n t e d b p u b l i s h e r S t e v e n T w o m b l y a n e d i t o r G u W r i g h t ; H e n r y S h i l l i n g a n L i n d a B y r k e t S h i l l i n g o A m P r o j e c t ; a n C h r i s W i l l e y o A m i T a l k .

O t h e r p e r s o n a g e s p r e s e n t i n c l u d e d J i B u t t e r f i e l d , P a u l H i g g i n b o t t o m( a u t h o r o L P W r i t e r ) , V l a d i m i r S c h n e i d e r ( a u t h o r o P r o f e s s i o n a lT e x t E n g i n e ) a n d B o b H o o v e r o M i m e t i c s ( a u t h o r o S o u n d S c a p e ) .

A l t h m a j o r A m i g a s o f t w a r e c o m p a n i e s w e r e t h e r e , w i t h t h e x c e p t i o n o t h g a m e c o m p a n i e s . ( W i t h t h m o n e y E l e c t r o n i c A r t s i m a k i n g o n t h A m i g a I ' n o t s u r p r i s e d t h e y d i d n ' t f e e l t h n e e d t s h o w u p t h o u g h t h e yh a v e b e e n t h e r e i t h p a s t . ) T h e n u m b e r o m a j o r v e n d o r s m a d e f o s o m eh e a l t h y c o m p e t i t i o n : b s h o w ' s e n d , 5 1 2 K A m i g a w i t h 1 0 8 0 c o l o u rm o n i t o r c o u l d b h a f o $ 1 6 5 0 ( C d n . ) . A n w h e v e r t h o u g h t C o m p u t e r -l a n d w o u l d a c t u a l l y e x h i b i t a l o w l y C o m m o d o r e s h o w ? ( s h o u l d n ' ts n e e r . C o m p u t e r l a n d h a d o n e f a i r l y w e l l w i t h t h A m i g a , a n e v e n b e t t e rw i t h t h P 1 I I T h e y ' l l b e s p e c i a l l y h a p p y n o t h a t C o m m o d o r e i c o m i n g o u w i t h a A c o m p a t i b l e . )

W h a t f o l l o w s i n o i a n p a r t i c u l a r o r d e r ; n o i i n e c e s s a r i l y a b a l a n c e dv i e w o t h A m i g a p r o d u c t s e x h i b i t e d o n o t h e n i c e t h i n g s a b o u t t h s h o w w a t h a t t h e r e w a s m u c h t s e e , I ' m n o t s u r e s a i a l l . M a p o l o g i e s t a n y o n e I ' v e l e f t o u t .

V e r y V i v i d W i t h o u t a d o u b t , t h e h i o t h s h o w . T h i s p r o d u c tr e c e i v e d i t p r e m i e r e a t h W o r l d o C o m m o d o r e s h o w , a s p a r t o t h " C r i c k e t s " m u l t i m e d i a p e r f o r m a n c e a n b l e w e v e r y o n e a w a y . I t ' s n o e a s yt d e s c r i b e b u t r y t o i m a g i n e t h f o l l o w i n g : d a n c e r s t a n d s i f r o n t o v i d e o c a m e r a , d r e s s e d i w h i t e . O t h A m i g a ' s s c r e e n , a n d o n t h e o t h e rm o n i t o r s a r o u n d t h s t a g e , w s e h i i m a g e i s i l h o u e t t e , m o v i n g o b a c k g r o u n d g r a p h i c g e n e r a t e d b t h A m i g a , v e r s i o n o L e o n a r d o d V i n c i ' s f a m o u s s k e t c h o m u l t i l i m b e d m a s t a n d i n g i n s i d e c i r c l e . T h p e r f o r m e r r e a c h e s o u t . H i d i g i t i z e d i m a g e o t h A m i g a s c r e e n r e a c h e so u a n h i h a n d t o u c h e s a s m a l l c i r c l e . S i m u l t a n e o u s l y , a s y n t h e s i z e rc o n n e c t e d v i M I D I t t h A m i g a p l a y s t h f i r s t n o t e o t h o p e n i n g f a n f a r ef r o m A l s o S p r a c h Z a r a t h u s t r a . T h p e r f o r m e r , o r a t h e r h i i m a g e ,t o u c h e s o t h e r s m a l l c i r c l e s a b o v e h i h e a d o t h s c r e e n . E a c h t i m e , t h c i r c l e s p u l s e a n p r o d u c e t h n o t e s o t h f a n f a r e , d i f f e r e n t n o t e , a n s o m e t i m e s d i f f e r e n t t i m b r e , b e i n g t r i g g e r e d o t h e s y n t h e s i z e r b e a c hc i r c l e . A t h f a n f a r e e n d s , h r e a c h e s u a n t o u c h e s y e a n o t h e r c i r c l ea n t h b a c k g r o u n d s w i t c h e s t s t r a n g e l a n d s c a p e . T h t w m u s i c i a n sa c c o m p a n y i n g h i s t a r t p l a y i n g .

I w w e r e t l o o k a t h p e r f o r m e r i f r o n t o f t h c a m e r a , w w o u l d s e h u m a n a g a i n s t a p l a i n b a c k d r o p m a k i n g o d d g e s t i c u l a t i o n s i n t o t h i n a i r .B u o u e y e s a r g l u e d t t h e m o n i t o r s , a w w a t c h h i j a w i t h t h m u s i c i a n s , q u i c k l y t o u c h i n g t h i s A m i g a o b j e c t f o r t h i s s o u n d , a n a n o t h e ro b j e c t f o t h a t o n e . W w a t c h a h i i m a g e g r a s p s o n c o l o u r e d c i r c l e a n p a i n t s t h s c r e e n w i t h i t t h e n a n o t h e r , a n a n o t h e r , u n t i l h s t a n d s a m i dc o i l s o c o l o u r s . I o n q u i e t l y a m a z i n g s e q u e n c e , t w c o l o u r e d s p h e r e sa t t a c h t h e m s e l v e s t h i a r m s , a n s t i c k t h e r e , l o l l i n g b a c k a n f o r t h a h w a v e s h i a r m s . T h e n , h e s n a p s h i a r m s , a n t h s p h e r e s d e t a c h , c h a n g ei n t o b i r d s , a n f l o f i o p p o s i t e d i r e c t i o n s .

A n s i w e n t , e f f e c t a f t e r d a z z l i n g e f f e c t , b e a u t i f u l l y c o n c e i v e d a n p r o f e s s i o n a l l y p e r f o r m e d , f o s o l i d 2 m i n u t e s . T h a p p l a u s e w a t u m u l t u o u s a n t h e r e w e r e s h o u t s o ' B r a v o ! ' . s a i t h r e e t i m e s .

T h p o t e n t i a l f o r t h i s k i n d o p r o d u c t i m i n d b o g g l i n g n o j u s t f o p e r f o r m a n c e a p p l i c a t i o n s b u f o p r o d u c t i o n h o u s e s , e d u c a t i o n a l p r og r a m s , t h e r a p e u t i c p r o g r a m s a n d l e t ' s g e t s e r i o u s , h e r e - g a m e s ! F o t h f i r s t t i m e , y o u , o r v e r y r e a s o n a b l e f a c s i m i l e t h e r e o f , w i l l b a b l e t a c t u a l l y e n t e r g a m e . A n y o t h o u g h t T r o n w a i d l e f a n t a s y .

S o u n d S c a p e , b M i m e t i c s . T h i s m a r v e l o u s M I D I s e q u e n c e r w a u s e dt c o n t r o l n o o n l y t h e s y n t h e s i z e r s i t h e " C r i c k e t s " p e r f o r m a n c e b u t t h el i g h t s a n v i d e o s e q u e n c e s a w e l l . E l e c t r o n i c A r t s h a a p p a r e n t l y w r i t t e nm o d u l e f o S o u n d S c a p e t h a t w i l l l e t h e i r D e l u x e M u s i c C o n s t r u c t i o nS e p r i n t S o u n d S c a p e f i l e s . S o u n d S c a p e h a a l t h e s i g n s o b e c o m i n gt h M I D I m u s i c s o f t w a r e f o t h A m i g a .

D r a w P l u s a n d S o n i x - A e g i s D e v e l o p m e n t w e r e r u n n i n g t h e i r C A s o f t w a r e o p a c k a g e d s y s t e m t h e y a r c o - m a r k e t i n g w i t h R o l a n d a n C o m m o d o r e : 5 1 2 K A m i g a , 1 0 8 0 c o l o u r m o n i t o r , a n D X 8 8 o 9 8 p l o t t e r . I ' v e s i n c e h a c l o s e r l o o k a D r a w P l u s : i t ' s i m p r e s s i v e s o f t w a r et h a t c o m e s w i t h g o o d d o c u m e n t a t i o n a n p l e n t y o e x a m p l e d r a w i n g s a n p a r t s l i b r a r i e s . H o w e v e r , a n d e s i g n e n g i n e e r a n r e a l l y h a v e n o t h i n gt c o m p a r e i t o S o n i x i t h e r e i n c a r n a t i o n o M u s i c r a f t w i t h M I D Ic a p a b i l i t y a n I F c o m p a t i b i l i t y a d d e d .

P a g e S e t t e r a n P u b l i s h e r C o m m o d o r e i n o t o u t i n g d e s k t o pp u b l i s h i n g p r o g r a m s l i k e t h e s e t w o , p u b l i s h e d b G o l d D i s k a n B r o w n -W a g h , r e s p e c t i v e l y , a t h a p p l i c a t i o n t h a t w i l l m a k e t h A m i g a t a k e o f f .W h i l e t h e s e p r o g r a m s c e r t a i n l y g w e l l b e y o n d P r i n t S h o p , t h e y m u s t b

T h T r a n s a c t o r 7 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 77/84

b e f o r e t h e y c a c o m p e t e w i t h t h l i k e s o P a g e M a k e r : G o l dd o e s n o a p p e a r t h a v e k e r n i n g , f o e x a m p l e ( p r o c e s s o a d j u s t i n g

s p a c e b e t w e e n l e t t e r s d e p e n d i n g o n t h e i r s h a p e ) , a n n e i t h e r h a c a p a b i l i t y , t h o u g h b o t h c l a i m t h a t s u c h w i l l s o o n b a v a i l a b l e .

M a c i n t o s h w i l l a l w a y s h a v e l e a d i t h i s f i e l d : a H e n r y S h i l l i n g o e c t m a g a z i n e r e m i n d e d u i T P U G p a n e l d i s c u s s i o n o t h

o t h A m i g a , t h p i x e l s i z e o t h M a c ' s s c r e e n i e x a c t l y 1 / 7 2 " , o ' p o i n t ' i n t y p s e t t i n g j a r g o n i o t h e r w o r d s , i w a d e s i g n e d f r o m t h

u f o p u b l i s h i n g a p p l i c a t i o n s .

S y s t e m M o n i t o r T h i s n i f t y u t i l i t y i p u o u b s m a l l A m e r i c a n f i r mZ e S o f t w a r e . I m a j u s t b t h p r o d u c t t h a t w i l l l e J i B u t t e r f i e l d

y f i n d o u w h a t t h h e l l i g o i n g o i t h A m i g a K e r n e l . A m o n g o t h e ri l e t s y o a s s i g n a m o n i t o r w i n d o w t a n t a s k a n t r a c k i t c u r r e n t

r e s o u r c e a l l o c a t i o n , a n C P u s a g e .

P r o f e s s i o n a l T e x t E n g i n e f r o m Z i r k o n i c s o M o n t r e a l . I y o e v e ry o u r f a v o u r i t e t e x t e d i t o r h a c o m m a n d s t o s a y , r e v e r s e t h o r d e r

a d j a c e n t c h a r a c t e r s o r a s s i g n c u s t o m f o r m a t c o m m a n d s t o ' h o t ' k e y s ,p r o g r a m m a b l e t e x t e d i t o r i t h a n s w e r . N o o n l y i t h k e y b o a r d f u l l y

u s i n g s i m p l e m a c r o l a n g u a g e , e v e n t h d r o p - d o w na n t h a c t i o n o t h m o u s e b u t t o n s c a n b e c u s t o m i z e d . T h

o f i l e s t h a t c a n b e o p e n a o n c e i l i m i t e d o n l y b t h m e m o r ye . Y o c a c u a n p a s t e f r e e l y b e t w e e n a n y f i l e . C o n f i g u r a t i o n f i l e s

a l l o w P T t a c l i k e o t h e r e d i t o r s , s u c h a W o r d s t a r , a r a v a i l a b l e . B u f u i p r o g r a m m i n g i f o a l t h e f e a t u r e s y o c o u l d n ' t h a v e b e f o r e .

g o o d , f o $ 1 5 0 ( C d n . ) .

D O S - 2 - D O S - T h i s i u t i l i t y t h a t p r o v i d e s t r a n s l a t i o n b e t w e e na n M S - D O S , s t r i p p i n g h i g h b i t s i n e c e s s a r y , a n t a k i n g c a r e

t h e l i n e f e e d / c a r r i a g e r e t u r n c o m b i n a t i o n s . T h s o f t w a r e c a a l s o f o r m a tk i n d s o f d i s k s , a n s e a r c h t h r o u g h s u b - d i r e c t o r i e s . W h e n p o i n t e d

t t h s a l e s w o m a n t h a t s u c h u t i l i t i e s a r p r o v i d e d i A m i g a D O S 1 . 2 ,s t a r t e d t s q u i r m , b u p o i n t e d o u t h a t D O S - 2 - D O S p e r m i t s u s o

d s t h a t c a n b e u s e d t a u t o m a t e t h e p r o c e s s t s o m e e x t e n t .

K e t a n o t h e r p r o d u c t w o r t h y o n o t e ( g r i n ) . T h i s i l i b r a r y o fw r i t t e n i f o p r o g r a m m e r s t h a t c l o s e l y a p p r o x i m a t e B A S I C

a n f u n c t i o n s .

s o f t w a r e a t h s h o w : P r V i d e o C G I - 1 , f r o m J D I m a g e s , v i d e og e n e r a t o r ; B . E . S . T . b u s i n e s s m a n a g e m e n t a n a c c o u n t i n g p r

f r o m B u s i n e s s E l e c t r o n i c s S o f t w a r e T e c h n o l o g y ; M i A m i g a F i l e I m a n a g e m e n t s o f t w a r e , M i A m i g a W o r d w o r d p r o c e s s o r , M i A m i g a

g e n e r a l l e d g e r , a l f r o m S o f t W o o d C o m p a n y ; J e t S e t , u t i l i t i e s a n f o t h e H e w l e t t - P a c k a r d L a s e r J e t + l a s e r p r i n t e r , f r o m L t d . ; O r d e r

o r g a n i z e r f r o m N o r t h e a s t S o f t w a r e G r o u p ; D a t a m a t p r o g r a md a t a b a s e s o f t w a r e , f r o m T r a n s t i m e T e c h n o l o g i e s C o r p , b e i n g m a

i C a n a d a b C r e a t i v e S y s t e m s ; L P P l a n n e r a n L P W r i t e r ,e e t a n w o r d p r o c e s s i n g s o f t w a r e f r o m D i g i t a l S o l u t i o n s ; Z i n g ! ,

n C L 1 , f r o m M e r i d i a n S o f t w a r e ; P r o W r i t e m u l t i p l e - f o n tp r o c e s s o r , f r o m N e H o r i z o n s S o f t w a r e ; v e r s i o n o S u p e r k i t f o

A m i g a f r o m P r i s m S o f t w a r e ; a n S u p e r b a s e a n L o g i s t i x p r o g r a md a t a b a s e a n i n t e g r a t e d s p r e a d s h e e t , f r o m P r o g r e s s i v e P e r i p h e r a l s .

w a p a r t i c u l a r l y e n c o u r a g i n g a b o u t t h p r o d u c t s s h o w n a t h s h o wn o s m u c h w h a t t h e y d i d , b u w h a t t h e y m a d e p o s s i b l e . S o u n d -

V e r y V i v i d , P T a n o t h e r s a r m a r v e l o u s b e c a u s e t h e y h a v ed e s i g n e d i t h s p i r i t o t h m a c h i n e o p e n - e n d e d , s m o o t h l y

p r o v i d i n g t h u s e r w i t h t h m o s t f l e x i b l e t o o l s p o s s i b l e f o e n d e a v o u r s .

t h h a r d w a r e . . .

A m i g a S i d e c a r C o m p l e t e a n d f o s a l e . E v e r y t h i n g w o r k s a p r o mi n c l u d i n g t h e a b i l i t y t o s t i c k m e g s o R A i t h e S i d e c a r f o u s e b y

A m i g a .

G e n l o c k D i t t o , a l m o s t , i s h o u l d b e f o s a l e b t h t i m e y o r e a d t h i s .( k n o w , k n o w , I ' v e s a i d t h a t b e f o r e . )

D i g i V i e w T i J e n i s o n , t h d e v e l o p e r , w a a t h s h o w a n d e m o ns t r a t e d t h i m p r o v e m e n t s : c l e a n e r i m a g e s , m o t o r i z e d f i l t e r w h e e l , a n e d i t i n g f u n c t i o n s i m p r e s s i v e p r o d u c t .

B o t h X e t e c a n L t d . w e r e s e l l i n g S C S I i n t e r f a c e s a n 2 M e h a r d - d r i v e s f o t h A m i g a f o $ 1 0 0 0 ( U S ) . B o t h p e r m i t t e d d a i s y -c h a i n i n g o f u r t h e r S C S I d e v i c e s a n b o t h c a m e w i t h A m i g a d r i v e rs o f t w a r e . A w i t h t h M i c r o f o r g e a n T e c m a r u n i t s , t h X e t e c c o n t r o l l e rs u s p e n d s o p e r a t i o n o a l o t h e r t a s k s o t h A m i g a d u r i n g r e a d s a n w r i t e s ; a s s u m e t h i s i a l s o t r u e o t h L t d . p r o d u c t .

L t d . w a a l s o s e l l i n g t h e i r a M E G A m e g a b y t e m e m o r y e x p a n s i o nu n i t s f o t h A m i g a . T h e y w e r e j o i n e d b y C o m s p e c ' s A X 2 0 0 0 m e g a b y t eb o a r d , a n R D a t a S y s t e m s ' P o w * r * c a r d , w h i c h c a a t t a c h u t t h f u l l

m e g a b y t e s o R A M . T h i s l a s t i a i m p o s i n g u n i t w h i c h o f f e r s l o o m e m o r y a v e r y r e a s o n a b l e c o s t . H o w e v e r , i i n o t a u t o - c o n f i g u r i n g : i h a t b a d d e d b c a l l i n g ' a d d m e m ' i t h s t a r t u p - s e q u e n c e .

f e o t h e s e m e m o r y e x p a n s i o n u n i t s ( s u c h a t h A S D G I n c . R A b o a r d , S i d e E f f e c t s ' s S i d e - S t o r e , a n t h e M i c r o b o t i c s u n i t ) c o m e w i t hv i r t u a l d i s k c a p a b i l i t y . T h i s w o r k s j u s t l i k e t h R A M : d i s k b u i c a b w r i t ep r o t e c t e d . T h i s m e a n s t h a t s h o u l d y o u r A m i g a c r a s h w h i l e t e s t i n g o u y o u rl a t e s t t i c - t a c - t o e g a m e , s a y , y o c a r e b o o t a n t h f i l e s i t h v i r t u a l d i s kw i l l s t i l l b i n t a c t y o u r s o u r c e a n i n c l u d e f i l e s w o u l d n ' t n e e d a n yr e l o a d i n g . . . t r e m e n d o u s c o n v e n i e n c e .

P e r f e c t S o u n d , f r o m S u n R i z e I n d u s t r i e s , i s t e r e o s o u n d d i g i t i z e r f o rt h A m i g a t h a t c o m e s w i t h v e r y g o o d s o u n d s a m p l e e d i t i n g s o f t w a r e . I i c u r r e n t l y t h o n l y s t e r e o d i g i t i z e r a n s e l l s f o t h e x t r e m e l y r e a s o n a b l ep r i c e o $ 7 9 . 9 5 ( U S ) .

I ' l l f i n i s h t h i s i n s t a l l m e n t o A - w i t h s o m e n e w s a b o u t e x p a n s i o nh a r d w a r e t h a t w a u n a b l e t p u i n t o t h l a s t c o l u m n . w a h o p i n g t s e t h i s s t u f f a t t h W O b u l i t t l e o i w a s h o w n . N e v e r t h e l e s s , i i v e r yh e a r t e n i n g t s e e t h e b r o a d v a r i e t y o p r o d u c t s a v a i l a b l e . T h e r e a r e x p a n s i o n b o x e s l i k e t h P A u n i t f r o m B y t e - b y - B y t e , t h T u r b oA m i g a f r o m C S A , a n d t h S i d e - A r m f r o m S i d e - E f f e c t s - t h e y c o m e i a l s h a p e s a n s i z e s b u m o s t o f f e r a l e a s t t w s l o t s f o 1 0 0 - p i n Z o r r os t a n d a r d o p t i o n b o a r d s . Y o c a f i l l t h e m w i t h R A b o a r d s , S C S I i n t e rf a c e s a n h a r d d r i v e s , D M h a r d d r i v e s , c o p r o c e s s o r b o a r d s , t a p e b a c k u pd r i v e s t h l i s t g o e s o n a n d o n

O n c o m p a n y i p a r t i c u l a r d r e w m a t t e n t i o n w i t h t h e i r E t h e r n e t a n A R C N E T i n t e r f a c e s . A m e r i s t a r T e c h n o l o g i e s a l s o s u p p l i e s a v e r s i o n o S u M i c r o s y s t e m s ' s N e t w o r k F i l e S y s t e m ( N F S ) w i t h t h E t h e r n e ti n t e r f a c e t h a t e n a b l e s t h e A m i g a t o a c t a a g r a p h i c s w o r k s t a t i o n o n e t w o r k w i t h S u w o r k s t a t i o n s a n o t h e r c o m p u t e r s u s i n g a i m p l e m e nt a t i o n o N F S . E a c h i n t e r f a c e i a v a i l a b l e i e i t h e r b u o b a c k p l a n ev e r s i o n ( 8 6 - p i n o 1 0 0 - p i n ) . T h e s e c a p a b i l i t i e s , c o m b i n e d w i t h t h c o p r oc e s s o r b o a r d s f r o m C S a n o t h e r s , a r m a k i n g t h A m i g a s e r i o u se n g i n e e r i n g w o r k s t a t i o n c o m p u t e r .

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

F i n a l l y , m a p o l o g i e s t a n o y o w h h a v e s e n t m m a i l o C o m p uS e r v e o P e o p l e L i n k . w a w i t h o u t m o d e m f o o v e r m o n t h a n w a u n a b l e t r e s p o n d . A f t e r s u f f e r i n g a c u t e w i t h d r a w a l s y m p t o m s , h a v em a n a g e d t o b t a i n a n o t h e r , s i y o u h a v e a n y q u e s t i o n s o r c o m m e n t s , y o uc a r e a c h m a C I 7 1 4 2 6 , 1 6 4 6 o P e o p l e L i n k A M T A G . U n t i l n e x t t i m e ,m a y o u r m o u s e n e v e r s q u e a k .

T r a n s a c t o r 7 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 78/84

C o m p u - t o o n s

U / M 6 f M A / / - H A S S A V £ D Z J 4 S 0 O , 0 O o ie > u T , w / - o s t - $ 7 5 0 , 6 0 0 f o h o & e i n &t / j s £ T H e e x c u s e T « c h e c k / i N r n

W e ' r e

j ' S o K R V f & 0 T > 1 £ f t Y O Y o n R A \ O H P A V S , M S . T H o M h

E > U T C A / V T / V A / P ' I V '

O t \ U H T k H P E C K £ > o & ' s a a c t i e s r i o f i T o T o r n t h o f f i c g R A p f f ? K s s w a s n ' t R e c e i v e ?

T h T r a n s a c t o r 7 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 79/84

B R N E W S B R P r e s s R e l e a s e s

u h a v e a p r e s s r e l e a s e y o u w o u l d l 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 ,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

n 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 s f o e a c h i s s u e , a n w h o s e i n t e n d e d r 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 o t h

b i n . I s h o u l d a l s o b e 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 t r e l e a s e sa 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 . N e w s o e v e n t s

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

N e w st o r C u r r e n c y S t a n d a r d D e c r e e d

l o n g d a s w e a t i n g i t h e T r a n s a c t o r A b b r e v i a t i o n s L a b o r a t o r y ( T A L ) , o u h a v e c o m e u w i t h a n e c o n v e n t i o n t h a t w i l l b O f f i c i a l T r a n s a c t o r

( O T P ) f r o m n o o n T h r e s t o t h w o r l d i i n v i t e d t f o l l o w s u i t . W i t h o u tt o t e c h n i c a l , t h i d e a i t h i s : p r i c e s f o o u m a i l o r d e r p r o d u c t s ( M O P s )

f o p r o d u c t s l i s t e d h e r e i N e w s B R K , w i l l h e n c e f o r t h b g i v e n i o n o f o r m s : $ x ( C d n ) f o C a n a d i a n p r i c e s , $ x ( U S ) f o U p r i c e s , a n $ x x ( U S /

w h e n t h s p e c i f i e d a m o u n t i t b p a i d i C a n a d i a n d o l l a r s b C a n a d i a n s ,U d o l l a r s b A m e r i c a n s . F o a e x a m p l e o t h n e U S / C a b b r e v i a t i o n i

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

i p t i o n I n t e r s e c t i o n S e

c l o s e r i n s p e c t i o n w h a v e f o u n d t h o v e r l a p o T P U G m e m b e r s a n s u b s c r i b e r s t b a b o u t 1 0 0 0 , n o t 4 0 a p r e v i o u s l y r e p o r t e d . D u r i n g

f i r s t c o m p a r i s o n , m a n y w e n t u n d e t e c t e d d u t d i f f e r e n c e s b e t w e e n t h t w l i s t d a t a b a s e s . I s e e m s t h a t a c o m p u t e r j u s t c a n ' t t e l l i t w n a m e s a r t h w h e n m i d d l e i n i t i a l i i n c l u d e d i o n b u n o t t h e o t h e r . T c o m p e n s a t e ,

w a w r i t t e n t h a t b o r d e r e d o a r t i f i c i a l i n t e l l i g e n c e . H o w e v e r , i t ' s s t i l lt h a t s o m e m a t c h e s w e r e m i s s e d , e s p e c i a l l y i t h p o s t a l / z i p c o d e w a

e r e n t i n t h t w d a t a b a s e s . S o i y o u ' r e T P U G m e m b e r A N T r a n s a c t o re r , a n y o u ' r e s t i l l g e t t i n g t w i s s u e s , p l e a s e l e u k n o w a n t h t w w i l l

c o m b i n e d .

s u b s c r i p t i o n s h a a l s o p r o v e d t b e a n e x e r c i s e i m i n d b e n d i n g . W h o p e d t h a v e u p d a t e d t h e e x p i r y d a t e f o a l t h c o m b i n e d s u b s c r i p t i o n s b i s s u e . H o w e v e r , o n l y t h o s e T P U G m e m b e r s w h o s e m e m b e r s h i p s w o u l d

e x p i r e d b e f o r e r e c e i v i n g t h i s i s s u e h a v e h a t h e i r e x p i r y d a t e s e x t e n d e d .r e m a i n i n g T P U G / T r a n s a c t o r c o m b i n a t i o n s w i l l h a v e t h e i r e x p i r y d a t e s

a t e d b y n e x t i s s u e .

y o u r l a s t m a g a z i n e . I t h e e x p i r y d a t e s h o w s " D e c 8 6 o " J a n 8 7 " , t h e ne x p i r y d a t e s h o u l d n o b e x t e n d e d b " t h e n u m b e r o i s s u e s r e m a i n i n g i

T r a n s a c t o r s u b s c r i p t i o n , t i m e s t w m o n t h s " . W h e n t h i s d a t e a c t u a l l yy o s h o u l d h a v e r e c e i v e d t h s a m e n u m b e r o m a g a z i n e s s h o w n i t h

p u b l i s h e d i N e w s B R l a s t i s s u e .

t h i s p o i n t y o u ' l l r e c e i v e a r e n e w a l n o t i c e . T h n o t i c e w i l l c o m e f r o m T P U Gt h c o m b i n a t i o n i d o n e b y m e r g i n g t h t w i n t o t h T P U G d a t a b a s e .

l y y o s h o u l d r e n e w t o n O t h o t h e r . R e n e w i n g t b o t h w i l l m e a nl l s t a r t g e t t i n g t w m a g a z i n e s a l o v e r a g a i n , a n a f t e r w g e t h i s s i t u a t i o n

o u t , w e ' d l i k e i t t b e l i m i n a t e d f o g o o d . T h f a c t i s w c o u l d m a k eo u t a t h i s . S o a f t e r a l t h e e x i s t i n g o v e r l a p p i n g m e m b e r s h i p s /

h a v e b e e n c o m b i n e d a n e x t e n d e d , a n y a n d a l n e o n e s w i l l g e m a g a z i n e s ; o n w i t h a i n s e r t f r o m T P U G , a n a n o t h e r w i t h o u t a i n s e r t

u s T h i s a p p l i e s m a i n l y t t h o s e w h a r e c u r r e n t l y T r a n s a c t o r s u b s c r i b e r sa r n o T P U G m e m b e r s , b u t c o n s i d e r i n g b e c o m i n g o n e .

I y o u ' r e r e n e w i n g s u b s c r i p t i o n , o r s u b s c r i b i n g f o t h f i r s t t i m e , y o u ' l l h a v e t h c h o i c e o g e t t i n g t h e r e g u l a r m a g a z i n e ( n T P U G i n s e r t ) o b e c o m i n g / r e m a i n i n gT P U G m e m b e r , a n g e t t i n g t h 8 - p a g e T P U G i n s e r t a p a r t o y o u r T r a n s a c t o r .I y o w a n t j u s t t h e T r a n s a c t o r , u s t h i n s e r t c a r d i t h m a g a z i n e t s u b s c r i b e /r e n e w . I y o w a n t t h i n s e r t a w e l l , s e n d y o u r T P U G r e n e w a l f o r m t T P U G( t h e y ' l l s e n d i t y o b e f o r e y o u r c u r r e n t m e m b e r s h i p e x p i r e s ) o r i y o u ' r e n o c u r r e n t l y m e m b e r , c o n t a c t t h e m a b o u t b e c o m i n g o n e . T h c u r r e n t c o s t o T P U G ' a s s o c i a t e ' m e m b e r s h i p i $ 2 5 . 0 0 ( U S / C ) . F o r t h a t y o g e t h i n s e r t p l u sa c c e s s t T P U G ' s l a r g e p u b l i c d o m a i n d i s k l i b r a r y , n e i t h e r o w h i c h c o m e s w i t ht h $ 1 5 . 0 0 ( U S / C ) s u b s c r i p t i o n t t h e T r a n s a c t o r .

D i s k S u b s c r i p t i o n N o t e s

M a n y o t h o s e w h f a l l i n t o t h i n t e r s e c t i o n s e d e s c r i b e d a b o v e a l s o h a v eT r a n s a c t o r D i s k s u b s c r i p t i o n s . T h e s e w i l l s t i l l b e h a n d l e d b y u s a n w h e n t h e ye x p i r e , a n o t i c e w i l l b s e n t . S o m e h a v e p o i n t e d o u t t h a t , " w w o u l d f i n d i m u s he a s i e r t r e n e w t b o t h i t h e y w e r e t b o t h e x p i r e a t h s a m e t i m e . N o t h a t o u m e m b e r s h i p s / s u b s c r i p t i o n s h a v e b e e n c o m b i n e d , t h m a g a z i n e s e n a o n i s s u e a n t h d i s k s a a n o t h e r " . G o o d p o i n t . W h a t w s u g g e s t i t h i s : w h e n y o r e n e w y o u r d i s k s u b s c r i p t i o n , a d $ 7 . 5 0 ( U S / C ) f o e v e r y d i s k n e c e s s a r y t m a k e y o u r d i s k a n m a g a z i n e s u b s c r i p t i o n s c o n c u r r e n t .

T o r o n t o C o m p u S e r v e N o d e

T h d i r e c t d i a l p o r t t C o m p u S e r v e i T o r o n t o i 7 5 2 - 4 1 5 0 . T h i s n u m b e r h a b e e n i e f f e c t s i n c e S e p t e m b e r ' 8 6 . H o w e v e r , t h C o m p u S e r v e I n t r o - P a k s t h a tw e r e b o u n d i n t o t h G i z m o s a n d G a d g e t s i s s u e ( r e l e a s e d O c t . 1 s t i l l s h o w t h e o l dn u m b e r . I y o h a v e n ' t u s e d y o u r I n t r o - P a k y e t , p l e a s e m a k e n o t e i t h l i s t a t h b a c k o t h b o o k l e t .

F r e e T r a n s a c t o r T ' w i t h M a g + D i s k S u b s c r i p t i o n

S u b s c r i b e o r r e n e w t c o m b i n a t i o n m a g a z i n e a n d i s k s u b s c r i p t i o n , a n w e ' l ls e n d y o f r e e T r a n s a c t o r T - S h i r t ! Y o s a v e 2 9 o f t h m a g a z i n e s , 1 6 o f t h d i s k s , a n g e T r a n s a c t o r w o r t h 1 3 . 9 5 ( 1 7 . 9 5 i y o o r d e r t h e j u m b o s i z e ! )T h T - S h i r t s c o m e i s i z e s ( r e d o n l y ) , w i t h a 3 - c o l o r s c r e e n f e a t u r i n g D u k e , o u m a s c o t , d r e s s e d i s n a p p y w h i t e t u x , s t a n d i n g b e h i n d t h T r a n s a c t o r l o g o d o n ei y e l l o w w i t h b l a c k " 3 - D " b o r d e r s . T h s c r e e n w a d o n e u s i n g s p e c i a l " s u p e r -o p a q u i n g " p r o c e s s t h a t c o s t u q u i t e b i m o r e t h a n t h o s e d e c a l s t h a t c r a c k a n f a d e . M i n e h a b e e n t h r o u g h t h w a s h a l e a s t 2 t i m e s n o w , a n i s t i l l s h o w sv i r t u a l l y n s i g n o w e a r d u e t " w a s h i n g m a c h i n e p u n i s h m e n t " .

S u b s c r i b e r M a i l O r d e r s

I y o u ' r e T r a n s a c t o r s u b s c r i b e r , a n y o u ' r e u s i n g t h p o s t a g e p a i d o r d e r c a r d t p u r c h a s e i t e m s o t h e r t h a n a s u b s c r i p t i o n , p l e a s e w r i t e y o u r s u b s c r i b e r n u m b e ro t h c a r d . T h i s w a y o u r o r d e r i r e c o r d e d a l o n g w i t h y o u r s u b s c r i p t i o ni n f o r m a t i o n i o u d a t a b a s e .

C u s t o m s / D u t y o H a r d w a r e P r o d u c t s

S h i p p i n g h a r d w a r e t t h U f r o m C a n a d a o f t e n i n c u r s c u s t o m s a n d / o r d u t yc h a r g e s a t h d e s t i n a t i o n . S o m e o o u s u p p l i e r s a r i t h U a n f o U o r d e r sp r o c e s s e d b u s w h a v e t h i t e m s s h i p p e d d i r e c t w i t h o u t b r i n g i n g t h e m i n t oC a n a d a . H o w e v e r , o t h e r h a r d w a r e i t e m s m a n u f a c t u r e d i C a n a d a a n d s e n t t U d e s t i n a t i o n s m a a r r i v e w i t h s u r c h a r g e p a y a b l e . T h T r a n s a c t o r c a n n o t b r e s p o n s i b l e f o t h e s e c h a r g e s . T h i s m a a l s o a d t d e l i v e r y d e l a y s . I y o u ' v ep l a c e d a o r d e r f o r a h a r d w a r e i t e m a n i t s e e m s t b t a k i n g a r a t h e r l o n g t i m et o a r r i v e , i m a b s i t t i n g a y o u r l o c a l c u s t o m s o f f i c e , i n w h i c h c a s e a n o t i c e i p r o b a b l y o i t w a f o y o t c o m e p i c k i u p

T r a n s a c t o r 7 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 80/84

S o l d O u t !

T h T o o l b o x f r o m P r o - L i n e , P A a n P O W E R f o t h 6 4 i n o s o l d o u t .R e f u n d s w i l l b s e n t f o a n o r d e r s b e y o n d w h a t c o u l d b f i l l e d .

V o l u m e 4 I s s u e 0 a n V o l u m e 5 I s s u e 0 ( T h e T r a n s i t i o n t M a c h i n e L a n g u a g ei s s u e ) a r n o o n l y a v a i l a b l e o m i c r o f i c h e .

T r a n s a c t o r M a i l O r d e r

T h f o l l o w i n g d e t a i l s a r f o p r o d u c t s l i s t e d o t h e m a i l o r d e r c a r d . I y o h a v ep a r t i c u l a r q u e s t i o n a b o u t a i t e m t h a t i s n ' t a n s w e r e d h e r e , p l e a s e w r i t e o r c a l l .W e ' l l g e b a c k t y o u a n d m o s t l i k e l y i n c o r p o r a t e t h e a n s w e r i n t o f u t u r e e d i t i o n so t h e s e d e s c r i p t i o n s s t h a t o t h e r s m i g h t b e n e f i t f r o m y o u r e n q u i r y .

M o v i n g P i c t u r e s t h C - 6 4 A n i m a t i o n S y s t e m , $ 2 9 . 9 5 ( U S / C )T h i s p a c k a g e i f a s t , s m o o t h , f u l l - s c r e e n a n i m a t o r f o t h C o m m o d o r e 6 4 w r i t t e n b A H A ! ( A c m e H e u r i s t i c A p p l i c a t i o n s ! ) . W i t h M o v i n g P i c t u r e s y o u s y o u r f a v o u r i t e g r a p h i c s t o o l t d r a w t h f r a m e s o y o u r m o v i e , t h e n s h o w i a f u l la n i m a t i o n s p e e d w i t h s i n g l e c o m m a n d . M o v i e ' s c r i p t s ' w r i t t e n i B A S I C c a u s t h M o v i n g P i c t u r e s c o m m a n d s e t t o p r o v i d e c o m p l e t e c o n t r o l o a n i m a t e dc r e a t i o n s . B A S I C i s t i l l a v a i l a b l e f o e d i t i n g s c r i p t s o e x e c u t i n g p r o g r a m s e v e nw h i l e a m o v i e i b e i n g d i s p l a y e d . A n i m a t i o n s e q u e n c e s c a e a s i l y b e a d d e d t B A S I C p r o g r a m s . M o v i n g P i c t u r e s f e a t u r e s i n c l u d e : s p l i t s c r e e n o p e r a t i o n p a r tg r a p h i c s , p a r t t e x t - e v e n w h i l e m o v i e i r u n n i n g ; r e p e a t , s t o p a a n f r a m e ,c h a n g e p o s i t i o n a n c o l o u r s , v a r y d i s p l a y s p e e d , e t c ; h o l d s e v e r a l m o v i e s i m e m o r y a n s w i t c h i n s t a n t l y f r o m o n e m o v i e t a n o t h e r ; i n s t a n t , o n - l i n e h e l pa v a i l a b l e a t h t o u c h o k e y ; n o c o p y p r o t e c t i o n u s e d o d i s k .

V o l k s m o d e m 1 2 w / c a b l e , a n C I I n t r o - P a c k , $ 3 2 9 . 0 0 ( C d n ) , $ 1 9 9 ( U S )N o o n l y d o y o u g e t h V o l k s m o d e m 1 ( D O C a p p r o v e d ) , b u y o g e t h e c a b l ea n e x t r a c h a r g e ( t h e C 6 c a b l e g o e s d i r e c t l y o n t o t h U s e r P o r t , a n t h R S 2 3 2c a b l e i f o a n s t a n d a r d R S 2 3 2 D B - 2 5 f e m a l e c o n n e c t o r ) P l u s y o u ' l l r e c e i v e af r e e C o m p u S e r v e I n t r o - P a k w h i c h c o n t a i n s a U s e r I D P a s s w o r d , a n $ 1 5 . 0 0 o c o n n e c t t i m e ! T h V o l k s m o d e m 1 w i l l w o r k a 3 0 o 1 2 0 0 b a u d , a n i " H a y e sc o m p a t i b l e " s o i w i l l w o r k w i t h v i r t u a l l y a n t e r m i n a l s o f t w a r e b e c a u s e t h c o m m a n d s a r e c o n t r o l l e d b y y o u f r o m t h k e y b o a r d j u s t t y p e " A T " ( f o rA T t e n t i o n ) a n f o l l o w w i t h a n o s e v e r a l e a s y - t o - r e m e m b e r c o m m a n d s n s p e c i a l P O K i n g o r e l a b o r a t e d i a l i n g r o u t i n e s n e c e s s a r y ! ( I ' v e b e e n u s i n g H a y e sf o a l m o s t y e a r s , a n m V o l k s f o o v e r a y e a r - 1 l o v e t h e m b o t h ! K J H ) I c o m e s w i t h ( g e t t h i s ) a y e a r m a n u f a c t u r e r ' s w a r r a n t y o p a r t s a n l a b o u r ! T h m o d e m i s h i p p e d i n s u r e d v i U P a n e x t r a c h a r g e .

I n t e l l i g e n t I / I n t e r f a c e C a r d sB H 1 0 0 I / I n t e r f a c e C a r d w / d o c u m e n t a t i o n $ 1 2 9 ( U S ) , $ 1 9 9 ( C d n )B H 1 0 0 - A D 8 8 - C h a n n e l t C o n v e r s i o n M o d u l e $ 4 ( U S ) , $ 6 ( C d n )B H 1 0 0 B e g i n n e r s C o u r s e $ 1 5 9 ( U S ) , $ 2 3 9 ( C d n )B H 1 0 0 - S S e c u r i t y S y s t e m $ 2 5 ( U S ) , $ 3 ( C d n )

T h e s e p r o d u c t s f r o m I n t e l l i g e n t I / w i l l m a k e g r e a t C h r i s t m a s g i f t s ! A n i y o u ' v e b e e n w o n d e r i n g w h a t t d w i t h t h a t V I 2 t h a t d o e s n ' t g e m u c ha t t e n t i o n a n y m o r e , t h e y ' r e p e r f e c t ! I y o u ' v e e v e r w a n t e d t o s t a r t d o i n g s o m e r e a lw o r l d i n t e r f a c i n g , r e a l e a s y , a n i n e x p e n s i v e l y , t h e n t h e s e i t e m s a r i d e a l . T h b o a r d s t h e y s e n t u f o e v a l u a t i o n a r e c u r r e n t l y w a t c h i n g f o f l o o d s i m b a s e m e n t . T o b a d i d n ' t t h i n k o i b e f o r e t h e f l o o d i t o n l y t o o k a b o u t a h o u ru s i n g s p a r e p a r t s h a l y i n g a r o u n d - n r e s i s t o r s , n c a p a c i t o r s , j u s t t w s t r i p so m e t a l , a p i e c e o s t y r o f o a m , b r i c k , a n a b o u t 2 f e e t o w i r e t h a t w a a l s oc o l l e c t i n g d u s t . O n c e g e t i m e , i n t e n d t m a k e i t d s o m e m o r e s u r v e i l l a n c es i n c e o n l y o n c h a n n e l i c u r r e n t l y i u s e . A n t h p r o g r a m t d i t q u i c k a n m e s s y l i n e s ! S i n c e t h e b o a r d s a r m e m o r y m a p p e d t h r o u g h t h c a r t r i d g e p o r t ,

P E E K i a l y o n e e d ! T h 2 p a g e m a n u a l i c l e a r a n c o n c i s e . A l p r o d u c t sc o m e w i t h 9 0 d a y m a n u f a c t u r e r ' s w a r r a n t y . S h i p p e d i n s u r e d v i U P a n e x t r a c h a r g e .

T r a n s a c t o r T - S h i r t s , $ 1 3 . 9 5 a n $ 1 7 . 9 5 ( U S / C )A m e n t i o n e d e a r l i e r , t h e y c o m e i S m a l l , M e d i u m , L a r g e , E x t r a L a r g e , a n J u m b o . T h e y ' r e 1 3 . 9 5 e a c h , $ 1 7 . 9 5 f o t h J u m b o . T h J u m b o m a k e s g o o dn i g h t - s h i r t / b e a c h - t o p i t ' s B I G . I ' f o o t t a l l , a n w e i g h i a s l i m 1 5 p o u n d s

t h S m a l l f i t s m t i g h t , b u t h a t ' s h o l i k e t h e m . I y o d o n ' t , w s u g g e s t y o

o r d e r t h e m s i z e o v e r w h a t y o u s u a l l y b u y . T h d e s i g n i s c r e e n e d u s i n g" s u p e r - o p a q u i n g " p r o c e s s s t h e y w e a r m u c h l o n g e r t h a n y o u r o r d i n a r y s c r e e n sa n i r o n - o n s .

T h T r a n s a c t o r B o o k o f B i t s a n P i e c e s * 1 $ 1 4 . 9 5 ( U S / C )N o t c o u n t i n g t h T a b l e o C o n t e n t s , t h e I n d e x , a n t i t l e p a g e s , i t ' s 2 4 p a g e s o B i t s a n P i e c e s f r o m i s s u e s o T h T r a n s a c t o r , V o l u m e s t h r o u g h 6 E v e n i y o h a v e a l t h o s e i s s u e s , i t m a k e s h a n d y r e f e r e n c e - n m o r e f l i p p i n g t h r o u g hm a g a z i n e s f o t h a t o n b i t h a t y o j u s t k n o w i s o m e w h e r e . . . A l s o , e a c h i t e m i f o r w a r d / r e v e r s e r e f e r e n c e d . O c c a s s i o n a l l y t h i t e m s i t h B i t s c o l u m n a p e a r e d a u p d a t e s t p r e v i o u s b i t s . B i t s t h a t w e r e s i m i l a r i n a t u r e a r a l s o c r o s s -r e f e r e n c e d . A n t h i n d e x m a k e s i e v e n e a s i e r t f i n d t h o s e q u i c k f a c t s t h a te l i m i n a t e a l o o w h e e l r e - i n v e n t i n g .

T h e T r @ n s @ c t o r 1 5 4 1 R O U p g r a d e s , $ 5 9 . 9 5 ( U S / C )Y o c a n b u r n y o u r o w u s i n g t h e R O d u m p f i l e o T r a n s a c t o r D i s k * 1 3 o y o c a g e s e f r o m u s T h e r e a r R O M s p e s e t , a n t h e y f i n o o n l y t h S A V E ®b u g , b u n u m b e r o o t h e r b u g s t o ( a d e s c r i b e d i P A S l a y m a k e r ' s a r t i c l e , V o 7 I s s u e 0 2 ) . R e m e m b e r , i S A V E ® i a b o u t t f a i l o y o u , t h e n S c r a t c h a n S a v em a j u s t c l o b b e r y o t o o . T h i s h a s n ' t b e e n p r o v e n 1 0 0 % , b u t t h e s e R O M s w i l le l i m i n a t e a n p o s s i b i l i t i e s s h o r t o d e l i b e r a t e l y c a u s i n g t h e m ( i e . a l l o c a t i n g o o p e n i n g d i r e c t a c c e s s b u f f e r s b e f o r e t h e S a v e ) .

T h M i c r o S l e u t h : C 6 4 / 1 5 4 1 T e s t C a r t r i d g e , $ 8 9 . 9 5 ( U S ) , $ 1 2 9 . 9 5 ( C d n )T h i s c a r t r i d g e , d e s i g n e d b B r i a n S t e e l e ( s e r v i c e t e c h n i c i a n f o s e v e r a l s c h o o l si s o u t h e r n O n t a r i o ) , w i l l t e s t t h R A o f C 6 e v e n i t h m a c h i n e i t o s i c k t r u p r o g r a m ! T h c a r t r i d g e t a k e s c o m p l e t e c o n t r o l o t h m a c h i n e . I t e s t s a l R A i o n m o d e , a l R O i a n o t h e r m o d e , a n p u t s u m e n u w i t h t h f o l l o w i n g c h o i c e s :

1 C h e c k d r i v e s p e e d2 C h e c k d r i v e a l i g n m e n t3 1 5 4 1 S e r i a l t e s t4 C 6 s e r i a l t e s t5 J o y s t i c k p o r t t e s t6 J o y s t i c k p o r t 2 t e s t7 C a s s e t t e p o r t t e s t8 U s e r p o r t t e s t

s e c o n d b o a r d , t h a t p l u g s o n t o t h U s e r P o r t , c o n t a i n s L E D s t h a t l e t s y o z e r oi o t h f a u l t y c h i p . C o m p l e t e w i t h m a n u a l .

I n n e r S p a c e A n t h o l o g y $ 1 4 . 9 5 ( U S / C )T h i s i o u r e v e r p o p u l a r 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 . E v e na f t e r y e a r a n h a l f , w s t i l l g e t i n q u i r i e s a b o u t i t c o n t e n t s . B r i e f l y , T h A n t h o l o g y i r e f e r e n c e b o o k i h a n " r e a d i n g " m a t e r i a l ( i e . " p a r a g r a p h s " ) .I 1 2 c o m p a c t p a g e s , t h e r e a r e m e m o r y m a p s f o C B c o m p u t e r s , D i s kD r i v e s , a n m a p s o C O M A L ; s u m m a r i e s o B A S I C c o m m a n d s , A s s e m b l e r a n M L c o m m a n d s , a n W o r d p r o c e s s o r a n S p r e a d s h e e t c o m m a n d s . M a c h i n eL a n g u a g e c o d e s a n m o d e s a r s u m m a r i z e d , a s w e l l a s e n t r y p o i n t s t R O r o u t i n e s . T h e r e a r e s e c t i o n s o M u s i c , G r a p h i c s , N e t w o r k a n d B B p h o n en u m b e r s , C o m p u t e r C l u b s , H a r d w a r e , u n i t - t o - u n i t c o n v e r s i o n s , p l u s m u c hm o r e . . . a b o u t 2 . 5 m i l l i o n c h a r a c t e r s t o t a l !

A 1 0 0 0 A m i g a M E G R A M B o $ 7 2 9 . 0 0 ( + 1 0 S & H ) ( U S ) ,$ 1 0 3 5 . 0 0 ( + $ 2 5 S & H ) ( C d n )

A X 2 0 0 0 A m i g a M E R A B o $ 8 9 9 . 0 0 ( + 1 0 S & H ) ( U S ) ,$ 1 2 7 6 . 0 0 ( + $ 2 5 S & H ) ( C d n )

T h A X 2 0 0 0 a d d s M e g a b y t e s o " f a s t " R A t t h A m i g a , a l l o w i n g m o r e t a s k st r u i t h s y s t e m a o n c e , o f o u s a s f a s t R A M - d r i v e . T h u n i t p l u g s i n t ot h e x p a n s i o n c o n n e c t o r o t h s i d e o t h A m i g a a n d u p l i c a t e s t h e c o n n e c t o rf o o t h e r d e v i c e s t p l u g i n t o . U t t w R A b o a r d s m a b e p l u g g e d i t o g e t h e r( l i m i t e d b t h A m i g a ' a p o w e r s u p p l y ) , a d d i n g M e g a b y t e s . T h b o h a " a u t o -c o n f i g " , s w i t h K i c k s t a r t 1 . t h R A w i l l a u t o m a t i c a l l y b a d d e d t t h s y s t e mw h e n i i b o o t e d . I y o a r u s i n g K i c k s t a r t 1 . 0 o 1 . ( n a u t o - c o n f i g ) , y o c a u s t h p r o g r a m i n c l u d e d w i t h t h A X 2 0 0 0 t a d t h m e m o r y t t h s y s t e m ,a n c h a n g e y o u r s t a r t u p - s e q u e n c e t a u t o m a t i c a l l y a d t h m e m o r y o p o w e r -u p S t a n d a r d e x p a n s i o n b u s a r c h i t e c t u r e w a u s e d i t h d e s i g n o t h A X 2 0 0 0 ,e n s u r i n g c o m p a t a b i l i t y w i t h a l p e r i p h e r a l s a n o p e r a t i n g s y s t e m r e l e a s e s . T h

T h T r a n s a c t o r 7 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 81/84

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

y e a r m a n u f a c t u r e r w a r r a n t y .

s e e m s t b t h m o s t h i g h l y - r e c o m m e n d e d A m i g a R A b o a r d , a n t h f i r s tt a c t u a l l y b a v a i l a b l e , s o w e ' r e s e l l i n g i h e r e a T h T r a n s a c t o r . Y o c a

t h A X 2 0 0 0 o t h 1 - M e g A X 1 0 0 0 f r o m t h e s u b s c r i p t i o n f o r m i t h i s i s s u e .a n H a n d l i n g t t h U S A . i v i c o u r r i e r a n i n c l u d e s a l c u s t o m s

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

1 . C 6 $ 4 9 . 9 5 ( U S ) , $ 5 9 . 9 5 ( C d n )W r i t e r C 6 $ 2 9 . 9 5 ( U S ) , $ 3 9 . 9 5 ( C d n )P l a n n e r C 6 $ 2 9 . 9 5 ( U S ) , $ 3 9 . 9 5 ( C d n )F i l e r C 6 $ 2 9 . 9 5 ( U S ) , $ 3 9 . 9 5 ( C d n )

1 . C 1 2 8 $ 5 9 . 9 5 ( U S ) , $ 6 9 . 9 5 ( C d n )W r i t e r C 1 2 8 $ 3 9 . 9 5 ( U S ) , $ 4 9 . 9 5 ( C d n )

t P l a n n e r C 1 2 8 $ 3 9 . 9 5 ( U S ) , $ 4 9 . 9 5 ( C d n )F i l e r C 1 2 8 $ 3 9 . 9 5 ( U S ) , $ 4 9 . 9 5 ( C d n )D i c t i o n a r y $ 1 4 . 9 5 ( U S ) , $ 1 9 . 9 5 ( C d n )

2 . o t h e s o f t w a r e t r i o f r o m D i g i t a l S o l u t i o n s i n o i p r o d u c t i o n . T h p a c k a g e s i n c l u d e b o t h t h 6 a n 1 2 v e r s i o n s o t h s a m e d i s k . E a c h 2 .

p a c k a g e w i l l s e l l f o $ 5 9 . 9 5 ( U S ) , o $ 8 4 . 9 5 ( C d n ) . S u p e r p a k w i l la l t h r e e f o $ 9 9 . 9 5 ( U S ) o r $ 1 3 9 . 9 5 ( C d n ) . T h P o c k e t D i c t i o n a r y i s s t i l l( U S ) , $ 1 9 . 9 5 ( C d n ) . H o w e v e r , t h e y w o n ' t b a v a i l a b l e f r o m u u n t i l n e x t

1 . i s t i l l a v a i l a b l e , a n a t e r r i f i c p r i c e s ! T h 6 a n 1 2 v e r s i o n s s t i l li s e p a r a t e p a c k a g e s , b u t h r e a l d e a l i t h s p e c i a l p r i c e f o a l t h r e e . T h

S u p e r p a k i $ 4 9 . 9 5 ( U S ) o r $ 5 9 . 9 5 ( C d n ) . C 1 2 8 S u p e r p a k s a r $ 5 9 . 9 5 ( U S ) o r( C d n ) . T t o i t o f f , w e ' l l t h r o w i t h P o c k e t D i c t i o n a r y p r o g r a m f o r f r e e !

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

T r a n s B A S I C D i s k $ 9 . 9 5 ( U S / C )i t h c o m p l e t e c o l l e c t i o n o e v e r y T r a n s B A S I C m o d u l e e v e r p u b l i s h e d u t

7 I s s u e 0 1 T h e r e a r o v e r 1 2 c o m m a n d s a y o u r d i s p o s a l . Y o p i c k t h y o w a n t t u s e , a n i a n c o m b i n a t i o n ! I t ' s s s i m p l e t h a t s u m m a r y o c t i o n s f i t s r i g h t o t h e d i s k l a b e l . T h m a n u a l d e s c r i b e s e a c h o t h

, p l u s h o t w r i t e y o u r o w c o m m a n d s .

K i 1 5 4 1 $ 2 9 . 9 5 ( U S ) , $ 3 9 . 9 5 ( C d n )K i i s q u i t e s i m p l y , t h b e s t d i s k f i l e u t i l i t y t h e r e i s N m o r e l o s i n g t h o s e

b l e c o p y - p r o t e c t e d o r i g i n a l s ( l i k e w h a t ' s h a p p e n e d t m t w i c e t o m a n yS f a w e ' v e s h i p p e d o v e r 6 0 S u p e r K i t s a n o r d e r s c o n t i n u e t p o u r i n

S p e e d C o m p i l e r $ 5 9 . 9 5 ( U S ) , $ 6 9 . 9 5 ( C d n )c o m p i l e r i f o B A S I C 7 . o t h C o m m o d o r e 1 2 8 .

K i t U t i l i t y $ 3 9 . 9 5 ( U S ) , $ 4 9 . 9 5 ( C d n )K i i C o m m o d o r e 1 2 u t i l i t y w i t h e n h a n c e m e n t s f o t h B A S I C e d i t o r

T r a c e , F i n d , R e n u m b e r , D e l e t e , A u t o , e t c . ) a s w e l l a e n h a n c e d m o n i t o r, a n f l o p p y d i s k m o n i t o r f u n c t i o n s .

D i s k s , T r a n s a c t o r B a c k I s s u e s , a n M i c r o f i c h e

o T h T r a n s a c t o r f r o m V o l u m e 4 I s s u e 0 f o r w a r d a r n o a v a i l a b l e. A c c o r d i n g t C o m p u t r e x , o u f i c h e m a n u f a c t u r e r , t h s t r i p s a r 9 8 p a g e s i z e " , s t h e y s h o u l d b c o m p a t i b l e w i t h e v e r y f i c h e r e a d e r .

i s s u e a r O N L Y a v a i l a b l e o m i c r o f i c h e t h e s e a r m a r k e d " M o n l y " . T h i s s u e s a r a v a i l a b l e i b o t h p a p e r a n f i c h e . D o n ' t c h e c k b o t h b o x e s f o u n l e s s y o u w a n t b o t h t h p a p e r v e r s i o n A N t h m i c r o f i c h e s l i c e f o r t h i s s u e .

t h i n g s s i m p l e , t h e p r i c e o T r a n s a c t o r M i c r o f i c h e i t h s a m e a i n e s , w i t h o n e x c e p t i o n . s i n g l e b a c k i s s u e w i l l b $ 4 . 5 0 ( U S / C ) a n

a r $ 1 5 . 0 0 ( U S / C ) . T h e x c e p t i o n ? c o m p l e t e s e o 1 ( V o l u m e sa n 6 ) w i l l c o s t j u s t $ 3 9 . 9 5 ( U S / C ) !

T h i s l i s t a l s o s h o w s t h " t h e m e s " o e a c h i s s u e . " T h e m e i s s u e s " d i d n ' t s t a r t u n t i lV o l u m e 5 I s s u e 0 1 T h T r a n s a c t o r D i s k * 1 c o n t a i n s a l p r o g r a m f r o m V o l u m e 4 a n D i s k * 2 c o n t a i n s a l p r o g r a m s f r o m V o l u m e 5 I s s u e s 1 - 3 . A f t e r w a r d s t h e r ei s e p a r a t e d i s k f o e a c h i s s u e . D i s k 8 f r o m T h L a n g u a g e s I s s u e c o n t a i n sC O M A L 0 . 1 4 , s o f t - l o a d e d , s l i g h t l y s c a l e d d o w n v e r s i o n o t h C O M A L 2 . c a r t r i d g e . A n V o l u m e 6 I s s u e 0 p u b l i s h e d t h d i r e c t o r i e s f o T r a n s a c t o r D i s k sI t o 9 .

V o l . 4 I s s u e 0 ( D i s k 1 V o l . 4 I s s u e 0 M o n l yV o l . 4 I s s u e 0 ( D i s k 1 V o l . 4 I s s u e 0 M o n l yV o l . 4 I s s u e 0 ( D i s k 1 V o l . 4 I s s u e 0 M o n l yV o l . 5 I s s u e 0 S o u n d a n G r a p h i c sV o l . 5 I s s u e 0 2 T r a n s i t i o n t M a c h i n e L a n g u a g e M o n l yV o l . 5 I s s u e 0 P i r a c y a n P r o t e c t i o n M o n l yV o l . 5 I s s u e 0 4 B u s i n e s s E d u c a t i o n M o n l yV o l . 5 I s s u e 0 5 H a r d w a r e P e r i p h e r a l sV o l . 5 I s s u e 0 6 A i d s U t i l i t i e sV o l . 6 I s s u e 0 M o r e A i d s U t i l i t i e sV o l . 6 I s s u e 0 N e t w o r k i n g C o m m u n i c a t i o n sV o l . 6 I s s u e 0 3 T h L a n g u a g e sV o l . 6 I s s u e 0 4 - I m p l e m e n t i n g T h S c i e n c e sV o l . 6 I s s u e 0 5 - H a r d w a r e S o f t w a r e I n t e r f a c i n gV o l . 6 I s s u e 0 R e a l L i f e A p p l i c a t i o n sV o l . 7 I s s u e 0 R O K e r n e l R o u t i n e sV o l . 7 I s s u e 0 G a m e s F r o m T h e I n s i d e O u V o l . 7 I s s u e 0 P r o g r a m m i n g T h e C h i p sV o l . 7 I s s u e 0 G i z m o s a n G a d g e t sV o l . 7 I s s u e 0 L a n g u a g e s I

D i s k 1 D i s k 1 D i s k 1 D i s k 2 D i s k 2 D i s k 2 D i s k 3 D i s k 4 D i s k 5 D i s k 6 D i s k 7 D i s k 8 D i s k 9

D i s k 1 0 D i s k 1 1 D i s k 1 2 D i s k 1 3 D i s k 1 4 D i s k 1 5 D i s k 1 6

I n d u s t r y N e w sT h f o l l o w i n g i t e m s , c o m p i l e d b A s t r i d K u m a s , a r b a s e d o p r e s s r e l e a s e sr e c e n t l y r e c e i v e d f r o m t h m a n u f a c t u r e r s . P l e a s e n o t e t h a t p r o d u c t d e s c r i p t i o n sa r e n o t t h e r e s u l t o e v a l u a t i o n b T h T r a n s a c t o r .

N e B o o k s f r o m A b a c u sA b a c u s S o f t w a r e h a s p u b l i s h e d a n o t h e r v o l u m e i t h e i r r e f e r e n c e s e r i e s o b o o k sf o t h C o m m o d o r e 1 2 t h C - 1 2 8 B A S I C T r a i n i n g G u i d e . T h b o o k i a i m e d a t h u s e r w h w a n t s t l e a r n t h e C o m m o d o r e 1 2 8 ' s b u i l t - i n B A S I C p r o g r a m m i n gl a n g u a g e . T h b o o k a i m s t b t h o r o u g h i n t r o d u c t i o n w i t h n u m e r o u s e x a mp l e s t l e a d t h e r e a d e r f r o m s i m p l e t m o r e a d v a n c e d p r o g r a m m i n g t e c h n i q u e s .T h s u g g e s t e d r e t a i l p r i c e i $ 1 6 . 9 5 ( U S ) .

T h n e x t b o o k i t h C - 1 2 8 s e r i e s B A S I C 7 . I n t e r n a l s w a s c h e d u l e d f o s h i p p i n g i l a t e D e c e m b e r ' 8 6 . T h s u g g e s t e d r e t a i l p r i c e i $ 2 4 . 9 5 ( U S ) .

A n o t h e r r e c e n t p u b l i c a t i o n f r o m A b a c u s S o f t w a r e i G E O S I n s i d e a n O u t ,w r i t t e n b M a n f r e d T o r n s d o r f a n R K e r k l o h . I i n c l u d e s i n t r o d u c t o r y m a t e r i a la b o u t G E O S , t h D e s k t o p , G E O S W R I T E a n G E O S P A I N T , l a r g e c o l l e c t i o n o t i p s f o r e v e r y G E O S u s e r , a s w e l l a s a d e s c r i p t i o n o G E O S i n t e r n a l s . T h s u g g e s t e d r e t a i l p r i c e i $ 1 9 . 9 5 ( U S ) . M o r e i n f o r m a t i o n i a v a i l a b l e f r o m :

A b a c u s S o f t w a r e2 2 0 1 K a l a m a z o o S . E .P . O . B o 7 2 1 1G 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

E y e - S c a n f o C - 6 4 / 1 2 8

D i g i t a l E n g i n e e r i n g h a s a n n o u n c e d t h r e l e a s e o i t f i r s t p r o d u c t - E y e - S c a n ,v i d e o d i g i t i z e r f o t h C - 6 4 , C - 1 2 8 a n S X 6 4 c o m p u t e r s .

E y e - S c a n ' s h a r d w a r e c a r t r i d g e p l u g s i n t o t h c o m p u t e r ' s " u s e r - p o r t " m a k i n gg r a p h i c s i n p u t s i m p l e : c o m p o s i t e v i d e o i v i a R C j a c k . C o n v e r s i o n t i m e i a p p r o x i m a t e l y s e c o n d s p e g r e y l e v e l .

r a n s a c t o r 7 M o 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 82/84

E y e - S c a n d i s k s o f t w a r e u t i l i z e s p u l l - d o w n w i n d o w s t a c c o m p l i s h b l a c k a n w h i t e i m a g i n g , u t g r e y l e v e l s , i m a g e i n v e r s i o n , d i s k a n 1 5 2 5 p r i n t e rs u p p o r t . A l s o i n c l u d e d i p r o g r a m m e r ' s u t i l i t y p a c k a g e t h a t a l l o w s u s e r s t u t i l i z e t h i m a g e c a p t u r i n g a l g o r i t h m s i t h e i r o w p r o g r a m s . E y e - S c a n i c o m p a t i b l e w i t h K o a l a , D o o d l e ! a n B l a z i n g P a d d l e s g r a p h i c p r o g r a m s .

P o s s i b l e a p p l i c a t i o n s i n c l u d e a n i m a t i o n , s e c u r i t y , a u t o m a t e d p r o c e s s c o n t r o l ,p a t t e r n a n a l y s i s , r o b o t v i s i o n a n t e x t r e c o g n i t i o n .

E y e - S c a n c a b o r d e r e d f o $ 8 9 . 9 5 ( U S ) f r o m :

D i g i t a l E n g i n e e r i n g a n D e s i g n2 7 1 8 S . W . K e l l y , S u i t e C l 6 5P o r t l a n d , O r e g o n 9 7 2 0 1( 5 0 3 ) 2 4 5 - 1 5 0 3

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

E f f e c t i v e N o v e m b e r 1 1 9 8 6 M i m i c s y s t e m s h a s r e p a c k a g e d t h e S p a r t a n , t h A p p l e 1 e m u l a t o r f o t h C - 6 4 , t i n c l u d e a n A p p l e c o m p a t i b l e d i s k d r i v e .S p a r t a n s a y s t h e d e c i s i o n t d i s c o n t i n u e t h D O c a r d a n i n c l u d e a n A p p l e 1 c o m p a t i b l e d i s k d r i v e w a p r o m p t e d b n u m e r o u s r e q u e s t s f r o m c u s t o m e r s , a n t h a m o u n t o t e c h n i c a l a s s i s t a n c e r e q u i r e d f o t h i n s t a l l a t i o n o t h D O c a r d i t h 1 5 4 1 d i s k d r i v e .

C o s t o t h S p a r t a n i n c l u d i n g A p p l e c o m p a t i b l e d i s k d r i v e i $ 3 2 9 . 9 5 ( C d n ) . F o rf u r t h e r i n f o r m a t i o n , c a l l 1 - 8 0 0 - 6 6 3 - 8 5 2 7 o r c o n t a c t :

M i m i c S y s t e m sc / E D I n d u s t r i e s# 2 0 5 - 1 4 0 1 W e s t 8 t A v e n u eV a n c o u v e r , B . C . V 6 1 C

P e e k B y t e 1 2

Q u a n t u m S o f t w a r e ' s P e e k B y t e 6 4 a d i s k a n m e m o r y u t i l i t y f o t h C - 6 4p r o g r a m m e r , h a s b e e n u p g r a d e d f o u s o C o m m o d o r e 1 2 8 . T h n e v e r s i o n , 'P e e k B y t e 1 2 8 , w i l l b a v a i l a b l e i F e b r u a r y 1 9 8 7 .

I a d d i t i o n t a l t h f e a t u r e s o t h o r i g i n a l p r o d u c t , P e e k B y t e 1 2 p r e s e n t ss e v e r a l o t h e r o p t i o n s , s u c h a 8 0 - c o l u m n d i s p l a y , r e a d i n g o w r i t i n g t 1 5 7 1d o u b l e - s i d e d d i s k , a n c o n v e r t i n g 1 5 4 1 s i n g l e - s i d e d t 1 5 7 1 d o u b l e - s i d e df o r m a t w i t h o u t h a r m i n g d a t a a l r e a d y o f r o n t s i d e .

A e n h a n c e d v e r s i o n o t h o r i g i n a l p r o d u c t , P e e k B y t e 6 V 2 . 0 t o g e t h e r w i t ht h D i s k M e c h a n i c a n d n e m a n u a l , w i l l a l s o b a v a i l a b l e a t h s a m e t i m e .A m o n g s t f e a t u r e s , a d d e d o i m p r o v e d , t h m a n u f a c t u r e r l i s t s t h f o l l o w i n g :

r e a d o r w r i t e u t t r a c k 4 e v e n w i t h D O h e a d e r e r r o r se d i t s e c t o r G C d a t ar e a d " r a w " t r a c k G C d a t af a s t f o r m a t s i n g l e o r m u l t i p l e t r a c k s u t 4 d h a l f - t r a c k s u t t r a c k 4 a n a l y z e d i s k e r r o r s

U s e r s w h o w t h o r i g i n a l P e e k B y t e 6 4 c a o r d e r t h e P e e k B y t e 1 2 8u p g r a d e p a c k a g e ( i n c l u d i n g P e e k B y t e 6 4 V 2 . 0 a n d n e m a n u a l ) f o t h p r i c eo $ 2 0 . 0 0 ( 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 :

Q u a n t u m S o f t w a r eP . O . B o 1 2 7 1 6L a k e P a r kF 3 3 4 0 3

C o m m o d o r e■ F r i . , F e b . 2 0 1 0 : 0 0 - 6 : 0 0

S a t . , F e b . 2 1 1 0 : 0 0 - 6 : 0 0^ G " S u n . , F e b . 2 2 N o o n - 5 : 0 0^ B r o o k s H a l l , C i v i c C e n t e r

S a F r a n c i s c oE X H I B I T S , E V E N T S A N D O O R P R I Z E SN A T I O N A L C O M M O D O R ES P E A K E R SS H O W S P E C I A L S A N D I S C O U N T SS E T H L A T E S T I N N OV A T I O N S I H A R D W A R E /S O F T W A R E T E C H N O L O G Y

T h C o m m o d o r e S h o w i t h o n l yW e s t C o a s t e x h i b i t i o n a n c o n f e r e n c e f o c u s i n g e x c l u s i v e l y o t h A M I G A , C o m m o d o r e 1 2 P a n C - 6 4 m a r k e t p l a c e .R E G I S T R A T I O N F E E S :O n D a O n l y — $ 1 0T h r e e D a P a s s — $ 1 5

F o M o r e I n f o r m a t i o n O T o R e s e r v e E x h i b i t S p a c e C o n t a c tC O M P U T E R S W A P , I N C .

P B o 1 8 9 0 6 S n J o s e . C 9 5 1 5 8( 4 0 8 ) 9 7 8 S W A P 8 0 0 - 7 2 2 - S W A P I C 8 0 0 - 2 5 2 - S W A P

L i n c o l n C o l l e g eC o m m o d o r e C o m p u t e r C a m p

w i t h

J I B U T T E R F I E L Da n o t h e r e x p e r t s

J u l y 1 9 - 2 5 , 1 9 8 7T o p i c s i n c l u d e :

A m i g aC - 1 2 8R o b o t i c sT e l e c o m p u t i n gA d d i t i o n a l s e l e c t e d t o p i c s

F o f u r t h e r i n f o r m a t i o n , c o n t a c t :O f f i c e o f C o n t i n u i n g E d u c a t i o nL i n c o l n C o l l e g e3 0 K e o k u kL i n c o l n , I 6 2 6 5 62 1 7 / 7 3 2 - 3 1 5 5

T h T r a n s a c t o r 8 M a 1 9 8 7 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 83/84

C o m p u S e r v e .Y o D o n t H a v e T K n o w H o I W o r k s

T A p p r e c i a t e A l I C a D o C o m p u S e r v e i c o m p u t e r i n f o r m a t i o n

s e r v i c e . Y o s u b s c r i b e t i t I r e t u r n , y o h a v ea c c e s s t a i n c r e d i b l e a m o u n t o i n f o r m a t i o n ,e n t e r t a i n m e n t , c o m m u n i c a t i o n s a n s e r v i c e s .H e r e a r f e o t h h u n d r e d s o a m a z i n gt h i n g s y o u c a n d o

C O M M U N I C A T EC S i m u l a t o r f e a t u r e s 7 c h a n n e l s f o " t a l k i n g " w i t h o t h e r s u b s c r i b e r s . N a t i o n a lB u l l e t i n B o a r d s l e y o p o s t m e s s a g e sw h e r e t h o us a n d s w i l ls e t h e m .F r i e n d s ,r e l a t i v e s a n b u s i n e s s a s s o c i a t e s c a s t a y i t o u c h t h r o u g h E a s y P l e x ™ E l e c t r o n i c M a i l .

M o r e t h a n 1 0 C o m p u S e r v e F o r u m sw e l c o m e p a r t i c i p a t i o n i d i s c u s s i o n s o a l s o r t s o t o p i c s , o f t w a r e F o r u m s h e l p w i t ho n l i n e s o l u t i o t s o f t w a r e p r o b l e m s .H a r d w a r e S u p p o r t F o r u m s c a t e r t s p c i f i c c o m p u t e r s . T h e r e ' s e v e n f r e e s o f t w a r e ,a n o n l i n e e d i t i o n s o c o m p u t e r p e r i o d i c a l s .

H A V E F U P l a y a l s o r t s o s p o r t s a n e n t e r

t a i n m e n t t r i v i a g a m e s , b r a i n - t e a s i n ge d u c a t i o n a l g a m e s a n t h o n l yo n l i n e T V - s t y l e g a m e s h o w w i t hr e a l p r i z e s . O r , f o r t h e u l t i m a t ei e x c i t e m e n t , g e i n t o a i n t e r a ct i v e s p a c e a d v e n t u r e .

S H O PT H E L E C T R O N I C M A L L ™

t a k e s y o o c o a s t - t o - c o a s ts h o p p i n g s p r e e o n a t i o n a l l yk n o w n m e r c h a n t s , w i t h o u t e v e rl e a v i n g h o m e .

S A V E O T R I P SW i t h C o m p u S e r v e ' s t r a v e l s e r v i c e s y o c a

s c a n f l i g h t a v a i l a b i l i t i e s , f i n d a i r f a r e b a r g a i n sa n e v e n b o o k y o u r o w f l i g h t s o n l i n e . P l u s ,t h e r e a r e c o m p l e t e l i s t i n g s o o v e r 2 8 , 0 0 0h o t e l s w o r l d w i d e .

B I N F O R M E DC o m p u S e r v e p u t s a l o t h l a t e s t n e w s a

y o u r f i n g e r t i p s , i n c l u d i n g t h A n e w s w i r e ,t h W a s h i n g t o n P o s t , t h S t L o u i s P o s t -D i s p a t c h , s p e c i a l i z e d b u s i n e s s a n t r a d ep u b l i c a t i o n s a n m o r e . O u e x e c u t i v e n e w ss e r v i c e w i l l e l e c t r o n i c a l l y f i n d , " c l i p " a n f i l en e w s f o y o u . . . t r e a d w h e n e v e r y o u ' d l i k e .

I N V E S T W I S E L YG e c o m p l e t e s t a t i s t i c s o

o v e r 1 0 , 0 0 0 N Y S E . A M E X a n O T s e c u r i t i e s . H i s t o r i ct r a d i n g s t a t i s t i c s o o v e r9 0 , 0 0 0 s t o c k s , b o n d s ,f u n d s , i s s u e s a n o p t i o n s . F i v e y e a r s o d a i l y c o m m o d i t y q u o t e s .U p d a t e s o n h u n d r e d s o c o m p a n i e s w o r l d w i d e . S t a nd a r d P o o r ' s . V a l u e L i n e . O v e rd o z e n i n v e s t m e n t t o o l s .

S m u c h f o s l i t t l e .A l y o p a i l o w , o n e - t i m e c o s t f o

S u b s c r i p t i o n K i ( s u g g e s t e d r e t a i l p r i c e$ 3 9 . 9 5 U S . ) . U s a g e r a t e s f o s t a n d a r d o n l i n e t i m e ( w h e nC o m p u S e r v e i m o s ta c t i v e ) a r j u s t 1 0 C am i n u t e . I m a n y m a j o rm e t r o p o l i t a n a r e a s y o c a g o n l i n e w i t h l o c a lp h o n e c a l l . P l u s , y o u ' l l r e c e i v e

$ 2 5 . 0 0 U . S . I n t r o d u c t o r yU s a g e C r e d i t w i t h t h p u r c h a s e o y o u r C o m p u S e r v e S u b s c r i p t i o n K i t .

S e a s y t h w h o l e f a m i l yc a n g o o n l i n e .

C o m p u S e r v e i " m e n u - d r i v e n , " s b e g i nn e r s c a s i m p l y r e a d t h m e n u s ( l i s t s o o p t i o n s ) t h a t a p p e a r o t h e i r s c r e e n s , t h e n t y p e i t h e i r s e l e c t i o n s . I y o e v e rg e l o s t o c o n f u s e d , t y p ef o h e l p . R e m e m b e r , y o c a a l w a y s a s k q u e st i o n s o n l i n e t h r o u g h

C o m p u S e r v e

o u r f e e d b a c k s e v i c e o p h o n e o u C u s t o m e r S e r v i c eD e p a r t m e n t .

B e f o r e y o c a a c c e s s C o m p u S e r v e , y o n e e d

c o m p u t e r , m o d e m ( t c o n n e c t y o u r c o p u t e r t y o u r p h o n e ) a n d , i s o m e c a s e s , s o m es i m p l e c o m m u n i c a t i o n s s o f t w a r e . N o y o u ' r er e a d y t o r d e r . F o y o u r l o w , o n e - t i m e s u s c r i p t i o n f e e , y o u ' l l r e c e i v e :• c o m p l e t e , e a s y - t o - u n d e r s t a n d , 1 7 0 - p a g e

s p i r a l - b o u n d U s e r s G u i d ey o u r e x c l u s i v e p r e l i m i n a r y p a s s w o r da s u b s c r i p t i o n t C o m p u S e r v e ' s m o n t h l ym a g a z i n e , O n l i n e T o d a y

$ 2 5 . 0 0 U S . u s a g e c r e d i t !T b u C o m p u S e r v e S u b s c r i p t i o n K i t ,

s e y o u r n e a r e s t c o m p u t e r d e a l e r . T r e c e i v eo u i n f o r m a t i v e b r o c h u r e o t o r d e r d i r e c t ,w r i t e o c a l l 6 1 4 - 4 5 7 - 0 8 0 2 .

C o m p u S e r v e . Y o d o n ' t h a v e t k n o w h o i w o r k s t a p p r e c i a t e a l i c a d o — f o r y o u .

C o m p u S e r v e *I n f o r m ; t i o n S e ' i c e s , P . O . B o 2 0 2 1 2 , 5 0 0 0 A r l i n g t o nC e n t r e L , i , C u u m b u s , O h i o 4 3 2 2 0 U . S . A .A H S B l o c k C o m p a n yE a s y P l e x a n E L E C T R O N I C M A L L a r t r a d e m a r k s o C o m p u S e r v e I n c o r p o r a t e d .

8/7/2019 The Transactor V7 06 1987 May

http://slidepdf.com/reader/full/the-transactor-v7-06-1987-may 84/84

T H T I M E S A V E R

p i l o o t r a n s a c t o r p r o g r a m s ?D o e s t h a b o v e t i m e a n a p p e a r a n c e o t h s k l o o k f a m i l i a r ?

W i t h T h T r a n s a c t o r D i s k , a n p r o g r a m i j u s t L O A D a w a y !