re-run 1990 08-09-10

31
8/6/2019 Re-Run 1990 08-09-10 http://slidepdf.com/reader/full/re-run-1990-08-09-10 1/31 A u g u s t - S e p t e m b e r - O c t o b e r 1 9 9 0 E d i t i o n " R U N R U P r o g r a m s o D i s k F o t h C - 6 4 a n C - 1 2 8 E x t r a B o n u s P r o g r a m s !

Upload: cubemanpdx

Post on 08-Apr-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 1/31

A u g u s t - S e p t e m b e r - O c t o b e r 1 9 9 0 E d i t i o n" R U NR U P r o g r a m s o D i s k

F o t h C - 6 4 a n C - 1 2 8

E x t r a B o n u s P r o g r a m s !

Page 2: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 2/31

I n t r o d u c t i o nA u g u s t - S e p t e m b e r - O c t o b e r ' 9 R e R U NT H E N T I R E R U E D I T O R I A L S T A F F t a k e s s p e c i a l p r i d e i p r e s e n t i n g t h i s A u g u s t / S e p t e m b e r / O c t o b e r e d i t i o n o R e R U N . W e ' v ea s s e m b l e d m o s t i m p r e s s i v e a n c r e a t i v e l i n e u p o p r o g r a m s , a n t h i s p r o m i s e s t b o n o t h b e s t R e R U N p a c k a g e s o 1 9 9 0 .

W k i c k o f w i t h H o F a I I T o . ? T h i s C - 1 2 8 , 8 0 - C o l u m nm o d e p r o g r a m l e t s y o q u i c k l y f i n d t h e d i s t a n c e b e t w e e n m o s tm a j o r c i t i e s a r o u n d t h w o r l d . B e s t o a l l , w w e r e a b l e t i n c l u d en u m e r o u s c i t i e s o t h i s d i s k - b a s e d v e r s i o n t h a t , d u t s p a c e l i m it a t i o n s , w e r e n o l i s t e d i t h m a g a z i n e .

E x e r c i s e Y o u r M o u s c l e s , C - 6 4 m o u s e - d r i v e r w r i t t e n b v e t e r a np r o g r a m m e r J i B o r d e n , i n e x t o t h l i s t . J i w o r k e d l o n g a n h a r d d e v e l o p i n g t h e b e s t 1 5 3 1 m o u s e d r i v e r w e ' v e s e e n y e f o t h C - 6 4 . d e m o p r o g r a m i a l s o i n c l u d e d t h e l p y o p u t h d r i v e rt u s e .

A f t e r y o u ' v e f i n i s h e d u s i n g t h m o u s e d r i v e r , c h e c k o u P o p - T o p ! .E x c i t i n g j o y s t i c k - c o n t r o l l e d a c t i o n f r o m g a m e p r o g r a m m e r T o n yB r a n t n e r , t h o b j e c t o P o p - T o p ! i t b u r s t b a l l o o n s a t h e y d r i f tb y I t ' s g r e a t f u f o y o u n g s t e r s o f a l a g e s .

H o r s e s h o e s r e s p r e s e n t s o u 1 2 M o d e p r o g r a m f o t h A u g u s t /S e p t e m b e r 1 9 9 0 i s s u e o R U N . T h i s h u m o r o u s t w o - p l a y e r g a m e p i t sf o r m i d a b l e D o l l y a g a i n s t d e a d - r i n g e r G u i 4 0 - C o l u m n m o d eh o r s e s h o e s h o w d o w n .

T h O c t o b e r i s s u e o R U i w e l l r e p r e s e n t e d w i t h N o t a b l eB a s i c , o n o t h b e s t p r o g r a m s p u b l i s h e d t h i s y e a r . I g i v e s y o u rC - 6 4 e v e r y m u s i c c o m m a n d ( w i t h t h e x c e p t i o n o S o u n d ) t h a t ' sa v a i l a b l e t h r o u g h t h C - 1 2 8 ' s B a s i c 7 . 0 . A e l a b o r a t e m u s i c a l c o p o s i t i o n i a l s o i n c l u d e d t d e m o n s t r a t e t h i n c r e d i b l e m u s i c - m a k i n ga b i l i t y S I B a s i c 6 g i v e s y o u r C o m m o d o r e . I e v e n t a k e s a d v a n t a g eo e x t r a v o i c e s , i c a s e y o u r C - 6 4 h a s e c o n d S I ( S o u n d I n t e r f a c eD e v i c e ) c h i p i n s t a l l e d .

T i m e C l o c k i a l s o f r o m R U N s O c t o b e r i s s u e . W h i l e d i g i t a l c l o c kp r o g r a m s h a v e b e e n a v a i l a b l e s i n c e t h i n t r o d u c t i o n o t h C - 6 4 ,T i m e C l o c k b r e a k s t r a d i t i o n b o f f e r i n g a o n - s c r e e n a n a l o g c l o c k ,c o m p l e t e w i t h a s e c o n d h a n d , f o b o t h 6 a n 1 2 m o d e s . T h 1 2

A U G / S E P T / O C T 1 9 9 0 R e R U N

Page 3: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 3/31

v e r s i o n , i n c i d e n t a l l y , d i s p l a y s t h c l o c k i 4 0 - C o l u m n m o d e o n l y .B e s t o a l l , s i m p l e B a s i c p r o g r a m s w o n ' t d i s r u p t t h o p e r a t i o n o e i t h e r v e r s i o n o T i m e C l o c k !

R U P a i n t R e n a m e r , w r i t t e n b R U K T s l o n g - t i m e c o n t r i b u t o r ,H u g h M c M e n a m i n , c o n v e r t s D o o d l e ! a n K o a l a g r a p h i c s i n t o R U P a i n t - c o m p a t i b l e s c r e e n s . S p r i t e M a g i c i a n , a C - 6 4 s p r i t e a n i m a t o ra n c o n t r o l l i n g p r o g r a m , b r i n g s 1 n e s p r i t e c o m m a n d s t B a s i c2 . t e a s e t h o t h e r w i s e t r o u b l e s o m e t a s k o m o v i n g s p r i t e s a r o u n dt h s c r e e n . A e x c i t i n g d e m o p r o g r a m i a l s o i n c l u d e d .

D e v i c e T o g g l e r , a C - 1 2 8 d e v i c e n u m b e r s w i t c h i n g u t i l i t y , r e p r es e n t s t h O c t o b e r 1 2 M o d e p r o g r a m . U s i t s w i t c h d e v i c e n u b e r s w i t h o u t f i d d l i n g w i t h y o u r d r i v e ' s D I s w i t c h e s .

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

W h e n t h k i d s a r d o n e g a t h e r i n g a p p l e s , M o a n D a w i l la p p r e c i a t e D i s k D i r e c t o r y O r g a n i z e r , a n o t h e r J i B o r d e n o r i g i n a l .T h b e a u t y o t h i s i n g e n i o u s d i s k c a t a l o g i n g p r o g r a m i t h a t m u l t i p l ed i s k s c a b c a t a g o r i z e d , s o r t e d a n t h e n p r i n t e d o s i n g l e s h e e to p a p e r ! A c c o m p l i s h e d t h r o u g h t h C o m p r e s s e d m o d e o y o u rE p s o n - c o m p a t i b l e p r i n t e r , f i v e c o l u m n s o d i r e c t o r y l i s t i n g s a r p r i n t e d a c r o s s e a c h s h e e t . D i s k D i r e c t o r y O r g a n i z e r i f o a n y o n el o o k i n g f o u s e f u l , e a s y - t o - u s e d i s k d i r e c t o r y p r i n t i n g u t i l i t y .

l o o k f o r w a r d t c o m i n g b a c k s o o n w i t h a n o t h e r e x c i t i n g a n p r o d u c t i v e l i n e u p o p r o g r a m s — j u s t i t i m e f o t h h o l i d a y s e a s o n .U n t i l t h e n , h a p p y c o m p u t i n g !

T e c h n i c a l M a n a g e rR U M a g a z i n e

i R E R U N A U G / S E P T / O C T 1 9 9 0

Page 4: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 4/31

D i r e c t o r yP a g e

1

1 1

2

2 2

D o c u m e n t a t i o n

H o F a I I T o . . E x e r c i s e Y o u r M o u s c l e s

P o p - T o p !

H o r s e s h o e sN o t a b l e B a s i c

T i m e C l o c k

R U P a i n t R e n a m e rS p r i t e M a g i c i a n

D e v i c e T o g g l e r

A p p l e H a r v e s tD i s k D i r e c t o r y O r g a n i z e r

D i s k F i l e n a m e♦ M F . N I T 1 S > f t

M F . 1 M T T f i * A T R M T I . F S 1 9 f t

M n i T S F . H F XM n i T S F . M T M n i T S F n F M OP O P T D P H F YP O P T T H P !

♦ H n R S F S H n F Ss i R A S i n H F . ys i R A S i nT W I M K T F H F XT W T 1 S J K T . F .T I M E C L O C K 6 4 . H E X _

* T I M E C L O C K 1 2 8 . H E XT i M F . - m n n K . f i 4

* R U N P A I N T R E N A M E RS P B I T F M A O i n T A NS P B T T F . M T .S P R T T F . F i F M O

* D F V i n F T n n o i . F . un F v i n F . s w i T n . HA P P T F H A R V F . S TO R G A N T 7 F . R

F i l e T y p iB A S I CB A S I CB A S I CB A S I CM B A S I CB A S I CM M B A S I CM B A S I CB A S I C

_ B A S I CB A S I CM M

. B A S I CB A S I CM B A S I CB A S I CM B A S I CB A S I C

C - 1 2 8 m o d e o n l yB o n u s p r o g r a m

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

A U G / S E P T / O C T 1 9 9 0 R e R U N i i

Page 5: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 5/31

H o T L o a dL o a d i n g f r o m M e n u

T g e s t a r t e d , C - 6 4 u s e r s s h o u l d t y p e L O A D " M E N U 6 4 " , 8 a n p r e s s t h er e t u r n k e y . W h e n y o g e t t h e R e a d y p r o m p t , t h m e n u i l o a d e d a n y o s h o u l d t y p e R U t s e l i s t o t h p r o g r a m s o y o u r d i s k . C - 1 2 8 u s e r s n e e do n l y p r e s s t h e s h i f t a n r u n - s t o p k e y s . W h e n a l t h p r o g r a m s a r e d i s p l a y e do t h s c r e e n , y o c a r u t h o n y o s e l e c t b p r e s s i n g s i n g l e k e y .

L o a d i n g f r o m K e y b o a r dI y o d n o t w i s h t u s t h m e n u p r o g r a m , f o l l o w t h e s e i n s t r u c t i o n s .C - 6 4 : T l o a d C - 6 4 p r o g r a m w r i t t e n i n B a s i c , t y p e : L O A D " D I S K

