The Transactor V5 06 1985

84
8/7/2019 The Transactor V5 06 1985 http://slidepdf.com/reader/full/the-transactor-v5-06-1985 1/84 0 A d v e r t i s i n g F r e e ! I s s u e 0 $ 2 . 9 5 T h T o o l s F o S q u e e z i n g T h M o s t F r o m Y o u r C o m m o d o r e C o m p u t e r E x e c u t e S e q u e n t i a l F i l e s i n g T t \ e E r r o r W e d g e N u m e r i c K e y p a d S c r o l l i n g R o u t i n e G a R e m o v e r t r a m o n 6 P e e k e r K i l l e r H I - R E S P r i n t e r D u m p t t t - R E S G r a p h i c s U t i l i t y T w S h S p r i t e E d i t o r s P a r a m e t e r s

Transcript of The Transactor V5 06 1985

Page 1: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 1/84

0 A d v e r t i s i n g F r e e ! I s s u e 0 $ 2 . 9 5

T h T o o l s F o S q u e e z i n g T h M o s t F r o m Y o u r C o m m o d o r e C o m p u t e r

E x e c u t e S e q u e n t i a l F i l e si n g T t \ e E r r o r W e d g e

N u m e r i c K e y p a dS c r o l l i n g R o u t i n e

G a R e m o v e rt r a m o n 6

P e e k e rK i l l e r

• H I - R E S P r i n t e r D u m pt t t - R E S G r a p h i c s U t i l i t y

T w S h S p r i t e E d i t o r sP a r a m e t e r s

Page 2: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 2/84

Page 3: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 3/84

V o l u m eI s s u e 0

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

i n i n

S t a r t A d d r e s s E d i t o r i a lB i t s a n P i e c e s L e t t e r s 1 7C 6 4 I R Q r e s e t U p g r a d e s a n I n f o : D O 2 . 8 C o l u m n R i g h t - J u s t i f y C l e a r l y I n f l e x i b l e : S c r e e n C l e a r R o u t i n eC 6 Z e r o P a g e V i e w P r o t e c t i o n R e f l e c t i o nC 6 4 V 2 R O C o l o u r M e m o r y F i U n i m p l e m e n t e d I n q u i r y : 6 5 0 2 O p S Y S c r e e c h i n g O f f I n t o O b l i v i o nD i s a b l i n g R E S T O R E o c 6 F a s t H i - R e s S c r e e n C l e a r F r o m B A S I C N e W S B R . . . . 7 I S e a r c h o f . . . T h e p e r f e c t c o l o u r c o m b i n a t i o n N e 1 6 - b i t C o m m o d o r e s f o 1 * 9 8 * 5 "P u M e n t a l N o t e s o D i s k ( o t a p e ) ! N o t e t P r o d u c t R e v i e w A u t h o r sA s s e m b l e r P r o g r a m m i n g T i O v e r 4 1 , 0 0 0 A t t e n d W o r l d o O n L i n e D e c i m a l t B i n a r y C o n v e r s i o n T r a n s a c t o r D i s k O f f e r U p d a t eT h e B l e e p e r I B M C O M A L4 C o l u m n W o r d p r o D u m p T h G o l d D i s kR e g a i n Q u i c k D a t a D r i v e F o C 6 4 a n d V I C - 2 0W a r m S t a r t B o r d e r F l a s h e r S o f t w a r e D e v e l o p e r s N e w s l e t t e rD o u b l e W i d t h D i s k D i r e c t o r y P r i n t o u t C o m m o d o r e N o P r o v i d e s A m e r i e a nr f i d F a n k i - < ; t ! , h , c L A M P : L i t e r a t u r e A n a l y s i s o M i c r o c o m p u t e r P u b l i c a t i o n su m P o r t h o l eB o u n c e B U d / i , „ „ . _ „ N e I n c o m e T a P r o g r a m F o C o m m o d o r e P L U S / 4F i l e n a m e E x t e n s i o n s W i t h S H I F T e d S P A C E I N F O Q U I C K B u l l e t i n B o a r d f o t h C o m m o d o r e 6 E a s y S c r e e n P r i n t T n S M A R T 6 4 T e r m i n a lP h o n e S p e l l e r T h F O N T F A C T O R YA s s e m b l e r P r o g r a m m i n g T i * C A M - 6 4 ( C a l l A c c o u n t i n g M a n a g e r )1 5 4 1 / 4 0 4 0 W r i t e I n c o m p a t i b i l i t y B u E x p a n d a b l e 3 0 0 / 1 2 0 0 B a u d M o d e mA u t o K e y w o r d s F o T h V I C , 6 4 P E T / C B M P r i n t e r R i b b o n s

I n t r o d u c i n g V E R I F I Z E R 1 T h M A N A G E R C o l u m n 1 T r a n s B A S I C I n s t a l l m e n t # 1

N e W e d g e F o T h C o m m o d o r e 6 2 K e y w i z a r d F o T h C o m m o d o r e 6 2 L I N K E D L I S T S P a r t 3

H I - R E S G r a p h i c s U t i l i t y 3 V I P a r a m e t e r s 4 B I G P R I N T : H I - R E S P r i n t e r D u m p 4 T w S h o r t S p r i t e E d i t o r s 5 L i s t S c r o l l i n g R o u t i n e 5 S T P : E x e c u t e S e q u e n t i a l F i l e s 5 Q u o t e K i l l e r 5 D i r e c t o r y G a R e m o v e r 5 M a c h i n e L a n g u a g e P r i n t L o a d e r 5 8A l i g n i n g T h 1 5 4 1 6 S u p e r C a 6 S o f t w a r e N u m e r i c K e y p a d 6 D i s k / E x t r a m o n 6 4 6 8D r i v e P e e k e r 7 F i l e C o m p a r e 7

T h T r a n s a c t o r V o l u m e 5 I s s u e 0

Page 4: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 4/84

T h T o c h / N e w t J o u r n a l F o r

M a n a g i n g E d i t o rK a r l J . H H i l d o nE d i t o rR i c h a r d E v e r sT e c h n i c a l E d i t o rC h r i s Z a m a r aA r D i r e c t o rJ o h n M o s t a c c iA d m i n i s t r a t i o n S u b s c r i p t i o n sL a n a H u m p h r i e sC o n t r i b u t i n g W r i t e r sH a r o l d A n d e r s o nD o B e l lD a n i e l B i n g a m o nJ i B u t t e r f i e l dG a r y C o b bJ o h n C u r r i eE l i z a b e t h D e a lD o m e n i c D e F r a n c e s c oB r i a n D o b b sB o D r a k eT e E v e r sM i k e F o r a n iJ e f f G o e b e lG a r y G u n d e r s o nD a v i d A H o o kR i c k I l l e sS c o t t J o h n s o nG a r r y K i z i a kM i c h a e l K w u nS c o t t M a c l e a nA l l e n R M u l v e yB r i a n M u n s h a wN o e l N y m a nL e n a r d P a i n c h a u dM i c h a e l Q u i g l e yH o w a r d R o t e n b e r gL o u i s F S a n d e rK M u r r a y S m i t hD a r r e n J S p r u y tA u b r e y S t a n l e yN i c k S u l l i v a nC o l i n T h o m p s o nM i k e T o d dP r o d u c t i o nA t t i c T y p e s e t t i n g L t d .P r i n t i n gP r i n t e d i C a n a d a b M a c L e a n H u n t e r P r i n t i n g

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

p r i n t " f l u s h r i g h t " w o u l d b s h o w n a p r i n t " [ s p a c e l O J f l u s h r i g h t "

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

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

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

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

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

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

F 5 F 6 F 7 F 8

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

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

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

B a c k I s s u e s : $ 4 . 5 0 e a c h . O r d e r a l b a c k i s s u e s f r o m M i l t o n H Q S O L D O U T : T h B e s t o T h T r a n s a c t o r V o l u m e s 3 V o l u m e 4 I s s u e s 0 4 , 0 5 0 S t i l l A v a i l a b l e : V o i . 4 0 1 0 2 , 0 3 . V o l . 5 0 1 , 0 2 , 0 3 0 4 0

Q u a n t i t y O r d e r s :

C o m p u L i tP B o 3 5 P o r t C o q u i t l a m , B V 5 C 4 K 66 0 4 4 3 8 8 8 5 4U . S . A . D i s t r i b u t o r :

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

M t C K O t i D I B T R I B U T I N O

M i c r o n D i s t r i b u t i n g4 0 Q u e e n S t r e e t W e s tT o r o n t o , O n t a r i o , M 5 2 A ( 4 1 6 ) 5 9 3 9 8 6 2D e a l e r I n q u i r i e s O N L Y :

8 0 0 2 6 8 9 0 5 2S u b s c r i p t i o n r e l a t e d i n q u i r i e sa r h a n d l e d O N L Y a M i l t o n H

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

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

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

T h T r a n s a c t o r V o l u m e 5 I s s u e 0

Page 5: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 5/84

N o w h e r e i t h d e s i r e t a b s o r b i n f o r m a t i o n m o r e p r e v a l e n tt h a n i t h f i e l d o m i c r o c o m p u t e r s . E q u a l m a y b e , b u t n o tm o r e . O c o u r s e w a l l i k e t o l e a r n m o r e a b o u t o u f a v o u r i t es u b j e c t . J u s t o n p r o b l e m . W l i v e i m a s s m a r k e t s o c i e t yw h e r e t h i n g s a r e o n l y a v a i l a b l e f o a l o n g a s m a r k e t a b l es e g m e n t o t h p o p u l a t i o n s h o w s n e e d . I n f o r m a t i o n i n e x c e p t i o n . S u n l e s s t h e r e i n e e d t c o n t i n u e d e v e l o p i n gs u b j e c t , t h a v a i l a b i l i t y o n e i n f o r m a t i o n w i l l n o t o n l y r e a c hl i m i t , b u t t h e n e e d f o m o r e w i l l a l s o l e v e l o f f .

T h l a o " s u p p l y a n d e m a n d " a f f e c t s a l b u s i n e s s e s . I t h m i c r o i n d u s t r y , m a n u f a c t u r e r s a r r e s p o n d i n g e v e r y y e a r w i t hm a c h i n e s t h a t e x c e e d e v e r y s p e c i f i c a t i o n o i t p r e d e c e s s o re x c e p t p r i c e . T h i n f o r m a t i o n i n d u s t r y b a r e l y h a c h a n c e t c o v e r a l t h e a n g l e s o t h e c u r r e n t t e c h n o l o g y b e f o r e a n e l i n ec o m e s a l o n g t h a t r e q u i r e s m o r e o t h s p o t l i g h t . F o r t u n a t e l y f o u t h e r e h a v e n o b e e n e n o u g h t r a n s i t i o n s t f o r c e d i s c o n t i nu e c o v e r a g e o a n o n m o d e l . H o w e v e r , C o m m o d o r e i r e l e a s i n g n e m a c h i n e s a n d t h s t o r y n e x t y e a r w i l l n o l i k e l yc h a n g e . E v e n t u a l l y w j u s t w o n ' t h a v e r o o m t o d e a l w i t he v e r y t h i n g . R e c o g n i z i n g t h i s o u t c o m e w a s o n r e a s o n b e h i n dt h t h e m e o t h i s i s s u e a n a l s o s o m e s l i g h t m o d i f i c a t i o n s t o u p h i l o s o p h y .

W r e a l i z e t h a t t h e m a j o r i t y o c o m p u t e r u s e r s h a v e d e f i n e d a o b j e c t i v e f o t h e i r c o m p u t e r a n d a r e i t h e r w o r k i n g t o w a r d st h a t o b j e c t i v e o e n j o y i n g t h r e s u l t s o f h a v i n g a c c o m p l i s h e dt h a t o b j e c t i v e . A n w i t h k i n d t r e a t m e n t t h e r e i n r e a s o n w h t h h a r d w a r e s h o u l d n ' t e n d u r e i n d e f i n i t e l y . I n f a c t , t h a t s a m ec o m p u t e r m a n e v e r b e a s k e d t p e r f o r m a n o t h e r n e d u t y .T h e n , w h e n y o l e a s t e x p e c t i t t h d a w i l l c o m e w h e n c h a n g ec o m m a n d s p r i o r i t y . D e p e n d i n g h o f a a w a y t h a t d a i s t h i n f o r m a t i o n t h a t w a o n c e s r e a d i l y a v a i l a b l e j u s t m i g h t b t h m o s t d i f f i c u l t t o l o c a t e . E v e n t h m o s t w e a t h e r e d e x p e r t s m a b u n a b l e t o o f f e r e n o u g h d e t a i l t o h e l p p i n p o i n t s o l u t i o n .

B u t w i t h e n o u g h o t h r i g h t t o o l s , a n p r o b l e m u n d e r a n c i r c u m s t a n c e s c a b e l i m i n a t e d . Y o u ' v e h e a r d t h s a y i n g , " i y o w a n t i d o n e r i g h t , d i y o u r s e l f " . W e l l t h a t ' s f i n e i y o k n o w h o t o t a c k l e i t w h i c h i u s u a l l y d e t e r m i n e d b y h o m u c h i n f o r m a t i o n y o c a n a c c u m u l a t e t p r o v i d e a n s w e r s .T h u s t h " u t i l i t y " w a b o r n p r o g r a m t h a t d o e s n f a v o u r sf o t h e u s e r e x c e p t t m a k e t h p r o c e s s o a c c u m u l a t i n gi n f o r m a t i o n l e s s i n t i m i d a t i n g .

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

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

T h p h i l o s o p h y o T h T r a n s a c t o r h a s a l w a y s b e e n t d i s s e m in a t e i n f o r m a t i o n . W i t h t h i s i s s u e , t h i n f o r m a t i o n w e ' v e c h os e t d i s s e m i n a t e i f o t h p u r p o s e o e x t r a c t i n g i n f o r m a t i o na d e f i n e d b t h i n d i v i d u a l w h r e q u i r e s i t W c a n ' t p o s s i b l ys u p p l y a l t h a n s w e r s , e v e n i w k n e w a l t h q u e s t i o n s . S t h e n e x t b e s t a l t e r n a t i v e i t o o f f e r m e t h o d s t m a g n i f y t h q u e s t i o n s s o t h e a n s w e r s m i g h t b e s e e n m o r e c l e a r l y , a n t o f f e r l i t t l e a s s i s t a n c e w i t h t h e t a s k o i m p l e m e n t i n g t h s o l u t i o n . B u t h a t ' s n o t t h e m o s t s i g n i f i c a n t b e n e f i t .

L e a r n i n g i d a i l y p r o c e s s t h a t w a l e x p e r i e n c e , c o n s c i o u s l yo r o t h e r w i s e . B u t h e r e i a n o t h e r l e a r n i n g p r o c e s s t h a t t o m a n y o u i g n o r e e v e n a w e ' r e g a t h e r i n g n e f a c t s ; t h p r o c e s s o l e a r n i n g h o t l e a r n . T h a b i l i t y t s y s t e m a t i c a l l yo b t a i n k n o w l e d g e i w h a t s e p a r a t e s t h o s e w i t h t h s k i l l o t o t a lr e c a l l f r o m t h o s e w i t h t h t a l e n t f o d i s c o v e r i n g . I y o c a p i o n e e r d i l e m m a t i t d e f e a t , y o u h a v e a c c o m p l i s h e d m o r et h a n t h o r i g i n a l p r o b l e m . W h e t h e r y o r e a l i z e i o n o t , y o a r a c q u i r i n g d i s c i p l i n e . A n w i t h e a c h n e a c c o m p l i s h m e n ty o a c q u i r e l i t t l e m o r e . E v e n t u a l l y y o u r b a t t l e s w i t h n e o b j e c t i v e s w i l l b e c o m e m e r e l y a n e x e r c i s e i a c c o m p l i s h m e n t .T h l o g i c a l a n s y s t e m a t i c a p p r o a c h t h a t i s e s s e n t i a l i c o m p u t e r s c i e n c e w i l l p r o l i f e r a t e i n t o o t h e r u n r e l a t e d f u n c t i o n so y o u r d a y t d a e x i s t e n c e . T h i n t i m i d a t i o n o n e f r o n t i e rw i l l f a d e f a s t e r a y o l e a r n t a s w h p r o b l e m e x i s t s a n e l i m i n a t e t h e p r o b l e m r e a s o n b r e a s o n i n s t e a d o a l a o n c e .

T h a r o p r o b l e m s o l v i n g i o n t h a t m a h a b e e n t r y i n g t p e r f e c t s i n c e t i m e b e g a n . T h c o n c e p t o c o m p u t e r s w o u l dn e v e r h a v e m a t e r i a l i z e d h a t h e r e b e e n n o s t r u g g l e w i t hq u e s t i o n . N o t h a t w h a v e t h c o m p u t e r w m u s t r e m e m b e rt h a t i c a o n l y s o l v e p r o b l e m s g i v e n e n o u g h i n f o r m a t i o n , a n i t ' s t h i n f o r m a t i o n w s u p p l y t h a t d e t e r m i n e s h o v a l u a b l et h s o l u t i o n s b e c o m e . I n e s o l u t i o n s d n o r e q u i r e n e t e c h n o l o g y t h e n y o u r o l c o m p u t e r m a n e v e r b e c o m e o b s ol e t e .

H o w e v e r , t h e r e ' s n o t h i n g a c o n s t a n t a c h a n g e , r e m a i n ,

K a r l J . H . H i l d o n , M a n a g i n g E d i t o r

T h T r a n s a c t o r V o l u m e 5 I s s u e 0

Page 6: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 6/84

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

C 6 I R r e s e t

Y o k n o w t h p r o b l e m : y o u w a n t t d i s c o n n e c t a I R Q - d r i v e np r o g r a m , b u t a R E S T O R E w i l l a l s o r e s e t o t h e r t h i n g s l i k e y o u r s c r e e na n b o r d e r c o l o u r s . H e r e ' s a e a s y w a t o s e t t h I R v e c t o r b a c k t i t n o r m a l e n t r y p o i n t o $ E A 3 1 :

o i a s s e m b l e r :

p o k e 7 8 1 , 1 2 : s y 6 4 7 0 1

l d x # 1 2j s $ f c b d

8 C o l u m n R i g h t - J u s t i f y

T h u l t i m a t e o n e - l i n e r : w h e n t h e r e ' s b u n c h o s t u f f o t h e s c r e e n o y o u r 8 0 3 2 , e n t e r t h i s :

f o r i = 1 t o 8 O : ? " 0 " ; : f o r j 1 t o 2 4 : ? " Q : n e x t j , i

( T h e r e v e r s e " Q i a i n s e r t ) . 8 0 0 0 S e r i e s P E T / C B M o w n e r s . t r s t a r t i n g t h l i n e w i t h :

p o k e 2 1 3 , 1 5 9

Q u i c k n o t e : w h e n u s i n g t h n o n - r e l o c a t i n g l o a d a i n l o a d" f i l e " , 8 , 1 y o c a u s a n n o n - z e r o v a l u e i n s t e a d o 1 s y o c a u s , 8 , 8 t m a k e t y p i n g i i l i t t l e e a s i e r .

' @ ' , t h e n y o u h a v e R O v e r s i o n 2 W i t h t h i s R O M , t h k e r n a l r o u t i n ew h i c h c l e a r s s c r e e n l i n e ' c l e v e r l y ' f i l l s t h c o r r e s p o n d i n g c o l o u rm e m o r y w i t h t h e b a c k g r o u n d c o l o u r . S i n c e b a c k g r o u n d e q u a l s f o r eg r o u n d t h r e s u l t i t r u l y c l e a r s c r e e n . F u r t h e r m o r e , i y o u ' v e e v e rr u p r o g r a m f o t h 6 o t y p e d i l i t t l e s c r e e n b l i t z f r o mm a g a z i n e t h a t d i d n ' t w o r k , i c o u l d b e b e c a u s e t h a u t h o r w r o t e i o V o V m a c h i n e a n d a s s u m e d i w o u l d w o r k o n a n 6 4

T h s o l u t i o n ? I y o u ' r e w i l l i n g t f o r s a k e t h R A u n d e r l y i n g t h k e r n a l R O f o r t h i s c a u s e , y o c a c o r r e c t t h e f o o l i s h b e h a v i o u r b c h a n g i n g j u s t t w b y t e s . F i r s t c o p y t h B A S I C a n K e r n a l R O i n t ot h u n d e r l y i n g R A M . I y o u h a v e M a c h i n e L a n g u a g e M o n i t o r w i t h' T r a n s f e r ' c o m m a n d ( l i k e S u p e r m o n o M i c r o m o n ) , t h i s c a n b e d o n ew i t h t h e s e t w o p e r a t i o n s :

a O O O b f f f a O O Oe O O O f f f f e O O O

T h i s t r a n s f e r s t h e c o n t e n t s o t h 8 B A S I C R O a n t h 8 K e r n a lR O i n t o R A M . B u i g e t s i f r o m R O M . . . w h d o e s i n o t r t p u i b a c k i R O M ? B e c a u s e t h 6 k n o w s y o c a n ' t p o s s i b l y m e a n t h a tt h a n k s t c h i p c a l l e d a F P L A ( F i e l d P r o g r a m m a b l e L o g i c A r r a y ) . T h i sr e d i r e c t s d a t a f l o w t l o g i c a l d e s t i n a t i o n t h a t h a b e e n p r e s e t b t h e n g i n e e r s . A n y e s , i t ' s f a s t !

N e x t s w i t c h o u t t h R O a n s w i t c h i t h R A b p u t t i n g 5 d e c i m a l i n t o t h b a n k s e l e c t r e g i s t e r ( l o c a t i o n 1 )

B A S I C :M o n i t o r :

p o k e 1 , 5 30 0 0 1 3

C 6 Z e r o P a g e V i e w

O t h e P E T s , g o o d w a t o g e t l o o k a w h a t ' s g o i n g o i z e r o p a g ew a t r u a i n t e r r u p t - d r i v e n r o u t i n e w h i c h w o u l d c o n t i n o u s l yd i s p l a y t h c o n t e n t s o z e r o p a g e o t h s c r e e n . W e l l , o t h 6 4 t h e r e ' s a e a s i e r w a y :

p o k e 5 3 2 7 2 , 7 ( , 2 3 t o g e b a c k t n o r m a l )

T h i s t e l l s t h V I C — I I v i d e o c h i p t f i n d s c r e e n m e m o r y a $ 0 0 0 0 , g i v i n gy o d y n a m i c v i e w o w h a t ' s g o i n g o t h e r e . I y o u h a v e V R O M s ,y o u ' l l h a v e t f i l l c o l o u r m e m o r y w i t h s o m e t h i n g o t h e r t h a n b a c kg r o u n d c o l o u r t s e i t o u s t h R O c h a n g e m e t h o d b e l o w .

C 6 4 V 2 R O C o l o u r M e m o r y F i

I y o h a v e C 6 4 , t r t h i s : c l e a r t h e s c r e e n , m o v e t h c u r s o r d o w nl i n e o r t w o , t h e n t y p e :

p o k e 1 0 2 4 , 0

I y o s e a ' @ o t h e t o p l e f t o t h s c r e e n , t h e n y o u h a v e R O v e r s i o n s o 3 C o n s i d e r y o u r s e l f l u c k y ; y o c a f r e e l y P O K E t s c r e e n m e m o r y a n s e e t h e r e s u l t s o f y o u r e f f o r t s . I y o d o n ' t s e t h

N o w , a $ E 4 D A , t h e r e i t h i n s t r u c t i o n :

C h a n g e t h i s t o l i k e t h i s :

L D A $ D 0 2 1L D $ 0 2 8 6e 4 d b 8 6 0 2

( $ 0 2 8 6 h o l d s t h c u r r e n t c u r s o r c o l o u r )

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

N o t h a t y o h a v e a l o y o u r 6 o p e r a t i n g f r o m R A M , a n y t h i n gc a n b e c h a n g e d . T h s p e l l i n g o k e y w o r d s a n e r r o r m e s s a g e sa r e f u n t m o d i f y , b u t m o r e i m p o r t a n t l y t h e R O r o u t i n e s c a n b ea l t e r e d . J M i n s t r u c t i o n s c a n b e r e - r o u t e d o e n t i r e r o u t i n e s c a b s u b s t i t u t e d . M o s t c o m m o n i t h " B R K i n s t r u c t i o n i n s e r t " f o e x a m i n i n g t h s t a t e o t h m a c h i n e a a n p a r t i c u l a r p o i n t i r o u t i n e . W i t h y o u r f a v o u r i t e d i s s a s s e m b l e r y o s i m p l y c h a n g e t h f i r s t i n s t r u c t i o n b e y o n d t h l a s t i n s t r u c t i o n y o w a n t e x e c u t e d t B R ( $ 0 0 ) . N o w h e n y o u c a u s e t h a t p a r t i c u l a r s t r e t c h o c o d e t e x e c u t e i w i l l s t o p a t h B R a n y o u c a n p e e r a r o u n d a w h i l e .

T h T r a n s a c t o r V o l u m e 5 I s s u e 0

Page 7: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 7/84

L o g i c a l l y y o s h o u l d b a b l e t r e p l a c e t h e B R w i t h t h i n s t r u ct i o n y o u w i p e d o u a n c o n t i n u e e x e c u t i n g . S o m e r o u t i n e s w i l la l l o w s u c h i n t e r r u p t i o n s b u o t h e r s a r e n ' t s t o l e r a n t . M o s t l i k e l yy o u ' l l n e e d t r e p l a c e t h B R a n s t a r t o v e r ( p e r h a p s w i t h B R s o m e w h e r e e l s e ? ) .

S Y S c r e e c h i n g O f I n t o O b l i v i o n

O a n B A S I C 4 . m a c h i n e , y o c a e a s i l y e n t e r t h e m o n i t o r w i t hS Y S 4 , r i g h t ? W e l l , t r i w i t h q u o t e a f t e r t h e 4 l i k e :

S Y 4

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

D i s a b l i n g R E S T O R E o c 6

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

p o k e 7 9 2 , 1 9 ( , 7 1 g e t s b a c k t n o r m a l )

T h d i s a b l e P O K E p r e t t y m u c h r e n d e r s t h N M r o u t i n e i m p o t e n t , s R S - 2 3 2 o p e r a t i o n s w o n ' t w o r k w h i l e i t ' s i e f f e c t .

Q u i c k N o t e : 2 5 5 - x = 2 5 6 n o t ( x )

F a s t H i - R e s S c r e e n C l e a r F r o m B A S I C

L a s t i s s u e ' s B i t ' s P i e c e s g a v e l i t t l e m a c h i n e l a n g u a g e r o u t i n e t q u i c k l y c l e a r b i t - m a p p e d m e m o r y . S i n c e t h e n N i c k S u l l i v a n f r o mT P U G m a g a z i n e s h o w e d u t h i s n e a t t r i c k t a c c o m p l i s h t h s a m et h i n g f r o m B A S I C . I y o c r e a t e a l a r g e a r r a y a n t h e n C L i t B A S I Cw i l l z e r o o u t a n y t h i n g i i t p a t h , i n c l u d i n g h i - r e s s c r e e n m e m o r y i i h a p p e n s t b i t h w a y . I y o h a v e h i - r e s s c r e e n w i t h i n t h l i m i t so B A S I C v a r i a b l e s p a c e , j u s t p u t h i s l i n e a t h b e g i n n i n g o y o u rp r o g r a m :

c l r : f r e ( O ) : d i m a ( ( - 6 5 5 3 6 * ( f < 0 ) ) c l

T h a t ' s i t W i t h i n s e c o n d , t h s c r e e n w i l l c l e a r . Y o c a n ' t u s t h i s t r i c ki y o u r s c r e e n m e m o r y i a $ C 0 0 0 , b u a t h u s u a l s p o t a $ 2 0 0 0 , a n w i t h B A S I C p o i n t e r s s e u n o r m a l l y , i w o r k s l i k e c h a r m .

I S e a r c h o f . . . T h p e r f e c t c o l o u r c o m b i n a t i o n

P u M e n t a l N o t e s o D i s k ( o t a p e ) !

E v e r c o m p o s e y o u r t h o u g h t s i d l y o t h e s c r e e n o y o u r c o m p u t e r ? O d r a w n e a t p i c t u r e u s i n g g r a p h i c s s y m b o l s w h i l e i d l y t a l k i n g o t h p h o n e ? W a n t t s a v e t h e s c r e e n t d i s k o r t a p e t b r i n g i i a g a i nl a t e r ? E n o u g h q u e s t i o n s , h e r e ' s w h a t t d o L a s t i s s u e ' s B i t s P i e c e sg a v e m e t h o d t s a v e r a n g e o m e m o r y . T s a v e t h e s c r e e n ( a $ 0 4 0 0 o t h e C 6 4 ) :

s y s 5 7 8 1 2 " f i l e n a m e " , 8 : p o k e 1 9 3 , 0 : p o k e 1 9 4 , 4 :p o k e i 7 4 , 2 3 1 : p o k e 1 7 5 , 7 : s y s 6 2 9 5 4

( u s e ' , 1 , 1 ' f o t a p e )

O f . c o u r s e , t h a t ' l l m e s s u p b i o t h e s c r e e n : t h a t ' s t h c a t c h . T b r i n gb a c k y o u r s c r e e n , j u s t L O A D i a n t i m e w i t h :

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

W i t h B A S I C 4 . m a c h i n e , j u s t u s t h m o n i t o r t s a v e t h e s c r e e n :

s y s 4s f i l e n a m e " , 0 8 , 8 0 0 0 , 8 3 e 7( , 8 0 0 0 , 8 7 c f f o 8 c o l u m n m a c h i n e s )

U n f o r t u n a t e l y y o c a n ' t s a v e m e m o r y a b o v e $ 8 0 0 0 t t a p e . P a r d o nm e . . . y o c a n s a v e i t o t a p e , y o j u s t c a n ' t L O A D i b a c k . C o m m od o r e n e v e r e x p e c t e d a n y o n e t r e q u i r e m e m o r y a b o v e $ 8 0 0 0 t b s a v e d s t h e y u s e d t h h i g h b i o t h a d d r e s s f o s o m e t h i n g e l s e . I t h V I o 6 t h i s a n o m o l y h a b e e n d e a l t w i t h a n d w h a t e v e r t h a t b i d o e s i n o s e p e r a t e d i n t o i t o w b y t e .

A s s e m b l e r P r o g r a m m i n g T i

B r a n c h i n s t r u c t i o n s l i k e B N E , B E Q , B P L , e t c . c a n b e a p a i n w h e n y o u rp r o g r a m g r o w s a n t h b r a n c h c a n ' t r e a c h t h i n t e n d e d d e s t i n a t i o na n m o r e t h a s s e m b l e r g i v e s a B R A N C H O U O F R A N G E " e r r o r .Y o c a g e a r o u n d t h i s p r o b l e m b y b r a n c h i n g t J M s o m e w h e r e ,b u f o a s h o r t e a s y w a t d l o n g b r a n c h e s , c o n s i d e r t h i s :

i n t e n d e d b r a n c h B N S O M P L Ce a s y l o n g b r a n c h : B E + 5 J M S O M P L C

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

O n L i n e D e c i m a l t B i n a r y C o n v e r s i o n

L o o k i n g f o t h p e r f e c t b a c k g r o u n d / b o r d e r / c h a r a c t e r c o l o u r s f o S t o r e t h e v a l u e ( 0 - 2 5 5 ) t b c o n v e r t e d i ' x ' , t h e n :p r o g r a m m i n g o t h C 6 w i t h 1 7 0 1 / 1 7 0 2 m o n i t o r ? T r y t h i s :

z " : f o r j 0 t o 7 : k x / 2 : x i n t ( k )p o k e 5 3 2 8 1 , 0 : p o k e 5 3 2 8 0 , 1 1 ( p r e s s C o m m o d o r e - 2 ) : z m i d $ ( s t r $ ( k < > x ) , 2 ) z $ : n e x t j : p r i n t z $

F o t h V I C :p o k e 3 6 8 7 9 , 9 ( p r e s s C T R L - 8 ) T h B l e e p e r

A d j u s t i n g t h e b r i g h t / c o n t r a s t c o n t r o l s t l o o k g o o d w i t h t h i s c o m b i n a - T h i s l i t t l e n o i s e m a k e r r u n s o a n P E w i t h C B s o u n d :t i o n r e s u l t s i n a e a s y - t o - l o o k - a t s c r e e n f o h o u r s o p r o g r a m m i n gw i t h o u t f r i e d r e t i n a s . 1 0 p o k e 5 9 4 6 7 , 1 6 : f o r a t o 2 5 5 : p o k e 5 9 4 6 6 , a

: f o r b = 1 t o 2 5 5 s t e p a : p o k e 5 9 4 6 4 , b : n e x t b , aQ u i c k N o t e : I p r o c e s s i n g t i m e i c r i t i c a l , y o c a n s p e e d u 2 p r i n t c h r $ ( 7 )t h C P b t u r n i n g o f t h V I C - I I v i d e o c h i p i t h c 6 4 : p o k e5 3 2 6 5 , p e e k ( 5 3 2 6 5 ) a n 2 3 9 .

T h T r a n s a c t o r V o l u m e 5 I s s u e 0

Page 8: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 8/84

4 C o l u m n W o r d p r o D u m p

H e r e ' s s m a l l p r o g r a m t h a t w i l l p r i n t o u W o r d p r o - f o r m a t t e x t f i l e t t h s c r e e n . I w i l l w o r k w i t h P a p e r c l i p , b u t t h e r e w i l l b f e b y t e s o g a r b a g e p r i n t e d a t h b e g i n n i n g a P a p e r c l i p s t o r e s e x t r a i n f o r m a t i o na t h s t a r t o i t f i l e s .

1 r e m * p r i n t w o r d p r o f i l e t s c r e e n2 r e m * 4 0 c o l u m n v e r s i o n f o 4 0 3 2 / c 6 41 0 i n p u t " f i l e n a m e " ; f 1 1 0 o p e n 1 , 8 , 0 , " 0 : " + f 1 2 0 b 1 9 8 41 3 r e = 3 3 7 2 8 f o 4 0 3 21 5 c p e e k ( 6 4 6 ) : 5 4 2 7 2 : r e m * o n l y f o 6 1 6 p r i n t " f 1 6 r e m 2 5 c u r s o r d o w n s1 7 0 g e t # 1 , a $ , a $1 7 r e m - m a i n l o o p -1 8 f o t 3 1 9 g e t # 1 , a $ : p o k e i , a s c ( a $ c h r $ ( 0 ) )2 1 0 p o k e i , c c : r e m * o n l y f o 6 2 2 i s t h e n 2 5 2 3 n e x t i : p r i n t : g o t o i 8 2 4 0 :2 5 c l o s e i : e n d

q q q q q q q q q q q

R e g a i n L e n a r d P a i n c h a u d

r e m * r e s t o r e p g a f t e r r e s e t o r n e 1 0 a d 4 9 1 5 2 : f o r i 0 t o 2 12 0 r e a d d : p o k e a d i , d : n e x t i3 d a t a 1 6 9 , 8 , 1 4 1 , 2 , 8 , 3 2 , 5 1 , 1 6 5 , 2 44 d a t a 1 6 5 , 3 4 , 1 0 5 , 2 , 1 3 3 , 4 5 , 1 6 5 , 3 b5 d a t a 1 0 5 , 0 , 1 3 3 , 4 6 , 9 66 p r i n t " t e x e c u t e t h i s p r o g r a m , u s e : "7 p r i n t " s y s " ; a d ; " : c l r "

L e n a r d w r i t e s : I c o m e s i h a n d y w h e n p r o g r a m c r a s h e s a n d y o uc a n ' t g e y o u r c u r s o r b a c k . B e f o r e y o c a n u s e t h i s p r o g r a m , h o w e v e r ,y o n e e d r e s e t s w i t c h . W h e n y o t u r n o y o u r c o m p u t e r , l o a d a n r u t h r e g a i n p r o g r a m . N o w , w h e n t h c o m p u t e r c r a s h e s , p r e s s t h r e s e t s w i t c h . T h a t d o e s n ' t d t h t r i c k t h o u g h . Y o t h e n h a v e t t y p es y 4 9 1 5 2 . N o y o w i l l h a v e y o u r p r o g r a m b a c k . Y o c a c h a n g e t h m e m o r y l o c a t i o n w h e r e t h M p r o g r a m i s t o r e d b y c h a n g i n g t h v a l u e o A i l i n e 1 0 . "

N o t e : T r e s e t y o u r c o m p u t e r , y o u h a v e t m o m e n t a r i l y g r o u n d p i n so t h u s e r p o r t p i i g r o u n d . C o n n e c t i n g p u s h b u t t o n a c r o s sp i n s a n m a k e s g o o d r e s e t s w i t c h I c a n s a v e y o u r p r o g r a m ' sl i f e ! T h a b o v e p r o g r a m w i l l a l s o b r i n g b a c k p r o g r a m a f t e r N E W .

W a r m S t a r t B o r d e r F l a s h e r N i c k B a r r o w m a nS t J o h n ' s , N F L D .

N i c k w r i t e s : T h i s s m a l l r o u t i n e d o e s n ' t s e r v e a n p r a c t i c a l p u r p o s eb u i i a e x a m p l e o h o y o c a u s t h m a i n b a s i c p r o g r a m l o o pv e c t o r i t h C 6 4 ( w a r m s t a r t l i n k a $ 0 3 0 2 ) . m o r e p r a c t i c a l p u r p o s ei a u t o - r u n r o u t i n e s . T h i s r o u t i n e w i l l c h a n g e t h c o l o u r o t h s c r e e nb o r d e r w h e n e v e r < r e t u r n > i p r e s s e d ( f r o m B A S I C ) o w h e n b r e a ko r r e s t o r e i p e r f o r m e d . H o p e y o l i k e i t ! "

1 f o r a 4 9 1 5 2 t o 4 9 1 6 9 : r e a d b : p o k e a , b : b n e x t a2 i f c < > 1 7 7 9 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 p3 0 s y s 4 9 1 5 24 p r i n t " b a s i c w a r m s t a r t f l a s h e r a c t i v a t e d "5 d a t a 1 6 9 , 1 1 , 1 4 1 , 2 , 3 , 1 6 9 , 1 9 2 , 1 4 1 , 36 d a t a 3 , 9 6 , 2 3 8 , 3 2 , 2 0 8 , 7 6 , 1 3 1 , 1 6 4 , 0

D o u b l e W i d t h D i s k D i r e c t o r y P r i n t o u t B r i a n D o b b s

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

1 0 0 r e m * * d i r e c t o r y d o u b l e w i d t h * 1 1 0 r e m * * b y b r i a n d o b b s * 1 2 0 r e m * * t i m m i n s , O n t a r i o * 1 3 4 r e m * f o s c r e e n , f o p r i n t e r1 3 r = 1 : o p e n k , 1 4 0 d r 0 r e m * d i r e c t o r y d r i v e z e r o1 5 g o s u b 2 2 0 : r e m * d i r e c t o r y s u b r o u t i n e1 6 0 c l o s e 31 7 i n p u t " a n o t h e r ( y / n ) " ; a n $1 8 0 i f a n $ O " y " t h e n e n 1 9 p r i n t " i n s e r t a n o t h e r d i s k , p r e s s a n k e y "2 0 0 g e t a $ : i f a $ < > " " t h e n 2 0 02 1 0 g o t o 1 3 02 2 n c h r $ ( O ) : h 2 5 6 : o p e n 1 , 8 , 0 , " $ m i d $ ( s t r $ ( d r ) , 2 )2 3 0 g e t # 1 , a $ , a $2 4 g e t # 1 , a $ , a $ , a $ , a 1 $ i s t h e n 2 9 2 5 a s c ( a $ n $ a s c ( a 1 n $ ) * h : p r i n t # k , d ;2 6 0 g e t # 1 , a $ : i f a $ < > " " t h e n p r i n t # k , a $ ; : g o t o 2 6 02 7 + 1 : i f r 2 t h e n r O : p r i n t # k : g o t o 2 4 02 8 0 d $ s t r $ ( d ) : p r i n t # k , t a b ( 4 0 ) ; : g o t o 2 4 02 9 c l o s e i3 0 r e t u r n

C 6 E a s y D i s k S t a t u s J o h n C u r r i e , M i s s i s s a u g a O n t .

T h i s t i d y l i t t l e r o u t i n e s i t s i t h c a s s e t t e b u f f e r a 8 2 8 , a n w i l l d i s p l a yt h c u r r e n t d i s k e r r o r s t a t u s w h e n e x e c u t e d . I t ' s v e r y h a n d y , s i n c e t h eC 6 h a n b u i l t - i n d i s k s t a t u s f u n c t i o n .

1 0 0 r e m b a s i c l o a d e r f o d i s k s t a t u s1 1 8 2 1 2 r e a d b : b : i f 2 5 6 t h e n 1 4 01 3 0 p o k e a , b : a = a + 1 : g o t o 1 2 01 4 i c < > 8 5 7 4 t h e n p r i n t " e r r o r i d a t a s t a t e e m e n t s " : e n 1 5 p r i n t " ' s y s 8 2 8 ' r e t u r n s t h e c u r r e n t d i s k s t a t u s "1 6 d a t a 1 6 9 , 0 3 2 , 1 8 9 , 2 5 5 , 1 6 9 , 1 5 , 1 6 21 7 d a t a 8 , 1 6 0 , 1 5 3 2 , 1 8 6 , 2 5 5 , 3 2 , 1 9 21 8 d a t a 2 5 5 ,1 9 d a t a 1 4 1 ,2 0 d a t a 3 2 1 d a t a 1 3

1 6 2 ,1 9

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

1 5 3

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

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

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

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

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

0 , 2 5 6

T h T r a n s a c t o r V o l u m e 5 I s s u e 0

Page 9: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 9/84

B o u n c e 8 0 3 2

H e r e ' s a n o t h e r o n o t h o s e u s e l e s s l i t t l e s p e c i a l e f f e c t s . F o s o m er e a s o n t h o u g h , t h i s o n c a h o l d y o u r a t t e n t i o n f o h o u r s ( w e l l ,m i n u t e s m a y b e ) . I o n l y r u n s o 8 0 3 2 ' s , s i n c e i u s e s t h e s c r o l l d o w nf e a t u r e u n i q u e t t h a t m a c h i n e .

s 3 2 7 6 8 : f o r j 0 t o 1 s t e p O : s 1 5 3 - 1 2 8 * k : k - 1 f o r i 1 t o r n d ( 1 ) * 1 5 : p r i n t c h r $ ( s ) ;

: p o k e s p r n d ( 1 ) * 1 0 0 0 , 4 6 : n e x t i . j

F i l e n a m e E x t e n s i o n s W i t h S H I F T e d S P A C E

F i l e n a m e e x t e n s i o n s s u c h a , S E Q , . A S M , . O B J , e t c . a r e u s e f u l t i n d i c a t e f i l e t y p e s , b u s o m e p r o g r a m m e r s p r e f e r t u s s h i f t e d s p a c ei n s t e a d o p e r i o d i t h f i l e n a m e . S u c h f i l e w i l l b l i s t e d i t h d i r e c t o r y w i t h t h e x t e n s i o n O U T S I D E t h q u o t e s a r o u n d t h f l e n a m e . T l o a d t h e f i l e b a c k i n y o c a s p e c i f y t h f i l e n a m e w i t h o u tt h e x t e n s i o n , o r s p e c i f y t h e n t i r e f i l e n a m e ( i n c l u d i n g t h e s h i f t e ds p a c e ) i g r e a t e r u n i q u e n e s s i r e q u i r e d . Y o c a a l s o u s t h i s m e t h o dt m a k e n o t e s " a b o u t f i l e t h n o t e w i l l s h o w u i t h e d i r e c t o r yb u n e e d n o b e n t e r e d t l o a d t h e f i l e i n

E a s y S c r e e n P r i n t

p o w e r f u l a n l i t t l e - u s e d f e a t u r e o C o m m o d o r e B A S I C i t h a b i l i t yt u s s c r e e n f i l e f o I N P U T . I y o o p e n s c r e e n f i l e a n t h e n G E o I N P U T f r o m t h a t f i l e , y o w i l l r e a d c h a r a c t e r s d i r e c t l y f r o m t h s c r e e n s t a r t i n g a t h e c u r s o r p o s i t i o n , a n d a d v a n c e t h e c u r s o r t t h n e x t c h a r a c t e r o I N P U T f i e l d .

T h e r e a r a l k i n d s o u s e s f o s c r e e n i n p u t , b u g o o d a p p l i c a t i o n i t c o n v e r t s c r e e n m e m o r y c h a r a c t e r c o d e s t t h e i r C B A S C I I e q u i v al e n t s . S u c h c o n v e r s i o n s a r n e c e s s a r y w h e n p r i n t i n g a l t e x t o t h s c r e e n t p r i n t e r . T h f o l l o w i n g l i n e o f c o d e w i l l d u m p a 8 0 3 2 ' ss c r e e n t C o m m o d o r e p r i n t e r w i t h a n 8 0 c o l u m n m a r g i n w i d t h .

o p e n 3 , 3 : o p e n 4 , 4 : p r i n t " § ; : f o r i t o 8 0 : g e t # 3 , a $: p r i n t # 4 , a $ ; : n e x t : c l o s e 3 : c l o s e 4

F o r 4 0 c o l u m n m a c h i n e s o a p r i n t e r s e f o c o l u m n w i d t h s g r e a t e rt h a n 8 0 u s t h i s v e r s i o n i p r i n t s c a r r i a g e r e t u r n e v e r y 4 c h a r a c t e r s :

o p e n 3 , 3 : o p e n 4 , 4 : p r i n t c h r $ ( 1 9 ) ; : f o r i 1 t o 2 42 f o r j = 1 t o 4 0 : g e t # 3 , a $ : p r i n t # 4 , a $ ; : n e x t j : p r i n t # 4 , "c l o s e 3 : c l o s e 4

: n e x t

P h o n e S p e l l e r

S o m e t e l e p h o n e n u m b e r s a r m o s t e a s i l y r e m e m b e r e d b t h l e t t e r so t h d i a l . F o r e x a m p l e , y o c a g e i n f o r m a t i o n o 1 9 8 5 V o l k sw a g e n s b c a l l i n g 1 - 8 0 0 - 8 5 - V O L K S . W o u l d n ' t i b n i c e t g i v e y o u rf r i e n d s s i m i l a r l y c a t c h y w a t r e m e m b e r y o u r n u m b e r ? T h f o l l o w i n g p r o g r a m ( i w o r k s o a n m a c h i n e ) g i v e s a l l e t t e r c o m b i n at i o n s f r o m a n p h o n e n u m b e r ( z e r o a n o n e h a v e n o a s s o c i a t e dl e t t e r s , s o a p p e a r s ) . T h e r e a r 2 , 1 8 7 c o m b i n a t i o n s f o d i g i tn u m b e r , s b p r e p a r e d f o a l o n g l i s t . A n e v e n i t h e r e a r e n p r o n o u n c e a b l e w o r d s i t h l i s t , y o c a i n v e n t a c r o n y m n s . W h a tb e t t e r w a t s p e n d a a f t e r n o o n t h a n t f i n d p h r a s e s t f i 2 , 1 8 7a c r o n y m s ?

1 0 0 r e m * p h o n e s p e l l e r1 1 r e m * d e c 8 4 / c z1 2 0 :1 3 o p e n i , : r e m 1 , f o p r i n t e r1 4 l 0 0 0 1 1 1 a b c d e f g h i j k l m n o p r s t u v w x y "1 5 0 :1 6 i n p u t " p h o n e n u m b e r " ; p n $1 7 l e n ( p n $ )1 8 0 d i m p ( n ) , n $ ( n )1 9 0 :2 0 f o t 2 1 0 n $ ( i ) m i d $ ( l $ , v a l ( m i d $ ( p n $ , i , 1 ) ) * 3 , 3 ) : p ( i )2 2 n e x t2 3 r e m * n $ h o l d s l e t t e r g r o u p s f o e a c h d i g i t i n u m b e r2 4 0 :2 5 f o t 3 t 2 6 0 p r i n t # 1 , i ,2 7 0 f o r c = t o n : p r i n t # 1 , m i d $ ( n $ ( c ) , p ( c ) , 1 ) ; : n e x t c

p r i n t # 1 , c h r $ ( 1 3 ) ;2 8 c a r r y = 2 9 f o t 3 0 p ( j ) ( p ( j ) c a r r y ) : c a r r y3 1 i p ( j ) > 3 t h e n c a r r y : p ( j )3 2 n e x t j ,

A s s e m b l e r P r o g r a m m i n g T i *

I y o u ' v e e v e r l o o k e d t h r o u g h s o m e o n e ' s m a c h i n e l a n g u a g e p r o g r a ma n c o m e a c r o s s s e e m i n g l y u s e l e s s B I i n s t r u c t i o n ( e g . B I $ F F A 2 ) ,o a i n e x p l i c a b l e . B Y T E $ 2 C , t h e r e i m e t h o d t o h i s m a d n e s s .

T h B I i n s t r u c t i o n d o e s n ' t d a n h a r m t m e m o r y o C P r e g i s t e r s ,i j u s t s e t s t h z e r o , m i n u s , a n o v e r f l o w f l a g s b a s e d o t h c o n t e n t s o t h g i v e n m e m o r y l o c a t i o n . I s o m e i n s t a n c e s , B I i u s e d a l m o s t l i k e

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

E N T R Y 1 . B Y T E S 2 CE N T R Y 2 L D X # $ F F

I p r o g r a m w e r e t e x e c u t e t h c o d e s t a r t i n g a E N T R Y 1 , t h C P w o u l d s e e a $ 2 w h i c h i B I i n s t r u c t i o n , a n i n t e r p r e t t h e n e x t t w b y t e s ( t h e L D i n s t r u c t i o n ) a s t h e a r g u m e n t f o t h B I i n t h i s c a s e ,t h C P w o u l d s e e :

B I T S F F A 2

I t h $ 2 C w a s s k i p p e d o v e r a n i n s t r u c t i o n s w e r e e x e c u t e d f r o mE N T R Y 2 , t h C P s e e s t h e b y t e s $ A 2 , $ F F a n d i n t e r p r e t s t h L D * $ F F i n s t r u c t i o n n o r m a l l y .

U s i n g t h a b o v e t e c h n i q u e a l l o w s y o t e n t e r a r o u t i n e w i t h t h r e g i s t e r i n t a c t , a n l a t e r e n t e r t h e r o u t i n e o n b y t e p a s t t h e s t a r t a n h a v e t h r e g i s t e r c h a n g e d t s o m e t h i n g e l s e b e f o r e t h r o u t i n e d o e s i t t h i n g . O c o u r s e , a n r e g i s t e r m a b e u s e d i n s t e a d , o r a n o b y t eo p c o d e c a n b e e x e c u t e d a f t e r t h $ 2 C .

T h t e c h n i q u e i e x p l a i n e d h e r e i c a s e y o c o m e a c r o s s i i s o m e o n e e l s e ' s p r o g r a m , s i n c e i t ' s f a i r l y w i d e l y u s e d a n a c c e p t e d6 5 0 2 p r o g r a m i n g p r a c t i c e . G e n e r a l l y t h o u g h , p r o g r a m m e r s w h u s t r i c k s l i k e t h i s e n j o y w r i t i n g o b s c u r e c o d e t s a v e b y t e o t w o

T h T r a n s a c t o r V o l u m e 5 I s s u e 0

Page 10: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 10/84

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

1 5 4 1 / 4 0 4 0 W r i t e I n c o m p a t i b i l i t y B u

W h e n t h 1 5 4 1 s i n g l e d i s k d r i v e a r r i v e d , s d i d a n e b u z z w o r d :" w r i t e - c o m p a t i b l e " . A f i r s t i s e e m e d t h a t d i s k e t t e s w e r e c o m p l e t e l yp o r t a b l e b e t w e e n 4 0 4 0 a n d 1 5 4 1 d r i v e s . T h e n r e p o r t s o s o m e n a s t yd i s k f a i l u r e s s t a r t e d c i r c u l a t i n g . H e r e ' s w h y .

E v e r y s e c t o r o d i s k s t a r t s w i t h " s y n c h r o n i z i n g c h a r a c t e r " ,H e a d e r b l o c k , a n o t h e r s y n c c h a r a c t e r , a n t h e n t h d a t a s t o r e d i n t h a ts e c t o r . " P h y s i c a l l y " i l o o k s s o m e t h i n g l i k e :

4 0 4 0 :1 5 4 1 :

( . . . . s y n c H H H e a d e r D D D a t a )

H H H H H D D D D D D D D D D D D D DH H H H H . . . D D D D D D D D D D D D D D

N o t i c e h o t h s e c o n d s y n c o 1 5 4 1 d i s k i s h o r t e r t h a n o t h 4 0 4 0 . N o y o t a k e 4 0 4 0 d i s k a n w r i t e o i w i t h a 1 5 4 1 . I b e c o m e s :

H H H H H . . . d d d d d d d d d d d d d d d d d d

B u t h a t ' s O t h 1 5 4 1 a n t h 4 0 4 0 c a s t i l l c o p e . T h e r e i s t i l le n o u g h o t h s y n c a n t h d a t a b l o c k i s s t i l l t h s a m e " l e n g t h " .H o w e v e r , g b a c k t t h 4 0 4 0 a n w r i t e t t h s a m e s e c t o r a n d :

H H H H H . . . d d d D D D D D D D D D D D D D D

B l a m m o ! T h d a t a b l o c k s t a r t s w i t h r e s i d u e d a t a f r o m t h 1 5 4 1 w r i t et t h s e c o n d s y n c c h a r a c t e r . T h d a t a b l o c k i n o " t o o l o n g " a n t h d i s k r e t u r n s R e a d E r r o r 2 3 C h e c k s u m E r r o r i D a t a B l o c k

A p p a r e n t l y n e 1 5 4 1 ' ( a s o f J u l y 8 4 ) h a v e b e e n m o d i f i e d t a l l o ww r i t e c o m p a t i b i l i t y b e t w e e n a l 1 5 4 1 a n d 4 0 4 0 d i s k e t t e s .

A u t o K e y w o r d s F o T h V I C , C 6 4 , P E T , a n C B T o d a y w h a v e t h c o n t e n d e r f o t h e ' t w o l i n e r ' o t h y e a r c o n t e s t .T h i s m a c h i n e l a n g u a g e m o n s t e r c o n s u m e s l e s s t h a n t h e q u i v a l e n t o t w l i n e s o f B A S I C . I s i t s i t h c a s s e t t e b u f f e r a n w i l l r e c o n f i g u r ee v e r y ( s h i f t e d ) l e t t e r o y o u r k e y w o r d t p r o d u c e k e y w o r d . I t ' s I R d r i v e n , b u r e t a i n s t h o l I R t j u m p t h r o u g h a t h e n d , s i I R d r i v e n c o d e i a l r e a d y i n s t a l l e d , t h i s p r o g r a m w o n ' t b o t h e r i t T h c o d e a l s o o p e r a t e s i d i r e c t m o d e o n l y , w h i c h m o s t c a a p p r e c i a t e i I N P U T s t a t e m e n t s a r u s e d i y o u r p r o g r a m . A n d , i f i t c o m e s d o w n t i t t h \ " k e y o t h P E T / C B M o r t h e ( s h i f t e d ) p o u n d s y m b o l o t h C 6 4 / V I C w i l l r e s e t t h o r i g i n a l I R Q a n d k i l l t h r o u t i n e .

N o w , c o n s i d e r i n g t h a t t h e r e a r e o n l y 2 l e t t e r s o t h k e y b o a r d , h o a r a l t h k e y w o r d s a c c e s s e d ? W i t h t h V I C a n d C 6 4 w h a v e 7 k e y w o r d s i t o t a l , a n w i t h t h P E T / C B M m o d e l s w i t h B A S I C 4 . w h a v e 9 1 T b a t t l e t h i s p r o b l e m , m e m o r y l o c a t i o n w i t h i n t h e r o u t i n ec a n b e a l t e r e d t s u p p l y y o w i t h e v e r y k e y w o r d . T h i s l o c a t i o nd e f i n e s a " w i n d o w " o v e r t h e t o t a l s e t o f k e y w o r d s . Y o c a n ' t g e a c c e s st a l t h k e y w o r d s s i m u l t a n e o u s l y , b u t y o c a m o v e t h 2 k e y w o r d

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

A s h o w n , t h p r o g r a m w i l l g i v e y o t h f i r s t 2 6 k e y w o r d s . S i n c e t h f i r s t k e y w o r d i " E N D " , s h i f t e d - A w i l l p r i n t " E N D " . V a r y l o c a t i o n6 8 3 f r o m 1 2 t 1 9 f o t h P E T / C B M , o r l o c a t i o n 8 8 f r o m 1 4 t 1 9 f o t h V I a n C 6 4 . L o w e r v a l u e s w i l l m o v e t h w i n d o w o v e r t h e r r o r m e s s a g e s .

N o t e F o P E T / C B M U s e r s : R e s e t I R b e f o r e L O A D i n g f r o m d i s k , t h e ns y s ( 6 3 4 ) t o s t a r t a g a i n . T h C 6 a n V I d n o h a v e t h i s b u g , b u t t h P E T s s u r e d o T h m a c h i n e w i l l h a n g u n t i l t h S T O P k e i p r e s s e d i a n y I R Q d r i v e n w o n d e r i p r e s e n t d u r i n g L O A D .

1 r e s a v e " 0 : k e y w o r d p e t . b a s " , 1 0 r e * * r t e / 8 4 - a u t o k e y w o r d f o t h p e t / c b m1 1 f o = 6 3 4 t 7 7 4 : r e a d x p o k e j , x : c c x n e x t1 2 i c h < > 1 7 7 5 8 t h e n p r i n t " c h e c k s u m e r r o r " : e n 1 3 p r i n t " s y s ( 6 3 4 ) : r e * t e n a b l e " : e n 1 4 d a t a 1 6 5 , 1 4 5 , 2 0 1 , 2 , 2 4 0 , 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 81 0 r e * r t e / 8 4 - a u t o k e y w o r d f o t h c o m m o d o r e 6 1 1 f o 8 2 t 9 7 0 : r e a d x p o k e j , x : c h c x n e x t1 2 i c h < > 1 7 1 6 2 t h e n p r i n t " c h e c k s u m e r r o r " : e n 1 3 p r i n t " s y s ( 8 2 8 ) : r e * t e n a b l e " : e n 1 4 d a t a 1 7 3 , 2 1 3 , 2 0 1 , 3 , 2 4 0 , 2 4 , 1 7 31 5 0 d a t a 2 0 3 , 1 4 1 , 2 0 1 , 3 , 1 7 3 , 2 1 1 6 d a t a 1 4 1 , 2 0 2 , 3 , 1 2 0 , 1 6 9 , 9 2 , 1 4 1 , 2 1 7 d a t a 3 , 1 6 9 , 3 , 1 4 1 , 2 1 3 8 8 9 1 8 d a t a 1 6 5 , 5 8 , 2 0 1 , 2 5 5 , 2 0 8 , 8 5 , 1 6 5 , 2 1 51 9 d a t a 2 0 1 , 1 6 9 , 2 4 0 , 8 2 , 2 0 1 , 1 9 3 , 4 8 7 2 0 d a t a 2 0 1 , 2 1 9 , 1 6 7 1 5 6 , 2 3 3 , 1 9 3 , 1 7 02 1 d a t a 1 6 9 , 2 0 3 2 , 2 1 0 , 2 5 5 , 1 6 9 , 1 5 8 , 1 3 32 2 d a t a 8 7 , 1 6 9 , 1 6 0 , 1 3 3 , 8 8 1 6 0 , 0 1 3 2 3 d a t a 8 9 , 2 2 4 , 0 , 2 4 0 , 2 1 , 1 7 7 , 8 7 2 2 4 d a t a 4 2 , 1 7 6 , 8 2 0 0 , 2 0 8 , 2 4 7 , 2 3 0 , 8 2 5 d a t a 7 6 , 1 3 7 , 3 , 2 0 0 , 2 3 0 , 8 9 , 2 2 8 , 8 2 6 d a t a 2 0 8 , 2 3 5 , 1 7 7 , 8 7 , 1 3 3 , 9 0 , 3 6 , 9 2 7 d a t a 4 8 1 1 3 2 , 2 1 0 , 2 5 5 , 2 0 0 , 2 0 8 , 2 4 22 8 d a t a 2 3 0 , 8 8 7 6 , 1 5 8 , 3 5 6 , 2 3 3 , 1 2 82 9 d a t a 3 2 , 2 1 0 , 2 5 5 , 1 0 8 , 2 0 1 , 3 , 1 7 3 , 2 0 13 0 d a t a 3 , 1 4 1 , 2 0 3 , 1 7 3 , 2 0 2 , 3 , 1 4 13 1 d a t a 2 1 3 1 0 8 , 2 0 1 , 3 0

V I u s e r s n e e d o n l y m a k e o n c h a n g e . T h n u m b e r 1 6 i b o l db e c o m e s 1 9 ( A l s o a d 3 t t h c h e c k s u m j u s t f o c o m p l e t e n e s s )

T h T r a n s a c t o r V o l u m e s , I s s u e 0 6

Page 11: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 11/84

L e t t e r s

U p g r a d e s a n I n f o : 1 h a v e s e e n r e f e r e n c e s t D O 2 . f o t h 4 0 4 0 . H o d o e s t h i s d i f f e r f r o m o t h e r D O S ' s ? I n p a r t i c u l a r , i t h e r e a n p o i n t i m t a k i n g m o l 2 0 4 0 d r i v e w h i c h h a b e e n u p g r a d e d w i t hR O M s a n n e 6 5 3 0 t D O 2 a n b u r n i n g s e o R O M s ( o e v e np u r c h a s i n g t h e m , i t h e y e x i s t ) t o g i v e m a u p g r a d e d - a g a i n d i s kd r i v e ? F o i n s t a n c e , o n o t h t h i n g s t h a t d i s l i k e a b o u t m p r e s e n tD O i t h a t L O A D " f i l e n a m e " , s t a r t s b o t h d r i v e s g o i n g , a n w a i t su n t i l t h w r o n g d r i v e d o e s n ' t f i n d t h p r o g r a m b e f o r e i s e n d s o u t t h ep r o g r a m i d i f i n d o t h r i g h t d r i v e . S t h q u e s t i o n s a r e : I t h e r er e a l l y D O 2 . f o t h 4 0 4 0 ? I s o c a u p g r a d e ? W h a t ' s i n v o l v e d :n e w R O M s ? N e 6 5 3 0 ? M i n o r o m a j o r b o a r d s u r g e r y ? H o c a g e a n c h i p s o t h c o d e t b u r n m o w n ?

2 l o o p e o p l e l o c a l l y s e e m t b g e t t i n g t h e B - 1 2 8 p a c k a g e f r o mP r o t e c t o . a a l r e a d y g e t t i n g c a l l s a b o u t d k n o w t h i s o t h a t a b o u ti t h a v e h e a r d t h a t C o m m o d o r e , w h i l e n l o n g e r p r o d u c i n g B - l 2 8 ' s ,h a n o f i n i s h e d e i t h e r . D y o h a v e a n i d e a o w h a t m a b a v a i l a b l e a b o u t t h B - s e r i e s m a c h i n e s i o t h e r c o u n t r i e s , s a E n g l a n do G e r m a n y , o r c o n t a c t s f r o m w h o m c o u l d f i n d o u t ? w o u l d d e a r l yl i k e P R a n s c h e m a t i c s ; m G e r m a n a n S w e d i s h a r f l u e n te n o u g h s t h a t i n f o r m a t i o n i t h o s e l a n g u a g e s i p e r f e c t l y f i n e f o m e a n e v e n F r e n c h w o u l d b O i t h a b s e n c e o a n y t h i n g e l s e .

C h a r l e s M c C a r t h y , 1 3 5 9 W I d a h o A v e n u e , S t P a u l M 5 5 1 0 8

P r e t t y t e r r i f i c q u e s t i o n s , w i t h s o m e n o s t e r r i f i c a n s w e r s . F i r s t , t h D O q u e s t i o n .

A f a a w k n o w , D O 2 . i c u r r e n t l y a v a i l a b l e f o t h 8 2 5 0 a n 8 0 5 0 d i s k d r i v e s o n l y . T h e p r o b l e m w i t h t h D O g o i n g t t h e c u r r e n t l yu n u s e d o w r o n g d r i v e f i r s t i s s t i l l p r o b l e m . I e v e n s e e m s w o r s e w i t ht h 8 2 5 0 . I n s t e a d o f p o l i t e l y d e t e r m i n i n g t h a t a e m p t y d r i v e i n o i u s e , t h D O f i r e s c o u p l e o f B U M P s o n t o t h j o q u i ( w h a t s e e m s )

l a s t - d i t c h e f f o r t t a v o i d t h o c c u p i e d d r i v e . O n c e a l t h n o i s e a n v i b r a t i o n d i e s d o w n , i g o e s t t h e c o r r e c t d r i v e . O n c e t h i s r o u t i n e h a b e e n s u f f e r e d o n c e , t h D O i b r i g h t e n o u g h t r e a l i s e t h e r e i n d i s ki n s e r t e d , a n w o n ' t t r i a g a i n .

O n e m a j o r i m p r o v e m e n t w i t h D O 2 . m a k e s t h i s b e a r a b l e t h o u g hR e l a t i v e f i l e l e n g t h h a s b e e n e x t e n d e d t t h m a x i m u m c a p a c i t y o fd i s k e t t e ( 8 0 5 0 o 8 2 5 0 ) . T h o l l i m i t w a 1 8 0 K . S i n c e 4 0 4 0 d r i v e s o n l yh o l d 1 7 0 K , e v e n i a n u p g r a d e k i i a v a i l a b l e , t h i s i m p r o v e m e n tm a k e s t o t a l u p g r a d e s o m e w h a t l e s s t h a n w o r t h w h i l e .

O n l y o n o t h e r n o t i c e a b l e d i f f e r e n c e w o r t h m e n t i o n i n g A e x t e n d e de r r o r m e s s a g e i a l s o g e n e r a t e d , w i t h o n e x t r a d i g i t a t t h e e n t i n f o r m y o o w h a t d r i v e h a b e e n g e n e r a t i n g t h m e s s a g e . T h i s i a l r i g h t a t t i m e s , b u i r e a l l y a g g r a v a t i n g w h e n i c o m e s t i m e t u s p r o g r a m s u c h a s P e t s p e e d . P e t s p e e d e r r s o u d u t t h e l e n g t h o t h e r r o r m e s s a g e . T h e x t r a l e n g t h m e a n s a e r r o r t P e t s p e e d , s t h p r o g r a m a l w a y s g e t s u p s e t a n r e s e t s . N f u n . O t h e r w i s e , D O 2 . i p l e a s u r e , a n m i g h t b e w o r t h y o u r t i m e i y o h a v e a n 8 0 5 0 a n n e e dl o n g e r R E f i l e s .

N e x t , o t q u e s t i o n n u m b e r t w o . T h s e r i e s p a c k a g e h a s u r ed e v e l o p e d l o o a c t i v i t y i N o r t h A m e r i c a , i t h v o l u m e o m a i l a n t h c a l l s w e ' r e g e t t i n g i a n i n d i c a t i o n . $ 9 0 0 U f o t h m a c h i n e ,8 0 5 0 d r i v e , 4 0 2 3 p r i n t e r , g r e e n p h o s p h o r m o n i t o r , a n f e d i s k e t t e s

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

I C a n a d a , C o m m o d o r e w a p r e t t y g o o d t t h s o f t w a r e d e v e l o p e r sb e f o r e t h e c o m p u t e r w a o f f i c i a l l y r e l e a s e d . E v e r y o n e o a n i m p o rt a n c e g o t m a c h i n e s e n t t t h e m f o s o f t w a r e d e v e l o p m e n t . S o m e o t h b e t t e r p a c k a g e s w e r e c o n v e r t e d , b u w e r e s h e l v e d d u t t h n o n -r e l e a s e o t h m a c h i n e i C a n a d a . N o w , w i t h C o m m o d o r e r e l e a s i n gt h e i r e n t i r e s t o c k o t h o P r o t e c t o , p l u s s o m e m o r e e x t r a s t o c k t m a k e i m o r e a t t r a c t i v e , t h i a l i v e a g a i n , b u o n l y i t h U S A . W k n o w t h m a c h i n e t b p r e t t y g o o d , o n c e y o g e u s e d t t h b a n ks w i t c h i n g a n p l a y i n g a b o u t w i t h t h s t a c k , e t c . B u t h e r e i r e a l l y l i t t l ea v a i l a b l e a b o u t i t W p u b l i s h e d J i B u t t e r f i e l d ' s S e r i e s R O m a p sb a c k i o u r e f e r e n c e i s s u e i N o v e m b e r 1 9 8 3 , a n w a r a g a i np u b l i s h i n g t h m a p s i o u r e f e r e n c e b o o k ( T h e C o m p l e t e C o m m od o r e I n n e r S p a c e A n t h o l o g y ) , b u t t h a t s e e m s t b t h e x t e n t o f h i g hl e v e l i n f o . f e m a g a z i n e a r t i c l e s h a v e a p p e a r e d i T O R P E T , T P U Gm a g a z i n e , C o m p u t e ! , a n o c o u r s e , T h T r a n s a c t o r , b u a g a i n , i d o e s n ' t r e a l l y a d u t h i l l o f p a p e r .

I a n y o n e r e a d i n g h a s o m e s p e c i a l k n o w l e d g e o n t h s u b j e c t , h o r na n c o r n e r o t h e g l o b e , p l e a s e s e n d i i t u s F o a l t h p r o g r a mm e r s h e r e i g o o d o l C a n a d a , m a y b e i t ' s t i m e t r e t r i e v e f e w a s t e d d o l l a r s b r e l e a s i n g y o u r c r e a t i o n s . L e t u s k n o w , a n w e ' l lp a s s i o n T s t a r t t h b a l l r o l l i n g , h e r e ' s t i h o r n D a v e B e r m a n , o W e s t o n , O n t a r i o . P l a c e ( r v s ) ' c w i t h i n q u o t e s i R E l i n e i y o u rB A S I C p r o g r a m , a n y o u r p r o g r a m w i l l a u t o m a t i c a l l y D L O A D a n R U t h f i r s t p r o g r a m o d i s k w h e n l i s t e d t o t h s c r e e n o n w a t d i s c o u r a g e c o d e p e e k e r s . T h a t ' s t h e f i r s t b i t , y o u r l e t t e r s w i l l s u p p l yu s w i t h m o r e .

C l e a r l y I n f l e x i b l e : h a v e w r i t t e n a g o o d p r o g r a m i w h i c h h a v eh e a d i n g t h a t m u s t r e m a i n o t h t o p 3 l i n e s o f t h s c r e e n a a l t i m e s .

T h i s h e a d i n g i u s e d t p r i n t t h d i f f e r e n t f u n c t i o n s o t h p r o g r a m ,j u s t l i k e w o r d p r o c e s s o r . T h e s e f u n c t i o n s a r e w r i t t e n b y p o k i n g t h l e t t e r ' s s c r e e n d i s p l a y c o d e s i t h s c r e e n m e m o r y ( f r o m 1 0 2 4 t 1 1 4 4 )f o t h l i n e s .

T h p r o b l e m i t h a t i t h p r o g r a m , a s o m e t i m e s , h a v e t c l e a r t h s c r e e n w i t h o u t e r a s i n g t h h e a d i n g . T h o n l y w a t h a t h a v e f o u n d i p o k i n g t h v a l u e o t h s p a c e c h a r a c t e r ( c h r $ ( 3 2 ) ) i e a c h o t h s c r e e na d d r e s s e s r e m a i n i n g , i e f r o m 1 0 4 5 t 2 0 2 3 . H o w e v e r , t h i s i a w f u l l ys l o w . I t h e r e w a t a c c e l e r a t e t h a t f u n c t i o n . h a v e l o o k e d i f e b o o k s t f i n d w a t c o n t r o l t h e c l e a r s c r e e n , b u t w i t h o u t a n s o l u t i o n .

T h e r e a r n u m b e r o w a y s t h a t t h i s t a s k c a b c o m p l e t e d . T h f i r s ti t w r i t e s i m p l e I R c o n t r o l l e d r o u t i n e t c o n s t a n t l y r e f r e s h t h t o t h r e e l i n e s f r o m d a t a l o c a t i o n s o m e w h e r e e l s e i m e m o r y . A l l t h a tw o u l d b r e q u i r e d o f y o i t P O K E t h c o r r e c t d i s p l a y l i n e s i n t o t h i sm e m o r y a d d r e s s , a n t h I R Q w o u l d t r a n s f e r t h e d i s p l a y f o y o u . I c l e a r s c r e e n i e x e c u t e d , t h I R Q w o u l d o n l y a l l o w t h s c r e e n t r e m a i n c l e a r f o r m a x i m u m o 1 / 6 0 o s e c o n d . c l e a n w a t c u r et h p r o b l e m .

T h T r a n s a c t o r V o l u m e 5 I s s u e 0

Page 12: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 12/84

s e c o n d m e t h o d i t w r i t e s i m p l e c l e a r s c r e e n r o u t i n e i a s s e mb l e r , t h a t s t a r t s a t h f o u r t h l i n e o t h e s c r e e n . W h e n c l e a r s c r e e n i r e q u i r e d , S Y t t h s t a r t a d d r e s s o t h e r o u t i n e a n l e i d p a r t i a lc l e a n .

F o y o u , t h e r o u t i n e s b e l o w h a v e b e e n p r e p a r e d . E a c h a r e w r i t t e n i P A f o r m a t , b u t h o c o d e s a r s t a n d a r d M O s y n t a x , s o a n m i n ia s s e m b l e r w o u l d p r o b a b l y w o r k f o y o u .

1 0 ; * i r d r i v e n d i s p l a y r o u t i n e * 1 0 5 ;1 1 0 * = 8 2 8 ; s t a r t a d d r c a n b e a n y w h e r e c o n v e n i e n t1 1 5 ;1 2 i r q v e c = $ 0 3 1 4 ; i r q v e c t o r i r a 1 2 s c r e e n 1 0 2 4 ; s t a r t o s c r e e n1 3 0 ;1 3 s e 1 4 I d i r q v e c s t a o l d i r q ; r e t a i n o l i r v e c t o r1 4 I d a i r q v e c + s t a o l d i r q1 5 I d # < s t a r t : s t i r q v e c ; p o i n t n e i r v e c t o r a c o d e1 5 I d # > s t a r t : s t a i r q v e c + 1 6 c l i : r t 1 6 5 ;1 7 s t a r t1 7 5 ;1 8 0 l d x # 01 8 5 ;1 9 l o o p2 0 0 ;2 0 I d d a t a , x ; g e t t h d i s p l a y d a t a2 1 s t s c r e e n , x ; s t o r e i o t h s c r e e n2 1 i n x : c p # 1 2 0 ; o n l y a l l o w l i n e s ( 4 0 1 2 0 )2 2 0 b n e l o o p2 2 j m ( o l d i r q )2 3 0 ;2 3 o l d i r q . w o r ; t w o b y t e s s t o r a g e f o o l i r v e c t o r2 4 0 ;2 4 d a t a ; s t o r e t h e d i s p l a y l i n e s f r o m h e r e o 2 5 0 ;2 5 . e n d

3 0 ; * r o u t i n e t c l e a r a l b u t h t o l i n e s o f t h s c r e e n * 3 0 5 ;3 1 8 2 ; s t a r t a d d r c a n b e a n y w h e r e c o n v e n i e n t3 1 5 ;3 2 s c r e e n = 1 1 4 4 ; n e w s c r e e n s t a r t a d d r e s s f o c l e a r3 2 5 ;3 3 I d x # 0 : I d a # 3 ; ( s p a c e )3 3 5 ;3 4 l o o p ; l o o p t c l e a r p a g e s o s c r e e n m e

o r p a s t t h e t o p 3 l i n e s3 4 5 ;3 5 s t s c r e e n , x s t s c r e e n 2 5 6 , x s t s c r e e n + 5 1 2 , x3 6 i n b n l o o p3 7 0 ;3 7 f i n a l3 8 0 ;3 8 s t s c r e e n 7 6 8 , x ; f i n a l c l e a r o t h b o t t o m3 9 i n x : c p # 1 1 2 ; b a l a n c e o s c r e e n t c l e a r3 9 b n f i n a l4 0 r t 4 0 5 ;4 1 . e n d

P r o t e c t i o n R e f l e c t i o n : I r e s p o n s e t y o u r T r a n s a c t o r i s s u e d e a l i n gw i t h t h i m p l e m e n t a t i o n o v a r i o u s t y p e s o p r o t e c t i o n s c h e m e s , o n p a r t i c u l a r f o r m t h a t h a v e r e c e n t l y h e a r d o w a u n m e n t i o n e d . T h i sh a t d w i t h t h a c c e s s i b i l i t y o f m o r e t h a n t h s t a n d a r d 1 5 4 1 3 t r a c k c a p a b i l i t i e s . h a v e b e e n t o l d b f e w p e o p l e t h a t t h 1 5 4 1 a l o n gw i t h t h C 6 i c a p a b l e o f o r m a t t i n g a n u s i n g m o r e t h a n 3 5 t r a c k s ,b u t h a t C o m m o d o r e d i d n ' t l e a n y o n e i o t h b i g s e c r e t o h o t g a b o u t t h i s .

a v e r y c u r i o u s a b o u t t h i s c l a i m e d a b i l i t y a n d w o u l d v e r y m u c h l i k et k n o w h o w t h i s c a ( o r c a n ' t ) b d o n e . A l s o , c o u l d y o p o s s i b l y t e l lm w h e r e c o u l d f i n d o u o t h e r l i t t l e s e c r e t s a b o u t t h 1 5 4 1 ( l i k e t h o n e s y o m e n t i o n i y o u r N o v . i s s u e ) o i t h o n l y w a t l e a r n t h e s eb y e x p e r i m e n t a t i o n ? R y a n B r i e g a l , M . S . U . , E L a n s i n g , M I

T h 1 5 4 1 , a l o n g w i t h t h 2 0 3 1 a n 4 0 4 0 d r i v e s , a r c a p a b l e o m o v i n gt h e i r s t e p p e r m o t o r s i h a l f s t e p s , t h u s i n c r e a s i n g t h e i r c a p a c i t y t 7 t r a c k s , i n r e l a t i o n t t h n o r m a l 3 5 H o w e v e r , t h e y c a n n o t b e e x p e c t e dt a c c u r a t e l y r e a d a n w r i t e i t h i s m a n n e r . A t i m e s i w o u l d w o r k , a o t h e r s i m i g h t n o t . S w h a t a f i r s t m i g h t s e e m l i k e d e s i g n o v e r s i g h ti i f a c t q u i t e i n t e n t i o n a l . T g e h i g h e r c a p a c i t y w i t h r e l i a b i l i t y , y o n e e d m o r e a c c u r a t e m o t o r s w h i c h c o s t m o r e m o n e y .

T d a t e , n u m e r o u s p r o t e c t i o n s c h e m e s h a v e b e e n d e s i g n e d t h a t m a k ef u l l u s e o f t h h a l f s t e p c a p a b i l i t y o t h d r i v e . p o r t i o n o t h d i s k e t t ei f o r m a t t e d i t h i s r a t h e r o b t u s e m a n n e r , e i t h e r h a l f s t e p o u t f r o mn o r m a l d i s k e t t e , t h u s w r i t i n g a n r e a d i n g i s p e c i a l w a y , o t h b a l a n c e o f t h e d i s k e t t e i h a l f s t e p p e d r i g h t a c r o s s , a n d a t a i s t o r e db e t w e e n t h n o r m a l t r a c k s . A l o n g a s t h e d a t a s t o r e d i b e t w e e n i n o t r e q u i r e d f o a n y t h i n g m o r e t h a n a c h e c k o p r o t e c t i o n , a n t h p r o g r a m r e a l i z e s t h a t i m a t a k e f e t r i e s t g e t h i n f o , t h e n t h t e c h n i q u e i o k I t ' s y o u r c h o i c e i y o u w a n t t s t a r t d r i v e s t e p p i n g , b u g e r e a d y f o s o m e p r e t t y h e a v y d u t y p r o g r a m m i n g .

F o m o r e f a c t s a n i n f o , t h e r e i r e a l l y g o o d b o o k o t h s u b j e c t . T h n a m e i ' I n s i d e C o m m o d o r e D O S ' , w r i t t e n b R i c h a r d I m m e r s a n G e r a l d N e u f e l d , p u b l i s h e d b y D a t a m o s t , 2 0 6 6 0 N o r d h o f f S t r e e t ,C h a t s w o r t h , C A 9 1 3 1 1 - 6 1 5 2 ( 8 1 8 ) 7 0 9 - 1 2 0 2 , I S B N 0 - 8 8 1 9 0 - 3 6 6 -3 F o r m e , t h i s b o o k i t t h e d r i v e a R a e t o C o l l i n W e s t ' s b o o k i t t h c o m p u t e r : p u r e a n a p p l i e d s o u r c e k n o w l e d g e .

U n i m p l e m e n t e d I n q u i r y : I t h T r a n s a c t o r o J a n u a r y 1 9 8 5( p g . 2 2 ) , w a s u r p r i s e d t l e a r n t h a t m o s t 6 5 x x C P U s h a v e o p e r a t i o n st h a t c a b e x e c u t e d b u a r n o o f f i c i a l l y p a r t o t h e i n s t r u c t i o n s e t .W h e r e w o u l d f i n d m o r e i n f o r m a t i o n ( d e f i n i t i o n a n m a c h i n e c o d e ) ?

R i c h a r d P i t r e , M o n t r e a l , Q u e b e c

F o s o m e r e a l l y g o o d i n f o o t h p s e u d o - o p s t h a t M O w o n ' t t a l ka b o u t , t h e r e a r t w p r e t t y g o o d s o u r c e s . R a e t o C o l l i n W e s t I ' P r og r a m m i n g T h P E T / C B M ' h a a i d e p t h a r t i c l e o t h e s u b j e c t o p a g e s 4 8 8 a n 4 8 9 . I h i u s u a l t h o r o u g h s t y l e , M r W e s t l i s t s t h c o d e s , t h e i r f u n c t i o n s , a n f e p a r a g r a p h s r e l a t i n g s o m e e x p e r ie n c e s . T f u r t h e r c o m p l i m e n t y o u r q u e s t f o k n o w l e d g e , y o c o u l d t r t h O c t o b e r 1 9 8 3 I s s u e ( I s s u e 4 1 o C o m p u t e ! M a g a z i n e , o n p a g e s 2 6 t h r o u g h 2 6 4 . T h a r t i c l e ' E x t r a I n s t r u c t i o n s w r i t t e n b J o e l C S h e ph e r d , h a b e e n w r i t t e n w i t h p r o - u s e a t t i t u d e . H o w e v e r , t h e r e a r t h o s e t h a t h a v e l e s s t h a n t o t a l f a i t h i n t h e e x t r a c o d e s ( J i m B u t t e r f i e l df o o n e ) . F u r t h e r , M O k n o w s t h e y e x i s t , b u n e g l e c t t d o c u m e n tt h e m . F r o m m a r k e t s t a n d p o i n t i w o u l d h a v e b e e n t t h e i r a d v a nt a g e t i n c l u d e t h e e x t r a i n s t r u c t i o n s i t h e i r c o m m a n d s e t , b u t t h e yd i d n ' t t r u s t t h e m e n o u g h t d s o H e e d t h e s e w o r d s o w a r n i n g b e f o r ee v e r c o n s i d e r i n g w r i t i n g c o d e w i t h t h u n o f f i c i a l p s e u d o - o p s i p l a c e .I t h p e o p l e w h d e s i g n e d t h c h i p s d o n ' t t r u s t t h e m , w h s h o u l d y o u ?

T h T r a n s a c t o r 1 V o l u m e 5 I s s u e 0

Page 13: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 13/84

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

T h g r e a t e s t s o u r c e o f c a l l s a n l e t t e r s w g e a t h e T r a n s a c t o r a r f r o m p e o p l e w h a r h a v i n g d i f f i c u l t y g e t t i n g l o n g p r o g r a m f r o m t h m a g a z i n e t w o r k r i g h t . O c c a s i o n a l l y i t ' s d u t g o o f - u p o o u p a r t ,b u o t h e r t i m e s i t ' s s i m p l y b e c a u s e t h c h a n c e s o m a k i n g t y p i n ge r r o r i v e r y l o n g p r o g r a m a r e q u i t e l a r g e , a n f i n d i n g t h a t e r r o r( p r o b a b l y m o r e t h a n o n e ) a f t e r t h e n t i r e p r o g r a m h a b e e n e n t e r e d i q u i t e d i f f i c u l t . T h i s i e s p e c i a l l y t r u e f o m a c h i n e l a n g u a g e p r o g r a m si B A S I C l o a d e r f o r m , w h e r e t h h u n d r e d s o n u m b e r s i t h D A T As t a t e m e n t s c a m a k e t h m o s t c o m p e t e n t r e a d e r g c r o s s - e y e d .

T s a v e y o f r o m e n d l e s s p r o g r a m d e - g l i t c h i n g s e s s i o n s , w e ' v e c o m eu w i t h t w s o l u t i o n s . T h f i r s t i t h b e s t , b u i t ' l l c o s t y o u : A l p r o g r a m s p r i n t e d i t h m a g a z i n e a r e a l s o a v a i l a b l e o d i s k , i n c l u di n t h o s e f r o m p a s t i s s u e s ( s e e t h e c e n t e r i n s e r t i n t h i s i s s u e f o m o r ed e t a i l s ) .

T h s e c o n d s o l u t i o n d o e s n ' t s a v e y o u a n y t y p i n g , b u i c a h e l p y o f i n d e r r o r s a s s o o n a y o m a k e t h e m . T h s o l u t i o n c o m e s i t h f o r mo a s h o r t m a c h i n e l a n g u a g e p r o g r a m c a l l e d " V E R I F I Z E R " s n a m e d , o c o u r s e , b e c a u s e i v e r i f i e s ! ( O K , s w i n d u l g e d i c u t en a m e n n a s t y l e t t e r s f r o m E n g l i s h t e a c h e r s , p l e a s e . ) V E R I F I Z E Rs h o u l d b e r u n b e f o r e t y p i n g i a n l o n g p r o g r a m f r o m t h p a g e s o T h T r a n s a c t o r . F r o m t h i s i s s u e o n w a r d s , a l l o n g p r o g r a m s w i l l h a v et w u p p e r c a s e l e t t e r s p r i n t e d b e f o r e e a c h l i n e . T h p r o g r a m s s h o u l db e n t e r e d n o r m a l l y ( i . e . d o n ' t e n t e r t h l e t t e r s i f r o n t o f t h l i n e ) , b u e v e r y t i m e y o e n t e r l i n e , V E R I F I Z E R w i l l p r i n t t w c h a r a c t e r s a t h t o l e f t o t h s c r e e n . I t h e s e l e t t e r s m a t c h t h o s e i n p r i n t , y o e n t e r e dt h l i n e p r o p e r l y .

B e s i d e s c a t c h i n g o m i s s i o n s a n o t h e r b l a t a n t e r r o r s i e a c h p r o g r a ml i n e , V E R I F I Z E R w i l l a l s o c a t c h t r a n s p o s i t i o n s ; p r o b a b l y t h m o s tc o m m o n l y m a d e e r r o r w i t h n u m b e r s i P E E K , P O K E , o D A T As t a t e m e n t s . F o r e x a m p l e , i y o u ' r e t y p i n g q u i c k l y a n e n t e r 5 2 3 8 1i n s t e a d o 5 3 2 8 1 , V E R I F I Z E R w i l l c a t c h t h e r r o r a n r e p o r t c o d ed i f f e r e n t f r o m t h o n p r i n t e d w i t h t h e p r o g r a m l i s t i n g . T m a k e y o u rl i f e e a s i e r t h o u g h , t h e r e a r s o m e v a r i a n c e s t h a t V E R I F I Z E R w i l l N O c a t c h . O n i t h a t i i g n o r e s s p a c e s y o c a p u a m a n y s p a c e s a y o u w a n t b e t w e e n k e y w o r d s , o l e a v e t h e m o u a l t o g e t h e r w i t h o u tc h a n g i n g t h r e p o r t e d c o d e . S p a c e s a r a c c e p t e d a n y w h e r e a l o n g a t h e y d o n ' t s p l i t u k e y w o r d s . K e e p i m i n d , t h o u g h , t h a t t h e r e m a b o c c a s i o n s w h e r e t h n u m b e r o s p a c e s i i m p o r t a n t ( e g . i s t r i n gd e f i n i t i o n ) , s t a k e n o t i c e o m e s s a g e s s u c h a [ s p a c e s ] i l i s t i n gw h i c h m e a n s , n a t u r a l l y , e n t e r s p a c e s , n o t h n u m b e r 9 f o l l o w e d b t h w o r d ' s p a c e s ' . A n o t h e r t h i n g y o c a g e a w a y w i t h i t h a b b r e v i a t i o n o k e y w o r d s . S i n c e V E R I F I Z E R l o o k s a t o k e n v a l u e s ,y o w i l l g e t h s a m e r e s u l t i y o t y p e ' n E ' o ' n e x t ' .

H o t u s V E R I F I Z E R

L i s t i n g c o n t a i n s t w v e r s i o n s o t h V E R I F I Z E R p r o g r a m : o n f o t h P E T , a n d o n e f o t h C 6 o V I C . T h e s e l i s t i n g s w i l l a p p e a r i a l i s s u e sf r o m n o o n Y o u ' l l n o t i c e t h a t t h v e r i f i z e r l i s t i n g s a r t h e m s e l v e sp r i n t e d i " v e r i f i z e d " f o r m a t ( w i t h t h r e p o r t c o d e s a l o n g t h l e f t s i d e ) ,w h i c h s e e m s p r e t t y s i l l y , s i n c e y o w o n ' t h a v e v e r i f i z e r w h i l e y o u ' r et y p i n g t h e p r o g r a m i n T h c o d e s a r t h e r e j u s t a c h e c k , s t h a to n c e v e r i f i z e r i u a n r u n n i n g y o c a p r e s s R E T U R N o v e r s o m ep r o g r a m l i n e s a n s e i t h r e p o r t e d c o d e s m a t c h u w i t h t h o s ep r i n t e d w i t h t h l i s t i n g .

E n t e r t h a p p l i c a b l e p r o g r a m a n d R U i t I y o g e t h m e s s a g e ," * * * * * d a t a 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 la l g o e s w e l l . Y o s h o u l d S A V E t h p r o g r a m , s i n c e y o u ' l l w a n t t u s i e v e r y t i m e y o e n t e r o n o o u r p r o g r a m s . O n c e y o u ' v e R U t h l o a d e r , e n t e r N E W , t h e n t u r n V E R I F I Z E R o n w i t h :

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

O n c e V E R I F I Z E R i o n e v e r y t i m e y o p r e s s R E T U R N t h t w o - l e t t e rr e p o r t c o d e w i l l a p p e a r i n t h f i r s t t w s c r e e n l o c a t i o n s i r e v e r s ef i e l d . N o t e t h a t t h e s e l e t t e r s a r i u p p e r c a s e a n w i l l a p p e a r a g r a p h i c s c h a r a c t e r s u n l e s s y o a r i u p p e r / l o w e r c a s e m o d e ( p r e s ss h i f t / C o m m o d o r e o n C 6 4 / V I C ) . I y o p r e s s R E T U R N o s c r e e n l i n et h a t d o e s n ' t c o n t a i n B A S I C p r o g r a m l i n e ( i . e . n l i n e n u m b e r a t h b e g i n n i n g ) , t h e c o d e y o u ' l l g e i u n p r e d i c t a b l e V E R I F I Z E R i o n l yu s e d t r e p o r t o n B A S I C p r o g r a m l i n e s .

W i t h V E R I F I Z E R o n j u s t e n t e r t h p r o g r a m f r o m t h m a g a z i n en o r m a l l y , c h e c k i n g e a c h r e p o r t c o d e a f t e r y o p r e s s R E T U R N o l i n e . I t h c o d e d o e s n ' t m a t c h u p y o c a r e - c h e c k a n c o r r e c t t h l i n e , t h e n t r a g a i n . I y o w i s h , y o c a L I S T r a n g e o l i n e s , t h e nt y p e R E T U R N o v e r e a c h i s u c c e s s i o n w h i l e c h e c k i n g t h r e p o r tc o d e s a t h e y a p p e a r . I y o u ' r e i t h h a b i t o r e - n u m b e r i n g s e g m e n t so p r o g r a m a y o t y p e i i n b e p r e p a r e d f o u n m a t c h e d c o d e s , s i n c eV E R I F I Z E R u s e s t h l i n e n u m b e r a s p a r t o f i t c h e c k s u m c a l c u l a t i o n .O n c e t h p r o g r a m h a b e e n p r o p e r l y e n t e r e d , b s u r e t t u r n V E R I F IZ E o f w i t h t h e s y s i n d i c a t e d a b o v e b e f o r e y o u d o a n y t h i n g e l s e .

V E R I F I Z E R r e s i d e s i t h c a s s e t t e b u f f e r , s i y o u ' r e u s i n g a d a t a s e t t eb a w a r e t h a t t a p e o p e r a t i o n s c a n b e d a n g e r o u s t i t h e a l t h . A f a a c o m p a t i b i l i t y w i t h o t h e r u t i l i t i e s g o e s , V E R I F I Z E R s h o u l d n ' t c a u s e a n p r o b l e m s s i n c e i w o r k s t h r o u g h t h B A S I C w a r m - s t a r t l i n k a n j u m p s t t h o r i g i n a l d e s t i n a t i o n o t h l i n k a f t e r i t ' s f i n i s h e d . W h e nd i s a b l e d , i r e s t o r e s t h l i n k t i t o r i g i n a l c o n t e n t s .

H o V E R I F I Z E R V e r i f i e s

V E R I F I Z E R g e n e r a t e s t h r e p o r t c o d e o c h e c k s u m p r i n c i p a l , b u a s s i g n s " w e i g h t s " t e a c h b y t e t c a t c h t r a n s p o s i t i o n e r r o r s . T h w e i g h t s 1 , 2 , 3 , 4 a r a s s i g n e d t t h t o k e n i s e d B A S I C l i n e , a n t h l o b y t e o t h l i n e n u m b e r i a d d e d i n I o t h e r w o r d s , c h e c k s u m i o b t a i n e d b t a k i n g t h e l i n e n u m b e r l o b y t e , a d d i n g t i m e s t h f i r s tb y t e i t h B A S I C l i n e ( f r o m t h B A S I C i n p u t b u f f e r a $ 0 2 0 0 ) , t i m e st h s e c o n d , t i m e s t h e t h i r d , t i m e s t h f o u r t h , t h e n t i m e s t h f i f t h ,e t c . T h f i n a l c h e c k s u m i t w b y t e u n s i g n e d i n t e g e r . T h h i g h b y t ei d i s c a r d e d , a n t h l o a n h i g h n y b b l e s o t h l o b y t e a r u s e d t f o r m t h t w r e p o r t c o d e c h a r a c t e r s , w h i c h a r p u d i r e c t l y i n t o s c r e e nm e m o r y i t h P E v e r s i o n , a n P R I N T e d t t h e s c r e e n w i t h t h e V I C /C 6 v e r s i o n .

S i n c e o n l y t h l o b y t e i u s e d , c h e c k s u m v a r i a n c e s o e x a c t m u l t i p l e so 2 5 w i l l n o b d e t e c t e d , b u t t h e p r o b a b i l i t y o t h a t o c c u r r i n g a l e g i t i m a t e e r r o r w a j u d g e d t b r e a s o n a b l y s m a l l . F o r e x a m p l e , i y o " a c c i d e n t a l l y " e n t e r e d t h l i n e n u m b e r 1 2 5 6 i n s t e a d o 1 0 0 0 ,t h e r e w o u l d b n d i s c r e p a n c y i t h r e p o r t c o d e s . H o w e v e r , i y o u ' r et h a t u n c o o r d i n a t e d , d o n ' t e v e n t r t t y p e i p r o g r a m s g e t h d i s k .

T h T r a n s a c t o r 1 V o l u m e 5 I s s u e 0

Page 14: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 14/84

V E R I G E N : V E R I F I Z E R p r o g r a m g e n e r a t o r

O t h e o t h e r s i d e o t h V E R I F I Z E R s t o r y , t h e r e i V E R I G E N t c r e a t ev e r i f i z e d s e q u e n t i a l f i l e f r o m p r o g r a m . T h v e r s i o n w u s i n c l u d e ss p e c i a l c o n t r o l c h a r a c t e r s i t h e o u t p u t f i l e f o t h t y p e s e t t e r , b u t h v e r s i o n s h o w n h e r e ( l i s t i n g 2 ) j u s t c r e a t e s a s e q u e n t i a l f i l e g i v i n g t h p r o g r a m l i s t i n g w i t h l i n e n u m b e r s s e p a r a t e d f r o m t h v e r i f i z e r c o d e sb s i n g l e s p a c e .

W h a t g o o d i V E R I G E N t y o u ? W e l l , i y o u h a v e a p r i n t e r a n l i k es t o r i n g p r o g r a m l i s t i n g s a f i n a l b a c k u p , y o m a w a n t t h a v e t h e mi v e r i f i z e d f o r m s h o u l d t h d a e v e r c o m e w h e n e v e r y o n o y o u rd i s k s i n s t a n t l y t u r n s t e l e c t r o - d u s t . O i y o h a v e 6 w i t h 1 5 4 1d r i v e a n d w a n t t g i v e a p r o g r a m t P E o w n e r w h h a a 8 0 5 0 ,y o c a g i v e h i a v e r i f i z e d l i s t i n g ( a s s u m i n g , o c o u r s e , t h a t h e h a sc o p y o V E R I F I Z E R ) .

H o t u s V E R I G E NV E R I G E N r u n s o C 6 a n d w o r k s w i t h t w d i s k f i l e s , " i n f i l " a n " o u t f i l " . B e f o r e e x e c u t i n g V e r i g e n , t h e p r o g r a m t b v e r i f i z e d m u s tb i m e m o r y , A N l i s t i n g o f t h a t p r o g r a m m u s t b o d i s k a s e q u e n t i a l f i l e n a m e d " i n f i l " . T c r e a t e i n f i l , j u s t e n t e r t h f o l l o w i n ga f t e r t h e i n p u t p r o g r a m f o V e r i g e n i i m e m o r y :

o p e n 8 , 8 , 8 , " @ 0 : i n f i l , s , w " : c m d 8 : l i s tp r i n t # 8 : c l o s e i

A f t e r " i n f i l " h a b e e n s e u i n t h i s w a y , j u s t s y s 4 9 1 5 2 t e x e c u t eV e r i g e n . I w i l l c r e a t e " o u t f i l " f o y o u , w h i c h w i l l b s e q u e n t i a l d i s kf i l e c o n t a i n i n g t h e p r o g r a m l i s t i n g w i t h v e r i f i z e r c o d e s b e f o r e t h e l i n en u m b e r s . O u t f i l c a b s e n t t p r i n t e r o m a n i p u l a t e d l i k e a n s e q u e n t i a l t e x t f i l e ( i . e . l o a d e d i n t o w o r d p r o c e s s o r ) .

V E R I F I Z E R w i l l m a k e p r e t t y s u r e t h a t t h p r o g r a m y o u t y p e i m i m i c st h a t i t h l i s t i n g , b u i c a n ' t g u a r a n t e e t h a t t h l i s t e d p r o g r a m i b u g -f r e e . S i V E R I F I Z E R s a y s p r o g r a m i O a n i s t i l l d o e s n ' t w o r k ,y o c a n d r o p u s l i n e w i t h o u t w o r r y i n g t h a t t h p r o b l e m m a b w i t hy o u r t y p i n g .

L i s t i n g l a V E R I F I Z E R f o C 6 a n d V I C 2 0

K J

L B D G F K A I

E E O M M D C N O A G J E M B

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

C C

L H D G O J A I

O I

C E H O J P H E L K

E D

P L

L P D G K

E A I E A K J N

I I

O G H O

I M C A K

A M C F P A K

L F L H A L

L i s t i n g l b P E T / C B M V E R I F I Z E R ( B A S I C 2

1 r e m * d a t a l o a d e r f o v e r i f i z e r 4 1 r e p e t v e r s i o n2 c 3 f o 4 c 5 0

- 6 3 t 7 5 4 : r e a d a : p o k e i ,

c a : n e x t i

0

o 4 . 0 )

6 i c s < > 1 5 5 8 0 t h e n p r i n t " * * * * * d a t a e r r o r * * * * * " : e n 7 0 r e m s y 6 3 8 0 e n d1 0 0 :1 0 0 01 0 1 01 0 2 01 0 3 01 0 4 01 0 5 01 0 6 01 0 7 01 0 8 01 0 9 01 1 0 01 1 1 01 1 2 01 1 3 0

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

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

1 3 1 2

2 5 3 ,2 5 4 ,

4 1 2 5 1 ,

1 1 3 3 ,

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

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

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

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

1 6 3 ,8 8

1 4 1 ,1 6 5 ,

8 5 1 6 7 ,

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

7 4 2

L i s t i n g 2 V E R I G E N1 r e m * d a t a l o a d e r1 r e r u n s o 2 c 3 f 4 c 5 0

c 6 f o v e r i g e n "

4 9 1 5 2 t 4 9 4 1 0 : r e a d a : p o k e i , c a : n e x t

2 9 6

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

1 5 3 2

2 0 8 ,1 4 1 ,

2 4 1 5 2 ,

6 i c s < > 3 6 2 3 5 t h e n p r i n t " * * * * * d a t a e r r o r '7 r e s y 4 9 1 5 28 0 e n d1 0 0 :1 0 0 01 0 1 01 0 2 01 0 3 01 0 4 01 0 5 01 0 6 01 0 7 01 0 8 01 0 9 01 1 0 01 1 1 0

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

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

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

1 2 8 0 d a t a 7 0

1 1 9

1 1 9

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

3 3

2 0 1 6 2 5

4 4 7

1 6 2 , 8 , 1 6 01 6 2 , 2 3 5 , 1 6 2 5 5 , 3 2 , 1 8 31 6 2 , 8 , 1 6 01 6 2 , 2 4 6 , 1 6 2 5 5 , 3 2 1 8 1 3 3 , 2 5 4 , 1 6 5

1 3 2 , 1 9 82 5 5 , 1 7 7 , 2 5 42 5 5 , 1 7 7 , 2 5 42 0 8 , 2 , 2 3 01 7 7 , 2 5 4 , 1 3 32 0 0 , 2 0 8 ,1 7 7 , 2 5 4 , 1 7 01 6 5 , 2 5 2 , 4 1 9 8 , 2 5 3 , 1 61 3 8 , 2 0 8 , 2 2 62 5 1 , 4 1 1 1 6 5 , 2 5 1 , 7

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

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

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

1 1 9 2 5

1 1 9 2 5

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

2 4 1 6

2 7

1 6 2 5

3 1 9 2 5 1 0

7 5 4

3 3

2 4 3 3

2 4 1 3

3 1

2 0 2 0 2 5

3 1 3 2 0

1 0 7 3 3

2 0 2 1 1 0 1 6 2 5

7 7 8

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

2 1 6 1 4 4 , 1 6 91 6 5 , 2 1 7

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

0 , 1 2 81 0 5 , 1 9 3

2 4 1 0

< * * * * " : e n

1 8 6 , 2 5 51 8 9 , 2 5 5

1 9 1 8 6 , 2 5 51 8 9 , 2 5 5

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

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

3 2 2 0 1 9 3 , 3

7 4 2 3 2 , 2 1 0

2 2 8 , 2 5 1 6 1 6

2 5 5 , 2 0 3 2 2 0

2 3 1 3 3 , 2 5 1

7 6 4 8 5 8

T h T r a n s a c t o r 1 V o l u m e s , I s s u e 0 6

Page 15: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 15/84

T h M A N A G E R C o l u m nL e t t e r s t t h M a n a g e r

T h i s i s s u e ' s a p p l i c a t i o n i H O M E B U D G E T I N G P R O G R A M . B u f i r s t ,l e m r e s p o n d t s o m e l e t t e r s t h a t e x p r e s s c o m m o n c o n c e r n s .

V E R S I O N S : F i r s t o f f , m a k e s u r e y o h a v e v e r s i o n 1 . 0 6 o T H M A N A G E R . O t h e r w i s e , y o w i l l b f i g h t i n g s o m e b u g s i t h 1 . 0 4v e r s i o n . r e g r e t t h a t c a n n o t h e l p y o a c q u i r e a n u p d a t e d v e r s i o no t h e r t h a n s u g g e s t i n g y o r e t u r n t y o u r d e a l e r o b u C o m m o d o r e .M r e g r e t s t D a v i d H u s t o n o S a a n i c h t o n , B . C . h o p e t h i s s o l v e sH a r r y H i r a s h i m a ' s ( B a l l e r i c a M A p r o b l e m .

D I S K D R I V E S : T H M A N A G E R w a o n l y d e s i g n e d t r u o n o n e1 5 4 1 d i s k d r i v e . H e n c e y o u c a n n o t h o o k u 2 d i s k d r i v e s o r u s 4 0 4 0 d i s k d r i v e . M c o n d o l e n c e s t C h r i s M a n t e o N e Y o r k a n K e i t h A d a m s o M i s s i s s a u g a , O n t a r i o .

M O R E I N F O R M A T I O N O T H E M A N A G E R : A t h i s t i m e t h e r ea r n p l a n s t i s s u e n e d o c u m e n t a t i o n , b o o k o a c o m p i l a t i o n o p r e v i o u s a r t i c l e s . U n f o r t u n a t e l y , d n o h a v e t h t i m e t p h o t o c o p yi n d i v i d u a l a r t i c l e s f o p e o p l e . S t a y t u n e d t t h e T r a n s a c t o r t h o u g h ,t h i n g s m a c h a n g e . M a p o l o g i e s t J a m e s B r i d g e w a t e r o S a B e r n a -d i n o C A . , D a v i d S h i e l d s o G a i n e s v i l l e F l o r i d a , J . F . O ' N e i l o M i a m i ,E v G r a y o G a l i o n O H L o m e C o o k e o R o s e B l a n c h e , N e w f o u n d l a n d .E d i t o r ' s N o t e : C o m m o d o r e m a b e p l a n n i n g a r e - r e l e a s e o t h 6 M a n a g e r . n e m a n u a l w o u l d a c c o m p a n y t h p a c k a g e b u h a v en o f f i c i a l w o r d o t h s u b j e c t . A D o s a y s . . " S t a y t u n e d " .

R E P O R T G E N E R A T E A R I T H M E T I C : H a v i n g p r o b l e m s w i t hR e p o r t G e n e r a t e o A r i t h m e t i c ? I f u t u r e a r t i c l e s w i l l r e p e a t s o m e o t h i n - d e p t h i n s t r u c t i o n s g a v e o h o t u s t h e s e o p t i o n s b u tw i t h i n t h c o n t e x t o n e a p p l i c a t i o n s .

P R I N T I N G P R O B L E M S : I ' a f r a i d c a n ' t h e l p y o m u c h w i t hp r i n t e r p r o b l e m s . a o n l y f a m i l i a r w i t h t h 1 5 2 6 C o m m o d o r ep r i n t e r w h i c h a u s i n g . A l s o , t h e r e i n w a o s p e e d i n g u p c o m p i l i n g t h e p r i n t i n g p a r t o f t h p r o g r a m t h a t a a w a r e o f

S E A R C H F U N C T I O N : T h S e a r c h F u n c t i o n d o e s n o s u p p o r t W h i l el o o p s . H o w e v e r , t h e r e i w a a r o u n d t h i s p r o b l e m . I y o w a n t t c h e c k m a n y d i f f e r e n t f i e l d s f o t h s a m e i t e m , s i m p l y u s t h O s t a t e m e n t t s t r i n g t o g e t h e r n u m b e r o d i f f e r e n t p o s s i b i l i t i e s . Y o a r n o l i m i t e d t l i n e o n l y . I p r e v i o u s a r t i c l e d e s c r i b e d h o a p o l i c ed e p a r t m e n t c o u l d u s e t h s e a r c h f u n c t i o n o s t o l e n g o o d s f i l e t p a i ru g o o d s r e c o v e r e d w i t h g o o d s s t o l e n . U s i n g t h c o m p l e x s e a r c hc r i t e r i a ( F 5 ) - F 1 = ' O B J E C T ' O F = ' O B J E C T O F ' O B J E C T ' . . . i i p o s s i b l e t l o o k f o t h e o b j e c t i m a n y d i f f e r e n t f i e l d s . T h i s i f o J i R e n d a n t o C h i c a g o .

C H A N G I N G S C R E E N S : H o d o y o u g e f r o m o n s c r e e n t t h n e x ti E n t e r / E d i t a s k s M r s . N . A . D o n i n g e r o H u n t i n g t o n B e a c h C A F f o n e x t s c r e e n ( p a g e ) . F f o p r e v i o u s s c r e e n ( p a g e ) .

S C R A T C H I N G D A T A F I L E : I t h M a n i p u l a t e F i l e s o p t i o n t h e r ei f u n c t i o n c a l l e d ' S c r a t c h a D a t a F i l e ' . T h i s i u s e d t r e m o v eu n w a n t e d f i l e s f r o m d i s k e t t e . T h e m a n u a l i w r o n g h e r e . T h p r o m p t o n y o u r s c r e e n i ' E R A S E T H M A T H , D A T A O I N D E XF I L E S ' n o ' E R A S E T H M A T H , D A T A O B O T H F I L E S ' . S o m e t i m e sy o m a w a n t t k e e p t h d a t a f i l e i t s e l f w i t h i t s c r e e n s , b u e r a s e t h em a t h o i n d e x f i l e s s t h a t y o c a c r e a t e n e o n e s . T h i s o p t i o na l l o w s y o t d t h a t . W h e n e n t e r i n g t h e n a m e o t h f i l e t s c r a t c he n t e r t h n o r m a l f i l e n a m e , D N O i n c l u d e p r e f i x c h a r a c t e r s s u c h a D A . , P T e t c . I y o e n t e r f i l e n a m e t h a t i n o o t h d i s k , t h p r o g r a m w i l l a p p e a r t e r a s e t h f i l e a n y w a y . T h o n l y v e r i f i c a t i o n

D o B e l lS c o t l a n d , O n t a r i o

t h a t i h a b e e n e r a s e d i t h a t i n l o n g e r a p p e a r s o t h d i s kd i r e c t o r y . h a d n o p r o b l e m g e t t i n g t h i s f u n c t i o n t w o r k i v e r s i o n s1 . 0 4 a n 1 . 0 6 . I y o a r h a v i n g t r o u b l e w i t h t h i s f u n c t i o n , y o c a a l w a y s ' k i l l ' T H M A N A G E R ( b p o w e r i n g d o w n ) a n d p e r f o r m f i l ed e l e t i o n s i B A S I C . I y o u w a n t t e r a s e a l t h f i l e s a s s o c i a t e d w i t hy o u r d a t a b a s e f i l e u s t h i s c o m m a n d :

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

T h ' ? ? . ' w i l l a c c e p t a l l e t t e r p r e f i x e s t t h f i l e n a m e ( r f . p t . s c . e t c . )a n t h w i l l a c c e p t a n c h a r a c t e r s a f t e r t h e f i l e n a m e . T H M A A G E R m a k e s a l f i l e n a m e s 1 6 c h a r a c t e r s l o n g b a d d i n g b l a n k s p a c e st t h e n o t h f i l e n a m e . T h u s , i t h i s c a s e , t h ' * m e a n s t h a t a n n u m b e r o b l a n k c h a r a c t e r s f o l l o w i n g t h e f i l e n a m e w i l l b a c c e p t a b l e .

h o p e t h i s s a t i s f i e s C h e s t e r F r e e m a n o N e R o c h e l l e , N . Y .

R E P O R T S F O Y O U R W O R D P R O C E S S O R : O u t p u t t i n g R e p o r t st D i s k F o U s i W o r d p r o c e s s o r c a b v e r y u s e f u l . h a s u c c e s so u t p u t t i n g m a i l i n g l i s t t d i s k f o u s i t h ' P a p e r c l i p ' w o r d p r o c e ss o r . T h r e p o r t w a o u t p u t t e d t d i s k a s a s e q u e n t i a l f i l e a n t h e n t h a tf i l e w a l o a d e d i n t o t h w o r d p r o c e s s o r a a s e q u e n t i a l f i l e . A d n o h a v e o t h e r w o r d p r o c e s s o r s , c a n n o t h e l p y o m u c h i n t h i s r e g a r d . I t ' st h t y p e o t h i n g y o u h a v e t e x p e r i m e n t w i t h y o u r s e l f . G o o d l u c k t T e r i D e n i s H i c k e t h i e r o t h C o m m o d o r e C o m p u t e r U s e r s G r o u p i H e i d e l b e r g , G e r m a n y , M i c h a e l T e s c h o W e s t C h i c a g o .

F I L E S I Z E : S o m e u s e r s h a v e e x p r e s s e d d i s m a y a t h f a c t t h a t t h e yc a n n o t a t t a i n t h m a x i m u m a d v e r t i s e d l i m i t o f T H E M A N A G E R , i . e .2 0 0 0 r e c o r d s . T h i s i o n l y M A X I M U M ! T h p r o b l e m i n o T H M A N A G E R , i i t h l i m i t e d c a p a c i t y o t h d i s k d r i v e a n d i s k e t t e . I y o u r r e c o r d s a r r e a s o n a b l y s m a l l n o p r o b l e m c r e a t i n g a f i l e o 2 0 0 0r e c o r d s . H o w e v e r , a y o u r r e c o r d s g e t l a r g e r t h e y e a u m o r e b y t e s o t h e d i s k e t t e a n y o c a n n o t h a v e a m a n y r e c o r d s . Y o m a a l s o n e e dr o o m o t h e d i s k f o y o u r a r i t h m e t i c a n r e p o r t f i l e s . R e p o r t f i l e s d o n ' th a v e t b o t h s a m e d i s k , b u i t ' s e a s i e r i t h e y a r e . F o r e x a m p l e ,u s i n g o n s c r e e n , t h m a x i m u m r e c o r d l e n g t h c o u l d u s e t c r e a t e2 0 0 0 r e c o r d s w a 7 c h a r a c t e r s . F o 1 0 c h a r a c t e r r e c o r d l e n g t hc a o n l y c r e a t e 1 5 6 3 r e c o r d s . F o 2 0 c h a r a c t e r r e c o r d l e n g t h u s i n g

s c r e e n s c o u l d o n l y c r e a t e 7 8 r e c o r d s . F o 3 0 c h a r a c t e r r e c o r dl e n g t h c o u l d o n l y c r e a t e 5 1 r e c o r d s . A r u l e o t h u m b , t c a l c u l a t et h a p p r o x i m a t e n u m b e r o r e c o r d s , d i v i d e 1 5 6 , 0 0 0 b y t h l e n g t h o t h e r e c o r d . R e m e m b e r t h ' 6 i b a s i c a l l y h o m e c o m p u t e r , n o t ab u s i n e s s m a c h i n e . I y o u ' r e t r y i n g t d b u s i n e s s a p p l i c a t i o nr e q u i r i n g l o o r e c o r d s , y o m i g h t n e e d m o r e p o w e r f u l a n e x p e n s i v e c o m p u t e r s y s t e m . M t h a n k s t F r a n k H a n c o c k I I o H o u s t o n T e x a s a n h i c h u r c h m e m b e r s h i p a p p l i c a t i o n f o b r i n g i n gt h i s p r o b l e m t m a t t e n t i o n .

H u g h G r e e n w o o d o V a n c o u v e r , B . C . i u s i n g M A N A G E R f i l e t k e e pt r a c k o f h i s s l i d e c o l l e c t i o n . I h a g r o w n s l a r g e t h a t h n e e d s f i l e s .H n o w a n t s t c r e a t e a 3 r f i l e w h i c h w i l l a c a a i n d e x f o a l o t h s l i d e s i n t h e o t h e r f i l e s . H w a h o p i n g t u s t h R e a r r a n g eF i l e f u n c t i o n i t h M A N I P U L A T E F I L E S o p t i o n t m o v e i n f o r m a t i o nf r o m o n f i l e t a n o t h e r . T h p r o b l e m h i h a v i n g i t h a t h e c a n o n l ym o v e i n f o r m a t i o n t h i n e f i l e f r o m o n o t h e o l d f i l e s , n o b o t h o t h e m . A l s o , h d o e s n o k n o w o w a t u s T H M A N A G E R t c o n c a t e n a t e s m a l l f i l e s . U n f o r t u n a t e l y , c a n ' t t h i n k o w a t s o l v eh i p r o b l e m e i t h e r . I a n y o n e o u t h e r e h a a s o l u t i o n t o h i s p r o b l e m ,p l e a s e l e m k n o w . M o n l y t h o u g h t i s o l u t i o n o u t s i d e o T H M A N A G E R p r o g r a m . F i r s t , m a k e 2 r e p o r t s o u t p u t t i n g t h e s e l e c t e df i e l d s f r o m t h s l i d e f i l e s t d i s k a s s e q u e n t i a l f i l e s . T h e n w r i t eB A S I C p r o g r a m t c o n c a t e n a t e t h s e q u e n t i a l f i l e s . T h e n e i t h e r u s w o r d p r o c e s s o r o w r i t e B A S I C p r o g r a m t r e a d t h f i l e s , s o r t a n p r i n t o u t w h a t e v e r i r e q u i r e d . T h i s m i g h t b e m o r e t r o u b l e t h e n r e e n t e r i n g h a l f t h d a t a !

T h T r a n s a c t o r 1 V o l u m e 5 I s s u e 0

Page 16: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 16/84

H o m e B u d g e t i n g A p p l i c a t i o nE v e r w o n d e r w h e r e a l y o u r m o n e y g o e s ? E v e r d i s c o v e r t o l a t e y o u ' r ei c a s h f l o w b i n d t h a t y o s h o u l d h a v e s e e n c o m i n g ? E v e r w a n t t m a k e s e r i o u s a t t e m p t a s a v i n g s o m e m o n e y f o c h a n g e ? E v e rm a k e s o m e N e Y e a r ' s e c o n o m i c r e s o l u t i o n s ? R e a d o n M c D u f f . I ' v eg o j u s t t h e a p p l i c a t i o n f o a l y o p e n n y p i n c h e r s , s p e n d a h o l i c s ,b u d g e t e e r s , a n m o n e y m a n i a c s ! Y e s , y o t o c a b i c o n t r o l o y o u r e c o n o m i c f a t e . . o a l e a s t , p r e d i c t i t

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

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

M a n y a p p l i c a t i o n s c r y o u t f o c o m b i n a t i o n o t h e b e n e f i t s o f d a t a b a s e a n s p r e a d s h e e t . O n o t h e b e s t l i t t l e f u n c t i o n s i T H M A N A G E R i t h a b i l i t y t d ' w h a t i c a l c u l a t i o n s j u s t l i k es p r e a d s h e e t . T h i s f u n c t i o n i a v a i l a b l e i t h E n t e r / E d i t m o d e u s i n gt h k e y . T h i s a p p l i c a t i o n m a k e s e x t e n s i v e u s o f t h i s f e a t u r e t h e l p y o d e c i d e w h a t y o c a a f f o r d t s p e n d i v a r i o u s b u d g e tc a t e g o r i e s . T h i s f e a t u r e c o m b i n e d w i t h t h e ' a c c u m u l a t e ' f u n c t i o ng i v e s y o a i n c r e d i b l y p o w e r f u l b u d g e t i n g t o o l . Y o c a p e e r i n t oy o u r d i s t a n t e c o n o m i c f u t u r e , p l a n f o i a n d c h a n g e i w h e n n e c e ss a r y .

k n o w s o m e o y o d r e a d u s i n g R e p o r t G e n e r a t e . Y o u ' l l b g l a d t k n o w t h a t t h i s a p p l i c a t i o n d o e s n o u s i t H o d i g e a r o u n d i t R e p o r t s g d i r e c t l y t t h s c r e e n u s i n g t h e d i s p l a y p o s i t i o n s i A r i t h m e t i c . T h i s i n o t s a t h a t y o c a n n o t g a h e a d a n d d o y o u ro w r e p o r t s u s i n g R e p o r t G e n e r a t e .

A r i t h m e t i c ! B o h a v e g o a r i t h m e t i c f o y o u . T h i s a p p l i c a t i o n s h o u l dg i v e y o s o m e r e a l i n s i g h t i n t o h o t u s t h A r i t h m e t i c o p t i o n t c r e a t e a v e r y p o w e r f u l a p p l i c a t i o n .

h o p e t h i s a p p l i c a t i o n g e n e r a t e s a m u c h e n t h u s i a s m i y o a i d i i m e A f t e r w r i t i n g m o w b u d g e t p r o g r a m s o v e r t h l a s t f e y e a r s ,w a t h r i l l e d b b e i n g a b l e t l e T H M A N A G E R d o m o s t o t h w o r kf o m t h i s t i m e . I n s t e a d o w a s t i n g m t i m e d e b u g g i n g c o d e , c o u l di n s t e a d c o n c e n t r a t e o t h r e a l m e a t o t h m a t t e r t h i d e a l d e s i g nf o t h a p p l i c a t i o n i t s e l f .

S c r e e n s f o H o m e B u d g e t i n gU s t h C r e a t e / R e v i s e o p t i o n t c r e a t e 6 s c r e e n s a l t o g e t h e r . T h f i r s ts c r e e n s a r f o t h e c u r r e n t m o n t h ' s d a t a a b o u t b u d g e t a n a c t u a la m o u n t s . T h l a s t s c r e e n s a r f o y e a r - t o - d a t e a m o u n t s t h a t w i l l b c o m p u t e d b t h e ' a c c u m u l a t e ' f u n c t i o n .

D o n ' t f e e l a n o b l i g a t i o n t u s m b u d g e t c a t e g o r i e s . M a k e u y o u ro w t h a t s u i t y o u r p a r t i c u l a r n e e d s . F o r e x a m p l e , y o m a d e c i d e t h a tf o o d o u t i u n n e c e s s a r y s i n c e i i r e a l l y p a r t o e n t e r t a i n m e n t e xp e n s e s . Y o m i g h t c o n s i d e r c a t e g o r y f o b a n k c h a r g e s , o v e r d r a f t sa n i n t e r e s t o c r e d i t c a r d a c c o u n t s . T h e s e c h a r g e s a r w a s t e o m o n e y a n s h o u l d b e m i n i m i z e d .

T h o n l y t h i n g d s u g g e s t i t h a t y o u k e e p t h s a m e n u m b e r o c a t e g o r i e s u n d e r e a c h s e c t i o n ( i . e . f o i n c o m e , f o f i x e d e x p e n s e s ,a n 1 f o v a r i a b l e e x p e n s e s ) a n d y o u k e e p t h e c a t e g o r i e s a n t o t a l so t h s a m e l i n e s o f t h e s c r e e n s . I y o d o n ' t f o l l o w t h e s e r u l e s t h e ny o u ' l l h a v e t m o d i f y m A r i t h m e t i c f i l e c h a n g e t h d i s p l a y p o s i t i o nd e f i n i t i o n s , t h o u t p u t o n u m e r i c d a t a t d i s p l a y p o s i t i o n s a n t h c o u n t e r f o l o o p s . O n l y m o r e a d v a n c e d u s e r s s h o u l d t a k e o t h i sc h a l l e n g e .

T o t a l s a n t h D I F F ' C E c o l u m n i a l s c r e e n s w i l l b c a l c u l a t e d b t h A r i t h m e t i c f i l e u s i n g d i s p l a y p o s i t i o n s .

A l b u d g e t a n a c t u a l a m o u n t f i e l d s a r c h a r a c t e r s l o n g a n n u m e r i c , t h e 2 f i e l d s u n d e r ' N O T E S ' a r 4 c h a r a c t e r s l o n g a n a l w a y s a l p h a n u m e r i c .

H e r e ' s h o t o b t a i n s c r e e n p r i n t o u t s o f i e l d l e n g t h s a n f i e l dn u m b e r s f o y o u r f i r s t s c r e e n s . S e l e c t t h e E n t e r / E d i t o p t i o n f r o m t h m a i n m e n u , t h e n m a k e s u r e t h e s c r e e n i c l e a r ( i n o t , p r e s s S h i f tC L R / H O M E ) . T d i s p l a y f i e l d l e n g t h s , p r e s s ' u p a r r o w ' . T d i s p l a yf i e l d n u m b e r s , p r e s s S h i f t ' u p a r r o w ' . P r e s s ' p t g e a p r i n t o u t e i t h e rs c r e e n . Y o w i l l n e e d t h e s e p r i n t o u t s o f i e l d l e n g t h s a n f i e l dn u m b e r s t r e f e r t o w h e n d o i n g s e a r c h e s o d e s i g n i n g r e p o r t s .

S c r e e n i u s e d f o e n t e r i n g b u d g e t a n a c t u a l a m o u n t s f o i n c o m ea n f i x e d e x p e n s e c a t e g o r i e s .

I N C O M EP A Y C H E C KI N T E R E S TO T H E RT O T A L S

F I X E D E X P .S A V I N G SR E N T / M O R T .U T I L I T I E SP A Y M E N T SC L U B F E E SP R O P T A X E SI N S U R A N C EL O A N ST O T A L S

S C R E E N O

H O M E B U D G E T

B U D G E T A C T U A L

N O T E S

D I F F ' C E

( l i n e 6

( l i n e 1 2 )

( l i n e 1 9

S c r e e n i u s e d f o e n t e r i n g b u d g e t e d a n a c t u a l v a r i a b l e e x p e n s e s .

A U T O E X P .C H A R / C H U R C HC L O T H I N GD E N T A L / M E D ' LE D U C A T I O NE N T E R T A I N .F O O D O U TG A G R O C E R I E SH O U S E M A I N TP U R C H A S E SR E C R E A T I O NT R A N S P O R T SV A C A T I O NO T H E RT O T A L

S C R E E N O

V A R I A B L E E X P E N S E S

B U D G E T A C T U A L D I F F ' C E

N O

( l i n e 5

( l i n e 2 0

T h T r a n s a c t o r 1 V o l u m e 5 I s s u e 0

Page 17: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 17/84

S c r e e n 3 g i v e s s u m m a r y s t a t e m e n t t h a t i c a l c u l a t e d i t h A r i t h m et i f i l e .

I N C O M EE X P E N S E S

F I X E DV A R I A B L E

N E T I N C O M E

S C R E E N O

N E I N C O M E

B U D G E T A C T U A L

N O T E S

D I F F ' C E

( l i n e 5

( l i n e 8 )

( l i n e 1 1

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

S c r e e n i u s e d t d i s p l a y y e a r - t o - d a t e b u d g e t a n a c t u a l a m o u n t sf o i n c o m e a n d f i x e d e x p e n s e c a t e g o r i e s . N o t i c e t h a t i i s i m i l a r t s c r e e n w i t h t h e x c e p t i o n o t h e d a t e f i e l d a n t o t a l s . U s i n g t h ' a c c u m u l a t e ' f u n c t i o n i E n t e r / E d i t t e x e c u t e t h e A r i t h m e t i c f i l es e v e r a l t i m e s w i l l p r o d u c e t h y e a r - t o - d a t e n u m b e r s

* Y E A R - T O - D A T E I N C O M E / F I X E D

B U D G E T A C T U A LI N C O M EP A Y C H E C KI N T E R E S TO T H E R

F I X E D E X P .S A V I N G SR E N T / M O R T .U T I L I T I E SP A Y M E N T SC L U B F E E SP R O P T A X E SI N S U R A N C EL O A N S

N O T E S

S C R E E N O

E X P E N S E S *

D I F F ' C E

( l i n e 6

( l i n e 1 2

( l i n e 1 9

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

* Y E A R - T O - D A T E V A R I A B L E E X P E N S E S *

A U T O E X P .C H A R / C H U R C HC L O T H I N GD E N T A L / M E D ' LE D U C A T I O NE N T E R T A I N .F O O D O U TG A G R O C E R I E SH O U S E M A I N TP U R C H A S E SR E C R E A T I O NT R A N S P O R T SV A C A T I O NO T H E R

B U D G E T A C T U A L D I F F ' C E

( l i n e 5

( l i n e 1 9 )

N O T E S

S C R E E N O

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

I a d d i t i o n , s t a t e m e n t o b u d g e t e d a n a c t u a l g r o s s s a v i n g s i c a l c u l a t e d b a d d i n g y e a r - t o - d a t e n e i n c o m e a n d y e a r - t o - d a t es a v i n g s . P r e s u m a b l y , i y o u r n e i n c o m e a s o m e p o i n t i n e g a t i v ea m o u n t , t h e n y o w i l l h a v e t d r a w o y o u r s a v i n g s t c o v e r t h d e f i c i t . T h a m o u n t o G r o s s S a v i n g s w i l l s h o w t h e f f e c t o t h i s . T h p u r p o s e o f t h i s s t a t e m e n t i t s e h o y o a r r e a l l y d o i n g i t e r m s o s a v i n g m o n e y . I i a l s o u s e f u l f o p r e d i c t i n g a c a s h f l o w b i n d a s o m et i m e i t h f u t u r e . I G r o s s S a v i n g s i a n e g a t i v e a m o u n t t h e n y o u ' r eg o i n g t h a v e t b o r r o w m o n e y f r o m s o m e w h e r e e l s e o r u u y o u rc r e d i t c a r d s .

* Y E A R - T O - D A T E N E T I N C O M E *

I N C O M E

E X P E N S E SF I X E DV A R I A B L E

N E T I N C O M E

B U D G E T A C T U A L D I F F ' C E

( l i n e 5

( l i n e 8 )

( l i n e 1 1

G R O S S S A V I N G S ( N E T I N C O M E S A V I N G S ) ( l i n e 1 7

N O T E S

S C R E E N O

T h T r a n s a c t o r 1 V o l u m e 5 I s s u e 0

Page 18: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 18/84

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

D e f i n i n g t h S c r e e n D i s p l a y P o s i t i o n sF o t h A r i t h m e t i c F i l e

C h o o s e t h A r i t h m e t i c O p t i o n f r o m t h m a i n m e n u i T H M A A G E R .

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

U s t h R e t u r n k e y t a d v a n c e w i t h i n l i n et a d v a n c e t t h

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

S c r e e n i t h p e n s e s . W w i l l

n e x t l i n e .

t h D I F F ' C E c o l u m n a n

U s t h b a c k a r r o w k e y

O D I S P L A Y P O S ' N O S C R E E N 1 L I N E ? C O L U M N ? 3 L I N E ? C O L U M N ? 3 L I N E ? C O L U M N ? 3 L I N E ? C O L U M N ? 1 L I N E ? C O L U M N ? 2 L I N E ? C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? C O L U M N ? 3 L I N E ? C O L U M N ? 3 L I N E ? 1 C O L U M N ? 1 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 2 C O L U M N ? 1 L I N E ? 2 C O L U M N ? 2 L I N E ? 2 C O L U M N ? 3

c u r r e n t m o n t h ' s b u d g e t e c

L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?

a n a c t u a l v a r i a b l e e x n o d e f i n e t h e d i s p l a y p o s i t i o n s f o t h D I F F ' C E

c o l u m n a n t h t o t a l s l i n e .

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

S c r e e n i t h m e n t . W w i l l

O D I S P L A Y P O S ' N O S C R E E N 1 L I N E ? C O L U M N ? 3 L I N E ? C O L U M N ? 3 L I N E ? C O L U M N ? 3 L I N E ? C O L U M N ? 3 L I N E ? C O L U M N ? 2 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 1 C O L U M N ? 3 L I N E ? 2 0 C O L U M N ? 1 L I N E ? 2 0 C O L U M N ? 2 L I N E ? 2 0 C O L U M N ? 3

c u r r e n t m o n t h ' s b u d g e t e d

L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?

a n a c t u a l i n c o m e s t a t e -n o d e f i n e t h e d i s p l a y p o s i t i o n s f o t h D I F F ' C E

c o l u m n a n t h t o t a l s l i n e .

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

O D I S P L A Y P O S ' N O S C R E E N 1 L I N E ? C O L U M N ? 1 L I N E ? C O L U M N ? 2 L I N E ? C O L U M N ? 3 L I N E ? C O L U M N ? 1 L I N E ? C O L U M N ? 2 L I N E ? C O L U M N ? 3

L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?

4 2 4 3 4 4 4 5 4 6 4 7

S c r e e n i t h

L I N E ?L I N E ?L I N E ?L I N E ? 1 L I N E ? 1 L I N E ? 1

C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3

/ e a r - t o - d a t e b u d g e t e d a n

L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?

a c t u a l i n c o m e a n f i x e de x p e n s e s . . W w i l l n o d e f i n e t h e d i s p l a y p o s i t i o n s f o t h B U D G E TA C T U A L a n D I F F ' C E c o l u m n s .

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

O D I S P L A YL I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1

C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3

S c r e e n i t h y e a r - t o - d a t e b u d g e t e d a n

L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?

a c t u a l v a r i a b l e e x p e n s e s . .W w i l l n o d e f i n e t h e d i s p l a y p o s i t i o n s f o t h B U D G E T A C T U A La n d D I F F ' C E c o l u m n s .

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

O D I S P L A Y P O S ' N O S C R E E N 4 L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ?L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1 L I N E ? 1

C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2

L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?

T h T r a n s a c t o r 1 V o l u m e 5 I s s u e 0

Page 19: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 19/84

1 0 1 . L I N E ? 1 1 0 2 . L I N E ? 1 1 0 2 . L I N E ? 1 1 0 3 . L I N E ? 1 1 0 4 . L I N E ? 1 1 0 5 . L I N E ? 1 1 0 6 . L I N E ? 1 1 0 7 . L I N E ? 1 1 0 8 . L I N E ? 1 1 0 9 . L I N E ? 1 1 1 0 . L I N E ? 1 1 1 1 . L I N E ? 1 1 1 2 . L I N E ? 1 1 1 3 . L I N E ? 1 1 1 4 . L I N E ? 1 1 1 5 . L I N E ? 1 1 1 6 . L I N E ? 1 1 1 7 . L I N E ? 1 1 1 8 . L I N E ? 1 1 1 9 . L I N E ? 1 1 2 0 . L I N E ? 1 1 2 1 . L I N E ? 1 1 2 2 . L I N E ? 1 1 2 3 . L I N E ? 1 1 2 4 . L I N E ? 1 1 2 5 . L I N E ? 1

C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3

S c r e e n i t h y e a r - t o - d a t e b u d g e t e d a n

L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?

a c t u a l i n c o m e s t a t e m e n t .W w i l l n o d e f i n e t h e d i s p l a y p o s i t i o n s f o t h B U D G E T A C T U A LD I F F ' C E c o l u m n s a n t h d i s p l a y e d o l i n e 1 9 .

T O T A L S . T h e G R O S S S A V I N G S t o t a l s a r

N O O D I S P L A Y P O S ' N O S C R E E N 1 1 2 6 . L I N E ?1 2 7 . L I N E ?1 2 8 . L I N E ?1 2 9 . L I N E ? 1 1 3 0 . L I N E ? 1 1 3 1 . L I N E ? 1 1 3 2 . L I N E ? 1 1 3 3 . L I N E ? 1 1 3 4 . L I N E ? 1 1 3 5 . L I N E ? 1 1 3 6 . L I N E ? 1 1 3 7 . L I N E ? 1 1 3 8 . L I N E ? 1 1 3 9 . L I N E ? 1 1 4 0 . L I N E ? 1

B u d g e t C a l c u l a t i o n s I

C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2 C O L U M N ? 3 C O L U M N ? 1 C O L U M N ? 2

L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?L E N G T H ?

h A r i t h m e t i c F i l e

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

C o m m e n t s a r p r e c e d e d b h e l p y o u n d e r s t a n d h o

s e m i c o l o n .t h e a r i t h m e t i c

w i l l b i t h E d i t M o d e o

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

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

I N C O M E ( S C R E E N 1 N 3 - N 2 t 2 D N 5 - N 4 t 2 D N 7 - N 6 t 2 D N N 4 + N 6 t o R lR t 2 D N N N 7 t o R 2R t 2 D R 2 - R 1 t 2 D ; F I X E D E X P E N S E S

C A L C U L A T E D

; R 1 = A C T ' L I N C . T O

; R B U D G E T N C T

; D I F F ' C E

8 t o R 7 ; R I F I E L D * C O U N T E R7 t R 1 ; R 1 0 I D I S P L A Y P O S ' NW H I L E R 2 D N ( R 7 ) - N ( R 7 + l ) T O 2 D ( R 1 0 )R T R R 1 0 + T R 1 E N D W H I L E

T R ; R B U D G E T F I X E D E X P .8 T O R 7W H I L E R 2 D N ( R 7 ) R T R R T R E N D W H I L ER 3 T O 2 D 1 5

T R ; R A C T U A L F I X E D E X P .9 T O R 7W H I L E R 2 D N ( R 7 ) R T R R T R E N D W H I L ER 4 T O 2 D 1 6R 3 - R 4 T O 2 D 1 7 ; F I X E D E X P E N S E D I F F ' C E^ V A R I A B L E E X P E N S E S ( S C R E E N 2 2 6 T O R 71 T R 1 W H I L E R 7 5 D N ( R 7 ) - N ( R 7 + l ) T O 2 D ( R 1 0 )R T R R 1 T R 1 E N D W H I L E2 T R

T R ; R B U D G E T V A R . E X P .W H I L E R 5 D N ( R 7 ) R T R R T R E N D W H I L ER T 2 D 3 32 T R

T R ; R A C T U A L V A R . E X P .W H I L E R 5 D N ( R 7 ) R T R R T R E N D W H I L ER T 2 D 3 4R 5 - R 6 T 2 D 3 5 ; V A R . E X P . D I F F ' C E

■ N E T I N C O M E F O R C U R R E N T M O N T H R E C O R D ( S C R E E N 3 R T O 2 D 3 6R T 2 D 3 7R 2 - R 1 T 2 D 3 8R T 2 D 3 9R T 2 D 4 0R 3 - R 4 T 2 D 4 1R T 2 D 4 2R T 2 D 4 3R 5 - R 6 T 2 D 4 4R 1 - ( R 3 R 5 ) T O R 8R 8 T O 2 D 4 5R 2 - ( R 4 R 6 ) T O R 9R 9 T O 2 D 4 6R 8 - R 9 T 2 D 4 7; * Y E A R - T O - D A T E * *

I T H W H I L E L O O P B E L O W; A L L Y E A R - T O - D A T E I N C O M E , F I X E D E X P E N S E S; V A R I A B L E E X P E N S E S A R A C C U M U L A T E D I R E G I S T E R S D I S P L A Y E D O T H S C R E E N4 T R 1 ; S E T D I S P L A Y P O S ' N S T A R T

T R ; S E T S T A R T O F I E L D I N D E X1 2 T O R 1 1 ; S E T S T A R T R E G I S T E R

T R 9 ; R 9 9 A T E M P . S T O R A G E

T h T r a n s a c t o r 1 V o l u m e 5 I s s u e 0

Page 20: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 20/84

; S E T S T A R T R E G I S T E R *

W H I L E R I 1 2 D I R 2 T H E N R T R ; S K 1 P N O T E SE N D I FN ( R 7 ) R ( R 1 1 ) T O R ( R 1 1 )R ( R l l ) T O 2 D ( R 1 0 )N ( R 7 1 R ( R 1 1 1 T R ( R 1 1 + 1 )R ( R l l l ) T O 2 D ( R 1 0 + l )

T R 9 ; R 9 9 A T E M P S T O R A G ER ( R 1 1 1 ) - R ( R ( 1 1 ) ) T O R 9 9R 9 9 T O 2 D ( R 1 0 2 R I + 3 T O R 1 0R T R R l 2 T O R 1 1E N D W H i L E; I N C O M E T O T A L S Y E A R - T O - D A T ER 1 R 1 4 + R 1 6 T O R 9 0R 9 0 T O 2 D 1 2 6R 1 R 1 R 1 7 T O R 9 1R 9 1 T O 2 D 1 2 7R 9 1 - R 9 0 T O 2 D 1 2 8; F 1 X E D E X P E N S E T O T A L S Y E A R - T O - D A T ER R 2 R 2 R 2 R 2 R 2 R 3 R 3 T R 9 R 9 2 T O 2 D 1 2 9R 1 R 2 R 1 R 2 R 2 R 2 R 3 1 + R 3 3 T O R 9 3R 9 3 T O 2 D 1 3 0R 9 2 - R 9 3 T O 2 D 1 3 1; V A R 1 A B L E E X P E N S E T O T A L S Y E A R - T O - D A T E; B U D G E T T O T A L S3 T R

T O R I 0 T R 9

W H 1 L E R 1 0 0 < 1 6 D OR ( R 1 1 ) R 9 4 T O R 9 4R 1 0 0 1 T O R 1 0 0R l + 2 T O R 1 1E N D W H I L ER 9 4 T O 2 D 1 3 2; A C T U A L V A R I A B L E E X P E N S E T O T A L S3 T R l ; S E T S T A R T R E G I S T E R *

T O R I 0 T R 9 W H 1 L E R 1 0 0 < 1 6 D OR ( R 1 1 ) R 9 5 T O R 9 5R 1 0 0 + 1 T O R 1 0 0R l T R l E N D W H I L ER 9 5 T O 2 D 1 3 3R 9 4 - R 9 5 T O 2 D 1 3 4 ; D I F F ' C E; Y E A R - T O - D A T E N E T I N C O M ER 9 - ( R 9 2 R 9 4 ) T R 9 ; B U D G E TR 9 6 T O 2 D 1 3 5R 9 ( R 9 3 R 9 5 ) T R 9 ; A C T U A LR 9 7 T O 2 D 1 3 6R 9 7 - R 9 6 T O 2 D 1 3 7 ; D I F F ' C ER 9 R 1 8 T O 2 D 1 3 8 ; G R O S S S A V I N G SR 9 R 1 9 T O 2 D 1 3 9R 9 R 1 8 - R 9 7 - R 1 9 T O 2 D 1 4 0

S e t t i n g U p Y o u r B u d g e t a n E n t e r i n g R e c o r d s

T h f i r s t t h i n g t d i l o o k a w h o l e y e a r ' s i n c o m e a n e x p e n s e s a o n c e . G i n t o t h e E n t e r / E d i t o p t i o n a n e n t e r r e c o r d a y o u r y e a rb u d g e t . T h e n u s t h w h a t i f f e a t u r e ( t h e k e y ) t p l a n y o u r y e a rb u d g e t . E n t e r t r i a l a m o u n t s t h e n p r e s s t h b a c k a r r o w k e y t l e t h a r i t h m e t i c c a l c u l a t e y o u r n e i n c o m e o n s c r e e n 3 R e m e m b e r t u s F t a d v a n c e s c r e e n a n F t r e t u r n t t h p r e v i o u s s c r e e n .K e e p p l a y i n g w i t h t h a m o u n t s u n t i l y o g e t h e s a v i n g s a n n e i n c o m e a m o u n t s y o w i s h t a i f o r . B r e a l i s t i c ! O v e r l y o p t i m i s t i cf o r e c a s t s c a l e a d t f a m i l y f e u d s o c h r o n i c d e p r e s s i o n . I i a l w a y sb e t t e r t f i n d y o s a v e d m o r e t h a n y o e x p e c t e d .

O n c e y o u ' r e h a p p y w i t h t h f i g u r e s , s c r e e n p r i n t t h f i r s t s c r e e n s .T h i s y e a r b u d g e t i y o u r g u e s t i m a t e o w h a t y o u r y e a r - t o - d a t es c r e e n s w i l l s h o w a t h e n o t h y e a r .N o t e : W a r o n l y u s i n g t h s c r e e n o r e c o r d t f i d d l e w i t h o u y e a rb u d g e t . R e c o r d w i l l e v e n t u a l l y b t h f i r s t m o n t h o o u b u d g e t .N o o p i e c e o p a p e r d i v i d e e x p e n s e s b y 1 t g e t a m o n t h l ya m o u n t . T h i s o n l y w o r k s o c o u r s e f o c o m m o n m o n t h l y e x p e n s e s .L a r g e a m o u n t s s u c h a i n s u r a n c e , t a p a y m e n t s e t c . w i l l h a v e t e n t e r e d i i n d i v i d u a l m o n t h s .N o c r e a t e 1 2 r e c o r d s , r e c o r d f o e a c h m o n t h o y o u r b u d g e t . D t h i s s i m p l y b e n t e r i n g t h e d a t e i f i e l d o e a c h r e c o r d . P u t h e d a t ei n t h i s f o r m a t , e . g . J a 1 1 9 8 5 w o u l d b 8 5 0 1 0 1 .N o u s t h f i r s t s c r e e n s i r e c o r d t p l a y w i t h t h a m o u n t s f o y o u r m o n t h b u d g e t u n t i l y o g e s o m e r e a s o n a b l e f i g u r e s . U s t h ' w h a t i ( k e y ) t c a l c u l a t e t h e f f e c t o c h a n g i n g t h a m o u n t s .N e x t m a k e g l o b a l e n t r i e s i t h b u d g e t c o l u m n o r e c o r d b u s i n gt h S h i f t ' C c h a n g e f u n c t i o n . E n t e r a n a m o u n t s t h a t a r e c o n s t a n te v e r y m o n t h o y o h a v e c a l c u l a t e d / 1 2 t h o t h e y e a r l y a m o u n t . M e x p e r i e n c e h a s s h o w n t h a t y o c a o n l y c h a n g e 1 f i e l d s a a t i m e .T h u s , y o m a h a v e t d t h i s o p e r a t i o n m o r e t h a n o n c e . Y o s h o u l dn o h a v e e n t r i e s i t h b u d g e t c o l u m n o a l 1 m o n t h s .T h n e x t t h i n g t d i t e n t e r s p e c i a l a m o u n t s i t h b u d g e t c o l u m nt h a t y o k n o w a r d u i c e r t a i n m o n t h s , e . g . t a o i n s u r a n c ep a y m e n t s . A f t e r d o i n g t h i s e v e r y m o n t h ' s b u d g e t c o l u m n s h o u l d b ec o m p l e t e , i . e . r e f l e c t y o u r b e s t e s t i m a t e o i n c o m e a n e x p e n s e s f o t h a t m o n t h .Y o c a n o u s t h e ' a c c u m u l a t e ' f u n c t i o n t l o o k a t h y e a r - t o - d a t ea m o u n t s ( s c r e e n s 4 t 6 f o t h w h o l e y e a r . Y o m a d e c i d e a t t h i st i m e t r e v i s e s o m e o t h o s e g l o b a l e n t r i e s . I y o u w a n t t h a c c u m u l a t et o n l y g a f a a c e r t a i n m o n t h , e n t e r t h e c o m p l e x s e a r c h s t r i n g( F 5 ) f o t h m o n t h y o w a n t i t s t o p a t e . g . u t M a w o u l d b e N 18 5 0 6 0 1N o t e : Y o m a s e o u t r a g e o u s a m o u n t s a p p e a r i n g i t h y e a r - t o - d a t ed i s p l a y p o s i t i o n s o n y o u r s c r e e n . T h i s i b e c a u s e t h a c c u m u l a t o rk e e p s a d d i n g w h e n y o g f r o m r e c o r d t r e c o r d . T h o n l y w a t c l e a r i a n g e c o r r e c t a m o u n t s i t r e - e x e c u t e t h ' a c c u m u l a t e 'f u n c t i o n .O n m o r e t h i n g h o t a v o i d c a s h f l o w p r o b l e m s . T h r e a s o n f o G R O S S S A V I N G S i t h e l p y o f i g u r e o u a h e a d o t i m e w h e t h e r y o uw i l l h a v e e n o u g h m o n e y o h a n d , i . e . y o u r p a y c h e c k a n d y o u rs a v i n g s a c c o u n t , t c o v e r m o n t h ' s e x p e n s e s . D o i n g a ' a c c u m u l a t e 'u t a n m o n t h w i l l t e l l y o t h i s , i . e . i G R O S S S A V I N G S i a n e g a t i v ea m o u n t y o a r i t r o u b l e . T h e n i t ' s t i m e t g o b a c k a n b u d g e t m o r ef o y o u r s a v i n g s a c c o u n t .Y o a r n o i p o s i t i o n t m a k e e n t r i e s i n t h A C T U A L c o l u m n a t h e n o e a c h m o n t h . A t h i s p o i n t y o u ' r e o y o u r o w n . I m p r o v i s em e t h o d s t h a t s u i t y o u r p e r c e p t i o n o w h a t f i n a n c i a l i n f o r m a t i o n i n e c e s s a r y i o r d e r t m a k e t h i s b u d g e t w o r k f o y o u . F o e x a m p l e , i j u s t o c c u r r e d t m t h a t i m i g h t b e h e l p f u l i i n i t i a l l y a l A C T U A La m o u n t s w e r e e n t e r e d a h e a d o t i m e ( i . e . t h s a m e a B U D G E Ta m o u n t s ) . T h e n e a c h m o n t h t h a m o u n t s i t h A C T U A L c o l u m nw o u l d b c h a n g e d t o r e f l e c t r e a l i t y . A a c c u m u l a t e o v e r t h y e a rw o u l d i m m e d i a t e l y s h o w t h e f f e c t o f t h i s m o n t h ' s e n t r i e s o n w h a tw a l e f t o t h y e a r b u d g e t .M a y o u r b u d g e t i n g e f f o r t s i n t h n e y e a r a d r a t h e r t h a n s u b t r a c tf r o m y o u r e n j o y m e n t o l i f e !

D O N ' T P H O N E W R I T E !

I y o u h a v e q u e s t i o n s r e g a r d i n g t h i s a p p l i c a t i o n o y o u w o u l d l i k e t s u b m i t y o u r o w " t e r r i f i c " a p p l i c a t i o n , p l e a s e w r i t e m l e g i b l e ,c o h e r e n t l e t t e r . I y o s u b m i t a n a p p l i c a t i o n , s e n d i o d i s k o r a l e a s ts e n d s c r e e n d u m p s o t h E N T E R / E D I T s c r e e n , h a n d - d r a w n r e p o r tc h a r t a n d a n y m a t h a n d s a m p l e d a t a . w i l l a t t e m p t t a n s w e r l e t t e r s i nt h i s c o l u m n . W r i t e t o D o B e l l , P . B o 2 3 S c o t l a n d , O n t a r i o ,C a n a d a , N 0 1 R

T h T r a n s a c t o r 1 V o l u m e 5 I s s u e 0

Page 21: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 21/84

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

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

I t h f i r s t i n s t a l l m e n t o f T r a n s B A S I C , N i c k i n t r o d u c e d t h c o n c e p t o h i o b j e c t i v e : t c r e a t e m e t h o d f o b u i l d i n g c u s t o m c o m m a n d s a n i n c o r p o r a t e t h e m i n t o t h B A S I Cc o m m a n d s e t . A l s o i p a r t 1 t h T r a n s B A S I C K e r n e l w a d e s c r i b e d . T o t a k e a d v a n t a g e o n e T r a n s B A S I C c o m m a n d l i s t i n g s , o n e m u s t f i r s t o b t a i n c o p y o t h T r a n s B A S I CK e r n e l . T h K e r n e l i o n l y a b o u t 5 0 b y t e s l o n g , b u t h s o u r c e l i s t i n g o t h K e r n e l i q u i t el o n g a n c a n ' t b p r i n t e d e a c h t i m e . V o l u m 5 I s s u e 0 ( H a r d w a r e P e r i p h e r a l s ) c o n t a i n st h p r i n t e d l i s t i n g , h o w e v e r T h T r a n s a c t o r D i s k f o e v e r y i s s u e w i l l i n c l u d e t h i s f i l e , p l u sf i l e s f r o m t h c u r r e n t a n a l p r e v i o u s T r a n s B A S I C a r t i c l e s .

T h S t r u c t u r e o T r a n s B A S I C M o d u l e

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

T h k e r n e l a n a l t h m o d u l e s a r e w r i t t e n w i t h t h P A a s s e m b l e r ,w h i c h u s e s t h e B A S I C e d i t o r t c r e a t e s o u r c e c o d e . A s o m e p o i n t t h es e l e c t e d m o d u l e s m u s t b m e r g e d w i t h t h e k e r n e l , a n a s s e m b l e d .T h m e r g e r o u t i n e i o n t h a t w a a c t u a l l y w r i t t e n f o m e r g i n g B A S I C .B u s i n c e P A s o u r c e f i l e s a r s t r u c t u r e d j u s t l i k e B A S I C t e x t , t h i sm e r g e w o r k s q u i t e n i c e l y ( t h a n k y o a g a i n G l e n P e a r c e ) .

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

O n o t h m o d u l e s g i v e n i t h i s i s s u e i c a l l e d ' C u r s o r P o s i t i o n ' . I c o n t a i n s t w c o m m a n d s t h s t a t e m e n t C U R S O R , a n t h e f u n c t i o nC L O C . I ' l l u s ' C u r s o r P o s i t i o n ' i t h e f o l l o w i n g d i s c u s s i o n t i l l u s t r a t et h a n a t o m y o T r a n s B A S I C m o d u l e . T h i s d i s c u s s i o n w i l l g i v e y o a i d e a o h o t s t r u c t u r e a n m o d u l e s y o w r i t e o y o u r o w n .

T h f i r s t f e l i n e s o f ' C u r s o r P o s i t i o n ' a r B A S I C R E s t a t e m e n t s .S i m i l a r d o c u m e n t a r y l i n e s , u s i n g a m u c h a n e c e s s a r y o t h l i n er a n g e t h r o u g h 2 4 w i l l b e f o u n d i e v e r y m o d u l e . T h n u m b e r i n ga n f o r m a t a r s t a n d a r d i z e d : i y o u r o w m o d u l e s y o s h o u l d f o l l o wt h e p a t t e r n a s c l o s e l y a s y o c a n . I n c i d e n t a l l y , t h i s f i r s t l i n e r a n g e i t h o n l y o n i t h T r a n s B A S I C s y s t e m t h a t a r n o u n i q u e l y a s s i g n e d .T h i s i o k a y b e c a u s e t h e s e l i n e s a r i n t e n d e d f o r e f e r e n c e a t h t i m et h m o d u l e c o n t a i n i n g t h e m i m e r g e d i n t o m e m o r y i d o e s n ' tm a t t e r i t h m o d u l e a f t e r t h a t o v e r w r i t e s t h e m .

I t h e ' C u r s o r P o s i t i o n ' m o d u l e c o n t a i n e d a n e q u a t e s t h e y w o u l dc o m e n e x t . A t h m o m e n t t h o n l y e q u a t e s i u s i T r a n s B A S I C a r t h o s e d e f i n i n g t h e r e s e r v e d z e r o p a g e w o r k a r e a a l o c a t i o n s t w t h r o u g h s i x , a n t h o s e d e f i n i n g o p e r a t i n g s y s t e m ( K e r n a l ) r o u t i n e s i t h ' A D D ' m o d u l e . T h a t l e a v e s p l e n t y o r o o m f o f u r t h e r e q u a t e s i y o w a n t t h e m : l i n e s 5 t h r o u g h 9 s h o u l d b e s a f e .

I t h e n e x t r a n g e o l i n e s y o w o u l d p u a n s t a t e m e n t k e y w o r d sy o u ' l l b n e e d i n g i y o u r m o d u l e ( f u n c t i o n k e y w o r d s c o m e l i t t l el a t e r o n ) . T h T r a n s B A S I C s t a t e m e n t k e y w o r d l i s t o c c u p i e s l i n e s 1 0 t h r o u g h 5 9 7 ; t h e C U R S O R s t a t e m e n t i e n t e r e d a l i n e 1 0 1 . N o t e t h a tt h l a s t c h a r a c t e r i e a c h k e y w o r d h a i t h i g h b y t e s e t . I m o d u l e sy o w r i t e y o u r s e l f u s l i n e s 4 0 t h r o u g h 5 9 f o y o u r k e y w o r d s .

T h f o l l o w i n g 5 0 l i n e s a r f o f u n c t i o n k e y w o r d s ; t h e ' C u r s o r P o s it i o n ' f u n c t i o n C L O C , f o e x a m p l e , o c c u r s o l i n e 6 0 0 . T h o r g a n i z at i o n i i d e n t i c a l t t h a t f o s t a t e m e n t s . T h s a f e s t p a r t o f t h i s a r e a i a g a i n t h e e n d , f r o m 9 0 0 t h r o u g h 1 0 9 5 .

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

T h o n l y o t h e r p a r t o m o d u l e i t h b l o c k o e x e c u t i o n r o u t i n e si t s e l f . Y o w i l l b e n t i r e l y s a f e f o t h e f o r e s e e a b l e f u t u r e i y o n u m b e ry o u r r o u t i n e s i t h u p p e r p a r t o t h r a n g e t h B A S I C l i n e e d i t o ra c c e p t s a b o v e 5 0 0 0 0 , s a y . n u m b e r t h e x e c u t i o n r o u t i n e s b t w o si o r d e r t a l l o w a l i t t l e b i o r o o m f o r e v i s i o n w i t h o u t t h e n e c e s s i t yo u s i n g h a r d e r - t o - f o l l o w m u l t i p l e s t a t e m e n t l i n e s .

I y o g l a n c e a t h l i s t i n g o t h T r a n s B A S I C k e r n e l ( p r i n t e d i l a s ti s s u e ) y o u ' l l s e a o n c e t h a t t h l i n e s a r e n o t a l c o n t i g u o u s , b u t a r s c a t t e r e d i v a r i o u s b l o c k s t h r o u g h o u t t h r a n g e 2 t 2 5 7 2 . S i n c e y o w o n ' t n e e d t m a k e a n y c h a n g e s t k e r n e l l i n e s w o n ' t l i s t t h d e t a i l so t h l i n e a s s i g n m e n t s h e r e . I f a c t , y o c a g e n e r a l l y i g n o r e t h ek e r n e l a l t o g e t h e r , e v e n t h o u g h i d o e s m o s t o t h w o r k o l i n k i n g i n e c o m m a n d s .

T r a n s B A S I C o f f e r s p r o b a b l y t h e a s i e s t w a t e x t e n d B A S I C w i t hy o u r o w c u s t o m c o m m a n d s . b r i e f g l a n c e a s o m e e x i s t i n g m o d u l e sw i l l s h o w y o j u s t h o l i t t l e e f f o r t i n e c e s s a r y f o s c u l p t i n g a n e o n e .

t y p i c a l T r a n s B A S I C c o m m a n d u s e s l o t s o R O r o u t i n e s , p a r t i c ul a r l y f o r e x p r e s s i o n e v a l u a t i o n . I t h n e x t i s s u e w e ' l l l o o k a s o m e o t h o s e r o u t i n e s a n h o t u s t h e m .

T h T r a n s a c t o r 1 V o l u m e 5 I s s u e 0

Page 22: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 22/84

N e C o m m a n d s

T h i s p a r t o t h T r a n s B A S I C c o l u m n i d e v o t e d t d e s c r i b i n g t h e n e c o m m a n d s t h a t w i l l b a d d e d e a c h i s s u e . T h d e s c r i p t i o n s f o l l o ws t a n d a r d f o r m a t :

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

T h s e c o n d l i n e g i v e s t h e l i n e r a n g e a l l o t t e d t t h e x e c u t i o n r o u t i n ef o t h c o m m a n d .

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

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

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

C U R S O R ( T y p e : S t a t e m e n t C a # 0 0 4 )L i n e R a n g e : 2 5 7 4 - 2 6 0 4M o d u l e : C U R S O R P O S I T I O NE x a m p l e : C U R S O R 1 E x a m p l e : C U R S O R R O W . C O LM o v e s t h c u r s o r t s p e c i f i e d r o ( 0 - 2 4 ) a n d c o l u m n ( 0 - 3 9 ) . C o l u m nz e r o i a s s u m e d i n o s e c o n d p a r a m e t e r i p r e s e n t .

C L O C ( T y p e : F u n c t i o n C a # 0 0 5 )L i n e R a n g e : 2 6 0 6 - 2 6 1 8M o d u l e : C U R S O R P O S I T I O NE x a m p l e : I P E E K ( C L O C ) < > 3 2 G O T O 1 0

q u a s i - v a r i a b l e t h a t r e t u r n s t h a c t u a l m e m o r y l o c a t i o n o t h c u r s o r .

D O K E ( T y p e : S t a t e m e n t C a * 0 0 7 )L i n e R a n g e : 2 6 3 6 - 2 6 7 2M o d u l e : D O K E & D E E KE x a m p l e : D O K E 7 8 8 , 5 9 9 5 3 : R E R E S E T I R V E C T O RP o k e s 1 6 - b i t v a l u e i n t o p a i r o m e m o r y l o c a t i o n s , t h l o w e r o w h i c h i s p e c i f i e d i t h c o m m a n d . T h e I R Q i n t e r r u p t i s w i t c h e d o u d u r i n g t h p o k e s t h i s c o m m a n d m a b u s e d , a s i t h e x a m p l e , t c h a n g e t h e v e c t o r s a f e l y .

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

S E ( T y p e : S t a t e m e n t C a * 0 0 9 )L i n e R a n g e : 2 6 9 8 - 2 7 0 6M o d u l e : B I T W I D D L E R SE x a m p l e : S E A D D R . M A S KA 8 - b i t v a l u e ( M A S K ) i O R e d i n t o t h e a d d r e s s . B i t s t h a t a r s e t i nM A S K w i l l b s w i t c h e d o a t h s p e c i f i e d l o c a t i o n ; o t h e r b i t s w i l l b u n a f f e c t e d .

C L E A R ( T y p e : S t a t e m e n t C a # 0 1 0 )M o d u l e : B I T W I D D L E R SE x a m p l e : C L E A R A D D R . M A S KB i t s t h a t a r s e i t h e 8 - b i t v a l u e M A S K w i l l b c l e a r e d a t h s p e c i f i e d l o c a t i o n ; o t h e r b i t s w i l l b u n a f f e c t e d .

F L I P ( T y p e : S t a t e m e n t C a * 0 1 1 )L i n e R a n g e : 2 7 2 0 - 2 7 2 8M o d u l e : B I T T W I D D L E R SE x a m p l e : F L I P A D D R . M A S KB i t s t h a t a r s e i t h 8 - b i t v a l u e M A S K w i l l b c o m p l e m e n t e d a t h s p e c i f i e d l o c a t i o n ; o t h e r b i t s w i l l b u n a f f e c t e d .

C H E C K ( ( T y p e : F u n c t i o n C a t # 0 1 8 )L i n e R a n g e : 2 8 3 4 - 2 8 8 2M o d u l e : C H E C K & A W A I TE x a m p l e : C H E C K ( " A E I O U " )I t h e r e i a c h a r a c t e r i t h k e y b o a r d b u f f e r , i i t e s t e d a g a i n s t e a c hc h a r a c t e r o t h s t r i n g a r g u m e n t ( h e r e A E I O U " ) i t u r n u n t i l e i t h e r am a t c h i f o u n d o e v e r y c h a r a c t e r h a b e e n c h e c k e d . I t h e r e i m a t c h , t h p o s i t i o n o t h m a t c h i n g c h a r a c t e r i t h s t r i n g ( f r o m t 2 5 5 ) i r e t u r n e d . I t h e r e i n m a t c h , o i t h k e y b o a r d b u f f e r w a e m p t y , z e r o i r e t u r n e d .

A W A I T ( ( T y p e : F u n c t i o n C a t # 0 1 9 )L i n e R a n g e : 2 8 3 8 - 2 8 8 6M o d u l e : C H E C K & A W A I TE x a m p l e : = A W A I T ( " N E S W Q " ) O G O T O 1 0 , 2 0 , 3 0 , 4 0 : E N I d e n t i c a l i o p e r a t i o n t C H E C K ( e x c e p t t h a t i w o n ' t t a k e n f o a a n s w e r , b u w i l l w a i t f o k e y b o a r d i n p u t a n s u c c e s s f u l m a t c h : t h i sf u n c t i o n n e v e r r e t u r n s z e r o .

K E Y W O R D S ( T y p e : S t a t e m e n t C a * 0 5 9 )L i n e R a n g e : 4 9 4 0 - 4 9 8 0M o d u l e : K E Y W O R D SE x a m p l e : K E Y W O R D SA l a c t i v e T r a n s B A S I C k e y w o r d s a r p r i n t e d .

M F

J H J J N I

B N M P K B F

G B F I

G I O B F

N A N K C o G

D K F I

C J L

r e d o k e d e e k ( a u g 2 4 / 8 4 )

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

s e r #0 0 0 0

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

r e m k e y w o r d r o u t i n e l i n er e s / d o k e d o k 2 6 3 6

8 r e m f / d e e k ( d e e k 2 6 7 4

1 r e u / u s f p ( 2 6 2 0 / 0 0 6 )1 1 r e = = = = = = = = = = = = = = = = 1 1 0 . a s c " d o k E "6 0 . a s c " d e e k " , b y t $ a 8 ; d e e k s h i f t e d1 1 0 2 . w o r d d o k - 11 6 0 1 . w o r d d e e k - 1

u s f p I d # s t $ 0 s t $ 6

$ 6 # $ 9 0

2 6 2 02 6 2 22 6 2 42 6 2 62 6 2 82 6 3 02 6 3 22 6 3 42 6 3 6 d o k2 6 3 82 6 4 02 6 4 22 6 4 42 6 4 62 6 4 82 6 5 02 6 5 22 6 5 42 6 5 62 6 5 8

s t I d s e j m

j s j s j s I d s t I d s l j s j s I d I d s e

$ b c 4 9

$ a d 8 a$ b 7 f 7$ a e f d$ 1 t $ 1 t $ a d 8 a$ b 7 f 7$ 1 #

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

; g e t p o k e a d d r e s s; c o n v e r t t o i n t e g e r; c h e c k f o c o m m a; s t o r e a d d r e s s; a t e m p v e c t o r

; g e t p o k e v a l u e; c o n v e r t t i n t e g e r; l o w b y t e t p o k e; i n d i r e c t i n d e x; t u r n o f f i r

T h T r a n s a c t o r 2 V o l u m e 5 I s s u e 0

Page 23: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 23/84

N E

L P C K G D A C D

B I

H J B

M F O H F

G H F J N I

O E O C

A L C

O J B M E M

I G D N A

I IE K N K C O G L M M I

F F D H F J N E N

N N P K B J I

O I

2 6 6 0 s t ( t 3 ) , y2 6 6 2 I d $ 1 2 6 6 4 i n 2 6 6 6 s t ( t 3 ) , y2 6 6 8 c l 2 6 7 0 r t 2 6 7 22 6 7 4 d e e k j s $ a e f 42 6 7 6 j s $ a d 8 d2 6 7 8 j s $ b 7 f 72 6 8 0 I d # 2 6 8 2 I d ( $ 1 4 ) , y2 6 8 4 p h 2 6 8 6 d e y2 6 8 8 I d ( $ 1 4 ) , y2 6 9 0 t a 2 6 9 2 p l 2 6 9 4 j m p u s f p2 6 9 6

i s a v e l o b y t e; h i g h b y t e t p o k e; b u m p i n d e x; s a v e h i g h b y t e; i r q o a g a i n

; g e t v a l , t e s t ' ) '; t e s t f o n u m e r i c; c o n v t i n t e g e ri n d i r e c t i n d e x; g e t h i g h b y t e

; d e c r e m e n t i n d e x; g e t l o b y t e

c o v e r t t o f p

r e b i t w i d d l e r s ( s e p t 4 / 8 4 )

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

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

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

1

l i n e s e r #2 6 9 8 0 0 2 7 0 8 0 1 02 7 2 0 0 1

1 r e u / b p r e p ( 2 7 3 0 / 0 1 2 )1 1 r e = = = 1 1 0 . a s c s e T c l e a R f l i P "1 1 0 3 . w o r d b s e - 1 , b c l r - 1 ,2 6 9 8 b s j s b p r e p2 7 0 0 o r ( $ 1 4 ) , y2 7 0 2 s t ( $ 1 4 ) , y2 7 0 4 r t 2 7 0 62 7 0 8 b c l r j s b p r e p2 7 1 0 e o # $ f f2 7 1 2 a n d ( $ 1 4 ) , y2 7 1 4 s t ( $ 1 4 ) , y2 7 1 6 r t 2 7 1 82 7 2 0 f l j s b p r e p2 7 2 2 e o ( $ 1 4 ) , y2 7 2 4 s t a ( $ 1 4 ) , y2 7 2 6 r t 2 7 2 82 7 3 0 b p r e p j s $ b 7 e b2 7 3 2 t x 2 7 3 4 I d # 2 7 3 6 r t 2 7 3 8

F l i — 1s e t u p

; s e t m a s k e d b i t s; s t o r e

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

; s e t u p; f l i p m a s k e d b i t s; s t o r e

; a d d r t $ 1 4 / 1 5 ,; v a l u e t . ; s e t i n d e x t

r e c h e c k a w a i t ( a u g 2 5 / 8 4 )

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

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

r e k e y w o r d r o u t i n er e f / c h e c k ( c h e c kr e f / a w a i t ( a w a i t

1 r e u / g e t t e r ( 2 8 8 8 / 0 2 01 1 r e = = = = = = = =1 6 0 . a s c " c h e c k a w a i t "

1

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

1 6 0 2 . w o r d c h e c k - 1 , a w a i t - 12 8 3 4 c h e c k s e 2 8 3 6 . b y t e $ 2

; s e t f l a g ' c h e c k '; i g n o r e c l c

F E F N D I

L B E G A G G

P M A B C P J C E A I

M O E C L F A

H i I

J N I

M O B D J H E P K P

D F O L

O A L G P E P K N N K

2 8 3 82 8 4 02 8 4 22 8 4 42 8 4 62 8 4 82 8 5 02 8 5 22 8 5 42 8 5 62 8 5 82 8 6 02 8 6 22 8 6 42 8 6 62 8 6 82 8 7 02 8 7 22 8 7 42 8 7 62 8 7 82 8 8 02 8 8 22 8 8 42 8 8 62 8 8 82 8 9 02 8 9 2

r e

r e

f 6 f T

r e r e

1

a w a i t c l p h j s $ a e f 4j s $ b 6 a 3s t t p i r o t

a w j s g e t t e rb i t b m a w t a b e q a w l

a w I d y # $ f fa w i n

c p t b e a w c m ( $ 2 2 ) , yb n a w b e a w

Q l A / 4 h i t t < Q V V ^ 1 I b p a w I d # $ f f

a w i n j m p $ b 3 a 2

g e t t e r j s $ a 8 2 cj m $ e 1 2 4

; c l r f l a g ' a w a i t '; s a v e f l a gi e v a l u a t e s t r i n g ,; c l r d e s c r s t a c k; s a v e s t l e n g t h; s a v e f l a g; m i n u s ' c h e c k '; t e s t k e b u f f e r; t e s t f l a g; s k i p i ' c h e c k '; t r y a g a i n i ; b u f f e r e m p t yi n i t i a l i z e i n d e x; b u m p i n d e x; s k i p i f e n ; o s t r i n g; t e s t f o m a t c h

; t e s t f l a g; l o o p i ' a w a i t '

r e t u r n; p o s ' n i s t r i n g; . t o f p i f a

; t e s t s t o p k e ; b a s i c ' s g e t i n

k e y w o r d s ( a u g 2 5 / 8 4 )

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

K e y w o r a c n a r a c t e r s

k e y w o r d r o u t i n ek e y w o r d s k w r d s

1 1 . a s c k e y w o r d s1 1 1 64 9 4 04 9 4 24 9 4 44 9 4 64 9 4 84 9 5 04 9 5 24 9 5 44 9 5 64 9 5 84 9 6 04 9 6 24 9 6 44 9 6 64 9 6 84 9 7 04 9 7 24 9 7 44 9 7 64 9 7 84 9 8 0

. w o r d k w r d s - 1k w r d s j s $ a a d 7

I d # k w r 1 I d # k w r 2 I d s k w . y

b e k w r 4p h a n # $ 7 fj s $ a b 4 7i n i n p i b p k w r 2

k w r 3 c p # $ 0 ab e k w r 1c p # $ 1 4b e k w r 1j s $ a b 3 fi n b n k w r 3

k w r 4 j m $ a a d 7

l i n e s e r #4 9 4 0 0 5 9

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

p r i n t c h a r a c t e r; b u m p k w o r d i n d e x; b u m p c o c o u n t e r; l o o p i n o ; e n d o w o r d; p r i n t s p a c e s t ; p a d t o 1 0 o r 2 0; c o l u m n s

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

T h e T r a n s a c t o r V o l u m e 5 I s s u e 0

Page 24: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 24/84

N e W e d g eF o T h C o m m o d o r e 6

A d c o m m a n d s b t r a p p i n g S y n t a x E r r o r s

B r i a n M u n s h a wM i s s i s s a u g a , O n t .

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

M o s t o y o a r p r o b a b l y f a m i l i a r w i t h t h ' c h r g e t ' w e d g e . I i c h a r a c t e r i z e d b u s i n g a s p e c i a l c h a r a c t e r , s u c h a ' © ' , ' / o ' > ' ,w h i c h p r e c e d e s a l c o m m a n d s . B o t h ' D O S 5 . 1 ' a n ' T h e M a n a g e r ' u s t h i s t e c h n i q u e .

T h ' c h r g e t ' w e d g e , h o w e v e r , h a s i t d r a w b a c k s . I i w h a t y o m i g h tc a l l a b r u t e f o r c e m e t h o d . B a s i c a l l y , t h n o r m a l c h a r a c t e r r e t r i e v a ld o n e b B A S I C i r e - r o u t e d t h r o u g h a s p e c i a l r o u t i n e w h i c h c h e c k sf o s p e c i a l ' w e d g i n g ' c h a r a c t e r ( s ) . D e p e n d i n g o n h o m u c h c h e c ki n i d o n e , t h e p r o c e s s c a s l o w d o w n B A S I C c o n s i d e r a b l y . S o m ee s t i m a t e s i n d i c a t e t h s l o w d o w n i a r o u n d f i f t e e n p e r c e n t . S y n t a c t i ca n o m a l i e s a l s o d e v e l o p . T h o n t h a t c o m e s t m i n d f i r s t i t h p r o b l e m t h a t a r i s e s i t h ' i t h e n ' c o n s t r u c t . I t h e f o l l o w i n ge x a m p l e t h w e d g e c o m m a n d a l w a y s e x e c u t e s .

i 0 t h e n © c o m m a n d

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

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

p r i n t " © c o m m a n d "T h p o i n t i s u n l e s s l o o e x t r a c h e c k i n g i d o n e t e n s u r e a g a i n s tt h e s e a n o t h e r p r o b l e m s , t h a v e r a g e w e d g e t a k e s c o n s i d e r a b l es l i c e o f t i m e f o e a c h a n d e v e r y c h a r a c t e r r e q u e s t e d f r o m i b B A S I C .G e n e r a l l y , t h e b e t t e r t h w e d g e p e r f o r m s s y n t a c t i c a l l y , t h s l o w e rB A S I C e x e c u t e s .

T h i s i s n ' t t o f a u l t t h p r o g r a m m i n g e x p e r t i s e o t h o r i g i n a l d e v e l o p e ro t h t e c h n i q u e . H o s h h a f e a l t e r n a t i v e s t t h i s m e t h o d o t h P E T . ( w h i c h a s s u m e i w h e r e t h p r o c e s s w a d e v e l o p e d ) H o w e v e r ,t h 6 i d i f f e r e n t m a t t e r . ( S o i t h e V I C , b u t t h i s a r t i c l e a d d r e s s e si t s e l f t t h 6 o n l y ! s u p p o s e w i t h v e r y l i t t l e e f f o r t , t h i s t e c h n i q u e w i l la l s o w o r k o t h V I C )

T h i n t e r p r e t e r a n k e r n a l o t h 6 m a k e s e x t e n s i v e u s o i n d i r e c tj u m p s t h r o u g h v e c t o r s i R A M , m o r e s t h a n d o e s t h P E T . T h i m p o r t a n t v e c t o r i n t h i s c a s e i t h o n a $ 0 3 0 0 c a l l e d ' I E R R O R ' i t h p r o g r a m m e r s r e f e r e n c e g u i d e .

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

L e t ' s c o n s i d e r w h a t w o u l d h a p p e n i y o j u s t i n c l u d e d t h e h y p o t h e t ic a c o m m a n d ' © s u p e r d o o p e r ' t l i n e o f B A S I C . T h o b v i o u s r e s u l t i a s y n t a x e r r o r w h e n B A S I C t r i e s t o e x e c u t e i t B u i i v e r y s p e c i a l

s y n t a x e r r o r , i n t h a t t h i s s p e c i f i c s y n t a x e r r o r o c c u r s a t h s t a r t o s t a t e m e n t . H o c a t h i s b u s e d t a d v a n t a g e ? L e t ' s e x a m i n e i m o r ed e t a i l w h a t i a c t u a l l y h a p p e n i n g . F i r s t , B A S I C w a s h a p p y r i g h t u t t h s t a t e m e n t b e f o r e t h © s u p e r d o o p e r c o m m a n d . P a r t o t h e x e c ut i o n o f t h a t s t a t e m e n t i n c l u d e d p o s i t i o n i n g t h e t e x t p o i n t e r ( a $ 7 a n $ 7 b ) o t h f i r s t c h a r a c t e r o r t o k e n o t h e n e x t s t a t e m e n t . I n t h i s c a s e ,t h i s i t h s p e c i a l c h a r a c t e r ' © ' . S i n c e t h i s c h a r a c t e r ' s A S C I I v a l u e i l e s s t h a n 1 2 8 , B A S I C k n o w s i t ' s n o t o k e n ( a l l t o k e n s h a v e t h e h i g hb i s e t , h e n c e m u s t b g r e a t e r t h a n o e q u a l t 1 2 8 ) , a n g e t s r e a d y t e x e c u t e a i m p l i e d ' L E T ' s t a t e m e n t , a l s o k n o w n a a a s s i g n m e n ts t a t e m e n t . A h b u t h e r e ' s t h r u b ! I c a n ' t b e a n i m p l i e d ' L E T ' ! W h y ?W e l l t h e ' © ' i n o a v a l i d c h a r a c t e r f o v a r i a b l e n a m e . W h a th a p p e n s a s i d e e f f e c t o a l t h i s i t w s t a c k p l a c e s a r u s e d , t h er e g i s t e r i l o a d e d w i t h $ 0 s i g n i f y i n g s y n t a x e r r o r , a n a i n d i r e c t' j m p ' i d o n e t h r o u g h t h ' I E R R O R ' v e c t o r a $ 0 3 0 0 . T h i s r o u t i n ec a u s e s t h a p p r o p r i a t e e r r o r m e s s a g e t b p r i n t e d , a n e x e c u t i o nh a l t s .

W h a t i o e x t r e m e i m p o r t a n c e i t h c o n s i s t e n c y o t h e s e e v e n t s . I y o u c h a n g e t h e v e c t o r a $ 0 3 0 0 t p o i n t t a r o u t i n e t h a t w i l l c h e c k f o y o u r n e c o m m a n d , a n i f o u n d , w i l l f i u t h s t a c k , s c a n t t h n e x t s t a t e m e n t w h i c h a l l o w s B A S I C t c o n t i n u e b y j u m p i n g t t h r o u t i n e t e x e c u t e t h n e x t s t a t e m e n t , t h e n y o u , m f r i e n d , h a v en e t y p e o w e d g e , t h ' e r r o r ' w e d g e .

M o s t B A S I C s f o u n d t o d a y ( e x c l u d i n g C o m m o d o r e v a r i a n t s ) h a v e a n' o e r r o r g o t o / g o s u b ' o ' t r a p ' c o m m a n d . T h i s i a p p r o x i m a t e l y t h s a m e t h i n g . I i c l o s e r t a ' o s y n t a x e r r o r s y s ' t h o u g h , b u t h i s i e x a c t l y w h a t w a n t e d t a c c o m p l i s h . w a t p a s s i n t o m a c h i n e c o d et e x e c u t e t h u t i l i t y . I i s n ' t b r u t e f o r c e m e t h o d , l i k e t h ' c h r g e t 'w e d g e , h e n c e d o e s n ' t s l o w d o w n B A S I C . I o n l y a f f e c t s p r o c e s s i n gw h e n t h c o m m a n d i e n c o u n t e r e d . T h i s t e c h n i q u e i c e r t a i n l y m o r ee l e g a n t t h a n h a v i n g a s e p a r a t e ' s y s ' f o e a c h c o m m a n d , u t i l i t y o a i a n f i n a l l y , i i s o m e w h a t e a s i e r t h a n a l t e r i n g t h e t o k e n i s i n g a n t o k e n d i s p a t c h i n g t a d c o m m a n d s t b a s i c . A n o t h e r n i c e f e a t u r ec o m e s f r o m t h f a c t t h a t t h e k e r n a l d o e s n ' t r e - i n i t i a l i z e t h e v e c t o r a $ 0 3 0 0 w i t h e v e r y w a r m s t a r t , t h e r e f o r e y o d o n ' t h a v e t r e - e n g a g e i e v e r y t i m e y o p r e s s a r u n / s t o p r e s t o r e . T h i s i t h c a s e w h e n y o s c a n f o s p e c i f i c k e y b o a r d e n t r i e s , l i k e t h e f u n c t i o n k e y s w h i c h s o m es c h e m e s d o b y a l t e r i n g t h I R v e c t o r .

M o r e t s h o w c a s e t h i s t e c h n i q u e t h a n a n y t h i n g e l s e , I ' v e i n c l u d e dt h o s e c o m m a n d s w h i c h a r e a s u b s e t o g r a p h i c s u t i l i t y I ' v e w r i t t e n ,w h i c h p e r t a i n t e x t e r n a l d e v i c e s , l i k e t h d i s k d r i v e . T h e s e i n c l u d eu t i l i t i e s t o l i s t t h d i r e c t o r y o r p r o g r a m t t h s c r e e n , c o m m a n d t l i s t s e q u e n t i a l t e x t f i l e t t h s c r e e n , c o m m a n d t a l t e r t h d e f a u l to u t p u t d e v i c e , c o m m a n d t s e n d c o m m a n d s t t h d i s k d r i v e , t w c o m m a n d s t r e a d t h e d i s k s t a t u s a n f i n a l l y c o m m a n d t d i s a b l et h u t i l i t y .

T h s y n t a x f o t h e s e c o m m a n d s a r a s f o l l o w s . P l e a s e r e m e m b e r t h a tt h e s p e c i a l c h a r a c t e r , ' @ ' i t h i s i n s t a n c e , m u s t p r e c e d e e a c h c o m a n d . A l s o a s i d e e f f e c t o t h w a t h c o m m a n d s a r p a r s e d , e a c hc o m m a n d w i l l h a v e s h o r t f o r m . T h s h o r t e s t a c c e p t a b l e w i l l b g i v e n w i t h t h f u l l n a m e i e a c h c a s e . F o t h o s e o y o w h d o n ' t l i k et h p r e c e d i n g ' © c h a r a c t e r , a n d w o u l d p r e f e r a n o t h e r , t h e n p o k e4 9 1 5 2 1 0 a s c ( " c h a r a c t e r " ) . T h o n l y r u l e y o u m u s t k e e p i m i n dw h e n c h o o s i n g c h a r a c t e r i i m u s t c a u s e a n a u t o m a t i c s y n t a x e r r o r

T h T r a n s a c t o r 2 V o l u m e 5 I s s u e 0

Page 25: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 25/84

a n h a v e C B a s c i i v a l u e l e s s t h e n 1 2 8 . P o s s i b l e c h a r a c t e r s d n o i n c l u d e t h m a t h e m a t i c a l o p e r a t o r s + , - , * , / ■ E v e n t h o u g h t h e y m a h a v e a A S C I I v a l u e l e s s t h a n 1 2 8 , t h e d i t o r t u r n s t h e m i n t o t o k e n s ,h e n c e w i l l h a v e a n A S C I I v a l u e g r e a t e r t h a n 1 2 7 i B A S I C t e x t .

C O M M A N D S( A b b r e v i a t i o n : n o n e )

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

© d e v i c e , d e v i c e * ( A b b r e v i a t i o n : @ d e , d e v i c e # T h i s c o m m a n d w i l l a l l o w t h e u s e r t s e d e f a u l t o u t p u t d e v i c e . W h e nt h u t i l i t y i f i r s t l o a d e d a n e n g a g e d , t h d e f a u l t d e v i c e n u m b e r w i l lb s e t e i g h t . T h i s w i l l a l l o w u s e r s o d i s k d r i v e s s e t t o d e v i c e e i g h t t ' L O A D ' , ' S A V E ' , a n ' V E R I F Y ' w i t h o u t s p e c i f y i n g a d e v i c e n u m b e r . I u s e r w i s h e s t c h a n g e t h i s , t h e n t h i s c o m m a n d c a n b e i n v o k e d t d s o N o t e , t h e r e s t o t h c o m m a n d s w i l l u s t h d e f a u l t d e v i c e n u m b e rw h e n a c c e s s i n g a d e v i c e , h e n c e i y o u h a v e t w o d r i v e s o l i n e ,r e m e m b e r y o m u s t a l t e r t o t h a p p r o p r i a t e d e v i c e n u m b e r t a c c e s st h d e v i c e w h i c h i s n ' t s e t t o d e f a u l t .

@ d o s , s t r i n g ( A b b r e v i a t i o n : @ d o , s t r i n g )T h i s c o m m a n d w i l l s e n d t h c h a r a c t e r s i t h s t r i n g ( l i t e r a l o v a r i a b l e ) t t h d e f a u l t d e v i c e u s i n g s e c o n d a r y a d d r e s s f i f t e e n , i e s e n dc o m m a n d s t t h e d i s k d r i v e .

© d s t a t u s , v a r $ ( A b b r e v i a t i o n : @ d s , v a r $ )T h i s c o m m a n d w i l l s t o r e t h d i s k s t a t u s i v a r $ . N o t e v a r $ m u s t b s t r i n g v a r i a b l e a n d w o r k s i e i t h e r d i r e c t o p r o g r a m m o d e .

© k i l l ( A b b r e v i a t i o n : @ k T h i s c o m m a n d d i s e n g a g e s t h u t i l i t y .

© l i s t , s t r i n g ( A b b r e v i a t i o n : © I I , s t r i n g )T h i s c o m m a n d w i l l , d e p e n d i n g o n t h c o n t e n t s o t h s t r i n g l i t e r a ls t r i n g v a r i a b l e , l i s t e i t h e r t h e a p p r o p r i a t e d i r e c t o r y o p r o g r a m t t h s c r e e n . T h d e v i c e b e i n g a c c e s s e d i a s s u m e d t b t h e d e f a u l td e v i c e . T h s y n t a x o t h s t r i n g i s t a n d a r d C o m m o d o r e , e g

© l i s t , $ w i l l l i s t t h d i r e c t o r y ( b o t h i u s i n g d u a l d r i v e ) ,

© l i s t , $ 0 : * = p r gw i l l l i s t t h t i t l e s o a l p r o g r a m f i l e s o d r i v e z e r o a n

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

© p r i n t , s t r i n g ( A b b r e v i a t i o n : © ? s t r i n g )T h i s c o m m a n d w i l l p r i n t s e q u e n t i a l t e x t f i l e t t h s c r e e n . T h f i l e n a m e i h e l d i t h s t r i n g , l i t e r a l o v a r i a b l e . U s t h s p a c e b a t p a u s e .

T h f o l l o w i n g i t h a s s e m b l e r s o u r c e l i s t i n g a n b a s i c p r o g r a m t h a tw i l l l o a d a n e n g a g e t h u t i l i t y . O n c e t h e l o a d e r h a b e e n r u n , y o m a w i s h t s a v e i o u w i t h m o n i t o r . I y o d s o t h c o d e e x t e n d sf r o m $ C 0 0 0 t $ C 2 C 3 . A y o w i l l s e f r o m t h a s s e m b l e r l i s t i n g ,e x t e n s i v e u s i m a d e o k e r n a l a n i n t e r p r e t e r r o u t i n e s . F o t h o s e o y o o u t h e r e j u s t s t a r t i n g t g e y o u r f e e t w e i t h m a c h i n e c o d ew o r l d o t h C 6 4 , t h i s l i t t l e p r o g r a m m a h e l p y o i t h s e u p a n du s o s u c h r e s i d e n t r o u t i n e s . h o p e y o u f i n d t h m e t h o d o a d d i n gc o m m a n d s a n t h u t i l i t i e s u s e f u l i y o u r o w e n d e a v o u r s .

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

P L

D D G K

D A I

J I

C M G A K E

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

I 1 C

M O G L C I I F

D A P

N N F E N F K M O E D

1 r e m * d a t a l o a d e r f o e r r o r w e d g e "2 c 3 f o 4 9 1 5 2 t 4 9 8 5 8 : r e a d a : p o k e i , 4 0 c s = c a : n e x t5 0 6 i c s < > 8 6 2 8 0 t h e n p r i n t

* * * * e r r o r i d a t a s t a t e m e n t s * * * * " : e n 7 0 s y s 4 9 1 5 28 e n 1 0 0 :1 0 0 0 d a t a 7 6 5 2 1 0 1 0 d a t a 2 4 4 , 2 3 7 ,

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

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

0 0 0 0 0 0 0

1 4 1 ,3 , 1 4 1 ,

0 3

2 4 5 ,0 0 0 0 0 0 0

6 4 0 0 o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1 0 4 , 2 0 1 , 6 9 , 2 0 8

1 9 2 ,

1 2 1 ,

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

9 6 2 0

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

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

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

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

0 1

5 0 5 1 4 8 4 9

1 4 1 4 1 4 1 4 1 4 1 4

8 3 2 4 3 2 4

7 1 7 1 7 1 7

2 0 8 ,

3 1 7 3 1 7 3 1 7 3 9

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

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

1 1 0

4 4 6

1

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

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

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

T h T r a n s a c t o r 2 V o l u m e 5 I s s u e 0

Page 26: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 26/84

M K

M P

F D 0

D A G E C

L H K M 0 B E H H

I N M H E L L J M K L J N K H O A C

G N M H

I D M B D P F M E H P L J P

C O E N N M

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

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

1 3 6 , 1 5 2 , 7 20 3 2 1 3

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

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

E r r o r W e d g e S o u r c e L i s t i n g

2 4 5 ,2 5 5 ,

7 5

3

o G 0 L P M O A A M F J E A D P H G O

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

J A E F H I

B M L J O P

I I

I M

C A F K H C M N G A K E I

M F C C O I

M B L H B K B

K H P K F A I

P I

F E I

N M D A K E

I I

P M E A D C K F M

1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 6 9 7 0 7 1 7 2 7 3 7 4 7 5 7 6 7 7 7 8 7 9 8 0 8 1 8 2 8 3 8 4 8 5 8 6 8 7 8 8 8 9 9 0 9 1 9 2 ■ j : i o! - ) ' ! 09 5 9 6 9 7 9 8 9 9 1 0 0 01 0 1 01 0 2 01 0 3 01 0 1 01 0 5 01 0 6 01 0 7 01 0 8 01 0 9 01 1 0 01 1 1 01 1 2 01 1 3 01 1 4 01 1 5 01 1 6 01 1 7 01 1 8 01 1 9 01 2 0 01 2 1 01 2 2 01 2 3 01 2 4 01 2 5 01 2 6 01 2 7 01 2 8 01 2 9 01 3 0 01 3 1 01 3 2 01 3 3 01 3 4 0

; y 7 0 o p o

c o n s t a n t si s j r i n tl l q u a n

s y n t a xs t a t u s: o m m a: o l o nB O s t a c k< e y t a b l e

i n t e r p r e t e

: h r g e t: h r g o te a d y

s c a n n e x tI t e x po o k u pn t f l t

3 t r r e sd i s c r dB x f l t a s c

• $ c 0 0 0

> $ 9 b= $ 9 9= $ 0 e■ $ 0 b= $ 9 0

> ;

$ 0 1 0 0= $ a 0 9 er o u t i n e s u s e d

= $ 0 0 7 3= $ 0 0 7 9= $ a 4 7 4= $ a 9 0 6= $ a d 9 e= $ b O 8 b

$ b 3 9 1= $ b 4 7 5= $ b 6 a 3

$ b 7 f i= $ b d d d

k e r n a l r o u t i n e

; l o s ec h k i ns h r o u tl e t l f eo p e ns e t n a mr e a d s tc h r i nc l r c h ns t o pt a l k

k s u n t a l ka c p t rI s t e ns n s a

u n l s nc i o u t

$ f f c 3$ f f c 6$ f f d 2S f f b a$ f f c O$ f f b d$ f f b 7S f f c f$ f f c c$ f f e 1$ r f b 4$ f f 9 6S f f a b$ f f a 5$ f f b i$ f f 9 3S f f a eS f f a B

r a i n d i r e c t v e c t o r s a l t e r e de r r o rl o a ds a v e

= S 0 3 0 0$ 0 3 3 0

= $ 0 3 3 2z e r o p a g e u s e d

v a r a d d rN a c dc u r l i nc u r d e vt e m p

= $ 4 9$ 6

= $ 3 9= $ b a

$ f

j m s t a r tg e n e r a l m e m o r y s t o r a g e

s r r v e c t o ro a d v e c t o r

s a v e v e c t o rc u r d e v n u mm y c h a rq u o t e f l a gt e m p s t rs t a r t

s e t s a v e

s e t l o a d

j e t s t r i n g

. w o r d. w o r d. w o r d. b y t e. a s c @ . b y t e O

+ 4

I d i e r r o rs t a e r r v e c t o rI d a i e r r o r ■ ■ s t a e r r v e c t o rI d # o n e r r o rs t i e r r o rI d # o n e r r o rs t i e r r o rI d I s a v es t s a v e v e c t o rI d I s a v es t s a v e v e c t o rI d # s e t s a v ss t i s a v eI d # s e t s a v es t i s a v eI d a i l o a ds t l o a d v e c t o rI d i l o a ds t l o a d v e c t o rI d # s e t l o a ds t a i l o a dI d # s e t l o a ds t a i l o a dr t

I d c u r d e v n u ms t c u r d e vj m ( s a v e v e c t o r )

I d c u r d e v n u ms t c u r d a vj m ( l o a d v e c t o r )

s t r i n g i n p u t a n d i s c a r dj s c h r g e tj s f l t e x pi m d i s c r d

; a s s e m b l e d o n p a 6

; p r o g r a m o r i g i n

; l i s t t o k e n v a ; p r i n t t o k e n v a ; e r r o r v a l u e s

s t a t u s b y t e; a s c i i o c o m m a; a s c i i o c o l o n; e n d o f l i n e; b o t t o m 6 5 x x s t ; k e y w o r d t a b l e

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

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

; e r r o r sl o a d s

l e a v e s

; a d d r e s s o f v a ; f l t . p t . a c e . # 1; c u r r e n t l i n e; c u r r e n t d e v i c e; t e m p s t o r a g e

; a r o u n d s t o r a g e

; o l d e r r v e c t o r; o l d l o a d; o l d s a v e; d e f a u l t d e v i c e *; e r r w e d g e c h a r

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

; a l t e r v e c t o r s; i r a t n e ; r o u t i n e s .; s a v e t h e o l dl v a l u e s .; r e - d i r e c t t ; n e w r o u t i n e s

T h T r a n s a c t o r 2 V o I l > 0

Page 27: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 27/84

Page 28: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 28/84

T h C o m m o d o r e 6 K e y b o a r d P a r t 2

A u b r e y S t a n l e yM i s s i s s a u g a , O n t .

K E Y W I Z A R D A A m a z i n g K e y b o a r d D r i v e r

K e W i z a r d i a a l t e r n a t i v e t t h K e r n e l K e y b o a r d D r i v e r w h i c hd e s c r i b e d i P a r t ( l a s t i s s u e ) . B u i i m o r e t h a n j u s t d r i v e r . M a n yo t h e r f e a t u r e s h a v e b e e n a d d e d . I w i l l l i t e r a l l y b r i n g j o t y o u rf i n g e r t i p s !

P a r t i f o e v e r y b o d y . I d e s c r i b e s t h e f u n c t i o n s a n g i v e s t h e B A S I CL o a d e r . I i l o n g p r o g r a m , s o t y p i n g i i m a b c h o r e . H o w e v e r ,w i t h t h n e l i s t i n f o r m a t i T h T r a n s a c t o r y o s h o u l d b s a f e f r o me r r o r s .

I P a r t w i l l b p r e s e n t i n g t h e s o u r c e . i n t e n d t b u i l d m o r ef u n c t i o n s i n t o t h i s p r o g r a m t s u i t m o w p a r t i c u l a r n e e d s . I ' s u r em a n y o y o w i l l w i s h t d t h s a m e . I y o h a v e a n y g o o d i d e a s a n d /o s o u r c e f o s o m e r e a l l y u s e f u l r o u t i n e s , p l e a s e s u b m i t t h e m t t h T R A N S A C T O R .

T h K e W i z a r d s y s t e m g i v e s y o t r u e N - K E Y R O L L O V E R c a p a b i l i t y .T h i s m e a n s t h a t k e y s a r e d i s p l a y e d a t h e y a r p r e s s e d e v e n i p r e v i o u s k e y s h a v e n o a y e b e e n r e l e a s e d . T h ' N f a c t o r c a n b e s e b t h e u s e r t a n v a l u e . B u r e m e m b e r t h a t t h C o m m o d o r e k e b o a r d m a t r i x o f t e n g e n e r a t e s f a l s e v a l u e s w h e n t h r e e o m o r e k e y s a r p r e s s e d t o g e t h e r . F o t h i s r e a s o n i m a b d e s i r a b l e t l e a v e t h i sc o u n t a 2 i t d e f a u l t s e t t i n g . E v e n 2 - K E Y R O L L O V E R v a s t l yi m p r o v e s t h e p r o d u c t i v i t y o k e y b o a r d i n p u t a n a l l o w s y o t r e p e a tt h t w k e y s p r e s s e d ; f o e x a m p l e , w h e n y o w i s h t s c r o l l t h e c u r s o rd i a g o n a l l y a c r o s s t h e s c r e e n u s i n g C u r s o r D o w n a n C u r s o r R i g h t

K e W i z a r d i t o t a l l y t r a n s p a r e n t t s o f t w a r e t h a t u s e s t h s t a n d a r dd r i v e r f o k e y b o a r d i n p u t . T h i n t e r f a c e i i d e n t i c a l t o t h a t o t h s t a n d a r d d r i v e r . h a v e u s e d i w i t h d e v e l o p m e n t p a c k a g e s l i k e' P O W E R ' , ' M O R E P O W E R ' a n ' P A L ' t f u r t h e r e n h a n c e t h s p e e d a n e a s e o p r o g r a m d e v e l o p m e n t .

I a s t a n d a r d m e m o r y c o n f i g u r a t i o n u s i n g B A S I C , K e W i z a r d n e e d so n l y 2 4 b y t e s o m e m o r y w h i c h m a b l o c a t e d a a n s u i t a b l ea d d r e s s . N o r m a l l y , K e W i z a r d u s e s t h a d d r e s s r a n g e f r o m 5 3 2 2 4 t 5 3 2 4 7 ( $ C F E 8 t $ C F F F ) . T h r e s t o t h p r o g r a m i t u c k e d a w a y i t h n o r m a l l y u n u s e d b l o c k o R A b e h i n d t h B A S I C R O M . T h e r ef o r e , a d d i n g f u n c t i o n s t t h i s p r o g r a m w i l l n o t t a k e a w a y f r o m t h u s e f u l m e m o r y s p a c e .

K e W i z a r d i a i n v a l u a b l e k e y b o a r d d r i v e r f o p r o g r a m d e v e l o pm e n t a i g r e a t l y e n h a n c e s t h e d i t i n g c a p a b i l i t i e s o f t h s t a n d a r ds c r e e n e d i t o r . M u l t i p l e f e a t u r e s h a v e b e e n b u i l t i n t o t h p r o g r a m a n dt h p o t e n t i a l e x i s t s t i n c o r p o r a t e m a n y m o r e . F o r c o m p l e t e f l e x i b i li t y , t h e u s e r i a l l o w e d t m a h i o w r o u t i n e t a n k e y .

F o t h o s e w h w o u l d l i k e t o r e a r r a n g e t h k e y b o a r d , K e W i z a r da l l o w s e a c h a n e v e r y k e y t b r e - c o n f i g u r e d ( e x c e p t f o t h C o n t r o l ,S h i f t a n C o m m o d o r e K e y s ) . C h a n g e o n o t w k e y s , o r t h e n t i r ek e y b o a r d f o t h a t m a t t e r . ( C a n y o s a y , " D v o r a k " ? K J H . )

A s s i g n i n g k e y s t s t r i n g s i a n o t h e r c a p a b i l i t y b u i l t i n t o t h K e W i z a r d s y s t e m . M a y o u r m o s t u s e d B A S I C k e y w o r d s , c o m m a n d s ,e t c , t o k e y s o y o u r c h o i c e a n h a v e t h e m d i s p l a y e d w h e n t h k e y s a r p r e s s e d .

C h a n g i n g t h e c o l o u r o b o r d e r , b a c k g r o u n d o t e x t c a n b e d o n e b h i t t i n g k e w i t h K e W i z a r d . C y c l e t h r o u g h t h c o m b i n a t i o n s u n t i ly o f i n d o n t h a t s u i t s y o b e s t .

K e W i z a r d a l l o w s y o t s a v e y o u r k e y b o a r d p r o f i l e o d i s k e t t e a f t e ry o h a v e m a p p e d t h k e y b o a r d t y o u r o w p a r t i c u l a r r e q u i r e m e n t s .M o r e t h a n o n p r o f i l e m a b s a v e d , t b l o a d e d i a a n f u t u r e t i m ew h e n n e e d e d .

T h B A S I C L o a d e r

t h K e W i z a r d s y s t e m i p r o v i d e d i t h f o r m o B A S I C L o a d e rp r o g r a m c a l l e d " K E Y W I Z - 6 4 " . T h i s p r o g r a m d o e s t h f o l l o w i n g :

1 P u t s t h K e W i z a r d m a c h i n e - l a n g u a g e i n t o m e m o r y .

T h i s i t h o n l y s t e p t h a t i p e r f o r m e d w h e n t h p r o g r a m i s i m p l yR U N . A l i s t e d , t h m a c h i n e - l a n g u a g e p r o g r a m i P O K E d i n t o m e o r f r o m t h D A T A s t a t e m e n t s i t w s e p a r a t e b l o c k s :

( a L I N E S 2 0 a n 2 0 c o n t a i n t h I R V e c t o r E n t r y R o u t i n e , 2 b y t e s .N o r m a l l y t h i s i l o a d e d i n t o l o c a t i o n 5 3 2 2 4 . B u t s i n c e i i t o t a l l yr e l o c a t a b l e , y o m a w i s h t m o v e i t s o m e o t h e r l o c a t i o n . T d s o s i m p l y a s s i g n t h n e a d d r e s s t t h e v a r i a b l e i L I N E 5 2 A l s o i L I N E 5 i t h e v a l u e o t h N - K E Y R O L L O V E R c o u n t , N K T h i s i a s s i g n e d v a l u e o 2 Y o m a c h a n g e i t a n v a l u e , b u r e m e m b e rt h a t t h C o m m o d o r e K e y b o a r d h a r d w a r e c a g i v e f a l s e v a l u e s w h e nm o r e t h a n t w k e y s a r p r e s s e d s i m u l t a n e o u s l y . F o t h i s r e a s o n ,w o u l d l e a v e t h e v a l u e a 2

w o r d o w a r n i n g f o ' P O W E R ' u s e r s . f o u n d t h a t r e l o c a t i n g t h p r o g r a m i t h e C a s s e t t e B u f f e r i n t e r f e r e s w i t h P O W E R ' S S t r i n g S e a r c hf a c i l i t y .

( b L I N E 3 0 o c o n t a i n s t h e K e W i z a r d m a c h i n e - l a n g u a g e p r g r a m , 2 . 5 K b y t e s . T h i s i l o a d e d b e h i n d t h B A S I C R O M , s t a r t i n g a 4 1 2 1 6 ( $ A 1 0 0 ) .

2 S a v e s K e y W i z a r d o n d i s k e t t e .

T h r o u t i n e a L I N E 7 w i l l s a v e t h K e W i z a r d m a c h i n e - l a n g u a g ep r o g r a m t d i s k a s p r o g r a m f i l e ( t h i s i d o n e a f t e r e x e c u t i o n o K e W i z a r d ' s s a v e f u n c t i o n a e x p l a i n e d l a t e r ) . S a v i n g t h p r o g r a m a s f i l er e d u c e s t h l o a d i n g t i m e t h n e x t t i m e K E Y W I Z - 6 4 i r u n , s i n c e t h m a c h i n e - l a n g u a g e p r o g r a m n e e d n o b P O K E d i n t o m e m o r y f r o mD A T A s t a t e m e n t s .

3 S a v e s y o u r K e y b o a r d P r o f i l e o d i s k e t t e .

A f t e r y o h a v e r e a r r a n g e d t h k e y b o a r d , d e f i n e d s t r i n g s , e t c , y o m a s a v e t h k e y b o a r d p r o f i l e p e r m a n e n t l y o d i s k e t t e u s i n g t h r o u t i n e a L I N E 8 0

L o a d i n g T h P r o g r a m A n K e y b o a r d P r o f i l e

F i r s t , u s K E Y W I Z - 6 4 t s a v e t h K e W i z a r d m a c h i n e - l a n g u a g ep r o g r a m o n d i s k e t t e . I y o u h a v e n o n o y e d o n e t h i s , r e f e r t t h s e c t i o n o S a v i n g T h P r o g r a m . T h i s w i l l c o n s i d e r a b l y r e d u c e y o u rl o a d i n g t i m e i t h f u t u r e .

T h T r a n s a c t o r 2 O

Page 29: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 29/84

L I N E 5 t e l l s K E Y W 1 Z - 6 4 h o t g a b o u t l o a d i n g t h e K e W i z a r ds y s t e m . T h e r e a r t w v a r i a b l e s a s s o c i a t e d w i t h t h i s p r o c e s s . ' T B $ ' i a s s i g n e d t h K E Y B O A R D P R O F I L E n a m e , a n d ' P G $ ' t h P R O G R A MN a m e . I n i t i a l l y T B " K E R N E L " a n P G " K P R G " . T h e s e d e f a u l tv a l u e s t e l l K E Y W I Z - 6 4 t h a t ( a t h s t a n d a r d k e y b o a r d a r r a n g e m e n t a p r o v i d e d b t h K E R N E L i t b e u s e d ( a o p p o s e d t p r o f i l e f r o md i s k ) a n ( b t l o a d K e W i z a r d f r o m t h D A T A s t a t e m e n t s i l i n e s 3 0 o n w a r d s r a t h e r t h a n f r o m d i s k f i l e . T h i s i t h s e t - u p u s e d t h f i r s tt i m e K E Y W I Z - 6 4 i r u n ; a f t e r t h a t , t h K e W i z a r d m a c h i n e - l a n g u a g ep r o g r a m i l o a d e d f r o m d i s k f i l e .

I y o a s s i g n a n O T H E R n a m e t T B i L I N E 5 0 t h e n K E Y W I Z - 6 4w i l l l o a d t h e K e y b o a r d P r o f i l e f r o m d i s k u s i n g T B a t h e f i l e n a m e .

I y o a s s i g n a n O T H E R n a m e t P G i L I N E 5 0 t h e n " K E Y W I Z -6 4 w i l l l o a d t h e K e W i z a r d m a c h i n e l a n g u a g e p r o g r a m f r o m d i s ku s i n g P G a s t h e f i l e n a m e .

O n c e y o u h a v e s a v e d t h p r o g r a m o d i s k e t t e , y o s h o u l d m o d i f y t h v a l u e o P G i L I N E 5 t t h s a v e d n a m e . T h e n y o m a d e l e t eL i n e s 3 0 o n w a r d s a t h e y w i l l n l o n g e r b r e q u i r e d . Y o u ' l l n e e d t h r o u t i n e s a t h b e g i n n i n g o K E Y W I Z - 6 4 t m a k e n e k e y b o a r dp r o f i l e s e l i m i n a t i n g a l t h o s e u n n e c e s a r y D A T A s t a t e m e n t s w i l lc o n s i d e r a b l y r e d u c e t h l o a d i n g t i m e . Y o s h o u l d m a k e B a c k u pV e r s i o n o K E Y W I Z - 6 4 b e f o r e y o s t a r t t m o d i f y i t

I y o d n o h a v e u t i l i t y t d e l e t e B A S I C l i n e s a u t o m a t i c a l l y , w o u l ds u g g e s t t h a t y o s a v e K E Y W I Z - 6 4 a f t e r y o u h a v e e n t e r e d a l l i n e s u t L i n e 3 0 0 . A f t e r e n t e r i n g t h e r e m a i n i n g D A T A s t a t e m e n t s , s a v e" K E Y W I Z - 6 4 W / D A T A " a B A C K U P v e r s i o n o a n o t h e r d i s k e t t e .F i n a l l y , f o l l o w t h e i n s t r u c t i o n s ( b e l o w ) t s a v e t h m a c h i n e l a n g u a g ef o K e W i z a r d a p r o g r a m f i l e o t h d i s k e t t e t h a t c o n t a i n s y o u ro r i g i n a l , s h o r t e n e d v e r s i o n . F r o m t h e n o u s y o u r s h o r t v e r s i o n .

S a v i n g T h P r o g r a m A n K e y b o a r d P r o f i l e

A f t e r t h e l o a d e r i R U o n c e , t h e K e W i z a r d m a c h i n e - l a n g u a g ep r o g r a m c a n b e s a v e d a P R f i l e o d i s k .T h n a m e o t h P R O G R A M f i l e u n d e r w h i c h t h K e W i z a r dm a c h i n e - l a n g u a g e p r o g r a m i s a v e d i a s s i g n e d t t h v a r i a b l e P G i L I N E 7 2 . 1 h a v e u s e d t h n a m e " K W I Z " . Y o m a c h a n g e t h i s t a n o t h e r n a m e i y o l i k e . T h e n t y p e :

C O N T R O L a n S P A C E B A R

E a c h t i m e y o t y p e t h i s c o m m a n d , K e W i z a r d w i l l c o p y e i t h e r t h P r o g r a m o t h K e y b o a r d P r o f i l e i n t o t h m e m o r y a r e a b e g i n n i n g a 4 9 1 5 2 ( $ C 0 0 0 ) . S o b e s u r e t h a t y o u d o n o h a v e a n y t h i n g r u n n i n g i t h i s a r e a w h e n y o e n t e r t h i s c o m m a n d . K e W i z a r d w i l l d i s p l a y a a p p r o p r i a t e m e s s a g e t t e l l y o w h i c h o p e r a t i o n w a p e r f o r m e d . S o i y o s e e t h e m e s s a g e , " S A V E T B " , y o s h o u l d t h e n e n t e r t h e c o m m a n da g a i n a n " S A V E P G w i l l b d i s p l a y e d t h e n e x t t i m e . K e W i z a r da l t e r n a t e s b e t w e e n t h t w e a c h t i m e t h c o m m a n d i e n t e r e d . T y p e :

R U 7

a n t h K e W i z a r d m a c h i n e - l a n g u a g e p r o g r a m w i l l b e s a v e d o d i s k e t t e .

T h n a m e o t h K E Y B O A R D P R O F I L E u n d e r w h i c h t h t a b l e s a r s a v e d i a s s i g n e d t t h e v a r i a b l e T B i L I N E 8 2 . 1 h a v e u s e d t h n a m e" K W I Z . T B " . Y o m a c h a n g e t h i s t o a n o t h e r n a m e i y o l i k e . T h e ne n t e r t h a b o v e c o m m a n d u n t i l y o s e t h m e s s a g e , " S A V E T B " .T y p e :

R U 8 a n t h e c u r r e n t k e y b o a r d p r o f i l e w i l l b e s a v e d o d i s k e t t e .

N o s a v e t h s h o r t e n e d v e r s i o n o K E Y W I Z - 6 4 ( L I N E S u t 2 5 0 )w i t h t h n e a s s i g n m e n t s f o P G a n d T B S . E a c h t i m e t h i s p r o g r a m i R U N , t h K e W i z a r d p r o g r a m w i l l b e l o a d e d f r o m d i s k d i r e c t l y i n t om e m o r y .

Y o m a w i s h t s a v e v a r i e t y o K e y b o a r d P r o f i l e s t s u i t d i f f e r e n ta p p l i c a t i o n s . R e m e m b e r t u s d i f f e r e n t n a m e s i n t h i s c a s e a n t a s s i g n t h e d e s i r e d n a m e t T B i L I N E 5 b e f o r e r u n n i n g K E Y W I Z -6 4

T r e c a p t h u s o t h B A S I C K E Y W I Z - 6 4 p r o g r a m : t h f i r s t t i m e y o r u t h p r o g r a m , i s h o u l d b u s e d i e x a c t l y t h s a m e f o r m a i a p p e a r s i t h l i s t i n g . W h e n R U N , i w i l l p l a c e t h e K e y W i z a r dm a c h i n e - l a n g u a g e p r o g r a m a n d d e f a u l t k e y b o a r d p r o f i l e i m e m o r y .A f t e r t h a t , n e v e r s i o n o " K E Y W I Z - 6 4 " c a b c r e a t e d , o n w i t h o u tt h D A T A s t a t e m e n t s ( l i n e s 3 0 t e n d ) , a n w i t h t h e a s s i g n m e n t s i l i n e 5 c h a n g e d t o

t b k w i z . t b " : p g $ = k w i z "( a s s u m i n g t h d e f a u l t f i l e n a m e s )

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

T h e K e y W i z a r d m a c h i n e - l a n g u a g e p r o g r a m i s a v e d t d i s k w i t h :

C T R L / S P A C E , t h e n R U 7

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

C T R L / S P A C E , t h e n R U 8 0

( T h e C T R L / S P A C E c o m b i n a t i o n a c t s a s a t o g g l e a n a l t e r n a t e l yc o m m i t s t h p r o g r a m o t h p r o f i l e t o m e m o r y w h e r e i c a b r e a d b t h s a v e r o u t i n e s )

C h a n g i n g T h S c r e e n C o l o u r s

T h S c r e e n C o l o u r s m a b e c h a n g e d t a n o t h e 1 6 s t a n d a r d c o l o u r sb u s i n g t h e f o l l o w i n g c o m m a n d s :

C O N T R O L a n H O M E f o B o r d e rC O N T R O L a n D E L E T E f o S c r e e nC O N T R O L a n R E T U R N f o T e x t

U s p a r t i c u l a r c o m m a n d r e p e a t e d l y u n t i l t h d e s i r e d c o l o u r i d i s p l a y e d . T H E S E C O M M A N D S O N L Y W O R K I D I R E C T M O D E .

R e p e a t M o d e

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

C O N T R O L a n S H I F T

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

A l t e r n a t i v e I N S E R T / D E L E T E M o d e

T h a l t e r n a t i v e I n s e r t p u t s t h B A S I C e d i t o r i n t o p e r m a n e n t " i n s e r tm o d e " , w h e r e s p a c e i a u t o m a t i c a l l y o p e n e d u i t e x t a c h a r a c t e r sa r e e n t e r e d . I o t h e r w o r d s , a l c h a r a c t e r s t t h r i g h t o f t h e c u r s o rm o v e f o r w a r d a y o t y p e , u n t i l t h B A S I C l i n e i f u l l ( 8 c h a r a c t e r sl o n g ) .

T h a l t e r n a t i v e D e l e t e f u n c t i o n u s e s t h e D E L E T E k e t d e l e t e t h c h a r a c t e r u n d e r t h c u r s o r . A l c h a r a c t e r s t t h r i g h t o t h d e l e t e d

T h T r a n s a c t o r 2 V o l u m e 5 I s s u e 0

Page 30: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 30/84

p o s i t i o n , u t t h e n o t h B A S I C L i n e , a r a u t o m a t i c a l l y m o v e d l e f tb o n p o s i t i o n . T d e l e t e t t h e n o t h B A S I C L i n e , j u s t h o l d d o w nt h D E L E T E k e u n t i l a l t h e c h a r a c t e r s a r e r a s e d .

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

C O N T R O L a n C O M M O D O R ET H I S C O M M A N D M A B E N T E R E D A A N T I M E , B U T T H EA L T E R N A T I V E I N S E R T / D E L E T E M O D E W I L L O N L Y B I E F F E C TD U R I N G D I R E C T M O D E .

S t r i n g s

Y o m a a s s i g n a s t r i n g t k e o " u n d o " a p r e v i o u s l y d e f i n e d s t r i n gb e n t e r i n g t h e c o m m a n d :

C O N T R O L a n C U R S O R D O W NK e W i z a r d w i l l d i s p l a y t h e m e s s a g e :

S T R I N G

I c a s e y o h a v e e n t e r e d t h e c o m m a n d i n e r r o r , t y p e R E T U R N t a b o r t . O t h e r w i s e e n t e r t h k e y o u w a n t t m a k e i n t o s t r i n g o t u n d o f r o m p r e v i o u s a s s i g n m e n t . A l v a l u e s a r p e r m i s s i b l en o r m a l , s h i f t e d , C o m m o d o r e o c o n t r o l . T h e r e a r s o m e r e s t r i c t i o n s ,f o e x a m p l e y o c a n n o t a s s i g n a k e t h a t h a a l r e a d y b e e n a s s i g n e d t s o m e o t h e r f u n c t i o n l i k e R e - c o n f i g u r e d K e o r U s e r R o u t i n e . T h k e y o e n t e r w i l l r e p l a c e t h e ' ? ' p r o m p t a n a n = s i g n w i l l b a d d e d ,e g . ,

S T R I N G

T h e n e n t e r a s t r i n g o e l s e t y p e R E T U R N i y o w i s h t u n d op r e v i o u s l y d e f i n e d s t r i n g . T h s t r i n g m a b u t 3 c h a r a c t e r s . U s t h R E T U R N k e t t e r m i n a t e t h s t r i n g . I y o w i s h t i n c l u d eR E T U R N w i t h i n t h e s t r i n g , t h e n t y p e ' S H I F T E D R E T U R N ' . T h i s w i l lc a u s e n e w - l i n e o t h s c r e e n , b u w i l l n o t e r m i n a t e t h s t r i n g .

U T 3 S T R I N G S M A B A S S I G N E D . S T R I N G W I L L B E D I P L A Y E D W H E N I T K E I P R E S S E D , B U T O N L Y I D I R E C T M O D E .I R U M O D E , T H V A L U E O F T H E O R I G I N A L K E Y , N O T H S T R I N G , W I L L B P A S S E D T T H P R O G R A M .

R e - C o n f i g u r e d K e y s

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

C O N T R O L a n C U R S O R R I G H T

K e W i z a r d w i l l d i s p l a y t h m e s s a g e :C O N F I G ?

O n c e a g a i n , t y p e R E T U R N t a b o r t . O t h e r w i s e e n t e r t h k e y o w a n tt r e - c o n f i g u r e . J u s t l i k e S t r i n g s , a l v a l u e s a r p e r m i s s i b l e a n s i m i l a r r e s t r i c t i o n s a p p l y . H i R E T U R N t u n d o t h k e ( i i i w a p r e v i o u s l y r e - c o n f i g u r e d ) o r e l s e e n t e r t h e n e c h a r a c t e r w h i c h w i l lt a k e i t p l a c e . W h e n y o a s s i g n v a l u e , u s t h O R I G I N A L K e y , n o a n o t h e r w h i c h m a h a v e b e e n r e - c o n f i g u r e d t t h i s v a l u e . F o e x a m p l e , i y o a s s i g n " A t k e " Q a n t h e n w i s h t a s s i g n " Q t k e " J " , u s t h " Q k e f o t h a s s i g n m e n t , e v e n t h o u g h t h " Q k e h a a l r e a d y b e e n g i v e n v a l u e o " A I t h i s w a y o m a r e a r r a n g ea m a n y k e y s a y o w i s h .

R E - C O N F I G U R E D K E Y S M A I N T A I N T H E I R A S S I G N E D V A L U E S I B O T H D I R E C T A N R U M O D E S .

U s e r R o u t i n e K e y s

Y o m a a s s i g n U s e r R o u t i n e t k e o u n d o p r e v i o u s l y a s s i g n e dr o u t i n e b e n t e r i n g t h c o m m a n d :

C O N T R O L a n R U S T O PK e W i z a r d w i l l d i s p l a y t h e m e s s a g e :

U S E R ?U s R E T U R N t a b o r t , o t h e r w i s e e n t e r t h e k e y o w i s h t h a v ea s s i g n e d o t u n d o . H i R E T U R N t u n d o a a s s i g n m e n t o e l s e e n t e rt h s t a r t a d d r e s s o t h U s e r R o u t i n e i H e x a d e c i m a l . c h a r a c t e ra d d r e s s i m a n d a t o r y . T h a s s i g n e d r o u t i n e w i l l b a u t o m a t i c a l l ys t a r t e d w h e n e v e r t h k e i p r e s s e d .

Y o s h o u l d b e a r i m i n d t h a t t h U s e r R o u t i n e r u n s w i t h i n t h I R I n t e r r u p t . T h i s f a c i l i t y a l l o w s y o t d e v e l o p y o u r o w e d i t i n g , o o t h e r s u i t a b l e , r o u t i n e s a n t h e n p l u g t h e m i n t o K e W i z a r d . R e t u r nt K e W i z a r d b y u s i n g a n " R T S " i n s t r u c t i o n w i t h r e g i s t e r " X c o n t a i n i n g a n s t a n d a r d A S C I I k e y b o a r d c o d e y o m a w i s h t h a v ed i s p l a y e d o r a c t i o n e d . I y o d n o w i s h t p a s s b a c k a n A S C I I v a l u et h e n s e " X t t h v a l u e , $ F F .

B a c k g r o u n d R o u t i n eY o m a w i s h t r u b a c k g r o u n d t a s k o y o u r o w o e v e r yk e y b o a r d ( t i m e r ) i n t e r r u p t . T o d o t h i s , c h a n g e t h S E C O N D a n T H I R D B Y T E S o t h D A T A S t a t e m e n t i L I N E 2 0 0 . h a v e u s e d 3 5 2 3 4 , w h i c h i t h a d d r e s s o a R T i n s t r u c t i o n i t h e K e r n e l . B c h a n g i n g t h e s e t t h a d d r e s s o y o u r o w r o u t i n e , t h J S i n s t r u c t i o n( f i r s t b y t e , 3 2 w i l l c a u s e y o u r o w r o u t i n e t b c a l l e d . R e m e m b e r t h a d d r e s s i e n t e r e d i t h n o r m a l c o n v e n t i o n , l o b y t e t h e n h i g h b y t e .

C o n c l u s i o nT h i s e n d s P a r t o t h C o m m o d o r e 6 4 K e y b o a r d . r e a l l y e n j o y e dd e v e l o p i n g t h K e W i z a r d s y s t e m a n h o p e y o e n j o y t h r e s u l t . G o t P a r t ( n e x t i s s u e ) i y o u h a v e a n y i n t e r e s t i t h e d e s i g n o K e y b o a r d D r i v e r o i y o u w i s h t a d t t h e r o u t i n e s a l r e a d y b u i l t i n t oK e W i z a r d . Y o m a f i n d t h e e x e r c i s e i n s t r u c t i v e a n u s e f u l .

K E Y W I Z - 6 4 : t h B A S I C l o a d e r / f i l e s a v e r f o K e W i z a r d

I H D B C K G

F

A H M

I

G F P

I C F

P 1

1 r e * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *1 r e • a a m a z i n g k e y b o a r d d r i v e r * 1 r e m * * * * f o y o u r c o m m o d o r e 6 * * * *1 8 r e m * * * a u b r e y S t a n l e y d e 1 9 8 4 * * 2 0 r e m * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *2 r e * 5 t b $ = " k e r n e l " : p g $ = " k p r g " : r e m * t e l l s l o a d e r h o

t l o a d k w i z *5 5 3 2 1 6 : n k 2 : r e m * i r q a d d r e s s n - k e y r o l l o v e r

c o u n t *5 i t b " k e r n e l " a n d p g $ = " k p r g " t h e n 1 0 0 : r e u s

k e r n e l t a b l e s d a t a l i n e s *5 6 i f f t > 1 t h e n 1 0 0 : r e m * p r o g r a m a n t a b l e f i l e s l o a d e d

f r o m d i s k *5 i f f = t h e n 6 2 : r e m * p r o g r a m f i l e l o a d e d f r o m d i s k *6 f : i p g $ O " k p r g " t h e n p g 1 : l o a d " 0 : " + p g $ , 8 , 1 :

r e * l o a d p r o g r a m f i l e *6 f 2 : i f t b $ < > " k e r n e l " t h e n t 1 2 8 : l o a d 0 :

t b $ , 8 , 1 : r e m * l o a d t a b l e f i l e *6 g o t o 1 0 6 5 r e m * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * «7 r e * s a v e p r o g r a m , t y p e - r u 7 0 7 p g $ = " k w i z " : r e m * p r o g r a m f i l e n a m e *7 4 a d 4 1 2 1 6 : b d 4 9 1 5 2 : n = 2 4 0 0 : r e m * p r o g a d d r e s s ,

s a v e d f r o m a d d r e s s , b y t e c o u n t *7 o p e n 2 , 8 , 2 , " @ : " + p g , p , w "7 g o t o 8

T h T r a n s a c t o r 2 V o l u m e 5 I s s u e 0

Page 31: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 31/84

J I

M L C N B A J P A B E N M D F

L L L

A H G C K N K N L E A N N B A O

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

7 r e r n * * * * * * * * * * * *8 r e * s a v e t a b l e s , t y p e - r u 8 0 8 t b k w i z . t b " : r e m * t a b l e f i l e n a m e *8 a d 4 7 0 7 2 : b d 4 9 1 5 2 : n 2 0 8 0 : r e m * t a b l e a d d r e s s ,

s a v e d f r o m a d d r e s s , b y t e c o u n t *8 o p e n 2 , 8 , 2 , " ® : " + t b $ + " , p , w "8 8 p r i n t # 2 , c h r $ ( a d - i n t ( a d / 2 5 6 ) * 2 5 6 ) ;9 p r i n t # 2 , c h r $ ( a d / 2 5 6 ) ;9 f o t n - 9 p r i n t # 2 , c h r $ ( p e e k ( b d i ) ) ;9 n e x t9 c l o s e 2 : e n d9 r e * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *1 0 c 0 : f o r = 0 t o 2 3 : r e m * i r q v e c t o r c o d e *1 0 r e a d a : p o k e n , a : c h c + a : n e x t1 0 i c h < > 1 9 9 6 t h e n p r i n t " e r r o r i d a t a " : e n d1 0 i p t h e n 1 1 2 : r e m b y p a s s p r o g r a m p o k e s i

p r o g r a m l o a d e d f r o m d i s k *1 0 6 c h O : f o r = 4 1 2 1 6 t 4 3 6 1 5 : r e m * k w i z p r o g r a m

c o d e *1 0 r e a d a : p o k e j , a : c h c a . n e x t1 0 i c h < > 3 0 1 9 5 2 t h e n p r i n t " e r r o r i d a t a " : e n d1 1 2 p o k e 4 1 2 1 6 , t b : r e m * t e l l s p r o g r a m w h e t h e r t a b l e s a r

l o a d e d f r o m d i s k *1 1 p o k e 4 1 2 1 8 , n k : r e m * t e l l s p r o g r a m t h n - k e y f a c t o r *1 1 p o k e 5 6 3 3 4 , p e e k ( 5 6 3 3 4 ) a n d 2 5 4 : r e m * d i s a b l e

k e y b o a r d ( t i m e r ) i n t e r r u p t *1 2 p o k e 7 8 8 , ( i - i n t ( i / 2 5 6 ) * 2 5 6 ) : r e m * s e t u i r v e c t o r

a d d r e s s l o w b y t e *1 2 2 p o k e 7 8 9 , ( i / 2 5 6 ) : r e m * s e t u i r v e c t o r h i g h b y t e *1 2 4 p o k e 5 6 3 3 4 , p e e k ( 5 6 3 3 4 ) o r 1 : r e m * e n a b l e k e y b o a r d

( t i m e r ) i n t e r r u p t1 2 6 e n d : r e m * o l o a d i n g *1 2 r e * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *2 0 d a t a 3 2 , 3 5 , 2 3 4 , 1 6 5 , 1 , 4 1 , 2 5 4 ,

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

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

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

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

1 6 1 ,1 9

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

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

9 3 3 1

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

1 6 8 ,9 3

7 1

1 5 , 2 0 62 9 1

1 6 2 4 1 6

1 3 3

1 6 1 7

1 1 6 1 4

7

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

P N P J E I I

L K B P J E P E E G P L

G I

J A O E H

H I

G L J L O F A N E A

J F O A C

I J B L O L

G G J H

E N I

D L E D M K L

M O G F J K F

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

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

3 , 2 0 1 ,1 7 3 , 2 4 1 6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4 1 6

1 6 , 2 4 4 , 1 6 93 2 , 1 1 7 , 1 6 4

1 3 6 , 1 3 6 , 2 0 21 8 7 , 1 3 3 , 2 4 62 4 5 , 1 3 6 , 1 3 1 3 8 , 1 5 7 , 2 2 41 6 9 , 0 , 1 4 52 5 2 , 9 6 , 2 5 21 0 5 , 1 6 5 , 1 1 1 5 8 , 1 6 8 , 1 3

7 8 , 1 6 5 , 7 87 8 1 6 5 ,7 8 1 6 5 ,7 8 , 1 6 5 ,

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

8 3 3 2

8 5 7 6 7 9 , 7 8 ,7 6 , 7 6 ,

7 7 7 8 7 6 8 6 3

T h e T r 2 V o l u m e S I s s u e 0

Page 32: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 32/84

M O H J K P F

J L F H O P C M N G H L

C E M P D N C H L E H F

A K H H M O K O G B P P J O N

M K G K E B G N H K K C P J

C H K E P E H N E P

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

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

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

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

1 6 6 . 1 4 2 , 1 1 6 9 , 4 2 , 1 4 11 6 9 , 2 1 9 , 1 3 3

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

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

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

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

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

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

7

I L B B J P O K M C I

H K N H A P F C

I D P G E M J B H J

B E D

I H B E P M L

O I

D N D B H O

I G B N H N P E D

G P I I K N

F F

A C G

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

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

3 4 2 4 3

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

7 6 2 2 3 ,4 2 4 0 ,

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

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

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

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

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

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

1 4 4 , 2 , 1 6 93 6 , 1 6 13 1 1 6

1 6 5 , 1 4 11 7 3 , 3 1 4 1 , 1

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

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

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

9 6 1 6 7 3

1 6 5 , 1 3 1 3 8 ,

9 6

T h T r a n s a c t o r 3 V o l u m e 5 I s s u e 0

Page 33: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 33/84

L i n k e d L i s t sP a r t

K M u r r a y S m i t hL o n d o n , O n t .

I P a r t w e x a m i n e d h o l i n k e d l i s t s c o u l d b u s e d t " s o r t " t h r e c o r d s i f i l e i n t o p a r t i c u l a r o r d e r . I w a s h o w n t h a t t h t e c h n i q u e o l i n k i n g a v o i d e d t h s h u f f l i n g o e l e m e n t s w i t h i n t h es t o r a g e a r r a y , a l l o w e d a l t h e i t e m s t b k e p t i t h s a m e a r r a y a n p e r m i t t e d d i f f e r e n t g r o u p s o t h e s e i t e m s t b s o r t e d o d i f f e r e n tf i e l d s .

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

W n o m u s t w r i t e p r o g r a m w h i c h w i l l l e t h c o m p a n y u p d a t e i t l i s t s a v e h i c l e s a r e r e t u r n e d , r e n t e d , s e r v i c e d , s o l d o p u r c h a s e d , a n a l s o d i s p l a y o r p r i n t a n o n o t h l i s t s i c o r r e c t o r d e r . T h i s p r o g r a mw i l l b o n t b e u s e d i n t e r a c t i v e l y o v e r a n o v e r a g a i n , w h e r e a s t h p r e v i o u s s t a r t u p p r o g r a m w a o n l y u s e d o n c e t p r o d u c e t h i n i t i a ll i n k a g e s . F o e a s e o u s t h i s p r o g r a m w i l l b m e n u - d r i v e n . F i g u r es h o w s t h m e n u c h o i c e s .

L o a d i n g t h L i s t s

T h l i n k e d l i s t s g e n e r a t e d i P a r t w e r e s t o r e d i s e q u e n t i a l f i l ea l o n g w i t h t h s i z e o t h a r r a y s b e i n g u s e d a n t h e n t r y p o i n t s t e a c h o t h l i n k e d l i s t s . P r o g r a m r e a d s t h e s e d a t a . T a b l e d e f i n e st h v a r i a b l e s u s e d .A f t e r r e a d i n g i t h e a r r a y s i z e ( S w h i c h h a b e e n u s e d f o s a v i n g t h f i l e ( l i n e 3 0 ) , t h u s e r i t h e n a s k e d i h e / s h e w i s h e s t i n c r e a s e t h ea r r a y s i z e s ( l i n e s 7 0 - 1 4 0 ) . T h i s m i g h t b e r e q u i r e d w h e n s e v e r a l n e v e h i c l e s a r p u r c h a s e d . A a a s s i s t , t h n u m b e r o e l e m e n t s c u r e n t l y u s e d i s h o w n ( 4 0 - 5 0 ) . F o l l o w i n g t h i s d e c i s i o n , t h s t o r e d d a t ai r e a d i ( 2 4 0 - 2 7 0 ) . I t h a r r a y s w e r e i n c r e a s e d i s i z e t h e e x t r ae l e m e n t s i t h l i c e n c e p l a t e , d u d a t e a n m i l e a g e a r r a y s a r n o s e t b l a n k s ( 3 2 0 - 3 4 0 ) a i t h P a r t p r o g r a m a n d t h e p o i n t e r l i s ta l t e r e d t a c c o m m o d a t e t h n e f r e e e l e m e n t s ( 3 6 0 - 4 1 0 ) .

L i n e s 2 3 a n 2 6 a r n e e d e d d u e t t h d y n a m i c n a t u r e o B A S I Cs t r i n g s . T h i s p r o v i d e s f o v e r y f l e x i b l e p r o g r a m m i n g a i i n o n e c e s s a r y t t e l l t h c o m p u t e r h o w m a n y b y t e s t a l l o c a t e f o e a c hs t r i n g v a r i a b l e ; r a t h e r t h a l l o c a t i o n i b a s e d o t h n u m b e r o b y t e sa c t u a l l y u s e d . A u n f o r t u n a t e s i d e e f f e c t o f t h i s i t h a t w h e n s t r i n gs u c h a A B C " i s a v e d i a s e q u e n t i a l f i l e a n t h e n r e c a l l e d , t h l e a d i n g b l a n k s a r l o s t . S i n c e t h e d e c i s i o n w a m a d e i P a r t t u s s t r i n g s t s t o r e m i l e a g e s , t h v a l u e s r e a d f r o m t h f i l e m u s t b " m a s s a g e d " t p u i l e a d i n g b l a n k s w h e r e n e c e s s a r y . O t h e r w i s e t h m i l e a g e s t r i n g " 1 5 6 9 " w i l l b g r e a t e r t h a n t h m i l e a g e s t r i n g " 1 4 5 8 3 " !L i n e s 2 3 a n d 2 6 0 m a k e s u r e " 1 5 6 9 " i u s e d a 1 5 6 9 " .

D i s p l a y i n g o P r i n t i n g a L i s t

T d i s p l a y o p r i n t o n o t h l i s t s i o r d e r w s i m p l y e n t e r t h e a r r a yu s i n g t h e p o i n t e r t t h s t a r t o t h l i s t a n t h e n , u s i n g t h e l i n k a g ea r r a y , f o l l o w t h e l i s t t h r o u g h u n t i l z e r o i f o u n d a p o i n t e r t t h

n e x t e l e m e n t . M e n u s e l e c t i o n 0 o w i l l p r o m p t w i t h s e c o n d m e n ur e q u e s t i n g w h i c h o t h e t h r e e l i s t s i r e q u i r e d .

U p d a t i n g L i s t

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

M e n u s e l e c t i o n s 2 - c o n t r o l l i s t u p d a t e s t l o r e t u r n e d v e h i c l e , t r e n t o n e , t s e n d o n f o s e r v i c i n g , t r e m o v e a v e h i c l e t b s o l d a n t m a k e a v a i l a b l e a v e h i c l e t h a t h a j u s t b e e n p u r c h a s e d .

T h M e c h a n i c s o U p d a t i n g

A d d i n g o r e m o v i n g a n e l e m e n t t o f r o m l i s t a r e t h e b a s i c l i s tu p d a t i n g o p e r a t i o n s . T h c l a s s i c a l w a o d e l e t i n g a n e l e m e n t i t l o c a t e i i t h e a r r a y a n m o v e e v e r y e l e m e n t p a s t i o n l o c a t i o nc l o s e r t t h f r o n t . F i g u r e 2 s h o w s a a l p h a b e t i c a r r a y f r o m w h i c hi t b d e l e t e d a n F i g u r e 2 s h o w s t h e a r r a y a f t e r t h d e l e t i o n .I n s e r t i o n o t h l e t t e r i n t o t h a r r a y o F i g u r e 2 r e q u i r e s l o c a t i n gw h e r e t h b e l o n g s , m o v i n g e v e r y e l e m e n t p a s t t h i s s p o t o n l o c a t i o n f a r t h e r b a c k i t h a r r a y a n t h e n i n s e r t i n g t h H

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

L i n k e d l i s t s s h o w t h e i r s u p e r i o r i t y i t h e a r e a s o a d d i n g a n r e m o vi n i t e m s a w e l l . T d e l e t e a e l e m e n t , s i m p l y a l t e r t h e p o i n t e r s t a n f r o m t h i s e l e m e n t a n t h e n r e t u r n t h i s e l e m e n t t t h f r e e l i s t( m a k i n g i t h f i r s t o n a v a i l a b l e f o f u t u r e u s w h i c h w i l l t e n d t k e e pe a r l y e l e m e n t s o a r r a y s o c c u p i e d ) . T i n s e r t n e q u a n t i t y , i i s f i r s ts t o r e d i t h n e x t f r e e e l e m e n t , t h e p o i n t e r t t h f i r s t f r e e o n i a d j u s t e d , i t p r o p e r l o c a t i o n i f o u n d a n t h e n t h e p o i n t e r s t a n f r o mi a r s e t . T h i s s e e m s l i k e g r e a t d e a l o w o r k b u t t h e i m p l e m e n t a t i o ni s i m p l e a n i a v o i d s s h i f t i n g m a n y a r r a y e l e m e n t s .

C h a n g i n g a e l e m e n t f r o m o n e l i n k e d l i s t t a n o t h e r d o e s n o t r e q u i r ep h y s i c a l m o v e o t h d a t a : o n s e t o f p o i n t e r s i a l t e r e d t e x c l u d e

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

T i n s e r t o d e l e t e a n e l e m e n t a t h b e g i n n i n g o l i s t r e q u i r e s t h a tt h v a r i a b l e s t o r i n g t h e n t r y p o i n t t t h a t l i n k e d l i s t b u p d a t e da p p r o p r i a t e l y . F o r e l e m e n t s a t h e n o l i s t , i m u s t a l s o b r e m e m b e r e d t s e t h e a p p r o p r i a t e p o i n t e r t z e r o t i n d i c a t e t h e n o l i s t .

3

Page 34: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 34/84

T h U p d a t i n g P r o g r a m

P r o g r a m c o n t a i n s t h a d d i t i o n s t P r o g r a m t p e r f o r m t h m e n uf u n c t i o n s . I a d d i t i o n t o u t p u t t i n g a n u p d a t i n g l i s t s , t h m e n up r o v i d e s a a d d i t i o n a l c h o i c e : c h e c k f o o v e r d u e v e h i c l e s i w h i c ha l v e h i c l e s w i t h d u d a t e p r i o r t t h c u r r e n t d a t e a r e d i s p l a y e d o t h s c r e e n ( w i t h a p r i n t e d - l i s t o p t i o n ) . I t h i s w a a l t h e i n f o r m a t i o no a p o s s i b l y s t o l e n v e h i c l e i a v a i l a b l e q u i c k l y .

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

F i u s e d a f l a g t i n d i c a t e w h e t h e r o r n o t a n l i s t s h a v e b e e na l t e r e d d u r i n g t h r u n n i n g o t h p r o g r a m . T h f l a g i l o w e r e d ( s e t t o0 i l i n e 1 4 a n w i l l b r a i s e d ( s e t t 1 i t h e r e a r e a n c h a n g e s .

S t a r t i n g a l i n e 5 0 t h m e n u i p r e s e n t e d ( 5 0 0 - 6 2 0 ) , t h e s e l e c t i o n i o b t a i n e d ( 6 3 0 ) a n d c h e c k e d f o v a l i d i t y ( 6 4 0 - 6 6 0 ) . A l t h o u g h a l t h c h o i c e s a r e s i n g l e d i g i t , I N P U T i u s e d r a t h e r t h a n G E b e c a u s e o t h b r i e f m o m e n t i w h i c h t h u s e r m i g h t d e t e c t a e r r o n e o u s i n p u t a n t h e n b a b l e t c h a n g e i t A t h p r o g r a m s t a n d s , t h i s i i m p o r t a n t a i h a n o b e e n " i d i o t - p r o o f e d " a w o u l d b n e c e s s a r y i c o m m e r c i a lp a c k a g e . S o m e o t h o p t i o n s w i l l n o l e y o e x i t t h e m u n t i l t h e y h a v eb e e n s u c c e s s f u l l y c o m p l e t e d . O c o u r s e y o c o u l d u s e t h c o m p l em e n t a r y r o u t i n e t u n d o t h e r r o r i t h i s e v e r h a p p e n s t y o u . K e e p i m i n d a s w e l l t h a t t h p u r p o s e o t h p r o g r a m i t i l l u s t r a t e t h u s o l i n k e d l i s t s , n o b u l l e t - p r o o f i n g !

C o n t r o l i t h e n t r a n s f e r r e d t t h e a p p r o p r i a t e s u b r o u t i n e ( 6 7 0 - 7 0 0 ) .E v e r y r e t u r n f r o m s u b r o u t i n e w i l l s e n d t h u s e r b a c k t t h m a i nm e n u ( 6 9 0 , 7 1 0 ) .

T h b l o c k b e g i n n i n g w i t h l i n e 1 0 0 0 h a n d l e s o p t i o n s a n f o s h o w i n g p a r t i c u l a r l i s t . m e n u i p r e s e n t e d ( 1 0 1 0 - 1 0 7 0 ) a n t h s e l e c t i o n ( 1 0 8 0 ) i c h e c k e d f o v a l i d i t y ( 1 0 9 0 - 1 1 1 0 ) . I t h o p t i o n i n o " 3 t r e t u r n t t h m a i n m e n u ( 1 1 2 0 ) , t h e n t h e e n t r y p o i n t t t h a p p r o p r i a t e l i s t i e s t a b l i s h e d ( 1 1 3 0 - 1 1 5 0 ) . I t h e e n t r y p o i n t t l i s th a p p e n s t b z e r o ( 1 1 6 0 ) , t h e n t h e r e a r e n v e h i c l e s i t h l i s t . A f t e ro p e n i n g c h a n n e l t t h p r i n t e r i n e c e s s a r y ( 1 1 8 0 ) , t h i n f o r m a t i o na b o u t t h f i r s t v e h i c l e i t h l i s t i s d i s p l a y e d o p r i n t e d a r e q u i r e d( 1 1 9 0 - 1 2 0 0 ) a n c h e c k i m a d e t s e i t h i s i t h l a s t v e h i c l e i t h l i s t ( 1 2 1 0 ) . I n o t , t h e v a r i a b l e E i c h a n g e d t p o i n t t t h e n e x t i t e mi t h l i s t ( 1 2 2 0 ) , t h i s i p r i n t e d o d i s p l a y e d a n s o n A e n o l i s t i n g m e s s a g e i p r i n t e d ( 1 2 4 0 ) , t h p r i n t e r c h a n n e l i s h u t d o w n i n e c e s s a r y ( 1 2 5 0 ) a n t h p r o g r a m p a u s e s ( 1 2 6 0 - 1 2 9 0 ) b e f o r e r e t u r ni n t t h e d i s p l a y - p r i n t s u b - m e n u .

T h l i n e - 2 0 0 0 b l o c k h a n d l e s t h r e t u r n o r e n t e d v e h i c l e . A f t e rc h e c k i n g t s e i i n f a c t t h e r e a r e a n v e h i c l e s r e n t e d ( 2 0 2 0 ) a n r e t u r n i n g t t h m a i n m e n u i t h e r e a r e n o ( 2 0 3 0 - 2 0 7 0 ) , t h r e t u r n e dv e h i c l e ' s l i c e n c e p l a t e n u m b e r a n t h n e o d o m e t e r r e a d i n g a r er e q u e s t e d ( 2 0 8 0 - 2 1 5 0 ) . T h o d o m e t e r r e a d i n g i t h e n m a s s a g e d( 2 1 6 0 - 2 1 7 0 ) a d i s c u s s e d p r e v i o u s l y a n t h e v e h i c l e i l o c a t e d i t h r e n t a l l i s t a n r e m o v e d ( 2 1 9 0 - 2 2 0 0 ) . S i n c e t h s u b r o u t i n e a 1 1 0 0 0 i c a l l e d f r o m s e v e r a l o p t i o n s i t h m a i n m e n u , t h e n t r y p o i n t f o t h r e n t a l l i s t m u s t b s p e c i f i e d ( 2 1 9 0 ) . v a l u e o f o F i n d i c a t e s t h a ts o m e p r o b l e m o c c u r r e d i t h s e a r c h s u b r o u t i n e a n a n i m m e d i a t er e t u r n t t h m a i n m e n u i p e r f o r m e d ( 2 2 1 0 ) . N o t e t h a t t h v a l u e o F i n o c h a n g e d u n t i l l i n e 2 2 9 0 , t h a t i u n t i l t h e v e h i c l e h a b e e ns u c c e s s f u l l y p u i n t o t h a v a i l a b l e l i s t ( 2 2 5 0 - 2 2 7 0 ) . H a v i n g f o u n d t h r e t u r n e d v e h i c l e i t h e r e n t e d l i s t , i t m i l e a g e a n d d u e d a t e e n t r i e s a r ea d j u s t e d ( 2 2 2 0 - 2 2 3 0 ) a n t h p o i n t e r t t h b e g i n n i n g o t h r e n t a l l i s ti u p d a t e d ( 2 2 4 0 ) i t h f i r s t v e h i c l e o t h r e n t e d l i s t w a t h o n r e m o v e d . P u t t i n g t h e r e t u r n e d v e h i c l e i t h e a v a i l a b l e l i s t a l s o u s e s

c a l l t g e n e r a l s u b r o u t i n e a l i n e 1 3 0 0 0 a n t h c o r r e c t l i s t e n t r yp o i n t i n e e d e d a n t h i s i a l s o u p d a t e d i n e c e s s a r y a f t e r t h e r e t u r n( 2 2 5 0 - 2 2 8 0 ) .

T h l i n e - 3 0 0 0 b l o c k l o o k s a f t e r t h e r e n t i n g o a v e h i c l e . I i v e r ys i m i l a r t t h a b o v e b l o c k a n s d o e s n o n e e d t b d e s c r i b e d i d e t a i l . L i n e 3 1 3 0 c h e c k s t s e i t h e r e a r e m o r e o f e w e r t h a nc h a r a c t e r s i t h r e q u e s t e d d u d a t e o i t h m o n t h n u m b e r i m o r et h a n 1 o i t h d a i m o r e t h a n 3 1 A g a i n n o f o o l p r o o f , b u w i l l t r a pq u i t e f e c o m m o n e r r o r s . N o t e a l s o t h d i f f e r e n t s u b r o u t i n e r q u i r e d t p u t t h e v e h i c l e i t h e r e n t e d l i s t ( 3 2 5 0 ) .

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

T h l i n e - 6 0 0 0 b l o c k c o n t r o l s t h e s e l l i n g o f v e h i c l e . I n t h i s o p e r a t i o nt h e v e h i c l e i o n l y r e m o v e d f r o m l i s t a n n o a d d e d t a n o t h e r s t h e r e i n o s e c o n d G O S U B . A l s o t h t o t a l n u m b e r o v e h i c l e s o w n e db t h c o m p a n y ( o t h n u m b e r o a r r a y e l e m e n t s a c t u a l l y i u s e ) i r e d u c e d b o n ( 6 1 8 0 ) .

T h n e x t b l o c k m a k e s n e v e h i c l e a v a i l a b l e b f i n d i n g t h e f i r s ta v a i l a b l e e l e m e n t ( 7 2 0 0 ) , s t o r i n g t h i s v e h i c l e ' s d a t a i n t h i s e l e m e n t o t h p l a t e n u m b e r a n m i l e a g e a r r a y s ( 7 2 2 0 - 7 2 3 0 ) a n t h e n r e s e t t i n gt h e p o i n t e r t t h s t a r t o t h f r e e s p a c e ( 7 2 1 0 ) . T h i s v e h i c l e i t h e nl i n k e d i n t o t h a v a i l a b l e l i s t ( 7 2 4 0 - 7 2 6 0 ) a n t h t o t a l n u m b e r o v e h i c l e s i i n c r e a s e d b o n ( 7 2 7 0 ) .

T h l i n e - 8 0 0 0 b l o c k c h e c k s f o o v e r d u e v e h i c l e s . T h m a i n p a r t i t h s e c t i o n w h i c h t r a c e s t h p a t h t h r o u g h t h l i s t o r e n t e d v e h i c l e s( 8 1 6 0 - 8 2 2 0 ) .

T h f i n a l b l o c k o c o d i n g c o m i n g f r o m t h m a i n m e n u b e g i n s a l i n e9 0 0 0 . I t h f l a g F i s t i l l d o w n , t h e n n c h a n g e s h a v e b e e n m a d e t a n l i s t s a n s o t h e p r o g r a m s t o p s a t h i s p o i n t ( 9 0 1 0 ) . I t h f l a g i r a i s e d ( v a l u e 1 ) t h e n t h e o l d f i l e c a l l e d L I N K E D L I S T S i s c r a t c h e d( 9 0 2 0 - 9 0 4 0 ) a n a n u p d a t e d o n o t h s a m e n a m e i c r e a t e d ( 9 0 5 0 -9 1 2 0 ) . L i n e 9 0 5 0 d e f i n e s c a r r i a g e r e t u r n v a r i a b l e f o u s i t h P R I N T * o p e r a t i o n .

B l o c k s b e g i n n i n g w i t h l i n e s 1 1 0 0 0 a n 1 2 0 0 0 l o c a t e a v e h i c l e b p l a t en u m b e r a n r e m o v e i f r o m t h a t l i s t . S i n c e t h e y d i f f e r o n l y i t h l a s tc o u p l e o l i n e s , i i p o s s i b l e t c o m b i n e t h e m i c h e c k i m a d e t s e w h i c h f i n i s h i n g p a r t i r e q u i r e d a n i t h c a l l i n g r o u t i n e s u s p o i n t e r w h i c h c a b e p a s s e d t t h s u b r o u t i n e t i n d i c a t e w h i c h p a r ti n e e d e d . H o w e v e r , t h e i n c r e a s e d p r o g r a m c o m p l e x i t y n e e d e d t s a v e l e s s t h a n d o z e n l i n e s i n o w a r r a n t e d .

A t h b e g i n n i n g o t h l i n e - 1 1 0 0 0 b l o c k a f l a g i s e l o ( 1 1 0 1 0 ) a n i w i l l b r a i s e d ( s e t t 1 i t h v e h i c l e i n o f o u n d i t h l i s t . T h e n t r yp o i n t t t h e a p p r o p r i a t e l i s t i c o p i e d t ( 1 1 0 2 0 ) . c h e c k i m a d e t s e i t h p l a t e n u m b e r b e i n g l o o k e d f o i a t h b e g i n n i n g o t h l i s t( 1 1 0 3 0 ) . I n o t , t h i s s u b s c r i p t i s t o r e d f o f u t u r e u s e ( 1 1 0 4 0 ) a n t h e l e m e n t t b e x a m i n e d i s e t t h n e x t o n i t h l i s t ( 1 1 0 5 0 ) . I t h i se l e m e n t i n o z e r o ( 1 1 0 6 0 ) , t h e n i i c h e c k e d f o m a t c h . I t h e l e m e n t n u m b e r i z e r o , w a r a t h e n o t h l i s t w i t h n o m a t c hm a d e . m e s s a g e i p r i n t e d , t h f l a g F i r a i s e d a n w r e t u r n t t h c a l l i n g r o u t i n e ( 1 1 0 7 0 - 1 1 1 2 0 ) . I m a t c h w a f o u n d i l i n e 1 1 0 3 0 ,t h e n c h e c k i m a d e t s e i t h m a t c h o c c u r r e d f o t h f i r s t e l e m e n ti t h l i s t ( 1 1 1 3 0 ) . I s o , t h i s v e h i c l e i r e m o v e d f r o m t h l i s t b s e t t i n gt h e e n t r y p o i n t t o t h i s l i s t t t h n e x t e l e m e n t o t h l i s t ( 1 1 1 4 0 ) . I n o t ,t h e l e m e n t i t h l i n k a r r a y w h i c h p o i n t e d t o t h i s e l e m e n t i s e t t os k i p t h i s e l e m e n t a n p o i n t t t h n e x t o n ( 1 1 1 6 0 ) . I e i t h e r o t h

3 V o l t

Page 35: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 35/84

a b o v e c a s e s , t h e l o c a t i o n o t h m a t c h i k e p t f o f u t u r e u s ( 1 1 1 7 0 ) .

A m e n t i o n e d b e f o r e , t h l i n e - 1 2 0 0 0 b l o c k i a l m o s t t h s a m e a t h o n d e s c r i b e d a b o v e . H o w e v e r , w h e n a v e h i c l e i s o l d w d n o h a v et r e m e m b e r w h e r e i i i t h a r r a y . I f a c t , w w a n t t m a k e t h a tl o c a t i o n a v a i l a b l e f o u s i a v e h i c l e i p u r c h a s e d a n s w s e t h p o i n t e r o t h r e m o v e d v e h i c l e t p o i n t t t h f i r s t e l e m e n t o t h f r e el i s t ( 1 2 1 6 0 ) a n t h e n m a k e t h e l o c a t i o n o t h r e m o v e d v e h i c l e t h en e s t a r t o f t h f r e e l i s t ( 1 2 1 8 0 ) .

T h b l o c k s a l i n e s 1 3 0 0 0 a n d 1 4 0 0 0 l o c a t e b m i l e a g e a n d u d a t er e s p e c t i v e l y t h c o r r e c t l o c a t i o n f o a i t e m i l i s t a n t h e n i n s e r t t h i t e m i t h a t s p o t . A d i s c u s s e d p r e v i o u s l y , t h e s e r o u t i n e s a l s o c o u l d b c o m b i n e d i n t o o n e . A i t h a b o v e t w b l o c k s , t h l i s t i s e a r c h e d t f i n d t h c o r r e c t l o c a t i o n f o t h e v e h i c l e w h o s e d a t a a r e i t h e l e m e n t sn u m b e r e d o t h a r r a y s ( 1 3 0 1 0 - 1 3 0 5 0 o 1 4 0 1 0 - 1 4 0 5 0 ) . T h i s i t h e q u a n t i t y t h a t h a d b e e n s a v e d a b o v e f o f u t u r e u s e . I t h e v e h i c l eb e l o n g s a t h e n o t h l i s t , t h e p o i n t e r o t h l a s t e l e m e n t i t h l i s ti s e t p o i n t t e l e m e n t ( 1 3 0 6 0 o 1 4 0 6 0 ) a n t h e p o i n t e r f o e l e m e n t i s e t t o z e r o t i n d i c a t e t h e n o t h l i s t ( 1 3 0 7 0 o r 1 4 0 7 0 ) .I i b e l o n g s a t h b e g i n n i n g o t h l i s t , t h e n t h l i s t e n t r y v a l u e i s e t ( 1 3 1 0 0 o 1 4 1 0 0 ) a n t h p o i n t e r f o e l e m e n t i s e t w h a t u s e dt b t h f i r s t e l e m e n t o t h l i s t ( 1 3 1 3 0 o r 1 4 1 3 0 ) . I t h v e h i c l eb e l o n g s s o m e w h e r e b e t w e e n t h e n d p o i n t s o t h l i s t , t h e p o i n t e r o t h p r e v i o u s v e h i c l e i c h a n g e d t p o i n t t t h i s o n ( 1 3 1 2 0 o 1 4 1 2 0 )a n t h i s o n e ' s p o i n t e r i s e t t h n e x t v e h i c l e ' s e l e m e n t n u m b e r( 1 3 1 3 0 o r 1 4 1 3 0 ) .

S u m m a r y

N o t h a t t h u p d a t i n g p r o g r a m f o R e n t a w r e c k i d e b u g g e d a n dw o r k i n g , t h s a m p l e D A T A s t a t e m e n t s u s e d i t h P a r t p r o g r a m c a b r e p l a c e d b t h a c t u a l v e h i c l e d a t a a n t h a r r a y s i z e s i n c r e a s e d t

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

I y o u h a v e h a a o p p o r t u n i t y t r u t h f i n a l p r o g r a m s f r o m P a r ta n P a r t 2 y o m a b d i s a p p o i n t e d a h o l o n g i t a k e s t e s t a b l i s ht h i n i t i a l l i n k e d l i s t s a n s u r p r i s e d a h o r a p i d l y y o r e t u r n t t h m a i n m e n u a f t e r m a k i n g c h a n g e i l i s t . R e m e m b e r t h o u g h t h a t t h i n i t i a l s e t u p i d o n e o n l y o n c e . ( A m a c h i n e l a n g u a g e s u b r o u t i n e f o t h a c t u a l l i n k i n g s e c t i o n m i g h t a p p e a l t s o m e o n e o u t t h e r e a w e l l . )

T h e r e a r s e v e r a l f e a t u r e s o l i n k e d l i s t s w h i c h h a v e n o b e e na d d r e s s e d i t h e c a r r e n t a l e x a m p l e . C o n s i d e r t h e r e q u e s t f o a l o t h d a t a a b o u t v e h i c l e w h o s e l i c e n c e n u m b e r y o a r e g i v e n . I i a w k w a r d t h a v e t g o t h r o u g h a l t h r e e l i s t s l o o k i n g f o r t h i s v e h i c l e . I a l t h e v e h i c l e s w e r e l i n k e d a l p h a b e t i c a l l y b l i c e n c e p l a t e , t h s e a r c hw o u l d b f a s t e r . T h p r o g r a m m i n g c o s t t i m p l e m e n t t h i s ? O n m o r ea r r a y .

A l s o n o t e t h a t a l o t h s e a r c h e s b e g i n a t h s t a r t o t h e l i n k e d l i s t . I t h c a s e o s e a r c h o a l v e h i c l e s f o p a r t i c u l a r p l a t e n u m b e r , w h n o j u s t l o o k a t h f i r s t e n t r y i t h p l a t e a r r a y ? I t h i s i b e f o r e t h ep l a t e w w a n t t h e n g o f u r t h e r f o l l o w i n g t h e l i n k a g e , b u i i i p a s tt h o n w w a n t t h e n w h n o b a c k u t h r o u g h t h l i s t ? T d t h i sw o u l d r e q u i r e w h a t i k n o w n a b a c k w a r d l i n k i n g o t h p l a t en u m b e r s , f a i r l y e a s y t a s k o n c e f o r w a r d l i n k i n g i u n d e r s t o o d .

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

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

F i g u r eL I N K E D L I S T M E N U

D i s p l a y a l i s tP r i n t a l i s tR e t u r n v e h i c l eR e n t v e h i c l eR e m o v e a v e h i c l e f o s e r v i c eM a k e s e r v i c e d v e h i c l e a v a i l a b l e 5S e l l v e h i c l eA d n e v e h i c l eC h e c k f o o v e r d u e v e h i c l e sQ u i t p r o g r a m

F i g u r e

2 2 2

T a b l e

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

D e s c r i p t i o n o V a r i a b l e s

S U

B a s t r i n g o b l a n k s t p r o v i d e l e a d i n g b l a n k s w h e r en e c e s s a r y i t h m i l e a g e s t r i n g s

D s i n g l e l e t t e r a n s w e r t a n y y e s / n o q u e s t i o nL t h e a r r a y o p o i n t e r s f o t h e l i n k e d l i s t sN n e a r r a y s i z e i n e e d e dP L $ , D U $ , M I $ a r r a y s f o l i c e n c e p l a t e n u m s , d u d a t e s , m i l e a g e s

t h s i z e o f t h e a r r a y s s t o r e d i t h f i l eS t h s i z e t w h i c h a r r a y s w i l l b e d i m e n s i o n e dS R , S A , S S t h e l e m e n t n u m b e r s f o t h s t a r t o t h l i s t s o v e h i c l e s

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

T a b l eD e s c r i p t i o n o V a r i a b l e s

C m a i n m e n u c h o i c eC d i s p l a y - p r i n t m e n u c h o i c eC R h o l d s k e y b o a r d e n t r y ( e x p e c t i n g a c a r r i a g e r e t u r n )D A t o d a y ' s d a t eE c u r r e n t e l e m e n t n u m b e r w h i l e g o i n g t h r o u g h l i n k e d l i s t

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

a G O S U Bt h e c u r r e n t e l e m e n t b e i n g e x a m i n e d i l i s t ( s i m i l a r t E N s u b s c r i p t o t h l a s t e l e m e n t e x a m i n e d i l i s tl o c a t i o n o a n e l e m e n t t b a d d e d t l i s t

N D a i n p u t d u d a t eN M a i n p u t o d o m e t e r r e a d i n gN P a i n p u t l i c e n c e p l a t e n u m b e rS b l a n k s p a c e u s e d f o o u t p u tS e n t r y p o i n t t l i n k e d l i s t

F F

L

T h T r a n s a c t o r 3 V o l u m e 5 I s s u e 0

Page 36: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 36/84

K A M

E M M E H A C J G K

I L F

N N O

I B J E H H K N L J E J

D N C N G G B N K F C D E P

N J O A B 0 H B G C G L C B

P r o g r a m

1 r e m - p r o g r a m2 o p e n i , 8 , 2 , " O : l i n k e d l i s t s , r "3 i n p u t # 1 , s , u l , s r s a . s s . s f4 p r i n t c h r $ ( 1 4 7 ) " t h e a r r a y s i z e s a r e " ; 5 p r i n t u l ; " e l e m e n t s a r c u r r e n t l y u s e d . "6 f o t 1 0 0 0 : n e x t7 p r i n t " d y o w i s h t i n c r e a s e t h e a r r a y s i z e s "8 p r i n t " a t h i s t i m e ? "9 p r i n t " ( t y p e o n ) : " ;1 0 g e d 1 1 i f d $ " t h e n 1 0 1 2 p r i n t d 1 3 i d $ " n t h e n 2 1 1 4 0 i f d $ O " y " t h e n 9 1 5 i n p u t " n e a r r a y s i z e " ; n 1 6 0 i f n s > s t h e n 1 9 01 7 p r i n t " n e s i z e m u s t b e g r e a t e r t h a n " ; 1 8 g o t o 1 5 1 9 0 s z = n s2 0 g o t o 2 2 2 1 0 s z2 2 d i p l $ ( s z ) , d u $ ( s z ) , m i $ ( s z ) , l d ( s z )2 3 b [ s p a c e s ] "2 4 f o t o 2 5 : i n p u t # 1 , p l $ ( ) , d u $ ( i ) , m i $ ( i ) , l d ( i )2 6 m i $ ( i ) l e f t $ ( b $ , 6 - l e n ( m i $ ( i ) ) ) m i $ ( i )2 7 n e x t2 8 c l o s e i2 9 i n O t h e n 4 4 03 0 0 r e m - i n i t i a l i z e n e a r r a y s e c t i o n s3 1 f o + t n 3 2 0 : p l $ ( i ) = " [ s p a c e s ] "3 3 : d u $ ( i ) = " [ 5 s p a c e s ] "3 4 : m i $ ( i ) [ s p a c e s ] "3 5 n e x t3 6 0 r e m - l i n k r e s t o f f r e e s p a c e3 7 0 i = s3 8 0 l d ( i )3 9 0 : i4 0 i i < n s t h e n 3 8 4 1 0 l d ( n s )4 2 0 r e m - m a k e a r r a y s i z e c h a n g e p e r m a n e n t4 3 i s z > s t h e n s 4 4 p r i n t " l i s t l o a d i n g c o m p l e t e d » 1 9 9 9 9 e n d

P r o g r a m

1 r e m - p r o g r a m1 4 f 5 0 0 r e m - m a i n m e n u5 1 p r i n t H J r e n t a w r e c k c a r e n t a l a g e n c y "5 2 p r i n t t a b ( 3 ) ; "5 3 p r i n t t a b ( 3 ) ; "5 4 p r i n t t a b ( 3 ) ; "5 5 p r i n t t a b ( 3 ) ; "5 6 p r i n t t a b ( 3 ) ; "5 7 p r i n t t a b ( 3 ) ; "5 8 p r i n t t a b ( 3 ) ; "5 9 p r i n t t a b ( 3 ) ; "6 0 p r i n t t a b ( 3 ) ; "6 1 p r i n t t a b ( 3 ) ; " m

d i s p l a y l i s t 0 p r i n t l i s t ■ . 1 r e t u r n v e h i c l e 2 r e n t v e h i c l e 3 r e m o v e v e h i c l e f o s e r v i c e . . . 4 m a k e s e r v i c e d v e h i c l e a v a i l a b l e . . 5 s e l l v e h i c l e 6 a d n e v e h i c l e 7 c h e c k f o o v e r d u e v e h i c l e s 8 q u i t p r o g r a m 9

C N P O A F F D H

H M H E P G A P C D M

I C M P H L K C J L K

M A A E P G N c p P C J I

D J C C K J G O G E J E O

H B

C J D M

6 2 p r i n t t a b ( 1 2 ) ; " H y o u r c h o i c e ( 0 - 9 ) " ; " U ) | J6 3 i n p u t6 4 0 i f c 1 > = 0 a n d c K 9 t h e n 6 7 06 5 p r i n t " « i n v a l i d c h o i c e : m u s t b e O - 9 » I * I W S 1 "6 6 g o t o 6 2 6 7 i c 1 > 1 t h e n 7 0 6 8 0 g o s u b 1 0 0 06 9 g o t o 5 0 7 0 o - g o s u b 2 0 0 0 , 3 0 0 0 , 4 0 0 0 , 5 0 0 0 ,

6 0 0 0 , 7 0 0 0 , 8 0 0 0 , 9 0 0 07 1 g o t o 5 0 1 0 0 0 r e m - d i s p l a y ( = 0 ) o M D r i n t ( c 1 ) a l i s t1 0 1 0 i f = 0 t h e n p r i n t " ! | " ; t a b ( 1 4 ) ; " d i s p l a y m e n u "1 0 2 0 i f t h e n p r i n t " p a H ! ! " ; t a b ( 1 4 ) ; " p r i n t m e n u "1 0 3 0 p r i n t t a b ( 8 ) ; " r a r e n t e d v e h i c l e s 0 1 0 4 0 p r i n t t a b ( 8 ) ; " r a a v a i l a b l e v e h i c l e s1 0 5 0 p r i n t t a b ( 8 ) ; " r a v e h i c l e s b e i n g s e r v i c e d . . 2 1 0 6 0 p r i n t t a b ( 8 ) ; " r a r e t u r n t m a i n m e n u 3 1 0 7 0 p r i n t t a b ( 1 2 ) ; j f l y o u r c h o i c e ( 0 - 3 ) " ; " j ] f f l1 0 8 0 i n p u t c 1 0 9 0 i f c 2 > 0 a n d c 2 < 3 t h e n 1 1 2 01 1 0 0 p r i n t " « i n v a l i d c h o i c e : m u s t b e 0 - 3 » E1 1 1 0 g o t o 1 0 7 01 1 2 0 i f c 2 3 t h e n r e t u r n1 1 3 0 i c O t h e n e s 1 1 4 0 i c t h e n e n s 1 1 5 0 i c 2 t h e n e n s 1 1 6 0 i e O t h e n 1 2 4 01 1 7 0 s 1 1 8 0 i = t h e n o p e n i , 41 1 9 0 i t h e n p r i n t p l $ ( e n ) ; s $ ; d u $ ( e n ) ; s $ ; m i $ ( e n )1 2 0 0 i = t h e n p r i n t # 1 , p l $ ( e n ) ; s $ ; d u $ ( e n ) ; s $ ; m i $ ( e n )1 2 1 0 i e O t h e n 1 2 4 01 2 2 0 e n l d ( e n )1 2 3 0 g o t o 1 1 9 01 2 4 0 p r i n t t a b ( 1 1 ) ; " E E I < < e n o l i s t i n 91 2 5 0 i = t h e n c l o s e i1 2 6 0 p r i n t " H P r e s s < r e t u r n > t r e t u r n t o m e n u "1 2 7 0 g e t c r $1 2 8 0 i c r $ O c h r $ ( 1 3 ) t h e n 1 2 7 01 2 9 0 g o t o 1 0 0 02 0 0 0 r e m - r e t u r n v e h i c l e2 0 1 0 p r i n t t a b ( 5 ) ; " E S J r e t u m v e h i c l e . . . "2 0 2 0 i s r > 0 t h e n 2 0 8 02 0 3 0 p r i n t " H n o v e h i c l e s c u r r e n t l y r e n t e d . . . "2 0 4 0 p r i n t " 0 p r e s s < r e t u r n > t o r e t u r n t m a i n m e n u "2 0 5 0 g e t c r $2 0 6 0 i c r $ O c h r $ ( 1 3 ) t h e n 2 0 5 02 0 7 0 r e t u r n2 0 8 0 i n p u t " p l a t e n u m b e r " ; n p $2 0 9 0 i l e n ( n p $ ) 7 t h e n 2 1 2 02 1 0 0 p r i n t " * * p l a t e m u s t b e 7 c h a r a c t e r s . . . * * "2 1 1 0 g o t o 2 0 8 02 1 2 0 i n p u t " o d o m e t e r r e a d i n g " ; n m $2 1 3 0 i l e n ( n m $ ) < 6 t h e n 2 1 6 02 1 4 0 p r i n t " 0 * * r e a d i n g t o o l a r g e . . . 9 9 9 9 9 9 m a * * 2 1 5 0 g o t o 2 1 2 02 1 6 0 b $ " [ s p a c e s ] "2 1 7 0 n m l e f t $ ( b $ , 6 - l e n ( n m $ ) ) n m 2 1 8 0 r e m - l o c a t e v e h i c l e i r e n t a l l i s t a n d r e m o v e2 1 9 0 s s 2 2 0 0 g o s u b 1 1 0 0 02 2 1 0 i f t h e n r e t u r n2 2 2 0 m i $ ( n ) n m

T h e T r a n s a c t o r 3 V o l u m e 5 I s s u e 0

Page 37: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 37/84

K B B G H G L I

M G B D

L B M K C F

0 J D 0 K P F E

N H A M C K

M P N P M A P N L D J G C K B G E A E N

I O B K

H B G F C O A

2 2 3 0 d u $ ( n ) [ s p a c e s ] "2 2 4 0 s r s 2 2 5 0 r e m - p u v e h i c l e i a v a i l a b l e l i s t2 2 6 0 s s 2 2 7 0 g o s u b 1 3 0 0 02 2 8 0 s a s 2 2 9 0 f 2 3 0 0 r e t u r n3 0 0 0 r e m - r e n t v e h i c l e3 0 1 0 p n n t t a b ( 5 ) ; " g g g | r e n t v e h i c l e . . . "3 0 2 0 i s a > 0 t h e n 3 0 8 03 0 3 0 p r i n t " H n v e h i c l e s c u r r e n t l y a v a i l a b l e . . . "3 0 4 0 p r i n t " f l p r e s s < r e t u r n > t r e t u r n t m a i n m e n u "3 0 5 0 g e t c r $3 0 6 0 i c r $ O c h r $ ( 1 3 ) t h e n 3 0 5 03 0 7 0 r e t u r n3 0 8 0 i n p u t " p l a t e n u m b e r " ; n p $3 0 9 0 i l e n ( n p $ ) t h e n 3 1 2 03 1 0 0 p r i n t " * * p l a t e m u s t b e 7 c h a r a c t e r s . . . * * "3 1 1 0 g o t o 3 0 8 03 1 2 0 i n p u t " d u d a t e ( a m m - d d ) " ; n d $3 1 3 0 i f l e n ( n d $ ) < 5 a n d l e f t $ ( n d $ , 2 ) < = " 1 2 "

a n r i a h t $ ( n d $ , 2 ) < = " 3 1 " t h e n 3 1 6 03 1 4 0 p r i n t " 0 * * i n v a l i d d u d a t e * * "3 1 5 0 g o t o 3 1 2 03 1 6 0 r e m - l o c a t e v e h i c l e i r e n t a l l i s t a n d r e m o v e3 1 7 0 s s 3 1 8 0 g o s u b 1 1 0 0 03 1 9 0 i f f 2 t h e n r e t u r n3 2 0 0 d u $ ( n ) = n d $3 2 1 0 m i $ ( n ) = [ s p a c e s ] "3 2 2 0 s a s 3 2 3 0 r e m - p u v e h i c l e i r e n t e d l i s t3 2 4 0 s e s 3 2 5 0 g o s u b 1 4 0 0 03 2 6 0 s r s 3 2 7 0 f 3 2 8 0 r e t u r n4 0 0 0 r e m - r e m o v e v e h i c l e f o s e r v i c e4 0 1 0 p r i n t t a b ( 5 ) ; " ^ ^ s e n d v e h i c l e f o s e r v i c i n g . . . "4 0 2 0 i s a > 0 t h e n 4 0 8 04 0 3 0 p r i n t " H n o v e h i c l e s c u r r e n t l y a v a i l a b l e . . . "4 0 4 0 p r i n t " H p r e s s < r e t u r n > t r e t u r n t m a i n m e n u "4 0 5 0 g e t c r $4 0 6 0 i c r $ O c h r $ ( 1 3 ) t h e n 4 0 5 04 0 7 0 r e t u r n4 0 8 0 i n p u t " p l a t e n u m b e r " ; n p $4 0 9 0 i l e n ( n p $ ) t h e n 4 1 2 04 1 0 0 p r i n t " * * p l a t e m u s t b e c h a r a c t e r s . . . * * "4 1 1 0 g o t o 4 0 8 04 1 2 0 r e m - l o c a t e v e h i c l e i a v a i l a b l e l i s t a n d r e m o v e4 1 3 0 s e s 4 1 4 0 g o s u b 1 1 0 0 04 1 5 0 i f t h e n r e t u r n4 1 6 0 s a = s e4 1 7 0 r e m - p u v e h i c l e i s e r v i c e l i s t4 1 8 0 s e s 4 1 9 0 n m m i $ ( n )4 2 0 0 g o s u b 1 3 0 0 04 2 1 0 s s s 4 2 2 0 f 4 2 3 0 r e t u r n5 0 0 0 r e m - m a k e s e r v i c e d v e h i c l e a v a i l a b l e5 0 1 0 p r i n t t a b ( 5 ) ; " f l r e t u m s e r v i c e d v e h i c l e . . . "

B C L B A K C N O P I

A F P

M J O P J I

N K

F P H F J N D

M E F A F A O L B

V I H E

H

D

L C

V I

D L

3 A

5 0 2 0 i s s > 0 t h e n 5 0 8 05 0 3 0 p r i n t " H n o v e h i c l e s b e i n g s e r v i c e d . . . "5 0 4 0 p r i n t " f l p r e s s < r e t u r n > t r e t u r n t m a i n m e n u "5 0 5 0 g e c r 5 0 6 0 i c r $ O c h r $ ( 1 3 ) t h e n 5 0 5 05 0 7 0 r e t u r n5 0 8 0 i n p u t " p l a t e n u m b e r " ; n p $5 0 9 0 i l e n ( n p $ ) t h e n 5 1 2 05 1 0 0 p r i n t " * * p l a t e m u s t b 7 c h a r a c t e r s . . . * * "5 1 1 0 g o t o 5 0 8 05 1 2 0 r e m - l o c a t e v e h i c l e i a v a i l a b l e l i s t a n d r e m o v e5 1 3 0 s e s 5 1 4 0 g o s u b 1 1 0 0 05 1 5 0 i f f 2 t h e n r e t u r n5 1 6 0 s s s 5 1 7 0 r e m - p u v e h i c l e i s e r v i c e l i s t5 1 8 0 s e s 5 1 9 0 n m m i $ ( n )5 2 0 0 g o s u b 1 3 0 0 05 2 1 0 s a s 5 2 2 0 f 5 2 3 0 r e t u r n6 0 0 0 r e m - t s e l l v e h i c l e6 0 1 0 p r i n t t a b ( 5 ) ; " ^ ^ s e l l v e h i c l e . . . "6 0 2 0 i s a > 0 t h e n 6 0 9 06 0 3 0 p r i n t " ^ a v a i l a b l e l i s t e m p t y . . . "6 0 4 0 p r i n t " v e h i c l e m u s t b h e r e t b s o l d "6 0 5 0 p r i n t " 0 p r e s s < r e t u r n > t r e t u r n t m a i n m e n u "6 0 6 0 g e t c r $6 0 7 0 i c r $ O c h r $ ( 1 3 ) t h e n 6 0 6 06 0 8 0 r e t u r n6 0 9 0 i n p u t " p l a t e n u m b e r " ; n p $6 1 0 0 i l e n ( n p $ ) t h e n 6 1 3 06 1 1 0 p r i n t " * * p l a t e m u s t b c h a r a c t e r s . . . * * "6 1 2 0 g o t o 6 0 9 06 1 3 0 r e m - s e a r c h f o v e h i c l e a n d r e m o v e6 1 4 0 s s 6 1 5 0 g o s u b 1 2 0 0 06 1 6 0 i f t h e n r e t u r n6 1 7 0 s s 6 1 8 0 u u l - 16 1 9 0 f 6 2 0 0 r e t u r n7 0 0 0 r e m - a d n e v e h i c l e7 0 1 0 p r i n t t a b ( 5 ) ; " E f l S l a d d n e v e h i c l e . . . "7 0 2 0 i f s f > 0 t h e n 7 0 9 07 0 3 0 p r i n t " H u r r a y f u l l n f r e e s p a c e "7 0 4 0 p r i n t " a d d i t i o n c a n n o t b m a d e "7 0 5 0 p r i n t " 0 p r e s s < r e t u r n > t r e t u r n t m a i n m e n u "7 0 6 0 g e t c r $7 0 7 0 i c r $ O c h r $ ( 1 3 ) t h e n 7 0 6 07 0 8 0 r e t u r n7 0 9 0 i n p u t p l a t e n u m b e r " ; n p $7 1 0 0 i l e n ( n p $ ) t h e n 7 1 3 07 1 1 0 p r i n t " * * p l a t e m u s t b c h a r a c t e r s . . . * * "7 1 2 0 g o t o 7 0 9 07 1 3 0 i n p u t " o d o m e t e r r e a d i n g " ; n m $7 1 4 0 i l e n ( n m $ ) < 6 t h e n 7 1 7 07 1 5 0 p r i n t " H * * r e a d i n g t o l a r g e . . . 9 9 9 9 9 9 m a * * 7 1 6 0 g o t o 7 1 3 07 1 7 0 b $ " [ s p a c e s ] "7 1 8 0 n m l e f t $ ( b $ , 6 - l e n ( n m $ ) ) n m 7 1 9 0 r e m - a d v e h i c l e t a v a i l a b l e l i s t7 2 0 0 s

T h T r a n s a c t o r 3 V o l u m e 5 I s s u e 0

Page 38: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 38/84

K J O K L K L J G H G

0 K

L I K K O C C J 0

O C G D B I

C P

P M

I F F L K E B P E

O D D L O

A L J N

U C

J K E P L B D

7 2 1 0 s I d ( s f )7 2 2 0 p l $ ( n ) = n p $7 2 3 0 m i $ ( n ) n m 7 2 4 0 s s 7 2 5 0 g o s u b 1 3 0 0 07 2 6 0 s a s 7 2 7 0 u u 7 2 8 07 2 9 0 r e t u r n8 0 0 0 r e m - c h e c k f o o v e r d u e v e h i c l e s8 0 1 0 i s r O O t h e n 8 0 4 08 0 2 0 p r i n t " f l t h e r e a r n v e h i c l e s c u r r e n t l y r e n t e d "8 0 3 0 r e t u r n8 0 4 0 n r i n f E B I w o u l d y o l i k e p r i n t e d l i s t a l s o ? "8 0 5 0 p r i n t " ( t y p e o n ) : " ;8 0 6 0 g e d 8 0 7 0 i f d $ " t h e n 8 0 6 08 0 8 0 p r i n t d S8 0 9 0 i d $ " n t h e n 8 1 1 08 1 0 0 i f d $ O " y " t h e n 8 0 5 08 1 1 0 p r i n t " e n t e r t o d a y ' s d a t e a s m m - d d < r e t u r n > "8 1 2 0 i n p u t " d a t e " ; d a $8 1 3 0 i f l e n ( d a $ ) < a n l e f t $ ( d a $ , 2 ) < = " 1 2 "a n d r i o h t $ ( d a $ , 2 ) < = " 3 1 " t h e n 8 1 6 08 1 4 0 p r i n t " H * * i n v a l i d d u d a t e * * "8 1 5 0 g o t o 8 1 2 08 1 6 0 e n s 8 1 7 0 i f d y t h e n o p e n i , 8 1 8 0 i d u $ ( e n ) > d a t h e n 8 2 1 08 1 9 0 p r i n t p l $ ( e n ) ; " " ; d u $ ( e n ) ; " ; m i $ ( e n ) ; " i o v e r d u e "8 2 0 0 i d y " t h e n p r i n t # 1 , p l $ ( e n ) ; " ; d u $ ( e n ) ;

" ; m i $ ( e n ) ; " i o v e r d u e "8 2 1 0 : e l d ( e n )8 2 2 0 i e n < > 0 t h e n 8 1 8 08 2 3 0 p r i n t t a b ( 1 1 ) ; " 0 e n o l i s t i n g » 8 2 4 0 i d $ " y " t h e n c l o s e i8 2 5 0 p r i n t " 0 p r e s s < r e t u r n > t o r e t u r n t m a i n m e n u "8 2 6 0 g e c r 8 2 7 0 i f c r $ O c h r $ ( 1 3 ) t h e n 8 2 6 08 2 8 0 r e t u r n9 0 0 0 r e m - q u i t p r o g r a m , s a v i n g l i s t s i n e c e s s a r y9 0 1 0 i f f I 0 t h e n 1 9 9 9 99 0 2 0 o p e n i , 8 , 1 59 0 3 0 p r i n t # 1 , " s 0 : l i n k e d l i s t s "9 0 4 0 c l o s e i9 0 5 0 c $ c h r $ ( 1 3 )9 0 6 0 o p e n i , 8 , 2 , " 0 : l i n k e d l i s t s . s e q . w "9 0 7 0 p r i n t # 1 , s ; c $ ; u l ; c $ ; s r ; c $ ; s a ; c $ ; s s ; c $ ; s f9 0 8 0 f o t o 9 0 9 0 : p r i n t # 1 , p l $ ( i ) ; c $ ; d u $ ( i ) ; c $ ; m i $ ( i ) ; c $ ; l d ( i )9 1 0 0 n e x t i9 1 1 0 c l o s e 19 1 2 0 p r i n t t a b ( 1 0 ) ; " l i s t s h a v e b e e n s a v e d "9 1 3 0 g o t o 1 9 9 9 9

1 1 0 0 0 r e m - l o c a t e a n d r e m o v e v e h i c l e1 1 0 1 0 f 21 1 0 2 0 k s 1 1 0 3 0 i f n p $ = p l S ( k ) t h e n 1 1 1 3 01 1 0 4 0 l 1 1 0 5 0 l d ( k )1 1 0 6 0 i k O O t h e n 1 1 0 3 01 1 0 7 0 p r i n t " H p l a t e n o f o u n d i n l i s t "1 1 0 8 0 p r i n t " g j p r e s s < r e t u r n > t r e t u r n t m a i n m e n u "

B M N A G C

A

J E B F M H E J L B D J E H

I C K D P K J

P B C O A

L I I

E J H

O H A A F

H B K G J D A r \ M D P

K P I I

1 0 9 0 g e t c r $1 1 1 0 0 i f c r $ O c h r $ ( 1 3 ) t h e n 1 1 0 9 01 1 1 1 0 f 1 1 1 2 0 r e t u r n1 1 1 3 0 i f k O s e t h e n 1 1 1 6 01 1 1 4 0 s I d ( s e )1 1 1 5 0 g o t o 1 1 1 7 01 1 1 6 0 I d ( l s ) l d ( k )1 1 1 7 01 1 1 8 0 r e t u r n1 2 0 0 0 r e m - l o c a t e a n r e m o v e s o l d v e h i c l e1 2 0 1 0 f 2 =1 2 0 2 0 k s 1 2 0 3 0 i n p $ = p l $ ( k ) t h e n 1 2 1 3 01 2 0 4 0 I 1 2 0 5 0 l d ( k )1 2 0 6 0 i f k < > 0 t h e n 1 2 0 3 01 2 0 7 0 p r i n t " H p l a t e n o f o u n d i n l i s t "1 2 0 8 0 p r i n t " g | p r e s s < r e t u r n > t r e t u r n t m a i n m e n u "1 2 0 9 0 g e t c r $1 2 1 0 0 i c r $ O c h r $ ( 1 3 ) t h e n 1 2 0 9 01 2 1 1 0 f 21 2 1 2 0 r e t u r n1 2 1 3 0 i k O s e t h e n 1 2 1 6 01 2 1 4 0 s l d ( s e )1 2 1 5 0 g o t o 1 2 1 7 01 2 1 6 0 l d ( l s ) l d ( k )1 2 1 7 0 l d ( k ) s 1 2 1 8 0 s 1 2 1 9 0 r e t u r n1 3 0 0 0 r e m - l o c a t e b m i l e a g e t h p r o p e r l o c a t i o n i l i s t

f o n e e l e m e n t1 3 0 1 0 s 1 3 0 2 0 i f n m $ < m i $ ( k ) t h e n 1 3 0 9 01 3 0 3 0 : l 1 3 0 4 0 : l d ( k )1 3 0 5 0 i k O t h e n 1 3 0 2 01 3 0 6 0 l d ( l s )1 3 0 7 0 l d ( n )1 3 0 8 0 r e t u r n1 3 0 9 0 i f k O s e t h e n 1 3 1 2 01 3 1 0 0 s e1 3 1 1 0 g o t o 1 3 1 3 01 3 1 2 0 l d ( l s )1 3 1 3 0 l d ( n )1 3 1 4 0 r e t u r n1 4 0 0 0 r e m - l o c a t e b d u d a t e t h p r o p e r l o c a t i o n i

l i s t f o n e e l e m e n t1 4 0 1 0 s 1 4 0 2 0 i n d $ < d u $ ( k ) t h e n 1 4 0 9 01 4 0 3 0 : l 1 4 0 4 0 : l d ( k )1 4 0 5 0 i k < > 0 t h e n 1 4 0 2 01 4 0 6 0 l d ( l s )1 4 0 7 0 l d ( n ) - 01 4 0 8 0 r e t u r n1 4 0 9 0 i k O s e t h e n 1 4 1 2 01 4 1 0 0 s e1 4 1 1 0 g o t o 1 4 1 3 01 4 1 2 0 l d ( l s )1 4 1 3 0 l d ( n )1 4 1 4 0 r e t u r n

T h T r a n s a c t o r 3 V o l u m e 5 I s s u e 0

Page 39: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 39/84

H i g h R e s o l u t i o nG r a p h i c s U t i l i t y F o T h 6

G a r y K i z i a kB u r l i n g t o n , O n t .

o o

T h e r e i n q u e s t i o n r e g a r d i n g t h s u p e r b g r a p h i c c a p a b i l i t i e s o t h C o m m o d o r e 6 4 j u s t l o o k a t h w e a l t h o f i n e e d u c a t i o n a l s o f t w a r ea n t h u n b e l i e v a b l e g a m e s t h a t a r n o a v a i l a b l e . Y e m o s t p e o p l ea r s i m p l y n o t a b l e t m a k e u s o t h e s e c a p a b i l i t i e s w h e n w r i t i n gt h e i r o w p r o g r a m s . W h i t h i s ?

A c t u a l l y , t h a n s w e r i q u i t e s i m p l e . M o s t p e o p l e w r i t e t h e i r p r o g r a m si B A S I C , a n u n f o r t u n a t e l y t h e r e a r e n c o m m a n d s t h a t a l l o w y o a c c e s s t t h e s e g r a p h i c c a p a b i l i t i e s o t h e r t h a n P E E K a n P O K E . O c o u r s e t h e r e a r e s o m e v e r y g o o d e x t e n s i o n s t t h l a n g u a g e s u c h a S I M O N ' S B A S I C , t h S U P E R E X P A N D E R c a r t r i d g e , a n m a n y m o r e .T h e s e e x t e n s i o n s p r o v i d e a d d i t i o n a l c o m m a n d s t h a t a l l o w y o t d r a w s t r a i g h t l i n e s a n c i r c l e s , a n t a c c e s s t h e o t h e r g r a p h i c sc a p a b i l i t i e s i v e r y s i m p l e w a y . T h o n l y d r a w b a c k t u s i n g o n o t h e s e e x t e n s i o n s w i l l a r i s e i y o p l a n t s h a r e a n o y o u r p r o g r a m sw i t h o t h e r s . F o r u n l e s s t h e y h a v e t h s a m e g r a p h i c s p a c k a g e a y o u ,t h e y w i l l n o b a b l e t m a k e u s o y o u r p r o g r a m s .

I t h i s a r t i c l e , w i l l p r e s e n t a s e r i e s o c o m m a n d s t h a t w i l l a l l o w y o t a c c e s s s o m e o t h h i r e s g r a p h i c s c a p a b i l i t i e s o t h 6 i s i m p l ew a y . T h e s e c o m m a n d s w i l l n o b a c o m p r e h e n s i v e a t h a b o v e -m e n t i o n e d e x t e n s i o n s , b u t t h e y w i l l b c e r t a i n l y m o r e t h a n a d e q u a t e .B e s t o a l l , y o c a s h a r e i a l o n g w i t h a n o y o u r o w p r o g r a m s t h a tm a k e u s o i t

T h c o m m a n d s w i l l a l l o w y o t p l o t p o i n t s , d r a w l i n e s a n b o x e s ,a n w i t h l i t t l e h e l p f r o m B A S I C d r a w c i r c l e s , e l l i p s e s , e t c . T h e s ed r a w i n g s c a n t a k e p l a c e o t h n o r m a l h i r e s s c r e e n o t h m o r ec o l o u r f u l m u l t i - c o l o u r s c r e e n . Y o w i l l e v e n b a b l e t p r i n t o n t o t h h i r e s s c r e e n , s o t h a t a l y o u r e l a b o r a t e c r e a t i o n s c a n b e l a b e l l e d u s i n gt h b u i l t i n c h a r a c t e r s e t s o e v e n u s i n g c u s t o m c h a r a c t e r s e t s t h a t y o c r e a t e d .

S o m e P r e l i m i n a r y I n f o r m a t i o n

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

T h t e x t s c r e e n i m a d e u o 2 r o w s , e a c h c o n t a i n i n g 4 c h a r a c t e r s .E a c h o t h e s e 1 0 0 0 ( i . e . 2 5 * 4 0 ) ' c h a r a c t e r c e l l s ' c a d i s p l a y a c h a r a c t e ri a n o 1 d i f f e r e n t c o l o u r s . W i t h i n a s i n g l e c h a r a c t e r c e l l h o w e v e r ,o n l y t w c o l o u r s c a b d i s p l a y e d t h f o r e g r o u n d o r c h a r a c t e rc o l o u r a n t h b a c k g r o u n d c o l o u r . T h b a c k g r o u n d c o l o u r m u s t b t h s a m e f o a l 1 0 0 0 l o c a t i o n s , b u t h f o r e g r o u n d c o l o u r c a c h a n g ef r o m o n c h a r a c t e r c e l l t a n o t h e r .

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

J

I t l f i ,

T h t e x t s c r e e n i f i n e f o d i s p l a y i n g c h a r a c t e r g r a p h i c s , e s p e c i a l l yc o n s i d e r i n g t h 6 4 ' s a b i l i t y t o p l a c e t h e c h a r a c t e r d e f i n i t i o n s i R A w h e r e y o u c a c h a n g e t h s h a p e o t h e c h a r a c t e r s t v i r t u a l l ya n y t h i n g t h a t y o w a n t . H o w e v e r f o r f i n e d e t a i l e d g r a p h i c s t h a ti n v o l v e t h d r a w i n g o l i n e s , c i r c l e s , a n o t h e r m a t h e m a t i c a l c u r v e s ,t h e r e i b e t t e r s o l u t i o n - t h e H I R E S s c r e e n .

T h h i r e s s c r e e n i m a d e u o 2 0 r o w s , e a c h c o n t a i n i n g 3 2 d o t s o r' p i x e l s ' . E a c h o t h e s e 6 4 0 0 0 ( i . e . 2 0 0 * 3 2 0 ) p i x e l s c a b t u r n e d ' o n ' o ' o f f i n d i v i d u a l l y , a l l o w i n g y o t c r e a t e v e r y f i n e d e t a i l e d p i c t u r e s o e n o r m o u s c o m p l e x i t y .

T h e l p l o c a t e s p e c i f i c p i x e l s , i i c o n v e n i e n t t n u m b e r t h r o w s f r o mt 1 9 a n t h c o l u m n s f r o m t 3 1 a i t h f i g u r e b e l o w .

I ' v e c h o s e n t h i s p a r t i c u l a r n u m b e r i n g s c h e m e b e c a u s e t h e n w c a t h i n k o t h s c r e e n , i m a t h e m a t i c a l t e r m s , a a C a r t e s i a n s y s t e m ,w i t h t h o r i g i n i t h l o w e r l e f t h a n d c o r n e r . A n p o i n t o t h s c r e e nc a t h e n b l o c a t e d b i t ( x , y ) o C a r t e s i a n c o o r d i n a t e s .

e c u .

■ • l a

( O , o ) T h N o r m a l H I - R E S S c r e e n

T h T r a n s a c t o r 3 V o l u m e 5 I s s u e 0

Page 40: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 40/84

F o c o l o u r p u r p o s e s , t h h i r e s s c r e e n i a l s o a r r a n g e d i w a s i m i l a rt t h n o r m a l t e x t s c r e e n ; t h a t i s i c a b t h o u g h t o a c o n t a i n i n g 2 r o w s a n 4 c o l u m n s o ' c h a r a c t e r c e l l s ' . E a c h o t h e s e c h a r a c t e r c e l l si p i x e l s w i d e a n p i x e l s d e e p , j u s t l i k e a r e g u l a r c h a r a c t e r . A l s o ,l i k e t h n o r m a l t e x t s c r e e n , c h a r a c t e r c e l l o t h h i r e s s c r e e n c a c o n t a i n o n l y t w c o l o u r s . T h ' o f f p i x e l s c a n b e o n c o l o u r , a n t h ' o n ' p i x e l s a n o t h e r t h e s e c o l o u r s c a o c o u r s e b a n o t h 1 c o l o u r s a v a i l a b l e o t h t e x t s c r e e n . U n l i k e t h t e x t s c r e e n , t h b a c k g r o u n d c o l o u r ( i . e . t h c o l o u r o t h ' o f f p i x e l s ) c a n c h a n g e f r o mo n c h a r a c t e r c e l l t o a n o t h e r a c a t h f o r e g r o u n d c o l o u r .

T h i s l i m i t a t i o n o t w c o l o u r s c a n b e o v e r c o m e a t h e x p e n s e o l o s si r e s o l u t i o n b s w i t c h i n g t m u l t i - c o l o u r m o d e . I n t h i s m o d e ,c o l o u r s a r e p o s s i b l e w i t h i n e a c h c h a r a c t e r c e l l . E a c h c o l o u r e d d o t o rp i x e l , h o w e v e r , i t w i c e a w i d e a i n o r m a l h i r e s m o d e . T h u s t h n u m b e r o p i x e l s a c r o s s i 1 6 0 . T h v e r t i c a l r e s o l u t i o n i s s t i l l 2 0 0 . A l s oi n t h i s m o d e , t h b a c k g r o u n d c o l o u r m u s t b t h s a m e f o a l 1 0 0 0c h a r a c t e r c e l l s .

I m u l t i - c o l o u r m o d e , m o r e c o l o u r f u l p i c t u r e s c a b c r e a t e d , b u t t h el o s s i n r e s o l u t i o n c a u s e s l i n e s t b m o r e j a g g e d a n c u r v e s t b l e s ss m o o t h . I w i l l b u t y o t d e t e r m i n e w h i c h m o d e i m o r e s u i t a b l ef o y o u r a p p l i c a t i o n .

C x , v )

m

T h M u l t i - C o l o u r H I - R E S S c r e e n

A m e n t i o n e d e a r l i e r , a l t h g r a p h i c c a p a b i l i t i e s a r e a v a i l a b l e i B A S I C t h r o u g h s e r i e s o c o m p l e x P E E K S a n d P O K E S . A s i d e f r o m t h c o m p l e x i t y i n v o l v e d , t h e t i m e r e q u i r e d t e x e c u t e c o m m a n d c a b u n b e a r a b l e ( e g . 3 s e c o n d s t c l e a r t h h i r e s s c r e e n ) . T h u s t b a a l u s e f u l , t h c o m m a n d s m u s t b c a r r i e d o u i m a c h i n e l a n g u a g e w i t hh o p e f u l l y s i m p l e i n t e r f a c e t B A S I C .

W h e n t h i s c o m m a n d i e x e c u t e d , t h e s c r e e n i c l e a r e d t t h b a c kg r o u n d c o l o u r a n a n p o i n t s t h a t a r s u b s e q u e n t l y p l o t t e d o r l i n e st h a t a r d r a w n ( s e e b e l o w ) w i l l a p p e a r i t h c o l o u r d e t e r m i n e d b y C l

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

1 0 0 S Y S H I R E S . 0

( i . e . l e a v e o f t h b a c k g r o u n d a n p l o t t i n g c o l o u r )

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

I y o u w a n t t h m u l t i - c o l o u r s c r e e n , u s t h e f o l l o w i n g l i n e

1 0 S Y H I R E S . 1 , B G , C 1 , C 2 , C 3

w h e r e a g a i n B i t h b a c k g r o u n d c o l o u r a n C l , C 2 , a n d C 3 a r e t h et h r e e p o s s i b l e p l o t t i n g c o l o u r s ( R e m e m b e r , i m u l t i - c o l o u r m o d e ,f o u r c o l o u r s a r e p o s s i b l e i e a c h c h a r a c t e r c e l l t h b a c k g r o u n dc o l o u r , a n t h r e e p l o t t i n g c o l o u r s ) . F o t h o s e i n t e r e s t e d i t e c h n i c a ld e t a i l s , p l o t t i n g c o l o u r C l c o r r e s p o n d s t p o i n t s p l o t t e d u s i n g t h b i t p a i r O l , C c o r r e s p o n d s t t h b i t p a i r 1 0 a n C c o r r e s p o n d s t t h b i t p a i r 1 1

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

1 0 0 S Y S H I R E S . 1

T h g r a p h i c s s c r e e n c a b c l e a r e d a a n t i m e a f t e r t h s c r e e n h a b e e n e n a b l e d b

1 0 0 S Y S C L S C R , B G , C 1

a n 1 0 0 S Y S C L S C R , B G , C 1 , C 2 , C 3

2 S e t t i n g P l o t t i n g C o l o u r s

( i h i r e s m o d e )

( i m u l t i - c o l o u r m o d e )

L i s t i n g 1 i B A S I C l o a d e r t h a t , w h e n r u n , w i l l c r e a t e a P R f i l e c a l l e d T h b a c k g r o u n d a n d p l o t t i n g c o l o u r s a r s e w h e n h i r e s m o d e i f i r s tH I R E S o n y o u r d i s k . T h i s i t h m a c h i n e l a n g u a g e p r o g r a m t h a t w i l lc o n t a i n a l t h g r a p h i c c o m m a n d s . T y p e t h i s p r o g r a m i n c a r e f u l l y ,s a v e i t a n r u i t T h l o a d e r p r o g r a m c o n t a i n s ' c h e c k ' e v e r y 1 l i n e s i a a t t e m p t t c a t c h t y p i n g e r r o r s , b u b c a r e f u l , i i n o f o o l p r o o f , a n s i n g l e t y p i n g e r r o r c o u l d m a k e y o u r p r o g r a m b o m b .L i s t i n g s 2 3 a n 4 a r e s a m p l e B A S I C p r o g r a m s t h a t m a k e u s o t h c o m m a n d s . B e f o r e w l o o k a t h e s e , l e t ' s g o t h r o u g h t h a c t u a lc o m m a n d s , t h e i r s y n t a x , a n t h e v a r i o u s o p t i o n s a v a i l a b l e .

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

2 0 S Y C O L O U R , C 1 ( i h i r e s m o d e )

a n d 2 0 0 S Y C O L O U R , C 1 , C 2 , C 3 ( i m u l t i - c o l o u r m o d e )

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

1 T u r n i n g O T h H i r e s S c r e e n

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

1 0 0 S Y S H I R E S , 0 , B G , C 1

I n t h i s l i n e , B i n u m b e r b e t w e e n a n 1 r e p r e s e n t i n g t h eb a c k g r o u n d c o l o u r o t h s c r e e n ( n o t e : b l a c k , w h i t e , e t c . ) a n C i n u m b e r r e p r e s e n t i n g t h p l o t t i n g c o l o u r . V a r i a b l e s o n u m b e r sm a b e u s e d f o e i t h e r B o r C l .

3 S e l e c t i n g P l o t t i n g C o l o u r

W h e n g r a p h i c s m o d e i e n a b l e d , c o l o u r C i t h d e f a u l t p l o t t i n gc o l o u r . I m u l t i - c o l o u r m o d e , y o m a w i s h t c h a n g e t c o l o u r C 2 ,o c o l o u r C 3 o b a c k t c o l o u r C a g a i n . T h i s i d o n e b t h c o m m a n d

3 0 S Y S E L P C . C

w h e r e i y o w a n t c o l o u r C i y o w a n t c o l o u r C

a n i y o w a n t c o l o u r C T h T r a n s a c t o r 3 V o l u m e 5 I s s u e 0

Page 41: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 41/84

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

4 S e t t i n g T h e D r a w i n g M o d e

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

E R A S E m o d e I t h i s m o d e , t h e p o i n t s a n l i n e s a r e r a s e d r a t h e rt h a n d r a w n ( i . e . t h p i x e l s a r e t u r n e d o f f )

D R A W m o d e I n t h i s m o d e , a l p o i n t s a n l i n e s a r d r a w n ( i . e . t h p i x e l s a r t u r n e d o n

F L I P m o d e I t h i s m o d e , t h c o n d i t i o n o a l p o i n t s a n l i n e s a r f l i p p e d ( i . e . t h p i x e l s t h a t a r o a r t u r n e d o f a n v i c e - v e r s a )

T s e p a r t i c u l a r d r a w i n g m o d e , s i m p l y i n c l u d e

4 0 0 S Y S D M O D E . M

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

5 P l o t t i n g P o i n t

T p l o t p o i n t a c o o r d i n a t e s ( X , Y ) ( R e m e m b e r : ( 0 , 0 ) i i t h l o w e rl e f t - h a n d c o r n e r o t h s c r e e n ) , u s

5 0 0 S Y S P L O T , X , Y

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

5 0 S Y P L O T , X , Y , C

w i l l s e l e c t p l o t t i n g c o l o u r b e f o r e p l o t t i n g t h e p o i n t a ( X , Y ) a n

5 0 0 S Y S P L O T , X , Y , C , M

w i l l s e l e c t p l o t t i n g c o l o u r a n d r a w i n g m o d e b e f o r e p l o t t i n g a ( X Y )

6 M o v i n g T h e D r a w i n g C u r s o r

W h e n e v e r a p o i n t i p l o t t e d o r l i n e i d r a w n , t h d r a w i n g r o u t i n e sr e m e m b e r s t h e c o o r d i n a t e s o t h l a s t p o i n t p l o t t e d . T h i s p o i n t i c a l l e d t h d r a w i n g c u r s o r , a n i u s e d i t h D R A W T c o m m a n dd e s c r i b e d b e l o w . I i p o s s i b l e t m o v e t h d r a w i n g c u r s o r t n e p o s i t i o n w i t h c o o r d i n a t e s ( X , Y ) a n w i t h o u t p l o t t i n g o d r a w i n g b y t h c o m m a n d

6 0 0 S Y S M O V E , X , Y

7 D r a w i n g L i n e s

T h i s i t h m o s t v e r s a t i l e o t h c o m m a n d s a n o f f e r s t h m o s to p t i o n s .

( i T h D R A W c o m m a n d

7 0 S Y D R A W . X . Y

w i l l d r a w s t r a i g h t l i n e f r o m t h c u r r e n t p o s i t i o n o f t h e d r a w i n gc u r s o r ( i . e . t h l a s t p o i n t p l o t t e d ) t t h p o i n t w i t h c o o r d i n a t e s ( X , Y ) . I w i l l a l s o s e t h n e p o s i t i o n o t h d r a w i n g c u r s o r t ( X , Y ) . T h l i n ew i l l b d r a w n i t h e c u r r e n t p l o t t i n g c o l o u r a n i t h c u r r e n t d r a w i n gm o d e . A s w i t h t h P L O T c o m m a n d , t h p l o t t i n g c o l o u r a n t h d r a w i n g m o d e m a y b c h a n g e d b e f o r e t h e l i n e i d r a w n b t h a d d i t i o n o o n o t w m o r e p a r a m e t e r s ; t h a t i s

7 0 0 S Y S D R A W , X , Y , C

w i l l d r a w t h l i n e t ( X , Y ) i p l o t t i n g c o l o u r C w h i l e

7 0 0 S Y S D R A W , X , Y , C , M

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

( i i ) T h D R A W . . T . . c o m m a n d

7 0 S Y S D R A W . X 1 , Y T X 2 . Y 2

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

7 0 S Y D R A W . X 1 , Y T X 2 , Y 2 , C

o 7 0 S Y D R A W . X 1 , Y T X 2 , Y 2 , C , M

Y o c a e v e n h a v e

7 0 S Y D R A W . X 1 , Y , C , M T X 2 . Y 2

o 7 0 S Y D R A W . X 1 , Y , C , M T X 2 , Y 2 , D , N

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

( i i i ) T h D R A W . . T . . T . . T . . c o m m a n d

T h i s f e a t u r e m a k e s t h i s c o m m a n d s i m i l a r t t h H P L O T c o m m a n d o t h A P P L E , a n a l l o w s y o t d r a w s t r a i g h t l i n e f r o m o n p o i n t t a n o t h e r , t h e n f r o m t h a t p o i n t t a n o t h e r , a n s o n T h s y n t a x i . .

7 0 S Y S D R A W . X 1 , Y T X 2 . Y 2 T X 3 . Y 3 T X 4 . Y 4

w i t h a m a n y p o i n t s X i . Y i a y o c a f i i n t o B A S I C l i n e . T h i sc o m m a n d i u s e f u l f o d r a w i n g s h a p e s t h a t c a b m a d e u o s t r a i g h tl i n e s , e g . p a r a l l e l o g r a m s , h e x a g o n s , e t c . A a b o v e y o u c a i n c l u d e, C , M a n y w h e r e a f t e r a X i . Y i b u k e e p i m i n d t h a t i w o n ' t t a k e e f f e c tu n t i l t h l i n e i d r a w n t t h a t p a r t i c u l a r p o i n t .

8 D r a w i n g R e c t a n g l e s

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

8 0 S Y B O X , X , Y , W I D T H , H E I G H T

w h e r e ( X , Y ) a r e t h e c o o r d i n a t e s o t h t o l e f t - h a n d c o r n e r o t h r e c t a n g l e , a n W I D T H a n H E I G H T a r t h w i d t h a n h e i g h t o t h r e c t a n g l e r e s p e c t i v e l y . A u s u a l , y o m a o p t i o n a l l y h a v e

8 0 S Y B O X , X , Y , W I D T H , H E I G H T , C

o 8 0 S Y B O X , X , Y , W 1 D T H , H E I G H T , C , M

T h T r a n s a c t o r 3 V o l u m e 5 I s s u e 0

Page 42: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 42/84

9 R e s t o r i n g T h T e x t S c r e e n 1 1 C h a n g i n g C h a r a c t e r S e t s

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

9 0 S Y T E X T

T h i s w i l l r e t u r n y o t t h t e x t s c r e e n w i t h e x a c t l y t h s a m e c o n d it i o n s t h a t p r e v a i l e d p r i o r t e n t e r i n g g r a p h i c s m o d e ( e g . i y o w e r e i u p p e r / l o w e r c a s e p r i o r t e n t e r i n g g r a p h i c s m o d e , y o w i l l s t i l l b t h e r e w h e n y o r e t u r n t t e x t m o d e ) . U s e d i c o n j u n c t i o n w i t h t h c o m m a n d S Y H I R E S , 0 o S Y H I R E S , t h i s c a b e u s e d f o f l i p p i n gb e t w e e n t h e g r a p h i c s s c r e e n a n t h t e x t s c r e e n .

1 0 P r i n t i n g T o T h e G r a p h i c s S c r e e n s

T e x t o c h a r a c t e r g r a p h i c s c a n b e p r i n t e d t t h h i r e s s c r e e n u s i n g t h P R N T c o m m a n d . F o e x a m p l e ,

1 0 0 0 S Y P R N T , C , R , A $

w i l l p r i n t w h a t e v e r i i A o n t o t h h i r e s s c r e e n , s t a r t i n g i c o l u m no r o R

N o t e s : 1 P r i n t i n g t a k e s p l a c e o n l y i t h ' c h a r a c t e r c e l l s ' . T h e r e f o r ea n a r t h r o w a n d c o l u m n n u m b e r s a d e t e r m i n e d b t h t e x ts c r e e n , n o t t h e C a r t e s i a n c o o r d i n a t e s o t h h i r e s s c r e e n ( i . e . <

2 a n 3 9 w i t h ( 0 , 0 ) i n t h e t o p l e f t - h a n d c o r n e r o t h s c r e e n ) .

2 T h s t r i n g t b p r i n t e d m a b s t r i n g v a r i a b l e , a s t r i n g o c h a r a c t e r s b e t w e e n q u o t e s , o r e v e n s t r i n g e x p r e s s i o n u s i n g M 1 D $ ,L E F T S , o R I G H T S . T h s t r i n g e x p r e s s i o n m a i n v o l v e c o n c a t e n a t i o n ,f o e x a m p l e :

1 0 0 0 S Y P R N T , 5 , 1 0 , A $ + " D O N E "

b u d o n ' t f o r g e t t h + s i g n

1 0 0 0 S Y P R N T , 5 , 1 0 , A $ ; " D O N E

w i l l y i e l d a e r r o r .

3 T h c h a r a c t e r s t b p r i n t e d c a b a n y t h i n g t h a t y o u w o u l dn o r m a l l y u s i P R I N T s t a t e m e n t o t h t e x t s c r e e n , i n c l u d i n gc u r s o r c o n t r o l c h a r a c t e r s s u c h a c u r s o r l e f t , e t c . R V S O N / O F F ,c o l o u r c o n t r o l c h a r a c t e r s s u c h a C T R L - 1 ( f o r w h i t e ) , e t c . Y o c a e v e n u s C N T R L - N t s w i t c h t l o w e r c a s e a n C H R $ ( 1 4 2 ) t s w i t c h t u p p e r c a s e . O n l y C L a n H O M E f o c l e a r i n g t h e s c r e e n a n h o m i n gt h c u r s o r a r e i g n o r e d .

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

4 T h t e x t c a n b e p r i n t e d i e i t h e r h i r e s m o d e o m u l t i - c o l o u r m o d e .I m u l t i - c o l o u r m o d e , t h e c h a r a c t e r s w i l l l o o k l i t t l e f u n n y a n m a b e u n r e a d a b l e d e p e n d i n g o n t h s e t t i n g s f o t h e t h r e e p l o t t i n g c o o u r s . I y o s e C a n C t t h c o l o u r y o u w a n t t h e c h a r a c t e r s t b a n d C 2 t t h b a c k g r o u n d c o l o u r , t h c h a r a c t e r s a r p e r f e c t l y r e a da b l e . B c h a n g i n g C a n C 3 y o c a g e s o m e i n t e r e s t i n g e f f e c t s ( s e et h s a m p l e p r o g r a m s f o a i l l u s t r a t i o n ) . T h b e s t s o l u t i o n i t c r e a t ey o u r o w c u s t o m c h a r a c t e r s u s i n g m u l t i - c o l o u r c h a r a c t e r e d i t o r a n u s t h o s e c h a r a c t e r s i n s t e a d ( s e e b e l o w ) .

T e x t c a b p r i n t e d i u p p e r c a s e / g r a p h i c s , u p p e r / l o w e r c a s e , a n e v e n c o m b i n a t i o n o t h t w ( s o m e t h i n g t h a t c a n ' t b d o n e o t h n o r m a l t e x t s c r e e n w i t h o u t u s i n g r a s t e r i n t e r r u p t s ) . I i e v e n p o s s i b l et p r i n t c h a r a c t e r s t h a t y o c r e a t e d w i t h c h a r a c t e r e d i t o r a n s t o r e di R A M . T p r i n t s u c h c h a r a c t e r s , s i m p l y p r e c e d e t h p r i n t i n g w i t h t h ec o m m a n d

1 1 0 0 S Y S C H S E T . A Dw h e r e A i t h a d d r e s s o t h R A c h a r a c t e r s e t . B e c a u s e o t h w a c h a r a c t e r s e t s w o r k , A m u s t b m u l t i p l e o 2 0 4 8 . T h u s

1 1 0 0 S Y S C H S E T , 7 * 2 0 4 8

w o u l d b r e q u i r e d i y o u r c h a r a c t e r s e w e r e s t o r e d i m e m o r y a a d d r e s s 1 4 3 3 6 7 * 2 0 4 8 ) .

N o t e a l s o t h a t A w i l l c h o o s e t h R O c h a r a c t e r s e c o n t a i n i n gu p p e r c a s e a n g r a p h i c c h a r a c t e r s w h i l e A D = 1 w i l l c h o o s e t h u p p e r / l o w e r c a s e c h a r a c t e r s i R O M .

1 2 T h T R A P C o m m a n d

W h e n d r a w i n g m a t h e m a t i c a l c u r v e s , e r r o r s s u c h a ' d i v i s i o n b z e r o ' ,' i l l e g a l q u a n t i t y ' , e t c . c a q u i c k l y h a l t p r o g r a m . W h e n t h i s h a p p e n s ,t h T R A P c o m m a n d , w h i c h i t h e q u i v a l e n t o t h O N E R R G O T Oc o m m a n d o t h A P P L E , c a o v e r c o m e t h i s . F o e x a m p l e ,

1 2 0 0 S Y T R A P , 1 5 0 0

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

T c h e c k f o t h e t y p e o e r r o r , i n c l u d e t h e f o l l o w i n g i y o u r e r r o rh a n d l i n g r o u t i n e .

1 5 0 0 X P E E K ( 7 8 1 )

T h i s w i l l b t h e r r o r n u m b e r t h a t w o u l d n o r m a l l y b p a s s e d o t h B A S I C i n t e r p r e t e r .

e g i X 2 t h e n d i v i s i o n b z e r o e r r o r o c c u r r e di X 1 t h e n a i l l e g a l q u a n t i t y e r r o r o c c u r r e de t c .

T h T R A P c o m m a n d c a n b e d i s a b l e d ( i . e . t h B A S I C i n t e r p r e t e rh a n d l e s a l e r r o r s ) b l e a v i n g o f t h l i n e n u m b e r i t h T R A Pc o m m a n d , i e

1 3 0 0 S Y T R A P

C a u t i o n : W h e n a e r r o r o c c u r s , t h e s t a c k p o i n t e r c a b i a u n p r e d i c t a b l e p o s i t i o n . F o t h i s r e a s o n , b e f o r e s e n d i n g c o n t r o l t t h l i n e o f y o u r e r r o r h a n d l i n g r o u t i n e , t h e s t a c k i c l e a r e d . T h i s i n c l u d e sa l i n f o r m a t i o n a b o u t F O . N E X T l o o p s a n R E T U R N a d d r e s s e s o s u b r o u t i n e s . T h u s a f t e r h a n d l i n g s p e c i f i c e r r o r , y o m u s t n o g i n t ot h m i d d l e o F O . N E X T l o o p o t h m i d d l e o s u b r o u t i n e ,e v e n i t h a t i w h e r e t h e r r o r o r i g i n a l l y o c c u r r e d .

T h T r a n s a c t o r 4 V o l u m e 5 I s s u e 0

Page 43: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 43/84

i a s h o r t d e m o n s t r a t i o n p r o g r a m t h a t s h o w s h o e a s y i i t p i c h a r t . N o t i c e h o t h H I R E S r o u t i n e s a r e l o a d e d i l i n e 2 0

n t h v a r i a b l e s , t h a t a r e t h e a d d r e s s e s o t h v a r i o u s c o m m a n d s , a r i a l i z e d i n l i n e s 1 2 t h r o u g h 1 5 0 .

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

S Y C I R C L E , X C , Y C , X R , Y R , S A , E A , I N C

X C . Y C a r t h c o o r d i n a t e s o t h e c e n t r e o t h c i r c l eX i t h e r a d i u s i t h h o r i z o n t a l d i r e c t i o nY i t h e r a d i u s i t h v e r t i c a l d i r e c t i o nS i t h s t a r t i n g a n g l e i d e g r e e s ( i . e . t h a n g l e w i t h

t h h o r i z o n t a l w h e r e t h p l o t t i n g w i l l s t a r t )E i t h e n d i n g a n g l e i d e g r e e s ( i . e . t h a n g l e

w h e r e t h p l o t t i n g w i l l e n d )n d I N C i t h i n c r e m e n t i d e g r e e s

T h c i r c l e i d r a w n a s s e r i e s o f s t r a i g h t l i n e s ( a n d s o i p o l y g o n ) . I N d e t e r m i n e s h o w m a n y s i d e s t h i s p o l y g o n

a n h e n c e h o ' s m o o t h ' t h c i r c l e i s

t h c o m m a n d i n o i m p l e m e n t e d y e t , B A S I C e q u i v a l e n t i i l i n e 5 0 o f L i s t i n g 2 T d r a w c i r c l e t h e n , i i o n l y

t i n i t i a l i z e t h v a r i a b l e s X C , Y C , X R , Y R , S A , E A , a n I N n t h e n G O S U B 5 0 0 .

t h a t t o g e c o m p l e t e c i r c l e , t h s t a r t i n g a n g l e a n t h a n g l e m u s t b e 3 6 d e g r e e s a p a r t . A l s o b m a k i n g I N

t 1 2 d e g r e e s , 6 d e g r e e s , a n 7 d e g r e e s , y o c a d r a wt r i a n g l e , h e x a g o n , a n p e n t a g o n r e s p e c t i v e l y .

i a n o t h e r d e m o t h a t d r a w s a b a r c h a r t , a n i l l u s t r a t e sp r i n t i n g l o o k s l i k e i m u l t i - c o l o u r m o d e . E x p e r i m e n t w i t h

4 6 0 , 4 8 a n 5 2 0 a n d o b s e r v e t h e f f e c t s .

i p r o g r a m t h a t d r a w s t h g r a p h o a m a t h e m a t i c a lW h e n t y p i n g i t i n p u R E i f r o n t o e a c h T R A P

T h i s w i l l a l l o w y o t d e b u g t h p r o g r a m m o r e e a s i l yt h T R A P c o m m a n d w i l l t r a p a l y o u r t y p i n g e r r o r s a n i

a b e c o m e f r u s t r a t i n g .

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

s i n ( 2 * x ) c o s ( 3 * x ) ( l i n e 2 2 0 )

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

o o

1 / s m ( x )s i n ( x ) / c o s ( x )

s q r ( 4 - x * x )

i w i t h a n w i t h o u t t h R E s t a t e m e n t s i f r o n t o t h T R A P

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

s l o w . T h p l o t c a n b e s p e e d e d u p b d e c r e a s i n g t h o p l o t t i n g p o i n t s ( l i n e 7 7 0 ) b u t h i s w i l l a l s o h a v e n e g a t i v e

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

O n F i n a l N o t e O M e m o r y U s a g e

T h h i r e s s c r e e n i l o c a t e d a $ E 0 0 0 ( i . e . n d e r n e a t h t h e k e r n a l R O M ) .A s u c h i d o e s n o s t e a l a n m e m o r y f r o m B A S I C . T h r o u t i n e st h e m s e l v e s a r e s t o r e d i t h $ C 0 0 0 b l o c k f r o m $ C 0 0 0 t $ C 8 1 E .C o l o u r m e m o r y f o t h h i r e s s c r e e n i l o c a t e d a $ C C 0 0 a n e x t e n d s t $ C F F F . S i n c e t h D O w e d g e a l s o u s e s t h i s a r e a , t h e s e r o u t i n e s w i l ln o w o r k w i t h t h w e d g e i n s t a l l e d . S i m i l a r l y , i m a n o w o r k w i t ho t h e r u t i l i t i e s t h a t u s t h $ C 0 0 0 b l o c k o m e m o r y .

L i s t i n gB H L B

D G C

G H P J

B P A J 1

, I M C

I D I

H F M

H J H M P J P F G H G G F K

N B M D B J E G H G F B B H J

N J E

1 0 o p e n 1 , 8 , 1 5 , " i 0 " : c l o s e 11 1 o p e n 1 , 8 , 1 , " @ 0 : h i r e s "1 2 p r i n t # 1 , c h r $ ( 0 ) ; : p r i n t # 1 , c h r $ ( 1 9 2 ) ;1 3 f o t 2 0 8 01 4 r e a d x p r i n t # 1 , c h r $ ( x ) ;1 5 c h c h 1 6 n e x t1 7 i c h k < > 2 4 5 7 2 7 t h e n p r i n t h a s a n e r r o r " :

c l o s e 1 : e n d1 8 c l o s e1 9 p r i n t s a v e s u c c e s s f u l " : e n d1 0 0 0 d a t a 7 6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9 31 6 9 , 0 , 1 4 1 , 7 6 , 1 9 21 6 4 , 2 5 4 , 2 4 0 , 1 3 , 1 6 0

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

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

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

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

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

0 1 3 3 ,

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

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

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

0 3 2 4 3 , 1 9 3 , 7 6 , 2 1 8h T r a n s a c t o r 4 V o l u m e 5 I s s u e 0

Page 44: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 44/84

K P

G C

I I

B L M K P F G G E L B G I

M 1

M K J

O A N H M A H J

M D J

C G H D A N 0 I

G E

L B G J J M

1 E E C D H J E A D E H M

C B

A C O B

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

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

4 4 1 9 2 , 2 3 73 2 4 3 , 1 9 64 9 1 9 2 , 1 4

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

1 9 3 ,4 4

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

T h T r a n s a c t o r 4 V o l u m e 5 I s s u e 0

Page 45: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 45/84

H K

G I P

M I

N M P P P

K H N L F F

M J C

H A E J B F J

I M M H C A

F P I

K I G

N M M K B C K

P D G E N

I K H B B

C K G

I K A O B L

A I C G

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

1 0 6

5 1 3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 4 ,

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

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

6 3 , 1 9 27 1 1 9

5 1 6 6 6 2 5 1 7

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

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

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

1 7 3 ,3 2

1 3 3 ,3 8 3 8

1 3 3 ,6

J L C H C E C A D E N I

M I

P F B

E G E O L E L K D J K B P L

D H G

C L

C A M K P O C

N J F

A H E L A A C C G F L E

G

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

L i s t i n g 2

1 p n n t " 0 " : p o k e 5 3 2 8 0 , 5 : p o k e 5 3 2 8 1 , 12 i p e e k ( 4 9 1 5 2 ) < > 7 6 t h e n l o a d h i r e s " , 8 , 13 0 1 0 0 r e m i n i t i a l i z e v a r i a b l e s1 1 0 :1 2 h i r e s = 1 2 * 4 0 9 6 : d r a w h 3 : p l o t d 1 3 m o v e p 3 x l s c r m 3 : d m o d e c 1 4 s e l p c d 3 : c o l o u r s 3 : b o x c 1 5 t e x t = b 3 : p r n t t 3 : c h s e t p 3 : t r a p c 1 6 0 :1 7 r e b e g i n t h s h o w1 8 0 :1 9 0 s y s h i r e s , 0 , 1 , 62 0 x 1 5 9 : y c 1 0 O : x r 7 0 : y r 5 0 : i n c 1 2 1 0 s a 4 5 : e a 7 5 : g o s u b 6 2 02 2 0 s a = 7 5 : e a = 1 6 0 : g o s u b 6 2 02 3 s 1 6 0 : e a 2 4 0 : g o s u b 6 2 2 4 s 2 4 0 : e a = 3 2 5 : g o s u b 6 2 02 5 s y s c o l o u r , 72 6 x 1 7 5 : s a - 3 5 : e a = 4 5 : g o s u b 6 2 02 7 s y s c o l o u r , 92 8 s y b o x , 6 , 1 7 0 , 3 0 7 , 1 6 52 9 s y b o x , 3 , 1 7 2 , 3 1 3 , 1 6 93 0 0 s y s c h s e t , 13 1 a r c h r $ ( 3 0 ) R e n t " : r e m r v g r 3 2 0 s y s p r n t , 1 5 , 9 , a $3 3 a = c h r $ ( 1 5 6 ) + " F o o d " : r e m p u 3 4 0 s y s p r n t , 1 3 , 1 3 , a $3 5 a c h r $ ( 2 8 ) C l o t h e s " : r e m r e d3 6 0 s y s p r n t , 1 8 , 1 6 , a $3 7 0 a $ c h r $ ( 1 5 8 ) + " T r a v e l " + c h r $ ( 1 4 2 ) : r e m y e lu p p e r / g r a p h i c s3 8 0 s y s p r n t , 2 4 , 1 2 , a $3 9 a c h r $ ( 1 5 4 ) c h r $ ( 1 7 6 ) C C C C C C C C C C C C C C

C C C C C C C C C C C C C C C C C C C C C C C C c h r $ ( 1 7 4 )4 0 s y p r n t , O , O , a $4 1 0 a $ c h r $ ( 2 2 1 ) + [ s p a c e s ] H J P I E C H A R T S a r

c h r $ ( 2 8 ) E a s y 0 [ 1 0 s p a c e s ] | J | "4 2 s y p r n t . 0 , 1 , a c h r $ ( 2 2 1 )4 3 a c h r $ ( 1 7 3 ) + " C C C C C C C C C C C C C C C C C C C C CC C C C C C C C C C C C C C C C C " + c h r $ ( 1 8 9 ) +4 4 s y p r n t , 0 , 2 , a $4 5 g e a $ : i f a $ O c h r $ ( 1 3 ) t h e n 4 5 4 6 e n 4 7 0 :4 8 r e d r a w a r 4 9 0 :5 0 z s a * n / 1 8 0 : z 2 e a * n / 1 8 0 : z 3 i n c * r r / 1 8 05 1 x x r * c o s ( z 1 ) : y y r * s i n ( z 1 )5 2 s y m o v e . x . y5 3 f o z t o z 2 s t e p z 35 4 x x r * c o s ( i ) : y y y r * s i n ( i )5 5 s y s d r a w . x . y5 6 n e x t5 7 s y d r a w . x c x r * c o s ( z 2 ) , y c y r * s i n ( z 2 )5 8 r e t u r n5 9 0 :6 0 0 r e m d r a w p i 6 1 0 :6 2 0 g o s u b 5 0 06 3 s y s d r a w . x c . y c6 4 s y d r a w , x c x r * c o s ( z 1 ) , y c y r * s i n ( z 1 )6 5 r e t u r n

h T r a n s a c t o r 4 V o l u m e 5 I s s u e 0

Page 46: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 46/84

J L C H C E C A D E N I

J M D P J N G B A F K B J

C J J B K H H L C P K P

J G C N K C C D K A B F

J L C H C E C A D E I I

H E

D

L i s t i n g

1 p r i n t " 0 " : p o k e 5 3 2 8 O , 5 : p o k e 5 3 2 8 1 , 12 i p e e k ( 4 9 1 5 2 ) < > 7 6 t h e n l o a d h i r e s " , 8 , 13 1 0 0 r e m i n i t i a l i z e v a r i a b l e s1 1 0 :1 2 h i r e s = 1 2 * 4 0 9 6 : d r a w = h 3 : p l o t d 1 3 m o v e p + 3 : c l s c r m 3 : d m o d e c 1 4 s e l p c d 3 : c o l o u r s 3 : b o x c 1 5 t e x t b 3 : p r n t t 3 : c h s e t p 3 : t r a p c 1 6 0 :1 7 0 r e m b e g i n t h s h o w1 8 0 :1 9 s y h i r e s , 1 , 0 , 1 , 2 , 62 0 s y d m o d e , 1 : s y s s e l p c ,2 1 s y s d r a w , 3 3 , 1 6 8 t o 3 3 , 8 7 t o 1 3 3 , 8 72 2 s y d r a w , 3 3 , 8 6 t 1 3 3 , 8 62 3 0 f o r k = 1 t 2 4 f o = 3 t 1 3 s t e p2 5 s y p l o t , j , 8 4 1 6 * k2 6 n e x t j . k2 7 f o t 2 8 y ( k ) r n d ( 1 ) * 8 0 8 8 : c r n d ( 1 ) * 8 + 2 9 s y s c o l o u r , 1 , c , 63 0 f o t 3 1 0 s 4 3 + k * 1 63 2 s y d r a w , s , 8 8 t s , y ( k ) , 23 3 n e x t3 4 n e x t3 5 s y m o v e , 3 4 , 8 83 6 f o t 3 7 0 s = 4 k * 1 63 8 0 s y s d r a w , s , y ( k ) , 33 9 n e x t k4 0 s y c o l o u r , 1 , 0 , 14 1 s y s p r n t , 1 1 , 1 5 , " 7 9 8 8 8 2 8 3 8 4 "4 2 a 1 2 4 3 f o t l e n ( a $ ) s t e p4 4 s y p r n t , 6 , 3 i , m i d $ ( a $ , i , 2 )4 5 n e x t4 6 0 s y s c o l o u r , 2 , 0 , 24 7 s y p r n t , 1 4 , 2 , " a n n u a l s a l e s "4 8 0 s y s c o l o u r , 0 , 0 , 64 9 a $ " f o t 2 a = a c h r $ ( 1 6 4 ) : n e x t5 0 0 s y s p r n t , 9 , 1 7 , a $5 1 0 s y s p r n t , 9 , 1 8 , " B b a r g r a p h s 0 "5 2 s y s c o l o u r . 5 , 7 , 75 3 s y p r n t , 1 2 , 2 0 , " a n i c e "5 4 s y p r n t , 2 , 2 2 , " m u l t i - c o l o r m o d e "5 5 g e a $ : i f a $ O c h r $ ( 1 3 ) t h e n 5 5

L i s t i n g

1 p r i n t " 0 " : p o k e 5 3 2 8 0 , 5 : p o k e 5 3 2 8 1 , 12 i p e e k ( 4 9 1 5 2 ) < > 7 6 t h e n l o a d " h i r e s " , 8 , 13 0 1 0 0 r e m i n i t i a l i z e v a r i a b l e s1 1 0 :1 2 h i r e s 1 2 * 4 0 9 6 : d r a w h 3 : p l o t d 1 3 m o v e p 3 : c l s c r m 3 : d m o d e c 1 4 s e l p c d 3 : c o l o u r s 3 : b o x = c 1 5 t e x t b 3 : p r n t t 3 : c h s e t p 3 : t r a p c 1 6 0 :1 7 0 r e m p l o t t h g r a p h1 8 0 :1 9 d x : i f x > x a x t h e n 6 5 2 0 s y s t r a p , 4 0 0 r e c a t c h a n c a l c u l a t i o n e r r o r s

J O D P I

J A G C P E K H C J

I A A K O O

E M

I A P C M

I E

B

G J N E L J

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

2 1 s i n ( 2 * x ) c o s ( 3 * x ) : r e i n s e r t f u n c t i o n t b g r a p h e d h e r e

T h T r a n s a c t o r 4

2 2 s y t r a p , 4 5 0 r e n o c a t c h a n p l o t t i n g e r r o r s2 3 x ( x - x i n ) * s x r e x - c o o r d i n a t e f o p l o t2 4 y ( y - y i n ) * s y r e y - c o o r d i n a t e f o p l o t2 5 o p g o t o 3 6 0 , 4 2 02 6 0 :2 7 r e l a s t p o i n t w a p l o t t e d o k 2 8 r e s d r a w f r o m l a s t p o i n t t c u r r e n t p o i n t2 9 0 :3 0 s y d r a w , x p , y p3 1 g o t o 1 9 3 2 0 :3 3 r e l a s t p o i n t w a o u o r a n g e ,3 4 r e s d r a w f r o m b o u n d a r y t c u r r e n t p o i n t3 5 0 :3 6 s y d r a w , x p , b o u n d a r y t x p . y p3 7 0 p f 0 : g o t o 1 9 03 8 0 :3 9 r e l a s t p o i n t w a n o d e f i n e d ,4 0 r e s j u s t p l o t t h e c u r r e n t p o i n t4 1 0 :4 2 s y p l o t . x p . y p4 3 0 p f 0 : g o t o 1 9 04 4 0 :4 5 r e s o m e t h i n g w e n t w r o n g w i t h t h f u n c t i o n4 6 0 :4 7 0 e r r = p e e k ( 7 8 1 ) : p f4 8 i e r 1 t h e n 1 9 r e i l l e g a l q u a n t i t y e r r o r4 9 i f e r = 2 t h e n 1 9 r e d i v i s i o n b z e r o e r r o r5 0 i f e r 1 t h e n 1 9 r e o v e r f l o w e r r o r5 1 i e r 1 t h e n s y p r n t , 3 , 2 3 , " s y n t a x e r r o r

i f u n c t i o n d e f i n i t i o n " : g o t o 6 6 5 2 s y p r n t , 4 , 2 3 , " o o p s ! f o r g o t a b o u t e r r o r #

s t r $ ( e r r ) : g o t o 6 6 05 3 0 :5 4 r e t r i e d t o p l o t o u o r a n g e , x - c o o r d . s h o u l d b o . k .5 5 0 r e m t h e r e f o r e , j u s t t e s t t h y - c o o r d .5 6 0 :5 7 e r = p e e k ( 7 8 1 ) : i f e r r < > 1 4 t h e n 5 2 5 8 i y p > 1 9 9 t h e n b o u n d a r y 1 9 r e p o i n t i a b o v e

t o o s c r e e n5 9 i y p < 0 t h e n b o u n d a r y r e p o i n t i b e l o w

b o t t o m o s c r e e n6 0 i p t h e n s y d r a w , x p - d x , b o u n d a r y6 1 0 p f = 1 : g o t o 1 9 06 2 0 :6 3 r e e n b p r e s s i n g < r e t u r n >6 4 0 :6 5 s y p r n t , 1 3 , 2 3 , " g r a p h c o m p l e t e d "6 6 g e a $ : i f a $ < > c h r $ ( 1 3 ) t h e n 6 6 6 7 0 e n d6 8 0 :6 9 r e b e g i n t h s h o w7 0 0 :7 1 0 x i n - 2 * n r e m i n i m u m v a l u e f o 7 2 x a x = 2 * 7 i r e m a x i m u m v a l u e f o 7 3 0 y i n = - 3 . 0 r e m i n i m u m v a l u e f o 7 4 0 y a x = 3 . 0 r e m a x i m u m v a l u e f o 7 5 s x 1 6 0 / ( x a x - x i n ) r e s c a l e i x d i r e c t i o n7 6 s 2 0 0 / ( y a x - y i n ) r e s c a l e i d i r e c t i o n7 7 d ( x a x - x i n ) / 1 6 0 r e s e i n f o 1 6 p o i n t p l o t7 8 p r e i n i t i a l i z e p l o t t i n g f l a g7 9 r e p . . l a s t p o i n t c a l c u l a t e d w a p l o t t e d o . k .8 0 r e p . . l a s t p o i n t c a l c u l a t e d w a o u o r a n g e8 1 r e p l a s t p o i n t c a l c u l a t e d w a u n d e f i n e d8 2 0 x x i n - d x r e i n i t i a l i z e8 3 s y h i r e s , 1 , 0 , 1 , 0 , 18 4 s y d m o d e , 1 : s y s s e l p c ,8 5 g o t o 1 9

V o l u m e 5 I s s u e 0

Page 47: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 47/84

V I P a r a m e t e r sC h r i s Z a m a r a , T e c h n i c a l E d i t o rP r o g r a m b P a u l H i g g i n b o t t o m

C 6 V i d e o a n C h a r a c t e r M e m o r y A l l o c a t i o n

h C 6 4 ' s f l e x i b l e m e m o r y a r c h i t e c t u r e a n V I C — I I v i d e o c h i p l l o w y o t s e u s c r e e n a n c h a r a c t e r m e m o r y p r a c t i c a l l y

a n y w h e r e y o u w a n t t o p r o v i d i n g t h a b i l i t y t o r e - d e f i n ec h a r a c t e r s a n a l t e r t h s y s t e m m e m o r y m a p t y o u r o w p e c i f i c a t i o n s . T h p r o b l e m i s i t ' s n o s u c h s i m p l e p r o c e s sa s u s u a l , t h e r e a r e j u s t e n o u g h c o m p l i c a t i o n s t c r e a t e c o n f u i o n . T h i s a r t i c l e , t h e n c l o s e d p r o g r a m ( " V I C P A R M S " ) , a n d t h t a b l e s b e l o w a r c a l c u l a t e d t e a s e s o m e o t h a t c o n f u s i o n .

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

h V I C - I I v i d e o c h i p i t h C 6 g e n e r a t e s v i d e o d i s p l a y a s e d o d a t a f o u n d w i t h i n t h 6 4 o m e m o r y i t h c o u t e r . W h e n i r e g u l a r t e x t m o d e ( t h e d e f a u l t a f t e r p o w e r - u p ) , h e r e a r e t w k i n d s o d a t a n e e d e d t d i s p l a y c h a r a c t e r s o t h

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

a s h a p e t a b l e s t d e s c r i b e w h a t e a c h c h a r a c t e r l o o k s i k e .

h 1 0 0 0 b y t e s w h i c h d e t e r m i n e w h i c h c h a r a c t e r s a r d i l a y e d o t h s c r e e n a r c o l l e c t i v e l y k n o w n a s c r e e n m e m o r y ,

m e m o r y , o m o r e t e c h n i c a l l y , t h v i d e o m a t r i x . T h a u l t l o c a t i o n o t h v i d e o m a t r i x i s a t 0 4 0 0 h e x ( $ 0 4 0 0 o

1 0 2 4 d e c i m a l ) , j u s t b e l o w t h B A S I C t e x t w o r k s p a c e , b u t h a t o c a t i o n c a n b e c h a n g e d a w i l l .

E v e r y o n o t h e p o s s i b l e 2 5 v a l u e s o e a c h v i d e o m a t r i x b y t ea a c h a r a c t e r a s s o c i a t e d w i t h i t T h s h a p e o t h a t c h a r a c t e r i

e f i n e d b t h e c o n t e n t s o b y t e s w i t h i n c h a r a c t e r m e m o r y .t h e r e a r e 2 5 c h a r a c t e r s i f o l l o w s t h a t c h a r a c t e r m e m o r y

m u s t o c c u p y 2 0 4 8 b y t e s . O t h 6 4 , a s w i t h a l C o m m o d o r em a c h i n e s , t h e r e a r e t w c h a r a c t e r s e t s a v a i l a b l e : u p p e r c a s e / r a p h i c s , a n u p p e r / l o w e r c a s e c h a r a c t e r s ( t h e s e t w s e t s a r l t e r n a t e l y s e l e c t e d w i t h t h s h i f t / C o m m o d o r e k e y s ) . A l t o

t h e n , t h e r e a r e 4 0 9 6 b y t e s w h i c h d e f i n e t h e s h a p e o a l 1 c h a r a c t e r s .

h a r a c t e r m e m o r y i n o r m a l l y f o u n d i R O M , a l o c a t i o n$ D 0 0 0 ( t h i s i t h s a m e a d d r e s s r a n g e w h e r e t h I / i m a p p e d , b u e i t h e r R A o r t h e c h a r a c t e r R O c a b m a p p e di i n s t e a d ) . L i k e t h e v i d e o m a t r i x , t h s t a r t l o c a t i o n o c h a r a c t e rm e m o r y ( c a l l e d t h c h a r a c t e r b a s e ) c a b c h a n g e d . O f c o u r s e ,i y o u w a n t t s e l e g i b l e c h a r a c t e r s o t h e s c r e e n , v a l i d h a r a c t e r d e f i n i t i o n s m u s t e x i s t i m e m o r y w h e r e v e r t h c h a r c t e r b a s e p o i n t s . T a c c o m p l i s h t h a t , t h c o n t e n t s o t h

c h a r a c t e r R O s t a r t i n g a $ D 0 0 0 c a b c o p i e d i n t o R A w h e r e v e r t h n e c h a r a c t e r b a s e i s W i t h t h c h a r a c t e r d e f i n it i o n s i R A M , y o c a n c u s t o m i z e t h e c h a r a c t e r s e t t o y o u r o w s p e c i f i c a t i o n s t h a t i t h p r i m e r e a s o n f o c h a n g i n g t h l o c a t i o n o t h e c h a r a c t e r b a s e .

A l l o c a t i n g v i d e o a n c h a r a c t e r d a t a t d i f f e r e n t a r e a s o m e o r m e a n s p o i n t i n g t h e V I C - I I v i d e o c h i p t t h s t a r t o t h d e s i r e d m e m o r y a d d r e s s e s b c h a n g i n g o n o i t r e g i s t e r s . I t h e c a s e o t h v i d e o m a t r i x , i a l s o i n v o l v e s s e t t i n g a p o i n t e r s ot h a t t h e k e r n a l ( o p e r a t i n g s y s t e m ) k n o w s w h e r e t h s c r e e n i l o c a t e d i m e m o r y .

T h s t a r t a d d r e s s o v i d e o o c h a r a c t e r m e m o r y c a n ' t j u s t b a n y w h e r e ; t h v i d e o m a t r i x m u s t s t a r t o I b o u n d a r y , a n t h c h a r a c t e r b a s e h a s t o s t a r t o 2 b o u n d a r y . I o t h e rw o r d s , t h e r e a r e 6 p o s s i b l e p l a c e s w h e r e s c r e e n m e m o r y c a g o a n 3 p o s s i b l e p l a c e s w h e r e t h e c h a r a c t e r b a s e c a s t a r t .T a b l e c o n t a i n s l i s t o a l l o c a t i o n s w h e r e s c r e e n m e m o r y c a g o a n t a b l e g i v e s t h 3 p o s s i b l e c h a r a c t e r b a s e l o c a t i o n s .

V I C h i p B a n k s

I p r a c t i c e , s e l e c t i n g t h m e m o r y a r e a s f o t h v i d e o m a t r i xa n c h a r a c t e r b a s e i c o m p l i c a t e d b t h f a c t t h a t t h V I c h i ph a o n l y 1 a d d r e s s l i n e s a n a s u c h c a a c c e s s o n l y 1 6 o m e m o r y . T a l l o w f u l l a c c e s s o a l 6 4 o R A i t h 6 4 t h m o s t s i g n i f i c a n t t w a d d r e s s b i t s f r o m t h V I c h i p a r p r v i d e d b y t w o I / l i n e s ( p o r t o C I A 2 ) . W h a t t h a t m e a n s t t h p r o g r a m m e r i t h a t t h v i d e o m a t r i x a n c h a r a c t e r b a s e m u s tl i w i t h i n t h e s a m e 1 6 b o u n d a r y , s i n c e t h V I c h i p c a o n l ya c c e s s o n 1 6 " b a n k " a a t i m e .

N o t e t h w a t h v i d e o t a b l e s b e l o w a r o r g a n i z e d i n t o f o u rc o l u m n s ; e a c h c o l u m n l i s t s t h e p o s s i b l e m e m o r y a d d r e s s e s i e a c h 1 6 b a n k . T h d e f a u l t b a n k i 0 s i n c e t h e v i d e o m a t r i xb e g i n s a $ 0 4 0 0 . H o t h e n i i p o s s i b l e t a c c e s s t h e c h a r a c t e rR O M , w h i c h r e s i d e s a $ D 0 0 0 , a p p a r e n t l y i b a n k 3

C h a r a c t e r R O I m a g e s

T h a t f e a t i a c c o m p l i s h e d b y l i t t l e t r i c k i n t h 6 4 ' s h a r d w a r e .T h c h a r a c t e r R O a p p e a r s a $ D 0 0 0 o n l y t t h C P a f a a t h V I c h i p i c o n c e r n e d ( r e m e m b e r i c a o n l y a c c e s s u t 1 6 K ) , i f e t c h e s i t u s u a l c h a r a c t e r d e f i n i t i o n s f r o m $ 1 0 0 0 .H o w e v e r , t h e c h a r a c t e r d e f i n i t i o n s f r o m $ D 0 0 0 o n l y a p p e a r t

h T r a n s a c t o r 4 V o l u m e 5 I s s u e 0

Page 48: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 48/84

t h V I c h i p a $ 1 0 0 0 i b a n k s a n 2 S i y o u w e r e t p u c h a r a c t e r d e f i n i t i o n s i R A a $ 1 0 0 0 o $ 5 0 0 0 , t h V I c h i pw o u l d n ' t s e t h e m ; i w o u l d s t i l l s e t h u s u a l R O c h a r a c t e rt a b l e . O t h o t h e r h a n d , i b a n k s a n t h V I c h i p c a g e i t c h a r a c t e r d e f i n i t i o n s o u o R A f r o m a n a d d r e s s w i t h i nt h 1 6 b l o c k , i n c l u d i n g t h e R A a $ D 0 0 0 " u n d e r " t h c h a r a c t e r R O M . T p u i s i m p l y , t h e V I c h i p w i l l r e c o g n i z ec h a r a c t e r d e f i n i t i o n s f r o m R A s t a r t i n g a a n 2 b l o c k i m e m o r y e x c e p t a $ 1 0 0 0 , $ 1 8 0 0 , $ 5 0 0 0 o $ 5 8 0 0 . P o i n t i n g t h ec h a r a c t e r b a s e a a n o t h e s e l o c a t i o n s w i l l r e s u l t i d i s p l a y i n gt h d e f a u l t R O c h a r a c t e r s .

S e l e c t i n g O n o T w C h a r a c t e r S e t s

A p r e v i o u s l y m e n t i o n e d , t h e r e a r e t w c h a r a c t e r s e t s d e f i n e di t h R O o t h 6 4 T h 2 o m e m o r y f r o m $ D 0 0 0 t $ D 7 F Fc o n t a i n s t h e d e f i n i t i o n s f o t h u p p e r - c a s e / g r a p h i c s c h a r a c t e rs e w h i c h a p p e a r s a t h d e f a u l t a f t e r r e s e t o R E S T O R E .T h c h a r a c t e r d e f i n i t i o n s f o t h u p p e r / l o w e r c a s e c h a r a c t e r s e ( w h i c h c a n b s e l e c t e d b s i m u l t a n e o u s l y p r e s s i n g t h e S H I F Ta n " C o m m o d o r e " k e y s ) a r e l o c a t e d i t h n e x t 2 o R O M ,f r o m $ D 8 0 0 t $ D F F F . T o s e l e c t o n c h a r a c t e r s e o t h o t h e r ,t h k e r n a l j u s t f l i p s t h l e a s t s i g n i f i c a n t b i o t h e c h a r a c t e r b a s ep o i n t e r i t h V I c h i p t s e l e c t a o d o e v e n 2 b o u n d a r y .T h i s i w o r t h n o t i n g b e c a u s e i m e a n s t h a t t h o n l y w a t o s e tu t w c h a r a c t e r s e t s a n s w i t c h b e t w e e n t h e m w i t h t h e s h i f t /C o m m o d o r e k e y c o m b i n a t i o n i t s t a r t t h e c h a r a c t e r d e f i n it i o n s o 4 b o u n d a r y .

S p e c i f i c s : H o t C h a n g e t h P o i n t e r s

B o t h t h v i d e o m a t r i x a n c h a r a c t e r b a s e a d d r e s s e s w i t h i ng i v e n b a n k a r d e f i n e d w i t h V I r e g i s t e r 2 4 w h i c h i a l o c a t i o n $ D 0 1 8 ( 5 3 2 7 2 d e c i m a l ) . T h v i d e o m a t r i x s t a r t l o c at i o n ( o n e o 1 a d d r e s s e s w i t h i n t h e b a n k ) i d e f i n e d b b i t s 4 - 7 ,a n b i t s 1 - g i v e t h e c h a r a c t e r b a s e . T h l e a s t s i g n i f i c a n t b i i u n u s e d . I t a b l e s a n 2 t h b i p a t t e r n s n e c e s s a r y t o s e l e c tg i v e n m e m o r y a d d r e s s a p p e a r i t h r i g h t m o s t c o l u m n .

T h b a n k s e l e c t b i t s a r a c c e s s e d t h r o u g h l o c a t i o n $ D D 0 0 ,w h i c h c o n t r o l s p o r t o C I A 1 , o n o t h t w 6 5 2 6 I / c h i p s .B i t s a n o f t h i s l o c a t i o n c o n t r o l t h s t a t e o f t h m o s ts i g n i f i c a n t b i t s o t h V I c h i p a d d r e s s b u s . T h b i t s a r i n v e r t e d s o t h a t b o t h b i t s s e t t o s e l e c t s b a n k 3 a n b o t hs e l e c t s b a n k 0 T h s t a t e o f t h e s e b i t s n e c e s s a r y t o s e l e c t e a c hb a n k i g i v e n i t h t o r o o t a b l e s a n 2

I w a m e n t i o n e d e a r l i e r t h a t r e l o c a t i n g t h v i d e o m a t r i x a l s oi n v o l v e s c h a n g i n g a n o p e r a t i n g s y s t e m p o i n t e r . T h i s i s t h a tB A S I C w i l l p u t c h a r a c t e r s i t h r i g h t p l a c e w h e n P R I N T i n g t t h e s c r e e n . L o c a t i o n $ 0 2 8 8 ( 6 4 8 d e c i m a l ) c o n t a i n s t h p a g en u m b e r o t h v i d e o m a t r i x i m e m o r y i t ' s n o r m a l l y s e t t o 4 s i n c e t h e s c r e e n i a $ 0 4 0 0 . A a n o t h e r e x a m p l e , t r e l o c a t es c r e e n t $ 4 0 0 0 t h i s b y t e w o u l d h a v e t b c h a n g e d t $ 4 ( 6 d e c i m a l ) .

I t ' s w o r t h m e n t i o n i n g h e r e t h a t t h e r e a r o t h e r i m p o r t a n tm e m o r y a r e a s t t h V I c h i p b e s i d e s s c r e e n a n c h a r a c t e rm e m o r y . T h e r e i c o l o u r m e m o r y , w h i c h a p p e a r s a $ D 8 0 0 t

t h C P i i f i x e d , a n c a n ' t b p u a n y w h e r e e l s e . I f a c t ,c o l o u r m e m o r y i s n ' t p a r t o t h 6 4 m e m o r y m a p a a l l , b u e x i s t s i t h f o r m o l o n e I b b i c h i p o t h 6 4 ' s c i r c u i tb o a r d .

A n o t h e r s o u r c e o V I c h i p d i s p l a y d a t a t h a t i m o v e a b l e i m e m o r y i t h h i g h - r e s o l u t i o n s c r e e n . T h i s o n l y a p p l i e s i n h ir e m o d e , w h e r e 8 0 0 0 b y t e s a r e r e q u i r e d f o t h e s c r e e n . T h a tm e a n s t h a t t h e r e a r t w p o s s i b l e p l a c e s i e a c h b a n k w h e r eh i - r e s s c r e e n c a b l o c a t e d . A i n d i c a t e d i T a b l e 3 b i o l o c a t i o n $ D 0 1 8 c o n t r o l s w h e t h e r t h h i - r e s s c r e e n c o m e s f r o mt h l o w e r o u p p e r 8 o g i v e n b a n k .

T h E a s y W a O u t : V I C P A R M S

I i s o u n d s l i k e r e a l p a i n t r e - d e f i n e t h e c h a r a c t e r s e a n r e - a l l o c a t e v i d e o m e m o r y , t r t h p r o g r a m i n l i s t i n g 1 V I P A R M S w a o r i g i n a l l y w r i t t e n b P a u l H i g g i n b o t t o m f r o mC o m m o d o r e , a n i d o e s t h d i r t y w o r k f o y o u . V I C P A R M S w i l la s y o w h e r e y o w a n t t p u t s c r e e n m e m o r y ( t h e v i d e om a t r i x ) , a n w h e r e y o w a n t c h a r a c t e r m e m o r y t c o m e f r o m .Y o m u s t s u p p l y t h e s e a d d r e s s e s i h e x a d e c i m a l . G i v e n t h i si n f o r m a t i o n , V I C P A R M S w i l l d e t e r m i n e t h c o r r e c t v a l u e s t s t o r e i t h n e c e s s a r y l o c a t i o n s , a n w h e t h e r o r n o t t h ec h a r a c t e r s e m u s t b t r a n s f e r r e d f r o m R O t R A M . B e f o r eg o i n g a h e a d , i w i l l d i s p l a y t h e s t e p s i t ' s g o i n g t t a k e , a n a s i i s h o u l d p r o c e e d . G i v i n g t h r e p l y " y a t h i s p o i n t w i l l i n i t i a t et h a c t i o n . I t h e c h a r a c t e r s e m u s t b t r a n s f e r r e d , i w i l l t a k ef e w s e c o n d s b e f o r e t h p r o c e s s c o m p l e t e s .

W h e n u s i n g V I C P A R M S , y o u h a v e t k e e p i m i n d t h i n f o r m at i o n i t a b l e a n 2 Y o c a o n l y p u s c r e e n m e m o r y o c h a r a c t e r m e m o r y a o n o t h l o c a t i o n s d e s i g n a t e d i t h t a b l e . A l s o , i y o p u s c r e e n m e m o r y a n c h a r a c t e r m e m o r yc l o s e e n o u g h t o g e t h e r s o t h a t t h e y ' l l o v e r l a p , t h e r e ' s g o i n g t b p r o b l e m s . I n s h o r t , V I C P A R M S w o r k s o n u s e r - b e w a r ep h i l o s o p h y , b u t i d o e s t h j o w i t h m i n i m u m a m o u n t o c o d e ; i t ' s p r o g r a m m e r ' s u t i l i t y , a f t e r a l l .

W h e n V I C P A R M S t r a n s f e r s c h a r a c t e r m e m o r y t R A M , i c o p i e st h 2 o c h a r a c t e r d e f i n i t i o n s w h i c h a p p e a r i R O s t a r t i n g a $ D 0 0 0 . T h i s i t h e c h a r a c t e r s e w h i c h d e f i n e s t h e u p p e r / c a s eg r a p h i c s c h a r a c t e r s . I y o u w a n t t h a l t e r n a t e u p p e r / l o w e r c a s ec h a r a c t e r s e t , c h a n g e t h e v a r i a b l e ' c s e t ' i n l i n e 1 0 f r o m t 1 A l t e r n a t i v e l y , y o c o u l d c h a n g e t h p r o g r a m s t h a t i c o p i e sb o t h s e t s a o n c e : c h a n g e t h ' 2 0 4 7 ' i l i n e 4 5 t ' 4 0 9 5 ' .

O n c e y o u ' v e r e l o c a t e d t h e c h a r a c t e r s e t t o R A M , y o c a r e d e f i n e t h e c h a r a c t e r s b s i m p l y P O K E i n g a b o u t , w i t h o n e x c e p t i o n : i c h a r a c t e r m e m o r y h a b e e n m o v e d t $ D 0 0 0 ( t h eR A u n d e r t h e c h a r a c t e r R O a n I / O ) a n t h s c r e e n i s o m e w h e r e e l s e i b a n k ( $ C 0 0 0 f o e x a m p l e ) , t h o n l y w a t c h a n g e t h R A t r e d e f i n e t h e c h a r a c t e r s i t " m a p o u t " t h eI / O . T h I R Q s w i l l h a v e t b d i s a b l e d w h e n d o i n g t h i s .

B u b e f o r e g e t t i n g t o d e e p l y i n v o l v e d i d i s c u s s i o n a b o u tm e m o r y m a n a g e m e n t o t h 6 ( w h i c h c o u l d e a s i l y f i l l a n o t h e ra r t i c l e ) , l e t ' s l e a v e i a t h a t .

T h T r a n s a c t o r 4 V o l u m e 5 I s s u e 0

Page 49: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 49/84

T a b l e 1 V i d e o M a t r i x

B a n k S e l e c tB a n k O

x x x x x x l 1

0 0 0 00 4 0 00 8 0 0o c o o1 0 0 01 4 0 01 8 0 01 C 0 02 0 0 02 4 0 02 8 0 02 C 0 03 0 0 03 4 0 03 8 0 03 C 0 0

B a n kR e g i s t e r $ D D 0 0

B a n kx x x x x x l O x x x x x x O l

A d d r e s s4 0 0 04 4 0 04 8 0 04 C 0 05 0 0 05 4 0 05 8 0 05 C 0 06 0 0 06 4 0 06 8 0 06 C 0 07 0 0 07 4 0 07 8 0 07 C 0 0

R e l a t i v e t C P 8 0 0 08 4 0 08 8 0 08 C 0 09 0 0 09 4 0 09 8 0 09 C 0 0A 0 0 0A 4 0 0A 8 0 0A C 0 0B 0 0 0B 4 0 0B 8 0 0B C O O

B a n kx x x x x x O O

C O O OC 4 0 0C 8 0 0C C O OD 0 0 0D 4 0 0D 8 0 0D C O OE 0 0 0E 4 0 0E 8 0 0E C O OF 0 0 0F 4 0 0F 8 0 0F C O O

( ' x ' m e a n s ' d o n ' t c a r e ' )

T a b l e 2 C h a r a c t e r B a s e

B a n k S e l e c tB a n k O

x x x x x x l 1

0 0 0 00 8 0 01 0 0 0 ( 1 )1 8 0 0 ( 2 )2 0 0 02 8 0 03 0 0 03 8 0 0

B a n kR e g i s t e r $ D D 0 0

B a n kx x x x x x l O x x x x x x O l

A d d r e s s R 4 0 0 04 8 0 05 0 0 05 8 0 06 0 0 06 8 0 07 0 0 07 8 0 0

8 0 0 08 8 0 09 0 0 0 ( 1 )9 8 0 0 ( 2 )

A 0 0 0A 8 0 0B 0 0 0B 8 0 0

B a n kx x x x x x O O

C O O OC 8 0 0D 0 0 0D 8 0 0E 0 0 0E 8 0 0F 0 0 0F 8 0 0

$ D 0 1 8C o n t e n t s

O O O O x x x xO O O l x x x xO O l O x x x xO O l l x x x xO l O O x x x xO l O l x x x xO l l O x x x x0 1 l l x x x xl O O O x x x xl O O l x x x xI O I O x x x xl O l l x x x xH O O x x x xH O l x x x x1 1 1 O x x x xl l l l x x x x

$ D 0 1 8C o n t e n t s

x x x x O O O xx x x x O O l xx x x x O l O xx x x x O l l xx x x x l O O xx x x x l O l xx x x x l 1 O x x x x l 1 l x

( 1 R O i m a g e f r o m $ D 0 0 0 ( u p p e r c a s e / g r a p h i c s ) a p p e a r s h e r e( 2 R O i m a g e f r o m S D 8 0 0 ( u p p e r / l o w e r c a s e ) a p p e a r s h e r e

N o t e : B i o $ D 0 1 8 i t o g g l e d b t h s h i f t / C o m m o d o r e k e y s .

T a b l e 3 B i M a M e m o r y

B a n k S e l e c tB a n k O B a n k

x x x x x x l 1

0 0 0 02 0 0 0

R e g i s t e r $ D D 0 0B a n k B a n k

x x x x x x l O x x x x x x O l

A d d r e s s R e l a t i v e t C P 4 0 0 06 0 0 0

8 0 0 0A 0 0 0

x x x x x x O O

C O O OE 0 0 0

$ D 0 1 8C o n t e n t s

x x x x O x x xx x x x l x x x

J F L F

A B E D

I G

P I

H G

I IF J A D

I A F

M P

I F

H C A B L P D

0 I

D P P

F A

C O C L L

B G E K

I N M

J M

M B

G

L i s t i n g 1 : V I C P A R M S

1 r e m * v i c p a r m s "1 r e m * t h i s p r o g r a m a l l o w s y o t 1 r e m * p u y o u r s c r e e n m e m o r y1 r e m * a n d c h a r a c t e r m e m o r y1 r e m * i a n o t h p o s s i b l e l o c a t i o n s .1 r e m * i w i l l t r a n s f e r t h e c h a r a c t e r1 r e m * s e f r o m r o t r a i n e c e s s a r y1 r e p r o g r a m b p a u l h i g g i n b o t t o m2 0 1 0 c s e t = : r e m t r a n s f e r : u p p e r / g r a p h i c s ,

u p p e r / l o w e r c a s e1 1 p r i n t ( e n t r i e s i h e x a d e c i m a l ) "1 2 a s c r e e n a d d r " : g o s u b 5 4 0 : s c1 3 a $ c h a r . a d d r " : g o s u b 5 4 0 : c a1 4 i n t ( s c / 1 6 3 8 4 ) : r e m s c r e e n b a n k1 5 i n t ( c a / 1 6 3 8 4 ) : r e m c h a r b a n k1 6 s s c - b * 1 6 3 8 4 : r e m s c r e e n a d d r e s s1 7 c = c a - a * 1 6 3 8 4 : r e m c h a r a d d r e s s1 8 i s c v g o t o 5 1 1 9 r e e r r o r i s c r e e n a n c h a r s a s a m e p l a c e2 0 i ( ( ) o r ( b 3 ) a n ( a O b ) g o t o 5 1 2 1 r e e r r o r i i d i f f e r e n t n o - i m a g e b a n k s2 2 v i 1 3 * 4 0 9 6 : r e m v i c h i p a d d r e s s2 3 = 1 3 * 4 0 9 6 1 2 * 2 5 6 : r e m c i a c h i p2 4 c 1 3 * 4 0 9 6 1 3 * 2 5 6 : r e m c i c h i p2 5 i n t ( c v / 2 0 4 8 ) * 2 i n t ( s v / 1 0 2 4 ) * 1 6 : i f p < t h e n 5 1 2 6 r e c h a r , s c r e e n l o i l o h n y b b l e2 7 i n t ( s c / 2 5 6 ) : i f q < t h e n 5 1 2 8 0 r e m i s c r e e n m e m o r y p a g e f o k e r n a l2 9 p r i n t p o k e v i 2 4 , "3 0 p r i n t p o k e 6 4 8 , "3 1 ( p e e k ( c 2 ) a n d 2 5 2 ) o r ( 3 - b )3 2 p r i n t p o k e c i a 2 , " 3 3 i ( ( O ) o r ( b 2 ) a n ( ( ( p a n d 1 4 4 ) o r ( ( p a n d 1 6 ) ) )

g o t o 3 5 3 4 p r i n t y o n e e d t m o v e t h e c h a r a c t e r s e t o : "p r i n t c

3 5 p r i n t . i n p u t s h a l l d t h i s " ; a 3 6 i l e f t $ ( a $ , 1 ) O " y " t h e n e n 3 7 p o k e v i 2 4 , p3 8 p o k e 6 4 8 , q3 9 p o k e c 2 , r4 0 i ( ( O ) o r ( b 2 ) a n ( ( ( p a n d i 4 4 ) o r ( ( p a n d 1 4 6 ) ) )

g o t o 4 8 4 1 r e t r a n s f e r c h a r a c t e r s e i n e c e s s a r y4 2 p o k e 1 4 , p e e k ( c 1 1 4 ) a n d 2 5 4 : r e m t u r n o f i r q ' s4 3 p o k e 1 , p e e k ( 1 ) a n d 2 5 1 : r e m s e e c h a r s4 4 0 r o m v i c s e t * 2 0 4 8 : r e m c h a r a c t e r r o 4 5 f o 0 t o 2 0 4 7 : p o k e c a i , p e e k ( r o m i ) : n e x t

: r e m m o v e c h a r s4 6 p o k e , p e e k ( 1 ) o r 4 : r e m s e i / a g a i n4 7 p o k e d + 1 4 , p e e k ( c 1 + 1 4 ) o r 1 : r e e n a b l e i r q a g a i n4 8 p r i n t c h r $ ( 1 4 7 ) ;4 9 0 e n d5 0 5 1 p r i n t " ? i l l e g a l p a r a m e t e r s " : e n d5 2 5 3 r e m * i n p u t / c o n v e r t s u b r o u t i n e *5 4 p r i n t a $ ; : a $ = " : O : i n p u t a 5 5 i a " g o t o 5 4 5 6 f o t l e n ( a $ ) : a a s c ( m i d $ ( a $ , i ) ) - 4 8

: 7 * ( a > 9 ) : v v 1 a n e x t5 7 r e t u r n

h T r a n s a c t o r 4 V o l u m e 5 I s s u e 0

Page 50: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 50/84

B I G P R I N TP r o g r a m b A l l e n R M u l v e y , F u l t o n , N e Y o r kP r e s e n t e d b C h r i s Z a m a r a

T r u e P r o p o r t i o n H i g h - R e s P r i n t e r D u m p U t i l i t y

R e m e m b e r P I C P R 1 N T i t h " P r o t e c t i o n a n P i r a c y " i s s u e ( V o l 5 i s s u e 0 3 ) ? W e l l , t h i s o n i b e t t e r ! I t h t r u e s p i r i t o p r o g r a me v o l u t i o n ( o w h i c h t h i s m a g a z i n e i a f i r m b e l i e v e r ) , r e a d e r t o o kg i v e n p r o g r a m , a d d e d d a s h o b r i l l i a n c e , a n c a m e u w i t hw i n n e r .

T r e f r e s h y o u r m e m o r y , P 1 C P R I N T a l l o w e d y o t v i e w h i g hr e s o l u t i o n p i c t u r e i m e m o r y ( a 2 0 0 0 h e x ) , a n p r i n t t h p i c t u r e t S t a r G e m i n i o r s i m i l a r p r i n t e r , u s i n g t h e 6 4 ' s f u n c t i o n k e y s . T h p i c t u r e c o u l d b p r i n t e d i " w i d e m o d e " w h i c h s t r e t c h e di o u a c r o s s t h e p a g e ; w i e r d a n p e r h a p s l e s s t h a n u s e f u l f e a t u r e .A l a s , e v e n t h " n o r m a l m o d e " p r i n t o u t s e r v e d t s t r e t c h t h p i c t u r es l i g h t l y , s i n c e t h a s p e c t r a t i o ( p i x e l w i d t h v s h e i g h t ) o t h e p r i n t e rd i f f e r s f r o m t h a t o t h e s c r e e n .

T h g o o d n e w s : l i k e B r a i n s t o r m i n g , w i e r d c o n c e p t s o n i n t r i n s i cv a l u e c a s p a r k t h o u g h t . ( L i g h t b u l b s u d d e n l y a p p e a r s i t h o u g h tb u b b l e o v e r m a n ' s h e a d E u r e k a ! . ) W h i c h b r i n g s u b a c k t B I G P R I N T . W h e n " w i d e " p i c t u r e d u m p i i n i t i a t e d ( v i a t h F k e y ) ,t h r e s u l t i n g p i c t u r e t a k e s u a b o u t t h w i d t h o s t a n d a r d p r i n t e rp a g e , b u i t h e i g h t i a l s o i n c r e a s e d , s t h a t t h o v e r a l l p r o p o r t i o n sm a t c h u q u i t e w e l l t t h o s e o t h e s c r e e n . S p e c i f i c a l l y , t h b i p r i n t o u t i 5 p e r c e n t w i d e r t h a n t h n o r m a l s i z e a n t w i c e a s h i g h .N o w h d i d n ' t t h i n k o t h a t ?

B I G P R I N T r e t a i n s t h o p t i o n o p r i n t i n g " n o r m a l " s i z e d p i c t u r e ,w h i c h i d o e s i t h s a m e m a n n e r a P 1 C P R I N T . S o m e p i c t u r e s a r ed e s i g n e d t l o o k r i g h t o p r i n t e r r a t h e r t h a n t h e s c r e e n , a n l o o kb e s t p r i n t e d i n o r m a l m o d e .

A f t e r B I G P R I N T i i n s t a l l e d w i t h S Y 4 9 1 5 2 , F w i l l t o g g l e h i g h - r e s /t e x t m o d e , F w i l l p r i n t t h e p i c t u r e i n o r m a l s i z e , a n F w i l l g i v e t h eb i p r i n t . T h s t o p k e y c a n b u s e d t o h a l t a p i c t u r e i p r o g r e s s a t h e n o l i n e .

T h B A S I C l o a d e r f o l l o w s . H a v e f u w i t h i t a n k e e p t h o s e b r a i ns t o r m s c o m i n g i n

N o t e s :

1 C h a n g e t h 7 i l i n e 1 0 3 0 t 1 2 t t a k e a d v a n t a g e o t h d o u b l es p e e d p r i n t m o d e o t h S t a r G e m i n i - l O x p r i n t e r .

2 T h i n l i n e 1 2 8 0 i t h s e c o n d a r y a d d r e s s f o t h C a r d c o i n t e r f a c e ,a n s e l e c t s g r a p h i c s m o d e w i t h a u t o - l i n e f e e d s . Y o m a h a v e t u s t h n o - l i n e f e e d g r a p h i c s m o d e ( 5 ) , d e p e n d i n g o t h D I s w i t c h s e t t i n g s o y o u r p r i n t e r .

T h T r a n s a c t o r 4

C C

L J

M P

J G E C B M

J A M O P P L F B H

I N

L L F

-

*

1 r e m * d a t a l o a d e r1 r e m * f o r s t a r

c a r d c o2 c

.

f o

« - — i S — _

'

— .

b i g p r i n t "g e m i n i p r i n t e r

i n t e r f a c e

3 f o 4 9 1 5 2 t 4 9 6 3 9 : r e a d: c c a : n e x t

4 0 5 i c s < > 5 8 9 3 t h e n p r i n t " *

d a t a s t a t e m e n t s6 0 s y s 4 9 1 5 27 e n 8 0 1 0 0 0 d a t a1 0 1 0 d a t a1 0 2 0 d a t a1 0 3 0 d a t a1 0 4 0 d a t a1 0 5 0 d a t a1 0 6 0 d a t a1 0 7 0 d a t a1 0 8 0 d a t a1 0 9 0 d a t a1 1 0 0 d a t a1 1 1 0 d a t a1 1 2 0 d a t a1 1 3 0 d a t a1 1 4 0 d a t a1 1 5 0 d a t a1 1 6 0 d a t a1 1 7 0 d a t a

7 6 0

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

1 4 1 ,1 9 7 ,

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

6 7 0

4 6 0

1 6 7 6

1 6 4

0 6 4

1 4 1 ,2 1

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

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

1 9

1 9 6

6

2

6

1 4

1 1 4

a n

'

a : p o k e i ,

* e r r o r i e n

1 0

6 6

8 2 0 1 9 1 9

2 4 1 6

4 1 9

0 1 2 8 ,

2 2

6 4 0 0

1 2 0 ,1 6 9 ,

9 6 8

7 6 2 0 8 ,1 9 2 ,

3 5 3

1 9 2 ,7 6

6

7

6 6

1 6 1 9 1 6 1 6

4 4

1 6 2 0 1 4 1 6 1 4

V o l u m e 5 I s s u e 0

Page 51: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 51/84

P L 0

G B D E K I

L C N H N C

F B C F B D E D C D E L J E N O E

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

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

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

A G G L

D G H M N O B C

L A C J B

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

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

1 0 1 9 2 ,1 9 2 , 8

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

6 2 1 0 1 9 2 ,

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

1 0 1 9 2 ,

3 4 0

1 9 2 ,1 9 2 ,

6 4 5

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

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

3 7 6 1 9 2 , 2 4 0 ,

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

3 2 2 0 4 ,

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

5 1 9 6 1 9

1 9 2 , 1 7 1 9 2 , 2 4 01 7 4 , 4 2 0 2 , 2 1 9 2 , 1 3 1 9 2 , 2 0 61 9 2 , 1 ' 2 6 , 1 9

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

3 2 , 2 1 02 3 2 , 2 2 1 6 7 , 1 9

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

2 1 8 , 1 9 21 2 1 7 4 1

2 3 6 , 2 0 1 6 9 , 2

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

" M i c k e y " b y C o V I s o nc r e a t e d w i t h ' P i c t u r e P e r f e c t ' , p r i n t e d w i t h B I G P R I N T

T r a n s a c t o r 4 V o l u m e 5 I s s u e 0

Page 52: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 52/84

T w S h o r t S p r i t e E d i t o r sC h r i s Z a m a r a , T e c h n i c a l E d i t o r

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

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

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

S p r i t e E d i t o r N u m b e r

T h f i r s t o n i t h s h o r t e r o t h e t w o , a n b i b o r i n g p e r h a p s ,b u i w o r k s . T h i d e a b e h i n d t h i s o n i t h a v e t h s p r i t ed e f i n i t i o n c o n t a i n e d w i t h i n D A T A s t a t e m e n t s . T h a t w a y o c a e d i t a l t h D A T A s t a t e m e n t s o t h s c r e e n , p r e s s R E T U R No v e r e a c h o n e , t h e n R U t h p r o g r a m t d e f i n e a n d i s p l a y t h es p r i t e . b o n u s o d o i n g i t h i s w a i t h a t s a v i n g t h p r o g r a mo n c e s p r i t e i s d e f i n e d a l s o s a v e s t h e s p r i t e d e f i n i t i o n .

L o o k a l i s t i n g 1 W h e r e a r e t h e d a t a s t a t e m e n t s ? T h p r o g r a ms h a r e s t r a i t w i t h m o n s t e r r o b o t i a o l J a p a n e s e s c i - f im o v i e : i c a " p r o g r a m i t s e l f t e n l a r g e " ( h o n e s t , t h a t ' s w h a tt h r o b o t d i d i t h e m o v i e ) . E n t e r t h p r o g r a m , t h e n R U 3 0 0 .L i n e s 1 0 0 0 t 1 0 2 0 w i l l b a d d e d t t h p r o g r a m , a n w i l l b l i s t e d f o r y o u r c o n v e n i e n c e . E a c h p e r i o d b e t w e e n t h q u o t e s i t h D A T A s t a t e m e n t s r e p r e s e n t s o n p i x e l i t h s p r i t e . C h a n g e

d o t a n y t h i n g e l s e ( l i k e a s t e r i s k s ) t s e t h c o r r e s p o n d i n gs p r i t e p i x e l . Y o u ' l l h a v e t p r e s s R E T U R N o v e r e a c h l i n e t e n t e r i ( t h e p r o g r a m s e t s a u t o - r e p e a t o a l k e y s s j u s t s t a r t a tl i n e 1 0 0 0 a n h o l d d o w n t h R E T U R N k e t e n t e r a l l i n e s ) .

W h e n y o u w a n t t s e t h s p r i t e , R U t h p r o g r a m ; t h n e w l yd e f i n e d s p r i t e w i l l a p p e a r a t h e t o p l e f t c o r n e r o t h s c r e e n . T c o n t i n u e e d i t i n g , L I S T 1 0 0 0 - o j u s t L I S T t d i s p l a y t h e c u r r e n tD A T A s t a t e m e n t s . T h s p r i t e i d e f i n e d a s p r i t e p a g e 1 w h i c hi l o c a t i o n 8 3 2 . T h u s , t h e b y t e s s t o r e d f r o m 8 3 t 8 9 c o p r i s e t h s p r i t e d e f i n i t i o n , a n m a b w r i t t e n t d i s k f i l e o o t h e r w i s e s a v e d i l i e u o s a v i n g t h s p r i t e e d i t o r p r o g r a m w i t ht h D A T A s t a t e m e n t s . S u r e , i t ' s p r i m i t i v e , b u i w o r k s , a n t h p r o g r a m i o n l y 2 l i n e s l o n g . T h e m a i n i n c o n v e n i e n c e i t h a t

y o c a n ' t s e e t h e s p r i t e d y n a m i c a l l y c h a n g e a e a c h p o i n t i c h a n g e d ; y o u h a v e t R U t h p r o g r a m e a c h t i m e t s e t h n e s p r i t e , a n t h r e - d e f i n i t i o n p r o c e s s i s n ' t q u i c k . E n t e rS p r i t e E d i t o r * 2

S p r i t e E d i t o r N u m b e r

T h i s o n i b i l o n g e r , b u m u c h m o r e e x c i t i n g . T h s p r i t ed e f i n i t i o n p r o c e s s o c c u r s d y n a m i c a l l y , a y o p l o t o r e r a s e e a c hp o i n t . I c a b f u t u s e , s i n c e t h e r o u t i n e i i n t e r r u p t - d r i v e na n d y o u k e e p c o m p l e t e c o n t r o l o v e r t h m a c h i n e w h i l e y o d e f i n e t h e s p r i t e b p u t t i n g a s t e r i s k s o t h e s c r e e n . R U i ( l e a v i n g o u t t h e o p e n i n g R E M s i y o w i s h ) , a n a f t e r f e s e c o n d s , a a r r a y o d o t s w i l l b p r i n t e d s t a r t i n g a t h e t o p l e f t o t h e s c r e e n . A f t e r t h e d o t s a p p e a r , t h e c o m p u t e r r e t u r n s t i t n o r m a l s t a t e y o a r f r e e t o e n t e r c o m m a n d s , e d i t o L I S Tp r o g r a m , w h a t e v e r . B u t t r c h a n g i n g s o m e o t h e d o t s t a s t e r i s k s . A a s t e r i s k s a r e n t e r e d i a n o t h e i n d i c a t e d s c r e e nl o c a t i o n s , t h s p r i t e i i n s t a n t l y u p d a t e d a n d i s p l a y e d a t h r i g h t o f t h e s c r e e n . U n l i k e p r o g r a m o n e , y o s h o u l d n ' t p r e s sR E T U R N o v e r e a c h l i n e o y o u ' l l g e t a s y n t a x e r r o r u s S H I F T /R E T U R N i n s t e a d . T h d o t s w h i c h a r e p r i n t e d a r e n ' t r e a l l yi m p o r t a n t a a l l , b u t h e y s e r v e a g u i d e t t h b o u n d a r y o t h s p r i t e d e f i n i t i o n a r e a ( 2 c h a r a c t e r s a c r o s s b 2 d o w n ) .

R e m e m b e r , o n c e t h p r o g r a m h a b e e n R U N , a n y c h a n g e i t h s p r i t e d e f i n i t i o n f i e l d o t h s c r e e n w i l l a f f e c t t h s p r i t e . I y o u w e r e t L I S T t h p r o g r a m f o e x a m p l e , y o u ' d s e t h f u n n y l o o k i n g s p r i t e f o r m , a n t h e n a p p e a r t " s c r o l l " u p w a r d sw i t h t h p r o g r a m l i s t i n g . A t h a s t e r i s k s i t h p r o g r a m l i s t i n gm o v e a c r o s s t h e s p r i t e d e f i n i t i o n f i e l d , t h s p r i t e c o n t i n u o u s l yc h a n g e s t o r e f l e c t t h n e a s t e r i s k p a t t e r n . O c o u r s e , l i s t i n g i s l o w e d d o w n c o n s i d e r a b l y , s i n c e t h e i n t e r r u p t s a r s t e a l i n g s m u c h t i m e .

W h e n y o u ' v e p l a y e d a r o u n d e n o u g h t c o m e u w i t h s p r i t ey o u ' r e h a p p y w i t h , y o c a d i s a b l e t h e i n t e r r u p t - d r i v e n s p r i t ep r o g r a m a n d p r i n t o u t t h e 6 b y t e s d e f i n i n g t h e s p r i t e b e n t e r i n g C O N T . T h i s c o m m a n d a p p e a r s b e l o w t h e d o t s w h i c ha r e p r i n t e d o u t , s y o c a j u s t m o v e t h c u r s o r o v e r t h C O N Ta n p r e s s R E T U R N . A f t e r t h v a l u e s h a v e b e e n p r i n t e d o u t , t h i n t e r r u p t r o u t i n e c a b r e - e n a b l e d w i t h S Y 4 9 1 5 2 , a n d i s a b l e d w i t h S Y 4 9 1 6 5 .

T h T r a n s a c t o r 5 V o l u m e 5 I s s u e 0

Page 53: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 53/84

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

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

t h a n t t y p e s o m e o n e e l s e ' s p r o g r a m i n

L i s t i n g f o S p r i t e E d i t o r #

r e m * s i m p l e s p r i t e d e s i g n e rs 1 3 : r e m s p r i t e p a g e

= s p * 6 4 : r e m s p r i t e p o s i t i o np o k e 2 0 4 0 , s p

= 5 3 2 4 8 : p o k e v + 2 1 , 1 : r e m d i s p l a y m o p o k e v 3 9 , 1 : p o k e v , 2 5 : p o k e v + 1 , 5 1f o r i 0 t o 7 : e ( 7 - i ) 2 t i : n e x tp o k e 6 5 0 , 1 2 8 : r e r e p e a t a l k e y s: r e m c o n v e r t d a t a t m o f o r i t o 2 1 : r e a d a $ : f o r j t o 2 4 s t e p 8

O : f o r k 0 t o 7 : i f m i d $ ( a $ , j k ) < > " . "t h e n e ( k )n e x t k : p o k e s , v : s + : n e x t j , ie n : r e m a d d a t a s t a t e m e n t si f a > 2 0 t h e n l i s t 1 0 0 0 -p r i n t c h r $ ( 1 4 7 ) 1 0 0 0 a " d a t a " ;p r i n t c h r $ ( 3 4 ) " " c h r $ ( 3 4 )r e 2 p e r i o d s

. - p r i n t " a = " a : g o t o 3 0 0 "p o k e 1 9 8 , 3 : p o k e 6 3 1 , 1 9 : p o k e 6 3 2 , 1 3 : p o k e 6 3 3 , 1 3e n

L i s t i n g f o r S p r i t e E d i t o r #

I

F

D

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

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

O O C

L B O E H G E

I D D H C

M K

I A B A A

E O H

O E M D J K B O D E B D K

B E N B A C o C E C L D

1 0 r e 1 1 r e 1 2 0 r e m1 3 0 r e m1 4 0 r e m1 5 r e 1 6 0 :

e a s y s p r i t e e d i t o r «- u s e n o r m a l e d i t o r t d r a w .

- u s e * t p l o t p o i n t s .- p r e s s r e t u r n o v e r " c o n t :

t p r i n t s p r i t e v a l u e s .a u g 8 4 — c z —

1 7 f o r i 4 9 1 5 2 t o 4 9 2 7 8 : r e a d a : p o k e i , a : n e x t2 1 0 :2 2 r e d i s p l a y s p r i t e # 1 ( a 8 3 2 ]2 3 v 1 3 * 4 0 9 62 4 0 p o k e 2 0 4 0 , 1 32 5 p o k e v , 3 0 : p o k e 1 , 1 0 0 : p o k e2 6 p o k e2 7 0 :2 8 r e

2 1 , 1 : p o k e v 3 9 , 1

p r i n t d e s i g n g r i d2 9 p r i n t c h r $ ( 1 4 7 ) ; : f o r i t o 2 12 9 n r i n t " : n e x t

2 9 r e 2 p e r i o d s3 0 p r i n t " c o n t : "

v + 1 6 , 1

3 1 s y s 4 9 1 5 2 : r e e n a b l e s p r i t e d r a w3 2 e n 3 3 r e c o n t " e x e c u t e s t h f o l l o w i n g3 4 s y s 4 9 1 6 5 : r e d i s a b l e s p r i t e3 5 p r i n t c h r $ ( 1 4 7 )3 6 r e p r i n t s p r i t e v a l u e s3 7 f o r i 8 3 2 t o 8 9 5 : p r i n t p e e k ( i )3 8 e n 1 0 0 0 d a t a1 0 1 0 d a t a1 0 2 0 d a t a1 0 3 0 d a t a1 0 4 0 d a t a1 0 5 0 d a t a1 0 6 0 d a t a1 0 7 0 d a t a1 0 8 0 d a t a1 0 9 0 d a t a1 1 0 0 d a t a1 1 1 0 d a t a1 1 2 0 d a t a1 1 3 0 d a t a1 1 4 0 d a t a1 1 5 0 d a t a1 1 6 0 d a t a1 1 7 0 d a t a1 1 8 0 d a t a1 1 9 0 d a t a1 2 0 0 d a t a1 2 1 0 d a t a

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

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

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

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

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

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

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

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

9

j r a w

n e x t

8 2

1

1 6 1 6 1 0

6 1 9 1 6

2 2

1 4 6

1 6

1 9 2 3

h T r a n s a c t o r 5 V o l u m e 5 I s s u e 0

Page 54: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 54/84

L i s t S c r o l l i n gR o u t i n e F o T h C 6

D a r r e n J a m e s S p r u y tG r a v e n h u r s t , O n t a r i o

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

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

T h o p e r a t i o n i v e r y s i m p l e : a f t e r y o h a v e r u t h B A S I C l o a d e r p r o g r a m ( L i s t i n g 1 ) g i v e t h e n a b l i n g ' S Y S . 'T s c r o l l b a c k w a r d s t h r o u g h t h l i s t i n g , p l a c e t h e c u r s o ro t h t o r o o t h s c r e e n a n p r e s s c u r s o r u p I t h s c r e e n h a n n u m b e r s a l o n g t h l e f t h a n d s i d e , t h l i s t i n gw i l l s t a r t f r o m t h v e r y l a s t l i n e o f t h p r o g r a m . C o v e r s e l y i y o a r a t h b o t t o m o t h s c r e e n ( w i t h n l i n en u m b e r s o t h s c r e e n ) a n p r e s s c u r s o r d o w n , t h l i s t i n gw i l l s t a r t w i t h t h e f i r s t l i n e i t h p r o g r a m .

I l i n e n u m b e r s a p p e a r o t h s c r e e n , u p w a r d s s c r o l l i n gw i l l l i s t t h l i n e p r e v i o u s t t h n u m b e r c l o s e s t t t h e t o po t h s c r e e n , a n i s c r o l l i n g d o w n , t h l i n e n u m b e r t h a tf o l l o w s t h o n c l o s e s t t t h b o t t o m o t h s c r e e n w i l l b l i s t e d .

O n n o t e : B s u r e t s t o p r e a l l i s t b e f o r e p r e s s i n g t h ec u r s o r d o w n , o e l s e n a s t y t h i n g s m a h a p p e n . T h a t i s i y o t y p e d ' L I S T 1 0 0 - ' , p r e s s t h e R U N / S T O P k e b e f o r et r y i n g t s c r o l l d o w n t h l i s t i n g .

L i s t i n g i t h B A S I C l o a d e r f o L I S T S C R O L L E R , w h i l el i s t i n g i d i s a s s e m b l y o t h p r o g r a m . f e n o t e s : T h v e c t o r a ( $ 0 3 0 0 ) i t h ' E R R O R M E S S A G E L I N K ' , a n a l e r r o r s p a s s t h r o u g h t h i s v e c t o r a w e l l a s t h e l i s t r o u t i n ew h e n i i f i n i s h e d . T h i s v e c t o r i c h a n g e d s t h a t t h p r o g r a m c a r e g a i n c o n t r o l a f t e r l i n e h a b e e n l i s t e d o w h e n a e r r o r o c c u r s d u r i n g l i n e n u m b e r f e t c h e s .

T h p r o g r a m m i n g m e t h o d u s e d c o u l d b d e n o t e d ' P O S T -I N T E R R U P T ' t h a t i s w h e n a i n t e r r u p t o c c u r s , l i t t l ep r e - i n t e r r u p t c o d e i d o n e , t h e n t h s y s t e m i n t e r r u p t c o d ei p e r f o r m e d ( k e y b o a r d s c a n , u p d a t i n g T I $ ) , a n f i n a l l y ,c o n t r o l i r e t u r n e d t t h e p o s t - i n t e r r u p t r o u t i n e b e f o r e t h i n t e r r u p t r e t u r n s . T h a d v a n t a g e o v e r s i m p l e p r e -i n t e r r u p t t e c h n i q u e i t h a t t h p r o g r a m c a c h e c k i c e r t a i n k e y s a r p r e s s e d b e f o r e t h s c r e e n e d i t o r e v e nk n o w s t h e y e x i s t .

C L

B D G L

C A I I

D E

O P N N D B L

H I

J C A L A B C C G

M H A G K K H D G O D K O G A

L i s t i n g 1 B A S I C l o a d e r f o s c r o l l r o u t i n e

O r e m * d a t a l o a d e r f o " s c r o l l e r "2 c 3 f o = 5 1 4 5 6 t 5 2 0 4 9 : r e a d a : p o k e i , 4 0 c s c a : n e x t5 0 6 0 i f c s O 7 3 8 1 7 t h e n

p r i n t " * * * * e r r o r i d a t a s t a t e m e n t s * * * * '7 r e m s y s 5 1 4 5 68 e n 1 0 0 :1 0 0 0 d a t a 1 2 0 , 1 7 3 , 2 0 1 0 1 0 d a t a 2 0 1 , 1 7 3 , 2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2 1 7 , 1 6 , 2 4 71 2 3 0 d a t a 3 2 , 2 2 9 , 2 0 2 , 1 4 4 , 2 4 2 , 1 7 61 2 4 0 d a t a 6 1 6 9 , 2 5 5 , 1 3 3 , 2 0 , 1 3 1 2 5 0 d a t a 2 1 , 3 2 , 1 9 , 1 6 6 , 1 6 4 , 9 1 2 6 0 d a t a 2 2 8 , 4 4 , 2 0 8 , 7 , 1 9 6 , 4 1 2 7 0 d a t a 2 0 8 , 3 7 6 , 1 5 6 , 2 0 2 , 2 0 21 2 8 0 d a t a 2 2 8 , 4 4 , 1 7 6 , 5 , 1 6 6 , 4 1 2 9 0 d a t a 1 6 4 , 4 3 , 1 3 6 , 1 3 4 , 6 4 1 3 1 3 0 0 d a t a 6 3 , 1 6 0 , 0 , 1 7 7 , 6 3 , 2 4 01 3 1 0 d a t a 6 , 2 0 0 , 2 0 8 , 2 4 9 , 7 6 , 1 5 61 3 2 0 d a t a 2 0 2 , 2 0 0 , 1 7 7 , 6 3 , 1 9 7 , 9 1 3 3 0 d a t a 2 0 8 , 2 4 3 , 2 0 0 , 1 7 7 , 6 3 , 1 9 71 3 4 0 d a t a 9 6 , 2 0 8 , 2 3 6 , 1 3 6 , 1 5 2 , 2 1 3 5 0 d a t a 1 0 1 , 6 3 , 1 3 3 , 9 5 , 1 6 5 , 6

e n

T h T r a n s a c t o r 5 V o l u m e 5 I s s u e 0

Page 55: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 55/84

Page 56: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 56/84

S T P : E x e c u t e F r o m S e q u e n t i a l F i l eC h r i s Z a m a r a , T e c h n i c a l E d i t o r

S T s t a n d s f o " S e q u e n t i a l T P r o g r a m " , a t h i s u t i l i t y w a o r i g i n a l l y w r i t t e n t c o n v e r t s e q u e n t i a l p r o g r a m l i s t i n g i n t oB A S I C p r o g r a m . T h a t e n a b l e s y o t L I S T p r o g r a m t o d i s k ,e d i t i w i t h w o r d p r o c e s s o r , t h e n m e r g e i w i t h p r o g r a mc u r r e n t l y i m e m o r y . A n i y o f e l t l i k e i t y o c o u l d e v e nw r i t e p r o g r a m f r o m s c r a t c h w i t h w o r d p r o c e s s o r , s a v e i a s e q u e n t i a l f i l e , t h e n u s e S T t t u r n i i n t o n o r m a l p r o g r a m .

A o f t e n h a p p e n s w i t h p r o g r a m s , S T t u r n e d o u t b m o r eu s e f u l t h a n i w a i n t e n d e d t b e S T t u r n s s e q u e n t i a l f i l ei n t o p r o g r a m b r e a d i n g d i s k f i l e l i n e b l i n e ( a s s u m i n gc a r r i a g e r e t u r n s a t h e n o e a c h l i n e ) a n p r o c e s s i n g t h a t l i n ea i f i t w e r e e n t e r e d f r o m t h k e y b o a r d . S i t h e d i s k f i l eh a p p e n s t l o o k l i k e B A S I C p r o g r a m , t h e n t h a t p r o g r a m g e t se n t e r e d j u s t a i y o t y p e d i i y o u r s e l f . C o n s i d e r , h o w e v e r ,f i l e t h a t l o o k s l i k e t h i s :

l o a d " g a m e . m l " , 8 , 1n e l o a d " g a m e . b a s " , 81 r e l i s tr u

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

o p e n 1 , 8 , 1 2 , " O : t e s t f i l e , s , w "

p r i n t # l , " l o a d c h r $ ( 3 4 ) " g a m e . m l " c h r $ ( 3 4 ) " , 8 , 1 "p r i n t # l , " n e w "p r i n t # l , " l o a d c h r $ ( 3 4 ) " g a m e . b a s " c h r $ ( 3 4 ) " , 8 p r i n t # l , " 1 r e m "p r i n t # l , " l i s t "p r i n t * 1 , r u

c l o s e *

S T P - i n g t h a t f i l e w o u l d g i v e t h e s a m e r e s u l t s a t y p i n g i t h o s ec o m m a n d s f r o m t h k e y b o a r d : y o u ' d L O A D s o m e m a c h i n el a n g u a g e , N E W , l o a d a B A S I C p r o g r a m , R E o u l i n e 1 0 , L I S T ,t h e n R U t h n e w l y l o a d e d p r o g r a m . S T c a a u t o m a t e s o m ep r o c e d u r e s t h a t y o c u r r e n t l y d o n ' t h a v e p r o g r a m t d o Y o c o u l d u s e i t b o o t u s o m e p r o g r a m m i n g u t i l i t y p a c k a g e s ,c h a n g e s o m e p a r a m e t e r s , s e u s o m e d e f a u l t s , c o l o u r y o u rs c r e e n a n b o r d e r n i c e l y , e t c . I y o u ' r e f a m i l i a r w i t h t h P o w e r

6 u t i l i t y , y o u ' l l n o t i c e t h a t S T d o e s t h s a m e t h i n g a M o r e p o w e r ' s E X E C f u n c t i o n .

S T i o n l y 1 7 b y t e s l o n g , a n a l i s t e d h e r e , i l i v e s a $ C 0 0 0o 4 9 1 5 2 d e c i m a l . I m a b e c o n v e n i e n t t a s s e m b l e v e r s i o nt l i a 8 2 i t h c a s s e t t e b u f f e r ( s u c h a v e r s i o n i o t h T r a n s a c t o r d i s k f o r t h i s i s s u e ) . T u s i t j u s t c a l l i w i t h S Y f o l l o w e d b c o m m a a n t h f i l e n a m e o t h s e q u e n t i a l f i l e t b S T P ' d . F o e x a m p l e :

s y 4 9 1 5 2 , " t e s t f i l e

A n s t r i n g e x p r e s s i o n i v a l i d , f o r e x a m p l e :

1 i n p u t " f i l e n a m e " ; f 2 0 s y s 4 9 1 5 2 , f $3 0 e n d

S T c a n b e c a l l e d f r o m w i t h i n p r o g r a m , b u w i l l o n l y b e c o m ea c t i v e A F T E R t h p r o g r a m e n d s . P r e s s i n g t h S T O P k e w i l lh a l t S T a t h e n o t h l i n e c u r r e n t l y b e i n g r e a d i n

F o t h c u r i o u s , S T w o r k s t h r o u g h t h 6 4 ' s w a r m s t a r t l i n k a $ 0 3 0 2 - 0 3 0 3 . I r o u t e s t h i s v e c t o r t t h m a i n r o u t i n e , w h i c hr e a d s i l i n e , p r i n t s i o t h s c r e e n , p u t s c u r s o r - u p a n c a r r i a g e r e t u r n i t h k e y b o a r d b u f f e r , t h e n j u m p s t t h n o r m a l w a r m l i n k e n t r y p o i n t . T h n e l i n e w i l l b e n t e r e d ,a n a f t e r i h a b e e n p r o c e s s e d , c o n t r o l i a g a i n p a s s e d t h r o u g ht h w a r m s t a r t v e c t o r a n t h p r o c e s s r e p e a t s u n t i l e n d - o f - f i l ei r e a c h e d . A t t h a t p o i n t , t h l i n k v e c t o r i r e s t o r e d t i t n o r m a ls t a t e .

T h o n l y o t h e r c a t c h i t h b i o t r i c k e r y n e c e s s a r y t p r e v e n tt h e d i s k f i l e f r o m b e i n g c l o s e d a f t e r B A S I C l i n e i e n t e r e d o N E i p e r f o r m e d . A l o p e n f i l e s a r n o r m a l l y c l o s e d b r o u t i n e t h a t i f o r t u n a t e l y v e c t o r e d t h r o u g h a " a b o r t I / v e c t o r " a $ 0 3 2 C - 0 3 2 D . T h v e c t o r p o i n t s t $ F 3 2 F , a n t h f i r s t t h i n g t h a t h a p p e n s t h e r e i t h a c c u m u l a t o r i l o a d e d w i t h

z e r o t b s t o r e d i t h n u m b e r o o p e n f i l e s v a r i a b l e a $ 0 0 9 8 . T k e e p o n f i l e o p e n a a l t i m e s , S T p o i n t s t h a b o r tI / v e c t o r t i t o w r o u t i n e w h i c h l o a d s t h e a c c u m u l a t o r w i t ho n e , t h e n s n e a k s b t h L D i n s t r u c t i o n i t h a b o r t I / r o u t i n e , j u m p i n g t $ F 3 3 1 i n s t e a d o $ F 3 2 F . T h i s e f f e c t i v e l yp r e v e n t s t h f i r s t f i l e o p e n e d f r o m e v e r c l o s i n g . S T c l o s e s a l o p e n f i l e s b e f o r e i o p e n s t h e d i s k f i l e s t h a t t h e d i s k f i l e w i l l b t h f i r s t o p e n f i l e .

T h T r a n s a c t o r 5 V o l u m e 5 I s s u e 0

Page 57: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 57/84

F H

I

I P

E

T h e B A S I C L o a d e r P r o g r a m

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

s t a t m e n t s * * * * " ■ e n 7 p r i n t " t r u 8 e n 1 0 1 0 0 0 d a t a 3 2 1 0 1 0 d a t a 3 2 1 0 2 0 d a t a 1 0 1 ,1 0 3 0 d a t a 1 7 7 ,1 0 4 0 d a t a 7 2 1 0 5 0 d a t a 2 1 0 6 0 d a t a 3 1 0 7 0 d a t a 9 4 1 0 8 0 d a t a 1 4 1 ,1 0 9 0 d a t a 4 4 1 1 0 0 d a t a1 1 1 0 d a t a 1 1 1 2 0 d a t a 1 0 1 1 3 0 d a t a 3 1 1 4 0 d a t a 2 0 1 1 5 0 d a t a 4 1 1 6 0 d a t a 3 1 1 7 0 d a t a 3 1 1 8 0 d a t a 3 1 1 9 0 d a t a 1 6 1 2 0 0 d a t a 9 1 2 1 0 d a t a 9 1 2 2 0 d a t a 4 1 2 3 0 d a t a 1 4 1 2 4 0 d a t a 1 0 1 2 5 0 d a t a 1 9 1 2 6 0 d a t a 1 6 1 2 7 0 d a t a 1 9 1 2 8 0 d a t a 1 4 1

s t p : s y s 4 9 1 5 2 , f i l e n a m e "

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

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

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

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

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

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

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

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

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

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

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

T h s o u r c e c o d e f o S T

0 0 s y s 7 0 01 0 1 0 . o p t o 1 0 2 01 0 3 0 ;1 0 4 0 ; " S T P "

; p a l 6

$ c 0 0 0

1 0 5 0 ; e x e c u t e s a s e q u e n t i a l f i l e1 0 6 0 ; s y n t a x1 0 7 0 ; s y s ( a d d r ) , " f i l e n a m e "1 0 8 0 ;1 0 9 0 ; k e r n a l e n t r i e s :1 1 0 0 c h k i n1 1 1 0 c h r o u t1 1 2 0 c l a l l1 1 3 0 c l o s e1 1 4 0 c l r c h n1 1 5 0 g e t i n1 1 6 0 o p e n1 1 7 0 r e a d s t1 1 8 0 s e t l f s1 1 9 0 s e t n a m1 2 0 01 2 1 0 w a r m l n k1 2 2 0 a b o r t i o1 2 3 0 ;

$ f f c 6$ f f d 2$ f f e 7$ f f c 3$ f f c c$ f f e 4$ f f c O$ f f b 7$ f f b aS f f b d

$ 0 3 0 2$ 0 3 2 c

L P O M M M

L A B C D

D I

K H O K H F M N K

B A

I H J M E F C K O C K A A

F E M

H M F

N E E E N A B A N J L F J

I IK F O

K G K

I O

1 2 4 0 I s t x1 2 5 0 n d x1 2 6 0 k e y d1 2 7 0 ;

$ c ; l a s t k e y p r e s s e d$ c ; # o f k e y s p r e s s e d$ 2 7 7 k e y b o a r d b u f f e r

1 2 8 0 ; g e t f i l e n a m e1 2 9 01 3 0 01 3 1 01 3 2 01 3 3 01 3 4 0 ;1 3 5 01 3 6 01 3 7 01 3 8 0 ;1 3 9 01 4 0 0 ;1 4 1 0 ; c h a n g e

j s $ a e f d ; c h e c k f o c o m m aj s $ a d 9 e ; e v a l u a t e e x p r e s s i o nj s $ a d 8 f ; c h e c k f o s t r i n gl d a # $ 6 4 : l d y # $ 6 5j s $ b 6 d b ; d e a n d e s c r i p t o r s t a c k

l d y # 0 : l d a ( $ 6 4 ) , y : p h a ; l e n g t hi n y : l d a ( $ 6 4 ) , y : p h a ; a d d r l o wi n y : l d a ( $ 6 4 ) , y : p h a ; a d d r h i

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

w a r m s t a r t l i n k1 4 2 0 ; a n d a b o r t i / v e c t o r1 4 3 01 4 4 01 4 5 01 4 6 01 4 7 01 4 8 01 4 9 0 ;

I d w a r m l n k s t o l d w a r mI d w a r m l n k + 1 s t o l d w a r m + l d a # < n e w a r m s t w a r m l n kI d # > n e w a r m s t w a r m l n k + 1I d # < n e w i o s t a b o r t i oI d # > n e w i o s t a b o r t i o +

1 5 0 0 ; o p e n d i s k f i l e1 5 1 01 5 2 01 5 3 01 5 4 01 5 5 01 5 6 01 5 7 01 5 8 0 ;1 5 9 0 n e w i o1 6 0 01 6 1 0 ;

l d a # 1 2 7 : l d x # 8 : l d y # 1 2j s s e t l f s ; o p e n 1 2 7 , 8 , 1 2p l a : t a y : p l a : t a x : p l aj s s e t n a mj s o p e nj s r e a d s t : b n o u t O ; d i s k e r r o rr t

; k e e p f i l e o p e nI d a # 1 : j m p $ f 3 3 1

1 6 2 0 o l d w a r m . w o r O1 6 3 0 ;1 6 4 0 n e w a r m1 6 5 0 ; n e w w a r m s t a r t l i n k p o i n t s h e r e1 6 6 01 6 7 0 n e x b y t1 6 8 01 6 9 01 7 0 01 7 1 0 ;1 7 2 0 o u t O1 7 3 01 7 4 01 7 5 01 7 6 01 7 7 01 7 8 0 o u 1 7 9 01 8 0 01 8 1 0 ;1 8 2 0 e n d l i n1 8 3 01 8 4 01 8 5 01 8 6 01 8 7 01 8 8 01 8 9 0 . e n d

l d x # 1 2 7 : j s c h k i n

j s g e t i n : j s r c h r o u tc m p # 1 3 : b e e n d l i nj s r e a d s t : b e n e x b y t

I d # 1 2 7 : j s c l o s eI d o l d w a r m s t w a r m l n kl d a o l d w a r m 1 s t w a r m l n k + 1I d # $ 2 f : s t a a b o r t i oI d a # $ f 3 : s t a b o r t i o +

B

j s c l r c h nj m ( o l d w a r m )

I d a # 2 : s t a n d ; k e y s i b u f f e rI d # 1 4 5 : s t k e y d ; c r s r u p . I d # 1 s t k e y d + ; & c r i k b u fI d I s t x ; k e y p r e s s e dc m # 6 3 : b e o u t O ; c h e c k f o s t o pj m o u

h T r a n s a c t o r 5 V o l u m e 5 I s s u e 0

Page 58: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 58/84

Q u o t eK i l l e r

Q u o t e k i l l e r w a b o r n o b r i g h t s u n n y d a a l o u n g e d b t h p o o ls i p p i n g t a l l c o o l d r i n k . S e r e n d i p i t y y o s a y ? Y o w o u l d b a b s o l u t e l yc o r r e c t i y o t h i n k s e r e n d i p i t y h a s o m e r e l a t i o n s h i p t t h r e a t t y o u r c o m p u t e r ' s w e l l b e i n g .

M g i r l f r i e n d h a e x p r e s s e d i n t e r e s t i n l e a r n i n g h o t p r o g r a m m C 6 ( n e a t g i r l f r i e n d , e h ! , a n n o s h i n o a v a i l a b l e ) . T t h a t e n d ,h a d b o u g h t h e b o o k f o n e o p h y t e p r o g r a m m e r s i n t o w h i c h s h h a p l u n g e d w i t h e n t h u s i a s m . B u t a l a s , t h e r e s h s t o o d t r e m b l i n g w i t hi n d i g n a t i o n a n t h r e a t e n i n g t t e a c h m m a c h i n e h o t d t h s w a nd i v e .

A l s h e c o u l d s a y w a s , " D u m b s t u p i d q u o t e m o d e ! "

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

I i g e n e r a l l y a c c e p t e d t h a t C o m m o d o r e ' s o n - s c r e e n e d i t o r i o n o t h b e s t i t h i n d u s t r y . T h o n l y m a j o r f a u l t i h a i t h i n a b i l i t y o ft h p r o g r a m m e r t t a k e t h m a c h i n e o u o q u o t e m o d e ( o i n s e r tm o d e ) w i t h o u t p r e s s i n g t h r e t u r n k e y ; t h 6 l a c k s t h h a n d y E S k e o t h 8 0 3 2 m a c h i n e s . C o n s e q u e n t l y , y o u h a v e t h i r e t u r n a n c u r s o r b a c k t t h m i s t a k e t c o r r e c t i t T h i s d o e s n ' t p r e s e n t m u c h o p r o b l e m , o t h e r t h a n t h i n c o n v e n i e n c e , t t h o s e o u w h a r u s e d t i b u f o t h e n o v i c e , i i o f t e n a s o u r c e o o n g o i n g f r u s t r a t i o n .

T h m o s t o b v i o u s c h o i c e f o a k e y t t o g g l e q u o t e k i l l e r w a s o n e o t h f u n c t i o n k e y s , a n i n d e e d F w a t h k e o r i g i n a l l y u s e d . i m m e d ia t e l y r a i n t o p r o b l e m s w i t h t h i s w h e n s t a r t e d t d e s i g n p r o g r a mt h a t m a d e e x t e n s i v e u s o t h f u n c t o n k e y s . A t h a t t i m e r e a l i z e dt h a t C o m m o d o r e , i a l i t m y s t e r y a n i m a g i n a t i o n , h a i n c l u d e d a a p p a r e n t l y u s e l e s s k e o t h k e y b o a r d . T e l l m e w h e n w a t h l a s tt i m e y o u s e d t h b a c k - a r r o w k e f o a n y t h i n g ?

D u r i n g t h i s c h a n g e o k e y s d e c i d e d t a d f e f e a t u r e s t q u o t ek i l l e r w h i c h w o u l d m a k e i m u c h m o r e u s e f u l t t h a d v a n c e dp r o g r a m m e r . Q u o t e k i l l e r n o h a t h a b i l i t y t o f o r c e t h m a c h i n ei n t o q u o t e m o d e a n t f o r c e s i n g l e c h a r a c t e r i n s e r t m o d e w i t h o u to p e n i n g a n y s p a c e i t e x t . A a a f t e r t h o u g h t a l s o i n c l u d e d t h a b i l i t y t o f o r c e t h e r e p e a t o a n c h a r a c t e r o t h k e y b o a r d w h e n t h a tp a r t i c u l a r k e i h e l d d o w n . A l t h k e y s t r o k e s t h a t y o n e e d t k n o wf o t h a c t i v a t i o n o q u o t e k i l l e r ' s m o d e s a r i n c l u d e d i t h B A S I Cl o a d e r a n w i l l b d i s p l a y e d w h e n t h p r o g r a m i r u n .

G a r y G u n d e r s o nR i c h m o n d , B C

Q u o t e k i l l e r r e s i d e s a t h t o o t h c a s s e t t e b u f f e r a n i t h e r e f o r es e n s i t i v e t a n f o r m o f r e s e t o t a p e o p e r a t i o n . T h o n l y s a f e w a t d i s c o n n e c t i i w i t h R U N - S T O P / R E S T O R E . S Y S 9 0 3 w i l l r e c o n n e c t i t

I f o s o m e r e a s o n y o d o n ' t l i k e m c h o i c e o t h t o g g l e k e y , y o c a a l t e r i b y c h a n g i n g t h f i r s t d a t a e l e m e n t o f l i n e 1 0 5 0 t t h k e y b o a r dm a t r i x n u m b e r o y o u r c h o i c e . F o e x a m p l e , a i n t h i s l o c a t i o n w i l lm a k e F l t h e t o g g l e . R e m e m b e r , c h a n g i n g t h B A S I C l o a d e r i n t h i sw a w i l l c h a n g e t h c h e c k s u m v a l u e , s c h a n g e t h c h e c k s u mc o m p a r i s o n a c c o r d i n g l y o g e r i o i a l t o g e t h e r .

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

B t h w a y , h a v i n g g i r l f r i e n d t h a t l i k e s t p r o g r a m i n o a l w a y s t h m o s t i d e a l s i t u a t i o n . W h a t d o y o u d o w h e n s h t a k e s a p i e c e o y o u ri m m a c u l a t e c o d e , s h o r t e n s i b y o n e t h i r d a n m a k e s i r u n 2 5 p e r c e n tf a s t e r ? S a " t h a n k y o u " ?

J \ H G E M I

F D L

O E D K 1 F

A L K

P P O L B K N J F

C C J K G B N N

r e * * q u o t e k i l l e r * * r e * * b * * r e * g a r y g u n d e r s o n * *

1 f o r i 9 0 3 t o 9 9 8 : r e a d a : c s c 2 n e x t3 i c s < > 1 1 8 9 3 t h e n p r i n t " * * e r r o

s t a t e m e n t s ! ! * * " : e n 4 s y s 9 0 35 p r i n t "6 p r i n t "7 p r i n t "8 p r i n t "

: p o k e i ,

i d a t a

: p r i n t c h r $ ( 1 4 7 ) " q u o t e k i l l e r a c t i v a t e d .< k i l l s q u o t e m o d e

k i l l s i n s e r t m o d ek i l l s r e p e a t m o d e " r p r i n t

9 p r i n t " s h i f t e d « - - e n a b l e s q u o t e m o d e1 0 p r i n t "1 2 p r i n t "1 3 p r i n t "1 5 p r i n t "1 6 p r i n t "1 7 0 :1 0 0 0 d a t a1 0 1 0 d a t a1 0 2 0 d a t a1 0 3 0 d a t a1 0 4 0 d a t a1 0 5 0 d a t a1 0 6 0 d a t a1 0 7 0 d a t a1 0 8 0 d a t a1 0 9 0 d a t a1 1 0 0 d a t a1 1 1 0 d a t a1 1 2 0 d a t a1 1 3 0 d a t a

c o m m o d o r e * - o n e c h aC t r l « - e n a b l e r e p e a t f o

k e y s " : p r i n t

i n a l

r u n - s t o p / r e s t o r e t d e a c t i v a t es y s 9 0 3 t r e a c t i v a t e "

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

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

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

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

2 4 0 ,3

1 2 0 ,3

2 0 3 ,2

2 4 0 ,0

1 4 1 ,1 1

1 2 8 ,1 6 9 ,

n o d e

8 1 7 1 6 1 2 0 2 0

2 1 3 1 3 1 3 1 3 1 4

6

: p r i n t

T h T r a n s a c t o r 5 V o l u m e 5 I s s u e 0

Page 59: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 59/84

a R e m o v e rE v e r s , E d i t o r

t ' s s e t t h s c e n a r i o . Y o h a v e j u s t S A V E d f i l e t d i s k e t t e a n d , t s e m i n d a e a s e , p e r f o r m e d d i r e c t o r y o t h d i s k e t t e . Y o v i e w t h

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

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

b u a l l i s n o r i g h t . Y o u r f i l e h a m y s t e r i o u s l y p l a c e d i t s e l fi t h m i d d l e o t h d i r e c t o r y l i s t i n g , t h u s f a l l i n g i n t o p r i o re d f i l e ' s ' B l a c k H o l e ' .

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

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

g a p a s s i v e c a t a l o g . p r o b l e m t h a t n o h a a c u r e . E n t e rG a R e m o v e r ' . F i r e i u p a n s w e r f e w i m p o r t a n t q u e s t i o n s , a n

f e w m i n u t e s y o u r d i r e c t o r y w i l l b c l e a n a n f r e s h , a l e x t r ar e m o v e d a n p l a c e d a t h v e r y b o t t o m . F r o m t h e n o n e v e r yy o S A V E w i l l a p p e a r l a s t i t h d i r e c t o r y .

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

t h 1 5 4 1 / 2 0 3 1 / 4 0 4 0 d r i v e s , a n t r a c k 3 f o t h 8 0 5 0 / 8 2 5 0T h f i r s t d i r e c t o r y b l o c k i s e c t o r # 1 , w i t h e i g h t f i l e e n t r i e s

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

a r t , t o a l l o w f o t h e d r i v e t n a t u r a l l y r e a c h i a i s p i n s a r o u n d . I d i r e c t o r y s e c t o r b e i n g r e a d i t h l a s t o n u s e d , t h e t r a c k w i l l r e a dz e r o , a n t h s e c t o r w i l l b $ F F . T h D O r e a l i z e s t h a t t h e r e i n

z e r o , t h e r e f o r e t h e n h a c o m e . S i m p l e s f a r .

p r o g r a m r e a d s i e v e r y e n t r y f r o m t h e d i r e c t o r y t r a c k , k e e p i n gl i n k p o i n t e r s i c h e c k a i g o e s a l o n g . I n o n - e x i s t e n t f i l e

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

e n t r y i k e p t i a a r r a y . W h e n t h e n t i r e d i r e c t o r y h a b e e nt h r o u g h , t h p a c k i n g p r o c e s s b e g i n s . T h n o n - e x i s t e n t f i l e s h a v e

b e e n r e m o v e d , t h e r e f o r e i i j u s t s i m p l e p r o c e s s o w r i t i n gp a c k e d e n t r i e s b a c k i n O n c e t h e p r o c e s s d e t e r m i n e s t h a t t h e n

v a l i d e n t r i e s h a o c c u r r e d , n u l l e n t r i e s ( 3 2 $ 0 0 ' s ) a r w r i t t e n t t h e c t o r y s e c t o r i n v o l v e d t f i l l i t h e e x t r a s p a c e . W h e n c o m p l e t e ,

m a e n u h a v i n g a e x t r a d i r e c t o r y s e c t o r o t w i t h p a c k i n gw a l a r g e , b u t h d i r e c t o r y w i l l b O K Y o c a n o S A V E

t y o u r h e a r t ' s c o n t e n t a n n e v e r h a v e t w o r r y a b o u t t h e mi n t o t h m y s t e r i o u s B l a c k H o l e s o t h D 1 q u a d r a n t .

M - 4 & - r e m s a v e " O : g a p f i l l . b a s " , A - + 9 6 r e r t e / 8 4 - g a p f i l l e r f o s p a c e s l e f t i y o u r d i r e c t o r yH i { $ ) p r i n t " * * d i r e c t o r y g a f i l l e r r t e / 8 4 * * C - 4 3 © p r i n t " d r i v e t y p e : B \ ~ i n p u t " 1 1 5 4 1 / 2 0 3 1 / 4 0 4 0 o 2 8 0 5 0 / 8 2 5 0 ; d t : i d t < l

o r d t > 2 t h e n 1 3 T 4 T J T n t r k 1 8 i d t h e n m t r k 3 9 r e a s s i g n c o r r e c t

d i r e c t o r y t r a c kN l £ © - i n p u t " d r i v e * " ; d r : i d r > l t h e n 1 5 0E 1 6 0 :D f i t C H i m d i r $ ( 2 2 3 ) : r e * m a d i r e c t o r y e n t r i e sD - i S O - d i m t l $ ( 2 7 ) , s l $ ( 2 7 ) : r e * * t r a c k / s e c t o r l i n k sO Q J f t r k r f r t r i ? : s e 1 r e d i r e c t o r y t r a c k a n f i r s t s e c t o r t u s J $ 4 f i > c t r 0 I n 0 z c h r $ ( 0 )

§ T t o r p " " f o 0 t 2 9 r p r p c h r $ ( 0 ) : n e x t : r e * r e p l a c e m e n t s t r i n g

A 2 2 0 :1 t l & l o p e n 1 5 , 8 , 1 5 : o p e n 5 , 8 , 5 , " # " : r e c o m m a n d c h a n n e lb u f f e r

" 2 4 ? ) p r i n t * 1 5 , " u l : " ; 5 ; d r ; t r k ; s e c : r e r e a d d i e n t r y i n t o b u f f e r2 5 0 :

E O A C B c

F

G B G 1 F I

G C

I K L G J

D J

P L

= 0 t o 2 5 5 s t e p 3 2 / / #t $ i t h ^ O :g e t * 5 , t $ , s $ : i t h e n ^ O : r e g e c o r r e c t l i n k s

a s c ( t $ z $ ) : s e c = a s c ( s $ z $ ) : r e l i n k t / t 3 1 g e t * 5 , a $ : d i r $ ( c t r ) d i r $ ( c t r ) c h r $ ( a s c ( a $ z $ ) )

: n e x t y ; w m i d $ ( d i r $ ( c t r ) , 4 , 1 6 ) : i a s c ( d i r $ ( c t r ) ) t h e n 3 2 0 : r e i

n o s c r a t c h e d f f a t a b ( 1 7 ) " « g a » " d i r $ ( c t r ) = " " g o t o - S & la $ c t c t r + l

3 4 0 :c h r $ ( t r k ) : s l $ ( l n k )

f f l l & i f t r t h e n l n l n k + l : g o t o 2 4 f t r e o k g f o m o r e3 7 0 : " » 3 8 r e * d i r e c t o r y c o m p l e t e l y l o a d e d i n o t i m e t p a c k

r . l i i m t r k : s e 1 f i f o t o I n k : p r i n t # 1 5 , " b - p : " 5 ;

2 4 f l 0 > t s $ t l $ ( x ) s l $ ( x ) : d d $ = " " r e l i n k t / s% £ f o t 7 a d i r $ ( f i n ) : i f i > c t r t h e n a r p J # C D d d $ _ d d $ a $ i y < t h e n d d d d c h r $ ( 0 ) c h r $ ( 0 )

r e w a s t e d b y t e s / e n t r yi f i + 1 n e x t

Z « l f l 0 p r i n t # 5 , t s $ ; d d $ ; : p r i n t # 1 5 , " u 2 : " ; 5 ; d r ; t r k ; s e c ; : r e f i l lb u f f e r t h e n w r i t e

a s c ( t l $ ( x ) ) : s e a s c ( s l $ ( x ) )x x c l o s e 5 : c l o s e l 5 : e n

T r a n s a c t o r 5 V o l u m e 5 I s s u e 0

Page 60: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 60/84

M a c h i n e L a n g u a g eP r i n t L o a d e r

N o e l N y m a nP o r t l a n d , O r e g o n

P R I N T . . N O T P O K E . . M a c h i n e L a n g u a g e P r o g r a m s

E d i t o r ' s n o t e : T h B A S I C l o a d e r p r o g r a m a c c o m p a n y i n g t h i s a r t i c l e i q u i t e l o n g , b u t t h e a r t i c l e c o n t a i n s c o n c e p t s w h i c h c a n b e d i g e s t e di n d e p e n d e n t l y o t h p r o g r a m . I y o u w a n t c o p y o t h a c c o m p a n yi n p r o g r a m b u d o n ' t f e e l l i k e t y p i n g i i n y o c a f i n d i o t h T r a n s a c t o r d i s k f o r t h i s i s s u e .

B A S I C p r o g r a m s o f t e n u s m a c h i n e l a n g u a g e t r e a d d i s k s , s o r t d a t a ,o a c c o m p l i s h s o m e t h i n g m o r e q u i c k l y a n e a s i l y t h a n c a b d o n ew i t h B A S I C a l o n e . T h c o m m o n w a y s t u s M w i t h B A S I C a r e :L O A D t h M f r o m d i s k o r t a p e f r o m t h B A S I C p r o g r a m , a p p e n d t h M t B A S I C , o u s R E A D / D A T A / P O K E s t a t e m e n t s .

E a c h o t h e s e h a i t p l a c e . B u i n t h i s a r t i c l e w e ' l l e x p l o r e a n o t h e rm e t h o d . . u s i n g B A S I C P R I N T s t a t e m e n t s t " p o k e " M p r o g r a m s .

F i r s t , t y p e i t h f o l l o w i n g l i n e e x a c t l y a s h o w n . I l e t t e r i c a p i t a l i z e d , h o l d t h e S H I F T k e w h e n t y p i n g i t F o c o m m a n d s s u c ha ( c o m - m ) h o l d t h C o m m o d o r e k e a n t y p e " m . " P r e s s t h e S P A C Eb a w h e n y o s e ( S P A C E ) .

2 " ( r v s - o n ) ( S P A C E ) ( r v s - o f f ) @ ( r v s - o n ) 9 ( r v s - o f f )( c o m - m ) ( r v s - o n ) ( c o m - a ) ( r v s - o f f ) g ( S P A C E ) ( r v s - o n ) R ( c o m - b )H ( r v s - o f f ) L Z ( S h f - ( S P A C E ) ) ( r v s - o n ) s ( r v s - o f f ) T H I S ( S P A C E )I S ( S P A C E ) T H E ( S P A C E ) M L ( S P A C E ) D A T A @ "

N o t y p e R U N . Y o s h o u l d s e e t h i r t y - s e v e n c h a r a c t e r s p r i n t e d t t h s c r e e n . S h i f t i n g t l o w e r c a s e m o d e m a y h e l p y o c o u n t t h e m .

N e x t t y p e t h i s a d d i t i o n a l l i n e :

1 0 P O K E 2 0 9 , 8 8 : P O K E 2 1 0 , 2 7 : P O K E 2 1 1 , 0 : P O K E 2 1 3 , 4 0

T y p e R U a g a i n . T h i s t i m e y o s h o u l d s e e o n l y t h R E A D Y p r o m p t .T y p e S Y 7 0 0 0 , t h e s c r e e n w i l l c l e a r a n t h M m e s s a g e w i l l b d i s p l a y e d .

W n o r m a l l y t h i n k o t h P R I N T c o m m a n d a s " p r i n t i n g " c h a r a c t e r s o t h s c r e e n s t a r t i n g f r o m t h e c u r r e n t c u r s o r l o c a t i o n . O c o u r s e , w k n o w t h a t P R I N T j u s t s t o r e s s e q u e n c e o d a t a i n t o c o m p u t e rm e m o r y . T h e V I c h i p r e a d s t h a t d a t a a n c r e a t e s t h s c r e e n w s e e .

T h i s m a s e e m l i k e t r i v i a l d i s t i n c t i o n a f i r s t . B u w c a u s t h s e q u e n t i a l s t o r i n g c h a r a c t e r i s t i c o P R I N T t " p o k e " M p r o g r a m s a n dd a t a . A l w h a v e t d i m o v e t h e " c u r s o r " a w a y f r o m s c r e e nm e m o r y t t h a r e a w h e r e w w a n t t h M t r e s i d e , t h e n p u t h M d a t a i n t o P R I N T s t a t e m e n t s .

T h c u r s o r p o s i t i o n i c o n t r o l l e d b s e v e r a l m e m o r y l o c a t i o n s . W e ' l lb c o n c e r n e d w i t h f o u r o t h e m . L o c a t i o n s 2 0 a n 2 1 t o g e t h e r f o r mt h e c u r s o r c u r r e n t l i n e " v e c t o r " , t h a d d r e s s o t h b e g i n n i n g o t h

l i n e t h e c u r s o r i o n T h v e c t o r i s t o r e d i u s u a l 6 5 0 2 f o r m a t , l o b y t e f i r s t .

L o c a t i o n 2 1 i d e n t i f i e s c u r s o r l o c a t i o n o t h l i n e b c o l u m n n u m b e r .L o c a t i o n 2 1 t e l l s t h s y s t e m h o l o n g l i n e i s T h u s u a l v a l u e s f o 2 1 a r 3 o 7 f o C - 6 4 , a n 2 1 , 4 3 , 6 5 o 8 f o V I C .

T h e s e n u m b e r s n e e d t b i t h p r o p e r r a n g e s , o r y o u r s c r e e n w i l ll o o k s t r a n g e . B u w h e n w e u s P R I N T t s t o r e M L w c a c h a n g et h e m t o u a d v a n t a g e . I l i n e # 1 a b o v e , w r e - v e c t o r e d t h c u r s o rt s t a r t a t c o l u m n z e r o o " l i n e " b e g i n n i n g a a d d r e s s 7 0 0 0 . W t h e nt o l d t h c o m p u t e r t h a t t h i s l i n e i f o r t y c o l u m n s l o n g . W c o u l d h a v eu s e d a n n u m b e r u t 2 5 f o l i n e l e n g t h , s l o n g a i w a g r e a t e rt h a n t h n u m b e r o b y t e s w w a n t e d t o s t o r e .

A f t e r y o t y p e d R U N , y o u s a w t h R E A D Y p r o m p t . T h i s s h o w s y o t h a t t h c u r s o r w i l l b v e c t o r e d b a c k t t h n o r m a l s c r e e n m e m o r y b t h o p e r a t i n g s y s t e m a t h e n o e a c h P R I N T s t a t e m e n t . A c t u a l l y , w c o u l d u s s e v e r a l P R I N T s t a t e m e n t s e n d i n g w i t h ' ; a n t h e d a t a w i l lb s t o r e d c o n t i n u o u s l y , j u s t a i w o u l d b s h o w n c o n t i n u o u s l y o t h s c r e e n . I w w a n t t s t o r e o v e r 2 5 b y t e s o M L w e ' l l n e e d a n o t h e rP O K E l i n e w i t h n e v a l u e s a l o c a t i o n s 2 0 a n 2 1 0 .

P R I N T p u t s " s c r e e n c o d e s " i c o m p u t e r m e m o r y , n o C H R $ v a l u e s .T h U S E R ' S G U I D E t h a t c a m e w i t h y o u r m a c h i n e h a t a b l e o s c r e e nc o d e s i a a p p e n d i x . I y o c o m p a r e t h e m w i t h t h C H R $ c o d e s ,y o u ' l l n o t i c e t h a t t h e r e a r o n l y 1 2 s c r e e n c o d e s . A l s o t h e y a r e o f t e ni t h s a m e s e q u e n c e a t h C H R $ c o d e s , b u t s t a r t a t d i f f e r e n t p l a c e s .F o e x a m p l e , t h e a l p h a b e t i i o r d e r . H o w e v e r , C H R $ ( 6 5 ) w h i c h i t h l e t t e r ' A h a a s c r e e n c o d e o 1 T h e r e f o r e , t g e s t o r e d i m e m o r y w e P R I N T a ' A ' . T s t o r e 6 5 w h a v e t P R I N T ' s p a d e 's y m b o l .

A n o t h e r p r o b l e m s h o w s u p i w n e e d t s t o r e ' 3 4 ' . T h i s i t h s c r e e nc o d e f o q u o t e m a r k s . I t h P R I N T c o m m a n d s e e s q u o t e m a r k s , i w i l le n s t r i n g p r i n t i n g a n t r t c o p e w i t h t h b a l a n c e o t h e c h a r a c t e r so t h l i n e a s v a r i a b l e s . s p e c i a l t e c h n i q u e i r e q u i r e d t P R I N T" 3 4 " i n t o m e m o r y .

S i n c e i t ' s s m u c h w o r k t c r e a t e t h P R I N T s t a t e m e n t s , a r e t h e r e a n a d v a n t a g e s o v e r t h o t h e r m e t h o d s ? T h e r e a r e , e s p e c i a l l y i y o u s p r o g r a m t c r e a t e t h P R I N T s t a t e m e n t s .

O t h m e t h o d s m e n t i o n e d a t h s t a r t o f t h i s a r t i c l e , R E A D / D A T A /P O K E i t h m o s t c o m m o n . F o s h o r t M i s a v e s t i m e o v e r L O A D i n gt h M r o u t i n e s e p a r a t e l y . I a l s o a v o i d s h a v i n g t s t o r e t h M a s e p a r a t e p r o g r a m o n t h s a m e d i s k o t a p e . I h a t w d i s a d v a n t a g e s ,h o w e v e r . I t ' s s l o w a n i t a k e s a b i c h u n k o m e m o r y . M e m o r y s a v i n gi m o s t i m p o r t a n t t V I o w n e r s . B u a n y o n e c o u l d t a k e a d v a n t a g e o i m p r o v e d s p e e d .

T h T r a n s a c t o r 5 V o l u m e s , I s s u e 0

Page 61: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 61/84

M a t h e n o B A S I C p r o g r a m i b e c o m i n g m o r e c o m m o n .u i r e s a f e P O K E s t c o n v i n c e t h s y s t e m t S A V E t h M a l o n g

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

t h M s i t s i B A S I C m e m o r y a r e a .

u s i n g P R I N T s t a t e m e n t s t s t o r e y o u r M p r o g r a m s , y o u c a n s a v em e m o r y a n i m p r o v e p r o g r a m r u n t i m e o v e r t h R E A D /

m e t h o d . P R I N T w o r k s e i g h t t t h i r t e e n t i m e s f a s t e r t h a nT h e x a c t m e m o r y s a v i n g d e p e n d s o n t h M p r o g r a m .

i u s u a l l y t a k e s l e s s t h a n h a l f t h B A S I C m e m o r y t s t o r e M i s t a t e m e n t s o v e r D A T A s t a t e m e n t s .

e P R I N T l i n e s a r p a r t o B A S I C , n o a M a p p e n d a g e . S o a n d o n e t t h B A S I C p r o g r a m w i l l n o a f f e c t t h e m .

O p e r a t i o n

m a k e u s i n g t h i s t e c h n i q u e e a s i e r , w e ' v e p r o v i d e d M " P R I N T E R "s f o t h V I a n t h C - 6 4 t h a t w i l l c r e a t e t h P R I N T a n

s t a t e m e n t s i B A S I C . W e ' l l l o o k a t h C - 6 4 p r o g r a m f i r s t .* i R E A D / D A T A / P O K E p r o g r a m t p u M " P R I N T E R "

C - 6 4 m e m o r y . T y p e i t h p r o g r a m , S A V E i t t h e n R U i t T h e nS Y 2 5 8 5 6 .

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

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

a n l o c a t i o n s t t e s t t h p r o g r a m , 8 2 8 a n d 1 0 1 9 ( t h e c a s s e t t e b u f f e r )e x a m p l e . A f t e r t h R E A D Y p r o m p t , t y p e L I S T . Y o u ' l l s e e t h e n e w l y

B A S I C , w h i c h h a b e e n w r i t t e n o v e r t h R E A D / D A T A / P O K E

c o u l d S A V E t h e s e l i n e s t o b a p p e n d e d t B A S I C p r o g r a m o e n t e r i n g B A S I C p r o g r a m u s i n g t h e m .

u s M " P R I N T E R " m o s t e f f e c t i v e l y , y o s h o u l d h a v e i a M ( Y o u c a u s i t m a k e B A S I C P R I N T v e r s i o n o i t s e l f , b u

M v e r s i o n i s h o r t e r a n f o p r o g r a m t h i s s i z e , m o r e e f f i c i e n t . ) I h a v e a m o n i t o r , y o c a u s i t s a v e t h p r o g r a m . I n o t , t y p e t h e

e x a c t l y a s s h o w n :

( R E T U R N ): P O K E 4 4 , 1 0 1 : P O K E 4 5 , 1 8 5 : P O K E 4 6 , 1 0 8 ( R E T U R N )

m o v e s t h s t a r t a n e n o B A S I C t e n c l o s e M " P R I N T E R . "S A V E t h p r o g r a m t t a p e o r d i s k j u s t a y o u w o u l d a n y B A S I C

m . A f t e r t h S A V E i c o m p l e t e u s S Y 6 4 7 3 8 t r e s e t t h r . Y o c a n o L O A D M L " P R I N T E R " u s i n g ' , 1 ' a f t e r t h

s t a t e m e n t .

p r o g r a m w i l l w o r k b e s t f o y o i y o u s i o r e l a t i v e l y s h o r t M I y o g a b o v e a b o u t 1 . 5 K b y t e s , i t ' s f a s t e r t L O A D M L

f r o m d i s k . F o e x a m p l e , u s i n g M " P R I N T E R " t s t o r e D O a B A S I C " P R I N T " p r o g r a m r e q u i r e s l o a d i n g o n l y o n p r o g r a m .i t a k e s a b o u t t h r e e s e c o n d s l o n g e r t P R I N T t h a n i d o e s t R U

b o o t p r o g r a m w h i c h L O A D s t h n o r m a l M v e r s i o n f r o m t h d i s k .

o u s M " P R I N T E R " t P R I N T o v e r I o M L 1 0 2 5 b y t e s o ry o u ' l l f i n d t h a t B A S I C w i l l w o r k f i n e . B u y o u r k e y b o a r d w o n ' t .

l y w h e n t h s c r e e n g e t s l o n g e r t h a n 1 0 2 4 b y t e s , t h o p e r a ts y s t e m i c o n f u s e d a n t h C I c h i p s g e " l o s t . " I y o u S Y S t t h i m m e d i a t e l y a f t e r p r i n t i n g y o s h o u l d h a v e n o p r o b l e m s . I n o t ,

f o l l o w t h e l a s t P R I N T s t a t e m e n t w i t h B A S I C l i n e t h a t c o n t a i n s :

S Y 6 4 9 3 1 : P R I N T ( s h i f t / c l r - h o m e ) "

T h i s w i l l p u e v e r y t h i n g r i g h t a g a i n . T h " c l e a r - s c r e e n " c o m m a n d i g o o d i d e a i a n c a s e t r e s t o r e t h n o r m a l l i n e l e n g t h p a r a m e t e r s .S i n c e y o u s u a l l y n e e d t g e t h M i p l a c e e a r l y i t h B A S I Cp r o g r a m , y o c o u l d p u t t h e P R I N T s t a t e m e n t s ( o G O S U B t t h e m )a h e a d o " c l e a r - s c r e e n " a l r e a d y i t h p r o g r a m .

T h C - 6 4 p r o g r a m h a b e e n l o c a t e d i a a r e a u n l i k e l y t h a v e M r e s i d i n g i i t T h p r o g r a m m a g i v e s t r a n g e r e s u l t s i t h i n t e r r u p ts y s t e m h a b e e n c h a n g e d b p r e v i o u s p r o g r a m , s u c h a t h D O w e d g e . I t ' s b e s t t u s f u l l R E S T O R E , s u c h a S Y 6 4 7 3 8 , b e f o r el o a d i n g a n u s i n g M " P R I N T E R . " Y o m a n e e d t u s e t h e N E c o m m a n d a f t e r l o a d i n g M " P R I N T E R " t l o a d t h e M y o u w a n t t " c o p y . "

T h V I v e r s i o n w a w r i t t e n f o t h u n e x p a n d e d V I C - 2 0 , p r i m a r i l y t " c o p y " M i t h c a s s e t t e b u f f e r . E x p a n d e d V I o w n e r s w i l l w a n t t u s a v a r i a t i o n o t h C - 6 4 p r o g r a m , t b d i s c u s s e d l a t e r .

T h e r e a r t w R E A D / D A T A / P O K E p r o g r a m s f o t h V I C , b e c a u s et h e r e i s n ' t e n o u g h r o o m i V I m e m o r y t h o l d a l t h D A T A . P R I N Ts t a t e m e n t v e r s i o n w i l l f i i V I m e m o r y e a s i l y , h o w e v e r , w h i c hs h o w s h o w m u c h m o r e c o m p a c t i i s

T y p e a n S A V E e a c h p r o g r a m . T s a v e o m e m o r y , w e ' v e l e f t t h s c r e e n p r o m p t s o u o V I M " P R I N T E R . " P r o g r a m * 4 V I S C R E E N ,i B A S I C p r o g r a m t h a t w i l l g e t h v a r i o u s n u m b e r s t h " P R I N T E R "n e e d s . T y p e i a n S A V E t h i s p r o g r a m a l s o .

L O A D a n R U e a c h o t h V I D A T A p r o g r a m s i s e q u e n c e . T h i sw i l l P O K E t h M p o r t i o n o t h " P R I N T E R " i p l a c e . T h e n t y p e t h f o l l o w i n g d i r e c t l y t t h s c r e e n :

P O K E 5 5 . 0 : P O K E 5 6 , 2 5 ( R E T U R N )N E W : C L R ( R E T U R N )

T h i s w i l l m o v e t h e n o B A S I C m e m o r y b e l o w M " P R I N T E R " t p r o t e c t i t N o L O A D t h V I S C R E E N p r o g r a m a n R U i t I w i l l a s f o t h s a m e i n f o r m a t i o n a s t h e C - 6 4 v e r s i o n , e x c e p t t h a t t h M l o c a t i o n s m u s t b e n t e r e d i d e c i m a l ( b a s e 1 0 ) . T S A V E V I M " P R I N T E R " w e ' l l u s i t m a k e P R I N T s t a t e m e n t v e r s i o n o i t s e l f .

T y p e 6 9 2 7 a n 7 6 7 8 t a n s w e r t h p r o m p t s f o s t a r t i n g a n d e n d i n g M l o c a t i o n s . U s t e n a s a s t a r t i n g l i n e f o B A S I C , a n o n a t h i n c r e m e n t .

W h e n y o s e e t h e R E A D Y p r o m p t , t y p e S Y 6 9 2 7 a n h i R E T U R N .

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

C L ( R E T U R N )P O K E 4 3 , P E E K ( 4 5 ) - 2 : P O K E 4 6 , P E E K ( 4 4 ) ( R E T U R N )

N o L O A D V I S C R E E N . W h e n R E A D Y a p p e a r s , r e s e t t h B A S I Cp o i n t e r s b t y p i n g :

P O K E 4 3 , 1 : P O K E 4 4 , 1 6 ( R E T U R N )

T r a n s a c t o r 5 V o l u m e 5 I s s u e 0

Page 62: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 62/84

L I S T a n y o u ' l l s e V I S C R E E N a d d e d o n t o t h P O K E / P R I N T l i n e s .T h e n a d t h e f o l l o w i n g l i n e :

1 1 5 0 S Y 6 9 2 7 ( R E T U R N )

S A V E t h i s c o m p l e t e d v e r s i o n o V I M " P R I N T E R . "

B o t h v e r s i o n s o M " P R I N T E R " u p d a t e t h B A S I C s t a r t a n d e n dp a r a m e t e r s a f t e r t h n e B A S I C l i n e s a r c r e a t e d . S i n c e t h B A S I Cm e m o r y l o c a t i o n i d i f f e r e n t f o d i f f e r e n t C o m m o d o r e c o m p u t e r s , t h V I C a n d C - 6 4 v e r s i o n s u s d i f f e r e n t v a l u e s . E x p a n d e d V I C s h a v eB A S I C r e l o c a t e d , s t h V I M " P R I N T E R " w o n ' t w o r k w i t h t h e m . I y o u h a v e a n e x p a n d e d V I t h a t h a m e m o r y i t h r a n g e 2 5 8 5 6 t 2 7 5 0 0 , y o c a u s t h C - 6 4 " P R I N T E R " w i t h f e c h a n g e s . T h e s ec a b m a d e e a s i l y w i t h a n y V I C m o n i t o r p r o g r a m s s u c h a V I C M O N .

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

T a p p e n d t h P O K E / P R I N T s t a t e m e n t s t a n o t h e r B A S I C p r o g r a m ,y o c a u s t h e f o l l o w i n g t e c h n i q u e w i t h t h C - 6 4 o a n V I C . L O A Dt h p r o g r a m w i t h t h l o w e s t l i n e n u m b e r s . T h l o w e s t l i n e n u m b e r i t h p r o g r a m t b a p p e n d e d m u s t b h i g h e r t h a n t h e h i g h e s t l i n en u m b e r o t h f i r s t p r o g r a m . M " P R I N T E R " g i v e s y o t h o p t i o n o s e l e c t i n g l i n e n u m b e r s t m a k e t h i s e a s y . T y p e :

P R I N T P E E K ( 4 3 ) , P E E K ( 4 4 ) ( p r e s s R E T U R N )

W r i t e d o w n t h t w n u m b e r s t h a t a p p e a r o t h e s c r e e n a " x a n " y . "T h i s i t h s t a r t o B A S I C m e m o r y i y o u r c o m p u t e r . T y p e :

P R I N T P E E K ( 4 5 ) ( R E T U R N )

T h i s i t h l o w e r b y t e o t h a d d r e s s o t h e n o t h B A S I C p r o g r a my o j u s t L O A D e d . I t h i s n u m b e r i n o t z e r o o o n e , t y p e :

P O K E 4 3 , P E E K ( 4 5 ) - 2 : P O K E 4 4 , P E E K ( 4 6 ) ( R E T U R N )

I P E E K ( 4 5 ) g a v e y o z e r o o o n e , t y p e :

P O K E 4 3 , P E E K ( 4 5 ) + 2 5 4 : P O K E 4 4 , P E E K ( 4 6 ) - 1 ( R E T U R N )T h e s e s t a t e m e n t s m o v e t h s t a r t o B A S I C m e m o r y t t h e n o t h p r o g r a m . N o L O A D t h s e c o n d p r o g r a m a s B A S I C p r o g r a m . T h e nt y p e :

P O K E 4 3 , x : P O K E 4 4 , y ( R E T U R N )

W h e r e " x a n " y " a r e t h e t w n u m b e r s y o u r w r o t e d o w n e a r l i e r . T h i sm o v e s t h s t a r t o B A S I C b a c k t t h b e g i n n i n g o t h f i r s t p r o g r a m .L I S T w i l l n o s h o w t h s e c o n d p r o g r a m a p p e n d e d t t h f i r s t .

I ' l i k e t o t h a n k B a r b a r a H o r t o n f o h e r h e l p i d e v e l o p i n g t h V I v e r s i o n o t h i s p r o g r a m .

F L

O D G D

I A I

L O F E F A D F

C O H I I O

E L D L

C C L A D L G A

I P I

P A M B

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

L i s t i n g 1 B A S I C l o a d e r f o C 6 v e r s i o n

1 r e m * d a t a l o a d e r f o p r i n t m l 2 0 c s3 f o = 2 5 8 5 6 t 2 7 8 3 2 : r e a d a : p o k e i , 4 0 c s c a : n e x t5 0 6 i c s < > 2 0 3 7 7 7 t h e n p r i n t " * * * * e r r o r i d a t a

s t a t m e n t s * * * * " : e n 7 r e s y 2 5 8 5 68 0 e n d1 0 0 :1 0 0 0 d a t a 1 6 0 , 6 ,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d a t a 2 1 0 , 2 5 5 , 1 4 1 , 1 9 1 4 3 0 d a t a 2 1 0 , 2 5 5 , 1 4

2 3 2 2 0

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

1 9 5 ,

4 8 2 2 2 3

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

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

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

T h T r a n s a c t o r 6 V o l u m e 5 I s s u e 0

Page 63: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 63/84

L M H

I D O E F N F

M B M H K H

1 C H F O M N J A P

O B

G C

E C P C G F

C P

P A N M O D J L K K H N L G

J P G J C M L G N L P E J

G

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

2 3 2 , 2 1 0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I O G B B P H B D

I J G G C E H D P C P

H A J J N J P H

I G N M K B J K

I H C N N F O H

K K P

0 I IL

C I

J O N K A

N A J D G A G

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

1 6 6 , 1 0 8 , 1 6 91 6 5 , 1 0 8 , 1 4

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

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

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

T r a n s a c t o r 6 V o l u m e 5 I s s u e 0

Page 64: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 64/84

N C J P A G G

J P K I

A P B J K H H G K N C J L F H B E

D G P

M G

I G G B A

B K D A H N J D A K U F O K

I E M

O A C B

G F J C G F

N

2 8 7 0 d a t a 7 6 7 0 , 1 0 5 , 1 6 9 , 4 8 , 1 4 12 8 8 0 d a t a 1 5 7 , 1 0 8 , 1 6 9 , 1 2 4 , 1 0 92 8 9 0 d a t a 1 5 6 , 1 0 8 , 1 4 1 , 1 5 6 , 1 0 8 , 7 2 9 0 0 d a t a 7 0 , 1 0 5 , 2 4 , 1 0 5 , 4 8 , 1 4 12 9 1 0 d a t a 1 5 8 , 1 0 8 , 9 6 , 1 6 5 , 1 1 3 , 1 4 12 9 2 0 d a t a 2 4 0 , 2 , 1 6 5 , 1 1 4 , 1 4 1 , 2 4 12 9 3 0 d a t a 2 3 2 , 2 3 2 , 1 0 4 , 3 2 , 2 3 22 9 4 0 d a t a 1 0 4 , 9 6 , 1 7 3 , 2 4 2 , 2 3 2 9 5 0 d a t a 2 3 2 , 1 0 4 , 1 7 3 , 2 4 3 , 2 3 2 9 6 0 d a t a 2 3 2 , 1 0 4 , 2 4 , 1 7 3 , 2 4 6 ,2 9 7 0 d a t a 1 0 9 , 2 4 2 , 2 , 1 4 1 , 2 4 2 ,2 9 8 0 d a t a 1 7 3 , 2 4 7 , 2 , 1 0 9 , 2 4 3 ,2 9 9 0 d a t a 1 4 1 , 2 4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0 5 , 1 6 9 , 0 3 2 , 2 3 2 , 1 0 43 4 1 0 d a t a 1 6 9 , 0 3 2 , 2 3 2 , 1 0 4 , 9 3 4 2 0 d a t a 1 7 3 , 2 3 7 , 2 , 2 0 8 , 5 , 1 6 93 4 3 0 d a t a 3 4 3 2 , 2 3 2 , 1 0 4 , 1 6 9 ,3 4 4 0 d a t a 1 4 1 , 2 3 6 , 2 3 2 , 2 3 2 , 1 0 43 4 5 0 d a t a 3 2 , 2 1 6 , 1 0 5 , 9 6 , 1 6 9 , 3 43 4 6 0 d a t a 3 2 , 2 3 2 , 1 0 4 , 1 6 9 , 5 9 3 3 4 7 0 d a t a 2 3 2 , 1 0 4 , 1 6 9 , 0 3 2 2 3 3 4 8 0 d a t a 1 0 4 , 3 2 , 2 1 6 , 1 0 5 , 9 6 , 1 4 73 4 9 0 d a t a 3 2 3 2 , 1 4 2 , 3 2 3 2 3 3 5 0 0 d a t a 3 2 , 1 5 1 , 1 8 3 2 , 7 7 , 6 3 5 1 0 d a t a 6 7 , 7 2 , 7 3 , 7 8 , 6 9 3 3 5 2 0 d a t a 7 6 , 6 5 , 7 8 7 1 8 5 6

J I

G P O J K

N N D H N L A N K L A K G K L B E K L

F A K

D G E L B E I

P E G L L

B L E K N K G J H M J

K P P A K N P J

D K P

O M G

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

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

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

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

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

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

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

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

1 4 6 ,4 9

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

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

0 1 7 1 7 2 9 2 9 2 9 3 2 2 0 5 2 1 3 5 1

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

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

0 1 2 5 3 2 0 5 2

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

4 4 8 5 4 1 8 5 3

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

T h T r a n s a c t o r 6 V o l u m e 5 I s s u e 0

Page 65: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 65/84

C B L B H C O H C C K

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

5 5 6 8

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

1 5 1 ,5 3

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

5 7 7 0 5 1 5 2 4 1 5 7

1 5 1 ,4 8 4 9 4 9

0

6 5 1 3

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

6 6 2 0 4 1

1 9 9 ,0

4 8 4 9 5 8 4 8 4 4

6 3

1 9 4

1 5 5 4

1 5 5 5

L i s t i n g 2 f i r s t l o a d e r p r o g r a m f o V I C - 2 0 v e r s i o n

1 r e m * f i r s t d a t a l o a d e r f o p r i n t i n g m l 2 c 3 f o 6 9 2 7 t 7 3 0 2 : r e a d a : p o k e i , 4 0 c s c a : n e x t5 0 6 i c s < > 4 3 4 6 2 t h e n p r i n t " * * * * e r r o r i d a t a

s t a t m e n t s * * * * " : e n 8 0 e n d1 0 0 :1 0 0 0 d a t a 1 6 0 , 1 6 , 1 3 2 , 1 1 4 , 1 6 0 , 1 , 1 3 2 , 1 1 31 0 1 0 d a t a 1 3 6 , 1 4 0 , 0 1 6 , 1 4 0 , 2 4 4 , 2 , 1 4 01 0 2 0 d a t a 2 4 5 , 2 , 1 4 0 , 2 3 7 , 2 , 1 4 0 , 2 3 6 ,

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

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

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

K J L

F D G C

A I

C C B M C

I A C N

I J

D K

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

I I

C A K M L N F B E C M M

2 4 , 1 0 9 , 2 3 5 , 2 9 , 1 4 1 , 2 3 5 , 2 95 8 , 2 8 , 2 4 , 1 0 5 , 4 8 , 1 4 1 , 2 3 79 6 , 1 6 9 , 4 8 , 1 4 1 , 2 2 6 , 2 9 , 1 4 12 9 1 4 1 , 2 2 8 , 2 9 1 6 6 , 2 4 7 , 2 3 2

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

L i s t i n g 3 s e c o n d l o a d e r f o V I v e r s i o n

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

s t a t e m e n t s * * * * " : e n 8 e n 1 0 0 :1 0 0 0 d a t a 2 0 1 , 1 0 , 2 4 0 , 3 7 6 , 1 2 9 , 2 8 , 1 6 91 0 1 0 d a t a 1 2 4 , 1 0 9 , 2 2 7 , 2 9 , 2 0 1 , 5 8 , 2 4 01 0 2 0 d a t a 6 , 1 4 1 , 2 2 7 , 2 9 7 6 , 1 2 7 , 2 8 , 1 6 9

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

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

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

T r a n s a c t o r 6 V o l u m e 5 I s s u e 0

Page 66: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 66/84

A l i g n i n g T h C o m m o d o r e1 5 4 1 D i s k D r i v e

B o D r a k eB r a n t f o r d , O n t .

W A R N I N G :F O L L O W I N G T H E S T E P S I T H I S A R T I C L EC O U L D R E S U L T I D A M A G E T Y O U R D I S KD R I V E A N W I L L V O I D A N W A R R A N T Y

T h w a r n i n g a b o v e i r e a l a n s h o u l d b r e a d c a r e f u l l y . A n t i m e y o u o p e n a s e a l e d u n i t , w h e t h e r d i s k d r i v e o r a e l e c t r i ct o a s t e r , y o w i l l v o i d a n w a r r a n t y o t h u n i t . Y o m a a l s od a m a g e t h u n i t . D a m a g e m a o c c u r r e g a r d l e s s o t h i n s t r u ct i o n s y o a r f o l l o w i n g . Y o m a i n j u r e y o u r s e l f w h i l e a t t e m p ti n r e p a i r s . E l e c t r i c a l e q u i p m e n t a l w a y s c a r r i e s w i t h i t h r i s ko s h o c k a n e l e c t r o c u t i o n . B U T . . i y o a r c a r e f u l a n p a t i e n t , y o c a a l i g n y o u r d i s k d r i v e a n s a v e u t $ 7 0 .

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

T h o t h e r s t e p t t a k e b e f o r e o p e n i n g t h e c a s e i t m a k e s u r et h a t i n d e e d a l i g n m e n t i n e e d e d . I o t h e r w o r d s , I I A I N ' TB R O K E , D O N ' T F I I T B s u r e t h e d r i v e i o u o a l i g n m e n tb e f o r e y o s t a r t . U s t h t e s t d e m o d i s k t h a t c o m e s w i t h y o u rd r i v e a n c h e c k t h a l i g n m e n t u s i n g P E R F O R M A N C E T E S T . I t h a t p r o g r a m s a y s t h e d r i v e i a l r i g h t , t h e n s o m e t h i n g e l s e i w r o n g . I y o c a n ' t g e t P E R F O R M A N C E T E S T t l o a d , t h e n t r t h s i n g l e l i n e p r o g r a m s i n c l u d e d h e r e . B u b s u r e B E F O R Ey o s t a r t . h a v e u s e d t h e s e i n s t r u c t i o n s t a l i g n 1 d i s k d r i v e st h i s f a l l i t h e s c h o o l a w h i c h w o r k . O n l y o n e w o u l d n o a l i g n . L a t e r w o r k t r a c e d i t p r o b l e m s t b a c h i p .

1 R e a d t h e s e i n s t r u c t i o n s a l t h w a t h r o u g h o n o m o r et i m e s . B s u r e y o u n d e r s t a n d w h a t t h e y s a y B E F O R E y o s t a r t .

2 F i n d d r y , s t a b l e p l a c e t w o r k . Y o w i l l n e e d d i s k e t t e t h a tc a b e r a s e d , t h T E S T D E M O d i s k t h a t c a m e w i t h t h d r i v e , m e d i u m P h i l l i p s ( s t a r h e a d ) s c r e w d r i v e r a n s h a r pp o i n t e d k n i f e ( t h e s m a l l e r t h b e t t e r ) .

3 U n p l u g t h e d i s k d r i v e f r o m t h C 6 c o m p u t e r a n d f r o m t h p o w e r s o u r c e ( w a l l p l u g ) . T u r n t h e d i s k d r i v e u p s i d e d o w na n u s t h s c r e w d r i v e r t r e m o v e t h f o u r s c r e w s f r o m t h b o t t o m o t h u n i t . ( Y o u j u s t v o i d e d t h e w a r r a n t y ! )

4 T u r n t h e d r i v e r i g h t w a u p D o n ' t l o s e a n o t h f o u rs c r e w s . G e n t l y l i f t t h t o o f a n s e i t o n s i d e . D o n ' t s i o r s t e p o i t h a t p l a s t i c s h e l l w i l l b r e a k e a s i l y .

5 F i n d t h e r e d a n b l a c k w i r e s l e a d i n g f r o m t h p o w e r l i g h to n t o t h m a i n c i r c u i t b o a r d y o s h o u l d n o b l o o k i n g a a n u n p l u g i t N o t e w h e r e i c a m e f r o m y o h a v e t p u i b a c k . ( F i g u r e 1

6 T h d i s k d r i v e i h e l d i n t o t h b o t t o m h a l f o t h c a s e w i t h s i ( 6 P h i l l i p s s c r e w s d r i v e n i n t o t h p l a s t i c . R e m o v e t h e m a n s e t h e m t o n s i d e . ( F i g u r e 1

7 C A R E F U L L Y , n o u s i n g t h c i r c u i t b o a r d , l i f t t h e d i s k d r i v eo u o t h b o t t o m o t h c a s e , t u r n t h e c a s e o v e r , a n i n s e r to n o t h m e t a l t a b s o t h d r i v e i n t o s l o t o t h p l a s t i cb o t t o m . T h d r i v e s h o u l d s t a n d s e l f s u p p o r t e d . ( F i g u r e 2

8 F i n d t h t w s c r e w s o e i t h e r s i d e o t h s t e p p e r m o t o r .C A R E F U L L Y u s t h k n i f e t s c r a p e a w a y t h g r e e n g l u eh o l d i n g t h o s e s c r e w s d o w n . D o n ' t c u a n w i r e s a c c i d e n t a l l yo y o c o u l d b e b u y i n g n e d r i v e . T h i s i s f o m e t h h a r d e s t p a r t o t h j o b . W h e n t h e g l u e i b r o k e n o f f , u s y o u rs c r e w d r i v e r t u n d o e a c h s c r e w s l i g h t l y ( n m o r e t h a n 2 - f u l l t u r n s ) . T u r n t h s t e p p e r m o t o r f u l l y c l o c k w i s e . N o t e i o n l y m o v e s a b o u t a q u a r t e r o a i n c h a m o s t . ( F i g u r e 3

9 P l u g t h e d r i v e i n t o t h c o m p u t e r . P l u g t h p o w e r b a c k i n t ot h d r i v e . K E E P Y O U R F I N G E R S O F A N P A R T T H A TL O O K S L I K E I C O U L D C A R R Y P O W E R . T u r n o t h p o w e r .

1 0 T h d r i v e w i l l n o b f a o u o a l i g n m e n t .

I n s e r t y o u r T E S T D E M O d i s k a n V A L I D A T E i u s i n g :

o p e n 1 , 8 , 1 5 , " v O " c l o s e

T h T r a n s a c t o r 6 V o l u m e 5 I s s u e 0

Page 67: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 67/84

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

( a b o u t 1 / 3 2 i n c h a t i m e ) u n t i l t h e r e d l i g h t s t a y s o n m a h a v e t v a l i d a t e t h d i s k s e v e r a l t i m e s . T i g h t e n o n

b l a n k d i s k u s i n g :

o p e n 1 , 8 , 1 5 , " n O : t e s t , t t " c l o s e

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

y o a r s u r e t h e d r i v e i a l i g n e d , r u t h P E R F O R MT E S T f r o m t h T E S T D E M O d i s k t c o n f i r m t h

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

1 3 U n p l u g t h d r i v e .

C A R E F U L L Y , l i f t t h d r i v e , t u r n t h e b o t t o m o v e r a n p l a c ed r i v e b a c k i n t o t h b o t t o m .

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

1 4 C O N G R A T U L A T I O N S ! Y o h a v e j u s t a l i g n e d y o u r 1 5 4 1 d i s kd r i v e .

S p e e d C o n t r o l

B o t t o m C a s eU p s i d e D o w n

F i g u r e

G l u e d D o w n

C a b l e d W i r eD o n ' t C u

G l u e d D o w n

T r a n s a c t o r 6 V o l u m e 5 I s s u e 0

Page 68: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 68/84

S u p e r C a R i c h a r d E v e r s , E d i t o r

S u p e r C a i p r o g r a m w r i t t e n f o t h s o l e p u r p o s e o p r o v i d i n g a l t h a t d e t a i l e d d i r e c t o r y i n f o r m a t i o n t h a t w a l r e q u i r e , b u h a v e s u c hh a r d t i m e l o c a t i n g . W h a t e v e r i t u c k e d a w a y o t h d i r e c t o r y t r a c k o y o u r d i s k e t t e m a g i c a l l y r e a p p e a r s w i t h t h u s o S u p e r C a t . F o a a d d e d b o n u s , t h o u t p u t c a n b e g e n e r a t e d t y o u r s c r e e n o r a t t a c h e dp r i n t e r . L o o k b e l o w f o q u i c k s y n o p s i s o a v a i l a b l e d a t a t b g e n e r a t e d b t h p r o g r a mS u p e r C a w i l l d i s p l a y t h e d i r e c t o r y t r a c k a n s e c t o r , a n t h i n d e xi n t o t h s e c t o r t h a t t h f i l e n a m e r e s i d e s o n I w i l l a l s o p r o v i d e y o w i t h t h u s u a l d a t a o b l o c k c o u n t , f i l e n a m e , a n d f i l e t y p e . A l o n g w i t ht h i s , t h t r a c k a n s e c t o r o t h f i r s t d a t a b l o c k o t h f i l e i t s e l f i g i v e n .A f i n a l b o n u s t R E f i l e t y p e u s e r s , t h e p r o g r a m w i l l s h o w t h f i r s ts i d e s e c t o r t r a c k a n s e c t o r l i n k , p l u s t h e r e c o r d l e n g t h o e a c h r e c o r dw i t h i n t h f i l e . T h i s i t h s u a n t o t a l o d a t a t h a t w i l l b e c o m ea v a i l a b l e t t h S u p e r C a u s e r .H e r e ' s w h a t t e x p e c t w h e n g e n e r a t i n g r e p o r t s w i t h t h e p r o g r a m .

3 9 : 1 6 : 6 6 6 3 m l 6 4 . p a l p r t r 5 s e 1 A b o v e i r e g u l a r d i s p l a y f o f i l e , e x c e p t i n g R E L . T h f i r s t t h r e en u m b e r s , " 3 9 : 1 6 : 6 6 " r e f e r t t h d i r e c t o r y t r a c k , s e c t o r , a n i n d e xi n t o t h s e c t o r t h a t t h f i l e n a m e h a b e e n l o c a t e d o n T h n e x tn u m b e r , " 6 3 " i t h e b l o c k c o u n t c o n s u m e d b t h f i l e o d i s k e t t e . T h d a t a f o l l o w i n g i t h f i l e n a m e f o l l o w e d c l o s e l y b t h f i l e t y p e . A f t e rt h a t c o m e s t h t r a c k a n s e c t o r t h a t t h f i r s t d a t a b l o c k i h e l d o n T h a t ' s e v e r y t h i n g .3 9 : 1 : 2 7 2 w r i t e r - d a t a r e t r 3 s e s t r 3 s e l e 2 5

T h i s d i s p l a y l i n e i f r o m R E t y p e f i l e e n t r y . E v e r y t h i n g i t h s a m et i l l y o g e p a s t t h t r a c k a n s e c t o r l i n k t t h f i r s t d a t a b l o c k . F r o m" s s " o n , t h e d a t a p r i n t e d r e f e r s t t h f i r s t s i d e s e c t o r b l o c k . I t h i se x a m p l e , t h f i r s t s i d e s e c t o r i l o c a t e d o t r a c k 3 8 , s e c t o r 8 w i t h f i l el e n g t h o 2 5 c h a r a c t e r s .W h e n t h e n t i r e d i r e c t o r y h a b e e n p e e r e d t h r o u g h b y t h p r o g r a m ,t h t o t a l n u m b e r o b l o c k s c o n s u m e d b t h p r o g r a m s i t h d i r e c t o r ya r d i s p l a y , a s h o w n b e l o w .

. . t o t a l * b l o c k s u s e d 2 0 5 4 . .

T h p r o g r a m h a b e e n w r i t t e n t w o r k w i t h a l C o m m o d o r e f l o p p yd r i v e s , a n w i l l e v e n a l l o w f o s e l e c t i v e e v a l u a t i o n o t h d i r e c t o r yb u s i n g t h p a t t e r n m a t c h i n g c a p a b i l i t i e s o f t h C o m m o d o r e D O S .

1 H

P E

M M

N J P

O ( I I 0 B

F 0 G C

K M i J A F D

O

J G M H

I N J B

P G O C M

1 1 H F F H K

1 r e s a v e " @ 0 : s u p e r c a t . b a s " , 1 0 r e * r t e / 8 4 s u p e r c a t a l o g r o u t i n e t h a t s u p p l i e s

a l f i l e i n f o1 1 p r i n t " * * s u p e r c a t a l o g r t e / 8 4 * 1 2 f t $ ( 0 ) d e l " : f t $ ( 1 ) s e q " : f t $ ( 2 ) p r "

f t $ ( 3 ) = " u s r " : f t $ ( 4 ) = " r e l "1 3 p r i n t " d r i v e t y p e : 1 4 i n p u t " 1 1 5 4 1 / 2 0 3 1 / 4 0 4 0 o 2 8 0 5 0 / 8 2 5 0 : ; t y :

i t y < l o r t y > 2 t h e n 1 4 01 5 d t r k 3 9 i t t h e n d t r k 1 8 r e * d i r e c t o r y t r a c k1 6 0 i n p u t " d r i v e * ; d r : i d r > l t h e n 1 6 01 7 p r i n t " s e l e c t i v e d i r e c t o r y ? "1 8 p r i n t " 1 s e q , 2 p r g , 3 u s r , 4 ) r e l , 5 ) a l l "1 9 i n p u t s i i s l < l o r s l > 5 t h e n 1 9 02 0 s l a l l " : i s l < 5 t h e n s l f t $ ( s l )2 1 i n p u t " 3 s c r e e n o r 4 p r i n t e r : " ; d v :

i f d v < 3 o r d v > 4 t h e n 2 1 02 2 o p e n 1 5 , 8 , 1 5 : o p e n 5 , 8 , 5 , " * " : o p e n l , ( d v )2 3 0 s e c = l : c t r 0 : b u 0 : z $ c h r $ ( 0 ) : s p $ = " 2 4 p r i n t * l 5 , u l " 5 ; d r ; d t r k ; s e c : r e * b l o c k r e a d2 5 p r i n t * 1 5 " b - p : " 5 ; 0 : c t O r e * p o s i t i o n t h

b u f f e r p o i n t e r2 6 g e t * 5 , n t $ , n s $ : r e * n e x t t r a c k / s e c t o r l i n k s2 7 g e t * 5 , f t $ : f a s c ( f t $ z $ ) a n d l 5 : i f t > 4 t h e n f 2 8 f t f t $ ( f t ) : r e * a s s i g n f i l e t y p e2 9 g e t * 5 , t $ , s $ : r e * f i r s t d a t a t r k / s e c t o r3 0 t r a s c ( t $ z $ ) : s k a s c ( s $ z $ 3 1 f l $ = " " f o x I t o l 6 : g e t * 5 , a $ : f l f l

c h r $ ( a s c ( a $ z $ ) ) : n e x t : r e f i l n a m e3 2 g e t * 5 , s r $ , s s $ , r l $ : r e * f i r s t t r k / s e c s i d e s e c t o r

l e n g t h i r e f i l e3 3 s a s c ( s r $ z $ ) : s a s c ( s s $ z $ ) : r a s c ( r l $ z $ 3 4 g e t * 5 , g b $ , g b $ , g b $ , g b $ , g b $ , g b $ : r e * * b y t e s n o u s e d3 5 g e t * 5 , b l $ , b h $ : b l k s a s c ( b l $ z $ ) + 2 5 6 * a s c ( b h $ z $ 3 6 g e t * 5 , g b $ , g b $ : r e * t w o w a s t e d b y t e s a t s t a r t o

n e x t r e c o r d3 7 i f f t t h e n 4 7 3 8 0 d p $ m i d $ ( s t r $ ( d t r k ) , 2 ) + " : + m i d $ ( s t r $ ( s e c ) , 2 ) + " : 3 9 0 d p $ d p m i d $ ( s t r $ ( c t r * 3 2 2 ) , 2 )4 0 d p m i d $ ( d p $ s p $ , , l e n ( d p $ ) ( 1 0 - l e n ( d p $ ) ) )

r i g h t $ ( s p $ s t r $ ( b l k s ) , 5 ) + " 4 1 i s l $ = " a l l " t h e n 4 3 0 : r e * e v e r y t h i n g o 4 2 i s l $ O f t $ t h e n 4 6 r e * f i l e t y p e i n c o r r e c t4 3 p r i n t # l , d p $ f l $ " f t $ " t r k " t r k " s e c " s k t ;4 4 i f t $ < > " r e l " t h e n p r i n t * l : g o t o 4 6 4 5 p r i n t * l , " s t r s r s e c " s s " l e n r 4 6 0 b u b b l k s : r e b l o c k s u s e d i t o t a l4 7 c t c t + 1 i c t r < 8 t h e n 2 7 4 8 d t r k a s c ( n t $ z $ ) : s e a s c ( n s $ z $ 4 9 i d t r k t h e n 2 4 5 0 p r i n t # l , " . . . t o t a l b l o c k s u s e d : b u " . . 5 1 c l o s e l : c l o s e 5 : c l o s e l 5 : e n

T h T r a n s a c t o r 6 V o l u m e 5 I s s u e 0

Page 69: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 69/84

N u m e r i c K e y p a dt h C o m m o d o r e 6

M i c h a e l K w u nO k e m o s , M

" I t ' s e x p a n d a b l e t 4 k e y s '

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

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

l a c k o p r o f i c i e n c y w i t h t h e t o r o o t h k e y b o a r d ( t h eW o u l d n ' t i b n i c e t h a v e n u m e r i c k e y p a d ?

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

E B 8 1 6 0 2 8 9 K e y b o a r d u n s h i f t e dE B C 2 6 0 3 5 4 K e y b o a r d s h i f t e d

t h e s e l o c a t i o n s , i t u r n s o u t h a t b y c h a n g i n g t h e i r( b t r a n s f e r r i n g t h R O t R A a n s w i t c h i n g t h o u t ) , y o c a c h a n g e t h e c h a r a c t e r s t h a t a r a c c e s s e d b

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

i i w i t h a n m a c h i n e l a n g u a g e m o n i t o r , a n s a v e i t T i t j u s t l o a d i a n r u n . A f t e r a b r i e f p a u s e , t h e " R E A D Y . "

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

i n i t i o n s :

7 8 ( n c h a n g e ) 7 8 U 1 c h a n g e s t 4 5 J K c h a n g e s t 1 2 M , c h a n g e s t 0 0

T r e t u r n t h k e y b o a r d t n o r m a l , u s R U N - S T O P / R E S T O R Eo P O K E 1 , 5 5 ( t h e p o k e i t r i c k y t e n t e r i n u m e r i c k e y p a dm o d e ) . T r e g a i n a c c e s s t t h n u m e r i c k e y p a d , e n t e r P O K E1 , 5 3 . W h i l e i t h n u m e r i c k e y p a d m o d e , t h U I 0 J K a n t h p e r i o d c a b a c c e s s e d b p r e s s i n g S H I F T . T h ' < a n t h ' > c a b a c c e s s e d b u s i n g t h C o m m o d o r e k e y . H a p p yt y p i n g !

H e d u m p o t h p r o g r a m :

0 8 0 10 8 0 90 8 1 10 8 1 90 8 2 10 8 2 90 8 3 10 8 3 90 8 4 10 8 4 90 8 5 10 8 5 90 8 6 10 8 6 9

0 3 A 9 F F D 8 9 C 3 3 2 D

0 0 0 F C A F 0 E D 3 2 4 D

0 0 8 C C 0 E A B F 3 2 4 4

0 0 F D D B F 1 5 6 3 3 3 D

9 A A F F F D B 0 3 3 4 4 2

3 A 0 E A 9 F 4 9 5 4 3 4 5

3 8 B F E F A 0 D 3 2 5 4 B

3 F F A 8 C 3 9 E 3 5 D C 2

N o s a v e f r o m $ 0 8 0 0 t $ 0 8 7 1 .

T r a n s a c t o r 6 V o l u m e 5 I s s u e 0

Page 70: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 70/84

D i s k / E x t r a m o n 6 M i k e F o r a n iB u r l i n g t o n , O n t a r i o

D i s k / E x t r a m o n 6 i t h a l l - i n - o n e u l t r a - m o n i t o r f o r t h e C o m m o d o r e 6 4 I h a j u s t a b o u te v e r y t h i n g y o c o u l d a s k f o r , a n t h e n s o m e . J u s t o n e p r o b l e m t h o u g h i t ' s o v e r 7 l o n g !A n 8 p a g e s o D T s t a t e m e n t s n o t o n l y c o n s u m e s t o m u c h m a g a z i n e s p a c e , b u t m a k e sh a n d e n t r y f a t o i m p r a c t i c a l . S w h p r i n t i n s t r u c t i o n s w i t h o u t t h p r o g r a m ? M i k e u s e ss t a n d a r d c o m m a n d s a n c o m m a n d s y n t a x w h i c h m a k e s t h i n s t r u c t i o n s p r a c t i c a l l yu n i v e r s a l f o a l o t h e r m o n i t o r u t i l i t i e s . M i k e ' s p r o g r a m m a h a v e c o m m a n d s t h a t t h eo t h e r s d o b u o d d s a r t h o t h e r s h a v e n o n e t h a t M i k e d o e s n ' t i n c l u d e . T w a s s e m b l e dv e r s i o n s o f D i s k / E x t r a m o n 6 a r a v a i l a b l e o T r a n s a c t o r D i s k # 5 M . E d .

E m b a r k i n g o a i n v e s t i g a t i v e j o u r n e y t h r o u g h y o u r 6 4 Y e s ? T h e nD i s k / E x t r a m o n 6 i t r a v e l c o m p a n i o n y o s h o u l d n ' t b w i t h o u t .I t ' s t h m o n i t o r p r o g r a m t e n a l m o n i t o r p r o g r a m s .

l o o y o m a b s a y i n g , " W h y s h o u l d b o t h e r w i t h t h i s o n e ? " .A g r e e d , t h e r e a r e s e v e r a l m o n i t o r p r o g r a m s a r o u n d , s o m e f o s a l e ,o t h e r s f o f r e e . D i s k / E x t r a m o n 6 4 h a s f e a t u r e s n o f o u n d i o t h e rm o n i t o r s w h i c h w a g o i n g t b s t r o n g " s e l l i n g p o i n t " f o t h p r o g r a m . H o w e v e r , t h p r o g r a m i n o p u b l i c d o m a i n s a l t h o s es e l l i n g p o i n t s m a k e t h f a c t t h a t i t ' s f r e e e v e n m o r e a t t r a c t i v e .

D i s k / E x t r a m o n 6 4 h a s a l t h c o m m o n m a c h i n e l a n g u a g e m o n i t o rc o m m a n d s s u c h a H u n t , A s s e m b l e a n d D i s a s s e m b l e , T r a n s f e r , p l u sN e w l o c a t e , I n t e r r o g a t e , C o m p a r e , Q u i c k T r a c e , a n B a n k S w i t c h i n gc o m m a n d s e s p e c i a l l y f o t h 6 4 H e x / D e c i m a l c o n v e r s i o n s a r i t h e r e t o o .

T h D i s k M o n i t o r p o r t i o n o t h p r o g r a m h a e v e r y t h i n g t h b u d d i n gy o u n g d r i v e p r o g r a m m e r n e e d s f o e x p e r i m e n t i n g w i t h t h e i n n e rw o r k i n g s .

N o t e : T h p r o g r a m h a b e e n t e s t e d w i t h C o m m o d o r e e q u i p m e n to n l y . t h e r e f o r e c a n n o t i n s u r e t h a t i w i l l w o r k p r o p e r l y w i t h n o n -C o m m o d o r e p r i n t e r s , d i s k d r i v e s , o I E E E i n t e r f a c e s . ( T h e r e h a b e e ns o m e s u c c e s s w i t h t h 4 0 4 0 d u a l d r i v e a n t h B u s - C a r d I i n t e r f a c e . )

T h f o l l o w i n g i l i s t o t h D i s k / E x t r a m o n 6 c o m m a n d s . S o m e o t h c o m m a n d s r e q u i r e s p e c i a l a t t e n t i o n s o p l e a s e r e a d o n .

A f f e c t e d M e m o r y

T h i s p r o g r a m i l o c a t e d a 1 0 0 0 o a $ 8 0 0 0 a n u s e s 8 o m e m o r y .T h p a g e 3 v e c t o r s ; I R Q , B R K , a n d I C R N C H a r c h a n g e d a n d t h u p p e r b y t e s o p a g e a r u s e d b y t h m o n i t o r p r o g r a m . n u m b e r o k e r n a l r o u t i n e s a r e a l s o u s e d a n d t h e s e w i l l a f f e c t s o m e z e r o p a g ev a r i a b l e s . C H R G E T i u s e d b t h m o n i t o r p r o g r a m a n d t h i s w i l l a f f e c tt h p a g e i n p u t b u f f e r . O b r e a k i n s t r u c t i o n b e f o r e a n y t h i n g c a nc h a n g e , z e r o p a g e a n p a g e t w a r s a v e d a $ 9 e 0 0 t o $ 9 f f f w i t h t h $ 8 0 0 0 v e r s i o n o a $ 2 e O O t $ 2 f f f w i t h t h e $ 1 0 0 0 v e r s i o n o t h m o n i t o r p r o g r a m . T h e r e f o r e y o w i l l a l w a y s b e a b l e t s e w h a t z e r op a g e o p a g e t w l o c a t i o n s y o u r p r o g r a m a f f e c t e d . A l s o o b r e a ki n s t r u c t i o n t h V I c h i p ' s v i d e o a n c h a r a c t e r g e n e r a t o r r e g i s t e r s a r r e s e t t t h e i r d e f a u l t s a s i t h I / p o r t i p a g e 0

N o t e : W h i l e i t h m o n i t o r a l n u m e r i c i n p u t m u s t b i h e x a d e c i m a ln u m b e r s e x c e p t w h e n d o i n g d e c i m a l t h e x a d e c i m a l c o n v e r s i o n .

M o n i t o r C o m m a n d s

D I S P L A Y R E G I S T E R S : D i s p l a y t h e c u r r e n t p r o c e s s o r s t a t u s .

D I S P L A Y M E M O R Y : D i s p l a y c o n t e n t s o m e m o r y i h e x .a d r l a d r 2 a d r l ; b e g i n n i n g a d d r e s s

a d r 2 ; e n d i n g a d d r e s s ( o p t i o n a l )I a d r 2 i s l e f t o u t h e n o n l i n e o f e i g h t b y t e s w i l l b d i s p l a y e d .

A L T E R M E M O R Y : A l t e r c o n t e n t s o t h 6 4 ' s m e m o r y. 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 a l t e r m e m o r y

A L T E R R E G I S T E R S : A l t e r c o n t e n t s o 6 4 ' s p r o c e s s o r r e g i s t e r s .p i r q s r a x y r s p

. 1 0 0 0 e a 3 1 b O 0 0 0 0 f a l t e r p r o c e s s o r s t a t u s

G O B e g i n e x e c u t i o n o m a c h i n e l a n g u a g e p r o g r a m .g a d r l a d r l b e g i n n i n g a d d r e s s o e x e c u t i o n ( o p t i o n a l )

I t h k e r n a l i b a n k e d o u t t h e p r o c e s s o r s t a t u s i n o t r e s t o r e d a t h ' g o ' c o m m a n d a n t h e I R Q ' s a r d i s a b l e d . A l s o i t h e a d d r e s s i o m i t t e d o i n v a l i d , t h 6 w i l l j u m p t a d d r e s s i t h p r o g r a m c o u n t e r .

L O A D : L o a d p r o g r a m i n t o t h 6 4 ' s m e m o r y .1 s d f i l e n a m e " , d n , a d r l

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

S A V E : S a v e p r o g r a m f r o m 6 4 t o d i s k .d d r f i l e n a m e " , d n , a d r l , a d r 2

d d ; d e s t i n a t i o n d r i v e ( o p t i o n a l )d ; d e v i c e n u m b e r ( 0 O f a d r l ; b e g i n n i n g a d d r e s s o s a v ea d r 2 ; e n d a d d r e s s o s a v e ( l a s t b y t e i s a v e d )

E X I T : E x i t t h m o n i t o r t B A S I C .A l w e d g e s a r l e f t i n t a c t s o t h e m o n i t o r m a b r e e n t e r e d .

E x t r a M o n i t o r C o m m a n d s

M O N I T O R : E n t e r m o n i t o r f r o m B A S I C .m o

T h T r a n s a c t o r 6 V o l u m e 5 I s s u e 0

Page 71: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 71/84

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

b a n k o u t h b a s i c R O t g i v e R A b a n k i t h b a s i c R O b a n k o u t h k e r n a l R O t g i v e R A

n b a n k i t h e k e r n a l R O

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

a d r 2 a d r 3 a d r l ; s t a r t a d d r e s sa d r 2 ; e n d a d d r e s sa d r 3 b e g i n n i n g a d d r e s s o t r a n s f e r

F i l l a p o r t i o n o m e m o r y w i t h g i v e n v a l u e .a d r 2 x a d r l ; s t a r t a d d r e s s

a d r 2 ; e n d a d d r e s sx ; v a l u e t f i l l m e m o r y w i t h

H u n t f o s t r i n g o v a l u e s i s p e c i f i e d p o r t i o n o m e m o r y .a d r 2 ' s t r i n g ' a d r l ; s t a r t a d d r e s sa d r 2 x x x x x x a d r 2 ; e n d a d d r e s s f o h u n t

' s t r i n g ' ; c h a r a c t e r s t b e s e a r c h e d f o x ; h e x v a l u e s t b s e a r c h e d f o ( m a x . l e n g t h o f s t r i n g o b y t e s i 2 0

C o m p a r e t w p o r t i o n s o m e m o r y t e a c h o t h e r .a d r 2 a d r 3 a d r l ; s t a r t a d d r e s s

a d r 2 ; e n d a d d r e s sa d r 3 ; s t a r t a d d r e s s ( s e c o n d b l o c k )

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

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

a d r l ; s t a r t a d d r e s sa d r 2 ; e n d a d d r e s s ( o p t i o n a l )

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

a d r l ; a d d r e s s t b e g i n e x e c u t i o nP r e s s i n g t h ' n k e s k i p s t h t r a c eP r e s s i n g t h ' m k e s p e e d s i u P r e s s i n g t h s p a c e b a h a l t s e x e c u t i o n

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

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

m a c r a s h t h s y s t e m . ( C I A * 1 T i m e r i u s e d f o i n t e r r u p t

E : A s s e m b l e m a c h i n e l a n g u a g e p r o g r a m i m e m o r y .( t h i s i s i m p l e a s s e m b l e r )

r l I d # $ 4 1 a d r l b e g i n n i n g a d d r e s s f o a s s e m b l y

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

B L E : D i s a s s e m b l e h e x a d e c i m a l m e m o r y l o c a t i o n v a l u e si n t o m n e m o n i c o p - c o d e s w i t h o p e r a n d s .

2 a d r l ; s t a r t a d d r e s sa d r 2 ; e n d a d d r e s s ( o p t i o n a l )a d r 2 i s l e f t o u t h e n o n l y o n o p - c o d e a n i t o p e r a n d w i l l b

A L T E R D I S A S S E M B L Y : C h a n g e t h e s c r e e n d i s a s s e m b l y .. 1 0 0 0 2 0 d 2 f j s r $ f f d 2

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

N E L O C A T E R : R e l o c a t e m a c h i n e l a n g u a g e p r o g r a m .a d r l a d r 2 o f f s e t a d r 3 a d r 4

a d r l ; b e g i n n i n g a d d r e s s o c o d e t b r e l o c a t e da d r 2 ; e n d a d d r e s so f f s e t ; v a l u e t b a d d e d t a b s o l u t e i n d e x e d m e m o r y l o c a

t i o n sa d r 3 ; l o w e r a d d r e s s l i m i t o f a b s o l u t e a d d r e s s e d d a t a w h i c h i

t b c h a n g e da d r 4 ; u p p e r l i m i t

; r e l o c a t i n g w o r d t a b l e i i n c l u d e dT h c o d e t b r e l o c a t e d m u s t f i r s t b t r a n s f e r r e d , t h i s i t w s t e p

c o m m a n d .

D E C / H E X C O N V E R S I O N : C o n v e r t h e x a d e c i m a l n u m b e r t d e c i m a l n u m b e r o r d e c i m a l n u m b e rt h e x a d e c i m a l n u m b e r .

* 6 5 5 3 5 ; d e c i m a l t h e x a d e c i m a l* $ f f f f ; h e x a d e c i m a l t d e c i m a l

K I L L : T h d i s k / e x t r a m o n i t o r w e d g e s a r e d e s t r o y e d a n n o r m a lb a s i c o p e r a t i o n s m a b d o n e t h m o n i t o r m a n o b r e e n t e r e d u n l e s s y o j u m p t t h s t a r t o t h p r o g r a m , i e $ 1 0 0 0 o r $ 8 0 0 0 .

A l t h p a g e t h r e e v e c t o r s u s e d a r r e s t o r e d .

C O L D : D p o w e r o r e s e t s e q u e n c e .

D i s k M o n i t o r C o m m a n d s

D I R E C T O R Y : D s c r e e n l i s t o t h d i r e c t o r y ./ d i r e c t o r y o d i s k

m ; d i r e c t o r y o f i l e s s t a r t i n g w i t h t h e l e t t e r ' m / " I : ; d i r e c t o r y o d r i v e

R E A D : R e a d s e c t o r f r o m t h e d i s k t d i s k b u f f e r .$ d t s b d ; d r i v e

t ; t r a c ks s ; s e c t o rb ; b u f f e r ( o p t i o n a l , d e f a u l t i 0 1

W R I T E : W r i t e d i s k b u f f e r t t h e d i s k s u r f a c e .$ d t s b d ; d r i v e

t ; t r a c ks ; s e c t o rb ; b u f f e r ( o p t i o n a l )

G E T : G e d i s k m e m o r y t t h e 6 4 ' s m e m o r y .$ a d r l a d r 2 a d r 3 a d r l ; s t a r t a d d r e s s o g e

a d r 2 ; e n d a d d r e s sa d r 3 ; a d d r e s s t s t o r e a i C 6

P U T : P u 6 4 ' s m e m o r y t d i s k m e m o r y .$ a d r l a d r 2 a d r 3 a d r l ; s t a r t a d d r e s s o p u

a d r 2 ; e n d a d d r e s sa d r 3 ; a d d r e s s t s t o r e a i d r i v e

T r a n s a c t o r 6 V o l u m e 5 I s s u e 0

Page 72: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 72/84

V I E W : V i e w i h e d i s k d r i v e s m e m o r y .$ a d r l a d r 2 a d r l ; s t a r t a d d r e s s

a d r 2 ; e n d a d d r e s s ( o p t i o n a l )

A L T E R : A l t e r t h d i s k d r i v e s m e m o r y .. $ : 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0

D I R E C T : S e n d d i r e c t c o m m a n d t t h e d i s k d r i v e .$ . ; a n y b a s i c 2 . 0 d i s k c o m m a n d

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

T R A C E : T r a c e f i l e s t r a c k a n s e c t o r l i n k s a n d i s p l a y t h e m , ( b e g i nt r a c i n g a t .

$ d t s b d ; d r i v et ; t r a c ks s ; s e c t o rb ; b u f f e r ( o p t i o n a l )

F E T C H : F e t c h s e c t o r f r o m t h d i s k d r i v e s u r f a c e t t h 6 4 ' sm e m o r y .

$ a d r l d t s b a d r l ; s t a r t a d d r e s s i C 6 d ; d r i v et ; t r a c ks ; s e c t o rb ; b u f f e r ( o p t i o n a l )

D U M P : D u m p b l o c k o t h 6 4 ' s m e m o r y t t h d i s k s u r f a c e .$ a d r l d t s b a d r l ; s t a r t a d d r e s s i C 6

d ; d r i v et ; t r a c ks ; s e c t o rb ; b u f f e r ( o p t i o n a l )

C H A N G E : C h a n g e t h d e v i c e n u m b e r o t h d i s k d r i v e , ( s e n d t d r i v eo j u s t f o p r o g r a m d e f a u l t s . )

$ d d n d ; o l d d e v i c e n u m b e rd ; n e w d e v i c e n u m b e r

I t h a s t e r i s k i i n c l u d e d t h c h a n g e i o n l y d o n e i t h 6 4 ' sm e m o r y s t h a t d e v i c e 0 9 — O f m a b u s e d a s d e f a u l t i h a r d w i r e d .

A L L O C A T E : A l l o c a t e a s e c t o r a s b e i n g u s e d i t h B A M .$ d t s d ; d r i v e

t ; t r a c ks ; s e c t o r

T d e - a l l o c a t e s e c t o r s u s e t h e b a s i c 2 . 0 c o m m a n d V a l i d a t e ( v O )

E X E C U T E : E x e c u t e d i s k m e m o r y .$ e a d r l a d r l ; b e g i n n i n g o e x e c u t i o n

B L O C K E X E C U T E : L o a d a s e c t o r o f t h e d i s k s u r f a c e i n t o a d i s kb u f f e r a n e x e c u t e i t

$ d t s b d ; d r i v et ; t r a c ks ; s e c t o rb ; b u f f e r ( o p t i o n a l )

S T A T U S : C h e c k t h e d i s k s t a t u s .$

I N T E R R O G A T E : D i s p l a y s c r e e n p r i n t a b l e c h a r a c t e r s w h i l e d i s p l a yi n g t h e m e m o r y o t h d i s k d r i v e .

$ a d r l a d r 2 a d r l ; s t a r t a d d r e s sa d r 2 ; e n d a d d r e s s ( o p t i o n a l )

T h T r a n s a c t o r

N o t e A f t e r d o i n g a n d i s k m e m o r y c o m m a n d s t h d r i v e s h o u l d b i n i t i a l i z e d t a v o i d a n u n f r i e n d l y e r r o r s . ( S > i 0 )

N o t e A a u t o m a t i c s c r o l l u a n d o w n i b u i l t i n t o t h m e m o r yd i s p l a y r o u t i n e s a n t h d i s a s s e m b l e .

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

D i s k / E x t r a m o n 6

M O N I T O R

a a d r lb b i nb b o u tb k i nb k o u t

a d r l a d r 2 a d r 3a d r l [ a d r 2 ]

a d r l a d r 2 x [ a d r l ]

h a d r l a d r 2 ' s t r i n g 'a d r l a d r 2 x x x x x .

a d r l [ a d r 2 ]

s d n f i l e n a m e " , d n , [ a d r l ]a d r l [ a d r 2 1

m o n a d r l a d r 2 o f f s e t a d r 3 a d r 4

[ a d r l ]

i t s t a r t i n g p o i n t t r e s e t t h v e c t o r s

Q u i c k R e f e r e n c e C h a r t

C O M M A N D S

s i m p l e a s s e m b l e rb a n k b a s i c i b a n k b a s i c o u b a n k k e r n a l i b a n k k e r n a l o u tc o m p a r e m e m o r yd i s a s s e m b l e m e m o r yf i l l m e m o r yb e g i n e x e c u t i o n o p r o g r a ms e a r c h m e m o r y f o s t r i n gs e a r c h m e m o r y f o b y t e si n t e r r o g a t e m e m o r yk i l l m o n i t o r w e d g e s a n e x i tl o a d a f i l e f r o m d i s kd i s p l a y m e m o r y b y t e se n t e r m o n i t o r f r o m b a s i c

[ w r e l o c a t e p r o g r a m c o d ed p o w e r o n r e s e t s e q u e n c eq u i c k t r a c e o p r o g r a m c o d ed i s p l a y p r o c e s s o r r e g i s t e r s

" d d r : f i l e n a m e " , d n , a d r l , a d r 2 s a v e f i l e t d i s kt a d r l a d r 2 a d r 3

x x x x x* x x x x

t r a n s f e r m e m o r ye x i t t h m o n i t o r t b a s i cd e c i m a l t h e c o n v e r s i o nh e t d e c i m a l c o n v e r s i o n

D I S K M O N I T O R C O M M A N D S$ d t s $ d t s [ b b ]$ d o d n$ d d n $ d a d r l d t s [ b b ]$ e a d r l$ f a d r l d d t t s s [ b b ]$ a d r l a d r 2 a d r 3$ a d r l [ a d r 2 ]$ a d r l a d r 2 a d r 3$ d t s s [ b b ]$ $ d t s s [ b b ]$ a d r l [ a d r 2 ]$ d t s [ b b ]$ ' s t r i n g '

7

a l l o c a t e s e c t o r i B A b l o c k e x e c u t ec h a n g e d i s k d e v i c e n u m b e rc h a n g e d i s k d e f a u l t d e v i c e *d u m p m e m o r y t d i s ke x e c u t e d i s k m e m o r yf e t c h s e c t o r f r o m f l o p p yg e t d i s k m e m o r yi n t e r r o g a t e d i s k m e m o r yp u m e m o r y t d i s k m e m o r yr e a d s e c t o r t d i s k b u f f e rc h e c k d i s k s t a t u st r a c e f i l e l i n k p o i n t e r sv i e w d i s k m e m o r yw r i t e a b u f f e r t d i s ks e n d d i s k c o m m a n dd i r e c t o r y

V o l u m e 5 I s s u e 0

Page 73: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 73/84

P e e k e r :Q u i c k P e e k

Y o u r D r i v eT E v e r s

t r i p p i n g h a b e c o m e o n o N o r t h A m e r i c a ' s p r i m ep a s t i m e s o v e r t h p a s t f e y e a r s . W i t h d i s k p r o t e c t i o n

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

u n i t i t h e t h i n g t d o

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

u t e v e r y p r i v a t e p a r t o y o u r d r i v e . E a c h a n d e v e r yr e c e s s i n l o n g e r s o w i t h D r i v e P e e k e r a y o u r s i d e .

o t m o r e s e r i o u s v e i n .

l o o k i n s i d e o d i s k m e m o r y a n e x t r a c t t h i n f o r m a t i o n t h a tw i t h i n i n o d i f f i c u l t t a s k . A l l t h a t i r e q u i r e d i t i n f o r md r i v e o y o u r i n t e n t i o n s a n p r o c e e d a l o n g w i t h w h a t y o u

t d o B e f o r e p r o g r e s s i n g o t t h p r o g r a m , l e t ' s f i r s th o t h i s c a n b e d o n e .

v e r y f i r s t t h i n g r e q u i r e d i t p l a c e a c a l l t t h e d r i v e a l o n gp r i v a t e c h a n n e l , t h e n k e e p t h c h a n n e l o p e n f o f u r t h e r

o p r o c e d u r e s .

o p e n 1 5 , 8 , 1 5

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

p r i n t # 1 5 , " m - r " c h r $ ( m l ) c h r $ ( m h ) c h r $ ( n u m c h r )

M - R " i n f o r m s t h e d r i v e t h a t y o w o u l d l i k e t r e a d i t o r y . C H R $ ( M L ) a n C H R $ ( M H ) t e l l s i w h a t p o r t i o n o

y o a r e i n t e r e s t e d i n C H R S ( n u m c h r ) i a o p t i o n a ln o t d i s c u s s e d b C o m m o d o r e i p a s t . T h i s w i l l

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

t 2 5 d e c i m a l . T g e t h e s e c h a r a c t e r s , t h G E T * 1 c o i t h e u s e d . I r e q u i r e d , y o c a G E T # m o r e t h a n o n

a t i m e , i e G E T # 1 5 , a $ , b $ , c $ , d $ . . e t c . T h d r i v en d s t h i s a n w i l l r e t u r n t y o t h n u m b e r o c h a r a c

d e s i r e d .

a l d i s k o p e r a t i o n s u s i n g C B e q u i p m e n t , z e r o b y t eb r e t r i e v e d a a l l . Y o c a w r i t e i t d i s k a n i w i l l

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

g l i k e u s e r s f e e . W e l l , w h e n e v e r r e a d i n g d a t a f r o mt e s t s h o u l d b m a d e t s e i t h s t r i n g r e c e i v e d i t h e r e . I n o t , a s s i g n i w i t h v a l u e o c h r $ ( 0 ) , a n y o u r

w i l l b h a p p i e r .

O n c e y o u h a v e t h a t b y t e , y o c a d o w h a t e v e r y o u p l e a s e . I t h p r o g r a mb e l o w , h a v e u s e d i f o o n s p e c i f i c p u r p o s e , t s h o w y o w h a t i h i d i n gi y o u r u n i t . O n c e t h d a t a i r e c e i v e d , i t A S C I I v a l u e i O R ' d w i t h 6 t m a k e i n i c e t w o r k w i t h , t h e n i i a d d e d t s t r i n g . F r o m t h e r e , t h o r i g i n a l d a t a b y t e r e c e i v e d i c o n v e r t e d t h e x a d e c i m a l a n i p r i n t e do u t . m a x i m u m o b y t e s w i l l b d i s p l a y e d p e l i n e , t h e n t h s t r i n g o t h C H R $ ( v a l u e o 6 4 w i l l b p r i n t e d . T h i s w i l l h e l p y o a t i m e s w h e ny o k n o w y o u ' r e p e e r i n g a a . b y t e t a b l e .

E v e r j ' t i m e l i n e i d r o p p e d , t h c u r r e n t l o c a t i o n i m e m o r y i p r i n t e d a t h b e g i n n i n g o t h n e l i n e i n h e x a d e c i m a l . I n t h i s w a y , y o a l w a y sk n o w w h e r e t h e d a t a i c o m i n g f r o m , j u s t i c a s e y o w a n t t o f i n d i b a c kl a t e r o n A a e x t r a b o n u s , t h p r o g r a m h a b e e n w r i t t e n t a l l o w o u t p u tt b d i r e c t e d t t h s c r e e n o p r i n t e r , a y o p l e a s e . W i t h e v e r y t h i n gt a k e n i n t o c o n s i d e r a t i o n , t h e r o u t i n e i s n ' t b a f o t h a m o u n t o w o r k i t ' sg o i n g t c o s t y o k e y i n g i i n A n d , a s u s u a l , y o w i l l h a v e l e a r n e d b u ta n o t h e r n e p r o g r a m m i n g t r i c k , t a d t y o u r a l r e a d y o v e r f l o w i n gc o l l e c t i o n .

1 0 0 r e m s a v e " @ 0 : d r i v e p e e k e r " , 8 : v e r i f y " 0 : d r i v e p e e k e r " , 1 0 r e * * d r i v e p e e k e r r t e / 8 4 * *1 1 r e * w i l l s c o u t a b o u t w i t h i n y o u r d r i v e r e p o r t b a c k t y o * 1 1 p r i n t " * * d r i v e p e e k e r * * 1 2 0 h x $ 0 1 2 3 4 5 6 7 8 9 a b c d e f "1 2 i n p u t " h e s t a r t , e n ; s $ , e $1 3 0 v a $ s g o s u b 2 1 5 v a l ( v a $ ) : r e m c o n v e r t s t a r t t d e 1 3 5 v a $ e g o s u b 2 1 5 v a l ( v a $ ) : r e m c o n v e r t e n t d e 1 4 i n p u t " s s c r e e n p p r i n t e r ; s p $1 4 5 d v i s p $ = " p t h e n d v1 5 o p e n 1 , ( d v )1 5 o p e n 1 5 , 8 , 1 51 6 f o p t e s t e p v " 1 6 m h p k / 2 5 6 m p k - m h % * 2 5 61 7 p r i n t # 1 5 , " m - r " c h r $ ( m l ) c h r $ ( m h % ) c h r $ ( 8 ) : r e m r e a d i c h a r s1 7 f l a g m h g o s u b 1 9 p r i n t # 1 , h t $ ; m l g o s u b 1 9

: p r i n t # 1 , h t $ " " ; : f l a g1 8 f o t 1 8 g e t # 1 5 , a $ a s c ( a $ c h r $ ( O ) ) : v v c h r $ ( v o r 6 4 )1 9 h ° / o v / 1 6 l v - h % * 1 1 9 5 h t $ = m i d $ ( h x $ , h % + 1 , 1 ) + m i d $ ( h x $ , l o + 1 , 1 ) : i f l a g t h e n r e t u r n2 0 0 p r i n t # 1 , h t $ " " 2 0 n e x t p r i n t # 1 , v $ n e x t p c l o s e i c l o s e 1 e n 2 1 0 r e m h e x - d e 2 1 5 l n = l e n ( v a $ ) : f2 2 0 f o r x 0 t o l n - 1 a s c ( m i d $ ( v a $ , l n - x , 1 ) ) - 4 8 a b s ( v > 9 )2 2 ( ( v - ( y * 7 ) ) * 1 6 T x ) : n e x t : v a m i d $ ( s t r $ ( f ) , 2 ) : r e t u r n

T r a n s a c t o r 7 V o l u m e 5 I s s u e 0

Page 74: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 74/84

F i l e C o m p a r eR i c h a r d E v e r s

C o m p a r e D i s k F i l e s I F l a s h

w h i l e a g t o o k i u p o n m y s e l f t c o n v e r t t h P E r e s i d e n tm o n i t o r f o t h C o m m o d o r e 6 4 C o n s i d e r i n g h o w m a n y M L M ' sa r e a l r e a d y o u t h e r e , t h i s w a a p r e t t y u s e l e s s t a s k . N e e d l e s s t s a y , y o w i l l n e v e r a c t u a l l y s e t h c o m p l e t e d v e r s i o n i t h p a g e s o o u m a g a z i n e . T g e b a c k t t h s t o r y , t r o u b l e so c c u r e d i m m e d i a t e l y w i t h m a s s e m b l e d p s e u d o s o u r c e . T g e t h e s o u r c e , s i m p l y S A V E d t h M L f r o m t h P E i m e m o r yt o d i s k , t h e n d i s a s s e m b l e d i w i t h d i s k u n a s s e m b l e r p r o g r a m .A f t e r f e m o d s t o t h i s a p p a r e n t s o u r c e , i w a a s s e m b l e d , j u s tt c h e c k i e v e r y t h i n g w a O K W i t h c r a s h a n h e a v e m h o p e s d i s s o l v e d . I w a s n ' t q u i t e r i g h t . L O A D a n S A V E w e r eO K s w e r e a l b u o n o t h o t h e r c o m m a n d s . G t h G c o m m a n d , w o u l d c r a s h t h e m a c h i n e b y t r a m p l i n g b a c k i n t oB A S I C w i t h t h d e c i m a l f l a g s e t . I c a m e c l o s e t d r i v i n g m c r a z y b e c a u s e t h m a c h i n e w o u l d h a v e t b p o w e r e d d o w na f t e r e v e r y a t t e m p t a c o r r e c t i n g t h e e r r o r .

I c o m p a r i s o n o c o d e w a m a d e b e t w e e n t h o r i g i n a l M L i t h P E T , a n m p s e u d o a s s e m b l e d c o d e , t h e t r o u b l e c o u l dq u i c k l y b f o u n d . T h i n c o r r e c t o m i s s i n g b y t e s w o u l d e a s i l yb p o i n t e d o u t , w i t h t h r i g h t p r o g r a m . A s o , F i l e C o m p a r e # 1

B A S I C v e r s i o n , w a c o n c e i v e d .

I n r e a l i t y t h B A S I C p r o g r a m t o o k v e r y s h o r t p e r i o d o t i m e t w r i t e . H o m u c h e f f o r t d o e s i t a k e t O P E N t w f i l e s f o r e a d ,r e a d i e a c h b y t e i t a n d o m , c o m p a r e t h e m , t h e n f l a g t t h s c r e e n w h e n s o m e t h i n g w a s n ' t q u i t e r i g h t . N o t h a t c o m p l e x .N e e d l e s s t s a y , m m i n u t e s o t e d i o u s l a b o u r f o u n d t h p r o b l e m . b y t e w a m i x e d u p i m d i s a s s e m b l y , t h e r e f o r et h n e c o d e w o u l d a l w a y s e r o u t . O n c e t h b y t e w a f i x e d ,t h c o d e w a g r e a t . h a p p y e n d i n g . A n s o t h B A S I C v e r s i o no f F i l e C o n v e r t b e c a m e p a r t o m a l r e a d y o v e r f l o w i n g a r c h i v e so l i m i t e d u s p r o g r a m s .

E n t e r t h u t i l i t i e s i s s u e . p e r f e c t o c c a s i o n f o t h r e b i r t h o c o n c e p t l o n g f o r g o t t e n . W i t h b u r s t o B A I D , a n d f i n a l l u n g ew i t h P A L , F i l e C o m p a r e , m a c h i n e c o d e v e r s i o n , w a b o r n . N l o n g e r t h b o r i n g l i t t l e B A S I C d i t t i t h a t t o o k f o r e v e r t o f i n i s h .T h i s o n g o e s l i k e b a d o d o r o w i n d y d a y , w h i c h m e a n s , i g o e s l i k e s t i n k . F o a e n c o r e i w i l l g e n e r a t e i t r e p o r t t y o u rs c r e e n o p r i n t e r . T h b e s t p a r t o t h i s o n i t h f a c t t h a t , a C h r i s Z a m a r a s a y s , i d o e s n ' t d o y o u a n y f a v o u r s . I s i m p l y d o e si t j o w i t h o u t m e s s i n g u y o u r c o m p u t e r i t h p r o c e s s .s i m p l e b i o c o d e f o s i m p l e t a s k .

T h p r o g r a m s l i s t e d b e l o w a r f o t h s o l e p u r p o s e o c r e a t i n gp r o g r a m o n d i s k e t t e w i t h a s i n g l e B A S I C l i n e t o S Y t t h s t a r ta d d r e s s . O n c e c r e a t e d , L O A D t h n e p r o g r a m i a n R U i a n o r m a l B A S I C p r o g r a m . T h c o d e h a b e e n w r i t t e n t o s t a r ta $ 0 4 0 1 f o t h P E T / C B M a n $ 0 8 0 1 f o t h C 6 4 . T h c o d ec a n n o t b e r e l o c a t e d w i t h o u t r e a s s e m b l i n g t h s o u r c e .

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

d r # : f i l e n a m e >

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

T h d i s p l a y i f o r m a t t e d t f i r s t s h o w t h e i n d e x ( i e . 0 - m a x ) i n t ot h f i l e t h a t t h m i s m a t c h w a f o u n d , f o l l o w e d b t h e b y t ev a l u e f o u n d i t h f i r s t f i l e , t h e n t h b y t e v a l u e f r o m t h s e c o n df i l e . E v e r y t h i n g i d i s p l a y e d i h e x . I n e r r o r s a r f o u n d , t h f i l e s w i l l s i m p l y b r e a d t h r o u g h w i t h o u t a n g r e a t e x c i t e m e n t .W h e n c o m p l e t e , i w i l l r e t u r n t p e r f o r m B A S I C w a r m s t a r tb a c k t R E A D Y m o d e . V e r y s i m p l e .

I y o s p e c i f y a f i l e t h a t d o e s n ' t e x i s t , t h p r o g r a m w i l l u n d e rs t a n d a n c l o s e e v e r y t h i n g u p t h e n r e t u r n t B A S I C w i t h o u th a r m . I y o f i n d t h a t y o h a v e t S T O P t h p r o g r a m , f o w h a t e v e r r e a s o n a a l l , p r e s s t h e S T O P k e y , a n c o n t r o l o y o u rc o m p u t e r w i l l b p a s s e d b a c k t y o u , w i t h a l f i l e s c o r r e c t l yc l o s e d u p

Q u i c k n o t e b e f o r e t h c o d e . S i c h e c k e d a f t e r t h b y t e i t a k e n f r o m t h s e c o n d f i l e s p e c i f i e d . I y o k n o w t h a t o n f i l ew i l l b l a r g e r t h a n t h o t h e r , a n d o n ' t w a n t t e x t e n d b e y o n dt h l i m i t o f t h s m a l l e r o n e , t h e n s p e c i f y t h l a r g e r f i l e f i r s t , t h s m a l l e r o n l a s t . T h i s w i l l s a v e d i s p l a y f u l l o $ 0 D ' s f r o m t h s m a l l f i l e i c o m p a r s i o n t t h l a r g e r o n T h t w f i l e s w i l l n o m a t c h t o o w e l l a t h i s p o i n t , s y o w i l l g e n e r a t e a r e p o r t o g a r b a g e .

P l e a s e r e m e m b e r t S A V E t h p r o g r a m ( s ) b e l o w b e f o r e r u n n i n gt h e m . E v e n t h o u g h i c r e a t e s a n o t h e r p r o g r a m f o y o u , i w o n ' th u r t t h a v e t h g e n e r a t o r a r o u n d i c a s e o a e r r o r .

T h T r a n s a c t o r 7 V o l u m e 5 I s s u e 0

Page 75: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 75/84

F i l e C o m p a r e : B A S I C 4 . V e r s i o n F i l e C o m p a r e : C o m m o d o r e 6 V e r s i o n

1 r e s a v e " ' 0 : f i l c o m p p e t . d a t " , 1 0 r e * * r t e / 8 4 d a t a t c r e a t e

' f i l e c o m p a r e 4 . 0 ' o d i s k e t t e a p r 1 1 i n p u t " d r i v e # n e p r o g r a m n a m e ; d r $ , f l $1 2 o p e n 1 5 , 8 , 1 5 : o p e n 5 , 8 , 5 , ( d r $ ) + " :

f l $ + " , p , w "1 3 i n p u t # 1 5 , e , e $ , b , c : i t h e n c l o s e 1 5

p r i n t e , e $ , b , c : s t o p1 4 f o 1 0 2 5 t 1 4 0 9 r e a d x p r i n t # 5 , c h r $ ( x ) ; :

c c x n e x t : c l o s e 51 5 i c h < > 3 9 7 7 5 t h e n

p r i n t " c h e c k s u m e r r o r " : e n 1 6 p r i n t " * p r o g r a m c o m p l e t e * * " : e n 1 7 0 :1 8 d a t a 1 4 3 7 4 1 0 0 1 5 8 , 3 1 9 d a t a 4 9 4 8 5 4 , 5 1 , 3 2 , 5 8 , 3 2 4 2 0 d a t a 4 2 , 3 2 , 7 0 , 7 3 , 7 6 , 6 9 , 3 2 , 6 2 1 d a t a 7 9 7 7 8 0 , 6 5 , 8 2 , 6 9 , 3 2 5 2 2 d a t a 4 6 4 8 3 2 , 4 2 , 4 2 0 0 2 3 d a t a 1 6 0 , 5 , 1 6 9 , 7 1 , 3 2 , 2 9 , 1 8 7 , 3 2 4 d a t a 2 0 7 , 2 5 5 , 5 6 , 2 3 3 , 4 8 , 1 3 3 , 9 0 , 2 0 12 5 d a t a 3 4 8 , 2 4 4 , 2 3 3 , 5 1 7 6 , 2 4 0 , 1 6 2 6 d a t a 1 3 3 2 , 2 1 0 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3 d a t a 7 6 6 9 7 8 , 6 5 , 7 7 6 9 3 2 6 6 4 d a t a 0 4 8 4 9 , 5 0 , 5 1 , 5 2 , 5 3 , 5 6 5 d a t a 5 5 5 6 5 7 , 6 5 , 6 6 , 6 7 , 6 8 , 6 6 6 d a t a 7

L I

F H

P

C C

I O

I B G O C N

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

B K F M M N P N H H L N O O B H I I

F C J P

6 6

0

1 r e s a v e " @ 0 : f i l c o m p c 6 4 . d a t " , 1 0 0 r e m * * r t e / 8 4 d a t a t c r e a t e

' f i l e c o m p a r e c 6 4 ' o d i s k e t t e a s p r g1 1 i n p u t " d r i v e # n e p r o g r a m n a m e ; d r $ , f l $1 2 0 o p e n 1 5 , 8 , 1 5 : o p e n 5 , 8 , 5 , ( d r $ ) + " :

f l $ + , p , w "1 3 i n p u t # 1 5 , e , e $ , b , c : i t h e n c l o s e 1 5

p r i n t e , e $ , b , c : s t o p1 4 f o = 2 0 4 9 t 2 4 3 3 : r e a d x p r i n t # 5 , c h r $ ( x ) ; :

c c x n e x t : c l o s e 51 5 0 i f c h < > 3 8 8 6 1 t h e n

p r i n t " c h e c k s u m e r r o r " : e n 1 6 p r i n t " * p r o g r a m c o m p l e t e * * " : e n 1 7 0 :1 8 d a t a 1 8 3 7 8 1 0 0 1 5 8 , 3 1 9 d a t a 5 0 4 8 5 6 , 5 5 , 3 2 5 8 , 3 2 , 4 2 0 d a t a 4 2 , 3 2 , 7 0 , 7 3 , 7 6 , 6 9 3 2 1 d a t a 7 9 , 7 7 , 8 0 6 5 , 8 2 , 6 9 , 3 2 2 d a t a 5 4 5 2 , 3 2 , 4 2 , 4 2 0 2 3 d a t a 1 6 0 , 9 , 1 6 9 , 7 1 , 3 2 , 3 0 , 1 7 1 , 3 2 4 d a t a 2 0 7 , 2 5 5 , 5 6 , 2 3 3 , 4 8 , 1 3 3 , 9 0 , 2 0 12 5 d a t a 3 4 8 , 2 4 4 , 2 3 3 , 5 , 1 7 6 , 2 4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8 8 2 , 3 5 , 5 8 7 0 7 6 3 d a t a 7 6 , 6 9 , 7 8 , 6 5 , 7 7 , 6 9 , 3 2 , 6 6 4 d a t a 0 4 8 , 4 9 , 5 0 , 5 1 , 5 2 5 3 5 6 5 d a t a 5 5 5 6 5 7 6 5 , 6 6 , 6 7 , 6 8 , 6 6 6 d a t a 7

T r a n s a c t o r 7 V o l u m e 5 I s s u e 0

Page 76: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 76/84

P L E R S E H E L PD U I 1 P

f l C C I D E N T L Y

P L E A S E D T N O T W 1 G H T .H A V E F U L L B U F F E R . . .

T H I N G * " » H R T 0 " C U C K C U C K " I T H N I C H T

L A S T C H A M C t P r i n t H O C O M P U T E R . ^ H O U i C O ( * \ p U T 6 O . SS E

T h T r a n s a c t o r 7 V o l u m e 5 I s s u e 0

Page 77: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 77/84

S Y N T K X I O T H W T D R F L O T S K Y ' S H O U S E W H W B E L I E V E

I S I N

T H P L K M SF O H I N E E X P A N D E R " ,

I S Q M E O W t U S E ST H C V W P 1 H LC O N T R O Lf l q t s k Y s

/ \ N J E f c t T W e > \ J E .F L O T S K ^ ,

S N K I C H E Q f

N H E R E .

s o n t -

H t T L . V J H E R E

. - T O B C O N T I N t I

^ m m m m m ^ f m m ^ i m m m m m m m m m m

I t ' l l B a c k u p D i s k i N a n o s e c o n d s !M T i m e W a r p p r o g r a m i a l m o s t d o n e .j u s t h a v e t d e - b u g t h e r e - e n t r y r o u t i n e .

t o r 7 V o l u m e 5 I s s u e 0

Page 78: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 78/84

N e w s B R N e 1 6 - b i t C o m m o d o r e s f o 1 9 8 5C o m m o d o r e p l a n s t r e g a i n i t p o s i t i o n i t h b u s i n e s s m a r k e t w i t h t h r e e n e e n t r i e s f o 1 9 8 5 .

T h e m u c h - r u m o r e d I B c o m p a t i b l e b a s e do t h C a n a d i a n H y p e r i o n i s l a t e d f o i n t r od u c t i o n i t h s p r i n g o 1 9 8 5 .

T h f i r s t h a l f o 1 9 8 5 s h o u l d a l s o s e e t h er e l e a s e o C o m m o d o r e ' s m u l t i - t a s k i n gZ 8 0 0 0 - b a s e d m a c h i n e t h a t w a f i r s t s e e n i A p r i l 1 9 8 4 a t h H a n o v e r c o m p u t e r f a i r i W e s t G e r m a n y . T h i s M a c h i n e w i l l s u p p o r tm u l t i p l e u s e r s a n r u n a n o p e r a t i n g s y s t e mb a s e d o U N I X V e r s i o n 7

P r o b a b l y t h m o s t e x c i t i n g o t h n e m c h i n e s w i l l c o m e f r o m C o m m o d o r e ' s a c q u i s it i o n o A m e g a C o r p . o S a n t a C l a r a , C a l i f . T h A m i g a - d e r i v e d C o m m o d o r e i e x p e c t e d t b i n t r o d u c e d a C h i c a g o ' s C o n s u m e r E l e ct r o n i c s S h o w i J u n e 1 9 8 5 . T h m a c h i n e w i l lh a v e 6 8 0 0 0 p r o c e s s o r , a w e l l a d e d i c a t e dp r o c e s s o r s f o a n i m a t i o n , g r a p h i c s , a n s o u n d ( i n c l u d i n g v o i c e s y n t h e s i s ) . G r a p h i c sa r e a s t r o n g p o i n t , w i t h s u p e r h i g h r e s o l u t i o nA N 3 c o l o u r s f r o m p a l e t t e o 3 , 0 0 0 .

T h e r e ' s a l s o t h C 1 2 8 , s o u p e d u 6 w i t h1 2 8 K R A a n 8 c o l u m n m o n o c h r o m e o

c o l o u r d i s p l a y o u t p u t . p o r t a b l e m a c h i n ew a a l s o s h o w n t c o m p e t e w i t h t h o t h e rL C " l a p - t o p s " . F o m o r e d e t a i l e d r e p o r t o t h C o n s u m e r E l e c t r o n i c s s h o w i L a s V e g a s ,s e e t h e F e b r u a r y T P U G m a g a z i n e .

N o t e t P r o d u c t R e v i e w A u t h o r sT h T r a n s a c t o r i g e t t i n g a w a y f r o m p r o d u c tr e v i e w s a n p r i n t s p r o d u c t c o m p a r i s o n s i s t e a d . I y o h a v e p r o d u c t r e v i e w y o u ' d l i k et s u b m i t , c o n t a c t T P U G m a g a z i n e . N i c k S u l i v a n , r e g u l a r c o n t r i b u t o r t T h T r a n s a c t o r( A u t h o r o t h T r a n s B A S I C s e r i e s ) i n o t h e d i t o r o T P U G a n t e l l s u s h e ' d b h a p p y t c o n s i d e r s o f t w a r e o h a r d w a r e r e v i e w s f o p u b l i c a t i o n .

I y o u ' d l i k e t o w r i t e p r o d u c t c o m p a r i s o n f o t h T r a n s a c t o r , l e u k n o w t h s u b j e c t i a d v a n c e b e f o r e s u b m i t t i n g t h e a r t i c l e . A e x a m p l e o g o o d p r o d u c t c o m p a r i s o n w o u l db o n e c o m p a r i n g t h p o p u l a r s k e t c h i n g p r og r a m s l i k e F l e x i d r a w , K o a l a P a d , D o o d l e r ,T e x t s k e t c h , C A D p i c , e t c .

O v e r 4 1 , 0 0 0 A t t e n d W o r l d o C o m m o d o r e I S h o w i T o r o n t oT h s e c o n d W o r l d o C o m m o d o r e s h o w a T o r o n t o ' s I n t e r n a t i o n a l C e n t r e a t t r a c t e d4 1 , 5 1 6 p e o p l e o v e r i t f o u r d a r u n . C o m m od o r e h a l a r g e d i s p l a y a t h s h o w , b u h e l db a c k o t h i n t r o d u c t i o n o t h e i r n e 1 6 - b i tm a c h i n e s , d i s p l a y i n g m a i n l y t h + a n 1 6

T h w i n n e r o t h d r a w f o t h P E 2 0 0 1 ( c o l l e c t o r ' s i t e m ) a T h T r a n s a c t o r b o o t h w a B i l l T a y l o r o A c t o n , O n t a r i o .

T r a n s a c t o r D i s k O f f e r U p d a t eA o f t h i s i s s u e t h e r e a r T r a n s a c t o r D i s k s :D i s k 1 A l p r o g r a m s f r o m V o l u m eD i s k 2 V o l u m e 5 I s s u e s 0 1 - 0 3D i s k 3 V o l u m e 5 I s s u e 0 ( B u s i n e s s E d . )D i s k 4 V o l . 5 I s s u e 0 ( H a r d w a r e / P e r i p h s . )D i s k 5 V o l . 5 I s s u e 0 ( A i d s U t i l i t i e s )T r a n s a c t o r d i s k s a r e n o a v a i l a b l e o s u s c r i p t i o n b a s i s t h r o u g h t h o r d e r f o r m i t h c e n t r e s p r e a d o t h m a g a z i n e . D i s k s c a b p u r c h a s e d i n d i v i d u a l l y f o $ 7 . 9 5 ( C d n . ) e a c h ;t h e e x t r a t w d o l l a r s t h a t w a t b c h a r g e df o t h f i r s t d i s k h a b e e n d r o p p e d .

P e r h a p s w o r d o e x p l a n a t i o n i i o r d e rh e r e . T h o r i g i n a l i d e a w a t c h a r g e $ 9 . 9 5f o t h f i r s t d i s k y o p u r c h a s e d , a n w e ' dm a k e u m a i l e r f o r t h a t d i s k ( a n d e a c hs u b s e q u e n t o n e ) w h i c h c o n t a i n e d y o u rn a m e , a d d r e s s , p a i d p o s t a g e , a n t w d o l l a ro f c o u p o n f o f u t u r e d i s k s . A i t u r n e d o u t ,p o s t o f f i c e r e g u l a t i o n s n i x e d t h e m a i l e r i d e a ,s w d e c i d e d t o j u s t s e n d d i s k s o u o a i n d i v i d u a l b a s i s f o $ 7 . 9 5 , a n o f f e r d i s k s u s c r i p t i o n s . T h s u b s c r i p t i o n i m a i n l y a c o n v e n i e n c e , s i n c e o u p r i c i n g p h i l o s o p h yd i c t a t e s r o c k - b o t t o m p r i c e f o s i n g l e d i s k s ,a n t h d i s c o u n t f o s u b s c r i p t i o n r a t h e rt h a n i n d i v i d u a l p u r c h a s e i s n ' t t h a t g r e a t .

T a n y o n e w h a l r e a d y s e n t i $ 9 . 9 5 f o t h e i rf i r s t d i s k w e ' l l c r e d i t t h t w d o l l a r s t o w a r df u t u r e d i s k s o r s u b s c r i p t i o n s .

T h C o m p l e t e C o m m o d o r eI n n e r S p a c e A n t h o l o g yW a r n o t a k i n g o r d e r s f o t h e l o n ga w a i t e d s e c o n d e d i t i o n o t h S p e c i a l R e f e re n c e I s s u e . A s y o u c a s e e , t h t i t l e i s o m ew h a t d i f f e r e n t t h a n i t p r e d e c e s s o r , b u t t h e ns i t h i n s i d e . O c o u r s e m o s t o t h m a t e r i a lf r o m t h f i r s t e d i t i o n i i n c l u d e d , w i t h a m u c h a g a i n a d d e d . S e t h b a c k c o v e r a d

T h p r i c e ? J u s t $ 1 2 . 9 5 ! O r i g i n a l l y t h p r i c ew a p r o j e c t e d a a r o u n d $ 2 d o l l a r s . T w r e a s o n s a c c o u n t f o t h d i f f e r e n c e . F i r s t , t h d i s k w i n t e n d e d a s p a r t o t h p a c k a g e w i l ln o b m a d e a v a i l a b l e s e p a r a t e l y ( d e t a i l sn e x t i s s u e ) . S e c o n d l y , w h a v e d e c i d e d t p u b l i s h t h e b o o k o o u o w n . P r e v i o u s l y w h a c o n s i d e r e d r e l e a s i n g t h b o o k t a o u s i d e p u b l i s h e r b u t b d o i n g i o u r s e l v e s t h ep r i c e c a n b r o u g h t d o w n s u b s t a n t i a l l y .

T h C o m p l e t e C o m m o d o r e I n n e r S p a c e A t h o l o g y i c u r r e n t l y a v a i l a b l e b m a i l o r d e ro n l y t h r o u g h T h T r a n s a c t o r . T h e a s i e s tw a t o r d e r i w i t h t h p o s t a g e p a i d r e p l yc a r d a t h c e n t e r o t h m a g a z i n e . M a r k t h c a r d a p p r o p r i a t e l y a n d o n ' t f o r g e t y o u rp o s t a l / z i p c o d e . I y o u ' r e p a y i n g b c h a r g ec a r d , p l e a s e i n c l u d e t h e x p i r y d a t e . I y o u ' r es e n d i n g c h e q u e , y o c a t a p e t h p o s t a g ep a i d c a r d t t h e o u t s i d e o a e n v e l o p e .P l e a s e a l l o w w e e k s f o d e l i v e r y .

A u t o g r a p h e d b y J i m B u t t e r f i e l dA t h i s m o m e n t w e h a v e 5 0 a u t o g r a p h e dc o p i e s o J i B u t t e r f i e l d ' s b o o k , " M a c h i n e

L a n g u a g e f o t h C o m m o d o r e 6 4 a n o t h e rC o m m o d o r e C o m p u t e r s " . 4 9 o t h e m w i l l b a v a i l a b l e f o 1 7 . 9 5 e a c h ( n t a x e s ) . T h 5 0 t hw e ' d l i k e t o k e e p f o o u r s e l v e s .

T g e o n e , a c f a s t . R e m e m b e r , t h i s n o t i c e i p r i n t e d 6 3 , 0 0 0 t i m e s s o t h e y w o n ' t l a s t l o n g .Y o c a e v e n u s t h e p o s t a g e p a i d r e p l y c a r da t h e c e n t e r o f t h i s i s s u e j u s t b s u r e t s p e c i f y t h e b o o k t i t l e o t h c a r d .

P r o d u c t N e w s :I B C O M A LI B h a s n ' t o f f i c i a l l y a n n o u n c e d i y e t , b u t h w o r d i t h a t t h e y w i l l s o o n o f f e r C O M A L f o t h e P C , X T , A T , a n P C j r m a c h i n e s . I w i l l b c o m p l e t e l y c o m p a t i b l e w i t h t h C O M A L 2 . c a r t r i d g e f o t h C o m m o d o r e 6 4

T h G o l d D i s kT h g o l d d i s k i m o n t h l y m a g a z i n e f o t h C 6 i d i s k f o r m a t w h i c h c o n t a i n s h i g h q u a li t s o f t w a r e . E a c h i s s u e h a a f e a t u r e p r o g r a m( e g . D e c e m b e r ' s f e a t u r e w a a e a s y t u s D a t a b a s e ) , a a r c a d e - s t y l e g a m e , h o m ef i n a n c e p r o g r a m w i t h a c c o m p a n y i n g a r t i c l e ,e d u c a t i o n a l p r o g r a m s , a n c r o s s w o r d p u z l e . T h e r e i a l s o a r e g u l a r g r a p h i c s c o l u m n ,m u s i c c o l u m n , a n p r o g r a m m i n g t i p s . A a s s e m b l e r , w o r d p r o c e s s o r , i n f o r m a t i o n m a a g e m e n t s y s t e m , a n F O R T H a r p l a n n e d a t h e f e a t u r e p r o g r a m f o f u t u r e i s s u e s .

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

T h G o l d d i s k c o s t s $ 1 5 . 0 0 ( C d n . ) f o a s i n g l ei s s u e , $ 7 0 . 0 0 f o m o n t h s u b s c r i p t i o n , o r$ 1 2 7 . 0 0 f o 1 m o n t h s ( p l u s $ 1 . 0 0 s h i p p i n ga n h a n d l i n g f o e a c h i s s u e ) . C o n t a c t :

T h G o l d D i s k2 1 7 9 D u n w i n D r i v e , # M i s s i s s a u g a , O n t .C a n a d a L 5 L 1 X

Q u i c k D a t a D r i v e F o C 6 a n V I C - 2 0T h Q u i c k D a t a d r i v e f r o m E n t r e p o I n c . o S u n n y v a l e , C i h i g h - s p e e d r e p l a c e m e n tf o t h C 2 d a t a s e t t e u n i t . I w o r k s w i t h t i n yt a p e c a r t r i d g e s c a l l e d " m i c r o w a f e r s " w h i c hc a s t o r e f r o m 1 6 t 1 2 8 K o d a t a . A o p e r a t i n g s y s t e m w h i c h c o m e s w i t h t h d r i v ec a l l e d Q O ( Q u i c k O p e r a t i n g S y s t e m ) a l l o w sn o r m a l B A S I C I / c o m m a n d s ( O P E N , S A V E ,L O A D , e t c . ) . F i l e s a r s t o r e d s e q u e n t i a l l y o t h e w a f e r , b u t t h e d r i v e w i l l s e a r c h g i v e nf i l e n a m e , a p p e a r i n g l i k e 1 5 4 1 d i s k d r i v e t t h u s e r . A v e r a g e a c c e s s t i m e t l o c a t e f i l eo 6 5 m i c r o w a f e r i 2 s e c o n d s . O n c el o c a t e d , d a t a c o m m u n i c a t i o n r a t e s a r c l a i m e d t b 1 5 t i m e s f a s t e r t h a n t h C 2 d a t a s e t t e ( t h a t ' s f a s t e r t h a n 1 5 4 1 d i s kd r i v e ! ) .

P r i c e f o t h e d r i v e a n s o f t w a r e o n m i c r o w af e i $ 1 2 9 . 9 5 . M i c r o w a f e r s c o s t a p p r o x im a t e l y $ 5 . 0 0 d e p e n d i n g o s t o r a g e c a p a c i t y .

T h T r a n s a c t o r 7 V o l u m e 5 I s s u e 0

Page 79: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 79/84

L a w r e n c e S t a t i o n R o a d, C

S 9 4 0 8 9

D e v e l o p e r s N e w s l e t t e r

S o f t w a r e D e v e l o p e r s A s s o c i a t i o n i a s s o c i a t i o n o c o m p u t e r s o f t w a r e

e r s , a n o t h e r s i r e l a t e d a r e a s , w h j o i n e d t o g e t h e r t s t r e n g t h e n s o f t w a r e

i C a n a d a .

S o f t w a r e D e v e l o p e r s A s s o c i a t i o n N e w si m o n t h l y p u b l i c a t i o n p r o d u c e d a n

b t h S o f t w a r e D e v e l o p e r s A s s of o o u m e m b e r s a n f r i e n d s o

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

C h a i r m a n , S o f t w a r e D e v e l o p e r s A s s o

S o f t w a r e A n H u m a n D e v e l o pC o n f e r e n c e

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

b t h e O n t a r i o S o f t w a r e D e v e lA s s o c i a t i o n i c o n j u n c t i o n w i t h t h A n n u a l S o f t w a r e P a n o r a m a a t h Y o r k H o t e l i T o r o n t o , M a 2 2 - 2 4 ,

b u s i n e s s , g o v e r n m e n t a n d a c a d e m i cf r o m 1 6 c o u n t r i e s a r e b e i n g

t a t t e n d t h C o m p u t e r S o f t w a r e a n D e v e l o p m e n t C o n f e r e n c e w h i c h w i l l

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

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

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

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

. T h m a r k e t i e x p e c t e d t g r o w t $ b t h e n o t h e d e c a d e .

O n t a r i o S o f t w a r e D e v e l o p e r s h a v e e s t a ba a d v i s o r y c o m m i t t e e o s e n i o r i n d u s

r e p r e s e n t a t i v e s t m a k eo v a r i o u s a s p e c t s o t h

e c o o r d i n a t i o n . F o c u s i n g o t h o t h e F u t u r e , O f f i c e o t h e F u t u r e ,

l o t h F u t u r e a n t h F a r m o t h t h e x h i b i t o r s a n c o n f e r e n c e a r

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

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

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

P l e a s e c o n t a c t , R e u b e n L a n d o , C o C o o r d i n a t o r .

h S o f t w a r e D e v e l o p e r s A s s o c i a t i o n8 B l o o r S t . E a s t

5 0 O

1 5 3

C o m m o d o r e N o P r o v i d e s A m e r i c a nE d u c a t i o n a l S o f t w a r e i C a n a d a .

C o m m o d o r e i n o o f f e r i n g s o f t w a r e a c r o s sC a n a d a f r o m A m e r i c a n E d u c a t i o n a l C o p u t e r , I n c . , o n o t h l e a d i n g e d u c a t i o n a ls o f t w a r e f i r m s i N o r t h A m e r i c a .

" A E C ' s e d u c a t i o n a l p u b l i s h i n g e x p e r i e n c eh a l e t t h d e v e l o p m e n t o t h m o s t e x t e ns i v e c o l l e c t i o n o c l a s s r o o m - r e l a t e d p r og r a m s a v a i l a b l e , i n c l u d i n g p h o n i c s , w o r ds k i l l s , r e a d i n g c o m p r e h e n s i o n , v o c a b u l a r ys k i l l s a n w o r l d g e o g r a p h y , " s a i d R i c h a r dM c l n t y r e , V i c e - P r e s i d e n t - S a l e s , C o m m od o r e , C a n a d a .

" U n l i k e m a n y p r o d u c e r s o ' e d u c a t i o n a l ' s o f tw a r e w h h a v e e n t e r e d t h m a r k e t f o l l o w i n gt h e s o f t e n i n g o t h g a m e m a r k e t , A E w a f o u n d e d b y e x p e r i e n c e d e d u c a t i o n a l p u l i s h e r s w h s a g e n u i n e n e e d f o e d u c at i o n a l s o f t w a r e t h a t d i r e c t l y r e l a t e d t t h c l a s s r o o m e x p e r i e n c e . A l A E s o f t w a r ep r o d u c t s f o l l o w s t a n d a r d s c h o o l c u r r i c u l u mm a t e r i a l r a t h e r t h a n g a m e f o r m a t a n a r d e s i g n e d t h e l p s t u d e n t i m p r o v e c l a s s r o o mp e r f o r m a n c e , " h s a i d .

C o m m o d o r e i l o o k i n g t i n c r e a s e d g r o w t hf r o m t h i s t y p e o p r o d u c t , a c c o r d i n g t M c l nt y r e . R e c e n t r e s e a r c h b F u t u r e C o m p u t i n gI n c . s h o w s t h a t w h i l e p e r s o n a l c o m p u t e r s o f tw a r e s a l e s w i l l g r o w a a a n n u a l c o p o u n d e d r a t e o f 6 p e r c e n t t h r o u g h 1 9 8 7 ,e d u c a t i o n a l s o f t w a r e w i l l g r o w a a 7 p e r c e n tr a t e d u r i n g t h s a m e p e r i o d a n t h a t t h h o m e e d u c a t i o n a l s o f t w a r e p o r t i o n w i l l b a b o u t 7 p e r c e n t .

A l A E s o f t w a r e i c o m p a t i b l e w i t h t h C o m o d o r e 6 4 I n i t i a l p r o d u c t s i n c l u d e t h E A S Y R E A D E R s e r i e s a n t h M A T C HM A K E R s e r i e s . T h p r o g r a m s a r t e a c h e r -d e s i g n e d a n a r g r a d e - l e v e l o r i e n t e d t h e l pt h c h i l d a l t h w a t h r o u g h s c h o o l . B p a r a l l e l i n g t h e c l a s s r o o m e x p e r i e n c e , t h s o f t w a r e c o n s i s t e n t l y t e a c h e s l e s s o n s t a i l o r e dt t h c h i l d ' s n e e d s . A l p r o g r a m s p r o g r e s s a t h u s e r ' s o w p a c e , a r e e a s y t u s a n r e q u i r e n p r e v i o u s c o m p u t e r e x p e r i e n c e .

E A S Y R E A D E R p r e s e n t s p h o n i c s a n d w o r da n a l y s i s s k i l l s w i t h h i g h r e s o l u t i o n g r a p h i c sa n f u l l - c o l o u r a n i m a t i o n a n m o s t i m p o rt a n t l y , c o r r e l a t e s w i t h s t a n d a r d s c h o o l r e a di n p r o g r a m s .

M A T C H M A K E R r e t a i n s t h f o r m a t s y s t e m o t h s c h o o l v e r s i o n w h i c h , i t h h o m e , a l o w s p a r e n t s t b e c o m e m o r e a c t i v e i t h c h i l d ' s l e a r n i n g p r o c e s s , t h r o u g h t h i n t e r a ct i v e f o r m a t .

D o n a l d R T h o m p s o n , A E V i c e - P r e s i d e n tD i r e c t o r o C o n s u m e r P r o d u c t s D i v i s i o n ,s a i d , " M o r e i m p o r t a n t t h a n f u n b e i n g w r i t t e ni n t o t h p r o g r a m i t h f a c t t h a t s a t i s f a c t i o na n r e w a r d c o m e f r o m s u c c e s s . O u l i n e i p r o g r a m m e d s o t h e c h i l d a c h i e v e s h i g hl e v e l o s u c c e s s . T o m a n y o t h e r e d u c a t i o n a l

p r o g r a m s a r r e a l l y j u s t g a m e s t h a t d n o r e l a t e e n o u g h t c l a s s r o o m w o r k . "

" A E C p r o g r a m s d o c o n t a i n g a m e s , b u o n l ya r e w a r d s f o l e a r n i n g a c h i e v e m e n t , " s a i dT h o m p s o n . F o e x a m p l e , o n c e t h s t u d e n tc o m p l e t e s t h e o b j e c t i v e i M A T C H M A K E R ' Sg e o g r a p h y p r o g r a m , h e o s h e c a n p l a y a e x c i t i n g g a m e , w h i c h h e l p s t e n c o u r a g e a n m o t i v a t e . T h f o c u s i s t r i c t l y o l e a r n i n g .

" A E C s o f t w a r e h a a i m p o r t a n t a d v a n t a g ei t a p p r o a c h h a b e e n s t u d e n t - t e s t e d u n d e ra c t u a l c l a s s r o o m c o n d i t i o n s , s w e k n o w i k e e p s t h c h i l d ' s i n t e r e s t w h i l e i t e a c h e s , " h s a i d . F o m o r e i n f o r m a t i o n , p l e a s e c o n t a c t :

R i c h a r d M c l n t y r eC o m m o d o r e B u s i n e s s M a c h i n e s , L t d .3 3 7 0 P h a r m a c y A v e .A g i n c o u r t , O M 1 W 2 K 4 4 1 6 4 9 9 - 4 2 9 2

L A M PL A M P ( L i t e r a t u r e A n a l y s i s o M i c r o c o m p u t e rP u b l i c a t i o n s ) h a m a d e a v a i l a b l e f o s a l e t h A n n u a l C u m u l a t i v e E d i t i o n f o 1 9 8 3 , m a r ki n g t h e f i r s t c o m p l e t e y e a r o p u b l i c a t i o n f o t h i s i n t e r n a t i o n a l i n d e x . b i - m o n t h l y j o u rn a l , L A M P p r e s e n t l y i n d e x e s 1 3 p e r i o d i c a l sw h i c h d e a l e x c l u s i v e l y w i t h t h e f i e l d o m c r o c o m p u t e r s . T h i s i m p o r t a n t p u b l i c a t i o n i t h m o s t c o m p r e h e n s i v e , s i n g l e s o u r c e f o i n f o r m a t i o n o m i c r o c o m p u t e r s a t h e y r l a t e t o b u s i n e s s , e d u c a t i o n , t h e a r t s , s o c i a la n p h y s i c a l s c i e n c e s .

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

T h 1 9 8 3 y e a r - e n d i s s u e i a v a i l a b l e t n o n -s u b s c r i b e r s a $ 6 9 . 9 5 . O s u b s c r i b e t L A M Pf o 1 9 8 4 a t h e r e g u l a r a n n u a l r a t e o $ 8 9 . 9 5a n t a k e a d v a n t a g e o t h s p e c i a l o f f e r o f$ 3 9 . 9 5 f o t h 1 9 8 3 c u m u l a t i v e e d i t i o n . F o b r o c h u r e d e s c r i b i n g L A M P a n f u r t h e r i n f o rm a t i o n o t h h a r d - c o v e r o m i c r o f i c h e e d t i o n s c a l l t o l l - f r e e 8 0 5 2 6 - 9 0 4 2 o w r i t e :

L A M P / S o f t I m a g e sB r o c h u r e D e p a r t m e n t2 0 0 R o u t e 1 M a h w a h , N . J . 0 7 4 3 0

P o r t h o l eP o r t h o l e a n n o u n c e s t h m o d e r n c o m p u t e rm a g a z i n e p u b l i s h e d e n t i r e l y o d i s k f o t h C o m m o d o r e 6 a n V 1 C - 2 0 . T h f i r s t i s s u e i s c h e d u l e d f o J a n u a r y 1 9 8 5 ( o m a y b e D ec e m b e r 8 4 a n w i l l b i s s u e d s i i t e m sy e a r . P o r t h o l e w i l l h a v e a l t h f e a t u r e s y o h a v e c o m e t e x p e c t f r o m c o m p l e t e c o m -

V o l u m e 5 I s s u e 0

Page 80: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 80/84

p u t e r m a g a z i n e . F e a t u r e A r t i c l e s , G a m e s , R v i e w s , E d u c a t i o n , P r o g r a m m i n g T u t o r i a l s ,L e t t e r s a n d , y e s , e v e n a d v e r t i s i n g a n n e p r o d u c t a n n o u n c e m e n t s . B u o n t h i n g y o w i l l n e v e r h a v e t d a g a i n i t k e i p r o g r a m . E a c h i s s u e w i l l c o n t a i n r e a d y t r u p r o g r a m s s e l e c t e d f o w i d e r a n g e o u s e ri n t e r e s t s . T h e s e w i l l b p r o g r a m s t h a t y o w i l l w a n t t b a c k u p o n y o u r o w d i s k s a n P o r t h o l e w i l l l e y o u d o i t

P o r t h o l e i n o y e a v a i l a b l e a y o u r l o c a ln e w s s t a n d . A l s a l e s a r b m a i l . T h s i n g l ei s s u e p r i c e i $ 1 0 . 0 0 p o s t p a i d . S e n d y o u ro r d e r s t o

P o r t h o l eP . O . B o 1 3 K e r b y , O 9 7 5 3 1

W A N T E D P r o g r a m m e r s , A u t h o r s , C o n t r i bu t o r s , a n m o s t o a l l , R e a d e r s !

S P E C I A L O F F E R S e n d f o r m a t t e d 1 5 4 1d i s k w i t h r e t u r n p o s t a g e t P o r t h o l e . B s w i f tr e t u r n m a i l P o r t h o l e w i l l r e t u r n t h e d i s kl o a d e d w i t h i n f o r m a t i o n o h o t c o n t r i b u t et P o r t h o l e . B u y o a l r e a d y k n o w ! I t ' s t h i se a s y . W r i t e B A S I C " p r o g r a m " l i k e t h i s :

m n a m e i j a n e , p o r t h o l e s o u n d st e r r i f i c , t h i s i s n ' t t h e b e s t w o r dp r o c e s s o r b u i w o r k s ! d o y o uh a v e s o m e t h i n g b e t t e r ? r e t u r n b d i s k t 5 5 p a r o a d , l i n c o l n , n

D o n ' t g o o f u p S e n d r e t u r n p o s t a g e o P o r th o l e g e t s f r e e d i s k . S o r r y , l e t t e r s w i t h o u td i s k m u s t w a i t o t h p o o p d e c k f o t h e g a l l e yt e m p t y .

E X T R A S P E C I A L O F F E R S e n d a d i s k a n $ 5 . 0 0 a n s h i p o u t i s t e e r a g e . E n j o y t h v i e w e v e r y o n e e l s e w i l l s e t h r u t h P o r t h o l ew i n d o w a h a l f t h p r i c e . T h i s o f f e r m a n o b r e p e a t e d .

D o n ' t m i s s t h i s a d v e n t u r e i c o m p u t i n g . L e t ' sd i r i g h t t h r o w a w a y t h o s e p e n c i l s a n p a p e r . S t a r t y o u r d r i v e s a n e n j o y t h n e s p i r i t o m a g n e t i c p u b l i s h i n g ! F o m o r e d t a i l s , c o n t a c t :

R a y m o n d Q u i r i n gP o r t h o l e D i s kP . O . B o 1 3 K e r b y , O 9 7 5 3 15 0 5 9 2 - 4 5 9 4

N e I n c o m e T a x P r o g r a mF o C o m m o d o r e P L U S / 4T a x a i d S o f t w a r e , I n c . h a s r e l e a s e d n e e d i t i o n o t h " T A X A I D " i n c o m e t a p r e p a r at i o n p r o g r a m f o t h C o m m o d o r e P L U S / 4c o m p u t e r . T A X A I D p r o g r a m s h a v e b e e na v a i l a b l e f o o t h e r C o m m o d o r e c o m p u t e r ss i n c e 1 9 8 1 . T h P L U S / 4 e d i t i o n w a w r i t t e nb t h e x p e r i e n c e d t a a c c o u n t a n t s a n i d e s i g n e d f o h o m e u s e .

T A X A I D i e a s y t u s e w i t h a d e t a i l e d m a n u a lt h a t l e a d s t h e u s e r s t e p b s t e p t h r o u g h t h d a t a e n t r y . T h p r o g r a m i m e n u d r i v e n w i t ha d v a n c e d e d i t i n g f e a t u r e s t h a t a l l o w t h e u s e rt m a k e c h a n g e s a n r e v i s i o n s a a n t i m ed u r i n g t h d a t a e n t r y p r o c e s s . D a t a f i l e s c a b s a v e d a n r e l o a d e d a a n s t a g e o t h p r o g r a m . C a l c u l a t i o n s a r a u t o m a t i c a n a l t a t a b l e s , i n c l u d i n g i n c o m e a v e r a g i n g a r b u i l t i n T A X A I D w i l l p r e p a r e a n I R f o r m1 0 4 0 . T h p r o g r a m f e a t u r e s c o m p u t e r g e n e ra t e d f o r m s f o S c h e d u l e A B C G W , a n dF o r m 2 4 4 1 a w e l l a c o m p l e t e l i s t i n g o p a g e s o t h 1 0 4 0 F o r m .

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

T A X A I D i a v a i l a b l e o d i s k o t a p e f o t h C o m m o d o r e P L U S / 4 a a c o s t o $ 2 9 . 9 5 . F o m o r e i n f o r m a t i o n , c o n t a c t :

T a x a i d S o f t w a r e , I n c .6 0 6 S e c o n d A v e . S . W .T w H a r b o r s , M 5 5 6 1 62 1 7 3 4 - 5 0 1 2 2 1 8 3 4 - 3 6 0 0

I N F O Q U I C K B u l l e t i n B o a r df o t h C o m m o d o r e 6

E x p a n d a b i l i t y : C a r u o a s i n g l e d i s k d r i v eo r a s m a n y a s d u a l d r i v e s . U t 1 s u b -b o a r d s f o m e s s a g e s ( i n c l u d i n g p r i v i l e g e da r e a s ) . F i l e s l i b r a r y c a b e x p a n d e d t a u n l i m i t e d n u m b e r o s u b - d i r e c t o r i e s( " d o w n l o a d i n g " ) . U t 4 0 u s e r s , 8 0 m e s a g e s .

S p e e d : 1 0 0 % m a c h i n e l a n g u a g e . E n t i r e p r g r a m a n a l m e n u s a r l o a d e d o n c e n t i m e c o n s u m i n g " c h a i n i n g " . F u l l t y p e - a h e a d .M e n u s c u o f i n s t a n t l y w h e n c o m m a n d s a r t y p e d . A b b r e v i a t e d m e n u o p t i o n .

F l e x i b i l i t y : R u n s o a l C o m m o d o r e a n M S d i s k d r i v e s . R u n s o a l t h m o s t p o p u l a rm o d e m s . C a b r u s o u s e r s c r e a t e t h e i ro w f u l l y - v a l i d a t e d a c c o u n t s o w i t h u s e r -c r e a t e d a c c o u n t s r e q u i r i n g S Y S O P v a l i d a t i o no w i t h a l n e u n v a l i d a t e d u s e r s o a s i n g l e" g e n e r i c " a c c o u n t . C a u s s t a n d a r d A S C I I o C o m m o d o r e A S C I I . M e s s a g e s a r a u t o m a t ic a l l y r e f o r m a t t e d f o t h e t e r m i n a l o t h u s e rr e a d i n g t h e m . C h a n g e a b l e S Y S O P n a m e .S Y S O P - s e l e c t a b l e t i m e l i m i t s o i n a c t i v i t ya n o t h t o t a l l e n g t h o c a l l s . S Y S O P -d e f i n a b l e w e l c o m e a n d w a r n i n g m e s s a g e s .U p l o a d s o d o w n l o a d s c a n b e t e m p o r a r i l yd i s a b l e d . O p t i o n a l r e m o t e S Y S O P u s a g ec a n b e e a s i l y e n a b l e d a n d i s a b l e d . 3 0 0 /1 2 0 0 b a u d o p e r a t i o n . 7 0 - p l u s p a g e d e t a i l e dm a n u a l . F i l e t r a n s f e r s e i t h e r a s t r a i g h t t e x to u s i n g t h e i n d u s t r y - s t a n d a r d X M O D E Mp r o t o c o l w i t h e r r o r c h e c k i n g . R e a d / s c a nm e s s a g e s s i n c e l a s t c a l l , f o r w a r d s , r e v e r s e , b s e n d e r , b r e c i p i e n t ; o p t i o n a l m a r k d u r i n gs c a n f o l a t e r r e a d . F i n d - a n d - r e p l a c e t e x te d i t o r f o m e s s a g e e n t e r i n g S Y S O P d e s i gn a t e d " b u l l e t i n s " s h o w n t e a c h u s e r o t o

s u b s e t o t h u s e r s . C o n v e n i e n t r e p l y - d e l e t eo p t i o n a f t e r r e a d i n g e a c h m e s s a g e . S Y S O Pc a c h a n g e p u b l i c m e s s a g e s t p r i v a t e , f o w a r d c o p y o m e s s a g e ( o p t i o n a l l y e d i t i n gi f i r s t ) , r e - a s s i g n a m e s s a g e t d i f f e r e n ts u b - b o a r d . R e a l - t i m e l o o l o g i n s , l o g o f f s ,a n f i l e t r a n s f e r s . M u l t i - l i n e d e s c r i p t i o n s o e a c h f i l e a n s u b - d i r e c t o r y . " P r i v i l e g e d "m e s s a g e s a n f i l e s c o m p l e t e l y i n v i s i b l e . O t i o n a l t r a n s c r i p t t o p r i n t e r . S c a n u s e r l i s t b u s e r s ' i n t e r e s t s , l o c a t i o n . S Y S O P / u s e r c h a ti n i t i a t e d b e i t h e r S Y S O P o b u s e r .

I N F O Q U I C K Y o u r o n c e a n d f u t u r e B B S .S u g g e s t e d r e t a i l $ 1 3 9 ( U . S . ) . A s a b o u t S S O r e f e r r a l r e b a t e . D e a l e r i n q u i r i e s w e c o m e .

F o m o r e I N F O Q U I C K - I y c a l l 6 1 5 4 7 - 0 3 4 0o r c o n t a c t t h e s e o p e r a t i o n a l I N F O Q U I C K b u l e t i n b o a r d s :

6 1 8 2 3 - 6 1 4 0 M A S S P E T I 2 0 3 9 7 - 3 3 8 1 M i c r o T e c h n i c S o l u t i o n s2 0 4 8 1 - 9 9 7 4 S A I L S o f t w a r e

T h S M A R T 6 4 T e r m i n a l + T h S M A R T 6 4 T e r m i n a l + i a g r e a t l ye n h a n c e d v e r s i o n o f t h i s v e r s a t i l e t e r m i n a lc o m m u n i c a t i o n s p a c k a g e f o t h C o m m od o r e 6 4 w h i c h i a l r e a d y i h o m e e d u c a t i o na n b u s i n e s s e n v i r o n m e n t s . N e f e a t u r e si n c l u d e V T 5 2 / V T 1 0 0 e m u l a t i o n w h e n a p p r op r i a t e l y c o n f i g u r e d w i t h 8 c o l u m n h a r dw a r e , X M O D E M f i l e p r o t o c o l f o d i r e c t - d i s kt r a n s f e r s o p r o g r a m s a n t e x t , H E L P s c r e e n sf o i n s t a n t r e f e r e n c e , 3 0 0 / 1 2 0 0 b a u d f u l l -s p e e d d o w n l o a d i n g , d i r e c t p r i n t i n g o t h 2 8 m e m o r y b u f f e r , a n a e x p a n d e d s t a t u sl i n e . C o n v e n i e n c e i t e m s s u c h a s o f t w a r ea l p h a b e t i c s h i f t , l i n e f e e d t o g g l e , w o r d - w r a pc o n t r o l , t i m e - o f - d a y c l o c k a n a l a r m c l o c k ,k e y - r e p e a t t o g g l e , s c r e e n p r i n t , s i n g l e k e s t r o k e I a n p a s s w o r d t r a n s m i s s i o n , c o l o ra d j u s t m e n t , a n e c h o m o d e p r o v i d e t h u s e rw i t h a c o m f o r t a b l e o p e r a t i n g e n v i r o n m e n t .b u i l t - i n d i s k c o m m a n d p r o c e s s o r l e t s t h u s e r m a n a g e d i s k f i l e s d i r e c t l y . T h P e t A s c i i /A S C I I t r a n s l a t i o n t a b l e s a r a d j u s t a b l e b t h u s e r , a n c a b d e a c t i v a t e d b t o g g l e c o t r o l . F o u r r e d e f i n a b l e f u n c t i o n k e y s a r a v a i la b l e f o s t o r i n g m u l t i - l i n e t e s t r i n g s , u t 8 c h a r a c t e r s e a c h . T e x t u p l o a d s d i r e c t l y f r o md i s k a r e a c c o m m o d a t e d i e i t h e r c o n t i n u o u so p r o m p t e d m o d e . A u t o m a t i c a n s w e r b a c k t E N i p r o v i d e d , a s w e l l a B R E A K f u n c t i o nf o c o m m u n i c a t i n g w i t h m a i n f r a m e s . T h S M A R T 6 4 T e r m i n a l s u p p o r t s a l d i r e c t -c o n n e c t m o d e m s a n d m o s t R S 2 3 2 m o d e m s ,i n c l u d i n g H a y e s .

s e p a r a t e v e r s i o n o t h p r o d u c t s u p p o r t st h C O M v o i c e s p e e c h s y n t h e s i z e r t p r o v i d et h u s e r w i t h T A L K I N G t e r m i n a l . T h S m a r t6 T a l k i n g T e r m i n a l o f f e r s a l o t h f e a t u r e so t h 4 c o l u m n m o d e i t h s t a n d a r d p a c ka g e , w i t h t h e e x c e p t i o n o w o r d - w r a p c o t r o l , w h i c h i r e p l a c e d w i t h t w n e o n e sm o r e a p p r o p r i a t e t a a u d i o - b a s e d p r o d u c t :t o g g l e v o i c i n g a n p h r a s i n g o w o r d s o l e t -

7 V o l u m e 5 I s s u e 0

Page 81: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 81/84

h v o i c i n g t o g g l e a l l o w s s i l e n t , h i g hd o w n l o a d i n g o e x t e n s i v e t e f o p l a y

o f f l i n e , o r t h e r e a l - t i m e v o i c i n g o d a t ar e c e i v e d b t h m o d e m . T h p h r a s i n g

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

i n g s s u c h a s s e c u r i t i e s s t o c k - t r a d i n g. U s e r s c a m a k e b a c k - u p c o p i e s .

r e t a i l f o b o t h v e r s i o n s i $ 3 9 . 9 5A v a i l a b i l i t y i n f o r m a t i o n f r o m :

S o l u t i o n s I n c .B o x 2 9 4 0H a v e n , C O N N 0 6 5 1 5

3 8 9 - 8 3 8 3

T F A C T O R YS - 8 0 1

E n h a n c e m e n t S y s t e m

F A C T O R Y w i l l r e a d a n s t a n d a r d1 5 4 1 a s c i i s e q u e n t i a l f i l e , a u t o

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

F A C T O R Y w i l l r e a d t e x t f i l e s p r b m a n y o t h p o p u l a r C o m m o d o r e

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

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

l i n e s p a c i n g , h e a d e r s , f o o t e r s , p a g ei n g , j u s t i f i c a t i o n , e t c .

T F A C T O R Y i n c l u d e s a e a s y - t o -G e n e r a t o r t c r e a t e o r e d i t y o u r o w

F o n t s m a b a s l a r g e a 9 x p i x e l s ,a b p r i n t e d i n o r m a l o d o u b l ef o r m a t s .

F A C T O R Y h a t h a b i l i t y t m i f i f t e e n d i f f e r e n t f o n t s w i t h i n a s i n g l e

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

d i f f e r e n t a r e a s o f t e x t w i t h i n t h eU s y o u r w o r d p r o c e s s o r i c o

w i t h t h F O N T F A C T O R Y t t u r ni n t o c o m p l e t e t y p e s e t t i n g s y s t e m !

F A C T O R Y i u s e r f r i e n d l y a n y m e n u d r i v e n . E i g h t p r e f o r m a t t e d

a r p r o v i d e d i n c l u d i n g o n w i t h T r u eC a s e D e s c e n d e r s , w h e n y o p u r c h a s e

F A C T O R Y . A d d i t i o n a l F o n t D i s k sp u r c h a s e d s e p a r a t e l y .

D i s t . I n c .R o u t e 2 3N 0 7 4 0 5

8 3 8 - 9 0 2 7

( C a l l A c c o u n t i n g M a n a g e r )C a l l P r o c e s s i n g S o f t w a r e

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

u t e r s , a n n o u n c e s t h r e l e a s e o n e s o f t w a r e f o m o n i t o r i n g m u l t ip h o n e u s a g e .

C A M - 6 4 w a d e s i g n e d f o c o m p a n i e s w i t hn e t e l e p h o n e s y s t e m s , o E T s y s t e m s . T h p r o g r a m o r g a n i z e s S M D R d a t a o u t p u t f r o mt h p h o n e s y s t e m s w i t c h i n g c o m p u t e r . C A M -6 u t i l i z e s t h f a m o u s c o s t e f f i c i e n t C o m m od o r e 6 4 C o m p u t e r , d i s k d r i v e a n p r i n t e r .T h C A M - 6 4 S y s t e m i M e n u d r i v e n f r o m a nA u t o L o a d M o d u l e , p l u g g e d i n t o t h e c a r t r i d g es l o t o f t h C o m m o d o r e 6 4 I w i l l f u n c t i o n o a n p h o n e s y s t e m w h i c h u t i l i z e s S t a t i o n M e s a g e D e t a i l R e c o r d i n g ( S M D R ) , s u c h a M i t e l ,A T & T a n o t h e r s .

T h s y s t e m h a n d l e s u t 2 5 0 0 p h o n e c a l l sp e d i s k , u s i n g s i n g l e C o m m o d o r e 1 5 4 1D i s k D r i v e . I w i l l s o r t c a l l s i n t o s e v e r a l c a t eg o r i e s a n s u b - c a t e g o r i e s , a n w i l l s e n d f o m a t t e d p r i n t o u t s t c o m p u t e r m o n i t o r , T V o p r i n t e r . E a c h f o r m a t m a b s e l e c t e d f r o m

M e n u .

C A M - 6 4 w i l l s o r t o u t g o i n g c a l l i n f o r m a t i o nb y

( 1 S t a t i o n s / E x t e n s i o n s ( h a n d l e s u t 1 0 s t a t i o n s )

( 2 A r e a C o d e s( 3 C o m m o n C a r r i e r s ( u t 4 s u c h a M i c r o -

t e l , S p r i n t , e t c . )

F o f u r t h e r i n f o r m a t i o n , c o n t a c t :

I n p u t S y s t e m s , I n c .1 5 6 0 0 P a l m e t t o L a k e D r i v eM i a m i , F L 3 3 1 5 73 0 2 5 3 - 8 1 0 0

E x p a n d a b l e 3 0 0 / 1 2 0 0 B a u d P h o n eM o d e m W i t h C l o c k / C a l e n d a r

P r o M o d e m 1 2 0 0 f r o m P r o m e t h e u s P r o d u c t si H a y e s c o m p a t i b l e B e l l 2 1 2 A , 3 0 a n 1 2 0 0 b a u d p h o n e m o d e m w i t h b u i l t - i nc l o c k / c a l e n d a r . T h u n i q u e d e s i g n p r o v i d e st h a b i l i t y t o a d d a n o p t i o n a l b u f f e r m e m o r yw i t h u t 6 4 o s t o r a g e .

S t a n d a r d f e a t u r e s i n c l u d e A u t o - A n s w e r a n A u t o - D i a l , P r o g r a m m a b l e I n t e l l i g e n t D i a li n g , T o n e a n P u l s e D i a l i n g , B u i l t - i n S p e a k e rw i t h V o l u m e C o n t r o l , s e p a r a t e p h o n e a n d a t a j a c k s t p e r m i t s w i t c h i n g b e t w e e n v o i c ea n d a t a , a n s i m p l e y e p o w e r f u l d i a g n o st i c s . S u g g e s t e d l i s t p r i c e i $ 4 9 5 ( U . S . ) .

T h P r o M o d e m 1 2 0 0 c a n b e p u r c h a s e d w i t ht h e o p t i o n a l b u f f e r i n s t a l l e d o i c a n b ea d d e d l a t e r . T h b u f f e r c a r d c o m e s w i t h 2 o b a t t e r y b a c k e d - u p C M O S m e m o r y t p r o t e c tt i m e , d a t e , o p e r a t i n g p a r a m e t e r , a n o t h e rd a t a s t o r e d i m e m o r y f r o m l o s s d u r i n gp o w e r d o w n . T h b u f f e r c a r d l i s t s f o $ 9 ( U . S . ) . A d d i t i o n a l m e m o r y , i i n c r e m e n t s o 1 6 i a v a i l a b l e u t m a x i m u m o 6 4 K .

M e m o r y i P r o M o d e m 1 2 0 0 i d y n a m i c a l l ya l l o c a t e d b e t w e e n " D i r e c t o r y " a n " B u f f e r " .T h u s e r c a s t o r e t e l e p h o n e n u m b e r s , a c e s s c o d e s , a n l o o m e s s a g e s i e a c hd i r e c t o r y e n t r y . U t 1 2 r e f e r e n c e c h a r a c t e r sc a n b e u s e d t " c a l l u p e n t r i e s i t h e d i r e c

t o r y a n i n i t i a t e u n a t t e n d e d d i a l i n g .

T h b u f f e r i u s e d t s t o r e m e s s a g e s i t h m o d e m f o t r a n s m i s s i o n a p r e s e t t i m e , p e t h i n t e r n a l c l o c k / c a l e n d a r , t s p e c i f i e dg r o u p o p h o n e n u m b e r s f r o m t h d i r e c t o r y .I t h a u t o - a n s w e r m o d e , i n c o m i n g m e s a g e s a r e a u t o m a t i c a l l y s t o r e d a n t h t i m er e c o r d e d . O p e r a t i o n o P r o M o d e m c a n b eu n a t t e n d e d , w i t h o w i t h o u t t h e h o s t c o p u t e r b e i n g o p e r a t i o n a l .

p l u g - i n t w e l v e c h a r a c t e r a l p h a n u m e r i c d i p l a y i a v a i l a b l e f o $ 9 ( U . S . ) l i s t p r i c e . I s h o w s o p e r a t i n g s t a t u s , d i a g n o s t i c m e s s a g e s ,p h o n e n u m b e r s , a n t i m e / d a t e i n f o r m a t i o n .

D e l i v e r y o t h P r o M o d e m 1 2 0 0 i w e e k sf r o m t h f a c t o r y o f r o m s t o c k v i P r o m et h e u s ' d e a l e r s . F o a d d i t i o n a l i n f o r m a t i o nc o n t a c t :

R o b e r t C h r i s t i a n s e nP r o m e t h e u s P r o d u c t s , I n c .4 5 2 7 7 F r e m o n t B l v d .F r e m o n t , C 9 4 5 3 84 1 4 9 0 - 2 3 7 0

P r i n t e r R i b b o n s f o C o m m o d o r e 1 5 2 6 / 4 0 2 3 A n O t h e r s

A s p e n R i b b o n s , I n c . , o L a f a y e t t e , C o l o r a d o ,i p l e a s e d t a n n o u n c e t h A s p e n R i b b o n sb r a n d r e p l a c e m e n t f o t h T a l l y /M a n n e s m a n n S p i r i t 8 ( S P 8 0 ) m u l t i s t r i k e r i b o n . O n h u n d r e d p e r c e n t c o m p a t i b l e t t h r i b b o n f r o m t h o r i g i n a l e q u i p m e n t m a n u f a ct u r e r ( O E M ) , i t s p e c i f i c a t i o n s a r 1 / 2 " 1 0 f t . , w i t h m u l t i s t r i k e f i l m . U s t h i s r i b b o n o t h e f o l l o w i n g p r i n t e r s :

A c c o r d D C 8 0B l u e C h i p E n t e r p r i s e s M l 2 0 / 1 0B M I n t e r n a t i o n a l B X - 8 0C a l - A b c o L e g e n d 8 C o m m o d o r e 1 5 2 6C o m m o d o r e 4 0 2 3F o r m u l a S P 8 0I T X t r aL e g e n d 8 0 0L e i n Y i C o m p u t e r C o r p . Y L - 8 0 F P TM i t s u b i s h i S u p e r V C P 8 0M u l t i - T e c h C o m p u m a t e C P 8 0 0 T y p eO k i d a t a 1 6 0 0 P r i n t e rO r t r o n a A T - 8 0S u m i n o n 8 4 T a l l y / M a n n e s m a n n S p i r i t 8 ( S P 8 0 )T a l l y S p i r i t M T 8 0 M i c r o p r i n t e rY o c o b u s h i C o m p u t e r U n i o n C F P - 8 0

P r i c e s f o t h i s r i b b o n r a n g e f r o m $ 6 . 0 0 t $ 3 . 3 4 ( U . S . ) d e p e n d i n g o n t h q u a n t i t y o d e r e d . C o l o r r i b b o n s a r n o a v a i l a b l e a t h i st i m e . F o m o r e i n f o r m a t i o n , p l e a s e c o n t a c t :

A s p e n R i b b o n s , I n c .5 5 A s p e n R i d g e D r i v eL a f a y e t t e , C 8 0 0 2 63 0 6 6 6 - 5 7 5 0 o 8 0 5 2 5 - 9 9 6 6

7 V o l u m e 5 I s s u e 0

Page 82: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 82/84

P A Y S$ 4

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

W e ' r e a l s o l o o k i n g f o p r o f e s s i o n a l l y

d r a w n c a r t o o n s !

S e n d a l m a t e r i a l t o

T h E d i t o rT h T r a n s a c t o r5 0 S t e e l e s A v e n u e

M i l t o n , O n t a r i oL 9 3 P

I s s u e *

V o l u m e 5 E d i t o r i a l S c h e d u l eT h e m e C o p y D u e P r i n t e d R e l e a s e D a t e

G r a p h i c s a n S o u n dT h T r a n s i t i o n t M a c h i n e C o d eS o f t w a r e P r o t e c t i o n P i r a c yB u s i n e s s a n E d u c a t i o nH a r d w a r e a n d P e r i p h e r a l sP r o g r a m m i n g A i d s U t i l i t i e s

F e b lA p J u A u g lO c t lD e

M a 1 M a 2 J u l 2 3S e p l 7N o v l 9J a 1

V o l u m e E d i t o r i a l S c h e d u l eC o m m u n i c a t i o n s N e t w o r k i n g F e M a 2 L a n g u a g e sI m p l e m e n t i n g T h S c i e n c e sH a r d w a r e S o f t w a r e I n t e r f a c i n g

R e a l L i f e A p p l i c a t i o n s

A p J u A u g lO c t l

M a 2 J u l l 8S e p 2 1N o v l 9

A p r i l

J u n eA u g u s tO c t o b e rD e c e m b e rF e b r u a r y 1 / 8 5

A p r i l 1 / 8 5J u n eA u g u s tO c t o b e rD e c e m b e r

A d v e r t i s e r s a n A u t h o r s s h o u l d h a v e m a t e r i a l s u b m i t t e d n l a t e r t h a n t h ' C o p y D u e ' d a t e t b i n c l u d e d

w i t h t h e r e s p e c t i v e i s s u e .

C O M A LU S E R S

( 1 D I S K b a s e d C O M A L v e r s i o n 0 . 1 4C O M A L s t a r t e r k i t — c o m m o d o r e 6 4 S y s t e m D i s k , T u t o r i a lD i s k ( i n t e r a c t i v e b o o k ) , A u t o R u n D e m o D i s k , R e f e r e n c eC a r d a n C O M A L F R O M T b o o k .S 2 9 . 9 5 p l u s $ h a n d l i n g

( 2 p r o f e s s i o n a l c o m a l v e r s i o n 2 . F u l l 6 4 C o m m o d o r e 6 C a r t r i d g eT w i c e a P o w e r f u l , T w i c e a s F a s tS 9 9 . 9 5 p l u s $ h a n d l i n g ( n m a n u a l o d i s k s )D e l u x e C a r t r i d g e P a c k a g e i n c l u d e s :c o m a l H A N D B O O K 2 n E d i t i o n , G r a p h i c s a n S o u n dB o o k , D e m o D i s k s a n t h c a r t r i d g e ( s e l l s f o o v e r$ 2 0 0 i E u r o p e ) . T h i s i w h a t e v e r y o n e i t a l k i n g a b o u t .$ 1 2 8 . 9 0 p l u s $ h a n d l i n g ( U S A C a n a d a o n l y )

C A P T A I N C O M A L R e c o m m e n d s :T h C O M A L S T A R T E R k i i i d e a l f o r a h o m e p r o g r a m m e r . I h a s p r i t e a n g r a p h i c s c o n t r o l ( L O C O c o m p a t i b l e ) . r e a lb a r g a i n — $ 2 9 . 9 5 f o f u l l d i s k s a n u s e r m a n u a l .S e r i o u s p r o g r a m m e r s w a n t t h D e l u x e C a r t r i d g e P a c k a g e .F o $ 1 2 8 . 9 0 t h e y g e t h b e s t l a n g u a g e o a n b i c o m p u t e r ( t h e s u p p o r t m a t e r i a l s a r e s s e n t i a l d u t t h i m m e n s e p o w e r o P r o f e s s i o n a l C O M A L ) .O R D E R N O W :c a l l T O L L - F R E E : 1 - 8 0 0 - 3 5 6 - 5 3 2 4 e x 1 3 0 7 V I S A o r M a s t e r C a r dO R D E R S o n l y . Q u e s t i o n s a n i n f o r m a t i o n m u s t c a l l o u i n f o L i n e : 6 0 8 - 2 2 2 - 4 4 3 2 . A l o r d e r s p r e p a i d o n l y - n o C O S e n d c h e c k o m o n e y o r d e r i U D o l l a r s t o

C O M A L U S E R S G R O U P , U . S . A . , L I M I T E D5 5 0 1 G r o v e l a n d T e n , M a d i s o n , w 5 3 7 1 6

T R A D E M A R K S : c o m m o d o r e 6 o C o m m o d o r e E l e c t r o n i c s L t d - C a p t a i n C O M A L o c o m a l u s e r s C r o u p , U . S . A . , L t e s t i m a t e d

C O M M O D O R E O W N E R SJ o i n t h e w o r l d ' s l a r g e s t , a c t i v e C o m m o d o r eO w n e r s A s s o c i a t i o n .

A c c e s s t t h o u s a n d s o p u b l i c d o m a i n p r o g r a m so t a p e a n d i s k f o y o u r C o m m o d o r e 6 4 V I 2 a n P E T / C B M .M o n t h l y C l u b M a g a z i n eA n n u a l C o n v e n t i o nM e m b e r B u l l e t i n B o a r dL o c a l C h a p t e r M e e t i n g s

S e n d $ 1 . 0 0 f o P r o g r a m I n f o r m a t i o n C a t a l o g u e .( F r e e w i t h m e m b e r s h i p ) .

M e m b e r s h i pF e e s f o 1 M o n t h s

C a n a d a $ 2 C a n .U . S . A . $ 2 U . S .O v e r s e a s $ 3 U . S .

T . P . U . G . I n c .D e p a r t m e n t "

1 9 1 2 A A v e n u e R o a d , S u i t eT o r o n t o , O n t a r i o , C a n a d a M 5 4 A

L E U K N O W W H I C H M A C H I N E Y O U S

Page 83: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 83/84

D i s kH a A r r i v e d !

s i m p l y c o d ep o s t a g e p o w e r e d o r d jg r a m f r o m e ^ j s u e « j e n e r g i z e d , a n t r a n s p w i ) 1 s e e mb a s e d i r e c t l y ^ J ^ J y o s a v e t y p i n g ,s l o w c o m p a r e d t t h m ^ . a n t h P r o f ^ t o l S S H

O n l y $ 7 . 9 5 E a c h !D i s k S u b s c r i p t i o nJ u s t $ 4 5 . 0 0 !

S p

Page 84: The Transactor V5 06 1985

8/7/2019 The Transactor V5 06 1985

http://slidepdf.com/reader/full/the-transactor-v5-06-1985 84/84

T h C o m p l e t e C o m m o d o r eI n n e r S p a c e A n t h o l o g y

w i l l l o o k l i k e t h i s :