the transactor v9 01 1988 sep

84
8/7/2019 The Transactor V9 01 1988 Sep http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 1/84 C 1 2 8 s c r o l l i n g d i r e c t o r y u t i l i t y M u l t i t a s k i n g o t h C 1 2 8 E x p l o r i n g C P / M ' s S U B M I T p r o g r a m T h u l t i m a t e m a c h i n e l a n g u a g e i n p u t r o u t i n e F a s t M s p r i t e r o t a t i o n A C h i n g H e x a g r a m g e n e r a t o r C 6 h e x a d e c i m a l f i l e e d i t o r N o t e s o p r o g r a m m i n g a n d R A e x p a n s i o n u n i t s P r o g r a m m i n g i G E O S P l u s R e v i e w s o t h L t K e r n a l h a r d d r i v e a n d C i n e m a w a r e c a r t r i d g e ; t i p s a n d p r o g r a m s i b i t s ; n e p r o d u c t a n n o u n c

Upload: cubemanpdx

Post on 08-Apr-2018

232 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 1/84

C 1 2 8 s c r o l l i n g d i r e c t o r y u t i l i t y

M u l t i t a s k i n g o t h C 1 2 8E x p l o r i n g C P / M ' s S U B M I T p r o g r a mT h u l t i m a t e m a c h i n e l a n g u a g e i n p u t r o u t i n eF a s t M s p r i t e r o t a t i o nA C h i n g H e x a g r a m g e n e r a t o rC 6 h e x a d e c i m a l f i l e e d i t o rN o t e s o p r o g r a m m i n g a n d R A e x p a n s i o n u n i t sP r o g r a m m i n g i G E O SP l u s R e v i e w s o t h L t K e r n a l h a r d d r i v e a n d C i n e m a w a r ec a r t r i d g e ; t i p s a n d p r o g r a m s i b i t s ; n e p r o d u c t a n n o u n c

Page 2: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 2/84

N o r i f W e s t M U S I CC E N T E R

5 3 N W o l f R d H o u r s — ( v o i c e ) P M o n . - T h u r s . 1 2 : 3 0 -

( 2 H o u r

W w a n t t b < j r C o m m o d o r * N W c a r e s ! ! W

G c p n e p P a r t s

s t i l l s t o w ^ a v a / t a b t e t o s o m e S O O f t J O

O n o K i n d • S u r p l u s M o n t h l y S p e c i a l C l o s e o u t s

6 i e e e t o p a r a l l e l b u f f e r $ 1 9 9 . 0 04 0 2 3 p 1 0 0 c p s r e h a b $ 9 9 . 0 06 4 r a m e x p 8 0 3 2 $ 1 1 0 . 0 0S m i t h C o r o n a D M - 2 0 0 $ 1 7 9 . 9 56 4 0 0 . 8 3 0 0 p . D i a b l o 6 3 0 r i b b o n s $ 4 . 9 5

8 0 2 3 p a n d M P 1 3 6 1 r i b b o n s $ 5 . 5 09 0 9 0 7 . m e r e h a b $ 4 9 5 . 0 04 0 2 3 p r i b b o n s $ 6 . 0 0E v e r e x 2 4 0 0 e x t e r n a l m o d e m $ 2 4 5 . 0 0

• • • • • • • • • • • • 1

N W M ' sI N V E N T O R Y C O N T R O L

S Y S T E M *

■ ■ ■ ■ ■ ■ ■ ■■ ■ ■ ■ ■ ■ ■ ■ ■ ■

■ ■ ■ ■■ : : : :

. s ' R e q u i r e s u s e o s u p e r b a s e

l o a d s p r o g r a m m o d u l e s i l e s s t h a n s e c o n d s( s u p e r b a s e 2 t m a i n m e n u s i s e c o n d s o l e s so s c r e e n p o p - u p c a l c u l a t o r i t r a n s a c t i o nm o d u l e sm o s t d a t a c e n t e r e d f u n c t i o n u s t h c a l c u l a t o rk e y p a dv e r s a t i l e r e p o r t f e a t u r e s a l l o w f o w a y s t o p r i n tt h s a m e r e p o r t . U s e r s e l e c t s t h e f a s t e s t m e t h o db u i l t i s o p h i s t i c a t e d e x p o r t p r o g r a m a l l o w s f o c o m p l e t e p a c k i n g o t h d a t a b a s et y p e a h e a d f e a t u r e a l l o w e dy o u c a n d i s p l a y r e p o r t s o s c r e e na c c e s s t s u p e r b a s e m e n u f o u s e r d e v e l o p e da p p l i c a t i o n s

V e r s i o n 8 0 5 0 $ 3 9 . 9 5V e r s i o n 8 0 5 0 $ 3 9 . 9 5

C - 1 2 8 V e r s i o n 1 5 7 1 $ 2 4 . 9 5B - 1 2 8 V e r s i o n 1 & 8 0 5 0 $ 4 4 . 9 5

B - 1 2 8$ 1 4 5 U . S .

G r e a t6 4 M e m o r y E x p a n s i

u p g r a d e s y o u r C O M M

8 0 0 0 - 9 0 0 0 S O F 9 0 0 0 S u p e r p e t $ 1 9 9 . 0 06 4 e x f o 8 0 3 2 $ 1 1 0O Z D a t a b a s e $ 2 B P G e n e r a l L e d g e r $ 2 B P A c c t s P a y a b l e $ 2 5B P J o C o s t $ 2 5B P A c c t s R e c e i v a b l e $ 2 B P I I n v e n t o r y $ 2

• • • • • • • • • • • • • • • • • aS F 1 0 0 1 M e g a b y t eP R I C E D A T $ 1 4 9 . 9 5 ( U S )$ 1 2 5 w i t h p u r c h a s e o S u p e r p e t

S F D - 1 0 0 1 i t h d r i v e t h a t y o s h o u l d c o n s i d e r w ho v e r m e g a b y t e o d a t a o i t s i n g l e f l o p p y d r i v e .C - 1 2 8 n e e d a I E E E i n t e r f a c e . ) W h s e t t l e f o r s l o ws u b s t a n t i a l l y m o r e p r o g r a m s a n d d a t a . T h i n k h of a c t , i s t o r e s a l m o s t t i m e s m o r e i n f o r m a t i o n t t h e m . A n w h a l a n i n t r o d u c t o r y p r i c e ! A $ 1 6 9 . 9 5t h i d e n t i c a l f o r m a t o C B 8 2 5 0 d r i v e , o n o

Page 3: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 3/84

W h a t ' sG - L i n k ?

G l a d y o a s k e d .

G - L i n k i a i n t e r f a c e t h a t l e t s y o e x p a n d y o u r 6 t a i n c r e d i b l y p o w e r f u l s y s t e m b l e t t i n g y o c o n n e c t a l o C o m m o d o r e ' s i e e e d i s k d r i v e s a n p e r i p h e r a l s . W i t h t h G - L i n k ,y o c a n u s e d e v i c e s f r o m t h f a s t , r e l i a b l e 4 0 4 0 d u a l d r i v e t t h e h i g h - s t o r a g e s f d - 1 0 0 s i n g l e d r i v e i j u s t t h s a m e w a y a y o u u s e y o u r 1 5 4 1 . Y o c a s w i t c h b e t w e e n t h s e r i a l d e v i c e sy o u ' r e u s i n g n o a n t h G - L i n k s u p p o r t e d i e e e d e v i c e s w i t ht h f l i c k o s w i t c h . A n t h G - L i n k i t r a n s p a r e n t , m e a n i n g i w o n ' t i n t e r f e r e w i t h t h e o p e r a t i o n o m o s t s o f t w a r e : a f a a y o u r c o m p u t e r i c o n c e r n e d , y o u ' r e j u s t u s i n g s u p e r - f a s t 1 5 4 1d r i v e !

I y o u ' r e r e a d y t u p g r a d e y o u r s y s t e m , o y o u h a v e s o m e I E E Ee q u i p m e n t y o u w a n t t c o n n e c t ( w h i c h i n c l u d e s p r i n t e r s ,p l o t t e r s a n a l k i n d s o s c i e n t i f i c i n s t r u m e n t s ) , c o n s i d e r t h i n e x p e n s i v e G - L i n k . O r d e r f r o m t h c a r d i t h c e n t r e f o l d .

• CpD A V E T A

4 4 0 0 N . B i g

F L A C 6 r e p a i r1 5 4 1C 1 2 8 r e p a i r1 5 7 1 r e p a i rS X 6 4 r e p a i r

M I S C EC 6 4 p o w e r s uC 1 2 8 p o w e rC 6 4 p o w e r s S X 6 4 t r a n s f C 6 D i a g n o s C 1 2 8 D i a g n o 1 5 4 1 D i a g n o sD i a g n o s t i c i a

• C A L L F O R C

A l p r i c e s F . O . Bc h a n g e w i t h o u ts a l e s t a x . A l s a lr a n t y . e x c e p t I r e p a i r s d n o ir e t u r n s h i p p i n g ,c h a r g e s .

9

U N L E A S H T H E D A T A A C Q U I S I T I O N A N C O N T R O L P O W E R O Y O U R C O M M O D O R E C 6 O C 1 2 8 .W h a v e t h a n s w e r s t a l y o u r c o n t r o l n e e d s .

N E W ! 8 0 - L I N E S I M P L I F I E DD I G I T A L I / B O A R D

C r e a t e y o u r o w a u t o s t a r t d e d i c a t e dc o n t r o l l e r w i t h o u t r e l y i n g o d i s k d r i v e .

S o c k e t f o s t a n d a r d R O c a r t r i d g e .4 s e p a r a t e b u f f e r e d d i g i t a l o u t p u t l i n e s c a

e a c h d i r e c t l y s w i t c h 5 v o l t s a 5 0 m A 4 s e p a r a t e d i g i t a l i n p u t l i n e s . ( T T L ) .I / l i n e s c o n t r o l l e d t h r o u g h s i m p l e m e m o r y

O U O R I G I N A L U L T I M A T EI N T E R F A C E

• U n i v e r s a l l y a p p l i c a b l e d u a l 6 5 2 2 V e r s a t i l eI n t e r f a c e A d a p t e r ( V I A ) b o a r d .I n d u s t r i a l c o n t r o l a n m o n i t o r i n g . G r e a t f o

l a b o r a t o r y d a t a a c q u i s i t i o n a n i n s t r u m e n t a t i o na p p l i c a t i o n s .I n t e l l i g e n t l y c o n t r o l a l m o s t a n d e v i c e .P e r f o r m a u t o m a t e d t e s t i n g .

S E R I P R O G

S Y M B O L M A S B O L I C D I S A S S l i k e t h e x p e r t s !y o u r n e e d s ! D i u n d o c / 6 5 C 0 2 / 8 5 i n t o b e a u t i f u l s f i l e s t o d i s k f u l l yP A L , C B M , D e P a n t h e r a s s e m b l ee d i t i n g . I n c l u d e sm o d e v e r s i o n s .e x t r e m e l y f a s t . 6a n b e s t i n o A d v a n c e d a n d s n u m e r o u s t d U S A .C 6 S O U R C E

Page 4: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 4/84

V o l u m e 9 I s s u e

P u b l i s h e rR i c h a r d E v e r s

E d i t o r sM a l c o l m O ' B r i e n

N i c k S u l l i v a nC h r i s Z a m a r a

E d i t o r i a l A s s i s t a n tM o y a D r u m m o n d

C u s t o m e r S e r v i c eR e n a n n e T u r n e r

A c c o u n t i n gD o n n a E v e r s

C o n t r i b u t i n g W r i t e r sI a A d a m

J a c k B e d a r dB i l l B r i e r

J i B u t t e r f i e l dD o C u r r i e

J i F r o s tM i k l o s G a r a m s z e g h y

E r i c G i g u e r eD a v i d G o d s h a l lT h o m a s G u r l e y

A d a m H e r s tD J M o r r i s sG a r y K i z i a k

B o K o d a d e kF r a n c i s K o s t e l i aK e a t h M i l l i g a n

T r a n s a c t o T h M a g a z i n e f o C o m m o d o r e P r o g r a

S c r o l l D i r l 2 8b M i k l o s G a r a m s z e g h yT h u l t i m a t e d i r e c t o r y u t i l i t y s c r o l l u a n d o w n t h r o u g h y o u r f t e x t , a n s c r a t c h f i l e s w i t h o u t t y p i n g

M u l t i t a s k i n g o t h C o m m o d o r e 1 2 b M i k e M o h i l oR u u t f o u r p r o g r a m s s i m u l t a n e o u s l y , o r s w i t c h b e t w e e n t a s k s it h b a c k g r o u n d !

E x p l o r i n g S U B M I Tb A d a m H e r s tA d a m ' s l o o k a o n o t h m o s t u s e f u l t o o l s i C P / M P l u s g o e s f a d

M a c h i n e L a n g u a g e I n p u t R o u t i n eb G a r r y K i z i a kT h b u l l e t - p r o o f , a l l - p u r p o s e , h i g h - p e r f o r m a n c e , c o n f i g u r a b l e , e a s y - t

S p r i t e R o t a t i o nb J i F r o s t

s u p e r - f a s t M i m p l e m e n t a t i o n o f T r a n s a c t o r ' s " s p r i t e r o t a t e " b

S t r u c t u r e d D A T A a n S e e d i n g R N b y A u d r y s V i l k a sS o m e t h i n g c o m p l e t e l y d i f f e r e n t : C h i n g , y i a n y a n g , H e x a g r a m s r a n d o m n u m b e r s

C 6 H e F i l e E d i t o rb B o K o d a d e kE d i t d i s k f i l e s i m e m o r y , m a c h i n e l a n g u a g e m o n i t o r - s t y l e

Page 5: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 5/84

D e p a r t m e n t s a n C o l u m n sL e t t e r s

B i t s 1 G - L i n k o n n e w e r c o m p u t e r sS e l f - S a v eF i n d J o yH o o k , L i n e a n S i n g e rE a s y 1 2 K e F i

N e w s B R C 1 2 8 d e v e l o p e r ' s p a c k a g eM y s t i c J i m ' s s t u f f1 9 8 8 C o m m o d o r e C o m p u t e r f e s tC o m p u t e r S a v eM i c r o D e t e c t i v e p r o f e s s i o n a l d e b u g g e rS u p e r 8 U t i l i t i e s f o r t h e C 6

P O K E P o s e r F i g u r e d O u D a t a C h e c k e r 6 4L a t e N i g h t T R e - B o o t i n g G E O S 1 2 N e v e r - n e v e r l a n d 1 2 8 D

C 1 2 8 c o m p l e t e b o o k k e e p i n g s y s t e mR o m j e t c u s t o m c a r t r i d g e u p d a t eS u p e r b o o t f o r C 1 2 8S a t e l l i t e t r a c k i n g p r o g r a mA n a t o m y o t h 4 0 4 0 d i s k d r i v eC P / M S t a r t e r S e f r o m P S o l u t i o n s

7

R e v i e w sL t K e r n a l H a r d D r i v eb B i l l B r i e rS u p e r p o w e r f o r t h e 6 w i t h t h i s f a s t , f e a t u r e - l a d e n h a r d d r i v e s y s t e m

T h 1 3 5 1 M o u s e a n G E O S 1 . G E O S w a n e v e r t h i s e a s y

W a r p S p e e dC i n e m a w a r e ' s m u l t i - p u r p o s e c a r t r i d g e b r i n g s y o f a b e y o n d m e r e i m p u l s e p o w e r . E n g a g e !

6

7

7

(

T r aP u b m o C a n7 6 9C l a P o s t o r ,

T r a w i t hC o mC o mm a r

S e ni n W i l L 4 t h

Q u a L t d . 2 W 7 t i o n V a l l4 8 1 d e r s e r / s S c a ( W / 2 1 9 L a n t e l eT r a nH o l d8 8 3

E d i t p r e ve r e d B I T s h o u1 5 4 s h o uc i a ls h o ut i o n l y

A l T r a nr a n g

Page 6: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 6/84

U s i n g " V E R I F I Z E R "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

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

T h e r e a r t h r e e v e r s i o n s o v e r i f i z e r h e r e : o n e a c h f o t h P E T / C B M , V I C / C 6 4 , a n C 1 2 8 c o m p u t e r s . E n t e r t h e , a p p l i c ab l p r o g r a m a n R U i t I y o g e d a t a o r c h e c k s u m e r r o r ,r e - c h e c k t h p r o g r a m a n 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 yt i m e y o e n t e r p r o g r a m f r o m T r a n s a c t o r . 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 ts p a c e . T h e n t u r n V E R I F I Z E R o w i t h :

S Y 6 3 t e n a b l e t h P E T / C B M v e r s i o n ( o f f : S Y 6 3 7 )S Y 8 2 t e n a b l e t h C 6 4 / V I C v e r s i o n ( o f f : S Y 8 3 1 )S Y 3 0 7 2 , 1 t e n a b l e t h C 1 2 8 v e r s i o n ( o f f : S Y 3 0 7 2 , 0 )

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 e a n w i l l a p p e a r a g r a p h i c s c h a r a c t e r s u n l e s s y o a r i u p p e r / l o w e r c a s e m o d e ( p r e s 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 ee d i t e d t h a t l i n e a t h l a s t m i n u t e , c h a n g i n g 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 yo R E s t a t e m e n t s .

" w e i g h t e d c h e c k s u m t e c h n i q u e " t h a r d e n o u g h : t r a n s p o s i n g t w s e t sd u c e t h s a m e r e p o r t c o d e , b u t h i F I Z E R c o u l d h a v e b e e n d e s i g n e d t r e p o r t c o d e s w o u l d n e e d t b l o nm o r e t r o u b l e t h a n c h e c k i n g t h p r i g n o r e s s p a c e s s y o m a a d o 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 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 ea f f e c t t h V E R I F I Z E R r e p o r t c o d e .

T e c h n i c a l i n f o : V I C / C 6 4 v e r i f i b u f f e r , s i y o u ' r e u s i n g a d a t a s e t tt i o n s c a n b e d a n g e r o u s t i t h e a l w i t h o t h e r u t i l i t i e s g o e s , V E R I F I Z E Rl e m s s i n c e i w o r k s t h r o u g h t h Bj u m p s t t h e o r i g i n a l d e s t i n a t i o n o W h e n d i s a b l e d , i r e s t o r e s t h l i n k

P E T / C B M V E R I F I Z E R ( B A S I C

C 1 r e m * d a t a l o a d e r f o " v e r i f iL 2 0 c s = 0H 3 f o i = 6 3 4 t 7 5 4 : r e a d a p o D 4 c s = c s + a : n e x tG 5 0 O 6 i c s < > 1 5 5 8 0 t h e n p r i n t " * * J 7 0 r e m s y s 6 3 4A 8 0 e n dI 1 0 0 :O 1 0 0 0 d a t a 7 6 , 1 3 8 , 2 , 1 2 0 ,

Page 7: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 7/84

V I C / C 6 4 V E R I F I Z E R

K 1 r e m * d a t a l o a d e r f o " v e r i f i z e r "J 1 r e v i c / 6 4 v e r s i o nL 2 c s = 0B 3 0 f o r i = 8 2 8 t o 9 5 8 : r e a d a : p o k e i , aD 4 c s = c s + a : n e x tG 5 0 F 6 i c s o l 4 7 5 5 t h e n p r i n t " * * * * * d a t a e r r o r * * * * * " : e n K 7 r e s y 8 2 A 8 e n

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

I E E

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

O 1 0 2 0 d a t a 3 , 2 4 0 , 1 7 , 1 3 3 , 2 5 2 , 1 7 3 , 2 M 1 0 3 0 d a t a 2 5 1 , 1 6 9 , 9 9 , 1 4 1 , 2 3 1 6 9 ,M 1 0 4 0 d a t a 3 3 9 6 , 1 7 3 , 2 5 4 , 1 , 1 3 3 ,D 1 0 5 0 d a t a 0 , 1 6 0 , 0 , 1 8 9 , 0 2 , 2 4 0 ,C 1 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 ,N 1 0 7 0 d a t a 1 3 3 , 9 0 , 3 2 , 1 8 3 , 3 , 1 9 8 , 9 0 O 1 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 ,A 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 ,G 1 1 0 0 d a t a 8 9 4 1 1 5 2 4 , 1 0 5 , 9 7 3 2 J 1 1 1 0 d a t a 1 6 5 , 8 9 7 4 , 7 4 , 7 4 , 7 4 , 2 4 ,E 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 ,M 1 1 3 0 d a t a 3 2 , 2 4 0 , 2 5 5 , 1 0 8 , 2 5 1 ,B 1 1 4 0 d a t a 1 0 1 , 8 9 , 1 3 3 , 8 9 9

0 , 1 6 5 ,

3 , 1 6 53 , 2 0 13 , 1 3 33 , 1 4 1

8 9 , 1 6 22 2 , 2 0 14 1 , 31 6 , 2 4 9

1 6 9 , 1 2 5 5 , 1 6 52 1 0 , 2 5 51 0 5 , 9 2 5 5 , 2

9 1 2

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

K 1 0 0 r e m s a v e M 0 : c l 2 8 v f z . l d r " , 8O 1 1 r e c - 1 2 8 v e r i f i z e rM 1 2 r e b u g s f i x e d : 1 w o r k s i 8 c o l u m n m o d e .D 1 3 r e 2 s y 3 0 7 2 , 0 n o w o r k s .K 1 4 0 r e m . /G 1 5 0 r e m b y j o e l m . r u b i nH 1 6 r e m * d a t a l o a d e r f o " v e r i f i z e r c l 2 8 "I 1 7 r e c o m m o d o r e 1 2 v e r s i o nD 1 8 r e w o r k s i 4 o 8 c o l u m n m o d e ! ! !E 1 9 0 c h = 0G 2 0 f o j = 3 0 7 2 t 3 2 2 0 : r e a d x p o k e j , x : c h = c h + x : n e x tN 2 1 i c h < > 1 8 6 0 2 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 pB 2 2 p r i n t " s y s 3 0 7 2 , 1 t e n a b l e

C 3 7 d a t a 2 5 5 , 1 6 9 , 1 9 3 2 ,O 3 8 d a t a 3 2 2 1 0 , 2 5 5 , 1 6 5 ,O 3 9 d a t a 1 0 5 , 1 9 3 , 3 2 , 2 1 0 , O 4 0 d a t a 7 4 , 7 4 , 7 4 , 2 4 ,O 4 1 d a t a 2 5 5 , 1 6 9 , 1 4 6 , 3 2 ,P 4 2 d a t a 2 4 0 , 2 5 5 , 1 0 8 , 2 5 3 , B 4 3 d a t a 1 0 1 , 2 5 0 , 1 3 3 , 2 5 0 ,

T h S t a n d a r dP r o g r a m G e

I y o t y p e i p r o g r a m s f r o m t h t s a v e y o u r s e l f s o m e w o r k w i t p a g e . S i n c e m a n y p r o g r a m s a r e S I " p r o g r a m g e n e r a t o r " w h i c h( o B A S I C ) p r o g r a m o d i s k , w g e n e r a t o r " p r o g r a m t h a t c o n t a i n sg e n e r a t o r s . J u s t t y p e t h i s i o n c e e v e r y o t h e r p r o g r a m g e n e r a t o r y o

O n c e t h p r o g r a m i t y p e d i (u s u a l w h e n e n t e r i n g i t ) , s a v e i o e v e r y o t y p e i p r o g r a m g e n e rt h s t a n d a r d g e n e r a t o r . L o a d t h t y p e t h l i n e s f r o m t h l i s t i n g a sw i l l i n c l u d e t h g e n e r a t o r c o d e a n

W h e n y o r u t h n e g e n e r a t o r d i s k ( t h e o n d e s c r i b e d i t h r p r o g r a m i j u s t a e a s y w a f o y p r o g r a m o d i s k , u s i n g t h s t a n dp o s a l . A f t e r t h f i l e h a b e e nl o n g e r n e e d e d . T h s t a n d a r d g e k e p t h a n d y f o r f u t u r e p r o g r a m g e n

T h s t a n d a r d g e n e r a t o r l i s t e d h e f r o m n o o ( w h e n n e c e s s a r y ) a l i k e V e r i f i z e r .

M 1 0 r e t r a n s a c t o r s t a n d a r dE 1 1 n $ = " f i l e n a m e " : r e n a mL 1 2 n d = 0 0 0 : s a = 0 0 0 0 0 : c h = 0

Page 8: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 8/84

E v o l u t i o n i t h E i g h t - B i t W o r l d

F i r s t , b r i e f n o t e : n o y o h a v e n ' t m i s s e d a n i s s u e , t h i s o n r a l l y i a b o u t t w o m o n t h s l a t e . T h a t ' s p r e t t y l a t e f o b m o n t h l y m a g a z i n e , a n i c e r t a i n l y d o e s n ' t d m u c h t i n s t i l lc o n f i d e n c e i r e a d e r s a n a d v e r t i s e r s ( b o t h c u r r e n t a n p o t e nt i a l ) . W t h o u g h t w e ' d l e y o k n o w w h a t ' s g o i n g o n a n w h y o c a b e l i e v e u w h e n w s a w e ' r e b a c k o t r a c k n o w .

P r o d u c t i o n - w i s e , w n o h a v e s c h e d u l e t h a t g u a r a n t e e s t h a tm a g a z i n e g e t s p r o d u c e d i 5 d a y s , b a r r i n g u n f o r s e e a b l e

c a t a s t r o p h e s o b i b l i c a l p r o p o r t i o n s . T h i s i s s u e r e m a i n e d u n p r i n t e d f o s l o n g d u t f i n a n c i a l d i f f i c u l t i e s w i t h i n t h c o p a n y ( r e a d : n o e n o u g h m o n e y ) t h a t h a v e s i n c e b e e n c l e a r e du w i t h a i n f l u x o c a p i t a l a n b u s i n e s s k n o w - h o w . O u s p r e a d s h e e t s h o w s g o o d n e w s a h e a d , s o t h r e l i a b l e p r o d u ct i o n s c h e d u l e i b a c k e d b f i n a n c i a l l y s t a b l e c o m p a n y .N e w s s t a n d c i r c u l a t i o n h a j u s t i n c r e a s e d a g a i n a w a p p e a ro t h s h e l v e s i W a l d e n b o o k s i t h e U . S . , s t h 8 - b i t T r a n sa c t o r i s t i l l g r o w i n g e v e n a t h 1 6 - b i t c o m p u t e r s i n c r e a s et h e i r p r e s e n c e i t h m a r k e t .

E n o u g h t a l k o t h r e a l w o r l d : w t a k e y o n o t t h o r i g in a l l y s c h e d u l e d e d i t o r i a l f o t h i s i s s u e .

s u b w a y s t o p , m e r c h a n d i s i n g , s t r i cl o n g h a u l , 9 p e c e n t 8 - b i t , 1 0 pI ' s t a r t i n g t o l e a r n t h r o p e s a r op u S e r v e . I t ' s s t r a n g e e n v i r o n m e n

T h c h a n g e s y o w i l l e x p e r i e n c eF o r o n e t h i n g , w e ' r e g o i n g t W e ' v e h a l e t t e r s r e q u e s t i n g i a n t s e a r t i c l e s o G E O S p r o g r a m m F o t h m a n y p e o p l e w h o ' v e r e qh a v e t w o i t h i s i s s u e o n f o t h a n a n o t h e r t h a t i p e r h a p s t h e u lr o u t i n e s .

W e ' l l a l s o b f e a t u r i n g a r t i c l e s wt h e m e . T h e s e w i l l b c o n c e r n e d w t e c o n s i d e r e d t b e b e y o n d t h c h i n e s . F o s a m p l e o w h a t mK e r n a l a r t i c l e i t h i s i s s u e .

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

Page 9: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 9/84

I t ' s a b o u t t i m e : T h i s i a r e p l y t l e t t e r p u b l i s h e d i T r a n sa c t o r ( " C l o c k S e t t i n g " , L e t t e r s , V o l u m e 8 I s s u e 5 ) w h e r er e a d e r D a v i d K u h n b r i e f l y d e s c r i b e s h i c o m p u t e r i z e d l i g h ta n a u t o m a t i c s p r i n k l i n g s y s t e m c o n t r o l l e r a n q u e r i e sw h e t h e r t h C 1 2 8 c a r e a d a e x t e r n a l r e a l t i m e c l o c k t r e s e ti t i n t e r n a l c l o c k s f o l l o w i n g p o w e r f a i l u r e .

A e x c e l l e n t p r o d u c t , w h i c h s h o u l d d e x a c t l y w h a t t h r e a d e r( a n d m a n y o t h e r s ) r e q u i r e s , i t h M o d e l C C S Z C a r t r i d g e f r o mJ a s o n - R a n h e i m , 1 8 0 5 I n d u s t r i a l D r i v e , A u b u r n , C a l i f o r n i a ,U S 9 5 6 0 3 . T h e i r p h o n e n u m b e r s a r ( 8 0 0 ) 4 2 1 - 7 7 3 1 a n d( 9 1 6 ) 8 2 3 - 3 2 8 4 . T h e i r p r i c e i $ 4 9 . 9 5 ( U S ) , p l u s s h i p p i n g .

T h C C S Z n o o n l y i n c l u d e s a b a t t e r y - b a c k e d C l o c k C a l e nd a r , b u 8 o f b a t t e r y - b a c k e d R A a n a m o d i f i e d o p e r a t i n gs y s t e m i R O t s u p p o r t t h f e a t u r e s . T h C C S Z c a a u t om a t i c a l l y d o w n l o a d a n d r u n a p r o g r a m w h e n p o w e r r e s u m e sf o l l o w i n g a o u t a g e , a n d e v e n m a i n t a i n s a p o w e r - o f f / p o w e r - o nl o i R A M . M o r e o v e r , t h c a r t r i d g e , w h i c h w o r k s i b o t h t h

r e n t l y i s t i l l o n l y $ 1 1 9 . 0 0 ( U S ) ,p r o g r a m d i s k . S h i p p i n g t U S a d p r i c e . F o s h i p p i n g t C a n a d a a d o t h e r c o u n t r i e s .

S t e v e n C S c h n e d l e rS c h n e d l e r S y s t e m s2 E a s t w o o d R d P . O . B o 5 9 6 4A s h e v i l l e , N 2 8 8 1 3( 7 0 4 ) 2 7 4 - 4 6 4 6

T i m e b a c k e d - u p : T h p r o b l e m t h at h e L e t t e r s c o l u m n o V o l u m e 8 I r e l a t i n g t o p r e v i o u s a r t i c l e i T r a 6 J e a n D e R o s i e r s , t h e a u t h o r o i n t e r f a c e d v a r i o u s h a r d w a r e p r or i t y / c o n t r o l l e r r u b V I C - 2 0 . A m b a t t e r y b a c k - u p i c a s e o p o w e r

Page 10: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 10/84

A n o t h e r M / a f i c i o n a d o : I r e c e n t l e t t e r t y o u r m a g a z i n e ,B o T i s c h e r e x p r e s s e d h i s i n t e r e s t i " C o n t i n u i n g E d u c a t i o nC o u r s e " i 6 5 0 2 a s s e m b l y l a n g u a g e . t h o u g h t i w a g r e a ti d e a , a n i a e f f o r t t o l e y o k n o w t h a t t h e r e a r e c e r t a i n l yo t h e r s w h w o u l d a p p r e c i a t e s u c h c o u r s e , w r i t e t h i s l e t t e r .

R o b e r t G a l l a n tC o r n e r B r o o k , N e w f o u n d l a n d

R e v v i n g u t a u t o s t a r t : a w r i t i n g t a n s w e r P a t r i c k G D e m e t s ' q u e s t i o n a b o u t b u i l d i n g h i o w c a r t r i d g e i t h a r t ic l e n t i t l e d " M E P R O M B u r n e r " . H f o u n d t h a t b a n a l y zi n c a r t r i d g e e n t i t l e d " V i s i b l e S o l a r S y s t e m " , t h a d d r e s s e s$ 8 0 0 4 t $ 8 0 0 8 d i d n o t c o n t a i n t h c o d e " C B M 8 0 " , w h i c h h h a e x p e c t e d t f i n d .

U n d e r n o r m a l c i r c u m s t a n c e s , w h e n t h c o m p u t e r i t u r n e d o n i c h e c k s t h l o c a t i o n m e n t i o n e d f o r t h e s p e c i f i c c o d e a b o v e . I t h c o d e d o e s e x i s t , i w i l l b e g i n e x e c u t i n g t h M p r o g r a mp o i n t e d t b t h e v e c t o r a $ 8 0 0 0 / $ 8 0 0 1 , a n t h p r o g r a mp o i n t e d t b t h $ 8 0 0 2 / $ 8 0 0 3 v e c t o r w i l l b t h w a r m s t a r tp r o c e d u r e . I t h c o d e i n o t p r e s e n t i l o c a t i o n s $ 8 0 0 4 t $ 8 0 0 8 , h o w e v e r , c o n t r o l i g i v e n t t h p r o g r a m p o i n t e d t b t h e v e c t o r a $ a 0 0 0 / $ a 0 0 1 , a n t h w a r m s t a r t i p o i n t e d t b $ a 0 0 2 t $ a 0 0 3 . L o c a t i o n s $ a 0 0 4 t $ a 0 0 8 n e e d n o c o n t a i nt h c o d e C B M 8 0 . A a u t o s t a r t c a r t r i d g e a d d r e s s e d f o $ a 0 0 0t $ b f f f w i l l r e p l a c e B A S I C .

T h a b o v e p r o c e d u r e i t h c o m m o n m e t h o d o c a r t r i d g e d s i g n . I t m o d e o o p e r a t i o n i q u i t e s i m p l e . O p o w e r - u p , t h 6 5 1 0 m i c r o p r o c e s s o r j u m p s t t h M p r o g r a m p o i n t e d t b $ f f f c / $ f f f d . T h i s p r o g r a m h a m a n y t a s k s , i n c l u d i n g t e s t i n g f o a a u t o s t a r t c a r t r i d g e .

M r D e m e t s m e n t i o n s t h a t a l o t h J M P ' s a n J S R ' s a r t a r -g e t t e d a l o c a t i o n s b e g i n n i n g w i t h $ e T h 6 h a s a t h i r d a d r e s s r a n g e f o c a r t r i d g e s . T h i s i $ e 0 0 0 t $ f f f f . E v i d e n t l y ,M r . D e m e t s ' c a r t r i d g e o c c u p i e d t h i s r a n g e a l o n g w i t h $ 8 0 0 0 t $ 9 f f f ( p e r h a p s e v e n $ a 0 0 0 t $ b f f f ) . T h a u t o s t a r t p r o g r a mp o i n t e d t b l o c a t i o n s $ f f f c t o $ f f f d i l o c a t e d a $ f c e 2 . H o e v e r , c a r t r i d g e w i t h t h a d d r e s s r a n g e $ e 0 0 0 t $ f f f f w i l l r ep l a c e t h c o m p u t e r s o w n m e m o r y a t t h i s l o c a t i o n . T h e r e f o r e ,t h e r e w i l l b n e s t a r t u p v e c t o r a $ f f f c / $ f f f d ( n o t t m e n t i o n

n e N M a $ f f f a / $ f f f b a n n e I R Q / B R K v e c t o r a $ f f -

f o a b o u t o n y e a r s o f a r , a n j u s s u e s . )

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

A a n n o t a t e d l i s t o t h b e s t b o o kb t w i c e y e a r , p l u s o n g o i n g r e w o u l d b g r e a t . B u e v e n j u s tw i t h o n l i n e o e v a l u a t i o n f o r e h o p e y o u w i l l f i n d i f e a s i b l el i n e s .

I t h m e a n t i m e , w o n d e r i y M b o o k s , e i t h e r C 6 s p e c i f i c ,l o f r o m T r a n s a c t o r a r t i c l e s , a n C O M P U T E ! " M a p p i n g . . . " a n l o o k i n g f o i s s a y , t h e q u i v a l e nb o o k s , f o M p r o g r a m m i n g . h

J a m e s G V a r g i uA t l a n t a , G e o r g i a

S o u n d s l i k e y o a l r e a d y h a v e aJ i B u t t e r f i e l d ' s b o o k i a e x c el a n g u a g e p r o g r a m m i n g , a n M aa l s o v e r y u s e f u l . I y o u 7 r l o o k e n c e m a t e r i a l , y o m i g h t a l s o b C o m m o d o r e I n n e r S p a c e A n t h o v e r y r e p u t a b l e C a n a d i a n c o m pT r a n s a c t o r , s t r a n g e l y e n o u g h ) .

f o l o n g t i m e n o w , l o n g e n o C 1 2 8 , b u i t ' s s t i l l g o l d m i n e o t h o t h e r 8 - b i t C o m m o d o r e m a c h

w e l l , h o a b o u t i r e a d e r s ? Ww h y ?

A T o g e t h e r N o w : w o u l d l i k w a t u s t h 7 , 0 0 0 , 0 0 0 + C o m m I t i s b u s i n g t h e m f o p a r a l l e l

Page 11: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 11/84

I t h s e a r c h f o n u m e r i c a l e x a m p l e s w e r e p r o g r a m m e d f o t h C o m m o d o r e m a c h i n e s , i i e a s y t s e t h a t r u n n i n g t h p r o bl e m o n m a n y m a c h i n e s w o u l d g i v e t h e q u i v a l e n t o d a y s o t i m e o l a r g e I B M , A m d a h l , C r a y , e t c . m a c h i n e s . S u p p o s e 1 0 C o m m o d o r e c o m p u t e r s d e v o t e d 1 0 0 h o u r s i m o n t h s ( l e s st h a n f o u r h o u r s w e e k e n d ) t t h p r o b l e m . T h a t i 1 0 , 0 0 0h o u r s o r w i t h a i m p r o v e d s p e e d f a c t o r o 1 , 0 0 0 f o m a i nf r a m e s , 1 h o u r s o e q u i v a l e n t m a i n f r a m e t i m e f o r t h a t s i xm o n t h p e r i o d .

B i n c r e a s i n g t h n u m b e r o C o m m o d o r e 6 a n 1 2 c o m p u te r w o r k i n g o t h e p r o j e c t o b i n c r e a s i n g t h n u m b e r o h o u r s w o r k e d p e m a c h i n e , a n s p e e d f a c t o r c a n b e d w a r f e da n m a n y d a y s o e q u i v a l e n t m a i n f r a m e t i m e c a n b e o b t a i n e d .

w o u l d n o b s u r p r i s e d t l e a r n o C o m m o d o r e c o m p u t e r st h a t c a n b e m a d e a v a i l a b l e f o r 1 0 h o u r s a w e e k . W i t h 1 0 s u c h m a c h i n e s , w c o u l d h a v e t e h o u r s o e q u i v a l e n t m a i nf r a m e t i m e p e w e e k .

T h s p e c i f i c t a s k p r o p o s e d c a b s e p a r a t e d i n t o s m a l l e r t a s k s .U s i n g 6 t p o w e r s a a i l l u s t r a t i o n , o n c o m p u t e r c a n l o o k a s u m m i n g f r o m t 1 0 a s i x t h p o w e r , s e c o n d a 1 0 t 1 2 0 , t h i r d a 1 2 t 1 4 0 , a n s o f o r s u i t a b l e d i v i s i o n sw h i c h w i l l l e a d t a p p r o x i m a t e l y e q u a l t i m e t c o m p l e t e . I a d d i t i o n , s e a r c h f o r a d d i t i o n a l c o u n t e r e x a m p l e s t E u l e r ' sc o n j e c t u r e m u s t b m a d e f o s e v e n t h p o w e r s , e i g h t h p o w e r s ,e t c . I w i l l n o b d i f f i c u l t t o s e t u s e a r c h l i s t s f o 1 0 c o p u t e r s .

O t h e r t a s k s s c a n b t a c k l e d i s i m i l a r m a n n e r . h a v e b e e n i t o u c h w i t h t w e m i n e n t m a t h e m a t i c i a n s , D r s . D a n i e l S h a n k sa n d J o h n W . W r e n c h J r . , w h a r a m o n g t h o s e w h c a s u g e s t o t h e r r e a s o n a b l e p r o j e c t s . I P r o j e c t # 1 c a n b e s t a r t e d ,a c e r t a i n t h a t s u g g e s t i o n s f o o t h e r w o r k w i l l b e f o r t h c o mi n g .

T g e s u c h a c o - o p e r a t i v e e f f o r t o f t h g r o u n d , s e v e r a l s t e p sa r n e e d e d . O n i t f i n d 6 5 0 2 m a c h i n e l a n g u a g e p r o g r a mm e r s w h w i l l w r i t e e f f i c i e n t c o d e t o t a c k l e t h e p r o b l e m s .s e c o n d s t e p i t f i n d a o v e r a l l p r o j e c t m a n a g e r , a n d , p r o b a b l y

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

c a s e s " n f o u n d " .

V e r y i n t e r e s t i n g i d e a , V i n c e n t , t h o a m o u n t o o r g a n i z a t i o n i w o u l dc u l t y , o n c e t h c o d e w a w r i t t e n wc u l t i t h c a s e o t h E u l e r p r o j e c o f r a n g e s t i n d i v i d u a l s i s u c h w n o o v e r l a p p i n g c o v e r a g e . T h e p r oa n d , a w i t h a l b u r e a u c r a t i c p r o b t b e t i m e - c o n s u m i n g . P e r h a p s a s u b s c r i b e r s w o u l d b t h b e s t v e h i

j e c t , a s o m e k i n d o r a p i d , c e n t r a i t w o u l d p r o b a b l y b e r e q u i s i t e i l a p s e u n d e r i t o w w e i g h t . B t h r e m " w a r e c e n t l y p r o v e d ( w i t h t h ee n d i n g a l a s t c o u p l e o c e n t u r a m a z i n g t h a t b o t h i a n t h f o u r d i s p o s e d o i t h l a s t t e y e a r s .b u g . D k e e p u i n f o r m e d . W h o p a s t i c r e s p o n s e .

L T h B i b l e : I n a o l T r a n s a s u 1 m a g a z i n e , t h e r e i a i t e m ct h N e T e s t a m e n t . W a t h i s p r o j c a o b t a i n o r p u r c h a s e a v e r s i o no I B M / X T ?

h a v e a n o t h e r q u e s t i o n I ' l i k e t o b u i l d i n g a i n t e r f a c e f o t r u e R S - p r i n t e r ? C a s u c h a d e v i c e b e p u r m l e t t e r - q u a l i t y C o m m o d o r e p r i n t

G a r t h U s i c kR e g i n a , S a s k a t c h e w a n

W e l l , G a r t h , i t h e r e i s u c h a i n t e t i c e . H o w e v e r , t h e r e w a ( i s ? ) a i C B s e r i a l b u p r i n t e r t t h I B p o r t . W s e e m t r e m e m b e r i a a c a B B u s e r h e r e i T o r o n t o p u rp r e s s e d h i s a t i s f a c t i o n w i t h b o t hP e r h a p s o u r e a d e r s c a p r o v i d et e x t i n o a v a i l a b l e o C o m m o d ot h r e c e n t a d w e ' v e s e e n s i n c e r er e a l l y d o n ' t k n o w i t h i s i p r o d u c V o l u m e 7 I s s u e 1

Page 12: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 12/84

Y o u r m a g a z i n e c o m e s o u o t o i t h C o m m o d o r e w o r l dw h e n i c o m e s t g o o d s o l i d i n f o r m a t i o n . K e e p u t h g o o dw o r k !

A m i r M i c h a i lW i l l o w d a l e , O n t a r i o

G E O S u s e s R E U s t l i m i t e d e x t e n t . T h a n t i c i p a t e d G E O Su p g r a d e w i l l a l m o s t c e r t a i n l y u s i t g r e a t e r a d v a n t a g e . P p e r c l i p I I u s e s t h R E f o s p e l l c h e c k i n g a n B i g B l u e R e a de r u s e s i t b u f f e r f i l e t r a n s f e r s . M o s t s o f t w a r e n e e d s t b r e w r i t t e n t u s t h R E a l t h o u g h s o m e o t h m o r e " w e l l -b e h a v e d " o n e s w o r k w i t h R A M D O S . D i s p a r a t e d a t a s t o r a g em e t h o d s r a i s e t h e c o m p a t i b i l i t y q u e s t i o n . C h e c k o u " O t h S i d e " i n t h i s i s s u e f o t i p s o u s i n g t h R E w i t h P o w e r C

R E U s a n C o p y r i g h t s : A c c o r d i n g t t h e i n t r o d u c t i o n t D a l eC a s t e l l o ' s a r t i c l e o R A E x p a n s i o n C a r t r i d g e s i t h V o l u m e8 I s s u e 2 t h 1 7 0 0 a n d 1 7 5 0 R A M s w o r k w i t h t h C 6 4 .( T h e r e w a a l s o a a r t i c l e i T P U G M a g a z i n e , I s s u e 2 2 b T i G r a n t h a m , w h e r e h s t a t e d t h a t C o m m o d o r e C a n a d a h a a s s u r e d h i t h a t t h 1 7 5 0 w o u l d w o r k w i t h t h C 6 4 . ) I t h r v e r s e t r u e , t o o ? I ' s o o n g o i n g t b m o v i n g u t t h 1 2 a n i m 1 7 6 4 R A w i l l w o r k w i t h i t w o u l d l i k e t s t a yw i t h i f o n o w . C u s t o m e r S e r v i c e a W e s t C h e s t e r s a y s i w o n ' t w o r k , b u t t h e n t h e y w a n t t s e l l m o r e 1 7 5 0 s , d o n ' t t h e y .

A l s o , h a v e a n o y o u r h a r d w a r e h a c k e r s c o m e u w i t h a b a t e r y - b a c k e d s y s t e m f o t h 1 7 x x R A M s s o t h e y w i l l r e t a i nt h e i r m e m o r y w h e n t h s y s t e m h a b e e n p o w e r e d d o w n ( o a r e n ' t t h e y t h r i g h t k i n d o R A c h i p s t d t h i s w i t h ) ?

N o f o a n o t h e r q u e r y . W i t h a l t h d i s c u s s i o n a b o u t c o p yr i g h t s i n t h a n o t h e r m a g a z i n e s , I ' c u r i o u s a b o u t a a r t ic l s a i B r i t i s h m a g a z i n e , C o m m o d o r e C o m p u t i n g I n t e rn a t i o n a l ' s J a n u a r y 1 9 8 8 i s s u e . T h a r t i c l e s e e m s t b w o r df o w o r d d u p l i c a t i o n , i n c l u d i n g t h e c o m p a r i s o n t a b l e s , o M i k eG a r a m s z e g h y ' s r e v i e w o t h 1 5 8 1 d i s k d r i v e i t h ( V o l u m e8 I s s u e 3 ) T h a c c o m p a n y i n g p r o g r a m a n d p a r a g r a p h d s c r i b i n g i w e r e d e l e t e d , b u t h e e d i t o r s s e e m t h a v e m i s s e da e a r l i e r r e f e r e n c e t o t h e p r o g r a m i t h b o d y o t h t e x t . T h a r t i c l e i c r e d i t e d t M r G a r a m s z e g h y , b u t h e r e ' s n m e n t i o no t h T T h m a g a z i n e a l s o h a n c o p y r i g h t n o t i c e w i t h t h e i rm a s t h e a d , a y o d o

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

A n s w e r s , a n y o n e ? : r e c e n t l y p $ 1 i c l o s e o u t . I w o r k s f i ns w i t c h f l i p p e d t J b u c a n ' tt r a c k b a l l , o t h e r t h a n m e s s u p t s a r y t r e a d i w i t h i n t e r r u p t s d i r e w i r e d a 1 3 5 1 m o u s e ? c a n ' i a n o t h e A t a r i l i t e r a t u r e .

S e c o n d l y , d o e s a n y o n e h a v e wv e r s i o n o P o w e r ? T h a t ' s t h t o i n t e g e r s . ( h a v e t h S p i n n a k ev e r s i o n w o r k s f i n e , b u t h C 1 v a l u e s , b a s e d o t h f r a c t i o n a l pP r o - L i n e , b u t t h a n s w e r g o w a

T h i r d l y , i t h e r e v e r s i o n o B u d s u 4 t h a t d o e s m a c r o s , i t h s eT h S p i n n a k e r P o w e r A s s e m b l e r p r o g r a m , h a u t t h r e e u s e r -t h r e e p r e - d e f i n e d m u l t i - i n s t r u c t i i n l i k e t h u s u a l d e f i n i t i o n o u s e r - d e f i n e d p s e u d o o p - c o d e s ,c h i n e l a n g u a g e , w i t h t h i n g sp u t ' b y t e " , o w h a t e v e r . U s u a l l yt h i n g l i k e :

m o v d . m a cl d a ? ls t a ? 2I d ? 1 + 1s t ? 2 + l. e n d m a c

m o v d a d r l , a d r 2

w h e r e t h s y n t a x c a v a r y a b i M a y b e I ' s p l i t t i n g h a i r s , s i n c ei i n c l u d e d w i t h m o s t F O R T H sb l e r .

Page 13: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 13/84

( ,

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

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

C 6 B i t sG - L i n k o n N e w e r C o m p u t e r s

F o a l o y o u G - L i n k u s e r s : o u f a v o u r i t e I E E E i n t e r f a c e c a b e u s e d w i t h t h 6 4 ( e v e n t h o u g h R 4 d o e s n o a p p e a r o t h a t b o a r d ) . S i m p l y a t t a c h t h e l e a d o t h G - L i n k t p i 2 o t h 6 5 1 0 i y o u r 6 4 a n y o u ' r e i b u s i n e s s .

T h o s e o y o w h w i s h t u s t h G - L i n k o n C 1 2 8 s h o u l da t t a c h t h l e a d t p i 2 o t h 8 5 0 2 . F o m o r e i n f o o G L i n k s , p l e a s e r e f e r t t h T r a n s a c t o r M a i l O r d e r s e c t i o n o N e w s B R K .

P O K E P o s e r F i g u r e d O u R a n d y T h o m p s o n , G r e e n s b o r o , N o r t h C a r o l i n a

T h a n s w e r t o V o l . 8 I s s u e 5 ' " F i g u r e T h i s O n O u t ! " i s

p r i n t " * " ; : p o k e 1 2 2 , 0

A f t e r r e a d i n g y o u r c h a l l e n g e , t h a n s w e r w a i m m e d i a t e l y o v i o u s : S i m p l y P O K E a z e r o i n t o t h e l o b y t e o B A S I C ' S T X T P T R( $ 7 A - $ 7 B ) t r e s e t C H R G E T . W h e n u s e d i t h f i r s t l i n e o f b a s i c p r o g r a m , t h i s p o k e a c t s a c r u d e G O T O c o m m a n d .

l e n g t h o t h e d e l e t e c o m m a n d . A f t h i s , r e a l i z e d t h a t s o m e t h i n g h a t

s e l f s a v e i d e s i g n e d t d e l e t eB o n l y t y p i n g s a v e " f i l e n a m e "t h e n S A V E d .

T h " S C r e a t o r " p r o g r a m w i l l c r e" s e l f s a v e " o d i s k . W h e n R U N , b y t e s o M t $ 0 2 A 7 a n 7 b y n e e d s a l o t h s p a c e a $ 0 2 A 7 ( u n a m e i t r a n s f e r r e d t t h a t l o c a t i o n .s t h a t i i n o i t h w a o y o u rw e d g e s i n t o t h s a v e v e c t o r a n s a v i n g i a n o r m a l . T h i s o n l y h a p p 1 a r u s e d a n w o u l d n ' t a f f e c t o t ht o i r e s t o r e d , s y s 6 7 9 w i l l d i r e cy o u w a n t t o d i s a b l e i t t y p e P O K Et h s a v e v e c t o r i b a c k t n o r m a l .

G 1 0 0 p r i n t " * s e l f s a v e b e d w a a lB 1 1 0 n $ = " s e l f s a v e " : p r i n t " c r e a t i n g t L 1 2 0 n d = 2 0 0 : s a = 2 0 4 9 : c h = 1 9 4 7 2

* * f o r l i n e s 1 3 0 - 2 6 0 , s e e t h e s t a n d a r d

A E

1 0 0 01 0 1 0

d a t ad a t a

2 0 3 ,2 0

8 2 0

1 , 0 , 1 5 8 ,2 0 , 2 0 , 2 0 ,

Page 14: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 14/84

R S - 2 3 2 B u s S h e l t e rT h o m a s W G u r l e y , C a n t o n , T e x a s

W h e n t h R S - 2 3 2 c h a n n e l i e i t h e r O P E N e d o C L O S E d , t h K e r n a l e n d s t h e r o u t i n e w i t h C L R . I s e e m s t h a t t h p r o g r a mm e r s a C o m m o d o r e b e l i e v e d t h a t a n y o n e u s i n g t h R S - 2 3 2b u m u s t b s e n i l e a n u n a b l e t d a n y t h i n g f o t h e m s e l v e s .T h a t i w h t h K e r n a l s e t s a s i d e t h e r e c e i v e a n t h t r a n s m i tb u f f e r s , d o e s t h C L ( b e c a u s e m e m o r y w a a f f e c t e d ) a n h o p e f u l l y s e l e c t s t h e c o r r e c t b a u d r a t e f o u s T h f a c t t h a t t h K e r n a l s e t s a s i d e t w b u f f e r s f o r u s b t h R S - 2 3 2 e q u i p m e n ta n c l e a r s a w a y v a r i a b l e s h a s p r e s e n t e d p r o b l e m s t o j u s t a b o u te v e r y p r o g r a m m e r w h h a t d e a l w i t h i t T h e r e i a e a s y f i f o b o t h p r o b l e m s .

T h e l p w i t h t h p r o b l e m m e n t i o n e d b T o n y V a l e r i ( V o l u m e6 I s s u e 2 , p . 4 8 w h e r e i n c o m p i l e d b a s i c p r o g r a m s f a i l w h e nt h R S - 2 3 2 b u i o p e n e d , t h p r o g r a m m e r c a s e a s i d e t h t r a n s m i t a n t h e r e c e i v e b u f f e r s j u s t p r i o r t t h O P E N s t a t em e n t .

1 0 c l o s e 2 r e c l o s e a l w a y s w r i t e s i n t o 2 4 a n 2 5 1 1 p o k e 2 4 8 , x : p o k e 2 5 0 , y

: r e m x = r c v b u f f e r p a g e , y = x m i t b u f f e r p a g e1 2 o p e n 2 , 2 , 2 , c h r $ ( a ) + c h r $ ( b ) + c h r $ ( c ) + c h r $ ( d )

: r e m u s e y o u r u s u a l v a l u e s h e r e

W h e n t h K e r n a l f i n d s n o n - z e r o i 2 4 a n i 2 5 0 , i s k i p so v e r t h e p a r t w h i c h s e t s a s i d e t h e t o o B A S I C m e m o r y f o r t h eb u f f e r s . B e c a u s e t h C L O S E r o u t i n e w r i t e s ' 0 t t h b u f f e rp o i n t e r s , t h p r o g r a m m e r h a t a s s i g n t h e b u f f e r s e v e r y t i m ea f t e r t h C L O S E a n p r i o r t t h O P E N . E v e n s o w h e n t h p r g r a m i c o m p i l e d , t h e r e i n l o n g e r a c o n f l i c t f o r t h t o o m e m o r y . Y o s h o u l d u s s a f e m e m o r y a r e a a b o v e 4 9 1 5 2 f o y o u r b u f f e r s .

O n w o u l d t h i n k t h a t i t h K e r n a l k n o w s w h e n t h p r o g r a mm e h a t a k e n c o n t r o l a n a s s i g n e d t h e b u f f e r s h i m s e l f , i w o u l d r e a l i z e t h a t m e m o r y w a n o c h a n g e d a n d t h e r e f o r e s k i pt h C L R . B u s u c h i n o t h c a s e . F o t h a t , y o w i l l h a v e t c h a n g e t h K e r n a l . I t ' s v e r y e a s y t d o b u t h e s o l u t i o n c a n n o tb e u s e d w i t h e x i s t i n g t e r m i n a l s o f t w a r e .

T h o s e w h w a n t t b u r n t h e i r o w K e r n a l i n t o E P R O M a n w h i n t e n d t w r i t e t h e i r o w t e r m i n a l s o f t w a r e c a t a k e a

O t h o t h e r h a n d , i y o h a v e t p r o g r a m , t h c h a n g e i e a s y a n C L O S E t h R S - 2 3 2 c h a n n e l a n y v a r i a b l e s a n w i t h o u t c l a s h i n g w

B l o w Y o u r S t a c k ?T o n y S u l t a n a , F a r m e r s B r a n c h

E r r o r C h e c k a d d s S t a c k O v e r fb l C B e r r o r s . s t a c k o v e r f l m a n y F O R - N E X T l o o p s o r G O S U Bs t a c k i t o f u l l d u r i n g a E v a l u t i o n ( v e c t o r e d a 7 7 8 - 7 7 9 ) .

B A S I C s t o r e s f o r - n e x t l o o p s a o t h e s t a c k a n i e v a l d a t a t e mo s t o r a g e r e m a i n s a f t e r d e t e r m o p e r a t i n g s y s t e m d i s p l a y s a ' ? e r s u c h a n e r r o r c a a l s o o c c s p a c e i u s e d u p T h i s s h o r t B A S I

s t a c k o v e r f l o w a n r e a l O u o

H e r e ' s t h B A S I C l o a d e r :

M 1 f o x = 6 7 9 t 7 4 7 : r e a d a H 2 i d < > 6 5 7 7 t h e n p r i n t M d a P 3 p r i n t l f e r r o r c h e c k a c t i v a t eG 5 d a t a 1 7 3 , 0 3 1 4 1 , C 6 d a t a 3 , 1 4 1 , 2 0 1 , 2 A 7 d a t a 3 , 1 6 9 , 2 , 1 4 1 ,K 8 d a t a 1 4 1 , 1 6 7 , 2 9 6 , L 9 d a t a 7 6 , 0 0 , 1 3 8 , J 1 0 d a t a 3 , 1 7 0 , 1 7 6 , 2 4 4 , D 1 1 d a t a 3 2 , 3 0 , 1 7 1 , 7 6 , B 1 2 d a t a 6 5 , 6 7 , 7 5 , 3 2 , N 1 3 d a t a 7 0 , 7 6 , 7 9 , 8 7

T h s o u r c e c o d e f o t h s t a c k c h

. o p t l i s t , g e n , n o e r r* o l s t r o u te r r o r

$ 0 2 a 7$ 0 0 0 0$ a b l e$ a 4 6 5

Page 15: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 15/84

j u m p j m p o l o u t m e m t x

t s c p $ 2 b c s t a c k v ; g o t o s t a c k o v e r f l o wt a b c j u m p

s t a c k v I d # $ d dl d # $ 0 2j s s t r o u tj m e r r o r

. b y t e $ 5 3 , $ 5 4 , $ 4 1 , $ 4 3 , $ 4 b , $ 2 0 , $ 4 f , $ 5 . b y t e $ 4 5 , $ 5 2 , $ 4 6 , $ 4 c , $ 4 f , $ 5 7 , $ 0 0 , $ 0

D a t a C h e c k e r 6 P o n t u s L i n d b e r g , V e b e r o d , S w e d e n

T h i s i u s e f u l r o u t i n e f o r c h e c k i n g d a t a s t a t e m e n t s f r o ml o n g l i s t a n a l s o c h e c k s f o a b n o r m a l v a l u e s ( i . e . n o n - i n t e g e r sa n v a l u e s o u t s i d e t h e 0 - 2 5 5 r a n g e ) .

T u s i t L O A D i a n L I S T i t T h e n L O A D t h p r o g r a m t b c h e c k e d . N o c u r s o r u a n h i R E T U R N o e a c h l i n e o D A T AC H E C K E R . N O R U i t

H o l d d o w n t h s p a c e b a t s c r o l l . A n a b n o r m a l v a l u e w i l l b i n d i c a t e d b " e r r o r ! " . N o t e t h a t i y o h a v e t y p e d l o w e rc a s e f o o a u p p e r - c a s e a 0 t h p r o g r a m w i l l e n w i t h a s y n t a x e r r o r w h i c h w i l l s h o w t h l i n e n u m b e r o t h o f e n d i n g d a t a e l e m e n t .

A r e a d b b c = b c + l : r c = r c + l : a = p e e k ( 6 4 ) * 2 5 6 + p e e k ( 6 3 )M i b = - 1 t h e n p r i n t " e n d o f d a t a " : g o t oJ i c h o a t h e n r c 1 c h = aB i b o i n t ( b ) o b < o b > 2 5 5 t h e n c $ = " e r r o r ! "E 5 p r i n t " l i n e : " a " d a t a " b , c $ : c $ = " "M g e t q $ : i q $ = " " t h e nH i q $ = " r " t h e n p r i n t b c ; r cN g o t oJ e n

F i n d J o S t e v e n E C l a r k , P h o e n i x , A r i z o n a

O n o t h e r u s o J O Y I D , w i t h m i n o o f p r o g r a m . I n s t e a d o ' P r e s s a n' P r e s s k e o f i r e b u t t o n t b e g i n '

N l O r e m l o a d e r f o r " j o y i d l "P 2 f o i = 8 2 8 t 9 1 6 : r e a d x c h =A 3 i c h < > 9 5 3 6 t h e n p r i n t " d a t aK 4 p r i n t " s y s 8 2 8 : p e e k 9 2 8 t r e H 1 0 d a t a 1 6 9 , 0 , 1 4 1 , 1 6 0 , 3 , 1 3J 1 1 0 d a t a 1 4 1 , 1 4 8 , 3 , 1 6 9 , 1 7 , 1 4J 1 2 0 d a t a 2 2 0 , 1 7 3 , 1 , 2 2 0 , 1 4 1 , 1 4L 1 3 0 d a t a 3 , 1 6 9 , 1 2 9 , 1 4 1 , 1 3 , 2 2N 1 4 0 d a t a 7 , 1 6 9 , 0 , 1 4 1 , 1 6 0 , M 1 5 0 d a t a 1 6 , 2 0 8 , 7 , 1 6 9 , 1 , 1 4D 1 6 d a t a 3 4 1 1 6 , 2 0 8 , 1 7 9 , 1 6 K 1 7 0 d a t a 1 3 3 , 1 9 8 , 9 6 1

L a t e N i g h t T J a s o n F a r a h , D a v i s o n , M i c h i g a n

T h i s i a " d a z z l e r " - t y p e p r o g r a mt e r n o T s e t . M a k e s u r e t h e a u d

N 1 0 f o r n = 4 9 1 5 2 t o 4 9 1 7 3G 2 r e a d a p o k e n , a : n e x tO 3 0 p o k e 5 4 2 7 3 , 1 0 0 : p o k e 5 4 2 7 7

p o k e 5 4 2 9 6 , 1 5 : p o k e 5 4 2 7 6 ,F 4 s y 4 9 1 5 2F 5 d a t a 1 6 9 , 1 1 1 4 1 , 1 7 , 2 0 8 , 1L 6 d a t a 1 2 0 1 , 1 6 2 4 0 , 2 4 5 , 1 4

H o o k , L i n e a n S i n g e rC h u c k L a m , S a F r a n c i s c o , C a l i f

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

F i r s t u n p l u g t h t e l e p h o n e c o r d f r o p o k e 5 6 5 7 9 , p e e k ( 5 6 5 7 9 ) o 3 2 p o k e 5 6 5 7 7 , p e e k ( 5 6 5 7 7 ) a n d 2

N o p l a y a m u s i c p r o g r a m o a n

Page 16: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 16/84

C - 1 2 8 B i t sR e - B o o t i n g G E O S 1 2 R i c h a r d D Y o u n g , O r l e a n s , O n t a r i o

G E O S 1 2 f u n c t i o n s e f f o r t l e s s l y w i t h t h 1 7 5 0 R a E x p a n s i o nU n i t ( R E U ) . A m o n g o t h e r t h i n g s , t h R E o f f e r s q u i c k a n e a s yr e - b o o t i n g f r o m B A S I C , b u n o w i t h o u t s o m e a d j u s t m e n t s . F a s tr e - b o o t i o n o p t i o n u s i n g t h 1 2 c o n f i g u r e p r o g r a m i G E O S ;i t h i s o p t i o n h a b e e n s e l e c t e d , t h 1 2 w i l l r e t u r n t G E O Sw h e n i i r e s e t . T h f a s t e s t r e s e t b a c k t G E O S w i l l o c c u r i c o p y o t h 1 2 d e s k T o p h a b e e n p l a c e d i t h R E R A " 1 5 7 1 d r i v e " . T h e G E O S e n v i r o n m e n t w i l l r e m a i n r e a s o n a b l yi n t a c t , p a r t i c u l a r l y i c o p y o p r e f e r e n c e s i a l s o i t h R A d r i v e .

T h G E O S m a n u a l m e n t i o n s s o m e c o n d i t i o n s t h a t a r r e q u i r e db e f o r e G E O S 1 2 8 c a n b e s u c c e s s f u l l y r e - b o o t e d f r o m b a s i c .T h m o s t c r i t i c a l o t h e s e c o n d i t i o n s i t h a t m e m o r y i r a B a n k f r o m $ C 0 0 0 t $ C 0 7 F m u s t r e m a i n u n m o d i f i e d . T h i sa r e a o 1 2 m e m o r y i s o c o u r s e , u s e d b B A S I C v a r i a b l e s a n w i l l b q u i c k l y o v e r w r i t t e n b s t r i n g s i B A S I C p r o g r a m i r u n .

R e c o g n i z i n g t h i s f a c t , p r o g r a m c a l l e d 1 2 r b o o t h a s b e e np r o v i d e d w i t h G E O S 1 2 8 . I p r o v i d e s c l e a n r e c o v e r y f r o mR A B a n k c h a n g e s , w h e n i p e r f o r m s p r o p e r l y . T h i s r b o o tr o u t i n e r e s t o r e s B a n k a $ C 0 0 0 b F E T C H i n g t h e r e q u i r e d *d a t a f r o m t h R E U . T d t h i s , i m u s t b r e l o c a t e d t a a r e ao c o m m o n R A b e c a u s e i m u s t s w i t c h t R A c o n f i g u r a t i o n

p r i o r t r e s t o r i n g t h e d a t a . r e l o c a t e d m v e r s i o n t $ 0 C 0 0b c h a n g i n g t h l o a d a d d r e s s o d i s k w i t h d i s k e d i t o r , a n c h a n g i n g o n a b s o l u t e a d d r e s s h i g h b y t e f r o m $ 1 t $ 0 C . T b s a f e , a l w a y s r e s e t b a c k t G E O S t h r o u g h 1 2 r b o o t .

T h e a s i e s t w a t r e t u r n t G E O S a f t e r r u n n i n g B A S I C p r g r a m i t i n c l u d e t h 1 2 r b o o t r o u t i n e a D A T A s t a t e m e n t s i t h B A S I C p r o g r a m , R E A D a n P O K E t h i s m a c h i n e l a n g u a g ei n t o m e m o r y , a n S Y t t h r e - b o o t p r o g r a m . T h n e c e s s a r yD A T A s t a t e m e n t s c a b i n c l u d e d a s u b r o u t i n e ; S Y 3 0 7 2w i l l e x e c u t e t h r e - b o o t t G E O S .

a l s o g e n e r a l l y i n c l u d e o n m o r e f u n c t i o n i a n B A S I C p r g r a m w i s h t r u f r o m t h G E O S d e s k T o p . T h 1 5 7 1 d i s kd r i v e i l e f t i 1 5 4 1 m o d e a f t e r e x i t i n g f r o m G E O S , s r e s e t i

E a s y 1 2 K e F i R i c k C r o n e , J a c k s o n , T e n n e s s e

M 1 2 d e v e l o p e d p r o b l e m w it a k e t w o t h r e e s t r o k e s t g e g r a v a t i o n r e a c h e d c r i t i c a l m a s s

r e m e m b e r e d a a r t i c l e f r o m t h s e a r c h e d m b a c k i s s u e s .

f o u n d i i V o l u m e 5 I s s u e 5 s t a r t e d t o f o l l o w t h i n s t r u c t is w i t c h e s t h a t w o u l d r e q u i r e u n s t h 6 a n d P E T ) . E v e n w o r s t h r o u g h t h b a c k c o v e r o t h k e o b v i o u s w a o d i s c o n n e c t i n gf r o m t h t o s i d e a n s t i l l c o u l d s i d e .

p u l l e d t h k e y c a p o f o t h ' c a o f t h e r e i a h o l e t h a t g o e u s e d s q u i r t o c l e a n e r / d e g r e $ 1 . 9 9 ) , p u t h 1 2 b a c k t o g e g r e a t !

t h o u g h t t h i s m i g h t s a v e s o m e oh a v e t h s a m e p r o b l e m w i t h a k o p e n t h c a s e f o t h i s r e p a i r . ku w i t h t h a g g r a v a t i o n a l o n gt h i s q u i c k f i x .

N e v e r - n e v e r l a n d 1 2 8 DJ o h n M e n k e , M t V e r n o n , I l l i n

T h C 1 2 8 D h a m e t a l c h a s s i s .f a c e h a p o w e r c o n n e c t i o n t h T h c o n n e c t i o n d o e s n ' t f i v e r yf i d d l e w i t h i d e s p i t e t h e e x p o s c o n n e c t i o n .

W r a p i w i t h i n s u l a t i n g t a p e o rt h C 1 2 8 D . a s s u r e y o t h a t sc o n n e c t o r c o n t a c t s t h C 1 2 8 D ' c o m p l e t e l y o f f - l i n e ( n e v e r s t o p m a n d s , ' d e v i c e n o p r e s e n t ' ) .

Page 17: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 17/84

S c r o l l D i r

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

b M G a r a m s z e g h y1 9 8 7 b M G a r a m s z e g h y

T h C - 1 2 8 ' s D I R E C T O R Y o C A T A L O G c o m m a n d i v a s ti m p r o v e m e n t o v e r t h C - 6 4 ' s L O A D " $ " , 8 t y p e o d i r e c t o r y .H o w e v e r , i s t i l l h a s o m e v e r y s e r i o u s l i m i t a t i o n s . T h e s e i c l u d e : t h e i n a b i l i t y t o o b t a i n a h a r d c o p y o t h e d i r e c t o r y w i t ho u r e s o r t i n g t t h L O A D " $ " , 8 m e t h o d ; t h i n a b i l i t y t o s c r o l lt h l i s t ; a n t h c u m b e r s o m e t e c h n i q u e s r e q u i r e d t L O A Dp r o g r a m o S C R A T C H f i l e d i r e c t l y f r o m t h d i s p l a y e d l i s t . I y o w o u l d l i k e t o b a b l e t d t h e s e t h i n g s a n m o r e , t h e nt h i s l i t t l e u t i l i t y i f o y o u .

S D I R i m e m o r y r e s i d e n t e x t e n d e d d i r e c t o r y u t i l i t y f o t h C - 1 2 8 ( i 4 o 8 c o l u m n , F A S T o S L O W m o d e ) w i t h1 5 4 1 , 1 5 7 1 o 1 5 8 1 d i s k d r i v e . I p r o v i d e s f u l l f o r w a r d a n r v e r s e s c r o l l i n g c a p a b i l i t i e s f o d i r e c t o r y l i s t i n g a w e l l a t h a b i l i t y t o p r o v i d e a h a r d c o p y o t h e d i r e c t o r y v i a p r i n t e r ;s c r a t c h f i l e s ; l o a d a P R f i l e ; d i s p l a y o m e r g e S E f i l e ;c h a n g e 1 5 8 1 d i r e c t o r y p a r t i t i o n s ; a n v a l i d a t e d i s k , a l d r e c t l y f r o m t h d i s p l a y e d l i s t .

C r e a t i n g S D I R

S D I R i w r i t t e n i a s s e m b l y l a n g u a g e u s i n g t h B u d d y - 1 2 8s y s t e m . T h s o u r c e c o d e i s o m e 1 0 0 0 l i n e s l o n g , a n i n o i n c l u d e d i t h i s a r t i c l e . F o t h o s e w h a r i n t e r e s t e d , i i i c l u d e d o t h T r a n s a c t o r d i s k f o t h i s i s s u e . L i s t i n g i t h B A S I C l o a d e r f o r t h e m a c h i n e l a n g u a g e p r o g r a m . T y p e t h i s i a n S A V E i u n d e r n a m e o t h e r t h a n " S D I R " . B e f o r e R U N -n i n g t h p r o g r a m , y o c a m a k e c h a n g e s t t h s y s t e m d ef a u l t s i n l i n e s 1 1 0 0 t 1 1 7 0 t o r e f l e c t y o u r p e r s o n a l s e t - u p . T h

p r i n t e d o s i n g l e l i n e . A n v a l uw i d e c a r r i a g e p r i n t e r o s u p p o r t f o

R U t h p r o g r a m o n c e t c r e a t e tp r o g r a m . A f t e r t h p r o g r a m h a cy o w i l l b p r o m p t e d t i n s e r t a d r i v e . W h e n t h f i l e h a b e e n s u c c ea s k e d i y o u w a n t t s t a r t S D I R n ot h i s i w h a t y o u w i s h , o r a n o t h e rh a v e c r e a t e d t h e S D I R f i l e , y o u n oL i s t i n g ( k e e p i a n y w a y i c a s e y d e f a u l t c o n f i g u r a t i o n ) . Y o c a s t ac a s i o n s b t h m e t h o d o u t l i n e d b e l

S D I R M e m o r y M a n a g e m e n t

T h m a c h i n e l a n g u a g e p o r t i o r i o Su s e d B A N K R A b e t w e e n $$ 1 B E O ( d e c i m a l 7 1 3 6 ) . B A N Ki u s e d a s t h e d i r e c t o r y b u f f e r . $ 0 BR S - 2 3 2 b u f f e r s ) a n $ F t $ F ( a l s o u s e d a t e m p o r a r y b u f f e r s a n T h e s e a r e a s a r e e r a s e d a n s e u e

T p r e v e n t B A S I C t e x t c o d e f r o l a n g u a g e p o r t i o n , t h s t a r t u r o u t t e x t l i m i t p o i n t e r t $ C F F F . T h i sm e m o r y a v a i l a b l e t B A S I C f o s t t h a n a d e q u a t e f o e v e n t h l o n g e s

Page 18: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 18/84

O n c e i m e m o r y , t h m a c h i n e l a n g u a g e p o r t i o n o S D I R w i l lr e m a i n a c t i v e u n t i l h a r d r e s e t i p e r f o r m e d o t h c o m p u t e r .I i b e c o m e s d e a c t i v a t e d a a n t i m e b e c a u s e t h f u n c t i o nk e y s g e t r e d e f i n e d o r t h B A S I C t o k e n i z e r v e c t o r a $ 0 3 0 4g e t s r e - s e t b a n o t h e r u t i l i t y , S D I R c a n b e r e s t a r t e d b t h c o m m a n d :

S Y 4 8 6 4

T h s t a r t u r o u t i n e f o S D I R d o e s t w o m a i n t h i n g s : i p a t c h e si t s e l f i n t o t h e B A S I C t o k e n i z i n g v e c t o r a n r e - d e f i n e s t h e F k e t p o i n t t i t s e l f r a t h e r t h a n t h n o r m a l B A S I C D I R E CT O R Y c o m m a n d . W i t h t h i s p a t c h i n s t a l l e d , S D I R b e c o m e sr e s i d e n t c o m m a n d w h i c h c a b a c c e s s e d i n d i r e c t m o d e o n l y .O c o u r s e , D I R E C T O R Y s t i l l c a b a c c e s s e d b t y p i n g i t h c o m m a n d w o r d f r o m B A S I C .

T h f u l l s y n t a x o t h c o m m a n d i s

S [ p a t t e r n ] [ , U < d e v i c e # > ] [ , P < p r i n t e r # > ] [ , W < p r i n t e r w i d t h > ]

A l o t h p a r a m e t e r s a r o p t i o n a l a n d c a n b e s p e c i f i e d i a n o r d e r . T h F 3 k e y i r e d e f i n e d a s " S < r e t u r n > " w h i c h w o r k sw i t h a l d e f a u l t s . T h S p o r t i o n o t h c o m m a n d l i n e m u s tb e g i n i t h f i r s t c o l u m n o f s c r e e n l i n e . T h o p t i o n a l p a r a me t e r s c a n b e s e p a r a t e d b s p a c e s f o l e g i b i l i t y i d e s i r e d , a t h o u g h p u n c t u a t i o n , e t c . i n o r e q u i r e d .

T h p a t t e r n c a b e a n y l e g a l D O p a t t e r n f o r d i r e c t o r i e s , i c l u d i n g t h e x t e n d e d s e f o r t h e 1 5 8 1 ( o n l y i y o u ' r e u s i n g1 5 8 1 o c o u r s e ) . < d e v i c e # > s h o u l d b i t h r a n g e o f t 1 3 A e r r o r m e s s a g e w i l l b g e n e r a t e d i y o t r y t o a c c e s s a n o e x i s t e n t d r i v e . < p r i n t e r # > s h o u l d b e o 5 < p r i n t e r w i d t h > i g i v e n i n u m b e r o e n t i r e s t o b p r i n t e d o l i n e . I t i s n o r m a ll y i n t h r a n g e o f t 5

F o e x a m p l e , j u s t e n t e r i n g t h e c o m m a n d " S D " o h i t t i n g t h F k e w i l l l i s t a l f i l e s o t h e d e f a u l t d i s k d r i v e ( n o r m a l l y d v i c e 8 u s i n g t h e d e f a u l t p r i n t e r a n p r i n t e r w i d t h f o r o u t p u t .

S M K * = S " , U 9 , W 4 , P 5

w i l l f i n d a l o t h S E f i l e s o d e v i c e t h a t b e g i n w i t h t h l e t t e r K I p r i n t o u t i s e l e c t e d l a t e r , i w i l l b g i v e n o t h d e v i c e p r i n t e r a e n t r i e s p e l i n e .

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

f i l e n a m e t y p e s

T h t y p e w i l l b e o n e o P R G , U So n l y ) . L o c k e d " < a n s p l a t " * f i l e s i z e i g i v e n i b l o c k s . T h f r e e a n n u m b e r o f i l e s l i s t e d i c a b d i s p l a y e d o t h s c r e e nc o m m a n d o p t i o n s a r e p o s s i b l e :

U s t h < c u r s o r u p a n < ct h r o u g h t h d i s p l a y e d l i s t . T h h i g h l i g h t e d i r e v e r s e v i d e o .

T h < h o m e > k e w i l l t a k e y o

T h < e s c > k e w i l l c l e a r t h s c

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

T h < r e t u r n > k e h a t h r e e f u nt y p e . F o P R f i l e s , i a c t s l i k ea u t o m a t i c a l l y l o a d t h h i g h l i g h t e p r o g r a m s : m a k e s u r e t h a t t h e g ri t h s a m e a w h e n t h p r o g r a m B A S I C p r o g r a m t h a t w a s a v e da l l o c a t e d , i c o m e s f r o m s t a r tr a t h e r t h a n t h e n o r m a l s t a r t o B A

F o a 1 5 8 1 C B d i r e c t o r y p a r t i t h e c u r r e n t p a r t i t i o n t o t h e s e l e c t

F o o t h e r f i l e t y p e s , < r e t u r n > w i f i l e o t h s c r e e n t h e n r e t u r n t a f f e c t a n B A S I C p r o g r a m t h a t< r u n / s t o p > k e t a b o r t f i l e d i s n o w a n t t v i e w t h e n t i r e f i l e . T

Page 19: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 19/84

t h M E R G E h a b e e n c o m p l e t e d ( u s u a l l y b t h p r i n t i n g o f a n* ? o u t o d a t a ' e r r o r o t h e s c r e e n ) , y o m u s t t y p e i C L O S E # 1t c l o s e t h d i s k f i l e . ( T h e ' ? o u t o d a t a ' e r r o r i c a u s e d b t h " R E A D Y . " m e s s a g e w h i c h i i n c l u d e d a t h e n o e v e r yC o m m o d o r e B A S I C l i s t i n g . T h c o m p u t e r i n t e r p r e t s t h i s a R E A D Y S i n c e n D A T A s t a t e m e n t s a r e i n c l u d e d , y o g e t h ' ? o u t o d a t a ' m e s s a g e ) . L o g o - m c a a l s o b e u s e d t e x e c u t es e q u e n t i a l d i s k c o m m a n d f i l e a o u t l i n e d i T r a n s a c t o r V o u m 8 I s s u e ( " S Y S 6 5 4 7 8 r e v i s i t e d " o p a g e 3 3 ) .

T h k e c o m b i n a t i o n l o g o - r w i l l r e t u r n 1 5 8 1 t i t r o o t d r e c t o r y p a r t i t i o n a n i n i t i a l i z e t h d r i v e . F o 1 5 4 1 o 1 5 7 1d r i v e s , i j u s t i n i t i a l i z e s t h d r i v e ( " 1 0 " ) . F o a l d r i v e s , i w i l la l s o s e l e c t t h f u l l d i r e c t o r y i p a t t e r n w a o r i g i n a l l y s p e c if i e d .

T h l o g o - s k e c o m b i n a t i o n w i l l s c r a t c h t h e s e l e c t e d f i l e . B c a r e f u l w h e n y o u s t h i s , b e c a u s e y o a r e n o t p r o m p t e d t c o n f i r m y o u r r e q u e s t t d e l e t e t h f i l e ! O n c e t h f i l e i g o n e , i i g o n e ( u n l e s s y o f i t h d i s k w i t h s e c t o r e d i t o r ) . A f t e rd e l e t i o n , S D I R w i l l r e - r e a d t h e d i r e c t o r y u s i n g t h e o r i g i n a lp a t t e r n .

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

F i n a l O b s e r v a t i o n s

U n l i k e m o s t p r o g r a m s t h a t d e a l w i t h d i s k f i l e s , S D I R c r e d i t st h u s e r w i t h d e g r e e o f i n t e l l i g e n c e . A l t h o u g h i h a s e x t e ns i v e e r r o r d e t e c t i o n r o u t i n e s , y o w i l l n o b p r o m p t e d o c j o l e d " a r e y o s u r e ? " e a c h t i m e y o p r e s s k e y . B e c a u s e o t h i s , c e r t a i n a m o u n t o c a u t i o n m a b r e q u i r e d , e s p e c i a l l yw h e n s c r a t c h i n g f i l e s . O t h e r w i s e , S D I R i m u c h f a s t e r f o p e p l w h a r r e l a t i v e l y c a r e f u l .

L i s t i n g 1 B A S I C p r o g r a m t c r e a g u a g e p r o g r a m o n d i s k .

T a b l e 1 S D I R

C o m m a n d< c u r s o r u p < c u r s o r d n < h o m e >

Q u i c k C o m m a n d R e f e r e n c e

A c t i o n

S c r o l l u l i s tS c r o l l d o w n l i s tG t t o o l i s t

O 1 0 0 0C I 1 0 1 0P 1 0 2 0P E 1 0 3 06 1 0 4 00 1 1 0 5 0B I 1 0 6 0C 1 0 7 0E 1 0 8 06 1 0 9 0F 1 1 0 0O 1 1 1 0J 1 1 2 0P O 1 1 3 0J 1 1 4 0N 1 1 5 0J 1 1 6 0D 1 1 7 0A 1 1 8 0H 1 2 0 0P 1 2 1 0D 1 2 2 0H 1 2 3 0L H 1 2 4 0J O 1 2 5 0M 1 2 6 0O 2 0 0 0L P 2 0 1 0G E 2 0 2 0N 2 0 3 0L K 2 0 4 0I H 2 0 5 0I J 2 0 6 0A 2 0 7 0C 2 0 8 0K 2 0 9 0L 2 1 0 0O D 2 1 1 0O F 2 1 2 0A 2 1 3 0G 2 1 4 0C L 2 1 5 0E 2 1 6 0

r e m * * * * * * * * * * * * * * * * * * * * * * * * * * *

r e m * s d i r 4 . r e m * b m g a r a m s z e g h yr e m * 8 7 - 0 9 - 0 1r e m * * * * * * * * * * * * * * * * * * * * * * * * * * *

c s = 0 : b a n k 0 p r i n t " w o r k i n gf o r i = 4 8 6 4 t 7 1 2 6 : r e a d x c i c s O 2 2 2 6 5 1 t h e n p r i n t " e r r

p o k e 4 8 6 7 , 8p o k e 4 8 6 8 , 4p o k e 4 8 6 9 , 4p o k e 4 8 7 0 , 9 6p o k e 4 8 7 1 , 1 5p o k e 4 8 7 2 , 1 8p o k e 4 8 7 3 , 1 4p o k e 4 8 7 4 , 2 0

r e d e f a u l t d i r e m d e f a u l t p r r e m d e f a u l t p r r e d e f a u l tr e m p r i n t e r c o r e m p r i n t e r c o r e m p r i n t e r c o r e m p r i n t e r c o

p r i n t " i n s e r t d i s k t h e n p r e s s g e t k e y a b s a v e " s d i r " / b 0 , p 4 8 6 4 t p 7 1 3 6 :p r i n t " - - > s d i r 4 f i l e c r e a t e di n p u f ' s t a r t s d i r < y / n > " ; s s $i f s s $ = " y " t h e n s y 4 8 6 4e n d a t a 7 6 , 1 1 , 1 9 , 8 , 4 , d a t a 1 8 , 1 4 , 2 0 1 6 2 , 0 d a t a 2 2 1 , 2 6 3 2 1 0 1 , 1 9 d a t a 1 9 , 1 8 , 1 6 9 , 2 5 5 , 1 4 1 ,d a t a 1 5 4 , 1 4 1 , 4 , 3 , 1 6 9 ,d a t a 3 3 2 1 2 5 , 2 5 5 , 1 3 , d a t a 7 8 , 8 4 , 6 5 , 8 8 , 5 8 ,d a t a 6 8 3 2 , 3 4 , 8 0 , 6 5 , d a t a 8 2 7 8 , 3 4 , 4 4 8 5 d a t a 8 6 , 7 3 , 6 7 , 6 9 , 3 5 d a t a 1 6 9 , 9 7 1 3 3 , 2 5 0 , 1 6 9 ,d a t a 1 6 9 , 2 5 0 , 1 6 0 , 4 1 6 2 ,d a t a 2 5 5 , 1 3 , 8 3 , 6 8 , 1 3 , d a t a 8 3 , 6 8 , 7 3 , 8 2 , 3 2 , d a t a 3 2 3 2 6 0 , 6 7 , 6 2 , d a t a 5 5 , 3 2 , 7 7 , 4 6 , 3 2 ,d a t a 6 5 7 7 , 8 3 , 9 0 , 6 9 ,

Page 20: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 20/84

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

2 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 a

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

7 2 5 3

2 2 5 ,6 4 6 4

2 0 0 ,2 0 8 ,

2 4 0

3 4 2 3 7 ,1 0 9 ,

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

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

1 2 5 5 ,

3 2 2 5 5 ,

0 3 2 1 4 0 ,

7 6 1 4 8 , .

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

0 2 0 1 3 3 1 2 0 1 3

1 7 3 ,3 2 2 0 6 4

1 8 5 ,9

1 0 5 ,2

2 4 0 ,2 2 4 ,

1 3 2 0 8 ,

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

3 2 2 4 0 ,

3 2 3 2 7 8

1 7 4 ,1 7 3 ,1 8 9 ,

3 2 1 2 1 9 8 ,

1 1 6 7 ,

2 7 2 0 0 ,

0 2 4 8 ,

2 1 2 7 2 7 2 2

2 3 4 ,2 0 8 ,

3 3 2

1 8 5 ,2 0 1 ,2 0 1 ,2 0 0 ,2 0 8 ,2 0 8 ,

4 7 2

1 4 1 ,6 4

0 2 0 0 ,

1 0 1 4 1 ,

6 0

1 3 1 4 3 ,1 7 4 ,1 6 9 ,1 4 4 ,

0 2

1 2 8 7

6 1 9 4 ,1 2 5 ,

7 1 5

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

1 3 2 1

2 0 1 ,1 9 2 ,

3 2 3 2

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

1 3 0

2 4 5 ,7 6

1 4 8 ,

0 3 4 8 0

2 0 8 ,3

2 3 8 ,1 9 2 0

4 9 6

2 1 8 5 ,

9 6 2 0

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

5 0 3

1 2 1 4 1 ,

1 3 2 7 3 2 2 6

2 5 5 ,4 6 1 3 1 3

1 6 9 ,2 5 5 ,

4 8 1 6 0 ,3 2

2 0 1 ,3 4 2 2

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

3 2 2 3 2

2 4 0 ,1 6 0 ,1 6 7 ,

2 7

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

3 2 1 4 1 ,

4 1 1 3

1 2 8 ,4 1

0 1 6 2 ,

1 3 3 5 1 4 1 3

0 1 3 3 2 7 6

1 6 9 ,1 0

2 4 0 ,1 7 3 ,

1 4 1 6 2 ,

8 7 4 6

1 6 0 ,1 6 2 ,

0 3 2

2 0 8 ,0 1 4 8 ,

3 4 2 4 0 ,2 0 8 ,

2 7 2 7 3 2 7 6 1 3

2 0 7 ,6 0

2 1 1 4 4 ,

2 0 8 ,8 6 2 2

2 4 0 ,3

7 2 2 7

7 6 1 6 0 ,

1 5 2 0

2 4 0 ,1 3

2 3 2 ,1 3

1 4 1 ,1 6 0 ,1 8 9 ,

1 4 4 8 1 3

3 0

2 7 1

7 9 4 6

0 3 2

1 7 0 ,8 7

1 8 9 ,1 4 0 ,2 7

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

3 2 2 6 3 2 3 2

2 0 1 ,3

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

1 9 2 0 1 3

1 7 0 ,1 8

1 9 2 ,2 0 1 ,

4 1 2 0 0 ,

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

0 1 5

2 5 5 ,2 7

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

0 3 2

1 6 0 ,3 2 2 7

1 6 2 ,0

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

3 2 7 2 1

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

3 4 7 6

7 8 8 3

1 4 2 0 2 0 1 8

2 6

1 8 2 0 2 0

2 2

3 3

1 6

1 1 1 3 2 0 1 3 2 2

7 1 6 1 8

1 1 0 1 7

1

3 9 3 3 7 3 3 2 2 2 2

2 0 1 6

B G N N G B C H O 1 L F F E P I C M D G J G K N E O C J G N K K C L C M P M K E O O B A L B K L F

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

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

3 2 1 8 5 ,

3 2 1 8 5 ,1 5 3 ,

7 0 3 2

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

7 8 3 2 3 2

2 1 5 ,2 6

1 9 2 ,1 9 2 ,1 9 2 ,1 9 2 ,

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

2 0 7 ,0

2 1 0 ,2 2

1 6 5 ,7 3

0 2 0 0 ,

0 2 8 7 9 7 0 5 9

2 0 8 ,3 2

1 9 2 ,1 9 2 ,1 9 2 ,1 9 2 ,

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

2 6 1

2 5 5 ,2 2 1 3 7 6

1 6 8 ,1 9 2 ,

1 3 3 2 3 2 7 9 2 7

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

4 4 8 3 7 3

2 2 1 ,7 2 8 4 7 3

2 2 1 ,6 0 6 9 6 6

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

2 2 1 ,3 2 6 7 5 3

2 2 1 ,3 2 7 7 s i

2 2 1 ,3 2 8 0

1 6 0 ,2 4 0 ,2 0 0 ,2 4 0 ,2 0 0 ,

6 9 1 8 5 ,

1 8 2 0 8 ,2 2 1 ,

7 0 8 5 7 6 7 6

2 5 5 ,1 9 2 ,1 9 2 ,1 9 2 ,

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

2 0 82 1

2 0 88 3

1 8 42 0 8

3 3 2 6 7 3 7 8

1 3 8

1 7 61 9 21 9 21 9 22 2 1

6 8 8 2 8 4

2 2 1 7 7 8 0 8 4

2 2 1 8 3 7 3 8 3

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

2 2 1 3 2 6 5 4 9

2 2 1 6 1 8 2 3 2

2 2 1 6 1 7 3

Page 21: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 21/84

I C M D J 6 K F O P D B B 6 A C I O E I O B I M I D D G J K H M G D G C N B H G I N H K L G G B C

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

N H f N P B N B H J N H K O G B K E A M H J N O M L F B G M D H J A F D J P C D I H F G C F F J G

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Page 22: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 22/84

M u l t i t a s k i n g o t h C o m m o d o M y s t e r i o u s f o r c e o s i m p l e p r o g r a m m i n g t r

b M i k e M o h i l o

M u l t i t a s k i n g i r e a l l y m y s t e r i o u s f o r c e t h a t o n l y i n h a b i t sc o m p u t e r s l i k e t h A m i g a , o i s i t ? A c t u a l l y i i j u s t s i m p l ep r o g r a m m i n g t r i c k t h a t c a e v e n b e d o n e o t h C o m m o d o r e1 2 8 . T h i s p r o g r a m w i l l a l l o w u t f o u r d i f f e r e n t p r o g r a m s t r u a t h s a m e t i m e p r o v i d e d t h a t t h e y d o n ' t i n t e r f e r e w i t he a c h o t h e r . p r o g r a m d o e s n ' t h a v e t b a I R r o u t i n e t r u i t h b a c k g r o u n d . A n y t h i n g t h a t e n d s w i t h a R T o e v e n t h m o n i t o r c a n b e r u i t h b a c k g r o u n d . F o r e x a m p l e ,t h f i r s t d e m o p r o g r a m ( M U L T I . B 1 ) w i l l l e y o h a v e f u l l u s o t h m o n i t o r w h i l e B A S I C r u n s a s h o r t p r o g r a m . I m a g i n e u i n t h m o n i t o r t d e b u g p r o g r a m w h i l e i i r u n n i n g ! H a v ey o e v e r w a n t e d t h p o w e r t s w i t c h f r o m w o r d p r o c e s s o r t a s p r e a d s h e e t o r t B A S I C a n d b a c k a g a i n w i t h o u t s a v i n g s e ve r a l f i l e s a n d s w a p p i n g j u s t a m a n y d i s k s ? F o d e m o n s t r at i o n o t h i d e a , r u M U L T I . B 2 a n d y o u w i l l b a b l e t s w i t c hf r o m t h m o n i t o r t B A S I C e v e n i B A S I C p r o g r a m i r u n i n g a n t h e r e i n c u r s o r .

G e n e r a l o p e r a t i o n

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

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

I n i t i a l i z a t i o n

T h I N I T r o u t i n e a $ 1 3 0 0 s e t s t h s t a r t s t h m u l t i t a s k e r . T d i s p l a y t g l e d w i t h t h e r e s t o r e k e y , s e t h o n l y o n t a s k t r u a t i m e , s e t i n e c a n b e r u a a n t i m e w i t t a s k s .

C r e a t i n g a T a s k

T h r e e r o u t i n e s a r u s e d t d e f i n ea $ 1 3 0 3 w i l l s e t h A , X , Y a n S E T P R O G a $ 1 3 0 6 s e t s t h b a n kp r o g r a m t b r u n . T h b a n k v a l u s t a r t a d d r e s s i X a n h i g h b y t e i i p o k e d d i r e c t l y i n t o t h M M a a $ 1 3 0 9 w i l l c r e a t e t h n e t a s ka n r e c o r d i n g i i t a s k t a b l e . T h a n t a s k # d o e s n o n e e d t b m o m e n t y o t u r n o t h c o m p u t

Page 23: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 23/84

c l e a r . U n i m p o r t a n t b a c k g r o u n d t a s k s c a b e s l o w e d d o w n b s e t t i n g a d e l a y v a l u e g r e a t e r t h a n i t h a c c u m u l a t o r ( s e eM U L T I . B f o a e x a m p l e ) .

K i l l a n l o a d / s a v e

P r o g r a m s t h a t t e r m i n a t e w i t h a R T w i l l a u t o m a t i c a l l y r e t u r nt t h k i l l r o u t i n e . T h r e t u r n a d d r e s s t K I L L w a p l a c e d o t h e s t a c k b c r e a t e . N o t e t h a t t a s k # w a n o m a d e w i t h c r a t s i w i l l n o r e t u r n t K I L L . T p r e v e n t c o l l i s i o n b t w e e n t h K e r n a l l o a d , s a v e , a n o t h e r I / O , l o a d a n s a v e a r t r a p p e d a n r u n w i t h t h p r i o r i t y m o d e s e ( s e e R U N S T O P ) . T h i sa l l o w s t h e m t r u n w i t h o u t i n t e r f e r e n c e .

T h I R r o u t i n e

D u r i n g a n I R Q , a l o t h e r e g i s t e r s i n c l u d i n g t h b a n k a r s t o r e d o t h s t a c k . A f t e r a l o t h I R w o r k i d o n e , a l o t h r e g i s t e r s a r e p u b a c k a n t h p r o g r a m t h a t w a i n t e r r u p t e dr u n s a i n o t h i n g h a h a p p e n e d . T p e r f o r m m u l t i t a s k i n g , t h eI R s e q u e n c e r u n s n o r m a l l y u n t i l t h e n d , w h e n r e g i s t e r s f o d i f f e r e n t p r o g r a m a r p u b a c k . W i t h e a c h I R Q , o n p r o g r a m ' sr e g i s t e r s a r e . s t o r e d a n a n o t h e r ' s a r p u b a c k , c a u s i n g e a c hp r o g r a m t r u f o b r i e f m o m e n t b e t w e e n I R Q s . T h i s h a p e n s q u i c k l y e n o u g h t h a t a l p r o g r a m s a p p e a r t r u a t h s a m e t i m e . S i n c e t h r e g i s t e r s a r e s t o r e d o t h s t a c k , s e v e r a ls e t s o t h e m c a n b e s t o r e d s i m p l y b s w i t c h i n g b e t w e e n s e v e ra s t a c k s . T h M M c h i p h a a i n t e r e s t i n g f e a t u r e t h a t c a r l o c a t e t h e s t a c k o r z e r o p a g e t a n c o n v e n i e n t p l a c e . S w i t c hi n f r o m o n p r o g r a m t t h n e x t i s i m p l y a m a t t e r o f s w i t c hi n f r o m o n s t a c k t o a n o t h e r . T h n e w l y i n s t a l l e d I R r o u t i n es w i t c h e s s t a c k s a n s t a c k p o i n t e r s a c c o r d i n g t l i s t o a v a i l a b l e b a c k g r o u n d t a s k s t h v e r y s a m e l i s t m a d e b t h C R E A T E a n R U N S T O P r o u t i n e s . T h e n t i r e p r o c e s s i v e r y f a s ta n t h b a c k g r o u n d t a s k s a r c o m p l e t e l y u n a w a r e o w h a th a p p e n e d .

H e r e i m o r e d e t a i l e d d e s c r i p t i o n o w h a t h a p p e n s d u r i n g t h I R Q . T h I R s i g n a l t o t h m i c r o p r o c e s s o r f r o m o n o t h I / c h i p s s t a r t s t h p r o c e s s e v e r y l / 6 0 t h o s e c o n d . F i r s t , t h s t a t u s r e g i s t e r a n r e t u r n a d d r e s s f r o m t h e i n t e r r u p t e d p r g r a m a r p u o t h s t a c k . T h K e r n a l I R r o u t i n e i e n t e r e d .T h i s p u t s t h A , X , Y a n M M c o n f i g u r a t i o n o t h s t a c k .T h s t a t u s r e g i s t e r i t e s t e d t o s e i B R i n s t r u c t i o n c a u s e d

L i s t i n g 1 m u l t i . B l . T h i s p r o g r a m u s e p r o g r a m t r u n w h i l e y o u s t h M m oM M B I O P G N K C J 6 K B

1 r e m * * * * * m u l t i . b l * * * * *2 r e m b a s i c o n / o f f s h i f 3 r e m m o n i t o r o n / o f f l o g o 4 0 f a s t : s c n d r : b a n k l 5 : b l 6 a d 5 s y s 4 8 6 4 , 1 , 0 : r e m i n i t - d i s 6 s y s 4 8 6 7 , 0 , 0 , 0 , 07 s y 4 8 7 0 , 0 , 0 , 1 7 68 s y 4 8 7 3 , 19 s y 4 8 7 6 , 0 , 1 , 1 , 01 0 p l a y " c d e f g a b "1 1 0 s y s 4 8 7 6 , 1 0 0 , 1 , 0 , 01 2 p l a y " c d e f g a b "1 3 s y 4 8 7 6 , 0 , 1 , 0 , 01 4 0 g o t o 1 0 0

r e r e r e

r e

r e

L i s t i n g 2 m u l t i . B 2 . T h i s e x a m p l e u s ea l l o w s w i t c h i n g b e t w e e n B A S I C a n t h P 1 r e * * * * * m u l t i . b 2 * * * * *C I 2 0 r e m s w i t c h t o b a s i c s h G P 3 0 r e m m o n i t o r l o I 4 f a s t : s c n d r : b a n k l 5 : b l o a d E 5 s y 4 8 6 4 , 0 , 1 : r e m i n i t - n o P 6 s y 4 8 6 7 , 0 , 0 , 0 , 0 : r e m s e t G 7 s y 4 8 7 0 , 0 , 0 , 1 7 6 : r e m s e N 8 s y 4 8 7 3 , 1 : r e m c r e

L i s t i n g 3 B A S I C g e n e r a t o r p r o g r a mw i l l c r e a t e t h e f i l e " m u l t l m ! " o d i s k .P I 1 0 0 0E 1 0 1 0I A 1 0 2 0O 1 0 3 0I K 1 0 4 0M 1 0 5 0J N 1 0 6 0G 1 0 7 0L P 1 0 8 0G 1 0 9 0 .E 1 1 0 0G 1 1 1 0I E 1 1 2 0G 1 1 3 0G P 1 1 4 0C P 1 1 5 0A 1 0 0 0P 1 0 1 0L B 1 0 2 0N 1 0 3 0J 1 0 4 0D 1 0 5 0B 1 0 6 0B 1 0 7 0J I 1 0 8 0N 1 0 9 0

r e g e n e r a t o r f o r " m u l t i n d $ = " m u l t i . m l " : r e m n a m en d = 5 2 9 : s a = 4 8 6 4 : c h = 5 7 7 9 0f o i = t n d r e a d xc h = c h - x : n e x ti f c h < > 0 t h e n p r i n t " d a t ap r i n t " d a t a o k n o w c r e a t i r e s t o r eo p e n 8 , 8 , l , " 0 : " + f $p r i n t # 8 , c h r $ ( s a / 2 5 6 ) c h r $ ( f o i = t n d r e a d xp r i n t # 8 , c h r $ ( x ) ; : n e x tc l o s ep r i n f ' p r g f i l e ' " ; £ $ ; n / c p r i n t " t h i s g e n e r a t o r n o l

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

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

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

2 1 2 0 8 ,

7 6 2 0

1 4 4 ,1 7 3 ,

6 4 , 2 1

2 5 5 ,2 0 1 ,

2 0 2 2 9 ,

Page 24: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 24/84

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

0 1 4 2 , 9 0 1 , 0 ,

2 4 0 , 0 ,2 5 5 , 0 , 0 ,

0 , 0 , 0 ,

L i s t i n g 4 P A L / B u d d y - f o r m a t s o u r c e

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

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

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

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

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

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

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

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

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

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

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

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

c o d e l i s t i n g f o r t h e m u l t i t a s k i n gs y s t e m . W h e n a s s e m b l e d , t h i s c r e a t e s t h e p r o g r a m " m u l t i . m l " .I D P L E H J B M K D P E E H A G

1 o p e n 8 , 8 , 1 , "2 r e o p e n 8 , 8 ,3 s y 7 0 4 . o p t 0

0 : m u l t i . m l "l , " 0 : m u l t i . l s "

6 m u l t i t a s k i n g f o d 2 7 b 8 ; m i k e m o h i l o

1 0 1 1 * = $ 1 3 0 01 2 0 c h r o u t $ f f d 21 3 k l o a d = $ f 2 6 c1 4 k s a v e $ f 5 4 e . 1 5 j m p i n i t1 6 0 j m p s e t r e g s1 7 0 j m p s e t p r o g

; k e r n a l l o a d / s a v e t h a t; b y p a s s t h j u m p t a b l e

a = d i s p x = o t a ta = x = x y = y p = pa = m m u x = p c l y = p c h

a = t a s k

E B H F p C L F D N H C C H G J K M G B M F K N J L H O O K F C O I C I P N D H F I F A B N H I O J J J P D E D E J P

3 6 0 f i n d d e y3 7 c p y # $ f f3 8 b n e g t a s k3 9 l d # $ 0 34 0 g t a s k I d r u n s t , y4 1 c m # $ 0 04 2 b e f i n d4 3 t y 4 4 t a 4 5 i n t i m e r , x4 6 I d t i m e r , x4 7 0 c m p d e l a y , x4 8 b n f i n d4 9 I d a # $ f f5 0 s t t i m e r , x5 1 s t y c t a s k5 2 I d a s p a g e , y5 3 s t a $ d 5 0 95 4 I d a s t a c k , y5 5 t a 5 6 0 t x s5 7 0 r t n i n t j m p $ f f 3 35 8 5 9 n m i e l d6 0 I d a # $ 7 f6 1 s t a $ d d 0 d6 2 l d y $ d d 0 d6 3 b m n e x t6 4 j s $ f 6 3 d6 5 j s r $ f f e l6 6 b n e n e x t6 7 0 j s r $ e O 5 66 8 j s $ e l O 96 9 j s $ c 0 0 07 0 0 j m p ( $ 0 a 0 0 )7 1 0 n e x t j s r $ e 8 d 57 2 I d $ d 7 3 a n # $ 0 f7 4 b e r t n i n t7 5 l d x # $ f f7 6 n e x t b i t i n x7 7 d 7 8 l s 7 9 b e s r s t a s k8 0 0 c p x # $ 0 48 1 b n e n e x t b i t8 2 j m r t n i n t8 3 r s t a s k I d a c r t b l , x8 4 b e q d i s p l a y8 5 I d o t a t8 6 b e t o g t a s k8 7 I d a # $ 0 08 8 t a 8 9 s t o p a t k s t r u n s t , y9 0 i n 9 1 c p # $ 0 49 2 b n e s t o p a t k9 3 I d # $ 0 19 4 0 s t a r u n s t , x

f i n

s e e

n o t

t a s

r e s

g e

g e

k e r

; n m

; d u; k e

g e t

n

c o n

n r u n t a s o n e n o t

s t o

r u n

Page 25: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 25/84

B B H E J N H H 6 I E N O P C M D O P A P D A H F L P P P C 6 J D C H 6 B A I K 6 H I A H 6 0 M F 6 K H D F H O H 6 K O F

1 1 3 0 j s r c h r o u t1 1 4 0 I d a # $ f f1 1 5 0 s t a $ £ a1 1 6 0 d n e x t i n c $ f 1 1 7 0 l d $ f 1 1 8 0 c p # $ 0 41 1 9 0 b e d e x i t1 2 0 0 I d a c r t b l , x1 2 1 0 b e d n e x t1 2 2 0 t x 1 2 3 0 d 1 2 4 0 a d # $ 3 01 2 5 0 p h 1 2 6 0 l d y # $ 9 b1 2 7 0 I d a r u n s t , x1 2 8 0 b e c o l o r1 2 9 0 l d y # $ 0 51 3 0 0 c o l o r t y 1 3 1 0 j s r c h r o u t1 3 2 0 p l 1 3 3 0 j s c h r o u t1 3 4 0 j m d n e x t1 3 5 0 d e x i t I d a # $ 9 21 3 6 0 j s c h r o u t1 3 7 0 I d a # $ 0 51 3 8 0 j s c h r o u t1 3 9 0 I d a # $ 0 d1 4 0 0 j s r c h r o u t1 4 1 0 j m p $ f £ 3 31 4 2 01 4 3 0 k i l l n o 1 4 4 0 s e i1 4 5 0 l d x c t a s k1 4 6 0 I d a # $ 0 01 4 7 0 s t a r u n s t , x1 4 8 0 s t a c r t b l , x1 4 9 0 c l i1 5 0 0 i d l e n o 1 5 1 0 j m i d l e1 5 2 01 5 3 0 r u n s t o p b c s p r i o r i t y1 5 4 0 s t a d e l a y , y1 5 5 0 I d a c r t b l , y1 5 6 0 b e n o t a s k1 5 7 0 t x 1 5 8 0 s t a r u n s t , y1 5 9 0 n o t a s k r t 1 6 0 0 p r i o r i t y s t p r i r t y1 6 1 0 r t s1 6 2 01 6 3 0 s e t r e g s p h 1 6 4 0 s t a r e g a1 6 5 0 s t x r e g x1 6 6 0 s t y r e g y1 6 7 0 p l 1 6 8 0 s t a r e g p1 6 9 0 r t s1 7 0 01 7 1 0 s e t p r o g s t r e g m1 7 2 0 s t r p

/ d i s p l a y t a s k s 0 -

/ n m o r e t a s k s/ g e t a t a s k/ t a s k n o t c r e a t e d

/ m a k e # 0 - 3 i n t o a s c i i ' 0 ' . . ' 3 '

/ t a s k s t o p p e d - l t g r e y

/ t a s k r u n n i n g - w h i t e

/ p r i n t c o l o r

/ p r i n t a s c i i t a s k/ l o o k f o r a n o t h e r t a s k/ p r i n t a r v s - o f f

/ m a k e c o l o r w h i t e

/ p r i n t a c

/ k e m a l r t

/ k i l l t a s k

/ w h a t t a s k i t h i s

/ s t o p i t/ u n - c r e a t e i

/ t a s k w i l l d i e a f t e r n e x t i r

/ r u n / s t o p / d e l a y t a s k/ s e t d e l a y t i m e r

/ t a s k n o t c r e a t e d

/ r u n / s t o p t h e t a s k

/ s e t p r i o r i t y

/ s e t a , x , y , p r e g i s t e r s

/ s e t b a n k , s t a r t i n g a d d r e s s

P J H M M E A H J 6 B E L D D F P M P D O K 6 M I D F H F J N A P L C E M E 1 C N D C K K L F E C G 6 L B A K L F M A K

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

l d x # < t s a v el d y # > t s a v es t x $ 0 3 3 2s t y $ 0 3 3 3c l r t c r e a t e s e t a I d a # $ 0 0s t a r u n s t , xI d a # $ 0 1s t c r t b l , xI d # $ f 6s t s t a c k , xI d # $ f 7s t a $ f aI d s p a g e , xs t a $ f bI d r p d a d c # $ f fs t r p I d a r p c ha d c # $ f fs t r p c hl d # $ 0 0i n i t s k I d a n t r e gs t ( $ f a ) , yi n c p # $ 0 7b n e i n i t s kI d # < k i l ls t ( $ f a ) , yi n I d a # > k i l ls t ( $ f a ) / yd r t

t l o a d p h I d # $ 0 1s t p r i r t yp l j s k l o a dp h I d a # $ 0 0s t p r i r t yp l r t

t s a v e p h I d a # $ 0 1s t p r i r t yp l j s k s a v el d x # $ 0 0s t p r i r t yr t

/ s e t

/ c r e

; d o n

' m a k

- s e t

g e t

- a d - n e

b u i p u t

r e

p u k i l

w h e w i l

/ t r a

/ g e t

/ t r a p

/ g e t

Page 26: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 26/84

E x p l o r i n g S U B M I TN o t e s f r o m t h C P / M P l u s w o r k b e n c h

b A d a m H e r s tC o p y r i g h t ( c 1 9 8 8 A d a m H e r s t

S u b m i t i o n o t h m o s t u s e f u l t o o l s p r o v i d e d w i t h C P / M. P l u s . I a l l o w s y o t a u t o m a t e m a n y o t h r e p e t i t i v e t a s k s

t h a t a r p e r f o r m e d ' o n a r e g u l a r b a s i s . A l m o s t a n s e r i e s o c o m m a n d s t h a t c a n b e e n t e r e d t h r o u g h t h c o m m a n d l i n e a n e x e c u t e d b t h C C c a b e x e c u t e d t h r o u g h S U B M I T f i l e .

T h d o c u m e n t a t i o n p r o v i d e d w i t h C P / M P l u s c o v e r s t h b a s i co p e r a t i o n o s u b m i t . A i o f t e n t h c a s e , t h d o c u m e n t a t i o nr a i s e s m o r e q u e s t i o n s t h a n i a n s w e r s . U n f o r t u n a t e l y , i n f o r m at i o n a b o u t t h v e r s i o n o S U B M I T p r o v i d e d w i t h C P / M 2 . i n o a p p l i c a b l e . W h i l e t h e i r f u n c t i o n i t h s a m e , t h e i r u n d e r l yi n g p r o c e s s e s a r d i f f e r e n t . W h e n t h d o c u m e n t a t i o n f a i l s ,t h e r e i o n l y p l a c e t g t g e a c c u r a t e i n f o r m a t i o n y o u rc o m p u t e r !

W h e n s u b m i t f i l e i e x e c u t e d , S U B M I T r e w r i t e s t h e o r i g i n a lf i l e t t e m p o r a r y f i l e . Y o c a v e r i f y t h i s w i t h t h s u b m i tf i l e , t e s t o l s u b :

d i

E x e c u t e t h f i l e w i t h t h c o m m a n d :

S U B M I T T E S T 0 1 . S U

( T y p i n g ' S U B M I T ' o t h c o m m a n d l i n e i u n n e c e s s a r y . S u b m i tf i l e s c a b e x e c u t e d a i t h e y w e r e c o m m a n d f i l e s b s e t t i n gy o u r C P / M e n v i r o n m e n t w i t h t h c o m m a n d :

s e t d e f [ o r d e r = ( c o m , s u b ) ]

s p e c i f i c a t i o n f o l l o w a p a t t e r n . St r a t e s :

d i s u b m i t t e s t O 2

N o t e t h s e m i c o l o n ( ; o t h l a s n e f i l e s p e c i f i c a t i o n w i l l b g e n d i t i o n a l l i n e ( s ) ) i n o i n c l u d e d , S t e m p o r a r y f i l e ( b e c a u s e t h l a r e a c h e d ) b e f o r e c r e a t i n g t h e t e m p m i f i l e . C o n s e q u e n t l y , t h S Y S I N b r e u s e d a i n f i n i t u m .

E x e c u t e t h s u b m i t f i l e w i t h t h c

T E S T 0 2

A t h n e s t e d s u b m i t f i l e s a r e x p r i n t e d t t h e s c r e e n . S u b s e q u e n tt e m p o r a r y f i l e e n t r y . T h n u m b e r sg i a 5 a n d e c r e a s e b o n e , s a n 3 ( T h e s u b m i t f i l e c a b a b o g r o w t i r e d o w a t c h i n g t h s c r e e n e s a i d A l i c e ' , a n d I ' m i n c l i n e d t

H o d e e p l y c a s u b m i t f i l e s b t 4 l e v e l s . T h i s w o u l d b t h l

Page 27: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 27/84

T h i s l i m i t i i m p o s e d b a v a i l a b l e m e m o r y a n i r e s u l t o t h o p e r a t i o n o S U B M I T u n d e r C P / M P l u s . S U B M I T u s e s t h ' R e s i d e n t S y s t e m E x t e n s i o n ' ( r s x ) c a p a b i l i t i e s o C P / M P l u s .A t h n a m e i m p l i e s , R S X ' s c a n b e a t t a c h e d t t h s t a n d a r do p e r a t i n g s y s t e m t h a n d l e c u s t o m t a s k s a s s y s t e m f u n c t i o n s .E a c h t i m e s u b m i t i i n v o k e d , i a t t a c h e s a R S t p r o c e s s t h s u b m i t f i l e . T a t t a c h a R S X , s u f f i c i e n t m e m o r y a t h t o o t h T r a n s i e n t P r o g r a m A r e a ' ( t p a ) m u s t b a v a i l a b l e . W h e na R S i a t t a c h e d , t h a m o u n t o a v a i l a b l e h i g h m e m o r y i r d u c e d . W h e n S U B M I T h a n e s t e d 3 l e v e l s , i a p p e a r s t h a t e t h e r h i g h m e m o r y h a d r o p p e d s l o t h a t t h e r e i n r o o ml e f t f o S U B M I T t b l o a d e d a n e x e c u t e d o t h a t t h e r e i n r o o m f o S U B M I T t o a t t a c h i t R S X . T h i s a l s o i m p l i e s t h a t t h p r e s e n c e o o t h e r R S X ' s a t t a c h e d t t h s y s t e m w i l l r e d u c e t h n u m b e r o l e v e l s t h a t s u b m i t f i l e s c a n b e n e s t e d .

T h c r e a t i o n o t e m p o r a r y f i l e h o l d s n u m b e r o i m p l i c at i o n s f o r t h e u s e o f S U B M I T . F i r s t , t h e r e m u s t b e n o u g h s p a c eo t h d i s k t h o l d t h t e m p o r a r y f i l e . A l s o , t h e c r e a t i o n o f t e m p o r a r y f i l e i f a c t o r i t h e x e c u t i o n t i m e o s u b m i t f i l e s .

H o b i c a s u b m i t f i l e b e S i n c e t e m p o r a r y f i l e i c r e a t e df r o m i t i m u s t b s m a l l e r t h a n t h r e m a i n i n g s p a c e o t h t e m p o r a r y f i l e d i s k . I i i s n ' t , S U B M I T w i l l a b o r t e x e c u t i o n a n p r i n t t h m e s s a g e :

D I S K W R I T E E R R O R : L I N E n n n n

w h e r e n n n n i t h l i n e S U B M I T w a s t r y i n g t w r i t e t t h t e p o r a r y f i l e w h e n i r a n o u t o s p a c e .

A l o n g a t h e r e i s p a c e o t h d i s k f o r t h e t e m p o r a r y f i l e ,t h e r e i n a p p a r e n t l i m i t o t h s i z e o s u b m i t f i l e . h a v es u c c e s s f u l l y c r e a t e d s u b m i t f i l e t h f u l l s i z e o t h R A d i s k ,a n w a a b l e t e x e c u t e i b h a v i n g t h t e m p o r a r y f i l e w r i t t e nt t h 1 5 8 1 . T h a t ' s 5 1 2 K s u b m i t f i l e , t h l a r g e s t t h a t c a t e s t o m s y s t e m , a n l a r g e r t h a n h a v e e v e r a c t u a l l y n e e d e d .

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

S E [ T E M P O R A R Y = d : ]

w h e r e d i t h e d r i v e s p e c i f i c a t i o n o t h t e m p o r a r y d r i v e . )

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

T e x a m i n e t h e f f e c t s o t h v a r a n t e m p o r a r y f i l e l o c a t i o n s , t t i m e . s u b a n d d u m m y . s u b , c a n b m e n t e d a n s h o u l d n ' t r e q u i r e a dm a y b e ' c o m m e n t s ' r e q u i r e e x p l a n a

C o m m e n t s a r f e a t u r e o t h C C l i n e b e g i n n i n g w i t h a s e m i c o l o n ( ; n o i n t e r p r e t e d o e x e c u t e d b t h e a u s e r e n t e r i n g c o m m a n d s a t h k S U B M I T f i l e a r e c h o e d t t h s c r e e

C r e a t e t h f i l e T I M E . S U B :

t i m e . s u b 1 / 2 1 / 8 8

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

s e t h t e m p o r a r y d r i v es e t d e f [ t e m p o r a r y = $ 2 ]

s e t h s t a r t i n g t i m e t m : c o n f d a t e 0 0 : 0 0 : 0 0

s u b m i t t h f i l e t b e t i m e dm : s u b m i t $ l d u m m y . s u b

s h o w t h e x e c u t i o n t i m em x o n f d a t e

r e s e t t e m p o r a r y d r i v e P L A C Es e t d e f [ t e m p o r a r y = m : ]

C r e a t e t h f i l e d u m m y . s u b :

d u m m y . s u b 1 / 2 5 / 8 8

Page 28: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 28/84

S U B M I T i t w r i t e i t t e m p o r a r y f i l e . D o n ' t f o r g e t t p r o v i d eb o t h p a r a m e t e r s o t h c o m m a n d l i n e ! T h t i m e r e q u i r e d t r e a d t h s u b m i t f i l e , w r i t e t h e t e m p o r a r y f i l e , a n t h e n e c h ot h c o m m a n d s f r o m t h t e m p o r a r y f i l e t t h s c r e e n w i l l b s h o w n a t h b o t t o m o t h s c r e e n a s t h e c u r r e n t d a t e / t i m e .

H e r e a r e t h e t i m e s g e n e r a t e d o m m a c h i n e :

S u b m i t F i l e D r i v e

1 5 7 11 5 8 11 7 5 0

T e m p o r a r y F i l e D r i v e1 5 7 1 1 5 8 1 1 7 5 0

1 1 1

1

A l t i m e s a r e i n s e c o n d s . N o t e t h a t t h e s e a r n o b e n c h m a r k s .Y o a r l e f t t d r a w y o u r o w c o n c l u s i o n s a t t h e i r f i n a lm e a n i n g a n s i g n i f i c a n c e f o y o u r s y s t e m s e t u p . ( M t e m p or a r y f i l e d r i v e i s e t t h 1 7 5 0 R A d i s k . T h l o c a t i o n o t h s u b m i t f i l e d o e s n o s e e m t b s i g n i f i c a n t i t h a t c a s e . )

H o d o e s S U B M I T u s t h t e m p o r a r y f i l e ? O n o i t p u r p o s e si t a l l o w t h s u b s t i t u t i o n o c o m m a n d l i n e p a r a m e t e r s t b p e r f o r m e d . P a r a m e t e r s a r r e p r e s e n t e d i s u b m i t f i l e s b d o l a s i g n f o l l o w e d b d i g i t f r o m o n t n i n e ( $ $ 9 ) . W h e ns u b m i t f i l e i i n v o k e d , a n a r g u m e n t s f o l l o w i n g t h n a m e o t h s u b m i t f i l e a r e s u b s t i t u t e d f o r t h e a p p r o p r i a t e p a r a m e t e r i t h s u b m i t f i l e . S u b m i t f i l e T E S T 0 3 . S U B m a k e s u s e o f c o m m e n tl i n e s a w e l l a i l l u s t r a t i n g p a r a m e t e r p a s s i n g :

$ $ 2 $ 3 $ $ $ $ 7 $ 8 $ $ 1

t y p e s y s i n 5 6 . $ $ $

E x e c u t e T E S T 0 3 . S U B w i t h c o m m a n d l i n e o f

T E S T 0 3 W H A T I T H N A M E O F T H E S U B M I T F I L E B E I N G E X E C U T E D

T h t e m p o r a r y f i l e w i l l b p r i n t e d t t h e s c r e e n . T h r e f e r e n c et $ i t h s u b m i t f i l e h a b e e n r e p l a c e d w i t h ' W H A T ' , r e f e re n c e t $ w i t h ' i s ' a n s o n T h r e f e r e n c e t p a r a m e t e r $ 1 h a b e c o m e ' W H A T 0 ' , n o t h ' E X E C U T E D ' y o m i g h t h a v e e

O n d i g i t i m i s s i n g i n t h i s a n a l a v a l i d p a r a m e t e r i t h d r m a d e o i t f u n c t i o n . W c a fw i t h t h p a r a m e t e r s i T E S T 0 3 . S U

$ $ $ $ $ $ $ $ $ a n d r e m o v i n g t h l i n e :

t y p e s y s i n 5 6 . $ $ $

E x e c u t e t h m o d i f i e d T E S T 0 3 . S U B

T E S T 0 3 I T H N A M E O T H S U

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

A n o t h e r f e a t u r e o t h C C t h a t ts u b m i t f i l e s i ' C o n d i t i o n a l C o t h a t r u u n d e r C P / M P l u s c a T h C C i n i t i a l i z e s t h i s c o d e t r u n . I t h p r o g r a m e n c o u n t e r s a r e t u r n c o d e t u n s u c c e s s f u l b e f ot h C C w i l l s e t h e r e t u r n c o d et e r m i n a t e s w i t h a f a t a l B D O S e r r oi s u b m i t f i l e t h a t b e g i n w i t ht h e p r e v i o u s l y e x e c u t e d c o m m a nc o d e t u n s u c c e s s f u l . S u b m i t f i l e

$ $ $ $ $ $ $ 7 $ 8 $

: d i r

E x e c u t e T E S T 0 5 . S U B w i t h v a r i o u s o m e k i n d o e r r o r . I f t h e r r o r cc o m m a n d o t h l i n e c o n t a i n i n ge d T r a n y t h i n g y o c a t h i n kl i n e w i l l a l w a y s e x e c u t e . h a v eu t i l i t y , l e a l o n e C P / M P l u s c o c o d e t u n s u c c e s s f u l a s t h e r e s u l t

J u s t t m a k e s u r e t h a t c o n d i t i o w o r k , e x e c u t e T E S T 0 5 . S U B w i t h a

Page 29: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 29/84

M E S S A G E

T h e r e i n f o r m a l w a t c a u s e s u b m i t f i l e t p a u s e d u r i n gi t r u n , s h o r t o t e r m i n a t i n g i t T h i s c a n b e p r o b l e m w h e ns u b m i t f i l e i t p e r f o r m o p e r a t i o n s i n v o l v i n g m o r e t h a n o n d i s k . N o p p o r t u n i t y i g i v e n t i n s e r t t h e a p p r o p r i a t e d i s k i t h a p p r o p r i a t e d r i v e . A l s o , t h e r e i n w a t o i n d i c a t e t h a td i s k s w i t c h i n e c e s s a r y o w h i c h d i s k ( s ) a r t b s w i t c h e d .

m e s s a g e . s u b o f f e r s s o l u t i o n t b o t h p r o b l e m s . I e c h o e sm e s s a g e o u t n i n e w o r d s t t h s c r e e n , t h e n p a u s e s t h s u b m i t f i l e u n t i l s i g n a l f r o m t h u s e r i r e c e i v e d . P a r a m e t e r sa n c o m m e n t l i n e s a r u s e d t e c h o t h m e s s a g e . c h a r a c t e ri s t i c o P E i u s e d t p a u s e e x e c u t i o n o f t h s u b m i t f i l e .

P I c a c o p y t a n f r o m d e v i c e s a w e l l a f i l e s . O n d e v i c eu n d e r C P / M i C Q N : , r e p r e s e n t i n g t h k e y b o a r d i a i n p u tc o n t e x t a n t h s c r e e n i a o u t p u t c o n t e x t . W h e n p i c o p i e sf r o m C O N : , i w a i t s f o p r e d e t e r m i n e d s i g n a l ( C T R L - Z , t h e n d - o f - f i l e c h a r a c t e r ) t e n t h e p r o c e s s . T h i s e f f e c t i v e l y h a l t ss u b m i t f i l e e x e c u t i o n u n t i l t h P I o p e r a t i o n i f i n i s h e d .

$ $ $ $ $ $ $ $ $

P r e s s C O N T R O L - z t c o n t i n u e . . .

p i c o n : = c o n :

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

s t r i p t r e a t s a e x c e s s a n c a r r i a gf o l l o w e d b a n o t h e r c a r r i a g e r e t u rr a t h e r t h a n a p a r a g r a p h ) . S T R I P r e a n j o i n s t h e l i n e s t h a t h a d b e e ns i s t s o n l y o f e x c e s s c a r r i a g e r e t u r nw i l l c o n s i s t o s i n g l e l i n e o t e x t .

s t r i p . s u b 1 / 1 5 / 8 8

e r s t r i p p e d . t x tp i s t r i p p e d . t x t = $ le d s t r i p p e d . t x t< m n A L A L A Z - 4 c # s A L A L A Z * * A Z< < m n A L A Z - 2 c # s A L A Z A < < m r i * * A Z - 2 c # s * * A Z A L A L A Z< < e r a s t r i p p e d . b a k

E x e c u t e s t r i p w i t h t h c o m m a n d l

s t r i p < f i l e n a m e >

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

S P A C E d o u b l e s t h l i n e s p a c i n g o e v e r y s i n g l e c a r r i a g e r e t u r n / l i n e t u r n / l i n e f e e d s . I y o u r t e x t w a s i n i d o u b l e - s p a c e d . I i w a d o u b l e -q u a d r u p l e - s p a c e d . C r e a t e t h f i l e S

s p a c e . s u b 1 / 1 5 / 8 8e r s p a c e d . t x tp i p s p a c e d . t x t = $ l

Page 30: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 30/84

M a c h i n e L a n g u a g e I n p u t R

r o u t i n e f o a l r e a s o n s

B G a r r y K i z i a k

I ' s u r e t h a t m a n y o y o u , l i k e m y s e l f , g e g r e a t d e a l o p l e a s u r e o u t o w r i t i n g y o u r o w p r o g r a m s e v e n w h e n t h e r ei c o m m e r c i a l p r o g r a m a v a i l a b l e t h a t w i l l a c c o m p l i s h t h s a m e t h i n g . I t ' s t h e p r i d e a n t h s e n s e o a c c o m p l i s h m e n t t h a tw g e w h e n w c o m p l e t e t h a t l a s t l i n e a n s a " T h e r e ! I t ' sd o n e , a n v i w o r k s ! " I m a n y c a s e s , t h e r e s u l t i e v e n b e t t e rt h a n t h c o m m e r c i a l p r o g r a m , i o n l y b e c a u s e i w a d e s i g n e ds p e c i f i c a l l y t m e e t y o u r n e e d s a n n o s o m e b o d y e l s e ' s .

O f t e n , t h o n t h i n g t h a t d i s t i n g u i s h e s c o m m e r c i a l q u a l i t yp r o g r a m f r o m o n e t h a t y o c r e a t e y o u r s e l f i t h m a n n e r i w h i c h i n p u t i o b t a i n e d f r o m t h u s e r . L e t ' s f a c e i t t h I N P U Ts t a t e m e n t i C o m m o d o r e B A S I C i n o t h m o s t u s e f u l c o m a n d t u s e . H e r e a r s o m e o i t l i m i t a t i o n s I ' s u r e y o c a t h i n k o f m o r e :

1 I y o e n t e r c o m m a o r c o l o n , a ' e x t r a i g n o r e d ' e r r o rm e s s a g e i d i s p l a y e d .

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

3 Y o c a e n t e r c o n t r o l c h a r a c t e r s i t h m i d d l e o t h e i n p u t ,( e . g . P r e s s t h C L R / H O M E k e i n t h e m i d d l e o a i n p u t a n w a t c h t h s c r e e n c l e a r . S i m i l a r p r o b l e m s a r i s e f r o m t h c u r s o r

c o n v e r t i t a n u m e r i c . O c o u r t r a p p i n g h a s t b e d o n e a l o n g w iu s e r d o e s n ' t e n t e r a c c i d e n t a l l yc h a r a c t e r i n s t e a d ) . S i m i l a r l y , p r o bs o m e e r r o r t r a p p i n g .

' B u l l e t - p r o o f i n p u t s u b r o u t i n e s

T h m o s t c o m m o n w a a r o u n d tI N P U T c o m m a n d a a l l . I n s t e a ds u b r o u t i n e ' i w r i t t e n a n d u s e d ww o u l d n o r m a l l y b u s e d . M a n y s m a g a z i n e s , u s e r c l u b l i b r a r i e s , o w f a v o u r i t e s a n h a v e p r o b aT h e r e a r s o m e p r o b l e m s w i t h t h i

1 M o s t s u c h r o u t i n e s m a k e u s c o n s e q u e n c e p r e m a t u r e g a r b a g i n i a n a n n o y i n g d e l a y i y o u r

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

3 I t h e r o u t i n e i s i f a c t , v e r s a t i m a n y d i f f e r e n t t y p e s o i n p u t ) ,

Page 31: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 31/84

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

F i r s t , t y p e i t h a s s e m b l y l a n g u a g e p r o g r a m ( L i s t i n g 1 ) D o n ' t f o r g e t t s a v e i i c a s e y o m a k e m i s t a k e o y o u w a n tt m o d i f y i l a t e r ( s o m e s u g g e s t i o n s a r g i v e n a t h e n o t h a r t i c l e ) . A s s e m b l e i a n s a v e t h e r e s u l t i n g m a c h i n e l a n g u a g ea " i n p u t . o b j " . I y o d o n ' t h a v e a a s s e m b l e r , t y p e i L i s t i n g3 T h i s w i l l c r e a t e t h e i n p u t . o b j f i l e o y o u r d i s k a u t o m a t i c a l l y .T h e n t y p e i t h B A S I C p r o g r a m ( L i s t i n g 2 ) w h i c h i s h o r td e m o n s t r a t i o n o f t h c a p a b i l i t i e s o t h i s r o u t i n e .

U s i n g t h s u b r o u t i n e

B e f o r e e x p l a i n w h a t t h d e m o d o e s , p e r h a p s s h o u l d e x p l a i nt h s y n t a x o t h c a l l i n g s t a t e m e n t i B A S I C , w h i c h i s

s y i n , x , y , i n $ , l e , i d [ , b $ ]

T h s q u a r e b r a c k e t s i n d i c a t e t h a t t h " , b $ " i o p t i o n a l .

I t h i s s t a t e m e n t :

i i t h c a l l i n g a d d r e s s o t h m a c h i n e l a n g u a g e r o u t i n e . I y o a s s e m b l e i w h e r e h a v e , i n = 4 9 1 5 5 ( s e e l i n e 3 i t h B S I d e m o ) .

i t h c o l u m n t h a t y o u w a n t t h e i n p u t t b e g i n i ( 0 - 3 9 ) .

i t h r o t h a t y o u w a n t t h e i n p u t t b o ( 0 - 2 4 ) .

i n i t h s t r i n g v a r i a b l e w h i c h w i l l r e c e i v e t h e i n p u t . Y o m u s t i n i t i a l i z e i n p r i o r t u s i n g t h i s r o u t i n e ; e i t h e r t o s t r i n go b l a n k s , o r t w h a t e v e r y o w o u l d c o n s i d e r t b t h e d e f a u l ti n p u t . T h i s s t r i n g i p r i n t e d t t h s c r e e n w h e n t h i n p u t r o t i n e i e n t e r e d . I i i b l a n k , e v e r y t h i n g a p p e a r s a i n o r m a li n p u t s t a t e m e n t e x c e p t f o t h q u e s t i o n m a r k . I y o p r o v i d ed e f a u l t i n p u t , i c a n b e e d i t e d u s i n g t h c u r s o r k e y s , i n s e r t a n d e l e t e k e y s , e t c . , j u s t a s y o w o u l d e d i t B A S I C p r o g r a m t h d i f f e r e n c e b e i n g t h a t n o a l k e y s a r a c t i v e , j u s t t h o s e t h a t y o s p e c i f y .

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

Y O C A H A V T H C O N V E N I E N C E O

T H F L E X I B I L I T YT H Q U I C K B R O W N B O s t o r ep r o g r a m s B a s i c M / L , G a m e s

T e r m i n a l s R E A D Y T R U A H U N D R E D S O T I M E S F A S T

t h c o n t e n t s i n s t a n t l y . R e p l a c e o c a r t r i d g e . U s a p e r m a n e n t R A a r e a , a a u t o b o o t u t i l i t y . C - 6 4 o t i e s i n c l u d e d . P r i c e : 1 6 $ 6 3 2 M r e a d 5 % 3 D a M o n e y B r a n t y . B r o w n B o x e s , I n c , 2 6 C o 0 1 7 3 0 ; ( 6 1 7 ) 2 7 5 - 0 0 9 0

T H Q U I C K B R O W N B O B T H E O N L Y C A R T R I D G E Y

" . . . e x c e l l e n t , e f f i c i e n t p r o g r a m t h a t c a d o w n t i m e . "1 5 4 1 / 1 5 7 1 _D R i V E A U G N i v l E N T1 5 4 1 / 5 7 D r i v e A l i g n m e n t r e p o r t s t h e a l i g n m e n ta d j u s t m e n t s . O s c r e e n h e l p i a v a i l a b l e w h i l e t h es p e e d a d j u s t m e n t . C o m p l e t e i n s t r u c t i o n m a n u a lE v e n i n c l u d e s i n s t r u c t i o n s o h o t l o a d a l i g n m eW o r k s o t h C 6 4 , S X 6 4 , C 1 2 8 i e i t h e r 6 o 1 2 m o d e ! A u t o b o o t s t a l m o d e s . S e c o n d d r i v e f u l l y sa n i n s t r u c t i o n m a n u a l o n l y

S u p e r 8 U t i l i t i e s i s c o m p l e t e u t i l i t i ( 8 1 N C 1 2 8 c o m p u t e r . A m o n g t h m a n y S u pb f r n t f - • C o p y w h o l e d i s k s f r o m 1 5 4 1 o 1 5 7

C o p y 1 5 4 1 o 1 5 7 1 f i l e s t 1 5 8 1 d i sB a c k u p 1 5 8 1 d i s k s o f i l e s w i t h o 2 1 5 8 1 ' S u p p l i e d o b o t h 3 V 2 " a n 5 V 4 f f d i s k e t t e s s t h a d r i v e .P e r f o r m m a n y C P / M a n M S - D O S u t i l i t y f u n c t i o

Page 32: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 32/84

W h e n i d = 2 , o n l y t h n u m e r i c c h a r a c t e r s 0 - a r a l l o w e d . U s t h i s i d t o a c c e p t i n t e g e r s a s i n p u t . S e b e l o w f o f l o a t i n g p o i n tn u m b e r s .

T h i d e n t i f i c a t i o n n u m b e r i a d d i t i v e i t h s e n s e t h a t i i d = 3( i . e . 1 + 2 ) , b o t h t h e a l p h a b e t i c a n n u m e r i c c h a r a c t e r s a r a l o w e d . E v e r y t h i n g e l s e i i g n o r e d .

W h e n i d = 4 , t h e p e r i o d i a l l o w e d a d e c i m a l p o i n t . T h i sw o u l d b u s e d a l o n g w i t h ( i . e . i d = 6 ) t a l l o w t h i n p u t o d e c i m a l n u m b e r s . B e c a u s e t h i s i d e c i m a l p o i n t , i c a n b e e nt e r e d o n l y o n c e i g i v e n i n p u t . O c o u r s e , i c o u l d b d e l e t e da n t h e n e n t e r e d e l s e w h e r e i t h s a m e i n p u t , i t h u s e r s d s i r e s .

W h e n i d = 8 , c u r s o r u p a n d c u r s o r d o w n k e y s a c t j u s t l i k e t h r e t u r n k e ( i . e . t h e y t e r m i n a t e t h i n p u t ) . Y o c a t e l l w h i c hk e t e r m i n a t e d t h i n p u t b p e e k i n g a l o c a t i o n 7 8 0 . I i c o t a i n s 1 t h e r e t u r n k e w a p r e s s e d . I i c o n t a i n s a 2 t h c u s o d o w n k e w a p r e s s e d , a n i i c o n t a i n s a 3 t h c u r s o r u k e t e r m i n a t e d t h i n p u t .

W h e n i d = 1 6 , f u n c t i o n o n k e ( F i ) c a b e u s e d a a e s c a p ek e y . I n p u t i o c o u r s e t e r m i n a t e d a i y o p r e s s e d t h e r e t u r nk e ( o t h c u r s o r u p / d o w n k e y ) , b u y o c a t e l l i f t h F k e w a p r e s s e d b p e e k i n g a l o c a t i o n 7 8 1 . I i c o n t a i n s 0 t h F k e w a n o p r e s s e d . I i c o n t a i n s 1 t h F k e w a p r e s s e d .

W h e n i d = 3 2 , a n t r a i l i n g b l a n k s a r r e m o v e d f r o m i n $ .

W h e n i d = 6 4 , t h d e f a u l t i n p u t i l e f t j u s t i f i e d w h e n t h i n p u t i e n t e r e d b u t r i g h t j u s t i f i e d w h e n t h i n p u t r o u t i n e i e x i t e d ( s e et h B A S I C d e m o f o a e x a m p l e ) .

A y o m a h a v e n o t i c e d , n p r o v i s i o n h a s b e e n m a d e f o a l o w i n g c h a r a c t e r s s u c h a s t h e d o l l a r s i g n , t h c o m m a , e t c . A i o 1 2 o v e r c o m e s t h i s . W h e n i d = 1 2 8 , t h \ b $ ' m u s t b i c l u d e d i t h e c a l l i n g s t a t e m e n t a n a n c h a r a c t e r s s t o r e d i t h v a r i a b l e b w i l l b e a l l o w e d t b e n t e r e d ( e . g . i b $ = " + - / * M a n i d = 1 2 8 , t h f o u r a r i t h m e t i c o p e r a t o r s m a b e n t e r e d i n t o t h i n p u t ) .

A s t a t e d a b o v e , t h i d e n t i f i c a t i o n n u m b e r i a d d i t i v e . T h u s i i d = 5 1 ( i . e . 1 + 2 + 1 6 + 3 2 ) , o n l y t h u p p e r a n d l o w e r c a s e a l p h a

L i n e 1 0 0 s i m p l y l o a d s t h e m a cm e m o r y .

L i n e s 1 3 0 - 1 4 0 i n i t i a l i z e v a r i o u sc a t e d b e f o r e . T h v a r i a b l e ' r e t ' id e t e r m i n e i t h e i n p u t w a t e r m it h c u r s o r k e y s , w h i l e ' e s c ' i t h t e r m i n e i t h e s c a p e k e ( i . e . F I a r u s e d b e l o w .

L i n e s 1 5 0 - 2 2 0 p r i n t b l a n k t e mc o u l d b a d a t a b a s e p r o g r a m .

L i n e s 2 3 0 - 2 6 0 i n i t i a l i z e s e v e r a l vp l a c e d i t h i s t e m p l a t e t b e m o d i

L i n e s 1 0 0 0 - 1 1 5 0 a l l o w t h u s e ri n p u t r o u t i n e . F o e x a m p l e , t h i l o w s t h u s e r t m o d i f y t h n a m e 1 5 i u s e d ( i . e . 1 + 8 + 1 6 + 1 2 8 ) . T c a s e a l p h a b e t i c c h a r a c t e r s a n t h o d c a n b e u s e d . T h c u r s o r u p / m i n a t e i n p u t a n t h F k e c a t h i r d s t a t e m e n t i n l i n e 1 0 0 0 c h ew a p r e s s e d . I i w a s , c o n t r o l p at h p r o g r a m . I i w a s n ' t , l i n e 1 0 m i n a t e d t h i n p u t . I i w a t h e rk e y , c o n t r o l i p a s s e d t o l i n e 1 0 2 c o n t r o l i p a s s e d t l i n e 1 1 4 0 .

T h r e m a i n i n g l i n e s b e h a v e s i m i l

R u t h p r o g r a m a n n o t i c e h w o r k d u r i n g a i n p u t . A l s o n o t i w o r k t h e y s h o u l d b i d e n t i c a l e d i t i n g B A S I C p r o g r a m . D e p e ne d i t i n g , o n l y c e r t a i n k e y s a r e p e r ( s e e i y o c a p r e d i c t w h i c h o n et h i d ) . T h c u r s o r d o w n k e ( o t h n e x t f i e l d o d a t a a n t h c u rp r e v i o u s f i e l d . W r a p a r o u n d i i e d i t a n f i e l d a n m o v e f r o m f i e A l s o n o t i c e h o q u i c k l y y o c ( s i m p l y h o l d d o w n t h c u r s o r d o

Page 33: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 33/84

I a l s o h a s a s i d e e f f e c t . I f y o d i d n ' t m a k e a n c h a n g e s t t h d a t a w h e n y o r a t h p r o g r a m i n i t i a l l y , r u i a g a i n a n c h a n g e t h n a m e o t h a d d r e s s o r w h a t e v e r . T h e n q u i t t h e p r g r a m a n l i s t i t Y o w i l l s e t h a t t h d a t a s t a t e m e n t s i l i n e s2 4 0 - 2 6 0 w i l l h a v e c h a n g e d a c c o r d i n g l y . T h i s p r o b l e m s h o u l do c c u r o n l y r a r e l y b e c a u s e t h e v a r i a b l e s t h a t y o c r e a t e w i l ln o r m a l l y b s t o r e d i h i g h m e m o r y , n o t w i t h i n t h b a s i c p r g r a m i t s e l f . T e l i m i n a t e t h i s p r o b l e m , a l y o h a v e t d i f o r c e y o u r v a r i a b l e s t b s t o r e d i h i g h m e m o r y s t a t e m e n ts u c h a n a $ = n a $ + " M w i l l d t h i s .

I w o u l d b a i n t e r e s t i n g e x e r c i s e t m o d i f y t h i s p r o g r a m t b e t t e r s u i t y o u r o w n e e d s . F o e x a m p l e , f r e q u e n t l y w h e nd e f a u l t i n p u t i p r e s e n t e d , i i n o a c c e p t a b l e t t h u s e r . A p r e s e n t , t h u s e r m u s t t y p e o v e r t h e d e f a u l t a n e r a s e a n y t h i n gt h a t i l e f t o v e r . M o d i f y t h p r o g r a m s t h a t p r e s s i n g t h C L R / H O M E k e w i l l b l a n k o u t h d e f a u l t i n p u t .

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

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

2 D o n ' t a l l o w a s p a c e a t h f i r s t c h a r a c t e r i a i n p u t o e l s er e m o v e a n l e a d i n g s p a c e s t h a t a r i n p u t w i t h o u t c h a n g i n g t h l e n g t h o t h s t r i n g ( i . e . l e f t - j u s t i f y t h i n p u t ) .

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

4 S k i p o v e r c e r t a i n c h a r a c t e r s ( e . g . s k i p o v e r t h / ' i t h e d a t e1 2 / 2 4 / 8 7 o r s k i p o v e r t h - ' i t h p h o n e n u m b e r 9 9 9 - 9 9 9 -9 9 9 9 , e t c . ) .

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

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

L i s t i n g 1 " i n p u t s r c " ( P A L f o r m a

J L 1 0 0 0K 1 0 1 0C 1 0 2 0E 1 0 3 0K 1 0 4 0J 1 0 5 0O 1 0 6 0C 1 0 7 0C 1 0 8 0A 1 0 9 0C 1 1 0 0C 1 1 1 0G 1 1 2 0N 1 1 3 0K 1 1 4 0E 1 1 5 0G 1 1 6 0I 1 1 7 0P 1 1 8 0M 1 1 9 0B 1 2 0 0N 1 2 1 0H B 1 2 2 0E 1 2 3 0E 1 2 4 0A 1 2 5 0C 1 2 6 0E l 1 2 7 0M 1 2 8 0P I 1 2 9 0J 1 3 0 0C 1 3 1 0E 1 3 2 0C 1 3 3 0B 1 3 4 0L 1 3 5 0E 1 3 6 0C 1 3 7 0D 1 3 8 0E 1 3 9 0H 1 4 0 0C 1 4 1 0C 1 4 2 0I 1 4 3 0G 1 4 4 0J 1 4 5 0C 1 4 6 0K 1 4 7 0O 1 4 8 0O 1 4 9 0

s y 7 0 o p t o o

* * * * * * * * * * * * * * * * * * * * * * *

* m / 1 i n p u t r o u t i n e

* * * * * * * * * * * * * * * * * * * * * * *

* = $ c 0 0 0 o r i g i n o f r o u t i n e s

c o m m a n d j u m p t a b l e

c o p y r i g h t 1 9 8 7g a r r y g k i z i a k

j m p r i n tj m p i n p u t

p r i n t a r o u t i n ei n p u t r o u t i n e

g e c u r s o r p o s i t i o n

c h k c o m = $ a e £ d c h e c k f o c o m m ac o m b y t = $ b 7 f l g e t a b y t e i i l l q t y = $ b 2 4 8 i l l e g a l q u a n t i t yp l o t = $ f f f 0 s e t / r e a d c u r s o r p o s x v a l . b y t e t e m p o r a r y s t o r a g ey v a l . b y t e t e m p o r a r y s t o r a g e

g e t c u r j s r c o m b y t g e c o l u m nc p x # $ 2 8 0 < = x < = 3 9b c s s e t l t o b i s t y v a lt x p h j s c o m b y t g e r o c p # $ 1 9 0 < = y < = 2 4b c s e t l t o o b i gs t x x v a lp l t a d j m p l o t s e c u r s o rs e t l j m i l l q t y

p r i n t a r o u t i n e

p r i n t j s g e t c u rj s c h k c o mj m p $ a a a 4 c o n t i n u e w i t h r o m p r i n

w a i t f o r a k e y s t r o k e

Page 34: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 34/84

M 1 6 6 0 d e c o u n t l c o u n t d o w nM 1 6 7 0 b n g e t l t r a g a i nK 1 6 8 0 d e c c o u n t 2 c o u n t d o w n s o m e m o r eA 1 6 9 0 b n e g e t l t r y a g a i nM 1 7 0 0 b e g e t k e y f l a s h c u r s o rI 1 7 1 0 g e t 2 i t K 1 7 2 0 c o u n t l . b y t e c o u n t e r f o f l a s h i n g c u r s o rB 1 7 3 0 c o u n t 2 . b y t eC 1 7 4 0E 1 7 5 0 i n p u t r o u t i n eG F 1 7 6 0J N 1 7 7 0 l e n = $ 0 2 m a x . n o o f c h a r a c t e r s a l l o w e dH N 1 7 8 0 a s t = $ 0 3 a d d r e s s o f i n p u t s t r i n gO D 1 7 9 0 l e n b = $ b l e n g t h o o p t i o n a l s t r i n gA 1 8 0 0 b s = $ b 3 a d d r e s s o o p t i o n a l s t r i n gP F 1 8 1 0 v a r a d r $ 0 a d d r e s s o f v a r i a b l eB D 1 8 2 0 f i n d v a r = $ b O 8 b f i n d v a r i a b l eB 1 8 3 0 j u s t f . b y t e j u s t i f y f l a gF H 1 8 4 0 e s c f l g . b y t e e s c a p e f l a gA 1 8 5 0 i . b y t e c h a r a c t e r b e i n g e n t e r e dP 1 8 6 0 i . b y t e c h a r a c t e r u n d e r c u r s o rO F 1 8 7 0 i . b y t e m a s k f o a l l o w a b l e i n p p u t sO 1 8 8 0D 1 8 9 0 i n p u t I d # $ 0 0M 1 9 0 0 s t a j u s t f n o j u s t f i c a t i o nP E 1 9 1 0 j s r g e t c u r g e t c u r s o r p o s i t i o nG P 1 9 2 0 c l cB 1 9 3 0 I d a $ d g e t s c r e e n a d d r e s sI G 1 9 4 0 a d c $ d f o b e g i n n i n g o f i n p u tF 1 9 5 0 s t a b e C F 1 9 6 0 I d $ d H 1 9 7 0 a d c # $ 0 0M 1 9 8 0 s t a b e g + 1E E 1 9 9 0 j s r c h k c o mF E 2 0 0 0 j s f i n d v a r f i n d i n p u t v a r i a b l eI K 2 0 1 0 s t a v a r a d r s a v e i t l o c a t i o nG G 2 0 2 0 s t y v a r a d r + 1L D 2 0 3 0 l d y # $ 0 2 m o v e i t d e s c r i p t o rP H 2 0 4 0 i n p l I d a ( v a r a d r ) , y t o z e r o p a g eO 2 0 5 0 s t a l e n , yH 2 0 6 0 d e yD 2 0 7 0 b p l i n p lL 2 0 8 0 I d l e O F 2 0 9 0 b e s e t lF E 2 1 0 0 j s c o m b y t g e m a l e n g t h o f i n p u tC 2 1 1 0 t x M 2 1 2 0 b e s e t lB 2 1 3 0 c p x l e n b i g g e r t h a n l e n g t h o f s t r i n gN 2 1 4 0 b e i n p l aJ 2 1 5 0 b c i n p l a0 2 1 6 0 b c s s e t l y e s , t o o b i gA 2 1 7 0 i n p l a s t x l e nA 2 1 8 0 j s c o m b y t g e i

B 2 3 4 0 i n p 2 l d y c u r p o sA 2 3 5 0 I d a ( b e g ) , y g e t c h a r a c t e r u n d e L 2 3 6 0 s t i s a v e i O 2 3 7 0 s t a i r t e m p o r a r i l yJ 2 3 8 0 i n p 3 j s r g e t k e y g e a k e y p r e s sD I 2 3 9 0 s t a $ d 7 s a v e i t t e m p o r a r i l yL 2 4 0 0 c m # 1 3 3 [ f l ]B 2 4 1 0 b n i n p 4N 2 4 2 0 I d a i C 2 4 3 0 a n # 1 c h e c k i dF I 2 4 4 0 b e i n p 3 n o a l l o w e dF O 2 4 5 0 I d a i qP 2 4 6 0 l d y c u r p o s r e s t o r e c h a r a c t e r u P 2 4 7 0 s t a ( b e g ) , yI 2 4 8 0 l d x # $ s e e s c a p e f i gC 2 4 9 0 s t x e s c f l gN 2 5 0 0 j m p r e t u r nP E 2 5 1 0 i n p 4 c m p # 3 2 [ s p a c e ]I B 2 5 2 0 b e i n p 5L L 2 5 3 0 c m p # 1 6 0 [ s h i f t e d - s p a c e ]L B 2 5 4 0 b n i n p 6L 2 5 5 0 i n p 5 I d a # 3 c o n v e r t t o a n o r m H 2 5 6 0 s t a $ d D 2 5 7 0 j m p g o t i tE 2 5 8 0 i n p 6 c m p # 4 [ 0 I C 2 5 9 0 b c i n p 7D 2 6 0 0 c m # 5 [ 9 ] + lM 2 6 1 0 b c s i n p 7F 2 6 2 0 I d a i dG E 2 6 3 0 a n d # c h e c k i dO 2 6 4 0 b e i n p l 2 n o a l l o w e dD 2 6 5 0 j m g o t i t [ 0 - 9 ]C B 2 6 6 0 i n p 7 c m p # 6 [ a N 2 6 7 0 b c c i n p 8 aI 2 6 8 0 c m p # 9 [ z ] + lB B 2 6 9 0 b c s i n p 8 aJ L 2 7 0 0 i n p 8 I d a i dC 2 7 1 0 a n # c h e c k i O 2 7 2 0 b e i n p l 2 n o t a l l o w e dM 2 7 3 0 j m g o t i t [ a - z ] o [ s h i f t V s n i F P 2 7 4 0 i n p 8 a c m p # 1 9 3 [ s h i f t a A 2 7 5 0 b c i n p 9O D 2 7 6 0 c m p # 2 1 9 [ s h i f t z ] + lE 2 7 7 0 b c s i n p 9K 2 7 8 0 b c i n p 8P 2 7 9 0 i n p 9 c m # 1 5 7 [ c u r s o r l e f t ]L D 2 8 0 0 b n i n p l OJ 2 8 1 0 l d y c u r p o sJ O 2 8 2 0 b e i n p 3 c a n ' t c u r s o r l e f tB 2 8 3 0 I d a i qB 2 8 4 0 s t ( b e g ) , yM 2 8 5 0 d e c c u r p o sE l 2 8 6 0 j m p i n p 2

Page 35: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 35/84

C 3 0 2 0 b e d o w nM 3 0 3 0 c m # 1 4 5 [ c u r s o r u p M 3 0 4 0 b e u M 3 0 5 0 c m p # 1 4 8 [ i n s e r t ]H H 3 0 6 0 b e i n s e r tC J 3 0 7 0 c m p # 4 6 [ .

N 3 0 8 0 b e d e c i m a lD 3 0 9 0 c m p # 2 0 [ d e l e t e ]J G 3 1 0 0 b n i n p l 2L F 3 1 1 0 j m p d e l e t eN 3 1 2 0 i n p l 2 b i t i s p e c i a l c h a r a c t e r s a l l o w e dL 3 1 3 0 b p d o n e n H 3 1 4 0 l d y # $ 0 0H 3 1 5 0 I d a $ d 7A P 3 1 6 0 i n p l 3 c m p ( b s t ) , y y e B 3 1 7 0 b n i n p l 4F 3 1 8 0 j m p g o t i tH D 3 1 9 0 i n p l 4 i n yB K 3 2 0 0 c p y l e n bI N 3 2 1 0 b n i n p l 3J F 3 2 2 0 d o n e j m i n p 3 n o o t h e r k e y s a l l o w e dL 3 2 3 0 u l d # $ 0 3D 3 2 4 0 . b y t e $ 2 I 3 2 5 0 d o w n l d # $ 0 2F P 3 2 6 0 I d a i dN 3 2 7 0 a n # M 3 2 8 0 b e d o n eF L 3 2 9 0 . b y t e $ 2 cP 3 3 0 0 r e t u r n l d x # $ 0 1H C 3 3 1 0 I d a i dL 3 3 2 0 a n # 6 F D 3 3 3 0 b e r e t lA 3 3 4 0 j s j u s t rJ 3 3 5 0 r e t l l d y c u r p o sD 3 3 6 0 I d a i D P 3 3 7 0 s t a ( b e g ) , yN 3 3 8 0 I d i H 3 3 9 0 a n # 3 c h e c k f o r e m o v i n g t r a i l i n g s p a c e sL E 3 4 0 0 b e r e t 4 n N 3 4 1 0 l d y l e nH B 3 4 2 0 d e yN F 3 4 3 0 r e t 2 I d ( a s t ) , y g e t c h a r a c t e r f r o m a K 3 4 4 0 c m p # 3 i s i t a s p a c eA 3 4 5 0 b n r e t 3P 3 4 6 0 d e C 3 4 7 0 b p r e t 2O G 3 4 8 0 r e t 3 i n J F 3 4 9 0 t y P C 3 5 0 0 l d y # $ 0 0M 3 5 1 0 s t a ( v a r a d r ) , yH 3 5 2 0 r e t 4 t x t y p e o r e t u r n i l o c a t i o n 7 8 G E 3 5 3 0 p h

F 3 7 0 0 c p c u r p o sE 3 7 1 0 b e c a n tP 3 7 2 0 I d a ( a s t ) , yI J 3 7 3 0 c m p # 3 i l a s t c h a r a c t e r a s p a O 3 7 . 4 0 b n c a n t c a n ' t i n s e r tK F 3 7 5 0 i n s l d e yK 3 7 6 0 I d a ( b e g ) , y g e t s c r e e n c o d eE 3 7 7 0 p h s a v e i tL 3 7 8 0 I d a ( a s t ) , yO 3 7 9 0 i n yL 3 8 0 0 s t a ( a s t ) , y m o v e c h a r a c t e r i s K 3 8 1 0 p l D 3 8 2 0 s t a ( b e g ) , y m o v e c h a r a c t e r o s cB 3 8 3 0 d e B 3 8 4 0 c p y c u r p o sO C 3 8 5 0 b n i n s lL 3 8 6 0 I d a # 3 2I 3 8 7 0 s t a ( a s t ) , y p u s p a c e i n s t r i n gL D 3 8 8 0 l d x $ c P 3 8 9 0 b e i n s 2P 3 9 0 0 o r a # $ 8 0H 3 9 1 0 i n s 2 s t a ( b e g ) , y p u t s p a c e o n s I K 3 9 2 0 j m p i n p 2F 3 9 3 0 d e l e t e l d y c u r p o sM 3 9 4 0 b n e d e l lC 3 9 5 0 i n c u r s o r i n f i r s t p o s i t i o nK I 3 9 6 0 c p l e o n l y o n e c h a r a c t e rB 3 9 7 0 b n c a n t n o s o c a n ' t d e l e t eJ 3 9 8 0 d e y e s , s p u a s p a c eB 3 9 9 0 I d a # 3 i n t h e f i r s t p o s i t i o nJ 4 0 0 0 s t a ( b e g ) , yP 4 0 1 0 s t a ( a s t ) , yM 4 0 2 0 j m p i n p 2J 4 0 3 0 d e l l I d a i qB 4 0 4 0 s t a ( b e g ) , yK 4 0 5 0 i n i c u r s o r o l a s t c h a r a c t e rJ H 4 0 6 0 c p y l e nG 4 0 7 0 b n d e l 2 n D L 4 0 8 0 d e y y e B 4 0 9 0 I d a ( a s t ) , y g e t l a s t c h a r a c t e rO 4 1 0 0 c m # 3 i s i t s p a c eH C 4 1 1 0 b e d e l 2 y e L 4 1 2 0 i n c c u r p o s n K 4 1 3 0 d e l 2 l d y c u r p o sH 4 1 4 0 d e C 4 1 5 0 I d ( a s t ) , y g e t c h a r a c t e r t o d e lK 4 1 6 0 d e l 3 i n yH 4 1 7 0 c p l e B 4 1 8 0 b e d e l 5G I 4 1 9 0 I d a ( a s t ) , y c h a r a c t e r t o r e p l a c eE 4 2 0 0 p h N 4 2 1 0 I d ( b e g ) , y

6 4 3 8 0 d e c u r p o s M 5 0 6 0 s t y t e n p n

Page 36: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 36/84

O 4 3 9 0 . j n p i n p 2I A 4 4 0 0 g o t i t j s c h e c kJ 4 4 1 0 l d y c u r p o sN 4 4 2 0 I d $ d H 4 4 3 0 s t ( a s t ) , y p u i i s t r i n gD P 4 4 4 0 b m i g o t 3M 4 4 5 0 c m p # $ 6 0L 4 4 6 0 b c c g o t lN 4 4 7 0 a n # $ d £L 4 4 8 0 b n g o t 2D F 4 4 9 0 g o t l a n # $ 3 fM 4 5 0 0 g o t 2 j m p g o t 5P 4 5 1 0 g o t 3 a n # $ 7 fN H 4 5 2 0 c o p # $ 7 fD 4 5 3 0 b n g o t 4C E 4 5 4 0 I d # $ 5 eH 4 5 5 0 g o t 4 o r a # $ 4 0D F 4 5 6 0 g o t 5 l d x $ c 6 1 4 5 7 0 b e g o t 6E L 4 5 8 0 o r a # $ 8 0J 4 5 9 0 g o t 6 s t a ( b e g ) , yI N 4 6 0 0 i n P 4 6 1 0 c p l e 6 4 6 2 0 b n g o t 7B 4 6 3 0 d e E 4 6 4 0 g o t 7 s t y c u r p o sC I 4 6 5 0 j m p i n P 2K 4 6 6 0O 4 6 7 0 j u s t i f y l e f tO L 4 6 8 0J 4 6 9 0 t e n p n . b y t eF 4 7 0 0 t e m p n . b y t eM 4 7 1 0K 4 7 2 0 j u s t l l d y # $ 0 0C 4 7 3 0 s t y t e n p nL 4 7 4 0 I d a ( a s t ) , yK F 4 7 5 0 c a p # 3 N 4 7 6 0 b n j u s 5 a l r e a d y j u s t i f i e dC 4 7 7 0 j u s l i n J E 4 7 8 0 c p l e M I 4 7 9 0 b e j u s 5 a l l s p a c e sH 4 8 0 0 I d ( a s t ) , y6 4 8 1 0 c n p # 3 2M 4 8 2 0 b e j u s lH 4 8 3 0 s t t e n p n f i r s t n o n - s p a c e c h a r a c t e rC H 4 8 4 0 j u s 2 l d t e n p n m o v e l e f tH B 4 8 5 0 s t a ( a s t ) , yH 4 8 6 0 i n c t e n p nA 4 8 7 0 i n c t e n p nL C 4 8 8 0 l d y t e n p nH 4 8 9 0 c p y l e nE 4 9 0 0 b e j u s 3

F 5 0 7 0 I d ( a s t ) , yE 5 0 8 0 c r n p # 3 H 5 0 9 0 b n j u s t 5 a l r e a d y j u s t i f i e dK 5 1 0 0 j u s t l d e M 5 1 1 0 b m j u s t 5 a l s p a c e sH 5 1 2 0 I d a ( a s t ) , yG 5 1 3 0 c m p # 3 J B 5 1 4 0 b e j u s t lH 5 1 5 0 s t y t e n p n f i r s t n o n - s p a c e c h a r aB 5 1 6 0 j u s t 2 l d t e n p nH 5 1 7 0 s t a ( a s t ) , yB 5 1 8 0 d e c t e n p nM 5 1 9 0 d e c t e n p nL G 5 2 0 0 l d y t e n p nJ 5 2 1 0 b m j u s t 3L 5 2 2 0 I d ( a s t ) , yP 5 2 3 0 b n j u s t 2O 5 2 4 0 b e j u s t 2I 5 2 5 0 j u s t 3 l d t e n p n r e s t a r e s p a c e sD 5 2 6 0 I d a # 3 I 5 2 7 0 j u s t 4 s t a ( a s t ) , yL F 5 2 8 0 d e yP L 5 2 9 0 b p l j u s t 4K 5 3 0 0 j u s t S r t E 5 3 1 0H 5 3 2 0 p r i n t s t r i n gI 5 3 3 0C 5 3 4 0 p r i a s t I d a $ d C 5 3 5 0 p h L 5 3 6 0 l d y y v a lA 5 3 7 0 l d x v a lK 5 3 8 0 c l I A 5 3 9 0 j s r p l o tL 5 4 0 0 l d # $ 0 0E P 5 4 1 0 p r i l I d a ( a s t ) , yF 5 4 2 0 j s r $ f f d 2G 5 4 3 0 i n

x N 5 4 4 0 c p y l e nP F 5 4 5 0 b n p r i lM 5 4 6 0 p l F 5 4 7 0 s t a $ d E 5 4 8 0 r t s1 0 5 4 9 0G 5 5 0 0 c h e c k j u s t i f y f l a gM 5 5 1 0I N 5 5 2 0 c h e c k b i t j u s t fO 5 5 3 0 b m c h a l r e a d y o nN 5 5 4 0 I d a i dB I 5 5 5 0 a n # 6 L 5 5 6 0 b e c h n o a l l o w e d< 2 5 5 7 0 j s r j u s t l j u s t i f y s t r i n g a n

L i s t i n g 2 " i n p u t d e m o " J 1 1 8 0 d a t a 2 4 8 , 3 2 , 1 8 , 1 9 5 , 1 6 9 , 0

Page 37: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 37/84

C E 1 0 0 i f a = 0 t h e n a = l : l o a d " i n p u t . o b j " , 8 , 1L N 1 1 0 . p r i n t " { d r ) ( g r e e n | ( 1 4 r i g h t } I N P U T D E M O "B 1 2 p o k e 5 3 2 8 1 , 0 : p o k e 5 3 2 8 0 , 0 : p o k e 5 3 2 7 2 , 2 3C G 1 3 0 p r = 4 9 1 5 2 : i n = 4 9 1 5 5 : r e t = 7 8 0 : e s c = 7 8 1I A 1 4 0 b $ = " . " : c $ = " - " : d $ = " $ "H 1 5 0 s y s p r , 1 , 4 , " N a m e : "B P 1 6 0 s y s p r , 1 , 6 , " A d d r e s s : "J C 1 7 0 s y s p r , 1 , 8 , " C i t y : "J 1 8 0 s y s p r , 2 3 , 8 , " P h o n e : "O G 1 9 0 s y s p r , 1 , 1 0 , " M o u n t O w e d : { r v s } { c y a n } { 1 0 s p a c e s } { r v s o f f } D u e s "O 2 0 0 s y s p r , 1 4 , l l , " { r v s } { 1 0 s p a c e s } { r v s o f f } D i s k sM 2 1 s y p r , 1 4 , 1 2 , " { r v s } { 1 0 s p a c e s } { r v s o f f } M a g a z i n e sF D 2 2 0 s y s p r , 1 4 , 1 3 , " { r e d } { r v s } { 1 0 s p a c e s } { r v s o f f } T o t a lB 2 3 r e a d n a $ , a d $ , c i $ , p h $ , d u $ , d i $ , m a $ , t l $J P 2 4 0 d a t a " G a r r y K i z i a k { 8 s p a c e s } " , " 2 3 8 1 D u n c a s t e r D r i v e { 5 s p a c e s } "I 2 5 d a t a " B u r l i n g t o n { 5 s p a c e s } " , " 3 3 5 - 4 8 3 7 "B 2 6 d a t a " { s p a c e s } $ 0 . 0 0 " , " { 5 s p a c e s } $ 3 . 5 0 " ,

" { s p a c e s } $ 1 2 . 0 0 " , " { 4 s p a c e s } $ 1 5 . 5 0 "A F 1 0 0 0 p r i n t " { y e l l o w } . " : s y s i n , 7 , 4 , n a $ , 2 0 , 1 5 3 , b $ : i f p e e k ( e s c ) t h e n 1 1 6 0H 1 0 1 0 o n p e e k ( r e t ) g o t o 1 0 2 0 , 1 0 2 0 , 1 1 4 0K 1 0 2 0 p r i n t " { y e l l o w } " : s y s i n , 1 0 , 6 , a d $ , 2 5 , 1 5 5 , b $ : i f p e e k ( e s c ) t h e n 1 1 6 0M 1 0 3 0 o n p e e k ( r e t ) g o t o 1 0 4 0 , 1 0 4 0 , 1 0 0 0M 1 0 4 0 p r i n t " { y e l l o w } " : s y s i n , 7 , 8 , c i $ , 1 5 , 1 5 3 , b $ : i f p e e k ( e s c ) t h e n 1 1 6 0O 1 0 5 0 o n p e e k ( r e t ) g o t o 1 0 6 0 , 1 0 6 0 , 1 0 2 0O 1 0 6 0 p r i n t " { y e l l o w } " : s y s i n , 3 0 , 8 , p h $ , 8 , 1 5 4 , c $ : i f p e e k ( e s c ) t h e n 1 1 6 0A P 1 0 7 0 o n p e e k ( r e t ) g o t o 1 0 8 0 , 1 0 8 0 , 1 0 4 0D 1 0 8 0 p r i n t " { c y a n } { r v s } " ; : s y s i n , 1 4 , 1 0 , d u $ , 1 0 , 2 2 2 , d $ : i f p e e k ( e s c ) t h e n 1 1 6 0H 1 0 9 0 o n p e e k ( r e t ) g o t o 1 1 0 0 , 1 1 0 0 , 1 0 6 0I 1 1 0 0 p r i n t " { c y a n } { r v s } " ; : s y s i n , 1 4 , l l , d i $ , 1 0 , 2 2 2 , d $ : i f p e e k ( e s c ) t h e n 1 1 6 0J 1 1 1 0 o n p e e k ( r e t ) g o t o 1 1 2 0 , 1 1 2 0 , 1 0 8 0I M 1 1 2 0 p r i n t " { c y a n } { r v s } " ; : s y s i n , 1 4 , 1 2 , m a $ , 1 0 , 2 2 2 , d $ : i f p e e k ( e s c ) t h e n 1 1 6 0I 1 1 3 0 o n p e e k ( r e t ) g o t o 1 1 4 0 , 1 1 4 0 , 1 1 0 0C B 1 1 4 0 p r i n t " { r e d } { r v s } " ; : s y s i n , 1 4 , 1 3 , t l $ , 1 0 , 2 2 2 , d $ : i f p e e k ( e s c ) t h e n 1 1 6 0F B 1 1 5 0 o n p e e k ( r e t ) g o t o 1 0 0 0 , 1 0 0 0 , 1 1 2 0B 1 1 6 0 s y s p r , 4 , 2 0 , " { r v s o f f } { w h i t e } T h a t ' s a l t h e r e i t o i t ! ! ! "

L i s t i n g 3 " i n p u t o b j m a k e r "

A 1 o p e n 1 5 , 8 , 1 5 , " s O : i n p u t . o b j "F 2 o p e n 1 , 8 , 1 , " 0 : i n p u t . o b j "F 3 p r i n t i l , c h r $ ( 0 ) ; c h r $ ( 1 9 2 ) ;E P 4 0 f o i = 0 t o 8 5 3I 5 r e a d xN 6 0 p r i n t f l , c h r $ ( x ) ;F 7 n e x tD 8 c l o s eB 9 c l o s e 1 E 1 0 e n D P 1 0 0 0 d a t a 7 6 , 3 9 , 1 9 2 , 7 6 , 9 5 ,F O 1 0 1 0 d a t a 1 8 3 , 2 2 4 , 4 0 1 7 6 , 2 1

1 9 2 , 0 1 4 2 , 7

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

A 1 1 9 0 d a t a 1 4 1 ,C 1 2 0 0 d a t a 1 4 1 ,A 1 2 1 0 d a t a 2 0 8 ,J 1 2 2 0 d a t a 9 2 F P 1 2 3 0 d a t a 1 9 2 ,D 1 2 4 0 d a t a 2 0 8 ,D 1 2 5 0 d a t a 4 8 H 1 2 6 0 d a t a 4 1 O 1 2 7 0 d a t a 1 4 P 1 2 8 0 d a t a 2 4 0 ,L 1 2 9 0 d a t a 2 1 9 ,F 1 3 0 0 d a t a 2 5 3 ,N 1 3 1 0 d a t a 7 6 F 1 3 2 0 d a t a 1 9 6 ,J P 1 3 3 0 d a t a 3 2 A 1 3 4 0 d a t a 2 4 0 ,L 1 3 5 0 d a t a 2 0 1 ,J F 1 3 6 0 d a t a 2 0 8 ,J B 1 3 7 0 d a t a 1 6 0 ,J I 1 3 8 0 d a t a 1 9 4 ,P 1 3 9 0 d a t a 3 H 1 4 0 0 d a t a 2 4 1 ,J H 1 4 1 0 d a t a 3 O 1 4 2 0 d a t a 2 5 1 ,G 1 4 3 0 d a t a 1 3 6 ,C 1 4 4 0 d a t a 2 0 0 ,B 1 4 5 0 d a t a 1 9 5 ,J 1 4 6 0 d a t a 4 A 1 4 7 0 d a t a 1 9 4 ,F 1 4 8 0 d a t a 2 5 1 ,F 1 4 9 0 d a t a 2 0 1 ,K 1 5 0 0 d a t a 2 0 0 ,D 1 5 1 0 d a t a 2 3 9 ,P 1 5 2 0 d a t a 1 2 8 ,N D 1 5 3 0 d a t a 2 0 0 ,F 1 5 4 0 d a t a 1 4 5 ,I F 1 5 5 0 d a t a 2 0 0 ,L 1 5 6 0 d a t a 2 4 0 ,I 1 5 7 0 d a t a 1 9 6 ,N 1 5 8 0 d a t a 1 6 6 ,C 1 5 9 0 d a t a 3 K 1 6 0 0 d a t a 1 9 9 ,E 1 6 1 0 d a t a 1 9 3 ,O 1 6 2 0 d a t a 3 E 1 6 3 0 d a t a 2 I H 1 6 4 0 d a t a 2 0 8 ,K 1 6 5 0 d a t a 9 L 1 6 6 0 d a t a 1 3 2 ,L 1 6 7 0 d a t a 1 5 3 ,J D 1 6 8 0 d a t a 2 D 1 6 9 0 d a t a 1 5 4 ,

9 1 1 9 2 ,9 3 1 9 2 ,2 2 1 7 3 ,

1 9 2 , 1 6 4 ,7 6 , 1 4 6 ,

7 1 6 9 ,1 4 4 , 1 4

2 2 4 0 ,2 0 1 , 9 1

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

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

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

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

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

7 6 2 0 3 ,1 6 4 , 2

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

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

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

4 8 , 1 3 ,4 1 , 6 3 ,

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

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

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

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

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

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

2 1 7 3 ,1 1 7 3 ,

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

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

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

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

2 0 1 7 7 ,2 9

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

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

7 6 1 3 4 ,9 4 , 9 ,

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

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

1 7 7 , 1 & 2 ,

4 1 2 5 1 ,

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

7 6 4 6 4 6 4 4

1 7 9 , 2 4 4 ,

9 4 9 4 ,

2 5 3 ,3 2 ,

2 0 8 ,5

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

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

6 4 , 1 9 6 ,

0 3 2

2 0 1 ,1 4 5 ,

Page 38: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 38/84

S p r i t e R o t a t i o n

N e T w i s t

b J i F r o s t

O n T r a n s a c t o r e v e r y t w o m o n t h s i n o t n e a r l y e n o u g h f o c o n f i r m e d M a d d i c t l i k e m e s e v e n t u a l l y b o u g h t c o p l e t e s e o b a c k i s s u e s . B e t w e e n p r o j e c t s , i m w i f e i s n ' t i s i s t i n g m o t h l a w n o f i t h l e a k i n g f a u c e t s , t h e n t i r eT r a n s a c t o r c o l l e c t i o n i r e r e a d f o n e p r o g r a m m i n g i d e a s .m a c h i n e l a n g u a g e v e r s i o n o C h r i s Z a m a r a ' s S p r i t e R o t a t e( T r a n s a c t o r , V o l u m e I s s u e 1 s e e m e d s u i t a b l e c h a l l e n g e s o

d e c i d e d t g i v e i t r y . T h p r o j e c t t o o k o v e r a y e a r o s t u d y ,t r i a l , a n ( m o s t l y ) e r r o r p r i o r t s u c c e s s f u l c o m p l e t i o n . A l o n gt h w a l e a r n e d t u s R O t r i g r o u t i n e s , u n r a v e l l e d t h em y s t e r i e s o f f l o a t i n g p o i n t m a t h a n m a s t e r e d s o m e o t h c o m p l e x i t i e s o g r a p h i c r o t a t i o n .

U s i n g t h R o t a t e R o u t i n e

T h R o t a t e p r o g r a m i n c l u d e d w i t h t h i s a r t i c l e w i l l s p i n a c o p l e t e s p r i t e i n u n d e r a s e c o n d , f a s t e n o u g h t a l l o w u s f r o mB A S I C . U s t h s y n t a x s y 4 9 1 5 2 , s a , d a , c x , c y , r a . s a n r a r e t h e s o u r c e a n d e s t i n a t i o n a d d r e s s e s o t h t a r g e t s p r i t e . C a n C a r e t h e v e r t i c a l a n h o r i z o n t a l a x e s o r o t a t i o n , r e s p e ct i v e l y , w i t h r o w s a n d c o l u m n s n u m b e r e d f r o m z e r o i t h u p e l e f t c o r n e r . R i t h r a d i a n a n g l e o r o t a t i o n . T h r o t a t er o u t i n e r e q u i r e s t h a t t h s o u r c e s p r i t e b m e m o r y r e s i d e n t a n w i l l c r e a t e o n r o t a t e d c o p y p e c a l l . T r e d u c e p r o g r a ml e n g t h , v a r i a b l e l i m i t s a r n o t e s t e d .

R o t a t i o n c a l c u l a t i o n s a r e p e r f o r m e d o s e p i x e l s o n l y , a l l o wi n s m a l l s p r i t e s t b r o t a t e d v e r y q u i c k l y . T p r e v e n t a n n o yi n f l i c k e r w h e n r o t a t i n g l a r g e s p r i t e s , c h a n g e s p r i t e p o i n t e r so n l y a f t e r t h e r o t a t i o n i c o m p l e t e . B e c a u s e t h e r o t a t e d s p r i t ei r o u n d e d t p i x e l b o u n d a r i e s , a e x a c t r e p r e s e n t a t i o n i

Q u a n t i z a t i o n

A d e v e l o p e d t h s p r i t e r o t a t e p u n p l a n n e d d i f f i c u l t i e s , p r i m a r i l ya n q u a n t i z a t i o n l i m i t s . Q u a n t i z a ti s t s i i n t e g e r s t e p s o n l y , w i t h n D i s c o u n t i n g t h p o s s i b i l i t y o a s a r q u a n t i z e d . Y o u r o r a n g e m i g h tm i n e p r o b a b l y 2 o m o r e b u n p o s i t i o n s o s p r i t e o b i m a c a d r a w a s p o t a t h X , p o s i t t i o n 1 2 . 7 3 , 7 . 4 2 . T h r o t a t i o n e q u a l l o w a p r e c i s e c a l c u l a t i o n o e x a l o n g s . Q u a n t i z a t i o n , h o w e v e r , pm e n t , l e a d i n g t d i s t o r t i o n o t h e h o l e s . I m r o t a t e r o u t i n e , h o l e sa d j a c e n t b i t s a l o n g t h a x i s a b e t w e e n t h e m . T h c u r r e n t v e r s i of e h o l e s w h e n s o l i d ( a l l b y t e sg l e s n e a r 4 d e g r e e s . W i t h o u t t h es e m b l e S w i s s C h e e s e .

U n d e r s t a n d i n g t h R o u t i n e

W i t h e x p e r i e n c e , e x p r e s s i n g i n t ec a f r a c t i o n s b h a n d l e d ? I e v e rs e p a r a t e s i n t e g e r a n f r a c t i o n a l q ur i g h t o t h d e c i m a l w e i g h t e d b s a m e r u l e s a p p l y i b i n a r y . W h i l ee b 2 E 0 , t h i s c o n v e n t i o n m a b e t h a t v a l u e s a r e c o r r e c t l y u s e d t

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

Page 39: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 39/84

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

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

S e v e r a l a p p r o x i m a t i o n s u s e d i t h s p r i t e r o t a t e r o u t i n e s a r ep e r m i t t e d b t h s m a l l s i z e ( 2 b y 2 4 p i x e l s ) o s p r i t e s . A n s p r i t e p i x e l p o s i t i o n c a n b e e x p r e s s e d i f i v e b i t s , a l l o w i n g at r u n c a t e d m u l t i p l i c a t i o n . S i n e s a n c o s i n e s c a n b e a p p r o x i m a te t a a c c u r a c y o o n p a r t i 2 5 i s i n g l e b y t e ( M S B2 E - 1 ) . F o s p r i t e - s i z e d o b j e c t s h i g h e r a c c u r a c y i u n n e c e s s a r y .T h e s e t w o s i m p l i f i c a t i o n s r e d u c e c o d e r e q u i r e m e n t s a n s p e e dc a l c u l a t i o n s c o n s i d e r a b l y .

T h p r e s e n t r o u t i n e a c c o m p l i s h e s m o r i g i n a l g o a l s ; h o w e v e r ,I ' n o c o m p l e t e l y s a t i s f i e d . I ' s t i l l r e s e a r c h i n g a n a n a l y zi n t f i n d t h e u l t i m a t e r o t a t i o n a l g o r i t h m . I y o h a v e q u e st i o n s o t h c u r r e n t r o u t i n e o r s u g g e s t i o n s o b e t t e r m e t h o d s ,f e e l f r e e t d r o p m l i n e . h a v e o n e i d e a I ' l i k e t o t r r i g h tn o w , b u f i r s t I ' d b e t t e r f i n i s h m o w i n g t h l a w n .

L i s t i n g 1 B A S I C d e m o p r o g r a m f o r t h e s p r i t e r o t a t e r o u t i n e .

L 1 r e r e v o l v i n g g u n t u r r e t d e m o n s t r a t e sA 2 r e s p r i t e r o t a t i o n a n d " h o l e s "N 3 i m = 0 t h e n m = l : l o a d " r o t a t e . o " , 8 , 1P 4 p o k e 5 3 2 8 0 , 0 : p o k e 5 3 2 8 1 , 0 : p r i n t " [ d r ] "L L 5 0 s p = 1 3 0 : p o k e 2 0 4 0 , s pP 6 x = 5 5 3 5 0 : p o k e x , l : v i c = 5 3 2 4 8

7 p o k e v i e , 4 0 : p o k e v i c + 1 , 2 0 08 p o k e v i c + 2 1 , 19 f o r i = 0 t o 6 2 r e a d1 0 p o k e 8 3 2 0 + i , a : n e x t1 1 s s = 8 3 2 0 : k = 0 : c x = 1 2 : c y = 1 01 2 f o i = t 3 1 3 r a = 2 * [ p i ] / 3 2 * i : d s = 8 3 8 4 + 6 4 * k1 4 0 s y s 4 9 1 5 2 , s s , d s , c x , c y , r a1 5 p o k e 2 0 4 0 , 1 3 1 + k1 6 k = k + l a n d

G L F

1 7 0 n e x t1 8 d a t a1 9 0 d a t a2 0 d a t a2 1 d a t a2 2 d a t a

0 0 0

3 6 3 6

C 1 0 0 0B 1 0 1 0M 1 0 2 0O 1 0 3 0I K 1 0 4 0M 1 0 5 0J 1 0 6 0G E 1 0 7 0L P 1 0 8 0G 1 0 9 0E 1 1 0 0G 1 1 1 0I E 1 1 2 0G 1 1 3 0G P 1 1 4 0C 1 1 5 0J 1 0 0 0P 1 0 1 0L f 1 0 2 0L 1 0 3 0P 1 0 4 0I 1 0 5 0F 1 0 6 0A 1 0 7 0K 1 0 8 0L 1 0 9 0F I 1 1 0 0A 1 1 1 0I 1 1 2 0P 1 1 3 0D 1 1 4 0C 1 1 5 0G 1 1 6 0J P 1 1 7 0M 1 1 8 0J 1 1 9 0N 1 2 0 0P 1 2 1 0F 1 2 2 0J 1 2 3 0B 1 2 . 4 0C 1 2 5 0K 1 2 6 0L 1 2 7 0

r e g e n e r a t o r f o r " r o t a t e . o "n d $ = " r o t a t e . o " : r e n a m e o f p r o gn d = 8 2 4 : s a = 4 9 1 5 2 : c h = 9 9 9 2 5f o i = t n d r e a d xc h = c h - x : n e x ti c h < > 0 t h e n p r i n t " d a t a e r r o r " :p r i n t ' d a t a o k n o c r e a t i n g f i l e " r e s t o r eo p e n 8 , 8 , l , " 0 : " + f $p r i n t f 8 , c h r $ ( s a / 2 5 6 ) c h r $ ( s a - i n t ( s f o r i = l t n d r e a dp r i n t f 8 , c h r $ ( x ) ; : n e x tc l o s ep r i n f p r g f i l e M I ; f $ ; " ' c r e a t e d . . p r i n t " t h i s g e n e r a t o r n o l o n g e r n e

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

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

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

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

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

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

8 1 9 5 , 1 0 9 ,

1 8 4 3 2 4 0 3 2

1 9 4 3 2

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

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

1 2 1 2 ,

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

3 2 1 9 4 ,2 0 7 ,

F 1 4 2 0 d a t a 1 0 9 , 1 9 0 , 1 9 4 , 1 4 1 , 2 0 6 , 1 9 4 , 1 8 9 , 2 4 L i s t i n g 3 M e r l i n - f o r m a t a s s e m b l

Page 40: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 40/84

H 1 4 3 0O L 1 4 4 0J F 1 4 5 0K 1 4 6 0D 1 4 7 0O 1 4 8 0N 1 4 9 0B E 1 5 0 0A 1 5 1 0L I 1 5 2 0D 1 5 3 0F P 1 5 4 0K 1 5 5 0F 1 5 6 0G 1 5 7 0L 1 5 8 0B 1 5 9 0E 1 6 0 0E 1 6 1 0D 1 6 2 0G O 1 6 3 0E 1 6 4 0E 1 6 5 0L 1 6 6 0P 1 6 7 0J P 1 6 8 0D 1 6 9 0G 1 7 0 0O 1 7 1 0M 1 7 2 0G C 1 7 3 0N 1 7 4 0C B 1 7 5 0J 1 7 6 0K 1 7 7 0L 1 7 8 0P 1 7 9 0K E 1 8 0 0A 1 8 1 0J 1 8 2 0I F 1 8 3 0J 1 8 4 0N 1 8 5 0C 1 8 6 0M 1 8 7 0G 1 8 8 0

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

1 0 9 , 1 9 1 , 1 9 4 ,1 9 4 , 4 8 , 1 9 ,

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

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

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

9 6 1 2 8 , 6 4 1 1 6 2 , 1

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

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

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

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

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

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

9 6 0 , 0 ,0 0 0 0 0 , 0 ,

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

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

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

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

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

4 1 7 7 4 , 2 4 ,

1 9 3 , 1 7 3 2 1 6

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

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

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

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

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

0 , 0 ,0 , 0 ,0 , 0 ,

1 9 4 , 1 4 1 7 6 , 1

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

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

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

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

9 6 1 4 0 1 4

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

1 1 7 1 3 8 , 2

1 8 2 0 1 3 1 7

2 0 8 , 2 5 4 4 1 6

2 1 6 0 0 0

s p r i t e r o t a t e r e j a 8 f r o m b a s i c p r o g r a m b c h r i s z a m a r at r a n s a c t o r v o l 5 # t o u s e s y 4 9 1 5 2 , s s , d s , e x , c y , r a

j i m f r o s t4 7 4 0 h a r b i n s o n a v l m e s a c a 9 2 0 4 1

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

f a c s g nf a c e x pf a c m Os t f a l x yl d f a l a ys i n ec o s i n ec h k c o me v a l e x pf l t f i x

b a s i c

$ 6 $ 6 $ 6 $ b b d 4$ b b a 2$ e 2 6 b$ e 2 6 4$ a e f d$ a d 9 e$ b 8 0 1

o r $ c 0 0 0

e n t r y p o i n t

j s r e v a lj s f l t f i xs t $ f s t $ f

j s r e v a lj s f l t f i xs t y $ f ds t a $ f e

j s r e v a lj s f l t f i xs t e

j s r e v a lj s f l t f i xs t y c y

j s r e v a l

l d x # < a r gl d y # > a r gj s r s t f a l x y

j s r s i n ej s r n o r m i z e

s t s i n ms t x s g n s i n

I d # < a r gl d | > a r g

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

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

/ f e t c h e / c o n v e r t t o i n t e g/ a n d s a v e

/ f e t c h c / c o n v e r t t o i n t e g/ a n d s a v e

; a r g i n f a

/ s t o r e f a r g u m e n

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

/ s a v e s i n e/ a n d s i g n

p o s i t i o n a c r o s s s p r i t e j s m u l t / r e t u r n x l s i n a i

Page 41: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 41/84

c o n v e r t o n e b y t e s i n e a n c o s i n e t o t w o b y t es i g n e d i n t e g e r w i t h s i g n a d j u s t e d f o a d d i n gt c u r r e n t v a l u e x 2 ( x ) , y 2 ( x ) . a i n c r e a s e sn o t e t h a t t h e r o t a t e d ( x l ) = x c e n t e r ( e x )

* s t h a t a i n c r e a s e s x d e c r e a s e sr e s u l t i n g i n s i g n s t h e o p p o s i t e o i n i t i a le x p e c t a t i o n s

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

l d x # $ 0 0s t n e

l d x s g n c o sl d y c o s mI d a # $ 0 1

j s m u l ts t a c o s ls t c o s h

c a l c u l a t e s i g n e d( u s e d t m i n i m i z e

l d x s g n c o sI d c o s ml s t a I d a # $ 0 1

j s m u l ts t h c o s ls t h c o s h

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

l d # $ 0 1s t x n e g

l d x s g n s i nl d y s i n mI d # $ 0 1j s m u l ts t a s i n ls t y s i n h

c a l c u l a t e s i g n e d( u s e d t m i n i m i z e

l d x s g n s i nI d s i n ml s t a I d a # $ 0 1

j s m u l ts t h s i n ls t h s i n h

c o s t e r m s

/ d o n ' t f l i p s i g n

/ m u l t i p l y b

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

c o s t e r m s f o r h a l f p i x e l s t e pr o u n d i n g a n q u a n t i z a t i o n e r r o r s )

; h a s c o s / 2; h a s c o s / 2/ m u l t i p l y b

/ r e t u r n t w b y t e c o s / 2 i a

s i t e r m s

/ t h i s t i m e f l i p s i g n

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

s i n t e r m s f o h a l f p i x e l s t e pr o u n d i n g a n q u a n t i z a t i o n e r r o r s )

; h a s s i n / 2; h a s i n / 2/ m u l t i p l y b

/ r e t u r n t w o b y t e s i n / 2 i n a

s t a t b y ls t t b y h

/ a n d s t a s h f i r s t t/ l o w a n h i g h b y t e

a d d t e r m s t o f o r m r e m a i n d e r o t a b l e

l d # $ 0 0

t b x 2 y 2 c l I d t b x l , xa d c o s ls t a t b x l + l , x

I d t b x h , xa d c c o s hs t a t b x h + l , x

c l I d a t b y l , xa d c s i n ls t t b y l + l , x

I d t b y h , xa d c s i n hs t t b y h + l , x

i n c p # 2 b n e t b x 2 y 2

/ t a b l e p o i n t e r

/ f i n i s h e d 2 4 t h e l e/ n l o o p t i d o n

r o t a t e s p r i t e a f t e r c a l c u l a t i n g n e p o s i

I d a # $ f fs t b c o u n ts t y

n x t r o w i n c y Oj s n e w r o w

l d # $ 0 0

n x t b y t e i n b c o u n t

l d y b c o u n tI d a ( $ f b ) , y

l d # $ 0 8a s l a d j b y t

a l a s t p a s s t h r o u g ho f b y t e b e i n g t e s t e d

s h i f t r o lb e s p i n b i t

s h i f t 2 i n d e b n s h i f t

c p # 2 b n n x t b y t e

/ o f i r s t p a s s y = / c a l c u l a t e y b a s e d

/ s t a r t e a c h r o w a

/ b y t e c o u n t e r

/ i n d e x t o b y t e/ g e t b y t e

; b i t s p e b y t e !/ s h i f t m s b t o c a r r

s h i f t , b i o f a d j

/ s h i f t n e x t b i t t o/ i e m p t y d o n ' t r o

/ n e x t c o l u m n/ l a s t b i t ?

/ l a s t x ?/ n t r a n o t h e r

a d y s i n ls t x 2

; a d d - y s i n a l o w b y t e f o r o u n d; s a v e f o r h a l f p i x e l c a l c

I d a x 2l s

Page 42: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 42/84

I d t b x h , xa d y s i n hs t a x 2

♦ i n t e g e r x 2 n o i

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

f r a c t i o n a l x 2 i n

♦ c a l c u l a t e y 2 = i n t ( + x l s i n a - y l c o s a + c y )

c l I d t b y l , xa d y c o s ls t a y 2 1

I d a t b y h , xa d y c o s hs t a y 2s t y 2

f t e s t o u o r a n g e

b m t o o b i gc m p # 2 1b c s t o o b i g

I d x b m i t o o b i gc m # 2 b c s t o o b i g

I d a y 2j s p l o t

w i t h c u r r e n t b i i n e f l a g s e t ,

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

; n o w a d d x s i n h i g h b y t e; t - y c o s a h i g h b y t e, ' s a v e i n t e g e r ( l o s t i p l o t ); a n d a s e c o n d c o p y f o r l a t e r

a n

; i n e g a t i v e; o l a r g e r t h a n 2 / s k i p o t h e r c a l c u l a t i o n s

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

; p l o t o d e s t i n a t i o n s p r i t e

i n c a r r y , b i t i s n e x t a d j a c e n t b i t .t h e r e a r e t w o a d j a c e n t b i t s , s o p l o t

h a l f p i x e l b e t w e e n t h e m

t o o b i g I d $ 6 b p n o p l o t

c l I d x 2 a d h c o s l

I d x a d c h c o s hs t x

b m n o p l o tc m # 2 b c n o p l o t

I d a y 2 1a d h s i n l

I d a y 2 ha d h s i n hs t a y 2

b m i n o p l o t

/ r e t r i e v e t e s t b y t e/ u n l e s s b i s e n o p l o t

; a d d h a l f c o s l o w

; a d d i n t e g e r y c o s; s a v e i n t e g e r x 2 f o r p l o t t i n g

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

; c a r r y a l w a y s c l e a r; a d d h a l f s i

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

/ i n e g a t i v e; o l a r g e r t h a n 2

l s l s

c l a d y t a

I d a b i t m a s k , xo r ( $ f d ) , ys t ( $ f d ) , y

r t

b i t m a s k d f b % 1 0 0 0 0 0 0 0d f 1 0 1 0 0 0 0 0 0d f % 0 0 1 0 0 0 0 0

J A A A M A A A Ad f % 0 0 0 1 0 0 0 0d f % 0 0 0 0 1 0 0 0d f b % 0 0 0 0 0 1 0 0d f % 0 0 0 0 0 0 1 0d f b 1 0 0 0 0 0 0 0 1

h a n d l e a l l y r e l a t e ds p r i t e r o w r o t a t e d

n e w r o w l d # $ 0 1s t x n e g

l d x s g n s i nl d s i n m

s e I d a c ys b y s t y

j s m u l t

a d c # $ 8 0s t y s i n l

t y a d c e xs t y s i n h

l d s g n c o sl d y c o s ml d a y lj s m u l t

a d c # $ 8 0s t a y c o s l

t y a d c s t y c o s h

a r r a n g e b i t s t o f l a gb y t e s o e a c h r o

; a = x 2 / 8

; a d d b y t e s f r o m/ p o i n t e r t o s p r i t e

/ g e t v a l u e o f b i t 7 o r n e w b i t w i t h c / s a v e w i t h n e w b i

c a l c u l a t i o n s o n t i

/ s e t f l a g/ f l i p s i g n o f p r o d

/ s i g n o s i n e/ o n e b y t e s i n e

; c e n t e r o f r o t a / s u b t r a c t c u r r e n t / v a l u e y t o r o t a t e

/ r e t u r n - y l s i n a i

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

/ g e t h i g h ( i n t e g e r/ a n d a d o f f s e t/ s a v e i n t e g e r p a r

/ s i g n o f c o s i n e/ o n e b y t e c o s i n e

/ r e t u r n - y l c o s a i

/ h a l f r o u n d

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

a d j a c e n t b i t p a i r s

j s e v a l e x pr t

r t / l s b i n a m s i

Page 43: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 43/84

m u l t i p l y o n b y t e* ( t 2 3 i a v

t o d e t e r m i n e s i g n

m u l t s t y t e m p is t m s i g nl d # $ 0 0s t r e s h il d # $ 0 1

c o n v e r t a c e v a l u e

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

o f p r o d u c t

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

/ g u e s s s i g n n e

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

e m # $ 0 0b p l a p o s

d e o # $ f fa d c # $ 0 1

i n

a p o s d e xs t x p s i g n

a s a s a s

s t t e m p 2

I d a # $ 0 0l d # $ 0 5

s h i f t m a s r o r e s h i

a s t e m p 2b e e n o b i t m

c l a d c t e m p ib e e n o b i t m

i n c r e s h i

n o b i t m d e xb n e s h i f t m

t a I d r e s h i

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

/ c o n v e r t n e g a t i v e/ v a l u e t o p o s i t i v e

/ a d j u s t f o r n e x t i n s t r u c t i o n

/ s e t s i g n f l a g p o s i t i v e/ s a v e s i g n f l a g

/ s i n c e t w i c e s p r i t e w i d t h i / 2 m a b i t s , 6 a n a r / a l w a y s z e r o t r a s h t h e m

/ a n d s a v e r e s u l t

/ c l e a r l s b o p r o d u c t/ f i v e b i t s t o m u l t i p l y

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

/ s h i f t m s b t o c a r r y/ i n o c a r r y d o n ' t a d d

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

/ d e c r e m e n t c o u n t e r/ a n d l o o p t i l l s i b i t s

/ h o l d r e s u l t l o w

* d e t e r m i n e s i g n o p r o d u c t , ,

t a / s a v e r e s h i f o r f o l l o w i n g

o h i f fb y t e

n o r m i z e

n o r l

v a i l

v a l O

v a l o k

z s g n

£ a w l V a l u e J L i l U OK i t h b i t v a l u e

I d a f a c e x pc m p # $ 8 1b e v a i l

e m # $ 8 0b e v a l o k

e m # $ 7 8b e v a l O

t a I d f a c m O

l s i n c p # $ 8 0b n n o r l

h e 2 I d a # $ f f

h e 2 I d # $ 0 0

h e 2 I d f a c m O

l d # $ 0 0a s l f a c s g nb e z s g n

l d # $ 0 1

r t

v a r i a b l e s f o r r o t a t e

r e s h ip s i g nm s i g na r s i n mc o s my s i n ly s i n hy c o s ly c o s he c s g n s i ns g n c o sn e y y x

d 0 d 0 d 0 d 0 d 0 d 0 d 0 d 0 d 0 d 0 d 0 d 0 d 0 d 0 d s 0 1d 0

• d 0 d 0

s i n g l e2 e - l

/ i e x p i s 8 v a l

/ i e x p i s 8 n

/ i e x i 7 v

/ m o v e e x p o n e n t t o/ g e t f a m s

/ s h i f t b i t s a n d i/ u n t i l b i h a ; 2 e - l

/ s k i p n e x t i n s t r u; 1 / 2 5 6 l e s s t h a n

/ s k i p n e x t i n s t r u

/ s k i p n e x t i n s t r u

/ s e t f o p o s i t i / s h i f t n e g b i t t o; i n c a r r y , s i g

/ s e t f o r n e g a t i

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

Page 44: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 44/84

S t r u c t u r e d D A T A a n S e e d i n

C o n s u l t t h o r a c l e i n s i d e y o u r c o m p u t e

b A u d r y s V i l k a s

T h p r o g r a m t h a t a c c o m p a n i e s t h i s a r t i c l e w a w r i t t e n i C o m m o d o r e B A S I C a n i a e x e r c i s e i u s i n g s t r u c t u r e d d a t as t a t e m e n t s a n s e e d i n g t h r a n d o m f u n c t i o n R N p r o v i d e d b t h b a s i c i n t e r p r e t e r . w i l l c a l l i t h H e x a g r a m P r o g r a m f o r e a s o n s w h i c h w i l l s o o n b c l e a r . T h i s p r o g r a m m a b e m b e ll i s h e d w i t h m a n y " n o t t o d i f f i c u l t t i m p l e m e n t " s u b r o u t i n e s ,p r o v i d i n g t h r e a d e r w i t h h i o r h e r o w v e r s i o n .

M o t i v a t i o n

I t h S e p t e m b e r 1 9 8 6 i s s u e o f T r a n s a c t o r ( V o l u m e 7 I s s u e2 ) t h e r e i a i n t e r e s t i n g l i t t l e t i d b i t c a l l e d " A n i m a l s : A E e r c i s e i n A r t i f i c i a l I n t e l l i g e n c e " , b C h r i s Z a m a r a . I i h c o n s t r u c t s a 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 e a i i u s e d . . . " b u s e r i n t e r a c t i o n w i t h t h p r o g r a m . Q u e s t i o n s a r a s k e d b t h m a c h i n e a n t h e u s e r ' s a n s w e r s a r e s t o r e d i r e c o r d t b r e f e r e n c e d l a t e r a t h p r o g r a m m a t u r e s .O t h o t h e r h a n d , i t h M a 1 0 t h , 1 9 8 6 i s s u e o f S c i e n c eN e w s t h e r e i a a r t i c l e " I n s i d e A v e r a g e s " b I v a r s P e t e r s o n ,i w h i c h h d i s c u s s e s D i a c o n i s ' a n a l y s i s o s y l l a b l e p a t t e r n s i P l a t o ' s b o o k s . U s i n g t e c h n i q u e s t h a t d e p e n d o n c e r t a i n a v e ra g e s b e i n g k n o w n t h o u g h o r i g i n a l d a t a a r m i s s i n g , a n u s i n gc e r t a i n s t a t i s t i c a l t e c h n i q u e s a p p l i e d t t h e s e s o - c a l l e d h i d d e na v e r a g e s , D i a c o n i s i a b l e t c o n c l u d e t h a t P l a t o w r o t e h i b o o k s " t o p t b o t t o m " . T h e s e t e c h n i q u e s a r a p p l i e d i s u c ht e c h n o l o g y a X - r a y t o m o g r a p h y a n s i d e - v i e w r a d a r . w i l ln o g i n t o a n t e c h n i c a l d e t a i l o t h e s e s u b j e c t s , b u w i l l i s t e a d p r o v i d e t h r e a d e r w i t h t h g i s t o t h H e x a g r a m P r g r a m , w h i c h i l i t t l e m o r e l i g h t - w e i g h t ' .

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

R e a d i n g t h H e x a g r a m s

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

C h 'H e af a t

T u L a k j o y

L F i r b e a

C h eT h u m o v

K ' aW a t d a n

K ' uE a r

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

Page 45: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 45/84

t h e m h e r e . T h e r e a r f o u r b a s i c p r i n c i p l e s w o r t h n o t i n gt h o u g h : t h e y a r " T h e G r e a t Y i n " , " T h e L e s s e r Y a n g " , ' T h eL e s s e r Y i n " a n " T h e G r e a t Y a n g " . T h e i r m y s t e r i o u s p o l a r it i e s d e t e r m i n e w h e t h e r t h l i n e s i n h e x a g r a m a r c h a n g i n g o n o t . T h u s , t h c o n c e p t o f d i s t i n c t h e x a g r a m p a i r i a r r i v e d a w h e n t h e r e i c h a n g i n g l i n e .

I o n r e c e i v e s a c h a n g i n g l i n e , H e x a g r a m G e n e r a t i n g P r g r a m c o u l d m a y b e h i g h l i g h t t h e l i n e a n m a r k i w i t h a ' c t i n d i c a t e t h e c h a n g e . T h i s i t h l i n e t o n o t e w h e n r e a d i n g t h h e x a g r a m ' s a s s o c i a t e d t e x t , w h i c h c o u l d b t i t l e d " l i n e s " . T h h e x a g r a m s a r n u m b e r e d f r o m t h b o t t o m u p s t a r t i n g a l i n eo n ( a t h b o t t o m ) a n g o i n g u t l i n e s i ( a t h t o p ) . F o e x a m p l e , s u p p o s e w a s t h q u e s t i o n " H o w m a n y t i m e s m a

a s t h s a m e q u e s t i o n ? " a n w g e t h f o l l o w i n g t w h e x ag r a m s , # ( " Y o u t h f u l F o l l y " ) a n # ( " T h e C r e a t i v e " ) :

s i x t h p l a c ef i f t h p l a c ef o u r t h p l a c et h i r d p l a c es e c o n d p l a c ef i r s t p l a c e

# #

T h f i r s t h e x a g r a m ( # 4 ) i c o m p o s e d o " y i n " l i n e s e x c e p t f o " y a n g " l i n e i n t h s e c o n d a n s i x t h p l a c e s . T h e r e a r f o u r

d y n a m i c y i ( i t h f i r s t , t h i r d , f o u r t h a n f i f t h p l a c e s ) . T h e s ea r t h l i n e s , i t h i s c a s e , w h i c h y i e l d d i s t i n c t s e c o n d h e x ag r a m . W h e n o n r e a d s t h h e x a g r a m , i a d d i t i o n t r e a d i n gT h I m a g e a n T h J u d g e m e n t , i t h i s c a s e , o n a l s o r e a d s t h c h a n g i n g l i n e s i n h e x a g r a m # 4 ( N o t e t h a t h e x a g r a m # 4 c o c e r n s t h r e p e a t e d a s k i n g o t h s a m e q u e s t i o n " l o g i c a lg l i t c h " . ) T h s e c o n d h e x a g r a m # 1 T h C r e a t i v e i a l s or e a d b u t n t e x t a s s o c i a t e d w i t h t h l i n e s n e e d s t b r e a d . O c o u r s e , o n m a n o r e c e i v e a n c h a n g i n g l i n e s , s o n l y T h I m a g e a n T h J u d g e m e n t a r t b r e a d a n t h h e x a g r a mp a i r i s . n o n d i s t i n c t . T r a d i t i o n a l l y , i o n l y o n e c h a n g e o c c u r s i

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

S o m e H i s t o r i c a l B a c k g r o u n d

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

T h u s , t h u s e o f t h C a n o n o C hf l e c t i o n a n t h o u g h t i n o n e w ,o T a o i s t , C o n f u c i a n a n B u d d h i f e m o r e r e c e n t s t u d e n t s o t h m a t h e m a t i c i a n , B a r o n G o t t f r i e dt o r s o c a l c u l u s ; t h p s y c h o a n a l yd e n t o S i g m u n d F r e u d ; t h N o H e s s e ( a u t h o r o T h G l a s s B e a d

L e i b n i z r e f e r r e d t t h e / C h i n m e t i c " ; h a h l i v e d l a t e r h m i g p l o f B o o l e a n a l g e b r a ( t h e f o s c i e n c e ) .

I p a r t i c u l a r , t h a n c i e n t C h i n e sg r a m s t h e m s e l v e s a r s h r o u d e dw e a t h e r - l i k e s y m b o l s . S u c h p h em e t e o r o l o g i s t s , a r k n o w n a s t h e

E s s e n t i a l l y , t h e s e a r e t h e s e o b u l e n c e a n c h a o s , t h d i f f i c u l t i ew e a t h e r . T h m a t h e m a t i c i a n a n n a s t y ( A . D . 9 6 0 - 1 2 7 9 ) , S h a o Y uh s i ' s d e s c r i p t i o n " f o l l o w i n g n c o n d i t i o n s " . T h e s e p a t t e r n s a r et w t r i g r a m s p r o d u c i n g s u c h p r i m

T h K o H e x a g r a m # 4 4 , C h ' i e T h W i n d C o m e s , t r a d i t i o n a l l y n

a t o i t h f i f t hi t h e f o u r t hi t h t h i r di t h s e c o n di t h f i r s t

1 1 1

1 1 1 1

T h u s 1 1 o ( 1 0 1 o r O i l ) s a y , c a n b e t h o u g h t o a s y m b o l i c T h e d a t a s t a t e m e n t s a r c h o s

Page 46: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 46/84

r e p r e s e n t a t i o n o t h s t a t i c y a n g n u m e r a l ( 7 ) , ( i . e . n o t h n u m b e r 7 ) g e n e r a t e d b s o m e m e a n s , s a f l i p p i n g t h r e e c o i n sa o n c e , ( w h e r e s t a n d s f o h e a d s a n s t a n d s f o t a i l s ) a n 1 0 ( o 0 0 o 0 1 0 ) t h r e p r e s e n t a t i o n o s t a t i c y i ( 8 g e n e ra t e d s i m i l a r l y .

I t h r e e h e a d s o t a i l s a r e n c o u n t e r e d ( o 6 ) t h h e x a g r a m sa r e . t h e n c h a n g i n g , y i e l d i n g d i s t i n c t p a i r , a s h o w n a b o v e .N o t e t h a t t h a b o v e b i n a r y s y m b o l s d n o f o r m t r u e m a t h em a t i c a l d e s c r i p t i o n o b i n a r y n u m b e r i t h m o d e r n s e n s e ,t h o u g h t h a n c i e n t s c h o l a r s m a h a v e m y s t e r i o u s l y i n s e r t e di m p l i c i t v a l u e s o o j u s t a i a f f i E E - t y p e f o r m a t w h i c hm a u s a i m p l i c i t t r e p r e s e n t f l o a t i n g p o i n t n u m b e r s .

T o d a y t h C h i n g i w i d e l y u s e d a a o r a c l e a w e l l a g u i d e t t h s t u d y o a n c i e n t C h i n e s e c h a r a c t e r s a n t t h m y r i a d o p h i l o s o p h i e s i n h e r e n t i i t I i t h g e o C h i n e s ea s t r o l o g y , b u h a o t h e r a s p e c t s a w e l l . I h a n a t u r a l a f f i n i t yt c o m p u t e r p r o g r a m m i n g , b e i n g B o o l e a n s y s t e m .

F o t h o s e w h a r i n t e r e s t e d , a n u n s o l v e d p r o b l e m , a s f a r a w k n o w , i t h g e n e r a t i o n o t h e s o - c a l l e d S h c h u t s k i i n u b e r s : n u m b e r s a s s i g n e d t t h h e x a g r a m s c o n c e r n i n g t h o c u r r e n c e o t h f o u r m a n t i c f o r m s : y u a n , h e n g , l i a n c h e n ,c u r i o u s l y e x t a n t i e x a c t l y h a l f o t h 6 h e x a g r a m s o t h f i r s tl a y e r o w i n g o t h t e x t . T h e r e s e e m s t b n f o r m u l a e o p a t t e r n s a s t w h t h e y o c c u r i s o m e h e x a g r a m s b u n o i o t h e r s . I n d e e d , t h e / C h i n g h a c h a n g e d m u c h s i n c e i t i n c e pt i o n , a n i i t i n c i p i e n t s t a g e c o n s i s t e d o o r a l m a n t i c t r a d it i o n s t h a t l o s t t h e i r o r i g i n a l m e a n i n g s t h r o u g h g r a d u a l p h i l ol o g i c a l r e d e f i n i t i o n o t h m a n t i c f o r m u l a e .

T h i n t e r s e c t i o n o t h h o s t o m e a n i n g s d e r i v e d f r o m a i q u i r y o t h e / C h i n g b r i n g s u s o n t o t h f r o n t i e r s o a r t i f i c i a l i t e l l i g e n c e . T h e s e g r e a t v a r i e t i e s o i n t e r p r e t a t i o n a r e m p l o y e di c e r t a i n p s y c h o a n a l y t i c g a m e s w h i c h a r u s e r f r i e n d l y , g i i n t h e m s e n s e o v o l i t i o n . F o e x a m p l e , t h D A T A s t a t e m e n t si t h H e x a g r a m P r o g r a m c a b a n s t a t e m e n t s , p h r a s e s o rs y m b o l s w i t h r e p e t i t i o n a m o n g t h e s t a t e m e n t s . T h u s i t h c o m p u t e r p i c k s d a t a 1 2 i m a b " M o r s e C o d e b e e p " , o a n a n i m a l n o i s e , o f l a s h i n g s c r e e n t o g e t h e r w i t h t h u n d e rc l a p f o l l o w e d b s o m e c o m f o r t i n g w o r d s , a n f u r t h e r m o r e i m a g e n e r a t e o n o m o r e D A T A s t a t e m e n t s w i t h s u c h n o t i o n s .

1 2 6 + 2 * n , w h e r e n = 0 , . . . , 6 3 a i ol i s t i n g , b u i s o m e w h a t m o r eh e x a g r a m - n a m i n g r o u t i n e s e e ng r a m ( c o m p a r e B A S I C l i n e s t h2 6 ) . h a v e d e c o d e d t h e a p p r o p r t t h c o r r e c t d a t a n u m b e r . i n c t o g e t h e r w i t h t h a c t u a l n a m e o t t h a t n u m b e r i n g i t h d a t a s ta c t u a l l y t w o n u m b e r s f o e a c h h e

T c o n s u l t t h e o r a c l e , r u t h b t w i n t e g e r s i r e s p o n s e t t h b e r s y o u s e , t h s l o w e r t h p r o gi t i t Y o p l a y t h " S t r a n g e A T a o i s t i d e a t h a t h e x a g r a m i te a c h l i n e .

O c o u r s e , y o m a r e s t r u c t u r ei n c o r p o r a t i n g i d e a s f r o m t h " Af i l e s o d i s k g o v e r n e d b t h d w h a t e v e r y o w i s h . E v e n i n cc r e a t e h e p t a g r a m s , o t 2 5 f o o n l y l i m i t e d b y o u r i m a g i n a t i o n .

I s u m m a r y , t h h e x a g r a m - g e n e r i z e d C h i n g . I n s t e a d o f l i p p i n gt g e n e r a t e h e x a g r a m s a n t h e n lc i a t e d t e x t , e v e r y t h i n g c o u l d b g r a m . T h i s p r o g r a m t o o k l o nh o u r s o p r o g r a m m i n g a n r e s e a h o p e y o u e n j o y i t M s p e c i L i t z i n g e r , P r o f . R o L e i p n i k , I n gn t a n n i , D r I b r a h i m M u s t a f a a n f u s u g g e s t i o n s . A l l m i s t a k e s a r t h e y a r f e a n f a b e t w e e n . D r T e x t - t o - H e x a g r a m P r o c e s s o r i g u a g e . I e m p l o y s w o r d p r o c e sa s s o c i a t e d f i l e s . W w o u l d a p p r e cc a r d w i t h y o u r i d e a s c o n c e r n i n gg r a m p r o g r a m , a w e l l a n o t e s o

P l e a s e s e n d a l c o r r e s p o n d e n c e t o

5 L e g g e , J . C h i n g , C a u s e w a y B o o k s , N e Y o r k P 1 2 d a t a 1 2 6 , r e c e p t i v e * t e n t h m o n t hI L 1 2 8 d a t a 1 2 8 , 2 s p l i t t i n g a p a r t * n i n t h

Page 47: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 47/84

6 S h c h u t s k i i , I . R e s e a r c h e s o t h C h i n g ,P r i n c e t o n U n i v e r s i t y P r e s s

7 W i l h e l m / B a y n e s , C h i n g , P r i n c e t o n U n i v e r s i t y P r e s s

8 W i l h e l m , E i g h t L e c t u r e s o t h C h i n g ,P r i n c e t o n U n i v e r s i t y P r e s s

9 S h a o Y u n g , P l u m B l o s s o m N u m e r o l o g y

1 0 W i n c u p p , R e d i s c o v e r i n g t h C h i n g ,D o u b l e d a y , N e Y o r k

1 1 T r a n s a c t o r , V o l u m e 7 I s s u e

1 2 S c i e n c e N e w s , 5 / 8 6

L i s t i n g : T h H e x a g r a m P r o g r a m

( T h i s p r o g r a m w i l l r u o a l 8 - b i t C o m m o d o r e c o m p u t e r s ) .

1 r e s t * * p r o g r a m b y a u d r y v i l k a s a n j a m e s c e n t a n n i c o p y r i g h t 1 9 8 6 * * *p r i n t c h r $ ( 1 4 7 ) : d i m w $ ( 6 4 , 2 ) : t = 0 : z = 0 : b $ = c h r $ ( 1 9 2 ) : b 2 $ = b $ + b $ : b 5 $ = b 2 $ + b 2 $ + b $i n p u t " i n t e g e r l " ; xi n p u f ' i n t e g e r 2 " ; y : p r i n t : p r i n tf o r x = l t of o r l = i n t ( r n d ( O ) * x ) t o i n t ( r n d ( l ) * y )i = i n t ( r n d ( l ) * 2 )j = i n t ( r n d ( l ) * 2 )k = i n t ( r n d ( l ) * 2 )

1 n e x t1 i f i = 0 a n j = a n d k = 0 t h e n s = l : p = 2 : g o t o 2 1 i f i = l a n d j = a n k = t h e n s = 2 : p = l : g o t o 2 1 s = i + j + k1 p = 1 5 i f i = 0 a n j = a n k = g o t o 2 1 i f i = 0 a n d j = a n k = 0 g o t o 2 1 i f i = l a n j = a n d k = 0 g o t o 2 1 i f i = 0 a n j = a n d k = l g o t o 2 1 i f i = l a n d j = a n k = l g o t o 2 2 i i = a n j = a n d k = 0 g o t o 2 2 1 p r i n t " 6 " ; b 2 $ ; " " ; b 2 $ ; " " ; b 5 $ ;2 p r i n t " 9 " ; b 5 $ ;2 p r i n t " 8 " ; b 2 $ ;2 p r i n t " 7 " ; b 5 $ ;

" ; b 2 $ ; "" ; b 2 $ ; "

" ; b 5 $ ; "

" ; b 2 $ ; "" ; b 2 $ ; "

" ; t i $ : g o t o 2 : r e m m o v i n g y i n l i n e" ; t i $ : g o t o 2 : r e m m o v i n g y a n g l i n e

; b 2 $ ; " " ; t i $ : g o t o 2 5 : r e m s t a t i c y i n" ; t i $ : g o t o 2 5 : r e m s t a t i c y a n g

6 1 3 d a t a 1 3 0 , 3 h o l d i n g t o g e t h e r * t h i r dL 1 3 d a t a 1 3 2 , 2 c o n t e m p l a t i o n * f o u r t h oH 1 3 d a t a 1 3 4 , 1 e n t h u s i a s m * s e c o n d m o n t L 1 3 d a t a 1 3 6 , 3 p r o g r e s s * f i r s t m o n t hB 1 3 d a t a 1 3 8 , 4 g a t h e r i n g t o g e t h e r * s e c E C 1 4 0 d a t a 1 4 0 , 1 s t a g n a t i o n * s e v e n t h m o n P 1 4 2 d a t a 1 4 2 , 1 m o d e s t y * e l e v e n t h m o n t hF 1 4 d a t a 1 4 4 , 5 k e e p i n g s t i l l * n i n t h m o I F 1 4 6 d a t a 1 4 6 , 3 o b s t r u c t i o n * t e n t h m o n t G 1 4 d a t a 1 4 8 , 5 g r a d u a l d e v e l o p m e n t * t w B 1 5 d a t a 1 5 0 , 6 p r e p o n d e r e n c e o f t h e s A 1 5 d a t a 1 5 2 , 5 w a n d e r e r * t h i r d m o n t h (B 1 5 d a t a 1 5 4 , 3 i n f l u e n c e ' f o u r t h m o n t hM 1 5 d a t a 1 5 6 , 3 r e t r e a t * s i x t h m o n t h ( aB 1 5 d a t a 1 5 8 , a r m y * t h i r d m o n t hI 1 6 d a t a 1 6 0 , f o l l y * t w e l f t h m o n t hE 1 6 d a t a 1 6 2 , 2 d a n g e r * t e n t h o e l e v e n I B 1 6 4 d a t a 1 6 4 , 5 d i s p e r s i o n ' f i f t h m o n t hO 1 6 d a t a 1 6 6 , 4 d e l i v e r a n c e * f i r s t m o n t E 1 6 8 d a t a 1 6 8 , 6 b e f o r e c o m p l e t i o n * t e n tF 1 7 d a t a 1 7 0 , 4 o p p r e s s i o n * e i g h t h m o n t C 1 7 d a t a 1 7 2 , c o n f l i c t * s e c o n d m o n t hO 1 7 d a t a 1 7 4 , 4 p u s h i n g u p w a r d s * e l e v e n E 1 7 d a t a 1 7 6 , 1 w o r k o n w h a t i s p o i l eL 1 7 8 d a t a 1 7 8 , 4 t h w e l l * f o u r t h m o n t hP 1 8 d a t a 1 8 0 , 5 g e n t l e n e s s * s e v e n t h m o n N 1 8 d a t a 1 8 2 , 3 d u r a t i o n * s i x t h m o n t hB 1 8 d a t a 1 8 4 , 5 t h c a u l d r o n * f i f t h m o n H C 1 8 6 d a t a 1 8 6 , 6 p r e p o n d e r a n c e o f t h e g F 1 8 d a t a 1 8 8 , 4 c o m i n g t o m e e t * f i f t h m K 1 9 d a t a 1 9 0 , 2 r e t u r n * e l e v e n t h m o n t hG D 1 9 2 d a t a 1 9 2 , 2 p r o v i d i n g n o u r i s h m e n t * M 1 9 d a t a 1 9 4 , 3 d i f f i c u l t y i t h e b e g i J E 1 9 6 d a t a 1 9 6 , 4 i n c r e a s e * t w e l f t h m o n t hO 1 9 d a t a 1 9 8 , 5 s h o c k * f i r s t o r s e c o n d A 2 0 d a t a 2 0 0 , 2 b i t i n g t h r o u g h * n i n t h m H 2 0 d a t a 2 0 2 , 1 f o l l o w i n g * f i r s t m o n t hI N 2 0 4 d a t a 2 0 4 , 2 i n n o c e n c e * e i g h t h m o n t hC 2 0 d a t a 2 0 6 , 3 d a r k e n i n g o f t h e l i g h t P 2 0 d a t a 2 0 8 , 2 g r a c e * s e v e n t h m o n t hD 2 1 d a t a 2 1 0 , 6 3 a f t e r c o m p l e t i o n * n i n t h E 2 1 d a t a 2 1 2 , 3 7 f a m i l y * f o u r t h m o n t hN 2 1 4 d a t a 2 1 4 , 5 5 a b u n d a n c e * f i f t h m o n t hF 2 1 6 d a t a 2 1 6 , 3 t h e c l i n g i n g * e i g h t h m o M 2 1 d a t a 2 1 8 , 4 9 r e v o l u t i o n * s e v e n t h m o n G 2 2 d a t a 2 2 0 , 1 f e l l o w s h i p * s i x t h m o n t h

Page 48: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 48/84

C 6 H e F i l e E d i t o r

t o o l f o r c h e c k i n g a n e d i t i n g C 6 b i n a r y

b B o b K o d a d e k

A f t e r e n t e r i n g a v e r y l a r g e m a c h i n e l a n g u a g e l i s t i n g f r o mm a j o r p u b l i c a t i o n , w a f a c e d w i t h t h d i l e m m a o h a v i n gs e r i o u s l y f l a w e d p r o g r a m . K n o w i n g t h a t m o s t p r o g r a m s a r t h o r o u g h l y t e s t e d p r i o r t p u b l i c a t i o n , t h e e r r o r s w e r e p r o b ab l m i n e . O b v i o u s l y , h a m a d e s o m e s e r i o u s m i s t a k e s i e t e r i n g t h h e x a d e c i m a l l i s t i n g , t h o u g h d i d u s e t h c h e c k s u mu t i l i t y p r o v i d e d .

M o s t m a c h i n e l a n g u a g e m o n i t o r s f o t h C - 6 4 u s a e i g h tb y t e d i s p l a y l i n e , b u s o m e h e p r o g r a m l i s t i n g s d n o f o l l o wt h i s c o n v e n t i o n . S i n c e t h i s p a r t i c u l a r l i s t i n g u s e d 1 b y t e s p e l i n e , u s i n g a m a c h i n e l a n g u a g e m o n i t o r t f i n d t h e r r o r sp r o v e d i m p o s s i b l e . M o n l y r e c o u r s e w a t w r i t e p r o g r a mt h a t w o u l d p r o d u c e h a r d c o p y o t h o b j e c t f i l e , i d e n t i c a l t t h m a g a z i n e l i s t i n g , a n r e c h e c k e a c h b y t e f o e r r o r . I t o o km a n y h o u r s t r e v i e w a n e d i t t h o b j e c t c o d e u n t i l a l t h e e rr o r s h a b e e n c o r r e c t e d . W h d i t h c h e c k s u m p r o g r a m a l l o wt h e s e e r r o r s ?

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

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

T h a c c o m p a n y i n g p r o g r a m , " Ht i o n f o a l m o s t e v e r y o n e . Y o p r i n t t h h e x a d e c i m a l c o n t e n t su s i n g s i m p l e l i n e n u m b e r s a n b e r o f c o l u m n s d i s p l a y e d i u s e rv i d e d t t h d i s k d i r e c t o r y a n cm a i n t e n a n c e o p e r a t i o n s . T h e r e i f o c o n v e r t i n g h e x a n d d e c i m a l f a s t f i l e c o p i e r , t o r e a d / a l t e r t h o t c o n v e r t P R f i l e s t S E ( o

T h C o m m a n d M e n u

s a m e a i t h B A S I C e d i t o r . P r e s s R e t u r n t a c c e p t t h p r e s e n tl i n e a n d i s p l a y t h e n e x t l i n e . Y o m a m o v e t h c u r s o r t a n

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

Page 49: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 49/84

l i n e o t h s c r e e n . T e x i t t h i s m o d e t y p e a a s t e r i s k o r o t h e rn o n - h e x c h a r a c t e r a n p r e s s R e t u r n . W i t h o u t a a r g u m e n t ,e d i t i n g \ y i l l s t a r t w i t h t h f i r s t l i n e . E x a m p l e s :

1 0 E n t e r s e d i t m o d e a l i n e 1 0 0 .E n t e r s e d i t m o d e a l i n e 1

[ l i n e # ] L I S T : I l i n e n u m b e r i n o s p e c i f i e d , t h p r o g r a mw i l l l i s t f r o m b e g i n n i n g t e n d , o t h e r w i s e i w i l l l i s t f r o m t h s p e c i f i e d n u m b e r . P r e s s S h i f t t o f r e e z e t h l i s t i n g , C t r l t s l o w ,a n S t o p t h a l t . E x a m p l e s :

1 0 L i s t s f r o m l i n e 1 0 0 .L i s t s f r o m l i n e 1

[ l i n e # ] P R I N T : T h i s i t h s a m e a l i s t e x c e p t o u t p u t a l s og o e s t p r i n t e r w i t h d e v i c e n u m b e r 4 P r e s s S h i f t t f r e e z e o S t o p t e x i t .

D I R E C T O R Y : D i s p l a y s d i s k d i r e c t o r y . P r e s s t h s p a c e b a r t s t o p a n s t a r t l i s t i n g . P r e s s S t o p t o a b o r t .

R E A D F I L E : R e a d s d i s k f i l e i n t o m e m o r y . Y o w i l l b a s k e d f o r t h e f i l e n a m e . D n o u s q u o t a t i o n m a r k s a r o u n d t h f i l e n a m e . E n t e r n n a m e t o a b o r t .

W R I T E F I L E : W r i t e s a f i l e t d i s k f r o m t h e c u r r e n t d a t a i m e m o r y . I f i l e a l r e a d y e x i s t s , e i t h e r s c r a t c h i o s e l e c tn e n a m e . Y o w i l l b e a s k e d f o t h f i l e t y p e a n f i l e n a m e .

D I S K C O M M A N D S e n d d i s k c o m m a n d . A l c o m m a n d s a r s u p p o r t e d . Y o w i l l b a s k e d f o r t h e c o m m a n d . F o e x a m p l e ,t s c r a t c h f i l e e n t e r s : f i l e n a m e .

D E C - T O - H E X : C o n v e r t s d e c i m a l n u m b e r ( 0 - 6 5 5 3 5 ) t h e x . F o e x a m p l e , e n t e r i n g # 3 2 7 6 8 g i v e s r e s u l t o $ 8 0 0 0 .

H E X - T O - D E C : C o n v e r t s h e n u m b e r t d e c i m a l . L e a d i n gz e r o e s a r m a n d a t o r y . F o e x a m p l e , $ 0 0 F F w i l l y i e l d 2 5 5 .

< # C O L U M N S : C h a n g e s t h n u m b e r o c o l u m n s d i

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

T c h e c k p r e v i o u s l y e n t e r e dc o m m a n d t p l a c e t h f i l e i n t on u m b e r o c o l u m n s f o t h d i sc h e c k s u m c h a r a c t e r s i t h i s c a lt h s c r e e n o r p r i n t e r a n r e c h l i s t i n g . O v e r y l a r g e p r o g r a my o u r l e i s u r e . J u s t m a r k t h l i s t O n l y c h e c k t h p a i r s o c h a r a c t c o d e i e a c h l i n e o t h o r i g i n p a i r s o c h a r a c t e r s a r e u s u a l l y t

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

T o C o p y P r o g r a m s O F i l e s

A p r o g r a m o s e q u e n t i a l f i l R A a r e a ^ 0 4 8 - 4 9 1 5 2 ( $ 0 8 0 0 - $f o p r o g r a m l e n g t h o f o v e r 4 7 ,d i s k s p a c e . T d c o p y , p e r f o t i o n s f r o m t h m e n u . U n l i k e o r e a d t h s o u r c e f i l e o n c e a n c w h e n d o i n g t h w r i t e . Y o m a n e e d e d , v e r y q u i c k l y , b r e p e a t i

T c o n v e r t a p r o g r a m f i l e t j u s t m a k e a c o p y . W h e n a s k e d f' S ( S E Q ) , o r ' U ' ( U S R ) .

C h a n g i n g T h e L o a d A d d r e s s

L i s t i n g 1 H e x e c L g e n I B 1 5 3 0 d a t a 2 4 0 ,O 1 5 4 0 d a t a 1 5 2 ,

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

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

3 2 0 8 ,

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

2 0 82 0 02 5 3

Page 50: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 50/84

H 1 r e c 6 h e f i l e e d i t o rE 2 r e ( c 1 9 8 7 b o b k o d a d e kJ 3 r e 3 1 6 4 s u r r e y l a n eI F 4 0 r e a s t o n , p 1 9 0 1 4A 5 r e J 6 m l = 4 9 1 5 2 : p r i n t " r e a d i n g . . . "L 7 f o i = t 1 5 1 0G 8 r e a d b y p o k e m l + i , b y : c k = c k + b yO 9 n e x tF E 1 0 0 i f c k O l 8 0 0 3 6 t h e n p r i n t " d a t a e r r o r ! " : e n B 1 1 0 s y s m M 1 2 C 1 0 0 0 d a t a 3 2 2 3 8 , 1 9 6 , 1 6 2 , 0 1 3 4 , 2 5 1 , 1 3 O P 1 0 1 0 d a t a 2 5 2 , 1 4 2 , 0 , 8 , 1 4 2 , 1 8 1 4 I P 1 0 2 0 d a t a 1 3 4 , 2 1 6 9 , 1 5 , 1 4 1 , 3 2 , 2 0 8 , 1 4 F 1 0 3 0 d a t a 3 3 2 0 8 , 1 6 9 , 1 4 7 , 3 2 2 1 0 , 2 5 5 , 1 6 O B 1 0 4 0 d a t a 2 1 6 0 , 1 2 , 2 4 , 3 2 , 2 4 0 , 2 5 5 , 3 2F 1 0 5 0 d a t a 2 5 5 , 1 9 5 , 7 2 6 9 8 8 , 3 2 , 7 0 7 M 1 0 6 0 d a t a 7 6 6 9 3 2 6 9 , 6 8 , 7 3 8 4 7 I 1 0 7 0 d a t a 8 2 , 1 3 , 1 3 , 1 3 , 3 2 , 3 2 7 7 6 P 1 0 8 0 d a t a 7 8 8 5 3 2 , 3 2 , 3 2 , 3 2 , 4 0 , 6 7C 1 0 9 0 d a t a 4 1 , 3 2 , 4 9 , 5 7 , 5 6 , 5 5 , 3 2 , 6 G P 1 1 0 0 d a t a 7 9 6 6 3 2 , 7 5 , 7 9 , 6 8 , 6 5 , 6 K 1 1 1 0 d a t a 6 9 , 7 5 , 1 3 , 1 3 , 6 9 , 4 5 , 6 9 , 6 E 1 1 2 0 d a t a 7 3 , 8 4 , 1 3 , 7 6 , 4 5 , 7 6 , 7 3 , 8 H L 1 1 3 0 d a t a 8 4 , 1 3 , 8 0 , 4 5 , 8 0 , 8 2 , 7 3 , 7 G 1 1 4 0 d a t a 8 4 1 3 6 8 4 5 6 8 7 3 , 8 2 , 6 J 1 1 5 0 d a t a 6 7 8 4 , 7 9 , 8 2 , 8 9 , 1 3 , 8 2 , 4 L 1 1 6 0 d a t a 8 2 6 9 , 6 5 , 6 8 , 3 2 , 7 0 , 7 3 , 7 H 1 1 7 0 d a t a 6 9 1 3 8 7 4 5 , 8 7 , 8 2 , 7 3 , 8 4F C 1 1 8 0 d a t a 6 9 , 3 2 , 7 0 , 7 3 , 7 6 , 6 9 , 1 3 , 8 G 1 1 9 0 d a t a 4 5 6 8 7 3 8 3 7 5 , 3 2 , 6 7 7 F 1 2 0 0 d a t a 7 7 , 7 7 , 6 5 7 8 6 8 1 3 , 3 5 , 4 J E 1 2 1 0 d a t a 6 8 , 6 9 , 6 7 , 3 2 , 8 4 , 7 9 , 3 2 , 7 N 1 2 2 0 d a t a 6 9 8 8 , 1 3 , 3 6 , 4 5 , 7 2 , 6 9 8 E 1 2 3 0 d a t a 3 2 , 8 4 , 7 9 , 3 2 , 6 8 , 6 9 , 6 7 , 1 J 1 2 4 0 d a t a 6 7 , 4 5 , 6 7 7 9 , 7 6 , 8 5 7 7 7 N 1 2 5 0 d a t a 8 3 , 1 3 , 7 7 , 4 5 , 7 7 , 6 9 , 7 8 , 8 K 1 2 6 0 d a t a 1 3 8 1 , 4 5 , 6 9 8 8 7 3 8 4 F 1 2 7 0 d a t a 1 6 2 , 1 8 1 6 0 , 2 0 , 2 4 , 3 2 , 2 4 0 , 2 5 P 1 2 8 0 d a t a 3 2 2 5 5 , 1 9 5 , 7 6 , 7 9 , 6 5 , 6 8 3 D 1 2 9 0 d a t a 6 5 , 6 8 , 6 8 , 8 2 , 6 9 , 8 3 , 8 3 , 5 H 1 3 0 0 d a t a 3 6 0 1 7 4 , 0 , 8 , 1 7 3 , 1 K 1 3 1 0 d a t a 3 2 , 8 2 , 1 9 6 , 1 6 2 , 1 9 1 6 0 , 2 0 2 O 1 3 2 0 d a t a 3 2 , 2 4 0 , 2 5 5 , 3 2 , 2 5 5 , 1 9 5 , 7 9 , 6 M 1 3 3 0 d a t a 7 4 6 9 6 7 8 4 , 5 8 , 3 6 , 0 1 6 E 1 3 4 0 d a t a 0 1 6 9 , 8 3 2 , 8 2 , 1 9 6 , 3 2 2 5 M 1 3 5 0 d a t a 1 9 5 , 4 5 , 3 6 , 0 1 6 6 , 2 5 1 , . 1 6 5 , 2 5

8 5 2

8 9 4 7 3 2

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

E 1 7 7 0 d a t a 2 5 5 ,B 1 7 8 0 d a t a 3 2

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

P 1 9 7 0 d a t a 1 5 0 ,J 1 9 8 0 d a t a 1 3 2 ,M 1 9 9 0 d a t a 1 6 5 ,K 2 0 0 0 d a t a 1 6 4 ,E 2 0 1 0 d a t a 1 9 6 ,C I 2 0 2 0 d a t a 2 5 5 ,L 2 0 3 0 d a t a 2 0 1 ,

L J M I D G O H O A M P G G K J A H M L M

O F I M E I E M E F B L D A M G P H

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

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

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

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

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

1 3 , 1 6 0 ,3 2 5

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

6 3 , 3 2 ,3 2 , 1 7 2 ,

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

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

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

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

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

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

0 2 4 0 ,

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

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

8 3 3 2 0 9 6

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

1 4 1 , 2 2 9 ,1 8 9 , 2 2 7 ,

1 6 2 4 6 ,3 3 2

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

1 9 4 , 7 6 4 1 3 3 ,

1 3 3 , 1 8 5 ,1 3 , 8 2 ,

0 3 2 1 9 6 , 3 2

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

1 2 4 0 ,1 9 4 , 3 2

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

2 2 4 0 ,2 4 5 , 7 6

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

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

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

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

2 4 , 3 2 ,

1 7 91 1

3 2 4

3 1 9 2 5

82 32 5

8 3

1 91 1 2

2 2

1

2 12

22

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

L i s t i n g 2 H e x e d . s r c

Page 51: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 51/84

C 2 2 4 0 d a t a 2 1 0 , 2 5 5 , 1 6 6 , 2 0 1 6 5 , 2 1 , 3 2 , 8 0 2 2 5 0 d a t a 1 9 6 , 7 6 3 5 1 9 3 , 3 2 1 1 4 , 1 9 7 , 1 6 J O 2 2 6 0 d a t a 2 0 2 0 1 , 6 1 4 4 , 7 2 0 1 , 1 2 1 7 L O 2 2 7 0 d a t a 3 1 4 1 , 2 0 5 , 1 9 7 , 7 6 , 3 5 , 1 9 3 , 1 0 4J N 2 2 8 0 d a t a 1 3 3 , 3 4 1 0 4 , 1 3 3 , 3 5 2 0 8 , 3 3 P 2 2 9 0 d a t a 2 1 0 , 2 5 5 , 1 6 0 , 0 2 3 0 , 3 4 2 0 8 ,G 2 3 0 0 d a t a 2 3 0 , 3 5 , 1 7 7 , 3 4 , 2 0 8 , 2 4 1 , 1 6 5 , 3 P E 2 3 1 0 d a t a 7 2 , 1 6 5 , 3 4 , 7 2 , 9 6 , 3 2 , 1 5 1 , 1 9 O N 2 3 2 0 d a t a 1 6 0 , 0 1 8 5 , 2 0 6 , 1 9 7 , 2 4 0 , 6 3 J 2 3 3 0 d a t a 1 7 2 , 1 9 6 , 2 0 0 , 2 0 8 , 2 4 5 , 1 6 9 , 4 5 3 L E 2 3 4 0 d a t a 1 7 2 , 1 9 6 , 1 6 0 , 0 1 4 0 , 2 0 3 , 1 9 7 , 1 7 H 2 3 5 0 d a t a 2 5 3 , 3 2 , 8 6 , 1 9 6 , 1 6 9 , 3 2 , 3 2 , 1 7 6 2 3 6 0 d a t a 1 9 6 , 2 3 8 , 2 0 3 , 1 9 7 , 1 7 2 , 2 0 3 , 1 9 7 , 2 0 0 2 3 7 0 d a t a 2 0 5 , 1 9 7 , 2 0 8 , 2 3 5 , 1 6 9 , 1 3 , 3 2 , 1 7 N I 2 3 8 0 d a t a 1 9 6 , 9 6 3 2 8 6 1 9 6 , 1 3 8 , 7 2 , 7 N 2 3 9 0 d a t a 7 4 7 4 , 7 4 , 3 2 , 9 7 , 1 9 6 , 1 0 4 , 4 J 2 4 0 0 d a t a 1 5 9 4 8 2 0 1 , 5 8 1 4 4 , 2 1 0 F 2 4 1 0 d a t a 6 3 2 1 7 2 , 1 9 6 , 9 6 1 6 2 , 3 2 5 A 2 4 2 0 d a t a 2 0 6 , 1 9 7 , 1 8 9 , 2 0 6 , 1 9 7 , 2 0 1 , 5 8 2 0 I J 2 4 3 0 d a t a 8 , 1 6 9 , 4 8 , 1 5 7 , 2 0 6 , 1 9 7 , 2 0 2 , 1 O J 2 4 4 0 d a t a 2 3 8 , 2 3 8 , 2 0 1 , 1 9 7 , 2 0 8 , 3 2 3 8 , 2 0 P 2 4 5 0 d a t a 1 9 7 , 1 6 5 , 2 5 3 , 1 0 9 , 2 0 5 , 1 9 7 , 1 3 3 , 2 5 L 2 4 6 0 d a t a 1 6 5 , 2 5 4 , 1 0 5 , 0 1 3 3 , 2 5 4 , 9 6 5 E 2 4 7 0 d a t a 1 6 5 , 2 5 3 , 2 2 9 , 2 5 1 , 1 3 3 , 8 1 , 1 6 5 , 2 5 C N 2 4 8 0 d a t a 2 2 9 , 2 5 2 , 5 8 1 1 7 6 , 1 9 6 1 0 L N 2 4 9 0 d a t a 1 0 4 , 7 6 , 3 5 , 1 9 3 , 3 2 1 6 8 , 2 5 5 , 3 20 1 2 5 0 0 d a t a 2 1 0 , 2 5 5 , 9 6 1 6 5 , 1 8 3 , 1 6 2 , 0 1 6 C 6 2 5 1 0 d a t a 2 3 2 1 8 9 , 2 5 5 , 1 6 9 , 3 1 6 2 ,C 2 5 2 0 d a t a 1 6 0 , 3 3 2 1 8 6 , 2 5 5 , 3 2 1 9 2 , 2 5 C 6 2 5 3 0 d a t a 9 6 , 3 2 , 2 5 5 , 1 9 5 , 7 0 , 7 3 , 7 6 , 6 B D 2 5 4 0 d a t a 3 2 7 8 6 5 , 7 7 , 6 9 , 5 8 0 3 J B 2 5 5 0 d a t a 2 4 7 , 1 9 6 , 1 8 5 , 0 2 2 4 0 , 3 2 0 D E 2 5 6 0 d a t a 2 0 8 , 2 4 8 , 1 3 2 , 1 8 3 , 1 6 4 , 1 8 3 , 2 0 8 ,F O 2 5 7 0 d a t a 1 0 4 , 1 0 4 , 7 6 1 8 1 9 2 , 9 6 1 6 2 ,J B 2 5 8 0 d a t a 1 6 0 , 8 1 3 4 , 2 5 3 , 1 3 2 , 2 5 4 , 9 6 3 J O 2 5 9 0 d a t a 9 6 1 6 5 , 1 3 4 , 1 2 2 , 1 3 2 , 1 2 3 , 1 6 0 ,C D 2 6 0 0 d a t a 9 6 1 6 9 , 1 1 4 1 , 2 0 1 , 1 9 7 , 1 6 9 ,F 2 6 1 0 d a t a 1 4 1 , 2 0 2 , 1 9 7 , 3 2 2 3 8 , 1 9 6 , 1 6 9 , 4 F 2 6 2 0 d a t a 1 6 0 , 3 1 5 3 , 2 0 6 , 1 9 7 , 1 3 6 , 1 6 2 5 6 2 6 3 0 d a t a 2 3 8 , 2 0 9 , 1 9 7 , 3 2 1 1 4 , 1 9 7 , 1 6 5 , 2 N 2 6 4 0 d a t a 2 0 8 , 4 , 1 6 5 , 2 1 , 2 4 0 , 2 0 , 1 7 3 , 2 0 1A 2 6 5 0 d a t a 1 9 7 , 1 9 7 , 2 0 , 2 0 8 , 7 1 7 3 , 2 0 2 , 1 9 O I 2 6 6 0 d a t a 1 9 7 , 2 1 2 4 0 , 6 3 2 1 0 9 , 1 9 6 , 7 F 2 6 7 0 d a t a 3 8 1 9 7 , 9 6 1 6 9 , 2 3 4 , 1 3 3 , 1 3 0 , 1 3 I K 2 6 8 0 d a t a 1 3 1 , 3 2 1 1 5 , 0 3 2 9 5 1 9 7 , 1 4 6 2 6 9 0 d a t a 1 9 9 , 1 9 7 , 3 2 1 1 5 , 0 3 2 9 5 1 9 M 2 7 0 0 d a t a 1 4 2 , 2 0 0 , 1 9 7 , 1 7 3 , 1 9 9 , 1 9 7 , 1 0 1 P 2 7 1 0 d a t a 1 0 , 1 0 , 2 4 , 1 0 9 , 2 0 0 , 1 9 7 , 9 6 1 6

c 6 ( c

* — . . . .

h e f i l e e d i t o r1 9 8 7 b o b k o d a d e k3 1 6 4 s u r r e y l a n ea s t o n , p 1 9 0 1 4

m e r l i n - 1 2 8 m a c r o - a s s e m b l e r

c h r g e tc h r g o te n d a d rr a m p t rt e m pf l e nb u f f e rb u s s e c o n dt k s aa c p t rc i o u tu n t l ku n l s nl i s t e nt a l kr e a d s ts e t l f ss e t n a mo p e nc l o s ec h k i nc h k o u tc l r c h nc h r i nc h r o u ts t o pg e t i np l o t

= $ 7 3$ 7 $ f

= $ f d$ 5 $ b $ 0 1 0 0$ 0 2 0 0$ 0 8 0 0$ £ £ 9 3$ £ £ 9 6$ f f a 5$ f f a 8$ f f a b$ f f a e$ f f b l$ f f b 4$ f f l > 7$ f f b a$ f f b d$ f f c 0$ f f c 3$ f f c 6$ f f c 9$ f f c c$ f f c f$ f f d 2$ f f e l$ f f e 4$ f f f O

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

n o t e : l a b e l s b e g i n n i n g w i t h " ] a r e v a r a n a r u s e d f o b a c k w a r d b r a n c h

o r $ c 0 0 0

s t a r t j s r s e t p n tl d § s t x e n d a d rs t y e n d a d r + 1s t s s t s a + 1s t $ 0 2 8 6

h e l p I d a # 1 s t a $ d 0 2 0s t $ d O 2 1I d # $ 9 3j s r c h r o u t

/ s e t r a m p t r/ z e r o e n a d

/ z e r o l o a d a

/ b l a c k f o t / c o l o r c o d e/ s e t b o r d e r / s e t b a c k g r o ; c l r s c r e e n

l d # 1 l d y # 2 0c l j s p l o t

/ l o c a t e c u r s o r j s s e t p n tl d x # $ 0 3j s c h k i nl d y # $ 0 0

/ p o i n t t $

/ o p e n i n p u t

Page 52: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 52/84

j s p r i m mt x t ' l o a d a d d r e s s : $l d x s aI d a s a + 1j s p r i n t h e xl d # 1 l d # 2 c l j s r p l o tj s p r i m mt x t ' o b j e c t : $ ' 0 0l d x # < s aI d # > s aj s p r i n t h e xj s p r i m mt x t ' - $ ' 0 0l d x e n d a d rI d a e n d a d r + 1j s p r i n t h e x

g e t c o m m a n d a n e x e c u t eg e t c o m j s r e s t o r e

I d a # $ f 0s t $ 8 I d a # $ e fs t $ 8 I d a # $ 0 dj s r c h r o u tl d 1 3 l d $ d I d # $ 2 0

] e r a s e s t a ( $ d l ) , yi n d e b n ] e r a s eI d # ' > 'j s c h r o u tj s i n p u tj s c h r g e t

] l o o p c m p t a b l e ,b e d o c o mi n c p # $ 0 cb n ] l o o pj m g e t c o m

d o c o m t y a s t a I d a d r + l , xp h I d a a d r , xp h r t

t a b l e a s c ' r w l e x d m q p # $ c 'a d r d a r e a d - 1

' 0

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

/ p r i n t s t a r t a d d r e s s

/ p r i n t e n d i n g a d d r e s s

/ r e s t o r e c h a n n e l s/ c h r g e t r e s t o r e d a l w a y s

/ p r i n t a c / e r a s e c o m m a n d l i n e

/ p r i n t c o m m a n d p r o m p t/ g e t i n p u t/ r e a d c h a r a c t e r/ c o m p a r e t c o m m a n d t a b l e/ i f f o u n d , d i / e l s e , g e m o r e/ t e s t e d a l l ?

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

/ l o o k u a d d r e s s/ p u s h i t o n s t a c k

/ j u m p t o c o m m a n d r o u t i n e

/ r e a d f i l e

] l o o p

e o

] l o o p

r d e r r

J g e t

e n d e r r

p r r t

i n c p n t

c

w r i t e =w r i t e s

] g e t

j s r c h r i ns t a ( r a m p t r ) , yj s i n c p n tj s r e a d s ts t e r b y tc m p # 6 4b e e o I d a e r b y tb n e r d e r rj m ] l o o ps t a ( r a m p t r ) , yt y i n s t a ( r a m p t r ) , yc p # b n ] l o o pI d a r a m p t rs t a e n d a d rI d a r a m p t r + 1s t a e n d a d r + 1j s r e s t o r el d a $ b aj s t a l kI d a # $ 6 fs t a $ b 9j s t k s aI d a # $ 0 dj s c h r o u tj s a c p t rc m p # $ 0 db e q e n d e r rj s c h r o u tj m ] g e tj s c h r o u tj s u n t l kj s r p r r tj s c h r i nj m h e l pj s p r i m mt x t ' p r e s s r e t u nr t

i n r a m p t rb n r i n r a m p t r + 1

r t

b i n a r y f i l e i j s p r i m mt x t ' t y p e ( p / s / u )j s r i n p u tj s r c h r g e ts t a f t y p

/ i n p u t c h a r' s t o r e i n r a

/ i n c r e m e n t/ r e a d s t a t u / s a v e i t; t e s t f o r e

/ t e s t f o r e / r e a d e r r o r

/ s t o r e e o f ; y = 0

a n f e z e r o

/ m o v e r a m p t

- ; c l e a r c h a n / r e a d e r r o r/ d e v i c e t / f r o m c o m m a

/ p r i n t a c / i n p u t s e r i / t e s t f o r c

/ p r i n t t h

/ p r i n t t h e / s t o p t a l k i / p r o m p t " p r / w a i t f o r < / d i s p l a y m e

i ' 0 0

/ i n c r e m e n t

p r g , s e q , o r u

: ' 0 0/ g e t u s e r ' s

w

c m p e n d a d r + 1b e w l d # $ 0 0

I d # $ 6 0s t $ b j s r $ £ 3 d 5

Page 53: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 53/84

w p l i s t

l i s t s

] l o o p

l i s tl i s t

] l o o p

w a i t

. l . u l S J C Cs e n d s

] l o o p

d

I d a ( r a m p t r ) , yj s c i o u tj s r i n c p n tj m p ] l o o pj m r d e r r

g e r a b y t e/ o u t p u t b y t e/ i n c r e m e n t r a m p t r

/ r e a d e r r o r c h a n n e l

t o s c r e e n a n d p r i n t e rI d # s t a $ b aj s l i s t e nI d a # $ 6 0s t a $ b 9j s s e c o n dj s p r i m md f 1 t x ' r e a d y ? ' 0 0j s p r r tI d # $ 0 dj s s e n c h rj s c k s t o pj s r $ f f e 4c m p # $ 0 db n e ] l o o p

/ s e t d e v i c e t o #

/ p r i n t e r l i s t e n s

/ s e c o n d a r y a d d r e s s/ p r o m p t " r e a d y ? "

/ p r o m p t " p r e s s r e t u r n "

/ p r i n t a c r/ t e s t s t o p k e y/ w a i t f o r < r e t u r n >

t o s c r e e n a n d l i s t e n e r , i f p r e s e n tj s r c a l c l n / c a l c u l a t e l i n e n u m b e rj s c k s t o pj s r l i n eI d 6 5 c m p # $ 0 1o e w a i tj s i n d nj m ] l o o p

/ c h e c k s t o p k e y/ o u t p u t l i n e/ c h e c k s h i f t k e s t a t u s/ f r e e z e l i s t i n g i f a c t i v e

/ i n c r e m e n t l i n e n u m b e r/ d m o r e

u s e r c o m m a n d t o d r i v ej s p r i m mt x t ' c o m m a n d : ' 0 0j s r i n p u tI d a $ b aj s l i s t e nI d # $ 6 fs t $ b j s s e c o n d

i l A A Al d # $ 0 0I d b u f , yb e q d lj s c i o u ti n b n ] l o o pj m r d e r r

/ p r o m p t u s e r

/ g e t c o m m a n d/ d e v i c e l i s t e n s

/ c o m m a n d c h a n n e l

/ r e a d i n p u t b u f f e r

/ s e n d c o m m a n d s t r i n g

/ r e a d e r r o r c h a n n e l

g e

] l o o p

] w a i t

n e w l n

d o u t

f i l e

e d i t =f u l l

e

] l o o p l

I d a $ b a / d e v i c e t a lj s t a l kI d $ b j s t k s aI d a # $ 0 0 / c l e a r s t a t u s t $ 9 l d # $ 0 3s t y $ b 7j s a c p t r / g e t b l o c k s t a $ c 3 / s a v e l o b y j s r a c p t rs t a $ c 4 / a n d h i g h b y l d y $ 9 0 / t e s t s t a t u sb n d o u t ; i n o t h l d $ b d e b n g e l d $ c I d $ c j s $ b d c d / p r i n t b l o I d # $ 2 0 / p r i n t a s p a j s c h r o u tj s a c p t r / r e a d f i l e n a ml d $ 9 b n d o u t / t e s t s t a t u sc m p # $ 0 0 / t e s t f o r n e b e n e w l nj s c h r o u t / p r i n t c h a j s r s t o p / t e s t s t o p k b e d o u tj s g e t i n / g e t k e y p r e s

\ \ A f f / \ A ¥ \D e j l o o pc m # $ 2 0 / t e s t f o r s p b n ] l o o p / f r e e z e i f p j s g e t i n / w a i t f o k e b e ] w a i tb n j l o o p / c o n t i n u e l i I d # $ 0 d / p r i n t c rj s c h r o u tl d # $ 0 2b n g e / g d m o r ej s r $ f 6 4 2 / r e s t o r e c h a j m g e t c o m / n e x t c o m m a n a s ' $

s c r e e n e d i t o r r o u t i n ej s c a l c l n / c a l c u l a t e l I d # $ 0 d / p r i n t a c j s c h r o u tj s r l i n e / p r i n t t h e l l d # 3 I d a # 1 5 7 / r e p o s i t i o nj s r c h r o u td e

s t b u f f e r , yj s c h r g e ti n

/ s a v e b i n a r y/ g e t n e x t c h a r a c t e r

1

j s s e n c h ri n b n j l o o pI d # ' - '

/ s e n d l i n e

Page 54: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 54/84

c p y c o lb e s k i pe m p # $ 2 0b e ] l o o p 2

n o t h e x I d a # ' ? 'j s r c h r o u tj m g e t c o m

i n e r r o r s , n o w s t o r e t h s k i p l d y # ] l o o p 3 I d a b u f f e r , y

/ l a s t c o l u m n ?/ t h e n s k i p t e s t/ e l s e , m u s t b e s p a c e

/ d a t a e r r o r ! e x i t

d a t a i r a

/ g e t b i n a r y v a l u es t a ( r a m p t r ) , y / s t o r e i t i r a i n c p y c o lb n ] l o o p 3j s i n c l nj m p e l

h e x d e co u t p u t s d e c i m a l f r o m a s c i i

j s r r d h e xt a j s r d h e xt a t y j s $ b d c dj m c j e t c o m

d e c h e xo u t p u t s h e x a d e c i m a l n u m b e r

j s a s c i n tI d # ' $ 'j s c h r o u tl d $ 1 I d $ 1 j s p r i n t h e xj m g e t c o m

c h a n g e =u s e r s e t s n u m b e r o c o l u m n s

j s a s c i n tI d $ 1 e m p # $ 0 6b c c c h le m # 1 b e c h s t c o

c h l j m p g e t c o m

* * * * * * * * * * * * * * * * s u b r o u t i n e s

/ d o n e a l l c o l u m n s ?

/ i n c r e m e n t l i n e n u m b e r

h e x a d e c i m a l i n p u t/ g e t h i g h b y t e/ s a v e i / g e t l o w b y t e

/ p r i n t i n d e c i m a l/ n e x t c o m m a n d

f r o m a s c i i d e c i m a l i n p u t; a s c t o i n t e g e r/ p r i n t " $

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

d i s p l a y e d ( 6 - 1 1 ); a s c t o i n t e g e r/ g e t l o w b y t e; < c o l u m n s ?/ t h e n e x i t; = > 1 2 c o l u m n s ?/ a l s o e x i t/ s t o r e i 6 - 1 1/ g e t n e x t c o m m a n d

* * * * * * * * * * * * * * * *

c - 6 4 p r i n t i m m e d i a t e r o u t i n e a l l o w s i m b e d d e d s t r i n gp r i m m p l a

s t $ 2 p l s t a $ 2 3

/ r e m o v e r e t u r n a d d r e s s/ s a v e i t a c u r r e n t p c

] j l o o p

o u t p u tp r i n t h e x

p r b y t e

p r n i bp h e x

j c

i n c l n] l o o p

i n

i n

t s t e n d

j s s e n c h rl d # s t y c n tI d a ( r a m p t r ) , yj s r . p r b y t eI d a # $ 2 0j s s e n c h ri n c c n tl d c n c p y c o lb n e ] j l o o pI d # $ 0 dj s s e n c h rr t

h e x s t r i n g f r o m t w oj s p r b y t et x p h l s l s l s l s j s p h e xp l a n d # $ 0 fo r # $ 3 0e m p # $ 3 ab i j c a d c # 6j s s e n c h rr + i t

l d # $ 0 3i n c l i n u m , xI d l i n u m , xe m p # $ 3 ab n i n I d a # $ 3 0s t a l i n u m , xd e b p l j l o o pi n l n u mb n i n i n c l n u m + 1I d a r a m p t ra d c c o ls t a r a m p t rI d a r a m p t r + 1a d c # $ 0 0s t a r a m p t r + 1r t

s e I d a r a m p t r

/ z e r o c o u n t/ r e a d b i n a r/ o u t p u t a s

/ o u t p u t s p / i n c r e m e n t / c o m p a r e t o

/ o u t p u t c

b y t e i n t e g e/ p r i n t a r e / p r i n t r e / s a v e a/ s h i f t h i g

/ p r i n t i t/ p u l l o r i g / m a s k l o w n

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

/ i n c r e m e n t s

/ u p d a t e r a

/ t e s t f o r h/ d o u b l e - b y t

I d a # $ 0 3l d x # $ 0 8l d y # $ 0 3j s r s e t l f s

a s a s c l a d h e x l + 1

/ a d d s e c o n d v/ n o w w e h a v e

Page 55: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 55/84

f n a m e

] l o o p

o u

r

s e t p n t

i n p u t

t h i s

j s o p e nr t

j s p r i m m / p r o m p tt x ' f i l e n a m e : ' 0 0j s i n p u t / g e t f i l e n a m eI d b u f , y / g e t l e n g t hb e o u i n b n ] l o o ps t y f l e n / s a v e i tl d y f l e n / t e s t f o r n f i l e n a m eb n f p l p l j m h e l pr f r t

l d x # < s a / r e s e t r a m p o i n t e rl d y # > s as t x r a m p t rs t y r a m p t r + 1r t

j s r $ a 5 6 0 / g e t u s e r i n p u ts t x $ 7 a / p o i n t c h r g e ts t $ 7 l d # r t

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

c a l c l n

] l o o p

c a l l

I d a # $ 0 1 / s e t i n t e g e r l i n e # t os t a l n u mI d a # $ 0 0s t l n u m + 1j s s e t p n t / s e t r a m p t r t o $ 0 8 0 0I d a # $ 3 0 / s e t a s c l i n e # t o 0 0 0 1l d # $ 0 3s t a l i n u m , yd e b p ] l o o pi n c l i n u m + 3j s a s c i n t / g e t i n t e g e rI d $ 1 / g r e a t e r t h a n 0 b n c a l l / y e s , c o n t i n u eI d $ 1 / e l s e , e x i tb e c a l 3I d a l n u m / g e t l i n e n u m b e rc m $ 1 4 / t e s t l o w b y t eb n c a l 2 / s a m e ?I d a l n u m + 1c m $ 1 5 / t e s t h i g h b y t e

g o t h e x

t s t h e x] l o o p

t h i sa i

a s c i n t

] l o o p

a s

c k s t o p

n o s t o p

r e s t o r e

r t

l d # $ 0 0c m p h e x , xb e g o t h e xi n c p # $ 1 0b n j l o o pp l p l p l p l j m n o t h e x

/ t e s t f o h e / c o m p a r e t o t; r e r e t u r n / e l s e , d o m o r/ a n y m o r e l e f/ n o t f o u n d

/ p u l l a d d r e

/ r e p o r t e r r o r

r o u t i n e c o n v e r t s a s c i i i n t o a t w o - b t h b a s i c r o r o u t i n e , b u t h a n d l e s

l d x # $ 0 0s t x $ 1 4s t $ 1 j s c h r g e tb c s a s ls b c # $ 2 fs t $ 0 I d $ 1 s t a $ 2 2I d $ 1 a s r o l $ 2 2a s r o $ 2 a d $ 1 s t $ 1 I d $ 2 a d $ 1 s t $ 1 a s $ 1 r o $ 1 I d $ 1 a d $ 0 s t $ 1 b c ] l o o pi n $ 1 b n e j l o o pr t

j s r s t o pb n n o s t o pp l p l j m g e t c o mr t

j s u n l s n

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

/ s t o p k e y p r e/ i f n o t , t h e n/ e l s e r e m o v e/ a d d r e s s f r o m/ a n d j u m p t o / r o u t i n e .

/ u n l i s t e n d e v

Page 56: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 56/84

O t h S i d ef o l l o w - u p , a n s o m e R E n o t e s

b y A d r i a n P e p p e r

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

h a v e b e e n a a v i d r e a d e r o T r a n s a c t o r f o r s e v e r a l y e a r s , a n f i n d i t h m o s t i n f o r m a t i v e m a g a z i n e a r o u n d f o s e r i o u s u s e r so C o m m o d o r e c o m p u t e r s . w a e s p e c i a l l y g l a d t s e t w a t i c l e s d i r e c t l y r e l a t i n g t t h u s e r o t h P o w e r c o m p i l e r a n e n v i r o n m e n t i V o l u m e 8 I s s u e 5 U n l e s s p l a y i n g g a m e , m C o m m o d o r e 6 s p e n d s m o s t o i t t i m e r u n n i n g i t h i s e n v ir o n m e n t . ( m a b s e r i o u s u s e r , b u I ' n o d o u r . )

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

L i b r a r y M a i n t e n a n c e a n C o m p a t i b l e A s s e m b l y

F i r s t , " M a i n t a i n i n g t h P o w e r L i b r a r y " , b E r i c G i g u e r e ,w h i l e a v e r y p r e c i s e , w e l l w r i t t e n a r t i c l e , a c t u a l l y d e s c r i b e sB A S I C p r o g r a m t h a t d u p l i c a t e s t h e f u n c t i o n a l i t y o a e x i s t i n g

p r o g r a m , " l i b . c " , w h i c h i i n c l u d e d i s o u r c e f o r m o t h P o w e r d i s t r i b u t i o n d i s k ! I c a e a s i l y b e c o m p i l e d a n d u s e dw i t h i n t h P o w e r S h e l l , o b v i a t i n g t h n e e d f o f l i p p i n g b t w e e n t h P o w e r a n B A S I C e n v i r o n m e n t s . P e r h a p s f o s o m er e a d e r s , t h o u g h , t h B A S I C v e r s i o n i m o r e m e a n i n g f u l . A n d ,a l t h o u g h l i k e C m u s t a d m i t u s e f u l p r o g r a m d o e s n o f i l l p a g e s a e f f i c i e n t l y a t h e q u i v a l e n t b a s i c .

A s s e m b l e r " , i a l s o a v a i l a b l e t hj e c t f i l e s i n t o s o u r c e ( a l m o s t ) s u i

N o w , h o w e v e r , S p i n n a k e r ( w h od i f f e r e n t a s s e m b l e r p a c k a g e , P o g o o d a n p r o d u c e s P o w e r c or e a s o n a b l y p r i c e d a P o w e r i t

C h a r a c t e r P r o m o t i o n

T h e r e i a l s o a l e a s t o n t e c h M a n y p e o p l e d n o u n d e r s t a n dg u a g e i n v o l v i n g c h a r a c t e r v a r i a g e e x p r e s s i o n s . W h e n c h a r i p l i c i t l y " p r o m o t e d " ( l e n g t h e n e d e t e r s i n t h p a r a m e t e r l i s t f o a T h e r e f o r e , c a l l t f u n c t i o n u sa c t u a l l y p a s s t h e q u i v a l e n t i n (C , a s i g n e d e x t e n s i o n i m o s tT h e r e f o r e i t h s a m p l e c a l l g i v l b p a s s e d a t w b y t e s , s i m i l a

D o n ' t u n d e r e s t i m a t e h o m i s u v e r s i o n s o P o w e r ( P o w e r )p a r a m e t e r w a d e c l a r e d a c h a r ,t w h e t h e r i w a g e t t i n g o n b c o n s i s t e n t c o d e [ 2 ] . T h i s w a f i x

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

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

A n o t h e r t i i l i t t l e l e s s o f f b e a ta b o u t w h i c h o m R A d i s k f i l e r e a l , l i v e f l o p p y ! B u t h e n n o t

Page 57: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 57/84

T h i s v a l u e i t h o f f s e t i n t o t h c a s s e t t e b u f f e r w h e r e t h f u n ct i o n ' s p a r a m e t e r l i s t b e g i n s , a n d w h e r e t h r e t u r n v a l u e s h o u l db p u t . I m o s t c a s e s , t h i s o f f s e t i z e r o , b u i f u n c t i o n c a l li p a r a m e t e r t a n o t h e r f u n c t i o n , t h i s o f f s e t w i l l b n o n - z e r o .' c $ f u n c t i n i t ' w i l l p o t h i s v a l u e o f f t h e s t a c k , a n p l a c e i i t t h r e g i s t e r , w h e r e i c a e a s i l y b e u s e d t a c c e s s t h c o r e c t a r e a o t h c a s s e t t e b u f f e r . T h v a l u e p a s s e d i t h a c c um u l a t o r i a c t u a l l y t h e u p p e r b o u n d o t h i s a r e a . ( T h a t i s t h n u m b e r o b y t e s i t h p a r a m e t e r l i s t , p l u s t h o f f s e t o t h s t a r t . ) W h e n t h o f f s e t i z e r o , t h i s v a l u e i o b v i o u s l y t h s a m ea t h n u m b e r o b y t e s i t h p a r a m e t e r l i s t . T h i s i t h g e n e r a lc a s e , e s p e c i a l l y i t h e f u n c t i o n s d e f i n e d a r " r o u t i n e s " , r a t h e rt h a n f u n c t i o n s r e t u r n i n g u s e f u l v a l u e . W h e n a f u n c t i o n d o e sr e t u r n v a l u e , t h i s c o n v e n t i o n a r r a n g e s t h a t t h r e t u r n v a l u e o fo n f u n c t i o n i a l r e a d y s e u t b u s e d a p a r a m e t e r f o r t h en e x t .

A n o t h e r o b s e r v a t i o n h a s b o t h e r e d m f o s o m e t i m e . P e r h a p si i u n f a i r t s i n g l e o u D a v i d ' s r o u t i n e s , b u t t h e y h a v eb r o u g h t i t m i n d . D a v i d ' s f u n c t i o n " S l o w k e y s " i s u p p o se d l y a g e n e r a l - p u r p o s e r o u t i n e , b u i m a k e s s u b t l e a s s u m pt i o n a b o u t i t e n v i r o n m e n t . I d o e s a S E I , b e c a u s e i w a n t s t i n h i b i t i n t e r r u p t s , b u t t h e n b l i t h e l y d o e s a C L I a f t e r w a r d s .W o u l d n o t h f o l l o w i n g s e q u e n c e b e p r e f e r a b l e : p h p ; s e i ;[ c o d e ] ; p i p ? T h p i a t h e n r e s t o r e s t h p r e v i o u s s t a t e o t h i n t e r r u p t f l a g , r a t h e r t h a n s i m p l y c l e a r i n g i t T h i s w a i s o m e o n e h a p p e n e d t c a l l " S l o w k e y s " w i t h i n t e r r u p t s a l r e a d yi n h i b i t e d f o r s o m e p u r p o s e , i w o u l d n ' t h a v e a n u n e x p e c t e ds i d e e f f e c t f o t h e m ! N o t w o r r y t o m u c h . E v e n t h C 6 K e r n a l m a k e s t h a s s u m p t i o n i s e v e r a l p l a c e s t h a t t h c a l l i n gr o u t i n e d o e s n ' t h a v e i n t e r r u p t s a l r e a d y i n h i b i t e d .

U s i n g a R E w i t h P o w e r

c o u p l e o f q u i c k t i p s f o 1 7 6 4 R A d i s k u s e r s . T h 1 7 6 4 d o e sn o w o r k w i t h a l o P o w e r i i t s t a n d a r d d i s t r i b u t i o n f o r m ,b u i d o e s s p e e d a l o o t h i n g s u p m a k i n g t h e n v i r o n m e n tl o m o r e p l e a s a n t .

F i r s t 1 7 6 4 t i p : D o n ' t y o f i n d i a n n o y i n g w h e n y o a r r u

p l a c e ' f i l e o t h r a d i s k ( u s i o l d , t h e n s a v e t h n e w , s c r a t c h i n gs a f e r . W e l l , i s e e m s t h 1 7 6 4 r a mi t d i r e c t o r y w h e n d e l e t i n g f i lc h a n g e d f i l e s a r a l w a y s a t h b S o t o o k t c r e a t i n g f i l e n a m e f i l e t r a n s f e r r e d t m R A d i s kf i l e s m o d i f y e n d u p b e l o w t h i sb s a v e d . F r o m t i m e t t i m e 'w i t h r e n a m e , c o p y , r e n a m e , d e l

h a v e p r o p e r l y a r c h i v e d e v e r y t h i

A n o t h e r q u e s t i o n r e g a r d i n g t h 1 e w i t h i t ) . I t h e r e a n y w h e r e t p r o b l e m s ? E v e r y o n e h i n t s a b u g s

v e r i f i e d l i s t s o m e w h e r e . M o w D O 3 . 3 , r e g a r d s a s i m p l e - m i n d el a c k o s u p p o r t f o r t h e c o n c a t e n ac o m m a n d . w r o t e a ( a d m i t t e d l ya - t i m e C H K I N / C H R I N C H K O U T / C H Ra i n c o r r e c t c h a r a c t e r i t h o uW h e n c h a n g e d i t b u f f e r e dt h b u d i s a p p e a r e d . B o t h p r o g r r e a l d i s k d r i v e . I s m e l l s l i k e s i n b u g , b u i r e a l l y n e e d s c o h a r d w a r e . T h e r e s e e m t b f e t o w n , a n d o w n e r s s e e m l e s s d i t h i n g s t h a n t h e y w e r e a o n t i m e ,

h a v e w r i t t e n s o m e e x a m p l e s t d" c o n c a t . a " p r o g r a m w o r k s w i ts h o u l d , b u d o e s n o t . T h e y n e e da s s e m b l e r , a n l i n k i n g w i t h t h P o w e r S h e l l e n v i r o n m e n t . T h q u i t e s i m p l e , h o w e v e r , a n d i s h ot u s d i f f e r e n t a s s e m b l e r , s h o u l

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

Page 58: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 58/84

P r o g r a m m i n g i G E O SE n t e r i n g t h g e o S p h e r e . . .

b F r a n c i s G K o s t e l l a

F r a n c i s G . K o s t e l l a i t h a u t h o r o f t h C I R C E s t r a t e g y g a m e ,w h i c h r u n s u n d e r G E O S . H c a b e r e a c h e d v i C o m p u S e r v eE - M a i l ( 7 2 2 2 0 , 3 1 1 7 ) o o Q - L i n k a F G K .

G E O S i t h f i r s t a l t e r n a t e o p e r a t i n g s y s t e m f o t h C 6 t h a th a g a i n e d a n w i d e s p r e a d a c c e p t a n c e . T h C 6 K e r n a l i f m i l i a r t a s s e m b l y p r o g r a m m e r s b u t , u n l i k e t h C 6 K e r n a l ,t h G E O S K e r n a l h a n o b e e n w i d e l y d o c u m e n t e d a n d c o m e n t e d u p o n ( s e e t h r e f e r e n c e s a t h e n o t h i s a r t i c l e ) . T h i sa r t i c l e w i l l p r e s e n t e n o u g h i n f o r m a t i o n f o r t h e n o v i c e G E O Sp r o g r a m m e r t s t a r t p r o g r a m m i n g i t h G E O S e n v i r o n m e n t ,a n s a m p l e p r o g r a m t h a t i l l u s t r a t e s f e o G E O S ' s f e a t u r e s .

T h e x a m p l e s h e r e w e r e d e v e l o p e d a n t e s t e d u s i n g G E O S v l . 2a n t h C o m m o d o r e M A D S a s s e m b l e r w i t h B i l l D i x o n ' s s o u r c ee d i t o r a n " a s s e m f i x " u p g r a d e . T h l a b e l n a m e s u s e d b e l o wa r e a r e i u p p e r c a s e f o c l a r i t y a n a r v e r y s i m i l a r t o t h s t a n d a r d b s ( B e r k e l e y S o f t w o r k s ) l a b e l s . [ M r . K o s t e l l a ' ss o u r c e f i l e c o n t a i n e d l a b e l s o f u p t 1 c h a r a c t e r s . T s i m p l i f ym a t t e r s f o u s e r s o o t h e r a s s e m b l e r s , t h s o u r c e h a s b e e nc o n v e r t e d t P A f o r m a t w i t h s i x - c h a r a c t e r l a b e l s . T h l a b e l su s e d w e r e t a k e n f r o m A l e x B o y c e ' s T e c h M a n u a l a n d w i l l , i a l l i k e l i h o o d , b e u s e d i f u t u r e G E O S p r o g r a m s p u b l i s h e d i 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 f i l e 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 f o t h i s i s s u e . - E d . ]

G e t t i n g s t a r t e d

T h f i r s t h u r d l e i t h a t a l G E O S d i s k f i l e s h a v e d i f f e r e n ts t r u c t u r e t h a n t h a t u s e d b t h C o m m o d o r e D O S . T h i s b e c o m e s

T A B L E 1 F 0 R M M 0 F G E 0 S d i r

0 F F S E T I N T 0D I E N T R Y d e s c r i p t i o n

c o m m o d o r e d o s f i l1 ~ I G E 0 S S E Q p o i

o f f i l e ' s 1 s I G E 0 S V L I R p o

s e c t o r o V L I R3 " 1 8 1 c h a r A S C I 1 f i l1 9 ~ 2 0 P o i n t s t F i l e H e2 G E 0 S F i l e s t r u c t u 2 G E 0 S F i l e T y p e < s2 3 " 2 7 L a s t u s e d : y e a r / m 2 8 ~ 2 9 B l o c k s i f i l e

G E 0 S F I L E T Y P E S

n o G E O Sb a s i ca s s e m b l yd a t as y s t e m f i l ed e s k a c c e s s o r ya p p l i c a t i o n

1 1 1 1

P r o b a b l y t h t w o m o s t i m p o r t a n t o t h e e x t r a b y t e s a r b y t e s2 a n 2 2 T h e s e d e s c r i b e t h e G E O S f i l e s t r u c t u r e , a n t e l l t h

A l o n g a w s t r u c t u r e o u o b j e c to g n i z e i a v a l i d f i l e w h e n

Page 59: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 59/84

K e r n a l w h a t t y p e o f i l e i t i s . B y t e 2 1 , t h e F i l e S t r u c t u r e B y t e ,i i t h f i l e s t r u c t u r e i s e q u e n t i a l ; t h a t i s t h f i l e i s t o r e ds e q u e n t i a l l y o d i s k , a P R f i l e w o u l d b e U n l i k e P R f i l e ,t h o u g h , t h l o a d a d d r e s s , i a n y , i n o s t o r e d a s t h e f i r s t t w b y t e s , b u i t h H e a d e r B l o c k . T h e x a m p l e p r o g r a m w i l l b i s e q u e n t i a l f o r m .

W h e n b y t e 2 i s 1 , t h f i l e s t r u c t u r e i v l i r ( V a r i a b l e L e n g t hI n d e x e d R e c o r d ) . A l t h o u g h t h u s o v l i r f i l e s i b e y o n d t h s c o p e o t h i s a r t i c l e , f e f a c t s w i l l h e l p y o e x p l o r e t h e i rs t r u c t u r e i n m o r e d e t a i l . W h e n t h f i l e i o V L I R t y p e , b y t e sa n w i l l n o t p o i n t t o t h e f i l e p e s e b u t s i n g l e - s e c t o rr e c o r d i n d e x . T h f i r s t t w b y t e s o t h i s i n d e x s e c t o r a r e a w a y s $ 0 0 a n $ f f , a n t h f o l l o w i n g 2 5 b y t e s a r p a i r s o p o i n t e r s t i n d i v i d u a l r e c o r d s . I r e c o r d ' s p o i n t e r s a r e$ O O , $ f f , t h e n t h a t r e c o r d d o e s n o e x i s t . v l i r f i l e m a h a v eu t 1 2 r e c o r d s ( 0 - 1 2 6 ) . E a c h r e c o r d i s t r u c t u r e d s e q u e nt i a l l y a n m a b a n l e n g t h . F o e x a m p l e , f o n t f i l e ' s i n d e xc o n t a i n s p o i n t e r s t i t v a r i o u s p o i n t s i z e s ( 0 - 4 8 ) . S o i b y t e s1 a n 1 5 p o i n t t v a l i d t r a c k a n s e c t o r , t h e n t h e y a l w a y s

p o i n t t t h 6 - p o i n t r e c o r d .

B y t e 2 o t h e d i r e c t o r y e n t r y i t h G E O S f i l e t y p e ( s e e T a b l e1 ) w h i c h s h o u l d b f a m i l i a r t t h G E O S u s e r . T h i s b y t e t e l l s

t h K e r n a l w h e r e a n h o t l o a d f i l e . I t h i s a r t i c l e w e ' l l b w r i t i n g s i m p l e a p p l i c a t i o n t h a t w c a c a l l f r o m t h D e s kT o p , a n a r t h u s c o n c e r n e d o n l y w i t h v a l u e 6 G E O S A p p l ic a t i o n . W h e n t h K e r n a l l o a d s a a p p l i c a t i o n - t y p e f i l e , i w i l ll o a d i i p l a c e o t h D e s k T o p a n J S t t h s t a r t a d d r e s sg i v e n i t h H e a d e r B l o c k .

T h r e a s o n f o d e l v i n g i n t o t h f i l e s t r u c t u r e i t h a t m o s t ( i n o a l l ) a s s e m b l e r s d n o t o u t p u t G E O S a p p l i c a t i o n s , b u p r d u c e " b i n a r y " o o b j e c t f i l e s . I w w a n t t h a v e o u c o d e r u u n d e r t h G E O S K e r n a l , w n e e d m e t h o d o t r a n s l a t i n gs t a n d a r d o b j e c t f i l e t G E O S f o r m a t . T h u s , P r o g r a m 1 " m a k e -t o g e o s " .

T r a n s l a t i n g t G E O S

T h p r o c e s s t h a t " m a k e t o g e o s " w i l l g t h r o u g h t t r a n s l a t e

H e a d e r B l o c k h a t b e a s s e m b l e de x a c t l y 2 5 b y t e s b e f o r e t h b e g i n( r e m e m b e r , P R f i l e s s a v e t h l ob y t e s , a n t h e y u s e 2 5 b y t e s p e s

M a i n l o o p

I i t b a s i c f o r m , a G E O S a p p l i c a t ii n i t i a l i z a t i o n r o u t i n e , s e o d a t ar o u t i n e s . W h e n o u a p p l i c a t i o n i t t h s t a r t a d d r e s s h e l d i t h H e a T h i s a d d r e s s w i l l p o i n t t o u i n iu s u a l l y b c a l l e d o n c e t c r e a t e m e o n a l o w h i c h a r d e f i n e d b s i z a t i o n c o d e t e r m i n a t e s w i t h a R T n a l ' s m a i n l o o p . T h m a i n l o o p j w a t c h e s s e o I R p r o c e s s t i m e i c o n , m a i n l o o p d e t e r m i n e s w h i c ht h e s e r v i c e r o u t i n e a s s o c i a t e d w i t ht i n e p e r f o r m s w h a t e v e r a c t i o n i M A I N L O O P .

T h i m p o r t a n t t h i n g t u n d e r s t a n dh a v e t w r i t e s e o s u b r o u t i n e s ,t i o n s ( I R Q , c h a r a c t e r p r i n t i n g , m a t h r e a d y t h e r e . O u c o d e d o e s n ' t d f o r m s s o m e a c t i o n ( o r o n o t h p

A t h i s p o i n t f e e x a m p l e s m a w o r d a b o u t G E O S r o u t i n e s , v a r i a b

T h e G E O S P r o g r a m m e r ' s R e f e r e n c l i s t s o v e r 6 0 c o n s t a n t s , 2 0 v a r i a( c a l l e d v i a a j u m p t a b l e a $ C 1 O O -w i t h ! D o c u m e n t i n g e v e n j u s t t h p a g e s , b u t h e r e w e ' l l b e c o n c e r n T h a p p l i c a b l e c o n s t a n t s ' l a b e l s a r c l u d e d s o u r c e c o d e , b u a r e x p l av a r i a b l e s a r e l i s t e d w h e r e t h e y ' r e t i o n o t h z e r o - p a g e r e g i s t e r s . T h o 1 t w o - b y t e p s e u d o - r e g i s t e r s l

I d l d s t

< # O U R M E N U ; l > # O U R M E N U ; h R

n e s t m e n u s d o w n f o u r l e v e l s . E s e r v i c e r o u t i n e a n d / o r r o l l u t t h r e e p o s s i b i l i t i e s : R E D O M E N

Page 60: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 60/84

s t I d j s

R O + 1# ; l e a v e p o i n t e r a D O M E N U

t h i s c h o i c e

T h K e r n a l n o e x p e c t s t f i n d t a b l e a a d d r e s s O U R M E N Ud e f i n i n g t h m e n u s t r u c t u r e . A f t e r d r a w i n g t h m e n u , i w i l ll e a v e t h m o u s e p o i n t e r o s e l e c t i o n o n ( t h e s e c o n d o n e ) . T h f i r s t s e c t i o n o t h m e n u t a b l e t e l l s i w h e r e t h m e n u i l o c a te o t h h i - r e s s c r e e n , w h a t t y p e o m e n u i i a n h o m a n ys e l e c t i o n s i d i s p l a y s . O u t a b l e m i g h t s t a r t l i k e t h i s :

O U R M E N U = . b y t e $ 0 0. b y t e $ 0 f. w o r d $ 0 . w o r d $ 6 . b y t e $ 0

; t o p/ b o t t o m; l e f t; r i g h t; t y p e / i t e m s

T h f i r s t f o u r e n t r i e s d e s c r i b e t h o u t e r b o r d e r s o t h m e n u ,t h e o r i g i n o t h h i - r e s s c r e e n b e i n g t h u p p e r l e f t c o r n e r . T h l a s t b y t e i t h n u m b e r o m e n u i t e m s O R e d w i t h t h m e n ut y p e . T h a b o v e e x a m p l e d e s c r i b e s h o r i z o n t a l m e n u w i t ht w i t e m s . T h e r e a r e t h r e e t y p e s o m e n u s ( i m a b h e l p f u l t t h i n k o t h e m b y t h b i t s t h e y s e t ) :

$ 0 h o r i z o n t a l$ 8 v e r t i c a l$ 4 c o n s t r a i n s p o i n t e r t m e n u

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

. w o r d S 1 T E X T. b y t e 1 2 . w o r d S 1 M E N U. w o r d S 2 T E X T. b y t e . . w o r d S 2 R T N

; a d d r o t e x t; s u b - m e n u; a d d r o s u b m e n u; a d d r o t e x t; m e n u a c t i o n; a d d r o r t

G O T O H R S T M E N U . R e s p e c t i v e l y ,m e n u , g o b a c k o n e l e v e l , a n d g p l s e r v i c e r o u t i n e a b o v e :

S 1 R T N = j s R E D O M E N U ;

. . o u s e r v i c e

r t ;

W h e n t h m e n u i r o l l e d u p , tu s u a l l y w a n t t u s o n o t h e t h s c r e e n . O t h e r w i s e , i y o m e n u w a s , i w o u l d b d e s t r o y e

b i a b o u t g r a p h i c s

G E O S u s e s t w 8 0 0 0 - b y t e h i - r e sg r a p h i c s . T h m a i n s c r e e n i s c r e e n i a $ 6 0 0 0 . O u a p p l i c a t i$ 5 F F F , a n w m a o p t i o n a l l y u A m e n t i o n e d a b o v e , G E O S h a l d r a w n g r a p h i c s t i t m a i n h t h e p r o c e s s , b u t o n l y m e n t i o n t r o u t i n e s f o m e n u s a n d i a l o g be a n y t h i n g t h a t t h e s e s t r u c t u r e s

W e ' l l i l l u s t r a t e f e o t h g r a w h a v e t l o o k a t h f o r m a t si n f o r m a t i o n f o i c o n s a n b i t m s a v e s c o d e a n d i s k s p a c e , n o G E O S u s e s t h r e e d i f f e r e n t c o m p a p a c t a n d u n c o m p a c t s c a n l i n e s ,u s e d i C 6 g r a p h i c s . ( B e a w a t h r o u g h G E O S d a t a f i l e s , y o u ' l l m e n t s d o s t o r e t h e i r d a t a c o m p t h a t P h o t o S c r a p s a n d P h o t o A lp a c t t h e i r c o l o u r d a t a i m m e d i a b i t m a p s . )

t h p a t t e r n i r e p e a t e d . T h e p a t t e r ns t a r t s w i t h t h e 3 r d b y t e a n d i m a d eu o t h o t h e r t w o f o r m a t s .

W e ' l l m e n t i o n j u s t o n m o r e g r a p h o n b i t m a p u p a l l o w s u s t d i s p l a yh i - r e s s c r e e n . T h i s r o u t i n e a l s o h a

Page 61: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 61/84

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

f e w d r a w i n g c o m m a n d s

T d r a w l i n e b e t w e e n t w p o i n t s w c a l l t h e r o u t i n e d r a w -l i n e . B e f o r e c a l l i n g t h r o u t i n e w n e e d t p u t h c o o r d i n a t e so o u e n d p o i n t s i n t o t h p s e u d o - r e g i s t e r s :

R R l ( l o b y t e )R R l l + 1 ( h i b y t e )

x l ( 0 - 3 1 9 )y l ( 0 - 1 9 9 )x ( 0 - 3 1 9 )y ( 0 - 1 9 9 )

I t h e c a r r y f l a g i s e w h e n c a l l i n g d r a w l i n e , t h l i n e i d r a w n i t h f o r e g r o u n d c o l o u r ; i i t ' s c l e a r , t h l i n e i d r a w ni t h b a c k g r o u n d c o l o u r . S e t t i n g t h e s i g n f l a g r e c o v e r s t h b i t s f r o m t h s e c o n d a r y s c r e e n ( a n d i g n o r e s t h e c a r r y f l a g ) ;c l e a r i n g t h i s f l a g d r a w s o t h m a i n h i - r e s s c r e e n .

W d r a w s i n g l e p o i n t b c a l l i n g t h e r o u t i n e D R A W P O I N T . T h v a l u e i p u i n t o R 3 , a n t h v a l u e i p u i n t o t h l o b y t e

o R l l . T h c a r r y a n s i g n f l a g s o p e r a t e t h s a m e a t h e y d f o D R A W L I N E .

T h e R E C T A N G L E r o u t i n e d r a w s s o l i d r e c t a n g l e u s i n g o n o t h K e r n a l f i l l p a t t e r n s s e b t h r o u t i n e s e t p a t t e r n .F R A M E R E C T A N G L E d r a w s t h e o u t l i n e o a r e c t a n g l e u s i n g p a t e r n b y t e t h a t d e s c r i b e s t h b i t s i n t h l i n e ( $ F F , % l l l i l i nw o u l d b s o l i d l i n e , $ 5 i t h e p a t t e r n % O 1 O 1 O 1 O 1 . ) r e c t a n g l ea n F R A M E R E C T A N G L E e x p e c t t h b o r d e r s o t h a r e a t b e d es c r i b e d i t h e s e p s e u d o - r e g i s t e r s :

R R R ( l o b y t e )R 2 + 1 ( h i b y t e )

l e f t ( 0 - 3 1 9 )r i g h t ( 0 - 3 1 9 )t o p ( 0 - 1 9 9 )b o t t o m ( 0 - 1 9 9 )

T h p a t t e r n b y t e f o F R A M E R E C T A N G L E i h e l d i n . A b e f o r e t h

u s i t h i s e x a m p l e t h a t p u t s 4 l e f t c o r n e r :

j s I . B I T M A P U P. w o r d Y O U R B I T M A P. b y t e ; p o i . b y t e / p o i . b y t e / b i t m a p . b y t e 4 / b i t m a p

Y o m i g h t b e w o n d e r i n g w h a t u s e fi y o d o n ' t h a v e c o m p a c t e d b i. b y t e d e f i n i t i o n s f o y o u r a s s e m b l e rs t e a l g r a p h i c s f r o m P h o t o S c r a p s .q u e n t i a l l y o d i s k a n a r a l r e a d yd i r e a d i t h d a t a f r o m t h U S h e ( o a n f o r m o u a s s e m b l e rt a c k c o p y o t h f i l e o a t h e n w i t h l a b e l l i n g o u b i t m a p ' s a d d rc o l o u r d a t a i c o m p a c t e d a t h e n

I c o n s

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

l d < # O U R I C O N Sl d > # O U R I C O N Ss t R s t R 0 + 1j s D O I C O N S

A g a i n , t h K e r n a l e x p e c t s t f i n da d d r e s s O U R I C O N S . I t i s i m p o r t a n ta p p l i c a t i o n m u s t h a v e a l e a s t o n i m a d n o t h i n g , b u i m u s t b d h a p p e n . T h e x a m p l e c o d e s h o w si c o n .

Page 62: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 62/84

. b y t e - $ 0 1 , $ 0 d. w o r d O U R T E X T

; b y t e s , l i n e s/ s t r i n g a d d r e s s

T h P U T S T R I N G r o u t i n e w i l l p r i n tt h s c r e e n ; i i p r o b a b l y t h m o s t w r o u t i n e s . W f i r s t p l a c e t h e h o r i z

Page 63: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 63/84

. b y t e $ 1 . b y t e $ 0 3 / $ 1 6. w o r d O U R I C O N. b y t e

/ n o n - s t a n d a r d i c o n; b y t e s , l i n e s; i c o n t a b l e a d d r e s s; e n d o t a b l e

O U R T E X T = . b y t e ' A S I M P L E S T R I N G '. b y t e

O U R I C O N = / s i m i l a r t r e g u l a r i c o n. w o r d O U R I C O N P I C / g r a p h i c a d d r e s s. b y t e. b y t e. b y t e $ 0 . b y t e $ 0

; s e a b o v e; s e a b o v e/ w i d t h i b y t e s/ h e i g h t i l i n e s

. w o r d O U R S V C R T N / s e r v i c e a d d r e s s

O U R I C O N P I C = . b y t e $ 8 8 / f o r m a t 2 / b y t e s f o l l o w. b y t e % 1 1 1 1 1 1 1 1 ; v e r y s i m p l e i c o n. b y t e % 1 0 0 0 0 0 0 1. b y t e % 1 0 0 0 0 0 0 1. b y t e % 1 0 0 0 0 0 0 1. b y t e % 1 0 0 0 0 0 0 1. b y t e % 1 0 0 0 0 0 0 1. b y t e % 1 0 0 0 0 0 0 1. b y t e % 1 1 1 1 1 1 1 1

O U R S V C R T N = / s e r v i c e r o u t i n eI d a # $ 1 0 / v a l u e t o b s t S Y S D B D A T A / p l a c e d i R j m R S T R F R M D I A L O G / e x i t t o c a l l e r

f e t h i n g s a b o u t O U R S V C R T N n e e d t b e x p l a i n e d . A w e ' v e s a i d , e x i t i n g f r o m D v i o n o t h s y t e m D i c o n sw i l l l e a v e t h a t i c o n ' s n u m b e r i R 0 B u t h K e r n a l k n o w sn o t h i n g a b o u t o u i c o n s , a n d o e s n ' t e x i t t h D B w h e n t h e y a r c a l l e d . T h K e r n a l d o e s , h o w e v e r , p r o v i d e m e t h o d o e x i t i n g

D a n p a s s i n g i n f o r m a t i o n b a c k t t h c a l l e r .

R l a n t h v e r t i c a l p o s i t i o n i n t o t t h t e s t s t r i n g ' s a d d r e s s i n t o R n a t e l y , w c a u s t h i n - l i n e f o r m :

j s I . P U T S T R I N G. w o r d 2 . b y t e 2 . b y t e " A S I M P L E S T. b y t e

T h o t h e r o f t e n - u s e d r o u t i n e , P U T D Eb i n u m b e r s t t h s c r e e n . T h s e t ( a n d y g i n t o R l a n R l ) , b u h e p r i n t e d i n t o R 0 a n l o a d t h a c c u m T h f o r m a t b y t e d e t e r m i n e s h o t h b i s e v e n i s 1 , t h n u m b e r i p r i n t ei 0 t h n u m b e r i p r i n t e d r i g h t j u s t z e r o e s a r s u p p r e s s e d . I f b i t s i i e d I w a r u s i n g r i g h t j u s i f i c a t i p i x e l w i d t h o t h f i e l d t h n u m b e ro P U T D E C I M A L i i n c l u d e d i t h t h i s a r t i c l e .

B a w a r e o p o t e n t i a l p r o b l e m t h P U T S T R I N G . A n t e x t t o b p r i n t e db o r d e r s w o n ' t b e p r i n t e d . T h e r e i w h e n a t t e m p t i n g t o p r i n t b e y o n dS T R I N G F A U L T V E C T O R . T h K e r n a l wi i i n o n - z e r o . T h r o u t i n e p o i n tp e r f o r m w o r d w r a p a n m o v e t t h e s c r e e n , d e p e n d i n g o w h i c h b o " p r i n t a t " r o u t i n e i b i b e y o n d o

v e r y u s e f u l m o d u l e f o r t h e G E O S pm o d u l e w i l l a p p e a r i f u t u r e T r a n s

F i n i s h i n g u

T e x i t o u a p p l i c a t i o n w u s t h T h i s r e - i n i t i a l i z e s t h s y s t e m a n T h a t ' s i t c o m p l e t e G E O S a p p l i c a t

t e n o n - s t a n d a r d n a m e s , a n e v e n t h i s i o n l y a p r o b l e m w h e nu s i n g b o t h t h i s a n t h B S g u i d e i t a n d e m . I y o g e c o p yo t h i s g u i d e , s e n d M r . B o y c e a d o n a t i o n e f f o r t s l i k e t h i s

I L 5 8 0C 5 9

6 0 6 1

A O

r e m f i n d a d i r e n t r yt = 1 8 : s = l : g o s u b 3 1 0f o r i = 5 t o 2 2 9 s t e p 3 2

Page 64: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 64/84

n e e d t b s u p p o r t e d . [ A l e x B o y c e ' s m a n u a l i a v a i l a b l e f r o mM y s t i c J i ( s e e N e w s B R K ) . - E d . ]

T h B S g u i d e w a w r i t t e n b t h d e v e l o p e r s o f G E O S , a n i m o p i n i o n s h o u l d h a v e b e e n b e t t e r . T h o u g h a l t h c a l l s a r p r e s e n t e d , a n m o s t d e s c r i p t i o n s a r e u n d e r s t a n d a b l e , t h d o w n f a l l o t h i s g u i d e i t h n u m e r o u s t y p o g r a p h i c a l e r r o r s ,t h i t e m s m e n t i o n e d b u l e f t o u t , a n t h f e e x a m p l e s , n o n eo w h i c h w i l l w o r k i t h f o r m p r e s e n t e d . O t h o t h e r h a n d , i y o v e r i f y t h e u n c l e a r s e c t i o n s w i t h A l e x B o y c e ' s m a n u a l , y o s h o u l d h a v e v e r y f e p r o b l e m s . B S i i t h p r o c e s s o r e w r i t i n g t h i s g u i d e , a n t h s e c o n d e d i t i o n s h o u l d b i m u c hb e t t e r s h a p e . h a v e n o i d e a w h e n i t ' s d u o u t ; i t h e y g i v e i t h a t t e n t i o n i d e s e r v e s , i m a b w h i l e .

P r o g r a m 1 " m a k e t o g e o s "C 1 0 r e s a v e " m a k e t o g e o s " , 8H 1 1 r e o r i g i n a l l y p a r t o f l a r g e r p r J D 1 2 0 d i m s * ( 2 5 5 )B E 1 3 0 g o s u b 3 7 0M 1 4 e n K 1 5 E 1 6 r e d i s k e r r o rB 1 7 i n p u t | 1 5 , e n , e m $ , e t , e s : i f e n = 0 t h e n r e t u r nN 1 8 p r i n t " { r v s ) d i s k e r r o r { r v s o f f ) " e n , e m $ , e t , e sA 1 9 0 g o s u b 2 5 0 : r e t u r nM D 2 0 0H 2 1 o p e n 1 5 , 8 , 1 5 , " i O " : r e m « o p e n a l l »F 2 2 0 g o s u b l 7 0O 2 3 o p e n 2 , 8 , 2 , " f "M 2 4 r e t u r nJ 2 5 0 c l o s e 2 : r e m c l o s e a l lI 2 6 0 p r i n t # 1 5 , n i 0 "E P 2 7 0 f o r x = 0 t o 2 0 0 0 : n e x tF B 2 8 0 c l o s e l 5 : r e t u r n6 2 9 E 3 0 r e r e a d s e c t o r t , s , s % ( 2 5 5 )M 3 1 0 p r i n t " r e a d i n g t r k : " ; t ; " s e c : " ; sF 3 2 p r i n t # 1 5 / " u l " ; 2 ; 0 ; t ; sM 3 3 g o s u b l 7 0 : f o r i = 0 t o 2 5 5 : g e t # 2 , b $G 3 4 s % ( i ) = a s c ( b $ + c h r $ ( 0 ) ) : n e x t : r e t u r nC 3 5 A 3 6 r e c o n v e r t c 6 f i l e t g e o sK 3 7 p r i n t " i n p u t f i l e n a m e " : p r i n t : i n p u t f $ : i f f $ = " " t h e n e n dC 3 8 f o r x = 0 t o l 5 : f $ = f $ + c h r $ ( 1 6 0 ) : n e x t : f $ = l e f t $ ( f $ , 1 6 )D 3 9 0 g o s u b 2 1 0 : g o s u b 6 0 0 : r e m d i r

P 6 2 6 3 6 4

A g $ = " " : f o r j = 0 t o l 5g $ = g $ + c h r $ ( s % ( i + j ) ) : n e x ti f g $ = f $ t h e n d l = s % ( i - 2 ) : d 2 = s % ( i -

r e m e 3 = f i l e t y p en e x t : i f s % ( 0 ) < > 0 t h e n t = s % ( 0 ) : s = s p r i n t " { r v s ) n o t f o u n d { r v s o

r e m w r i t e s e c t o r t o d i s kp r i n f ' w r i t i n g t r k : " ; t ; " s e c : " ; sp r i n t # 1 5 , " b - p " ; 2 ; 0f o r i = 0 t o 2 5 5p r i n t § 2 , c h r $ ( s % ( i ) ) ;n e x tp r i n t f l 5 , " u 2 " ; 2 ; 0 ; t ; sg o s u b ! 7 0 : r e t u r n

A 6 5 D 6 6 C 6 7 J 6 8 J 6 9 F 7 0 C I 7 1 0O P 7 2 0O 7 3 N 7 4 F 7 5 M 7 6 6 7 7 D 7 8 r e g e d i r e n t r y i n f oH F 7 9 0 p r i n t " { d o w n ) ( d o w n ) d i r . e n t r y iD 8 0 i n p u t " y e a rE 8 1 i n p u t " m o n t h

i n p u f ' d a yi n p u f ' h o u ri n p u t " m i n .

N 8 2 N 8 3 N 8 4 C 8 5 p r i n t " f i l e :

t i m e : "

" ; t l : i f t l > 9 9 t h e n 8 0 M ; t 2 : i f t 2 > 1 2 t h e n 8 1 H ; t 3 : i f t 3 > 3 1 t h e n 8 2 n ; t 4 : i f t 4 > 2 3 t h e n 8 3 n ; t 5 : i f t 5 > 5 9 t h e n 8 4 ; f $ : p r i n t " d a t e : " t l

: t 4 ; " : n ; t 5 : p o k e l 9 8 , F 8 6 p r i n f ' d o y o u w i s h t c h a n g e i n

i n p u t k $ : i f k $ = " y " t h e n 7 9 0C I 8 7 0 r e t u r n

P r o g r a m 2 : " g e o s d e m o . p a l "H 1 0 0 o p e n 2 , 8 , 2 , " 0 : g e o s d e m o , p , w "P 1 1 0 s y s 7 0 J 1 2 . o p t o I 1 3 1 1 4 0 / f . g . k o s t e l l a 1 2 / 1 0 / 8 7M 1 5 E 1 6 * $ 0 3 0 4

1 7 1 8 0 ; z p a g e p s e u d o - r e g i s t e r s1 9 2 0 0 r O $ 0 2 '2 1 0 r O l $ 0 2 2 r O h = $ 0 2 3 0 r l = $ 0 42 4 0 r l l $ 0 2 5 0 r l h = $ 0 2 6 0 r l l $ 1

A F E O I 6 F B P M

M 4 6 w i n d o w $ c 2 5 6 / d o d l g b o xP 4 7 d s w i n $ c 2 b f / r s t r f r m d i a l o gA 4 8 d s p t x t = $ c l 4 8 ; p u t s t r i n gA 4 9 0 d s p t x 2 = $ d a e ; i p u t s t r i n gE P 5 0 0 d s p n u m = $ c ! 8 4 / p u t d e c i m a l

C B 1 1 9 0 j s r p f i l l 2E 1 2 0 0 . b y t eO 1 2 1 0 . b y t e 1 9 9J 1 2 2 0 . w o r dA 1 2 3 0 . w o r d 3 1 9

Page 65: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 65/84

B 5 1 0 r e s t r t $ c 2 2 c / e n t e r d e s k t o pO 5 2 P 5 3 s f v e c $ 8 4 a b / s t r i n g f a u l t v e c t o rF 5 4 s y s d b = $ 8 5 1 d / s y s d b d a t aM 5 5 F 5 6 ; — - H 5 7 0 / h e a d e r b l o c k s t a r t s a t $ 0 3 0 46 5 8 ; r a m - b a s e d a s s e m b l e r s m a n e e d .G P 5 9 0 / t c h a n g e s t a r t a d d r e s s .N D U O 1 , - - — - — - - - — . . . — - . .A 6 1 / - a s s e m b l e t h e h e a d e r b l o c k h e r e -O 6 2 - n o t e -K 6 3 0 ; l s t b y t e s c o m m e n t e d o u t h e r eK 6 4 / t h e y w i l l b e p l a c e d i n t h eJ 6 5 0 ; g e o s f i l e h e a d e r b y " m a k e t o g e o s "K 6 6 / . b y t e 0 , 2 5 5 s e c t o rA 6 7 / . b y t e 3 , 2 1 3 x 2 1 i c o nO f i f t f i • F 6 9 / d e f i n e i c o n t o a p p e a r o n d e s k t o D 7 0 . b y t e $ b ; $ 8 0 ( s t r a i g h t b i t m a p ) 6 d a t a b y t e sL 7 1 . b y t e % 1 1 1 1 1 1 1 1 , % 1 1 1 1 1 1 1 1 , % 1 1 1 1 1 0 0 0H 7 2 . b y t e % 1 0 0 0 0 0 0 0 , % 0 0 0 0 0 0 0 0 , % 0 0 0 0 1 0 0 0B 7 3 0 . b y t e % 1 0 0 0 0 0 0 0 / % 0 0 0 0 0 0 0 0 , % 0 0 0 0 1 0 0 0N 7 4 0 . b y t e U 0 0 1 1 1 0 1 , $ 1 1 0 1 1 1 0 1 , & 1 1 0 0 1 1 1 1H 7 5 0 . b y t e % 1 0 0 0 1 0 0 1 r % 0 0 0 l 0 0 0 0 / % 1 0 0 0 1 1 1 1H 7 6 . b y t e % 1 0 0 0 1 0 0 1 , % 1 1 0 0 1 0 0 0 , % 1 0 0 0 1 1 1 1N 7 7 . b y t e % 1 0 0 0 1 0 0 1 , % 0 0 0 0 0 1 0 0 , % 1 0 0 0 1 1 1 1P 7 8 0 . b y t e % 1 0 0 0 1 0 0 1 , U 1 0 1 1 1 0 0 , 1 1 0 0 0 1 1 1 1D 7 9 0 . b y t e % 1 0 0 0 0 0 0 0 / % 0 0 0 0 0 0 0 0 , % 0 0 0 0 1 1 1 1N 8 0 0 . b y t e % 1 0 0 0 0 0 0 0 , % 0 0 0 0 0 0 0 0 r % 0 0 0 0 1 1 1 1O P 8 1 0 . b y t e % 1 0 0 1 1 1 0 1 , % 1 1 0 1 0 0 0 1 , % 1 1 0 0 1 1 1 1I 8 2 0 . b y t e % 1 0 0 1 0 0 0 0 / % 1 0 0 1 0 0 0 1 , % 0 0 0 0 1 1 1 1M 8 3 0 . b y t e % 1 0 0 1 1 1 0 0 , % 1 0 0 1 0 0 0 1 , % 1 1 0 0 1 1 1 1M 8 4 . b y t e % 1 0 0 1 0 0 0 0 , % 1 0 0 1 0 0 0 1 f % 0 0 0 0 1 1 1 1G C 8 5 0 . b y t e % 1 0 0 1 0 0 0 1 , % 1 1 0 1 1 1 0 1 , % 1 1 0 0 1 1 1 1J 8 6 0 . b y t e U 0 0 0 0 0 0 0 , % 0 0 0 0 0 0 0 0 , * 0 0 0 0 1 1 1 1D 8 7 0 . b y t e % 1 0 0 0 0 0 0 0 , % 0 0 0 0 0 0 0 0 , % 0 0 0 0 1 1 1 1L F 8 8 0 . b y t e I l l l l l l l l , 1 1 1 1 1 1 1 1 1 , 1 1 1 1 1 1 1 1 1O 8 9 0 . b y t e % 0 0 0 1 1 1 1 1 , % l l l l l l l l r % 1 1 1 1 1 1 1 11 6 9 0 0 . b y t e % 0 0 0 1 1 1 1 1 , % 1 1 1 1 1 1 1 1 / % 1 1 1 1 1 1 1 1C 9 1 . b y t e % 0 0 0 1 1 1 1 1 , % 1 1 1 1 1 1 1 1 , % 1 1 1 1 1 1 1 1O 9 2 L P 9 3 0 . b y t e $ 8 ; c 6 4 f i l e t y p e u s rM 9 4 0 . b y t e / a p p l i c a t i o nI D 9 5 0 . b y t e ; g e o s s e q f i l e6 9 6 H 9 7 0 . w o r d s a d d r / l o a d s t a r t a d d rL 9 8 0 . w o r d e a d d r / l o a d e n a d d rE 9 9 . w o r d s t a r t / s t a r t a d d r j u m pO F 1 0 0 0

F 1 2 4 0 I d a # $ f £I N 1 2 5 0 j s r p b o xC 1 2 6 0M 1 2 7 0 ; i c o n r e q u i r e d a t a l l t i m e s , s o .G H 1 2 8 0M H 1 2 9 0 l d x K d u m y / d u m m y u n t i lC 1 3 0 0 l d y f > d u m m y / w n e e d o n G 1 3 1 0 s t r O I L 1 3 2 0 s t r O G 1 3 3 0 j s r c b o x e sO J 1 3 4 0 m e n u sO P 1 3 5 0 l d x K o u r m n uI 1 3 6 0 l d y # > o u r m n uC 1 3 7 0 s t x r O lE P 1 3 8 0 s t y r O hL F 1 3 9 0 I d # C 1 4 0 0 j s r m e n uL 1 4 1 0 t h a t ' s a l l ! , r t t m a l o o pI 1 4 2 0 r t s

A 1 4 4 0 d u m m y = C K 1 4 5 0 . b y t e 1 ; o f i c o n sK 1 4 6 0 . w o r d 3 1 9 / l e a v e m o u s e x p o s ,H D 1 4 7 0 . b y t e 1 9 9 ; y p o O D 1 4 8 0J 1 4 9 0 . w o r d / i c o n b i t m a p a d d rO K 1 5 0 0 . b y t e 3 6 , 1 ; p o s . b y t e ( / 8 ) , v p o s .J C 1 5 1 0 . b y t e 1 , 1 ; w + hD E 1 5 2 0 . w o r d / d i s p a t c h r t

B 1 5 4 0 ; . . . m e n u s t r u c t u r e . . .P E 1 5 5 0 o u r m n u = O B 1 5 6 0 . b y t e / m a i n t o 0 1 5 7 0 . b y t e 1 3 / m a i n b o t t o mA 1 5 8 0 . w o r d / m a i n l e f tG 1 5 9 0 . w o r d 8 / m a i n r i g h tE 1 6 0 0 . b y t e / h o r z ( $ 0 0 ) o r ' e d w / m e n A 1 6 1 0A 1 6 2 0 . w o r d f i l t x tG 1 6 3 0 . b y t e $ 8 0 / s u b m e n u c o n s t a n tM 1 6 4 0 . w o r d f i l m n u ; r t n1 1 6 5 0P L 1 6 6 0 . w o r d o p t x tG G 1 6 7 0 . b y t e $ 8 0P 1 6 8 0 . w o r d o p m n uA 1 6 9 0H I 1 7 0 0 / t e x t f o r m a i n s e l e c t i o n sJ 1 7 1 0 f i l t x t . a s c " f i l e "M 1 7 2 0 . b y t eG G 1 7 3 0 o p t x t . a s c " o p e r a t i o n s "

D 1 9 2 0 d o e x i t = *E 1 9 3 0 j a r e s t r tR 1 9 4 0O 1 9 5 0 o p m n u = *D 1 9 6 0 . b y t e 1 3 , 5 5 ; t o p , h o t

I O 2 6 5 0 m o v e r = I 2 6 6 0 j s a n e n u sE 2 6 7 0H 2 6 8 0 d o d b = J 2 6 9 0 j s d r a d r

Page 66: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 66/84

H 1 9 7 0 . w o r d 2 3 , 8 0 ; l e f t , r i g h tG 1 9 8 0 . b y t e $ 8 v e r t i c a l o r ' d w /M 1 9 9 0D 2 0 0 0 . w o r d o p O t x tH E 2 0 1 0 . b y t e / m e n u a c t i o nL H 2 0 2 0 . w o r d o p O r t nE 2 0 3 0P 2 0 4 0 . w o r d o p l t x tG P 2 0 5 0 . b y t eJ D 2 0 6 0 . w o r d m o v e rM 2 0 7 0L 2 0 8 0 . w o r d o p 2 t x tO B 2 0 9 0 . b y t eL 2 1 0 0 . w o r d s i z e rE 2 1 1 0B P 2 1 2 0 o p O t x t . a s c " p a t t e r n "G 2 1 3 0 . b y t eB 2 1 4 0 o p l t x t . a s c " m o v e r "K 2 1 5 0 . b y t eH 2 1 6 0 o p 2 t x t . a s c " s i z e r "O 2 1 7 0 . b y t eP 2 1 8 0M 2 1 9 0 o u r p a t . w o r dO 2 2 0 0I 2 2 1 0 o p O r t n = A 2 2 2 0 j s r a n e n u sM 2 2 3 0A 2 2 4 0 I d a o u r p a tD P 2 2 5 0 a n # % 0 0 0 1 1 1 1 1C 2 2 6 0 s t a o u r p a tF 2 2 7 0 j s s e t p a tE 2 2 8 0 j s r p f i l l 2F 2 2 9 0 . b y t e 1 3A 2 3 0 0 . b y t e 1 9 L 2 3 1 0 . w o r dC F 2 3 2 0 . w o r d 3 1 H 2 3 3 0 I d a # $ f fK 2 3 4 0 j s p b o xE 2 3 5 0D P 2 3 6 0 j s d s p t x 2P 2 3 7 0 . w o r d 9 D 2 3 8 0 . b y t e 1 0H I 2 3 9 0 . a s c " p a t t e r n :E 2 4 0 0 . b y t eA 2 4 1 0O B 2 4 2 0 l d x # 1 3 2J 2 4 3 0 l d y # B 2 4 4 0 s t x r i l lP P 2 4 5 0 s t r l l hJ H 2 4 6 0 l d y § 1

J E 2 7 0 0 l d x K d b t a bD 2 7 1 0 l d y # > d b t a bI 2 7 2 0 s t x r O lK D 2 7 3 0 s t r O J G 2 7 4 0 j s w i n d o wA I 2 7 5 0 I d r / r e t u r n e d b d C 2 7 6 0 b m o u r sE F 2 7 7 0 i t . ' o k 'I M 2 7 8 0 r t M 2 7 9 0A 2 8 0 0 o u r s = C I 2 8 1 0 c m p # $ 8 2J 2 8 2 0 b c s o u r s lN 2 8 3 0 I d a # C 2 8 4 0 s t a d b t o pG O 2 8 5 0 s t a d b b o tI F 2 8 6 0 j s r d b s u bA 2 8 7 0 j m o u r s 4G 2 8 8 0R 2 8 9 0 o u r s l = *A 2 9 0 0 c m p # $ 8 3E 2 9 1 0 b c s o u r s 2H 2 9 2 0 I d # G 2 9 3 0 s t a d b l e f tM 2 9 4 0 s t a d b r g h tC 2 9 5 0 j s d b s u bR 2 9 6 0 j a o u r s 4A 2 9 7 0G 2 9 8 0 o u r s 2 = *O 2 9 9 0 c m p # $ 8 4P 3 0 0 0 b c s o u r s 3B L 3 0 1 0 I d a # G 3 0 2 0 s t a d b t o pR 3 0 3 0 s t a d b b o tE 3 0 4 0 j s d b a d dE B 3 0 5 0 j m o u r s 4R G 3 0 6 0C G 3 0 7 0 o u r s 3 = *H P 3 0 8 0 I d a # G 3 0 9 0 s t a d b l e f tM 3 1 0 0 s t a d b r g h tR 3 1 1 0 j s d b a d dG 3 1 2 0A 3 1 3 0 o u r s 4 = *H 3 1 4 0 j s r d s p v a lP 3 1 5 0 j m d o d bO 3 1 6 0T , , T 3 1 7 f l • — — I C 3 1 8 0 ; u s e t h s a m e d b p r o c e s sF 3 1 9 0 ; t h e r e s u l t s d i f f e r e n t l y

D 3 3 8 0 I d a 1 2I 3 3 9 0 s t a d b t o pE 3 4 0 0 j s d b s u bJ F 3 4 1 0 j s c l r a d rL E 3 4 2 0 I d a #

O K F E B

4 1 1 0 I d a d b t a b + 5 / r i g h t o f d 4 1 2 0 s b c d b r g h t4 1 3 0 s t a d b t a b + 54 1 4 0 I d a d b t a b + 64 1 5 0 s b c 1 0

Page 67: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 67/84

K C 3 4 3 0 s t a d b b o tE 3 4 4 0 j s r d b a d dI 3 4 5 0 j m o u r s 4 zK P 3 4 6 0K 3 4 7 0 o u r s l z = *E 3 4 8 0 c m p # $ 8 3M 3 4 9 0 b c o u r s 2 zL 3 5 0 0 I d # K 3 5 1 0 s t a d b l e f tM 3 5 2 0 j s r d b s u bB 3 5 3 0 j s r c l r a d rD 3 5 4 0 I d a # O E 3 5 5 0 s t a d b r g h tM 3 5 6 0 j s d b a d dA 3 5 7 0 j m p o u r s 4 zC 3 5 8 0E C 3 5 9 0 o u r s 2 z = A 3 6 0 0 c o p # $ 8 4F 3 6 1 0 b c o u r s 3 zD B 3 6 2 0 I d a | I 3 6 3 0 s t a d b t o pM 3 6 4 0 j s r d b a d dJ E 3 6 5 0 j s c l r a d rL D 3 6 6 0 I d a # 2K B 3 6 7 0 s t a d b b o tM 3 6 8 0 j s r d b s u bI 3 6 9 0 j n p o u r s 4 zK 3 7 0 0O 3 7 1 0 o u r s 3 z = *H f 3 7 2 0 I d a # 6 0 3 7 3 0 s t a d b l e f tA F 3 7 4 0 j s d b a d dN 3 7 5 0 j s c l r a d rP 3 7 6 0 I d a | K C 3 7 7 0 s t a d b r g h tA P 3 7 8 0 j s d b s u bE E 3 7 9 0K 3 8 0 0 o u r s 4 z = F 3 8 1 0 j s r d s p v a lH L 3 8 2 0 j m d o d b zM 3 8 3 0n t > Q A ( \ • . « . » _ . « » « « / 4 K e u H e - - - - - - - - - - - - - -

A I 3 8 5 0J N 3 8 6 0 c l r a d r = J 3 8 7 0 I d a # C 3 8 8 0 s t a d b t o pG 3 8 9 0 s t d b b o tA 3 9 0 0 s t a d b l e f tG L 3 9 1 0 s t a d b r g h tM D 3 9 2 0 r t

6 6 K C O I K N B 6 0 M I O E E D C H E E I 6 P 0 N A A E O A C B H G L J O A C E L T \ U B L K H H O A

4 1 6 0 s t a d b t a b + 64 1 7 0 r t s4 1 8 04 1 9 0 d b a d d = 4 2 0 0 c l 4 2 1 0 I d a d b t a b + 1 ; t o p o f d b4 2 2 0 a d c d b t o p4 2 3 0 s t a d b t a b + 14 2 4 0 c l c4 2 5 0 I d a d b t a b + 2 ; b o t o f d b4 2 6 0 a d c d b b o t4 2 7 0 s t a d b t a b + 24 2 8 0 c l 4 2 9 0 I d a d b t a b + 3 ; l e f t o f d b4 3 0 0 a d c d b l e f t4 3 1 0 s t a d b t a b + 34 3 2 0 I d a d b t a b + 44 3 3 0 a d c 1 4 3 4 0 s t a d b t a b + 44 3 5 0 c l 4 3 6 0 I d d b t a b + 5 / r i g h t o f d b4 3 7 0 a d c d b r g h t4 3 8 0 s t a d b t a b + 54 3 9 0 I d a d b t a b + 64 4 0 0 a d c # 4 4 1 0 s t a d b t a b + 64 4 2 0 r t 4 4 3 04 4 4 04 4 5 0 d s p y a l = 4 4 6 04 4 7 0 I d 1 4 4 8 0 j s r s e t p a t4 4 9 0 j s r p f i l l 24 5 0 0 . b y t e4 5 1 0 . b y t e 1 4 5 2 0 . w o r d 2 3 94 5 3 0 . w o r d 3 1 84 5 4 04 5 5 0 l d x 1 2 1 04 5 6 0 l d # A R 7 f t a f r i l lt j l v g H X 4 5 8 0 s t y r l l h4 5 9 0 l d y # 1 4 6 0 0 s t y r l h4 6 1 0 l d d b t a b + 14 6 2 0 l d y # 4 6 3 0 s t r O 4 6 4 0 s t y r O h4 6 5 0 I d a # 1 1 1 0 0 0 0 0 0

K 4 8 4 0 l d y d b t a b + 4G 4 8 5 0 s t x r M 4 8 6 0 s t y r O hC 4 8 7 0 I d a i % 1 1 0 0 0 0 0 0G 4 8 8 0 j s r d s p n u mA 4 8 9 0

L 5 5 8 0 I d a # $ 8 1I G 5 5 9 0 s t a s y s d bM 5 6 0 0 a n g e o u K 5 6 1 0 j m p c l s w i nP 5 6 2 0O 5 6 3 0 d b 2 = *

Page 68: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 68/84

K 4 9 0 0 l d x # 2 9L 4 9 1 0 l d y # B 4 9 2 0 s t x r i l lP 4 9 3 0 s t y r l l hN 4 9 4 0 l d x d b t a b + 5O 4 9 5 0 l d y d b t a b + 6E 4 9 6 0 s t x r K 4 9 7 0 s t y r O hA 4 9 8 0 I d a f t l l O O O O O OE 4 9 9 0 j s r d s p n u mE 5 0 0 0 r t sH 5 0 1 0F 5 0 2 0 d b t a b = M 5 0 3 0P 5 0 4 0 . b y t e $ 0 1 ; p o s / s h a d o w p a t r nA 5 0 5 0K P 5 0 6 0 . b y t e 5 0 ; t o pC 5 0 7 0 . b y t e 8 6 ; b o t tB 5 0 8 0 . w o r d 4 8 ; l e f tF 5 0 9 0 . w o r d 1 2 0 ; r i g h tC 5 1 0 0O 5 1 1 0 . b y t e ; o K B 5 1 2 0 . b y t e ; b y A 5 1 3 0 . b y t e 1 6 ; p i x e lK 5 1 4 0G 5 1 5 0 . b y t e $ 1 2 ; u s e r i c o nE 5 1 6 0 . b y t e 1 ; o f f s e tI 5 1 7 0 . b y t e ; o f f s e tA 5 1 8 0 . w o r d d b ; a d d r o i c o n t a b l eM 5 1 9 0G 5 2 0 0 . b y t e $ 1 2I D 5 2 1 0 . b y t e 3 , P 5 2 2 0 . w o r d d b 2E 5 2 3 0O 5 2 4 0 . b y t e $ 1 2J G 5 2 5 0 . b y t e 5 , L 5 2 6 0 . w o r d d b M 5 2 7 0G 5 2 8 0 . b y t e $ 1 2H 5 2 9 0 . b y t e 7 , H D 5 3 0 0 . w o r d d b 4E 5 3 1 0I 5 3 2 0 . b y t e ; e n dJ 5 3 3 0 ; — — — — — — — — —F 5 3 4 0 ; d b u s e r i c o n t a b l e s , g r a p h i c sM 5 3 5 0 ; s e r v i c e r o u t i n e s f o m o v e rG 5 3 6 0G B 5 3 7 0 d b l = A 5 3 8 0 . w o r d d b l b i t ; a d d r o f p i c t u r e d a t aO I 5 3 9 0 . b y t e 0 , 0 ; x , y - a l r e a d y s e t !

D 5 6 4 0 . w o r d d b 2 b i tJ 5 6 5 0 . b y t e 0 , 0 , 1 , 8M 5 6 6 0 . w o r d d o d b 2M 5 6 7 0K 5 6 8 0 d b 2 b i t = C 5 6 9 0 . b y t e $ 8 8L O 5 7 0 0 . b y t e U l l l l l l lC P 5 7 1 0 . b y t e U 1 1 0 1 1 1 1K 5 7 2 0 . b y t e U 1 0 0 1 1 1 1M P 5 7 3 0 . b y t e U 0 0 0 0 0 0 1G 5 7 4 0 . b y t e U 0 0 0 0 0 0 1I B 5 7 5 0 . b y t e U 1 0 0 1 1 1 1E 5 7 6 0 . b y t e U 1 1 0 1 1 UB D 5 7 7 0 . b y t e U l l l l l l lK 5 7 8 0C 5 7 9 0 d o d b 2 I d a # $ 8 2K D 5 8 0 0 s t a s y s d bC 5 8 1 0 j m c l s w i nC D 5 8 2 0M D 5 8 3 0E 5 8 4 0 d b 3 = J C 5 8 5 0 . w o r d d b 3 b i tL 5 8 6 0 . b y t e 0 , 0 , 1 , 8A I 5 8 7 0 . w o r d d o d b 3O 5 8 8 0A 5 8 9 0 d b 3 b i t = E 5 9 0 0 . b y t e $ 8 N 5 9 1 0 . b y t e U l l l l l l lA 5 9 2 0 . b y t e U 1 1 0 0 1 1 1K 5 9 3 0 . b y t e U 1 1 0 0 1 1 1E 5 9 4 0 . b y t e U 1 1 0 0 1 1 1I 5 9 5 0 . b y t e U 0 0 0 0 0 0 1F 5 9 6 0 . b y t e U 1 0 0 0 0 UC P 5 9 7 0 . b y t e U 1 1 0 0 1 1 1

' D 5 9 8 0 . b y t e U l l l l l l lM 5 9 9 0D 6 0 0 0 d o d b 3 = *A 6 0 1 0L 6 0 2 0 I d a # $ 8 3A 6 0 3 0 s t a s y s d bI G 6 0 4 0 j m p c l s w i nN 6 0 5 0C 6 0 6 0M 6 0 7 01 6 0 8 0 * 4 = *N 6 0 9 0 . w o r d d b 4 b i tL 6 1 0 0 . b y t e 0 , 0 , 1 , 8C 6 1 1 0 . w o r d d o d b 4O 6 * 1 2 0E 6 1 3 0 d b 4 b i t = *

T h L t K e r n a l H a r d D r i v e S

Page 69: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 69/84

P u s h i n g t h l i m i t s . . .

b B i l l B r i e r

R e c e n t l y , s e v e r a l t h i r d p a r t y m a n u f a c t u r e r s h a v e r e l e a s e d h a r dd r i v e s f o r u s e w i t h t h C 6 a n d C 1 2 8 . A l o t h e s e u n i t s h a v et h e i r g o o d ( a n d b a d ) f e a t u r e s , b u t o n l y o n i c a p a b l e o f p e rf o r m i n g i m a n n e r s u i t a b l e f o p r o f e s s i o n a l a n b u s i n e s su s e : t h X e t e c L t K e r n a l h a r d d i s k s u b s y s t e m .

A d a p t i n g a h a r d d i s k u n i t t o a n e i g h t b i C o m m o d o r e c o p u t e r i n t r i v i a l m a t t e r . B o t h t h C o m m o d o r e D O a n s e r i a ld a t a b u a r u n i q u e t C o m m o d o r e . T h C o m m o d o r e D O i f i l e - o r i e n t e d r a t h e r t h a n s y s t e m - o r i e n t e d a n i r e l a t i v e l y u f r i e n d l y t o f i r s t - t i m e u s e r s . A l s o , C o m m o d o r e d r i v e s a r e i n t e ll i g e n t . T h i s m e a n s t h a t t h h o s t c o m p u t e r h a n f a c i l i t i e s f o r u n n i n g D O a w o u l d C P / M o M S - D O S m a c h i n e .

L l o y d S p o n e n b u r g h a n R o S o u t h w i c k o F i s c a l I n f o r m a t i o n ,I n c . ( t u r n k e y s y s t e m s v e n d o r i D a y t o n a B e a c h , F l o r i d a )w e r e w e l l a w a r e o t h e s e f a c t s w h e n t h e y d e c i d e d s e v e r a ly e a r s a g t a d a p t h a r d d i s k t t h C 6 4 . T h r e s u l t w a t h o r i g i n a l L t K e r n a l h a r d d i s k s u b s y s t e m , w h i c h i n o a s s e mb l e d a n m a r k e t e d b X e t e c I n c . ( S a l i n a , K a n s a s ) o f S u p e r -G r a p h i x p r i n t e r i n t e r f a c e f a m e .

T h e i r s u c c e s s i t h i s a d a p t a t i o n r e s u l t s i s y s t e m o f f e r i n g c p a b i l i t i e s t h a t a r n o r m a l l y a v a i l a b l e o n l y o p o w e r f u l m u l t iu s e r m i n i - c o m p u t e r s . T h X e t e c L t K e r n a l i n o p e r f e c t b u i i f a s u p e r i o r t a n y t h i n g e l s e a v a i l a b l e .

T h L t K e r n a l c o n c e p t

T h L t K e r n a l h a r d d i s k s u b s y s t e m i c o m b i n a t i o n o f a

d r i v e s o n l y i m p l e m e n t s t a n d a r dn o i n c l u d e t h c o m m a n d s t h a to p e r a t i o n .

T h L t K e r n a l D O a n t h t e c h n s u l t o t h e f f o r t s o F i s c a l I n f o r i g h t s t t h n a m e . T h e y s u p p o r tn o l o g y . T h e y d n o a c t u a l l y b u i h a r d w a r e . T h d e s i g n , a s s e m b l y ,f i n i s h e d p r o d u c t a r h a n d l e d b u s e r s a w e l l a s b u i l d , s e l l a n s e r

B o t h F i s c a l a n d X e t e c o p e r a t e b u l lK e r n a l o w n e r s . O t h e s e b o a r d s o t o p i c s w i t h F i s c a l o X e t e c p e r s m i n u t e n e w s a b o u t n e D O f e a t u

T h L t K e r n a l h a r d w a r e

s i n g l e s t a t i o n L t K e r n a l s y s t e ms e m b l y , a c a r t r i d g e ( t h e h o s t a d a p t i n t e r c o n n e c t i n g c a b l e , u s e r ' s m a n t h L t K e r n a l D O S . C 1 2 8 s a l s o r e o f a n M M d a u g h t e r - b o a r d a s s e m b p u t e r p o w e r e d w h i l e t h d r i v e h s o u r c e . T h L t K e r n a l h a r d w a r eo p e r a t i o n .

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

T h h o s t a d a p t o r i t h e c a r t r i d g e p o r t h a a c c e s s t t h s y s t e ma d d r e s s a n d a t a b u l i n e s . H o w e v e r , t h a d a p t o r d o e s n ' t e t e n d t h p o r t . T h h o s t a d a p t o r i e n c l o s e d i m e t a l c a s e f o m a x i m u m s h i e l d i n g a n h a f o u r r u b b e r f e e t . T h D B - 2 5 r c e p t a c l e o t h b a c k , w h i c h c o n n e c t s i i n t o t h s y s t e m b u i

a m e a n s o f g u a r d i n g a g a i n s t i d r i v e ( d i f f e r e n t D O p a c k a g e sd r i v e s ) . U n l i k e C o m m o d o r e D O Sw a r e a n t h e r e f o r e m a b e u p g r p l y i n g i o f l o p p y d i s k r a t h e r t h

Page 70: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 70/84

d i r e c t l y a n c h o r e d t t h s t e e l c h a s s i s a n i n o a a l f r a g i l e .p u s h b u t t o n m a r k e d I . C . Q . U . B . ( I m a g e - C a p t u r i n g Q u i c k U t i l i t yB a c k u p ) i t h o n l y v i s i b l e c o n t r o l . T h i s i t h L t K e r n a le q u i v a l e n t o a I S E P I K o C A P T U R E c a r t r i d g e a n f u n c t i o n s i C 6 4 m o d e o n l y ( a o t h i s w r i t i n g ) . A r e c e i v e d f r o m X e t e c ,t h h o s t a d a p t o r i v i s i b l e i n t h $ D F 0 0 I / b l o c k o f p r o c e s s o ra d d r e s s s p a c e a m u l t i - p o r t d e v i c e . T c h a n g e t h a d a p t o ra d d r e s s t t h $ D E 0 0 r a n g e , s i m p l y r e l o c a t e j u m p e r o n t h h o s t a d a p t o r b o a r d .

I n s i d e i f o u r - p o s i t i o n D I P s w i t c h w h i c h i p a r t o t h m u l t iu s e r s y s t e m a r r a n g e m e n t . O m u l t i - u s e r s y s t e m , e a c h c o p u t e r h a s s t a t i o n o p o r t n u m b e r . T h p o r t n u m b e r i d e t e rm i n e d b y t h s e t t i n g o t h i s d i s w i t c h a n i d i s p l a y e d a s p a r to t h L t K e r n a l p r o m p t . O s i n g l e s t a t i o n s y s t e m , t h D I s w i t c h i s e t ( p o r t n u m b e r s r a n g e f r o m 0 t ^ i n c l u s i v e ) .I m u l t i p l e x e d s y s t e m , s t a t i o n b e c o m e s t h " m a s t e r " s t t i o n . A d d i t i o n a l s t a t i o n s a r s e t t o o t h e r p o r t n u m b e r s a n a r d e s i g n a t e d a " s l a v e " s t a t i o n s .

T h p o r t n u m b e r a l o c a t i o n $ D E 0 4 ( o $ D F 0 4 , d e p e n d i n g o t h I / O b l o c k c h o s e n ) c a n b r e a d w i t h : I d a $ D F 0 4 ( $ D E 0 4 )a n d # % 0 0 0 0 1 1 1 1 ) . I t i s p o s s i b l e f o m u l t i - u s e r s y s t e m s t e b o d y s o f t w a r e f e a t u r e s t h a t a r c o n t i n g e n t o w h i c h s t a t i o n i b e i n g u s e d .

T h h o s t a d a p t o r ' s p a r a l l e l D M i n t e r f a c e o p e r a t e s a t r e m e nd o u s s p e e d . I i t h i s f e a t u r e w h i c h m a k e s t h L t K e r n a l t h b e s t c h o i c e f o b u s i n e s s a n p r o f e s s i o n a l u s e . O t h e r d r i v e s u s e i t h e r t h s e r i a l o i e e e - 4 8 8 b u s . T h e r e i n c o n t e s t w h e n i c o m e s t s p e e d c o m p a r i s o n s , a w e ' l l s e b e l o w .

I n s t a l l a t i o n o f a n M M d a u g h t e r - b o a r d r e q u i r e s t h a t t h C 1 2 8b o p e n e d , t h M M r e m o v e d f r o m i t s o c k e t , t h e d a u g h t e rb o a r d p l u g g e d i n t o t h M M s o c k e t a n t h M M i t s e l fp l u g g e d i n t o t h d a u g h t e r - b o a r d . A a d d i t i o n a l m o d i f i c a t i o nm u s t b m a d e t t h C 1 2 8 t a c c o m m o d a t e t h s e r i a l p o r tb u r s t m o d e f u n c t i o n s . A l t h o u g h t h i s m a s o u n d d i f f i c u l t , t h m a n u a l g i v e s c l e a r i n s t r u c t i o n s a n d r a w i n g s a n t h r e s u l t s

d u c e d a n a i n e x p e n s i v e a n c oo l d e r d r i v e s i e s t a b l i s h e d . p ( S Y S t e m r e G E N e r a t i o n ) a l l o w s a D O e a s i l y .

T h L t K e r n a l s o f t w a r e

T h s u p e r i o r h a r d w a r e f e a t u r e sc o m p l e m e n t e d b y p o w e r f u l a K e r n a l D O i e x e c u t e d i R A m a n y n e w i m m e d i a t e m o d e c o m j o o v e r h a u l o f t h c o m p u t e r ' s o f a c e a n g i v e s r i s e t o c o n c e r n sh o s t c o m p u t e r a n d t h s o f t w a r e

F e a r n o t , g e n t l e r e a d e r ! W i t hD O p e a c e f u l l y c o - e x i s t s w i t h a n e r l y w r i t t e n ( t h a t i t s a y , u s e s t n o t J S R d i r e c t l y i n t o R O r o u t m a n d s a r s u p p o r t e d ( w i t h f e a r i m p l e m e n t e d , i n c l u d i n g R E w i t h t h L t K e r n a l f u n c t i o n e q u am o d e s . W h o l e - d r i v e f o r m a t t i n gf i l e - l e v e l d i r e c t a c c e s s c o m m a n db e i n g i n t e n t i o n a l l y o m i t t e d t ( t h e r e a r u n d o c u m e n t e d l o w - l eu s e d t r e a d o r w r i t e a n s e c t o r

T h L t K e r n a l D O o f f e r s t h e s en e c o m m a n d s s o r t a n p r i n ta d d r e s s ; c o p y l a r g e g r o u p s o f ia n o t h e r ; r e c o v e r a c c i d e n t a l l y d g r a m t s c r e e n n o n - d e s t r u c t i v e l i n t o s e p a r a t e a r e a o t h e d r i v e ;e x e c u t e p r o g r a m o n p o w e r - u m o d e ) . A l t h a t a n m o r e i a v a i j o t w o r k w i t h .

T h L t K e r n a l s u p p o r t s p a r t i t i

f i l e o L y o w o u l d u s t h s y n t a x : o p e n 2 , 8 , 2 , " 6 : f i l e n a m e " .N e a t , h u h ? I i a l s o p o s s i b l e t o s e l e c t a L v i t h c o m m a n dc h a n n e l . A w i t h C o m m o d o r e d r i v e s t h L t K e r n a l c o m m a n dc h a n n e l i c h a n n e l 1 5

g a i n s a r e a c h i e v e d b e x t r e m e l ya n b t h u s e o f m u l t i p l e r e a d / w n u m b e r o s e e k s r e q u i r e d t r e a d o t i a l l y i m p r o v e s p e r f o r m a n c e . C o n t

Page 71: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 71/84

E a c h L m a b d i v i d e d i n t o m a x i m u m o f 1 6 u s e r a r e a s( s u b - d i r e c t o r i e s ) . u s e r a r e a i s e l e c t e d b u s e r < R E T U R N >o v i a t h e c o m m a n d c h a n n e l w h e n i p r o g r a m m o d e . O n c el o g g e d i n t o a L a n u s e r a r e a , m o s t d i s k a c t i v i t y w i l l b r s t r i c t e d t t h a t a r e a . F i l e s m a b a s s i g n e d t g i v e n u s e r a r e ab l o g g i n g i n t o t h a t a r e a b e f o r e s a v i n g o b i n c l u d i n g t h L a n d / o r u s e r n u m b e r i t h f i l e s a v e s y n t a x . Y o c a m o v e o c o p y f i l e f r o m o n e u s e r a r e a t a n o t h e r a s w e l l .

O n c e l o g g e d i n t o a L a n u s e r a r e a , t h d i c o m m a n d a l l o w sp a t t e r n - m a t c h i n g w i t h b o t h l e a d i n g a n t r a i l i n g " d o n ' t c a r e s " ,d i r e c t o u t p u t t p r i n t e r , a l p h a n u m e r i c s o r t i n g o f i l e n a m e s b f o r e o u t p u t , s e l e c t i v e d i s p l a y o f i l e t y p e s , v i e w i n g o f i l en a m e s f r o m f o r e i g n a r e a s ( i . e . L U a n d / o r u s e r a r e a s o t h e r t h a nt h o n c u r r e n t l y l o g g e d ) a n m o r e .

d i r e c t o r y d i s p l a y i n c l u d e s : f i l e n a m e ; s i z e i n d i s k s e c t o r s( 5 1 2 b y t e s ) ; f i l e t y p e ( n u m e r i c c o d e t h a t d i s t i n g u i s h e s M p r o g r a m s f r o m B A S I C , a m o n g o t h e r s ) ; f i l e ' s l o a d a d d r e s s ; t h ef i l e ' s p h y s i c a l l o c a t i o n w i t h i n t h e L ( d i s p l a y e d a h e x a dd r e s s ) ; f i l e ' s a s s i g n e d L a n t h s t a t u s o t h f i l e ' s " d i r t y "f l a g . ( T h e d i r t y f l a g i n d i c a t e s w h e t h e r t h f i l e h a b e e n m o d if i e d s i n c e t h e l a s t a r c h i v i n g o p e r a t i o n . ) I C 1 2 8 i 8 c o u m m o d e , t h e d i r e c t o r y i n e a t l y a r r a n g e d i t w c o l u m n s .

U s i n g t h L t K e r n a l

W e ' r e n o t a l k i n g a b o u t s i m p l e p l u g - i n a c c e s s o r y . T h i s i w h o l e n e o p e r a t i n g s y s t e m a n p r o g r a m m i n g e n v i r o n m e n tf o t h C 6 o C 1 2 8 . T h d r i v e i m p l e m e n t s h i g h s p e e d , h i g hs t o r a g e c a p a c i t y , f o o l - p r o o f D O a n e a s e o u s e .

T h p a r a l l e l b u i n t e r f a c e o t h L t K e r n a l r e s u l t s i n i m m e d ia t r e s p o n s e a n s u p e r b p e r f o r m a n c e d u r i n g l o a d s o s a v e s .P r o g r a m s a r r u n n i n g i a e y e - b l i n k a n s a v e s o c c u r a a r a p i d r a t e . A l s o , t h n a s t y S A V E @ b u d o e s n o e x i s t o t h L t K e r n a l .

d e s i g n h a s i m p r o v e d r e l i a b i l i t y a n a n p h y s i c a l s i z e . T h e s e i m p r o v e mn o l o g y o t h L t K e r n a l . I y2 0 m b u n i t h a b e e n t r o u b l e - f r e e .

I n h e r e n t s p e e d a s i d e , c r e d i t m u s tt e r f a c e a n t h L t K e r n a l D O S . I tv i s e r i a l o I E E E b u a n i t h u t i l i z e d , t h e d r i v e w o u l d h a v e b e e u n i t s i w a d e s i g n e d t o r e p l a c e .

U s e r - f r i e n d l y D O T h n e f u n c t i o n s i m p l e m e n t e da n i m m e d i a t e i a c t i o n . P l a i n l a ns p o n s e s g u i d e y o t h r o u g h m o s t t o p e r a t i n g e n v i r o n m e n t . I m m e d i a t eg e n e r a l l y q u i t e o b v i o u s , a n e a se q u i v a l e n t C B c o m m a n d s .

F o e x a m p l e , t y p e " f i l e n a m e " <s t e a d o f d l o a d " f i l e n a m e " o l o a dt o m a t i c a l l y l o a d a f i l e t i t c o r r e c d i s t i n c t i o n b e i n g m a d e i t h f i l e i l a n g u a g e . E n t e r i n g " 2 : 3 : f i l e n n a m e f r o m L U S E R 3 T h i s a l l a n d / o r L b o u n d a r i e s . W i t h i n p m a n d s a r u s e d a n s t a n d a r d C B e r a t e d . T h i s m e a n s t h a t m o s t s o f t wn a w i t h o u t a l t e r a t i o n , a s s u m i n g t s t a n d a r d K e r n a l j u m p t a b l e .

S p e c i a l i z e d D O f u n c t i o n s ( s u c h a s t a t u s m e s s a g e s a n d c o n f i r m a t i o n t i a l l y d e s t r u c t i v e . F o e x a m p l e , a c s a m e r e s u l t w i t h i n t h L a f o r m ad r i v e . B e c a u s e a i n a d v e r t e n t a c t s a n d s o f f i l e s , t r i p l e c o n f i r m a t i ot h u s e r f r o m h i m s e l f .

U p o n p o w e r i n g u t h C o m p u t e r , t h C o m m o d o r e s i g n - o nm e s s a g e a p p e a r s a n t h L t K e r n a l p e r f o r m s d i a g n o s t i c t e s to t h h a r d w a r e a n D O S . W h e n a l i w e l l , t h L t K e r n a lp r o m p t w i l l a p p e a r , i n d i c a t i n g : 6 o 1 2 m o d e , c u r r e n t L a n u s e r a r e a , a n t h e p o r t n u m b e r o t h s t a t i o n . T h L t K e

a n g i v e n R E L a t i v e f i l e i 1 6 . c o m m a n d s a r e x e c u t e d m u c hd o u b l e - p o s i t i o n d a n c e i n o r e q

T h e r e a r n u m e r o u s o t h e r f e a t u

Page 72: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 72/84

n a w i l l s e a r c h t h p o w e r - o n l f o p r o g r a m c a l l e d a t o s t a r t a n d , i f o u n d , r u i t I A U T O S T A R T i n o t f o u n d , c o t r o l i p a s s e d t B A S I C . T h i s w h o l e p r o c e s s t a k e s p e r h a p s f i v es e c o n d s .

W h n e e d s t h L t K e r n a l ?

I y o w r i t e l o o s o f t w a r e , o r u s e t h c o m p u t e r f o b u s i n e s so o t h e r p r o f e s s i o n a l u s e , t h e n t h L t K e r n a l i t h e d r i v e f o y o u . F o t h p r o f e s s i o n a l p r o g r a m m e r o t h b u s i n e s s u s e r , t h L t K e r n a l m e a n s g r e a t e r p r o d u c t i v i t y a w e l l a m o r e r l i a b l e a n e f f i c i e n t m e d i u m u p o n w h i c h t o s t o r e a n r e t r i e v ed a t a . F o t h B B s y s o p , t h L t K e r n a l m e a n s l o t s o f s p a c e f o u p l o a d s a n u s e r m e s s a g e s .

T h u t i l i t y o t h L t K e r n a l i s i g n i f i c a n t l y e n h a n c e d i n e s o f t w a r e i w r i t t e n t o t a k e a d v a n t a g e o t h e s p e c i a l f e a t u r e st h m u l t i - u s e r c a p a b i l i t i e s , f o e x a m p l e . p r o f i c i e n t p r o g r a mm e c a w r i t e s o f t w a r e t h a t a l l o w s f i l e s h a r i n g a m o n g s t t h v a r i o u s s t a t i o n s , r e s u l t i n g i n g r e a t e r s y s t e m u t i l i z a t i o n .

A n o t h e r s p e c i a l f e a t u r e i t h i m p l e m e n t a t i o n o f u n i q u e ( t C o m m o d o r e - b a s e d s y s t e m s ) f i l e t y p e : t h k e y - i n d e x f i l e . T h k e y - i n d e x f i l e m a b u s e d t r e l a t e d a t a k e y s t t h r e c o r d so f R E L a t i v e f i l e o r a n d o m a c c e s s s t o r a g e s y s t e m . T h K E Y -I N D E X f i l e i c o n t r o l l e d b t h D O S ' s K E f i l e p r o c e s s o r , w h i c hm a b u s e d b B A S I C o m p r o g r a m s . T h p r o g r a m s i m p l yp a s s e s t h k e s t r i n g , i t r e c o r d n u m b e r a n s o m e i n s t r u c t i o n st t h K E f i l e p r o c e s s o r a n t h L t K e r n a l d o e s t h r e s t . T h D O p a s s e s b a c k i n f o r m a t i o n t y o u r p r o g r a m o n t h s u c c e s so t h o p e r a t i o n a n s f o r t h .

K E f i l e o p e r a t i o n s a r e v e r y r a p i d . s i n g l e k e y a n d i t r e c o r dn u m b e r c a b r e t r i e v e d f r o m l i t e r a l l y t h o u s a n d s o f k e y s i l e s s t h a n 1 0 m i l l i s e c o n d s . K e y s a r a l w a y s i n s e r t e d i n t o t h i n d e x i a l p h a n u m e r i c o r d e r , k e d u p l i c a t i o n n o b e i n g a l o w e d . W r i t i n g a d a t a b a s e t u t i l i z e k e y - i n d e x f i l e m e a n st h a t y o d o n ' t n e e d t d e v i s e s e a r c h a n s o r t s u b r o u t i n e s t d t h h o u s e k e e p i n g . T h K E f i l e p r o c e s s o r d o e s i a l f o y o u .

h a r d w a r e a n D O S , a d i s c u s s i ow h o l e a r t i c l e . H o w e v e r , t h i s i c o a t e d h a r d w a r e r e v i e w . I t i sg o o d f e a t u r e s o v e r t h n o t - s o -m e n t i o n t h o s e f e a t u r e s t h a t d o

I t ' s g r e a t s y s t e m b u t . . .

T h L t K e r n a l c o m e s w i t h m ab o u n d i t h s a m e m a n n e r a s p e n s i v e M S - D O S s o f t w a r e . H o w c o m p l e t e a n w i l l p r o v e t b e hA l t h o u g h t h m a n u a l t h o r o u g h t h e d r i v e h a r d w a r e a n d d o c u m em a n d s , i g l o s s e s o v e r s u c h hu n i t s , s u b d i r e c t o r i e s a n h o t m a n d s u m m a r y c a r d i i n c l u d e l i g h t o t h w o r k i n g s o t h D O u a t e x t i t s e l f . I y o p u r c h a s et d s o m e e x p e r i m e n t i n g w i t hm a n u a l d o e s n ' t m e n t i o n t h a t r ep r o g r a m w i l l r e t u r n o n l y t h e d iu s e r a r e a . N o d o e s i m e n t i o nm a n d s a r i g n o r e d u n l e s s t h t m a r g i n o t h e s c r e e n .

A c c o r d i n g t L l o y d S p o n e n b u i m p r o v e d m a n u a l a n " p o w e P r e s u m a b l y , t h p o w e r u s e r s ' k c a l l s f o a d v a n c e d p r o g r a m m i n t h i n n e r w o r k i n g s o t h D O e d g e w i l l b e s s e n t i a l i y o e vs o f t w a r e p a c k a g e o w i s h t m a a n p o w e r .

T h e r e a r s o m e l e s s t h a n o p t i mt i o n o d r i v e , D O a n c o m p u t s t a n t l y m o n i t o r s s y s t e m a c t i v i t D O c o m m a n d h a b e e n i s s u e d

c o u p l e d w i t h t h e g r e a t e r c o m p l e x i t y o m a n y C 1 2 8 I / r o t i n e s , s i m p l y m e a n s s l o w e r o p e r a t i o n ( o n l y s m u c h c a b d o n e w i t h a e i g h t b i C P U ) . N e e d l e s s t s a y , t h s l o w e r o p e r at i o n u n d e r t h L t K e r n a l D O i l e s s o p r o b l e m w i t h t h 1 2 i F A S T m o d e a n i l e s s n o t i c e a b l e i B A S I C p r o g r a m s t h a n i

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

W i t h o n e x c e p t i o n , n m e m o r y

Page 73: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 73/84

M o c o m p i l e d B A S I C p r o g r a m s .

B e c a u s e o t h i n t e r c e p t i o n o t h b a s i n a n d B S O U T s u b r o ut i n e s , S E Q u e n t i a l a n R E L a t i v e f i l e a c c e s s i a c t u a l l y s l o w e rt h a n t h I E E E d r i v e s . T h i s i l e s s f a u l t o t h L t K e r n a l t h a no t h C B K e r n a l i t s e l f , a m a n y r e d u n d a n t c h e c k s a r p e f o r m e d w h e n t h B A S I N o B S O U T s u b r o u t i n e s a r u t i l i z e d . T h i si n t e n s i v e a c t i v i t y , c o u p l e d w i t h t h e e x t r a c o d e r e q u i r e d t p a s sd a t a b e t w e e n c o m p u t e r a n d r i v e s l o w s d o w n t h s y s t e m . I p r o v e m e n t s t t h i s s e c t i o n o c o d e a r b e i n g i m p l e m e n t e d i t h n e x t v e r s i o n o t h L t K e r n a l D O a n t h a t B A S I N a n dB S O U T w i l l p e r f o r m a m u c h h i g h e r s p e e d .

W i t h o n e x c e p t i o n , t h L t K e r n a l D O o p e r a t e s t r a n s p a r e n t l ya l o n g a s t h e p r o g r a m m e r u s e s t h C B K e r n a l j u m p t a b l ea n d o e s n o t J S R d i r e c t l y i n t o I / r o u t i n e s i R O ( w h i c h i b a p r o g r a m m i n g p r a c t i c e ) . T h e x c e p t i o n i t h a t t h l o w -l e v e l o r " p r i m i t i v e " K e r n a l I / c a l l s ( T A L K , L I S T E N , e t c . ) a r n o s u p p o r t e d . A n c a l l s t t h e p r i m i t i v e s w i l l b s e n t d i r e c t l yt t h s e r i a l p o r t . T h i s m e a n s t h a t w h e n r u n n i n g i C 6 m o d ey o c a f o r g e t a b o u t u s i n g t h D O W e d g e t i s s u e c o m m a n d st t h L t K e r n a l ( w h i c h w o u l d b p o i n t l e s s a n y h o w ) . H o w e ve r t h W e d g e l o a d a n s a v e c o m m a n d s w i l l w o r k w i t h t h L t K e r n a l a n a n c o m m a n d s p r e f i x e d w i t h t h s y m b o l w i l l b p a s s e d t t h s e r i a l p o r t . T h e r e f o r e , y o m a u s t h W e d g e t c o n t r o l s e r i a l p o r t f l o p p y d r i v e t h a t i a l s o c o n n e c t e d t t h s y s t e m .

I C 1 2 8 m o d e , a l B A S I C 7 . D O c o m m a n d s a r s u p p o r t e d e c e p t H E A D E R a n C O L L E C T ( n e i t h e r o w h i c h h a a n y p u r p o s eo t h L t K e r n a l ) . A m e n t i o n e d b e f o r e , t h D I c o m m a n dp e r m i t s t h d i r e c t o u t p u t o f t h e d i r e c t o r y t t h p r i n t e r ( w i t ho u t p a g i n a t i o n ) . A l s o , i a p p e a r s t h a t D O d o e s n ' t v e r i f y t h a tt h e p r i n t e r i o n - l i n e , a I ' v e h a t h s y s t e m c r a s h w h e n a t e m p t i n g t p r i n t t n o n - e x i s t e n t p r i n t e r .

B e c a u s e o t h m e m o r y l i m i t a t i o n s o t h C 6 4 , t h L t K e r n a lD O s w a p s t h $ C 0 0 0 - $ C F F F r a n g e o R A o u o p r o c e s s o rs p a c e w h e n c e r t a i n i m m e d i a t e m o d e c o m m a n d s a r u t i l i z e d .

e x i s t i n C 1 2 8 o p e r a t i o n . T h e x c e po t h I / b l o c k a $ D F 0 0 . T h S T m e n t s i B A S I C , t h D M A - C A L L s u C P / M ( w h e n u s i n g d r i v e M a l a w h e r e t h e x t e r n a l r a e x p a n d e rT u s t h R A e x p a n d e r o t r u I / p a g e j u m p e r o n t h e h o s t a d a p t i n t o t h e $ D E 0 0 b l o c k . T h i s m a g r a m s c a p t u r e d w i t h I . C . Q . U . B . f r o m

I t e r m s o f s o f t w a r e c o m p a t i b i l i t y ,A n d a t a b a s e p r o g r a m t h a t u t i l i z r e t r i e v a l m e t h o d s ( U l : o U 2 : ) i n L t K e r n a l . T h i s m e a n s t h a t o l d e r n o t o p e r a t e ( t h e m o r e r e c e n t v e r s w i l l w o r k ) . M o s t d a t a b a s e m a n a g s p r e a d s h e e t s w i l l o p e r a t e i t h e yt y p e s . N e e d l e s s t s a y , a n s o f t w a r i n n e r w o r k i n g s o t h 1 5 4 1 D O ( u s o m e k i n d o s p e e d - u p f u n c t i o nt r u n . P r o g r a m s t h a t r e l y o t h R O M s o a t t e m p t t u t i l i z e l o w - l e v e l u p I . C . Q . U . B . f u n c t i o n s o n l y i Cs C 1 2 8 s o f t w a r e t h a t h a b e e n p s c h e m e s c a n n o t b t r a n s f e r r e d t s u c h s o f t w a r e w i t h t h L t K e r n a l yd e v i c e n u m b e r ( s i m p l e i m m e d i a t t h s o f t w a r e f r o m t h f l o p p y d r i v e .

O n o t h e r c o m p a t i b i l i t y p r o b l e m e i f y o w i s h t u s K E f i l e s w i t h dB A S I C . T h B A S I C s y n t a x f o m a n c o m p a t i b l e w i t h a n o t h B A S I Ca v a i l a b l e . T h i s i b e c a u s e c o l o nc a l l t t h k e f i l e p r o c e s s o r f r o ma s s o c i a t e d w i t h t h c a l l . M o s t c o m i g n o r e a p r o g r a m l i n e f r a g m e n t b b e f o r e t h f r a g m e n t , t h r e s u l t b e i r e c t l y t o t h B A S I C i n t e r p r e t e r . C o m p

T h 1 3 5 1 M o u s e a n G E O

Page 74: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 74/84

G r a p h i c e n v i r o n m e n t o r o l l

R e v i e w b M a l c o l m O ' B r i e n

T h 1 3 5 1 m o u s e w a w e l l w o r t h t h w a i t . W h a t g a s ! W h a tg r e a t p r o d u c t ! W i t h i t s l e e k a n a t t r a c t i v e s t y l i n g ( i d e n t i c a l t ot h A m i g a m o u s e ) , t h 1 3 5 1 m o u s e i p e r f e c t c o m p l e m e n t t y o u r 6 o 1 2 8 . I h a v e r y s o l i d f e e l a n d , t m h a n d , m o r ee r g o n o m i c d e s i g n t h a n t h m i c e y o u ' l l f i n d a t t a c h e d t o L i s a s ,M a c i n t o s h e s o P C s . p a r t i c u l a r l y l i k e t h t a c t i l e f e e d b a c k o t h t w b u t t o n s .

T w M o d e s

T h p e o p l e a C o m m o d o r e h a v e c l e v e r l y g i v e n t h 1 3 5 1m o u s e d u a l p e r s o n a l i t y . I h a t w m o d e s o o p e r a t i o n , s l e c t a b l e o p o w e r - u p . W i t h t h m o u s e p l u g g e d i n h o l d d o w nt h r i g h t m o u s e b u t t o n w h i l e y o t u r n o y o u r c o m p u t e r . N o y o u r m o u s e w i l l b d i s g u i s e d a j o y s t i c k a n w i l l f u n c t i o np r o p e r l y w i t h a n s o f t w a r e t h a t e x p e c t s t f i n d j o y s t i c k . A t u a l l y , t h i s d i s g u i s e i m o r e l i k e t h 1 3 5 0 m o u s e , t h e j o y s t i c ki m o u s e c l o t h i n g . I s h o u l d b n o t e d h e r e t h a t s o m e u s e r sh a v e r e p o r t e d t h a t m i c e m a k e l o u s y j o y s t i c k s . C e r t a i n l y , t h i s i n o t h w a t h a v e r i p - r o a r i n g g a m e o f S c r e e n B u s t e r s f r o mO u t e r S p a c e , b u t i m a b j u s t t h e t i c k e t i n d i f f e r e n t s o r t o a p p l i c a t i o n ; f o e x a m p l e : h i - r e s d r a w i n g p r o g r a m s l i k e D o d l e , s p r i t e e d i t o r s o f o n t e d i t o r s . Y o m a a l s o f i n d i s u i t a b l ef o n o n - a r c a d e t y p e g a m e s l i k e S h a n g h a i . E x p e r i m e n t !

I y o p o w e r - u p w i t h o u t h o l d i n g d o w n t h r i g h t b u t t o n , t h em o u s e w i l l b i n i t i a l i z e d a t r u e p r o p o r t i o n a l m o u s e . I i i t h i s m o d e t h a t t h 1 3 5 1 m o u s e i i i t g l o r y a n r e a l l y o f f e r sC o m m o d o r e u s e r s s o m e t h i n g n e w .

m e n d e d . J u s t d i s a s s e m b l e y o u rt h b a l l w i t h a s o f t c l o t h a n b l o

P r o g r a m m i n g

T h s e c o n d s e c t i o n o t h b o o k d e p t h d i s c u s s i o n o m o u s e i n t e rf e r i n g m o u s e s u p p o r t i t h e i r o w t h i s i f a i r l y s i m p l e i t ' s t h s as t i c k w i t h o n s m a l l ( a n d g eW h e n t h 1 3 5 1 m o u s e i f u n c t i t o s e r v e s a t h f i r e b u t t o n i t r i g h t b u t t o n i r e a d a b l e . I t ' s m a pW h e n t h r i g h t b u t t o n i p r e s s v a l u e l e s s t h a n $ 8 0 . W h e n t h P O T X w i l l c o n t a i n v a l u e g r e a tt h i s a i g n o r a b l e f e a t u r e s i n c ey o u r p r o g r a m i g o i n g t r e a dw o n ' t b e a b l e u s t h i s f u n c t i o n( A s a n a s i d e t t h e r e a d e r s h i p :G E O S u s e s i t d o n ' t k n o w h o w .

P r o g r a m m i n g t h 1 3 5 1 m o u s et i r e l y d i f f e r e n t k e t t l e o f i s h . T c i a l l y t h e p o s i t i o n i n g a s p e c t ( t ha s j o y s t i c k l i n e s ) . I f y o u ' r e n o ti n t i m i d a t e d b p h r a s e s l i k e : " w et t h p o l l e d k e y s c a n " o r " d i s t it h k e y b o a r d m a t r i x a n w h o l e d " , t h e n y o w i l l h a v e l o

A p r e s e n t t h e r e i v e r y l i t t l e c o m m e r c i a l s o f t w a r e a v a i l a b l et h a t w i l l m a k e u s e o f t h 1 3 5 1 m o u s e ( a l e a s t i p r o p o r t i o n a lm o d e ) . O b v i o u s l y , m o s t m o u s e u s e r s w i l l b u s i n g t h d e v i c ew i t h G E O S a n w i l l n e e d n o t h e r j u s t i f i c a t i o n f o t h e i r p u c h a s e . T h o n l y o t h e r c o m m e r c i a l s o f t w a r e t h a t I ' a w a r e o

L t K e r n a l . . . c o n t i n u e d f r o m p 7

t c o p y f i l e s f r o m t h h a r d d r i v ec o r d i n g t L l o y d S p o n e n b u r g h , cm a b e u s e d t c o n n e c t a I E E E d

Page 75: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 75/84

t h a t o f f e r s s u p p o r t f o r t h e 1 3 5 1 m o u s e i C A D P A K f r o m A b a c u sS o f t w a r e . T h e r e m a b o t h e r p r o d u c t s b u t h a v e n ' t s e e n t h e my e t . N o h a v e u s e d C A D P A K , a l t h o u g h i w o u l d d e f i n i t e l ys e e m t b a a p p r o p r i a t e a p p l i c a t i o n f o r t h i s d e v i c e .

G E O S V 1 . 3

S i d e o t h i n c l u d e d d i s k h a s o n l y o n f i l e . T h i s i t h G E O Su p g r a d e t V e r s i o n 1 . 3 . N o t e t h a t y o c a n n o t u s e t h 1 3 5 1m o u s e ( i p r o p o r t i o n a l m o d e ) w i t h V e r s i o n 1 . o e a r l i e r . A t h o u g h t h u p g r a d e p r o g r a m i c o p y - p r o t e c t e d , i m a b f r e e l y r e - u s e d t u p d a t e a n y o n e ' s G E O S s y s t e m d i s k , a n i s h o u l d b s u s e d . U p g r a d i n g i g o o d i d e a e v e n i y o u ' r e n o tu s i n g t h 1 3 5 1 m o u s e . T h n e v e r s i o n i c h a n g e d i s e v e r a li m p o r t a n t w a y s : n e p r i n t e r d r i v e r s , n e i n p u t d r i v e r s , n e u t i l i t i e s , s a f e g u a r d s a n s h o r t c u t s .

F i r s t , t h n e i n p u t d r i v e r s : t h F l e x i d r a w l i g h t p e n a n t h K o a l a P a d . Y o c a s w i t c h f r o m j o y s t i c k t m o u s e t p a t p e w i t h o u t r e b o o t i n g w i t h " s e l e c t i n p u t " u n d e r t h G E O Sm e n u . N o t e t h a t t h p a a n d p e n c a n n o t u s t h s c r o l l a r r o w si g e o P a i n t . U s t h p a g e p o s i t i o n i n d i c a t o r a t h b o t t o m .

T h u t i l i t i e s : B a c k u p , D i s k C o p y , C o n f i g u r e a n R b o o t . B a c ku i n o o n l y f o u s w i t h t h G E O S s y s t e m d i s k . U s D i s kC o p y f o c o p y i n g w o r k d i s k s . C o n f i g u r e a l l o w s t h u s o R A e x p a n s i o n u n i t . Y o c a c r e a t e R A 1 5 4 1 , ' s h a d o w 'r e a l 1 5 4 1 , u s D M f o f a s t d a t a t r a n s f e r s , a n e n a b l e f a s t r b o o t i n g . I t h d e s k T o p i i r a m , t a p p i n g t h r e s t o r e k e w i l l r e b o o t G E O S f r o m r a f a s t !

T h s a f e g u a r d s : d e s k T o p 1 . a n D i s k C o p y w i l l n o a l l o wy o t s c r e w u y o u r M a s t e r d i s k s . Y o w o n ' t b e a b l e t f o m a t t h e m o u s t h e m a " d e s t i n a t i o n " d i s k s . N o w i l l y o b a b l e t d e l e t e i m p o r t a n t f i l e s o e v e n r e l o c a t e c e r t a i n f i l e s .T h i s i g o i n g t s p a r e l o o u s e r s " t h a t s i n k i n g f e e l i n g . . . "O n e x t r a s a f e t y n o t e , t h o u g h . Y o c a n ' t u s t h d e s k T o p 1 . o t h o l d P r e f e r e n c e M a n a g e r w i t h t h 1 . G E O S K e r n a l . T

n e e d 1 1 ( t h a t ' s n o t a m i s p r i n t ) f l2 0 m b h a r d d r i v e a s s u m i n g t h a t1 5 7 1 , o r i y o u s b o t h s i d e s o t n e e d 5 f l o p p i e s . 1 5 8 1 u s e r c a d i s k s w h i l e a S F D - 1 0 0 1 u s e r w i l l b d i s k s . W h a t m a k e s t h i s b a c k u p m et h e f a c t t h a t t h o n l y p r o p e r w a d r i v e i t h " d o u b l e g r a n d f a t h e r i n gu s e o f t w c o m p l e t e s e t s o d i s k s ,e v e n t o f m a j o r s y s t e m f a t a l i t y w h i

R e g a r d l e s s o f t h d r i v e u s e d , b a c k u I y o h a v e 1 5 4 1 o 1 5 7 1 d r i v e , t w i l l a l l o w c o p y t b c r a n k e d o u o r s o ( F A S T C O P Y r u n s o n l y i C 6 my o h o m a n y h o u r s y o u ' l l n e e dF A S T C O P Y r e p r o g r a m s t h f l o p p yT h e r e f o r e , i i u n l i k e l y t h a t i w i l l( i w o u l d n ' t o p e r a t e w i t h m M S t h F S s h o u l d w o r k i t h i s c a s e .y o a r u s i n g a I E E E d r i v e , y o c p l i e d o L 1 o t h L t K e r n a l ) t h e s e c o p i e r s s p e e d s u t h s e r i a l b u

U n f o r t u n a t e l y , t h e r e i n m e c h a n c o p y L t K e r n a l K E Y - I N D E X f i l e t

b u s i n e s s o r o t h e r p r o f e s s i o n a l u s e r e s e n t s s i g n i f i c a n t l i m i t a t i o n . M o s a f f o r d t h t i m e r e q u i r e d f o f u l l bn o a f f o r d t n o b a c k u t h d r i v t h u s e r s e l e c t i v e l y b a c k u p o n l yf i l e s , h w o u l d s t i l l b f a c e d w i t ht i o n w o u l d b e h i g h - s p e e d s t r e a s t r e a m e r c a n b a c k - u p 2 0 m b i u n d o n e s o m e w o r k i t h i s a r e a b u t ,r e l e a s e d a n h a r d w a r e .

T b u o n o t b u y . . .

W a r p S p e e d

Page 76: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 76/84

" I m p u l s e p o w e r i n o e n o u g h , M r . S c o t

R e v i e w b M a l c o l m O ' B r i e n

W a r p S p e e d i o n o t h n e w e s t e n t r i e s i t h D O e n h a n c em e n t s w e e p s t a k e s a n s t a n d s p o i s e d t b e c o m e f r o n t r u n n e r .W a r p S p e e d i p o w e r f u l , f l e x i b l e a n e a s y t o u s e . r e s e t b u t o i b u i l t i n t o t h c a r t r i d g e , a l o n g w i t h 6 4 / 1 2 8 s l i d e rs w i t c h . W a r p S p e e d w i l l a p p e a l t b r o a d b a s e o u s e r s d u t t h n u m b e r o d e v i c e s s u p p o r t e d . W a r p S p e e d w o r k s w i t h : t h e6 4 , t h e 1 2 i n a t i v e m o d e ( 4 0 o r 8 0 ) , t h 1 5 4 1 , 1 5 7 1 , 1 5 8 1 ,M S ( ! a n s o m e h a r d d r i v e s . A e x t e n d e d D O S w e d g e i i c l u d e d w i t h s u p p o r t f o m u l t i p l e d r i v e s y s t e m s . A l l f e a t u r e sa r e a c c e s s i b l e f r o m m e n u s t m a k e t h i n g s s i m p l e f o n e u s e r s w h i l e t h l o n g - t i m e h a c k e r c a n b y p a s s t h m e n u s i m o s tc a s e s a n u s o n o t w k e y s t r o k e s t i n i t i a t e t h m a g i c .

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

l i t t l e b a c k g r o u n d

T h C 6 a n 1 5 4 1 s e e m e d l i k e s t e p b a c k w a r d s t p e u s e r sw h h a B A S I C 4 . d i s k c o m m a n d s a n q u i c k , p a r a l l e l d u a ld r i v e s s u c h a s t h e 4 0 4 0 . A t h a t t i m e t h o b v i o u s p a t h f o r d r i v ee n h a n c e m e n t w a t i n t e r f a c e t h e C 6 w i t h t h f a s t e r I E E E d i s kd r i v e s . M a n y u s e r s ( i n c l u d i n g m e a r s t i l l u s i n g I E E E d r i v e sv i G - L i n k s , B u s C a r d s e t c . ( T b f a i r , i m u s t b n o t e d t h a tt h i n t r o d u c t i o n o t h s e r i a l b u i n t e r f a c e d i d h e l p t k e e p t h h a r d w a r e c o s t s d o w n . )

A t h e f l o o d o C 6 s o f t w a r e t u r n e d i n t o t i d a l w a v e , m o r e

B u n o a n m o r e . W a r p S p e e dS p e e d h a p o w e r s a n d a b i l i t i e st r i d g e s . I t ' s c l e a r l y s u p e r i o r t Fd i f f e r e n c e i p r i c e ( a b o u t $ 1 h

W h a t t h u s e r w i l l f i n d

F i r s t a n f o r e m o s t , t h s p e e d i S a v i n g a n d v e r i f y i n g a l s o h a p pF i l e s s a v e d w i t h W a r p S p e e d a T h e s e f i l e s w i l l w a r p l o a d t e s p e e d . ) T h e D O S w e d g e i n c l u d a b i l i t y t o s e t t h e c u r r e n t l y l o g g et h m e n u s y s t e m ( B r i t i s h p o u n dm o n i t o r ( p k e y ) .

T h t e x t r e a d e r i n i c e a d d i t i f o l l o w e d b t h n a m e o f t h s c r e e n c l e a r s a n t h t e x t b e g i C T R L m a n o s l o w i d o w n es p a c e b a r t p a u s e a n r e s t a r tT h i s i s i m i l a r t t h T Y P E c o m g r e a t f o r r e a d i n g f i l e s o j u s t t

f i l e ' s c o n t e n t s . u s t h i s f e a t t o o .

S e t t i n g t h e c u r r e n t l y l o g g e d d r D O a n d C P / M e n v i r o n m e n t s . T h" , 8 " o " , 9 " w h e n a c c e s s i n g t h

l e f t - a r r o w f o r s a v i n g b a s i c , p e r c e n t s i g n f o M l o a d s a n a e x c l a m a t i o n p o i n t f o v e r i f y . A u n u s u a l w e d g e f e a t u r e i t h " c o m m a n d . T h i s w i l l y i e l d f u l l y v e r i f i e d f a s t f o r m a t ( 2 s e c o n d s ) a n e v e n i n c l u d e s a " A r e y o s u r e ? " p r o m p t . N e w ! I m p

Page 77: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 77/84

T h n o n - d e s t r u c t i v e d i r e c t o r y t h a t i i n i t i a t e d b t y p i n g a d o l a s i g n f o l l o w e d b R e t u r n c a b e p a u s e d a n d r e s t a r t e d w i t ht h s p a c e b a r o a b o r t e d w i t h r u n / s t o p . A l l p a t t e r n m a t c h i n ga n m u l t i p l e p a r a m e t e r s a r s u p p o r t e d ; i . e . " $ * = s e q " o " $ p * , t * , s * " w i l l w o r k p r o p e r l y . B e a t s m w h t h e y n e v e r d o u m e n t t h i s s t u f f !

U t i l i t y c o m m a n d s

T h o t h e r d i r e c t o r y f u n c t i o n i o n o t h U t i l i t y C o m m a n d s .A l o t h e s e b e g i n w i t h a n u p - a r r o w . W h e n f o l l o w e d b " $ " ,t h d i s k a u t o m e n u i e n a b l e d . T h i s w i l l l o a d i t h e d i r e c t o r ya n a l l o w y o t o s c r o l l t h r o u g h i w i t h t h c u r s o r k e y s . P r e s si n R e t u r n w i l l w a r p c l o a d t h h i g h l i g h t e d f i l e a n r u i t w a p l e a s a n t l y s u r p r i s e d t d i s c o v e r t h a t i y o d e c i d e n o t l o a d f i l e a n a b o r t t h a u t o m e n u w i t h t h s t o p k e y , y o u r B S I p r o g r a m i s t i l l i m e m o r y . N o t e , h o w e v e r , t h a t i t h B S I p r o g r a m i m e m o r y i v e r y l a r g e , t h e d i r e c t o r y l o a d w i l lc o r r u p t b a s i c .

H e r e ' s a q u i c k d e s c r i p t i o n o t h r e s t o t h U t i l i t y C o m m a n d s( e a c h p r e c e d e d b a u p - a r r o w ) :

K i l l : f a s t l o a d e r o n l y . O t h e r f u n c t i o n s a r u n c h a n g e dE n a b l e : r e s e t s t h W a r p S p e e d l o a d , s a v e a n r e s t o r ev e c t o r sU n n e w : r e s t o r e s B A S I C a f t e r n e o r p r e s s i n g t h r s e s w i t c h

r ( n ) R e n u m b e r : a s s i g n c u r r e n t d r i v e d e v i c e n u m b e r n ( d f a u l t i t 9 H a r d c o p y : d u m p t e x t s c r e e n t p r i n t e r ( u p p e r :c a s e / g r a p h i c s )S i n g l e s i d e : p u t 1 5 7 1 i n t o 1 5 4 1 m o d eD o u b l e s i d e : p u 1 5 7 1 i n t o n a t i v e m o d e

N o t e t h a t b o t h f o r m a t c o m m a n d s f u n c t i o n i a c c o r d a n c e w i t ht h 1 5 7 l ' s c u r r e n t m o d e .

T R A N S B A w i t h S Y M A

" u s e d t b s a s h a m e d o m n m a t t e r w h a t t r i e d j u s t c os t u b b o r n s p a g h e t t i s t a i n s ! " w R i c h m o n d H i l l , O n t a r i o . " T h e na s k e d m t t r n e T r a n s B AT h e y e x p l a i n e d h o T r a n s B A S t i n y ' t o k e n s 1 , w o u l d g e m c o d

" w a s c e p t i c a l , b u f i g u r e dg i v i n g i t r y . W e l l , a l i t o o k w c o n v i n c e d ! T r a n s B A S I C w e nc o d e l o o k i n g c l e a n a n e i s

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

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

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

Page 78: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 78/84

s h o u l d f a i l . g r e a t f e a t u r e o t h e s i n g l e c o p i e r i c o m p r e s s i o no t h r e a d d a t a . Y o m a b a b l e t c o p y n o t - f u l l d i s k i n j u s to n o t w p a s s e s !

A y o a r p r o b a b l y b e g i n n i n g t s u r m i s e , t h e s e f u n c t i o n s w i l la l l o w y o t r e - o r g a n i z e y o u r d i s k l i b r a r y w i t h a m i n i m u m o t i m e a n t r o u b l e . A n y o u d o n e e d t r e o r g a n i z e , d o n ' t y o u ?

F o t h p r o g r a m m e r

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

T h v e r t i c a l l y s c r o l l i n g m o n i t o r h a s e v e r a l u n u s u a l f e a t u r e st h a t s e t i a p a r t . T h I / c o m m a n d , f o e x a m p l e . E n t e r " o 0 8 "a n y o u ' l l b w o r k i n g i d r i v e r a m ! A " o b i t s e l f w i l l r t u r n y o t t h c o m p u t e r . W h i l e i d r i v e R A y o c a a s s e mb l e , d i s a s s e m b l e , e x e c u t e o d u m p ( i A S C I I o r h e x ) . A l s o v a l ua b l e i t h o p t i o n o s e t t i n g t h c o n f i g u r a t i o n o r b a n k s e l e c tr e g i s t e r t n e v a l u e . U s t h e l e f t - a r r o w f o l l o w e d b t h d s i r e d v a l u e . O C 6 4 , a v a l u e o f $ 3 i $ 0 w i l l a l l o w y o t w o r k i t h R A u n d e r t h R O M s a n t h I / b l o c k a $ D 0 0 0 .O C 1 2 8 , a v a l u e o f 0 o 0 c a b p r e s e n t e d t $ F F 0 0 t s e l e c t b a n k 0 o b a n k 1

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

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

c o d e l e v e l .

T y p e a " r t r e a d s e c t o rO K o t h e r w i s e e n t e r t h e v a l u e sw i l l m o v e t h c u r s o r t h r o u g h " p i y o u ' d l i k e t o d u m p t h b

E x t r a e d i t i n g f e a t u r e s a r e a v as e c t o r . P r e s s i n g " S H I F T - C L R / H r o f r o m t h e c u r r e n t c u r s o r pm o v e y o u r c u r s o r t t h t o o o n H O M E w i l l p l a c e t h c u r s ot h i s p o s i t i o n , y o c a g e t h n " j w h i c h w i l l j u m p t t h e t rT s t e p t h r o u g h t h f i l e f r o mf o r n e x t . T h p l u s a n m i n u sf o r w a r d o r b a c k . W h e n u s e dt r a c k f o r w a r d o r b a c k .

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

S o m e s m a l l p r o b l e m s

T h o n l y p r o b l e m s h a w h iw h i l e u s i n g o n 1 5 4 1 a n d o n et h r u b b e r f e e t o t h 1 5 7 1 . T d o c s f o W a r p S p e e d c l e a r l y s tu p g r a d e R O M s . A n y o s h o uW a r p S p e e d . D e s p i t e t h i s d i s c b e a u t i f u l l y w i t h t h o l R O a t t a c h e d .

s h o u l d a l s o m e n t i o n e d t h a t sw i t h W a r p S p e e d i n s t a l l e d . T

N e w s B R T r a n s a c t o r N e w s " M o v i n g P i c t u r e s " i s j i o l o n g e r a v

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

Page 79: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 79/84

S u b m i t t i n g N e w s B R P r e s s R e l e a s e s

I y o h a v e p r e s s r e l e a s e y o u w o u l d l i k e t s u b m i t f o t h N e w s B R c o l u m n , m a k e s u r e t h a t t h c o m p u t e r o r d e v i c e f o w h i c h t h p r o d u c t i i n t e n d e d i p r o m i n e n t l y n o t e d . W r 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 r e a c h i s s u e a n o n e s w h o s ei 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 ti n t o t h t r a s h b i n . W o n l y p r i n t p 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 tm o n t h s i a d v a n c e . T h N e w s B R c o l u m n i c o m p i l e d s o l e l yf r o m p r e s s r e l e a s e s a n i i n t e n d e d o n l y t d i s s e m i n a t e i n f o rm a t i o n ; w h a v e n o n e c e s s a r i l y t e s t e d t h e p r o d u c t s

D i s t r i b u t o r s W a n t e d

M a n y s u b s c r i b e r s s t a t e t h a t t h m a g a z i n e i n o a v a i l a b l e i t h e i r a r e a . I f y o k n o w o r e t a i l e r s w h a r n o c a r r y i n g 7 r a « , s -a c t o r o r T r a n s a c t o r f o t h A m i g a , w r i t e o r e - m a i l ( C o mp u S e r v e P P 7 6 7 0 3 , 4 2 4 3 ) a n s e n d u t h e i r n a m e s a n a d r e s s e s . W p a r t i c u l a r l y n e e d d i s t r i b u t o r s i n R h o d e I s l a n d ,N e H a m p s h i r e , M a i n e , V e r m o n t , D e l a w a r e , W e s t V i r g i n i a ,S o u t h C a r o l i n a , A l a b a m a , M i s s i s s i p p i , I o w a , S o u t h D a k o t a ,N o r t h D a k o t a , M o n t a n a , N e b r a s k a , W y o m i n g , H a w a i i ,A r k a n s a s , I d a h o , A l a s k a a n d a l o v e r C a n a d a , p a r t i c u l a r l y o t h e P r a i r i e s a n i t h W e s t . S u b s c r i b e r s a n d e a l e r s a r e o u m o s t i m p o r t a n t r e s o u r c e .

T h 2 0 / 2 0 D e a l

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

S u b s c r i p t i o n s

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

P u b l i s h i n g R e n a n n e T u r n e r , o u w i l l b i t o u c h w i t h y o u . M o v i n gb C A w i t h n e p a c k a g i n g a n P . O . B o 1 0 5 2 , Y r e k a , C 9 6 0 9 7 . P

T r a n s a c t o r M a i l

I t e m s o o r d e r c a r d s i b a c k i s s u e se s s a r i l y c u r r e n t l y a v a i l a b l e ; i y o n a n n e b e f o r e s e n d i n g i y o u r o r d e r .f r o m t h c a r d i t h m o s t r e c e n t i y o u r o r d e r t a k e s w e e k t t e d a y c e s s i a q u i c k l y a p o s s i b l e a n i w e e k s t r e a c h y o b y w h a t i a l l e g y o h a v e p r o b l e m , c a l l R e n a n n F r i d a y s , A P E a s t e r n t i m e .

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

J u g g ' l e r - 1 2 8 p r o d u c t o f H e r n eb M G a r a m s z e g h y . T h i s p r o g r a mf o r m a t t i n g s u p p o r t f o m o r e t h a nd i s k s o t h C 1 2 8 i C P / M m o d ed i s k d r i v e . I t i s c o m p a t i b l e w i t h a l C P / M a n a l C 1 2 8 h a r d w a r e c o n1 2 8 - D . A l n o r m a l C P / M f i l e a c c e w i t h t h e x t r a d i s k t y p e s . J u g g ' l e rf o $ 1 9 . 9 5 C a n a d i a n o $ 1 7 . 9 5 U f r o m t h c a r d a t h c e n t r e o t h i s m a

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

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

T h M i c r o - S l e u t h : C 6 4 / 1 5 4 B r i a n S t e e l e ( s e r v i c e t e c h n i c S c h o o l s ) , t h i s i a v e r y p o p u l w i l l t e s t t h R A o C 6 e vr u n a p r o g r a m ! T h c a r t r i d g e m a c h i n e , t e s t s a l R A M , R O

Page 80: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 80/84

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

h i g h e n o u g h q u a l i t y t h a t t h e y c o u l d b r e l e a s e d o t h e i r o w n ,b u y o g e a l 1 o t h P o t p o u r r i d i s k f o j u s t $ 1 7 . 9 5U S / $ 1 9 . 9 5 C a n a d i a n .

T r a n s B A S I G I c o n t a i n s a l T m o d u l e s e v e r p r i n t e d .T h e r e a r o v e r 1 4 0 c o m m a n d s ; p i c k t h o n e s y o w a n t t u s i a n c o m b i n a t i o n . I t ' s s s i m p l e t h a t s u m m a r y o i n s t r u ct i o n s f i t s r i g h t o t h d i s k l a b e l . T h m a n u a l d e s c r i b e s e a c h o t h c o m m a n d s , p l u s h o t w r i t e y o u r o w c o m m a n d s .

I n n e r S p a c e A n t h o l o g y T h i s i o u e v e r - p o p u l a r r e f e r e n c eb o o k . I h a n " r e a d i n g " m a t e r i a l , b u i 1 2 c o m p a c t p a g e st h e r e a r m e m o r y m a p s f o f i v e C B c o m p u t e r s , t h r e e d i s kd r i v e s a n m a p s o C O M A L ; s u m m a r i e s o B A S I C c o m a n d s , A s s e m b l e r a n M L c o m m a n d s a n W o r d p r o c e s s o ra n S p r e a d s h e e t c o m m a n d s . M c o d e s a n m o d e s a r s u m m ar i z e d , a w e l l a 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 s e 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 e n 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 sm u c h m o r e . . a b o u t 2 . m i l l i o n c h a r a c t e r s i t o t a l !

T h T r a n s a c t o r B i t s a n P i e c e s B o o k a n D i s k 2 4 p a g e so B i t s f r o m T r a n s a c t o r V o l u m e s t h r o u g h w i t h a v e r y c o p r e h e n s i v e i n d e x . E v e n i y o h a v e a l t h o s e i s s u e s , i m a k e sh a n d y r e f e r e n c e n m o r e f l i p p i n g t h r o u g h m a g a z i n e s f o r t h a to n b i t t h a t y o j u s t k n o w i s o m e w h e r e . A l s o , e a c h i t e m i f o r w a r d / r e v e r s e r e f e r e n c e d . B i t s t h a t a r e s i m i l a r i n a t u r e o ra r u p d a t e s t p r e v i o u s b i t s a r e c r o s s - r e f e r e n c e d . A n t h i d e m a k e s i e v e n e a s i e r t f i n d t h o s e q u i c k f a c t s t h a t e l i m in a t e l o o w h e e l r e - i n v e n t i n g . T h b i t s b o o k d i s k c o n t a i n sa l t h p r o g r a m s f r o m t h b o o k a n c a s a v e l o o t y p i n g .

T h G - L i n k I n t e r f a c e T h G - L i n k i 6 t I E E E i n t e rf a c e . I a l l o w s t h 6 t u s I E E E p e r i p h e r a l s s u c h a t h 4 0 4 0 ,8 0 5 0 , 9 0 9 0 , 9 0 6 0 , 2 0 3 1 a n S F D - 1 0 0 1 d i s k d r i v e s , o a n I E E E p r i n t e r , m o d e m o e v e n s o m e H e w l e t t - P a c k a r d a n T e k -

m o d e p u t s u m e n u :1 C h e c k d r i v e s p e e d2 C h e c k d r i v e a l i g n m e n t3 1 5 4 1 s e r i a l t e s t4 C 6 s e r i a l t e s t

s e c o n d b o a r d ( i n c l u d e d ) p l u gL E D s t h a t l e y o l o c a t e t h

M i c r o - S l e u t h w i t h b o t h b o U S / $ 1 2 9 . 9 5 C D N .

T r a n s a c t o r B a c k I s s u e s a n f r o m V o l u m e I s s u e a r e a v a a r e t h e 9 8 p a g e s i z e c o m p a t i b l i s s u e s a r e a v a i l a b l e o n l y o m i co t h o r d e r c a r d . T h p r i c e i w i t h t h e x c e p t i o n t h a t c o m p lw i l l c o s t j u s t $ 4 9 . 9 5 U S / $ 5 9 . 9 5

T h i s l i s t s h o w s t h " t h e m e s "d i d n ' t s t a r t u n t i l V o l u m e I c l u d e s a l t h p r o g r a m s f r o ma l p r o g r a m s f o V o l u m e I s s s e p a r a t e d i s k f o e a c h i s s u e . D ii n c l u d e s C O M A L 0 . 1 4 , s o fv e r s i o n o t h C O M A L 2 . c a 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

V o l . 4 I s s u e sV o l . 4 I s s u e sV o l . 5 I s s u eV o l . 5 I s s u eV o L 5 I s s u e 3V o l . 5 I s s u eV o l . 5 I s s u eV o l . 5 I s s u eV o l . 6 I s s u eV o l . 6 I s s u e

t ( D i s k # 1 )t o 6 ( D i s k # l )

S o u n d a n G r T r a n s i t i o n t

P i r a c y a n P r B u s i n e s s a n H a r d w a r e a n A i d s U t i l i t M o r e A i d sN e t w o r k i n g

V o l . 8 I s s u e 5 F e a t u r e : B i n a r y T r e e s # 2 2• V o l . 8 I s s u e 6 F e a t u r e : C e l l u l a r A u t o m a t a # 2 3

Y o u r N a m e H e r e M a i n l y d u t d e m a n d f r o m r e a d e r s ( a n dw e ' d a l s o l i k e t h m o n e y ! ) , T r a n s a c t o r i n o a c c e p t i n g a l i mi t e d a m o u n t o a d v e r t i s i n g . I y o h a v e p r o d u c t o s e r v i c e

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

Page 81: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 81/84

w h i c h w o u l d b o i n t e r e s t t o o u r e a d e r s , y o w i l l f i n d t h er a t e s v e r y p l e a s a n t s u r p r i s e . Y o u r a d v e r t i s i n g d o l l a r w i l l t a k ey o u r m e s s a g e d i r e c t l y t o t h e h e a r t o t h C o m m o d o r e w o r l d .

D a t a l a n d L t d . , P . O . B o 6 6 3 , T o L O 1 W O . P h o n e ( 4 1 6 ) 9 3 6 - 2 6 7 7 .

C l a s s i f i e d a d a r e a l s o a v a i l a b l e a $ 2 . 0 0 p e w o r d w e ' l l d o M y s t i c J i m ' s S t u f f : M y s t i c J i m ' s a l t h t y p e s e t t i n g . E i t h e r w r i t e o r p h o n e i y o u r r e q u i r e m e n t s .W r e s e r v e t h e r i g h t t o r e f u s e a d v e r t i s i n g w h i c h i m i s l e a d i n g ,f a t t e n i n g o p r o m o t e s p i r a c y .

I n d u s t r y N e w s

C 1 2 8 D e v e l o p e r ' s P a c k a g e : C o m m o d o r e ' s o w C 1 2 8 D e v e lo p e r ' s P a c k a g e f o t h C 6 4 / C 1 2 8 i s u i t a b l e f o b o t h l a r g e a n s m a l l d e v e l o p m e n t p r o j e c t s . T h p a c k a g e w o r k s b e s t w i t h s y t e m s h a v i n g m o r e t h a n o n d i s k d r i v e a n a 8 0 - c o l u m n t e x td i s p l a y , b u m i n i m a l s y s t e m s a r s u p p o r t e d a w e l l . T h D v e l o p e r ' s P a c k i n c l u d e s a e d i t o r , a a s s e m b l e r , C 1 2 8 t o o l s ,R A e x p a n s i o n r o u t i n e s , 1 3 5 1 m o u s e r o u t i n e s , C 6 t o o l s ,1 5 7 1 / 1 5 8 1 b u r s t r o u t i n e s a n C 6 f a s t l o a d e r s .

T h e d i t o r , E 1 2 8 , i f u l l - s c r e e n e d i t o r s i m i l a r i f u n c t i o n t t h E D e d i t o r f r o m D i g i t a l E q u i p m e n t C o r p o r a t i o n . E 1 2 f u n c t i o n s i b o t h A S C I I a n P E T A S C I I . H C D 6 5 i p o w e r f u l6 5 0 2 m a c r o a s s e m b l e r s i m i l a r t t h a s s e m b l e r u s e d t a s s e mb l e t h e C 1 2 8 o p e r a t i n g s y s t e m . T h i s a s s e m b l e r s u p p o r t s c o n d it i o n a l s , l o c a l l a b e l s , m a n y d i r e c t i v e s , c r o s s r e f e r e n c e s , e t c . T h C 6 t o o l s i n c l u d e : s p r i t e e d i t o r , s o u n d e d i t o r , a n a c h a r a ct e r e d i t o r . T h s o f t w a r e i p r o v i d e d o t w d o u b l e - s i d e dd i s k e t t e s ( i n c l u d e d ) .

T h m a n u a l i n c l u d e s s u c h v a l u a b l e i n f o r m a t i o n a s t h d i f f e re n c e s b e t w e e n t h C 1 2 8 a n 1 5 7 1 R O r e v i s i o n s ; s o u r c ec o d e f o t h f a s t l o a d e r s , R E r o u t i n e s , m o u s e d r i v e r s , a n b u r s t r o u t i n e s ; a n d e s c r i p t i o n s o t h r o u t i n e s i t h C 1 2 8B A S I C 7 . f l o a t i n g p o i n t m a t h p a c k a g e i n c l u d i n g t h e t a b l e o j u m p v e c t o r s . T g e c o p y o t h D e v e l o p e r ' s P a c k a g e , o r d e rp a r t n u m b e r C D E V 1 2 8 0 0 1 f r o m : C A T S , A t t n : L a u r e n B r o w n ,1 2 0 0 W i l s o n D r i v e , W e s t C h e s t e r , P A U S A , 1 9 3 8 0 .

p r i m a r i l y r e l a t e d t G E O S , i n c l uG E O S w i t h o t h e r C o m m o d o r e pK o a l a P a d , P r i n t S h o p a n B A S IH a r d w a r e p r o d u c t s i n c l u d e R e aV i d e o R A u p g r a d e k i f o t h C 1 2

S h a r e w a r e d i s k s a r e s e n t o r e q u e s y o m a r e q u e s t a n o a l o t h os i s : y o c o n t r i b u t e w h a t e v e r t h e d t r y i n g t h e m . S h a r e w a r e m e m b e r s h ia n i n c l u d e s : a l o t h s h a r e w a r eo n a i c o m e s o u t ; s u b s c r i p t i o c e s s t M y s t i c J i m ' s 2 0 B B S , w ib r a r y , g a m e s , c o n t e s t s , i n f o r m a t i o n ,c o u n t s o s o f t w a r e a n h a r d w a r e . A b a c k g u a r a n t e e a n d n o n e o t h T h B B p r o v i d e s c u s t o m e r s e r v i c e

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

M y s t i c J i m , 2 3 8 8 G r a p e , D e n v e r ,( 3 0 3 ) 3 2 1 - 3 2 2 3 ( v o i c e ) , ( 3 0 3 ) 3 2 2 1 2 6 ( C a n a d i a n B B S ) .

U p d a t e o n R o m J e t C u s t o m C a r t rc a r r i e d a i t e m o t h R o m J e t C u s tt h a t t h e y w e r e a v a i l a b l e i s i z e s r a nf a c t , ' t h u p p e r b o u n d o t h i s r a n R o m J e t w i l l i n s t a l l o i t c a r t r i d gp r o g r a m s w h i c h y o l e g a l l y o w

S u p e r b o o t f o C 1 2 8 : S u p e r b o o t i s o f t w a r e t h a t l e t s y o c r a t y o u r o w a u t o - b o o t d i s k s t h a t w i l l r u y o u r p r o g r a m i e t h e r C 1 2 8 o C 6 4 m o d e w h e n t h s y s t e m i b o o t e d . A v a i l a b l ef r o m : J P r o g r a m S o f t w a r e , 1 0 0 N o r t h B e r e t a n i a S t . , S u i t e2 1 0 , H o n o l u l u , H I U S A , 9 6 8 1 7 .

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

Page 82: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 82/84

C o m p u t e r S a v e i a i n d e p e n d e n t m o n t h l y p u b l i c a t i o n d s i g n e d t p r o v i d e a s s i s t a n c e t b u y e r s a n s e l l e r s o q u a l i t y o p h a n e q u i p m e n t . T h e y a l s o a d v e r t i s e f o r b o t h m a n u f a c t u r e r sa n r e t a i l e r s o t h n e w e s t h a r d w a r e . T h e i r a i i t i n f o r ma n e n t e r t a i n b w a o f c o n s t a n t l y u p d a t e d p r e s s r e l e a s e s a n f e a t u r e a r t i c l e s b w r i t e r s w e l l v e r s e d i n t h e i r p a r t i c u l a r f i e l d s ,w h e t h e r t h v e r y n e w e s t o t h o r p h a n s . C o m p u t e r S a v e i e v e n n o p l a n n i n g t e x p a n d t h e i r a i b w a o n e a n e c i t i n g a d d i t i o n s t o t h e i r f o r m a t . W a t c h f o r f u t u r e i s s u e s . C o t a c t : E l i z a b e t h H a r t w e l l , 2 7 8 - 3 0 1 7 S t C l a i r A v e . , B u r l i n g t o n ,O N C a n a d a , L 7 3 P 5 . P h o n e ( 4 1 6 ) 5 2 9 - 0 5 8 0 .

S a t e l l i t e T r a c k i n g p r o g r a m f o t h C 6 4 / C 1 2 8 : S A T C O M M -6 a l l o w s A m a t e u r r a d i o o p e r a t o r s o o t h e r s u s i n g c o m m u n i :c a t i o n s s a t e l l i t e s t t r a c k u t 1 d i f f e r e n t s a t e l l i t e s , a n p r v i d e s k e d a t a a u s e r - s e l e c t e d i n t e r v a l s o o n e m i n u t e o m o r e . T h u s e r c a s e l e c t s c r e e n - o n l y s e a r c h e s , o r g e n e r a t ep r i n t e d r e p o r t s s t h a t t h c o m p u t e r i a v a i l a b l e f o c o m m u n ic a t i o n s u s e d u r i n g a c t u a l s a t e l l i t e p a s s e s . T h p r i n t e d r e p o r t si n c l u d e : r e l a t i v e a z i m u t h a n e l e v a t i o n , a c t u a l a l t i t u d e , l o n g it u d e a n l a t i t u d e , l o c a l t i m e , U T d a y , g e o g r a p h i c a r e a s t h a ta r w i t h i n t h s a t e l l i t e ' s c o m m u n i c a t i o n r a n g e , d o p p l e r s h i f t ,m i n i m u m a n m a x i m u m c o m m u n i c a t i o n d i s t a n c e , o p e r a t i n gf r e q u e n c i e s , o r b i t n u m b e r , a n p h a s e .

S A T C O M M - 6 4 o v e r c o m e s t r a d i t i o n a l s a t e l l i t e t r a c k i n g p r g r a m s h o r t c o m i n g s w i t h f e a t u r e s l i k e a n n u a l r o l l o v e r ,s t a n d a r d - t o - d a y l i g h t t i m e c h a n g e - o v e r , a n s i n g l e s e t u p m u l t i -d a y / m u l t i - s a t e l l i t e r e p o r t s . T h p r o g r a m c o m e s w i t h d a t a f o s e v e r a l a m a t e u r r a d i o , v i s i b l e , a n w e a t h e r / r e s e a r c h s a t e l l i t e s ;w h e n e v e r d e s i r e d , t h u s e r c a r e p l a c e t h e s e w i t h n e s a t e l l i t ec h o i c e s .

S A T C O M M - 6 4 i c o m p a t i b l e w i t h t h C 6 4 / 1 2 8 , 1 5 4 1 d i s kd r i v e a n 1 5 2 5 p r i n t e r , a n i a v a i l a b l e f o $ 1 5 . 9 5 ( M r e s id e n t s a d t a x ) p l u s $ 3 . 0 0 p & f r o m : S t r a t e g i c M a r k e t i n g R s o u r c e s , I n c . , P . O . B o 2 1 8 3 , E l l i s v i l l e , M 6 3 0 1 1 . P h o n e( 3 1 4 ) 2 5 6 - 7 8 1 4 .

d i s k e r r o r s .

M i c r o D e t e c t i v e a l s o p r o v i d e s aa i d s : b i d i r e c t i o n a l p r o g r a m s c r o A U T O , D E L E T E , D I R , D I S K ,r e f e r e n c e l i s t ; d i s k c o m m a n d s ;o p r o g r a m l i n e s ; S L I S T , w h i c hi n t e l l i g e n t p l a c e s t m a k e i m c o m m a n d s a n f e a t u r e s ( t o t a la d d e d ) .

M i c r o D e t e c t i v e f o t h C 6 4 a b o v e , i $ 4 9 . 9 5 ( U S ) . I n t h ec o m e s w i t h o u t t h e e r r o r d e t e c t it h C 1 2 8 e r r o r d e t e c t i o n p r oF r o m : A m e r i c a n M a d e S o f t w a r 9 5 6 5 0 .

T h e A n a t o m y o t h 4 0 4 0 D i s b H i l a i r e G a g n e , i f i l l e d w i t e x p l a n a t i o n s , d i s a s s e m b l e d s o u o t h e r h a r d f a c t s a b o u t t h 4 0 4C a n a d i a n r e s i d e n t s , p l u s $ sU . S . , $ 3 1 . 9 5 ( U S ) p l u s $ s h i p H i l a i r e G a g n e , 4 5 0 1 C a r l S t . ,P O 1 Y 0 .

F r e e S p i r i t r e l e a s e s C 6 v e r s iS p i r i t S o f t w a r e h a r e l e a s e d a vt h C 6 4 . N o y o c a c o p y w h 1 5 7 1 d i s k d r i v e s t t h 1 5 8 1 .w i t h o n o t w 1 5 4 1 s , o n o t A l s o i n c l u d e d i f u l l - f e a t u r e d t i e s , s c r a t c h / u n s c r a t c h , l o c k / u n l

S u p e r 8 U t i l i t i e s i s u p p l i e dd i s k e t t e s a n w i l l b o o t f r o m d e $ 3 9 . 9 5 ( U S ) s h i p p i n g / h a n d l i n

T h P o t p o u r r i D i s kH e l p ! W a B a l l o o n s

Page 83: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 83/84

T h i s H E L P f u l u t i l i t y g i v e s y o i n s t a n tm e n u - d r i v e n a c c e s s t t e x t f i l e sa t h t o u c h o k e w h i l e a n p r o g r a m i r u n n i n g !

L o a n H e l p e rH o w m u c h i t h a t l o a n r e a l l y g o i n gt c o s t y o u ? W h i c h i n t e r e s t r a t ec a y o a f f o r d ? W i t h L o a n H e l p e r ,t h a n s w e r s a r a s c l o s e a y o u rf r i e n d l y 6 4 !

K e y b o a r dL e a r n i n g h o t p l a y t h p i a n o ?T h i s h a n d y e d u c a t i o n a l p r o g r a mm a k e s i e a s y a n f u t l e a r n t h n o t e s o t h e k e y b o a r d .

F i l e d u m pE x a m i n e y o u r d i s k f i l e s F A S T w i t ht h i s m a c h i n e l a n g u a g e u t i l i t y .H a n d l e s s i f o r m a t s , i n c l u d i n g h e x ,d e c i m a l , C B a n t r u e A S C I I ,W o r d P r o a n S p e e d S c r i p t .

A n a g r a m sA n a g r a m s l e t s y o u u n s c r a m b l ew o r d s f o c r o s s w o r d p u z z l e s a n t h l i k e . T h p r o g r a m u s e s r e c u rs i v e M s u b r o u t i n e f o m a x i m u ms p e e d a n e f f i c i e n c y .

L i f e

F A S T m a c h i n e l a n g u a g e v e r s i o no m a t h e m a t i c i a n J o h n H o r t o nC o n w a y ' s c l a s s i c s i m u l a t i o n . S e

S h o o t d o w n t h o s e e v i l N a z i W a B a l l o o n s w i t h y o u r h a n d y A c m eC a n n o n ! D o n ' t l e t h e m g e t a w a y !

V o G o o g o lA l a s t ! T h m a p h i l o s o p h e r ,H e l g a v o G o o g o l , b r i n g s h e o w b r a n d o w i s d o m t t h s m a l ls c r e e n ! I t h i s i ' A l ' , t h e n i j u s t a i n ' tn a t u r a l !

N e w sS a v e t h m o n e y y o s p e n d o t h o s e s u p e r m a r k e t t a b l o i d s t h i sp r o g r a m w i l l g e n e r a t e e q u a l l yc o n v i n c i n g h e a d l i n e c o p y f o f r e e !

W r T h u l t i m a t e i e a s y - t o - u s e d a t ab a s e p r o g r a m s . W R l e t s y o q u i c k l y a n s i m p l y c r e a t e , e x a mi n a n e d i t j u s t a b o u t a n y d a t a .C o m e s w i t h s a m p l e f i l e .

Q u i zT r i v i a f a n a t i c s a n s t u d e n t s a l i k ew i l l h a v e f u n w i t h t h i s p r o g r a m ,w h i c h g i v e s y o m u l t i p l e c h o i c et e s t s o m a t e r i a l y o u h a v e e nt e r e d w i t h t h W R p r o g r a m ,

A H A ! L a n d e rA H A I ' s g r e a t l u n a r l a n d e r p r o g r a m .U s e i t h e r j o y s t i c k o k e y b o a r d t c o m p e t e a g a i n s t y o u r s e l f o u t

c u t e l c a p t u r eq u i c k l y a t h g o o d

T h e m o s tt i o n y o u ' l y o u r f a v od o u b l i n g , t i n g t h d

W h i c h o c r e a t e ds i o n ? W i tn e v e r b

A r c a d en e e d a l t h i s w i c k m a d o ga r n o f

J u s t t h t O c t a g o n o t h m a n t f o r r e a l e x

n i f t y a rc h i n e l a l e a r n t h

T H T I M E S A V E R

Page 84: The Transactor V9 01 1988 Sep

8/7/2019 The Transactor V9 01 1988 Sep

http://slidepdf.com/reader/full/the-transactor-v9-01-1988-sep 84/84

. . l o o T r a n s a c t o r p r o g r a m s ?D o e s t h a b o v e t i m e a n a p p e a r a n c e o t h s k l o o k f a m i l i a r ?

W i t h T h T r a n s a c t o r D i s k , a n p r o g r a m - i s j u s t L O A D a w a y !

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

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

N o A m i g a O w n e r s C a S a v e T i m e T o o !T r a n s a c t o r A m i g a D i s k # 1 $ 1 2 . 9 5 U S $ 1 4 . 9 5 C d n .

A l t h A m i g a p r o g r a m s f r o m t h m a g a z i n e , w i t h c o m p l e t ed o c u m e n t a t i o n o d i s k , p l u s o u p i c k o f t h e p u b l i c d o m a i n !