F I L E N A M E " , 8 a n t h e n p r e s s t h e r e t u r n k e y . T h d r i v e w i l l w h i r w h i l e t h es c r e e n p r i n t s L O A D I N G a n t h e n R E A D Y , w i t h f l a s h i n g c u r s o r b e n e a t h .T y p e R U a n p r e s s t h r e t u r n k e y . T h p r o g r a m w i l l t h e n s t a r t r u n n i n g .T l o a d C - 6 4 p r o g r a m w r i t t e n i m a c h i n e l a n g u a g e ( M L ) , t y p e : L O A D" D I S K F I L E N A M F ' , 8 , 1

C - 1 2 8 : A l C - 6 4 p r o g r a m s c a b r u o t h C - 1 2 8 a l o n g a y o u rc o m p u t e r i i C - 6 4 m o d e . A l C - 1 2 8 p r o g r a m s a r c l e a r l y l a b e l e d o t h d i r e c t o r y p a g e . Y o u r C - 1 2 8 m u s t b i C - 1 2 8 m o d e t r u t h e s e p r o g r a m s .T l o a d a C - 1 2 8 m o d e p r o g r a m , p r e s s t h e F k e y , t y p e t h d i s k f i l e n a m ea n t h e n p r e s s t h e r e t u r n k e y . W h e n t h p r o g r a m h a l o a d e d , t y p e R U N .M a k i n g C o p i e s o R e R U N F i l e s

M a n y p r o g r a m s o y o u r R e R U N d i s k h a v e r o u t i n e s t h a t r e q u i r e s e p a r a t ed i s k o n t o w h i c h t h p r o g r a m w r i t e s o s a v e s s u b f i l e s . T u s t h e s e p r o g r a m s ,y o m u s t f i r s t m a k e c o p y o t h o r i g i n a l p r o g r a m o n t o a n o t h e r d i s k t h a th a e n o u g h f r e e s p a c e o i t h o l d t h e s e n e w l y w r i t t e n s u b f i l e s .

I t ' s s i m p l e t m a k e c o p y o f B a s i c p r o g r a m . J u s t l o a d i i n t o y o u rc o m p u t e r a o u t l i n e d a b o v e , a n t h e n s a v e t h e p r o g r a m b a c k o n t o a s e p a r a t ed i s k t h a t h a p l e n t y o f r e e s p a c e f o e x t r a f i l e s .

C o p y i n g a n M p r o g r a m i n o s s i m p l e . Y o c a n n o t s i m p l y l o a d a n s a v e a M p r o g r a m ; y o u ' l l n e e d t u s e a d i s k - b a c k u p u t i l i t y p r o g r a m , s u c ha t h o n e o n y o u r C o m m o d o r e T e s t D e m o d i s k .

r e r u n - a u g / s e p t / o c t 1 9 9 0

Page 6: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 6/31

R U i r i g h t : C - 1 2 8 ( i 8 0 - C o l u m n m o d e )

H o F a I I T o . B L a r r y P a n k e y

T H M A 1 9 8 8 I S S U E o C o m m o d o r e M a g a z i n e c o n t a i n e d t y p e - i nB a s i c p r o g r a m b L e W B r e n n e m a n e n t i t l e d A i M i l e s . W r i t t e nf o t h C - 6 4 , i c a l c u l a t e d g r e a t c i r c l e d i s t a n c e s b e t w e e n c i t i e s a r o u n dt h w o r l d . T h m a n y c i t y n a m e s a n t h e i r l a t i t u d e a n l o n g i t u d e( l a t / l o n ) c o o r d i n a t e s w e r e c o n t a i n e d i D a t a s t a t e m e n t s .

A i r M i l e s 1 2 i a 8 0 - c o l u m n e n h a n c e d v e r s i o n o t h o r i g i n a lt h a t t a k e s a d v a n t a g e o t h C - 1 2 8 ' s F a s t m o d e . I a l s o i n c r e a s e sp r o g r a m s p e e d b s e a r c h i n g t h D a t a s t a t e m e n t s , i n s t e a d o r e a d i n gt h d a t a i n t o m e m o r y a s t r i n g s .

A f t e r l o a d i n g A i M i l e s 1 2 8 , u s i n g M e n u 1 2 8 , t h p r o g r a m f i r s td i s p l a y s m a i n m e n u s c r e e n t h a t i n c l u d e s a b r i e f d e s c r i p t i o n o A i M i l e s 1 2 a n i t f i v e m a i n m e n u o p t i o n s .

S e l e c t i n g o p t i o n 1 D i r e c t o r y o C i t i e s , b r i n g s u s u b m e n u f o v i e w i n g l i s t o a l c i t i e s i t h D a t a s t a t e m e n t s o r j u s t t h o s e b e g i n n i n gw i t h a p a r t i c u l a r l e t t e r . ( U n l i k e t h m a g a z i n e v e r s i o n , w e ' v e i n c l u d e d

l a r g e n u m b e r o c i t i e s i t h D a t a s t a t e m e n t s h e r e . )W h e n y o s e l e c t m a i n m e n u o p t i o n 2 D i s t a n c e B e t w e e n C i t i e s ,

t h p r o g r a m a s k s f o t h n a m e s o t w c i t i e s . I y o t y p e n a m et h a t ' s n o i t h d a t a , o s p e l l i d i f f e r e n t l y t h a n i t h d a t a , t h p r o g r a m d i s p l a y s " N o t i L i s t . C h e c k M e n u O p t i o n 1 m e s s a g e .T h e n , a f t e r t h r e e s e c o n d s , i a s k s f o t h c i t y a g a i n . P r e s s i n g t h ( u p - a r r o w ) k e a a n t i m e r e s t o r e s t h m a i n m e n u .

I t h p r o g r a m f i n d s t h t w c i t i e s , i d i s p l a y s t h e d i s t a n c e b e t w e e nt h e m i s t a t u t e m i l e s , n a u t i c a l m i l e s a n k i l o m e t e r s . T h e n y o c a p r e s s F t r e t u r n t t h m a i n m e n u o F t t y p e i a n o t h e r p a i ro c i t i e s . T r e p e a t c i t y f r o m t h l a s t p a i r , j u s t p r e s s t h e ( l e f t -a r r o w ) k e y , a n t h n a m e a p p e a r s .

O p t i o n 3 E n t e r L a t i t u d e s a n L o n g i t u d e s , l e t s y o t y p e i c o r d i n a t e s f o t w l o c a t i o n s o y o u r o w c h o o s i n g , c a l l e d P o i n ta n P o i n t B F r e t u r n s y o t t h m a i n m e n u ; F l e t s y o c o n t i n u e .

O p t i o n 4 P r i n t H a r d C o p y o C i t i e s , i s i m i l a r t o p t i o n 1 e x c e p tt h a t a l c i t y d a t a i s e n t t y o u r p r i n t e r .

A U G / S E P T / O C T 1 9 9 0 R E R U N

Page 7: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 7/31

O p t i o n 5 Q u i t , p r o v i d e s a e x i t f r o m A i M i l e s 1 2 t o B a s i c .T h p r o g r a m a l l o w s 2 c h a r a c t e r s f o c i t y n a m e . I y o t r y t o

e n t e r m o r e c h a r a c t e r s t h a n a r a l l o w e d a t h i s , o a n y , p r o m p t , t h s c r e e n f l a s h e s r e d , a n t h s p e a k e r b e e p s . A i M i l e s 1 2 a l s o h a t r a p r o u t i n e t c a t c h s y n t a x e r r o r s .

G e o g r a p h y L e s s o nT h l o c a t i o n o a n p o i n t o t h e a r t h c a b i d e n t i f i e d b i t

l a t i t u d e , o d i s t a n c e n o r t h o s o u t h o f t h e q u a t o r , a n i t l o n g i t u d e ,o d i s t a n c e e a s t o w e s t o f G r e e n w i c h , E n g l a n d . L a t i t u d e s r u n f r o m

d e g r e e s a t h e q u a t o r t 9 d e g r e e s , n o r t h o s o u t h , a t h p o l e s .T h n o r t h e r n h e m i s p h e r e l i e s n o r t h o t h e q u a t o r , t h s o u t h e r nh e m i s p h e r e s o u t h o i t L a t i t u d e l i n e s o m a p s , c o n n e c t i n g a l p o i n t so l i k e l a t i t u d e , a r c a l l e d p a r a l l e l s .

L o n g i t u d e l i n e s a r c a l l e d m e r i d i a n s a n r u n o r t h a n s o u t hf r o m p o l e t p o l e . T h e a s t e r n a n w e s t e r n h e m i s p h e r e s a r d e f i n e db t h 1 8 0 t h m e r i d i a n , o t h o p p o s i t e s i d e o t h w o r l d f r o m t h G r e e n w i c h m e r i d i a n . T h I n t e r n a t i o n a l D a t e L i n e r u n s , w i t h a f e d e v i a t i o n s , a l o n g t h 1 8 0 t h m e r i d i a n .

L a t i t u d e a n l o n g i t u d e a r u s u a l l y s t a t e d i d e g r e e s , m i n u t e s( V 6 0 o a d e g r e e ) a n d , s o m e t i m e s , s e c o n d s ( V 6 0 o f m i n u t e ) . A i M i l e s1 2 d o e s n ' t u s s e c o n d s , s i n c e o n s e c o n d l a t i t u d e r e p r e s e n t s o n l ya b o u t 1 0 f e e t .A d d i n g D a t a

T h D a t a s t a t e m e n t s a r e g r o u p e d a c c o r d i n g t f i r s t l e t t e r o c i t yn a m e , t h o s e n a m e s b e g i n n i n g w i t h i l i n e s 1 0 0 0 - 1 0 9 0 , t h o s eb e g i n n i n g w i t h i l i n e s 2 0 0 0 - 2 1 1 0 , a n s o o n . I y o e n t e ra d d i t i o n a l c i t i e s o y o u r o w c h o o s i n g , b s u r e t f o l l o w t h i s s c h e m e ,a n d o n ' t r e n u m b e r t h p r o g r a m . T h d a t a s e a r c h m e t h o d r e l i e so c i t i e s b e i n g s e p a r a t e d i t h i s f a s h i o n . T h l i n eD A T A { U P A R R O W } ,m u s t a l w a y s b t h l a s t l i n e i a n a l p h a b e t i c a l g r o u p . H o w e v e r ,y o c a c h a n g e t h a t l i n e ' s n u m b e r — f o r e x a m p l e , i t h i s l i s t i n g , l i n e1 9 9 8 c a b e c o m e l i n e 1 9 9 9 a l o n g a i r e m a i n s t h l a s t l i n e i t h " A " g r o u p .

T a d c i t y t t h d a t a , i n s e r t n e l i n e n u m b e r w i t h i n t h p r o p e r g r o u p , t h e n t y p e t h w o r d D A T A f o l l o w e d b t h c i t y n a m e ,d e g r e e s l a t i t u d e , m i n u t e s l a t i t u d e , o S d e g r e e s l o n g i t u d e , m i u t e s l o n g i t u d e , a n o W I y o d o n ' t k n o w t h m i n u t e s , t y p e 0

