The Transactor V8 01 1987 Jul

84
8/7/2019 The Transactor V8 01 1987 Jul http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 1/84

Transcript of The Transactor V8 01 1987 Jul

Page 1: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 1/84

Page 2: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 2/84

T H T I M E S A V E R

T y p e 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 !

O n l y $ 8 . 9 5 P e I s s u e6 D i s k S u b s c r i p t i o n ( o n e y e a r )

J u s t $ 4 5 . 0 0( s e e o r d e r f o r m a c e n t e r f o l d )

A l s o c h e c k o u t h T r a n s B A S I C D i s kC o m p l e t e w i t h 2 p a g e m a n u a l , j u s t $ 9 . 9 5 !

Page 3: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 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

M a t hS 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 . . C - 1 2 8 E a s y P r o g r a m L o a d i n gC - 1 2 8 8 0 - C o l u m n I n t e r r u p t R o u t i n e sC - 1 2 8 C A P S - l o c k q F i C - 1 2 8 B u l l e t - P r o o f W i n d o w sC - 1 2 8 8 0 - C o l u m n D i s p l a y o a T e l e v i s i o n1 5 1 1 H a l f - T r a c k F i T h D r i v e l i g h t Z o n eO b s c u r e C - 6 4 V A b u G - L i n k R O C o m p a r eI n p u t T r i c k e r yC - 6 4 E f f i c i e n t K e y b o a r d - C h e c k i n g i A s s e m b l e rC - 6 4 S c r o l l i n g B a n n e r R o u t i n eC - 6 4 U n d o c u m e n t e d E d i t i n g M o d eE a s y I n p u t S p e e d u p f r o m B A S I CS y s t e m a t i c L o o p - V a r i a b l e N a m i n gS e l e c t i v e S c r a t c h i n gA m i g a A u t o m a t i c U p - D a t eP a t t e r n M a t c h i n g W i t h T h D i C o m m a n dM u l t i p l e - m e n u S e l e c t i o n sS p e e d i n g U I F F i l e A c c e s s

T r a n s B l o o p u r z 2 C a M e t e r B i t sN - B o d y S i m u l a t o r o T r a n s a c t o r D i s k 1 S o m e N o t e s o T r a n s a c t o r D i s k 1

T w o - B u t t o n M o u s e

L e t t e r s 1 W a n t e d - P l u s / 4 T e c h n i c a l I n f oW a n t e d - a I M s t r i p p e r f o t a p e

l e a d o c a b l e sA n o t h e r I E E E f o t h 1 2 U l t i m a t e f r u s t r a t i o n f i B i b l i c a l G r e e k d r i l l sH a r d w a r e b o o k b l u r bG r o u n d i n g t h a l tH o l e s i I n n e r S p a c eS t r u c t u r i n g B a s i c p r o g r a m sF O c l a r i f i e sS i m p l i f y i n g t h e r a i dD o u b l e D e n s i t y H S & " F a s t F i l e " r e l o c a t i o n

d i s s e n t i n g v o t e f o P o w e rC o n v e r t e r f o S u p e r - C v

S u p e r a n t h R A d i s kT r a n s B A S I C g r a p h i n g o n o n e s c r e e nB u n d l i n g T r a n s B A S I C d i a l e c t sA m i g a m u s i c s o f t w a r e s h o r t a g eM o r e S u p e r k i t s o r r o w s

N e w s B R N e A d d r e s s a n d P h o n e N u m b e rS 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 sF 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 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 H a r d w a r e P r o d u c t sT r a n s a c t o r M a i l O r d e rN a t i o n a l C o m p u t e r C o n f e r e n c e 1 9 8 74 0 4 0 D r i v e I n t e r n a l s

7 G E O S P r o g r a m m i n g G u i d eN e C o m m o d o r e B u s i n e s s M a g a z i n eG e n e a l o g y S o f t w a r e f r o m B y t e W a r eT h M a i l R o o m v 2 . 1 f o t h C o m m o d o r e 6 S p e n c e X P B B S f o r C 6 4 - $ 1 0S p e e d S c r i p t U p d a t e d f o t h C - 1 2 8D i s k - 2 - D i s k f r o m C C N e I n t e r f a c e f o C - 6 4 / C - 1 2 8 a n I B P C o m m a n d C e n t e r f o C o m m o d o r e c o m p u t e r s

T e l e c o l u m n 2 R e a l S h u f f l e S u b r o u t i n e s h u m e s c a r d s m w a y h u m a n s d 2

F u n c t i o n M a n i p u l a t i o n : R o o t s a n I n t e g r a l s 2 A r r a y M a t h O p e r a t i o n s o t h C 6 s i m p l i f y a r r a y c a l c u l a t i o n s . . 2

F a s t e r S q u a r e R o o t f o t h C 6 M o r e a c c u r a t e , t o o 3 N u m b e r A d t h m e t i C A d c o m p l e x n u m b e r d a t a - t y p e s t B A S I C 3

r a C t S M a c h i n e L a n g u a g e f l o a t i n g - p o i n t m a d e e a s y 4 H i g h - s p e e d M u l t i p l i e s a n D i v i d e s m m a t h r o u t i n e s e x p l a i n e d . 4 S e c o n d a r y A d d r e s s B i t s u t a e - k n w n t i p s b o j i m B u u e i f i d d 4 I n t e r f a c i n g a n C o n t r o l l i n g t h e A r m a t r o n R o b o t . . 4

l i s t f o r m a t t e r f o t h S y m a s s a s s e m b l e r O V a r i a b l e a n l i n e - n u m b e r c r o s s r e f e r e n c i n g i a s i n g l e c o m m a n d o

m u l t i - f o r m a t c o m p a r e / d i s p l a y u t i l i t y 5 A m i g a S e c t i o n :

A a l t e r n a t i v e t t h e l e c t r o n i c s h e l l - g a m e D < S t o p t h a t G u r u b e f o r e h s t o p s y o u ! 6

A m i g a D i S p a t C h e S T h e A 2 0 0 0 a n d 5 0 0 , n e w s , a n s o m e p r o g r a m m i n g i n s i g h t s 7 C o m p u - t o o n s 7

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

Page 4: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 4/84

Page 5: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 5/84

O u L a s t N e w s s t a n d I s s u e !b e e n j u s t o v e r e i g h t y e a r s t h a t I ' v e b e e n m a k i n g T r a n s a c t o r s , a n

f o a c o u p l e o n e w s l e t t e r s f r o m C o m m o d o r e w h e n t h e i r H P a l o A l t o , a n d o n e o t w o u o C o m m o d o r e i J a p a n , T h T w a

f i r s t C o m m o d o r e p e r i o d i c a l . A t h t i m e G e n e B e a l e s w a d o i n gU s e r N o t e s a n L e L i n d s a y w a s m a k i n g T h P E G a z e t t e

w o u l d b e c o m e C O M P U T E ! M a g a z i n e ) . B u t a s i d e f r o m t h i n f o r m a t i o n w a s c a r c e a n t h b i g u y s p r i n t e d C o m m o d o r e

a r t i c l e s o o c c a s i o n o n l y .

t h e r e w a t h e x p l o s i o n . C O M P U T E a n G a z e t t e h a s t r o n ga n C o m m o d o r e s t a r t e d p u b l i s h i n g t w s l i c k e f f o r t s o f t h e i r

O t h e r i n d e p e n d e n t p u b l i s h e r s f o l l o w e d . B u T h T r a n s a c t o rs t a y h u m b l e n e w s l e t t e r f o a n o t h e r y e a r . O J u n e 1 1 9 8 2 ,

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

h o t t y p e s e t i m o n t h , a n s h i p p e d V o l u m e 4 I s s u e 0 h a n d f u l l o m a g a z i n e r a c k s t h a t O c t o b e r . S u r p r i s i n g l y , w d i w e l l

g " b e c a u s e T h T w a s t i l l j u s t n e w s l e t t e r , e x c e p t i h a c o v e r a n t h a r t i c l e s w e r e t y p e s e t i n s t e a d o p r i n t e d o t h

h a v e t l a u g h w h e n l e a f t h r o u g h o n o t h o s e o l i s s u e s ,l i k e l o o k i n g a y o u r f i r s t p r o g r a m i B A S I C . w a s n ' t s a t i s f i e da a r t i c l e d i d n ' t e n a t h b o t t o m o p a g e , b u t a t h t i m eh a v e t h s k i l l t d b e t t e r . W s t o r e e a c h i s s u e o 2 5 6 K , 8

T h a t f i r s t i s s u e n e e d e d o n t h i s i s s u e w w e n t t h r o u g h f i v e !

t h e i n f o r m a t i o n w a s o l i d a n t h T o r o n t o a r e a h a a h i g ho t e c h n o c r a t s l o o k i n g t a s s i m i l a t e a n d i s s e m i n a t e . I

t h e c o n t e n t m a h a v e b e e n t o s o l i d .

f o l l o w i n g J u n e w a p p r o a c h e d M a s t e r M e d i a , a n a t i o n a l n e w sd i s t r i b u t o r . T h e y w e r e s k e p t i c a l a b o u t s h i p p i n g a n o t h e r c o

t i t l e t p o t e n t i a l l y s a t u r a t e d s h e l v e s , b u d e c i d e d t g i v e u s g T h e i r U . S . c o u n t e r p a r t , C a p i t o l D i s t r i b u t i n g , d i d n ' t t a k e u o

t h s a m e r e a s o n . B u t a f t e r t h C a n a d i a n m a r k e t s h o w e d s a l e si m p r o v i n g , t h e y r e c o n s i d e r e d . I J u n e ' 8 4 , 1 6 , 0 0 0 T r a n s a c

w o u l d f i n d t h e i r w a t s t a n d s a c r o s s t h e U . S . , a n s o m e e v e n t S . A m e r i c a , a n A u s t r a l i a .

c a m e p i l i n g i n B o t h M a s t e r M e d i a a n d C a p i t o l i n c r e a s e d t h e i re v e r y i s s u e a n d w o u l d s e l l 5 0 o t h e c o p i e s o r m o r e ( 3 0 %

a t h n e w s s t a n d i c o n s i d e r e d e x c e l l e n t b p u b l i s h e r s ) . T h p r i n t o r d e r p e a k e d a 5 3 , 0 0 0 .

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

i n f o r m a t i o n w h a t o f f e r h a m u c h s m a l l e r m a r k e t t h a ng l o s s y f u l l - c o l o u r m a t e r i a l f r o m o u c o m p e t i t o r s . H o w e v e r , w

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

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

t h e s c i e n c e o c o m p u t e r s .

M a n y t h i n g s h a v e h a p p e n e d o v e r t h y e a r s ( w h i c h s e e m l i k em o n t h s ) , a n w i t h i n m o n t h a n o t h e r m i l e s t o n e w i l l b p l a n t e d .M y s e l f , R i c h a r d , C h r i s a n N i c k h a v e p l a c e d a o f f e r w i t h o u r p a r e n tc o m p a n y t p u r c h a s e T r a n s a c t o r P u b l i s h i n g I n c . T h o f f e r h a a l b u b e e n s i g n e d . W t a k e p o s s e s s i o n a f t e r t h i s i s s u e i s h i p p e d , a n y o u ' l ls e t h a t n e a d d r e s s e s a r o t h b a c k o o u s u b s c r i p t i o n c a r d . O u n e H i 1 5 0 0 s q u a r e f o o t u n i t i p r o f e s s i o n a l p l a z a j u s t N o r t h o T o r o n t o , a n t h b u i l d e r s s h o u l d b e s t a r t i n g w o r k o o u t w o - s t o r e yo f f i c e l a y o u t a n d a y .

U n f o r t u n a t e l y , t h e n e w s s t a n d d i s t r i b u t i o n b u s i n e s s i j u s t t o o t o u g h .S t a n d a r d p a y m e n t t e r m s a r 1 2 d a y s f r o m t h " o f f - s a l e " d a t e . S i n c ew p u b l i s h o n c e e v e r y t w o m o n t h s , i t a k e s m o n t h s f r o m t h d a y a ni s s u e i p r e s s e d t t h d a w r e c e i v e p a y m e n t f o t h l a s t c o p y s o l d .O u p r i n t e r w o n ' t w a i t t h a t l o n g , a n b e t w e e n t h f o u r o f u s , w c a n ' tf l o a t t h a t k i n d o f f i n a n c i n g . S u n l e s s w c a f i n d a n o t h e r m e t h o d f o g e t t i n g T r a n s a c t o r s t t h m a g a z i n e r a c k s , t h i s w i l l b o u l a s tn e w s s t a n d a p p e a r a n c e .

H o w e v e r , t h n e w s s t a n d s a l e s d n o g e n e r a t e a l o o r e v e n u e . I f a c t ,t h e y ' r e n o s u p p o s e d t o T h a t m a s o u n d a b s u r d , b u t l i k e s a i d ,n e w s s t a n d s a l e s a r s u p p o s e d t g e n e r a t e s u b s c r i p t i o n s . p u b l i s h e r s 'm a i n g o a l a t h n e w s s t a n d i t b r e a k e v e n . A d v e r t i s i n g r a t e s a r d r i v e n b t o t a l s a l e s , a n t h a t ' s w h e r e t h p r o f i t l i e s . O c o u r s ea d v e r t i s i n g r e v e n u e a T h T a c c o u n t s f o o n l y s m a l l d e p o s i t a t h b a n k . H o w e v e r , b e t w e e n s u b s c r i p t i o n s , d i s k s , a n o u a n c i l l a r yp r o d u c t s , i n c o m e f r o m C o m p u S e r v e , a n d T P U G ' s r e g u l a r p u r c h a s e ,w e ' v e m a n a g e d t d r a t h e r w e l l . A N D , w e x p e c t t c o n t i n u e d o i n gw e l l !

T h e r e w i l l b o t h e r c h a n g e s , m o s t l y c o s t c u t t i n g . T h p a p e r w p r i n to i t h s e c o n d m o s t e x p e n s i v e a v a i l a b l e . W w o n ' t b r e g r e s s i n g t n e w s p r i n t o r a n y t h i n g , b u t t h e f a m i l i a r c o a t e d s t o c k u s e d i m o s tp u b l i c a t i o n s a c t u a l l y c o s t s l e s s , a n i m o r e a p p e a l i n g t a d v e r t i s e r s .Y e p , a d v e r t i s e r s . A n i a n y o n e y o u k n o w i i n t e r e s t e d i a s p a c e ,w e ' r e a l e a r s ! E v e n i i n t e r e s t i h i g h , t h o u g h , g u a r a n t e e a l e a s tm e o t y p e p e r i s s u e a u s u a l .

B u a c c o r d i n g t m c a l c u l a t i o n s , t h e r e ' s a l e a s t 2 5 , 0 0 0 o y o l i s t e n i n g t m b l a b b e r r i g h t n o t h a t a r e n o t c u r r e n t l y s u b s c r i b i n g .A n w n e e d y o u r h e l p . B e s i d e s , y o w o n ' t b e a b l e t g e T r a n s a c t o r sa n o t h e r w a y , t h e y ' l l c o m e r i g h t t y o u r d o o r , a n y o u ' l l b g e t t i n gt h e m f o l e s s t h a n t h e y c o s t y o n o w . O u n e x t i s s u e w i l l f e a t u r eo p e r a t i n g s y s t e m s a n i t ' s l o o k i n g l i k e g o o d o n e . P o r t h o s , A r a m i s ,D ' A r t a g n a n , a n m y s e l f w a n t t k e e p s m a s h i n g o u t T r a n s a c t o r s ,h o p e f u l l y a s m u c h a y o u w a n t t k e e p g e t t i n g t h e m ! S i y o u ' v e e v e rc o n s i d e r e d s u b s c r i b i n g b e f o r e , n o i t h t i m e !

K a r l J . H . H i l d o n , E d i t o r i C h i e fT r a n s a c t o r J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 6: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 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 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 e 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 d i s p l a y i n g 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 c h e c k a g a i n s t t h e c o r r e s p o n d i n 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 e 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 a d a t a o r 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 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 r 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 a 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 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 u 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 t h e 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 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 d a t a s e t t e b 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 L 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 . o 4 . 0 )1 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 v e r s i o n2 0 c s3 f o = 6 3 4 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 * * * * * " : e n 7 r e 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 ,1 0 6 0 d a t a 2 5 4 , 1 , 1 3 3 ,1 0 7 0 d a t a 0 2 , 1 6 8 ,1 0 8 0 d a t a 1 6 5 , 2 5 3 ,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 ,1 1 2 0 d a t a 1 4 1 , 1

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

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

2 5 1 , 1 6 2 0 1 , 3

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

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

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

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

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

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

2 , 1 6 51 4 4 , 1 6 1 6 5 , 2 1 7

5 8 1 7 2 5 3 , 1 8 92 3 0 , 2 5 32 3 6 ,2 2 9 , 1 6

0 , 1 2 81 0 5 , 1 9

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

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 r e v i c / 6 4 v e r s i o n2 c 3 f o 8 2 t 9 5 8 : r e a d a : p o k e i , 4 0 c s c a : n e x t5 0 6 i c s < > 1 4 7 5 5 t h e n p r i n t " * * * * * d a t a e r r o r7 0 r e m s y 8 2 8 e n 1 0 0 :1 0 0 0 d a t a 7 6 7 4 1 0 1 0 d a t a 2 5 2 , 1 4 1 ,1 0 2 0 d a t a 3 , 2 4 0 ,1 0 3 0 d a t a 2 5 1 , 1 6 9 ,1 0 4 0 d a t a 3 , 3 ,1 0 5 0 d a t a 0 , 1 6 0 ,1 0 6 0 d a t a 3 2 , 2 4 0 ,1 0 7 0 d a t a 1 3 3 , 9 0 ,1 0 8 0 d a t a 2 3 2 , 2 0 8 , 2 2 9 ,1 0 9 0 d a t a 3 2 , 2 1 0 , 2 5 5 ,1 1 0 0 d a t a 8 9 , 4 1 , 1 5 1 1 1 0 d a t a 1 6 5 , 8 9 , 7 4 ,1 1 2 0 d a t a 3 2 , 2 1 0 , 2 5 5 ,1 1 3 0 d a t a 3 2 , 2 4 0 , 2 5 5 ,1 1 4 0 d a t a 1 0 1 , 8 9 , 1 3 3 ,

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

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

9 1 3

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

5 6 1 6 9 ,

2 4 1 0 7 4 7

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

8 9 9

0 2 , 2 4 02 0 0 , 1 5 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

' : e n d

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 y s h o w i n g t h e t w o - l e t t e r v e r i f i z e r c o d e o nb 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 e 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 J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 7: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 7/84

K B D

G I

E K K F L

1 0 f o a = 6 7 9 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 , 01 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

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

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 ) .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 V e r i f i z e 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 i m e m o r y . M a k e t h f o l l o w i n g a d d i t i o n s a n c h a n g e s t t h V I C /

V E R I F I Z E R l o a d e r :

I

I

3 f o = 8 5 0 t 9 8 0 : r e a d a p o k e i , 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 7 0 r e m 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 e1 0 0 0 d a t a 7 6 9 6 3 , 1 6 5 , 2 5 1 , 1 4 1 , 2 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 ,1 0 7 0 d a t a 1 3 3 , 9 0 3 2 , 2 0 5 , 3 , 1 9 8 , 9 0 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 ] "2 0 1 0 f o 8 5 t 9 8 2 0 2 0 a $ = a $ c h r $ ( p e e k ( i ) ) : n e x t2 0 3 0 o p e n 1 , 1 , 1 , a $ : c l o s e2 0 4 0 e n

3 1 6 3 1 4

1 6 , 2 4 9

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 ( u s e at 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 t

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 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 t a p e

a b o v e a n d 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 tO P E N 1 : C L O S E 1 . 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 ,

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 et h 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 a c t i v a t e ,

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 ,

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 eY 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 dr i n g a 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

f i r s t w i l l u s u a l l y r e s u l t i c r a s h . I y o w i s h t u s a g a i n a f t e r u s i n g t h 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

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

J

1 0 0 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 1 0 1 0 r e m 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 < > 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 4 0 9 9 : r e t d i s a b l e "1 0 8 0 e n d

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

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

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

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

D L G D G C C P D B B

1 1 4 0 d a t a1 1 5 01 1 6 01 1 7 0

d a t ad a t a

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

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

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

d a t ad a t ad a t ad a t ad a t ad a t a

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

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

0 1 6 5 , 2 1 0 ,9

1 6 4

2 0 3

3 1 1 5

2 0 8 ,1 4 1 ,

2 4

0 , 1 6 0 , 0 , 1 8 91 4 4 , 7 , 2 0 1 , 5 2 4 2 , 1 8 9 , 0 2 4 0 , 1 5 , 1 3 3 , 2 1 01 3 3 , 2 0 9 , 3 2 , 1 1 32 4 9 , 2 3 2 , 2 0 8 , 2 2

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

1 1 2 , 1 0 8 , 2 1 11 0 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 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 s 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 d

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

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

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

3 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 ,

3 1 6

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

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

2 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

3 2 , 2 4 0 , 1 5 , 1 3 3 , 2 5 2 , 2 0 03 , 1 3 3 , 2 5 1 , 3 2 , 1 3 5 , 1

1 6 , 2 4 9 , 2 3 2 , 2 0 8 , 2 2 9 , 5 1 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 1 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 2 4 , 1 0 5 , 1 9 3 , 3 2 , 2 1 0 , 2 5 5 , 1 6 51 2 3 0 d a t a 2 5 0 , 7 4 7 4 , 7 4 , 7 4 , 2 4 , 1 0 5 , 1 9 31 2 4 0 d a t a 3 2 , 2 1 0 , 2 5 5 , 1 6 9 , 1 4 6 , 3 2 , 2 1 0 , 2 5 51 2 5 0 d a t a 2 4 3 2 , 2 4 0 , 2 5 5 , 1 0 8 , 2 5 3 , 0 , 1 6 51 2 6 0 d a t a 2 5 2 , 2 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 i 2 8 ,

1 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 c 3 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 ,4 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 * 6 r e b a n k 1 5 s y 1 0 2 47 e n 1 0 0 0 d a t a 7 6 1 4 4 , 1 6 5 , 2 5 1 , 1 4 1 , 1 3 0 ,1 0 1 0 d a t a 1 4 1 , 1 3 1 , 2 9 6 , 1 7 3 , 1 3 0 , 2 1 0 2 0 d a t a 1 7 , 1 3 3 , 2 5 1 , 1 7 3 , 1 3 1 , 2 , 1 3 3 ,1 0 3 0 d a t a 1 4 1 , 1 3 0 , 2 , 1 6 9 , 4 , 1 4 1 , 1 3 1 ,1 0 4 0 d a t a 1 7 2 , 1 6 2 , 1 , 1 3 4 , 1 , 2 0 2 ,1 0 5 0 d a t a 2 3 3 , 3 2 , 1 1 8 , 4 , 2 3 4 , 1 7 7 , 1 3 6 ,1 0 6 0 d a t a 3 2 , 2 4 0 , 1 5 , 1 3 3 , 2 3 5 , 2 3 2 , 1 3 8 ,1 0 7 0 d a t a 2 3 4 , 3 2 , 1 1 0 , 4 , 1 9 8 , 2 3 4 , 1 6 1 0 8 0 d a t a 2 3 0 , 1 6 5 , 2 3 3 , 4 1 1 5 1 0 9 0 d a t a 2 0 8 , 1 6 5 , 2 3 3 , 7 4 , 7 4 ,1 1 0 0 d a t a 1 4 1 , 1 , 2 0 8 , 2 4 , 1 0 4 ,1 1 1 0 d a t a 1 6 5 , 2 3 5 , 2 4 , 1 0 1 , 2 3 3 ,1 1 2 0 d a t a 1 6 4 , 1 3 7 , 1 3 3 , 1 3 3 , 1 3 2 ,1 1 3 0 d a t a 3 2 7 8 , 1 4 1 , 1 6 5 , 1 3 3 ,1 1 4 0 d a t a 1 7 0 , 1 7 0 , 1 7 0 , 1 7 0

2 4 , 1 0 5 .7 4 7 4

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

5 6 2 2 9 ,

e n

2 1 6 5 , 2 5 22 0 1 , 3 9 , 2 4 02 5 2 , 1 6 9 , 3

2 9 6 , 1 6 51 6 5 , 2 7 , 1 3 32 4 0 , 2 2 , 2 0 1

4 1 3 , 1 3 32 4 9 , 2 0 0 , 2 0 1 9 3 , 1 4 1 ,

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

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

1 3 6 , 1 6 8 , 9

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

Page 8: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 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 ' I 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 u a 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

C - 1 2 8 E a s y P r o g r a m L o a d i n g M a r t i n H o f h e i n zS t o c k t o n , C

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

d s a v e " 0 : p r o g r a m n a m e < s h i f t s p a c e > :

T h i s s h o w s u i t h d i r e c t o r y a s

p r o g r a m n a m e " :

( t h e s h i f t e d s p a c e s h o w s u a a q u o t e ) . N o y o u c a n l o a dp r o g r a m d i r e c t l y f r o m a d i r e c t o r y d i s p l a y j u s t r u t h e c u r s o r u t h l e f t m a r g i n o t h d i r e c t o r y u n t i l y o g e t t h p r o g r a m y o w a n t t o l o a d , p r e s s < F 2 > a n < r e t u r n > , a n t h p r o g r a m l o a d sw i t h o u t a n t y p i n g !

Y o c a u s t h r e n a m e c o m m a n d t c h a n g e t h e x i s t i n gp r o g r a m s o t h e d i s k t t h n e s h i f t - s p a c e f o r m a t .

C - 1 2 8 8 0 - C o l u m nI n t e r r u p t R o u t i n e s

S t e p h a n e L a r o c h eS t e - F o y , Q u e b e c

H a v e y o e v e r h a t r o u b l e p r o g r a m m i n g t h 8 5 6 3 c h i p ( 8 0 -c o l u m n d i s p l a y c o n t r o l l e r ) t h r o u g h a i n t e r r u p t r o u t i n e ? D u t t h w a y o p r o g r a m t h i s c h i p , y o h a v e t d e s i g n a i n t e r r u p tt h a t w o n ' t a c c e s s t h e 8 5 6 3 a t h s a m e t i m e p r o g r a m ( o t h b u i l t - i n 8 0 - c o l u m n s c r e e n e d i t o r ) d o e s . c l o c k t h a t i d i s p l a y e dc o n t i n u o u s l y o t h 8 0 - c o l u m n s c r e e n i a e x a m p l e o p r o g r a m t h a t n e e d s t u s s u c h a i n t e r r u p t .

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

I d $ 0 1 0 7 , xc m # $ c 0b c U I R Qc m # $ d 0b c H I R Q

U I R Q j m ' y o u r i n t e r r u p t 'H I R Q j m $ f a 6 5

T h i s w i l l w o r k n i c e l y w h e n y o a r e u s i n g B A S I C o t h m o n i t o r .I y o a r r u n n i n g m a c h i n e l a n g u a g e p r o g r a m , m a k e s u r e t h a te v e r y r e a d o r w r i t e t t h 8 5 6 3 i m a d e t h r o u g h t h r o u t i n e s a $ C D C C a n $ C D D A .

C - 1 2 8 C A P S - l o c k q F i H a V W e a n tH i g h P o n t , N o r t h C a r o l i n a

A u n d o c u m e n t e d f e a t u r e o t h C o m m o d o r e 1 2 i t h ' q k e t h a t w i l l n o r e s p o n d t t h c a p s l o c k k e y . T h p r o b l e m t u r n s o u s i m p l y t b t h e r e p r e s e n t a t i o n i t h k e y b o a r d l o o k u p t a b l eu s e d f o t h l e t t e r w h e n t h c a p s l o c k k e i d e p r e s s e d . T h v a l u e o $ 5 i f o u n d w h e r e v a l u e o $ D s h o u l d b e

T h c u r e i s i m p l e , b u t i w i l l r e q u i r e p r o g r a m m i n g a E P R O M .F o t h i s r e a s o n i i b e s t t h a t y o a r e a t e c h n i c a l l y i n c l i n e dp e r s o n w h i c o m f o r t a b l e w i t h d i s m a n t l i n g t h e C - 1 2 8 o h a v es o m e o n e o n h a n d w h i s Y o w i l l a l s o n e e d t h a v e o h a n dP r o m e n a d e E P R O M p r o g r a m m e r a n w o r k i n g C - 6 4 o C - 1 2 8f o b u r n i n g t h c h i p .

T h c h i p t r e m o v e a n d c o p y i U 3 ( n e x t t t h e s o c k e t f o t h i n t e r n a l f u n c t i o n R O M ) . A f t e r t h P r o m e n a d e i m a d e f u n c t i o n a lo t h w o r k i n g c o m p u t e r , c o p y t h E P R O M U 3 i n t o c o m p u t e rm e m o r y w i t h t h P r o m e n a d e c o m m a n d :

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

A f t e r t h a t o p e r a t i o n , c h e c k f o a 8 w i t h p e e k ( 2 3 5 8 6 ) t b s u r e e v e r y t h i n g i i i t p r o p e r p l a c e . N e x t , p o k e 2 3 5 8 6 w i t h 2 0 a n t h e n b u r n n e c h i p w i t h

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

I n s t a l l t h n e c h i p i t h U 3 s o c k e t a n r e a s s e m b l e t h C 1 2 8 . Y o s h o u l d n o f i n d t h c a s e o c a p s l o c k l i t t l e s o l v e d .

N o t e 1 T h c o n t r o l w o r d a n d p r o g r a m m e t h o d w o r d u s e d w i t ht h P r o m e n a d e a r e t h e o n e s t h a t w o r k f o t h c h i p s f o u n d i m o s t C - 1 2 8 s . C h e c k t h P r o m e n a d e m a n u a l t b s u r e o t h p r o p e r c o d e s .

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

Page 9: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 9/84

2 I y o u r C - 1 2 8 s h o u l d h a v e 3 2 E P R O M s i n s t e a d o 1 6 a d j u s t t h e a d d r e s s e s t c o p y t h w h o l e 3 2 k i . e .

5 9 a n p o k e 3 9 9 7 0 , 2 0 9 .

3 E P R O M s u s e d a r 2 7 1 2 8 ( 1 6 k ) o 2 7 2 5 6 ( 3 2 k ) . 3 2 c h i p sn o b e e n f o u n d i a n 1 2 8 s h e r e , t h o u g h t h s c h e m a t i c

i t b d e s i g n e d f o 1 6 o r 3 2 c h i p s .

B u l l e t - P r o o f W i n d o w s D . J . M o r r i s sT o r o n t o , O n t a r i o

w i n d o w s o t h C - 1 2 8 h a v e o n f a u l t : t h e y ' r e t o f r a g i l e .g e n i c e p r o m p t l i n e a l s e u p t h e n y o a c c i d e n t a l l y h i

t w i c e a n t h w i n d o w i " s m a s h e d " . H e r e ' s h o t s e u w i n d o w , a t h b o t t o m o t h e s c r e e n .

P l a c e t h e t e x t t h a t y o u w a n t p r o t e c t e d a t h b o t t o m o t h s c r e e n ; u s a n t e x t c o l o u r s t h a t y o l i k e , a n u s a m a n yl i n e s a y o l i k e .P l a c e t h e c u r s o r f e l i n e s f r o m t h t o o t h e s c r e e n . P r e s sE S t e s t a b l i s h w i n d o w .E n t e r P O K E 2 3 7 , 2 3 t p r o t e c t o n l i n e ; f o e a c h a d d i t i o n a ll i n e p r o t e c t e d , d e c r e a s e t h v a l u e p o k e d b o n e .C l e a r t h e w i n d o w w i t h t w H O M E s .

i t T h b o t t o m l i n e ( s ) o t h s c r e e n a r n o u n t o u c h a b l e ,i n e w i n d o w s a r s e u a n c o l l a p s e d . T h i s w o r k s i 4 0 - a n d 8 0 - c o l u m n m o d e , p r o v i d e d y o s e u t h

e c t e d a r e i b o t h s c r e e n s . T h p r o t e c t e d a r e a c a n b ef o t h t w s c r e e n s .

8 0 - C o l u m no T e l e v i s i o n

B i l l W a l t o nS t J o h n , N e B r u n s w i c k

f i r s t p u r c h a s e d m C - 1 2 8 , o n o t h f i r s t t h i n g st t r w a t h C P / M m o d e . s o o n f o u n d t h a t n e e d e d

n e o p e r a t i n g s y s t e m ( t h e m o d e m s u p p o r t v e r s i o n ) i t g e v e r y f a w i t h i a a l l . A t h t i m e d i d n o t h a v e t h

8 0 - c o l u m n m o n i t o r a n w a i f a c t u s i n g s m a l l c o l o u ri o n a m o n i t o r . f o u n d t h a t w a i a c a t c h 2 s i t u a t i o n .

8 c o l u m n s t u s t h p r o g r a m " c p m t e r m l 2 8 " ( n e e d e dd o w n l o a d t h n e o p e r a t i n g s y s t e m ) a n i o n l y w o r k s i 8 0

m o d e . M s o l u t i o n a t h t i m e w a n o t r u o u a n 1 9 0 2 m o n i t o r , b u t t o f i n d w o r k a b l e w a t g e 8

o m T V f o u n d r a t h e r s i m p l e a n i n e x p e n s i v e w a d j u s t t h a t a n t h o u g h t w o u l d p a s s i a l o n g t r e a d e r s o t h

t h a t i n e e d e d i t h r e e r a t h e r i n e x p e n s i v e p i e c e s o h a r dw h i c h h a v e l i s t e d b e l o w , a n c o u p l e o f s t r i p s o f s c r a p

t c o n n e c t i a l t o g e t h e r .

D - s u b m i n i a t u r e m a l e p l u g ( R a d i o S h a c k p a r t # 2 7 6 -1 5 3 7 )a R F - m o d u l a t o r ( R a d i o S h a c k p a r t 2 7 7 - 2 2 1 ) ( a o l V I R m o d u l a t o r w o r k s w e l l , i t ' s w h a t u s e d )

t 7 v o l t p o w e r s u p p l y ( R a d i o S h a c k p a r t 2 7 3 - 1 4 5 4 )

Y o b e g i n t h h o o k u p a i y o w e r e g o i n g t h o o k y o u r C - 1 2 8t 1 7 0 2 m o n i t o r . F i r s t c o n n e c t t w s h i e l d e d w i r e s t t h 9 - p i nD I p l u g . O n w i r e g o e s t p i n # 1 o r # ( g r o u n d c o n n e c t i o n s ) ,t h s e c o n d w i r e g o e s t p i # 7 t h m o n o c h r o m e o u t p u t . R u t h e s e t w w i r e s t t h R m o d u l a t o r , c o n n e c t i n g t h m o n oc h r o m e o u t p u t f r o m p i t t h v i d e o i n p u t , a n t h o t h e r l i n et t h g r o u n d c o n n e c t i o n . I y o a r u s i n g V I R m o d u l a t o r ,o p e n t h c a s e t f i n d o u w h e r e t h c o n n e c t i o n s s h o u l d g o - t h e ya r l a b e l l e d o t h c i r c u i t b o a r d ( t h e g r o u n d l i n e c o n n e c t s t t h c a s e i t s e l f ) .

A f t e r t h v i d e o a n g r o u n d l i n e s h a v e b e e n c o n n e c t e d , a l t h a tr e m a i n s i t c o n n e c t p o w e r t t h R m o d u l a t o r . T h e p o w e rc o n n e c t i o n s o t h R a d i o S h a c k R m o d u l a t o r a r f a i r l y s t r a i g h tf o r w a r d c o n n e c t t h e m t o t o t h p o w e r s u p p l y p o w e r o u t p u t s ,o b s e r v i n g p o l a r i t y . O t h V I R m o d u l a t o r , t h e r e d w i r e i t h " h o t " ( p o s i t i v e l e a d ) , a n t h c a s e s e r v e s a g r o u n d ( n e g a t i v e ) .

L a s t l y , a l t h a t i n e c e s s a r y i t p l u g a s h i e l d e d c a b l e f r o m t h R o u t p u t a n r u i t y o u r T V / c o m p u t e r s w i t c h , o r d i r e c t l y t ot h T a n t e n n a t e r m i n a l s . T u r n t h p o w e r o t t h R m o d u l at o a n t u r n y o u r c o m p u t e r o n i 8 0 - c o l u m n m o d e .

F o t h o s e l i t t l e m o r e a d v e n t u r o u s , y o c a t a t h n e e d e dp o w e r d i r e c t l y f r o m t h C - 1 2 8 . T h e r e a r s e v e r a l l o c a t i o n sa v a i l a b l e w h e r e t h n e e d e d 5 v o l t s c a c o m e f r o m , i n c l u d i n g :p i # f r o m t h u s e r p o r t , p i b - f r o m t h c a s s e t t e p o r t , a n p i f r o m e i t h e r j o y s t i c k p o r t . I s h o u l d b k e p t i m i n d ,h o w e v e r , t h a t o p e n i n g t h c a s e t m a k e t h e s e c o n n e c t i o n s w i l lv o i d a n w a r r a n t i e s , a n s s h o u l d n o b d o n e o n e m a c h i n e .

f o u n d t h a t t h i s s o l u t i o n w a c a p a b l e o p r o d u c i n g v e r y g o o d8 0 - c o l u m n s c r e e n c o n s i d e r i n g t h e e q u i p m e n t u s e d a n t h f a c ty o a r u s i n g t e l e v i s i o n a s a o u t p u t d e v i c e . A l s o f o u n d t h h o o k u p w a q u i c k a n e a s y t d a n r e q u i r e d n p e r m a n e n tc h a n g e s t m c o m p u t e r .

1 5 4 1 H a l f - T r a c k F i G e o f f R o V i c t o r i a , A u s t r a l i a

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

1 o p e n 1 5 , 8 , 1 5 , " i O "2 0 p r i n t # 1 5 , " m - w " c h r $ ( 2 5 4 ) c h r $ ( 2 ) c h r $ ( 1 ) c h r $ ( 1 )3 c l o s e 1 5 e n

L i n e 2 w r i t e s t P H A S E ( l o c a t i o n $ 0 2 F E ) , w h i c h i c h e c k e dd u r i n g e a c h i n t e r r u p t b t h c o d e i d i s k R O a $ F 9 9 C . I t h v a l u e o P H A S E i s 1 , t h e n t h e r o u t i n e i n c r e a s e s P H A S E t 2 a n s t e p s t h h e a d b h a l f t r a c k .

C h e c k b v a l i d a t i n g d i s k . I y o g e e v e n m o r e e r r o r s a f t e rr u n n i n g t h i s p r o g r a m , t h e n y o c a j u s t r e r u n t h p r o g r a m t r e t u r n t t h i n i t i a l s t a t e .

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

Page 10: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 10/84

T h D r i v e l i g h t Z o n e

W e l l , w o u l d n ' t h a v e b e l i e v e d i u n l e s s i h a p p e n e d t m e a n n o i h a s .

w a h a v i n g t r o u b l e w i t h m 8 0 5 0 d r i v e 0 L o a d i n g p r o g r a m sw a s b e c o m i n g r e a l b o t h e r , e s p e c i a l l y l o n g o n e s . T h e r r o r L E w o u l d f l i c k e r , a n D O w o u l d o c c a s i o n a l l y d h e a d - b u m p ,c r e a t i n g f o s o m e r a t h e r l e n g t h y w a i t s . P r o g r a m S A V E s o w r i t i n g a S E f i l e h a b e c o m e i m p o s s i b l e o d r i v e 0 b u m a n a g e d t c o p e , u s i n g d r i v e f o n e a r l y e v e r y t h i n g .

W h e n f i g u r e d c o u l d l i v e w i t h o u t m 8 0 5 0 f o w h i l e ,d e c i d e d i w a t i m e t g e h e s e r v i c e d . T h o l s w e e t h e a r t w e n ta l m o s t y e a r s w i t h o u t s m u c h a s p e e k u n d e r t h h o o d . w e n ti t p i c k h e u p a n d w a t o l d , " w c a n ' t f i n d a n y t h i n g w r o n gw i t h i t " . D i s r e g a r d i n g t h s o m e w h a t i m p e r s o n a l r e f e r e n c e ,i m m e d i a t e l y b e g a n p r o c e s s o e l i m i n a t i o n t h a t l a s t e d a l t h w a h o m e .

" C o u l d h a v e b e e n m i s t a k e n ? W a j u s t i m a g i n i n g a l t h o s er e a d e r r o r s ? N o M a y b e j u s t d i d n ' t h i h e h a r d e n o u g h a h o m ea n d w h a t e v e r c h i p w a l o o s e g o t j a r r e d o t h w a i n e n o u g h t m a k e h e s t a r t w o r k i n g a g a i n . M a y b e m d i s k e t t e s w e r e b a d .N o t h e y w o r k e d f i n e i d r i v e 1 O w e l l , f o r g e t a b o u t i i t ' sb a c k t n o r m a l n o a n c a g e o w i t h m n e x t t a s k . "

O s t h o u g h t . c a r t e d h e r d o w n s t a i r s , s e h e u p c o n n e c t e dt h c a b l e s , d i s k i n a n A r g h g h ! I t ' s d o i n g t h s a m e t h i n g a b e f o r e !

w e n t b a c k t C o m m o d o r e a n d w a t c h e d a t h e y t e s t e d i w i t h n a p p a r e n t p r o b l e m s . S w h a t c o u l d i b e " C h e c k y o u r e n v i r o nm e n t " , s a i d R o y . S i n c e d i d n ' t h a v e b e t t e r i d e a , t h a t w a w h a tw o u l d d o

M 8 0 5 0 s i t s o s h e l f t t h l e f t o B & m o n i t o r t h a t ' sc o n n e c t e d t o n o m C 6 4 ' s . m o v e d t h 8 0 5 0 a f a l e f t a c o u l d , a n t h m o n i t o r a f a t t h r i g h t a p o s s i b l e . L i k e s a i d ,w o u l d n ' t h a v e b e l i e v e d i u n l e s s i h a p p e n e d t m e J u s t t b s u r e , m o v e d t h m o n i t o r b a c k u p t t h s i d e o t h d r i v e a g a i n ,a n t h e r e a d e r r o r s r e t u r n e d . T u r n o f t h m o n i t o r , s t a r tL O A D . . n o p r o b l e m u n t i l t h i n s t a n t t u r n e d t h m o n i t o r b a c ko n

d o n ' t k n o w w h e n i w a t h a t m m o n i t o r g o t t o o c l o s e t t h 8 0 5 0 , o r v i c e v e r s a . A l d k n o w i t h a t w a s t e d t w r o u n d t r i p st C o m m o d o r e , a n c o u n t l e s s h o u r s d e a l i n g w i t h t h a b s e n c e o t h s o m e t i m e s v i t a l d r i v e 0 E x c e p t f o t h e a g g r a v a t i o n , t h e x p e r i e n c e w a w o r t h i a n I ' g l a d c a p a s s i a l o n g . E v e nt h o u g h m t r o u b l e s w e r e w i t h a 8 0 5 0 , 1 s u s p e c t a n d r i v e c o u l df a l l p r e y t t h i s s i t u a t i o n . I f a c t t a p e , v i d e o , o a n u n i t w i t hm a g n e t i c i n g r e d i e n t t i t o p e r a t i o n c o u l d b a f f e c t e d .

M a d v i c e ? M a d v i c e i n o r e a l l y m i n e c r e d i t g o e s t a a s t u t e R o y R o b i n s o n o C o m m o d o r e C a n a d a . E v e n i y o h a v e n ' tm o v e d y o u r e q u i p m e n t , y o m i g h t s a v e y o u r s e l f p o t e n t i a l l ye x p e n s i v e t r i p t y o u r s e r v i c e c e n t e r b s i m p l y " c h e c k i n g y o u re n v i r o n m e n t " . E s p e c i a l l y i i t ' s r e a d e r r o r s f r o m d i s k . T r m o i n y o u r d r i v e a w a y f r o m y o u r m o n i t o r . T r e n t e r i n g t h e c o

m a n d , t u r n y o u r m o n i t o r o f f , a n t h e n h i R e t u r n . T r c h a n g i n gr o o m s i y o u h a v e t o T r y o u r d r i v e w i t h f r i e n d ' s s y s t e m i y o c a n . A n i y o e l i m i n a t e t h e t r o u b l e , i n v o k i n g i a g a i n i n o o n l y e x c e l l e n t r e i n f o r c e m e n t , b u t a l s o g i v e s y o f e e l i n g o a c c o m p l i s h m e n t . B e l i e v e m e k n o w .

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

O b s c u r e C - 6 4 V A b u N i c k S u l l i v a n

T h p r i z e f o t h m o s t o b s c u r e b u i C o m m o d o r e B A S I C g o e s ,w t h i n k , t a r e c e n t l y - d i s c o v e r e d p r o b l e m w i t h t h V A f u n ct i o n . A y o k n o w , V A r e t u r n s t h e n u m e r i c v a l u e o a A S C I In u m e r a l s t r i n g , a n m o s t o u h a v e b e e n u s i n g i f o y e a r s w i t hn t r o u b l e a a l l . Y e t h c o d e f o V A c o n t a i n s f u n d a m e n t a lf l a w t h a t h a b e e n l y i n g i w a i t f o t h r i g h t c o n d i t i o n s t m a n i f e s t i t s e l f .

T h o s e c o n d i t i o n s w e r e p r e s e n t i t h s e c o n d - l a s t v e r s i o n o t h H e l p ! p r o g r a m t h a t a p p e a r e d i t h T r a n s a c t o r , V o l u m e 7 I s s u e6 B t h t i m e t h b u w a t r a c e d w w e r e n e a r l y r e a d y t g t p r e s s ; t h e r e w a t i m e t c o r r e c t t h p r o g r a m , b u n o t u p d a t et h a r t i c l e . H e n c e t h e r e i s m a l l b u t s i g n i f i c a n t d i s c r e p a n c yb e t w e e n t h t e x t a n t h c o d e .

H e r e i w h a t t h r e l e v a n t p a r t o t h V A r o u t i n e l o o k s l i k e o t h C o m m o d o r e 6 ( i y o u w a n t t s e t h w h o l e t h i n g , i s t a r t sa $ B 7 A D ) . B t h t i m e w g e t t h e p a r t o t h e r o u t i n e l i s t e db e l o w , t h C H R G E T p o i n t e r h a b e e n s a v e d , a n C H R G E T n o p o i n t s t t h s t a r t o t h s t r i n g b e i n g e v a l u a t e d . p o i n t e r t t h b y t e j u s t b e y o n d t h s t r i n g h a b e e n s e u i l o c a t i o n s $ 2 4 / 2 5 .T h " J S R $ B C F 3 " a $ B 7 D A i n v o k e s r o u t i n e t h a t c o n v e r t sn u l l - t e r m i n a t e d s t r i n g , a c c e s s e d t h r o u g h C H R G E T , t f l o a t i n gp o i n t v a l u e i F A 1

B 7 C F I d B 7 D 1 I d B 7 D 3 p h B 7 D 4 t y B 7 D 5 s t B 7 D 7 j s B 7 D A j s B 7 D D p l B 7 D E I d B 7 E 0 s t B 7 E 2

# $ 0 0( $ 2 4 ) , y

( $ 2 4 ) , yc h r g o t$ b c f 3

# $ 0 0( $ 2 4 ) , y

g e b y t e p a s t e n o f s t r i n gs a v e i r e p l a c e i t e m p o r a r i l yw i t h O

I d a w i t h f i r s t b y t e o f s t r i n gc o n v e r t s t r i n g t o f l o a t i n g p o i n tr e c o v e r b y t e p a s t e n o s t r i n g

p u i b a c k w h e r e i c a m e f r o mr e s t o r e c h r g e t p o i n t e r a n e x i t

O k a y , t h e s t r a t e g y h e r e i t m a k e t h s t r i n g t e m p o r a r i l y n u l l -t e r m i n a t e d s t h a t t h e r o u t i n e a $ B C F 3 w i l l k n o w w h e n t s t o p ,t h e n r e s t o r e t h e b y t e b e y o n d t h s t r i n g o n c e t h c o n v e r s i o n t f l o a t i n g p o i n t i d o n e . T h i s a p p r o a c h s a v e s B A S I C t h e e x t r a t i m ea n t r o u b l e o m a k i n g a s e p a r a t e n u l l - t e r m i n a t e d c o p y o t h s t r i n g s o m e w h e r e e l s e b e f o r e d o i n g t h c o n v e r s i o n . S d o y o us e t h b u g ?

T h H e l p ! p r o g r a m u s e d 1 7 - b y t e i n t e r r u p t r o u t i n e t s w i t c ho u t t h e i / c h i p s a n c h a r a c t e r R O s t h a t t h c o d e i t h $ D 0 0 0 R A c o u l d t e s t f o r s p e c i a l k e y p r e s s . T h i s r o u t i n e c o u l dg a n y w h e r e i R A M , b u i t d e f a u l t l o c a t i o n w a a t h t o o B A S I C , j u s t a b o v e s t r i n g s t o r a g e . I w a p r o t e c t e d f r o m b e i n g

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

Page 11: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 11/84

w i t h b B A S I C b l o w e r i n g t h t o p - o f - B A S I C p o i n t e r1 b y t e s , a s d e s c r i b e d i t h a r t i c l e . T h i s s e e m e d l i k e

s a f e t h i n g t d o

n i w a s , u n l e s s y o h a p p e n e d t d V A o t h f i r s t s t r i n ga t e d w i t h i n B A S I C p r o g r a m . W h a t h a p p e n e d t h e n i t h a t

V A r o u t i n e d r o p p e d z e r o o t h f i r s t b y t e o t h I R t n u l l - t e r m i n a t e t h s t r i n g , t h e n w e n t o f f t o c o n v e r t i t

t h i s w a g o i n g o a i n t e r r u p t w o u l d h a p p e n a n t h I R w h i c h n o b e g a n w i t h ( B R K ) i n s t e a d o $ 7 ( S E I )

u l d b e e x e c u t e d . T h i s i a s u r e - f i r e c r a s h .

h s o l u t i o n , o n c e t h b u w a i d e n t i f i e d , w a s i m p l e e n o u g h :j u s t l o w e r e d t h t o o B A S I C b 1 b y t e s i n s t e a d o t h 1 d e d b y t h I R r o u t i n e , t g i v e V A t h b y t e o m a n e u v e rr o o m i r e q u i r e d . A n t h a t i w h t h e H e l p ! a r t i c l e a n t h

p r o g r a m a r e n o t q u i t e i a g r e e m e n t .

R O C o m p a r e K a r l H i l d o n

e G - L i n k o w n e r s ! H a v e a n o y o b e e n e x p e r i e n c i n g t h g l i t c h w i t h y o u r G l i n k ? W e l l s h a v e I a n d e c i d e d i w a t f i n d o u w h y . A n t m c o m p l e t e s u r p r i s e f o u n d t h e r e

a l e a s t t w v e r s i o n s o t h e G l i n k E P R O M .

o n v e r s i o n I ' v e n o t i c e d t h a t a s i m p l e S E f i l e r e a d c a b o m br e a c h i n g t h e n o t h f i l e . W i t h t h o t h e r I ' v e n e v e r s e e n

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

o i h a p p e n e d . H o w e v e r , o n c e m a d e a l t h E P R O M s t h t h t r o u b l e s w e n t a w a y .

T r a n s a c t o r D i s k # 1 ( f o r t h i s i s s u e ) w e ' l l b i n c l u d i n g t h e G R O f i l e s h o u l d y o w i s h t r e - b u r n y o u r E P R O M . I t ' s 4

R f i l e a n i L O A D s t $ 2 0 0 0 .

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

L i n e 1 1 a l o n e i e n o u g h t d e t e r m i n e w h i c h v e r s i o nh a v e . I f a c t , i y o s w i t c h y o u r G l i n k t p a r a l l e l m o d e :

p r i n t p e e k ( 5 7 6 2 5 ) s h o u l d g i v e 1 7

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

a b m o r e , b u d o u b t i t R e g a r d l e s s w h a t v a l u e t h a b o v er e t u r n s , t h e n e x t p a r t o t h p r o g r a m w i l l w r i t e t h

o y o u r G l i n k R O t a d i s k f i l e , a n t h e n p r o c e e d t i w i t h t h f i l e " g l i n k 3 / 8 7 $ 2 0 0 0 " o T r a n s a c t o r D i s k

S u n l e s s y o g e D i s k 1 8 t h e r e ' s n p o i n t e n t e r i n g t h ep r o g r a m .

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

t h a t c r e a t e s p r o g r a m l i s t i n g s w i t h t h V e r i f i z e r c o d e s i " p r o o f g e n " . Q u i t e s i m p l y , y o l o a d p r o g r a m , L I S T i t

t h e n S Y t p r o o f g e n . T h V e r i f i z e r c o d e i c a l c u l a t e d f r o ml i n e i m e m o r y a n w r i t t e n t a o u t p u t f i l e . T h e n t h s a m e

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

S o m e t i m e s w h i l e p r o o f g e n i m a k i n g t h i s f i l e , t h p r i n t e r w i l ls u d d e n l y b e c o m e t h o u t p u t d e s t i n a t i o n , p r i n t i n g e x a c t l y w h a ts h o u l d b g o i n g t d i s k . T h p r o b l e m h e r e c o u l d b i t h p r o o f g e n p r o g r a m , b u i h a p p e n s s r a r e l y t h a t c a n ' t h e l ps u s p e c t i n g t h e G l i n k . I a n y o n e h a n o t i c e d a s i m i l a r p r o b l e m ,l e u k n o w a n w e ' l l g l o o k i n g f o i t

G l i n k C o m p a r e : R U i I E E E m o d e .

L O G

J O I M F K A C M G H P A E F P L

H O K

M L H L H H 0

L L A H

O

O P E J A K

1 0 1 1

1 2

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

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

4 0 4 1 4 2 4 3 4 4 4 5

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

r e g — l i n k r o c o m p a r ei f p e e k ( 5 7 6 2 5 ) 1 7 t h e n p r i n t y o u r g - l i n kr o i p r o b a b l y o k g o t o 1 5 p r i n t " y o u r g - l i n k r o s h o u l d b r e - b u r n e d "p r i n tp r i n tp r i n tp r i n tp r i n tp r i n tp r i n tp r i n tp r i n tp r i n tp r i n tp r i n t

w i t h t h g - l i n k r o f i l e f r o mt r a n s a c t o r d i s k # 1

i y o u w o u l d l i k e t c o m p a r e t h e n t i r e r o w i t h t h g - l i n k r o f i l e o t r a n s a c t o r d i s k 1 8 t h i sn e x t t e s t w i l l w r i t e t h c o n t e n t so y o u r g - l i n k r o t d i s k f i l ea n p r o c e e d t c o m p a r e t h t w f i l e s , w s u g g e s t u s i n g t r a n s a c t o rd i s k 1 s t h a t b o t h f i l e s w i l l b o t h s a m e d i s k e t t e " p r i n t

i n p u t d y o w i s h t c o n t i n u e ( y / n ) " ; a i a s c ( a $ ) < > 8 9 t h e n e n p r i n t : p r i n t c r e a t i n g f i l e ' m g l i n k r o m 'o p e n 8 , 8 , 8 , " 0 : m y g l i n k r o m , p , w "p r i n t # 8 , c h r $ ( 0 ) c h r $ ( 3 2 ) ; : r e m m a k e s t a r ta d d r e s s $ 2 0 0 0f o = 5 7 3 4 4 t 6 1 4 3 9 : r e m g - l i n k r a n g ep r i n t # 8 , c h r $ ( p e e k ( j ) ) ;n e x t : c l o s ep r i n tp r i n t " c o m p a r i n g ' g l i n k 3 / 8 7 $ 2 0 0 0 'p r i n t " f i l e w i t h ' m g l i n k r o m ' f i l ez c h r $ ( 0 )o p e n 8 , 8 , 8 , " O r g l i n k 3 / 8 7 $ 2 0 0 0 , p , ro p e n 9 , 8 , 6 , " 0 : m y g l i n k r o m . p . rg e t # 8 , a $ , a $ : g e t # 9 , b $ , b $ : r e m s t r i p s t a r ta d d r e s s e sf o 5 7 3 4 4 t 6 1 4 3 9g e t # 8 , a $ : a s t i f a $ = t h e n a $ z g e t # 9 , b $ : s t i b $ " t h e n b $ = z i f a $ b $ t h e n 4 7 0

p r i n t " d i f f e r e n c e a " ; p r i n t g l i n k 3 / 8 7 : " ; a s c ( a $ ) ; t a b ( 1 9 ) " m g l i n k : " ; a s c ( b $ )p r i n ti o r t h e n 4 9 n e x tc l o s e c l o s ep r i n t " f o u n d " ; x ; " d i f f e r e n t l o c a t i o n sp r i n t g l i n k 3 / 8 7 s t a t u s a e n d : "p r i n t m g l i n k s t a t u s a e n d : " b

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

Page 12: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 12/84

I n p u t T r i c k e r y D a n i e l J D y k eB e A i r , M a r y l a n d

C - 6 4 U n d o c u m e n t e d E d i t i n g M o d e N i c k S u l l i v a n

H e r e i C - 6 4 s u b r o u t i n e t h a t c a l l b e f o r e a n i n p u t s t a t e m e n tr e q u i r i n g t h e u s o p u n c t u a t i o n a n t h c u r s o r k e y s :

1 0 g o s u b 8 0 0 02 i n p u t a 3 p r i n t a 4 g o t o 1 0

8 0 0 0 p o k e 1 9 8 , 5 : p o k e 6 3 1 , 3 4 : p o k e 6 3 2 , 3 48 0 0 1 p o k e 6 3 3 , 1 5 7 : p o k e 6 3 4 , 3 2 : p o k e 6 3 5 , 1 5 78 0 0 2 r e t u r n

H e r e ' s s t r a n g e f e a t u r e i t h 6 4 ' s s c r e e n e d i t o r . I t h h i g h b i o t h e c u r r e n t c h a r a c t e r c o l o u r i s e t , l i k e t h i s :

p o k e 6 4 6 , p e e k ( 6 4 6 ) o 1 2

. . t h e D E k e w i l l t a k e o w h o l e n e p e r s o n a l i t y i q u o t em o d e : i t h e r e i a n t e x t t o t h r i g h t o f t h c u r s o r , i w i l l b s h i f t e d o n c h a r a c t e r t t h l e f t , a n t h c h a r a c t e r u n d e r t h c u r s o r w i l l b d e l e t e d . T h e r e i o n g l i t c h , h o w e v e r : t h f i r s t t i m ey o h i D E u n d e r t h e s e c o n d i t i o n s , g a r b a g e r e v e r s e -c h a r a c t e r w i l l b p r i n t e d ; s u b s e q u e n t D E L s w i l l p e r f o r m a d e s c r i b e d .

T h e f f e c t o f t h i s s u b r o u t i n e i t h a t i p r i n t s t w q u o t a t i o n m a r k s ,b a c k s p a c e s o n s p a c e , e r a s e s t h s e c o n d q u o t e w i t h s p a c e ,a n b a c k s p a c e s a g a i n . W h e n t h d a t a i e n t e r e d , t h e i n p u tp r o m p t a p p e a r s t b f o l l o w e d b q u o t a t i o n m a r k . N o a n k e y b o a r d c h a r a c t e r , i n c l u d i n g p u n c t u a t i o n m a r k s , c a n b e e nt e r e d a s p a r t o t h i n p u t d a t a . W h a t i a l s o i m p o r t a n t t n o t e i t h a t i a l l o w s f u l l u s o t h l e f t a n r i g h t c u r s o r k e y s . T h c o m p u t e r i n o i q u o t e m o d e , b u w h e n t h e r e t u r n k e i p r e s s e d , i t h i n k s i i s

C - 6 4 E f f i c i e n t T e d B e a c hK e y b o a r d - C h e c k i n g i A s s e m b l e r A r l i n g t o n , V

Q u i t e o f t e n w w a n t t s u s p e n d p r o g r a m ' s e x e c u t i o n i t h u s e rp r e s s e s k e y . H e r e i v e r y s i m p l e w a t d t h i s . W h e r e v e ry o n e e d t p a u s e t h p r o g r a m , i n s e r t t h e s e t w i n s t r u c t i o n s :

w a i t k e y b i $ c b v w a i t k e y

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

n o k e y b i $ c b v n o k e y

C - 6 4 S c r o l l i n gB a n n e r R o u t i n e

A n d r e w M i l l e rA s b e s t o s , Q u e b e c

W h i l e e x p e r i m e n t i n g w i t h t h M I D $ f u n c t i o n o m C - 6 4 ,c o n s t r u c t e d a s c r o l l i n g " f o r m u l a " w h i c h l e t t h e f o l l o w i n gp r o g r a m . f i n d i a a t t r a c t i v e a t t e n t i o n - g r a b b e r , a n n o b a f o

l i n e s . A f t e r R U N n i n g i a n t y p i n g i y o u r m e s s a g e , y o u ' l l b a s k e d f o t h v i e w i n g a r e a ( t h e n u m b e r o c h a r a c t e r s o y o u rm e s s a g e b e i n g d i s p l a y e d o t h s c r e e n a t i m e ) . Y o u r m e s s a g ew i l l b a u t o m a t i c a l l y c e n t r e d , a n w i l l b e g i n t s c r o l l . H e r e i i s

1 i n p u t " m e s s a g e " ; m $ : i n p u t " v i e w i n g a r e a " ; v p r i n t " | " b m + " . . . "

2 1 8 - l e n ( m $ ) / 2 : i v l e n ( m $ ) t h e n 2 0 - v a / 23 b r i g h t $ ( b $ , l e n ( b $ ) - 1 ) l e f t $ ( b $ , 1 ) : c i e f t $ ( b $ , v a )

p r i n t " ^ " t a b ( a ) c $4 f o t 7 0 n e x t : g o t o 3

E a s y I n p u t S p e e d u pf r o m B A S I C

E d d i e A n d e r s o nO r l a n d o , F l o r i d a

H e r e i s i m p l e t r i c k t h a t w i l l d o u b l e y o u r I / O t h r o u g h p u t w h e nd o i n g G E T # ' s f r o m d i s k f i l e . I n s t e a d o d o i n g c o n v e n t i o n a lG E T * l o o p l i k e t h i s :

f o t 8 g e t # 5 , a $r r a

7 n e x t

Y o c a a l m o s t h a l v e t h t i m e r e q u i r e d b G E T # ' i n g t w o b y t e sw i t h e a c h G E T # s t a t e m e n t s . L i k e t h i s :

f o t 4 g e t # 5 , a $ , b $

6 r $ = r a b 7 n e x t

I m t e s t i n g r e a d 6 0 8 0 - b y t e s t r i n g s f r o m 2 b l o c k f i l e u s i n ge a c h o t h a b o v e m e t h o d s . H e r e i t h f u l l l i s t i n g o t h p r o g r a m s :

V e r s i o n

V e r s i o n

o p e n 5 , 8 , 5 , " O : d a t a f i l e , s , r 'f o t 6

3 r $ =f o t 8

5 g e t # 5 , a $r r a n e x tn e x tc l o s e

o p e n 5 , 8 , 5 , " O : d a t a f i l e , s , r 'f o t 6 r " f o t 4 g e t # 5 , a $ , b $r r a b n e x tn e x tc l o s e

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

Page 13: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 13/84

h f i r s t v e r s i o n t o o k 9 5 s e c o n d s t f i n i s h . T h s e c o n d v e r s i o no k o n l y 4 s e c o n d s . w e n t c o u p l e o s t e p s f u r t h e r t s e h o

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

t h a t r e a d a n 1 6 b y t e s a t i m e r a i 4 a n 3 r e s p e c t i v e l y .

h t i m e s m a b o f b s e c o n d o s b e c a u s e w a t i m i n g t h w i t h s t o p w a t c h . N e v e r t h e l e s s i s e e m s t h a t t h b i g g e s tc a b h a s i m p l y b G E T * ' i n g t w b y t e s i n s t e a d o o n o G E T # s t a t e m e n t .

1 0 T h s y s t e m a t i c l o o p - v a r i a b l e n a m e s g r e a t l y h e l p o t h e r p e p l t r e a d a n t g r a s p y o u r p r o g r a m s , s i t ' s v e r y a p p r o p r ia t f o p u b l i s h e d p r o g r a m s . C o n t r i b u t o r s , t a k e h e e d !

W h e n y o u ' v e c o m p l e t e d p r o g r a m , e l i m i n a t e u n u s e d L ' f r o mt h D I i n l i n e 1 1 0 , a n r e v e r s e t h e o r d e r o t h u s e d L ' s t h a tB A S I C f i n d s t h m o s t t i m e - s e n s i t i v e , i n n e r - l o o p L ' f i r s t . F o e x a m p l e , i y o n e v e r u s e d m o r e t h a n t h s i n e s t e d l o o p s( w h i c h i t y p i c a l ) , t h f i n a l f o r m w o u l d b e

D I L 6 , L 5 , L 4 , L 3 , L 2 , L 1

N a m i n g

I ' v e u s e d t h i s s y s t e m a t i c l o o p - v a r i a b l e n a m i n g s c h e m e f o J . G . K r o l s e v e r a l y e a r s . I t ' s s a v e d m s m u c h t i m e , e f f o r t , c o n f u s i o n ,

A n a h e i m , C a l i f o r n i a f r u s t r a t i o n , a n g r i e f t h a t w o u l d n ' t b w i t h o u t i t

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

v a r i a b l e s : S c r a t c h i n gC r a i g E d

M i n n e a p o l i s , M

1 1 0 D I M L 1 , L 2 , L 3 , L 4 , L 5 , L 6 , L 7 , L 8 , L 9 , L A , L B , L C , L D , L E , L Fa y o w r i t e t h p r o g r a m s : ( 1 u s t h l o w e s t - n u m b e r e d

a s t h e l o o p - v a r i a b l e f o e a c h n e F O R -l o o p y o b e g i n w r i t i n g ; ( 2 d o n ' t u s t h e s e L ' s f o r a n y t h i n g

W h e n e v e r t h e r e a r e t h r e e a c t i v e l o o p s , f o e x a m p l e , t h e L Iw i l l b o u t e r m o s t , t h e L l o o p i n n e r m o s t .

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

1 T h L - f o r - l o o p n a m e s a r m n e m o n i c , a p t , s h o r t , c l e a r , a n c o n s i s t e n t , a n t h e y ' r e e f f o r t l e s s t o i n v o k e w h e n y o n e e dt h e m .

2 T h s y s t e m a t i c n a m i n g s c h e m e e l i m i n a t e s t h e d r e a d e d b l u nd e o r e u s i n g a a c t i v e l o o p - v a r i a b l e i a n o t h e r l o o p , t h u sw r e c k i n g t h p r o g r a m .

3 T h s c h e m e e l i m i n a t e s a l t h e u s u a l h e a d - s c r a t c h i n g a n " c r e a t i v e " l o o p - v a r i a b l e n a m i n g a i m e d a a v o i d i n g t h a td r e a d e d b l u n d e r .

4 S i n c e u n n e e d e d l o o p - v a r i a b l e s a r e e l i m i n a t e d , t h e t o t a ln u m b e r o v a r i a b l e s i m i n i m i z e d , s a v i n g t i m e a n s p a c e .

5 L o o p - s p e e d i m a x i m i z e d s i n c e B A S I C f i n d s t h t i m e -s e n s i t i v e l o o p - v a r i a b l e s a t h f r o n t o i t v a r i a b l e - t a b l e .

6 L o o p - s p e e d r e m a i n s c o n s i s t e n t n m a t t e r h o m a n y ( h u nd r e d s o f v a r i a b l e s y o c r e a t e a f t e r t h L ' s .

7 T h n a m i n g s c h e m e p r o v i d e s a c l e a r , c o n v e n i e n t , c o n s i s t e n tw a o t h i n k i n g a n t a l k i n g a b o u t y o u r p r o g r a m , e . g . " t h e L l o o p " .

8 T h s y s t e m a t i c n a m e s g r e a t l y c l a r i f y p r o g r a m s t r u c t u r e :w h e n e v e r y o u s p o t a L i l i s t i n g , y o i n s t a n t l y k n o wy o u ' r e i n s i d e f i v e a c t i v e l o o p s n m a t t e r h o o b s c u r e t h a tc r i t i c a l f a c t m i g h t o t h e r w i s e b e

9 T h s y s t e m a t i c n a m e s o f t e n r e v e a l p r o g r a m s t r u c t u r e y o w e r e n ' t a w a r e o f E . g . w h e n y o c a l l s u b r o u t i n e f r o mw i t h i n a L l o o p , a l o i t l o o p s m u s t b e L 4 o r h i g h e r a n t h e y m i g h t n o b e s i n c e y o o r i g i n a l l y w r o t e t h s u b r o u t i n ey o a r i n v o k i n g f r o m a n L l o o p . R e a l i z i n g t h a t , y o c a e a s i l y r e v i s e t h e s u b r o u t i n e .

r e c e n t l y c h a n g e d w o r d p r o c e s s o r s , m o v i n g f r o m o n e w h i c hs a v e s f i l e s i s e q u e n t i a l f o r m a t t o n e w h i c h n o r m a l l y s a v e s f i l e si p r o g r a m f o r m a t . M w o r d p r o c e s s i n g f i l e d i s k s s o o n b e c a m ef u l l o m i x t u r e o d i f f e r e n t f i l e t y p e s . I n a e f f o r t t o o r g a n i z et h i n g s f o u n d o u t h a t i i p o s s i b l e t s c r a t c h a l s e q u e n t i a l f i l e sf r o m d i s k ( r e t a i n i n g a l o t h e r f i l e t y p e s ) b u s i n g t h f o l l o w i n gd i s k c o m m a n d :

o p e n 1 5 , 8 , 1 5 : p r i n t # 1 5 , " s O : * s " c l o s e 1

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

o p e n 1 5 , 8 , 1 5 : p r i n t # 1 5 , " s O : * p " c l o s e 1 W i t h D O w e d g e o s o m e s o r t i n p l a c e , t h c o m m a n d s a r s i m p l e r :

@ s O : * = ( f o r S E f i l e s ) o @ s O : * ( f o r P R f i l e s )

( m o r e s e l e c t i v e s c r a t c h o f i l e s c a n b e d o n e b u s i n g f i l e n a m ep a t t e r n o t h e r t h a n t h ' * ' ) .

T h i s h a p r o v e n v e r y c o n v e n i e n t i h e l p i n g m s e p a r a t e t h e f i l e sf r o m m w o r d p r o c e s s o r s . m a k e t w o b a c k - u p c o p i e s o t h f i l ed i s k a n m a s s - s c r a t c h a l t h p r o g r a m f i l e s f r o m o n e a n d a l t h s e q u e n t i a l f i l e s f r o m t h o t h e r . I c o u l d a l s o b e u s e d t d e l e t es e q u e n t i a l ' d o c ' f i l e s t h a t a r n l o n g e r n e e d e d o n a d i s k o p r o g r a m s . T h o u g h h a v e n ' t t e s t e d i t t h i n k t h i s w i l l w o r k w i t hu s e r ( U S R ) a n r e l a t i v e ( R E L ) f i l e s a l s o ( c h e c k o b a c k - u p d i s kf i r s t ) .

W A R N I N G : D n o u s t h d e l e t e ( D E L ) f i l e t y p e w i t h t h w i l d c a r d a i w i l l s c r a t c h a l f i l e s f r o m y o u r d i s k . T h f o l l o w i n gi p o i s o n :

@ s O : * ( p o i s o n : d n o t u s e )

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

Page 14: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 14/84

A m i g a B i t s

A m i g a A u t o m a t i cU p - D a t e

A n d r e w N M e r c i e r , J r P o p e A F B , N o r t h C a r o l i n a

T h e A m i g a p r o v i d e s a v e r y w e l l m a i n t a i n e d s o f t w a r e c l o c k , a n s i n c e t h A m i g a r u n s m u l t i t a s k i n g o p e r a t i n g s y s t e m , t h ef o l l o w i n g s h o r t r o u t i n e m a b e u s e d t k e e p t h e t i m e a n d a t e o y o u r S Y S : d i s k a s c u r r e n t a s p o s s i b l e . B w r i t i n g t t h d i s k o n c ei w h i l e , t h t i m e w o n ' t b t o f a o f w h e n y o r e - b o o t , s i n c et h s y s t e m s e t s t h t i m e t w h e n t h e d i s k w a u s e d l a s t .

E n t e r t h e f o l l o w i n g c o m m a n d f i l e w i t h a e d i t o r o b t y p i n g' c o p y t s : s a v e D a t e ' f r o m t h C L ( p r e s s C T R L t e n y o u ri n p u t i y o u s t h c o p y c o m m a n d ) :

c : w a i t 7 2 m i n sc : c d s y s :c : d a t e > s y s : n o wc : r u n > n i l :c : e x e c u t e s : s a v e D a t e

E x e c u t e t h c o m m a n d f i l e i t h b a c k g r o u n d b y t y p i n g " r u ne x e c u t e s a v e D a t e " . T h p r o g r a m w i l l w a i t 7 2 m i n u t e s , o r 1 2h o u r s , t h e n w r i t e t h c u r r e n t d a t e t d i s k a n r e p e a t t h w h o l ep r o c e s s o v e r a g a i n . T h w a i t u s e s n C P t i m e a i r u n s i t h b a c k g r o u n d , s i n c e i j u s t w a i t s f o s i g n a l f r o m t h t i m e r d e v i c e .I y o w i s h t h a v e t h e c l o c k u p d a t e d m o r e o l e s s f r e q u e n t l y ,c h a n g e t h n u m b e r o m i n u t e s i t h f i r s t l i n e t o w h a t e v e r y o w a n t e v e r y h o u r m i g h t b r e a s o n a b l e c h o i c e .

N o t e : t h e C c o m m a n d i u s e d s t h a t D O w i l l p u u r e q u e s t e r a s k i n g f o t h s y s t e m d i s k i i i n o i t h d r i v e . T h r e d u n d a n t u s o c a n s : i s t e n s u r e t h a t t h c o r r e c t c o m a n d s a r u s e d ( i t h c a s e o l i k e - n a m e d p r o g r a m s r e s i d i n g i t h e c u r r e n t d i r e c t o r y ) .

P a t t e r n M a t c h i n g W i t h T h D i C o m m a n d

T h C L c o m m a n d " D i r " , a d o c u m e n t e d i t h A m i g a D O Sm a n u a l , h a q u i t e f e f e a t u r e s . A e s p e c i a l l y v a l u a b l e c a p a b i li t o f t h i s c o m m a n d , h o w e v e r , i s n ' t e v e n d o c u m e n t e d : p a t t e r nm a t c h i n g . D i w i l l a l l o w a e x p r e s s i o n f o d i r e c t o r y n a m e l i k et h o s e u s e d b t h " P A T " o p t i o n o t h L i s t c o m m a n d , a n w i l ld i s p l a y a l f i l e s i t h d i r e c t o r i e s t h a t m a t c h t h e g i v e n p a t t e r n .S o f o e x a m p l e , t h c o m m a n d ' d i r ? ? ? ' w i l l d i s p l a y t h f i l e s i a l d i r e c t o r i e s w h o s e n a m e i t h r e e c h a r a c t e r s l o n g ; ' d i r c # ? ' w i l ld i s p l a y a l d i r e c t o r i e s b e g i n n i n g w i t h t h l e t t e r ' c ' ; ' d i r c | f o n t s 'w i l l d i s p l a y t h ' c a n ' f o n t s ' d i r e c t o r i e s .

M u l t i p l e - m e n u S e l e c t i o n s

W h e n u s i n g t h m e n u s i m o s t a p p l i c a t i o n s , y o u c a n c h o o s em o r e t h a n o n m e n u o p t i o n w i t h o u t p o p p i n g u p t h m e n u f o e a c h c h o i c e . W h i l e t h m o u s e m e n u b u t t o n i h e l d d o w n a n t h m e n u i d i s p l a y e d , m o v e t h e p o i n t e r t t h f i r s t o p t i o n y o w a n ta n c l i c k t h L E F T m o u s e b u t t o n . W h i l e t h m e n u b u t t o n i h e l dd o w n , y o c a m o v e t h p o i n t e r t a m a n y o p t i o n s a s y o w i s h ,

c l i c k i n g t h l e f t b u t t o n o v e r t h o n e s y o u w a n t t o s e l e c t . W h e ny o f i n a l l y r e l e a s e t h m e n u b u t t o n , t h p r o g r a m w i l l a c t a i y o h a s e l e c t e d e a c h m e n u o p t i o n n o r m a l l y , o n a t i m e . T h i si e s p e c i a l l y h a n d y f o m e n u s w i t h c h o i c e s f o m a n y d i f f e r e n tm o d e s o s e t t i n g s , l i k e t e r m i n a l p r o g r a m w i t h o p t i o n s f o p a r i t y , b a u d r a t e , e t c . J u s t c l i c k c l i c k c l i c k t s e u y o u rc h o i c e s w i t h o u t h a v i n g t b r i n g u t h m e n u b a o v e r a n o v e ra g a i n .

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

S p e e d i n g U I F F i l e A c c e s s

I y o a r r e a d i n g a I F f i l e f r o m y o u r o w p r o g r a m , y o u c a ns p e e d u a c c e s s a n s h o r t e n t h e f i l e b r e m o v i n g a n y c h u n k st h a t y o u r p r o g r a m d o e s n ' t c a r e a b o u t . F o e x a m p l e , y o m a b i n c o r p o r a t i n g g r a p h i c s i p r o g r a m b c r e a t i n g a i m a g e u s i n ga I F F - c o m p a t i b l e p a i n t p r o g r a m l i k e D e l u x e P a i n t - t h e p i c t u r ei I F F - I L B M f o r m c a t h e n b r e a d b y y o u r p r o g r a m u s i n g y o u ro w I F F - r e a d i n g r o u t i n e s , o t h s t a n d a r d p u b l i c d o m a i n r o t i n e s p r o v i d e d b E l e c t r o n i c A r t s a n l i s t e d i n t h A m i g a R O K e r n e l m a n u a l .

T h i s a p p r o a c h w o r k s f i n e , b u t t h e r e m a b i n f o r m a t i o n i t h p i c t u r e f i l e t h a t y o u r p r o g r a m d o e s n ' t c a r e a b o u t , a n i y o d o n ' t p l a n o u s i n g t h p i c t u r e f i l e s f o a n y t h i n g e l s e , y o m i g h ta w e l l r e m o v e i t I t h i s e x a m p l e , t h a t o a I L B M f i l e s a v e d b D e l u x e P a i n t , T h o b v i o u s c h u n k s t r e m o v e a r t h C R N Gc h u n k s t h a t d e s c r i b e c o l o u r - r a n g e i n f o r m a t i o n , a n t h G R A Bc h u n k t h a t d e f i n e s " h o t - s p o t " , o p o i n t f o g r a b b i n g t h i m a g e . R e m o v i n g t h e s e c h u n k s s a v e s t h e t i m e n e e d e d f o t h I F r e a d e r t s k i p o v e r t h e m , w h i c h c a n b c o n s i d e r a b l e o f l o p p y d r i v e s d u t r e a d / w r i t e h e a d s e e k t i m e .

T t a k e t h e c h u n k s o u t , y o h a v e t r e m o v e t h e m f r o m t h f i l ea n d m o d i f y t h e l e n g t h o t h F O R M a t h s t a r t o t h f i l ea c c o r d i n g l y . Y o c o u l d w r i t e s i m p l e p r o g r a m i t h l a n g u a g e o y o u r c h o i c e t d t h i s , b u t h e a s i e s t w a i t u s t e x t e d i t o rt h a t l e t s y o e d i t b i n a r y f i l e a h e x . O n s u c h e d i t o r ( p e r h a p st h o n l y o n e ? ) i A e d i t b J o B o s t i c ( D R M P r o g r a m s , 1 3 2 9A r t h u r A v e . , L a V e g a s , N 8 9 1 0 1 ) . I l e t s y o r e a d a b i n a r y f i l ea n d i s p l a y i a h e a n A S C I I . Y o c a e d i t t h h e v a l u e s , a n t h e y w i l l b c o n v e r t e d b a c k t b i n a r y w h e n t h f i l e i s s a v e d .U s i n g A e d i t , i i a s i m p l e m a t t e r t r e m o v e a l t h C R N G c h u n k sa n t h G R A B c h u n k , l e a v i n g j u s t t h i n i t i a l F O R M , t h I L B M ,B M H D , a n B O D Y . T h l o n g w o r d a f t e r t h i n i t i a l F O R M w i l lh a v e t m o d i f i e d t o r e f l e c t t h n e s i z e o t h f i l e . F o s i m p l es i n g l e - p i c t u r e I F f i l e s , t h F O R M l e n g t h s h o u l d b e i g h t b y t e sl e s s t h a n t h s i z e o f t h f i l e a i a p p e a r s i y o u r d i r e c t o r y ( u s i n gt h C L L i s t c o m m a n d ) .

M i n i m i z i n g y o u r I F f i l e s l i k e t h i s c a y i e l d d r a m a t i c r e d u c t i o n si r e a d i n g t i m e , e s p e c i a l l y f o s m a l l f i l e s .

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

Page 15: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 15/84

P l u s / 4 T e c h n i c a l I n f o : C a y o o r r e a d e r h e l pw a n t m e m o r y m a f o t h 6 5 2 9 c h i p i t h e P l u s / 4 . O n

t h e x c e l l e n t F i g u r e C - 1 0 i A p p e n d i x o J i B u t t e r f i e l d ' sb o o k M a c h i n e L a n g u a g e f o C o m m o d o r e M a c h i n e s w o u l d

i d e a l .

w h e r e a n d h o c a o n g e c o p y o t h c i r c u i t d i a g r a m o P l u s / 4 ? T h a t w o u l d b e a b i g h e l p i u n d e r s t a n d i n g t h

h i n e a n d i m a c h i n e l a n g u a g e p r o g r a m m i n g .J i W e l c h , S a n t a C l a r a , C a l i f o r n i a

a I M s t r i p p e r f o r t a p e : C o n g r a t u l a t i o n s o f i n e m a g a z i n e , w h i c h h a v e j u s t d i s c o v e r e d . " D o w n l o a d i n g

m C o m p u S e r v e " b C h r i s t o p h e r D u n n ( V o l u m e 7 I s s u e 4 ) c e r t a i n l y e n l i g h t e n e d m w i t h p r o b l e m h a v e b e e n

g .

a v e b e e n d o w n l o a d i n g w i t h a X M O D E M p r o t o c o l t e r m i n a lo g r a m o n t a p e . T h r e a s o n w h t h I M f i l e s h a v e r e f u s e d t

i n o c l e a r .

o n o y o u r t e c h n i c a l s t a f f , c o n t r i b u t o r o r r e a d e r b a b l eh e l p m e w o u l d l i k e t o o b t a i n c o p y o t a p e o a X M O D E M

o l t e r m i n a l p r o g r a m f o t h C o m m o d o r e 6 c a p a b l e o b o t h B I a n I M f i l e s w i t h a I M b y t e - s t r i p p e r

i n t o t h p r o g r a m a l l o w i n g I M p r o g r a m s t r u n . A l t e r n al i s t i n g o s a m e w o u l d b m o s t a p p r e c i a t e d .

a d d r e s s i s 1 7 S u g a r l o a f D r i v e , C h i r n s i d e P a r k , V i c t o r i a 3 1 1 6 ,l i a .

P h i l i p G a h a n

t o o k s t a b a y o u r d i l e m m a , P h i l i p , b u q u i c k l y d e t e r m i n e dw i t h o u t a s a m p l e c o p y o t a p e , i w o u l d n ' t b w i s e t p r i n t

p r o g r a m t h a t s t r i p s a I M f i l e h e a d e r b a s e d o n s p e c u l a t i o n . I h e a r f r o m s o m e o n e t h a t a l r e a d y h a t h i s p r o g r a m , t h e n

w d o n ' t n e e d t r e - i n v e n t t h w h e e l . I y o d o n ' t , s e n d u w i t h . B I N f i l e o o n s i d e , a n . I M G f i l e o t h o t h e r ,

w 1 t a k e a n o t h e r s h o t a i t

l e a d o c a b l e s : p o s s i b l e s u p p l i e r f o l e t t e r w r i t e r D o u go P e n t i c t o n , B r i t i s h C o l u m b i a ( L e t t e r s , V o l u m e 7 I s s u e 6 )

n e e d e d r i g h t a n g l e c o n n e c t o r s a n l o n g s e r i a l c a b l e s a m o n gt h i n g s , i V a l u e S o f t , o 9 5 1 3 S . W . B a r b u r B o u l e v a r d M - 5 6 ,

O r e g o n 9 7 2 1 9 . T h e y h a v e a a i R u m a g a z i n e ( 3 l i s t i n g 9 - f o o t r i g h t a n g l e s e r i a l c a b l e f o $ 9 . 9 5 ( U S ) .

u t h g r e a t w o r k . T h T r a n s a c t o r w i t h t h T P U G i n s e r tg o t b t h e b e s t d e a l a n y w h e r e f o C o m m o d o r e f r e a k s !

e n j o y t h c o v e r a r t . V o l u m e 7 I s s u e 6 w i t h t h e r o b o ts e l f - p o r t r a i t , i p e r f e c t f o a i s s u e w i t h a a r t i c l e o

Y o u , o y o u r r e a d e r s i n t e r e s t e d i r e c u r s i o n a n A I m i g h t w a n tt l o o k a D o u g l a s H o f s t a d t e r ' s b o o k s : G o d e l , E s c h e r , B a c h a n M e t a m a g i c a l T h e m a s .

J o h n E G r a h a m , D i r e c t o r E M C , S i n c l a i r C o l l e g e , D a y t o n , O h i o

T h a n k s f o r t h e l e a d , J o h n . A n w e ' d a l s o l i k e t e n d o r s e y o u rr e c o m m e n d a t i o n o t h H o f s t a d t e r b o o k s . O n o t h e t h i n g s t h a td i s t i n g u i s h e s H o f s t a d t e r ' s A w o r k f r o m m o s t o t h e r s i s i t s e p h a s i s o t h " i n t e l l i g e n c e " i A I h e ' s i n t e r e s t e d i i n t e l l i g e n tm a c h i n e s , n o t j u s t c l e v e r p r o g r a m s .

A n o t h e r I E E E f o t h 1 2 8 : O p a g e 1 o t h M a r c h i s s u e ; i nr e p l y t l e t t e r f r o m B i l l B e n n e t t , t h e r e w a r e q u e s t f o

i n f o r m a t i o n a b o u t g o o d I E E E i n t e r f a c e f o t h C - 1 2 8 . T h u n i ta u s i n g i a I N T E R P O D f r o m E n g l a n d . h a v e b e e n u s i n g

t h i s u n i t , f i r s t w i t h C - 6 4 , a n n o w i t h t h C - 1 2 8 , w i t h o u tt r o u b l e s f o t h e p a s t t h r e e y e a r s . u s t h I N T E R P O D w i t hf o u r - p o l e d o u b l e - t h r o w s w i t c h s c a g b e t w e e n t h I E E Ed i s k d r i v e s a n t h M S D - 2 a n 1 5 7 1 d r i v e s w h e n u s i n g t h e C 1 2 8 .

d n o k n o w i t h u n i t i s s t i l l a v a i l a b l e . w r o t e l e t t e r t t h a d d r e s s i E n g l a n d a b o u t o r d e r i n g a n o t h e r u n i t , b u n e v e rr e c e i v e d r e p l y . p u r c h a s e d t h u n i t f r o m : O x f o r d C o m p u t e rS y s t e m s ( S o f t w a r e ) L t d . , H e n s i n g t o n R o a d , W o o d s t o c k , O x f o r d ,E n g l a n d 0 X 1 J R .

J o h n J S c h u e l e r , K 7 Q V , S e d o n a , A r i z o n a

U l t i m a t e f r u s t r a t i o n f i x : A f t e r m o n t h s a n m o n t h s o p l a y i n gU l t i m a I ( s i x t b e x a c t ) , f i n a l l y m a d e i i n t o t h A b y s s . B u w h e n g o t t h e r e a n h a t a n s w e r t h v e r y l a s t q u e s t i o n i t h w h o l e g a m e , g o i w r o n g . I t o o k m a c o u p l e o m o r e m o n t h st f i g u r e o u w h a t w a w r o n g : t h e r e i a e r r o r i t h v i s i o n s y o g e w h e n p r a y i n g i t h s h r i n e s . I n s t e a d o g e t t i n g :

f o l ^ Ty o s h o u l d g e t h f o l l o w i n g :

N o a l o y o w h h a v e b e e n b e a t i n g y o u r b r a i n s o u t r y i n g t f i g u r e t h i s o u ( a w a s ) c a n f i n a l l y g e o t y o u r d e s t i n y . .

P a u l R e e v e s , H a m i l t o n , O n t a r i o

O r d i n a r i l y w d o n ' t p u b l i s h g a m e t i p s , a n t h i s i s ' m e a n t t b p r e c e d e n t ( s p u d o w n y o u r p e n s r i g h t n o w ) . B u t h i d e a o T r a n s a c t o r r e a d e r s b e a t i n g t h e i r b r a i n s o u f o w a n t o t h i si n f o r m a t i o n w a m o r e t h a n w c o u l d s t a n d .

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

Page 16: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 16/84

B i b l i c a l G r e e k d r i l l s : I a n o y o u r r e a d e r s w o u l d w a n t s o m ed r i l l s o B i b l i c a l G r e e k , h a v e t h e m s e n d m d i s k w i t h s o m et h i n g t h e y t h i n k i r e a l l y u s e f u l , e d u c a t i o n a l , o e n t e r t a i n i n g ,a n i e x c h a n g e w i l l s e n d t h e m d i s k w i t h t h G r e e k o i t T h e s e a r m o r e t h a n v o c a b u l a r y d r i l l s . I n c l u d e d a r e e x e r c i s e so i d e n t i f y i n g v e r b s , n o u n s ( c a s e s y s t e m ) , p a r t i c i p l e s , i n f i n it i v e s , a n a d j e c t i v e s o t h b o o k o J o h n . I T h e s s a l o n i a n s i t h n e x t b o o k o t h N e T e s t a m e n t t h a t w i l l b c o v e r e d . M a d d r e s s i s 2 3 1 1 C r e s w e l l R o a d , B e A i r , M a r y l a n d 2 1 0 1 4 .

D a n i e l J D y k e

H a r d w a r e b o o k b l u r b : w o u l d l i k e t i n f o r m y o r e a d e r s o b o o k h a v e w r i t t e n w h i c h b e l i e v e m a b o i n t e r e s t t t h e m .E n t i t l e d E l e c t r o n i c C o m p u t e r P r o j e c t s , i i p u b l i s h e d b C O P U T E ! P u b l i c a t i o n s I n c . , a n i n o a v a i l a b l e .

E l e c t r o n i c C o m p u t e r P r o j e c t s i a i n t r o d u c t i o n t c o m p u t e ri n t e r f a c i n g a n d i g i t a l e l e c t r o n i c s . I i w r i t t e n f o u s e r s o t h C o m m o d o r e 6 4 V I C 2 0 a n d C - 1 2 8 , a s w e l l a s t h e e i g h t - b i t A t a r ic o m p u t e r s .

A c o m p u t e r a n e l e c t r o n i c s h o b b y i s t , b e l i e v e t h i s b o o k w i l lb h e l p f u l t u s e r s w h h a v e d o n e s o m e e x p l o r i n g o t h e i rm a c h i n e s p r o g r a m m i n g - w i s e a n a r l o o k i n g f o n e w , i n t e r e s ti n a n e x c i t i n g t h i n g s t d w i t h t h e i r c o m p u t e r s . T h i s b o o ki n t r o d u c e s t h r e a d e r t c o m p u t e r c o n t r o l a n m o n i t o r i n g o i t e m s i " t h e o u t s i d e w o r l d " t h r o u g h t h e c o n s t r u c t i o n o p r o j e c t sc o n s i s t i n g o h a r d w a r e a n d a s o f t w a r e c o m p o n e n t . W h i l e t h p r o j e c t s a r e u s e f u l i t h e m s e l v e s , t h e y a l s o p r o v i d e b a s i s f o r e a d e r s t b e g i n d e s i g n i n g c i r c u i t s f o p r o j e c t s o f t h e i r o w n .

T h b o o k i a v a i l a b l e f r o m : C O M P U T E ! B o o k s , P . O . B o 5 0 3 8 ,F D S t a t i o n , N e Y o r k , N e Y o r k 1 0 1 5 0 ( t o l l f r e e 1 - 8 0 0 - 3 4 6 -6 7 6 7 ; i N e Y o r k , 2 1 2 - 8 8 7 - 8 5 2 5 ) ; o i C a n a d a f r o m :M c G r a w - H i l l R y e r s o n , L t d . , 3 3 P r o g r e s s A v e n u e , S c a r b o r o u g h ,O n t a r i o M 1 2 Z 5 . T h s u g g e s t e d r e t a i l p r i c e i $ 9 . 9 5 ( U S ) .

S o o r i S i v a k u m a r a n , B u r l i n g t o n , O n t a r i o

G r o u n d i n g t h a l t : Y o u r i s s u e o G a d g e t s a n G i z m o si n s p i r e d t h i s l e t t e r . a a a m a t e u r r a d i o o p e r a t o r , a n u s m C - 6 4 m o s t l y i c o n n e c t i o n w i t h m r a d i o h o b b y . S o m e m o n t h sa g l o s t 6 5 2 6 c h i p a n d h a d q u i t e b i o t r o u b l e g e t t i n ga n o t h e r f r o m C o m m o d o r e . w o u l d l i k e t o c a u t i o n y o u r r e a d e r sw h a r i n t e r c o n n e c t i n g t h e i r c o m p u t e r s w i t h o t h e r e q u i p m e n ta b o u t o n o t h s n e a k y p r o b l e m s t h a t c a s p o i l t h e i r f u n .

I m c a s e , h a v e m 6 o t h b e n c h w i t h m a m a t e u r r a d i oe q u i p m e n t a n g e n e r a l t e s t e q u i p m e n t . F o s a f e t y ' s s a k e , o n l e a r n s e a r l y t g r o u n d e v e r y t h i n g , s h a v e b a r e c o p p e r w i r e sr u n n i n g a c r o s s t h b e n c h a s e v e r a l s p o t s w h e r e t h e y a r o u o t h w a b u e a s y t c o n n e c t . A l e q u i p m e n t i o c o u r s eg r o u n d e d . B u o r i g i n a l l y n o t t h e C o m m o d o r e , o c o u r s e . I h a 1 5 4 1 , a 8 0 1 , a n m o n i t o r , a l i n t e r c o n n e c t e d . A n e a c h p l u gh a g r o u n d ; w h a t m o r e c o u l d b n e e d e d ?

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

c o m p u t e r w i t h o u t m o n i t o r ! ) . S i n c e s h h a b e e n a d v i s i n g m w i s e l y f o t h i r t y y e a r s ( a n d k n o w w h e r e m b u t t e r e d b r e a dc o m e s f r o m ) b o u g h t t h c o l o u r T V , a n i c e R C 1 i n c h c o l o u rs e t . A n i d i w e l l . W h e n d e c i d e d t c o n n e c t m C o m m o d o r ea t e r m i n a l f o m R T T Y i n t e r f a c e , w a a f r a i d o d a m a g i n gt h C I c h i p , s c a r e f u l l y s t u d i e d t h e d i a g r a m s , a n f i n a l l yd e c i d e d t h a t b u f f e r w a c a l l e d f o r , t b a b s o l u t e l y s a f e . S m o u n t e d c o u p l e o 7 4 0 4 T T c h i p s o p e r f b o a r d , a n w i t ha n e d g e c o n n e c t o r o o n s i d e a n s o c k e t o t h e o t h e r i f i p e r f e c t l y o t h U S E R i n t e r f a c e , a n w a p o w e r e d f r o m t h C o m m o d o r e . W i t h d i o d e c l a m p i n g t T T l e v e l s , a n w i t h t h C o m m o d o r e c h i p a C M O S ( a n d a b l e t t a k e 1 v d c ) , n o t h i n gc o u l d g e t h r o u g h t h a t b u f f e r a n h u r t m c o m p u t e r .

O s i s e e m e d . c o n n e c t e d t h e c a b l e f r o m t h R T T Y i n t e r f a c et t h b u f f e r , t u r n e d t h s y s t e m o n a n p r o m p t l y b u r n t o u t w i n p u t s o t h C I A . T h c o m p u t e r w o u l d s t i l l w o r k f o p r o g r a m sa n g a m e s , b u n m o r e C o m p u S e r v e !

I t ' s g o o d t h i n g , a l t h o u g h d i d n ' t t h i n k s a t h t i m e , t h a t i t o o k t w m o n t h s t g e c h i p . w a s u r e t h b u f f e r h a f a i l e dm e A f t e r a l l , e l e c t r o n i c e q u i p m e n t i u n t r u s t w o r t h y i g e n e r a l ,a n s o m e t i m e s t r i c k y . U s i n g a n a l y z e r s , o s c i l l o s c o p e s , a n e v e r yt e c h n i q u e h a v e l e a r n e d o v e r t h y e a r s , h u n t e d f o t h e e l u s i v ei n t e r m i t t e n t t h a t h a d a m a g e d m b a b y C o m m o d o r e . N o t h i n g .A f t e r m o n t h o p a r t - t i m e t e s t i n g g a v e u p A n o t h e r m o n t h a n t h n e c h i p c a m e a n h a d h a d t i m e t u s m l a s t r e s o r tt e c h n i q u e . t h o u g h t a b o u t i t T h e n c o n n e c t e d v o l t m e t e rb e t w e e n t h R T T Y a n t h b u f f e r i n p u t ( w i t h n o t h e r c o n n e ct i o n s ) a n t u r n e d o t h r a d i o . N p o t e n t i a l d i f f e r e n c e . t h e nt u r n e d o t h C o m m o d o r e , t h 1 5 4 1 , t h 8 0 1 , a n t h T V W h e n s w i t c h e d o t h T V t h v o l t m e t e r i m m e d i a t e l y j u m p e du t 3 v d c . A n a o l m e m o r y s u r f a c e d . S o l i d s t a t e t u n e r ss o m e t i m e s p u t o u t d v o l t a g e , w h i c h h u r t s t h e m n o a a l l , a n i n o n o t i c e a b l e , b u w h i c h i e n o u g h t r a i s e t h g r o u n d o t h C o m m o d o r e t t h s a m e v o l t a g e . T h e n i c o n n e c t e d t o t h e re q u i p m e n t w h i c h i t r u l y g r o u n d e d , y o u h a v e p r o b l e m . T h f i i s i m p l e . B s u r e y o u r C o m m o d o r e s y s t e m , w h e n p o w e r e d u p h a n d i f f e r e n c e i g r o u n d p o t e n t i a l w i t h t h s y s t e m y o a r c o n n e c t i n g i n t o . O t h e r w i s e , y o m a y , l i k e m e b w a i t i n g f o c h i p .

e n j o y y o u r m a g a z i n e g e n e r a l l y , a l t h o u g h m a n y t i m e s y o u rw r i t e r s a s s u m e k n o w m o r e a b o u t s u b j e c t t h a n d o a n t h e na l o s t a n c a n n o t f o l l o w w h a t t h e y a r e d o i n g . K e e p u t h g o o d w o r k . Y o h a v e t h e b e s t m a g a z i n e o t h m a r k e t .

C a r l L H e n r y , B o w l i n g G r e e n , K e n t u c k y

H o l e s i I n n e r S p a c e : w o u l d l i k e t o t a k e t h i s o p p o r t u n i t y t t h a n k y o u a n d y o u r e x c e l l e n t s t a f f f o p r o d u c i n g w h a t i q u i t ec e r t a i n l y t h e m o s t u s e f u l b o o k c u r r e n t l y i p r i n t f o C o m m o d o r ec o m p u t e r s : T h C o m p l e t e C o m m o d o r e I n n e r S p a c e A n t h o l o g y .

T h a n k s f o t h C O M A L m e m o r y m a p s ; t h o s e a r e t h e o n l yC O M A L m a p s I ' v e e v e r s e e n . A n y e s , e v e n u s t h p e r i o d i c

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

Page 17: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 17/84

T h W o r d p r o c e s s i n g R e f e r e n c e G u i d e w a a l s o a w o n d e ru i d e a e v e n s l i g h t l y m o r e a c c u r a t e t h a n t h P a p e r C L i p

t r u s t S p e e d s c r i p t c o m m a n d s w i l l b i n c l u d e d i I a w e l l .

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

c s f o r m u l a e . T h c u r r e n t s m a l l s e c t i o n o f o r c e s i r e a l l ys t a r t .

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

v o l u m e e q u a t i o n f r o m t h e s e f i n e t a b l e s :

( 4 B

A r e a a t o A r e a a m i d p o i n t

B A r e a a b a s eh e i g h t

s e q u a t i o n i p a r t i c u l a r l y u s e f u l w h e n d e a l i n g w i t h i r r e g us h a p e d f i g u r e s . ( I c a s e o n s h o u l d e v e r h a p p e n t f o r g e t

o t c a l c u l a t e t h v o l u m e o f r u s t u m o a c o n e . )K e v i n S m i t h , E d m o n t o n , A l b e r t a

f o r t h e i n p u t , K e v i n . A y o k n o w , w t r n o t l e a v eo u t . P e r h a p s y o c o u l d s e n d u l i s t o t h o s e p h y s i c sy o m e n t i o n , o m a y b e j u s t l i s t o t h r e s u l t s t h e y

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

c t u r i n g B a s i c p r o g r a m s : r e a d w i t h i n t e r e s t t h a r t i c l er e d P r o g r a m m i n g o n t h C o m m o d o r e 6 4 b y F r a n k( V o l u m e 7 I s s u e 5 ) p r o g r a m o n b o t h l a r g e m a i n f r a m e

s ( f o r l i v i n g ) a n s m a l l m i c r o s ( f o r f u n ) a n t r t u s h t e c h n i q u e s o t o p - d o w n d e s i g n a n m o d u l a r p r o g r a m m i n g

b o t h e n v i r o n m e n t s .

t h e e x t r a s t r u c t u r e s ( W H I L E - W E N D , R E P E A T - U N T I L ,O C ) c a h e l p y o u r p r o g r a m b m o r e s t r u c t u r e d , i i

i n l y p o s s i b l e t w r i t e s t r u c t u r e d B a s i c w i t h j u s t B a s i c 2 . o h C - 6 4 . T o p - d o w n d e s i g n i p o s s i b l e i m o s t p r o g r a m m i n g

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

n e x i t " . T h i s r u l e i w h a t h a g i v e n t h G O T O b a d n a m e . I o n l y u s e t h G O T O t b r a n c h t t h R E T U R N o G O S U B o

h N E X T o F O R - N E X T ( p e r h a p s w i t h " C T R = M A X "t m a k e o u F O C T T M A l o o p e n n i c e l y )

a r i g r e a t s h a p e . T h o n l y o t h e r t h i n g t w a t c h f o i n o t e r i n g a G O S U B - R E T U R N m o d u l e e x c e p t f o o n p l a c e : t h

w n e e d t g t o n o s e v e r a l p l a c e s a f t e r e x i t i n g a m o d u l eo n o s e v e r a l t y p e s o i n p u t r e c o r d s r e a d b r e a d r o u t i n e f o e x a m p l e ) " r e t u r n c o d e " c a n b e s e b

h m o d u l e t v a l u e a l l o w i n g a O N . . . G O S U B ( n o t G O T O ,e a s e ! ) t o d i r e c t u s . T h i s i t h o n l y p r o b l e m h a w i t h M r

D i G i o i a ' s o t h e r w i s e e x c e l l e n t a r t i c l e . P e r h a p s t h E X I T n nk e y w o r d c o u l d b m o d i f i e d t s e p s e u d o - v a r i a b l e ( l i k e S T w i t h t h v a l u e o " n n " a s w e l l a s e x i t i n g t h s t r u c t u r e n o r m a l l y .I t h i s w a w c o u l d k n o w t h a t w w o u l d a l w a y s c o m e b a c k t t h e p o i n t w l e f t w h e n d o i n g C A L L o G O S U B a n s t i l l h a v et h f l e x i b i l i t y t d e c i d e w h a t t d w h e n w g e b a c k .

D o u g l a s H a t t r e m , L a n s i n g , M i c h i g a n

F O c l a r i f i e s : T h M a r c h 1 9 8 7 i s s u e c o n t a i n s a a r t i c l ee n t i t l e d " C o m p a t i b i l i t y a n O p e r a b i l i t y o t h C - 1 2 8 C P / MO p e r a t i n g S y s t e m " b y R a l p h M o r r i l l . A t h l e a d i n g i n t e r n at i o n a l u s e r g r o u p p r o v i d i n g s u p p o r t f o C P / M , w a F O w e r en a t u r a l l y p l e a s e d t s e t h v a s t l y u n d e r - e x p l o r e d C P / M s i d eo t h C - 1 2 8 b e i n g b r o u g h t t l i g h t . T h o u s a n d s o C - 1 2 8 o w n e r sh a v e j o i n e d o u g r o u p s e e k i n g j u s t t h t y p e o i n f o r m a t i o n M r M o r r i l l w r i t e s a b o u t .

O n p o i n t o t h a r t i c l e n e e d s e x p l a n a t i o n . M r . M o r r i l l w r i t e s ," N o t o n p i e c e o O s b o r n e s o f t w a r e f r o m t h F i r s t O s b o r n eG r o u p ' s ( F O G ) p u b l i c d o m a i n l i b r a r y t h a t h a v e a c q u i r e d w i l lr u o t h C - 1 2 8 . " A m a t t e r o f a c t , t h v a s t m a j o r i t y o o u c u r r e n t l i b r a r y r u n s o t h C - 2 8 a a t t e s t e d t b o u g r o w i n gC - 1 2 8 m e m b e r s h i p . F O G ' s l i b r a r y i t e s t e d , d o c u m e n t e d a n w e l l o r g a n i z e d . P r o g r a m s w h i c h a r c o m p u t e r - s p e c i f i c a r c l e a r l y l a b e l l e d .

O u l i b r a r y w a o n c e d i v i d e d i n t o c o m p u t e r - s p e c i f i c s e c t i o n s ,i n c l u d i n g l i b r a r i e s f o r T e l e v i d e o , K a y p r o , M o r r o w a n O s b o r n e .I h a c o m e t o u a t t e n t i o n t h a t d i s k s o o u o l l i b r a r y a r b e i n gs o l d b s o m e p u b l i c d o m a i n s o f t w a r e h o u s e s . P l e a s e w a r n y o u rr e a d e r s ( a n d w r i t e r s ) t h a t t h r e l i a b i l i t y o f t h e s o f t w a r e a c q u i r e df r o m m a n y o t h e s e s o u r c e s i a b e s t q u e s t i o n a b l e . I i c l e a r t h a tM r M o r r i l l d i d n o t a c q u i r e h i s o f t w a r e f r o m F O G .

A n o t h e r p o s s i b l e s o u r c e o M r M o r r i l l ' s p r o b l e m m a b t h a t t h d i s k s h t r i e d w e r e O s b o r n e s i n g l e d e n s i t y f o r m a t . O u c u r r e n tl i b r a r y i o d o u b l e d e n s i t y f o r m a t d i s k s . T h 1 5 7 1 d r i v e w i l lr e a d O s b o r n e f o r m a t o n l y i i i d o u b l e d e n s i t y .

r e a l l y w i s h M r M o r r i l l h a c a l l e d o u o f f i c e w h e n h h a p r o b l e m . F O h a f u l l - t i m e t e c h n i c a l s u p p o r t s t a f f t h e l p o u m e m b e r s . W c e r t a i n l y w o u l d h a v e m a d e s u r e M r . M o r r i l l h a u t d a t e i n f o r m a t i o n f o h i a r t i c l e .

F O w e l c o m e s C - 1 2 8 o w n e r s t j o i n o u r a n k s . O u a w a r d -w i n n i n g F O G H O R N n e w s l e t t e r i u n m a t c h e d a s o u r c e o C P

i n f o r m a t i o n . O u i n i t i a l o f f e r t C - 1 2 8 o w n e r s o f r e e d i s k o C P / M s o f t w a r e w i t h m e m b e r s h i p h a b e e n s u c h t r e m e n d o u ss u c c e s s t h a t w h a v e e x t e n d e d t h o f f e r t h r o u g h D e c e m b e r .Y o u r r e a d e r s m a w r i t e t u f o f u r t h e r i n f o r m a t i o n a P . O . B o 3 4 7 4 , D a l y C i t y , C a l i f o r n i a 9 4 0 1 5 - 0 4 7 4 , U S A . F O i n o p r o f i t c o r p o r a t i o n .

R o n a l d V F o r s y t h e , F O P r e s i d e n t , D a l y C i t y , C a l i f o r n i a

T h a n k y o M r F o r s y t h e ! W e ' v e b e e n w a i t i n g f o l e t t e r l i k ey o u r s l o n g t i m e . I ' m s u r e m a n y o o u r e a d e r s w i l l t a k e y o u o y o u r o f f e r , e s p e c i a l l y t h e o n e s t h a t h a v e p r e v i o u s l y i n q u i r e da b o u t j u s t s u c h s o u r c e o C P / M i n f o r m a t i o n .

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

Page 18: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 18/84

S i m p l i f y i n g t h r a i d : S a a g a i n ? u s r e l a t i v e f i l e s l o t , a n t h a t o c c a s i o n a l b u d r i v e s m c r a z y . w e l c o m e S h i l o h ' s R a i d( J a n u a r y 1 9 8 7 ) b u d o n ' t w a n t t r u a e i g h t h o u r t e s t , j u s tw a n t t h f i l e s t w o r k . I ' v e s p e n t h o u r s s t u d y i n g t h a r t i c l e a n j u s t w a n t s o m e t h i n g s i m p l e . C a y o p r i n t j u s t a s m a l l r o u t i n e t b i n s e r t e d w h e n p o s i t i o n i n g t r e c o r d ?

M a C h a p m a n , R e n o , N e v a d a

W e l l , m a y b e i w a l i t t l e c r y p t i c , M a x . H o w e v e r , i o u c a l c u l a t i o n s a r c o r r e c t , t h s u b r o u t i n e b e l o w s h o u l d d t h j o f o y o u . W h e n y o o p e n y o u r r e l a t i v e f i l e , s e t h v a r i a b l e s L a n S t y o u r f i l e l o g i c a l f i l e n u m b e r a n d s e c o n d a r y a d d r e s sr e s p e c t i v e l y , a n s e t h v a r i a b l e t t h r e c o r d l e n g t h o t h f i l e .Y o s h o u l d a l s o i n i t i a l i z e t z e r o t h v a r i a b l e s S R a n W w h i c h a r u s e d i n t e r n a l l y b t h e s u b r o u t i n e . B e f o r e w r i t i n gr e l a t i v e r e c o r d , j u s t s e t t h e v a r i a b l e t t h e r e c o r d n u m b e r y o w a n t , a n c a l l t h e r o u t i n e w i t h G O S U B 9 0 0 0 . W i t h t h i s v e r s i o ny o w i l l h a v e t w r i t e t h e w h o l e r e c o r d ; p o s i t i o n i n g t m i d -r e c o r d i n o t s u p p o r t e d .

8 9 7 0 r e p o s i t i o n t o r e l a t i v e r e c o r d b e f o r e w r i t e8 9 8 0 r e f r o m s h i l o h ' s r a i d ( c 1 9 8 7 d a v i d s h i l o h8 9 9 0 r e m a d a p t e d f r o m t h t r a n s a c t o r , v o l u m e i s s u e9 0 0 0 i s t h e n r s + 1 r s 2 9 0 1 0 n * l : q q / 2 5 4 : = q - q % * 2 5 4 : s - q ° / o * ( l > q )9 0 2 0 i s t h e n s - q ° / o * ( q - l - 1 )9 0 3 0 h n / 2 5 6 : l n - h ° / o * 2 5 69 0 4 0 r e p o i n t t w i c e a n w a i t i n e e d e d9 0 5 0 i t h e n r — 1 : i q o / o r o q o / o r t h e n g o s u b9 0 6 0 : 1 6 9 0 6 0 p r i n t # l f , " p c h r $ ( s a ) c h r $ ( l o ) c h r $ ( h ° / o ) c h r $ ( 0 )9 0 7 0 i t h e n p o k e w , 2 : w a i t w , 3 2 :9 0 8 0 r e t u r n

D o u b l e D e n s i t y H S & P : w i s h t e x p r e s s m t h a n k s t M r B o s e ( L e t t e r s , V o l u m e 7 I s s u e 5 f o h i k i n d c o m m e n t s o H i r e sS e a r c h a n P r i n t . H i s s u g g e s t i o n t e n h a n c e t h p r o g r a m ' so u t p u t w i t h d o u b l e d e n s i t y g r a p h i c s i g o o d o n e a n d h a v et a k e n i t S i b y t e s m u s t b a l t e r e d a n e i g h t m o r e a d d e d t t h p r o g r a m t e f f e c t t h c h a n g e . T h i s i s i m p l e f i i t h s o u r c ec o d e , a n i n c l u d e t h e i n f o r m a t i o n h e r e f o t h o s e w h e n t e r e dt h p r o g r a m t h i s w a y .

U n d e r C K M O R : t e l l p r o g r a m t s e n d 8 0 i n s t e a d o 4 0 b y t e s f o l a r g e p r i n t

w i t h i n N X T B Y T ( i e . r e p l a c e t h e t w s i n g l e " J S R C H R O U T s w i t hd o u b l e " J S R C H R O U T ' s )

L D # 3 S T C O D E +L D #

r e p l a c e sr e p l a c e sr e p l a c e s

L D # 1 4 4S T C O D E +L D A # 1

U n d e r E N D : r e s e t s i n g l e w i d t h c o d e s f o 4 0 r a t h e r t h a n 2 0 b y t e s

L D A # 1 ( a d d e d c o d e )S T C O D E + r e p l a c e s S T C O D E +L D # 1 4 4 r e p l a c e s L D # 2 0 0

U n d e r N X T B Y T : p r i n t e a c h b y t e o n m o r e t i m e t c o m p e n s a t ef o d o u b l e d e n s i t y . N o t e : t h i s c h a n g e i r e q u i r e d i t w p l a c e s

J S C H R O U TJ S C H R O U T r e p l a c e s J S C H R O U T

U n d e r C O D E : c h a n g e p r i n t e r c o d e s f r o m 2 0 t 4 0 b y t e s p e l i n e

D F 2 7 , 7 6 , 1 4 4 , 1 r e p l a c e s D F 2 7 , 7 5 , 2 0 0 , 0

U n f o r t u n a t e l y , n e a s y c h a n g e i a v a i l a b l e f o t h o s e u s i n g t h B a s i c l o a d e r . Q u i t e f e D A T A n u m b e r s c h a n g e a f t e r r a s s e m b l y d u t a d d r e s s a l t e r a t i o n s c a u s e d b e n l a r g i n g t h p r o g r a m . F o t h o s e , h a v e r e w r i t t e n t h B a s i c p r o g r a m t i n c l u d e t h e e n h a n c e m e n t a n d h a v e f o r m a t t e d i a a g e n e r a t o rr a t h e r t h a n l o a d e r . T h i s w i l l c r e a t e a d i s k - b a s e d o b j e c t f i l e t h a tl o a d s m u c h q u i c k e r a n t a k e s l e s s d i s k s p a c e . I t h e r e ' s r o o m ,p e r h a p s i c a n b e i n c l u d e d o t h T h T r a n s a c t o r D i s k i f u t u r e i s s u e .

J a c k R F a r r a h , C i n c i n n a t i , O h i o

T h a n k s f o t a k i n g t h t r o u b l e , J a c k . T h o u g h t h e r e i u n f o r t un a t e l y n o e n o u g h r o o m i t h m a g a z i n e t p r i n t t h n e p r o g r a m g e n e r a t o r , t h e d o u b l e d e n s i t y v e r s i o n o H i - R e s S e a r c ha n P r i n t w i l l i n d e e d a p p e a r o n T r a n s a c t o r D i s k * 1 ( t h i s i s s u e ) .

" F a s t F i l e " r e l o c a t i o n : T h " F a s t F i l e " p r o g r a m ( V o l u m e 7 I s s u e 4 o p a g e c o n t a i n s a a b s o l u t e j u m p i n s t r u c t i o n ( J M P$ C 0 5 0 ) a n i t h e r e f o r e n o r e l o c a t a b l e a s w r i t t e n .

T h u n c o n d i t i o n a l j u m p c a n b e t r a n s f o r m e d t r e l a t i v e j u m pb r e p l a c e m e n t w i t h :

C L B V C + 7

w h e r e 7 i t h p o s i t i v e d i s p l a c e m e n t o t h r e l a t i v e b r a n c hi n s t r u c t i o n . M a k e t h e s e c h a n g e s i t h o r i g i n a l p r o g r a m :

6 i c < > 1 1 5 8 4 t h e n p r i n t I d a t a e r r o r ! " : s t o p1 8 d a t a 8 7 6 , 2 4 9 , 2 2 4 , 1 3 2 , 9 7 , 1 8 4 , 8 1 9 d a t a 7 , 1 4 5 , 5 3 , 2 0 0 , 1 9 6 , 2 5 2 , 1 4 4 , 2 3 2

I w o u l d b n i c e i R i c k N a s h f u r n i s h e d m o r e i n f o r m a t i o nc o n c e r n i n g t h u n d o c u m e n t e d p a r t s o t h S Y i n s t r u c t i o n u s e di t h p r o g r a m , a l o n g w i t h t h s o u r c e c o d e t a c c o m p a n y t h m a c h i n e l a n g u a g e d a t a s t a t e m e n t s .

w o u l d l i k e t s e i i i p o s s i b l e t m o d i f y t h " F a s t F i l e " u t i l i t yf o u s w i t h C O M A L 0 . 1 4 .

L e w i s C B r o w n , R o w a y t o n , C o n n e c t i c u t

d i s s e n t i n g v o t e , f o r P o w e r : a p r o g r a m m e r ,e x p e r i e n c e d i m a n y l a n g u a g e s . O n o m f a v o u r i t e l a n g u a g e si C o w C o m m o d o r e 6 a n e n j o y p r o g r a m m i n g i b e c a u s ee v e r y t h i n g i s a c c e s s i b l e w i t h s l i t t l e e f f o r t ! T h i n t r o d u c t i o no c o m p i l e r s f o t h C - 6 4 w a g r e a t d a f o m e N a t u r a l l y

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

Page 19: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 19/84

a d w i t h s o m e i n t e r e s t A d a m H e r s t ' s c o m p a r i s o n o c o m p i li V o l u m e 7 I s s u e 5 a n f e e l m u s t t a k e i s s u e w i t h s o m e o c o n c l u s i o n s . p u r c h a s e d b o t h o t h c o m p i l e r s w h e n t h e y

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

a n u l t i m a t e l y r e c o m m e n d s S u p e r f o n o v i c e t o i n t e rp r o g r a m m e r s , a n s a y s t h a t i i a t o s s - u p f o e x p e r i

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

t h e r e i t h q u e s t i o n o d o c u m e n t a t i o n . M r H e r s t l a m e n t e dl a c k o t u t o r i a l i t h P o w e r p a c k a g e , a n t h d e a r t h o

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

n . M o s t c o m p i l e r s t h a t h a v e p u r c h a s e d d n o w i t h l a n g u a g e t u t o r i a l s . c o m p i l e r i t o o l . I s h o u l d

i n s t r u c t i o n s o h o t u s i t t u t o r i a l i e x t r a . ( W o r dr s d o n ' t c o n t a i n l e s s o n s o n g r a m m a r , d t h e y ? ) f o u n d

d o c u m e n t a t i o n t h a t a c c o m p a n i e d P o w e r t b q u i t ea n a c c u r a t e . I i t P r o - L i n e ' s c r e d i t t h a t t h d o c u

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

t i o n s q u i c k l y a n t h a n s w e r s a r m a t t e r - o f - f a c t , n o t u t oi s t y l e . l i k e t h a t . M c o p y o P o w e r c a m e w i t h t h

P l u s b o o k f r o m S A M S . T h i s i a e x c e l l e n t t e x t , a n f i n du s i a m p r i m a r y r e f e r e n c e . P r o - L i n e d i i n d e e d d r o p

t e x t i n l a t e r r e l e a s e s b u t , a s a i d b e f o r e , i w a e x t r a t b e g i nd i f i n d t h t u t o r i a l i n t h S u p e r p a c k a g e t b

I n d e e d , t h o u g h t i w a t h b e s t p a r t o t h p a c k a g e ,t c o n d e m n t h P o w e r p a c k a g e b e c a u s e i d o e s n o

t u t o r i a l i m i s s i n g t h m a r k .

l a c k o g r a p h i c s f u n c t i o n s i P o w e r i u n f o r t u n a t e , b u ta r v e r y e a s y t i m p l e m e n t . O t h e r w i s e t h l i b r a r y f u n c t i o n s

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

l i n k e r o p t i o n s i P o w e r a r m u c h m o r e f l e x i b l e t h a n t h o s ei S u p e r C Y o c a l i n k y o u r p r o g r a m s t b l o a d e d

r u a B a s i c f i l e . Y o c a a l s o l i n k t h e m t b l o a d e d a n u n d e r t h s h e l l , w i t h c o m m a n d l i n e a r g u m e n t s a n i /

t i o n . Y o c a a l s o l i n k t h e m t f i x e d a d d r e s s t b w i t h S Y c o m m a n d ( f o r w e d g e s a n d o t h e r n i c e

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

o n a r e a t h a t i m o s t i m p o r t a n t t m a n y p r o g r a m m e r s i s p e e d . H d o e s m e n t i o n t h a t P o w e r h a t h e d g e i

c a t e g o r y . H A T H E D G E ? ? ? ? ? ! ! ! ! M v e r s i o n o t h p r i m es i e v e p r o g r a m t o o k 1 t i m e s a l o n g w i t h S u p e r

t P o w e r . E l e v e n m i n u t e s c o m p a r e d t o n m i n u t e .c o d e e x e c u t e s s l o w e r t h a n c o m p i l e d B a s i c . T h o n

p r o g r a m t h a t h g i v e s r e s u l t s f o i i / o i n t e n s i v e ( c o n v e r s i o n p r o g r a m ) . T h a t i n o t a v a l i d t e s t o p r o g r a m

s p e e d . T h 1 5 4 1 d i s k d r i v e i t h s l o w e s t d r i v e o t h a n t h 1 5 7 1 i n o m u c h b e t t e r . H i p r o g r a m i l i m i t e d

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

s h e l l i U N I X - l i k e , i t h a t i i c o m m a n d - l i n e d r i v e n ,

a l l o w s i / r e d i r e c t i o n , a n s o m e s t a n d a r d U N I X u t i l i t i e s a r i n c l u d e d . l i k e t h c o m m a n d i n t e r f a c e . f i n d i s t r a i g h t f o r w a r da n f u n c t i o n a l . I n d e e d , f u n c t i o n a l i m d e s c r i p t i o n o t h o v e r a l l p a c k a g e . I i n o f l a s h y , i i n o c u t e , i s i m p l y d o e s w h a ti s a y s i w i l l d o T h a t i e x t r e m e l y i m p o r t a n t w h e n w r i t i n gp r o g r a m s , a i a l l o w s m t c o n c e n t r a t e o t h p r o g r a m b e i n gw r i t t e n , n o o t h e n v i r o n m e n t i w h i c h a w r i t i n g .

I c o n c l u s i o n , c a o n l y r e c o m m e n d t h P o w e r p a c k a g e . T h n o n - s t a n d a r d f o r m a t o t h t e x t f i l e s u s e d b S u p e r C t h f a c tt h a t p r o g r a m s c a o n l y b e r u n f r o m t h s h e l l , a n t h s l o we x e c u t i o n t i m e s m a k e i t h l e s s d e s i r a b l e o t h t w p a c k a g e s .

H e r b R o s e , D a l e C i t y , V i r g i n i a

C o n v e r t e r f o S u p e r - C v l w a s h a p p y t s e A d a mH e r s t ' s a r t i c l e o f o t h C - 6 4 . 1 w a b e g i n n i n g t w o n d e r i w a t h o n l y C - 6 4 o w n e r w o r k i n g w i t h t h l a n g u a g e .

U n f o r t u n a t e l y , a u s i n g S u p e r - C V e r s i o n 1 A d a m ' s f i l e c o v e r t e r w i l l n o c o m p i l e a n l i n k a w r i t t e n w i t h t h a t v e r s i o n .

T h c h a n g e s n e c e s s a r y t p r o p e r l y c o m p i l e a n l i n k t h p r g r a m w i t h S u p e r - C v a r e a s f o l l o w s :

I m a i n ( )l ) # i n c l u d e " a : s t d i o . h " t o # i n c l u d e " s t d i o . c "2 f g e t s ( i n b u f f , 2 5 4 , i n c h a n ) ; t g e t s ( i n b u f f , 2 5 4 , i n c h a n ) ;3 s t a t u s E O F ; t s t a t u s E O I ;4 f p u t s ( o u t b u f f , o u t c h a n ) ; t p u t s ( o u t b u f f , o u t c h a n ) ;

I n a m e f i l e ( )5 g e t s ( n a m e , 1 6 ) ; t g e t s ( n a m e , 1 6 . S T D I O ) ;

I c o n v e r t ( ) a n c o p y b u f f ( )6 c h a r i n b u f f ; t o c h a r * i n b u f f ;7 c h a r o u t b u f f ; t c h a r * o u t b u f f ;

C h a n g e s a n o c c u r b e c a u s e S u p e r - C v l d e f i n e s u n d i m e n -s i o n e d a r r a y s a s h a v i n g n u l l e l e m e n t s , e x c e p t w h e r e i n i t i a lv a l u e s a r e s e a d e f i n i t i o n . I t h c a s e o t h C o n v e r t p r o g r a m ,m o v i n g e l e m e n t s b e t w e e n t h n u l l a r r a y s p r o d u c e s a n o v e r f l o we r r o r . U s i n g p o i n t e r s r e m e d i e s t h p r o b l e m .

C h a n g e s t h r o u g h a r d u t d i f f e r e n c e s i t h s t a n d a r dl i b r a r y .

T h a n k s f o f i n e m a g a z i n e .

T e r r y D D e c k e r , O k l a h o m a C i t y , O k l a h o m a

S u p e r a n t h R A d i s k : I r e f e r e n c e t A d a m H e r s t ' sa r t i c l e , " T a l e o T w C s ( V o l u m e 7 I s s u e 5 ) h a v e t a k e n t h l i b e r t y o f m o d i f y i n g h i " S e q / U s r c o n v e r t " p r o g r a m ( f o r S u p e rC t a l l o w i t b e u s e d f r o m t h o d i s k d r i v e s o r t h e R A ( H d i s k . a l s o d e l e t e d t h e p r i n t i n g p o r t i o n o t h p r o g r a m a f o u n d t h i s s a v e d l o o t i m e i t h c o n v e r s i o n s .

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

Page 20: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 20/84

C o n v e r t i n g 3 b l o c k f i l e g o t h e f o l l o w i n g t i m e s :

o r i g i n a l ( a d i s k t a d i s k )w i t h f i l e p r i n t i n g 1 : 2 1

n e ( a o b : t o a o b : n f i l e p r i n t 0 : 4 6

n e ( a o b t r a d i s k ) 0 : 2 5n e ( r a m d i s k t a o b : 0 : 3 7n e ( r a m d i s k t r a d i s k ) 0 : 1 8

f e e l t h a t t h e s e t i m e s m a k e i w o r t h t h t r o u b l ep r o g r a m t b c o n v e r t e d t t h R A d i s k .

O c a u s M I ( w h i c h , b t h w a y , i v e r y g o o d i m p l e m e n t at i o n o f C ) , w h i c h w o r k s b e a u t i f u l l y o t h R A d i s k i C P / M .

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

J o F a u s t , L o m p o c , C a l i f o r n i a

U n f o r t u n a t e l y , w d o n ' t h a v e s p a c e h e r e f o J o e ' s r e v i s i o n o t h C o n v e r t p r o g r a m . H o w e v e r , i w i l l b i n c l u d e d o t h T r a n s a c t o r

t c o p y t h e d i s k f o t h i s i s s u e .

I r e g a r d t t h R A d i s k , c o n t a c t e d A b a c u s S o f t w a r e a n t h e yp r o v i d e d m w i t h p r o g r a m t i n c r e a s e t h e u s o e x p a n s i o nR A t 1 2 8 K . A f t e r e x p e r i m e n t i n g w i t h i f o w h i l e , f i n a l l yf o u n d o u h o t e x p a n d t h R A d i s k t 1 9 8 5 b l o c k s o 4 9 6 . 2 5 K , u s i n g t h e f o l l o w i n g p r o g r a m :

# i n c l u d e " h : s t d i o . h "2 f i l e o u t c h a n ;

m a i n ( )5

* ( c h a r * ) 0 x e d 0 6 0 x 7 e ;

1 0

o u t c h a n o p e n ( 1 5 , 1 5 , " u : " ) ;c l o s e ( o u t c h a n ) ;

T h f o l l o w i n g h e n u m b e r s p o k e d i n t o $ e d 0 6 b l i n e s i o t h a tp r o g r a m r e s u l t s i t h e s e c o n f i g u r a t i o n s o t h R A d i s k :

$ 3 7 3 b l o c k s f r e e ( t h e e x p a n s i o n s u g g e s t e d b A b a c u s )$ 4 9 9 b l o c k s f r e e$ 6 1 5 0 5 b l o c k s f r e e$ 7 1 9 8 5 b l o c k s f r e e$ 7 f 0 b l o c k s f r e e

A f t e r $ 7 f t h e c o u n t s e e m s t s t a r t b a c k u a g a i n . I i i n t e r e s t i n gt n o t e t h a t a l t h o u g h a $ 7 f t h e b l o c k s f r e e w e r e s h o w n t b z e r o , n o t h i n g i t h e c u r r e n t R A d i s k w a e r a s e d .

S m u c h f o t h g o o d n e w s . W m u s t n o d e a l ( a g a i n ) w i t h c o p yp r o t e c t i o n . W h e n t r i e d t o c o p y t h S u p e r e d i t o r , c o m p i l e r a n l i n k e r t m b i n e R A d i s k , f o u n d c o u l d n o t . W h e na s k e d A b a c u s w h y , w a t o l d b e c a u s e i w a c o p y p r o t e c t e d . . T h e y s a i d t h e r e w a n o t h i n g t h e y c o u l d d a b o u t i t .

W e l l , i m o t h e r C - 1 2 8 m o d e , C P / M , f r i e n d l o a n e d m h i M I C o m p i l e r t t r y . w e n t o u a n b o u g h t i a l t h o u g h c o u l dh a v e j u s t c o p i e d i t a i w a n o c o p y p r o t e c t e d . . I w o u l d o c o u r s e n o h a v e b e e n m u c h u s w i t h o u t t h v e r y l a r g e m a n u a lt h a t c o m e s w i t h t h p r o g r a m . S u p e r w o u l d b e v e n l e s s u s w i t h o u t i t m a n u a l b e c a u s e o i t n o n - s t a n d a r d f e a t u r e s . S g u e s s t h e t h i n g t d n o i g o u a n s p e n d s o m e m o r e m o n e yo p r o g r a m b r e a k e r t h a t w i l l a l l o w m t u s t h p r o g r a mh a v e a l r e a d y p u r c h a s e d i t h w a i s h o u l d b u s e d .

T r a n s B A S I C g r a p h i n g o o n s c r e e n : T h T r a n s B A S I Cg r a p h i n g m o d u l e b P a u l A d a m s i t h a n s w e r t a p r a y e r -a l m o s t . T h p r o g r a m w a n t t u s i i i s l a r g e t h a t j u s t c a n ' ta f f o r d t h l u x u r y o t w h i - r e s s c r e e n s . I i p o s s i b l e t m o d i f yt h e g r a p h i c s r o u t i n e s s t h a t t h e y o n l y w r i t e t o n s c r e e n a n l e a v e t h e o t h e r 9 a v a i l a b l e t B a s i c ?

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

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

E . D . B e r n e r s , S o u t h B e n d , I n d i a n a

I l o o k s f r o m t h c o d e a t h o u g h t h s i m p l e s t w a t m a k e t h c h a n g e y o w a n t i n v o l v e s a l t e r i n g e x a c t l y f o u r l i n e s o c o d e i t h o r i g i n a l m o d u l e . T h i s i g o i n g t l e a v e y o w i t h m o d u l et h a t i m u c h l a r g e r t h a n n e c e s s a r y ( i w i l l s t i l l c o n t a i n a l t h n o w - r e d u n d a n t c o d e t h a n d l e s w i t c h i n g b e t w e e n t h s c r e e n s ) ,b u w h o l e s a l e r e w r i t e i u n f o r t u n a t e l y b e y o n d o u r e s o u r c e s .H e r e a r t h m o d i f i c a t i o n s y o w o u l d h a v e t m a k e :

1 3 0 0 2 ; s t a ( t 4 ) , y1 3 0 3 8 l d x # 31 3 5 0 2 f 4 0 0 . b y t e $ 8 f , $ 4 8 , $ 0 0 , $ 0 0 , $ 0 01 5 1 4 6 h i t e . w o r d $ e 0 0 0

W s h o u l d w a r n y o t h a t t h i s s e o c h a n g e s i u n t e s t e d ;h o w e v e r , w t h i n k t h e y ' l l d t h j o f o y o u . G o o d l u c k .

B u n d l i n g T r a n s B A S I C d i a l e c t s : w o u l d l i k e t g e s o m ei n s t r u c t i o n s f o t h u s o T r a n s B A S I C , i c o u l d . o r d e r e d t h p a c k a g e f e m o n t h s a g o f r o m t h T r a n s a c t o r , a n h a v e f o u n di w o r t h w h i l e , c o s t - e f f e c t i v e p r o g r a m . H o w e v e r , d n o u n d e r s t a n d h o t l i n k m o w p r o g r a m s t t h T r a n s B A S I Cd i a l e c t t h a t h a v e u s e d t w r i t e t h p r o g r a m .

F i r s t o a l l , m u s t e x p l a i n t h a t a n o t a h a c k e r o a " t e c h i e " ;a h i g h s c h o o l E n g l i s h a n h i s t o r y t e a c h e r a n a i n t e r e s t e di w r i t i n g s o m e s i m p l e s o f t w a r e f o u s i m c l a s s e s . h a v ef o u n d B a s i c 2 . 0 t b c u m b e r s o m e , s h a v e b e e n l o o k i n g f o B a s i c e x t e n s i o n t h a t c a n u s e w i t h m p r o g r a m w h i c h w o u l d n o h a v e t b l o a d e d p r i o r t l o a d i n g m p r o g r a m .

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

Page 21: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 21/84

i p o s s i b l e t d t h i s w i t h T r a n s B A S I C ? I s o c o u l d y o e x p l a i nm i s i m p l e , l a y m a n ' s t e r m s h o t d i t h a v e r e a d t h e

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

t d o B o I r v i n g , B r o c k v i l l e , O n t a r i o

y o u h a v e a s s e m b l e d y o u r T r a n s B A S I C d i a l e c t , a n n o t e dh h e x a d e c i m a l s t a r t a n e n a d d r e s s e s o t h o b j e c t c o d e a

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

s u b r o u t i n e b e g i n n i n g a l i n e 9 0 0 0 ( y o u c a r e n u m b e r i i w i l l c o n f l i c t w i t h t h B a s i c c o d e y o h a v e w r i t t e n ) .

h n e x t s t e p i t m e r g e t h i s s u b r o u t i n e w i t h y o u r B a s i cF i r s t s a v e i t d i s k a t e m p o r a r y f i l e ( e . g . S A V E

8 ) T h e a s i e s t w a t d t h m e r g e i w i t h t h A D m e r g e c o m m a n d o t h T r a n s B A S I C d i s k . Y o u c a n e n a b l ec o m m a n d b l o a d i n g a n r u n n i n g t h T r a n s B A S I C p r o g r a m

a t h o u g h y o w e r e a b o u t t c r e a t e n e d i a l e c t . N o y o u r B a s i c p r o g r a m a n t y p e , A D T B T E M P " . W h e n

o g e y o u r R E A D Y p r o m p t b a c k y o s h o u l d h a v e b o t h y o u rp r o g r a m a n t h D a t a f i e d d i a l e c t i m e m o r y a o n

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

i p e e k ( 7 7 3 ) < 1 9 2 g o t o 3e x i t

3 g o s u b 9 0 0 0

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

t d i s k a n y o ' r d o n e .

m u s i c s o f t w a r e s h o r t a g e : a p r o f e s s i o n a l c o a n m u s i c i a n , a n t h p r o u d o w n e r o a A m i g a s i n c e

o b e r , 1 9 8 5 .

p u r c h a s e d t h i s c o m p u t e r , i w a o t h b a s i s o t h p r o m i s e i h e l d . T h c o m b i n a t i o n o p o w e r , e x p a n d

a n e a s e o o p e r a t i o n i m u l t i t a s k i n g e n v i r o n m e n t ,h s t a n d a r d i z e d s t o r a g e o g r a p h i c s , t e x t a n s o u n d f i l e s t

t r a n s f e r b e t w e e n p r o g r a m s m a d e t h A m i g a m c h o i c e .

s u r e , k n e w t h e r e w o u l d b e b i o w a i t f o t h s o f t w a r e .l i k e t h c o m p l e t e r e w r i t e o R o g e r P o w e l l ' s " T e x t u r e "

e r o r t h e n u m e r o u s o t h e r m u s i c p a c k a g e s f r o m C h e r r yT e c h n o l o g i e s m i g h t n o a r r i v e f o f e m o n t h s y e t . . b u

e w a i t w a s b o u n d t b w o r t h i t

a m w e l l o v e r y e a r d o w n t h r o a d . W h a t h a v e g o t f o m p a t i e n c e ? W e l l , t h e r e ' s A c t i v i s i o n ' s " T h e M u s i c

A l t h o u g h n o b a a s m u s i c t o y , i t l a b o r i o u s s y s t e m f o o n o t e s ( t h e A m i g a v e r s i o n d o e s n ' t e v e n a l l o w y o t u s f o t h i s ) m a k e s t h e i r b o a s t o i b e i n g " p r o f e s s i o n a l -

m u s i c c o m p o s i t i o n t o o l " s e e m s t r a n g e . E l e c t r o n i c A r t s 'M u s i c C o n s t r u c t i o n S e t " c o m e s m u c h c l o s e r t f u l f i l l i n g

t h a t p r o m i s e . T h s y s t e m i u s e s f o p l a c i n g n o t e s o t h s t a f f i l o m o r e f l e x i b l e . . a l t h o u g h i s e e m s o d d t m t h a t t h e yw o u l d n ' t u s e t h e v e n m o r e e l e g a n t m e t h o d e s t a b l i s h e d i t h M a c i n t o s h v e r s i o n ( w h e r e y o p l a c e t h e n o t e o t h s c o r e , a n t h e n d r a g t t h r i g h t t o c h o o s e t h t i m i n g v a l u e w h a t c o u l d b s i m p l e r ? )

h a v e t h M i m e t i c s " S o u n d S c a p e P r M i d i S t u d i o " . A a m u l t it a s k i n g w o r k t o o l , t h i s c o u l d b b i h e l p t m s o m e d a y . . b u a t h i s p o i n t t h s e q u e n c e r s e c t i o n w h i c h i w h a t h a v e t h m o s t n e e d o i l a c k i n g i a n o t h s o p h i s t i c a t e d e d i t i n gf e a t u r e s m o s t o t h e r s e q u e n c e r s c o m i n g o t h m a r k e t h a v e .S t i l l , r e m a i n o p t i m i s t i c o t h i s o n e .

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

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

f u l l - f e a t u r e d m i d i s e q u e n c e ra v o i c e l i b r a r i a n , a l e a s t f o t h D X 7 , p r e f e r a b l y f o o t h e r s , a n

v i s u a l e d i t i n g p r o g r a m f o t h M i r a g e .

N o t h i n g w o u l d p l e a s e m m o r e t h a n t h e a r t h a t a w r o n g ,a n t h a t p r o g r a m s l i k e t h e s e a r a v a i l a b l e a l r e a d y . H o w e v e r ,a f t e r m a n y m o n t h s o p e r u s i n g t h v a r i o u s c o m p u t e r a n m u s i cr e l a t e d m a g a z i n e s w i t h n o s m u c h a r u m o u r , i w o u l d b q u i t e s u r p r i s e . S h o a b o u t i t D o e s a n y b o d y h a v e a n ys u r p r i s e s ?

R o B r y a n t o n , R e g i n a , S a s k a t c h e w a n

M o r e S u p e r k i t s o r r o w s : w o u l d l i k e t o a d y e a n o t h e r v o i c et t h a t o R o g e r D e t a i l l e , T h e r e s e , Q u e b e c ( L e t t e r s , V o l u m e 7 I s s u e 5 ) a l s o p u r c h a s e d c o p y o S u p e r k i t 1 5 4 1 d u r i n g t h s u m m e r o 1 9 8 6 , a f t e r r e a d i n g y o u r g l o w i n g r e v i e w ( y o u r r e v i e wi s s t i l l ' g l o w i n g ' ! ) s u f f e r e d s o m e r e a l p r o b l e m s w i t h t h i s p r g r a m . M a n y o t h e f u n c t i o n s d i d n o t w o r k c o r r e c t l y . h a v ew r i t t e n t w l e t t e r s t P r i s m i W a c o , a n d h a v e n e v e r r e c e i v e da n a c k n o w l e d g e m e n t t h a t h a e v e n w r i t t e n ! I n s h o r t , " l i t t l eb o y , d o n ' t b o t h e r u s " , s e e m e d t b t h e i r a t t i t u d e . r e a l i z e t h a tt h p r o g r a m o n l y c o s t $ 2 9 . 9 5 , b u o n s h o u l d r e c e i v e s o m ev a l u e f o t h m o n e y . a l s o r e a l i z e t h a t a ' h o t d o g e a t e r 's u b s c r i b e r t T r a n s a c t o r . n o t i c e t h a t y o h a v e a c c e p t e d a d v e rt i s i n g f r o m P r i s m a n s u p p o s e t h a t t h a t w i l l m a k e a l r e v i e w ss o u n d v e r y g o o d ! h a v e w r i t t e n t h e m t w i c e , e v e n a b o u tw h e t h e r t h n e v e r s i o n , w h i c h a s u p p o s e d t b a b l e t p u r c h a s e f o $ 1 0 , w a s i g n i f i c a n t i m p r o v e m e n t o v e r t h f i r s tv e r s i o n ; c o m p l e t e s i l e n c e !

A n o t h e r c o m m e n t : t h r e p l y w h i c h y o g a v e M r D e t a i l l e w a t h w o r s t " b a l o n e y " I ' v e r e a d i l o n g t i m e ! T h l i n e , " w d o n ' tt h i n k y o u ' l l b d i s a p p o i n t e d w i t h t h q u a l i t y o P r i s m ' s a f t e r -

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

Page 22: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 22/84

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

A n o t h e r c o m m e n t : o n p a g e 1 7 y o s e e m t b o r g a s m i c a b o u tt h f a c t t h a t C o m p u S e r v e l e t s y o u p l o a d w i t h o u t f e e . Y e s , b u a l t h o s e u p l o a d e d p r o g r a m s a r d o w n l o a d e d a C o m p u S e r v e ' sr e g u l a r o n - l i n e c h a r g e s , a n b e c o m e s o u r c e o ' f r e e ' m a t e r i a l sw h i c h t h e y , i n t u r n , s e l l a p r o f i t . W h d o n ' t y o t e l l t h w h o l es t o r y ?

Y o m i g h t t h i n k t h a t a d i s s a t i s f i e d c u s t o m e r o T r a n s a c t o r ,b u I ' n o t ! l o v e t h m a g a z i n e a n d w o u l d l i k e t s e i b e c o m e( i i t ' s n o t a l r e a d y ) t h u l t i m a t e C o m m o d o r e m a g i b o t h c o u nt r i e s . h a v e d r o p p e d m s u b s c r i p t i o n s t s o m e o t h e r " j u n k "C o m m o d o r e m a g s , s u b s c r i b e t C O M A L T o d a y D i s k s a n m i g h t t r 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 s o o n . w a u p s e t a b o u tT P U G ' s h a n d l i n g o m s u b s c r i p t i o n ( m o n t h s o n c o m m u n ic a t i o n ) b u h o p e f u l l y t h a t i r e s o l v e d n o w . K e e p u t h g o o dw o r k a n t a k e c l o s e r l o o k a S u p e r K i t 1 5 4 1 . h a v e u s e dF a s t H a c k e m a n d D i S e c t o r , a n b o t h h a v e d o n e b e t t e r j o b f o m o t h s a m e s y s t e m . M t w d r i v e s c a n ' t b t h a t f a o u i h a v e n e v e r h a d a n y p r o b l e m ; t h a l i g n m e n t p r o g r a m a l s o s a y ss o

R o b e r t L M a n c h e s t e r , H D E , E a s t A u r o r a , N e Y o r k

T h a t w a a w e l c o m e c h a n g e o p a c e i y o u r l a s t p a r a g r a p h ,R o b e r t . W e ' r e s o r r y y o u ' v e h a t r o u b l e w i t h S u p e r K i t a n w i t hP r i s m , b u t a n y t h i n g y o ' o r e a d a b o u t t h e m i n t h i s m a g a z i n eh a b e e n s t r i c t l y i g o o d f a i t h . I d o e s n ' t s u r p r i s e u w h e n p e o p l eh a v e t h o d p r o b l e m w i t h t h S u p e r K i t p r o g r a m i i d e f i n i t e l ys e n s i t i v e t b a a l i g n m e n t , a n p r o b a b l y t d i s c r e p a n c i e s i r o t a t i o n s p e e d , a w e l l . B u o n g o o d d r i v e , o u e x p e r i e n c e i t h a t i w o r k s a a d v e r t i s e d . A f o P r i s m ' s s u p p o r t o u s e r s , m o s to w h a t w h e a r i p o s i t i v e . B u w d o n ' t h a v e a n y i n s t i t u t i o n a lr e l a t i o n s h i p w i t h P r i s m , a n n i n s i d e k n o w l e d g e o h o t h e yt r e a t t h e i r c u s t o m e r s . ( B t h w a y , w h a t i " h o t d o g e a t e rs u b s c r i b e r " ? )

I s o m e b o d y a P r i s m w o u l d l i k e t r e s p o n d t R o b e r t ' s l e t t e r ,w e ' d b g l a d t p r i n t t h a t r e s p o n s e , a n i n t e r e s t e d t h e a r w h h i l e t t e r s h a v e g o n e u n a n s w e r e d . Y o t h e r e , M r D o m e n g e a u x ?

A f o o u n o t e l l i n g " t h e w h o l e s t o r y " a b o u t C o m p u S e r v e :y o u ' l l h a v e t e x c u s e u f o n o r e a l i z i n g t h a t C o m p u S e r v ec h a r g i n g f o d o w n l o a d i n g t i m e i a n e w s w o r t h y i t e m . A o n t i m e , u p l o a d i n g p r o g r a m s t C o m p u S e r v e w a c h a r g e a b l eo n l i n e t i m e a n s u b m i s s i o n s w e r e f r e q u e n t .

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

T r a n s B l o o p u r zC a M e t e r

N o r m H e r m a n o O r e g o n C i t y , O r e g o n , w r i t e s : " T h e " C a pM e t e r " s c h e m a t i c i y o u r J a n u a r y 1 9 8 7 i s s u e w o r k e d p e f e c t l y . . T h e r e w a s m a l l p r o b l e m w i t h t h p r o g r a m ,h o w e v e r . T h c a l c u l a t i o n t h r o u g h o u t w a s u p e r b , b u s i n c et w r a n g e s o v a l u e s c a l c u l a t e d o u i s c i e n t i f i c n o t a t i o n , b o t he m p l o y i n g t h E a n s i n c e t h A S C ( P $ ) i 6 f o b o t h r a n g e s ,b o t h c a m e u a P T h E - 0 3 h a t b s p l i t o f f , w h i c h c a b d o n e b y a d d i n g l i n e 5 6 5 , t h u s :

5 6 i p e - 0 3 " t h e n p r i n t . 0 0 " x $ u f " : r e t u r n

B i t s

S h i r l e y K a r i s h o H i c k s v i l l e , N n o t e d s l i g h t e r r o r i l a s ti s s u e ' s b i t s s e c t i o n : " i n " 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 " ,t h v e r y f i r s t l i n e o t h p r o g r a m s h o u l d b L D # $ 0 4 i n s t e a do L D # $ 0 4 . W i t h t h a t l i t t l e c h a n g e , s h r e p o r t s , i w o r k sj u s t f i n e . "

N - B o d y S i m u l a t o r o T r a n s a c t o r D i s k 1

T h " N - B o d y S i m u l a t o r " p r o g r a m w a f i n e a l i s t e d i t h m a g a z i n e , b u t t h e p r o g r a m o n t h T r a n s a c t o r D i s k ( d i s k 1 7 )h a f e p r o b l e m s : l i n e s 2 2 a n 2 3 5 0 a r e m i s s i n g a n p r e v e n t t h p r o g r a m f r o m r u n n i n g . T c o r r e c t t h p r o g r a m ,j u s t L O A D i a n e n t e r t h e s e l i n e s f r o m t h l i s t i n g o p a g e 3 o V o l u m e 7 I s s u e 6

S o m e N o t e s o T r a n s a c t o r D i s k 1

T h e r e a r t w P R f i l e s o D i s k 1 t h a t h a v e r a i s e d a c o u p l eo q u e s t i o n s . " A T O M " i l o a d e d b y " R E V E R S I " , a n d" R O C K E T " i l o a d e d b " F E N C E " . L o a d i n g A T O M o R O C K E T t h e m s e l v e s i m e a n i n g l e s s .

T h N - B o d y S i m u l a t o r p r o g r a m w a s u b m i t t e d w i t h r e a d y - t o -l o a d f i l e s t h a t w o u l d ' v e s a v e d y o f r o m t y p i n g i t h v a l u e sf r o m t h c h a r t s . W r e g r e t n o i n c l u d i n g t h e s e o D i s k 1 7 s w e ' v e d e c i d e d t p u t h e m o D i s k 1 8 a l o n g w i t h s o m e e x t r as y s t e m s t h a t w e ' v e c o m e u w i t h o u r s e l v e s . T h f i l e s c a b i d e n t i f i e d b t h " . N B " s u f f i x , b u d o n ' t e n t e r t h e s u f f i x w h e ns p e c i f y i n g t h e f i l e n a m e f o l o a d . F o c o n v e n i e n c e w e ' l l p u a n o t h e r c o p y o t h e s i m u l a t o r o D i s k 1 8 t o o .

T w o - B u t t o n M o u s e

C h a r l e s M c C a r t h y f r o m S t P a u l M N w r o t e w i t h t h f o l l o w i n gc o r r e c t i o n : " T h i s c o n c e r n s t h n i f t y a r t i c l e a b o u t t h C - 1 3 5 0m o u s e ( v o l u m e 7 i s s u e 6 p a g e s 3 6 - 3 8 ) . T h e r e i a e r r o r i t h c o d e f o t h p r o c e d u r e T E S T o p a g e 3 8 a B T N 1 + 2 t h e r e s h o u l d b e a n R T S , n o . B Y T $ 2 c . T h c o d e a p u b l i s h e d w i l l c h a n g e t h e d e s i r e d , t . Z i l o c a t i o n$ 0 1 A 9 i z e r o , a n w i l l c h a n g e t h d e s i r e d . t . i b i 7 o $ 0 1 A 9 i s O . "

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

Page 23: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 23/84

T e l e C o l u m n

T r a n s a c t o r O n l i n e C o n f e r e n c eS u n d a y , A p r i l 2 6 8 : 0 0 P E S

o C o m p u S e r v e .S u b j e c t : W r i t i n g A r t i c l e s t h a t

G E P U B L I S H E D !

g e d o z e n s o a r t i c l e s e v e r y m o n t h , m a n y w c a n ' t u s e . W h y ?r e a s o n s c o m e u a f a s t a t h a r t i c l e s c o m e i n B u i

h a v e t b t h a t w a y . M u c h o t h i s i c o v e r e d i o u W r i t e r ' s G u i d e , w h i c h w a f o u r y e a r s i t h m a k i n g

f r e e s e n d S A S E ) . H o w e v e r , s i n c e p r i n t i n g t h e g u i d ea c q u i r e d e n o u g h n e c r i t e r i a f o r ' 8 6 ' i n g a a r t i c l e t o m a k e

e n e x t g u i d e d o u b l e t h s i z e o t h f i r s t , a n w e ' r e q u i t e s u r el l f i n d m o r e .

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

m a n y p r o g r a m s w r e c e i v e a r e g o o d , b u t o d i f f i c u l t t W e ' l l d i s c u s s h o y o c a a d j u s t p r o g r a m s y o u ' v e

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

Y O g e p a i d . a n i s n ' t t h a t w h a t i t ' s a l a b o u t ? D a r n

w r i t t e n a a r t i c l e b e f o r e ? M a n y a r t i c l e s w p r i n t a r e t h ef i r s t a t t e m p t . W r i t i n g i o f t e n e a s i e r t h a n t a l k i n g ,y o h a v e t i m e t t h i n k a b o u t w h a t y o u ' l l s a y . S i

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

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

c o n f e r e n c e w i l l b h e l d i C B M C O M , T h C o m m o d o r eF o r u m . O n c e o n C o m p u S e r v e , t y p e " G

a n e n t e r " C O " a t h m a i n f u n c t i o n p r o m p t . I s t a r t s8 : 0 0 P E S o S u n d a y , A p r i l 2 6 , a n m y s e l f , R i c h , C h r i s a n

w i l l s e y o t h e r e !

t o r P r o g r a m s o n C o m p u S e r v e

g r a d u a l l y g e t t i n g a l o t h e T r a n s a c t o r D i s k s u p l o a d e d t S e r v e . Y o u c a f i n d t h e m i D a t a L i b r a r y 1 o C B M P R G ,

T h C o m m o d o r e P r o g r a m m i n g F o r u m . D a t a L i b r a r y 1 6 o C B M P R G w i l l c o n t a i n a l o t h p r o g r a m s t h a t h a v e b e e np u b l i s h e d i t h B i t s s e c t i o n , a n t h o s e f e t h a t h a v e a p p e a r e di t h L e t t e r s c o l u m n .

S i n c e f i l e n a m e s o C o m p u S e r v e a r l i m i t e d t s i c h a r a c t e r s( t h e e x t e n s i o n w i l l a l w a y s b " . B I N " i e u p l o a d e d w i t h X m o -d e m ) , t h e y w o n ' t a l w a y s b v e r y d e s c r i p t i v e . S u n l e s s y o k n o w t h e x a c t n a m e w c h o s e t u p l o a d t h f i l e , i m i g h t g e d i f f i c u l t l o c a t i n g a s p e c i f i c p r o g r a m . T h e r e f o r e , w c a r e f u l l yd e s i g n e d f o r m a t o k e y w o r d s t h a t m a k e s t h e m e a s y t f i n d .H e r e ' s a e x a m p l e :

V 7 1 0 4 P 7 J A N 8 7 C 6 T R A C E 4 4 . S R C H R E T R A C E R P A S O U R C E

T h k e y w o r d s s t a r t w i t h t h V o l u m e , I s s u e , a n P a g e n u m b e r s ,f o l l o w e d b t h d a t e o t h c o v e r . T h P a g e n u m b e r i t h p a g et h a t t h l i s t i n g s t a r t s o n N O t h f i r s t p a g e o t h a r t i c l e .

N e x t i t h m a c h i n e ( s ) t h p r o g r a m w i l l r u o n S o m e p r o g r a m sw i l l r u o a n m a c h i n e , i w h i c h c a s e t h i s w i l l b " B A S I C " .T h e x a c t n a m e o t h f i l e a i a p p e a r s o t h T r a n s a c t o r D i s kc o m e s n e x t ( " T R A C E 4 4 . S R C " ) , a n w s u g g e s t y o u s t h i sn a m e o n c e i t ' s d o w n l o a d e d t m a k e i m o r e i d e n t i f i a b l e w h e nt a l k i n g w i t h o t h e r s w h h a v e t h p r o g r a m , b u o b t a i n e d i e l s e w h e r e . A t h m o m e n t w e ' r e n o s u r e h o t s h o w w h e r et h e " e x a c t f i l e n a m e " e n d s , s o t h i s w i l l b d u p l i c a t e d i t h f i l ed e s c r i p t i o n t h a t i d i s p l a y e d b e l o w t h k e y w o r d s . F o l l o w i n g t h f i l e n a m e a r e s o m e e x t r a k e y w o r d s t h a t w i l l d e s c r i b e t h e g e n e r a lp u r p o s e o t h f i l e i t h f i l e n a m e l e a v e s l i t t l e t o m u c h t t h i m a g i n a t i o n .

N o w h e n y o u ' r e r e a d i n g T r a n s a c t o r , a n d y o u j u s t c a n ' t w a i t t g e c o p y o p r o g r a m , s i g n o t C o m p u S e r v e , " G C B M P R G " , a n e n t e r D L 1 7 a t h m a i n f u n c t i o n p r o m p t ( D L 1 6f o B i t s ) . I " M i n i - T r a c e r " i t h p r o g r a m y o u w a n t , a i t h

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

Page 24: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 24/84

a b o v e e x a m p l e , e n t e r t h f o l l o w i n g a t h D p r o m p t :

b r / k e y : v 7 i O p 7

. . a n d t h f i l e s h o u l d a p p e a r i n s t a n t l y . T h a b o v e w o u l d s h o wy o t h s o u r c e f i l e . I y o o n l y w a n t t h e L o a d e r , y o w o u l d e n t e r :

b r / k e y : v 7 i O p 6

O c c a s i o n a l l y t h e r e m a b t w o t h r e e p r o g r a m s t h a t s t a r t o t h s a m e p a g e . I t h o n y o w a n t d o e s n ' t s h o w u f i r s t , j u s tk e e p h i t t i n g R e t u r n a t h p r o m p t s a n d e v e n t u a l l y i w i l l .

H O W E V E R , p l e a s e n o t e t h a t a l t h o u g h t h a b o v e i a a c c u r a t ee x a m p l e , M i n i - T r a c e r h a n o b e e n u p l o a d e d a o t h i s w r i t i n g .

T h M a g a z i n e D i s p l a y A r e a

A f t e r s t a r t i n g w o r k o n t h e D i s p l a y A r e a t h a t w e ' v e b e e n m e t i o n i n g o v e r t h l a s t f o u r i s s u e s , w s o o n r e a l i z e d t h a t i w w e r eg o i n g t r e f e r t p r o g r a m s f r o m w i t h i n t h a r t i c l e s o t h s e r v i c e , w s h o u l d k n o w w h a t t h n a m e i b e f o r e w r e f e r t i t W c o u l d h a v e c h o s e n a m e s p r i o r t u p l o a d i n g t h p r o g r a m s ,b u t h e n t h a r t i c l e s w o u l d r e f e r t f i l e s i t h D L t h a t a r e n ' t y e t h e r e . S w d e c i d e d t h a t t h p r o g r a m s s h o u l d b s a f e l y i t h D L b e f o r e w r e f e r t o t h e m b y n a m e . W h e n a l t h T r a n s a c t o rp r o g r a m s a r u p l o a d e d , w o r k w i l l r e s u m e o n t h D i s p l a y A r e a ,w h i c h s h o u l d b s o m e t i m e i n A p r i l .

C A D 3 0 . B I N b S t e v e N y [ 7 0 3 6 6 , 1 3 1 6 ]a d r a w i n g / d r a f t i n g p r o g r a m f o t h C o m m o d o r e 6

D i y o e v e r w i s h y o c o u l d t r o u t h a t n e f l o o r p l a n b e f o r em o v i n g a l t h f u r n i t u r e ? O p r i n t m a t y o u r h o u s e f o t h o s eo u t - o f - t o w n g u e s t s ? N e e d t c r e a t e b a o r p i e c h a r t f o t h a ts a l e s m e e t i n g t o m o r r o w ? A l t h i s a n m o r e i a v a i l a b l e f o t h p r i c e o d o w n l o a d i n g f r o m C o m p u S e r v e ' s C B M A R T S I G .

C A i d r a w i n g / d r a f t i n g p r o g r a m f o t h C o m m o d o r e 6 4 O r i g i n a l l y d e s i g n e d t d e l e c t r o n i c s c h e m a t i c s , i h a e v o l v e di n t o o n o t h m o s t c o m p l e t e d r a w i n g p a c k a g e s a v a i l a b l e . T h e a s e w i t h w h i c h i i m o d i f i e d a n e x p a n d e d h a a l l o w e d t h u s e r s o t h p a c k a g e t b m a j o r c o n t r i b u t o r s t i t d e v e l o p m e n t .

A s i d e f r o m t h e u s u a l d r a w i n g f u n c t i o n s ( l i n e , b o x , c i r c l e , e r a s e ,e t c . ) , t h e r e w e r e f r o m t h o u t s e t t h r e e m a i n r e q u i r e m e n t s f o t h p a c k a g e , a e a s i l y e x p a n d e d a n d m o d i f i e d c o m m a n d s e t , t h r e eh i r e s s c r e e n s r e s i d e n t i R A M , a n t h a b i l i t y t o a c c e s s l i b r a r yo p r e - d e s i g n e d f i g u r e s .

T h e a s e w i t h w h i c h B A S I C i m o d i f i e d m a d e i t h o b v i o u sc h o i c e f o p r o g r a m m i n g l a n g u a g e , b u t t h l a c k o h i g h r e s o l ut i o n c o m m a n d s h a t b o v e r c o m e . p a c k a g e o U S c a l l sf r o m t h o l C o m m o d o r e S I G , U S R M L , m a d e i p o s s i b l e t a c c e s sm a c h i n e l a n g u a g e r o u t i n e s f o h i r e s w o r k w h i l e k e e p i n g t h m a i n s t r u c t u r e o t h p r o g r a m i B A S I C .

C A i a c t u a l l y a p a c k a g e o e i g h t y - t h r e e s h o r t p r o g r a m s . T h c o m m a n d f u n c t i o n p r o g r a m s a r e l i n k e d t o g e t h e r b c o m m a n dp r o c e s s o r , a n o n l y o n i l o a d e d a t i m e . T h u s o l i n k e dp r o g r a m s k e e p s t h a m o u n t o m e m o r y n e e d e d b B A S I C t m i n i m u m a n a l l o w s v i r t u a l l y u n l i m i t e d c o m m a n d s e t . S i n c et h C A p r o g r a m s o n l y n e e d t p a s s n u m e r i c v a r i a b l e s , t h l i n k i n g p r o c e s s i s i m p l e o n e ; i i o n l y n e c e s s a r y t e n s u r et h a t t h f i r s t p r o g r a m l o a d e d i t h e l o n g e s t i t h p a c k a g e .

T h p r e - d r a w n f i g u r e a c c e s s w a s i m p l e p r o g r a m m i n g p r o bl e m . T h f i g u r e s a r e s t o r e d o d i s k a a n d i s p l a c e m e n t sf r o m r e f e r e n c e p o i n t . W h e n t h f i g u r e i r e c a l l e d , t h e s ed i s p l a c e m e n t s a r a d d e d t t h e p r e s e n t p o s i t i o n o t h e c u r s o ra n t h p i x e l a t h a t l o c a t i o n i s e t . T h s i z e o t h f i g u r e i l i m i t e d t p l u s o r m i n u s 1 2 p i x e l s a n t o t a l o 2 5 ' o n ' p i x e l sc a n b e i n c l u d e d i e a c h f i g u r e . T h e n u m b e r o f i g u r e s o d i s ki l i m i t e d o n l y b t h n u m b e r o a v a i l a b l e d i r e c t o r y e n t r i e s .T h a n k s t u s e r s u p p o r t t h e r e a r e n o o v e r t h i r t y f i g u r e l i b r a r i e s ,i n c l u d i n g f u r n i t u r e f o f l o o r p l a n s , U S G S m a s y m b o l s , e l e c t r o n i cs c h e m a t i c s y m b o l s , p l u m b i n g f i x t u r e s , a n n u m b e r o f f o n t s e t sf o l e t t e r i n g h i r e s s c r e e n s .

p a c k a g e t h a t h a n o t r e c e i v e d a m u c h a t t e n t i o n a s C A D , b u i c l o s e l y r e l a t e d , i G R A P H . T h i s p a c k a g e a l l o w s d r a w i n g h i g hr e s o l u t i o n p i e c h a r t s , b a c h a r t s , a n l i n e p l o t s . U s i n g d y n a m i ck e y b o a r d t e c h n i q u e i e v e n a l l o w s g r a p h i n g o u s e r - i n p u te q u a t i o n . S i n c e G R A P H i n i t i a l l y b o o t s t h e n t i r e C A s u p p o r tl i b r a r y , i i p o s s i b l e t m o v e f r o m G R A P H t C A b s i m p l yc h a n g i n g t h d i s k . T h i s a l l o w s t h e u s e r t m o d i f y , l e t t e r , a n o t h e r w i s e m a n i p u l a t e t h g r a p h .

T h C A a n G R A P H p a c k a g e s a r e a v a i l a b l e f r o m C B M A R TD a t a L i b r a r y 1 2 u n d e r t h e f i l e n a m e s C A D 3 0 . B I N a n G R A P H V -. B I N . T h e r e a r n u m e r o u s s u p p o r t f i l e s , s u c h a s t h e f i g u r e s e t s ,a n n u m b e r o C A D G a m e s d e s i g n e d t b p l a y e d u s i n g C A D .I f a c t , t h s u p p o r t f i l e s f o C A b e c a m e s n u m e r o u s t h a t n o D a t a L i b r a r y 1 2 i d e v o t e d e x c l u s i v e l y t C A D . S u p p o r t f o t h p a c k a g e i a v a i l a b l e t h r o u g h r e g u l a r l y s c h e d u l e d c o n f e r e n c e sa n t h m e s s a g e s e c t i o n o t h S I G .

A n o t h e r O n l i n e O d y s s e yb M a r t e B r e n g l e , G l e n d a l e , C C h e c k o u T h S o u r c e a n d e x p a n d y o u r o n l i n e w o r l d .R a n j a n B o s e ' s a r t i c l e i n t h M a ' 8 T r a n s a c t o r g a v e g o o do v e r v i e w o t h r e e o t h m o s t p o p u l a r n a t i o n a l o n l i n e s e r v i c e sf o C o m m o d o r e o w n e r s . O n o t h e r l a r g e n a t i o n a l s e r v i c e w h o s en a m e d o e s n ' t u s u a l l y c o m e u w h e n o n t h i n k s o t o p i c s o i n t e r e s t t C o m m o d o r e o w n e r s i T h S o u r c e .

I t h p a s t , T h S o u r c e ' s t a r g e t " a u d i e n c e " h a b e e n b u s i n e s s -o r i e n t e d a n m o s t l y I B M - u s i n g , r a t h e r t h a n t h k i n d s o p e o p l ew h u s t h " c o n s u m e r " s e r v i c e s p r o v i d e d b C o m p u S e r v e o Q u a n t u m L i n k . T h a t i c h a n g i n g t h e s e d a y s , a n l a r g e f a c t o ri n f l u e n c i n g t h a t c h a n g e i t h n e C o m m o d o r e - o r i e n t e d S p c i a l I n t e r e s t G r o u p ( S I G ) . A n o y o w h u s e d t v i s i t T h T r a n s a c t o r o V i e w t r o n m a a l r e a d y b f a m i l i a r w i t h t h f o l k sw h r u t h C o m m o d o r e S I o T h S o u r c e . I t ' s t h I n d e p e n -

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

Page 25: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 25/84

C o m p u t e r U s e r G r o u p ( I C U G ) , t h e s a m e c r e w w h r a I n n e r W o r k s , a n F o S t a r t e r s o V i e w t r o n .

h S o u r c e p r o v i d e s t h s a m e k i n d s o s e r v i c e s a t h o t h e rn e t w o r k s i n f o r m a t i o n , p u b l i c d o m a i n s o f t w a r e , g a m e s ,

n t h l i k e a n h a j u s t a d d e d r e a l - t i m e c o n f e r e n c i n g a r e a ,C h a t . T h o s e o y o w h h a v e u s e d C o m p u S e r v e ' s " C

o a n o t h " C O " a r e a s i t h F o r u m s m a f i n d t h a ti e v e n e a s i e r t u s e .

i n t e r a c t i v e c o n f e r e n c e s a r a e x e r c i s e i m e n t a lc s , u n l e s s y o a r e u s i n g t e r m i n a l p r o g r a m w i t h s p l i ts i n c e y o u r m e s s a g e s c a n g e t o t a l l y t a n g l e d u w i t h

p e o p l e ' s o t h e s c r e e n . O n o t h f i r s t t h i n g s C I C u s e r st d i p r e s s c t r l - V ( r e p e a t e d l y ! ) t s t r a i g h t e n o u t h e i r

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

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

y o t h a l f d u p l e x , r e t u r n t C h a t a n d s h o w y o u y o u r o w w i t h o u t t h e i r b e i n g o v e r r u n b e v e r y o n e e l s e ' s . A n

S o u r c e ' s c o m m a n d s t r u c t u r e , y o c a e v e n s e y o u r s e l f u " p e r s o n a l c o m m a n d k e y " ( a w a p o s s i b l e o V i e w t r o n ) t d

t h a t " p r e p a r a t i o n " a u t o m a t i c a l l y a s i t a k e s y o i n t o C h a t .a b o u t t h a t i m o m e n t . ) I t ' s l i k e g e t t i n g t h b e s t o

o P l a y N E T ( e a c h m e s s a g e i a e n t i t y u n t o i t s e l f d y o u d o n ' t h a v e t u n s c r a m b l e t h e m ) w i t h t h b e s t o t h

n e t w o r k s ( n p r o p r i e t a r y s o f t w a r e r e q u i r e d ) . A n n i c e ry o d o n ' t p a e x t r a f o u s i n g h i g h e r b a u d r a t e s i S o u r c e

I t ' s b i l l e d a t h 3 0 0 b a u d r a t e n m a t t e r h o f a s t y o t g ( u t 2 4 0 0 b a u d a p r e s e n t ) .

S o u r c e a l s o f e a t u r e s o n o t h m o s t s o p h i s t i c a t e dr d " s y s t e m s a r o u n d , c a l l e d P a r t i c i p a t e ( t m ) . Y o

a b s u r p r i s e d a t h e k i n d s o t h i n g s t h a t a r p o s s i b l e i o P a r t i a i t ' s c a l l e d . M u c h l i k e C I S , m e s s a g e s f o l l o w

o t h e r i " t h r e a d s " , b u t o C I S , o n l y t h S y s o p s c a m o v ea g e s f r o m o n t o p i c t a n o t h e r . N o s i n P a r t i . M e s s a g e s

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

S y s o p p o w e r s r e q u i r e d . T h e r e a r e p r i v a t e t o p i c s o b o t ha n P a r t i , b u o P a r t i a n y o n e c a s t a r t o n e , a n c a i n v i t e

o f h i s o h e o w c h o o s i n g .

n o t h n i c e s t t h i n g s a b o u t t h l a t e , l a m e n t e d V i e w t r o n w a i a l l o w e d y o t o s e t u y o u r o w p e r s o n a l " c o m m a n d

t t a k e y o a n y w h e r e i t h s y s t e m . I y o d i d n ' t f e e l l i k eI C U G S I G S P E A K E A S Y e v e r y t i m e , f o e x a m p l e , y o

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

i n t o s e q u e n c e a y o n e e d , t g e y o a n y w h e r e o s y s t e m w i t h j u s t o n k e y s t r o k e , i y o c h o o s e . H e r e ' s a

o o n o m o w c u s t o m k e y s . I ' v e p r o g r a m m e d t h t s w i t c h m t h a l f d u p l e x , t a k e m i n t o I C U G S I G C h a t

s p e c i a l C h a t a r e a r u n b y t h C o m m o d o r e S I G ) , c h e c k t s e h e l s e i t h e r e , g i v e m a " a l i a s " ( o " h a n d l e " ) , m a k e s u r e

s e m o w m e s s a g e s , a n e n t e r t h e I C U G R e c e p t i o n. T h l i s t i n g l o o k s r e a l l y c o m p l e x w h e n y o s e i o t h b u i w o r k s l i k e c h a r m :

t e r m - h a l f ; i c u g c h a t . 1 0 1 5 - s - a m a r t e - d m - 3

M o r e c o m p l e t e i n s t r u c t i o n s f o s e t t i n g u p e r s o n a l c o m m a n dk e y s a r f o u n d i t h S o u r c e m a n u a l , a n a l s o i P a r t i u n d e r t h t o p i c " C u s t o m K e y s . "

Y o c a a l s o s e u f i l e t r u a u t o m a t i c a l l y e a c h t i m e y o s i g no n t o T h S o u r c e , i t h e r e a r e c e r t a i n t h i n g s y o u ' d l i k e t d e v e r yt i m e y o s i g n o n . F o r e x a m p l e , m f i l e t u r n s m " c u s t o m k e y s "o n a n t h e n c h e c k s t s e w h a t ' s i m m a i l b o x . B u t h a t ' s n o a l y o c a d o E v e r g e t i r e d o f s e e i n g t h s y s t e m ' s " w h a t n e x t "p r o m p t s ? Y o c a n r e p r o g r a m e v e n t h a t t s u i t y o u r m o o d .I n s t e a d o t h s t a n d a r d " a r r o w " t h a t T h S o u r c e u s e s f o C o m m a n d L e v e l p r o m p t , h a v e i s e u t s a " W h a t n o w ? "A n i n s t e a d o t h q u e s t i o n - m a r k - a n d - a r r o w c o m b i n a t i o n t h a tm e a n s y o m a d e m i s t a k e s o m e w h e r e , m p r o m p t s a y s " U o h ! " M s i g n - o n f i l e s e t s t h a t u a w e l l . Y o c a f i n d i n s t r u ct i o n s f o a l t h a t i t h S o u r c e m a n u a l u n d e r " C u s t o m i z i n g T h C o m m a n d L e v e l P r o m p t , " o i P a r t i i t h " C u s t o m K e y s "t o p i c .

A l t h o u g h I ' v e m e n t i o n e d t h S o u r c e m a n u a l s e v e r a l t i m e s h e r e ,a n i i f o t h m o s t p a r t g o o d i n v e s t m e n t , t h e f a s t e s t w a t f i n d h e l p f o w h a t y o u n e e d t d o o n l i n e i g e n e r a l l y t a s s o m e o n e . T h P a r t i s e c t i o n i t h m a n u a l , f o e x a m p l e , i o u o d a t e ( a i t h P a r t i s e c t i o n i C h a r l i e B o w e n a n D a v e P e y t o n ' se x c e l l e n t b o o k " H o w t G e T h M o s t O u t O f T h S o u r c e " ) . A n I C U G S I G i a g r e a t p l a c e t o f i n d a l k i n d s o h e l p w i t h u s i n g t h es y s t e m . T h e r e a r q u i t e f e " h e l p w i t h P a r t i " t o p i c s s e u u n d e r I C U G S I G E x c h a n g e i n P a r t i , a n t h S I a l s o p r o v i d e s a" N e w U s e r S u r v i v a l K i t " u n d e r t h m a i n S I m e n u t h a t ' s a g o l dm i n e o i n f o r m a t i o n . I c o v e r s s u c h t h i n g s a s n a v i g a t i o n c o m a n d s , " h o w t d o w n l o a d / u p l o a d , " h o t u s S o u r c e M a i l ,h o t u s t h M e m b e r s ' D i r e c t o r y , a n c o m p l e t e a n t h o ro u g h t u t o r i a l o h o t u s P a r t i . A n t h e r e ' s n e " A s k T h E x p e r t s " s e c t i o n t h a t ' s m u c h l i k e t h o n o V i e w t r o n , w h e r eC o m m o d o r e u s e r s c a g e i n f o r m a t i o n o h a r d w a r e , s o f t w a r e ,o a n o t h e r c o m p u t e r - r e l a t e d p r o b l e m .

Y o c a u p l o a d t a n d o w n l o a d f r o m t h s o f t w a r e l i b r a r i e s w i t ha v a r i e t y o p r o t o c o l s , i n c l u d i n g t w v a r i a t i o n s o " c a p t u r eb u f f e r , " X m o d e m , K e r m i t , a n d , f o A m i g a u s e r s , S l i d i n g W i n d o wK e r m i t i A T e r m ( w h i c h i a l s o a v a i l a b l e f o d o w n l o a d i n g f r o mt h I C U G l i b r a r y ) .

I C U G S I G o n T h S o u r c e p r o v i d e s s o f t w a r e , a d v i c e , a n i n f o r m at i o n f o a l C o m m o d o r e c o m p u t e r u s e r s . T h e r e ' s l a r g e l i b r a r y o fC 6 4 , C 1 2 8 , a n A m i g a s o f t w a r e , a n l a r g e g r o u p o s y s o p sw h c a p r o v i d e h e l p w i t h a l m o s t a n y t h i n g i m a g i n a b l e . Y o c a r e c o g n i z e t h e S y s o p s o n l i n e b t h e i r I n u m b e r s , w h i c h a l h a v e

S I p r e f i x . T h I C U G S y s o p s ' I n u m b e r s r a n g e f r o m S I G 0 1 5t S I G 0 2 5 .

A R a n j a n B o s e ' s a r t i c l e p o i n t e d o u t , t h e r e i w e a l t h o i n f o r m a t i o n a n s e r v i c e s a v a i l a b l e o n l i n e f o C o m m o d o r e o w e r s . B u i t ' s n o a l o C o m p u S e r v e a n Q u a n t u m L i n k ! C h e c ko u T h S o u r c e a n e x p a n d y o u r o n l i n e w o r l d .

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

Page 26: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 26/84

R e a l S h u f f l e S u b r o u t i n e T h o m a s W G u r l e yW i l l s P o i n t , T e x a s

H o m a n y t i m e s h a v e y o u e v e r p l a y e d B l a c k j a c k w h e r e t h d e a l e rt h r e w a l t h c a r d s u i t h a i a n t h e n p i c k e d t h e m u i r a n d o mo r d e r a n d e a l t t h e m o u t ? N o v e r y m a n y , I ' s u r e . B u t h a t i j u s ta b o u t t h w a m o s t c o m p u t e r p r o g r a m s s h u f f l e c a r d s . T h s h u f f l es u b r o u t i n e o t h p r o g r a m u s e s p s e u d o - r a n d o m n u m b e r g e n e r at o t r e a r r a n g e t h o r d e r o t h c a r d s e a c h t i m e t h e y a r d e a l t . O t h o t h e r h a n d , h u m a n d e a l e r w o u l d n o s h u f f l e l i k e t h a t . H w o u l d d i v i d e t h e d e c k i n t o t w p a c k e t s a n r i f f l e o n h a l f w i t h t h o t h e r . M o s t d e a l e r s w i l l l e o n t f i v e c a r d s f a l l f r o m e a c h p a c k e tu n t i l a l t h c a r d s a r r i f f l e d . H w i l l t h e n s p l i t t h p a c k a g a i n a n r e p e a t t h e s h u f f l e s e v e r a l t i m e s . E a c h n e d e a l t h u s d e p e n d s ( i c o m p l i c a t e d w a y ) u p o n a l p r e v i o u s h a n d s .

T h c a r d s h u f f l e s u b r o u t i n e p r e s e n t e d h e r e m o r e n e a r l y a p p r o x im a t e s t h a c t i o n s o h u m a n d e a l e r .

T h i s s u b r o u t i n e s t a r t s w i t h a " f r e s h d e c k " b a s s i g n i n g t h e o r d e r t t h e c a r d s f r o m t 5 w h e n f i r s t r u n . I t h e n s h u f f l e s s e v e r a l t i m e sj u s t a r e a l d e a l e r w o u l d d o B e f o r e e a c h n e d e a l , t h e c a r d s w i l lb s h u f f l e d r a n d o m n u m b e r o t i m e s f r o m t 1 3 Y o c a c h a n g et h i s f e a t u r e ( a n d o t h e r s ) t o s u i t y o u r s e l f .

w a n t e d t a n a l y z e t h g a m e o B l a c k j a c k t o f i n d o u w h " r u n s "s e e m t o c c u r . I r e a l - l i f e B l a c k j a c k , t h c a r d s w i l l s o m e t i m e s h i i r u n s a n e v e n t u a l l y t h e y w i l l " p a t t e r n i z e " s t h a t o n o t h e p l a y e r s( o t h d e a l e r ) w i l l a l w a y s h i t . I m a r e q u i r e h u n d r e d s o d e a l sb e f o r e a " r u n " w i l l o c c u r b u i w i l l h a p p e n i n t o t a l d e f i a n c e o a l l o g i c . T h i s s u b r o u t i n e w i l l d e x a c t l y t h s a m e t h i n g !

A l y o u n e e d d t o b t a i n m o r e r e a l i s t i c h a n d s i s u b s t i t u t e t h i ss u b r o u t i n e f o t h o n c u r r e n t l y b e i n g u s e d i y o u r c a r d g a m e . Y o w i l l h a v e t a d j u s t t h e a r r a y n a m e s t m a t c h y o u r p r o g r a m , b u t h a ts h o u l d b e a s y .

T h B l a c k j a c k p r o g r a m m o d i f i e d h a d t w o c a l l s t s h u f f l es u b r o u t i n e . I r a n d o m l y f i l l e d a a r r a y w i t h n u m b e r s f r o m t 5 e a c h t i m e . I t h e n w e n t o t a s s i g n c a r d v a l u e s t t h n u m b e r s i t h a r r a . A l t h a t w a n e c e s s a r y t i m p l e m e n t t h n e s h u f f l es u b r o u t i n e w a t p u t a G O S U B 8 0 0 0 a t h f i r s t l i n e o t h o r i g i n a lr a n d o m i z e r a n t h e n j u m p p a s t i ( o r e t u r n ) t t h " c a r d v a l u e "r o u t i n e .

I w o r k s r e a l l y w e l l a n t h h a n d s s e e m t a p p e a r m o r e l i k e t h o s e i r e a l B l a c k j a c k g a m e s I ' v e b e e n i n h o p e y o u c a u s t h i s s u b r o ut i n e a w e l l .

J P A E G

M

8 0 0 0 r e * * s h u f f l e s u b r o u t i n e * *8 0 1 0 r e 8 / 2 7 / 8 68 0 2 0 r e * * d i m e n s i o n a r r a y s * *8 0 3 0 d i c o / o ( 5 2 ) , c 1 ( 2 6 ) , c 2 ( 2 6 ) : r e m ( 0 n o u s e d8 0 4 0 p r i n t " f t f 1 t o s t a r t "8 0 5 0 i p e e k ( 1 9 7 ) < > 4 t h e n 8 0 5 0 : r e t i m e i p a r t

o r a n d o m f a c t o r

A M N

I

B

C E E E F N

F N

E D J A D

F K

M E F

A O L

M H C A G E J B C J

O A M

J

H

J

E

8 0 6 0 r e s e u t h d e c k8 0 7 0 f o r x t o 5 2 : c ° / o ( x ) x : n e x t : f o r m m t o 1 0

: g o s u b 8 1 3 0 : n e x t8 0 8 0 m d ( - t i ) : r e m e n t e r h e r e f o a l s u b s e q u e n t

s h u f f l e s8 0 9 0 s i n t ( 1 0 * r n d ( x ) + 1 2 r e c h a n g e t h

' 1 0 ' t s u i t y o u r s e l f8 1 0 0 f o r m m t o s h : g o s u b 8 1 3 0 : d 0 r e s h u f f l e

r a n d o m t i m e s8 1 1 0 n e x t8 1 2 0 e n d : r e p l a c e t h i s w i t h ' r e t u r n '8 1 3 0 r e * * r e a l s h u f f l e * *8 1 4 0 c 0 : c a 0 : c b 0 : c c 0 : c d8 1 5 0 p r i n t " . . s h u f f l e . . . s h u f f l e . . 8 1 6 0 f o r i 1 t o 2 6 : c 1 ( i ) c ° / o ( i ) : c 2 ( i ) c ° / o ( i 2 6 ) : n e x t

: r e m s p l i t d e c k i n t o t w 8 1 7 0 g o s u b 8 4 0 0 : g o s u b 8 2 5 0 : i f c b > 2 6 t h e n 8 3 6 08 1 7 1 r e d e a l s c a r d f r o m r i g h t p a c k e t s s

c a r d c h a n g e s ( j u s t l i k e r e a l ! )8 1 8 0 g o s u b 8 4 0 0 : g o s u b 8 2 0 0 : i f c a > 2 6 t h e n 8 3 0 08 1 9 0 g o t o 8 1 7 08 2 0 0 r e * * r i f f l e c a r d s f r o m l e f t h a l f * *8 2 1 0 f o r e t o n c a c + : i f c a > 2 6 t h e n c 7 r e t u r n8 2 2 0 c d c 8 2 3 O c ° / o ( c d ) c 1 ( c a )8 2 4 0 n e x t : r e t u r n8 2 5 0 r e m * * r i f f l e c a r d s f r o m r i g h t h a l f * *8 2 6 0 f o r e t o r c b c + : i f c b > 2 6 t h e n c 5 r e t u r n8 2 7 0 c d c 8 2 8 0 c ° / o ( c d ) c 2 ( c b ) : n e x t8 2 9 0 r e t u r n8 3 0 0 r e * * s h u f f l e b a l a n c e o l e f t * *8 3 1 0 f o r e c b t o 2 6 : c b c + : i f c b > 2 6 t h e n r e t u r n8 3 2 0 c c + 8 3 3 0 c ° / o ( c d ) c 2 ( c b ) : n e x t8 3 4 0 r e t u r n8 3 5 0 r e * * s h u f f l e b a l a n c e o r i g h t * *8 3 6 0 f o r e c a t o 2 6 : c a c 1 i f c a > 2 6 t h e n r e t u r n8 3 7 0 c d c 8 3 8 0 c ° / o ( c d ) ( c a ) : n e x t8 3 9 0 r e t u r n8 4 0 0 x r n d ( - t i )8 4 1 0 r 4 * r n d ( x )8 4 2 0 r e t u r n9 0 0 0 r e * * * t h i s i f o y o t v e r i f y

t h e r e i o n a n o n l y o n o e a c h9 0 1 0 r e n u m b e r i t h a r r a y c ° / o ( x ) .

u s ' g o t o 9 0 0 0 ' a n n o t e t h a t9 0 2 0 r e m e a c h l e f t h a n d n u m b e r o c c u r s

o n c e o n l y .9 0 3 0 f o r x t o 5 6 : f o r j j t o 5 2 : i f c % ( j j ) x t h e n

p r i n t x ; j j9 0 4 0 n e x t : n e x t : e n d

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

Page 27: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 27/84

M a n i p u l a t i o n :a n I n t e g r a l s

E r i c G i g u e r eW a t e r l o o , O n t a r i o

n o t h c o m p u t e r ' s s t r o n g e s t p o i n t s i s i t s m a t h e m a t i c a lI t e r m s o s p e e d a l o n e , c o m p u t e r s h a v e r e v o l u t i o n

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

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

a n i n t e g r a l s .

f u n c t i o n i w a o e x p r e s s i n g t h f a c t t h a t o n q u a n t i t yu p o n a n o t h e r . B d e f i n i t i o n , t h d e p e n d e n t q u a n t i t y

b u n i q u e . W u s u a l l y s e f u n c t i o n e x p r e s s e d i t h

f ( x )

o c e r t a i n v a l u e o x o u p o p s a n o t h e r v a l u e , i n t h i s c a s e+ 1 I t h e f u n c t i o n i t b p l o t t e d , w m a s e i e x p r e s s e d i

f o l l o w i n g f o r m :

g i v e n a p o i n t x w c a f i n d r e l a t e d p o i n t a n p l o t t h c o o r d i n a t e o g r a p h s u c h a t h o n i F i g u r e

a Y - a x i s

- -

( - 3 , - 4

5

3 2 1

- 3 - 2 -

- 2 - 3

) . _ 4 .- 5

( 2 , 3 )

2 X - a x i s

F i g u r e l a T h C a t e s i a n C o o r d i n a t e S y s t e m

r o o t o z e r o o a f u n c t i o n i d e f i n e d a s t h e p o i n t w h e r e t h i z e r o , o w h e r e t h g r a p h o t h f u n c t i o n c r o s s e s t h e

f u n c t i o n m a h a v e o n r o o t , s e v e r a l r o o t s , o n r o o t s .h f u n c t i o n h a r o o t a t h p o i n t - 1 , s i n c e ( ) = 0 B u t a f u n c t i o n s u c h a x 2 h a n r o o t , s i n c e

n e v e r b z e r o n m a t t e r w h a t v a l u e o w c h o o s e .

a r t i m e s w h e n i i u s e f u l t k n o w w h e r e t h r o o t s o a r e , i i h a a n y . S o m e f u n c t i o n s a r e p a r t i c u l a r l y e a s y i

r e s p e c t , b u t o t h e r s a r l o h a r d e r . T h i s i w h e r e t h

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

B I S E C T

T h i d e a b e h i n d t h b i s e c t i o n m e t h o d i v e r y s i m p l e . T a k ef u n c t i o n f ( x ) t h a t h a r o o t s o m e w h e r e i t h i n t e r v a l [ A , B ]( t h a t i s i h a r o o t a p o i n t s u c h t h a t < < B ) a i F i g u r e b W t h e n d i v i d e t h i s i n t e r v a l i n t o t w e q u a l s u b i n t e r -v a l s a n t h r o w a w a y t h e s u b i n t e r v a l t h a t d o e s n ' t c o n t a i n t h er o o t ( s e e F i g u r e c ) W t h e n r e p e a t t h e p r o c e s s o t h r e m a i ni n s u b i n t e r v a l , a n c o n t i n u e o i n t h i s f a s h i o n u n t i l w a r w i t h i n a c e r t a i n d i s t a n c e ( o t o l e r a n c e ) o t h r o o t . T h i s g i v e s u t h a p p r o x i m a t i o n f o t h r o o t .

— -

M I

r o o t o r z e r oo f f ( x )

F i g u r e l b ) : B I S E C T a l g o r i t h m

M I

N e l e f t e n d p o i n t ,

r o o t N e m i d p o i n t

F i g u r e l c ) : B l o w - u p o f l b )h T r a n s a c t o r 2 J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 28: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 28/84

W n e e d t k n o w o n t h i n g b e f o r e g o i n g a h e a d a n w r i t i n g t h ea l g o r i t h m f o r t h i s m e t h o d : h o d w e k n o w i a i n t e r v a lc o n t a i n s a z e r o o n o t ? T h e a s i e s t w a i t c o m p a r e t h f u n c t i o n v a l u e s a t h t w e n d p o i n t s o s p e c i f i c i n t e r v a l . I t h e r e i a r o o t i t h i n t e r v a l , t h e n o n y - v a l u e w i l l l i b e l o w t h x - a x i s a n t h o t h e r w i l l b a b o v e i t T h u s i w a r l o o k i n g a t h i n t e r v a l [ A , B ] , t h e r e w i l l b a r o o t i t h e f o l l o w i n g c o n d i t i o nh o l d s :

f ( A ) * f ( B )

( R e m e m b e r t h a t i y o m u l t i p l y n e g a t i v e n u m b e r b p o s i t i v eo n e y o u g e a n e g a t i v e a n s w e r , a n p o s i t i v e o n o t h e r w i s e . )T h i s i t h t e s t w w i l l u s i t h e a l g o r i t h m .

N O T E : T h a b o v e t e s t i n o a c c u r a t e f o a l i n t e r v a l s o f u n c t i o n . I f f o e x a m p l e , f u n c t i o n c r o s s e s t h e x - a x i s t w i c e o t h i n t e r v a l [ A , B ] , t h e n f ( A ) * f ( B ) 0 e v e n t h o u g h t h e r e a r e t w r o o t s i t h i n t e r v a l . T h u s y o u m u s t b c a r e f u l o w h i c h i n t e r v a ly o c h o o s e t g e a a c c u r a t e e x a m p l e . P l o t t i n g t h g r a p h o v e rl a r g e i n t e r v a l c a o f t e n g i v e y o g o o d i d e a w h e r e t h r o o t s a r a p p r o x i m a t e l y , a n d y o u c a t h e n u s e t h b i s e c t i o n m e t h o d t g e a a c c u r a t e e s t i m a t e f r o m t h i n t e r v a l s s h o w n o t h e g r a p h .

B A S I C s u b r o u t i n e t f i n d r o o t u s i n g t h b i s e c t i o n m e t h o d i s h o w n i L i s t i n g # 1 , l i n e s 3 8 0 - 4 3 0 . T h f u n c t i o n s h o u l d b d e f i n e d i t h c a l l i n g p r o g r a m w i t h D E F F N F s t a t e m e n t . S e t h v a r i a b l e s a n d B t b t h l e f t a n r i g h t e n d p o i n t s o t h i n t e r v a l y o w i s h t t e s t , a n s e T t b t h e d e s i r e d t o l e r a n c e( s o m e t h i n g l i k e 0 . 0 0 0 0 5 , s a y ) . G O S U B 3 8 w i l l t h e n f i n d t h r o o t , i a n y , o t h i n t e r v a l . I a r o o t i f o u n d , E w i l l b z e r o a n t h r o o t l o c a t i o n w i l l b s t o r e d i M I D . I E i s 1 , t h e n n r o o tw a f o u n d o t h a t i n t e r v a l b u r e m e m b e r t h i s i n o n e c e s s a ri l d e f i n i t i v e a n s w e r . T h r e s t o t h p r o g r a m i t h l i s t i n g i a e x a m p l e o h o t u s t h r o u t i n e . ( N o n e o t h R E s t a t e m e n t sa r e n e c e s s a r y , s y o d o n ' t h a v e t t y p e t h e m i n . )

I n t e g r a t i o n

I n t e g r a t i o n i t h t e r m u s e d , a t h m o s t b a s i c l e v e l , t o d e s c r i b et h m e t h o d t f i n d t h a r e a u n d e r g i v e n c u r v e . R e f e r t F i g u r e2 T h a r e a u n d e r t h c u r v e o t h i n t e r v a l [ A , B ] i s h o w n a s t h es h a d e d a r e a . N o t e t h a t t h w c o n s i d e r t h e t e r m " u n d e r t h c u r v e " t m e a n " f r o m p o i n t o t h c u r v e t t h c o r r e s p o n d i n gp o i n t o t h x - a x i s " , i o t h e r w o r d s t h a r e a b e t w e e n t h c u r v ea n t h x - a x i s . ( E v e n i a f u n c t i o n i b e l o w t h e x - a x i s , t h i sd e f i n i t i o n i v a l i d a n w s t i l l u s t h t e r m " u n d e r t h c u r v e " ,e v e n t h o u g h i t ' s b i i n a c c u r a t e i n t h i s s i t u a t i o n . )

M a n y m e t h o d s h a v e b e e n d e v e l o p e d o v e r t h e y e a r s t c a l c u l a t ea r e a s , a n t h o n w w i l l u s h e r e i b a s e d u p o n a p p r o x i m at i o n . O n w a o e s t i m a t i n g t h e a r e a i s u c h a f a s h i o n i t d i v i d et h e a r e a i n t o m a n y r e c t a n g l e s o e q u a l b a s e l e n g t h . E a c hr e c t a n g l e w i l l h a v e h e i g h t d e t e r m i n e d b t h e f u n c t i o n i t s e l f .S i n c e w k n o w t h a t t h a r e a o r e c t a n g l e i t h p r o d u c t o i t

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

F i g u r e 2 A r e a u n d e r t h c u r v e b e t w e e n p o i n t s a n

T h a c t u a l a r e a - f i n d i n g r o u t i n e d e s c r i b e d i n t h i s a r t i c l e i v a r i a t i o n o t h a p p r o x i m a t i o n m e t h o d d e t a i l e d a b o v e c a l l e dS i m p s o n ' s R u l e . w o n ' t g i n t o t h t h e o r y a t h o t h r u l ew o r k s h e r e , b u y o c a f i n d i i a n g o o d c o m p u t e r t e x t b o o kd e a l i n g w i t h a r e a - f i n d i n g p r o b l e m s . L i s t i n g * s h o w s t h a c t u a lB A S I C s u b r o u t i n e , f r o m l i n e s 4 5 t 5 2 0 . A i t h b i s e c t i o ns u b r o u t i n e , t h e f u n c t i o n s h o u l d b d e f i n e d w i t h D E F s t a t e m e n t , a n t h e n d p o i n t s o t h i n t e r v a l s t o r e d i t h v a r i a b l e s a n B T h v a r i a b l e N i t h e d e s i r e d n u m b e r o i n t e g r a t i o n p a n e l s ( r e c t a n g l e s ) t h a t t h s u b r o u t i n e s h o u l d u s e .T h i s s e t s t h d e s i r e d e s t i m a t e a c c u r a c y f o t h s u b r o u t i n e t h l a r g e r N i s t h b e t t e r t h e s t i m a t e . ( T h e r e ' s t r a d e o f f i t i m et a k e n t c a l c u l a t e t h a r e a , o c o u r s e . ) A c t u a l l y , i y o u r f u n c t i o nF N h a n p o w e r s o g r e a t e r t h a n 3 t h e n y o u n e e d o n l y s e N t s m a l l n u m b e r s u c h a 1 6 b e c a u s e S i m p s o n ' s R u l e g i v e sa e x a c t v a l u e f o t h a r e a . F o r f u n c t i o n s o d e g r e e g r e a t e r t h a n

( i e , t h e y h a v e p o w e r s o t h a t a r g r e a t e r t h a n t h r e e ) ,S i m p s o n ' s R u l e g i v e s a e s t i m a t e , a e s t i m a t e w h i c h i m p r o v e sw i t h l a r g e r v a l u e s o N P A b e f o r e , t h r e s t o L i s t i n g * g i v e s a e x a m p l e o h o t u s t h e s u b r o u t i n e .

F i n a l N o t e s

C o m p u t e r a l g o r i t h m s s u c h a s t h e a b o v e h a v e m a d e t h e m s e l v e sv e r y u s e f u l f o s o l v i n g m a n y p h y s i c a l p r o b l e m s . E x a m p l e sa b o u n d t h a t r e q u i r e p e r s o n t k n o w t h r o o t s o r i n t e g r a l s o ff u n c t i o n , a n s o m e t i m e s t h m o s t e f f i c i e n t w a t f i n d t h e s e i t u s c o m p u t e r . W h i l e t h a n s w e r s s u c h a l g o r i t h m s m a g i v e a r e

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

Page 29: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 29/84

b o t h b t h c o m p u t e r ' s a c c u r a c y ( u s u a l l y f o u n d a e r r o r s ) a n t h i n h e r e n t i n a c c u r a c y o t h e a l g o r i t h m s ,

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

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

s c i e n c e t e x t b o o k s a r g o o d s o u r c e s o s u c h i n f o r m aa n u s u a l l y t h e a l g o r i t h m s t h e y g i v e m a b c o n v e r t e d t

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

c a l c u l u s c o u r s e s . M a y b e y o c a f i n d g o o d u s f o t o o .

1 B I S E C T

r e m s a m p l e p r o g r a m t o f i n d t h r e r o o t s o t h f u n c t i o nr e r e ( x - 3 ) ( x - 1 ) ( 4 r e r e w h i c h w k n o w a r 1 , 3 , a n - 4 r e r e t r t h i n t e r v a l s ( 0 , 2 ) , ( 2 , 0 )r e a n ( - 5 , - 3 )

i d e f f n f ( x ) ( x - 3 ) * ( x - 1 ) * ( x 4 p r i n ti n p u t " l e f t e n d p o i n t " ; ai n p u t " r i g h t e n d p o i n t " ; i n p u t " t o l e r a n c e " ; t lp r i n tg o s u b 3 8 0i e t h e n p r i n t n z e r o w a f o u n db e t w e e n " ; a ; " a n d " ; b g o t o 2 1 p r i n t r o o t i a t : " ; m i d : g o t o 2 1 [ • g | - p * * * * * * * * * * * * * * * * * * * * * * * * * *

r e b i s e c t s u b r o u t i n e , u s e d t r e f i n d t h z e r o o f u n c t i o nr e b e t w e e n p o i n t s a n b w i t hr e t o l e r a n c e t l i n z e r or e e x i s t s , e 1 r e

i f l = f n f ( a ) : f r = f n f ( b ) : e r = Oi f l * f r t h e n e 1 r e t u r n

( b ) / 2i a b s ( a - m i d ) t t h e n r e t u r nf f n f ( m i d )i f | * f m 0 t h e n b m i d : g o t o 4 0

m i d : f f m g o t o 4 0

C F G I

K N O

I P C L E

F D M M H D

N G

I K K E B A J A C P F E I

P J

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

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

L i s t i n g 2 A p p r o x i m a t e A r e a u s i n g S i m p s o n ' s R u l e

r e p r o g r a m e x a m p l e u s i n g S i m p s o n ' sr e r u l e t o f i n d t h a r e a u n d e rr e t h c u r v er e r e x t r e r e f r o m t 2 b d i r e c tr e i n t e g r a t i o n t h a n s w e r w r e s h o u l d g e w i l l b 2 0 / 3 , o rr e a p p r o x . 6 . 6 6 6 6 7r e r e f i r s t d e f i n e t h e f u n c t i o n

d e f f n f ( x ) = x *

r e n o c a l l t h s u b r o u t i n e t r e f i n d t h a r e a

0 2 n 1 6 g o s u b 4 5 0p r i n t " t h e a r e a f r o m " ; a ; " t o " ; b ; " i s : " ; a re n

r e [ Q f f \ * * * * * * * * * * * * * * * * * * * * * * * * * * * * *r e r e S i m p s o n ' s r u l e s u b r o u t i n er e r e r e t u r n s t h a r e a u n d e r t h c u r v er e d e f i n e d b f n f , f r o m e n d p o i n t sr e m a t b s e n t t h d e s i r e dr e n u m b e r o i n t e g r a t i o n p a n e l sr e r e t h a r e a i r e t u r n e d a s v a l u er e i t h v a r i a b l e ' a r 'r e

( b - a ) / ( 2 * n p ) : s e 0 s f n f ( a h f o t n p - 1

2 * i * hs s f n f ( x )s s f n f ( x h

n e x ta ( h / 3 ) * ( f n f ( a ) 4 s 2 * s e f n f ( b ) )r e t u r n

L N E A O E

A M

D M G

I A B E C M C

H H M K O C C A G

M L J M

I P N G F B O C O D G E

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

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

Page 30: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 30/84

F u l l A r r a y M a t hO p e r a t i o n s O T h 6

R i c h a r d R i c h m o n dS p r i n g f i e l d , O h i o

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

T h i s a r t i c l e d e s c r i b e s a g r o u p o m a t h f u n c t i o n s t h a t p e r f o r m t h b a s i c m a t h o p e r a t i o n s l i k e " a d d , s u b t r a c t , m u l t i p l y a n d i v i d e " o a e n t i r e a r r a y w i t h j u s t o n S Y c o m m a n d . U s i n g t h e s e r o u t i n e s ,c o d e l i k e t h e f o l l o w i n g ;

1 0 f o t 1 0 1 1 a ( i ) a ( i ) * c1 2 n e x t

c a n b e r e d u c e d t S Y S A 1 8 , C , A ( 0 ) , w h e r e i t h n a m e o a a r r a y a n i s e p a r a t e v a r i a b l e . N o o n l y d t h e s e r o u t i n e sp r o v i d e s i m p l e r c o d e , b u t h e y a r f a s t e r t h a n t h c o r r e s p o n d i n go p e r a t i o n i B A S I C s t a t e m e n t s . T h e s e r o u t i n e s a r e w r i t t e n i m c h i n e l a n g u a g e a n w i l l c a r r y o u t t h e o p e r a t i o n s f r o m t e t f i f t yt i m e s f a s t e r t h a n B A S I C . W h e n m a n i p u l a t i n g l a r g e a r r a y s o r c a r r yi n g o u t r e p e t i t i v e o p e r a t i o n s , t h e s e r o u t i n e s c a s i g n i f i c a n t l y r e d u c et h e x e c u t i o n t i m e o p r o g r a m . B e c a u s e t h i s p r o g r a m m a k e se x t e n s i v e u s o t h f l o a t i n g p o i n t r o u t i n e s i R O M , i a l s o p r o v i d e se x a m p l e s o h o t u s t h o s e r o u t i n e s i y o u r o w p r o g r a m s .

T h N e F u n c t i o n s

T a b l e l i s t s t h S Y c o m m a n d s f o t h e s e n e u t i l i t i e s . A l s o l i s t e da r e t h e m a t h f u n c t i o n s p e r f o r m e d b y e a c h o t h f u n c t i o n s . Y o c a s e f r o m t h l i s t t h a t t h p r o g r a m c a n p e r f o r m t h e f o u r m a t hf u n c t i o n s + - * a n o e i t h e r t w a r r a y s o r o n a r r a y a n s e p a r a t e v a r i a b l e . S o m e o t h r o u t i n e s a r p r o v i d e d t t a k e i n t oa c c o u n t t h n o n - r e c i p r o c i t y o c e r t a i n o p e r a t i o n s . F o e x a m p l e ," A + B " i t h s a m e , m a t h e m a t i c a l l y , a s " A " B u t ," A - C " i n o t t h e s a m e a " C - A " . T a b l e s h o w s t h a t s e p a r a t er o u t i n e s a r e p r o v i d e d f o t h e f o l l o w i n g n o n - r e c i p r o c a l o p e r a t i o n s :

A - V - A / V /

A - B - A / B /

T h r o u g h o u t t h i s a r t i c l e a n i t h e x a m p l e s , t h l a b e l s a n w i l lb u s e d t i n d i c a t e a r r a y s a n t h l a b e l t i n d i c a t e s i n g l ev a r i a b l e . N o t e t h a t w h e n v a r i a b l e i i n d i c a t e d t h a t v a r i a b l e c o u l da l s o b e o n e o t h e l e m e n t s o a a r r a y .

T h R u l e s a n E x c e p t i o n s

B e c a u s e m o s t o t h e s e r o u t i n e s f o l l o w t h s a m e c o n v e n t i o n s a n f o r m a t , w w i l l f i r s t d i s c u s s t h o s e a n l a t e r p o i n t o u t t h e e x c e p t i o n s .

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

W h e n w o r k i n g o a a r r a y , t w a d d r e s s e s a r u s e d b t h r o u t i n e s .T h a d d r e s s f o t h e n o t h e a r r a y i t h s e c o n d a r g u m e n t i f o u n db t h p r o g r a m a n u s e d t d e t e r m i n e w h e n t h e o p e r a t i o n i c o m p l e t e d . T h o t h e r a d d r e s s i u s e d t t e l l t h p r o c e d u r e w h e r e i t h s e c o n d a r r a y t s t a r t t h o p e r a t i o n . I T a b l e 1 t h a r r a ye l e m e n t s a r ( s u c h a a ( x ) ) . N o r m a l l y , x w o u l d b 0 I t h a t c a s e ,t h p r o c e d u r e b e g i n s w i t h t h f i r s t , o ( 0 ) , e l e m e n t o t h e a r r a y a n o p e r a t e s o e v e r y e l e m e n t i t h a r r a y . n o n - z e r o e l e m e n t w o u l dc a u s e t h r o u t i n e t s k i p s o m e o t h e e l e m e n t s . F o r e x a m p l e , S Y S A , V , A ( 0 ) w o u l d c a u s e e v e r y e l e m e n t i t b s e e q u a l t o V . B u t ,S Y S A , V , A ( 2 ) w o u l d l e a v e A ( 0 ) a n A ( l ) u n c h a n g e d a n a l o t h r e s t o t h e l e m e n t s w o u l d b e e q u a l t V

W i t h t h i s t y p e o f l e x i b i l i t y , s o m e p r e c a u t i o n i n e c e s s a r y . F o r t h et w a r r a y o p e r a t i o n s , t h e n u m b e r o e l e m e n t s i t h f i r s t a r g u m e n tf r o m t h e l e m e n t s p e c i f i e d t t h e n o a r r a y m u s t b e a l e a s t ,e q u a l t t h n u m b e r o e l e m e n t s i t h s e c o n d a r g u m e n t f r o m t h s p e c i f i e d e l e m e n t t t h e n o t h a t a r r a y . T h r o u t i n e s o n l y l o o k f o t h e n d i n g a d d r e s s o t h s e c o n d a r r a y . I t h u t i l i t y r u n s o u o e l e m e n t s i t h f i r s t a r r a y b e f o r e r e a c h i n g t h e n o t h s e c o n da r r a y , t h p r o g r a m c o n t i n u e s b u t t h e r e s u l t s f r o m t h a t p o i n t o w i l ln o b v a l i d . N e r r o r o s y s t e m c r a s h s h o u l d r e s u l t , j u s t u s e l e s sd a t a .

A r r a y s m u s t b e d i m e n s i o n e d a n t h e l e m e n t s s h o u l d b d e f i n e db e f o r e t h u t i l i t i e s a r c a l l e d . T h u t i l i t y c a b e u s e d t d e f i n ee l e m e n t s i t h e y a r a l t h s a m e v a l u e . V a r i a b l e s d n o h a v e t b p r e d e f i n e d . B u i t h e y a r n o t , t h e y w i l l b s e t t o z e r o t h f i r s t t i m et h a t t h e y a r u s e d i S Y t o n o t h r o u t i n e s . T h i s p r o g r a md e p e n d s h e a v i l y u p o n t h f l o a t i n g p o i n t r o u t i n e s i R O M . T h e r ef o r e , t h r u l e s f o m a t h o p e r a t i o n s i B A S I C s t i l l a p p l y a n t h r o u t i n e w i l l r e t u r n e r r o r m e s s a g e s s u c h a " D I V I S I O N B Y Z E R O " i i l l e g a l o p e r a t i o n s a r a t t e m p t e d .

A m e n t i o n e d e a r l i e r , t h e r e a r e e x c e p t i o n s t t h a b o v e g u i d e l i n e s .T w o t h e r o u t i n e s a r e n o l i m i t e d t f l o a t i n g p o i n t n u m b e r s ." E Q U B " w o r k s o n a l t h r e e t y p e s o v a r i a b l e s ( i n t e g e r , s t r i n g a n f l o a t i n g p o i n t ) a n s e t s o n a r r a y e q u a l t a s e c o n d . " I N S E R T " i t h s e c o n d u t i l i t y t h a t a l s o w o r k s w i t h a l v a r i a b l e t y p e s . T h i s r o u t i n ep u t s t h v a l u e o t h f i r s t a r g u m e n t i n t o t h e a r r a y a t h l o c a t i o ns p e c i f i e d , A ( x ) . A l l o t h e f o l l o w i n g e l e m e n t s a r s h i f t e d d o w n o n e .T h a t i s A ( x + l ) = A ( x ) , A ( x 2 A ( x + l ) a n s o n T h l a s t e l m e n t i t h a r r a y i l o s t .

A l s o , n o t i c e t h a t " S Q U A R E " h a o n l y o n a r g u m e n t . T h e l e m e n t so t h e a r r a y a r e s q u a r e d a n s t o r e d b a c k i n t o t h a r r a y , s n o s e c o n da r g u m e n t i n e e d e d .F o m o s t o t h e s e r o u t i n e s , t h v a l u e o t h f i r s t a r g u m e n t i n o c h a n g e d a n s h o u l d b d e f i n e d b e f o r e b e i n g u s e d i o n o t h

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

Page 31: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 31/84

r o u t i n e s , u n l e s s t h a t v a l u e i t b z e r o . T h e x c e p t i o n s a r ' m n 'a n ' m x ' u s e d i " M I N " a n d " M A X " . T h m i n i m u m ( m n ) o m a x i m u m ( m x ) v a l u e o t h e a r r a y w i l l b r e t u r n e d a n t h i n i t i a lv a l u e o t h e v a r i a b l e d o e s n o m a t t e r .

L o o k A T h e P r o g r a m

T h s o u r c e c o d e f o t h e s e r o u t i n e s i l i s t e d i P r o g r a m 3 R a t h e rt h a n d i s c u s s i l i n e - b y - l i n e , w w i l l l o o k a s o m e g e n e r a l c h a r a c t e ri s t i c s a n s o m e o t h s u b r o u t i n e s o m o d u l e s u s e d b y a l m o s t a l o t h r o u t i n e s . T h l a b e l s a t h b e g i n n i n g o t h l i s t i n g r e f e r t t h R O r o u t i n e s t h a t d t h b u l k o t h f l o a t i n g p o i n t m a t h . N e x t i t h l i s t i n g i t h " J U M P " t a b l e . T h i s t e c h n i q u e m a k e s i m u c h e a s i e r t i n s e r t o d e l e t e c o d e o t m a k e c h a n g e s i t h e r o u t i n e s b e c a u s e t h " S Y S " s t a t e m e n t i B A S I C d o e s n o c h a n g e . A l s o , t h " S Y S " a d d r e s sf o n e r o u t i n e s t h a t m a b a d d e d l a t e r c a n b e e a s i l y d e t e r m i n e d .

T o b t a i n a s m u c h s p e e d a s p o s s i b l e , z e r o p a g e a d d r e s s i n g i u s e de x t e n s i v e l y . B u t , t h e r e i n o e n o u g h z e r o p a g e f r e e m e m o r y f o o u p u r p o s e s . T h e r e f o r e , " S Z P A G E " s a v e s t h c o n t e n t s o b l o c k o z e r op a g e m e m o r y t s a f e l o c a t i o n a n " R E S T O R E Z " l o a d s t h e v a l u e sb a c k t z e r o p a g e b e f o r e r e t u r n i n g t B A S I C .

T h " T E S T " r o u t i n e s a r e u s e d t s t e p t h r o u g h t h a r r a y f i v e b y t e s a t i m e ( b y t e s a r e u s e d t s t o r e a f l o a t i n g p o i n t n u m b e r ) a n d t s e

f l a g w h e n t h e n o t h e a r r a y i r e a c h e d . " M O D I " l o o k s f o t h f i r s ta r g u m e n t i t h e v a r i a b l e o r a r r a y s t o r a g e a r e a a n c r e a t e s i i n o f o u n d . T h a d d r e s s o f t h i s v a r i a b l e i t h e n s a v e d . N e x t , " M 0 D 2 "f i n d s t h a d d r e s s o t h e a r r a y e l e m e n t i t h s e c o n d a r g u m e n t a n dt h a d d r e s s o t h e n o f t h i s a r r a y . T h e s e v a l u e s a r a l s o s t o r e d f o u s b t h r o u t i n e s . I n g e n e r a l , t h e s t e p s f o l l o w e d w h e n o n o t h r o u t i n e s i c a l l e d a r e :

1 S a v e z e r o p a g e v a l u e s2 U s " M O D " r o u t i n e t f i n d t h a r g u m e n t s3 A d d r e s s e s a r l o a d e d t t h r e g i s t e r s4 N u m b e r s a r l o a d e d i n t o t h e F l o a t i n g P o i n t A c c u m u l a t o r ( F A C )5 T h r e q u i r e d m a t h i p e r f o r m e d b e t w e e n t h F A a n m e m o r y6 R e s u l t s i F A a r e s t o r e d i m e m o r y7 S t e p s 3 - a r r e p e a t e d f o e n t i r e a r r a y8 Z e r o p a g e i r e s t o r e d a n c o n t r o l r e t u r n e d t B A S I C

U s i n g T h e P r o g r a m

F i r s t , t y p e i a n s a v e P r o g r a m 2 W h e n t h i s p r o g r a m i r u n , M p r o g r a m f i l e i s w r i t t e n t d i s k w i t h t h n a m e " A R R A Y . F N C " . L o a dt h i s p r o g r a m w i t h :

L O A D " A R R A Y . F N C " , 8 , 1B e c a u s e t h e s e u t i l i t i e s w e r e c o n c e i v e d t p r o v i d e t i m e s a v i n g s f o r a p h i c s p r o g r a m s , t h e y a r e l o c a t e d t b c o m p a t i b l e w i t h g r a p h i c s t i l i t y p r o g r a m s t h a t l o a d a $ C 0 0 0 ( 4 9 1 5 2 ) . T h s t a r t i n g a d d r e s s

f o t h e s e u t i l i t i e s i 5 1 8 0 0 . O n c e t h e s e u t i l i t i e s a r e l o a d e d , t y p e" N E W " a n e n t e r o l o a d y o u r B A S I C p r o g r a m . N e a r t h b e g i n n i n g

y o u r p r o g r a m , d e f i n e S 5 1 8 0 0 . S c a t h e n b e u s e d f o t h Y s t a t e m e n t s l i s t e d i n T a b l e 1

o e x a m p l e s o h o t h e s e r o u t i n e s w o r k , l o o k a P r o g r a m 1 N o r o u t i n e i i l l u s t r a t e d i P r o g r a m 1 b u i y o r u t h p r o g r a md e x a m i n e t h o u t p u t , y o w i l l g e g o o d i d e a o w h a t t h e s e

d o N o t e t h a t i t h n e x t t l a s t e x a m p l e a r r a y i s q u a r e d ,t t h e e l e m e n t ( x ) i n t h S Y c o m m a n d i 4 C o m p a r e t h a t p r i n t o u

w i t h t h p r e v i o u s o n e a n d y o u w i l l s e t h a t t h f i r s t e l e m e n t s ( t o 3 ) a r e n o t c h a n g e d a n d t h r e m a i n i n g e l e m e n t s ( t 1 0 h a v eb e e n s q u a r e d . T h e x a m p l e s i P r o g r a m s h o u l d g i v e y o g o o ds t a r t i n g p o i n t f o y o u r o w e x p e r i m e n t s i h o t u s t h e s er o u t i n e s .

S o m e o t h r o u t i n e s , s u c h a " M I N " a n " M A X " a r e e s p e c i a l l yu s e f u l w h e n g r a p h i n g . U s i n g t h e s e r o u t i n e s , t h m a x i m u m a n m i n i m u m v a l u e s o a a r r a y c o u l d b e u s e d t " s c a l e " t h e d a t a b e f o r ei i d i s p l a y e d .

T h e s e u t i l i t i e s a r f a s t . T h e y a r r e a s o n a b l y " g o o f p r o o f " y e s t i l la l l o w g o o d d e a l o f l e x i b i l i t y . A n p r o g r a m t h a t m a n i p u l a t e s l a r g ea r r a y s s h o u l d b e n e f i t f r o m t h i n c r e a s e d s p e e d p o s s i b l e w i t h t h e s eu t i l i t i e s . T h u s o j u m p t a b l e s a n m o d u l a r a p p r o a c h t p r o g r a mm i n g t h d i f f e r e n t o p e r a t i o n s m a k e i f a i r l y s i m p l e t a d o t h e rf u n c t i o n s t t h p r o g r a m . O b v i o u s i d e a s f o a d d i t i o n a l r o u t i n e sw o u l d b s q u a r e r o o t f u n c t i o n a n d o n e t r a i s e t h a r r a y t g i v e np o w e r . B e c a u s e b o t h E Q U B a n I N S E R T w o r k o a l t h r e e t y p e s o v a r i a b l e s , y o m i g h t w a n t t w r i t e a n o t h e r p r o g r a m t h a t o n l y h a t h e s e t w r o u t i n e s i i t

A l t h o u g h f i r s t t h o u g h t o t h e s e r o u t i n e s a s a i d s f o g r a p h i c sp r o g r a m s , t h e y w o u l d b e q u a l l y u s e f u l i d a t a b a s e o s p r e a ds h e e t t y p e o p r o g r a m . F o t h a t t y p e o u s e , a n o t h e r p o s s i b l ef u n c t i o n w o u l d r e t u r n t h e s u o a a r r a y . w o u l d b i n t e r e s t e d i h e a r i n g f r o m a n y o n e w h h a s u g g e s t i o n s f o i m p r o v e m e n t s o a d d i t i o n s t o t h i s p r o g r a m .

T A B L E 1 S u m m a r y o C o m m a n d sF o r m a tS Y S A , V , A ( X )S Y S S A 3 , B ( Y ) , A ( X )S Y S S A 6 , V , A ( X )S Y S S A 9 , B ( Y ) , A ( X )S Y S S A 1 2 , V , A ( X )S Y S S A 1 5 , B ( Y ) , A ( X )S Y S S A + 1 8 , V , A ( X )S Y S S A 2 1 , B ( Y ) , A ( X )S Y S S A 2 4 , V , A ( X )S Y S S A 2 7 , B ( Y ) , A ( X )S Y S S A 3 0 , V , A ( X )S Y S S A 3 3 , B ( Y ) , A ( X )S Y S S A 3 6 , V , A ( X )S Y S S A 3 9 , B ( Y ) , A ( X )S Y S S A 4 2 , M X , A ( X )S Y S S A 4 5 , M N , A ( X )S Y S S A 4 8 , A ( X )S Y S S A 5 1 , V , A ( X )

N O T E : S s t a r t i n g a d d r e s s ( 5 1 8 0 0 )I o Y > i S Y S c o m m a n d , r o u t i n e w i l l s k i p o v e r e l e m e n t s

i a r r a y t ( X ) . E l e m e n t s w i t h ( a ) < X w i l l b u n m o d i f i e d .

P r o g r a m 1 E x a m p l e

R o u t i n eE Q U VE Q U BP L U VP L U BS U B VS U B BM U L VM U L BD I V VD I V BS B U VS B U BD V I VD V I BM A M I S Q U A R EI N S E R T

O p e r a t i o n

= + +

A - A -

= A * VA * A / A / V - B - V / B /

M A X ( A )M I N ( A )

A t A ( X ) =

A I

E C

1 0 s a 5 1 8 0 0 : d i m a ( 1 0 ) , b ( 1 0 )2 p r i n t : f o t 1 0 a ( i ) i : n e x t3 p r i n t : p r i n t " s e t a " s y s s a 3 , a ( 0 ) , b ( 0 )4 p r i n t : f o t 1 0 p r i n t b ( i ) ; : n e x t5 v = 2 : s y s s a 6 , v 1 , b ( 0 ) : p r i n t :

p r i n t " s e t 2 T h T r a n s a c t o r 2 J u l y 1 9 8 7 : V o l u m e 8 I s s u e 0

Page 32: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 32/84

E M F C M O F

E N

J

I B J E

I O H P

M 0

N F K D P B

G E P

G G J

H M D P A

I B D

C B L

0 B

C F D H L M

I O P

M

6 0 f o r i 0 t o 1 0 : p r i n t b ( i ) ; : n e x t7 v 2 5 p r i n t : p r i n t " i n s e r t 2 a a ( 5 )

s y s 5 , v 2 , a ( 5 )8 f o t 1 0 p r i n t a ( i ) ; : n e x t9 p r i n t : p r i n t1 0 f o t 1 1 1 3

p r i n t : p r i n

s e b * a " : s y s s a 2 1 0 p r i n t b ( i ) ; : n e x t

" s q u a r e b ( b t 2 ) "p r i n t " s t a r t i n g w i t h e l e m e n t

s y s 4 1 4 1 5

1 6

f o t p r i n t : p r i ns y s s a , v 3p r i n t : f o

, b ( 4 )1 0 : p r i n t b ( i ) ; : n e x t

4 "

, a ( 0 ) , b ( 0 )

u s i n g a u n d e f i n e d v a r i a b l e " :a ( 0 )

t 1 0 p r i n t a ( i ) ; : n e x t

P r o g r a m 2 C r e a t e s d i s k f i l e A R R A Y . F N C

1 0 r e m / l o a d e r f o a r r a y m a t h1 1 f o 5 1 8 0 0 t 5 2 7 7 81 2 1 3

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

r e a d c c n e x ti c h < > 1 4 1 6 1 0 t h e n p r i n t " c h e c k s u me r r o r " e n p r i n t " d a t a o k . c r e a t i n g ' a r r a y . f n c ' "h i n t ( 5 1 8 0 0 / 2 5 6 ) : l o 5 1 8 0 0 - h i * 2 5 6o p e n 1 , 8 , 1 " 0 : a r r a y . f n c "p r i n t # 1 , c h r $ ( l o ) c h r $ ( h i ) ;r e s t o r ef o 5 1 8 0 0 t 5 2 7 7 8r e a d p r i n t # 1 , c h r $ ( x ) ; n e x tc l o s e ir e d a t a 7 6 d a t a 2 0 3 ,d a t a 2 5 0 ,d a t a 7 6 d a t a 2 0 3 ,d a t a 1 3 4 ,d a t a 7 6 d a t a 2 5 5 ,d a t a 1 d a t a 6 4 d a t a 2 0 2 ,d a t a 1 4 8 ,d a t a 9 6 d a t a 9 6 d a t a 1 6 5 ,d a t a 2 4 d a t a 0 d a t a 1 8 5 ,d a t a 9 6 d a t a 1 8 3 ,d a t a 1 6 4 ,d a t a 1 7 6 ,d a t a 3 2 d a t a 1 8 1 ,d a t a 1 6 4 ,d a t a 3 2 d a t a 3 2 d a t a 1 6 4 ,d a t a 1 8 1 ,d a t a 3 2 d a t a 7 d a t a 2 0

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

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

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

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

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

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

2 0 , 2 0 5 , 1 6 5 , 1 8 51 3 2 , 1 8 2 , 3 2 , 1 6 21 8 4 , 3 2 , 1 0 3 , 1 8 42 0 6 , 2 0 2 , 1 7 6 , 2 3 01 6 1 , 2 0 2 , 3 2 2 1 8 4 , 3 2 , 1 6 2 , 1 8 71 6 4 , 1 8 6 , 1 3 2 , 1 8 1 8 5 , 2 0 2 , 3 2 , 2 0 61 7 3 , 2 0 2 , 3 2 , 1 6 11 6 5 , 1 8 5 , 1 3 3 , 1 8

2 0 4 ,4 0 7 6

2 0 4 ,1 8 0 ,

7 6 2 0 5 ,

0 3 0

1 6 0 ,1 3 6 ,

3 2 5

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

2 4 2 0

1 8 7 ,3 2 3 2

1 6 4 ,1 8 7 ,

3 2 7 6

2 0 5 ,1 6 5 ,

3 2 0 2 0 1 6

7 6 2 0 3 , 7

2 9 2 0 7 6 7

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

8 8 , 2 0 20

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

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

8 1 6 9 6 5

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

8 0 1 8 1 7 6 , 2 3 0

3 2 2 1 8 6 , 1 3

A H D M B L B H J I

K P H F

O J B L H

I L J N O H L F J C J K

A E N K O D B

K P F M L

M N A

I IO

D M H O L G G C D

I IB C D C

3

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

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 a

1 8 2 ,3 2

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

d a t a 2 3 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 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

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

8 0 1 7 6 ,

3 2 1 6 2 ,1 3 2 ,

3 2 3 2

1 6 4 ,1 8 1 ,

3 2 7 6

2 0 5 ,1 8 2 ,

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

d a t a 2 0 2 ,d a t ad a t a

0 2

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

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

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

1 8 6 , 1 3 2 , 1 8 2 ,1 6 4 , 1 8 4 , 3 2

3 2 2 0 6 , 2 0 2 ,3 2 1 6 1 , 2 0 2 ,

1 6 4 , 1 8 4 , 3 2 1 8 1 , 1 6 4 , 1 8 6 ,

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

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

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

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

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

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

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

1 8 6 , 1 3 2 , 1 8 2 ,1 6 4 , 1 8 4 , 3 2

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

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

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

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

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

J u l y

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

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

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

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

3 2 , 2 0 6 , 2 0 2 , 1 7 63 2 , 1 6 1 , 2 0 2 , 3 2

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

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

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

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

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

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

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

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

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

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

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

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

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

1 9 8 7 : V o l u m e 8 I s s u e O

Page 33: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 33/84

B F G D H

I P L A M

I I G E J K B H M

A M O F 0

H O

I K E

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

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

1 6 5

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

d a t ad a t ad a t ad a t a

1 6 1 6

3 1 6 1 8

3 7

2 0 1 4

1 2 2

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

7 3 2

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

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

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

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

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

5 1 3 3 ,1 6 9 , 2

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

A I

K K B E

G L I - IH A A J P L M B P J

I IC J

F F

N L G E K J K A N L O C K A L H C B F D

P r o g r a m 3 P A S o u r c e C o d e1 0 r e a r r a y m a t h f u n c t i o n s1 1 r e r i c h a r d r i c h m o n d1 2 r e 3 0 8 r o s e w o o d a v e .1 3 r e S p r i n g f i e l d , o h i o1 4 r e 4 5 5 0 61 5 r e 1 6 0 o p e n 8 , 8 , 1 , " O : a r r a y . o b j "1 7 0 s y s 7 0 01 8 . o p t 0

2 0 0 m e m f a c2 1 0 f a c m e m2 2 c o m p a r2 3 0 m e m p l u2 4 m e m m u l2 5 m e m s u b2 6 0 m e m d i v2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 d u m m y4 6 0 z p a g e4 7 0 s z p a g e4 8 4 9 s z 5 0 5 1 5 2

i m j m j m j m j m j m j m j m j m j m i m j m j m j m i m i m j m i m

$ b b a 2$ b b d 4$ b c 5 b$ b 8 6 7$ b a 2 8$ b 8 5 0S b b O fe q e q p l p l s b s i l l )m l m i l )d v d v l )b s b s v d v d m a m i s q u a r ei n s e r t

1

I d # $ 0 c

; m e m o r y t f a ; f a d t m e m o r yc o m p a r e m e m o r y t f a

; a d d m e m o r y t f a ; m u l t f a d b m e m o r y; s u b f a f r o m m e m o r y; d i v i d e f a d b m e m o r y

a ( ' s t a r t i n g a d d r e s s; a ( ) b ( ) ' s a

a ( a ( ' s ; a ( ) a ( b ( ) 1 s a

a ( a ( ) - v ' s 1 ; a ( ) = a ( ) - b ( ) ' s a + 1 5; a ( ) a ( ) » v ' s a + 1 8; a ( ) a ( ) . b ( ) ' s a 2 ; a ( ) a ( ) / v ' s a 2 ; a ( ) a ( ) / b ( ) ' s a + 2

a ( v - a ( ) ' s 3 ; a ( ) b ( ) - b ( ) ' s a 3 ; a ( ) v / a ( ) ' s a 3 ; a ( ) b ( ) / a ( ) ' s a 3

m a x ( a ( ) ) ' s 4 m i n ( a ( ) ) ' s + 4

; a ( ) a ( ) t 2 ' s a + 4 i n s e r t a a ( ' s 5

r o u t i n e t s a v ez e r o p a g e m e m o r y

9 3

1 6 2 , 1 4 2 , 1 6 02 0 6 , 2 0 2 , 1 7 61 3 8 , 3 2 , 1 6

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

3 2 , 1 6 2 , 1 8 2 1 2 , 1 8 7 , 3 1 8 6 , 3 2 , 1 6 21 3 8 , 3 2 ,1 6 0 , 2 0 2 ,1 7 6 , 2 2 7 , 1 6 1 6 2 , 1 8 7 , 1 6 1 8 7 , 7 6 , 1 7 32 0 3 , 2 0 4 , 1 6 1 3 2 , 1 8 2 , 3 1 8 6 , 3 2 4 2 0 6 , 2 0 2 , 1 7 1 6 1 , 2 0 2 , 3 1 9 1 , 1 6 1 3 3 , 1 9 1 9 1 , 1 6 5 , 2 5 11 6 5 , 2 5 2 , 2 3 3

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

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

7 1 6

I d s l d a

$ O O b f , yz p a g e . y

A I

K F A N J D G N L K L M K

M J B

O E C J E E

A B

O K N J P J J L B D G K l - 1K J o

I C

B D C

I A

I C B J I 0

B D D M E J I

C C G G G H L G P

G M

D M L D L P

H M N M

P J G K G D D M

5 3 5 4 5 5 r e s e t5 6 5 7 r e s t o r e z5 8 5 9 6 0 6 1 6 2 6 3 s t o r e6 4 6 5 6 6 6 7 6 8 t e s t i6 9 7 0 7 1 7 2 7 3 7 4 7 5 7 6 t e s t7 7 7 8 7 9 8 0 8 1 8 2 8 3 8 4 t e s t 28 5 8 6 8 7 8 8 8 9 9 0 9 1 9 2 c o n t9 3 9 4 9 5 0 e q v9 6 9 7 9 8 9 9 1 0 0 01 0 1 0 e q v 11 0 2 01 0 3 01 0 4 01 0 5 01 0 6 01 0 7 01 0 8 0 p l 1 0 9 01 1 0 01 1 1 0 p l v 21 1 2 01 1 3 01 1 4 01 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 0 s b 1 2 5 01 2 6 01 2 7 0 s b v 11 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 01 3 8 01 3 9 01 4 0 0 b s 1 4 1 01 4 2 0

b p r t

I d

I d s t d e b p I I

I d I d j s

i

I d d a d s t I c i aa d s t

I d c l a d s t I d a d s t

S Z

# $ 0 c

z p a g e , yS O O b f . y

r e s t o r e z

S b $ b f a c m e m

S d

# $ 0 5$ b $ b # $ 0 0$ b

$ b

# $ 0 5$ b $ b # $ 0 0$ b

c m $ f b n I d

c o n t$ b

c m $ f b n c l c .r t

s e r t

j s j s I d I d

j s

I d I d j s j s b c i m

j s j s

I d I d s i s t j s I d I d j s j s j s b c j m

j s j s

I d I d j s I d s t I d s t j s j s j s b c j m

j s I S

c o n t

s z p a g em o d i$ b $ b

m e m f a c

$ b $ b f a c m e mt e s te q v 1r e s e t

s z p a g em o d i

S b S h S b $ b m e m f a c$ b $ b m e m p l us t o r et e s tp l v 2r e s e t

s z p a g em o d iS l ) 7$ b m e m f a c$ b $ b $ b $ b m e m s u bs t o r et e s ts b v 1r e s e t

s z p a g em o d i

; r o u t i n e t o r e s e t; a e r o p a g e m e m o r y

; e x i t; s t o r e f a ; t m e m o r y

s p e c i f i e d a $ b 5 , $ b 6

; t h i s p o r t i o n; i n c r e m e n t s t h ; s e c o n d a r r a y

p o i n t e r s b ;

; r o u t i n e t oi i n c r e m e n t; f i r s t a r r a y

p o i n t e r s b ;

; a n d c h e c k; f o r t h e n ; o a r r a y

; i n o t e n ; s e t c a r r y b i

; a ( ); s t o r e z e r o p a g e; g e t a d d r e s s e s; a d d r e s s o;

; l o a d v t o f a d

; a d d r e s s o ; a ( ); f a d t o a ( x ); c h e c k i f d o n e; n c o n t i n u e; y e s e x i t r o u t i n e; a ( ) a (

; l o a d a d d r e s s; o n e x t a ( p o i n t e r f o ; s t o r e r o u t i n e; 1 s t e l e m e n t t f a ; a d d r e s s o ; ; a d d v t o f a dr e s u l t s t o a (

; a ( ) a ( ) - v

; l o a d a d d r e s s; o ; v t o f a d; l o a d a d d r e s s; o ; a ( )

; a ( ) a d d e d t f a r e s u l t t o a (

; a ( ) v - a ( )

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

Page 34: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 34/84

M L H H O B E N B

B G L

G P D M N L E K O B E N H B G 1

G M D M J N L H G

I F

M P B G D G E D M H 1

K H 0 B E N E B G B G J D M D

C I

O J C

I M J B H

P G A

D M L

C I

O J C I

M G H

1 4 3 0 b s v 11 4 4 01 4 5 01 4 6 01 4 7 01 4 8 01 4 9 01 5 0 01 5 1 01 5 2 01 5 3 01 5 4 01 5 5 01 5 6 0 m l 1 5 7 01 5 8 01 5 9 0 m l v 11 6 0 01 6 1 01 6 2 01 6 3 01 6 4 01 6 5 01 6 6 01 6 7 01 6 8 01 6 9 01 7 0 01 7 1 01 7 2 0 d v v1 7 3 01 7 4 01 7 5 0 d w 1 7 6 01 7 7 01 7 8 01 7 9 01 8 0 01 8 1 01 8 2 01 8 3 01 8 4 01 8 5 01 8 6 01 8 7 01 8 8 0 v d 1 8 9 01 9 0 01 9 1 0 v d v 11 9 2 01 9 3 01 9 4 01 9 5 01 9 6 01 9 7 01 9 8 01 9 9 02 0 0 02 0 1 02 0 2 02 0 3 02 0 4 0 p l 2 0 5 02 0 6 02 0 7 0 p l b 12 0 8 02 0 9 02 1 0 02 1 1 02 1 2 02 1 3 02 1 4 02 1 5 02 1 6 02 1 7 02 1 8 02 1 9 02 2 0 0 s b b2 2 1 02 2 2 02 2 3 0 s b b 12 2 4 02 2 5 02 2 6 02 2 7 02 2 8 02 2 9 02 3 0 02 3 1 02 3 2 0

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

I d s t I d s t j s I d I d j s j s j s b c j m

j s j s

I d s t I d s t j s I d I d j s j s j s b c i m j s j s

I d I d j s I d s t I d s t j s j s j s b c j m

j s j s

I d s t I d s t j s I d I d j s j s j s b c j m

j s j s

I d I d j s I d s i I d s t j s j s j s b c j m

j S j s

I d l a j s I d s t I c S l j s j s

$ b $ b $ b $ b m e m f a c$ b $ b m e m s u bs t o r et e s tb s v 1r e s e t

s z p a g em o d i

S b $ b S b $ b m e m f a c$ b $ b m e m m u ls t o r et e s tm l v 1r e s e t

s z p a g em o d iS b $ b m e m f a c$ b S b S b S b m e m d i vs t o r et e s td w r e s e t

s z p a g em o d i

S b $ b S b $ b m e m f a c$ b $ b m e m d i vs t o r et e s tv d v 1r e s e t

s z p a g em o d i

S b $ b m e m f a c$ b $ b S b S b m e m p l us t o r et e s t ip l b lr e s e t

s z p a g em o d iS b $ b m e m f a c$ b S b S b $ b m e m s u bs t o r e

; f a d = a ( )a d d r e s s

; o ; f a d v - a ( ); a ( ) = f a d

; a ( ) a ( ) . v

; a d d r e s s; o f a ( )

; f a d = a ( ); a d d r e s s; o ; f a o 1 = a ( ) « v; a ( ) f a

; a ( ) a ( ) / v

; a d r e s s; o ; f a d; a d d r e s s; o f a ( )

; f a d a ( ) / v; a ( ) f a o 1

; a ( ) v / a ( )

; a d d r e s s; o f a ( )

; f a d a ( ; a d d r e s s; o ; f a c 1 = v / f a c 1; a ( ) f a

; a ( ) a ( ) . b ( )

; a d d r e s s; o f b ( ); f a d = b ( )

; a d d r e s s; o a (

; f a c 1 = f a c 1 . a ( ); a ( ) = f a d; i n c r e m e n t p o i n t e r t h e n

; a ( ) a ( ) - b ( )

; a d d r e s s; o f b ( ); f a d = b ( )

; a d d r e s s; o f a ( )

; f a o 1 a ) - f a d; a ( )

3

A O G D D M N C

I O J C

I M E B N M G A

D M J

C I

O J C

I M I

B N H G B D M M L K

E O B E K H B

N P

G O D M H L E K O B E K P B H F G

I D M M

D N

C G J

H D E F H M F B A P O J H A

2 3 3 02 3 4 02 3 5 02 3 6 0 m l 2 3 7 02 3 8 02 3 9 0 m l b 12 4 0 02 4 1 02 4 2 02 4 3 02 4 4 02 4 5 02 4 6 02 4 7 02 4 8 02 4 9 02 5 0 02 5 1 02 5 2 0 d v 2 5 3 02 5 4 02 5 5 0 d v b 12 5 6 02 5 7 02 5 8 02 5 9 02 6 0 02 6 1 02 6 2 02 6 3 02 6 4 02 6 5 02 6 6 02 6 7 02 6 8 0 b s 2 6 9 02 7 0 02 7 1 0 b s b 12 7 2 02 7 3 02 7 4 02 7 5 02 7 6 02 7 7 02 7 8 02 7 9 02 8 0 02 8 1 02 8 2 02 8 3 02 8 4 0 v d b2 8 5 02 8 6 02 8 7 0 v d b 12 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 0 e q 3 0 1 03 0 2 03 0 3 0 e q b 13 0 4 03 0 5 03 0 6 03 0 7 03 0 8 03 0 9 03 1 0 0 e q b 23 1 1 03 1 2 03 1 3 03 1 4 0 e q b 33 1 5 03 1 6 03 1 7 03 1 8 03 1 9 0 m o d 23 2 0 03 2 1 03 2 2 0

j s b c j m

J S j s

! d I d j s I d s t I d s t j s j s j s b c j m

j s j s

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

j s j s

I d I d s t s t j s I d I d j s j s j s b c j m

j s j s

I d s " . aI d s t j s I d I d j s j s j s b c j m j s j s

I d I d s t i n b n m

i n b n

n

I d j s b c j m

j s j s I d

t e s t is b b 1r e s e t

s z p a g em o d i

S b $ b m e m f a cS b $ b S b S b m e m m u ls t o r et e s t im l b 1r e s e t

s z p a g em o d i$ b S b m e m f a cS b $ b S b S b m e m d i vs t o r et e s t id v b 1r e s e t

s z p a g em o d i

S b S b S b S b m e m f a c$ b S b m e m s u bs t o r et e s t ib s b 1r e s e t

s z p a g em o d i

$ b S b S b S b m e m f a cS b S b m e m d i vs t o r et e s t iv d b 1r e s e t

s z p a g em o d i

# $ 0 0( S b 7 ) , y( S b 9 ) , yS b e q b 2$ b

$ b e q b 3S b

S b t e s t 2e q b 1r e s e t

S a e f dS a d 9 e$ 4

; i n c r e m e n t b t h e n

; a ( ) a ( ) . b ( )

; a d d r e s s; o f b ( ); f a c 1 b (

a d d r e s s; o f a ( ); f a d = f a d « a ( ); a ( ) f a

i n c r e m e n t p o i n t e r s

; a ( ) a ( ) / b ( )

a d d r e s s; o f b ( ); f a d b (

; a d d r e s s; o f a ( )

; f a d = f a d » a ( ); a ( ) f a ; i n c r e m e n t p o i n t e r s

; a ( ) b ( ) - a ( )

; a d d r e s s; o f a ( )

; f a d = a ( ); a d d r e s s; o f b ( ); f a c 1 = b ( ) - f a d; a ( ) f a ; m c r e m e n t p o i n t e r s

; a ( ) b ( ) / a ( )

; a d d r e s s; o f a ( )

; f a d a ( ; a d d r e s s; o b ( ; f a o 1 b ) / f a d; a ( ) f a

: a ( ) b (

; 1 s t b y t e o ; i n t o; i n c r e m e n t; a d d r e s s; o f b

; i n c r e m e n t; a d d r e s s; o

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

r o u t i n e; l b y t e o

J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 35: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 35/84

D H P E C 0 J L B G P

O G O A B

B P K M

I A J I

K J

G O E

G N D M O I I

A B E

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

P D E E B E

M J J D C A

I F F J

K K K P

B B I

O L

E G K

D M O P

A H N 0

3 2 3 03 2 4 03 2 5 03 2 6 03 2 7 03 2 8 03 2 9 03 3 0 0 a g a i n3 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 0 S t e p 23 4 2 03 4 3 0 s t e p3 4 4 03 4 5 03 4 6 0 s t e p i3 4 7 03 4 8 03 4 9 03 5 0 03 5 1 03 5 2 03 5 3 03 5 4 03 5 5 03 5 6 03 5 7 03 5 8 03 5 9 03 6 0 03 6 1 0 S t 3 6 2 03 6 3 0 m o d i3 6 4 03 6 5 03 6 6 03 6 7 03 6 8 03 6 9 03 7 0 03 7 1 0 m a 3 7 2 03 7 3 03 7 4 03 7 5 03 7 6 03 7 7 03 7 8 03 7 9 03 8 0 03 8 1 0 m a x 23 8 2 03 8 3 03 8 4 03 8 5 03 8 6 03 8 7 03 8 8 03 8 9 03 9 0 03 9 1 03 9 2 03 9 3 0 m a x 33 9 4 03 9 5 03 9 6 03 9 7 03 9 8 03 9 9 04 0 0 04 0 1 04 0 2 04 0 3 04 0 4 0 m i 4 0 5 04 0 6 04 0 7 04 0 8 04 0 9 04 1 0 04 1 1 04 1 2 0

h T r a n s a c t o r

s t I d s t I d s t I d s t

I d I d

S b $ 4 $ b $ 2 $ i $ 3 $ f

# $ 0 0( $ f b ) , y

c m $ 4 b n i n I d

s t e p 2

( $ f b ) , yc m $ 4 b n j s r t

i n

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

r t

j s j s I d s t I d s t i m

j s j s I d I d j s I d I d j s j s

I d I d j s I d I d t x j s b m I d I d j s

j s b c I d I d t x j s I d I d j s j m

j s j s I d I d j s I d I d j s

s t e ps t e p i

s t e p ia g a i n

( $ f b ) , y$ f

( $ f b ) , y

$ f $ f $ f

$ f $ f s t $ f

$ a e f d$ b O 8 b$ 4 $ b S 4 $ b m o d 2

s z p a g em o d i$ b $ b m e m f a c# < d u m m y# > d u m m yf a c m e mt e s t

$ b $ b m e m f a c# < d u m m y# > d u m m yc o p a m a x 3# < d u m m y# > d u m m yf a c m e m

t e s tm a x 2# < d u m m y# > d u m m ym e m f a c$ b $ b f a c m e mr e s e t

s z p a g em o d i$ b $ b m e m f a c# < d u m m y# > d u m m yf a c m e m

; a d d r e s s; h b y t e o

a d d r e s s; s t a r t o

a r r a y s t o r a g e

; s e a r c h a r r a y s t o r a g e

; f o r n a m e; o

; ' a ' a r r a y; r o u t i n e r e t u r n s; w i t h e n d i n g a d d r e s s; o f a ( ) i n $ f b , $ f c

; r o u t i n e t o; s k i p t h r o u g h; a r r a y m e m o r y; f r o m o n ; a r r a y t n e x t

r o u t i n e t o f i n d b ( ; s k i p c o m m a

r o u t i n e; t f i n d v , ; o c r e a t e; v a r i a b l e; i n o f o u n d

; m a x i m u m o a (

; f a d = a ( 0 ); s t o r e i

I ' d u m m y '

n e x t a d d r e s s; o f a ( ); f a d a (

; c o m p a r e; a ( ) w i t h ' d u m m y '; f a d l a r g e r

; t h e n ' d u m m y ' = f a ; d o n e; n c o n t i n u e; y e s

; f a c 1 = ' d u m m y '

; a d d r e s s; o ; f a

; m i n i m u m o a (

; a d d r e s s; o a ( 0 ); s t o r e; a ( 0 ) i n t o

; ' d u m m y '3

O L A P H

O N M N B E P B

E K B B L K

D N M A

A I

N K O C K L I

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

C L E I

A P E

G M G P L H O B K

A A J

C J E K E K

I A D N C C L I

M K

4 1 3 04 1 4 0 m i n 24 1 5 04 1 6 04 1 7 04 1 8 04 1 9 04 2 0 04 2 1 04 2 2 04 2 3 04 2 4 04 2 5 04 2 6 0 m i n 34 2 7 04 2 8 04 2 9 04 3 0 04 3 1 04 3 2 04 3 3 04 3 4 04 3 5 04 3 6 04 3 7 0 s q u a r e4 3 8 04 3 9 04 4 0 0 s q u 14 4 1 04 4 2 04 4 3 04 4 4 04 4 5 04 4 6 04 4 7 04 4 8 04 4 9 04 5 0 04 5 1 04 5 2 04 5 3 0 i n s e r t4 5 4 04 5 5 04 5 6 04 5 7 04 5 8 04 5 9 04 6 0 04 6 1 04 6 2 04 6 3 0 i n s 14 6 4 04 6 5 04 6 6 04 6 7 04 6 8 04 6 9 04 7 0 04 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 0 i n s 24 8 1 04 8 2 04 8 3 04 8 4 04 8 5 04 8 6 04 8 7 04 8 8 04 8 9 04 9 0 04 9 1 04 9 2 04 9 3 0 i n s 34 9 4 04 9 5 04 9 6 04 9 7 04 9 8 04 9 9 0 . e n d

j s t e s t

I d $ b I d $ b j s m e m f a cI d # < d u m m yI d # > d u m m yt x j s c o p a b p m i n 3I d # < d u m m yI d # > d u m m yj s f a c m e m

j s t e s tb c m i n 2I d # < d u m m yI d # > d u m m yt x j s m e m f a cI d $ b I d $ b j s f a c m e mj m r e s e t

j s s z p a g ej s m o d 2I d $ b I d $ b s t $ b s t $ b j s m e m f a cI d $ b I d $ b j s m e m m u lj s s t o r ej s t e s tb c s s q u 1j m r e s e t

j s s z p a g ej s m o d iI d # $ 0 5s t $ b I d $ 4 a s b c i n s 1I d # $ 0 2s t $ b

I d $ f c l s b $ b s t $ f I d a $ f cs b # $ 0 0s t $ f I d $ f c l s b $ b s t a $ f dI d a $ f cs b # $ 0 0s t a $ f eI d $ b d e

I d ( $ f d ) , ys t a ( $ f b ) , yd e b p l i n s 2I d a $ f ec m $ b b n i n s 1I d a $ f dc m p $ b 9b n i n s 1I d $ b d e

I d ( $ b 7 ) , ys t a ( $ f b ) , yd e b p i n s 3j m r e s e t

; a d d r e s s o ; n e x t a ( ); l o a d i n t o f a ; a n d

; c o m p a r e w i t h ' d u m m y '; f a c K ' d u m m y; t h e n ' d u m m y '

; = f a d

; ' d u m m y = m i n ( a )

t r a n s f e r; ' d u m m y '; t ;

; a »

; a d d r e s s; o f a ( )

; a ( ) t o f a

; f a d = a * ai n c r e m e n t p o i n t e r

; a ( x ); f o l l o w i n g; e l e m e n t s; m o v e d d o w n; a ( m a x ) a ( m a x - 1 ); c o n t i n u e

u n t i l; a ( x 1 a ( x ); t h e n a ( x )

r o u t i n e w i l l; a u t o m a t i c a l l y; u s e p r o p e r o f f s e t; f o r v a r i a b l e t y p e; w o r k s w i t h; s t r i n g s ( a $ ); i n t e g e r s ( a % ); o f l o a t i n g p o i n t

J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 36: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 36/84

F a s t e r S q u a r e R o o tF o T h C o m m o d o r e 6

E . J . S c h m a h lB o w i e , M a r y l a n d

. n o t o n l y i i f a s t , i i m u c h m o r e a c c u r a t e !

I y o t i m e t h C - 6 4 f u n c t i o n s b u i l t i n t o y o u r C - 6 4 B A S I C , y o w i l l f i n d t h a t t h S Q f u n c t i o n i v e r y m u c h s l o w e r t h a n + , - , * ,o / I f a c t i s l o w e r t h a n E X o L O b e c a u s e i u s e s b o t h o t h o s e f u n c t i o n s , w h i c h a r r a t h e r s l o w t h e m s e l v e s . H o w e v e r ,y o d o n ' t h a v e t b r e s i g n e d t s l o w s q u a r e r o o t s , b e c a u s e i t u r n s o u t t h a t t h e r e a r e w e l l - k n o w n a l g o r i t h m s t h a t r u f a s t e rt h a n t h S Q b u i l t i n t o y o u r C - 6 4 R O M .

T m a k e t h i s p o s s i b l e , h a v e w r i t t e n s h o r t m a c h i n e l a n g u a g es q u a r e r o o t r o u t i n e w h i c h t a k e s t h e f i r s t v a r i a b l e i t h B A S I Cv a r i a b l e a r e a o m e m o r y a n r e p l a c e s i w i t h i t s q u a r e r o o t . T h p r o g r a m u s e s t h B A S I C R O f l o a t i n g p o i n t f u n c t i o n s w h i c hm o v e , a d d a n d d i v i d e n u m b e r s . ( N L O G s o E X P s a r u s e d . )

T h i s r o u t i n e c a n b e r u a n d c o m p a r e d w i t h t h s t a n d a r d S Q f u n c t i o n i R O M :

1 i n p u t2 0 p r i n t s q r ( a ) ; : s y s 4 9 1 5 23 p r i n t a g o t o 1

Y o w i l l f i n d t h a t t h n e s q u a r e r o o t i a b o u t 2 . t i m e s f a s t e rt h a n t h S Q i R O M , q u i t e a n i m p r o v e m e n t ! B u t n o t o n l y i i f a s t , i i m u c h m o r e a c c u r a t e . J u s t t r p r i n t i n g o u t t h s q u a r er o o t s o t h e s e s q u a r e s : 2 6 5 6 9 , 2 1 3 1 6 6 8 9 , 8 4 3 0 9 1 2 4 , a n 0 . 7 7 9 6 8 9 . T h n e s q u a r e r o o t g i v e s t h e x a c t a n s w e r s ( 1 6 3 ,4 6 1 7 , 9 1 8 2 , a n 0 . 8 8 3 ) , b u t t h e R O S Q r o u t i n e d o e s n o t ! T h r e a s o n i t h a t t h E X f u n c t i o n i n o v e r y a c c u r a t e ( 6 t o d i g i t si n s t e a d o f 9 ) f o c e r t a i n n u m b e r s . ( T h i s i n a c c u r a c y p r o b l e m h a b e e n c u r e d i t h C - 1 2 8 . )

N o t e t h a t , t k e e p t h i n g s s i m p l e , ( a n d f a s t ) t h n e S Q o p e r a t e so n l y o t h v e r y f i r s t v a r i a b l e i B A S I C . T h u s w h a t e v e r v a r i a b l ea p p e a r s f i r s t i t h p r o g r a m i c h a n g e d i n t o i t s q u a r e r o o t .M a k e s u r e y o d e c l a r e y o u r d e s i r e d v a r i a b l e f i r s t w i t h a e q u a l i t y ( e . g . x 1 o r D I M e n s i o n s t a t e m e n t ( e . g . d i x )

T h B A S I C l o a d e r l o a d s t h e m a c h i n e l a n g u a g e i n t o t h a r e as t a r t i n g a 4 9 1 5 2 . Y o c a c h a n g e t h v a r i a b l e A i n l i n e 6 t 8 2 o 9 * 4 0 9 6 o w h a t e v e r y o l i k e . L i n e 7 o t h e l o a d e rp r o g r a m w i l l m o d i f y t h n o n - r e l o c a t a b l e m a c h i n e l a n g u a g ec o m m a n d " I d a t a b l . x " a p p r o p r i a t e l y f o t h n e s t a r t i n g a d r e s s .

F o t h o s e i n t e r e s t e d i t h a l g o r i t h m u s e d f o c o m p u t i n g t h s q u a r e r o o t , i i N e w t o n ' s m e t h o d , w i t h g o o d f i r s t a p p r o x i m at i o n f r o m 1 6 - e n t r y t a b l e . I B A S I C , t h e e q u i v a l e n t p r o g r a mw o u l d b e

1 i n p u t2 i t h e n 9 3 i a < t h e n 1 2 4 i n p u t " f i r s t a p p r o x " ; a p p r o x5 a p p r o x6 ( a / x ) / 27 0 8 i k < t h e n 6 9 0 1 0 p r i n t " s q 1 1 0 k 0 : g o t o 1 01 2 p r i n t " i l l e g a l q u a n t i t y e r r o r "

E n t h u s i a s t s o g r e a t e r s p e e d i t h C - 6 4 s h o u l d n o t e t h a t t h e r ei r o o m f o i m p r o v e m e n t i m o s t o t h e o t h e r B A S I C f u n c t i o n s .T h f a v o r e d m e t h o d f o a p p r o x i m a t i n g f u n c t i o n s i t h C - 6 4R O s e e m s t b p o w e r s e r i e s . A t h p r e s e n t e x a m p l e s h o w s ,t h e r e a r e s o m e t i m e s b e t t e r w a y s t g e n e r a t e f u n c t i o n s . c h a ll e n g e t y o p r o g r a m m e r s o u t h e r e : t r y s o m e n e m e t h o d s a n ds p e e d u p y o u r p r o g r a m s !

B A S I C L o a d e r

M C H

G P G

C

N C

J J A P

1 0 0 r e m 6 4 . 1 : s y s 4 9 1 5 2 : p r i n t a1 1 0 r e m w h e r e i t h f i r s t v a r i a b l e1 2 0 r e m r e s u l t o f s q w i l l b i 1 3 0 a d 4 9 1 5 2 : c h1 4 0 f o r i 0 t o 1 2 2 : r e a d x1 5 p o k e a d i , x : c h c x : n e x t1 6 i c h < > 1 3 6 9 1 t h e n p r i n t " e r r o r i d a t a

s t a t e m e n t s " : e n d1 7 0 h i i n t ( ( a d 1 0 7 ) / 2 5 6 )1 8 p o k e a 5 9 , h i : p o k e a 5 8 , a d + 1 0 7 - h i * 2 5 61 9 r e n e t a b l e a d d r e s s f o r e l o c a t e d2 0 d a t a 1 6 0 , 3 , 1 7 7 , 4 5 , 4 8 , 9 8 , 1 3 6 , 1 7 72 1 d a t a 4 5 , 2 4 0 , 9 2 , 1 6 5 , 4 5 2 4 , 1 0 5 ,2 2 d a t a 1 3 3 , 1 7 0 , 1 6 5 , 4 6 , 1 0 5 , 0 , 1 3 3 , 1 7 1

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

Page 37: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 37/84

G L M D

I D M D K

D K

F I

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

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

A S o u r c e C o d e

F P J F N B B L I

K O L D P M A F A J H D

I N

A B D G N J D B A H 1

F H J M H

1 0

0 1 3 2 ,9 6 1 7 7 ,

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

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

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

1 1 5 , 1 2

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

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

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

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

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

r e f a s t e r s q u a r e r o o t p a s o u r c e1 1 0 o p e n 8 , 8 , 1 ,1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0

s y 7 0 . o p t 0

= $ c 0 0 0

" O : f a s t s q r . o b j

f a s t e r s q u a r e r o o tt a k e s f i r s t b a s i c v a r i a b l e a n r e t u r n s s q u a r e r o o t i t p l a c eu s e s n e w t o n ' s m e t h o d w i t h g o o df i r s t a p p r o x i m a t i o n .

v a p t c t t e m p =

$ 2 $ a S a $ 5

r o r o u t i n e st e m f id i v i dp l u sf l t e m

3 1 0 f 1 m e m3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8

p r i n t

I d I d b d e I d b e I d c l a d s t I d a d s t I d s t

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

$ b b a 2$ b b O f$ b 8 6 7$ b b c 7$ b b d 4$ f f d 2

# $ 0 3( v a r ) , ye r r o r e x i t

( v a r ) . yr e t u r nv a

# $ 0 2p t v a # $ 0 0p t r + 1# $ t e m p +

s t a r t o v a r i a b l e sp o i n t s t v a r i a b l ei t e r a t i o n c o u n t e rt e m p s t o r e f o f i p t

u n p a c k 5 t f a c # 1; f a c # 1 = v a r / f a c # 1; f a c # 1 = f a c # 2 f a c # 1

p a c k f a c # 1 t 5 p a c k f a c # 1 t m e m o r yc h r o u t r o u t i n e

; g e t v a r i a b l e ' s m a n t i s s a; c h e c k i n e g a t i v e

; g e t v a r i a b l e ' s e x p o n e n t; r e t u r n i v a z e r o; p o i n t s t v a n a m e

; a d d 2 s p t ; p o i n t s t v a r i a b l e; a n d s t o r e i

; f i l l t e m p w i t h z e r o e s

D P L

O I

L A K H G L H J P N M B L E J L F P L

D P

G B F

M E L I L

N N A H A D O O P K B N L K E

A H G O

3

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

s t s t s t

t e m p +t e m p +t e m p +

n o f i n d f i r s t a p p r o x i m a t i o nt t h s q u a r e r o o te x p o n e n t e x p o n e n t / 2 + 4 0 . 5m a n t i s s a f o u n d f r o m

I d r o

( p t r ) , yt a b l eg e e x p o n e n t ( 0

a / a , p o l o b i c a r r y w h e n e x p o n e n t o d

b e I d s t

a d a d s t i n I d o r I s I s I s I s t a I d s t

a d # $ 8 0t e m p + 1# $ 4 0t e m p

( p t r ) , yt e m p

t a b l . xt e m p

n f l a g s e i o d e v e n , s s e f l a g b i

e x p o n e n t o s a p p rs t o r e e x p o n e n ty - m a n t i s s a o v a r i a b l ei e x p o n o d a d 8

; s h i f t n y b b l e r i g h t

; g e t a p p r o x f r o m t a b l e; s t o r e i i t e m p m a n t i s s a

n o u s n e w t o n ' s m e t h o d( v a r / x ) / 2

I d s t I d I d j s

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

r e t u r n r t e r r o r e x i t d a

j s r t

t a b l . b y t e1 0 0 0 . b y t e1 0 1 0 e n d

# $ 0 4c t

# < t e m p# t e m f ip t p t d i v i d# < t e m p# p l u s$ 6 f l t e mc t l o o pp t p t f i m e m

# $ 3 fp r i n t

0 3 , 1 1 , 1 85 8 , 6 9 , 7 9

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

; l o a d f a c # 1 f r o m t e m p

; d i v i d e f a c # 1 i n t o v a

a d d t e m p t o f a c # 1d i v i d e f a c # 1 b p a c k f a c # 1 t t e m pd e c r e m e n t t h e c o u n t e rl o o p i n o z e r o

p a c k f a c # 1 t m e m o r y

1 1 ? p r i n t ?

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

J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 38: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 38/84

C o m p l e x N u m b e r A r i t h m e t i cF o T h C o m m o d o r e 6

T h o m a s H e n r yN o r t h M a n k a t o , M

B A S I C 2 . o t h C o m m o d o r e 6 s u p p o r t s t h r e e s i m p l e d a t at y p e s . T h e s e a r i n t e g e r s , f l o a t i n g p o i n t n u m b e r s a n s t r i n g s .W i t h t h a d d i t i o n o s i m p l e m a c h i n e l a n g u a g e r o u t i n e , i i e a s y t a d a f o u r t h t y p e : c o m p l e x n u m b e r s . T h r o u t i n ed e s c r i b e d i n t h i s a r t i c l e a l l o w s t h e r e p r e s e n t a t i o n o c o m p l e xn u m b e r s b o r d e r e d p a i r s , a n a d d i t i o n a l l y s u p p o r t s t h f o u rb a s i c o p e r a t i o n s o a d d i t i o n , s u b t r a c t i o n , m u l t i p l i c a t i o n a n d i v i s i o n .

T h l e f t - b r a c k e t , [ i u s e d t a l e r t t h C o m m o d o r e 6 t h a t y o w i s h t p e r f o r m s o m e c o m p l e x n u m b e r a r i t h m e t i c . c o r r e sp o n d i n g r i g h t - b r a c k e t , ] a l l o w s t h s y s t e m t g b a c k t n o r m a lf l o a t i n g p o i n t o p e r a t i o n . T h m e t h o d b w h i c h t h e s e b r a c k e t ss w i t c h t h s y s t e m o v e r t c o m p l e x n u m b e r a r i t h m e t i c i b a s e du p o n B r i a n M u n s h a w ' s a r t i c l e , " N e W e d g e f o t h C o m m od o r e 6 4 " , w h i c h a p p e a r e d i T h T r a n s a c t o r , V o l u m e 5 I s s u e 6 p p 2 2 - 2 5 . R e f e r t B r i a n ' s a r t i c l e t o l e a r n h o w n e w c o m m a n d sm a b a d d e d t t h 6 b m e a n s o t h e " E r r o r W e d g e " .

B e f o r e s e e i n g h o t p u n c h t h i s n e r o u t i n e i n t o y o u r c o m p u t e r ,l e t ' s c o n s i d e r t h e d e t a i l s o f r e p r e s e n t a t i o n a n s y n t a x . A m e t i o n e d a b o v e , c o m p l e x n u m b e r s a r r e p r e s e n t e d i n t h i s s y s t e mb o r d e r e d p a i r s . W h e r e a s h i g h s c h o o l a l g e b r a b o o k s m i g h td e n o t e c o m p l e x n u m b e r b b i t h o r d e r e d p a i r ( a , b ) i u s e d h e r e i n a f t e r . T h f i r s t e n t r y i a l w a y s a s s u m e d t b t h r e a lp a r t , w h i l e t h s e c o n d e n t r y i t h i m a g i n a r y p a r t .

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

[ ( X , Y ) ( A , B ) ( C , D ) ]

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

a r s e e q u a l t t h r e s u l t s o f a n B D r e s p e c t i v e l y .S i m i l a r s y n t a x h o l d s f o t h o t h e r t h r e e o p e r a t i o n s . A B a n m a b a n v a l i d c o m b i n a t i o n o v a l u e s , v a r i a b l e s o r o p e r a n d s ,b u a n ( w h i c h h o l d t h r e s u l t i n g c o m p l e x n u m b e r ) m u s t o c o u r s e b v a r i a b l e s o n l y .

A d d i n g T h e N e C o m m a n d s T Y o u r C o m p u t e r

P r o g r a m s h o w s t h c o m p l e t e a s s e m b l y l a n g u a g e l i s t i n g . W h i l ei t ' s n o n e c e s s a r y t u n d e r s t a n d t h i s l i s t i n g t u s t h s y s t e m ,y o w i l l s t i l l f i n d i t b q u i t e i n t e r e s t i n g . I p a r t i c u l a r , t h s o u r c e c o d e i l l u s t r a t e s h o t m a n i p u l a t e v a r i a b l e s a n p e r f o r mf l o a t i n g p o i n t o p e r a t i o n s f r o m w i t h i n m a c h i n e l a n g u a g e . A l s o ,t h s o u r c e c o d e w i l l b o i n e s t i m a b l e v a l u e s h o u l d y o d e s i r e t a d s o m e n e o p e r a t i o n s ( l i k e c o m p l e x n u m b e r c o n j u g a t i o n , f o e x a m p l e ) . S o g i v e t h e c o d e q u i c k g l a n c e o v e r t b e c o m ef a m i l i a r w i t h t h e s e v e r a l n o v e l a c t i o n s i p e r f o r m s .

O t h o t h e r h a n d , i y o s i m p l y w i s h t g e d o w n t b u s i n e s sa n u s t h p r o g r a m , t h e n P r o g r a m i t h l i s t i n g y o u ' l l w a n t .T h i s i B A S I C g e n e r a t o r p r o g r a m w h i c h c r e a t e s w o r k i n g c o p yo t h c o m p l e x n u m b e r r o u t i n e o d i s k , r e a d y f o u s e . F i r s t ,e n t e r t h i s p r o g r a m i n t o y o u r C o m m o d o r e 6 4 N o r u i t c h e c k s u m h a n d l e r w i l l h a l t t h p r o g r a m i t h e r e a r e e r r o r s i t h D A T A s t a t e m e n t s . P r o o f r e a d t h p r o g r a m a n d m a k e a n c o r r e ct i o n s a n e e d e d . I y o m a k e i p a s t t h c h e c k s u m d e t e c t o r , t h e nt h c o m p l e x n u m b e r r o u t i n e w i l l b w r i t t e n t d i s k u n d e r t h n a m e o " C O M P L E X . M L " . T h i s i t h p r o g r a m t h a t y o w i l l u s f r o m n o o n Y o m a d i s c a r d P r o g r a m n o w , a i h a s e r v e di t p u r p o s e .

U s i n g T h e C o m p l e x N u m b e r P a c k a g e

A t h i s p o i n t y o c a l o a d t h e p a c k a g e i n t o m e m o r y w i t h :

l o a d " c o m p l e x . m l " , 8 , 1

T h p r o g r a m w i l l l o a d i n t o m e m o r y f r o m $ C 0 0 0 t h r o u g h $ C 1 C 6 .Y o s h o u l d e n t e r N E a t h i s p o i n t , t h e n a c t i v a t e t h r o u t i n ew i t h :

s y s 4 9 1 5 2

T h i s e n g a g e s t h c o m p l e x n u m b e r c o m m a n d s , m a k i n g t h e ma v a i l a b l e f o u s u n t i l y o s h u t t h c o m p u t e r o f f . T b e c o m ef a m i l i a r w i t h t h s y n t a x , t r o u s o m e e x a m p l e s . H e r e a r c o u p l e t g e y o s t a r t e d :

1 0 i n p u t a , 1 1 i n p u t c , 1 2 0 [ ( e , f ) ( a 1 3 p r i n t e ,

1 0 0 p = 1 2 : q = 1 3 . 11 1 0 r 5 4 . 1 : 3 . 1 41 2 0 [ ( w , y ) ( 2 * p , 3 * q ) / ( r / 1 2 , s ) ]1 3 p r i n t w ,

I t h f i r s t e x a m p l e , t h c o m p l e x n u m b e r s ( A , B ) a n ( C , D ) a r ei n p u t . T h l a t t e r i s u b t r a c t e d f r o m t h f o r m e r a n t h r e s u l t i p r i n t e d o u t . I t h i s c a s e , a l o t h p a r t s o a l o t h c o m p l e xn u m b e r s a r v a r i a b l e s ( i . e . , A B C D a n F )

E x a m p l e t w d e m o n s t r a t e s t h a t t h p a r t s o t h c o m p l e x n u b e r s m a a c t u a l l y b q u i t e c o m p l i c a t e d . H e r e t h c o m p l e xn u m b e r ( 2 * P , 3 * Q ) i d i v i d e d b ( R / 1 2 . S ) a n t h r e s u l t i l e f t i t h p a i r o v a r i a b l e s a n Y ( i t h r e a l p a r t a n i t h i m a g i n a r y p a r t ) .

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

Page 39: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 39/84

S o m e I n t e r e s t i n g D e t a i l s

T h r e a l a n i m a g i n a r y p a r t s o t h t w o o p e r a n d s m a b a n v a l i d c o m b i n a t i o n o v a l u e s , v a r i a b l e s a n o r d i n a r y n u m e r i co p e r a t o r s . B o t h i n t e g e r s a n f l o a t i n g p o i n t n u m b e r s m a b u s e d . T h r e a l a n i m a g i n a r y p a r t s o t h r e s u l t m u s t b v a r i a b l e s ( s i n c e t h e y s t o r e t h f i n a l r e s u l t ) . T h e s e t o m a b i n t e g e r o r f l o a t i n g p o i n t t y p e s . B f o r e w a r n e d , h o w e v e r , t h a t i g e n e r a l t h p r o d u c t o r d i f f e r e n c e o t w o c o m p l e x n u m b e r s m a d eu o i n t e g e r c o m p o n e n t s r a r e l y l e a d t c o m p l e x n u m b e r s w i t hi n t e g e r c o m p o n e n t s . I n t h i s c a s e , t h C o m m o d o r e 6 w i l lt r u n c a t e t h e f r a c t i o n a l p a r t .

A l l o f t h e v a l u e s o t h c o m p o n e n t s i t h c o m p l e x n u m b e r sm u s t , o c o u r s e , b e n u m e r i c i t y p e . A t t e m p t i n g t u s s t r i n gw i l l l e a d t T Y P E M I S M A T C H E R R O R . A n a i t h c a s e w i t hi n t e g e r s a n f l o a t i n g p o i n t n u m b e r s , d i v i s i o n b z e r o i u n d ef i n e d a n w i l l y i e l d D I V I S I O N B Z E R O E R R O R .

T h a l g o r i t h m s u s e d t c o m p u t e t h e s e v a r i o u s r e s u l t s a r e :

( a , b ) ( c , d ) ( c d ( a , b ) - ( c , d ) ( a - c , b - d )( a , b ) * ( c , d ) ( a * c - b * d , a * d b * c )( a , b ) / ( c , d ) ( ( a * c b * d ) / ( c * c d * d ) , ( b * c - a * d ) / ( c * c d * d ) )

P r o g r a m 1 C r e a t e s d i s k f i l e C O M P L E X . M L

A E E D

L M F G

K L K K M A P C O D M E H H J C B D

1 0 0 r e m p r f i l e g e f o c o m p l e x . m l1 1 0 c h1 2 f o = 4 9 1 5 2 t 4 9 6 0 61 3 r e a d x c c x n e x t1 4 i c = 5 5 9 2 8 t h e n 1 6 1 5 p r i n t " e r r o r i d a t a s t a t e m e n t s " : e n d1 6 o p e n 8 , 8 , 8 , " 0 : c o m p l e x . m l , p , w "1 7 p r i n t # 8 , c h r $ ( 0 ) ; c h r $ ( 1 9 2 ) ;1 8 r e s t o r e1 9 f o 4 9 1 5 2 t 4 9 6 0 62 0 r e a d x p r i n t # 8 , c h r $ ( x ) ; : n e x t2 1 c l o s e2 2 r e 2 3 d a t a 1 6 9 , 1 1 , 1 4 1 , 0 2 4 d a t a 1 3 9 6 , 2 2 4 ,2 5 d a t a 1 3 9 , 2 2 7 , 3 2 , 1 2 1 ,2 6 d a t a 2 4 6 , 1 0 4 , 1 0 4 , 3 2 , 1 1 52 7 d a t a 1 7 4 , 3 2 , 1 3 9 , 1 7 62 8 d a t a 1 6 8 , 2 , 1 4 0 , 1 6 9 ,2 9 d a t a 1 6 7 , 2 3 2 , 2 5 3 , 1 7 43 0 0 d a t a 3 2 , 1 4 1 , 1 7 3 , 1 4 1 , 1 7 13 1 d a t a 2 , 1 6 5 , 1 4 , 1 4 1 , 1 7 0 ,3 2 d a t a 1 7 4 , 1 6 9 , 1 7 8 , 3 2 , 2 5 5 , 1 7 43 3 d a t a 1 7 4 , 3 2 , 1 3 8 , 1 7 3 , 1 6 2 , 1 7 3 , 1 6 0 ,3 4 d a t a 3 2 , 2 1 2 , 1 8 7 , 3 2 , 2 5 3 , 1 7 4 , 3 2 , 1 3 83 5 d a t a 1 7 3 , 1 6 2 , 1 7 8 , 1 6 0 , 2 3 2 , 2 1 2 , 1 8 73 6 d a t a 3 2 , 2 4 7 , 1 7 4 , 1 4 1 , 1 9 3 , 2 3 2 , 1 1 5

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

0 , 2 0 1 , 9 1 , 2 0 80 3 2 , 2 5 0

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

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

3 2 2 5

H G L P J J P o

F G M H B F A

I L D E D H G

I K C F A J L

G L P D G A L

D H G H

I H H

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

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

1 7

1 2 0

1 6 3

1 3 1 7 1 8

3 1 9

8

3 1 9 1 7 1 8

3 1 9 1 7 1 8 1 7

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

2 5 0 , 1 7 4 ,2 3 2

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

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

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

3 2 1 2 1 6 0 , 0

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

3 2 4 0 8 0 1 8 4 ,

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

1 2 1 8 8 ,3 2 1 8

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

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

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

3 2 1 3 8 ,2 1 2 , 1 8 7 ,

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

2 4 0 , 2 1 2 0 8 , 3

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

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

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

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

2 3 2 1 6 1 , 1 9 3 ,

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

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

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

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

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

1 9 3 , 3 2 1 6 8 , 2

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

1 7 3 , 1 6 23 2 , 2 5 3

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

7 6 2 1 6 , 1 9 1 6 9 , 1 7 1 6 8 ,

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

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

3 2 2 0 1 6 2 , 1 8

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

9 2 1 6 1 8 7 , 3

3 2 4 2 3

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

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

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

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

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

1 6 0 ,2 , 2 0 8

2 4 1 , 1 6 21 6 9 , 8 1 6 2 , 1 8 71 6 5 , 1 0

9

P r o g r a m 2 P A S o u r c e C o d eL L J F C E K

I E I

O

1 0 0 r e m c o m p l e x n u m b e r a r i t h m e t i c p a s o u r c e1 1 0 o p e n 8 , 8 , 1 , " 0 : c o m p l e x . m l1 2 0 s y s 7 0 01 3 . o p t 0 1 4 0 ;1 5 0 ; * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *1 6 0 ; *1 7 0 ; * c o m p l e x n u m b e r a r i t h m e t i c1 8 0 ; * f o t h c o m m o d o r e 6 1 9 0 ; *2 0 0 ; * + , - , * a n / a r e a l s u p p o r t e d a

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

Page 40: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 40/84

H D A N E

E O F E C K H D O F I 1

M J F G O B C C L D B D

F I E K G M L

G D K I

N F N D F E J I H

N K

I A E A G F M E M E

I A

2 1 0 ; * w e l l a c o m p l e x n u m b e r s2 2 ; ( r e p r e s e n t e d a s o r d e r e d p a i r s ) .2 3 0 ; *2 4 0 ; *2 5 0 ; *

2 7 0 ;2 8 i n t f l g2 9 f o r p n t3 0 f a c e x p3 1 0 f a c s g n3 2 a r g s g n3 3 a r i s g n3 4 c h r g e t3 5 c h r g o t3 6 r e a l o t3 7 i m a g o t3 8 r e a l i3 9 i m a g i4 0 r e a l 24 1 0 i m a g 24 2 c m x o p4 3 i e r r o r4 4 v a r s t r4 5 f r m n u m4 6 c h k n u m4 7 c h k c l s4 8 0 c h k o p n4 9 c h k c o m5 0 c h k c h r5 1 0 s n e r r5 2 p t r g e t5 3 f s u b5 4 f a d d5 5 f a d d t5 6 f m u l t5 7 f d i v5 8 f d i v t5 9 d i v z e r6 0 m o v f m6 1 0 f l t 5 c6 2 f l t 5 76 3 m o v m f6 4 m o v a f6 5 n e g o p6 6 o l d e r r6 7 0 ;

t h o m a s h e n r y

= $ 0 e$ 4 $ 6 $ 6

= $ 6 e$ 6 $ 7 $ 7 $ 0 2 a 7r e a l o t +i m a g o tr e a l 1 + 5i m a g i + r e a l 2i m a g 2

= $ 0 3 0 0$ a 9 c 2$ a d 8 a$ a d 8 d$ a e f 7$ a e f a$ a e f d$ a e f f$ a f O 8

= $ b O 8 b= $ b 8 5 0= $ b 8 6 7= $ b 8 6 a= $ b a 2 8

$ b b O f= $ b b 1 2

$ b b 8 a= $ b b a 2

$ b b c 7= $ b b c a

$ b b d 4= $ b c 0 c

$ b f b 4= $ e 3 8 b

6 8 $ c 0 0 06 9 0 ;7 0 i n i t7 1 7 2 7 3 7 4 7 5 0 ;7 6 c m x r t n7 7 7 8 c m x O7 9 0 ;8 0 c m x 18 1 8 2 8 3 8 4

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

I d # < c m x r t ns t i e r r o rI d # > c m x r t ns t i e r r o r + r t

c p # $ 0 bb e q c m x 1j m o l d e r r

j s c h r g o tc m p # ' [ 'b n c m x Op l p l

; $ 0 0 f l t p t , $ 8 i n t e g e r; t e m p p o i n t e r i l i s t; f l t p n t a c c u m , e x p o n e n t; f l t p n t a c c u m , s i g n; f l t p n t a c c u m # 2 , s i g n; f a d f a c 2 s i g n c m f l a g

b a s i c c h a r a c t e r g e r t r e - g e t o l c h a r a c t e r

; r e a l p a r t o u t p u t p n ; i m g p a r t o u t p u t p n t; 1 s t n u m b e r r e a l p a r t; 1 s t n u m b e r i m p a r t; 2 n d n u m b e r r e a l p a r t; 2 n d n u m b e r i m p a r t; c o m p l e x # o p e r a t o r; v e c t o r t e r r o r r o u t i n e; s t o r e n u m e r i c v a r i a b l e; e v a l u a t e n u m e r i c; c h e c k f o r n u m b e r; c h e c k f o c l o s e p a r e n; c h e c k f o o p e n p a r e n; c h e c k f o c o m m a; c h e c k f o r c h r i n a c c; d ' s y n t a x e r r o r '; f i n d v a r i a b l e; f a d ( a : l s b , y : m s b ) f a ; f a d ( a : l s b , y : m s b ) f a ; f a d f a c 2 f a ( s e t u p ); f a d ( a : l s b , y : m s b ) f a ; f a d ( a : l s b , y : m s b ) / f a d; f a d f a c 2 / f a d; ' d i v i s i o n b z e r o '; f a d ( a : l s b , y : m s b )r e a d f a d t o $ 5 c - $ 6 0

; r e a d f a d t o $ 5 7 - $ 5 b; ( x ; l s b , y : m s b ) = f a d; f a c 2 f a ; f a d = - f a d; c o n t i n u e o l e r r o r r o u t i n e

; c h a n g e e r r o r v e c t o r

; s y n t a x - e r r o r; y e s , m o v e o n ; n o , d r e g u l a r e r r o r r o u t i n e

; r e g e t o f f e n d i n g c h a r a c t e r; l e f t - b r a c k e t ?; n o , o r d i n a r y e r r o r; p o p j u n k f r o m s t a c k

F K B O A

G J O F C O B

P H

B I

C H

O P H B M L P E O O K P P A E

M G O N D D I

D H G F

H D O P B M

I C E E C

O E M N A F F

L

3

8 5 8 6 8 7 8 8 8 9 0 ;

9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 8 9 9 1 0 0 01 0 1 01 0 2 01 0 3 01 0 4 01 0 5 01 0 6 01 0 7 01 0 8 01 0 9 01 1 0 01 1 1 01 1 2 01 1 3 01 1 4 01 1 5 01 1 6 01 1 7 01 1 8 01 1 9 01 2 0 01 2 1 01 2 2 01 2 3 01 2 4 01 2 5 01 2 6 01 2 7 01 2 8 0 ;1 2 9 01 3 0 01 3 1 01 3 2 0 ;1 3 3 01 3 4 01 3 5 0 ;1 3 6 01 3 7 01 3 8 01 3 9 0 ;1 4 0 0 c m x 21 4 1 01 4 2 01 4 3 0 ;1 4 4 0 c m x 31 4 5 0 ;1 4 6 0 c m x 41 4 7 01 4 8 0

j s j s j s j s

S t s t I d s t j s j s j s s l s t I d

s t j s I d j s j s j s I d I d j s j s j s I d I d j s j s s t j s j s j s I d I d j s j s j s j s j s I d j s

I d

c h r g e tc h k o p np t r g e tc h k n u m

r e a l o ti n t f l gr e a l o tc h k c o mp t r g e tc h k n u mi m a g o t + 1i m a g o t +i n t f l g

i m a g o tc h k c l s# $ b 2c h k c h rc h k o p nf r m n u m# < r e a l 1# > r e a l 1m o v m fc h k c o mf r m n u m# < i m a g 1# > i m a g 1m o v m fc h k c l sc m x o pc h r g e tc h k o p nf r m n u m# < r e a l 2# > r e a l 2m o v m fc h k c o mf r m n u mo t i m g 2c h k c l s# ' c h k c h r

c m x o pc m # $ a ab e c m x 4

c m # $ a bb e c m x 4

c m # $ a cb n j m

c m x 2c m x 8

c m # $ a db n c m x 3j m

j m

j s I d I d

c m x 6

s n e r r

i n r e l 2# < r e a l 1# > r e a l 1

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

■ I c K, I S D; m s b; s a v e i n t e g e r f l a g

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

; s a v e i n t e g e r f l a g; c h e c k f o c l o s e p a r e n; c h e c k f o r

; c h e c k f o o p e n p a r e n; e v a l u a t e r e a l #

; s a v e i f o l a t e r; c h e c k f o c o m m a; e v a l u a t e i m #

; s a v e i f o r l a t e r; c h e c k f o c l o s e p a r e n; s a v e o p e r a t o r; g e t n e x t c h a r a c t e r; c h e c k f o o p e n p a r e n; e v a l u a t e r e a l #

; s a v e i f o l a t e r; c h e c k f o c o m m a; e v a l u a t e i m # ; s a v e i f o l a t e rc h e c k f o c l o s e p a r e n

; c h e c k f o r ' ] '

r e s t o r e o p e r a t o r; i i tb r a n c h i f i t i

; i i t - b r a n c h i f i t i

; i i b r a n c h i n o

; i i tb r a n c h i f n o

' s y n t a x e r r o r '

; b r i n g i r e a l #

J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 41: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 41/84

P I

K K B C A G B P O J B A E A N B G A P F

I G F A K

A I

K O E F F P F

M E

G M O A M A P F J G F F E A E K H

1 G E C I 1 J K J

1 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 c m x 51 5 9 01 6 0 01 6 1 01 6 2 01 6 3 0 ;1 6 4 0 c m x 61 6 5 01 6 6 01 6 7 01 6 8 01 6 9 01 7 0 01 7 1 01 7 2 01 7 3 01 7 4 01 7 5 01 7 6 01 7 7 01 7 8 0 ;1 7 9 0 c m x 71 8 0 0 c m x 81 8 1 01 8 2 01 8 3 01 8 4 01 8 5 01 8 6 01 8 7 01 8 8 01 8 9 01 9 0 01 9 1 01 9 2 01 9 3 01 9 4 01 9 5 01 9 6 01 9 7 01 9 8 01 9 9 02 0 0 02 0 1 02 0 2 02 0 3 02 0 4 02 0 5 02 0 6 02 0 7 02 0 8 02 0 9 02 1 0 02 1 1 02 1 2 0

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

j s I d I d I d j s j s I d I d j s I d I d I d j s r t

j s j s j s j s j s j s j s j s I d I d j s I d b n j m

j s I d I d j s j s j s j s j s j s j s I d I d j s j s I d I d j s I d I d j s j s j s I d I d j s I d I d j s I d

a d d s u br e a l o t + r e a l o t +r e a l o ts t o r f pi n i m g 2# < i m a g 1# > i m a g 1a d d s u bi m a g o t + 1i m a g o ti m a g o ts t o r f p

n e g o po t i m g 2m o v a fc m u l tf l t 5 7i n r e l 2m o v a fc m u l t# $ 5 7# $ 0 0f a d df a c e x pc m x 7d i v z e r

f l t 5 7# < r e a l 1# > r e a l 1m o v f mm o v a fi n r e l 2c m u l tf l t S ci n i m g 2c m u l tr e a l o t +r e a l o tm o v m fi n i m g i# < i m a g 2# > i m a g 2f m u l t# $ 5 c# $ 0 0f s u bf l t 5 ci n i m g i# < r e a l 2# > r e a l 2f m u l tr e a l o t + r e a l o t +f a d dc m x o p

c m p # $ a cb e j s j s j s

c m x 9m o v a ff l f 5 7a d j s g n

; d o r - .

; i n t e g e r f l a g; s t o r e r e a l r e s u l t; b r i n g i i m g # 2

; d o r

; i n t e g e r f l a g; s t o r e i m r e s u l t

n e g a t e d f o c o n j u g a t es a v e d

; f a c 2; f a d d * ; s a v e d * d; b r i n g i ; f a c 2; f a d c *

; f a d c * d * ; c h e c k f o z e r ob r a n c h i f o k a y

; ' d i v i s i o n b z e r o 1

; s a v e c * c d *

; b r i n g i ; f a c 2; b r i n g i ; f a d a * ; s a v e i ; b r i n g i n ; f a d a *

; s a v e a * d; b r i n g i

; f a d b *

; f a c 1 a * c - b * ; s a v e i t b a c k; b r i n g i

; f a d b *

; f a c 1 a * b * ; c h e c k o p e r a t o r; i i ; y e s , b r a n c h; f a c 2 a * b * ; f a c 1 m a s q u a r e d; a d j u s t s i g n

G K C A N

I C O G D G E E O K O A C F N H K F E

O O M O A G M L I

E H N A O E F

I H H N A

B J

J F

A M M J K G C

I J C

G G

3

2 1 3 02 1 4 02 1 5 02 1 6 02 1 7 02 1 8 02 1 9 02 2 0 0 ;2 2 1 0 c m x 92 2 2 02 2 3 0 c m x 1 02 2 4 02 2 5 02 2 6 02 2 7 02 2 8 0 ;

j s f d i v tj s c m x 5j s f l f 5 7I d # $ 5 cI d # $ 0 0j s f d i vj m c m x 1 0

j s c m x 5j s r f l f 5 cI d r e a l o t + 1I d r e a l o t +I d r e a l o tj s s t o r f pr t

; f a d ( a * d b * c ) / ( c * c d * d ); s t o r e i m a g i n a r y p a r t; f a c 1 m a s q u a r e d; f a d ( a * c - b * d ) / ( c * c d » d )

; f i n a l r e s u l t

; s t o r e i m a g i n a r y p a r t; f a d r e a l p a r t

i n t e g e r f l a gs t o r e r e a l p a r t

2 2 9 0 ; / / / c o m p l e x n u m b e r u t i l i t i e s / / 2 3 0 0 ;2 3 1 0 s t o r f p2 3 2 02 3 3 02 3 4 0 ;2 3 5 0 a d d s u b2 3 6 02 3 7 02 3 8 02 3 9 0 ;2 4 0 0 a s 2 4 1 0 ;2 4 2 0 i n i m g i2 4 3 0

s t f o r p n ts t f o r p n t + j m v a r s t r

I d c m x o pc p x # $ a ab n a s j m f a d d

j m f s u b

I d # < i m a g 1I d # > i m a g 1

2 4 4 0 c m o v f m j m p m o v f m2 4 5 0 ;2 4 6 0 i n i m g 22 4 7 02 4 8 02 4 9 0 ;2 5 0 0 i n r e l 22 5 1 02 5 2 02 5 3 0 ;2 5 4 0 o t i m g 22 5 5 02 5 6 02 5 7 0 ;2 5 8 0 f l f 5 72 5 9 02 6 0 0 f l f 5 c2 6 1 02 6 2 02 6 3 0 ;2 6 4 0 c m u l t2 6 5 02 6 6 0 ;2 6 7 0 a d j s g n2 6 8 02 6 9 02 7 0 02 7 1 02 7 2 0 ;2 7 3 0 . e n d

I d # < i m a g 2I d # > i m a g 2b n c m o v f m

I d # < r e a l 2I d # > r e a l 2b n c m o v f m

I d # < i m a g 2I d # > i m a g 2j m m o v m f

I d # $ 5 7, b y t e $ 2 cI d # $ 5 cI d # $ 0 0j m m o v f m

j s a d j s g nj m f m u l t +

I d f a c s g ne o a r g s g ns t a r i s g nI d f a c e x pr t

; g s t o r e v a l u e

; c h e c k o p e r a t o r; i i t

; g o d o

; b r i n g i i m a g i

; b r i n g i i m a g 2

b r a n c h a l w a y s

; b r i n g i r e a l 2

b r a n c h a l w a y s

; s t o r e i m a g 2

b r a n c h a l w a y s

; m o v e t o f a d

; s e t u f o m u l t i p l y; f a d = f a d f a c 2

; a d j u s t s i g n

J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 42: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 42/84

Page 43: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 43/84

f o t h a d d a n d d i v i d e r o u t i n e s l o a d t h e o r e g i s t e r w i t h $ 6 1 , a n c a l l o n o t h e f o l l o w i n g :

$ b 8 5 3 : s u b t r a c t F A C 2 f r o m F A C 1$ b 8 6 a : a d d F A C 2 t F A C 1$ b a 3 0 : m u l t i p l y F A C 1 b F A C 2$ b b l 2 : d i v i d e F A C 2 b F A C 1$ b 7 b r a i s e F A C 2 t t h p o w e r o F A C 1O t h e r u s e f u l r o u t i n e s a r e l i s t e d b e l o w .

$ b 8 4 9 : a d . t F A C 1 ( n p o i n t e r s n e e d e d )$ b c c c : p e r f o r m I N T ( c a l l s $ b c 9 b a n d r e c o n v e r t s t F . P . )$ b a e 2 : m u l t i p l y F A C 1 b 1 0 $ b a f e : d i v i d e F A b 1 0 $ e 2 6 4 : p e r f o r m C O t F A 1 $ e 2 6 b : p e r f o r m S I t F A 1 $ e 2 b 4 : p e r f o r m T A t F A 1 $ e 3 0 e : p e r f o r m A T t F A 1

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

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

$ b f l l :$ b 9 b c :$ b a f 9 :$ a e a 8 :$ e 2 e 0 :$ e 2 e 5 :$ e 2 e a :

c o n s t a n t . c o n s t a n tc o n s t a n t 1 0c o n s t a n t p c o n s t a n t p i / 2c o n s t a n t 2 * p ic o n s t a n t 1 /

T h e r e a r s o m e o t h e r r o u t i n e s i R O t h a t p e r f o r m o v e r f l o wc h e c k i n g , e x p o n e n t a d d i t i o n , a n s i g n c h e c k i n g t h a t w i l l n e e d t b a c c e s s e d w h e n g e t t i n g i n t o l o n g a n d c o m p l e x f o r m u l a s b u f o n o t h r o u t i n e s o u t l i n e d w i l l g e t h f e a r o f u s i n g f l o a t i n g p o i n tn u m b e r s f r o m m a c h i n e l a n g u a g e p r o g r a m o u o t h w a y .

N o o n t o a s h o r t d i s c u s s i o n o t h p r o g r a m . F i r s t , B U F F R 1 i c o n v e r t e d f r o m a a s c i i s t r i n g t a F . P . n u m b e r i F A C 1 a n m o v e d t m e m o r y l o c a t i o n $ 5 7 . T h e n B U F F R 2 i s i m i l a r l y c o v e r t e d a n s t o r e d a $ 5 c . T h t w n u m b e r s a r t h e n m u l t i p l i e d a n s t o r e d i $ 5 7 . F i n a l l y t h t w o r i g i n a l n u m b e r s a r a d d e d t o g e t h e ra n c h e c k t s e i t h s u i l e s s t h a n t h e p r o d u c t . I i i l e s s ,t h e n k e e p a d d i n g u n t i l t h s u e x c e e d s t h p r o d u c t . T h p r o g r a mw i l l t h e n p r i n t t h s u t t h e s c r e e n , p r i n t t h p r o d u c t t t h s c r e e na n p r i n t t h n u m b e r o t i m e s i a d d e d t h t w n u m b e r s t o g e t h e r .

H e r e a r s o m e a l t e r a t i o n s t t h p r o g r a m . T r m e s s i n g a r o u n d w i t ht h a s c i i n u m b e r s a n s e w h a t o t h e r v a l u e s w i l l b p r o d u c e d .C h a n g e t h e a r i t h m e t i c o p e r a t i o n s i l i n e s 5 1 o 5 9 0 . M a y b e u s t h m o v e r o u t i n e a $ b c O c i n l i n e 6 0 i n s t e a d , t s e w h a t e f f e c t t a k e sp l a c e o l o o a d d i t i o n s . U s l a r g e o r i g i n a l n u m b e r s t f i n d o u w h e n s c i e n t i f i c n o t a t i o n d i s p l a y s t a k e o v e r .

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

D M M K E L G O D C A C N L E

L O H B B K G C

F F K I

J B

M C P

A O P J I

H P L

I E

E D P N J J F I B G P

C B B N

J M

D D C B B P C

J J E N P C A G K O G K N H N C P A

A D O

1 0 0 r e m1 1 r e

* f a f a c t s • • » b J o h n h o u g h t o n • •

1 2 0 r e m » » » c o l l i n g w o o d o n t • • •1 4 0 r e m1 5 0 r e m p a s o u r c e c o d e1 7 0 s y s 7 0 01 9 . o p t 0 2 0 0 ;2 1 0 . = $ c 0 0 02 2 0 ;2 3 ; r o u t i n e t d e m o n s t r a t e t h u s 2 4 ; o f l o a t i n g p o i n t n u m b e r s , t h 2 5 a s s o c i a t e d f l o a t i n g p o i n t2 6 0 a c c u m u l a t o r s a n d r o m r o u t i n e s .2 7 0 ;2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 0 ;5 4 a d 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 0 ;6 5 n e 6 6 6 7 6 8 6 9 7 0 7 1 7 2 7 3 7 4 7 5 7 6 7 7 7 8 7 9 8 0 8 1 8 2 8 3 8 4 8 5 8 6 8 7 8 8 8 9 9 0 0 ;9 1 c o u n t9 2 g e t l o9 3 g e t h i9 4 0 ;9 5 b u f f r i9 6 9 7 0 ;9 8 b u f f r 29 9

I d s t s t I d s t I d s t I d s t I d s t j s j s j s I d s t I d s t j s j s j s I d I d j s j s

i d i d j s I d j s j s

n b n i n

I d I d j s b m j s j s I d j s I d I d j s j s j s I d j s I d I d j s j s I d s t I d s t r t

. a s c

# $ 0 0c o u n t ; c l e a r i n t e g e rc o u n t + 1 ; s t o r a g e$ 7 ; s t o r e c h r g e tg e t l o p o i n t e r s$ 7 g e t h i# < b u f f r 1 ; p o i n t c h r g e t t $ 7 1 s n u m b e r# > b u f f r 1$ 7 $ 0 0 7 9 ; c a l l c h r g o t$ b c f 3 ; a s c i i t f a $ b b c a ; f a d t m e $ 5 # < b u f f r 2 ; p o i n t c h r g e t t $ 7 ; 2 n d n u m b e r# > b u f f r 2$ 7 $ 0 0 7 9 ; c a l l c h r g o t$ b c f 3 ; a s c i i t f a $ b b c 7 ; f a c 1 t o m e $ 5 # $ 5 7# $ 0 0$ b a 2 8 ; $ 5 7 t f a c 2 m u l t$ b b c a ; p r o d u c t t $ 5

# $ 5 c# $ 0 0$ b b a 2 ; $ 5 c t f a $ 6 ; e x p o n e n t f a d$ b 8 6 a ; a d d f a c 2 t f a $ b c O f ; s u m t f a o 2c o u n t ; i n c n u m b e r o n e a d d i t i o n sc o u n t + 1

# $ 5 7# $ 0 0$ b c 5 b ; c o m p a r e s u p r o da d ; f a d $ 5 $ b d d d ; f a d t a s c i i$ a b 1 e ; p r i n t s u m# $ 0 d$ t f d 2# $ 5 7# $ 0 0$ b b a 2 ; $ 5 7 t f a $ b d d d ; f a d t o a s c i iS a b l e ; p r i n t p r o d u c t# $ 0 d$ f f d 2c o u n t + 1 ; g e t c o u n t o c o u n t a d d i t i o n s c o n v e r t$ b d c d ; i n t t o a s c i i$ a b 1 e ; p r i n t c o u n tg e t l o$ 7 ; r e s t o r e c h r g e tg e t h i$ 7

" 1 0 . 1 2 5 "b y t e $ 0

. a s c " 6 . 3 7 5 ". b y t e $ 0

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

Page 44: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 44/84

H i g h - S p e e d I n t e g e rM u l t i p l i e s a n D i v i d e s

D o n a l d A B r a n s o nS t L o u i s , M i s s o u r i

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

I y o h a v e w r i t t e n a n a m o u n t o a s s e m b l e r c o d e , y o h a v ep r o b a b l y e n c o u n t e r e d s i t u a t i o n w h e r e y o w a n t e d t d m u l t i p l ic a t i o n o r d i v i s i o n . I y o u r p r o c e s s o r h a m u l t i p l y / d i v i d e c o m a n d s , n p r o b l e m . H o w e v e r , i i d o e s n o ( a i t h c a s e o t h 6 5 0 2 - s e r i e s C P i C o m m o d o r e ' s 8 - b i t c o m p u t e r s ) , y o m a h a v ed o n e a m u l t i p l y b a d d i n g a n o p e r a n d t i t s e l f , d e c r e m e n t i n g t h o p e r a n d a t h s a m e t i m e u n t i l i r e a c h e s z e r o .

T h i s i p r o b a b l y t h m o s t s t r a i g h t f o r w a r d w a t d m u l t i p l y , b u t ab i n a r y m u l t i p l y c a b d o n e t h s a m e w a p e r s o n m u l t i p l i e sd e c i m a l n u m b e r b h a n d . T h i s w a i a e a s y t d a n d , i a l b u f e c a s e s , i q u i t e b i f a s t e r .

M u l t i p l i c a t i o n

F i r s t , l e t ' s l o o k a t h w a d e c i m a l m u l t i p l y i d o n e , i o r d e r t d r a w a t t e n t i o n t s o m e k e y e l e m e n t s i a n m u l t i p l y . T h p r o c e d u r ei e x p a n d e d o t h r i g h t t s h o w m o r e s p e c i f i c a l l y w h a t i h a p p e ni n h e r e .

3 1

1 7 3 5 5 2

1 5 * 2 3 3 1 0 * 54 1 0 * 3 0

2 1 5

5 3 0 5 2

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

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

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

I o r d e r t l o o k a o n b i n a r y d i g i t ( b i t ) a t i m e , c o m b i n a t i o n o t h L S a n R O o p e r a t i o n s i u s e d t s h i f t t h b i i n t o t h e c a r r y b i t ,w h e r e i c a b e x a m i n e d w i t h B C o B C o p e r a t i o n . I t h i s w a y ,o n d i g i t c a b m u l t i p l i e d a t i m e . I t h i s w e r e d e c i m a l m u l t i p l y ,w w o u l d h a v e t h a v e t a b l e o r e s u l t s f o e a c h p o s s i b l e c o m b i n at i o n o o n d i g i t m u l t i p l i e s , l i k e t h i s :

1 * 1 = 11 *

2 * 1 = 22 *

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

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

F o e x a m p l e :

1 = $ 0 F % 0 0 0 03 $ 2 % 0 0 1 0

0 0 0 0 1 1 1 1x 0 0 1 0 0 0 1 1

0 0 0 0 1 1 1 10 0 0 0 1 1 1 1

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 1 1 1 1

0 0 0 0 0 0 0 00 0 0 0 0 0 0 00 0 0 0 0 1 0 0 0 0 0 1 1 0 1

( $ 0 2 0 D 5 2 5 )

1 1 1 10 0 1 1

M M

N o t l o o k a t h p r o c e s s i w a t h a t c a b e a s i l y r e p r e s e n t e d i c o m p u t e r . W e ' l l c a l l t h m u l t i p l i c a n d M l t h m u l t i p l i e r M 2 a n

t h f i e l d w h e r e t h r e s u l t i l e f t R l i k e t h i s :

M 1 : 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1M 2 : 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1R 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

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

Page 45: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 45/84

S i n c e t h r e s u l t w i l l b s i x t e e n b i t s ( 5 2 5 2 5 5 ) , a l t h f i e l d s a r r e p r e s e n t e d a s s i x t e e n b i t s .

F i r s t , M i s h i f t e d r i g h t , s t h a t e a c h b i c a b l o o k e d a f r o m r i g h tt l e f t a i t h d e c i m a l m u l t i p l y s h o w n b e f o r e . A y o c a s e i t h e x a m p l e o b i n a r y m u l t i p l i c a t i o n a b o v e , t h d i g i t c a b e i t h e r o n o z e r o , a n t h r e s u l t o f t h s i n g l e - d i g i t m u l t i p l y i e i t h e r z e r o , o d u p l i c a t e o M 2 p r o p e r l y s h i f t e d t t h l e f t . A f t e r e a c h d i g i t i M i s h i f t e d i n t o t h c a r r y b i t , M i a d d e d t i t h c a r r y i o n e , t h e nM i s h i f t e d l e f t , i p r e p a r a t i o n f o t h n e x t d i g i t .

H e r e , ' S R ' s t a n d s f o s h i f t r i g h t , ' S L ' f o s h i f t l e f t .

p a s s

1

2

3

4

c a r r y

S R M 1 : 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1M 2 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1

S L M 2 : 0 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0

S R M 1 : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1R M 2 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 1S L M 2 : 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0

S R M 1 : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1R M 2 0 0 0 0 0 0 0 0 1 1 1 1 0 1 0 1

S L M 2 : 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0

S R M 1 : 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0M 2 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 1

S L M 2 : 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0

N o t e t h a t w c a s t o p h e r e , b e c a u s e M i z e r o , a n t h c a r r y b i w i l l n l o n g e r b s e a r e s u l t o f s h i f t i n g M 1 a n t h e r e f o r e M w i l ln o b a d d e d t a n m o r e t i m e s . A t h i s p o i n t , t h r e s u l t o t h m u l t i p l y i l e f t i R

H e r e i h o t h i s p r o c e s s l o o k s i a s s e m b l e r :

M L O O P E Q L S R O B C C L L D A D S T L D A D S T

S H I F T E Q A S R O L D B N L D B N R T

M H E M H E

H E T h T r a n s a c t o r

M M 1 + 1S H I F T

M R R M

M M M + M L O O PM M L O O P

0 0 2 30 0 0 F0 0 0 0

; i P A L - M L O O P; S R M 1; t h e c a r r y f r o m M - M ; a d d o c a r r y s e ; M

; S L M 2

; i f M 1 a n d M 1 + = ; w h e n w a r d o n e

; o r . B Y T E $ 0 0 , $ 2 3; o r . B Y T E $ 0 0 , $ 0 F; o r . B Y T E $ 0 0 , $ 0 0

D i v i s i o n

N o w e ' l l t a k e a l o o k a d i v i s i o n . B i n a r y d i v i s i o n c a a l s o b d o n eb m i m i c k i n g t h w a d e c i m a l d i v i s i o n i d o n e . L e t ' s l o o k a a e x a m p l e o h o t c o m p u t e 4 3 / 5 , g i v i n g a r e s u l t o f r e m a i n d e r 3 H e r e ' s h o i w o u l d b d o n e b h a n d , i d e c i m a l .

r

1 2

4 4

* 4 3 4

4

M = 0 0 0 0 0 1 0 1R = 0 0 0 0 0 0 0 0

M 4 0 0 1 0 1 0 1 1R 0 0 0 0 0 0 0 0

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

M / M R r e m R 2

M w i l l b s h i f t e d l e f t i n t o R 2 a n R w i l l t h e n b c o m p a r e d t M l I R i g r e a t e r t h a n o e q u a l t M l t h e n M w i l l f i i n t o R 2 T h r e s u l t o f b i n a r y d i v i d e c a n b e o n l y a z e r o o r a o n e , a g a i n s a v i n g u t h t r o u b l e o h a v i n g r e s u l t t a b l e , a i n e c e s s a r y f o d e c i m a ld i v i s i o n . I M w i l l f i i n t o R 2 t h e n w s u b t r a c t M f r o m R 2 , l e a v i n gt h r e s u l t i R 2 F i n a l l y , R i s h i f t e d l e f t , w i t h t h c a r r y b i f r o m t h c o m p a r e g o i n g i n t o t h l e a s t s i g n i f i c a n t b i t .

p a s s

1 S L M 2 i n t o R 2 R 2 = 0 0 0 0 0 0 0 0C M P R 2 - M 1 ( c a r r y c l e a r )S L R 1 R = 0 0 0 0 0 0 0 0

M 0 1 0 1 0 1 1 0

2 S L M 2 i n t o R 2 R 0 0 0 0 0 0 0 0 M 1 0 1 0 1 1 0 0C M P R 2 - M 1 ( c a r r y c l e a r )S L R 1 R 0 0 0 0 0 0 0 0

3 S L M 2 i n t o R 2 R = 0 0 0 0 0 0 0 1 M 0 1 0 1 1 0 0 0C M P R 2 - M 1 ( c a r r y c l e a r )S L R 1 R 0 0 0 0 0 0 0 0

4 S M i n t o R R 2 = 0 0 0 0 0 0 1 0 M 1 0 1 1 0 0 0 0C M P R 2 - M 1 ( c a r r y c l e a r )S L R 1 R = 0 0 0 0 0 0 0 0

5 S L M 2 i n t o R 2 R 2 = 0 0 0 0 0 1 0 1 M 0 1 1 0 0 0 0 0C M P R 2 - M 1 ( c a r r y c l e a r )S L R 1 R = 0 0 0 0 0 0 0 1R R 2 - M 1 R 0 0 0 0 0 0 0 0

6 S M i n t o R 2 R 2 = 0 0 0 0 0 0 0 0 M 1 1 0 0 0 0 0 0C M P R 2 - M 1 ( c a r r y c l e a r )S L R 1 R = 0 0 0 0 0 0 1 0

7 S L M 2 i n t o R 2 R 2 = 0 0 0 0 0 0 0 1 M 1 0 0 0 0 0 0 0C M P R 2 - M 1 ( c a r r y c l e a r )S L R 1 R 0 0 0 0 0 1 0 0

( . c o n t ' d o p a g e 4 5 4 J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 46: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 46/84

S e c o n d a r yA d d r e s s B i t s

J i B u t t e r f i e l dT o r o n t o , O n t a r i o

. . a c h a r a c t e r i s t i c o s e c o n d a r y a d d r e s s e s t h a t i n o w e l l k n o w n .

W h e n y o w o r k d e v i c e w h o s e n u m b e r i 4 o m o r e , y o a r a l l o w e d ( s o m e t i m e s r e q u i r e d ) t u s a e x t r a n u m b e r c a l l e ds e c o n d a r y a d d r e s s . T h p u r p o s e o t h s e c o n d a r y a d d r e s s i t c h o o s e c h a n n e l w i t h i n t h e d e v i c e . I n o t h e r w o r d s , i I ' m u s i n gt h d i s k ( u s u a l l y d e v i c e 8 ) m a w a n t t h a v e s e v e r a l t h i n g sg o i n g a o n t i m e : o n f i l e m i g h t b e i t h p r o c e s s o b e i n g r e a d ,w i t h a n o t h e r s e p a r a t e f i l e b e i n g w r i t t e n a t h s a m e t i m e .A l t h o u g h t h e s e a r e h a p p e n i n g i t h s a m e d e v i c e ( t h e d i s k ,n u m b e r 8 ) w w a n t t k e e p t h e m s e p a r a t e . T d t h i s , w s u p p l y u n i q u e s e c o n d a r y a d d r e s s e s f o e a c h p r o c e s s .

T h i s a r t i c l e d o c u m e n t s c h a r a c t e r i s t i c o s e c o n d a r y a d d r e s s e st h a t i n o w e l l k n o w n , p l u s a o d d i t y i t h w a i i s o m e t i m e su s e d . T h c h a r a c t e r i s t i c i t h i s : C o m m o d o r e B a s i c a l w a y s a d d s9 t t h S ( s e c o n d a r y a d d r e s s ) u s e d b y a n O P E N c o m m a n db e f o r e s t o r i n g t h i s v a l u e . M a c h i n e l a n g u a g e r o u t i n e s , h o w e v e r ,d o n ' t d t h i s , a n d y o u m a w a n t t a d i t h v a l u e t k e e po p e r a t i o n c o n s i s t e n t . T h o d d i t y i t h i s : d e s p i t e d o c u m e n t a t i o n ,t h n u m b e r y o s u p p l y t g w i t h a L O A D c o m m a n d i n o s e c o n d a r y a d d r e s s . I t ' s j u s t f l a g , a n w i l l l a t e r b r e p l a c e d b S o ( p l u s t h e x t r a 9 6 ) .

T r I

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

O P E N 2 , 8 , 1 5

. . n o w y o c a n c h e c k t h e t h r e e v a l u e s y o h a v e s u p p l i e d b P E E K - i n g t h e m d i r e c t l y f r o m t h t a b l e s w h e r e t h e y h a v e b e e ns t o r e d . A s s u m i n g t h i s i y o u r o n l y a c t i v e f i l e , y o s h o u l d s e e t h t h r e e v a l u e s a t

V I C - 2 0 , C o m m o d o r e 6 4 6 0 1 , 6 1 1 , 6 2 M o s t P E T / C B M : 5 9 3 , 6 0 3 , 6 1 B - 1 2 8 8 2 0 , 8 3 0 , 8 4 C - 1 6 , P l u s - 4 1 2 8 9 , 1 2 9 9 , 1 3 0 9C o m m o d o r e 1 2 8 6 6 , 8 7 6 , 8 8

U s i n g t h P E E K a d d r e s s f r o m y o u r m a c h i n e , i y o P E E K t h f i r s t a d d r e s s , y o u ' l l s e t h v a l u e f r o m t h c o m m a n d t h a t w a e n t e r e d . P E E K t h s e c o n d v a l u e a n y o u ' l l s e t h 8 . b u w h e n y o P E E K t h t h i r d v a l u e , t h e 1 5 h a m y s t e r i o u s l yc h a n g e d t 1 1 1 . T h c o m p u t e r h a a d d e d 9 6 W h y ?

d o n ' t k n o w . b u d k n o w t h a t t h e B a s i c s i d e o t h c o m p u t e ri q u i t e s p e c i f i c a b o u t d o i n g t h i s . A n i t h e r e i n o s e c o n d a r y

a d d r e s s , t h e B a s i c h a n d l e r c a r e f u l l y s e t s t h S t v a l u e o 2 5 5 . . f l a g v a l u e w h i c h s i g n a l s t t h v a r i o u s p a r t s o t h k e r n a l t h a t t h e r e i n s e c o n d a r y a d d r e s s .

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

H e r e ' s t h e s y s t e m : W h e n w o p e n f i l e , w s e n d t h o r i g i n a l S A p l u s 2 4 0 , t t h d e v i c e , f o l l o w e d b t h f i l e n a m e . W h e n t h e d i s ks e e s t h i s v a l u e ( 2 4 0 t 2 5 5 ) , i k n o w s t e x p e c t f i l e n a m e t f o l l o w n o d a t a . W h e n w c l o s e f i l e , w s e n d t h o r i g i n a l S A p l u s 2 2 4 , t t h d e v i c e . W h e n t h d i s k s e e s t h i s v a l u e ( 2 2 4 t 2 3 9 ) , i k n o w s t c l o s e t h f i l e . F i n a l l y , w h e n w s e n d o r e c e i v ed a t a , w s e n d t h S a i i s t o r e d i m e m o r y ( w h i c h i n c l u d e st h a d d e d v a l u e o f 9 6 ) . T h d i s k s e e s t h a t t h S i n e i t h e r a O P E N n o C L O S E , a n d h a n d l e s t h e d a t a a d e s i r e d .

N o w . . w h e n B a s i c p u t s t h e S a w a y f o y o u , a l t h a b o v eh a p p e n s a u t o m a t i c a l l y ( a d d 9 t v a l u e s u p p l i e d , o r s e 2 5 i t h e r e i n s e c o n d a r y a d d r e s s ) . B u i y o d i y o u r s e l f i m a c h i n e l a n g u a g e , y o u m u s t d i a l l .

S o . i y o u ' r e g o i n g t c a l l S E T L F S a f i r s t s t e p t o w a r d s c a l l i n gO P E N , s e u t h s e c o n d a r y a d d r e s s c o r r e c t l y . I o t h e r w o r d s , i y o u w e r e p l a n n i n g t O P E N i s i m i l a r m a n n e r t t h a b o v ec o m m a n d ( O P E N 2 , 8 , 1 5 ) , I ' s u g g e s t y o c o d e :

L D # $ 0 2L D # $ 0 8L D # $ 6 FJ S $ F F B A ; ( S E T L F S )

N o t e t h a t t h s e c o n d a r y a d d r e s s o 1 ( h e x # $ 0 F ) h a s h a v a l u e o 9 ( h e x $ 6 0 ) a d d e d t i t t m a k e t o t a l o $ 6 F .

A n i y o u w a n t t o p e n t t h p r i n t e r w i t h t h e e q u i v a l e n t o O P E N 3 . 4 . . r e c o m m e n d :

L D # $ 0 3L D # $ 0 4L D # $ F FJ S $ F F B A ; ( S E T L F S )

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

Page 47: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 47/84

T s i g n a l t h a t n s e c o n d a r y a d d r e s s i c a l l e d f o r , p u 2 5 ( h e x F F i n t o t h r e g i s t e r .

B o t h o t h a b o v e c a l l s s h o u l d b f o l l o w e d s o o n b y c a l l t O P E N ( $ F F C 0 ) . B e c a u s e h e r e ' s t h e c a t c h : t h a b o v e s e t u pd o e s N O w o r k a e x p e c t e d i y o u ' r e g o i n g t c a l l L O A D( $ F F D 5 ) .

T h d o c u m e n t a t i o n d o e s n ' t t e l l y o t h i s . . b u i y o a r g o i n g t m a k e c a l l t L O A D , y o u r p r i o r c a l l t S E T L F Sd o e s n o s e s e c o n d a r y a d d r e s s . I n s t e a d , i s e t s f l a g .v a l u e o b i n a r y z e r o a l l o w s t h e p r o g r a m t r e l o c a t e a i i l o a d e d ; a n o t h e r ( n o n - z e r o ) v a l u e t r i g g e r s l o a d t f i x e da d d r e s s , w i t h n r e l o c a t i o n . T h i s l a s t i w h a t i m o s t o f t e nw a n t e d .

A n i t h c a s e o L O A D , y o d N O w a n t t a d 9 6 I y o u r o b j e c t i v e i r e l o c a t i o n , t h e o n l y v a l u e t h a t w o r k s i t h

r e g i s t e r i z e r o . . a d 9 a n i i s n ' t z e r o a n m o r e , a n y o w i l l N O r e l o c a t e .

d o n ' t u s c a l l s t L O A D m u c h . I m o s t c a s e s , i s e e m s t m t b a e a s y t O P E N a n r e a d t h b y t e s m y s e l f ,s t a c k i n g t h e m a w a y u n d e r p r o g r a m c o n t r o l a f t e r e x a m i n i n gt h e m . B u t i y o w i s h t u s L O A D , g a h e a d . j u s tr e m e m b e r t h a t t h S E T L F S s e c o n d a r y a d d r e s s i r e a l l y n o

s e c o n d a r y a d d r e s s a a l l .

O n o t h e r r e l a t e d s u b j e c t , t d w i t h r e l a t i v e f i l e s . I y o w a n t t p o s i t i o n t p a r t i c u l a r r e c o r d i f i l e , y o m u s t u s t h s e c o n d a r y a d d r e s s o t h a t f i l e i t h " P c o m m a n d .A g a i n , r e c o m m e n d t h a t y o u s e a n a d d e d 9 a p a r t o t h v a l u e . T h u s , i y o h a v e c o d e d :

O P E N 1 5 , 8 , 1 5O P E N 1 , 2 , 3 , " O : R E L D A T A , L , " + C H R $ ( 7 5 )

. . o p e n i n g f i l e , t h e n t p o s i t i o n t r e c o r d n u m b e r f i v e , I ' ds u g g e s t :

P R I N T # 1 5 , " P " + C H R $ ( 9 9 ) C H R $ ( 5 ) C H R $ ( 0 ) + C H R $ ( 1 )

T h s e c o n d a r y a d d r e s s f o t h f i l e i s t h r e e , a s s h o w n i t h O P E N 1 , 2 , 3 . . s t a t e m e n t . B u I ' s u g g e s t t h a t y o u r p o s i t i o nc o m m a n d a d 9 a s h o w n t s p e c i f y a s e c o n d a r y a d d r e s s o 9 9

D y o n e e d t c a r e f u l l y d a l t h i s , e v e r y t i m e ? h o n e s t l y d o n ' tk n o w f o s u r e . S o m e t i m e s e v e r y t h i n g s e e m s t w o r k w h e n y o d o n ' t w o r r y a b o u t t h e e x t r a b i t s . B u w h e n y o c a r e f u l l y t r a c eB a s i c c o d e ( e s p e c i a l l y t h e 4 . 0 a n 7 . v e r s i o n s ) , y o s e t h a tC o m m o d o r e a l w a y s p u t s t h e s e e x t r a v a l u e s i n M a y b e t h e yk n o w s o m e t h i n g .

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

( C o n t ' d f r o m p a g e 4 3 8 S M i n t o R 2 R 2 = 0 0 0 0 0 0 1 1

C M P R 2 - M 1 ( c a r r y c l e a r )S L R 1 R 0 0 0 0 1 0 0 0

M 0 0 0 0 0 0 0 0

N o w c a s t o p , b e c a u s e a l e i g h t b i t s o M h a v e b e e np r o c e s s e d .

H e r e i h o t h i s p r o c e s s l o o k s i a s s e m b l e r . T c o m p a r e R a n M 1 s u b t r a c t i u s e d . T h r e s u l t o t h i s s u b t r a c t i s a v e di r e g i s t e r s a n Y s t h a t t h s u b t r a c t d o e s n o h a v e t b r e p e a t e d , t h u s s a v i n g a f e w c y c l e s .

D L O O P

S K I P S A V E

M M R R

C o n c l u s i o n

E Q A S R O R O R O S E L D S B T A L D S B T A B C S T S T E Q R O R O L D B N L D B N R T H E H E H E H E

M M M R

R M 1 + 1

; s a v e l o b y t eR M

; s a v e h i g h b y t eS K I P S A V ER + ; s t o r e s a v e d b y t e sR ; i R

R 1 + 1 ; s h i f t c a r r y f r o mR ; s u b t r a c t i n t o R M D L O O PM D L O O P

0 0 0 50 0 2 B0 0 0 00 0 0 0

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

W h e r e w i l l t h e s e r o u t i n e s c o m e i h a n d y ? W e l l , f o s t a r t e r s , h e r ea r s o m e i d e a s .

- G r a p h i c s p r o g r a m s , f o c a l c u l a t i n g t h e p o s i t i o n o d o t , p l o t t i n gl i n e , o d r a w i n g c i r c l e , o d r a w i n g c i r c l e .

- C o m p i l e r s , f o c a l c u l a t i n g m e m o r y n e e d e d f o a r r a y s , o f o f i n d i n g s p e c i f i c e l e m e n t i a a r r a y . A l s o g o o d f o f a s t i n t e g e rm u l t i p l y / d i v i d e s .C a l c u l a t i n g p r i m e n u m b e r s .

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

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

Page 48: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 48/84

I n t e r f a c i n g a n C o n t r o l l i n gt h A r m a t r o n R o b o t

J . J . B a r b a r e l l oE n g l i s h t o w n , N

. t h e o r i g i n a l A r m a t r o n f r o m R a d i o S h a c k w a b o t h a g o n y a n e c s t a c y

F o t h o s e o u i n t e r e s t e d i e x p e r i m e n t i n g w i t h r o b o t i c s , t h o r i g i n a l A r m a t r o n f r o m R a d i o S h a c k w a b o t h a g o n y a n e c s t a c y . S t i l l a v a i l a b l e , a r m a t r o n i l o c o s t , f u l l y f u n c t i o n i n gr o b o t a r w i t h s i d e g r e e s o f r e e d o m ( m e a n i n g t h e r e a r e s i d i f f e r e n t p o r t i o n s o t h a r m w h o s e m o v e m e n t c a n b e c o t r o l l e d ) . F o r o b o t i c s e x p e r i m e n t a t i o n i t s e r i o u s s h o r t c o m i n g si n c l u d e t h e i n a b i l i t y t o l i f t a n y t h i n g o m e a s u r a b l e w e i g h t a n i t t o t a l l y m e c h a n i c a l c o n t r o l s . W h i l e m a n y d i f f e r e n t a r t i c l e s a p e a r e d d e s c r i b i n g m o d i f i c a t i o n s t a l l o w c o m p u t e r l i n k u p o A r m a t r o n , a l ( i n c l u d i n g o n d i d ) r e q u i r e d a s u b s t a n t i a l a m o u n to m e c h a n i c a l s k i l l .

T h e s e p r o b l e m s h a v e b e e n o v e r c o m e i n e w e r v e r s i o n c a l l e dM o b i l e A r m a t r o n . T h i s u n d e r $ 4 0 . 0 0 r o b o t h a e n o u g h p o w e r t l i f t i t e m s i t h o n p o u n d r a n g e w h i l e r e t a i n i n g s i d e g r e e s o f r e e d o m . B e s t o a l l , i i e l e c t r i c a l l y c o n t r o l l e d . A i t n a m ei m p l i e s t h r o b o t c a m o v e o i t t w w h e e l s . O t h e n e g a t i v es i d e , t h e l b o w j o i n t i n o c o n t r o l l a b l e ( b u t y o c a n m a n u a l l ym o v e i t ) .

I t h t h o u g h t o e x p e r i m e n t i n g w i t h c o m p u t e r c o n t r o l l e dr o b o t i c s d e v i c e i a p p e a l i n g , t h i s p r o j e c t i f o y o u . T h p r o j e c tc o n s i s t s o s i m p l e i n t e r f a c e a n c o m p r e h e n s i v e c o n t r o lp r o g r a m f o t h C - 6 4 . I n c l u d i n g t h e c o s t o t h r o b o t , t h t o t a lp r o j e c t c o s t s h o u l d b e a r o u n d $ 6 0 . 0 0 .

T h I n t e r f a c e

M o b i l e A r m a t r o n h a c o n t r o l m o d u l e t h a t i s i m p l y s e r i e s o s w i t c h e s . I c a s e l e c t o n o f o u r d i r e c t i o n s ( f o r w a r d , b a c k , l e f ta n r i g h t ) , a r u p a r d o w n , w r i s t u p , w r i s t d o w n , w r i s t t u r na n f i n g e r s o p e n / c l a m p . T h r o b o t i p o w e r e d b f o u r s i z eb a t t e r i e s t h a t p r o v i d e p l u s a n d m i n u s t h r e e v o l t s f o t h i n t e r n a lm o t o r s . B c h a n g i n g t h p o l a r i t y o v o l t a g e a p p l i e d , a l t e r n a t i n gf u n c t i o n s ( s u c h a a r u a n a r m d o w n ) a r e o b t a i n e d . T h c o n t r o l m o d u l e c a a c t u a t e t h e l e f t w h e e l , t h r i g h t w h e e l , t h a r m o v e m e n t , t h w r i s t m o v e m e n t , a n d t h w r i s t t u r n / f i n g e r s .I t s e v e n c o n t r o l l i n e s i n c l u d e o n f o e a c h o t h f i v e m o t i o n sj u s t m e n t i o n e d p l u s o n e a c h f o p o s i t i v e a n n e g a t i v e v o l t a g e .

A s h o w n i t h s c h e m a t i c d i a g r a m o F i g u r e 1 t h i n t e r f a c e i s t r a i g h t f o r w a r d d e s i g n t h a t r e p l a c e s t h e c o n t r o l m o d u l e s w i t c h e s

w i t h s e v e n l o w c u r r e n t r e l a y s . T h e s e r e l a y s a r a c t i v a t e d b s e v e n t r a n s i s t o r s w h i c h a r i t u r n c o n t r o l l e d b y s e v e n o t h e i g h t a v a i l a b l e C - 6 4 u s e r p o r t l i n e s . L o c u r r e n t r e l a y s i n s u r et h a t t h 1 0 m i l l i a m p m a x i m u m a l l o w a b l e c u r r e n t d r a i n f r o mt h u s e r p o r t i n o e x c e e d e d .

F i g u r e 1 S c h e m a t i c D i a g r a m

S , O A _ W I R E SC O N T R O L L E D .M O D U L E

O B . L U C

C o n s t r u c t i o n

B e g i n c o n s t r u c t i o n b f a b r i c a t i n g d o u b l e d s i d e d p r i n t e d c i r c u i tb o a r d ( P C B ) u s i n g t h c i r c u i t p a t t e r n s s h o w n i F i g u r e 2 I y o p r e f e r , y o c a f a b r i c a t e a s i n g l e s i d e d P C b e l i m i n a t i n g t h et o c i r c u i t p a t t e r n . I n t h i s i n s t a n c e , y o w i l l h a v e t c o n n e c t

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

Page 49: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 49/84

j u m p e r w i r e b e t w e e n h o l e a n c o n n e c t o r p i v o l t s ) .W h i l e t h i s m e t h o d d o e s n o p r o v i d e a m u c h r i g i d i t y ( o n l y h a l fa m a n y c o n n e c t o r p i n s s o l d e r e d t t h P C B ) , i i s o m e w h a t l e s si n t i m i d a t i n g . I y o o p f o t h d o u b l e s i d e d P C B , b e s u r e t i n s e r t s h o r t l e n g t h o w i r e i n t o h o l e a n s o l d e r i t t h p a d so e i t h e r s i d e o t h P C B . T h i s r e p l a c e s t h w i r e j u m p e r u s e d o t h s i n g l e s i d e d v e r s i o n .

L o c a t i o n o w i r e s o C o n t r o l l e r P B o a r d

( 6 C - L A r f A O & l u E I M T E K . F A . C E "

C Q O O O O O

B l l l l l l I F i g u r e 2 P L a y o u t

M o u n t t h c o m p o n e n t s o t h P C a s h o w n i F i g u r e 3 b e i n gs u r e n o t t a p p l y e x c e s s i v e h e a t d u r i n g t h e s o l d e r i n g p r o c e s s .W h e n a l c o m p o n e n t s h a v e b e e n s o l d e r e d i p l a c e , s l i d e t h c o n n e c t o r o n t o t h e d g e o t h b o a r d s t h e p i n s a r e o v e r t h e d g e b o a r d p a d s . S o l d e r e a c h p a t i t a s s o c i a t e d c o n n e c t o r p i n .

P l a c e t h e c o n t r o l l e r m o d u l e f a c e d o w n a n d r e m o v e t h s i s c r e w s h o l d i n g i t o g e t h e r . R e m o v e t h r e a r c a s e h a l f a n n o t et h P C h e l d i p l a c e b s i n g l e s c r e w . R e m o v e t h a t s c r e w a n t h P C B . T u r n t h P C o v e r ( c i r c u i t s i d e ) a n n o t e t h e s e v e nw i r e s s o l d e r e d t t h u p p e r e d g e . S t a r t i n g f r o m t h l e f t t h e y a r b l a c k , b r o w n , r e d , p i n k , y e l l o w , g r e e n a n b l u e . U n s o l d e r t h w i r e s f r o m t h P C a n d i s c a r d t h e c o n t r o l l e r m o d u l e . S o l d e rt h e s e w i r e s t t h s e v e n r e m a i n i n g h o l e s a s h o w n i F i g u r e 3 T h i s c o m p l e t e s c o n s t r u c t i o n .

i i m i i i m

D o u b l e S i d e d : W i r e t h r o u g h h o l e s o l d e r e d t p a d s o b o t hs i d e s .

S i n g l e S i d e d : W i r e j u m p e r s o l d e r e d t p a o o t h e r s i d e a n P i ( s e e d o t t e d l i n e ) .

F i g u r e 3 C o m p o n e n t P l a c e m e n t

U s

I n s t a l l f o u r s i z e b a t t e r i e s i t h M o b i l e A r m a t r o n . C o n n e c t t h i n t e r f a c e t t h u s e r p o r t ( r e a r l e f t o t h C - 6 4 ) s u c h t h a t t h c o m p o n e n t s i d e o t h P C i o t o p . P o w e r u p y o u r C - 6 4 a n d , i y o h a v e n ' t a l r e a d y , t y p e i t h p r o g r a m s h o w n i t h P r o g r a m

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

Page 50: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 50/84

L i s t i n g a n s a v e i u s i n g t h n a m e R O B O T . W h e n y o R U t h p r o g r a m t h m a i n m e n u w i l l a p p e a r w i t h t h f i v e o p t i o n s L e a r n ,D o S a v e , R e t r i e v e a n Q u i t ( E n d ) . T b e t t e r u n d e r s t a n d w h a tt h e s e o p t i o n s d o a n d h o t h p r o g r a m o p e r a t e s , l e t ' s d i s c u s se a c h o t h e m s e p a r a t e l y .

L e a r n a l l o w s y o t " t e a c h " t h e r o b o t t p e r f o r m s e r i e s o f u n c t i o n s i s p e c i f i c m a n n e r . T o g e t h e r t h e s e f u n c t i o n s f o r mp r o c e d u r e . O n c e c r e a t e d , t h p r o c e d u r e c a b s a v e d , r e t r i e v e d ,a d d e d t a n e x e c u t e d a a n t i m e . S e l e c t L e a r n b y p r e s s i n g F l T h L e a r n s c r e e n d e f i n e s t h k e y s t s e l e c t t h t w e l v e p o s s i b l em o v e m e n t f u n c t i o n s . T p e r f o r m o n o t h e f u n c t i o n s d e s c r i b e d ,p r e s s t h e a s s o c i a t e d k e y . T e n d m o v e m e n t , p r e s s a n k e y . T h p r o g r a m r e m e m b e r s e a c h f u n c t i o n s e l e c t e d a n t h e l e n g t h o t i m e t h e f u n c t i o n i p e r f o r m e d . T e n t h t e a c h i n g s e s s i o n ,p r e s s t h e F l k e t r e t u r n t t h m a i n m e n u .

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

S a v e a l l o w s y o t c o p y p r o c e d u r e i m e m o r y t a d i s k f i l eu s i n g a n a m e t h a t y o s p e c i f y . S e l e c t S a v e b y p r e s s i n g F 5 I t h e r e i n p r o c e d u r e i m e m o r y , y o a r s i n f o r m e d a n a s k e dt p r e s s a n k e t r e t u r n t t h m a i n m e n u . I y o s p e c i f y t h n a m e o f i l e t h a t a l r e a d y e x i s t s , y o a r a s k e d i y o u w a n t t c o n t i n u e . C o n t i n u i n g e r a s e s t h e e x i s t i n g d i s k f i l e a n r e p l a c e s i w i t h t h e c u r r e n t m e m o r y c o n t e n t s .

R e t r i e v e c o p i e s t h e c o n t e n t s o d i s k f i l e i n t o m e m o r y , e r a s i n ga n p r o c e d u r e i m e m o r y a t h t i m e . S e l e c t R e t r i e v e b p r e s s i n g F 7 I y o s p e c i f y t h n a m e o f i l e t h a t d o e s n ' t e x i s t ,y o w i l l b s i n f o r m e d a n a s k e d t p r e s s a n k e t r e t u r n t t h m a i n m e n u . I m e m o r y a l r e a d y c o n t a i n s p r o c e d u r e y o w i l l b s a d v i s e d a n a s k e d i y o w a n t t c o n t i n u e . C o n t i n u i n ge r a s e s t h e c u r r e n t m e m o r y c o n t e n t s a n r e p l a c e s i w i t h t h p r o c e d u r e s a v e d o d i s k .

Q u i t i s e l e c t e d b p r e s s i n g b o t h t h C T R L a n k e y s . T h i se n d s t h p r o g r a m , i n s u r e s a l l f i l e s a r e c l o s e d a n p r i n t sm e s s a g e " T r e - e n t e r , t y p e G O T O 5 0 " . I y o e n p r e m a t u r e l yw i t h o u t s a v i n g p r o c e d u r e i m e m o r y , e x e c u t i n g G O T O 5 a l l o w s y o t r e - e n t e r t h p r o g r a m w i t h m e m o r y i n t a c t . Y o c a t h e n s a v e m e m o r y c o n t e n t s t d i s k f i l e .

E x p e r i m e n t i n g T i p s

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

Y o s h o u l d a l w a y s s t a r t p r o c e d u r e w i t h t h r o b o t i t h s a m ei n i t i a l p o s i t i o n . T d t h i s , s a v e a n p r o c e d u r e i m e m o r y a n e n t e r t h L e a r n m o d e . P e r f o r m t h e f u n c t i o n s n e c e s s a r y t g e t h e r o b o t t t h i n i t i a l p o s i t i o n . T h e n r e t r i e v e t h p r o c e d u r e y o w i s h t p e r f o r m .

E a c h p r o c e d u r e s t e p i s a v e d a m o v e m e n t f u n c t i o n n u m b e ra n t i m e c o u n t . T h e m o v e m e n t f u n c t i o n i s p e c i f i e d b n u m b e r b e t w e e n o n e a n d t w e l v e ( c o r r e s p o n d i n g t t h t w e l v ef u n c t i o n d e f i n i t i o n s l i s t e d o t h L e a r n s c r e e n ) . T h t i m e c o u n ti n u m b e r t h a t i n d i c a t e s h o l o n g t h e f u n c t i o n s h o u l d b p e r f o r m e d . A t h r o b o t ' s b a t t e r i e s d r a i n , t h t i m e c o u n t m a p r o d u c e s l i g h t l y d i f f e r e n t r e s u l t s , s i n c e t h e r o b o t w i l l n o w m o v ea s l o w e r s p e e d . F o p r e c i s e p r o c e d u r e s , t h e n , a l w a y s u s ef r e s h s e t o f b a t t e r i e s .

L i s t O M a t e r i a l s

R 1 - R 7 : 1 0 , 0 0 0 o h m , 1 / w a t t f i x e d r e s i s t o r ( s u c h a s R a d i oS h a c k P / 2 7 1 - 1 3 3 5 ) .

Q 1 - Q 7 : 2 N 2 2 2 2 A N P S i l i c o n T r a n s i s t o r ( s u c h a R a d i o S h a c kP / 2 7 6 - 2 0 0 9 ) .

K 1 - K 7 : v o l t , 2 5 o h c o i l r e e d r e l a y w i t h a m S P S Tc o n t a c t s ( R a d i o S h a c k P / 2 7 2 - 2 3 2 ) .

S O S t a n d a r d u s e r p o r t 1 p o s i t i o n f e m a l e c o n n e c t o r w i t h0 . 1 5 6 " s p a c i n g . N O T E - R a d i o S h a c k P / 2 7 6 - 1 5 5 1( 2 2 p o s i t i o n c o n n e c t o r ) c a b e u s e d a a a l t e r n a t e b c u t t i n g i t a 1 p o s i t i o n l e n g t h .

P C P r i n t e d C i r c u i t B o a r d ( s e e t e x t ) .R O B O T : M o b i l e A r m a t r o n ( R a d i o S h a c k P / 6 0 - 2 3 9 6 ) .

M I S C E L L A N E O U S : S o l d e r , s h o r t l e n g t h o w i r e ( s e e t e x t ) , f o u rc e l l b a t t e r i e s .

N O T E : d i s k c o n t a i n i n g t h R O B O T p r o g r a m p l u s s e r i e s o d e m o n s t r a t i o n p r o c e d u r e s i a v a i l a b l e f o $ 6 . 0 0 U ( $ 6 . 3 6 f o N e J e r s e y r e s i d e n t s ) f r o m B & B T C , R D # 1 , B o 2 4 1 H , T e n n e n tR o a d , M a n a l a p a n , N J 0 7 7 2 6 .

M o b i l e A r m a t r o n P r o g r a m

N I

C G D J

D I

H H

D C

I

D K

D H N I A

r 6 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *2 r e m * * m o b i l e a r m a t r o n s o f t w a r e *

r e * n a m e : r o b o t * 4 r e m * ( c 1 9 8 6 , j j *

r e * m a n a l a p a n , n 0 7 7 2 6 * r e * 8 6 0 9 2 8 * r 6 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

1 0 d i m a ( 1 2 ) , b ( 2 5 0 , 1 ) : g o s u b 3 0 0 0: g o s u b 5 0 0 0 : p o k e 5 6 5 7 9 , 2 5 5 : p o k e 5 6 5 7 7 , 0

2 a ( 1 ) 3 8 : a ( 2 ) 7 0 : a ( 3 ) 3 6 : a ( 4 ) 3 : a ( 5 ) 3 3 : a ( 6 ) 6

3 a ( 7 ) 4 0 : a ( 8 ) 7 2 : a ( 9 ) 4 8 : a ( 1 0 ) 8 : a ( 1 1 ) 6 6 : a ( 1 2 ) 6

4 s s = " 1 2 3 4 5 6 7 8 9 0 - : r c $ c h r $ ( 5 ) c h r $ ( 1 8 )

5 g o s u b 3 0 0 0 : r o 6 : c o 1 0 : g o s u b 5 0 5 0: p r i n t r c $ ; " m a i n m e n u "

6 p r i n t : p r i n t t a b ( 1 2 ) ; " f > : l e a r n : p r i n t: p r i n t t a b ( 1 2 ) ; " < f 3 > : d o "

7 p r i n t : p r i n t t a b ( 1 2 ) ; " f > s a v e " : p r i n t: p r i n t t a b ( 1 2 ) ; " f > r e t r i e v e "

8 p r i n t : p r i n t t a b ( 1 0 ) ; " < c t r l > q : q u i t ( e n d )9 r 1 9 : c o 1 0 : g o s u b 5 0 5 0 : p r i n t " w h i c h . . 1 0 0 g e t s r $ : i f s r $ = " t h e n 1 0 1 1 s a s c ( s r $ ) - 1 3 2 : i f s = - 1 1 5 t h e n s 1 2 i s r < 1 o s r > 5 t h e n 9 1 3 o s g o s u b 2 0 0 , 3 0 0 , 4 0 0 , 6 0 0 , 8 0 0

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

Page 51: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 51/84

N K

G K P N D B K L

G P

M G P C P H M J

J

P C F

O E

J F

C A

J M A L P

A

O L E

I F

M J

B

G B

1 4 g o t o 5 2 0 0 g o s u b 1 0 0 0 : j = b ( 0 , 0 ) : x 0 : r e m * * * l e a r n

m o d e * * 2 1 0 g e t a $ : i f a $ = " t h e n 2 1 2 2 i a s c ( a $ ) 1 3 t h e n r e t u r n2 3 0 g o s u b 2 0 0 0 : i f t h e n p o k e 5 6 5 7 7 , 0

: g o t o 2 1 02 4 p o k e 5 6 5 7 7 , a ( i )2 5 g e a $ : i f a $ " t h e n + 1 : g o t o 2 5 2 6 p o k e 5 6 5 7 7 , 02 7 : b ( j , O ) i : b ( j , 1 ) x : 0 : b ( 0 , 0 )2 8 r 1 0 : c o 5 : g o s u b 5 0 5 0

: p r i n t m i d $ ( s s $ , i , 1 ) ; : g o t o 2 1 3 0 r e m * * d p r o c e d u r e3 1 0 p r i n t c h r $ ( 1 4 7 ) : p r i n t b l $ : p r i n t " [ 1 3 s p c s ] d o

p r o c e d u r e " : p r i n t b l $ : p r i n t3 2 i b ( 0 , 0 ) t h e n p r i n t " n p r o c e d u r e i

m e m o r y . " : g o t o 3 7 3 3 p r i n t " p r e s s a n k e t b e g i n p r o c e d u r e . "3 4 g e a $ : i f a " t h e n 3 4 3 5 p r i n t " p r o c e d u r e e x e c u t i o n i p r o g r e s s "3 5 f o t b ( 0 , 0 ) : p o k e 5 6 5 7 7 , a ( b ( i , 0 ) )3 6 0 f o r j t b ( i , 1 )3 6 5 g e t a $ : i f a $ = " t h e n 1 : n e x t3 7 p o k e 5 6 5 7 7 O f o r t 5 0 0 ' n e x t i n e x t

: p r i n t " p r o c e d u r e d o n e . "3 7 r 1 8 : c o 0 : g o s u b 5 0 5 0 : p r i n t " p r e s s a n k e

t r e t u r n t t h m e n u . "3 8 g e a $ : i f a " t h e n 3 8 3 9 r e t u r n4 0 r e m * * s a v e p r o c e d u r e4 1 p r i n t c h r $ ( 1 4 7 ) : p r i n t b l $ : p r i n t " [ 1 3 s p c s ] s a v e

p r o c e d u r e " : p r i n t b l $ : p r i n t4 2 i b ( 0 , 0 ) t h e n p r i n t " n p r o c e d u r e i

m e m o r y . " : g o t o 4 8 4 3 i n p u t " e n t e r f i l e n a m e t s a v e " ; f 4 4 0 o p e n 1 , 8 , 1 5 : o p e n 2 , 8 , 2 , " @ 0 : " + f $ + " , s , r "

: i n p u t # 1 , e , e d $ , t n , b l : c l o s e : c l o s e4 5 i 6 t h e n 5 0 4 6 p r i n t " f i l e e x i s t s , c o n t i n u e ( y / n ) . . "

: g o s u b 1 5 0 04 7 i a y " t h e n 5 0 4 8 p r i n t " a b o r t , p r e s s a n k e y . . 4 9 g e a $ : i f a " t h e n 4 9 4 9 r e t u r n5 0 0 o p e n 2 , 8 , 2 , " @ 0 : " + f $ + " , s , w " : p r i n t

: p r i n t " s a v i n g p r o c e d u r e , w a i t . "5 1 0 f o r i 0 t o b ( 0 , 0 ) : p r i n t # 2 , b ( i , 0 ) : p r i n t # 2 , b ( i , 1 )

: n e x t i : c l o s e 2 : c l o s e 1 5 2 p r i n t : p r i n t " p r o c e d u r e s a v e d , p r e s s a n k e y . "

: g o t o 4 9 6 0 r e m * * r e t r i e v e p r o c e d u r e6 1 0 p r i n t c h r $ ( 1 4 7 ) : p r i n t b l $ : p r i n t " [ 1 1 s p c s ] r e t r i e v e

p r o c e d u r e " : p r i n t b l $ : p r i n t6 2 i b ( 0 , 0 ) t h e n 6 5 6 3 p r i n t " p r o c e d u r e i m e m o r y , c o n t i n u e ( y / n ) ? "

: g o s u b 1 5 0 06 4 i a t h e n p r i n t " a b o r t . ; : g o t o 7 0 6 5 i n p u t " e n t e r f i l e n a m e t r e t r i e v e " ; f 6 6 0 o p e n 1 , 8 , 1 5 : o p e n 2 , 8 , 2 , " @ 0 : " + f $ + " , s , r "

: i n p u t # 1 , e , e d $ , t n , b l : c l o s e : c l o s e6 7 i t h e n 7 2

I D C

I

J P

C B A

G C

I H M A

O

H C

M I

M F

A O F E H I

F F C D C H

I K

M D M

I A O N F H

M N A

6 8 i 6 t h e n p r i n t " f i l e d o e s n ' t e x i s t . " T h T r a n s a c t o r 4

6 9 p r i n t " p r e s s a n k e y . "7 0 g e a $ : i f a " t h e n 7 0 7 1 r e t u r n7 2 p r i n t " r e t r i e v i n g p r o c e d u r e , w a i t . "

: o p e n 2 , 8 , 2 , " @ 0 : " + f $ + " , s , r "7 3 0 i n p u t # 2 , b ( 0 , 0 ) : i n p u t # 2 , b ( 0 , 1 )7 4 f o t b ( 0 , 0 ) : i n p u t # 2 , b ( i , 0 ) : i n p u t # 2 , b ( i , 1 )

: n e x t : c l o s e 27 5 p r i n t " r e t r i e v a l c o m p l e t e . ; : g o t o 6 9 8 0 r e m * * e n 8 1 r 5 : c o 1 0 : g o s u b 5 0 5 0 : f o r t 1

: p r i n t t a b ( 1 0 ) ; b $ : n e x t8 2 r 1 0 : c o 0 : g o s u b 5 0 5 0 : c l o s e 1 : c l o s e 28 3 p r i n t " p r o g r a m e n d e d , t r e - e n t e r ,

t y p e g o t o 5 " 8 4 p r i n t e n d1 0 0 0 r e m * * l e a r n m o d e s c r e e n1 0 0 5 p r i n t c h r $ ( 1 4 7 ) : p r i n t b l $1 0 0 6 p r i n t " [ s p c s j m o b i l e a r m a t r o n r o b o t l e a r n

m o d e [ 3 s p c s ] " : p r i n t b l $ : p r i n t1 0 0 7 p r i n t " [ 4 s p c s j p r e s s k e t d f u n c t i o n , p r e s s

a n o t h e r k e t s t o p . " ;1 0 0 8 p r i n t " p r e s s < f 1 > t o r e t u r n t m e n u . " : p r i n t1 0 0 9 p r i n t " [ s p c s ] k e y f u n c t i o n " : p r i n t " [ 4 s p c s ]

■ ■

1 0 1 0 p r i n t t a b ( 5 ) ; " f o r w a r d: p r i n t t a b ( 5 ) ; " b a c k w a r d "

1 0 2 0 p r i n t t a b ( 5 ) ; " 3 r i g h t f o r w a r d t u r n: p r i n t t a b ( 5 ) ; " l e f t f o r w a r d t u r n "

1 0 3 0 p r i n t t a b ( 5 ) ; " a r u p : p r i n t t a b ( 5 ) ; " = a r m d o w n

1 0 4 0 p r i n t t a b ( 5 ) ; " w r i s t u p : p r i n t t a b ( 5 ) ; " w r i s t d o w n "

1 0 5 0 p r i n t t a b ( 5 ) ; " 9 = h a n d t u r n ": p r i n t t a b ( 5 ) ; " f i n g e r s m o v e i n / o u t "

1 0 6 0 p r i n t t a b ( 5 ) ; " r i g h t r e v e r s e t u r n1 0 7 0 p r i n t t a b ( 5 ) ; " - l e f t r e v e r s e t u r n1 0 8 0 r e t u r n1 5 0 0 g e a $ : i f a " t h e n 1 5 0 01 5 1 0 a c h r $ ( a s c ( a $ ) a n 2 2 3 )1 5 2 0 i a $ < > " y a n a $ < > " t h e n 1 5 0 01 5 3 0 p r i n t a $ : r e t u r n2 0 0 0 r e m * * p o s i t i o n i s t r i n g2 0 1 0 f o t 1 2 : i f a $ m i d $ ( s s $ , i , 1 ) t h e n 2 0 3 02 0 2 0 n e x t : i O : r e t u r n2 0 3 0 r 1 0 : c o 5 : g o s u b 5 0 5 0 : p r i n t r c $ ; a $ : r e t u r n3 0 0 0 r e m * * f o r m a t s c r e e n3 0 1 0 p o k e 5 3 2 8 0 , 6 : p o k e 5 3 2 8 1 , 6 : p r i n t c h r $ ( 1 4 7 )

: b c h r $ ( 5 ) c h r $ ( 1 8 )3 0 2 0 b l b [ 3 9 s p c s ] " : p r i n t b l 3 0 3 0 p r i n t b $ ; " m o b i l e a r m a t r o n r o b o t c o n t r o l l e r3 0 4 0 p r i n t b l $3 0 5 0 b [ 2 s p c s ] "3 0 6 0 r e t u r n5 0 0 0 r e m * c u r s o r c o n t r o l u s i n g p l o t k e r n e l ( $ f f f O )5 0 1 0 d a t a 1 6 2 , 0 , 1 6 0 , 0 , 2 4 , 3 2 , 2 4 0 , 2 5 5 , 9 6 , 9 9 95 0 2 0 a 4 9 3 0 0 : s c5 0 3 0 r e a d b : i f b < > 9 9 9 t h e n p o k e a , b : a +

: g o t o 5 0 3 05 0 4 0 r e t u r n5 0 5 0 p o k e s 3 c o l : p o k e s + 1 r o w : s y s 5 0 6 0 r e t u r n

J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 52: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 52/84

S y m l i s t e r L i s tF o r m a t t e r f o S y m a s s

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

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

S y m a s s i f i r s t c l a s s a s s e m b l e r f o t h C - 6 4 b u o n f e a t u r e i n o t i c e a b l y a b s e n t . Y o c a n n o t i n d e n t t h e o p c o d e s t m a k e t h l a b e l s m o r e e a s i l y i d e n t i f i e d . T h i s i n o t t h e " f a u l t " o S y m a s s b u r a t h e r s t e m s f r o m t h f a c t t h a t t h n o r m a l B a s i c o p e r a t i n gs y s t e m i u s e d t m a n i p u l a t e t h p r o g r a m . W h e n l i n e i c r u n c h e d , t h s p a c e s b e t w e e n t h l i n e n u m b e r a n w h a t f o l l o w sa r a l w a y s r e m o v e d . O l i s t i n g , s i n g l e s p a c e i u n i f o r m l yi n s e r t e d a f t e r e a c h l i n e n u m b e r t m a k e t h p r o g r a m m o r e" r e a d a b l e " . B u w h e n w o r k i n g w i t h a s s e m b l y c o d e i i v e r yh e l p f u l t h a v e t h l a b e l s s e p a r a t e d t t h l e f t o t h o p c o d e s .T h l a c k o f t h i s f o r m a t t i n g c a l e a d , a t h l e a s t , t e y s t r a i n o e v e n w o r s e , t i n a d v e r t e n t d u p l i c a t i o n o f l a b e l s . S y m l i s t e r s o l v e st h i s p r o b l e m .

T h i s s h o r t u t i l i t y r o u t i n e , w h e n a s s e m b l e d w i t h S y m a s s 3 . 1 3 a n e n a b l e d , w i l l t i d y u y o u r c o d e b y a u t o m a t i c a l l y i n d e n t i n g e a c hl i n e t h a t b e g i n s w i t h 6 5 1 0 m n e m o n i c . B e c a u s e S y m l i s t e r u s e st h I Q P L O P v e c t o r ( $ 3 0 6 ) , i a l s o w o r k s w i t h l i s t i n g s t p r i n t e ri t h C M m o d e . W i t h S y m l i s t e r a c t i v e , e n t e r y o u r a s s e m b l yc o d e a u s u a l . Y o n e e d n o t i n d e n t o l i n e s s t a r t i n g w i t ho p c o d e s . W h e n t h p r o g r a m i l i s t e d , t h e y w i l l b i n d e n t e d .W h e n e d i t i n g , i i m o s t s e n s i b l e t a l i g n t h o p c o d e s a p p e a r i n ga f t e r t h l a b e l s s i n c e t h e i n d e n t s a r e f i x e d f o t h e o t h e r l i n e s .

S i n c e S y m l i s t e r a f f e c t s o n l y t h l i s t i n g o p r o g r a m , i d o e s n o c h a n g e t h a m o u n t o d i s k s p a c e r e q u i r e d t s t o r e t h P R f i l e .

T c o n s e r v e p r o g r a m m i n g s p a c e , t h i s u t i l i t y h a b e e n d e s i g n e dt h i d e i t h t a p e b u f f e r . I c a b e a s s e m b l e d b e l o w S y m a s s i m e m o r y b u w h e n c a l c u l a t i n g n e s t a r t i n g a d d r e s s , b s u r e t i n c l u d e a e x t r a 1 8 b y t e s o s t a l l o w f o t h S y m a s s s y m b o lt a b l e r e q u i r e d d u r i n g i t a s s e m b l y . A d t h e f o l l o w i n g l i n e s t op r o t e c t t h e f o r m a t t e r f r o m b e i n g o v e r w r i t t e n b n e S y m a s ss y m b o l t a b l e s a f t e r i i e n a b l e d :

1 4 0 1 l d a # < v e c s e t ; p r o t e c t c o d e1 4 0 2 s t $ 3 f r o m s y m a s s1 4 0 3 I d # > v e c s e t1 4 0 4 s t $ 3 1 4 0 5 j s $ a 6 5 e r e s e t m e m o r y p o i n t e r s

O c o u r s e , n e e n a b l e a n d i s a b l e S Y a d d r e s s e s w i l l h a v e t b c a l c u l a t e d f o a l t e r n a t e l o c a t i o n s . F o e x a m p l e , i y o l o a dS y m a s s f i r s t , i w i l l r e s i d e a $ 9 5 2 C a n S y m l i s t e r w i l l a s s e m b l ep r o p e r l y w i t h s t a r t i n g a d d r e s s o $ 9 4 0 0 . T h e n t e n a b l e ,S Y S 3 7 8 8 8 , a n d i s a b l e , S Y S 3 7 8 9 1 ( e n a b l e 3

T h i s r o u t i n e a u t o m a t i c a l l y a d j u s t s f o v a r i a t i o n s i t h e l o a da d d r e s s o S y m a s s . I y o i n s t a l l a n o t h e r u t i l i t y ( e g . C - 6 4 T i n yA i d ) b e f o r e S y m a s s t h s t a r t i n g a d d r e s s c h a n g e s . T h i s a d j u s tm e n t i i m p o r t a n t b e c a u s e t h r o u t i n e c a l l s t w p r o c e d u r e sw i t h i n S y m a s s i t s e l f W O R D a n d F I N D O P . v e r y u s e f u l r e s u l to f t h i s i t h a t S y m l i s t e r w i l l a u t o m a t i c a l l y d e t e c t s p e l l i n g e r r o r si o p c o d e s b y n o t i n d e n t i n g t h e m w h e n y o r e - l i s t t h l i n e . T h i sd o e s n o a p p l y t o p c o d e s o l i n e s w i t h l a b e l s .

T h p r o g r a m i w r i t t e n t a u t o m a t i c a l l y v e c t o r t w h a t e v e r w a o r i g i n a l l y i I Q P L O P , s i y o a r u s i n g a c a r t r i d g e t h a t a l t e r st h i s v e c t o r i s h o u l d c o n t i n u e t w o r k n o r m a l l y . H o w e v e r , b ec a r e f u l t d i s a b l e S y m l i s t e r w i t h t h e a p p r o p r i a t e S Y b e f o r ed i s a b l i n g y o u r o t h e r u t i l i t y .

A p r e s e n t e d h e r e , S y m l i s t e r i n d e n t s e i g h t s p a c e s . T h i s f i g u r ew o r k s v e r y w e l l w i t h U n a s s e m b l e r f i l e s g e n e r a t e d f r o m t h S T p r o g r a m t h a t c o n v e r t s t h S E d i s k f i l e s t S y m a s s c o m p a t i b l eP R f o r m . I y o f a v o r d i f f e r e n t s p a c i n g , c h a n g e t h " S P A C E S "v a r i a b l e b e f o r e a s s e m b l i n g . I S y m l i s t e r i a l r e a d y a c t i v e , y o c a c h a n g e t h s p a c i n g b P O K E t l o c a t i o n 9 1 w i t h t h d e s i r e d v a l u e .

T h i s p r o g r a m i c o m p a t i b l e w i t h T i n y A i d t m a k e i e a s y t r e v i s e t h ' A D x x x x ' l a b e l s f r o m U n a s s e m b l e r . B u t n o t e t h a t T i n yA i u s e s i t o w d i s p l a y r o u t i n e s i w i l l n o t i n d e n t t h e r e s u l t s o F I N D o C H A N G E o p e r a t i o n s . O n c e c h a n g e s a r m a d e , r e - l i s tt h l i n e s i q u e s t i o n t s e t h e m f o r m a t t e d . T h i s v e r s i o n o S y m l i s t e r i n o c o m p a t i b l e w i t h V e r i f i z e r s i n c e t h e y b o t h u s e t h t a p e b u f f e r . A s s e m b l y a $ C 0 0 0 ( c h a n g e l i n e 1 1 6 0 t $ C 0 0 0 )w o u l d b s i m p l e a l t e r n a t i v e p r o v i d e d y o a r c a r e f u l t d i s a b l ei b e f o r e S y m a s s d o e s a n a s s e m b l i n g i n t o t h i s r e g i o n . I t h i sc a s e e n a b l e i S Y S 4 9 1 5 2 a n d i s a b l e S Y S 4 9 1 5 5 .

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

Page 53: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 53/84

G O C

A -

0 C C P K M K D E 1

P B

I K E N G H D F K E

M N M

K A M J D A B F K K K F L K D K I

D O F H J G

1 0 0 0 r e m s a v e "1 0 1 0 r e m * 2 1 f e

s y m l i s t e r8 j .

S y m l i s t e r S o u r c e

' , s p e n c e r

1 0 2 0 r e i n d e n t s a l l i n e s s t a r t i n g1 0 3 0 r e w i t h 6 5 1 0 o p c o d e s1 0 4 0 r e s y m a s s m u s t b i n s t a l l e d1 0 5 0 :1 0 6 0 i f p e e k ( 7 0 0 )1 0 7 0 :

= 7 t h e n

1 0 8 0 p r i n t " * s y m a s s n o

1 1 2 0

n s t a l l e d * * 1 0 9 0 p r i n t l o a d / r u n s y m a s s f i r s t "1 1 0 0 e n 1 1 1 0 :1 1 2 0 p r i n t s y 8 2 t e n a b l e "1 1 3 0 p r i n t " s y s 8 3 t r e s t o r e p r e v i o u s l i s t v e c t o r1 1 4 0 :1 1 5 0 s y s 7 0 01 1 6 0 * = $ 0 3 3 c1 1 7 0 ;1 1 8 0 s p a c e s1 1 9 0 s r c a d =1 2 0 0 a 1 2 1 0 i q p l o p1 2 2 0 s y m p t r =1 2 3 0 r e g l s t1 2 4 0 o u t d o1 2 5 0 f i n d o p1 2 6 0 w o r d =1 2 7 0 ;1 2 8 0 j m p1 2 9 0 j m 1 3 0 0 ;1 3 1 0 j a l t e r t h l i s t1 3 2 0 v e c s e t1 3 3 0 I d 1 3 4 0 s t 1 3 5 0 I d 1 3 6 0 s t 1 3 7 0 I d 1 3 8 0 s t 1 3 9 0 I d 1 4 0 0 s t 1 4 1 0 I d 1 4 2 0 c l 1 4 3 0 a d c1 4 4 0 s t 1 4 5 0 I d 1 4 6 0 a d c1 4 7 0 s t 1 4 8 0 c l 1 4 9 0 I d 1 5 0 0 a d c1 5 1 0 s t 1 5 2 0 I d

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

$ 0 $ 5 $ 7 $ 0 3 0 6$ 0 2 b d$ a 7 1 a$ a b 4 7$ 0 0 0 0$ 0 0 0 0

v e c s e tl i s d i s

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

; e n a b l e; d i s a b l e

v e c t o r ( i q p l o p )

i q p l o pr g i q p l o p + r g # < l v e ci q p l o p# > l v e ci q p l o p + s y m p t r

# $ 9 do p f d + s y m p t r# $ 0 3o p f d

s y m p t r# $ f aw r d +s y m p t r

; p i c k u p; c u r r e n t

' l i s t 'v e c t o r

; i n s t a l l n e ' l i s t '

; v e c t o r

; c a l c a d d r o ; ' f i n d o p '; r o u t i n e

; & i n s e r t i ; c o d e b e l o w

; c a l c a d d r o ; ' w o r d '; r o u t i n e; i s y m a s s

C o d e I S y m a s s F o r m a t

D L K 0

A E

J G

P K K O D P M G M K O

N I

D M P D L L

O B P M H O C H M F L J

J L A

E C E

O O G M A E E

5

1 5 3 01 5 4 01 5 5 01 5 6 0 ;

a d s t r t

# $ 0 5w r

1 5 7 0 ; n e w r o u t i n e f o l i s t i n g1 5 8 0 l v e c1 5 9 01 6 0 0 ;1 6 1 0 r e 1 6 2 0 ;1 6 3 0 r g 1 6 4 0 ;1 6 5 0 o p s r c h1 6 6 01 6 7 0 ;1 6 8 0 w r d1 6 9 01 7 0 0 ;1 7 1 0 o p f d1 7 2 01 7 3 0 ;1 7 4 01 7 5 0 ;1 7 6 0 c o n 21 7 7 01 7 8 01 7 9 01 8 0 0 ;1 8 1 0 j r e g1 8 2 01 8 3 0 ;

c p b e

I d

j m

s t j s

j s j s

j s b c

I d

I d j s d e b n

I d b n

# $ 0 4o p s r c h

( s r c a d ) ,

r e g l s t

$ 4 c a l c a d

w o r dc a l c a d

f i n d o pj r e g

# s p a c e s

# $ 2 0o u t d o

c o n 2

$ 4 r e

; c h e c k o n l y; 1 s t w o r d

; o l i n e

; g e t l e n o ; w o r d ( $ 5 9 )

; n o t m n e m o n i c

; i n s e r t s p a c e s

; r e s t o r e y r e g

1 8 4 0 s u b r o u t i n e t o s e t u s e a r c h1 8 5 0 ; a d d r e s s ' a d ' i s y m a s s1 8 6 0 c a l c a d1 8 7 01 8 8 01 8 9 01 9 0 01 9 1 01 9 2 01 9 3 01 9 4 01 9 5 0 ;1 9 6 0 ; s y s t o1 9 7 0 l i s d i s1 9 8 01 9 9 02 0 0 02 0 1 02 0 2 02 0 3 0 ;2 0 4 0 . e n d

I d c l a d s t I d a d s t r t

$ 4

s r c a da # $ 0 0s r c a d + a

; a d d . t ; c u r r e n t; a d d r

d i s a b l e l i s t f o r m a t t e r

I d s t I d s t r t

r g i q p l o pr g i q p l o p +

; r e s t o r e l a s tv e c t o r

J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 54: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 54/84

X R E F f o t h C o m m o d o r e 6

D a v i d A r c h i b a l dF l i n t , M i c h i g a n

A i n d i s p e n s i b l e B A S I C p r o g r a m m i n g a i

W h e n I ' m w r i t i n g a B A S I C p r o g r a m , f i n d t h a t t h e r e a r e c e r t a i np r o g r a m m i n g a i d s t h a t u s e o v e r a n o v e r a g a i n . T h f a c t i s t h e s ep r o g r a m s s a v e m s m u c h t i m e a n a g g r a v a t i o n t h a t w o u l d f i n dm y s e l f h a r d p r e s s e d t g e a l o n g w i t h o u t t h e m .

O n o t h e s e i n d i s p e n s a b l e p r o g r a m s i m v a r i a b l e a n l i n en u m b e r c r o s s r e f e r e n c e p r o g r a m , X R E F . W h a t i d o e s , f o t h o s ew h a r e u n f a m i l i a r w i t h t h i s t y p e o p r o g r a m , i c r e a t e a l i s t i n g o 1 p r o g r a m l i n e s t h a t a r r e f e r e n c e d b o t h e r p r o g r a m l i n e s , a n 2 a l v a r i a b l e s h a v e b e e n u s e d , a n o w h a t p r o g r a m l i n e s t h e y a p p e a r .

L e a r n i n g t u s X r e f i q u i t e s i m p l e , s i n c e t h e r e a r o n l y t w c o m m a n d s : X R E F , a n d H E L P . T h e r e a r a l s o , o n l y t w i t e m s o s y n t a x : a n * A l t o g e t h e r , t h e r e a r e s e v e n d i f f e r e n t c o m b i n a t i o n so t h e s e c o m m a n d s a n s y n t a x , b u t I ' m s u r e y o w o n ' t h a v e a n yp r o b l e m r e m e m b e r i n g t h e m .

B u b e f o r e w g e t i n t o t h e x p l a n a t i o n s o t h e s e c o m m a n d s , l e t ' s g e t h e b a s i c s o r u n n i n g X r e f o u o t h w a y . A l o t h c o m m a n d s l i s t e dh e r e m u s t b a t h b e g i n n i n g o t h c o m m a n d l i n e . I t h e y a r n o t ,y o w i l l g e S Y N T A X E R R O R . T h e s e c o m m a n d s w i l l w o r k o n l y i d i r e c t m o d e ; t h e y w i l l n o w o r k f r o m w i t h i n a B a s i c p r o g r a m . A l s p a c e s i t h c o m m a n d l i n e w i l l b i g n o r e d . T h o u t p u t , w h i c h c a b s e n t t t h s c r e e n o y o u r p r i n t e r , i l i s t e d i n n u m e r i c a l o a l p h a b e t i c a l o r d e r . F o t h i s p r o g r a m t d a n y t h i n g , y o u m u s t o c o u r s e h a v e B a s i c p r o g r a m i m e m o r y . T p a u s e t h l i s t i n g , p r e s sa n h o l d d o w n t h " P k e y , u n t i l t h l i s t i n g s t o p s . Y o c a r e s t a r tt h l i s t i n g b p r e s s i n g a n k e ( j u s t c l o s e y o u r e y e s , a n h i a n k e t h a t c a t c h s y o u r f a n c y ) . Y o c a a b o r t t h l i s t i n g , b p r e s s i n g R U N /S T O P .

A n d n o w t h a t y o h a v e c o m m i t t e d a l t h a t t m e m o r y , w c a s t a r to t h c o m m a n d s .

I t h e f o l l o w i n g c o m m a n d s , " v a r - # " c a e q u a l a n v a r i a b l e n a m e ,o l i n e n u m b e r u t f i v e c h a r a c t e r s l o n g . A n y t h i n g o v e r t h i s f i v ec h a r a c t e r l i m i t i i g n o r e d . T h s y m b o l < c r > r e p r e s e n t s p r e s s i n g t h R e t u r n k e y .

X R E F < c r >

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

X R E F * < c r >

T h i s i t h s a m e a s t h e a b o v e c o m m a n d , e x c e p t t h o u t p u t i s e n t t t h p r i n t e r .

o X R E F ® v a r - # < c r >X R E F * @ v a r - # < c r >

T h e s e c o m m a n d s l i s t a l r e f e r e n c e s f r o m t h e v a r i a b l e o l i n en u m b e r o n w a r d s . I f f o e x a m p l e , y o e n t e r e d t h v a r i a b l e " C B S " ,t h e n t h v a r i a b l e C B ( i i e x i s t s ) a n t h o s e a l p h a b e t i c a l l y g r e a t e rw i l l b l i s t e d . Y o c a a l s o u s t h e s e c o m m a n d s t s e p a r a t e l y l i s te i t h e r t h l i n e n u m b e r o r t h e v a r i a b l e c r o s s r e f e r e n c e . I o t h e rw o r d s , w h e n y o e n t e r a l i n e n u m b e r , t h e n o n l y l i n e n u m b e r c r o s sr e f e r e n c e s a r e l i s t e d , a n t h s a m e g o e s f o t h v a r i a b l e s . U s i n g z e r ow i l l d i s p l a y a l l i n e n u m b e r c r o s s r e f e r e n c e s , a n " A w i l l d i s p l a y a l v a r i a b l e s .

X R E F v a r - # < c r >o X R E F * v a r - # < c r >

W i t h t h i s c o m m a n d , o n l y t h s i n g l e v a r i a b l e o r l i n e n u m b e r t h a ty o e n t e r i c r o s s r e f e r e n c e d . l i k e t m a k e u s o t h i s c o m m a n db e f o r e u s i n g a n e v a r i a b l e , s c a m a k e s u r e i h a s n ' t a l r e a d yb e e n u s e d .

X R E F < c r >

E a c h t i m e t h c o m m a n d X R E F i e n t e r e d , i w i l l c o n s e c u t i v e l y l i s tB a s i c l i n e w h e r e t h p r e v i o u s " v a r - # " a p p e a r s . L e t s s a f o e x a m p l ey o e n t e r t h e c o m m a n d " X R E F C $ " , a n d y o u g e l i s t i n g s a y i n g C a p p e a r s o t h e s e l i n e n u m b e r s : 1 0 , 3 0 , 1 0 0 , a n 1 6 5 . I y o t h e ne n t e r t h c o m m a n d X R E F , l i n e 1 w i l l b l i s t e d . I y o e n t e r i a g a i n ,t h e n l i n e 3 w i l l b l i s t e d . E a c h t i m e t h c o m m a n d X R E F i e n t e r e d ,t h n e x t B a s i c l i n e w h e r e C a p p e a r s i l i s t e d . A f t e r t h l a s t l i n e i l i s t e d ( i n t h i s c a s e 1 6 5 ) , s u b s e q u e n t X R E F c o m m a n d s w i l l g i v e y o t h m e s s a g e " E N D O F T E X T " .

T h i s c o m m a n d i e s p e c i a l l y h a n d y f o e d i t i n g . S a f o e x a m p l e y o h a v e t e n B a s i c l i n e s t h a t r e f e r e n c e a s u b r o u t i n e a t l i n e 1 5 0 0 , a n y o u n e e d t c h a n g e s i o t h e m t c a l l n e s u b r o u t i n e a l i n e2 0 0 0 . W e l l , y o c a e i t h e r t r t r e m e m b e r t h s i x l i n e n u m b e r s ,a n t h e n l i s t t h e m o n a t i m e , o r y o c a s i m p l y e n t e r t h c o m m a n d X R E F 1 5 0 0 , a n t h e n f o l l o w i w i t h X R E F u n t i l t h s i l i n e s p o u p t h i n k p r e f e r s e c o n d m e t h o d , t h a n k y o u !

H E L P < c r >

T h i s i t h l a s t c o m m a n d , a n t h m o s t i m p o r t a n t . W h i i t h m o s t i m p o r t a n t ? B e c a u s e i y o f o r g e t e v e r y t h i n g y o u h a v e j u s tr e a d , y o c a e n t e r t h i s c o m m a n d , a n g e a a b b r e v i a t e d d e s c r i pt i o n o t h e s e i n s t r u c t i o n s . S i y o o n l y r e m e m b e r o n c o m m a n d ,m a k e i t h i s o n e .

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

Page 55: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 55/84

T e c h n i c a l N o t e s X R E F 6 4 B A S I C L o a d e r

X r e f i w r i t t e n c o m p l e t e l y i m a c h i n e l a n g u a g e , b u t s i n c e I t ' s l o a d e dw i t h a B a s i c l o a d e r , y o d n o n e e d t k n o w a n y t h i n g a b o u tm a c h i n e l a n g u a g e t u s i t

B e f o r e t h e B a s i c l o a d e r p o k e s X r e f i n t o m e m o r y , i g e t s t h e a d d r e s so t h e t o p o B a s i c m e m o r y f r o m l o c a t i o n s 5 a n 5 6 I t h e ns u b t r a c t s 2 1 ( t h e n u m b e r o b y t e s u s e d b X r e f ) f r o m t h i s a d d r e s s ,a n P o k e s X r e f i n t o m e m o r y s t a r t i n g f r o m t h e r e . W h a t t h i s a l m e a n s i t h a t X r e f i r e l o c a t a b l e p r o g r a m . I f o e x a m p l e y o ua l r e a d y h a v e m a c h i n e l a n g u a g e p r o g r a m a t h e t o p o B a s i cm e m o r y , t h e n t h e B a s i c l o a d e r w i l l r e l o c a t e X r e f b e l o w t h i s o t h e rp r o g r a m .

I M P O R T A N T N O T E ! B s u r e y o s a v e t h e B a s i c l o a d e r b e f o r e y o r u i t b e c a u s e i e x e c u t e s N E c o m m a n d a f t e r i p o k e s X r e f i n t om e m o r y .

A r y o u w o n d e r i n g h o X r e f m a n a g e s t u s o n l y 2 1 b y t e s o m e m o r y ? W e l l , i a c t u a l l y u s e s o v e r 2 0 0 0 b y t e s o m e m o r y . S w h e r e ' s t h r e s t ? I t ' s h i d d e n u n d e r t h e B a s i c R O M .T h i s i m a d e p o s s i b l e b e c a u s e o t h C o m m o d o r e 6 4 ' s u n i q u em e m o r y a r c h i t e c t u r e . W h a t m a k e s i u n i q u e i t h a t u n d e r n e a t h t h R O f o t h B a s i c i n t e r p r e t e r a n t h K e r n a l i w h o l e b u n c h o u n u s e d R A M . Y o c a w r i t e t o t h i s R A f r o m B a s i c , b u t r e a d i t y o r e a l l y h a v e t u s m a c h i n e l a n g u a g e . T r e a d t h i s R A M , y o f i r s t h a v e t " s w i t c h o u t " t h B a s i c i n t e r p r e t e r ' s R O M . A n o c o u r s ew h e n y o s w i t c h o u t t h e B a s i c i n t e r p r e t e r w h i c h i a f t e r a l l , j u s tm a c h i n e l a n g u a g e p r o g r a m i n l o n g e r e x i s t s i m e m o r y , s i i n o t t h e r e t r e a d a n m e m o r y l o c a t i o n s !

W h i c h m e m o r y t h c o m p u t e r " s e e s " t h R O o t h R A i c o n t r o l l e d b t h v a l u e i z e r o p a g e m e m o r y l o c a t i o n o n e . I b i t sz e r o a n d o n e i t h i s b y t e e q u a l z e r o , t h e n t h c o m p u t e r s e e s R A a a d d r e s s e s 4 0 9 6 0 - 4 9 1 5 1 ( $ A 0 0 0 - $ B F F F ) , a n d 5 7 3 4 4 - 6 5 5 3 5( $ E 0 0 0 - $ F F F F ) . I t h e s e b i t s e q u a l o n e , t h e n t h c o m p u t e r s e e sR O a t h e s e a d d r e s s e s .

X r e f u s e s t h i s s w i t c h i n g a c b e t w e e n R A a n R O t i t a d v a nt a g e , a n b d o i n g s o s a v e s B a s i c p r o g r a m m i n g m e m o r y . T h m a j o r i t y o t h e X r e f p r o g r a m , d o e s n ' t c a r e i t h B a s i c i n t e r p r e t e r i s w i t c h e d i o o u t , s m o s t o i i h i d d e n u n d e r t h R O M . T h 2 1 b y t e s t h a t a r i t h e B a s i c p r o g r a m m i n g m e m o r y c o n s i s t m a i n l y o s u b r o u t i n e s t h a t s w i t c h t h R O b a c k i n a n t h e n c a l l o t h e rs u b r o u t i n e s i t h e K e r n a l . W h e n t h K e r n a l s u b r o u t i n e i f i n i s h e d ,t h X r e f s u b r o u t i n e s w i t c h e s t h R O b a c k o u t , t h e n r e t u r n s t t h p a r t o t h m a i n p r o g r a m t h a t c a l l e d i t

O n c e X r e f i i m e m o r y , y o d o n ' t h a v e t w o r r y t h a t p r e s s i n gR U N / S T O P a n R E S T O R E w i l l k i l l i t b e c a u s e o n l y t u r n i n g y o u rc o m p u t e r o f w i l l d t h a t .

I y o u ' d r a t h e r n o t y p e i t h p r o g r a m , y o c a g e t h i s i s s u e ' sT r a n s a c t o r d i s k , o s e n d $ 3 a f o r m a t t e d d i s k e t t e , a n s e l f -a d d r e s s e d , s t a m p e d m a i l e r t o

D a v i d A r c h i b a l d3 7 1 7 A l d o n L a n eF l i n t , M 4 8 5 0 6

G J E L

O K E O P J B G C K B L I I

N G L

K H E I

O E

G M L E D C M M B A N

E F

P M L

G L

K B H G C B G J I

E O H

x r e f( c 1 9 8 5 b d a v i d a r c h i b a l d

( 3 1 3 ) 7 3 6 - 0 2 3 9

1 r e m * * *2 r e m * *3 r e m * *4 r e m * *5 r e m * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *6 0 r e m7 0 r e m8 0 r e m9 p r i n t " [ C L R ] " : p r i n t : p r i n t : p r i n t : p r i n t : p r i n t : p r i n t : p r i n t1 0 p r i n t s p c ( 8 ) " [ R V S ] p o k i n g x r e f i n t o m e m o r y . " : p r i n t1 1 p r i n t s p c ( 6 ) " p l e a s e w a i t a p p r o x . t w m i n . "1 2 0 r e m1 3 r e m — s a v e b o r d e r c o l o r .1 4 0 r e m1 5 0 m 1 = 5 3 2 8 0 : l t = 1 5 : p 4 =1 6 0 b c p e e k ( m 1 )1 7 0 r e m1 8 r e m — g e t o o f r e e m e m o r y a n 1 9 r e m — w h e r e t p u s t a r t o f p r o g .2 0 r e 2 1 e p e e k ( 5 5 ) p e e k ( 5 6 ) * 2 5 6 - 1 : s = e a - 2 1 4

: e x e s 2 2 r e 2 3 r e m — c h e c k i s t a r t o f x r e f i 2 4 r e m — l o w e r t h e n e n o b a s i c p r o g .2 5 r e 2 6 b p e e k ( 4 5 ) p e e k ( 4 6 ) * 2 5 6 + 1 0 02 7 i b m > s a t h e n p r i n t : p r i n t " t h e r e i s n ' t e n o u g h f r e e

m e m o r y " : e n d2 8 0 r e m2 9 r e m — c o n v e r t s t a r t o f x r e f i n t o3 0 r e m — s p l i t d e c i m a l .3 1 0 r e m3 2 t i n t ( s a / 2 5 6 ) : t l s a - t h * 2 5 63 3 f o p s t e 3 4 r e a d b y : t s t b y - i n t ( b y )3 5 r e 3 6 r e m — r a n d o m l y c h a n g e b o r d e r c o l o r .3 7 r e 3 8 0 c m c p 4 : i f c m 2 0 t h e n p = r n d ( 1 ) * l t + p

: p o k e m 1 , p 1 : c m3 9 r e 4 0 r e m — i b y t e f o l l o w e d b . t h e n4 1 r e m — l o w e r b y t e o a b s o l u t e a d d r .4 2 r e m — a d l o w e r b y t e o s t a r t t o i 4 3 r e m — s i p o i n t s t r e l o c a t e d a d d r4 4 r e 4 5 i t s t > 0 a n t s t < . 2 t h e n c a r r y O : b y b t 4 6 r e 4 7 r e m — i l o w e r b y t e i g r e a t e r t h a n4 8 r e m — 2 5 t h e n c a r r y i g e n e r a t e d4 9 r e m — s a d t h i g h b y t e .5 0 r e 5 1 i b y > 2 5 5 . 5 t h e n b b y - 2 5 6 : c a r r y5 2 r e 5 3 r e m — i b y t e f o l l o w e d b . t h e n5 4 r e m — h i g h b y t e o a b s o l u t e a d d .5 5 r e 5 6 i t s t > . 1 t h e n b b t c a r r y : c a r r y5 7 p o k e p a b

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

Page 56: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 56/84

M M G N M E O P G

I G A J L P I

C D A N C A F C P D K O J M E A E

O O C I

F I

K A M E

P K E J I D

E I

N I

M D K F H A

M B H

5 8 n e x t p 5 9 r e 6 0 0 r e m6 1 r e m —6 2 r e m —6 3 r e m —6 4 r e 6 5 i

s t a r t i n g a d d r ( $ a 0 0 0 ) e n d i n ga d d r ( $ a 7 1 e o m a i n p r o g r a mu n d e r b a s i c ' s r o m .

t h e n a : s 4 0 9 6 0 : e a 4 2 7 8 1 :6 6 0 p o k e m 1 , b c6 7 s y e x e : n e 1 0 0 01 0 1 01 0 2 01 0 3 01 0 4 01 0 5 01 0 6 01 0 7 01 0 8 01 0 9 01 1 0 01 1 1 01 1 2 01 1 3 01 1 4 01 1 5 01 1 6 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 0

r e r e r e m — r e l o c a t a b l e s e c t i o n o t h r e m - p r o g r a m i n o p o k e dr e m — b a s i c ' s r o m .r e r e d a t ad a t ad a t ad a t ad a t ad a t ad a t ad a t a

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

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

2 0 8 , 5 8 8 1 6 5 ,9 6 , 7 2 , 3 2 , 3 8 . 1 ,7 6 , 3 1 . 1 , 0 . 2 , 3 2 , :

1 9 5 , 2 5 5 , 3 2 2 0 4 ,d a t a 3 8 . 1 , 0 . 2 , 7 6 1 6 7 ,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 a

1 2 8 0 d a t a1 2 9 0 d a t a1 3 0 0 d a t a1 3 1 01 3 2 01 3 3 01 3 4 0

r e r e r e r e

1 3 5 0 d a t a1 3 6 01 3 7 01 3 8 0

d a t ad a t a

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

2 0 8 , 1 7 4 , 2 0 1 , 8 8 9 . 1 , 2 0 1 , 7 2 2 4 0 ,

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

. 2 2 0 1 , 6 . 1 , 2 4 0 ,1 4 1 6 1 , 1 6 9 , 1 6 3 ,

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

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

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

2 0 1 , 2 5 5 , 3 2 3 1 . 1 ,

s t a r t o m a i n p r o g r a mu n d e r b a s i c r o

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

1 3 9 0 d a t a1 4 0 0 d a t a1 4 1 01 4 2 01 4 3 01 4 4 0

d a t ad a t a

1 1 5 , 0 , 2 0 1 , 0 , 2 4 01 5 3 , 2 0 3 , 1 6 3 , 2 0 0 , 1 9 21 9 6 , 1 6 3 , 1 4 0 , 2 0 2 , 1 6 3

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

1 4 5 0 d a t a1 4 6 01 4 7 01 4 8 0

d a t ad a t ad a t a

1 4 9 0 d a t a

1 4 1 , 9 1 , 1 6 1 , 2 3 0 , 3 01 6 2 , 1 6 9 , 2 9 , 1 3 3 , 2 5 11 7 3 , 1 9 7 , 1 6 3 , 2 0 1 , 5 1 6 1 , 1 6 9 , 0 , 1 4 1 , 1 8 71 6 6 , 2 , 2 4 0 , 3 7

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

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

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

u n d e r

2 3 4 ,1 6 0 ,

3 3 1 2 0 ,

1 0 . 2 ,

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

6 . 2

1 3 6 ,6

1 3 3 ,3 2 3 2 4 2 7 6 3 2

1 9 2 ,0 . 2 ,

4 7

, 1 3 27 1

, 1 5 2, 1 6 2

1 1 3 1 3 1 6 1 7 1 6

7 1 3 1 ,1 4 2 ,

1 6 6 ,0

2 0 1 ,1 6 5 ,

9 1 0 4 ,0 . 2 ,

1 0 8 ,3 2

• 2 1 6 1 0

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

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

7 6

2 0 2 7

1 3 1 5 2 0 2 4

1 2 4 7 ,

3 3 2

1 6 7 ,8

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

g o t o 3 3

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

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

3 2 2 1 0 ,1 6 9 , 4

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

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

3 1 . 1 , . 2 3 2 1 1 5 ,

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

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

0 1 6

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

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

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

4 1 6 1 6 2 ,

6 , 2 0 11 6 0 , 3

8 1 7

2 5

2 5 3 3 3

1 3 1 2 1 6

2 1 1 2 6 . 1

7

4 1 6 1 1

7

3

5

C N B H L E I

G O N F

G G A K M

I O A P G C M O B A H F D C A D P

L L C O K F C O O N B B G

A I

P K

N M P H K M A

A H P E

I

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

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

1 6 0 0 d a t a 2 4 0 , 3 7 , 1 6 6 , 7 6 , 2 0 8 , 1 4 8 , 1 4 4 , 5 , 1 4 11 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 a

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

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

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

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

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

1 7 7 0 d a t a 2 0 1 , 4 8 , 1 4 4 , 4 , 2 3 0 , 2 9 , 2 0 8 , 2 1 3 , 1 6 51 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 a

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

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

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

1 8 5 0 d a t a 2 0 0 , 1 4 5 , 2 5 , 2 0 2 , 2 0 8 , 2 4 8 , 9 6 , 3 2 , 8 1 8 6 0 d a t a 1 6 3 , 2 4 0 , 2 4 , 1 6 0 , 0 , 1 7 7 , 2 5 1 , 1 9 7 , 2 1 8 7 0 d a t a 2 0 8 , 1 6 , 2 0 0 , 1 7 7 , 2 5 1 , 1 9 7 , 2 1 , 2 0 8 ,1 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 a

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

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

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

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

1 9 8 0 d a t a 2 0 0 , 2 0 9 , 3 2 , 2 4 0 , 3 , 2 3 0 , 3 0 9 6 , 2 0 01 9 9 0 d a t a 2 0 9 , 3 2 , 2 0 8 , 2 4 8 , 2 3 0 , 2 9 6 , 3 2 . 8 2 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 a

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

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

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

3 2 , 1 0 8 , 1 6 3 , 1 0 4 , 1 4 1 , 1 7 4 , 1 6 3 , 2 0 12 0 7 0 d a t a 2 4 0 , 1 8 , 2 3 8 , 1 6 8 , 1 6 2 , 1 6 9 , 4 7 . 1 5 7 ^ 1 7 62 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 a2 1 2 0 d a t a2 1 3 0 d a t a

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

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

2 0 8 , 1 7 4 , 1 6 9 , 0 2 4 0 , 2 6 1 7 4 , 2 0 2 , ' 1 6 J u l y 1 9 8 7 : V o l u m e 8 I s s u e 0

Page 57: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 57/84

A M N B A F

A J L B K C C F P E O

1 D K B E

O H L

C C P D E G P D O P I F A

I K C E B L N F F C H L L B

O J D

0 P N C O C

I

2 1 4 0 d a t a 1 8 9 , 2 0 2 , 1 6 3 ,2 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 a2 2 2 0 d a t a

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

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

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

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

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

1 6 0 , 0 , 1 8 5 ,2 2 7 0 d a t a 2 0 2 , 2 0 8 , 2 4 6 ,2 2 8 0 d a t a2 2 9 0 d a t a2 3 0 0 d a t a2 3 1 0 d a t a2 3 2 0 d a t a2 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 a

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

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

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

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

2 3 8 0 d a t a 2 0 1 , 4 8 , 2 4 0 ,2 3 9 0 d a t a 2 0 0 , 1 9 2 , 1 0 2 4 0 0 d a t a2 4 1 0 d a t a2 4 2 0 d a t a2 4 3 0 d a t a2 4 4 0 d a t a2 4 5 0 d a t a2 4 6 0 d a t a2 4 7 0 d a t a2 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 a2 5 3 0 d a t a2 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 a2 6 1 0 d a t a2 6 2 0 d a t a2 6 3 0 d a t a2 6 4 0 d a t a2 6 5 0 d a t a2 6 6 0 d a t a2 6 7 0 d a t a2 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 a

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

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

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

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

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

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

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

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

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

0 2 0 8 ,4 2 3 2 ,

2 0 8 , 2 0 6 ,4 8 , 4 8 ,

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

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

2 9 3 2

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

3 2 2 6

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

7 2 3 8 ,

9 6 4 8

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

2 0 2 , 1 6 , 2 4 72 0 2 , 1 6 3 , 2 0 2

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

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

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

1 6 5 , 2 5 1 , 1 9 72 5 4 , 9 6 1 3 2 3 2 , 2 0 0 , 1 9 21 0 4 , 1 7 0 , 9

1 7 , 1 6 7 , 2 0 01 6 7 , 2 0 1 , 8 02 4 0 , 2 5 0 , 2 0 1 6 9 , 2 9 , 1 9 72 5 2 , 9 6 , 1 6 0

3 2 1 7 , 1 6 70 , 1 6 9 , 4

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

1 2 , 1 4 1 , 1 7 51 7 6 , 1 6 3 , 1 7 61 8 9 , 1 7 6 , 1 6 31 6 8 , 1 6 2 , 2 0 0

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

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

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

K K C N E A G B N K A L B

H I

K O G A G C G L

N J M H E A P H G C P K D I

O M J

D C H H I J B F

D F O E I

K I

G O O M K M

P

5

2 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 a2 8 1 0 d a t a2 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 a2 8 6 0 d a t a2 8 7 0 d a t a2 8 8 0 d a t a2 8 9 0 d a t a2 9 0 0 d a t a2 9 1 0 d a t a2 9 2 0 d a t a2 9 3 0 d a t a2 9 4 0 d a t a2 9 5 0 d a t a2 9 6 0 d a t a2 9 7 0 d a t a2 9 8 0 d a t a2 9 9 0 d a t a3 0 0 0 d a t a3 0 1 0 d a t a3 0 2 0 d a t a3 0 3 0 d a t a3 0 4 0 d a t a3 0 5 0 d a t a3 0 6 0 d a t a3 0 7 0 d a t a3 0 8 0 d a t a3 0 9 0 d a t a3 1 0 0 d a t a3 1 1 0 d a t a3 1 2 0 d a t a3 1 3 0 d a t a3 1 4 0 d a t a3 1 5 0 d a t a3 1 6 0 d a t a3 1 7 0 d a t a3 1 8 0 d a t a3 1 9 0 d a t a3 2 0 0 d a t a3 2 1 0 d a t a3 2 2 0 d a t a3 2 3 0 d a t a3 2 4 0 d a t a3 2 5 0 d a t a3 2 6 0 d a t a3 2 7 0 d a t a3 2 8 0 d a t a3 2 9 0 d a t a3 3 0 0 d a t a3 3 1 0 d a t a3 3 2 0 d a t a3 3 3 0 d a t a3 3 4 0 d a t a

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

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

0 . 2 ,1 6 0 ,

0 3 3 5 0 d a t a 2 0 0 ,3 3 6 0 d a t a3 3 7 0 d a t a

7 6 7 6

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

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

1 3 4 ,0 . 2 ,

1 8 5 ,2 0 8 ,

4 6 . 1 ,7 7 . 1 ,

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

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

0 . 2 ,0 . 2 ,

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

1 3 2 ,1 2 4 ,1 6 6 ,

7 6 7

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

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

1 3 4 ,2 4 0 ,

3 1 . 1 ,5 7 . 1

6 5 6 9 7 9 4 6 6 4

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

0 1 6 9 ,1 2 5 ,

9 0 . 2 ,0 . 2 ,

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

1 6 7

1 3 3 7 7

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

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

6 . 1 ,1 6 2 ,1 2 6 ,

1 7 3 8 . 17 1 . 1

3 6 3 3 3 8 6 3 8 8 3 1 3 7 8 8 7 3 6 6 3 6 3 8 8 6 4 8 8 3 7 8 7 7 8 7 8 7 7 7 1 3 3 1 3 6 6 3 8 8 7 3 5 8 6

1 6 8 9 . 1

1 6 1 6 0 . 0 .

J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 58: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 58/84

B e y o n d C O M P A R E D a v i d L a t h r o pF r e m o n t , C a l i f o r n i a

F i n d t h d i f f e r e n c e s b e t w e e n t w f i l e s o a n k i n d -B A S I C , a s s e m b l e r , t e x t , d a t a b a s e r e c o r d s , o h e x a d e c i m a l !

U t i l i t i e s a r u s u a l l y p r e t t y d u l l s u b j e c t s . S f i l e c o m p a r e p r o g r a mp r o b a b l y w i l l n o g e n e r a t e l o o e x c i t e m e n t u n t i l y o n e e d i t W h e n y o d n e e d o n e , y o m a d i s c o v e r t h a t t h e r e a r e n o t m a n yo t h e m a v a i l a b l e , a n t h e y d n o h a n d l e i n s e r t e d o r d e l e t e dr e c o r d s v e r y w e l l . F u r t h e r m o r e , i y o u c o m p a r e B A S I C o m a c h i n el a n g u a g e p r o g r a m f i l e s , t h e s e o t h e r c o m p a r e p r o g r a m s s h o w f i l ed i f f e r e n c e s i b i n a r y o A S C I I d a t a a t h e y a r e s t o r e d o d i s k , n o a B A S I C s t a t e m e n t s o M i n s t r u c t i o n s .

C O M P A R E i f i l e c o m p a r i s o n u t i l i t y t h a t d o e s n o s u f f e r f r o m t h e s es h o r t c o m i n g s . I r e c o g n i z e s i n s e r t e d a n d e l e t e d l i n e s a n m a k e sa d j u s t m e n t s b e f o r e c o n t i n u i n g w i t h t h c o m p a r i s o n . I t h f i l e s a r B A S I C p r o g r a m s , C O M P A R E w i l l l i s t t h p r o g r a m f i l e s a t h L I S Tc o m m a n d d o e s ( t h a t i s t h l i n e n u m b e r s a n t o k e n s w i l l b i n t e r p r e t e d ) . I t h f i l e s a r 6 5 0 2 m a c h i n e l a n g u a g e p r o g r a m s , t h e yc a b d i s a s s e m b l e d . I t h f i l e s a r t e x t o d a t a , t h e y m a b s h o w na e i t h e r A S C I I t e x t o h e x a d e c i m a l d a t a .

s i m p l e B A S I C p r o g r a m i s h o w n i F i g u r e 1 m o d i f i e d v e r s i o n o i i s h o w n i F i g u r e 2 C a y o e a s i l y s e t h e d i f f e r e n c e s ? r e p o r tc r e a t e d b C O M P A R E i s h o w n i F i g u r e 3 a n t h i s r e p o r t c l e a r l ys h o w s h o t h t w p r o g r a m s d i f f e r .

n i c e f r i n g e b e n e f i t o C O M P A R E i t h a b i l i t y t o l i s t f i l e i v a r i e t y o f o r m a t s . T d t h i s , t h f i l e i c o m p a r e d w i t h " n o t h i n g " .A l t h e d i f f e r e n c e s b e t w e e n t h f i l e a n " n o t h i n g " a r e r e p o r t e d , a n t h e s e d i f f e r e n c e s r e p r e s e n t t h e e n t i r e c o n t e n t s o t h f i l e . W e ' l ld i s c u s s h o t d t h i s s h o r t l y .

P r o g r a m P r e p a r a t i o n

F i r s t e n t e r a n s a v e P r o g r a m 1 T h i s B A S I C p r o g r a m , n a m e dC O M P A R E , i t h m a i n p r o g r a m w h i c h l o a d s M r o u t i n e s a n p r o m p t s f o i n f o r m a t i o n s u c h a f i l e n a m e s a n r e p o r t f o r m a t s . I t h e n c a l l s t h M r o u t i n e s t d t h c o m p a r i s o n .

N e x t e n t e r , s a v e a n r u P r o g r a m 2 T h i s B A S I C p r o g r a m c r e a t e s a M p r o g r a m n a m e d C M P . M L . 6 8 0 0 . T h i s M p r o g r a m r e a d s t h f i l e s , c o m p a r e s t h e m , a n r e p o r t s t h e d i f f e r e n c e s .

H o t u s C O M P A R EA f t e r s a v i n g t h B A S I C a n M p r o g r a m s o n d i s k , l o a d a n r u C O M P A R E . A f t e r l o a d i n g t h M r o u t i n e s , C O M P A R E w i l l p r o m p ty o f o t h e f o l l o w i n g :

1 T h a d d r e s s o t h e d r i v e y o w i s h t u s t h i s i u s u a l l y o 9 2 T h n a m e o t h O L f i l e C O M P A R E a s s u m e s t h a t o n o t h

t w f i l e s p r e - d a t e s t h o t h e r , s t h e a r l i e r o n i c a l l e d t h O L f i l e . I y o a r i d o u b t a b o u t t h f i l e ' s n a m e , y o u c a l i s t t h d i s k e t t e d i r e c t o r y b e n t e r i n g a t h f i l e n a m e .

3 T h n a m e o t h N E f i l e F o c o m p a r i s o n s , t h i s i t h n a m e o t h s e c o n d f i l e . B u i y o u w a n t t l i s t t h O L f i l e , e n t e r a a s t e r i s k ( * a t h N E f i l e n a m e .

4 T h d e s t i n a t i o n o t h c o m p a r i s o n r e p o r t C h o o s e f o s c r e e n ,o f o r p r i n t e r .

5 T h r e p o r t f o r m a t I t h O L f i l e i p r o g r a m f i l e , y o m a c h o o s e ( A S C I I t e x t ) , ( B A S I C l i s t ) , ( d i s a s s e m b l e d 6 5 0 2 l i s t ) , o

( h e x a d e c i m a l d a t a ) f o r m a t s .

I t h O L f i l e i s s e q u e n t i a l , u s e r o r e l a t i v e f i l e , y o m a c h o o s e( A S C I I t e x t ) o ( h e x a d e c i m a l d a t a ) f o r m a t .

T h c h o i c e o f o r m a t t e l l s C O M P A R E h o t p r o c e s s t h f i l e ' sr e c o r d s , a n h o t p r e p a r e t h e d i s p l a y o n o n - c o m p a r i n g r e c o r d s .I y o r e q u e s t e i t h e r B A S I C o 6 5 0 2 m a c h i n e l a n g u a g e r e p o r t , t h a ti s u f f i c i e n t i n f o r m a t i o n f o t h c o m p a r e t b e g i n . H o w e v e r i y o r e q u e s t e i t h e r A S C I I t e x t o h e x a d e c i m a l d a t a f o r m a t s , y o m u s t t e l lC O M P A R E w h a t k i n d o r e c o r d s t h e s e f i l e s h a v e .

I y o d o n ' t k n o w w h a t t h e i n t e r n a l s t r u c t u r e o t h f i l e i s C O M P A R Ec a h e l p y o u b y l i s t i n g t h f i l e s f o r i n s p e c t i o n . P i c k o n o t h f i l e s f o t h O L f i l e n a m e , s p e c i f y f o t h N E f i l e n a m e , s e l e c t r e p o r tf o r m a t f o h e x a d e c i m a l , c h o o s e f o f i x e d r e c o r d l e n g t h , a n s p e c i f y r e c o r d l e n g t h o 1 2 b y t e s . W i t h l i t t l e i n v e s t i g a t i o n , y o s h o u l d b a b l e t d e t e r m i n e h o r e c o r d s a r e d e f i n e d i t h f i l e .

C O M P A R E c a w o r k w i t h f i x e d ( f o r v a r i a b l e ( v l e n g t h r e c o r d s . I t h r e c o r d l e n g t h i f i x e d , C O M P A R E w i l l a s y o w h a t t h a t l e n g t hi s B u i t h e l e n g t h i v a r i a b l e , C O M P A R E w i l l a s h o i c a d e t e r m i n e t h e n o e a c h r e c o r d . T h r e e p o s s i b i l i t i e s a r a l l o w e d :

1 T h l e n g t h o t h e r e c o r d i c o n t a i n e d i t h d a t a . F o e x a m p l e ,s u p p o s e t h f i r s t b y t e i n d i c a t e s h o l o n g t h r e c o r d i s I t h i s c a s ey o w o u l d c h o o s e o p t i o n a n i n d i c a t e t h a t t h p o s i t i o n o t h l e n g t h v a l u e i o n e .

2 T h e n o t h e r e c o r d i m a r k e d b s p e c i a l c h a r a c t e r . F o e x a m p l e , m a n y t e x t f i l e s t e r m i n a t e l i n e o p a r a g r a p h w i t hc a r r i a g e r e t u r n . I n t h i s c a s e y o u w o u l d c h o o s e o p t i o n a n i n d i c a t e t h a t t h d e c i m a l v a l u e o t h s p e c i a l c h a r a c t e r i 1 3

3 T h e n o t h r e c o r d i m a r k e d b s p e c i a l b i t s , t h v a l u e o w h i c hi c a l l e d m a s k . T u s t h i s o p t i o n , y o n e e d t u n d e r s t a n d h o e i g h t b i b y t e s c a n b e e x p r e s s e d a d e c i m a l v a l u e s f r o m t 2 5 5 .F o e x a m p l e , m a n y t e x t f i l e s m a r k t h e n o r e c o r d b s e t t i n gt h m o s t s i g n i f i c a n t b i t . I t h i s c a s e y o u w o u l d c h o o s e o p t i o na n i n d i c a t e t h a t t h m a s k i 1 2 8 .

F o r o p t i o n o m y o w i l l b e a s k e d f o m i n i m u m r e c o r d l e n g t h .T h i s i b e c a u s e i i p o s s i b l e t h a t t h s p e c i a l c h a r a c t e r o m a s k m a a p p e a r i t h f i r s t f e b y t e s o r e c o r d . F o e x a m p l e , B A S I Cp r o g r a m f i l e h a m i n i m u m r e c o r d l e n g t h o f o u r b e c a u s e a z e r om a r k s t h e n o s t a t e m e n t , b u t a z e r o m a a l s o a p p e a r i t h f i r s t

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

Page 59: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 59/84

f o u r b y t e s a e i t h e r p a r t o t h l i n e n u m b e r o r t h e l i n e l i n k . T h i sp r o m p t a l l o w s y o t t e l l C O M P A R E t i g n o r e a n o c c u r r e n c e o t h s p e c i a l c h a r a c t e r o m a s k a t h s t a r t o r e c o r d . S p e c i f y z e r o i t h i si n o t t h e c a s e .

A t h c o m p l e t i o n o f t h i s s t e p , y o w i l l h a v e d e s c r i b e d t C O M P A R Et h n a t u r e o t h f i l e s t c o m p a r e a n d t h f o r m a t o t h c o m p a r i s o nr e p o r t y o w i s h t s e e . N o t h c o m p a r i s o n w i l l s t a r t . F i g u r e 3s h o w s a e x a m p l e o c o m p a r i s o n b e t w e e n t w B A S I C p r o g r a mf i l e s . F i g u r e s 4 a n s h o w 6 5 0 2 d i s a s s e m b l y a n h e x a d e c i m a ll i s t o a n o t h e r p r o g r a m . R e p o r t t y p e s a d a n s h o w t h A S C I Ir e p r e s e n t a t i o n o d a t a , b u a l C o m m o d o r e g r a p h i c s c h a r a c t e r s ,c u r s o r m o v e m e n t a n c o l o r c h a r a c t e r s a r e s h o w n a p e r i o d s .

W h e n t h c o m p a r i s o n b e g i n s , r e p o r t h e a d i n g i p r i n t e d w h i c hs h o w s t h n a m e s o t h t w f i l e s . F o l l o w i n g t h e h e a d e r , e a c hm i s m a t c h b e t w e e n f i l e s i g r o u p e d i n t o b l o c k s . T h r e c o r d s i t h O L f i l e w h i c h d o n o c o m p a r e a r l i s t e d f i r s t f o l l o w e d b d a s h e dl i n e ( ) T h c o r r e s p o n d i n g p a r t o t h N E f i l e i s t h e n l i s t e df o l l o w e d b l i n e o e q u a l s i g n s ( = = = = ) Y o w i l l n o t e t h a tt h l a s t l i n e p r i n t e d f o b o t h f i l e s i e a c h b l o c k o m i s m a t c h e dr e c o r d s ( e x c e p t p o s s i b l y t h e v e r y l a s t b l o c k ) a r e i d e n t i c a l . T h i s i t h p o i n t w h e r e C O M P A R E h a d e t e r m i n e d t h a t t h f i l e s a r e t h e s a m e ,h a r e a l i g n e d t h e m a n c o n t i n u e d t h c o m p a r i s o n . c o u n t o t h m i s m a t c h e d b l o c k s i s h o w n a t h e n o t h r e p o r t .

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

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

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

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

T e c h n i c a l N o t e s

T h B A S I C a n M p r o g r a m s c o m m u n i c a t e w i t h e a c h o t h e r v i v a r i a b l e s . V a r i a b l e s a s s o c i a t e d w i t h t h O L f i l e b e g i n w i t h a " o " ,a n v a r i a b l e s a s s o c i a t e d w i t h t h N E f i l e b e g i n w i t h a " n " . T h v a r i a b l e s a r e d e f i n e d b e f o r e t h M p r o g r a m i c a l l e d , a n a r u s e da f o l l o w s :

G e n e r a l v a r i a b l e s

d n - d i s k u n i t a d d r e s s ( i n p u t t M L p p r i n t e r o s c r e e n a d d r e s s ( t M L p c p r i n t e r s e c o n d a r y a d d r e s s ( t M L m m m i s - m a t c h c o u n t ( o u t p u t f r o m M L r c r e t u r n c o d e ( f r o m M L

O L f i l e

o o f i l e n a m e p a d d e d w i t h s h i f t e d s p a c e s ( t M L o v r e p o r t f o r m a t a , b , d , x ( t M L o t r e c o r d t y p e f , v , l , c , m ( t M L o z $ - r e c . l e n g t h , l e n g t h p o s i t i o n , c h a r a c t e r o m a s k ( t M L o s $ - m i n i m u m r e c o r d l e n g t h ( t M L o f 4 b u f f e r R A p a g e n ( t M L

o b f i l e s t a r t i n g t r a c k s e c t o r ( t o / f r o m M L o y f i l e t y p e s e q , 2 p r g , 3 u s r , 4 r e ( f r o m M L

N E f i l e

n n f i l e n a m e p a d d e d w i t h s h i f t e d s p a c e sn ? - s e e O L f i l e v a r i a b l e s a b o v e

T h C O M P A R E M L p r o g r a m r e s i d e s b e t w e e n $ 6 8 0 0 a n d $ 8 0 0 0 , s i s h o u l d b a b l e t c o - e x i s t p e a c e f u l l y w i t h e x p a n s i o n c a r t r i d g e sa n d m o s t o t h e r M p r o g r a m s . P a g e z e r o i u s e d h e a v i l y , b u i i s a v e d a n s u b s e q u e n t l y r e s t o r e d b e f o r e t h M e n d s . T w o 4 K f i l eb u f f e r s f i b e t w e e n $ 4 0 0 0 a n $ 6 0 0 0 , s t h B A S I C p r o g r a m l o w e r sM E M T O P a c c o r d i n g l y ( s e e l i n e 1 0 ) . I y o w i s h t i n c r e a s e t h e R A a v a i l a b l e t B A S I C , y o c a m o v e t h b u f f e r s u u n d e r B A S I C R O b e t w e e n $ A 0 0 0 a n $ C 0 0 0 b s e t t i n g o f $ c h r $ ( 1 6 0 ) :n f c h r $ ( 1 7 6 ) .

T h B A S I C p r o g r a m m a b m o d i f i e d t s u i t y o u r t a s t e s i y o t a k ec a r e t d e f i n e t h e v a r i a b l e s s h o w n a b o v e b e f o r e y o S Y t a n o t h M r o u t i n e s . I y o w i s h t m a k e m o d i f i c a t i o n s , t h e f o l l o w i n gw i l l b o i n t e r e s t :

I p n % = 3 , 4 c o l u m n r e p o r t i c r e a t e d t f i o t h e s c r e e n ,o t h e r w i s e a n 8 0 c o l u m n r e p o r t i p r o d u c e d . I y o h a v e a n 8 0c o l u m n c a r t r i d g e , y o c a s h o w 8 c o l u m n s o n t h s c r e e n b o p e n i n g f i l e t t h s c r e e n s u c h a p n = 5 : o p e n 5 , 3 , 0 .

Y o m a a l s o w r i t e a r e p o r t t d i s k b y o p e n i n g f i l e s u c h a p n = 2 : o p e n 2 , 8 , 2 , " c o m p . r e p o r t , s , w " .

I y o w i s h t d i s p l a y o c o m p a r e f i l e s w h i c h d o n o h a v e e n t r i e s i t h d i s k e t t e d i r e c t o r y , y o m a d s b s e t t i n g o b a n n b e q u a lt t h f i l e s ' b e g i n n i n g t r a c k a n s e c t o r . F o e x a m p l e , t l i s t d i s k e t t eB A a n d i r e c t o r y b l o c k s , s e n b = 0 o b 1 8 * 2 5 6 b e f o r e t h s y s 2 6 6 2 4 .

B e y o n d C o m p a r e

A g o o d a C O M P A R E i s i i n o f o o l p r o o f . I t w f i l e s h a v en u m b e r o f i d e n t i c a l r e c o r d s i t h e m s u c h a b l a n k l i n e s i t e x t f i l eo R E s t a t e m e n t s w i t h o u t a n t e x t i B A S I C p r o g r a m , C O M P A R Ec a n b e f o o l e d i n t o t h i n k i n g i h a s f o u n d p o i n t w h e r e t w d i s s i m i l a rf i l e s a r t h s a m e a n b l o c k o n o n - c o m p a r i n g r e c o r d s m a b p r i n t e d p r e m a t u r e l y . T h i s i u s u a l l y n o t a s e r i o u s p r o b l e m , b u i t h e s e " t r i v i a l " r e c o r d s d i s r u p t t h c o m p a r i s o n , y o m a w i s h t m a k e c o p i e s o t h t w f i l e s w i t h t h e s e r e c o r d s d e l e t e d .

A l l o f t h e r e c o r d s f o e a c h f i l e w h i c h d o n o c o m p a r e a r e h e l d i R A u n t i l t h e y a r p r i n t e d . I t h e r e i l a r g e b l o c k o r e c o r d s i e i t h e r f i l e w h i c h d o e s n o c o r r e s p o n d t a n r e c o r d s i t h o t h e r f i l e ,C O M P A R E m a r u o u o s p a c e t h o l d t h r e c o r d s . W h e n t h i sh a p p e n s , w a r n i n g m e s s a g e w i l l b p r i n t e d , a l r e c o r d s c u r r e n t l y i m e m o r y w i l l b p r i n t e d a n t h c o m p a r i s o n w i l l c o n t i n u e f r o m t h a tp o i n t . T h i s e v e n t m a c a u s e C O M P A R E t s u b s e q u e n t l y r e p o r td i f f e r e n c e s b e t w e e n t h f i l e s w h e n i f a c t t h e y d n o e x i s t .

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

T h e T r c t o r 5 J u l y 1 9 8 7 : V o l u m e 8 I s s u e

Page 60: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 60/84

l a n g u a g e p r o g r a m s m a b d i s a s s e m b l e d a n l i s t e d d i r e c t l y f r o md i s k . B u C O M P A R E ' s m a i n f u n c t i o n i t c o m p a r e t w f i l e s . W h e ny o u n e e d t d t h a t , t h e r e i s l i t t l e e l s e a r o u n d t h a t w o r k s a w e l l . I t h o s e s i t u a t i o n s , t h i s l i t t l e u t i l i t y i b e y o n d c o m p a r e .

F i g u r e 1 U N N E W . B A S I C P r o g r a m F i l e L i s t i n g

1 0 p o k e 5 3 2 8 1 , 0 : p r i n t " . . s y s 5 2 5 "1 1 5 2 1 2 r e a d a : i f a 2 5 6 t h e n 1 3 01 3 p o k e i , a : i 1 : g o t o 1 2 01 4 0 p o k e 4 3 , 5 2 5 a n 2 5 5 : p o k e 4 4 , 21 5 0 p o k e 4 5 , 5 7 8 a n 2 5 5 : p o k e 4 6 , 21 6 p r i n t " . " : s a v e " 0 : u n n e w " , 81 7 0 r e m f o t a p e u s e s a v e " u n n e w " , 1 , 11 8 d a t a 1 6 0 , 3 , 2 0 0 , 1 7 7 , 4 3 , 2 0 8 , 2 5 1

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

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

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

1 4 5 , 4 1 3 3 , 6

0 , 2 0 05 9 , 2 0 8

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

6 0 1 7 7 ,

F i g u r e 2 U N N E W . B A S I C 2 P r o g r a m F i l e L i s t i n g

1 1 5 2 1 2 r e a d a : i f a 2 5 6 t h e n 1 3 01 3 p o k e i , a : i 1 : g o t o 1 2 01 4 0 p o k e 4 3 , 5 2 5 a n 2 5 5 : p o k e 4 4 , 21 5 0 p o k e 4 5 , 5 7 8 a n 2 5 5 : p o k e 4 6 , 21 6 p r i n t " . " : s a v e " 0 : u n n e w " , 1 7 d a t a 1 6 0 , 3 , 2 0 0 , 1 7 7 , 4 3 , 2 0 8 , 2 1 51 8 d a t a 2 0 0 , 2 0 0 , 1 5 2 , 1 6 0 , 0 , 1 4 5 , 4 1 9 d a t a 1 6 5 , 4 4 , 2 0 0 , 1 4 5 , 4 3 , 1 3 3 , 6 02 0 d a t a 1 6 0 , 0 , 1 3 2 , 5 9 , 1 6 2 , 0 , 2 0 02 1 d a t a 2 0 8 , 2 , 2 3 0 , 6 0 , 1 7 7 , 5 9 , 2 0 82 2 d a t a 2 4 5 , 2 3 2 , 2 2 4 ,2 3 d a t a 2 0 8 , 2 2 3 0 ,2 4 d a t a 6 0 1 3 2 , 4 6

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

F i g u r e 3 B A S I C P r o g r a m F i l e s C o m p a r i s o n R e p o r t

F i l e C o m p a r i s o n U t i l i t y V 3 . 4

O L N a m e : u n n e w . b a s i cN E N a m e : u n n e w . b a s i c 21 0 p o k e 5 3 2 8 1 , 0 : p r i n t " . . s y s 5 2 5 '1 1 = 5 2 5

1 1 = 5 2 5

1 7 r e f o t a p e u s s a v e " u n n e w " , 1 , 11 8 d a t a 1 6 0 , 3 , 2 0 0 , 1 7 7 , 4 3 , 2 0 8 , 2 5 11 9 d a t a 2 0 0 , 2 0 0 , 1 5 2 , 1 6 0 , 0 , 1 4 5 , 4 1 7 0 d a t a 1 6 0 , 3 , 2 0 0 , 1 7 7 , 4 3 , 2 0 8 , 2 1 51 8 d a t a 2 0 0 , 2 0 0 , 1 5 2 , 1 6 0 , 0 , 1 4 5 , 4

C o m p a r e f i n i s h e d . m i s m a t c h e s f o u n d .T r a n s a c t o r

F i g u r e 4 M a c h i n e L a n g u a g e P r o g r a m D i s a s s e m b l y

( E d i t o r ' s N o t e : C O M P A R E p r i n t s a c h a r a c t e r r e p r e s e n t a t i o n o t h b y t e s i t h c o l u m n d o w n t h r i g h t . S o m e o t h e c h a r a c t e r s a r g r a p h i c s t h a t w c a n ' t t y p e s e t . H o w e v e r , t h e y a r e n ' t c r i t i c a l f o t h e x a m p l e r e p o r t s , s w e ' v e r e p l a c e d t h e m w i t h a

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *F i l e C o m p a r i s o n U t i l i t y V 3 . 4

O L N a m e :N E N a m e :

0 2 0 d -0 2 0 f -0 2 1 0 -0 2 1 2 -0 2 1 4 -0 2 1 5 -0 2 1 6 -0 2 1 7 -0 2 1 9 -0 2 1 b -0 2 1 d -0 2 1 e -0 2 2 0 -0 2 2 2 -0 2 2 4 -0 2 2 6 -0 2 2 8 -0 2 2 9 -0 2 2 b -0 2 2 d -0 2 2 f -0 2 3 1 -0 2 3 2 -0 2 3 4 -0 2 3 6 -0 2 3 7 -0 2 3 9 -0 2 3 b -0 2 3 d -0 2 3 f -0 2 4 1 -

a c t > d c c 9 a 9 a c 9 8 a 8 a c d e b d b e d c d e 8 a 8 6

u n n e w

0

2 f

0 2 2

2 3 0

0

0 3 3 f

0 f

0 3 2 3 2

I d i n I d b n i n i n t y I d s t I d i n s t s t I d s t I d i n b n i n I d b n i n c p b n i n b n i n s t I d s t r t

# $ 0 3

( $ 2 b ) , y$ 0 2 0 f

# $ 0 0( $ 2 b ) , y$ 2

( $ 2 b ) , y$ 3 # $ 0 0$ 3 # $ 0 0

$ 0 2 2 d$ 3 ( $ 3 b ) , y$ 0 2 2 6

# $ 0 3$ 0 2 2 8

$ 0 2 3 b$ 3 $ 2 $ 3 $ 2

< . < H < § + >< P § >< H < H < . < .

+ < § , >< H < + < . < >< . < ; < § ■ >< H < P . >< § < >< § ; >< p § >< § . < p § >< H < P . >< § < >

- < § ■ &

.

F i g u r e 5 H e x a d e c i m a l L i s t i n g

I " * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *F i l e C o m p a r i s o n U t i l i t y V 3 . 4

f * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * , . * , , , , . ! ,O L N a m e : u n n e wN E N a m e :

0 0 0 0 0 d 0 2 a O O 3 c 8 b 1 2 b d O < . . H § + P >f b c 8 c 8 9 8 a O O O 9 1 2 b < § H H . . . + a 5 2 c c 8 9 1 2 b 8 5 3 c a O < § , H . + . < . >0 0 8 4 3 b a 2 0 0 c 8 d 0 0 2 . H

0 0 2 0 e 6 3 c b 1 3 b d O f 5 e 8 e O < § < § P 0 3 d 0 f 2 c 8 d 0 0 2 e 6 3 c P § H P8 4 2 d a 4 3 c 8 4 2 e 6 < . - § < . .

5 J u l y 1 9 8 7 : V o l u m e 8 I s s u e 0

Page 61: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 61/84

C G

D

I 1 1 E

O H

B

E P G

F

J

J D H M P P

O D L

M K J B L P I

K F

G E

K F D J A E K A H D

J J

K

B

C O M P A R E : B A S I C P o r t i o n

1 p o k e 5 6 , 6 4 : c l r : c o 0 6 : c r 0 2 : c b : p o k e 6 4 6 , c o: p o k e 5 3 2 8 0 , c r : p o k e 5 3 2 8 1 , c

2 i p e e k ( 2 6 6 3 6 ) 5 a n p e e k ( 2 6 6 3 8 ) 5 t h e n l O O

3 g o s u b 9 4 0 : p r i n t " B J S T A N D B Y L o a d i n gM S u b r o u t i n e s .

4 d n p e e k ( 1 8 6 ) : l o a d " c m p . m l . 6 8 0 0 " , d n % , 11 0 h d F i l e C o m p a r i s o n U t i l i t y V 3 . 4 * 1 1 b x $ = " [ 3 4 * ' s ] "1 2 0 r e m o f c h r $ ( 1 6 0 ) : n f $ c h r $ ( 1 7 6 )1 3 m m O : r c % O : c r $ c h r $ ( 1 3 ) : z e $ c h r $ ( O )

: f o r i t o 1 6 : s p $ s p c h r $ ( 1 6 0 ) : n e x t1 4 0 o v $ " : o t $ : o z $ " : o s $ "

: o b ° / o = 0 : o y %1 5 n v : n t $ : n z $ " : n s $ "

: n b ° / o O : n y ° / o1 6 0 :1 7 0 g o s u b 9 4 01 8 d n ° / o O : i n p u t " D i s k u n i t n ( 8 - 1 1 ) " ; d n %

: i d n t h e n e n 1 9 i d n % < 8 o d n % > 1 1 t h e n p r i n t " U n i tn m u s t b 8 - 1 1 " : g o t o 1 8 02 0 g o s u b 9 4 0 : o l $ " : i n p u t " O L f i l e n a m e

o r | | $ | 3 " ; o l $2 1 i o l $ t h e n g o s u b 9 7 0 : g o t o 2 0 02 2 i o l $ = t h e n 1 7 02 3 n u " : i n p u t " N E f i l e n a m e o Q ; n u $2 4 0 i f n u $ = " $ t h e n g o s u b 9 7 0 : g o s u b 9 4 0 : g o t o 2 0 02 5 i n u $ = " t h e n 2 0 02 6 0 p d $ = " : i n p u t " R e p o r t t o D s | 3 c r e e n

o B p 0 r i n t e r " ; p d $2 7 i p d $ = " t h e n 2 3 02 8 i p d $ = " s t h e n p n ° / o 3 : p c ° / o 0 : g o t o 3 1 02 9 i p d $ = " p t h e n p n ° / o 4 : p c ° / o 7 : g o t o 3 1 03 0 g o t o 2 6 03 1 0 :3 2 : r e m — g e f i l e t y p e , t r k , s e c t o r3 3 0 o o $ l e f t $ ( o l $ s p $ , 1 6 3 4 n n l e f t $ ( n u $ s p $ , 1 6 3 5 0 s y s 2 6 6 2 7 : i f n u $ = " * t h e n n y ° / o 1 : n b ° / o3 6 0 i f r c ° / o < 1 2 8 t h e n 4 0 03 7 i r c % < 2 5 5 t h e n a f a i l e d . " : g o t o 3 9 03 8 a $ " c a n c e l l e d . "3 9 p r i n t " D i r e c t o r y s e a r c h ; a $ : g o t o 4 4 04 0 i o y % < > 0 a n n y % < > 0 t h e n 4 8 04 1 i o y 0 t h e n p r i n t " O L f i l e n o f o u n d . "4 2 i n y t h e n p r i n t " N E f i l e n o f o u n d . "4 3 p r i n t " E n t e r G S t 0 l i s t t n e d i s k d i r e c t o r y . "4 4 p r i n t " P r e s s a n k e t c o n t i n u e "4 5 0 g e t a $ : i f a $ = " t h e n 4 5 04 6 g o t o 2 0 04 7 0 :4 8 : r e m — g e r e p o r t a n r e c o r d t y p e4 9 o s z e $ : p r i n t " C h o o s e H a E J s c i i " ;5 0 i f o y t h e n p r i n t " , b | 3 a s i c ,

0 i s a s s e m b l y "5 1 o v " : i n p u t " . h e f l x Q " ; o v $5 2 i o v a o o v x t h e n 5 8 05 3 i o y a n o v b " t h e n o t c

: o z $ c h r $ ( 0 ) : g o t o 8 2 05 4 i o y a n o v d t h e n o t f

A C P J

F L F N N O

I A L

E C G

I M

G K L C

O F I

D H C G M B B

P O G E C M M L K L L

I J

K

L

E P B D

A : o z $ c h r $ ( 1 ) : g o t o 8 2 0

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

5 5 i o v t h e n g o t o 8 2 05 6 g o t o 4 9 05 7 : r e m — r e c o r d s p e c i f i c a t i o n5 8 o t : i n p u t " I r e c o r d l e n g t h U J i x e d

o Q J a r i a b l e " ; o t $5 9 i o t " f t h e n 6 3 06 0 i o t v t h e n 6 6 06 1 i o t $ = " t h e n 4 9 06 2 g o t o 5 8 06 3 0 : i n p u t " S p e c i f y r e c o r d l e n g t h ( - 2 5 5 ) " ; : i f x < 1 o x > 2 5 5 t h e n 5 8 06 4 o z c h r $ ( x ) : g o t o 8 2 06 5 : r e m — v a r i a b l e I r e c o r d6 6 p r i n t " C h o o s e e n o r e c o r d i n d i c a t o r . . 6 7 o t " : i n p u t " c Q h a r a c t e r , Q Q e n g t h ,

o r n m 0 a s k " ; o t $6 8 i o t c t h e n a c h a r a c t e r " : g o t o 7 3 06 9 i o t t h e n a m a s k " : g o t o 7 3 07 0 i o t " t h e n 7 9 07 1 i o t $ = " t h e n 5 8 07 2 g o t o 6 6 07 3 x " : p r i n t " E n t e r v a l u e o ; a $ ; " ( 0 - 2 5 5 ) " ;

. i n p u t x $ : i f x $ t h e n 6 6 07 4 v a l ( x $ ) : i f x < o x > 2 5 5 t h e n 7 3 07 5 0 o z $ = c h r $ ( x )7 6 x : i n p u t E n t e r m i n i m u m r e c o r d l e n g t h

( 0 - 2 5 5 ) " ; x $ : i f x $ = t h e n 7 3 07 7 v a l ( x $ ) : i f x < o x > 2 5 5 t h e n 7 6 07 8 o s c h r $ ( x ) : g o t o 8 2 07 9 x $ " . i n p u t " S p e c i f y t h e l o c a t i o n ( - 2 5 5 ) " ; x $

: i x " t h e n 7 6 08 0 v a l ( x $ ) : i f x < o x > 2 5 5 t h e n 7 9 08 1 0 o z $ c h r $ ( x )8 2 i o v t h e n 2 6 08 3 n v o v $ : n t $ o t $ : n z $ o z $ : n s $ o s 8 4 0 :8 5 : r e m — p r o d u c e c o m p a r i s o n r e p o r t8 6 a c h r $ ( 1 4 7 ) : b $ = [ s p c s ] " : i p n % < > 3

t h e n a $ c h r $ ( 1 2 ) : b $ = " [ 1 6 s p c s ] "8 7 0 o p e n p n ° / o , p n % , p c %8 8 0 p r i n t # p n % , a $ ; b $ ; b x $ ; c r $ ; b $ ; h d $ ; c r $ ; b $ ; b x $ ; c r $8 9 p r i n t # p n % , b $ ; " O L N a m e : ; o l $9 0 p r i n t # p n % , b $ ; " N E N a m e : ; n u $ ; c r $9 1 s y s 2 6 6 2 4 : g o s u b 9 9 0 : g o t o 2 0 09 2 0 :9 3 : d i s p l a y s c r e e n h e a d e r9 4 p r i n t " g j c h r $ ( 1 4 ) t a b ( 3 ) h d $ c r $ c r $ : r e t u r n9 5 0 :9 6 : l i s t d i r e c t o r y9 7 p n ° / o = 3 : n u $ = * : o p e n p n % , p n % , p c %

: s y s 2 6 6 3 09 8 0 :9 9 a C o m p a r e : i n u * t h e n

a L i s t i n g1 0 0 0 b $ = " f i n i s h e d . " : i f r c % > 9 9 t h e n b " f a i l e d . "

. i r c 2 5 t h e n b " c a n c e l l e d . "1 0 1 0 i f n u $ < > " * t h e n b b $ + s t r $ ( m m % )

m i s m a t c h e s . "1 0 2 0 p r i n t # p n % , c r $ c r $ a $ b $ : p r i n t # p n ° / o : c l o s e p n 1 0 3 0 i f p n % O 3 t h e n 1 0 6 01 0 4 0 p r i n t " P r e s s a n k e t c o n t i n u e . "1 0 5 0 g e a $ : i f a " o a c h r $ ( 1 3 6 ) t h e n i 0 5 01 0 6 0 r e t u r n

J u l y 1 9 8 7 : V o l u m e 8 I s s u e O

Page 62: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 62/84

B E J C N G E L N F

P M F O O G M J K N N C G J J H A

A K E O

I IC M G A K E O

I C M G A K E M D P

D J K G H A F

G F J P L F

C O M P A R E : C r e a t e s M a c h i n e L a n g u a g e f i l e

1 r e m * d a t a l o a d e r f o " c o m p a r e "2 f o 2 6 6 2 4 t 3 1 7 9 0 : r e a d3 c c a n e x t4 i c s < > 5 2 3 6 2 6 t h e n p r i n t " ! d a t a e r r o r ! " : e n 5 o p e n 1 , 8 , 1 , " c m p . m l . 6 8 0 0 , p , w "5 5 p r i n t # 1 , c h r $ ( 0 ) c h r $ ( 1 0 4 ) ;6 r e s t o r e7 f o t 5 1 6 78 r e a d a p r i n t # 1 , c h r $ ( a ) ; : n e x t9 c l o s e 1 p r i n t " o k m f i l e h a b e e n

w r i t t e n . " : e n 1 0 0 :1 0 0 0 d a t a 7 6 3 8 , 1 0 5 , 7 6 2 1 , 1 0 6 ,1 0 1 0 d a t a 1 0 7 , 9 9 , 1 0 9 , 1 1 2 , 5 1 , 4 6 ,1 0 2 0 d a t a 1 5 1 , 1 0 8 , 7 6 , 1 9 4 , 1 0 9 , 7 6 1 0 3 0 d a t a 7 6 7 9 , 1 1 0 , 7 6 , 1 1 1 , 1 1 0 ,1 0 4 0 d a t a 1 1 0 , 7 6 , 2 3 0 , 1 1 0 , 7 6 1 1 1 0 5 0 d a t a 2 4 5 , 1 1 2 , 7 6 4 8 , 1 1 3 , 7 6 1 0 6 0 d a t a 7 6 , 1 0 1 , 1 1 4 , 7 6 , 1 1 0 , 1 1 5 ,1 0 7 0 d a t a 1 1 6 , 7 6 , 2 1 8 , 1 1 7 , 7 6 , 2 4 6 ,1 0 8 0 d a t a 6 1 , 1 1 8 , 7 6 , 1 2 8 , 1 1 8 , 7 6

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

1 2 0 , 0 8 5 8 4

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

0 5 8 8 3

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

5 0 0 0 0 0 o o 0 0 0 0 0 o 0 0 0 0 0 0 0 0

0 0 0 o o 0 0 0 o o 0 o 0 0 0 0 0 0 0 0 0

7 6 1 6 5 ,0 , 8 ,

5 5 , 4 4 ,8 3 0

9 7 1 0 9 , 1 0 1 ,4 6 , 4 6 , 4 6 ,

0 0 o o o o 0 0 0 0 0 0 o 0 o 0 0 0 0 0

4 9 4 4

1 0 1 , 1 1 0 ,4 6 4 6

6 4 0 0 0 0 0 0 o 0 0 o 0 0 0 0 0 0 0 0 o 0

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

2 4 0 ,

8 0 0 0 o o 0 0 0 0 o 0 o 0 0 0 0 0 0 0 0

0 0

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

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

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

7 6 9 5 2 7 1 9 , 1 1 07 6 1 5

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

1 1 7 , 7 2 5 2 , 1 1

7 6 , 1 0 31 1 9 , 7

1 5 4 8 4

1 0 2 , 1 0 54 6 4

1 1 9 , 1 1 41 5

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

3 2 1 9 4 , 1 3 33 2 3

1 0 4 , 2 0 88 1 6

2 7 3 1 8 1 ,1 3 3 , 7

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

1 6 2 3 2 2 0

2 4 0 ,3 2 5

1 4 1 , 9

C I

J F

C C E

N F

M P K C E H E J D C O B H J N C E K A C K

B O

E C O K F E P F

L A C F F M G D P K G N L A N O K A C A F L L B

M E

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

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

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

6 6 9 3 2 1 3 6 7 3 3 2 3 3 8 3 6 9 3

2 5

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

2 3 3 3

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

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

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

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

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

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

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

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

0

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

1 7 8 7 6 8 8 8 6 6 7 8 7 7

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

3 2 , 2 0 41 6 3 3 7

1 8 1 .1 0 4 .

2 7 1 8 1 1

1 0 4 .6

1 2 1 6

1 1 2 1 5 2 0 1 3 1 3 1 3

2 1 4

8 1 8 0 ,1 0 4 , 1 6 6 ,

4 1 3 6

d a t ad a t ad a t ad a t ad a t ad a t ad a t a 1 7 3 ,d a t a 1 6 0 ,d a t a 1 3 6 ,

1 4 1 4 1 4 9 ,1 0 4 .1 6 9 .

9 1 7 1 6

5 3 2

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

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

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

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

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

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

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

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

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

1 1 1 3 6 ,7 8 , 1 8 1 ,

7 2 4 0 ,1 0 4 , 3 2

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

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

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

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

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

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

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

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

1 6 0 ,2 5 1 , 1 3 3

2 1 , 1 0 41 6 5 , 2 5 21 4 5 , 2 5 1

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

9 0 1 0 2 0 4 , 2 5 5

1

1

1 4 9 ,1 4 9 ,1 4 9 ,1 8 0 ,1 4 8 ,

0 , 2 0 86 3

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

1 6 8 1 2 6 , 2 0 82 0 9 , 1 2 4

3 , 1 3 81 2 8 , 1 3

3 , 1 7 71 5 9 , 1 0 2 4 6 , 1 6 01 0 4 , 1 4 1 3 4 , 2 1 6 9 ,1 0 4 , 1 7 1 0 4 , 9

7 8 , 1 6 91 7 1 6

2 1 6 1 4 3

1 2 4 , 1 6 3 0 1 0

1 0 5 , 1 0 82 0 4 , 1 0 1 4 1 , 2 2 4

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

Page 63: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 63/84

I N A

M N P L H A K L N D L D D L

G E

P E L I

I K E O N G G

M C E

C A G F E K O

I A D D K G C

P O L G L

N P P

C I

P L O L

M I I

L E O

2 1 8 02 1 9 02 2 0 02 2 1 02 2 2 02 2 3 02 2 4 02 2 5 02 2 6 02 2 7 02 2 8 02 2 9 02 3 0 02 3 1 02 3 2 02 3 3 02 3 4 02 3 5 02 3 6 02 3 7 02 3 8 02 3 9 02 4 0 02 4 1 02 4 2 02 4 3 02 4 4 02 4 5 02 4 6 02 4 7 02 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 02 5 9 02 6 0 02 6 1 02 6 2 02 6 3 02 6 4 02 6 5 02 6 6 02 6 7 02 6 8 02 6 9 02 7 0 02 7 1 02 7 2 02 7 3 02 7 4 02 7 5 02 7 6 02 7 7 02 7 8 02 7 9 02 8 0 02 8 1 02 8 2 02 8 3 0

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

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

0 1 4 1 ,9 0 1 0 4 ,

3 2

2 3 3 3

d a t ad a t ad a t ad a t ad a t a 1 6 d a t a 1 d a t a 1 0 d a t a 9 d a t a 1 0 d a t a 9 d a t a 1 3 d a t a 1 3 d a t a 1 0 d a t ad a t a

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

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

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

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

9 6 1 0 1 4 1 , 1 9 4

3 2 5 5 1 6

1 0 1 3 9 3

2 0 8 ,3 2

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

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

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

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

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

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

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

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

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

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

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

1 6 9 ,2 5 5 ,

2 2 1 6 0 ,3 2 , 6 1 ,

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

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

9 , 0 ,

1 3 2

6 1 2

1 1 2 3 2

1 2 3 4

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

0 0 0 0

2 1 1 4 9 ,

0 7

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

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

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

1 0 4 , 1 6 3 1 6 8 ,

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

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

3 9 , 3 2 ,1 0 1 3 3 ,

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

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

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

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

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

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

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

2 4 , 1 5 3 ,1 3 0

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

1 6 , 2 0 0 ,

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

3 6 , 1 0 4 ,

1 4 9 ,1 4 9 ,1 4 9 ,1 6 9 ,

3 2 1 4 9 ,

0 1 5

8 6 8 3 6

6

1 0 4 , 1 6 91 0 4 , 1 6 2 4 0 ,2 0 1 , 2 5 5

7 8 , 1 6 91 4 1 6

1 8 0 , 1 1 6 6 , 7

4 1 3 6 , 1 0 4

1 7 3 , 9 9 6 3 8 1 4

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

1 3 , 1 4 19 6 , 1 0 45 7 1 0

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

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

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

1 0 4 , 2 0 23 2 , 2 1

2 5 1 , 1 4 13 2 2

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

3 2 6 1 0 4 , 1 7 2

2 , 1 6 23 2 1 9

1 7 3 , 9 1 0 4 , 3 1 6 0 , 1 0 9

3 2 3 1 3 1 , 1 0 4

1 0 1 6 3 2 6

1 2 6 , 1 0 0 , 2 0 8

1 1 2 3 7 , 1 3 4

3 2 2 3 2 2 3 2 2 3 2 2

1 2 8 , 1 7 1 7 0 , 1 6 01 7 7 , 2 5 11 4 9 , 51 4 9 , 1 1 6 9 , 6 2 1 3 ,1 0 4 , 1 4 1 7 3 , 9

M B B H K L A G

N F

H C E

C A G J O K E P B D

H L P G N I

H C N D J N M K K F F

A P C D B M D I E L I

O E P L A L O N G J A

I P

N

2 8 4 02 8 5 02 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 1 0 4 :d a t a 3 2 d a t a 2 5 5 ,d a t a 1 7 6 ,d a t a 2 5 1 ,d a t a 2 1 0 ,d a t a 1 6 0 ,d a t a 1 2 4 ,d a t a 1 3 5 ,d a t a 1 8 d a t a 1 3 3 ,d a t a 7 2 d a t a 2 5 2 ,d a t a 4 7 d a t a 8 d a t a 1 3 6 ,d a t a 2 3 0 ,d a t a 1 0 4 ,d a t a 2 1 d a t a 1 6 0 ,d a t a 2 5 1 ,d a t a 1 6 0 ,d a t a 1 9 8 ,d a t a 1 1 9 ,d a t a 1 3 6 ,d a t a 2 3 4 ,d a t a 1 6 9 ,d a t a 3 3 d a t a 6 8 d a t a 8 d a t a 5 d a t a 2 0 0 ,d a t a 1 3 3 ,d a t a 1 8 1 ,d a t a 2 2 9 ,d a t a 2 0 8 ,d a t a 1 6 9 ,d a t a 1 8 5 ,d a t a 1 3 3 ,

1 3 2

0 o

9 6

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

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

1 3 1 6 0 ,1 3 6 , 1 7 3 ,1 6 9 , 1 9 5 ,

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

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

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

0 1 7 7 ,2 4 0 , 3 5

2 7 2 2 0 8 , 1 8

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

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

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

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

0 2 4 0 ,1 8 5 , 7

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

1 2 1 , 6 2 0 8 , 3 9

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

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

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

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

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

1 6 9 , 0 , 1 3 3 ,1 6 9 , 1 0 4 , 1 3 3 ,

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

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

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

0 1 3 3 , 1 9 8 ,9 0 1 0 4 , 1 0 4 ,7 8 , 1 7 3 , 9 0

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

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

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

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

9 4 , 1 6 20 , 2 2 4

1 8 , 2 2 46 7 2 0

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

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

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

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

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

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

6 0

6 5 8 8

6 1

9 5 1 0 3 2 , 1 9 52 1 1 0

1 0 4 , 1 4 2 5 1 , 1 6 21 7 6 , 72 5 1 , 1 6 2 5 4 , 1 6 92 5 2 , 1 6 1 6 9 ,

8 8 , 1 5 24 6 1 3

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

1 2 9 6 3

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

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

1 7 , 2 0 12 , 2 0 8

2 4 0 , 2 4 9 6 3

1 0 4 , 4 2 5 3 , 1 4

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

3 6 , 1 0 41 5 3 ,

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

2 4 1 2 8 , 1 6 90 , 2 2 4

3 6 , 1 0 43 2 7

3 1 3 4 8 3

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

0 1 6 1 4 5 , 2 5 32 4 2 , 2 0

2 4 1 6 1 6 9 , 2 5 4

9 6 2 2 0 3

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

3 6 1 0

7

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

Page 64: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 64/84

J E

L J D L I P C L L H B A B N D A K K L E O F J F A D J H C D H M E L M C H B F

H A G G

K J P

C P A D E K N

I B N B K P

I IM N

I J

3 5 0 03 5 1 03 5 2 03 5 3 03 5 4 03 5 5 03 5 6 03 5 7 03 5 8 03 5 9 03 6 0 03 6 1 03 6 2 03 6 3 03 6 4 03 6 5 03 6 6 03 6 7 03 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 03 7 8 03 7 9 03 8 0 03 8 1 03 8 2 03 8 3 03 8 4 03 8 5 03 8 6 03 8 7 03 8 8 03 8 9 03 9 0 03 9 1 03 9 2 03 9 3 03 9 4 03 9 5 03 9 6 03 9 7 03 9 8 03 9 9 04 0 0 04 0 1 04 0 2 04 0 3 04 0 4 04 0 5 04 0 6 04 0 7 04 0 8 04 0 9 04 1 0 04 1 1 04 1 2 04 1 3 04 1 4 04 1 5 0

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

1 9 7 ,5

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

8 6

2 0 8 ,5 6

0 0

2 4 8 7 3 2 8 7 2 4 5 6 3 2

1 0 4 ,8 1

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

0 2 5 5 ,

5 4 2 1 7 ,1 5 0 ,

8 9 1 6 0 ,1 8 3 ,

8 7 0

2 4 0 ,5 3

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

7 8 1 8 1 ,

7 9 1 1 8 3

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

3 2 1 7 3 2

1 1 3 ,1 9 4 ,

3 2 3 2

1 5 7 ,1 4 1 ,1 6 2 ,

2 7 8

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

3 1 4 5 ,

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

7 5 3 2

1 4 4 ,1 0 4 ,

8 1 1 4 1 ,1 0 4 ,1 0 8 ,

9 4 9 7

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

3 2 1 5 3 ,1 6 9 ,

1 6 1 5

1 8 5 ,0

2 5 5 ,2 0 8 ,

0 1

1 7 4 ,3 2 1 3

2 5 5 ,4 8

1 5 3 ,1 9 3 ,

5 6 1 1

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

9 2 1 6 6 ,1 1 3 ,

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

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

8 1 1 6 2 ,1 8 1 ,

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

0 1 5 4 0 1 2 1 3

0 o

3 2 0 0

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

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

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

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

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

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

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

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

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

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

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

3 2 2 3 0 ,1 1 3 , 1 6 2 ,

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

8 , 1 3 3 ,

2 3 6 , 1 2 7 , 1 0 42 4 0 , 1 8 4 , 2 3 22 2 4 , 7 7 , 2 0 8

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

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

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

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

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

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

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

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

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

3 , 1 8 2 , 1 71 8 5 , 1 2 1 3 3 , 9 0 , 1 3 42 5 5 , 1 4 5 , 8 2 0 8 , 5 , 2 0 01 0 4 , 1 6 8 , 1 3 82 5 5 , 1 8 5 ,

3 2 , 1 8 3 , 2 5 53 2 , 1 9 8 , 2 5 5

1 5 3 , 1 9 4 , 1 0 41 4 0 , 1 9 3 , 1 0 1 0 4 , 1 3 , 1 9 51 6 9 , 3 2 , 1 6 02 0 8 , 2 5 0 , 2 4

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

8 0 , 1 3 3 , 8 6 , 1 6 5 , 8

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

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

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

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

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

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

8 5 , 1 8 1 , 9

C P A I

B D L

F G

M H K J B J

C L O A B A I F L

C L

J H K A P N L E L L P K D C E P D A D J L D

G K B J M

F L E K P L H M M C A O H

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

8 6 8 0

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

2 4 0 ,2 4 0 ,2 4 0 ,

4 8 4 5

1 7

9 6 1 1 4 ,1 4 1 ,

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

4 5 1 1 4 ,

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

0 0

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

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

1 6 2 5 3 ,

3 2 1 6 9 ,

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

3 6 2 4 0 ,2 0 1 ,

3 2 1 3 3 ,1 1 3 ,1 3 3 ,

2 7 1 6 5 ,1 4 4 ,

2 6 8

1 6 1 0 4 ,1 0 4 ,1 1 4 ,2 0 1 ,

0 1 4 1 ,

8 1 0 4 ,

8 2 5

1 6 8 2

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

5 1 1 4 ,

3 2 0

1 4 1 ,1 0 4 ,

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

2 4 2 0 2 .

3 4

1 2 7 .1 3 3 .2 5 1 ,1 5 7 .

4 1 0 4 ,2 3 2 .

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

8 1 8 7 .

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

8 9 9 3 8 6

2

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

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

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

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

6 8 2 4 0 ,1 7 3 , 8

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

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

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

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

5 7 1 0 4 ,0 0

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

3 8 2 0 6 ,8 2 3 2

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

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

3 2 , 7 5 ,8 8 3 2

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

1 0 , 2 3 0 ,3 2 1 8 7 ,9 0 , 3 2 ,

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

7 8 8 8

8

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

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

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

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

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

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

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

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

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

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

0 , 0 ,1 4 1 , 2 0 7 , 1 1 42 4 0 , 6 , 1 6 91 6 9 , 3 2 , 1 6 22 0 5 , 1 1 4 , 2 41 1 4 , 9 6 , 1 7 42 0 0 , 1 1 4 , 3

7 5 1 0 4 , 2 0 02 0 1 , 2 5 5 , 2 4

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

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

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

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

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

4 5 3 2 , 2 0 01 6 4 , 8 9 , 1 6 52 4 0 , 2 3 , 2 3 01 1 6 , 3 2 , 1 8 72 5 3 , 1 6 5 , 9 1 1 6 , 1 6 9 , 2

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

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

Page 65: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 65/84

F A N E

C B N M P I

H J

C G L G K P

A A P F A F

M K K C N N I

M N D B E

G J J J D I P M G H P N E

C C G P F M

I L D P O A

E B J G K

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

3 2 2 0 6 8 2 0

1 3 3 , 8 1 6 5 , 8 7

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

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

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

4 8 , 3 7 ,6 4 3 6

2 0 0 , 1 1 6 ,8 3 6

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

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

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

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

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

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

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

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

1 6 9 , 1 6 9 6 , 1 1 7 ,

1 6 9 , 8 9 6 1 1 7 ,

1 7 3 , 9 4 1 4 7 , 1 1 7 ,

3 3 2 1 1 7 , 2 0 6 ,

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

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

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

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

8 1 3 3 ,

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2 0 1 ,2 1 0

8 8 1 3 9 1 , 1 3 3

0 , 1 3 31 3 3 , 9

9 2 3 3 6 9

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

8 3 2 0 0 , 1 1 6

8 9 3 1 6 9 , 6

9 0 3 1 7 8 , 1 1 1 7 3 , 1 7 9

3 2 2 0 3 2 5

1 0 4 , 3 7 2 , 1 3 8

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

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

3 2 2 0 1 1 7 , 1 7

3 2 , 1 9 31 7 4 , 9

3 2 2 0 3 2 5

2 0 2 , 1 0 3 , 2 4 0

1 6 9 , 5 9 7 1 1

1 6 9 , 2 9 7 1 1

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

1 1 7 7 ,

7 2 , 1 3 81 1 7 , 2 0 0

3 2 7 1 1 7 , 2 0 02 3 2 , 1 3 4

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

3 9 8

L 0 K M M K E P M I F F A J L

G B L A O O O

K B N B L I

L K C K

G A

L D C N P I

G N A L J O B M O D G

A G G J D

I IK P N E

A G G O L

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

7 9 8 1

6 7 5

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

7 1 8 1 ,1 6 0 ,

7 5 0

1 1 7 ,1

7 9 1 6 5 ,

1 0 9

1 6 5 ,1 8 5 ,1 3 3 ,

9 1 6 5 ,2 5 2 ,

8 7 8 9

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

0 1 7 7 ,

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

9 6 1 3 3 ,2 5 2 ,

2 4 2 5 2 ,

0 1

2 4 8 ,6 4

1 0 5 ,8

4 1 7 4

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

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

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

3 2 7 5

1 8 5 ,1 8 1 ,0

2 1 0 4 ,2 0 8 ,

0 1 4 9 ,1 6 5 ,

8 1 2 0 2 ,2 0 8 ,

8 0 1 0

2 5 4 ,0

8 0 7 2

1 6 5 ,0 0

1 0 4 ,1 0

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

3 2 7 2

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

9 1 3 3 ,1 7 0 ,

7 2 1 4 4 ,1 2 0 ,

1 5 7 4

4 8 7

0 1 2 9 ,

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

0 3 2

1 0 4 ,3 2 9 2 3 2

1 0 1 3 3 ,9 , 1 9 7 ,8 , 1 9 7 ,

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

6 3 , 1 0 4 ,1 0 4 , 9 6

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

3 2 7 5 2 4 , 1 0 5 ,

8 2 4 0 ,5 6 1 4 9 ,

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

2 1 7 , 9 1 5 0 , 8

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

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

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

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

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

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

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

1 , 1 3 3 ,1 1 0 4 ,

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

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

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

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

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

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

7 8 1 0 4 ,3 2 4

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

2 0 8 , 5

9

8 0 , 1 8 1 , 1 8 1 4 8 4 8 0 , 1 4 4 , 3

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

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

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

1 0 4 , 1 7 7 , 8 73 , 1 7 6 ,6 1 6 9 ,0 , 1 6 9 ,

1 6 8 , 1 0 4 ,8 0 , 2 0 80 , 2 0 8 , 1

1 8 2 , 1 1 , 2 0 28 0 , 3 2 , 6

1 6 5 , 8 1 , 1 3 32 5 3 , 1 8 5 , 1

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

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

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

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

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

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

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

9 6 8 7 0 , 1 6 5 ,

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

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

0 1 6 8 , 1 3 2 3 2 , 2 4 , 1 5 22 0 8 , 2 4 9 , 1 6 1 3 3 , 8 7 , 1 3 41 0 4 , 1 4 1 , 1 2 2 4 8 , 1 6 2 , 1 61 2 7 , 1 0 4 , 1 0 1 7 3 , 1 2 8 , 1 0 41 0 4 , 1 7 3 , 1 2 91 2 9 , 1 0 4 , 2 0 2

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

7 2 , 1 3 8 , 3 1 2 0 , 1 3 6 , 2 0 82 0 8 , 4 , 1 6 91 2 6 , 1 0 4 , 2 0 81 6 2 , 0 , 1 4 2

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

Page 66: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 66/84

K H H F

H 0

M K K F K E F O F

M J G C O O M J G

K F H

N O O P J 0

G M C P O L N P K D P C O M P I

G J F A O

H J

C H P P

J O N M J G

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

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

1 2 6 ,9 3

1 4 4 ,2 0 8 ,

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

1 0 4 ,9 6 1 0

2 1 2 2 ,

1 3 4

1 2 1

3 5 1

5 8 1

1 1 4 ,1

5 1 1

1 1 5 ,1

1 2 2 ,1

3 4 1 2 1

3 5 1

5 8 1

1 1 4 ,1

5 1 1

1 1 5 ,1

1 2 2 ,1 3

2

3

5 8 1

1 1 4 ,1

5 1 1

1 1 5 ,1

1 2 2 ,1

3 4 1

2 1

3 5 1

5 8 1

1 1 4 ,1 5 1 1

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

7 9 6 3 7 9 6 3 7 9 6 3 7 9 6 3 7 9 6 3 7 9 6 3 7 9 6 3 7 9 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3

9 3 3 2

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

1 4 9 ,1 4 4 ,1 4 4 ,

9 6 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 8 6 3 6 8 6 3 6 8 6 3 6 8 6 3 6 8 6 3 6 8 6 3 6 8 6 3 6 8 6 3 8 2 6 8 6 8 6 8 6 8 6 8 6 8 2 6 8 2 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3

8 7 1 2

4 1 1 1

3 4 1 5 1

3 5 1 8

1 1

1 1 4 ,1 1 1

1 1 5 ,3 5

1 3 4 3 4

1 5

3 5 3 5 1 8

1 1

1 1 4 ,1 1 1

1 1 5 ,1 1 1

3 4 1 5

3 5 3 5 1 8

1 1 1 4 ,

1 1 1

1 1 5 ,1 1 1

3 4 1 5

4 3 3 5 1 8

1 1

1 1 4 ,1 1 1

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

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

1 3 1 2 2 5

8 6 6 8 7 8 6 8 8 6 6 8 7 6 6 8 8 6 7 7 7 7 7 7 7 6 6 7 6 6 6 7 8 6 6 8 7 8 7 8 8 6 6 8 7 6 6 8 8 6 6 7 7 7 7 7 8 6 6 7 6 6 6

K M A

I A C H K O F N L N M L M F J K L

C M N F A F E M H H C B D A O E

M G E

I K C M O C N L

G A G O E N G D

I L D N O

I K G G C K

6

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

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

1 1 5 ,1

1 2 2 ,1

3 4 1 1 1

3 5 1

5 8 1

1 1 4 ,1

5 1 1

1 1 5 ,1

1 2 2 ,1

3 4 1 2 1

3 5 1

5 8 1

1 1 4 ,1

5 1 1

1 1 5 ,1

1 2 2 ,1

3 4 1 2 1

3 5 1

5 8 1

1 1 4 ,1

5 1 1

1 1 5 ,1

1 2 2 ,1

3 4 1 2 1

3 5 1

5 8 1

1 1 4 ,1

5 1 1

1 1 5 ,1

6 5 6 3 8 3 6 3 8 3 6 3 6 3 6 3 8 3 6 3 8 3 6 3 8 3 6 3 8 3 6 3 8 3 6 3 7 6 6 3 7 6 6 3 7 6 6 3 7 6 6 3 7 6 6 3 7 6 6 3 7 6 6 3 7 6 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3 8 3 6 3 8 3 6 3 8 3 6 3 8 3 6 3 8 3 6 3 8 3 6 3 8 3 6 3 8 3 6 3

6 8 6 3 8 4 6 3 8 4 6 3 6 3 6 3 8 4 6 3 8 4 6 3 8 4 6 3 8 4 6 3 8 4 6 3 6 8 6 3 6 8 6 3 6 8 6 3 6 8 6 3 6 8 6 3 6 8 6 3 6 8 6 3 6 8 6 3 7 7 6 3 7 7 6 3 7 7 6 3 7 7 6 3 7 7 6 3 7 7 6 3 7 7 6 3 7 7 6 3 6 6 6 3 6 6 6 3 6 6 6 3 6 6 6 3 6 6 6 3 6 6 6 3 6 6 6 3 6 6 6 3

6 7 6 3 6 5 6 3 6 5 6 3 6 3 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 3 6 5 6 8 0 6 3 8 6 3 8 6 3 8 0 6 3 8 6 8 6 3 8 6 8 6 6 7 6 6 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3 6 7 6 3

1 1 5 ,1 1

3 4 3 4

1 1

3 5 3 5 1 8

1 1 1 4 ,

5 0 1 1 1 1 2 2

3 4 3 4

1 1

3 5 3 5 1 8

1 1 1 4 ,

5 0 1 1

1 1 5 ,1 1 5 ,

2 1

3 4 3 4 1

1 3 5 3 5 1 8

1 1

5 0 1 1 1

1 1 5 ,2 1

3 4 3 4

1 1

3 5 3 5 1 8

1 1

5 0 1 1 1

1 1 5 ,0

8 2 6 3 6 3 8 3 8 3 6 8 8 4 8 3 8 3 6 6 6 3 8 3 8 3 8 4 8 4 6 3 6 3 7 6 7 6 7 6 7 6 8 4 8 4 7 6 7 6 6 6 6 3 7 6 7 6 6 7 8 4 7 6 7 6 6 7 6 3 6 7 6 8 7 3 6 8 6 7 6 8 6 6 6 3 6 3 6 8 6 7 6 3 6 3 6 8 6 7 6 3 6 7 7 3 7 3 7 8 6 7 7 3 6 6 6 3 6 3 7 3 8 3 6 3 6 3 7 3

J u l y 1 9 8 7 : V o l u m e

7 6 6 8 8 6 8 8 8 6 6 8 8 8 8 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 8 6 6 8 6 8 6 7 6 8 6 7 6 6 6 7 6 6 6 8 6 8 7 7 7 8 7 6 6 6 7 6 6 6 7

I s s u e O

Page 67: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 67/84

P o p T o F r o n tf o t h A m i g a

B r y c e N e s b i t tB e r k e l e y , C

( C 1 9 8 7 f r y c e N e s b i t t

H a v e y o e v e r f o u n d c o r n e r o w i n d o w y o w i s h e d t w o r kw i t h , b u h a t p l a y s o m e s o r t o e l e c t r o n i c s h e l l g a m e t b r i n g i t t h f r o n t ? T h i s u t i l i t y p r o v i d e s q u i c k s h o r t c u t : s i m p l ya c t i v a t e a n w i n d o w i a n s c r e e n b c l i c k i n g i n t o a n p a r t o i t h i l e f t A m i g a - F a n t h a t w i n d o w w i l l c o m e f o r w a r d . P o p T oF r o n t i w r i t t e n e n t i r e l y i 6 8 0 0 0 f o t h A m i g a . I a d d i t i o n t b e i n g u s e f u l u t i l i t y , t h c o d e p r o v i d e s v a l u a b l e e x a m p l e o a d d i n g k e y b o a r d h a n d l e r t t h s y s t e m a n i n c l u d e s a v e r s i o no t h e x e c _ s u p p o r t " l i b r a r y , s e t o f r o u t i n e s n o r m a l l y a v a i l ab l o n l y t p r o g r a m m e r s .

e t t i n g i r u n n i n g

h s o u r c e c o d e i l i s t i n g c a b t y p e d i n t o a n e d i t o r a n a s s e m b l e d w i t h t h M e t a c o m c o 6 8 0 0 0 a s s e m b l e r . ( I y o a r l a z y , c o p y i a v a i l a b l e o t h n e T r a n s a c t o r A m i g a d i s k ) . A i c o n c a n b e c r e a t e d b m o d i f y i n g a e x i s t i n g i c o n o t y p e t o o l

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

a c t i v a t e P o p T o F r o n t , d o u b l e - c l i c k o i t i c o n f r o m W o r k e n c h o t y p e ' r u n P o p T o F r o n t ' f r o m t h C L I . T t e s t i o u t , p u s h

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

t u r n e d o f f . W h i l e i i p o s s i b l e t i n s t a l l s e v e r a l P o p T o F r o n t s a n b e n e f i t r e s u l t s .

o i w o r k s

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

a n e x e c _ s u p p o r t r o u t i n e s e x i s t o n l y t g e t h h a n d l e rd . T h i s i d o n e i t h r e e p a r t s :

l ) T h e i n t u i t i o n . l i b r a r y i o p e n e d a n d i t a d d r e s s p l a c e d i t h h a n d l e r c o d e f o l a t e r u s e . N o t e t h a t s i n c e t h h a n d l e r u s e s i t t h i n t u i t i o n . l i b r a r y i n e v e r c l o s e d .T h s t a r t u p c o d e a l l o c a t e s s o m e P U B L I C m e m o r y t c o n t a i nt h e h a n d l e r . P U B L I C i u s e d s t h a t , o f u t u r e v e r s i o n o t h A m i g a w i t h m e m o r y - m a n a g e m e n t u n i t , t h e r e i n p o s s i b i li t t h a t t h h a n d l e r w i l l e v e r b s w a p p e d o u t d i s k .O n c e t h h a n d l e r i i i t n e h o m e , t h e s t a r t u p c o d e a d d s i t t h h a n d l e r l i s t b s e n d i n g t t h e i n p u t . d e v i c e a n I / OR e q u e s t b l o c k o t y p e I N D J U D D H A N D L E R . I t p u r p o s e t h u sf u l f i l l e d a n e r r o r s c h e c k e d f o r , i t e r m i n a t e s , l e a v i n g t h eh a n d l e r i p l a c e .

T h h a n d l e r g a z e s l i g h t l y i n t o t h m e a n i n g o e a c h i n p u t . d e v i c ee v e n t t h a t p a s s e s b y W h e n t h c o r r e c t o n i d e t e c t e d i f i n d st h e p o i n t e r t t h a c t i v e W i n d o w S c r e e n f r o m t h e i r k n o w nl o c a t i o n s 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 , a n c a l l s t h I n t u i t i o nS c r e e n T o F r o n t ( ) a n d W i n d o w T o F r o n t ( ) r o u t i n e s . T h L e f tA m i g a - F k e y s t r o k e i t h e n r e m o v e d f r o m t h e i n p u t s t r e a m .

; P o p T o F r o n t ( C ) 1 9 8 7 B r y c e N e s b i t t . U n l i m i t e d f r e e n o n - e x c l u s i v e l i c e n c e; h e r e b y g r a n t e d t a n s e n t i e n t b e i n g t u s o a b u s e t h i s c o d e i a n w a w h a t s o e v e r p r o v i d e d t h a t t h i s a n a n o t h e r c o p y r i g h t n o t i c e s r e m a i n f u l l y; a t t a c h e d a n a r r e p r o d u c e d i a n s i m u l t a n e o u s l y d i s t r i b u t e d p r i n t e d m a t t e r; a n d w i t h t h e e x c e p t i o n t h a t , w i t h o u t p r i o r w r i t t e n p e r m i s s i o n , i n o ; b u t i l i z e d b a n e n t i t y t h a t h a b e e n c o m m o n l y r e f e r r e d t a R o b e r t; W S k y l e s , S k y l e s E l e c t r i c W o r k s , J i D r e w , R e g i e W a r r e n o a n o r g a n i z a t i o n; f o u n d e d b y c o n t r o l l e d , e m p l o y i n g o p r o f i t i n g a n y s u c h e n t i t y , i t ; o f f s p r i n g o s p o u s e s .; A u t h o r c o r r e s p o n d e n c e , b u o s t u p i d i t y r e p o r t s m a b d i r e c t e d t o

B r y c e N e s b i t t1 7 1 2 M a r i n A v e .B e r k e l e y , C 9 4 7 0 7 - 2 9 0 2

N O L I S TI N C L U D E ' e x e c / t y p e s . i 'I N C L U D E ' e x e c / m e m o r y . i 'I N C L U D E ' e x e c / i n t e r r u p t s . i 'I N C L U D E ' e x e c / i o . i 1I N C L U D E ' l i b r a r i e s / d o s e x t e n s . i 'I N C L U D E ' d e v i c e s / i n p u t e v e n t . s . i 'I N C L U D E ' d e v i c e s / i n p u t . i 'I N C L U D E ' i n t u i t i o n / i n t u i t i o n b a s e . i 'I N C L U D E ' w o r k b e n c h / s t a r t u p . i 1; I N C L U D E ' l i b / e x e c _ l i b . i ' ; e l i m i n a t e s l i n k w i t h a m i g a . l i b; I N C L U D E ' l i b / d o s j i b . i ' ; n o n - s t a n d a r d , a n v e r y s p e e d y !; I N C L U D E ' l i b / i n t u i t i o n j i b . i ' ; S e e e x e c / e x e c j i b . i f d . f i l e sL I S T

i s r i i o m a c r ox r e fj s e n d m

j m p l i b m a c r ox r e fj m e n d m

C O D Es t a r t u p : m o v e . l

s u b a . lj s r l i bm o v e . lm o v e qm o v e . lb n e . s

_ L V O \ 1_ L V O \ 1 ( a 6 )

_ L V O \ 1_ L V O \ 1 ( a 6 )

4 , a 6a 1 , a 1F i n d T a s kd O , a 5# 0 , d 0p r _ C L I ( a 5 ) , d 1f r o m C L I

; G e t T H I S t a s k

; S e t z e r o f o l a t e r; P o i n t e r t C L o n l y s t r u c t u r e: l n o z e r o , t h e n s a v e a z e r o .

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

l e p r _ M s g P o r t ( a 5 ) , a O

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

Page 68: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 68/84

j s r l i b W a i t P o r tl e p r _ M s g P o r t ( a 5 ) , a Oj s r l i b G e t M s g ; M e s s a g e p o i n t e r i D

f r o m C L I m o v e . I d O , - ( a 7 ) ; S a v e m e s s a g e f o l a t e r . . .. . . ) • « . , , • , , « , , . • , * * * . * . « * * . . * « » [ A 6 E x e c B a s e ] [ a 5 t h i s t a s k ]f a i l c o d e e q u r d p o r t s a v e e q u r a l O R e q s a v e e q u r a

m o v e qP r e p a r e S t d I O —m o v e q

b s b e m o v e . lb s b e m o v e . l

# 2 5 , f a i l c o d e

# 0 , d 0_ C r e a t e P o r t EE x i t T o D O Sd O , p o r t s a v e_ C r e a t e S t d l O Ee _ S t d l Oa 1 l O R e q s a v e

O p e n i n p u t . d e v i c e —m o v e qm o v e . ll e

# 0 , d 0d O , d 1d e v n a m e ( p c ) , a O

; ( l o R e q u e s t i s i n A 1 j s r l i bt s t . lb n

C o p y H a n d l e r —m o v e ql e j s r l i bm o v e . lb e q . s

m o v e . lm o v e . lj s r l i bm o v e . lm o v e . lt s t . lb e q . s

O p e n D e v i c ed e _ O p e n

# 0 , d 0l n t u i N a m e ( p c ) , a 'O p e n L i b r a r yd O , I B A S Ee _ l n t u i

; D e f a u l t f a i l c o d e

; p r i o r i t y; [ d O P o r t ]

; [ a 1 l o R e q u e s t ]

; U n i t; F l a g s

; [ d O z e r o i f o k

; A n y v e r s i o n

; [ d O B a s e ]; m o d i f y c o d e

# D o w n E n d - S t a r t , d O# M E M F _ P U B L I C , d 1A l l o c M e md O , a 2d O , a 1d e _ n o m e m

; l o c a t i o n o f b l o c k

l e S t a r t ( p c ) , a Om o v e q # ( ( D o w n E n d - S t a r t ) / 4 ) , d 1 ; L e n g t h i L O N G S

c o p y l p m o v e . l ( a O ) , ( a 1 ) + ; C o p y h a n d l e r t P u b l i c M e m o r yd b r a d 1 , c o p y l p; 6 8 0 1 0 L o o p m o d e !

; — P r e p a r e l O R e q w i t h p r o p e r a d d r e s s e s —H a n d l e r c o d e - S t a r t ( a 2 ) , a O ; o f f s e t m e m b l o c ka O , I S _ D A T A ( a 2 ) ; u n u s e da O , I S _ C O D E ( a 2 ) ; w h e r e c o d e i P o p N a m e - S t a r t ( a 2 ) , a O ; o p t i o n a l a s c i i n a m ea O , L N _ N A M E ( a 2 )

D o l Od e . D o l O# 0 , d 7

; d ( I O R e q - a O )

; z e r o o k ; s e t r e t u r n c o d e t z e r o

l e m o v e . lm o v e . ll e m o v e . l

; — S e n d A D D H A N D L E R —m o v e . l l O R e q s a v e , a m o v e . w # I N D _ A D D H A N D L E R , I O _ C O M M A N D ( a 1 )m o v e . l a 2 , I O _ D A T A ( a 1 ); ( I O R e q i n a 1 )j s r l i bt s t . lb n e . sm o v e q

e _ n o m e me _ D o l Oe j n t u i m o v e . l l O R e q s a v e , a

C l o s e D e v i c el O R e q s a v e , a 1. D e l e t e S t d l O Ep o r t s a v e . a i_ D e l e t e P o r t E

• i t t t M t t t o . . . . , . . . . . « . . » ( a 7 ) + m e s s a g e d r e t u r n c o d eE x i t T o D O S m o v e . l ( a 7 ) , d

b e q . s N o t W B ; l s a v e d p o i n t e r i z e r o , e x i t t C L I .

R e t u r n t h e s t a r t u p m e s s a g e t t h e p a r e n t W o r k b e n c h t o o l . T h f o r b i di n e e d e d s W o r k b e n c h c a n ' t U n L o a d S e g ( ) t h c o d e t o e a r l y .

e _ O p e n

e . S t d I O

m o v e . lj s r l i bm o v e . lb s m o v e . lb s

m o v e . lj s r l i bm o v e . lj s r l i b

N o t W B m o v e . lr t

n t u i N a m e d c . bd e v n a m e d c . b

c n o p

4 , a 6F o r b i dd 6 , a 1R e p l y M s gd 7 , d O

' i n t u i t i o n . l i b r a r y' i n p u t . d e v i c e ' , 00 ,

• • • * e x e c . s u p p o r t / C r e a t e P o r t * *

p o r t = _ C r e a t e P o r t ( p r i )d d O . b

; m e s s a g e p o i n t e r

; S e t " f a i l a t " c o d e

,

; W O R D a l i g n

F U N C T I O N : C r e a t e a n a m e l e s s m e s s a g e p o r t w i t h s p e c i f i e d p r i o r i t y .( e x e c / p o r t s , i )

R E S U L T : T h p o r t p o i n t e r o r Z i a e r r o r o c c u r r e d .R E G I S T E R S : a i d e s t r o y e d u n l e s s _ C r e a t e P o r t E i c a l l e d ,i w h i c h c a s e a 6 m u s t c o n t a i n E x e c B a s e .

E X A M P L E :m o v e q # 3 , d O ; S e t P r i o r i t yj s _ C r e a t e P o r tb e q . s n o p o r t ; N o t e n o u g h m e m o r y o s i g n a l s

: _ C r e a t e P o r t_ C r e a t e P o r t E

; x r e f; x r e fm o v e . lm o v e . lm o v e . bm o v e . lm o v e qj s r l i bm o v e . lt s t . lb e q . sm o v e qj s r l i bm o v e qc m p . lb n e . sm o v e . lm o v e qj s r l i b

c p _ n o m e m o r y a d d q . lm o v e qb r a . s

_ C r e a t e P o r t_ C r e a t e P o r t E4 , a 6a 2 , - ( a 7 )d O , - ( a 7 )# M E M F _ P U B L I C M E M F _ C L E A R , d 1# M P _ S I Z E , d OA l l o c M e md O , a 2d c p _ n o m e m o r y# - 1 , d OA l l o c S i g n a l ; d O r e t u r n

d O , d 1c p _ s i g o ka 2 , a 1# M P _ S I Z E , d OF r e e M e m# 2 , a 7# 0 , d 0c p _ x i t

; - i n d i c a t e s b a s i g n a l

; U n p u s h b y t e; s e t z

c p _ s i g o k m o v e . bm o v e . bm o v e . bm o v e . bs u b a . lj s r l i bm o v e . ll e N E W L I S T a m o v e . l a 2 , d 0

c p _ x i t m o v e . l ( a 7 ) , a r t

e x e c _ s u p p o r t / D e l e t e P o r t * •

d O , M P _ S I G B I T ( a 2 )# P A _ S I G N A L , M P _ F L A G S ( a 2 )# N T _ M S G P O R T , L N _ T Y P E ( a 2 )( a 7 ) , L N _ P R I ( a 2 )a , a 1 ; a 1 O / F i n d t h i s t a s kF i n d T a s k ; [ d 0 = t h i s t a s k ]d O , M P _ S I G T A S K ( a 2 )M P _ M S G L I S T ( a 2 ) , a O ; P o i n t t o l i s t h e a d e r

; l n i t n e l i s t m a c r o

; c c ' s N O a f f e c t e d

; _ D e l e t e P o r t ( p o r t )a

F U N C T I O N : D e l e t e s t h e p o r t b f i r s t s e t t i n g s o m ef i e l d s t o i l l e g a l v a l u e s t h e n c a l l i n g F r e e M e m .

R E S U L T : n o n eR E G I S T E R S : a i d e s t r o y e d u n l e s s _ D e l e t e S t d l O E i c a l l e d ,i w h i c h c a s e a 6 m u s t c o n t a i n E x e c B a s e .

; x r e f _ D e l e t e P o r t; x r e f . D e l e t e P o r t E

; _ D e l e t e P o r t m o v e . l 4 , a 6

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

Page 69: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 69/84

J D e l e t e P o r t E m o v e . lm o v e qm o v e . bm o v e . lm o v e qm o v e . bj s r l i bm o v e . lm o v e qi m p l i b

a , - ( a 7 )# - 1 , d Od O , L N _ T Y P E ( a 1 )d O , M P _ M S G L I S T L H _ H E A D ( a 1 )# 0 , d 0 ; C l e a r u p p e r 3 / o d M P _ S I G B I T ( a 1 ) , d OF r e e S i g n a l( a 7 ) , a # M P _ S I Z E , d OF r e e M e m

i o S t d R e q C r e a l e S t d l O ( i o R e p l y P o r t )a d

F u n c t i o n : A l l o c a t e a l o R e q u e s t b l o c k o s t a n d a r d s i z e .E x a m p l e : m o v e . l M y P o r t . d O

j s _ C r e a t e S t d l Ob e q . s b a d n e w s

; x r e f; x r e f

; _ C r e a t e S t d l O m o v e . l_ C r e a t e S t d l O E m o v e . l

m o v e qm o v e . lj s r l i bm o v e . lt s t . lb e q . sm o v e . bm o v e . l

n o m e m r t

_ C r e a t e S t d l O E_ C r e a t e S t d l O4 , a 6d O , - ( a 7 )# I O S T D _ S I Z E , d O# M E M F _ P U B L I C M E M F _ C L E A R , d 1A l l o c M e md O , a 1d n o m e m# N T _ M E S S A G E , L N _ T Y P E ( a 1 )( a 7 ) , M N _ R E P L Y P O R T ( a 1 )

• • e x e c _ s u p p o r t / D e l e t e S t d l O •

_ D e l e t e S t d l O ( i o S t d R e q )a

F U N C T I O N : D e l e t e s a n i o S t d R e q b y s e t t i n g s o m ef i e l d s t i l l e g a l v a l u e s t h e n c a l l i n g F r e e M e m .

R E S U L T : n o n eR E G I S T E R S : a i d e s t r o y e d u n l e s s _ D e l e t e S t d l O E i c a l l e d ,i w h i c h c a s e a 6 m u s t c o n t a i n E x e c B a s e .

; x r e f; x r e f

; _ D e l e t e S t d l O m o v e . l_ D e l e t e S t d l O E m o v e q

m o v e . bm o v e . lm o v e . lm o v e qj m p l i b

_ D e l e t e S t d l O_ D e l e t e S t d l O E4 , a 6 ; G e t E x e c B a s e# - 1 , d O ; S e t f i e l d s t i l l e g a l v a l u ed O , L N _ T Y P E ( a 1 )d O , I O _ D E V I C E ( a 1 )d O , I O _ U N I T ( a 1 )# I O S T D _ S I Z E , d OF r e e M e m

S t a r ti n t s

c n o p 0 , ; L O N G w o r d a l i g n

; T h i s i a i n t e r r u p t s t r u c t u r e ( e x e c / i n t e r r u p t s , i )d e d e d c . bd c . bd e d e d e

5

; C o m p a r e c l a s s A N s u b c l a s s . $ 0 1 0 0 i a c o m b i n a t i o n o I E C L A S S _ R A W K E Y; f o r i e _ C l a s s a n I E C L A S S _ N U L L f o i e _ S u b C l a s s .

b e q . sm o v e . lb n e . sr t

h u r d l e i( a O ) , d 1M o r e E v e n t s

; G e t } i e _ N e x t E v e n t { p o i n t e rI a n y . . .

; e x i t ( w i t h n c h a n g e s m a d e )

h u r d l e i m o v e . l i e _ C o d e ( a O ) , d 1 ; C o d e & Q u a l i f i e r ,a n d i . w # % 0 0 0 0 0 0 1 1 1 1 1 1 1 0 1 1 , d 1

; M a s k o f t h b i t s o t h q u a l i f i e r f i e l d t h a t w d n o c a r e a b o u t . T h e s ea r I E Q U A L I F E R _ R E L A T I V E M O U S E , _ M U L T I B R O A D C A S T , . I N T E R R U P T ,_ C A P S L O C K , _ L B U T T O N , _ R B U T T O N a n _ M B U T T O N

c m p i . l # $ 0 0 2 3 0 0 4 0 , d 1

; T h e u p p e r w o r d o t h i s c o m p a r i s o n ( $ 0 0 2 3 ) i t h R A k e c o d e f o ' t h l o w e r i I E Q U A L I F I E R _ L C O M M A N D .

K e e p L o o k i n gb e q . sm o v e . lb n e . sr t

h u r d l e 2( a 0 ) , d 1M o r e E v e n t s

; S e e a b o v e . . .; S e e a b o v e . . .; e x i t ( n c h a n g e s )

; M o r e E v e n t s h a n d l e s t h c a s e w h e r e s e v e r a l e v e n t s m a b l i n k e d a n c a e x t r a c t o n o t h e m f r o m t h m i d d l e .

M o r e E v e n t s m o v e . lm o v e . lc m p i . wb n e . sm o v e . la n d i . wc m p i . lb n e . s

a 0 , a 1 ; T e m p o r a r y f o u n l i n k i n gd 1 , a 0 ; L o o k h e r e n e x t . . .# $ 0 1 0 0 , i e _ C l a s s ( a O )K e e p L o o k i n gi e _ C o d e ( a 0 ) , d 1# % 0 0 0 0 0 0 1 1 1 1 1 1 1 0 1 1 , d 1# $ 0 0 2 3 0 0 4 0 , d 1K e e p L o o k i n g

; M o v e t h i s e v e n t ' s i e _ N e x t E v e n t p o i n t e r t t h a t o t h p r e v i o u s e v e n t ,t h e r e b y u n l i n k i n g t h i s o n f r o m t h e c h a i n .

m o v e . l ( a 0 ) , ( a 1 )m o v e . l d O , - ( a 7 )b r a . s h u r d l e 3

; M o v e p o i n t e r t N E X T t p r e v i o u s; P o i n t e r t o b p a s s e d b a c k; G d i t . . .

; T h e p o i n t e r t t h c u r r e n t l y a c t i v e S c r e e n a n W i n d o w s a r a v a i l a b l e a p o s i t i v e o f f s e t f r o m t h I n t u i t i o n b a s e p o i n t e r . T h e s e w i l l b b r o u g h tt t h f r o n t . N o t e t h a t i m a n o b p r o p e r u n d e r t h A m i g a s y s t e m t d t h i s i t h a c t u a l h a n d l e r . I m a b s a f e r t h a v e a n o t h e r t a s kl y i n g a r o u n d i t h b a c k g r o u n d t d t h e a c t u a l w o r k . T h d e s c r i p t i o no t h I n t u i t i o n W i n d o w T o F r o n t c o m m a n d s i n d i c a t e s t h a t i t w i l l n o t a k ee f f e c t u n t i l t h N E X T i n p u t e v e n t , w h i c h ( o c o u r s e ) w i l l n o h a p p e nu n t i l t h i s o n e x i t s .

h u r d l e 2h u r d l e 3I B A S E

; s u c c; p r e d; t y p e i n o s c r e e n^ P r i o r i t y ( O n e s t e p h i g h e r t h a n I n t u i t i o n ); N a m e; D a t a; C o d e i n o w i n d o w

i n t e

; W h e n t h h a n d l e r i e n t e r e d a w i l l p o i n t t l i n k e d l i s t o i n p u te v e n t s o t h t y p e d e f i n e d i t h i n c u d e f i l e ( d e v i c e s / i n p u t e v e n t . i ) P o p N a m eW h e n d o n e m a n g l i n g t h i n p u t s t r e a m i t r e t u r n s n e p o i n t e r i d

; N o t e : A l r e f e r e n c e s t o ( a O ) b e l o w r e f e r t i e _ N e x t E v e n t ( a O ) . T h D o w n E n do f f s e t e q u a t e s t z e r o a n w a e l i m i n a t e d f o e f f i c i e n c y . E N

m o v e . lm o v e . lm o v e . lm o v e . lb e q . sm o v e . lj s r l i bm o v e . lb e q . sm o v e . lj s r l i bm o v e . lm o v e . lr t

d c . bc n o p

( a 0 ) , - ( a 7 ) ; U n l i n k f i r s t e v e n t . } i e _ N e x t E v e n t {a 6 , - ( a 7 )# 0 , a 6 ; S e l f - m o d i f y i n g - > I n t u i t i o n b a s e g o e s h e r ei b _ A c t i v e S c r e e n ( a 6 ) , d Oi n o s c r e e nd 0 , a 0S c r e e n T o F r o n ti b _ A c t i v e W i n d o w ( a 6 ) , d Oi n o w i n d o wd 0 , a 0W i n d o w T o F r o n t( a 7 ) , a ( a 7 ) , d ; P o i n t e r t o n e w , s h o r t e r i n p u t s t r e a m

' P o p T o F r o n t ' , 00 , ; P a d o u t L o n g w o r d b o u n d a r y

H a n d l e r c o d e m o v e . lc m p i . w

a 0 , d 0 ; S a v e p o i n t e r t s t a r t o f c h a i n# $ 0 1 0 0 , i e _ C l a s s ( a 0 )

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

Page 70: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 70/84

Page 71: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 71/84

t h C o m m o d o r e 6 r a t h e r t h a n t h A m i g a , t h o b v i o u s a p p r o a c h w o u l db t c h a n g e t h a t v e c t o r t p o i n t t o u o w c o d e . I a m u l t i t a s k i n g y s t e m , h o w e v e r , w c a n ' t t a k e t h a t k i n d o l i b e r t y ; i w d i d , a n t a s k

t h a t e n c o u n t e r e d t r a p w o u l d e n d u p u s i n g t h h a n d l e r w r i t t e n f o o u a s k a l o n e . ( B e s i d e s , w e ' d h a v e t c h a n g e n o j u s t o n e , b u a l t h e c t o r s i t h t a b l e o n f o e a c h k i n d o t r a p . ) I n s t e a d , w h a v e t u s a n o t h e r v e c t o r , o n t h a t i s p e c i f i c t o u t a s k . T h i s i p r o v i d e d i t h " T a s k C o n t r o l B l o c k " , s t r u c t u r e t h a t E x e c m a i n t a i n s f o e a c h t a s k i

h s y s t e m . t a s k c a g e p o i n t e r t i t t a s k c o n t r o l b l o c k ( " T a s k " t r u c t u r e ) b c a l l i n g t h E x e c f u n c t i o n " F i n d T a s k ( ) " w i t h a p a r a m e t e r

z e r o . O n c e w h a v e t h e p o i n t e r t o u t a s k c o n t r o l b l o c k , w c a t h m e m b e r c a l l e d " t c _ T r a p C o d e " t p o i n t t t h c o d e t b

x e c u t e d w h e n a e x c e p t i o n o c c u r s .

t c _ T r a p C o d e t p o i n t t o u o w r o u t i n e i v e r y s i m p l e . n f o r t u n a t e l y , w c a n ' t l e a v e i a t h a t , b e c a u s e o u r t r a p c o d e w i l l b

f r o m w i t h i n C P e x c e p t i o n , a n t r a p r o u t i n e s , l i k e i n t e r r u p t o u t i n e s , a r l i m i t e d i t h e i r c a p a b i l i t i e s . F o e x a m p l e , t r a p o r i n t e r r u p t

c a n ' t c a l l a n f u n c t i o n t h a t r e q u i r e s m u l t i t a s k i n g t d i t j o t h i s n c l u d e s " p r i n t f ( ) " , c o m m o n l y u s e d i p r o g r a m s t p r i n t t e x t t t h

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

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

T u r n f r o m E x c e p t i o n ) , b u t w p r o b a b l y w a n t t f i n i s h e x e c u t i o n o c l e a n u p r o u t i n e w i t h a ' E x i t ( ) ' , t o r e m o v e o u p r o c e s s ( A m i g a -

O S ' s h i g h e r - l e v e l v i e w o o u t a s k ) f r o m t h s y s t e m .

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

c o d e w i t h a R T i n s t r u c t i o n , a n t h e n h a v e c o n t r o l p a s s e do u s p e c i a l c l e a n u p a n e x i t c o d e . T o d o t h a t , w h a v e t " m e s s w i t h

h s y s t e m s t a c k " , w h i c h , a y o m a h a v e h e a r d b e f o r e , y o u s u a l l yw a n t t d o I t h i s c a s e , t h s a v e d a d d r e s s o t h p r o g r a m c o u n t e r

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

o u t i n e ) i n s t e a d o c o n t i n u i n g w i t h t h n a s t y c o d e t h a t c a u s e d t h i t h f i r s t p l a c e . B e f o r e t h R T E , w h a v e t p u l l t h e t r a p

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

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

s m a l l c o m p l i c a t i o n i t h a t t h e x c e p t i o n s f o " b u s e r r o r " ( t r a p u m b e r 2 a n " a d d r e s s e r r o r " ( t r a p n u m b e r 3 p u s h a n e x t r a b y t e s o

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

h b y t e s f o t r a p n u m b e r s l e s s t h a n 4

i s s u e t h a t s h o u l d b a d d r e s s e d b t r u l y g e n e r a l t r a p h a n d l e rt h f a c t t h a t o t h e r m e m b e r s o t h 6 8 0 0 0 m i c r o p r o c e s s o r f a m i l y

t h e i r s t a c k s d i f f e r e n t l y o n a n e x c e p t i o n . S o m e A m i g a u s e r s a r et h e i r 6 8 0 0 0 s w i t h 6 8 0 1 0 o e v e n 6 8 0 2 0 f o a d d e d s p e e d .

h A m i g a ' s o p e r a t i n g s y s t e m i d e s i g n e d t w o r k w i t h t h e s e C P U s ,n s s h o u l d a p p l i c a t i o n s o f t w a r e , i p o s s i b l e . T h t r a p c o d e c o u l d

t h C P t y p e ( E x e c p r o v i d e s f i e l d f o r t h i s p u r p o s e i t h x e c B a s e s t r u c t u r e ) a n a d j u s t t h e s t a c k p o i n t e r a c c o r d i n g l y .

o t r e c a p t h a b o v e , t h f o l l o w i n g s t e p s a r r e q u i r e d t h a v e y o u rc l e a n u p a n d l e a v e g r a c e f u l l y w h e n C P e x c e p t i o n o c c u r s :

1 C a l l F i n d T a s k ( ) t g e t a p o i n t e r t t h t a s k ' s " T a s k " s t r u c t u r e .C h a n g e t h " t c _ T r a p C o d e " m e m b e r o t h T a s k s t r u c t u r e t p o i n t t s h o r t m a c h i n e l a n g u a g e r o u t i n e t h a t d o e s t h f o l l o w i n g :

( i C h a n g e t h p r o g r a m c o u n t e r o t h e s t a c k t p o i n t t y o u r " c l e a nu a n e x i t " r o u t i n e ,

( i i ) p u l l t h t r a p n u m b e r f r o m t h s t a c k( i i i ) p e r f o r m a n R T i n s t r u c t i o n t e x i t t h e x c e p t i o n h a n d l e r a n

p a s s c o n t r o l t t h e c l e a n u f u n c t i o n .

Y o u r " c l e a n u p a n d e x i t " f u n c t i o n s h o u l d f r e e a n m e m o r y y o u r t a s ka l l o c a t e d , c l o s e a n s c r e e n s , w i n d o w s , f o n t s , l i b r a r i e s , d e v i c e s , e t c . t h a ti o p e n e d , a n t h e n c a l l " e x i t ( ) " ( f r o m C ) o r t h e q u i v a l e n t t e n a n k i l l t h t a s k .

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

L u c k y f o y o u , a l o f t h i s h a b e e n d o n e f o y o i t h s h o r t p r o g r a mp r e s e n t e d h e r e c a l l e d " T r a p S n a p p e r " . T r a p S n a p p e r i s e u f o C l a n g u a g e t r a p h a n d l i n g , w h i c h t a k e s a b i m o r e s e t - u p t h a n d o i n g i i a s s e m b l e r , s i n c e t h e r e i s o m e c o d e t h a t h a t b i a s s e m b l e r .

A l y o u n e e d t d t p u d e c e n t t r a p - h a n d l e r i y o u r p r o g r a m i s

1 P u s t r u c t u r e t e m p l a t e d e c l a r a t i o n a t h s t a r t o y o u r f i l e p i h e a d e r f i l e t h a t y o * i n c l u d e ( s e e l i s t i n g )

2 D e c l a r e a i n s t a n c e o t h a t s t r u c t u r e a t h t o o y o u r f i l e a n i n i t i a l i z e i w i t h 1 5 w o r d s m a k i n g u s h o r t m a c h i n e l a n g u a g er o u t i n e ( s e e l i s t i n g ) .

3 C a l l t h e f u n c t i o n S e t T r a p ( ) e a r l y i t h p r o g r a m ' s e x e c u t i o n t i n i t i a l i z e t h t r a p h a n d l e r .

T h c o d e p r e s e n t e d h e r e i s i m p l e p r o g r a m t h a t s h o w s h o t d t h i s , a n d e m o n s t r a t e s t h e e f f e c t i v e n e s s o t h t r a p h a n d l e r b g e n e r a ti n t w k i n d s o C P e x c e p t i o n s t h a t w o u l d n o r m a l l y r e s u l t i nS o f t w a r e E r r o r . T h p r o g r a m i t s e l f j u s t t a k e s t h a r g u m e n t s u p p l i e d o t h c o m m a n d l i n e ( w h e n t h p r o g r a m i i n v o k e d f r o m t h C L I ) a n c o n v e r t s i t a i n t e g e r . I t h e v a l u e i s 1 , t h p r o g r a m f o r c e s a a d d r e s se r r o r b a t t e m p t i n g t r e a d w o r d ( 1 b i t s ) f r o m a o d a d d r e s s . I t h v a l u e i n o 1 t h p r o g r a m t r i e s t o d i v i d e t h e v a l u e i n t o 1 0 0 - c a u s i n gd i v i d e b z e r o e x c e p t i o n , o c o u r s e , i t h e v a l u e e n t e r e d w a z e r o .

I t h i s p r o g r a m w a c o m p i l e d w i t h o u t t h c a l l t o S e t T r a p ( ) , i w o u l dc a u s e a s o f t w a r e e r r o r i f i t w a r u a n g i v e n z e r o o o n a a a r g u m e n t . A i s t a n d s , w i t h t h T r a p S n a p p e r i p l a c e , i j u s t p r i n t sw a r n i n g m e s s a g e a n d t h t r a p n u m b e r , a n e x i t s g r a c e f u l l y , r e m o v i n gi t s e l f f r o m t h s y s t e m w i t h o u t t r a c e .

H e r e ' s h o t h t r a p c o d e w o r k s i C T h i n i t i a l t r a p c o d e m u s t b e i a s s e m b l e r s o t h a t w c a a c c e s s t h s t a c k p o i n t e r A d i r e c t l y a n p e r f o r m a R T i n s t r u c t i o n . T o d o t h i s i n C t h m a c h i n e c o d e i s e u a s t a t i c a r r a y o w o r d s a n d p o i n t e r t t h i s a r r a y i p u i n t o t h T a s ks t r u c t u r e ' s " t c _ T r a p C o d e " m e m b e r . T h e m a c h i n e c o d e n e e d s p o i n t e rt t h c l e a n u c o d e ( t h e C l e a n U p A n d E x i t ( ) f u n c t i o n i t h i s e x a m p l e ) ,a n p l a c e t s t o r e t h e t r a p n u m b e r . T h e s e l o n g - w o r d s a r e s t o r e di m m e d i a t e l y b e f o r e t h e m a c h i n e c o d e i t s e l f t h r o u g h t h u s o t h " T r a p D a t a " s t r u c t u r e d e f i n e d a t h b e g i n n i n g o t h p r o g r a m . I n c l u d et h i s s t r u c t u r e t e m p l a t e d e c l a r a t i o n a t h e t o p o y o u r f i l e o i h e a d e rf i l e t h a t y o # i n c l u d e .

T h a s s e m b l y c o d e a p p e a r s a c o m m e n t s i t h l i s t i n g f o T r a p S n a pp e r . T h c o d e i f a i r l y s t r a i g h t f o r w a r d : i p u l l s t h e t r a p n u m b e r f r o m t h s t a c k a n s t o r e s i i t h M y T r a p s t r u c t u r e w h e r e t h c o d e c a n g e a i t a d j u s t s t h e s t a c k p o i n t e r i t h e t r a p n u m b e r w a l e s s t h a n t a l l o wf o b u a n a d d r e s s e r r o r s ; t h e n r e p l a c e s t h p r o g r a m c o u n t e r o t h s t a c k w i t h t h a d d r e s s o t h c l e a n - u p r o u t i n e ( w h i c h w a p u i t h M y T r a p s t r u c t u r e b t h S e t T r a p ( ) f u n c t i o n ) . F i n a l l y , i e n d s w i t h a

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

Page 72: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 72/84

R T i n s t r u c t i o n . A y o m a r e c a l l , w m e n t i o n e d t h a t t h e x c e p t i o ns t a c k f r a m e w a C P U - d e p e n d e n t , a n g e n e r a l t r a p - h a n d l e r s h o u l dw o r k f o t h 6 8 0 1 0 a n d 6 8 0 2 0 a w e l l a s t h e 6 8 0 0 0 . W e l l , w e ' r e g o o d a g i v i n g a d v i c e , b u t h i s t r a p - h a n d l e r i s n ' t t h a t g e n e r a l . S o r r y , 6 8 0 1 0 /6 8 0 2 0 u s e r s , i t h i s r o u t i n e d o e s n ' t w o r k o y o u r m a c h i n e .

A i n s t a n c e o T r a p D a t a s t r u c t u r e ( M y T r a p ) i t h e n d e c l a r e d a n i n i t i a l i z e d t h i s i w h e r e t h m a c h i n e l a n g u a g e i c r e a t e d . T h p o i n t e rt t h c l e a n - u p c o d e w i l l b p u i n t o t h i s s t r u c t u r e b t h e S e t T r a p ( )f u n c t i o n .

T h S e t T r a p ( ) f u n c t i o n f i n d s t h p o i n t e r t t h t a s k ' s T a s k c o n t r o l b l o c k ,t h e n p u t s p o i n t e r t t h t r a p m a c h i n e c o d e i n t o t h " t c _ T r a p C o d e "m e m b e r . F i n a l l y , i p u t s p o i n t e r t t h e f u n c t i o n c a l l e d C l e a n U p A n -d E x i t ( ) i n t o t h T r a p D a t a s t r u c t u r e c a l l e d M y T r a p .

T h C l e a n U p A n d E x i t ( ) f u n c t i o n i w h e r e a l o t h c l e a n - u p c o d e f o t h p r o g r a m g o e s . I t h i s c a s e , i j u s t p r i n t s m e s s a g e a n p e r f o r m s t h

f u n c t i o n e x i t ( ) ( T h e D O E x i t ( ) f u n c t i o n c o u l d b u s e d i n s t e a d . ) I a l s o p r i n t s t h e e x c e p t i o n t h a t w a e n c o u n t e r e d b y l o o k i n g a t h T r a p N u m m e m b e r o t h M y T r a p s t r u c t u r e . I m o r e t y p i c a l p r o g r a m ,t h C l e a n L l p A n d E x i t f u n c t i o n w o u l d c l o s e a n I n t u i t i o n s c r e e n s a n w i n d o w s t h a t t h p r o g r a m h a o p e n e d , f r e e a n m e m o r y i h a a l l o c a t e d ( i n c l u d i n g g r a p h i c s m e m o r y l i k e r a s t e r s ) , a n c l o s e o p e nf o n t s , d e v i c e s , a n l i b r a r i e s . I n s h o r t , a n y t h i n g t h a t t h p r o g r a m w o u l dd t c l e a n u a f t e r i t s e l f b e f o r e i e x i t s s h o u l d b d o n e i C l e a n U p A n -d E x i t ( ) .

W h e t h e r y o f u l l y u n d e r s t a n d t h d e t a i l s o f t h t r a p h a n d l e r o n o t , y o c a e a s i l y a d i t y o u r o w o a s s e m b l e r p r o g r a m s . E v e r y p r o g r a ms h o u l d h a v e i t o w t r a p h a n d l e r t s p a r e t h u s e r f r o m t h p l a g u e o t h S o f t w a r e E r r o r w h e n t h i n g s g o w r o n g . Y o c a n ' t a l w a y s g u a r a n t e et h a t p r o g r a m i f r e e o b u g s , b u t w i t h T r a p S n a p p e r , a l e a s t y o u c a nm a k e t h e m l e s s h a r m f u l .

L i s t o T r a p N u m b e r s :

B u E r r o re x t e r n a l l y g e n e r a t e d s i g n a l f r o m A m i g a H a r d w a r eA d d r e s s E r r o rw o r d o l o n g w o r d i n s t r u c t i o n a t t e m p t e d a o d a d d r e s s

4 I l l e g a l I n s t r u c t i o nm e a n i n g l e s s o p - c o d e w a e n c o u n t e r e d

D i v i s i o n b z e r ot h s o u r c e o p e r a n d o D I V S o D I V U i n s t r u c t i o n w a z e r o

6 C H i n s t r u c t i o no p e r a n d o C H i n s t r u c t i o n f e l l o u t s i d e o s p e c i f i e d b o u n d sT R A P V i n s t r u c t i o no v e r f l o w ( V ) s e t w h e n T R A P V i n s t r u c t i o n w a e x e c u t e d

8 P r i v i l e g e v i o l a t i o na s u p e r v i s o r - s t a t e o p e r a t i o n w a a t t e m p t e d i u s e r s t a t e

9 I n s t r u c t i o n t r a c eg e n e r a t e d a f t e r e a c h i n s t r u c t i o n w h i l e i t r a c e m o d e

1 - 1 0 1 0 E m u l a t o ra n o p - c o d e s t a r t i n g w i t h t h b i t - p a t t e r n 1 0 1 0 w a e n c o u n t e r e d

1 1 - 1 1 1 1 E m u l a t o ra n o p - c o d e s t a r t i n g w i t h t h e b i t - p a t t e r n 1 1 1 1 w a e n c o u n t e r e d

3 t h r o u g h 4 T R A P i n s t r u c t i o n s

T r a p S n a p p e r F r o m T h e T r a n s a c t o r

T h i s p r o g r a m s h o w s a n e a s y w a t h a n d l e C P e x c e p t i o n s f r o mp r o g r a m . J u s t i n c l u d e t h e s t r u c t s b e l o w , a n p u y o u r e r r o r

m e s s a g e a n d / o r c l e a n u p c o d e i t h f u n c t i o n C l e a n U p A n d E x i t ( ) .c a l l S e t T r a p ( ) t i n i t i a l i z e t h t r a p h a n d l e r . Y o c a g e t h t r a p n u m b e r a s h o w n i t h i s e x a m p l e . ( c 1 9 8 7 A H A !

i n c l u d e < e x e c / t a s k s . h >s t r u c t T a s k * M y T a s k , * F i n d T a s k ( ) ;s t r u c t T r a p D a t a }

l o n g T r a p N u m ;i n ( * C o d e ) ( ) ;U S H O R T M L c o d e [ 1 3 ] ;

/ t r a p n u m b e r w i l l b s t o r e d h e r e • / p o i n t e r t u s e r t r a p h a n d l e r f u n c t i o n • / t r a p - h a n d l e r m a c h i n e c o d e g o e s h e r e »

s t r u c t T r a p D a t a M y T r a p0 N U L L , / c l e a n - u p r o u t i n e a d d r e s s - w i l l b f i l l e d i n l a t e r » 0 x 2 0 1 F / M O V E . L ( A 7 ) , D » 0 x 4 1 F A 0 x F F F 4 , / . L E A . - $ A , A 0 « 0 x 2 0 8 0 , / M O V E . L D 0 , ( A 0 ) . O x B O B C , 0 x 0 0 0 0 , 0 x 0 0 0 3 , / C M P . L # 3 , D 0 • 0 x 6 2 0 2 , / B H I . S . 0 x 5 0 4 F , / » A D D Q . W # 8 , A 7 « 0 x 2 F 7 A , 0 x F F E 8 , 0 X 0 0 0 2 , / M O V E . L e r r f u n c ( P C ) , 2 ( A 7 ) • 0 x 4 E 7 3 / R T *

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

e r r n u m : D S . L ; b e l o w c o d e w i l l p u t r a p n u m b e r h e r ee r r f u n c : D S . L p o i n t e r t c l e a n - u p r o u t i n e g o e s h e r es t a r t : M O V E . L ( A 7 ) , D p u l l t r a p n u m b e r o f s t a c k

L E e r r n u m , A O ; f o r c e P C - r e l a t i v e a d d r m o d eM O V E . L D 0 , ( A 0 ) p u t r a p i e r r n u m f o C M P . L # 3 , D O ; c h e c k f o b u o a d d r e s s e r r o rB H o t h e r ; o t h e r t r a p s ( o r g r e a t e r )A D D Q # 8 , A 7 ; s k i p e x t r a i n f o o s t a c k

o t h e r : M O V E . L e r r f u n c ( P C ) , 2 ( A 7 ) p o i n t P o s t a c k t u s e r r o u t i n eR T ; e x i t f r o m t r a p - h a n d l e r

e x t e r n i n C l e a n U p A n d E x i t ( ) ; / y o u r c l e a n - u p f u n c t i o n • m a i n ( a r g c , a r g v )i n a r g c ;c h a r « a r g v [ ] ;

i n n 1 , n 2 ;i n 1 2 * I = 1

S e t T r a p ( ) ; / s e u t r a p h a n d l e r * i f ( a r g c 2

p r i n t f ( " U s a g e : ° / o s < n > \ n " , a r g v [ 0 ] ) ;e x i t ( 0 ) ;

n a t o i ( a r g v [ 1 ] * / i f a r l e t ' s g e a a d d r e s s e r r o r b r e f e r e n c i n g a o d a d d r e s s • i f ( n = = 1 )

1 . 1 1 ;

/ i f n i z e r o , w e ' l l g e d i v i d e b z e r o t r a p • n 1 0 0 / n 1 ;p r i n t f ( " 1 0 d i v i d e d b % e q u a l s % d \ n " , n 1 n 2 ) ;

S e t T r a p ( / * i n i t i a l i z e t r a p h a n d l e r •

M y T a s k = F i n d T a s k ( O L ) ;M y T a s k - > t c _ T r a p C o d e ( A P T R ) M y T r a p . M L c o d e ;M y T r a p . C o d e C l e a n U p A n d E x i t ;

C l e a n U p A n d E x i t ( / w a r n o e r r o r , f r e e m e m o r y , c l o s e u e v e r y t h i n g , a n e x i t •

p r i n t f ( " H e w a t c h i t I w e r e n ' t s o p h i s t i c a t e d \ n " ) ;p r i n t f ( " T r a n s a c t o r p r o g r a m , w o u l d h a v e b o m b e d o u t ! \ n " ) ;p r i n t f ( " ( T h e p r o b l e m w a s , g o t r a p n u m b e r ° / o l d ) \ n " , M y T r a p . T r a p N u m ) ;e x i t ( 0 ) ;

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

Page 73: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 73/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

I ' m s u r e t h a t b n o y o h a v e a l p o r e d o v e r t h n u m e r o u sa r t i c l e s d e s c r i b i n g t h e n e A m i g a 2 0 0 0 . I ' p l e a s e d t s e t h a t i i p r e t t y m u c h a d e s c r i b e d i t h i s c o l u m n s e v e r a l m o n t h s a g o ,w i t h t h e x c e p t i o n o t h l e s s e r a m o u n t o R A M . h o p e t h a v ea e v a l u a t i o n u n i t s o o n , a n t h e n w i l l f i l e m o w r e p o r t . T h A m i g a 5 0 ( a $ 6 4 9 U S a n t h 2 0 0 0 ( a $ 1 4 9 9 U S a r e s s e n t i a l l y t h s a m e m a c h i n e a s t h e 1 0 0 0 , w i t h t h s a m e O S t h s a m e c h i p s , a n t h s a m e s o f t w a r e . O n l y t h p a c k a g i n g i f u n d a m e n t a l l y d i f f e r e n t .

W h a t d f i n d p a r t i c u l a r l y i n t r i g u i n g a b o u t t h 2 0 0 0 a r s l o t st h a t a p p a r e n t l y w i l l e n a b l e o n t u p g r a d e t h m a c h i n e t n o o n l y f a s t e r C P U s l i k e t h 6 8 0 2 0 a n d 6 8 8 8 1 , b u a l s o t n e w e rv e r s i o n s o t h c u s t o m g r a p h i c s c h i p s . T h l a t t e r , a h a v em e n t i o n e d i p r e v i o u s c o l u m n s , w i l l p r o v i d e a c c e s s t l a r g e ra m o u n t s o v i d e o R A a n h i g h e r r e s o l u t i o n s .

N o m u c h i k n o w n a b o u t t h 5 0 0 , e x c e p t t h a t i i i n t e n d e d t p r o v i d e c o m p e t i t i o n f o t h A t a r i 1 0 4 0 a n d i p a c k a g e d i v e r ys i m i l a r s t y l e , w i t h b u i l t - i n d i s k d r i v e , n o n - d e t a c h a b l e k e yb o a r d a n d , f o a n o t h e r 1 5 U S m e g . o R A a n r e a l - t i m ec l o c k / c a l e n d a r .

W h e r e d o e s t h i s l e a v e u 1 0 0 0 o w n e r s ? C o m m o d o r e h a s a i dt h a t t h e y w i l l c o n t i n u e t m a k e t h 1 0 0 0 a l o n g a s t h e r e i d e m a n d f o i t S o m e f e a r t h i s m e a n s w s h a l l n e v e r s e e a n o t h e r .H o w e v e r , C o m m o d o r e h a b e e n s a y i n g t h s a m e t h i n g a b o u tt h 6 f o s e v e r a l y e a r s n o w , a n t h a t m a c h i n e i s s t i l l w i t h u s

S o f t w a r e w i l l n o b p r o b l e m , f o r e a s o n s m e n t i o n e d a b o v e .

T h o n l y a r e a o c o n c e r n i h a r d w a r e . W i l l t h i r d - p a r t y p e r i p he r a l p r o v i d e r s a b a n d o n t h e 1 0 0 0 ' s 8 6 - p i n e x p a n s i o n b u f o t h Z o r r o s l o t s o t h 2 0 0 0 ? C e r t a i n l y , Z o r r o c a r d s a r e a s i e r t d e s i g n t h a n t h e x t e r n a l u n i t s n e e d e d b t h 1 0 0 0 . N h o u s i n g

i r e q u i r e d , n p o w e r s u p p l y i r e q u i r e d , n o w o r r y a b o u t F C a n C S R F s t a n d a r d s i n e c e s s a r y . B u t h e r e a r e c o u p l e o f a c t o r s i t h 1 0 0 0 ' s f a v o u r .

F i r s t , Z o r r o c a r d m a k e r s w i l l b e c o m p e t i n g w i t h C o m m o d o r e ;m a k e r s o e x p a n s i o n u n i t s f o t h 1 0 0 0 w i l l n o t . S e c o n d , t h 5 0 w i l l h a v e a l m o s t t h s a m e 8 6 - p i n e x p a n s i o n s l o t a s t h e 1 0 0 0 :t h d i f f e r e n c e s w o u l d i n v o l v e o n l y m i n o r c h a n g e s t 1 0 0 0e x p a n s i o n p r o d u c t s a i n c e n t i v e f o m a n u f a c t u r e r s t m a i nt a i n t h e i r 1 0 0 0 p r o d u c t l i n e s . F i n a l l y , t h e r e a r e s t i l l 1 5 0 , 0 0 01 0 0 0 ' s o u t t h e r e n o t a b a m a r k e t . t h i n k t h a t , a f t e r s o m es h a k e - o u t , w w i l l s e p l e n t y o p r o d u c t s f o t h 1 0 0 0 s t i l la v a i l a b l e . F u r t h e r m o r e , b e l i e v e w w i l l s e e x p a n s i o n b o x e sf o b o t h t h 5 0 0 a n d 1 0 0 0 t h a t w i l l l e o n p l u g i Z o r r o c a r d s ,a n p e r h a p s e v e n t h e s o - c a l l e d B r i d g e a n P c a r d s , d e s i g n e df o t h 2 0 0 0 .

a l s o b e l i e v e t h e r e w i l l b c o n t i n u i n g d e m a n d f o t h 1 0 0 0 ,t h o u g h o b v i o u s l y n o a m u c h a t h e r e h a b e e n . T h d e t a c ha b l e k e y b o a r d a n i n t e r n a l p o w e r s u p p l y a r b e t t e r t h a n t h e i rc o u n t e r p a r t s o t h e 5 0 0 . A n p e r i p h e r a l s l i k e t h G e n l o c k a n D i g i v i e w a r c u r r e n t l y o n l y a v a i l a b l e f o t h 1 0 0 0 . E v e n t u a l l yt h 1 0 0 0 w i l l f a d e o u t o t h p i c t u r e , b u c e r t a i n l y n o i t h s a m e f a s h i o n a s s u c h o r p h a n s a s t h e P J r o r t h e 1 2 8 KM a c i n t o s h .

S o f t w a r e N e w s

D r o p p i n g a r o u n d a a A m i g a d e a l e r ' s s t o r e , w a s u r p r i s e da g a i n b t h e q u a n t i t y a n q u a l i t y o t h s o f t w a r e a v a i l a b l e f o t h A m i g a . B u e v e n m o r e w i l l c o m e a l o n g a t h 5 0 o p e n s u p t h h o m e m a r k e t , a n d t h e 2 0 0 0 f i n d s n i c h e f o i t s e l f i t h b u s i n e s sa n s c i e n t i f i c w o r l d .

A t h C l u b - A m i g a m e e t i n g h e r e i T o r o n t o , J o h n S k e e l , V i c e -P r e s i d e n t o m a r k e t i n g f o A e g i s D e v e l o p m e n t , d e m o e d t h e i rl a t e s t p r o d u c t s S o n i x , D r a w P l u s , A e g i s A n i m a t o r I I a n D i g a ! . T h i s l a s t o n i a t e r m i n a l p r o g r a m u s i n g p r o p r i e t a r yp r o t o c o l t h a t p e r m i t s f i l e t r a n s f e r s b e t w e e n t w A m i g a s ( e a c hr u n n i n g D i g a ! ) w h i l e r e m a i n i n g i C H A T m o d e .

H a l s o s h o w e d a e x t r a o r d i n a r y v i d e o t a p e o 3 a n i m a t e ds e q u e n c e , e v e r y f r a m e o w h i c h h a b e e n c r e a t e d o 5 1 2 KA m i g a 1 0 0 0 u s i n g t h e i r n e s o f t w a r e . T h p r o g r a m c a d r a wf r a m e i l e s s t h a n t e n s e c o n d s , d e p e n d i n g o t h c o m p l e x i t y o t h i m a g e . I c a a l s o , u s i n g a o p t i o n a l f r a m e c o n t r o l l e r , r e c o r de a c h i m a g e o V C R . T h p r o g r a m u s e s o v e r s c a n s t h a t t h p i c t u r e i n o c o n f i n e d w i t h i n t h e b o r d e r s o t h e u s u a l A m i g as c r e e n , a n d c a n u s f r a c t a l g e o m e t r y t g e n e r a t e l a n d s c a p e s .

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

Page 74: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 74/84

T h a r t i s t d e s c r i b e s t h e s e q u e n c e i t e x t f i l e . S h c a t h e n t e s tt h s e q u e n c e i p r e v i e w a n i m a t i o n m o d e t h a t u s e s w i r e - f r a m em o d e l s . O n c e s h i h a p p y w i t h t h s e q u e n c e , t h s o l i d t h r e e -d i m e n s i o n a l , 1 6 - c o l o u r o u t p u t i g e n e r a t e d a u t o m a t i c a l l y . S k e e ls a i d t h a t t h d e m o t a p e , w h i c h l a s t e d a b o u t a m i n u t e , t o o kh o u r s t g e n e r a t e f r o m p r e v i o u s l y c o m p l e t e d s c r i p t s . B m e s t i m a t i o n , t h a t m e a n s t h a t A m i g a g e n e r a t e d a n r e c o r d e d a l e a s t 1 8 0 0 f r a m e s i h o u r s . w o n d e r h o m a n y i c o u l d h a v ed o n e w i t h t h e 6 8 0 2 0 / 6 8 8 8 1 c o m b i n a t i o n i n s t a l l e d ? T h p r g r a m i s u p p o s e d t b a v a i l a b l e a y o r e a d t h i s , f o c o s t o a b o u t $ 3 0 0 U S

D e l u x e P a i n t I f r o m E l e c t r o n i c A r t s i s i g n i f i c a n t u p g r a d e t t h o r i g i n a l D P a i n t . B e s i d e s b e i n g a b l e t h a n d l e m u l t i p l er e s o l u t i o n s , i a d d s u n i q u e a b i l i t y t r o t a t e a b r u s h t h r o u g ht h r e e d i m e n s i o n s . . A c c o r d i n g t D J J A M E S , s y s o p o P e o p l e -L i n k ' s A m i g a Z o n e , t h O p e n L i b r a r y O f u n c t i o n i 1 . d i d n ' tc a r e w h a t l i b r a r y v e r s i o n n u m b e r y o p a s s e d t i t A n o t h e rv e r s i o n o O p e n L i b r a r y O w a c r e a t e d i n 1 . 2 t h a t f i x e d t h a t b u a n i t ' s c a l l e d N e w O p e n L i b r a r y O - . S p e a k i n g o 1 . 2 , m u t u a le x c l u s i o n o g a d g e t s i s s t i l l n o i m p l e m e n t e d . R . J . M i c a l s u g g e s t s

r o l l - y o u r - o w n a p p r o a c h t h a t e n t a i l s r e m o v i n g t h g a d g e t si n v o l v e d , m a k i n g t h s t a t e c h a n g e s i t h g a d g e t s t r u c t u r e s , a n t h e n r e - a t t a c h i n g t h e g a d g e t s , u s i n g t h e 1 . f u n c t i o n s R e m o v -e G L i s t O , A d d G L i s t O a n R e f r e s h G L i s t ( ) . . L a r r y P h i l l i p s o V a n c o u v e r , m e n t i o n e d t w i s s u e s a g a s s y s o p o T h S o u r c e ,i n o s y s o p o n C o m p u S e r v e ' s A m i g a f o r u m . H e ' s a v a l u a b l ea d d i t i o n t g o o d t e a m . .

d o w n l o a d e d s o m e t e r r i f i c P u b l i c D o m a i n s o f t w a r e a n S h a r ew a r e r e c e n t l y : B l i t z f o n t s , b g e n t l e m a n n a m e d H a y e s C H a u g e n , s p e e d s u s c r e e n t e x t o u t p u t o t h A m i g a 2 - t i m e s .h a v e u s e d i w i t h U e d i t a n S c r i b b l e ! t g r e a t e f f e c t . I t ' s w r i t t e ne n t i r e l y i M a n u s e s u l e s s t h a n 4 o m e m o r y o n c ei n s t a l l e d . M r H a u g e n i a s k i n g o n l y 1 d o n a t i o n . I y o u ' v e g o i t s e n d i t A n o t h e r f i n e p r o g r a m b e i n g o f f e r e d a s S h a r e w a r e i D a v e W e c k e r ' s r a y - t r a c i n g s o f t w a r e . T h i s p r o g r a m c a g e n e r a t es t u n n i n g 3 2 b 4 0 H A g r a p h i c s . P a s s e m b l e r a n c o m p i l e r h a v e a l s o a r r i v e d o t h e s c e n e . T h i s i g o o d n e w s b u a n t i c i p a t e p r o b l e m h e r e . B o t h o t h e s e r e q u i r e t h e A m i g ai n c l u d e f i l e s t w o r k . T h o s e , h o w e v e r , a r c o p y r i g h t e d b C o m o d o r e a n l i c e n s e d t p e o p l e l i k e L a t t i c e , M a n x a n M e t a -c o m c o . W o u l d n ' t i b n i c e o C o m m o d o r e t o f f e r t h e s e i n c l u d e st t h e g e n e r a l p u b l i c , s a f o n o m i n a l c o p y i n g f e e ? A r y o l i s t e n i n g , C o m m o d o r e ?

S p e a k i n g o l a n g u a g e s , M a n x h a r e l e a s e d v e r s i o n 3 . o t h A z t e c c o m p i l e r b J i G o o d n o w . I a d d i t i o n t f u r t h e ro p t i m i z a t i o n o t h e c o m p i l e r , i n o f u l l y s u p p o r t s s c a t t e r -l o a d i n g , 1 . a n t h 6 8 0 2 0 / 6 8 8 8 1 p r o c e s s o r s . T h p r i c e s h a v ea l s o b e e n s i g n i f i c a n t l y l o w e r e d : $ 1 9 9 f o t h p e r s o n a l v e r s i o n ,$ 2 9 9 f o t h e d e v e l o p e r ' s v e r s i o n a n $ 3 9 9 f o t h c o m m e r c i a lv e r s i o n . T D h a a l s o r e l e a s e d a n e v e r s i o n o t h e i r M o d u l a - 2c o m p i l e r , v e r s i o n 3 . 0 0 . . B e B l i s h ' s S o f t C i r c u i t s c o m p a n y h a l o w e r e d t h p r i c e o f t h e i r P C L O ( P r i n t e d C i r c u i t B o a r d L a y o u t )s o f t w a r e t $ 4 9 9 . g r e a t l y e n h a n c e d v e r s i o n c a l l e d P C L OP l u s i n o s e l l i n g f o $ 1 0 2 4 . A l o w n e r s o t h o r i g i n a l P C L Ow i l l h a v e t h e i r c o p i e s u p d a t e d t P C L O P l u s f o n o m i n a lc h a r g e .

C h a r l i e H e a t h o B I a n M i c r o S m i t h s i h e a d i n g u g r o u p o v o l u n t e e r s w h w a n t t r e p l a c e a l t h B C P L - e n c o d e d c o m p on e n t s o A m i g a D O S w i t h e q u i v a l e n t s w r i t t e n i a s s e m b l y l a g u a g e . n u m b e r o t h c o m m a n d s h a v e a l r e a d y b e e n d o n e .M e a n w h i l e , r u m o u r h a i t h a t T i K i n g o M e t a c o m c o , t h o r i g i n a l p r o g r a m m e r o A m i g a D O S , i w o r k i n g o o p t i m i z a t i o n st h a t w i l l p e r m i t t h e f f i c i e n t u s o h a r d d i s k d r i v e s , a n t h f o l k s a t h S o f t w a r e D i s t i l l e r y a r a l s o w o r k i n g o i m p r o v i n gA m i g a D O S . A u n d e r s t a n d i t t h e s e i n v o l v e n o c h a n g e i K i c k s t a r t , o n l y i W o r k b e n c h . T £ X , t h e s o p h i s t i c a t e d t y p es e t t i n g s y s t e m d e v e l o p e d b y D o n a l d K n u t h o S t a n f o r d U n i v e rs i t y , i a v a i l a b l e f o t h A m i g a f r o m N C o m p u t e r C o n s u l t a n t s ,P . O . B o 2 7 3 6 , C o l l e g e S t a t i o n , T 7 7 8 4 1 .

F i n a l l y , w o r d a b o u t T r a n s f o r m e r . T h o s e o u w h u s i k n o w b n o t h a t i w i l l n o w o r k u n d e r 1 . 2 . I a p p a r e n t l y u s e s ab u i 1 . t l o a d t h a t w a f i x e d i 1 . 2 . C o m m o d o r e n o h a i t h e i r h a n d s 1 . v e r s i o n o T r a n s f o r m e r a n w i l l h o p e f u l l yu p g r a d e u T r a n s f o r m e r 1 . o w n e r s A S A P . D y o r e m e m b e rC o m m o d o r e ' s p r o m i s e s t p r o v i d e h a r d w a r e A c c e l e r a t o r t h a tw o u l d s p e e d u p o p e r a t i o n o t h T r a n s f o r m e r t s o m e t h i n ga p p r o a c h i n g f u l l s p e e d ? W e l l , a p p a r e n t l y s o m e b o d y i m a r k e ti n h a t h e b r i g h t i d e a t h a t m a k i n g a f u l l - s i z e d c l o n e o n s t u c ko t h s i d e w o u l d m a k e t h e m l o m o r e m o n e y . T h u s t h S i d e C a r w a b o r n , a n t h e A c c e l e r a t o r a c c e l e r a t e d t a e a r l yg r a v e . M e a n w h i l e , S i m i l e , t h c o m p a n y t h a t w r o t e t h T r a n sf o r m e r , w a t o l d t t a k e h i k e . C B w i l l n o a l l o w t h e m ,a p p a r e n t l y , t s e l l v e r s i o n o t h s o f t w a r e t h a t w o u l d o f f e rc o l o u r a n g r a p h i c s . T h i s i o n o t h f e A m i g a p r o d u c t s t h a tC o m m o d o r e h a s r e n e g e d o ( t h o u g h s o m e w e r e l o n g t i m ec o m i n g ) a n w a n S i m i l e c e r t a i n l y d e s e r v e b e t t e r t r e a t m e n t .

H a r d w a r e N e w s

T h e r e a r t w h a r d w a r e p r o d u c t s f o t h A m i g a w o r t h y o s p e c i a l m e n t i o n : t h I n s i d e r i n t e r n a l m e g . R A b o a r d ; a n B y t e - b y - B y t e ' s P A J r e x p a n s i o n b o x .

T h I n s i d e r m o u n t s i n s i d e t h A m i g a a n a t t a c h e s d i r e c t l y t t h 6 8 0 0 0 b u s . I a d d i t i o n , i i c o n f i g u r e d t l i a t h $ C 0 0 0 0 0 0 0a d d r e s s r e s e r v e d u n d e r 1 . 2 . I i t r u e F A S T R A w i t h n w a i ts t a t e s , u n l i k e s o m e o t h e r i n t e r n a l l y - m o u n t e d R A e x p a n s i o n st h a t p i g g y b a c k o t t h v i d e o m e m o r y c h i p s . B e c a u s e i l i e s i t h r e s e r v e d a r e a o m e m o r y , f u l l m e g a b y t e s c a n s t i l l b a d d e d o n t h e x p a n s i o n b u s , b r i n g i n g t h t o t a l p o s s i b l e a m o u n to m e m o r y o t h A m i g a t 9 . M e g a b y t e s . T h u n i t i o n o t h f e m e m o r y b o a r d s t h a t w i l l w o r k w i t h t h S i d e c a r .

S o m e h a v e e x p r e s s e d c o n c e r n t h a t i m a p r e v e n t o t h e r u n i t s o t h e x p a n s i o n b u s f r o m w o r k i n g b e c a u s e t h A m i g a b u i r a t e do n l y f o o n ' F l o a d , w h i c h w o u l d b e a b s o r b e d b y t h I n s i d e r .H o w e v e r , t h m a n u f a c t u r e r s s a t h a t t h e y h a v e b u f f e r e d a l e x c e p t t h e d a t a l i n e s . L a r r y P h i l l i p s h a o n i n s t a l l e d i h i m a c h i n e a n d s a y s h h a h a n t r o u b l e d r i v i n g a e x t e r n a lm e m o r y b o a r d o r t h e S i d e c a r . H f e e l s t h e r e i p r o b a b l y e n o u g hl e e w a y i t h s p e c s t a l l o w u n i t s o t h e x p a n s i o n b u s t c o e x i s t w i t h t h I n s i d e r . m u s t a d m i t , i w o u l d b v e r y n i c e t h a v e 1 . m e g . A m i g a w i t h a b a t t e r y - b a c k e d c l o c k / c a l e n d a rt h a t d o e s n ' t h a v e a l t h a t j u n k h a n g i n g o f t h s i d e . I i a v a i l a b l e

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

Page 75: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 75/84

f r o m M i c h i g a n S o f t w a r e , 4 3 3 4 5 G r a n d R i v e r , N O V I , M I 4 8 0 5 0 a c o s t o $ 3 4 9 . 9 5 . T h t e l e p h o n e n u m b e r i 3 1 3 - 3 4 8 - 4 4 7 7 .

B y t e - b y - B y t e h a v e a n n o u n c e d t h a t t h e y h a v e c o m p l e t e l y r e d es i g n e d t h e i r P A J r e x p a n s i o n b o x . I n o s i t s o t o o t h A m i g a 1 0 0 0 , i l i t t l e u n d e r t h r e e i n c h e s h i g h , a n p r o v i d e s2 0 m e g . S T 5 0 6 h a r d d i s k w i t h D M c o n t r o l l e r , b o a r d w i t hm e g . o R A M , a n a e m p t y s l o t f o a n o t h e r Z o r r o b o a r d . I p r o v i d e s i t o w p o w e r w i t h 9 0 - w a t t s u p p l y o b o a r d . B u y e r sc a n u p g r a d e t h c o n t r o l l e r b o a r d t i n c l u d e a S C S I c o n t r o l l e r a w e l l . T h s u p p l i e d R A M , l i k e t h I n s i d e r , r e s i d e s a t h $ C 0 0 0 0 0 0 0 a d d r e s s . c l o c k i a l s o s t a n d a r d e q u i p m e n t . T h u n i t c o s t s $ 1 4 9 5 U a n c a o n l y b o r d e r e d d i r e c t l y f r o m B y t e -b y - B y t e .

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

R e p o r t f r o m S u n d a y p r o g r a m m e r

I ' l i k e t o f i n i s h u t h i s e d i t i o n o A m i g a D i s p a t c h e s w i t hr e c o u n t i n g o m A m i g a p r o g r a m m i n g e f f o r t s ( s y o c a s t o ph e r e i i t ' s o n l y p r o d u c t n e w s y o u w a n t t r e a d a b o u t ) . N o t h a tI ' a n k i n d o p r o g r a m m i n g a v a t a r q u i t e t h o p p o s i t e . B u m e x p e r i e n c e s m a p r o v i d e i n s i g h t f o s o m e a n a m u s e m e n t f o o t h e r s .

I c a s e y o d o n ' t k n o w , a s c e n d e d f r o m t h l o w l y d e p t h s o t h 6 5 x x w o r l d t t h l o f t y h e i g h t s o t h A m i g a . o n l y j u s t r e c e n t l y ,a n r e l u c t a n t l y , s o l d m C 6 s y s t e m . s t i l l v i e w t h 6 a v e r yf i n e c o m p u t e r : d o n ' t t h i n k t h e r e i b e t t e r m a c h i n e f o a n y o n ew h w a n t s t l e a r n t h b a s i c s . I h e l p e d b r i n g a b o u t r e v o l u t i o ni t h w a t h a v e r a g e c i t i z e n p e r c e i v e d c o m p u t e r s : n o a m o d e r n m e t a l M i n o t a u r s t e n d e d b p r i e s t s i w h i t e s h i r t s a n b l a c k t i e s b u r a t h e r a s e x t e n s i o n s o t h e m s e l v e s b r a i n t r a n sp o r t a t i o n , i y o u ' l l p e r m i t m e

B u b a c k t t h A m i g a .

I t ' s b e e n y e a r n o a n s t i l l g e t a g e e - w h i z k i c k o u t o i t B u w a s n ' t c o n t e n t t b o n l y u s e r . w a n t e d t s e w h a t c o u l dm a k e i d o f e l t r e a s o n a b l y c o n f i d e n t . A f t e r a l l , c o u l d f i n d m w a a r o u n d t h 6 i B A S I C a n d 6 5 1 0 m a c h i n e l a n g u a g e . T h A m i g a w o u l d s i m p l y b t h n e x t s t e p u t h l a d d e r . F o o l s r u s hi n .

d i n o e v e n t r y t o l e a r n A m i g a B A S I C . W h i l e i w a a p p a r e n tt h a t i w a m u c h m o r e p o w e r f u l B A S I C t h a n a n o o t h e r C B m a c h i n e s , i t e d i t o r w a c l u m s y s h a m e , c o n s i d e r i n g t h a t t h A m i g a w a s u p p o s e d t b f r i e n d l y m a c h i n e . F u r t h e r m o r e , i y o w a n t e d t m u l t i t a s k w i t h o t h e r A m i g a B A S I C p r o g r a m s , y o h a t r u o t h e r c o p i e s o A m i g a B A S I C . F i n a l l y , w h i l e i w a p o s s i b l e t c a l l t h s y s t e m r o u t i n e s f r o m A m i g a B A S I C , i w a h a r d l y t h e i d e a l w a o u s i n g t h e m . I w a c l e a r t h a t t h i si m p l e m e n t a t i o n o B A S I C h a b e e n s t u c k o n t o t h A m i g a l i k e

t r a i n i n g w h e e l s o H a r l e y - D a v i d s o n . A l r i g h t , s e x a g g e r a t el i t t l e m o r e l i k e c o w - c a t c h e r o P o r s c h e .

T h r e a l i t y w a t h a t a l m o s t a l s o f t w a r e d e v e l o p m e n t w a b e i n gd o n e i C l a n g u a g e h a o n l y r e c e n t l y h e a r d o f a n t h r e s ti 6 8 0 x x m a c h i n e l a n g u a g e . M o s t o t h e o p e r a t i n g s y s t e m h a b e e n w r i t t e n i a n t h d o c u m e n t a t i o n f r o m C o m m o d o r ea s s u m e d e n v i r o n m e n t . f e l t t h a t i w a p e r h a p s p r o p i t i o u st h a t t h A m i g a w a s m a k i n g m s e r i o u s l y c o n s i d e r l e a r n i n g t h i sl a n g u a g e : i s u p p o s e d t b t h l a n g u a g e o t h e i g h t i e s . W h a tw a t r u e o t h A m i g a w a i n c r e a s i n g l y t r u e f o m i c r o c o m p u t e r si g e n e r a l : p r o v i d e d l a n g u a g e t h a t s i g n i f i c a n t l y r e d u c e dd e v e l o p m e n t t i m e w h i l e p r o v i d i n g m o s t o t h s p e e d o m a c h i n el a n g u a g e . S o b t a i n e d c o p y o A b a c u s ' S u p e r - C f o t h 6 4 a n t h w e l l - k n o w n P r i m e r P l u s , p u b l i s h e d b T h W a i t eG r o u p , a n b e g a n .

I w a s n ' t e a s y . F o r g e t t h e a r t i c l e s t h a t t r t u s B A S I C a s s p r i n g b o a r d t - t h e y a r s i m p l y t o d i f f e r e n t . F i r s t a n f o r e m o s t , i s t r u c t u r e d l a n g u a g e . T h i s i s n ' t j u s t a n o t h e rb u z z w o r d . I y o h a v e c o m e f r o m l i n e a r p r o g r a m m i n g e n v ir o n m e n t , l i k e C B B A S I C a n d M L , y o u ' l l r u s m a c k i n t oc o m p l e t e l y d i f f e r e n t w a o t h i n k i n g . t h i n k m u s t h a v e a d d e dn e c o r t i c a l f o l d s t o m b r a i n , t r y i n g t o t w i s t m l i n e a r t h o u g h tp r o c e s s e s a r o u n d t a c c o m m o d a t e t h m o d u l a r i t y o C c a n ' tt e l l y o h o o f t e n l o n g e d t u s g o t o , e s p e c i a l l y i l o o p s .( g o t o i i m p l e m e n t e d i C b u u s i n g i i c o n s i d e r e d s l u m m i n gb p u r i s t s . d e c i d e d t h a t , j u s t f o t h m e n t a l d i s c i p l i n e , w o u l da l s o a v o i d u s i n g i t . )

F u r t h e r m o r e , i e m p h a t i c a l l y n o t a f r i e n d l y l a n g u a g e . I w a d e s i g n e d b p r o g r a m m e r s f o p r o g r a m m e r s . A s u c h , i i m i d -l e v e l l a n g u a g e t h a t c o m b i n e s t h e s o p h i s t i c a t e d d a t a s t r u c t u r eh a n d l i n g c a p a b i l i t i e s a n m o d u l a r i t y o h i g h l e v e l l a n g u a g ew i t h t h e f f i c i e n c y a n f l e x i b i l i t y o a s s e m b l y l a n g u a g e . I y o h a v e s o m e e x p e r i e n c e w i t h a s s e m b l y l a n g u a g e , y o w i l l i n d e e df e e l m o r e a h o m e . B u y o u h a d b e t t e r c o m m e n t y o u r s o u r c ec o d e h e a v i l y i y o w a n t a n y b o d y , i n c l u d i n g y o u r s e l f , t u n d e rs t a n d w h a t y o u ' v e w r i t t e n s i m o n t h s d o w n t h r o a d .

I i w o r t h t h t r o u b l e ? A b s o l u t e l y . O n c e y o u ' v e w r e n c h e d y o u rb r a i n a r o u n d t C ' w a o t h i n k i n g , y o u ' l l f e e l r i g h t a h o m ep r o g r a m m i n g t h A m i g a . w a w r i t t e n i c o n j u n c t i o n w i t h , a n a a a i t o t h d e v e l o p m e n t o U n i x . T h e A m i g a O h a m a n yt h i n g s i c o m m o n w i t h U n i x m u l t i t a s k i n g , m e s s a g e p o r t s ,s y s t e m s t r u c t u r e s a n i b e c o m i n g t h e l i n g u a f r a n c a o m u l t i t a s k i n g o p e r a t i n g s y s t e m s . N o t m e n t i o n t h f a c t t h a tn e a r l y a l t h e x a m p l e s g i v e n i t h o f f i c i a l A m i g a d o c s a r i C

A s s e m b l y l a n g u a g e i n o t o u t o t h q u e s t i o n o t h A m i g a .6 8 0 x x M i m u c h m o r e p o w e r f u l a n o r t h o g o n a l t h a n 6 5 x xM L b u t h e y b o t h h a v e l i n e a r l y a d d r e s s e d m e m o r y a n s i m i l a ro p c o d e s . T h j u m p f r o m 6 5 x x t 6 8 0 x x w i l l n o t l e a v e y o u r h e a ds p i n n i n g . A n i h a t h a d v a n t a g e o p r o d u c i n g s m a l l e r , t i g h t e rc o d e t h a n C I n d e e d , t h M a n x A z t e c c o m p i l e r f o t h A m i g aa c t u a l l y p r o d u c e s a s s e m b l y l a n g u a g e o i t s f i r s t p a s s , w h i c h i t h e n a s s e m b l e s o t h s e c o n d p a s s . Y o c a e x a m i n e t h a s s e m b l y l a n g u a g e o b j e c t c o d e i y o w i s h . I y o w i s h t l e a r n6 8 0 x x m a c h i n e l a n g u a g e , c a r e c o m m e n d t h 6 8 0 0 0 , 6 8 0 1 0 ,

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

Page 76: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 76/84

6 8 0 2 0 P r i m e r b S t a n K e l l y - B o o t l e a n B o F o w l e r , a l s o p u l i s h e d b T h W a i t e G r o u p .

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

L e a r n i n g C t h o u g h , h a o n l y b r o u g h t m h a l f w a y . T h e r e w a s t i l l t h m u l t i t a s k i n g , m u l t i p r o c e s s i n g A m i g a O t l e a r n .

B e a r w i t h m m o m e n t w h i l e c o n j u r e u t h e f o l l o w i n gs c e n a r i o : Y o s i b e h i n d d e s k i r o o m . I t h a t r o o m a r e ag i a n t s c r e e n , p a i r o s p e a k e r s , o n o t h o s e p n e u m a t i c s y s t e m st h a t l e t s y o u s e n d a n d r e c e i v e o f f i c e m e m o s i l i t t l e c y l i n d e r s ,a n l o c k e d d o o r w i t h a m a i l s l o t . ( l e a v e i t y o t a d w h a t e v e r c o m p a n i o n s o l i b a t i o n s y o u n e e d t f e e l a h o m e . ) T h s c r e e n i b l a c k , c o n t a i n i n g o n l y t h e w o r d s ' G u r u M e d i t a t i o n ' i r e l e t t e r s . N s o u n d i s s u e s f r o m t h s p e a k e r s .

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

Y o u r h e a d s n a p s u p f o t h i m a g e o n t h s c r e e n h a s c h a n g e d .N o i i f i l l e d w i t h f a m i l i a r p i c t u r e o w o r d s d r o p p i n g d o w nf r o m b a a t h e t o p o t h s c r e e n , a n o n o t h w o r d s i h i g h l i g h t e d . S u d d e n l y , w i t h h o l l o w T H W O N K ! , c y l i n d e r p o p so u o t h i n c o m i n g m e s s a g e t u b e . Y o u o p e n i t I n s i d e i p i e c eo p a p e r , s m a l l f o r m a c t u a l l y , l a b e l l e d ' I n t u i M e s s a g e ' a t h t o p ,a n s o m e o n e , o s o m e t h i n g , h a f i l l e d i t h v a r i o u s b l a n k sb e l o w . O n j u m p s o u a y o u : i t h b l a n k l a b e l l e d ' C l a s s ' , t h w o r d ' M E N U P I C K ' i p r i n t e d .

N o y o k n o w w h a t i i y o m u s t d o Y o m a k e c o p y o t h I n t u i M e s s a g e f o y o u r r e c o r d s , i n i t i a l i t m a r k ' R e t u r n t S e n d e r 'o i t a n s t i c k i i n t o t h o u t g o i n g m e s s a g e t u b e . W i t h m u f f l e dT H U P P ! , i d i s a p p e a r s . Q u i c k l y , y o f i l l o u a d i r e c t i v e l a b e l l e d' A u t o R e q u e s t ' . Y o k n o w t h a t , a l o n g a y o s u p p l y e v e r yr e q u i r e d d e t a i l , a n s u b m i t e v e r y r e q u i r e d f o r m , t h i s h y p e r -e f f i c i e n t b u r e a u c r a c y w i l l f o l l o w y o u r i n s t r u c t i o n s t t h l e t t e r .

Y o h u r r y o v e r t t h d o o r a n d p o p t h d i r e c t i v e t h r o u g h t h s l o t . E v e n a y o t u r n a w a y , a n o t h e r i m a g e a p p e a r s o t h s c r e e n , r e c t a n g l e c o n t a i n i n g t h e m e s s a g e ' A r e y o s u r e ? ' a n t w s m a l l e r r e c t a n g l e s t h a t s a ' O K ' a n ' C a n c e l ' . T h e n t h s c r e e n g o e s b l a c k o n c e m o r e , ' G u r u M e d i t a t i o n ' a p p e a r s i r e l e t t e r s , a n d y o u k n o w t h a t s o o n a n o t h e r c y l i n d e r w i l l p o p ,T H W O N K ! , o u o t h i n c o m i n g m e s s a g e t u b e .

A y o h e a d b a c k t y o u r d e s k , t s p e n d y o u r a l l o t t e d t i m e f i l l i n go u t f o r m s , r e c e i v i n g f o r m s , p r o c e s s i n g m e s s a g e s , a n s e n d i n gd i r e c t i v e s , y o w o n d e r w h o w h a t i o u t s i d e t h a t l o c k e d d o o r .F o y o s e n s e t h a t , i y o k n e w h o w , y o m i g h t b a b l e t f i l l y o u rr o o m w i t h e v e r m o r e c o m p l e x i m a g e s a n s o u n d s , o r c o n t r o l t h ei m a g e s a n s o u n d s i s o m e o n e e l s e ' s r o o m .

T h i s s c e n a r i o , f a n c i f u l t h o u g h i i s i v e r y m u c h l i k e w h a tp r o g r a m m i n g i t h A m i g a ' s m u l t i t a s k i n g e n v i r o n m e n t i l i k e .

E v e n s o m e o t h t e r m i n o l o g y i t h s a m e : o n ' s u b m i t s ' a i n i t i a l i z e d s t r u c t u r e ( c o m p l e t e d f o r m ) ; o n ' p r o c e s s e s ' m e s s a g e sr e c e i v e d i t h M s g P o r t ( m e s s a g e t u b e s ) f r o m M s g P o r t s i o t h e rt a s k s ( r o o m s ) . O n l y t h A m i g a O i i n f i n i t e l y m o r e e f f i c i e n t a n i n t e g r a t e d t h a n t h m o s t h i g h l y a u t o m a t e d , n e t w o r k e d a n i n t eg r a t e d o f f i c e s y s t e m c o u l d e v e r b e

W o r k i n g i t h a t s i n g l e r o o m i a n a l o g o u s t p r o g r a m m e r w h s i m p l y w a n t s t u s t h i n t e r f a c e t h a t I n t u i t i o n p r o v i d e s f o h i o h e r p r o g r a m . I t ' s n o n e c e s s a r y t k n o w w h a t s e n d s t h o s em e s s a g e s , f o e x a m p l e , o n l y w h a t r e s p o n s e i r e q u i r e d t f u l f i l lt h p r o g r a m m e r ' s o b j e c t i v e s . I t h p r o g r a m m e r n e e d s t k n o w o c o n t r o l w h a t i g o i n g o i o t h e r r o o m s t a s k s , m e a n t h e ym u s t o p e n t h a t l o c k e d d o o r a n d g e x p l o r i n g .

p r o g r a m t h a t l e t s y o u d o j u s t t h a t i t h S t r u c t u r e B r o w s e rp r o g r a m w r i t t e n b 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 a n p r s e n t e d i l a s t m o n t h ' s T r a n s a c t o r . U s i n g S i a l m o s t l i k e p l a y i n go n o t h o s e t e x t a d v e n t u r e s w h e r e y o e x p l o r e t h e r o o m s o h u g e c a s t l e , a n f i n d o u w h e r e a l t h e s e c r e t t u n n e l s a r e t h a t l i n ko n r o o m w i t h a n o t h e r . O n l y i t ' s b e t t e r t h a n t h a t b e c a u s e t h A m i g a ' s d i s p l a y , i t h e c a s e o t h I n t u i t i o n s t r u c t u r e s , p r o v i d e s am a o t h j o u r n e y .

U s i n g S p r o v e d t b m a j o r w a t e r s h e d i m u n d e r s t a n d i n g o t h A m i g a O S t h i n k i w o u l d b t h s a m e f o a n y o n e w i s h i n g t g a i n a i n t u i t i v e g r a s p o h o t h e v a r i o u s s y s t e m s t r u c t u r e s ( t h e r ea r e n e a r l y 1 0 o t h e m ) a r c o n n e c t e d t e a c h o t h e r , a n h o t h d i s p l a y r e f l e c t s t h e i r c o n t e n t s . T h c u r r e n t v e r s i o n o S s u p p o r t so n l y t h I n t u i t i o n s t r u c t u r e s . h o p e o t h e r s w i l l a d t h o t h e rl i b r a r i e s .

O t h e r v e r y h e l p f u l u t i l i t i e s f o p r o g r a m m i n g o n t h A m i g a i n c l u d ee g a d , t h P g a d g e t e d i t o r p r o d u c e d b y J o h n D r a p e r e a l U e d i t ,

v e r y f i n e p r o g r a m m a b l e S h a r e w a r e t e x t e d i t o r w r i t t e n b R i c kS t i l e s ; a n C h a r l i e H e a t h ' s g e t f i l e f i l e r e q u e s t e r . h a v e u s e d a l o t h e s e i m f i r s t m a j o r e f f o r t , K e e p v l . O , w h i c h h o p e f u l l y w i l l b a v a i l a b l e o t h f i r s t T r a n s a c t o r A m i g a d i s k . K e e p i p r o g r a mt h a t i d e s c e n d e d f r o m e x c i s e , p r o g r a m w r i t t e n i B A S I C a n M f o t h 6 a n t h P E 8 0 3 2 b N i c k S u l l i v a n . I l e t s o n e x t r a c t s e l e c t e d m e s s a g e s f r o m f i l e o m e s s a g e s d o w n l o a d e df r o m o n o n u m b e r o i n f o r m a t i o n s e r v i c e s s i m p l e b u u s e f u l .

S o m e o t h b o o k s f o u n d u s e f u l i m p r o g r a m m e r ' s p r o g r e s sw e r e t h A m i g a P r o g r a m m e r ' s G u i d e f r o m C o m p u t e ! P u b l i c at i o n s ; t h A m i g a P r o g r a m m e r ' s H a n d b o o k b E u g e n e M o r t i m e r ,p u b l i s h e d b S y b e x ; a n o c o u r s e , t h e b e s t o t h e m a l l , t h A m i g aI n t u i t i o n R e f e r e n c e M a n u a l b y R . J . M i c a l a n S u s a n D e y l , p u l i s h e d b A d d i s o n - W e s l e y . T h S y b e x b o o k i n o t e w o r t h y b ec a u s e , t m k n o w l e d g e , i a n t h n e e d i t i o n o B a n t a m B o o k sA m i g a D O S R e f e r e n c e G u i d e a r e t h e o n l y b o o k s t h a t p r o v i d ei n f o r m a t i o n a b o u t 1 . 2 .

B e f o r e b i y o a d i e u , l e m r e m i n d y o t h a t a n c o m m e n t s o q u e s t i o n s a b o u t t h i s c o l u m n , c a n b e s e n t t m o P e o p l e L i n k( A M T A G ) o o C o m p u S e r v e ( 7 1 4 2 6 , 1 6 2 6 ) . c a n ' t p r o m i s e I ' l lr e p l y b u w i l l c e r t a i n l y d m b e s t .

e x i t ( l ) ;T h T r a n s a c t o r 7 J u l y 1 9 8 7 : V o l u m e 8 I s s u e 0

Page 77: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 77/84

C o m p u t o o n s

" H e ' s h e a v i l y i n t o c o m p u t e r a n i m a t i o n . . D R A T I T A N O T H E R B U I I P R O G R A M

d

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

Page 78: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 78/84

N e w s B R S u b m i t t i n g N E W S B R K P r e s s R e l e a s e s

I y o h a v e p r e s s r e l e a s e y o u w o u l d l i k e t o s u b m i t f o t h N E W S B R c o l u m n ,m a k e s u r e t h a t t h c o m p u t e r o d e v i c e f o w h i c h t h p r o d u c t i i n t e n d e d i p r o m i n e n t l y 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 o n e s 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 t h t r a s h b i n . I s h o u l d a l s o b m e n t i o n e d h e r e t h a t w o n l y p r i n t p r o d u c t r e l e a s e sw h i c h a r i s o m e w a y a p p l i c a b l e t C o m m o d o r e e q u i p m e n t . N e w s o e v e n t ss u c h 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 .

T r a n s a c t o r N e w sN e A d d r e s s a n d P h o n e N u m b e r

P l e a s e n o t e t h a t T h T r a n s a c t o r n o h a n e a d d r e s s :

T h T r a n s a c t o r5 0 A l d e n R o a dP B o 3 2 5 0M a r k h a m I n d u s t r i a l P a r kM a r k h a m , O n t a r i o , C a n a d aL 3 R 6 G 6 ( 4 1 6 ) 7 3 7 - 2 7 8 6

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

S 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

O 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 T r a n s a c t o r s u b s c r i b e r s t b e a b o u t 1 0 0 0 , n o t 4 0 a s p r e v i o u s l y r e p o r t e d . D u r i n go u 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 m a i l l i s t d a t a b a s e s . I s e e m s t h a t 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 e t h es a m e 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 h o t h e r . T c o m p e n s a t e ,p r o g r a m 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 lp o s s i b l e t 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 d i f f e r e n t i 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 rs u b s c r i b e 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 lb e c o m b i n e d .

T h m a t c h e s t h a t w e r e f o u n d , p l u s a n t h a t w e ' v e b e e n i n f o r m e d o b m a i l ,h a v e a l b e e n d e a l t w i t h a s o f t h i s i s s u e . A n T r a n s a c t o r s u b s c r i b e r s t h a t w e r ea l s o T P U G m e m b e r s h a v e h a t h e i r T P U G m e m b e r s h i p s e x t e n d e d b t h n u m b e r o i s s u e s r e m a i n i n g i n t h e i r T r a n s a c t o r s u b s c r i p t i o n s . I y o f a l l i n t o t h i s" i n t e r s e c t i o n s e t " , y o u r m a i l i n g l a b e l s h o u l d s h o w t h i s e x t e n s i o n .

S i n c e y o u ' l l n o o n l y b e r e c e i v i n g m a g a z i n e s f r o m T P U G , y o u r r e n e w a l n o t i c ew i l l a l s o c o m e f r o m T P U G . N a t u r a l 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 n y o u ' l 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 s o r t e d o u t , w e ' d l i k e i 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 e a c a r e e r o u t a t h i s . S o s i n c e a l t h e x i s t i n go v e r l a p p i n g 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 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 t w 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 f r o m 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 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 s a n a 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 gb e c o m i n g o n e .

I y o u ' r e r e n e w i n g a 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 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 g

T 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 u 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 tc u r r e n t l y a 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 . P l e a s e d N O u s t h p o s t a g e p a i d T r a n s a c t o r s u b s c r i p t i o n c a r d f o T P U G m e m b e r s h i p s . T P U G a n T r a n s a c t o r a r a s e p e r a t e a d d r e s s e s , a n a p p l y i n g t o n v i t h e o t h e r w i l l d e l a yp r o c e s s i n g u n e c e s s a r i l y .

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 t h a ty o g e t h i n s e r t p l u s a 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 ro w h i c h c o m e s w i t h t h 1 5 . 0 0 ( U S / C ) 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 .

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 h a n d l e d b u s a n w h e n t h e ye x p i r e , 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 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 d a o n i s s u e a n t h e 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 .

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

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

Page 79: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 79/84

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

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 nm 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 a d d e d t

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 tp h i c s , p a r t t e x t e v e n w h i l e a 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 ,

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 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 t h t o u c h o k e y ; n 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 )o n l y d y o 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 t y o g e t h e c a b l e

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 2i 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 a

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 U s e r I D P a s s w o r d , a n 1 5 . 0 0 o 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 s

s 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 a r 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 r

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 P O K i n g o 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 s

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 y e a r - l o v e t h e m b o t h ! K J H ) I 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

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 ( 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 )

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 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 h

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 s t a r t d o i n g s o m e r e a li 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

t h e y s e n t u s 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 T o o b a d 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 o n l y t o o k a b o u t a h o u r

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 sm e t a l , a p i e c e o s t y r o f o a m , a 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 o

d u s t . O n c e g e t t i m e , i n t e n d t m a k e i d s o m e m o r e s u r v e i l l a n c eo 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

l i n e s ! S i n c e t h 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 s

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 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 )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

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 d/ 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 n a t 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 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

q u i n g " p r o c e s s s o 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 sn 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 )o 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

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 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 h

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

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 -A n t h i n d e x m a k e s i t 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 t

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 )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 r y o 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 t 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 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 d S a v e

m 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 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 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 e m o d e , a l R O i a n o t h e r m o d e , a n d 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 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 a 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 dM 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 d 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 R A B o $ 7 2 9 . 0 0 ( + $ 1 0 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 G R A M 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 " 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 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 e b o x 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 . 2 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 u c a nu s t h p r o g r a m i n c l u d e d w i t h t h e 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 d 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 u n o b t r u s i 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 s t h e A m i g a , a n d s n u g s u t t h 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 sw i t h a y e a r m a n u f a c t u r e r w a r r a n t y .

T h i s 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 to n t 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 o r d e r t h e 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 n t h i s i s s u e .S h i p p i n g 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 sc l e a r a n c e , o r 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" c o l l e c t " .

S u p e r p a k l . O C 6 P o c k e t W r i t e r C 6 P o c k e t P l a n n e r C 6 P o c k e t F i l e r C 6 S u p e r p a k l . O C 1 2 8P o c k e t W r i t e r C 1 2 8P o c k e t P l a n n e r C 1 2 8P o c k e t F i l e r C 1 2 8

$ 4 9 . 9 5 ( U S ) ,$ 2 9 . 9 5 ( U S ) ,$ 2 9 . 9 5 ( U S ) ,$ 2 9 . 9 5 ( U S )$ 5 9 . 9 5 ( U S )$ 3 9 . 9 5 ( U S )$ 3 9 . 9 5 ( U S )$ 3 9 . 9 5 ( U S )

$ 5 9 . 9 5 ( C d n )$ 3 9 . 9 5 ( C d n )$ 3 9 . 9 5 ( C d n )$ 3 9 . 9 5 ( C d n )$ 6 9 . 9 5 ( C d n )$ 4 9 . 9 5 ( C d n )$ 4 9 . 9 5 ( C d n )$ 4 9 . 9 5 ( C d n )

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

Page 80: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 80/84

P o c k e t D i c t i o n a r y $ 1 4 . 9 5 ( U S ) , $ 1 9 . 9 5 ( C d n )V e r s i o 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 n e 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 o c k e t 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 li n c l u d e a 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$ 1 4 . 9 5 ( 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 ti s s u e .

V e r s i o n 1 . i s t i l l a v a i l a b l e , a n a t 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 lc o m e i s e p a r a t e p a c k a g e s , b u t t h e 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 C 6 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 l 2 8 S u p e r p a k s a r $ 5 9 . 9 5 ( U S ) o r$ 6 9 . 9 5 ( C d n ) . T t o i 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 f r e e !I y o 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 l e s s t h a n t h p r i c e o f t w o !

T h T r a n s B A S I C D i s k $ 9 . 9 5 ( U S / C )T h i s 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 V o l u m e 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 o n e s 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 i n s t r u c t i o n s f i t s r i g h t o t h 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 c o m m a n d s , 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 .

S u p e r K i 1 5 4 1 $ 2 9 . 9 5 ( U S ) , $ 3 9 . 9 5 ( C d n )S u p e r 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 ev a l u a 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 o m a n yt i m e s ) . S 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

G n o m e 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 )T h i s 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 .

G n o m e K i t U t i l i t y $ 3 9 . 9 5 ( U S ) , $ 4 9 . 9 5 ( C d n )G n o m e 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( l i k e 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 rc o m m a n d s , 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 .

T r a n s a c t o r 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

A l i s s u e s 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 1 f o r w a r d a r n o a v a i l a b l eo m i c r o f i c h 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 t h " p o p u l 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 .S o m e 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 e m a r k e d " M o n l y " . T h o t h e r 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 t h e s e 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 e m i c r o f i c h e s l i c e f o r t h s a m e i s s u e .

T o k e e p 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 m a g a z 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 s u b s c r i p t i o n s a r e $ 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 s4 , 5 , a 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 # 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 s

t 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 y ( D i s k 1 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 y ( D i s k 1 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 6 M o n l y ( D i s k 1 V o l . 5 I s s u e 0 S o u n d a n G r a p h i c s ( D i s k 2 V o l . 5 I s s u e 0 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 y ( D i s k 2 V 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 y ( D i s k 2 V 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 y ( D i s k 3 V 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 s ( D i s k 4 V o l . 5 I s s u e 0 6 A i d s U t i l i t i e s ( D i s k 5 V 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 s ( D i s k 6 V 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 s ( D i s k 7

V o l . 6 I s s u e 0 T h L a n g u a g e s ( D i s k 8 V 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 s ( D i s k 9 V o l . 6 I s s u e 0 - 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 g ( D i s k 1 0 V o l . 6 I s s u e 0 6 R e a l L i f e A p p l i c a t i o n s ( D i s k 1 1 V o l . 7 I s s u e 0 R O K e r n e l R o u t i n e s ( D i s k 1 2 V 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 ( D i s k 1 3 V o l . 7 I s s u e 0 3 P r o g r a m m i n g T h C h i p s ( D i s k 1 4 V o l . 7 I s s u e 0 4 G i z m o s a n G a d g e t s ( D i s k 1 5 V o l . 7 I s s u e 0 - L a n g u a g e s I ( D i s k 1 6 V o l . 7 I s s u e 0 6 S i m u l a t i o n s a n M o d e l l i n g ( D i s k 1 7 V o l . 8 I s s u e 0 M a t h e m a t i c s ( D i s k 1 8

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 r e s u l t o f e v a l u a t i o n b T h T r a n s a c t o r .

N a t i o n a l C o m p u t e r C o n f e r e n c e 1 9 8 7

T h i s a n n o u n c e m e n t i t r e m i n d a l r e a d e r s o t h e N a t i o n a l C o m p u t e r C o n f e re n c e ( N C C ' 8 7 ) , w h i c h w i l l b h e l d i M c C o r m i c k P l a c e , C h i c a g o , I o J u n e 1 1 8 , 1 9 8 7 . T h N a t i o n a l C o m p u t e r C o n f e r e n c e p r o v i d e s f o r u m w h e r e s i g n i f i c a n td e v e l o p m e n t s a n d t r e n d s i t e c h n o l o g y a r a n n o u n c e d , d i s c u s s e d a n d i p l a y e d . N C p r o g r a m i n c l u d e s b o t h e x h i b i t s a n p r e s e n t a t i o n s . F o r m o r ei n f o r m a t i o n c o n t a c t :

N C ' 8 A F P I S1 8 9 9 P r e s t o n W h i t e D r R e s t o n . V A 2 2 0 9 1l ( 8 0 0 ) N C C - 1 9 8 7

4 0 4 0 D r i v e I n t e r n a l s

D e p e n d i n g o r e a d e r r e s p o n s e , b o o k c o u l d s o o n b e c o m e a v a i l a b l e t h a tu n c o v e r s , f o t h v e r y f i r s t t i m e , a l i n n e r d e t a i l s o t h C o m m o d o r e 4 0 4 0 d r i v e .W i t h i n t h i s v a s t t o m e o k n o w l e d g e w i l l b f o u n d a i d e p t h a n d o c u m e n t e dl o o k i n t o t h F l o p p y D i s k C o n t r o l l e r R A a n R O M , t h I n t e r f a c e P r o c e s s o rR A a n R O M , p l u s t h e o r y o h o i a l f i t s t o g e t h e r . u s e f u l b o o k f o s p e c i f i co c c a s i o n s . T h e b o o k i c l o s e t c o m p l e t i o n r i g h t n o w , b u r e a d e r r e s p o n s e i r e q u i r e d t d e t e r m i n e i f u l l p r o d u c t i o n w o u l d b e w o r t h w h i l e . I y o a r a a l i n t e r e s t e d , a n w o u l d l i k e t o b k e p t i n f o r m e d o t h b o o k ' s p r o g r e s s , t h e n s e n dn o t e t o d a y t t h e f o l l o w i n g a d d r e s s . I t h 4 0 4 0 b o o k i s u c c e s s f u l , t h e n a n 8 0 5 0 ,8 2 5 0 , 9 0 6 0 a n 9 0 9 0 w i l l f o l l o w .

H i l l a i r e G a g n e1 0 7 4 W e b b w o o d D r i v eS u d b u r y , O n t a r i o , C a n a d aP 3 C - 3 B 7

G E O S P r o g r a m m i n g G u i d e

T h O p C o d e F a c t o r y w i l l b o f f e r i n g t e c h n i c a l p r o g r a m m i n g g u i d e t G E O Sd u r i n g t h S p r i n g o 1 9 8 7 . I y o a r i n t e r e s t e d i h a v i n g m o r e i n f o r m a t i o n o G E O S p l e a s e s e n d y o u r n a m e , a d d r e s s , a n p h o n e n u m b e r t D a v i d M a r t i n i c a r e o f

T h O p C o d e F a c t o r y1 4 1 7 S o u t h H e r o n D r i v e

S e a b r o o k , T e x a s , 7 7 5 8 6

N e C o m m o d o r e B u s i n e s s M a g a z i n e

M o n e y M a c h i n e i n e C o m m o d o r e m a g a z i n e i n t r o d u c e d a t h l a s t L C o m m o d o r e S h o w . I i t a r g e t e d a C o m m o d o r e 6 4 1 2 a n A m i g a o w n e r s w h a r u s i n g t h e i r c o m p u t e r s f o h o m e a p p l i c a t i o n s a n d / o r f o s m a l l o h o m eb u s i n e s s m a n a g e m e n t .

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

Page 81: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 81/84

M a c h i n e i b i - m o n t h l y m a g a z i n e t h a t r e t a i l s f o r $ 3 . 9 5 U p e c o p y i s t o r e s , a n i d i s t r i b u t e d b y :

R e d w o o d D i s t r i b u t i n gP . O . B o 6 6 0 9S a M a t e o , C 9 4 4 0 3( 4 1 5 ) 5 7 9 - 5 5 0 6

p t i o n s a r a v a i l a b l e f r o m t h p u b l i s h e r a t h r a t e o f $ 1 6 . 0 0 U f o s i C o n t a c t :

P a u l a V i n e y a r dP . O . B o 2 6 1 82 1 4 2 E S i l v e r S p r i n g s B l v d .O c a l a , F L 3 2 6 7 8( 9 0 4 ) 6 2 2 - 1 0 2 2

g y S o f t w a r e f r o m B y t e W a r e

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

w a o r i g i n a l l y c r e a t e d f o t h C - 6 4 . L a t e r , v e r s i o n s f o P l u s / 4 a n C - 1 2 8r s w e r e d e v e l o p e d . M o s t r e c e n t l y , t h m a n u f a c t u r e r h a s a n n o u n c e d t h

o t h G e n e a l o g y p a c k a g e f o t h P E c o m p u t e r s . P r o g r a m s i b o t h 4 0 4 0d 8 0 5 0 f o r m a t s a r a v a i l a b l e .

m o r e i n f o r m a t i o n , s a m p l e s h e e t s a n p r i c e s f o v a r i o u s p r o g r a m s , i n t e r e s t e ds h o u l d c o n t a c t :

B y t e W a r eM a p l e C i t y S o f t w a r e9 0 6 W e s t 6 t A v e n u eM o n m o u t h , 1 6 1 4 6 2

M a i l R o o m v 2 . 1 f o t h C o m m o d o r e 6

2 . m a n a g e s a m a n y o n e - d i s k m a i l r o o m s a y o m a n e e d , e a c h w i t ht o f i v e d i s t i n c t m a i l i n g l i s t s c o n t a i n i n g u t 2 0 0 0 l a b e l s i n d e x e d b n a m e , c i t y

Z I c o d e f o 3 0 - s e c o n d r e t r i e v a l o a l m a t c h i n g l a b e l s . T h u s e r c a n d e f i n et o f i v e n o n - e x c l u s i v e s u b - l i s t s p e d i s k , w i t h u t t h r e e m u t u a l l y - e x c l u s i v e

f o u s i p r i n t i n g l a b e l s ( i Z I c o d e o r d e r ) o r i n d i c e s ( b y n a m e , c i t yZ I P ) ; s e l e c t l a b e l s f r o m a n c o m b i n a t i o n o l i s t s w i t h w i l d - c a r d ( * s e a r c h

a n e n t e r l i s t i n g s f i r s t - n a m e - f i r s t o l a s t - n a m e - f i r s t f o f i r s t - n a m e - f i r s t

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

o i n d i c e s a n s u p p o r t s w i l d - c a r d f u n c t i o n s f o r e d i t a n d e l e t e o p r a t i o n ss i m p l e s e a r c h e s . W i t h s e c o n d d r i v e , T h M a i l R o o m w i l l a u t o m a t i c a l l y

r g e t w o m a i l i n g l i s t s o r a l l o w s e l e c t i v e m e r g e s w i t h e d i t i n g .

M a i l R o o m f o t h C 6 4 , $ 4 9 . 9 5 p l u s $ 3 . 0 0 s h i p p i n g a n h a n d l i n g ; o r d e m o$ 5 . 0 0 . I V e r s i o n 2 . d o e s n ' t m e e t y o u r n e e d s , T h D i s k W o r x w i l l

f i e l d l e n g t h , d i s k c a p a c i t y , a n o t h e r f e a t u r e s t y o u r s p e c i f i c a t i o n s f o a d d i t i o n a l $ 2 0 . 0 0 . S p e c i f y a d d r e s s t b u s e d f o r t e s t l a b e l w h e n o r d e r i n g ,

c h e c k s p a y a b l e t D a v i d S h i l o h a

T h D i s k W o r x1 0 1 1 V a l l l e y R i v e r W a y , S u i t e 1 5 E u g e n e , O r e g o n 9 7 4 0 1

X B B f o C 6 $ 1

S p e n c e X P B B S i p u b l i c d o m a i n B B p r o g r a m f o t h C 6 4 . T h p r o g r a mt h e 1 6 5 0 , M i t e y M a n d 1 6 7 0 m o d e m s . F e a t u r e s o t h B B a r e : 3 0 0 /

b a u d , 0 - 1 0 d i r e c t o r i e s , m e s s a g e b a s e w i t h - c a t e g o r i e s , b u l l e t i n s , P u n t e rX m o d e m p r o t o c o l , r u n s i b a s i c w i t h M r o u t i n e s , s e l e c t a b l e d r i v e c o n f i g u

a s w e l l a s o n l i n e s y s o p c o m m a n d s .

t h p r o g r a m i p u b l i c d o m a i n w c a m a i l y o c o p y w i t h o u 1 p a g e

m a n u a l . S e n d c h e q u e o m o n e y o r d e r f o $ 1 ( O n t a r i o r e s i d e n t s a d 7 P S T )p a y a b l e t C o n T e x t P u b l i s h i n g :

S p e n c e X B B c / C o n T e x t P u b l i s h i n g3 0 9 2 D a n f o r t h A v e . S u i t eS c a r b o r o u g h O n t .M 1 L 1 B 1

S p e e d S c r i p t U p d a t e d f o t h C - 1 2 8

S p e e d P l u s - 1 2 8 f r o m L i n d o n E n t e r p r i s e s c o n v e r t s C - 6 4 c o p y o S p e e d S c r i p t3 . i n t o f u l l - f e a t u r e d 8 0 - c o l u m n C - 1 2 8 v e r s i o n w i t h 6 4 t e x t m e m o r y a n 2 0 e r a s e b u f f e r , a l f o u s i 1 2 o p e r a t i n g m o d e . T h p r o g r a m a l s o a d d s n e f e a t u r e s t S p e e d S c r i p t , i n c l u d i n g j u s t i f i c a t i o n , 1 2 - v a l u e a s s i g n a b l e t a b , 2 c o l u m n / 2 - s i d e p r i n t i n g , w o r d w r a p t o g g l e , s e l e c t a b l e p r i n t - o u t , o v e r 2 p r i n tc o m m a n d s p r o g r a m m a b l e w i t h u t 1 v a l u e s e a c h , w i n d o w s c r e e n p r e v i e w o d o c u m e n t s f o a l m a r g i n s a n d p a g e l e n g t h s , s e c o n d a r y a d d r e s s c h a n g e t " 0 o " 7 w h i l e p r i n t i n g , i n s e r t i o n o t e x t f i l e s w i t h i n d o c u m e n t , s c r e e n d i s p l a y o u t 2 h e l p f i l e s f r o m s i n g l e d i s k w i t h o u t l o s s o f t e x t i n m e m o r y , c h a n g e a b l ec o m m a n d l i n e a n s c r e e n d i s p l a y c h a r a c t e r c o l o r , a n a d j u s t a b l e s c r e e n d i s p l a yo t e x t f o i n c r e a s e d t y p i n g s p e e d . S p e e d P l u s - 1 2 8 c o m e s w i t h t w h e l p f i l e s :1 9 8 6 - 8 7 c a l e n d a r a n a r e f e r e n c e l i s t o S p e e d S c r i p t / S p e e d P l u s c o m m a n d s .

S p e e d P l u s - 1 2 8 i a v a i l a b l e b m a i l o r d e r f o $ 2 9 . 9 5 ( U S ) , i n c l u d i n g s h i p p i n g a n h a n d l i n g c h a r g e s , f r o m :

L i n d o n E n t e r p r i s e sP . O . B o 7 7 E l G r o v eW I 5 3 1 2 2

D i s k - 2 - D i s k f r o m C C

C e n t r a l C o a s t S o f t w a r e a n n o u n c e s D i s k - 2 - D i s k , w h i c h t r a n s f e r s C - 6 4 / C - 1 2 8f i l e s t a n f r o m A m i g a D O S . ( T h i s d i s k - t o - d i s k f i l e t r a n s f e r u t i l i t y t r a n s f e r s S E Q ,R E a n U S f i l e s t t h A m i g a . )

D i s k - 2 - D i s k s u p p o r t s t h 1 5 4 1 / 4 0 4 0 a n d 1 5 7 0 / 1 5 7 1 d i s k f o r m a t s i n c l u d i n g1 5 4 1 " H i p p i e s " . T h p r o g r a m c o n v e r t s C o m m o d o r e P E A S C I I t A m i g a D O Ss t a n d a r d A S C I I a n v i c e v e r s a . D i s k - 2 - D i s k f o r m a t s 1 5 4 1 a n 1 5 7 1 d i s k e t t e s ,r u n s u n d e r e i t h e r t h I n t u i t i o n o C L i n t e r f a c e s , s u p p o r t s A m i g a D O S s t y l e w i l dc a r d s i f i l e n a m e s , p r o v i d e s T Y P E a n D E L E T E ( S c r a t c h ) c o m m a n d s a n p e r m i t s r e n a m i n g o f i l e s w h e r e f i l e n a m e r e s t r i c t i o n s o c c u r .

D i s k - 2 - D i s k i n c l u d e s V A L I D A T E B A a n C H C K D i s k u t i l i t i e s a s w e l l a B A S D I F u t i l i t y t f i n d a n f l a g d i a l e c t d i f f e r e n c e s i B A S I C f i l e s .

D i s k - 2 - D i s k r e q u i r e s a s t a n d a r d A m i g a w i t h a A m i g a m o d e l 1 0 2 0 e x t e r n a l5 . 2 5 " d i s k d r i v e . $ 4 9 . 9 5 U t h r o u g h C C a n A m i g a d e a l e r s . F o r f u r t h e ri n f o r m a t i o n , c o n t a c t :

C e n t r a l C o a s t S o f t w a r e2 6 8 B o w i e D r i v eL o O s o s . C A 9 3 4 0 2( 8 0 5 ) 5 2 8 - 4 9 0 6

N e I n t e r f a c e f o C - 6 4 / C - 1 2 8 a n I B P

T e c T r a n s - W . G u e r t z g e n i t h d i s t r i b u t o r f o n e i n t e r f a c e t h a t a l l o w s c o n n e ct i o n o f C - 6 4 / C - 1 2 8 c o m p u t e r s t I B P c o m p u t e r s , o t a n o t h e r c o m p u t e r ,m o d e m o p r i n t e r w i t h a R S 2 3 2 C i n t e r f a c e . T h i n t e r f a c e , w h i c h i c a l l e d9 8 0 8 4 , i c o n n e c t e d t t h s e r i a l p o r t o t h C - 6 4 / C - 1 2 8 a n t t h R S 2 3 2 C p o r to t h I B c o m p u t e r s . T h d a t a c a n b e t r a n s f e r r e d f r o m t h C - 6 4 / 1 2 8 c o m p u t e rt t h I B c o m p u t e r o r v i c e v e r s a .

T h i n t e r f a c e c o m e s w i t h a 6 K B y t e b u f f e r d i v i d e d i n t o a 3 K B y t e i n p u t b u f f e ra n 3 K B y t e o u t p u t b u f f e r . T h e r e a r n o D I P s w i t c h e s o b o a r d a l a d j u s t m e n t s f o t h i n t e r f a c e a r d o n e b c o m m a n d s t a E E P R O M i n t o n o v o l a t i l e m e m o r y ( t h e m e m o r y i p r o g r a m m a b l e a s o f t e n a s t h e u s e r l i k e s ) .

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

Page 82: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 82/84

T e c h n i c a l d a t a : B a u d r a t e : 2 2 t 5 7 6 0 0 . D a t a b i t s : 7 o 8 S t o p b i t s : o 2 P a r i t y n o n e , e v e n , o d d , H a n d s h a k e h a r d w a r e o X O N / X O F F . C o n n e c t o r s : I B R S 2 3 2 ( D B 2 5 f e m a l e ) , C o m m o d o r e s e r i a l c o n n e c t o r . P o w e r s u p p l y : f r o m t h c a s s e t t e p o r t o t h C - 6 4 / 1 2 8 o r a s e p a r a t e p o w e r s u p p l y ( $ 1 5 . 0 0 U o p t i o n a l ) .

T h i n t e r f a c e p a c k a g e c o n t a i n s a l c a b l e s t t h c o m p u t e r s a n d i n s t r u c t i o n s f o t h u s e r . T h p r i c e f o t h p r o d u c t i $ 1 4 9 . 0 0 U ( C r e s i d e n t s a d t a 6 . 5 % ,s h i p p i n g c h a r g e s i U . S . a r e $ 4 . 0 0 o a l o r d e r 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 ef r o m :

T e c T r a n s - W . G u e r t z g e n6 9 2 5 R o s e m e a d B l v d ,S a G a b r i e l , C 9 1 7 7 5( 8 1 8 ) 2 8 5 - 3 1 2 1

T h M i c r o t r o l l

T h M i c r o t r o l l i t h n e w e s t p r o d u c t f r o m S l i d e M o u n t a i n S y s t e m s . I h a b e e nd e s c r i b e d b t h m a n u f a c t u r e r a " c u s t o m i z a b l e , r e a l w o r l d i n t e r f a c e " d s i g n e d t w o r k w i t h C - 6 4 o C — 1 2 8 ( i C - 6 4 m o d e ) .

T h M i c r o t r o l l i b o t h h a r d w a r e a n s o f t w a r e e x p ' a n d a b l e . T h M i c r o t r o l l c a n b eu s e d t c r e a t e h o m e m o n i t o r s y s t e m s , g r e e n h o u s e c o n t r o l s y s t e m s , r o b o t i c ss y s t e m s , a u t o m a t e d t e s t e q u i p m e n t , l a b o r a t o r y t e s t a n d a t a g a t h e r i n g s y s t e m s ,m a n u f a c t u r i n g c o n t r o l s y s t e m s o r a s a a i i t e a c h i n g e l e c t r o n i c s .

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

T h s o f t w a r e c o n s i s t s o a n e a r l y 8 O p e r a t i n g S y s t e m o B a s i c a n M a c h i n el a n g u a g e r o u t i n e s , w h i c h a u t o - b o o t s o n p o w e r u p T h i s p r o g r a m d i s p l a y s a l i n p u t a n o u t p u t i n f o , a l l o w s c o n t r o l o i n p u t f r o m t h k e y b o a r d , a n i d e s i g n e dt l i n k t u s e r g e n e r a t e d p r o g r a m s a w e l l . A d d i t i o n a l s o f t w a r e i a v a i l a b l e o

d i s k M A T T ' S M i c r o t r o l l T o o l s , d i s k 1 w h i c h c a n b e p u r c h a s e d f o $ 5 . 0 0 U f r o m t h m a n u f a c t u r e r .

T h M i c r o t r o l l p a c k a g e i n c l u d e s e x t e n s i v e d o c u m e n t a t i o n . I c a n b e o r d e r e dd i r e c t f r o m t h f a c t o r y f o $ 1 8 0 . 0 0 U p l u s $ 5 . 0 0 s h i p p i n g a n i n s u r a n c e .M i c r o t r o l l c a r r i e s 9 0 - d a y f a c t o r y w a r r a n t y o p a r t s a n l a b o u r f o m a n u f a c t u ri n d e f e c t s . P a y m e n t s s h o u l d b m a d e b c h e q u e , m o n e y o r d e r , o C O D . S . M . S .n o t e s t h a t p e r s o n a l c h e q u e s w i l l s l i g h t l y d e l a y d e l i v e r y . T h m a n u f a c t u r e r c a n b r e a c h e d b y c a l l i n g o r w r i t i n g t o

S l i d e M o u n t a i n S y s t e m sP . O . B o 6 4 8 1C o l o r a d o S p r i n g s , C 8 0 9 3 4( 3 0 3 ) 4 4 9 - 4 7 8 3

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

K e t e k h a s a n n o u n c e d C o m m a n d C e n t e r , a s p a c e - s a v i n g c a b i n e t s p e c i a l l yd e s i g n e d f o t h C - 6 4 / 1 2 8 a n 6 4 c o m p u t e r s . T h C o m m a n d C e n t e r c o n s o l id a t e s a c o m p u t e r , t w d i s k d r i v e s a n m o n i t o r i n t o c o m p a c t e n c l o s u r e ,k e e p i n g a l c a b l e s h i d d e n , o u o s i g h t a n r e a c h . S o m e f e a t u r e s o t h e c a b i n e ti n c l u d e a m a i n p o w e r c o n t r o l s w i t c h e l i m i n a t i n g t u r n i n g o n / o f f a l p e r i p h e r a l ss e p a r a t e l y , c o o l i n g f a t p r e v e n t o v e r h e a t i n g , a n b u i l t - i n A . C . p o w e r s t r i pw i t h s u r g e p r o t e c t i o n a n l i n e n o i s e f i l t e r i n g . O t h e r o p t i o n s a v a i l a b l e i n c l u d e ac a r t r i d g e p o r t e x t e n s i o n a n m o d u l a r t e l e p h o n e p l u g w i t h i t o w o n - l i n e / o f fl i n e s w i t c h . T o r d e r t h C o m m a n d C e n t e r , c o n t a c t :

K e t e kP . O . B o 2 0 O a k d a l e , I o w a 5 2 3 1 9

F o f a s t s e r v i c e , c a l l 1 - 8 0 0 - 6 2 6 - 4 5 8 2 t o l l f r e e . I I o w a c a l l 3 1 3 3 8 - 7 1 2 3 .

D I S K

C o n v e r t s C 6 4 / C 1 2 8 F i l e s t t h A m i g a !D I S K - 2 - D I S K f r o m C e n t r a l C o a s t S o f t w a r e

m a k e s i e a s y a n c o n v e n i e n t t t r a n s f e r C 6 4 / C 1 2 8f i l e s t a n d f r o m t h A m i g a . D I S K - 2 - D I S K p r o g r a m st h A m i g a m o d e l 1 0 2 0 e x t e r n a l 5 . 2 5 " d i s k d r i v e t r e a d a n w r i t e 1 5 4 1 / 4 0 4 0 a n d 1 5 7 0 / 1 5 7 1 d i s kf o r m a t s i n c l u d i n g 1 5 4 1 " f l i p p i e s " . Y o c a n e v e nf o r m a t 1 5 4 1 o 1 5 7 1 d i s k e t t e o n y o u r A m i g a !

D I S K - 2 - D I S K c o n v e r t s C o m m o d o r e / P E T A S C I I t A m i g a D O S s t a n d a r d A S C I I a n v i c e v e r s a . U s D I S K - 2 - D I S K t t r a n s f e r w o r d p r o c e s s i n g t e x t f i l e s( s u c h a P a p e r C l i p , S p e e d S c r i p t a n P o c k e t W r i t e r )t a n f r o m t h A m i g a f o u s w i t h p o p u l a rA m i g a w o r d p r o c e s s o r s .

D I S K - 2 - D I S K i n c l u d e s u t i l i t y t o f i n d a n f l a gd i a l e c t d i f f e r e n c e s b e t w e e n C o m m o d o r e B a s i c a n A m i g a B a s i c f i l e s .

D I S K - 2 - D I S K i n c l u d e s V A L I D A T E B A a n C H E C KD I S K u t i l i t i e s . V A L I D A T E B A v e r i f i e s t h d i r e c t o r ys t r u c t u r e o t h 1 5 4 1 / 1 5 7 1 d i s k e t t e . C H E C K D I S Kr e a d s e v e r y b l o c k o 1 5 4 1 / 1 5 7 1 d i s k e t t e t d e t e c td i s k e t t e e r r o r s .

D I S K - 2 - D I S K s e l l s f o $ 4 9 . 9 5 p l u s $ s h i p p i n ga n h a n d l i n g . C r e s i d e n t s a d 6 s a l e s t a x .T e l e p h o n e o r d e r s w e l c o m e . D e a l e r i n q u i r e s i n v i t e d .

C e n t r a l C o a s t S o f t w a r e2 6 8 B o w i e D r i v e , L o s O s o s , C 9 3 4 0 2 8 0 5 5 2 8 - 4 9 0 6T r a d e m a r k s : A m i g a . A m i g a D O S , C o m m o d o r e - A m i g a . I n c . ; P a p e r C l i p . B a t t e r i e s I n c l u d e d ; P o c k e t W r i t e r , D i g i t a l S o l u t i o n s , I n c . ; D I S K - 2 - D I S K . C e n t r a l C o a s t S o f t w a r e .

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

Page 83: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 83/84

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

E X P A N D Y O U R A M I G A( N S o l d e r i n g )

B O N E M E G A B Y T E( 1 . 0 0 0 K o 1 , 0 0 0 , 0 0 0 B y t e s )

W i t h t h

T h B E S T I n t e r n a l R A e x p a n s i o n .O n M e g a b y t e o F A S T A u t o - C o n f i g R A M .N W a i t S t a t e s .B a t t e r y B a c k e d - U p C l o c k / C a l e n d a r C h i p .C o m p a t i b l e w i t h S i d e c a r ™ .C o m p a t i b l e w i t h M o s t o t h e r E x t e r n a l R A M .O n Y e a r W a r r a n t y .

S u g g e s t e d R e t a i l $ 5 9 5 . 0 0 C a n a d i a n F u n d s

C a n a d i a n D i s t r i b u t o rD e s i g n T e c h B u s i n e s s S y s t e m s I n c .# 3 0 4 - 8 5 0 B u r r a r d S t r e e tV a n c o u v e r , B V 6 2 J C e r t i f i e d C h e q u e o M ( 6 0 4 ) 6 6 9 - 1 8 5 5 D e a l e r E n q u i r i e s I n v i t e d

E X P A N D Y O U RW I T I I f I W V I U I

P E R F O R M L I K EJ u s t p l u g i t h F i n d C a r t r i d g e .

o n l y $ 5 4 . 9 5 iD o e s N O u s e x i s t i n g m e m o r yT h f i r s t c o m p l e t e l y e x t e r n a l o p e r a t i n g s y s t e m c r e a t e d s p e c i f i c a l l y f o rt h C o m m o d o r e 6 4 6 4 C , a n d 1 2 ( i C 6 m o d e ) .U p g r a d e s h a r d w a r e a n d s o f t w a r eT a k e s t h e p l a c e o a l e a s t s e p a r a t e d e v i c e s , 1 D i s k T u r b o - 6 t i m e sf a s t e r l o a d i n g a n s a v i n g ; 2 P r e p r o g r a m m e d F u n c t i o n K e y s - e l i m i n a t e

l o n g , t e d i o u s c o m m a n d s e q u e n c e sf o m a n y c o m m a n d s , 3 E x t e n d e dM a c h i n e L a n g u a g e M o n i t o r - v v i t hr e l o c a t e d l o a d - s c r o l l i n g u p a n dd o w n , b a n k s w i t c h i n g , a n d m o r e ;4 ) P r i n t e r I n t e r f a c e - p r i n t s a l C o m m o d o r e g r a p h i c s p l u s s c r e e n -d u m p u t i l i t y ; 5 B a s i c T o o lK i t - A i i t o L i n e N u m b e r i n g , D e l e t el a r g e p r o g r a m b l o c k s w i t h o n

t o u c h , O l r e c o v e r s a c c i d e n t a l l y - d e l e t e d p r o g r a m s , R e n u m b e r i n g , F i n d ,H e l p d e b u g s s y s t e m , D i s k A p p e n d a d d s n e p r o g r a m s t o e x i s t i n g f i l e s ;6 M a k e b a c k u p c o p i e s o a n y s o f t w a r e p r o g r a m .O t h e r C o n v e n i e n t f e a t u r e sF r e e z e r - » 1 s u m e n u s • c o l o r c h a n g e s r e s e t s c e n t r o n i c s / s e r i a ls c r e e n d u m p s • p r i n t v e c t o r s e t t i n g r e v e r s e p r i n t i n g s t o p s a n c o t i n u e s a l m o s t e v e r y p r o g r a m a l l o w s t o t a l b a c k u p t d i s k o r t a p ea u t o m a t i c a l l y c r e a t e s o n f i l e o d i s k o r t a p e f r e e z e s t t i m e sf a s t e r t h a n d e d i c a t e d f r e e z e r s g a m e k i l l e rS c r e e n d u m p C a p a b i l i t y - P r i n t s l o w - r e s , h i g h - r e s a n m u l t i c o l o rp r i n t s f u l l p a g e p r i n t s f r o m g a m e s a n m o r eK e y b o a r d E x t r a s - D e l e t e p a r t s o f l i n e s • m o v e c u r s o ro p e r a t e s y o u r p r i n t e r a t y p e w r i t e rB O N U S ! A d d i t i o n a l 2 4 e x t r a R A f o b a s i c p r o g r a m s1 D a M o n e y - b a c kG u a r a n t e e , F u l ly e a r w a r r a n t yS P E C I A L !C o m m o d o r e t C e n t r o n i c sp r i n t e r c a b l e - $ 1 9 . 9 5P a y m e n t s t o H C o m p u t e r s

B a n k o C e r t i f i e d C h e c k , P e r - 1s o n a l C h e c k , M o n e y O r d e r ,V i s a o M a s t e r C a r da n C . O . D .A d S 3 . 0 0 f o s h i p p i n ga n h a n d l i n gN a n N r e s i d e n t s a d a p p r o p r i a t e s a l e s t a D e a l e r , d i s t r i b u t o r , u s e rg r o u p i n q u i r i e s w e l c o m e

H E H N A iC O M P U T E R SO A M E R I C A

1 5 V a l l e y S t r e e t . S o u t h O r a n g e , N e J e r s e y 0 7 0 7 9 ( 2 0 1 ) 7 6 3 - 3 9 4 6

Page 84: The Transactor V8 01 1987 Jul

8/7/2019 The Transactor V8 01 1987 Jul

http://slidepdf.com/reader/full/the-transactor-v8-01-1987-jul 84/84

T h a n k s f o t h

M E R A E X P A N S I O NC o m s p e c ' s s e c o n d g e n e r a t i o n A X 2 0 0 0R A B O A R D .S o f t w a r e d e v e l o p e r s w o r l d w i d eh a v e b e e n u s i n g i f o o v e ry e a r . N o s c a y o u .T h A X 2 0 0 0 p r o v i d e s " f a s t "R A M , g i v i n g y o m o r e r o o mf o p r o g r a m a n d a t as t o r a g e , f a s t e r p r o g r a me x e c u t i o n a n f e w e r t i m e -c o n s u m i n g d i s k a c c e s s e s .T h A X 2 0 0 0 p r o v i d e s f u l l

M e g a b y t e s o m e m o r yn o w .T h A X 2 0 0 0 i f u l l yc o m p a t i b l e w i t h a l s t a n d a r d A m i g a p r o d u c t s .S o m e b o a r d s a r e n ' t .T h A X 2 0 0 0 i a u t oc o n f i g u r i n g * . A l y o d i p l u g i i n t o y o u r A m i g aa n t u r n i o n N o t h i n ge l s e i n e e d e d .F u l l " p a s s t h r o u g h "a l l o w s f o c o m p l e t ep e r i p h e r a l e x p a n s i o n .I t ' l l e v e n s u r v i v e a" s o f t " r e s e t .

H A R D D I S KF i n a l l y , h a r d d i s k d r i v e f o t h

A m i g a m a d e t t h s a m e e x a c t i n gs t a n d a r d s a t h A X 2 0 0 0 . I r u n so e v e r y v o l t a g e f r o m 9 t 2 6

v o l t s . I u s e s 5 o 6 H z I t ' sa v a i l a b l e s i m p l y a s S C S I

h o s t a d a p t o r , S C S I h o s ta d a p t o r a n c o n t r o l l e r , o

a s c o m p l e t e 2 M e g .h a r d d r i v e . I f a c t t h m a c h i n e a c c e p t s h a r d

d r i v e s s t a r t i n g f r o m 1 M e a n u p T h h a r dd r i v e c a b c o m b i n e d

w i t h t h e A X 2 0 0 0 t p r o v i d e u t M e o

R A m e m o r y . A d a p t a b i l i t yi t h d e f i n i t i o n o C o m s p e c ' s

n e h a r d d i s k d r i v e .B u t h h a r d d i s k i m o r e t h a n

a d a p t a b l e . I c o m e s s t a n d a r dw i t h f e a t u r e s y o w o n ' t s o o n

f o r g e t . b u i l t - i n p o w e r s u p p l yg i v e s t h A m i g a a

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

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

I c o m e s w i t h b u i l t - i n S C S I p o r t . T h c l o c k c a l e n d a r h a s b a t t e r y b a c k - u p .

A n o c o u r s e i t ' s a u t o - c o n f i g u r i n g .