88

The Transactor V7 02 1986

Embed Size (px)

Citation preview

8/7/2019 The Transactor V7 02 1986

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

8/7/2019 The Transactor V7 02 1986

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

o n e w s !I y o w a n t t g e t t h e m o s t o u o y o u r C o m m o d o r e 1 2 o 6 4 w h a v e g o o d s n e w s f o y o u . T h P o c k e t 1 2 a n 6 S e r i e so S o f t w a r e b o t h o f f e r y o s e r i o u s , p r o f e s s i o n a l q u a l i t ys o f t w a r e p a c k a g e s t h a t a r e a s y t u s a n i n e x p e n s i v e .

P o c k e t 1 2 o 6 S o f t w a r e i s o e a s y , y o u ' r e r e a d y t o s t a r tu s i n g i a s o o n a i t ' s l o a d e d i n t o m e m o r y . E v e n i y o u ' v en e v e r b e e n i f r o n t o f c o m p u t e r b e f o r e , y o u ' l l b e u p a n r u n n i n g i t h i r t y m i n u t e s . I f a c t , y o p r o b a b l y w o n ' t e v e r n e e dt h r e f e r e n c e g u i d e . . ' h e l p ' i a v a i l a b l e a t h t o u c h o k e y .T h a t ' s h o e a s y .

o s e r i o u s ?P o c k e t 1 2 o 6 p a c k a g e s h a v e a l t h p o w e r y o u ' r e e v e rl i k e l y t n e e d . T h e y h a v e a l o t h e f e a t u r e s y o u ' d e x p e c t i t o p - o f - t h e - l i n e s o f t w a r e , a n t h e n s o m e . T h g o o d n e w s i t h a tP o c k e t 1 2 o 6 S o f t w a r e P a c k a g e s a r p r i c e d w a d o w nt h e r e . . w h e r e y o u c a n a f f o r d t h e m .F a s t , p o w e r f u l , e a s y t l e a r n a n i n e x p e n s i v e .S a y , t h a t i g o o d n e w s !

P o c k e t 1 2 o 6 S o f t w a r e P a c k a g e s o f f e r y o s o m e t h i n ge l s e y o m i g h t n o t e x p e c t . . . i n t e g r a t i o n . Y o u c a n c o m b i n e t h o u t p u t o P o c k e t W r i t e r , P o c k e t F i l e r a n P o c k e t P l a n n e ri n t o o n p i e c e o w o r k . Y o u c a n c r e a t e a f i n i s h e d d o c u m e n tw i t h g r a p h s , t h e n s e n d i n d i v i d u a l l y a d d r e s s e d c o p i e s .

b o t t o m l i n e i S o l l u f i o n sT h w o r d s o l u t i o n s i o u m i d d l e n a m e a n b o t t o m l i n e . W h e ny o p u r c h a s e P o c k e t 1 2 o 6 s o f t w a r e , y o u c a n c o u n t o i t s o l v e y o u r p r o b l e m s .

F o i n f o r m a t i o n w r i t e t o D i g i t a l S o l u t i o n s3 0 W e r t h e i m C o u r l . U n i tR i c h m o n d H i i l , O n t a r i oC a n a d a 1 4 B 1 B 9t e l e p h o n e ( 4 1 6 ) 7 3 1 - 8 7 7 5

P o c k e t W r i t e r 1 2 o 6 W o r d P r o c e s s i n gW h a t y o s e i w h a t y o g e

W i t h P o c k e t W r i t e r 1 2 8 o 6 4 t h e r e ' s n m o r e g u e s s i n gw h a t t e x t w i l l l o o k l i k e w h e n y o p r i n t i t W h a t y o s e i w h a ty o g e t . . . o s c r e e n a n i p r i n t . T h e r e a r e n f a n c y c o d e s t m e m o r i z e , n o b r o k e n w o r d s a t h e n o l i n e .E a s y t l e a r n a n s o p h i s t i c a t e d . P o c k e t W r i t e r 1 2 o 6 o f f e r s s t a n d a r d w o r d p r o c e s s i n g f e a t u r e s p l u s . .

o n - s c r e e n f o r m a t t i n g a n w o r d w r a po n - s c r e e n b o l d f a c e ,u n d e r l i n e s a n i t a l i c sn c o m p l i c a t e d f o r m a tc o m m a n d s t o c l u t t e r t e x to n - s c r e e n h e l p a a l l e v e l s

s p e l l i n g - c h e c k e r l e t s y o a d w o r d s t y o u r d i c t i o n a r y4 o 8 c o l u m n s o s c r e e nf i l e s c o m p a t i b l e w i t hP a p e r C l i p ™ o r o t h e r w o r dp r o c e s s o r s

P o c k e t P l a n n e r 1 2 o 6 C o m p u t e r i z e d S p r e a d s h e e tM a k e f a s t w o r k o b u d g e t i n g a n f o r e c a s t i n g

P o c k e t P l a n n e r 1 2 8 o 6 s o f t w a r e l e t s y o m a k e f a s t w o r ko a l y o u r b o o k k e e p i n g c h o r e s . C h e q u e b o o k s , h o u s e h o l da c c o u n t s , b u s i n e s s f o r e c a s t i n g a n b o o k k e e p i n g a r j u s t s o m eo t h j o b s t h a t P o c k e t P l a n n e r 1 2 o 6 4 p a c k a g e s m a k ee a s i e r . Y o c a n e v e n c r e a t e f o u r d i f f e r e n t k i n d s o g r a p h s .A c c u r a t e , s o p h i s t i c a t e d a n e a s y t u s e . P o c k e t P l a n n e r1 2 o 6 o f f e r s s t a n d a r d s p r e a d s h e e t f e a t u r e s p l u s . . .

a c c u r a c y u t 1 d i g i t s ,a b o u t t w i c e a m a n y a m o s ts p r e a d s h e e t s f o t h C o m m o d o r e 1 2 o 6 s i d e w a y s p r i n t i n g a v a i l a b l e o d o m a t r i x p r i n t e r s , f o o v e r s i z e d s p r e a d s h e e t s t h a tw o n ' t f i o s t a n d a r d p a p e ro n - s c r e e n h e l p a a l l e v e l sc o m p a t i b l e w i t h V i s i C a l c ™ f i l e s

8 c o l u m n o n - s c r e e n o p t i o nf o r t h e C o m m o d o r e 6 i a d d i t i o n t t h s t a n d a r d 4 c o l u m n sg r a p h i c s i n c l u d e b a r ,s t a c k e d b a r , l i n e a n d p i eg r a p h s t h a t c a a l s o b u s e di w o r d p r o c e s s i n g f i l e ss m a r t e v a l u a t i o n o f o r m u l a e f o a c c u r a t ec o m p l e x m a t r i c e s

P o c k e t F i l e r 1 2 o 6 D a t a b a s e M a n a g e rD a t a b a s e m a n a g e m e n t m a d e e a s y

W i t h P o c k e t F i l e r 1 2 o 6 4 y o c a o r g a n i z e m a i l i n g l i s t s ,a d d r e s s e s , i n v e n t o r i e s , t e l e p h o n e n u m b e r s , r e c i p e s a n o t h e ri n f o r m a t i o n i a e a s i l y a c c e s s i b l e f o r m . U s i w i t h P o c k e tW r i t e r 1 2 8 o 6 ( o o t h e r w o r d p r o c e s s o r s ) t c o n s t r u c ti n d i v i d u a l l y c u s t o m i z e d f o r m l e t t e r s .P o c k e t F i l e r 1 2 o 6 p a c k a g e s a r f a s t , s o p h i s t i c a t e d a n t r u l y e a s y t o u s e . I a d d i t i o n t s t a n d a r d d a t a b a s e f e a t u r e st h e y o f f e r . .

™ P o p e r O i p i r e g i s t e r e d t r a d e m a r ko B a t t e r i e s I n c l u d e d

u s u t 2 5 f i e l d s p e r e c o r d( 2 , 0 0 0 c h a r a c t e r s p e r e c o r d )s o r t s b y u p t c r i t e r i a , c a s a v e 9 d i f f e r e n t s o r t sp r i n t l a b e l s i m u l t i p l ec o l u m n sf l e x i b l e r e p o r t f o r m a t t i n gi n c l u d i n g h e a d e r s a n f o o t e r s

o p t i o n a l p a s s w o r d p r o t e c t i o ni n c l u d i n g l i m i t e d a c c e s sv i e w i n g o u p d a t i n go n - s c r e e n h e l p a a l l e v e l sp r i n t f r o m a n r e c o r d t a n r e c o r da r i t h m e t i c a n t r i g o n o m e t r i cf u n c t i o n s i r e p o r t s u s i n g u t 1 d i g i t a c c u r a c y

™ V i s i c o / c r s r e g i s t e r e d t r a d e m a r k o S o f t w a r e A r t s

8/7/2019 The Transactor V7 02 1986

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

M A I L O R D E R S :T r a n s a c t o r P u b l i s h i n g I n c .

5 O S t e e l e s A v e n u eM i l t o n , O n t a r i o , L 9 T 3 P 7

1 - 4 1 6 - 8 7 8 - 8 4 3 8O r u s e o r d e r c a r d a t c e n t e r .

O n l y T h eN a m e I N e

T h p r o f e s s i o n a l ,f u l l - f e a t u r e d s o f t w a r el i n e f r o m D i g i t a l S o l u t i o n si n o c a l l e d P o c k e tS o f t w a r e .P o c k e t W r i t e r 1 2 8 / 6 4 .P o c k e t F i l e r 1 2 8 / 6 4 .P o c k e t P l a n n e r 1 2 8 / 6 4 .T h n a m e s a r n e w , b u t h i s s u p e r s o f t w a r e i s t i l lt h s a m e .F r o m n o o n w h e n y o h e a r t h w o r d P o c k e t , i m e a n s s o f t w a r e t h a t ' sf u l l - f e a t u r e d , h a n d y a n e a s y t u s e .

P o c k e t S o f t w a r e a t p r i c e st h a t w o n ' t p i c k y o u rp o c k e t .

Y o w a n t t h v e r y b e s t s o f t w a r e y o c a f i n d f o r y o u rC o m m o d o r e 1 2 o 6 4 r i g h t ?Y o w a n t i n t e g r a t e d s o f t w a r e w o r d p r o c e s s i n g ,d a t a b a s e a n s p r e a d s h e e t a p p l i c a t i o n s a s e n s i b l ep r i c e . B u t , y o a l s o w a n t t o p - o f - t h e - l i n e f e a t u r e s .W e l l , o u P o c k e t 1 2 8 / 6 4 s o f t w a r e g o e s o n b e t t e r .

o u ' l l f i n d a l t h f e a t u r e s y o c a n i m a g i n e . . . a n t h e n s o m e . A n P o c k e t 1 2 8 / 6 4 i s e a s y t u s e , y o w o n ' t e v e n n e e d t h r e f e r e n c e g u i d e .O n - s c r e e n a n i m e m o r y i n s t r u c t i o n s w i l l h a v e y o u u pa n r u n n i n g i l e s s t h a n 3 m i n u t e s , e v e n i y o u ' v e n e v e ru s e d c o m p u t e r b e f o r e .T h p r i c e ? I t ' s a l o a s y o u ' d e x p e c t f o l i n e o s o f t w a r e c a l l e d ' P o c k e t ' . S u g g e s t e d R e t a i l P r i c e f o r t h 6 s o f t w a r e i $ 3 9 . 9 5 ( U . S . ) a n d $ 4 9 . 9 5 ( U . S . ) f o t h 1 2 8 .A n o t h 6 p r o d u c t s m a b u p g r a d e d t t h e i r 1 2 v e r s i o n f o r $ 1 5 . 0 0 ( U . S . ) $ 3 . 0 0 s h i p p i n g a n h a n d l i n g . ( A v a i l a b l e t r e g i s t e r e d o w n e r s f r o m D i g i t a lS o l u t i o n s I n c . o n l y . )P o c k e t W r i t e r 1 2 o 6 4 P o c k e t P l a n n e r 1 2 o 6 4 a n dP o c k e t F i l e r 1 2 o 6 4 . . . S o l u t i o n s a s e n s i b l e p r i c e sf r o m D i g i t a l S o l u t i o n s I n c .I n t e r n a t i o n a l D i s t r i b u t o r e n q u i r i e s t o

S e r i o u s s o f t w a r et h a t ' s s i m p l e t u s e ./ / D i g i t a lf / j S o l u t i o n sf / f t I n c .

3 W e r t h e i m C o u r t ; U n i t 2R i c h m o n d H i l l , O n t a r i oC a n a d a L 4 B 1 B 9t e l e p h o n e ( 4 1 6 ) 7 3 1 - 8 7 7 5

P o c k e t W r i t e r 1 2 a n d 6 4 a r n o a v a i l a b l e i F r e n c h .

8/7/2019 The Transactor V7 02 1986

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

M E G s F o Y o u rA M I G A

m u s t f o s o f t w a r e d e v e l o p e r sA l l o w s m o r e p r o g r a m s t r u s i m u l t a n e o u s l y a n f a s t e r

C a b u s e d t i n c r e a s e s y s t e m R A a n d / o r a F A S T R A D R I V EU s e s s t a n d a r d m e m o r y b u a r c h i t e c t u r e t a l l o w f o f u t u r e c o m p a t i b i l i t y

A l l o w s f u l l u s o m e m o r y e x p a n s i o n p o r t f o a d d i t i o n a l p e r i p h e r a l s

A X 2 0 0 0 M E R A B o a r d $ 8 9 9 . 0 0 U . S . ( $ 1 2 7 6 . 0 0 C D N )A X I O O O M E R A B o a r d $ 7 2 9 . 0 0 U . S . ( $ 1 0 3 5 . 0 0 C D N )

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

D E A L E R I N Q U I R I E S I N V I T E DC o m s p e c C o m m u n i c a t i o n s I n c .1 5 B r i d g e l a n d A v e n u e , U n i t

T o r o n t o , O n t a r i o , C a n a d aM 6 2 Y ( 4 1 6 ) 7 8 7 - 0 6 1 7

M a i l o r d e r t h r o u g h T h T r a n s a c t o r( s e e o r d e r c a r d a n N e w s B R K )

S h i p p i n g v i c o u r r i e r : w i t h i n C a n a d a a d $ 2 5 . 0 0 . T U . S . A . a d $ 1 0 0 . 0 0 U . S . i n c l u d e s c u s t o m s c l e a r a n c eA M I G A i r e g i s t e r e d t r a d e m a r k o C o m m o d o r e B u s i n e s s M a c h i n e .

8/7/2019 The Transactor V7 02 1986

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

V o l u m eI s s u e 0

C i r c u l a t i o n 6 4 , 0 0 0

G a m e s F r o m T h I n s i d e O u S 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 sH e a d C l e a n i n g F o T h 2 0 3 1S u p e r G E TT u r n i n g o f R E M O T E 6 F r e a k o u t a n F a r z o i dD e v i c e N o t P r e s e n t U p d a t eD i s p l a y T & F i U n d e r l i n e C u r s o r f o t h 6 C o m p l e t e J o y s t i c k K e y b o a r d E q u i v a l e n t sD e f i n e E x t r a C - I 2 8 K e y sS e t t i n g t h e B - 1 2 8 I n t e r r u p t R a t eM o r e B - 1 2 8 I n f oB - S e r i e s S o u n dF i n d P r o g r a m ' s S t a r t a n E n A d d r e s sF i n d i n g R e l a t i v e F i l e R e c o r d L e n g t h sS I W h i s t l e - K i l l e rD i s k R e s c u eL O A D B T r a c k a n S e c t o r

U s F o T h P e r i o d i c T a b l e !P y t h a g o r e a n T r i p l e t G e n e r a t o rE a s y D A T A V i e w i n gT e x t c r a f t F i l e s O A m i g a ' s E x t e r n a l D r i v eC - 6 4 E a s y F i l e n a m e R e t r i e v a lC 1 2 8 C P / M A S C I I O u t p u tU n - A s s e m b l e r S p e e d - U pB i g g e r S t a c k s F o H e a l t h y A s s e m b l yA m i g a A B a s i C P r o g r a m B o o tE a s y S p e e d - U p F o T h 1 5 4 1A m i g a D a t e - P r o m p t S t a r t u p S e q u e n c e

L e t t e r s 1 T h M u t a n t V i T h e C o p y B l u e sP o s t a l S e r v i c e B l u e s V i T i m eH e A E v i l S p e l l 1 2 0 0 B i t s P e S e c o n d p e s e c o n dL e f t W i n g I n t e r f e r e n c e R e v i s i t e d "

C o m p a r i s o n O f F o u r W o r d P r o c e s s o r s R e v i s i t e d

N e w s B R K 7 A m i g a R A E x p a n s i o n b C o m s p e cP a p e r b a c k W r i t e r n o " P o c k e t W r i t e r "G n o m e S p e e d C o m p i l e r = S C o m p i l e rN S a l e s T a x o n B o o k sS e n d i n g C h e q u e s F o r T r a n s a c t o r P r o d u c t sT h T r a n s a c t o r C o m m u n i c a t i o n s D i s kD e m i s e o V i e w t r o nQ u a n t u m L i n k a n T i m e l i n eU s i n g T r a n s a c t o r P r o g r a m s I P r o p r i e t a r y S o f t w a r e1 9 8 6 M i d w e s t C o m m o d o r e C o n f e r e n c e / E x p oM S S t i l l A l i v e A n P r o s p e r i n g !T w i n C i t i e s 1 2 8 : T h C o m m o d o r e 1 2 J o u r n a lC r e a t i v e W r i t e rS e c t o r S u r g e o n F o T h C - 6 4T h r e e M I D I D a t a S t o r a g e P r o g r a m s F o T h 6 T h E l e c t r o n i c S h o e B o x A c c o u n t i n g S y s t e m sF r e e d o m A s s e m b l e r - 1 2 8 F o T h C o m m o d o r e 1 2 R e b e l A s s e m b l e r / E d i t o r F o T h 6 a n 1 2 L i D e a l ' s B a s i c P r o g r a m C o n v e r t e r1 a n d 2 0 M e g a b y t e H a r d D i s k D r i v e s F o r T h e C 6 4Q u i c k B r o w n B o x : A 8 R e a d / W r i t e C a r t r i d g e1 5 4 0 / 1 5 4 1 D r i v e A l i g n m e n t S y s t e mA s t r o l o g y P r o g r a m F o C o m m o d o r e 6 M u l t i p l e x E i g h t R S 2 3 2 P o r t s O n t o S i n g l e X . 2 5 L i n e/ S P E E D P A K / S p e e d s c r i p t E n h a n c e rS p e e d - P l u s S p e e d s c r i p t E n h a n c e r

T r a n s B A S I C I n s t a l l m e n t # 1 1 T h A t a r i S N o t e b o o k 2 B O O T B a S i C S J i m B u t t e r f i e l d o n C 1 2 8 B O O T 2 N e L o o p s : T h C 1 2 8 S t a c k 3 E l i m i n a t i n g S A V E ® a n O t h e r 1 5 4 1 B u g s 3 F O R M A T T R A C K 3 6 3 6A A m i g a P r i n t e r C a b l e h a r d w a r e t h a r d w a r e p r o j e c t 3 S a V e S Y M A S S S y m b o l S S Y M A S S A s s e m b l e r U t i l i t y 4 T r a n s c r i b e 6 8 r e l m c o p i e r u t i l i t y 4

a s i m p l e e x p e r t s y s t e m t h a t ' s a l s o g a m e 4 K e 6 i n t e r r u p t w i t h o u t b r e a k i n g u p 5

M O V E : P r o p a g a t i n g M e m o r y M o v e R o u t i n e 5 S p r i t e B i A d d r e S S i n g m a s k i n g t e c h n i q u e s 5 S p r i t e N u m b e r s d i s p l a y m e s s a g e s t h e a s y w a 5 A d d i n g D e p t h T o Y o u r S c r e e n s 6 V i e W p O r t S h i - r e s a n m u l t i - c o l o u r m o d e w i n d o w s ! O

C 6 H i - R e s o l u t i o n D r a w R o u t i n e 6 H i - R e S S e a r c h a n P r i n t v e r s a t i l e h i r e s p r i n t u t i l i t y 6 C 1 2 8 H i - R e s o l u t i o n G r a p h i c s 7 2C o m p u - t o o n s 7

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

h T r a n s a c t o r S e p t . 1 9 8 6 : V b t u m e 7 t a u e O

8/7/2019 The Transactor V7 02 1986

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

T t c n s a d o rT h . t » e t ! / l t o w i J o u r n a l K » C o m m o < ! o i « e o m p < i ! » ™

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

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

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

A r D i r e c t o rJ o h n M o s t a c c i

A d m i n i s t r a t i o n S u b s c r i p t i o n sA n R i c h a r d

C o n t r i b u t i n g W r i t e r sI a A d a mD a n i e l B i n g a m o nN e i l B o y l eA n t h o n y B r y a n tT i B u i s tJ i B u t t e r f i e l dG a r y C o b bJ a c k C o l eJ e f f e r y C o o n sP i e r r e C o r r i v e a uR o b e r t V D a v i sE l i z a b e t h D e a lF r a n k E D i G i o i aY i j u n D i n gP a u l T D u r r a n tM i c h a e l J E r s k i n eJ a c k F a r r a hR J a m e s d G r a f fJ i m G r u b b sT o H a l lB o H a y e sJ o h n J a H i l f i g e rA n d y H o c h h e i m e rJ o h n H o l t t u mD a v i d H o o kR o b e r t H u e h nT o H u g h e sD a v i d J a n k o w s k iC h r i s J o h n s o nM a r k J o r d a nC l i f t o n K a r n e sG a r y K i z i a kJ e s s e K n i g h tJ a m e s E L a P o r t eW i l l i a m L e v a k

J a m e s A L i s o w s k iJ a c k L o t h i a nS c o t t M a c l e a nS t e v e M c C r y s t a lS t a c y M c l n n i sJ i m M c L a u g h l i nS t e v e M i c h e lT e r r y M o n t g o m e r yM i c h a e l M o s s m a nG e r a l d N e u f e l dN o e l N y m a nD a v e P o l l a c kR i c h a r d P e r r i tT e r r y P r i d h a mR a y m o n d Q u i r l i n gG l e n R e e s o rG a r y R o y a lJ o h n W . R o s sJ o h n R u s s e l lL o u i s F S a n d e rF r e d S i m o nP e r r y S h u l t zP A S l a y m a k e rE d w a r d S m e d aD a r r e n J S p r u y tN i c k S u l l i v a nZ o l t a n S z e p e s iK a r e l V a n d e r L u g tA u d r y s V i l k a sA n d r e w W a l d u c kS t e v e n W a l l e yJ a c k W e a v e rC h a r l e s W h i t t e r nE v a n W i l l i a m sC h r i s W o n g

P r o g r a m L i s t i n g s I T h T r a n s a c t o rA l p r o g r a m s l i s t e d i T h T r a n s a c t o r w i l l a p p e a r a t h e y w o u l d o n y o u r s c r e e n i U p p e r / L o w e rc a s e m o d e . T o c l a r i f y t w p o t e n t i a l c h a r a c t e r m i x - u p s , z e r o e s w i l l a p p e a r a ' 0 a n t h l e t t e r " o w i l l o c o u r s e b i l o w e r c a s e . S e c o n d l y , t h l o w e r c a s e ( T h a s a f l a t t o a o p p o s e d t t h n u m b e r w h i c h h a a a n g l e d t o p .M a n y p r o g r a m s w i l l c o n t a i n r e v e r s e v i d e o c h a r a c t e r s t h a t r e p r e s e n t c u r s o r m o v e m e n t s , c o l o u r s ,o f u n c t i o n k e y s . T h e s e w i l l a l s o b s h o w n e x a c t l y a t h e y w o u l d a p p e a r o y o u r s c r e e n , b u t h e y ' r e l i s t e d h e r e f o r e f e r e n c e . A l s o r e m e m b e r : C T R L - q w i t h i n q u o t e s i i d e n t i c a l t o C u r s o rD o w n , e a l O c c a s i o n a l l y p r o g r a m s w i l l c o n t a i n l i n e s t h a t s h o w c o n s e c u t i v e s p a c e s . O f t e n t h e n u m b e r o s p a c e s y o i n s e r t w i l l n o b c r i t i c a l t c o r r e c t o p e r a t i o n o t h p r o g r a m . W h e n i i s t h r e q u i r e dn u m b e r o s p a c e s w i l l b s h o w n . F o e x a m p l e :

p r i n t f l u s h r i g h t w o u l d b s h o w n a p r i n t [ 1 s p a c e s ] f l u s h r i g h t

C u r s o r C h a r a c t e r s F o r P E C B V I 6 D o w n I n s e r tU D e l e t e -R i g h t - | C l e a r S c r n - ~L e f t [ L f t ] H o m eR V S T O PR V O f

C o l o u r C h a r a c t e r s F o r V I C 6 B l a c kW h i t eR e C y a n [ C y n ]P u r p l e [ P u r ]G r e e nB l u eY e l l o w - [ Y e l ]

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

F 5 F 6 F 7 F 8

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

P r i n t i n gP r i n t e d i C a n a d a b

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

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

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

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

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

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

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

C o m p u L i tP B o 3 5 P o r t C o q u i t l a m , B V 5 4 K 6 0 4 9 4 1 7 9 1 1

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

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

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

A l m a t e r i a l a c c e p t e d b e c o m e s t h e p r o p e r t y o T h T r a n s a c t o r . A l m a t e r i a l i c o p y r i g h t b T r a n s a c t o rP u b l i c a t i o n s I n c . R e p r o d u c t i o n i a n y f o r m w i t h o u t p e r m i s s i o n i i v i o l a t i o n o a p p l i c a b l e l a w s . P l e a s er e - c o n f i r m a n p e r m i s s i o n s g r a n t e d p r i o r t t h i s n o t i c e . S o l i c i t e d m a t e r i a l i a c c e p t e d o n a n a l r i g h t sb a s i s o n l y . W r i t e t t h M i l t o n a d d r e s s f o w r i t e r s p a c k a g e .T h o p i n i o n s e x p r e s s e d i c o n t r i b u t e d a r t i c l e s a r e n o t n e c e s s a r i l y t h o s e o T h T r a n s a c t o r . A l t h o u g ha c c u r a c y i m a j o r o b j e c t i v e , T h T r a n s a c t o r c a n n o t a s s u m e l i a b i l i t y f o e r r o r s i a r t i c l e s o p r o g r a m s .P r o g r a m s l i s t e d i n T h T r a n s a c t o r a r e p u b l i c d o m a i n ; f r e e t c o p y , n o t t s e l l .

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

8/7/2019 The Transactor V7 02 1986

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

T h G a m e s G a m eT S T o r o n t o S t o c k E x c h a n g e ? N o p e , n o t h i s t i m e . T o d a y i s t a n d sf o " T o r o n t o S o f t w a r e E x p r e s s " a n h e s i t a t e t e v e n m e n t i o n i t A l t h o u g h w h a t h a v e t s a w i l l n o b p r e t t y , r e g r e t g i v i n g f r e ep u b l i c i t y t a t h o r n .

R e c e n t l y s a p r o g r a m d e m o n s t r a t e d . I w a g a m e , a n r a t h e rp r o f e s s i o n a l l o o k i n g g a m e w i t h h i g h r e s o l u t i o n s c r e e n s t h a t o b v i o u s l yr e q u i r e d c o n s i d e r a b l e t i m e a n e f f o r t . d o n ' t r e c a l l t h n a m e o t h g a m e , b u w h a t r e m e m b e r m o s t w a t h o p e n i n g s c r e e n . I t o m u s th a v e t a k e n c o n s i d e r a b l e t i m e a n e f f o r t . I p r o u d l y d i s p l a y e d t h en a m e o t h p e r s o n w h u n r a v e l l e d t h p r o t e c t i o n o t h g a m e , t h l e t t e r s " T S E " i l a r g e h i - r e s c h a r a c t e r s , a n h i - r e s m e s s a g e t h a ts c r o l l e d f r o m r i g h t t o l e f t c o n t a i n i n g t h n a m e s a n n u m b e r s o T S b u l l e t i n b o a r d s i t h i m m e d i a t e a r e a . T h n e x t s c r e e n w a l i s t o n l e s s t h a n 1 m o r e n u m b e r s f o b o a r d s a l s o a f f i l i a t e d w i t h t h T S E .

F r o m a n o t h e s e n u m b e r s , o n c a u s t h e i r c o m p u t e r t c a l l a n d o w n l o a d s o f t w a r e o a l t y p e a n m a k e a a b s o l u t e l y n c h a r g e . T r u e ,m o s t o t h p r o g r a m s a r e p u b l i c d o m a i n , b u m a n y a r n o t . c o u l d f i l lt h r e s t o f t h i s p a g e w i t h w o r d s I ' l i k e t o u s d e s c r i b i n g t h i s s o r t o fa c t i v i t y . W o r d s l i k e d e p l o r a b l e , d e t e s t a b l e , d e s p i c a b l e , a n i m m o r a ld o n ' t e v e n b e g i n t e x p r e s s h o f e e l a b o u t t h i s .

S i n c e t h o p e r a t o r s o t h e s e s e r v i c e s c o l l e c t n f e e , t h e y w o u l dp r o b a b l y a r g u e " n w r o n g d o i n g " . H o w e v e r , t h m a n u f a c t u r e r s o t h e s e p r o g r a m s a r a l s o c o l l e c t i n g n o t h i n g f o t h e s e c o p i e s . D u r i n gy e a r t h e y m a s p e n d t h o u s a n d s o d e v e l o p m e n t a n p r o d u c t i o n , n o tt m e n t i o n t a x e s , o v e r h e a d , s h i p p i n g , b i l l i n g , a n a h o s t o o t h e re x p e n s e s .

A l o t h i s h a b e e n s a i d b e f o r e , k n o w . L i k e w i s e , t h e q u e s t i o n a r i s e so n c e a g a i n , " w o u l d t h e y h a v e b o u g h t i t i f t h e y c o u l d n ' t g e i f o f r e e ? "P r o b a b l y n o t . B u w h a t d y o s u p p o s e w o u l d h a p p e n i y o l o a d e dt h l a t e s t W h i t n e y H o u s t o n t a p e i n t o h i g h s p e e d d u p l i c a t o r a n s t a r t e d p a s s i n g t h e c o p i e s o u t t a n y o n e w i l l i n g t c o m e a n g e o n e .M a n y p e o p l e , m y s e l f i n c l u d e d , p r o b a b l y w o u l d n ' t b o t h e r . B u s u p e c t s o m e o n e w o u l d a s y o t s t o p , m y s e l f i n c l u d e d .

N o I ' b w i l l i n g t b e t h e r e i s n ' t o n c o m p u t e r h o b b y i s t o u t h e r e ,r e g a r d l e s s o t h b r a n d n a m e o t h e i r e q u i p m e n t , w i t h o u t p o s s e s s i o no a l e a s t o n p r o g r a m c u r r e n t l y f o s a l e t h a t t h e y h a v e u s e d w i t h o u tp a y i n g f o r . G e t t i n g s o m e t h i n g f o n o t h i n g i h u m a n n a t u r e . B u i t ' sa l s o a e f f e c t i v e s a l e s t a c t i c w h i c h m a n u f a c t u r e r s h a v e j u s t s t a r t e du s i n g . W a l k n o w t h a t w i t h o u t m a n u a l , m a n y p r o g r a m s a r v i r t u a l l y u n u s a b l e . S p r e a d s h e e t s , w o r d p r o c e s s o r s , d a t a b a s e s , a s s e mb l e r s , a n m a n y o t h e r s a r e p r o t e c t e d t h i s w a b e c a u s e s e n d i n g o u f r e e m a n u a l s c a g e e x p e n s i v e . G a m e s s e e m t b t h m o s t v u l n e r ab l e , e s p e c i a l l y g a m e s w h i c h r e q u i r e l i t t l e o n i n s t r u c t i o n . O f f e r s l i k ef r e e u p d a t e s , d i s c o u n t s o o t h e r p r o d u c t s , e x q u i s i t e c o l o u r m a n u a l s ,c o n t e s t s f o r t r i p s o c a s h p r i z e s , a n o t h e r m o r e i m a g i n a t i v e i n c e nt i v e s a r e p l a n t i n g t h e i d e a t h a t " c a g o l o o k i n g f o f r e e o n e , b u t i b u y o n e a l s o g e t . .

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

i j u s t t o o t e m p t i n g . S w h a t s h o u l d b e d o n e ? M a n y o n l i n e s e r v i c e sh a v e m a d e t h e m s e l v e s r e s p o n s i b l e f o s o f t w a r e a v a i l a b l e o t h e i rs y s t e m s . T h e i r u s e r s a r e w a r n e d n o t u p l o a d c o p y w r i t t e n s o f t w a r ea n t h o s e w h d o c a n u s u a l l y b i d e n t i f i e d . S i n c e t h e s e o r g a n i z a t i o n sh a v e m u c h t l o s e ( i e . e v e r y t h i n g ) , t h e y a r l e s s r e l u c t a n t t i n v o k ed i s c i p l i n a r y m e a s u r e s o t h c u l p r i t t h a n w o u l d b a s e m e n t o p e r at i o n . A c t i o n l i k e p u b l i c l y a n n o u n c i n g t e r m i n a t i o n o a c c e s s p r i v i l e g e si u s u a l l y e n o u g h t e l i m i n a t e f u r t h e r i n s t a n c e s .

T h a t l e a v e s t h e b u l l e t i n b o a r d s , w h i c h a r e s o o f t e n r u b y o u n gh o b b y i s t s o p h o n e l i n e s b i l l e d t o t h e i r p a r e n t s . T h e y o b t a i n B B p r o g r a m ( p u b l i c d o m a i n B B s o f t w a r e i r e a d i l y a v a i l a b l e ) a n l o a d i u w i t h a m a n y p r o g r a m s a t h e i r s y s t e m w i l l h a n d l e . G a i n i n gp o p u l a r i t y i o n o t h e i r m a i n o b j e c t i v e s . N a t u r a l l y . B u e v e n t h o u g ht h e r e a r e h u n d r e d s o f g r e a t p r o g r a m s i t h e p u b l i c d o m a i n , t h e ya s s u m e t h e y h a v e n o t h i n g t l o s e b o f f e r i n g p r o p r i e t a r y s o f t w a r e .W r o n g o ! N e l e g i s l a t i o n i c l o s e t b e c o m i n g , o m a a l r e a d y b l a w .A n i s o m e m a n u f a c t u r e r c o m p l a i n s , Y O m a b f i r s t i l i n e t t e s ti o u t .

I t h R C M P c a m e k n o c k i n g o m d o o r a s k i n g f o h e l p , w o u l do b l i g e ? Y o b e w o u l d . B u o c e r t a i n c o n d i t i o n s o n l y . F i r s t o a l l ,d o n ' t h a v e c o p i e s o t h o s e p h o n e n u m b e r s t o f f e r , b u t h a t d o e s n ' tm e a n c o u l d n ' t f i n d t h e m . w o u l d n e e d p r o o f o p l a n s f o n a t i o nw i d e c a m p a i g n . T o r o n t o i s n ' t t h o n l y c e n t e r f o r t h i s a c t i v i t y . N e x t ,w o u l d n e e d g u a r a n t e e t h a t c r i m i n a l c h a r g e s w o u l d n o b s t r e w na b o u t l e f t a n r i g h t . I m o p i n i o n , c r i m i n a l c h a r g e s a r e t o o e a s y t g e a n n o e a s y e n o u g h t g e r i o f M o s t o t h e s e B B o p e r a t o r s a r eb r i g h t y o u n g i n d i v i d u a l s w i t h b r i l l i a n t c a r e e r s a h e a d o t h e m . M u c h a

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

I y o u ' r e i n v o l v e d , g e o u w h i l e y o c a n . K e e p y o u r B B S , b u e l i m i n a t e t h e p r o g r a m s t h a t o t h e r s d e p e n d o n f o i n c o m e . . . i n c o m et h a t k e e p s t h e m f r o m c h a n g i n g j o b s ! B e s i d e s , y o m a n o b g i v e na e a r l y w a r n i n g . L a r g e c o r p o r a t i o n s o f t e n i n c l u d e t h e c o s t o p e n a l t yb e f o r e e n g a g i n g i a n c o v e r t a c t i v i t y . B u t a k e m o m e n t t c o n s i d e rw h a t e f f e c t $ 1 5 , 0 0 0 f i n e m i g h t h a v e o y o u r p e r s o n a l s a v i n g s .

d o n ' t h a v e a l t h a n s w e r s , b u w h k n o w s t h e r e j u s t m a b m a n u f a c t u r e r o u t t h e r e w i l l i n g t i n v e s t i g a t e t h p o t e n t i a l f o s u p p o r ti n g t h e B B m e t h o d o l o c a l d i s t r i b u t i o n . F o r t h o s e r e s o u r c e f u le n o u g h t m a k e a e f f o r t , y o m a j u s t b a b l e t t u r n a p e r i l o u ss i t u a t i o n i n t o p r o f i t a b l e o n l e g a l l y ! A N D , I ' b o n l y t o h a p p y t a c a s c a t a l y s t , b e c a u s e . . .

T h e r e i n o t h i n g a c o n s t a n t a c h a n g e , r e m a i n

K a r l

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

8/7/2019 The Transactor V7 02 1986

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

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

T h T r a n s a c t o r ' s F o o l p r o o f P r o g r a m E n t r y M e t h o d

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

T h e r e a r t w v e r s i o n s o V E R I F I Z E R o t h i s p a g e ; o n i f o t h V I o C 6 4 , t h e o t h e r f o t h C 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 ma n R U i t I y o g e d a t a o c h e c k s u m e r r o r , r e - c h e c k t h p r o g r a m a n d k e e p t r y i n g u n t i l a l g o e s w e l l . Y o s h o u l d S A V E t h p r o g r a m , s i n c e y o u ' l l w a n t t u s i e v e r y t i m e y o e n t e r o n o o u p r o g r a m s . O n c e y o u ' v e R U t h l o a d e r , r e m e m b e r t e n t e 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 8 2 t e n a b l e t h C 6 4 / V I C v e r s i o n ( t u r n i o f w i t h S Y 8 3 1 )o S Y 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 w i t h S Y 3 0 7 2 , 0 )

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

N o t e : I r e p o r t c o d e i m i s s i n g ( o " — " ) i m e a n s w e ' v e e d i t e dt h a t l i n e a t h l a s t m i n u t e w h i c h c h a n g e s t h r e p o r t c o d e .H o w e v e r , t h i s w i l 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 .

V E R I F I Z E R f o C 6 a n d V I C - 2 0K J

L B D G F K A I E E

O M M D C N O A G J E

M B

1 0 r e m * d a t a l o a d e r f o r ' ' v e r i f i z e r ' '1 r e v i c / 6 4 v e r s i o n2 0 c s3 f o 8 2 t 9 5 8 : r e a d a : p o k e i , 4 c 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 r * * * * * ' ' : e n 7 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 , 3 , 1 6 5 , 2 5 1 , 1 4 1 , 2 3 , 1 6 51 0 1 0 d a t a 2 5 2 , 1 4 1 , 3 , 3 , 9 6 , 1 7 3 , 3 3 , 2 0 11 0 2 0 d a t a 3 , 2 4 0 , 1 7 , 1 3 3 , 2 5 2 , 1 7 3 , 2 3 , 1 3 31 0 3 0 d a t a 2 5 1 , 1 6 9 , 9 9 , 1 4 1 , 2 3 , 1 6 9 , 3 , 1 4 11 0 4 0 d a t a 3 , 3 , 9 6 , 1 7 3 , 2 5 4 , 1 , 1 3 3 , 8 9 , 1 6 21 0 5 0 d a t a 0 , 1 6 0 , 0 , 1 8 9 , 0 2 , 2 4 0 , 2 2 , 2 0 11 0 6 0 d a t a 3 2 , 2 4 0 , 1 5 , 1 3 3 , 9 1 , 2 0 0 , 1 5 2 , 4 1 1 0 7 0 d a t a 1 3 3 , 9 0 3 2 , 1 8 3 , 3 , 1 9 8 , 9 0 1 6 , 2 4 91 0 8 0 d a t a 2 3 2 , 2 0 8 , 2 2 9 , 5 6 , 3 2 , 2 4 0 , 2 5 5 , 1 6 9 , 1 1 0 9 0 d a t a 3 2 , 2 1 0 , 2 5 5 , 1 6 9 , 1 8 3 2 , 2 1 0 , 2 5 5 , 1 6 51 1 0 0 d a t a 8 9 , 4 1 , 1 5 , 2 4 , 1 0 5 , 9 7 3 2 , 2 1 0 , 2 5 51 1 1 0 d a t a 1 6 5 , 8 9 , 7 4 , 7 4 , 7 4 , 7 4 , 2 4 , 1 0 5 , 9 1 1 2 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 5 , 2 41 1 3 0 d a t a 3 2 , 2 4 0 , 2 5 5 , 1 0 8 , 2 5 1 , 0 , 1 6 5 , 9 1 2 1 1 4 0 d a t a 1 0 1 , 8 9 , 1 3 3 , 8 9 9

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 en o r m a l l y , c h e c k i n g e a c h r e p o r t c 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 e l i s t i n g , y o c a r e - c h e c k a n c o r r e c t t h l i n e , t h e n t r a g a i n . I y o w i s h , y o c a L I S T r a n g e o l i n e s , t h e n t y p eR 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 sa 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 h t h S Y i n d i c a t e d a b o v e b e f o r ey 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 ( e g . P O K E 5 2 3 8 1 , 0i n s t e a d o P O K E 5 3 2 8 1 , 0 ) , b u t 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 d p 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 ' ts p l i t u k e y w o r d s ! ) . S t a n d a r d k 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 : 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 b d a n g e r o u s t i t h e a l t h . A f a a 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 sg 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 y p r o b l e m s s i n c e i w o r k st 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 j u m p s t t h o r i g i n a ld e s t i n a t i o n o t h l i n k a f t e r i t ' s f i 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 st h l i n k t i t o r i g i n a l c o n t e n t s .

C 1 2 8 V E R I F I Z E R ( 4 c o l u m n m o d e )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

1 0 0 0 r e m d a t a l o a d e r f o r ' ' v e r i f i z e r c 1 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 m u s i 4 0 c o l u m n m o d e o n l y !1 0 3 0 c 1 0 4 0 f o - 3 0 7 2 t 3 2 1 4 : r e a d x p o k e j , x : c c x n e x t1 0 5 0 i c h < > 1 7 8 6 0 t h e n p r i n t ' ' c h e c k s u m e r r o r ' ' : s t o p1 0 6 0 p r i n t ' ' s y 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 s 3 0 7 2 , 0 : r e t d i s a b l e ' '1 0 8 0 e n

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

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 11 1 2 0 d a t a1 1 3 0 d a t a 1 6

9 2

1 7 3 ,

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

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

3 , 3 , 9 6 , 1 6 50 , 1 6 0 , 0 , 1 8 9

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

1 6

2

5 8 , 1 7 62

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

T h T r a n s o c t o f S e p t . 1 9 8 6 : V M u m e 7 t o m e O

8/7/2019 The Transactor V7 02 1986

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

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

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

H e a d C l e a n i n g D T o m b l i nF o T h 2 0 3 1 P a r k s v i l l e , B

I y o o w C o m m o d o r e d i s k d r i v e a n w o u l d l i k e t o u s h e a d c l e a n e r d i s k o i y o u m u s t r u t h e d r i v e m o t o r f o a b o u t4 s e c o n d s . S i n c e C o m m o d o r e d i d n ' t s e f i t i n c l u d e r u d i s k m o t o r f o a b o u t 4 5 s e c o n d s " c o m m a n d w m u s t l o o ke l s e w h e r e . L u c k i l y t h e r e i c o m m a n d t h a t w i l l a l l o w y o t e x e c u t e p r o g r a m s w i t h i n t h d r i v e . U s i n g m - e " c h r $ ( a d d r l o c h r $ ( a d d r h i w c a t u r n t h d r i v e m o t o r o n a n d o f f a t w i l l .S i n c e P e t e r B o i s v e r t w r o t e p r o g r a m t d t h j o o 1 5 4 1( B i t s a n P i e c e s T r a n s . V 6 / 3 ) w i l l g i v e y o t h 2 0 3 1 v e r s i o n .T h 1 5 4 1 w o n ' t w o r k w i t h t h i s p r o g r a m . I c a s e y o m i s s e dP e t e r ' s p r o g r a m , s u b s t i t u t e c h r $ ( l 2 6 ) c h r $ ( 2 4 9 ) i n l i n e 5 f o u s w i t h t h e 1 5 4 1 .

M

O H N A B L

G M G N

I B E

1 p r i n t c h r $ ( 1 4 ) ; " T h i s i t b e u s e d o 2 0 3 1 t y p e "

1 p r i n t " d r i v e o n l y . D y o w i s h t c o n t i n u e ? "2 p r i n t : p r i n t " ( Y / N ) "2 p o k e 1 9 8 , 0 : r e v i a n 6 2 6 r e m u s e p o k e 1 5 8 , 0 o 2 . 0 - 4 . 0 p e t s3 g e a $ i a " t h e n 3 3 5 i f a $ O " y " t h e n e n 4 o p e n 1 5 , 8 , 1 55 p r i n t # 1 5 , " m - e " c h r $ ( 2 0 4 ) c h r $ ( 2 4 9 )6 p r i n t " P r e s s A n K e T S t o p M o t o r "7 0 g e t a $ : i a $ " t h e n 7 8 p r i n t # 1 5 , " m - e " c h r $ ( 5 4 ) c h r $ ( 2 5 0 )9 c l o s e 1 1 0 e n

S u p e r G E T D u a n e B a r r y , C a m b r i d g e O n t .

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

T o u s e t h e s u b r o u t i n e , f i r s t s e t h v a r i a b l e M t t h m a x i m u mn u m b e r o c h a r a c t e r s t p u i n t o t h i n p u t f i e l d , t h e n G O S U B 1 4 0 . T h d e l e t e k e w o r k s s t h a t y o c a o n l y d e l e t e a s f a a t h b e g i n n i n g o t h f i e l d . W h e n t h R E T U R N k e i p r e s s e d ,t h e i n p u t s t r i n g i r e t u r n e d i t h v a r i a b l e C $

N o t e : I l i n e s 1 5 0 , 2 1 0 , a n 2 6 0 , " [ L o g o p ] i a u n d e r l i n ec h a r a c t e r o b t a i n e d w i t h t h C o m m o d o r e L o g o k e a n a u n s h i f t e d P

I B

I M O K G E K L D G A I

N D O

D B A

L K

A B L

B B F

1 r e m * s u p e r g e s t a t e m e n t2 0 r e m d u a n e b a r r y C a m b r i d g e , o n t .3 p r i n t " n a m e : " 4 0 m x 1 : r e m s e m a i n p u t l e n g t h5 g o s u b 1 4 : r e m c a l l s u p e r g e 6 p r i n t " Q h e l l o c 7 e n 8 0 1 0 r e m * * s u p e r g e s u b r o u t i n e * 1 1 0 r e m s e m a i n p u t l e n g t h i ' m x '1 2 r e i n p u t s t r i n g r e t u r n e d i ' c $ '1 3 0 :1 4 0 l 0 : a $ = " " : c $ = " 1 5 p r i n t " [ L o g o p ] [ C r s r L e f t ] " ; : r e m p r i n t

f a k e c u r s o r1 6 g e a $ i f a $ = " t h e n 1 6 1 7 i a c h r $ ( 2 0 ) a n t h e n 1 6 1 8 i f a [ c r s r l e f t ] " o a Q o a Q

o a I D o a c h r $ ( 1 9 ) t h e n 1 5 1 9 i a $ O c h r $ ( 2 0 ) a n a $ O c h r $ ( 1 4 8 ) t h e n 2 2 2 0 r e d e l e t e l a s t c h a r2 1 1 - 1 : p r i n t " [ s p c , c r s r l e f t s ] [ L o g o + p

[ c r s r l e f t ] " ; c l e f t $ ( c $ , l ) : g o t o 1 6 2 2 i f a c h r $ ( 1 3 ) t h e n p r i n t " : r e t u r n2 3 i m t h e n p o k e i 9 8 , 0 : g o t o i 6 2 4 p r i n t a $ : r e m p r i n t n e c h a r .2 5 p o k e 2 1 2 , 0 : r e m t u r n o f q u o t e m o d e2 6 p r i n t " [ L o g o p [ c r s r l e f t ] " ; : r e m p r i n t c u r s o r2 7 0 c $ c a : r e m a d c h a r t o s t r i n g2 8 0 1 = : r e m a d t c h a r c o u n t2 9 g o t o 1 6 : r e m g e n e x t c h a r

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

8/7/2019 The Transactor V7 02 1986

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

T u r n i n g o f R E M O T E 6 J o h n O b e d aL o n d o n , O n t .

J o h n O b e d a c a l l e d t p o i n t o u p r o b l e m w i t h R E M O T E 6 ( V o l u m e 6 I s s u e 2 ) i d o e s n ' t q u i t e w o r k a a d v e r t i s e d i y o t r t u r n i n g i o f a n r e - i n i t i a l i z i n g i t T h e m e t h o d g i v e n t d i s a b l eR E M O T E 6 w a t r e - s e t t h I R v e c t o r . A c t u a l l y , y o u ' l l h a v et r e s t o r e a w h o l e b u n c h o v e c t o r s t e n s u r e s a f e r i n i t i a l i z i n g . F o r t u n a t e l y , t h e r e i K e r n e l r o u t i n e w h i c h w i l lr e - s e t a l s y s t e m v e c t o r s t t h e i r d e f a u l t s t a t e . T h r o u t i n e i i t h j u m p t a b l e a $ F F 8 A ( 6 5 4 1 8 d e c i m a l ) . T t u r n o f R E M O T E6 4 j u s t :

S Y 6 5 4 1 8

T h e n S Y 4 9 1 5 2 t t u r n R E M O T E 6 b a c k o w h e n y o u n e e di t

F r e a k o u t a n F a r z o i d M a r c M o o r c r o f tT o r o n t o , O n t .

H e r e ' s c o u p l e o j u s t - f o r - f u n c u r i o s i t i e s f o y o u r 6 4 T h f i r s to n e , f r e a k o u t , r e s t o r e s n o r m a l - c o n t r o l o y o u r m a c h i n e , b u a d d s t h d u b i o u s b e n e f i t o s t r a n g e s o u n d e f f e c t s t o a c c o m p a n yy o u r e v e r y c o m m a n d . " F a r z o i d " i g r a p h i c s t o w h i c hs w i t c h e s b e t w e e n b a c k g r o u n d c o l o u r s q u i c k l y e n o u g h t o u t -s p e e d t h r a s t e r b e a m a n p r o d u c e d a z z l i n g d i s p l a y .

F r e a k o u t :

T h i s C - 6 4 p r o g r a m s e t s u a i n t e r r u p t r o u t i n e t h a t g e t s t h s a v e d p r o c e s s o r r e g i s t e r s f r o m t h s t a c k a n p u t s t h e m i n t o t h v o i c e s o t h S I c h i p .

O D H

K A L E J H

9 0 r e m f r e a k o u t b m a r c m o o r c r o f t1 0 0 s 5 4 2 7 2 : 1 4 9 1 5 2 : p o k e s + 2 4 , 1 51 1 f o t + 1 s t e p 7 : p o k e + 1 , 0 :

p o k e + 2 , 2 4 0 : p o k e t , 1 7 : n e x t1 2 f o t 2 1 : r e a d a : p o k e t , a : n e x t1 3 p o k e 5 6 3 3 4 , p e e k ( 5 6 3 3 4 ) a n 2 5 1 4 p o k e 7 8 9 , l / 2 5 6 : p o k e 7 8 8 , l - p e e k ( 7 8 9 ) * 2 5 61 5 p o k e 5 6 3 3 4 , p e e k ( 5 6 3 3 4 ) o r 11 6 0 d a t a 1 8 6 , 1 8 9 , 1 , 1 , 1 4 1 , 1 , 2 1 2 , 1 8 9 , 2 ,1 7 d a t a 1 4 1 , 8 2 1 2 , 1 8 9 , 3 1 1 4 1 , 1 5 , 2 1 2 , 7 6 ,

4 9 , 2 3 4

T r l i s t i n g l o n g p r o g r a m w h i l e h o l d i n g d o w n t h C T R L k e y .F o m o r e i n t e r e s t i n g s o u n d s , t r i n c r e a s i n g t h e r a t e o t h i n t e r r u p t s :

o p o k e 5 6 3 2 5 , 1

p o k e 5 6 3 2 4 , 3 0 : p o k e 5 6 3 2 5 , 0

F a r z o i d :

P i c k t w c o l o u r s ( n u m b e r s t h r o u g h 1 5 f o t h f i r s t p r o m p t ,t h e n s p e e d v a l u e f o t h n e x t . T h v a l u e s 0 , 5 , 1 4 , 1 9 , 2 5 , 3 8 , 4 9a n 5 g i v e g o o d r e s u l t s . T s t o p t h e p r o g r a m a n d t r n e s p e e d v a l u e , h i R E S T O R E . P r e s s R E T U R N a t h s p e e d p r o m p tt g b a c k t t h e c o l o u r p r o m p t , a n R E T U R N a t h e c o l o u rp r o m p t t e x i t t h p r o g r a m .

O N N

B E

M

H H E

C F

H

G

1 0 1 1 1 2

1 3 1 4

1 5

1 6 1 7 1 8

1 9 2 0

2 1

2 2

f o 8 2 t 8 6 8 : r e a d a : p o k e t a n e x t _p r i n t " E H f a r z o d H b m a r c m o o r c r o f

- : i n p u t " y f l i p b e t w e e n w h i c hc o l o u r s [ 7 s p c s , 7 c r s r l e f t s ] " ; a , bi f a < 0 o r b < 0 o r a > 1 5 o r b > 1 5 t h e n e n p o k e 8 6 3 , a : p o k e 8 6 8 , a a n n o o a n n o a p r i n t

= - 1 : i n p u t " H d e l a y ( 0 - 1 2 1 ) [ s p c s ,c r s r l e f t s ] " ;

i f d < 0 o d > 1 2 1 t h e n 1 2 f o = 8 6 9 t 8 6 8 + d p o k e t , 2 3 4 : n e x tp o k e 8 6 9 + d , 1 6 : p o k e 8 7 0 + d , 2 4 9 - d :

p e e k ( 5 3 2 8 1 )s y s 8 5 1 : p o k e 5 3 2 8 1 , a : g o t o 1 5 d a t a 1 7 3 , 1 3 , 2 2 1 , 1 6 9 , 4 , 1 4 1 , 1 3 , 2 2 1 , 1 6 9 ,

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

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

D e v i c e N o t P r e s e n t U p d a t e J o h n M e n k eM t V e r n o n , I

D a v e P o l l a c k ' s c u r e f o t h ' D E V I C E N O P R E S E N T ' b u i t h C - 6 4 o p e r a t i n g s y s t e m i g o o d n e w s ( V o l u m e 6 I s s u e 6 p a g e6 ) I w o r k s w e l l i m t e s t s , a f t e r s l i g h t m o d i f i c a t i o n b a s e d o m o b s e r v a t i o n t h a t t h v a l u e o S i n o a l w a y s e x a c t l y - 1 2 8w h e n s e r i a l b u d e v i c e i d i s c o n n e c t e d . h a v e f o u n d v a l u e s o - 1 2 5 a n d - 1 2 8 , a n d p r e s u m a b l y o t h e r v a l u e s a r p o s s i b l e .P r o b a b l y a n n e g a t i v e v a l u e o S c o r r e c t l y s i g n a l s t h a t s e r i a ld e v i c e i n o t p r e s e n t .

D i s p l a y T & F i J o h n H o u g h t o nC o l l i n g w o o d , O n t .

u s t h p r o g r a m D I S P L A Y T & o t h i s d i s k t h a t c a m e w i t h m 1 5 4 1 q u i t e b i t . R e c e n t l y h a s o m e w e i r d p r o b l e m s w h e na c c e s s i n g s o m e f i l e s w a s t u d y i n g . w o u l d d i s p l a y t h d i r e ct o r y t r a c k t f i n d t h f i r s t t r a c k a n s e c t o r , a n w h e n t h p r o g r a m d i s p l a y e d t h n e x t t r a c k a n s e c t o r f o t h b l o c k , i w a e i t h e r a w r o n g o i l l e g a l t r a c k o r s e c t o r . c o u l d o n l y s e e t h f i r s t t r a c k a n s e c t o r t h e n C R A S H .

W h a t w a f r u s t r a t i n g w a t h a t t h f i l e s w o u l d l o a d f i n e s D O w a s e e i n g t h r i g h t n u m b e r s , a n D I S K D O C T O R p r o g r a m

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

8/7/2019 The Transactor V7 02 1986

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

r e a d o u t t h c o r r e c t i n f o r m a t i o n a l t h t i m e . O b v i o u s l yw a w r o n g w i t h t h p r o g r a m D I S P L A Y T & S .

h f i i i l i n e 2 7 0 . I n l i n e 4 1 0 , t h p r o g r a m m e m o r y - r e a d s( b u f f e r * 2 ) , b u t t h e O P E N c o m m a n d i l i n e 2 7 o n l y

A N b u f f e r f o u s e . C h a n g e l i n e 2 7 t r e a d :

2 7 o p e n 2 , 8 , 2 , " # 2 " : g o s u b 6 5 0w i l l r e s e r v e b u f f e r t w f o y o u r u s e . F o s o m e r e a s o n t h e

w a g e t t i n g t h w r o n g t r a c k a n s e c t o r i n f o f r o m t h

n o t e : t h i s i o n l y h a p p e n i n g t m o n o n e d i s k , w h i c h l e a d st t h i n k t h a t r e - N E W i n g t h d i s k h a d o n e s o m e t h i n g ,

d i r e - N E W t h d i s k b e f o r e i t u s e . I t h i s i h a p p e nn t a n y o n e e l s e t h f i i a b o v e . W o r k s f o m e s f a r , e v e r y

C u r s o r f o t h 6 B e R u s s e lN o r t h S y d n e y , N

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

a l s o s e t s t h b a c k g r o u n d , b o r d e r , a n c h a r a c t e ra f t e r R E S T O R E .

i n g a r s o m e P O K E s f o u s i n g t h e c u r s o r p r o g r a m .

o u s e r s o t h F a s t l o a d c a r t r i d g e :

p o k e 4 9 1 8 9 , 1 0 6 : p o k e 4 9 1 9 0 , 2 2

c h a n g e b a c k g r o u n d a n b o r d e r c o l o u r s :

p o k e 4 9 1 7 6 , c o l o u r

c h a n g e t h e c u r s o r c o l o u r :

p o k e 4 9 1 8 4 , c o l o u r

c h a n g e t h e b l i n k s p e e d o t h e c u r s o r ( d e f a u l t i 2 0 l o w e rf a s t e r ) :

O L

K D G K D A

1 2 3 4 5 6 7 8

p o k e 4 9 2 0 9 ,

r e m * d a t a l o a d e r f o " c u r s o r "c f o 4 9 1 5 2 t 4 9 2 5 7 : r e a d a : p o k e i , c c a : n e x t

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

I C C

I O K H

M F L L

M E I

M

1 0 0 :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 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 a

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

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

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

2 3 , 1 6 9 , 1 9 2 , 1 4 11 2 0 , 1 6 9 , 3 9 , 1 4 1 , 2 1 4 1 , 2 1 3 8 8 , 1 6 92 0 8 , 1 4 1 , 3 3 , 2 0 8 , 1 6 9

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

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

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

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

C o m p l e t e J o y s t i c kK e y b o a r d E q u i v a l e n t s

R o b e r t B l a i nN S W . A u s t r a l i a

I p r e v i o u s B i t s a n P i e c e s , w g a v e w a y s t s i m u l a t e s o m ej o y s t i c k p o s i t i o n s v i a t h e k e y b o a r d . F r o m R o b e r t B l a i n c o m e st h i s c o m p l e t e l i s t . T h l e f t c o l u m n t e l l s w h i c h k e y o k e y s t p r e s s t g i v e t h e j o y s t i c k e q u i v a l e n t i t h r i g h t c o l u m n .

J O Y 1

C T R L«

* * C T R L

C T R LS p a c e

W e s tS o u t hN o r t hE a s tN o r t hS o u t hS o u t hN o r t hF i r e

E a s tE a s tW e s tW e s t

J O Y 2

S p a c eS p a c eS p a c eS p a c eS p a c eS p a c eS p a c eS p a c eS p a c e

C - 1 2 8

i - F i -i -I -i -I - C I -

K e y s

F F

W e s tS o u t hN o r t hE a s tN o r t hS o u t hS o u t hN o r t hF i r e

E a s tE a s tW e s tW e s t

R i c h a r d Y o u n gG r e e n w o o d , N

T h C o m m o d o r e 1 2 S y s t e m G u i d e c o v e r s f u n c t i o n k e d e f i n it i o n s , u s i n g t h K E c o m m a n d , b u t t h e H E L P a n R U ( S H I F TR U N / S T O P ) k e y s c a a l s o b d e f i n e d . A l l o f t h e s e d e f i n i t i o n s

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

8/7/2019 The Transactor V7 02 1986

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

a r e l o c a t e d f r o m $ 1 0 0 0 t $ 1 0 F F ( 4 0 9 6 - 4 3 5 1 d e c i m a l ) . I i e a s i e s t t r e - d e f i n e H E L P a n R U b e f o r e r e - d e f i n i n gt h f u n c t i o n k e y s b e c a u s e t h d e f i n i t i o n s m o v e i n t h i sa r e a o m e m o r y a c c o r d i n g t t h l e n g t h o t h d e f i n i t i o n s .

F o e x a m p l e , t r e - d e f i n e R U f r o m D L O A D a n R U t s i m p l y " R U N : " , m e m o r y l o c a t i o n s $ 1 0 3 F t $ 1 0 4 7 ( 4 1 5 9 - 4 1 6 7 ) m u s t b a l t e r e d :

E n t e r t h M O N I T O R a n d i s p l a y 1 0 3 F 1 0 4 7Y o w i l l s e t h d L " * a n R U i A S C I I .C h a n g e 1 0 3 f t o 1 0 4 7 t r e a d :

0 0 0 0 0 0 0 0 5 2 5 4 3 A 0 D

e x i t f r o m t h m o n i t o r ( X a n d e f i n e o t h e r k e y s i d e s i r e d .S A V E y o u r k e y d e f i n i t i o n s f r o m t h m o n i t o r w i t h :

" K E Y S " , 8 , 1 0 0 0 , 1 1 0 0

o f r o m B A S I C w i t h

B S A V E K E Y S " , B 0 , P 4 0 9 6 T P 4 3 5 1

T h k e d e f i n i t i o n s c a n o b r e c o v e r e d a a n t i m ew i t h :

B L O A D " K E Y S '

S e t t i n g t h e B - 1 2 8 I n t e r r u p t R a t e E l i z a b e t h D e a lM a l v e r n P

I n t e r r u p t s o t h B - m a c h i n e s a r h a n d l e d b t h t r i - p o r tc h i p a $ d e 0 0 . I a p p e a r s t h a t a n v a l i d c i a 2 s o u r c e , i a d d i t i o n t t h T O D - a l a r m , c a n b e u s e d t i n t e r r u p t .

N o r m a l l y , I R Q s o c c u r a t h p o w e r l i n e f r e q u e n c y ( b i t a $ d e 0 2 ) . T h e y c a n b e t u r n e d o f a n r e p l a c e d b y a n o t h e rs o u r c e , f o i n s t a n c e , t i m e r - A f a l l i n g t h r o u g h z e r o , a o t h c 6 4 . I t ' s p e s t , b u c a n b e d o n e .

Y o c a t y p e t h e b y t e s u n d e r t h * * * * * * * * u s i n g t h m o n i t o r . T g e i g o i n g , u s e :

b a n k 1 5 : s y s 7 * 2 5 6

T h l i t t l e r e s e t b u t t o n k i l l s t h p r o j e c t .

O n u s m i g h t b e U . K . S o f t w a r e w h i c h r e l i e s o t h 5 0 s e i r q s . Y o m a t r i w i t h S u p e r s c r i p t ( w h i c h b o u n c e sk e y s d u t t h 6 H i r q ) : s t a r t t h c o d e u s i n g t h S Y c a l l a b o v e ( n o t m o n i t o r ! ) , t h e n l o a d a n r u S u p e r s c r i p ta y o n o r m a l l y d o M k e y b o a r d d o e s n o b o u n c e t h k e y s a n y m o r e a n a l w a y s t y p e s c o r r e c t c h a r a c t e r s .

f 0 7 0 0f 0 7 0 1f 0 7 0 4f 0 7 0 7f 0 7 0 9f 0 7 0 cf 0 7 0 ef O 7 1 1f O 7 1 3f O 7 1 6f O 7 1 9f O 7 1 bf O 7 1 df 0 7 2 0f O 7 2 3f O 7 2 5f O 7 2 7f O 7 2 af O 7 2 cf O 7 2 ff O 7 3 1f O 7 3 4f O 7 3 5f O 7 3 6f O 7 3 8f O 7 3 9f O 7 3 cf O 7 3 df O 7 3 ff O 7 4 1f O 7 4 2f O 7 4 5f O 7 4 6f O 7 4 7f O 7 4 8f O 7 4 bf O 7 4 df O 7 4 f1 0 7 5 1f O 7 5 4f O 4 5 7f O 4 5 af O 4 5 cf O 4 5 f

M o r e

S o m e

7 a 8 a 8 a 8 a 8 a 2 0 8 a 2 0 8 a 8 a 8 5 6 a 4 a 8 2 d 8 4 e e e a 2 f a 8 8 a 0 8 4

0 0 4 0 9 0 8 0 O 8 0 O 0 f 4 0 3 0 0 0

0

0

0 0

f

O 0 1 0 0 0 O 1 O 8

B - 1 2 *

d d

d

d

d d

d d

d

0 0

( • d

f

d

d d d

d f

s e I d s t I d s t I d s t I d s t I d a n o r s t I d a n o r s t I d s t I d s t c l r t I d p h I d t x a n b n t x j m n o n o n o I d a n b e I d s t s t I d o r s t j m

. I n f o

a d d i t i o n s t t h 1 2 v e r s i o n

$ d e 0 2 i r l a t c h .

n o u s e d

$ d e O 7$ d e 0 7# $ 4 0$ d c O 4# $ 9 c$ d c O 5# $ 8 1$ d c 0 d$ d c 0 e# $ 8 0# $ 0 1$ d c 0 e$ d e O 5# $ f e# $ 4 0$ d e O 5# $ 3 6$ 0 3 0 0# $ 0 7$ 0 3 0 1

$ 0

$ d e O 7

# $ 0 4$ 0 7 4 5

$ f b f 5

$ d c 0 d# $ 0 2$ 0 7 5 f# $ 0 0$ d c O 6$ d c O 7$ d c O f# $ 1 8$ d c O f$ f c 8 1

; c l e a r l a t c h a i

; s e t t i m e r f o 5 0 h z ( $ 9 c 4 0 ); ( 6 0 h z $ 8 2 3 5 )

; i c r - e n a b l e t a i r q s o n l y

; c r a - l e a v e 5 0 / 6 0 h z f l a g a l o n e f o t o ; s t a r t t i c o n t i n u o u s m o d e

; t r i — p o r t i r m a s k . . i g n o r e p o w e r l i n e f l i p se n a b l e c i a 2 i r q s i n s t e a d

; s w i t c h i r r o u t i n e t ( *

; i r q p a t c h

; l o o k a i r f l a g

; w a s i c i a 2 "; y e s , g a r o u n d

n o .

; . . d o u s u a l s t u f f; y e s t r y ' i n c $ d O 4 3 ' h e r e

g e t / c l e a r c i a 2 - i r q f l a gi i e e e - t i m e o u t b i s e t "n o p e , g a r o u n dy u p , f o r c e i o s t h a t d i s k r o u t i n e s c a n s e et h i s b i t .s e t i m e r - b f o o n s h o t m o d es i w o n ' t t i m e o u t a l t h e t i m eb u d i s k w i l l s t i l l s e i o n c ed k e y b o a r d s c a n , e t c . . r t

T r a n s a c t o r V I s s u e f o P r o t e c t o / C B M B -

p o k e z e r o t

n o u s e d

c l e a r b i t , r e a d $ d e 0 7 t c l a l

3 1 i r a c i a c i a l c i a 2 i e e e 6 0 h z

p e n d i s r p w

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

8/7/2019 The Transactor V7 02 1986

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

$ d e O 6 : c i u n c o n n e c t e d ( b o t h b i t s a r e h i g h )

$ d c O d : b i 1 t i m e r ( c o n t . m o d e ) i s e f o i e e e 6 5 m st i m e o u t s , b i i t e s t e d o n l y , n i r q s .

$ d c O e : c i a 2 e r a . b i i z e r o ( i n u . k . ) t o w i l l u s e 6 0 h z .b i i s e a i o i n i t t i m e - t o n s h o t a n n e v e r u s e d .

B - S e r i e s S o u n d E d w a r d S h o c k l e yD e e r f i e l d B e a c h , F

T h o s e o y o w h o w B - s e r i e s m a c h i n e m a n o r e a l i z e t h a ti c o n t a i n s t h e s a m e 6 5 8 1 S I c h i p a t h C 6 4 , C l 2 8 a n S X 6 4 !A n y o c a t a k e B A S I C 2 . p r o g r a m w r i t t e n f o t h S I D a n dr u i o t h e B - s e r i e s w i t h l i t t l e m o d i f i c a t i o n . S i m p l y a d d 1 5 3 6( $ 6 0 0 h e x ) t t h C 6 p r o g r a m ' s S I m e m o r y l o c a t i o n s . L e a v et h e v a l u e s a l o n e , t h e y ' r e t h s a m e o a l m a c h i n e s .

F o i n s t a n c e , t h S I s t a r t s a 5 4 2 7 2 ( $ D 4 0 0 ) o t h C 6 a n a 5 5 8 0 8 ( $ D A 0 0 ) o n t h B - s e r i e s . A d d i n g 1 5 3 6 t 5 4 2 7 2 y i e l d s5 5 8 0 8 , t h B - s e r i e s l o c a t i o n . F o l l o w t h r o u g h t h p r o g r a m ,a d d i n g 1 5 3 6 t e a c h P O K E o t h S I c h i p . I t h p r o g r a ma s s i g n s t h e v o i c e s s e p a r a t e f r o m p l a y i n g t h e m , y o m a n e e dt a d B A N K 1 5 s t a t e m e n t j u s t b e f o r e b o t h r o u t i n e s .

O c o u r s e , y o c a c o n v e r t t h e B - s e r i e s p r o g r a m s t t h C 6 b r e v e r s i n g t h e p r o c e s s .

F i n d P r o g r a m ' sS t a r t a n E n A d d r e s s

R u s s T h o m a sB r i d g e w a t e r , N

T h f o l l o w i n g p r o g r a m w i l l g i v e t h s t a r t a n d e n d a d d r e s s o p r o g r a m o d i s k . T h p r o g r a m f i n d s t h e n a d d r e s s i r a t h e ru n i q u e w a y . I n s t e a d o w a l k i n g t h r o u g h p r o g r a m t t h e e n d ,t h i s p r o g r a m a t t e m p t s t v e r i f y t h f i l e . B e c a u s e t h p r o g r a m i n o i m e m o r y , v e r i f y e r r o r o c c u r s ( t h e p r o g r a m b e i n gc h e c k e d M U S T N O B I R A f o r t h i s t o w o r k ) . W h e n t h p r o g r a m e n d s d u t t h e r r o r , i c o n t i n u e s d u t s o m ec o m m a n d s p o k e d i n t o t h k e y b o a r d b u f f e r . A t h i s p o i n t ,l o c a t i o n s 1 7 a n 1 7 5 h o l d t h e n a d d r e s s , w h i c h i c o n v e r t e dt h e x a n d p r i n t e d o u t .

N o t e : t h e c u r s o r m o v e m e n t s i l i n e s 1 3 a n 1 4 m u s t b t y p e d i e x a c t l y a s l i s t e d , o r t h e p r o g r a m w i l l n o c o n t i n u e a f t e ri h i t s t h v e r i f y e r r o r .

G F E J F C

2 p r i n t " 0 t h i s p r o g r a m w i l l g i v e t h e s t a r t '3 p r i n t " a n d e n d a d d r e s s o p r o g r a m "5 i n p u t " 0 w h a t i t h f i l e n a m e " ; f 6 o p e n 2 , 8 , 2 , f $ + " , p , r "7 g e t # 2 , l o $ : l o l o c h r $ ( 0 )8 g e t # 2 , h i $ : h i h i c h r $ ( 0 )9 c l o s e : l a s c ( l o $ ) 2 5 6 * a s c ( h i $ )

0 D D K E J

F

E C O J P D P D E F D P

J P A

I E C M L L

C

1 0 1 1 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

p r i n t " I w o r k i n g "p o k e 1 9 8 , 2 : p o k e 6 3 1 , 1 3 : p o k e 6 3 2 , 1 3 :o p e e k ( 6 4 6 ) : r e s a v e o l c h c o i rp r i n t " H j o o k e 6 4 6 , p e e k ( 5 3 2 8 1 ) a n d 1 5p r i n t J f f l v e n t y ; c h r $ ( 3 4 ) ; f $ ; c h r $ ( 3 4 ) ;p o k e 1 9 8 , 3 : p o k e 6 3 1 , 1 3 : p o k e 6 3 2 , 1 3 :p o k e 6 3 3 , 1 3 : e n de p e e k ( 1 7 4 ) 2 5 6 * p e e k ( 1 7 5 ) - 1p o k e 6 4 6 , o c : r e r e s t o r e c h a r c o l o r

h $ = " 0 1 2 3 4 5 6 7 8 9 a b c d e f "l

f o t s t e p - 1n ° / o x / ( 1 6 t i ) : x x - n % * 1 6 t ih e h e m i d $ ( h $ , n ° / o 1 , 1 )n e x tp $ " 0 1 2 3 4 5 6 7 8 9 a b c d e f "

e f o t s t e p - 1n z / ( 1 6 t i ) : z z - n % * 1 6 t ip e p e $ + m i d $ ( p $ , n % 1 , 1 )n e x tp r i n t " s t a r t a d d r e s s " l a ; " d e c . ; h e $ ; " h e x "p r i n t " e n a d d r e s s : " e a ; " d e c . " ; p e $ ; " h e x 'c l p r i n t " | ^ a n o t h e r f i l e ? y / n "g e t a $ : i a $ " t h e n 3 5 i a y t h e n 5 e n

F i n d i n g R e l a t i v e F i l e R e c o r d L e n g t h s

U s t h i s s h o r t p r o g r a m t f i n d t h e r e c o r d l e n g t h o r e l a t i v e f i l eo a 1 5 4 1 o r 2 0 3 1 d r i v e :

1 i n p u t " f i l e n a m e " ; f 2 o p e n 1 5 , 8 , 1 53 o p e n 1 , 8 , 9 , f $ '4 p r i n t # 1 5 , " m - r " c h r $ ( 2 0 0 ) c h r $ ( 0 ) c h r $ ( 1 )5 0 g e t # 1 5 , r l $6 p r i n t " r e c o r d l e n g t h o f i l e ; f $ ; " i s ; a s c ( r l $ c h r $ ( 0 ) )7 c l o s e 7 c l o s e 1

F o r 8 0 5 0 , 4 0 4 0 , o 8 2 5 0 d r i v e s , c h a n g e t h ( 2 0 0 ) i l i n e 4 t ( 1 1 4 ) .

S I W h i s t l e - K i l l e r P e t e r V d o v i c h , P i c k e r i n g , O n t .

R e c e n t l y p u r c h a s e d V o i c e M e s s e n g e r s p e e c h s y n t h e s i z e r t u s w i t h m 6 4 a n w a r a t h e r d i s m a y e d b t h h i g h - p i t c h e dw h i s t l e t h a t w a p r e s e n t w h e n i s e t h l e v e l o f t h S I c h i p .( T h i s w h i s t l e i a l s o p r e s e n t , t l e s s e r d e g r e e , a n t i m e t h

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

8/7/2019 The Transactor V7 02 1986

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

c h i p p r o v i d e s m a x i m u m o u t p u t . ) f e t e s t s c o n f i r m e d t h a tt h i s r a c k e t d o e s i n d e e d c o m e d i r e c t l y f r o m t h e S I D .

B e c a u s e w o r k a s r e p a i r t e c h n i c i a n ( a n d I ' c h e a p s k a t e ) ,d e c i d e d t t r a n e l i m i n a t e t h e w h i s t l e m y s e l f . o p e n e d u p t h c o m p u t e r a n i n s t a l l e d . 0 0 5 m f d . c a p a c i t o r i p a r a l l e l w i t hC 3 o t h c i r c u i t b o a r d . ( T h e a d d e d c a p a c i t a n c e a t t e n u a t e sh i g h f r e q u e n c i e s . D i f f e r e n t c a p a c i t o r v a l u e s w i l l p r o d u c e d i f f e re n r e s u l t s , b u . 0 0 5 m f s e e m s b e s t . ) T h o p e r a t i o n w a f a s ta n e a s y , a n a l t h o u g h t h w h i s t l e i n o c o m p l e t e l y g o n e i i g r e a t l y r e d u c e d . T h s y n t h e s i z e r s o u n d s m u c h b e t t e r t o o !

U I S l

D i s k R e s c u e H . C . D o e n n e c k e , T u l s a , O

W h e n u s e d w i t h c e r t a i n d i s k s , M 1 5 4 1 b e c a m e i n c r e a s i n g l yc o n f u s e d w h e n l o a d i n g o r s a v i n g . T h r e l i g h t w o u l d b l i n ka n t h e n s t o p w o u l d r a r e p e a t e d l y , a f t e r w h i c h t h o p e r at i o n m i g h t o m i g h t n o b s u c c e s s f u l . W h e n e v e r c h e c k e d t h e r r o r m e s s a g e i w o u l d b N u m b e r 2 1 " N s y n c c h a r a c t e r " .H o w e v e r , m p u r c h a s e d s o f t w a r e l o a d e d n o r m a l l y a n v a r i o u sc h e c k s s a i d t h d r i v e w a s O K . d e c i d e d t h e d i s k s u r f a c e s w e r eg o i n g b a a n d i s c a r d e d c o u p l e o d i s k s b e f o r e a w o k e t t h f a c t t h a t t h e d i s k s w e r e d r a g g i n g i t h e i r e n v e l o p e s . N o w h e n e v e r d i s k s t a r t s t d t h i s b e n d o p e n o n e e n d o t h e n v e l o p e , c a r e f u l l y r e m o v e t h d i s k , a n r o o t a r o u n d i t h e n v e l o p e , e s p e c i a l l y t t h e d g e s , w i t h p l a s t i c d r a f t i n g t r i a ng l e . T h e n r e p l a c e t h d i s k , a d b i o t a p e t h o l d t h e e n f l a pd o w n , a n d t h d i s k w o r k s a g o o d a n e w .

A l l o f m d i s k s t h a t h a v e h a t h i s p r o b l e m h a v e b e e n M e m t e k sw h i c h h a v e b e e n u s e d a b o u t y e a r a n h a l f .

L O A D B T r a c k a n S e c t o r S . L . M i c k e l s o nL o n d o n , E n g l a n d

I i k n o w n t h a t u s i n g L O A D " * , w i t h t h 1 5 4 1 w i l l l o a d t h ep r e v i o u s l y l o a d e d p r o g r a m . T h d r i v e k e e p s p o i n t e r s i R A w h i c h p o i n t t t h f i r s t t r a c k a n s e c t o r o t h l a s t f i l e l o a d e d . S w h e n L O A D " , o c c u r s , t h e d r i v e d o e s n ' t a c c e s s t h e d i r e ct o r y f i r s t b u t i n s t e a d g o e s t t h t r a c k a n s e c t o r s t o r e d i t h e s eR A p o i n t e r s a n b e g i n s t h l o a d f r o m t h e r e . B c h a n g i n g t h p o i n t e r s , w c a g e t h e d r i v e t l o a d a n y p r o g r a m w w i s h ,m a k i n g a l s o r t s o f t h i n g s p o s s i b l e .

F o i n s t a n c e , y o c o u l d w r i t e m e n u p r o g r a m w h i c h w o u l dl o a d p r o g r a m s f r o m d i s k w i t h o u t a c c e s s i n g t h d i r e c t o r y ; t h s t a r t i n g t r a c k a n s e c t o r o a l p r o g r a m s o n d i s k c o u l d b k n o w n b t h m e n u p r o g r a m , a n t h p r o g r a m s d o n ' t e v e nn e e d t b i t h d i s k d i r e c t o r y . T h i s w o u l d s p e e d u p p r o g r a ml o a d s , a n m a k e f o a u n - c l u t t e r e d d i r e c t o r y a s w e l l .

T l o a d p r o g r a m s t a r t i n g a a g i v e n t r a c k a n s e c t o r ( u s i n gL O A D " * , 8 ) , u s t h p r o g r a m b e l o w :

1 0 1 7 0 r e e x a m p l e f i r s t t r a c k a n s e c t o r o f i l e t b l o a d e d

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

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

r e d i s p l a y s t h n a m e f i r s t t r a c kr e m a n d s e c t o r o e v e r y f i l e o d i s k

1 o p e n 1 5 , 8 , 1 5 , " i O " : c l o s e 1 2 o p e n 1 , 8 , 3 , " $ 0 "3 f o t 2 5 4 : g e t # 1 , a $ : n e x t4 f " " + 1 g e t # 1 , a $ , t $ , s $ : t $ t c h r $ ( 0 ) :

s s c h r $ ( 0 )5 f o t 1 6 g e t # 1 , a $ : f f a $ n e x t6 f o t 1 0 g e t # 1 , a $ : n e x t : i s t < > 0 t h e n c l o s e 1 e n 7 i t $ O c h r $ ( 0 ) t h e n p r i n t f $ a s c ( t $ ) " a s c ( s $ )8 g e t # 1 , a $ : i m < t h e n g e t # 1 , a $ , a $ : g o t o 4 9 0 0 g o t o 4

U s F o T h P e r i o d i c T a b l e ! R o b e r t G T i s c h e rS t a r k v i l l e , M i s s i s s i p p i

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 f i n d s i t s e l fi d a i l y u s i o u s h o p a n d o e s s b e c a u s e o i t m a n yt h o u g h t f u l l y c o n s t r u c t e d a n e a s i l y u s a b l e t a b u l a t i o n s .

O n e x t r a u s I ' v e f o u n d i i p r o v i d i n g i n t e r e s t i n g d i s k I D ' s .

F o t h i s p u r p o s e , t h e p e r i o d i c t a b l e o p a g e 1 2 i I D e a l . I p r o v i d e s o v e r h u n d r e d I l e t t e r c o m b i n a t i o n s , g u a r a n t e e d t b d i f f e r e n t , m e a n i n g f u l , u s e f u l a s a l e a r n i n g a i d , a n d , n d o u b t , i o t h e r y e u n r e c o g n i z e d w a y s .

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

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

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

8/7/2019 The Transactor V7 02 1986

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

t h p e r i o d i c t a b l e b u s i n g t h f i r s t l e t t e r o e a c h e l e m e n t , T e x t c r a f t F i l e s O a c c o m p a n i e d b t h l e t t e r s o f t h e a l p h a b e t , i o r d e r . A m i g a ' s E x t e r n a l D r i v e

E w a n G r a n t h a mA t l a n t a , G

T h i s w o u l d p r o v i d e m o r e t h a n 2 6 0 0 I D ' s . I y o n e e d m o r et h a n t h a t , y o u ' r e o y o u r o w n .

P y t h a g o r e a n T r i p l e t G e n e r a t o r R . A . I s r a e l s o nK i n g s t o n , O n t .

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

R u t h p r o g r a m t s e i y o c a n d e t e r m i n e t h e r e q u i r e dr e l a t i o n s h i p b e t w e e n a n V i t h g e n e r a t e d d a t a i t b n o n - r e d u n d a n t . Y o c a v a r y t h n u m b e r o s o l u t i o n s p r d u c e d b y c h a n g i n g t h v a l u e o i l i n e 1 3 0 .

A H

I L K P

M J G B F J G H N

1 0 0 r e m P y t h a g o r e a n t r i p l e t s b r a - 8 1 1 p r i n t " | u u t 2 - v t 2 2 u u t v t 2 '1 2 p r i n t " [ 3 s i g n s ]1 3 1 0 r e n u m b e r o s o l u t i o n s1 4 0 d i m a ( n - 1 ) , b ( n - 1 ) , c ( n - 1 )1 5 0 q u i t n 0 2 1 6 u u * u : v v * 1 7 a ( j ) u 2 - v 2 : b ( j ) 2 * u * v : c ( j ) u 2 v 1 8 p r i n t t a b ( 2 ) ; u ; t a b ( 6 ) ; v ; t a b ( 1 5 ) ; a ( j ) ; t a b ( 2 5 ) ;

b ( j ) ; t a b ( 3 4 ) ; c ( j )1 9 + 1 i q u i t t h e n e n 2 0 i u - t h e n g o t o 2 2 2 1 0 v 2 g o t o 1 6 2 2 0 u 1 : 2 3 0 i f ( u a n d 1 t h e n v2 4 g o t o 1 6

E a s y D A T A V i e w i n g P h i l i p S h a r m a nC a l g a r y , A l b e r t a

J u s t t y p e d i p r o g r a m w i t h l o o D A T A s t a t e m e n t s t h a t n o n e e d p r o o f r e a d i n g ? A d t h i s l i n e t t h b e g i n n i n g o y o u rp r o g r a m :

r e a d x p r i n t x w a i t 6 5 3 , 1 : w a i t 6 5 3 , 1 , 1 : g o t o

T h e n j u s t h i t h S H I F T k e a n t h n u m b e r s i t h D A T As t a t e m e n t s w i l l b p r i n t e d , o n b o n e , o t h s c r e e n . M u c he a s i e r t h a n s t a r i n g a a s c r e e n f u l l o n u m b e r s ! I t ' s e v e n e a s i e rt h a n p r o o f r e a d i n g f r o m p r i n t o u t .

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

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

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

" d f 1 : < f i l e n a m e > " .

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

C - 6 4 E a s y F i l e n a m e R e t r i e v a l R u s s T h o m a sB r i d g e w a t e r , N . S .

I t h M a y , 1 9 8 6 , V o l u m e 6 I s s u e 0 6 J e f f r e y C o o n s g i v e s a o n - s c r e e n o n e - l i n e r t f i n d t h f i l e n a m e a f t e r F I L E N O F O U N D E R R O R . T r t h i s i n s t e a d :

S Y 6 2 9 1 3

n i c e t r i c k f a s t , e a s y t r e m e m b e r , a n i p r i n t s t t h e s c r e e n .G o o d f o t h C 6 4 ; V I C o w n e r s c a u s S Y 6 3 0 6 5 .

C 1 2 8 C P / M A S C I I O u t p u t R i c h a r d D Y o u n gG r e e n w o o d , N . S .

T h a d d i t i o n a l C P / M d o c u m e n t a t i o n a n u t i l i t y d i s k s o f f e r e df o t h C o m m o d o r e 1 2 a n a v a i l a b l e f r o m C o m m o d o r e B u s in e s s M a c h i n e s f o $ 2 9 . 9 5 m a b e w o r t h i f o a n y o n e w h i g o i n g t u s C P / M a a l l . O n o t h d i s k s c o n t a i n s c o m p l e t es o u r c e f i l e s a n i n s t r u c t i o n s f o r e g e n e r a t i n g t h e C P s y t e m . T h e s e f i l e s , i s o u r c e a s s e m b l e r ( . A S M ) , a r e r e a s o n a b l yw e l l d o c u m e n t e d w i t h c o m m e n t s a n c a b a e x c e l l e n t a i t l e a r n i n g t h e n e m a c h i n e l a n g u a g e a n t h o p e r a t i n gs y s t e m .

A f t e r u s i n g C P / M f o s o m e t i m e , i n c l u d i n g o u t p u t t p r i n t e rv i a i n t e r f a c e t h a t c o n v e r t e d C B A S C I I t t r u e A S C I I ,e x p e r i e n c e d s o m e f r u s t r a t i o n w i t h t h i s p r o c e s s o c o n v e r s i o n .A g e n e r a l r u l e , h a v e a l w a y s p r e f e r r e d t c o n v e r t t t r u eA S C I I i s o f t w a r e p r i o r t o u t p u t t t h p r i n t e r . C P / M o t h C o m m o d o r e 1 2 8 a p p e a r e d t o f f e r n a l t e r n a t i v e u n t i l h a l o o k a t h e s o u r c e c o d e .

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 16/88

A m o n g t h f i l e s i o n c a l l e d C X P R I N T E . A S M . T h i s i t h p r i n t e r d r i v e r , a n c o n t a i n s t h e r o u t i n e f o c o n v e r t i n g c h a r a ct e r s f o r o u t p u t t a a s s u m e d C o m m o d o r e p r i n t e r . I t u r n s o u tt h a t c h a r a c t e r s a r e c a r r i e d i t r u e A S C I I u n t i l t h i s c o n v e r s i o nr o u t i n e i c a l l e d . S p e c i f i c a l l y , t h l i n e i n t h s o u r c e c o d e i C A L L C O N V E R T " . D e l e t i n g t h i s l i n e , o r r e p l a c i n g i w i t hN O a n c o m m e n t , t h e n r e g e n e r a t i n g t h C P M + s y s t e m b yf o l l o w i n g t h i n s t r u c t i o n s w i t h t h s o u r c e d i s k w a s u f f i c i e n t t a l l o w o u t p u t o t r u e A S C I I t t h p r i n t e r .

A m i g a A B a s i C P r o g r a m B o o t J a m e s C o o p e r J r F a y e t v i l l e , N

U n - A s s e m b l e r S p e e d - U p D a v i d S h i l o hE u g e n e , O

t h o r o u g h l y e n j o y e d M r L o t h i a n ' s U n - A s s e m b l e r ( J a n ' 8 6 ) ,w h i c h d o e s n o s u f f e r a a l f r o m g a r b a g e c o l l e c t i o n . I i s h o w e v e r , d o i n g e x t r a f l o a t i n g p o i n t o p e r a t i o n s i p a s s t w a i b u i l d s t h e l a b e l a r r a y s . T h r e p l a c e m e n t l i n e s b e l o w m a k e p a s st w o v e r f i v e t i m e s a f a s t ( f o r 6 K 1 m i n u t e s i n s t e a d o 8 1 ) . M r M e n k e ( L e t t e r s , M a ' 8 6 ) s h o u l d n o b a b l e t u n a s s e m b l e2 1 o c o d e i j u s t o v e r t w h o u r s .

5 3 0 g o s u b 2 3 8 0 : p s - 1 : g o s u b 2 2 6 0 : 1 ( 0 s H ( 1 ) 3 : l b 1 : l 2 ( 0 )

5 4 0 r e m p r i n t p t w a t c h p a s s t w o6 8 f o I t s t e p - 1 : i a d < H ( i t h e n 7 1 6 9 i a 1 ( i t h e n 0 g o t o 7 1 7 0 0 f o r q l t s t e p - 1 : 1 ( q 1 ( q - 1 ) : n e x t :

H ( q ) a d : i 0 : l b l 7 1 n e x t : r e t u r n7 2 0 [ D E L E T E ]7 3 0 [ D E L E T E ]7 7 0 [ D E L E T E ]7 8 I 1 f o t l o i a d > l 2 ( i ) t h e n 8 1 7 9 i a d I 2 ( i ) t h e n I 0 l o g o t o 8 1 8 0 f o l + t 1 : 1 2 ( q ) l 2 ( q - 1 ) : n e x t :

I 2 ( q ) a d : l f 0 : l o : l o l 8 1 n e x t : i f I f t h e n I 2 ( i ) a d 1 1 + 8 2 r e t u r n8 3 0 [ D E L E T E ]

a n d . . L i n e 1 4 3 0 n e e d s t e n w i t h , 2 0 4 0 " f o t h b i t . b y t eo p t i o n

B i g g e r S t a c k s F o H e a l t h y A s s e m b l y

W h e n a s s e m b l i n g l a r g e f i l e o t h A m i g a , t h s y s t e m c a nc r a s h b e c a u s e o l a c k o s t a c k s p a c e . B e f o r e a s s e m b l i n g , g i v ey o u r s e l f m o r e s p a c e w i t h t h e S T A C K c o m m a n d f r o m C L I .v a l u e o 2 0 , 0 0 0 s h o u l d b e s a f e . W h e n i d o u b t , u s m o r e . T h c o m m a n d l o o k s l i k e t h i s :

S T A C K 2 0 0 0 0

Y o m a w a n t t p u t h i s i n t h b a t c h f i l e y o u s f o a s s e mb l i n g , o e v e n i y o u r S t a r t u p - S e q u e n c e . Y o a l s o n e e d l a r g e rs t a c k w h e n r u n n i n g A B a s i C f r o m C L ( 8 0 0 0 i s a f e ) .

W h e n A B a s i C ( t h e e a r l y M e t a c o m p c o B A S I C ) i l o a d e d , i l o o k sf o f i l e n a m e d i n i t . b a s " , f i r s t i t h e c u r r e n t d i r e c t o r y , t h e ni t h : s s u b d i r e c t o r y . I f o u n d , A B a s i C a u t o m a t i c a l l y l o a d sa n r u n s t h i s f i l e . u s t h i s f e a t u r e t s e m s c r e e n t 8 c o l u m n s b e f o r e s t a r t t y p i n g .

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

E a s y S p e e d - U p F o T h 1 5 4 1 R a l p h D o n c a s t e rE a s t B a y , N . S .

F o r p e o p l e w h a r t r y i n g t s q u e e z e e v e r y b i o s p e e d o u o t h e i r 1 5 4 1 o w h a r j u s t i n t e r e s t e d i t h w o r k i n g s o t h e d i s kd r i v e , t h e n t h i s i j u s t f o r y o u . T y p e i n s a v e , a n r u t h f o l l o w i n g :

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

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

A m i g a D a t e - P r o m p tS t a r t u p S e q u e n c e

B e n j a m i n D o b k i nR e g o P a r k , N

u s t h i s f i l e a m S / S T A R T U P - S E Q U E N C E :

e c h oe c h o " W e l c o m e M a s t e r B e n j a m i n ! ! "e c h oe c h o O u l a s t s e s s i o n w a o n : "d a t ee c h od a t e > " c o n : 0 / 1 0 0 / 3 5 0 / 2 5 / D D - M M M - Y Y H H : M M : S S [ e

t e n e d a t e : ] " > d a t el o a d w be n d c l i n i l : e c h o

T h i s m a k e s n e w i n d o w c o n t a i n i n g a d a t e - t i m e p r o m p t ( l I B M ) , a n r i g h t a f t e r y o r e s p o n d t t h p r o m p t i w i l l d i s p l a yt h f u l l d a t e a n t i m e .

A t h i s p o i n t i y o p r e s s c o n t r o l - d , t h s t a r t u p s e q u e n c e i b r o k e n a n d y o u a r r e t u r n e d t C L I w i t h o u t g o i n g i n t o W o r k -B e n c h .

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 17/88

L e t t e r sT h M u t a n t V i c : I c i t y n o s f a a w a y , i t i m e b u t f o u ry e a r s a g o , a d i s e n c h a n t e d u n i v e r s i t y ( b i o l o g y ) g r a d u n a b l e t f i n d w o r k i n h i s o w f i e l d d e c i d e d t e s c a p e h i d a t i m e j o a n p u r c h a s e d h i n i g h t t i m e d r e a m m a c h i n e , a 3 . 5 k V i c 2 ( f o rr o u g h l y l O w h a t y o u w o u l d p a f o o n n o w ) .

H s u b s c r i b e d t a l t h b e g i n n e r m a g a z i n e s a n d r e a l l y e n j o y e dh i m s e l f f o a b o u t s i m o n t h s a n t h e n s o m e v i r u s b i h i m . T h V i g r e w o u o c o n t r o l . I g r e w t 3 2 k , i l e a r n e d h o t t r a n s f e rR O c a r t r i d g e s t t a p e a n d g r e w c h i p s w i t c h e s . I t o o k o v e rr o o m i t h h o u s e . I b e c a m e s m u c h f u t h a t h s t a r t e dt a k i n g d a t a p r o c e s s i n g c e r t i f i c a t e a c o m m u n i t y c o l l e g e . T w y e a r s p a s s e d a n t h e V i c s p a w n e d m u t a n t , a C - 6 4 , m o r ep o w e r f u l t h a n i t s e l f . I d e m a n d e d d i s k d r i v e , t h e n p r i n t e r ,t h e n a n o t h e r d i s k d r i v e , m o r e l a n g u a g e s . A n t h e n a l o s u d d e n t h e b i o l o g y g r a d w a r u n n i n g m a i n f r a m e c o m p u t e rw i t h m u l t i p a r t i t i o n s f o t h s a m e c o m p a n y h u s e d t p i c k a n p a c k o r d e r s f o r . A n o t h e r y e a r p a s s e d a n n o h w a p r o g r a m m e r . W h w o u l d h a v e e v e r g u e s s e d t h a t 3 . 5 k V i c 2 w o u l d l e a d t t h i s . T h i s s u m m e r h w o u l d g r a d u a t e f r o mc o l l e g e .

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

S . J . B a l d u c k , L o n d o n , O n t a r i o

I a n o t h e r c i t y n o s f a a w a y f r o m y o u r s , i t i m e b u t f o u rw e e k s a g o , l e t t e r w o u l d a r r i v e a t h o f f i c e o c o m p u t e rm a g a z i n e . T h l e t t e r w o u l d d e s c r i b e t h e x p e r i e n c e s o fd e t e r m i n e d y o u n g u n i v e r s i t y g r a d w h w o u l d b e c o m e i n t e re s t e d i c o m p l e t e l y d i f f e r e n t f i e l d t h a n t h o n p r i n t e d o h i d i p l o m a . T h l e t t e r w o u l d t u r n o u t b w r i t t e n b y o n e a n t h s a m e . w o n d e r f u l l e t t e r a i w o u l d a l l o w t h e d i t o r o t h c o m p u t e r m a g a z i n e t r e s p o n d i w r i t i n g s t y l e h w o u l de n j o y i m m e n s e l y .

T h a n k y o f o t h c o m p l i m e n t s a n b e s t o l u c k i y o u r n e f o u n d c a r e e r . H o w e v e r , ( a n d t h i s p r o b a b l y n e e d n o b s a i d )d o n ' t b d i s s a p p o i n t e d a b o u t t h t i m e y o s p e n t l e a r n i n gb i o l o g y . t o o s p e n t l o n g t i m e o b t a i n i n g m d i p l o m a i e l e c t r o n i c s e n g i n e e r i n g . A l t h o u g h h a v e b e e n l u c k y t b a b l et a p p l y S O M E o w h a t l e a r n e d , h a v e f o u n d t h a t t h e " p a p e rc h a s e " w a t h m o s t v a l u a b l e l e s s o n o a l l . L e a r n i n g h o t l e a r n o " l e a r n i n g d i s c i p l i n e " i g i f t t h a t m o s t g r a d s d o n ' tr e a l i z e t h e y ' v r e c e i v e d u n t i l t h t i m e c o m e s t p u i t u s e . F o t h o s e s t i l l i s c h o o l s o f h i g h e r e d p e r h a p s I ' v e r e v e a l e d t o m u c h . B u l e m j u s t s a t h i s : S T A Y T H E R E ! W h a t y o u ' r es e e i n g n o i m u c h l e s s t h a n w h a t y o u ' I g e o u o i l a t e r , Ia s s u r e y o u ! K . J . H

P o s t a l S e r v i c e B l u e s : W h a t h a p p e n e d t t h d a y s o t h v a l u e d s u b s c r i b e r ? Y o r e m e m b e r ; s u b s c r i b e a s m a l l r e d u ct i o n o f c o s t a n g e y o u r i s s u e a w e e k b e f o r e t h e n e w s s t a n d .

r e c e n t l y r e c e i v e d m n o t i c e o r e n e w a l f o m T r a n s a c t o rm a g a z i n e . M m u c h a w a i t e d T r a n s a c t o r m a g a z i n e m i g h t a d d .h a v e t w a i t t o l o n g t r e c e i v e t h e m ! T e l l m h o t h e d i t o r s

o m a g a z i n e s e x p e c t t h e g e n e r a l b u y i n g p u b l i c t p u t o u ty e a r s s u b s c r i p t i o n p r i c e a n t h e n w a i t a n x i o u s l y . W a i t f o o n o t w w e e k s a f t e r t h m a g a z i n e h a a l r e a d y a r r i v e d o t h n e w s s t a n d . I ' v e d r o p p e d m o t h e r s u b s c r i p t i o n s f o t h s a m er e a s o n ! T h e r e r e a l l y w a t i m e w h e n t h e s u b s c r i b e r w a p r i v i l e g e d ; r e c e i v i n g h i o h e c o p y i a d v a n c e o t h g e n e r a lp u b l i c .

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

J a m e s R C l e f s t a d , M a c k e n z i e , B r i t i s h C o l u m b i a

Y o u r s i t y p i c a l o m a n y l e t t e r s w r e c e i v e a w e l l a p h o n e c a l l sa n p e r s o n a l c o m m e n t s . W w o u l d l i k e t a p o l o g i z e f o t h d e l i v e r y p r o b l e m s t h a t h a v e p l a g u e d a n a n a l o o u r e a d e r s ,b u w o u l d a l s o 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 d e s c r i b e t h p r o c e s s .

W h e n a 8 p a g e T r a n s a c t o r g o e s o t h p r e s s , t h p a g e s c o m eo f i s h e e t s o 3 ( 1 p a g e s e a c h s i d e ) , o n s h e e t o f 1 6 p l u st h c o v e r a n a n o t h e r i n s e r t s ( e g . t h s u b s c r i p t i o n c a r d ) . A l t h i s g e t s m o v e d o v e r t a n o t h e r r a t h e r l a r g e m e c h a n i c a l c o nt r a p t i o n c a l l e d " b i n d e r " .

H o w e v e r , b e f o r e M a c L e a n - H u n t e r ( o u r p r i n t e r ) w i l l f i r e u t h b i n d e r , t h e y i n s i s t w s u b m i t o u m a i l i n g l i s t o s u b s c r i b e r s . T h l i s t i s o r t e d b p o s t a l / z i p c o d e a n p r i n t e d o n d o m a t r i xp r i n t e r ( a o u o f f i c e ) o r e g u l a r 1 3 c o l u m n p a p e r s u c h t h a tt h e r e a r f o u r l a b e l s a c r o s s b e l e v e n d o w n o e a c h p a g e . T h l a b e l s m u s t b v e r y c a r e f u l l y p o s i t i o n e d o t h p a g e a c c o r d i n gt s p e c s p r o v i d e d b M a c L e a n - H u n t e r . T h e n t i r e s t a c k o s u b s c r i b e r l a b e l s a r l o a d e d i n t o a h o p p e r a t h e n o t h b i n d e r , a n t h p r o c e s s b e g i n s .

T h b i n d e r m a c h i n e t a k e s t h v a r i o u s s h e e t s a n f o l d s t h e mt h i s w a a n t h a t u n t i l e a c h 2 - p a g e s e i s e p e r a t e d b y f o l d ( 2 - p a g e s e i p a g e p l u s t h p a g e i t ' s a t t a c h e d t a t h o p p o s i t ee n o t h m a g a z i n e ) . A a b o u t t h e h a l f w a m a r k , t h f o l d e dp i e c e s a r s t a c k e d i o r d e r , a n t h e n t i r e s t a c k i s t a p l e dt o g e t h e r . T h s t a p l e s a c t u a l l y s t a r t o u t a s s p o o l o w i r e t h a t i c u a n b e n t i n t o w h a t y o s e a s t a p l e s . N e x t t h b o u n d s t a c ki b e n t i h a l f a l o n g t h s t a p l e s , a n " t r i m m e r " c o m e ss m a s h i n g d o w n a n s h e e r s o f t h f o l d s a t h t o p , b o t t o m , a n r i g h t h a n d e d g e . A s y o u c a i m a g i n e , t h t r i m m i n g m u s t b d o n e l a s t . I i w e r e d o n e a n y e a r l i e r , e a c h p a g e w o u l d b s l i g h t l y d i f f e r e n t l e n g t h l e a v i n g r a t h e r u n t i d y a p p e a r a n c e t t h e t h r e e e x p o s e d e d g e s o t h p a p e r .

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 18/88

A b o u t t h r e e f e e t l a t e r , t h e f i n i s h e d m a g a z i n e e n t e r s t h e l a b e l l e r .T h e 4 b y 1 s h e e t s o l a b e l s a r s l i c e d a n d i c e d , d i p p e d i g l u e ,a n s l a p p e d o n t o t h c o v e r . A m e t i o n e d e a r l i e r , t h l a b e l sm u s t b c a r e f u l l y p o s i t i o n e d o t h p a p e r e l s e t h s l i c e r / d i c e rw o u l d t r i m o f p a r t o f t h e d a t a . T h l a b e l l e d m a g s g f r o m t h e r ei n t o b u n d l e r . T h b u n d l e r o p e r a t o r w a t c h e s t h e d e s t i n a t i o n o t h m a g a z i n e s v e r y c a r e f u l l y s t h a t t h o s e g o i n g t o n p r o v i n c eo s t a t e d o g e b u n d l e d w i t h t h o s e g o i n g t t h n e x t p r o v i n c e /s t a t e . T h b u n d l e s ( a b o u t 2 i e a c h ) g o n t o s k i d s , o n s k i d p e p r o v i n c e . T h U . S . i s s e p e r a t e d i n t o " z o n e s " , h e n c e 8 s k i d s f o d e l i v e r y t t h B u f f a l o m a i n p o s t a l d i s p a t c h .

H o d o e s t h i s a f f e c t d e l i v e r y ? W e l l , i d o e s n ' t w j u s t t h o u g h ty o m i g h t l i k e t k n o w . H o w e v e r , i i e a s i e r f o M a c L e a n -H u n t e r t d t h s u b s c r i b e r c o p i e s f i r s t . T d t h e m l a s t w o u l dm e a n a n t i c i p a t i n g t h e p o i n t a w h i c h a b o u t 1 0 , 0 0 0 u n b o u n dc o p i e s r e m a i n b e f o r e s w i t c h i n g o t h l a b e l l e r . B d o i n g t h e mf i r s t m e a n s s i m p l y u s i n g u a l t h l a b e l s . W h e n t h l a b e l s a r a l g o n e , t h r e s t o t h m a g a z i n e s g o t t h n e w s s t a n dd i s t r i b u t o r . B u r e m e m b e r , w p r i n t a b o u t 6 4 , 0 0 0 c o p i e s , a p r o x i m a t e l y 1 0 , 0 0 0 o w h i c h g o t s u b s c r i b e r s . W h e n t h l a s tl a b e l i p a s t e d o n , t h e r e a r s t i l l 5 4 , 0 0 0 m a g s t o g o . T h i s t a k e ss e v e r a l h o u r s . W h e n t h l a s t m a g a z i n e i b o u n d a n d t r i m m e d ,t h s u b s c r i b e r c o p i e s a r e u s u a l l y w e l l o t h e i r w a ( M d o e s n ' tf o o l a r o u n d t h e y d o n ' t l i k e h a v i n g 1 t 2 s k i d s o m a i l t a k i n gu p r e c i o u s f l o o r s p a c e ) . I f a c t , C a n a d a P o s t m a k e s r e g u l a rp i c k u p a M e r o u t e t t h e i r m a j o r d i s t r i b u t i o n p o i n t s . T h o n l y m a i l t h a t g o e s t t h T o r o n t o c e n t e r i t h m a i l f o t h T o r o n t o a r e a . T h r e s t g o e s d i r e c t l y t M o n t r e a l , E d m o n t o n ,V a n c o u v e r , e t c . T h U . S . m a i l g o e s t B u f f a l o , a n f r o m t h e r e

o t t h o t h e r z o n e s .

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

E x c e p t t g e s u b s c r i b e r c o p i e s o u e a r l i e r w o u l d p r o b a b l ym e a n w a r e h o u s i n g t h n e w s s t a n d c o p i e s f o t w w e e k s t g i v et h e o t h e r s h e a d s t a r t . A s y o u c a s e e , i t ' s o n b i n d a f t e ra n o t h e r ( p u n i n t e n d e d ) .

C o m p a r i s o n O f F o u r W o r d P r o c e s s o r s R e v i s i t e d :w o u l d l i k e t o m a k e f e c o m m e n t s a b o u t y o u r a r t i c l e e n t i t l e d' C o m p a r i s o n O f F o u r W o r d P r o c e s s o r s ' .

F i r s t o a l l , i y o u r a r t i c l e i w a s t a t e d t h a t S p e e d S c r i p t c o u l do n l y d i s p l a y 4 c o l u m n s . T h i s i p a r t i a l l y t r u e . T h r o u g h t h u s o P r e v i e w - 8 0 , i i p o s s i b l e t s c r o l l a r o u n d y o u r S p e e d S c r i p td o c u m e n t u s i n g t h a r r o w k e y s . T h i s i n o t r u e 8 c o l u m n s ,b u t h e n a g a i n i i h a n d y w h e n y o w a n t t s e w h a t y o u rd o c u m e n t w i l l l o o k l i k e b e f o r e y o p r i n t i o u t . S p e c i a l p r i n t e rf u n c t i o n s s u c h a t h u n d e r l i n e a n b o l d t e x t m o d e s c a n n o t b d i s p l a y e d . F u n c t i o n s s u c h a h e a d e r s a n f o o t e r s c a b d i s p l a y e d . P r e v i e w - 8 0 c a b f o u n d i t h N o v e m b e r 1 9 8 5i s s u e o C o m p u t e d G a z e t t e ( i s s u e 2 9 , v o l . 3 n o . l ) .

I w a a l s o s t a t e d t h a t S p e e d S c r i p t d o e s n o h a v e a s p e l l i n gc h e c k e r . A g a i n , t h i s i p a r t i a l l y t r u e . I n t h D e c e m b e r 1 9 8 5

i s s u e o C o m p u t e d G a z e t t e ( i s s u e 3 0 , v o l . 3 n o 1 2 p r o g r a mc a l l e d S p e e d C h e c k w a p u b l i s h e d . T h i s i a s p e l l i n g c h e c k e r ,b u t h e r e i n p r e - m a d e d i c t i o n a r y d i s k . T h p r o g r a m a l l o w sy o t m a k e y o u r o w c u s t o m d i c t i o n a r y b g o i n g t h r o u g hy o u r S p e e d S c r i p t d o c u m e n t , c h e c k i n g f o a l w o r d s t h a t a r m o r e t h a n c h a r a c t e r s i l e n g t h , a n a s k i n g i y o u w a n t t h i sw o r d i y o u r d i c t i o n a r y . I f u t u r e d o c u m e n t s , i t h w o r d i i c h e c k i n g i a l r e a d y i t h d i c t i o n a r y , i p a s s e s i b a n g o e s o t t h e n e x t w o r d . T h e r e a r e a f e w u n d e r s t a n d a b l e s h o r t c o m i n g st t h i s s p e l l c h e c k e r . F o r e x a m p l e , w h a t i y o u e x c h a n g e ' t h e i r 'f o ' t h e r e ' .

I r e c e n t C o m p u t e ! ( I ' m n o t p o s i t i v e o t h m o n t h , b u i w a t h i s s u e w i t h S p e e d C a l c 6 4 a o p t i o n w a a d d e d f o d i f f e r e n to s c r e e n c h a r a c t e r s e t s . T h i s , h o w e v e r , w o r k s o n y o u r T V . ,n o y o u r p r i n t e r .

A n o t h e r s p e l l c h e c k e r i a v a i l a b l e f r o m U p s t a r t P u b l i s h i n g( D e p t . G 3 P O 2 2 0 2 2 , G r e e n s b o r o , N . C . 2 7 4 2 0 ) f o $ 1 5 . A l s oa v a i l a b l e f r o m t h i s s a m e p l a c e i S p e e d P a k . T h i s S p e e d S c r i p te x p a n d e r a l l o w s f o a l t e r n a t e s c r e e n s , m a c r o s , f i l e e n c r y p t i o n ,h e l p s c r e e n s , d i f f e r e n t c h a r a c t e r s e t s , m a i l m e r g e , D V O R A Kk e y b o a r d , a n t h r e e m o r e p r i n t e r c o d e s ( f o r u s e w i t h t h m a i lm e r g e o p t i o n s ) . T h i s p r o g r a m i a l s o $ 1 5 .

A n o t h e r S p e e d S c r i p t e n h a n c e m e n t p r o g r a m i a v a i l a b l e f r o mL i d o n E n t e r p r i s e s ( P O B 7 7 3 , E l G r o v e , W 5 3 1 2 2 ) . T h i se n h a n c e m e n t a l l o w s t h f o l l o w i n g f u n c t i o n s :

P o w e r P r i n t - s e t h e c u r s o r w h e r e y o u w a n t t s t a r t p r i n t i n ga n p r i n t o n c h a r a c t e r , o n s e n t e n c e , o n p a r a g r a p h o r t h ee n t i r e d o c u m e n t .

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

P o w e r S e t a l l o w s a l C o m m o d o r e c o m p a t i b l e p r i n t e r s t s w i t c h b e t w e e n b o t h c h a r a c t e r s e t s .

T h i s p r o g r a m i a v a i l a b l e f o e i t h e r $ 4 . 9 8 f o t h t y p e d l i s t i n g ,o $ 7 . 9 8 o d i s k o r c a s s e t t e .

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

J o S B o l a n d , P a r k F a l l s , W

H e A E v i l S p e l l : w a v e r y a m u s e d b t h l e t t e r t i t l e d' T h e H o r r o r o H e x ' i t h M a i s s u e o T h T r a n s a c t o r . I i t a e x a s p e r a t e d r e a d e r f l a m e d t h a t H e ' i u t t e r n o n s e n s e . '

M a m u s e m e n t w a s , h o w e v e r , b i t t e r - s w e e t . t o r e m e m b e rf i r s t e n c o u n t e r i n g h e x a d e c i m a l n o t a t i o n . M f i r s t a t t e m p t s a l e a r n i n g m a c h i n e l a n g u a g e i n v o l v e d l o o k i n g u t h c o m a n d s i t h P r o g r a m m e r ' s R e f e r e n c e G u i d e , f i n d i n g t h e i r H e o p c o d e s , t r a n s l a t i n g t h e m t d e c i m a l a n P O K E i n g t h d a m n e d c r e a t u r e s i n N a t u r a l l y , t h i s w a n o t e x c e p t i o n a l l y

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 19/88

e f f i c i e n t . S o o n D E S P I S E D H e x , a n o b s e r v e d t h a t t h w o r dH e w a d e f i n e d b m d i c t i o n a r y a s ' A e v i l s p e l l ' !

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

M e a n w h i l e , f o t h o s e w h d n o w i s h t d e l v e i n t o t h e e l e g a n tw o r l d o m a c h i n e l a n g u a g e , t h e r e a r n u m b e r o f s o l u t i o n s .O n i t u s B a s i c e x t e n s i o n s s u c h a T r a n s B A S I C a n d M e t a -B A S I C ( p u b l i s h e d i A p r i l 8 C o m p u t e d G a z e t t e ) , w h i c h f e t u r e s H e t d e c i m a l c o n v e r s i o n c o m m a n d s . A n o t h e r i t g e g o o d m e m o r y m a p . u s ' M a p p i n g t h C o m m o d o r e 6 4 b S h e l d o n L e e m o n , w h i c h f e a t u r e s b o t h h e x a d e c i m a l a n d e c im a e q u i v a l e n t s f o e a c h a d d r e s s .

A f o t h ' p r i v a t e c l i q u e ' o u w h p r o g r a m i M L w e l l , w c a u s w o n d e r f u l m o n i t o r s s u c h a M i c r o m o n a n a s s e m b l e r ss u c h a P A L . U s i n g t h e s e b e a u t i e s , w d o n ' t n e e d t c o n v e r t .B e s i d e s , w h a t d o e s t h n u m b e r 4 0 9 6 s i g n i f y ? I t ' s j u s t a a d d r e s s , w h e t h e r e x p r e s s e d a 4 0 9 6 o $ 1 0 0 0 .

N o O C T A L . . T h a t ' s u n n a t u r a l !

N i c k B a r r o w m a n , S t J o h n ' s , N e w f o u n d l a n d

I m a g i n e , f o m o m e n t , h a v i n g 1 f i n g e r s . I t h a t s a m e m m e n t s o m e t h i n g t e l l s m b y t e w o u l d h a v e 1 b i t s .

T h C o p y B l u e s : a s u b s c r i b e r t T h T r a n s a c t o r a n f i n dm a n y g o o d t h i n g s t h a t a r p a s s e d o t o u U s e r s g r o u p h e r e i G e r m a n y .A t h p r e s e n t t i m e w a r u s i n g t w o t h n e S F D 1 0 0 1d r i v e s i o u B B S , a n f i n d t h c a p a c i t y t e r r i f i c ! ! ! H o w e v e r , t h d i f f e r e n t f o r m a t s p r e s e n t u n i q u e p r o b l e m s w h e n i c o m e s t t h m a i n t e n a n c e o b o a r d . W c a n n o t f i n d f i l e c o p y p r o g r a mt h a t w i l l t r a n s f e r R E f i l e s , e i t h e r t o f r o m t h e 1 5 4 1 a n d S F D .W w o u l d a l s o l i k e t o f i n d f u l l d i s k c o p y p r o g r a m t h a t w o u l dm a k e c o p i e s o t h f u l l d i s k f r o m o n S F t t h o t h e r S F D , s f a w i t h n s u c c e s s .

W r e a l i z e t h a t y o h a v e b e t t e r t h i n g s t d t h a n w o r r y a b o u to u r p r o b l e m s , h o w e v e r , w i t h t h e i n c r e a s e d u s o t h S F D , t h i sc a n n o t b e a n i s o l a t e d i s s u e .

A N A T O o r g a n i z a t i o n h e r e , w h a v e s e v e r a l C a n a d i a nm e m b e r s i o u g r o u p . T h e y h a v e s a i d t h a t i a n y o n e c a h e l p ,t h T r a n s a c t o r c a n ! ! ! ! W s u r e l y h o p e s o

M a j o r R . H . J a c q u o tS e c r e t a r y / T r e a s u r e r :

C o m m o d o r e C o m p u t e r U s e r s G r o u p H e i d e l b e r g

A l t h o u g h t h i s l e t t e r w a s e n t t u b a c k i O c t o b e r o ' 8 5 , i t o o kt i l l n o t b a b l e t o r e p l y . H i r e q u e s t i n o u n i q u e i t h a t w h a v e r e c e i v e d m a n y o t h e r s l i k e i t T h d r i v e t y p e s h a v e v a r i e df r o m t h S F D 1 0 0 1 a a b o v e t h r o u g h t h M S a n I n d u s d r i v e s .O n u n d e r l y i n g f a c t o r a l w a y s p r e v a i l s ; r e l a t i v e f i l e s a r d r a g

t c o p y u s i n g s i n g l e d i s k d r i v e .

A f t e r m a n y m o n t h s o t r y i n g t f i n d t h t i m e t w r i t e r e l a t i v ef i l e c o p y p r o g r a m , w c a n o p r e s e n t T r a n s c r i b e 6 i t h i si s s u e . T r a n s c r i b e 6 i r e l a t i v e f i l e c o p y p r o g r a m f o t h C o m m o d o r e 6 t h a t a l l o w s y o t c o p y R E f i l e s o a n l e n g t hu s i n g s i n g l e d r i v e , t o a n f r o m a n C o m m o d o r e o c o m p a t ib l d r i v e t h a t y o c a i n t e r f a c e t y o u r 6 4 T h o n l y l i m i t a t i o ni u s i n g I E E E d r i v e s w i t h T r a n s c r i b e i t h i n t e r f a c e y o u s e . I t h i n t e r f a c e c o n s u m e s R A i t h s a m e p l a c e s t h a t T r a n s c r i b ed o e s , p r o b l e m s w i l l d e v e l o p . T h s o u r c e f o T r a n s c r i b e h a n o b e e n p r i n t e d t h i s i s s u e , b u i d o e s e x i s t o t h T r a n s a c t o r D i s k* 1 f o a l s i n c l i n e d . I y o f i n d c o n f l i c t s i u s i n g T r a n s c r i b ew i t h y o u r i n t e r f a c e , y o c a e i t h e r r e - w r i t e t h e s o u r c e , p r o v i di n y o k n o w w h e r e t h c o n f l i c t s h a v e d e v e l o p e d , o p u r c h a s e

t r a n s p a r e n t i n t e r f a c e . Y o u r c h o i c e .

V i T i m e : o w V i 2 ( g o o d o l V i c ! ) , 1 5 4 1 , a h o m e - m a d e2 4 e x p a n s i o n a n a p r i n t e r w i t h C e n t r o n i c s p o r t . T h e y t o l dm t h a t y o " c o u l d n ' t " d t h a t w i t h o u t a i n t e r f a c e t h a t w o u l dh a v e c o s t m s e v e r a l h u n d r e d d o l l a r s , s w r o t e m o w i n t e r f a c e a n p u i i t h c a s s e t t e b u f f e r d r i v e n t h r o u g h t h o u t p u t v e c t o r . T h o n l y h a r d w a r e i t h c a b l e .

I y o u r e d i t i n g p l e a s e r e m e m b e r t h a t t h e r e a r e l o o u s V i co w n e r s a r o u n d w h h a v e t h i s q u e e r i d e a t h a t t h V i w e ' v e g o i s s t i l l a b l e t d a l t h t h i n g s w w a n t i t d o s w h s p e n d$ 4 0 0 ( i N Z f o C 6 4 ? h a v e r e c a s t p r o g r a m s l i k e t h R 6 5 C 0 2A s s e m b l e r t w o r k o t h V i s c r e e n a n w i t h m p r i n t e r . I t ' sg r e a t p r o g r a m . N o j u s t h a v e t g e t h U n a s s e m b l e r g o i n g ,a n a d j u s t t p r o d u c e c o d e t h a t c a n b e h a n d l e d b t h A s s e mb l e r .

I ' a l w a y s g l a d t s e ' t r a n s l a t i o n ' d o n e f o m e L i k e t h eP r o f i l e r . w a s t i l l g e t t i n g a r o u n d t d o i n g i t M u c h s i m p l e r t s e i a l t e s t e d a n i n p r i n t . K e e p i u p

A n c h a n c e o T r a n s B A S I C k e r n a l f o u s V i c o w n e r s ?

A i d e a f o T r a n s B A S I C m o d u l e . H o a b o u t S O R T , S O R T % ,S O R T S w h i c h w i l l t a k e t w e l e m e n t s f r o m n u m e r i c a l , i n t e g e ro s t r i n g a r r a y r e s p e c t i v e l y a n p u t h e m i t h r i g h t o r d e r . E g S O R T , a $ ( i ) , a $ ( i + 1 ) S i n c e t h i s i d e f i n i t e l y ' s p e e d ' f u n c t i o n , i h e l p s i t h p r o g r a m m e r t e l l s t h i n t e r p r e t e r w h a t s o r t o a r r a yi i n v o l v e d a n n o m a k e i u s u t i m e f i n d i n g o u f o i t s e l f .H e n c e t h r e e f u n c t i o n s . F o r c o m p l e t i o n , t h e r e c o u l d a l s o b a U N S O R T t h a t r e v e r s e s t h e o r d e r r e g a r d l e s s .

W e ' v e b e e n g e t t i n g t a n t a l i z i n g t i d b i t s o t h e 1 5 4 1 I n n e r S p a c eb u n o e n o u g h t d t b a b l e t d ' s e r i o u s ' p r o g r a m m i n g i i y e t . N o t h a t w h a v e 1 5 4 1 m a o a l t h f u n c t i o n s , h o a b o u t s o m e a r t i c l e s t e l l i n g u s o m e d e t a i l s o f w h a t t d w i t ht h e m . R i c h a r d T E v e r s t e l l s u i i d o n e b p u t t i n g t h e d i f f e r e n tj o n u m b e r s o t h J O Q U E , w a r n s u o t h d i r e c o n s eq u e n c e s o n o s e t t i n g u R A p o i n t e r s c o r r e c t l y , a n l e a v e s i a t h a t . S o m e p e o p l e o u t h e r e a r e r e p r o g r a m m i n g t h d r i v e , s t h i n f o r m a t i o n i a v a i l a b l e . W h h a i ? T e r r y M o n t g o m e r y , A u k l a n d , N e Z e a l a n d

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 20/88

T h p r o b l e m s t h a t w h a v e a l w a y s h a w i t h t h V i a r t w f o l d . F i r s t , t h s c r e e n i o n l y 2 c h a r a c t e r s w i d e . T h i s i r e a ll i m i t a t i o n w h e n w r i t i n g s o f t w a r e t h a t i u n i v e r s a l f o t h C o m o d o r e m a c h i n e s . 8 0 c o l u m n s i j u s t r i g h t , 4 0 c o l u m n s i o f t e nt i m e s p a i n a n 2 c o l u m n s i a l w a y s m a j o r d r a g .

S e c o n d , a l t h o u g h t h V i i A f o n i c e R O r o u t i n e s a n R A v e c t o r s , i i a l w a y s u n p r e d i c t a b l e w h e n w r i t i n g c o d e t w o r kw i t h s p e c i f i c m e m o r y c o n f i g u r a t i o n . T h V i w a o n o C o m m o d o r e i n i t i a l s u c c e s s s t o r i e s , b u i w a f a f r o m p e r f e c t .W h a v e p r i n t e d c o d e w r i t t e n a n m o d i f i e d f o t h V i i p a s t ,a n w i l l c o n t i n u e t d s i t h f u t u r e , b u t w i t h o u t o n s t a n d a r d m e m o r y c o n f i g u r a t i o n t h a t w e k n o w i c o m m o na m o n g o u r e a d e r s , w c a n e v e r m a k e t h V i h a b i t . W j u s th a v e t c o n t i n u e p r i n t i n g t h e . s o u r c e a o f t e n a p o s s i b l e , a n h o p e t h a t p e o p l e s u c h a y o c a m a k e t h e c o n v e r s i o n s . S o r r ya b o u t t h a t .

A f o p r o g r a m m i n g t h d r i v e , o n r e a l l y t e r r i f i c b o o k e x i s t s t h a td e t a i l s a l y o w i l l e v e r n e e d t k n o w a b o u t p r o g r a m m i n g t h 1 5 4 1 . T h b o o k n a m e i ' I n s i d e C o m m o d o r e D O S ' , w r i t t e n b R i c h a r d I m m e r s a n G e r a l d C N e u f e l d , p u b l i s h e d b B r a d e y ,I S B N 0 - 8 8 1 9 0 - 3 6 6 - 3 . Y o w i l l n o f i n d b e t t e r b o o k t h e l py o u n d e r s t a n d t h i n n e r w o r k i n g s o y o u r d r i v e . h o p e t h i sh e l p s .

1 2 0 0 B i t s P e S e c o n d p e s e c o n d : a g l a d t h a t m l e t t e rg e n e r a t e d s o m e m a i l a n m o r e i n f o r m a t i o n w a g a t h e r e d f r o mt h d i s c u s s i o n t h a t e n s u e d .

H o w e v e r , t h i n k t h a t M r H a r s c h w a l i t t l e o v e r - c r i t i c a l i h i t r e a t m e n t o m l e t t e r .

k n o w v e r y w e l l t h a t 1 2 0 0 b p s m o d e m s w o r k w i t h t h e C - 6 4 , a u s V o l k s m o d e m 1 m o d e m a l t h t i m e . B u m a y b e M r

H a r s c h w o u l d l i s t e n t o S t e v e P u n t e r i h i e x p l a n a t i o n o h o h d i s c o v e r e d t h s e c r e t o f r u n n i n g 1 2 0 0 b p s o C - 6 4 .

T h f o l l o w i n g i p a r a p h r a s e d f r o m M r . P u n t e r ' s e x p l a n a t i o n o h o h m o d i f i e d a n s u c c e s s f u l l y w r o t e t h n e c e s s a r y c o d e t r u 1 2 0 0 b p s f r o m w i t h i n h i ' f a m o u s ' B B p r o g r a m .

W h e n M r P u n t e r t r i e d t o p e n a R S - 2 3 2 c h a n n e l a 1 2 0 0 b p sb u s i n g O P E N 2 , 2 , 0 , C H R $ ( 8 ) C H R $ ( 0 ) , h f o u n d t h a t h c o u l d s e n d t t h m o d e m w i t h n o p r o b l e m s ( w h i c h g o e s a l o n gw i t h M r . H a r s c h ' s m e t h o d o d r i v i n g R S - 2 3 2 p r i n t e r s ) . H o e v e r , r e c e i v i n g w a n o t s o e a s y ; h g o n o t h i n g b u g a r b a g e !

B u h d i s c o v e r e d t h a t b p o k i n g d i f f e r e n t v a l u e s t $ 0 2 9 5 / 9 6 ,h w a a b l e t o f i n e t u n e t h r e c e i v e t i m i n g v a l u e s a n m a k e1 2 0 0 b p s w o r k w i t h h i B B p r o g r a m . I y o l o o k a t h K e r n a lr o u t i n e s t o p e n a R S - 2 3 2 c h a n n e l , t h e b y t e s a r l o a d e d i n t ol o c a t i o n s $ 0 2 9 3 t $ 0 2 9 6 . B u i t h l o w e r n y b b l e o t h c o n t r o lr e g i s t e r i n o z e r o , t h K e r n a l g o e s t t h l o o k u p t a b l e a n l o a d s t h e v a l u e s f o u n d t h e r e i n t o b y t e s $ 0 2 9 5 / 9 6 .

S o m e o t h m o r e a d v a n c e d t e r m i n a l p r o g r a m s a r o u n d g i v ey o t h e o p t i o n o a d j u s t i n g t h e v a l u e s a $ 0 2 9 5 / 9 6 s t h a t y o c a u s t h v a l u e t h a t w o r k s b e s t w i t h y o u r m o d e m .

O r e f e r e n c e t t h P R ( P r o g r a m m e r s R e f e r e n c e G u i d e ) ,s u b m i t f r o m p a g e 3 4 t h s e c o n d p a r a g r a p h a f t e r t h h e a d i n g• O P E N I N G A R S - 2 3 2 C H A N N E L ' :

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

M o s t p e o p l e h a v e t a l k e d t p e r s o n a l l y a n m y s e l f h a v e t a k e nt h a t t m e a n t h a t t h 3 r a n 4 t h b y t e s o t h f i l e n a m e a r e i t h e r i g n o r e d o r o v e r w r i t t e n . O t h e r s o u r c e s o 6 i n f o r m a t i o nh a v e s t a t e d t h s a m e t h i n g . T a k e t h b o o k ' A n a t o m y o t h C 6 4 f r o m A b a c u s S o f t w a r e . O p a g e 2 8 t h t a b l e t h e y s h o w t d e t e r m i n e t h l o w e r n y b b l e o t h e c o n t r o l b y t e s p e c i f i c a l l ys t a t e s t h a t t h U s e r D e f i n e d B a u d R a t e o p t i o n i n o i m p l em e n t e d .

I t h f i r s t e d i t i o n o S h e l d o n L e e m o n ' s b o o k ' M a p p i n g t h 6 4 ' ,h a l s o c o n t i n u e d t h s a m e m y t h . H o w e v e r , i s u b s e q u e n te d i t i o n s t h a t e r r o r w a c o r r e c t e d .

a g r e e t h a t t h P R t e l l s u h o t c a l c u l a t e t h e U s e r D e f i n e dB a u d R a t e b u t h a b o v e q u o t e d s t a t e m e n t u s u a l l y k e e p s m o s tp e o p l e f r o m t r y i n g , u n t i l t h e y k n o w b e t t e r .

O n m o r e p r o o f f o t h p r o b l e m f o u n d w a w i t h F i r s t t e r m 5 b T o H u g h e s . I i f i n e P u n t e r p r o t o c a l t e r m p r o g r a m . u s e d i

l o t a t 3 0 0 b p s . B u t w h e n u p g r a d e d t 1 2 0 0 b p s , f o u n d t h a t i d i d n o t w o r k a 1 2 0 0 b p s . r e c e i v e d n o t h i n g b u g a r b a g e ( a l aM r P u n t e r ) .

T h p r o g r a m i w r i t t e n i M a n g o o u m f a v o u r i t em o n i t o r a n s t a r t e d t p o k e a r o u n d i i t f o u n d t h a t M r H u g h e s u s e d b y t e f i l e n a m e s t o p e n h i R S - 2 3 2 c h a n n e l s . H h a o p t i o n s f o a l t h s p e e d s l i s t e d i t h P R ( 5 0 - 9 6 0 0B A U D ) .

w a a b l e t o t o f i n d r o o m h e r e t e l i m i n a t e a l t h s p e e d se x c e p t 3 0 a n 1 2 0 0 b p s . u s e d b y t e f i l e n a m e a n u s e d t h v a l u e o C H R $ ( 5 7 ) a n d C H R $ ( 1 ) f o t h o p t i o n a l b a u d r a t e . L a n b e h o l d , i w o r k e d !

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

L y l e R G i e s e , W o o d s t o c k , I

L e f t W i n g I n t e r f e r e n c e R e v i s i t e d # 1 r e f e r e n c e t J a c kR y a n ' s ' L e f t W i n g I n t e r f e r e n c e ' l e t t e r i T h T r a n s a c t o r V o l u m e6 I s s u e 0 6

B e f o r e p u r c h a s e d 1 7 0 2 m o n i t o r , u s e d m o n o c h r o m eZ e n i t h m o n i t o r , m o d e l Z V M - 1 2 3 . T h e O p e r a t i n g G u i d e c o t a i n s t h f o l l o w i n g c r y p t i c s e n t e n c e :

N o t e : F o b e s t r e s u l t s , k e e p t h e D i s k U n i t s a w a y f r o m t h l e f ts i d e o t h M o n i t o r ( f a c i n g s c r e e n ) .

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

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 21/88

J a c k ' s p r o b l e m r e m i n d e d m o s o m e t h i n g t h a t h a p p e n e d t m w i t h m D a t a s e t t e w h e n f i r s t g o m C o m m o d o r e 6 4

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

B e f o r e l o n g n o t i c e d t h a t w a g e t t i n g a i n o r d i n a t e n u m b e r o t a p e I / e r r o r s w h e n t r y i n g t l o a d p r o g r a m s . i m m e d i a t e l ya s s u m e d t h e D a t a s e t t e w a t o o c l o s e t t h T V s m o v e d i a w a y .

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

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

O n S a t u r d a y m o r n i n g r e s o l v e d t s i d o w n a t h c o m p u t e ra n n o g e u u n t i l h a s o l v e d t h m y s t e r y . A n s s t a r t e de x p e r i m e n t i n g w i t h v a r i o u s c o n f i g u r a t i o n s .

S o m e t i m e i t h e e a r l y a f t e r n o o n n o t i c e d t h a t c o u l d e l i m in a t e t h e e r r o r s c o m p l e t e l y i h e l d t h e t a p e u n i t i m h a n d , a l e a s t f o o t a b o v e t h s u r f a c e o t h t a b l e . P r o x i m i t y t t h T d i d n ' t s e e m t m a t t e r , a s l o n g a s t h e D a t a s e t t e w a s n ' t a c t u a l l yt o u c h i n g t h t a b l e t o p .

d e c i d e d t h a t t h t a b l e t o w a c o n d u c t i n g t h t e l e v i s i o n ' sm a g n e t i s m , s t r i e d i n s u l a t i n g t h D a t a s e t t e . F i r s t t r i e dr e s t i n g i o t h r e e i s s u e s o C o m p u t e ! m a g a z i n e ( t h e o l f a o n e s ) . T h a t s e e m e d t h e l p a l i t t l e , b u s t i l l h a t o m a n ye r r o r s . s l a b o p i n e s h e l v i n g l e f t o v e r f r o m a n o l p r o j e c t w a n e x t . T h a t d i d n ' t h e l p e i t h e r .

I s t r u c k m s o m e w h e r e a l o n g t h w a t h a t w h a t n e e d e d w a n o j u s t i n s u l a t i o n f r o m t h t a b l e b u p h y s i c a l s e p a r a t i o n f r o mi t S m n e x t s t e p w a t p l a c e t h D a t a s e t t e o n a n 8 x 1 4 "b l o c k o w h i t e s t y r o f o a m , t h e k i n d u s e d t p r o t e c t m i c r o c o mp u t e r s d u r i n g s h i p p i n g . T h a t d i i t t h e r r o r s f i n a l l y s t o p p e d .

W h a t c a u s e d t h e t a p e e r r o r s ? n e v e r d i f i g u r e i o u c o p l e t e l y , a l t h o u g h s u s p e c t t h a t t h t a b l e h a a c t u a l l y , t s o m ed e g r e e , b e c o m e m a g n e t i z e d . d o n ' t r e c a l l t h a t t h p r o b l e m so c c u r r e d w h e n f i r s t m o v e d o t h t h e m e t a l , b u t o n l y a f t e rf e w e e k s u s e .

W o u l d t h i s a l s o h a p p e n w i t h d i s k d r i v e ? d o n ' t k n o w ,b e c a u s e a b o u t t h s a m e t i m e g o 1 5 4 1 g o t a w o o d e nc o m p u t e r d e s k , a n n e v e r s a t h p r o b l e m a g a i n .

F r a n k F i g l o z z i , B o w i e , M

L e f t W i n g I n t e r f e r e n c e R e v i s i t e d # 2 R e a d i n g t h l e t t e r sa b o u t ' L e f t W i n g I n t e r f e r e n c e ' i t h M a ' 8 i s s u e r e m i n d e dm o v e r y s i m i l a r e x p e r i e n c e . h a v e b e e n u s i n g C - 6 4 s i n c el a t e ' 8 w i t h a o l i n d u s t r i a l B / E l e c t r o h o m e m o n i t o r . T h i m a g e w a v e d g e n t l y a t h e e d g e s . b l a m e d t h C - 6 4 a n b o u g h t n e Z e n i t h C R T . T h e w a v e s w e r e l e s s b u s t i l l t h e r e .c o u l d h a v e l i v e d w i t h t h i s i m p e r f e c t i m a g e i i w e r e n o f o t h f a c t t h a t m 1 5 4 1 d r i v e s u d d e n l y f a i l e d t o r e a d p r o g r a m c o d et h a t p r e v i o u s l y l o a d e d p e r f e c t l y . T h d r i v e w a i n d e e d s i t t i n g a t h L E F T o t h n e m o n i t o r .

B e c a u s e t h E l e c t r o h o m e C R w a t o t a l l y e n c l o s e d i g r o u n d e d m e t a l c a s e , a n t h Z e n i t h C R h a o n l y p l a s t i ce n c l o s u r e , s u s p e c t e d t h a t s t r a y e l e c t r o m a g n e t i c f i e l d s f r o m t h C R w e r e d i s t u r b i n g t h e o p e r a t i o n o t h e d i s k d r i v e . T h i s g a v em t h k e t t e s t i n g m h y p o t h e s i s a n f i n d i n g a s i m p l e c u r e .

l a r g e u n g r o u n d e d m e t a l p l a t e o f 1 6 x 1 0 i n c h e s b e t w e e n t h Z e n i t h a n t h d r i v e e l i m i n a t e d t h e l o a d e r r o r s . S t h c u r e w a s i m p l y g o o d s h i e l d . A u n s i g h t l y m e t a l p l a t e w a n o t ap r a c t i c a l s o l u t i o n . A n w a n o w i l l i n g t r e s h u f f l e a l t h c a r e f u l l y p o s i t i o n e d h a r d w a r e o n t h c o m p u t e r d e s k . T h e r e a r t w a l t e r n a t i v e m e a n s o s h i e l d i n g :

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

2 K e e p r a d i a t i o n o u o t h e d r i v e w i t h t h e c o a t i n g i n s i d e t h c a s e .

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

S o m e t i m e a g o , b u i l t s m a l l w o o d e n t e l e p h o n e b o t h a ts t r a d d l e d t h d r i v e u n i t f r o m s i d e t o s i d e , w h i l e l e a v i n g a b o u to n i n c h o a i s p a c e a t h t o p . W i t h s o m e a l u m i n u m f o i l f r o mt h k i t c h e n , c o n t a c t c e m e n t a n d u c t t a p e , ' c o a t e d ' t h i n s i d eo t h b o t f o r m s h i e l d . A f t e r a t t a c h i n g g r o u n d i n g w i r e ,f o u n d t h a t t h b o w h e n p l a c e d i i t u s u a l p o s i t i o n o v e r t h d r i v e , p r o v i d e d t h n e c e s s a r y p r o t e c t i o n . h a v e n o h a s i n g l e l o a d e r r o r s i n c e . T h E l e c t r o h o m e h a n o g i v e n w a t a e q u a l l y ' l e a k y ' 1 7 0 1 c o l o u r m o n i t o r . T h p r o b l e m r e c u r s t h m o m e n t t a k e t h e b o a w a y . T h f l y b a c k t r a n s f o r m e r s i b o t hC R T s a r i n f a c t l o c a t e d a t h l e f t s i d e . d n o r e c o m m e n da p p l i c a t i o n o t h p l a s t i c c a s e . I i n o p o s s i b l e t g e b o n dt h a t w i l l s t a n d u t t h t e m p e r a t u r e s w i n g s o v e r t i m e . Y o d o n ' t w a n t a n y s h o r t c i r c u i t s e i t h e r .

O n o m f r i e n d s t o o k h i d r i v e b a c k t t h s t o r e f o a e x c h a n g e a l e a s t t w i c e . a s k e d h i w h a t m o n i t o r h w a u s i n g , a n w h e r e i w a s i t t i n g . H h a p u t t h e d r i v e o T O o t h m o n i t o r . O c o u r s e t h e r e w a n o t h i n g w r o n g w i t h t h e d r i v eo n c e h m o v e d i t t h r i g h t o t h C R T . A a p a r t i n g r e m a r k ,s i m i l a r l o a d e r r o r s s h o w u w i t h t a p e t r a n s f e r s i t h D a t a s e t t ei h e l d t o w a r d s t h l e f t s i d e o t h e m o n i t o r . R e l o c a t i n g i t t h r i g h t d o e s t h t r i c k . G u e s s w h e r e m t a p e u n i t h a b e e n a l a l o n g u n t i l m o v e d i t

J o h n C H o l l e m a n s , O a k v i l l e , O n t a r i o

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 22/88

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

N i c k S u l l i v a nS c a r b o r o u g h , O n t .

T r a n s B A S I C N o t e s

I y o h a v e p u r c h a s e d T h e T r a n s B A S I C D i s k , c o u p l e o f m i n o rb u g s h a v e b e e n f o u n d i t h S Y M A S S 3 . A s s e m b l e r . S e t h a r t i c l e l a t e r t h i s i s s u e t i t l e d " S a v e S Y M A S S S y m b o l s f o d e t a i l s .

T r a n s B A S I C h a s b e e n r e g u l a r T r a n s a c t o r f e a t u r e f o a l m o s tt w y e a r s . T h o s e w h h a v e b e e n f o l l o w i n g t h e s e r i e s k n o w a l a b o u t i t R e c e n t l y , h o w e v e r , w ' v r e c e i v e d l e t t e r s t t h e f f e c t o " w h a t i T r a n s B A S I C ? " . Q u i t e s i m p l y , T r a n s B A S I C i m e t h o do a d d i n g n e w c o m m a n d s t B A S I C ( s e e " P a r t / : b e l o w ) . T h c o m m a n d s c o m e i ' m o d u l e s ' w h i c h m a c o n t a i n o n o m o r ec o m m a n d s O f u n c t i o n s . A f t e r m e r g i n g t h m o d u l e s o y o u rc h o i c e , t h e n t i r e l o i a s s e m b l e d a n l i n k e d i n t o B A S I C . T h n e w c o m m a n d s c a t h e n b u s e d j u s t l i k e a n o t h o t h e rc o m m a n d s t h a t a r a l r e a d y i t h B A S I C R O w h e n t h C 6 i p o w e r e d u p

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

T h T r a n s B A S I C D i s k c o n t a i n s a l o t h m o d u l e s p u b l i s h e d s f a a n i c o m e s w i t h i t o w a s s e m b l e r , S Y M A S S 3 . 1 . A n c o m b i n a t i o n o m o d u l e s c a n b e l i n k e d i n t o B A S I C w i t h o n l yf e s i m p l e s t e p s . F r o m s t a r t t o f i n i s h i u s u a l l y n m o r e t h a nc o u p l e o m i n u t e s . . e v e n l e s s o n c e y o u g e t h h a n g o i t . I tc o m e s w i t h a h a n d y r e f e r e n c e f o j u s t $ 9 . 9 5 . S e t h o r d e r c a r da c e n t e r p a g e .

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

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

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

P a r t 3 R O r o u t i n e s u s e d b y T r a n s B A S I C m a n y m o d u l e sm a k e u s o R O r o u t i n e s b u r i e d i n s i d e t h e C o m m o d o r e 6 4 P a r t e x p l a i n s h o t u s t h e s e r o u t i n e s w h e n c r e a t i n g n e m o d u l e s .

P a r t 4 U s i n g N u m e r i c E x p r e s s i o n s - d e t a i l s o h o t m a k eu s o t h e v a l u a t e e x p r e s s i o n R O r o u t i n e .

P a r t 5 A s s e m b l e r C o m p a t i b i l i t y T r a n s B A S I C m o d u l e s a r w r i t t e n i P A A s s e m b l e r f o r m a t . T e c h n i q u e s f o p o r t i n g t h e mt a n o t h e r a s s e m b l e r w e r e d i s c u s s e d h e r e .

P a r t 6 T h U S C o m m a n d T h c o m m a n d ' A D D ' m e r g e sT r a n s B A S I C m o d u l e s i n t o t e x t s p a c e . H o w e v e r , a m o r e m o u l e s a r A D D e d , m e r g i n g g e t s s l o w . T h U S c o m m a n d w a w r i t t e n t s p e e d t h i n g s u p U S a l s o c o u n t s t h n u m b e r o s t a t e m e n t s a n f u n c t i o n s U S E d a n u p d a t e s t h t o t a l s ( s o u r c el i n e 9 5 ) a u t o m a t i c a l l y .

P a r t U s u a l l y T r a n s B A S I C m o d u l e s d o n ' t n e e d t w o r r ya b o u t i n t e r f e r i n g w i t h o n a n o t h e r . W h e n t w o m o r e m o d u l e sw a n t t o a l t e r t h s a m e s y s t e m v e c t o r , h o w e v e r , p o t e n t i a lc r a s h s i t u a t i o n e x i s t s . P a r t 7 d e a l s w i t h a v o i d i n g t h i s p r o b l e m .

P a r t D e s c r i b e s t h f i v e m o d u l e s f o P a r t 8

P a r t 9 D e s c r i b e s t h s i m o d u l e s f o P a r t 9 a n d m a k e s f i r s tm e n t i o n o T h e T r a n s B A S I C D i s k .

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

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

J o h n H o u g h t o n o C o l l i n g w o o d , O n t a r i o , h a d r a w n o u a t t e nt i o n t b u i t h M G R A P H I C S m o d u l e o T r a n s B A S I CI n s t a l l m e n t # 8 ( v o l u m e 6 n u m b e r 6 ) T h b u c o n s i s t s o s e v e r a l l i n e s t h a t i n a d v e r t e n t l y t r a n s p o s e d i e d i t i n g t h c o d e .T f i i t l o a d i t h s o u r c e c o d e , a n t y p e t h f o l l o w i n g l i n e s :

1 1 0 8 0 l d a $ d 0 1 81 1 0 8 2 s t m c u v i d1 1 0 9 8 I d a # $ 6 81 1 1 0 0 s t a $ d 0 1 8

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 23/88

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

1 1 2 6 4 s t x t 5

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

M r H o u g h t o n a l s o p o i n t s t h a t " W h e n r e t u r n i n g t t h o r i g i n a lt e x t s c r e e n , s o m e t i m e s t h s c r e e n c o l o u r s w i l l b m a n g l e d .T h i s i b e c a u s e t h c o l o u r R A i n o s t o r e d w h e n e n t e r i n g a n e x i t i n g M G R A P H I C S . n e m o d u l e w o u l d b n e e d e d t t a k ec a r e o t h i s , o p e r h a p s u s M O V E F I L L . T h i s l e a d s t t h e n e x tb u g . F I L L w o r k s f i n e , b u b e w a r e , a w r i t t e n , M O V E d o e s n o t .T h b u i i l i n e s 8 2 0 0 t 8 2 0 2 . T h d e s t i n a t i o n a d d r e s s i n o c h a n g e d f r o m F l o a t i n g P o i n t n o t a t i o n t I n t e g e r . A d l i n e 8 2 0 1a s

8 2 0 1 J s r $ b 7 f 7 ; f p 1 t i n

W i t h t h i s f i x , o n c a p r e s e r v e c o l o u r R A w i t h M O V E p r i o r t e n t r y , a n M O V E i b a c k o e x i t . "

O n e x t r e m e l y t r i v i a l b u o c c u r s i t h P R M N G M N T m o u l e . L i n e 1 i o n l y r e m a r k , b u t t h e R E w a l e f t o f f . I t h i sw e r e t h l a s t m o d u l e U S E d , a s s e m b l i n g w o u l d s t o p w i t h? S Y N T A X E R R O R . S i m p l y i n s e r t t h " R E M " a t h b e g i n n i n g o l i n e 1 ( o d e l e t e l i n e 1 i y o l i k e ) , a n R U i a g a i n . T h i s h a b e e n f i x e d o T h T r a n s B A S I C d i s k .

T h i s i s s u e ' s m o d u l e s a r L W R I T E ( P r o g r a m 1 ) b S t e v e H a m e o M u s c a t i n e , I o w a ; R E S T O R E ( P r o g r a m 2 a n C L R A( P r o g r a m 3 ) b o t h b p a s t c o n t r i b u t o r W a y n e H a p p o N o r t hB a b y l o n , N e Y o r k ; C C M D S ( P r o g r a m 4 ) b J o e l M R u b i n o S a F r a n c i s c o , C a l i f o r n i a , a l s o p r e v i o u s c o n t r i b u t o r ; S P E E D( P r o g r a m 5 ) b G u i d o S t r u b e n o C a l g a r y , A l b e r t a ; a n T R A P( P r o g r a m 6 ) b W i l l i a m T u r n e r o W i n n i p e g , M a n i t o b a .

S e v e r a l o t h e s e m o d u l e s a l t e r s y s t e m v e c t o r s , w h i c h h a m e a n t t h a t t h e P A L - s p e c i f i c a s s e m b l e r d i r e c t i v e :

, I F > ( * & 2 5 5 ) * & 1 )

w a n e e d e d o n f e o c c a s i o n s . U s e r s o R o b e r t H u e h n ' sS Y M A S S a s s e m b l e r s h o u l d c h a n g e t h e s e l i n e s t o

P A w h e n t y p i n g t h e m o d u l e s i n T h i s c h a n g e w i l l a l s o b r e q u i r e di t h M G R A P H I C S m o d u l e a l i n e 1 2 1 5 0 a n d t h P R M N G M N T m o d u l e a l i n e 1 8 2 . O n c e a g a i n , i y o u h a v e T h T r a n s B A S I C d i s k , t h e s e c h a n g e s h a v e a l r e a d y b e e n m a d e .

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

N e C o m m a n d sL D V N ( T y p e : S t a t e m e n t C a * 1 6 1 )L i n e R a n g e : 1 2 1 9 0 - 1 2 2 1 0M o d u l e : L W R I T EE x a m p l e : L D V NT h i s s t a t e m e n t s e t s t h p r i n t e r d e v i c e n u m b e r f o t h L W R I T Ea n L L I S T c o m m a n d s c o n t a i n e d i n t h i s m o d u l e . D e v i c e n u b e r s t h r o u g h a r l e g a l . T h d e f a u l t i 4

L S E C ( T y p e : S t a t e m e n t C a # 1 6 2 )L i n e R a n g e : 1 2 2 1 2 - 1 2 2 1 8M o d u l e : L W R I T EE x a m p l e : L S E CT h i s s t a t e m e n t s e t s u s e c o n d a r y a d d r e s s t b e u s e d b t h L W R I T E a n L L I S T c o m m a n d s c o n t a i n e d i t h i s m o d u l e . T h a l l o w e d r a n g e i t h r o u g h 2 5 5 . T h d e f a u l t i 2 5 5 .

L W R I T E ( T y p e : S t a t e m e n t C a t * : 1 6 3 )L i n e R a n g e : 1 2 2 1 2 - 1 2 3 1 4M o d u l e : L W R I T EE x a m p l e : L W R I T E P E R M A N E N T R E C O R D "E x a m p l e : L W R I T E A , B $ , C ( 3 ) 2 T h i s s t a t e m e n t i a l m o s t e x a c t l y t h s a m e a t h s t a n d a r dP R I N T s t a t e m e n t , e x c e p t t h a t o u t p u t i d i r e c t e d t t h s e r i a ld e v i c e s p e c i f i e d w i t h t h L D V N c o m m a n d i n t h i s m o d u l e( d e f a u l t 4 ) T h c o m m a n d e l i m i n a t e s t h e n e e d f o o p e n i n g a n dc l o s i n g a f i l e t t h p r i n t e r . T h k e y w o r d L W R I T E w a u s e di n s t e a d o t h s t a n d a r d L P R I N T i o r d e r t a v o i d c o l l i s i o nw i t h T r a n s B A S I C ' s L c o m m a n d , w h i c h a p p e a r e d i t h S O U N D T H I N G S m o d u l e .

L L I S T ( T y p e : S t a t e m e n t C a * 1 6 4 )L i n e R a n g e : 1 2 2 1 2 - 1 2 3 1 4M o d u l e : L W R I T EE x a m p l e : L L I S TE x a m p l e : L L I S T 3 7 - 1 5 0T h i s s t a t e m e n t i t h s a m e a t h s t a n d a r d L I S T s t a t e m e n t ,e x c e p t t h a t o u t p u t i d i r e c t e d t t h s e r i a l d e v i c e s p e c i f i e d w i t ht h L D V N c o m m a n d i n t h i s m o d u l e ( d e f a u l t 4 ) T h c o m m a n de l i m i n a t e s t h e n e e d f o o p e n i n g a n d c l o s i n g f i l e t t h p r i n t e r ,a n f o u s i n g t h B A S I C C M c o m m a n d t d i v e r t o u t p u t t h e r e .

R E S T O R E ( T y p e : S t a t e m e n t C a * 1 6 5 )L i n e R a n g e : 1 2 3 1 6 - 1 2 3 4 4M o d u l e : R E S T O R EE x a m p l e : R E S T O R EE x a m p l e : R E S T O R E 1 0 T h i s s t a t e m e n t i t h s a m e a s B A S I C R E S T O R E , b u a c c e p t st a r g e t l i n e n u m b e r i o n i p r o v i d e d . S u b s e q u e n t d a t a r e a d sw i l l b e g i n f r o m t h t a r g e t l i n e .

C L R A ( T y p e : S t a t e m e n t C a * 1 6 6 )L i n e R a n g e : 1 2 3 4 6 - 1 2 3 5 6M o d u l e : C L R AE x a m p l e : C L R A

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 24/88

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

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

C G O S U B ( T y p e : S t a t e m e n t C a * 1 6 8 )L i n e R a n g e : 1 2 3 6 4 - 1 2 3 9 4M o d u l e : C C M D SE x a m p l e : C G O S U B S T h t a r g e t l i n e n u m b e r i n t h i s v a r i a n t o t h G O S U B s t a t e m e n ti c a l c u l a t e d f r o m t h a r g u m e n t , w h i c h c a n b e a n v a l i d B A S I Ce x p r e s s i o n .

C R U N ( T y p e : S t a t e m e n t C a * 1 6 9 )L i n e R a n g e : 1 2 3 9 6 - 1 2 4 0 4M o d u l e : C C M D SE x a m p l e : C R U N - 1 0 0 * ( M = 4 T h t a r g e t l i n e n u m b e r i n t h i s v a r i a n t o t h R U s t a t e m e n t i c a l c u l a t e d f r o m t h a r g u m e n t , w h i c h c a n b e a n v a l i d B A S I Ce x p r e s s i o n . U n l i k e R U i t s e l f , C R U N c a n n o t b e u s e d a l o n et h a r g u m e n t e x p r e s s i o n i r e q u i r e d .

C R E S T O R E ( T y p e : S t a t e m e n t C a # 1 7 0 )L i n e R a n g e : 1 2 4 0 6 - 1 2 4 4 6M o d u l e : C C M D SE x a m p l e : C R E S T O R E 2 T h i s v e r s i o n o t h R E S T O R E s t a t e m e n t r e q u i r e s a a r g u m e n te x p r e s s i o n , w h i c h s p e c i f i e s t h l i n e f r o m w h i c h d a t a i t b r e a d b y s u b s e q u e n t R E A D s t a t e m e n t s .

S P E E D ( T y p e : S t a t e m e n t C a t * : 1 7 1 )L i n e R a n g e : 1 2 4 4 8 - 1 2 5 4 2M o d u l e : S P E E DE x a m p l e : S P E E D 1 T h i s s t a t e m e n t s p e c i f i e s s p e e d a w h i c h a l p r i n t i n g w i l l b p e r f o r m e d . L a r g e r a r g u m e n t s s l o w p r i n t i n g , t m a x i m u m o 2 5 5 . z e r o a r g u m e n t r e s t o r e s n o r m a l - s p e e d p r i n t i n g .

T R A P ( T y p e : S t a t e m e n t C a * 1 7 2 )L i n e R a n g e : 1 2 5 4 4 - 1 2 6 6 4M o d u l e : T R A PE x a m p l e : T R A P 1 0 T h i s s t a t e m e n t s p e c i f i e s l i n e a w h i c h p r o g r a m e x e c u t i o n w i l lr e s u m e i a e r r o r , s u c h a s y n t a x o i l l e g a l q u a n t i t y e r r o r ,s h o u l d o c c u r . T h o n l y o t h e r e f f e c t o t h p r o g r a m i t h a t t h s t a c k i c l e a r e d , e n d i n g a n c u r r e n t F O R - N E X T l o o p s a n e s c a p i n g t t o l e v e l f r o m a n c u r r e n t l y - e x e c u t i n g s u b r o ut i n e s .

E R R O R ( T y p e : F u n c t i o n C a * 1 7 3 )L i n e R a n g e : 1 2 6 6 6 - 1 2 6 7 0M o d u l e : T R A PE x a m p l e : I E R R O R 1 T H E N P R I N T B A S Y N T A X ! "T h i s p s e u d o - v a r i a b l e c o n t a i n s t h B A S I C e r r o r n u m b e r o t h m o s t r e c e n t l y t r a p p e d p r o g r a m e r r o r .

E R R L I N ( T y p e : F u n c t i o n C a t * 1 7 4 )L i n e R a n g e : 1 2 6 7 2 - 1 2 6 9 2M o d u l e : T R A PE x a m p l e : P R I N T T H E R R O R W A I L I N E " ; E R R L I NT h i s p s e u d o - v a r i a b l e c o n t a i n s t h n u m b e r o t h l i n e i w h i c ht h m o s t r e c e n t l y t r a p p e d p r o g r a m e r r o r o c c u r r e d .

P r o g r a m 1 L W R I T E

L F J H D J N B B F C P \ p

B F N

E N B N F K G C

I A I K F E A B J L

C I

L J O C L B E

r e I w r i t e ( s h a m m e r 1 2 / 8 5 )

r e s t a t e m e n t :3

; f u n c t i o n s

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

r e s / l d v nr e s / l s e cr e s / l w r i t e

1 r e s / l l i s t1

r C \ r r \c r 6 = = = = =

1 3

r o u t i n eI d I s I p r n1 s

1

l i n e s e r #1 2 1 9 0 1 6 1 2 2 1 2 1 6 1 2 2 3 6 1 6 1 2 2 5 2 1 6

1 4 . a s c " I w r i t E l d v N I s e C l l i s T "1 1 4 9 . w o r d l p r n - 11 2 1 9 0 I d j s 1 2 1 9 2 c p 1 2 1 9 4 b c 1 2 1 9 6 c p 1 2 1 9 8 b c 1 2 2 0 0 s t 1 2 2 0 2 r t 1 2 2 0 4 ;1 2 2 0 6 b a d e v I d 1 2 2 0 8 j m p1 2 2 1 0 ;1 2 2 1 2 I s j s 1 2 2 1 4 s t 1 2 2 1 6 r t 1 2 2 1 8 ;1 2 2 2 0 o p f j s 1 2 2 2 2 I d 1 2 2 2 4 j s 1 2 2 2 6 I d 1 2 2 2 8 I d 1 2 2 3 0 I d 1 2 2 3 2 j s 1 2 2 3 4 j m 1 2 2 3 6 ;1 2 2 3 8 1 p m j s 1 2 2 4 0 I d 1 2 2 4 2 j s

, l d v - 1 , l s e$ b 7 9 e# b a d e v# b a d e vd

# $ a 4 3 7

$ b 7 9 es

I p r 1# $ f f b d# $ 7 8d s $ f f b aS f f c O

o p # $ 7 8$ 7

3 - 1 , i S t - 1; g e t d e v i c e #; t e s t 3 d v

n

n

; ' i l l e g a l d e v i c e * '

; g e t s e c a d d r e s s

; e n s u r e f i l e c l o s e d; n n a m e; k e r n a l s e t n a m; f i l e # 1 2 0

; k e r n a l s e t l f s; k e r n a l o p e n

; o p e n p r i n t f i l e; f i l e #

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 25/88

J A H C C P

O D F F E P P E D F N J C A P C M I V I W

I C

L L

O I

L P

I J M K A

I F A

H H J N K u i v o O L P B F L I E O K

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

0 0 9 . 9 .1 2 2 9 01 2 2 9 21 2 2 9 41 2 2 9 61 2 2 9 81 2 3 0 01 2 3 0 21 2 3 0 41 2 3 0 61 2 3 0 81 2 3 1 01 2 3 1 21 2 3 1 4

r e

r e 3

r e 5

r e r e

r p < C 1

1 0

j s I p r 1 j s

I d j m

1 s j s j s I d s t j s j s j s j m

I f i x I d I d s t s t I d I d s t s t r t

I r e t I d I d s t s l j s j s j m

$ a a 9 0$ a b b 5# $ 7 8$ f f c 3

o p I f i x

# $ 7 8$ 1 $ e 1 1 8$ a a d 7$ 7 $ a 6 a 4

$ 0 3 0 0$ 0 3 0 1w s v e cw s v e c# < l r e t# > l r e t$ 0 3 0 0$ 0 3 0 1

w s v e cw s v e c$ 0 3 0 0$ 0 3 0 1$ a a d 7I p r 1$ e 3 8 6

d . b y t es . b y t e $ f w s v e c . w o r d $ e 3 8 b

P r o g r a m 2

r e s t ( w h a p p )

s t a t e m e n t

p r i n t r t e n t r y; b a s i c c l r c h n; c l o s e f i l ei k e r n a l c l o s e

; o p e n p r i n t f i l e; g r a b w a r m s t t v e c; f i l e #

b a s i c c h k o u t; p r i n t c r I ; r e g e t b y t e; b a s i c l i s t e n t r y

; d i r e c t w a r m s t a r tv e c t o r t r o u t i n e b e l o w

; r e s t o r e o l w v e c t o r

; p r i n t c I i d r c h n , c l o s e; e x i t t r e a d y

; p r i n t d e v #; p r i n t s e c a d d r; w a r m s t a r t r t

R E S T

f u n c t i o n s

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

k e y w o r ds / r e s t o r e

1 5 . a s c r e s t o r E1 1 5 0 .1 2 3 1 61 2 3 1 81 2 3 2 01 2 3 2 21 2 3 2 41 2 3 2 61 2 3 2 8

w o r d r e s - 1r e b e

j s j s b c I d I d d e

r o u t i n er e

r e $ a 9 6 b$ a 6 1 3r e $ 5 $ 6

l i n e s e 1 2 3 1 6 1 6

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

n ; g e t l i n e a d d r e s s

; p o i n t t n u l l b y t e

G H L I

O I

F O

A F A

H E J N P

M n O E B P

I L G O K

I F J H

I J N

M K C B P K

R L C C

P N A G M K

O B

1 2 3 3 0 b n e r e 1 2 3 3 2 d e y1 2 3 3 4 r e 1 s t $ 4 1 2 3 3 6 s t $ 4 1 2 3 3 8 r t 1 2 3 4 0 r e 2 j m p $ a 8 1 d1 2 3 4 2 r e 3 j m p $ a 8 e 31 2 3 4 4 ;

P r o g r a m 3

r e c l r a ( w h a p p )

b e f o r e l i n e

; u p d a t e d a t a p t

b a s i c r e s t o r e; ' u n d e f s t a t e m e n t '

C L R A

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

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

r e m k e y w o r d r o u t i n er e s / c l r a c l

8 r p c i c i i i

1 0 1 5 . a s c " c l r A "1 1 5 1 . w o r d c l r - 11 2 3 4 6 c l I d $ 2 1 2 3 4 8 I d $ 3 1 2 3 5 0 s t $ 3 1 2 3 5 2 s t $ 3 1 2 3 5 4 r t 1 2 3 5 6 ;

l i n e s e r #1 2 3 4 6 1 6 6

; s e t e n d - o f - a r r a y sp t t s t a r t - o f -a r r a y s

P r o g r a m 4 C O M P U T E D C M D S0 r e m c o m p u t e d c m d s ( j r u b i n s e p t / 8 5 ) :

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

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

r e k e y w o r d r o u t i n er e s / c g o t o c g t or e s / c g o s u b c g s br e s / c r u n c r

1 r e s / c r e s t o r e c r s r1

r a C C I

2

l i n e s e 1 2 3 5 8 1 6 1 2 3 6 4 1 6 1 2 3 9 6 1 6 1 2 4 0 6 1 7

1 5 . a s c " c g o t O c g o s u B c r u N c r e s t o r E "1 1 5 2 . w o r d c g t o - 1 , c g s b - '1 2 3 5 8 c g t o j s d i 1 2 3 6 0 j m p $ a 8 a 31 2 3 6 2 ;1 2 3 6 4 c g s b I d # 1 2 3 6 6 j s $ a 3 f b1 2 3 6 8 I d $ 7 1 2 3 7 0 p h a1 2 3 7 2 I d $ 7

, c r n - 1 , c r s r - 1; e v a l l i n e; e n t e r g o t o

; c h e c k s t a c k s p a c e

; p u s h c h r g e t p t

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 26/88

C L

G J K M O G K N A

A J P E K H P G G M K M H O L

C I

E J

N I

G C A F O E

J F A

H F J N O M 0 O N J I

E N 1

G C

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

r e

r e 3

r e 5

r e r e

8 r e

1 0

p h I d $ 3 p h I d $ 3 p h I d # $ 8 dp h j s $ 7

c g s 1 j s c g t oj m p $ a 7 a e

c r I d # j s $ f f 9 0j s $ a 6 6 0b e c g s 1

c r s r j s c l i nI d $ 7 p h I d $ 7 p h j s $ a 8 a 3s t $ 4 I d $ 7 s t $ 4 p l s t $ 7 p l s t $ 7

c r e 1 r t

c l i n j s $ a d 8 aj s $ b 7 f 7c m # $ f ab c c r e 1j m $ b 2 4 8

P r o g r a m 5

s p e e d ( g u i d o s t r b e n

; p u s h l i n e

; p u s h g o s u b t o k e n

" c r u n " e n t r yi n t e r p r e t e r l o o p

; k e r n a l m s g s o f

; c l r; b r a n c h a l w a y s

; e v a l l i n e; p u s h c h r g e t p t

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

d a t a p o i n t e r

; r e s t o r e c h r g e t p t

; e v a l n u e x p r; c o n v t o i n t e g e r; t e s t 6 4 0 0 0

y e ; ' i l l e g a l q t y '

S P E E D1 1 / 8 5 )

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

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

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

= = = = = = = = = = = = = = = = =

1 5 . a s c " s p e e D "1 1 5 3 .2 1 2 52 5 5 59 1 6 29 1 6 59 1 7 89 1 8 0 ;

w o r d s p d - 1j s m o r v e cj s k i l v e c

n o r v e cj s s p d o nr t

l i n e s e 1 2 4 4 8 1 7

= = = = = = = = = = = = = = = =

; p r i n t $ 3 2 6

M A K G B E K K D

E B C B

I IO F I

M B E M G A N E I

B M

E J

F P H C H G M

I O K L E I

E K 0 P

M B B G E

9 1 8 2 k i l v e c9 1 8 59 1 9 89 2 0 0 ;1 2 4 4 8 s p d1 2 4 5 01 2 4 5 21 2 4 5 41 2 4 5 61 2 4 5 81 2 4 6 01 2 4 6 21 2 4 6 41 2 4 6 61 2 4 6 8 s p 11 2 4 7 01 2 4 7 2 s p 21 2 4 7 41 2 4 7 6 s p 1 2 4 7 8 ;1 2 4 8 0 d l 1 2 4 8 21 2 4 8 41 2 4 8 61 2 4 8 81 2 4 9 01 2 4 9 2 d l 1 2 4 9 4 d l 1 2 4 9 61 2 4 9 81 2 5 0 01 2 5 0 21 2 5 0 41 2 5 0 61 2 5 0 81 2 5 1 01 2 5 1 21 2 5 1 4 ;1 2 5 1 6 s p d o n1 2 5 1 81 2 5 2 01 2 5 2 21 2 5 2 41 2 5 2 6 ;1 2 5 2 8 s p d o f f1 2 5 3 01 2 5 3 21 2 5 3 4 ;

j s s p d o f fr t

j s $ b 7 9 es t x b y t ec p # b e s p d o f fI d $ 0 3 2 6c m p r v e cb e s p I d $ 0 3 2 7c m p r v e cb n s p I d # < d l yI d # > d l ys t $ 0 3 2 6s t $ 0 3 2 7r t

p h t x p h t y p h I d x b y t eI d # $ c 8d e b n d l d e b n d l p l t a p l t a p l j m ( p r v e c )

I d $ 0 3 2 6I d $ 0 3 2 7s t p r v e cs t p r v e cr t

I d p r v e cI d p r v e cb n s p

1 2 5 3 6 . i f > ( * & 2 5 5 ) 1 1 2 5 3 8 p r v e c1 2 5 4 0 x b y t e1 2 5 4 2 ;

. w o r d. b y t e O

; p r i n t $ 3 2 6

; g e t b y t e i n , x; p u t i a w a y; t e s t s p e e d

y e ; t e s t v e a l t e r e d

n

y e ; p o i n t t o d e l a y

r o u t i n e

; p u s h r e g i s t e r s

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

; r e s t o r e r e g i s t e r s

; p r i n t

( * & 1 )

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 27/88

N F

E H L J N B

M C O J A

N K G J

I I

E N N K

G C M I

C K G J

1 G

E G C N E

O E C G L K M M D J H P

P D C M

M I

B L O

I

r e

r e 3

r e 5

r e r e r e r e

1 0

P r o g r a m 6 T R A Pt r a p ( w i l l i a m

s t a t e m e n t

t u r n e r )

f u n c t i o n s

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

k e y w o r ds / t r a pf / e r r o rf / e r r l i n

1 r e = = = = 1 2 1 5 . a s c " t r a P "

r o u t i n et r e r r oe r r l

6 2 . a s c e r r o R e r r l i N1 1 5 4 .1 6 2 3 .2 1 2 52 5 5 59 1 6 29 1 6 49 1 6 69 1 7 89 1 8 0 ;9 1 8 2 19 1 8 49 1 8 69 1 9 89 2 0 0 ;

w o r d t r a - 1w o r d e r r o - 1

j s j s

n o r v e c =j s j s r t

u l v e cj s j s i t

9 2 0 2 a u t o f f I d 9 2 0 49 2 0 69 2 0 89 2 1 09 2 1 2 ;

s t I d s t r t

9 2 1 4 a u t o n I d 9 2 1 69 2 1 89 2 2 09 2 2 29 2 3 2 ;1 0 0 8 21 0 0 8 41 0 0 8 61 2 5 4 41 2 5 4 61 2 5 4 81 2 5 5 01 2 5 5 21 2 5 5 41 2 5 5 61 2 5 5 81 2 5 6 01 2 5 6 21 2 5 6 41 2 5 6 61 2 5 6 81 2 5 7 01 2 5 7 2

s t I d s t i t

, i f > ( * & 2 5 5 )

, e r r l - 1m o r v e ck i l v e c

a u t o ne r r o n

a u t o f fe r r o f f

w r m s r t$ 3 0 2w r m s r t + $ 3 0 3

$ 3 0 2w r m s r t$ 3 0 3w r m s r t +

1 : w r m s r t . w o r d 0

t r j s j s s t s t t a b n t y b e

t r a 1 b i b m I d I d s t s t I d

$ a d 8 a$ b 7 f 7t l i nt l i n

t r a 1

e r r o f ft r f l a gt r a 2# < n e w v# > n e w v$ 0 3 0 0$ 0 3 0 1# < w a r m

l i n e s e 1 2 5 4 4 1 7 1 2 6 6 6 1 7 1 2 6 7 2 1 7

; w a r m s t a r t $ 3 0 2; e r r o r $ 3 0 0

; w a r m s t a r t $ 3 0 2; e r r o r $ 3 0 0

; f r o m d s p r u y t ' sp r m a n a g e m e n tm o d u l e

; f r o m d s p r u y t ' sp r m a n a g e m e n tm o d u l e

( * & 1 )

; g e t a d d r f o t r a p

; s t o r e l i n e

; t e s t t r a p o f n

y e ; t e s t t r a p o n o

y e ; u s e n e e r v e

; u s e n e w v e c t o r

A F I

J F I

A F D N H P

I A E O B I

N I

C F B C K J I

M A J J O E L

O H K

I G C J G K O C O P O E B

G M M C N

I I

E O

K

1 2 5 7 41 2 5 7 61 2 5 7 81 2 5 8 01 2 5 8 21 2 5 8 4 t r a 21 2 5 8 6 ;1 2 5 8 8 n e w v1 2 5 9 01 2 5 9 21 2 5 9 41 2 5 9 61 2 5 9 81 2 6 0 01 2 6 0 21 2 6 0 41 2 6 0 61 2 6 0 81 2 6 1 01 2 6 1 21 2 6 1 41 2 6 1 61 2 6 1 81 2 6 2 01 2 6 2 21 2 6 2 41 2 6 2 6 ;1 2 6 2 8 w a r m1 2 6 3 01 2 6 3 21 2 6 3 41 2 6 3 61 2 6 3 8 ;1 2 6 4 0 e r r o f f1 2 6 4 21 2 6 4 41 2 6 4 61 2 6 4 81 2 6 5 01 2 6 5 2 ;1 2 6 5 4 e r r o n1 2 6 5 61 2 6 5 81 2 6 6 01 2 6 6 21 2 6 6 4 ;1 2 6 6 6 e r r o1 2 6 6 81 2 6 7 0 ;1 2 6 7 2 e r r l1 2 6 7 41 2 6 7 61 2 6 7 8 ;1 2 6 8 0 e o u t1 2 6 8 2 e r r v e c1 2 6 8 4 t l i n1 2 6 8 6 e r r n o1 2 6 8 8 e l i n e1 2 6 9 0 t r f l a g1 2 6 9 2

I d s t s t I d s t r t

b m s t I d I d s t s t b i b p I d I d s t s t I d t x I d p h I d p h j m

j s j s j s I d j m

I d I d s t s t I s r t

I d I d s t s t r t

I d j m

I d I d j m

# > w a r m$ 0 3 0 2$ 0 3 0 3# $ 8 0t r f l a g

w a r me r r n o$ 3 $ 3 e l i n ee l i n e + t r f l a ge o u tt l i nt l i n$ 1 $ 1 # $ f a

# $ a 7

# $ a d

$ a 8 a 3

e r r o f fa u t o f fo w n r t n# $ 8 0( $ 0 3 0 0 )

e r r v e ce r r v e c + $ 0 3 0 0$ 0 3 0 1t r f l a g

$ 3 0 0$ 3 0 1e r r v e ce r r v e c +

e r r n o$ b 3 a 2

e l i n ee l i n e +u s f p

. b y t e $ 4 . w o r d. w o r d. b y t e. w o r d. b y t e O

; t r a p f l a g o

; b r a n c h o r u n - s t o p; s t o r e e r r o r; s t o r e l i n e

; t e s t t r a p o n

; g e t t r a p l i n e *

; c l e a r s t a c k

; p u s h i n t e r p r e t e rl o o p a d d r e s s

; g o t o t r a p l i n e

; c a n c e l h i - r e s e t c; e x i t t o ' r e a d y . '

; t r a p f l a g o f

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

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 28/88

T h A T A R I S N o t e b o o k J a c k C o l eK i t c h e n e r , O n t .

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

S o m e t i m e e a r l y i t h s u m m e r o 1 9 8 5 w b e c a m e o n o t h f i r s t d e v e l o p e r s p r i v i l e g e d t r e c e i v e p r e - p r o d u c t i o n v e r s i o no t h A t a r i 5 2 0 S T . T s a w w e r e p r i v i l e g e d i o c o u r s ed e p e n d e n t o y o u r p o i n t o v i e w . W w e r e a l e x c i t e d a t h p r o s p e c t s o p l a y i n g w i t h t h b e a s t , b u t t h e t h o u g h t o d o i n gr e a l w o r k o i l e f t u q u i t e a p p r e h e n s i v e . N e h a r d w a r e i s a f t e r a l l , n e h a r d w a r e . A n u s i n g n e o p e r a t i n g s y s t e m i s a f t e r a l l , l i k e o p e n i n g c a o w o r m s w i t h y o u r t e e t h . A n p r e - r e l e a s e s a r g e n e r a l l y b e s t l e f t u n t i l t h e y a r n l o n g e rp r e - r e l e a s e s . A n p r e - r e l e a s e s w i t h w i n d o w s a n r o d e n t s a r b e s t d r a g g e d q u i c k l y o v e r t t h t r a s h c a s y m b o l ( o s w b e l i e v e d ) . T h e S T h a t r e m e n d o u s p o t e n t i a l i t h i s r e g a r d ; i c o u l d b p o t e n t i a l l y d i f f i c u l t t g e o u c o d e w h e r e w w a n t e di t a n i c o u l d b p o t e n t i a l l y i m p o s s i b l e t d e b u g . N e m c h i n e s v e r y o f t e n w i t h e r a w a y a n d i f r o m t h e s e m a l a d i e s a m a t h p r o g r a m m e r s w h b e a t t h e i r h e a d s a g a i n s t t h e m .

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

O u m i s s i o n w a t i n v e s t i g a t e a n h o p e f u l l y p o r t o u n e t w o r k( I M A G I N E T ) a n d s o f t w a r e p r o d u c t s f r o m t h P C - 1 0 , C o m p a q ,a n I B c o m p a t i b l e m a c h i n e s t t h n e A t a r i , t h e r e t p r o v i d e l o c o s t a n h i g h p e r f o r m a n c e n e t w o r k w o r k s t a t i o n sf o o u r d a t a b a s e ( T h e M a n a g e r ) . T h i s n o t e b o o k w i l l p r o v i d e a o v e r v i e w o t h A t a r i p r o g r a m m i n g e n v i r o n m e n t a n h o w f o u n d i d e v e l o p m e n t a t m o s p h e r e . P l e a s e r e m e m b e r t h a to u n e e d s a n d e s i r e s i c o m p u t e r m a b e a r l i t t l e r e s e mb l a n c e t y o u r s , s s o m e o o u c r i t i c i s m s a n p r e f e r e n c e s m a s e e m t r i v i a l t y o u . T h e y p r o b a b l y a r e !

T h e H a r d w a r e

F i r s t o a l b r i e f d e s c r i p t i o n o t h S h a r d w a r e m a b i o r d e r . w o n ' t g o i n t o m u c h d e t a i l h e r e t h o u g h ; l o t s o a r t i c l e sh a v e b e e n w r i t t e n i o t h e r p l a c e s a b o u t t h 5 2 a n i t ' s n e b i b r o t h e r t h e 1 0 4 0 . E s p e c i a l l y s e e t h e N o v e m b e r 1 9 8 5 i s s u eo T h T r a n s a c t o r a n t h M a r c h 1 9 8 6 i s s u e o B Y T E w h i c hl o o k s i n s i d e t h 1 0 4 0 i v e r y n i c e d e t a i l . O u e x p e r i e n c e h a m o s t l y b e e n w i t h t h 5 2 w i t h o u t t h o p e r a t i n g s y s t e m i R O M ; h o w e v e r o u r e c e n t 1 0 4 0 i n v e s t i g a t i o n s i n d i c a t e s t h a tc o m m e n t s h e r e a p p l y t a l v e r s i o n s o t h m a c h i n e s .

T h e S T c o m e s i s e v e r a l p i e c e s ; m o r e o t h i s l a t e r . B o t h c o l o u ra n m o n o c h r o m e m o n i t o r s a r a v a i l a b l e . T h e m o n o c h r o m e ,o p e r a t i n g i h i g h r e s o l u t i o n m o d e , o f f e r s 6 4 0 b y 4 0 0 p i x e l s ; t h c o l o u r o f f e r s 6 4 0 b y 2 0 0 w i t h f o u r c o l o u r s ( m e d i u m r e s o l u t i o n )o 3 2 0 b y 2 0 0 w i t h 1 6 c o l o u r s ( l o w r e s o l u t i o n ) . W h a t t h i s r e a l l y

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

T h 1 0 4 0 h a s b u i l t - i n 3 . 5 i n c h d o u b l e - s i d e d f l o p p y d r i v e .T h e x t e r n a l d r i v e s ( y o u m a h a v e t w o d r i v e s a t t a c h e d ) c o m ei e i t h e r s i n g l e - o r d o u b l e - s i d e d v e r s i o n s , w i t h f o r m a t t e dc a p a c i t i e s o 3 6 0 k a n d 7 2 0 k r e s p e c t i v e l y . T h d r i v e s s e e m t b s l o w e r t h a n t h e y s h o u l d , b u t t h e r e a l d r a g w i t h t h e e x t e r n a l s i t h a t e a c h r e q u i r e s s e p a r a t e p o w e r s u p p l y , a n o p e r a t e s a t h e n o a v e r y s h o r t c o r d f r o m t h m a i n s y s t e m u n i t . A r e s u l t( e s p e c i a l l y t r u e o t h 5 2 0 ) t h d r i v e s a n p a r a p h e r n a l i a t e n d t b a n n o y i n g l y i t h w a y .

O u p r o t o t y p e h a r d d i s k s s l i g h t v a r i a t i o n o S C S I d i s k s ,d u b b e d A C S 1 b A T A R I h a v e p e r f o r m e d w e l l . T h 2 m e g ab y t e d r i v e i e x t r e m e l y q u i c k a n d s e e m s v e r y r e l i a b l e . N o t h a tt h i s d r i v e i r e a d y f o t h e g e n e r a l p u b l i c , i s h o u l d k n o c ks e v e r a l l a y e r s o s o c k s o f f , a n a v e r y a f f o r d a b l e p r i c e !

T h D M p o r t , t h r o u g h w h i c h t h h a r d d i s k i c o n n e c t e d , i i n t e n d e d t s u p p o r t u t d e v i c e s . A l r e a d y d e v e l o p e d a n w a i t i n g f o t h " r i g h t t i m e " i C D - R O M v e r y l a r g ec a p a c i t y , r e a d o n l y s t o r a g e s y s t e m u s i n g c o m p a c t d i s k t e c h n o lo g y . A T A R I i s u p p o s e d l y w a i t i n g f o C t h a t c a n b e u s e d b o t hf o a u d i o a n w i t h t h S T T h D M p o r t i a l s o t h l o g i c a lp l a c e f o n e t w o r k c o n n e c t i o n , a n i n d e e d i w h e r e o u r sc o n n e c t s , l o o k i n g f o a l t h w o r l d t t h S l i k e a c o l l e c t i o n o h a r d d i s k s . T h t w c o m p l a i n t s w h a v e w i t h t h D M p o r t a r et h a t ( a g a i n ) t h e c a b l e s m u s t b v e r y s h o r t , a n t h S h a d i f f i c u l t y ( e l e c t r i c a l l y ) i n h a n d l i n g m o r e t h a n o n d e v i c e . A T A R I( o t h i r d p a r t y ) i b e l i e v e d t b b u i l d i n g a e i g h t c o n n e c t o rb o t r e m e d y t h e s e p r o b l e m s .

T h s y s t e m u n i t i t h r e a l m e a t . D r i v e n b M o t o r o l a 6 8 0 0 01 6 - a l m o s t - 3 2 b i p r o c e s s o r , i a l s o c o n t a i n s t h e R A ( 5 1 2 k o 1 M ) , t h o p e r a t i n g s y s t e m i R O ( e a r l y v e r s i o n s o t h m a c h i n e d i n o h a v e T O i R O M , b u i i n o a v a i l a b l e ) ,M I D I , R S 2 3 2 , m o u s e a n p a r a l l e l p o r t s , i n t e r f a c e s f o t h d i s kd r i v e s a n m o n i t o r s , p o w e r s u p p l i e s f o t h e 1 0 4 0 , a n s o n O h a n d o n e o t h e r t h i n g . T h s y s t e m u n i t i r e a l l y t h k e b o a r d .

T h l a y o u t o t h k e y b o a r d i v e r y s i m i l a r t t h a t o f a I B P C u n d o u b t e d l y g o o d b i o p l a n n i n g a i m a k e s m i g r a t i o n f r o mt h a t m a c h i n e b i e a s i e r . I h a 1 0 f u n c t i o n k e y s , a 1 k e n u m e r i c c l u s t e r a n a e x t r a k e c l u s t e r , i n a d d i t i o n t t h

T h T r a n s a c t o r 2 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e 0

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 29/88

r e g u l a r a l p h a k e l a y o u t . T h f e e l o t h k e y b o a r d i s h o w e v e r ,l e s s t h a n s a t i s f a c t o r y . T h k e y s a r d e a d t t h t o u c h o f f e r i n gn t a c t i l e f e e d b a c k , s t h a t f o r m e r P u s e r w o u l d b e v e r yu n c o m f o r t a b l e t y p i n g o t h e S T . T h 1 0 4 0 h a m a d e v e r y s l i g h ti m p r o v e m e n t s i t h i s a r e a ; m o r e a r n e e d e d .

T h s e c o n d m a j o r c o m p l a i n t w i t h t h e p h y s i c a l s i d e o t h S i t h a t i d o e s i n d e e d c o m e i p i e c e s . t w o - f l o p p y 5 2 d e v e l o pm e n t s y s t e m c o m p r i s e s p o w e r s u p p l i e s , 4 p o w e r c o r d s , a n o t h e r v e r y s h o r t c a b l e s , a p a r t f r o m t h b a s i c c o m p o n e n t s .T h i s r e s u l t s i a c l u t t e r e d a n a w k w a r d d e s k , a n d i f f i c u l ts y s t e m t t r a n s p o r t . T h p l e t h o r a o c a b l e s m e a n s t h a t t h k e y b o a r d i v i r t u a l l y f i x e d i p l a c e . T h 1 0 4 0 , b b u i l d i n g i t w o t h e s u p p l i e s , o n f l o p p y a n d a n R m o d u l a t o r ( i s o m em o d e l s ) w i l l m a k e t h S m u c h t i d i e r a n e a s i e r t p i c k u p a n dt a k e h o m e f r o m t h o f f i c e . I t h m e a n t i m e t h e r e ' s f o r t u n e t b m a d e s e l l i n g n i c e l i t t l e c a s e s t p a c k y o u r S i n t o .

T h O p e r a t i n g S y s t e m

M a n y 6 8 0 0 0 b a s e d m a c h i n e s h a v e b e e n b r o u g h t t m a r k e t i t h l a s t 3 o r 4 y e a r s , n e c e s s i t a t i n g 6 8 0 0 0 b a s e d o p e r a t i n gs y s t e m s . M o s t d e v e l o p e r s w e n t t s o m e U N I X v a r i a t i o n o ra n o t h e r , b e c a u s e U N I X h a d b e e n w e l l s h a k e n d o w n o v a r i o u sD i g i t a l E q u i p m e n t m a c h i n e s a n d t h 6 8 0 0 0 s u i t e d U N I X t t e e . B e s i d e s w h i c h , i w a t r e n d y t h a v e U N I X a v a i l a b l e ; s o r t o fl i k e t h f l a v o u r o t h m o n t h a t h l o c a l Y u p p i e G o u r m e t T o f uP a l a c e . S o , , m a n y 6 8 0 0 0 b o x e s c o m e w i t h a o f f i c i a l U N I XS y s t e m , s o m e o t h e r p o r t ( w i t h U N p r e f i x o I s u f f i x ) o r a r e -i m p l e m e n t a t i o n b a n o t h e r s o f t w a r e h o u s e . M o t o r o l a , a t h c h i p d e v e l o p e r , g o o f t a e a r l y s t a r t w i t h i t o w V e r s a D O Ss y s t e m a n t h e n j u m p e d o t h b a n d w a g o n b o f f e r i n g U N I Xa a a l t e r n a t e s y s t e m f o t h e i r V M l i n e . C o m m o d o r e , a w a d i s c u s s e d i r e c e n t i s s u e o T h T r a n s a c t o r , c a m e o u t w i t h

n e m u l t i - t a s k i n g m u l t i - w i n d o w D O f o t h A m i g a . B u w h a t b e l i e v e t h e s e p e o p l e m i s s e d w h e n b r i n g i n g t h e i r s t u f f t m a r k e t , w a t h a t s u c h o f f e r i n g s a r m u c h t o c o m p l e x f o n e a r l y e v e r y o n e ' s n e e d s . ( M i n d y o u , o n l y o n o t h e s e c o m p a ni e i t r u l y a i m i n g a t h m a s s m a r k e t ! ) A o n e - t i m e U N I Xs y s t e m ' s f a n a t i c ( I t o o , w a o n c e g u i l t y o f p o r t i n g U N I X t n e 6 8 0 0 0 b o x ) c a a p p r e c i a t e i t t r e m e n d o u s p o w e r a n de f f i c i e n c y . H o w e v e r p u t t i n g U N I X - t y p e p r o d u c t s i f r o n t o m o s t u s e r s , i l i k e g i v i n g t h e m 7 4 w h e n t h e y a s k e d f o T o y o t a . I h a w a t o m a n y g a d g e t s , t a k e s w a t o m a n yr e s o u r c e s , m a k e s m o s t l y n o i s e a n s m o k e , r e q u i r e s l o t s o s p e c i a l t r a i n i n g a n p r o b a b l y d o e s n ' t f i i t h g a r a g e a n y w a y !O t h w h o l e i c r e a t e s m o r e p r o b l e m s t h a n i s o l v e s ; m o r ep e o p l e w i l l g i v e u t h a n w i l l m a n a g e t t a k e o f f .

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

T h e S T o p e r a t i n g s y s t e m ( T O S ) t u r n e d o u t b v e r y p l e a s a n ts u r p r i s e . W h e n A T A R I n e e d e d a n o p e r a t i n g s y s t e m d e v e l o p e d ,t h e y w e n t t D i g i t a l R e s e a r c h ( D R I ) l i t e r a l l y ; A T A R I s u p p l i e dm o s t o t h p e o p l e a n d i m u c h o t h w o r k w h i l e D R r e t a i n e d t h e r i g h t s . U s i n g D R p r o v e d t b b o t h b l e s s i n g a n a c u r s e . T h c u r s e i t h a t m u c h o T O i n o o u o A T A R I ' Sh a n d s , a n s p r o b l e m s w i t h T O m a t a k e l o n g t i m e t b f i x e d , s i m p l y b e c a u s e A T A R I d o e s n o h a v e t h m e a n s a n D R

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

T h b l e s s i n g s a r e t h a t T O h a s f e o t h e s e " p r o b l e m s " , a n i n o s i m p l y " s o n o U N I X " o e v e n " s o n o C P M " a i c o u l de a s i l y h a v e e n d e d u p W h i l e t h e r e a r s o m e C P M / 6 8 K h o l do v e r s , t h r e a l l y g o o d n e w s a b o u t T O i t h a t i i b a s i c a l l y ( a r ey o r e a d y ) a M S D O S c o m p a t i b l e s y s t e m ! T h a t ' s r i g h t , D R t o o k t h f o u n d a t i o n o M S D O S a n r e c r e a t e d i o t h S T N o t et h a t t h i s d o e s n o m e a n t h a t p r o g r a m s f r o m y o u r P w i l l r u o t h S T I d o e s m e a n t h a t t h e y c a n b e m o v e d t t h S m u c hm o r e e a s i l y . W h i l e t h e y w e r e a i t D R m o v e d t h e i r G E w i n d o w i n g e n v i r o n m e n t ( d e v e l o p e d f o M S D O S ) a w e l l . P e p l f a m i l i a r w i t h w i n d o w s w i l l f i n d G E M ' s D e s k t o p v e r y f a m i li a ( A p p l e b e l i e v e d i w a m u c h t o f a m i l i a r , a n s u e d D R I ) ; t h t r a s h c a n , d i s k a n f i l e i c o n s a r e t h e r e , a s a r e t h s t a n d a r dm o u s e o p e r a t i o n s . T h s c r e e n i q u i t e n i c e l y d o n e ; m u c hc l e a n e r t h a n t h A m i g a s c r e e n . T h o s e o y o w h d i s l i k er o d e n t s w i l l b p l e a s e d t k n o w t h a t t h w i n d o w i n g e n v i r o nm e n t c a n b e p u n t e d ( i i i i R A M ) , l e a v i n g s h e l l ( t h e p r o p e rn a m e f o C o m m a n d L i n e I n t e r p r e t e r ) w h i c h w i l l e x e c u t ec o m m a n d s f r o m t h k e y b o a r d .

T h o n - d i s k s t r u c t u r e s a r e i d e n t i c a l t t h o s e o M S D O S ( v e r yc o n v e n i e n t l y a l l o w i n g P C ' s a n S T ' s t s h a r e d i s k s o n e t w o r k ) . T h r e s u l t i n g f i t e s y s t e m i v e r y s t r a i g h t f o r w a r d ; i i n o e a s i l y d a m a g e d a n q u i t e s i m p l e t r e p a i r . T h o p e r a t i n gs y s t e m c a l l s ( o p e n f i l e , r e a d a f i l e , e t c . ) a r n e a r l y t h s a m e a M S D O S , m a k i n g t h j o o s o f t w a r e p o r t i n g v e r y d i r e c t . T h i sw a a n o t h e r s m a r t m o v e b y A T A R I , a i s h o u l d s p e e d u t h a v a i l a b i l i t y o p o p u l a r s o f t w a r e p a c k a g e s .

H o w e v e r , a l i n o p e r f e c t . T O h a n o y e b e e n e q u i p p e d w i t ht h a d e q u a t e s e o u t i l i t i e s t h a t m a k e u M S D O S . I y o w o r ko u t s i d e o t h w i n d o w e d e n v i r o n m e n t , y o u m u s t b p r e p a r e df o f r u s t r a t i o n s . T h s h e l l h a f e w - b u i l t i c o m m a n d s ( C O P Y ,R E N A M E , T Y P E e t c . ) b u t t h e y a r a w k w a r d a n d n o a c c e p tw i l d c a r d s p r o p e r l y . T h e r e a r v e r y f e e x t e r n a l c o m m a n d s ,a n t h e y a r e q u a l l y c r u d e . F o r t u n a t e l y , t h c o m p i l e r , a s s e mb l e r a n l i n k e r i n c l u d e d w i t h o u d e v e l o p m e n t k i w o r k e d f i n e( w e l l , n e a r l y s o a n w w e r e a b l e t s u r m o u n t t h e s e p r o b l e m s .

T h f i r s t t h i n g s - w m o v e d t t h S w e r e o u o w s c r e e ne d i t o r , s h e l l , o b j e c t l i b r a r i a n , f i l e s y s t e m p a t c h e r , c o p y p r g r a m , a n c o l l e c t i o n o o t h e r u s e f u l u t i l i t i e s . O u f a m i l i a rp r o g r a m m i n g e n v i r o n m e n t f r o m t h P w a a l i p l a c e o t h S i o w e e k s , s t h a t w e n o w h a v e t w o n e a r l y i n d i s t i ng u i s h a b l e s y s t e m s t w o r k o n

T O C a l l s

A m e n t i o n e d , t h o p e r a t i n g s y s t e m c a l l s a r n e a r l y i d e n t i c a l t ot h o s e o M S D O S v e r s i o n 2 S o m e o t h m o r e s u b t l e t h i n g s w e r em i s s e d , l e a d i n g u t s u s p e c t t h a t D R d i d n ' t r e a l l y k n o w h o t h M S D O S v e r s i o n s p e r f o r m e d b u i n s t e a d w o r k e d f r o mm a n u a l . f e c a l l s h a v e b e e n r e m o v e d a n c o u p l e o t h e mw o r k s l i g h t l y d i f f e r e n t , b u t h d i s c r e p a n c i e s a r v e r y m i n o r .A l a r r e a c h e d b b u i l d i n g p a r a m e t e r b l o c k o t h e s t a c k a n i s s u i n g a s p e c i a l 6 8 0 0 0 i n s t r u c t i o n , T R A P 1 T h i t e m a t h

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 30/88

t o o t h s t a c k i t h 1 6 - b i t f u n c t i o nn u m b e r a d e s c r i b e d b e l o w , f o l l o w e db t h f u n c t i o n ' s p a r a m e t e r s . T h i s p ar a m e t e r p a s s i n g c o n v e n t i o n i t h s a m e a t h a t u s e d b a n o t h e r h i g hl e v e l l a n g u a g e s , a n m a k e s h i g h l e v e lc a l l s t o T O q u i t e s i m p l e . M o s t r e s u l t sa r r e t u r n e d v i d a t a r e g i s t e r 0 T a b l es u m m a r i z e s t h T O f u n c t i o n c a l l s ,a n t h e i r M S D O S e q u i v a l e n t s . Y o w i l ln o t i c e t h a t m o s t o t h u n i m p l e m e n t e dc a l l s a r e i t h e r f o o b s o l e t e o o b s c u r ef u n c t i o n s .

I a d d i t i o n t h e r e a r ( a l a s t c o u n t ) 5 T O o B I O S v a r i a b l e s w h o s e m e m o r yl o c a t i o n s a r e " c a s t i c o n c r e t e " . T h e s ei n c l u d e v e r y u s e f u l i t e m s s u c h a s t i m e r t i c k c o u n t e r , d i s k b u f f e r l i s t ,m a g i c ' v e c t o r s a n c o n f i g u r a t i o n i n f o rm a t i o n . T e x a m i n e / m o d i f y t h e s ei t e m s p r o g r a m m u s t f i r s t c h a n g e t s u p e r v i s o r m o d e ( T O S f u n c t i o n 3 2 ) ,t h e n c h a n g e b a c k w h e n f i n i s h e d .

B I O S T o o

T h e r e i a l s o a f a i r l y e x t e n s i v e s e t o fB I O S ( R O M r e s i d e n t ) r o u t i n e s , f o w o r k i n g a l e v e l c l o s e r t t h h a r dw a r e . T h e s e f u n c t i o n s a r a c c e s s e d i t h s a m e w a y a t h T O c a l l s , b u t h r o u g h T R A P 1 3 a n d T R A P 1 i s t r u c t i o n s . T h e s e f u n c t i o n s a r i n w a r e l a t e d t t h P C c o m p a t i b i l i t yd o e s n o e x t e n d d o w n t t h B I O Sl e v e l . S o m e h i - l i g h t s o t h B I O Sf u n c t i o n s a r s u m m a r i z e d i T a b l e 2

N o t h a t y o k n o w m o r e t h a n y o p r o b a b l y e v e r e x p e c t e d t a b o u t t h S T l e m c l o s e w i t h s o m ew a r n i n g s . T O a n G E a r s t i l l i n f e c t e d w i t h f e r a t h e ru n p l e a s a n t b u g s . T h i s i n o s u r p r i s i n g ; e v e n M S D O S w e n tt h r o u g h s o m e p r e t t y p o o r r e l e a s e s b e f o r e t h e y g o i r i g h t . T h p e o p l e a A T A R I s e e m v e r y a n x i o u s t s o r t t h e s e t h i n g s o u t ( i i s a f t e r a l l , p r o b a b l y l i f e o d e a t h f o t h e m ) a n g e f u l l m a r k s f r o mu f o c o - o p e r a t i o n . M a n y o t h b u g s t h a t w r e p o r t e d l a s ts u m m e r a n f a l l w e r e f i x e d i t h t w o t h r e e u p d a t e s w h a v es i n c e r e c e i v e d . W w e r e e v e n a b l e t v i s i t A T A R I a n d t a l k t t h d e v e l o p e r s a b o u t s o m e o t h p r o b l e m s . R e g r e t t a b l y h o w e v e r ,s o m e r a t h e r n a s t y b u g s h a v e s t u c k a r o u n d l o n g e n o u g h t g e i n t o t h f i r s t s e o T O R O M s , a n t h e r e b y a r a s s u r e d p l a c ei h i s t o r y .

O n s u c h b u a l l o w s t h e c r e a t i o n o f i l e w h e n a n o t h e r f i l e o t h s a m e n a m e i a l r e a d y o p e n , r e s u l t i n g i t w f i l e s w i t h t h s a m e n a m e . A n o t h e r p r e v e n t s t h u s o d i s k s w i t h c l u s t e rs i z e ( t h e n u m b e r o s e c t o r s m a k i n g u a d i s k a l l o c a t i o n u n i t )g r e a t e r t h a n t w o . T h i s t u r n s o u t b n a s t y p r o b l e m w i t hn e t w o r k s o S T ' s a n P C ' s , w h e r e s u c h d i s k s m a a l r e a d y e x i s t .

* ( d e c . )

1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4

T A B L EF U N C T I O NT e r m i n a t e c u r r e n t p r o c e s sR e a d s t a n d a r d i n p u t w i t h e c h oD i s p l a y c h a r a c t e r t s t a n d a r d o u t p u tR e a d c h a r a c t e r f r o m s e r i a l p o r tW r i t e c h a r a c t e r t s e r i a l p o r tW r i t e c h a r a c t e r t t h p r i n t e rD i r e c t c o n s o l e I / - r e a d A N w r i t eR e a d s t a n d a r d i n p u t w i t h o u t e c h oS a m e a 7 b u c h e c k f o c o n t r o l c h a r a c t e r sP r i n t s t r i n g t s t a n d a r d o u t p u tR e a d l i n e f r o m s t a n d a r d i n p u tC h e c k s t a n d a r d i n p u t f o c h a r a c t e r r e a d yN o i m p l e m e n t e dN o i m p l e m e n t e dS e l e c t d e f a u l t d i s k d r i v eN o i m p l e m e n t e dC h e c k s t a n d a r d o u t p u t r e a d yC h e c k p r i n t e r r e a d yC h e c k s e r i a l p o r t c h a r a c t e r r e a d yC h e c k s e r i a l p o r t c h a r a c t e r r e a d yC h e c k s e r i a l p o r t o u t p u t r e a d yN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dG e t c u r r e n t d r i v e n u m b e rS e d i s k t r a n s f e r a d d r e s sN o i m p l e m e n t e dN o i m p l e m e n t e dt h r u 3 N o i m p l e m e n t e dT o g g l e f r o m u s e r t s u p e r v i s o r m o d eN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dG e c u r r e n t d a t eS e c u r r e n t d a t eG e t i m eS e t i m eN o i m p l e m e n t e dG e d i s k t r a n s f e r a d d r e s sG e v e r s i o n n u m b e r

C O M M E N T S

d i f f e r e n t t e r m i n a t i n g c h a r a c t e r

M S D O S : C l e a r i n p u t b u f f e r a n d i n p u tM S D O S : F l u s h d i s k b u f f e r sT O S : r e t u r n s m o r e i n f o r m a t i o nM S D O S : o l f i l e o p e nM S D O S : o l f i l e c l o s eM S D O S : o l f i n d f i l eM S D O S : o l f i n d n e x tM S D O S : o l f i n d n e x tM S D O S : o l f i l e d e l e t eM S D O S : o l s e q u e n t i a l r e a dM S D O S : o l s e q u e n t i a l w r i t eM S D O S : o l f i l e c r e a t eM S D O S : o l f i l e r e n a m eM S D O S : n e i t h e rT O S : h a 1 m a x i m u mu s e d b y f u n c t i o n 7 M S D O S : g e t d e f a u l t d i s k I M S D O S : g e s p e c i f i c d i s k I M S D O S : n e i t h e rM S D O S : N o i m p l e m e n t e dM S D O S : o l r a n d o m r e a dM S D O S : o l d w r i t eM S D O S : o l g e f i l e s i z eM S D O S : o l F C o p e r a t i o nM S D O S : s e i n t e r r u p t v e c t o rM S D O S : o l a n s l e a z y p r o g r a m e x e cM S D O S : o l m u l t i p l e r e c o r d r e a dM S D O S : o l m u l t i p l e r e c o r d w r i t eM S D O S : o l a n s l e a z y f i l e n a m e p a r s e rf o r m a t o d a t e i d i f f e r e n tf o r m a t o d a t e i d i f f e r e n tf o r m a t d i f f e r e n t ; T O S : p o o r e r r e s o l u t i o nf o r m a t d i f f e r e n tM S D O S : s e v e r i f y s w i t c h

T h m o s t s e r i o u s k n o w n b u i m p o s e s l i m i t o t h n u m b e r o s u b - d i r e c t o r i e s w h i c h m a b t o u c h e d o a l d e v i c e s f r o m o n S b o o t t t h n e x t . B " t o u c h e d " m e a n e v e n p a s s e d o v e rd u r i n g d i r e c t o r y l i s t i n g s . T h l i m i t o t h 5 2 0 S T i 4 s u d i r e c t o r i e s ; t h 1 0 4 0 l i m i t i a b o u t 1 5 h i g h e r . O n c e t h i s l i m i th a b e e n r e a c h e d , T O S , h a v i n g e x h a u s t e d v a l u a b l e r e s o u r c e ,i u n a b l e t r e c o v e r , a n d i e s a s l o w d e a t h g i v i n g O u o m e m o r y e r r o r s .

T h h y p o t h e s i z e d o r i g i n o f t h i s b u i r a t h e r i n t e r e s t i n g , a n a c t u a l l y d e m o n s t r a t e s f o u r i n d i v i d u a l p r o b l e m s . A m e t i o n e d e a r l i e r , i a p p e a r s t h a t t h T O i m p l e m e n t o r s w e r e n o M S D O S w i z a r d s . T h i s s h o w s i t s e l f i t h w o r k i n g s o t h " f i n df i r s t f i l e " c a l l , f u n c t i o n 7 8 T h i s c a l l i o f t e n f o l l o w e d b m u l t i p l ec a l l s t f u n c t i o n 7 9 , " f i n d n e x t f i l e " . T a l l o w t r e e s e a r c h i n g , t h ec a l l s m u s t b r e c u r s i v e ; t h a t i s w h i l e d o i n g o n s e t o f " f i n df i l e s " o n m a f i n d d i r e c t o r y a n b r a n c h d o w n i n t o a n o t h e rs u b - t r e e , d m o r e a n d i f f e r e n t " f i n d f i l e s " , a n t h e n w i s h t c o n t i n u e t h o r i g i n a l s e t . H e n c e t h " f i n d f i l e " c a l l s m u s tr e m e m b e r t h e n v i r o n m e n t t h e y w e r e w o r k i n g w i t h a e a c h

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 31/88

( d e c . )4 5 5 5 5 5 5 5 5 5 5 6 5 5 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8

T A B L EF U N C T I O NT e r m i n a t e p r o c e s s a n s t a y r e s i d e n tN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dG e d i s k i n f o r m a t i o n / f r e e s p a c eN o i m p l e m e n t e dN o i m p l e m e n t e dM a k e d i r e c t o r yR e m o v e a d i r e c t o r yC h a n g e c u r r e n t d i r e c t o r yC r e a t e n e f i l eR e m o v e a d i r e c t o r yC h a n g e c u r r e n t d i r e c t o r yC r e a t e n e f i l eO p e n f i l eC l o s e f i l eR e a d f r o m f i l eW r i t e t f i l eD e l e t e f i l eS e e k w i t h i n f i l eC h a n g e f i l e a t t r i b u t e s ( r e a d o n l y e t c . )N o i m p l e m e n t e dD u p l i c a t e f i l e h a n d l eF o r c e d u p l i c a t e o f i l e h a n d l eG e t c u r r e n t d i r e c t o r yA l l o c a t e m e m o r yF r e e a l l o c a t e d m e m o r yS h r i n k m e m o r y b l o c kE x e c a n o t h e r p r o c e s sT e r m i n a t e p r o c e s s a n r e s t a r t p a r e n tN o i m p l e m e n t e dF i n d f i r s t m a t c h i n g f i l eF i n d n e x t m a t c h i n g f i l eN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dN o i m p l e m e n t e dR e n a m e f i l eC h a n g e f i l e ' s d a t e a n t i m e

( c o n t ' d )C O M M E N T S

M S D O S : n e i t h e rM S D O S : c o n t r o l - b r e a k c h e c kM S D O S u n d o c u m e n t e d : g e b u s y f l a gM S D O S : g e i n t e r r u p t v e c t o r

M S D O S u n d o c u m e n t e d : g e t / s e t s w i t c h c h a r a c t e rM S D O S : g e c o u n t r y d e p e n d e n t i n f o r m a t i o n

S b u g : f i l e i a l w a y s o p e n e d f o w r i t i n g

M S D O S : I / c o n t r o l f o d e v i c e s

T O S : w o r k s d i f f e r e n t l y a r o o tM S D O S : a l l o c a t e d i c h u n k s o 1 6 b y t e s

M S D O S : c a a l s o g r o w b l o c k

M S D O S : g e r e t u r n c o d e . T O S : p a r t o e x e c

M S D O S u n d o c u m e n t e d : s w i t c h p r o c e s s e sM S D O S u n d o c u m e n t e d : g e c u r r e n t p r o c e s s i M S D O S u n d o c u m e n t e d : g e D O t a b l e sM S D O S : n e i t h e rM S D O S : g e v e r i f y s t a t eM S D O S : n e i t h e r

T O S : b r o k e n

T A B L E

r e t u r n s I B s c a n c o d e s1 3 - 1 R e t u r n i n p u t s t a t u s o c h a r a c t e r d e v i c e1 3 - 2 R e t u r n c h a r a c t e r f r o m i n p u t d e v i c e1 3 - 3 O u t p u t c h a r a c t e r t a d e v i c e1 3 - 4 R e a d / w r i t e s e c t o r s o d e v i c e1 3 - 5 G e o s e i n t e r r u p t v e c t o r1 3 - 7 G e d i s k p a r a m e t e r s1 3 - 8 G e t c h a r a c t e r d e v i c e o u t p u t s t a t u s1 3 - 9 C h e c k f o d i s k m e d i a c h a n g e1 3 - 1 0 G e l i s t o e x i s t i n g d i s k s1 3 - 1 1 G e t / s e t s t a t u s o s h i f t , a l t , c o n t r o l k e y s1 4 - 0 I n i t i a l i z e m o u s e h a n d l e r1 4 - 2 G e t h e s c r e e n ' s p h y s i c a l b a s e a d d r e s s1 4 - 3 G e t h e s c r e e n ' s l o g i c a l b a s e a d d r e s s1 4 - 4 G e t h e s c r e e n r e s o l u t i o n1 4 - 5 S e t t h e p r e c e d i n g p a r a m e t e r s1 4 - 6 S e t h c o l o u r p a l e t t e r e g i s t e r s1 4 - 7 C h a n g e o n e c o l o u r i p a l e t t e1 4 - 8 R e a d r a f l o p p y d e v i c e1 4 - 9 W r i t e r a f l o p p y d e v i c e1 4 - 1 0 F o r m a t a t r a c k o a f l o p p y1 4 - 1 2 W r i t e s t r i n g t o t h M I D I p o r t1 4 - 1 5 C o n f i g u r e R S 2 3 2 p o r t1 4 - 1 6 G e k e y b o a r d t r a n s l a t i o n t a b l e s1 4 - 1 7 G e r a n d o m n u m b e r1 4 - 2 0 D u m p s c r e e n t p r i n t e r1 4 - 2 8 R e a d o w r i t e r e g i s t e r s o t h s o u n d c h i p1 4 - 3 2 S u b m i t p r o g r a m t t h s o u n d g e n e r a t o r1 4 - 3 3 G e o s e p r i n t e r c o n f i g u r a t i o n1 4 - 3 8 E x e c u t e s o m e c o d e i s u p e r v i s o r m o d e1 4 - 3 9 T h r o w a w a y t h w i n d o w s t u f f f r e e s u 1 9 0 k i T O i R A

" f i n d f i r s t " . M S D O S b u r i e s t h i s i n f o rm a t i o n i u s e r - s u p p l i e d b u f f e r , p u t i n g t h o n u s o t h c a l l e r a n a l l o w i n g a n u m b e r o s e a r c h e s l i m i t e do n l y b t h n u m b e r o b u f f e r s a u s e rc a a f f o r d . W h e n t h p r o c e s s m a k i n gt h e s e c a l l s t e r m i n a t e s , t h b u f f e r s ( b i n p a r t o t h p r o c e s s ) a r e f r e e d a u t om a t i c a l l y . T O u n f o r t u n a t e l y k e e p st h i s n e c e s s a r y i n f o r m a t i o n i i n t e r n a lb u f f e r s , w h i c h i t a k e s f r o m ( f i n i t es i z e d ) s m a l l p o o l i k e e p s f o s u c h p u rp o s e s . T h i s i t h f i r s t p r o b l e m . W h e nt h p o o l i u s e d u p t h s e c o n d b u s t e p s i a n k i l l s T O w i t h t h m i s l e a di n o u o m e m o r y c o n d i t i o n . E v e n t h i sm i g h t b i n f r e q u e n t e n o u g h t b o l i t t l e c o n c e r n w e r e i n o f o b u g s t h r e ea n f o u r . I n e x p l i c a b l y , T O d e c i d e s t a l l o c a t e o n o t h e s e b u f f e r s e v e r y t i m ei t o u c h e s s u b - d i r e c t o r y , e v e n i f i td o e s n ' t o p e n i t F u r t h e r , t h b u f f e r s a r n o g i v e n b a c k t t h p o o l a f t e r p r o ce s s t e r m i n a t e s . C o n s e q u e n t l y , T O b l o w s u m u c h m o r e o f t e n t h a n i s h o u l d .

N o a d m i t t e d l y , 4 s u b - d i r e c t o r i e s i f a i r l o t e s p e c i a l l y f o f l o p p y d i s k s y st e m . H o w e v e r , f o h a r d d i s k s y s t e mo a m u l t i p l e h a r d d i s k n e t w o r k t h i sl i m i t i k i l l e r . O n p a s s o v e r o u o f f i c e ' s n e t w o r k m a i l s y s t e m , a n T O b l o w s u p R e a l g o o d .

T h F i n i s h

h o p e t h i s h a s e r v e d a u s e f u l " i n s i d e " i n t r o d u c t i o n t t h S T I y o c r a v e a d d i t i o n a l d a t a , t h e r e ' s l o t s m o r e w h e r e t h i sc a m e f r o m . D e s p i t e s o m e n e g a t i v e r e m a r k s t h a t m a h a v ea p p e a r e d , w a r a l e x t r e m e l y p o s i t i v e a b o u t t h S T M a n y o o u c o m p l a i n t s h a v e a l r e a d y b e e n a d d r e s s e d b t h 1 0 4 0 , a n t h o s e r e m a i n i n g a r m o r e t h a n o f f s e t b t h t r e m e n d o u s l yg o o d p r i c e o f t h i s p o w e r f u l a n f l e x i b l e b o x . B e s i d e s , f o r ew a r n e d i f o r e a r m e d . T h S i t h l o g i c a l n e x t c h o i c e f o t h o s el o o k i n g f o m o r e c a p a b i l i t i e s t h a n t h e i r 8 - b i t h o m e c o m p u t e rp r o v i d e s , w i t h o u t h a v i n g t l e a r n t f l a 7 4 7 . F r o m o u p e r s p e c t i v e i i a l s o v i a b l e c h o i c e f o p r o f e s s i o n a l b u s i n e s sa n p r o g r a m m i n g p e o p l e . t h i n k y o u ' l l b s e e i n g l o o A T A R If r o m h e r e o i n

J a c k C o l e i R e s e a r c h a n D e v e l o p m e n t P r o j e c t L e a d e r a B M C o m p u S c i e n c e i M i l t o n , O n t a r i o .

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 32/88

C o m m o d o r e 1 2 D i s k B o o t B a s i c 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

Y o p r o b a b l y k n o w t h a t t h C o m m o d o r e 1 2 h a a n A u t o b o o tf e a t u r e . I y o h a v e d i s k i y o u r d r i v e a t h t i m e y o t u r n o t h p o w e r , y o m a g e m e s s a g e s u c h a B O O T I N G . f o l l o w i n g w h i c h

p r o g r a m m a s t a r t a u t o m a t i c a l l y .

I ' l i k e t o t a l k a b o u t h o t h B O O T m e c h a n i s m w o r k s ; t h e r e a r e as u r p r i s i n g n u m b e r o c o m b i n a t i o n s b u i l t i n t o t h s y s t e m . M o s t u s e r sh a v e B o o t m a k i n g p r o g r a m w h i c h w i l l g e n e r a t e s i m p l e a u t o b o o t .

M e t h o d s

A l o t h e f o l l o w i n g e v e n t s h a p p e n a f t e r t h c o m p u t e r h a b e e nc o m p l e t e l y i n i t i a l i z e d . B a s i c i i p l a c e a n e v e r y t h i n g i r u n n i n gn o r m a l l y ; b u t j u s t b e f o r e s a y i n g R E A D Y " , B a s i c c h e c k s f o a B o o t .

1 J u s t a f t e r B a s i c s t a r t s u o w h e n t h c o m m a n d B O O T i g i v e n , t h c o m p u t e r r e a d s t h e c o n t e n t s o t r a c k 1 s e c t o r f r o m t h e d i s k i n t oa d d r e s s e s 0 B 0 0 t O B F F . E v e n i t h e d i s k d o e s n ' t c o n t a i n a b o o t "p a t t e r n , t h i n f o r m a t i o n w i l l b t h e r e i t h e r e ' s a d i s k i t h d r i v e . Y o c o u l d s e u y o u r o w c o d i n g t h e r e .

2 I t h f i r s t t h r e e c h a r a c t e r s o t h s e c t o r a r e t h e A S C I I c h a r a c t e r sC B M " , t h i s i B o o t d i s k . T h p r o g r a m w i l l p r i n t B O O T I N G a n w w i l l f o l l o w t h e s t e p s l i s t e d b e l o w . O t h e r w i s e , t h s y s t e m r e t u r n s t B a s i c w h i c h n o s a y s R E A D Y .

3 T h n e x t f o u r l o c a t i o n s a r c h e c k e d ; i t h e y a r n o n - z e r o , t h p r o g r a m w i l l r e a d i b o o t s e c t o r s " f r o m t r a c k ( a n d s u b s e q u e n tt r a c k s i n e c e s s a r y ) . T h f i r s t t w l o c a t i o n s c o n t a i n t h a d d r e s s w h e r et h e l o a d s h o u l d s t a r t . T h t h i r d l o c a t i o n s p e c i f i e s t h b a n k n u m b e r f o t h l o a d , a n t h f o u r t h t e l l s h o w m a n y b l o c k s a r t b l o a d e d . ( h a v e n o s e e n t h i s f e a t u r e u s e d o b o o t d i s k ) .

4 S t a r t i n g a b y t e 7 ( t h e e i g h t h b y t e ) t h e r e m a b e A S C I I t e x t f o l l o w e db z e r o b y t e , o r t h e r e m a b j u s t z e r o b y t e . T h s y s t e m p r i n t sa n y t h i n g i f i n d s b e f o r e t h e z e r o b y t e ; t h t e x t , i a n y , w i l l a p p e a rb e h i n d t h w o r d B O O T I N G o t h e s c r e e n . T h m e s s a g e B O O T I N G

i n o c o m p l e t e d w i t h t h r e e d o t s . W h a t e v e r i p r i n t e d n e e d h a v en o t h i n g t d w i t h a n f i l e n a m e .

5 . S t a r t i n g b e h i n d t h l a s t z e r o ( w h i c h t e r m i n a t e d t h B O O T I N Gm e s s a g e ) , t h e r e m a b A S C I I t e x t f o l l o w e d b z e r o b y t e , o r t h e r em a b j u s t z e r o b y t e . I t h e r e i a n t e x t t h e r e , i t ' s t a k e n t b f i l en a m e . T h n a m e i p r e f i x e d w i t h 0 : ( f o r d r i v e 0 ) a n t h e n t h c o m p u t e r p e r f o r m s B L O A D o f t h a t f i l e f r o m d i s k . ( T h i s f e a t u r e i n o u s e d w i t h a d i s k s e u w i t h t h A U T O B O O T M A K E R p r o g r a m , e v e nt h o u g h s u c h d i s k l o a d s a n r u n s a B a s i c p r o g r a m n a m e d b t h u s e r ) .

6 B e h i n d t h i s s e c o n d n a m e ( i a n y ) t h e r e m u s t b m a c h i n e l a n g u a g e .I m a b n o t h i n g m o r e t h a n h e x a d e c i m a l 6 0 t h R T c o m m a n d t r e t u r n t B a s i c .

C o u n t t h W a y s

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

1 W i t h o u t t h C B p a t t e r n , w e ' l l s t i l l l o a d t r a c k 1 s e c t o r 0 i w a r s u r e t h a t t h c o d e i t h e r e , w m a u s i e v e n t h o u g h n o B O O Tm e s s a g e i s e e n .

2 T h e r e m a b m a c h i n e l a n g u a g e p r o g r a m e n t i r e l y w i t h i n t h b l o c k a t r a c k 1 s e c t o r 0 a n w w a n t i t r u i m m e d i a t e l y . W m i g h tf o l l o w t h e C B p a t t e r n w i t h s i z e r o b y t e s ( f o u r f o n b o o t b l o c k s ,o n f o n m e s s a g e , o n f o n l o a d ) w i t h t h c o d e i t s e l f , w h i c h w o u l ds t a r t r u n n i n g i n s t a n t l y .

3 T h e r e m a b m a c h i n e l a n g u a g e p r o g r a m e n t i r e l y w i t h i n t h b l o c k , b u w d o n ' t w a n t i t r u u n t i l c a l l e d . W c o u l d u s a p a t t e r ns i m i l a r t t h a t d e s c r i b e d a b o v e , e x c e p t t h a t w w o u l d p r e f i x R T c o m m a n d ( h e x 6 0 a t h s t a r t o o u c o d e . T h a t w a y , t h s y s t e mw o u l d r e t u r n t B a s i c a b o o t t i m e , a n w c o u l d c a l l t h p r o g r a m w i t h

S Y w h e n w n e e d e d i t

I w o u l d b b e t t e r t g i v e t h e u s e r s o m e h e l p r a t h e r t h a n h a v e h i o h e t r y i n g t r e m e m b e r w h a t S Y a d d r e s s t u s e . W c o u l d p u t t h S Y c o m m a n d o n t o a f u n c t i o n k e s e t h D O S H E L L d e t a i l g i v e nb e l o w ( b u t a v o i d u s i n g B A N K 1 2 ) . O t m a k e i m o r e s i m p l e , w c o u l d g i v e t h e S Y a d d r e s s a p a r t o t h B O O T n a m e . H e r e ' s h o i w o u l d g o s u p p o s e o u m a c h i n e l a n g u a g e c o d e s t a r t s a a d d r e s s $ 4 w i t h i n t h e b l o c k . W e ' d w r i t e t h e b l o c k a f o l l o w s :

S t a r t w i t h A S C I I C B ( h e x 4 3 4 2 4 D ) . F o l l o w t h a t w i t h f o u r z e r o s ( n b o o t b l o c k s ) . F o l l o w t h a t w i t h t h A S C I I m e s s a g e S Y S 2 8 8 0 " 2 8 8 0i t h d e c i m a l e q u i v a l e n t o h e $ B 4 0 f o l l o w e d b z e r o ; t h a t w o u l db 5 5 5 2 3 3 8 3 8 3 0 0 0 N o a n o t h e r z e r o t s i g n a l t h a t n p r o g r a m s h o u l d b l o a d e d . N o t h i m m e d i a t e " m a c h i n e l a n g u a g ep r o g r a m ; j u s t t h R T ( h e x 6 0 ) . W h e n t h i s d i s k b o o t s , y o w i l l s e t h c o m m a n d B O O T I N G S Y S 2 8 8 0 . w h i c h w i l l t e l l t h e u s e r w h a t t d o

4 Y o c o u l d h a v e m a s s i 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 r r a n g e d o t r a c k ( s e c t o r s 1 , 2 , 3 , a n s o n ) . I c o u l d e v e n b b i e n o u g h t n e e ds p a c e o t r a c k s 2 o r 3 T h f o u r b y t e s r i g h t b e h i n d t h C B w i l l t e l l t h s y s t e m t d t h i s l o a d .

5 I a d d i t i o n t a l t h a b o v e : Y o c o u l d h a v e t h c o m p u t e r d oB L O A D o a n p r o g r a m i t h d i s k ' s d i r e c t o r y . J u s t p u t t h e n a m e o t h p r o g r a m f i l e b e f o r e t h l a s t z e r o . T h i s w i l l n o c a u s e t h p r o g r a mt r u n , b u y o u c a n a r r a n g e t d t h a t w i t h t h e m a c h i n e l a n g u a g e c o d et h a t f o l l o w s .

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

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 33/88

S o m e E x a m p l e s

h a v e a n a l y z e d t h e c o n t e n t s o t h r e e C 1 2 8 b o o t d i s k s ; w h a t t h e yc o n t a i n m a b i n t e r e s t i n g f o s t u d y ( a n d p l a g i a r i s m ) p u r p o s e s .

F i r s t , t h e r e ' s d i s k g e n e r a t e d b u s o t h A U T O B O O T M A K E Rp r o g r a m . N o t e t h a t t h p r o g r a m d o e s n o u s e b o o t b l o c k s , a n ( s u r p r i s i n g l y ) d o e s n ' t u s t h e l o a d - a - f i l e f e a t u r e . I d o e s t h w h o l e j o i t h m a c h i n e l a n g u a g e s e c t i o n , s e t t i n g u t h e B a s i c c o m m a n d , R U

F I L E N A M E a n t h e n a s k i n g B a s i c t e x e c u t e t h i s c o m m a n d .S e c o n d l y , t h e r e ' s t h C P / M b o o t d i s k . A g a i n , n b o o t b l o c k s , n p r o g r a m l o a d ; e v e r y t h i n g i d o n e i m a c h i n e l a n g u a g e . T h p r o g r a mc o n s i s t s o s o m e s i m p l e c o s m e t i c s e t u p s a n t h e n j u m p t R A a a d d r e s s F F D O . T h c o d e t h e r e w i l l m a k e t h s w i t c h t C P / M . B t h w a y , t h c o d e a F F D O i R A d i n o c o m e f r o m t h K e r n a lt e c h n i c a l t y p e s m i g h t l i k e t o p u z z l e o u e x a c t l y w h e r e i d i c o m ef r o m .

T h i r d l y , t h D O S H E L L . N b o o t b l o c k s . P r o g r a m D O S S H E L L i l o a d e d ; t h e B O O T I N G m e s s a g e p r i n t s n a m e w h i c h i s l i g h t l yd i f f e r e n t f r o m t h f i l e n a m e . T h m a c h i n e l a n g u a g e p a r t m o v e s B a s i cs t h a t i s t a r t s a $ 5 A 0 1 ( u g h ! ) ; f u n c t i o n k e F i r e d e f i n e d , a n a i n f o r m a t i o n m e s s a g e i p r i n t e d .

B A N K 1 2 u s e d b y t h D O S H E L L p r o g r a m , i n o g o o d b a n kc o n f i g u r a t i o n f o y o t u s e . I m a k e s R A a v a i l a b l e f o a d d r e s s e su t $ 7 F F F r a t h e r t h a n i t n o r m a l l i m i t o $ 3 F F F . Y o u ' d b b e t t e r o f u s i n g B A N K 1 5 a l l o w i n g t h m a c h i n e l a n g u a g e p r o g r a m i t s e l f t s e u m o r e m e m o r y s p a c e i n e e d e d ( t h e p r o g r a m w o u l d p r o b a b l y d t h i s w i t h L D * $ 0 E . S T $ F F 0 0 ) .

T h c o n t e n t s o t r a c k 1 s e c t o r i a n n o t a t e d i t h e t h r e e e x a m p l e s .W i t h l i t t l e s t u d y , y o t o w i l l b a b l e t c u s t o m i z e y o u r o w b o o td i s k s .

Y o c a u s a " d i s k d o c t o r " t y p e o p r o g r a m t w r i t e t h a t t r a c k a n s e c t o r , o y o c a w r i t e y o u r o w w i t h U t y p e o d i s k c o m m a n d .E i t h e r w a . h a v e f u n .

D i s k C r e a t e d w i t h A U T O B O O T M A K E R

T h d i s k w a c r e a t e d t l o a d a n r u p r o g r a m e d c a l l e d V A N C O UV E R .

B y t e s 0 t 0 2 " C B M "B y t e s 0 t 0 6 a l z e r o , n b o o t b l o c k s .B y t e s 0 t O F V A N C O U V E R " ; n a m e t b d i s p l a y e d i B O O T

m e s s a g eB y t e 1 b i n a r y z e r o ( e n d o d i s p l a y n a m e )B y t e 1 b i n a r y z e r o ( n l o a d n a m e )B y t e s 1 t o 1 8 : m a c h i n e l a n g u a g e c o d e :

A 1 L D # $ 1 8A 0 L D * $ 0 B4 A A F J M P $ A F A 5

. . w h i c h f o r c e s B a s i c t s t a r t i n g r u n n i n g c o d e s t a r t i n g a $ 0 B 1 9 ( a n dt h a t ' s t h c o d e f o l l o w i n g , o f c o u r s e ) .

B y t e s 1 t 2 5 t o k e n i z e d B a s i c l i n e , r e a d i n g :R U N " V A N C O U V E R

C P / M D i s kT h C P / M t r a c k 1 s e c t o r s t a r t s u t h i s w a y :

B y t e s 0 t 0 2 " C B M "B y t e s 0 t 0 6 0 0 0 0 0 0 0 0 n b o o t b l o c k sB y t e 0 0 0 n n a m e f o t h B O O T I N G m e s s a g eB y t e 0 0 0 n p r o g r a m n a m e t l o a dB y t e s 0 t 2 3 m a c h i n e l a n g u a g e c o d e :

7 2 A 8 A 8 A 8 A 8 4

D O S H E L L D i s k

8 3 0 C E 0 E 0 F D

F

F

F

F

F F

S E J S L D S T L D S T L D S T L D S T J M

$ F F 8 4* $ 3 E$ F F 0 0 ( s o r t o B a n k 0 # $ C 3$ F F E E* $ 0 8$ F F E F* $ 0 0$ F F F 0$ F F D 0

T h b o o t b l o c k s t a r t s u l i k e t h i s :

B y t e s 0 0 t o 0 2 : " C B M "B y t e s 0 t 0 6 0 0 0 0 0 0 0 n b o o t b l o c k sB y t e s 0 t o 1 5 : n a m e , C 1 2 8 D O S H E L L , f o l l o w e d b y B y t e s 1 t o I F : f i l e n a m e , D O S H E L L , f o l l o w e d b B y t e s 2 t 7 3 m a c h i n e l a n g u a g e c o d e :

( S e t u k e F l ) :A 8 A 8 A 8 A A A 2

7 2 0 2 O 2 2 0 1 2 C

L D S T L D S T L D S T L D L D L D J S

# $ 7 4$ 2 * $ 0 B$ 2 * $ 0 F$ 2 * $ 2 D# $ 0 1* $ 1 2$ C 0 2 1

( c a l l t F F 6 5 w o u l d b m o r e s t a n d a r d )( S e t s t a r t - o f - B a s i c t $ 5 A 0 0 ) :

( T h e t h r e e z e r o s ) :A A

( 0 B 3 9 ) 9 98 1

0 0 0 5

F ( B a s i c S t a r t a n

A 8 A 8 A 8 8

0 2 5 2 0 1 1 1 1

( S e t s c r e e n c u r s o r ) :1 A A 2

0 I F F

( P r i n t m e s s a g e ) :2 7 F

L D L D S T D E B P

# $ 0 3# $ 0 0$ 5 A 0 0 , Y

0 B 3 9E n p o i n t e r s ) :

L D S T L D S T L D S T S T

C L L D L D J S

J S

* $ 0 1$ 2 # $ 5 A$ 2 # $ 0 3$ 1 2 1 0$ 1 2 1 1

# $ 0 5# $ 1 D$ F F F 0

$ F F 7 D( 0 B 5 A ) m e s s a g e ( D O S S H E L L O N e t c . )( 0 B 7 3 ) 6 0

B y t e s 7 t 8 6 F u n c t i o n k e R T

d e f i n i t i o n :B A N K 1 2 : S Y S 6 6 5 6 C H R $ ( 1 3 )

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 34/88

N e L o o p s :T h C o m m o d o r e 1 2 B a s i c S t a c k

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

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

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

F r o m t h B a s i c e n d , t h s t a c k h o l d s t w i t e m s o i n t e r e s t :i n f o r m a t i o n o l i v e F O R / N E X T l o o p s , a n i n f o r m a t i o n o a c t i v e s u b r o u t i n e s . W h e n e v e r y o u r p r o g r a m c o m m a n d s F O R .. o G O S U B . . t h c o m p u t e r n o t e s t h e c o m m a n d l o c a t i o n a n t h e c u r r e n t l i n e n u m b e r . T h a t ' s s o i w i l l k n o w w h e r e t c o m eb a c k t w h e n i e n c o u n t e r s N E X T o R E T U R N a t h e c a s e m a b e a n s i c a r e i n s t a t e t h l i n e n u m b e r i c a s e a e r r o rn o t i c e i n e e d e d .

T h a t ' s a l t h a t i n o t e d f o G O S U B , s i n c e a l t h p r o g r a mn e e d s t k n o w i h o t R E T U R N . T h F O R c o m m a n d p u t sa w a y l o t s m o r e d a t a , h o w e v e r . I g i v e s t h v a r i a b l e i d e n t i t y , t h s t e p v a l u e , t h l o o p l i m i t , a n w h e t h e r t h e l o o p i c o u n t i n g u o d o w n ( s a y , w i t h S T E P - 1 ) . T h a t w a y , N E X T c a n m o d i f y t h l o o p v a r i a b l e b t h r i g h t a m o u n t a n t h e n t e s t t s e w h e t h e rt g a r o u n d t h e l o o p a g a i n .

A l l t h i s a d d s u t o s e v e n i t e m s o t h s t a c k t l o G O S U B ,a n e i g h t e e n i t e m s t r e c o r d F O R . T h e s e i t e m s a r r e c l a i m e dl a t e r a l e a s t t h e y s h o u l d b e R E T U R N w i p e s o u t t h e G O S U Be n t r y , a n N E X T w i l l k i l l t h F O e n t r y w h e n t h e l o o p h a b e e n e x e r c i s e d t h e p r o p e r n u m b e r o t i m e s .

O e a r l i e r C o m m o d o r e m a c h i n e s , t h i s s t u f f w e n t o n t o t h " h a r d w a r e " s t a c k . T h a t ' s t h a r e a f r o m 5 0 g o i n g d o w n t 3 2 ( h e x $ 0 1 F d o w n t $ 0 1 4 0 ) , o r a b o u t 1 8 l o c a t i o n s . T h a tm e a n s t h a t y o c a n e s t a b o u t t e F O R / N E X T l o o p s , o y o c a n g o a b o u t 2 s u b r o u t i n e s d e e p . T r t g f u r t h e r a n y o u ' l lg e a ? O U T O F M E M O R Y e r r o r , w h i c h i p u z z l i n g t b e g i n n e r ss i n c e t h e r e s e e m s t b l o t s o m e m o r y l e f t .

M o s t p r o g r a m m e r s g e 7 O U T O F M E M O R Y b e c a u s e o s l o p p ys u b r o u t i n e h a n d l i n g . W i t h i n a s u b r o u t i n e , t h e y f o r g e t t R T U R N a n i n s t e a d l e a p d i r e c t l y b a c k i n t o t h m a i n c o d e w i t hG O T O s t a t e m e n t . T h u s e d p a r t o t h s t a c k n e v e r g e t s r s t o r e d , a n e v e n t u a l l y t h e p r o g r a m r u n s o u o s p a c e . T h f a s t e s t d e m o n s t r a t i o n o f t h i s i t h o n e - l i n e p r o g r a m , 1 0 0G O S U B 1 0 0 , w h i c h w i l l b o m b f a s t e r t h a n y o c a s a E B C D I C .

T h C 1 2 8

T h 1 2 h a m u c h b i g g e r s t a c k - o v e r 5 0 b y t e s a n i t ' sr e s e r v e d p u r e l y f o B a s i c a c t i v i t y . T h i s s t a c k l o g s n o o n l y F O ( e i g h t e e n b y t e s p e i t e m ) a n G O S U B ( f i v e b y t e s p e r i t e m ) b u a l s o t h n e c o m m a n d L O O P ( f i v e b y t e s p e r i t e m ) . E v e nt h o u g h t h i s s t a c k i m u c h b i g g e r , y o c a s t i l l f i l l i t u q u i c k l yw i t h f o o l i s h p r o g r a m m i n g .

T h n e s t a c k i i m p l e m e n t e d i s o f t w a r e , n o h a r d w a r e . I t ' sl o c a t e d i b a n k i t h a r e a f r o m h e x a d e c i m a l 0 9 F E d o w n t 0 8 0 0 . T h e r e ' s a p o i n t e r s t o r e d a a d d r e s s 1 2 a n 1 2 ( h e x 7 a n 7 E w h i c h i n d i c a t e s t h l a s t l o c a t i o n i n u s e . T h s t a c k f i l l sf r o m t h t o d o w n ; i t h s t a c k i e m p t y , t h e p o i n t e r w i l l s a $ 0 9 F F , i i t ' s n e a r l y f u l l t h e p o i n t e r w i l l h a v e d r o p p e d t t h l o 8 0 0 ' s .

H e r e ' s a d e t a i l e d r u n d o w n o w h a t g o e s o t h B a s i c s t a c k f o e a c h t y p e o e n t r y :

F O h e $ 8 t i n d i c a t e F O e n t r y ;l o o p v a r i a b l e a d d r e s s ( t w o b y t e s ) ;i n c r e m e n t f l o a t i n g v a l u e ( f i v e b y t e s ) ;i n c r e m e n t s i g n , 0 o F ( o n e b y t e )v a r i a b l e l i m i t , f l o a t i n g ( f i v e b y t e s ) ;l i n e n u m b e r ( t w o b y t e s ) ;r e t u r n a d d r e s s ( t w o b y t e s ) .

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 35/88

G O S U B h e $ 8 t i n d i c a t e a G O S U B e n t r y ;l i n e n u m b e r ( t w o b y t e s ) ;r e t u r n a d d r e s s ( t w o b y t e s ) .

D h e $ E t i n d i c a t e D e n t r y ;l i n e n u m b e r ( t w o b y t e s ) ;r e t u r n a d d r e s s ( t w o b y t e s ) .

M e c h a n i c s

I t ' s u s e f u l t g e f e e l i n g f o t h w o r k i n g s o t h e s e . W h e nB a s i c p r o g r a m e x e c u t e s F O R , G O S U B , o D O t h e a p p r o p r i a t ee n t r y i p l a c e d o t h B a s i c s t a c k . E x t r a s : F O s e a r c h e s t s e i t h s t a c k c o n t a i n s p r e v i o u s F O e n t r y w i t h t h e s a m e v a r i a b l en a m e ; i s o i s t r i p s t h e s t a c k b a c k t t h a t p o i n t a n t h e n m a k e st h e n t r y . b u i c a o n l y l o o k t h r o u g h F O e n t r i e s . E x a mp l e : s e q u e n c e s u c h a F O R J . . G O S U B . . F O R ! w o u l d w o r kb a d l y ; t h n e F O R J w o u l d n ' t c a t c h t h e p r e v i o u s F O R J t h a th a d b e e n s t a r t e d o u t s i d e t h e s u b r o u t i n e .

D m a a l s o h a v e a n e x t r a : I W H I L E o U N T I L i p a r t o f t h i ss t a t e m e n t , B a s i c w i l l c h e c k a n i n e c e s s a r y s k i p a h e a d t t h a p p r o p r i a t e L O O P s t a t e m e n t . N o t e t h a t a l t h o u g h F O R / N E X Tm u s t b e x e c u t e d a l e a s t o n c e , D O / L O O P m a h a v e i t c o n t e n t s s k i p p e d e n t i r e l y s t r a i g h t h o f r o m t h D t t h L O O P w i t h e v e r y t h i n g i b e t w e e n i g n o r e d .

N o w c o m e t t h e o t h e r e n o t h e s e c o n s t r u c t s . A N E X T w i l lc a u s e a l e a r l i e r F O e n t r i e s t b e s e a r c h e d f o m a t c h i n gv a r i a b l e n a m e , a l t h o u g h t h c o m p u t e r w i l l n o s e a r c h a c r o s s aG O S U B o D e n t r y . W h e n t h r i g h t e n t r y i f o u n d , t h ev a r i a b l e i " s t e p p e d " a n t e s t e d f o w i t h i n r a n g e . I i t ' s i r a n g e ,B a s i c g o e s b a c k ; i n o t , t h s t a c k e n t r y i s c r a p p e d a n t h p r o g r a m p r o c e e d s .

R E T U R N w i l l c a u s e s c a n o t h e n t i r e s t a c k . . t h m o s tr e c e n t G O S U B e n t r y f o u n d w i l l b h o n o u r e d a n t h s t a c ks t r i p p e d b a c k t t h a t p o i n t . N o t e t h a t i F O l o o p s o D s t r u c t u r e s h a d b e e n o p e n e d w i t h i n t h s u b r o u t i n e , t h e y w i l l b s c r a p p e d u p o n R E T U R N .

L O O P a c t i o n d e p e n d s o w h e t h e r o r n o t t h e c o m m a n d i f o l l o w e d b W H I L E o U N T I L . A s s u m i n g t h L O O P s t a t e m e n ti f o u n d t b a c t i v e , i w i l l s c a n t h e n t i r e s t a c k . T h m o s tr e c e n t D e n t r y f o u n d w i l l b h o n o u r e d a n t h s t a c k s t r i p p e db a c k t t h a t p o i n t . N o t e t h a t i F O l o o p s o s u b r o u t i n e s h a b e e n o p e n e d w i t h i n t h e D s t r u c t u r e , t h e y w i l l b e s c r a p p e du p o n L O O P .

S a m p l e P r o g r a m

L e t ' s w r i t e a C 2 p r o g r a m t a l l o w n a m e s t b e n t e r e d , s o r t e da n l i s t e d . W e ' l l l o o k a t h s t a c k , c o m m e n t i n g o s o m e o t h w o r k i n g s . H e r e ' s t h e p r o g r a m :

- E N T E R N A M E S '2 - L I S T N A M E S "3 - Q U I T "

P R O G R A M : L O O P E R

1 0 0 D I M N $ ( 1 0 0 )1 1 0 D O1 2 P R I N T1 3 P R I N T1 4 P R I N T1 5 P R I N T1 6 P R I N T1 7 I N P U T Y O U R C H O I C E " ; 1 8 O G O S U B 2 0 0 , 3 0 0 , 4 0 01 9 G O T O 1 7 2 0 I N P U T " N A M E " ; X $2 1 0 J2 2 D W H I L E J > 2 3 J - 2 4 I X $ > N $ ( K ) T H E N E X I T2 5 N $ ( J ) N $ ( K )2 6 2 7 L O O P2 8 2 9 0 N $ ( J ) = X 3 0 0 F O R J 0 T O N - 13 1 P R I N T N $ ( J )3 2 N E X T3 3 R E T U R N4 0 E N 5 0 L O O P

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

Y o s h o u l d k n o w t h a t t h a r r a y N $ ( . . ) u s e s e l e m e n t z e r o a t h f i r s t i t e m . T h u s , i ( t h e n u m b e r o i t e m s ) e q u a l s t h e a r r a yg o e s f r o m N $ ( 0 ) t N $ ( 2 ) .

T h D . . L O O P t h a t e x t e n d s f r o m l i n e s 2 2 t 2 7 i d i f f e r e n t f r o m t h c o m p a r a b l e F O N E X T , a n u s e f u l l y s o H e r e ' s w h y . A w p u e a c h i t e m i n t o t h t a b l e , w c o m p a r e i w i t h t h e x i s t i n g i t e m s . B u t h f i r s t t i m e t h r o u g h , t h e r e ' sn o t h i n g i t h t a b l e t c o m p a r e w i t h . I c o d e d

F O R J = N - 1 T O S T E P - 1

. I ' d b s t u c k o t h f i r s t i t e m ( w h e r e e q u a l s 0 ) s i n c eF O R / N E X T i n s i s t s o e x e r c i s i n g i t c o n t e n t s a l e a s t o n c e . N s u c h p r o b l e m w i t h t h D O / L O O P , w h i c h s k i p s o v e r t h i n t e rv e n i n g c o d e w h e n t h f i r s t i t e m i e n c o u n t e r e d .

W e ' r e a b o u t t l o o k i n t o t h m e c h a n i c s l i t t l e . I y o d o n ' t l i k et i n k e r i n g w i t h t h e w o r k s , o i y o f e e l t h r e a t e n e d b h e x a d e c im a l n u m b e r s , y o u m i g h t p r e f e r t s k i p t h i s s e c t i o n .

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 36/88

W w a n t t a n a l y z e t h s t a c k , j u s t t s h o w t h a t i t ' s t h e r e a n c a b e v i e w e d w h e n e v e r y o l i k e . L e t ' s p u t a S T O P c o m m a n di n a t l i n e 3 0 5 :

3 0 S T O P

R U t h p r o g r a m o n c e a g a i n ; c a l l o p t i o n a n e n t e r a n n a m e . W h e n t h p r o g r a m s t o p s , c o m m a n d M O N I T O R .

N o w e ' l l e x a m i n e t h e B a s i c s t a c k p o i n t e r . C o m m a n d M 7 D 7 Ea n l o o k a t h l i n e t h a t r e s u l t s . T h f i r s t t w b y t e s s h o u l d b E 0 9 m e a n i n g t h a t t h e s t a c k p o i n t e r i d o w n t 0 9 E 3 . G o o dw e ' l l l o o k a t h s t a c k w i t h c o m m a n d M 9 E 3 9 F F .

L e t ' s r e v i e w w h a t w k n o w o t h p r o g r a m ' s " s t a t e " . T h f i r s tt h i n g t h a t h a p p e n e d i t h a t l i n e 1 1 e x e c u t e d D O W h e n w s e l e c t e d o p t i o n 1 l i n e 1 8 p e r f o r m e d G O S U B . L i n e 2 2 p e r f o r m e d a n o t h e r D O b u t h L O O P a l i n e 2 7 c a n c e l l e d i t T h n e x t t h i n g t h a t h a p p e n e d , j u s t b e f o r e t h e S T O P a 3 0 5 , w a t h a t F O l o o p w a o p e n e d b l i n e 3 0 0 .

S w h a v e F O e n t r y i n s i d e G O S U B e n t r y i n s i d e D e n t r y . L e t ' s s e i w c a f i n d t h e m o n t h s t a c k .

A d d r e s s 9 E c o n t a i n s a v a l u e o 8 t h a t ' s t h F O f l a g . Y o c a s e t h a t t h v a r i a b l e i a a d d r e s s 0 4 1 0 ( v a r i a b l e s a r e k e p ti B a n k 1 ) F l o a t i n g p o i n t n u m b e r s a r h a r d t r e a d , e v e n i y o k n o w t h s e c r e t , b u b e y o n d t h e m w c a s e 2 0 f o l i n en u m b e r 0 1 2 C t h a t ' s h e f o 3 0 0 .

E i g h t e e n l o c a t i o n s a l o n g , a 9 F 5 , w s e e t h e 8 f l a g s i g n a l l i n gG O S U B e n t r y . A g a i n , w c o u l d r e a d t h l i n e n u m b e r e n t r y a h e 0 0 B 4 o 1 8 0 . F i v e m o r e l o c a t i o n s a l o n g , a 9 F A , w s e E f o t h L O O P i t e m , w i t h l i n e n u m b e r 6 f o r l i n e 1 1 0 .

I t ' s a l t h e r e , a n d y o u c a l o o k a i a n t i m e y o g e f u d d l e do v e r l o o p s . N o r e t u r n t B a s i c w i t h c o m m a n d X a n t h e nd e l e t e l i n e 3 0 5 .

T h U n t a n g l e r

S o m e p r o g r a m m e r s h a v e k n a c k f o g e t t i n g t h e m s e l v e s t a g l e d u i c o d e . g e c a l l s t h a t s o u n d l i k e t h i s : " I ' m s e v e ns u b r o u t i n e s d e e p , a n n o I ' v e f o u n d s i t u a t i o n w h e r e w a n tt g i v e u a n r e t u r n t t h m e n u . H o d g e o u t ? "

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

I t h p a s t , I ' v e t a k e n p i t y o s o m e o t h e s e u n f o r t u n a t e s b d i g g i n g o u t a S Y o s u g g e s t i n g b r i e f m a c h i n e l a n g u a g er o u t i n e t o s e t t h i n g s t o r i g h t s . A l e a s t t h e s e p e o p l e h a v el e a r n e d ( s o m e t i m e s t h h a r d w a y ) t h a t y o c a n ' t j u s t g b a c k t

t h m e n u w i t h G O T O o y o u ' l l l e a v e a m e s s y s t a c k a n e v e n t u a l l y g e a O U T O F M E M O R Y m e s s a g e .

B u t w i t h t h 1 2 8 , t h e r e ' s a e a s i e r w a o u t . I y o u h a v e o n l yo n D O / L O O P a c t i v e , y o c a c l e a n o u t a l s u b r o u t i n e a n F O R / N E X T e n t r i e s j u s t b g o i n g t t h L O O P .

E x a m i n e t h s a m p l e p r o g r a m . N o t e t h a t D a p p e a r s v e r ye a r l y i t h e c o d i n g , a n t h a t t h c o r r e s p o n d i n g L O O P c a n e v e r b r e a c h e d . H e r e ' s t h e t r i c k : i w e v e r d g e t o t h a tL O O P a s s u m i n g n o t h e r D O ' s a r o p e n w e ' l l i m m e d i a t e l yb t r a n s p o r t e d b a c k t t h m e n u a n t h s t a c k w i l l b n e a t l yt r i m m e d . I t ' s l i t t l e l i k e t h m a g i c w o r d F R O B O Z Z t h a t t r a n sp o r t s y o b a c k t t h v a u l t .

H e r e ' s a s i m p l e e x a m p l e . S u p p o s e i t h a b o v e p r o g r a m , w e ' v ep i c k e d o p t i o n a n a r a s k e d t e n t e r n a m e . A t h i s p o i n t , w s a s o m e t h i n g l i k e , " G o s h . . d o n ' t r e a l l y w a n t t e n t e r an a m e a f t e r a l l " . I w o u l d b n i c e t a b o r t b a c k t t h m e n u .

S u p p o s e w s a y , " O K , i t h e u s e r t y p e s a a s t e r i s k c h a r a c t e ri n s t e a d o n a m e w e ' l l g b a c k t t h m e n u " . W m i g h t t r n e l i n e a 2 0 w h i c h s a y s s o m e t h i n g l i k e :

I F X $ = " * " G O T O 1 2

B u i w d s o w e ' l l e v e n t u a l l y h a v e p r o b l e m s , s i n c e w h a v en e v e r c l e a r e d a w a y t h s u b r o u t i n e c a l l f r o m l i n e 1 8 0 .

T h s o l u t i o n i s i m p l e . E n t e r l i n e 2 0 a s

2 0 5 I F X $ = " * G O T O 5 0 0

W h e n a a s t e r i s k i e n t e r e d , w e ' l l g t t h L O O P s t a t e m e n t a l i n e 5 0 0 . T h i s w i l l s e a r c h f o t h l a s t c o r r e s p o n d i n g D O f i n d i n gi a l i n e 1 1 0 . T h B a s i c s t a c k w i l l b t r i m m e d b a c k t t h a tp o i n t , i n t h i s c a s e r e m o v i n g t h s u b r o u t i n e e n t r y , a n t h p r o g r a m w i l l r e s u m e b p r i n t i n g t h m e n u .

I t ' s s i m p l e e x a m p l e , a n d o e s n ' t t r i m m u c h f r o m t h s t a c k .B u o n c e y o u u n d e r s t a n d t h p r i n c i p l e , y o c a u s i m o r eg e n e r a l l y .

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 37/88

E l i m i n a t i n g S A V E @A n O t h e r 1 5 4 1 B u g s

P h i l l i p A S l a y m a k e rP a l m B e a c h G a r d e n s , F

C o p y r i g h t 1 9 8 6 , P . A . S

A L o n g L a s t ! T h e C o d e T D I t

T h 1 5 4 1 D i s k O p e r a t i n g S y s t e m ( D O S ) h a n u m b e r o b u g s o i d i o s y n c r a s i e s , t h S a v e - w i t h - R e p l a c e c o m m a n d ( S A V E ® ) b u i p a r t i c u l a r , w h i c h h a v e p l a g u e d C o m m o d o r e u s e r s f o n u m b e r o y e a r s . T h i s a r t i c l e p r e s e n t s n u m b e r o p a t c h e s t t h 1 5 4 1 D O w h i c h f i t h S A V E ® b u a n f e o t h e r r e l a t e d b u g s u n d e r m o s tc o n d i t i o n s . T h e s e c h a n g e s h a v e b e e n p r o g r a m m e d i n t o E P R O M S a n t e s t e d s u c c e s s f u l l y i t w 1 5 4 1 d r i v e s .

T h S A V E ® b u h a b e e n c o n t i n u i n g s u b j e c t o c o n t r o v e r s y i n u m e r o u s i s s u e s o T h T r a n s a c t o r . T h a u t h o r r e c e n t l y p u b l i s h e dt w p a r t e x p l a n a t i o n o S A V E ® i C O M P U T E ! O c t o b e r a n N o v e mb e 1 9 8 5 , " S a v e W i t h R e p l a c e : D e b u g g e d A L a s t " i n c l u d i n g p r g r a m w h i c h u n e q u i v o c a l l y d e m o n s t r a t e d t h e b u g ' s e x i s t e n c e .r e v i e w o t h r e a s o n s f o t h b u w i l l b g i v e n f o f u l l r e v i e w t h r e a d e r s h o u l d r e f e r t t h a f o r e m e n t i o n e d a r t i c l e s .

A p a r t o f o u t e s t i n g o f 1 5 4 1 D O f o t h S A V E ® b u g , w h a v er e v i e w e d t h 1 5 4 1 s o u r c e c o d e . I i d o c u m e n t e d i t w g o o d s o u r c e s .

c o m p l e t e d i s a s s e m b l y o o n v e r s i o n o D O V 2 . 6 i p r e s e n t e d w i t hc o m m e n t s i " T h e A n a t o m y o t h e 1 5 4 1 " , b L E n g l i s c h , e a l 1 9 8 4f r o m A b a c u s S o f t w a r e . f u l l a n a l y s i s o t h D O V 2 . 6 r o u t i n e s ,s p e c i f i e d b n a m e a n a d d r e s s , i g i v e n i " I n s i d e C o m m o d o r e D O S " ,b R I m m e r s a n G N e u f e l d , 1 9 8 4 f r o m D a t a m o s t . W w i l l u s t h D O s u b r o u t i n e n a m e s a n a d d r e s s e s l i s t e d i n " I n s i d e C o m m o d o r eD O S " s i n c e m o s t p e o p l e w h w i l l r e a d t h i s w i l l h a v e c o p y o t h b o o k .

O u t e s t i n g w a s d o n e b c r e a t i n g m a s t e r d i s k w i t h t h r e e d i r e c t o r ys e c t o r s o f i l e s . A l t e s t s e q u e n c e s w e r e d o n e s t a r t i n g w i t h f r e s h c o p yo t h m a s t e r d i s k a n w i t h t h e d r i v e i c o m p l e t e l y r e s e t s t a t e . T h d i s k d r i v e m e m o r y a n t h e d i s k B A M , d i r e c t o r y , a n s e c t o r d a t a w e r ee x a m i n e d a f t e r e a c h S A V E ® c o m m a n d u s i n g o u P e e k B y t e 6 4 d i s ka n m e m o r y u t i l i t y ( a v a i l a b l e f r o m Q u a n t u m S o f t w a r e , P . O . B o 1 2 7 1 6 , L a k e P a r k , F 3 3 4 0 3 , 3 0 5 - 8 4 0 - 0 2 4 9 ) . I n t e r n a l p o i n t e r s w e r en o t e d b e f o r e a n a f t e r e a c h l o a d o r S A V E ® w i t h t h e d r i v e n u m b e rs p e c i f i e d o n l y i t h S A V E @ . T h e s e t e s t s w e r e r e p e a t e d w i t h t h e d r i v en u m b e r a l w a y s s p e c i f i e d . T e s t s w e r e a l s o p e r f o r m e d u s i n g n e E P R O M S w h i c h w e r e b u r n e d f o t h e 1 5 4 1 . T h i s w a s d o n e t t e s tp o s s i b l e p a t c h e s t t h D O a n t h e l p d i a g n o s e t h e d r i v e o p e r a t i o n .

S A V E ® B u E x p l a n a t i o n

D O V 2 . 6 h a 5 i n t e r n a l b u f f e r s , w i t h b u f f e r s t s t a r t i n g a m e m o r yp a g e s $ 3 0 0 , $ 4 0 0 , $ 5 0 0 , $ 6 0 0 , a n $ 7 0 0 , r e s p e c t i v e l y . D O a s s i g n sc h a n n e l s a n b u f f e r s t t h B A M , d i r e c t o r y s e c t o r , a n f i l e s e c t o r sb e i n g r e a d o w r i t t e n . N o r m a l l y D O a s s i g n s t w r e a d o t w w r i t ec h a n n e l s a n u s e s o n l y o t h e 5 b u f f e r s . T h S A V E ® c o m m a n d ,h o w e v e r , r e q u i r e s a l 5 b u f f e r s - t w o r e a d , t w w r i t e , a n t h B A M . I t h D O c a n ' t f i n d f r e e b u f f e r , t h e n t h D O t r i e s t o s t e a l a a s s i g n e d , b u t i n a c t i v e b u f f e r . I t h B A i s t o l e n , S A V E ® m a f a i l .

N o s p e c i f y i n g t h e d r i v e n u m b e r c a c a u s e b u f f e r t b s t o l e n . W h e nt h d i r e c t o r y i a c c e s s e d , A U T O I ( $ C 6 3 D ) r e a d s t h e B A o t h e d i s k i t h s p e c i f i e d d r i v e , a n a l s o t r i e s t i n i t i a l i z e d r i v e i n d r i v e w a s p e c i f i e d . U s u a l l y b u f f e r 3 ( $ 6 0 0 ) i a l l o c a t e d f o t h p h a n t o m d r i v e( n o t p r e s e n t i a 1 5 4 1 d r i v e ) B A a n B S E E K c o m m a n d i i s s u e dt t h e d i s k c o n t r o l l e r . A i n t e r n a l D R I V E N O R E A D Y e r r o r o c c u r s i t h e d i s k c o n t r o l l e r a n p u t s t h e e r r o r c o d e * $ 0 F i t h e j o b q u e u e a

$ 0 3 . T h i s e r r o r c o d e i t h e n t r a p p e d b A U T O I a n n o r e p o r t e do u t s i d e t h e d i s k d r i v e . T h i s l e a v e s b u f f e r 3 a l l o c a t e d b u t i n a c t i v e .

S i n c e t h S A V E ® c o m m a n d r e q u i r e s a l b u f f e r s a n o n l y a r n o a v a i l a b l e , D O s t e a l s a i n a c t i v e b u f f e r b c a l l i n g S T L B U F ( $ D 3 3 9 ) .S T L B U F c a n b e c a l l e d s e v e r a l t i m e s d u r i n g S A V E ® c o m m a n dc a u s i n g t h B A a n d i r e c t o r y s e c t o r s t b r e a s s i g n e d t d i f f e r e n tb u f f e r s d u r i n g s i n g l e S A V E ® . S T L B U F ( $ D 3 3 9 ) s h o u l d n o t s t e a l t h d r i v e B A M , b u s h o u l d i n s t e a d s t e a l b a c k t h u n u s e d b u f f e r i n c o rr e c t l y a s s i g n e d t d r i v e 1 I n e v e r s t e a l s t h e d r i v e B A b u f f e r * a $ 6 0 0 b e c a u s e S T L B U F c a n n o t t a k e b u f f e r i t h b u f f e r h a a d r i v ee r r o r o c c u r .

S A V E ® w o r k s m o s t o t h t i m e b e c a u s e a f t e r t h B A i s t o l e n , i i r e a d b a c k i w h e n n e e d e d a n u p d a t e d u s i n g t h B A i m a g e s .B A i m a g e f o e a c h o t w t r a c k s i s t o r e d a B A ( $ 2 A 1 - $ 2 B 0 ) .E a c h t i m e n e b l o c k i a l l o c a t e d b W U S E D ( $ E F 9 0 ) , i i i t h B A i m a g e . W h e n n e t r a c k i t e s t e d f o f r e e s e c t o r s , t h D O c h e c k s i i h a B A i m a g e f o i t I n o t , i c a l l s S W A P ( $ F 0 5 B ) w h i c hf i r s t u p d a t e s t h B A w i t h t h B A i m a g e f r o m t h s e c o n d t l a s tt r a c k , c o p i e s t h e n e t r a c k ' s B A m a i n t o t h B A i m a g e , a n t h e nz e r o s t h a t t r a c k i t h B A M . O n l y T W t r a c k s c a b u p d a t e d ,h o w e v e r , s i n c e t h e r e a r o n l y t w i m a g e s . I m o r e t h a n t w t r a c k sh a v e b e e n a c c e s s e d b S A V E ® , t h B A m a N O b c o r r e c t l yu p d a t e d . t r a c k m a e i t h e r b u p d a t e d c o r r e c t l y , b l e f t u n c h a n g e do m a b f u l l y a l l o c a t e d , d e p e n d i n g o w h e n t h B A w a s t o l e n .

P o s s i b l e D O R O M o d i f i c a t i o n s

W h a v e t r i e d s e v e r a l m o d i f i c a t i o n s t t h D O b p r o g r a m i n gE P R O M S . T h e s e i n c l u d e d :

1 S T L B U F ( $ D 3 3 9 ) s h o u l d b m o d i f i e d t a l l o w s t e a l i n g b u f f e r w i t hD R I V E N O R E A D Y e r r o r . I c o u l d a l s o b p r e v e n t e d f r o m

s t e a l i n g t h e d r i v e 0 B A b u f f e r , b u t h i s m a b r e q u i r e d a n s t h i ss e c o n d p a t c h w a n o d o n e .

2 d r i v e c o u l d b f o r c e d b m o d i f y i n g O N E D R V ( $ C 3 1 2 ) a n S E T D R V ( $ C 3 3 C ) t o s e t d r i v e r a t h e r t h a n s e t t i n g t h d e f a u l t d r i v e .A l t e r n a t e l y , t h D O c o u l d b p r e v e n t e d f r o m e v e r s w i t c h i n g t d r i v e 1 W t r i e d m o d i f y i n g T O G D R V ( $ C 3 8 F ) s o o n l y d r i v e i a l l o w e d a n t h i s p a t c h w o r k s . O t h e r r o u t i n e s m u s t b m o d i f i e d t k e e p f r o m s e a r c h i n g t h e d i r e c t o r y t w i c e . H o w e v e r , t h e s e D O

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 38/88

p a t c h e s c a n ' t b d o n e o n d u a l d r i v e a n s w e r e n o i m p l em e n t e d .

3 M o r e d r i v e m e m o r y a n b u f f e r s s h o u l d b e a d d e d . W a d d e d 8 o m e m o r y t o u d r i v e , b u t a h a r d w a r e c h a n g e i b e y o n d m o s ti n d i v i d u a l s .

R e c o m m e n d e d M o d i f i c a t i o n s

W m a d e n u m b e r o m o d i f i c a t i o n s w h i c h c o r r e c t n u m b e r o b u g si t h 1 5 4 1 V 2 . 6 D O r e l e a s e 5 ( T h e r e l e a s e n u m b e r o t h $ E 0 0 0R O i 9 0 1 2 2 9 - 0 5 . T h $ C 0 0 0 R O w a n e v e r c h a n g e d a n d i 3 2 5 3 0 2 - 0 1 ) . T h a d d r e s s e s s h o w n a s s u m e t h a t t h R O M s w e r e r e a di n t o t h c o m p u t e r m e m o r y f r o m $ 2 0 0 0 $ 5 F F F ( R O M a d d r e s s e s$ C 0 0 0 $ D F F F a n d $ E 0 0 0 $ F F F F ) i p r e p a r a t i o n f o b u r n i n g n e E P R O M s . A l o t h e x t e n s i v e p a t c h c o d e s t a r t s a S C 1 f o c o n v e n -

T h f i r s t p a t c h r e p l a c e s t h e i n c o r r e c t u s o z e r o p a g e i n d e x e da d d r e s s i n g w i t h a b s o l u t e a d d r e s s i n g f o t h N O D R V ( $ F F a n $ 1 0 0 )f l a g s w h i c h i n d i c a t e w h e t h e r a d r i v e i p r e s e n t . S i n c e $ F F , X a d d r e s si n " w r a p s a r o u n d " t $ 0 0 , t h e f l a g f o r n d r i v e w a s t o r e d i t h j o q u e u e a n d c a u s e d t h 7 4 D R I V E N O R E A D Y e r r o r ( w h i c h o c c u r r e da l t o o f t e n ) . I o n l y i n d i r e c t l y a f f e c t e d t h S A V E ® b u g .

B r i e f l y , i i c l a i m e d t h a t t h d r i v e l i s t e n s t t h N M ( n o n - m a s k a b l ei n t e r r u p t ) l i n e f r o m t h c o m p u t e r b e f o r e t h d r i v e i d o n e u p d a t i n gt h B A a n d i r e c t o r y . I n e c o m m a n d i s e n t b e f o r e S A V E ® i c o m p l e t e d , t h B A o r d i r e c t o r y m a n o b e u p d a t e d c o r r e c t l y s i n c et h n e c o m m a n d w i l l b e x e c u t e d . T h a r t i c l e i n c o r r e c t l y r e f e r s t A T s i g n a l a a N M l i n e - t h e A T s i g n a l c a n b e i n t e r r u p t d i s a b l e da n t h t e c h n i c a l d e t a i l s o r p r o o f o t h t h e o r y a r e n o t g i v e n . h a v en o t e s t e d h i s t h e o r y e i t h e r , h o w e v e r , t h A T b u p a t c h g i v e n b e l o ws h o u l d p r e v e n t t h e d r i v e f r o m p r e m a t u r e l y l i s t e n i n g t t h s e r i a l b u f r o m t h c o m p u t e r .2 0 3 b a O 1 2 0 3 e 4 5 e 2 0 4 1 a O 1 2 0 4 4 4 d e

I d $ 1 8 0 fj m $ e 8 5 bI d $ 1 8 0 fj m p $ e 8 d 7

c l e a r A T i n t e r r u p t f l a g

c l e a r A T i n t e r r u p t f l a g

T h f o l l o w i n g r o u t i n e p a t c h e s t h i n t e r r u p t h a n d l i n g r o u t i n e s t h a tu s e r s u p p l i e d r o u t i n e s t o r e d i t h e d r i v e R A w i l l i n t e r c e p t e v e r yi n t e r r u p t , w h e t h e r c a u s e d b y t h s e r i a l b u o b t h i n t e r n a l t i m e r . A w r i t t e n i r e q u i r e s t h a t e x t r a R A b i n s t a l l e d i t h e d r i v e a $ A 0 0 0$ B F F F . ( m e m o r y e x p a n s i o n k i a n i n s t r u c t i o n s a r e a v a i l a b l e f r o mC S S o f t w a r e , I n c . , P . O . B o 5 6 3 , C r o w n P o i n t , I 4 6 3 0 7 , 2 1 9 - 6 6 3 -4 3 3 5 ) . T h r o u t i n e c a n b e u s e d t i n v e s t i g a t e i n t e r r u p t d r i v e n d i s kr o u t i n e s i n c l u d i n g t h S A V E ® b u g .

2 0 1 02 0 1 22 0 1 52 0 1 62 0 1 72 0 1 a2 0 1 b2 0 2 0 2 0 2 12 0 2 3

a b 6 9 9 6 a f a 9 f

7 f 0

f 0

0 f 0 1 f

I d I d r t t y s t r t I d b e I d s t b e

$ 7 $ 0 O f f , x

$ O O f f , x

# $ 0 0$ 2 0 1 7# $ 0 0$ 1 c , x$ 2 0 1 7

D R V N U M n o r m a l l yg e N O D R V f l a g

s t o r e N O D R V f l a g

s e W P S W w r i t ep r o t e c t s t a t u s t o

2 0 4 72 0 4 a2 0 4 d2 0 5 02 0 5 22 0 5 52 0 5 72 0 5 a2 0 5 d2 0 5 e

a c a c d c d 2 a 6 6

f f 0 0 0 0 5 O

0

f f a

a

c 1

a

I d I d c m b n c p b n j s I d r t j m

$ f f f e$ f f f f$ a 0 0 0$ 2 0 5 a$ a 0 0 1$ 2 0 5 a$ c O 5 e$ 1 8 0 d

( $ a 0 0 2 )

# $ 6 7 p a t t e r n t m a t c h# $ f fm u s t b e # $ 6 7

m u s t b e # $ f fs k i p r o u t i n e i p a t t e r n w r o n gj u m p t s u b r o u t i n e

s p e c i f i e d i $ A 0 0 2 a n $ A 0 0 3

T h n e x t p a t c h c o r r e c t s a b u g w h i c h p u t t h e v a l u e * $ 0 2 a 1 9 i t h d r i v e m e m o r y . T h i s b u c a n c a u s e p r o b l e m s w i t h p r o g r a m s w h i c hd o w n l o a d r o u t i n e s i n t o t h e d i s k d r i v e ( e s p e c i a l l y f a s t l o a d i n g p r g r a m s ) . T h c a l l i n g r o u t i n e p r e v e n t s y f r o m e x c e e d i n g * $ 0 C v a l u eo * $ F E c a u s e s $ 1 9 7 t b a d d r e s s e d .

2 0 2 52 0 2 62 0 2 72 0 2 92 0 2 c

0 a a 9 6

0 9 9 0 0

a s t a I d s t r t

# $ 0 2$ 0 0 9 9 :

c a l l e d f r o m $ D C B E a n $ D C C Bt i m e s 2

S T L B U F ( $ D 3 3 9 ) m u s t b a l l o w e d t o s t e a l b u f f e r w i t h a * $ 0 F e r r o r( D R I V E N O R E A D Y ) t h e f o l l o w i n g p a t c h d o e s t h i s .

2 0 2 d c O 2 0 2 f d 0 2 0 3 1 4 c 7 3 d 2 0 3 4 a 6 2 0 3 6 e O 0 72 0 3 8 4 6 d

c m # $ 0 fb n $ 2 0 3 4j m $ d 3 7 3I d $ 6 c p # $ 0 7j m $ d 3 6 f

c o m p a r e e r r o r c o d e w i t h # $ 0 f

s t e a l i e q u a le l s e

c h e c k n e x t c h a n n e l

p o s s i b l e S A V E ® r e l a t e d b u i i t h s e r i a l b u c o m m u n i c a t i o nr o u t i n e s . O c c a s i o n a l l y t h A T ( a t t e n t i o n ) i n t e r r u p t f l a g b i o $ 1 8 0 DI N T E R R U P T F L A G R E G I S T E R i n o t c l e a r e d b t h T S T A T N r o u t i n e( $ E A 5 9 ) . A d d r e s s i n g $ 1 8 0 F ( o $ 1 8 0 1 ) c l e a r s t h f l a g b i t .

G e r r y N e u f e l d ' s t h e o r y o s e r i a l b u A T r e l a t e d S A V E ® b u i p r e s e n t e d i I N F O i s s u e * D e 8 - J a n 8 6 b y t h m a g a z i n e ' s e d i t o r s .

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

2 1 b 3 e n o 2 b 4 2 0 1 b c O j s $ c 0 1 b s t o r e # $ 0 0 i N O D R V

2 6 6 1 2 1 c j s $ c O 1 6 s t o r e . A i N O D R V2 6 6 4 d 0 3 b n e $ 2 6 6 92 6 6 6 2 4 d j s $ d O 4 22 6 6 9 a 7 I d $ 7 2 6 6 b 4 1 c j m p $ c O 1 2 l o a d . w i t h N O D R V

3 0 2 1 2 4 5 e 6 j s $ e 6 4 5 c a l l C M D E R 2 i n s t e a d

3 0 7 1 e 3 0 7 2 2 1 c

3 3 6 b 4 c 2 d c 3 3 6 e e

3 c b a c 9 0 73 c b c b 0 3 c b e 2 0 2 5 c O3 c c 1 b a 3 c c 3 0 9 8 03 c c 5 9 5 a 3 c c 7 c 9 0 73 c c 9 b O 0 3 c c b 2 2 5 c O

n o j s $ c O 1 f

j m p $ c O 2 dn o

c m # $ 0 7b c s $ 3 c c 1

$ c O 2 5$ a e , x# $ 8 0$ a e , x

c m # $ 0 7b c $ 3 c c ej s $ c O 2 5

j s I d o r s t

i n i t i a l i z e W P S W a n N O D R Vc h e c k f o # $ 0 F e r r o r c o d e

b s u r e . # $ 0 7

s t o r e # $ 0 2 i $ 0 0 9 9 , Y

b s u r e . # $ 0 7

s t o r e # $ 0 2 i $ 0 0 9 9 , Y

, : 4 5 b 7 d 4 5 3 2 0 4 4 4 5 3 2 0 p a d o - a u t h o r ' s I T h T r a n s a c t o r 3 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 39/88

4 a 6 8 4 3 c j m $ c O 3 b T S T A T N p a t c h e s4 a 6 b 4 4 c j m $ c O 4 1

4 a e 44 a e 54 a e 64 a e 84 a e 9

e e e O c Oe e

n o n o c p x # $ c On o n o

e l i m i n a t e R O c h e c k s u m r o u t i n e

4 c O 4 4 3 c j m $ c O 3 b T S T A T N p a t c h5 0 1 7 e n o 5 0 1 8 2 1 c j s $ c 0 1 0 g e N O D R V5 0 f 0 b e q $ 5 0 2 25 0 d a 9 7 4 I d # $ 7 45 0 2 0 4 5 e j s $ e 6 4 5 c a l l C M D E R 2 i n s t e a d

5 e 6 c 2 0 4 7 c O j s $ c O 4 7 i n t e r r u p t r o u t i n e p a t c h

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

2 0 1 02 0 1 a2 0 2 42 0 2 e2 0 3 82 0 4 22 0 4 c2 0 5 62 0 6 02 6 6 d3 c b a3 c c a4 a 6 d5 0 1 a

2 0 1 12 0 1 b2 0 2 52 0 2 f2 0 3 92 0 4 32 0 4 d2 0 5 72 b 3 0 2 23 c b b3 c c b4 a e 45 0 2 0

2 0 1 22 0 1 c2 0 2 62 0 3 02 0 3 a2 0 4 42 0 4 e2 0 5 82 b 3 0 7 13 c b c3 c c c4 a e 55 e 6 c

2 0 1 32 0 1 d2 0 2 72 0 3 12 0 3 b2 0 4 52 0 4 f2 0 5 92 b 3 0 7 23 c b d3 c c d4 a e 85 e 6 d

2 0 1 42 0 2 0 2 82 0 3 22 0 3 c2 0 4 62 0 5 02 0 5 a2 b 3 0 7 33 c b e4 5 b 74 a e 95 e 6 e

2 0 1 52 0 2 0 2 92 0 3 32 0 3 d2 0 4 72 0 5 12 0 5 b2 6 6 13 0 7 43 c b f4 5 b 84 c O 5

2 0 1 62 0 2 02 0 2 a2 0 3 42 0 3 e2 0 4 82 0 5 22 0 5 c2 6 6 23 3 6 b3 c c O4 5 b 94 c O 6

2 0 1 72 0 2 12 0 2 b2 0 3 52 0 3 f2 0 4 92 0 5 32 0 5 d2 6 6 33 3 6 c3 c c 74 a 6 95 0 1 7

2 0 1 82 0 2 22 0 2 c2 0 3 62 0 4 02 0 4 a2 0 5 42 0 5 e2 6 6 b3 3 6 d3 c c 84 a 6 a5 0 1 8

2 0 1 92 0 2 32 0 2 d2 0 3 72 0 4 12 0 4 b2 0 5 52 0 5 f2 6 6 c3 3 6 e3 c c 94 a 6 c5 0 1 9

B u r n i n g N e w E P R O M s

f u l l d i s c u s s i o n o b u r n i n g E P R O M s i b e y o n d t h s c o p e o t h i sa r t i c l e . T w g o o d s o u r c e s o i n f o r m a t i o n a n E P R O M h a r d w a r e a r C S S o f t w a r e , I n c . a n t h e i r E P R O M P r o g r a m m e r s H a n d b o o k , o J a s o n - R a n h e i m C o m p a n y ( 5 8 0 P a r r o t t S t r e e t , S a J o s e , C A 9 5 1 1 2 ) .T h 1 5 4 1 d r i v e R O M s a r e n o t a l w a y s i s o c k e t s . O b t a i n p r o f e s s i o n a lh e l p i d e s o l d e r i n g o t h R O M s i r e q u i r e d i i n o f o b e g i n n e r s .T w 2 7 6 4 R O M s a n t w o 2 8 p i t 2 p i a d a p t e r s w i l l b r e q u i r e d . I t h R O M s a r e a s i l y r e m o v a b l e , t h e y s h o u l d b r e a d w i t h t h E P R O Mp r o g r a m m e r i n t o m e m o r y s t a r t i n g a $ 2 0 0 0 f o t h $ C 0 0 0 R O a n a $ 4 0 0 0 f o t h $ E 0 0 0 R O s t h a t t h e y c o r r e s p o n d t t h a d d r e s s e sg i v e n i t h i s a r t i c l e . T h p a t c h e s m a b m a d e w i t h a n m a c h i n el a n g u a g e m o n i t o r p r o g r a m , e i t h e r i m i n i - a s s e m b l e r o i H E X .

E d i t o r ' s N o t e s

W e l l i t ' s a b o u t t i m e g o t w r i t e t h e f o l l o w i n g : T h a n k y o M r P h i lS l a y m a k e r , n o o n l y f o t h a r t i c l e , b u f o t a k i n g t h e t i m e t e l i m i n a t et h e l o n g e s t r u n n i n g , u n s o l v e d b u m y s t e r y . Y o u r l a b o r i o u s r e s e a r c hw i l l b a p p r e c i a t e d w o r l d - w i d e , a n s i s h o u l d . h e r e b y n o m i n a t eP h i l l i p A S l a y m a k e r f o s p o t i t h C o m m o d o r e H a l l o F a m e .A n y o n e s e c o n d i t

H o w e v e r . . . t h e r e ' s o n l y o n s l i g h t p r o b l e m . s t i l l c o n t e n d t h a t t h S A V E ® b u g w a s f i r s t r e p o r t e d b e f o r e t h e 1 5 4 1 w a b u i l t . T h 4 0 4 0w a t h f i r s t c a r r i e r o t h i s p l a g u e , b u t s i n c e t h e s e b e a s t s a r e f a s t

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

F o t h o s e w h w i s h t b u r n c h i p s w i t h t h e s e p a t c h e s , t h e r e a r e t w a p p r o a c h e s . T h f i r s t , a s u g g e s t e d i t h a r t i c l e , i w i t h t h p o p u l a r2 7 6 4 E P R O M s . T h e 2 t 2 p i a d a p t e r s a r a l s o a v a i l a b l e f r o m C S M ,b u f o t h e s o i n c l i n e d w e ' v e s u p p l i e d a s s e m b l y i n s t r u c t i o n s b e l o w .U n f o r t u n a t e l y , w i t h t h a d p a t e r i p l a c e , c h a n c e s a r e t h e t o p o t h 1 5 4 1 c a s e w i l l n o f i b a c k o n A l t h o u g h t h i s " b l e s s i n g i d i s g u i s e "k e e p s t h d r i v e c o o l e r , c e r t a i n s i t u a t i o n s m a w a r r a n t . .

T h s e c o n d , i m o n e y i n o b j e c t , i w i t h M o t o r o l a ' s M C M 6 8 7 6 4E P R O M s w h i c h a r p i n - f o r - p i n c o m p a t i b l e w i t h t h C o m m o d o r eR O M s . Y o u ' l l n e e d t w o , a n t h e y ' r e a b o u t $ 1 6 . 0 0 a p i e c e ( a v a i l a b l ef r o m J a m e c o a m o n g o t h e r s ) .

C o m m o d o r e i w e l l a w a r e o M r S l a y m a k e r ' s f i n d i n g s , a n d w o r d i t h a t n e 1 5 7 1 s w i l l s o o n b e q u i p p e d w i t h R e v i s i o n R O M s t h a t f i t h e s e b u g s ( c u r r e n t l y a l 1 5 7 1 h o u s e R e v i s i o n R O M s ) . A u p d a t e k i f o t h 1 5 4 1 i N O c u r r e n t l y u n d e r c o n s i d e r a t i o n , b u w e ' l l k e e p y o p o s t e d i w h e a r o t h e r w i s e .

2 7 6 4 ( 2 p i n ) T 2 3 6 4 ( 2 p i n ) A d a p t e r2 3 6 4 2 7 6 4

D D D D D L ) I X D

A A A A A A A A A A A 1 A l A 1

C V c

G N

1 1 1 1 - 1

2 2 1 1

2

2 2

2

2 1

N

D 1 ) [ ) D [ ) D D D

A A A A A A A t A A A A 1 A l A 1

V p V c P G G N

N

U s 2 p i W s o c k e t a n 2 p i r i b b o n c a b l e h e a d e r ( m a l e ) .O t h 2 p i d i p , c u d o w n p i n s 1 2 2 0 , 2 3 , 2 6 , 2 7 , a n 2 t a b o u t 3 / 8 " . U s i n g w i r e w r a p , s h o r t p i n s 1 , 2 7 , a n 2 8 C o n n e c t p i 2 t p i 2 o t h e c a b l e h e a d e r , p i n 2 t p i 1 8 p i 2 t p i 1 2 a n p i n 2 t p i 2 1 T h l o n g p i n s w i l l p l u g d i r e c t l y i n t o t h e c a b l eh e a d e r s u c h t h a t p i n 3 o t h 2 p i W g o e s t p i o t h 2 p i h e a d e r ( p i n 4 t p i 2 t 3 , e t c , 2 t 2 3 2 t 2 4 ) .

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 40/88

F O R M A T T R A C K 3 D a v i d A H o o kB a r r i e , O n t a r i o

1 9 8 6 D a v i d A H o o k

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

M i c h a e l M o s s m a n ' s a r t i c l e ( 1 5 4 1 R A E x p a n d e r ) i T r a n s a c t o rV o l . 6 I s s u e r e a l l y c a u g h t m f a n c y . H d e s c r i b e d h o t a d

3 V I R A c a r t r i d g e t t h 1 5 4 1 d r i v e , t h e r e b y e x p a n d i n gt h a t d e v i c e ' s c a p a b i l i t y t s t o r e p r o g r a m s f o d i r e c t e x e c u t i o nw i t h i n t h e d i s k d r i v e .

H a l s o p r o v i d e d c o u p l e o e x a m p l e p r o g r a m s : o n d e m o ns t r a t e d h o t f o r m a t e x t r a t r a c k s o d i s k e t t e , b e y o n d t h n o r m a l 3 p r o v i d e d b C o m m o d o r e ' s D O ( w h i c h i s t o r e d i R O M , o c o u r s e ) . T h e x t r a R A a l l o w e d h i t c o p y t h d i s kR O c o d e , s u b s t i t u t i n g h i m o d i f i c a t i o n s . B e x e c u t i n g t h i sc o d e d i r e c t l y ( f r o m i t n e R A l o c a t i o n ) , t h n e f o r m a tr o u t i n e c o u l d g e n e r a t e t h e s e e x t r a t r a c k s . ( M r . M o s s m a n i n d ic a t e d 3 t r a c k s w o u l d b f o r m a t t e d , h o w e v e r o n l y 3 a r a c t u a l l y d o n e ) . N o n e t h e l e s s , t h e i d e a i f a s c i n a t i n g .

W i t h m a c k n o w l e d g e d c l u m s i n e s s w i t h s o l d e r i n g i r o n , a n a e x p e n s i v e d i s k d r i v e a s t a k e , s o u g h t a a l t e r n a t e t t h c o n s t r u c t i o n p r o j e c t . A r m e d w i t h t h t w 1 5 4 1 b o o k s r v i e w e d p r e v i o u s l y ( R e f . 1 2 ) t h t a s k w a c o m p l e t e d s u c c e s sf u l l y .

u s e d t h n o r m a l d i s k f o r m a t t i n g r o u t i n e t s e t h i n g s u p T h e nm a c h i n e l a n g u a g e p r o g r a m g o e s i n t o d i s k R A b u f f e r # 3 .

P e r f o r m s e e k o p e r a t i o n t T r a c k 3 5 t h e n e x e c u t e t h p r g r a m f r o m d i s k R A M . M u c h o t h c o d e u s e d b M r M o s s m a nc o m e s f r o m t h 1 5 4 1 R O M — 7 5 2 b y t e s o t h 3 e x t r a R A w a c o n s u m e d . I m c a s e , n e e d e d t d e v e r y t h i n g i t h m i n i m u m s p a c e o a u n m o d i f i e d 1 5 4 1 — p r e f e r a b l y l e s s t h a n2 5 b y t e s ( o o n d i s k b u f f e r ' s w o r t h ) . T h I m m e r s / N e u f e l db o o k w a s i n v a l u a b l e , a n m p r o g r a m b o r r o w s f r o m c o u p l eo f t h e i r c r e a t i o n s .

B v e r y c a r e f u l w i t h t h e v a l u e s i t h D A T A s t a t e m e n t s . B p r o g r a m m i n g t h F l o p p y D i s k C o n t r o l l e r ( F D C ) d i r e c t l y , y o a r b y p a s s i n g a l t h c h e c k s a n s a f e g u a r d s t h a t C o m m o d o r ep u i t h e r e . I y o t e l l t h e d r i v e h e a d t g t T r a c k l O O , i w i l lh a p p i l y t r y t o o b l i g e . I m m e r s N e u f e l d s p e a k w i t h e x p e r i e n c ei d e s c r i b i n g t h e n e e d t d i s a s s e m b l e t h e d r i v e t e f f e c ta d j u s t m e n t s w h e n t h i s h a p p e n s . N e e d l e s s t o s a y , n e i t h e r n o t h e T r a n s a c t o r c a a c c e p t a n l i a b i l i t y f o d a m a g e w r o u g h t b y

u s o t h e s e r o u t i n e s , b u t h e y h a v e b e e n c h e c k e d o t w d i f f e r e n t d r i v e s .

W e l l w h a t w a s t h a p p e a l o s u c h p r o g r a m ? I m c a s e ,w i s h e d t p e r f o r m a e l e m e n t a r y d i s k p r o t e c t i o n s c h e m e ,w i t h o u t b u m p i n g t h d r i v e h e a d . B f o r m a t t i n g d i s k ( w i t h 3 t r a c k s ) u s i n g o n I s e q u e n c e t h e n r e f o r m a t t i n g ( n o r m a l l y )w i t h d i f f e r e n t I D , h a i t f o u n d a t i o n . T h m a i n p r o g r a m t b p r o t e c t e d i n c l u d e d s e e k r o u t i n e t T r a c k 3 6 w h i c h p i c k e du t h s p e c i a l I a n u s e d i a k e v a r i a b l e i t h p r o g r a m .S i n c e t h m a i n p r o g r a m w a c o m p i l e d , t h i s w a n o v e r yv i s i b l e . W h e n t h p r o g r a m c o u l d n o g e t h s p e c i a l I D i c a u s e d w r o n g a n s w e r s t b g e n e r a t e d . A t h c a l c u l a t i o n sw e r e f a i r l y c o m p l e x , t h e s e w r o n g a n s w e r s w e r e n o o b v i o u s — an a s t y t r i c k t u s i f i n a n c i a l t y p e p r o g r a m !

F o m a c h i n e l a n g u a g e f a n s , t h P A s o u r c e c o d e h a b e e np r o v i d e d .

R e f e r e n c e s :

1 I n s i d e C o m m o d o r e D O b R i c h a r d I m m e r s a n G e r a l dN e u f e l d . D a t a m o s t p u b l i s h e d t h i s o r i g i n a l l y ( 1 9 8 3 ) . N o p u b l i s h e d b B r a d y C o m m u n i c a t i o n s C o m p a n y , c / P r e nt i c e H a l l , W N y a c k , N 1 0 9 9 4 .

2 T h e A n a t o m y o t h e 1 5 4 1 D i s k D r i v e b L o t h a r E n g l i s c h a n N o r b e r t S z c z e p a n o w s k i . A b a c u s S o f t w a r e , G r a n d R a p i d s , M 4 9 5 1 0 .

F o r m a t 3 5 B A S I C L o a d e r

M L P

K I

G

1 r e f o r m a t t r a c k 3 2 r e ( c 1 9 8 6 d a h o o k , a l r i g h t s r e s e r v e d3 p r i n t " Q i n s e r t b l a n k d i s k , t h e n

p r e s s < r e t u r n > "4 g e z $ i z $ O c h r $ ( 1 3 ) g o t o 4 5 i n p u t E B I d i s k n a m e , i " n $ , i d $6 0 o p e n 1 5 8 1 5 n O : " n " , i d $ :

g o s u b 8 0 0

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 41/88

J P K

A P H

E I

J H E E J

M J N F C

N A G G A P O F

C P L

B A L B

7 c o u n t9 r e p u j i m p $ 0 4 0 0 i n t o b u f f e r # 1 0 p r i n t # 1 5 , m - w " ; c h r $ ( O ) ; c h r $ ( 6 ) ; c h r $ ( 3 ) ;

c h r $ ( 7 6 ) ; c h r $ ( O ) ; c h r $ ( 4 )1 1 0 g o s u b 8 0 01 9 9 r e m s e t t r a c k 3 5 / s e c t o r2 0 p r i n t # 1 5 , m - w " ; c h r $ ( 1 2 ) ; c h r $ ( O ) ; c h r $ ( 2 ) ;

c h r $ ( 3 5 ) ; c h r $ ( O )2 1 0 g o s u b 8 0 02 9 r e r e a d m i n t o d i s k r a ( $ 0 4 0 0 )3 0 r e s t o r e : f o t 6 9 r e a d3 1 p r i n t # 1 5 , m - w " ; c h r $ ( i ) ; c h r $ ( 4 ) ; c h r $ ( 1 ) ;

c h r $ ( d )3 2 n e x t3 9 r e e x e c u t e f r o m $ 0 0 0 34 0 p r i n t # 1 5 , " m - w " ; c h r $ ( 3 ) ; c h r $ ( 0 ) ; c h r $ ( 1 ) ;

c h r $ ( 2 2 4 )4 9 r e r e a d d i s k e r r o r c o d e5 0 p r i n t * 1 5 , m - r " ; c h r $ ( 3 ) ; c h r $ ( 0 )5 1 g e t # 1 5 , e $ a s c ( e $ )5 2 i t h e n p r i n t d o n e , o k " : c l o s e 1 5 e n 5 3 0 i f c o u n t = 1 0 g o t o 9 0 05 4 c o u n t c o u n t + 1 g o t o 1 0 8 0 i n p u t # 1 5 , e e $ t s i t h e n r e t u r n8 1 p r i n t e e $ t s f a i l e d " : c l o s e 1 5 e n 9 0 i e < 1 7 t h e n p r i n t c o n t r o l l e r e r r o r # " 9 1 0 g o s u b 8 0 0 : g o t o 8 1 1 0 0 0 d a t a 1 6 5 , 3 4 , 1 3 3 , 8 1 , 1 6 9 , 1 , 1 4 1 , 3 1 0 1 0 d a t a 6 , 1 6 9 , 6 4 , 1 4 1 , 3 3 6 , 1 6 9 , 1 1 0 2 0 d a t a 1 4 1 , 3 4 6 , 1 6 9 , 1 6 , 1 3 3 , 6 7 3 1 0 3 0 d a t a 4 0 4 3 2 4 0 4 , 2 3 0 , 8 1 , 1 6 51 0 4 0 d a t a 8 1 , 2 0 1 , 3 6 , 1 4 4 , 2 4 2 , 7 6 1 2 , 2 5 11 0 4 1 r e I h i g h e s t t r a c k n u m b e r

( > 3 5 ) t b f o r m a t t e d1 0 5 0 d a t a 1 7 4 , 0 2 8 , 2 3 2 , 1 3 8 , 4 1 3 , 1 3 31 0 6 0 d a t a 2 0 , 1 7 3 , 0 2 8 4 1 , 2 5 2 , 5 2 1 0 7 0 d a t a 1 4 1 , 0 2 8 , 1 6 0 , 5 , 1 6 2 , 2 5 5 , 2 0 21 0 8 0 d a t a 2 0 8 , 2 5 3 , 1 3 6 , 2 0 8 , 2 5 0 , 9

F o r m a t 3 5 P A S o u r c e C o d e

N E G I

O E E A K E P

I O

H

1 0 0 r e m f o r m a t t r a c k 3 s o u r c e c o d e1 1 0 r e m ( c 1 9 8 6 d a h o o k1 2 r e 1 3 r e c o d e s t o r e d i d i s k b u f f e r # 31 4 0 r e m l o a d e d f r o m t h e b a s i c p r o g r a m1 5 0 r e m1 6 s y 7 0 ; f o r p a 6 a s s e m b l e r1 7 0 ;1 8 0 * = $ 0 4 0 01 9 0 ;2 0 ; * * * 1 5 4 1 r a l o c a t i o n s * * 2 1 0 ;2 2 0 d r v t r k = $ 2 2 ; c u r r e n t t r a c k n u m b e r2 3 s e c t r $ 4 ; s e c t o r c o u n t e r

F A J E O

G G M N O K M

N N C M D

I K K G D N C H A G E G O A E

I P M K L I

E

P G C N J B O C C

2 4 f t n u m2 5 0 ;2 6 d s k c n t2 7 0 ;2 8 0 ;2 9 s t a r t3 0 3 1 0 ;3 2 3 3 3 4 0 ;3 5

3 6 3 7 3 8 3 9 0 ;4 0 4 1 4 2 0 ;4 3 b i g g e r4 4 4 5 4 6 4 7 4 8 4 9 0 ;5 0 5 1 0 ;5 2 s t e p5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 0 ;6 2

6 3 6 4 0 ;6 5 6 6 6 7 6 8 6 9 7 0 0 ;7 1 0 . e n d

I d s t

I d s t

I d

s t I d s t

I d s t

j s j s i n I d c m b c

j m

I d i n t x a n s t I d a n o r s t

I d

I d

l o o pb n d e b n r t

$ 5

$ 1 c 0 0

d r v t r kf t n u m

# $ 0 6 2 0

# $ 4 0

$ 0 6 2 1# $ 0 f$ 0 6 2 2

# 1 s e c t r

s t e ps t e pf t n u mT t n u m# 3 b i g g e r

$ f b O c

d s k c n t

# % 1 1$ 1 d s k c n t# % 1 1 1$ 1 d s k c n t

#

# $ f f

d e l o o p

l o o p

; f o r m a t t r a c k n u m b e r

; d i s k c o n t r o l l e r

; c u r r e n t t r a c k; k e e p i

; n o e r r o r s a l l o w e d

; t r i a l o b y t e s o 1 / t r a c k

; a l l o w 1 s e c t o r s / t r a c k

; m o v e h e a d t w i c e

; a r e w t h e r e y e

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

; m o v e h e a d o u 1 / t r a c k

; u n u s e d r a l o c ' n

1 1 1 0 0

; d e l a y l o o p ( f o r h e a ds e t t l i n g )

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 42/88

A A m i g aP a r a l l e l P r i n t e r C a b l e

S t e v e M i c h e lS t e r l i n g , I

I t h V o l u m e 6 I s s u e 6 t h A r t i c l e , " T h e A m i g a : U s e r ' s P e r s p e c t i v e " t o u t e d t h A m i g a ' a b i l i t y t o w o r k e a s i l y w i t h a n p r i n t e r . I d i d n ' t m e n t i o n , h o w e v e r , t h d i f f i c u l t yi n v o l v e d i h o o k i n g u p p r i n t e r i t h f i r s t p l a c e . T h i s a r t i c l e a d d r e s s e s t h a t p r o b l e m .

I y o h a v e t r i e d t h o o k y o u r b r a n d n e A M I G A t C e n t r o n i c s - t y p e p a r a l l e l i n t e rf a c e p r i n t e r , y o p r o b a b l y r a i n t o l i t t l et r o u b l e . W e l l , y o a r e n ' t a l o n e . S d i e v e r yo n e l s e i t h w o r l d ! !

T h r e a s o n f o r t h i s p r o b l e m i f a i r l y s i m p l e .T h 2 p i c o n n e c t o r a t h r e a r o t h A M I G A t h a t i d e s i g n a t e d a t h p a r a l l e l p o r ti a c a l l e d D B - 2 5 c o n n e c t o r . Y o u r p r i n t e rc a b l e h a D B - 2 5 c o n n e c t o r o n o n e e n t a t t a c h t t h A M I G A a n 3 p i c o n n e c t o ro t h e o t h e r e n t a t t a c h t y o u r p r i n t e r .T h e s e c o n n e c t o r s a r f a i r l y s t a n d a r d c o n n e ct o r s t h r o u g h o u t t h i n d u s t r y a n h a v e a l o w e d u t h l i m i t e d a m o u n t o c o m p a t i b i l i t yb e t w e e n c o m p u t e r s a n p e r i p h e r a l s t h a t w n o e n j o y .

S o i t h A M I G A a n t h p r i n t e r c a b l e u s t h s a m e s t a n d a r d c o n n e c t o r s , w h a t ' s t h ep r o b l e m A l c o n n e c t o r s c o m e i t w f o r m s :M A L E a n F E M A L E . I o r d e r t c o n n e c t t w c a b l e s t o g e t h e r , o n m u s t h a v e f e m a l ec o n n e c t o r a n t h e o t h e r m u s t h a v e m a l ec o n n e c t o r . T h s t a n d a r d p r i n t e r c a b l e t h a ty o u w o u l d p u r c h a s e h a m a l e D B - 2 5 c o n e c t o r . G u e s s w h a t t y p e o D B - 2 5 c o n n e c t o ri s u p p l i e d i t h r e a r o t h A M I G A ? I y o s a i d m a l e , y o u m u s t b l o n g - t i m e C o m m od o r e u s e r a n u s e d t s u c h g o i n g s o n

T h u s o f m a l e D B - 2 5 c o n n e c t o r o t h A M I G A p u z z l e d m a f i r s t , e s p e c i a l l y s i n c et w o t h e r c o n n e c t o r s i t h r e a r ( D I S KD R I V E a n S E R I A L ) a r f e m a l e c o n n e c t o r s .H o w e v e r , a f t e r l i t t l e c h e c k i n g i m p r i n t e rm a n u a l a n d t h I n t r o d u c t i o n t A M I G A m a u a l , f o u n d t h a t s o m e p i n s o t h A M I G AD B - 2 5 a r e n o t d i r e c t l y c o n n e c t i b l e w i t h as t a n d a r d o f f - t h e - s h e l f p r i n t e r c a b l e . T h e r ef o r e , i n a a t t e m p t t k e e p a n u n w a r y u s e rf r o m j u s t p l u g g i n g i c a b l e t h a t c o u l d c a u s es o m e s e r i o u s d a m a g e t e i t h e r t h A M I G A o t h p r i n t e r , m a l e c o n n e c t o r w a u s e d o t h A M I G A . T h i s f o r c e s t h u s e r t o b t a i n t h ec o r r e c t c a b l e .

T h e r e a r t h r e e p o s s i b l e s o l u t i o n s t t h a b o v e p r o b l e m : ( 1 d o n ' t u s a p r i n t e r , ( 2 w a i t f o C o m m o d o r e o s o m e o t h e r s e c o n d s o u r c e t p r o d u c e a a p p r o p r i a t ec a b l e o ( 3 c o n s t r u c t y o u r o w c a b l e .

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

T a b l e s h o w s t h e p i n c o n n e c t i o n s n e c e s s a r y t c o r r e c t l y i n t e r f a c e t h A M I G Ap a r a l l e l D B - 2 5 c o n n e c t o r w i t h 3 6 - p i n p a r a l l e l c o n n e c t o r f o C e n t r o n i c si n t e r f a c e p r i n t e r . T h p a r a l l e l f u n c t i o n l a b e l s a n p i n s n u m b e r s w e r e o b t a i n e df r o m P a n a s o n i c K X - P 1 0 9 0 p r i n t e r m a n u a l . T h A M I G A f u n c t i o n l a b e l s a n p i n u m b e r s w e r e o b t a i n e d f r o m t h e I n t r o d u c t i o n t A M I G A m a n u a l ( R e f e r e n c e 7 1 3 ) . T h w i r e c o l o r s c o l u m n h a b e e n l e f t b l a n k t o a s s i s t i n c r e a t i n g y o u r o w

c a b l e .

T A B L EP a r a l l e lF u n c t i o nL a b e lS T R O B ED A T A 1D A T A 2D A T A 3D A T A 4D A T A 5D A T A 6D A T A 7D A T A 8A C B U S YP S E L E C TG N G N G N G N G N G N G N G N G N P R I M E

W i r eC o l o u r( f i l l i n

P i N u m b e rP a r a l l e lC o n n e c t o r

1 1 1 1 1 2 2 2 2 2 2 2 2 3

P i N u m b e rF e m a l e D B - 2 5C o n n e c t o r

1 1 1 1 1 1 1 1 1 1 2 2 2 2

A m i g aF u n c t i o nL a b e lD R D YD D D D D D D D A C B U S YP O U TS E G N G N G N G N G N G N G N G N G N R E S E T

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 43/88

M a k i n g T h e C a b l e :

1 O b t a i n t h n e c e s s a r y c a b l e c o m p o n e n t s : ( t h e p a r t s n u m b e r sa r R a d i o S h a c k n u m b e r s )

3 p i m a l e C e n t r o n i c s c o n n e c t o r ( 2 7 6 - 1 5 3 4 A )2 p i f e m a l e D B - 2 5 c o n n e c t o r ( 2 7 6 - 1 5 4 8 )H e a d s h e l l s f o b o t h c o n n e c t o r sA a p p r o p r i a t e l e n g t h o 2 5 c o n d u c t o r c a b l e

I y o h a v e a c c e s s t g o o d e l e c t r o n i c s s t o r e , t h a b o v e l i s ts h o u l d p r o v e n p r o b l e m . H o w e v e r , i m a r e a t h e 2 c o n d u ct o c a b l e w a i m p o s s i b l e t o b t a i n . T h n e x t b e s t a p p r o a c h w a t b u a s t a n d a r d p r i n t e r c a b l e w i t h c o n n e c t o r s a l r e a d y i p l a c ea n a l t e r i t f i t h A M I G A . I n t h i s c a s e , y o o n l y n e e d t h s t a n d a r d c a b l e ( 2 6 - 1 4 0 1 ) a n t h 2 p i f e m a l e D B - 2 5 c o n n e ct o r . A a a l t e r n a t i v e , 2 5 - c o n d u c t o r r i b b o n c a b l e w i l l w o r kw e l l .2 I a l t e r i n g s t a n d a r d p r i n t e r c a b l e , g t S T E P 4

3 E a c h w i r e i t h 2 5 c o n d u c t o r c a b l e w i l l b c o l o r c o d e d .C h o o s e a n c o l o r f o p i a n w r i t e i i T a b l e 1 C o n t i n u es e l e c t i n g a d i f f e r e n t c o l o u r e d w i r e f o e a c h o t h 2 p i n s l i s t e di t h T a b l e . T h t w e x c e s s w i r e s m a b s n i p p e d o f f . G t S T E P 6

4 R e m o v e t h h o o d f r o m t h 2 p i m a l e D B - 2 5 c o n n e c t o ra n e x p o s e t h w i r e s a t h r e a r o t h c o n n e c t o r . R e m o v e t h c o n n e c t o r c o m p l e t e l y b s n i p p i n g a l t h w i r e s . S a v e t h i s m a l ec o n n e c t o r f o f u t u r e p r o j e c t s .

5 U s i n g c o n t i n u i t y t e s t e r o O h m e t e r , d e c i p h e r t h c o l o rc o d i n g f o e a c h p i o t h 3 p i p a r a l l e l c o n n e c t o r . D t h i s b p l a c i n g o n l e a d o t h c o n t i n u i t y t e s t e r o p i o t h p a r a l l e lc o n n e c t o r a n t h e n s y s t e m a t i c a l l y t e s t i n g e a c h o t h w i r e e n d st h a t w e r e j u s t d i s c o n n e c t e d f r o m t h m a l e D B - 2 5 c o n n e c t o r .W h e n t h c o n t i n u i t y t e s t e r l i g h t ( o b u z z e r ) t u r n s o n , w r i t e t h a tw i r e c o l o r i T a b l e l . C o n t i n u e t h i s p r o c e s s f o e a c h o 2 p i n sl i s t e d . B s u r e t u s t h e p i n n u m b e r s l i s t e d u n d e r t h p a r a l l e lc o n n e c t o r c o l u m n . W h e n t h i s h a b e e n c o m p l e t e d , t h e r e w i l lp r o b a b l y b e s e v e r a l w i r e s " l e f t o v e r " . T h a t i b e c a u s e o n l y 2 3 o t h p o s s i b l e 3 a r g o i n g t b u s e d . T h e s e " l e f t o v e r " w i r e sm a b e s i m p l y s n i p p e d o f m a k i n g s u r e t h a t n o e x p o s e d m e t a le n d s c o m e i c o n t a c t w i t h e a c h o t h e r .6 U s i n g T a b l e 1 s o l d e r e a c h o t h c o l o u r c o d e d w i r e s t t h c o r r e c t p i n u m b e r s o t h D B - 2 5 c o n n e c t o r . ( I s t a r t i n g w i t ha l s e p a r a t e c o m p o n e n t s , s o l d e r t h s a m e c o l o u r e d w i r e t t h c o r r e s p o n d i n g p i o t h p a r a l l e l c o n n e c t o r a w e l l . ) P l e a s en o t e t h a t t h f i r s t t h i r t e e n w i r e s a r c o n n e c t e d " s t r a i g h tt h r o u g h " a n t h f i r s t p i n u m b e r c h a n g e o c c u r s a p i n s 1 o t h p a r a l l e l a n 1 o t h D B - 2 5 .7 W h e n a l t h e w i r e s h a v e b e e n s o l d e r e d , R E - C H E C K e a c h o t h p i c o n n e c t i o n s w i t h a c o n t i n u i t y t e s t e r o n l a s t t i m e t i n s u r e t h a t a l l i s r i g h t w i t h t h e w o r l d . T o m u c h h a s t e a t h i sp o i n t c o u l d b d e a d l y t y o u r A M I G A a n d / o r p r i n t e r .8 R e p l a c e t h h e a d s h e l l ( s ) o t h c o n n e c t o r ( s ) .9 C o n n e c t t h e c a b l e a n y o s h o u l d b o y o u r w a y . H a p p yp r i n t i n g .

T r a n s B l o o p e r sV o l u m e 7 I s s u e 0 1 p a g e 5 4

T h s u b - h e a d i n g f o t h a r t i c l e " A d d i n g F u n c t i o n s t B a s i c " s h o u l dn o b t h e r e . I s a y s " E x e c u t e m a c h i n e l a n g u a g e p r o g r a m s i n s i d ey o u r 1 5 4 1 " , w h i c h c a m e f r o m a n a r t i c l e i n p r e v i o u s i s s u e a n h a a b s o l u t e l y n o t h i n g t w i t h t h i s o n e . A l s o , t h e s o u r c e l i s t i n g i t h s a m e a r t i c l e ( o p a g e s 5 6 a n 5 7 w a c o n v e r t e d t P A a s s e m b l e rf o r m a t f r o m C B f o r m a t , a n a l o t h q u e s t i o n m a r k s i t h c o m m e n t s w e r e t o k e n i z e d t r e a d a P R I N T . c l e a r c a s e o t h 3 A M - m a k e - i t - f o r - d e a d l i n e d i s e a s e , w h i c h a t t a c k s u s m e r c i l e s s l yf r o m t i m e t t i m e .

V o l u m e 7 I s s u e 0 1 p a g e 3 0

T h u n e x p e c t e d h a p p e n e d i o u l a s t i s s u e . J i B u t t e r f i e l d ' s C - 1 2 8R A m a w a n o t q u i t e p e r f e c t ! O p a g e 3 y o w i l l f i n d t h r e em i s t a k e s . A l o t h e m a r i B a n k Z e r o . F i r s t , t h c o r r e c t d e c i m a le q u i v a l e n t o $ O A 1 D - $ O A 1 F i 2 5 8 9 - 2 5 9 1 . S e c o n d , t h c o r r e c td e c i m a l e q u i v a l e n t o $ 1 C O O - $ 1 F F 7 i 7 1 6 8 - 8 1 8 3 . A n d , f i n a l l y , t h c o r r e c t d e c i m a l e q u i v a l e n t o F F 8 - $ 1 F F F i 8 1 8 4 - 8 1 9 1 . W h o p et h a t t h e s e m i n o r e r r o r s h a v e n ' t f o u l e d u y o u r p r o g r a m m i n ge f f o r t s t o m u c h .

T r a n s a c t o r D i s k # 1 F i

W e ' v e b e e n r e c e i v i n g r e p o r t s o s o m e r e a l p r o b l e m s w i t h D i s k * 1 2 .S o m e h o w t h f i l e p o i n t e r s o t h f i r s t e n t r i e s e a c h p o i n t t t h n e x t e n t r y i t h d i r e c t o r y . T h a t i s i y o t r l o a d i n g t h s e c o n dp r o g r a m i t h d i r , y o u ' l l a c t u a l l y g e t h t h i r d p r o g r a m , l o a d i n gt h 3 r g i v e s y o t h 4 t h , e t c . T h 9 t f i l e a n a l a f t e r w a r d s a r e o k T h f o l l o w i n g p r o g r a m w i l l f i t h i s p r o b l e m , b u d o n ' t r u i w i t ha n o t h e r d i s k i t h e d r i v e b u T r a n s a c t o r D i s k * 1 2 . A w r i t t e n i s h o u l d w o r k o n 1 5 4 1 / 4 0 , 4 0 4 0 , M S D , I n d u s , o r a n o t h e r 3 t r a c kc o m p a t i b l e .

H D F P F

D P

C

J D

I 0

C P

1 0 r e s a v e " O : t h e f i x " , 81 1 r e * r t e / 8 6 - t f i t r a n s a c t o r ' s d i s k # 1 1 2 r e * w h e n c o m p l e t e , a l f i l e s b u ( a i d 4 ' a n 1 3 r e * ' v i e a i d . r e l ' w i l l h a v e b e e n r e p a i r e d1 4 0 d v 8 o p e n 1 5 , d v , 1 5 : o p e n 8 , d v , 8 , " # " :

p r i n t # 1 5 , " u 1 : " 8 ; 0 ; 1 8 ; 11 5 f o t 7 f o t 3 1 6 g e t # 8 , a $ : a $ ( x ) a $ ( x ) c h r $ ( a s c ( a $ c h r $ ( 0 ) ) ) :

n e x t y , 1 7 i m i d $ ( a $ ( 0 ) , 4 , 1 ) c h r $ ( 0 ) t h e n 2 3 0 : r e h a

a l r e a d y b e e n r e p a i r e d1 8 r p c h r $ ( 0 ) c h r $ ( O ) : f o t 1 9 0 1 $ m i d $ ( a $ ( x ) , 4 , 2 ) : a $ ( x ) m i d $ ( a $ ( x ) , 1 , 3 )r p m i d $ ( a $ ( x ) , 6 ) : r p t 2 0 n e x t : p r i n t # 1 5 , " b - p : " 8 ; 2 1 f o t 7 p r i n t # 8 , a $ ( x ) ; : n e x t2 2 0 p r i n t # 1 5 , " u 2 : " 8 ; 0 ; 1 8 ; 12 3 0 c l o s e 8 : c l o s e 1 5 : e n

W n o t i c e d s o m e o t h e r p r o b l e m s t o o . S o m e s t r a y g l i t c h r e a l l yg a v e u t h s l i p ! B e s i d e s " A I D 4 " a n " V I C A I D . R E L " ( a m e n t i o n e d i t h r e m s a b o v e ) , " V E R I F I Z E R . P E T " i a l s o v i r t ua l l y w r i t e - o f f , b u t h e s e a r o n m o s t o t h e o t h e r T r a n s a c t o rD i s k s s h o u l d y o n e e d t h e m . " C 1 2 8 M E S S A G E " a n d " A R C H I -T E S T E R " f o t h C 1 2 8 , b o t h l o a d o a n l o o k o k b u a r n o t o k e n i z e d p r o p e r l y f o c o r r e c t o p e r a t i o n o t h C 1 2 8 . B o t h a r s h o r t . s i m p l y l o a d t h e m a n d h i R E T U R N o v e r e a c h l i n e .S A V E t h e m b a c k t d i s k a n t h e y ' l l b f i n e f o r e v e r a f t e r .

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 44/88

S a v e S Y M A S S S y m b o l s R o b e r t H u e h nN e u s t a d t , O n t a r i o

C r e a t e S y m b o l T a b l e F i l e s A c c e s s i b l e F r o m T h e B A S I C E d i t o r

S Y M A S S 3 . 1 A s s e m b l e r N o t e s p r o g r a m ' s s y m b o l t a b l e . Y o c a l o a d t h f i l e a n o r m a lp r o g r a m , a n l i s t i o y o u r s c r e e n o p r i n t e r t h e l p w i t h

S Y M A S S 3 . h a f e f e a t u r e s n o m e n t i o n e d i l a s t i s s u e ' s d e b u g g i n g .a r t i c l e .

F i r s t , o b t a i n a c o p y o S Y M A S S , t y p e i t h S S s o u r c e c o d e ,1 B i n a r y n u m b e r s c a b u s e d w i t h t h p r e f i x . a n a s s e m b l e i t A t h i s p o i n t , i y o t y p e :

2 T h o f f e n d i n g l i n e i l i s t e d w h e n a e r r o r c o n d i t i o n o c c u r s . s y s 8 2 0 " s t . s s s

3 A l i n s t r u c t i o n s l i k e ' I d a 0 , y ' , w h i c h h a v e n z e r o p a g e m o d e , . . P R f i l e c a l l e d " s t . s s s " w i l l b c r e a t e d o d i s k c o n t a i n i n ga r a s s u m e d t b a b s o l u t e . l i s t o e v e r y s y m b o l a n i t v a l u e . T h i s f i l e s t a r t s w i t h :

S Y M A S S 3 . h a t w b u g s , o n e w h i c h p r e v e n t s u s i n g t h o p c o d e T X S . A t t h e b e g i n n i n g o t h s o u r c e c o d e N O P S s h o u l de q u a l 5 6 n o 5 5 t l e t h l a s t o i t h t a b l e b r e c o g n i z e d .A l s o , t h h i g h b y t e o a a d d i t i o n i s n ' t s t o r e d t m e m o r y , o n l yt h l o o n e , s o v a l u e s g r e a t e r t h a n 2 5 w o n ' t w o r k . T h f i i e a s y e n o u g h :

L o a d i S Y M A S S 3 . 1 , a n t y p e :

p o k e 3 3 0 4 , 5 p o k e 2 9 6 5 , 2 3 p o k e 5 0 5 7 , 5

S a v e t h u p d a t e d v e r s i o n a S Y M A S S 3 . 1 2 .

A l p r o g r a m m e r s s h o u l d b e a w a r e t h a t ' d e f i n o o n l y a B A S I Ct o k e n , b u t a l s o a v a l i d h e x a d e c i m a l n u m b e r . S Y M A S S w i l l g i v ea i l l e g a l q u a n t i t y e r r o r , b u u n f o r t u n a t e l y , P A w i l l q u i e t l ya s s e m b l e t h w r o n g v a l u e . I n s t e a d o $ d e f u s $ d e e + 1 , o u s $ d e e O + 1 i n s t e a d o $ d e f O w h e n u s i n g e i t h e r a s s e m b l e r .

S S o S a v e S Y M A S S S y m b o l s

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

m e m s i z = $ 3 7s y m p t r $ 5 s y m e n d = $ 5 7

W h e n d e v e l o p i n g a l a r g e M p r o g r a m , s y m b o l t a b l e w i l l h e l py o f i n d u n i q u e n a m e s f o r o u t i n e s a n v a r i a b l e s . S Y M A S Sd o e s N O c h e c k f o r e d e f i n i t i o n , a l l o w i n g y o t h a v e m u l t i p l ee n t r i e s i t h t a b l e u n d e r t h s a m e n a m e . U s e S S S t m a k e s u r ey o d o n ' t h a v e t h a t p r o b l e m .

S i n c e t h s y m b o l t a b l e i i p r o g r a m f o r m a t , i c a n b e m o d i f i e du s i n g d e l e t e a n r e n u m b e r c o m m a n d s , s u c h a s t h e o n e s i T r a n s B A S I C ' s P r M a n a g e m e n t m o d u l e . M e r g e t o g e t h e r a n u b e o K e r n a l r o u t i n e s y o u s r e g u l a r l y , a n d y o u c a m e r g et h e i r d e f i n i t i o n s i n t o y o u r n e p r o g r a m s w i t h T r a n s B A S I C ' sU S c o m m a n d .

E d i t o r ' s N o t e

T h S Y M A S S A s s e m b l e r i a v a i l a b l e o T r a n s a c t o r D i s k 1 2 F o t h m o s t p a r t , i i P A c o m p a t i b l e , e x c e p t f o s o m e o P A L ' sm o r e e x o t i c f e a t u r e s . O t h e r w i s e , S Y M A S S c a b u s e d t a s s e m b l e v i r t u a l l y a n y m a c h i n e l a n g u a g e p r o g r a m p u b l i s h e di T h T r a n s a c t o r . T h o r i g i n a l s o u r c e c o d e i a l s o o D i s k 1 s y o c a s e j u s t h o a a s s e m b l e r w o r k s . F o c o m p l e t ed e s c r i p t i o n o S Y M A S S , s e V o l u m e 7 I s s u e 0 1 p a g e 6 9 S Y M A S S 3 . i a l s o i n c l u d e d o T h T r a n s B A S I C D i s k .

T h T r a n s a c t o r 4 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 45/88

S o u r c e C o d e

F A M D G M D J K P B C A D E

O G

G 0

K O M B F H

I K K F

N L N O C P E

D D I

H G A

F M P P G

I E

M H F I

1 0 0 s y s 7 0 01 1 0 ; < s a v e s y m a s s s y m b o l s > 1 2 0 ;1 3 r o b e r t1 4 0 *1 5 0 ;1 6 m e m s i z1 7 s y m p t r1 8 s y m e n d1 9 l i n e2 0 c l 2 1 0 e v a l2 2 c h k s t r2 3 0 s e t n a m2 4 s e t l f s2 5 o p e n2 6 c h k o u t2 7 c h r o u t2 8 c l r c h n2 9 c l o s e3 0 r e a d y3 1 0 ;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 s s 5 1 5 2 5 3 5 4 5 5 5 6 s s s 25 7 5 8 5 9 6 0 6 1 6 2

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

1 . l u e h n m a 1 9 8 6

8 2

$ 3 $ 5 $ 5 $ 3 $ a 6 6 3$ a d 9 e$ b 6 a 3$ f f b d$ f f b a$ f f c O$ f f c 9$ f f d 2$ f f c c$ f f c 3$ a 4 7 4

m e m s i z : s t a

; 8 2 0 t 1 0 2 1

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

r e a d y

s y m p t r ; p r o t e c tm e m s i z : s t a s y m p t r ; s y m b o ls y m e n d : l d xl o w e re v a lc h k s t rs e t n a m*

* s e t l f so p e n* c h k o u t* l : j s r d o u t

s y m e n d ; t a b l e f r o m

; b a s i c ' s e v a l u a t e; g e t l e n g t h a n p o i n t e r; f o r k e r n a l r o u t i n e; f i l e 8 d e

; s e c a d d r

; f a k e s t a r t a d d r e s s* 0 : s t a l i n e : s t a l i n e +s y m p t n l d xl o w e rs y m p t r

* 1 s y m p t rs s s 2s y m p t r + s y m e n ds y m p t r + s y m e n d + 1d o n e* l : j s r d o u tl i n es s s 3

s y m p t r + ; m o v e m e m s i z b a c k; c h e c k f o e n o . s y m b o l t a b l e

; s a v e f a k e l i n k a n n e ; l i n e n u m b e r

G D P P C F K D K A

A C G E C N B M

M O D F D F F N K M F N E L

O F B I

6 3 6 4 s s s 36 5 6 6 6 7 s s s 46 8 6 9 7 0 7 1 7 2 s s s 57 3 7 4 7 5 7 6 s s s 67 7 7 8 7 9 0 h e x8 0 8 1 8 2 8 3 8 4 h e 8 5 8 6 8 7 h e 8 8 8 9 l o w e r9 0 9 1 9 2 d o u t9 3 9 4 d o n e9 5 9 6 9 7 9 8

i n I d I d l d I d b e j s i n b n I d I d I d l d d e y : lI d j m

p h

l i n e +l i n e : j s r c h r o u tl i n e l : j s r c h r o u t* ( s y m p t r ) , ys s s 5c h r o u t ; s a v e s y m b o l n a m e: c p y * s s s 4# : j s r c h r o u t* $ b 2 : j s r c h r o u t ; s a v e = $ # $ : j s r c h r o u t ; a n d h e v a l u e# 9 : l d a ( s y m p t r ) , y : b e q s s s 6 : j s r h e

d ( s y m p t r ) , y : j s r h e # O : j s r c h r o u ts s s l

; p r i n t h e n u m b e r

l s r : l s r : l s r : l s rj s h e p l a : a n d # $ 0 fc m b c a d a d j m

s t j m

j s I d I d j s j s j m

* 1 h e * # $ 3 0c h r o u t

m e m s i z : s t x m e m s i z + c l

c h r o u t : j m p c h r o u t# O : j s r d o u t* ; f i n i s hc l o s ec l r c h nr e a d y

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 46/88

T r a n s c r i b e 6 R i c h a r d E v e r s , E d i t o r

R e l a t i v e F i l e C o p y U t i l i t y F o T h C o m m o d o r e 6

S i n c e t h e d a t h a t t h V i 2 m a d e i t ' s d e b u t , p r o g r a m m e r s h a v ep u r p o s e l y a v o i d e d r e l a t i v e f i l e s . T h r e a s o n s g i v e n , i a n y , a r eu s u a l l y t h e s p e e d a n r e l i a b i l i t y o t h 1 5 4 0 / 1 5 4 1 s e r i a l d r i v e s a n t h r e g r e s s i o n t B a s i c 2 . s y n t a x . W h a t w a o n c e a t r u s t e d f r i e n da m o n g t h e B a s i c 4 . P e t / C B M u s e r s h a d e g e n e r a t e d t l e v e l o o u t c a s t a m o n g a l l . E v e n t o d a y , a f t e r s c o r e s o b o o k s a n m a g a z i n ea r t i c l e s h a v e b e e n w r i t t e n a b o u t t h s u b j e c t , f e a r s p e r s i s t .

I t h f a c e o t h e s e f e a r s a n m i s c o n c e p t i o n s , s o m e b r a v e p r g r a m m e r s h a v e b a t t l e d t h o d d s a n w o n . M a n y d a t a b a s e ,a c c o u n t i n g a n c o m m u n i c a t i o n s s y s t e m s h a v e b e e n w r i t t e n , s o m ew e l l o t h e r s n o t s w e l l , m a k i n g u s o r e l a t i v e f i l e s a t h e i r m a i nd a t a s t o r a g e m e d i u m . A l t h o u g h r e l a t i v e f i l e s h a v e f e i n h e r e n tl i m i t a t i o n s s u c h a m a x i m u m r e c o r d l e n g t h o 2 5 c h a r a c t e r s ,m a x i m u m n u m b e r o r e c o r d s i f i l e o 6 5 5 3 5 a n d c a o t h m a x i m u m a m o u n t o s p a c e a v a i l a b l e f o u s b r e l a t i v e f i l e o d i s k , g o o d p l a n n i n g a n f e p r o g r a m m i n g t r i c k s h a v e b e e nk n o w n t m i n i m i z e t h p r o b l e m s . A n s o o t t h p u r p o s e o t h i sa r t i c l e .

T h P u r p o s e

T r a n s c r i b e 6 i 1 3 6 1 b y t e s o c o d e t h a t w i l l d o w h a t n o p r o g r a mh a d o n e b e f o r e ( t h e s h a d o w o S t a r T r e k l o o m s o v e r h e a d ) . I w i l ls i n g l e d r i v e c o p y r e l a t i v e f i l e s u s i n g t h C o m m o d o r e 6 w i t h a n C o m m o d o r e o c o m p a t i b l e d r i v e . A f t e r a l t h e s e y e a r s , y o c a n o d u p l i c a t e a l o y o u r r e l a t i v e d a t a f i l e s w i t h o u t b e i n g f o r c e di n t o b i c o p y i n g t h e n t i r e d i s k e t t e e a c h t i m e . A l t h o u g h l i t t l e l a t e ,i h a a r r i v e d .

A s t a t e d a b o v e , T r a n s c r i b e 6 w i l l c o p y r e l a t i v e f i l e s u s i n g a n C o m m o d o r e o c o m p a t i b l e d r i v e s u p p o r t i n g t h e m . I t h d r i v er e q u i r e s t h a t y o u s a I E E E i n t e r f a c e t h e n t h i n t e r f a c e m i g h t b t h o n l y s t u m b l i n g b l o c k i y o u r w a y . t e s t e d t h p r o g r a m u s i n gG L I N K I E E E i n t e r f a c e t c o m m u n i c a t e w i t h m 9 0 9 0 , 8 2 5 0 a n d2 0 3 1 d r i v e s . A c c e s s t m 1 5 7 1 ( i 1 5 4 1 m o d e ) w a m a d e i t h n o r m a l f a s h i o n . T h G L I N K i u n i q u e i t h a t i u s e s n R A w h a t s o e v e r . I o p e r a t e s b s w a p p i n g R O d e p e n d i n g o n t h s e t t i n g o t h s e r i a l / p a r a l l e l s w i t c h . T r a n s c r i b e 6 4 w r i t t e n e n t i r e l yi a s s e m b l e r , u s e s a l R A f r o m $ 1 0 0 0 - $ F F F F e x c e p t t h $ D 0 0 0 -$ D F F F a r e a ( 5 2 k o s t o r a g e ) . I a l s o u s e s 6 b y t e s o z e r o p a g e ( $ 5 7 -$ 5 C ) p l u s l o c a t i o n $ 0 f o s w a p p i n g o u R A a n R O M . F u r t h e r t t h a t , t h e i n p u t b u f f e r ( $ 0 2 0 0 - ) i u s e d t r e t r i e v e a n m o d i f y t h n a m e o t h f i l e t b c o p i e d . A n f i n a l l y , t h p r o g r a m i t s e l fo c c u p i e s m e m o r y f r o m t h s t a r t o B a s i c u b 1 3 6 1 b y t e s ( $ 0 8 0 1$ 0 D 5 1 ) . O t h e r t h a n t h a t , m e m o r y i u n t o u c h e d . I y o u r i n t e r f a c ed o e s n o r e l y o R A i a n o t h e a r e a s m e n t i o n e d , y o u ' r e o k a y .I n o t , y o c a e i t h e r r e - w r i t e t h e s o u r c e , w h i c h s h o u l d n ' t b t o d i f f i c u l t , o c h a n g e i n t e r f a c e s . Y o u r c h o i c e i y o a r f o r c e d i n t o

m a k i n g i t

T h p r o g r a m h a b e e n w r i t t e n t p e r f o r m a m a n y 5 2 p a s s e s a r e q u i r e d t c o p y t h r e l a t i v e f i l e c h o s e n . R e m e m b e r , t h o u g h , t h a tn o a l d i s k e t t e s a r c r e a t e d e q u a l w i t h r e g a r d s t r e l a t i v e f i l es t o r a g e s p a c e . T h 1 5 4 0 , 1 5 4 1 , 2 0 3 1 a n 4 0 4 0 c a s t o r e m a x im u o 6 5 b l o c k s o f r e l a t i v e d a t a i o n f i l e . T h 1 5 7 1 , i d o u b l es i d e d m o d e f r o m 6 m o d e , a n d t h D O 2 . v e r s i o n o t h 8 0 5 0c a h a n d l e 7 2 b l o c k s i t o t a l p e f i l e . T h D O 2 . v e r s i o n o t h 8 0 5 0 , a f t e r s e t t i n g i u t h a n d l e e x p a n d e d r e l a t i v e f i l e s , a l l o w sm a x i m u m o a b o u t 5 0 8 k o d a t a p e f i l e . T h D O 2 . 8 2 5 0 a l l o w s

m a x i m u m o a b o u t 1 . 0 4 m e g a b y t e s o d a t a p e r f i l e . T h C o m m od o r e 9 0 6 0 a n 9 0 9 0 h a r d d r i v e s a l l o w m a x i m u m o 4 . m e a n 7 . 3 5 m e o d a t a / r e l a t i v e f i l e c o n s e c u t i v e l y . A f a i l s a f e r u l ew h e n c o p y i n g r e l a t i v e f i l e s r e m e m b e r , w h e n i d o u b t , t h i n k .I m a g i n e t r y i n g t f i 7 . 3 5 m e g a b y t e s o d a t a o 1 6 7 k , 1 5 4 1d i s k e t t e . I c o u l d b t i g h t . E r r o r d e t e c t i o n h a b e e n b u i l t i n t o t h p r o g r a m s t h a t i p r o b l e m d e v e l o p s t h e n a l f i l e s w i l l b c l o s e du p t h o f f e n d i n g e r r o r n u m b e r w i l l b d i s p l a y e d a n c o n t r o l w i l lb p a s s e d b a c k t B a s i c . N o t o a w f u l .

H o I W o r k s

T s t a r t , n o a l o t h a v a i l a b l e R A i u s e d f o t h s t o r a g e o r e l a t i v e d a t a . O n b y t e / r e c o r d i c o n s u m e d a s c o u n t o t h n u m b e r o c h a r a c t e r s r e a d f r o m e a c h r e c o r d . T h i s m e t h o d i e m p l o y e d d u t t h f u n n y n a t u r e o f r e l a t i v e f i l e s . I f f o e x a m p l e ,y o u h a v e r e l a t i v e r e c o r d l e n g t h o 4 c h a r a c t e r s b u t , a f t e rp o s i t i o n i n g t t h f i r s t b y t e i t h r e c o r d , y o o n l y w r i t e 1 c h a r a c t e r s , y o w i l l f i n d t h a t y o c a n o n l y r e t r i e v e 1 0 c h a r a c t e r sf r o m t h a t r e c o r d l a t e r . R e g a r d l e s s o w h a t w a i t h e r e c o r d b e f o r et h l a s t w r i t e , D O w i l l p r e v e n t y o f r o m r e t r i e v i n g m o r e t h a n 1 c h a r a c t e r s . A f t e r r e a d i n g i t h t e n t h c h a r a c t e r , t h e v a r i a b l e S w i l l b s e t t o v a l u e o 6 4 , e n d - o f - f i l e . I y o p e r s i s t i r e a d i n gd a t a b e y o n d t h i s p o i n t , t h D O w i l l f o i l y o u r f o o l i s h a t t e m p t s a n p o s i t i o n t t h e n e x t r e c o r d a u t o m a t i c a l l y . O n b y t e / r e c o r d c o s u m e d i R A i m m e t h o d o c o m p e n s a t i n g f o t h e s t r a n g eb e h a v i o r o D O S .

T h p r o g r a m h a b e e n w r i t t e n t s i m p l y L o a d a n R u n . N s t r a n g eS Y a d d r e s s e s o s p e c i a l t h e a t r i c s t p e r f o r m b e f o r e u s i n g . O n c e i i u p a n d r u n n i n g , y o w i l l b p r o m p t e d t p l a c e t h e s o u r c ed i s k e t t e i d r i v e z e r o a n e n t e r t h e f i l e n a m e i w h i c h y o u w i s h t c o p y . D u a l d r i v e u s e r s b e w a r e : d r i v e z e r o i t h e o n l y o n a l l o w e df o t h o c c a s i o n . W h e n y o e n t e r t h f i l e n a m e , y o c a e n t e r i w i t h o r w i t h o u t d r i v e n u m b e r . T h l e n g t h o t h a c t u a l n a m ee n t e r e d i c h e c k e d t m a k e s u r e y o d o n ' t e x c e e d 1 c h a r a c t e r s .

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

T h T r a n s a c t o r 4 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 47/88

t h r o u g h t h d i s k s d i r e c t o r y ( v i a t h e q u i v a l e n t o o p e n 8 , 8 , 8 ,l o o k i n g s p e c i f i c a l l y f o r e l a t i v e f i l e p r o g r a m t y p e s ( $ 8 4 ) . I

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

i t h d i r e c t o r y f i l e n a m e i c h e c k e d t s e i i i S h i f t e di e C H R $ ( 1 6 0 ) . c o m p l e t e f i l e n a m e i t h e d i s k s d i r e c t o r y i

f o l l o w e d b e n o u g h S h i f t e d S p a c e s t p a i t h c o m p l e t eo 1 6 I t h n a m e h a l e n g t h l e s s t h a n 1 t h e n a n y t h i n g

t h a n C H R $ ( 1 6 0 ) w i l l s i g n i f y t h a t t h m a t c h i i n c o r r e c t .

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

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

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

t o p e n u t h r e l a t i v e f i l e f o q u i c k p a s s t h r o u g h . F i r s t ,f f i x o f , 1 , " p l u s t h r e c o r d l e n g t h i a d d e d t t h f i l e n a m e w i t he l e n g t h o t h f i l e n a m e u p d a t e d a c c o r d i n g l y , t h e n t h f i l e i

u p O n c e o p e n , l o o p b e g i n s w h i c h p o s i t i o n s t r e c o r d s # u n t i l a e r r o r * 5 0 , n o - r e c o r d - p r e s e n t , i d i s c o v e r e d v i

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

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

t a n l o c a t i o n S F F F F i m a r k e d a t h f i r s t r e c o r dc o u n t a d d r e s s . D a t a i s t o r e d i R A f r o m $ F F F F

F o l l o w i n g t h i s , t h e d a t a r e t r i e v e d f r o m t h e r e c o r d i i R A s e q u e n t i a l l y u n t i l S 6 4 W h e n t h i s o c c u r s , t h p o s i t i o n i i n c r e m e n t e d , t h n e r e c o r d i p o s i t i o n e d t o

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

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

I n d i c a t o r s

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

b e q u a l t t h e m . T h e y a r e :

V a l u e $ 0 0 : I n d i c a t e s t h a t t h e n o f i l e h a b e e n r e a c h e d a n m o r e d a t a i s l e f t t c o p y . W h e n t h w r i t e s e c t i o n o t h c o p y

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

V a l u e $ F F : W h e n t h r e a d s e s s i o n r u n s o u o a v a i l a b l ea g e s p a c e , i f l a g s c o u n t o 2 5 t i n d i c a t e t h a t m o r e d a t a

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

t h a t t h d i s k e t t e s b s w a p p e d a n w a i t u n t i l < c a r r i a g el o o p b e g i n s . O n c e < r e t u r n > i p r e s s e d , t h e s o u r c e f i l e i

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

f i l e .

h W r i t e S e s s i o n

T h w r i t e s e s s i o n i r e a l l y r e a d s e s s i o n i r e v e r s e . A l d a t a i p u l l e d s e q u e n t i a l l y f r o m R A a d d r e s s $ F F F F d o w n w a r d s , w i t ht h c o u n t o c h a r a c t e r s f o e a c h r e c o r d u s e d a a i n d e x f o t h w r i t e . T h e r e a r n s p e c i a l t r i c k s p e r f o r m e d i t h i s s e s s i o n . I s i m p l y g e t s t h e d a t a a n w r i t e s i t t h c o r r e c t r e c o r d n u m b e r .O n n o t e m u s t b m a d e a b o u t t h w r i t e s e s s i o n , t h o u g h . O t h f i r s t p a s s , t h e d e s t i n a t i o n f i l e m u s t b c r e a t e d b e f o r e i c a b a c c e s s e d . R e l a t i v e f i l e s a r f u n n y i t h i s r e s p e c t . U n l i k e s e q u e n t i a l ,u s e r o r p r o g r a m f i l e s t h a t e x p a n d a y o f i l l t h e m , r e l a t i v e f i l e sn e e d p r e d e t e r m i n e d b o r d e r s i w h i c h t o p e r a t e . T c r e a t e ar e l a t i v e f i l e , y o f i r s t o p e n i f o t h f i r s t t i m e w i t h t h c o r r e c tr e c o r d l e n g t h t h e n p o s i t i o n t t h m a x i m u m r e c o r d n u m b e r t h a ty o w i l l n e e d . F r o m t h e r e y o p r i n t C H R $ ( 2 5 5 ) ; t o t h a t r e c o r d .D O t h e n b u i l d s t h e f i l e a u t o m a t i c a l l y . O n c e c o m p l e t e a n t h e r r o r c h a n n e l r e p o r t s t h a t t h e c r e a t i o n w e n t o k a y , t h e a c t u a l w r i t es e s s i o n b e g i n s . A l t h o u g h t h f i l e c o u l d h a v e b e e n e x p a n d e d ,r e c o r d b r e c o r d , a t h e d a t a p r e s e n t e d i t s e l f w i t h o u t c r e a t i n g t h ee n t i r e f i l e f i r s t , f e l t i b e s t t d i t h i s w a t m a k e s u r e t h a t t h c o m p l e t e f i l e w o u l d f i o d i s k . I p r o v i d i n g t h i s f e a t u r e , t h s o u r c ea n o b j e c t w a i n c r e a s e d i s i z e c o n s i d e r a b l y . T h f i n a l r e s u l ts e e m s t b w o r t h t h e e x t r a e f f o r t i n v o l v e d .

A t h i s p o i n t w o u l d l i k e t o m e n t i o n t w v e r y s p e c i a l p e o p l e w h h e l p e d m w i t h m a k i n g t h i s p r o g r a m c o m e a l i v e . W h i l e w a i t h l a s t t h r o e s o w r i t i n g T r a n s c r i b e , a r o t t e n r o a d b l o c k m a t e r i a li z e d w i t h t h e 1 5 4 1 . A l t h o u g h t h p r o g r a m w o r k e d p e r f e c t w i t h m I E E E d r i v e s , t h 1 5 4 1 w a h a v i n g t a n t r u m . T h p r o g r a m w o u l dr e p e a t e d l y b o m b o u a f t e r c r e a t i n g t h d e s t i n a t i o n f i l e f o t h f i r s tt i m e . A e r r o r m e s s a g e n u m b e r ( ? w o u l d b d i s p l a y e d e a c h t i m ea f t e r c r e a t i o n . A t h i s s t a g e , t h 1 5 4 1 w o u l d b i a e r r o rc o n d i t i o n , f l a s h i n g i t ' s l i g h t s i r a t h e r d i s t u r b i n g m a n n e r . B r e a d i n g t h e e r r o r c h a n n e l , a ' r e c o r d - n o t - p r e s e n t ' e r r o r w a f o u n d .A o d s t a t e o a f f a i r s .

A f t e r r e p e a t e d a t t e m p t s t c u r e t h p r o b l e m , d i t h o b v i o u s ;c a l l e d J i B u t t e r f i e l d . J i m , i h i u s u a l p a t i e n t w a y , t o l d m t h a tm u s t h a v e d o n e s o m e t h i n g s t u p i d . A e r r o r n u m b e r c a n n o th a p p e n i B a s i c , t h e r e f o r e , m c o d i n g w a a t f a u l t . H p r o c e e d e dt r u t h r o u g h f e p o s s i b l e w a y s i w h i c h t h c o d e c o u l d b m e s s i n g t h i n g s u p o w h i c h o n l y o n r a n g f a i n t b e l l . A f t e r f e m o r e m i n u t e s o i d l e c h a t t e r o m p a r t , w h u n g u p T h f a i n t b e l ls t a r t e d t g e t l o u d e r . H h a a s k e d i w a r e a d i n g A L t h e d a t af r o m t h e r r o r c h a n n e l u n t i l r e a c h e d C H R $ ( 1 3 ) . w a n o b u t , i m t y p i c a l m y o p i c m a n n e r , c o u l d n o t s e e h o m I E E E d r i v e sc o u l d l i v e w i t h a i n c o m p l e t e l y r e a d e r r o r c h a n n e l w h e n t h e 1 5 4 1c o u l d n o t . T q u i c k l y f i n i s h u p J i w a r i g h t . A f t e r m o d i f y i n g t h c o d e t r e a d t h e e n t i r e m e s s a g e , t h 1 5 4 1 w a h a p p y . J i B . t o t h r e s c u e o n c e a g a i n .

T h p r o g r a m w a f i n a l l y w o r k i n g j u s t f i n e , s i w a t i m e t p h o n eC h r i s Z a m a r a t b o a s t a l i t t l e . A t h t i m e h w a b u s i l y p u t t i n gt o g e t h e r h i ' A n i m a l s ' p r o g r a m w h i c h r e l i e s o r e l a t i v e f i l e s f o r e c o r d k e e p i n g . D u r i n g o u c o n v e r s a t i o n m e n t i o n e d t h a t o n t h i n g w a s t i l l b o t h e r i n g m a f t e r c o m p l e t i n g t h e c o d e ; w o u l d t h 1 5 4 1 r e l i a b l y w r i t e t h e d a t a e a c h t i m e . h a t e s t e d i q u i t e b i b u s t i l l d i d n o t c o m p l e t e l y t r u s t i t A f t e r s m a n y y e a r s o b a p r e s s ,o l f e a r s d i h a r d . C h r i s c a m e u w i t h a a r t i c l e i n C o m p u t e !m a g a z i n e f r o m b a c k i J u l y 1 9 8 5 t h a t s t a t e d t h a t y o s h o u l da l w a y s p o s i t i o n t a r e c o r d , w r i t e y o u r d a t a , t h e n p o s i t i o n o n c ea g a i n t t h s a m e r e c o r d t p r e v e n t ' s p i l l - o v e r ' . I s o u n d e d o d d b u i s e e m e d t w o r k f o C h r i s . h a d b e e n p o s i t i o n i n g t w i c e t e a c hr e c o r d b e f o r e a r e a d o w r i t e , j u s t t b o t h s a f e s i d e . I w a n o

4 S e p t .

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 48/88

c l e a r t h a t w a i t h d a r k . A n o t h e r p h o n e c a l l w a i o r d e r .

O t h c o n c l u s i o n o o u c o n v e r s a t i o n , c a l l e d u D r G e r a l dN e u f e l d , t h e c o - a u t h o r o f ' I n s i d e C o m m o d o r e D O S ' ( D a t a m o s tI S B N 0 - 8 8 1 9 0 - 3 6 6 - 3 ) a n d a u t h o r o t h e ' 1 5 4 1 U s e r ' s G u i d e '( D a t a m o s t I S B N 0 - 8 8 1 9 0 - 3 9 6 - 5 ) . I r e l i a b l e a n s w e r w a n e e d e d ,w h n o g t t h s o u r c e ?

G e r a l d w a t e r r i f i c . W t a l k e d , h i g r a n d a u g h t e r p l a y e d i t h b a c k g r o u n d , a n l e a r n e d t h a t f o s e q u e n t i a l a c c e s s t o r e l a t i v ef i l e s , n s p e c i a l t r i c k s n e e d b p e r f o r m e d . s i n g l e p o s i t i o n a n w r i t e w o u l d w o r k j u s t f i n e . I w r i t i n g i r a n d o m s e q u e n c e t r e c o r d s w a r e q u i r e d , t h o u g h , t h e r e c o r d s h o u l d b e p o s i t i o n e d t t w i c e , t i m e d e l a y o a b o u t . s e c o n d s h o u l d b e i m p o s e d t h e n t h w r i t e c o u l d b e p e r f o r m e d s a f e l y . A f t e r f e m o r e m i n u t e s o c o n v e r s a t i o n , w s a i d g o o d b y e a n d b e g a n r e m o v i n g a l t h d u p l i c a t i o n s o p o s i t i o n i n g w i t h i n m c o d e . N e e d l e s s t s a y , i s t i l lw o r k e d j u s t f i n e . T r a n s c r i b e 6 4 w a c o m p l e t e d c o m m o d i t y .

B e f o r e f i n i s h i n g u p , s h o u l d m e n t i o n f e p o i n t s t h a t g l e a n e df r o m t h e ' 1 5 4 1 U s e r ' s G u i d e ' a n f r o m J i B u t t e r f i e l d . F i r s t , t h r e er e c o r d s i z e s a r e n o t a l l o w e d w h e n c r e a t i n g r e l a t i v e f i l e s . T h e y a r 4 2 5 8 a n d 6 3 A p p a r e n t l y , G e r a l d d i s c o v e r e d t h i s a f t e r m a n y d a y so e x h a u s t i v e t e s t i n g w i t h t h e 1 5 4 1 . H f i g u r e d t h a t D O g e t sc o n f u s e d w i t h t h e c h a r a c t e r s ' * C H R $ ( 4 2 ) , ' : C H R $ ( 5 9 ) a n d ' ? C H R $ ( 6 3 ) . F u r t h e r t o t h i s h s t a t e s t h a t t h p o s i t i o n w i t h i n t h r e c o r d s t a t e m e n t , i e . :

p r i n t # 1 5 , " p c h r $ ( S A O 9 6 ) c h r $ ( R e c * L o w ) c h r $ ( R e c # H i ) c h r $ ( P o s )

. . i d e f i n i t e l y n o a o p t i o n . P r o b l e m s w i l l d e v e l o p w h e n l e f t o f f .W h e n i w a u s e d , t h o u g h , h f o u n d i t b r e l i a b l e . F r o m J i B l e a r n e d n o t c r e a t e r e l a t i v e f i l e t h a t t a k e s u l e s s t h a n o n s e c t o r ( 2 5 4 ) o d a t a . A p p a r e n t l y t h s i d e s e c t o r i n f o r m a t i o n w i l l n o b w r i t t e n , t h e r e b y e c r e a t i n g m e s s . I t ' s s n i c e t g e g o o di n f o r m a t i o n .

I c o n c l u s i o n , a l i t t l e n o s g r e a t n e w s . W a r e n o t p r i n t i n g t h s o u r c e f o T r a n s c r i b e 6 t h i s i s s u e m a i n l y b e c a u s e i m e a s u r e s i a r o u n d 1 6 k . A l t h o u g h t h p r o g r a m i q u i t e u s e f u l , w h a v e s m u c h m o r e t p r i n t t h a t m s o u r c e g e t s l a s t p r i o r i t y . 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 D i s k * 1 a l o n g w i t h t h L o a d a n R u m o d u l e T r a n s c r i b e 6 4 F o t h o s e o y o s i n c l i n e d , m c o d e h a b e e n w r i t t e n u s i n g o n l y o n n o n - k e r n e l r o u t i n e , I n p u t . T h s o u r c e i w e l l c o m m e n t e d t h r o u g h o u t a n h a b e e n w r i t t e n i P A f o r m a t . F o a l i n t e n t i o n s , n o c o n s i d e r t h p r o g r a m a n s o u r c et b i p u b l i c d o m a i n a n w i s h y o a l t h b e s t o l u c k w i t h i t I y o m a k e m o d i f i c a t i o n s t t h s o u r c e c o d e a n f e e l i w o r t h y o g e n e r a l u s e , p l e a s e d r o p u c o p y s w c a i n c l u d e i o o u T r a n s a c t o r d i s k s . I y o m a k e r e v i s i o n , t h o u g h , m a k e s u r e t u p d a t e t h v e r s i o n n u m b e r a n d , i t h l e a s t , p u y o u r n a m e a n d a t e i t h s o u r c e l i s t i n g . T h i s w i l l h e l p w h e n d e t e r m i n i n g t h l a t e s t u p d a t e .

T r a n s c r i b e 6 4 B A S I C L o a d e r

D J

P N E C

1 0 0 0 r e s a v e " 0 : t r a n s c r i b e 6 4 . b a s "1 0 1 0 r e m * t r a n s c r i b e 6 4 : r t e / 8 61 0 2 0 r e m * r e l a t i v e f i l e c o p y p r 1 0 3 0 r e m f o t h c o m m o d o r e 6 1 0 4 0 :1 0 5 0 r e * t h i s p r o g r a m w i l l c r e a t e

,

P F

M D B

D

B

L I

K K E B N B N P O J O P J M K H J E I

O . K

K K M G

I A B

N H O B B E L E B E O K O K B

C P D H P K

H

1 0 6 0 r e m * l o a d a n r u m o d u l e o 1 0 7 0 r e m * d i s k c a l l e d ' t r a n s c r i b e 6 4 '1 0 8 0 :1 0 9 0 o p e n 1 5 , 8 , 1 5 : o p e n 8 , 8 , 1 , " O . t r a n s c r i b e 6 4 1 1 0 0 i n p u t # 1 5 , e , e $ , b , c : i e t h e n c l o s e 1 5

p r i n t e ; e $ ; b ; c : s t o p1 1 1 0 f o 2 0 4 9 t 3 4 1 1 : r e a d x p r i n t # 8 , c h r $ ( x ) ; :

c c x n e x t : c l o s e 81 1 2 0 i c h < > 1 3 6 1 6 7 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 p* m o d u l e c r e a t e d * * " :

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

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

5 4 8 7

0

1 1 3 0 p r i n t1 1 4 0 :1 1 5 0 d a t a 1 1 1 6 0 d a t a 4 8 1 1 7 0 d a t a 3 2 1 1 8 0 d a t a 1 8 9 ,1 1 9 0 d a t a 1 6 9 ,1 2 0 0 d a t a 2 0 1 ,1 2 1 0 d a t a 1 3 , 2 3 6 , 6 4 1 3 1 2 2 0 d a t a 1 3 , 1 6 9 , 1 5 , 1 6 2 ,1 2 3 0 d a t a 1 8 6 , 2 5 5 , 1 6 9 , 0 1 2 4 0 d a t a 1 9 2 , 2 5 5 , 3 2 , 1 8 5 ,1 2 5 0 d a t a 3 7 1 2 6 0 d a t a 1 6 0 ,1 2 7 0 d a t a 5 4 , 1 6 01 2 8 0 d a t a 2 5 5 , 3 1 2 9 0 d a t a 7 6 , 2 0 71 3 0 0 d a t a 1 6 0 ,1 3 1 0 d a t a 1 , 2 0 81 3 2 0 d a t a 2 0 6 , 6 1 3 3 0 d a t a 2 0 8 , 1 0 6 , 2 0 6 ,1 3 4 0 d a t a 2 0 6 , 6 4 1 3 1 3 5 0 d a t a 1 6 0 , 0 , 1 4 0 ,1 3 6 0 d a t a 2 0 1 , 5 8 , 2 0 8 ,1 3 7 0 d a t a 1 1 3 8 0 d a t a 6

6 4 0

9 6 3

1 3 1 6 9 ,1 7 6 ,

e n

0 1 5 8 ,0 1 6 2 ,

1 6 5 , 1 6 2 ,

5

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

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

6 5 3 3 3

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

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

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

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

3 2 , 2 0 7 , 2 5 5 , 2 0 1 , 1 3 26 4 , 1 3 , 3 2 , 2 0 7 , 2 5 53 2 , 2 0 7 , 2 5 5 , 1 5 2 , 7 6 5 1 3 , 1 7 3 , 1

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

1 3

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

2 0 6 , 6 2 , 2 0 85 6 1

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

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

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

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

1 4 5 0 d a t a 2 5 5 , 1 6 9 , 8 3 2 , 1 9 5 , 2 5 5 , 1 0 4 , 7 61 4 6 0 d a t a 3 0 9 , 1 0 4 , 1 6 8 , 3 2 , 2 0 7 , 2 5 5 , 2 0 61 4 7 0 d a t a 6 4 1 3 , 2 0 8 , 2 4 8 , 3 2 , 1 8 3 , 2 5 5 , 2 4 01 4 8 0 d a t a 1 3 3 2 , 2 0 4 , 2 5 5 , 1 6 9 , 8 3 2 , 1 9 51 4 9 0 d a t a 2 5 5 , 1 6 2 , 8 4 7 6 8 7 1 2 , 1 3 6 , 2 0 81 5 0 0 d a t a 3 7 6 , 1 1 9 , 8 7 6 , 1 2 1 , 8 , 1 7 4

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

6 0 1 3 , 1 5 7 , 0

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

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

7 0 6 9

8 0

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

0 , 2 4 01 , 1 4 1 , 6

1 3 3 2 5 0 2 4

6 9 1 3 , 2 0 81 3 , 2 0 8 , 2 3 2 , 2 0 6 , 6 91 3 , 2 0 1 , 2 5 5 , 2 0 8 ,

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

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

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

1 1 2 3 8 ,

1 1 4 1 ,1 3 1 6 9 ,

7 7 1 3 1 1 4 1 ,

4 1 , 2 5 27 4 1

S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 49/88

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

1 4 1 , 7 1 4 1 , 7 1 7 3 , 7

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

1 3 1 6 1 3 2 , 9 1

9 1 6 4 8 1

1 7 3 , 6 1 1 4 4 ,

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

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

9 1 6 9 ,1 3 , 1 4 1 ,7 3 1 3

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

1 9 2 , 0 9 0 1 3 3 ,

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

1 3 1 7 3 ,7 5 1 3

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

3 7 6 7 8 1 3

1 9 2 , 0 7 6 2 0 7 ,

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

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

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

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

1 1 7 7 ,1 8 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

F B I

B E D

I C M A

B E A A D D C P K I

A G M G O M K D O E M E A N A

H D D P F J K H J K O H N J D L L D

G E H M L A

2 2 7 0 d a t a2 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 a2 3 8 0 d a t a2 3 9 0 d a t a2 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 a2 7 6 0 d a t a2 7 7 0 d a t a2 7 8 0 d a t a2 7 9 0 d a t a2 8 0 0 d a t 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 a

1 4 1 3 4 8 6 6

1 7 3 ,6 6

0 7 3

2 5 5 ,1 6 9 ,

8 7 1 7 3 ,

1 1 7 3 ,1 8 9 ,

9 6 1 8 9 ,

5 1 1

1 8 5 ,7 9

1 4 1 ,1 2 3 2 1 1

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

1 3 8 4 6 9 3 2 3 2 1 3

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

0 1 0

6 3

2 0 4 ,1 4 1 ,

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

1 6 2 ,5 6

2 5 5 ,1 6 2 ,

6 7 2 0 8 ,

9 6 1 1 1 3 7 0

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

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

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

0 8 2

0 0 1 0

1 3 2 0 7 ,2 5 5 ,

6 6 2 0 2 ,

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

3 2 1 7 3 ,

1 3 8

1 3 3 2 1 5 1 3

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

1 3 1

2 5 5 ,7 2

1 6 9 ,3 2 1 2

2 4 5 ,2 4 9 ,

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

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

0 0

3 2 2 5 5 ,1 7 3 ,

1 3 2 0 8 ,

5 6 1 9 2 ,

1 5 2 5 5 ,2 5 5 ,1 9 5 ,

6 1 3 2

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

3 2 3 2 3 2

1 3 8 ,0

6 9 3 2 3 2 3 2

1 6 9 ,0

2 1 0 ,2 4 0 ,

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

0 1

2 0 2 0

6 2

2 5 2 3

2 3

1 6 3

2 5 1

2 1 1

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

3 2 2 4 0 ,

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

1 1 4 1 ,2 5 5 ,

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

0

2 5 5 ,1 3 1 3

1 6 2 ,1 4 1 ,

4 8 1 7 6 ,2 0 1 ,

4 8 1 1 9 ,1 6 2 ,

3 2 2 5 5 ,

3 2 1 6 0 ,

3 2 2 5 5 ,2 5 5 ,2 5 5 ,

8 7 1

1 7 3 ,1 1

2 5 5 ,2 5 5 ,

3 2 8 1 3 2 3 2

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

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

0 1 0 8 ,

0

1 4 1 ,2 0 8 ,

5 6 9

6 6 2 4

2 2 5 5 ,

3 2 1 1

1 8 2 ,2 1 0 ,

9 6 1 8 6 ,

2 1 1 9 ,1 6 2 ,2 3 2 ,

3 2 1 2 9 6 8 0 3 2

1 6 9 ,3 2

1 9 5 ,1 3

2 1 0 ,2 1 0 ,2 5 5 ,

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

0 0 1 0

6 2 4 2 3 1 0

1 1 0 1 6 1 6 2 1

9 3

2 5 1 6 2 5

3 1

2 2 1 1

3 1 7

1

2 5 1 1 2 5

9 2 5 2 5 2 0

6 7 8 4 1 6 3 3 6 7

7 6 6 8 8 8 8 6 7

6 3 6 3

c t o r 4 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 50/88

A n i m a l s :A E x e r c i s e I A r t i f i c i a l I n t e l l i g e n c eC h r i s Z a m a r a , T e c h n i c a l E d i t o r

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

P r o g r a m s l i k e t h i s h a v e a p p e a r e d i p u b l i c a t i o n s i t h p a s t ,i n c l u d i n g t h b o o k s W h a t t d a f t e r y o p r e s s R E T U R N " f r o mP e o p l e ' s C o m p u t i n g , a n D a v i d A h l ' s 1 0 B A S I C G a m e s " . A f a a k n o w , i m a h a v e b e e n a r o u n d o n m a i n f r a m e s l o n g b e f o r et h a t , s t h i s i n o t h i n g n e w : j u s t a i m p l e m e n t a t i o n w h i c h w i l l r u o t h P E T / 6 4 / V I C / 4 / B 1 2 8 e t c . , a n s o m e i d e a s a b o u t a p p l i c at i o n s . T h f i r s t t i m e h e a r d a b o u t t h a n i m a l s " p r o g r a m c o n c e p tw a i J i B u t t e r f i e l d ' s a r t i c l e c a l l e d " A r t i f i c i a l ( F a k e ? ) I n t e l l ig e n c e i r e c e n t T P U G m a g a z i n e . J i m ' s m e n t i o n o a n i m a l si n s p i r e d m t w r i t e t h e p r o g r a m p r e s e n t e d h e r e .

P u s i m p l y , A n i m a l s i D a t a b a s e w h i c h i n c r e a s e s i t k n o w l e d g ea i i u s e d , a n l o c a t e s r e c o r d s i t h D a t a b a s e b y a s k i n g s p e c i f i cq u e s t i o n s . I i c a l l e d a n i m a l s b e c a u s e i i t s i m p l e f o r m a p r e s e n t e d h e r e , i c a b u s e d a g u e s s t h a n i m a l " g a m e ,w h e r e t h c o m p u t e r t r i e s t g u e s s a n a n i m a l t h a t y o u ' r e t h i n k i n go b a s k i n g q u e s t i o n s . T b e g i n w i t h , t h p r o g r a m k n o w s o n l y t w a n i m a l s a n o n q u e s t i o n , a n b u i l d s i t k n o w l e d g e o a n i m a l s a i i u s e d , l e a r n i n g a n e a n i m a l e a c h t i m e i m a k e s w r o n g g u e s s .T i l l u s t r a t e h o i d o e s t h i s , t a k e a l o o k a t h i s s a m p l e s e s s i o n .T h o n l y t h i n g t h e p r o g r a m k n o w s a f i r s t i t h q u e s t i o n D o e s i l i v e i n t h w a t e r ? " a n t h a n i m a l s F i s h " a n H o r s e " .

D o e s i l i v e i t h w a t e r ? n * * I m i g h t b H o r s e

I t h a t c o r r e c t ( y / n ) ? y e

A l r i g h t ! g u e s s I ' p r e t t y s m a r t ! L i k e t p l a y a g a i n ?

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

D o e s i l i v e i n t h w a t e r ? n * * I m i g h t b H o r s e

I t h a t c o r r e c t ( y / n ) ? n

O k w h a t w e r e y o a c t u a l l y t h i n k i n g o f B i r d

W h a t y e s / n o q u e s t i o n c o u l d a s t d i s t i n g u i s h H o r s e f r o mB i r d ?

D o e s i f l A n r e g a r d i n g h o r s e , D o e s i f l y ? n T h a n k y o f o t e a c h i n g m n e a n i m a l !

P l a y a g a i n ?

T h p r o g r a m h a n o l e a r n e d n e a n i m a l , a n w i l l a s D o e s i f l y " w h e n e v e r i g e t a n o t D o e s i l i v e i n t h w a t e r ? " , a n g u e s s b i r d " o r h o r s e " d e p e n d i n g o t h a n s w e r . A t h p r o g r a m i u s e d m o r e a n m o r e , i l e a r n s n e a n i m a l s , a n c a i n t e l l i g e n t l y " g u e s s m a n y a n i m a l s c o r r e c t l y i t h p e o p l e w h t e a c h i g i v e g o o d q u e s t i o n s . T h i n t e r e s t i n g t h i n g a b o u t t h i sp r o g r a m i t h a t t h p r o g r a m m e r w h w r o t e i m a k n o w l i t t l e m o r et h a n t h a n i m a l s H o r s e a n F i s h , b u a f t e r h i s p r o g r a m h a b e e nu s e d b o t h e r s f o a w h i l e , i m a k n o w h u n d r e d s o a n i m a l s t h a th e ' s n e v e r h e a r d o f ( T h e a n i m a l s a n q u e s t i o n s a r e s t o r e d o d i s ki r e l a t i v e f i l e , i n d e p e n d e n t o t h p r o g r a m i t s e l f . ) L e f t i c l a s s r o o m , o b e t t e r y e t , w i t h f e z o o l o g i s t s , t h p r o g r a m w o u l db q u i t e w e l l - e d u c a t e d , a i w o u l d a s s i m i l a t e t h e s u k n o w l e d g eo a l w h u s e d i t

A f t e r b i m o r e u s e , s a m p l e s e s s i o n w i t h t h s a m e p r o g r a mm i g h t g s o m e t h i n g l i k e t h i s :

D o e s i l i v e i t h w a t e r ? n D o e s i f l y ? n C a y o r i d e i t n D o e s i h a v e s o f t f u r ? n I i c o v e r e d w i t h h a i r ? n D o e s i h a v e l e g s ? n D o e s i t o u g h - s k i n n e d ? y e sD o e s i e a a n t s ? y e

I m i g h t b a a a r d v a r k . I t h a t c o r r e c t ? y e

T h p r o g r a m g e t s s m a r t e r a i i u s e d , b u t o n l y w h e n g i v e nq u e s t i o n s w h i c h p r o p e r l y d i s t i n g u i s h t h t w a n i m a l s . A l s o , t h q u e s t i o n s g i v e n a r m o s t u s e f u l w h e n t h e y s p l i t t h y e s " a n n o a n s w e r s i n t o n e a r l y e q u a l g r o u p s . F o e x a m p l e , I y o u w e r e t g i v e a q u e s t i o n t d i s t i n g u i s h d o g f r o m c h i c k e n , " D o e s i b a r k ? " w o u l d b n o m u c h b e t t e r t h a n I i d o g " , s i n c e s m a n y m o r e p o s s i b i l i t i e s e x i s t o t h n o s i d e t h a n t h y e s " .b e t t e r q u e s t i o n i n t h i s c a s e w o u l d b D o e s i h a v e f e a t h e r s ? " , o e v e n D o e s i l a e g g s ? " , s i n c e s u c h q u e s t i o n s g i v e m o r e e v e ns p l i t a n w i l l l e a d t t h f i n a l a n s w e r q u i c k e r . T h s y s t e m i b a s i c a l l y a b i n a r y t r e e , w h e r e e a c h b r a n c h i q u e s t i o n t h a t l e a d st t w m o r e q u e s t i o n s o r a n s w e r s . C h o o s i n g g o o d q u e s t i o n s w i l lr e s u l t i a n e v e n l y d i s t r i b u t e d t r e e .

A n o t h e r t h i n g t k e e p i m i n d w h e n t e a c h i n g t h p r o g r a m n e a n i m a l i t h a t o n c e y o r e a c h t h e n o b r a n c h o t h t r e e , t h e r ei n w a t a d o t o t h a t b r a n c h . B e c a u s e o t h a t , y o c a n ' t t e a c ht h p r o g r a m a n a n i m a l l i k e b i r d " , a n t h e n l a t e r w a n t t g e m o r e s p e c i f i c a n t e a c h i s p a r r o w " o r o b i n " . O n c e i g u e s s e sb i r d , i t ' l l b r i g h t o w r o n g , a n i i t ' s r i g h t , y o u ' v e r e a c h e d t h e n o t h l i n e . I y o w a n t t h a v e m o r e s p e c i f i c d a t a b a s e , y o c o u l dt e a c h i s p a r r o w a n u s " i i a b i r d " a s t h e d i s t i n g u i s h i n gq u e s t i o n .

S e p t . l 9 8 6 : V 9 l u m e 7 . 0

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 51/88

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

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

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

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

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

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

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

h d a t a w h e n y o r u i t Y o c o u l d b u i l d u l o t s o f i l e sd i f f e r e n t t y p e s o i n f o r m a t i o n , a n t h e n j u s t R U t h

a n t e l l i t a n i m a l s " , p e o p l e " , a i r c r a f t " , f a m o u so w h a t e v e r y o c a r e t f i n d o u t a b o u t . F r o m d e s c r i p

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

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

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

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

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

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

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

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

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

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

q u e s t i o n s t a s t f i i u p A n t h p r o b l e m o e x p a n d i n gt h e n o b r a n c h c o u l d b s o l v e d b a l l o w i n g m u l t i p l e -

a n s w e r s i n s t e a d o j u s t y e o n o f o e x a m p l e , " i c o u l d b , 2 r o b i n , 3 ) d u c k " .

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

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

a l i k n o w s i t h q u e s t i o n D o e s t h e n g i n e t u r n o v e r ? " a n a n s w e r s C h e c k t h i g n i t i o n c a p " , a n C h e c k t h e b a t t e r y " .

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

c h a n i c , a n d h e f i n d s c o o k e d s t a r t e r s o l e n o i d . t h o u g h t i t h b a t t e r y " , y o s a y . N o " , s a y s t h m e c h a n i c , L o o k h o

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

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

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

i n t s t a r t ? " , a n s a n o f o t h b a s o l e n o i d . N o w , m u c h t t h d i s m a y o y o u r m e c h a n i c a n d b a n k m a n a g e r , y o a r o y o u rw a t b u i l d i n g a c o m p l e t e c a r - m a i n t e n a n c e d a t a b a s e .

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

p r o g r a m w a p r o p e r l y u s e d a t s a y , c a r d e a l e r s h i p ' s s e r v i c ed e p a r t m e n t , t h d u m b l i t t l e a n i m a l s p r o g r a m w o u l d h a v e t h e x p e r i e n c e o d o z e n m e c h a n i c s a i t d i s p o s a l . U s i n g t h 1 5 4 1d r i v e , y o c o u l d f i o v e r 1 , 7 0 0 q u e s t i o n s a n d i a g n o s e s o n t o a d i s k

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

o s i m p l e l e v e l .

B e f o r e y o R U t h " A n i m a l s " p r o g r a m i t h e f o l l o w i n g l i s t i n g ,y o u ' l l h a v e t c r e a t e t h e r e l a t i v e f i l e c o n t a i n i n g t h e d a t a b a s e . P a r to t h p r o g r a m i s e u t d t h i s f o r y o u : R U 5 1 0 0 0 t c r e a t e t h ef i l e . Y o w i l l b e a s k e d t h f i l e n a m e ( t h e d e f a u l t i a n i m a l s . d a t " ) ,a n t h m a x i m u m n u m b e r o r e c o r d s i t h f i l e . 2 0 0 0 i g o o d b i n u m b e r , c r e a t i n g f i l e w h i c h t a k e s 3 5 b l o c k s o d i s k . I w i l l t a k ea s h o r t w h i l e f o r t h i s f i l e t b c r e a t e d . O n c e c r e a t e d , t h f i r s tq u e s t i o n a n t h a n i m a l s f i s h a n h o r s e w i l l b w r i t t e n t t h f i l e t s t a r t y o o f f . Y o c a c h a n g e t h s t a r t q u e s t i o n a n a n s w e r s i l i n e s 5 1 1 1 0 t 5 1 1 3 0 . I a a n t i m e , y o w i s h t r e - s t a r t t h d a t a b a s e w i t h o u t r e - c r e a t i n g t h f i l e , j u s t R U 5 1 1 0 0 . T c o p yr e l a t i v e f i l e u s e d b y A n i m a l s , y o c a u s t h p r o g r a m " T r a ns c r i b e " , f r o m p a g e 4 2 i t h i s i s s u e .

O n c e t h f i l e i c r e a t e d , j u s t R U t h p r o g r a m a n e n t e r t h ed a t a b a s e f i l e n a m e o p r e s s R E T U R N t u s a n i m a l s . d a t " . F r o mt h e r e o n , y o c a u s a n i m a l s a d e s c r i b e d a b o v e . T a n s w e r t h y e s / n o q u e s t i o n s , j u s t p r e s s ' y o ' n w i t h o u t R E T U R N . T h p r o g r a m h a b e e n t e s t e d o a 8 0 3 2 , C - 6 4 , a n B 5 0 0 , a n d o n b o t ht h 8 0 5 0 a n 1 5 4 1 d r i v e s . I s h o u l d w o r k o t h e V I C , + a n C 1 2 a w e l l .

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

H o T h e P r o g r a m W o r k s

F o a l i t s e e m i n g b r i l l i a n c e , " A n i m a l s " i v e r y s i m p l e p r og r a m , a n w a q u i t e e a s y t w r i t e . E a c h q u e s t i o n o a n i m a l i s t o r e d a a r e c o r d i r e l a t i v e f i l e . T h f i r s t f o u r b y t e s o e a c hr e c o r d s t o r e t w p o i n t e r s , w h i c h a r a l z e r o i t h c a s e o a a n i m a l , a n p o i n t t o t h e r r e c o r d s i t h e c a s e o q u e s t i o n .Q u e s t i o n ' s f i r s t p o i n t e r p o i n t s t t h e r e c o r d r e a d f o " y e s "a n s w e r , a n t h s e c o n d i f o n o " . A d d i n g n e q u e s t i o nm e r e l y c o n s i s t s o i n s e r t i n g i i n t h i s c h a i n , b e t w e e n q u e s t i o na n a a n i m a l , a n m a k i n g i p o i n t t t h e a p p r o p r i a t e a n i m a l s .

F o e x a m p l e , w h e n t h p r o g r a m f i r s t s t a r t s u p t h e r e a r e t h r e er e c o r d s f i l l e d ( a c t u a l l y 4 s i n c e r e c o r d # h o l d s a p o i n t e r t t h n e x t

4 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e 0

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 52/88

a v a i l a b l e r e c o r d ) . R e c o r d * 2 c o n t a i n s t h q u e s t i o n D o e s i l i v e i nt h w a t e r " a n t h " y e s " p o i n t e r p o i n t s t r e c o r d * 3 " F i s h " ,a n t h n o p o i n t e r p o i n t s t H o r s e " i r e c o r d # 4 I y o a r t h i n k i n g o b i r d , y o u a n s w e r n o t t h q u e s t i o n a n t e l l i B i r d " . Y o t h e n g i v e i t h q u e s t i o n D o e s i f l y " a n s a f o b i r d s t h e a n s w e r i y e s " . T h p r o g r a m t h e n c h a n g e s t h n o p o i n t e r o " D o e s i l i v e i n t h w a t e r " t p o i n t t " D o e s i f l y " ,t h " y e s " p o i n t e r o " D o e s i f l y " p o i n t s t t h n e a n i m a l ,B i r d " , a n t h n o p o i n t e r p o i n t s t t h a n i m a l w h i c h p r e v io u s l y e n d e d t h b r a n c h , " H o r s e " . n e q u e s t i o n h a b e e ni n s e r t e d b e t w e e n a q u e s t i o n a n a a n i m a l , w i t h t h o l a n n e a n i m a l f o r m i n g t h t w o b r a n c h e s o t h n e q u e s t i o n . R e c o r dn o h o l d s t h n e q u e s t i o n , t h n e a n i m a l , a n t h n e x t -r e c o r d p o i n t e r i s e t 7 T s e h o t h f i l e l o o k s , R U 5 0 0 0 0 t d i s p l a y t h f i l e a l o n g w i t h t h e r e c o r d n u m b e r s a n p o i n t e r s . Y o u ' l ls e e t h e q u e s t i o n s a n d w h e r e t h e y p o i n t t o a n h o q u e s t i o n s a n a n i m a l s a r e s t o r e d i a l t e r n a t e r e c o r d s .

W h e n t h p r o g r a m r e s t a r t s a f t e r g u e s s i n g c o r r e c t l y , i c h a i n st h r o u g h e a c h q u e s t i o n b f o l l o w i n g t h e y e s " o n o p o i n t e r sd e p e n d i n g o n t h a n s w e r s t t h e q u e s t i o n s . W h e n a n a n i m a l i r e a c h e d a n i i i n c o r r e c t , t h a b o v e p r o c e s s i f o l l o w e d a g a i n t i n s e r t n e q u e s t i o n a n a n i m a l . S i m p l e , s t r a i g h t f o r w a r d c o d et h a t a i n t e r m e d i a t e p r o g r a m m e r c o u l d p r o d u c e w i t h l i t t l e e f f o r t .

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

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

T h a n k s g o e s t J i B u t t e r f i e l d f o r h i s i n s i g h t s a n h i a r t i c l eA r t i f i c i a l ( F a k e ? ) I n t e l l i g e n c e " , w h i c h i n s p i r e d t h i s p r o g r a m .

A n i m a l s ( P l e a s e n o t e : s o m e l i n e s w e r e a l t e r e d s l i g h t l y j u s tb e f o r e p r i n t i n g . V e r i f i z e r c o d e s f o t h e s e l i n e s w i l l s h o w a " — " . )

A C H E L P

E N G L A G O E K M I

D A 0

A I

1 0 r e " a n i m a l s " a p r o g r a m1 1 r e s i m p l e e x p e r t s y s t e m1 2 r e r u 5 1 0 0 0 t c r e a t e f i l e1 3 r e r u 5 1 1 0 0 t i n i t i a l i z e f i l e1 4 r e r u 5 0 0 0 0 t p r i n t f i l e1 5 r e s a v e " @ 0 : a n i m a l s 2 . 0 " , 1 6 0 :1 7 0 z $ = c h r $ ( 0 )1 8 s p [ 5 6 s p a c e s ]1 9 r 4 4 r e r e r e c o r d s i z e - 12 0 i n p u t " N a m e o d a t a f i l e [ 4 s p c s j a n i m a l s . d a t

[ 1 l e f t s ] " ; f $2 1 0 :2 2 r e m * m a i n p r o g r a m l o o p2 3 o p e n 1 5 , 8 , 1 52 4 o p e n 1 , 8 , 9 , f $2 5 p r i n t # 1 5 , " p ; c h r $ ( 9 ) c h r $ ( 1 ) c h r $ ( 0 ) c h r $ ( 1 )2 6 0 r e m f i r s t r e c o r d h o l d s n e x t a v a i l a b l e r e c o r d2 7 0 g e t # 1 , m 1 $ , m 2 $ : r e m i l o w , h f o r m a t2 8 0 m 1 $ l e f t $ ( m 1 $ z $ , 1 ) : m 2 $ l e f t $ ( m 2 $ z $ , 1 )2 9 0 m a x a s c ( m 1 $ ) 2 5 6 * a s c ( m 2 $ )3 0 0 :3 1 p r i n t " 0 * * [ 8 s p c s J T h i n k o a

a n i m a l [ 1 0 s p c s ] * * " ;

O

N I K

H O E K J L O I

H G L P H J P

o E

H F N B

H C L E O J D

C J

D

I

D

L

J P

H L

G

F

A P A

3 2 p r i n t " * * A n s w e r q u e s t i o n s w i t h ' y o ' n

3 3 0 r p = 2 : r e m p o i n t t f i r s t q u e s t i o n3 4 0 :3 5 r r p g o s u b 2 0 0 0 0 ' r e a d i d a t a3 6 i y e a n n t h e n 4 6 ' e n d o c h a i n3 7 0 r e m c h a i n t n e x t b r a n c h3 8 p r i n t m $ ; " ? " 3 9 g o s u b 1 0 0 0 0 : r e g e y / r e s p o n s e4 0 b p r p r e m e m b e r o l r e c o r d4 1 i y n y t h e n a y e s " : r y e s : o b 4 2 i y n n t h e n a n o r n o b 4 3 p r i n t a $ r e y e o n 4 4 g o t o 3 5 4 5 0 :4 6 r e e n o c h a i n - g i v e g u e s s4 7 p r i n t " 0 * * * I t m i g h t b ; m 4 8 p r i n t " I t h a t c o r r e c t ( y / n ) " 4 9 g o s u b 1 0 0 0 0 ' g e t a n s w e r y e o n 5 0 i y n y t h e n 9 5 ' f o u n d a n s w e r , w r a p u 5 1 0 r e m g o w r o n g a n s w e r , l e t ' s l e a r n f r o m i 5 2 p r i n t " n o " : p r i n t " 0 O K , w h a t w e r e y o u a c t u a l l y

t h i n k i n g o f 5 3 i n p u t " > " ; a n i m a l $5 4 p r i n t " E l W h a t y e s / n o q u e s t i o n c o u l d a s k "5 5 p r i n t " t o d i s t i n g u i s h a 5 6 p r i n t " ; m 5 7 p r i n t " f r o m a 5 8 p r i n t "5 9 i n p u t6 0 p r i n t6 1 p r i n t6 2 p r i n t

; a n i m a l $

. n r e g a r d i n g a "" ; m $ ; " , " : p r i n t q

( y / n ) " ;6 3 g o s u b 1 0 0 0 0 ' g e t y e s / n o6 4 0 r e m c r e a t e n e q u e s t i o n p o i n t i n g t c u r r e n t o

n e a n i m a l6 5 i y n y t h e n a y e s " : y n r p

n m a 1 r e n e y e s / n o p o i n t e r s6 6 i y n n t h e n a n o y m a + 1

n r p r e n e y e s / n o p o i n t e r s6 7 p r i n t a $ r e y e o n 6 8 r m a x : g o s u b 4 0 0 0 0 ' r e c o r d # ( m a x )6 9 y n g o s u b 3 0 0 0 0 : y n l h $ : r e c o n v e r t t

l h ( l o w h i 7 0 n n g o s u b 3 0 0 0 0 : n n l h $ : r e c o n v e r t t

l h ( l o w h i 7 1 0 p r i n t # 1 , y n $ ; n n $ ; l e f t $ ( q $ s p $ , r l - 4 )7 2 g o s u b 4 0 0 0 0 ' r e - p o s i t i o n t f o i l b u 7 3 0 r e m p o i n t o l d q u e s t i o n t n e 7 4 b g o s u b 2 0 0 0 0 ' r e a d i o l q u e s t i o n7 5 m a x : g o s u b 3 0 0 0 0 ' f i n d l o w . h i o n e

r e c o r d p o s i t i o n7 6 i f o t h e n y e s $ l h $ : r e p o i n t ' y e s ' p t r t o

n e q u e s t i o n7 7 i o b t h e n n o l h $ : r e p o i n t ' n o ' p t r t

n e q u e s t i o n7 8 r b p g o s u b 4 0 0 0 0 ' r e c o r d # 1 , ( b p )7 9 p r i n t # 1 , y e s $ ; n o $ ; m $ : r e r e - w r i t e m o d i f i e dr e c o r d8 0 g o s u b 4 0 0 0 0 ' r e - p o s i t i o n t f o i l b u 8 1 r e n o p u n e a n i m a l i n e x t a v a i l a b l e r e c o r d

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 53/88

F H

I K D

O K D C B G

L r — f .F

E —

L \ r I

C

1

8 2 r r - m a x 1 g o s u b 4 0 0 0 0 ' r e c o r d # 1 , ( m a x 1 8 3 p r i n t # 1 , z $ ; z $ ; z $ ; z $ ; l e f t $ ( a n i m a l $ s p $ , r l - 4 )8 4 0 g o s u b 4 0 0 0 0 ' r e - p o s i t i o n t f o i l b u 8 5 r e n o u p d a t e m a x . r e c o r d p o i n t e r8 6 r 1 g o s u b 4 0 0 0 0 s r e h a p t 8 7 m a m a r e 2 r e c o r d s h a v e b e e n a d d e d

t f i l e8 8 m a x : g o s u b 3 0 0 0 0 ' c o n v e r t t 2 - b y t e p o i n t e r8 9 p r i n t # 1 , l h $ ; l e f t $ ( s p $ , r l - 2 ) : r e p a w i t h s p a c e s9 0 g o s u b 4 0 0 0 0 ' r e - p o s i t i o n t f o i l b u 9 1 p r i n t : p r i n t " ^ T h a n k y o f o t e a c h i n g m

n e a n i m a l ! "9 2 g o t o 9 7 9 3 0 :9 4 r e g o r i g h t a n s w e r , w r a p u 9 5 p r i n t " y e s " : p r i n t " 0 A l r i g h t ! G u e s s I ' m p r e t t y

s m a r t . "9 6 0 :9 7 c l o s e 1 c l o s e 1 9 8 i n p u t " E J p l a y a g a i n [ 3 s p c s ] y [ 3 l e f t s ] " ; y n $9 9 i y n y t h e n 2 3

c \ r \ r \ / - \ r * . i - i1 0 0 0 e n d1 0 1 01 0 2 0 :1 0 0 0 0 r e m * s u b r o u t i n e t a c c e p t o 1 0 0 1 0 0 f o t 1 0 0 2 0 g e y n 1 0 0 3 0 r e f l a s h f a k e c u r s o r1 0 0 4 0 p r i n t m i d $ ( " Q 3 , s g n ( k a n 8 1 , 1 ) ;

[ s p c , c r s r l e f t ] " ;1 0 0 5 0 ( 1 a n d 2 5 51 0 0 6 0 - ( y n $ y o y n n " ) : n e x t1 0 0 7 0 r e u n t i l ' y o ' n p r e s s e d1 0 0 8 0 p r i n t " ; r e e r a s e c u r s o r1 0 0 9 0 r e t u r n1 0 1 0 0 :1 0 1 1 0 :2 0 0 0 0 r e s u b r o u t i n e t r e a d r e c o r d * ( r i

y e s $ , n o $ , m $2 0 0 1 0 r r g o s u b 4 0 0 0 0 : r e r e c o r d * , ( r )2 0 0 2 0 g e t # 1 , y 1 $ , y 2 $ , n 1 $ , n 2 $2 0 0 3 0 y e s $ l e f t $ ( y 1 $ z $ , 1 ) I e f t $ ( y 2 $ z $ , 1 )2 0 0 4 0 n o = l e f t $ ( n 1 $ z $ , 1 ) I e f t $ ( n 2 $ z $ , 1 )2 0 0 5 0 y e a s c ( y 1 $ z $ 2 5 6 * a s c ( y 2 $ z $ 2 0 0 6 0 n = a s c ( n 1 $ + z $ 2 5 6 * a s c ( n 2 $ z $ 2 0 0 7 0 i n p u t * " ! , m 2 0 0 8 0 r e s t r i p t r a i l i n g s p a c e s2 0 0 9 0 l 0 f o 1 t o l e n ( m $ ) : i f m i d $ ( m $ , k , 1 ) < >

" t h e n l c2 0 1 0 0 n e x t : i I t h e n m l e f t $ ( m $ , l c )2 0 1 1 0 r e t u r n2 0 1 2 0 :3 0 0 0 0 r e m * s u b r o u t i n e t c o n v e r t 1 6 - b i t ' n t

l o w . h i ' l h $ '3 0 0 1 0 h h n / 2 5 6 : l l n - 2 5 6 * h h % :

l h c h r $ ( l l % ) c h r $ ( h h % )3 0 0 2 0 r e t u r n3 0 0 3 0 :3 0 0 4 0 :4 0 0 0 0 r e m * s u b r o u t i n e t s i m u l a t e r r e c o r d # 1 , ( r r ) ' u s i n g

b a s i c 2 .

P N

K M G J I

M

I L

M L K M L

A J P I I I

N K I C

E K

I

E D E J N A

G F J

H F H A G M K M I

K M O A D D G

4 0 0 1 0 r h ° / o r r / 2 5 6 : r l ° / o r r - 2 5 6 * r h ° / o4 0 0 2 0 p r i n t # 1 5 , " p ; c h r $ ( 9 6 9 ) c h r $ ( r l % ) c h r $ ( r h % )

c h r $ ( 1 )4 0 0 3 0 r e t u r n4 0 0 4 04 0 0 5 05 0 0 0 0 r e m * * d u m p r e l a t i v e f i l e5 0 0 1 0 o p e n 1 5 , 8 , 1 55 0 0 2 0 i n p u t " N a m e o d a t a f i l e [ 4 s p c s j a n i m a l s . d a t

[ 1 l e f t s ] " ; f 5 0 0 3 0 o p e n 1 , 8 , 9 , f $5 0 0 4 0 z c h r $ ( 0 )5 0 0 5 0 p r i n t # 1 5 , " p ; c h r $ ( 9 ) c h r $ ( 1 ) c h r $ ( 0 ) c h r $ ( 1 ) :

g e t # 1 , l $ , h $5 0 0 6 0 n a s c ( l $ z $ 2 5 6 * a s c ( h $ z $ ) - 15 0 0 7 0 p r i n t : n r r e c o r d s i f i l e Q "5 0 0 8 0 r 2 r 0 r e r e c o r d # , l o / h i5 0 0 9 0 f o t n 5 0 1 0 0 p r i n t # 1 5 , " p ; c h r $ ( 9 ) c h r $ ( r l ) c h r $ ( r h ) c h r $ ( 1 )5 0 1 1 0 g e t # 1 , x $ , x 2 $ , x 3 $ , x 4 $ : i n p u t # 1 , a 5 0 1 2 0 p a s c ( x 1 z $ 2 5 6 * a s c ( x 2 $ z $ 5 0 1 3 0 p a s c ( x 3 $ z $ 2 5 6 * a s c ( x 4 $ z $ 5 0 1 4 0 p r i n t i ; " : " ; p 1 , p 2 , " [ " a $ " ] "5 0 1 5 0 r r + 1 i r l > 2 5 5 t h e n r 0 r r 5 0 1 6 0 n e x t : c l o s e 1 5 0 1 7 0 e n 5 0 1 8 0 :5 0 1 9 0 :5 1 0 0 0 r e m * * c r e a t e n e a n i m a l f i l e5 1 0 1 0 i n p u t " N a m e o d a t a f i l e [ 4 s p c s ] a n i m a l s . d a t

[ 1 l e f t s ] " ; f $5 1 0 2 0 i n p u t " m a x i m u m n u m b e r o r e c o r d s [ 6 s p c s ]

2 0 0 0 [ 6 l e f t s ] " ; 5 1 0 3 0 o p e n 1 5 , 8 , 1 55 1 0 4 0 o p e n 1 , 8 , 9 , f $ + " , ! , " + c h r $ ( 4 5 ) : r e r e l e 4 5 1 0 5 0 r m g o s u b 4 0 0 0 05 1 0 6 0 p r i n t # 1 , l e f t $ ( s p $ , 4 4 )5 1 0 7 0 c l o s e 1 c l o s e 1 5 g o t o 5 1 1 1 05 1 0 8 0 i n p u t " N a m e o d a t a f i l e [ 4 s p c s j a n i m a l s . d a t

[ 1 l e f t s ] " ; f $5 1 0 9 0 :5 1 1 0 0 r e m * * t e a c h f i r s t t w a n i m a l s5 1 1 1 0 i i $ = D o e s i l i v e i t h w a t e r " : r e m f i r s t

q u e s t i o n5 1 1 2 0 r 2 $ = F i s h " r e ' y e s ' a n s w e r5 1 1 3 0 r 3 $ = " H o r s e " : r e ' n o ' a n s w e r5 1 1 4 0 z $ c h r $ ( 0 )5 1 1 5 0 s p [ 5 s p a c e s ]5 1 1 6 0 o p e n 1 5 , 8 , 1 55 1 1 7 0 o p e n 1 , 8 , 9 , f $5 1 1 8 0 r r = 1 : g o s u b 4 0 0 0 05 1 1 9 0 p r i n t # 1 , c h r $ ( 5 ) ; z $ ; l e f t $ ( s p $ , 4 0 )5 1 2 0 0 g o s u b 4 0 0 0 0 : r r + 1 g o s u b 4 0 0 0 05 1 2 1 0 p r i n t # 1 , c h r $ ( 3 ) ; z $ ; c h r $ ( 4 ) ; z $ ; l e f t $ ( r 1 s p $ , 4 0 )5 1 2 2 0 g o s u b 4 0 0 0 0 : r r + 1 g o s u b 4 0 0 0 05 1 2 3 0 p r i n t # 1 , z $ z $ z $ z $ ; l e f t $ ( r 2 $ s p $ , 4 0 )5 1 2 4 0 g o s u b 4 0 0 0 0 : r r + 1 g o s u b 4 0 0 0 05 1 2 5 0 p r i n t * , z $ z $ z $ z $ ; l e f t $ ( r 3 $ s p $ , 4 0 )5 1 2 6 0 c l o s e 1 5 1 2 7 0 e n

T r a n s a c t o r 4 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 54/88

B R E A K K E 6 F r a n k E D i G i o i aA t h e n s , G e o r g i a

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

I y o h a v e e v e r u s e d m a i n f r a m e c o m p u t e r , y o a r p r o b a b l yf a m i l i a r w i t h t h B R E A K k e y . I o u t p u t i s c r o l l i n g b t o f a s t , y o c a h a l t i w i t h t h B R E A K k e a n t h e n c a u s e i t r e s u m e , w h e ny o a r e r e a d y , b p r e s s i n g r e t u r n . I a d d i t i o n t j u s t s t o p p i n go u t p u t , m o s t m a i n f r a m e c o m p u t e r s a l l o w o n t g i v e c o m m a n d sw h i c h a f f e c t p r o g r a m o u t p u t w h i l e i b r e a k m o d e . T h e s e a r u s u a l l y r e f e r r e d t a B R E A K - T I M E C O M M A N D S . I n t h i s a r t i c l ew w i l l e x a m i n e w e d g e w h i c h c o n v e r t s t h R E S T O R E k e o t h C 6 i n t o a B R E A K k e y , t h u s a l l o w i n g t h e u s e r t e n t e r b r e a k - t i m ec o m m a n d s t o a l t e r c e r t a i n p a r a m e t e r s w h i l e p r o g r a m i r u n n i n g .T h i s e x c i t i n g c a p a b i l i t y c a n b e t r e m e n d o u s a i i p r o g r a md e v e l o p m e n t a n m a k e s u s i n g o t h e r p e o p l e ' s p r o g r a m s - m o r ee n j o y a b l e .

W h B R E A K K e y ?

H e r e ' s t h s c e n a r i o : Y o g e a d i s k f u l l o p u b l i c d o m a i n s o f t w a r ea n b o o t u t h f i r s t p r o g r a m ( a a d d r e s s f i l e r o c o u r s e ) . Y o u ' r ei n s t a n t l y b l i n d e d b t h a u t h o r s c h o i c e o c o l o r s o r a n g e o c y a no p u r p l e . W h a t d y o d o S i m p l y h i t h B R E A K k e t i n t e r r u p tt h p r o g r a m , a d j u s t t h c o l o r s e x a c t l y t h w a y o w a n t t h e m a n t h e n h i R E T U R N t c o n t i n u e e x e c u t i o n . E a s y ! B u t h a t i o n l y t h b e g i n n i n g B R E A K K E 6 w i l l a l s o a l l o w y o t r e d i r e c t o u t p u tt o f r o m t h p r i n t e r , s e n e d e f a u l t c o l o r s f o R U N / S T O P -R E S T O R E , m a k e h a r d c o p y o t h e c u r r e n t t e x t s c r e e n o p e r f o r ma c o l d s y s t e m r e s e t . I i c o m p a t i b l e w i t h m o s t u t i l i t i e s i n c l u d i n gE p y x F a s t l o a d , t h D O w e d g e , l a s t i s s u e ' s c o m m a n d w e d g e a n f u n c t i o n w e d g e a n a l m o s t e v e r y n o n - c o m m e r c i a l p r o g r a m t h e r ei s I a d d i t i o n , B R E A K K E 6 i o p e n e n d e d s y o c a e a s i l y a d y o u r o w c u s t o m b r e a k - t i m e c o m m a n d s .

H o D o e s I W o r k ?

M o s t r e a d e r s a r p r o b a b l y a w a r e t h a t w h e n t h R E S T O R E k e i s t r u c k , i g e n e r a t e s N o n - M a s k a b l e I n t e r r u p t ( N M I ) t t h 6 5 1 0c h i p . T h a t i s t h 6 5 1 0 f i n i s h e s t h i n s t r u c t i o n i i c u r r e n t l yw o r k i n g o n s a v e s t h S T A T U S R E G I S T E R a n P R O G R A MC O U N T E R o t h e s t a c k a n d j u m p s t t h a d d r e s s f o u n d a $ 0 3 1 8 /$ 0 3 1 9 . I t h S T O P k e i n o p r e s s e d , h i t t i n g t h R E S T O R E k e a p p e a r s t d n o t h i n g e v e n t h o u g h i a c t u a l l y i n t e r r u p t s w h a t e v e rt h c o m p u t e r w a d o i n g a n e x e c u t e s s o m e R O r o u t i n e s b e f o r er e t u r n i n g f r o m t h i n t e r r u p t . C l e a r l y , a l w n e e d t d i o r d e r t t r a p t h R E S T O R E k e i t c h a n g e t h e v e c t o r a $ 0 3 1 8 / $ 0 3 1 9 t p o i n t a o u o w r o u t i n e . W m u s t b e s p e c i a l l y c a r e f u l , h o w e v e r ,n o t c h a n g e a n r e g i s t e r s o m e m o r y l o c a t i o n s w h i c h c o u l d a f f e c tt h B A S I C o m a c h i n e l a n g u a g e p r o g r a m w h i c h w i l l b i n t e r r u p t e d

b t h b r e a k k e y . T h i s m e a n s t h a t c a r e m u s t b e t a k e n i s e l e c t i n gR O r o u t i n e s t u s i y o u r b r e a k c o d e s i n c e s o m e o t h e s er o u t i n e s u s t h f l o a t i n g p o i n t a c c u m u l a t o r a n o t h e r v i t a l z e r op a g e l o c a t i o n s a s w o r k s p a c e . O n c o n s e q u e n c e o t h i s l i m i t a t i o ni s e e n i t h v e r y s i m p l e p a r s e r u s e d b B R E A K K E 6 4 R a t h e rt h a n r e l y o R O r o u t i n e s f o n u m e r i c i n p u t , o p t e d t o s e t t l e f o rs i m p l e o n e - c h a r a c t e r c o m m a n d s . I s h o u l d b n o t e d , h o w e v e r ,t h a t y o c o u l d a l w a y s c o p y a l o z e r o p a g e m e m o r y i n t o b u f f e rt h e n u s e a n R O r o u t i n e y o c h o o s e a n f i n a l l y r e p l a c e t h e z e r op a g e m e m o r y b e f o r e c o n t i n u i n g p r o g r a m e x e c u t i o n .

B R E A K K E 6 D e s c r i p t i o n :

T e n t e r b r e a k m o d e w i t h B R E A K K E 6 4 w h e t h e r p r o g r a m i r u n n i n g o n o t , y o n e e d o n l y t o s t r i k e t h R E S T O R E k e y . T l e a v eb r e a k m o d e p r e s s R E T U R N . O n t h i n g w h i c h m i g h t c o n f u s e y o a f i r s t i t h f a c t t h a t u p o n e n t e r i n g b r e a k m o d e , n o m e s s a g e i p r i n t e d t t h s c r e e n t l e y o k n o w t h a t y o a r i b r e a k m o d e .T h i s i t p r e v e n t t h e d i s p l a y f r o m b e i n g c o r r u p t e d i c a s e y o w a n t t m a k e h a r d c o p y o t h e s c r e e n . T e n t e r a c o m m a n d , t y p e

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

T h T r a n s a c t o r 5 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 55/88

T h c o m m a n d m a k e s h a r d c o p y o t h s c r e e n . T h i sc o m m a n d i p e r f e c t f o c o p y i n g d o w n i n s t r u c t i o n s c r e e n s ,n e a t l o o k i n g t i t l e s c r e e n s , a n y l o w r e s o l u t i o n g r a p h i c s , e t c .W h e n t h c o p y i c o m p l e t e , h i R E T U R N t c o n t i n u e t h p r o g r a m . Y o c a a b o r t t h e h a r d c o p y c o m m a n d b p r e s s i n gt h S T O P k e y .

T h c o m m a n d r e d i r e c t s a l s u b s e q u e n t o u t p u t f r o m t h s c r e e n t t h p r i n t e r . T h i s c o m m a n d s i m p l y o p e n s f i l e t t h p r i n t e r u s i n g t h e s a m e c h a r a c t e r s e a t h s c r e e n ( i u p p e r /l o w e r o u p p e r / g r a p h i c s ) a n t h e n c h a n g e s t h d e f a u l t o u t p u td e v i c e t d e v i c e # 4 B c e r t a i n t h a t y o u r p r i n t e r i t u r n e d o b e f o r e u s i n g / P

T h i s c o m m a n d ' u n d o e s ' t h e / c o m m a n d . I c l o s e s t h e p r i n t e rf i l e a n c h a n g e s t h d e f a u l t o u t p u t d e v i c e b a c k t t h e s c r e e n .N o t e : I t h / c o m m a n d d o e s n ' t s e e m t w o r k , i p r o b a b l ym e a n s t h a t y o n e v e r i s s u e d a / a f t e r y o u r l a s t / t c l e a rB R E A K K E 6 4 ' s i n t e r n a l o u t p u t f l a g . I s s u i n g / s h o u l dc o r r e c t t h p r o b l e m .

T h i s c o m m a n d c h a n g e s t h e c u r r e n t s c r e e n c o l o r s . A f t e r t y p i n g/ y o a r i C O L O R m o d e . P r e s s t c h a n g e t h t e x t c o l o r .P r e s s t c h a n g e t h E d g e ( b o r d e r ) c o l o r a n d a n d p r e s s t c h a n g e t h ( b a c k ) G r o u n d c o l o r . W h e n y o h a v e a d j u s t e d t h ec o l o r s t y o u r l i k i n g , p r e s s R E T U R N t e x i t C O L O R m o d e . Y o a r t h e n b a c k t B R E A K m o d e .

T h i s c o m m a n d s e t s t h e c u r r e n t s c r e e n , b o r d e r a n t e x t c o l o r sa t h d e f a u l t c o l o r s f o R U N - S T O P / R E S T O R E . F o i n s t a n c e ,i y o i s s u e t h i s c o m m a n d w h i l e t h e c u r r e n t s c r e e n c o l o r s a r eg r e e n , b l u e a n g r a y a n t h e n c h a n g e t h c o l o r s t a n y t h i n ge l s e , w h e n y o h i R U N - S T O P / R E S T O R E t h s c r e e n w i l l g b a c k t g r e e n , b l u e a n g r a y .

T h c o m m a n d c a u s e s a c o l d s y s t e m r e s e t . T h i s c o m m a n d i i n c l u d e d i c a s e t h e C 6 e v e r r e f u s e s t o b e y c o m m a n d s f r o mt h k e y b o a r d . Y o s h o u l d s t i l l b a b l e t m a k e i r e s p o n d t t h R E S T O R E k e y . T h i s s i m p l e c o m m a n d i t h s a m e a S Y 6 4 7 3 8 .

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

i d e a s m i g h t i n c l u d e a H I R E S s c r e e n d u m p o B S O U Tt o a l t e r t h p r i n t s p e e d , e t c .

a l N o t e s :

a r s e v e r a l m i n o r l i m i t a t i o n s t B R E A K K E Y 6 4 ( 1 I N E V E R b u s e d t i n t e r r u p t d i s k o p e r a t i o n s s u c h a L O A D ,

o p r i n t i n g d i r e c t o r y w i t h t h D O w e d g e . I n t e r r u p t i n g ao p e r a t i o n w i l l a l m o s t c e r t a i n l y c a u s e t h C 6 t m i s s

s i g n a l w i t h t h e d r i v e c a u s i n g t h c o m p u t e r a n d r i v e' h a n g u p ' . N o w , b e f o r e y o u b l a m e B R E A K K E 6 4 n o t e t h a t t h

w i l l a l w a y s g e ' h u n g u p i y o p r e s s t h e R E S T O R E k e a d i s k o p e r a t i o n e i t h e r w i t h o w i t h o u t B R E A K K E 6

p r e s e n t ( i y o d o n ' t b e l i e v e t h i s i t r u e , t y p e L O A D " $ , s t r i k e t h R E S T O R E k e f e t i m e s w h i l e t h d i r e c t o r y i

( 2 B R E A K K E 6 d o e s n ' t a l l o w r e c u r s i o n . T h a t i s y o r e e n t e r b r e a k m o d e u n t i l y o f i n i s h t h e c u r r e n t b r e a k m o d e

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

i y o h i R E S T O R E t e n t i m e s , y o u ' l l h a v e t h i R E T U R N t e t i m e st l e a v e b r e a k m o d e . ( 3 I i p o s s i b l e t d o u b l e o t r i p l e b o u n c e t h R E S T O R E k e c a u s i n g y o t e n d u p w i t h t h e C 6 d e f a u l t c o l o r so t h s c r e e n i n s t e a d o t h d e f a u l t s y o s e l e c t e d a n B R E A K K E 6 w i l l b d e a c t i v a t e d . T h i s s i t u a t i o n d o e s n o n o r m a l l y o c c u ru n l e s s y o r e a l l y t r t m a k e i h a p p e n . I i d o e s o c c u r , h o w e v e r ,y o w i l l h a v e t r e a c t i v a t e B R E A K K E 6 w i t h S Y 5 0 4 3 2 .

T h e r e a r t w o p r o g r a m l i s t i n g s i n c l u d e d w i t h t h i s a r t i c l e . L I S T I N Gi t h B A S I C l o a d e r f o B R E A K K E 6 4 L I S T I N G i t h

a s s e m b l y l a n g u a g e s o u r c e c o d e f o t h p r o g r a m . T h e r e a r e s e v e r a ls t a n d - a l o n e s u b r o u t i n e s i n c l u d e d i B R E A K K E Y 6 w h i c h y o m a f i n d u s e f u l i y o u r o w p r o g r a m s . T h e s e r o u t i n e s i n c l u d eL O P E N , L C L O S E , D E C O D E , S T O P a n C H G T X T .

B R E A K K E 6 i a c t i v a t e d w i t h :

S Y 5 0 4 3 2

( $ C 5 0 0 ) a n i s o c o u r s e , i m m u n e t R U N / S T O P - R E S T O R E .

B R E A K K E 6 4 B A S I C L o a d e r

H J O G N H

H O K B H N K A

I D D J I E P F J

M F I

C A N E E G N B

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

r e b a s i c l o a d e r f o r e s t o r e w e d g er e b f r a n k d i g i o i a 0 2 / 2 7 / 8 6r e s y 5 0 4 3 2 t a c t i v a t e

f o a d = 5 0 4 3 2 t 5 1 0 0 7 : r e a d m c c + m h p o k e a d r , m l : n e x ti f c s < > 7 3 0 1 4 t h e n p r i n t " e r r o r i d a t a "d a t a 1 6 9 ,d a t a 4 1 d a t a 3 d a t a 7 5 d a t a 7 8 d a t a 0 d a t a 1 6 2 ,d a t a 3 2 d a t a 8 8 d a t a 2 0 1 ,d a t a 6 5 d a t a 3 2 d a t a 1 9 7 ,d a t a 1 7 d a t a 1 5 d a t a 1 3 d a t a 7 6 d a t a 1 9 8 ,d a t a 2 4 d a t a 1 0 8 ,d a t a 1 6 9 ,d a t a 2 5 1 ,d a t a 2 5 1 ,d a t a 2 1 0 ,d a t a 1 9 2 ,d a t a 2 5 5 ,

1 8 1 4 1 ,

9 6 6 9 8 3 7 2

1 9 8 ,2 3 9 ,

3 2 4 7

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

9 6 2 2 6 ,

3 2 2 2 9 ,

2 1 2 3 ,1 6 9 ,

3 2 2 5 5 ,

4 0 1 7 3 ,

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

1 3 8 ,1 4 1 ,1 9 8 ,

8 8 2 0 8 ,

3 2 2 5 5 ,

7 2 6 7 8 3 7 6

2 5 2 ,2 1 3 2

1 6 0 ,3 2

4 2 4 9 ,

3 2 1 4 4 ,2 3 1 ,

1 9 7 , 3 2 3 1 6 9 ,

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

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

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

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

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

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

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

1 4 2 , 2 5 7 6 1 3 7 , 1 9 71 3 , 2 4 0 , 1 9 4 , 1 9 7 , 7 67 6 1 8 8 , 2 5 49 6 , 3 2 , 8

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

2 0 1 ,2 0 1 ,2 0 1 ,

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

6 3

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

2 3 1 , 1 9 70 1 3 0 1 7

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

1 3 3 2 , 2 1 02 1 0 , 2 5 5 , 1 6 5

T r a n s a c t o r 5 1 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 56/88

D A A L C N F

I I

N O M N C H B O M O P F J O N E E J N C M E A M N M

I L P F

E A J D L P O E

9 4 8 3 7 9

6

4 4 d a t a 2 5 1 ,4 5 d a t a 2 3 0 ,4 6 d a t a 2 0 4 ,4 7 d a t a 1 3 3 ,4 8 d a t a 1 6 4 9 d a t a5 0 d a t a5 1 d a t a5 2 d a t a5 3 d a t a5 4 d a t a5 5 d a t a5 6 d a t a5 7 d a t a 1 9 8 ,5 8 d a t a 7 6 5 9 d a t a 1 7 3 ,6 0 d a t a 2 0 6 1 d a t a 9 3 6 2 d a t a 3 6 3 d a t a 3 6 4 0 . d a t a 9 6 5 d a t a 1 2 6 6 d a t a 1 66 7 d a t a 2 2 6 8 d a t a 7 6 9 d a t a 2 1 7 0 d a t a 2 1 7 1 d a t a 1 4 7 2 d a t a 1 4 7 3 d a t a 2 5 17 4 d a t a 1 9 7 5 d a t a 9 7 6 d a t a 1 4 7 7 d a t a 1 7 7 8 d a t a 1 3 7 9 d a t a 38 0 d a t a 48 1 d a t a 3 8 2 d a t a 48 3 d a t a 1 9 8 4 d a t a 1 6 8 5 d a t a 1 6 8 6 d a t a 1 8 8 7 d a t a 7 8 8 d a t a 1 6 8 9 d a t a 1 0

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

2 7 2 1 0

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

9 6 3 2

2 0 8 ,2 0 1 ,

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

4 1 4 1 ,1 9 8 ,1 4 1 ,

3 2 1 6 9 ,

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

9 3 7 2 7 6

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

7 4

2 5 5 ,2 0 1 ,

1 3 7 6

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

4 1 9

1 7 3 ,7 2

2 5 5 ,1 8 3 2

2 0 1 ,1 4 7 ,

6 7 1

1 9 8 ,2

9 2 9 6

1 6 9 ,3 7

1 7 3 ,9 4 9 5

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

3 2 2 4

2 2 0 8 ,

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

4 0 2 4 4 4 3 2 3 2

2 5 5 ,3 2

1 9 5 ,

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

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

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

1

4 9 1

1 7 3 ,0

3 2 1 9 8 ,

3 3 1 0 3 8 4 7 1 4

4 9 6 , 1 6 9 ,9 4 , 1 9 8 , 1 6

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

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

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

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

5 , 1 9 9 , 3 2 8 1 7

9 6 2 0 8 , 2 0 11 6 0 , 0 , 1 7 31 8 6 , 2 5 5 , 1 6 1 9 2 , 2 5 5 , 1 7

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

5 0

2 1

B R E A K K E 6 4 S o u r c e C o d e1 0 ; r e s t o r e w e d g e b r e a k - t i m e c m d s .1 1 b f r a n k e d i g i o i a1 2 0 : 1 1 / 1 9 / 8 51 3 0 ;1 4 0 . = $ c 5 0 01 5 0 ;

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

3 6 , 2 1 59 6

1 4 1 0 2 3 1 , 1 9 7

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

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

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

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

4 1 6 1 9 3

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

2 3 3 2 , 2 0 89 6 7

1 9 8 , 2 0 82 5 4 , 1 4 11 8 8 , 2 4 61 9 9 , 1 7 1 4 1 , 6 2 4 0 ,

6 0 , 1 9 90 3

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

1 6 0 c h r o u t1 7 0 g e t i n1 8 c o l d1 9 0 ;2 0 2 1 2 2 2 3 0 ;2 4 b r k i n t2 5

I d I d j s

I d s t

$ f f d 2$ f f e 4$ f c e 2

# < m s g# > m s gS a b l e

# < r w d g$ 0 3 1 8

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

p o i n t t m e s g; p r i n t m e s g

; s e t u p n m w e d g e; n m i v e c t o r

F O E N M M G O A F t I

P M P G K O P N F M H J J O G O J M P G K I E O C c N H M 0 M M E M P M J

C A

I F I

D G F O B A O L E G B O H B

G G N H L N M

I M A G A J F B O

J F A A

O O B

2 6 2 7 2 8 2 9 m s 3 0 3 1 0 ;3 2 r w d g3 3 3 4 3 5 3 6 3 7 0 ;3 8 3 9 4 0 4 1 4 2 0 ;4 3 4 4 4 5 4 6 4 7 0 ;4 8 w r l o o p4 9 5 0 5 1 5 2 5 3 5 4 5 5 0 ;5 6 r e t u r n5 7 5 8 0 ;5 9 w a i t l p6 0 6 1 6 2 0 ;6 3 c h k c m d6 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 0 ;7 8 j m p t a b7 9 8 0 8 2 8 3 8 4 0 ;8 5 n e w r s r8 6 8 7 8 8 0 9 9 0 9 1 9 2 0 ;9 3 ; h r d c p y

I d s t r t . b y t e

# > r w d g$ 0 3 1 9

' b r e a k k e 6 i n s t a l l e d 1. b y t e $ 0

p h t x p h t y p h

I d I d s t s t

j s b n i m c l

j s c m b e c m b n j s i m

j s i m j s b e r t

j s c m b e c m b e c m b e c m b e c m b e c m b e r t

i m i m j m i m

j s j s j s j s j s i m

# < b r k 2# > b r k 2$ 0 3 1 8$ 0 3 1 9

s t o p

n e w r s r

w a i t l p# $ 0 dr e t u r n# ■ ■ / "w r l o o pc h k c m dw r l o o p

b r k i n t$ f e b c

g e t i nw a i t l p

w a i t l p# " h "h r d c p y# - p "j m p t a b# c

; s a v e r e g s

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

; s c a n s t o p k e ; n o t p r e s s e d; r u n / s t o p - r e s t o r e

a l l o w k e y b o a r d

; c h e c k k e y b o a r d; c a r r i a g e r e t u r n ?

; c o m m a n d c o m i n g ?; n o / k e e p w a i t i n g; c h e c k c o m m a n d; w a i t f o r m o r e

r e s t o r e w e d g e; r e s t o r e r e g s / r t i

; c h e c k k e y b o a r d; k e p r e s s e d ?

; g e t c m m d b y t e; h a r d c o p y ?

; p r i n t e r ?

; c o l o r s ?j m p t a b +# " . "j m p t a b# s j m p t a b# " d "j m p t a b

p r n t e rc o l o r sr s c r nd e f a l t

$ f d 1 5$ f d a 3$ e 5 1 8s e t d e fb r k i n t( $ a 0 0 2 )

; r e s e t ?

; r e s t o r e s c r e e n ?

; d e f a u l t s ?1

; g t w a i t l o o p

; j u m p t a b l e

; n e w s t o p - r e s t o r ei n i t i a l i z e v e c t o r s; l n i t s i d / v i c r e g s

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

i n i t i a l i z e w e d g eb a s i c w a r m s t a r t

- d u m p s t h t e x t s c r e e n9 4 t t h p r i n t e r . u s t s a v e9 5 ; l o - r e s g r a p h i c s , n o t e s ,9 6 0 ;9 7 o p e n9 8 c l o s e9 9 c l r c h1 0 0 0 c h k o u t1 0 1 0 s e t l f s1 0 2 0 s e t n a m1 0 3 0 ;1 0 4 0 h r d c p y1 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 0 ;1 1 4 0 r w i o o p1 1 5 01 1 6 0 ;1 1 7 0 c h l o o p

I d s t I d j s I d s t I d s i

I d

S l f c O$ t f c 3$ f f c c

$ f f c 9$ f f b a$ f f b d

# $ 9 2r e v f l g# $ 7 bl o p e n# $ 0 0$ f # $ 0 4$ f

# $ 0 0

e t c .

; o p e n f i l e; c l o s e a f i l e; s e t s t a n d a r d i /

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

; d u m p s c r e e n t o p r i n t e r; n o r m a l m o d e f l a g; s e t r e v e r s e f l a g; f i l e # 1 2 3; o p e n p r i n t e r f i l e

; s t o r e s c r e e n a d

; a p o i n t e r

; l o o p o v e r r o w s; r e s e t c o l u m n c o u n t

; l o o p o v e r c o l u m n s

T h T r a n s a c t o r 5 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 57/88

1 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 ;1 2 8 0 e o p l1 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 0 ;1 4 3 0 h e n d1 4 4 01 4 5 01 4 6 01 4 7 0 ;1 4 8 0 r e v f l g '1 4 9 0 ;1 5 0 0 ; d e c o d e

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

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

j s I d i m

( $ f b ) , yc h k m d ed e c o d ec h r o u ts t o ph e n d

# $ 2 8c h l o o p

# $ 0 dc h r o u tr e v f l gc h r o u t$ f

# $ 2 8$ f

$ f

# $ 1 9r w l o o p

c l r c h# $ 7 bI c l o s e

. b y t e $ 9

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

y e s / f i n i s h u

; 4 0 t h c o l u m n y e t ?

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

u p d a t e s c r e e n p o i n t e r

; t n e x t r o

; n e e d t o i n c r h b y t e ?

; i n c r r o c o u n t e r; 2 5 t h r o y e t ?

f i n i s h e d !r e s t o r e n o r m a l i /

; c l o s e p r i n t e r

t h i s r o u t i n e c o n v e r t s1 5 1 0 ; c h a r a c t e r f r o m i t s c r e e n1 5 2 0 ; c o d e r e p r e s e n t a t i o n t a s c i i .1 5 3 0 ; t h i s i c o p i e d d i r e c t l y f r o m1 5 4 0 ; t h e k e r n a l r o a $ e 6 3 e ( c u r s o r1 5 5 0 ; s t u f f r e m o v e d1 5 6 0 ;1 5 7 0 d e c o d e1 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 0 ;1 6 8 0 ; c h k m d e

s t a n a s b i b p o r b v o r r t

$ d # $ 3 f$ d $ d . + # $ 8 0. + # $ 4 0

; s c r e e n c o d e t a s c i i; s t o r e c o d e; m a s k o u t t o p 2 b i t s; m u l t c o d e b y t w oc o n d i t i o n f l a g s; " b i t 7 c l e a r ?; n o - s e t b i i . ; b i s e t ?; n o - s e t b i ; a s c i i c o d e n o i .

c h e c k s o n n o r m a l o 1 6 9 0 ; r e v e r s e s e n d s c o d e t o p r i n t e r1 7 0 0 ;1 7 1 0 c h k m d e1 7 2 01 7 3 01 7 4 01 7 5 01 7 6 01 7 7 01 7 8 0 h c 11 7 9 01 8 0 01 8 1 0 c h k x1 8 2 0 ;1 8 3 0 n e r m a l1 8 4 01 8 5 01 8 6 01 8 7 01 8 8 0 ;

p h I d b m p l b m p h I d s t j s p l r t

p l b p p h I d b n

r e v f l gn e r m a l

c h k x

# $ 9 2r e v f l gc h r o u t

c h k x

# $ 1 2h

1 8 9 0 ; / c o m m a n d ( c o l o r s )1 9 0 0 ;1 9 1 0 c o l o r s1 9 2 01 9 3 0 z l o o p1 9 4 01 9 5 01 9 6 01 9 7 0 ;1 9 8 01 9 9 02 0 0 02 0 1 02 0 2 02 0 3 0 ;2 0 4 02 0 5 02 0 6 02 0 7 0

I d j s j s c m b n r t

c m b n

n j s i m c m b n m i m

# $ 0 3o u t p u tw a i t l p# $ 0 d. +

# t 1

$ 0 2 8 6c h g t x tz l o o p

# e

$ d 0 2 0z l o o p

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

r e t r i e v e s c r e e n c o d er e v e r s e / n o s w e a t

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

; g e t s c r e e n c o d en o r m a l / n o s w e a t

; s a v e c o d e a g a i n; r e v / s w i t c h m o d e; f i n i s h u

; c o d e f o r ' c ' . p r i n t c o m m a n d n a m e; w a i t f o r k e ; " r e t u r n ?; n o / k e e p g o i n g

; t e x t ?n o / c h e c k o e d g e

; i n c t e x t c o l o r; c h a n g e t e x t c o l o r

; e d g e ( b o r d e r ) ?n o / c h e c k o n g r o u n d

; i n c b o r d e r c o l o r

G F M O O

I J

M L O B

D G P

M G

C B K

M G G

I M G A L C I

F K

I E A E E F B

A M G A M G O E C M H O K A O F C

L G M K H C

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

2 0 8 0 ;2 0 9 02 1 0 02 1 1 02 1 2 02 1 3 0 ;

c m b n i n i m

# " g "z l o o p$ d O 2 1z l o o p

; ( b a c k ) g r o u n d ?; n o / m u s t b e t y p o; i n c b c k g r n d c o l o r

2 1 4 0 ; / c o m m a n d ( s e t d e f a u l t s )2 1 5 0 ;2 1 6 0 d e f a l t2 1 7 02 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 0 ;2 2 7 0 d 2 2 8 0 d 22 2 9 0 d 2 3 0 0 p f l a g2 3 1 0 ;

I d j s I d s t I d s t I d s t r t

# $ 0 4o u t p u t$ 0 2 8 6d $ d 0 2 0d $ d O 2 1d

. b y t e $ 0 . b y t e $ 0 , b y t e $ 0 a. b y t e $ 7 a

2 3 2 0 ; o u t p u t s u b r o u t i n e2 3 3 0 ;2 3 4 0 o u t p u t2 3 5 02 3 6 02 3 7 02 3 8 02 3 9 02 4 0 0 o x i t2 4 1 0 ;

s t I d s t I d s t r t

$ 0 4 2 7# $ 2 f$ 0 4 2 6# $ 2 0$ 0 4 2 5

; c o d e f o r ' d ; p r i n t i ; g e t t e x t c o l o r; s a v e i ; g e t e d g e c o l o r; s a v e i ; g e t g r o u n d c o l o r; s a v e i ; t h a t ' s a l f o l k s

; e c h o c o m m a n d; c o r n e r o s c r e e n; s l a s h c o d e; c o r n e r o s c r e e n; s p a c e c o d e; c o r n e r o s c r e e n; a l l d o n e !

2 4 2 0 ; / c o m m a n d ( o u t p u t t s c r e e n )2 4 3 0 ;2 4 4 0 r s c r n2 4 5 02 4 6 02 4 7 02 4 8 02 4 9 02 5 0 02 5 1 02 5 2 0 ;

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

# $ 1 3o u t p u tp f l a go x i t# $ 7 ap f l a gI c l o s e

; c o d e f o r ' s ; e c h o c o m m a n d; p r i n t e r o n l i n e ?; n o / d o n ' t b o t h e r; f i l e # 1 2 2; s e t f l a g / o f f l i n e; c l o s e i u

2 5 3 0 ; / c o m m a n d ( o u t p u t t o p r i n t e r )2 5 4 0 ;2 5 5 0 p r n t e r2 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 0 ;

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

# $ 1 0o u t p u tp f l a go x i t# $ f fp f l a g# $ 7 al o p e n

2 6 5 0 ; t e x t c o l o r s u b r o u t i n e s2 6 6 0 ;2 6 7 0 c o l r s t2 6 8 0 c o l r n d2 6 9 0 ;2 7 0 0 c h g t x t2 7 1 02 7 2 02 7 3 02 7 4 02 7 5 02 7 6 02 7 7 02 7 8 0 ;2 7 9 02 8 0 0 ;2 8 1 0 c f l o o p2 8 2 02 8 3 02 8 4 02 8 5 02 8 6 0 ;2 8 7 0 i n c r m t2 8 8 02 8 9 02 9 0 02 9 1 02 9 2 02 9 3 02 9 4 0 ;2 9 5 0 c h e k2 9 6 02 9 7 0

I d s t I d s t I d s t I d s t

I d

I d s t j s j s b c

c l I d a d s t b c i n i t

I d c m b n

$ d 8 0 0$ d b e 8

# < c o l r s t$ f # > c o l r s t$ f # < c o l r n d$ f # > c o l r n d$ f

# $ 0 0

$ 0 2 8 6( $ f b ) , yi n c r m tc h e kc f l o o p

# $ 0 1$ f $ f

+ $ f

$ l $ f . +

; c o d e f o r ' p ; e c h o c o m m a n d; p r i n t e r o n l i n e ?; y e s / d o n ' t b o t h e r; s e t p r i n t e r o n l i n es e f l a g

; f i l e # 1 2 2

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

; . i a l w a y s z e r o

; g e t t e x t c o l o r; f i l l c o l o r m e m o r y; i n c r e m e n t $ f b / $ f c; c o m p a r e s t a r t / e n d; e n r e a c h e d y e t ?

; 1 b i i n c r e m e n ti n c r e m e n t o i n c r e m e n t l b y t e; u p d a t e i ; i n c r e m e n t h b y t e ?

; c o m p a r e 1 b i # ' ; c o m p a r e h i b y t e s; ' n u f f s a i d / r e t u r n

M P E I I

B B N D L I

O C M

G O A F E I

M A

O K K J

G M A B L

G F K O F

N M

E L D

M C D F

A B A F

K K H G N B M

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

H L N F L P K N P A K E E

2 9 8 02 9 9 03 0 0 03 0 1 0 ;3 0 2 0 s e t d e f3 0 3 03 0 4 03 0 5 03 0 6 03 0 7 03 0 8 03 0 9 03 1 0 0 ;3 1 1 0 b r k 23 1 2 03 1 3 03 1 4 03 1 5 03 1 6 03 1 7 0 ;3 1 8 03 1 9 03 2 0 03 2 1 03 2 2 0 ;3 2 3 0 s t o p3 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 0 ;3 3 3 0 a r e g3 3 4 0 x r e g3 3 5 0 ;3 3 6 0 ; l o p e n

I d $ f c m $ f r t

I d d s t $ 0 2 8 6j s c h g t x tI d d s t $ d O 2 OI d d s t $ d O 2 1r t

p h t x p h t y p h

j s s t o pb n j m n e w r s rj m $ f e b c

s t a r e gs t x r e gj s $ f 6 b cj s $ f f e 1p h I d x r e gI d a r e gp i r t

. b y t e $ 0 . b y t e $ 0

; h b y t e s e q u a l s ; l o w b y t e s g e t ; m a k e t h e d e c i s i o n

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

; u s e r b r e a k 2; s a v e r e g s

; s c a n s t o p k e ; n o t p r e s s e d / c o n t i n u i

p r e s s e d / w a r m r e s e tr e s t o r e r e g s r t

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

t h i s r o u t i n e o p e n s3 3 7 0 ; f i l e t t h p r i n t e r ( f i l e n o 3 3 8 0 ; i i . o e n t r y ) , t h 3 3 9 0 ; p r i n t e r o p e n e d t w h i c h e v e r3 4 0 0 ; m o d e t h s c r e e n i s i n . i . 3 i 3 4 1 0 ; t h e s c r e e n i i t h u p p e r c a s e /3 4 2 0 ; l o w e r c a s e m o d e , t h p r i n t e r3 4 3 0 w i l l b a l s o , t h s a m e a p p l i e s t 3 4 4 0 ; u p p e r c a s e / g r a p h i c s m o d e .3 4 5 0 ;3 4 6 0 l o p e n3 4 7 03 4 8 03 4 9 03 5 0 03 5 1 03 5 2 03 5 3 0 u 3 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 0 ;3 6 3 0 ;3 6 4 0 ; l c l o s e

s t I f I d $ d O 1 8c m # 2 b e u I d # $ 0 7. b y t e $ 2 cI d # $ 0 0I d I f I d # j s s e t l f sI d # $ 0 0j s s e t n a mj s o p e nI d I f j m c h k o u t

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

; w h i c h c h a r s e t p r i n t; u p p e r c a s e / g r a p h i c s

; s f o p r i n t e r ( u / l ); s k i p n e x t i n s t r; s f o u p p e r / g r a p h i c

; # f o r s e r i a l p r i n t e r

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

r o u t i n e t c l o s e a3 6 5 0 ; f i l e t t h p r i n t e r , f i l e n u r r3 6 6 0 ; i . u p o n e n t r y .3 6 7 0 ;3 6 8 0 I c l o s e3 6 9 03 7 0 03 7 1 03 7 2 03 7 3 03 7 4 03 7 5 03 7 6 03 7 7 0 ;3 7 8 0 I f 3 7 9 0 ;3 8 0 0 . e n d

p h t a j s c h k o u tI d # $ 0 dj s c h r o u tj s c l r c hp l j m c l o s e

. b y t e $ O e

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

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

T r a n s a c t o r 5 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 58/88

M O V E :G e n e r a l P u r p o s e

P r o p a g a t i n g M o v e R o u t i n e

R J d G r a f fW i n n i p e g , M a n i t o b a

A s d o c u m e n t e d i p r e v i o u s i s s u e ( J u l y 8 B i t s P i e c e s ) , t h b u i l t i n m e m o r y m o v e r o u t i n e c a b u s e d t m o v e b l o c k s o m e m o r y h i t h e r a n y o n . U n f o r t u n a t e l y , t h p a g e l o c a t i o n st h a t m u s t b p r i m e d a r e a l s o u s e d b B A S I C . T h e r e f o r e , t u s t h i s r o u t i n e f r o m w i t h i n a B A S I C p r o g r a m r e q u i r e s t h a t f r o n te n b b u i l t t c o p y t h p a r a m e t e r s f r o m u s e r s e l e c t e d a d r e s s e s t t h o s e u s e d b y t h m o v e r o u t i n e .

R a t h e r t h a n d t h i s d e c i d e d t w r i t e m o w n m o v e r o u t i n e ,M O V M E M . T h i s r o u t i n e r e s i d e s i t h e v e r p o p u l a r c a s s e t t eb u f f e r a n i m e r e 3 b y t e s l o n g . I t p a r a m e t e r s a r p o k e di n t o p a g e l o c a t i o n s 2 5 - 3 0 . T h c a l l i n g p r o g r a m s p e c i f i e ss o u r c e a d d r e s s s t a r t , d e s t i n a t i o n a d d r e s s s t a r t a n t h n u m b e ro b y t e s t c o p y ( a l l i l o b y t e / h i g h b y t e f o r m a t ) .

M O V E i f a s t . I a l s o h a t h a d v a n t a g e o b e i n g a b l e t p e r f o r mw h a t i k n o w n a s p r o p a g a t i n g m o v e . M o r e o t h a t i m o m e n t . F o n o w , l e t ' s l o o k a h o M O V E c a b u s e d f r o mB A S I C . O n e x a m p l e t h a t c o m e s t m i n d i m o v i n g B A S I C f r o mR O i n t o t h u n d e r l y i n g R A s t h a t i c a n b e m o d i f i e d .T y p i c a l l y t h i s i d o n e b t h l o o p :

1 0 0 f o r i 4 0 9 6 0 T 4 9 1 5 11 0 p o k e i , p e e k ( i )1 1 n e x t1 1 p o k e 1 , 5 4

T i m i n g t h i s l o o p w f i n d i t a k e s 3 7 s e c o n d s t e x e c u t e . N o l e t ' s s e h o t h s a m e t h i n g i d o n e u s i n g M O V E . F o t h s a k e

o c l a r i t y w i l l d e f i n e t w f u n c t i o n s F N a n F N t h a t b r e a k u a 1 b i i n t e g e r i n t o h i g h a n l o b y t e s s u i t a b l e f o p o k i n g . T h p a r a m e t e r s f o M O V E a r a f o l l o w s :

B Y T E S 2 5 - 2 6 s o u r c e a d d r e s s ( l o w / h i g h )B Y T E S 2 7 - 2 8 d e s t i n a t i o n a d d r e s s ( l o w / h i g h )B Y T E S 2 9 - 3 0 n u m b e r o b y t e s ( l o w / h i g h )

1 0 0 d e f f n h ( x ) i n t ( x / 2 5 6 )1 0 5 d e f f n l ( x ) x - 2 5 6 * f n h ( x )1 1 0 :1 1 b 4 0 9 6 0 r e b a s i c s t a r t1 2 n = 8 1 9 2 r e l e n g t h o b a s i c1 2 5 :1 3 0 p o k e 2 5 f n l ( b s ) : p o k e 2 6 , f n h ( b s )1 3 5 p o k e 2 7 f n l ( b s ) : p o k e 2 8 , f n h ( b s )1 4 p o k e 2 9 f n l ( n b ) : p o k e 3 0 , f n h ( n b )1 4 5 s y s 8 2 8

W h i l e t h i s r e q u i r e s m o r e c o d e i e x e c u t e s i n l e s s t h a n o n s e c o n d . I t h m o v e i t b d o n e f r e q u e n t l y ( c o p y i n g b i m a p si h i - r e s m o d e f o e x a m p l e ) t h e n t h g r u n t w o r k c a b m o v e di n t o s u b r o u t i n e s u c h a t h f o l l o w i n g :

9 0 p o k e 2 5 f n l ( s a ) : p o k e 2 6 f n h ( s a ) : r e m s o u r c e a d d r e s s9 0 5 p o k e 2 7 f n l ( d a ) : p o k e 2 8 f n h ( d a ) : r e m d e s t i n a t i o n a d d r9 1 p o k e 2 9 f n l ( n b ) : p o k e 3 0 f n h ( n b ) : r e m n u m b e r o b y t e s9 1 5 s y s 8 2 8 : r e t u r n

T h T r a n s a c t o r 5 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 59/88

d o n ' t f o r g e t t d e f i n e F N a n F N L .

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

w h e n t h e d e s t i n a t i o n a d d r e s s i o n m o r e t h a ns o u r c e a d d r e s s . F o e x a m p l e , l e t ' s s a w w a n t t

o u a a r e a o m e m o r y 1 0 0 0 b y t e s l o n g t u s f o h i - r e s b i m a p . A s s u m i n g t h a t B c o n t a i n s t h

o o u b i m a p , t h i s i a c c o m p l i s h e d b y t h :

2 0 0 p o k e b m , 02 0 5 s a b m d b 1 n 9 9 9 : g o s u b 9 0 0

a n p a i n l e s s . E x a c t l y w h a t h a h a p p e n e d ? T h w e r e c o p i e d a f o l l o w s :

S A c o p i e d t S A ( w h i c h i D A S A + 1 c o p i e d t o S A 2 ( D A + l )S A + 2 c o p i e d t o S A +

S 9 9 c o p i e d t S A + 1 0 0 0

h z e r o v a l u e p o k e d i l i n e 2 0 w a p r o p a g a t e d a l t h 1 0 0 0 b y t e s .

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

b l o c k s i t h o r d e r b y t e t h e n b y t e s 2 5 t M O V E c o p i e s b y t e s i t h o r d e r 0 1 2 . . A s s e m b l e r s o u r c e a n B A S I C l o a d e r f o l l o w .

L o a d e r S u b r o u t i n e

0 c 0 f o 8 2 t 8 6 1 r e a d p o k e i , c c 1 n e x t

2 i c < 4 3 2 7 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 p

3 d a t a 1 6 5 , 3 0 , 2 4 0 , 2 7 , 1 6 9 , 0 , 1 4 14 d a t a 9 6 3 , 1 6 0 , 0 , 1 7 7 , 2 5 , 1 4 54 d a t a 2 7 , 2 0 0 , 2 0 4 , 9 6 3 , 2 0 8 , 2 4 65 d a t a 2 3 0 , 2 6 , 2 3 0 , 2 8 , 1 9 8 , 3 0 4 5 d a t a 6 , 2 0 8 , 2 3 6 , 1 6 5 , 2 9 , 2 0 8 , 2 2 76 d a t a 9

7 r e t u r n

P r o g r a m L i s t i n g ( C o m m o d o r e A s s e m b l e r )

s r c ed e s tn b y t e s

n b l k s

m o v e

s t a r t

n x t b y t

d o n e b l

d o n er e m a i n

8 2

2 2 2

n b y t e s +

I d n b l k sb e d o n e b lI d * s t r e m a i nl d #

I d ( s r c e ) , ys t ( d e s t ) , yi n c p r e m a i nb n n x t b y t

i n s r c e +i n c d e s t + d e n b l k sb m d o n eb n n x t b y t

I d n b y t e sb n s t a r tr t

+

; p a r a m e t e r l o c a t i o n o s r c e a d d r e s s; p a r a m e t e r - l o c a t i o n o d e s t a d d r e s s; p a r a m e t e r l o c a t i o n o n u m b e r o b y t e s

; n u m b e r o f u l l b l o c k s t m o v e

; g e t n u m b e r o f u l l b l o c k s t m o v e; i n o n e t h e n t e s t f o r p a r t i a l b l o c k; s e t c o m p a r i s o n v a l u e f o t r a n s f e r; 2 5 6 b y t e b l o c k s ( 2 5 6 ); s e t i n d e x t p o i n t t f i r s t b y t e o b l o c k

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

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

; d w h a v e p a r t i a l b l o c k; i y e t h e n m o v e i

; r e t u r n t c a l l i n g r o u t i n e; n u m b e r o b y t e s t m o v e i c u r r e n t b l o c k

E d i t o r ' s N o t e

M O V E w o r k s g r e a t f o m o o i n g a l s o r t s o s t u f f ; s p r i t ed e f i n i t i o n s , c o l o u r m e m o r y , l o w - r e s s c r e e n d a t a , o r e v e ns n a p s h o t s o z e r o - p a g e a n t h l i k e . A n d , a m e n t i o n e di N e w s B R K , f e e l f r e e t u s a n s u b r o u t i n e p u b l i s h e d i T h T i a n p r o g r a m , a n y t i m e , a n y w h e r e , a n f o a n p u r p o s e . M . E d .

T r o n s Q C t o f 5 S e p t . 1 9 6 6 : V o l u m e 7 t e t u e 0

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 60/88

B i A d d r e s s i n gO S p r i t e C o n t r o l s

S t a c y M c l n n i sU p l a n d , C a l i f o r n i a

O n g o o d r e a s o n t s w i t c h f r o m B A S I C t a s s e m b l y l a n g u a g ep r o g r a m m i n g i t i n c r e a s e t h s p e e d w i t h w h i c h y o c a m o v ea n d c h a n g e y o u r s p r i t e s . A a d d e d a d v a n t a g e i t h e a s e w i t hw h i c h y o u c a n d b i m a n i p u l a t i o n s . S e v e r a l o t h e l o c a t i o n s t h a tc o n t r o l s p r i t e s m u s t b e a d d r e s s e d a t h b i l e v e l . A m o n g t h e s e a r $ D 0 1 0 w h i c h c o n t a i n s t h m o s t s i g n i f i c a n t b i t s o t h p o s i t i o n s o y o u r s p r i t e s o t h e s c r e e n a n $ D 0 1 5 w h i c h c o n t r o l s t h e n a b l i n ga n d i s a b l i n g o i n d i v i d u a l s p r i t e s . E a c h b y t e t h a t c o n t a i n s s p r i t ei n f o r m a t i o n f o a l t h s p r i t e s i a r r a n g e d i t h s a m e o r d e r . S p r i t ez e r o i r e p r e s e n t e d b t h l e a s t s i g n i f i c a n t o r i g h t m o s t b i w h i l es p r i t e s e v e n i r e p r e s e n t e d b t h m o s t s i g n i f i c a n t o l e f t m o s t b i t .A t h e r e a r e i g h t s p r i t e s a l l o w e d a n e i g h t b i t s i b y t e , t h i sw o r k s o u v e r y n i c e l y .

L o o k i n g a t h 6 5 1 0 m i c r o p r o c e s s o r i n s t r u c t i o n s e t , i i c l e a r t h a tt h e r e a r n i n s t r u c t i o n s t h a t w i l l l e y o a d d r e s s a n s e l e c t e d b i w i t h a s i n g l e i n s t r u c t i o n . H o w e v e r , c o m b i n a t i o n o t h e s e i n s t r u ct i o n s c a b u s e d t d t h j o b . B u f i r s t , l e u d e f i n e s o m e d a t a .F i n d s i x t e e n l o c a t i o n s t h a t y o w i l l n o b d i s t u r b i n g a n d e d i c a t et h e m t h o l d i n g m a s k s . m a s k i n u m b e r t h a t l e t s y o u s m a s k i n g t a p e t p r e v e n t p a i n t i n g b e y o n d y o u r d e s i r e d a r e a . O u m a s k w i l l b s e u t a l l o w t h e c h a n g i n g o t e s t i n g o f a s i n g l e b i w i t h o u t d i s r u p t i n g t h o t h e r b i t s i n a b y t e .

E x a m p l e O D e f i n i n g M a s k

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

l d # ; c o n t a i n s a 3I d $ d O 1 5 ; t h e s p r i t e e n a b l e r e g i s t e ra n d m a s k a n . x ; u s e $ f s n b i t s a r a l t e r e d e x c e p t b i

s t $ d O 1 5 ; r e s e t t h r e g i s t e r a n e n a b l e s p r i t e 3

B u w h w r i t e a l t h a t c o d e w i t h t h m a s k s a n i n d e x e s ? I y o w a n t t e n a b l e s p r i t e 3 w h n o j u s t w r i t e :

I d $ d O 1 5o r * $ 0 8s t $ d O 1 5

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

N o f o c o m p l e x e x a m p l e . A s s u m e y o u w o u l d l i k e t e x p a n dm u l t i - c o l o r e d s p r i t e s h o r i z o n t a l l y . Y o a l s o w a n t t d i s a b l e h i g h -r e s o l u t i o n s p r i t e s . B u y o o n l y w a n t t d t h i s f o s p r i t e s t 7 S p r i t e s a n a r t r e m a i n u n t o u c h e d .

I d * l o o p

; s p r i t e s t o t a l

I d $ d 0 1 c ; t h e m u l t i c o l o r r e g i s t e ro r m a s k o r 2 , ; s e l e c t o n l y b i t c o n s i d e rb e m a s k o r ; z e r o i t b d i s a b l e d

i h e r e i m u l t i - c o l o r s o e x p a n d i

m a s k o r =. b y t $ 0 . b y t $ 0 . b y t $ 0 . b y t $ 0 . b y t $ 1 . b y t $ 2 . b y t $ 4 . b y t $ 8

T h s e c o n d m a s k[ u r n b i t o f f

m a s k a n =

; b i t s 0 0 0 0 0 0 0 1 s p r i t e; b i t s 0 0 0 0 0 0 1 0 s p r i t e; b i t s 0 0 0 0 0 1 0 0 s p r i t e; b i t s 0 0 0 0 1 0 0 0 s p r i t e; b i t s 0 0 0 1 0 0 0 0 s p r i t e 4; b i t s 0 0 1 0 0 0 0 0 s p r i t e; b i t s 0 1 0 0 0 0 0 0 s p r i t e; b i t s 1 0 0 0 0 0 0 0 s p r i t e 7

a r r a y w i l l b u s e d w i t h t h A N i n s t r u c t i o n t

o r s t b n

a r h e r e i

d a b l eI d a n s t

e l o o pd e b p

S d O l d$ d 0 1 de l o o p

h a v e

; h o r i z o n t a l e x p a n s i o nr e s e t e x p a n s i o n

; a l w a y s b r a n c h

s i n g l e c o l o r e d s p r i t e t b d i s a b l e d

m a s k a n 2 , ; s e l e c t m a s k$ d 0 1 5$ d O 1 5

l o o p

; t h e e n a b l e / d i s a b l e r e g i s t e r; r e s e t r e g i s t e r w i t h s p r i t e d i s a b l e d

; i n d e x t n e x t m a s k; l o o p u n t i l s p r i t e s t a r t e s t e d

. b y t $ f ; b i t s 1 1 1 1 1 0 s p r i t e 0. b y t $ f ; b i t s 1 1 1 1 1 1 0 1 s p r i t e. b y t $ f ; b i t s 1 1 1 1 1 0 1 1 s p r i t e. b y t $ f ; b i t s 1 1 1 0 1 1 1 s p r i t e. b y t $ e ; b i t s 1 1 1 0 1 1 1 1 s p r i t e 4. b y t $ d ; b i t s 1 1 0 1 1 1 1 1 s p r i t e. b y t $ b ; b i t s 1 0 1 1 1 1 1 1 s p r i t e. b y t $ 7 ; b i t s 0 1 1 1 1 1 1 1 s p r i t e

N o w , l e u t r t h s i m p l e t a s k o e n a b l i n g S p r i t e 2 T e n a b l e s p r i t e3 s e b i o l o c a t i o n $ d O 1 5 t 1

A n o t h e r i n s t r u c t i o n t h a t w o r k s w e l l w i t h m a s k i t h E O R . A s s u m et h a t y o w i s h t h o r i z o n t a l l y e x p a n d s p r i t e i i i u n e x p a n d e d o u n e x p a n d i i i e x p a n d e d . I o t h e r w o r d s , w h a t e v e r t h b i i s w w a n t t c h a n g e i t A g a i n , t h e s p r i t e t b e c h a n g e d i i r e g i s t e r X .

I d $ d 0 1 d ; t h e h o r i z o n t a l e x p a n s i o n r e g i s t e re o m a s k o r . x ; c h a n g e t h b i s t $ d 0 1 d ; r e s e t r e g i s t e r

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

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 61/88

N u m b e r s J a m e s A L i s o w s k iS M i l w a u k e e , W i s c o n s i n

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

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

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

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

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

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

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

n u m b e r c o u l d a l s o b f l a s h e d o n a n d o f o i d i f f e r e n tt c a p t u r e a t t e n t i o n . A n d , b e s t o a l l , t h s p r i t e n u m b e r

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

t h o s e f e a t u r e s d o n ' t g i v e y o u a n y a p p l i c a t i o n i d e a s , h e r e a r e as u g g e s t i o n s : S p r i t e n u m b e r s m a k e g r e a t a c t i o n g a m e s c o r e -

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

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

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

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

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

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

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

o f t h l i n e s b e f o r e l i n e 5 0 j u s t d s o m e i n i t i a l s e u w o r k ;m a i n l i n e p r o g r a m c o v e r s l i n e s 5 0 t h r o u g h 7 6 a n

a c t u a l s p r i t e n u m b e r s u b r o u t i n e o c c u p i e s l i n e s 9 0 t h r o u g hT h e x a m p l e u s e s s p r i t e n u m b e r z e r o f o n u m b e r d i

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

3 m a k e s v a r i a b l e V e q u a l t t h a d d r e s s o t h V I I c h i p ' s f i r s t r e g i s t e r s t h a t a n r e g i s t e r m a b s e l e c t e d

a d d i n g a n o f f s e t v a l u e V ( e g . V 1 s e l e c t s r e g i s t e r 1 6 ) .3 a n 4 c r e a t e v a r i a b l e s ( S X , S Y , S N ) , t h a t c o r r e s p o n d

t s p r i t e z e r o ' s h o r i z o n t a l a n v e r t i c a l p o s i t i o n c o n t r o l r e g i s t e r sa w e l l a s t h r e g i s t e r t h a t c o n t r o l s w h e t h e r t h s p r i t e i v i s i b l eo n o t , t h e n a b l e r e g i s t e r . T h e s e v a r i a b l e s a r e u s e d o f t e ne n o u g h t m e r i t s p e c i a l n a m e s . L i n e 6 t e l l s V I I t l o o k f o t h s h a p e i n f o r m a t i o n f o s p r i t e z e r o i t h e 1 3 t h a r e a r e s e r v e df o s p r i t e s h a p e s . ( I t h n o r m a l V I I c o n f i g u r a t i o n , a r e a 1 3r u n s f r o m d e c i m a l l o c a t i o n 8 3 t 8 9 5 . ) I t h i s n u m b e r i c h a n g e d t a n o t h e r v a l u e a n t h c o r r e s p o n d i n g s h a p e a r e a i f i l l e d w i t h n u m b e r s h a p e , o n s p r i t e c a n b e u s e d t d i s p l a ys e v e r a l p r e d e f i n e d s p r i t e n u m b e r s , e a c h o n s w i t c h e d i b c h a n g i n g t h s h a p e a r e a n u m b e r i l o c a t i o n 2 0 4 0 . L i n e 9 e x p a n d s t h s i z e o f s p r i t e i t h a n d i m e n s i o n s f o e m p h a s i s . I t h i s l i n e w e r e n o p r e s e n t ( o i t h o n v a l u e s w e r ec h a n g e d t z e r o s ) , t h s p r i t e n u m b e r s w o u l d b t h s a m e s i z ea t h n o r m a l c h a r a c t e r s , b u w h e n t h e y a r e x p a n d e d t t w i c et h n o r m a l s i z e , t h e y r e a l l y s t a n d o u t . W i t h v a r i o u s c o m b i n at i o n s o o n a n z e r o , t h s p r i t e n u m b e r s c a a l s o h a v e o t h e rh e i g h t w i d t h r a t i o s .

O K s f a t h p r o g r a m h a d o n e s o m e f a i r l y n o r m a l s p r i t eo p e r a t i o n s . N o c o m e s t h t r i c k y p a r t : s t e a l i n g t h d o t p a t t e r n st h a t m a k e u n u m b e r s h a p e f r o m t h 6 4 ' s c h a r a c t e r R O M . I m o s t c o m p u t e r s , t h e c h a r a c t e r R O M s c a o n l y b r e a d b t h c o m p u t e r ' s v i d e o c i r c u i t r y . I y o w a n t e d t u s o a l t e r t h c h a r a c t e r s h a p e s , y o w o u l d h a v e t d r a w t h p a t t e r n s a n t h e n d u p l i c a t e t h e m a o n e a n d z e r o ( v i d e o d o o n a n d o f f )p a t t e r n s f o y o u r p r o g r a m ' s u s e . T h i s i n o o n l y t e d i o u s b u i a l s o u s e s m u c h o B A S I C p r o g r a m m e m o r y j u s t t s t o r e c h a r a ct e p a t t e r n s . T h C o m m o d o r e 6 h a t w v e r y n i c e f e a t u r e st h a t c a n b e u s e d t o v e r c o m e t h e s e p r o b l e m s . O n f e a t u r e i t h a t t h m i c r o p r o c e s s o r a n t h V I I v i d e o c h i p c a d i r e c t l yr e a d t h e c o n t e n t s o t h e c h a r a c t e r R O M s ; t h e o t h e r f e a t u r e i p l e n t y o R A m e m o r y t s t o r e u s e r d e f i n e d c h a r a c t e r s e t sw i t h o u t u s i n g u B A S I C p r o g r a m s p a c e . H e r e ' s h o m p r g r a m t a k e s a d v a n t a g e o t h e s e a t t r i b u t e s :

L i n e s 1 3 a n 1 4 t u r n t h e u s u a l t i m e k e e p i n g i n t e r r u p t O F f o w h i l e a n s w i t c h t h e c h a r a c t e r R O i n t o t h m i c r o p r o c e ss o r ' s n o r m a l a d d r e s s s p a c e s t h a t t h n u m b e r p a t t e r n s c a n b er e a d d i r e c t l y . ( I t h i n t e r r u p t r o u t i n e i n o s w i t c h e d o f f , t h c o m p u t e r w i l l f r e e z e u p a n n o r e s p o n d t n o r m a l c o m a n d s b e c a u s e t h r o u t i n e d o e s n ' t a l l o w f o t h e c h a r a c t e rR O M ' s p r e s e n c e . ) s i d e e f f e c t i t h a t , s i n c e t h i n t e r r u p tr o u t i n e n o r m a l l y u p d a t e s t h s y s t e m r e a l - t i m e c l o c k , ( t h e t i m ev a l u e f o u n d i v a r i a b l e T I $ ) , t h i s t i m e v a l u e w i l l n o b c o r r e c ta n w i l l l o s e t i m e " a l o n g a t h i n t e r r u p t r o u t i n e i t u r n e do f f . W h e n s w i t c h e d i n t h e c h a r a c t e r R O a p p e a r s a l o c a t i o n

T r a n s a c t o r 5 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 62/88

5 3 2 4 8 . S i n c e e a c h p a t t e r n t a k e s u e i g h t b y t e s a n t h n u m b e rp a t t e r n s s t a r t a t t h 4 8 t h c h a r a c t e r p o s i t i o n , L i n e 1 6 s e t sv a r i a b l e C t t h s t a r t i n g a d d r e s s o t h R O M ' s n u m b e rp a t t e r n s . L i n e 1 8 s e t s v a r i a b l e C t v a l u e t h a t c o r r e s p o n d st s e c t i o n o h i g h R A m e m o r y t h a t B A S I C n e v e r u s e s . L i n e2 1 r e a d s 8 b y t e s ( t h e 1 n u m b e r p a t t e r n s ) f r o m R O a n s t o r e s t h e m i t h e h i g h R A a r e a f o l a t e r u s e . L i n e s 2 3 t 2 4 f i n i s h t h p r o c e d u r e b y s w i t c h i n g t h R O o u a n t u r n i n g t h i n t e r r u p t r o u t i n e b a c k o n L i n e 3 1 0 b l a n k s o u a n o l d a t a i t h e t h e s p r i t e s h a p e m e m o r y a r e a t c o m p l e t e t h s e u s e c t i o n .

T h d e m o n s t r a t i o n m a i n l i n e s t a r t s o l i n e 5 3 0 . T h i s i s h o r tp r o g r a m t h a t s h o w s h o t u s t h s p r i t e n u m b e r s u b r o u t i n e .I n o r m a l u s e , y o w o u l d k e e p t h s e u a n s u b r o u t i n es e c t i o n s a n c r e a t e y o u r o w a p p l i c a t i o n m a i n l i n e . L i n e 5 3 m a k e s s u r e t h a t t h M S ( M o s t S i g n i f i c a n t B i t ) o t h s p r i t e ' sp o s i t i o n i o f f , s t h a t t h s p r i t e t r a v e l s o t h l e f t s i d e o t h v i d e o s c r e e n . L i n e 5 6 s e t s t h s p r i t e ' s X / i n i t i a l s c r e e np o s i t i o n . L i n e 5 9 c l e a r s t h s c r e e n a n p r i n t s t i t l e i n o r m a lt e x t c h a r a c t e r s . L i n e s 6 2 a n 6 5 g e n e r a t e s r a n d o m c o l o r sa n t h r e e d i g i t n u m b e r v a l u e s ( N U ) f o t h s p r i t e . L i n e 7 0 c a l l st h a c t u a l s p r i t e n u m b e r s u b r o u t i n e . L i n e s 7 4 0 a n d 7 4 m o v et h f i n i s h e d s p r i t e n u m b e r h o r i z o n t a l l y a c r o s s t h e s c r e e n t s h o w o f b i t , t h e n d i s a b l e s ( t u r n s o f f ) t h s p r i t e , r e s e t s t h s c r e e n p o s i t i o n a n g o e s b a c k t t h r a n d o m n u m b e r c o l o rs e c t i o n t s t a r t o v e r w i t h n e s p r i t e . O c c a s i o n a l l y y o w o n ' ts e t h s p r i t e b e c a u s e i i t h s a m e c o l o r a s t h e b a c k g r o u n d . I y o w i s h y o c a c h a n g e t h m a i n l i n e t m a k e t h s p r i t e m o v ei t h d i r e c t i o n o o v e r s o m e t e x t b a c k g r o u n d .

F i n a l l y , h e r e i w h a t t h s p r i t e n u m b e r s u b r o u t i n e d o e s : L i n e1 0 0 0 d i s a b l e s ( t u r n s o f f ) t h s p r i t e s t h a t t h t r a n s i t i o n f r o mo n n u m b e r p a t t e r n t t h n e x t i i n v i s i b l e . ( I y o w a n t t w a t c h t h p r o c e s s c h a n g e t h e z e r o i L i n e 1 0 0 0 t o n e . ) L i n e1 0 3 0 b l a n k s o u t t h e o l s p r i t e p a t t e r n . L i n e 1 0 7 0 f o r m a t s t h n u m b e r ( N U ) t b e c o m e s p r i t e . F i r s t t h n u m b e r i c h a n g e di n t o s t r i n g f o r m a t w i t h t h e S T R $ f u n c t i o n . S i n c e t h r a n d o mn u m b e r s t r i n g ' s l e n g t h c a r a n g e f r o m t w c h a r a c t e r s ( s p a c e ,b e c a u s e i i p o s i t i v e n u m b e r , a n d o n d i g i t ) , t f o u r c h a r a ct e r s ( a s p a c e a n t h r e e d i g i t s ) , s p a c e i a d d e d t t h r i g h t s i d eo t h n u m b e r s t r i n g a n t h e r i g h t - m o s t t h r e e c h a r a c t e r s o t h i st o t a l c o m b i n a t i o n a r e x t r a c t e d w i t h t h R I G H T $ ( , 3 s t a t e m e n t .T h i s o p e r a t i o n w i l l a l w a y s y i e l d t h r e e c h a r a c t e r s t r i n g , w i t hl e a d i n g s p a c e s a n p l a c e i i n t o v a r i a b l e N U $ . N o t h a t t h n u m b e r s t r i n g h a b e e n p u t t o g e t h e r p r o p e r l y , t h e n e x t o p e r at i o n i t t a k e i a p a r t a g a i n !

L i n e 1 1 3 0 s t a r t s F O N E X T l o o p t h a t s e l e c t s t h e c h a r a c t e r s ,o n b o n e . A l s o c o u n t e r , I N t h a t w i l l b e u s e d l a t e r i r e s e t t z e r o . T h M I D $ f u n c t i o n i L i n e 1 1 4 0 e x t r a c t s o n c h a r a c t e rf r o m N U a n p l a c e s i i n t o C H $ . T h f i r s t t i m e t h r o u g h t h l o o p , t h e l e f t - m o s t c h a r a c t e r i s e l e c t e d , t h e n t h m i d d l ec h a r a c t e r a n t h e n t h e r i g h t - m o s t c h a r a c t e r , a c c o r d i n g t t h p o s i t i o n v a l u e ( C 1 ) T s a v e t i m e , s i n c e t h e s p r i t e h a b e e nc l e a r e d t b l a n k s t a t e , i t h e x t r a c t e d c h a r a c t e r i s p a c e , n f u r t h e r p r o c e s s i n g i d o n e a n L i n e 1 1 5 0 d i r e c t s p r o g r a me x e c u t i o n t t h N E X T s t a t e m e n t i L i n e 1 2 3 0 . O t h e r w i s e , t h ee x t r a c t e d d i g i t c h a r a c t e r i c h a n g e d b a c k t n u m b e r f o r m w i t h

t h V A f u n c t i o n a n p l a c e d i N D N w i l l b e u s e d a a i n d e xt t h p r o p e r s t a r t i n g p o s i t i o n o f t h a t d i g i t ' s c h a r a c t e r p a t t e r n .

T h F O l o o p i L i n e 1 2 0 0 s t e p s t h e v a r i a b l e t h r o u g h e i g h tv a l u e s t h a t c o r r e s p o n d t e i g h t b y t e s i t h s p r i t e ' s s h a p em e m o r y . S p r i t e s h a p e m e m o r y i l i n e a r , b u t t h e r e s u l t i n g s p r i t ei d i s p l a y e d i f o r m a t w h e r e t h r e e p a t t e r n b y t e s l i s i d e b s i d e . T h e S T E P i n d e x o i L i n e 1 2 0 0 p l a c e s t h e i g h t d o p a t t e r n b y t e s s o t h a t t h e y a l l i n e u i t h s a m e v e r t i c a lc o l u m n . A l s o i L i n e 1 2 0 0 t h e v a r i a b l e C ( w h i c h c h a n g e sv a l u e f r o m z e r o t o n a s t h e F O l o o p i L i n e 1 1 3 0 p r g r e s s e s ) o f f s e t s t h s p r i t e s h a p e m e m o r y v a l u e s t h a t t h f i r s tc h a r a c t e r p a t t e r n g o e s i n t o t h f i r s t s p r i t e d i s p l a y c o l u m n , t h s e c o n d d i g i t p a t t e r n g o e s i n t o t h m i d d l e c o l u m n a n t h r i g h td i g i t p a t t e r n g o e s i t h e r i g h t - m o s t s p r i t e c o l u m n . T h i s i d e f i n i t e l y n o y o u r a v e r a g e F O N E X T l o o p b u i d o e s w o r k !L i n e 1 2 1 0 t a k e s t h i s s p r i t e s h a p e m e m o r y p o s i t i o n ( I a n f i l l s i w i t h b y t e o t h p r o p e r c h a r a c t e r p a t t e r n f r o m t h h i g h R A s t o r a g e a r e a . T f i g u r e o u w h i c h b y t e t t a k e ( P E E K ) , t h s t a r to h i g h R A n u m b e r p a t t e r n s t o r a g e ( C M ) i a d d e d t t h s t a r t i n g p o s i t i o n o t h d e s i r e d d i g i t ( N D * 8 , t h N D t h d i g i tp o s i t i o n t i m e s e i g h t p a t t e r n b y t e s p e d i g i t ) p l u s t h e i n d e x I w h i c h s t e p s t h r o u g h ( I = I N + 1 ) t h e i g h t s e q u e n t i a l p a t t e r nb y t e s t h a t m a k e u t h d i g i t s h a p e . T h u s t h r e s u l t o f L i n e s1 2 0 0 t h r o u g h 1 2 2 0 a r t h a t t h d e s i r e d d i g i t p a t t e r n i t a k e no u o h i g h R A a n p l a c e d i t h p r o p e r p o s i t i o n i t h s p r i t e .T h N E X T s t a t e m e n t i L i n e 1 2 3 0 d i r e c t s p r o g r a m e x e c u t i o nb a c k t t h F O s t a t e m e n t i L i n e 1 1 3 0 w h i c h t h e n s e l e c t s t h n e x t d i g i t c h a r a c t e r t b l o a d e d i n t o t h s p r i t e ( a n d r e s e t si n d e x I N ) , u n t i l a l t h r e e s t r i n g c h a r a c t e r s h a v e b e e n p r o c e s s e d .

A t h i s p o i n t t h s p r i t e n u m b e r h a b e e n b u i l t , b u t t h e s p r i t e i s t i l l i n v i s i b l e . L i n e 1 2 7 0 e n a b l e s t h s p r i t e a n R E T U R N Se x e c u t i o n b a c k t t h m a i n l i n e p r o g r a m . A o u t l i n e d a b o v e ,t h m a i n l i n e m e r r i l y m o v e s t h n e s p r i t e a l o n g t h e n g o e sb a c k a n c r e a t e s n e w r a n d o m s p r i t e n u m b e r . I y o u ' v ef o l l o w e d a l o t h e s e m a t h a n l o g i c b r a i n t w i s t e r s y o m u s tn o t h i n k t h a t c o m p u t e r s a r p r e t t y w o n d e r f u l a n t h a t p r g r a m m e r s A R C R A Z Y ! H o w e v e r , i y o a r s t i l l f e e l i n g l i k e a e x p e r i m e n t o t w m i g h t c l a r i f y t h o p e r a t i o n o f t h i s d e m o ns t r a t i o n , w o u l d s u g g e s t :

1 c h a n g i n g L i n e 1 0 0 0 t o 1 0 0 0 P O K E S N ( s o t h a t t h s p r i t e i

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

W h e n y o a r d o n e w i t h t h a t , h e r e a r e a f e o t h e r t h i n g s t p o n d e r . F i r s t o a l l , i y o w a n t , y o c a d i s p e n s e w i t h c o p y i n gt h e c h a r a c t e r p a t t e r n s t h i g h R A a n j u s t t a k e t h e m f r o m t h c h a r a c t e r R O e a c h t i m e t h e y a r n e e d e d . B u r e m e m b e r , t h r e a l - t i m e c l o c k l o s e s t i m e e a c h t i m e y o d i s a b l e t h i n t e r r u p ta n i a n y o n e e v e r h i t s R U S T O P w h i l e t h p r o g r a m i g a t h e r i n g p a t t e r n s , t h n e x t b u t t o n t p r e s s i O N / O F F ( o R E S E T i y o u h a v e i t ) .

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

T h T r a n s a c t o r 5 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e 0

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 63/88

z e r o i l i n e 3 1 t 2 5 5 . ) I y o u w a n t t a d t h s e c o n dt t h s p r i t e j u s t c a l l t h s u b r o u t i n e t w i c e a n d a d d a n

t h e

t w

t i L i n e 1 2 1 0 t p l a c e t h s e c o n d p a t t e r n l i t t l e l o w e rs p r i t e . U s e d t h i s w a y , a d u a l n u m b e r s p r i t e m a k e s

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

t i o n t t w o - i n - o n e s p r i t e n u m b e r s v e r s u s t w s e p a r a t en u m b e r s i t h a t b o t h n u m b e r s h a v e t h s a m e c o l o r i t h

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

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

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

S p r i t e N u m b e r s p r o g r a m w i t h d e m o

I I I

I I

A I

I

r e s p r i t e n u m b e r d e m o v r e J a m e s a l i s o w k s i , 9 0 w i l l o w I n r e s m i l w a u k e e , w 5 3 1 7 2

4 r e m p u b l i c d o m a i n s o f t w a r e5 1 r e s e u s p r i t e z e r o2 0 3 v = 5 3 2 4 8 : r e m f i r s t v i c - i i r e g i s t e r4 s v s : s y v 1 : r e m s p r i t e x / r e g .5 s v 2 1 : r e m s p r i t e e n a b l e r e g .6 0 p o k e 2 0 4 0 , 1 3 : r e m s p r i t e m e a r e a 1 37 9 8 0 r e m r e m o v e r e i l i n e 9 f o 8 r e u n - e x p a n d e d c h a r a c t e r s i z e9 p o k e v s 2 9 , 1 : p o k e v s 2 3 , 11 0 0 :1 1 r e s e u n u m b e r p a t t e r n s1 2 0 :1 3 r e t u r n i n t e r u p t o f f , s w i t c h r o i 1 4 p o k e 5 6 3 3 4 , p e e k ( 5 6 3 3 4 ) a n d 2 5 41 4 p o k e 1 , p e e k ( 1 ) a n d 2 5 11 4 5 :1 5 0 r e m s t a r t o r o n u m b e r p a t t e r n s1 6 c 5 3 2 4 8 + 8 * 4 81 7 0 r e m s t a r t o f r a s t o r a g e a r e a1 8 c = 4 9 1 5 21 9 0 r e m t a k e c h a r a c t e r i n f o f r o m r o 2 0 r e a n p l a c e i i n t o p r o t e c t e d r a 2 1 f o r i 0 t o 8 0 : p o k e c m i , p e e k ( c s i ) : n e x t2 2 r e t u r n i n t e r u p t o n , s w i t c h r o o u 2 3 0 p o k e 1 , p e e k ( 1 ) o r 42 4 p o k e 5 6 3 3 4 , p e e k ( 5 6 3 3 4 ) o r 12 5 0 :3 0 r e c l e a r s p r i t e p a t t e r n3 1 f o r i 8 3 2 t o 8 9 4 : p o k e i , 0 : n e x t3 2 0 :3 3 0 :5 0 r e = = = = d e m o m a i n l i n e5 1 0 :5 2 0 r e m s e m s o x p o s i t i o n t o f 5 3 p o k e v s + 1 6 , 0

A J I

O H H

M P P K K D I

C K

H J K L O C

I C O G

A J C F D G D F E

M N H M B N K N J G O M G

D F

A I

D L

M H O J

5 4 0 :5 5 r e s e s p r i t e x / y p o s i t i o n t 1 0 5 6 p o k e s x , 1 0 0 : p o k e s y , 1 0 05 7 0 :5 8 0 r e m c l e a r a n t i t l e t h s c r e e n5 9 p r i n t " S s p r i t e n u m b e r d e m o 1 2 3 4 5 6 7 8 9 0 "6 0 0 :6 1 r e s e s p r i t e r a n d o m s p r i t e c o l o r6 2 p o k e v s + 3 9 , r n d ( 0 ) * 1 6 3 0 :6 4 r e g e t d i g i t p o s i t i v e6 5 0 n u i n t ( r n d ( 0 ) * 9 9 9 )6 6 0 :6 7 0 r e m g o t o t h s p r i t e s u b r o u t i n e ,6 8 0 r e m t u r n n u m b e r n i n t o s p r i t e6 9 0 r e m a n d i s p l a y i i m o t i o n7 0 0 g o s u b 1 0 0 07 1 0 :7 2 r e w a i t w h i l e , t h e n t r a n o t h e r7 3 r e n u m b e r7 4 f o r d 1 0 0 0 t o 2 0 0 0 s t e p 5 : p o k e s x , d / 1 07 4 n e x t d : p o k e s n , 0 : p o k e s x , 1 0 0 : g o t o 6 1 07 5 0 :7 6 r e = = = e n d o m a i n l i n e7 7 0 :7 8 0 :9 0 r e s p r i t e n u m b e r s u b r o u t i n e9 1 0 :9 2 r e m — t u r n t h s p r i t e o f 1 0 0 0 p o k e s n , 01 0 1 0 :1 0 2 0 r e m — c l e a r p a r t o f s p r i t e1 0 3 0 f o r i 8 3 2 t o 8 5 2 : p o k e i , 0 : n e x t i1 0 4 0 :1 0 5 0 r e m — m a k e n u s t r i n g c h a r a c t e r s1 0 6 0 r e i l e n g t h w i t h l e a d i n g s p a c e s1 0 7 0 n u r i g h t $ ( " + s t r $ ( n u ) , 3 )1 0 8 0 :1 0 9 0 r e m — s e l e c t t h d i g i t1 1 0 0 r e c h a r a c t e r s , o n a t i m e1 1 1 0 r e m a n d c h a n g e t h c h a r a c t e r i n t o1 1 2 0 r e n u m b e r n d , s k i p s p a c e s1 1 3 0 f o r c h 0 t o 2 : i n1 1 4 0 c h $ m i d $ ( n u $ , ( c h 1 ) , 1 )1 1 5 0 i c h " t h e n 1 2 3 01 1 6 0 n d v a l ( c h $ )1 1 7 0 r e m — g e t t h c h a r a c t e r p a t t e r n f o 1 1 8 0 r e t h i s n u m b e r a n p l a c e i i 1 1 9 0 r e t h p r o p e r s p r i t e m e m o r y a r e a1 2 0 0 f o ( 8 3 2 c h ) t o ( 8 5 5 c h ) s t e p 31 2 1 0 p o k e i , p e e k ( i n c n d * 8 ) : i n i 1 2 2 0 n e x t1 2 3 0 n e x t c h1 2 4 0 :1 2 5 0 r e m — t u r n f i n i s h e d s p r i t e o a n 1 2 6 0 r e r e t u r n t m a i n p r o g r a m1 2 7 0 p o k e s n , 1 : r e t u r n

T r a n s a c t o r 5 S e p t . 1 9 6 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 64/88

A d d i n g D e p t hT Y o u r S c r e e n s

S t a c y M c l n n i sU p l a n d , C a l i f o r n i a

S o m e T i p s o 3 - S p r i t e A n i m a t i o n

A r t i s t s u s e v a r i o u s t e c h n i q u e s t m a k e t h e i r f l a t c a n v a s s e sa p p e a r t h a v e d e p t h . W h e n y o b e g i n t d r a w s c r e e n f o y o u r s p r i t e s t m o v e u p o n y o c a u s m a n y o t h o s e s a m et e c h n i q u e s . B u t y o u h a v e a a d d i t i o n a l a d v a n t a g e i a d d i n gt h r e e d i m e n s i o n a l a p p e a r a n c e t y o u r s c r e e n . Y o u r s p r i t e s c a m o v e a n d c h a n g e s i z e a n c o l o u r .

F o d i s c u s s i o n , a s s u m e y o u r g a m e t a k e s p l a c e i s m a l l t o w nw h i c h i b e i n g i n v a d e d b y m o n s t e r s . F i r s t l e u s l o o k a t h b a c k g r o u n d s c r e e n . B u i l d i n g s a n t r e e s s h o u l d b e l a r g e r n e a rt h b o t t o m o t h s c r e e n a n s m a l l e r t o w a r d s t h t o p . T h i s w i l lh e l p g i v e t h i l l u s i o n t h a t t h b o t t o m o t h e s c r e e n i n e a r e r t t h e v i e w e r . O p e n i n g s i a b u i l d i n g c a b e u s e d t g i v e d e p t h a o u r m o n s t e r s c a n b e s e e n p a s s i n g b e h i n d t h e m . I m a g e s t h a to v e r l a p a l s o g i v e d e p t h t p i c t u r e . F o i n s t a n c e , t r e e c a n b ep l a c e d i f r o n t o a b u i l d i n g w i t h i t b a s e l o w e r t h a n t h b a s e o t h b u i l d i n g . T h i s w i l l g i v e t h i l l u s i o n t h a t t h t r e e i c l o s e rt h a n t h b u i l d i n g . E i t h e r d e s i g n i n g y o u r o w c h a r a c t e r g r a p hi c s e o b u i l d i n g a b i m a s c r e e n w i l l e n a b l e y o t m o r er e a d i l y u s s u c h t e c h n i q u e s a r o a d s t h a t n a r r o w i t h d i t a n c e , t h a t i a t h e y m o v e f r o m t h b o t t o m o t h s c r e e n t t h t o p , a n b u i l d i n g s i t h e d i s t a n c e t h a t a r s m a l l e r a n c o n t a i ns m a l l e r w i n d o w s .

O n c e y o u r b a c k g r o u n d i s e y o a r r e a d y t m o v e y o u rs p r i t e s o n t o t h s c r e e n . R e m e m b e r o u r m o n s t e r s a t t a c k i n g t h ev i l l a g e ? S e t s p r i t e z e r o t o u l a s e r g u f i r e . I o n l y s h o w s w h e ny o u p u s h t h j o y s t i c k b u t t o n . S p r i t e o n i o u f i g h t e r p l a n e t h a th a f l o w n i t p r o t e c t t h v i l l a g e f r o m t h d r e a d e d m o n s t e r s .S i n c e w h a v e e i g h t s p r i t e s a v a i l a b l e , t h i s l e a v e s u s w i t h s i m o n s t e r s p r i t e s t m o v e o t h s c r e e n .

I y o u r s i m o n s t e r s a r t m o v e h o r i z o n t a l l y a c r o s s t h s c r e e n ,m a k e s u r e t h a t m o n s t e r s p r i t e i o t h b o t t o m o t h s c r e e n .S p r i t e i n e x t a n s p r i t e i t h h i g h e s t . W h e n t h s p r i t e sc r o s s e a c h o t h e r ' s p a t h s , t h s p r i t e w i t h t h e l o w e s t s p r i t en u m b e r r e m a i n s v i s i b l e , o b s c u r i n g t h h i g h e r - n u m b e r e ds p r i t e s a i t h e y w e r e b e h i n d i t

A n o t h e r m e t h o d t a d d e p t h i t c h a n g e t h s i z e o f y o u rm o n s t e r a h m o v e s d o w n t h s c r e e n . T h i s i p a r t i c u l a r l ye f f e c t i v e i t h s p r i t e i t a p p e a r t b a t t a c k i n g f r o m d i s t a n c ea n i m o v i n g v e r y f a s t t o w a r d s y o u . T h s p r i t e m a b m a d e t c h a n g e i t s i z e a i p a s s e s a g i v e n p o s i t i o n o t h s c r e e n ( a t h

a n c o - o r d i n a t e s i $ D 0 0 0 t $ D 0 1 1 c h a n g e ) . I g e n e r a l ,t h s p r i t e s h o u l d b e c o m e l a r g e r a i a p p r o a c h e s t h b o t t o m o

t h s c r e e n . T h e a s i e s t w a t c h a n g e t h s p r i t e s i z e i b u s i n gt h v e r t i c a l e x p a n s i o n r e g i s t e r ( l o c a t i o n $ D 0 1 7 ) a n t h h o r iz o n t a l e x p a n s i o n r e g i s t e r ( l o c a t i o n $ D 0 1 D ) . W h e n t h s p r i t ef i r s t a p p e a r s , t h e b i t s i t h e x p a n s i o n r e g i s t e r f o t h s p r i t es h o u l d b e z e r o t o s e t t h s p r i t e t o t h e r e g u l a r s i z e . T h e n a s t h es p r i t e p a s s e s a s e l e c t e d p o i n t o t h s c r e e n , y o c a s e t h e x p a n s i o n b i t s a n h a v e t h s p r i t e d o u b l e i s i z e . D e p e n d i n go t h s p e e d a n s h a p e o t h s p r i t e , y o m a w a n t t f i r s t s e o n l y t h e h o r i z o n t a l b i t , t h e n e x p a n d v e r t i c a l l y f u r t h e r d o w n t h s c r e e n . E x p e r i m e n t t f i n d t h b e s t e f f e c t .

A l t e r n a t i v e l y t w o r k i n g w i t h t h h o r i z o n t a l a n v e r t i c a l r e g i st e r s , y o m a c h a n g e y o u j s p r i t e s i z e b u s i n g d i f f e r e n t s p r i t ed e f i n i t i o n s o i m a g e s . T o d o t h i s , c h a n g e t h e a p p r o p r i a t e s p r i t ed a t a p o i n t e r t p o i n t t n e d e f i n i t i o n . E a c h n e d e f i n i t i o ns h o u l d b e s i m i l a r i m a g e b u t a d i f f e r e n t s i z e . T h i s o c o u r s ei n v o l v e s m o r e t i m e i c r e a t i n g t h s p r i t e s a n m o r e m e m o r y t s t o r e t h e m t h a n j u s t u s i n g t h e x p a n s i o n r e g i s t e r s . T h r e ed i f f e r e n t s i z e s f o a t t a c k i n g m o n s t e r s s e e m s u f f i c i e n t b u m o r ec o u l d c e r t a i n l y b e u s e d t c r e a t e s m o o t h e r t r a n s i t i o n .

A n o t h e r m e t h o d t g i v e a i m p r e s s i o n o d e p t h i t h u s o c o l o u r . A s s u m e t h a t y o u h a v e a b l a c k b a c k g r o u n d . Y o u r s p r i t ec o u l d s h o w u f i r s t a d a r k g r e y , t h e n a i a p p r o a c h e s , t u r nl i g h t g r e y , t h e n l i g h t e r a n f i n a l l y w h i t e o r y e l l o w . I i e v e nm o r e e f f e c t i v e i t h s p r i t e i m u l t i c o l o u r a n e v e n t u a l l y a p e a r s b r i l l i a n t c o m b i n a t i o n o y e l l o w a n r e d . Y o c a u s s i m i l a r t e c h n i q u e s i r e v e r s e t s h o w m o n s t e r r e t r e a t i n g i n t ot h d i s t a n c e . H o w e v e r , t h n a t u r e o m o n s t e r s i s u c h t h a t t h e yt e n d t a t t a c k .

U s e y o u s p r i t e / b a c k g r o u n d d i s p l a y p r i o r i t y ( l o c a t i o n $ D 0 1 B t c o n t r o l w h e t h e r s p r i t e m o v e s i f r o n t o o b e h i n d t h b a c k g r o u n d . I s p r i t e i s u p p o s e d t b a g r e a t d i s t a n c e t h e ni s h o u l d m o v e b e h i n d t h b a c k g r o u n d . I o u e x a m p l e , t h b a c k g r o u n d w o u l d b t h t r e e s a n b u i l d i n g s . I s p r i t e i c l o s ei s h o u l d m o v e i f r o n t o f t h v i l l a g e . I i m o s t e f f e c t i v e i s o m es p r i t e s m o v e i f r o n t w h i l e o t h e r s m o v e i t h b a c k g r o u n d .S i n c e y o k n o w t h l o c a t i o n o y o u r s p r i t e , y o c a c h a n g e i t b a c k g r o u n d d i s p l a y p r i o r i t y a a f u n c t i o n o w h e r e i i o t h s c r e e n . H o w e v e r , b e f o r e y o u d o t h i s b s u r e a n c h e c k t h s p r i t e / b a c k g r o u n d c o l l i s i o n r e g i s t e r a $ D 0 1 F o y o m a c a u s e m o n s t e r t c u r i g h t t h r o u g h t h m i d d l e o b u i l d i n g .

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

T h T r o n s o c t o r 6 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e 0

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 65/88

o T h C o m m o d o r e 6 A n t h o n y B r y a n t

W i n n i p e g , M a n i t o b a

H i - r e s a n M u l t i c o l o u r M o d e W i n d o w i n g U t i l i t y

V o l u m e 5 I s s u e 0 o T h T r a n s a c t o r , G a r y K i z i a k p r e s e n t e d h i E S ' g r a p h i c s u t i l i t y p a c k a g e f o t h C - 6 4 . T h a t p a c k a g e g i v e sp r o g r a m m e r a a r r a y o f f l e x i b l e d r a w i n g c o m m a n d s . H I R E S

i t h f r e e R A a $ C 0 0 0 - $ C 8 1 E a n d u s e s d i r e c t S Y c a l l sp l o t o t h b i t m a p a $ E 0 0 0 . V i e w p o r t s w o r k s i c o n j u n c t i o n

H I R E S a d d i n g a d d i t i o n a l c o m m a n d s , i n l i k e m a n n e r , a n a $ C 8 6 4 - $ C B F F .

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

, V I E W , a l l o w s t h e d e f i n i t i o n o s u b s e t s o t h s c r e e n , c a l l e dO n c e v i e w p o r t h a s b e e n d e f i n e d , a l s u b s e q u e n t

a p p e a r s w i t h i n t h a t v i e w p o r t . V I E W c o m p r e s s e s t h o l n c o o r d i n a t e s t f i i n t o t h n e v i e w p o r t . T h e r e f o r e , s c a l i n g

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

t t h a r t i c l e b y G a r y K i z i a k f o r d e t a i l s o t h s c r e e nc h a r a c t e r c e l l s a n H I R E S c o m m a n d s . V i e w p o r t s

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

T S . B A S ' i B A S I C l o a d e r t h a t , w h e n r u n , w i l l c r e a t ef i l e c a l l e d ' V I E W P O R T S ' o y o u r d i s k . ( M a k e i t h s a m e

t h a t h o l d s ' H I R E S ' ) T h i s i t h m a c h i n e c o d e t h a t c o n t a i n sa n n u m b e r o s u p p o r t i n g c o m m a n d s w h i c h m a k e s

q u i t e p o w e r f u l .

s N o t e : G a r y K i z i a k ' s H I R E S u t i l i t y h a s f o u n d i t ' s w a i n t oa n o t h e r a p p l i c a t i o n . T h ' H I R E S ' c r e a t e l o a d e r i n o t p r i n t e d

b u t h l o a d a b l e ' H I R E S ' f i l e w i l l b i n c l u d e d o T r a n s a c t o r# 1 f o t h i s i s s u e . F o r a c o m p l e t e d e s c r i p t i o n o t h K i z i a k

u t i l i t y , s e V o l u m e 5 I s s u e 0 6 t i t l e d " A i d s a n U t i l i t i e s " .

1 a n ' D E M O 2 a r s a m p l e B a s i c p r o g r a m s t h a t d e m o nt h n e c o m m a n d s . B e f o r e l o o k i n g a t h e s e , l e t ' s g o t h r o u g h

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

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

L C , T R i t h t o l e f t - h a n d c o r n e r o t h e v i e w p o r t , w h i c h , i y o w e r e t d e f i n e t h e w h o l e s c r e e n a v i e w p o r t , w o u l d b 0 , 0 . e g

S Y V I E W , 0 , 0 , 4 0 , 2 5

T h e r e i s h o r t e r w a y :

S Y S V I E W

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

H I R E S u s e s t h e C a r t e s i a n s y s t e m o c o o r d i n a t e s w h e r e p o i n t x , e q u a l t ( 0 , 0 ) i t h l o w e r l e f t h a n d c o r n e r a n x , e q u a l t ( 3 1 9 , 1 9 9 ) < o ( 1 5 9 , 1 9 9 ) f o m u l t i c o l o u r m o d e > i t h e t o p r i g h th a n d c o r n e r o t h h i r e s s c r e e n . W h e r e v e r v i e w p o r t i l o c a t e d ,p o i n t ( 0 , 0 ) i t h l o w e r l e f t h a n d c o r n e r o t h e v i e w p o r t , a n p o i n t( 3 1 9 , 1 9 9 ) < o ( 1 5 9 , 1 9 9 ) f o m u l t i c o l o u r m o d e > i t h e t o p r i g h th a n d c o r n e r o t h e v i e w p o r t .

N o w , p l o t t i n g u s i n g H I R E S c o m m a n d s P L O T , M O V E , D R A W , a n B O i s c a l e d a u t o m a t i c a l l y t f i t h v i e w p o r t . A l o t h H I R E Sc o m m a n d s k e e p t h e i r o r i g i n a l s y n t a x , s o l p r o g r a m s w h i c h u s e dt h e s e c o m m a n d s c a b v i e w p o r t e d .

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

a n

1 0 S Y V I E W , L C , T R , W I D T H , D E P T H , B G . C 1( i h i r e s m o d e )

1 0 S Y V I E W , L C , T R , W I D T H , D E P T H , B G . C 1 , C 2 , C 3( i m u l t i c o l o u r m o d e )

S e t t i n g U H i - R e s V i e w p o r t

d e f i n e a v i e w p o r t , a l i n e w i t h t h e f o l l o w i n g s y n t a x i r e q u i r e d . 2 C o l o u r i n g T h V i e w p o r t

1 0 S Y V I E W , L C , T R , W I D T H , D E P T H

w h e r e B G C l C a n C a r e t h e b a c k g o u n d a n p l o t t i n g c o l o u r sf r o m H I R E S .

W h e n t h e s e e x t r a c o l o u r p a r a m e t e r s a r i n c l u d e d i V I E Wc o m m a n d , t h e y a r p a s s e d o t V C O L O U R , t h n e x t c o m m a n d .

L i t h l e f t - m o s t c o l u m n ( 0 - 3 9 )T i t h t o p - m o s t r o ( 0 - 2 4 )W I D T H i t h n u m b e r o c o l u m n s w i d e ( 1 - 4 0 )D E P T H i t h n u m b e r o r o w s d e e p ( 1 - 2 5 )

a n

2 0 0 S Y S V C O L O U R , B G , C 1( i h i r e s m o d e )

2 0 S Y V C O L O U R , B G , C 1 , C 2 , C 3( i m u l t i c o l o u r m o d e )

T r o n s o c t o f 6 S e p t . 1 9 8 6 : V o l u m e 7 I s t u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 66/88

V C O L O U R a c t u a l l y c h a n g e s t h b a c k g r o u n d a n d p l o t t i n g c o l o u r s ,f i l l i n g t h s c r e e n c o l o u r m e m o r y W I T H I N t h c u r r e n t l y d e f i n e dv i e w p o r t .

3 T h i s I F r a m e U

W i t h t h i s s i m p l e c o m m a n d :

3 0 0 S Y S V F R A M E

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

3 0 S Y V F R A M E . C . M

a l s o w o r k s , a t h f r a m e i d r a w n i t h c u r r e n t l y a c t i v e p l o t t i n gc o l o u r , w h e r e i t h S E L P C a n i t h D M O D E . ( S e e t h e H I R E SB O c o m m a n d )

4 W i p e O u

N e c o m m a n d s V I E W a n V C O L O U R d n o a f f e c t t h b i t m a p , b u t h e r e a r o c c a s i o n s w h e n y o w o u l d w a n t a c l e a n v i e w p o r t a m i d s t

c l u t t e r e d h i r e s s c r e e n .

4 0 S Y S V W I P E

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

H I R E S c o m m a n d s d r a w o n t h b i t m a p l o c a t e d a $ E 0 0 0 ( u n d e r t h K e r n a l R O M ) . V i e w p o r t s a l l o w s f o a a l t e r n a t e b i t m a p l o c a t e d a $ A 0 0 0 ( u n d e r t h B A S I C R O M ) .

4 0 S Y V W I P E ,

c l e a r s t h a l t e r n a t e b i t m a p ( u n s e e n ) - a a r e a t h e s a m e d i m e ns i o n s a t h e c u r r e n t l y d e f i n e d v i e w p o r t . N o t e : ' , 1 ' i m e r e l y f l a ga n c o u l d b ' , a n y t h i n g b e t w e e n 0 - 2 5 5 .

5 B i t m a p S w a p

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

5 0 S Y V S W A P

d o e s a b y t e f o b y t e e x c h a n g e o t h H I R E S b i t m a p w i t h t h V i e w p o r t s a l t e r n a t e b i t m a p . O n l y t h a t p o r t i o n o t h b i t m a p sw i t h i n t h e c u r r e n t l y d e f i n e d v i e w p o r t i s w a p p e d . C o n s e q u e n t l y ,s m a l l e r v i e w p o r t s t a k e l e s s t i m e t s w a p a n d w i p e a n d m u l t i p l e ,o v e r l a p p i n g v i e w p o r t s a r p o s s i b l e .

6 S c r o l l Y o u r R o w s

7 S c r o l l i n g C o l u m n s

7 0 S Y V L F T

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

7 0 S Y V L F T ,

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

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

T e c h n i c a l N o t e s

V i e w p o r t s p a t c h e s d i r e c t l y i n t o t h H I R E S r o u t i n e s , m o d i f y i n gP L O T , M O V E , D R A W a n B O t a l l o w s c a l i n g . S c a l i n g i a c c o mp l i s h e d u s i n g 1 b i i n t e g e r m a t h r o u t i n e s ( n o t B A S I C ' S f l o a t i n gp o i n t r o u t i n e s ) s i i v e r y f a s t a n d o e s n o s l o w d o w n P L O T ,M O V E , D R A W o B O m u c h . I S Y V I E W i u s e d w i t h o u tp a r a m e t e r s ( o t h e e q u i v a l e n t S Y V I E W , 0 , 0 , 4 0 , 2 5 ) s t h a t t h w h o l e s c r e e n i d e f i n e d a t h e v i e w p o r t , t h e n t h s c a l i n g m a t hr o u t i n e s a r e s i m p l y b y p a s s e d a n t h s l o w d o w n i n o o n l y f e m a c h i n e c y c l e s .

T h n e c o m m a n d s m a k e u s o m a n y r o u t i n e s f r o m H I R E S . F o e x a m p l e , V F R A M E s e t s u t h x , p a r a m e t e r s a n t h e n j u m p s i n t ot h B O c o m m a n d t d t h a c t u a l p l o t t i n g . S i H I R E S i s n ' t i p l a c e , t h n e w c o m m a n d s w i l l c r a s h .

V i e w p o r t s o c c u p i e s f r e e R A s p a c e b e l o w H I R E S , a $ C 8 6 4 -$ C B F F a n d , l i k e H I R E S , t h f i r s t m e m o r y a d d r e s s e s c o m p r i s e t h c o m m a n d j u m p t a b l e . B e s i d e s t h e u s o t h a l t e r n a t e b i t m a pm e m o r y a r e a R A f r o m $ A 0 0 0 - $ B F F F , p o r t i o n o R A f r o m$ D E 0 0 - $ D F 4 0 i u s e d i t h s c r o l l i n g r o u t i n e s .

• D E M O 1

' D E M O 1 i d e m o n s t r a t i o n p r o g r a m t h a t s h o w s h o e a s y i i t s c a l e a e x i s t i n g p r o g r a m ( i t h i s c a s e , G a r y K i z i a k ' s p i e c h a r tm a k i n g p r o g r a m ) a n m a n i p u l a t e m u l t i p l e v i e w p o r t s . I t ' s j u s tm a t t e r o s e t t i n g u v i e w p o r t a n G O S U B i n g t t h o r i g i n a l p i d r a w i n g s u b r o u t i n e s . T h d o - n o t h i n g F O R / N E X T l o o p s j u s t s l o wd o w n t h d e m o .

6 0 S Y V U

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

6 0 S Y V U P ,

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

' D E M O 2

' D E M O 2 d o e s s i m u l a t i o n o h i r e s m e n u m a n a g e r . C o m p u t e r sl i k e t h M a c i n t o s h d o n ' t h a v e t e x t s c r e e n s a n d m u s t c o m m u n i c a t eo n l y u s i n g h i r e s s c r e e n s .

E x p e r i m e n t i n g w i t h H I R E S V I E W P O R T S m a l e a d y o d o w n n e a n e x c i t i n g p a t h s .

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 67/88

0 M

: L o a d e r T

1 0 0 01 0 1 0

r e r e

1 0 2 0 r e m1 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 0

1 1 2 01 1 3 0

1 1 4 0

1 1 5 01 1 6 01 1 7 01 1 8 01 1 9 0

r e r e

r e r e r e

» C r e a t e O b j e c t F i l e O D i s k

s a v e " 0 : v i e w p o r t s . b a s " , * a e n h a n c e m e n t p a c k a g e* f o g a r r y k i z i a k ' s ' h i r e s '* b a n t h o n y b r y a n t* W i n n i p e g , m a n i t o b a

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

o p e n 1 5 , 8 , 1 5 : o p e n 8 , 8 , 1 , " 0 : v i e w p o r t s "i n p u t # 1 5 , e , e $ , b , c : i e t h e n c l o s e 1 5 p r i n t

f o r j :

e ; e $ ; b ; c : s t o p

5 1 3 0 0 t 5 2 2 1 9 : r e a d x p r i n t # 8 , c h r $ ( x ) ; :c c x n e x t : c l o s e 8i c h < > 1 1 9 4 8 1 t h e n p r i n t " c h e c k s u me r r o rp r i n t

d a t ad a t a

! " s t o p* m o d u l e c r e a t e d * * " : e n

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

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

1 2 9 0 d a t a1 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 0

d a t a

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

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

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

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

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

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

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

1 3 9 0 d a t a1 4 0 01 4 1 01 4 2 0

d a t ad a t ad a t a

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

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

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

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

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

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

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

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

1 7 , 2 0 27 6 , 2 4 6

2 0 3 ,0

2 0 0 , 3 1 0 1

0 3 1 2 5 , 1 9 1 2 2 , 2 0 02 5 , 1 4 12 0 0 , 1 4 12 4 8 , 1 9 2 0 0 , 1 4 12 5 0 , 1 6 01 9 7 , 9

3 2 1 , 2 3 2

2 4 1 0 1 5 6 , 1 9

3 2 1 9 3 , 1 7 1 2 3 , 2 0 02 0 1 , 1 6 01 9 2 , 1 4 1 7 4 , 4 2 4 0 ,1 0 3 , 2 0 1

9 6 , 1 3 33 6 , 1 6 9

3 2 2 0 8 , 2 4 5

3 6 1 3 2 0 , 1 3 43 6 1 3

P J A H O A

E C A B

C B F

N H

N K N M

I G

D H D M K P N

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

C

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

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

3 7 3 6

1 6 8 ^3 6 3 8 7 2 3 2

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

2 4 1 4 2 ,1 4 1 ,

4 8 d a t a 2 0 0 ,d a t ad a t ad a t ad a t ad a t ad a t a

1 2 4 ,2 4

2 0 0 ,2 4 1 ,

3 2 1 9 2 ,

d a t a 2 0 8 ,d a t ad a t ad a t ad a t ad a t a

7 0 0

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

d a t a 2 0 0 ,d a t ad a t ad a t ad a t a

1 8 5 0 d a t a1 8 6 01 8 7 01 8 8 01 8 9 01 9 0 01 9 1 0

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

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

d a t a

1 3 6 ,1 2 3 ,

5 6 1 5 2 ,

0 1 7 7 ,1 2 8 ,1 9 2 ,1 3 3 ,1 0 1 ,2 3 2 ,

2 2 5 2 ,

d a t a 2 5 4 ,d a t ad a t ad a t ad a t ad a t ad a t a

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

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

9 1 1

1 3 3 ,1 6 4 ,

9 6 2 0 0 ,

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

6 0

1 6 2 ,3 8

1 6 5 ,1 3 3 ,

2 1 1 7 8 ,1 2 1 ,

4 0 1 8 3 ,

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

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

3 2 1 8 3 ,

1 1 1 6

1 7 3 ,1 9 2 ,

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

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

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

2 1 6 9 ,

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

7 6 3 2

1 4 1 ,

1 6 3 3 7 5 3 7 2 3 3 7 2 0

1 6 6 , 2 13 2 , 1 6 2

0 , 2 4 01 7 6 , 2 3 52 2 4 , 2 2 4 1 , 1 8 32 0 0 , 2 0

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

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

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

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

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

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

1 0 , 1 0 ,1 1 6 8 ,

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

7 2 1 7 7 ,4 8 3

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

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

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

0 4 4 3 0 2 0 3 ,

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

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

2

o 2 0 8 ,1 6 5 ,2 0 0 ,

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

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

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

1 0 2 0 8 ,

1 5 1 3 1 ,

6 1 1 3

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

5 1 1 0 3 1 0

1 3 8 ,7 6

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

3 2 1 6 9 ,

3 2

3 8 2 1 3 J l J , C - C - \ D , O H

1 4 4 , 4 , 1 3 22 2 9 , 3 8 2

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

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

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

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

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

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

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

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

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

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

1 4 4 , 1 , 2 3 22 3 3 , 0 , 1 7 0

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

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

2 4 1 0 1 , 2 5 12 5 2 , 1 5 2 , 2

2 2 3 0 , 2 5 2 0 1 , 9 6 , 1 3 21 3 3 , 9 1 , 1 6 51 3 3 , 9 3 , 1 6 52 0 2 , 2 4 , 1 6 51 6 5 , 9 2 , 1 0 5

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

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

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

0 3 2 , 1 8 51 2 1 , 0 , 2 4 0

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

T r a n s a c t o r 6 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 68/88

G L J O M L J J

I L A D C N 1

P K L M G K

I N N J

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

D e m o n s t r a t i o n P r o g r a m N u m b e r

J B K G A K E P L

O M B L K A

K M E M

M A N G E P J

1 0 r e s a v e " 0 : d e m o 1 , 1 1 r e ' v i e w p o r t s ' d e m o n s t r a t i o n

1 3 3 ,1 4 1 ,

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

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

2 1

1 2 i p e e k ( 4 9 1 5 3 ) < > 1 9 4 t h e n l o a d " O : h i r e s "

1 3 3

2 5 1 2

9 1 8 1 3 1 3 1 7 1 9

9 2 2 2 5

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

, 8 , 11 3 i p e e k ( 5 1 3 0 1 ) 0 1 5 6 t h e n l o a d " 0 : v i e w p o r t s " , 8 , 11 4 0 :1 5 l c c h r $ ( 1 4 ) : c d c h r $ ( 1 7 ) : r v 1 6 0 :1 7 r e ' h i r e s ' v a r i a b l e s

c h r $ ( 1 i

1 8 h i r e s 4 9 1 5 2 : d r a w = h 3 p l o t d 1 9 m o v e p 3 c l s c r m 3 d m o d e c 2 0 s e l p c d 3 c o l o u r s 3 b o c 2 1 t e x t b o 3 p r n t t 3 c h s e t p 2 2 0 t r a p c 2 3 0 :2 4 r e ' v i e w p o r t ' v a r i a b l e s2 5 v i e w 5 1 3 0 0 : v c o l v 3 v f r a m e2 6 v w i p e v 3 v s w a p = v 3 v u 2 7 0 v l f t v 2 8 0 :2 9 r e b e g i n t h d e m o n s t r a t i o n

v v

3 0 0 0 w i d t h 4 0 d e p t h 2 5 b 3 1 0 a $ a $ " 3 2 s y h i r e s , O , b g , d : p o k e 5 3 2 8 0 , 13 3 s y v i e w : s y s v w i p e ,3 4 a l c P i C h a r t s a r E a s y "3 5 a = c d $ + r v + " [ 1 0 s p c s ] " a

r v $ + " [ 1 1 s p c s ] "

: c 1 = 6

O J N

L M G P C H 0

D M C G L C G

D K

I M A E

C J D P L

H K L E P C G J I

G I

N G B N J E L I

E E

G G N F

O A

3 6 g o s u b 6 3 0 ' f r a m e d b i g p i e c h a r t3 7 0 f o r i 1 t o 1 0 0 0 : n e x t3 8 w i d t h 1 9 d e p t h 1 3 9 0 c 0 0 b 7 : d = 04 0 a l c r v [ s p c s ] V i e w p o r t # [ s p c s ] "4 1 g o s u b 6 1 0 ' f r a m e s c a l e p i c h a r t4 2 d e p t h 1 4 3 0 c 2 1 0 : b g 3 : = 4 4 a l c r v [ s p c s ] V i e w p o r t # 2 [ 4 s p c s ] "4 5 g o s u b 6 1 0 ' f r a m e s c a l e p i c h a r t4 6 w i d t h 3 4 d e p t h4 7 0 c 3 1 7 b 4 : d = 04 8 a l c r v [ s p c s ] V i e w p o r t # 3 [ 4 s p c s ] "4 9 g o s u b 6 1 0 ' f r a m e s c a l e p i c h a r t5 0 0 f o r i 1 t o 1 0 0 0 : n e x t5 1 0 :5 2 r e n o s w a p v i e w p o r t s b a c k5 3 0 b g 1 : c 1 = 5 4 s y v i e w , 0 , 0 , 1 9 , 1 2 , b g , c 1 : s y v s w a p5 5 s y v i e w , 2 1 , 0 , 1 9 , 1 6 , b g , c 1 : s y v s w a p5 6 s y v i e w , 3 , 1 7 , 3 4 , 8 , b g , c 1 : s y v s w a p5 7 w a i t 1 9 8 , 1 : g e a $ s y t e x t5 8 0 e n d5 9 0 :6 0 0 r e m t h p i d r a w i n g s u b r o u t i n e s6 1 s y v i e w . c . r , w i d t h , d e p t h , b g , c 16 2 s y v s w a p6 3 s y v f r a m e : s y s p r n t , c , r , a $6 4 s y c o l o u r . d6 5 x 1 5 9 : y 1 0 0 : x 7 0 y 5 0 i n 1 6 6 s 4 5 e 7 5 g o s u b 8 7 06 7 s 7 5 e 1 6 0 : g o s u b 8 7 06 8 s 1 6 0 : e 2 4 0 : g o s u b 8 7 06 9 s 2 4 0 : e 3 2 5 : g o s u b 8 7 07 0 x 1 7 5 : s - 3 5 : e 4 5 g o s u b 8 7 07 1 s y b o x , 1 4 , 1 7 0 , 2 9 1 , 1 6 07 2 s y b o x , 8 , 1 7 4 , 3 0 5 , 1 6 87 3 r e t u r n7 4 0 :7 5 0 r e m d r a w a r 7 6 z s a * 7 t / 1 8 0 : z e a * n / 1 8 0 : z i n c * n / 1 8 07 7 x x r * c o s ( z 1 ) : y y r * s i n ( z 1 )7 8 s y m o v e . x . y7 9 f o z t z s t e p z 38 0 x x r * c o s ( i ) : y y r * s i n ( i )8 1 s y s d r a w . x . y8 2 n e x t8 3 s y d r a w . x c x r * c o s ( z 2 ) , y c y r * s i n ( z 2 )8 4 r e t u r n8 5 0 :8 6 0 r e m d r a w p i 8 7 g o s u b 7 6 08 8 s y d r a w . x c . y c8 9 s y d r a w . x c x r * c o s ( z 1 ) , y c y r * s i n ( z 1 )9 0 r e t u r n

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 69/88

P r o g r a m N u m b e r

L

L

1 0 0 r e m s a v e " 0 : d e m o 2 , 1 1 0 r e m ' v i e w p o r t s ' d e m o n s t r a t i o n1 2 i p e e k ( 4 9 1 5 3 ) 0 1 9 4 t h e n l o a d " h i r e s " , 8 , 11 3 i p e e k ( 5 1 3 0 1 ) 0 1 5 6 t h e n l o a d " v i e w p o r t s " , 8 , 11 4 0 :1 5 l c c h r $ ( 1 4 ) : r o $ c h r $ ( 1 4 6 )1 6 0 :1 7 r e ' h i r e s ' v a r i a b l e s1 8 h i r e s 4 9 1 5 2 : d r a w = h i 3 p l o t d 1 9 m o v e p 3 c l s c r m 3 d m o d e c 2 0 s e l p c d 3 c o l o u r s + 3 b o c 2 1 t e x t b 3 p r n t t 3 o n s e t p 2 2 0 t r a p c h + 32 3 0 :2 4 r e ' v i e w p o r t ' v a r i a b l e s2 5 v i e w 5 1 3 0 0 : v c o l v 3 v f r a m e v 2 6 v w i p e v f 3 v s w a p v 3 v u p = v 2 7 0 v l f t v 2 8 0 :2 9 r e h i r e s m e n u m a n a g e r s i m u l a t i o n3 0 0 b g 1 : c 1 = 03 1 s y h i r e s , 0 , b g , c 1 : p o k e 5 3 2 8 0 , 33 2 s y v i e w : s y v w i p e , 13 3 0 :3 4 r e s e u m e n u c o m m a n d l i n e3 5 0 0 s y v i e w . c . r , 4 0 , 1 , b g , d3 6 a l c r o D r a w [ 3 s p c s J F i l e

[ s p c s ] V i e w [ 3 s p c s ] O p t i o n s "3 7 3 s y p r n t , c , r , a $3 8 0 :3 9 r e s e u g r e e n w o r k b e n c h4 0 0 1 s y v i e w , c , r , 4 0 , 2 4 , 1 3 , d4 1 s y v f r a m e4 2 0 :4 3 r e s e l e c t m e n u i t e m ' d r a w '4 4 2 0 s y v i e w , c , r , 6 , 1 , 0 , 14 5 1 s y v i e w , c , r , 9 , 8 , 1 4 , 14 6 s y v s w a p : s y v f r a m e4 7 3 3 s y p r n t , c , r , l c $ + " C i r c l e s "4 8 4 s y p r n t , c , r , l c $ + B o x e s "4 9 5 s y p r n t , c , r , l c $ A r c s "5 0 6 s y p r n t , c , r , l c $ + " L i n e s "5 1 f o 1 t o 1 0 0 0 : n e x t5 2 s y v i e w , c , r , 7 , 1 , 1 , 65 3 0 f o r i 1 t o 1 0 0 0 : n e x t5 4 0 c 2 1 s y s v i e w , c , r , 9 , 8 , 1 3 , d5 5 s y v s w a p : s y v w i p e , 15 6 2 0 s y v i e w , c , r , 6 , 1 , b g , c 15 7 0 :5 8 r e r e t u r n t g r e e n w o r k b e n c h5 9 0 1 s y s v i e w , c , r , 4 0 , 2 4 , 1 3 , d6 0 s y m o v e , 0 , 06 1 0 f o r j 1 t o 5 06 2 s y d r a w , r n d ( 1 ) * 3 2 0 , r n d ( 1 ) * 2 0 0

I H O J N C L A H H

M L L L

D C G E

G H D J C O L B

O I

E C P M G C L P K

6 3 n e x t6 4 0 f o r i 1 t o 1 0 0 0 : n e x t6 5 0 :6 6 r e s e l e c t m e n u i t e m " f i l e "6 7 9 0 s y v i e w , c , r , 6 , 1 , 0 , 16 8 1 s y v i e w , c , r , 2 0 , 2 0 , 3 , c 16 9 s y v s w a p : s y v f r a m e7 0 1 0 2 s y v i e w , c , r , 1 8 , 1 87 1 1 8 g o s u b 8 2 0 ' p r i n t f i l e n a m e s7 2 0 f o r i 1 t o 1 0 0 0 : n e x t7 3 9 1 5 s y v i e w , c , r , 2 0 , 1 , 0 , 37 4 0 f o r i 1 t o 1 0 0 0 : n e x t7 5 0 c 9 1 s y s v i e w , c , r , 2 0 , 2 0 , 1 3 , d7 6 s y v s w a p7 7 0 c 9 0 s y s v i e w , c , r , 6 , 1 , 1 , 07 8 w a i t i 9 8 , 1 : g e t a $ : s y t e x t7 9 0 e n d8 0 0 :8 1 r e m a k e u s o m e f i l e n a m e s s c r o l l8 2 0 a $ = " > d i r [ 1 3 s p c s ] " g o s u b 9 7 08 3 a [ 1 s p c s ] " g o s u b 9 7 08 4 a C - 6 4 W e d g e " g o s u b 9 7 08 5 a D o 5 . " g o s u b 9 7 08 6 a D i s p l a y " g o s u b 9 7 08 7 a U n i c o p y 6 4 " g o s u b 9 7 08 8 a S u p e r m o n 6 4 . V 1 " g o s u b 9 7 0Q Q q < " n n c i i h Q 7 D9 0 a C o m m a n d s . t e x t d e m o " g o s u b 9 7 09 1 a C o m m a n d s . m l " g o s u b 9 7 09 2 a H i r e s d e m o p r o g r a m " g o s u b 9 7 09 3 a H i r e s . m l " g o s u b 9 7 09 4 a V i e w p o r t s d e m o p r " g o s u b 9 7 09 5 a $ V i e w p o r t s . m l " g o s u b 9 7 09 6 a 9 7 s y p r n t , c , r , a $ : s y v u 9 8 0 f o r i 1 t o 1 0 0 : n e x t9 9 r e t u r n

T r a n s o c f o r 6 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 70/88

C o m m o d o r e 6 H i g hR e s o l u t i o n D r a w R o u t i n e

D a v i d J a n k o w s k iC a i r n s , A u s t r a l i a

H i g h - R e s U t i l i t y Y o u C a n I n c o r p o r a t e I n t o Y o u r O w P r o g r a m s

T h i s i n t e r e s t i n g M H i - R e s r o u t i n e r e s i d e s a $ C 0 0 0 ( 4 9 1 5 2 ) a n i i n v o k e d b p a s s i n g s t r i n g v a r i a b l e f r o m y o u r b a s i c p r o g r a m w i t hS Y S 4 9 1 5 2 , A $ .

T h H i - R e s d r a w r o u t i n e c a b u s e d w i t h k e y b o a r d i n p u t ,j o y s t i c k o d r a w i n g p a d .

L i s t i n g c r e a t e s t h M p r o g r a m w h i c h a c t u a l l y p l o t s y o u r d r a wi n o t h H i - R e s s c r e e n .

L i s t i n g a n 3 g i v e y o s o m e p r a c t i c a l e x a m p l e s h o y o c o u l du s H i - R e s D r a w f r o m w i t h i n y o u r o w B a s i c p r o g r a m s a n L i s t i n g i c o m p l e t e j o y s t i c k d r a w i n g p r o g r a m r e a d y f o u s e .

C o m m a n d s

M o v e s P i x e l C u r s o r p i x e l ( s ) D O W N a n L E F T . c h r $ ( X )w h e r e X 1 - 1 9 9

C C L E A R S t h H i g h - R e s s c r e e n .M o v e s P i x e l C u r s o r p i x e l ( s ) D O W N . c h r $ ( X ) w h e r e1 - 1 9 9M o v e s P i x e l C u r s o r p i x e l ( s ) a n L E F T . c h r $ ( X ) w h e r eX 1 - 1 9 9M o v e s P i x e l C u r s o r p i x e l ( s ) U a n d R I G H T . c h r $ ( X ) w h e r eX 1 - 1 9 9S e t s p i x e l K O L O U R t a n s c r e e n K Q L O U R t Y K c h r $ ( X ) c h r $ ( Y ) w h e r e a n 0 - 1 5M o v e s P i x e l C u r s o r p i x e l ( s ) L E F T . c h r $ ( X ) w h e r e X 1 2 5 ( r e p e a t t m a x i m u m 3 2 p i x e l p o s i t i o n s ) .M o v e s P i x e l C u r s o r p i x e l ( s ) D O W N a n R I G H T . c h r $ ( X )w h e r e X 1 - 1 9 9S t a r t s a r e p e a t i n g L O O P . ( i . e . c h r $ ( 1 0 0 ) c h r $ ( 1 0 ) c h r $ ( l ) Z T h i s d r a w s B A R , 1 p i x e l s w i d e , 1 0 p i x e l s d o w n f r o m t h c u r r e n t c u r s o r p o s i t i o n . )P L O T . P l o t s p i x e l a n y w h e r e o t h s c r e e n . c h r $ ( X l ) c h r $ ( X 2 ) c h r $ ( Y ) w h e r e X 1 - 2 5 5 , X 2 0 - a n d Y 1 - 1 9 9 .N o t e : X I s h o u l d n o b g r e a t e r t h a n 6 4 w h e n X 1 . ( i . e .6 ( l x 2 5 5 ) X l + ( X 2 ) 3 2 0 )M o v e s P i x e l C u r s o r X p i x e l ( s ) R I G H T . c h r $ ( X ) w h e r e 1 2 5 ( r e p e a t t m a x i m u m 3 2 p i x e l p o s i t i o n s )M o v e s P i x e l C u r s o r X p i x e l ( s ) U P U c h r $ ( X ) w h e r e X 1 - 1 9 9I n d i c a t e s ' N E X T ' i l o o p s t a r t e d w i t h O .P e n E R A S E . P e n d r a w s i s c r e e n c o l o u r .P e D O W N . P e n d r a w s i c u r s o r c o l o u r .P e U P P e d o e s N O d r a w . C u r s o r m a b m o v e d t a n y w h e r e o n t h s c r e e n .C u r s o r O F F . S w i t c h e s C u r s o r O F F .

- C u r s o r O N S w i t c h e s C u r s o r O N

L i s t i n g 1 H i - R e s 6 B a s i c L o a d e r

E L

1 0 0 0 r e s a v e " 0 : h i - r e s 6 4 . b a s " , 1 0 1 0 r e m * * w r i t t e n b y d a v i d j a n k o w s k i , c a i r n s

q l 4 8 7 0 , a u s t r a l i a

A A C A

I B E P

F J

J H D J J H F N C H J F

N P

I N M E D F I

B C I

O P

B I

C F F

J D

D E D K

C C J L M E

1 0 2 01 0 3 0

1 0 4 0

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

f o 4 9 1 5 2 t 4 9 9 2 0 : r e a d x p o k e j , x :c c x n e x ti c h < > 8 9 3 4 5 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 pp r i n t d a t a o k a y - r e a d a r t i c l e t u s e " : e n

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

3 4 7 6 5 8

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

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

3 6 1

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

4 9 2 4

1 3 3 ,3 7

1 9 2 ,2 4 5 8 3 2

2 0 8 ,2 0 1 ,

2 4 1 9 3 ,

3 2 2 0 8 ,1 6 2 ,

3 3 3 4 7 6 5 8 3 4

1 2 3 6 ,2 0 1 ,

3 3 1

1 9 3 ,2 0 8 ,

3 3 0

1 9 3 ,1 9 5 ,

2 4 1 9 2 ,

3 6 2 3

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

5 2 3 3 2 , 5 8 ,

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

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

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

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

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

6 3 2 8 2 2 0 8 ,

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

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

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

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

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

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

1 7 4 , 3 4 2 3 4 ,

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

1 9 3

7 6 5 8 3 4

1

1 7 3 , 3 2 , 1 6 35 6 , 2 3 3 ,

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

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

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

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

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

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

4 2 1 4 1 , 2 5 52 5 5 , 1 9 5 , 1 4 1

7 6 2 4 , 1 9 23 0 , 1 9 4 , 7 6

6 3 2 , 2 4 17 6 , 2 0 8 ,

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

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

3 3 , 1 9 5 , 1 6 21 3 2 3

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

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

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

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

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

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

1 9 5 , 1 3 6 , 1 4

3 7 5 3

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 71/88

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

1 9 2 ,3 6 1 9

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

7 6 1 9 5 , 1 6

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

3 2 6 3 7 , 1 9 5

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

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

3 7 6 3 7 1 9 5 ,

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

1 9 6 1 3 3 , 5

4 1 7 5 4 3

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

3 , 1 5 2 ,2 1 4 4 ,

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

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

4 9 2 0 1 7

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

4 1 6 0 ,2 3 0 , 3

2 0 1 4 2 0

2 1 4 1 7

1 4 1 9

3 1 7 1 4 1 9 2 0

5 1 4

2 1 4 1 9 1 7

1 1 6 2 ,

3 3 8 9 6

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

3 1 6 5 ,

4 1 2

1 6 5 ,1 0 1 ,

0 2 4 0 ,

2 2

1 4 5 ,2

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

4 0

2 0 2 ,

3

1 9 1 8

3 1 7

3 2 3

5 5 5

1 7 2 3

3 3 7

1 0 5 ,3 8

2 3 2 ,5 3

1 9 4 ,0

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

5 3 4 1

6 7 4

1 3 3 ,6 3 7

2 3 0 ,3 5

5 6 2 7

1 6 9 ,2 4 0 ,

2 1 4 5 ,

3 2 1 4 5 ,2 0 8 ,

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

7 1 9 1 6 2 0 1 9

5 5

1 9 2 3 1 9

3 8 9 6 7 6

1 9 5 ,1

1 9 5 ,2 3 6 ,

3 3 2

1 7 2 ,3 8

2 3 2 ,2 5 2 ,

3 2 4 8 ,1 7 3 ,

7 4 2 2

2 4 2 4

3 1 0 5 ,1 3 3 ,1 0 6 ,1 6 0 ,

0 2 5 0 ,

2 4 2

1 3 3 ,2

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

2 2 4 6 ,

2 7

2 0 4 7

1 9

3 3

1 4 5

1 4 1 9 1 7 2 1 1 6 1 7

3 3

2 0 5 5

1 9 2 3 2 2 1 7 1 3

5 7

1 6 3

1 0 1 0

2 3

2 0

1 3 1 0 1 4

9

1 3 9

1 9 1 3

9

2 B a r - G r a p h G e n e r a t o r F o U s e W i t h H i - R e s 6

1 0 0 r e m s a v e " O : h i - r e s 6 b a r g e n "1 1 0 r e m * b a g r a p h g e n e r a t o r * 1 2 d r a w = 4 9 1 5 2 : h n 0 p r i n t c h r $ ( 1 4 71 3 0 s $ = " - 1 c k " + c h r $ ( 0 ) c h r $ ( 1 ) + "

c h r $ ( O ) c h r $ ( O ) c h r $ ( 1 9 9 )1 4 p r i n t s p c ( 1 4 ) " * b a r g r a p h *1 5 p r i n t s p c ( 1 4 ) " e n d w i t h - 11 6 d i a ( 1 0 0 ) :1 7 i n p u t " b a r v a l u e1 8 0 i f a ( i ) < > - 1 t h e n i1 9 0 :

" p r i n t

; a ( i ) : i a ( i ) > h n t h e n+ 1 g o t o 1 7

2 0 r e * f i n d h e i g h t w i d t h o b a r s *

h a ( i )

L A J C

N M O G L

H

2 1 f 2 0 0 / h n : x i n t ( 3 2 0 / i )2 2 0 :2 3 0 r e m * s e u s c r e e n * 2 4 p o k e 5 3 2 6 5 , p e e k ( 5 3 2 6 5 ) o r 3 2 :

p o k e 5 3 2 7 2 , p e e k ( 5 3 2 7 2 ) o r 82 5 s y d r a w , s $2 6 f o t i - 2 7 0 f c a ( j ) * f a : i f f c < 1 t h e n f c2 8 0 b $ o c h r $ ( f c ) r c h r $ ( x 1 - 2 ) I

c h r $ ( x 1 - 2 ) u c h r $ ( 1 ) z 2 9 s y s d r a w , b $ : s y s d r a w , " 2 d " + c h r $ ( f c ) r

c h r $ ( x 1 ) + " " n e x t3 0 w a i t 1 9 8 , 1 : p o k e 1 9 8 , 0 : p o k e 5 3 2 6 5 , 2 7 :

p o k e 5 3 2 7 2 , 2 1 : p r i n t c h r $ ( 1 4 7 ) ;

L i s t i n g 3 L e t t e r G e n e r a t o r F o r U s W i t h H i - R e s 6

O N D G B N D M

I D

K H H

M C F

1 0 0 r e m s a v e " O : h i - r e s 6 l e t t e r " , 1 1 r e * d r a w h i - r e s l e t t e r s * 1 2 i n p u t l e t t e r s i z e ; l z : d r a w = 4 9 1 5 21 3 0 :1 4 r e * * s e t u h r e s c r e e n * 1 5 s c k c h r $ ( 3 ) c h r $ ( 0 ) p c h r $ ( 1 0 )

c h r $ ( 0 ) c h r $ ( 0 )1 6 0 s y s d r a w , s $1 7 0 p o k e 5 3 2 6 5 , p e e k ( 5 3 2 6 5 ) o r 3 2 :

p o k e 5 3 2 7 2 , p e e k ( 5 3 2 7 2 ) o r 81 8 0 :1 9 0 r e m * l e t t e r d e f i n i t i o n s * *2 O O I 1 = l z / 22 1 0 a $ ( 1 ) = " 2 r " + c h r $ ( H ) + " 1 b " + c h r $ ( M ) + " d

c h r $ ( H ) + " u + c h r $ ( H )2 2 0 a $ ( 1 ) a $ ( 1 ) + " r + c h r $ ( M * 2 ) + " d

c h r $ ( H ) + " u c h r $ ( M ) " h + c h r $ ( H )2 3 0 a $ ( 1 ) a $ ( 1 ) + " 2 r " + c h r $ ( H )2 4 0 s y s d r a w , a $ ( 1 )2 5 w a i t 1 9 8 , 1 : p o k e 1 9 8 , 0 : p o k e 5 3 2 6 5 , 2 7 :

p o k e 5 3 2 7 2 , 2 1 : p r i n t c h r $ ( 1 4 7 ) ;

L i s t i n g 4 J o y s t i c k H i - R e s D r a w R o u t i n e

E J M M

O

K

C N D B M M

I

L P

K

1 0 0 r e m s a v e " 0 : h i - r e s 6 j o y s t k " , 1 1 0 r e m * * j o y s t i c k h i - r e s d r a w r t * 1 2 0 :1 3 0 r e m s e u v a r i a b l e s * 1 4 p o k e 5 3 2 6 5 , p e e k ( 5 3 2 6 5 ) o r 3 2 :

p o k e 5 3 2 7 2 , p e e k ( 5 3 2 7 2 ) o r 81 5 d r a w 4 9 1 5 2 : a $ ( 0 ) " " a $ ( 1 ) u c h r $ ( 1 ) :

a $ ( 2 ) = " d " + c h r $ ( 1 ) : a $ ( 3 ) = " "1 6 0 a $ ( 4 ) = " I + c h r $ ( 1 ) : a $ ( 5 ) = " h + c h r $ ( 1 ) :

a $ ( 6 ) = " b " + c h r $ ( 1 ) : a $ ( 7 ) = " "1 7 0 a $ ( 8 ) = " r + c h r $ ( 1 ) : a $ ( 9 ) = " j + c h r $ ( 1 ) :

a $ ( 1 0 ) = " n " + c h r $ ( 1 )1 8 0 s $ = + 1 c k " + c h r $ ( 1 ) c h r $ ( 0 ) + " p

c h r $ ( 1 6 0 ) c h r $ ( 0 ) c h r $ ( 1 0 0 )1 9 0 s y s d r a w , s $2 0 0 :2 1 0 r e m * r e a d t h j o y s t i c k * 2 2 j p e e k ( 5 6 3 2 0 ) : f j a n 1 6

j 1 5 - ( j v a n 1 5 2 3 i l e n ( a $ ( j v ) ) t h e n s y d r a w , a $ ( j v ) : g o t o 2 2 2 4 i f r O 1 6 t h e n - s c r i g h t $ ( s t r $ ( s ) , 1 )

s y d r a w , c $2 5 g o t o 2 2

6 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 72/88

H i - R e sS e a r c h a n P r i n t

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

T h C o m p l e t e H i r e s P r i n t e r U t i l i t y !

T h C o m m o d o r e 6 i c a p a b l e o p r o d u c i n g s t r i k i n g g r a p h i ci m a g e s i h i g h r e s o l u t i o n m o d e a n t h e r e a r m a n y g o o d c o m m e rc i a l a n p u b l i c d o m a i n p r o g r a m s a v a i l a b l e w h i c h s u p p o r t t h e i rc r e a t i o n . W h e n y o w a n t t p r i n t t h e s e i m a g e s , y o u ' r e g e n e r a l l yf o r c e d t d s f r o m w i t h i n t h e e n v i r o n m e n t o t h e g r a p h i c sp a c k a g e t h e y w e r e c r e a t e d w i t h . I y o h a v e s e v e r a l o t h e s e ,y o u ' r e f a c e d w i t h l o o w a s t e d t i m e b o o t i n g u e a c h s e p a r a t ep r o g r a m j u s t t p r i n t t h p i c t u r e s .

F o t h o s e o y o w i t h G e m i n i S G 1 0 p r i n t e r a n M W 3 5 0 ( o s i m i l a r ) i n t e r f a c e , H i r e s S e a r c h a n P r i n t w i l l a l l o w y o t p r i n ta n y b i t m a p p e d y o u ' v e c r e a t e d a n s a v e d o d i s k . Y o c a d t h i si e i t h e r o t w s i z e s , i p o s i t i v e o r n e g a t i v e a n a m i r r o r i m a g e .T h i s g i v e s y o e i g h t p o s s i b l e p i c t u r e v a r i a t i o n s ! J u s t t y p e i a n s a v e t h b a s i c l o a d e r p r o g r a m a n f o l l o w t h i n s t r u c t i o n s b e l o w .

A f t e r s a v i n g , l o a d a n r u H i r e s S e a r c h a n P r i n t . A f t e r t h R e a d yp r o m p t , t y p e N E a n t h e n l o a d a n h i r e s p i c t u r e f i l e t h a t y o w i s h t o p r i n t . Y o s h o u l d l o a d i i a r e l o c a t a b l e f i l e w i t h :

L O A D " F i l e n a m e " , ( d o n ' t u s , 8 , 1 )

A l t h o u g h t h n o r m a l l o c a t i o n o f t h i s f i l e w o u l d p r o b a b l y r e q u i r er e l o c a t i n g l o a d , t h a b i l i t y o H i r e s S e a r c h a n P r i n t t d e a l w i t hw i d e v a r i e t y o p r o g r a m f i l e s l i e s i b e i n g a b l e t a c c e s s a l b i t m a pi m a g e s i t h s a m e g e n e r a l a r e a o m e m o r y . T h e r e f o r e , a l p i c t u r ef i l e s a r l o a d e d i n t o t h b a s i c p r o g r a m a r e a . O n c e t h e r e , t h b i t m a p i m a g e p o r t i o n o t h f i l e c a b l o c a t e d t h r o u g h H i r e sS e a r c h a n P r i n t ' s u n i q u e s e a r c h f u n c t i o n .

S o m e d r a w i n g p a c k a g e s m a s a v e p i c t u r e s i m u l t i p l e f i l e s . Y o a r o n l y i n t e r e s t e d i t h f i l e c o n t a i n i n g t h b i t m a p i m a g e . C o l o ri n f o r m a t i o n i n o n e c e s s a r y f o t h i s p r o g r a m a w e ' r e d e a l i n gs t r i c t l y w i t h b l a c k a n w h i t e . I y o u ' r e n o t s u r e w h i c h f i l e c o n t a i n st h e b i t m a p , l o a d e i t h e r a n y o u ' l l e a s i l y f i n d i i t t h c o r r e c t o n e .

A f t e r y o u r p i c t u r e f i l e i l o a d e d , h i t h F k e y . Y o u r s c r e e n n o i i h i r e s w i t h a b l a c k a n w h i t e i m a g e . D o n ' t b a l a r m e d i i t j u m b l e d p a t t e r n o d o t s . I f i t i s i t t i m e t b e g i n s e a r c h i n g f o t h h i r e s i m a g e . U s t h e c u r s o r u p / d o w n k e t c y c l e t h r o u g h m e o r y . T h i s k e r e - d r a w s t h h i r e s s c r e e n s t a r t i n g o n s c r e e n l i n ef u r t h e r i n t o m e m o r y e a c h t i m e i t s h i t . H o l d i n g t h k e d o w n w i l ld t h i s v e r y q u i c k l y o j u s t t a t h k e f o s l o w c y c l i n g . Y o c a n g ob a c k w a r d s t h r o u g h m e m o r y b u s i n g t h e S H I F T k e w i t h t h u p d o w n c u r s o r . Y o c a s c a n t h r o u g h m e m o r y a g a i n a n a g a i n i y o l i k e , b u t t h e p i c t u r e w e ' r e s e a r c h i n g f o w i l l b w i t h i n o n o t w s c r e e n s o w h e r e w s t a r t e d . T h r e a s o n y o m u s t s e a r c h f o t h p i c t u r e i b e c a u s e d i f f e r e n t d r a w i n g p r o g r a m s s a v e n o o n l y t h b i t m a p , b u a l s o c o l o r m e m o r y i n f o r m a t i o n i t h e i r f i l e s a n t h

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

A f t e r " b a l l p a r k i n g " t h e h i r e s i m a g e , y o u ' r e n o r e a d y t o f i n e t u n ei n t o p r o p e r r e s o l u t i o n a n s c r e e n c e n t e r i n g . F o t h i s y o u s t h l e f t / r i g h t c u r s o r k e y . O p e r a t i o n i i d e n t i c a l t t h u p / d o w n c u r s o re x c e p t t h a t n o t h s c r e e n i r e - d r a w n s t a r t i n g j u s t o n b y t ef u r t h e r i n t o m e m o r y e a c h t i m e . A g a i n , u s i n g t h e S H I F T / c u r s o rc o m b i n a t i o n a l l o w s r e v e r s e m o v e m e n t i t h e v e n t y o o v e r s h o o tt h m a r k .

A a n p o i n t i n t h i s p r o c e s s y o c a r e t u r n t t h t e x t s c r e e n a r e ao m e m o r y . S i m p l y p r e s s t h s p a c e b a t d s o I y o u h a v e d o n ec o n s i d e r a b l e a m o u n t o c u r s o r i n g t f i n d y o u r p i c t u r e , y o m a r e t u r n t b l a n k s c r e e n a n o o n w i t h n v i s i b l e c u r s o r . I t h c u r s o r i l o s t , j u s t h i R U S T O P / R E S T O R E . T h i s w i l l d i s a b l e H i r e sS e a r c h a n P r i n t s y o u ' l l n e e d t o

S Y 4 9 1 5 2

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

O n c e y o u ' v e l o c a t e d a h i r e s p i c t u r e a n o r i e n t e d i o t h d i s p l a y ,y o c a l o a d a n d i s p l a y a d d i t i o n a l p i c t u r e s c r e a t e d w i t h t h s a m ed r a w i n g p a c k a g e a n t h e y t o w i l l b p r o p e r l y c e n t e r e d w i t h o u tt h n e e d f o f u r t h e r s e a r c h e s , u n l e s s y o h a v e a l t e r e d t h s e t t i n gw h i l e i h i r e s m o d e .

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

a F p r i n t s s m a l l , p o s i t i v e i m a g e o t h h i r e s s c r e e n ( 3 . 2 5 " b 4 . 5 " )

b F p r i n t s a t w i c e s i z e , p o s i t i v e i m a g e ( 6 . 5 " b y 9 " )

c C o n t r o l a n F l o r C o n t r o l a n F p r i n t s s m a l l o r t w i c e s i z en e g a t i v e i m a g e .

d S h i f t a n F o S h i f t a n F p r i n t s a s m a l l o t w i c e s i z ep o s i t i v e m i r r o r i m a g e .

e S h i f t . C o n t r o l a n F o F p r i n t s a s m a l l o t w i c e s i z en e g a t i v e , m i r r o r i m a g e .

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 73/88

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

d i s c o n t i n u e p r i n t i n g i t h m i d d l e o s c r e e n d u m p w i t h o u to f t h p r i n t e r , j u s t h i t h R u n / S t o p k e y .

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

f i n a l n o t e . T h p r o g r a m a s s u m e s t h a t y o a r e u s i n g p a r a l l e le r i n t e r f a c e w i t h y o u r G e m i n i p r i n t e r t h a t i p u i t r a n s p a r e n t

w i t h s e c o n d a r y a d d r e s s o 5 I y o u r i n t e r f a c e r e q u i r e sn t n u m b e r , s i m p l y r e p l a c e t h e D a t a n u m b e r f i v e a 4 9 3 1 7

1 2 6 0 o t h B A S I C L o a d e r ) w i t h t h c o r r e c t n u m b e r .

S e a r c h a n P r i n t : B A S I C L o a d e r

1 0 0 0 r e h i r e s s e a r c h a n p r i n t1 0 1 0 r e m j a c k r f a r r a h1 0 2 0 f o = 4 9 1 5 2 t 5 0 0 3 2 r e a d1 0 3 0 p o k e j , c c n e x t1 0 4 0 i c h < > 1 2 3 0 6 2 t h e n p r i n t " c h e c k s u m e r r o r "

e n 1 0 5 0 r e 1 0 6 0 d a t a 1 2 0 , 1 6 9 , 2 4 , 1 4 1 , 2 0 3 , 1 6 9 , 1 9 21 0 7 0 d a t a 1 4 1 , 2 1 3 , 1 6 9 , 0 , 1 4 1 , 2 3 3 , 1 9 31 0 8 0 d a t a 1 4 1 , 2 5 3 , 1 9 3 , 1 4 1 , 3 , 1 9 4 , 8 8 9 1 0 9 0 d a t a 7 6 3 9 , 1 9 2 , 7 6 , 2 2 8 , 1 9 4 , 7 6 1 1 1 0 0 d a t a 1 9 5 , 7 6 , 1 9 7 , 1 9 4 , 7 6 , 1 0 6 , 1 9 4 , 1 6 51 1 1 0 d a t a 1 9 7 , 2 0 1 , 6 4 , 2 0 8 , 8 , 1 6 9 , 0 , 1 4 11 1 2 0 d a t a 2 3 3 , 1 9 3 , 7 6 4 9 , 2 3 4 , 1 7 4 , 2 3 3 , 1 9 31 1 3 0 d a t a 2 0 8 , 2 4 8 , 2 0 1 1 4 0 d a t a 2 4 0 , 2 2 3 , 2 0 1 ,1 1 5 0 d a t a 2 4 0 , 2 1 2 , 2 0 1 ,1 1 6 0 d a t a 2 0 8 , 2 2 4 , 1 6 9 ,

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

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

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

2 4 , 1 4 1 , 6 0 1 9 4 , 1 6 9 ,1 2 4 0 d a t a 1 9 3 , 1 6 9 , 1 0 5 , 1 4 1 , 6 6 1 9 3 , 1 6 9 , 1 7 1 2 5 0 d a t a 1 4 1 , 7 3 , 1 9 3 , 1 6 9 , 2 3 8 , 1 4 1 , 7 8 , 1 9 31 2 6 0 d a t a 1 6 9 , 4 , 1 6 2 , 4 , 1 6 0 , 5 3 2 , 1 8 61 2 7 0 d a t a 2 5 5 , 1 6 9 , 0 3 2 , 1 8 9 , 2 5 5 , 3 2 , 1 9 21 2 8 0 d a t a 2 5 5 , 1 6 2 , 4 3 2 , 2 0 1 , 2 5 5 , 1 6 9 , 2 71 2 9 0 d a t a 3 2 , 2 1 0 , 2 5 5 , 1 6 9 , 5 1 3 2 , 2 1 0 , 2 5 51 3 0 0 d a t a 1 6 9 , 1 6 3 2 , 2 1 0 , 2 5 5 , 3 2 , 1 7 2 , 1 9 31 3 1 0 d a t a 1 6 9 , 2 5 , 1 4 1 , 2 3 7 , 1 9 3 , 1 6 9 , 4 0 , 1 4 11 3 2 0 d a t a 2 3 8 , 1 9 3 , 1 7 3 , 0 , 1 9 4 , 2 0 8 , 2 1 , 1 7 31 3 3 0 d a t a 2 5 1 , 1 9 3 , 2 4 , 1 0 5 , 1 , 1 4 1 , 2 3 4 , 1 9 31 3 4 0 d a t a 1 3 3 , 2 5 2 , 1 6 9 , 5 6 1 4 1 , 2 3 5 , 1 9 3 , 1 3 1 3 5 0 d a t a 2 5 1 , 7 6 , 2 5 1 , 1 9 2 , 1 7 3 , 2 5 1 , 1 9 3 , 1 4 11 3 6 0 d a t a 2 3 4 , 1 9 3 , 1 3 3 , 2 5 2 , 1 6 9 , 0 1 3 3 , 2 5 1 3 7 0 d a t a 1 4 1 , 2 3 5 , 1 9 3 , 1 6 0 , 0 , 1 6 2 , 8 , 1 7 31 3 8 0 d a t a 0 , 1 9 4 , 2 0 8 , 4 2 , 1 7 7 , 2 5 1 , 1 0 6 , 4 61 3 9 0 d a t a 2 3 6 , 1 9 3 , 2 0 2 , 2 0 8 , 2 4 9 , 1 7 3 , 2 3 6 , 1 9 31 4 0 0 d a t a 1 5 3 , 2 3 9 , 1 9 3 , 2 0 0 , 1 9 2 , 8 2 0 8 , 2 2 1 4 1 0 d a t a 1 7 3 , 2 5 3 , 1 9 3 , 2 4 0 , 3 3 2 6 , 1 9 41 4 2 0 d a t a 3 2 , 1 9 6 , 1 9 3 , 2 0 6 , 2 3 7 , 1 9 3 , 2 4 0 , 1 1 4 3 0 d a t a 3 2 , 1 5 8 , 1 9 3 , 7 6 , 2 5 1 , 1 9 2 , 1 7 7 , 2 5 11 4 4 0 d a t a 7 6 1 6 , 1 9 3 , 3 2 7 7 , 1 9 4 , 2 0 6 , 2 3 8

E D A

I G L

G D F P L I

B L N G J L C o

I M L

O F O

O B H C P D A B I

B F C K O E J C E B

P A B

M E

G N F A H E N E E I

G A

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

2 4 0 ,5 6

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

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

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

0 0

2 0 0 ,1 4

6 7 2 4

2 4 1 ,6 1

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

1 0 2 3

1 9 3 ,1 3 3 ,

9 6 1 4 1 ,2 2 1 ,

5 1 9 4 ,

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

0 1 6 9 ,

7 6 1 7 3 ,

1 1 9 4 ,1 9 4 ,

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

4 0 2 3 3 ,

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

3 2 3 2

1 4 1 ,1 6 9 ,

6 6 2 0 6 ,1 0 4 ,

6 4 2 5 2 ,

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

3 2 1 6 5 ,

0 0 0 8

1 4 1 ,1 9 4 ,

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

9 6 1 0

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

2 4 7 6 3 2

2 2 1 ,0

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

2 5 6

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

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

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

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

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

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

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

0 0 0 0

6 4 0 0 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4 3 0 1 4

2 0 0 , 1 4 11 9 3 , 1 6 91 4 1 , 7

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

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

0 0 2 0

1 6 0 ,2 3 9 , 1 9 3

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

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

1 1 4 1 7 3 , 2 3 5

7 6 8 8 3 , 1 6 9

1 9 4 , 1 7 2 4 2 0

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

0 1 7 2 3 0 , 2 5 22 0 8 , 2 3 2 , 1 4 11 3 5 ,1 9 5 , 3

3 , 1 9 44 , 1 9 4

1 4 1 , 2 1 4 1 , 2 3 31 9 4 , 2 4 02 4 0 , 2

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

2 1 9 2 4 0 , 1 7 0

2 0 1 7 1 , 1 9 4

T r a n s a c t o r 6 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 74/88

G L

M M G E K I

K J

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

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

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

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

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

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

1 6 4

1 6 9 ,7 6

1 4 1 ,2 2 3 ,

0 9 6

2 2 4 ,

1 4 1 ,2 4

1 1 3 1 ,

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

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

1 7 1

2 4 4 ,2 0 8 ,

1 9

1 7 9

2 0 1 5

9 2 3

H i r e s S e a r c h a n P r i n t : M e r l i n F o r m a t S o u r c e C o d e

M r F a r r a h ' s p r o g r a m s o u r c e c o u l d h a v e e a s i l y b e e n c o n v e r t e d t P A a n v e r i f i z e d , b u w d i d n ' t e x p e c t a n y o n e w o u l d b e n t e r i n gi b h a n d i t ' s h e r e f o r e f e r e n c e o n l y .• h i r e s s c r e e n d u m p p r o g r a m , v e r t i c a l s c r e e n r e a d t e c h• b y j a c k f a r r a h• h i r e s p i c t u r e t b l o a d e d i n t o b a s i c p r o g , m e m o r y• h i r e s s c r e e n l o c a t e d a $ 4 0 0 0• f t u r n s o h i r e s s c r e e n , s p a c e b a r e t u r n s t t e x t s c r e e n• c u r s o r r i g h t a d v a n c e s m e m . r e a d b o n b y t e .■ c u r s o r u a d v a / i c e s b 3 2 b y t e s ( s c r e e n l i n e )• s h i f t k e d e c r e m e n t s m e m . b y s a m e a m o u n t• p i c t u r e s a r e p r i n t e d s i d e w a y s i d u m p• f p r i n t s s m a l l p i c t u r e . f 2 p r i n t s e n l a r g e d p i c t u r e• c o n t r o l p r i n t s n e g a t i v e i m a g e . s h i f t p r i n t s m i r r o r i m a g e• c o n t r o l a n s h i f t c a n b e u s e d s i m u l t a n e o u s l y• c o n s t a n t s 'c h r o u t $ f f d 2o p e n S f f c Oc h k o u t $ f f c 9s e t l f s S f f b as e t n a m = S f f b dc l r c h n $ f f c cc l o s e $ f f c 3r q v e c $ 3 1 4

b m r e g = $ d 0 1 1v i d b a s $ d O 1 8b a n k = $ d d O Oc o l m e m $ 6 0 0 0o r $ c 0 0 0

s e I d # < n e ws t i r q v e cI d # > n e ws t i r q v e c + 1I d # s t p r g f l gs t p i c l l gs t h i f l gc l r t

; k e r n a l p r i n t; o p e n f i l e; d e s i g n a t e o u t p u t f i l e; s e t f i l e s e c . a d d .; f i l e n a m e; r e s t o r e d e f a u l t d e v i c e s; c l o s e f i l e; i r q v e c t o r; e n a b l e h i r e s r e g i s t e r; m e m . b a n k / s c r e e n r e g i s t e r; s e t m e m . b a n k r e g i s t e r; c o l o r m e m . f o h i r e s; 4 9 1 5 2

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

• n e w w e d g e d r o u t i n e t p r i n t h i r e s s c r e e n• a n d s e a r c h f o h i r e s s c r e e nn e j m s t a r t• s p r i n g b o a r d s t d i s p l a y a n s e a r c h r o u t i n e ss e t 1 j m s e t ts e t u p i j m s e t u pr s t o M j m r s t o rd s p l y i j m d s p l ys t a r t I d $ c

c m # 6 b n c k m o rI d # s t p r g f l g

e x i t j m $ e a 3 1

; r i g h t c u r s o r r o u t i n e; u c u r s o r r o u t i n e; s p a c e b a r o u t i n ei d i s p l a y h i r e s r o u t i n e; c h e c k c u r r e n t k e y p r e s s e d; 6 = n k e y p r e s s e d; s o m e t h i n g , c h e c k i t o u ; n o t h i n g . k e e p f i c l e a r

; n o r m a l i r r o u t i n e• m a i n l o o p w h e n k e y p r e s s d e t e c t e dc k m o r I d x p r g f l g

b n e x i tc m # b e d s p l y ic m # 6 b e r s t o Mc m # b e s e t 1c m # b e s e t u p ic m # b e d o i tc m #

; i p r o g r a m f l a g s e t , w e ' r e; b u s y n o w , s o e x i t; f k e y ?; y e s , b r a n c h; n o . s p a c e b a r ?; y e s; n o . c u r s o r r i g h t ?; y e sm o . c u r s o r d o w n ?; y e s; n o . M ?; w a s f 1 . p r i n t s c r e e n; n o . f 3 ?

d o i t

j s t m i r

b n I d s t I d s t I d s t I d s t I d s t I d s t s t I d a n b e c m b o I d s t c m b n I d s t I d s t I d s t I d s t I d s t

• s e t u p r i n t e rs e t p r I d

I d I d j s I d j s j s I d j s I d j s I d

e x i t# p i c f l g# p a s s# 1 4 4c o d e +# c o d e +# p r g f i g# r v f l gm i r f l g$ 2 8 d# $ 0 5s e t p r# j s t m i r# 2 5 5r v f l g# s e t p r# m i r f l g# 2 c k c l m 1 # 1 0 5c k c l m 1 # 1 7 6s u b h i - 5# 2 3 8s u b h i

# # # s e t l f s# s e t n a mo p e n# c h k o u t# 2 c h r o u t# 5

; t o n / 1 4 4 t h s i n c hj s I d j s

c h r o u t# 1 c h r o u t

; n o t f o ( 3 e x i t; i t s f 3; s e t f o l a r g e p r i n t

; s e t u p l o r 1 s p a s s; n e w c o d e f o 4 0 i c h a r a c t e r s t b s e n t; t p r i n t e r f o e x p a n d e di p r i n t m o d e; s e t f l a g t o s h o w w e ' r e b u s y

; c l e a r r e v e r s e f l a g

; a n d c l e a r m i r r o r f l a g; c h e c k f o c o n t r o l s h i f t; m a s k o u a l b u s i g . b i t s; i 0 n e i t h e r s e ; s o m e t h i n g s o n; i < 4 , m u s t b e b i t O; > s s e r e v e r s e f l a g

; i i b o t h r e v . & m i r r o r ?; j u s t r e v e r s e s b r a n c h; s e t m i r r o r f l a g

; a l t e r c o d e s i c k c l m; r o u t i n e t o a d d 8 a f t e r; e a c h c o l u m n i n s t e a d; o s u b t r a c t i n g

i f i l e; d e v i c e #i s e c . a d d . t o s e i n t e r f a c e t r a n s .

; n f i l e n a m e

; o p e n t h f i l e

; f i l e f o o u t p u te s c a p e

; s e n d t o p r i n t e r; s g 1 0 c o d e f o l i n e s p a c i n g

; s e n d i ; 1 6 . 1 6 / 1 4 4 t h s = 1 / 9; s e n d i t

• r o u t i n e t g e h i r e s s c r e e n b y t e s , c o n v e r t a n p r i n tj s I d s t I d s t I d b n I d c l a d s t s t I d s t

s h f t# 2 r o c n t# 4 c l m c n tm i r f l gm i b t m p

# $ 0 1s a v a d$ f # $ 3 8s a v a d +

; s e n d c r , l f a n d c o d e s

; s e t r o c o u n t e r t 2

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

; a d d 2 5 ; s t o r e i t; a n d o z e r o p a g e; ( S 6 ); p u t i l o b y t e s t o r a g e

m i

s t j m I d s t s t I d c ' . i i s t

$ f s t r tb t m ps a v a d$ f # S f s a v a d +

; a n d a z e r o p a g e p o i n t e r

; p u t s t a r t a d d r e s s o b i t m a p i z e r o p a g ep o i n t e r s

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

( 3 1 2 b y t e s f r o m s t a r t o b i t m a p )s t r tg t b y l

r o t a t

s t o r e

p r n t i t

I d I d I d b n I d r o r o d e b n I d s t m c p b n I d b e j s j s d e b e

n e x t c o l u m nj s

# # m i r f l gm k m i r( S f b ) . y

h l d b y t

r o t a th l d b y tb y t k p . y

# g t b y lp i c f l gp r n t i te x p r n tr o c n tc k c l m

a d

i n i t i a l i z e t c o u n t b y t e s; t c o u n t r o t a t i o n s; c h e c k i f m i r r o r p r i n t; i s e t , s k i p r o t a t e r o u t i n e; g e t b i t m a p b y t e f r o m m e m .; p u t l o w b y t e i c a r r y; p u t c a r r y i l o b y t e h o l d e r; l o w e r r o t a t e c o u n t e r; d i t 8 t i m e s; a f t e r a l t e r i n g b y t e; s t o r e i t h e r e t i l l w g e ; r a i s e b y t e c o u n t e r; h a v e w d o n e 8 ; n o . g o b a c k f o a n o t h e r; n o r m a l o l a r g e p r i n t ?n o r m a l

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

; n o t f i n i s h e d w i t h c o l u m n; s o r e s e t p o i n t e r f o n e x t b y t e s

m k m i r

c k c l m

j m I d j m j s d e

s t r t( S f b ) . ys t o r ec k p i cc l m c n t

; l o w e r c o l u m n c o u n t e r

s u b h i

r e s t

e n

b e j s I d s e s b s t s l b c j m d e I d s t I d s l I d s t j m I d j s I d j s I d j s j s I d s t s t I d s l I d s t I d s l I d s t I d s t i m

e n s h f ts a v a d +

# s a v a d + S f s u b h ir e s ts a v a ds a v a d$ f s a v a d$ f # 2 r o c n ts t r t# 2 c h r o u t# 6 c h r o u t# c l o s ec l r c h n# p i c f l gc o d e +# 2 0 0c o d e +# $ 3 8c k c l m 1 # $ e 9c k c l m 1 # $ 9 0s u b h i - 5# $ c es u b h i$ e a 3 1

; g g e t t h e n e x t; f o r m i r r o r , j u s t p u b y t e su n c h a n g e d i s t o r a g e; n o r m a l o r l a r g e p r i n t ?; w f i n i s h e d c o l u m n , s o

; i w f i n i s h e d 8 0 , c l o s e u ; w e ' r e n o t d o n e . d o c r . l f; g e t p r e v . c o l u m n a d d . l o b y t e; s u b t r a c t t b a c k u ; t n e x t c o l u m n; s a v e t h n e l o b y t e; a n d a z e r o p a g e p o i n t e r; i c c n e e d t r e d u c e h i g h b y t e; n b o r r o w r e q u i r e d; l o w e r h i g h b y t e; g e t i t; p u t i z e r o p g . p o i n t e r; g e t o l h i g h b y t e

r e s e t z e r o p a g e; r e — i n i t i a f i z e r o c o u n t e r

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

; c l o s e f i l er e s e t t o d e f a u l t d e v i c e s

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

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

; e x i t t h r u n o r m a l i r • r o u t i n e t h a n d l e s t o p k e d u r i n g p r i n t i n gs l o p p l ; p u l l r e t u r n a d d r e s s

p l j m

q i h r A i i t i A c e n

; o f f t h e s t a c k; a n d c l o s e u p s h o p

• o U U I U U l l l l f c J o *• r e s e t z e r o p a g e p o i n t e r f o n e x t l o w e r s c r e e n p o s i t i o n• i c u r r e n t c o l u m n b y a d d i n g 3 2 a d I d $ f ; g e t l o w b y t e p o i n t e r

d a d # $ 4 0 : a d d 6

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 75/88

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 76/88

C o m m o d o r e 1 2 H i g h - R e s G r a p h i c s

P a u l T D u r r a n tL o n g P r a i r i e , M i n n e s o t a

H i - R e s G r a p h i c s O T h C o m m o d o r e 1 2 8 ' s 8 C o l u m n S c r e e n U s i n g B A S I C 7 . C o m m a n d s .

T h C o m m o d o r e 1 2 c o m p u t e r i n c l u d e s s o m e v e r y u s e f u lg r a p h i c s c o m m a n d s i i t B A S I C i m p l e m e n t a t i o n . I a l s o i c l u d e s t w v i d e o c h i p s : 4 c o l u m n c h i p ( t h e V I C ) — a s i t h C o m m o d o r e 6 4 — a n d a 8 c o l u m n c h i p ( t h e V D C ) . T h V D c a d i s p l a y s i n g l e c o l o r ( p l u s b a c k g r o u n d ) H i g h - R e s o l u t i o ng r a p h i c s i m a g e w h i c h i 6 4 d o t s w i d e b 2 0 d o t s t a l l : t w i c et h h o r i z o n t a l r e s o l u t i o n o t h V I s c r e e n .

U n f o r t u n a t e l y , t h e H i - R e s g r a p h i c s c o m m a n d s i n c l u d e d i B A S I C 7 . d n o s u p p o r t t h V D C . U s i n g t h a c c o m p a n y i n gp r o g r a m , y o c a c r e a t e H i - R e s g r a p h i c s o t h 4 c o l u m ns c r e e n a n t r a n s f e r t h e m t e i t h e r s i d e o t h 8 c o l u m n s c r e e n( a n d b a c k a g a i n ) . W i t h t h i s t e c h n i q u e , 6 4 d o w i d e H i - R e si m a g e m a b c r e a t e d i t w h a l v e s , u s i n g B A S I C 7 . c o m a n d s .

E v e n i y o a r e n ' t i n t e r e s t e d i h a v i n g 8 c o l u m n H i - R e sg r a p h i c s , t h p r o g r a m m a b u s e f u l t y o u . T h V D h a a c c e s s t 1 6 o i t o w d e d i c a t e d m e m o r y — o u t s i d e o t h n o r m a l a d d r e s s s p a c e . T h u s y o m a s t o r e a n r e t r i e v e t w 4 c o l u m n H i - R e s s c r e e n s w i t h o u t a n l o s s o f m a i n m e m o r y .

U s O T h e P r o g r a m

T h S Y c o m m a n d i B A S I C 7 . a l l o w s y o t d i r e c t l y p a s s av a l u e t t h p r o c e s s o r ' s a c c u m u l a t o r ( a n d o t h e r r e g i s t e r s ) .

S Y < a d d r e s s > , < v a l u e >

. . w i l l s t a r t t h m a c h i n e l a n g u a g e p r o g r a m a < a d d r e s s > w i t h< v a l u e > i t h a c c u m u l a t o r . T h i s p r o g r a m t a k e s a d v a n t a g e o t h i s e x p a n d e d c a p a b i l i t y o t h S Y c o m m a n d . A p r e s e n t e d ,t h r o u t i n e b e g i n s a l o c a t i o n 2 8 1 6 ( $ b 0 0 ) — i n t h 1 2 8 ' sc a s s e t t e b u f f e r .

A n o t e d , t h 8 c o l u m n H i - R e s s c r e e n c a d i s p l a y t w 4 c o l u m n s c r e e n ' s w o r t h o i n f o r m a t i o n — o n e o t h l e f t s i d e ,o n e o n t h r i g h t . T h i s p r o g r a m a l l o w s y o t o s e l e c t w h i c h h a l fo t h 8 c o l u m n s c r e e n t u s e . N o o n l y c a y o t r a n s f e r a

i m a g e t t h 8 c o l u m n s c r e e n f r o m t h 4 c o l u m n s c r e e n , y o a l s o m a t r a n s f e r o n b a c k a g a i n . F o u r d i f f e r e n t c o m b i n at i o n s a r e p o s s i b l e :

S Y 2 8 1 6 , 0 t r a n s f e r s t h 4 c o l u m n s c r e e n t t h l e f t s i d e o t h 8 c o l u m n s c r e e n .

S Y 2 8 1 6 , 1 - t r a n s f e r s t h 4 c o l u m n s c r e e n t t h r i g h t s i d e o t h 8 c o l u m n s c r e e n .

S Y 2 8 1 6 , 2 t r a n s f e r s t h l e f t s i d e o t h 8 c o l u m n s c r e e n t t h 4 c o l u m n s c r e e n .

S Y 2 8 1 6 , 3 t r a n s f e r s t h r i g h t s i d e o t h 8 c o l u m n s c r e e n t t h 4 c o l u m n s c r e e n .

I a d d i t i o n , S Y 3 0 2 3 c a b u s e d t c l e a r a n r e s t o r e t h V D s c r e e n t o t e x t m o d e .Y o m a e a s i l y p r o g r a m t h F u n c t i o n K e y s t e x e c u t e t h e s ec o m m a n d s .

H o I W o r k s :

B e f o r e d i s c u s s i n g t h p r o g r a m , i t ' s n e c e s s a r y t r e v i e w l i t t l eo h o H i - R e s g r a p h i c s i m a g e s a r c r e a t e d b t h t w c h i p s .s i n g l e t e x t c h a r a c t e r i c o m p o s e d o 6 b i t s i n a 8 b m a t r i x . E a c h t i m e t h m o n i t o r s c a n s s i n g l e s c r e e n l i n e , i p i c k s u o n b y t e ( b i t s ) a n e i t h e r t u r n s t h e l i g h t b e a m " o o o f f o e a c h b i t . D a t a f o H i - R e s i m a g e i t h 4 c o l u m nm o d e s t a r t a a d d r e s s $ 2 0 0 0 . L o c a t i o n $ 2 0 0 1 r e f e r s t t h s e c o n d b y t e o t h " c h a r a c t e r " i t h u p p e r l e f t c o r n e r( w h i c h i o t h s e c o n d s c r e e n l i n e ) . L o c a t i o n $ 2 0 0 2 r e f e r s t t h t h i r d b y t e , e t c . A f t e r c r e a t i n g t h d o t s f o t h e t o p r o o t h f i r s t c h a r a c t e r , t h n e x t s e o d o t s o t h m o n i t o r m u s tc o m e f r o m t h t o b y t e o t h s e c o n d c h a r a c t e r . S t h V I r e a d s e v e r y e i g h t h b y t e a i g o e s a c r o s s t h s c r e e n , m o v e sd o w n o n b y t e f r o m w h e r e i s t a r t e d , a n t h e n d i s p l a y s e v e r ye i g h t h b y t e a g a i n , u n t i l t h w h o l e f i r s t r o o " c h a r a c t e r s " i d i s p l a y e d . T h i s a r r a n g e m e n t i i l l u s t r a t e d b e l o w :

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 77/88

$ 2 0 0 0 $ 2 0 0 8 $ 2 0 1 0 . . $ 2 1 3 8$ 2 0 0 1 $ 2 0 0 9 $ 2 0 1 1 . . $ 2 1 3 9$ 2 0 0 2 $ 2 0 0 a $ 2 0 1 2 . . $ 2 1 3 a

$ 2 0 0 7 $ 2 0 0 f $ 2 0 1 7 . . $ 2 1 3 f$ 2 1 4 0 $ 2 1 4 8 $ 2 1 5 0 . . $ 2 2 7 8

w h h a s d a b b l e d w i t h H i - R e s g r a p h i c s o t h C o m m o6 4 ( w h i c h u s e s t h s a m e p r o c e d u r e ) k n o w s t h a t t h i s i

c l u m s y t e c h n i q u e .

n e V D u s e s a s i m p l e r m e t h o d . W h e n i H i - R e s m o d e ,$ 0 0 0 0 o t h V D C ' s d e d i c a t e d m e m o r y r e f e r s t t h

b y t e o t h e t o p s c r e e n l i n e . L o c a t i o n $ 0 0 0 1 r e f e r s t o t h b y t e o t h e t o p s c r e e n l i n e , e t c . A y o c a s e e , t h i s i

s i m p l e r a r r a n g e m e n t :

$ 0 0 0 0 $ 0 0 0 1 $ 0 0 0 2 . . $ 0 0 4 9$ 0 0 5 0 $ 0 0 5 1 $ 0 0 5 2 . . $ 0 0 a 0

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

r s a r e i n i t i a l i z e d . R O W . C O U N T i i n i t i a l i z e d t o 2 5 4 r s " w o r t h o d a t a a r m o v e d , p o i n t e r s a r u p d a t e d a n

i d e c r e m e n t e d . T h p r o g r a m i f i n i s h e d w h e ng e t s t z e r o . T h a c c o m p a n y i n g a n n o t a t e d d i s a s

o t h m a c h i n e l a n g u a g e c o d e t e l l s i a l l .

o t h c o d e c o u l d b w r i t t e n i o n l a r g e r o u t i n e , b u I ' v et b r e a k i i n t o s e v e r a l s m a l l e r o n e s . S o m e o t h

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

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

i c a u s e d b t h d i f f e r e n t a r r a n g e m e n t s o H i - R e s d a t a i t h i n d i r e c t a d d r e s s i n g r e q u i r e d f o t h V D C ' s 1 6 K o

m e m o r y , a n d t h f a c t t h a t 8 o d a t a i b e i n g m o v e dt i m e .

c 0 c m p # $ 0 49 0 b c $ 0 b 0 5 ; B r a n c h i ( a c e )6 r t ; e l s e i g n o r e " i l l e g a l " c o

m a n d .4 p h

0 0 b 0 60 0 b 0 9O O b O a

O O b O dO O b O f0 0 b 1 10 0 b 1 30 0 b 1 50 0 b 1 70 0 b 1 90 0 b 1 b0 0 b 1 e0 0 b 2 00 0 b 2 2

2 6 8

2 t a 8 a 8 8 8 a 8 8

c O

d O

0 0 2 e 0 e f d O 2 f d O

; M o v e s c r e e n :0 0 b 2 50 0 b 2 70 0 b 2 a0 0 b 2 d0 0 b 2 f0 0 b 3 10 0 b 3 40 0 b 3 60 0 b 3 80 0 b 3 a0 0 b 3 d0 0 b 4 00 0 b 4 2

a 8 2 e a 8 d e a 8 c d 6

1 d d O b4 O f f d e O b0 f f d O d d O be

j s p l s t

a n b e I d s t I d s t s t s t I d s t s t

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

; M o v e 4 c h a r a c t e r s :0 0 b 4 3

0 0 b 4 50 0 b 4 80 0 b 4 b0 0 b 4 e0 0 b 5 10 0 b 5 30 0 b 5 40 0 b 5 7

a

8 2 2 c d 6 2 d

0

e O 5 O 9 O e O 0

a O e

; M o v e 4 0 b y t e s :0 0 b 5 90 0 b 5 c0 0 b 5 e0 0 b 6 00 0 b 6 30 0 b 6 60 0 b 6 80 0 b 6 a0 0 b 6 d0 0 b 7 0

a c 9 2 8 a 9 a 2 d

d O 0 1 c O e O 0 f e O 8 O e

I d

s t j s j s d e b n r t j s b n

I d

$ 0 b c 7

$ 0 b e 6

# $ 0 1$ 0 b 1 3# $ 2 8$ e # $ 0 0$ e $ f $ 0 b e 8# $ 2 0$ f $ 0 b e 9

# $ 1 9$ 0 b e 7$ 0 b 4 3$ f $ f $ 0 b e 8$ 0 b 3 8$ f $ f $ 0 b e 9$ 0 b e 7$ 0 b 2 a

# $ 0 8

$ 0 b e a$ 0 b 5 9$ 0 b 9 8$ 0 b e a$ 0 b 5 4

$ 0 b a 9$ 0 b 4 8

$ 0 b e 6e m # $ 0 2b c j s s t I d s t I d j s b n

$ 0 b 7 2$ 0 b c 0$ 0 b e b# $ 0 0( $ f b ) , y$ 0 b e b$ 0 b 8 4$ 0 b 6 0

; S e t 8 c o s c r e e n t g r a p h i c s .

; S a v e T R A N S F E R . D I R E CT I O N .; l ( a c e ) n o w , r e f e r s t o; r i g h t s i d e o 8 c o s c r e e n ,; s s t a r t a t m i d d l e .; ( A c c ) o 4 n o w .

; $ e 0 / e 1 a r e t h e 8 0 . C O L . P T R .; L o w b y t e o f 4 0 . C O L . P T R; B E G I N n i n g o f 4 0 c o l R O W .

; H i g h b y t e o 4 0 . C O L . P T R .; D i t t o , f o B E G I N o 4 c o R O W .

; 2 s c r e e n r o w s .; R O W . C O U N T E R .; D m o v e 4 c h a r a c t e r s " .; S e t 4 0 . C O L . P T R t o; n e x t r o w .; S a v e i i B E G I N . R O W , t o o .

; A d j u s t h i g h b y t e s o ; b o t h i n e c e s s a r y .

; R O W . C O U N T E R .R e p e a t i n o d o n e ,

; e l s e r t s .

; E a c h " c h a r a c t e r " h a b y t e s .; S c o u n t B Y T E . R O W d o w n .; j s r m o v e 4 b y t e s " ,; a n d m o v e t n e x t 8 c o r o w .; l d o n e t i m e s ,; t h e n; r t s .; E l s e m o v e t n e x t 4 c o r o ; a n d b r a n c h a l w a y s .

; T R A N S F E R . D I R E C T I O N .; l < t h e n; b r a n c h t m o v e f r o m 4 t 8 0 ; E l s e m o v e f r o m 8 t 4 0 ; S a v e ( y a p t t c o o 8 ; c o l s c r e e n a n u s f o i n d i r e c t; s t o r e t o 4 0 .

R e s t o r e ( y a n ; i n c r e m e n t p o i n t e r s .

B r a n c h a l w a y s .

7 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 78/88

; M o v e b y t e f r o m 4 t 8 0 0 0 b 7 20 0 b 7 50 0 b 7 70 0 b 7 90 0 b 7 c0 0 b 7 f0 0 b 8 2

8 a b a 2 2 c l

e 0 f e b 8 e

I n c r e m e n t 4 0 0 0 b 8 40 0 b 8 50 0 b 8 70 0 b 8 90 0 b 8 a0 0 b 8 b0 0 b 8 c0 0 b 8 d0 0 b 8 f0 0 b 9 10 0 b 9 30 0 b 9 50 0 b 9 7

c c 9 6 6 6 1 a 6 8 9 e 6

2 0

0 f f 0 f

O

O O O

C O

; N e x t 8 0 c o l r o w :0 0 b 9 80 0 b 9 a0 0 b 9 b0 0 b 9 d0 0 b 9 f0 0 b a 10 0 b a 30 0 b a 50 0 b a 8

a 1 a 6 8 9 e 2 6

0

5 e e 0 e e c

; N e x t 4 0 c o l r o w :0 0 b a 9O O b a cO O b a fO O b b i0 0 b b 30 0 b b 60 0 b b 9O O b b b

e a 8 d e a 8 6

d d f 0 d d f

O O

O O

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

. P T Ri n c p b e p l p l r t c l I d a d s t b e

n r t

I d c l I d a d s t b e i n j s r t

i n I d s t b n m I d s t r t

$ 0 b e b# $ 0 0( $ f b ) , y$ 0 b e b$ O b b c$ 0 b 8 4$ 0 b 7 2

# $ 2 8$ 0 b 8 c

# $ 0 8$ f $ f $ 0 b 9 7$ f

# $ 0 0

# $ 5 0$ e $ e $ 0 b a 5$ e $ c d e 6

$ 0 b e 8$ 0 b e 8$ f $ 0 b b 6$ 0 b e 9$ 0 b e 9$ f

; S a v e ( y a p t t c o o 8 ; s c r e e n .; G e t b y t e f r o m 4 c o ; s c r e e n; a n d s t o r e i 8 0 i n c r e m e n t p o i n t e r s a n

b r a n c h a l w a y s .

; H a v e 4 b y t e s b e e n m o v e d ?B r a n c h i n o t .

; E l s e p u l l r e t u r n a d d r e s s o f ; s t a c k a n r e t u r n t ; m o v e 4 c h a r a c t e r s " .; A d d; t 4 0 . C O L P O I N T E R t g e t .; n e x t b y t e t h i s s c r e e n l i n e .

; S t a r t w i t h f i r s t b y t e .

; A d d 8 t 8 c o p t r .

; R O M r o u t i n e w h i c h s e t sl o c a t i o n i V D C ' s m e m o r y .

; B E G I N . R O W; $ 0 b e 8 p o i n t s t b e g i n n i n g o ; r o w o b y t e s i 4 c o s c r e e n .; T h i s r o u t i n e i c a l l e d a f t e r; 4 b y t e s h a v e b e e n m o v e d , t ; s e t 4 0 . C O L P T R t o; t h e n e x t r o o b y t e s .

; S t o r e b y t e i V D C ' s m e m o r y :O O b b c 4 p h ; S e t V D m e m o r y l o c a t i o nO O b b d 4 5 c j m p $ c c 5 4 ; a n d s t o r e b y t e t h e r e .

; G e t b y t e f r o m V D C ' s m e m o r y :O O b c O 2 e c j s $ c d e 6 ; S e l e c t V D m e m o r y l o c a t i o n

a n 0 0 b c 3 2 d c j s $ c d d 8 r e a d b y t e f r o m t h e r e .0 0 b c 6 6 r t

; T u r n o V D C ' s g r a p h i c s m o d e :0 0 b c 7 a 2 1 9 I d # $ 1 90 0 b c 9 a 8 I d # $ 8 0O O b c b 2 c c j s $ c d c cO O b c e 6 r t

; R e t u r n V D t o t e x t m o d e :O O b c fO O b d i0 0 b d 30 0 b d 60 0 b d 8O O b d aO O b d dO O b e O0 0 b e 3

a a 2 a 3 2 2 2 4

1 4 c d 0 2 4 2 O

O

c

c c

I d I d j s I d b m j s j s j s j m

# $ 1 9# $ 4 0$ 0 b c b$ d $ O b d d$ c d 2 c$ c 1 4 2$ c d 2 c$ c e 0 c

; T e x t m o d e .

; C u r s o r i 8 c o s c r e e n ?; B r a n c h i s o ; e l s e s w i t c h s c r e e n s .; C l e a r s c r e e n .; S w i t c h t 4 c o s c r e e n .

R e s t o r e V D c h a r a c t e r s e

T h e T W r u o c t p f 7 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e 0

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 79/88

C o m p u t o o n s

R U N N I N G P R O G R A M '

R . t t o l f e f f " T h i s d a r n h u m a n i d o w n m o r e t h a n i t ' s u p ! "

m e a n t h e r e ' s f r u i t n a m e a f t e r c o m p u t e r ? ! " ' A c c o r d i n g t t h i s H o m e F i n a n c e p r o g r a m , w e ' r eb r o k e b e c a u s e w b o u g h t t h i s c o m p u t e r . "

7 S e p t . 1 9 8 6 : V o l u m e 7 t o u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 80/88

N e w s B R S u b m i t t i n g N E W S B R P r e s s R e l e a s e s

I y o u h a v e p r e s s r e l e a s e w h i c h y o u w o u l 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 e 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 hi s s u e , a n d 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 o 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 tp r o d u c t r e l e a s e s w h i c h a r i s o m e w a A p p l i c a b l e t C o m m o d o r e e q u i p m e n t .N e w s o e v e n t s s 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 sT r a n s a c t o r M a i l O r d e r N e w s

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

I n n e r S p a c e A n t h o l o g y $ 1 4 . 9 5T 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 , w s t i l l g e i n q u i r i e s a b o u t i t c o n t e n t s . B r i e f l y , T h A n t h o l o g y i r e f e r e n c e b o o k i h a n " r e a d i n g " m a t e r i a l ( i e . " p a r a g r a p h s " ) . I 1 2 c o m p a c t p a g e s , t h e r e a r e m e m o r y m a p s f o C B c o m p u t e r s , D i s k D 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 d M L c o m m a n d s , a n W o r d p r o c e s s o r a n S p r e a d s h e e t c o m m a n d s . M a c h i n e L a 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 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 !

T h T o o l b o x ( P A L a n d P O W E R ) $ 7 9 . 9 5P A a n P O W E R f r o m P r o - L i n e a r t w o t h m o s t p o p u l a r p r o g r a m s f o t h C o m m o d o r e 6 4 P A i a e a s y - t o - u s e a s s e m b l e r ( m o s t a s s e m b l e r l i s t i n g s i T h T r a n s a c t o r a r i P A f o r m a t ) , a n P O W E R i p r o g r a m m e r ' s a i p a c k a g et h a t a d d s e d i t i n g f e a t u r e s a n u s e f u l c o m m a n d s t t h p r o g r a m m i n g e n v i r o nm e n t . T h e y c o m e w i t h t w n i c e m a n u a l s , a n o u p r i c e i $ 5 l e s s t h a ns u g g e s t e d r e t a i l !

A m i g a R A E x p a n s i o n b C o m s p e c

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 R A B o $ 8 9 9 . 0 0 ( + $ 1 0 0 S & H ) U . S . ,$ 1 2 7 6 . 0 0 ( + $ 2 5 S & H ) C d

T h e 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 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 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 b o h a " a u t o - c o n f i g " , s o w i t h K i c k s t a r t 1 . t h R A w i l l a u t o m a t i c a l l y b e a d d e d t t h s y s t e m w 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 . o 1 . ( n a u t o -c o n f i g ) , y o u c a n u s t h p r o g r a m i n c l u d e d w i t h t h A X 2 0 0 0 t a d t h m e m o r yt t h s y s t e m , a n c h a n g e y o u r s t a r t u p - s e q u e n c e t a u t o m a t i c a l l y a d t h m e m o r y o p o w e r - u p . S t a n d a r d e x p a n s i o n b u s a r c h i t e c t u r e w a u s e d i t h d e s i g n o t h A X 2 0 0 0 , e n s u r i n g c o m p a t a b i l i t y w i t h a l p e r i p h e r a l s a n o p e r a ti n 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 t h A m i g a , a n d s n u g s u p 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 s w i t h 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 t o 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 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 s u b s c r i p t i o n f o r m i t h i si 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 a c o u r r i e r a n i n c l u d e s a l c u s t o m s c 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 h a v e i s h i p p e d " c o l l e c t " . F o d e a l e r i n f o r m a t i o n , c o n t a c t :

C o m s p e c C o m m u n i c a t i o n s I n c .1 5 3 B r i d g e l a n d A v e n u e

T o r o n t o , O n t .M 6 A 2 Y 6 ( 4 1 6 ) 7 8 7 - 0 6 1 7

P a p e r b a c k W r i t e r n o " P o c k e t W r i t e r "

T a v o i d c o n f u s i o n w i t h p r o d u c t s b P a p e r b a c k S o f t w a r e I n t e r n a t i o n a l o C a l i f o r n i a m a n u f a c t u r e d f o t h I B m a r k e t , D i g i t a l S o l u t i o n s h a c h a n g e d t h n a m e o f t h e i r P a p e r b a c k s e r i e s o f s o f t w a r e t P o c k e t W r i t e r , P o c k e t P l a n n e r ,P o c k e t F i l e r , a n P o c k e t D i c t i o n a r y . T h n e p a c k a g i n g w i l l c o m m e n s e w h e nc u r r e n t s t o c k r u n s o u t , b u t t h e s o f t w a r e i n s i d e w i l l b i d e n t i c a l .

P o c k e t W r i t e r C 6 $ 3 9 . 9 5 U S , $ 4 9 . 9 5 C d P o c k e t P l a n n e r C 6 $ 3 9 . 9 5 U S , $ 4 9 . 9 5 C d P o c k e t F i l e r C 6 $ 3 9 . 9 5 U S , $ 4 9 . 9 5 C d P o c k e t W r i t e r C l 2 8 $ 4 9 . 9 5 U S , $ 6 9 . 9 5 C d P o c k e t P l a n n e r C 1 2 8 $ 4 9 . 9 5 U S $ 6 9 . 9 5 C d P o c k e t F i l e r C l 2 8 $ 4 9 . 9 5 U S , $ 6 9 . 9 5 C d 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

I o u o p i n i o n , t h e P o c k e t p a c k a g e s f r o m D i g i t a l S o l u t i o n s a r e t h e b e s t y o c a g e o t h e i r o w t h f a c t t h a t t h e y w o r k w i t h e a c h o t h e r m a k e s t h e m e v e nb e t t e r . P l a n n e r a n F i l e r d a t a c a n b e l o a d e d i n t o t h W r i t e r , W r i t e r t e x t c a n b es e n t t t h F i l e r , a n e t c e t e r a . T h D i c t i o n a r y s p e l l c h e c k e r w o r k s w i t h b o t hv e r s i o n s o t h W r i t e r .

T h e C L I N K C 6 t I E E E I n t e r f a c e $ 4 9 . 9 5T h e G L I N K p l u g s i n t o t h c a r t r i d g e p o r t , b u t d o e s n ' t e x t e n d t h p o r t f o m o r ec a r t r i d g e s ( f o r t h a t y o u ' l l n e e d " m o t h e r b o a r d " o s o m e k i n d ) . T h o t h e r s i d e o t h G L I N K i a I E E E c a r d - e d g e s u i t a b l e f o P E T - I E E E c a b l e . F r o m t h e r e , a n I E E E d e v i c e c a b a c c e s s e d i n c l u d i n g d i s k d r i v e s , m o d e m s , p r i n t e r s , e t c . T h G L I N K i " t r a n s p a r e n t " - t h a t m e a n s i w o n ' t i n t e r f e r e w i t h p r o g r a m s , e x c e p tt h o s e t h a t r e l y o t h s e r i a l r o u t i n e s w h i c h i r e p l a c e s ( i e . p r o g r a m s w i t h b u i l t -i " f a s t l o a d e r s " f o t h e 1 5 4 1 w o n ' t l i k e t h p r e s e n c e o t h G L I N K ) . I h a n m a n u a l ( a s i d e f r o m o n p a g e o f i n s t a l l a t i o n i n s t r u c t i o n s ) b e c a u s e i a l t e r sn o t h i n g a n l e a v e s e v e r y t h i n g u n c h a n g e d ! A o n - b o a r d s w i t c h a l l o w s y o t s e l e c t S e r i a l o r I E E E . G L I N K w o r k s w i t h b o t h t h e C 6 4 a n d t h C 1 2 8 i 6 m o d e ,b u n o o t h V I 2 0

T h T r a n s B A S I C D i s k $ 9 . 9 5T 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 0 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 kt h o n e s y o u 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 ts 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 ho 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 S u p e r K i i s q u i t e s i m p l y , t h e 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 1 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 S C o m p i l e r

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 I l a s t i s s u e ' s N E W S B R s e c t i o n , t h S c o m p i l e r w a i n c o r r e c t l y l i s t e d a t$ 3 9 . 9 5 U . S . T h S c o m p i l e r ' s r e a l n a m e i " G n o m e S p e e d " a i n t r o d u c e d i t h l a s t p a g e a d a n s e l l s f o r t h e p r i c e l i s t e d i n t h a a n d o n t h e s u b s c r i p t i o nc a r d : $ 5 9 . 9 5 U . S . 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 .

T h T r a n s o c t o f 7 S e p t , 1 9 8 6 : V b l u m e 7 , I ■ O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 81/88

K i U t i l i t y $ 3 9 . 9 5 U S $ 4 9 . 9 5 C d K i i C o m m o d o r e 1 2 u t i l i t y w i t h e n h a n c e m e n t s f o t h B A S I C e d i t o r

T r a c e , F i n d , R e n u m b e r , D e l e t e , A u t o , e t c . ) a w e l l a e n h a n c e d m o n i t o ra n f l o p p y d i s k m o n i t o r f u n c t i o n s .

D i s k s , T r a n s a c t o r B a c k I s s u e s , a n M i c r o f i c h e

o T h T r a n s a c t o r f r o m V o l u m e 4 I s s u e 0 1 f o r w a r d a r n o a v a i l a b l eA c c o r d i n g t C o m p u t r e x , o u r 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

" p o p u l a r 9 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 eS o m e i s s u e a r e 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

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 hf 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 m i c r o f i c h e s l i c e

h s a m e i s s u e .

t h i n g s s i m p l e , t h p r i c e o T r a n s a c t o r M i c r o f i c h e i t h s a m e a i n e s , w i t h o n e x c e p t i o n . s i n g l e b a c k i s s u e w i l l b $ 4 . 5 0 a n s u b s c r i pa r e $ 1 5 . 0 0 . 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 s 4 , 5 , a n 6 ) w i l l

j u s t $ 3 9 . 9 5 !

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 tV o l u m e 5 I s s u e 0 1

4 I s s u e 0 1 ( D i s k 1 V o l . 4 I s s u e 0 4 M o n l y ( D i s k 1 4 I s s u e 0 ( D i s k 1 V o l . 4 I s s u e 0 5 M o n l y ( D i s k 1 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 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 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 ( D i s k 2 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 5 I s s u e 0 - 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 5 I s s u e 0 H a r d w a r e P e r i p h e r a l s ( D i s k 4 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 6 I s s u e 0 1 M o r e A i d s U t i l i t i e s ( D i s k 6 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 6 I s s u e 0 T h L a n g u a g e s ( D i s k 8 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 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 6 I s s u e 0 R e a l L i f e A p p l i c a t i o n s ( D i s k 1 1 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 7 I s s u e 0 G a m e s F r o m T h I n s i d e O u ( D i s k 1 3

T h T r a n s a c t o r D i s k * 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 ks 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 e i

d i s k f o e a c h i s s u e . D i s k 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 s C O M A Ls 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 .

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

T a x o n B o o k s

s o O n t a r i o n e e d n o a d t h 7 s a l e s t a x f o t h e I n n e r S p a c ea n J i B u t t e r f i e l d ' s 1 9 8 6 D i a r y a s i n d i c a t e d o t h e s u b s c r i p t i o n

C h e q u e s F o T r a n s a c t o r P r o d u c t s

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

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

t h c a r d . C a n ' t f i n d o n e ? J u s t t r i m t h e n o f t h e n v e l o p e a n t a p e a l o n ge d g e w h e n f i x i n g i t t h c a r d .

T r a n s a c t o r C o m m u n i c a t i o n s D i s k

s t i l l w o r k i n g o n t h " T r a n s a c t o r C o m m u n i c a t i o n s D i s k " . O c o u r s e t h n s o f t w a r e i n l o n g e r b e i n g c o n s i d e r e d . A n t h f a c t t h a t w e ' r e n o

o n e h o m e f o o u o n - l i n e s e r v i c e s m e a n s t h a t t h i s p r o j e c t h a t

" p u s h e d a h e a d " . T i m e f o t h p r o j e c t h a b e e n " s l o t t e d " a n w h o p e t h a v e i n e a r c o m p l e t i o n e i t h e r b e f o r e o s l i g h t l y a f t e r r e l e a s e o t h n e x t i s s u e . W h e nf i n i s h e d i c o u l d h o s t a m a n y a 1 d i f f e r e n t m o d e m p r o g r a m s a n m a e v e nr e q u i r e t w d i s k e t t e s . W a l s o p l a n a " a l l - i n - o n e " m a n u a l t g o w i t h i s y o u ' l ln e v e r b e w i t h o u t t e l e c o m m u n i c a t i o n s p r o g r a m f o v i r t u a l l y a n h o s t c o p u t e r a n p r o t o c o l . B u i t ' s n o r e a d y y e s d o n ' t s e n d a n o r d e r s . M o r e n e x ti s s u e .

D e m i s e o V i e w t r o n

Y e s , i r e a l l y h a p p e n e d : n e w s p a p e r c h a i n K n i g h t - R i d d e r p u l l e d t h e p l u g o t h V i e w t r o n o n l i n e s e r v i c e t h a t w e ' v e b e e n r a v i n g a b o u t s m u c h l a t e l y . A n j u s tw h e n t h e T r a n s a c t o r s e c t i o n w a d o i n g s w e l l ( H e a v y s i g h ) . P e r h a p s s o m e o t h o t h e r s e r v i c e s w i l l t a k e V i e w t r o n s p l a c e i t h f u t u r e .

Q u a n t u m L i n k a n T i m e l i n e

W e ' r e c u r r e n t l y i n v e s t i g a t i n g Q u a n t u m L i n k a n T i m e l i n e ( M o n t r e a l b a s e dm u l t i - u s e r o n l i n e s e r v i c e ) a t h n e w h o m e s f o T h T r a n s a c t o r O n l i n e D a t aS e r v i c e . A t h m o m e n t , h o w e v e r , n e i t h e r i r e a d i l y a v a i l a b l e t a l o u s u b s c r i b e r s s i m u l t a n e o u s l y . T i m e l i n e a c c e s s i t h r o u g h D a t a P a c , p a c k e ts w i t c h i n g s e r v i c e t h a t s e e m s t b o n l y i C a n a d a . Q u a n t u m L i n k c a n b ea c c e s s e d v i U n i n e t a n T e l e n e t w h i c h d o n ' t y e e x t e n d b e y o n d t h U . S .T y m N e t h a r e c e n t l y i n s t a l l e d n o d e s i o m a j o r C a n a d i a n c e n t e r s , b u d o e sn o t c a r r y t h Q u a n t u m L i n k s e r v i c e . H o w e v e r , r e m o t e a r e a s w o u l d s t i l l n e e d t c a l l l o n g d i s t a n c e . T h i d e a l s o l u t i o n w o u l d b t h a v e Q u a n t u m L i n k o D a t a P a c w h i c h t h e y a r e r e p o r t e d l y c l o s e t c o m p l e t i n g . U n f o r t u n a t e l y w c a n ' to f f e r a n m o r e d e f i n i t e p l a n s , b u c a s a t h a t i i o t o o t h p r i o r i t y l i s t f o t h i n g s t d o b e t w e e n n o a n n e x t i s s u e .

U s i n g T r a n s a c t o r P r o g r a m s I P r o p r i e t a r y S o f t w a r e

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

I n d u s t r y N e w s1 9 8 6 M i d w e s t C o m m o d o r e C o n f e r e n c e / E x p o

T h 1 9 8 6 M i d w e s t C o m m o d o r e C o n f e r e n c e / E x p o i t b h e l d o A u g u s t 9 t a n 1 0 t h , 1 9 8 6 a t h H o l i d a y I n n C o n v e n t i o n C e n t r e , 7 2 n d a n d G r a v e r i O m a h a , N e b r a s k a . T h e r e w i l l b e o v e r 3 w o r k s h o p s a n d b o t h l o c a l a n n a t i o n a l v e n d o r s u p p o r t . S p e a k e r s i n c l u d e J i B u t t e r f i e l d f r o m T o r o n t o ,O n t a r i o , D r R i c h a r d I m m e r s , t h e c o - a u t h o r o " I n s i d e C o m m o d o r e D O S " f r o mD e t r o i t , M i c h i g a n , V a l e r i e K r a m e r , c o m p u t e r l a n g u a g e e x p e r t f r o m L o A n g e l a s , C a l i f o r n i a , D r . J a m e s A l l e y , A r t P r o f e s s o r ( A m i g a ) f r o m t h S a v a n n a hC o l l e g e O A r t s , S a v a n a u g h , G e o r g i a , a n P e t e B a c z o r , t h C o m m o d o r e U s e r sG r o u p C o o r d i n a t o r . I l o o k s t b o n o t h b i g g e s t C o m m o d o r e s h o w s i t h c o u n t r y . F o m o r e i n f o r m a t i o n , c o n t a c t :

T h G r e a t e r O m a h a C o m m o d o r e U s e r s G r o u pP . O . B o 2 4 1 1 5 5O m a h a , N e b r a s k aA t t e n t i o n : T i T r a b o l d

M S S t i l l A l i v e A n P r o s p e r i n g !

I V o l u m e 7 I s s u e 0 ' N E W S B R c o l u m n , w r e p o r t e d t h d e m i s e o M i c r oS y s t e m D e v e l o p m e n t , b e t t e r k n o w n a M S D . W e l l , a M r A l l e n D e r m o d y s e n t u

l e t t e r p o i n t i n g a t h a t t h c o m p a n y i s s t i l l d o i n g w e l l , a h e h a d h i M S d r i v er e c e n t l y s e r v i c e d b y t h e m . I s e e m s t h a t t h e y a r n l o n g e r d e v e l o p i n g d i s kd r i v e s f o C o m m o d o r e m a c h i n e s , b u s t i l l e x i s t a s c o m p a n y , d o i n g m a i n l y

t o f 7 S e p t . 1 9 8 6 : V o l u m e 7 t o u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 82/88

b e c a u s e o s p e c i a l m o d u l e s w h i c h g e n e r a t e i n d i v i d u a l i z e d v o c a b u l a r y a n s y n t a x f i l e s w h i c h c a n b e u t i l i z e d b t h m a i n p r o g r a m . T f l e x i b i l i t y o C . W .m a k e s i p o s s i b l e t d e v e r y t h i n g f r o m a n a l y s i s a n s i m u l a t i o n o e s t a b l i s h e da u t h o r s t c u r s e - g e n e r a t i o n t a i l o r e d t o a b u s e y o u r ' f a v o u r i t e ' p o l i t i c i a n s a n f r i e n d s .

T h r a n d o m l y g e n e r a t e d s e n t e n c e s a r i n f i n i t e l y v a r i a b l e i t e r m s o v o c a b ul a r y a n s e n t e n c e s t r u c t u r e , a n t h e y a r g r a m m a t i c a l l y c o r r e c t . T h p r o d u c t so ' c r e a t i v e w r i t i n g s e s s i o n ' c a n b e s a v e d t d i s k a s a s t a n d a r d s e q u e n t i a l f i l e( f o r l a t e r e d i t i n g w i t h w o r d - p r o c e s s o r ) o s t r e a m e d t p r i n t e r . W h i l e w e a n ' tp r o m i s e y o t h a t C . W . w i l l w r i t e t h G r e a t C a n a d i a n N o v e l f o y o u , w c a p r o m i s e t h a t i w i l l b o n o t h m o s t a m u s i n g a n u n u s u a l p i e c e s o s o f t w a r ei y o u r c o l l e c t i o n !

C r e a t i v e W r i t e r h a r e t a i l p r i c e o $ 2 9 . 9 5 . T o r d e r , p h o n e o s e n d c h e q u e o m o n e y - o r d e r t o

T h G . A . S . S . C o m p a n y9 7 0 C o p e l a n dN o r t h B a y , O n t a r i o , C a n a d aP 1 B - 3 E 4 ( 7 0 5 ) 4 7 4 - 9 6 0 2

S e c t o r S u r g e o n F o r T h C - 6 4

S e c t o r S u r g e o n i t h f i r s t a d v a n c e d d i s k r e p a i r p r o g r a m f o t h e C - 6 4 , S X - 6 4 a n C - 1 2 8 .

U n l i k e i t p r e d e c e s s o r s , S e c t o r S u r g e o n i w r i t t e n t o t a l l y i n m a c h i n e l a n g u a g e .S e c t o r S u r g e o n u s e s F D d i s k r o u t i n e s i n s t e a d o t h l e s s v e r s a t i l e I P r o u t i n e st e n h a n c e i t f l e x i b i l i t y . T h i s a l s o a l l o w s w r i t i n g a n r e a d i n g o p r o t e c t e d d i s k sf r o m t r a c k s t 3 5 A l s o , t h e b l o c k a v a i l a b i l i t y m a s e c t o r n e e d n o b i n t a c t f o rS e c t o r S u r g e o n t w o r k . I n s t r u c t i o n s a r e a v a i l a b l e a t h t o u c h o a k e y .

T h s e c t o r i n f o r m a t i o n i d i s p l a y e d i w i n d o w i s c r e e n c o d e a n t h e b y t eu n d e r t h e c u r s o r i d i s p l a y e d s i m u l t a n e o u s l y i ( 1 s c r e e n c o d e ( 2 d e c i m a l ( 3 h e ( 4 b i n a r y ( 5 b a s i c . A l h e a d e r i n f o r m a t i o n a n d a t a b l o c k c h e c k s u m s c a b d i s p l a y e d i d e c i m a l , h e a n s c r e e n c o d e s . S h o w s a c t u a l t r a c k n u m b e r a n d i s p l a y s t h e f o r w a r d l i n k .

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

S e c t o r S u r g e o n h a b e e n t e s t e d a n f o u n d t w o r k w i t h t h 1 5 4 1 , V 1 C - 1 5 4 1 ,1 5 4 0 , 1 5 4 1 F l a s h ! a n S X - F l a s h ! F o m o r e i n f o r m a t i o n c o n t a c t :

B a R o o m B o y s S o f t w a r e2 3 0 6 M a c A r t h u r B l v d .O k l a h o m a C i t y , O 7 3 1 2 7( 4 0 5 ) 9 4 6 - 2 8 8 8

T h r e e M I D I D a t a S t o r a g e P r o g r a m s F o T h C o m m o d o r e 6 T h C D u m p s t o r i p a t c h l i b r a r i a n f o t h C a s i o C Z 1 0 1 , C Z 1 0 0 0 , C Z 3 0 0 0 a n C Z 5 0 0 0 s y n t h e s i z e r s . T h r e e b a n k s o s i x t e e n p a t c h s c a b i m e m o r y a o n t i m e , a n t h p r o g r a m i n c l u d e s 1 2 p r o f e s s i o n a l p a t c h e s . T h C D u m s t o r s e l l sf o $ 5 4 . 9 5 ( U f u n d s ) .

T h D a t a D u m p s t o r i v e r y p o w e r f u l d a t a s t o r a g e p r o g r a m t h a t s t o r e s p a t c h e s ,s e q u e n c e s , d r u m p a t t e r n s a n o t h e r M I D I i n f o r m a t i o n f r o m o v e r 2 d i f f e r e n ti n s t r u m e n t s . D a t a i a c c e p t e d f r o m t h D X - 7 , R X - 1 1 , T X - 7 , D X - 9 , Q X - 7 , a n t h n e D X - 1 0 0 , a n s e v e r a l m o r e Y a m a h a i n s t r u m e n t s . D a t a f r o m i n s t r u m e n t s b K o r g , S e q u e n t i a l , O b e r h e i m a n d o t h e r s c a a l s o b s t o r e d a n r e t r i e v e d . I h o l d s 3 6 a n M I D I i n f o f r o m s e v e r a l i n s t r u m e n t s c a n b e s t o r e d o r s e n t a t h s a m e t i m e . T h D a t a D u m p s t o r s e l l s f o r $ 5 9 . 9 5 ( U f u n d s ) .

T h T R - 7 0 7 D u m p s t o r a c c e p t s d r u m p a t t e r n s a n s o n g s f r o m t h R o l a n d T R -7 0 a n T R - 7 2 7 d r u m m a c h i n e s . I e l i m i n a t e s t h n e e d f o c a s s e t t e d a t a

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

M S S y s t e m s , I n c .1 0 0 3 1 M o n r o e D r i v e S u i t e 2 0 D a l l a s , T e x a s 7 5 2 2 9( 2 1 4 ) 3 5 7 - 8 5 8 7

T h a d d r e s s f o t h M S I n f o r m a t i o n E x c h a n g e i s

P a u l E c k l e r2 7 0 5 H u l m a n S t r e e tT e r r e H a u t e , I 4 7 8 0 3

T w i n C i t i e s 1 2 8 : T h C o m m o d o r e 1 2 J o u r n a l

A q u o t e d f r o m t h A p r i l , 1 9 8 6 e d i t i o n ; V o l u m e 1 I s s u e 4

1 5 7 1 M u s i c C r i t i c : W h i l e d o i n g s o m e s i m p l e f i l e t r a n s f e r s t o d i s k w h i l el i s t e n i n g t Z Z - T o p ' s A f t e r b u r n e r a l b u m , n o t i c e d m 1 5 7 1 w a h a v i n gp r o b l e m s s a v i n g . T h g r e e n l i g h t w a f u r i o u s l y w i n k i n g o n a n d o f f i n d a z e dd i s t r e s s , a n t h r e a d / w r i t e h e a d w a b u z z i n g l o u d l y i v a i n a t t e m p t t f i n dt h p r o p e r p l a c e o t h e d i s k t d i t j o b . "

I y o h a r e a d t h r o u g h t h b a l a n c e o f t h i s a r t i c l e , y o u w o u l d d i s c o v e r t h a t t h C o m m o d o r e 1 5 7 1 d r i v e d i s l i k e s t h m u s i c o Z T o ( t h e k i c k - d r u m s k n o c k t h d r i v e o u o a l i g n m e n t ) b u t l o v e s S t e v i e N i c k s ; t h a t i s a c c o r d i n g t T h A b o m i n o g ' s R u m i n a t i o n s c o l u m n . A l t h o u g h l i t t l e b i o t h w e i r d s i d e a t i m e s , r e a d i n g t h r o u g h t h i s j o u r n a l i d e l i g h t t b e n j o y e d b a l l .

W h a t b e t t e r w a t t e l l o j o u r n a l ' s c o n t e n t s t h a n t l i s t i t T h T a b l e O C o n t e n t s :

R u m o r s , O p i n i o n s , M a y h e mA b o m i n o g ' s R u m i n a t i o n sS i V i c i o u s B y t e sP r i n t U s i n g E x p l a i n e dI n t r o T M u s i c 7 . C P / M U p d a t eP r i n t e r F i l e s E x p l a i n e dC o m m o d o r e E x p e r t s S p e a kS p a r r o w ' s S l i c k T i p s

. . p l u s r e v i e w s o P a p e r b a c k F i l e r , C o m m o d o r e 1 3 5 0 M o u s e , C o m m o d o r e1 6 7 0 M o d e m , F l e e t S y s t e m 3 / 1 2 8 , M a t r i x , L e a d e r B o a r d a n P r o j e c t : S p a c e

S t a t i o n

A s t a t e d a l a l o n g , a j o u r n a l n o t b w i t h o u t . $ 1 . 7 5 ( U f u n d s ) p e i s s u e o r$ 2 2 . 0 0 f o a y e a r ' s s u b s c r i p t i o n . A v a i l a b l e f r o m :

T w i n C i t i e s 1 2 1 6 0 7 H e w i t t A v e n u e , S u i t e 4P B o x 4 5 2 6S a i n t P a u l , M 5 5 1 0 4

C r e a t i v e W r i t e r

" A l t h o u g h t h c o m p u t e r w a s q u i t e e l e g a n t l y c o n s t r u c t e d , i w a n o a s s l e e k a sS h a r o n ' s c a l f . " T h p r e c e d i n g s e n t e n c e w a n o w r i t t e n o c o m p u t e r : i w a w r i t t e n b c o m p u t e r . C R E A T I V E W R I T E R i n o w o r d - p r o c e s s o r . I i w r i t e r , w r i t e r w h n e v e r g e t s w r i t e r ' s b l o c k . A n i i o n o t h m o s t u n u s u a la n d a m u s i n g a n d e d u c a t i o n a l p r o g r a m s e v e r w r i t t e n f o t h e C - 6 4 .

T h p r o g r a m w a w r i t t e n b C a n a d i a n p o e t a n n o v e l i s t f o u s i t e a c h i n gc r e a t i v e - w r i t i n g i O n t a r i o s c h o o l s , w h e r e b o t h s t u d e n t s a n t e a c h e r s h a v ei n v a r i a b l y f o u n d i b o t h f a s c i n a t i n g a n h i l a r i o u s . W h i l e e x t r e m e l y e a s y t u s e ,C . W . i q u i t e c a p a b l e o e x t r e m e l y c o m p l e x l i n g u i s t i c i n v e s t i g a t i o n . T h i s i

T h T r a n s a c t o r 7 S e p t . 1 9 8 < J : V b t u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 83/88

a n a l s o u s e s t h u l t r a - f a s t d i s k M I D I f i l e l o a d i n g r o u t i n e u s e d b y t h o r a n d t h D a t a D u m p s t o r . I s e l l s f o r $ 3 9 . 9 5 ( U f u n d s ) . F o m o r e

c o n t a c t :M u s i c S e r v i c e S o f t w a r e8 0 W h e e l e r R o a dM a d i s o n , W 5 3 7 0 4

E l e c t r o n i c S h o e B o A c c o u n t i n g S y s t e m s F o r T h e C 6 4

b a c k t i t o r i g i n a l r e l e a s e i 1 9 8 3 f o u s e w i t h t h P e t / C B M m i c r o c o mt h n e S h o e B o I A c c o u n t i n g a n d S h o e B o P a y r o l l s y s t e m s f o t h

6 a n C 1 2 8 h a v e a r r i v e d . T w y e a r s o u n r e l e n t i n g w o r k h a i n t o m a k i n g t h S h o e B o s y s t e m s t h r i g h t c h o i c e f o a l y o u r a c c o u n t i n g

W h i l e r e t a i n i n g c o m p l e t e c o m p a t i b i l i t y w i t h t h p r e v i o u s S h o e B o d a t at h s p e e d o p r o g r a m e x e c u t i o n h a s n o b e e n f u r t h e r i n c r e a s e d b

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

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

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

l o o k a t h f i n e f e a t u r e s t b e n j o y e d i t h u s o f t h i s s y s t e m :

e a s y i n i t i a l s e t - u p ( 2 0 m i n u t e s ) .c a l c u l a t e s t a x , C C a n p r o r a t e d e x p e n s e s a u t o m a t i c a l l y .a u t o m a t i c p o s t i n g t G e n e r a l L e d g e r .a u t o m a t i c a d d r e s s i n g o i n v o i c e s a n c u s t o m e r s t a t e m e n t s .p r i n t a n s o r t b d i g i t c o d e .p r i n t s m a i l i n g l a b e l s .s u p p o r t s m o s t C o m m o d o r e a n c o m p a t i b l e d i s k d r i v e s a n p r i n t e r s .9 G e n e r a l L e d g e r a c c o u n t s .i n c o m e s t a t e m e n t a n b a l a n c e s h e e t .C a n a d i a n h a l f - y e a r r u l e f o C C A .2 0 " A g e d " c u s t o m e r s u b - a c c o u n t s .7 d a t a j o u r n a l s p e d i s k w i t h u t 1 3 , 0 0 0 j o u r n a l e n t r i e s .

m i l l i o n d o l l a r a c c o u n t l i m i t .

m u c h , m u c h m o r e . T h S h o e B o C a n a d i a n P a y r o l l p a c k a g e h a s r e t a i lo $ 7 9 . 9 5 ( C a n a d i a n f u n d s ) . T h S h o e B o x I A c c o u n t i n g s y s t e m h a sp r i c e o $ 8 9 . 9 5 ( C a n a d i a n f u n d s ) . F o m o r e i n f o r m a t i o n , c o n t a c t :

J o h n D u n l o p a n d A s s o c i a t e s L t d .R R N u m b e rO r a n g e v i l l e , O n t a r i o , C a n a d aL 9 W - 2 Z 2 ( 5 1 9 ) 9 4 1 - 9 5 7 2

A s s e m b l e r - 1 2 8 F o r T h C o m m o d o r e 1 2

F r e e d o m A s s e m b l e r - 1 2 8 i s y m b o l i c a s s e m b l e r , w r i t t e n e n t i r e l y i l a n g u a g e , b p r o f e s s i o n a l c o m p u t e r p r o g r a m m e r . N o w , y o t o c a

p r o g r a m s f o t h 6 5 0 2 / 6 5 1 0 / 6 5 C 0 2 / 8 5 0 2 f a m i l y o m i c r o c o m p u t e r s .t h i s a s s e m b l e r , p r o g r a m m i n g i f a s t e r a n e a s i e r t h a n e v e r . T h F r e e d o m

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

d i s k a s s e m b l e r t o l o a d . T h F r e e d o m A s s e m b l e r - 1 2 8 i a l w a y s r e a d yy o u n e e d i t T h c a r t r i d g e f o r m a t a l l o w s i t r e m a i n p l u g g e d i n t o y o u r

u n t i l i i n e e d e d , w i t h n i n t e r f e r e n c e w i t h y o u r o t h e r p r o g r a m s . T h A s s e m b l e r - 1 2 8 w o r k s i b o t h 4 a n 8 c o l u m n m o d e .

d o m A s s e m b l e r - 1 2 8 i a v a i l a b l e f o $ 4 9 . 9 5 ( U f u n d s ) . P o s t a g e i p a i dA s s o c i a t e s . O r d e r f r o m :

H u g h e s A s s o c i a t e s4 5 3 4 1 H a r m o n y L a n eB e l l e v i l l e , M l 4 8 1 1 1( 3 1 3 ) 6 9 9 - 1 9 3 1

R e b e l A s s e m b l e r / E d i t o r F o r T h C o m m o d o r e 6 a n 1 2

n e d a w n i o t h h o r i z o n f o C o m m o d o r e p r o g r a m m e r s w h p r o g r a m i t h n a t i v e m a c h i n e l a n g u a g e o e i t h e r t h C o m m o d o r e 6 o C o m m o d o r e 1 2 P C

s o p h i s t i c a t e d 6 5 X X / 8 5 X X a s s e m b l e r t h a t a s s e m b l e s s o u r c e c o d e a u n b e l i e va b l y l i g h t i n g s p e e d , R e b e l i i n t e g r a t e d i b o t h t h 6 a n 1 2 v e r s i o n s w i t h a e x t r e m e l y v e r s a t i l e a n h e l p f u l s c r e e n e d i t o r . T h 1 2 e d i t o r i t h 8 c o l u m nm o d e e v e n p r o v i d e s a o n - s c r e e n h e l p m e n u a n t r u e s p l i t - s c r e e n e d i t i n g .R e b e l t a k e s n f u n c t i o n s a w a y f r o m t h u s e r , g i v i n g t o t a l a c c e s s t t h c o m p u t e r ' s p o w e r f u l B a s i c l a n g u a g e a a l t i m e s , w h i l e p r o v i d i n g e x t r a f a c i l i t i e ss u c h a f i l e l i s t e r , l i s t f r e e z e r , s e a r c h a n r e p l a c e f u n c t i o n s a n m u c h m o r e .T h 6 v e r s i o n , b e c a u s e o t h l i m i t a t i o n s o B a s i c 2 . 0 , a d d s o t h e r f e a t u r e s s u c ha f a s t r e n u m b e r , p a g e f l i p p i n g , h e x a d e c i m a l d e c i m a l A S C I I c o n v e r s i o n s , l i s ts c r o l l i n g a n m o r e .

n i c e t h i n g a b o u t R e b e l i t h a t i i a v a i l a b l e n o w , a s u g g e s t e d r e t a i l p r i c e o o n l y $ 2 9 . 9 5 . F o r m o r e i n f o r m a t i o n , p l e a s e c o n t a c t :

N u - A g e S o f t w a r e2 3 1 1 2 8 t h S t r e e t N o r t hS t P e t e r s b u r g , F 3 3 7 1 3( 8 1 3 ) 3 2 3 - 8 3 8 9

L i D e a l ' s B a s i c P r o g r a m C o n v e r t e r

L i s t / c o n v b E l i z a b e t h D e a l i p r o g r a m w h i c h c o n v e r t s p r o g r a m s f r o m o n C o m m o d o r e m a c h i n e i n t o a f o r m a t s u c h t h a t t h e y c a n b e l i s t e d a n e d i t e d o a n o t h e r m a c h i n e . I y o d o n ' t k n o w w h i c h m a c h i n e a p a r t i c u l a r p r o g r a mc o m e s f r o m , L i s t / c o n v w i l l d i t b e s t t f i g u r e i o u f o y o u . T h n e w l y c r e a t e dp r o g r a m m a n o d i r e c t l y r u o t h t a r g e t m a c h i n e , b u a l e a s t t h k e y w o r dt o k e n s w o n ' t b m e s s e d u p t h e y w i l l b c o n v e r t e d t e q u i v a l e n t t o k e n s i t h n e m a c h i n e , o a c t u a l A S C I I s t r i n g s w h e r e n o s u c h k e y w o r d s e x i s t .

I n c l u d e d o t h d i s k w i t h L i z ' s L i s t / c o n v a n c h a r g e i J i B u t t e r f i e l d ' sp u b l i c - d o m a i n " l i s t e r " p r o g r a m , w h i c h r u n s b i s l o w e r t h a n t h m a c h i n el a n g u a g e L i s t / c o n v , b u t t e n d s t h a n d l e c o n t r o l c h a r a c t e r s b e t t e r . T h d i s k w i t hb o t h p r o g r a m s i o n l y $ 1 0 . 0 0 U . S . , a v a i l a b l e f r o m :

L i D e a l3 3 W e s t l s t A v eM a l v e r n , P A , 1 9 3 5 5

1 a n 2 M e g a b y t e H a r d D i s k D r i v e s F o T h e C 6 4

F i s c a l I n f o r m a t i o n S e r v i c e s h a v e b r o k e n t h s p e e d b a r r i e r w i t h t h f i r s t r e a l l yf a s t h a r d d i s k s y s t e m f o t h C o m m o d o r e 6 4 H o f a s t i r e a l l y f a s t . I t ' s f a s te n o u g h t L o a d f u l l s c r e e n o h i g h - r e s o l u t i o n c o l o r g r a p h i c s ( a b o u t 1 k b y t e s )i n l e s s t h a n o n s e c o n d ! I f a c t , i i u t 4 t i m e s f a s t e r t h a n C o m m o d o r e ' ss t a n d a r d 1 5 4 1 f l o p p y d i s k d r i v e .

F I S ' s L t K e r n a l d i s k d r i v e c a r r i e s a n o n - b o a r d D O S . I t ' s a s u b s t a n t i a l u p g r a d e t C 6 4 ' s B a s i c s i n c e i a d d s r u n - t i m e f u n c t i o n s a n s e v e r a l C P / M l i k e c o m m a n dl i n e f u n c t i o n . L t K e r n a l i n t e r f a c e s v i t h e e x p a n s i o n / c a r t r i d g e p o r t a n t r a n s p a r e n t l y i m p l e m e n t s a l C o m m o d o r e 1 5 4 1 D O f u n c t i o n s .

T h c a p a c i t y o 1 o 2 M i s t a n d a r d ; l a r g e r c a p a c i t i e s a n s t r e a m i n g t a p eb a c k u p a r a v a i l a b l e a s e x t r a - c o s t o p t i o n s . T h p r i c e o f t h 1 M L t K e r n a l i $ 1 , 5 9 5 . 0 0 ( U S ) . F o m o r e i n f o r m a t i o n :

F i s c a l I n f o r m a t i o n I n c .1 4 E x e c u t i v e C i r c l eD a y t o n a B e a c h , F L 3 2 0 1 4( 9 0 4 ) 2 5 3 - 6 2 2 2

7 S e p t . 1 9 8 6 : V o l u m e 7 I s s u e O

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 84/88

Q u i c k B r o w n B o x :A 8 R e a d / W r i t e C a r t r i d g e F o T h C o m m o d o r e 6

T h Q u i c k B r o w n B o i b a t t e r y - b a c k e d - u p R A c a r t r i d g e f o t h C - 6 4 ( o C 1 2 i 6 m o d e ) t h a t a l l o w s t h e B a s i c o r m a c h i n e l a n g u a g e p r o g r a m m e r t l o a do w r i t e p r o g r a m s a n s a v e t h e m f o i m m e d i a t e a v a i l a b i l i t y a p o w e r u p F o t h E x p a n s i o n P o r t , u t 8 o f r e q u e n t l y u s e d u t i l i t i e s , w e d g e s , o g a m e s m a b s t o r e d , u s i n g n o h a r d w a r e b e s i d e s t h c o m p u t e r i t s e l f . I n c l u d e s W r i t eP r o t e c t s w i t c h a n R e s e t b u t t o n , a n i s h i p p e d w i t h A u t o - S t a r t , B a s i c u t i l i t i e sa n M . L . M o n i t o r . U S $ 3 9 . 0 0 p l u s $ 3 . 0 0 H a n d l i n g a n M a i l i n g , C a n a d i a n$ 5 0 . 0 0 p l u s $ 4 . 0 0 H & M . C h e q u e s a c c e p t e d .

B r o w n B o x e s , I n c .2 C o n c o r d R o a dB e d f o r d , M 0 1 7 3 0( 6 1 7 ) 2 7 5 - 0 0 9 0

1 5 4 0 / 1 5 4 1 D r i v e A l i g n m e n t S y s t e m B S c h u L a c e E n t e r p r i s e s

A g o o d a t h e y a r e , i n o r m a l u s a g e , t h e 1 5 4 0 / 1 5 4 1 D i s k D r i v e s a r e s u b j e c t t k n o c k i n g t h e m s e l v e s o u o a l i g n m e n t . I h a p p e n s e n o u g h t w a r r a n t t h a t t e n t i o n o a l u s e r s . S c h u L a c e u s e s d r i v e e l e c t r o n i c s c o u p l e d w i t h p a i r o fi n n o v a t i v e i n d i c a t o r s t c o r r e c t t h p r o b l e m . W e c o n o m i c a l l y s h o w y o h o t o g e t y o u r p r o b l e m d r i v e r e a d i n g t h o s e e a r l y - r e c o r d e d a n c o m m e r c i a ld i s k e t t e s . A t h n a m e i m p l i e s , i w i l l g e y o u b a c k C m - T r a c k . T h O n - T r a c kS y s t e m i t h p r o d u c t o n e a r l y t w y e a r s r e s e a r c h , d e v e l o p m e n t a n d i m p r o v em e n t . I t ' s m u l t i - f u n c t i o n s a n a d v a n t a g e s w i l l p r o v e i t i m m e a s u r a b l e v a l u ew i t h u s e . O n - T r a c k h a s u g g e s t e d r e t a i l p r i c e o $ 1 5 . 9 8 ( U f u n d s ) p l u s $ 2 . 0 0P & H . F o m o r e i n f o r m a t i o n , c o n t a c t :

S c h u L a c e E n t e r p r i s e sP . O . B o 7 7 C a s c a d e , M a r y l a n d 2 1 7 1 9

A s t r o l o g y P r o g r a m F o C o m m o d o r e 6

T h i s p r o g r a m w i l l r u o C o m m o d o r e 6 s y s t e m w i t h a d i s k d r i v e a n p r i n t e r( o p t i o n a l ) . C h o o s e b e t w e e n T R O P I C A L o S I D E R E A L z o d i a c . I i b a s e d o u n i q u e a n c i e n t e a s t e r n s y s t e m o a s t r o l o g y u s i n g d i v i s i o n s o z o d i a c i n t o 1 2s i g n s , 2 a s t e r i s m s , 1 0 n a v a m s a q u a r t e r s a n 2 4 s u b - a s t e r i s m a l d i v i s i o n s .U s e s u n i q u e l u n a r p r o g r e s s i o n ( v i m s o t t a r y d a s a ) . I a l s o h a a t i m e - t e s t e dh o r a r y c h a r t o p t i o n f o d r a w i n g c h a r t s f o a n s w e r i n g q u e s t i o n s o w h e n t h b i r t h t i m e i u n k n o w n . L o n g i t u d e s o p l a n e t s a n l u n a r n o d e s , t h e i rp o s i t i o n s , s t r e n g t h s , a s p e c t s a n p l a n e t a r y p e r i o d s , e t c . , a r d i s p l a y e d o s c r e e n . T h s c r e e n c a n b e d u m p e d t c o n n e c t e d p r i n t e r ( d e v i c e # 4 ) . I na d d i t i o n , s e p a r a t e f o r m a t t e d h a r d c o p y o p t i o n s u p p o r t s 1 5 2 6 / M P S - 8 0 2a n d E p s o n S t a n d a r d C o d e c o m p a t i b l e p r i n t e r s . q u i c k h o r o s c o p e s n a p s h o to p t i o n a n d i r e c t o r y d i s p l a y a r e s u p p o r t e d . D o c u m e n t a t i o n f o o p e r a t i n g t h p r o g r a m a n d t r e a t i s e o u t l i n i n g t h e p r e d i c t i v e a s p e c t s ( w i t h i m p o r t a n t r e f e re n c e m a t e r i a l a n d e x a m p l e h o r o s c o p e a n a l y s i s ) a r i n c l u d e d f o t h o s e w i s h i n gt l e a r n t h e s y s t e m . B a c k u p d i s k i n c l u d e d . A v a i l a b l e f o $ 5 0 . 0 0 ( C a n a d i a nf u n d s ) f r o m :

R O H I N IP . O . B o S t N o r b e r t P o s t O f f i c eW i n n i p e g , M a n i t o b a , C a n a d aR 3 V - 1 L 5

M u l t i p l e x E i g h t R S 2 3 2 P o r t s O n t o S i n g l e X . 2 5 L i n e

N e f r o m B l a c k B o C o r p o r a t i o n . X . 2 5 P A D / C o n c e n t r a t o r l o w e r s c l u s t e ra c c e s s c o s t s . T h u s o X . 2 5 p a c k e t d a t a n e t w o r k s ( s u c h a D a t a P a c ) h a s g r o w nr a p i d l y a s u s e r s r e c o g n i s e P D N ' s c o s t - s a v i n g a d v a n t a g e o v e r l e a s e d l i n e s . N o w ,g e e v e n g r e a t e r u s o u o s i n g l e X . 2 5 a c c e s s l i n e w i t h B l a c k B o x ' s X . 2 5 P A D /C o n c e n t r a t o r . T h i s d e v i c e h a s a X . 2 5 " i n " c o n n e c t o r a n b i - d i r e c t i o n a lR S 2 3 2 f e m a l e p o r t s . I p e r m i t s u t o e i g h t t e r m i n a l s o c o m p u t e r p o r t s t m u l t i p l e x o n t o s i n g l e X . 2 5 l i n e , m a k i n g i c o s t e f f e c t i v e w a t c o n n e c t

c l u s t e r o r e m o t e a s y n c h r o n o u s t e r m i n a l s t n o X . 2 5 h o s t , o p r o v i d em u l t i p l e r e m o t e t e r m i n a l a c c e s s t a X . 2 5 h o s t c o m p u t e r .

E a s y t i n s t a l l , m a i n t a i n a n t r o u b l e s h o o t , X . 2 5 P A h a p o w e r f u l , u s e rf r i e n d l y c o m m a n d f a c i l i t y w h i c h p r o v i d e s c o m p r e h e n s i v e s e o c o n f i g u r a t i o na n c o n t r o l f u n c t i o n s , s u c h a l o n g c a l l f o r m s , a b b r e v i a t e d c a l l a n a u t o c a l l ,c l a s s s e l e c t i o n , c h a n n e l c a l l i n g r e s t r i c t i o n s a n i n c o m i n g c a l l v a l i d a t i o n . I c a s u p p o r t d i r e c t , d e d i c a t e d a n d i a l u t e r m i n a l c o n n e c t i o n s a s p e e d s u t 9 6 0 0b p s . T h u n i t i f u l l y c o m p a t i b l e w i t h C C I T T , X . 3 , X . 2 8 , X . 2 9 , X . 1 2 1 a n X . 2 5a c c e s s l i n e s .

F o f r e e c a t a l o g t h a t d e s c r i b e s t h i s a n 5 0 o t h e r d a t a c o m m u n i c a t i o n s a n c o m p u t e r d e v i c e s a v a i l a b l e f r o m B l a c k B o x , w r i t e :

X . 2 5 P A D / C o n c e n t r a t o rB l a c k B o C o r p .P . O . B o 1 2 8 0 0P i t t s b u r g h , P 1 5 2 4 1 ( 4 1 2 ) 7 4 6 - 5 5 0 0

/ S P E E D P A K / S p e e d s c r i p t E n h a n c e r

U p s t a r t P u b l i s h i n g p r o u d l y p r e s e n t s / S P E E D P A K / , t h C 6 S p e e d s c r i p t 3 . 0 - 3 . 2e n h a n c e r . / S P E E D P A K / a d d s s i n e c o m m a n d s , t h r e e p r i n t e r c o d e s , a n e i g h t u s e r - d e f i n a b l e 3 1 - c h a r a c t e r m a c r o p h r a s e k e y s t S p e e d s c r i p t . A m o n g t h n e f e a t u r e s a r e :

A l t e r n a t e s c r e e n s : E d i t , c u t , a n c o p y b e t w e e n d o c u m e n t s i n s t a n t l yH e l p s c r e e n i n s t a l l e r : u s o n b u i l t - i n h e l p s c r e e n a t i m e . F o u r f r e e s a m p l e sa r e i n c l u d e d , o r y o c a c r e a t e y o u r o w n .S C R E E N f o n t i n s t a l l e r : f o u r s p e c i a l c h a r a c t e r s e t s a r i n c l u d e d f o o n s c r e e nv i e w i n g ( t h e s e d n o p r i n t t o t h p a g e ) .

F i l e e n c r y p t i o n : F o s e c u r i t y , s c r a m b l e y o u r t e x t f i l e s b e f o r e s a v i n g a n r e c o v e r t h e m a f t e r l o a d i n g ( u s i n g y o u r o w 3 2 - c h a r a c t e r c o d e ) .C o d e c o n v e r s i o n : C o n v e r t s c r e e n c o d e s t C o m m o d o r e A S C I I a n v i c e v e r s a .D e f a u l t s : S e t d i s k o t a p e a d e f a u l t s t o r a g e d e v i c e , a n s e s t a n d a r d p r i n t i n gd e v i c e a n d s e c o n d a r y a d d r e s s .D v o r a k k e y b o a r d o p t i o n : U s t h e w o r l d ' s f a s t e s t k e y b o a r d a r r a n g e m e n t

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

T h r e e a d d i t i o n a l p r i n t e r c o d e s w o r k w i t h t h a l t e r n a t e s c r e e n f e a t u r e t p r o v i d eR A M - b a s e d f o l e t t e r m a i l m e r g e , a l l o w i n g y o t m e r g e r e c o r d i n t o t h f o r m

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

B e s t o a l l , y o c a s a v e S p e e d s c r i p t , / S P E E D P A K / , c h a r a c t e r s e t , h e l ps c r e e n , a n p r e s e t d e f a u l t s ( i n c l u d i n g b a c k g r o u n d a n d b o r d e r c o l o u r s ) a s o n e a s y t l o a d b u n d l e ! A n t h / S P E E D P A K / d i s k c o m e s w i t h p r i n t e d i n s t r u ct i o n s , t h r e e d i s k - b a s e ' d t u t o r i a l s , a n t h r e e s a m p l e f i l e s t h a t s h o w y o h o t u s / S P E E D P A K / ' s h a n d y f u n c t i o n s . P r i c e i $ 1 5 . 0 0 U S , $ 1 2 . 0 0 f o q u a n t i t i e so t e n o r m o r e . O r d e r f r o m :

U p s t a r t P u b l i s h i n g D e p t . T P . O . B o 2 2 0 2 2G r e e n s b o r o , N 2 7 4 2 0

S p e e d - P l u s S p e e d s c r i p t E n h a n c e r

T h S p e e d - P l u s S p e e d s c r i p t e n h a n c e r f r o m L i d o n E n t e r p r i s e s a d d s t h f o l l o wi n g f e a t u r e s t S p e e d s c r i p t 3 . 0 - 3 . 2 : J u s t i f i c a t i o n , T a b s , c o l u m n / 2 s i d e p r i n ti n g , w o r d w r a p t o g g l e , p r e v i e w o o u t p u t t s c r e e n , p r i n t i n g o a n s e c t i o n o d o c u m e n t , u s e r - d e f i n e d p r i n t e r c o m m a n d s , a n c h a n g e o p r i n t e r s e c o n d a r ya d d r e s s " o t h f l y " . P r i c e i $ 2 4 . 9 5 U i n c l u d i n g P & H , f r o m :

L i d o n E n t e r p r i s e s D e p t . U P . O . B o 7 7 E l G r o v e , W 5 3 1 2 2

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

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 85/88

J O I N T P U GT h l a r g e s t C o m m o d o r e U s e r s G r o u p

B e n e f i t f r o m :A c c e s s t l i b r a r y o f p u b l i c d o m a i n s o f t w a r e

f o C - 6 4 , V I 2 a n P E T / C B MM a g a z i n e ( 1 p e y e a r ) w i t h a d v i c e f r o m

J i B u t t e r f i e l dB r a d B j o m d a h l

L i D e a lT P U G y e a r l y m e m b e r s h i p s :R e g u l a r m e m b e r ( a t t e n d s m e e t i n g s )S t u d e n t m e m b e r ( f u l l - t i m e , a t t e n d s m e e t i n g s )A s s o c i a t e ( C a n a d a )A s s o c i a t e ( U . S . A . )

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

$ 3 5 . 0 0 C d n .— $ 2 5 . 0 0 C d n .

$ 2 5 . 0 0 C d n .— $ 2 5 . 0 0 U . S .— $ 3 0 . 0 0 C d n .

$ 3 5 . 0 0 U . S .$ 4 5 . 0 0 U . S .

F O R F U R T H E R I N F O R M A T I O N :S e n d $ 1 . 0 0 f o a i n f o r m a t i o n c a t a l o g u e( t e l l u w h i c h m a c h i n e y o u u s e ! )

T o T P U G I N C .D E P T . A 1 0 D U N C A N M I L L R D . , S U I T E G 7D O M I L L S , O N T A R I OC A N A D A M 3 B 1 Z 3

C O M A L I N F Oi y o u h a v e c o m a l —

w h a v e i n f o r m a t i o n .B O O K S :

C O M A L F r o m T Z S 6 . 9 5C O M A L W o r k b o o k , $ 6 . 9 5C o m m o d o r e 6 G r a p h i c s W i t h C O M A L , $ 1 4 . 9 5C O M A L H a n d b o o k , $ 1 8 . 9 5B e g i n n i n g C O M A L , $ 2 2 . 9 5S t r u c t u r e d P r o g r a m m i n g W i t h C O M A L , $ 2 6 . 9 5F o u n d a t i o n s W i t h C O M A L , $ 1 9 . 9 5C a r t r i d g e G r a p h i c s a n S o u n d , $ 9 . 9 5C a p t a i n C O M A L G e t s O r g a n i z e d , $ 1 9 . 9 5G r a p h i c s P r i m e r , $ 1 9 . 9 5C O M A L 2 . P a c k a g e s , $ 1 9 . 9 5L i b r a r y o F u n c t i o n s a n P r o c e d u r e s , $ 1 9 . 9 5

O T H E R :C O M A L t o d a y s u b s c r i p t i o n , i s s u e s , $ 1 4 . 9 5C O M A L 0 . 1 4 , C h e a t s h e e t K e y b o a r d O v e r l a y , $ 3 . 9 5C O M A L S t a r t e r K i ( d i s k s , b o o k ) , $ 2 9 . 9 51 9 D i f f e r e n t C O M A L D i s k s o n l y $ 9 4 . 0 5D e l u x e C O M A L C a r t r i d g e P a c k a g e , $ 1 2 8 . 9 5( i n c l u d e s b o o k s , d i s k s , a n c a r t r i d g e )

O R D E R N O W :C a l l T O L L - F R E E : 1 - 8 0 0 - 3 5 6 - 5 3 2 3 e x 1 3 0 7 v i s a o M a s t e r C a r dO R D E R S O N L Y . Q u e s t i o n s a n I n f o r m a t i o n m u s t c a l l o u I n f o L i n e : 6 0 8 - 2 2 2 - 4 4 3 2 . A l o r d e r s p r e p a i d o n l y — n o C . O . D .A d $ p e b o o k s h i p p i n g . S e n d S A S E f o f r e e i n f oP a c k a g e o s e n d c h e c k o m o n e y o r d e r i U D o l l a r s t o

C O M A L U S E R S C R O U P , U . S . A . , L I M I T E D5 5 0 1 G r o v e l a n d T e n , M a d i s o n , w 5 3 7 1 6T R A D E M A R K S : C o m m o d o r e 6 4 o f C o m m o d o r e E l e c t r o n i c s L t d . ;C a p t a i n c o m a l o C O M A L u s e r s C r o u p , U . S . A . , L t d .

C o m m o d o r eR e f e r e n c e

1 9 8 6C O M P U T E R D I A R Y

F r o m T h e G u r u H i m s e l f !T h 1 9 8 6 C o m m o d o r e R e f e r e n c e D i a r y

6 p a g e r e f e r e n c e s e c t i o n t h a t i n c l u d e s :A l h a r d w a r e s p e c i f i c a t i o n s i n c l u d i n gt h e C i 2 8 a n d P C i 0 / 2 0U s e f u l m e m o r y l o c a t i o n sU s e f u l p r o g r a m sS u p e r C h a r t sB A S I C a n m a c h i n e l a n g u a g e h i n t sH e x a d e c i m a l c o n v e r s i o nS o u n d , v i d e oa n m o r e

T h f u l l c a l e n d a r a n d a t e b o o k i n c l u d e s :N a t i o n a l h o l i d a y s i t e n c o u n t r i e sP e r s o n a l n o t e s1 9 8 7 f o r w a r d p l a n n e rN a m e , a d d r e s s , t e l e p h o n e s e c t i o n

J u s t $ 5 . 9 5( p l u s 5 0 p o s t a g e a n h a n d l i n g )

O r d e r Y o u r C o p y T o d a y !C a n a d a

T h T r a n s a c t o r5 0 S t e e l e s A v e n u e

M i l t o n , O n t a r i oL 9 3 P

U S T h T r a n s a c t o r

2 7 7 L i n w o o d A v e n u eB u f f a l o , N e Y o r k

1 4 2 0 9

D e a l e r O r d e r s :C a n a d aN o r l a n d A g e n c i e s

2 5 N i p i s s i n g R o a dM i l t o n , O n t a r i oL 9 4 T

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

U S M i c r o P a c e D i s t r i b u t i n g1 5 1 0 N o r t h N e i l S t r e e tC h a m p a i g n , I l l i n o i s

6 1 8 2 08 0 3 6 2 - 9 6 5 3

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 86/88

T H P R O G R

G N O M E K I H a c k e r G n o m e ' s t o o l k i t i s c o l l e c t i o n o p r o g r a m m i n g , d e s i g n i n ga n d d e b u g g i n g a i d s f o w r i t i n g b o t h B A S I C a n m a c h i n e c o d ep r o g r a m s . B s i m p l y l o a d i n g t h i s t r a n s p a r e n t k i a t h s t a r t o y o u rw o r k s e s s i o n , y o w i l l h a v e f u l l r a n g e o p o w e r f u l c o m m a n d s — s u c ha f i n d , d u m p , m e r g e , r e n u m b e r , m o v e a n t r a c e — a t y o u r g n o m e t i p s .A n d , f o y o m o r e s o p h i s t i c a t e d g n o m e s , y o c a e a s i l y w r i t em a c h i n e c o d e p r o g r a m s w i t h t h e f u l l a s s e m b l e r / d i s a s s e m b l e r a n e d i t o r E v e n e x t e n d D O S , c r e a t e R E r o u t i n e s a n r e s t o r e c o r r u p t e dd i s k s .N C o p y P r o t e c t i o n !F o b o t h C - 6 4 a n C - 1 2 8G N O M E K I i j u s t $ 3 9 . 9 5 U . S .

D o n ' t f o r g e t G N O M E S P E E D , t h B A S I C 7 . c o m p i l e r . T r a n s f o r mv i r t u a l l y a n B A S I C 7 . p r o g r a m i n t o s u p e r f a s t , s u p e r c o m p a c tm a c h i n e c o d e . O n l y $ 5 9 . 9 5 .

U . S . M a i l O r d e r s :S S o f t w a r e , I n c .P . O . B o 1 2 K u t z t o w n , P 1 9 5 3 0( 2 1 5 ) 6 8 3 - 5 6 9 9

C a n a d i a n M a i l O r d e r s :T h T r a n s a c t o r( 4 1 6 ) 8 7 8 - 8 4 3 8

D e a l e r I n q u i r i e sM i c r o - P a c e , I n

( 2 1 7 ) 3 5 6 - 1 8 8 4

S e O r d e r C a r d

8/7/2019 The Transactor V7 02 1986

http://slidepdf.com/reader/full/the-transactor-v7-02-1986 87/88

L

K

B M A R T Y F R A N Z J O P E T E R

S I N G L E / D U A L N O R M A L C O P I E RC o p i e s d i s k w i t h n e r r o r s i 3 2 . 6 8 s e c o n d s ,d u a l v e r s i o n h a g r a p h i c s m u s i c .S I N G L E / D U A L N I B B L E C O P I E RN i b b l e C o p i e s a d i s k i 3 4 . 9 2 s e c o n d s . D u a lv e r s i o n h a g r a p h i c s m u s i c .S I N G L E / D U A L F I L E C O P I E R

t i m e s n o r m a l D O s p e e d . I n c l u d e s m u l t i - c o p y ,m u l t i - s c r a t c h , v i e w / e d i t B A M , N E S U P E RD O M O D E . I S u p e r D O M o d e , i t r a n s f e r s7 - 1 5 t i m e s n o r m a l s p e e d , c o p i e s 1 5 b l o c k s i 2 s e c o n d s .T R A C K S E C T O R E D I T O RF u l l e d i t i n g o t & i h e x , d e c , a s c i i , b i n . I n c l u d e sm o n i t o r / d i s a s s e m b l e r w i t h p r i n t o u t c o m m a n d s .

G C E D I T O RY e d i s k f a n s , f u l l b l o w n s e c t o r b s e c t o r o t r a c k b t r a c k G C E d i t o r . I n c l u d e s T R U E B i D e n s i t y / T r a c k S c a n .

S U P E R D O F A S T L O A D E R SO v e r 1 5 t i m e s n o r m a l D O s p e e d . S u p e r D O F i l e s a r s t i l l C o m m o d o r e D O c o m p a t i b l e .I m a g i n e l o a d i n g 1 5 b l o c k s i 1 0 s e c o n d s .

S U P E R N I B B L E R /S U P E R D I S K S U R G E O NQ u i t e f r a n k l y , t h e s e w i l l p r o v i d e y o t h e u s e r w i t ht h b a c k u p y o n e e d l E v e n c o p i e s i t s e l f .

$ 2 9 . 9 5 . s P L U S $ 3 . 0 0 S H I P P I N G / H A N D L I N G C H A R G E $ 5 . 0 0 C . O . D . C H A R G E

b ^ P R I S MS O F T W A R E

K I T / 1 5 4 1 i f o a r c h i v a lW d n o c o n d o n e

p i r a c y o a n k i n d .

4 0 L A K E A I D R . , S U I T E W A C O , T E X A S 7 6 7 1 0O R D E R S ( 8 1 7 ) 7 5 7 - 4 0 3 1 T E C H ( 8 1 7 ) 7 5 1 - 0 2 0 0

M A S T E R C A R D V I S A A C C E P T E DS e c e n t e r p a g e f o

m a i l o r d e r c a r d .

8/7/2019 The Transactor V7 02 1986

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

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 ?