R E R U N - A U G / S E P T / O C T 1 9 9 0

Page 8: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 8/31

E a c h D a t a l i n e m u s t c o n t a i n s i c o m m a s . I y o e n u w i t h m o r et h a n 1 0 c i t i e s i a a l p h a b e t i c a l g r o u p , c h a n g e t h n u m b e r i t h D I M C $ ( 1 0 1 ) s t a t e m e n t i l i n e t y o u r n e q u a n t i t y p l u s 1

L o o k i w o r l d a t l a s f o m a j o r c i t i e s ' c o o r d i n a t e s . W h e n y o h a v ei d e n t i c a l l y n a m e d c i t i e s i d i f f e r e n t s t a t e s o c o u n t r i e s , a d t h s t a t eo c o u n t r y n a m e — i t c a b e a b b r e v i a t e d — t o o n o b o t h . H o w e v e r ,d o n ' t p u c o m m a b e t w e e n t h c i t y n a m e a n t h s t a t e o c o u n t r y .

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

s p e c i a l f i s h i n g s p o t B a n k 2 0 o B a n k 1 4 f o t h d e p t h i f a t h o m s .T h s p o t w o u l d t h e n g i n t o t h g r o u p o D a t a s t a t e m e n t s . U s y o u r i m a g i n a t i o n i n a m i n g o t h e r p l a c e s y o u w a n t t i n c l u d e i t h p r o g r a m .

R U i r i g h t : C - 6 4 ; C o m m o d o r e - c o m p a t i b l e m o u s e

E x e r c i s e Y o u r M o u s c l e sB J i B o r d e n

W H E N N E E D E D f l e x i b l e m o u s e d r i v e r f o m C - 6 4 , w r o t eo n t d t h j o b . C a l l e d M o u s e . P l , i w o r k s w i t h m o u s e p l u g g e di n t o p o r t 1 a n o f f e r s s e v e r a l f e a t u r e s t h a t m a k e i e a s y t u s f r o mB a s i c .

T h m o u s e s p r i t e ( u s e d t h c o r n e r s o f t h n o r m a l c u r s o r ) i l o c a t e d i w i n d o w o t h s c r e e n . T h d e f a u l t w i n d o w i t h f u l ls c r e e n , b u f i v e m e m o r y l o c a t i o n s , 9 9 0 - 9 9 4 , l e y o m o v e t h w i n d o wa l m o s t a n y w h e r e . M o u s e . P l a l s o l e t s y o g e b o t h t h r o w a n dc o l u m n o t h m o u s e s p r i t e a n t h s t a t u s o e i t h e r b u t t o n w i t hP e e k s f r o m B a s i c .

T h l o c a t i o n s t h a t p a s s i n f o r m a t i o n b a c k a n f o r t h b e t w e e n B a s i ca n M o u s e . P l a r l i s t e d i T a b l e 1 N o t e t h a t t h m a x i m u mp o s i t i o n i a t w o - b y t e v a l u e . U s t h f o r m u l a s s h o w n f o t h P o k ev a l u e s , w h e r e i t h r o n u m b e r y o w a n t , 1 - 2 5 , a n i t h c o l u m n n u m b e r , 1 - 4 0 . T h P o k e s a r u s e d o n l y t c h a n g e t h w i n d o w t o l i m i t t h m o u s e s p r i t e ' s m o v e m e n t .

A U G / S E P T / O C T 1 9 9 0 R e R U N

Page 9: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 9/31

R u M O U S E D E M O , u s i n g M e n u 6 4 t s e t h m o u s e s p r i t e i na c t i o n . M O U S E D E M O i a t h r e e - p a r t d e m o p r o g r a m t h a t i l l u s t r a t e sh o t u s M o u s e . P l .T h D e m o

L o a d t h d e m o p r o g r a m , t h e n r u i t F i r s t i l o a d s M o u s e . P l ,a n t h e n y o a c t i v a t e i b e n t e r i n g S Y 4 9 1 5 2 . A t t h a t p o i n t , t h s p r i t e a p p e a r s o t h s c r e e n .

P a r t o t h m a c h i n e l a n g u a g e c o d e d e f i n e s s p r i t e f o t h m o u s e .I y o u w a n t a n o t h e r s h a p e f o t h s p r i t e , y o m u s t a c t i v a t e M o u s e . P lf i r s t a n t h e n c h a n g e t h s p r i t e . P o k e t h d a t a f o t h n e s h a p ei n t o l o c a t i o n s 9 2 1 - 9 3 9 i s t e p s o t h r e e .

T h n e x t l i n e s o t h d e m o s e u t h v a r i a b l e s f o t h P e e ka d d r e s s e s , s i t ' s e a s y t r e m e m b e r w h a t t p e e k . F o e x a m p l e , i y o w a n t t g e t h r o n u m b e r o t h m o u s e s p r i t e , j u s t u s P E E K( R N ) . T h d e m o g i v e s e x a m p l e s o a l t h P e e k s a n P o k e s .

A m e n t i o n e d , t h d e m o p r o g r a m i a c t u a l l y t h r e e d e m o s i o n e . T h f i r s t i v e r y s i m p l e l o - r e s d r a w i n g p r o g r a m , w i t h w o r k i n gp a r t t h a t c o n t a i n s o n l y f i v e l i n e s o B a s i c c o d e . T h o t h e r l i n e s a r R E a n P r i n t s t a t e m e n t s .

F i r s t t h d r a w i n g p r o g r a m w a i t s t d e t e c t m o u s e b u t t o n b e i n gp r e s s e d . I b o t h b u t t o n s a r d o w n , t h p r o g r a m c l e a r s t h s c r e e na n j u m p s t t h n e x t p a r t o t h d e m o . L i n e 1 1 c a l c u l a t e s t h s c r e e n p o s i t i o n t p e e k o p o k e , t h e n c h e c k s t s e i t h s h i f t / c l e a r -h o m e k e y c o m b i n a t i o n i b e i n g p r e s s e d . I l i n e 1 1 f i n d s t h o s e k e y sd o w n , i c l e a r s t h s c r e e n f o a n o t h e r d r a w i n g . L i n e 1 2 h a n d l e st h l e f t b u t t o n . I i t ' s d o w n , t h c h a r a c t e r a l o c a t i o n S i e r a s e dt n o r m a l v i d e o . L i n e 1 3 0 h a n d l e s t h r i g h t b u t t o n b c h a n g i n g t h c h a r a c t e r t r e v e r s e v i d e o ( o t u r n i n g i o n ) .

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

T h s e c o n d s e c t i o n o t h d e m o s h o w s t h u s e o f m e n u ( o m u l t i p l e - c h o i c e q u e s t i o n i t h i s c a s e ) . H e r e t h c o l u m n i s n ' t r q u i r e d , s o n l y t h r o i c h e c k e d . I t h r o i w i t h i n t h e r a n g e o a n s w e r s a n e i t h e r b u t t o n i d o w n , t h c h o s e n a n s w e r i h i g h l i g h t e d .L i n e 2 5 t e l l s y o i t h a n s w e r i i n c o r r e c t . T h c o r r e c t a n s w e r i t h e n s h o w n , a n m e s s a g e i p r i n t e d t e l l i n g y o t r e l e a s e t h b u t t o n . N e x t , l i n e 2 7 w a i t s u n t i l b o t h b u t t o n s a r u p F i n a l l y , l i n e s2 8 a n 2 9 w a i t f o b u t t o n p r e s s b e f o r e m o v i n g o t t h l a s t

r e r u n a u g / s e p t / o c t 1 9 9 0

Page 10: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 10/31

p a r t o t h d e m o . T h i s i n e c e s s a r y s y o c a s e i y o u r a n s w e rw a c o r r e c t .

T h l a s t p a r t o f t h d e m o s h o w s h o t r e a d m o v e s f o g a m es u c h a t i c - t a c - t o e . L i n e s 3 7 0 - 3 9 0 s e u w i n d o w t h s a m e s i z e a t h g a m e b o a r d , a n l i n e s 4 7 a n 4 8 r e s e t t h w i n d o w t t h f u l ls c r e e n . T h p r o g r a m d o e s n ' t p l a y t h g a m e ; i j u s t s h o w s h o t r e a dt h r o w a n d c o l u m n t g e m o v e . I a l s o r o u n d s o f t h m o v e t t h c e n t e r o t h c h o s e n b o x . T h i s m e t h o d c a b h e l p f u l i y o w a n t t u s l a r g e b o a r d l i k e t h o n s h o w n i g a m e s o y o u r o w d e s i g n .

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

W i t h M o u s e . P l , i t ' s s i m p l e t r e a d t h s t a t u s a n p o s i t i o n o t h m o u s e ( a r o w a n d c o l u m n ) a n t s e u c u s t o m w i n d o w l i m i t sf o t h m o u s e s p r i t e . U s i t — w r i t i n g a m o u s e i n t o y o u r B a s i c p r g r a m s c a b l o e a s i e r t h a n y o t h i n k .

T a b l e 1

P O K E

P O K EP O K E

P O K E

P O K E

P E E K

P E E K

P E E KP E E K

L o c a t i o n s t h a t p a s s i n f o r m a t i o n b e t w e e n B a s i c a n M o u s e . P 1 .

9 9 0 , ( 8 * R 3 4

9 9 l , ( 8 * R 3 4 9 9 2 , ( 8 * C 8

9 9 3 , ( ( 8 * C 8 ) A N D 1 2 7 )

9 9 4 , - ( ( 8 * C 8 ) > 2 5 5 )

( R N )

( C N )

( L B )( R B )

M i n i m u m p o s i t i o n ( r o w )o t h m o u s e

M a x i m u m p o s i t i o n o t h m o u s eM i n i m u m p o s i t i o n ( c o l u m n )

o t h m o u s eM a x i m u m p o s i t i o n ( l o w b y t e )

o t h m o u s eM a x i m u m p o s i t i o n ( h i g h b y t e )

o t h m o u s eR o n u m b e r o t h m o u s e

s p r i t e ( 1 - 2 5 )C o l u m n n u m b e r o t h m o u s e

s p r i t e ( 1 - 4 0 )L e f t b u t t o n s t a t u s ( 0 u p = d o w n )R i g h t b u t t o n s t a t u s

A U G / S E P T / O C T 1 9 9 0 R

Page 11: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 11/31

R U i r i g h t : C - 6 4 ; j o y s t i c k

P o p - T o p !B T o n y B r a n t n e r

C H I L D R E N R E A L L Y G E b a n g o u o P o p - T o p , c o l o r f u l C - 6 4g a m e t h a t c o m b i n e s a r c a d e a c t i o n w i t h n o n v i o l e n t t h e m e . T h s t a r o P o p - T o p i T o p p e r t h C l o w n . Y o m o v e T o p p e r b a c k a n f o r t h a c r o s s t h e b o t t o m o t h s c r e e n b u s i n g j o y s t i c k p l u g g e di n t o p o r t 2 P r e s s t h e f i r e b u t t o n , a n T o p p e r ' s h a p o p s o f h i h e a d ,z i p s t o t h t o o t h s c r e e n a n d r o p s d o w n t m a k e a p i n p o i n tl a n d i n g b a c k o i t o w n e r ' s h e a d .

Y o u r g o a l i P o p - T o p i t m a k e t h h a b u r s t t h b a l l o o n s t h a ta r f l o a t i n g a c r o s s t h t o p o f t h s c r e e n . T h i s e n t a i l s p o s i t i o n i n gT o p p e r f o g o o d " s h o t , " t h e n m o v i n g h i t g u i d e t h h a t ' st r a j e c t o r y w h i l e a i r b o r n e . I a l s o m e a n s m a k i n g s u r e t h h a d o e s n ' tt a n g l e w i t h a f e d o r a - m u n c h i n g p i n w h e e l t h a t ' s p a s s i n g a c r o s s t h es c r e e n . T h g a m e p r o g r e s s e s t h r o u g h f i v e d i f f i c u l t y l e v e l s , s t a r t i n gw i t h s i n g l e p i n w h e e l a n a d d i n g a n o t h e r a e a c h a d d i t i o n a l l e v e l .

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

Y o u r s c o r e f o e a c h b a l l o o n p o p p e d i t e n m u l t i p l i e d b t h c u r r e n td i f f i c u l t y l e v e l . Y o a l s o r e c e i v e b o n u s o 1 0 p o i n t s f o e a c h h a r e m a i n i n g a y o m o v e t n e l e v e l .

T h b o t t o m o t h s c r e e n d i s p l a y s y o u r r u n n i n g s c o r e , y o u r h i g h e s ts c o r e f o t h c u r r e n t g a m e s e s s i o n , t h n u m b e r o h a t s l e f t a t h c u r r e n t l e v e l a n t h n u m b e r o b a l l o o n s y o m u s t s t i l l p o t r e a c h2 a n p r o c e e d t t h n e x t l e v e l .J u s t l o a d a n d r u n P O P T O P , u s i n g M e n u 6 4 a n s t a r t p o p p i n gt h o s e b a l l o o n s !

R E R U N A U G / S E P T / O C T 1 9 9 0

Page 12: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 12/31

R U i r i g h t : C - 1 2 8 ( i 4 0 - C o l u m n m o d e ) ; t w j o y s t i c k s

H o r s e s h o e sB M a r k J o r d a n

L E T ' S T A K E A L O O K a s p r i t e s a n g r a p h i c s a n c o m b i n i n g t h t w i H o r s e s h o e s , g a m e w r o t e f o R U I s T s A u g u s t / S e p t e m b e r1 2 M o d e c o l u m n . I t h p r o g r a m , t h S p r i t e c o m m a n d s c r e a t et h f l y i n g h o r s e s h o e s a n t h s w i n g i n g a r m s , a n t h G r a p h i c sc o m m a n d s c r e a t e G u a n D o l l y , t w l i m b e r - a r m e d c h a r a c t e r s o

c o l o r f u l b a c k g r o u n d .R u H o r s e s h o e s , u s i n g M e n u 1 2 8 , a n t a k e c l o s e l o o k a G u

a n D o l l y . B c r e a t i n g t h e m i t w h i g h - r e s o l u t i o n s p r i t e s ( t h e b o d yp l u s t h e h e a d a n f a c e ) , w a a b l e t u s t h r e e c o l o r s i n M u l t i c o l o rm o d e w i t h o u t s a c r i f i c i n g r e s o l u t i o n . S t u d y l i n e s 3 4 0 - 4 2 0 t s e h o

d i i t T c r e a t e t h e 2 d i f f e r e n t a r p o s i t i o n s t h a t t o s s t h e h o r s e s h o e s ,

w o u l d n o r m a l l y g e n e r a t e t h n e e d e d D a t a s t a t e m e n t s , b u i t h i sc a s e , i w o u l d m a k e t h p r o g r a m l i s t i n g m u c h l o n g e r t h a n n e c e s s a r y .I n s t e a d , a c h i e v e d t h s a m e r e s u l t — a n d s a v e d a l o o m e m o r y —b u s i n g t h C i r c l e c o m m a n d t m a k e a r c s o c i r c l e t h a t t h e ne m p l o y e d a t h a r m s ' d i f f e r e n t p o s i t i o n s . N e x t , s a v e d e a c h p o s i t i o nt a s u b s c r i p t e d v a r i a b l e - A R M $ ( S J ) - i n l i n e s 1 2 0 - 2 0 0 .

a l s o d e s i g n e d n i n e d i f f e r e n t h o r s e s h o e s h a p e s f r o m s i n g l es p r i t e , e a c h s h a p e o c c u p y i n g a e i g h t - b y - s e v e n p i x e l a r e a . B u t l i z i n g t h S S h a p e , G S h a p e a n S P R S A V c o m m a n d s ( l i n e s 6 0 - 1 1 0 ) ,e a c h o t h n i n e s h a p e s w a d e r i v e d f r o m t h o r i g i n a l a n t r a n s f e r r e dt s t r i n g v a r i a b l e , H S $ ( X ) . S o w h e n t h s h o e i t o s s e d ( l i n e s 6 9 0 -7 3 0 ) , s i m p l y c y c l i n g t h r o u g h l i n e 7 2 ( t h e S P R S A V c o m m a n d a n t h s u b s c r i p t ) g i v e s t h i l l u s i o n o f r o t a t i n g h o r s e s h o e .

Y o c a e x a m i n e t h e i n d i v i d u a l p a r t s t h a t m a k e u G u a n D o l l yb a d d i n g l i n e 5 S P R D E F : S T O P t t h l i s t i n g . ( R e m e m b e r t r e m o v et h i s l i n e b e f o r e p l a y i n g g a m e . ) T h s p r i t e s c r e e n w i l l a p p e a r w h e ny o r u t h p r o g r a m . P r e s s a n n u m b e r f r o m t t v i e w s p r i t e .T v i e w a n o t h e r s p r i t e , f i r s t e r a s e t h p r e v i o u s n u m b e r w i t h t h r u n -s t o p k e y , t h e n e n t e r a n e n u m b e r . T w a t c h t h G r a p h i c s c o m m a n d si a c t i o n , d e l e t e t h F a s t c o m m a n d i l i n e 2 0

A U G / S E P T / O C T 1 9 9 0 R e R U N

Page 13: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 13/31

H o r s e s h o e s t a k e s l i t t l e o v e r 2 s e c o n d s t l o a d i t h e g r a p h i c s .I i p l a y e d w i t h t w j o y s t i c k s — p o r t c o n t r o l s G u a n p o r t 2 D o l l y . W h e n y o u ' r e r e a d y t t o s s , m o v e t h j o y s t i c k l e f t a n r i g h tt c o n t r o l a r m o v e m e n t , a n p r e s s t h e f i r e b u t t o n t r e l e a s e t h s h o e . W i t h t h e r i g h t a m o u n t o b a c k s w i n g a n f o r e s w i n g , y o u ' l l h i a o r n e a r t h p o s t . C o n v e n t i o n a l h o r s e s h o e s c o r i n g i u s e d , w i t h2 p o i n t s w i n n i n g g a m e . I e a c h r o u n d , t h e p l a y e r w i t h t h b e s tp r e v i o u s s c o r e g e t s t h f i r s t t o s s .

R U i r i g h t : C - 6 4

N o t a b l e B a s i cB C h r i s N e w m a n a n K e n t S u l l i v a n

O N O T H E M O S T D I S T I N C T I V E a n p o w e r f u l f e a t u r e s o t h C - 6 4 a n C - 1 2 8 i t h p r o g r a m m a b l e S I ( S o u n d I n t e r f a c e D e v i c e )c h i p . T h S I i r e s p o n s i b l e f o a l t h s o u n d a n d m u s i c t h a t y o u rC - 6 4 / 1 2 8 m a k e s a n d h a c a p a b i l i t i e s t h a t f a o u t d i s t a n c e m o r e e p e n s i v e c o m p u t e r s .

U s i n g t h S I o t h C - 1 2 8 i s t r a i g h t f o r w a r d , b e c a u s e B a s i c 7 . s u p p o r t s s o u n d a n m u s i c c r e a t i o n w i t h s i c o m m a n d s : S o u n d , P l a y ,E n v e l o p e , F i l t e r , T e m p o a n V o l u m e . O t h e C - 6 4 , h o w e v e r , B a s i c2 . 0 f o r c e s y o t u s e a l i t a n y o P o k e s a n P e e k s t m a s t e r t h m a g i co f S I D . U n t i l n o w , a l e a s t . .

S I B a s i c 6 b r i n g s f i v e o t h s i B a s i c 7 . m u s i c c o m m a n d s ( a l lb u S o u n d ) t B a s i c 2 . 0 i n a e a s y - t o - u s e d r i v e r t h a t ' s c o m p a t i b l ew i t h a l n o r m a l B a s i c 2 . p r o g r a m s . I a l s o s u p p o r t s u t s i v o i c e s( t w i c e t h n o r m a l ) f o t r u e s t e r e o m u s i c , d u t t h e i n c r e a s i n gp o p u l a r i t y o f a d d i n g s e c o n d S I c h i p t t h C - 6 4 / 1 2 8 ( v i a a i n t e r n a l m o d i f i c a t i o n o c a r t r i d g e ) . I a d d i t i o n , S I B a s i c 6 c a r e a d B a s i c 7 . p r o g r a m s t h a t h a v e m u s i c c o m m a n d s i t h e m , s y o w o n ' t h a v e t r e t y p e s o n g s t h a t y o a l r e a d y h a v e f o t h C - 1 2 8 .S t a r t i n g N o t e s

A f t e r l o a d i n g S I B a s i c 6 4 u s i n g M e n u 6 4 t r e x p e r i m e n t i n gw i t h e a c h o t h m u s i c c o m m a n d s . O n c e y o h a v e S I B a s i c 6

r e r u n - a u g / s e p t / o c t 1 9 9 0

Page 14: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 14/31

a c t i v e , r e l o a d M e n u 6 a n r u t h p r o g r a m c a l l e d T W I N K L E ,w h i c h r e q u i r e s S I D . B A S I C t b a c t i v a t e d b e f o r e h a n d .

T W I N K L E p l a c e s t h e m e l o d y a n c o u n t e r p o i n t i v o i c e s a n 2 I S I B a s i c 6 4 v o i c e s 1 - a r p l a y e d t h r o u g h t h S I c h i pi n s i d e y o u r C - 6 4 / 1 2 8 ( o t h l e f t s i d e i s t e r e o t e r m i n o l o g y ) w h i l ev o i c e s 4 - a r p l a y e d t h r o u g h t h s e c o n d S I c h i p ( o t h r i g h ts i d e ) , i f y o h a v e o n i n s t a l l e d . I y o d h a v e s e c o n d S I c h i p ,T W I N K L E p l a y s f o u r - v o i c e , s t e r e o s o n g .C o m m a n d s

A l S I B a s i c 6 c o m m a n d s w o r k i b o t h P r o g r a m a n D i r e c tm o d e s . D u t s p a c e l i m i t a t i o n s h e r e , w c a n ' t g i n t o d e t a i l o m u s i c t h e o r y o t h c o m b i n a t i o n s o f S I B a s i c 6 c o m m a n d s , b u t h e s e c o m m a n d s a r w e l l d o c u m e n t e d i t h C o m m o d o r e 1 2 S y s t e mG u i d e a n t h C o m m o d o r e 1 2 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 , a w e l la s e v e r a l o t h e r s o u r c e s .

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

B e l o w i s u m m a r y o e a c h o f t h f i v e c o m m a n d s :E N V E L O P E

P u r p o s e : s e l e c t s t h e v a r i o u s A D S R a n w a v e f o r m p a r a m e t e r s t h a tc r e a t e s o u n d s , o r " i n s t r u m e n t s . "

S y n t a x : E N V E L O P E e [ , a [ , d [ , s [ , r [ , w f [ , p w ] ] ] ] ] ]e n v e l o p e n u m b e r : 0 - ( s e e T a b l e f o p r e d e f i n e d v a l u e s )a t t a c k r a t e : 0 - 1 5d e c a y r a t e : 0 - 1 5

s u s t a i n l e v e l : 0 - 1 5r e l e a s e r a t e : 0 - 1 5

w w a v e f o r mt r i a n g l es a w t o o t hp u l s en o i s er i n g m o d u l a t i o n

p p u l s e w i d t h : 0 - 4 0 9 5 ( v a l i d o n l y w i t h w a v e f o r m 2

A U G / S E P T / O C T 1 9 9 0 R e R U N

Page 15: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 15/31

N o t e s : I y o w i s h t u s o n o t h p r e d e f i n e d i n s t r u m e n t s , s p e c i f yo n l y t h p a r a m e t e r . F o e x a m p l e :E N V E L O P Es e l e c t s t h e d e f a u l t p i a n o i n s t r u m e n t .

I y o w i s h t r e d e f i n e o n o t h i n s t r u m e n t s f o y o u r o w u s e ,y o u m u s t s p e c i f y a l t h p a r a m e t e r s ( e x c e p t p u l s e w i d t h w h e n y o u ' r en o u s i n g t h p u l s e w a v e f o r m ) . F o e x a m p l e :E N V E L O P E 0 , 7 , 9 , 4 , 7 , 0r e d e f i n e s t h d e f a u l t p i a n o i n s t r u m e n t a a o b o e b g i v i n g i a a t t a c k o 7 d e c a y o 9 s u s t a i n o 4 r e l e a s e o a n t r i a n g l ew a v e f o r m .Y o c a h e a r w h a t t h t e p r e d e f i n e d i n s t r u m e n t s s o u n d l i k e b s e l e c t i n g t h e m w i t h t h p a r a m e t e r o t h P l a y c o m m a n d ( b e l o w )a n s p e c i f y i n g f e n o t e s t b p l a y e d .

T a b l e 1 P r e d e f i n e d ( d e f a u l t ) e n v e l o p e v a l u e s

N u m b e r I n s t r u m e n t

P i a n oA c c o r d i o nC a l l i o p eD r u mF l u t eG u i t a rH a r p s i c h o r dO r g a nT r u m p e tX y l o p h o n e

A t t a c k

1

D e c a y

1 r e r u n a u g / s e p t / o c t 1 9 9 0

Page 16: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 16/31

F I L T E R

P u r p o s e : c o n t r o l s t h S I f i l t e r t a l t e r t h s o u n d s t h a t v o i c ep r o d u c e s .

S y n t a x : F I L T E R c f [ , l p [ , b p [ , h p [ , r e s [ , c h i p ] ] ] ] ]

c c u t o f f f r e q u e n c y : 0 - 2 0 4 7l l o w - p a s s f i l t e r : ( d e f a u l t ) o f f , l = o nb b a n d - p a s s f i l t e r : ( d e f a u l t ) o f f , = o h h i g h - p a s s f i l t e r : ( d e f a u l t ) o f f , l = o nr e r e s o n a n c e l e v e l : 0 - 1 5c h i p c h i p n u m b e r : i n t e r n a l / l e f t , e x t e r n a l / r i g h tN o t e s : Y o c a h a v e a n y c o m b i n a t i o n o t h t h r e e f i l t e r s t u r n e d o a o n t i m e . T h r e s o n a n c e i t h " p e a k i n g e f f e c t " o t h s o u n d ' s

S u s t a i n

1 2

R e l e a s e W a v e f o r m W i d t h

1 5 3 6

5 1 2 0 4 8

5 1

A U G / S E P T / O C T 1 9 9 0 R e R U N 1

Page 17: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 17/31

f r e q u e n c y a i n e a r s t h e c u t o f f f r e q u e n c y . N o t e t h a t t h " c h i p "p a r a m e t e r i S I B a s i c 6 e n h a n c e m e n t t s u p p o r t s i v o i c e s ; i i n o p a r t o B a s i c 7 . 0 . I y o d o n ' t s p e c i f y c h i p , t h f i l t e r s o b o t h S I c h i p s w i l l b a f f e c t e d .

P L A Y

P u r p o s e : o u t p u t s s t r i n g o m u s i c a l n o t e s t t h S I c h i p , m u c hl i k e P r i n t o u t p u t s s t r i n g o c h a r a c t e r s t t h s c r e e n .

S y n t a x : P L A Y " V < n > , O < n > , T < n > , U < n > , X < n > , < [ n o t e s o e l m e n t s ] . . >

V < n > v o i c e n u m b e r : n 1 - ( i t h d e f a u l t )O < n > o c t a v e n u m b e r : 0 - ( i t h d e f a u l t )T < n > t o n e e n v e l o p e n u m b e r : 0 - ( i t h d e f a u l t )U < n > v o l u m e l e v e l : 0 - ( i t h d e f a u l t )X < n > f i l t e r : 0 o ( i t h d e f a u l t )n o t e s v a l i d m u s i c a l n o t e s : C , D , E , F , G , A , Be l e m e n t s m o d i f i e r s t n o t e s ( a l l b u a n m u s t b

f o l l o w e d b n o t e l e t t e r )w h o l e n o t eh a l f n o t eq u a r t e r n o t e

e i g h t h n o t es i x t e e n t h n o t e

d o t t e d n o t er e s tm e a s u r e ( w a i t f o r a l v o i c e s t o f i n i s h c u r r e n t n o t e )

# s h a r pf l a t

N o t e s :1 S I B a s i c 6 e x p a n d s t h p a r a m e t e r t a c c o m m o d a t e u t s i v o i c e s ; B a s i c 7 . h a s a r a n g e o 1 - 3 .2 T h v a l u e s f o c o r r e s p o n d t t h t e i n s t r u m e n t s d e f i n e dt h r o u g h t h E n v e l o p e c o m m a n d .

1 R E R U N A U G / S E P T / O C T 1 9 9 0

Page 18: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 18/31

3 T h V o l u m e c o m m a n d ( s e e b e l o w ) h a s r a n g e o 0 - 1 5 , b u t h p a r a m e t e r o P l a y s c a l e s t h i s i n t o t e s t e p s , a s f o l l o w s :

V o l u m e

1 1 1 1

A l s o , t h p a r t o U < n > i o p t i o n a l ( a i i i B a s i c 7 . 0 ) . Y o c a s p e c i f y j u s t t h n u m b e r , a n P l a y w i l l a s s u m e y o w a n t t c h a n g et h v o l u m e .4 A v a l u e o f m e a n s t u r n t h f i l t e r o f f , w h i l e a v a l u e o m e a n st u r n t h f i l t e r o n 5 I m p o r t a n t : I t h e P l a y c o m m a n d d o e s n ' t p r o d u c e a n s o u n d ,r e m e m b e r t m a k e s u r e t h v o l u m e i s e t v a l u e o t h e r t h a n 0

A e x a m p l e o t h e P l a y c o m m a n d i s P L A Y " V O T U X 0 w h i c h s e t s u v o i c e t p l a y i o c t a v e w i t h t o n e e n v e l o p e( o r g a n ) , v o l u m e ( e q u a l t V O 1 4 ) , a n t h f i l t e r o f f . A n o t h e re x a m p l e i s

P L A Y " V O V O Q # D "w h i c h p l a y s a e i g h t h n o t e i t h t h i r d o c t a v e u s i n g v o i c e 3 a n t h e n p l a y s q u a r t e r n o t e D - s h a r p i t h f i f t h o c t a v e u s i n g v o i c e 2

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

T E M P OP u r p o s e : a d j u s t s t h s p e e d a w h i c h t h m u s i c p l a y s .

S y n t a x : T E M P O

A U G / S E P T / O C T 1 9 9 0 1

Page 19: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 19/31

r a t e o p l a y : 1 - 2 5 5 ( 2 5 5 i f a s t e s t , i t h d e f a u l t )

N o t e s : T h d e f a u l t t e m p o o e q u a l s M . M . 1 0 ( 1 0 0 b e a t s p e m i n u t e ) . A l t h o u g h a l a p p l i c a b l e t e c h n i c a l n o t e s s a t h a t B a s i c 7 . 0 ' sd e f a u l t t e m p o i 8 i t ' s a c t u a l l y 1 6 W d e c i d e d t m a k e S I B a s i c6 f o l l o w t h e w r i t t e n s p e c i f i c a t i o n s .

V O L U M EP u r p o s e : a d j u s t s t h l o u d n e s s a w h i c h t h m u s i c p l a y s .

S y n t a x : V O l [ , c ]

v o l u m e l e v e l : 0 - 1 5 ( 1 i l o u d e s t a n t h d e f a u l t )c h i p n u m b e r : i n t e r n a l / l e f t , e x t e r n a l / r i g h t

N o t e s : A l t h o u g h t h d e f a u l t v o l u m e i 1 5 v o l u m e o f 1 2 i t h l o u d e s t y o u ' l l n o r m a l l y n e e d ; v a l u e s a b o v e 1 c a d i s t o r t s o m ei n s t r u m e n t s . N o t e t h a t t h p a r a m e t e r i S I B a s i c 6 e n h a n c em e n t t s u p p o r t s i v o i c e s ; i i n o p a r t o B a s i c 7 . 0 . I y o d o n ' ts p e c i f y c t h v o l u m e f o b o t h S I c h i p s w i l l b c h a n g e d .T e c h n i c a l N o t e s

I y o h a v e s e c o n d S I c h i p , y o m i g h t w a n t t " s p r e a d o u t "t h r e e - v o i c e s o n g a c r o s s b o t h t h l e f t a n r i g h t c h a n n e l s . Y o c a d t h i s b c o p y i n g t h c o d e f o v o i c e s 1 - a n c h a n g i n g i t u s v o i c e s4 - 6 . H o w e v e r , t h e r e ' s a e a s i e r w a y : Y o c a t e l l S I B a s i c 6 t p l a y

v o i c e o t h s e c o n d S I c h i p w i t h o u t h a v i n g t r e w r i t e t h B a s i cp r o g r a m . J u s t c h a n g e t h c h i p t h e v o i c e i m a p p e d t w i t h :P O K E 4 9 2 9 8 + < v o i c e n u m b e r > ( l - 6 ) , < v a l u e >w h e r e v a l u e e q u a l s f o t h e i n t e r n a l S I ( l e f t s i d e ) o f o t h e x t e r n a l S I ( r i g h t s i d e ) . T s p r e a d o u t t h r e e - v o i c e s o n g , t r m o v i n g v o i c e t t h s e c o n d c h i p w i t h P O K E 4 9 3 0 0 , 1 . T r y m o v i n go t h e r v o i c e s a n e x p e r i m e n t i n g w i t h o t h e r c o n f i g u r a t i o n s .

S I B a s i c 6 a s s u m e s t h a t i y o h a v e s e c o n d S I c h i p , i t ' sm a p p e d i n t o m e m o r y a $ D E 0 0 . I y o u r s r e s i d e s a d i f f e r e n tl o c a t i o n ( $ D F 0 0 i t h o t h e r l i k e l y c a n d i d a t e ) , y o c a t e l l S I B a s i c6 b p o k i n g l o c a t i o n 4 9 3 0 6 w i t h t h h i g h b y t e o t h a d d r e s s . F o i n s t a n c e , f o a c h i p a $ D F 0 0 , y o u ' d u s P O K E 4 9 3 0 6 , 2 2 3( 2 2 3 $ D F ) . T h l o c a t i o n o t h e i n t e r n a l S I c h i p i s t o r e d i 4 9 3 0 5

1 R E R U N A U G / S E P T / O C T 1 9 9 0

Page 20: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 20/31

a n i 2 1 b d e f a u l t ( 2 1 2 $ D 4 ) . T h i s d e f a u l t v a l u e w o r k s o a l C - 6 4 s a n C - 1 2 8 s .

A s m e n t i o n e d a b o v e , S I B a s i c 6 c a l i s t B a s i c 7 . p r o g r a m s . I c o r r e c t l y d i s p l a y s a l s i s o u n d a n m u s i c c o m m a n d s a n c a h a n d l em o s t o t h e r B a s i c 7 . c o m m a n d s b d i s p l a y i n g t h h e x a d e c i m a l v a l u eo t h B a s i c k e y w o r d ( t o k e n ) w i t h i n b r a c k e t s ( f o r e x a m p l e , C O L O Rb e c o m e s [ E 7 ] ) . I d o e s n o c o r r e c t l y h a n d l e " d u a l - t o k e n f u n c t i o n s "a n w i l l r e p o r t a s y n t a x e r r o r i i e n c o u n t e r s o n e . T h i s s h o u l d n ' tb m u c h o p r o b l e m , h o w e v e r , s i n c e y o c a e a s i l y e d i t o u t h n o n m u s i c c o m m a n d s f r o m a n B a s i c 7 . p r o g r a m y o w i s h t p l a yw i t h S I B a s i c 6 4

S I B a s i c 6 i c o m p a t i b l e w i t h o t h e r " w e d g e " p r o g r a m s t h a t u s t h e " e r r o r " o C H R G E T t e c h n i q u e s , b u n o t h o s e t h a t r e d i r e c t t h I M A I N , I C R N C H , I Q P L O P o I G O N E v e c t o r s ( l o c a t i o n s $ 0 3 0 4 -$ 0 3 0 9 i m e m o r y ) . I i c o m p a t i b l e w i t h t h C o m m o d o r e D O w e d g e , b u w i t h C r e a t i v e M i c r o D e s i g n ' s J i f f y D O S , i t r i e s t t o k e n i z es o m e c h a r a c t e r s i n c o r r e c t l y . F o i n s t a n c e , J i f f y D O S ' s / I N V * w o u l dn o r m a l l y l o a d t h f i r s t p r o g r a m t h a t b e g i n s w i t h I N V , b u S I B a s i c6 c o n v e r t s t h i n t o i t t o k e n i z e d f o r m a n c a u s e s F i l e N o F o u n d e r r o r . Y o c a g e a r o u n d t h i s e f f e c t b a d d i n g a l e a d i n gq u o t e t t h l i n e : / " I N V * . I i i m p o r t a n t t r e m e m b e r t a l w a y si n s t a l l S I B a s i c 6 a f t e r a n o t h e r w e d g e s y o w i s h t u s e .

W w i s h t t h a n k A r H u n k i n s f o h i i n s p i r a t i o n a n h e l p , a n D a H e e b f o t h i n f o r m a t i o n g l e a n e d f r o m h i b o o k V I C - 2 0 a n C o m m o d o r e 6 T o o l k i t : B a s i c .

R U i r i g h t : C - 6 4 o C - 1 2 8 ( i 4 0 - C o l u m n m o d e )

T i m e C l o c kB T e r r y B r y n e r

W H E N Y O U ' V E B E E N R E A D I N G s t a n d a r d c l o c k s f o r y e a r s ,d i g i t a l c l o c k j u s t i s n ' t t h s a m e , e s p e c i a l l y w h e n i g e t s l o s t i t h

j u m b l e o l e t t e r s o c o m p u t e r s c r e e n . T i m e C l o c k f i x e s t h i s p r o b l e mb p u t t i n g a o l d - f a s h i o n e d r o u n d c l o c k , c o m p l e t e w i t h a s e c o n dh a n d , o t h s c r e e n o y o u r C - 6 4 o C - 1 2 8 . T h c l o c k k e e p s a c c u r a t e

A U G / S E P T / O C T 1 9 9 0 R e R U N 1

Page 21: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 21/31

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

T h e r e a r t w v e r s i o n s o T i m e C l o c k , o n f o t h C - 6 4 a n o n f o t h C - 1 2 8 i 4 0 - C o l u m n m o d e . L o a d a n d r u e i t h e r , u s i n g M e n u6 o M e n u 1 2 8 .

T u s t h c l o c k , e n t e r t w d i g i t s e a c h f o t h c u r r e n t h o u r , m i n u t ea n s e c o n d a t h H H M M S S p r o m p t . W h e n y o p r e s s t h e r e t u r nk e y , t h c l o c k a p p e a r s i t h u p p e r - r i g h t c o r n e r o f t h e s c r e e n , c o p l e t e w i t h m o v i n g s e c o n d h a n d , a n i c o n t i n u e s t r u u n t i l y o d e a c t i v a t e i b 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 s i m u l t a n e o u s l y .

T l o a d a n o t h e r B a s i c p r o g r a m , t y p e N E a n p r e s s r e t u r n t c l e a r T i m e C l o c k f r o m m e m o r y . B e c a u s e t h p r o g r a m e r a s e s i t s e l ff r o m m e m o r y , y o c a w o r k o o t h e r B a s i c p r o g r a m s w h i l e t h c l o c k r e m a i n s a c t i v e . Y o c a h i d e t h c l o c k w i t h P O K E 5 3 2 6 9 , 0a n t h e n r e s t o r e i w i t h P O K E 5 3 2 6 9 , 2 4 0 .

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

T h C - 6 4 v e r s i o n i d e s i g n e d t o p e r a t e i t h n o r m a l , b a n kV i d e o m o d e . T h C - 1 2 8 v e r s i o n d o e s n ' t l o a d p r o p e r l y a f t e r t h c o m a n d s G R A P H I C 1 : G R A P H I C O a r u s e d t m o v e t h s t a r t o B a s i c ,a n e i t h e r v e r s i o n d i s p l a y s g a r b a g e i t h s p r i t e p o i n t e r s a r m a n i pu l a t e d . H o w e v e r , f o t y p i c a l e x t e n d e d c o n v e r s a t i o n s w i t h t h s c r e e ne d i t o r , t h e c l o c k i u s e f u l r e m i n d e r o t h f l e e t w i n g s o t i m e .

R U i r i g h t : C - 1 2 8 ( i 4 0 - C o l u m n m o d e )

R U P a i n t R e n a m e rB H u g h M c M e n a m i n

R U P A I N T , R U N ' S p o w e r f u l d r a w i n g a n p a i n t i n g p r o g r a m( M a r c h 1 9 8 9 ) , i e a s y t u s a n s u p p o r t s a l t h c o m m o n g r a p h i c sf o r m a t s . H o w e v e r , w h e n i m p o r t i n g f i l e i n t o R U P a i n t f r o ma n o t h e r g r a p h i c s p r o g r a m , y o m u s t m a k e t h f i l e n a m e c o m p a t i b l ew i t h R U P a i n t . M C o n v e r t t R U P a i n t p r o g r a m e l i m i n a t e s t h i sh a s s l e f o C - 1 2 8 u s e r s b l o a d i n g g r a p h i c s f i l e i n t o t h c o m p u t e r ,

1 r e r u n a u g / s e p t / o c t 1 9 9 0

Page 22: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 22/31

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

T u s t h p r o g r a m , j u s t l o a d a n r u i t u s i n g M e n u 1 2 8 ; t h e ni n s e r t t h s o u r c e d i s k , w i t h t h f i l e s t b r e n a m e d , i n t o t h d r i v e .C o n v e r t t R U P a i n t s t a r t s b p r e s e n t i n g m e n u o f i l e t y p e si c a r e n a m e : K o a l a a n D o o d l e ! . E n t e r t h f i r s t l e t t e r o t h t y p ey o w a n t , a n t h p r o g r a m r e s p o n d s w i t h d i r e c t o r y o t h o s e f i l e so t h d i s k . N o e n t e r t h n a m e o t h p a r t i c u l a r f i l e y o u w a n t t r e n a m e , l e a v i n g o u t h p r e f i x o s u f f i x s p e c i f i c t t h g r a p h i c sp r o g r a m t h a t c r e a t e d t h f i l e — a r e v e r s e v i d e o f o K o a l a o D f o D o o d l e ! . N o t e t h a t y o s h o u l d k e e p t h P I i t h o s e K o a l af i l e n a m e s t h a t c o n t a i n i t d e l e t e o n l y t h r e v e r s e A A l s o , y o m u s tt y p e i e a c h f i l e n a m e , e v e n i y o w a n t t r e n a m e a l t h f i l e s o t h d i s k ; t h w i l d - c a r d a s t e r i s k w o n ' t w o r k .

W h e n y o u ' v e t y p e d t h d e s i r e d f i l e n a m e a n p r e s s e d t h r e t u r nk e y , t h p r o g r a m l o a d s t h f i l e . N e x t , i n s e r t t h d e s t i n a t i o n d i s k a n p r e s s r e t u r n t s a v e t h e f i l e w i t h i t n e n a m e . T h p r o g r a m t e r m in a t e s w h e n t h e s a v e i d o n e . T r e n a m e a n o t h e r f i l e , r u i a g a i n .

n e f i l e n a m e c o n s i s t s o t h f i l e n a m e y o e n t e r e d f r o m t h s o u r c e d i s k d i r e c t o r y w i t h a p r e f i x o R P M . o R P H . ( n o t e t h e d o f o l l o w i n g e a c h ) , f o R U P a i n t m e d - r e s o h i - r e s , a d d e d o n I t h f i l e n a m e y o e n t e r e d i l o n g e r t h a n 1 c h a r a c t e r s , i t ' s t r u n c a t e d s t h a t t h t o t a l w o n ' t e x c e e d 1 c h a r a c t e r s . A l s o , i t h f i l e n a m e y o e n t e r e d d u p l i c a t e s o n a l r e a d y o t h d e s t i n a t i o n d i s k o i t h d e s t i n a t i o n d i s k i f u l l , t h p r o g r a m r e p o r t s a e r r o r a n t e l l s y o t p r e s s a n k e t c o n t i n u e .

W i t h y o u r f i l e s r e n a m e d , y o u c a l o a d t h e m i n t o R U P a i n t u s i n gt h a p p r o p r i a t e f o r m a t — m e d - r e s o h i - r e s — a n d m o d i f y t h e m t y o u r h e a r t ' s c o n t e n t .

A U G / S E P T / O C T 1 9 9 0 R e R U N 1

Page 23: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 23/31

R U i r i g h t : C - 6 4

S p r i t e M a g i c i a nB S c o t t W e i s g a r b e r

S P R I T E M A G I C I A N I c o m p l e t e s p r i t e m o v e m e n t a n a n i m a t i o nc o n t r o l l e r f o t h C - 6 4 . U s i n g i t 1 S Y c o m m a n d s , y o c a p o s i t i o n

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

b o r d e r o t h s c r e e n e d g e , a n s e u a u t o m a t i c a n i m a t i o n . A l t h c o m m a n d s i n c l u d e p a r a m e t e r f o s p e c i f y i n g t h s p r i t e y o w a n t t h c o m m a n d t a f f e c t . A c c e p t a b l e v a l u e s a r 1 - 8 , f o t h e i g h tC - 6 4 s p r i t e s .

T s e e S p r i t e M a g i c i a n i n a c t i o n , u s M e n u 6 t l o a d a n r u S P R I T E D E M O . I u s e s a l m o s t a l o S p r i t e M a g i c i a n ' s f e a t u r e s .

S t a r t - U pA f t e r l o a d i n g S p r i t e M a g i c i a n , y o u ' l l s e e t h e s c r e e n t u r n b l a c k

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

T d i s a b l e S p r i t e M a g i c i a n , e n t e r S Y 5 2 8 3 1 , w h i c h c h a n g e s t h I R b a c k t t h d e f a u l t h a r d w a r e v e c t o r . T r e a c t i v a t e t h p r o g r a ma f t e r d i s a b l i n g i t e n t e r S Y 5 2 8 2 8 , w h i c h c h a n g e s t h I R b a c k t S p r i t e M a g i c i a n w i t h o u t r e s e t t i n g a n p o i n t e r s .

T r e s e t a l t h p o i n t e r s — f o r b o r d e r s , m o v e m e n t s e t t i n g s , b o u n ci n g , a n s o n — w i t h o u t b o t h e r i n g t h o p e r a t i n g s y s t e m , d i s a b l eS p r i t e M a g i c i a n , e n t e r S Y 5 1 4 6 6 , a n t h e n r e a c t i v a t e t h p r o g r a m .S Y 5 1 4 7 8 r e s e t s o n l y t h b o r d e r s .

B e c a u s e o S p r i t e M a g i c i a n ' s a n i m a t i o n f e a t u r e , y o c a n ' t p o k ed i r e c t l y t o t h r e g u l a r V I C - I I s p r i t e b l o c k p o i n t e r s ( a d d r e s s e s 2 0 4 0 -2 0 4 7 ) . Y o m u s t g t t h n e a d d r e s s e s o 5 3 1 4 0 - 5 3 1 4 7 . F o e x a m p l e , i n s t e a d o e n t e r i n g P O K E 2 0 4 0 , 1 9 2 , y o u ' d e n t e r P O K E5 3 1 4 0 , 1 9 2 .

A d v a n c e d p r o g r a m m e r s s h o u l d n o t e t h a t c h a n g i n g v i d e o b a n k sa l s o r e l o c a t e s t h r e g u l a r 2 0 4 0 - 2 0 4 7 s p r i t e b l o c k p o i n t e r s . T t e l lS p r i t e M a g i c i a n w h a t t h n e p o i n t e r l o c a t i o n s s h o u l d b e e n t e r

i r e r u n a u g / s e p t / o c t 1 9 9 0

Page 24: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 24/31

S Y 5 2 7 8 8 , f o l l o w e d b t h n e l o c a t i o n ( S Y S 5 2 7 8 8 , 4 0 9 6 t c h a n g et h n e p o i n t e r s t 4 0 9 6 , f o e x a m p l e . )T h C o m m a n d sP o s i t i o nS Y 5 2 8 3 4 , s p r i t e n u m b e r , X , Y

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

M o v eS Y 5 2 8 3 7 , s p r i t e n u m b e r , d i r e c t i o n , X s p e e d , Y s p e e d

D i r e c t i o n v a l u e s r a n g e f r o m t 8 a s h o w n i t h f o l l o w i n gd i a g r a m .

T h s p e e d i h o r i z o n t a l , t h i v e r t i c a l , a n t 1 4 p i x e l s p e s e c o n d i t h a c c e p t a b l e r a n g e f o b o t h . A s a n e x a m p l e o t h M o v ec o m m a n d , S Y 5 2 8 3 7 , 1 , 2 , 1 0 , 5 s e n d s s p r i t e t o w a r d t h u p p e r r i g h tw i t h h o r i z o n t a l s p e e d o f t e n p i x e l s p e r s e c o n d a n v e r t i c a l s p e e do f i v e p i x e l s p e s e c o n d .

B o r d e r sU s i n g b o r d e r s , y o c a b o i n d i v i d u a l s p r i t e s i n t o c e r t a i n s e c t i o n s

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

T o B o r d e rS Y 5 2 8 4 0 , s p r i t e n u m b e r , Y

T h v a l u e i t h h i g h e s t c o o r d i n a t e o t h s c r e e n t h a t t h s p r i t em a o c c u p y . A c c e p t e d v a l u e s a r e 1 - 2 5 5 .

A U G / S E P T / O C T 1 9 9 0 R e R U N 1

Page 25: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 25/31

B o t t o m B o r d e rS Y 5 2 8 4 3 , s p r i t e n u m b e r , Y

H e r e , i t h e l o w e s t c o o r d i n a t e o t h s c r e e n t h a t t h e s p r i t e m a o c c u p y . A c c e p t e d v a l u e s a r e , a g a i n , 1 - 2 5 5 .L e f t B o r d e rS Y 5 2 8 4 6 , s p r i t e n u m b e r , X

T h v a l u e i t h l e f t m o s t c o o r d i n a t e t h s p r i t e m a o c c u p y .A c c e p t e d v a l u e s a r 1 - 3 1 9 .

R i g h t B o r d e rS Y 5 2 8 4 9 , s p r i t e n u m b e r , X

H e r e , i t h r i g h t m o s t c o o r d i n a t e t h s p r i t e m a o c c u p y . A c e p t e d v a l u e s a r e , a g a i n , 1 - 3 1 9 .

W r a p a r o u n dS Y 5 2 8 5 2 , s p r i t e n u m b e r , o n / o f f

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

B o u n c i n gS Y 5 2 8 5 5 , s p r i t e n u m b e r , o n / o f f

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

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

A n i m a t i o nI y o u ' v e e v e r t r i e d a n i m a t i o n o y o u r o w n , y o k n o w i t ' s b o t h e r .

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

S p r i t e M a g i c i a n p u t s t h e s e p r o b l e m s i t h p a s t . S i m p l y s p e c i f yw h i c h s p r i t e y o u ' r e a n i m a t i n g , t h s p r i t e b l o c k ( 0 - 2 5 5 ) w h e r e a n i -

2 R E R U N A U G / S E P T / O C T 1 9 9 0

Page 26: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 26/31

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

A c c e p t a b l e v a l u e s f o t h s t a r t i n g b l o c k ( t h e n u m b e r y o u ' d n o m a l l y p o k e i n t o 2 0 4 0 - 2 0 4 7 ) a r 0 - 2 5 5 . S p e e d e q u a l s 6 d i v i d e d b t h n u m b e r o b l o c k s p e s e c o n d t b a n i m a t e d .

T h r e s e t p a r a m e t e r i o p t i o n a l . N o r m a l l y , a t h e n o a a n i m a t i o n s e q u e n c e , t h s e q u e n c e i r e p e a t e d i r e v e r s e . F o e a m p l e , t h c o m m a n d S Y 5 2 8 5 8 , 1 , 1 9 2 , 3 , 1 0 w o u l d i n i t i a t e t h b l o c ks e q u e n c e 1 9 2 , 1 9 3 , 1 9 4 , 1 9 3 , 1 9 2 , 1 9 3 , 1 9 4 . . a n d s f o r t h . H o w e v e r ,w i t h S p r i t e M a g i c i a n , y o c a r e s e t t t h f i r s t v a l u e a f t e r e a c hs e q u e n c e . C o n t i n u i n g o u e x a m p l e , i n s t e a d o 1 9 2 , 1 9 3 , 1 9 4 , 1 9 3 ,1 9 2 , y o u ' d h a v e 1 9 2 , 1 9 3 , 1 9 4 , 1 9 2 , 1 9 3 , 1 9 4 . v a l u e o f o t h r e s e tp a r a m e t e r s e t s t h f l a g t r e s e t e a c h t i m e . I t h i s p a r a m e t e r i l e f to u t , o y o g i v e i v a l u e o 0 t h s e q u e n c e k e e p s r e v e r s i n g .

M o t i o n F r e e z e rS Y 5 2 8 6 1 , s p r i t e n u m b e r , o n / o f f

v a l u e o f f o t h o n / o f f p a r a m e t e r s t o p s s p r i t e ' s m o t i o n ;s t a r t s i a g a i n .

S h o w S p r i t eS Y 5 2 8 6 4 , s p r i t e n u m b e r , o n / o f f

v a l u e o f o t h o n / o f f p a r a m e t e r t u r n s s p r i t e o n a n d m a k e si v i s i b l e ; m a k e s i v a n i s h .P r o g r a m N o t e s

S p r i t e M a g i c i a n r e s i d e s i m e m o r y l o c a t i o n s 5 1 4 5 6 - 5 2 9 6 5 a n u s e s5 2 9 6 6 - 5 3 2 4 7 f o m i s c e l l a n e o u s t a b l e s . K e e p o t h e r c o d e o u o t h e s e a r e a s .

t r i e d t o w r i t e S p r i t e M a g i c i a n s i w o u l d w o r k w i t h o t h e r r o u t i n e st h a t c h a n g e t h I R v e c t o r . H o w e v e r , c a n ' t g u a r a n t e e i w i l l w o r kw i t h a n p a r t i c u l a r r o u t i n e , s a d v i s e y o t a c t i v a t e S p r i t e M g i c i a n a f t e r a n o t h e r r o u t i n e .

B e c a u s e S p r i t e M a g i c i a n d o e s s m u c h 6 t i m e s e a c h s e c o n d ,f e a r e d i m i g h t s l o w t h C - 6 4 d o w n . H o w e v e r , a f t e r r u n n i n g s e v e r a lt e s t s , I ' h a p p y t s a t h a t t h c o m p u t e r s t i l l z i p s r i g h t a l o n g .

A U G / S E P T / O C T 1 9 9 0 2

Page 27: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 27/31

R U i r i g h t : C - 1 2 8 ; 1 5 7 1 o 1 5 8 1

D e v i c e T o g g l e rB M a r k J o r d a n

S O F T W A R E S W I T C H E S C A M A K E Y O m o r e e f f i c i e n t c o p u t e r u s e r . M 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 , D e v i c e T o g g l e r ,w h i c h p r e s e n t e d i R U N ' S O c t o b e r 1 2 M o d e c o l u m n , s w i t c h e sd e v i c e s a n w h e n y o p r e s s s h i f t / r e s t o r e . T h i s c a n b a b i gt i m e s a v e r w h i l e p r o g r a m m i n g , b e c a u s e y o c a k e e p t w o d i s k s i p l a c e a n g r a b d a t a f r o m e i t h e r d r i v e w i t h o u t h a v i n g t t y p e i t h o s e e x t r a c o m m a n d s t h a t B a s i c r e q u i r e s .

T u s t h r o u t i n e , l o a d D E V I C E . S W I T C H , u s i n g M e n u 1 2 8 . B a w a r e , h o w e v e r , t h a t s o m e s o f t w a r e w i l l o v e r w r i t e t h e i n t e r r u p t si n v o l v e d .

R U i r i g h t : C - 6 4

A p p l e H a r v e s tB J o e y L a t i m e r

T H S C E N E I A A U T U M N M O R N I N G i 1 6 3 6 . Y o u ' r e y o u n gp i l g r i m w h o ' s b e e n s e n t o u t c o l l e c t a p p l e s f o T h a n k s g i v i n g f e a s t .T h a p p l e s a r s o r i p e t h a t t h e y ' r e f a l l i n g o f t h t r e e s . U s i n g y o u rt r u s t y b a s k e t , y o u r u n a r o u n d a n d t r t c a t c h a m a n y a y o c a n .

T h o n e y o u r a p p l e - g a t h e r i n g s k i l l s , I ' v e c r e a t e d B a s k e t C a s e . I t h g a m e , y o e a r n 1 0 p o i n t s f o e a c h a p p l e y o c a t c h , p l u s ab o n u s o 5 p o i n t s p e a p p l e , c r e d i t e d t y o a f t e r a l t h a p p l e sh a v e f a l l e n . I y o u ' r e n o n i m b l e e n o u g h a n g e b e a n e d b f a l l i n ga p p l e , y o l o s e y o u r a c c u m u l a t e d p o i n t s a n m u s t s t a r t t h g a m eo v e r a t h b e g i n n i n g .

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

2 R E R U N A U G / S E P T / O C T 1 9 9 0

Page 28: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 28/31

o u t f i t , y o c a p l a y B a s k e t C a s e o y o u r C - 6 4 . J u s t l o a d i t u s i n gM e n u 6 4 i 6 m o d e . P r e s s i n g m o v e s y o u r o n - s c r e e n p i l g r i ml e f t ; m o v e s t h p i l g r i m r i g h t . C a t c h l o t s o a p p l e s , a n y o u ' l l h a v e

d e l i c i o u s T h a n k s g i v i n g f e a s t !

R U i r i g h t : C - 6 4 o C - 1 2 8 ; 1 5 4 1 o r 1 5 7 1

D i s k D i r e c t o r y O r g a n i z e rB y J i m B o r d e n

U S M F i v e - C o l u m n D i r e c t o r y L i s t i n g s p r o g r a m t k e e p t r a c ko a l m d i s k d i r e c t o r i e s . I w o r k s w i t h a n S t a r o E p s o n p r i n t e rt h a t a l l o w s f o c o m p r e s s e d t y p e ( m i n i m u m o 1 c p a n l i n e sp e i n c h ) . O t h e r p r i n t e r s t h a t m e e t t h e s e r e q u i r e m e n t s w i l l a l s ow o r k i t h e p r i n t e r c o d e s a r p u i t h p r i n t s u b r o u t i n e s t a r t i n g a l i n e 6 1 0 . W h e n y o u r u n m p r o g r a m , t h d i r e c t o r i e s a r e p r i n t e df i v e c o l u m n s w i d e w i t h a p p r o x i m a t e l y 7 n a m e s i e a c h c o l u m n ,o 3 7 f i l e s p e p a g e .

F i v e - C o l u m n D i r e c t o r y L i s t i n g s i e a s y t u s e : S e y o u r i n t e r f a c et A S C I I ( C o m m o d o r e g r a p h i c s i C o m p r e s s e d m o d e p r i n t t o w i d e ) , a l i g n t h p a p e r a t h t o o t h p a g e a n t u r n o t h p r i n t e r ;t h e n e n t e r t h n a m e a n d a t e s t r i n g . u s t h n a m e o t h s e c t i o no d i s k s I ' w o r k i n g w i t h , a n t h d a t e t h l i s t i n g w a m a d e — f o re x a m p l e , M U S I C P R O G R A M S A N S O N G S — 1 0 / 0 5 / 9 0 . M a k e s u r ey o d o n ' t u s a n q u o t e s , c o m m a s o c o l o n s .

N e x t y o u ' l l b p r o m p t e d f o p a g e n u m b e r . l i k e t u s t e t i m e s t h s e c t i o n n u m b e r i m d i s k b o x . F o i n s t a n c e , m m u s i cp r o g r a m s a r i s e c t i o n 4 s u s e a p a g e n u m b e r o 4 t s t a r tt h p r i n t o u t . T h i s m e t h o d g r o u p s a l m m u s i c f i l e d i r e c t o r i e s w i t hp a g e n u m b e r s i t h f o r t i e s . U s s y s t e m t h a t ' s c o n v e n i e n t f o y o u ,b u r e m e m b e r t h a t t h i s i n u m b e r a n n o s t r i n g .

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

A U G / S E P T / O C T 1 9 9 0 R e R U N 2

Page 29: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 29/31

T h n e x t p r o m p t a s k s y o t o i n s e r t t h d i s k . I y o u ' v e r e a d i o t h e r d i s k s , t h l a s t d i s k ' s n a m e a p p e a r s t h e l p y o k e e p t r a c k .A f t e r y o i n s e r t t h d i s k , p r e s s t h e s p a c e b a t b e g i n r e a d i n g t h d i r e c t o r y i n t o m e m o r y .W h e n t h e d i r e c t o r y h a b e e n r e a d ( a n d s o r t e d , i d e s i r e d ) , t h n u m b e r o f i l e s o t h d i s k i a d d e d t t h B l o c k s F r e e l i n e a n e g a t i v e n u m b e r . T h i s h e l p s y o s e i m a n y s h o r t p r o g r a m s h a v ef i l l e d t h d i r e c t o r y .

I t h e r e a r m o r e d i s k s i t h s a m e s e c t i o n , i n s e r t t h n e x t d i s ka t h p r o m p t a n p r e s s t h s p a c e b a r . C o n t i n u e i t h i s m a n n e ru n t i l a l y o u r d i s k s h a v e b e e n r e a d . I t h p a g e a r r a y s h o u l d f i l l u b e f o r e y o r e a d a l t h d i s k s , t h p a g e w i l l b p r i n t e d a n a n o t h e ro n s t a r t e d i m e m o r y . W h e n t h s e c t i o n i d o n e , e n t e r a t h p r o m p t f o a n o t h e r d i s k , a n a n u n f i n i s h e d p a g e w i l l b p r i n t e d .

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

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

2 R E R U N - A U G / S E P T / O C T 1 9 9 0

Page 30: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 30/31

R E R U E d i t o r - i n - C h i e fD e n n i s B r i s s o nT e c h n i c a l M a n a g e rT i W a l s hM a n a g i n g E d i t o rB e t h S J a l aS e n i o r E d i t o rH a r o l d R B j o r n s e nC o p y E d i t o rP e L e P a g eA r D i r e c t o rH o w a r d G H a p pD e s i g n a n L a y o u tA n D i l l o nT y p e s e t t i n gD e b r a D a v i e sK e n S u t c u f f eF u l f i l l m e n t C o n s u l t a n tD e b b i e B o u r g a u l t

Page 31: Re-Run 1990 08-09-10

8/6/2019 Re-Run 1990 08-09-10

http://slidepdf.com/reader/full/re-run-1990-08-09-10 31/31

1 P r o g r a m s I n c l u d e d o t h i s D i s k

F r o m t h A u g u s t / S e p t e m b e r R U N :H o F a I I T . . E x e r c i s e Y o u r M o u s c l e sP o p - T o p !H o r s e s h o e s

F r o m t h O c t o b e r R U N :N o t a b l e B a s i c

T i m e C l o c kR U P a i n t R e n a m e rS p r i t e M a g i c i a nD e v i c e T o g g l e r

P l u s : E x t r a B o n u s P r o g r a m s !A p p l e H a r v e s tD i s k D i r e c t o r y O r g a n i z e r

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

R U S p e c i a l P r o d u c t s • 8 E l S t r e e t • P e t e r b o r o u g h , N 0 3 4 5 8

R e p l a c e m e n t s w i l l n o b m a d e i t h d i s k h a b e e n a l t e r e d , r e p a i r e d o m i s u s e d t h r o u g h n e g l i g e n c e , o i f i ts h o w s s i g n s o e x c e s s i v e w e a r o i d a m a g e d b e q u i p m e n t .

T h p r o g r a m s i R e R U N a r t a k e n d i r e c t l y f r o m l i s t i n g s p r e p a r e d t a c c o m p a n y a r t i c l e s i R U m a g a z i n e . T h e yw i l l n o r u u n d e r a l s y s t e m c o n f i g u r a t i o n s . U s t h R U I R i g h t i n f o r m a t i o n i n c l u d e d w i t h e a c h a r t i c l e a s y o u rg u i d e .

T h e n t i r e c o n t e n t s a r e c o p y r i g h t e d 1 9 9 0 b I D C o m m u n i c a t i o n s / P e t e r b o r o u g h . U n a u t h o r i z e d d u p l i c a t i o n 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 .

© C o p y r i g h t 1 9 9 0 I D G C o m m u n i c a t i o n s / P e t e r b o r o u g h