The Transactor V5 03 1984

8
C o m m o d o r e Q u a d r a - W r i t e 4 P r o g r a m s O n c e l T r a n s a c t o r T e c h / N e w s J o u r n a l C o m m o d o r e C o m p u t e r s V o l . I s s u e $ 2 . 9 5 P r o t e c t i o n P i r a c y B u t t e r f i e l d : C o m p a r i n g B A S I C P r o g r a m s P a j s w o r $ P r o t e c t i o n T e c h n i q u e s F o r c e s L O A D S c r a m m i n g B A S I C P r o g r a m R e c o v e r L o s t D a t a e r a ! A s p e c t s P i r a c y

Transcript of The Transactor V5 03 1984

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 1/84

C o m m o d o r e6 4 :Q u a d r a6 4 - W r i t e 4P r o g r a m sA t O n c e l

T r a n s a c * T h eT e c h / N e w sJ o u r n a lF o rC o m m o d o r eC o m p u t e r sV o l .5

I s s u e0 3$ 2 . 9 5

r e P r o t e c t i

P i r a c B u t t e r f i e l d :C o m p a r i n gB A S I CP r o g r a m

P a j s w o r $P r o t e c t i o nT e c h n i q u e

F o r c e sR U No n L O A D

• "S c r a m m i n gA B A S I CP r o g r a m

R e c o v e rL o s tD a t a

e r a !A s p e c t so f P i r a c y

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 2/84

I N T R O D U C

A ^ P A L6 4y f T h ef a s t e s ta n de a s i e s tt o u s e

^ h a s s e m b l e rf o rt h eC o m m o d o r e6 4 .P a l6 4 e n a b l e s t h e u s e r t op e r f o r m

a s s e m b l yl a n g u a g ep r o g r a m m i n gu s i n gt h e

s t a n d a r dM O Sm n e m o n i c s . $ 6 9 . 9 5

/ L P O W E R6 42 s J [ I s a n a b s o l u t e l yi n d i s p e n s i b l ea i dt o

^ h t h ep r o g r a m m e ru s i n gC o m m o d o r e6 4 B A S I C .P o w e r6 4 t u r b o - c h a r g e s

r e s i d e n tB A S I Cw i t hd o z e n so f n e ws u p e r

u s e f u lc o m m a n d sl i k eM E R G E ,U N D O ,T E S Ta n dD I S Ka s w e l la s a l l t h eo l d

s t a n d b y s s u c ha s R E N U Ma n dS E A R C H&

R E P L A C E .I n c l u d e sM o r e P o w e r6 4 . $ 6 9 . 9 5

/ T O O LB O X6 4I s t h eu l t i m a t ep r o g r a m m e r ' su t i l i t y

p a c k a g e .I n c l u d e sP a l6 4 a s s e m b l e r

a n dP o w e r6 4 B A S I Cs o u p - u pk i t a l l

t o g e t h e ri n o n ef u l l yi n t e g r a t e da n d

e c o n o m i c a lp a c k a g e . $ 1 2 9 . 9 5

/ L r S P E L L P R O6 4y \ I s a n e a s y t o u s es p e l l i n gc h e c k e r

/ S ^ \ w i t ha s t a n d a r dd i c t i o n a r ye x p a n d a b l et o 2 5 , 0 0 0 w o r d s .S p e l l P r o6 4 q u i c k l y

a d a p t si t s e l ft o y o u rp e r s o n a lv o c a b u l a r y

a n db u s i n e s sj a r g o na l l o w i n gy o ut o a d da n d

d e l e t ew o r d st o / f r o mt h e d i c t i o n a r y ,e d i t

d o c u m e n t st o c o r r e c tu n r e c o g n i z e dw o r d s

a n d o u t p u tl i s t so f u n r e c o g n i z e dw o r d st o

p r i n t e ro r s c r e e n . S p e l l P r o6 4 w a sd e s i g n e d

t o w o r kw i t h t h eW o r d P r oS e r i e s * a n do t h e rw o r d p r o c e s s i n g p r o g r a m su s i n gt h e

W o r d P r of i l ef o r m a t . $ 6 9 . 9 5

N O WS H I P P I N G ! ! !

F o rY o u rN e a r e s tD e a l e r

C a l l

( 4 1 6 )2 7 3 - 6 3 5 0

t C o m m o d o r e6 4 a n dC o m m o d o r ea r et r a d e m a r k so f

C o m m o d o r eB u s i n e s sM a c h i n e sI n c .

* P r e s e n t l ym a r k e t e db y P r o f e s s i o n a lS o f t w a r eI n c .

S p e c i f i c a t i o n s s u b j e c tt o c h a n g ew i t h o u tn o t i c e . . .

y ? ^ T h i sb r a n dn e wo f f e r i n gf r o mt h ef / ^ o r i g i n a t o r so f t h eW o r d P r oS e r i e s *b r i n g s p r o f e s s i o n a lw o r d p r o c e s s i n gt o t h e

C o m m o d o r e6 4 f o rt h ef i r s tt i m e .T w oy e a r su n d e rd e v e l o p m e n t ,W P 6 4f e a t u r e s

1 0 0 %p r o p o r t i o n a lp r i n t i n gc a p a b i l i t ya s

w e l la s 4 0 / 8 0c o l u m nd i s p l a y ,a u t o m a t i c

w o r dw r a p ,t w oc o l u m np r i n t i n g ,a l t e r n a t e

p a g i n gf o r h e a d e r s& f o o t e r s ,f o u rw a y

s c r o l l i n g ,e x t r at e x ta r e aa n da b r a n dn e w' O O P S 'b u f f e rt h a tm a g i c a l l y b r i n g sb a c k

t e x td e l e t e di n e r r o r .A l ly o ue v e rd r e a m e d

o f i n a w o r d p r o c e s s o rp r o g r a m ,W P 6 4s e t sa n e wh i g hs t a n d a r df o rt h es o f t w a r e

i n d u s t r yt o m e e t . $ 6 9 . 9 5

A ^ M A I L P R O6 47 \ A n e wg e n e r a t i o n o fd a t a

/ ^ ^ o r g a n i z e ra n dl i s tm a n a g e r ,M a i l P r o6 4 i s t h e e a s i e s to f a l l t o l e a r na n du s e .

H a n d l e su p t o 4 , 0 0 0r e c o r d so n o n ed i s k ,

p r i n t sm u l t i p l el a b e l sa c r o s s ,d o e sm i n o r

t e x te d i t i n gi e : s e t t i n gu p i n v o i c e s .B e s t o f

a l l , M a i l P r o6 4 r e s i d e se n t i r e l yw i t h i n

m e m o r ys o y o ud o n ' th a v et o c o n s t a n t l y

j u g g l e d i s k sl i k ey o u m u s tw i t ho t h e rd a t a

b a s em a n a g e r sf o r t h e C o m m o d o r e6 4 .

$ 6 9 . 9 5

P R O - L I I O F T W A R m wm i f f i &«

( 4 1 6 ) 2 7 3 - 6 3 5 07 5 5T H EQ U E E N S W A YE A S T ,U N I T8 ,

M I S S I S S A U G A ,O N T A R I O ,C A N A D A ,L 4 Y4 C 5

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 3/84

V o l u m e5

I s s u e0 3C i r c u l a t i o n4 9 , 0 0 0

P i r a c y :A F a c to f L i f e ?

N e w sB R K . . . 49 5 %A dF r e e !

C o v e rD a t e

E x p i r ya n dS u b s c r i p t i o nN u m b e rM i c r o nD i s t r i b u t i n g

R e f e r e n c e T r a n s a c t o rU p d a t eJ a c k T r a m i e lB u y sA t a r i

C o m m o d o r eS u p p o r t sC a n a d i a nO r g a n i z a t i o n s

N e wR O M sF o rC o m m o d o r e6 4 ,1 5 4 1D i s kC o m m o d o r eI n t r o d u c e sT h e8 2 9 6C o m m o d o r e2 6 4N o wC a l l e dT h e+ 4 .

1 6 KV e r s i o n A l s o R e l e a s e dT h eC a n a d i a nC o m p u t e rM u s e u mI n s t i t u t e

C o p y l o c kP r o t e c t i o nF o r S o f t w a r eD u p l i c a t i o nM i c r o E dH o m eL i b r a r yD o n a t i o n s

T o r o n t oI n t e r n a t i o n a lS o f t w a r eS h o wW o r l dO fC o m m o d o r eI I

I N F O6 4

C o m m a n d e rM a g a z i n eS t o p s P u b l i s h i n gC o m p u i e rB o o kC e n t r e sR a c kU pP r o f i t s

T h eC o m m o d o r eD i a r y1 9 8 5 ,b yJ i mB u t t e r f i e l dC o m m o d o r eM a g a z i n eI n d e x

M A I L B O X6 4

G r a p h i c s T e r m i n a lE m u l a t o rF o rT h e6 4

P R I N T - M A S T E RF o rT h eC o m m o d o r e6 4A n t e n n aR e d u c e r

E n T e c hO f f e r sS o f t w a r eD e m oD i s k s

E n T e c hR e v o l u t i o n i z e s T a l k i n g S o f t w a r e

E n T e c hI n t r o d u c e s D a t aP r o t e c t i o nP l a nC o m p u t e rA i d e dD e s i g nf o rt h eC - 6 4

N e wW e a t h e rS e n s i n gP a c k a g eE d u c a t i o n a l A d m i n i s t r a t i v eS y s t e mN E TW O R T HT O T L M O N E Y M I N D E RF o rT h eC 6 4W A T C O MP a s c a lf o rt h eC o m m o d o r e6 4W a t e r l o oS t r u c t u r e dB A S I CF o rT h eC 6 4S E L E C T - A - R A M- 6 4 Kf o rt h eC o m m o d o r eV I C2 0A s y n c h r o n o u s R S - 2 3 2B a u dR a t e &P a r i t yM a t c h i n gA - BS w i t c h

V o i c e M a s t e r

E d i t o r i a l

L e t t e r sC o p y w r i t e sR i g h t s

T a k eT h a tT a p eW o r m s !

W o r d P r oQ u i p s

J o yC u r s e d

B i t sa n dP i e c e sL i n eD o oD a a

C o l o u r t e s t

B y t e f i n d e r

U N - D I M e n s i o n

E R R O R O U T E R

L i n eH i d e r

G h o s tL i n e r

L i s tD e c o r a t o r

S i n h i b i t o r s

L i s tT e r m i n a t o r

S a v e T e r m i n a t o r

S T O PK e y

K e y b o a r dK i l l e r

E t c h A S k e t c h .

C 6 4D e f a u l tS c r e e n C o l o u r s

T a p eS a v i n gN o t e s

R E S T O R EX

. 3

1 5

1 7

T r a n s B l o o p e r s 2 1

T w oR e v i e w s :P A L6 4 / P O W E R6 4 2 2

T h eM A N A G E RC o l u m n 2 4

H a r d w a r eC o r n e r 2 7

Q u a d r a6 4 :M e m o r yP a r t i t i o n i n g 3 2

Y o u r B A S I CM o n i t o r ,P a r t2 3 4

P i c P r i n t :H i - R e s o l u t i o nP r i n t o u t 3 6

C o m p a r i n gB A S I CP r o g r a m s 3 8

U n v e i l i n gT h eP i r a t e

P a r t i :C u r r e n tM e t h o d s 4 0

P a r t 2 :P r o g r a m m i n gS l e i g h tO fH a n d. 4 4

P a r t 3 :T h eL e g a lI s s u e 5 1P i r a c yV S .P r o t e c t i o n :W h oL o s e s ? 5 3

S p i f f y L i s t i n g s 5 4

C o l l e c t i n g :A n o t h e rV i e w 5 6

S c r a m b l i n gA B A S I C P r o g r a m 5 7

T w oP a s s w o r dP r o t e c t i o nT o o l s 6 0

D i s kD e f e n d e r 6 4

L o c k D i s k 6 6

D r i v eP r o t e c t 6 8D i s k M o d :D i s k D r i v eU t i l i t y 9 1

T h eT r a n s a c t o r V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 4/84

T h eT f t t h / N e w s.

M a n a g i n gE d i t o r

K a r l J . H .H i l d o n

E d i t o r

R i c h a r d E v e r s

T e c h n i c a lE d i t o rC h r i sZ a m a r a

A d v e r t i s i n gM a n a g e r

K e l l yM . G e o r g e

4 1 6 8 2 61 6 6 2

A r tD i r e c t o r

J o h nM o s t a c c i

S u b s c r i p t i o n s

M a n d yS e d g w i c k

C o n t r i b u t i n gW r i t e r s

D o nB e l l

M i c h a e l B e r t r a n d

D a n i e lB i n g a m o n

J i mB u t t e r f i e l d

G a r yC o b b

E l i z a b e t hD e a l

D o m e n i cD e f r a n c i s c o

G . D e n i s

B o bD r a k e

M i k eF o r a n i

J e f fG o e b e l

D a v eG z i k

P h i lH o n s i n g e r

G a r r yK i z i a k

S c o t tM a c l e a n

M i k e P a n n i n g

H o w yP a r k i n s

G l e nP e a r c e

L o u i sF . S a n d e r

G e o r g eS h i r i n i a n

D a r r e nJ . S p r u y t

C o l i nT h o m p s o n

M i k eT o d d

V i k a s hV e r m a

J a m e s W h i t e w o o d

C h r i sZ a m a r a

P r o d u c t i o n

A t t i cT y p e s e t t i n gL t d .

P r i n t i n g

P r i n t e di n C a n a d ab y

M a c L e a nH u n t e rP r i n t i n g

P r o g r a mL i s t i n g sI n T h eT r a n s a c t o r

A l lp r o g r a m sl i s t e di n T h eT r a n s a c t o rw i l la p p e a ra s t h e yw o u l d o ny o u rs c r e e ni n U p p e r / L o w e rc a s e

m o d e .T oc l a r i f yt w op o t e n t i a lc h a r a c t e rm i x - u p s ,z e r o e sw i l la p p e a ra s ' 0 'a n dt h el e t t e r" o "w i l lo f c o u r s e

b e i n l o w e rc a s e .S e c o n d l y ,t h el o w e rc a s eL ( ' 1 ' )h a sa f l a tt o pa s o p p o s e dt o t h en u m b e r1 w h i c hh a sa n

a n g l e dt o p .

M a n yp r o g r a m sw i l lc o n t a i n r e v e r s ev i d e oc h a r a c t e r st h a tr e p r e s e n t c u r s o rm o v e m e n t s ,c o l o u r s , o r

f u n c t i o n k e y s .T h e s ew i l la l s ob e s h o w ne x a c t l y a st h e yw o u l da p p e a ro n y o u rs c r e e n ,b u tt h e y ' r el i s t e d

h e r ef o rr e f e r e n c e .A l s or e m e m b e r :C T R L - qw i t h i nq u o t e si s i d e n t i c a lt o a C u r s o rD o w n ,e t a l .

O c c a s i o n a l l yp r o g r a m sw i l lc o n t a i nl i n e s t h a ts h o wc o n s e c u t i v es p a c e s .O f t e nt h en u m b e ro f s p a c e sy o u

i n s e r tw i l ln o tb e c r i t i c a lt o c o r r e c to p e r a t i o no f t h ep r o g r a m .W h e ni t i s , t h er e q u i r e dn u m b e ro f s p a c e s

w i l lb 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 hr i g h t " - w o u l db e s h o w na s - p r i n t "[ s p a c e l O J f l u s hr i g h t "

C u r s o rC h a r a c t e r sF o rP E T/ C B M/ V I C/ 6 4

D o w n- Q

u p - DR i g h t - f l

L e f t - [ l i t ]

R V S - Q

R V SO f f -E

I n s e r t - | |

D e l e t e - QC l e a r S c r n -QH o m e - QS T O P - H

C o l o u r C h a r a c t e r s F o rV I C/ 6 4

B l a c k- Q

W h i t e- QR e d - QC y a n - [ C y n ]

P u r p l e- [ P u r ]

G r e e n- QB l u e -QY e l l o w -[ Y e l ]

O r a n g e-

B r o w n -

L t .R e d -

G r e y1 -

G r e y2 -

L t .G r e e n-

L t .B l u e -

G r e y3 - [ G r 3 ]

F u n c t i o nK e y sF o rV I C/ 6 4

F l -0F 2 -QF 3 -QF 4 -B

F 5 -

F 6 -

F 7 -

F 8 -

T h eT r a n s a c t o ri s p u b l i s h e db i - m o n t h l yb y T r a n s a c t o r P u b l i s h i n gI n c . ,5 0 0S t e e l e sA v e n u e ,M i l t o n ,

O n t a r i o ,L 9 T3 P 7 .C a n a d i a n S e c o n dC l a s s m a i lr e g i s t r a t i o nn u m b e r6 3 4 2 .S e c o n dC l a s sp o s t a g e

p e n d i n ga t B u f f a l o ,N Y ,f o r 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 da d d r e s sc h a n g e st o T h e

T r a n s a c t o r ,2 7 7L i n w o o dA 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 .

T h eT r a n s a c t o ri s i n n o w a yc o n n e c t e dw i t hC o m m o d o r eB u s i n e s sM a c h i n e sL t d .o r 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 ea n dC o m m o d o r ep r o d u c tn a m e s( P E T ,C B M ,V I C , 6 4 } a r er e g i s t e r e d

t r a d e m a r k so f C o m m o d o r eI n c .

S u b s c r i p t i o n s :

C a n a d a$ i 5 C d n . U . S . A .$ 1 5 U S . A l lo t h e r$ 2 1 U S .

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

S e n da l l s u b s c r i p t i o n st o : T h eT r a n s a c t o r ,S u b s c r i p t i o n sD e p a r t m e n t ,5 0 0S t e e l e sA 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 T 3 P 7 , 4 1 6 8 7 64 7 4 1 .F r o mT o r o n t oc a l l8 2 61 6 6 2 . N o t e :S u b s c r i p t i o n sa r e h a n d l e da t t h i s a d d r e s sO N L Y .S u b s c r i p t i o n ss e n tt o o u r B u f f a l oa d d r e s s( a b o v e )w i l lb e

f o r w a r d e dt o M i l t o nH Q .

B a c kI s s u e s :$ 4 . 5 0e a c h .O r d e ra l lb a c ki s s u e sf r o mM i l t o nH Q .S O L DO U T :T h eB e s to f T h eT r a n s a c t o rV o l u m e s1 . 2 & 3 , a n dV o l u m e4 . I s s u e s4 . 5 ,& 6 a r en ol o n g e ra v a i l a b l e .

C o m p u L i t

P OB o x3 5 2

P o r tC o q u i t l a m ,B CV 5 C4 K 66 0 44 6 41 2 2 1

U . S . A .D i s t r i b u t o r :

C a p i t a l D i s t r i b u t i n g

C h a r l t o nB u i l d i n g

D e r b y ,C T0 6 4 1 8

( 2 0 3 )7 3 53 3 8 1

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

M i c r o nD i s t r i b u t i n g

4 0 9Q u e e nS t r e e tW e s t

T o r o n t o .O n t a r i o ,M 5 V 2 A 5( 4 1 6 ) 5 9 3 9 8 6 2

D e a l e rI n q u i r i e sO N L Y :

1 8 0 0 2 6 8 9 0 5 2

S u b s c r i p t i o nr e l a t e di n q u i r i e s

a r eh a n d l e dO N L Ya t M i l t o nH Q

M a s t e rM e d i a

2 6 1 W y e c r o f tR o a dO a k v i l l e ,O n t a r i o

L 6 J5 B 4

( 4 1 6 ) 8 4 21 5 5 5

E d i t o r i a lc o n t r i b u t i o n s a r ea l w a y sw e l c o m e .W r i t e r s a r ee n c o u r a g e dt o p r e p a r em a t e r i a la c c o r d i n gt o

t h e m e sa s s h o w ni n E d i t o r i a lS c h e d u l e{ s e el i s tn e a rt h ee n do f t h i s i s s u e ) .R e m u n e r a t i o ni s S A Op e rp r i n t e d p a g e . P r e f e r r e dm e d i ai s 1 5 4 1 ,2 0 3 1 , 4 0 4 0 , 8 0 5 0 ,o r 8 2 5 0d i s k e t t e s w i t hW 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 rS E Qt e x tf i l e s .P r o g r a ml i s t i n g so v e r 2 0l i n e ss h o u l d b e p r o v i d e do n d i s k

o r t a p e .M a n u s c r i p t ss h o u l d b et y p e w r i t t e n ,d o u b l es p a c e d ,w i t hs p e c i a lc h a r a c t e r s o rf o r m a t sc l e a r l y

m a r k e d .P h o t o so f a u t h o r so r e q u i p m e n t ,a n di l l u s t r a t i o n sw i l lb e i n c l u d e dw i t ha r t i c l e sd 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 sa n d / o rp h o t o sw i l lb e r e t u r n e do n r e q u e s t .

A l l m a t e r i a la c c e p t e db e c o m e st h e p r o p e r t yo f T h eT r a n s a c t o r .A l l m a t e r i a li s c o p y r i g h tb y

T r a n s a c t o rP u b l i c a t i o n sI n c .R e p r o d u c t i o ni n a n y f o r m w i t h o u t p e r m i s s i o ni s i n v i o l a t i o no fa p p l i c a b l e l a w s .P l e a s e r e - c o n f i r ma n yp e r m i s s i o n s g r a n t e dp r i o rt o t h i sn o t i c e .S o l i c i t e d m a t e r i a lI s

a c c e p t e do n a n a l lr i g h t sb a s i s o n l y .W r i t et o t h eM i l t o n a d d r e s sf o ra w r i t e r sp a c k a g e .

T h eo p i n i o n s e x p r e s s e di n c o n t r i b u t e da r t i c l e sa r e n o t n e c e s s a r i l yt h o s eo fT h eT r a n s a c t o r .A l t h o u g h

a c c u r a c yi s a m a j o ro b j e c t i v e ,T h eT r a n s a c t o r c a n n o ta s s u m el i a b i l i t yf o r e r r o r si n a r t i c l e so rp r o g r a m s .

T h eT r a n s a c t o r V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 5/84

P i r a c y :A F a c tO f L i f e ?

P i r a c y .I t e x i s t si n j u s ta b o u ta n yi n d u s t r yy o uc a nt h i n ko f , i n o n e

f o r mo r a n o t h e r .I n s o m ec i r c l e si t ' s f a r m o r er a m p a n tt h a nw e

r e a l i z e ,m a i n l yb e c a u s ei t ' s b e e nt h e r ef o r s o l o n gt h a tw e n o

l o n g e rn o t i c e .

D i dy o uk n o wa i r l i n ee m p l o y e e s a n dt h e r ei m m e d i a t ef a m i l i e sc a n

f l ya n y w h e r ei n t h ew o r l da t l i t t l eo r n o c h a r g e ?S a m ew i t hm o s t

r a i l w a y sa n db u s c o m p a n i e s .A d da l l t h e s eu p a n d y o uw o n d e rj u s t

h o wm u c ho f y o u r" f u l l - f a r e "t i c k e tg o e st o s u b s i d i z i n gf r e er i d e s .

N o b o d yi s s t e a l i n gb e c a u s en o b o d yr e a l l yl o s e sa n y t h i n g .T h e

p r e s i d e n tc o l l e c t st h es a m es a l a r y .A n dt h ea v e r a g er i d e rg l a d l y

p a y st h e p r i c eb e c a u s ei t ' sc h e a p e ro r f a s t e rt h a ng o i n gb y c a r .

F u n d a m e n t a l l y ,i t ' st h ep r i v i l e g eo f g e t t i n gs o m e t h i n gf o rn o t h i n g

f o rt h o s ec l o s e s tt o t h e o p e r a t i o n .

O t h e ri n d u s t r i e st o o . B r e w e r y e m p l o y e e sg e t f r e eb e e r .P a r k

e m p l o y e e sg e t f r e ea d m i s s i o n . H o t e lw o r k e r ss t a y r e n tf r e ea t a n y

h o t e li n t h e c h a i n .B a n ke m p l o y e e sg e tl o a n so r m o r t g a g e sm u c h

e a s i e ra t l e s si n t e r e s tt h a nm o s t .A m e m b e ro f a p o l i c e m a n sf a m i l y

r a r e l yp a y sf o ra p a r k i n gt i c k e to r m o s to t h e rm i s d e m e a n o r s .H o w

' b o u tp o l i t i c i a n s ?T a l ka b o u t" e a s ys t r e e t " ;t h e yd o n ' te v e np a y

i n c o m et a x !

T h el i s tg o e so n a n do n .B u tw h e r ed o e ss o f t w a r ef i t i n .J u s tw h oi s

g e t t i n gp r o g r a m sf o r n o t h i n gt h a to t h e r sp a y f o r . M a n u f a c t u r e r

e m p l o y e e sw i l lg e tt h es a m ep r i v i l e g e sa s t h o s ec l o s e s tt o a n yo t h e r

i n d u s t r y .I t ' so n l yn a t u r a l .A n dt h ev e n d o r sf o rt h e s e i t e m sm a k e

s p e c i a lc o n c e s s i o n st o o ;t h e yc a l li t " o nc o n s i g n m e n t "o r " o nl o a n

f o r t e s t i n gp u r p o s e s " .B u t m o s ta u t h o r sd o n ' tc o m p l a i na b o u t

t h e s e ,e v e n t h o u g he v e r ym e m b e ro f e v e r yf a m i l y a s s o c i a t e dw i t h

t h es o f t w a r e b u s i n e s sw i l lg e ta t l e a s to n ef r e er i d e .

T h er e a lp r o b l e m ,i n t h e e y e so f t h e w r i t e r s ,l i e sb e y o n dt h e

i m m e d i a t ei n d u s t r yi n d i v i d u a l s .A p a c k a g eg o e so n t h em a r k e t ,

s e l l sf o ra w h i l e ,a n de v e n t u a l l y l a n d si n t h eh a n d so f a h a c k e r ;t h e

c o m p u t e rh o b b y i s tw h os e e s p r o t e c t i o na g a i n s tc o p y i n ga s c h a l

l e n g i n gt h e i ra b i l i t i e s .M o r eo f t e nt h a nn o tt h e y w i n .T h ep r o g r a m

b e c o m e sa " c o l l e c t o r s " i t e m ,n o t b e c a u s ei t ' s h a r dt o g e t b u t

b e c a u s et h e yw o n ' th a v et o p a yf o ri t .

S o h o w m a n y" f r e e r i d e s "d o e st h ec o l l e c t o rr e p r e s e n t ?E v e ni f

e v e r ym e m b e ro f t h eT o r o n t oP E TU s e r sG r o u pw e r et o g e ta c o p y

w e ' r e o n l yu p t o 2 0 , 0 0 0 .C o m m o d o r es o l do v e r2 , 0 0 0 , 0 0 0V I C s ! -

A n dC 6 4s a l e sw i l le a s i l yp a s st h a tb y t h e e n do f 1 9 8 4 ,i f t h e y

h a v e n ' ta l r e a d y !H o b b y i s t sr e p r e s e n to n l y1 0 %o f t h em a r k e t .T h e

o t h e r9 0% w i l ln e v e rc o m ei n c o n t a c t w i t ht h eu n p r o t e c t e dc o p yo f

s o f t w a r e t h e yn e e d .S u r e , t h e r ew i l lb e s o m e ,b u t n o ta l l 1 0 0 %o f

t h eh o b b y i s t sw i l lb a g y o u rp r o g r a m se i t h e r .

P i r a c yh i t t h eg a m e sm a r k e tw o r s t , e s p e c i a l l ya m o n gs t u d e n t s .A s

s o o na s o n es t u d e n tg o ta c o p y , t h ew h o l es c h o o l w a s n ' tf a rb e h i n d .

B u tt h eg a m e sm a r k e th a s a l m o s tt o t a l l yc r a s h e d .Y o uc a n ' tb l a m e

t h a to n p i r a c y .F a d sw i l la l w a y sc o m ea n dg o ,a n d c o m p u t e rg a m e s

w e r e n oe x c e p t i o n .

B u s i n e s ss o f t w a r ei s w h e r et h e m o n e yl i e s .I f y o u ri d e ah a s a

m a r k e t ,p u r s u ei t . T h o s ef e wc o p i e st h a tr e a c ht h ec o l l e c t o r" a u

g r a t i s " j u s t a r e n ' tw o r t hc o m p l a i n i n ga b o u t .S p e n dy o u r t i m e

f i n d i n gn e ws a l e sa n d q u i tw a s t i n gt i m eb a t t l i n gp i r a t e s t h a t

w o u l d n ' th a v eb o u g h t y o u rp r o g r a ma n y w a y s .D o n ' tw a s t em o n e y

e i t h e r .A d v e r t i s i n g b u s i n e s sp a c k a g e si n t e c h n i c a lc o m p u t e rm a g a

z i n e si s l i k ea d v e r t i s i n g f r o z e n f o o dt o a c o n n o i s s e u r .S o m ew i l l

b u yi t b u tm o s tw i l lm a k et h e i ro w n .M a r k e ty o u r p r o g r a m si n t h e i r

m a r k e t ,n o ti n t h e i rv e n u e .

S o f t w a r ei s n o l o n g e ra " g e tr i c hq u i c k "b u s i n e s s .I t u s e dt o b e b u t

n o ta n ym o r e .A g o o dp r o g r a m m e rs p e n d sn o m o r et i m eo n a n e w

p a c k a g et h a na g o o dn o v e l i s ts p e n d so n a f r e s hs t o r y ,s o m eb o o k s

t a k e y e a r st o c o m p l e t e .S o i f y o up r i c ey o u rs o f t w a r eb e y o n di t s

v a l u e , n a t u r a l l yi t w i l lb e c o m ea c a n d i d a t ef o ra p i r a t e st h r i l l .

P u b l i s h e r sa r eo n ea n s w e r .M a n yb o o kp u b l i s h e r sa r en o wa d d i n g

s o f t w a r et o t h e i rl i n e .B u tj u s tl i k eb o o k s ,s o m es o f t w a r ei s n ' tw o r t h

p u b l i s h i n g ,i f y o u h a v ea f i n e l yp o l i s h e dp r o d u c t ,c o n s i d e rp r e s e n t

i n gi t t o a p u b l i s h e r .M o s tw i l lg u a r a n t e ea m i n i m u mr o y a l t yt h a ti s

u s u a l l ym o r et h a nf a i r .

D o n ' tl e tg r e e dc l o u dy o u re x p e c t a t i o n s .I a d m i t , w r i t i n g s o f t w a r e

r e q u i r e st a l e n ta n ds k i l l ,b u tn o m o r et h a ns o m eo t h e ro c c u p a t i o n s

t h a tp a yc o n s i d e r a b l yl e s s .I n t h i sb u s i n e s s ,R e t u r no n I n v e s t m e n t

i s a t i m ev e r s u sp r o f i tr a t i o .B r e a ki t d o w nt o t h e h o u ra n d

c o m p a r e .

1 d o n ' tc o n d o n ep i r a c y .N e v e rh a v e ,n e v e rw i l l .B u tt h e r e ' sn o

p o i n tw a s t i n g e n e r g yt h a tc o u l db e p u tt o m o r ep r o d u c t i v er e s u l t s .

T h e r e ' sn o t h i n ga s c o n s t a n ta s c h a n g e .. . u n t i ln e x ti s s u e ,I

r e m a i n ,

K a r f f l . H .H i l d o n

M a n a g i n gE d i t o r ,T h eT r a n s a c t o r

P o s tS c r i p t :1 w o u l dh a v ea n n o u n c e dC h r i sZ a m a r aa s o u rn e w

T e c h n i c a lE d i t o r ,b u t t h e r ew a s n ' te n o u g hs p a c e .

T h eT r a n s a c t o r V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 6/84

N e w sB R K

T r a n s a c t o rN e w s

9 5 % A dF r e e !

Y o um a yh a v en o t i c e do u r s o m e w h a tl e s s t h a ns u b t l e

m e s s a g eo n t h ec o v e r- p e r h a p sa n e x p l a n a t i o ni s i n o r d e r .

B a c kw h e nT h eT r a n s a c t o rb e g a np u b l i s h i n g ,w e a n t i c i

p a t e da n i n i t i a lc i r c u l a t i o no f a b o u t5 , 0 0 0 .O u ra d v e r t i s i n g

r a t e sw e r ed e s i g n e da c c o r d i n g l y .W h e nw e h i t 1 5 , 0 0 0p r i n t

r u n , t h er a t e sw e r ed o u b l e db u ta r ec o s t sw e r eu p b y 3 t i m e s .N o wo u r p r i n tr u n i s a l m o s t5 0 , 0 0 0a n d o u rc o s t sh a v e

o u t g r o w n w h a tw e c a n f e a s i b l yc h a r g ef o r a d s p a c e . A l

t h o u g hw e a p p r e c i a t et h e s u p p o r to u r a d v e r t i s e r sh a v e

e x t e n d e du s , t os a v em o n e yo n o u r p r i n t i n gb i l l w e ' v e

d e c i d e dt o r e d u c e o u ra v a i l a b l ea d s p a c et o t h ec o v e ra n d1

o r 2 p a g e si n s i d et h em a g a z i n e .

E a c hp e r s o nw e ' v et o l do f t h i sp o l i c ya s k s ," H o ww i l ly o u

s u r v i v ew i t h o u tt h a tr e v e n u e " .W e l l ,t o b e q u i t eh o n e s t ,

s e v e r a lo f o u ra d v e r t i s e r sh a v eo u t s t a n d i n gb i l l sg o i n gb a c k

6 m o n t h s . O t h e r sh a v eg o n eo u to f b u s i n e s s ,w h i c hm a k e si t

t o u g ht o c o l l e c ta n y t h i n g .O u rc o u n t e ri s , h o w e v e r ,t h a t

w i t h o u ta d v e r t i s i n gw e h a v ea m o r ed e s i r a b l ep r o d u c t

w h i c hm e a n sw e s t a n dt o s e l lm o r ec o p i e s .

S o m es a yt h a ta d v e r t i s i n gi s p a r t l yw h yt h e yb u ym a g a z i n e s ,

t o s e e w h a t ' sa v a i l a b l eo u t t h e r e .M o s to f w h a tw e w e r e

a d v e r t i s i n gi s m e n t i o n e da t l e a s to n c eh e r ei n N e w sB R K ,

e x c e p tf o rt h es t u f fw ef e e li s n ' tw o r t h yo f s p a c e . B e s i d e s ,w e

d i d n ' th a v et h a tm a n ya d v e r t i s e r s- f o ra b r o a d e rp i c t u r ey o u

m i g h tc o n s i d e rC O M P U T Eo r B Y T Eo r R U N . T h e yh a v e

5 0 %a d s o r b e t t e r ,a n d t h e y ' l la d v e r t i s ej u s ta b o u ta n y

t h i n g .. . w h i c hl e a d st o t h en e x tp o i n t .

W eb e l i e v eo u rr e a d e r sa r ea d v a n c i n gt o a s t a g eo f c o m p u t

i n g b e y o n dp l a y i n gg a m e sa n d / o rb u y i n g p a c k a g e ds o f t

w a r et h a tb e a r sl i t t l er e s e m b l a n c et o t h ep a c k a g ei t s e l f .W e

t h i n km o s to f o u rr e a d e r sc a nw r i t es o f t w a r et h a to u t c l a s s e s

9 0 %o f t h es t u f ff o rs a l e .S o a n y t h i n gl e s st h a nf a b u l o u sw i l l

n o ta p p e a lt o T r a n s a c t o rr e a d e r s .

E v e n t u a l l yw e m a yr e - i n t r o d u c ea d v e r t i s i n g ,b u t a t o u r

d i s c r e t i o n .A d sf o rp r o d u c t st h a td o n ' tm e e tt h e s t a n d a r d so f

o u rr e a d e r sw i l ln o tb e a c c e p t e d .I n t h em e a n t i m e ,w e w i l l

p r i n ta c o u p l eo f a d s t h a tc o n t a i ni n f o r m a t i o nw e f e e li s

i m p o r t a n te n o u g ht o m e r i t s p a c e .. . a n dw e ' l lp r o b a b l yn o t

c h a r g ef o rt h e s e .I f t h i sp o l i c yc h a n g e s ,o u rc r i t e r i a w i l lb e s o

t o u g ht o m e e tt h a t5 p a g e ss h o u l d b em o r et h a ne n o u g ht oa c c o m m o d a t ee v e r ya d .

F u r t h e r , as m a r ta d v e r t i s e rs h o u l dn o t c o n t r a c tf o rs p a c ei n

a n ym a g a z i n ew i t h o u ts e e i n ga n a u d i t e dc i r c u l a t i o nr e p o r t .

T h i si n f o r m a t i o nc a n b eo b t a i n e dt h r o u g hA B C ,t h eA u d i t

B u r e a uo f C i r c u l a t i o n s .P r e s e n t l yw e a r e n o tl i s t e dw i t h

A B C ,b u ti f w ed o s t a r ta c c e p t i n g a d sa g a i n ,w ew i l lb e .

A n df i n a l l y ,t h em a g a z i n ei n d u s t r yi s n o tu n l i k ea n yo t h e r .

C o m p e t i t i o ni s f i e r c e .B u te n t e r i n g t h eI n d y5 0 0w i t ha R o l l s

R o y c ei s p o i n t l e s s .I n s t e a dw ei n t e n dt o o p e na l e a g u ew h e r e

p o l i s h ,f i n e s s e ,a n da t t e n t i o nt o d e t a i la r em o r ei m p o r t a n t .

D o e s a n y o n ec a r et o j o i nu s ?

C o v e rD a t e

D i da n y o n en o t i c et h e d a t eo n t h ec o v e r ?D o n ' tb e a l a r m e d-

t h e I s s u en u m b e rw i l lt e l ly o u w h e t h e ry o u ' v em i s s e da n y

c o p i e so r n o t .T h ed a t ei s t h e r eo n l yb e c a u s e s e c o n dc l a s s

m a i lr e g u l a t i o n s r e q u i r ei t . T h er e a s o ni t ' ss o f a r i na d v a n c e

i s t o g i v eT h eT r a n s a c t o ra b e t t e rs h e l fl i f ea t t h en e w s t a n d .

S u b s c r i b e r ss h o u l dg e t t h i si s s u e e a r l yi n A u g u s t .B u t ,i n

s o m ep l a c e s ,t h i si s s u ew o n ' tb e o n t h en e w s t a n du n t i lt h e

s e c o n dw e e ko f S e p t e m b e r .N o k i d d i n g .S i n c eT h eT r a n s a c

t o r i s b i - m o n t h l y ,a c o v e rd a t el e s st h a nN o v e m b e rw o u l d

m e a nr e t a i l e r sb e g i nr e t u r n i n gt h i si s s u eb e f o r e t h ee n do f

O c t o b e r .I d e a l l y ,n o c o v e rd a t ew o u l dg i v eu s b e t t e re x p o

s u r et i m e .B u ts i n c et h a t ' sn o ta n o p t i o n .. .

T h eT r a n s a c t o r V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 7/84

E x p i r ya n dS u b s c r i p t i o nN u m b e r

F r o mn o wo n ,y o u rs u b s c r i p t i o nn u m b e ra n dt h ei s s u ew i t h

w h i c hy o u rs u b s c r i p t i o n e x p i r e sw i l la p p e a ra t t h e t o po f

y o u rm a i l i n gl a b e l .T h em o s tc o n v e n i e n tw a yt o r e n e wy o u r

s u b s c r i p t i o ni s w i t ht h e p o s t a g ep a i dr e p l yc a r d sa t t h e

c e n t e ro f e a c hi s s u e .T o s p e e dt h ep r o c e s sa t o u re n d , p l e a s e

i n d i c a t et h a ty o ua r e i n d e e da r e n e w i n gs u b s c r i b e ra n d

i n c l u d ey o u rs u b s c r i p t i o nn u m b e r .T h e na d dy o u rn a m e ,

a d d r e s s( d o n ' t f o r g e ty o u rp o s t a l / z i pc o d e )a n da c h a r g ec a r d

n u m b e r( &e x p .d a t e )a n dd r o pi t i n t h em a i l .I f y o uc a n ' tu s e

t h ec a r di n y o u rc o p y ,p e r h a p sy o uk n o ws o m e o n ew h oc a n .

I f t h e r ei s a n yd i s a g r e e m e n tw i t ht h eE x p i r yI s s u eo n y o u r

m o s tr e c e n tl a b e l ,p l e a s el e tu s k n o wA S A Ps o w ec a nc l e a r

t h i n g s u p .

M i c r o nD i s t r i b u t i n g

A c c e s sC o m p u t e rS e r v i c e si s n o l o n g e rd i s t r i b u t i n gT h e

T r a n s a c t o r .R e t a i l e r sw i t h s t a n d i n go r d e r sf r o m A c c e s s

s h o u l dc o n t a c tM i c r o no r u sa t T r a n s a c t o rH Q( s e ep a g e2 ) .M i c r o ns p e c i a l i z e si n c o m p u t e rm a g a z i n e ss e r v i c i n gm o s to f

t h et i t l e sc u r r e n t l ya v a i l a b l e .T h e ya l s oc a r r ya h u g es e l e c

t i o no f c o m p u t e rb o o k s ,s o f t w a r e ,h a r d w a r e ,a n da c c e s s o

r i e s .I n f a c t ,a b o u tt h eo n l yt h i n gM i c r o nd o e s n ' th a v e ,y o u

d o n ' tw a n ta n y w a y s .G i v et h e ma c a l l .

R e f e r e n c eT r a n s a c t o rU p d a t e

T h eC o m p l e t eC o m m o d o r eE n c y c l o p e d i a ,a n o t h e rn a m e

w e ' r et o y i n gw i t h ,i s w e l lo n i t sw a y .W e ' l lp r o b a b l y d e c i d e

w h i c hn a m ew e ' l lu s ea t t h el a s tm i n u t e( o rm a y b ea t h i r d ? ) .

O r d e ri n f o r m a t i o ni s s t i l ln o t a v a i l a b l es o d o n ' ts e n da n y

m o n e yj u s t y e t .A l t h o u g hi t w o n ' tb e i n c l u d e da s p a r to f as u b s c r i p t i o n ,a s p e c i a l p r i c et o s u b s c r i b e r si s u n d e rc o n s i d

e r a t i o n .R e g u l a rp r i c ew i l lb e a n y w h e r ef r o m1 2 t o 2 5 d o l l a r s

d e p e n d i n g o nf i n a ls i z e( i n p a g e s )a n d w h e t h e rw e i n c l u d e

t h eu t i l i t i e sd i s k e t t eo r n o t .

C o m m o d o r eN e w s

J a c kT r a m i e lB u y sA t a r i

J a c kT r a m i e l ,f o u n d e ra n df o r m e rv i c ec h a i r m a no f C o m m o

d o r eI n t e r n a t i o n a lb o u g h tA t a r if r o mW a r n e rC o m m u n i c a

t i o n so n a p r o m i s s o r yn o t ef o r a r e p o r t e d2 4 0 m i l l i o n

d o l l a r s .T r a m i e ll e f tC o m m o d o r el a s tJ a n u a r yf o r r e a s o n s

r a n g i n gf r o ml a c ko f s e l fc o n f i d e n c et o m a j o rd i f f e r e n c e s

w i t ho t h e rB o a r dm e m b e r s .I t w o u l ds e e mt h e f o r m e ri s

r a t h e ru n l i k e l yi n t h el i g h to f t h i sr e p o r t .

A t a r ih a sb e e nc r i p p l e db y l o s s e so v e rt h el a s t2 y e a r s ,b u t

w i t h J a c kb e h i n dt h ew h e e l ,y o us h o u l ds e en e wl i f eb e f o r e

l o n g .P l a n sw e r ea n n o u n c e dt o i n j e c to v e r7 0 m i l l i o nt o

w a r d sr e b u i l d i n g t h ec o m p a n i e s 'f o u n d a t i o n .

C o m m o d o r e m a yw e l lb e f e e l i n gt h e ys h o u l d n ' th a v el e t

J a c ks l i pa w a y . A l r e a d y4 o f C o m m o d o r e s 'd e v e l o p m e n t

s t a f fh a v ed e f e c t e dt o A t a r i ,n o d o u b td u et o T r a m i e ld y

n a m i c s .C o m m o d o r eh a s a l r e a d yf i l e ds u i ta g a i n s tT r a m i e l

a n d A t a r if o r s t e a l i n gt r a d es e c r e t s ,a b a t t l e t h a tc o u l d

p r o b a b l yg e tg r e a tT V r a t i n g s .R a m i f i c a t i o n sm a ys e v e r e l y

h i n d e rn e wA t a r i p l a n s .T e m p o r a r yi n j u n c t i o n sw e r ea l

r e a d yi s s u e da t t h et i m eo f t h i sw r i t i n g .I f p e r m a n e n ti n j u n c

t i o n sa r e b r o u g h td o w np e n d i n gt r i a l ,a n d A t a r iw i n s ,

C o m m o d o r e m a yf i n dt h e m s e l v e ss t a r i n gd o w nt h e b u s i

n e s se n do f a d o u b l eb a r r e l e dc o u n t e r s u i tf o rl o s tp r o d u c t i o n

t i m e .T h i s c o u l db e t h ec o m p u t e ri n d u s t r yl e g a lm e s so f t h e

c e n t u r y .

C o m m o d o r eS u p p o r t sC a n a d i a n

O r g a n i z a t i o n sW i t h P r o m o t i o nP r o c e e d s

T O R O N T O— C o m m o d o r eB u s i n e s sM a c h i n e sL i m i t e dr e

c e n t l yp r e s e n t e dt h eC a n a d i a nA m a t e u r H o c k e yA s s o c i a t i o n

a n dt h e C a n a d i a nA s s o c i a t i o nf o r t h e M e n t a l l y R e t a r d e d

w i t hf u n d sr a i s e dt h r o u g ha C o m m o d o r e - s p o n s o r e dp r o m o

t i o nh e l di n c o n j u n c t i o nw i t ht h eC a n a d i a nM o t i o nP i c t u r e

D i s t r i b u t o r sA s s o c i a t i o n .

O v e r$ 3 5 , 0 0 0w a sr a i s e db y t h e s a l eo f T h eC o m m o d o r e

1 9 8 4M o v i eP o s t e rC a l e n d a ra n dw a sd i v i d e db e t w e e nt h e

t w oo r g a n i z a t i o n s .R i c h a r dG . M c l n t y r e ,C o m m o d o r e ' sN a

t i o n a lS a l e sM a n a g e r ,p r e s e n t e dc h e q u e st o J i m G a t e s ,

C A H AD i r e c t o ra n d B a r r yW y m a n t ,n i n eo f t h e S c i t r o n -

- s p o n s o r e dC o m m o d o r et e a m a n dt o J a c q u e sP e l l e t i e r ,

C A M RA c t i n g E x e c u t i v e V i c eP r e s i d e n ta n dJ e f fO s w i no f t h e

C A M RT o r o n t os t a f f .

C o m m o d o r ea l s os u p p o r t st h eC A H At h r o u g hi t s n a t i o n a l

C u s t o mT e a mU n i f o r m p r o g r a m w h i c ha n n u a l l ys u p p l i e s

s w e a t e r sa n ds t o c k i n g st o 5 0 0C A H At e a m sa c r o s sC a n a d a .

F o rm o r ei n f o r m a t i o n ,c o n t a c t :

M r .R i c h a r dB r o w n e

C o m m o d o r eB u s i n e s sM a c h i n e sL i m i t e d3 3 7 0P h a r m a c y A v e n u e

A g i n c o u r t ,O N M 1 W 2 K 4

4 1 64 9 9 - 4 2 9 2

N e wR O M sF o rC o m m o d o r e6 4 ,1 5 4 1 D i s k

C o m m o d o r eh a sr e l e a s e dn e wu p g r a d eR O M sf o rT h e6 4

a n d1 5 4 1 .R e a s o n sf o rt h en e w6 4 R O Ma r eu n c l e a ra t t h i s

t i m e , b u t r e p o r t sh a v ec o m ei n t h a ti t h a sp r o b l e m sr e a d i n g

c a s s e t t e t a p e .T h i si s n o td e f i n i t e ,s o i f y o u rm a c h i n eg o e si n

f o rs e r v i c e ,c h e c kt h i so u t a ss o o na s y o ug e ti t b a c k .A s y o u

k n o w ,C o m m o d o r e ,l i k eo t h e re l e c t r o n i c sf i r m s ,s i m p l y

r e p l a c et h ee n t i r eP C b o a r df o ra b e t t e rt u r n - a r o u n dt i m e .

Y o u rb o a r di s f i x e da n do n ed a yi t t o ob e c o m e sa r e p l a c e

m e n t .

T h e1 5 4 1R O Mw a sd e s i g n e dt o m a k ea l l 4 0 4 0a n d1 5 4 1

d i s k e t t e sr e a dA N Dw r i t ec o m p a t i b l e .1 5 4 1a n d4 0 4 0w e r e

a l w a y sr e a d c o m p a t i b l e ,b u ti n t e r c h a n g e a b l ew r i t i n gw a si l l

a d v i s e d .T h eo n l yp r o b l e mh e r ei s t h a tn o wo l d1 5 4 1s w o n ' t

b e c o m p a t i b l ew i t hn e w1 5 4 1 s .C h a n c e sa r et h e y ' v e a l r e a d y

b e e nr e c a l l e d .M o r en e x ti s s u e .

B yt h ew a y ,r e m e m b e rt h ep r o b l e mw i t hS A V Ea n dR e p l a c e ?

B a c ki n t h ee a r l yd a y so f C o m m o d o r ed i s kd r i v e s ,S A V Ew i t h

R e p l a c ew a sb l a m e df o rs o m eo f t h em o s tm y s t e r i o u sd i s k

e t t e f a i l u r e s .S o f a rn o b o d yh a sb e e na b l et o d e l i b e r a t e l yr e

c r e a t e t h ep r o b l e m .I n f a c t ,t h e r eh a sb e e n n oe v i d e n c et o

T h eT r a n s a c t o r V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 8/84

s u g g e s tt h e r ee v e rw a sa p r o b l e m .D O Ss o u r c ec o d e h a s

b e e n c h e c k e dt h o r o u g h l y ,b u tn o c h a n g e sh a v ee v e rb e e n

m a d ei n t h i sa r e a .I f y o uc a ns u p p l ya p r o g r a mo r p r o c e d u r e

t o d e m o n s t r a t eh o wS A V Ew i t hR e p l a c ec a n r u i na d i s k ,

t h e r ea r ea l r e a d y2 r e w a r d su p f o rg r a b s ;a c a s eo f b e e rf r o m

H a r r yB r o o m h a l li n E n g l a n d( o n eo f t h e l e a d i n ga u t h o r i t i e s

o n d i s kd r i v e s )a n da b o t t l eo f c h a m p a i g nf r o mT r a n s a c t o r

P u b l i s h i n gI n c .G o o dL u c k !

C o m m o d o r eI n t r o d u c e sT h e8 2 9 6

T h en e w8 2 9 6h a s1 2 8 KR A M( 9 6 Kp l u s3 2 Ko r u s eo f t h e

U s e rP o r t ,b u tn o tb o t hs i m u l t a n e o u s l y ) ,1 8 KR O M ,d e t a c h

a b l ek e y b o a r d ,t i l t / s w i v e l8 0 x 2 5s c r e e n ,a n da n 8 0 5 0d i s k

u n i t ( 1 . 0 5M B y t e s )t h a tm a yo r m a yn o t b e b u i l t - i n .T h e

c o m p u t e ri s b e i n gp a c k a g e di n B S e r i e sc a s i n g s ,( w h yn o t ,

t h a tw a sa b o u tt h eo n l yg o o dt h i n gg o i n gf o rt h a tm a c h i n e )

T h ep a c k a g ec o m e sw i t hs o f t w a r e :P a p e r C l i p( w i t ho v e r9 0 0

l i n e sf o r t e x t ) ,C a l c R e s u l t ,a n dT h eC o n s u l t a n td a t a b a s e .

C o m m u n i c a t i o n sa n ds y s t e mu t i l i t i e sa r ei n c l u d e dt o o ,b u t

o t h e r w i s ei t w i l lb e v i r t u a l l y1 0 0 %c o m p a t i b l ew i t ha n y

s o f t w a r ef o rt h e8 0 3 2 / 9 6 .N o w o r d o np r i c e .C o n t a c ty o u r

d e a l e ro r :

M r .R i c h a r d M c l n t y r e

C o m m o d o r eB u s i n e s sM a c h i n e sL i m i t e d

3 3 7 0P h a r m a c y A v e n u e

A g i n c o u r t ,O N M 1 W 2 K 4

4 1 64 9 9 - 4 2 9 2

C o m m o d o r e2 6 4N o wC a l l e dT h e+ 4 ,

1 6 KV e r s i o n A l s oR e l e a s e d

R e m e m b e rt h eT E D ?C h a n g e dt o t h e2 6 4 ?N o wi t ' sc a l l e dt h e+ 4 . S a m em a c h i n ei n a l lc a s e s- s a m eo l dC o m m o d o r et o o .

S e e m sp r o d u c tn a m ec h a n g e sa t C o m m o d o r ew o u l db e a n

e n t i r ed e p a r t m e n tb y n o w .

A l t h o u g hC o m m o d o r eh a s l o t so f V I C2 0 s w a r e h o u s e d ,

p r o d u c t i o no f t h ec l a s s i cc o l o u rp i o n e e rh a sa l l b u tc o m et o

a n e n d m a k i n gw a yf o r t h e C o m m o d o r e1 6 . T h e 1 6 i s

b a s i c a l l ya 1 6 Kv e r s i o no f t h e + 4 ( 6 4 K )p a c k e di n a b l a c k

V I C / 6 4 s h a p e dc a s i n g .D u b b e d , " T h eL e a r n i n gM a c h i n e " ,

i t ' sb e i n ga i m e da t t h e u n i n i t i a t e dc o m p u t e ru s e r .

L i k et h e + 4 , m o s to f t h e I / Op o r t sh a v eb e e na l t e r e dt o

d i f f e r e n tc o n n e c t o r sm a k i n go l d p e r i p h e r a l si n c o m p a t i b l e .H o w e v e r ,o l d t a p e sa n dd i s k e t t e ss h o u l d b er e a d a b l ef r o m

t h en e wp e r i p h e r a l s .

T h eb e s t p a r ti s t h ep r i c e :$ 9 9U Sf o rt h em a c h i n ei t s e l f ,p l u s

p e r i p h e r a l s .N o tb a dc o n s i d e r i n ga l l t h ef e a t u r e s .1 6 c o l o u r s

w i t hb r i l l i a n c ea n d f l a s h i n ga t t r i b u t e s ,e x t e n d e dB A S I C ,

e x t e n d e dM o n i t o rc o m m a n d s ,g r a p h i c sc o m m a n d s ,e d i t i n g

c o m m a n d s ,a n dt h es o u n di s s t i l lp r e t t yg o o de v e nw i t h o u t

t h eS I Dc h i p .

C o m p a r e dt o e a r l i e rt e c h n o l o g y ,t h e 1 6 a n d+ 4 w i l lm a k e

l e a r n i n gm u c hm o r ee n j o y a b l ea s a w a r e n e s sf o ro d ds y s t e m

c o n f i g u r a t i o n sw i l lb e v i r t u a l l ye l i m i n a t e d .F o rm o r e ,c o n

t a c ty o u rd e a l e ro r C o m m o d o r e .A v a i l a b l eF a l l' 8 4 .

G e n e r a lN e w s

T h eC a n a d i a nC o m p u t e rM u s e u mI n s t i t u t e

T h en e wC o m p u t e rM u s e u mw i l lp r o v i d eT o r o n t ow i t ha n

e n h a n c e di n t e r n a t i o n a lh i g h - t e c hp r o f i l e ,i m p o r t a n tf o rt h e

d e v e l o p m e n to f a n a d v a n c e d - t e c h n o l o g yi n d u s t r i a lb a s e .

T h em u s e u mw i l lb e a p l a c ew h e r ep e o p l em a yt u r nt o g a i n

s o m ec o m p u t e rl i t e r a c y ,a n dt h u s ,a n i m p o r t a n te d u c a t i o n a l

r e s o u r c ef o rt h er e g i o n .T h em u s e u mw i l la d dt o T o r o n t o ' s

t o u r i s mi n d u s t r y .T h em u s e u mw i l lb e a s i g n i f i c a n ta r c h i t e c

t u r a ld e v e l o p m e n tf o rT o r o n t o .

I m p a c to n t h ec o m p u t e ri n d u s t r y .T h em u s e u mw i l lp r o v i d e

a s h o w c a s ef o r C a n a d i a na c c o m p l i s h m e n t si n c o m p u t e r s

a n da p l a c ew h e r ei n d u s t r yc a nh i g h l i g h t t h e e v o l u t i oo f

i d e a sa n da d v a n c e sw h i c h h a v el e ds o c i e t yi n t ot h ec o m

p u t e ra g e .T h em u s e u mw i l lc o v e rt h e u s ea n di m p a c to f

c o m p u t e r si n m a n yf a c e t so f b u s i n e s s ,t h ea r t sa n ds o c i e t y .

F o rm o r ei n f o r m a t i o n ,c o n t a c t :

T h eC a n a d i a nC o m p u t e rM u s e u mI n s t i t u t e

2 1 2K i n gS t r e e tW .S u i t e4 0 0

T o r o n t o ,O N M 5 H 1 K 5

4 1 6 5 9 3 - 5 7 7 7

C o p y l o c kP r o t e c t i o nF o rS o f t w a r eD u p l i c a t i o n

A n i m p r o v e dv e r s i o no f C O P Y L O C K( T M )p r o t e c t i o n t e c h

n o l o g yi s n o wa v a i l a b l ef r o mM a g t e c h . T h i sn e wp r o t e c t i o n

h a s t o t a l l yd e f e a t e d t h et w o m o s tf o r m i d a b l ep r o t e c t i o n -

- b r e a k i n gp r o g r a m sa v a i l a b l e t o d a y ,C O P YI I P Ca n dC O P Y -

W R I T E .

U s i n gt h e s t a n d a r dC O P Y L O C Kp r o t e c t i o n ,e a c hs o f t w a r e

p r o g r a mi s d u p l i c a t e du s i n ga M e t e r e dP r o g r a mD i s c .T h e s e

d i s c sa l l o wa f i n i t en u m b e ro f d u p l i c a t e d c o p i e st o b e

p r o d u c e dd u r i n ga d u p l i c a t i o nr u n .T h es t a n d a r dC O P Y -

L O C Kp r o t e c t i o ni s c u r r e n t l ya v a i l a b l ef o rt h eI B MP C .D o s

1 . 1 a n d2 . 0o p e r a t i n gs y s t e m s ,a l t h o u g hm o r ev e r s i o n sa r e

e x p e c t e di n t h ef u t u r e .

C u s t o ms o f t w a r ep r o t e c t i o ni s c u r r e n t l y a v a i l a b l ef o rc e r t a i n

C o m m o d o r e ,A p p l e ,I B M ,a n dA t a r is y s t e m s .T h i st y p eo f

p r o t e c t i o nc a nn o tb e b r o k e n b yp r o t e c t i o n - b r e a k i n g

g r a m s a n do f f e r sa u n i q u ep r o t e c t i o nm e t h o df o rs o f t w a r e .

T h ed u p l i c a t i o ni s d o n e u n d e rc l e a n c o n d i t i o n sa n de a c h

p r o d u c t i o nr u ni s h e a v i l yq u a l i t yc o n t r o l l e df o rt r o u b l ef r e e

s o f t w a r ep e r f o r m a n c e .

M a g t e c hi s o n e o f C a n a d a ' sl a r g e s ts o f t w a r ed u p l i c a t i o n

h o u s e sa n do f f e r sb u l kd u p l i c a t i n ga s w e l la s p a c k a g i n g

s e r v i c e s .F o rf u r t h e ri n f o r m a t i o np l e a s ec a l lo r w r i t e :

M a g t e c hI n c .

8 7 T e l s o nR o a d

M a r k h a m ,O N L 3 R1 E 4

4 1 64 7 4 - 0 1 7 0

T h eT r a n s a c t o r V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 9/84

M i c r o E dH o m eL i b r a r yD o n a t i o n s

P a s sH a l fM i l l i o nD o l l a rM a r k

D u r i n gt h e p a s t t h r e em o n t h s ,M i c r o E d ,I n c o r p o r a t e d ,a

M i n n e a p o l i s - b a s e dp u b l i s h e ro f e d u c a t i o n a ls o f t w a r e ,h a s

d o n a t e dm o r et h a na h a l fm i l l i o nd o l l a r sw o r t ho f i t s i n s t r u c

t i o n a lp r o g r a m st o s c h o o ls y s t e m si n t e r e s t e di n e s t a b l i s h i n g

f r e es o f t w a r e l e n d i n gl i b r a r i e s f o rt h e f a m i l i e st h e ys e r v e ,

a c c o r d i n gt o M i c r o E dP r e s i d e n tT h o r w a l dE s b e n s e n .

" A p e r s i s t e n tp r o b l e mf o re d u c a t o r sa n dp a r e n t , "o b s e r v e s

E s b e n s e n ," h a sb e e nt h ed e v e l o p m e n to f e f f e c t i v ec o m m u n

i c a t i o nc h a n n e l sb e t w e e nh o m ea n d s c h o o l .C o n f r o n t e d

n o ww i t ht h e g r o w t ho f t h e h o m ec o m p u t e rm a r k e t ,i t

b e h o o v e sb o a r d so f e d u c a t i o na n dt h e i ra d m i n i s t r a t o r st o

r e s p o n dv i g o r o u s l yt o t h e c h a l l e n g eo f h e l p i n gf a m i l i e s

m a k ei n f o r m e dd e c i s i o n sw i t hr e s p e c tt o t h ep r o p e ru s eo f

e d u c a t i o n a l s o f t w a r et h a tc a n e f f e c t i v e l ys u p p l e m e n tt h e

a c a d e m i cg o a l so f t h e i rl o c a ls c h o o l s y s t e m s . "

T o e n c o u r a g et h ed e v e l o p m e n to f a n o r d e r l ya n dc o m p r e

h e n s i v ep l a nf o r d e a l i n g w i t ht h i sp r o b l e m ,M i c r o E dh a s

b e e nd o n a t i n gu p t o t e n t h o u s a n dd o l l a r sw o r t ho f i t s

e d u c a t i o n a lp r o g r a m st o a n y e l e m e n t a r ys c h o o ll i b r a r y

s y s t e mt h a tc a nm e e td e s i g n a t e d s t a n d a r d sf o rs t r e n g t h e n

i n g h o m e / s c h o o lc o o p e r a t i o ni n t h e a r e ao f c o m p u t e r - a s

s i s t e d i n s t r u c t i o n .

T o d a t e ,m o r et h a nf i f t ys c h o o ls y s t e m sa c r o s s t h ec o u n t y

h a v eq u a l i f i e df o r a M i c r o E dg r a n t ,w i t hf u r t h e ra p p r o v a l s

p e n d i n g .

N oc u t o f ft i m eh a sy e tb e e ne s t a b l i s h e df o rg r a n tp r o p o s a l s

t o b e s u b m i t t e dt o M i c r o E d ." W eh o p et o b e a b l et o d o t h i s

o n a c o n t i n u i n gb a s i s , "s y sE s b e n s e n ." W et h i n ki t ' sa n i d e at h a tm a k e si t p o s s i b l ef o r e v e r y b o d yt o b e a w i n n e ri n a

w o r t h yc a u s e .T h eo n l yl i m i t a t i o nw i l lb e t h e e x t e n tt o

w h i c hw e e v e n t u a l l yf i n do u r s e l v e sh a r dp r e s s e dt o h a n d l e

t h ep r o d u c t i o nl o a d .W e ' l lj u s th a v et o s e eh o wt h i n g sw o r k

o u ti n t h a tr e g a r d . "

I n q u i r i e sm a yb e a d d r e s s e dt o :

M i c r o E dH o m eL i b r a r yG r a n tP r o j e c t

P OB o x 4 4 4 0 0 5

E d e nP r a i r i e ,M N 5 5 3 4 4

6 1 29 4 4 - 8 7 5 0

E v e n t s

T o r o n t oI n t e r n a t i o n a lS o f t w a r eS h o w

O f f e r sG r e a tO p p o r t u n i t yF o r" C o m p u t e r p h i l e s "

T o r o n t o .. . T h ef i r s tT o r o n t oI n t e r n a t i o n a lS o f t w a r eS h o w

h a sb e e na n n o u n c e db y t h ep r o d u c e r so f C o m p u t e rF a i r .

H u n t e rN i c h o l sI n c .r e c e n t l yi m p r e s s e dt h e i n d u s t r yw i t hi t s

e n o r m o u ss u c c e s sa t C o m p u t e rF a i r' 8 4 .T h eT o r o n t oI n t e r

n a t i o n a lS o f t w a r eS h o wi s a n a t u r a lp r o g r e s s i o na n d a n

a n s w e rt o t h ep r o b l e mo f k e e p i n gu p t o d a t ew i t ht h el a t e s t

s o f t w a r ep r o d u c t sa s t h e yb e c o m ea v a i l a b l ei n t h em a r k e t .

I n a d d i t i o nt o h u n d r e d so f e x h i b i t st h a tw i l la p p e a lt o a l l

c o m p u t e ru s e r sf o r h o m ea n d b u s i n e s s , t h e r ew i l lb e a

s e m i n a rp r o g r a mr u n n i n gi n c o n j u n c t i o n w i t ht h eS h o w .

I n k e e p i n gw i t ht h e h i g h s t a n d a r do f p r e v i o u sH u n t e r

N i c h o l ss h o w sa n d s e m i n a r s ,t h e T o r o n t oI n t e r n a t i o n a l

S o f t w a r eS h o wp r o g r a mi s e x p e c t e dt o g i v e e x c e l l e n ti n s i g h t

i n t og r o w i n ga r e a ss u c ha s h a r d w a r ec o m p a t i b i l i t y ,u s e r

i n t e r f a c e sa n df u t u r et r e n d s .

T o r o n t oI n t e r n a t i o n a lS o f t w a r eS h o w ,I n t e r n a t i o n a lC e n t r e ,

6 9 0 0A i r p o r tR o a d( a tD e r r yR d . ) ,M i s s i s s a u g a , O n t a r i o .

S h o wH o u r sa n d D a t e s :S t a r t sT h u r s d a y ,S e p t e m b e r2 0 ,

1 9 8 4 ,u n t i lS u n d a y .T h u r s d a y a n dF r i d a y ,1 0 a m t o 9 p m ,

S a t u r d a ya n dS u n d a y ,1 0 t o 6 .

A d m i s s i o n :A d u l t s$ 6 . 0 0 :S e n i o r s / S t u d e n t s$ 5 . 0 0 . S p e c i a l

r a t e sf o r g r o u p sa v a i l a b l ef r o mS h o wM a n a g e m e n ti n a d

v a n c e .F o rm o r ei n f o r m a t i o n :

H u n t e rN i c h o l sI n c .

7 2 1 P r o g r e s sA v e n u e

S c a r b o r o u g h ,O N M 1 H 2 W 7

4 1 64 3 9 - 4 1 4 0

W o r l dO f C o m m o d o r eI I

T h es e c o n d a n n u a lW o r l dO f C o m m o d o r eS h o wi s s c h e d

u l e df o rN o v e m b e r2 9 t h r uD e c e m b e r2 , 1 9 8 4 ,a t 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 .U n l i k el a s ty e a r ,t h i sy e a r ' ss h o ww i l l

n o tb e s h a r e db y t h eH o m eE n t e r t a i n m e n tS h o w .

B a s e do n t h es u c c e s so f l a s ty e a r ' ss h o w ,t h i so n es h o u l d b e

o n eo f t h e w o r l d ' sb e s t .S o f a r ,B r i t a i n ' sf a m e d" P e tS h o w "h a sh e l dt o ph o n o u r ss i n c ei t b e g a n .B u t o n l yb e c a u s ei t h a d

n o c o m p e t i t i o n .N o ta n ym o r e .

F l o o rs p a c ei s $ 1 1 . 5 0 / S qF t . F o rm o r ei n f o r a m t i o n , c o n t a c t

H u n t e rN i c h o l s a b o v e .

B o o k sA n dM a g a z i n e s

I N F O6 4

A n e wC o m m o d o r ei n f o r m a t i o nm a g a z i n eh a se m e r g e df o r

u s e r so f t h e 6 4 . I N F O6 4 i s p u b l i s h e dq u a r t e r l y o u to fA u b u r n ,W A .A l m o s ta l lo f t h em a g a z i n ei s p r i n t e dw i t ha d o t

m a t r i xp r i n t e r ,b u tu s eo f r e v e r s et y p e ,b o r d e rl i n e s ,s h a d i n g

f o r3 De f f e c t s ,a n dh i - r e sp r i n t e rd u m p sg i v ei t a r a t h e rs m a r t

a p p e a r a n c e . F o rm o r e ,c o n t a c t :

I N F O6 4

P OB o x9 5 8

A u b u r n ,W A 9 8 0 7 1

2 0 6 8 3 3 - 6 5 0 2

C o m m a n d e rM a g a z i n eS t o p sP u b l i s h i n g

C o m m a n d e rM a g a z i n e ,a C o m m o d o r ei n f o r m a t i o nm o n t h l yo u to f T a c o m a ,W A ,h a sc e a s e dp u b l i c a t i o n .T h ec o m p a n y

t h a to w n e dC o m m a n d e rw a sr e c e n t l ya c q u i r e db yZ i fD a v i s ,

T h eT r a n s a c t o r V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 10/84

t h e p u b l i s h e rr e s p o n s i b l ef o r C r e a t i v eC o m p u t i n ga m o n g

o t h e r s .Z i fD a v i si s s u b s t i t u t i n gc o p i e so f C r e a t i v et o f u l f i l l

s u b s c r i p t i o n o b l i g a t i o n sa t C o m m a n d e r .

C o m p u t e rB o o kC e n t r e sR a c kU p P r o f i t s

T h e r e ' sn o d e n y i n gi t . P e r s o n a lc o m p u t i n gh a st a k e nt h e

n a t i o nb y s t o r m !A n di t ' sa s t o r mt h a t ' sn o ta b o u tt o a b a t e .

F o r y o u , t h er e t a i l e r ,t h i s m e a n sa t h u n d e r o u sm a r k e t .

T y p i c a lc o m p u t e r o w n e r si n v e s ta s m u c hi n c o m p u t e r - r e l a

t e db o o k sa n db o o k - s o f t w a r ea s i n h a r d w a r e .

C o p pC l a r kP i t m a nC o m p u t e r B o o kC e n t r e sc o m ei n a l l

s h a p e sa n d s i z e s .W e h a v eo n ej u s tr i g h tf o r y o u rr e t a i l

b u s i n e s s .O u rs p i n n e rr a c kc a nh o l du p t o 1 0 0b o o k s— 2 0

d i f f e r e n tt i t l e so n f o u r i n d i v i d u a l l ym o v i n gt i e r s .T h eb o o k s

a r e e a s i l ya c c e s s i b l et o y o u rc u s t o m e r si n a m i n i m u m

a m o u n to f v a l u a b l ef l o o rs p a c e .

W ec a ns t a r ty o uw i t ha s e l e c t i o no f t i t l e sf r o mH o w a r dW .

S a m s ,P i t m a n ,a n dW a d s w o r t hE l e c t r o n i cP u b l i s h i n gt a i

l o r e dt o y o u rc u s t o m e r sn e e d sa n dg u a r a n t e e dt o k e e pt h e m

c o m i n gb a c kf o rm o r e .

O u rP i t m a nP r o g r a m m i n gP o c k e tG u i d e sh a v ea l r e a d ys o l d

o v e r 2 5 0 , 0 0 0c o p i e si n t e r n a t i o n a l l y .T h ed i s p l a y e ri s y o u r s

f r e ew i t hy o u r p u r c h a s eo f a p r e s e l e c t e dg r o u po f P i t m a n

P o c k e tG u i d e s .F o rm o r ei n f o r m a t i o nc o n t a c tC o p pC l a r k

P i t m a no r y o u rl o c a lb o o ka n ds o f t w a r e w h o l e s a l e r .

C o p pC l a r kP i t m a nL t d .

4 9 5W e l l i n g t o nS t .W e s t

T o r o n t o ,O N M 5 V 1 E 9

4 1 6 5 9 3 - 9 9 1 1

d o r em a g a z i n ei n d e x ,P c D e xp r o v i d e sf a s t ,e a s ya c c e s st o

t h e o f t e no v e r w h e l m i n ga m o u n to f m i c r o c o m p u t e rm a g a

z i n el i t e r a t u r e .D e s i g n e da s s i x s e p a r a t ei n d e x e s — s u b j e c

t i t l e ,p r o g r a ml i s t i n g s ,s o f t w a r e r e v i e w s ,h a r d w a r er e v i e w s ,

a n d t a b l e so f c o n t e n t s — P c D e xa l l o w s t h e s e r i o u sh o m e ,

b u s i n e s s , o re d u c a t i o n a l u s e rt o q u i c k l yl o c a t es p e c i f i ci t e m s

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

a n d r e v i e w s . S p e c i a l f e a t u r e si n c l u d ec r o s s - r e f e r e n c i n

p r o g r a md e s c r i p t i o n s ,u p d a t e sa n dr e v i s i o n s , s p e c i f i cm a

c h i n er e q u i r e m e n t s ,a n ds u g g e s t i o n sf o r l o c a t i n gb a c ki s

s u e s .

P c D e xi n d e x e st h e 1 2m o s tp o p u l a rC o m m o d o r ea n dr e l a t e d

g e n e r a lm i c r o c o m p u t e r m a g a z i n e sp u b l i s h e db e t w e e nJ a n

u a r y1 9 8 2a n dA p r i l1 9 8 4 ,w i t hy e a r l yu p d a t e sp l a n n e dt o

i n c l u d ef h ec u r r e n tt h r e ey e a r s .P c D e xi s i n t e n d e d b o t ha s a

r e f e r e n c ec o m p a n i o nt o a u s e r ' so w nm a g a z i n ec o l l e c t i o n

a n da s a r e f e r e n c et o a b r o a d e rb a s eo f m a g a z i n el i t e r a t u r e .

P c D e xQ u a r t e r l yf o l l o w s t h es a m ef o r m a t , b u tw i l lb e p u b

l i s h e df o u rt i m e sa y e a r w i t ha n a n n u a lc o m p i l a t i o na n dw i l l

i n c l u d ea n yr e l e v a n tn e wp u b l i c a t i o n sw h i c hm a ya p p e a r .

P c D e xQ u a r t e r l yi s a v a i l a b l et h r o u g hs u b s c r i p t i o no n l yf o r

t h o s ew h ow a n tt o b e u p - t o - d a t eo n c u r r e n tC o m m o d o r e

r e l a t e d p u b l i c a t i o n s .

P c D e xi s a v a i l a b l ea t b o o k s t o r e so r d i r e c t l yf r o mA l t a c o mf o r

$ 1 4 . 9 5 ;P c D e xQ u a r t e r l yi s $ 1 7 . 9 5f o ra o n ey e a rs u b s c r i p

t i o n .D i r e c t i n q u i r i e st o :

A l t a c o m ,I n c . ,

P . O .B o x1 9 0 7 0

A l e x a n d r e a ,V A 2 2 3 1 4

7 0 36 8 31 4 4 2 .

T h eC o m m o d o r eD i a r y1 9 8 5 ,b y J i mB u t t e r f i e l d

A c o m p u t e rr e f e r e n c e d a t eb o o k ,f r o mC o p pC l a r k P i t m a n .

T h i sh a n d yp o c k e t - s i z e dd i a r y f e a t u r e sa w h o l ew e e kp e r

p a g es p r e a di n a c l e a r ,u n c l u t t e r e df o r m a t .

A c o n v e n i e n tl i s t i n go f a l l m a j o rc o m p u t e rs h o w sa c r o s s

N o r t hA m e r i c a a n d E u r o p ea p p e a r si n t h ef r o n tm a t t e ro f t h e

d i a r y .

E x t e n s i v er e f e r e n c e m a t e r i a lf o rt h eC 6 4 ,V 1 C 2 0 ,P e t / C B M

S e r i e s ,B - S e r i e s ,t h eC o m m o d o r e2 6 4 a n d3 6 4 ,w r i t t e nb yJ i mB u t t e r f i e l di s f e a t u r e d - m e m o r yl a y o u t s ,s c r e e nc o d e s ,

u s e f u ls h o r tp r o g r a m s ,m a c h i n el a n g u a g ei n s t r u c t i o n a ls e t ,

K e r n a ls u b r o u t i n e s ,a n dm u c hm o r e !

S p e c i a l F e a t u r e :T h eC o m m o d o r eD i a r yc o v e rc a ne a s i l yb e

c u s t o m i z e dt o s u i ty o u rb u s i n e s sa n d / o rp r o m o t i o n a ln e e d s .

F o r f u r t h e ri n f o r m a t i o np l e a s ef e e l f r e e t oc o n t a c t :G u s

C r e c e sa t C o p pC l a r kP i t m a nL t d .( s e ea b o v e )

C o m m o d o r eM a g a z i n eI n d e x

A l t a c o m ,I n c .i s i n t r o d u c i n gP c D e xa n dP c D e xQ u a r t e r l y ,

m i c r o c o m p u t e r m a g a z i n er e s o u r c e g u i d e st o C o m m o d o r e

6 4 ,V I C - 2 0 ,a n dP E T / C B M . T h eo n l ye x c l u s i v e l yC o m m o -

S o f t w a r eN e w s

M A I L B O X6 4

M A I L B O X6 4 -A r e v o l u t i o n a r yn e wA m a t e u rR a d i oT e l e

t y p e" B u l l e t i nB o a r d S y s t e m "o p e r a t i n ga t 1 1 0B a u dA S C I I

f o rt h eC o m m o d o r e6 4 c o m p u t e r .M A I L B O X6 4 i n c o r p o r a t e s

m a n yo f t h e f e a t u r e sf o u n di n m u c hm o r ee x p e n s i v es y s

t e m s a n di n s o m ea r e a se x c e e d st h o s e s y s t e m s .T h ep r o

g r a mi s w r i t t e ni n B A S I Ca n dc a n b er e a d i l yt a i l o r e db y t h e

a v e r a g eu s e r .M A I L B O Xi s a n i d e a lc h o i c ef o r t h e b u d g e t

c o n s c i o u si n d i v i d u a lo r c l u b .

P r o v i d e s2 0 d i f f e r e n tu s e rc o m m a n d si n c l u d i n g :

O P E N - o p e n st h eb u f f e r t o s t o r et e x t .

C L O S E - c l o s e st h em e s s a g eb u f f e r .

S A V E - s a v et h em e s s a g eb u f f e rt o t h eS y s o pd i s k .

M S G - t r a n s m i t st h e c o n t e n t so f t h em e s s a g eb u f f e r .

P R I N T - p r i n t st h ec o n t e n t so f t h em e s s a g eb u f f e rt o t h e

S y s o pp r i n t e r .

I N F O - t r a n s m i t s t h eS Y S T E Mf i l e .

B E A C O N- t r a n s m i t st h eC Qb e a c o nc a l l .

L O G - l o g st h eu s e r ' sc a l lt o t h eS y s t e md i s k .

G R A P H I C S- a c t i v a t e st h eg r a p h i c sm o d e .

I n a d d i t i o nt o t h e u s e rc o m m a n d s ,t h e r e a r e3 1 S y s o p

c o m m a n d sa l l o w i n gf o rc o m p l e t ec o n t r o la n dv e r s a t i l i t y f o r

T h eT r a n s a c t o r V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 11/84

t h eS y s t e mO p e r a t o r .

M A I L B O X6 4 i n c l u d e sa l o w - r e s o l u t i o nG r a p h i c sM o d e

w h i c ha l l o w st h e t r a n s m i t t i n go f C o m m o d o r eg r a p h i c sa n d

c o l o u rt o u s e r sw i t ha C o m m o d o r e6 4 c o m p u t e r .

M A I L B O X6 4 i n t e r f a c e sv i at h eU s e r I / OP o r to f t h eC o m m o

d o r e6 4 a n di s c o m p a t i b l ew i t hm o s tp o p u l a rT e r m i n a lU n i t

( T U )i n t e r f a c e si n c l u d i n g t h e K a n t r o n i c sa n dA E A .R e q u i r e s

t h e C o m m o d o r e6 4 c o m p u t e r ,D i s kD r i v e ,a P r i n t e ra t

d e v i c e# 4 ,T Ua n dy o u rr a d i ot r a n s c e i v e r .

A v a i l a b l ef r o mR A KE l e c t r o n i c so n d i s kf o r $ 4 9 . 9 5p l u s

$ 2 . 0 0 s h i p p i n ga n d h a n d l i n g . C a t a l o g o r d e rn u m b e ri s

R M 8 3 7 .

R A KE l e c t r o n i c s

M i c r o c o m p u t e rS o f t w a r e

P . O .B o x1 5 8 5

O r a n g eP a r k ,F L 3 2 0 6 7

9 0 42 6 4 - 6 7 7 7

G r a p h i c s T e r m i n a lE m u l a t o rF o rT h e6 4

T h e s t a n d a r dm e t h o df o r t r a n s m i t t i n gd a t at o g r a p h i c s

t e r m i n a l si s e x t r e m e l yc l e v e ra n ds i m p l e ,b u ta B a s i cp r o

g r a mf o r t h i so n t h eC o m m o d o r e6 4 i s t o os l o wt o k e e pu p

w i t ha 3 0 0b a u dr a t e .T h i si s t r u ee v e ni f t h ep r o g r a mu s e s

m a c h i n el a n g u a g eg r a p h i c ss u b r o u t i n e s .B e c a u s ei t i s w r i t

t e nt o t a l l y i nm a c h i n el a n g u a g e ,G R A P H - T E R M6 4 n o to n l y

c a nd i s p l a yh i g h - r e s o l u t i o ng r a p h sa s t h e ya r et r a n s m i t t e d

b u tc a nd o w n l o a dt h ep l o tf i l e sa n dr e p l a yt h e mu p t o 2 0

t i m e sf a s t e r .I t c a na l s op r o d u c e h a r dc o p i e so f t h ep l o t so n

t h eC o m m o d o r e1 5 2 0p l o t t e r .

G R A P H - T E R M6 4 i s a t e r m i n a lp r o g r a mw h i c hp r i n t s t e x t

a n dh i g hr e s o l u t i o np l o t sg e n e r a t e db y a m a i n f r a m ec o m

p u t e r .I t i s t h u so f p a r t i c u l a r i n t e r e s tt o s c i e n t i s t sa n d

e n g i n e e r sw h ou s e s t a n d a r d g r a p h i c sp r o g r a m s w h i c hg e n

e r a t ep l o tf i l e si n T e k t r o n i xf o r m a t .W h i l ed i s p l a y i n gt h e

i n c o m i n gd a t a ,t h e p r o g r a ma l s o s t o r e si t i n m e m o r yf o r

s u b s e q u e n tt r a n s f e rt o d i s k o rt a p eo r t o t h eC o m m o d o r e

1 5 2 0P l o t t e r .D u r i n ga t e r m i n a ls e s s i o n o r a f t e r w a r d s ,t h e

i n f o r m a t i o nc a n b e r e v i e w e da t h i g hs p e e d ,s l o w m o t i o no r

s t o pa c t i o n .T h eh i g hr e s o l u t i o ns c r e e no f t h eC o m m o d o r e

6 4 i s l i m i t e dt o 3 2 0x 2 0 0p i x e l sb u t o n t h e p l o t t e rt h e

r e s o l u t i o ni s 6 3 0x 4 8 0 .T h i si s n o tm u c hl e s st h a nt h a to f

T e k t r o n i x4 0 1 0 ,1 0 2 4 x 7 8 0 .

T h em o s ti m p o r t a n tp r o g r a mi s S A V E / L O A Dw h i c hs t o r e s

a n dr e t r i e v e sd a t ad o w n l o a d e di n t om e m o r y .F o rt h o s ew h o

w i s ht o g e n e r a t et h e i ro w np l o t s ,t h ep r o g r a mT E K - E N C O -

D E Rs h o w sh o wt o e n c o d ep l o t si n T e k t r o n i xf o r m a t .P r o

g r a mT E K P L O T T E Ri s a B a s i cp r o g r a mw h i c hp r o d u c e s

h a r dc o p i e so f d o w n l o a d e dp l o t so n t h eC o m m o d o r e1 5 2 0

P l o t t e ri n t h e s a m e w a ya s t h em a c h i n el a n g u a g em e n u

o p t i o no f G R A P H - T E R M6 4 .I t i s i n c l u d e df o rt h o s ew h oa r e

c u r i o u sa b o u th o wt h ep r o g r a m sw o r ko r w h om a yw a n tt o

e x t e n d t h e m .

T h es u b r o u t i n e s i n c l u d et h e u s u a lp r i m i t i v eg r a p h i c s r o u

t i n e sf o rd r a w i n gl i n e sa n ds e t t i n g p i x e l sa n df o rs h i f t i n gt o

h i g hr e s o l u t i o nm o d ea n db a c k .I n a d d i t i o nt h e r ea r er o u

t i n e sf o r d r a w i n gs i m p l eh i d d e ns u r f a c e3 - Df i g u r e sa n d

g e n e r a l" e l l i p s e s " o fa r b i t r a r ys h a p e ,o r i e n t a t i o n ,p o s i t i o n

a n dn u m b e ro f s i d e s .A n o v e la s p e c to f t h e s e s u b r o u t i n e si s

t h a tt h e yc o r r e c tf o rt h ef a c tt h a tt h ep i x e l so n t h eC o m m o

d o r e6 4 a r e n o t s q u a r e .T h es c r e e ni s a s s u m e dt o b e 7 8 0x

1 0 2 4p i x e l s ,t h es a m ea s a T e k t r o n i x4 0 1 0g r a p h i c st e r m i

n a l .T h ep r o g r a m" G E O M E T R YF U N "i l l u s t r a t e st h eu s eo f

t h e s er o u t i n e s .

I n s u m m a r y ,t h em a c h i n el a n g u a g ep r o g r a m a n dt h e B a s i c

p r o g r a m s w h i c hu s ei t ss u b r o u t i n e s a l l o wy o ut o :

1 . V i e wT e k t r o n i x f o r m a tp l o t sg e n e r a t e db y a m a i n f r a m e

c o m p u t e r .

2 . D o w n l o a dt e x to r p l o tf i l e s .

3 . G e n e r a t ep l o tf i l e so n t h eC o m m o d o r e6 4 .

4 . P r e v i e wp l o t so n t h eh i g hr e s o l u t i o n s c r e e n , t h e n :

5 . C r e a t eh a r dc o p i e so f t h ep l o t so n t h eC o m m o d o r e1 5 2 0

P l o t t e r .

T h ep r i c ei s $ 4 9 . 9 5+ $ 4 . 0 0 s h i p p i n ga n dh a n d l i n g( U . S .

f u n d s ) .F o r e i g no r d e r s o t h e rt h a nC a n a d aa d d2 0 % .V i s aa n d

M a s t e rC a r da c c e p t e d .P l e a s e i n c l u d ee x p i r a t i o nd a t ea n d

c o r r e c tn u m b e r .D e a l e ri n q u i r i e si n v i t e d .

B e n n e t tS o f t w a r eC o m p a n y

3 4 6 5Y e l l o w s t o n e

A n nA r b o r ,M I 4 8 1 0 5

3 1 3 6 6 5 - 4 1 5 6

P R I N T - M A S T E RF o rT h eC o m m o d o r e6 4

N o p r o g r a m m e rs h o u l db e w i t h o u tP R I N T - M A S T E R ,t h e

u l t i m a t ep r i n t e re n h a n c e m e n tc a r t r i d g ef o rt h eC o m m o d o r e

6 4 . I t u n i t e sy o u rc o m p u t e r a n dy o u rE p s o nc o m p a t i b l ep r i n t e ra s i f t h e yw e r em a d ef o re a c ho t h e r .P R I N T - M A S T E R

c a nd o h i - r e sm o d eo r c h a r a c t e rm o d es c r e e nd u m p st o t h e

p r i n t e rw i t ha s i n g l ek e y s t r o k e .I t a l l o w sp r i n t i n go f e x a c t

r e p l i c a so f t h ef u l lC o m m o d o r e6 4 c h a r a c t e rs e t ,i n c l u d i n g

g r a p h i c sa n dc o n t r o l c h a r a c t e r s ,a t f u l lp r i n t e rs p e e d .I t c a n

a l s o p r i n t e ru s e rd e f i n e dc h a r a c t e rs e t s .

P R I N T - M A S T E Ra d d st w e l v eB A S I Cc o m m a n d st h a ta l l o w

e a s ys e l e c t i o no f m o s tp r i n t e rf e a t u r e ss u c ha s e m p h a s i z e d ,

s u b s c r i p t , l i n e sp e r i n c h ,a n d s k i po v e rp e r f ,f r o mt h e

k e y b o a r do r f r o ma B A S I Cp r o g r a m .T h e B A S I CO P E N

c o m m a n di s e n h a n c e dt o p r o v i d e1 2 n e wp r i n t i n go p t i o n s .

I n a d d i t i o n ,P R I N T - M A S T E Rp r o v i d e sa c o m p l e t es e t o fd i s k

s u p p o r tc o m m a n d s( s i m i l a rt o D O S5 . 1 ) ,t o l o a da n ds a v e

p r o g r a m s ,d i s p l a yt h ed i r e c t o r y ,s e n dc o m m a n d st o t h ed i s k ,

a n dr e a dt h e e r r o rc h a n n e l .

F o r B A S I Cl i s t i n g s ,P R I N T - M A S T E Rc a n e x p a n dc o n t r o l

c h a r a c t e r si n t om n e m o n i c ss u c ha s ( H O M E )a n d( B L U ) .I t

c a nf o r m a tl i s t i n g sb y p r i n t i n ge a c hB A S I Cs t a t e m e n to n a

s e p a r a t el i n e ,i n d e n t i n gF O Rl o o p s ,a n da s s u r i n gt h a tB A S I C

k e y w o r d s a n dm n e m o n i c sa r e n o tb r o k e na t t h ee n do f a

l i n e .F u l ll e f ta n dr i g h tm a r g i nc o n t r o li s i n c l u d e d .W i t ht h e

s p e c i a lU N N E Wc o m m a n d ,y o uc a nr e c o v e r aB A S I Cp r o

g r a mi n m e m o r ya f t e ra N E Wc o m m a n do r s y s t e mr e s e t .

P R I N T - M A S T E Rw o r k so n l y w i t hE p s o nc o m p a t i b l ep r i n t e r s

c o n n e c t e dt o t h eC o m m o d o r e6 4 b y a s e r i a l - b u s - t o - a r a l l e l

T h eT r a n s a c t o r V o I u m eS , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 12/84

p r i n t e ri n t e r f a c e .A v e r s i o ni s a l s oa v a i l a b l ew i t ha b u i l t - i n

o u t p u tp o r ta n dc a b l ef o rd i r e c tc o n n e c t i o nt o t h e p a r a l l e l

p o r to f t h ep r i n t e r .P R I N T - M A S T E Ri s a v e r s a t i l et o o lt h a t

p r o v i d e se a s yu s e rc o n t r o lo f t h ep o w e ro f t h e s e d o tm a t r i x

p r i n t e r s .

P r i c e :$ 3 9 . 9 5 .F o rm o r ei n f o r m a t i o n :

I P S

1 0 5 7 0S WW a l k e rR d .

B e a v e r t o n ,O R 9 7 0 0 5

A n t e n n aR e d u c e r

6 4 "w i l lb e i n t r o d u c e da t t h eS u m m e rC o n s u m e rE l e c t r o n i c s

S h o wi n C h i c a g o ,b o o t h6 9 0 4 .E n T e c hw i l la l s ob e p r o d u c

i n g an e wl i n e o ft a l k i n ge d u c a t i o n a lp r o g r a m s .

A c c o r d i n gt o E n T e c h ' sC h a i r m a no f t h eB o a r d ,R a yS o u l a r ,

" O u ri n n o v a t i o nm a k e st h e c o m p u t e rm o r e h u m a n .B y

t a l k i n gi n a h u m a nv o i c e ,t h eh o m ec o m p u t e rw i l lb e a b l et o

t e a c hf o r e i g nl a n g u a g e s , h e l p w i t hs p e l l i n g ,t e l ls t o r i e s ,a n d

d o m a n yt h i n g si t c o u l d n ' td o b e f o r e . "

T o e d u c a t ed e a l e r sa b o u tt h i sn e wg e n e r a t i o no f t a l k i n g

s o f t w a r e ,E n T e c hi s d i s t r i b u t i n ga t a l k i n gd e m o n s t r a t i o

d i s k .I n t e r e s t e dd e a l e r sc a nc o n t a c t :

A u n i q u eA m a t e u rR a d i oa n t e n n ad e s i g np r o g r a mf o r t h e

C o m m o d o r e6 4 c o m p u t e r . A l l o w st h e u s e rt o d e s i g na

r e d u c e ds i z ea n t e n n ai n t h e f r e q u e n c y r a n g eo f . 5 t o 1 5

M H Z .A f t e ri n p u t t i n gt h e d e s i r e d f r e q u e n c y ,t h e u s e rc a n

s e l e c ta n a n t e n n ad e s i g no f 3 0 , 4 0 , 5 0 ,6 0 , 7 0 ,8 0 , 9 0 o r

1 0 0 %o f f u l ls i z e .T h eu s e rt h e ns e l e c t st h e l o a d i n gc o i l

d i a m e t e ro f 1 . 5 ,2 , 2 . 5o r 3 i n c h e s u s i n g4 , 6 , 8 o r 1 0 t u r n s

p e r i n c h .T h ep r o g r a mt h e nc a l c u l a t e st h e a n t e n n am e a

s u r e m e n t sa n dg r a p h i c a l l y d i s p l a y st h ea n t e n n ad e s i g n .

R e q u i r e st h eC o m m o d o r e6 4 c o m p u t e rw i t hT a p eD a t a s e t t e

o r D i s kD r i v e .A v a i l a b l eo n T a p ef o r$ 7 . 9 5o r D i s kf o r$ 1 0 . 9 5

p l u s$ 2 . 0 0 s h i p p i n ga n dh a n d l i n g . C a t a l o go r d e rn u m b e ri s

W C 8 3 6 .

R A KE l e c t r o n i c s

P OB o x1 5 8 5

O r a n g eP a r k ,F L 3 2 0 6 7

9 0 42 6 4 - 6 7 7 7

E n T e c hO f f e r sS o f t w a r eD e m oD i s k s

T o oo f t e np e o p l es p e n df o r t yo r f i f t yo n s o f t w a r eo n l yt o b e

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

s o f t w a r e ,E n T e c hh a sc r e a t e d t h e" K n o c kY o u rS o c k sO f fF o r

5 B u c k s "p r o m o t i o n .

I n t h i sd e a l ,E n T e c hw i l ls e n dy o ua d e m od i s ko f a n yo f t h e

p r o g r a m sf o r 5 d o l l a r s .T h e yc o m ew i t ha c o u p o nf o r 5

d o l l a r so f ft h ea c t u a lp r o g r a m . S oe v e ni f y o ud o n ' tl i k et h e

d e m o , y o us t i l lk e e pt h e d i s kw h i c hm i g h th a v ec o s ty o u5

d o l l a r sa n y w a y s .

T h ed e m o sa r e a v a i l a b l ef r o mE n T e c hd e a l e r s o rd i r e c t l yf r o mE n T e c hS o f t w a r e .

E n T e c hR e v o l u t i o n i z e sT a l k i n gS o f t w a r e

E n T e c hS o f t w a r eo f S t u d i oC i t y ,C a l i f o r n i ah a s i n t r o d u c e d

s o f t w a r et h a tt a l k si n a r e a lh u m a nv o i c e .F o rt h ef i r s tt i m e ,

t h e C o m m o d o r e6 4 w i l lb e a b l et o r e p r o d u c et h e i n t o n a

t i o n s ,t h e a c c e n t s ,a n d t h e c h a r a c t e ro f r e a ls p e e c h .E n -

T e c h ' sd e v e l o p m e n ti s c e r t a i nt o r e v o l u t i o n i z e t h es o f t w a r e

i n d u s t r y .

E n T e c hw i l lb e u s i n gt h i sn e ws p e e c hp r o c e s st o e n h a n c ea l l

o f i t s c u r r e n ts o f t w a r ep r o g r a m s .T a l k i n g v e r s i o n so f i t s

p o p u l a r" S p a c eM a t h6 4 "e d u c a t i o n a lg a m e ,m u s i cp r o g r a m

" S t u d i o6 4 " ,a n db u s i n e s sp r o g r a m" M a n a g e m e n tS y s t e m

E n T e c hS o f t w a r e

P . O .B o x1 8 5

S u nV a l l e y ,C A 9 1 3 5 3

8 1 87 6 8 - 6 6 4 6

E n T e c hI n t r o d u c e sD a t aP r o t e c t i o nP l a n

E n T e c hS o f t w a r eh a sa n n o u n c e di t s n e wD a t aP r o t e c t i o n

P l a n ,t h ef i r s tc o m p r e h e n s i v es y s t e mf o rt h ep r o t e c t i o na n d

r e p a i ro f c u s t o m e r s ' v a l u a b l ed a t a .

E n T e c h ' s" M a n a g e m e n tS y s t e m6 4 "b u s i n e s sp r o g r a mf o r

t h e C o m m o d o r e6 4 n o wi n c l u d e s t h r e en e wd i s km a i n t e

n a n c ef e a t u r e sa s w e l l a sa d a t as e r v i c ew a r r a n t y .T h ef i r s t i s

a d i s kb a c k u p p r o g r a mt h a tr e p a i r sd a m a g e ds e c t o r sa s i t

c o p i e st h ed a t ad i s k .I f a s i n g l er e c o r di s d a m a g e d ,a s e c o n d

d a t ar e p a i rp r o g r a m e x a m i n e se a c hi n d i v i d u a lr e c o r da n d

c o r r e c t si t . I f t h e d i s ki s t o t a l l yd a m a g e d ,a t h i r df e a t u r e

c o m p l e t e l yr e c o n s t r u c t st h ed i s k ,b y f i r s tr e - f o r m a t i n gi t a n d

c r e a t i n gn e wf i l e s .T h e ni t e x a m i n e st h ed a m a g e dd a t aa n d

t r a n s f e r si t t o t h e n e wf i l e sr e c o r db y r e c o r d .I t w i l la l s oi n f o r mt h e u s e ro f a n yi n c o r r e c tr e c o r d si t f i n d sa n da l l o w

t h e mt o b e r e p a i r e d .

I n a d d i t i o nt o t h e s en e wp r o g r a mf e a t u r e s ,E n T e c hh a s

a d d e da d a t as e r v i c ew a r r a n t y .F o ra s m a l lf e e ,E n T e c hw i l l

r e p a i ra n yd a m a g e dd a t ad i s k ,o r t h e d i s kw i l lb e r e t u r n e d

w i t ht h em o n e y .T h i ss e r v i c ei s f o ra l l u s e r sw h oh a v es e n t

i n t h e i rE n T e c hw a r r a n t yc a r d .

P e o p l ea r ea l r e a d yb e n e f i t t i n gf r o mt h i sn e ww a r r a n t yp l a n .

T o mL i n d g r e no f K a p r iI n t e r n a t i o n a l ,a c o m p a n yt h a tu s e s

" M a n a g e m e n tS y s t e m6 4 " ,s a i d ," T h e s en e wf e a t u r e sh a v e

a l r e a d yg o t t e nu s o u ta t o u g hs c r a p e .W eu s e dt h e mt o r e p a i ra d i s kd a m a g e db y a p o w e rf a i l u r e . "

E n T e c hp l a n st o e x t e n di t sd a t ap r o t e c t i o np o l i c yt o a l lo f i t s

p r o g r a m s ,i n c l u d i n g" D a t a B a s e6 4 " ," F i n a n c eC a l c6 4 " ,

" S t u d i o6 4 " ," R e c i p e K e e p e r " ,a n d " C h e c k b o o kS y s t e m " .

E n T e c hp r e s i d e n t R i c kB a t e ss a i d ," A b u s i n e s sc o m p u t e r

s y s t e mi s w o r t h l e s si f y o u rd a t ai s a c c i d e n t a l l y d e s t r o yA

c o m p l e t eb u s i n e s sp r o g r a ms h o u l da l l o wp e o p l et o m a k e

m i s t a k e s . "

C o m p u t e rA i d e dD e s i g nf o rt h eC - 6 4

K i w i s o f tP r o g r a m sh a sc r e a t e dC A D P I Cf o rt h eC - 6 4 ,c o m

b i n i n gt w o p r o g r a m sP A I N T P I Ca n dP R I N T A P I Ct o g i v ea

T h eT r a n s a c t o r 1 0 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 13/84

t o t a lp a c k a g ef o r t r u e p i c t u r ed e s i g n .C a r t o o n s ,t a p e s t r y ,

h o o k e dr u g s ,f u r n i t u r e d e s i g n ,g a m eb a c k g r o u n d s ,c o l o r i n g

b o o k s , a d v e r t i s e m e n t s ,a n do r i g i n a lp a i n t i n g s a r es o m eo f

t h eu s e sf o rC A D P I C .

P A I N T P I Ch a s f u l l 1 6 c o l o rp a i n t i n go n a 1 6 0x 2 0 0d o t

s c r e e n .O v e r6 5 , 0 0 0M u l t i c o l o rb r u s h e sa n dc o m p l e xw a l l

p a p e rp a t t e r n s a r es u p p o r t e d .M a n ya u t o m a t i ct i l t e ds h a p e s

m a yb e d r a w na n df i l l e d .B l o c ko p e r a t i o n si n c l u d es a v e ,

c o p y ,d o u b l e ,h a l v e ,9 0 or o t a t e ,a n dm i r r o r .D r a w i n g a n d

p a i n t i n g a r ed o n ea t t h ek e y b o a r do r w i t hj o y s t i c k .

P R 1 N T A P I Cp r o v i d e sa t r u e p r o p o r t i o n ,f i v e g r a y - s c a l e ,

d o t - g r a p h i cp r i n t o u to f P A I N T P I Cp i c t u r e so n m o s tp r i n t e r s .

C h a r a c t e rp r i n t e r sa r e a l s os u p p o r t e d . A d d i t i o n a lf e a t u r e s

i n c l u d e b l a c ka n dw h i t ep l o t t e rs t y l e p r i n t ,c o l o rs e p a r a t i o n

p i c t u r e s ,M I C R O N E Y Ep h o t oc o n v e r s i o n ," p a i n tb y n u m

b e r s "o u t l i n ep r i n t s ,a n d h o o k e dr u ga n dt a p e s t r y d e s i g n .

P R I N T A P I Ci n c l u d e s t h ef u l lc o l o r" V e n u s " b yV e l a z q u e z .

N o s p e c i a lh a r d w a r ei s r e q u i r e d ,a l t h o u g ha n M P S - 8 0 1

g r a p h i c sp r i n t e ra n dt h e M I C R O N E Y Ea r e r e c o m m e n d e d .C A D P I Cs e l l so n d i s k e t t ef o r$ 7 9 . 9 5 .P A I N T P I C c o m e ss e p a

r a t e l yo n d i s kf o r $ 3 9 . 9 5 ;P R I N T A P I Cf o r $ 4 4 . 9 5 .T h eM I

C R O N E Y Ec a m e r ai s f r o mM i c r o nT e c h n o l o g y ,B o i s e ,I d a h o ,

f o r$ 2 9 5 .C o n t a c t :

K i w i s o f tP r o g r a m s ,

1 8 0 0 3 - L S k y p a r kS o u t h ,

I r v i n e ,C A 9 2 7 1 4

7 1 4 2 6 1 - 5 1 1 4

N e wW e a t h e rS e n s i n gP a c k a g e

D e s i g n e df o r u s e w i t hC o m m o d o r e6 4 a n dV i c2 0 C o mp u t e r s ,t h en e wH A W S8 H o m eA u t o m a t i cW e a t h e rS t a t i o n )

f r o mV a i s a l ac o m b i n e sa p r o f e s s i o n a lq u a l i t yw e a t h e rs e n s o r

w i t ha c r e a t i v es o f t w a r ep a c k a g et h a tt e a c h e s ,f o r e c a s t s ,a n d

g r a p h i c a l l y d i s p l a y sw e a t h e r .M o r et h a na t o yo r g a m e ,

H A W Su t i l i z e st h e s a m ew e a t h e rs e n s o ru s e d b yw e a t h e r

s e r v i c e si n 6 0 c o u n t r i e sw o r l d w i d e .I n a d d i t i o n ,H A W S

r e p r e s e n t st h ef i r s tp e r s o n a lc o m p u t e ra p p l i c a t i o nu t i l i z i n g

a n e x t e r n a ls e n s i n gd e v i c e ,a l l o w i n gt h e u s e rt o i n t e r a c ta n d

a n a l y z ei n p u tw h i c hi s n o tc o n t a i n e di n h i sc o m p u t e ro r t h e

s o f t w a r ei t s e l f .

H A W Sa l l o w st h eu s e rt o m o n i t o rw e a t h e rc o n d i t i o n si n s i d e

o r o u t s i d e t h eh o m e ,a s w e l la s a l l o w i n gt h eu s e rt o i n t e r a c t

w i t ht h e s o f t w a r ep r o g r a mt o h e l pp r e d i c ta n dc o p ew i t h

c h a n g i n g w e a t h e rc o n d i t i o n s .H A W Se v e na l l o w st h e u s e rt o

r a t e h i s / h e rf o r e c a s t i n gp e r f o r m a n c ea g a i n s t t h el o c a l

w e a t h e r m a n ' sp r e d i c t i o n s .

H A W Si s a n e x c e l l e n te d u c a t i o n a lt o o lf o rt e a c h i n gm e t e o

r o l o g yc o n c e p t sa n df o rl e a r n i n ga b o u tw e a t h e r ,e i t h e ri n t h e

h o m eo r i n t h ec l a s s r o o m .I n a d d i t i o n ,H A W Sc a na l s ob e

u s e dt o m o n i t o ra n d c o n t r o li n d o o rl i v i n gs p a c e ,g r e e n

h o u s e s ,a n do f f i c ee n v i r o n m e n t s ,e t c .

T h eH A W Sp a c k a g ei s r i c e da t $ 1 9 9 . 9 5a n di n c l u d e ss e n s o r ,

c h o i c eo f c a s s e t t et a p eo r f l o p p y d i s kp r o g r a m ,1 5 - f o o t c a b l e

w i t hc o n n e c t o rf o rt h ec o m p u t e r ,a n dc o m p l e t eu s e rm a n

u a l .F o rm o r ei n f o r m a t i o ni n c l u d i n g d e a l e ri n q u i r i e s ,w r i t e

o r c a l l :

V a i s a l aI n c .

2 T o w e rO f f i c eP a r k

W o b u r n ,M A 0 1 8 0 1

6 1 79 3 3 - 4 5 0 0

E d u c a t i o n a l A d m i n i s t r a t i v eS y s t e m

D i s t r i b u t e d e x c l u s i v e l yb y A u r o r aS o f t w a r eI n c . ,t h eE A S-

E d u c a t i o n a l A d m i n i s t r a t i v eS y s t e mi s a f l e x i b l ea d m i n i s t r a

t i v et o o ld e v e l o p e db y e x p e r i e n c e de d u c a t o r sf o r u s e i n

s c h o o l s .T h et h r e em o d u l e st h a tm a k eu p t h es y s t e m- D a t a

B a s e ,A t t e n d a n c ea n dT i m e t a b l i n g -a r ec u r r e n t l ya v a i l a b l e ,

w i t ha d d i t i o n a lm o d u l e s ,i n c l u d i n gM a r k sR e p o r t i n ga n dR e p o r tC a r d ,t o f o l l o w .E a s y - t o - u s e d o c u m e n t a t i o na c c o m

p a n i e st h e p a c k a g ei n a s t u r d ym a n u a lf o r m a t .O n g o i n g

T h eT r a n s a c t o r 1 1 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 14/84

u p d a t e sf o r t h e m a n u a lw i l lb e p r o v i d e da s t h e yb e c o m e

a v a i l a b l e .

T h eE A Sh a sb e e ns u c c e s s f u l l yt e s t e di n s c h o o l so f u p t o

2 , 5 0 0s t u d e n t s .I n a d d i t i o n ,p l a n sf o r f u r t h e r t e s t i n gt h e

s y s t e ma r eu n d e r w a yi n N o r t h e r nO n t a r i o .

T h eE d u c a t i o n a l A d m i n i s t r a t i v eS y s t e mu t i l i z e st h e C B M

8 0 3 2( e i t h e rt h e 8 0 5 0o r 8 2 5 0d r i v ef o r m a t ) ,w i t ha h i g h

s p e e dd o t m a t r i xp r i n t e r .I s i s a n t i c i p a t e dt h a tt h i ss y s t e m

w i l la l s ob e c o m ea v a i l a b l ef o ro t h e rm i c r o s ,i n c l u d i n gt h e

g o v e r n m e n t ' sO n t a r i oA p p r o v e dM i c r o c o m p u t e r( I C O N ) .

T h eD a t aB a s e ,A t t e n d a n c ea n dT i m e t a b l i n gm o d u l e sf o r

t h eE d u c a t i o n a l A d m i n i s t r a t i v eS y s t e ma r en o wa v a i l a b l ea t

$ 2 5 0 . 0 0e a c h .A l l o r d e r sm u s tb e p r e - p a i d .O n t a r i or e s i

d e n t sa d d1 % P . S . T .C o n t a c t :

A u r o r aS o f t w a r eI n c . ,

P OB o x1 3 9 4 ,

H a i l e y b u r y ,O N P O J1 K 0

7 0 56 7 2 - 5 5 1 7

N E TW O R T H

N E TW O R T Hi s a f a s t ,p o w e r f u l ,v e r s a t i l ea n de a s yt o u s e

p r o g r a mt o m a n a g e ,t r a c ka n do r g a n i z e e v e r ya s p e c to f a

f a m i l y ' s f i n a n c i a la f f a i r s .W i t hN E T W O R T H ,t h e h o m e

c o m p u t e r i s tc a n :

• S e tu p a b u d g e t- w i t ha s m a n ya s 3 5 0c a t e g o r i e s- t h e n

c o m p a r ea c t u a li n c o m e a n de x p e n s e st o t h a tb u d g e t .

• K e e pa r e c o r do f e v e r yb a n k i n ga n dc r e d i tc a r dt r a n s a c t i o n

a n d r e c o n c i l es t a t e m e n t si n s t a n t l y .N E TW O R T Hc a n

h a n d l eu p t o t e nb a n ka c c o u n t s ,a n di t p r i n t sc h e c k st o o .

• M a i n t a i na n u p - t o - d a t er e c o r do f p e r s o n a l" n e tw o r t h "- a

b a l a n c es h e e to f a s s e t sa n dl i a b i l i t i e s .

• R e c o r de v e r yt a xd e d u c t i b l ee x p e n d i t u r e ,f o ri n s t a n tr e c a l l

a t t a xt i m e .

• M a k em o n e yw o r kh a r d e rb y a n a l y z i n gi n t e r e s t r a t e so n

s a v i n g s p l a n sa n dl o a n s .

• D o c u m e n th o u s e h o l dv a l u a b l e s ,c o l l e c t i b l e sa n di m p o r

t a n tp a p e r sf o ri n s u r a n c ea n do t h e r p u r p o s e s ,a n dr e c o r d

t h e i rl o c a t i o n sa s w e l l .

• D i s p l a yo r p r i n t f i n a n c i a l r e p o r t s .

• R e c o r ds t o c k s ,b o n d s a n do t h e ri n v e s t m e n tt r a n s a c t i o n s .

N E TW O R T Hi s a n e a s yw a yt o m a k es e n s eo f t h ef a m i l y ' s

f i n a n c e s .D o c u m e n t a t i o ni s w r i t t e ni n c l e a r ,s i m p l el a n

g u a g e ,w i t h o u tt e c h n i c a la c c o u n t i n gt e r m s . S p e c i a lh e l p

f u n c t i o n s a r ea v a i l a b l eo n - s c r e e na t a l lt i m e s .

N E TW O R T Hi s a v a l u e - f i l l e da d d i t i o nt o t h eh o m es o f t w a r e

l i b r a r y .T o d r a m a t i z ei t s r e l e v a n c e , aS u s a nB . A n t h o n y

s i l v e rd o l l a ra n da n e x c e r p t e de d i t i o no f S y l v i aP o r t e r ' s

" N e wM o n e yB o o kF o r T h e8 0 s "a r e i n c l u d e di n e a c h

p a c k a g e .

N E TW O R T Hi s a v a i l a b l ef o rt h eC o m m o d o r e6 4 a t $ 7 9 . 9 5 .

C o n t a c t :

S c a r b o r o u g hS y s t e m s ,I n c .

2 5 N o r t hB r o a d w a y

T a r r y t o w n ,N Y 1 0 5 9 1

2 1 29 8 6 - 1 5 5 6

T O T L . M O N E Y M I N D E RF o rT h eC 6 4

T O T LS o f t w a r eI n c . ,m a n u f a c t u r e r so f p r a c t i c a ls m a l l b u s i

n e s sa n dh o m ep r o d u c t i v i t ys o f t w a r ef o r t h eC o m m o d o r

6 4 , h a v ea n n o u n c e dt h e s c h e d u l e dr e l e a s eo f t h e i re i g h t h

s o f t w a r ep r o d u c tf o r t h e C o m m o d o r e6 4 . T O T L . M O N E

M I N D E Ri s a c o m p l e t eh o m ea c c o u n t i n gs y s t e m d e s i g n e t o

c o m p l e m e n to t h e r s o f t w a r e a l r e a d ya v a i l a b l ef r o mT O T L .I t

w i l lb e s h i p p e dt o d i s t r i b u t o r sa n dd e a l e r so n M a y1 5 , 1 9 8 4 ,

a n dw i l lc a r r ya s u g g e s t e dr e t a i lp r i c eo f $ 3 9 . 9 5 , c o n s i s t

w i t ht h eo t h e r l o w - c o s tp r o g r a m sa v a i l a b l ef r o mT O T L .

T O T L . M O N E Y M I N D E Ri s a d i s k - o r i e n t e ds e t o fp r o g r a m s ,

c o m p a t i b l ew i t hm o s tc o l u m ne x p a n s i o n h a r d w a r e w i t h

a d v a n c e df e a t u r e st o s i m p l i f yu s ea n d i n c r e a s ef l e x i b i l i t y ,

s u c ha s a c o n f i g u r a t i o nf i l ef o r o n e - t i m es e t u pf o r s c r e e n

c o l o r s ,c o l u m nw i d t h ,a n da n yp r i n t e r - i n t e r f a c ec o m b i n a

t i o n .T O T L . M O N E Y M I N D E Rw i l la l l o wu p t o 1 1 0 u s e r - d e

f i n e da c c o u n t s( f o re x p e n s e s ,c h e c k i n g ,i n c o m e , c h a r g

a c c o u n t s ,e t c . ) ,w i t hd o u b l ee n t r yt r a n s a c t i o n st h a tc a n b e

s p r e a da c r o s sm u l t i p l ee x p e n s ea c c o u n t s .T O T L . M O N E

M I N D E Rp r o v i d e sa m o n t h l yr e m i n d e ro f a l lb i l l sd u e ,a n da

p o w e r f u lm o n t h l yb u d g e t i n gc a p a b i l i t y .T h es y s t e mw i l l

r e c o r du p t o 8 4 0 0t r a n s a c t i o n sp e ry e a r ,a n di n c l u d e sc a p a

b i l i t i e st o r e p o r t n e tw o r t ha n db o t hp r i n t e da n dg r a p h i c

d i s p l a yo f a c t u a lv e r s u sb u d g e t e de x p e n s e s , w i t hr e p o r t so n

t h es t a t u s o fe a c ha c c o u n t .

O t h e ri m p o r t a n tf e a t u r e si n c l u d ea b u i l ti n d a t a b a s ef o rl o n g

t e r ma s s e t sa n dl i a b i l i t yr e c o r d s ,w i t hi n v e s t m e n tr e t u r na n d

a m o r t i z a t i o nt o o l s .F u l lc h e c k b o o kb a l a n c i n ga n d s t a t e

m e n t sa r ep r o v i d e df o r ,a n da l a b e lf i l ei s e a s i l yg e n e r a t e dt o

a l l o wp r i n t i n go f a d d r e s sl a b e l sw i t hT O T L . L A B E L ,a n d

i n t e r a c t i o nw i t hT O T L . T E X Ta n dT O T L . I N F O M A S Tf o r

e v e nm o r ev e r s a t i l i t y .

A t y e a re n da r e p o r ti s g e n e r a t e dw h i c h s h o w sa l l i n c o m e

a n de x p e n s e s ,g r o u p se x p e n s e si n t od e d u c t i b l ea n dn o n - d e

d u c t i b l e ,a n dg r o u p sd e d u c t i b l ee x p e n s e si n t o t h e i rd e d u c

t i o n c a t e g o r i e s .

M o r ei n f o r m a t i o nc a n b eo b t a i n e db y c o n t a c t i n g :

C h a r l e sP a l m e r - M c C a r t y

P r e s i d e n t ,T O T LS o f t w a r eI n c .

1 5 5 5T h i r d A v e .

W a l n u tC r e e k ,C A 9 4 5 9 6

4 1 5 9 4 3 - 8 7 7

W A T C O MP a s c a lf o rt h eC o m m o d o r e6 4

P a s c a li s a w i d e l yr e s p e c t e d l a n g u a g e ,p a r t i c u l a r l yf o rt e a c h

i n g c o m p u t e rs c i e n c eb e c a u s ei t e n c o u r a g e ss t u d e n t st o

w r i t e r e a d a b l e , s t r u c t u r e dp r o g r a m sa n d t o t h i n ka b o u t

p r o g r a m m i n gi n a l o g i c a lw a y .

W A T C O MP a s c a lf o rt h eC o m m o d o r e6 4 i s a f u l lf u n c t i o n

T h eT r a n s a c t o r 1 2 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 15/84

P a s c a l *c o n f o r m i n gt o b o t hA N 1 Sa n dI S O - d r a f ts t a n d a r d s

a n de x t e n d e dt o s u p p o r tC o m m o d o r e6 4 f e a t u r e ss u c ha s

s p r i t e s ,s o u n ds y n t h e s i z e ra n dc o l o u ra n db i t - m a pg r a p h i c s .

W A T C O MP a s c a li s a l r e a d ya v a i l a b l eo n a n u m b e ro f m i c r o s

a n dm a i n f r a m e si n c l u d i n gI B M V M / S PC M S , I B M P C /

D O S ,D E CV A X / V M S ,t h eC o m m o d o r eS u p e r P e ta n dt h e

C E M C O R PI C O N .

• T h eo n eo m i s s i o nf r o mt h es t a n d a r di s t h a ty o uc a n n o t

p a s sa p r o c e d u r ea s ap a r a m e t e r .

• W A T C O MP a s c a li s u n i q u ea s a n i n t e r a c t i v e i n t e r p r e t e r .

A n i n t e r p r e t e ri s a n e x t r e m e l ye f f i c i e n tt o o l i nb o t h p r o

g r a md e v e l o p m e n t a n dt e a c h i n gb e c a u s ei t g i v e s t h eu s e r

i m m e d i a t ef e e d b a c ka n de x e c u t i o nr a t h e rt h a nw a i t i n g

t h r o u g ht h eu s u a lc o m p i l e / l i n k / e x e c u t es t e p s .

• W A T C O Ms t r i n ge x t e n s i o n st o P a s c a lp r o v i d et h ea b i l i t yt o

h a n d l ev a r i a b l e - l e n g t hs t r i n g sa n d i m p r o v e n o r m a ls t r i n g

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

• E x t r ai n p u t / o u t p u tf e a t u r e sh a v eb e e ni n c l u d e d . R e l a t i v e

a c c e s sf i l e sa n de x t e n s i o n st o t h er e s e ta n dr e w r i t ec o m

m a n d sa l l o ws y s t e mf i l en a m e st o b e u s e d .• B u i l t - i np r o c e d u r e sa n df u n c t i o n sp e r m i tm a c h i n el e v e l

i n t e r f a c ei n c l u d i n gP E E Kt o e x a m i n em e m o r y ,P O K Et o s t

i n t om e m o r y, S Y S F U N Ca n dS Y S P R O Ct o c a l lm a c h i n e

l a n g u a g er o u t i n e sa n dA D D R E S St o o b t a i na v a r i a b l e ' s

m a c h i n ea d d r e s s .

• T h eC A S Es t a t e m e n t h a sb e e ne x t e n d e dw i t ht h e E L S E

c l a u s et o a l l o wf o rc a s e sw h i c ha r e n o t d e f i n e d .

• W A T C O MP a s c a lc o n t a i n sa f u n c t i o nt o g e n e r a t er a n d o m

n u m b e r s ;a f e a t u r en o t n o r m a l l yp a r t o ft h e l a n g u a g e

i m p l e m e n t a t i o n .

• A n i n t e r a c t i v ed e b u g g e rp r o v i d e si m m e d i a t ee x e c u t i o no f

P a s c a l s t a t e m e n t s ,e x e c u t i o no f a P a s c a lp r o g r a m o n e

s t a t e m e n ta t a t i m ea n di n v o c a t i o n so f t h ed e b u g g e r f r o ma n yp o i n ti n a r u n n i n g p r o g r a m .

• W A T C O MP a s c a lh a sa l s op r o v i d e da b i t - m a p p e dg r a p h i c s

c a p a b i l i t y ,a s i g n i f i c a n te x p a n s i o no f t h en o r m a lg r a p h i c s

m o d e sa v a i l a b l eo n t h eC o m m o d o r e6 4 .

• S Y S F U N Co r S Y S P R O C c o m m a n d sc a nh a v ep a r a m e t e r s

w h i c ha r e p a s s e dt o t h e c a l l e dp r o g r a m .I n t h e c a s eo f

S Y S F U N Ct h em a c h i n e - l a n g u a g er o u t i n em a ya l s or e t u r n

t o t h ei n t e g e r v a l u e .

• F u n c t i o n k e y s c a n b e u s e dt o p r o v i d em a n yu s e f u le d i t i n g

o p e r a t i o n si n c l u d i n gi n s e r t i o n , d e l e t i o n ,s p l i t t i n ga n dj o i n

i n go f e n t i r el i n e s .

W A T C O MP a s c a lf o rt h eC o m m o d o r e6 4 i s d o c u m e n t e di n

o n eb o o kw h i c he x p l a i n sb o t ht h el a n g u a g ea n dt h ee d i t o r .

T h i sb o o ki s d e s i g n e dt o b e e i t h e ra s e l f - t e a c h i n gt o o lo r a

t e x t b o o kf o ra c o u r s ea n dc o u l db e u s e da t t h e i n t r o d u c t o r y

l e v e li n h i g h s c h o o lo r u n i v e r s i t y .

T h eb o o ki n c l u d e sa l a n g u a g e p r i m e rw i t hs t e p - b y - s t e p

e x a m p l e s , a na d v a n c e ds e c t i o no n P a s c a l s u i t a b l ef o r a

s e c o n dl e v e lc o u r s e ,a c o m p l e t ee d i t o rr e f e r e n c em a n u a l

a n df i n a l l yt h ef u l ls y n t a xa n ds e m a n t i c so f t h e l a n g u a g e .

W A T C O MP a s c a lf o rt h eC o m m o d o r e6 4 i s p a c k a g e da s t h r e e

s e p a r a t ec o m p o n e n t s .A d i s k e t t ec o n t a i n i n gt h eW A T C O M

P a s c a li n t e r p r e t e r ,a c a r t r i d g ec o n t a i n i n g t h eW A T C O ME d i

t o r i n1 6 Ko f R O M ,a n dt h et e x t b o o k .

W a t e r l o oS t r u c t u r e dB A S I CF o rT h e C 6 4

W a t e r l o oS t r u c t u r e dB A S I Ce x t e n d st h en o r m a lB A S I Cs y s

t e m o nC o m m o d o r e - 6 4m a c h i n e st o i n c l u d e S t r u c t u r e d

P r o g r a m m i n gs t a t e m e n t s .T h e s ee x t e n s i o n sa r e n e c e s s a r y

i n o r d e rt o t e a c hp r o p e rp r o g r a m m i n gm e t h o d o l o g yu s i n g

t h eB A S I Cl a n g u a g e .T h eC o m m o d o r e - 6 4v e r s i o ni s s i m i l a r

t o t h e i m p l e m e n t a t i o nu s e ds i n c e1 9 8 0w i t h t h eC o m m od o r e P E T .

T h e r ea r es e v e r a la c a d e m i cb e n e f i t st o b e d e r i v e df r o mt h e

W a t e r l o oS t r u c t u r e dB A S I Cs y s t e m .M o s tn o t a b l y ,p r o g r a m s

w r i t t e nw i t ht h es y s t e ma r em o r er e a d a b l e .T h i sm e a n s :

• P r o g r a m sa r e e a s i e rt o w r i t e ,d e b u ga n dm a i n t a i n

• T h e B A S I Cl a n g u a g ei s e a s i e rt o t e a c ha n dt o l e a r n

• S t u d e n t sl e a r ni m p o r t a n tp r i n c i p l e sw h i c hc a nb e a p p l i e d

w i t h o t h e rp r o g r a m m i n gl a n g u a g e s .

S t u d e n t sl e a r np r o p e rp r o g r a m m i n gd i s c i p l i n ea n ds t y l e .

T h e yw r i t eS t r u c t u r e dP r o g r a m s ,n o t t h e o l d - s t y l e" s p a

g h e t t ic o d e " .

S t r u c t u r e dS t a t e m e n t s

W a t e r l o oS t r u c t u r e dB A S I Ce x t e n d st h en o r m a lB A S I Cw i t h

n e ws t a t e m e n t st o c o n t r o ll o o p sa n d s e l e c t i o nw i t hI F

s t a t e m e n t s .

P r o c e d u r e s

I t i s i m p o r t a n tt o b e a b l et o m o d u l a r i z ea p r o g r a mi n a

m e a n i n g f u l w a y .T h i si s a c c o m p l i s h e di n W a t e r l o oS t r u c

t u r e dB A S I Cw i t hp r o c e d u r e s .A p r o c e d u r ei s a g r o u po f

B A S I Cs t a t e m e n t sw h i c ha r eg i v e n am e a n i n g f u ln a m e :

P R O Cn a m e. . . B A S I Cs t a t e m e n t s

E N D P R O C

T h ep r o c e d u r ec a n b ei n v o k e d f r o ma n y w h e r ei n t h ep r o

g r a mu s i n g aC A L Ls t a t e m e n t( i e .C A L Ln a m e )

S e v e r a lc o m m a n d sa r ea d d e df o rp r o g r a md e v e l o p m e n t :

A U T O - a u t o m a t i c a l l y g e n e r a t e sl i n en u m b e r sa s

p r o g r a mt e x ti s a d d e dt o a p r o g r a m .

D E L E T E - u s e dt o r e m o v ea r a n g eo f l i n e sf r o ma

p r o g r a m .

R E N U M B E R- r e n u m b e r st h el i n e si n a p r o g r a mi n c l u d i n g

a l l r e f e r e n c e s .

W a t e r l o oS t r u c t u r e dB A S I Cf o rt h eC o m m o d o r e6 4 i s d o c u

m e n t e di n o n e b o o kw h i c hi s d e s i g n e dt o b e e i t h e ra

s e l f - t e a c h i n gt o o lo r a t e x t b o o kf o ra c o u r s e .T h eb o o ki s a

t u t o r i a la n dr e f e r e n c em a n u a lw h i c ha s s i s t st h e s t u d e n ti n

l e a r n i n g t h em o d e r nc o n c e p t so f S t r u c t u r e dP r o g r a m m i n g

a n dt o p - d o w nd e s i g n .A d d i t i o n a l c o p i e so f t h et e x tm a yb e

p u r c h a s e d f r o mW A T C O MP u b l i c a t i o n s( s e eb e l o w ) .

W a t e r l o oS t r u c t u r e dB A S I Cf o rt h eC o m m o d o r e6 4 h a st w o

s e p a r a t ec o m p o n e n t s ;A c a r t r i d g ec o n t a i n i n gW a t e r l o o

S t r u c t u r e dB A S I Ci n 4 k o f R O M ,a n da b o o kc o n t a i n i n g

t u t o r i a la n dr e f e r e n c em a t e r i a lf o rW a t e r l o oS t r u c t u r e dB A

S I C .F o ra d d i t i o n a lt e x t so r i n f o r m a t i o n ,c o n t a c t :

T h eT r a n s a c t o r 1 3 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 16/84

W A T C O MP r o d u c t sI n c .

4 1 5P h i l l i pS t r e e t

W a t e r l o o ,O N N 2 L3 X 2

5 1 98 8 6 - 3 7 0 0

T e l e x0 6 - 9 5 5 4 5 8

H a r d w a r eN e w s

S E L E C T - A - R A M- 6 4 Kf o rt h eC o m m o d o r eV I C2 0

A d v a n c e dP r o c e s s o rS y s t e m si n t r o d u c e st h e S E L E C

T - A - R A M ,a 6 4 Km e m o r ye x p a n s i o nc a r t r i d g ef o rt h eC o m

m o d o r eV I C 2 0 . T h e S E L E C T - A - R A Mp r o v i d e st w o

e x p a n s i o ns l o t s f o rp r o g r a ma n dg a m ec a r t r i d g e s o ra d d i

t i o n a lm e m o r ye x p a n s i o nu p t o 1 9 2 K .D e c o d i n gc i r c u i t r yi n

t h eS E L E C T - A - R A Ma l l o w s s w i t c h i n gR A Ma n dR O Mi n 8 K

b l o c k sb y i n p u t sg e n e r a t e df r o mt h e k e y b o a r do r b y s o f t

w a r ec o m m a n d .

T h eS E L E C T - A - R A Mp l u g sd i r e c t l yi n t ot h em e m o r ye x p a n

s i o ns l o to n t h eV I C2 0 a n di s p o w e r e db y t h eV I C2 0 s u p p l y .

O t h e rf e a t u r e si n c l u d ew r i t ep r o t e c t i o n ,r e s e ts w i t c ha n d

o p t i o n a l e x t e r n a lp o w e r .

T h eu s e o f h i g hd e n s i t yd y n a m i cR A M Sw i t ht r a n s p a r e n t

r e f r e s hm a k e st h eS E L E C T - A - R A Mt h el o w e s tc o s tp e rb i t

m e m o r ye x p a n s i o np r o d u c to n t h e m a r k e tt o d a yf o r t h e

C o m m o d o r eV I C2 0 .

T h eS E L E C T - A - R A Mi s c o v e r e d b ya o n ey e a rw a r r a n t ya n d

a 1 5 d a ym o n e yb a c kg u a r a n t e e .T h eS E L E C T - A - R A Mi s

p r i c e da t $ 1 6 9 . 0 0i n s i n g l eu n i tq u a n t i t i e s .

P a u lG . J o n e s , P u b l i c R e l a t i o n s D i r e c t o rA d v a n c e dP r o c e s s o rS y s t e m s

P OB o x4 3 0 0 6

A u s t i n ,T X 7 8 7 4 5 - 0 0 0 1

5 1 24 4 1 - 3 2 0 2

A s y n c h r o n o u sR S - 2 3 2 B a u dR a t e&P a r i t yM a t c h i n gA - BS w i t c h

C o n n e c t i c u tm i c r o c o m p u t e r a n n o u n c e sA y B y , a nR S - 2 3 2

A - Bs w i t c hw i t hb a u dr a t ea n dp a r i t ym a t c h i n gc a p a b i l i t y .

D e s i g n e df o rb o t ho f f i c ea n dl a b o r a t o r yu s e ,A y B ye n a b l e sa

u s e ro f a 9 6 0 0b a u dt e r m i n a lt o i n s t a n t l ys w i t c hf r o ma 9 6 0 0

b a u dc o n n e c t i o nt o a 1 2 0 0o r 3 0 0b a u dc o n n e c t i o n .T h ec o n n e c t i o np a r i t i e sm a yb e d i f f e r e n t .

A y B yi s e q u i p p e dw i t ht h r e ef e m a l eD B - 2 5 Sc o n n e c t o r s :

o n ef o rt h e9 6 0 0 b a u dt e r m i n a l ;a n d o n ef o ra 1 2 0 0o r 3 0 0

b a u dc o n n e c t i o n ,s u c ha s a m o d e m .P a r i t i e sf o r t h e 9 6 0 0

b a u da n d 1 2 0 0 / 3 0 0 b a u dc o n n e c t i o n sm a yb e i n d e p e n

d e n t l ys e t .

W i t ha t e r m i n a ls e ta t 9 6 0 0b a u d ,t o c h a n g et h ec o n n e c t i o n

f r o m9 6 0 0t o 1 2 0 0o r 3 0 0r e q u i r e sm e r e l ym o v i n ga s l i d e

s w i t c h .A n L E Di n d i c a t e st h ep o r ta n ds p e e di n u s e .

A y B y ,i n a t a na n dw h i t e h i g hi m p a c tp l a s t i cc a s e ,s e l l sf o r

$ 3 0 0 .C o n t a c t :

C o n n e c t i c u tm i c r o c o m p u t e rI n c .

3 6 D e lM a rD r i v e ,

B r o o k f i e l d ,C T 0 6 8 0 4

2 0 3 7 7 5 - 4 5 9 5

T w x : 7 1 0 : 4 5 6 - 0 0 5 2

V o i c eM a s t e r

S p e e c hw i t h h i g hi n t e l l i g i b i l i t ya n d n a t u r a l n e s sc a n b e

r e c o r d e df o r c o m p u t e rr e s p o n s eu s i n gt h e C o v o xV o i c e

M a s t e r .R e q u i r i n g o n l ya b o u t4 0 0b y t e sf o r t h e a v e r a g e

w o r d ,u p t o 6 4 n u m b e r e dw o r d so r p h r a s e so r o t h e rs o u n d s

c a nr e s i d ei n m e m o r yf o ri n s t a n tr e c a l lu s i n gs i m p l eB A S I C

c o m m a n d s .C o m p l e t ev o c a b u l a r i e sc a n b es t o r e do n d i s k o r

t a p et o e x t e n dt h en u m b e ro f a v a i l a b l ew o r d sw i t h o u tl i m i t .

V o i c e M a s t e rm a k e si t p o s s i b l et o d e v i s ep r a c t i c a la p p l i c a

t i o n sf o rt a l k i n gc o m p u t e r s- f r o mr o b o t a d v i s o r i e st o c o c k p i t

a n n o u n c e m e n t st o v i d e og a m e s- a t f a r l e s sc o s tt h a ne v e r

b e f o r e .

B a s e d o nz e r oc r o s s i n g sa n d a m p l i t u d ei n f o r m a t i o n , t

u n i q u et e c h n i q u eg i v e sg o o dr e s u l t sa t b i tr a t e su n d e r 7 0 0 0

p e rs e c o n d( u s e rs e l e c t a b l e ) .F o rs o m ec o m p u t e r s ,t h eV o i c e

M a s t e r d e v i c ei t s e l fi s n e e d e do n l yf o r r e c o r d i n g ;u s e r

c r e a t e ds o f t w a r e t h e nf u n c t i o n sw i t h o u tt h e a d d e dh a r d

w a r e . S o f t w a r ew h i c he x t e n d sV o i c eM a s t e rc a p a b i l i t i e st o

w o r dr e c o g n i t i o ni s a l s os c h e d u l e df o rr e l e a s e .A v a i l a b l ef o r

t h eC 6 4a t $ 8 9 . 9 5U S . C o n t a c t :

C o v o x ,I n c .

6 7 5C o n g e rS t r e e t

E u g e n e ,O R 9 7 4 0 2

5 0 33 4 2 - 1 2 7 1

T l x :7 0 6 0 1 7

T h eT r a n s a c t o r 1 4 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 17/84

L e t t e r s

C o p y w r i t e sR i g h t s :T h i sl e t t e ri s a r e q u e s tf o ra r e n e w a l

o f m yf a i t h i ny o u .O v e rt h e p a s tf e wy e a r sI h a v ew i t n e s s e d

t h eT r a n s a c t o rb l o o mf r o ma s m a l lC o m m o d o r en e w s l e t t e r

t o a h a n d s o m eb i - m o n t h l yj o u r n a l .W h a tI a s ko f y o ui s t o

g i v em ey o u r v i e w so n t h es t a t u s o fp r o g r a m sp u b l i s h e di n

y o u rm a g a z i n e .

T h er e a s o nw h yI h a v ew r i t t e nt o y o ui s b e c a u s eo f a v e r y

r e c e n ti s s u eo f C o m p u t em a g a z i n e ,M a y1 9 8 4 ,i n w h i c ht h e y

s t a t e t h a to n l yo n ep e r s o np e rp u r c h a s e di s s u ec a n u s et h e

p r o g r a m sc o n t a i n e dw i t h i n t h ep a g e so f t h e i rm a g a z i n e .O n

p a g e s1 3a n d1 4 ,a l e t t e rw a sp r i n t e df r o m G a r yL e eC r o w e l l .

I n t h i sl e t t e r ,M r .C r o w e l la s k e df o rC o m p u t e ' sv i e w so n t h e

u s eo f C o m p u t e ' s p r o g r a m s b yu s e r sg r o u p sa n dl i b r a r i e s

w h oh a v ea s u b s c r i p t i o nt o t h e i rm a g a z i n e .C o m p u t e sa n

s w e rw a sa q u i c ka n ds i m p l en o . " Y o uc a no n l y u s et h e

p r o g r a m si n a n i s s u eo f C o m p u t ei f y o uo w na c o p yo f t h a t

i s s u e " .

I n m yo p i n i o n ,t h i ss t a n di s o n eo f w h i c hm a k e st h e ml o o k

p r e t t ys h a l l o w ,a n da l s oo n et h a tw o u l db e n e x tt o i m p o s

s i b l et o u p h o l d .A l lt h i sl a wo f t h e i r sp r o v e si s t h a tt h e yn o

l o n g e rc a r ea b o u tt h ee d u c a t i o no f t h e g e n e r a lc o n s e n s u s ,o n l yt h e l i n i n g o f t h e i rp o c k e t sb y t h e i n c r e a s ei n s a l e s .I

r e a l l yw o n d e rh o wm a n ys c h o o l s ,u s e r sg r o u p sa n dl i b r a r i e s

w o u l dk e e pt h e i rs u b s c r i p t i o n si f t h e yr e a l i s e dh o ws e l f

s e r v i n gC o m p u t e ' sp o l i c i e sa r e .H o wm a n yt e a c h e r sw o u l d

u s eC o m p u t e ' sa r t i c l e sa n d p r o g r a m st o h e l pt e a c ht h e i r

s t u d e n t si f t h e yr e a l i s e dt h a tt h e yw e r eb r e a k i n gt h el a wt o

d o s o ?

J i m B u t t e r f i e l dh a sa l w a y sb e e nk n o w nt o h e l pp r o m o t e

g r e a t e re d u c a t i o nb y h i sa r t i c l e s ,l e c t u r e sa n dp r o g r a m s .H e

h a sb e e ns e e no n t e l e v i s i o n ,c a nb e o b t a i n e do n v i d e ot a p e ,

a n dc a nb e r e a di n n u m e r o u sm a g a z i n e s . U s e rg r o u pl i

b r a r i e st h r o u g h o u tt h ew o r l da r ef i l l e dw i t hl a r g e q u a n t i t i e s

o f J i mB u t t e r f i e l d ' sp r o g r a m s ,r e l e a s e di n t op u b l i cd o m a i n

b y J i mB u t t e r f i e l dh i m s e l f .N o w ,c o n s i d e r i n gt h a tM r .B u t t e r -

f i e l di s t h eA s s o c i a t eE d i t o rO f C o m p u t eM a g a z i n e ,w h yh a s

C o m p u t ea l l o w e dM r .B u t t e r f i e l dt o r e l e a s eh i s p r o g r a m s

i n t op u b l i cd o m a i na f t e rt h e yh a v e b e e np r i n t e di n t h e

s a c r e dp a g e so f t h e i ro n c eg r e a t r a g ?

A s f a r a s I c a n t e l l , t h e yw o u l dn e v e r d a r ec r o s sM r .

B u t t e r f i e l d ,f o rt h e yw o u l dr i s kl o s i n gh i sc o n t r i b u t i o n s ,a n d

t h u sl a r g ev o l u m e so f s a l e s .I n t h e c i r c l e o fC o m m o d o r e

u s e r sw o r l d w i d e ,C o m p u t e 'i s u s u a l l yb o u g h tb e c a u s eo f M r .

B u t t e r f i e l d sa r t i c l e s ,n o t b e c a u s eo f t h e i r5 0 %v o l u m eo f

a d v e r t i s e m e n t s ,n o rt h e i rp a g e sa n dp a g e so f a r t i c l e so n

c o m p u t e r so t h e rt h a nC o m m o d o r e ,o r e v e nt h e s m a l lc o n

t e n to f a r t i c l e so n C o m m o d o r ec o m p u t e r s .I t i s u s u a l l y

b e c a u s eo f M r .B u t t e r f i e l da n dh i sw o r d so f w i s d o m .B e g i n

n e r s ,i n t e r m e d i a t ea n da d v a n c e dp r o g r a m m e r sa l i k eh a v e

a l w a y sg a i n e df r o mM r .B u t t e r f i e l d sk n o w l e d g e ,a s I h a v e ,

u n t i ln o w .C o m p u t eh a sl o s tm ys u p p o r ti n t h e i rm a g a z i n e ,

a n dw i t hi t I h a v el o s tf u t u r ek n o w l e d g eg a i n e dt h r o u g ht h e

p a g e so f C o m p u t e .B u t ,a s f a r a s I c a n t e l l ,T r a n s a c t o r ,

C o m m o d o r eM a g a z i n ea n da c o u p l eo f o t h e r sh a v es u p p l i e d

m e w i t hp l e n t yo f k n o w l e d g ei n t h e p a s t ,a n d i t i s q u i t e

e v i d e n tt h a tt h e yw i l lc o n t i n u et o d o s o i n t h ef u t u r e .Y o u r

m a g a z i n ea l o n e h a sb e e na d v a n c i n gs o q u i c k l yo v e rt h ep a s t

s h o r tw h i l et h a ti t w i l lm o r et h a nm a k eu p f o rt h es p a c el e f t

b y C o m p u t e .

T h a n ky o uf o ra l l o w i n gm et o t a k eu p r o o mi n t h ep a g e so f

y o u rm a g a z i n e .I k n o wt h a ty o u rv i e w sa r ef a v o u r a b l eo n

t h es t a t u s o ft h ep r o g r a m s y o up r i n t ,b u tp l e a s ec o n f i r mi t f o r

m e .1 w o u l dl i k em yc h i l d r e nt o l e a r nf r o mt h eb e s ts o u r c e s

a v a i l a b l e ,b u tn o ti f t h e yh a v et o b r e a kt h el a wi n o r d e rt o d o

s o .I h o p et h a tm o r ep e o p l ew i l lt h i n ko f t h i sb e f o r e t h e yb u y

t h e i rn e x tc o p yo f C o m p u t e .D o e st h e i rp o l i c ym e a nt h a ti f

t h ef a t h e rb u y st h em a g a z i n e ,t h e c h i l d r e na r ei n d e f a u l to f

t h el a wi f t h e yu s et h ep r o g r a m sc o n t a i n e dw i t h i n ?A v e r y

s t u p i d q u e s t i o n ,o n e w h i c hi s o n l ys u r p a s s e db y a s t u p i dp o l i c y .

E d w a r dC . J a m e s- L o sA n g e l e sC a l i f o r n i a

W h e nI r e a d y o u rl e t t e rI c o u l d n' t b e l i e v eC o m p u t ew o u l d

a c t u a l l yh a v et h ea u d a c i t yt o p r i n ts u c hb i l g e w a t e r .I f o u n da

c o p yo f t h eM a yi s s u e ,a n ds u r ee n o u g h .I n c r e d i b l e .Y o u' r e

r i g h tt h o u g h ,I c a n ' ti m a g i n eh o wt h e yw o u l de n f o r c et h a t

p o l i c y .C o n s i d e rt h ew r i t e r .D o e st h i sm e a nh e c a n n o t p a s s

o u t c o p i e s o fh i so w np r o g r a m ?A n di f h e d o e s ,w h a tt h e n .I s

C o m p u t eg o i n gt o s u eh i m ? O ra n y b o d ye l s e f o rt h a t m a t t e r .

I f i t w e r e n' t l a u g h e do u t o f c o u r t ,t h e s e t t l e m e n tw o u l d n' t

e v e nc o v e rl u n c ha t t h ec a f e t e r i a .A s f o rJ i m ' ss t u f f ,h e h o l d s

a p e r s o n a lc o p y r i g h to n e v e r y t h i n gh e r e l e a s e sf o rp u b l i c a

t i o n .S i n c eh e c a r r i e sa l i t t l em o r ec l o u tt h a no t h e rw r i t e r s ,h e

c a ng e t a w a yw i t hi t a n ds t i l ls e e h i s a r t i c l e sp u b l i s h e d .

A n y o n ee l s ew h ot r i e si t m a yn e v e rs e et h e i ra r t i c l ea g a i n .A s

f o ro u rs t u f f ,r e s ta s s u r e dt h a ta n yc o p i e so f p r o g r a m s y o u

e n t e ra r ep a s s e da r o u n dw i t ho u rb l e s s i n g .I n f a c t ,9 9 %o fa l l

o u ra r t i c l e sa r ea v a i l a b l ef o r r e p r i n ti n a n yo t h e rp u b l i c a t i o n ,

p r o v i d e dt h ea u t h o ri s p a i df o ri t . C o n t a c tu s a n y t i m e .W e1 1

e v e nb e f l a t t e r e dt h a ty o ue x p r e s st h ed e s i r et o d o s o .

T a k eT h a tT a p eW o r m s !I n r e s p o n s et o R . D .A n d e r s o n ' s

l e t t e r i nV o l u m e5 , I s s u e0 1 , 1a mq u i t es u r et h a t h i sd i f f i c u l t y

i s t h a ta p h a s ei n v e r s i o ni s r e q u i r e db e t w e e nt h eo r i g i n a t e

a n dd u p l i c a t et a p e s .I h a dp r e c i s e l yt h es a m ep r o b l e m sa n d

w o u l d h a v es a i dt h ei d e n t i c a lt h i n g sa b o u tw h a tI o b s e r v e d !

T h eT r a n s a c t o r 1 5 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 18/84

E n c l o s e di s a c o n n e c t i o nd i a g r a mt h a tw o r k sw e l lf o rm ew h i c hi s u s e df o rd u p l i c a t i n g t a p e sf o rt h eS a nL u i sO b i s p o

C o m m o d o r eG r o u p .T h et r a n s i s t o ri s a n yh a n d yN P Nt y p e ;a

2 N 2 2 2 2w o r k sf i n e .T h e" i n t e r f a c e "w a sm a d ef r o ms c r a pP Cb o a r d .

C l i f fB u t t s c h a r d t ,M o r r oB a y ,C A

4 7 0O h m s

G N DS A + 5 V

T oC a s s e t t eP o r t

O r i g i n a t eT a p e

R e c o r d e rS i d e

D u p l i c a t eT a p e

R e c o r d e rS i d e

Y o um i g h th a v en o t i c e dt h e r ei s o n ep i n m i s s i n gf r o mC l i f f ' s

i n t e r f a c e .P i n6 i s t h eC a s s e t t eB u t t o nS e n s el i n e .I t ' su s e ds o

t h ec o m p u t e r c a nd e t e c ti f a n yb u t t o n s a r ed e p r e s s e do n t h e

c a s s e t t eu n i t .S i n c et h i sw o n ' tb e r e q u i r e df o rt h ei n t e n d e d

o p e r a t i o n ,i t ' sb e e nl e f tu n s e w i c e d .

W o r d P r oQ u i p s :I H a v et w oC o m m o d o r e8 0 3 2w i t h8 0 5 0

d i s k d r i v e sa n dI u s eW o r d P r oI V .I a l s oh a v ea t e l e p h o n e

m o d e m . W o u l dy o u rn e w s l e t t e ra n s w e rt h ef o l l o w i n gq u e s

t i o n s :

J a m e sL . R o b i n s o n ,J r . ,T u c s o n ,A Z

1 . I s t h e r ea w a yt o e x i tf r o mW o r d P r ot o B A S I Cw i t h o u t

h a v i n gt o p o w e rd o w n ?

Y e s .C o n t r o l , S h i f t e d' Q \

2 . 1a mt h i n k i n ga b o u ti n c r e a s i n gt h ec a p a c i t yo f m y8 0 3 2b y

a d d i n ga 6 4 Kb o a r d .W i l lt h i s a f f e c tt h e o p e r a t i o n so f

W o r d P r o ?W i l lI b e a b l et o u s et h ea d d i t i o n a l6 4 Kf o r t e x t

s p a c e ?

A d d i n g6 4 Kt o y o u r8 0 3 2w i l ln o ta f f e c tt h e o p e r a t i o n o f

W o r d P r oi n a n yw a y ,i n c l u d i n gt h e a d d i t i o no f e x t r at e x t

s p a c e .W o r d P r od o e sn o tc h e c kt o s e ei f t h e e x t r a6 4 Kb o a r d

i s t h e r es o i t w i l ln e v e r e v e na t t e m p tt o u s ei t . T h e r ew a sa

v e r s i o nt h a td i d u s et h e e x t r am e m o r y .I n s t e a d o f2 t e x t

a r e a si t h a d5 b u tI d o n ' tk n o wi f i t w a se v e rr e l e a s e d .

P e r h a p sc o n t a c t P r o - L i n e( s e ea d ) .

3 . 1m a yw a n tt o u p g r a d et o W o r d P r oI V P l u s .W i l l1 b e a b l e

t o u s et h ef i l e st h a th a v ef o r m a t sp r e c e d e db y a c h e c k m a r k

r a t h e rt h a na n @ ?C o n f u s i n gq u e s t i o n .A s f a ra s I k n o w ,a l l l a t e rv e r s i o n so f

W o r d P r ou s et h ec h e c k m a r kt o p r e c e d ec o m m a n d s .P e r

h a p sy o us a w s o m ed o c u m e n t a t i o nt h a ts h o w st h e@ s i g n .

T h i si s p r o b a b l y b e c a u s et h e p r i n t e r t h a tc r e a t e di t w a s n' t

c a p a b l eo f p r i n t i n ga c h e c k m a r k .Y o u rf i l e ss h o u l da l lb e

c o m p l e t e l yc o m p a t i b l e .

4 . D oy o uk n o wo fa n yo t h e rp r o g r a m st h a tw o r ki n c o n j u n ct i o nw i t hW o r d P r o ?

M a i l P r ow a sw r i t t e nb y t h es a m ea u t h o ra s W o r d P r oa n d

w a sd e s i g n e dt o a c c e p tW o r d P r of i l e sf o ri n p u t .W o r d P r oc a n

p r o d u c eo u t p u tf i l e st h a ta r ea c c e p t a b l eb y a n yo t h e rp r og r a mt h a tc a ni n p u tf r o m ad i s kf i l e .T e l e c o m m u n i c

p r o g r a m st h a tc a ns e n dt e x tf r o md i s ka r ea g o o de x a m p l e .

5 . I u s e b o t ht h eN E C5 5 3 0a n da M a n n e s m a nT a l l y8 0 2 4

( a l s oa 4 0 3 2D o tM a t r i x ) .T h ef o r m a t t i n gf o rt h eN E Cd o e s

n o tw o r kt h es a m ea s o n t h eM a n n e s m a nT a l l y .U n d e r l i n i n

i n p a r t i c u l a r .D oy o u h a v e a n ys p e c i a li n s t r u c t i o n sf o rt h eM a n n e s m a nT a l l y ?

F i r s to f a l l , I ' m n o ts u r et h e M a n n e s m a nT a l l yw i l ld o

u n d e r l i n i n g ,b u tI c o u l db e w r o n g .T h ep r o b l e mi s , p r i n t e r

m a n u f a c t u r e r sa r e o n l yb e g i n n i n gt o g e t t o g e t h e ro n c o d e

v a l u e sf o rp r i n t e r f e a t u r ec o n t r o l s .S o w h a ti n v o k e so n e

f u n c t i o no n o n ep r i n t e rm a yi n v o k es o m e t h i n ge n t i r e l yd i f f e r e n to n t h eo t h e r .L a t ev e r s i o n so f W o r d P r oa l l o wy o ut o

d e f i n e s p e c i a lc h a r a c t e r si n a c o m m a n dl i n e .P e r h a p sw i t h

t h i sy o um i g h t b ea b l et o s e n dc o n t r o lc h a r a c t e r st o t h e

M a n n e s m a nt h a tw i l lm a k ei t b e h a v e .Y o uI I r e q u i r ey o u r

M a n n e s m a nm a n u a l a n ds o m ee x p e r i m e n t a t i o n .M . E d .

J o yC u r s e d :W e ' v er e c e i v e dr e c e n t l ya c o u p l eo f l e t t e r s

c o n c e r n i n g" J o y C u r s o r " ,a p r o g r a mp u b l i s h e di n t h e l a s t

i s s u eo f T h eT O n ec l a i m e dt h a tt h ep r o g r a mr e t u r n e da n

I L L E G A LQ U A N T I T YE R R O Ri n l i n e1 7 0 .L i n e1 7 0i s t h el i n e

t h a tP O K E st h e v a l u e si n t om e m o r y .A n i l l e g a lq u a n t i t y

c o u l do n l yo c c u ri n o n eo f t w op l a c e s : t h ea d d r e s so r t h e

v a l u et o b e P O K E d .I f t h ea d d r e s sg o e s ,f o rs o m er e a s o n ,

n e g a t i v e ,o ri fi tg o e sa b o v e6 5 5 3 5 ,a n i l l e g a lq u a n t i t yr e s u l t s .

I f t h ev a l u et o b eP O K E dg o e sn e g a t i v eo r a b o v e2 5 5 ,s a m e

t h i n g .C h e c kt o m a k es u r ey o uh a v ec o m m a ss e p a r a t i n ga l l

t h en u m b e r si n y o u rD A T As t a t e m e n t s .I f o n ei s m i s s i n g ,

y o u ' l lh a v ep r o b l e m s .I f i t ' sm i s s i n gb e t w e e n ,s a y ,a 1 a n da

1 7 ,B A S I Cw i l lR E A Da ' 1 1 7 'a n dt h el o a d e rw i l lr u n o u t o f

d a t ab e f o r er e a c h i n gt h e e n d .I f t h e c o m m ai s m i s s i n g

b e t w e e n ,s a y ,a 3 4a n d2 1 2 ,B A S I Cw i l lt r y t o P O K Et h e

l o c a t i o nw i t h3 4 2 1 2 .N ow a y .T h i si s a p o t e n t i a lh a z a r df o r

a n y p r o g r a mc o n t a i n i n gD AT As t a t e m e n t s .I f y o ur u ni n t o

p r o b l e m sa t t h e l i n ec o n t a i n i n gt h e P O K E ,c h e c ky o u r

c o m m a sf o ro n em i s s i n g .

A l s o ,m a k es u r ey o u rj o y s t i c ki s p l u g g e di n t ot h e s p e c i f i e

p o r t .E v e nw i t hn o p r o g r a mi n t h em a c h i n e ,t h e j o y s t i c kw i l l

c a u s es p o r a d i ca c t i v i t yo n y o u rs c r e e n .T r yi t ! T h er e a s o n ?

T h ec h i pt h a th a n d l e st h e j o y s t i c k p o r t si s t h es a m eo n et h a t

s e r v i c e s t h ek e y b o a r d .W h e ns i g n a l sa r es e n ti n t h r o u g ht h e

p o r t ,t h e 6 4 t h i n k st h e y a r ec o m i n gf r o mt h e k e y b o a r d .

T h e r e f o r ea p r o g r a mi s r e q u i r e dt o h e l pt h e6 4d e t e r m i n et h e

s o u r c eo ft h ea c t i v i t y .S u c h ap r o g r a mw i l lc h e c kt h eh i g hb i t

o f t h e p o r tr e g i s t e r . I fi t ' s z e r oi t ' s b e c a u s e aj o y s t i c ki s

g r o u n d i n gt h a tp i n .P e r h a p sa c o m p l e t ea r t i c l ee x p l a i n i n g

t h i st e c h n i q u ei s i n o r d e r .

N o ww i t ht h eJ o y c u r s o rp r o g r a mi n p l a c e ,t r yi t a g a i n .I fy o u

g e t t h es a m ew i e r d n e s s ,t r yt h eo t h e rp o r t .M . E d .

T h eT r a n s a c t o r 1 6 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 19/84

i t sa n dP i e c e s

i n eD o oD a a

u rf i r s ts c r e e nb l i t zw a ss u b m i t t e db y G i o v a n iP o l e s eo f D o w n s -

i e w ,O n t a r i o .T h ep r o g r a ms h o w ni s s o m e w h a tl o n g e rt h a ni t h a so b e - t r yP R 1 N T A $a f t e rr u n n i n gi t o n c e .W ec h a n g e di t t o m a k ei t

n t e r a b l ef r o ma l lk e y b o a r d s( b u s i n e s sk e y b o a r d sd o n ' th a v es o m e

f t h eg r a p h i cc h a r a c t e r sa v a i l a b l e ) .T r yc h a n g i n gt h ei 5 ' i n l i n e3 0

o 1 4 , 1 3 , 1 2 ,e t c . ,f o rd i f f e r e n te f f e c t s .

3 0 f o rj = 1 t o 1 5 : r e a da

4 0 a $ =a $ + c h r $ ( a ) :n e x t

6 0 p r i n ta $ ; : g o t o6 0

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

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

o l o u r t e s t

o l o u r t e s ti s a s i m p l el i t t l ep r o g r a mt h a tm e r e l yd r a w sb o x e si n a l l

h ec o l o u r sa v a i l a b l e s ot h a ty o uc a na d j u s ty o u rT V / m o n i t o rf o r

h eb e s t p o s s i b l ec o n t r a s t .L i k e t h ep r o g r a ma b o v e ,i t t o oi s m u c h

o n g e rt h a ni t n e e d st o b e .F o re x a m p l e ,l i n e s1 1 5 ,1 2 0a n d1 2 5 c a n

e r e p l a c e db yC $ =a l lt h e c o l o u rc o n t r o lc h a r a c t e r s e x c e p tb l a c k ,

h i c hi s t h eb a c k g r o u n dc o l o u ru s e df o rt h et e s t .T h i sw i l la l s o

a v ey o uf r o me n t e r i n gt h eD A T As t a t e m e n t s . L i n e s1 3 5a n d1 4 0

a nb e r e p l a c e db y B $= 1 c u r s o rd o w na n d5 c u r s o rl e f t s .

1 0 0p r i n t "@ " : r e mc l e a rs c r e e n

1 1 0p o k e 1 3 * 4 0 9 6 +3 3 , 0

1 1 5f o ri = 1 t o 1 5

1 2 0r e a da : c $ = c $ + c h r $ ( a )

1 2 5n e x t

1 3 0 s $ = "" : r e m5 s p a c e s

1 3 5 b $= c h r $ ( 1 5 7 )

1 4 0 b $ =" H "+ b $+ b $+ b $+ b $+ b $1 4 5f o ri = 1 t o 1 5

1 5 0p r i n tm i d $ ( c $ , i , 1 ) ;

1 5 5p r i n t" | 3 " ; :r e mh o m e1 6 0f o rj = 1 t o i : p r i n t : n e x t

1 7 0p r i n t s p c ( i * 2 ) "Q "s $ b $ s $ b $ s $ b $ s $

1 7 5f o rj = 1 t o 3 0 0 : n e x t

1 8 0n e x ti

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

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

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

W o u l d Y o uB u yA U s e dC a r

F r o mT h i sM a n ?

B y t e f i n d e r

H a v ey o ue v e rn e e d e dt o k n o ww h a tb y t e v a l u e sa r eN O Tp r e s e n t

i n a p r o g r a mo r f i l ey o um a yb e w o r k i n go n ?T h es i t u a t i o na r i s e s

w h e ny o un e e da v a l u et o a c ta s a t e r m i n a t o r .I f t h i ss a m ev a l u e

e x i s t se l s e w h e r e ,t h e f i l ew i l lb e t e r m i n a t e dp r e m a t u r e l y .T h ef o l l o w i n gp r o g r a mw i l ls h o ww h i c hv a l u e sa r e n o tp r e s e n ti n t h e

4 K R O Mb l o c kb e t w e e n $ F 0 0 0a n d$ F F F F . Q u i t es i m p l y , t h e

p r o g r a mc o u n t st h eo c c u r e n c eo f b y t e v a l u e s( l i n e1 2 0 )b y i n c r e

m e n t i n gt h e a p p r o r i a t ea r r a ye l e m e n to f U ( . N a t u r a l l y ,a l l t h e

v a l u e sw i l ll i eb e t w e e n0 a n d2 5 5 ,h e n c eD I MU ( 2 5 5 ) .T h ee l e m n t s

o f U ( t h a tr e m a i nz e r oi n d i c a t ev a l u e st h a tw e r en o te n c o u n t e r e d

( l i n e2 1 0 ) .

1 0 0 d i m u ( 2 5 5 )

1 1 0f o rj = 1 5 * 4 0 9 6t o 6 5 5 3 5

1 2 0x = p e e k ( j ) :u ( x )= u ( x )+ 1

1 3 0n e x tj

2 0 0f o rj = 0 t o 2 5 5

2 1 0i f u ( j )= O t h e np r i n tj ;

2 2 0n e x tj

T h i sc o u l db e e a s i l ya l t e r e df o ra n ya r e ao f m e m o r y ,o r f o ra n yd i s k

f i l eb y c h a n g i n g :

1 1 0 o p e n 8 , 8 , 8 ," s o m e f i l e . "

1 2 0 g e t # 8 ,a $ :s x = s t

1 2 5x = a s c ( a $+ c h r $ ( 0 ) ) :u ( x )= u ( x )+ 1

1 3 0i f s x = 0 t h e nn e x t j

1 4 0c l o s e8

Q u i c kM o t e :R e m e m b e r ,a C O L L E C TD O o r O P E N

1 , 8 , 1 5 ," V 0 "n e v e rh u r t s ,e s p e c i a l l ya f t e ry o u s e e s o m e t h i n g

s t r a n g eh a p p e n .Y o uk n o ww h a tt o c h a n g ef o rd r i v e1 .

h eT r a n s a c t o r 1 7 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 20/84

U N - D I M e n s i o n

A sy o u k n o w ,a n ya t t e m p tt o D I M e n s i o na n a r r a yt h a ti s a l r e a d yi n

u s ew i l lr e s u l ti n t h eR E D I M ' DA R R A YE R R O R .I n f a c t ,t h eo n l y

w a yt o D I Ma n a r r a yb y t h es a m en a m et w i c ei s t o i s s u e aC L R

w h i c hd e s t r o y sa l ly o u ro t h e rv a r i a b l e s .

I n m o s tc a s e sy o us h o u l d n ' th a v et o d e f i n ea n a r r a ym o r et h a n

o n c e . B u ts o m e t i m e sa p r o g r a mm a yl a c km e m o r yf o ra p a r t i c u l a ro p e r a t i o nb e c a u s es o m ea r r a yt h a ti s n ' tr e q u i r e di s o c c u p y i n g

v a l u a b l es p a c e .T h ep r o g r a m w o u l db e r e q u i r e dt o d e t e r m i n ei f

a r r a yd e f i n i t i o n sc o u l db e e r a s e d w i t h o u tl o s i n gv a l u a b l e i n f o r m a

t i o n .T h e n ,u s i n gt h e f o l l o w i n gt e c h n i q u e s ,s o m eo r a l l o f t h e

a r r a y sc o u l db e e l i m i n a t e d .A f t e rp e r f o r m i n gt h e s o r t ,e t c . ,t h e

a r r a y sc a nb e r e - d e f i n e d ,r e a d yf o rf u r t h e ru s e .

I n a n o t h e rc a s e ,y o um a yh a v e a na r r a yt h a ti s t o os m a l l .W h e n

y o u rp r o g r a md e t e c t st h i s ,i n v o k eU N - D I Ma n d r e - D I Mt h e a r r a y

( b y t h es a m ev a r i a b l en a m e )a t t h en e wl a r g e rs i z e .

T h i sm e t h o dc a nn o t q u i t eb e c a l l e d' d y n a m i cd i m e n s i o n i n g ' .F i r s t ,

y o um u s ta c t u a l l ye l i m i n a t et h e a r r a yb e f o r ei t c a nb e r e - d e f i n e d .

A n yi m p o r t a n td a t ac o n t a i n e di n t h et a r g e ta r r a ym u s tb e r e - e s t a b

l i s h e da f t e ri t i s r e - D I M e d .S e c o n d l y ,y o uc a n n o te l i m i n a t ea n

a r r a yw i t h o u ta f f e c t i n go t h e ra r r a y sd e f i n e da t a l a t e rt i m e .I n -

o t h e r w o r d s ,t h el a s ta r r a yd e f i n e dw i l lb e t h ef i r s to n ee r a s e d ,a n d

s o o n . T h e r e f o r e ,i t i s b e s tt o D I Mt h e a r r a y sf i r s tt h a tw i l lb e

c o n s i d e r e dp e r m a n e n t a n dD I Mt h e " v a r i a b l e " a r r a y sl a s t .

F u n c t i o nA ( Q )( l i n e1 0 0 )m e a s u r e st h e " d i s t a n c e "i n b y t e sf r o mt h e

S t a r to f A r r a y sP o i n t e rt o t h e E n do f A r r a y sP o i n t e r .W h e nn e w

s i m p l ev a r i a b l e sa r e d e f i n e d ,b o t ht h e s e p o i n t e r sc h a n g ea s t h e

a r r a y sg e t p u s h e dh i g h e ri n m e m o r y .B u tt h e s i z e o ft h e a r r a y s

h a s n ' tc h a n g e d .S o t o e r a s ea n a r r a y ,y o us i m p l yb a c ku p t h eE n d

o f A r r a y sP o i n t e rb y t h es a m ed i s t a n c e( l i n e1 4 0 ) .B A S I Co n l yl o o k s

u p t o t h eE n dP o i n t e rf o re x i s t i n g a r r a y s ,s o i f i t i s n ' tf o u n dD I Mi s

a l l o w e d .

T h en e x tp r o g r a mi s a n " u n t a x e d "a n dl e s sc o m m e n t e dv e r s i o no f

t h ep r o g r a ma f t e ri t .

V I C2 0 / C o m m o d o r e6 4 V e r s i o n( F o rB A S I C2 . 0 / 4 . 0 s u b t r a c t3

f r o ma l l P E E K / P O K Ea d d r e s si n t h ef i r s t5 l i n e s . )

1 0 0 d e f f n a ( q )= ( p e e k ( 5 0 ) - p e e k ( 4 8 ) ) * 2 5 6

+ p e e k ( 4 9 ) - p e e k ( 4 7 )

1 1 0d e ff n h i ( q )= p e e k ( 4 8 )+ i n t ( q / 2 5 6 )1 2 0d e ff n l o ( q )= p e e k ( 4 7 )+ ( q a n d2 5 5 )

1 3 0g o t o1 6 0

1 4 0 p o k e5 0 ,t n h i ( x ) :p o k e4 9 ,f n l o ( x ) :r e t u r n

1 5 0r e m* * *s t a r to f p r o g r a m* * *

1 6 0 d i ma ( 1 0 ) , c ( 1 5 ) ,b ( 1 5 ) :a ( 3 )= f n a ( O )

1 7 0 d i m j ( 2 0 ) ,i ( 2 0 ) : a ( 5 )= f n a ( 0 )

1 8 0x = a ( 3 ) :g o s u b1 4 0: r e mc l rj ( & i (

1 9 0 d i mj ( 1 0 0 ) , i ( 1 0 0 ): a ( 5 )= f n a ( 0 ) :r e mr e - d i m

2 0 0d i ma d ( 2 5 0 )

2 1 0x = a ( 5 ) :g o s u b1 4 0: r e mc l ra r r a ya d (

2 2 0x = a ( 3 ) :g o s u b1 4 0: r e mc l rj ( & i ( a r r a y s

2 3 0x = 0 : g o s u b1 4 0: r e mc l ra l la r r a y s

B A S I C2 . 0 / 4 . 0V e r s i o n( F o rV I C / 6 4 ,a d d3 t o a l l P E E K / P O K

a d d r e s s e si n f i r s t6 l i n e s . )

1 0 0 d e f f n a ( q )= ( p e e k ( 4 7 ) - p e e k ( 4 5 ) ) * 2 5 6

+ p e e k ( 4 6 ) - p e e k ( 4 4 )

1 1 0d e ff n h i ( q )= p e e k ( 4 5 )+ i n t ( q / 2 5 6 )

1 2 0 d e f f n l o ( q )= p e e k ( 4 4 )+ ( q a n d2 5 5 )

1 3 0g o t o1 8 0

1 4 0r e m— c l ra r r a ys u b r o u t i n e—1 5 0p o k e4 7 ,f n h i ( x ) :p o k e4 6 ,f n l o ( x )

1 6 0r e t u r n

1 7 0 r e m* * *s t a r t o fp r o g r a m* * *

1 8 0 d i ma ( 1 0 ) , b ( 1 5 ) ,c ( 1 5 ) :a ( 3 )= f n a ( O )

1 9 0 r e ma ( 3 )= b y t e su s e d b yf i r s t3 a r r a y s ,a ( , b ( & c (

2 0 0p = 3 . 1 4 1 5 9 :i %= 1 0 : e t c $= " a n ds o o n "

2 1 0r e ma r r a y sm o v eu p a s s i m p l ev a r i a b l e sa r e d e f i n e d

2 2 0r e mh o w e v e r ,a ( 3 )r e m a i n st h es a m e

2 3 0d i mj ( 2 0 ) , i ( 2 0 ) : a ( 5 )= f n a ( O )

2 4 0 r e mn e wa r r a y s ,a ( 5 )= b y t e su s e d b ya l l5

2 5 0r $ = c h r $ ( 1 3 ) :q $ =c h r $ ( 3 4 )

2 6 0r e ma n dp e r h a p ss o m en e wv a r i a b l e s

2 7 0x = a ( 3 ) :g o s u b1 5 0

2 8 0 r e mc l ra r r a y sj ( & i ( , l e a v i n ga ( , b ( & c ( i n t a c t

2 9 0d i mj ( 1 0 0 ) , i ( 1 0 0 ) : a ( 5 )= f n a ( O )

3 0 0r e mr e d i mj ( & i (

3 1 0 d i m a d ( 2 5 0 )

3 2 0x = a ( 5 ) :g o s u b1 5 0: r e mc l rl a s ta r r a y

3 3 0x = a ( 3 ) :g o s u b1 5 0: r e mc l rj ( & i ( a r r a y s

3 4 0x = 0 : g o s u b1 5 0: r e mc l ra l la r r a y s

E R R O R O U T E R S c o t tM a c L e a n ,T o r o n t o

M a n yp e o p l eh a v ew r i t t e np r o g r a m st h a tt h e yd o n o tw a n tt o h a v e

o t h e rp e o p l ec r a s ho u to f e i t h e rb y a c c e d e n to r o n p u r p o s e .T h e

s h o r tp r o g r a mp r e s e n t e d h e r et r a p sa l l e r r o r sa n d r e - r u n st h e

p r o g r a mi f a n e r r o ro c c u r s .T h ep r o g r a mi s w r i t t e ni n B A S I C ,w i t ha

m a c h i n el a n g u a g er o u t i n el o a d e dw i t hd a t as t a t e m e n t s .I t w i l l

w o r ko n t h eV I Co r 6 4 .R u nt h ep r o g r a m a n di t w i l la s k ;" I n s t a l l

w h e r e ? " .E n t e ra n a d d r e s so f s a f eR A Mi n y o u rc o m p u t e r( s e e

b e l o w ) .W h e ny o up r e s sR E T U R Ni t w i l le n t e r t h em a c h i n el a n

g u a g es e c t i o na n da c t i v a t ei t .

S a f e p l a c e st o i n s t a l l

C 6 4 4 9 1 5 2o r 8 2 8

V I C ( 5 K ) 7 1 6 8o r 8 2 8V I C ( + 8 K )1 6 3 5 4o r 8 2 8

V I C (+ 3 K ) 7 1 6 8o r 8 2 8

L o c a t i o n8 2 8i s t h e t a p eb u f f e r .U s ei t o n l yi f y o ua r e n o td o i n ga n y

t a p e o p e r a t i o n s ,o t h e r w i s et h ec o m p u t e rw i l lc r a s hw h e ny o ug e t

a n e r r o r .T ou s et h i sr o u t i n ei n y o u ro w np r o g r a m s ,e n t e r t h ed a t a

s t a t e m e n t sa n dr e a dt h e mi n t of r e eR A M .T h e np o k el o c a t i o n s7 6 8

a n d7 6 9w i t ht h eL O / H Ia d d r e s so f t h e p l a c ey o up u tt h ep r o g r a m

i n . I t w i l lt h e nb e a c t i v a t e d .

H o wi t w o r k s

L o c a t i o n s7 6 8 a n d7 6 9a r e t h el o c a t i o n sw h i c ht e l lt h ec o m p u t e rw h e r et o g o i f i te n c o u n t e r sa n yk i n do f e r r o r .B yP O K E i n gt h e s e

l o c a t i o n sw i t ho u ro w nn u m b e r s ,w e c a n t e l l t h e c o m p u t e rt o

e x e c u t eo u ro w np r o g r a mi n s t e a do f i t ' sr e g u l a re r r o rr o u t i n e .T h i s

1 8 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 21/84

p r o g r a mP O K E st h e n u m b e r sr e p r e s e n t i n gR U Na n da c h r $ ( 1 3 )

( r e t u r n ) i n t ot h ek e y b o a r db u f f e r .T h e ni t j u m p st o t h en o r m a le r r o r

r o u t i n e .T h ec o m p u t e rt h e nd i s p l a y s t h ee r r o ra n dc h e c k st h e

b u f f e r .I t s e e ss o m ec h a r a c t e r s t h e r ea n d a s s u m e st h e u s e rt y p e d

t h e m ,s o i t d i s p l a y sa n de x e c u t e st h e m ,t h e r e b yr e - R U N n i n gt h e

p r o g r a mi n m e m o r y .

T h i sp r o g r a mc o u l d b eu s e df o rj u s ta b o u ta n yp r o g r a my o uw r i t e ,

i t m a k e si t v i r t u a l l yc r a s h p r o o f .I u s ei t o n m yb u l l e t i nb o a r d , s oi fs o m e o n em a n a g e st o c r a s hi t , i ts i m p l yr e s t a r t si t s e l f ,h a n g i n gu p

o n t h eu s e ri n t h e p r o c e s s . I ' ms u r ey o u ' l l f i n dm a n yo t h e ru s e s .

5 I = p e e k ( 7 6 8 ) :h = p e e k ( 7 6 9 )

1 0 d a t a1 6 9 ,8 2 , 1 4 1 ,1 1 9 , 2

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

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

2 5 d a t a1 6 9 ,1 3 , 1 4 1 ,1 2 2 , 2

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

3 5 p r i n t c h r $ ( 1 4 7 ) ;

4 0 i n p u t" i n s t a l lw h e r e "; x : y = x

5 0 r e a d a

5 5 i f a = 2 5 6t h e n7 5

6 0 c k = c k + a

7 0 p o k ex , a: x = x + 1 : g o t o 5 0

7 5 p o k e x ,I : p o k e x +1 , h

8 0 i f c k < > 2 5 6 8t h e np r i n t" d a t ae r r o r ": e n d

9 0 h i = i n t ( y / 2 5 6 ) :l o = y - ( h i * 2 5 6 )

1 0 0p r i n t" i n s t a l l e da t " y

1 1 0 p o k e7 6 8 ,l o : p o k e7 6 9 ,h i : n e w

L i n eH i d e r

L i n eH i d e r d o e sj u s tt h a t- h i d el i n e so f c o d et h a ty o ud o n ' tw a n t

s h o w nw i t h o u ta f f e c t i n g t h e i ro p e r a t i o ni n t h ep r o g r a m .H o w e v e r ,

i f y o uu s eL i n eH i d e rt o h i d ea l i n et h a ti s t h et a r g e to f a G O T Oo r

G O S U B ,y o u ' l lg e t a n U N D E F ' DS T A T E M E N TE R R O R .U s et h e

n e x tu t i l i t yf o rt h e s e .

T h e r e ' sj u s to n et r i c k t ou s i n gi t - y o um u s ts u p p l yt h e i n p u tw i t h

t h en u m b e ro f t h el i n e t h a tc o m e sB E F O R Et h eo n ey o uw i s ht o

h i d e .I t w o u l d n ' tb e h a r dt o m o d i f yt h i s t oh i d ea n e n t i r ep r o g r a m !

1 0 0 r e ms a v e "@ 0 : l i n eh i d e r ", 8 : v e r i f y " 0 : l i n eh i d e r ", 8

1 0 5r e m * h i d ea l i n ew i t h i ny o u rb a s i cp r o g r a m

1 1 0 r e m* b a s i c4 . 0: s b =1 0 2 5

1 1 5r e m * c 6 4o n l y: s b = 2 0 4 9( d e f a u l t )

1 2 0 r e m* v i eo n l y : s b =4 0 9 7( d e f a u l t )

1 2 5 :

6 3 9 8 9s b = 1 0 2 5: r e m* * s e t - u pf o r b a s i c 4 . 0

6 3 9 9 0i n p u t "l i n e# o f p r e c e d i n gl i n e" ; p l

6 3 9 9 1f o rl p = 1t o ( 2 t 1 6 ) - 1

6 3 9 9 2n u m= p e e k ( s b+ 2 ) + p e e k ( s b+ 3 ) * 2 5 6: r e m* l i n e#

6 3 9 9 3n x t= p e e k ( s b )+ p e e k ( s b+ 1) * 2 5 6

6 3 9 9 4i f n u m <p i t h e ns b = n x t :n e x tI p : e n d :r e m* s t i l lb e l o w

t h el i n e

6 3 9 9 5i f n u m >p i t h e np r i n t "l i n en o tf o u n d ": e n d

6 3 9 9 6s h = p e e k ( s b )+ p e e k ( s b +1 ) * 2 5 6: r e m* p o s i t i o no f

l i n et o h i d e

6 3 9 9 7n l = p e e k ( s h ) :n h = p e e k ( s h+ 1 ) : r e mp t r s t on e x tl i n e6 3 9 9 8p o k e s b . n l :p o k e s b + 1 , n h: r e mb y p a s st h el i n et o h i d e

6 3 9 9 9p o k es h + 2 , 0: p o k es h + 3 , 0 : r e ma n dc h a n g el i n e#

t o z e r o

G h o s tL i n e r

G h o s tL i n e rd o e sj u s tw h a tL i n eH i d e rd o e s ,e x c e p tt h e l i n e

n u m b e rw i l lb e d i s p l a y e dw i t hn o t h i n gb e y o n di t . G h o s tL i n e r

s e a r c h e sf o rl i n e s t h a ts t a r tw i t h5 c o l o n s .I t s u b s t i t u t e st h ef i r s t

c o l o nw i t ha z e r o .W h e nt h eL I S Tr o u t i n e s e e st h i sz e r o ,i t a s s u m e s

e n do f l i n ea n dg o e so n t o l i s tt h en e x tl i n e .R U Ni s n o ta f f e c t e d .

1 0 0 r e m a r k* g h o s tl i n e r- r t e

1 1 0 r e m a r k* c l o a k sa l l l i n e ss t a r t i n g

1 2 0 r e m a r k* w i t h: : : : :( 5 c o l o n s )

1 3 0 r e m a r k* b a s i c 4 . 0: v l = 4 2 : v h = 4 3: s b = 1 0 2 5

1 4 0 r e m a r k* c 6 4& v i e: v l = 4 5 : v h = 4 6

1 5 0 r e m a r k* c 6 4o n l y: s b =2 0 4 9( d e f a u l t )

1 6 0 r e m a r k* v i eo n l y : s b = 4 0 9 7( d e f a u l t )

1 7 0 :

1 8 0: v l = 4 2 : v h= 4 3 : s b= 1 0 2 5: r e m* b a s i c 4 . 0s e t - u p

1 9 0 l o c= p e e k ( v l )+ 2 5 6 * p e e k ( v h )

2 0 0p r i n t c h r $ ( 1 4 7 ) l o c , " :m a x i m u m "

2 1 0p r i n t , " :c u r r e n t "

2 2 0i f p e e k ( s b ) < > 5 8t h e n2 5 0

2 3 0c t = s b : f o rI p = 0 t o 0 : c t = c t + 1 : I p = ( p e e k ( c t )= 5 8 ) :n e x t2 4 0i f c t > s b + 4 t h e np o k es b , 0 : s b = s b + 4

2 5 0s b = s b + 1 : p r i n tc h r $ ( 1 9 ) c h r $ ( 1 7 ) s b: i f s b < l o ct h e n2 2 0

2 6 0e n d

L i s tD e c o r a t o r

W i t ha l l t h e s c r e e nf u n c t i o n c h a r a c t e r s a v a i l a b l ef o r c h a n g i n g

c o l o u ra n dc u r s o rp o s i t i o n ,w h yn o t m a k eu s e o f t h e mw h i l e

L I S T i n ga s w e l la s w h e ny o uR U N .L i s tD e c o r a t o rw i l lt a k ed u l l ,

u n o t i c e a b l er e m a r k sa n dm a k et h e mb r i g h ta n de a s yt o s p o t .T h e

l i s tb e l o ws h o w s w h a tv a l u et o u s ef o rt h ep o s s i b i l i t i e s .Y o un e e d

n o t s t o pa t o n et h o u g h- a f t e rr u n n i n gi t o n c eo n i t s e l f( s e el i n e1 6 0

& 1 7 0 ) ,L I S Tt h e p r o g r a ma n di n s e r tn e w@ s i g n si n t h es a m e

p l a c e .N o wR U Na g a i n .L i s tD e c o a r a t o rw i l lr e p l a c ea l lo c c u r e n c e s

o f " R E M@ "w i t h R B .

r b = 5 f o rw h i t el i n e( c 6 4& v i e )

r b = 7 f o rr i n gt h eb e l l

r b = 1 3 f o rc a r r i a g e r e t u r n

r b = 1 4 f o ru p p e r / l o w e rc a s e

r b = 1 5 t o s e tt h e t o pl e f tc o r n e r( c b mo n l y )

r b = 1 7 f o rc u r s o rd o w n

r b = 1 8 f o rr e v e r s e dp r o g r a mr e ml i n e s

r b = 1 9 f o rc u r s o rh o m e

r b = 2 0 f o rd e l e t ec h a r

r b = 2 1 f o rd e l e t e al i n e( c b mo n l y )

r b = 2 5 f o r s c r o l ld o w n( c b mo n l y )

r b = 2 8 f o rr e dl i n e( c 6 4& v i e )

r b = 2 9 f o rc u r s o rr i g h t

r b = 3 0 f o rg r e e nl i n e( c 6 4& v i e )

r b = 3 1 f o rb l u el i n e( c 6 4& v i e )

1 0 0r e m* l i s td e c o r a t o r- r t e

1 1 0r e m* I b = 4 2: h b = 4 3 : s b = 1 0 2 5: r e m* f o rb a s i c 4 . 0

1 2 0r e m* I b = 4 5: h b = 4 6 : r e m* f o rc 6 4& v i e

1 3 0r e m* s b = 2 0 4 9 : r e m* f o rc 6 4( d e f a u l t )

1 4 0r e m* s b =4 0 9 6 : r e m* f o rv i e ( d e f a u l t )1 5 0 :

1 6 0r e m@ t h i si s h o wy o u rr e m a r ks h o u l dl o o kw h e ne n t e r e d

T h eT r a n s a c t o r 1 9 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 22/84

1 7 0r e m@ e v e r yo c c u r e n c ei s s u b s t i t u t e d

1 8 0 :

6 3 9 9 5I b = 4 2 : h b = 4 3: s b = 1 0 2 5: r e mb a s i c 4 . 0s e t u p

6 3 9 9 6i n p u t "r e p l a c e m e n tb y t ef o r@ " ; r b

6 3 9 9 7m x= p e e k ( l b )+ p e e k ( h b ) * 2 5 6: f o ra = s b t o m x

: b = p e e k ( a ) :i f b < > 1 4 3t h e n 2 8 5

6 3 9 9 8i f p e e k ( a+ 1 ) = 3 2 a n dp e e k ( a+ 2 ) = 6 4 t h e n

p o k e ( a+ 2 ) , r b

6 3 9 9 9n e x t :e n d

S i n h i b i t o r s

T h i sn e x tc o l l e c t i o no f h a n d yP O K E sw a ss u b m i t t e db y A d a m

F o s t e ro f K i n g s t o n ,O n t a r i o .

M a n ys o f t w a r ec o m p a n i e sg o t h r o u g ha g r e a td e a lo f t r o u b l et o s t o p

p r o g r a mp i r a t e sf r o ms t e a l i n gt h e i rs o f t w a r e .B u tn o m a t t e rh o w

m u c hp r o t e c t i o ny o uh a v eo n a p r o g r a m ,i f t h ep i r a t er e a l l yw a n t s

t o g e ti n , h e w i l l .

O nt h eV I C 2 0a n dC o m m o d o r e6 4 t h e r e a r e s e v e r a le a s yP O K E st o

s t o p t h ec o m m o nt h i e f .1 s t r e s st h e w o r d" c o m m o n "s i n c ea n y

e x p e r i e n c e dp i r a t ew i l lg e tb y t h e s ee a s i l y .

L i s tT e r m i n a t o r

T h i sf e a t u r ew i l lp r e v e n to t h e r sf r o m v i e w i n g y o u r p r o g r a m .O n

b o t ht h eV I Ca n dt h e6 4 a d da l i n et o :

P O K E7 7 5 ,2 0 0

T o r e - e n a b l eL I S T ,P O K E7 7 5w i t h 1 6 7o n t h e6 4 a n d1 9 9o n t h e

V I C . U n f o r t u n a t e l y ,i t o n l yw o r k si f t h e p r o g r a mh a sb e e nR U N

b e f o r et h e yt r ya n dL I S Ti t . ( s e eL o c k D i s kl a t e ro n - M . E d )

S a v e T e r m i n a t o r

T h e6 4 v e r s i o no f t h i ss t o p s t h es a v i n go f y o u rp r o g r a mb y

d i s a b l i n g t h eR U NS T O P / R E S T O R Ek e y s .T o d o t h i s :

P O K E8 0 8 ,2 2 5 :P O K E8 1 8 ,3 2

T o r e t u r nt o n o r m a lP O K Eb o t hl o c a t i o n st o 2 3 7 .O n t h eV I C ,t h i s

k i l l e ri s e n a b l e db y :

P O K E8 0 2 , 0 :P O K E8 0 3 ,0 : P O K E8 1 8 ,1 6 5

a n di s d i s a b l e dw i t h :

P O K E8 0 2 ,2 4 3: P O K E8 0 3 ,0 : P O K E8 1 8 ,1 3 3

S T O PK e y

T od i s a b l e t h eS T O Pk e y ,a d d :

P O K E8 0 8 ,2 2 5

t o y o u rp r o g r a m .P O K E8 0 8 ,2 3 7t u r n s t h eS T O Pk e yo n a g a i n .

T h i sw o r k so n b o t h c o m p u t e r s .

t u r n s t h ek e y b o a r do f f ,a n dP O K E6 4 9 , 1 0 t u r n si t b a c ko n f o rb o t h

t h eV I C a n d6 4 .

E t c h . A S k e t c h .

K e y b o a r dK i l l e r

P O K E6 4 9 ,0

N o tt h e q u i c k e s t h i - r e sg r a p h i ca i d ,b u t i t d e m o n s t r a t e sc l e a r l y

s o m ef u n d a m e n t a l s .L i k es e t t i n gu p t h e h i - r e s s c r e e n ,t e s t i n g

b o u n d a r i e sa n da d j u s t i n gf o rm a x / m i n ,c a l c u l a t i n g h i - r e s p o

t o t h e b i t , t e s t i n gf o r t h e f i r eb u t t o n ,a n dd e t e r m i n i n gj o y s t i c kd i r e c t i o n .I t w o u l d n ' t b e t o u g ht o m a k et h i sm a c h i n el a n g u a g e .

W r i t t e nb y D a v eG z i k ,C o m m o d o r eC a n a d a .

E T C H A S K E T C H

H e r ei s a n e a tl i t t l ep r o g r a mt h a tc o n v e r t sy o u rC 6 4i n t oa n

e t c h a - s k e t c ht y p et a b l e t .T o u s et h i sj u s tl o a d t h ep r o g r a ma n dr u n

i t . Y o u ' l ln e e dt o h a v ea j o y s t i c kp l u g g e di n t op o r t2 .

D r a w i n gi s a c c o m p l i s h e d b ym o v i n gt h ej o y s t i c ki n t h ed i r e c t i o n

y o u w a n t a n dt h i sp r o g r a mw i l ld r a wi n e i g h td i r e c t i o n s .I f y o u

w a n tt o l i f tt h ed r a w i n g p e nj u s th o l dd o w nt h eF I R Eb u t t o na n d

m o v ew h e r e y o u w a n tt o g o .

T h i si s a v e r ys i m p l eB A S I Cp r o g r a m ,t h e r ei s n o c u r s o rt o i n d i c a t e

t h el o c a t i o no f t h ep e n ,s o y o u ' l lb e g u e s s i n gw h e ny o ul i f ti t o f ft h e

d r a w i n ga r e a .

Y o uc a ne x p a n d o nt h i si f y o uw i s hb u ti t i s r a t h e rs l o wi n B A S I C .

G i v ei t a t r yi t ' sn o tt h a tl o n go r t e d i o u s .

5 r e me t c h a s k e t c hb y d a v eg z i k( c b mC a n a d a )

1 0 b a s e =2 * 4 0 9 6: p o k e5 3 2 7 2 , p e e k ( 5 3 2 7 2 ) o r 8

2 0 p o k e5 3 2 6 5 , p e e k ( 5 3 2 6 5 )o r 3 2

3 0 f o ri = b a s et o b a s e +7 9 9 9: p o k ei , 0 : n e x t

4 0 f o ri = 1 0 2 4t o 2 0 2 3: p o k ei , 3 : n e x t

5 0 x = 1 6 0: y = 1 0 0: r e ms t a r to f fp o i n t

7 5 i f y < 0 t h e ny = 1 9 9

7 6 i f y > 1 9 9 t h e n y= 0

7 7 i f x < 0 t h e nx = 3 1 9

7 8 i f x > 3 1 9 t h e n x= 0

8 0 r o w= i n t ( y / 8 ) :c h a r= i n t ( x / 8 ) : l i n e= y a n d7

9 0 b i t= 7 - ( x a n d 7 ) :b y t e= b a s e + r o w * 3 2 0 +c h a r * 8+ l i n e

9 5 i f f r + j v = 1 1 1t h e n1 1 0

1 0 0 p o k eb y t e ,p e e k ( b y t e )o r 2 t b i t

1 1 0j v = 1 5 - ( p e e k ( 5 6 3 2 0 )a n d1 5 )

1 1 1f r = p e e k ( 5 6 3 2 0 )

1 2 0i f j v = 1 t h e n y= y - 1 : g o t o 7 5

1 4 0i f j v = 2 t h e ny = y + 1 : g o t o 7 5

1 5 0i f j v = 4 t h e nx = x - 1 : g o t o 7 5

1 6 0i f j v = 5 t h e nx = x - 1 : y = y - 1 : g o t o 7 5

1 7 0i f j v = 6 t h e nx = x - 1 : y = y + 1 : g o t o 7 5

1 8 0i f j v = 8 t h e nx = x + 1 : g o t o 7 5

1 9 0i f j v = 9 t h e nx = x + 1 : y = y - 1 : g o t o 7 5

2 0 0i f j v = 1 0 t h e nx = x + 1 : y = y + 1: g o t o7 5

2 1 0g o t o7 5

E d i t o r ' s N o t e :N o t i c eh o wD a v et e s t st h ef i r eb u t t o ni n l i n e9 5 .

T h i sw o r k sn o m a t t e rw h a td i r e c t i o nt h ej o y s t i c ki s b e i n gh e l d .

W h y ?B e c a u s et h e j o y s t i c k p o r t sa r e i n v e r t e dl o g i c .T h i sm e a n s

w h e nn o t h i n gi s h a p p e n i n go n t h ej o y s t i c k( e x c e p tf o rt h ef a c tt h a ti t ' sp l u g g e di n )t h ej o y s t i c kr e g i s t e rw i l lc o n t a i na v a l u eo f 1 2 7( b i t s

0 - 6o n ,7 o f fw h i c hf l a g sp o r t2 ) .L i n e 1 1 0 u n - i n v e r t st h ev a l u eb y

f i r s tl o o k i n ga t o n l yt h ef i r s t4 b i t s ,a n ds u b t r a c t i n gt h a tf r o m1 5 t o

T h eT r a n s a c t o r 2 0 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 23/84

g e td i r e c t i o nv a l u e st h a tm a k ea l o tm o r es e n s e .A s J V g o e su p F R

g o e sd o w ns o F R +J V r e m a i n sc o n s t a n t ,w h e t h e rt h ef i r ei s d o w n

o r n o t .B u tw h e nt h ef i r eb u t t o nI S d o w n ,t h a tc o n s t a n ti s 1 1 1 .

C 6 4D e f a u l tS c r e e n C o l o u r s

T h i sn e x ti t e mc o m e st o u s f r o mR . D .Y o u n go fJ a m e sP a r k ,N e w

B r u n s w i c k .

I f y o u rb l a c ka n dw h i t eT Vh a st h eb l u e s , o ra t l e a s ti f i t d o e s n ' tl i k e

t h eb l u ed e f a u l ts c r e e nc o l o u r st h a ta p p e a ro n p o w e r - u p , y o uc a n

e a s i l yP O K Ei n n e wc o l o u r s .T h e nf r e q u e n t l ya n dj u s ta s e a s i l y ,

y o uc a nw a t c hy o u rn e wc o l o u r sd i s a p p e a r w i t he a c hR U N - S T O P /

R E S T O R Ek e ys e q u e n c ea n dy o um u s ts e tt h e ma l lo v e ra g a i n .Y o u

m a ye v e n h a v ea f a v o u r i t ec o l o u rc o m b i n a t i o nw i t hy o u rc o l o u r

m o n i t o r .. . s a m ep r o b l e m .

T r y t h e f o l l o w i n gl i t t l ep r o g r a m .I t l o a d s am a c h i n el a n g u a g e

p r o g r a mi n t oa n y d e s i r e dm e m o r ya r e a ,c h a n g e st h e " B A S I C

W a r mS t a r tV e c t o r "t o p o i n tt h e r e ,a n dw i l lk e e p y o u rs c r e e ns e t t o

y o u ro w nd e f a u l tc o l o u r c o m b i n a t i o n .

T h es t a r t i n gl o c a t i o nf o r t h e m a c h i n el a n g u a g ep r o g r a mi s f i r s t

s e l e c t e d .M y d e f a u l ti s d e c i m a l9 0 0 , t h em i d d l eo f t h e c a s s e t t e

b u f f e r .A n o t h e ru s u a l l ys a f ep l a c ei s b e t w e e n 4 9 1 5 2 a n d5 3 2 3 2 .

1 0 r e ms e td e f a u l tc o l o u r so n r u n - s t o p / r e s t o r e

2 0 r e mb y r . d .y o u n g

3 0 i n p u t" s t a r tl o c a t i o n 9 0 0 [ l e f t5 ] " ; a d

4 0 f o ri = a d t o a d + 1 5 : r e a dx : p o k ei , x : n e x t

5 0 h i = i n t ( a d / 2 5 6 ) :l o = a d a n d2 5 5

6 0 i n p u t" s c r e e nc o l o u r ( 0 - 1 5 )6 [ l e f t3 ] "; c

7 0 p o k ea d + 1 ,c

8 0 i n p u t" c u r s o rc o l o u r ( 0 - 1 5 )1 3 [ l e f t4 ] "; c

9 0 p o k ea d +9 , c

1 0 0p o k e7 7 0 ,l o : p o k e7 7 1 ,h i

1 1 0s y s6 5 1 2 6

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

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

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

T h ed e f a u l t si n t h ep r o g r a ma r es e tt o b l u es c r e e nw i t hl i g h tg r e e n

t e x t .R e f e rt o a n yc o l o u rt a b l e( p g1 5 9i n 6 4 U s e rG u i d e )f o rc o l o u r

c o d e st h a tr e p r e s e n te a c hc o l o u rc h o i c e .B o t ht h e s c r e e na n d

b o r d e ra r e s e t t o t h e s a m ec o l o u r( m yc h o i c e )b u ta l i t t l ee x t r a

m a c h i n el a n g u a g e c o u l dc h a n g ea l l t h a t .H a p p yR E S T O R E i n g !

T a p eS a v i n g N o t e s

S a v i n gt o t a p ef r o mB A S I Cm e r e l yw r i t e st o t a p ee v e r y t h i n gt h a t

l i e sb e t w e e nt h eS t a r ta n dE n do f B A S I CP o i n t e r s .S a v i n gt o t a p e

f r o mt h eM a c h i n e L a n g u a g eM o n i t o ra l l o w so n et o s a v ea n ya r e ao f

m e m o r yb e c a u s et h e u s e r s u p p l i e s t h es t a r ta n d e n da d d r e s s .T h e

f o r m a ti s :

s y s4 ; e n t e rm o n i t o ro n B A S I C4 . 0m a c h i n e s

. s " s o m en a m e " , 0 . 1 , 6 0 0 0 , 7 0 0 0

. . . w h i c h s a v e sa l l m e m o r yf r o mh e x 6 0 0 0t o 7 0 0 0o n c a s s e t t e* \

u s i n gt h en a m e" s o m en a m e " .B u tt h eM L MS a v ea l w a y sh a d o n e

d r a w b a c k .I t w o u l dn o ts a v ea n ym e m o r ya b o v eh e x7 F F F .T h e

p r o b l e ml i e si n t h et a p ew r i t e r o u t i n e st h a tC o m m o d o r ed e s i g n e d

y e a r sa g o w i t ht h eP E T2 0 0 1 .C o m m o d o r ea s s u m e db a c kt h e nt h a t

t a p ew o u l dn e v e rb e w r i t t e nw i t h d a t aa b o v e7 F F F .S o t h e yu s e d

t h eh i g hb i t o f t h eh i g hb y t eo f t h ea d d r e s st o s i g n a le n do f w r i t e .

W h e nt h e c u r r e n t w r i t ea d d r e s sm a t c h e dt h ee n da d d r e s s( i e .E n d

o f B A S I CP o i n t e r ) ,t h i sb i t w o u l db e s e t .T h el a s tb y t ew o u l db e

o u t p u ta n d ,i n a l a t e rp a r to f t h e t a p eo u t p u tr o u t i n e s ,t h i sb i tw o u l d

b e d e t e c t e da n dw r i t i n gt a p ew o u l db e t e r m i n a t e d .H o w e v e r ,i f t h e

c u r r e n t w r i t ea d d r e s sg o e sa b o v e7 F F F ,t h i sb i ti s s e tn a t u r a l l y ,b u to f c o u r s et h e t a p ec l o s e r o u t i n ew o u l dh a v en o w a yo f d i f f e r e n t i a t

i n ga n dt a p e w r i t ew o u l dt e r m i n a t e .

W i t h o u tt e l l i n ga n y b o d y ,i t s e e m sC o m m o d o r eh a s l i f t e dt h a t

r e s t r i c t i o nf r o mt h e t a p er o u t i n e si n t h eV I C2 0 a n dC o m m o d o r e

6 4 .A l t h o u g hy o um u s ti n s t a l ly o u ro w nM L Mp r o g r a m( i e .S u p e r -

m o n ,V I C M O NC a r t r i d g e ,e t c . )t h e f o l l o w i n gc o m m a n dw i l lb e h a v e

p e r f e c t l y :

. s " s o m en a m e " , 0 1 , c O O O . d O O O

. . . w i l ls a v et o t a p ee v e r y t h i n gf r o m$ C 0 0 0t o $ C F F F .R e m e m b e r ,

y o u m u s ts p e c i f yt h el a s ta d d r e s sd e s i r e d ,p l u s1 .

R E S T O R EX

T h i ss h o r tm a c h i n el a n g u a g el o a d e rw a ss u b m i t t e db y G a r r y

K i z i a ko f B u r l i n g t o n , O n t a r i o .I t a l l o w sy o ut o R E S T O R Et h eD A T A

p o i n t e rt o a n yD A T Al i n ea s o p p o s e dt o t h ef i r s tD A T Al i n e .A n d

w i t hj u s to n es i n g l eS Y S .W r i t t e nf o rt h e6 4 o r V I C2 0 .

1 0 r e s t r= 8 2 8 : f o rk = r e s t rt o r e s t r+ 3 1 : r e a dj : p o k ek , j : n e x tk

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

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

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

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

1 0 0f o ri = 1 t o 2 0

1 1 0 x= 1 0 0 * ( i n t ( r n d ( 1 ) * 5 )+ 2 )

1 2 0s y sr e s t r ,x

1 3 0r e a da $ : p r i n ta $

1 4 0n e x t

1 5 0e n d

2 0 0d a t ai ' ma t l i n e2 0 0

3 0 0d a t ai ' ma t l i n e3 0 0

4 0 0d a t ai ' ma t l i n e4 0 0

5 0 0d a t ai ' ma t l i n e5 0 0

6 0 0d a t ai ' ma t l i n e6 0 0

V o i c eF o rC o m m o d o r eC o m p u t e r s :V o l .5 , I s s u e 0 1 ,P g 7 1 ,

U n d e rs u b - h e a d i n g" C o m m o d o r e6 4 N o t e s " ,a d dl i n e :

1 5 3p o k er a ,p e e k ( r a )a n d2 5 1 : r e ms e tp a 2 l o w

M e r g i n gB A S I CP r o g r a m s :V o l .5 , I s s u e0 2 , P g 5 4 , B o t h

p r o g r a m sw i l lw o r ka s s h o w n ,b u t t h ec h e c k s u mf o rt h e6 4 v e r s i o n

i s w r o n g .C h a n g e' 5 1 2 3 0 'i n l i n e1 4 0t o 4 9 3 7 9 .T h a n k st o N i c k

F o u r n i e rf o rp o i n t i n gt h a to u t .

A n dy e s , t h a tw a sJ i m .B . ,' 6 9

T h eT r o n s a c t o r 2 1 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 24/84

T w oR e v i e w s :

P A L6 4 a n dP O W E R6 4b y C h r i sZ a m a r a ,T e c h n i c a lE d i t o r

P A L6 4

P A L6 4 i s a n a s s e m b l e rf o r t h e 6 4 ( P A Ls t a n d sf o r P e r s o n a l

A s s e m b l yL a n g u a g e ) ,w r i t t e nb y B r a dT e m p l e t o na n dd i s t r i b u t e d

b y P r o - L i n es o f t w a r e .B r a dT e m p l e t o nw r o t eP A La s a d e v e l o p

m e n tt o o lt o w r i t eP O W E R( a l s or e v i e w e di n t h i si s s u e ) ,a n d

P O W E Ra n dP A Lw o r kv e r yw e l lt o g e t h e r .L i k eP O W E R ,P A Lw a s

o r i g i n a l l yw r i t t e nf o ra P E Ty e a r sa g o ,s o i t i s t h o r o u g h l yd e b u g g e d

a n dt e s t e db y n o w .T h e6 4 v e r s i o ni s p r e t t ym u c ht h es a m ea s t h e

o l dP E Tv e r s i o n .O n t h eP A L6 4 d i s kt h e r e a r es o m eo t h e ru t i l i t i e s

a s w e l l ,i n c l u d i n gJ i m B u t t e r f i e l d ' sS U P E R M O N6 4 , R P A Lf o r

c r e a t i n g r e l o c a t a b l eo b j e c tc o d e ,a n da P A Lu n a s s e m b l e s w h i c h

c o n v e r t so b j e c tc o d et o P A Lc o m p a t i b l es o u r c ec o d e .

P A Li s i n s o m ew a y sa c o n v e n t i o n a la s s e m b l e r ,b u tv e r yd i f f e r e n t

i n o t h e r s .F i r s to f a l l ,i t c o n f o r m sp r e t t yw e l lt o t h eM O Ss t a n d a r di n

a l l b u ta f e wo f t h em o r ee s o t e r i cc o n v e n t i o n s .W h a tm a k e sP A L

u n i q u e ,h o w e v e r ,i s h o we a s yi t i s t o u s e .O n c e P A Li s i n s t a l l e d ,a n

a s s e m b l e rp r o g r a mi s e n t e r e dj u s ta s aB A S I Cp r o g r a m :u s i n gl i n e

n u m b e r sa n dt h eb u i l t - i ne d i t o r( u s i n gP O W E Ra s w e l l ,i f y o uh a v e

i t ) . T o a s s e m b l et h e p r o g r a m ,j u s tt y p eR U N .T h a t ' si t . A S Y S

c o m m a n da t t h eb e g i n n i n go f t h ep r o g r a md i r e c t sc o n t r o lt o P A L ,

w h i c hd o e sa l lt h er e s t ,i n t e r p r e t i n gt h ep r o g r a ma s a s s e m b l e rc o d e

u n t i li t r e a c h e st h e e n do r t h eE N Dp s e u d o - o p( w h i c hm a yb e

f o l l o w e db y B A S I Cc o d e ) .

M o s ta s s e m b l e r sh a v et h e i ro w ne d i t o r ,w h i c hp r o d u c e sa s o u r c e

f i l e ,w h i c h m u s tt h e nb e a s s e m b l e da n dl i n k - e d i t e dt o p r o d u c ea n

o b j e c tf i l e .P A Li s v e r ye a s yt o u s e ,s i n c e t h es o u r c ep r o g r a mi s

e n t e r e d u s i n gt h e f a m i l i a rB A S I Ce d i t o r .F u r t h e r m o r e ,y o u s t i l l

h a v eB A S I Ca v a i l a b l ei f y o uw i s ht o u s e i t . Y o um a ye v e n m i x

B A S I Ca n da s s e m b l e ri n t h es a m ep r o g r a m a n dc r e a t e ah y b r i d

m o d u l e ,u s i n g P A L ' s p o w e r f u lB A Sp s e u d o - o p .

T h eo t h e rg o o dt h i n ga b o u tP A Li s t h a ti t ' sf a s t .I f t h e" p r i n t "o p t i o n

i s t u r n e do f f ( n od i s p l a yo f a s s e m b l yo u t p u t ) ,e v e nt h e l o n g e s t

p r o g r a m s a s s e m b l ei n a f e ws e c o n d s ,p r o v i d i n gt h e r ei s n o d i s k

a c c e s s .B A S I Cc o d em a yb e e x e c u t e da f t e rt h e P A Ls o u r c e h a s

a s s e m b l e d ,s o a s s e m b l i n ga n dr e - r u n n i n ga m a j o rp r o g r a mi s a s

s i m p l ea s t y p i n gR U N .P A L ' se a s eo f u s ei s i t ss t r o n gp o i n t .

P A Lh a ss o m ef e a t u r e sf o u n di n f u l l - f e a t u r e da s s e m b l e r sw h i c h

a l l o wl a r g es o u r c ef i l e st o b e c r e a t e d o u to f a n u m b e ro f s m a l l e r

m o d u l e s .T h eF I Lp s e u d o - o pb r i n g s t h en e x tm o d u l ei n t om e m o r y

f o ra s s e m b l i n g .A f t e rt h e n e x tm o d u l ei s a s s e m b l e d ,c o n t r o li s n o t

r e s t o r e dt o t h eo r i g i n a ls o u r c e , s ot h eF I Lm u s ta p p e a ra t t h ee n do f

a m o d u l e . T h e r ea r ea l s op s e u d o - o p sw h i c hs a v eo r l o a da s y m b o l

t a b l et o o r f r o md i s k .T h i si s a g o o dw a yt o c o m m u n i c a t eb e t w e e n

m o d u l e s .

A u n i q u eP A Lf e a t u r ew o r t h yo f e x p l a n a t i o ni s t h eB A Sp s e u d o - o p .

A s m e n t i o n e da b o v e , u s eo f t h i sc o m m a n di n a s o u r c ep r o g r a m

a l l o w si n t e r m i x i n go f m a c h i n el a n g u a g ea n d B A S I Cc o d e( c a l l e d

" h y b r i d " p r o g r a m s ) .A s s e m b l e rl a b e l sb e c o m ea v a i l a b l et o t h e

B A S I Cs e c t i o n so f c o d e a n dc a nb e a c c e s s e db y a S Y Sc o m m a n d ,

f o r e x a m p l e :S Y S" P L O T "c o u l d e x e c u t ea m a c h i n el a n g u a g e

p r o g r a ml a b e l l e d" P L O T "i n t h ea s s e m b l e rc o d e .W h e nt h eh y b r i d

p r o g r a mi s R U N ,t h er e s u l t i n g o b j e c tc o d ew i l lc o n t a i na m i x t u r eo f

B A S I Ca n dm a c h i n el a n g u a g ei n a s i n g l ep r o g r a mw h i c hm a yb e

R U Nd i r e c t l yf r o m B A S I C . T h i s s e t - u pw o r k se s p e c i a l l y w e l lw h e n

u s i n gP O W E R ,s i n c eP O W E Ra l l o w sy o ut o s w i t c hb a c ka n df o r t h

b e t w e e nt h es o u r c ea n do b j e c tp r o g r a m s( t h e o b j e c tp r o g r a mw i l l

o n l yd i s p l a y t h eB A S I Cs e c t i o n so f c o d e ) .W i t h o u tP O W E R ,t h e

o b j e c tm o d u l em u s tb e w r i t t e nt o d i s ka n dl o a d e di n s e p a r a t e l yt o

t e s ti t , w h i c hi s a b i ta w k w a r d .I n t h i sc a s e ,i t ' sp r o b a b l ye a s i e rt o

j u s tu s es e p a r a t em a c h i n el a n g u a g ea n dB A S I Cp r o g r a m s ,a t l e a s t

d u r i n gd e v e l o p m e n t .U s i n gP O W E Ra n dP A Lt o g e t h e r( a st h eP A L

m a n u a l r e c o m m e n d s )m a k e sf o ra p o t e n tp r o g r a m m i n ge n v i r o n

m e n tf o rh y b r i ds y s t e m s .

A n o t h e rP A La d v a n t a g ei s t h a ti t i s o n l y4 K o f c o d e ,a n d i s f u l l y

r e l o c a t a b l e .T h i sm e a n si t c a nb e b u r n e di n t oa 4 K E P R O Ma n d

p l u g g e di n t ot h ee x p a n s i o np o r t .O f c o u r s e ,l i v i n gi n o n l y4 Ka l s o

m e a n st h a tP A Ld o e sn o th a v ea l lo f t h ef e a t u r e so f a b i g ,e x p e n s i v e

a s s e m b l e r .N o m a c r o s ,l i n k - e d i t o r , c a l l a b l eo b j e c tm o d u l e s ,o r

l a b e li m p o r t / e x p o r tc a p a b i l i t yi n t h i sp a c k a g e .P A Ls e e m sw e l l

s u i t e dt o t h e6 4 ' sc h a r a c t e r :t h eV o l k s w a g e nr a b b i to f c o m p u t e r s-

n o t q u i t ea B M W ,b u ta g o o d ,m i d - p r i c e dp e r f o r m e r .

W h e nu s i n gP A Lt o d e v e l o pa l a r g ep r o g r a mc o n t a i n i n gs m a l l e rm o d u l e s ,t h em a i np r o b l e mi s i t s l a c ko f a l i n k - e d i t o r .A m o d u l e

c a n ' tb e s e p a r a t e l ya s s e m b l e d ,s i n c eP A Lm u s tk n o wi t s s t a r t

a d d r e s s ,w h i c hi s d e p e n d a n to n a l l t h ep r e c e d i n g m o d u l e s .P A L

g e t sf u l lm a r k sf o r b e i n g e a s yt o u s e ,b u t u s i n gi t f o r a s u c h a n

a p p l i c a t i o nc a nb e a b i t c l u m s y , a l t h o u g ht h e r e a r ew a y st o w o r k

a r o u n dt h ep r o b l e m .

C o n s i d e r i n gt h es p e e d( a c t u a l l y ,t h el a c k t h e r e o f )o f t h e 1 5 4 1d i s k

d r i v e ,a f u l l yd i s k - b a s e da s s e m b l e rc o u l db e f r u s t r a t i n g l ys l o w .

S i n c eP A Li s n o td i s k - b a s e d ,b y n e c e s s i t yi t l o s e ss o m ef e a t u r e so f

a b i g g e ra s s e m b l e r .T o m a k eu p f o r i t , P A Ls e e m si n t e n d e df o r

c o n v e n i e n c e ,a n dt o a l l o w an e w c o m e rt o j u m pr i g h t i n t oa s s e m b l y

l a n g u a g e w i t h o u tf e e l i n gi n t i m i d a t e d .I n t h a t e n d i t s u c c e e d s

a d m i r a b l y , w h i l ea l s ob e i n g t h o r o u g h l y u s e a b l ef o r s e r i o u sp r o

g r a m m i n g .I w o u l de v e ng o s o f a r , i n P A L ' sc a s e ,t o u s e a n

o v e r - w o r k e dc l i c h ea n dc a l li t " u s e rf r i e n d l y " .

A f t e rr e a d i n gt h e m a n u a lt h a tc a m ew i t hP O W E R ,1 w a sd i s a p

p o i n t e dw i t ht h eP A Ld o c u m e n t a t i o n .I t i s w r i t t e nb y B r a dT e m p l e

t o n ,w h oa p p e a r st o b e m u c hb e t t e ra t p r o g r a m m i n gt h a nh e i s a t

w r i t i n gm a n u a l s .I n a l l f a i r n e s s ,t h e m a n u a ld o e se x p l a i na l l o f

P A L ' sf e a t u r e sa n di s n o td i f f i c u l tt o u n d e r s t a n d ,b u tt h eo r g a n i z a

t i o ni s l e s st h a ni d e a l ,a n dt h ee x p l a n a t i o n sg e ta b i t m u d d l e da t

t i m e s .O f c o u r s e ,t h i si s i n c o n t r a s tw i t ht h e P O W E Rm a n u a l ,

w h i c h w a se x c e p t i o n a l .T h e P A Lm a n u a li s s t i l lb e t t e rt h a nm a n y .

I n c o n c l u s i o n ,P A Li s a n e x c e l l e n tc h o i c ef o ra n a s s e m b l e ro n t h e

6 4 .I t ' sv e r yh a n d yw h e ny o uj u s tw a n tt o w h i p u pa l i t t l ea s s e m b l e r

T h eT r a n s a c t o r 2 2 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 25/84

p r o g r a m a n de x e c u t ei t w i t h o u t g o i n g t h r o u g ha l o to f t r o u b l e .P A L

c a nb e u s e df o rs e r i o u ss y s t e m d e v e l o p m e n t ,b u tj u s td o n ' te x p e c t

m a c r o s ,a l i n k e d i t o r ,e t c .F o rt h e 6 4 , P A Li s p r o b a b l yt h e b e s t

a s s e m b l e ra v a i l a b l e ,a n di t se a s eo f u s ei s a b o n u sf o rb e g i n n e r st o

a s s e m b l yl a n g u a g e .

P O W E R6 4

P r o - L i n e ' sP O W E R6 4 i s t h e 6 4 v e r s i o no f B r a dT e m p l e t e o n ' s

P O W E R ,a s o f t w a r et o o lt h a tp r o g r a m m e r sh a v eb e e nh a p p i l y

u s i n gf o ry e a r sn o w . D e v e l o p e do r i g i n a l l yf o r t h e P E Ts e r i e so f

c o m p u t e r s ,P O W E Ra d d sf e a t u r e st o t h ee d i t o ra n d B A S I Ci n t e r

p r e t e rw h i c hi n c r e a s ep r o g r a m m i n gp r o d u c t i v i t ye n o r m o u s l y .U n

l i k es o m eo t h e rp r o g r a m m e r s 'a i dp a c k a g e sw h i c hj u s tt a c ka b a t c h

o f e x t r ac o m m a n d so n t ot h eB A S I Ci n t e r p r e t e r ,P O W E Ri s a w e l l

t h o u g h to u t ,c o m p r e h e n s i v es y s t e m ,w h i c hi s v e r y e a s yt o u s e .

T h o s ew h oh a v eu s e dP O W E Ro n P E T sa l r e a d yk n o ww h a ti t c a n

d o , a n dp r o b a b l yw o u l dn o ta t t e m p tt o w r i t ea p r o g r a mo f a n y

m a g n i t u d ew i t h o u ti t . A s J i m B u t t e r f i e l dw r i t e s ,o n e q u i c k l y

b e c o m e s" a d d i c t e d "t o t h e u s e o f P O W E R .P O W E R6 4 i s n o t

s i g n i f i c a n t l y d i f f e r e n tf r o mt h eo r i g i n a lP O W E Ra v a i l a b l eo n t h e

P E Ts e r i e s ,b u t t h eP O W E R6 4 d i s ka l s oc o n t a i n sa u s e f u lp r o g r a m

c a l l e d" M O R E P O W E R " ,w h i c ha d d ss o m eh a n d yf e a t u r e sa n d

d i s k - a c c e s s i n gc o m m a n d st o t h eb a s i cP O W E Rp a c k a g e .

B e s i d e sa d d i n gc o m m a n d s ,P O W E Ra d d s t w om a i nf e a t u r e st o t h e

B A S I Cp r o g r a me d i t o r :p r o g r a ms c r o l l i n g ,a n d" i n s t a n ta c t i o n "

k e y s .T h es c r o l l i n g f e a t u r ea l l o w sy o ut o l i s t a B A S I Cp r o g r a m

f o r w a r do r b a c k w a r db y m o v i n gt h ec u r s o rd o w no r u p w h e ni t i s

a t t h eb o t t o mo r t o po f t h es c r e e n .T h i se l i m i n a t e sc l u m s yL I S T

c o m m a n d s ,w h i c hi n v a r i a b l y r e v e a la r a n g eo f p r o g r a ml i n e s

w h i c h e n dj u s tb e f o r e t h el i n ey o ua r er e a l l yi n t e r e s t e di n . W i t h

P O W E Ri n p l a c e ,j u s tc u r s o rd o w nt o r e v e a lt h en e x tl i n e .

T h e" i n s t a n tp h r a s e "f e a t u r ea l l o w sy o ut o a s s i g no n eo r m o r e

c h a r a c t e r so f t e x t t oa n yc h a r a c t e ro n t h e k e y b o a r d ,i n c l u d i n g

S H I F T e dk e y so r k e y s h e l dd o w ni n c o n j u n c t i o n w i t ht h eC T R Lo r

C o m m o d o r e - s y m b o lk e y s .T h et e x ta s s i g n e dt o t h a tk e yw i l lb e

p r i n t e d o u ta t t h ec u r s o rp o s i t i o na s s o o na s t h ek e yi s s t r u c k .A n y

n u m b e ro f k e y sm a yb e d e f i n e d ,a n dt h e d e f i n i t i o ni s d o n eb y

s p e c i a lR E Ms t a t e m e n t sw i t h i nt h ep r o g r a mc u r r e n t l yi n m e m o r y .

T h i sm e a n st h a t d i f f e r e n tk e y d e f i n i t i o n sm a ye x i s tf o r e a c h

p r o g r a m ,a n dk e yd e f i n i t i o n sm a yb e L O A D e df r o mt a p e o rd i s k .

F u r t h e r m o r e ,m a n yk e y sa r ep r e - d e f i n e dw i t hB A S I Ck e y w o r d s

s u c ha s F O R , N E X T ,P R I N T * ,e t c .T h ei n s t a n tk e y w o r df e a t u r ec a n

b e d i s a b l e di f d e s i r e d , a sc a nt h eu s e r - d e f i n e di n s t a n tp h r a s ek e y s .

A k e ym a ya l s op o i n tt o a B A S I Cs u b r o u t i n ew h i c hw i l lb e e x e c u t e d

w h e nt h ek e yi s p r e s s e d .T h i si s a v e r yh a n d yf e a t u r e ,g i v i n g t h e

p r o g r a m m e ra n yn u m b e ro f s p e c i a lf u n c t i o n sa t h i sf i n g e r t i p s .

T h e r ea r es o m e c o m m a n d - d r i v e nf e a t u r e st h r o w ni n t o c o m p l e t e

t h ep r o g r a m m i n ge n v i r o n m e n t ,i n c l u d i n gT R A C E( a ne x c e p t i o n

a l l yg o o do n e ) ,a W H Yc o m m a n dt o p o i n tt o t h e s o u r c eo f a

p r o g r a m - k i l l i n ge r r o r ,a n dP T R ,w h i c hr e s t o r e sB A S I Cp o i n t e r s

d e s t r o y e db y L O A D i n ga m a c h i n el a n g u a g e p r o g r a m .T h e r ei s a l s o

t h e s t a n d a r df a r e :A U T O ,D E L ,D U M P ,R E N U M ,a n d f i n d /

s u b s t i t u t ec o m m a n d s . T h el i n er e n u m b e r i n gc o m m a n d ,R E N U M ,

i s p a r t i c u l a r l y u s e f u l- i t a l l o w sy o ut o r e n u m b e rp o r t i o n so f y o u r

p r o g r a ma s w e l l a st h ee n t i r e t h i n g .T h ef i n dc o m m a n d( i n d i c a t e d

b ya s l a s h )p e r m i t s" w i l d c a r d "m a t c h i n gf o rc h a r a c t e r so r g r o u p so f

c h a r a c t e r s .T h e r ea r e 1 5 c o m m a n d si n a l l , a n dM O R E P O W E R

a d d sa n o t h e r1 3 .T oh i sc r e d i t ,B r a dT e m p l e t o n s e e m st o h a v e u s e d

a d e g r e eo f r e s t r a i n tw h e na d d i n gc o m m a n d s . T h en e c e s s a r y

t h i n g s a r et h e r e ,b u t o n ei s n o t o v e r w h e l m e db y h u n d r e d so f

c o m m a n d sw h i c h w o u l dg e tl i t t l eu s e .I n s t e a d ,P O W E Rm a k e si t

e a s yf o rt h e u s e rt o a d dh i so w n c o m m a n d sa n dc r e a t ea p r o g r a m

l i k eM O R E P O W E Rw h i c hc a n r u nu n d e rt h e P O W E Re n v i r o n

m e n t .I t h i n kt h i si s a g o o da p p r o a c h ,s i n c ei t m a k e st h eu t i l i t y

m u c hm o r ef l e x i b l ea n dl e s sc u m b e r s o m e .

T h ec o m m a n d sa d d e db y M O R E P O W E Ra r ej u s ta s i m p o r t a n ta s

t h e r e g u l a rP O W E Rc o m m a n d si f y o ua r eu s i n ga d i s kd r i v e .W i t h

M O R E P O W E Ri n s t a l l e d ,y o um a y :L I S Ta p r o g r a mo n d i s kw i t h

o u tl o a d i n gi t i n t om e m o r y ,L O A Da n dR U Na p r o g r a mf r o md i s k

i n o n es t e p ,M E R G Ea p r o g r a mf r o md i s kw i t ht h eo n ec u r r e n t l y

i n m e m o r y ,d i s p l a y aT E X T( A S C I I s e q u e n t i a l )f i l ef r o md i s k ,

d i s p l a y t h e d i s kE R R o rs t a t u s ,s e n dc o m m a n d st o t h e D I S K

c o m m a n dc h a n n e l ,a n dc h a n g et h ed e f a u l tD E V I C En u m b e rf o r

L O A D i n g .T h e r ea r e af e wo t h e rc o n v e n i e n t ,a l b e i tm o r em u n d a n e

c o m m a n d ss u c ha s H E X ,w h i c hp e r f o r m sh e x / d e c i m a l c o n v e r

s i o n s ,a n dK E Y ,w h i c h ,a s p r e v i o u s l ym e n t i o n e d ,a l l o w sy o ut o

d e f i n ea n i n s t a n ta c t i o np h r a s e i n d e p e n d e n t l yo f t h ep r o g r a mi n

m e m o r y .

T h em a n u a l , w h i c hc o m e sw i t h t h es y s t e md i s ki n t h e u s u a l

P R O - L I N Em i n i - b i n d e r ,i s w r i t t e nb y J i mB u t t e r f i e l d .H i sw i t t y

w r i t i n gs t y l em a k e st h e m a n u a la j o y t o r e a d ,a n d h e d o e sa n

e x c e l l e n t j o bo f e x p l a i n i n gP O W E Ra n dh o wt o u s ei t . I t i s w r i t t e n

f r o mt h e p o i n to f v i e wo f a n o b j e c t i v eu s e ro f t h ep a c k a g e ,p o i n t i n g

o u ta l l o f P O W E R ' Ss t r e n g t h sa n dw e a k n e s s e s( d o n ' tw o r r y , t h e

w e a k n e s s : s t r e n g t hr a t i oi s v e r ys m a l l ) .B e s i d e sa c a s u a la n di n

f o r m a t i v ec h a ta b o u tP O W E R ,B u t t e r f i e l dg i v e s af o r m a ld e s c r i p

t i o no f a l lP O W E Rc o m m a n d si n a s e p a r a t es e c t i o n .E x a m p l e s ,a n d

s h o r t l e a r n i n ga n dp r a c t i c ee x e r c i s e s a r ea l s op r o v i d e d .I w i s ha l l

m a n u a l sw e r ew r i t t e nt h i sw a y .

L o o k i n ga t t h e p a c k a g eo v e r a l l ,i t s e e m st h a tP O W E Rg a i n si t s

u s e f u l n e s sb y a l l o w i n gt h e p r o g r a m m e rt o d e f i n eh i so w nf u n c

t i o n s ,a n dd o e s n ' tb o xh i mi n w i t ha l o n gl i s to f a d d e dc o m m a n d s .

T h em a i n d r a w b a c kt h a tI f i n dw i t ht h e i n s t a n t - a c t i o nk e y s y s t e m

i s t h a ty o um u s tt a c ku n s i g h t l yR E Ms t a t e m e n t st o t h eb e g i n n i n go f

a p r o g r a mi n o r d e rt o d e f i n e t h ek e y s( t h e s eR E M sm a y ,o f c o u r s e ,

b e r e m o v e dw h e nd e v e l o p m e n th a s c e a s e do n t h ep r o g r a m ,b u t

w e a l l k n o wt h a tn e v e rh a p p e n s ) .A l s o ,t h o s ed e f i n i t i o n so n l y

p r e v a i lw h i l et h ec u r r e n tp r o g r a mi s i n m e m o r y .T h i s c o u l db e

s e e na s a n a d v a n t a g ei n t h a te a c hp r o g r a mc a n h a v e u n i q u ek e y

d e f i n i t i o n s ,b u tt o om a n yt i m e sI h a v eL O A D e da l i t t l eu t i l i t yo f

s o m es o r ta n ds u b s e q u e n t l yf o u n dm y s e l fl o s ti n t h ew i l d e r n e s so f

a n u n P O W E R e dk e y b o a r d .M O R E P O W E Ra l l o w sk e y st o b e d e

f i n e di n d e p e n d e n t l yo f a B A S I Cp r o g r a m ,b u tp r o v i d e sn o f a c i l i t y

f o rS A V E i n gt h ek e yd e f i n i t i o n st o d i s k .

I n c o n c l u s i o n ,1 h a v et h e f o l l o w i n ga d v i c ef o ry o u :I f y o ud o a l o to f

p r o g r a m m i n go n y o u r6 4 i n B A S I C( o r i na s s e m b l e ru s i n gP A L ) ,

a n d y o uw i s ht o i n c r e a s ey o u rp r o d u c t i v i t y ,b u yP O W E R6 4 .O n c e

y o u g e t u s e dt o i t , y o uw i l lt u r n o u tp r o g r a m sm u c hf a s t e r ,

e s p e c i a l l yl a r g es y s t e m si n v o l v i n gm a n ys u b p r o g r a m s o nd i s k

( u s i n gM O R E P O W E R ) .I n a d d i t i o n ,u s i n gP O W E Rw i l ln o t t a k e

a w a ya n yf u no u to f p r o g r a m m i n g ,s i n c ei t a d d sa s l i t t l eo r a sm u c h

p o w e ra s y o ur e q u i r e .I f y o uw r i t ep r o g r a m sf o r p r o f i ta s w e l la s

f u n ,t h el i s tp r i c eo f a p p r o x i m a t e l y $ 7 0 . 0 0w i l lb e e a s i l yr e p a i di n

i n c r e a s e dp r o d u c t i v i t y .T h em a n u a ls p e a k sw i s e l yw h e ni t s a y s ,

" E v e r yt i m ey o up o w e r u p[ y o u r s y s t e m ] ,r e m e m b e rt o P O W E R

u p b y l o a d i n gf r o m y o u rP O W E R6 4 d i s k " .

T h eT r a n s a c t o r 2 3 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 26/84

T h eM f l N f l G E RC o l u m n D o nB e l l

B r a n t f o r d ,O n t a r i o

C r e a t i n gA N e wF i l eO r R e v i s i n gA nO l dO n e ?

R a t h e rt h a nj u m p i n gi n t oa n e wa p p l i c a t i o ni n t h i sa r t i c l e ,I

w o u l dl i k e t or e s p o n dt o a p r o b l e mm a n yu s e r sh a v e

m e n t i o n e di n t h e i rl e t t e r s .

W h e ny o uf i r s td e s i g na n e wa p p l i c a t i o ni t i s o f t e nd i f f i c u l tt o

i m a g i n ea l l t h er e p o r t so r s e a r c h e sy o um a yw a n t . A ts o m e

t i m eo r o t h e ry o uw i l ld i s c o v e rw a y so f i m p r o v i n go n y o u r

r e c o r d e n t r y s c r e e n o rf i l ed e s i g n .Y o um a yw a n tt o a d j u s t

l a y o u to f p r o m p t s a n df i e l d so n t h e s c r e e n ,a d dn e wf i e l d s ,o r

e x t e n dt h e l e n g t ho f e x i s t i n gf i e l d s .

S o m em i n o rm o d i f i c a t i o n sc a n b em a d eb y r e v i s i n gt h eo l d

f i l e .M o r es u b s t a n t i a lm o d i f i c a t i o n sr e q u i r e c r e a t i n g an e w

f i l e .

I T I S A L W A Y SW I S ET OO N L Y E N T E RA F E WR E C O R D S

( s a y1 0 )W H E NY O UA R EF I R S TD E S I G N I N GY O U RF I L E

A N DO N L YM A K EA S M A L LF I L E .T h e ny o uc a ne x p e r i

m e n tw i t h t h ef i l ed e s i g n w i t h o u tw o r r y i n g a b o u t b l o w i n g

a w a ya w h o l eb u n c ho f r e c o r d st h a ty o ui n v e s t e da l o tt i m e

e n t e r i n g . A l s o ,y o uw i l ln o tu s eu p a l o to fv a l u a b l es p a c eo n

y o u rd i s k e t t es i n c ey o ua r er e w r i t i n ga n o l df i l ei n s t e a do f

w r i t i n ga n e wo n ee a c h t i m ey o um a k ea c h a n g ei n t h ef i l e

d e s i g n .

I w i l ln o wa t t e m p tt o e x p l a i nh o wy o uc a nr e v i s ey o u rf i l e

d e s i g nw i t h o u tf e a ro f d e s t r o y i n ga l l t h o s e r e c o r d st h a ty o u

s o p a i n s t a k i n g l yc r e a t e d .

W A R N I N G !R e v i s i n gy o u rf i l ec a n b ea d a n g e r o u sb u s i n e s s .

B e f o r ea t t e m p t i n gt o r e v i s ey o u rf i l e A L W A Y Sm a k ea

b a c k u pc o p yo f y o u rd i s k e t t eo n a n e w ,u n u s e dd i s k e t t e ,

u s i n gt h eB A C K U Po p t i o ni n t h em a i n m e n u .

R e v i s i n gA n O l dF i l e

T h e w o r d" R E V I S E "i n t h e C R E A T E / R E V I S Eo p t i o ni s

s l i g h t l ym i s l e a d i n g .U s i n gR E V I S Ei n t h eC R E A T E / R E V I S E

o p t i o n ,y o uc a nO N L Yp e r f o r mm i n o rm o d i f i c a t i o n st o y o u r

s c r e e n f o r m a ta n df i l ed e s i g ni . e . m o v et h e t e x tp r o m p t s

a r o u n do r c h a n g et h ef i e l dt y p e s( n u m e r i co r a l p h a n u m e r i c ) .

A n ym a j o ra l t e r a t i o n si n y o u rf i l ed e s i g nw i l lr e s u l ti n y o u r

w r i t i n ga n e wf i l ea n dd e s t r o y i n ga l l t h er e c o r d si n y o u ro l d

f i l e .

I f y o uw i s ht o r e v i s ey o u rf i l eo r s c r e e nl a y o u t ,b e g i nb y

c h o o s i n gt h eC R E A T E / R E V I S Eo p t i o nf r o mt h em a i n m e n u .

I F Y O U D ON O TW A N TT OC H A N G ET H EN U M B E R ,S I Z E

O RS E Q U E N C EO F F I E L D SI N Y O U RF I L E , p r e s s' R ' ( f o r

r e v i s e )a n dR E T U R Nf o rt h ef o l l o w i n gs c r e e np r o m p t :

C R E A T EA N E WF I L E / R E V I S EA NO L DO N E ?R

M a k em i n o rm o d i f i c a t i o n st o t h e s c r e e n ,m a k i n gs u r ea l l

f i e l d sl o n g e rt h a n1 c h a r a c t e ra r ee n c l o s e di n ' u p a r r o w s ' .

P r e s s ' b a c ka r r o w ' .

A n s w e rt h e n e x t s c r e e np r o m p t sa s f o l l o w s ,p r e s s i n gR E

T U R Na f t e re a c he n t r y .

A R EY O US U R E ( Y / N )Y

A N O T H E RS C R E E N( Y / N ) ?N

I f i n d e e dy o u h a v eN O TA L T E R E Dt h ef i l e ,t h en e x ts c r e e n

p r o m p tw i l lb e :

D OY O UW I S HT OA L T E RF I E L DT Y P E S ?

A t t h i sp o i n ti t i s u s u a l l ya g o o di d e at o a n s w e rY , t h e n

p r e s sR E T U R N .Y o uc a nn o wc u r s o rd o w nt h r o u g hf i e l d s

a n dc h e c kt o s e ei f a l l y o u rf i e l dt y p e sa r e c o r r e c t .F i e l d s

r e q u i r i n go n l yn u m b e re n t r i e s a r en u m e r i c( e . g .f i e l d s f o r

d a t e so r $ a m o u n t s ) .R e m e m b e r , p h o n e n u m b e w i t ha

s p a c es e p a r a t o ra r e a l p h a n u m e r i c ,a s as p a c ec h a r a c t e ri s

c o n s i d e r e da l p h a n u m e r i c .W h e ny o ua r e f i n i s h e dc h e c k i n g

a l l t h ef i e l dt y p e s p r e s s ' b a c ka r r o w ' .

I f y o uH A V E A L T E R E Dt h ef i l e ,t h ep r o g r a mk n o w sy o u h a v e

a l t e r e dt h e f i l e ,a n dc o n f i r m st h i sw i t h t h ef o l l o w i n gm e ss a g e :

F I L EH A S B E E NA L T E R E D .N E WF I L E ( Y / N ) ?

T h i sl a s t p r o m p ti s e x t r e m e l yi m p o r t a n t .I n a d d i t i o nt o

t e l l i n gy o ut h a ty o uh a v ea l t e r e d t h ef i l e ,t h ep r o g r a mi s

a s k i n gy o ui f y o uw a n tt o c r e a t ea n e wf i l e .I f y o u h a v eo n l y

c r e a t e da f e wr e c o r d sa n dd o n ' tm i n dd e s t r o y i n gt h e mt h e n

a n s w e r' Y * .T h ep r o g r a mw i l lt h e nr e w r i t eo v e rt h eo l df i l e

b l a n k i n ga l l t h e r e c o r d s .

I f y o ud o n ' tw a n tt o d e s t r o yt h er e c o r d si n y o u ro l df i l e ,t h e n

a n s w e r' N ' .I f y o u a n s w e r' N ' ,t h e nt h er e v i s ep r o c e d u r ew i l l

b e a b o r t e dh e r e .Y o un o wk n o wt h a ty o uc a n n o tu s et h e

T h eT r a n s a c t o r 2 4 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 27/84

' R E V I S E 'p a r t o ft h eC R E A T E / R E V I S Eo p t i o nt o m a k et h e

c h a n g e s y o uw a n tt o y o u rf i l e .P r e s s' F 2 ' t o a b o r tt h i s

o p e r a t i o no r r e t u r nt o t h eb e g i n n i n go f t h eC R E A T E / R E V I S E

o p t i o n .

C r e a t i n gA N e wF i l eU s i n gY o u rO l dF i l eA n dO l d

R e c o r d s

I f y o u w a n tt o c h a n g et h en u m b e r ,s i z eo r s e q u e n c eo f f i e l d s

i n t h ef i l e ,y o uw i l lh a v et o c r e a t e an e wf i l e .D o n ' t w o r r y ,

y o ud o n ' th a v et o s t a r tf r o ms c r a t c h .Y o uc a n u s ey o u ro l d

s c r e e nt o c r e a t e an e ws c r e e na n dt r a n s f e rr e c o r d sf r o my o u r

o l df i l et o t h en e wf i l e .

E n t e r t h eC R E A T E / R E V I S Eo p t i o nf r o mt h e m a i nm e n u .

E n t e ra n e wf i l e n a m e( i . e .d i f f e r e n tt h a ny o u ro l df i l en a m e ) .

A n s w e rt h e n e x t s c r e e np r o m p t sa s f o l l o w s ,p r e s s i n gR E

T U R Na f t e re a c he n t r y .

C R E A T EU S I N GA NE X I S T I N GS C R E E N( Y / N ) ?Y

E N T E RF I L E N A M E ? X M A S L I S T( o r w h a t e v e rn a m ey o u

u s e df o rt h eo r i g i n a lf i l e )

Y o un o wh a v et h e o p t i o no f c h a n g i n gt h e b o r d e r ,b a c k

g r o u n d a n dc u r s o rc o l o u r s .

Y o u ro r i g i n a ls c r e e nw i l la p p e a rw i t ha l lt h ef i e l di n d i c a t o r s .

M a k et h e n e c e s s a r yc h a n g e st o t h e s c r e e na n dt h e np r e s s

' b a c ka r r o w ' .'

A n s w e rt h e n e x t s c r e e np r o m p t sa s f o l l o w s ,p r e s s i n gR ET U R Na f t e re a c he n t r y .

A R EY O US U R E( Y / N )Y

A N O T H E RS C R E E N( Y / N )N

A t t h i sp o i n ty o u m u s td e c i d ei f t h e r ew i l lb e e n o u g hs p a c e

o n t h es a m ed i s k e t t ef o rb o t ht h eo l da n dn e wf i l e s .I f e i t h e r

o f y o u rf i l e si s o v e r1 0 0r e c o r d s ,t h e ni t ' sp r o b a b l ya g o o d

i d e at o p u ta n e wf o r m a t t e dd i s k e t t ei n t h e d r i v e . I na n y

c a s e ,i t ' sa l w a y sa b e t t e ri d e at o s t a r ta n e wa p p l i c a t i o no n a

n e wd i s k e t t e .

A n s w e rt h e n e x t s c r e e np r o m p ta s f o l l o w s ,p r e s s i n gR E

T U R Na f t e rt h ee n t r y .

I S T H EF I L ED I S K E T T EI N T H ED R I V E ?Y

T h ed i s k d r i v ew i l lt h e nc h e c kt o s e eh o w m u c hf r e es p a c ei s

a v a i l a b l eo n t h ed i s k e t t ea n dt e l ly o ut h em a x i m u mn u m b e r

o f r e c o r d sy o uw i l lb e a b l et o c r e a t ei n y o u rf i l e .Y o uc a n

t h e ne i t h e ra c c e p tt h e m a x i m u mn u m b e ro r c h o o s et o

c r e a t ef e w e rr e c o r d s .I t i s b e s tn o tt o c h o o s et h em a x i m u m

n u m b e r ,a s y o u w a n tt o s a v es o m ed i s ks p a c ef o ry o u rr e p o r tf i l e s .A l s o ,y o ud o n ' th a v et o m a k et h en e wf i l et h es a m es i z e

a s t h eo l df i l e .T h ef i l es h o u l da t l e a s tb e l a r g ee n o u g ht o

t r a n s f e rt h e o l dr e c o r d so v e rt o t h en e wf i l e .

C o p y i n g R e c o r d sF r o mY o u rO l dF i l et o t h eN e wF i l e

N o wt o c o p yr e c o r d sf r o m y o u ro l df i l et o y o u rn e wf i l e .F i r s t ,

y o uw i l ln e e dp r i n t o u t so f t h ef i e l dn u m b e r sf o rb o t ho f y o u r

f i l e s .T h e s ew i l la i d i n y o u re q u a t i n gs i m i l a rf i e l d s i ny o u r

s o u r c ef i l ea n dd e s t i n a t i o nf i l e .B e g i n b ye n t e r i n gt h eM A

N I P U L A T EF I L E So p t i o nf r o mt h em a i n m e n u .T h e nc h o o s e

t h e R E - A R R A N G EA F I L Ef u n c t i o ni n t h e M A N I P U L A T E

F I L E Sm e n u .

N o wt h e r e ' sa s m a l ls t u m b l i n gb l o c ka t t h i sp o i n ti n t h e

p r o g r a mw h i c hy o um a yo r m a yn o th a v e f o u n dc o n f u s i n gi f

y o u rs o u r c ea n dd e s t i n a t i o nf i l e sa r eo n d i f f e r e n t d i s k e t t e s .

A t t h e t o p o f t h e s c r e e ny o u a r e p r o m p t e dt o E N T E R

D E S T I N A T I O NF I L EN A M Ea n da t t h eb o t t o mo f t h es c r e e n

y o ua r e p r o m p t e dt o P L A C ET H ED E S T I N A T I O ND I S KI N

T H ED R I V E .P e r f o r mt h e c o m m a n da t t h e b o t t o mo f t h e

s c r e e nf i r s ti . e .b e f o r e e n t e r i n gt h ef i l e n a m ey o um u s tf i r s t

p l a c et h e d e s t i n a t i o nd i s k e t t ei n t h ed r i v e .T h e s a m ea p p l i e s

t o t h e n e x t2 s c r e e nc o m m a n d s- E N T E RS O U R C EF I L E

N A M Ea n d P L A C ET H E S O U R C ED I S KI N T H ED R I V E .

P l a c e t h es o u r c ed i s ki n t h e d r i v ea n dt h e ne n t e r t h ef i l e

n a m e .R e f e rt o p a g e 3 9i n t h em a n u a lo n R e a r r a n g i n gA F i l e .

Y o uw i l lt h e n e q u a t ef i e l d s i ny o u rn e wf i l ew i t hf i e l d s i n

y o u ro l df i l e .I F Y O U D ON O TW I S HT O C O P YI N F O R M A

T I O N I N T OA F I E L D ,E N T E R' O ' a n dp r e s sR E T U R N .( 1

s u g g e s ty o uc o r r e c tt h ed o c u m e n t a t i o n o np a g e3 9 w h i c h

w r o n g l ys t a t e s :" I fy o ud o n o tw i s ht o t r a n s f e ra n yd a t at o

t h i sf i e l d ,s i m p l yc u r s o ro f ft h el i n et o t h en e x tf i e l d . )

W h e ny o u h a v ef i n i s h e dd e f i n i n gw h i c hs o u r c ef i e l d sr e l a t e

t o w h i c hd e s t i n a t i o nf i e l d s ,p r e s s ' b a c ka r r o w ' .

A t t h i sp o i n t ,a r my o u r s e l fw i t ht h e p a t i e n c eo f J o b .W a i t i n g

d u r i n gt h e d a t at r a n s f e rp r o c e s sm a ym a k ey o uf e e ll i k ea n

e l e c t r o n i cM e t h u s e l a h .Y o uw i l lh a v et o w a i t l o n gi n t e r v a l s

w h i l et h ep r o g r a mi s e i t h e rr e a d i n g t h eo l df i l e ,w r i t i n gt h e

n e wf i l e ,o r d o i n ga m y s t e r i o u sg a r b a g ec o l l e c t i o nw i t h o u t

t e l l i n gy o u .D O N O TT R YT OS H O R TC I R C U I TT H ED A T A

T R A N S F E RP R O C E S SA SY O UM A YD A M A G EY O U RF I L E .

D O N ' TP H O N E- W R I T E !

I f y o u h a v eq u e s t i o n s r e g a r d i n gt h i sa p p l i c a t i o n o ry o u

w o u l dl i k e t os u g g e s ti d e a sf o rf u t u r ec o l u m n s ,p l e a s ew r i t e

m e a l e g i b l e ,c o h e r e n tl e t t e r ,i n c l u d i n gs a m p l ed a t aa n d

s c r e e nd u m p s .I w i l l a t t e m p tt o a n s w e rl e t t e r si n t h i s

c o l u m n .W r i t et o : D o nB e l l ,B M BC o m p u s c i e n c eC a n a d a

L t d . ,5 0 0S t e e l e s A v e . , M i l t o n ,O n t a r i o ,C a n a d a ,L 9 T3 P 7 .

S o c i a lI n s u r a n c eN u m b e rC h e c k e r

b y J a m e sW h i t e w o o d ,M i l t o n ,O n t a r i o

I n C a n a d a ,a n ds e v e r a lo t h e rc o u n t r i e s ,e v e r y o n e ,e v e r y

w h e r e ,t h a ti s e l i g i b l e f o rw o r k ,i s a s s i g n e da S o c i a lI n s u r

a n c eN u m b e ro r S I N .C a n a d i a nS I N s c a n b ev e r i f i e dw i t ha

T h eT r a n s a c t o r 2 5 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 28/84

s i m p l ef o r m u l at h a tc a nb e i m p l e m e n t e dw i t ht h e M a n a g e r' 6 4

M a t hf u n c t i o n .

S I N c h e c k i n gw o r k st h i sw a y .U s i n gt h e S I N :4 4 71 8 83 5 0

S t e p1 .

S t e p2 .

S t e p3 .

S t e p4 .

S t e p5 .

S t e p6 .

4 4 7 1 8 8 3 5 0 T h el a s td i g i t ( 0 )i s t h ec h e c kd i g i t

4 + 7 + 8 + 3 = 2 2 T a k et h e1 s t , 3 r d ,5 t ha n d7 t hd i g i t sa n d

s u mt h e m .

4 1 8 5 T a k et h e 2 n d ,4 t h ,6 t h a n d8 t hd i g i t s

x 2 a n dd o u b l et h e m

8 3 7 0

8 + 3 + 7 + 0 = 1 8 S u mt h ed i g i t sf r o mS t e p3 .

2 2 + 1 8 = 4 0 S u mt h er e s u l t so f S t e p1 a n dS t e p2 .

5 0 - 4 0= 1 0 S u b t r a c t t h eS t e p5 r e s u l tf r o mt h en e x t

h i g h e s t m u l t i p l eo f t e n .I f t h e d i f f e r e n c e

i s 1 0 ,t h er e s u l tb e c o m e sz e r o .

I f t h eS I Ni s v a l i d ,t h ec h e c kd i g i ta n dt h en u m b e rd e t e r m i n e da t

t h ee n do f S t e p6 w i l lb e t h es a m e .

O n c e m o r eu s i n g4 6 00 5 04 6 1

S t e p l .4 6 0 0 5 0 4 6 1

S t e p 2 .4 + 0 + 5 + 4 = 1 3

S t e p3 . 6 0 0 6

x 2

1 2 0 1 2

S t e p4 . 1 + 2+ 0 + 1 + 2= 6

S t e p5 . 6 + 1 3 = 1 9

S t e p6 . 2 0 - 1 9= 1

A g a i n ,t h ec h e c kd i g i tm a t c h e sa n dw e h a v ea v a l i dS I N .

U s i n gM a n a g e rM a t hw ew o u l dc o d e :

1 T OR 9 0

( N l+ 1 ) / 1 0 I 8 T O R 9 1

W H I L ER 9 0 <1 0 D O

R 9 1 - . 5 T O 0 R ( R 9 0 )

( R 9 1 - R ( R 9 0 ) ) * 1 0 T O R 9 1

R 9 0 +1 T OR 9 0

E N D W H I L E

; f i e l do n ei s t h es i nf i e l d

; f i r s tw es p l i tt h e

; s i ni n t o

; i n d i v i d u a ld i g i t s

R 2 * 2 0 0 0+ R 4 * 2 0 0+ R 6 * 2 0+ R 8 * 2T OR 9 2; d o u b l e2 n d ,4 t h ,6 t ha n d8 t h ,a n ds u mt h e m

1 1 T OR 9 0

( R 9 2 + 1 ) /1 0 I 4 T O R 9 1

W H I L ER 9 0 <1 6 D O

R 9 1 - . 5T O0 R ( R 9 0 )

( R 9 1 - R ( R 9 0 ) ) *1 0 T O R 9 1

R 9 0 + 1 T O R 9 0

E N D W H I L E

; s p l i ts u mi n t o

i n d i v i d u a ld i g i t s

R 1 + R 3+ R 5+ R 7+ R 1 1 + R 1 2+ R 1 3+ R 1 4+ R 1 5 T O R 9 3

R 3 / 1 0 - . 5 T O 0 R 9 4

( R 9 4 + 1 ) *1 0 - R 9 3 T O R 9 5

I F R 9 5 = 1 0 T H E N 0 T O R 9 5E N D I F

I F R 9 5= R 9 T H E N

' V A L I DS I N U M B E R 'T OD l

E L S E

' I N V A L I DS I N U M B E R 1T OD l

E N D I F

D l i s a d i s p l a y p o s i t i o nt h a tm u s tb e s e tu p i n a d v a n c e .I t

; d e t e r m i n et h ed i f f e r e n c e

; b e t w e e nt h es u ma n d

; t h en e x th i g h e s t m u l t i p l eo f 1 0

; i ft h ed i f f e r e n c ei s t e n

; s e td i f f e r e n c et o z e r o

; i f r e s u l ti s e q u a lt o c h e c kd i g i t

; p r i n t' v a l i d 'a t d l

; o re l s e

; p r i n t ' i n v a l i d 'a t d l

w o u l dt h e nb e u p t o t h eo p e r a t o rt o s p o t t h em e s s a g ea n d

c h a n g et h eS I Ni f n e c e s s a r y .

T h eT r a n s a c t o r 2 6 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 29/84

H a r d w a r eC o r n e r D o m e n i cD e F r a n c e s c

C h r i sZ a m a r a

D o w n s v i e w ,O n t .

I n t h el a s tH a r d w a r e - C o r n e r ,w e e x p l a i n e dw h a tt h e u s e rp o r to n

y o u rP E To r 6 4 i s , a n dg a v ea b r i e fe x a m p l eo f h o wt o u s ei t f r o m

B A S I C .I n t h i s a r t i c l ew e w i l la c t u a l l yc o n n e c ta s i m p l ec i r c u i t t o

t h e p o r t- a r o wo f 8 L E D ' s( L i g h tE m i t t i n gD i o d e s ) .O n c et h i s

c i r c u i ti s b u i l t ,y o uw i l lb e a b l et o p r o g r a mt o y o u rh e a r t ' sc o n t e n t ,

c o n t r o l l i n g t h eL E D si n a v a r i e t yo f w a y s , w h i l el e a r n i n g t h e

f u n d a m e n t a l so f d i g i t a lb i n a r yd e v i c e s .

A F e wN o t e so f W a r n i n g

Y o um u s tr e m e m b e rt h a ta s s e m b l i n gt h e s ec i r c u i t si s n o t l i k e

p r o g r a m m i n g .A m i s t a k ei n a p r o g r a mm i g h tm e a na t w o r s t

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

c o u l dm e a na n e x p e n s i v es e r v i c eb i l l .I f y o uf o l l o w t h ef e ws i m p l e

r u l e so u t l i n e db e l o wy o us h o u l dh a v e n op r o b l e m .

1 )A l w a y sd o u b l e c h e c k y o u rc i r c u i t ,( e s p e c i a l l yt h ep o w e r c o n n e c

t i o n st o t h eI C s ) ,b e f o r ea p p l y i n gt h ep o w e r .I k n o wt h a ts o m e t i m e s

y o u ' r es o a n x i o u st o s e ei f t h ec i r c u i tw o r k st h a ty o ud o n ' tw a n tt o

b o t h e rc h e c k i n gi t , b u tr e m e m b e ra m i s t a k e c o u l db e f a t a lt o y o u rc o m p u t e rA N Dp o c k e t b o o k .

2 ) N e v e ra p p l ym o r et h a nf i v ev o l t st o t h ec i r c u i t .T h eI C si n t h e

c o m p u t e r a n dt h eI C s t h a tw ew i l lb e u s i n gi n o u rp r o j e c t sc a no n l y

t o l e r a t e av o l t a g eb e t w e e n0 a n d5 v o l t so n t h e i ri n p u tp i n s .A n y

v o l t a g e o u t s i d et h i sr a n g ew i l lp e r m a n e n t l yd a m a g ey o u re l e c

t r o n i cc o m p o n e n t s .C 6 4a n d V I C2 0 u s e r ss h o u l db e a w a r eo f t h e

1 2 v o l t sA Cp i n so n t h eU s e rP o r t .A c c i d e n t l yc o n n e c t i n go n eo f

t h e s e p i n st o a n I C w i l ls u r e l yd a m a g ey o u rc i r c u i t .

3 ) N e v e rc o n n e c tt w oo u t p u tp i n st o g e t h e r .I f t w oo u t p u tp i n s a r e

c o n n e c t e dt o g e t h e rf o ra l o n gt i m e ,e x c e s s i v ec u r r e n t sw i l lf l o wi n

t h eI C a n dc a u s ed a m a g e .C o n n e c t i n g a no u t p u tt o G N Do r + 5

v o l t sw i l la l s oc a u s ed a m a g e .

4 ) A l w a y st u r ny o u rc o m p u t e ro f fw h e nc o n n e c t i n ga c i r c u i t .I f y o u

f o r g e tt o d o t h i so n c e ,a n dp l u ga c i r c u i ti n t oa l i v ec o m p u t e r ,o d d s

a r et h a tn o t h i n gw i l lh a p p e n . H o w e v e r ,t h er i s ki s t h e r e ,a n di f y o u

d o i t o f t e n ,o n eo f t h e s et i m e sy o u ' l lf r ys o m e t h i n g .

I f y o ut u r no n y o u rc o m p u t e r a n di t d o e sn o tp o w e ru p w i t h i n t h e

n o r m a la m o u n to f t i m e ,i m m e d i a t e l yt u r no f fy o u rc o m p u t e r a n d

c h e c k y o u rc i r c u i t .

T h eL E DC i r c u i t :T h e o r yO f O p e r a t i o n

O u rg o a li s t o c o n n e c t8 L E D st o t h e8 d a t al i n e s o ft h ep a r a l l e lp o r t .

T h e l i n e sf r o mt h e c o m p u t e r ,h o w e v e r , c a ns u p p l yo n l y1 . 6

m i l l i a m p s ,w h i c hi s n o te n o u g hc u r r e n tt o d i r e c t l yd r i v eL E D s .T o

c o n t r o l t h eL E D sf r o mt h ec o m p u t e r ,w e m u s tu s ea " b u f f e r " I C

b e t w e e nt h e p a r a l l e lp o r tl i n e sa n dt h e L E D s .T h ec h i pw e a r e

u s i n g ,t h e7 4 L S 2 4 0 ,a c t u a l l yc o n t a i n s8 i n v e r t i n gb u f f e r s ,a n de a c h

b u f f e r ' so u t p u ti s c a p a b l eo f s u p p l y i n gu p t o 2 4 m i l l i a m p s .B u f f e r s

a r e a v a i l a b l ei n i n v e r t i n ga n dn o n i n v e r t i n gc o n f i g u r a t i o n s ,a n da n

i n v e r t i n gb u f f e ri s s o c a l l e db e c a u s ei t so u t p u ti s t h e i n v e r s eo f i t s

i n p u t .T h i sm e a n st h a t al o g i cl e v e l0 ( z e r ov o l t s )a p p l i e dt o t h e

i n p u tw i l lr e s u l ti n a l o g i cl e v e l1 ( + 5 v o l t s )o n t h e o u t p u t ,a n dv i c e

v e r s a .T h e s eo u t p u t sd r i v et h eL E D s ,w h i c ha r ec o n n e c t e di n s e r i e s

w i t h c u r r e n tl i m i t i n gr e s i s t o r s .T h er e s i s t o r sp r e v e n td a m a g et o t h e

L E D sb y l i m i t i n gc u r r e n tt o a s a f e l e v e lo f a b o u t 8m i l l i a m p s .T h e

o u t p u to f e a c hb u f f e ri s c o n n e c t e dt o t h ec a t h o d e( n e g a t i v es i d e )o f

e a c hL E D .( T h ec a t h o d ei s t h e s h o r t e ro f t h et w oe n d so f t h eL E D )

T h u s ,w h e na h i g h v o l t a g e( l o g i cl e v e lo n e )i s p r e s e n ta t t h eb u f f e r

i n p u t ,t h er e s u l t a n tl o wv o l t a g eo n t h eo u t p u to f t h eb u f f e rw i l lt u r n

t h eL E Do n .S e et h es c h e m a t i cd i a g r a mi n f i g u r e2 t o s e eh o wt h e

c o n n e c t i o n sa r em a d e .

W h a t Y o uW i l lN e e d

T h eo n l yp a r t sy o uw i l ln e e df o r t h ec i r c u i ta r e l i s t e db e l o w .W e

s u g g e s tu s i n ga " b r e a d b o a r d "f o r m o u n t i n gt h e c o m p o n e n t s ,s o

t h a ty o uc a ne a s i l ym o d i f yt h ec i r c u i t ,o r t a k ei t a p a r ta n dr e - u s e

t h ep a r t sf o rf u t u r ep r o j e c t s .

P a r t sR e q u i r e d

Q u a n t i t yD e s c r i p t i o n

1 7 4 L S 2 4 0O c t a li n v e r t i n gb u f f e r

8 L i g h tE m i t i n gD i o d e s

8 1 5 0o h mr e s i s t o r s ,1 / 4w a t t

I t i s a l s or e c o m m e n dt h a ta c a b l eb e m a d eu p w i t ha n e d g ec a r d

c o n n e c t o ro n o n ee n d ,( t op l u gi n t ot h ec o m p u t e r ) ,a n da 2 4 p i n d i p

c o n n e c t o ro n t h e o t h e r e n d ,( t o p l u gi n t ot h e b r e a d b o a r d ) .Y o u

s h o u l db e a b l et o f i n dt h ea b o v ep a r t sa t a n ye l e c t r o n i c ss u p p l y

h o u s e .

T h eU s e rP o r tt o B r e a d b o a r dc a b l e

F o rt h i sp r o j e c ta n dt h eo n e st h a tf o l l o w ,w ew i l lb e u s i n gt h es a m e

t y p eo f c a b l et o c o n n e c tt h eu s e rp o r ta n dt h ec i r c u i t .T h i sc a b l e

w i l lh a v e a ne d g e - c a r dc o n n e c t o ro n o n ee n d ,t o p l u gi n t ot h eu s e r

p o r t ,a n da " 2 4p i nD I Ph e a d e r "w h i c hp l u g si n t ot h eb r e a d b o a r d .

T h ec a b l ec a nb e e a s i l yu n p l u g g e d f r o mt h eb o a r df o ru s ei n o t h e r

p r o j e c t s ,a n dc a n b e u s e dt o c o n n e c tv i r t u a l l ya n yc i r c u i t t ot h e

u s e rp o r t .T o m a k et h ec a b l e ,y o un e e dt h ef o l l o w i n gi t e m s :

T h eT r a n s a c t o r 2 7 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 30/84

a b o u t1 f o o to f 2 4 c o n d u c t o rr i b b o nc a b l e

2 4 p i n0 . 1 5 6 - i n c hs p a c i n ge d g e - c a r dc o n n e c t o r ,w i t hh e a d s h e l l

2 4 p i nD I Ph e a d e r

T o m a k et h ec a b l e ,f i r s ts e p a r a t et h e i n d i v i d u a lw i r e so n o n e e n d

s o t h a tt h e r ei s a b o u t5 c m .o f f r e ew i r e .S t r i pt h ee n d so f t h ew i r e s ,

a n dt i n t h e b a r ee n d sw i t hs o l d e r .S o l d e rt h e w i r e st o t h ee d g e

c o n n e c t o r , f o l l o w i n g t h ec o n n e c t i o nd i a g r a mi n f i g u r e3 . I t i s a

g o o di d e at o p u ta h e a d s h e l lo v e rt h ec o n n e c t o r ,t o m a i n t a i nt h e

i n t e g r i t y o ft h e s o l d e rj o i n t s .T h e2 4 p i nD I Ph e a d e rg o e so n t h e

o t h e re n do f t h ec a b l e ,a s i n t h ed i a g r a m .U s ep r e s s u r ef r o ma v i c e

t o s e c u r e l yc l a m pt h et w op i e c e so f t h eh e a d e rt o g e t h e r ,s a n d w i c h

i n g t h er i b b o nc a b l eb e t w e e nt h e m .

B e g i n n i n gC o n s t r u c t i o n

O n c ey o u h a v ea l l t h e p a r t sy o un e e d , p l u gt h e c a b l eh e a d e r

c o n n e c t o r , t h e1 C ,t h eL E D s ,a n dt h er e s i s t o r s i n t ot h eb r e a d b o a r d

a s i n f i g u r e1 . N o wc o n n e c tt h ew i r e s ,f o l l o w i n gf i g u r e1 a n dt h e

s c h e m a t i c d i a g r a mi n f i g u r e2 . P h o t o1 s h o w st h e c o m p l e t e d

c i r c u i t ,i n c l u d i n gt h ec a b l e .T o m a k et h ec o n n e c t i o n s ,* 2 2 g a u g e

s o l i dw i r ei s r e c o m m e n d e d( t h i si s t h e n o r m a lt e l e p h o n e - t y p e

w i r e ,w h i c hi s a v a i l a b l ee v e r y w h e r ei n a b u n d a n ts u p p l y ) .C o n n e c t

i n g t h ec i r c u i t f o ru s eo n t h eP E T / C B Mi s a b i t m o r ec o m p l i c a t e d ,

s i n c e+ 5 v o l t si s n o t a v a i l a b l eo n t h eu s e rp o r t .Y o uc a no b t a i n+ 5

v o l t sf r o mp i n' B 'o r p i n' 2 ' o n t h ec a s s e t t ep o r t ,u s i n ga 0 . 1 5 6i n c h ,

6 c o n t a c tc o n n e c t o r .

P l u g g i n gi t i n

O n c et h ec i r c u i ti s b u i l ta n dt h e c a b l ei s w i r e da n dp l u g g e di n ,y o u

a r e r e a d yt o p l u gi n t ot h eu s e rp o r t .W i t ht h ec o m p u t e ro f f ,p l u g

t h e l a r g ef l a tc o n n e c t o ri n t ot h e u s e rp o r t ,m a k i n gs u r et h a tt h e

c o r r e c t s i d ei s f a c i n g u p .T u r no n t h e c o m p u t e r .A l l t h e L E D s

s h o u l d g oo n ,a n dt h ec o m p u t e rs h o u l dp o w e r u pn o r m a l l y .I f t h ec o m p u t e rd o e sn o tp o w e r u pw i t h i nt h en o r m a la m o u n to f t i m e ,

i m m e d i a t e l yt u r ni t o f fa n dr e - c h e c kt h e w i r i n go f t h eL E Dc i r c u i t .

I f e v e r y t h i n g g o e sO Ks o f a r ,y o uc a n t e s to u t t h e c i r c u i t .F i r s t ,

r e c a l ls o m eo f t h e t h e o r ya b o u tt h e p a r a l l e lp o r tf r o mt h e l a s t

a r t i c l e .T h ep a r a l l e lp o r th a st w om e m o r yl o c a t i o n sa s s o c i a t e dw i t h

i t , t h e d a t ad i r e c t i o nr e g i s t e r ,a n dt h e d a t ar e g i s t e r .T h e s el o c a t i o n s

a r e a sf o l l o w s :

D a t aD i r e c t i o n :D D R=

D a t aR e g i s t e r: D R=

P E T / C B MV I C C 6 4

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

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

T h ed a t ad i r e c t i o nr e g i s t e rc o n t r o l sw h i c ho f t h e l i n e so n t h e

p a r a l l e lp o r ta r e i n p u t sa n d w h i c ha r e o u t p u t s ,a n d t h e d a t a

r e g i s t e ra l l o w sy o ut o c o n t r o l t h es t a t eo f t h e o u t p u t s ,a n dr e a dt h e

s t a t eo f t h e i n p u t s .T h a t ' sh o wi t w o r k s ,i n a n u t s h e l l- f o r

e x a m p l e s ,r e f e r t ol a s t a r t i c l e .

W i t ht h i si n f o r m a t i o nu n d e ro u rb e l t ,w es h o u l db e a b l et o t e s tt h e

c i r c u i t :f o rs t a r t e r s ,m a k ea l lo f t h eL E D sg o o f f .W h e nc o n t r o l l i n g

t h eL E D si n a n yw a yv i as o f t w a r e ,a l l o f t h el i n e so n t h ep a r a l l e l

p o r tm u s tb e s e ta s o u t p u t s .W ed o t h i sb y s e t t i n ga l lb i t s i nt h e d a t a

d i r e c t i o nr e g i s t e rt o o n e s .I n B A S I C ,

P O K ED D R ,2 5 5

. . . w i l la c c o m p l i s ht h i s ,a s s u m i n gt h e v a r i a b l e' D D R 'h a sb e e ns e t

t o t h ea p p r o p r i a t e v a l u ef r o mt h et a b l ea b o v e .

A s s o o na s t h e d a t ad i r e c t i o nr e g i s t e ri s s e t t o m a k ea l l t h e l i n e s

o u t p u t s ,a l l o f t h e L E D ss h o u l dg o o f f .T h i si s b e c a u s ew h e ny o u

t u r no n t h ec o m p u t e r ,t h eI / Oc h i pr e s e t sw i t h z e r o e si n a l l o f i t s

r e g i s t e r s .T h i sm a k e sa l l l i n e sl o w ,t u r n i n ga l l t h eL E D so f f .I f t h e y

d o i n f a c tt u r no f f ,t h ec i r c u i ti s p r o b a b l yw o r k i n gp r o p e r l y .

C o n t r o l l i n g t h eL E D s

O n c et h e d a t ad i r e c t i o nr e g i s t e ri s s e ta s a b o v e ,y o uc a nc o n t r o l t h e

L E D si n a n yo f t h e 2 5 6p o s s i b l e o f f / o nc o m b i n a t i o n s .S e t t h e

v a r i a b l e" D R "a s i n d i c a t e di n t h et a b l e ,t h e nt r y t h i s :

P O K ED R ,1

W h a th a p p e n s ?L E D# 0 s h o u l dt u r n o n .N o wt r y :

P O K ED R ,2

. . . a n dL E D # 1s h o u l dt u r n o n .N o wg u e s sw h a tw i l lh a p p e ni f y o u

P O K ED R , 3 . E n t e rt h eP O K Ea n ds e ew h a th a p p e n s .I f y o u w e r e

r i g h t ,c o n g r a t u l a t i o n s .Y o uu n d e r s t a n dt h eb i n a r yn u m b e rs y s t e m .

I f y o ue x p e c t e dL E D# 2 t o t u r n o n , h e r e ' sw h a ti s h a p p e n i n g .R e c a l l

t h eb i n a r yn u m b e rt h e o r yf r o mt h el a s ti n s t a l l m e n to f t h i sa r t i c l e :

E a c hb i ti n t h e d a t ar e g i s t e rc o n t r o l s t h ec o r r e s p o n d i n gL E Do n t h e

b r e a d b o a r d ,i . ei f b i t0 i s o n e ,L E D0 i s o n .B i t1 c o n t r o l sL E D1 i n a

l i k em a n n e r ,e t c .T h u s ,t o t u r no n L E D# 2 ,b i t * 2 m u s t b es e t t o

o n e .T o s e ta n yg i v e nb i tt o a o n e ,t h a tb i t ' sv a l u em u s tb e a d d e dt o

t h en u m b e rb e i n gs t o r e di n t h e d a t ar e g i s t e r .T h ev a l u eo f e a c hb i t

c a n b e d e t e r m i n e d b yt h e f o l l o w i n g e q u a t i o n :

b i tv a l u e= 2 t ( b i tn u m b e r )

U s i n gt h ea b o v ee q u a t i o n ,w ec o u l ds e tb i t# 2 t o a o n e( t u r n i n go nL E D# 2 ) ,w i t h :

P O K ED R ,2 t 2

I f w e w a n t e dt o t u r no n L E D s0 , 3 ,a n d4 , f o re x a m p l e ,w e c o u l d

a d da l l t h eb i tv a l u e sa s f o l l o w s :

P O K ED R ,2 t O+ 2 1 3+ 2 t 4

U s i n gt h i ss i m p l ee q u a t i o n ,y o uc a ne a s i l yc o n t r o l t h eL E D sf r o m

B A S I C .W eh a v ec o n c o c t e dt h r e e s h o r tp r o g r a m s( l i s t i n g s1 - 3 )t o

c r e a t es o m ei n t e r e s t i n ge f f e c t s .T r yt y p i n g t h ep r o g r a m si n , a n d

l o o ka t t h ec o d et o s e eh o wt h e yd o w h a tt h e yd o .O n c ey o ug e tt h e

i d e a ,t r ys o m eo f y o u ro w np r o g r a m s .B e c o m i n gc o m f o r t a b l e w i

b i tc o n t r o li n t h i sm a n n e ri s a n i m p o r t a n tf i r s ts t e pi n u n d e r s t a n d

i n g t h en a t u r eo f b i n a r yd e v i c e s ,a n d t h e k n o w l e d g ew i l lh e l p

w h e nc o n t r o l l i n ga n yo t h e rd e v i c e sy o um i g h tw a n tt o c o n n e c tt o

t h e p a r a l l e lp o r t .M e a n w h i l e ,y o um a yb e a b l et o a c t u a l l y f i n d

s o m ep r a c t i c a la p p l i c a t i o n sf o rt h eL E Dc i r c u i t ,f o re x a m p l eu s i n g

t h e L E D sa s s t a t u s i n d i c a t o r sw h e nd e - b u g g i n ga c o m p l i c a t e d

p r o g r a m .

I n t h e n e x ti s s u e , w e ' l lu s et h e p a r a l l e lp o r tt o r e a dp u s h b u t t o n

s w i t c h e s ,a n dt a k ea l o o ka t h o wt o r e a da k e y b o a r dm a t r i x .

T h eT r a n s a c t o r 2 8 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 31/84

L i s t i n g1

A d e m o n s t r a t i o np r o g r a mf o rt h eL E Dc i r c u i t ,w i t hi t ' s' q u i c ka n d

d i r t y 't w ol i n ee q u i v a l e n t b e l o w .N o t et h ee x p o n e n t i a l f o r m u l a si n

l i n e s2 1 0 - 2 3 0a n ds e eh o wt h e yc o r r e s p o n dt o t h e p a t t e r n so n t h e

L E D s .

1 0 0r e m "D o m ' si d e aa n dC h r i s ' sc o d e* *

1 1 0r e m "f o rh a r d w a r ec o r n e rL E Dc c t * *

1 1 5 :

1 2 0d d r= 5 6 5 7 9 :r e m *d a t ad i r e c t i o n r e g .

1 3 0d r = 5 6 5 7 7 :r e m *d a t ar e g i s t e r

1 4 0 r e m *( a b o v ev a l u e s a r ef o rc 6 4 )*

1 5 0 :

1 6 0p o k ed d r , 2 5 5 : r e ms e tt o a l l o u t p u t s

1 7 0 :

1 8 0f o rl o o p= 0 t o 1 s t e p O

1 9 0: f o r i= 1 t o 4

2 0 0 :f o rj = 0 t o 7

2 1 0 : i f i = 1 o r i = 3 t h e np = 2 t j+ 2 t ( 7 - j )

2 2 0 :i f i = 2 t h e np = 2 t ( 7 - j )

2 3 0 :i f i = 4 t h e np = 2 t j

2 4 0 : p o k e d r . p

2 5 0n e x tj , i , l o o p

1 p o k e 5 6 5 7 9 , 2 5 5 : f o r k= 0 t o 1e 3 0 : f o r i= 1 t o 4

: f o r j= 0 t o 7 : l = 2 t ( 7 - j ) : r= 2 t j

2 p o k e 5 6 5 7 7 , - ( i= 2 ) * l - ( i= 4 ) * r - ( i= 1 o n = 3 ) * ( l+ r ) : n e x t j , i , k

L i s t i n g2 : K n i g h t R i d e r

T h ep r o g r a mu s e sD A T As t a t e m e n t st o s u p p l ya s e q u e n c eo f b i t -

p a t t e r ni n f o r m a t i o n .T h ed a t ac o u l dh a v eb e e nc a l c u l a t e db y t h e

p r o g r a m ,b u ti n t h i sc a s e u s i n gD A T As t a t e m e n t sp r o v e dt o b e a

m o r ep r a c t i c a la p p r o a c h .

1 0 0r e m" K n i g h tR i d e r " * *

1 1 0r e m" f o rH , C . # 2L E Db o a r d * *

1 2 0 :

1 3 0d d r= 5 6 5 7 9 :r e m *d a t ad i r e c t i o nr e g .

1 4 0d r = 5 6 5 7 7 : r e m *d a t ar e g i s t e r

1 5 0 r e m *a b o v ev a l u e sf o rc 6 4*

1 6 0 :

1 7 0 d i m d ( 1 4 )

1 8 0f o ri = 0 t o 1 4 :r e a dd ( i ) :n e x ti

1 9 0 :

2 0 0 s p e e d= 6 0 :r e m *l o w e r v a l u e= f a s t e r*

2 1 0 :

2 2 0 f o rl o o p= 0 t o1 s t e p O

2 3 0: f o ri = 0 t o 1 4

2 4 0: p o k e d r . d ( i )

2 5 0: f o rd e l a y= 1 t o s p e e d :n e x td e l a y

2 6 0n e x ti . l o o p

2 7 0 :

2 8 0 :

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

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

1 p o k e 5 6 5 7 9 , 2 5 5 : f o n= 0 t o 1 4 : r e a d a : p o k e 5 6 5 7 7 , a: f o r d= 1 t o 6 0 : n e x t d , i : r e s t o r e : g o t o 1

2 d a t a i , 3 , 1 2 , 2 4 , 4 8 , 9 6 , 1 9 2 , 1 2 8 , 1 9 2 , 9 6 , 4 8 , 2 4 , 1 2 , 6 , 3 , 1

L i s t i n g3 : R o u l e t t eW h e e l

T h i sp r o g r a m ,f o l l o w e db y i t ' ss h o r t v e r s i o n ,s i m u l a t et h es p i n n i n g

o f a r o u l e t t ew h e e l .P r e s s i n gS P A C Es t a r t st h e " s p i n "a n de v e n t u

a l l yo n eL E Dw i l lr e m a i nl i t .T h ec o d ew a sw r i t t e na v o i d i n gt h eu s e

o f G O T O ss o t h a ti t m a yb e p l a c e da n y w h e r ew i t h i na l a r g e r

p r o g r a m .T h eC O Sf u n c t i o ni n l i n e3 5 0i s u s e db e c a u s ei t s e e m st o

a p p r o x i m a t et h er a t ea t w h i c ha r o u l e t t ew h e e ls l o w sd o w n .T h i si s

p u r e l ye m p i r i c a l c o n s t r u c t i o na n dd o e sn o t f o l l o wa n yr e a lp h y s i

c a lo r m a t h e m a t i c a ll a w sf o ra s p i n n i n gr o u l e t t ew h e e l .

1 0 0 r e m *r o u l l e t ew h e e lp r o g r a mf o r* *

1 1 0 r e m *l e dc i r c u i t * *

1 2 0 r e m* " ( w r i t t e nw i t h o u t u s i n gG O T O s )

1 3 0 :

1 4 0d d r= 5 6 5 7 9 :r e m *d a t ad i r e c t i o nr e g .

1 5 0d r = 5 6 5 7 7 :r e m *d a t ar e g i s t e r

1 6 0 r e m "( a b o v ev a l u e sa r ef o rC 6 4 :

1 7 0r e m "s e et e x t f o rP E T / V I Cv a l u e s )

1 8 0 :

1 9 0 p o k ed d r , 2 5 5 :r e m *2 5 5= a l lo u t p u t s

2 0 0 :2 1 0 d i m e ( 7 )

2 2 0 r e m *a r r a ye ( )h o l d sb i tv a l u e s*

2 3 0f o ri = 0 t o 7 : e ( i )= 2 t ( 7 - i ) :n e x ti

2 4 0 :

2 5 0p r i n t" @ p r e s sS P A C Eb a rt o ' s p i n ' . "

2 5 5 :

2 6 0f o rk = 0 t o 1 s t e p0 : r e m *l o o p*

2 7 0 f o r i= 0 t o 1 : g e t a $ : i= - ( a $ =" " ) : n e x t i

2 8 0 n= i n t ( r n d ( 1 ) * 7 0 ) :p r i n tn ;

2 9 0 :

3 0 0r e m *s t a r to f fa t n e x tu n l i tl e d*

3 1 0 l e d= l e d a n d 7

3 2 0 :

3 2 5r e m *m a i n' s p i n 'l o o p*

3 3 0f o ri = 0 t o 1

3 4 0: p o k ed r , e ( l e da n d7 )

3 5 0: i n c= ( c o s ( l e d / n * n )+ 1 ) / 2

3 6 0: l e d= l e d - f i n e

3 7 0: i = - ( l e d >= n o r m c < 0 . 0 4 )

3 8 0n e x ti

3 9 0 :

4 0 0p r i n t" f l s p i ne n d e d

4 1 0n e x tk

1 p o k e 5 6 5 7 9 , 2 5 5 : f o r i= O t o 7 : e ( i )= 2 t ( 7 - i ) : n e x t : f o r k= 0 t o 1e 3 0

2 f o r i= 0 t o 1: g e t a $ : i= - ( a $= " " ) : n e x t

: n = i n t ( r n d ( 1 ) * 7 0 ) : p r i n t n : l= I a n d 7

3 f o r i= 0 t o 1: p o k e 5 6 5 7 7 , e ( l a n d 7 ) : a= ( c o s ( l / n * 7 i )+ 1) / 2

: l = I + a : i= - ( l > n o r a < . 0 4 ) : n e x t i , k

T h eT r a n s a c t o r 2 9 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 32/84

P h o t ob y R o nI n g

. ; | : . ; . j . : .I : : !

■ t h e m

u .

F i g u r e1

T h eT r a n s a c t o r 3 0 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 33/84

P o r t

us

e

R

p0

R

T

2 . . C - L

F i g u r e2

D

£

I

U

3

U

► J

s e e t e >

r 1

r S

&

8

' 3

I S

1 7

I D

1 5 V

I C l

- a

I D

p

I I f

i 8

1 6

I V

/ I

?

7 * !

M

W V A A A f - — h

- A A / W '

I S O J l- W W i -

u \ S T

P E T

t f t \ C 3 l F L A ( ,

3 0 X 0 C M T I

? B 3 P B 3

P f i M

P B C

P B 5

o e e r

" ! * «

R I B B O NC A B L E

1

a

^

c

3

D

^ 1

e

5

I

&

V I

7

3

8

u

1 0

P f t

I I

M

\ Z

I

2 3 ,

2

V I

3

2 1

4

2 o

S

1 1

t ,

l «

7

n

8

■ )

\ S

1 0

i < t

M

\ 3

F i g u r e3

T h eT r a n s a c t o r 3 1 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 34/84

Q U A D R A6 4 D a n i e lB i n g a m o

B a t a v i a ,O H

E d i t4 P r o g r a m sO nY o u rC o m m o d o r e6 4 S i m u l t a n e o u s l y

W i t hT h i sF a b u l o u sM e m o r yP a r t i t i o n i n gU t i l i t y

M e m o r yg e t sb i g g e ra n db i g g e r b u tp e o p l es t i l lw r i t es m a l lp r o g r a m s .

O c c a s i o n a l l yy o um i g h tb e w o r k i n go n a p r o g r a mw h e ns o m e t h i n g

c o m e su p .T h e ny o uh a v et o s a v ew h a ty o u ' r ed o i n ga n dl o a da n o t h e r

p r o g r a mu p . I f y o u r p r o g r a m sa r er e l a t i v e l ys m a l l ,Q u a d r a6 4 w i l ll e t

y o ul o a db o t ho f t h e mi n t os e p a r a t ea r e a s .I t ' sa l s oh a n d yf o r t e s t i n g

s m a l ls u b r o u t i n e s .

T h i si d e aw a so n c eu s e do n t h eP E Tc o m p u t e rw i t ha p r o g r a mc a l l e d

Q u a d r a - P e t w h i c hd i v i d e dm e m o r yi n t of o u r8 Ks e g m e n t s .Q u a d r a6 4

d i v i d e st h eC o m m o d o r e6 4 ' sm e m o r yi n t ot h r e ea l m o s t8 Ks e g m e n t s( 3b y t e ss h o r to f 8 K )a n d o n e 1 4 K s e g m e n t( p a r t i t i o nn o .3 )

E a c hp a r t i t i o nh a si t s o w ns e to f v a r i a b l e s ,1 0 0 %l o c a l i z e d .N op a r t o f

e i t h e rp r o g r a mw i l li n t e r f e r ew i t ht h eo t h e r ,u n l e s sy o ud o i t d e l i b e r

a t e l y .

T h i sv e r s i o no f t h i sp r o g r a mh a sa w e d g ea d d e d .T h o s eo f y o uw h o

d o n ' tk n o ww h a ta w e d g ei s , i t i s a p r o c e s so f a d d i n ge x t r ac o m m a n d st o

t h ec o m p u t e r sl a n g u a g ei n t e r p r e t e r .T h ee x t r ac o m m a n d sa r ep r o v i d e d

b e l o w :

C o m m a n d D e s c r i p t i o n

£ P r i n tc u r r e n tp a r t i t i o nn u m b e ra n dr e - e n a b l ep a u s ek e y sa f t e r

u s i n gR U N / S T O PR E S T O R E

S e l e c tA r e a0 , e t c .

A r e a s 0 - 2a r e8 K i n l e n g t h .

A r e a3 i s 1 4 K .

£ 0

£ 1

£ 2

£ 3

A l s o :

P r e s s i n gt h eC o n t r o la n dC o m m o d o r ek e y sw i l lc a u s et h ec o m p u t e rt o

p a u s e . T h i sw i l ll e t y o uh a l tL I S T i n g s , o rp a u s ed u r i n ge x e c u t i o no f a

p r o g r a m .T r yt h i sa s ad i r e c tc o m m a n d :

f o rj = l t o 1 0 0 0 0: p r i n t ) ; ' n e x t

P r e s sC o n t r o l / C o m m o d o r ea n dn o t i c eh o we x e c u t i o nh a l t se v e nw i t h

o u ts c r o l l i n g .

P r e s s i n g C o n t r o la n dS h i f tw i l lr e - e n a b l ep r o g r a mf r o mp a u s e .

P r e s s i n gS T O Pk e yw h i l ei n q u o t e sw i l la l l o wc o m p u t e rt o l e a v eq u o t e

m o d e w h e nc u r s o rm o v e m e n t sa r e u s e d .

I M P O R T A N T

A f t e rs a v i n g& r u n n i n gt h ep r o g r a m ,t h e c o r r e c tw a yt o s t a r tu p Q u a d r a

6 4 i s t o t y p e :

S Y S4 9 1 5 2

T h e nt y p e' N E Wt o c l e a rm e m o r y .T ou s ee a c hp a r t i t i o nf o rt h eF I R S Tt i m ey o us h o u l d a l w a y st y p e' N E Wo r u s et h eI n i t i a l i z ep r o g r a mt o d o

t h a tf o ry o u .

T h eb e s tw a yf o r a p r o g r a mt o c a l la n o t h e rp r o g r a mi n a d i f f e r e n t

p a r t i t i o ni s t o p r i n tt h e w e d g ec o m m a n da n dt h e n e e d e d' R U N 'o r

' G O T O 's t a t e m e n to n t h es c r e e na n dP O K Ec a r r i a g er e t u r n si n t ot h e

k e y b o a r db u f f e rt o e x e c u t e t h o s ec o m m a n d s ,( a g o o d e x a m p l ei s t h e

i n i t i a l i z ep r o g r a m . )

R e m e m b e rt o S A V Ew h a ty o ut y p eb e f o r er u n n i n g ,o n em i s t a k ec a n

c a u s ea t e r r i b l ec r a s ha n dy o uw i l lh a v et o r e t y p e e v e r y t h i n g .T h e

p r o g r a mw i l ln o t i f yy o ui f t h e r ei s a n e r r o ri n y o u rD A T As t a t e m e n t s .

T w oo r m o r ep r o g r a m sc a no b v i o u s l yb e s t o r e di n m e m o r ya t t h es a m e

t i m e .I t m a yb e p o s s i b l et o h a v et w oB A S I C p r o g r a m sr u n n i n ga t t h e

s a m et i m e u s i n gt h e k e y b o a r di n t e r r u p t .O n ew o u l d h a v et o s w i t c h

p r o g r a mp o i n t e r sa n d t a k es n a p s h o t sa t z e r o - p a g e a n d d e v e l a

p r o g r a mt o l i n ki n t h e b a c k g r o u n d p r o g r a mt o r u n .I o n c ew r o t ea

h i - r e sg r a p h i c sp r o g r a mt o d r a ww i t ha j o y s t i c kw h i l eB A S I C w a s

r u n n i n gs o m e t h i n ge l s eu s i n gt h ek e y b o a r di n t e r r u p t .F o r e g r o u n da n d

B a c k g r o u n dA R Ep o s s i b l eo n t h e6 4 ,i s i t w o r t ht h ea t t e m p t ?

S p e c i a lt h a n k st o J i mB u t t e r f i e l d f o rt h em e m o r ym a p st h a tm a d et h i s

p o s s i b l e .

E d i t o r ' sN o t e :

S i n c e D a n i e ls e n tu s t h i sp r o g r a m ,i t ' sb e c o m et h ef i r s tt h i n gI l o a dt o

s t a r tw o r k ,e s p e c i a l l yw h e nI ' m c o l l e c t i n ga r t i c l e st o g e t h e rf o rt h en e x t

m a g a z i n e .I l o a d t h e d r i v e0 d i r e c t o r yi n t oa r e a0 , t h e d r i v e1 d i r e c t o r y

i n t oa r e a1 ( n a t u r a l l y ) ,a n d a n yp r o g r a m su s u a l l yg o i n t oa r e a3 , t h eb i g

o n e- a n dI s t i l lh a v ea r e a2 f o ra n ye x t r as t u f fI m a yn e e dl a t e r .I t ' s

p e r f e c t !

I n i t i a l i z eP r o g r a m

A f t e rr u n n i n gt h eQ u a d r a6 4 l o a d e r , y o u ' l ln e e dt o t y p eN E Wi n e v e r y

a r e a ,o r j u s tr u nt h i sp r o g r a m- i t w i l ld o i t f o ry o u .

5 c d $= c h r $ ( 1 7 )

1 0 p r i n t c h r $ ( 1 4 7 ) c d $ c d $ c d $ " j C 1" c d $ c d $ : p r i n t "n e w "2 0 p r i n t c d $ c d $ " £ 2" c d $ c d $ : p r i n t "n e w "

3 0 p r i n t c d $ c d $ "£ 3 " c d $ c d $ : p r i n t "n e w "

3 5 p r i n t c d $ c d $ "£ 0 "c h r $ ( 1 9 )

4 0 p o k e 1 9 8 , 7 : f o r i= 6 3 1 t o 6 3 7 : p o k e i , 1 3 : n e x t

Q u a d r a6 4 L o a d e r

1 0 0 0p r i n t c h r $ ( 1 4 7 ) : p r i n t "q u a d r a 6 4w / w e d g e "

1 0 1 0p r i n t : p r i n t "c o m m a n d s : "

1 0 2 0p r i n t : p r i n t "£ d i s p l a yp a r t i t i o nn u m b e r . "

1 0 3 0p r i n t "£ 0 - 3s e l e c tp a r t i t i o nn u m b e r "

1 0 4 0p r i n t : p r i n t "r u n t h ei n i t i a l i z ep r o g r a mt o c l e a n "

1 0 4 5p r i n t "m e m o r yp a r t i t i o n s . "1 0 4 6p r i n t : p r i n t "n o wl o a d i n gw e d g e .. . . "

1 0 4 7r t $= c h r $ ( 1 4 5 ) : f o rj = 1 t o 2 0 : r t $= r t $+ c h r $ ( 2 9 ) : n e x t

1 0 5 0 f o r i= 4 9 1 5 2 t o 4 9 6 9 4

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

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 35/84

0 6 0r e a d a : p o k e i , a : c k= c k + a : p r i n t r t $ ; i

7 0 n e x t : p r i n t

0 8 0i f c k= 5 8 3 4 8 t h e n p n n t " n oe r r o r s .s y s 4 9 1 5 2t o

0 9 0p r i n t" t h e r ei s a e r r o r

1 0 0p r i n t "n o ta t t e m p tt o

i n y o u rd a t a ,d o "

u n t h i sb e f o r e "

1 1 0p r i n t "c o r r e c t i n ge r r o r s . "

s t a r t . " :e n d

1 2 0 p o k e4 9 1 5 2 , 9 6 : r e mp o k ei n r t st o p r e v e n ta c c i d e n t a lr u n n i n g

1 3 0s t o p

1 4 0d a t a1 6 9 ,

1 5 0d a t a 3 ,

1 6 0d a t a1 4 0 ,

1 7 0d a t a1 4 0 ,

1 8 0d a t a1 6 9

1 9 0d a t a 0 ,

2 0 0d a t a 3 0 ,

2 1 0d a t a1 9 3— 1 V / \ J * JI ^ ' i * * *^ ^ t

2 2 0d a t a 8 2 ,

2 3 0d a t a 5 8 ,

2 4 0d a t a 6 6 ,

2 5 0d a t a 7 0 ,

2 6 0d a t a 8 2 ,

2 7 0d a t a 1 3

2 8 0d a t a 2 4 0 ,

2 9 0d a t a 7 6 ,

3 0 0d a t a 7 2

3 1 0d a t a 0 ,

3 2 0d a t a 0 ,

3 3 0d a t a 4 1 ,

3 4 0d a t a 1 4 ,

3 5 0d a t a 2 0 1 ,

3 6 0d a t a 7 6 ,

3 7 0d a t a 1

3 8 0d a t a 4 0

3 9 0d a t a 1

4 0 0d a t a 7 2

4 1 0d a t a 1

4 2 0d a t a1 0 44 3 0d a t a 1

4 4 0d a t a1 6 0

4 5 0d a t a 2 0 1

4 6 0d a t a1 6 9

4 7 0d a t a1 6 9

4 8 0d a t a1 6 0

4 9 0d a t a1 6 9

5 0 0d a t a 2 0

5 1 0d a t a2 0 5

5 2 0d a t a2 0 8

5 3 0d a t a2 0 1

5 4 0d a t a 2

5 5 0d a t a 0

5 6 0d a t a2 0 8

5 7 0d a t a2 5 1

5 8 0d a t a2 0 8

5 9 0d a t a1 3 5

6 0 0d a t a2 3 2

6 1 0d a t a1 6 9

6 2 0d a t a1 9 2

6 3 0d a t a2 2 4

6 4 0d a t a 0

6 5 0d a t a1 6 2

6 6 0d a t a 1 5

6 7 0d a t a1 3 3

6 8 0d a t a 0

6 9 0d a t a 1

7 0 0d a t a2 3 2

7 1 0d a t a2 0 7

7 2 0d a t a1 9 2

7 3 0d a t a 7 6

7 4 0d a t a2 4 8

1 9 2 ,

1 6 9 ,

2 0 ,

0 ,

n

1 4 1 ,

1 7 1 ,

2 3 4

6 5 ,

3 2 ,

7 3 ,

7 9 ,

6 5 ,

n

1 6 ,

1 1 6 ,

3 2

2 0 8 ,

7 6 ,

2 0 7 ,

2 0 1

5 1

1 5 1

8

0

4 0

0

7 2

01 0 4

0

7 5

2 2 8

8

1 3 3

1 9 3

3

1 8 9

4

6

2 0 1

1 8 9

2 4 6

1 6 8

6

1 9 2

2 2 4

0

1 6 2

1 5

1 3 3

0

2 0 8

2 5 1

1 7 3

2 4 0

2 2 4

1 9 2

7 6

2 4 8

1 9 3

1 6 0 ,

1 9 3 ,

3 ,

4 0 ,

1 3 3

1 5 9 ,

1 6 9 ,

3 2 ,

6 8 .

7 8 .

8 2 ,

7 8 ,

n

2 0 1 ,

1 6 4 ,

2 2 9

1 0 ,

2 3 ,

1 4 1 ,

4 9 ,

2 4 0 ,

1 9 3 ,

1

4 0

1

7 2

1

1 0 41

1 6 0

9 0 8

1 4 1

1 3 3

5 4

1 6 0

8 8

7 6

1 6 9

, 2 0 8

, 5

, 2 0 7

, 1 6 5

, 1 4 5

, 1 6 9

, 1 6 2

, 1 5

, 1 3 3

, 0

, 2 0 8

, 2 5 1

, 1 8 9

, 2 4 6

, 1 6 8

, 1 5 9

, 2 0

, 1 5

, 7 6

, 2 4 8

, 1 9 3

, 0

1 2 1 ,1 4 1 ,

1 6 0 , 8 2 ,

8 8 , 1 6 0 ,

1 4 0 , 0 ,

5 3 , 1 6 9 ,

1 9 2 , 1 6 9 ,

0 , 1 4 1 ,

9 6 1 4 7 ,

5 4 , 5 2 ,

6 5 , 7 8 ,

7 1 , 6 5 ,

3 2 , 8 4 ,

8 3 , 6 5 ,

0 , 3 2 ,

5 8 ,2 4 0 ,

0 , 0 ,

1 9 3 ,1 0 4 ,

7 6 , 5 9 ,

1 9 3 , 2 0 1 ,

1 5 9 , 1 9 2 ,

2 4 0 , 1 3 ,

1 1 , 2 0 8 ,

7 6 , 1 7 7 ,

8 , 1 ,

0 , 4 0 ,

4 0 , 1 ,

0 , 7 2

7 2 , 1

0 , 1 0 41 0 4 , 1

0 , 1 6 0

2 9 , 1 6 9

8 , 3

4 4 , 1 6 9

7 6 ,1 3 5

8 2 ,1 2 0

1 7 4 ,1 5 9

1 3 5 ,1 9 2

0 , 1 3 3

1 0 , 3 2

2 0 8 ,2 4 6

1 9 2 ,1 4 9

4 4 , 1 3 3

2 5 1 ,1 7 3

1 , 1 4 1

0 , 1 8 9

2 0 8 ,2 4 6

2 5 1 ,1 6 8

1 8 9 , 2 4 3

2 4 6 ,1 6 5

, 1 6 8 ,1 4 5

, 5 , 1 9 3

, 1 6 5 ,4 4

, 1 4 5 , 2 5 1

, 1 9 2 , 2 0 1

, 2 0 1 , 2

, 2 0 8 ,2 3 4

, 2 4 8 ,1 9 3

, 1 9 3 ,1 8 1

1 8 1 , 4 3

9 , 3 ,

1 2 0 ,1 4 1 ,

0 , 1 4 0 ,

7 2 ,1 4 0 ,

2 8 , 1 3 3 ,

6 7 ,1 6 0 ,

3 0 , 1 9 4 ,

8 1 , 8 5 ,

1 3 , 1 3 ,

7 3 , 6 9 ,

7 7 , 7 9 ,

7 2 , 6 9 ,

6 7 , 8 4 ,

1 1 5 , 0 ,

2 4 5 , 7 6 ,

0 , 0 ,

3 ? 1 1 5 ,

1 9 3 , 3 ,

5 2 , 1 7 6 ,

1 0 4 , 2 0 1 ,

2 0 1 , 5 0 ,

2 1 7 , 7 6 ,

1 9 3 , 7 6 ,

8 0 ,

0 , 4 0 ,

4 0 , 0

0 , 7 2

7 2 , 0

0 , 1 0 41 0 4 , 0

0 , 1 6 0

1 6 7 1 4 1

1 6 9 , 1

0 , 1 3 3

1 9 2 , 7 6

1 4 1 , 2 1

1 9 2 ,1 6 9

1 6 5 ,1 9 7

2 1 2 ,1 7 3

1 5 9 , 2 5 5

7 6 , 4 9

4 3 ,2 3 2

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

3 0 , 1 9 4

2 2 5 ,1 9 2

1 6 5 , 4 4

1 4 5 , 2 5 1

1 9 2 ,1 4 9

4 4 , 1 3 3

2 5 1 , 7 6

1 4 9 , 4 3

1 3 3 , 2 5 2

7 6 ,1 3 5

0 , 2 4 0

2 4 0 , 2 4

9 6 , 1 8 1

1 8 1 , 4 3

4 3 , 1 5 7

1 5 7 , 5

4 0 ,

2 1 ,

0 ,

0 ,

5 4 ,

1 9 2 ,

3 2 ,

6 5 ,

6 6 .

7 6 ,

7 8 ,

3 2 ,

7 9 ,

2 0 1 ,

2 3 1 ,

0 ,

0 ,

0 ,

2 4 2 ,

4 8 ,

2 4 0 ,

1 1 2

2 0 3

4 0

0

7 2

0

1 0 4

01 6 0

0

9

1 3 3

5 3

8

3

0

2 0 1

1 4 1

1 7 3

2 3 4

2 2 4

0

2 0 1

9 6

1 4 9

1 3 3

7 6

4 3

2 5 2

1 3 5

2 3 2

1 6 9

1 9 2

1 6

2 0 8

4 3

1 5 7

2 4 3

1 9 3

8

3

8

1 0 4

1 6 9

3 2

1 1 2

6 8

8 9

3 2

1 3

8 4

8 2

9 2

1 6 7

0

2 0 1

0

7 2

2 4 0

1 2

1 9 3

1 9 3

0

0

0

0

0

00

0

3

4 3

1 6 9

1 7 5

1 4 0

3 2

6 3

2

1 4 1

1 6 2

, 1 5

, 1 3 3

, 0

, 7 6

, 4 3

, 2 5 2

, 1 3 5

, 2 3 2

, 1 6 9

, 1 9 2

, 2 2 4

, 0

, 1 6 2

, 2 0 1

, 3 0

, 1 5 7

, 2 2 5

, 1 9 2

, 7 6

; 1

c h r g e t

c h r g o t

p l r

i n t g e r

t e m p

e v a l

p r i n t

d i s p c h

i n t r p l

b a s i c

t m p a d d

1 s t

s n d

t r d

f t h

I m t

m i l

m s g

w e d g e

e x i t1 a

e x i t

t a p s p c

p a r s e

- ~ - :

p a r t i t

e r r o c

c o n t i n

o n e

t w o

t h r e e

t o u r

b n k 1

b n k 2

b n k 3

b n k 4

e r r c h k

3 b e l d e f i n i t i o n s

- $ c 0 0 0

= $ 7 3

= $ 7 a

= S 1 4

- S f b

S a d 9 e

= S b 7 f 7

- S a b l e

= $ 0 3 1 4

= $ 0 0 2 b

= $ 1 4

■ $ 0 8 0 0

= $ 2 8 0 0

= $ 4 8 0 0

$ 6 8 0 0

= $ a 0 0 0

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

d a # > w e d g e; i n f lw e d g e

d y # < w e d g e

s t a d i s p c h+ 1

s t y d i s p c h

I d a # > i n l p r g . e n a b l e m t e r u p t

I d y # < i n t p r g

s e i

s t a i n l r p t+ 1

s l y m t r p t

c l i

I d y # 0 0 . z e r ol i r s lb y t e

s l y 1 s t ; o fp a r t i t i o n s

s t y s n d

s l y t r d

I d a # 0 0

s l a m e m s i z

I d a # 2 8

s t a m e m s i z+ 1

I d a # 0 . s t a r t u pi n

s t a p a r l i t . p a r t i t i o n 0 .

I d a # < m s g . p r i n tt i t l e

I d y # > m s g

j s r p r i n t

I d a # 0 0

s t a o n e t i m

j s r p r 1

n o p

n o p

r t s

b y t e$ 9 3 , ' q u a d r a6 4 ' , $ 0 d

b y l e S O d . ' b yd a n i e lb m g a m o n "

b y t eS O d . ' f o r i h e t r a n s a c t o r '

. b y t e $ 0 d , $ 0 0 . $ 0 0 . $ 0 0

j s r c h r g e i

c m p# j C ; i fp o u n ds i g n

b e q p a r s e ; p r o c e s sw e d g e ,

c m p# ' .

b e q w e d g e

j m p S a 7 e 7

i m p $ a 4 7 4

b y t e$ 0 0 . S 0 0 . $ 0 0 . $ 0 0 . $ 0 0 . $ 0 0

p r o c e s sw e d g ec o m m a n d

p h a

j s r s a v m e m ; s l o r e c l dp a n d a i a

p l a

j s r c h r g e i

c m p# 0 0

b n e c o n l i n

j m p m t c h k

u . 4 f f - r \ r \r A n j f i A. b y t e$ 0 0 . 5 0 0 , S O U

i m p e r r c h k

c m p # 4

b c s i r q i n l

p h a

a n d # $ c f

s t a p a r t i l

p l a ; j u m pl o i n d i v i d u a l

c m p# ' 0 . p a r t i t i o nr o u t i n e s

b e q o n e

b e q t w o

c m p# ' 2

b e q t h r e e

c m p# ' 3

b n e i r q i n l

j m p p f 1

i m p p f 2

j m p p r 3

i m p p r 4

p a r t i t i o ns e l e c t t a b l e

e r r o r

i n t c h k

i n t p r g

s k p

c l o o p

s k p 2

p M

n o

n r p■ A d

[ p a

p r 3

I p 3

p r 4

! : , • ■

s t a m e m s i z + 1

j m p e x i t

i m p $ a ( 0 8 . s y n t a xe r r o r

I d a # > i n t p r g

I d y i K i n t p r g

s e i

s t a i n t r p t+ 1

C l i

I d x p a f t i l ; p r i n lp a r t .n o .

I d a # 0 0j s ' S b d c d ; p n n li n t e g e rr o u l m e

j m p e x i t

I d a $ c 5

c m p# 6 3b n e s k p . e s c a p e q u o t em o d e

I d a # 0 ; w h e n s t o pk e ys l a S d 4 . d e p r e s s e d

I d a $ 0 2 8 d ; e n a b f e f r e e z i n g

c m p# 0 6 ; w i t hc l r l& c o m m

b n e s k p 2 ; k e y s .

j s r $ f f 9 f ; c t r l &s h i f tt o

l o a S O t t J d . r e s u m eo p e r a i i u i i .

c m p# 0 5

j m p S e a 3 1

l a x # 0 0 ^ p a r t i t i o n1

I d a b n k 1. x

s i a

c p x # $ o i

b n e I p t

I d a b a s i c+ 1

s i a $ l c

I d a # 0 0

s t a S f b

l a y

s t a ( t e m p ) . y

I d a o n e l i mc m p# 0 0

I d a # 0 1

s i a o n e l i m

M s

j m p e x i l

I d x # 0 0 i p a M i t t o n2

I d a b n k 2 . x

s t a b a s i c . x

i n x

c p x # $ 0 f

b n e I p 2

I d a b a s i c+ 1

s t a $ l c

I d a # 0 0

s i a S f b

l a y

s t a { t e m p ) , y

j m p e x i t

I d x # 0 0 ; p a f t i t i o n 3 .

I d a b n k 3 , x

s i a b a s i c . x

i n x

c p x # $ 0 i

b n e 1 p 3

I d a b a s i c+ 1

s t a S i c

I d a # 0 0

s t a S f b

t a y

s t a ( l e m p ) . y

j m p e x i l

I d x # 0 0 ; p a r l t t i o n4

s t a b a s i c ,x

i n x

c p x # $ 0 f

b n e I p 4

s l a $ f c

I d a # 0 0

s t a S f b

t a y

j m p e x i l

s a v m e m l d x # 0 0 . s a v eo l dp o i n t e r s

s a v l p 2I d a p a r t i t

c m p# 0 0

b e q s m i

c m p# 0 1

b e q s m 2

c m p# 0 2

b e q s m 3

b n e s m 4

s a v l p i i n x

s m i

C p X f f f c U l

b n e s a v l p 2

r t s

I d a b a s i c . x ; ! o a d p o i n t e rI r o m

s t a b n k1 . x ; e a c hp a r t i t i o n .

j m p s a v l p i

w o r d$ 0 8 0 1, $ 0 8 0 1. $ 0 8 0 1S 2 8 0 0 . $ 2 8 0 0 . $ 2 8 0 0 , S 2 8 0 0 , $ 2 8 0 0 , $ 0 0 0 0

w o r d $ 2 8 0 1, $ 2 8 0 1 , $ 2 8 0 1, $ 4 8 0 0 , $ 4 8 0 0 . $ 4 8 0 0 , $ 4 8 0 0 , $ 4 8 0 0 . $ 0 0 0 0

w o r d$ 4 8 0 1, $ 4 8 0 1 , $ 4 8 0 1, $ 6 8 0 0 , $ 6 8 0 0 . S 6 8 0 0 , $ 6 8 0 0 . $ 6 8 0 0 . $ 0 0 0 0

w o r d $ 6 8 0 1, $ 6 8 0 1 . $ 6 8 0 1, $ a 0 0 0 . $ a 0 0 0 . $ a 0 0 0 . $ a 0 0 0 . $ a 0 0 0 . $ 0 0 0 0

c m p# ' k

b n e e r r o r

I d a # S a 7

s t a d i s p c h+ 1

s t a d i s p c h

I d a # $ 0 1

s t a b a s i c

I d a # $ 0 8

s t a b a s i c+ 1

I d a # 5 0 0

s t a m e m s i z

s m 2

s m 4

I d a b a s i c , x

s t a b n k 2 , x

j m p s a v l p i

s t a b n k 3 . x

j m p s a v l p i

I d a b a s i c . x

s t a b n k 4 . x

i m n c a v / l n i

o n e t i mb y t e$ 0 0 ; f i r s ll i m ei n d i c a t o r

e n d

h eT r a n s a c t o r 3 3 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 36/84

Y o u rB A S I CM o n i t o r

P a r t2 : T h eD i s a s s e m b l e rB o bD r a k e

B r a n t f o r d ,

A d i s s a s s e m b l e ri s a f a i r l ys i m p l ep r o g r a m .I t u s e sm a i n l y

b r u t ef o r c et o d o i t sj o b .A l o c a t i o ni s p e e k e d .T h ev a l u e

t h e r ed e t e r m i n e sa n e n t r yi n a t a b l eo f v a l u e s .T h et a b l e

e n t r yi s t h em n e m o n i c( n e w - m o n - i c k )c o d ef o rt h eo p e r a

t i o n .M n e m o n i c sa r e t h ea b b r e v i a t i o n sf o r m a c h i n el a n

g u a g eo p e r a t i o n s .T h e ya r ea l s o c a l l e do pc o d e so ro p e r a t i o n

c o d e s .

T h es e c o n dp a r to f t h ec h o r ei s t o d e t e r m i n eh o wm a n y

m o r eb y t e sa r e r e q u i r e db y t h em n e m o n i c .I m p l i e d o p e r a

t i o n ss u c ha s B R Kn e e dn om o r e . I m m e d i a t e ,z e r op a g ea n d

r e l a t i v eo p e r a t i o n sn e e do n em o r eb y t e .A b s o l u t eo p e r a

t i o n sn e e d t w om o r eb y t e s .

T h et h i r d p a r t o ft h eo p e r a t i o ni s t o w r i t e t h ew h o l et h i n g

d o w ni n a n a c c e p t a b l e f o r m .U s i n g6 5 0 2s t a n d a r d sf o ra s s e m b l e r st h i sm e a n si n c l u d i n ga * s i g nf o r i m m e d i a t e

m o d e ,$ o n h e xa d d r e s s e s , b r a c k e t sa n d, X o r , Y o n t h e

v a r i o u si n d e x e dm o d e s . A g a i nt h i si s p r i m a r i l ya b r u t ef o r c e

j o b .

B e f o r ea d d i n gt h ed i s a s s e m b l e rt o y o u rm o n i t o r ,y o uh a d

b e t t e rf i xa b u g w h i c hc r e p ti n t o p a r t1 .

7 5 1 0p r i n t

7 5 2 0i n p u t "n u m b e r '; n $

T h a t ' si t .

T h ea d d e dc o d ef o rt h ed i s a s s e m b l e ri s l i s t e dh e r e .L i n e 1 2 5

i n i t i a l i z e sa l l t h e d a t aa t l i n e s8 0 0 0a n do n .T h i si s w i t h o u ta

d o u b tt h ew o r s tp a r to f c r e a t i n ga d i s a s s e m b l e ro r a s s e m

b l e r .T h ed a t a a r el i s t e df o ra l lt h ea c c e p t e d6 5 0 2o p c o d e s .I

h a v em i x e d m e t h o d s o nt h ed a t a .T h o s ec o d e sw i t hm a n y

a d d r e s s i n gm e t h o d sa r el i s t e d i nO P $ ( 1 )t o O P $ ( 2 1 )a n dt h e

m n e m o n i c sa r e i n o n es t r i n gM N $ ( 1 ) .O P $ ( 2 2 )h a sa l l t h e

c o d e su s i n gi m p l i e da d d r e s s i n g ,O P $ ( 2 3 )h a s a l l t h e

b r a n c h e sw i t hr e l a t i v ea d d r e s s i n ga n d O P $ ( 2 4 )h a s t h e

j u m p s .I f a n u n k n o w nv a l u ei s l o c a t e d ,t h r e eq u e s t i o nm a r k sa r ep r i n t e d .T h es i m p l e s tt a b l ew o u l dh a v e h a d 2 5 5e n t r i e s .

P e e k i n ga t a m e m o r yv a l u ew o u l dh a v el o c a t e dt h em n e

m o n i c .B u tt h e r ei s a n a s s e m b l e rc o m i n gi n p a r t3 . A n dw e

n e e d e dt o k n o wt h e a d d r e s s i n gm o d e .S o , t h e p r o g r a m

t r a d e sa s l i g h tc l u m s i n e s sf o ra n e a s i e r s o l u t i o n .

T h eo n l yt r i c k yp a r ti s t h ec a l c u l a t i o n sr e q u i r e df o rt h e

b r a n c h e s .T h eb r a n c ho r c o n d i t i o n a lG O T O ' s( B C C , B M I

B P Le t c . )a l lu s ea s e c o n db y t et o c r e a t ea j u m pf o r w a r do r

b a c k w a r d .T h e j u m pi s c a l c u l a t e df r o mt h eb e g i n n i n go f t h e

N E X Ti n s t r u c t i o n .I f t h es e c o n db y t ei s 1 2 8( $ 8 0 ) o rl e s s ,t h e

j u m pi s f o r w a r dt h a ta m o u n t .S o ,j u s ta d dt h a tv a l u et o t h e

l o c a t i o no f t h en e x ti n s t r u c t i o nt o g e tt h ed e s t i n a t i o n .I f t h e

s e c o n db y t ei s b i g g e rt h a n 1 2 8( $ 8 0 )t h e nt h e j u m pi s

B A C K W A R D Sb ya n a m o u n to f2 5 5m i n u st h ev a l u e .T h i si s

a c c o m p l i s h e di n l i n e s9 5 8 0 - 9 5 9 0 .

A c o u p l eo f q u i c kn o t e s .S i n c et h en u m b e ro f n e e d e db y t e s

i s n ' tk n o w nu n t i lt h e f i r s tb y t ei s d e c o d e d ,t h e p r o g r a m

a u t o m a t i c a l l yt a k e si n t h e m a x i m u mo f t h r e e b y t e se a c h

t i m e .A na d d r e s si s t h e nc o n s t r u c t e da s :

A D D R $ =" $ "+ H I $+ L O $

T h i s s a v e s c o n s i d e r a b l ew o r ki n p r i n t i n gt h ed i s a s s e m b l e

c o d e .A sw e l l ,t h el o wo r s e c o n db y t ei s r e a d i l y a v a i l a b l ef o r

t h ei n s t r u c t i o n sr e q u i r i n gi t a l o n e .

W e ' l la d dt h ea s s e m b l e rn e x tt i m e !

1 2 5 g o s u b 8 0 0 0

2 2 0 r $ =" x m r p s l g * c d "

3 5 0o n r g o s u b0 , 1 0 0 0 , 2 0 0 0 , 3 0 0 0 , 4 0 0 0 , 4 1 4 0 ,

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

8 0 0 0 r e md a t af o ra s s e m b l e r / d i s a s s e m b l e r

8 0 1 0r e mi m m / z e r / z e r - x / z e r - y / a b s / a b s - x /

[ 1 0s p a c e s ] a b s - y / i n dx / i n dy / a c c

8 0 2 0d i mm n $ ( 4 ) , o p $ ( 2 4 )

8 0 3 0 m n $ ( 1 ) =" a d c a n d a s l b i t c m p c p x c p y d e c e oa l d x l d y l s r o r a r o l r o r s b c s t a s t x s t y

T h eT r a n s a c t o r 3 4 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 37/84

8 0 4 0o p $ ( 1 )= " 6 9 6 5 7 5 * * 6 d 7 d 7 9 6 1 7 1* * "

8 0 5 0o p $ ( 2 )= " 2 9 2 5 3 5 * * 2 d 3 d 3 9 2 1 3 1* * "

8 0 6 0 o p $ ( 3 ) =" * * 0 6 1 6 * * 0 e 1 e * * * * * * 0 a "

8 0 7 0o p $ ( 4 ) =" * * 2 4 2 c * * * * * * * * * * * * * *"

8 0 8 0o p $ ( 5 )= " c 9 c 5 d 5 * * c d d d d 9 d d 1* * "

8 0 9 0o p $ ( 6 ) =M e 0 e 4 * * * * e c * * * * * * * * * * "

8 1 0 0o p $ ( 7 ) =" c 0 c 4 * * * * c c * * * * * * * * * * "

8 1 1 0o p $ ( 8 )= " * * C 6 d 6 * * c e d e * * * * * * * * "

8 1 2 0o p $ ( 9 )= " 4 9 4 5 5 5 * * 4 d 5 d 5 9 4 1 5 1* * "

8 1 3 0 o p $ ( 1 0 ) =" * * e 6 f 6 * * e e f e ** * * * * * * "

8 1 4 0 o p $ ( 1 1 ) =" a 9 a 5 b 5 * * a d b d b 9 a 1 b 1 * * "

8 1 5 0 o p $ ( 1 2 )= " a 2 a 6 * * b 6 a e * * b e * * * * * * "

8 1 6 0 o p $ ( 1 3 ) =" a 0 a 4 b 4 * * a c b c * * * * * * * * "

8 1 7 0o p $ ( 1 4 )= " * * 4 6 5 6 * * 4 e 5 e * * * * * * 4 a "

8 1 8 0o p $ ( 1 5 )= " 0 9 0 5 1 5 * * 0 d 1 d 1 9 0 1 1 1* * "

8 1 9 0o p $ ( 1 6 ) =" * * 2 6 3 6 * * 2 e 3 e * * * * * * 2 a "

8 2 0 0 o p $ ( 1 7 ) =" * * 6 6 7 6 * * 6 e 7 e * * * * * * 6 a "

8 2 1 0 o p $ ( 1 8 ) =" e 9 e 5 f 5 * * e d f d f 9 e 1 f 1 * * "

8 2 2 0o p $ ( 1 9 ) =" * * 8 5 9 5 * * 8 d 9 d 9 9 8 1 9 1* * "

8 2 3 0o p $ ( 2 0 )= " * * 8 6 * * 9 6 8 e * * * * * * * * * * "

8 2 4 0o p $ ( 2 1 )= " * * 8 4 9 4 * * 8 c * * * * * * * * * *"

8 2 5 0r e mi m p l i e d

8 2 6 0 m n $ ( 2 ) =" b r k c l c c l d c l i c l v d e x d e y i n x i n y n o p

p h a p l a p h p p l p r t i r t s s e c s e d s e i t a x t x a t a y "

8 2 7 0m n $ ( 2 )= m n $ ( 2 )+ " t y a t s x t x s "

8 2 8 0o p $ ( 2 2 )= " 0 0 1 8 d 8 5 8 b 8 c a 8 8 e 8 c 8 e a 4 8 6 8 0 8 2 8 4 0 6 0

3 8 f 8 7 8 a a 8 a a 8 9 8 b a 9 a "

8 2 9 0r e mr e l a t i v e

8 3 0 0m n $ ( 3 )= " b c c b c s b e q b n e b m i b p l b v s b v c "

8 3 1 0 o p $ ( 2 3 ) =" 9 0 b 0 f 0 d 0 3 0 1 0 7 0 5 0 "8 3 2 0r e m j u m p s

8 3 3 0 m n $ ( 4 ) =" j m p j m p j s r "

8 3 4 0o p $ ( 2 4 )= " 4 c 6 c 2 0 "

8 3 5 0r e t u r n

9 0 0 0r e md i s a s s e m b l e r

9 0 1 0p r i n t "^ d i s a s s e m b l em e m o r y "9 0 2 0p r i n t "h o l dQ s h i f t Qt o p a u s e :H r e t u r n Qt o s t o p "

9 0 2 1r e mv i c * r e p l a c el i n e9 0 2 0w i t hl i n e s9 0 2 2

9 0 2 2p r i n t "h o l d| | s h i f t ( j |t o p a u s e H r e t u r n 0t o s t o p "

9 0 3 0g o s u b4 2 8 0

9 0 4 0i f t < = f t h e nt = f

9 0 5 0i f f < 0o r t < 0o r f > 6 5 5 3 5o r t > 6 5 5 3 5t h e n1 2 6 0

9 0 6 0f o rm = f t o t

9 0 7 0n = m

9 0 8 0 g o s u b7 0 3 0 : r e mc o n v e r tt o h e x

9 0 9 0f o rp r = 1t o p

9 1 0 0p r i n t # p r ,b y $ " : " ;

9 1 1 0n e x t p r

9 1 2 0t $ =" "

9 1 3 0b y = p e e k ( m+ 2 ) : g o s u b 7 0 0 0 : h i $= b y $

9 1 4 0b y = p e e k ( m+ 1 ) : g o s u b 7 0 0 0 . i o $= b y $

9 1 5 0 a d d r $ =" $ " + h i $+ l o $

9 1 6 0b y = p e e k ( m ) : g o s u b 7 0 0 0

9 1 7 0f o ri = 1 t o 2 4

9 1 8 0f o rj = 1 t o l e n ( o p $ ( i ) )s t e p2

9 1 9 0i f b y $ O m i d $ ( o p $ ( i ) , j , 2 ) t h e n9 2 5 0

9 2 0 0c = i : r e mw h i c hc o d e

9 2 1 0f 1 = 1

9 2 2 0p o = ( j + 1 ) / 2 : r e mp o s i t i o n

9 2 3 0i = 2 4 : r e me x i tt h e f o r - n e x tn i c e l y

9 2 4 0j = l e n ( o p $ ( i ) )

9 2 5 0n e x tj , i

9 2 6 0i f f K > 0t h e n9 3 0 0

9 2 7 0m n $= " ? ? ? "

9 2 8 0t $ = b y $+ "

9 2 9 0g o t o9 6 3 0

9 3 0 0r e mf o u n dv a l u ea n dp o s i t i o no f o p c o d e

9 3 1 0f 1 = 0

9 3 2 0m n= c - 2 0 : p p= p o : i fc < 2 2t h e nm n= 1 : p p= c

9 3 3 0m n $= m i d $ ( m n $ ( m n ) , ( p p - 1) * 3+ 1 , 3 )

9 3 4 0 i f c > 2 1t h e n9 4 9 0

9 3 5 0i f p o = 1 t h e nm n $= m n $+ " # $ "+ l o $

9 3 6 0i f p o= 2 t h e nm n $= m n $+ " $ " + l o $

9 3 7 0i f p o =3 t h e nm n $= m n $+ " $ " + l o $+ " , x "

9 3 8 0i f p o= 4 t h e nm n $= m n $+ " $ " l o $+ " , y "

9 3 9 0i f p o = 5 t h e nm n $= m n $+ a d d r $

9 4 0 0i f p o =6 t h e nm n $= m n $+ a d d r $+ " , x "

9 4 1 0i f p o= 7 t h e nm n $= m n $+ a d d r $+ " , y "

9 4 2 0i f p o =8 t h e nm n $= m n $+ " ( " + a d d r $+ " , x ) "

9 4 3 0i f p o =9 t h e nm n $= m n $+ " ( " + a d d r $+ " , y ) "

9 4 4 0i f m < > 1 0t h e nm = m + 1 - 1 * ( m > 4 )

9 4 5 0 t $= b y $ + " " + l o $ + " " + h i $ + ""

9 4 6 0i f p o < 5t h e nt $ = b y $+ " " + l o $+ " "

9 4 7 0i f p o = 1 0 t h e nt $ = b y $+ "

9 4 8 0g o t o9 6 3 0

9 4 9 0i f c < > 2 4t h e n9 5 5 0

9 5 0 0m = m + 2

9 5 1 0 t $ =b y $ + "" + l o $ + "" + h i $ + ""

9 5 2 0i f p o =2 t h e nm n $= m n $+ " ( " + a d d r $+ " ) "

9 5 3 0i f p o = 1 o r p o = 3 t h e nm n $= m n $+ a d d r $

9 5 4 0g o t o9 6 3 0

9 5 5 0i f c = 2 2 t h e nt $ = b y $+ " " : g o t o9 6 3 0

9 5 6 0r e m j u m p s

9 5 7 0 1 $ =b y $+ " " + l o $+ " "

9 5 8 0i f b y > 1 2 8t h e nb y = b y - 2 5 5

9 5 9 0n = m + b y + 2

9 6 0 0g o s u b7 0 3 0

9 6 1 0m n $= m n $+ " $ " + b y $

9 6 2 0m = m + 1

9 6 3 0f o rp r = 1 t o p

9 6 4 0p r i n t # p r , t $" " m n $ : r e mv i c * p r i n t # p r , t $

: p r i n t # p r , "" m n $: r e m5 s p a c e s

9 6 5 0n e x tp r

9 6 6 0i f p e e k ( 6 5 3 )t h e n9 6 6 0 : r e ml o o kf o rs h i f tk e y

9 6 7 0g e ta $ : i f a $ = c r $t h e n9 6 9 0 : r e ml o o kf o rr e t u r nk e y

9 6 8 0n e x tm

9 6 9 0r e t u r n

T h eT r a n s a c t o r 3 5 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 38/84

P i c p r i n t :

A H i g h - R e s o l u t i o nS c r e e nD u m pU t i l i t yb y C h r i sZ a m a r a ,T e c h n i c a lE d i t o r

■ B 4 :

mL , • • •s J

■ - . . 4

!

1

i1

1 1

■ : ■

I

11N

§ w p k■ ; :: ■ :: ■ : :

« : « • • •: X : • : x :

A - ; ' : - : : ■ : .

S t er n

■ ■ ■ ■ - .

|

. . .

: : :

H i

• ? : ■ ; ■ : : ' :

p; • : : • : : ■ :: ■ : ; : ■ :x

y = !S 3 ; :

■ < 1 ;i f :

: • : ' : ! :: ■ :: ■ :: - :

m

mm | f e ^ ; ; x : . . j : : : : : j

: ' . ' ' . •

: : ■ : . *

i ! ;- . - : ■-

s

i

iIP h o t o1

T h eC o m m o d o r e6 4 ' sh i g hr e s o l u t i o nm o d ea l l o w sf o rs o m er e a l

e y e - c a t c h i n gd i s p l a y s .H i g hr e s o l u t i o n p i c t u r e s a r e a v a i l a b l eo n

d i s k ,m a n yw h i c hh a v eb e e nd i g i t i z e df r o ma c t u a lp h o t o g r a p h s .

A n e x a m p l ei s t h e w e l l - k n o w np h o t o g r a p ho f " K a r e n "u s e dt o

a d v e r t i s eE p s o np r i n t e r s .P h o t o1 s h o w sK a r e n p r o d u c e du s i n g

P i c p r i n ta n da S t a rG e m i n i - l O Xp r i n t e r .

P i c p r i n ti s a n i n t e r r u p t - d r i v e np r o g r a mw h i c ha l l o w sv i e w i n go f

b i tm a po r n o r m a lv i d e om o d e , a n dd u m p i n gt h eb i tm a ps c r e e ni n

o n eo f f o u rf o r m a t s :n o r m a l ,n o r m a lr e v e r s e d ,w i d e ,a n dw i d e

r e v e r s e d( r e v e r s em o d ei s n e c e s s a r yb e c a u s es o m ep i c t u r e sa r e

s t o r e dt h a tw a y ) .T h ew i d ed u m pp r i n t st h ep i c t u r es o t h a ti t t a k e s

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

p r o c e s s .T h ef u n c t i o nk e y sa r eu s e dt o s e l e c tt h ea b o v ef u n c t i o n s

a s f o l l o w s :

F l : t o g g l et e x t / b i tm a pv i d e om o d e

F 3 :n o r m a lh i - r e sd u m p

F 5 :w i d eh i - r e sd u m p

C T R L :w h e nu s e di n c o n j u n c t i o n w i t hF 3 o r F 5 , r e v e r s e st h e

p r i n t e di m a g e( s w i t c h e sb l a c kt o w h i t ea n d v i c e

T h ev e r s i o no f P i c p r i n ta s s e e ni n L i s t i n g2 i s w r i t t e ns p e c i f i c a l l yf o r

t h eG e m i n i - l O Xp r i n t e r ,b u ts h o u l dw o r ku n m o d i f i e dw i t hm a n y

o t h e rp o p u l a rd o t - m a t r i xm a k e sw h i c h h a v ea h i g hr e s o l u t i o n

g r a p h i c sm o d e .T h ep r i n t e rs e t u p c o d e si n l i n e s3 2 0 - 3 4 0m a yh a v e

t o b e c h a n g e df o rp r i n t e r sr e q u i r i n gd i f f e r e n tc o n t r o l c h a r a c t e r st o

e n a b l eg r a p h i c sm o d e .I f d u a ld e n s i t ym o d ei s n o t a v a i l a b l eo n

y o u rp r i n t e r ,j u s tu s et h ec o d e sf o r n o r m a lm o d e .T h i sw i l lo n l y

a f f e c t" w i d e "p i c t u r ed u m p s .

T h ec o n t r o ls e q u e n c en e c e s s a r yt o c h a n g et h e l i n e f e e ds i z em a y

a l s ob e d i f f e r e n to n o t h e rp r i n t e r s .T h ep r o g r a ms e n d st h i ss e

q u e n c ei n l i n e s1 3 7 0 - 1 4 2 0 ,w h i c hm a yb e c h a n g e da c c o r d i n g l y

( c h a n g et h ea r g u m e n t si n t h e " I d a* " i n s t r u c t i o n s . ) .T h i sl i s t i n g

s e n d sd a t at o t h e p r i n t e rv i aa C a r d c oi n t e r f a c e ,w h i c h m u s tb e s e t

t o " g r a p h i c sm o d e "s o t h a ti t d o e sn o ti n t e r p r e ta n yo f t h eb i t - m a p

d a t aa s C 6 4 g r a p h i c so r c o n t r o l c h a r a c t e r s .T h i si s d o n e b y

s e l e c t i n g t h es e c o n d a r ya d d r e s sa s i n l i n e1 2 8 0 ,w h i c hm a yb e s e t

t o z e r o( c h a n g et o l d y# 0 )i f n o tu s i n ga s i m i l a ri n t e r f a c e .

O n c eP i c p r i n ti s i n i t i a l i z e d ,t h eh i g hr e s o l u t i o n p i c t u r e c u r

r e s i d i n ga t l o c a t i o n$ 2 0 0 0( h e x )m a yb e v i e w e da t a n yt i m eb y

p r e s s i n gF l . C o l o u rm e m o r yf o rt h ep i c t u r ei s s u p p l i e df r o mt e x t

v i d e om e m o r y ,s o t h es c r e e nm u s tb e c l e a r e d( o rf i l l e dw i t ha n y

o n ec h a r a c t e r )t o g e ta c l e a rv i e wo f t h e h i - r e s s c r e e n .P r e s s i n gF l

a g a i nr e t u r n st o n o r m a lt e x tm o d e .T h i ss w i t c hm a ye v e n b em a d e

w h i l ea p i c t u r ei s b e i n g l o a d e df r o md i s k ,t o s e e t h e s c r e e n

g r a d u a l l yf i l lu p w i t hp i c t u r ed a t a .A t a n yt i m e ,t h e c u r r e n tp i c t u r e

c a n b ed u m p e du s i n gt h e f u n c t i o nk e y sa s o u t l i n e da b o v e .

A C o u p l eo f U s a g eN o t e s :

- T o d u m pa p i c t u r e r e s i d i n gi n a n a r e ao f m e m o r yo t h e rt h a n

$ 2 0 0 0 ,c h a n g et h ed e f i n i t i o ni n l i n e4 5 0 .( T h es c r e e nv i e w e d

u s i n gF l w i l ls t i l lb e t h eo n ea t $ 2 0 0 0 . ) .

- F o rs o m er e a s o n ,P i c p r i n tw i l ln o td u m pt o p r i n t e ri f P O W E R6 4

i s a c t i v ei n t h e s y s t e m( i t d u m p st o s c r e e ni n s t e a d ) .B e f o r ea

d u m p ,P O W E Rm u s tb e t u r n e dO F F ,a n dm a yb e r e - a c t i v a t e d

w i t hS Y S7 0 4l a t e r .

P i c p r i n tl i v e s a t$ c 0 0 0 ,s o y o uc a nk e e pi t t h e r es a f e l y ,a n de n t e r

S Y S4 9 1 5 2w h e n e v e ry o ug e tt h eu r g e .T h i sl i n k sP i c p r i n tw i t ht h e

s y s t e mI R Q ,a n dR E S T O R Ew i l ld i s a b l ei t a g a i n .F o ra n e a s yw a yt o

e n t e ra n di n i t i a l i z eP i c p r i n t ,u s et h eB A S I Cl o a d e ri n L i s t i n g1 . N o wy o u ' v eg o ta p e r f e c tm a t c h :y o u rc o m p u t e ra n dp r i n t e rc a nm a k e

b e a u t i f u l p i c t u r e st o g e t h e r .

T h eT r a n s a c t o r 3 6 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 39/84

4 ,

3 ,

0 ,

0 ,

2 ,2 7 ,

0 ,

2 4 ,

1 ,

7 5 .

0 .

0 ,

2 0 .

3 .

4 ,

1 4 1 ,

L i s t i n g1 : B A S I CL o a d e r

1 0 0 0r e mp i c p r i n tl o a d e r

1 0 1 0f o rj = 4 9 1 5 2t o 4 9 4 9 8: r e a dx

1 0 2 0 p o k ej , x : c h = c h + x : n e x t

1 0 3 0i f c h < >4 1 5 3 2t h e np r i n t" d a t ae r r o r ":

1 0 4 0s y s4 9 1 5 2: p r i n t" P I C P R I N TE n a b l e d '

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

1 0 6 0d a t a1 0 0 , 1 2 8 , 6 4 ,3 2 , 1 6 , 8

1 0 7 0d a t a1 0 8 0d a t a

1 0 9 0d a t a

1 1 0 0d a t a

1 1 1 0d a t a 4 7 , 1 4 1 ,

1 1 2 0d a t a1 4 1 , 2 1 ,

1 1 3 0d a t a1 9 7 ,2 0 1 ,

1 1 4 0d a t a 0 , 1 4 1 ,

1 1 5 0d a t a2 3 4 ,1 7 3 ,

1 1 6 0d a t a1 6 9 , 1 ,

1 1 7 0d a t a1 9 7 ,2 0 1 ,

1 1 8 0d a t a 6 , 2 0 8 ,

1 1 9 0d a t a

1 2 0 0d a t a

1 2 1 0d a t a

1 2 2 0d a t a

1 2 3 0d a t a

1 2 4 0d a t a2 0 8 ,

1 2 5 0d a t a 7 6 ,

1 2 6 0d a t a 3 ,

1 2 7 0d a t a 4 ,

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

1 2 9 0d a t a1 9 5 , 2 5 5 ,1 7 3 ,

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

3 3 ,

9 ,

L i s t i n g2 : S o u r c eC o d e

e n d

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

0 , 0 , 0

0 , 1 2 0 ,1 6 9

3 , 1 6 9 ,1 9 2

8 8 , 9 6 , 1 6 5

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

4 , 1 9 2 ,7 6 , 4 9

1 9 2 , 2 0 8 ,3 5

4 , 1 9 2 , 1 6 5

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

8 , 1 6 9 , 1 , 1 4 1

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

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

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

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

1 4 1 , 2 4

1 6 9 , 0

1 4 1 , 2

1 6 9 , 2 5 5

6 , 1 9 2

6 , 1 9 2

3 2 , 1 8 6 , 2 5 5

1 8 9 , 2 5 5 ,3 2

6 , 1 9 2 ,3 2

0 , 1 3 3 , 2 5 1

5 , 1 9 2 ,

5 , 2 0 8 ,

5 , 1 9 2 ,

7 3 ,

4 9 ,2 3 4 ,

1 9 2 ,1 7 3 ,

, 2 4 0 , 5 ,

7 3

2 4

2 0 8

1 4 1

4 1

1 4 1

3 2

1 6 2

1 4 1 0d a t a

1 4 2 0d a t a

1 4 3 0d a t a1 5 7

1 4 4 0d a t a1 6 2

1 4 5 0d a t a1 4 1

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

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

1 4 8 0d a t a 2 3 ,

1 4 9 0d a t a 2 3 ,

2 0 8

1 9 2

1 8 5

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

1 9 2 , 2 0 0 , 1 9 2 ,8 , 2 0 8

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

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

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

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

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

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

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

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

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

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

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

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

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

5 0 s y s 7 0 0

1 0 0 ; " P I C P R I N T "

1 1 0 ; h i - r e sd u m pu t i l i t y

1 2 0 ; u s ef u n c t i o nk e y sf 3 . ( 5a n d1 7

1 3 0 ; f 7 - t o g g l eh i - r e sm o d e

1 4 0 ; f 3- d u m pp i c t u r e

1 5 0 ; f 5 - d u m pw i d ep i c t u r e

1 6 0 ; c t r l- r e v e r s ed u m p e dp i c t u r e

1 7 0 ;

1 8 0 ; a s s e m b l e d o np a l6 4

1 9 0 : n .2 0 0 ; c h r i s z a m a r a - | u l y1 0 / 8 4 - -

2 1 0 ;

2 2 0 . o p to o2 3 0* = $ c 0 0 02 4 0 j m pi n i t i b y p a s sv a r i a b l e sb e l o w

2 5 0 ;

2 6 0e o r f l a g b y t e O

2 7 0k e y f l a g b y t e O

2 8 0b i g f l a g . b y t e O

2 9 0 f i l e n u m. b y t e1 0 0; f i l en u m b e ru s e d

3 0 0 e x p . b y t e1 2 8 , 6 4 , 3 2 , 1 6 , 8 , 4 , 2 , 1

3 1 0 ;

3 2 0 d u a l r e s . b y t e2 7 , 1 2 1 . 1 9 2 , 3

3 3 0 ; c o n l r o lc h a r a c t e r sf o r p r i n t e r

3 4 0 ; d u a ld e n s i t yg r a p h i c sm o d e

3 5 0 ;

3 6 0 n o r m r e s. b y t e2 7 , 7 5 , 6 4 , 1

3 7 0 ; n o r m a l d e n s i t yg r a p h i c sm o d e

3 8 0 R v a l u e sm a yv a r ya m o n gp r i n t e r s )

3 9 0 ;

4 0 0b i t s * = * + 84 1 0r o w c n t *= * +1

4 2 0e o l e n t * = * +1

4 3 0c b y t e * = * + 1

4 4 0 ;

4 5 0 s c r e e n = $ 2 0 0 0; h i r e ss c r e e nm e m o r y4 6 0 s c r n p t r = $ l b ; z e r op a g ep o i n t e r

4 7 0 k e y b d = 1 9 7 ; c u r r e n tk e y p r e s s e d

4 8 0c t r l f l g = 6 5 3 ; c t r l / s h i f tf l a g

4 9 0 n o r m i r q= $ e a 3 1; n o r m a li r qe n t r y

5 0 0 ;

5 1 0 ; k e r n a lr o u t i n e su s e d :

5 2 0c h k o u t = $ f f c 9

5 3 0c h r o u t = $ f f d 2

5 4 0c l o s e = $ f f c 3

5 5 0c l r c h n = $ f f c c

5 6 0 o p e n = S f f c O

5 7 0 s e t l f s = $ f f b a

5 7 5 s e t n a m = $ f f b d

5 8 0 ;

5 9 0 ;

6 0 0 ;

6 1 0i n i t= *

6 2 0 ; r e d i r e c t i n t e r r u p tv e c t o r

6 3 0 s e i

6 4 0 I d a # < k e y c h k

6 5 0 s t a $ 0 3 1 4

6 6 0 I d a # > k e y c h k

6 7 0 s t a $ 0 3 1 5

6 6 0c l i

6 9 0 r t s

7 0 0 ;

7 1 0 ;

7 2 0 k e y c h k= *

7 3 0 ; g e tf u n c t i o nk e yp r e s s e s

7 4 0 I d a k e y b d ; l o o k f o rk e y p r e s s e d

7 5 0 c m p# 6 4 ; 6 4 i s n o k e y

7 6 0 b n e k e y d n

7 7 0 I d a # 0

7 8 0 s t a k e y f l a g

7 9 0 j m pn o r m i r q

8 0 0k e y d n= *

8 1 0 I d a k e y f l a g

8 2 0 b n e o u t

6 3 0I d a # 1

8 4 0 s t a k e y f l a g

8 5 0 I d a k e y b d

8 6 0 c m p# 3 ; f 7 ,s w i t c hv i d e om o d e

8 7 0 b e q f l i p

8 8 0c m p# 6 ; f 5 ,d u m pw i d ep i c t u r e

8 9 0 b n e f 3 c h k

9 0 0 I d a # 1

9 1 0 s t a b i g f l a g

9 2 0 j m pd u m p

9 3 0f 3 c h k= *

9 4 0 c m p# 5 ; f 3 ,d u m pn o r m a lp i c t u r e

9 5 0 b n eo u !

9 6 0 I d a # 0

9 7 0 s t a b i g f l a g

9 8 0 j m pd u m p

9 9 0o u t= *

1 0 0 0j m pn o r m i r q

1 0 1 0;

1 0 2 0;

1 0 3 0f l i p= *

1 0 4 0; t o g g l eb i t m a pg r a p h i c sm o d e

1 0 5 0I d a $ d O 1 1

1 0 6 0e o r # $ 2 0

1 0 7 0s t a $ d O 1 1 ; b i tm a p m o d e

1 0 8 0I d a $ d O 1 8

1 0 9 0e o r # $ 0 8

1 1 0 0s t a $ d O 1 8 i c h a r a c t e rb a s e

1 1 1 0j m p n o r m i r q

1 1 2 0;

1 1 3 0;

1 1 4 0d u m p= *

1 1 5 0; d u m ph i - r e ss c r e e nt o p r i n t e r

1 1 6 0i d a 0 0

1 1 7 0s t a e o r f l a g r e v e r s e sw h e n2 5 5

1 1 8 0I d a c t r l f l g ; c t r l / s h i f tf l a g

1 1 9 0 a n d# 4 ; c h e c kf o rc t r lk e y

1 2 0 0a e q n o r e v r s

1 2 1 0I d a # 2 5 5

1 2 2 0s t a e o r f l a g

1 2 3 0n o r e v r s= *

1 2 4 0I d a f i l e n u m

1 2 5 0j s r c l o s e

1 2 6 0I d a f i l e n u m

1 2 7 0I d x # 4

1 2 8 0I d y # 4

1 2 9 0j s r s e t l f s

1 2 9 1I d a H O

1 2 9 2j s r s e t n a m

1 3 0 0j s r o p e n

1 3 1 0I d x f i l e n u m1 3 2 0J s r c h k o u t

1 3 3 0I d a # < s c r e e n

1 3 4 0s t a s c r n p t r

1 3 5 0I d a # > s c r e e n

1 3 6 0s t a s c r n p t r+ ■1

1 3 7 0I d a # 2 7

1 3 8 0j s r c h r o u t

1 3 9 0I d a # 5 1

1 4 0 0j s r c h r o u t

1 4 1 0I d a # 1 6

1 4 2 0 s r c h r o u t

1 4 3 0I d a # 2 5

1 4 4 0s t a r o w c n t

1 4 5 0r o w =*

1 4 6 0I d x # 0

1 4 7 0p r t m o d e =*

1 4 8 0I d a d u a l r e s . *

1 4 9 0I d y b i g f l a g

1 5 0 0 b n eb i g

1 5 1 0I d a n o r m r e s , x

1 5 2 0b i g- *

1 5 3 0s r c h r o u t

1 5 4 0n x

1 5 5 0c p x # 4

1 5 6 0 b n ep r l m o d e

1 5 7 0I d a # 4 0

1 5 8 0s t a e o l e n t

1 5 9 0;

1 6 0 0c o l u m n =*

1 6 1 0

1 6 2 0

d a # 0

d x H 7

1 6 3 0b i t s c l r= *

1 6 4 0s t a b i t s . x

1 6 5 0d e x

1 6 6 0b p l b i t s c l r

1 6 7 0d x H O

1 6 8 0;

1 6 9 0c e l l s u m =*

1 7 0 0I d y # 0

1 7 1 0 d a ( s c r n p t r ) , y

1 7 2 0s t a c b y t e

1 7 3 0 n cs c r n p t r

1 7 4 0 b n ed o b i t s

1 7 5 0 n c s c r n p t r + 1

1 7 6 0;

1 7 7 0d o b i t s= *

i r e v e r s ei f C t r l

; c l o s ef i l e

; s a= 4 f o rc a r d c oi / f

; o p e n f i l e n u m . 4 , 4

; n of i l e n a m e

; ( l i k ec m d )

; s e tu p s c r e e nm e m o r y

; p o i n t e r s

i p r i n t e rc o n t r o l - e s c

i s e n dt o p r i n t e r

; s e tl i n e f e e dt o

; 1 6 / 1 4 4i n c h e s

; 2 5r o w s

; 4 0c o l u m n s

. c l e a ro u tc e l l

i s t o r a g ea r e a

i s t o r eb y t ef r o mc e l l

; p o i n t t on e x t b y t e

1 7 8 0; a d da l lb i t si n c b y l e

1 7 9 0I d a c b y t e

1 8 0 0a n de x p . y

1 8 1 0b e q n o t s e t

1 8 2 0I d a b i t s . y

1 8 3 0o r a e x p . x

1 8 4 0s t a b i t s . y

1 8 5 0n o l s e t= *

1 8 6 0 n y

1 8 7 0 c p y # 8

1 8 8 0 b n ed o b i t s

1 8 9 0;

1 9 0 0n x

1 9 1 0c p x # 8

1 9 2 0b n ec e l l s u m

1 9 3 0d x H O

1 9 4 0;

1 9 5 0s e n d b i t s= *1 9 6 0 ; s e n d a ! l 8 b y t e s

1 9 7 0I d a b i t s , x

1 9 8 0e o r e o r f l a g

1 9 9 0

2 0 0 0

s r c h r o u t

d y b i g f l a g

2 0 1 0b e qj u s t o n e

2 0 2 0s r c h r o u t

2 0 3 0j s r c h r o u t

2 0 4 0u s t o n e= *

2 0 5 0n x

2 0 6 0c p x # 8

2 0 7 0b n e s e n d b i t s

2 0 8 0;

2 0 9 0d e c e o l e n t

2 1 0 0b n e c o l u m n

2 1 1 0;

2 1 2 0d a # 1 3

2 1 3 0j s r c h r o u t

2 1 4 0I d a k e y b d

2 1 5 0c m p# 6 3

2 1 6 0b e q a b o r t

2 1 7 0d e c r o w c n t

2 1 8 0b n e r o w

2 1 9 0;

2 2 0 0a b o r t= *

2 2 1 0d a # 2 7

2 2 2 0j s r c h r o u t

2 2 3 0I d a # 6 4

2 2 4 0j s r c h r o u t

2 2 5 0I d a f i l e n u m

2 2 6 0j s r c l o s e

2 2 7 0j s r c l r c h n

2 2 8 0 j m pn o r m i r q

2 2 9 0 e n d

i c h e c k n e x tb i t

; i fs e t .a d dt o

; ' b i t s "a r r a y

; B b i t s

; n e x tb y t e

; n a x tc e l l

i n c e l l

; p r i n tb i t i m a g e

l l w o m o r el i m e sf o r

; b i gp i c t u r e

i n e x tb y t ei n c e i l

; n e x tc o l u m n

; n e x t l i n e

; c h e c kk e y b o a r d

; f o rs t o pk e y

; a b o r ti f p r e s s e d

; d on e x tr o w

i d u m pc o m p l e t e d

[ I n i t i a l i z ep r i n t e r

; w i t h" E S C @ "; ( o p t i o n a l )

; c l o s ef i l e

; c l e a r i / oc h a n n e l s

T h eT r a n s a c t o r 3 7 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 40/84

C o m p a r i n gT w oB a s i cP r o g r a m s

J i mB u t t e r fi e l d

T o r o n t o ,O n t .

I o f t e nh a v es e v e r a lv e r s i o n so f t h es a m ep r o g r a m .S o m e

t i m e s ,I c a n ' td e c i d ew h i c ho f t w ov e r s i o n so f a p r o g r a m-

s a y ,D U M M Yv e r s u sD U M M Y 5- i s t h e c u r r e n tv e r s i o n .I t ' s

a n a w k w a r dj o bt o l i s tt h e mb o t ha n dl o o kt h r o u g ht h ec o d e

t r y i n gt o f i n dt h e p o i n t so f d i f f e r e n c e .T h u s ,I ' v eo f t e nu s e d

p r o g r a mB A S I CC O M P A R Ew h i c hw i l ld r a wm ya t t e n t i o nt o

t h ep a r t sw h i c hd o n ' tm a t c h .

B A S I CC O M P A R Eu s e sd i s k :i t c h e c k st h et w op r o g r a m sa s

t h e yl i eo n d i s k .I t d e p e n d s o nt h ef a c tt h a tt h el i n en u m b e r s

w i l ls t i l lc o r r e s p o n db e t w e e nt h et w op r o g r a m s .S o i f y o u ' v e

p e r f o r m e da p r o g r a mr e n u m b e rb e t w e e nv e r s i o n s ,t h i s

p r o g r a mw o n ' th e l p .

S t y l e

T h i sp r o g r a mh a s a n o d da t t r i b u t e :i t s e e m sn o t t o u s e

n u m b e r s .L e tm ee x p l a i n al i t t l ef u r t h e r .S o m eo f u s a r eu s e d

t o f i l ef o r m a t ss u c ha s O P E N1 , 8 , 2 , .. . o r P R I N T # 1 ,b u t i n

t h i sc a s e t h en u m b e r sa r ea l m o s t a l w a y sm i s s i n g .I n s t e a d ,

t h e r e ' s a v a r i a b l e .I n o t h e rw o r d s ,y o u m i g h ts e e

O P E NJ , 8 , J + 1 .. . I f J h a s a v a l u eo f 1 , t h e s t a t e m e n t

b e c o m e st h ee q u i v a l e n to f O P E N1 , 8 , 2 .. . , o r i f J i s t w o , t h e

s t a t e m e n t p e r f o r m st h es a m ea s O P E N2 , 8 , 3 .

W h ya l l t h i s ?I s i t j u s tt o b e o b s c u r e ? N o :t h e r e ' sa l o t o f

" f i d d l y "w o r kt o b e p e r f o r m e do n t h ep r o g r a mf i l e s ,a n di t ' s

m u c he a s i e rt o d e a lw i t ht h eg e n e r a lf i l eJ r a t h e rt h a nt h e

T h eT r a n s a c t o r 3 8 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 41/84

s p e c i f i cf i l e s1 a n d2 . A n yt i m ey o uw r i t eG E T # 1 ,y o uk n o w

t h a t s o o n e ro r l a t e ry o u ' l lh a v et o w r i t ea n e q u i v a l e n t

G E T * 2 ;i t s e e m sa l o to f w o r k .

V a r i a b l e sJ l a n dJ 2 h a v ea s p e c i a l f u n c t i o n :t h e ys e t u p a

l o o p .W h e nw e h a n d l ef i l e s ,w e m i g h tw a n tb o t ho f t h e m ,o r

a p a r t i c u l a ro n e .F o re x a m p l e :w h e nw e h a v ef o u n dt h a tt h et w of i l e sd o n ' tm a t c h ,a n d w a n tt o g o t o t h e n e x tl i n e ,w e

m a yn e e dt o d o a n yo f t h ef o l l o w i n g :

- I f t h ef i l e sh a ds i m i l a rl i n en u m b e r sb u tt h e l i n e sd i d n ' t

m a t c h ,w ew a n tt o a d v a n c eb o t hf i l e st o t h en e x tp r o g r a m

l i n e ;

- I f f i l e1 h a da l i n en u m b e rt h a tw a ss m a l l e rt h a nf i l e2 , w e

w a n tt o a d v a n c ef i l e1 o n l yt o t h en e x tp r o g r a ml i n e ;

- I f f i l e2 h a da l i n en u m b e rt h a tw a ss m a l l e rt h a nf i l e1 , w e

w a n tt o a d v a n c ef i l e2 o n l yt o t h en e x tp r o g r a ml i n e .

N o w :w e s e t J la n dJ 2 t o t h e a p p r o p r i a t e" s t a r t "a n d" e n d "

f i l en u m b e r s . T o d ob o t hf i l e s ,w eh a v eJ l = 1 a n dJ 2 = 2 , a n d

w h e nw ee x e c u t eF O RJ = J 1 T OJ 2 ,w eg o f r o mf i l e1 t o f i l e2

i n c l u s i v e .W h e nw ew a n tt o u s e o n l yo n ef i l e ,w e s e tJ l a n d

J 2 t o t h es a m ev a l u e ;f o rf i l eo n e ,J l a n dJ 2 w o u l db o t hh a v e

a v a l u eo f 1 , s o t h a tF O RJ = J 1T OJ 2 w i l le x e r c i s et h eo n e

f i l eo n l y .

A r r a yL i s t h e r et o p r e v e n t u sf r o mr e a d i n g af i l ei f w ed o n ' t

w a n tt o r e a di t . A t e n d - o f - f i l e ,w es e tL ( )t o 9 a n dw o n ' tr e a d

t h a tf i l ea n ym o r e .A n dw h e nw e ' r er e a d i n gt h r o u g hl i n e s o f

c o d e ,L Og e t ss e t t o1 w h e nw es e et h ee n do f t h el i n e .

A l lt h i sm a k e st h ep r o g r a ms o m e w h a th a r dr e a d i n g ,b u tt r y

y o u rh a n da t w o r k i n gi t o u t :y o um a yf i n di t w o r t h w h i l e .

A n di f r e a d i n gc o m p l e xc o d ei s n ' ty o u rc u po f t e a ,y o um a y

s t i l lu s et h ep r o g r a mt o c o m p a r eB a s i cp r o g r a m s .

R u n n i n gt h eP r o g r a m

T h i sp r o g r a mw i l lr u no n a n yC o m m o d o r em a c h i n et h a ti s

f i t t e dw i t hd i s k .B a s i cp r o g r a m sa r e n o tf a s t ,b u tt h e yd o t e n d

t o b e u n i v e r s a l .

T h ep r o g r a mi s n ' tt o oc h a t t y ,a n di s n ' ts u p e rf a s t ,b u ti t d o e s

t h e j o b .I t w i l la s kP R O G R A MN A M E ?- a n s w e rw i t ht h e

n a m eo f o n eo f t h e B a s i cp r o g r a m sy o uw i s ht o c o m p a r e .I t

w i l la s kt h eq u e s t i o na g a i n :g i v ei t t h eo t h e rp r o g r a m n a m e .

N o wt h ep r o g r a mw i l lc l u n k a w a y ,l o o k i n ga t t h et w of i l e s .I f

i t f i n d sa l i n e i no n ep r o g r a mt h a td o e s n ' te x i s ti n t h eo t h e r ,

i t w i l lg i v et h en a m eo f t h ep r o g r a mc o n t a i n i n g t h el i n e ,a n d

t h e l i n en u m b e r .I f i t f i n d s al i n ew h i c he x i s t s i nb o t h

p r o g r a m s ,b u tc o n t a i n sd i f f e r e n tc o d i n g ,i t w i l lp r i n t" ♦ D I F

F E R E N C E * "w i t h t h el i n en u m b e r .

W h e ni t ' s f i n i s h e d ,i t s t o p s .I f y o ul i k e ,y o uc a na d de r r o r

c o u n t s ,o u t p u tt o p r i n t e r ,o r w h a t e v e rs e e m sl i k ef u n .

P R O G R A M :B A S I CC O M P A R E

1 0 0o p e n1 5 , 8 , 1 5

1 1 0 z $= c h r $ ( 0 )

O p e nt h et w op r o g r a mf i l e s :

1 2 0f o rj = 1 t o 2

1 3 0 i n p u t" p r o g r a mn a m e "; n $ ( j )

1 4 0o p e n j , 8 , j+ 1 , n $ ( j ) +" , p , r ": g e t # j , a $ , a $

1 5 0 i n p u t # 1 5 , e , e $ , e 1, e 2 : i fe t h e np r i n te $ : e n d

1 6 0n e x tj

1 7 0n $ ( 3 )= " * d i f f e r e n c e * "

1 8 0 J 1= 1 : j 2 = 2

G e tt h e n e x tl i n ef r o me a c hf i l e :

2 0 0f o rj = j 1 t o j 2

2 1 0 i f l ( j ) > 0g o t o2 7 0

2 2 0g e t # j , a $ , b $

2 3 0 i f a $+ b $ =" " t h e nI ( j )= 9 : n ( j )= 1 e 9 : g o t o2 7 0

2 4 0g e t # j , a $ , b $

2 5 0 n ( j )= a s c ( a $+ z $ )+ 2 5 6 * a s c ( b $+ z $ ) : n ( 3 )= n ( j )

2 6 0 i f s t < > 0t h e nI ( j )= 9

2 7 0n e x tj

I f b o t hf i l e sa r ef i n i s h e d ,q u i t :

2 8 0i f 1 ( 1) > 1a n dl ( 2 ) > 1g o t o4 5 0

C o m p a r et h et w of i l e s :

2 9 0 j 0= 0 : j 1 = 1 : j 2= 2

3 0 0 i f n ( 1 ) < n ( 2 ) t h e n j 2= 1

3 1 0i f n ( 2 ) < n ( 1 )t h e nJ 1 = 2

3 1 5i f j l = j 2t h e nj O= j 1

I f l i n en u m b e r sm a t c h ,c o m p a r el i n e s :

3 2 0f o rj = j 1 t o J 2

3 3 0 i f l ( j )= O t h e n g e t # j , a $ ( j )

3 4 0 i f a $ ( j )= " " t h e nl ( j )= 1

3 5 0n e x tj

3 6 0i f a $ ( j 1) < > a $ G 2 )t h e nJ O= 3

3 7 0 i fI ( j 1 ) < 1o r l ( j 2 ) < 1g o t o3 2 0

A d v i s eo f a n ye r r o r s :

4 0 0i f j 0 > 0t h e np r i n tn $ ( j O ) ; "l i n e "; n ( j O )

4 1 0f o rj = j 1 t o j 2

4 2 0l © - l ( j M

4 3 0n e x tj

4 4 0g o t o2 0 0

C l o s et h ef i l e sa n dq u i t :

4 5 0f o rj = 1 t o 2

4 6 0 c l o s ej

4 7 0n e x ti

T h eT r a n s a c t o r 3 9 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 42/84

U n v e i l i n gT h eP i r a t e

P a r t1 : C u r r e n tM e t h o d sR i c h a r dT . E v e ' r s ,E d i t o r

I n t h i sa r t i c l eI w i l lb e r e l e a s i n gi n f o r m a t i o nt h a ti s k n o w nb y

f e w ,o f w h i c ht h o s ei n t h ek n o wh o l dt o b e a v e r yd e e pa n d

d a r ks e c r e t .I n m yo p i n i o nt h i sh a sb e e ng o i n go n f o ra l i t t l e

t o ol o n g .S o f t w a r ep i r a c yh a sr u nw i l df o rq u i t e af e wy e a r s

n o w ,a n di t i s a b o u tt i m ef o ra l i t t l ei n f o r m a t i o nt o l e a k o u t

a b o u tw h a ti s h a p p e n i n g ,h o wi t i s h a p p e n i n ga n dh o wt o

i m p e d ei t sc a n c e r o u ss p r e a dj u s ta s l i g h tb i t .

T h o u g hI d o n o tp r o f e s st o k n o wg r e a ts c a d so f i n f o r m a t i o n

a b o u te v e r yf o r mo f p r o t e c t i o na n dd e p r o t e c t i o nk n o w nt o

m a n k i n d ,I h a v ec o l l e c t e de n o u g ht o p u t t o g e t h e ra f a i r l y

t h o r o u g hp r e s e n t a t i o n .T h i sa r t i c l ei s b u t t h ef i r s ti n a t r i l o g y

o n t h i ss u b j e c t .T h eb a l a n c e c a n b ef o u n di n t h i si s s u e ,a n d

a r eg u a r a n t e e dt o p l e a s ee v e nt h ek n o w l e d g e a b l er e a d e r .A s

I h a v ej u s ts t a t e d , t h i s t r i l o g yi s f o r t h e s o l ep u r p o s eo f

e n l i g h t e n i n gp r o g r a m m e r sa b o u tt h e r e a l i t yo f p i r a c ya n d

h o wt o p r e v e n ty o u rc r e a t i o n sf r o mb e c o m i n gj u s ta n o t h e r

n o t c ho n a p i r a t e sb e l t .T h i si s n o ta d i a b o l i c a ls c h e m et o

h a t c hn e wf l o c k so f h a c k e r s ,e v e ni f i t a p p e a r ss o a t t i m e s .

P r o g r a mp r o t e c t i o ni s i n c o r p o r a t e db y p e o p l ew h ow a n tt o

p r o t e c tt h e i rc r e a t i o n sf r o mc o p y r i g h t i n f r i n g e m e n t .P r o

g r a md e p r o t e c t i o ni s a n o c c u p a t i o nt a k e no n b y t h o s ew h o

f i n dt h a tn o r m a lp r o g r a m m i n gi s o f t e nv e r yd u l l .P i r a c ya d d s

a b i to f s p i c et o a n o t h e r w i s et e r r i f i co c c u p a t i o n .T h i ss p i c eo f

l i f ec o s t ss o f t w a r em a n u f a c t u r e r sm i l l i o n so f d o l l a r se v e r y

y e a ri n l o s tr e v e n u e ,a n di t u s u a l l yd o e sn o tp u ta c e n ti n t h e

a v e r a g ep i r a t e sp o c k e t .I s t r e s st h e p o i n tt h a tt h i si s u s u a l l y

d o n ef o r t h e t h r i l l ,n o t m o n e t a r yg a i n ,b e c a u s et h i sf a c t

a l o n em a k e st h ep r o s e c u t i o no f p i r a t e si n c o u r tv e r yd i f f i

c u l t .T h ec o u r t s a r e u s u a l l yg o o df o r o f f e n s e st h a tc a nb e

e a s i l yp r o v e n ,w h i c hi s r a r e l yt h ec a s e w i t h s o f t w a r et h e f t .

F o rm o r ei n f o r m a t i o no n t h el e g a la s p e c t s ,f l i pt o p a r t3 .

T h e r ea r ef i v em e t h o d sc o m m o n l yu s e dt o p r o t e c ts o f t w a r e

f r o mi l l e g a ld i s t r i b u t i o n ,w h i c ha r ea s f o l l o w s:

1 - D i s k e t t ep r o t e c t i o n

2 - D o n g l eP r o t e c t i o n

3 - R O MP r o t e c t i o n

4 - P r o g r a mI n R O MP a c k

5 - N oP r o t e c t i o n

D i s k e t t e P r o t e c t i o n

T h i sf o r mo f p r o t e c t i o ni s o n e w h i c hI f a v o u rt h el e a s t .T h i s

t e c h n i q u e ,t h o u g h c h e a pt o i n c o r p o r a t ea n do f t e no n et h a t

w i l lw o r k ,i s p r e t t yb a dn e w sf o rt h ea v e r a g eu s e r .O n c ea

u s e rh a sp u r c h a s e dt h e p r o t e c t e dd i s k e t t e ,t h e yh a v eo n eo r

t w o c o p i e st o w o r k / w i t h .A s m o s tp e o p l e c a nc o n f i r m ,

a c c i d e n t sd o h a p p e n .I f y o u rd i s k d r i v ep a c k su p ,y o u rd o g

e a t sy o u rd i s k e t t e ,o r e v e ni f y o uh a p p e nt o m e s s u pt h ed i s k e t t ey o u r s e l f ,y o ua r e i n t r o u b l e .S o m em a n u f a c t u r e r

g i v ey o ut w od i s k e t t e s .V e r yn i c e .T h e ya l s o g i v ey o ua c a r d

t h a te n t i t l e sy o ut o g e ta n o t h e rd i s k ,a t a n o m i n a lc h a r g e ,i f

y o ur e t u r ny o u rf o u l e du p d i s k e t t et o t h e m .T h et r o u b l ew i t h

t h i si s t h es o f t w a r em a n u f a c t u r e rl i v e si n s o m ed i s t a n tc i t y ,

l e a v i n gy o u w i t h o n l yo n e m e t h o do f t r a n s p o r t i n g t h

d i s k e t t es h o r to f a n e x p e n s i v ec o u r i e r- t h em a i l .A n di n a l l

p r o b a b i l i t y ,t h e m a n u f a c t u r e rw o n ' ts p a r e t h ee x p e n s e o n

t h e f o r m e r .S o i f t h ep o s t a l s e r v i c ei s a s c a r e f u lw i t hy o u r

m a i la s i t u s u a l l yi s w i t hm i n e , t h e ne x p e c t i n ga n e wd i s k e t t e

b a c ki n w o r k a b l ec o n d i t i o ni s m o r eo f a f a n t a s yt h a n

a n y t h i n ge l s e .E v e ni f t h ed i s k e t t ed o e sn o tl o o kp h y s i c a l l y

d a m a g e d ,y o u w i l l o f t e nf i n di t r i d d l e dw i t hn e wa n d

i m p r o v e dr e a de r r o r s .J u s tt e r r i f i c .I t s e e m st h a tt r o u b l e s

a c c u m u l a t ef a s t e rt h a ny o uc a ng e tr i do f t h e m .

D i s k e t t ep r o t e c t i o nh a so t h e r d i s a d v a n t a g e s .F i r s t ,i t r e a l l y

m a k e sy o u rd i s k d r i v ew o r kf o ri t s m o n e y .T h er e a de r r o r s

a n ds t r a n g e f o r m a t t i n gt r i c k sc a u s ey o u rd r i v et o v i r t u a l l y

h a v ea s t r o k ee v e r yt i m ea p r o t e c t e d d i s ki s r e a di n . T h i s

p r o t e c t i o na l s ot a k e su p t o t h r e e t i m e sl o n g e rt o l o a di n t h a n

n o r m a l ,b e i n ge s p e c i a l l yn o t i c e a b l ew i t ht h e1 5 4 1d r i v e .F o r

a n e n c o r e , d i s k p r o t e c t i o ni s o f t e nw r i t t e nf o r a s p e c i f i c

d r i v e ,e x c l u d i n ga l l o t h e r s .F o rt h o s eo f y o uw i t ha d u a l

d r i v es e t u pw i t hy o u r6 4 ,y o um a yo f t e nb e o u to f l u c kt r y i n g

t o L O A Di n a p r o t e c t e dd i s k .W h e nf a c e dw i t hm o r et h a n

o n ed r i v e ,o r w i t ha R A M / R O Mo r i n t e r f a c ec o m b i n a t i o n

t h a tt h e p r o g r a mc a n ' tf i g u r eo u t ,t h e s o f t w a r ep u r p o s e l y

b o m b so u t .A r o t t e nt r i c k t op l a yo n s o m e o n ew h oh a s

i n v e s t e di n y o u rp r o g r a m .

P i r a t e ss e e mt o e n j o yd i s k p r o t e c t i o nt h o u g h .T h ec h a l l e n g e

a l o n em a k e sy o u rp r o g r a ma n e a s y c a n d i d a t ef o rt h e n e x t

" u n p r o t e c t i o n " .B e t w e e nt h e b i t c o p i e r sa v a i l a b l eo n t h e

m a r k e t ,a n dr e w r i t i n gt h e s o f t w a r et o s t o pc h e c k i n gf o ra l l

t h e e r r o r so n d i s k ,t h e r ei s a g r e a tq u a n t i t yo f b o o t l e g

s o f t w a r ea v a i l a b l et h a tw a so r i g i n a l yd i s kp r o t e c t e d .N o t

o n l yt h a t ,b u t t h e s ed e p r o t e c t e dw o n d e r sa r e o f t e nb e t t e r

T h eT r a n s a c t o r 4 0 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 43/84

t h a nt h eo r i g i n a l s .T h e yL O A Di n f a s t e r ,a n ds a v ey o ud i s k

s p a c eb y a l l o w i n gm o r et h a no n ep r o g r a mp e r d i s k e t t e .

T h e s et w of a c t o r sa l o n eh a v et h e a v e r a g eu s e ra v o i d i n g

s o f t w a r et h a ti s p r o t e c t e dt h i sw a y .

S o m et i m ea g oI w a ss h o w na m e t h o dt o b r e a ka f e wo f t h e

s i m p l ed i s kp r o t e c t e dp r o g r a m sa v a i l a b l e .T h et r i c kt o t h i si s

t o f i r s tb a c k u pa c o p yo f t h e p r o t e c t e d d i s ko n a 4 0 4 0d r i v e ,

o r a n yd u a l d r i v ew i t hs w i n gd o w nd o o r s ,t h e ns t a r tt h eb a c k u pa s e c o n dt i m eb u tw i t ha t w i s t .O p e na n dc l o s et h e

d r i v ed o o ra b o u tt e n t i m e s , o ru n t i lt h eb a c k u pp r o c e d u r e

e n d s .T h e nr e m o v et h ed i s k e t t ef r o mt h ed r i v e .A r e a de r r o r

h a sb e e nc r e a t e do n t h en e wc o p yt h a tw i l lc l o s e l yr e s e m b l e

w h a ti s f o u n do n t h eo r i g i n a l .I f t h es o f t w a r em a n u f a c t u r e r

h a sr e l i e de n t i r e l yo n t h i ss i n g l er e a de r r o rf o rp r o t e c t i o n ,

t h e nt h eg a m eh a sb e e nl o s tw i t h i na f i v em i n u t ep e r i o d .

E v e ni f t h e i rm e t h o do f p r o t e c t i o nw a sa l i t t l em o r ee x t r e m e ,

a g o o dh a c k e rw i l le n du pw i n n i n g . F o ra l lo f t h e s e r e a s o n s ,I

d o n o tr e c o m m e n dd i s kp r o t e c t i o na t a l l .

D o n g l eP r o t e c t i o n

T h i sf o r mo f p r o t e c t i o ni s m yp e r s o n a lf a v o u r i t e .Y o uh a v ea t

l e a s ta f i g h t i n gc h a n c ea g a i n s tt h ep i r a t ew i t ht h i so n e , w i t h

t h ev i c t o ro f t e nt h em a n u f a c t u r e r .I n c a s ey o ua r eu n s u r eo f

w h a td o n g l ep r o t e c t i o ni s , l e tm ee x p l a i n .A d o n g l ei s a r u d e

n a m ef o r a h a r d w a r ea p p a r a t u st h a ti s p l u g g e di n t oy o u r

c o m p u t e r .O n t h eP E T / C B Ms e r i e s ,a d o n g l e c a n b el o c a t e d

o n t h eu s e rp o r t ,o r o n e i t h e ro f t h et w oc a s s e t t ep o r t s .O n

t h eC o m m o d o r e6 4 a n dV i c2 0 ,y o uc a nl o c a t et h e m o nt h e

u s e rp o r t ,g a m ec a r t r i d g ep o r t ,j o y s t i c k p o r t sa n dc a s s e t t e

p o r t .Q u i t ea f e wo p t i o n s .N o wf o rt h ee x p l a n a t i o no f w h a t

t h e yd o . I n s i d et h ed o n g l ec a nb e f o u n d a n y t h i n gf r o mo n e

p i e c eo f w i r et o a c o m p l e t ea s s o r t m e n to f e l e c t r o n i cc o m p o

n e n t s .W i t ht h ep r o p e rc o m b i n a t i o n ,a n dt h ep r o p e rl o c a

t i o n ,a p r o g r a mc a n c h e c kt o m a k es u r et h a tt h ed o n g l ei s i n

p l a c e .F o ra n a d d e dt h r i l l ,u s et h er e s u l t sg e n e r a t e db y t h e

d o n g l ei n t h e c a l c u l a t i o n sa n do p e r a t i o no f t h e p r o g r a m

i t s e l f .A n y t h i n gf r o mt i m e r so r p u l s em u l t i p l i e r st o f r e

q u e n c yg e n e r a t o r so r f i l t e r sc a n b ei n c l u d e d . T h e r e f o r e ,

e v e ni f t h e h a c k e r c a nm a n a g et o s t o pt h e p r o g r a mf r o m

c h e c k i n gf o r t h e d o n g l e ,t h e p r o g r a mm a yn e v e rw o r k

p r o p e r l ya g a i n .

T h e r ea r e w a y sa r o u n dd o n g l ep r o t e c t i o nt h o u g h .T h e

s i m p l e s tm e t h o di s t o b r e a ki n t ot h ed o n g l ea n df i n do u t

w h a t ' si n s i d e .I f t h i sc a nb e a c h i e v e dt h eh a c k e rh a sa 5 0 / 5 0

c h a n c eo f r e p r o d u c i n gi t .

I f t h e d o n g l ei s f i l l e dw i t hs o m ef o r mo f m a t e r i a lt o s t o p

b r e a k a g e ,t h e h a c k e rm a ya s s u m et h a tt h e c o v e r i n g h a s

b e e np l a c e d t h e r es i m p l yt o d i s g u i s ev i r t u a l l yt r a n s p a r e n t

p r o t e c t i o n .N o tt r a n s p a r e n ti n t h es e n s et h a tt h e r ei s n o n e ,

b u t t r a n s p a r e n ti n t h a ti t c a nb e q u i c k l yr e p r o d u c e db y t h o s e

i n t h e k n o w ,i f s o i n c l i n e d .S o m ed o n g l e sa r e m e r e l ya

j u m p e rb e t w e e n t w op i n s .P r o t e c t i o nl i k e t h i sl a s t sa b o u ta s

l o n ga s o n ec u po f c o f f e e .A l i t t l em o r et h o u g h ta n a d o n g l e

c a n s e n da h a c k e rt o a c a f f e i n e r e h a b i l i t a t i o n c e n t e r .I t ' su p

t o y o ut o d e c i d eh o wc l e v e rt o m a k ei t .

A t t h i sp o i n t t h eh a c k e r h a sa f e wo p t i o n s .C r a c ko f f o r

d i s s o l v et h e m a t e r i a le n c a s i n gt h ec o m p o n e n t s ,o r X - R a yt h e

e n t i r ek e yt o s e e w h a t ' si n s i d e .I f t h e i d e n t i c a t i o n h a s n ' t

b e e nr e m o v e df r o mt h e c o m p o n e n t s , a n dt h e w i r i n gi s n ' t

p u r p o s e l ym i s l e a d i n g ,t h e nt h eX R a yt e c h n i q u ew i l lp r o b a

b l yw o r k .I t ' sa m a z i n gh o wa f r i e n d s h i pw i t ha d e n t i s tc a nb e

b e n e f i c i a lt o a p i r a t e .

T o s t o pt h e h a c k e rf r o mg a i n i n ga n y g r o u n d b yc h i p p i n ga w a ya t t h ec o v e r i n gm a t e r i a lo n y o u rd o n g l e , p l a c ea f e w

v e r yi m p o r t a n tt h i nw i r e st h r o u g h o u tt h e m a t e r i a li t s e l f .

O n c et h e c h i p p i n gb e g i n s ,t h e s e w i r e sw i l lb e c u t b y t h e

i l l u s t r i o u sc h i p p e r ,t h u sm a k i n gt h e d o n g l eu s e l e s s .I f

e n o u g hw i r e sa r e u s e d , t h ek e yw i l lb e c o m eu s e l e s st o t h e

h a c k e rb y t h et i m et h e yr e a c ha n yi m p o r t a n tc o m p o n e n t s .

I n a p r o p e rc a s i n g , ad o n g l ew i l lb e d e s t r o y e db e f o r ei t

r e v e a l si t s e l f .

D i s s o l v i n g t h em a t e r i a lt h a tc o v e r sy o u rc o m p o n e n t si s o n e

m e t h o dt h a t c a n p r o v ee f f e c t i v ei f c a r ei s n o t t a k e nt o

d i s g u i s e t h eo p e r a t i o no f t h ec i r c u i t r yo r t h ei d e n t i f i c a t i o no f

t h e c o m p o n e n t s . T h e r ei s o n es u r em e t h o dt o d i s c o u r a g e

t h e h a c k e rf r o mt h i s t e c h n i q u e .U s ea m a t e r i a lt h a t i s

i m p e r v i o u st o m o s ts o l v e n t s .M o s ts o f t w a r em a n u f a c t u r e r s

u s ew h a t e v e rp l a s t i cm a t e r i a lt h e y c a nf i n d ,l i k ee p o x yr e s i n .

T h e r ea r em a n yc o m m e r c i a l l ya v a i l a b l ec h e m i c a l st h a tc a n

d i s s o l v ee p o x yi n r e l a t i v e l yn o t i m ea t a l l .A n di t ' sa s h a m e

t o a l l o wa h a c k e rt o w i ns o e a s i l y .

T h e r ei s o n es u b s t a n c eI u s et h a ti s i m p e r v i o u st o s o l v e n t s ,

o r h e a tf o r t h a tm a t t e r .I t i s c a l l e dm e t h y lm e t h a c r y l a t e ,o r

q u i t e s i m p l y ,d e n t u r em a t e r i a l .T h i sc a n b e p u r c h a s e di n

m a n yf o r m s ,w i t ht h ee a s i e s ta n dl e a s te x p e n s i v eb e i n g T r a y

M a t e r i a l .T r a yM a t e r i a li s t r u ed e n t u r ea c r y l i c ,b u tm a n u f a c

t u r e df o r av a s t l yd i f f e r e n tp u r p o s e .T h o u g ht h e d e n t a l

p r o f e s s i o nf r o w n so n s a l e so u t s i d eo f i t s l i t t l ec o m m u n i t y ,t r y

a f e wo f t h es m a l l e rd e n t a ls u p p l y c o m p a n i e s ,o r s m a l l e r

d e n t a lm a n u f a c t u r e r s .T h e s e c o m p a n i e sw i l lo f t e nd e v i a t e

f r o m n o r m a lp r o c e d u r e s ,w i t ht h ec o r r e c ta m o u n to f p r o d

d i n g .A n dy o u rd o n g l e p r o d u c i n gd e p a r t m e n tw i l lf e e lm u c h

m o r ec o n f i d e n t .E x p e c tt o p a ya b o u t$ 8 . 0 0p e rp o u n du p f o r

t h em a t e r i a l .

T h er e a s o nw h yd o n g l ep r o t e c t i o ni s a f a v o u r i t ew i t hm e i s

b e c a u s ei t ' s t e r r i f i cf o r t h e u s e r .T h ei n s t a l l a t i o n o ft h e

d o n g l ei s o f t e nv e r ye a s y ,a n dt h e r ei s n o l i m i tt o t h en u m b e r

o f c o p i e st h a tc a nb e m a d eo f t h ep r o g r a md i s k .T h e r ei s a l s o

t h a ts e c u r i t yb l a n k e tk n o w i n gt h a tt h ep i r a t eh a st o a c t u a l l y

g e ti n t oy o u r c o d ea n df i g u r ei t o u th o wt o s t o pt h ec h e c kf o r

t h e d o n g l et o b r e a k y o u rb e a s t .I f c a r ew a st a k e ni n t h e

d e s i g no f t h ep r o g r a m ,a n di f t h o u g h tw a sg i v e nt o u s et h e

r e s u l t sg e n e r a t e db y t h ed o n g l ei n t h ea c t u a lo p e r a t i o no f t h e

p r o g r a m , t h e nt h e h a c k e rm a yb e i n f o r a n i n d e f i n i t e

a m o u n to f w o r k .

F o r a f i n a la n a l y s i so n t h i s o n e I r e c o m m e n di t w h o l e

h e a r t e d l y .T h ec o s ti s h i g h e rf o rt h em a n u f a c t u r e ri n r e l a t i o n

t o d i s kp r o t e c t i o n ,b u t t h e e n dr e s u l ti s b e t t e rb u s i n e s s .A

r e p l a c e m e n tk e yc a nb e s h i p p e d t h r o u g ht h em a i l ,w i t h o u t

T h eT r a n s a c t o r 4 1 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 44/84

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 45/84

I n m y o p i n i o n ,t h i sf o r mo f p r o t e c t i o nr a t e sj u s tb e l o wt h e

d o n g l e .Y o u r p r o g r a mw i l lb e q u i t es a f e ,b u t a l i t t l em o r e

c o s t l yt o p r o d u c e .Y o ub e t h e j u d g e ,f o r y o ua l o n ek n o w

w h a tm a r k e t y o u rp r o g r a mi s g e a r e dt o w a r d s .I f t h em a r k e t

i s h u g e ,t h e r ei s a p r e t t yg o o dc h a n c et h a ty o u rp r o f i t sw i l l

s t i l lb e h u g e ,e v e nw i t h b r e a k a g e .

N o P r o t e c t i o nA t A l l

T h el a s tf o r mo f p r o t e c t i o nf o rt h i sa r t i c l ei s z e r op r o t e c t i o n

i n t h e m a j o r s e n s eo f t h ew o r d .I k n o wt h a tm o s tp e o p l e

d o n ' ta g r e et o om u c hw i t ht h a to n e , b u ti t c o u l db e v i a b l e .

A l li t w o u l dt a k ew o u l db e s o m ec a r e f u l p r i o rp l a n n i n g .

B y p r i o rp l a n n i n gI m e a nt h a ty o us h o u l dw r i t ey o u rp r o

g r a mw i t ha r e a l l y f i n em a n u a li n m i n d .G a m e sp l a y e r s

u s u a l l y d o n ' tn e e dt h em a n u a l ,b u tb u s i n e s sa n da p p l i c a t i o n

s o f t w a r ec a nb e w o r t h l e s sw i t h o u ti t . Y o u rm a n u a lc a n b e

p r i n t e ds o i t ' st o u g ht o p h o t oc o p y ,a n dp h o t o c o p i e db o o k s

s t a n du pb e t t e ra s e v i d e n c ei n c o u r t .B e s i d e s ,p f i o t o c o p y i n g

i s t o oe x p e n s i v ef o rc h i n t zh a c k e r s .T h es o f t w a r em i g h t b ef a b u l o u s ,b u ts u p p l y i n ga m a n u a lw i t he v e r yc o p yt h e yw i s h

t o h a n do u tw i l lh a v ep i r a t e sm o v i n g o nt o l e s sd o c u m e n t e d

p a c k a g e s .

O t h e rp r o t e c t i o nm i g h t b ec o n s i d e r e dl i k ea d e a l e r / u s e r

c o n t r a c t ,t o b e s i g n e db y t h e u s e r ,a n d a s e r i a ln u m b e r

p l a c e do n e a c hd i s k e t t e ,i n a s p o tf e ww o u l de v e rt h i n kt o

l o o k .M a k ei t c l e a rw i t ha m e s s a g ei n y o u rp r o g r a mt h a t

w i t h o u tt h e c o n t r a c tt h e u s e ri s i n v i o l a t i o no f t h e l a w .

F o r g e dc o n t r a c t sa r ee v e nm o r ef r i g h t e n i n gt o a r e p u t a b l e

b u s i n e s st h a na c o p i e dm a n u a l .P r o d u c ea t r u l y f i n eo v e r a l l

p a c k a g ea n dm o s tw o u l dr a t h e ro w no n el e g a l l yt h a na c c e p ta d u p l i c a t e .

S e r i a ln u m b e r sw i l lh e l pt o o .W r i t et h es e r i a ln u m b e ri n t h e

m a n u a li n a f e wl o c a t i o n s ,s o t h a ti t w i l lr e p r o d u c ei f p h o t o

c o p i e d .R e m e m b e rt h a tm o s tp e o p l ed o n ' tl o o kt h r o u g ht h e

e n t i r em a n u a lb e f o r ep h o t o c o p y i n gi t . C o p y r i g h tl a wd o e s

a p p l yt o m a n u a l s ,s o g u a r dy o u r s e l fw e l l .T h ec o m b i n a t i o n

o f d e a l e r - u s e ra g r e e m e n ta n dm a n u a lw i l ls t a n du p i n c o u r t

i f n e c e s s a r y .T h es e r i a ln u m b e rw r i t t e no n t o t h ed i s k e t t ei s

a l s o a g r e a t h e l p .D o n ' t i n f o r ma n y o n et h a t t h e s e r i a l

n u m b e ri s o n t h ed i s k e t t e ,j u s tk e e pa l o go f i t s o m e w h e r e ,

l i k e i ny o u rr e c o r d s ,a n d o nt h ec o n t r a c tt h a tt h eu s e rs i g n s .

I f y o ue v e rf i n d t h a tc o p i e so f y o u r p r o g r a ma r ec i r c u l a t i n g ,a

q u i c kc h e c ko n t ot h ed i s k s u r f a c ew i l ld e t e r m i n ew h e r et h e

d i s k e t t e o r i g i n a t e d .W i t ht h a td e t e r m i n e d ,l e g a la c t i o ni s

y o u rn e x ts t e p .

A w o r do n t h e p l a c e m e n to f t h e s e r i a ln u m b e r .W r i t et h e

n u m b e ri n a s p o to n t h es u r f a c eo f t h ed i s k e t t et h a ti s s u r e

n o tt o b e d i s t u r b e db y a n yd i s ka c t i v i t y .F o ra l l o f t h ed i s k

t y p e sn u m e r o u sh i d i n g p l a c e sd o e x i s t ,y o uj u s th a v et o

l o c a t et h e m .F o ra n e n c o r e ,e n c r y p tt h e s e r i a ln u m b e ri n

s u c ha w a yt h a t i f i t w a s f o u n d ,i t c o u l dn o t b e e a s y

d e c i p h e r e d .T h el o w / h i g hA S C I Iv a l u ei s f i n e ,b u t t h el o w /

h i g hn u m b e rE O R ' dw i t ha n u m b e rk n o w no n l yt o y o u r

c o m p a n y , w o u l db e j u s t r i g h t .H a v ey o u rp r o g r a mc h e c kf o r

t h en u m b e r ,j u s tt o m a k es u r ei t i s t h e r e .I f t h en u m b e ri s n ' t ,

f r yt h ed i s ki t s e l f .T h e np u t t h ec o m p u t e ri n t oa d e a t hl o o p ,

j u s t t oe v e nt h e s c o r ea l i t t l ef o r t h e mt r y i n gt o s t e a ly o u r

c r e a t i o n .W h e ny o u rr i g h t sa r ea t s t a k e ,p r o t e c t y o u r s e l ft o

t h eh i l t .

A n o t h e rp o i n tt o p o n d e rw i t ht h i st e c h n i q u ei s t o s t o r et h e

s e r i a ln u m b e ro n d i s ka l o n gw i t ha c o n s t a n tu s e df o r

c a l c u l a t i o n sw i t h i ny o u rp r o g r a m .N u m e r o u sp r o g r a m so nt h e m a r k e tu s e t h e i rp r o t e c t i o na s p a r to f t h e c a l c u l a t i o n

p r o c e s s ,f o rs e t t i n gu p t h es c r e e nd i m e n s i o n s ,s o m em a t h e

m a t i c a lc a l c u l a t i o n s ,a n df o ra v a r i e t yo f o t h e rr e a s o n s .W h y

n o td o t h es a m et h i n g .I n s t e a do f f r y i n gt h e i r d i s k e t t e ,l e t

t h e mc o n t i n u eu s i n gt h ep r o g r a m .I f t h es e r i a ln u m b e ri s n ' t

t h e r e ,t h e c o n s t a n tw i l lb e a b s e n tf r o mt h e i rc a l c u l a t i o n s .

J u s ti m a g i n eh o wm u c h m o n e yi t w o u l dc o s ta c o m p a n yt o

u s ea p i r a t e da c c o u n t i n gp a c k a g ep r o t e c t e di n t h i sm a n n e r .

T h e ym i g h tn o tr e a l i s e t h a ta n y t h i n gw a s w r o n gu n t i ly e a r

e n d .T h e ns u d d e n l yt h e yw o u l dh a v ea n e n t i r ef l e e to f

a u d i t o r s r i p p i n gt h r o u g ht h e i rr e c o r d st o f i n do u th o wt h e ym a d e / l o s ta l l t h a t m o n e yd u r i n gt h e y e a r .F o r t h e f e w

h u n d r e dd o l l a r st h ec o m p a n ys a v e do n t h ep r o g r a m ,t h e y

l o s ti t a h u n d r e dt i m e so v e ri n m a nh o u r st o c o r r e c tt h e

m i s t a k e s .A p r e t t yg o o dw a yt o g e te v e nw i t ha c h e a pf i r m .I f

t h e f i r mh a s t h e n e r v et o c o m p l a i n ,a s k t h e mf o r t h e

d i s k e t t e s ,m a n u a l a n du s e rc o n t r a c tf r o mt h ep o i n to f p u r

c h a s e .T r yn o t t o r e a c tt o o q u i c k l y ,a n dt h e u n s u s p e c t i n g

f i r mm a yl e a dy o ut o t h e s o u r c e .T h e nb r i n g t h ec u r t a i n s

d o w no n b o t ho f t h e m .A l a w y e ri s t h en e x ts t e p ,a n d y o u

h a v ea p r e t t yg o o ds h o ta t w i n n i n gt o o .

A n dF i n a l l y ,T h e E n d

O t h e rm e t h o d se x i s t t op r o t e c ta n dd e p r o t e c tp r o g r a m s ,b u t

t h e s e a r er e a l l yj u s t f u r t h e re x t e n s i o n st o t h o s e a l r e a d y

c o v e r e d .A sm e n t i o n e da t t h eb e g i n n i n g ,t h i s a r t i c l ei s o n eo f

t h r e et h a th a sb e e np r e p a r e df o rt h e o c c a s i o n .A sy o u h a v e

d i s c o v e r e d ,t h i so n ed e a l sw i t ht h e m e t h o d su s e dt o c o p y

p r o t e c ty o u rp r o g r a m s .P a r tt w o I e n j o y e dw r i t i n gm o s t ;

P r o g r a m m i n gS l e i g h to f H a n d s ,a n a r t i c l et h a tw i l lt a k ey o u

t h r o u g hs o m ep r a c t i c a lm e t h o d st o p r o t e c ty o u rp r o g r a m s ,

a n d h o wt h e s em e t h o d sa r e o f t e ns u p e r c e d e d .T h ef i n a l

a r t i c l ei s a b o u tt h el e g a la s p e c t so f p i r a c y ,a p r o d u c to f s o m e

q u i t ee x t e n s i v er e s e a r c h .

W h a t e v e ry o u rc h o i c eo f r e a d i n g ,I h o p et h a ty o u h a v e

e n j o y e dt h i s i s s u e .Y o u rv i e w so n t h i s s u b j e c t ,a n d o n

e v e r y t h i n gt h a tw e h a v ep r i n t e di n t h i si s s u e ,a r ew e l c o m e .

W ew i l lb e a b l et o r e f i n eo u rm a g a z i n ei n t ot h e j e w e lw e

k n o wh e rt o b e c a p a b l eo f b e c o m i n g ,w i t hj u s ta l i t t l eh e l p

f r o my o u .E x p r e s sy o u rv i e w so n p a p e r ,d i s ko r c a s s e t t e

t a p e ,a n ds e n dt h e mi n t ou s . B yp i e c i n g t o g e t h e rw h a to u r

r e a d e r sl i k ea n d d i s l i k ea b o u t o u rp u b l i c a t i o n ,w e c a n

p r o d u c et h e h i g h e s tq u a l i t ym a g a z i n ef o u n d a n y w h e r e .

M a yy o uf i n d t h a ta l l o f y o u rb u g sh a v ef o u rw h e e l sa n da n

e n g i n ei n t h er e a r .R T E

T h eT r a n s a c t o r 4 3 V o l u m e 5 ,I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 46/84

U n v e i l i n gT h eP i r a t eP a r t2 :

P r o g r a m m i n gS l e i g h tO f H a n d

O n eo f t h em o s te x c i t i n g t h i n g sa p r o g r a m m e rc a n m a s t e ri s t h ea r t

o f m a k i n gy o u rc o m p u t e r d ow e i r dt h i n g s .O u rB i t sa n dP i e c e s

s e c t i o ni s o n e e x a m p l eo f w h e r e g r o w nm e na n dw o m e ns e a r c h

o u ta n dp u b l i s hn e wa n d i m p r o v e dw a y st o m a k ey o u rc o m p u t e r

b e gf o rm e r c y .T h es a m ei s t r u ew i t hm o s tp r o g r a m m e r sw h og e ti n

t h em o o df o rs o m er e a l l yh o tp r o t e c t i o n .I t i s a l lj u s ta n e x t e n s i o no f

t h es a m ei d e a ,t o m a k ey o u rc o m p u t e rp e r f o r mt r i c k st h a ta r en o t

n o r m a l l yp a r to f i t s a c t .T h i sa r t i c l eh a sb e e nw r i t t e nt o s h o wy o u

s o m en e wa n d i m p r o v e dw a y st o a d dc o n f u s i o na n dp a i nt o t h e

l i v e s o fp i r a t e se v e r y w h e r e .T h o u g hn o t a g l o s s a r yo n e v e r y

m e t h o dt h a tc a n b ea c h i e v e d ,i t s h o u l ds u f f i c et o w h e ty o u r

a p p e t i t ea n ds t a r ty o u o nt h e t r e kt o f i n ds o m em o r e .P r o t e c t i o n

c a n b ea d d i c t i n g .

A Q u i c kW o r d O nC o m p i l i n g

T h o u g hn o t a s u b j e c tt h a te x c i t e sm a n yi n t h e p r o g r a m m i n g

c o m m u n i t y ,1 f e l ti t b e s tt o d i s c u s sc o m p i l i n gf o ra f e wm i n u t e s ,j u s t

t o l e ty o uk n o wt h a ti t i s s t i l la r o u n d a n di s p r o n et o b r e a k a g ei f

a t t a c k e db y t h e s e r i o u sp i r a t e .

C o m p i l i n ga B A S I Cp r o g r a mi s u s u a l l ya r e l i a b l ew a yt o d i s c o u r a g e

m o s th a c k e r s .O n c et h ei n f a m o u sw o r d so f C O M P I L E DB Y. . . . a r e

d i s c o v e r e d ,m o s th a c k e r st u r na w a y .A g a i n , t h e r ea r ee x c e p t i o n s

t o t h i s r u l e .A v a i l a b l et h r o u g ht h e b o o t l e gc o m m u n i t yr i g h tn o w

a r e af e w d e c o m p i l e r sf o rt h em o s tw i d e l yu s e dc o m p i l e r s .T h e r ei s

o n et h a tI a m q u i t e f a m i l i a rw i t ht h a tc a nd e c o m p i l ea c o m p i l e d

p r o g r a mb a c ki n t oi t so r i g i n a l s t a t ea s i t w a sb e f o r ec o m p i l i n ge v e r

t o o kp l a c e ,i f y o u ro n l ym e t h o do f h i d i n gp r o t e c t i o nw a sc o m p i l

i n g ,t h e nf o r g e ti t . T h i so n ew i l lb a r et o t h ew o r l dw h a t e v e rt r i c k s

y o u w e r ep e r f o r m i n g .A p r e t t yl o wl i f et r i c k ,b u t i t i s e x t r e m e l y

e f f e c t i v e .

I f t h ec h a n c e sa r et h a ty o u rp r o g r a mw i l ln o tb e t o ob a d l ye x p o s e d

i f d e c o m p i l e d , t h e nc o m p i l et o y o u rh e a r t s c o n t e n t .J u s tr e m e m b e r

t h a tt h e r ea r e an u m b e ro f h a c k e r so u t t h e r er i g h tn o ww i t ht h e i r

d e c o m p i l e r s , r e v v i n gu p t h e i rd i s k d r i v e si n a n t i c i p a t i o n .M a k e

s u r et h a ty o u r c o d ei s a l i t t l em o r et r i c k yi n t h e m e t h o du s e dt o

c h e c kf o r p r o t e c t i o n .I n t h i sw a yt h e ym a yh a v et o w o r ka l i t t l e

h a r d e rt o a c h i e v et h es a m ee n dr e s u l t ,i f i tc a nb e d o n e .

P O K E S ,L i n e T r i c k sA n dD O ST r i c k s

A s M a r yP o p p i n so n c es t a t e ds o e l e g a n t l y ," t h e s ea r e af e wo f m y

f a v o u r i t et h i n g s . " I nt h i sI s u p p o r th e rc o n v i c t i o n sa l lt h ew a y .G i v em e a m e m o r ym a pa n da c o m p u t e r ,t h e n s t a n db a c k .I t c a nb e

q u i t ea c h a l l e n g et o s e tm yd e v i o u sl i t t l em i n dt o w o r ko n n e wa n d

i m p r o v e dm e t h o d st o s u p e r c e d et h ee v i lw i s h e so f t h a tm a s t e ro f

d e c e i t ,t h ep i r a t e .A a rd e a a rB i l l y ,h a v e y o u b r o k e nt h a tp a c k a g e

y e t ?

B e l o ww i l lb e f o u n da l l s o r t s o f t r i c k s t h a th a v ee i t h e rb e e nw e l l

c o n c e a l e di n t h e p a s t ,o r n e v e rt h o u g h to f b e f o r e .C o m b i n i n g

s e v e r a lt e c h n i q u e si s y o u rb e s td e f e n s e .H o w e v e ry o u rp r o t e c t i o n

m u s ts h a r e s p a c ew i t hy o u rp r o g r a m .T o om u c hp r o t e c t i o na n d

y o u rp r o g r a mm a yr u no u to f m e m o r y .I t ' su p t o y o u .

A u t oC h e c kF o rP r o t e c t i o n :C H R G E T

F o ra n y o n ew i s h i n gt o h a v et h e i rp r o g r a ma u t o m a t i c a l l yc h e c kf o r

p r o t e c t i o n ,C H R G E Ti s o f t e nf o u n dt o b e r a t h e rh a n d y .L o c a t e da t

$ 7 0 - $ 8 7w i t h t h eP E T / C B Ma n d$ 7 3 - $ 8 A o nt h eC 6 4 / V I C ,a s l i g h t

c h a n g ew i t h i nw i l la l l o wy o ut o r e r o u t e t h eC H R G E Tf l o wt o w h e r e

e v e ry o u rp r o t e c t i o nd e s i r e s .F o rt h eP E T / C B M ,l o c a t i o n s$ 7 9 - $ 7 B

c a n b em o d i f i e dq u i t ee f f e c t i v e l yt o i n c l u d ea J U M Pf o l l o w e db y a

1 6 b i ta d d r e s s .T h es a m ea p p l i e sf o rl o c a t i o n s$ 7 C - $ 7 Eo n t h eC 6 4

a n dV I C .I fy o ur e p r o d u c ee v e r y t h i n gf r o mt h e s el o c a t i o n sd o w nt o

t h e e n d o f C H R G E T ,a n d m a s t e rt h e b a s i cc o n c e p t so f h o w

C H R G E Tw o r k s ,t h e ny o ua r es u r et o b e a b l et o C H R G E T i z ey o u r

p r o t e c t i o nw i t hf e ws n a g s .

T h e r ei s o n ev e r yl a r g ed i s a d v a n t a g ei n u s i n gC H R G E Tf o re x e c u t

i n g v a s ta m o u n t so f c o d et h o u g h .B A S I Ce x e c u t i o nw i l lb e s l o w e d

d o w nr e l a t i v et o t h ea m o u n to f e x t r ac o d eC H R G E Ti s e x p e c t e dt o

e x e c u t ei n i t s q u e s tf o r p r o t e c t i o n .K e e py o u rp r o t e c t i o nc o d e

c o m p a c t a n dy o u rp r o g r a mw o n ' ts u f f e rt o ob a d l yi n p e r f o r m a n c e .

L o c a t i o n sT o P O K EA b o u t W i t h

T h et a b l eo n t h ef o l l o w i n gp a g ei s n o ta c h a r to f y e tu n d i s c o v e r e d

o r i f i c e st o p r o d a b o u ti n , b u ta c o m p e n d i u mo f l o c a t i o n si n R A M

t h a tc a nr e a l l yt u r na c o m p u t e ro n .P r o c e e db e l o w a n d o p e n u pa

v a s tn e ww o r l do f t r i c k sy o uc a np l a yo n y o u ry e tu n s u s p e c t i n g

c o m p u t e r .

# 0 1U S RF u n c t i o nJ u m p

A s h a sb e e ne x p l a i n e db y s o m a n yp e o p l ei n t h e p a s t ,t h e U S R

f u n c t i o ni n B A S I Cc a n b e u s e dq u i t ee f f e c t i v e l yt o a c c e s sm a c h i n e

c o d ef r o mB A S I C .B ya l t e r i n gt h ej u m pa d d r e s st o w h e r ee v e ry o u

l i k e ,i n d i r e c tm e t h o d so f a c c e s s i n gp r o t e c t i o n o r p l a i na n ds i m p l e

c o d e c a n b ef o u n d .A S Y St o t h i sa d d r e s sw i l la l s op r o d u c es o m ef i n er e s u l t s ,i f y o ua r e s oi n c l i n e d .W h a t e v e ry o u rr e q u i r e m e n t s ,

t h i sv e c t o rc a n b eh a n d ya t t i m e s .

T h eT r a n s a c t o r 4 4 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 47/84

4 0 C o lP E T

$ 0 0 0 0 - $ 0 0 0 2

$ 0 0 9 0 - $ 0 0 9 1

$ 0 0 9 2 - $ 0 0 9 3

$ 0 0 9 4 - $ 0 0 9 5

N / AN / A

N / A

N / A

N / A

N / A

N / A

N / A

$ 0 0 2 8 - $ 0 0 2 9

$ 0 0 3 4 - $ 0 0 3 5

$ 0 0 9 E

N / A

N / A

$ 0 3 F A - $ 0 3 F B

8 0 C o lC B M

$ 0 0 0 0 - $ 0 0 0 2

$ 0 0 9 0 - $ 0 0 9 1

$ 0 0 9 2 - $ 0 0 9 3

$ 0 0 9 4 - $ 0 0 9 5

N / AN / A

$ 0 0 E 9 - $ 0 0 E A

$ 0 0 E B - $ 0 0 E C

N / A

N / A

N / A

N / A

$ 0 0 2 8 - $ 0 0 2 9

$ 0 0 3 4 - $ 0 0 3 5

$ 0 0 9 E

$ 0 0 E 3

N / A

$ 0 3 F A - $ 0 3 F B

C 6 4

$ 0 3 1 0 - $ 0 3 1 2

$ 0 3 1 4 - $ 0 3 1 5

$ 0 3 1 6 - $ 0 3 1 7

$ 0 3 1 8 - $ 0 3 1 9

$ 0 3 1 A - $ 0 3 1 B$ 0 3 1 C - $ 0 3 1 D

$ 0 3 2 4 - $ 0 3 2 5

$ 0 3 2 6 - $ 0 3 2 7

$ 0 3 2 8 - $ 0 3 2 9

$ 0 3 2 A - $ 0 3 2 B

$ 0 3 3 0 - $ 0 3 3 1

$ 0 3 3 2 - $ 0 3 3 3

$ 0 0 2 B - $ 0 0 2 C

$ 0 0 5 5 - $ 0 0 5 6

$ 0 0 C 6

$ 0 2 8 9

$ 0 3 0 0 - $ 0 3 0 1

N / A

V I C2 0

$ 0 0 0 0 - $ 0 0 0 2

$ 0 3 1 4 - $ 0 3 1 5

$ 0 3 1 6 - $ 0 3 1 7

$ 0 3 1 8 - $ 0 3 1 8

$ 0 3 1 A - $ 0 3 1 B$ 0 3 1 C - $ 0 3 1 D

$ 0 3 2 4 - $ 0 3 2 5

$ 0 3 2 6 - $ 0 3 2 7

$ 0 3 2 8 - $ 0 3 2 9

$ 0 3 2 A - $ 0 3 2 B

$ 0 3 3 0 - $ 0 3 3 1

$ 0 3 3 2 - $ 0 3 3 3

$ 0 0 2 B - $ 0 0 2 C

$ 0 0 5 5 - $ 0 0 5 6

$ 0 0 C 6

$ 0 2 8 9

$ 0 3 0 0 - $ 0 3 0 1

N / A

D e s c r i p t i o n

( 0 1 )U S RF u n c t i o nJ u m p

( 0 2 )H a r d w a r eI n t e r r u p tV e c t o r

( 0 3 )B r e a kI n t e r r u p tV e c t o r

( 0 4 )N M 1I n t e r r u p tV e c t o r

( 0 5 )O P E NV e c t o r

( 0 6 )C L O S EV e c t o r

( 0 7 )I N P U TV e c t o r

( 0 8 )O U T P U TV e c t o r

( 0 9 )T e s tS T O PV e c t o r

( 1 0 )G E TV e c t o r

( 1 1 )L O A DL i n k

( 1 2 )S A V EL i n k

( 1 3 )P o i n t e r: S t a r tO f B A S I C

( 1 4 )P o i n t e r: T o pO f M e m o r y

( 1 5 ) *C h a r si n K e y b o a r dB u f f

( 1 6 )M a xS i z eo f K e y b o a r dB u f f e r

( 1 7 )E r r o rM e s s a g eL i n k

( 1 8 )M o n i t o r E x t e n s i o nV e c t o r

# 0 2H a r d w a r eI n t e r r u p tV e c t o r

A n o t h e rn a m ef o rt h i sv e c t o ri s t h eI R QV e c t o r ,o n et h a t1 a m s u r e

y o u h a v es e e nm e n t i o n e di n o u rB i t sa n d P i e c e ss e c t i o n .T h i s

v e c t o rc a n b ec h a n g e dt o p o i n tt o w h a t e v e r c o d ey o u w a n t

e x e c u t e dr e p e a t e d l y ,l i k ea c h e c kf o r p r o t e c t i o n .O n ep o i n tt o

r e m e m b e rb e f o r ep e r f o r m i n g a n y m a j o ro p e r a t i o n s w i t ht h i sv e c

t o r ,t h o u g h .T h e m o r ep r e - i n t e r r u p tc o d ey o uh a v e ,t h es l o w e rw i l l

b e t h e e x e c u t i o no f n o r m a lc o d e .A n i m p o r t a n tt r a d eo f f t o

c o n s i d e r .

A n o t h e rp o i n tt o r e m e m b e ri s t o s a v et h ep r o c e s s o rs t a t u sa n da l l

r e g i s t e r s t h a ta r e c o r r u p t e do n t h e s t a c kb e f o r ea n yo p e r a t i o n s .

T h e nr e s t o r e t h ev a l u e s b e f o r et r a n s f e r r i n g c o n t r o lb a c kt o t h e

s y s t e m .

F o r4 . 0B A S I Cp e o p l e ,y o u h a v ep r o b a b l yn o t i c e dt h a ty o uc a n n o t

u s et h e d i s k d r i v ef o rv e r ym u c hi f t h e I R Qp r o c e d u r eh a sb e e n

c h a n g e d .T r yt h e f o l l o w i n gt r i c ka n dI a ms u r ey o uw i l lb e p l e a s e d .

P o i n tt h e B R Ki n t e r r u p tv e c t o ra t y o u rc o d e ,t h e np o i n tt h eI R Q

v e c t o ra t $ E 4 5 4 .T h i sl o c a t i o ni s a z e r ob y t e ,o r aB R Ki n s t r u c t i o n .

W i t he v e r yI R Q , t h em a c h i n ew i l lb r e a k ,t h e ns h o o to v e rt o y o u r

c o d e . C l e a n ,s i m p l ea n da p r e t t yn e a tt r i c k t ok n o w .A n da l lS A V E s

a n dL O A D sf r o md i s kw i l lg o o f fw i t h o u ta f l a w .

O n ef i n a lw o r do n t h e I R Q .I f a l l e l s ed o e s n ' ti n t e r e s ty o ut h e n

p o i n t t h en o r m a lI R Qv e c t o r 3b y t e sf o r w a r dt o d i s a b l e t h eS T O P

k e y .P r e t t yb o r i n g ,b u tw h a tt h eh e c k ,i t w o r k s .

# O 3 B r e a kI n t e r r u p tV e c t o r

A s m e n t i o n e da b o v e ,t h eB R Kv e c t o rc a nh e l py o uo u tw i t hy o u r

I R Qd r i v e nw o n d e r .B u ti t a l s oc a nb e u s e df o ra f e wo t h e rt h i n g s .

O f t e n ,w h e nt r y i n gt o b r e a k p r o g r a m s , b r e a kp o i n t s a r ed e s i r e da t

s p e c i f i cs p o t st o c h e c kh o wc e r t a i na c t i v i t i e sa r e g o i n g .F o rt h i s ,a

B R Ki n s t r u c t i o nw i l l b e p l a c e di n t h e m a c h i n ec o d ef o r t h e

p r o g r a mt o B R Ki n t ot h em a c h i n el a n g u a g e m o n i t o rw h e ne n c o u n

t e r e d ,o r b a c ki n t oB A S I Cm o d ew i t ht h eC 6 4a n dV I Cu n l e s sa

m o n i t o ri s i n o p e r a t i o n .A t o t h e rt i m e s ,e v e nw h e nt h ep r o g r a m

h a sb e e np r o t e c t e dt o t h eh i l t ,i t c a n b em a d et o c r a s h .T h ef i r s t

t h i n gt h a ta 4 . 0h a c k e rw i l lu s u a l l yd o i s b r e a ki n t ot h em a c h i n e

l a n g u a g e m o n i t o rt o l o o ka t t h e c o d e ,o r s a v ee v e r y t h i n gf o r l a t e r

v i e w i n g .P o i n tt h eB R Ki n t e r r u p tv e c t o ra t r e s e t :

$ F D 1 6 ( L / H= 2 2 / 2 5 3 )f o r4 . 0B A S I C

$ F C E 2( L / H= 2 2 6 / 2 5 2 )f o rt h eC 6 4& V I C

E v e r yt i m ea B R Ki s e n c o u n t e r e d ,t h ec o m p u t e rw i l lr e s e tt o a c o l d

s t a r t .D i r t yp o o l ,b u tw h ym a k el i f ef o ra h a c k e re a s y .

# 0 4N M II n t e r r u p tV e c t o r

H o o k e du p t o m y8 0 3 2i s a l i t t l ed e v i c ec a l l e dt h eb r e a kb o x .J i m

B u t t e r f i e l da n da f e wo t h e r sh a v e b e e nt a l k i n go f t h i sl i t t l ew o n d e r

f o ry e a r s .W i t ht h eb r e a kb o x y o uc a ns t o p ap r o g r a mi n i t s p a t h

a n dg o t o R E A D Ym o d e . O r y o u h a v eo n em o r eo p t i o n ,a t l e a s t

w i t hm y p a r t i c u l a rm o d e l .Y o uc a n b r e a kd i r e c t l yi n t ot h e 4 . 0

m o n i t o r ,w i t h o u td i s t u r b i n gt h ep r o g r a mi n t h el e a s t .W e l l ,f o rt h e

f i r s ta c t i o no f b r e a k i n gi n t oR E A D Ym o d e ,t h e r ei s a c u r e .P o i n tt h e

N M Iv e c t o ra t r e s e t( s e ea b o v e ) .W h e na n a t t e m p ti s m a d et o b r e a k

t o R E A D Ym o d e , y o uw i l lb e m e tw i t ha c o l ds t a r t o ft h ec o m p u t e r .

A p r e t t ys i m p l ew a yt o d e t e r af e wh a c k e r s .

# O 5O P E NV e c t o r

T h i sv e c t o ri s o n l ya c c e s s i b l eb y t h o s e w i t he i t h e rt h eC 6 4o r V i c

2 0 ,w h i c hi s a r e a ls h a m ef o ra l lt h e 4 . 0 u s e r s r e a d i n g .C o m m o d o r e

r e a l l yh a dt h e i rh e a d s s c r e w e do n s t r a i g h tt h ed a yt h e y i n t r o d u c e d

n e a tv e c t o r sl i k et h i s .T o c o n f u s et h e h e c ko u to f p i r a t e se v e r y

w h e r e ,c h a n g et h em e a n i n go f O P E Nw i t h i ny o u r p r o g r a m .P o i n ti t

a t a n y t h i n gt h a ty o u f e e ll i k e ,a n dw a t c ht h e c o n f u s i o n g r o w .

I m a g i n eL O A D i n gi n a p r o g r a mw i t ha s i m p l e :

O P E N5 , 8 , 5 , "p r o g r a mn a m e "

T h eT r a n s a c t o r 4 5 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 48/84

r

F l i pt h eL O A D / V E R I F Yf l a ga n dt r yi t . I ts e e m st o w o r k .I f a l l e l s e

d o e sn o ta p p e a lt o y o u ,p o i n t t h eO P E Nv e c t o ra t r e s e tw h e nn o ti n

u s e .M i g h t n e v e r b eu s e d , b u tw h yn o t .S o m eh a c k e rm a yu s ea

t e c h n i q u ei n v o l v i n gt h e - O P E Ns t a t e m e n t ,o f w h i c ha c o l ds t a r t

w o u l dc o m ea s as u r p r i s e .

# 0 6C L O S EV e c t o r

A sw i t ht h eO P E Nv e c t o r ,t h eC L O S Ev e c t o ri s a l s o l i m i t e dt o t h o s e

w i t he i t h e rt h eC 6 4o r V I C .T h es a m et e c h n i q u e s a p p l yw i t ht h i s

v e c t o ra s w a sw i t ht h eO P E Nv e c t o r ,s o c l o u dt h ei s s u ea l i t t l ew h e n

u s i n gt h i so n e a n dp o i n ti t t o e v e r y t h i n gb u tw h a ti t r e a l l yi s . A s 1

h a v es a i d b e f o r e ,i f a l le l s ef a i l s ,p o i n ta t r e s e tw h i l en o ti n u s e .

# 0 7I N P U TV e c t o r

T h i si s a f a v o u r i t eo f m i n e .P l a c et h e f o l l o w i n ga u t or u n c o d e

s o m e w h e r ei n m e m o r y ,a n dp o i n t t h e i n p u tv e c t o ra t i t o n c ei n

p r o g r a m m o d e . A sl o n ga s y o ud o n o t u s ea n I N P U Ts t a t e m e n t

a n y w h e r ei n y o u rp r o g r a m ,t h i sb i t o f c o d ew i l ln o tb e e x e c u t e d

u n t i ly o uh a v eg o n eb a c kt o R E A D Ym o d e .O n c et h a th a p p e n s ,t h ec o d ei s e x e c u t e da n dy o u rp r o g r a mw i l lb e r e - r u na l l o v e ra g a i n .

T e r r i f i ci f s o m e o n ei s t r y i n gt o c r a s hy o u r p r o g r a m ,o r y o ud o n ' t

w a n t a n y o n et o s e ey o u rp r o g r a mc r a s h .K e e pt h i sc o d ei n m i n d

w h e nt h i n k i n ga b o u tr e - r o u t i n gs o m eo f t h e o t h e rv e c t o r st o o .J u s t

i m a g i n et h ec o n f u s i o nl e v e li f e v e r ym o v et h ep i r a t em a k e sc a u s e s

t h ep r o g r a mt o r e - r u n .

A n o t h e ru s ef o rt h i sv e c t o ri s t o p o i n ti t a t r e s e t ,a s I h a v eb e l a b o r e d

w i t he v e r yv e c t o rs o f a r .T h em o m e n ty o u rc o m p u t e rg o e sb a c k

i n t oR E A D Ym o d e ,t h em a c h i n ew i l le x e c u t ea c o l ds t a r t .I t ' sm e a n ,

b u ti t w o r k s .

* * ♦A u t oR e - R u n C o d eF o r4 . 0B A S I C ,C 6 4a n d V I C2 0 * * *

l o b a s

l o v a l

l o b a s

l o v a l

h i b a s

h i v a l

h i b a s

h i v a l

h i v a l

l o v a r

l o v a r

h i v a r

h i v a r

l o e n d

l o e n d

h i e n d

h i e n d

c l r

c l r

c l r

f i x

f i x

f i x

c o n t

c o n t

$ 0 1

$ 2 b

$ 0 1

$ 2 9

$ 0 4

$ 2 c

$ 0 8

$ 1 0

$ 2 a

$ 2 d

$ 2 b

$ 2 e

$ c 9

$ a e

$ c a

$ a f

$ b 5 e 9

$ a 6 5 9

$ c 6 5 9

$ b 4 b 6

$ a 5 3 3

$ c 5 3 3

$ b 7 4 a

$ a 8 5 7

; 4 . 0b a s i c - l o w

; 4 . 0b a s i c -l o w

; c 6 4& v i e

; c 6 4& v i e( d e f a u

; 4 . 0b a s i c- h i g h

; 4 . 0b a s i c -h i g h

; c 6 4& v i e

; c 6 4( d e f a u l t )

; v i c( d e f a u l t )

; 4 . 0b a s i c- l o w

; c 6 4& v i e

; 4 . 0b a s i c -h i g h

; c 6 4& v i e

; 4 . 0b a s i c - l o w

; c 6 4& v i e

; 4 . 0b a s i c- h i g h

; c 6 4& v i e

; 4 . 0b a s i c -r e s e t

; c 6 4

b y t es t a r to f b a s i c

b y t e v a l u eo f s t a r to f b a s i c

I t )

b y t es t a r to f b a s i c

b y t ev a l u eo f s t a r to f b a s i c

b y t es t a r to f v a r i a b l e

b y t es t a r to f v a r i a b l e

b y t ee n do f p r o g r a m

b y t ee n do f p r o g r a m

b a s i ca n dp e r f o r m' c l r '

; 4 . 0b a s i c -f i xc h a i n i n g

; c 6 4

: v i c

; 4 . 0b a s i c- p e r f o r m' c o n t '

; c 6 4

c o n t = $ c 8 5 7; v i c

; * * *a u t or e - r u n w i t hr e s e t o fs t a r to f b a s i c * * *

I d a* l o v a l; r e s e t s t a r to f b a s i ct o n o r m a l

s t a l o b a s

I d a * h i v a l

s t a h i b a sI d a l o e n d; r e s e te n do f p r o g r a m / s t a r to f v a r i a b l e s

s t a l o v a r

I d a h i e n d

s t a h i v a r

j s r c l r ; r e s e tb a s i ca n d d o' c l r '

j s r f i x ; f i xc h a i n i n g

j m p c o n t; p e r f o r m' c o n t '

# 0 8O U T P U TV e c t o r

T h eO U T P U Tv e c t o ri s a n o t h e rv e r s a t i l ev e c t o rt h a tc a nb e u s e df o r

a l l s o r t s o ff u n c t i o n s .F o re v e r yk e yt h a ti s p r e s s e do n t h e k e yb o a r d ,t h eO U T P U Tv e c t o ri s u s e d .F o rm a n yo f y o u rd i s ko p e r a

t i o n s ,t h eO U T P U Tv e c t o ri s a l s ou s e d . P o i n tt h i sv e c t o ra t t h ec o d e

o f y o u rc h o i c e ,m a k es u r et h a tt h ec o d ei s n o tt o ov e r b o s e ,s a v e

a n dr e t r i e v ea l lc o r r u p t e dr e g i s t e r so n t h es t a c k ,a n da n a l t e r n a t i v e

t o C H R G E Tp r o t e c t i o nh a sb e e nf o u n d .T h o s eo f y o uw i t hP E T sa r e

e x c l u d e df r o mt h i so n et h o u g h .I t s e e m sC o m m o d o r ew a s n ' tt h a t

b r i g h tw h e nt h eP E Te v o l v e d , b u ta d a p t e dl a t e r f o ra l l t h eo t h e r s .

F o ra l la r o u n du s e ,t h i so n ei s a p l e a s u r et o u s e .F e wp e o p l ek n o w

o f i t se x i s t e n c e ,s o w h yn o tu s et h i s f a c t o rt o y o u ra d v a n t a g e .

# 0 9T e s tS T O PV e c t o r

A g a i n ,a n o t h e rp o i n ts c o r e df o rC 6 4& V I Cu s e r s .O n em o r ev e c t o r

t h a tt h eP E T / C B Mo w n e r sd r o o lt o h a v e . T h i s v e c t o r a l l o w sy o ut o

d i s a b l et h eS T O Pk e y :

P O K E8 0 8 , 2 3 9

. . . d i s a b l et h eR U N / S T O P - R E S T O R Ec o m b o :

P O K E8 0 8 , 2 2 5

. . . o r w h a t e v e ry o uc a nf i n dt o d i s a b l ew h e nr u m m a g i n ga b o u t

t h r o u g ht h e c o d e .A g a i n ,a s 1 h a v e m e n t i o n e de a r l i e r ,d e v e l o p

s o m er e a l l yi n t e r e s t i n gc o d ef o r y o u rp r o t e c t i o n ,t h e np o i n ta

v e c t o ra t i t . T h i so n e i s a s g o o da s y o uw i l lp r o b a b l yf i n d ,s o

c o n s i d e ri t w h e nl o o k i n gf o ra n e wa n d i m p r o v e dv e c t o rt o t a k e

a d v a n t a g eo f .

# 1 0G E TV e c t o r

A n o t h e rv e c t o ry o uC 6 4a n dV I Co w n e r sh a v eo v e rt h er e s to f t h e

w o r l d ,a n da p r e t t yg o o dl i t t l eb e a s tt o h a v e o ny o u rs i d e .A s y o u

p r o b a b l y k n o w ,G E Ti s a B A S I Ck e y w o r d ,a s s o c i a t e dw i t ha

c o m m a n dt o G E Tc h a r a c t e r sf r o ms o m ed e v i c eo r a n o t h e r , u s u a l l y

t h ek e y b o a r d .P o i n tt h i sv e c t o ra t s o m ei n g e n i o u sp r o t e c t i o n c o d e ,

a n dw a t c ha s t h ec o d ei s e x e c u t e d e v e r yt i m ey o ua t t e m p tt o G E T

a n y t h i n gw i t h i ny o u rp r o g r a m .A s n e a k ya n d u n d e r h a n d e dw a yt o

b r i n ga p i r a t et o h i sk n e e s , b u tw h or e a l l yc a r e s .I t sy o u rp r o g r a m ,

T h eT r a n s a c t o r 4 6 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 49/84

s o w h yn o tt r y t ok e e pi t t h a tw a y .

# 1 1L O A DL i n k

A d dt h i so n et o t h e C 6 4 / V I Cr e s u m e ,f o r t h e P E T / C B Mo w n e r s

h a v e b e e nl e f ti n t h e c o l do n c ea g a i n .W i t h o u tf l o g g i n ga d e a d

h o r s ea n ym o r et h a nn e c e s s a r y ,c h a n g et h i sl i n ka d d r e s st o p o i n t

e l s e w h e r ea n d y o um a yb e a b l et o c o n f u s em a n yw h op e e ki n t ot h el o w e rr e c e s s e so f y o u rc o d e .U s ey o u ri m a g i n a t i o na n d y o uw i l lb e

s u r p r i s e da s t o t h en u m b e ro f t r i c k st h a tc a n b e p e r f o r m e dw i t hj u s t

a f e wv e c t o r sa n da c o u p l eo f k n o w l e d g a b l ep r o t e c t i o nr o u t i n e s .

# 1 2S A V EL i n k

T a k ea p e e ku p a b o v e a n dr e a da g a i n ,t h i st i m er e m e m b e r i n gt h a t

w e a r ed i s c u s s i n ga d i f f e r e n t v e c t o r .P E T / C B Mo w n e r s h a v e o n c e

a g a i nb e e ng i v e nt h e d i r t ye n do f t h es t i c k ,w i t ht h eC 6 4& V I C

p e o p l ec o m i n go u t w i t ha n o t h e rw i n n e r o nt h e i r s i d e .U s ei m a g i n a

t i o na n dp l e n t yo f r a w ,b r u t es p u n k ,a n dw a t c ha s t h eh a c k e r sf a l l

a s i d et o t h ep o w e ro f y o u rc o d e .S c i e n c ef i c t i o nw r i t i n gh a sa l w a y s

b e e na s e c r e ta m b i t i o no f m i n e .

# 1 3P O I N T E R :S t a r tO f B A S I C

E x e c u t i n gB A S I Ca t a d i f f e r e n tl o c a t i o no t h e rt h a n n o r m a li s a n

i n t e r e s t i n gw a yt o c o n f u s ea m o r o n i cp i r a t e .L O A Di n y o u r n o r m a l

p r o g r a m ,c h a n g et h eS t a r to f B A S I C ,t h e nc h a i ni n t h en e x ts e c t i o n

o f c o d e .E x e c u t i o nw i l lb e i m m e d i a t e ,a n dc o n f u s i o nw i l ls u d d e n l y

r u n r a m p a n t .I n t h i sw a y ,y o uc o u l dh a v en u m e r o u sp r o g r a m si n

m e m o r ya t t h es a m et i m e ,a l l s t a c k e da b o v ee a c ho t h e r w i t he a c h

p e r f o r m i n ga s p e c i f i cf u n c t i o n .I f b r o k e n , o n l yo n es e c t i o nw o u l d

e a s i l yb e v i e w e d .A t e c h n i q u et h a t i s r a t h e ru n o r t h o d o x ,b u t

l o g i c a lc o n s i d e r i n gt h ec i r c u m s t a n c e s .

# 1 4P O I N T E R :T o pO f M e m o r y

A sm o s ta l r e a d yk n o w ,l o w e r i n gt h e t o po f B A S I Cm e m o r yw i l lg i v e

y o ua p l a c et o s t o r ea d d i t i o n a lc o d ew h e r ei t c a n ' tb e d i s t u r b e d .

A l t e rt h e s e p o i n t e r st o a n y w h e r e y o ul i k e ,a n d y o uc a nm i xa g o o d

p r o p o r t i o no f B A S I Ca n dm a c h i n ec o d et o g e t h e ri n h a r m o n y .

# 1 5N u m b e rO f C h a r a c t e r sI n K e y b o a r dB u f f e r

F o rs o m ea u t o b o o tr o u t i n e s ,t h i so n ei s t e r r i f i c .A f e wi s s u e sb a c kI

w r o t ea n a r t i c l ea b o u tu s i n g t h ek e y b o a r db u f f e ra n dt h i sl o c a t i o n

f o ra n e a s y b o o tt e c h n i q u e .T h et e c h n i q u ei s v e r yf a s ta n ds i m p l e

a n da p l e a s u r et o s e ei n a c t i o n .O n c et h ep r o g r a mk n o w sw h a ti s t o

b e d o n e ,p r i n tt h e a c t i o n sr e q u i r e do n t h e s c r e e ni n c a l c u l a t e d

p o s i t i o n s .P o k ec a r r i a g er e t u r n c h a r a c t e r s( C H R $ ( 1 3 ) )i n t ot h e

k e y b o a r db u f f e rt o c o i n c i d ew i t ht h es c r e e nc o n t e n t s ,t h e np o k e

t h en u m b e ro f c h a r a c t e r s p r e s e n t l yi n t h ek e y b o a r db u f f e ri n t ot h i s

l o c a t i o n .T h en e x ts t e pi s t o E N Dt h e p r o g r a m .T h ek e y b o a r d

b u f f e rw i l lt a k eo v e r f r o mt h e r et o d o w h a te v e ry o u h a v er e

q u e s t e d .A n i c es l e i g h to f h a n d .

# 1 6M a x i m u mS i z eO f K e y b o a r dB u f f e r

T h i sl o c a t i o ni s o n e w h i c hc a nc o m ei n v e r yh a n d y . N o r m a l l ys e t

t o a l l o w 1 0c h a r a c t e r si n t ot h eb u f f e ra t a m a x i m u m ,y o uc a na l t e r

t h i s f o ra n yv a l u eu p t o 2 5 5 . A l t e rt h i sl o c a t i o nt o a n yv a l u ey o u

c a r eb e f o r ee x e c u t i n gr o u t i n e st h a t r e q u i r ea n i n p u tf r o mt h e

k e y b o a r d ,t h e nd o w nt o 0 o n c et h e r o u t i n eh a sr e c e i v e da l l t h a ti t

w a n t s .I f t h ep r o g r a me v e r c r a s h e sf o rw h a t e v e rr e a s o n ,w h a tg o o d

w o u l di t d o a n y o n e ?T h ek e y b o a r dh a sb e e ne f f e c t i v e l yt u r n e do f f ,

t h u ss t o p p i n gt h e c o d es n o o pi n h i s t r a c k s .S n e a k ya n d v e r y

r e a s s u r i n gt o u s e .

# 1 7E r r o rM e s s a g eL i n k

A p r o g r a m m e rt h a tI k n o w ,B r i a nM u n s h a w ,d e v e l o p e da n i n g e

n i o u sm e t h o do f u s i n gt h i sl i n kt o h i sa d v a n t a g eo n t h eC o m m o

d o r e6 4 .H e h a sd e s i g n e da f a b u l o u s g r a p h i c s p a c k a g e ,b u t d i dn o t

w a n tt o u s eC H R G E Tt o c h e c kf o r h i s s p e c i a lk e y w o r d s . U s i n g

C H R G E Tw e d g e sq u i t e o f t e ns l o w sd o w nB A S I Ce x e c u t i o na l i t t l e

b i t t o om u c h w h e nh e a v yc h e c k i n gi s r e q u i r e d .B r i a nd e s i g n e da

l i t t l eb i t o f c o d et h a ti s p o i n t e dt o b y t h e e r r o rm e s s a g el i n k .

N o r m a l k e y w o r d sw i l ln o t g e n e r a t ea n e r r o r ,b u t p r e t t ym u c h

e v e r y t h i n ge l s ew i l l .T h i sc o d e c h e c k st h e e r r o rg e n e r a t e dt o s e ei f

i t w a si n t h er a n g eo f o n eo f t h en e wk e y w o r d s ,o r j u s ta n o r d i n a r y

e r r o rb y s o m es p a s t i cp r o g r a m m e r .I f t h e e r r o rw a s t h e n e w

k e y w o r d sf a u l t ,t h e nt h ec o d ew i l lb r a n c ht o t h er o u t i n et o h a n d l ei t . F o rn o r m a le r r o r si t w i l lj u m pt o t h en o r m a le r r o rp r o c e s s i n g

r o u t i n e . P r e t t yt e r r i f i c ,a n da l s oa g r e a tw a yt o d e s i g np a c k a g e st h a t

w i l lc o n f u s em a n yp e o p l e .D e s i g n y o u ro w nl a n g u a g ef o r y o u r

p r o g r a m ,a n di n c o r p o r a t es o m ep r o t e c t i o nt e c h n i q u e si n t ot h e

l a n g u a g e .T h e w o r kr e q u i r e dt o f i x y o u rp r o g r a m u p w o u l db e

m o r et h a nm o s th a c k e r sw o u l d w a n tt o a l l o c a t e .

# 1 8M o n i t o rE x t e n s i o n V e c t o r

T h i sv e c t o ri s u s e do n l yo n 4 . 0 B A S I C m a c h i n e sb y u t i l i t i e st h a t

e x t e n dt h e m a c h i n el a n g u a g e m o n i t o rw i t he x t r ac o m m a n d s .

C h a n g et h i so n et o r e s e t ,$ F D 1 6 ,a n de v e ni f y o uh a v em i s s e da

f e wo f t h ep i r a t e s s p i e s ,t h em o m e n tt h e yt r y t od i s a s s e m b l ey o u r

c o d e , o rw h a te v e re l s et h e yh a v ep l a n n e dw i t ht h e i re x t e n d e d

m o n i t o r ,t h ec o m p u t e rw i l lj u m pt o a c o l ds t a r t .F o rt w op o k e s ,n o t

b a d .

T h e r ea r em a n ym o r eP O K E st h a ta r ea s y e ts t i l li n h i d i n g ,a n dw i l l

r e m a i ns o f o rt h eb a l a n c eo f t h i s i s s u e .B ys t r e t c h i n gt h i s a r t i c l eo n

t o ol o n gi n t h i sa r e a ,m a n yo t h e rp o i n t sw o u l dh a v et o b e s k i p p e d .

I n f u t u r ei s s u e sw e w i l lb e p r i n t i n gn e wa n d i m p r o v e dP O K E st o

a d dt o t h i sc o l l e c t i o n .

A n dn o w ,D O St r i c k sa n do t h e rs h e n a n i g a n st o f u r t h e ri n f l a m et h e

b o i l so f i r a t ep i r a t e sw o r l d w i d e .

P l a y i n gT r i c k sW i t hD O S

T h ed i s k d r i v es h o u l d b ec l a s s i f i e db o t ha s a t o o la n da t o y ,a t l e a s t

f o rm e .T h e s ev e r s a t i l el i t t l ec o n t a i n e r so f b r i l l i a n c ec a nl i v e nu p

e v e nt h ed u l l e s to f d a y s ,a n dm a k et h ea v e r a g ep r o g r a ms i n gw i t h

d e l i g h t .N o to n l yc a ny o ut e l lt h e d r i v et o m a k e s o m ep r e t t yo b t u s e

m a n e u v e r s ,b u ty o uc a na l s ot e l lt h e d i s kt h a ti t e n j o y sw h a ti s

h a p p e n i n g .I n t h i sw a y ,y o uc a nl e t f l yw i t ha f e ws m o k eb o m b s

e v e nt h em o s ta s t u t eh a c k e rc a n ' ts e et h r o u g h .T h i si s w a r , s ol e t

t h e mh a v ei t w i t ha l ly o ug o t !

K e e pi n m i n dt h a tm u l t i p l e s t a c k i n go f d i s k p r o t e c t i o nt r i c k sc a n b e

o f g r e a tb e n e f i ti n t h ef i n a lo u t c o m eo f t h i sw a r .

T h eT r a n s a c t o r 4 7 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 50/84

C h a n g eB l o c kC o u n tO f F i l e s

Y o uc a np h y s i c a l l yc h a n g et h e b l o c kc o u n to f f i l e so n d i s k ,a n d

c o n f u s et h e h e c ko u t o f p e o p l ew h oc o p y y o u rf i l e s .T h e yw i l l

n e v e r b e c o m p l e t e l ys u r ei f t h e yg o tt h er i g h tf i l e ,o r t h ec o m p l e t e

f i l e .T h e r ew i l la l s ob e t h ec h a n c et h a tt h e yw o u l dn e v e rl o o ka t a

s m a l lf i l ew h e nt h e ya r e t r y i n gt o l o c a t et h e m a i np r o g r a m .T o

c h a n g et h e b l o c kc o u n t ,l o o ki n t h e d i r e c t o r y t r a c ko f t h e d i s k .

H e l di n l o w / h i g hb y t ef a s h i o n ,t h e ya r e t h el a s tt w ob y t e si n t h e

f i l e sd i r e c t o r ye n t r y .A n y t h i n gf r o m0 t o 6 5 5 3 5i s a c c e p t a b l e .

I f a n e a s i e rr o u t ei s d e s i r e dt o c h a n g et h eb l o c kc o u n t ,t a k ea p e e k

t h r o u g ht h i si s s u ea n d y o ua r eb o u n dt o t r i po v e ra p r o g r a mI w r o t e

t o c h a n g et h e b l o c kc o u n to f f i l e s ,s c r a t c hp r o t e c tf i l e s ,a n d

b a c k - u pp r o t e c ty o u rd i s k e t t e s .A n o t h e ru t i l i t y ,D i s k M o d ,w i l lh e l p

y o u d ot h es a m et h i n g ,b u ti t ' sa s l i t t l el e s sa u t o m a t i c .

R e - D i r e c tT r a c k& S e c t o r P o i n t e r s

O f F i l e sB a c kU n t oT h i n eS e l f

F o ra b i to f f u nw i t hy o u rd i s k , f o u lu p a c o u p l eo f f i l e si n t h i sw a y .

F i l e sa r eh e l do n d i s kw i t h t h ef i r s tt w ob y t e so f e a c hb l o c ka s t h e

p o i n t e rt o t h en e x t b l o c ko f d a t a .B yc h a n g i n gt h i sp o i n t e rt o p o i n t

b a c kt o o n eo f t h e b l o c k sp r i o r ,c o p y i n gf i l e sc o u l db e s o m e w h a t

t e d i o u sa t b e s t .A C O P Yc o m m a n dw o u l dg o f o r e v e r .

F r o mp r o g r a mm o d ey o uc o u l dd o a f e wt h i n g st o c o m p e n s a t e .

R e a da s p e c i f i cs e c t i o no f t h ef i l ei n o n eb y t ea t a t i m e ,t h e nc l o s e

u p t h e f i l e .O r y o uc a nw r i t et o t h e d i s kt o r e s e tt h e p o i n t e r s

c o r r e c t l y ,L O A Di n t h ep r o g r a m ,t h e nr e s e tt h ep o i n t e r sb a c ki n

y o u rs t r a n g ef a s h i o n .A h a c k e r sn i g h t m a r ei s b o r n .

L O A DA n dS A V EP r o g r a m sI n A N o v e lW a y

W h e np r e p a r i n gt h i sa r t i c l eI w a si n d e c i s i v ew h e t h e rt o l e t y o u

k n o wt h i s l i t t l eg e mo f p r o t e c t i o n .T h en u m b e ro f p e o p l ew h o

k n o wo f i t i s a m y s t e r yt o m e ,b u tI d o k n o wi t t o b e a c a r e f u l l y

g u a r d e da m o n gt h o s ew h oh o l dt h e s e c r e t .T h ep u r p o s eo f o u r

m a g a z i n ei s t o e d u c a t e ,s o l e t sp e e ki n t ot h i so n e a n db e c o m e

e d u c a t e d .

P r o g r a mf i l e sc a n b e s a v e dt o d i s ka s S E Qo r U S Rf i l e s ,w i t h t h e

r i g h tt e c h n i q u e .T h e s es a m ef i l e sc a nt h e nb e L O A D e db a c ki n t o

m e m o r ya n dr e - e x e c u t e da s P R Gf i l e s .

T o S A V Ea p r o g r a mf i l ea s a s e q u e n t i a lf i l et r yt h i s:

s a v e " O : f i l e n a m e , s ", 8

T o L O A Dt h es a m ep r o g r a mb a c ki n a s a p r o g r a mf i l e :

l o a d " 0 : f i l e n a m e , s " , 8

T h ef i l ew i l la p p e a ro n t h ed i r e c t o r y a sS E Q ,b u ti t w i l lr e a l l yb e

P R G . T oS A V Ea n dL O A DU S Rf i l e s ,s u b s t i t u t ea ' u ' i n s t e a do f t h e ' s '

i n t h ea b o v ee x a m p l e s .

M a k eD i s kN o n B A C K U P a b l e

A s s t a t e de a r l i e r ,t h e r ei s a p r o g r a mt o b e f o u n di n t h i si s s u et h a t

w i l lp e r f o r mt h i s t r i c kw i t hy o u rd i s k e t t e s .I t w i l la l l o wy o ut o

p r o t e c ty o u rd i s kf r o mr e g u l a r d u p l i c a t i o n .N o to n l yt h i s ,b u ty o u

c a n n o tS C R A T C Hf i l e s ,S A V Et o t h ed i s k o rR E N A M Ea n yf i l e sf o r

a l l t i m et h e r e a f t e r .T h e o n l yt r o u b l ei s t h a t C O P Y i n gi s s t i l l

a l l o w e d , b u tw e ' r ew o r k i n go n i t .

O nt h e d i s ks u r f a c e ,t h e r ea r em a r k e r sc a l l e dD O SV e r s i o nI d e n t i f i

e r s .T h e s el i t t l eb e a s t st e l l t h e d r i v ew h a tv e r s i o no f D O St h e

d i s k e t t ew a sf o r m a t t e do n .B ya l t e r i n gt h e s eb y t e s ,t h ed r i v ew i l lb e

f o o l e di n t ob e l i e v i n gt h a tt h e d i s ki s w r o n gf o ri t . F o ra 1 5 4 1/ 2 0 2 1/

4 0 4 0d i s k e t t e ,t h ei d e n t i f i e ri s a 6 5 d e c i m a l ,o r $ 4 1 .I t i s l o c a t e do n

t r a c k1 8 ,s e c t o r0 a s t h et h i r db y t ef r o mt h es t a r t .C h a n g et h i st o

w h a te v e ry o ul i k e ,a n dy o u rd i s kw i l lb e c o m ea n a l i e n .

O nt h e8 0 5 0 / 8 2 5 0d r i v e s ,t h eD O SV e r s i o nI d e n t i f i e ri s l o c a t e do n

t r a c k3 8 ,w i t hb o t hd r i v e su s i n gs e c t o r s0 a n d3 , a n dt h e8 2 5 0a l s o

u s i n gs e c t o r s6 a n d9 . T h en o r m a lb y t ev a l u ei s 6 7 d e c i m a l ,o r $ 4 3 ,

a n di s a l s ot h et h i r db y t ef r o mt h es t a r t .C h a n g et h i sa n i m a lt o

w h a t e v e r y o ul i k e ,a n d w a t c ht h eh a c k e r s s w e a tj u s ta l i t t l em o r e .

N o wI a m g o i n gt o p o pt h e b u b b l et h a tw a sj u s tc r e a t e d .W h i l e

p o u r i n go v e rs o m em a p st h a tI h a v eb e e np r e p a r i n go n t h e d i s k

d r i v e s ,I c a m eu p w i t ha t e c h n i q u et o b a c k u pa b a c k u pp r o t e c t e d

d i s k . A l l t h a ty o u d oi s t e l lt h e d r i v et h a ti t r e a l l yi s a s s t r a n g ea s t h e

d i s ks a y si t i s .T h e ny o uc a nw r i t et o t h ed i s k ,S C R A T C H , S A V Ea n d

B A C K U P .P e r f o r m e d f r o mw i t h i np r o g r a m m o d e , y o uc o u l dc o n

t r o lj u s tw h a ta c t i v i t yi s t a k e n w i t hy o u rd i s k s .T h ec o d ei s a s

f o l l o w s .

1 0 i d = a s c i iv a l u eo f n e wD O Si d e n t i f i e r

2 0 o p e n1 5 , 8 , 1 5

3 0 p r i n t # 1 5 , "m - w "c h r $ ( 1 5 9 ) c h r $ ( 1 6 ) c h r $ ( 1 ) c h r $ ( i

4 0 c l o s e1 5

T h i sc o d ew o r k sf o r4 0 4 0 ,8 0 5 0 a n d 8 2 5 0d r i v e s .F o rt h e o t h e r s ,

e x c u s em e b u tI h a v e n ' tc o m eu p w i t ht h ec o d ey e t .M a y b ei n a

f u t u r ei s s u e .

C h a n g eF i l eT y p eO nD i s k

T h i st e c h n i q u e ,t h o u g hn o t o n et h a ts h o u l db e e n c o u r a g e d b y

a n y o n eb u t a p e r s o nb e n to n t h e d e s t r u c t i o no f a l l h a c k e r s ,i s

p r e t t yi n v e n t i v et o s a yt h el e a s t .C o n f u s i n gt h eh e c ko u to f a h a c k e r

i s e x a c t l yw h a tt h e f o l l o w i n gw i l ld o .B e l o w1 h a v ep r e p a r e da c h a r t

w i t hd i s km a s s a g i n gt r i c k s .

H E X D e s c r i p t i o n

$ 0 0 U n c l o s e dD E LF i l e( * )

$ 0 1 U n c l o s e dS E QF i l e( * )

$ 0 2 U n c l o s e dP R GF i l e( * )

$ 0 3 U n c l o s e dU S RF i l e( * )

$ 0 4 U n c l o s e dR E LF i l e( * )

$ 8 0 C l o s e dD E LF i l e

$ 8 1 C l o s e dS E QF i l e

$ 8 2 C l o s e dP R GF i l e

$ 8 3 C l o s e dU S RF i l e

$ 8 4 C l o s e dR E LF i l e

$ 8 8 C l o s e dD E LF i l e- f o u l e du p f i l e t y p ed e s c r i p t i o n-

c o p y sa s D E L

$ 8 9 C l o s e dS E QF i l e- f o u l e du p f i l et y p ed e s c r i p t i o n-

c o p y sa s S E Q

T h eT r a n s a c t o r 4 8 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 51/84

$ 8 a C l o s e dP R GF i l e- f o u l e du p f i l e t y p ed e s c r i p t i o n-

c o p y sa s P R G

$ 8 b C l o s e dU S RF i l e- f o u l e du p f i l et y p ed e s c r i p t i o n-

c o p y sa s U S R

$ 8 c C l o s e dR E LF i l e- f o u l e du p f i l et y p ed e s c r i p t i o n- w o n ' t

c o p y

$ c O S c r a t c h P r o t e c t e d& C l o s e dD E LF i l e

$ c l S c r a t c hP r o t e c t e d& C l o s e dS E QF i l e$ c 2 S c r a t c h P r o t e c t e d& C l o s e dP R GF i l e

$ c 3 S c r a t c h P r o t e c t e d& C l o s e dU S RF i l e

$ c 4 S c r a t c h P r o t e c t e d& C l o s e dR E LF i l e

B i tR e p r e s e n t a t i o n s:

b i t 0 o f f = D E Lf i l e ,o n = S E Qf i l e

b i t s O & l b i t0 o f fa n db i t 1 o n = P R Gf i l e

b i t s O & l b i t0 o n a n db i t 1 o n = U S Rf i l e

b i t s0 , 1 & 2 b i t0 o f f ,b i t 1 o f fa n db i t2 o n = R E Lf i l e

b i t s3 - 5 n o tn o r m a l l y u s e d

b i t 6 o f f = n o r m a lf i l e/ o n = s c r a t c h p r o t e c t e df i l e

b i t 7 o f f = o p e nf i l e / o n = c l o s e df i l e

A s t h e c h a r t sa b o v es h o w ,t h e r ei s q u i t e ab i t t o b e l e a r n e d a b o u t

t h ed i s k e t t ei t s e l f .F o r y e a r sp e o p l eh a v eb e e nw a n t i n gt o s c r a t c h

p r o t e c tt h e i rf i l e s ,w i t ht h e b e s te x a m p l eb e i n gt e a c h e r si n s c h o o l s

w i t hh u n d r e d so f s t u d e n t s b e n to n f i l ed e s t r u c t i o n .C o m m o d o r e ,

w i t ht h e i r t y p i c a ls t r e a ko f b r i l l i a n c e ,h a v en e v e rb o t h e r e dt o t e l l

a n y o n em u c ho f a n y t h i n ga t a l l .W e l l ,f i l e sc a nb e s c r a t c h p r o t e c t e d

o n e v e r yv e r s i o no f D O Ss o f a r .T h et r i c ki s t o s e tb i ts i x o ft h ef i l e

t y p ei n d i c a t o ro n t h e d i r e c t o r y e n t r yo f t h ef i l e .O n c es e t ,a ' < ' w i l l

a p p e a rt o t h er i g h to f t h ef i l et y p e ,a n dt h ef i l ec a n n o t b es c r a t c h e d .

E v e r y t h i n ge l s ei s s t i l la l l o w e d t h o u g h . D o n ' ty o ut h i n kt h a tt h e

t i m e h a sc o m ef o r C o m m o d o r et o s t a r tl e t t i n gu s i n o n t h e

w o r k i n g so f t h e i rd r i v eu n i t s ?T h e yh a v en e v e ru s e dt h i sf e a t u r ef o r

a n y t h i n gw h a t s o e v e r ,b u tt h e yk n e wi t w a st h e r ea l l a l o n g .W h y

c o u l d n ' tt h e yl e ta f e wp e o p l ei n o n t h e i r s e c r e t ,a n dm a y b eb e n e f i t

a w h o l el o to f p e o p l ei n t h ep r o c e s s ?I l e a v ey o ut o f i l li n t h ea n s w e r

t o t h i so n e .

T h ef i l et y p e v a l u e so f $ 8 9t o $ 8 ba r eo f s p e c i a l i n t e r e s tt o m e .Y o u

c o u l ds a v ea P R Gf i l et o d i s k ,t h e nc h a n g et h ef i l et y p ed e s c r i p t i o n

o n d i s kt o a n y t h i n g f r o m$ 8 9t o $ 8 b .T h e s ef i l e sw i l ln o tL O A Di n

n o r m a l l y , b u t t h e yw i l lC O P Yc o r r e c t l y .F r o mp r o g r a mm o d ey o u

c o u l dC O P Yt h e f i l eo n d i s kf i r s tt o s o m e t h i n gl i k ea U S Rf i l e ,

L O A Dt h eU S Rf i l ei n a s P R G ,t h e nS C R A T C Ht h e r e c e n t l yc o p i e d

f i l e .I t i s a l o to f w o r k ,b u ti t w o u l dp r o v et o b e g o o d a r m o ra g a i n s t

t h ee v e ri l l u s t r i o u sh a c k e r .

C h a n g eH e a d e rA n dF i l e n a m e

T o F o u lU p D i r e c t o r y

F i l e n a m e sa n dh e a d e r sa r e o f t e nn o t t h o u g h to f t o f o u lu p t h e

h a c k e r .M o s tu s e r so f s o f t w a r en e v e rh a v et o d o a d i r e c t o r yo f t h e

d i s ka n y w a y ,s o w h yn o tt h r o wa f e wc u r v eb a l l s i nt h e d i r e c t o r y

d e p a r t m e n t .

B y c u r v eb a l l1 m e a na f e wp s e u d oc o n t r o l c h a r a c t e r s .T r yt h e

f o l l o w i n gh e a d e r m a n i p u l a t i o na n d1 a m s u r ey o uw i l lq u i c k l y

u n d e r s t a n dw h a t1 a m g e t t i n ga t .

F o r m a tA D i s k ,W i t hA T w i s t

1 0 f u $= c h r $ ( 1 4 1 )+ c h r $ ( 1 9 )+ c h r $ ( 1 9 )+ c h r $ ( 1 4 7 )

+ c h r $ ( 1 5 )+ c h r $ ( 1 4 3 )

2 0 o p e n1 5 , 8 , 1 5 ," n O : "+ " " + f u $ +" "

3 0 c l o s e1 5

F o r t h o s eo f y o uw i t ht h eC B Mm a c h i n e s ,y o uw i l lb e n e f i tm o s tf r o mt h i sd e m o n s t r a t i o n .N o t o n l yw i l lt h i sh e a d e r ,o n c e v i e w e d

t h r o u g ha c a t a l o g ,c l e a r t h e s c r e e n ,i t w i l la l s os e tt w ow i n d o w sa t

t h e t o pl e f th a n dc o r n e ro f t h es c r e e n .I n t h i sw a y ,o n c ea c a t a l o gi s

p e r f o r m e d ,t h e k e y b o a r dw i l la p p e a ru s e l e s s .T o r e m e d yt h e

s i t u a t i o n ,t o u c ht h eH O M Ek e yt w i c ei n a r o w .T h i sw i l lc l e a rt h e

w i n d o w sa n db r i n gy o u rc o m p u t e rb a c kt o l i f e .

T h er e a s o nf o rt h e f o u l e du p h e a d e ri s t h ef i r s tc h a r a c t e ri n s t r i n g

F U $ ,C H R $ ( 1 4 1 ) .O n t h ek e y b o a r dy o uc a n r e p r o d u c et h i so n ea s a

c a p i t a lr e v e r s e dM . I t i s t h ei l l u s t r i o u sc a r r i a g er e t u r n ,a n da l l o w s

y o ui n t oa w h o l en e ww o r l do f p r o g r a mf o u lu p s .I f y o uw e r et o

l o o ka t J i mB u t t e r f i e l d sS u p e rC h a r t ,n u m e r o u si n t e r e s t i n gc h a r a c

t e r c o m b i n a t i o n s c a nb e t h o u g h tu p t h a tw i l la l l o wy o ut o f o u lt h i n e h a c k e r .U s ey o u ro w ns p e c i a lc o m b i n a t i o n so f t h e s ec h a r a c

t e r s ,p r e c e d e da l w a y sb y C H R $ ( 1 4 1 )t o r o y a l l ym e s su p f i l e n a m e s

o n d i s k ,R E Ms t a t e m e n t si n B A S I Cp r o g r a m s , j a n dv a r i a b l e sw i t h i n

B A S I Cp r o g r a m s .Y o uc a n a l s oc h a n g et h e c o l o u ro f p r o g r a m

l i s t i n g sw i t ht h er i g h tc o m b oo f c h a r a c t e r s .F o rm o r ei n f o r m a t i o n

o n t h i sm a r v e l o u st e c h n i q u e ,r e a dJ e f fG o e b e l sc o l u m nt h i si s s u e .

J e f fd i s c u s s e sm e t h o d st o f u r t h e r p r o t e c ty o u rp r o g r a m sw i t h

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

Y e O l d e S t a n d b y e

O n ef i n a lt r i c k t op e r f o r mw i t hf i l en a m e si s t h e o l ds t a n db y .L o o k

b e l o wf o r a d i r e c t o r y e n t r yt h a tc a n b e y o u r sw i t ht h e r i g h t

c o m b i n a t i o no f k e yp r e s s e s .

6 7 " : f i l e n a m ep r g

T o g e t t h i s r e s u l t ,y o uh a v et o S A V Et h e p r o g r a mi n a l i t t l eb i t

d i f f e r e n tm a n n e r .T y p ei n :

S A V E " 0 :: f i l e n a m e " , 8

. . . b u tp r e s s t h e( s h i f t )k e yw i t h t h es p a c eb a rb e t w e e nt h e t w o

c o l o n s .T h i ss h i f t e ds p a c ew i l l f o o lt h e d i s ki n t ob e l i e v i n gt h a tt h e

f i l e n a m ei s f i n i s h e d ,a n dt h a ti t s h o u l dw r i t et h eb a l a n c eo u t s i d eo f

q u o t e s .T h i si s d u et o t h ef a c tt h a tf i l e n a m e sa r e s t o r e do n d i s k

p a d d e dw i t hs h i f t e ds p a c e s , c h r $ ( l6 0 ) ' s .I n c a s ey o u d on o ta l r e a d y

k n o w ,6 7 i s a n i m a g i n a r yb l o c kc o u n t .Y o u rb l o c kc o u n tw i l lb e

w h a te v e rs i z ey o u rp r o g r a mt a k e su p o nd i s k .

A n dA W a yA n dA W a yA n dA F i f eA n dD r u m

A r a t h e rh a s t yd e p a r t u r ef r o mt h eD O Sy o um i g h tf e e l ,b u tq u i t e a

b i th a sj u s tb e e nc o v e r e df o ry o u rp r o t e c t i o nn e e d s .I t i s n o wy o u r

j o bt o f i g u r eo u th o wb e s tt o u s et h ei n f o r m a t i o n1 h a v es u p p l i e dt o

c r e a t ey o u ro w nd i s kp r o t e c t e dl a n d m i n e s .

T h eT r a n s a c t o r 4 9 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 52/84

A u t oR U NP r o g r a m s

M o s tp r o g r a m st h a ty o uf i n d t h a ta r ea u t or u na r ej u s tt o os i m p l et o

b r e a k .M yf a v o u r i t em e t h o dt o d o t h i si s t o r e s e tt h es t a r to f B A S I C

t o t h es t a c kb e f o r eL O A D i n gi n t h ep r o g r a m .F o r4 . 0B A S I Cp e o p l e

t r y p o k e4 1 , 1 .O n c ey o u h a v eL O A D e dm o s ta u t o r u n n e r s ,t h e

p r o g r a mw i l lc r a s h w i t hS Y N T A XE R R O R ?d i s p l a y e dp r o m i n e n t l y

o n t h es c r e e n .N o wp o k e4 1 , 4a n d y o uc a nl i s tt h ep r o g r a m .A t t h i s

p o i n ts o m eo f t h e s ep r o g r a m sa r e r a t h e rt o u c h yt o p l a yw i t h .T y p e

i n 6 3 9 9 9t h e np r e s s( r e t u r n ) .Y o uh a v ee f f e c t i v e l yd e l e t e dl i n e

6 3 9 9 9 ,w h i c hm o s tl i k e l yd o e s n ' te x i s ta n y w a y .T h i sw i l la l s oa l l o w

y o ut o d o w h a t e v e ry o ul i k ew i t ht h ep r o g r a mf r o mt h e r eo n i n .

T h i sm e t h o di s j u s tt o oe a s yf o rw h a to t h e r w i s ew o u l db e a p r e t t y

g o o dt e c h n i q u e .A u t ob o o tp r o g r a m ss h o u l da u t o m a t i c a l l yr e s e t

t h es t a r to f B A S I Cb e f o r e e x e c u t i n gt h ea u t or u nc o d e .J i mB u t t e r -

f i e l d s' L o c kD i s k ' ,R i c h a r dM a n s f i e l d s' B o o t f i x e r ' ,a n da h o s to f

o t h e r sa l l o wy o ut o m a k ey o u rp r o g r a m sa u t or u n ,b u t t h e yd o n o t

r e s e tt h e s t a r to f B A S I C .Q u i t ea w h i l ea g o I m o d i f i e d R i c h a r d

M a n s f i e l d sB o o t f i x e rt o d o t h i s ,a n dt o d a yI b r i n gt h e s em o d st o

y o u .Y o uc a nf i n dt h i sp r o g r a mi n C o m p u t e ! M a g a z i n eo f O c t o b e r

1 9 8 2 ,I s s u e2 9 o n p a g e s 1 7 0& 1 7 2 .T h ep r o g r a mi s g o o d , b u t n o t

p e r f e c t .F i r s t ,t h i sp r o g r a m w o r k so n l y w i t h1 5 4 1 ,2 0 3 1a n d 4 0 4 0

d r i v e s .T h er e a s o ni s s i m p l e .O n l i n e1 0 0t h e v a r i a b l eT = 1 8 .T o

c o n v e r tt o 8 0 5 0 / 8 2 5 0 c h a n g et h i sv a r i a b l et o T =3 8 . N e x t ,t o

p r o d u c ea b e t t e ra u t o r u nc o d et h a ti s m o r ed i f f i c u l tt o b r e a k ,e n t e r

t h ef o l l o w i n gl i n e s .

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

5 1 0f o rp b = 1 0 5t o 1 2 9: r e a db y : p r i n t # 1 5 , "b - p : 2 "; p b

O n c ey o u rp r o g r a m s h a v e b e e nm o d i f i e d w i t ht h en e wB o o t f i x e r ,

t h e yw i l lb e i m p e r v i o u st o m o s ta t t a c k s .B u td o n o tb e m i s l e a d .

T h e r ea r ep l e n t yo f o t h e rt e c h n i q u e st h a t ,w h i l et h e ya r e n o ta s

s i m p l e ,w i l lb r e a ka u t or u nc o d e . R e s e ta l l y o u rv e c t o r st o c o m

p u t e rr e s e to n t h ee x e c u t i o no f y o u rp r o g r a m ,a n dl a ya f e wm o r e

t r a p st o c o n f u s et h e h a c k e r ,a n d y o um a yp r o d u c e y o u ro w n

v e r s i o no f a h a c k e rc r a c k e r .T r y t u c k i n g v a l u a b l ec o d eb e l o w

B A S I C ,u s et h i sc o d eo f t e nw i t h i np r o g r a m m o d e , a n dt h eh a c k e r

w i l lb e m o r ep r o n et o l e a v ey o u rp r o g r a ma u t or u n .O n ef i n a lp o i n t

t o r e m e m b e rb e f o r er e l e a s i n gy o u rb u l l e tp r o o fw o n d e r .F i r eu p

y o u rf a v o u r i t ew o r d p r o c e s s o ra n dl o a di n y o u rp r o g r a ma s a t e x t

f i l e .N o wl o o kc l o s e l ya t t h eg a r b a g eo n t h es c r e e n .C a ny o ug a i n

a n y k n o w l e d g ef r o mt h i sd i s p l a yt h a tw o u l dh e l py o ub r e a ky o u r

o w nc o d e ?I f y o u ra n s w e ri s n o , p a t y o u r s e l fo n t h eb a c k .I f n o t , f o u l

u p t h ep r o g r a ma l i t t l em o r ea n dt r y a g a i n .W h ok n o w s ,m a y b e

s o m eh a c k e rw i l lr e s p e c ty o u re f f o r t ss o m u c ht h a ty o u r c o d ew i l l

b e l e f ta l o n e .

U s eS o m eO f T h eO t h e rP r o g r a m sI n T h i sI s s u e

E v e ni f 1 0 0 , 0 0 0p e o p l er e a dt h i sa r t i c l e ,r e s ta s s u r e dt h a tt h i sf i g u r e

r e p r e s e n t s o n l ya s m a l lf r a c t i o n o ft h et o t a ln u m b e ro f C o m m o d o r e

u s e r sw o r l dw i d e .N o to n l yt h a t ,b u ty o ua l s on o wk n o wt h a ti t i s

e a s i e rt o p r o t e c tt h a n d e - p r o t e c ta p r o g r a m ,g i v e nt h e r i g h t

a t t i t u d e .P r o t e c t i o nc a n b ef u n ,a n dw i t hp l e n t yo f i m a g i n a t i o na n d

r a wc o u r a g e ,y o um i g h tt a m et h es a v a g eh a c k e r .T a k et h ee x t r a

m e a s u r eo f l e g a lc o n t r a c t s ,s e r i a ln u m b e r sa n df i n eq u a l i t ym a n

u a l s ,a n d y o um i g h tw i ni n t h i st e c h n o l o g i c a lw a r .A n dt a k eo n e

f i n a ls t e p ,a s e x p l a i n e db e l o w .

W eh a v ep u b l i s h e dq u i t e af e wa r t i c l e sa n d p r o g r a m st h i si s s u et o

p r o t e c ty o u rc r e a t i o n s ,s o r e a dt h e mw i t ha n o t e b o o ka t h a n d .J o t

d o w ne v e r y t h i n gt h a t i n t e r e s t sy o u ,a n dc r o s sr e f e r e n c ey o u rn o t e s

t o t h ep a g e so f o u r m a g a z i n e .T a k es o m et i m ew i t ht h e p r o t e c t i o n

o f y o u rp r o g r a m a n df l o w c h a r ti t o u tc a r e f u l l y .R e m e m b e rt h a t

h a c k e r so f t e nd e s e r v et h e i rt i t l e .W i t hc a r e f u lt h o u g h ta n di m a g i

n a t i o ny o um i g h tb e a b l et o o u t s m a r te v e nt h ec r a f t i e s t p i r a t e .T h e

h a c k e rw i l lt r y e v e r yt r i c kt h a tc a nb e t h o u g h to f t o d e s t r o yy o u rw o r k .F i g u r e o u th o wy o u w o u l db r e a k y o u ro w np r o g r a m ,t h e n

f u r t h e rs t r e n g t h e ny o u rd e f e n s e s .B u tt r yt o k e e pi n m i n dt h a tt h e

e x t r at i m ei s w o r t ht h ee x t r ar e v e n u e .I f y o u rp r o g r a mi s p o o rt o

b e g i nw i t h ,a l l t h e p r o t e c t i o ni n t h ew o r l dw i l ln o tm a k ei t a n y

b e t t e r .W h a te v e ry o ud e c i d et o d o ,b e i m a g i n a t i v ea b o u ti t a n d

c h a n g ey o u rm e t h o d so f a t t a c kf r o mu p d a t et o u p d a t e .J u s th a v et o

k e e pt h o s eh a c k e r so n t h e i rt o e s .

M a n yo fy o uw i l ln o t i c et h a tq u i t e af e wt r i c k sr e m a i n u n s a i di n t h i s

a r t i c l e .T h er e a s o nf o rt h i si s s i m p l e .N o te v e r y b o d yi s a s i n t e r e s t e d

a s y o ua r ei n p r o t e c t i o n , s ow h yf i l la n e n t i r ei s s u ew i t ho n es p e c i f i c

t r a i no f t h o u g h t .I n f u t u r e i s s u e sI i n t e n dt o c o v e rt h i ss u b j e c t

f u r t h e r ,s o w r i t et o u s a n dg i v eu s y o u rt h o u g h t so n t h em a t t e r .W em a yh a v eg a i n e da f e we n e m i e s ,b u t h o p e f u l l yw eh a v ea l s of o u n d

m a n yn e wf r i e n d s .T h ep u r p o s eo f t h i sa r t i c l ew a sn o tt o h a r v e s t a

n e wc r o po f h a c k e r sw o r l dw i d e , b u tt o e d u c a t ea n dw a r np r o g r a m

m e r sa b o u tt h e e x t e n to f p i r a c y t o d a y ,a n dh o wt o c o m b a ti t . 1 h o p e

t h a ty o uf e e lt h i sh a sb e e na c c o m p l i s h e d .

A F i n a lF e wS w i n g sA t T h eI n s i d i o u s P i r a t e

N om a t t e rh o w m u c ht h ep i r a t e st r y t o j u s t i f yt h e i ra c t i o n s ,o n ef a c t

r e m a i n s .T h e ya r e t h i e v e s ,a n da r e s t e a l i n gf r o mt h e p o c k e t so f

t h e i rf e l l o wp r o g r a m m e r s .A t h e f t i na n yo t h e rf o r mw o u l dc o n s t i

t u t ea c r i m e ,o n ep u n i s h a b l e b yl a w .T h i sm e t h o do f t h e f ti s o v e r

t h e h e a d so f o u rb e s tl e g a lm i n d s ,s o h o w m u c hl e g a lp r o t e c t i o n

c a nw ee x p e c t .T h eb e s tl e g a lp r o t e c t i o ni n t h ew o r l dw i l ln o th e l p

i n t h e c a s eo f a c r i m et h a tc a n n o tb e p r o v e n .O u ro n l yt r u eh o p ei s

t o s o m e h o wu n i t e t h ep r o g r a m m e r sa n dh a c k e r si n t oo n e ,t h u s

e l i m i n a t i n g t h ed e s t r u c t i v ee l e m e n t .

I t w o u l dn o tb e a s u r p r i s ei f o n ed a yw e f i n df e wn e wp r o g r a m s

c o m i n go n t o t h eC o m m o d o r es c e n e .W h yb o t h e rs p e n d i n gm e g a

h o u r so f t i m ea n de n e r g yi n t h e c r e a t i o no f a t r u l yf i n ep i e c eo f

w o r k ,o n l yt o h a v ey o u rj u s tr e w a r d ss t o l e nb y a n o v e rz e a l o u s

t h r i l ls e e k e r .H a c k e r s , p l e a s et a k em ya d v i c e .W r i t ea p r o g r a mt h a t

y o uk n o ww i l ls e l l ,p r o t e c t t h eh e c ko u to f i t a n dm a r k e ti t . I fy o u r

h a c k e rf r i e n d sd o n o tg e tt o i t f i r s ty o um a yb e a b l et o w a l ka w a y

w i t he n o u g hp r o f i t t ob u yy o u r s e l f am u c hg r e a t e rt h r i l l .B u ya

P o r c h ea n dd r i v e y o u r s e l fi n t oa f r e n z y .B u ya n i s l a n da n db e c o m e

a r e c l u s e .B u ya d i s t i l l e r ya n db e c o m ep e r m a n e n t l yi n t o x i c a t e d .

J u s tb u ys o m e t h i n gt h a tw i l lg i v ey o ua g r e a t e rr u s h t h a nw h a ti s

e x p e r i e n c e db y s t a y i n gu p a l l n i g h t s t a r i n ga t y o u rc o m p u t e r

s c r e e n ,b a s h i n ga w a ya t l i t t l et i n yk e y s ,a n dm a k i n gz e r op r o f i t f o r

y o u r s e l fa n dt h ec o m p a n yt h a ty o ur i p p e do f f .T h ea c c e p t a n c eo f

y o u r s e l fb y y o u ro t h e r h i g ht e c hp i r a t e si s n i c e ,b u ti m a g i n eh o w

n i c ei t c o u l db e s k i i n gi n S w i t z e r l a n d , s u r f i n gi n C a l i f o r n i a ,m o u n

t a i nc l i m b i n gi n B r i t i s hC o l u m b i a ,r a c i n gi n M o n t eC a r l oo r d o i n g

w h a t e v e re l s ey o uf i n dt o t i c k l ey o u rf a n c y .D r o pt h eu n d e r g r o u n d

s o f t w a r en e t w o r k a n ds t o ps t e a l i n gf r o m y o u rf r i e n d s .

T h eT r a n s a c t o r 5 0 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 53/84

U n v e i l i n gT h eP i r a t e

P a r t3 : T h eL e g a lI s s u e

" T o q u o t em e t h e a u t h o r i t yo f p r e c e d e n t sl e a v e sm e q u i t eu n

m o v e d .A l l h u m a np r o g r e s sh a s b e e nm a d eb y i g n o r i n gp r e c e

d e n t s .I f m a n k i n dh a dc o n t i n u e dt o b e t h e s l a v eo f p r e c e d e n tw e

s h o u l ds t i l lb e l i v i n gi n c a v e sa n d s u b s i s t i n go n s h e l l f i s ha n d

b e r r i e s . "- V i s c o u n tP h i l i pS n o w d e n

I t i s a l w a y sp l e a s a n tt o b e g i na n a r t i c l ew i t hs o m eb r i l l i a n tq u o t a

t i o n , j u s t t og e t t h e m i n dm o v i n ga l i t t l eq u i c k e r .W i t ha s l i g h t

u p d a t et o t h e s ew o r d so f w i s d o m ,i t w o u l dr e a da s s u c h .W h yd o

w e h a v et o r e l yo n l a w sd e s i g n e di n d a y sg o n ep a s tb e f o r et h e

a d v e n to f m o d e r nt e c h n o l o g yw i l lp r o t e c tu s f r o mi n f r i n g e m e n to f

o u rr i g h t sa s c r e a t o r so f p r o g r a m m i n gm a r v e l s .V i r t u a l l ye v e r yl a w

t h a th a se v e rb e e nu p d a t e d c a n b et r a c e db a c kt o t h ec o m p a r i s o n

o f s o m ea n t i q u a t e dp r e c e d e n tt h a ti s s o m e h o wm i s c o n s t r u e dt o

a p p l yt o d a y .I n l e g a lc a s e sw h e r et h es i t u a t i o ni s a l w a y st h es a m e

a n da l w a y sh a sb e e n ,w h yt h eh e c kn o t .B u tw ea r el i v i n gi n a n e w

a g e ,w i t ht e c h n o l o g ya d v a n c i n ga t a r a t en e v e rb e f o r ea n t i c i p a t e d .

J u s tt h i n kb a c ka f e wy e a r sa n d c o m p a r eh o wq u i c k l ye v e r y t h i n gi s

a d v a n c i n gt o d a y .F o rt h i sr e a s o ni t w o u l db e n i c et o f i n do u tw h y

t h e l e g a ls y s t e mi s s t u c ki n t h e m i d d l ea g e sf l o g g i n g t h es a m e

p r e c e d e n t so v e ra n do v e ra g a i nt i l ln o b o d yr e a l l yk n o w sh o wt h e y

a p p l y .1 a p p l a u dS t e v eW o s n i a k a n dh i s g r o u pa t A p p l ef o r t h e i r

l e g a la t t a c ko n t h ei n v a s i o no f t h ec l o n ep e o p l e . H i sg r o u pt o o ka n

a n t i q u a t e dl e g a ls y s t e ma n d c h a l l e n g e di t t o b e c o m eb e t t e r .

T h o u g ht h e e x i s t i n gl a w si n m o s tc o u n t r i e sa r es t i l ls o r e l a x e dt h a t

t h e s ec r i m e sc a nt a k ep l a c e ,t h e g r o u pa t A p p l em a d et h e l e g a l

c o m m u n i t ys t a n du p a n dt a k en o t i c e .

T h eC L O N E

W i t hA p p l e ,t h e i rp r o b l e mw a sw i t hc o r p o r a t i o n sc o p y i n gt h e i r

c o m p u t e r ,s o f t w a r e ,m a n u a l s ,c a s e s ,l i t e r a t u r ea n dw h a t e v e re l s e

t h e yc o u l dg e t t h e i rs l e a z yh a n d so n .T h ec o m p a n i e sr e s p o n s i b l e

f o rt h e s e m i s c a r r i a g e so f j u s t i c ew e r el o c a t e d p r i m a r i l yi n T a i w a n

a n dH o n gK o n g ,w i t ha l i t t l eb i to f a c t i v i t yi n S w i t z e r l a n da n dt h e

U S A .T h e w a yt h a ti t a p p e a r st o h a v eh a p p e n e di s t h a tn u m e r o u s

c o r p o r a t i o n sw e r es e t u p t o c l o n et h eA p p l eC o m p u t e rc o m p l e t e .

T h o s ew h oh a v ee v e rs t a r t e d ac o r p o r a t i o nk n o wt h a ts h a r e h o l d

e r s o fa c o r p o r a t i o na r e o n l y r e s p o n s i b l ef o r a s m u c h m o n e ya s

t h e yh a v ei n v e s t e di n t h e c o r p o r a t i o n .T h ec l o n e c o r p o r a t i o n s

m a d ev e r y h i g hp r o f i t sw i t ht h es a l eo f t h ec l o n e s ,t h e n d e c l a r e d

d i v i d e n d sq u a r t e r l yt o d r a i na l l o f t h e m o n e yo u t a s q u i c k l ya s

p o s s i b l e .I f l e g a lt r o u b l es t a r t sb r e w i n g u po v e rt h ec l o n e s , d i s s o l v

i n g t h ec o r p o r a t i o na n ds t a r t i n ga n o t h e rw a su s u a l l y t h ea n s w e r .

A l w a y s o n es t e pa h e a do f t h el a w ,t h e s ec l o n ep e o p l eg o tv e r yr i c h ,

a n dA p p l el o s to u ti n n u m e r o u ss a l e s .

I f t h eA p p l es u b j e c ti n t e r e s t sy o ua s i t d i dm e ,t h e nt r y t og e th o l do f

t w of a b u l o u sb o o k st h a tc o v e rt h i sa r e ae x t e n s i v e l y .T h e ya r e

a v a i l a b l ef r o mt h e p u b l i s h e rd i r e c t ,b u t m a yn o t b e f r o mb o o k

s t o r e s .

S o f t w a r eP r o t e c t i o na n dM a r k e t i n g

C o m p u t e rP r o g r a m sa n dD a t aB a s e s ;

V i d e oG a m e sa n dM o t i o nP i c t u r e s

V o l u m e sO n ea n dT w o

b y M o r t o n D a v i dG o l d b e r g- C h a i r m a n

P r a c t i c i n gL a wI n s t i t u t e

N e wY o r kC i t y

C o u r s eH a n d b o o kS e r i e s* 1 5 9a n d* 1 6 0- 1 9 8 3

C o p y r i g h t sA n dH o wT h e y A p p l y T oY o u

P r o t e c t i o nu n d e rt h el a wf o ri n f r i n g e m e n t so f t h er i g h t so f s o f t w a r e

m a n u f a c t u r e r si s a h o p e l e s s l ym e s s e d u ps e r i e so f m i s t a k e s ,a l lt i e d

t o g e t h e ri n t h el a wb o o k so f t o d a y .C o p y r i g h tp r o t e c t i o no f c o m

p u t e rs o f t w a r ed o e sa p p l yt o a l i m i t e dd e g r e ei n t h eU n i t e dS t a t e s ,

b u td o e sn o ta p p l yi n t h el e a s t i nC a n a d a . E l s e w h e r ei n t h ew o r l d ,

m a n yc o u n t r i e s a r eo n p a r w i t hC a n a d a .I t s e e m st h a tt h eU n i t e d

S t a t e si s t h e w o r l d sb a t t l eg r o u n d sf o r l e g a lm i s t a k e s ,w i t ht h er e s t

o f t h ew o r l df o l l o w i n gs u i tw e l la f t e ra l l t h ee x c i t e m e n th a sd i e d

d o w n .

I n t h eU n i t e dS t a t e ss o f t w a r ei s a n di s n o t p r o t e c t e db y C o p y r i g h t

l a wf o r t h es a m er e a s o n s .W h i l ep e e r i n gt h r o u g hn u m e r o u sl a w

b o o k s ,1 h a v ed i s c o v e r e dg r e a t q u a n t i t i e so f h y p o c r i t i c a ll e g a lt u r n s

o f e v e n t s t h a ns h o u l dh a v en e v e ro c c u r e d . F o re x a m p l e ,l e t sl o o k

a t t h el e g a li s s u eo f c o p y r i g h tl a wa n dh o wi t a p p l i e st o s o f t w a r e .

" ( C )C O P Y R I G H T "- I s I t A p p l i c a b l e ?

O n ea r g u m e n ta g a i n s tc o p y r i g h tp r o t e c t i o no f s o f t w a r ei s t h a t

c o p y r i g h tp r o t e c t i o ni s a f f o r d e dt o m a t t e r st h a t r e l a t e d i r e c t l yw i t h

T h eT r a n s a c t o r 5 1 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 54/84

h u m a nb e i n g s .B o o k s , m a g a z i n e s ,a r ta n dm u s i ca r ej u s ta f e wo f

t h e a r e a sc o v e r e db y c o p y r i g h tl a w .W i t ht h i sa r g u m e n ti t h a sb e e n

s t a t e dt h a tt h ed e s i g na n df l o w c h a r t i n gw o r kt h a tg o e si n t os o f t

w a r ed e v e l o p m e n ti s p r o t e c t e du n d e rc o p y r i g h tl a w .S o i s t h e

a c t u a ls o u r c el i s t i n go f t h ep r o g r a m .B u tt h em o m e n tt h ep r o g r a m

i s a c t u a l l ye n t e r e di n t ot h ec o m p u t e r a n di s a c t i v a t e d ,i t n o l o n g e r

f a l l su n d e rt h e p r o t e c t i v eb l a n k e to f c o p y r i g h t .T h i sv i e ws t a t e s

t h a tt h ep r o g r a m n ol o n g e rr e l a t e st o h u m a nb e i n g s ,o n l yt o t h e

c o m p u t e r sf o rt h es o l ep u r p o s eo f t e l l i n gt h ec o m p u t e r w h a tt o d o ,

a n dr e c o r d i n gw h a tr e s p o n s e st h ec o m p u t e rc a m eb a c kw i t h .T h e

f a c tt h a tt h e u s e rr e l a t e dd i r e c t l yw i t ht h ec o m p u t e rh a sn o b e a r i n g

o n t h i sa r g u m e n t .T h ec o m p u t e rh a sb e c o m et h em i d d l em a na n d

t h e r e f o r ee x c l u d e st h es o f t w a r ef r o mc o p y r i g h tp r o t e c t i o n .

T h es e c o n d a r g u m e n t ,t h i st i m ef i n d i n gt h a tc o p y r i g h td o e sa p p l y

t o c o m p u t e rs o f t w a r e ,w a su s e dw i t ht h i ss a m ee x a m p l e .I t w a s

s t a t e dt h a tc o m p u t e rs o f t w a r ei s p r o t e c t e db y c o p y r i g h tl a wb e

c a u s ei t d o e sr e l a t et o h u m a nb e i n g sr i g h ta c r o s s t h el i n e .C o m

p u t e r sw e r ed e s i g n e db y h u m a nb e i n g s ,a n ds o a r ec o m p u t e r

p r o g r a m s . B i n a r yO ' s a n d l ' s m e a na b s o l u t e l yn o t h i n gt o t h e

c o m p u t e r ,o n l yt o t h ep r o g r a m m e r .T h ec o m p u t e rr e l a t e s d i r e c t l y

w i t hc h a n g e si n v o l t a g ea n dc u r r e n t f l o w st h r o u g h o u ti t c i r c u i t r y .I t

d o e sn o t c a r ea b o u tb i n a r yc o d i n gi n t h e l e a s t .A p r o g r a m m e r

c o u l d ,i f p e r s u a d e dt o d o s o , d e c i p h e re x a c t l yw h a ta c o m p u t e r

p r o g r a md o e s ,o n c ei t h a sb e e ne n t e r e di n t ot h ec o m p u t e r .W h a t

e v e rl a n g u a g et h ec o d ei s w r i t t e ni n , i t c a n b ep a i n f u l l y f i g u r e do u t

b y p e e r i n gt h r o u g ht h i sa p p a r e n tm a c h i n ec o d e .T h e r e f o r e ,t h i s

a r g u m e n ts t a t e s t h a tc o p y r i g h tl a w d o e sa p p l yt o c o m p u t e rs o f t

w a r e ,w i t ha l lp r i o ra r g u m e n t sb e i n gi n v a l i d .T h ec o u r t sl i k e db o t h

e x p l a n a t i o n s , t h e r e f o r en o r e a la n s w e rh a sb e e na r r i v e da t .

M a n ym o r ei n s t a n c e so f c o p y r i g h tl a wa n ds o f t w a r eb a t t l e sr a g e

t h r o u g h o u tt h e l e g a lb o o k so f t o d a y .A s i t s t a n d s ,g o v e r n m e n t s

w o r l d w i d eh a v es t a t e de x p l i c i t l y t h a tt h e yw o u l dl o o ki n t ot h e

m a t t e ra n dc o m et o s o m ef o r mo f c o n c l u s i o na s s o o na s p o s s i b l e .

T h eU S Ah a v e c h a n g e dt h e i rc o p y r i g h t l a w sa f e wt i m e s ,b u ts t i l lt o

l i t t l ea v a i l .I n C a n a d aw e h a v et h ew h i t ep a p e r ,a n o t h e rs e r i e s o f

b l e e p sa n db l u n d e r st o f u r t h e ro c c u p yt h e c o u r t sf o rm a n yy e a r st o

c o m e .T h el e g i s l a t u r eh a sp r o m i s e dn e wr u l e sa r e c o m i n g ,b u t

m a k i n g t h e ms o t h e yw o n ' tg o o b s o l e t ew i t ht h et e c h n o l o g yi s t h e

h a r dp a r t .

W h a t e v e rt h es t o r y ,e x p e c t i n gt h el a wt o d o a l l t h ew o r kf o ry o ui s

f o o l i s ha t t h i sp o i n ti n t i m e .A b i to f t h o u g h ta n dc a r e f u lp l a n n i n g

w i l lh e l py o up r o d u c ea p r o d u c tt h a tm a yp r o v i d ea g o o dl e g a l

d e f e n s ei f s o i n c l i n e d .L e t ' sn o wa d v a n c ei n t ot h i ss u b j e c t al i t t l e

d e e p e r .

L e g a lA v e n u e s T oT a k e

A s i s o b v i o u s ,w r i t t e ni n f o r m a t i o nc a n b ep r o t e c t e du n d e rc o p y

r i g h tl a w .A m a n u a lf o ry o u rp r o g r a mf i t si n t ot h i sc a t e g o r y .T h e

s o u r c el i s t i n g ,f l o w c h a r t i n ga n da l le l s e t h a th a sb e e nw r i t t e nd o w n

a l s of i t sn e a t l yi n t ot h i sl i t t l ec u b i c a lo f l e g a lm i n d s e t , b u td o e s n ' t

r e a l l yh e l pt h em a t t e ra t a l l .R e l yo n t h em a n u a l .

T h es a c r e ds t a t e m e n t" ( C )C o p y r i g h t1 9 8 4C o m p a n yN a m e " ,i s a

m a n d a t o r yr e q u i r e m e n ti f c o p y r i g h tp r o t e c t i o ni s d e s i r e d .T h i s

e n t i r es t a t e m e n t e n s u r e st h a tt h e c o p y r i g h tp r o t e c t i o nt h a ty o u

h a v eo p t e df o r a p p l i e si n m o s to f t h e c o u n t r i e si n t h e w o r l d .

W h e t h e ro r n o t ac o m p l e t ec i r c l ei s r e q u i r e da r o u n dt h el e t t e rI d o

n o tk n o w ,b u t1 f e e lt h a ti t s h o u l dn o tm a t t e r .I f t h e c o u r t sg o t o t h i s

e x t r e m et o p r o v e s o m e t h i n gi n e l i g i b l ef o rp r o t e c t i o n ,t h e nt h e r ei s

s o m e t h i n gw r o n gw i t ht h e c o u r t s .M a k es u r ey o u rp r o g r a md i s

p l a y s ac o p y r i g h tn o t i c eo n t h e s c r e e na t l e a s to n c ed u r i n gt h e

e x e c u t i o n ,a n dw r i t et h i ss t a t e m e n ti n t oy o u rm a n u a la t l e a s to n c e ,

j u s t t om a k es u r et h a te v e r y o n ek n o w sy o u ri n t e n t i o n s .

C r e a t ey o u rp r o g r a mi n s u c ha w a yt h a ti t r e q u i r e sa t l e a s ts o m e

i n t e l l i g e n c et o o p e r a t ei t . W r i t ea m a n u a lt h a tw i l li l l u m i n a t e t h e

w a yf o ra l l w h oa t t e m p tt o u s ey o uc r e a t i o n .D e s i g nt h e m a n u a l

w e l l ,m a k i n gs u r et o p l a c e as p e c i f i cs e r i a ln u m b e ri n a f e w k e y

p l a c e st h r o u g h o u t .D e s i g na l e g a l l yb i n d i n gc o n t r a c tb e t w e e ny o u r

c o m p a n ya n dt h ee n du s e r ,m a k i n gs u r et o s t a t et h es e r i a ln u m b e r

s o m e w h e r ep r o m i n e n to n t h ef o r m .M a k es u r et o w r i t et h i ss e r i a l

n u m b e rs o m e p l a c eo n d i s k e t t ew h e r el i t t l ea t t e n t i o nw i l lb e g e n e r

a t e db e c a u s eo f i t , a n d y o um a yh a v es t a r t e do n y o u rw a yt o p a r t i a l

l e g a lp r o t e c t i o n .I f p h o t o c o p i e so f y o u rm a n u a ls t a r tt o a p p e a r ,a n d

t h e s e r i a ln u m b e r sh a v en o tb e e nr e m o v e d ,t h e nc o p y r i g h ti n

f r i n g e m e n t c a nm o s tl i k e l yb e p r o v e ni n c o u r t .

I f c o p i e so f y o u rp r o g r a ms t a r t t oa p p e a ri n a b r o k e ns t a t e ,i t m a y

b e d i f f i c u l tb u t n o ti m p o s s i b l et o p u s ht h e m a t t e ri n c o u r t .T h e

s e r i a ln u m b e rc o m b i n e dw i t ht h es i g n e dl e g a lc o n t r a c tm a yb e a

t i c k e tt o r e c o m p e n s a t i o n .B u to f t e nt h i s w i l ln o tb e t h ec a s e ,a s I

w i l le x p l a i n b e l o w .

A h i g hp e r c e n t a g eo f p r o g r a m sa r eb r o k e nm a i n l yf o rt h et h r i l lo f

b r e a k i n gt h e m .O n c eb r o k e n ,t h e ya r eq u i c k l ys p r e a da r o u n df r o m

f r i e n dt o f r i e n d ,o f t e no v e rt h et e l e p h o n el i n e s , t of u r t h e rw e a k e n

y o u r c h a n c e sf o rc o m p e n s a t i o nf o r t h i sc r i m e .M a n yo f t h eo f f e n s e s

t a k ep l a c ei n p r i v a t e i n d i v i d u a l sh o m e s ,w i t ht h ee n dr e s u l tb e i n g

g i v e na w a yt o o t h e r sw h os h a r et h es a m es e n t i m e n t s .O n c et h e s e

p i r a t e dv e r s i o n sh a v e b e e np a s s e d o v e rt h et e l e p h o n el i n e s ,l i t t l e

t o n o t h i n gc a nb e d o n et o s t o pi t ss p r e a d .A n dp r o v i n gt h ec r i m ei n

c o u r ti s n e x tt o i m p o s s i b l e ,f o r t h e o f f e n s ew a sp r o b a b l yn o t

w i t n e s s e db y a n y o n ew h ow i l la d m i tt o i t i n c o u r t .C h e c k m a t e ,t h e

p i r a t ew i n s .

A s h a sb e e nw i t n e s s e dw i t ht h ep r o s e c u t i o no f v i d e ot a p e sp i r a t e s ,

o t h e rl e g a la v e n u e sd o e x i s tf o rp r o t e c t i o nt h a ta r ej u s tw a i t i n gt o

b e t r i e d i nt h ec o u r t s .T h o u g hI d o n o t p r o f e s st o k n o wh o wt h i s

w o u l da p p l y ,I h a v e b e e nt o l d t h a tf r a u dc a n b e p r o v e ni n t h i s

m a t t e r ,w i t h aj a i lt e r ma n df i n ea p p l i e dt o a n yf o u n dg u i l t y .T h i s

s o u n d sp r e t t yg o o dt o m e ,f o ri t c o u l db e a p p l i e dt o a n y o n ec a u g h t

d i s t r i b u t i n gi l l e g a lm a t e r i a l ,e v e ni f t h e p e r s o nd i s t r i b u t i n gt h e

m a t e r i a li s n o tt h ep i r a t e , j u s ts o m e o n ew h om a n a g e da c o p y a n d

w a n t e dt o g i v ea n o t h e rc o p ya w a yt o a f r i e n d .T a l ka b o u ta q u i c k

w a yt o p u ta c u r bi n t h es p r e a do f i l l e g a ls o f t w a r e .

L e g a lp r o t e c t i o ni s a s i n g l ea v e n u eo f p r o t e c t i o nt h a td o e sn o t

a p p e a rt o w o r ki n a v a s tm a j o r i t yo f c a s e s .S o f t w a r ep i r a c y ,u n l e s s

b l a t a n t l yo b v i o u sa s t h eA p p l ec a s e s w e r e ,i s d i f f i c u l tt o p r o v ea t

b e s t ,a n de v e nm o r ed i f f i c u l tt o f i n dl a w st h a tw i l ls t i c k .I f t h i sf r a u d

s i t u a t i o nc a nb e t r i e da n dp r o v e ni n c o u r t ,t h e nw e m i g h tf i n a l l y

h a v es o m ea m m u n i t i o nt o w o r kw i t h .B u tu n t i lt h e n ,t h e l e g a l

s y s t e mi s n o t a v i a b l em e t h o df o rs o f t w a r ep r o t e c t i o ni n t h el e a s t .

M y f i n a lr e c o m m e n d a t i o ni n t h i sr a t h e rv o l a t i l e s i t u a t i o ni s t o

p r o t e c tt h el i v i n gh e c ko u to f y o u rp r o g r a me v e r yw h i c hw a yt h a t

y o uc a n ,a n df o l l o wt h ec o u r t s a s c l o s e l y a sp o s s i b l e .W i t hl u c ka n d

P r o v i d e n c ep r e v a i l i n g ,t h e e t e r n a ll i g h tm a ys h i n ed o w nu p o nt h e

c o u r t sa n d a p p o i n ta f e wc o m p u t e rw h i zk i d j u d g e s .W i t ha

c o m p u t e rf r e a kh o l d i n gt h e g a v e lw e m a yf i n a l l ya d v a n c ei n t ot h e

c o m p u t e ra g ea s w es h o u l dh a v ea l l a l o n g .

T h eT r a n s a c t o r 5 2 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 55/84

P i r a c yv s .P r o t e c t i o n :W h oL o s e s ?b y C h r i sZ a m a r a ,T e c h n i c a lE d i t o r

" / h a v er e a d w a r n i n g so n s o f t w a r ep a c k a g e st h a ts t a t ed a m a g e

t o y o u rd i s kd r i v em a yo c c u ri fy o ua t t e m p tt o m a k ea c o p yo f t h e

p r o g r a m" .

A l o t o f t a l ki s g o i n go n a b o u tt h e p r o b l e mo f s o f t w a r e

" p i r a c y " ,b u ta n e wp r o b l e mi n t h ec o m p u t e rf i e l di s e m e r g

i n g a s ar e s u l t :s o f t w a r ep r o t e c t i o n .S o f t w a r ep r o d u c e r s ,

w o r r i e d a b o u ts l i p p i n gp r o f i t sd u et o u n a u t h o r i z e dp r o g r a m

c o p y i n g ,a r e c r e a t i n gm a j o rp r o b l e m sf o rt h ec o n s u m e r .

W e l c o m et o t h ea g eo f t h eu l t r a - d e l i c a t ep r o g r a m :c h a n g e

t h es y s t e mc o n f i g u r a t i o ns l i g h t l y ,a n di t b l o w su p .P l u gi n a

d i f f e r e n td i s kd r i v e- e v e nu p d a t et h eR O M si n y o u rc u r r e n t

o n e ,a n di t r e f u s e st o b o o t ( y o uv i l lu s ez e ed r i v ez a t v e e

s p e c i f y o ry o uv i l l s u f f e r ! ) .G o ta h a n d yi n t e r f a c ec a r do f

s o m et y p eo n y o u rs y s t e m ?F o r g e ti t ! T h ep r o g r a mm a yn o t

l i k ei t .

A n dt h ew a yi n w h i c hp r o g r a m se x p r e s st h e i r d i s l i k ef o rt h e

e n v i r o n m e n ti n w h i c ht h e ya r e l i v i n gc a nb e f r i g h t e n i n g .

S o m ew i l lr u n f o r a p e r i o do f t i m e ,a n dt h e nc r a s ha t a n

i n o p p o r t u n e( d u et o M u r p h y ,t h ew o r s t ) t i m e .I h a v er e a d

w a r n i n g so n s o f t w a r ep a c k a g e st h a ts t a t ed a m a g et o y o u r

d i s kd r i v em a yo c c u ri f y o ua t t e m p tt o m a k ea c o p yo f t h e

p r o g r a m .I w o u l db e v e r yr e l u c t a n tt o b u ys o f t w a r ef r o ma n y

c o m p a n ym a k i n gs u c ha c l a i m ,e v e ni f i ti s n ' tt r u e .W ea r e

n o wf a c e dw i t ht h es i t u a t i o no f t h ep r o g r a mv s .t h eu s e r :t h e

s o f t w a r ei s s i t t i n gi n t h ec o m p u t e r ,e y e i n gt h eu s e r ' sa c t i o n s

s u s p i c i o u s l y .I f h e s h o u l dm a k ea w r o n gm o v e- o n e w h i c h

t h e p r o g r a m ,i n i t s i n f i n i t ew i s d o m ,j u d g e st o b e a n e n

c r o a c h m e n to n i t s l e g a ls p a c e -w h a m !R e s e t s y s t e m ,w i p e

o u td i s k ,c o o kd r i v e ,w h a t e v e r .

T h es a dr e s u l t o fa l l o f t h e s e p r e c a u t i o n si s t h a tt h ep e o p l e

w h oa r e h u r tm o s ta r en o t t h ec o m p u t e r" p i r a t e s " ,b u t t h e

p a y i n gs o f t w a r ec o n s u m e r .T h es o - c a l l e d" p i r a t e " ,u s u a l l y

n o m o r eh a r m f u l t h a na c o m p u t e re n t h u s i a s t ,i s n o tf a z e db y

s u c hs k i l l f u lp r o t e c t i o ns c h e m e s .S o m ep i r a t e s" b r e a k " ,o r

d e - p r o t e c tp r o g r a m sf o r t h e f u no f i t - t h e h a r d e ri t i s t o

b r e a k , t h eg r e a t e rt h e c h a l l e n g e ,a n dt h e m o r ef u n t h e y

h a v e .O t h e ri l l e g a lu s e r so f t h e s eb r o k e n p r o g r a m sc o l l e c t

h u g el i b r a r i e s o fs u c hs o f t w a r ej u s t f o rt h es a k eo f c o l l e c t i n g

i t . T h e yw o u l dn e v e rb u ya n y o f t h e s t u f fe v e ni f t h e y

c o u l d n ' tb r e a kt h ep r o t e c t i o n .T h em a j o r i t yo f s o f t w a r e u s e r s

a r e t h ec o m p u t e r - n a i v eu s e r :t h e p e r s o nw h ow a n t sa

c e r t a i np r o g r a m- a l o n g w i t ht h e m a n u a l ,p a c k a g e ,a n d

w a r r a n t y- a n di s w i l l i n gt o p a yf o r i t . T h i si s t h e k i n do f

p e r s o nw h ok n o w st h el e a s ta b o u tw h a tp r o g r a mw i l lw o r k

w i t hw h i c hs y s t e mc o n f i g u r a t i o na n d w h y ,a n dt h ep e r s o n

m o s tl i k e l y t og e t h u r tb y a p i c k ya n ds u s p i c i o u sp r o g r a m .

H em e r e l y w a n t st o p a ya f a i rp r i c ef o ra p r o g r a mt h a tw i l ld o

t h ej o b .W h i c hb r i n g s t h en e x tt o p i ct o m i n d :a f a i rp r i c e .

S o f t w a r ec o m p a n i e s m u s to b v i o u s l ym a k ep r o f i t so n t h e

p r o g r a m st h a tt h e ys e l l .B u ts p e n d i n gm a n ym a n - h o u r s

d e v e l o p i n ge l a b o r a t ep r o t e c t i o ns c h e m e si s a w a s t eo f t i m e ,

a n do b v i o u s l yr a i s e sd e v e l o p m e n tc o s t s ,e r g o ,s e l l i n gp r i c e .

I f t h a tt i m ew a ss p e n to n t h e p r o g r a mi t s e l f ,p e r h a p st h e

r e s u l t i n gp r o d u c tw o u l db e g o o de n o u g ht o g e n e r a t et i d y

p r o f i t sf r o mt h e a b o v e m e n t i o n e da v e r a g es o f t w a r ec o n

s u m e r . P e o p l ew o u l db e m o r ew i l l i n gt o b u y p r o g r a m s

w h i c hw e r e n ' t p r o t e c t e dt o d e a t h ,a n d w h i c hs o l df o r a

r e a s o n a b l ep r i c e .S u r e ,t h e r ew o u l db e u n a u t h o r i z e dc o p i e s

f l o a t i n ga r o u n d- p r o b a b l yi n t h e h a n d so f p e o p l ew h o

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

b u s i n e s s ,r e c o r d ss e l lm i l l i o n s( f o ra r e a s o n a b l ep r i c e )e v e n

t h o u g ha t a p ei s s o e a s yt o m a k e .S o f t w a r ec o m p a n i e sa n d

p r o g r a m m e r s w a n tt o c h a r g eh u g ea m o u n t so f m o n e yf o r

p r o g r a m sw h i c ht h e yc l a i mt o o ky e a r st o d e v e l o p .T h i s

u s u a l l y s a y sm o r ea b o u tt h e i rl a c ko f p r o g r a m m i n gs k i l la n d

e f f i c i e n c yt h a ni t d o e sa b o u tt h es o p h i s t i c a t i o no f t h ep r o

g r a m .

T r u e ,s o m es p e c i a lp u r p o s ep a c k a g e sm u s ts e l lf o ra r e l a

t i v e l yh i g hs u mb e c a u s eo f t h el i m i t e dm a r k e ta p p e a lt h e y

h a v e .A n dt h e r ei s n o t h i n gw r o n gw i t hc o p yp r o t e c t i o np e r

s e ,p r o v i d i n gi t h a sn o a d v e r s ea f f e c t so n t h er u g g e d n e s so f

t h ep r o g r a m( a t a l lo r d e r ) .B u tu n t i lt h e s o f t w a r ep r o d u c e r s

a d d r e s st h en e e d so f t h ea v e r a g es o f t w a r ec o n s u m e r ,t h e y

w i l lf a c ed e c l i n i n gs a l e sd u et o p e o p l ew h or e f u s et o b u y

f r a g i l e ,l i m i t e d ,a n dh a z a r d o u sp r o d u c t s .A n dr e f u s et h e y

s h o u l d .

T h eT r a n s a c t o r 5 3 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 56/84

S p i f f yL i s t i n g s ! J e f fG o e b e l

G e o r g e t o w n ,O n t .

M o s to f u s h a v ew r i t t e na B A S I Cp r o g r a m ,o r a t l e a s tt y p e do n ei n

f r o ma m a g a z i n e .W h e nw e a r e f i n i s h e dw e h a v ea m e s s .I f y o u ' v e

e v e rt r i e d t od e - b u gs o m e o n ee l s e sB A S I Cp r o g r a m ,y o u ' l lk n o w

h o wh a r di t i s t o f i n da n y t h i n gi n a p r o g r a ml i s t i n g .

O t h e rl a n g u a g e sa l l o wy o ut o i n d e n ta n d f o r m a tl i s t i n g sn e a t l y .

C o m m o d o r ed o e sn o t .H o w e v e r ,i t d o e s n ' th a v et o b e t h i sw a y ;w e

c a nC H E A Tw i t ho u rl i s t i n g s .W ec a ne m p h a s i z ei m p o r t a n tp o i n t s

a n dh i d es e c r e t s e c t i o n sw h i l eg e n e r a l l yt i d y i n gu p t h e w a yo u r

L I S Tl o o k s .I n t h i s a r t i c l eI d i s c u s sw a y st o m a k ey o u rl i s t i n g s

n e a t e r ,m o r ec o l o u r f u l ,a n de a s i e rt o d e - b u g .I a l s od e s c r i b ea f e w

w a y st o m a k ey o u rl i s t i n gi m p o s s i b l et o l i s to r c o r r e c t .T h e r ea r e

v e r s i o n sf o ra l l C o m m o d o r ec o m p u t e r s .A l lt h i s ,a n dy o u ' l ln e v e r

h a v et o e n t e rt h em a c h i n el a n g u a g em o n i t o r .

F i r s tl e t ' ss t a r tw i t ht h ee a s yo n e s .. . w o u l d n ' ti t b e n i c et o b e a b l e

t o I N D E N Tc e r t a i nr o u t i n e s .I n m o r es t r u c t u r e dl a n g u a g e s ,a l l

n e s t e d l o o p sa r ep u s h e dr i g h tb y a f e ws p a c e ss o a n y o n el o o k i n ga t

t h e l i s t i n g sa t a g l a n c ec a n q u i c k l y s e ew h a ti s g o i n go n . I t i s

p o s s i b l et o d o t h i s i nC o m m o d o r eB A S I Ct o o .Y o uj u s th a v et o

k n o wh o w .

T Y P E :1 0 p r i n t" h i

N o wL I S T .W h a th a p p e n e d ?A l lt h o s e l e a d i n g s p a c e sa r e i g n o r e d .

N o wt r yt h i s :

T Y P E :1 0 X p r i n t" h i

W h e ny o ul i s ti t t h i st i m e ,t h es h i f t e dX w i l lh a v ev a n i s h e da n dt h e

s p a c e sw i l ln o t .D o n ' ta s km ew h yo r h o wi t w o r k s ;j u s tb e t h a n k f u l

t h a ti t d o e s .I f w e p l a c eA N Ys h i f t e dc h a r a c t e ri n o u rl i n e ,i t w i l lb e

i g n o r e d , b u t t h et r a i l i n gs p a c e sw i l lr e m a i n ,m a k i n gi t p o s s i b l ef o r

u s t o i n d e n ta l l w ew a n t .A n o t h e ru s ef o rt h ea b o v es y s t e m ;

T Y P E :1 0 X X

A g a i n ,p r e s sS H I F Tt h e nX . T h i st i m e ,w h e n w el i s tw es e en o t h i n g

b u t t h e s t a t e m e n tn u m b e r .T h i sh a sl i t t l eu s eb u t i t l o o k sn i c e .

B e s i d e s ,t h i so n ew i l lc o n f u s et h e h e l lo u t o f p e o p l ew h od o n ' t

k n o ww h a ty o u ' v ed o n e .T h e y ' l lb e l o o k i n ga l l o v e rt o s e ew h e r e

y o u ' v e h i d d e nl i n e1 0 .

T h eR E Ms t a t e m e n to f C o m m o d o r eB A S I Ci s i r o n i c a l l yo n eo f t h e

m o s tv e r s a t i l ec o m m a n d so f t h e l a n g u a g e .O h s u r e ,i t d o e s n ' t

a c t u a l l yD O a n y t h i n g ,b u t w e c a n u s e i t t o c r e a t es o m ep r e t t y

b i z a r r ee f f e c t s .F i r s t o fa l l ,w e ' l ls t a r tw i t ht h es i m p l eo n e s .H a v e

y o ue v e rt r i e di n c l u d i n gS H I F T E Dl e t t e r s i na R E Ms t a t e m e n t ?I t

d o e s n ' tw o r kq u i t et h ew a yw ee x p e c t .F o rs o m er e a s o n ,C A P I T A L

l e t t e r sa r ec o n v e r t e dt o B A S I Ct e x tc o m m a n d sw h e nw e r e - l i s t .

T h i s h a ss o m e t h i n gt o d o w i t ht h e w a yB A S I Ci s t o k e n i z e d .

A n y w a y ,w e d o n ' th a v et o k n o wW H Yi t d o e st h i s ,a l l w e w a n tt o

k n o wi s h o ww ec a nu s ei t t o o u ra d v a n t a g e . T r yt h i s :

1 0 r e mQ W E R T Y U I O P Z X C V B N M A S D F G H J K( V i c& 6 4 )

1 0 r e mQ W E R T Y U I O P L K J H G F D S A Z X C V B N+ ( P e ts e r i e s )

D o n ' tb e s t a r t l e dw h e ny o ul i s ti t . Y o u ' l ls e ea s c r e e nf u l lo f B A S I C

c o m m a n d sa n dy o u ' l lb e g r e e t e db y a ? S Y N T A X E R R O R .I f t h i si s

t h ef i r s tl i n e o fy o u rp r o g r a m ,t h ec o m p u t e rw i l ls t o ph e r e .I t w o n ' t

e v e nl i s tt o t h ep r i n t e r .T h ek e yi s t h el a s tc h a r a c t e r !O n t h e6 4 o r

V i c ,i t ' sa c a p i t a lL a n d o nt h e P e t si t ' sa g r a p h i cs y m b o l( t h ec r o s s ) .

A l lo f t h eo t h e rl e t t e r sa r eu n - t o k e n i z e dw h e nl i s t e db u t t h o s et w o

c h a r a c t e r sh a v en o c o m m a n de q u i v a l e n t ss o t h ec o m p u t e rr e g a r d s

t h e ma s a n e r r o r .N a t u r a l l y ,t h i sd o e s n ' ts t o pp e o p l ef r o mt y p i n g

L I S T2 0 - b u t i t m a yc o n f u s ea f e w .I f w e w a n ta r e g u l a rR E M

s t a t e m e n tt o i n c l u d eu p p e rc a s el e t t e r so r g r a p h i cs y m b o l s ,w i t h o u t

c a u s i n g t h ee f f e c ta b o v e ,a l l w e n e e di s a n o p e n i n gq u o t a t i o n

m a r k .T h i sa l l o w su s t o h a v eB O L D S T A N D O U TR E M St h a tc a n

e a s i l yb e s e e nw h i l el i s t i n g .T h e r e f o r e ,R E M sl i k e :

1 0 r e m" ( c )1 9 8 4J e f fG o e b e l "a r e a c c e p t a b l e .

W ec a na l s ot a k et h i su n u s u a lf e a t u r eo n es t e pf u r t h e r .W i t ht h e

r i g h tf o r m a t ,w e c a na c t u a l l ym a k eo u rl i s t i n g sE X E C U T Ec e r t a i n

f u n c t i o n sw h e nl i s t e d .I m a g i n et h ep o s s i b i l i t i e so p e n e d u pw h e n

w e c a nw r i t ep r o g r a m st h a tR U Nw h e n w eL I S Tt h e m . O fc o u r s e

i t ' sn o tq u i t et h a tg l a m o r o u s .I c a n ' tt e l ly o uh o wt o g e ty o u rl i s t st o

d o t r i gf u n c t i o n s o r e l a b o r a t em o r t g a g ec a l c u l a t i o n sb u tw ec a ng e t

i t t o d o s o m ep r e t t yn i c es c r e e nd i s p l a y s .L e t ' ss t o pp r o m i s i n ga n d

s t a r tw i t ht h ee x a m p l e s .T h ef o r m a ti s e x a c t s oI ' l ld e s c r i b ei t a s I

g o -

T Y P E :1 0 r e m" ( R E T U R N )

1 ) C u r s o ru p t o t h e s p o tj u s ta f t e rt h ef i r s tq u o t ea n dt y p eR V SO N

( C T R L+ 9 o n V i c& 6 4 ) .

2 ) N o wt y p ea S H I F T E D' M '- i ts h o u l d a p p e a ri n r e v e r s ef i e l d .T h i s

i s t h ek e yc h a r a c t e rt h a tm a k e si t a l l p o s s i b l e .

3 ) T h e nt y p eR V SO F F ,a q u o t ea n dt h e d e l e t e k e y .T h i s p u t sy o u

b a c ki n t o' q u o t em o d e ' .W ec a nn o wf o l l o wt h i s| J | w i t ha n y

s e q u e n c eo f c u r s o rc o n t r o l s o r c o n t r o lc h a r a c t e r sw ew a n t ,a n d

w h e nt h ep r o g r a mi s l i s t e dt h e yw i l ln o to n l yf u n c t i o nc o r r e c t l y ,

b u tt h e yw i l ln o tb e v i s i b l e .

4 ) L e t ' st r y a C L E A R S C R E E Nf i r s t .T y p et h eC L Rk e y .A r e v e r s e

c a p i t a lS s h o u l da p p e a r .N o wh i t r e t u r na n dL I S T .B I N G O !Y o u r

s c r e e nc l e a r s !

5 ) N o wr e - t y p et h e l i n eb u t f o l l o w t h e ' C L R 'w i t ha f e wd o w n

c u r s o r sa n da R V SO N .T h i s t i m et h er e v e r s el o w e rc a s e' r ' w i l l

T h eT r a n s a c t o r 5 4 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 57/84

a p p e a r .T h a t ' s o k .W ew a n ti t t o . N o we n t e ra t i t l el i k e ; J e f f ' s

L i s t i n g !E n do f fw i t ha f e wm o r ed o w nc u r s o r sa n dh i t r e t u r n .

W h e nw e l i s t ,■w e w i l ls e et h ep h r a s ec o m eu p c e n t r e s c r e e n ,

n i c e l ye m p h a s i z e di n r e v e r s e ,a n dt h er e s to f t h el i s t i n g( i f t h e r e

w a sa n y )w i l lf o l l o w af e wl i n e sd o w n .

Y o ua r ep r o b a b l y b e g i n n i n gt o t h i n ko f m a n yo t h e rw a y st h i sc a n

b e u s e d .R e m e m b e r ,A L Lt h ec u r s o rc o n t r o l sA N Dc o n t r o lc h a r a ct e r sc a n b eu s e d .I g e n e r a l l yu s ei t t o f o r c em y l i s t i n g si n t ol o w e r

c a s e( f o l l o wt h e ' M 'w i t ha s m a l l' n ' t o f l i pt o l o w e r c a s ea n da

s h i f t e d' N ' t o f o r c eu p p e rc a s e )a n d t h e n1 ' l o c k 't h e m o d eb y

f o l l o w i n gi t w i t ha c o n t r o l' h ' s o t h a tp e o p l ec a n ' tf l i pi t b a c kt o

u p p e rc a s ew i t ht h eC o m m o d o r ek e y .T h e n1 c e n t r ea t i t l ea n d

u n d e r l i n ei t w i t ha g r a p h i c c h a r a c t e r u s i n gj u s tt h er i g h tc o m b i n a

t i o n o fc u r s o rm o v e m e n t s .

T h e r ea r es o m e R E A L L Yn e a tt h i n g sy o uc a nd o o nt h e 8 0 3 2 /

S u p e r p e t c o m p u t e r s .O n et h e s es y s t e m s ,t h e r e a r e e x t r ac o n t r o l

c o d e sf o rs e t t i n gw i n d o w s ,d e l e t i n gt o e n do f l i n e ,s c r o l l i n gu p a n d

d o w na n d e v e nr i n g i n g t h eb e l l .A l lo f t h e s ec a n b ei n c o r p o r a t e d

i n t ot h el i s t i n g .I f w es e tu p a n i c eg r a p h i ct i t l ep a g ea n dt h e ns e tat o pl e f tw i n d o wj u s tb e l o wi t , a l lo f t h ep r o g r a mw i l ll i s tU N D E Rt h e

w i n d o w .Y o uc a n k e e p y o u rn a m eo n t h es c r e e n d u r i n gt h ee n t i r e

l i s ta n d t h e nr e - s e t t h ew i n d o wi n t h e l a s ts t a t e m e n t .( E d i t o r ' s

N o t e :I u s et h ef i r s tl i n e o fm yp r o g r a mt o s t o r e' D S A V E "@ : P R O G

N A M E " 'a n du s eJ e f f ' st e c h n i q u et o m a k ei t s t a yo n t h et o pl i n e .

W h e n1 w a n tt o m a k ea d i s k u p d a t e ,I s i m p l yh i t H O M Et w i c ea n d

R e t u r n .S u r es a v e sa l o to f t y p i n g . )

S i n c et h e s ec o m p u t e r s d on o th a v ea n a c t u a lc o n t r o lk e y ,y o uw i l l

h a v et o f o l l o w as l i g h t l y d i f f e r e n tp r o c e d u r e .

T Y P E :1 0 r e m" a n dh i tr e t u r n a sd e s c r i b e d a b o v e .

T h e nc u r s o ru p a n dt y p eR V S ,t h e nt h es h i f t e d' M ' .N o wt y p ea n ' o '

t o s e tt h e t o pl e f to r a s h i f t e d' 0 ' t os e tt h eb o t t o mr i g h tw i n d o w .A

' g ' w i l ld i n gt h eb e l l .T w os m a l l' s ' e sw i l lr e s e tt h ew i n d o w s . H e r ei s

a n i n t e r e s t i n ge x a m p l e :

1 0 r e m | r e a d y .

I t m a yt a k ey o ua f e wt r y ' st o f i g u r eo u tt h ee a s i e s tp r o c e d u r et o g e t

t h i sb u t a f t e rt h e f i r s tt i m e ,i t b e c o m e ss i m p l e .I f y o u l i s t t h i s

p r o g r a mn o w ,y o uw i l ls e eo n l yt h e' 1 0r e m 'a n dn o t h i n ge l s eb u t

w h e ny o u t r y t o m o v ey o u rc u r s o r ,i t w i l la p p e a rt h a ty o u r

c o m p u t e rh a sc r a s h e d .I n e f f e c t ,a l lt h a th a st a k e np l a c ei s t h a ty o u

h a v es e ta w i n d o w1 c h a r a c t e rb y 1 c h a r a c t e ra r o u n dy o u rc u r s o r .T o r e s e tt o n o r m a l ,t y p et h eH O M Ek e yt w i c e .I f t h i si s t h ef i r s tl i n e

i n y o u rp r o g r a m ,t h er e s to f t h el i n e sw i l ls t i l ll i s t ,b u tn o b o d yw i l l

b e a b l et o s e et h e mb e c a u s et h e yw i l lb e l i s t i n go n l yo n a 1 x 1

s c r e e n .T h e yw i l ls t i l ll i s tt o t h ep r i n t e ra n di f y o u w a n tt o s e et h e m ,

a l ly o uh a v et o d o i s t y p e :L I S T2 0 - .H o w e v e r ,t h e r e ' sn o r e a s o n

w h yy o uc a n ' tp u tm o r eo f t h e s et h r o u g hy o u rp r o g r a m .

O n eo f t h e m o s tu s e f u lw a y st o m a k et h i sw o r ki s f o r c o l o u r

c h a n g e s .S i n c e t h ec o l o u r s a r es i m p l yc o n t r o lf u n c t i o n so n t h e6 4

o r V I C( c o l o u r sa r e n o ta v a i l a b l eo n t h e P e ts e r i e s ) ,i t i s a s i m p l e

m a t t e ro f i n s e r t i n gt h e c o r r e c tk e y s t r o k e sa f t e rt h e' M ' .I f w e w a n t

t o f o r c e ab l u el i s t i n g ,s i m p l yf o l l o wt h e' M 'w i t ha ' c o n t r o l7 ' . T h i s

w a y ,w e c a nh a v ea l l o f o u rs u b r o u t i n e sl i s t i n d i f f e r e n tc o l o u r s

w h i c hm a k et h e mr e a l l ye a s yt o s p o t .K e e pi n m i n dt h a ta b l u e

l i s t i n go n a b l u eb a c k g r o u n di s i n v i s i b l ea n ds o m eo t h e rc o l o u r

c o m b i n a t i o n sa r e v i r t u a l l yi m p o s s i b l et o r e a d ,( i e : r e d o n b l u e )

S t i c kt o o n eo r t w o' s a f e 'c o l o u r sa n dk e e pa l t e r n a t i n g .

I f w e a r e i m a g i n a t i v e ,t h er e m sc a n b e u s e dt o d o s o m ee v e nm o r e

i n c r e d i b l et h i n g s .I f w e p l a no u rl i s t i n g s ,w e c a nu s e r e ms t a t e

m e n t st o h e l pm i s r e p r e s e n tp o r t i o n so f o u rp r o g r a m .F o re x a m p l e ,n e wa n yp r o g r a m si n m e m o r ya n de n t e rl i n e1 0 a s s y s l O 2 4 .W e

c a nn o wu s ea r e mi n l i n e2 0 t o m a k ei t L O O Kl i k es y s 2 0 2 4i f w e

w a n t .E n t e rt h i sa s l i n e 2 0 :

2 0 r e m "( a n dh i tr e t u r n )

N o wc u r s o ru p b e s i d et h eq u o t e sa n dt y p eR V So n . N o wt y p et h e

f o l l o w i n ge x a c t l y . A l lc h a r a c t e r ss h o u l d a p p e a ri n r e v e r s ep r i n t :

M Q Q ] ] ] 2 q

O nt h e P e ts e r i e s ,a d da n a d d i t i o n a l ' ] ' .I f a l lw e n tr i g h t ,y o u rl i s t i n g

s h o u l d a p p e a rn o r m a le x c e p tt h a tl i n e1 0 n o wr e a d ss y s 2 0 2 4 .I t

w i l ls t i l la c t u a l l yB Es y s l O 2 4a n dl i s t i n gl i n e1 0 b y i t s e l fw i l lp r o v e

t h i s ,b u tg o b e y o n d1 0 a n di t w i l lL O O Kl i k es y s 2 0 2 4 .

U s i n ga s i m i l a rm e t h o d ,w e a r e a b l et o c r e a t et o t a l l yM O C K

s t a t e m e n t s ,o r h i d ep o r t i o n so f s t a t e m e n t sf r o mv i e w .O n eo f t h e

c u r s o rc o n t r o l s n o t y e tt o u c h e do n i s t h eD E L E T Ek e y .I t t o oc a nb e

i n c o r p o r a t e di n t oo u rs t a t e m e n t s .W i t hi t , w e c a nc h a n g el i n e s

t o t a l l yo r v a n i s ha n yt r a c eo f t h e m .T r y :

1 0 p r i n t" h i ": r e m " a n dh i t r e t u r n .

A s u s u a l ,c u r s o ru p t o t h el a s tq u o t ea n dh i tt h eR V Sk e y .N o wt y p e

1 8 s m a l l' t ' s( 1 9f o r p e t s ) .N o wt y p eR V SO F Fa n da d da M O C Ks t a t e m e n tl i k e :

2 0 f o rt = 1 t o 1 0 0 0: n e w :n e x t

W h e ny o ul i s tt h i s ,y o u ' l ls e ej u s tt h em o c kB U Tw h e ny o ur u ni t ,

t h e R E A Ll i n e w i l lb e e x e c u t e d .Y o um a yn o t i c ea F L A S Ho f t h e

s t a t e m e n tb e i n gp r i n t e da n dt h e nd e l e t e db u tt h i sg o e su n - n o t i c e d

i f t h e t e c h n i q u ei s u s e di n t h e m i d d l eo f a p r o g r a ml i s t i n g .

R e m e m b e ra l s o ;Y O Uk n o wi t ' st h e r ea n da r el o o k i n gf o ri t . O t h e r s

w i l lb e s o m e w h a t m o r eu n s u s p e c t i n g

I ' l l l e a v ey o ut o t h i n ko f N E A Tw a y st o c o m b i n et h e s et r i c k s t o

c r e a t ee i t h e rn i c en e a tl i s t i n g st h a te v e r y b o d yc a nr e a d v e r ye a s i l y ,

o r t r i c k yn a s t yl i s t i n g st h a ta r ev i r t u a l l yi m p o s s i b l et o l i s t .I ' ms u r et h e r e a r ep r o b a b l ya s m a n yo t h e rm e t h o d sa s I h a v ed e s c r i b e d

h e r e ,a n dm a y b et h i s a r t i c l e w i l lp r o m p ts o m ec o m p u t e rW H I Z

K I D St o s a y ;" I c a nd o t h a t ! "a n ds u b m i t a na r t i c l ew i t ht h e i r' l i s t

s p i f f e r s ' .

A f e wq u i c kp o k e st o p l a yw i t h :

P E T :P O K E1 9 , 3 2

C 6 4 :P O K E2 2 , 3 5

T h i sv a n i s h e sa l l t h e s t a t e m e n tn u m b e r si n a l i s t i n gw i t h o u t

e f f e c t i n gt h er u n .I t w o r k sw i t hp r i n t e r st o o .T o r e s e ti t , d e l i b e r a t e l y

c a u s es o m e ? S Y N T A XE R R O Rf r o mt h ek e y b o a r d .

T h eT r a n s a c t o r 5 5 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 58/84

C o l l e c t i n g :A n o t h e rV i e w

W h e nl o g g i n go n t o a B B Sr e c e n t l y ,1 r e a da m e s s a g e f r o ma

d e p r e s s e d 6 4o w n e rw h oh a da f e wb o o t l e gp r o g r a m sb u t

w a n t e dm o r e .H e a s k e d ;" W h yi s i t n o b o d yw i l lG I V Em e

p r o g r a m s ?T h e ya l w a y sw a n tt o T R A D E ! "T h i sg o t m e

t h i n k i n g .W h yi s i t n o b o d yw a n t st o G I V Es o f t w a r ea w a y ?

T h i st h o u g h ti n s p i r e dt h i sa r t i c l e .A l o o ki n t ot h e " S O F T

W A R EC O L L E C T O R " .T h i sa r t i c l ei s a c o m p a r i s o nb e t w e e n

t h ea v e r a g eB O O T L E G G E Rt o t h ea v e r a g eS T A M P C O L L E C

T O R .

S t a m pc o l l e c t i o n sh o l dn o u s e f u lv a l u et o t h ec o l l e c t o r .T h e

s t a m p sm a yh a v ea f i n a n c i a lv a l u eb u tb a s i c a l l y ,t h e r ei s n o

U S Ef o r t h e m .T h e ya r e c o l l e c t e ds i m p l ya s " A C O L L E C

T O R ' SI T E M " .T h e r ei s a c e r t a i na m o u n to f p r e s t i g ei n

h a v i n gs o m e t h i n go t h e r sd o n o t .

I t m a yb e s u r p r i s i n gt o r e a l i z eb u tm o s ts o f t w a r ec o l l e c t o r s

d o n o tU S Et h ep r o g r a m st h e yh a v e .T h e ym a yp l a ya g a m e

n o wo r t h e n ,o r u s et h ew o r dp r o c e s s o r ,b u to f t e nt h eb u l ko f

t h ec o l l e c t i o ni s f o rt h es a m ep u r p o s e .I t g i v e ss a t i s f a c t i o nt o

k n o wt h e yh a v e s o m e t h i n gt h a to t h e r sd o n ' t ,o r t h a to t h e r s

h a v e h a dt o p a yf o r .T h i si s w h yy o u ' l lf i n ds o m es o f t w a r e

c o l l e c t i o n sn u m b e ri n t h e h u n d r e d s :t h e yk e e pE V E R Y

T H I N G !

W h e na s t a m pc o l l e c t o rh a sa " m i l l i o nd o l l a rs t a m p "a n dh e

t r a d e si t , h e e x p e c t sa s i m i l a r l yv a l u e ds t a m pi n r e t u r n .T h e

p e r s o nw h ot r a d e sf o r t h a ts t a m pk n o w sh e i s g e t t i n g a

" m i l l i o n d o l l a rs t a m p " .I t w i l la l w a y s b ea m i l l i o n d o l l a r

s t a m p ,a n di n f i v ey e a r sw h e nh e t r a d e si t , h e ' l le x p e c tt o g e t

a m i l l i o nd o l l a r so r m o r ef o ri t . S t a m p s s e l d o mg o D O W Ni n

v a l u e .

O n t h e o t h e rh a n d ,w h e nt h e b o o t l e g g e rh a s a " H O T

P R O G R A M " ;p e r h a p sa p r o g r a mt h a t ' sn o ty e to n t h em a r

k e t ,w h e nh e t r a d e si t , h e s t i l lr e t a i n sa c o p ys o t h e" m a r k e t

v a l u e "g o e sd o w no n en o t c h .H e t o o ,e x p e c t ss o m e t h i n go f

c o m p a r a b l ev a l u ei n r e t u r n .T h i si s w h e r et h ep r o b l e ml i e s .

I n t h e b o o t l e g t h e r ei s a s p e c i f i cc i r c u i t .S i m p l yp u t ,t h e r ea r e

p e o p l ew h ok n o wp e o p l ew h ok n o wp e o p l ew h ok n o wt h e

b o o t l e g g e r s .T h ec l o s e ry o ua r e t o t h e a c t u a lp i r a t e s ,t h e

n e w e ra n dm o r ev a l u a b l ey o u r p r o g r a m sw i l lb e . U n f o r t u

n a t e l y ,t h e p e o p l ea t t h e e n d o f t h e c h a i ns e l d o m h a v e

a n y t h i n gn e w t h a t t h e o t h e r sd o n ' t .F o r t h e " b o t t o m

r u n g e r s "i t b e c o m e sa c a t c h2 2 s i t u a t i o n .T h e ya r eu n a b l et o

t r a d ef o rn e wp r o g r a m sb e c a u s et h e yd o n ' th a v ea n y t h i n g

n e wt o t r a d e w i t h .

I n t h e b o o t l e g w o r l d , i t e m s h o l dp r e s t i g eo n l ys o l o n g .T h e

v a l u eo f a p r o g r a mi s d e t e r m i n e d b yt h es p e e do f d i s t r i b u

t i o n .A f t e r am o n t ho r t w o ,y o u ' l lf i n dE V E R Y B O D Yh a si t ;s o

i t ' sw o r t h l e s s .S e l d o mw o r t h l e s se n o u g ht o t h r o wi t o u t ,b u t

i t g o e so n a d i s ks o m e w h e r e ,o r i t b e c o m e sa " g i v e a w a y "t o

c o u s i n so r f r i e n d sw h oj u s tb o u g h ta 6 4 . ( I r r e l e v a n t n o t e :

A m e r i c a nE x p r e s s h a sr e c e n t l yr e l e a s e dT H EP L A T I N U M

C A R Db e c a u s ee v e r y b o d yh a st h e g o l d c a r dn o ws o i t ' sn o

l o n g e ra s t a t u ss y m b o l . )

T h i sf o r m s a n o t h e rg r o u po f c o l l e c t o r s .T h e ya r e t h ef r i e n d s

o f c o l l e c t o r sw h o s ec o l l e c t i o ni s t y p i c a l l yt h r e em o n t h s

b e h i n d e v e r y o n ee l s e s .T h i si s w h e r eo u rf r i e n dw h ol o g g e d

o n t h eB B Sl i e s .H e g o e st o s c h o o la n di s t r a d i n gf o ro t h e r

t h r e em o n t ho l d p r o g r a m s .H e ' sa g g r a v a t e db e c a u s eh e

k n o w st h e r ea r e b e t t e rt h i n g sa v a i l a b l eb u t h e c a n ' t g e t

t h e m ,u n t i lt h r e em o n t h sf r o mn o w .T h eg u y sa t t h e t o p

l a u g ha t h i m .I d o n ' tt h i n ka n yc a s e so f s u i c i d eh a v eb e e n

r e p o r t e dy e t ,b u ti t i s c e r t a i n l ya f r u s t r a t i n gs i t u a t i o nt o b e i n .

E d i t o r ' s N o t e :

T h ep r e c e d i n gw a ss u b m i t t e da n o n y m o u s l y . A l t h o u g hw e

d o n ' tn o r m a l l yp u b l i s ha r t i c l e sf r o mp h a n t o mw r i t e r s ,w e

f e l tt h ei n f o r m a t i o nc o n t a i n e dw o u l dg i v es o m ei n s i g h t i n t o

t h es i t u a t i o nw e ' v eb a s e dt h i si s s u e o n .

P i r a t e sk n o wb e t t e rt h a na n y b o d yt h e r a m i f i c a t i o n so f d i s

t r i b u t i n g p i r a t e ds o f t w a r e :f u n d a m e n t a l l yi t b o i l sd o w nt o

l o s t p r o f i t s .T h ec h a l l e n g eo f p i r a c yi s n o t g o i n gt o " g o

a w a y " .B u tf e wp i r a t e ss e ea n yc h a l l e n g ei n d i s t r i b u t i n gt o

t h e m o s tn u m b e ro f p e o p l e .A ' c l i q u e 'i s d e v e l o p i n gt h a t

m a ye v e nh e l pl i m i tt h ep r o b l e m . P e r h a p si f p i r a t e sw e r et o

u n i o n i z e ,o n l ya p i r a t ew o u l db e a b l et o g e ta c o p yo f a n

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

n u m b e ro f h a c k e r sw i t he n o u g hs m a r t st o c r a c ks o m eo f t h e

e l a b o r a t ep r o t e c t i o ns c h e m e st h a ts o m ep r o g r a m sh o s t ,t h e

o v e r a l l d i s t r i b u t i o no f b r o k e ns o f t w a r ew o u l dd r o pc o n s i d e r

a b l y .

A f a n t a s y ?P r o b a b l y . B u ti f p i r a t e sw a n tt o c o n t i n u eu n p r o -

t e c t i n gs o f t w a r e ,t h e y ' l ln e e ds u p p l yf o rt h e i rt w i s t e dh a b i t .I f

s o f t w a r ec o m p a n i e ss t a n dt o l o s et h e i r s h i r t sb y d e v e l o p i n g

n e ws o f t w a r e ,i t w o n ' tb e l o n gb e f o r ed e v e l o p m e n ts l o w st o

a s t a n d s t i l l .Y o up i r a t e sc a nh e l pc h a n g et h i sb l e a ko u t l o o k

f o rt h ea u t h o r sb y e x e r c i s i n gj u s ta l i t t l es e l fc o n t r o l .

T h eT r a n s a c t o r 5 6 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 59/84

S c r a m b l i n gAB A S I CP r o g r a m

M i c h a e lB e r t r a n d

M a d i s o n ,W I

M i c h a e l ' si s o n eo f a c o u p l e o ft e c h n i q u e sp r e s e n t e di n t h i s

i s s u ef o re n c r y p t i n ga B A S I Cp r o g r a mf i l e .

T h e s es c r a m b l ep r o g r a m sc o d i f ya g i v e nB A S I Cp r o g r a m

i n t oa m e a n i n g l e s ss e q u e n c eo f b y t e s .I f t h e o r i g i n a lp r o

g r a mi s s c r a t c h e d ,t h ec o d i f i e dv e r s i o ni s c o m p l e t e l ys e c u r e

f r o mu n a u t h o r i z e du s e .R e c o v e r i n gt h e o r i g i n a lp r o g r a m

r e q u i r e sa n o t h e ra p p l i c a t i o no f t h es c r a m b l e p r o g r a m ,u s i n g

t h e s a m em u l t i - d i g i ts e e du s e dt o c r e a t et h e s c r a m b l e d

v e r s i o n .E v e r ys i n g l eb y t eo f t h e o r i g i n a lp r o g r a mi s

c h a n g e di n c r e a t i n gt h es c r a m b l e d" p r o g r a m " ,b u ti n s u c ha

w a yt h a tt h e p r o c e d u r e c a n b er e v e r s e dt o r e c o v e r t h e

o r i g i n a lp r o g r a m .T h es u b j e c tp r o g r a m sa r e r e a df r o ma n d

w r i t t e nt o d i s k .

T h e r ea r e t h r e ed i f f e r e n ts c r a m b l e p r o g r a m s :

1 ) " s c r a m b l e . b a s "— a B A S I Cv e r s i o nw h i c hr u n so n P E T /

C B M sa n dt h eC o m m o d o r e6 4

2 ) " s c r a m b l e . m l "— a m a c h i n el a n g u a g ev e r s i o nf o rP E T /

C B M s

3 ) " s c r a m b l e 6 4 . m l "— a m a c h i n el a n g u a g ev e r s i o nf o rt h e

C o m m o d o r e6 4

T h e s a m es c r a m b l ep r o g r a mm u s tb e u s e di n c o d i n ga n d

u n c o d i n g ,s i n c es l i g h t l y d i f f e r e n ta l g o r i t h m sa r eu s e di n t h e

B A S I Ca n dm a c h i n el a n g u a g ev e r s i o n s .T h em a c h i n el a n

g u a g ep r o g r a mr u n sa b o u t1 2 t i m e sf a s t e rt h a nB A S I Co n m y

C B M / 4 0 4 0s y s t e m( a b o u t5 s e c o n d sp e rk i l o b y t ec o m p a r e d

t o 1 m i n u t ep e rk i l o b y t e ) .A r i t h m e t i ci n t h e m a c h i n el a n

g u a g ev e r s i o n sd e p e n d sh e a v i l yo n f l o a t i n gp o i n ta c c u m u l a

t o rR O Mr o u t i n e s .M a c h i n el a n g u a g ea f i c i o n a d o s a r ei n v i t e d

t o d i s a s s e m b l et h e c o d e , b u ti n w h a tf o l l o w sI w i l lb e

d i s c u s s i n gt h eB A S I Cv e r s i o n" s c r a m b l e . b a s "

F o r m a l l ys p e a k i n g ,a B A S I C p r o g r a mi s a f i n i t es e q u e n c eo f

b y t e s ,o r w h o l en u m b e r sb e t w e e n0 a n d2 5 5 .I n t h eC o m m o

d o r eD O S ,t h el a s t3 b y t e s a r e0 , a n dt h ef i r s t2 b y t e so f a

p r o g r a mo n d i s kc o n t a i nt h e s t a r t i n gl o a da d d r e s si n l o w

b y t e -h i g hb y t eo r d e r .

F o re x a m p l e ,c o n s i d e rt h eB A S I Cp r o g r a m :

1 0 p r i n t " h e l l o

O n d i s k , t h i sp r o g r a ma p p e a r sa s t h e ( d e c i m a l )s e q u e n c e :

1 4 1 34 1 0 0 1 5 3 3 47 2 6 9 7 6 7 6 7 90 0 0

T h ef i r s t2 b y t e si n d i c a t e t h eP E T / C B Ms t a r t i n gl o a da d d r e s s

o f $ 4 0 1= 1 0 2 5d e c i m a l .F o rt h eC o m m o d o r e6 4 ,t h ef i r s t4

w o u l db e a n 8 , i n d i c a t i n g as t a r t i n gl o a d a d d r e s so f

$ 8 0 1= 2 0 4 9d e c i m a l .

A p s e u d o - r a n d o ms e q u e n c ei s a r e p e a t a b l en u m b e rs e

q u e n c ew h o s ee l e m e n t sa r e e v e n l yd i s t r i b u t e d ,a s d e t e r

m i n e db y s t a t i s t i c a lt e s t s ,a m o n ga l l p o s s i b l ev a l u e s .T h e

b y t e - g e n e r a t i n gp s e u d o - r a n d o ms e q u e n c eu s e di n l i n e s

3 0 0 - 3 1 0o f t h e" s c r a m b l e . b a s "p r o g r a mi s z ( 0 ) , z ( l ) , z ( 2 )

w h e r e :

s ( 0 ) = u s e rd e t e r m i n e ds e e dv a l u eb e t w e e n0 a n d1

s ( i+ l ) = f r a c ( 1 9 7 * s ( i ) ) ,f o ri > = 0

z ( i ) = i n t ( 2 5 6 * s ( i ) ) ,f o ri > = 0

f r a c ( x )i s a f u n c t i o nf o u n do n m o s tp r o g r a m m a b l ec a l c u l a

t o r s ,t h o u g hn o ti n B A S I C .T h ed e f i n i t i o ni s a s f o l l o w s :

T h eT r a n s a c t o r 5 7 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 60/84

f r a c ( x ) =t h ef r a c t i o n a lp a r to f x

= x - i n t ( x )

T h es u b s c r i p tn o t a t i o n— s ( 0 ) , z ( 0 ) , s ( l ) ,e t c .— i s u s e dh e r e

f o r f a c i l i t yo f e x p o s i t i o n .T h e r ea r e n o a r r a y si n t h e

" s c r a m b l e . b a s " p r o g r a m ,s i n c et h e s e v a l u e s n e e d n ' tb e

s a v e d .

L e t ' s a s s u m e ,f o r e x a m p l e , a ni n i t i a ls e e d v a l u eo f

s ( 0 )= . 1 4 1 5 9 2 6 5 .A p p l y i n gt h ef o r m u l ay i e l d s :

z ( 0 )= i n t ( 2 5 6 * s ( 0 ) )= i n t ( 2 5 6 * .1 4 1 5 9 2 6 5 )= 3 6

s ( l )= f r a c ( 1 9 7 * s ( 0 ) )= f r a c ( 1 9 7 * .1 4 1 5 9 2 6 5 )= . 8 9 3 7 5 2 1

z ( l )= i n t ( 2 5 6 * s ( l ) )= i n t ( 2 5 6 * . 8 9 3 7 5 2 1 )= 2 2 8

s ( 2 )= f r a c ( 1 9 7 * s ( l ) )= f r a c ( 1 9 7 * . 8 9 3 7 5 2 1 ) = . 0 6 9 1 6 4

z ( 2 ) = i n t ( 2 5 6 * s ( 2 ) ) = i n t ( 2 5 6 * . 0 6 9 1 6 4 ) = 1 7

. . . a n d s oo n

T h ep o i n to f " s c r a m b l e . b a s "i s t o s c r a m b l et h e b y t e so f t h e

o r i g i n a lp r o g r a mb y o f f s e t t i n ge a c hb y t eo f t h ep r o g r a mw i t h

t h e c o r r e s p o n d i n ge l e m e n to f t h e p s e u d o - r a n d o ms e

q u e n c e .T h es c r a m b l e d " p r o g r a m "i s w r i t t e nt o d i s ka n di s

c o m p l e t e l yu n i n t e l l i g i b l e .S i n c et h ee n t i r es c r a m b l i n gp r o c e

d u r ei s r e v e r s i b l e ( u s i n gt h es a m es e e d ! ) ,t h eo r i g i n a lp r o

g r a mc a nb e r e c o v e r e dw h e n e v e rn e c e s s a r y .

T h e f o l l o w i n ge x a m p l ei l l u s t r a t e st h e a p p l i c a t i o no f

" s c r a m b l e . b a s "t o t h ep r o g r a m :

1 0 p r i n t " h e l l o

u s i n gt h es e e ds ( 0 )= . 1 4 1 5 9 2 6 5 .

T h ef i r s tl i n eb e l o wi s t h e p r o g r a m ,t h e s e c o n dl i n et h e

p s e u d o - r a n d o ms e q u e n c e ,a n dt h et h i r dl i n et h es c r a m b l e d

" p r o g r a m " :t h a ti s , t h es u mo f t h ef i r s t2 l i n e s( m o d u l o2 5 6 ) .

1 ) 1 4 1 3 4 1 0 0 1 5 3 3 4 7 2 6 9 7 6 7 6 7 90 0 0

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

3 ) 1 4 4 9 2 3 2 2 7 1 5 9 1 0 62 2 1 5 5 2 1 0 1 7 2 2 3 10 0 0

N o t i c et h a tt h e f i r s t2 a n dl a s t3 b y t e sa r e l e f tu n c h a n g e d .

A l s o , t h ea d d i t i o ni s " m o d u l o2 5 6 " :t h a ti s , i f t h e o r d i n a r y

s u me x c e e d s2 5 6 ,t h e n2 5 6i s s u b t r a c t e dt o k e e pt h er e s u l t

i n t h er a n g e0 - 2 5 5 .

I f t h en a m eo f t h ep r o g r a mi n l i n e1 i s " h e l l o " ,t h e nt h e

s c r a m b l e dp r o g r a mi s " h e l l o . s " .B y a p p l y i n g" s c r a m b l e

. b a s "t o " h e l l o . s " ,u s i n g t h es a m es e e ds ( 0 ) = .1 4 1 5 9 2 6 5 ,

a n dc h o o s i n gt h eu n s c r a m b l eo p t i o n ,t h eo r i g i n a lp r o g r a m

i s r e p r o d u c e du n d e rt h en a m e" h e l l o . s . s "

2 0 r e m* s c r a m b l e . b a sp r g— c o d i f i e si n p u tp r o g r a m

2 5 r e m* p $ o n t h eb a s i so f s e e ds . t h ec o d i f i e dp r o -

3 0 r e m* g r a mi s w r i t t e nt o d i s k ,a n dh a st h es a m e

3 5 r e m* n a m ea s t h eo r i g i n a l ,w i t h " , s "a p p e n d e d .

4 0 r e m* t h es c r a m b l e dp r o g r a mi s u n i n t e l l i g i b l e .

4 5 r e m* t h e' u n s c r a m b l e 'o p t i o nw i l lr e - c r e a t e t h e

5 0 r e m* o r i g i n a lp r o g r a mi f t h es a m es e e di s u s e d .

5 5 r e m* ' s c r a m b l e . b a s 'r u n so n p e t / c b mo r c - 6 4 .

6 0 r e m* + + + + b y m i c h a e lb e r t r a n d+ + + +

6 5 r e m*

7 5 :

1 0 0i n p u t "@ s e e db e t w e e n0 a n d1 " ; s : p r i n t

1 1 0i n p u t "p r o g r a mt o b e s c r a m b l e d / u n s c r a m b l e d; p $

: p r i n t

1 2 0o p e n5 , 8 , 5 ," 0 : "+ p $ +" , p , r "

: o p e n6 , 8 , 6 , "0 : "+ p $+ " . s , p , w "

1 3 0i n p u t" s c r a m b l eo r u n s c r a m b l e( s / u ) "; g $

1 3 6i f g $ < > "s " a n dg $ < > "u " t h e np r i n t :g o t o i3 0

1 4 0s g = 1 : i f g $ =" u " t h e ns g = - 1

1 5 4 :

1 5 6r e m* * l i n e1 6 0c o p i e st h ef i r s t2 b y t e s ,c o n -

1 5 8 r e m* * t a i n i n gt h el o a d a d d r e s s ,t o t h en e wf i l e

1 6 0g e t # 5 , z $: g o s u b 2 0 0: p r i n t # 6 , c h r $ ( z ) ; :g e t # 5 , z $

: g o s u b 2 0 0: p r i n t # 6 , c h r $ ( z ) ;

1 6 4 :

1 6 6r e m* * t h en e x t 2l i n e sc o n t a i nt h em a i nl o o p

1 7 0g e t # 5 , z $: g o s u b 2 0 0: i f z = 0 t h e n4 0 0

1 8 0g o s u b 3 0 0: p r i n t # 6 , c h r $ ( z ) ; :g o t o 1 7 0

1 8 4 :

1 9 6r e m* * s u b r o u t i n e2 0 0r e c o v e r sa b y t e ' sa s c i iv a l u e

2 0 0i f z $ = " " t h e nz = 0 : r e t u r n

2 1 0 z= a s c ( z $ ): r e t u r n

2 1 4 :

2 9 6r e m* * s u b r o u t i n e3 0 0o f f s e t st h e c u r r e n t b y t e

2 9 8r e m* * a n dg e n e r a t e st h e n e x to f f s e tv a l u e

3 0 0 z= z + 2 5 6 +s g n ( s g ) * i n t ( 2 5 6 * s )

: z = z - i n t ( z / 2 5 6 ) * 2 5 6

3 1 0s = 1 9 7 * s: s = s - i n t ( s ): r e t u r n

3 1 4 :

3 9 2 r e ml i n e4 0 0i s g o n et o w h e na 0 b y t ei s e n c o u n -

3 9 4r e mt e r e d .t h r e ec o n t i g u o u s0 ' se n dt h e c o d i f y i n g

3 9 6 r e mp r o c e s s— o n eo r t w o0 ' sa r eo f f s e tl i k e

3 9 8r e mo t h e rb y t e s ,a n dt h em a i nl o o pi s r e t u r n e dt o .4 0 0 g o s u b 3 0 0: z 1 = z

4 1 0g e t # 5 , z $: g o s u b 2 0 0: i f z t h e ng o s u b 3 0 0: g o t o 4 6 0

4 2 0 g o s u b 3 0 0: z 2= z

4 3 0g e t # 5 , z $: g o s u b 2 0 0: i f z t h e ng o s u b 3 0 0: g o t o 4 7 0

4 4 0p r i n t # 6 , c h r $ ( 0 ) c h r $ ( 0 ) c h r $ ( 0 ) ; :c l o s e 5: c l o s e 6: e n d

4 6 0p r i n t # 6 , c h r $ ( z 1 ) c h r $ ( z ) ;: g o t o 1 7 0

4 7 0p r i n t # 6 , c h r $ ( z 1 ) c h r $ ( z 2 ) c h r $ ( z ) ;: g o t o 1 7 0

T h eT r a n s a c t o r 5 8 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 61/84

2 0 r e m* s c r a m b l e . m lp r o g r a m— m a c h i n el a n g u a g ev e r -

2 5 r e m* s i o nf o rp e t / c b mt h a tr u n sa b o u t1 2 t i m e s

3 0 r e m* f a s t e rt h a nt h eb a s i cp r o g r a m ,t h e a l g o r i t h m

3 5 r e m* g e n e r a t i n gt h ep s e u d o - r a n d o ms e q u e n c ei s

4 0 r e m* s i m i l a rt o t h eb a s i cv e r s i o n , r e l y i n gh e a v i l y

4 5 r e m* o n t h ef l o a t i n gp o i n ta c c u m u l a t o r s ,m / lp r o -

5 0 r e m* g r a mr e s i d e sa t $ 0 3 3 c - $ 0 3 e 4( 8 2 8 - 9 9 6d e c ) .

6 0 r e m* + + ++ b y m i c h a e lb e r t r a n d+ + ++7 0 :

1 0 0i n p u t "Q i n p u ts e e db e t w e e n0 a n d1 " ; s : p r i n t

1 1 0i n p u t "p r o g r a mt o b e s c r a m b l e d / u n s c r a m b l e d "; p $

: p r i n t

1 2 0o p e n 5 , 8 , 5 , "0 : " + p $ + " , p , r "

: o p e n 6 , 8 , 6 , "0 : " + p $ + " . s , p , w "

1 3 0i n p u t "s c r a m b l eo r u n s c r a m b l e( s / u ) "; g $

1 4 0i f g $ < > "s " a n dg $ < > "u " t h e np r i n t :g o t o i3 0

1 6 0g e t # 5 , z $: g o s u b 2 8 0: p r i n t # 6 , c h r $ ( z ) ;

: g e t # 5 , z $: g o s u b 2 8 0: p r i n t # 6 , c h r $ ( z ) ;

1 7 0f o ri = 8 2 8t o 9 9 6: r e a d x: p o k e i , x: n e x t i

: m = 8 5 6: g o s u b 2 0 0

1 8 0i f g $ =" u " t h e np o k e 8 6 8 , 5 6: p o k e 8 6 9 , 2 3 7: r e m* * r e p l a c ea d cw i t hs b ci n m / l* *

1 9 0s y s 9 0 5: c l o s e 5: c l o s e 6: e n d

1 9 2 :

1 9 4r e m* * s u b r o u t i n e2 0 0 - 2 3 0p u t sr e a ln u m b e rs ,

1 9 6r e m* * i n f l o a t i n gp o i n tf o r m a t ,i n t om e m o r y

1 9 8r e m* * l o c a t i o n s[ m , m+ 1 , m + 2 , m + 3 , m +4 ]

2 0 0e = i n t ( l o g ( s ) / l o g ( 2 ) ) :p ( 0 )= 1 2 9+ e

2 1 0p = ( s / 2 t e - 1 ) * 1 2 8: p ( 1 )= m t ( p ) :r = p - p ( 1 )

2 2 0f o ri = 2 t o 4 : p = r * 2 5 6: p ( i )= m t ( p ) :r = p - p ( i ) :n e x t i

2 3 0f o ri = 0 t o 4 : p o k e m+ i , p ( i ) :n e x t i : r e t u r n

2 3 2 :

2 8 0i f z $ = " " t h e n z =0 : r e t u r n

2 9 0z = a s c ( z $ ) :r e t u r n

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

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

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

3 2 ,2 0 4 ,

3 0 4d a t a

3 0 6d a t a

3 2 , 2 1 0 , 2 5 5 ,

0 , 0 , 0 ,

0 , 0 , 0 ,

9 0 , 3 , 7 2 ,

0 ,

0 ,

1 6 9 ,

9 6

6 9 .

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

3 0 8d a t a 3 2 , 9 4 , 2 0 3 ,3 2 ,

3 1 2d a t a1 6 0

3 2

3 1 4d a t a 3

2 0 6 ,

3 ,

6 0 ,

3 2 ,

3 2 , 1 0 0 ,

3 1 6d a t a 6 0 , 3 , 2 0 8

1 7 3 , 9 9 ,3

3 1 8d a t a 3 3 , 1 6 9 , 0

0 , 3 2 , 7 4

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

3 2 , 7 4 ,

3 2 2d a t a 3 2 , 7 4 ,

1 7 3 , 9 8 ,

3 2 4d a t a 9 9 , 3 , 3 2 ,

1 0 0 , 3 , 3 2 ,

3 2 , 1 3 7 , 2 0 1

3 2 , 1 0 , 2 0 5

3 , 2 4 0 ,

7 4 , 3 ,

3 , 1 4 1 ,

2 7 ,

3 2 ,

3 2 ,

3 ,

7 2 ,

1 0 4 ,

7 6 ,

3 2 ,

7 4 ,

7 4 ,

2 5 5 ,

0 , 1 3 6 ,

0 , 2 4 . 1 0 9

8 8 , 1 6 0 ,

9 3 , 1 6 0 ,

6 6 ,2 0 5 ,

1 6 2 ,

1 0 4 ,

3 2 ,

1 3 7 ,

3 ,

1 0 0 ,

3 ,

3 ,

0 ,

9 6 ,

3 ,

3 ,

3 ,

9 ,

7 6 ,

9 8 .

3 2 ,

6 0 .

7 4 ,

1 6 9 ,

1 7 3 ,

3 2 ,

1 3 7 ,

7 4 ,

3 ,

3 ,

1 0 0 ,

3 ,

3 ,

1 0 4 ,

3 ,

3

8 2 ,

8 8

9 6 ,

1 0 0

3 ,

3 2

3 ,

2 0 8

1 6 9 ,

3 2

3 ,

3

7 2 ,

1 7 3

3 2 ,

2 0 r e m* s c r a m b l e 6 4 . m l— m a c h i n e

2 5 r e m* l a n g u a g ev e r s i o nf o rc - 6 4 ,

3 0 r e m* i d e n t i c a lt o c o d ei n s c r a m -

3 5 r e m* b l e . m l ,e x c e p tf o rl o c a t i o n s

4 0 r e m* o f s o m er o mr o u t i n e s , m / l

4 5 r e m* r e s i d e sa t $ c 3 3 ct o $ c 3 e 4

5 0 r e m* ( 4 9 9 8 0t o 5 0 1 4 8d e c ) .

5 5 r e m* + + b y m i c h a e l b e r t r a n d+ +7 0 :

1 0 0i n p u t "@ i n p u ts e e d b e t w e e n0 a n d1 "; s :p r i n t

1 1 0i n p u t "p r o g r a mt o b e s c r a m b l e do r u n s c r a m b l e d "; p !

: p r i n t

1 2 0 o p e n 5 , 8 , 5 ," 0 : "+ p $ +" , p , r "

: o p e n 6 , 8 , 6 , "0 : " + p $ + " . s , p , w "

1 3 0i n p u t "s c r a m b l eo r u n s c r a m b l e( s / u ) "; g $

1 4 0i f g $ < > "s " a n dg $ < > "u " t h e np r i n t :g o t o i3 0

1 6 0g e t # 5 , z $: g o s u b 2 8 0: p r i n t # 6 , c h r $ ( z ) ;

: g e t # 5 , z $: g o s u b 2 8 0: p r i n t # 6 , c h r $ ( z ) ;

1 7 0f o ri = 4 9 9 8 0t o 5 0 1 4 8: r e a d x: p o k e i , x: n e x t i

: m = 5 0 0 0 8: g o s u b 2 0 0

1 8 0i f g $ =" u " t h e np o k e 5 0 0 2 0 , 5 6 : p o k e 5 0 0 2 1 , 2 3 7: r e m* r e p l a c ea d cw i t hs b ci n m / l*

1 9 0 s y s 5 0 0 5 7: c l o s e 5: c l o s e 6: e n d

2 0 0e = i n t ( l o g ( s ) / l o g ( 2 ) ) : p ( 0 )= 1 2 9+ e

2 1 0 p= ( s / 2 t e - 1 ) * 1 2 8 :p ( 1 )= i n t ( p ) :r = p - p ( 1 )

2 2 0f o ri = 2 t o 4 : p = r * 2 5 6: p ( i )= m t ( p ) :r = p - p ( i ) :n e x t i

2 3 0f o ri = 0 t o 4 : p o k e m+ i , p ( i ) :n e x t i : r e t u r n

2 8 0i f z $ = " " t h e nz = 0 : r e t u r n

2 9 0 z= a s c ( z $ ) :r e t u r n

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

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

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

3 2 ,2 0 4 , 2 5 5 ,

3 0 4d a t a

0 ,

3 0 6d a t a 9 0 ,

3 2 ,

3 0 8d a t a 3 2 ,

2 0 4 ,

3 2 , 2 1 0 , 2 5 5 ,

0 , 0 , 0 ,

0 , 0 ,

1 9 5 , 7 2 , 1 6 9 ,

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

4 0 , 1 8 6 ,

1 8 8 , 3 2 ,

3 2 ,

8 3 ,

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

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

3 1 4d a t a1 9 5 , 3 2 ,7 4 , 1 9 5 ,

3 2 , 1 0 0 ,1 9 5

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

1 7 3 ,

3 1 6d a t a 3 3 ,

0 ,

3 1 8d a t a 7 4 ,

3 2 ,

3 2 0d a t a 3 2 ,

1 7 3 ,

3 2 2d a t a 9 9 ,

9 9 , 1 9 5 ,

1 6 9 , 0 ,

3 2 , 7 4 ,

1 9 5 , 9 6 ,

7 4 , 1 9 5 ,

7 4 , 1 9 5 ,

9 8 , 1 9 5 ,

1 9 5 , 3 2 ,

1 0 0 , 1 9 5 ,3 2 ,

9 6

0 , 0 , 1 3 6 ,6 9 ,

0 , 0 , 2 4 , 1 0 9

8 8 , 1 6 0 , 1 9 5 .

9 3 , 1 6 0 , 1 9 5

1 2 , 1 8 8 ,3 2 ,

1 8 4 ,1 6 2 , 8 8

1 8 7 , 1 0 4 ,9 6 ,

9 , 3 2 , 1 0 0

7 6 , 1 3 7 , 1 9 5 ,

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

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

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

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

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

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

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

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

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

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

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

7 6 , 1 3 7 ,3

T h eT r a n s a c t o r 5 9 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 62/84

T w oP a s s w o r d

P r o t e c t i o nT o o l s

G . D e n i s

G r e e n f i e l d P a r k ,Q u e .

H a v ey o ur e a d t h ep a p e r so r b e e nt o t h em o v i e sr e c e n t l y ? .

F r a n k l y ,e v e ni f y o ua r e l i v i n go n a d e s e r t e di s l a n d ,y o u

h a v ep r o b a b l yh e a r da b o u tt h el a t e s ta v a l a n c h eo f c o m p u t e r

b r e a k - i n s .Y o uh a v ep r o b a b l ya l s oh e a r d a b o u th o we a s i l y

m o s to f t h e mc o u l dh a v e b e e na v o i d e d :b y u s i n ga p a s s w o r d

a t s i g n - o nt i m e ,f o re x a m p l e .

T e c h n i q u e sO f P a s s w o r dP r o t e c t i o n

T h i sa r t i c l ed e s c r i b e st w o p r o g r a m st h a tp r o v i d ep a s s w o r d

p r o t e c t i o nf o rp r o g r a ma n dd a t af i l e s .

T h ef i r s tp r o g r a mi s a s m a l lB a s i cr o u t i n et h a ty o ui n s e r ta t

t h eb e g i n n i n go f y o u ro w np r o g r a m .T h r o u g ha n o p t i o n ,i t

w i l la s kf o ra p a s s w o r dt h ef i r s tt i m ei t i s r u n .F r o mt h e no n ,

t h eo n l yw a yt o l i s to r r u nt h ep r o t e c t e dp r o g r a mi s t o e n t e r

i t s p a s s w o r df i r s t .

T h es e c o n dp r o g r a mm a k e sa p r o t e c t e dc o p yo f a n yf i l e

u s i n ga p a s s w o r d .T h eo n l yw a yt o e v e r u s et h e p r o t e c t e d

f i l e i s t o r e r u ni t t h r o u g ht h e p r o g r a mu s i n gt h e s a m e

p a s s w o r d .

U s i n gC r y p t o g r a p h y

W ew i l lb e u s i n go n eo f m a n yt e c h n i q u e si n C r y p t o g r a p h y ,

t h ea r t o fc o n c e a l i n gt h em e a n i n go f a m e s s a g e .W ew i l lt a k e

a n e x i s t i n gp r o g r a mo r d a t af i l e ,a s s i g ni t a p a s s w o r d( o rK e y )

o f u p t o e i g h t yc h a r a c t e r s ,a n dr u ni t t h r o u g h a ne n c r y p t i o n

r o u t i n et h a tw i l lc o m p l e t e l yt r a n s f o r mi t i n t ou n r e c o g n i z a b l e

g a r b l e .T h er e s u l to f t h i sp r o c e d u r ei s c a l l e da c r y p t o g r a m .I t

i s s t o r e dj u s t l i k et h eo r i g i n a lp r o g r a mo r f i l eb u tt h eo n l y

w a yt o u s et h ec r y p t o g r a mi s t o t r a n s f o r mi t b a c ki n t oi t s

o r i g i n a lf o r m .T o " d e c r y p t "a f i l e ,y o um u s tu s et h eo r i g i n a l

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

O n l yt h eo r i g i n a lp a s s w o r dc a n b eu s e d :a n y t h i n ge l s ew i l l

g a r b l e t h ep r o g r a mo r f i l eb e y o n dr e c o g n i t i o n .

B a c kT o B a s i c s :T h eL o g i c a lO p e r a t o r s

B e f o r eg o i n g t h r o u g ht h e a c t u a lp r o g r a m s ,l e t u s r e v i e w

s o m eb a c k g r o u n di n f o r m a t i o n .T h ee n c r y p t i o ni s d o n eb y

u s i n gt h eE x c l u s i v eO r ( X O R )o p e r a t o r .Y o uh a v ep r o b a b l y

a l r e a d yu s e dt h e l o g i c a lo p e r a t o r s( s o m e t i m e sc a l l e dB o o l

e a nO p e r a t o r s )A N D ,O R ,N O T . T h eX O Ro p e r a t o ri s a l e s s

c o m m o n l yu s e dm e m b e ro f t h e f a m i l y( i n f a c t ,C o m m o

d o r e ' s B a s i cd o e sn o t i n c l u d e aX O Ro p e r a t o ra l t h o u g ht h e

6 5 0 2m a c h i n el a n g u a g e d o e sa l l o wf o ra X O R ) .

T h el o g i c a lo p e r a t o r sp e r f o r mt h e i rc o r r e s p o n d i n gl o g i c a l

o p e r a t i o no n e a c hb i n a r yd i g i t( b i t )o f t h e i ro p e r a n d s .F o r

e x a m p l e ,i n C = A A N DB , a s s u m i n gt h a tA , B a n dC a r e

e a c hm a d eu p o f 8 b i t s ,b i t * Oo f C i s e q u a lt o t h e r e s u l to f

A N D ' i n gb i t # 0o f A w i t hb i t * Oo f B . B i t * l o fC i s e q u a lt o

b i t # lo f A A N D ' e dw i t hb i t *1 o f B a n ds o o n .. . T h er e s u l to f

A N D ' i n gt w ob i t si s s h o w ni n T a b l e1 a s w e l la s t h ee f f e c to f

a l l t h e o t h e rl o g i c a lo p e r a t i o n so n a l lt h ep o s s i b l eb i tc o m b i

n a t i o n s .

T a b l e1

A N D O R N O T X O R

1 A N D] =

1 A N D0 =

0 A N D1 =

0 A N D0 =

R e s u l ti s 1

i f b o t hb i t s

a r e 1

1

0

0

0

1 O R1 = 1

1 O R 0= 1

0 O R1 = 1

0 O R0 = 0

R e s u l ti s 1

i f e i t h e r

b i t i s 1

N O T 0=

N O T 1=

E a c hb i l

= 1

= 0

. i s

c o m p l e m e n t e d

1 X O R1 = 0

1 X O R0 = 1

0 X O R 1= 1

0 X O R0 = 0

R e s u l ti s 1 i f

o n eo r t h e o t h e r

b u tn o tb o t h

E x c l u s i v eO RP r o p e r t i e s

A n i n t e r e s t i n gp r o p e r t yo f t h eX O Ro p e r a t o ri s i t ' ss o c a l l e d

" r e f l e x i v i t y "p r o p e r t y .Y e p p p !y o uh e a r dr i g h t ," r e f l e x i v i t y " .

I f w eX O Ra b y t e w i t ha f i x e dv a l u eK , w eo b t a i na n e wv a l u e

f o rt h er e s u l t i n gb y t e .A n di f w e t a k et h i sr e s u l ta n dX O Ri t

w i t ht h es a m ev a l u eK w e o b t a i nt h eo r i g i n a lb y t ev a l u e .

E x a m p l e1 w i l lc o n v i n c ey o uo f t h i s :a s s u m e1 5 i s t h ev a l u e

o f o u rb y t ea n d3 4 i s t h ev a l u eK . T h er e s u l to f t h eX O R

o p e r a t i o ni s 4 5 . I f w ew e r et o f o r g e tt h a to u ro r i g i n a lv a l u e

w a s1 5 ,w e c a nw o r ko u rw a yb a c kt o i t f r o m4 5 p r o v i d i n g

w e r e m e m b e ro u rv a l u eK ( 3 4 ) .

a ) 1 5 X O R3 4 = 4 5

b ) 4 5 X O R3 4 = 1 5

T h er e f l e x i v i t yo f t h e X O Ro p e r a t o r ' i st h e s e c r e tt o o u r

e n c r y p t i o n / d e c r y p t i o nt e c h n i q u e :w e r e a di n a f i l eb y t eb y

b y t e ,X O Re a c hb y t ew i t ha c h o s e n p a s s w o r d( o u rK v a l u e )

T h eT r a n s a c t o r 6 0 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 63/84

a n ds t o r et h en e wb y t ei n o u rd e s t i n a t i o nf i l e( c r y p t o g r a m ) .

T h en e wf i l e i sn o wu n r e c o g n i z a b l e .U n l e s sw e h a v et h e

k e y ,t h ef i l e i su s e l e s st o u s .I f w eh a v et h ep a s s w o r d ,w ec a n

r e s t o r eo u rf i l e .

T h i ss i m p l et e c h n i q u ee a s i l yl e n d si t s e l ft o f u r t h e rr e f i n e

m e n t sw i t ht h eu s eo f a s e q u e n c eo f K v a l u e st h a tt r a n s f o r m

s u c c e s s i v e l ya l lt h e b y t e sc o n t a i n e di n a f i l e .

G r e a t !N o ww e k n o w h o wt o s c r a m b l ea f i l eu s i n gt h eX O R

o p e r a t o r . R i g h t ?W r o n g !W ed o n ' th a v ea n X O Ro p e r a t o ri n

B a s i c !

C o n s t r u c t i n gT h eX O RO p e r a t o r

I f y o us t u d i e dB o o l e a no p e r a t o r si n m a t h ,y o u p r o b a b l y

r e m e m b e rt h a tw e c a nb u i l d t h eX O Ro p e r a t o r u s i n g t h e

A N D ,O Ra n dN O To p e r a t o r s .R i g h t ? .. . W e l li f y o ud i dn o t ,

s o m ei n t u i t i o n .. . c a n g i v eu s a n a n s w e r .L e t u s l o o ka tT a b l e1 . I n C = A X O RB , C h a st h ev a l u eo n ei f : " A i s o n e

a n d Bi s z e r o "O R" A i s z e r oa n d Bi s o n e " .M o r es i m p l y :

C = ( A A N DN O TB ) O R( N O TA A N DB )

. . . W e l l ,t a k em yw o r df o ri t . . .

M a n i p u l a t i n gB A S I C

L i s t i n g1 i s t h e s m a l lB A S I Cr o u t i n et h a ti s t o b e i n s e r t e da t

t h eb e g i n n i n go f a n y p r o g r a my o uw a n tt o p a s s w o r d - p r o

t e c t .T h i sr o u t i n ed o e st h e a c t u a le n c r y p t i o na n dd e c r y p t i o no f t h e p r o g r a mf o l l o w i n gi t . S o m e h o w ,i t h a s t o f i n do u t

w h e r et h e p r o t e c t e dp a r t o f t h e p r o g r a mi s l o c a t e di n

m e m o r y .I n o r d e rt o u n d e r s t a n dh o wi t d o e st h i s ,w en e e dt o

k n o w h o wB A S I Cp r o g r a m sa r e s t o r e di n m e m o r y .

P r o g r a m sa r es t o r e di n t h eC o m m o d o r e - 6 4m e m o r ys t a r t

i n ga t l o c a t i o n2 0 4 8( $ 0 8 0 0 )( s e eD i a g r a m1 ) .T h ef i r s tb y t ei s

a l l w a y sa z e r ob y t e .E a c hB A S I Cl i n eh a sa t w ob y t e l o n g

L I N Kf i e l da n da t w ob y t el o n gL I N E N O .f o l l o w e db y t h e

a c t u a lB A S I Cc o d e a n do n eN U L Lb y t ei n d i c a t i n gE N Do f

L I N E .T h eL I N Kf i e l dn o r m a l l yc o n t a i n sa t w ob y t ea d d r e s s

p o i n t i n gt o t h e n e x tl i n e ' sL I N Kf i e l d .T h ee n do f a B A S I Cp r o g r a mi s i n d i c a t e db y a d u m m yl i n ew i t ht h eL I N Kf i e l d

c o n t a i n i n gt w oN U L L S .

S o m eU s e f u lA d d r e s s e s

A d d r e s s e s4 3 - 4 4( $ 2 B - $ 2 C )i n p a g ez e r o c o n t a i nt h eS t a r -

t - o f - B A S I Cp o i n t e r( a t w ob y t e a d d r e s s )t o t h e f i r s tl i n e ' s

L I N Kf i e l d .T h e yn o r m a l l yc o n t a i nt h ev a l u e2 0 4 9( $ 0 8 0 1 ) .

A d d r e s s e s4 5 - 4 6( $ 2 D - $ 2 E )a r eB A S I C ' SS t a r t - o f - V a r i a b l e s

p o i n t e rw h i c hn o r m a l l yp o i n t s

j u s tb e y o n dt h ep r o g r a m

s t o r a g es p a c e ,w h e r et h e v a r i a b l e su s e di n t h ep r o g r a ma r e

s t o r e d .

A n i n t e r e s t i n gr o u t i n eb e l o n g i n gt o t h e B A S I C - i n - R o mi s

l o c a t e da t 4 2 2 9 1 ( $ A 5 3 3 )a n d i s c a l l e dt h e R E - C H A I N

r o u t i n e .B yd o i n ga :

S Y S ( 4 2 2 9 1 )

. . . y o uc a nf o r c ea l l t h eL I N Kf i e l d s t ob e r e c a l c u l a t e d .T h i s

r o u t i n ei s c a l l e db y B A S I C w h e n e v e ry o uL O A Da p r o g r a m ;

i t e n s u r e st h a tw h e r e v e ry o u rp r o g r a mi s l o a d e di n t om e mo r y ,i t ' sL I N Ka d d r e s s e sp o i n tt o t h er i g h tp l a c e s .

N o w ,l e t ' sl o o ka t h o wt h e R U N ,L I S T ,L O A Da n dS A V E

i n s t r u c t i o n su s et h e s ed i f f e r e n ts t o r a g es p a c e sa n dp o i n t e r s .

L O A Dt r a n s f e r sy o u rp r o g r a ms t a r t i n ga t t h ea d d r e s sf o u n d

i n 4 3 - 4 4 .W h e ni t h a sf i n i s h e d ,i t u p d a t e sl o c a t i o n s4 5 - 4 6 .I t

t h e ne x e c u t e st h eR E - C H A I Nr o u t i n eu p t o t h eN U L LL I N K

f i e l d( e n do f p r o g r a m ) .

R U Na n dL I S Tu s et h e a d d r e s ss t o r e da t 4 3 - 4 4t o b e g i nt h e i r

o p e r a t i o na n dw i l ln o te x e c u t eo r l i s tb e y o n dt h eN U L LL I N Kf i e l d .

S A V Es t o r e sw h a t e v e ri s l o c a t e db e t w e e nt h e a d d r e s s e s

c o n t a i n e di n 4 3 - 4 4a n d4 5 - 4 6 .U s u a l l y ,t h i sw o u l db e y o u r

p r o g r a m .

A s y o uw i l ls o o nf i n d o u t ,t h e p r o g r a mt h a tf o l l o w sw i l l

m a k ec l e v e ru s eo f w h a t w a sj u s td e s c r i b e d .

P R O G R A M1 : P a s s w o r dP r o t e c t e dP r o g r a m

T y p et h er o u t i n es h o w ni n L i s t i n g1 a t t h eb e g i n n i n go f t h e

p r o g r a m y o u w a n tt o p r o t e c t .C h e c kf o re r r o r sa n ds a v ei t .

D i a g r a m1 : B A S I CT e x tL i n e S t r u c t u r e

L i n k L i n k

t i _ J t t

s t a r t2 0 4 8

t I

l i n e "

p o i n t e rt o n e x tl i n e■

e n do f p r g

0 L H L H l i n et e x t 0 L H L H l i n et e x t 0 0 0

p o i n t e rt o n e x tl i n e■

T h eT r a n s a c t o r 6 1 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 64/84

R u n n i n gI t

I n o r d e rt o p r o t e c t o re n c r y p ty o u rp r o g r a m ,t y p e" R U N1 0 " .

T h e r es h o u l db e s o m em o r ep r o g r a ml i n e sb e y o n dl i n e1 6 0 ,

a s n o t e di n t h e l i s t i n g ,o r t h e r ew i l lb e n o t h i n gt o e n c r y p t .

Y o uw i l lb e a s k e df o ra p a s s w o r d .E n t e ra n yn u m b e ru p t o 8 0

c h a r a c t e r s . A f t e r af e w s e c o n d s ,t h e m e s s a g e" D O N E "

s h o u l da p p e a r .T h ep r o g r a mi s n o we n c r y p t e da n dc a n b e

s a v e d .

T o r u n a p r o t e c t e dp r o g r a m , s i m p l yL O A Di t a n d t y p e

" R U N " .Y o uw i l lb e a s k e df o rt h ep a s s w o r d u n d e rw h i c hi t

w a sl a s tp r o t e c t e d .T y p i n gi n a w r o n gp a s s w o r dw i l lc o r r u p t

y o u r p r o g r a m a n dp r o b a b l yt h em a c h i n e .I f y o ut y p ei n t h e

r i g h tp a s s w o r d ,t h e p r o g r a ms h o u l ds o o nb e e x e c u t i n g

p r o p e r l y( a f t e ri t h a sb e e nd e c r y p t e d ) .

W h e ny o ur u nt h ep r o g r a m ,y o uw i l ln o t i c et h a tt h e p a s s

w o r di s " i n v i s i b l e " a si t i s b e i n gt y p e d .L i n e7 0 c h a n g e st h e

c u r s o rc o l o rt o b l u e( t h es a m ea s t h e b a c k g r o u n dc o l o r )

b e f o r ea s k i n gf o rt h ep a s s w o r d .

Y o uw i l lp r o b a b l ya l s on o t i c et h a ti f y o ul i s ta p r o g r a mi n i t s

e n c r y p t e df o r m ,o n l yt h e p a s s w o r dr o u t i n ei s v i s i b l e :t h e

e n c r y p t e dp a r tw i l ln o tb e l i s t e d .

H o wI t W o r k s

R a t h e r t h a ne x p l a i n i n gt h e l i s t i n g

t h r o u g hi t ' sm a i nf u n c t i o n s :

l i n eb y l i n e ,I w i l lg o

- D e t e r m i n a t i o no f t h e m e m o r yl o c a t i o na t t h e e n do f t h e

p a s s w o r dr o u t i n e( o rt h eb e g i n n i n go f t h ea c t u a lp r o g r a m ) :

L i n e1 6 0i s c r u c i a li n t h i sm a t t e rs i n c e t h et w od o l l a rs i g n s

( A S C I Iv a l u e3 6 )a t t h ee n do f t h el i n ew i l li n d i c a t et h ee n do f

t h ep a s s w o r dr o u t i n e .L i n e2 0 p o s i t i o n su s t o t h ef i r s tl i n e ' s

L I N Kf i e l d .U s i n gt h eS t a r t - o f - B A S I Cp o i n t e r ,l i n e3 0 c a l c u

l a t e st h ea d d r e s so f t h e n e x tL I N Kf i e l d .W ew i l lb e j u m p i n g

f r o mL I N Kf i e l dt o L I N Kf i e l du n t i ll i n e4 0 d e t e c t st h et w o

d o l l a r s i g n sa t t h ee n do f l i n e1 6 0 .V a r i a b l eA n o wp o i n t st o

t h ef i r s tB A S I Cl i n et o b e e n c r y p t e do r d e c r y p t e d .

- A c c e p t a n c eo f t h ep a s s w o r d :L i n e7 0 a c c e p t s t h ep a s s w o r d .

L i n e9 0 p l a c e st h ep a s s w o r di n t oa n i n t e g e r m a t r i x .

- D e t e r m i n a t i o no f t h e l o c a t i o no f t h ee n do f t h ep r o g r a m :

L i n e1 0 0c a l c u l a t e st h ep o s i t i o no f t h el a s tc h a r a c t e ro f t h e

l a s tl i n eu s i n g t h eS t a r t - o f - V a r i a b l e sp o i n t e r( R e m e m b e r :

B A S I Cs t o r e si t sv a r i a b l e sj u s ta f t e rt h ee n do f t h ep r o g r a m ) .

- E n c r y p t i o n / d e c r y p t i o nr o u t i n e :L i n e s1 1 0 - 1 2 0 d ot h ea c

t u a lc r y p t o g r a p h i cX O R ' i n g .A s i n d e xJ i s s e q u e n t i a l l ym o v

i n gt h r o u g hm e m o r y ,i n d e xI u s e se a c hp a s s w o r dc h a r a c t e r

v a l u ea s a n e wk e y .U s i n gm u l t i p l ek e yv a l u e s r e d u c e st h e

p r o b a b i l i t yo f a " p i r a t e "d e c i p h e r i n gt h ep a s s w o r d .

- H i d i n go f t h e e n c r y p t e dp r o g r a m :T o m a k es u r e t h ee n

c r y p t e dp a r t o ft h e p r o g r a md o e sn o ts h o ww h e na L I S T

c o m m a n di s p a s s e d ,l i n e1 3 0i n s e r t sa d u m m yN U L LL I N K

v a l u er i g h ta f t e rt h ep a s s w o r dr o u t i n e .B A S I Ci s t h e nf o o l e d

i n t ot h i n k i n g t h ep r o g r a m e n d st h e r eb e c a u s eo f t h eN U L L

L I N K .

- R e - e n a b l i n go f t h e d e c r y p t e dp r o g r a m :T h ed e c r y p t i o n

p r o c e s sr e s e t st h e N U L LL I N Kv a l u ep r e v i o u s l ys e t d u r i n g

e n c r y p t i o n( l a s tf u n c t i o n ) .L i n e1 4 0w i l lr e p l a c e t h ed u m m y

N U L LL I N Kb y a n o nz e r ov a l u e .L i n e1 5 0c a l l st h e R E -

- C H A I Nr o u t i n et o m a k es u r et h eL I N Kf i e l di s p u tb a c kt o

i t ' sc o r r e c t v a l u e .

P R O G R A M2 : F i l eP r o t e c t i o n

T h ep r o g r a ms h o w ni n L i s t i n g2 i s c o m p l e t e b yi t s e l f .I t w i l l

e n c r y p to r d e c r y p ta n yd i s kf i l e .

R u n n i n gI t

T y p e" R U N " .Y o uw i l lb e a s k e df o rt h en a m eo f t h ef i l et o b e

e n c r y p t e da n dt h en a m eu n d e rw h i c ht h ee n c r y p t e dv e r s i o n

i s t o b e c r e a t e d .T o d e c r y p ta f i l es i m p l yp a s si t t h r o u g ht h e

p r o g r a ma s e c o n dt i m eu s i n gt h eo r i g i n a lp a s s w o r d .

H o wI t W o r k s

- O p e n i n go f t h ef i l e s :L i n e s 1 0t h r o u g h7 0 .

- A c c e p t a n c eo f t h ep a s s w o r d :L i n e8 0 a c c e p t s t h ep a s s w o r d .

L i n e s1 1 0t o 1 4 0p u tt h ep a s s w o r di n t oa n i n t e g e r m a t r i x .

- E n c r y p t i o n / d e c r y p t i o n :L i n e s1 5 0 t o 2 2 0 i n p u t ab y t e ,

e n c r y p t / d e c r y p ti t a n d s e n di t o u tt o t h en e wf i l e .L i n e2 1 0

d o e st h eX O R ' i n g .S i m i l a r l yt o P r o g r a m1 , i n d e xI u s e se a c h

p a s s w o r dc h a r a c t e rv a l u ea s an e wk e y .

C o n c l u s i o n

A l t h o u g hm o r ef o o l p r o o fe n c r y p t i o nm e t h o d se x i s t ,t h eo n e

p r e s e n t e d h e r eo f f e r st h e a d v a n t a g eo f b e i n ge f f e c t i v ey e t

s i m p l ee n o u g ht o b e i m p l e m e n t e dq u i c k l y .

N O T E :O n t h eP E T / C B M ,r e p l a c e t h e f o l l o w i n g a d d r e s s e s :

P O I N T E R C 6 4 P E T

S t a r t - o f - B A S I C4 3 - 4 4( $ 2 B - $ 2 C ) 4 0 - 4 1( $ 2 8 - $ 2 9 )

S t a r t - o f - V a r i a b l e s4 5 - 4 6( $ 2 D - $ 2 E ) 4 2 - 4 3 ( $ 2 A - $ 2 B )

R E - C H A I Nr o u t i n e4 2 2 9 1( $ A 5 3 3 )4 6 2 6 2( $ B 4 B 6 )B A S I C4 . 0

5 0 4 3 4( $ C 4 4 2 )B A S I C2 . 0

T h eT r a n s a c t o r 6 2 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 65/84

0 g o t o 2 0: r e m * * * p a s s w o r dd e c r y p t i o n

1 0 s = - 1 : r e m * * * p a s s w o r de n c r y p t i o n L i s t i n g1

2 0 a = p e e k ( 4 4 ) * 2 5 6+ p e e k ( 4 3 )

3 0 a = p e e k ( a )+ p e e k ( a+ 1 ) * 2 5 6

4 0 i f p e e k ( a - 2 ) 0 3 6 o r p e e k ( a - 3 ) 0 3 6 t h e n g o t o 3 0: r e m * * * l o c a t ee n do f p a s s w o r dr o u t .

5 0 i f s = 0 a n d( p e e k ( a ) < > 0o r p e e k ( a+ 1) < > 0 )t h e ng o t o i6 0

6 0 i f s = - 1 a n dp e e k ( a )= 0 a n d p e e k ( a +1 ) = 0 t h e np r i n t " a l l r e a d yp r o t e c t e d ": e n d

7 0i n p u t "p a s s w o r d :Q "; p $: p r i n t" 0 ": i f p $ =" " t h e n1 3 07 5 r e mc o n t r o lc h a r si n 7 0 a r eb l u e ,t h e nI t . b l u e

8 0 d i mp ( l e n ( p $ ) )

9 0 f o rp i = 1 t o l e n ( p $ ) :p ( p l )= a s c ( m i d $ ( p $ , p l , 1 ) ): n e x t

1 0 0 b= p e e k ( 4 6 ) * 2 5 6+ p e e k ( 4 5 ) - 4

1 1 0 f o r j= a + 2 t o b :i = i + 1 : i f i > p l - 1t h e ni = 1

1 2 0c = p e e k ( j ) :d = p ( i ) :p o k e j . ( c a n d n o t d )o r ( n o t c a n d d ): n e x t :r e m * * *p o k e j ,' c x o rd '

1 3 0i f s = - 1 t h e np o k e a . O: p o k e a +1 , 0: p r i n t" d o n e ": e n d: r e m * * * h i d ep r o g r a m

1 4 0 p o k e a , 1 : p o k e a +1 , 1 : r e m * * * u n - h i d e p r o g r a m

1 5 0s y s ( 4 2 2 9 1 ) :r e m * * * r e - c h a i nb a s i cl i n k s

1 6 0 c l r : r e m $ $ j1 0 0 0* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

1 1 0 0p r i n t "i m p o r t a n t ! !l i n e1 6 0m u s t e n dw i t ht w od o l l a rs i g n s

1 2 0 0p r i n t "y o u rp r o g r a mb e g i n sa n y w h e r e b e y o n dl i n e1 6 0

1 3 0 0* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

5 r e m * * * f i l ee n c r y p t i o n / d e c r y p t i o n * * *

1 0 o p e n 1 5 , 8 , 1 5

2 0 i n p u t "s o u r c ef i l en a m e , t y p e "; f $ , t $ L i s t i n g2

3 0 o p e n 5 , 8 , 5 , f $ +" , " + t $ +" , r "

4 0 g o s u b 1 0 0 0

5 0 i n p u t " d e s t i n a t i o nf i l en a m e "; f $

6 0 o p e n6 , 8 , 6 , f $+ " , " + 1 $+ " , w "

7 0 g o s u b 1 0 0 0

8 0 i n p u t" p a s s w o r d :Q J "; p $ : p n n t " 0 "

9 0 p r i n t " w a i t .. . "

9 5 r e m * * * n o p a s s w o r de n t e r e df o r c e sa z e r ov a l u ek e y .i . e .n o e n c r y p t i o n * * *

1 0 0i f p $ =" " t h e np i = 1 : p ( 1 )= 0 : g o t o 1 5 0

1 1 0 d i mp ( l e n ( p $ ) )

1 2 0f o rp i = 1 t o l e n ( p $ )

1 3 0p ( p l )= a s c ( m i d $ ( p $ , p l , 1 ) )

1 4 0n e x t

1 4 5 r e m * * * b e g i n n i n go f c o p yl o o p * * *

1 5 0g e t # 5 , c $: i f c $ = " " t h e nc $ = c h r $ ( 0 )

1 6 0s x = s t

1 7 0 i = i + 1

1 8 0i f i > p l - 1t h e ni = 1

1 9 0c = a s c ( c $ )

2 0 0d = p ( i )

2 0 5 r e m * * * cx o rd s a m ea s ( c a n dn o td ) o r ( n o tc a n dd ) * * *

2 1 0p r i n t # 6 , c h r $ ( ( c a n d n o t d )o r ( n o t c a n d d ) ) ;

2 2 0 i f s x= 0 t h e n1 5 0

2 2 5 r e m * * * e n do f c o p yl o o p * * *

2 3 0c l o s e 5

2 4 0 g o s u b 1 0 0 0

2 5 0 c l o s e 6

2 6 0 g o s u b 1 0 0 0

2 7 0 c l o s e 1 5

2 8 0e n d

1 0 0 0i n p u t # 1 5 ,e , e $ ,f $ ,g $1 0 1 0i f e < > 0t h e np r i n t e ,e $ ,f $ , g $ : c l o s e 5: c l o s e 6: c l o s e 1 5: e n d

1 0 2 0r e t u r n

T h eT r a n s a c t o r 6 3 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 66/84

D i s kD e f e n d e r D a v i dC o b bW i n d s o r ,O n t .

T h i sp r o g r a m w a sd e s i g n e da n dw r i t t e nf o ra C 6 4w i t h a

1 5 4 1d i s kd r i v e , ( s e e E d i t o r ' s N o t e ) .I t a l l o w so n et o p r o t e c t

a n du n p r o t e c ti n d i v i d u a lp r o g r a mf i l e s .O n c ea f i l e i sp r o

t e c t e d ,o n l yt h e u s e rw h op r o t e c t e d t h ef i l ec a nh a v ea c c e s s

t o t h ep r o g r a m .T h eg i v e s t h eu s e r ' sd i s kc o m p l e t ep r i v a c y .

T h ep r o g r a ma s k st h eu s e rt o e n t e r a 5 c h a r a c t e rc o m b i n a

t i o nc o d e .I t i s v i t a lt h a ty o ur e m e m b e rt h i sc o d e .S i n c et h e

c o d ei s n o tr e c o r d e db y t h ep r o g r a m ,i f y o uf o r g e ti t y o uw i l l

n o tb e a b l et o r e c o v e ra n yf i l e sp r o t e c t e db y t h a tc o d e .

S h o u l dy o ue n t e ra n i n c o r r e c tc o d ey o um a yn e v e rs e et h a t

f i l ea g a i n .T h ep r o g r a m ,i n s u c ha c a s e ,w o u l da t t e m p tt o

r e v e r s e t h e l o c k i n gp r o c e d u r eu s i n g t h ei n c o r r e c tc o d e

w h i c h w o u l dc o m p o u n dt h e e n c r y p t i o n .T o u n l o c ks u c ha

f i l e ,i t w o u l df i r s th a v et o b e u n l o c k e dw i t ht h e i n c o r r e c t

c o d et o c r e a t ea f i l et h a tc o u l db e u n l o c k e dw i t h t h eo r i g i n a l

c o r r e c tc o d e .A s y o uc a ns e e ,i t i s n e c e s s a r yt o r e m e m b e rt h e

c o d e y o um a k eu p .

T h i sm e t h o dm a ys e e mh a r s ho n p e o p l ew i t hb a dm e m o

r i e s ,h o w e v e ri t s h o u l ds t o ps o f t w a r ep i r a t e sc o l d .W i t h o u t

t h ec o m b i n a t i o nc o d e , p r o t e c t e df i l e sa r el o c k e du p s o l i d .

T h eo d d so f a n y o n eg u e s s i n gy o u r c o d ea r e o n e i n 5 0

t r i l l i o n .Y o uh a v ea b e t t e rc h a n c e w i n n i n ga l o t t e r y .

T h ep r o g r a mp r o t e c t sf i l e sb y u s i n gy o u rc o m b i n a t i o nc o d e .

F o re x a m p l e ,s u p p o s ey o u rc o d ei s " 4 2 3 4 5 " .T h el a s td i g i t5

i s a d d e dt o t h ef i r s tb y t ei n t h ef i r s ts e c t o ro f y o u rd i s kf i l e .

T h e na l l t h e n u m b e r s ,e x c e p tt h e f i r s to n e( 4 ) ,r o t a t eo n e

p o s i t i o nt o t h e r i g h t .T h el a s tn u m b e r5 i s m o v e dt o t h e

s e c o n dp o s i t i o n .N o wy o u r c o d ei s " 4 5 2 3 4 " .T h ec y c l et h e n

r e p e a t si t s e l f ,o n l yt h el a s td i g i t4 i s a d d e dt o t h es e c o n db y t e

o f t h es e c t o r .T h ef i r s td i g i ts e r v e sa s a c o u n t e r .E v e r yt i m ea

c y c l ei s c o m p l e t et h ec o u n t e ri s d e c r e m e n t e d b y1 . W h e ni t

r e a c h e s0 t h ee n t i r ec o d ei s r e s e tt o i t so r i g i n a ls t a t e( 4 5 2 3 4 ) .

T h ep r o c e s sc o n t i n u e sf o rt h ee n t i r es e c t o r .

N o t e :F o r t h e f i r s tR U No f D i s kD e f e n d e r , u s ea

d i s k e t t et h a tc o n t a i n sn o t h i n gi m p o r t a n t .I f y o u

m a k ea m i s t a k ee n t e r i n gt h e p r o g r a my o u m a y

h a r ms o m ef i l e s .

T h eu s e rn e e do n l yr e m e m b e rt h eo r i g i n a lc o d e .T h ep r og r a mk e e p st r a c ko f a l l r o t a t i o n sa n da l t e r a t i o n so n d i s k .

F i l e sa r eu n p r o t e c t e db y t h es a m ep r o c e s s ,o n l yi n r e v e r s e .

I n s t e a do f a d d i n g ,t h el a s td i g i ti s n o ws u b t r a c t e df r o m e a c h

b y t e .H o w e v e r ,t h ec o d ed i g i t ss t i l lr o t a t er i g h t .

D i s kD e f e n d e rw i l lo n l yp r o t e c tf i l e ss p e c i f i e db y t h eu s e r .I f

D i s kD e f e n d e ri s n o to n t h e d i s kc o n t a i n i n gt h e p r o t e c t e d

f i l e s ,i t i s a g o o di d e at o p u ti t t h e r e .O t h e r w i s ey o uw i l ln e e d

t o L O A Di t f r o ma n o t h e rd i s ka n ds u b s t i t u t et h e d i s k w i t h

y o u rp r o t e c t e df i l e sb e f o r eR U N i n g .

Y o um i g h te v e ni n c l u d ei t a s p a r to f a n o t h e r p r o g r a m .D i s k

D e f e n d e rw i l lp r o t e c ta n yt y p eo f f i l e .

E d i t o r ' sN o t e :D i s kD e f e n d e rw a sw r i t t e nf o rt h e6 4 / 1 5 4 1

b u tw i t hm i n o rm o d i f i c a t i o n sw i l lw o r kw i t ha n yC o m m o

d o r em a c h i n e a n dd r i v et y p e .T h eo n l yc h a n g er e q u i r e dl i e s

a t l i n e1 0 0 2 0 . V a r i a b l eT & S r e p r e s e n t t h ef i r s tt r a c ka n d

s e c t o ro f t h ed i r e c t o r y .F o r4 0 4 0d r i v e s ,l e a v ea s i s ( 1 8a n d

0 ) . F o r8 0 5 0a n d 8 2 5 0c h a n g eT t o e q u a l3 9 .F o rh a r dd i s k

c h a n g et o T= 0 , S = l .

W h e ne n t e r i n g t h ep r o g r a m ,y o u ' l ln o t i c et h a ta l o t o f t h e

c o d ec a n b ee n t e r e db y m a k i n gm i n o rc h a n g e st o p r e v i o u s

l i n e s .L i n e s1 2 0t o 1 7 0 c a nb e e n t e r e di n n o t i m eb y m e r e l y

c h a n g i n gt h ep r e v i o u sl i n en u m b e ra n da c o u p l eo f o t h e r

c h a r a c t e r se a c hl i n e .N o t i c eh o wl i n e s2 0 0 t o 3 1 0 a r e

v i r t u a l l yt h e s a m ea s 3 0 0t o 4 1 0 .S a m ew i t ht h e f i r s tf e w

l i n e sf r o m 1 0 0 0 0o n ,a n d2 0 0 0 0o n .

D a v i dh a sc h o s e nt o " r o t a t e "t h ef i r s tb l o c ko f t h ef i l eo n l y .

B u ts i n c e t h ef o r w a r dt r a c ka n d s e c t o rp o i n t e r s a r ea l s o

e n c o d e d ,t h ed i s kh a sn o w a yo f k n o w i n g w h e r et h e n e x t

s e c t o rl i e s .W h e np r o g r a m sa r ei n v o l v e d ,2 5 6b y t e sc a nh o l d

a l o to f c o d eu n l e s sy o u h a v e 2 5 6b y t e so f R E Ms t a t e m e n t s .

B u t t h e f i r s t2 5 6b y t e so f a l o n gS E Qf i l e w i l lb e l o n g

f o r g o t t e nw h e nt h e n e x t b l o c ki s f o u n d .S e a s o n e dp i r a t e s ,

w i t h i n5 g u e s s e s ,c o u l df i n dt h en e x t b l o c ko f a C o m m o d o r e

d i s kf i l ew h i c hw o u l d ,i n t h i sc a s e ,l e a dt h e mt o t h er e s to f

t h a tf i l e .P e r h a p sD a v i d ' sp r o g r a ms h o u l dd o a l l b l o c k so f a

f i l e .

F i n a l l y ,D i s kD e f e n d e rc o u l db e u s e di n c o n j u n c t i o nw i t h

s o m eo t h e r p r o t e c t i o ns c h e m e si n t h i si s s u et o m a k ea

p r o g r a mp r e t t yt o u g ht o c r a c k .

T h eT r a n s a c t o r 6 4 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 67/84

" l O r e md i s kd e f e n d e r

2 0 r e mb y d a v i dc o b b

3 0 r e m

4 0 d w $= c h r $ ( 1 7 ) :z $ = c h r $ ( O ): c r $= c h r $ ( 1 3 )

5 0 d i mr $ ( 2 5 5 ) , r ( 2 5 6 )

6 0 p r i n td w $ "e n t e rc o m b i n a t i o n ": c $= " "

7 0 p r i n t" 5 d i g i tc o d e "

8 0 p r i n td w $ "c o d e : "t a b ( 6 ) ;

9 0 g e ta $ : i f a $ = " " o r a $ = c r $ t h e n9 0

1 0 0p r i n t" * " ; : c $= c $ + a $ : a $ = " " : i f l e n ( c $ ) < > 5

t h e n9 0

1 1 0p r i n tc r $ " a r ey o us u r e" ;

1 1 1i n p u ta n $: i f l e f t $ ( a n $ ,1 ) < > "y " t h e n6 0

1 2 0n 1 = a s c ( m i d $ ( c $ , 1 , 1 ) )

1 3 0 n 2= a s c ( m i d $ ( c $ , 2 , 1 ) ) :o 2 = n 2

1 4 0 n 3= a s c ( m i d $ ( c $ , 3 , 1 ) ) :o 3 = n 3

1 5 0 n 4= a s c ( m i d $ ( c $ , 4 , 1 ) ) :o 4 = n 4

1 6 0n 5= a s c ( m i d $ ( c $ , 5 , 1 ) ) :o 5 = n 5

1 7 0p r i n td w $ "l o c k o ru n l o c kf i l e ? ( l , u ) "d w $

1 8 0i n p u ta n $: i f a n $ < > "I " a n da n $ < > "u " t h e n1 7 0

1 9 0i f a n $= " u " t h e n3 2 0

2 0 0r e m* * * l o c kf i l e* * *

2 1O g o s u b1 0 0 0 0

2 2 0 c n= n 1

2 3 0 g o s u b2 0 0 0 0

2 4 0f o rI = 0 t o 2 5 5

2 5 0r ( l )= r ( l )+ n 5

2 6 0e n = c n - 1: i f e n = 0 t h e ng o s u b4 0 0 0 0: g o t o2 8 0

2 7 0 g o s u b4 0 5 0 0

2 8 0i f r ( l ) > 2 5 5t h e nr ( l )= r ( l ) - 2 5 6

2 9 0n e x t :g o s u b 3 0 0 0 0

3 0 0p r i n t" f i l e :" a n $ "i s l o c k e d . "

3 1 0c l o s e 2: c l o s e i5 : e n d : r e m* * e n do f l o c k* *

3 2 0r e m* * *u n l o c kf i l e* * *

3 3 0 g o s u b 1 0 0 0 0: e n = n 1 : g o s u b2 0 0 0 0

3 4 0f o rI = 0 t o 2 5 5

3 5 0r ( l )= r ( l ) - n 5

3 6 0e n = c n - 1: i f e n = 0 t h e ng o s u b 4 0 0 0 0: g o t o3 8 03 7 0 g o s u b4 0 5 0 0

3 8 0i f r ( l ) < 0t h e nr ( l )= r ( l )+ 2 5 6

3 9 0n e x t :g o s u b3 0 0 0 0

4 0 0p r i n t" f i l e :" a n $ "i s u n l o c k e d . "

4 1 0c l o s e 2: c l o s e 1 5: e n d : r e m* * e n do f u n l o c k* *

1 0 0 0 0r e m* f i n dt r a c k& s e c t o ro f f i l e*

1 0 0 1 0p r i n t" e n t e rn a m eo f f i l e ": i n p u ta n $

1 0 0 2 0m = l e n ( a n $ ) :t = 1 8 : s = 1

: r e m* a d j u s tf o rd r i v et y p e*

1 0 0 3 0o p e n 2 , 8 , 2 ," # " : o p e n1 5 , 8 , 1 5

1 0 0 4 0p r i n t # 1 5 , "u 1 : "2 ; 8 ; t ; s: g o s u b5 0 0 0 0

1 0 0 5 0 l n $ =" "

1 0 0 6 0f o rI = 0 t o 2 5 4

1 0 0 7 0g e t # 2 , r $ ( l ) :i f r $ ( l )= " " t h e nr $ ( l )= z $

1 0 0 8 0l n $= l n $+ r $ ( l ) :n e x t : z= 1

1 0 0 9 0i f m i d $ ( l n $ , z , m )= a n $t h e n1 0 1 2 0

1 0 1 0 0 z= z + 1 : i f z = 2 5 6 - mt h e ns = a s c ( r $ ( 1 ) )

: g o t o1 0 0 4 0

1 0 1 1 0g o t o1 0 0 9 0

1 0 1 2 0i f m + z > 2 5 6t h e n1 0 1 4 0

1 0 1 3 0i f a s c ( m i d $ ( l n $ , m+ z , 1 ) ) < >1 6 0t h e n1 0 1 0 0

1 0 1 4 0t r = a s c ( m i d $ ( l n $ , z - 2 , 1 ) )

1 0 1 5 0s c = a s c ( m i d $ ( l n $ , z - 1 , 1 ) )

1 0 1 6 0c l o s e i5 : c l o s e 2: r e t u r n

2 0 0 0 0r e m* r e a dt r a c k& s e c t o r*

2 0 0 1 0 o p e n 2 , 8 , 2 , " # ": o p e n1 5 , 8 , 1 5

2 0 0 2 0p r i n t # 1 5 , "u 1 : "2 ; 8 ; t r ; s c: g o s u b5 0 0 0 0

2 0 0 3 0f o rI = 0 t o 2 5 5

2 0 0 4 0g e t # 2 , r $ ( l ) :i f r $ ( l )= " " t h e nr $ ( l )= z $

2 0 0 5 0r ( l )= a s c ( r $ ( l ) )

2 0 0 6 0n e x t

2 0 0 7 0c l o s e 1 5: c l o s e 2: r e t u r n

3 0 0 0 0r e m* w r i t et r a c k& s e c t o r*

3 0 0 1 0 o p e n 2 , 8 , 2 , " # ": o p e n1 5 , 8 , 1 5

3 0 0 2 0p r i n t # 1 5 , "b - p : "2 ; 0: f o rI = 0 t o 2 5 5

3 0 0 4 0r $ ( l )= c h r $ ( r ( l ) )

3 0 0 5 0p r i n t # 2 , r $ ( l ) ;: n e x t

3 0 0 6 0p r i n t # 1 5 , "u 2 : "2 ; 8 ; t r ; s c

3 0 0 7 0g o s u b5 0 0 0 0: r e t u r n

4 0 0 0 0r e m* c h e c k c o d e*

4 0 0 1 0e n = n 1 : n 2 = o 2 : n 3 = o 3 : n 4 = o 4 : n 5 = o 5

4 0 0 2 0r e t u r n

4 0 5 0 0r e m* r o t a t eu s e rc o d e*

4 0 5 1 0o o = n 5 : n 5 = n 4 : n 4= n 3 : n 3 = n 2 : n 2 = o o

4 0 5 2 0r e t u r n5 0 0 0 0r e m* e r r o rc h e c k*

5 0 0 1 0i n p u t # 1 5 ,a , a $ , q 1 ,q 2

5 0 0 2 0i f a = 0 t h e nr e t u r n

5 0 0 3 0p r i n t" e r r o r" ; a

5 0 0 4 0p r i n ta $

5 0 0 5 0p r i n t" t r a c k" ; q 1 ; "s e c t o r" ; q 2

5 0 0 6 0c l o s e 1 5: c l o s e 2: e n d

T h eT r a n s a c t o r 6 5 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 68/84

L o c k D i s k :F o r c eR U NO nL O A DP r o g r a mb y J i mB u t t e r f i e l d

P r e s e n t e db y K a r lJ . H . H i l d o n ,M a n a g i n gE d i t o r

T h eo n l yw a yt o g e tp r o g r a m st o b e n e f i tf r o ma l l t h o s eP O K E sy o u

p u ti n s i d ei s t o m a k et h e me x e c u t et h o s eP O K E s . Y o uc a na d da l l

t h e p r o t e c t i o ni n t h ew o r l db u ti f L O A Da n dS A V Ei s s t i l la l l o w e d ,

y o u ' v ea c c o m p l i s h e dn o t h i n g .

L o c k D i s ki s a u t i l i t yt h a ta d d sd a t at o t h eb e g i n n i n go f a p r o g r a m

f i l e .T h i sd a t ah a sb e e nc a r e f u l l yc h o s e n .

T h ef i r s tt w ob y t e so f a p r o g r a mf i l eo n d i s k r e p r e s e n t t h ea d d r e s s

a t w h i c ht h eL O A Dr o u t i n ew i l lp l a c et h a tf i l ei n m e m o r y .L o c k -

D i s kc h a n g e st h o s eb y t e st o a s p o t w e l lb e n e a t ht h eS t a r t o fB A S I C

t e x ts p a c e .W h e nt h en e wd o c t o r e df i l ec o m e si n t ot h em a c h i n e ,

s e v e r a ld e l i c a t em e m o r yl o c a t i o n sg e t c l o b b e r e db y t h e a d d e d

d a t a .A f t e rL O A Dd o e si t s p a r t ,t h em a c h i n ei s l i t e r a l l yt a k e nb y

s u r p r i s e .I n s t e a do f g i v i n g c o n t r o lb a c kt o t h e k e y b o a r d ,t h e

m a c h i n et a k e sa n a b r u p t d e t o u rs t r a i g h tt o R U N .

N a t u r a l l y ,L o c k D i s kd i s a b l e st h eS T O Pk e y .J i md o e ss o m eo t h e r

r e a l l yn a s t y t h i n g st o t h eo p e r a t i n gs y s t e mt o o .B u ti f w er e v e a l t o o

m u c ha b o u t L o c k D i s k ,i t sp o t e n t c yw i l lb e s e v e r e l yd i l u t e d .

T w oV e r s i o n s

L o c k D i s ki s l i s t e db e l o wf o r b o t ht h e C o m m o d o r e6 4 a n d P E T /

C B Mm a c h i n e s .S o r r y ,n o V I Cv e r s i o n ; t o om a n y m e m o r yc o n f i g u

r a t i o n s .

B o t hv e r s i o n s a r eu s e dt h es a m ew a y .Y o u ' l lb e a s k e df o rt h en a m e

o f t h ep r o g r a my o uw a n tl o c k e d .L o c k D i s k c h e c k st o m a k es u r e

t h i sf i l ei s a n o r m a lp r o g r a mb y t e s t i n gt h es t a r ta d d r e s s .I f t h el o w

b y t ei s n o tC H R $ ( 1 ) ,L o c k D i s kq u i t s .

T h e ny o us u p p l ya n e wp r o g r a mn a m ea s t h et i t l eo f y o u rl o c k e d

f i l e .T h e6 4 v e r s i o na s s u m e sy o uh a v ea s i n g l e d r i v e ;t h eP E T / C B M

v e r s i o nw i l l l e t y o u p i c k t h e d r i v en u m b e ri f y o u h a v et w o .

L o c k D i s kt a k e so f ff r o mt h e r e .

T h eF i n i s h e dP r o d u c t

O n c ed o n e ,t r y L O A D i n gt h e n e wf i l e .I f y o u ' v ew r i t t e ny o u r

p r o g r a mw i t hn o v u l n e r a b l eI N P U Ts t a t e m e n t so r a n y t h i n ge l s e

t h a tm i g h tr e l i n q u i s hc o n t r o l ,c h a n c e sa r ey o u ' l ln e e dt o p o w e r

d o w nt o g e ty o u rm a c h i n eb a c k .

U n l i k eP E T / C B M s ,t h e6 4 h a sa c o u p l ef e a t u r e st h a tf o r c e sL o c k -

D i s kt o b e a l i t t l ec r a f t i e r .T o m a k et h en e wl o c k e df i l ed o a na u t o

R U N ,a n o n - r e l o c a t i n gL O A Dm u s t b es p e c i f i e d :

L O A D" L O C K E DP R O G R A M" , 8 , 1

I f y o ud o n ' t ,t h eL O A Dr o u t i n ew i l li g n o r et h en e ws t a r ta d d r e s s ,

r e l o c a t et h e f i l ea w a yf r o mt h e h o ts p o t s ,a n dt h e a u t oR U Ni s

d e f e a t e d ,y o us a y .N o tq u i t e ,h a c k e rb r e a t h !L I S Ti t a n ds e e .

O K .N o wh i t R U N / S T O P - R E S T O R E .T h o u g h t y o uh a di t l i c k e d ,

e h ?M a y b en e x tt i m e .

A H u m b l eS t a r t

L o c k D i s kw o n ' tl a s tl o n ga g a i n s tt h e s e a s o n e dp i r a t e .B u t w i t h

e n o u g he x t r a sy o u ' l lb e a b l et o k e e ph i mb u s yf o ra w h i l e .A n df o r

t h ea v e r a g eu s e r ,L o c k D i s kw i l lq u i c k l yd i s c o u r a g ea n y d u b i o u s

i n t e n t i o n s .

L o c k D i s ki s n ' ta b o v ei m p r o v e m e n t .T h ed e e p e ry o ug o i n t ol o w e r

m e m o r y ,t h em o r ey o uc a na d dt o y o u rp r o t e c t i o ne f f o r t s .R e m e m

b e r ,t h e r e ' sm o r ep o i n t e r sd o w nt h e r et h a ny o uc a ns h a k ea s t i c k

a t . A n di f y o u c h a n g et h e m ,h a v e y o u rp r o g r a mc h e c kf o r t h o s e

c h a n g e s .I f i t s e e st h e y ' v eb e e ns e tb a c kt o n o r m a l , a n y t h i n gf r o ma

w a r n i n gt o i n t e n s e c r u e l t yi s o p t i o n a l .J u s tb e s u r e a b o u ti t t h o u g h .

Y o ud o n ' tw a n tt o g o n e w i n gd i s k st h a tb e l o n gt o h o n e s tu s e r sw i t h

e q u i p m e n t y o uh a v e n ' ta c c o u n t e df o r .

A b o v ea l l ,d o n ' t s h o r tc h a n g ey o u r s e l f .L o c k D i s ki s o n l yo n eu t i l i t y

y o uc a nt a k ea d v a n t a g eo f .T h e r ea r el o t sm o r e .

T h eT r a n s a c t o r 6 6 V o l u m eS , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 69/84

L o c k D i s kf o rt h eC o m m o d o r e6 4

5 p r i n t" a u t os t a r t6 4 - j i mb u t t e r f i e l d"

1 0 o p e n1 5 , 8 , 1 5

2 0 i n p u t" n a m eo f p r o g r a m "; n $

3 0 o p e n1 , 8 , 3 , n $ +" , p , r ": i n p u t # 1 5 , e , e $ , e 1, e 2

4 0 i f n o t et h e n g e t # 1 , a $ , b $ :i f a $ O c h r $ ( 1 ) t h e ne = 1: e $ =" o o p s ! "

5 0 i f e t h e np r i n t e S: c l o s e i: s t o p

6 0 i n p u t" n a m eo f c o n v e r t e dp r o g r a m" ; c $

7 0 o p e n2 , 8 , 4 ," 0 : "+ c $ +" , p , w ": i n p u t # 1 5 , e , e $ , e 1, e 2

8 0 i f e t h e np r i n t e S: c l o s e 2: s t o p

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

1 0 0f o rj = 0 t o 7 : r e a d x: p r i n t # 2 , c h r $ ( x ) ;: n e x t j

1 1 0f o rj = 1 t o l e n ( c $ ) :p r i n t # 2 , m i d $ ( c $ , j , 1 ) ;: n e x t j

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

1 3 0f o rj = 0 t o 4 : r e a d x: p r i n t # 2 , c h r $ ( x ) ;: n e x t j

1 4 0f o rj = 0 t o 5 2 - l e n ( c $ ) :p r i n t # 2 , c h r $ ( 0 ) ;: n e x t j

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

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

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

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

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

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

2 1 0d a t a1 6 5 ,2 4 4 , 2 3 7 ,2 4 5 , 3 2 , 8 9 , 1 6 6 ,7 6 , 1 7 4 , 1 6 72 2 0f o rj = 0 t o 5 7 : r e a d x: p r i n t # 2 , c h r $ ( x ) ;: n e x t j

2 3 0 f o r j =0 t o1 2 2 1: p r i n t # 2 , c h r $ ( 3 2 ) ;: n e x t j : p r i n t # 2 , c h r $ ( 0 ) ;

2 4 0g e t # 1, a $: s w= s t : i f l e n ( a $ )= 0 t h e na $ = c h r $ ( 0 )

2 5 0p r i n t # 2 , a $ ;: i f s w= 0 g o t o2 4 0

2 6 0c l o s e i: c l o s e 2: c l o s e 1 5

2 7 0i n p u t "w a n tt o d o m o r ep r o g r a m s "; a $

2 8 0i f a $= " y " o r a $ = " y e s " g o t o1 0

2 9 0s y sp e e k ( 6 5 5 3 2 )+ p e e k ( 6 5 5 3 3 ) * 2 5 6

L o c k D i s kf o rt h eP E T / C B M

1 0 0p r i n t c h r $ ( 1 4 7 ) " r u n - o n l y( c ) 1 9 8 1j i mb u t t e r f i e l d ": o p e n 3 , 0

1 1 0c l o s e i: c l o s e 1 5: p r i n t "b a s i cp r o g r a mt o p r o t e c t ?" ; : i n p u t # 3 , n $

1 2 0p r i n t :o p e n 1 5 , 8 , 1 5

1 3 0 o p e n 1 , 8 , 3 , n $ +" , p , r "

1 4 0i n p u t # 1 5 , d z: i f d z < > 0g o t o i1 0

1 5 0g e t # 1, a $ , b $: i f a $ O c h r $ ( 1 )a n db $ O c h r $ ( 4 )g o t o i 1 0

2 0 0c l o s e 2: p r i n t "n a m ef o rp r o t e c t e d v e r s i o n ?" ; : i n p u t # 3 , p $: p r i n t

2 1 0p r i n t" w r i t et o d r i v e ?0 " c h r $ ( 1 5 7 ) c h r $ ( 1 5 7 ) ;: i n p u t # 3 , d $: d = v a l ( d $ ) :p r i n t

2 2 0i f d < 0o r d > 1 g o t o 2 1 0

2 3 0 o p e n 2 , 8 , 4 , c h r $ ( d+ 4 8 ) +" : " + p $ +" , p , w "

2 4 0i n p u t # 1 5 , d z: i f d z < > 0g o t o 2 0 0

3 0 0f o rj = 0 t o 2 : p r i n t # 2 , c h r $ ( j ) ;: n e x t j

3 1 0f o rj = 1 t o 2 5 5: p r i n t # 2 , c h r $ ( 2 ) ;: n e x t j

3 2 0f o rj = 1 t o 3 : p r i n t # 2 , c h r $ ( 0 ) ;: n e x t j

3 3 0r e a d j :i f j > 2 5 5 g o t o 4 0 0

3 4 0n = n + 1 : p r i n t # 2 , c h r $ ( j ) ;: g o t o 3 3 0

4 0 0 f o r j= 5 1 5+ n t o 1 0 2 4: p r i n t # 2 , c h r $ ( p e e k ( j ) ) ;: n e x t j

4 1 0 g e t # 1 , x $: s w= s t : i f x $ =" " t h e nx $ = c h r $ ( 0 )

4 2 0p r i n t # 2 , x $ ;

4 3 0 i fs w= 0 g o t o4 1 0

4 4 0c l o s e 2: c l o s e i: c l o s e 1 5

4 5 0p r i n t "w a n tt o d o m o r e ?" ; : i n p u t # 3 , z $

4 6 0i f a s c ( z $ )= 8 9 t h e nr u n

4 7 0s y s p e e k ( 6 5 5 3 2 )+ p e e k ( 6 5 5 3 3 ) * 2 5 6

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

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

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

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

7 4 0d a t a2 3 0 , 4 2 , 2 0 8 , 2 , 2 3 0 , 4 3 , 2 0 1 , 0 , 2 0 8 , 2 4 2 , 2 0 2 , 2 0 8 , 2 4 1

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

7 8 0d a t a0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 0 8 , 2 5 2 , 2 5 5 , 2 5 6

T h eT r a n s a c t o r 6 7 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 70/84

D r i v eP r o t e c tR i c h a r dT . E v e r s ,E d i t o r

Y o O3 l > s TB i t i n t o Y o o R .D I S KA M D

I M S E R T E D1 C > O R .T b A S TI N T OT H EC > I 5 <C K . I V E

D r i v eP r o t e c th a sb e e nw r i t t e nf o re v e r y o n ew h oh a se v e r

l o s ti m p o r t a n ti n f o r m a t i o no n d i s k e t t e s ,d u et o a c c i d e n t a l

s c r a t c h i n go f f i l e s ,o r w i p i n go u to f e n t i r ed i s k s .T h ep r o g r a m

b e l o ww i l lh e l ps t o pt h e s el i t t l em i s a d v e n t u r e s ,a n da l s o

p r o v i d ey o uw i t ha f e wm o r ea v e n u e so f p r o t e c t i o na s a n

a d d e db e n e f i t .

B yu s i n gD r i v eP r o t e c ty o uc a np e r f o r mu p t o t h r e ed i f f e r a n t

f o r m so f p r o t e c t i o nt h a ty o up r o b a b l yd i d n ' tk n o ww e r e

p o s s i b l e .T h ef i r s tw i l la l l o wy o ut o S C R A T C Hp r o t e c ta n y

f i l e st h a ty o uc h o o s e ,f o rt h es p e c i f i cp u r p o s eo f t h w a r t i n g

t h e c l o d d i s hp e o p l ew h om a k el e n d i n g o u td i s k sa h o r r o r .

W i t ht h i sf e a t u r ee n a b l e d ,S C R A T C H i n gw i l lb e d i s a b l e d ,b u t

S A V E i n g@ , L O A D i n g ,r e a d i n gf r o ma n dC O P Y i n ga r es t i l l

a l l o w e d .N o ta n e a r t h s h a t t e r i n ge v e n ti n t h e p r o t e c t i o n

d e p a r t m e n t ,b u ts t i l lo n et h a td o e sc o m ei n h a n d yw h e nt h e

c a r d sa r en o ti n y o u rf a v o u r .

T h es e c o n d f o r mo f p r o t e c t i o ni s o n et h a tw i l lb e u s e f u l l t oa

v e r ys m a l lm i n o r i t yo f r e a d e r s .T h i sf e a t u r ew i l le n a b l ey o u

t o c h a n g et h eb l o c kc o u n to f s p e c i f i cf i l e so n d i s k .T h o u g hi t

m a ya p p e a rt o h a v ef e wi m m e d i a t ep r o t e c t i o nb e n e f i t s ,f o r

t h e b l o c kc o u n tw i l la p p e a rc o r r e c to n t h e n e wc o p yi f

c o p y i e d ,i t d o e sa l l o wy o ut o p u r p o s e l y c o n f u s et h eh e c ko u t

o f a l o to f w o u l db e f i l es n o o p e r s .I n t h eg a m eo f p r o t e c t i o n ,

c o n f u s i o nc a n b et r u l ye f f e c t i v e .

T h et h i r da n df i n a lf o r mo f p r o t e c t i o n a v a i l a b l ei s o n et h a tI

f e e lw i l lb e n e f i tm o s tw h ou s ei t . I tr e w r i t e sy o u rd i s k e t t ei n

s u c ha w a yt h a ty o uc a n n o td u p l i c a t ei t e a s i l y .T h i sa l s o

m e a n st h a ty o uc a nn o l o n g e rS A V Et o t h ed i s k ,o r w r i t et o i t ,

a l o n gw i t h n o tb e i n ga b l et o B A C K U Pa t a l l .B u ty o us t i l lc a n

C O P Yf r o mi t . T h i si s a c c o m p l i s h e db y c h a n g i n gt h eD O S

v e r s i o ni d e n t i f i e r so n t h e d i s ks u r f a c e .T h ed a t a p e r t a i n i n g

t o t h i sp r o c e d u r e c a nb e f o u n di n t h e f o l l o w i n gc h a r t .

D r i v eI D I n d e x

1 5 4 16 5 2

2 0 3 1 6 52

4 0 4 06 5 2

8 0 5 06 7 2

L o c a t i o n

T r a c k1 8 ,S e c t o r0

T r a c k1 8 ,S e c t o r0

T r a c k1 8 ,S e c t o r0

T r a c k3 8 ,S e c t o r s0 & 3

8 2 5 06 7 2 T r a c k3 8 ,S e c t o r s0 , 3 ,6 , & 9

A s t h ec h a r ts h o w s ,t h eD O SI D i s n o r m a l l ya 6 5 a s c i i f o rt h e

1 5 4 1 / 2 0 3 1 / 4 0 4 0d r i v e s ,a n d6 7 a s c i if o r t h e 8 0 5 0 / 8 2 5 0

m a c h i n e s .A c h a n g eo f t h i sv a l u eo n t h ed i s ks u r f a c e ,o n t h e

t r a c k& s e c t o r ( s ) s p e c i f i e d ,w i t ha n i n d e xo f 2 , w h i c hi s t h e

t h i r db y t ef r o mt h e s t a r t ,w i l lp r o d u c et h e d e s i r e de f f e c t .I f

t h e s e p o i n t ss e e mt o o m u c hf o r y o u t o r e m e m b e r ,d o n ' t

w o r r y .D r i v eP r o t e c th a sb e e nw r i t t e nt o d o a l l t h ew o r kf o r

y o u .T h eo n l ya c t i o nr e q u i r e do f y o ui s t o k e yt h ep r o g r a m

i n , R U Ni t , t h e ns p e c i f yy o u ri n t e n t .W i t ha g r o a no f y o u r

d i s kd r i v e ,a n da f l a s h o fi t sl i g h t sy o uw i l lf i n dy o u rd i s k e t t e

t a k e so n a n e ws h a p e( e s s e n t i a l l y ,n o tp h y s i c a l l y ) .I t i s f o r

t h i sr e a s o nt h a tI s u g g e s ty o uu s ea t e s td i s k e t t eu n t i ly o u ' r e

s u r eD r i v eP r o t e c ti s w o r k i n gp r o p e r l y .

F u r t h e rv a r i a t i o n sc a n b em a d et o t h i sp r o g r a mt o a l l o wy o u

t o r e n a m ey o u rf i l e s ,c h a n g et h e p o i n t e r st o t h en e x td i r e c

t o r yb l o c k ,a n d t h e p o i n t e r st o t h e f i r s td a t a b l o c kt h a t

a p p l i e st o t h ef i l ec h o s e n .T h e s el i t t l ei m p r o v e m e n t sI l e a v e

e n t i r e l ya t y o u rd i s c r e t i o n .I f y o uc r e a t es o m et w i s t s ,d r o pu s

a l e t t e ra n dl e tu s k n o wh o wy o um a n a g e di t . C h a n c e sa r ei f

y o uf o u n dy o u rt w i s ti m a g i n a t i v e ,s o m eo f o u ro t h e r r e a d e r s

w o u l da l s o .

1 0 0r e m a r k *r i c h a r de v e r s - J u n e 1 9 8 4

1 1 0 r e m a r k* d r i v e p r o t e c t

1 2 0r e m a r k* - s c r a t c hp r o t e c ty o u rf i l e s .

1 3 0 r e m a r k* - c h a n g et h eb l o c kc o u n to f f i l e s .

1 4 0r e m a r k* - b a c k u pp r o t e c ty o u rd i s k e t t e .

T h eT r a n s a c t o r 6 8 V o l u m e s ,I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 71/84

1 4 5 c s $ =c h r $ ( 1 4 7 ) :d c $ =c h r $ ( 1 7 ): r y $= c h r $ ( 1 8 ): r n $= c h r $ ( 1 4 6 )

1 5 0p r i n tc s $ "d r i v e p r o t e c t- t r a n s a c t o rm a g a z i n e "

1 5 5p r i n td c $ "s p e c i f yd r i v et y p e "d c $

1 6 0p r i n t" ( 1 ) 1 5 4 1 / 2 0 3 1"

1 6 5p r i n t" ( 2 ) 4 0 4 0 "

1 7 0p r i n t" ( 3 ) 8 0 5 0 "

1 7 5p r i n t" ( 4 ) 8 2 5 0 "

1 8 0p r i n td c $ "y o u rc h o i c e: " ;

1 8 5i n p u td t : i f d t = 0 o r d t > 4t h e n1 8 0

1 9 0i f d t = 1 t h e nd t = 1 8 : d l = 1 4 4: d h = 2 : d i = 4 : r v = 1 : p t = 1 8 : p s = 0 : r e m1 5 4 1/ 2 0 3 1

1 9 5i f d t = 2 t h e nd t = 1 8 : d l = 1 5 0: d h = 6 7 : d i = 4 : r v = 1 : p t = 1 8 : p s =0 : r e m 4 0 4 02 0 0 i f d t= 3 t h e n d t =3 9 : d l = 9 6: d h = 6 7: d i = 8 : r v = 2 : p t = 3 8 : p s = 0 : r e m8 0 5 0

2 0 5i f d t = 4 t h e nd t = 3 9: d l = 9 6: d h = 6 7: d i = 8 : r v = 4 : p t = 3 8 : p s = 0 : r e m8 2 5 0

2 1 5p r i n td c $ "p r o t e c t i o n: ( 1 )f i l eo r ( 2 )d i s k" ;

2 2 0i n p u tf d $: i f f d $= " 2 " t h e n4 7 5: r e m• d i s kp r o t e c t

2 3 0i n p u t " d r i v e # ,f i l e n a m e: " ; d $ , f $

2 3 5i f l e n ( f $ ) > 1 6o r d $ < "0 " o r d $ > "1 " t h e n2 3 0

2 4 0i n p u t "s c r a t c hp r o t e c tf i l e( y / n )" ; s p $: s p = s p $= " y "

2 4 5i n p u t "c h a n g eb l o c kc o u n t( y / n )" ; c b $: c b = c b $= " y "

2 5 0i f c b = 0 t h e n2 8 0

2 5 5i n p u t" c h a n g et o w h a tv a l u e " ; n b

2 6 0i f n b > 6 5 5 3 5t h e n2 5 5

2 6 5c h = i n t ( n b / 2 5 6 ) :c l = n b - c h * 2 5 6

2 7 0 :

2 7 5r e m* ** c h e c ki f f i l ee x i s t s- c o n t i n u eo n i f s o

2 8 0 o p e n1 5 , 8 , 1 5

2 8 5o p e n5 , 8 , 5 , " " +d $ + " : " +f $ + " " :g e t # 5 , a $: i f s t t h e n4 6 0: r e m* n o tt h e r e

2 9 5p r i n t # 1 5 ," m - r " c h r $ ( d ! ) c h r $ ( d h ) ;: r e m* f i n ds e c t o ro f f i l ei n d i r e c t o r y

3 0 0g e t # 1 5 , s $: s e c= a s c ( s $+ c h r $ ( 0 ) )

3 0 5p r i n t # 1 5 ," m - r " c h r $ ( d l+ d i ) c h r $ ( d h ) ;: r e m* f i n di n d e xw i t h i nd i r e c t o r y

3 1 0g e t # 1 5 , i $: i n d= a s c ( i $+ c h r $ ( 0 ) )

3 1 5 :

3 2 0 o p e n6 , 8 , 6 ," # "

3 2 5p r i n t # 1 5 , "u 1 " ; 6 ; v a l ( d $ ) ; d t ; s e c ;: r e m* s e tu p t o r e a dt h ed a t a

3 3 0p r i n t # 1 5 , "b - p "; 6 ; 0 ;: r e m* p o s i t i o nt h eb u f f e rt o t h es t a r t

3 3 5g e t # 6 , p l $: i f p l $= " " t h e np l $= c h r $ ( 0 ) :r e m* n e x td i rb l o c k l o w

3 4 0 g e t # 6 , p h $: i f p h $ =" " t h e np h $= c h r $ ( 0 ) :r e m* n e x td i rb l o c kh i g h

3 4 5i f i n d= 2 t h e n3 6 5: r e m* i t ' st h ef i r s tf i l ei n

3 5 0 f o r x= 2 t o i n d - 1: g e t # 6 , a $: s s $= s s $+ c h r $ ( a s c ( a $+ c h r $ ( 0 ) ) ) :n e x t x

3 5 5 :

3 6 0r e m* *• t i m et o b r i n gi n t h e a c t u a ld a t aa b o u tt h ef i l ec h o s e n

3 6 5g e t # 6 , t y $: i f t y $= " " t h e nt y $= c h r $ ( 0 ) :r e m* f i l et y p e

3 7 0g e t # 6 , t r $: i f t r $= " " t h e nt r $= c h r $ ( 0 ) :r e m* f i r s td a t at r a c k

3 7 5g e t # 6 , s e $: i f s e $= " " t h e ns e $= c h r $ ( 0 ) :r e m* f i r s td a t as e c t o r

3 8 0f o rx = 1 t o 1 6 : g e t # 6 , a $: n a $= n a $+ c h r $ ( a s c ( a $+ c h r $ ( 0 ) ) ) :n e x tx

3 8 5f o rx = 1 t o 9 : g e t # 6 , a $: b s $= b s $+ c h r $ ( a s c ( a $+ c h r $ ( 0 ) ) ) :n e x tx

3 9 0 g e t # 6 , b l $ :i f b l $ =" " t h e nb l $= c h r $ ( 0 ) :r e m* b l o c kc o u n tl o w

3 9 5g e t # 6 , b h $: i f b h $= " " t h e nb h $= c h r $ ( 0 ) :r e m* b l o c kc o u n th i g h

4 0 5i f s p t h e nt y $= c h r $ ( a s c ( t y $ ) o r 6 4 ) :r e m* s e tb i t6 f o rs c r a t c hp r o t e c t

4 1 0i f c b t h e nb l $= c h r $ ( c l ) :b h $= c h r $ ( c h ) :r e m* c h a n g eb l o c kc o u n t

4 1 5 :

4 2 0r e m* • •a n df i n a l l y ,b r i n gi n t h eb a l a n c eo f t h ed a t a

4 2 5i f i n d= 2 2 6t h e n4 4 0: r e m* d a t aa l r e a d yr e a di n

4 3 0f o rx = i n d+ 3 0 t o 2 5 5: g e t # 6 , a $: e s $= e s $+ c h r $ ( a s c ( a $+ c h r $ ( 0 ) ) ) :n e x tx

4 4 0 o p e n7 , 8 , 7 ," # "

4 4 5p r i n t # 1 5 , "b - p "; 7 ; 0 ;: r e m* p o s i t i o nt h eb u f f e rt o t h es t a r t

4 5 0 p r i n t # 7 , p l $ ; p h $ ; s s $ ; t y $ ; t r $ ; s e $ ; n a $ ; b s $ ; b l $ ; b h $ ; e s $ ;

4 5 5p r i n t # 1 5 , "u 2 "; 7 ; v a l ( d $ ) ; d t ; s e c ;: r e m* l e ti t k n o ww h e r et o w r i t e

4 6 0c l o s e5 : c l o s e6 : c l o s e7 : c l o s e1 5 : r e m* a n dc l o s ei t a l l u p

4 6 5p r i n t c h r $ ( 1 4 7 ) " f i l e p r o t e c t i o nc o m p l e t e! ! " : e n d4 7 0 :

4 7 5p r i n tc h r $ ( 1 4 7 ) "d i s k p r o t e c t -s t o p st h eb a c k u pb l u e s "

4 8 0i n p u t" d r i v en u m b e r "; d : i f d > 1t h e n4 8 04 8 5 o p e n5 , 8 , 5 ," # " : o p e n6 , 8 , 6 ," # " : o p e n1 5 , 8 , 1 5

4 9 0f o rl p =1 t o r v

4 9 5p r i n t :p r i n t" p a s s "I p " o f " r v " :t r a c k " p t "s e c t o r "p s

5 0 0p r i n t # 1 5 ," u 1" ; 5 ; d ; p t ; p s: p r i n t # 1 5 , "b - p "; 5 , 0: r e m* r e a d f r o mc h # 5

5 0 5p r i n t # 1 5 ," b - p " ; 6 , 0: r e m* w r i t e t oc h # 6

5 1 0 b $ =" " : f o r x= 0 t o 2 5 5

5 2 0 :g e t # 5 , a $: a $ = l e f t $ ( a $+ c h r $ ( 0 ) , 1 ) :i f x = 2 t h e n a $ =" • "

5 2 5: b $ = b $ + a $: i f x = 1 2 8t h e nc $ = b $: b $ =" "

5 3 0n e x tx

5 3 5p r i n t # 6 , c $ ; b $ ;: p r i n t # 1 5 , "u 2 "; 6 ; d , p t , p s

5 4 0p s = p s + 3 : n e x tI p

5 4 5p r i n t # 1 5 , "i " + m i d $ ( s t r $ ( d ) , 2 ) +" "

5 5 0c l o s e5 : c l o s e6 : c l o s e1 5 : p r i n tc h r $ ( 1 4 7 ) "d i s k p r o t e c t i o nc o m p l e t e! ! " : e n d

T h eT r a n s a c t o r 6 9 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 72/84

D i s k M o d :E x a m i n eD i s k e t t e s

S e c t o rB y S e c t o rP r o g r a m B yJ i mB u t t e r f i e l d

P r e s e n t e dB y K a r lJ . H .H i l d o n

I f y o u ' v eb e e nl u c k ye n o u g ht o n e v e rh a v ea d i s k e t t eg o b a d

o n y o u ,t h e np e r h a p sy o us h o u l ds t o pr e a d i n gt h i sa r t i c l e .

K i n d al i k eh i t t i n gy o u rt h u m bw i t ha h a m m e r- i t n e v e r

h a p p e n su n t i ly o u ' r e t h i n k i n ga b o u ti t .

T h ef a c ti s , d i s k e t t e sd o g o b a d .N o tj u s tR e a dE r r o r s ,b u t

c h a i np o i n t e r sg e t m i x e du p ,d i r e c t o r i e sm y s t e r i o u s l yd r o p

f i l e n a m e s ,a n df i l e sc l o b b e re a c ho t h e rb y f i g h t i n gf o r t h e

s a m es e c t o r .W h y ?O h s u r e ,s o m e t i m e si t ' s t h e p r o g r a m

m e r s 'f a u l t .B u tI ' v ek n o w nm yd r i v e st o g o b b l ea f i l eo r t w o

o n m eb e f o r e- a n da t l e a s to n c ew i t hn o p r o g r a mp r e s e n ta t

a l l .

O n c eI t r i e d t oC O P Ya f i l ef r o mo n ed r i v et o t h eo t h e ro n m y

8 0 5 0 .T h en e x t D i r e c t o r yI d i ds h o w e dm e a f u l ld i s kw i t h

o n l yt h ef i r s t8 f i l e n a m e s .T h e r ew e r en o R e a dE r r o r s .I n f a c t

I r e c o v e r e de v e r y t h i n g .U s i n gD i s k M o dI s i m p l yc a l l e du p

t h e s e c t o r so f t h e d i r e c t o r yt r a c k ,f i x e dt h e p o i n t e r s ,a n d

e v e r y t h i n gw a sb a c kt o n o r m a l .T h e nI t o o ka b a c k u p .

R e a dE r r o r s a r et o u g ht o r e c o v e rf r o me v e na t t h e b e s to f

t i m e s .S o m e t i m e sy o uc a nt r y t h e o t h e rd r i v e ,o r a n o t h e r

u n i t ,a n d f i n di t g o e sa w a y .B u t a t r u eR e a dE r r o r ,f o r

i n s t a n c ea f a u l t yd i s k s u r f a c e ,i s v i r t u a l l yi m p o s s i b l et o b e a t .

H o w e v e r ,i f t h ed a m a g ei s l i m i t e dt o o n l ya s m a l l p o r t i o no f

t h ed i s k ,D i s k M o dw i l ll e t y o us n e a ka r o u n da n ds a l v a g e

w h a ty o uc a n .

C o n s i d e ra S E Qt h a tc o n t a i n s m a i l i n gl i s td a t a .T h ef i l ei s ,

s a y , 1 0 0 b l o c k sl o n g .T h e w e a t h e ri s s u n n y ,y o u s t a r t

p r i n t i n gy o u rl i s t ,a n dZ A P !A b o l t o fl i g h t n i n gc o m e so u to f

n o w h e r ea n dc o o k st h es e c o n ds e c t o ro f t h ef i l e .Y o ug e tt o

s e ew h a t ' si n t h ef i r s ts e c t o r ,b u ti t c a n ' t g e tp a s tt h es e c o n d

s e c t o rt o f i n dt h et h i r d .A f t e ry o ut r yt h i s6 , 7 ,m a y b e8 t i m e s ,

y o us t a r t t og e t a l i t t l en e r v o u s ,r i g h t ?( d o n ' tw o r r y ,t h i s

h a s n ' th a p p e n e dt o o u rm a i l i n gl i s t ,y e t )

W e l lh o l di t r i g h t t h e r e .A l i t t l en e r v o u si s a l l y o us h o u l d

g e t .A t b e s ty o u ' v eo n l yl o s t1 b l o c k ,n o ta l l 1 0 0 !( A tw o r s t

y o u ' v el o s ta l l 1 0 0b u tw e ' r en o tg o n n at a l ka b o u ti t )P u l lo u t

D i s k M o d . Y o u rd i s ke r r o rr o u t i n es h o u l dt e l ly o uw h e r et o

s t a r t .Y o uk n o w :

5 0 0 0 0 o p e n1 , 8 , 1 5 :i n p u t # 1 ,e , e $ ,e t , e s

5 0 0 1 0p r i n te $ ," t r a c k : " ;e t " , s e c t o r : " ;e s

. . . o rw i t hB A S I C4 . 0j u s tp r i n tD S $ .R u nD i s k M o da n dg i v e

i t a d r i v en u m b e r .T h e nu s et h ev a l u e sf o rE Ta n dE Sa s y o u r

f i r s tr e s p o n s et o :

t r a c k ,s e c t o r?

D i s k M o dw i l ld o i t ' sb e s tt o r e a dt h a t s e c t o r .I f i t c a n ' t ,d o n ' t

l o s eh o p e .T h e r ea r es t i l l9 8 b l o c k st o g o .T h ei d e ah e r ei s t o

j u s tm a k es u r ei t ' s a c t u a l l ya n e r r o r .I f D i s k M o dd o e sr e a d

t h e s e c t o r s u c c e s s f u l l y ,t h e r em a yb e a n o t h e r r e a s o nf o r

y o u rt r o u b l e . W e ' l la s s u m et h e r ew a sa n e r r o rf o r n o w .

( W e ' l lg e tt o n o n - r e a de r r o rp r o b l e m si n a m i n u t e ) .

R e a dt h ef i r s ts e c t o ro f t h ed i r e c t o r y .

4 0 4 0 :1 8 , 0

2 0 3 1 :1 8 , 0

1 5 4 1 :1 8 , 0

8 0 5 0 :3 9 , 0

8 2 5 0 :3 9 ,0

N o t e :D i s k M o da u t o m a t i c a l l ya d j u s t sf o r y o u rs c r e e ns i z e .

M a k es u r e t h ef i r s tl i n e s o fb o t hp r o g r a m sa r e e n t e r e da s

s h o w n ,i n c l u d i n g c u r s o rm o v e m e n t s .S i n c et h e r ea r e t w o

v e r s i o n so f D i s k M o df o l l o w i n g ,I ' l lb e u s i n gg e n e r a lt e r m st o

d e s c r i b e t h e o p e r a t i o n .I ' l lg e tm o r es p e c i f i cl a t e ro n .

D i s k M o dw i l ld i s p l a y t h ec o n t e n t so f t h es e c t o r .T h eB A M

( B l o c kA v a i l a b i l i t yM a p )i s a l w a y sf i r s t .D i s k M o dw i l lr e p o r t

t h e c o o r d i n a t e so f t h e n e x ts e c t o r . A l ly o u n e e dd o i s

r e s p o n dw i t hN f o r N e x ta n d D i s k M o dw i l lr e a di t a n d

d i s p l a yi t . K e e pg o i n gu n t i ly o us e e s o m ef i l e n a m e sy o u

T h eT r a n s a c t o r 7 0 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 73/84

r e c o g n i z e , e s p e c i a l l yt h eo n et h a tc o n t a i n s t h ee r r o r .L o o k

c a r e f u l l ya t t h ed i s p l a y .A l ln u m b e r sa r es h o w ni n h e x a d e c i

m a lf o rt h es e c t o r c o n t e n t s .N o t i c et h ef i r s tt w ob y t e so f t h e

s e c t o rr e p r e s e n t t h et r a c ka n ds e c t o ro f t h en e x tb l o c ko f t h e

d i r e c t o r y ,i n h e xo fc o u r s e .T h ef i r s tb y t ea f t e rt h e mi s t h ef i l e

t y p eb y t e .A f t e rt h a ti s t h ef i r s tt r a c ka n ds e c t o ro f t h ef i l e ,

a n d b e y o n dt h a tt h ef i l en a m ei t s e l f .C h e c kt h et a b l e so n t h e

n e x tp a g ef o rD i r e c t o r yF o r m a t s .

U s i n gt h ef i l e s 't r a c ka n ds e c t o rb y t e s ,i s s u ea n R f o rR e a d

a n de n t e rt h e mi n . R e m e m b e ry o u ' l ln e e dt o c o n v e r tt o

d e c i m a ly o u r s e l f( i e$ 1 3b e c o m e s1 9d e c ) .D i s k M o dw i l ln o w

s h o wt h e c o n t e n t so f t h ef i r s tb l o c ko f o u rm a i l i n gl i s t .O n c e

a g a i n ,t h e f i r s tt w ob y t e so f a s e c t o rr e p r e s e n t t h e t r a c k /

s e c t o rc o o r d i n a t e so f t h e n e x ts e c t o r ( u n l e s st h et r a c ki s z e r o ,

t h a tm e a n si t ' st h el a s ts e c t o r )B u tw h e nw e t r y t os h o wt h e

n e x ts e c t o r ,w e ' r eg o n n ar u n i n t o t h a tn a s t yR e a dE r r o r .

I n s t e a d ,w e ' l lg o a r o u n di t t o t h es e c t o ra f t e rt h a t .B u th o w ?

T h es e c o n ds e c t o rc o n t a i n s t h o s e c o o r d i n a t e sa n dw e c a n ' t

r e a dt h e m .

Y o um a yh a v en o t i c e db y n o wt h a ts e c t o r s a r e a l l o c a t e d

a p p r o x i m a t e l y3 a p a r te a c ht i m e .T h i si s h o wD O Su s e su p

b l o c k s- a b o u t3 a p a r t .I f t h eD O Su s e dc o n s e c u t i v es e c t o r s

t h e d a t at r a n s f e rr a t ew o u l ds u f f e rs p e e dl o s s .I m a g i n e

y o u ' r e ad r i v eh e a dw i t h ad i s k e t t es p i n n i n gu n d e r n e a t h

y o u .Y o ur e a do n eb l o c ka n dd e t e r m i n ew h e r et h en e x to n e

i s . B u tb y t h et i m ey o ud o t h a t ,t h e n e x ts e c t o rh a sa l r e a d y

g o n eb y a n d y o u h a v et o g o a l l t h ew a ya r o u n do n c et o g e t

t h e r ea g a i n .B y s p a c i n gt h e m3 a p a r t ,t h e D O Sh a s j u s t

e n o u g ht i m et o r e a dt h eb l o c ka n dp r e p a r ef o rt h en e x to n e

j u s ta s i t ' sc o m i n gi n t ov i e w .C l e v e re h ?W h e nt h ee n do f a

t r a c ki s r e a c h e d ,D O Sg o e sb a c kt o t h eb e g i n n i n go f t h et r a c k

a n ds t a r t su s i n g t h ei n b e t w e e nb l o c k s ,a g a i na b o u t3 a p a r t

e a c ht i m e .W h e nt h ew h o l et r a c ki s f u l l ,D O Ss t a r t sa g a i n

w i t ha n o t h e rt r a c kt h a ti s u s u a l l y n o t t o of a ra w a y .B a c kt o

o u r p r o b l e m .

S o t h en e x ts e c t o ri s p r o b a b l yn o tf a ra w a y .U s u a l l yi t ' sn o t

h a r dt o r e c o g n i z e t h ed a t ao n c ey o uf i n di t . R e c o r dt h e

c o o r d i n a t e s .W h a tw e d o n o wi s g o b a c kt o t h e s e c t o r

p r e v i o u s( t h ef i r s ts e c t o ri n t h i sc a s e ) ,a n d c h a n g et h e

f o r w a r dc o o r d i n a t e st o p o i n ta t t h et h i r d s e c t o r , e f f e c t i v e l y

j u m p i n go v e rt h eb a db l o c k .Y o um a yh a v el o s t1 b l o c k ,b u t

a t l e a s tn o wy o uc a ng e tt o t h er e m a i n d e ro f t h ef i l e .Y o u ' l l

h a v et o r e b u i l dt h el o s td a t am a n u a l l y .

C o m p l i c a t i o n sc o m eu p w h e na d i s k e t t e g e t ss o m e w h a tf u l l ,

e s p e c i a l l ya f t e ra l o to f S c r a t c h i n gf i l e so r S a v e sw i t h r e p l a c e

h a v e b e e nd o n e .W h e na d i s kg e t sa l m o s tf u l l ,t h eD O Sc a n

l i t t e r a l l ys c a t t e ra f i l e a l lo v e rt h e d i s k a si t f i l l st h e l a s t

r e m a i n i n gf r e e s e c t o r s .Y o up r o b a b l yh a v ed i s k e t t e sr i g h t

n o wl i k et h i s .T r a c i n g t h e s ef i l e so n c eo n eb l o c kg o e sb a d

c a ng e ti r r i t a t i n ga t b e s t .

J i mh a s a n o t h e rp r o g r a mh e h a sy e tt o r e l e a s ei n t op u b l i cd o m a i n ;D i s kD u p e .D i s k D u p et a k e sa n o t h e r w i s e r u i n e d

d i s k e t t ea n ds a l v a g e sw h a t e v e ri t c a n o n t oa f r e s hd i s k .

T h e n ,w i t hh i su s u a lt a l e n tf o rw r i t i n gp r o g r a m s a p p r o a c h

i n ga r t i f i c i a li n t e l l i g e n c e ,J i mb u i l d sa n e wd i r e c t o r ya f t e r

s e a r c h i n go u tl o s tf i l e s .T h ep r o g r a me x a m i n e st h ef o r w a r d

c h a i np o i n t e r so f e a c hs e c t o ra n d ,b a s e do n t h e l e n g t ho f t h e

c h a i n ,d e c i d e sw h e t h e ri t c o u l db e a f i l ew o r t hr e c o v e r i n g .

A n a r t i f i c i a ld i r e c t o r ye n t r yi s m a d et h a t p o i n t st o t h e

r e c o v e r e dd a t a a l l o w i n gy o ua c c e s st o i t f r o mt h e r e b u i l t

c o p yo f t h ed i s k .P e r h a p s J i mw i l ll e tu s p u b l i s hD i s k D u p e ?

N o nR e a dE r r o r L o s s

R e m e m b e rw h a tI s a i db e f o r e ?S o m e t i m e sa d i s kc a ng e t

c l o b b e r e de v e n t h o u g ht h e r ei s n o R e a dE r r o ra n y w h e r e o n

t h es u r f a c e .W h ok n o w sw h yb u ti t h a p p e n s .T h ed i r e c t o r yi s

s u d d e n l ym i s s i n gf i l e st h a ty o ud a m nw e l lk n o wa r et h e r e !

A l s o ,i n f o r m a t i o nc a nb e w r i t t e no n d i s kw i t h o u ta d i r e c t o r y

e n t r y ,i e . d i r e c ta c c e s sf i l e s .Y o um a yw a n tt o e x a m i n et h e m

t o o ,o r a n yo t h e rp e r f e c t l yg o o ds e c t o r sf o r t h a tm a t t e r .

W h a td o y o ud o ?R i g h t .P u l lo u tD i s k M o d .B u tf i r s t ,m a k ea

b a c k u p .N os e n s em a k i n gm o d st o a d i s kw h e ni t m i g h tl e a d

t o m o r et r o u b l et h a tc o u l dh a v e b e e na v o i d e d .W i t ha

b a c k u py o uc a ns t a r to v e ra g a i ni f y o u h a v et o .

A q u i c kc h e c ko f t h ed i r e c t o r y t r a c kw i l ln o d o u b ts h o wy o u

t h e p r o b l e m .C h a n c e sa r e o n ed i r e c t o r ys e c t o rh a s b e e n

p o i n t e da r o u n dt h e b l o c k c o n t a i n i n gt h em i s s i n ge n t r i e s . I n

m yc a s e ,t h eB A Mw a sp o i n t i n gd e e pi n t ot h ed i r e c t o r y t r a c k

a t t h el a s td i r e c t o r y b l o c k .I t r a c e dt h ec h a i nf r o mt h eb l o c k

t h a tD O Sn o r m a l l yu s e sa s t h ef i r s tb l o c kf o rt h ed i r e c t o r y .

E v e n t u a l l y1 r e a c h e dt h e l a s tb l o c k( t r a c kp o i n t e r e q u a l s

z e r o )w h i c h w a st h eo n l yo n es h o w i n g .E v e r t h i n gs e e m e d

O Ks o I w e n to v e rt o t h eB A Mb l o c ka n da l t e r e di t s f o r w a r d

p o i n t e rt o t h ef i r s tb l o c k .B a c kt o n o r m a li n f i v em i n u t e s .

E a s yT o U s e

D i s k M o di s a s e a s yt o u s ea s t h eB A S I Cs c r e e ne d i t o r .O n c ea

s e c t o ri s d i s p l a y e d ,D i s k M o dw i l lp r o m p ty o uf o r a c o m

m a n d .I f y o u w a n tt o c h a n g et h ec o n t e n t so f a s e c t o r ,i g n o r e

t h ec o m m a n dp r o m p ta n dc u r s o ru p / o v e rt o t h e b y t ey o u

w a n t .T y p et h e n e wv a l u er i g h to v e rt h eo l d ,b e i n gc a r e f u l

n o t t o c h a n g et h e l e n g t ho f t h e d i s p l a yl i n e w i t ha n y

a c c i d e n t a lD e l e t e so r I n s e r t s .H i tR e t u r na n dD i s k M o dw i l l

w r i t et h en e wv a l u e sb a c kt o t h es a m eb l o c ka n dd i s p l a yt h e

b l o c ka l l o v e ra g a i n .Y o uc a nc h a n g ea l l o r p a r to f t h el i n e ,

b u to n l yo n el i n ea t a t i m e .R e m e m b e r ,a l lv a l u e sa r ei n h e x ,

b u ti f y o um a k ea m i s t a k e s i m p l yc h a n g ei t a g a i n .

D i s k M o dw i l lo n l yd i s p l a ya s m a n yb y t e sa s w i l lf i t o n y o u r

s c r e e n .T h ef i r s tl i n e o fe a c hp r o g r a md o e sa t e s tf o rs c r e e n

s i z e .T h i si s w h yi t M U S Tb e e n t e r e de x a c t l y a ss h o w n .I f y o u

h a v e8 0 c o l u m n s ,y o u ' l ls e e t h ew h o l es e c t o r .W i t hl e s st h a n

8 0 ,D i s k M o dw i l ls h o wo n l yp a r to f t h es e c t o r .T os e e t h er e s t

e n t e rS f o rS w a p .N a t u r a l l y ,t h e Sc o m m a n di s n o t r e c o gn i z e dw i t h8 0 c o l u m n s .

T h eT r a n s a c t o r 7 1 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 74/84

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 75/84

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 76/84

3 0 0 1 1= 1

3 1 0r e a d t . s: i f s > s 9 t h e ns 9 = s

3 2 0f o rj = t 1 t o t : s % ( j )= s : n e x t j :t 1 = t + 1 : i f K t 9g o t o 3 1 0

3 3 0d a t a1 , 2 , 4 , 8 ,1 6 ,3 2 , 6 4 ,1 2 8

3 4 0f o rj = 0 t o 7 : r e a d p % ( j ) :n e x t j

3 5 0 t 5= 1 0

3 6 0i n p u t "d r i v e *" ; d : i f d < 0o r d > 1g o t o 3 4 0

3 7 0 o p e n1 5 , 8 , 1 5: t $ = c h r $ ( 1 ) :s $ = t $ : i d $ =" . . "

: c $ = c h r $ ( 1 9 2+ d ) :d $ = c h r $ ( 3 ) :g o s u b i2 2 0

3 8 0i = 0 : s $ = d $ : c $ = c h r $ ( 1 7 6+ d ) : t = 1 8 : t $ = c h r $ ( t )

: s = 0 : s $ = c h r $ ( s )

3 9 0g o s u b i2 2 0: i f e < > 1t h e ns t o p

4 0 0 p r i n t # 1 5 ," m - r "+ c 4 $: g e t # 1 5 , i 1 $: i f i $ =" "

t h e ni $ = c h r $ ( 0 )

4 1 0p r i n t # 1 5 ," m - r "+ c h r $ ( 3 4 )+ c 2 $: g e t # 1 5 , i 2 $

: i f i 2 $ =" " t h e n i 2 $= c h r $ ( 0 )

4 2 0 i d $ =i 1 $+ i 2 $

4 3 0d $ = c h r $ ( 4 ) :t $ = c h r $ ( 1 8 ) :s $ = c h r $ ( 0 )

: c $= c h r $ ( 1 2 8+ d )

4 4 0p r i n t # 1 5 , "m - w "+ c h r $ ( 4 1 )+ c 2 $+ c h r $ ( 4 )+ i d $+ 1 $+ s $

4 5 0p r i n t # 1 5 , "m - w "+ c h r $ ( 1 9 )+ c 2 $+ d $ + 1 $

4 6 0 g o s u b 1 2 4 0: i f e < > 1t h e ns t o p

4 7 0d $= c h r $ ( 3 ) :p r i n t :i n p u t " t r a c k , s e c t o r "; t , s

4 8 0i f t = 0 t h e ns t o p

4 9 0 1 $ =c h r $ ( t ) :s $ = c h r $ ( s ) :c $ = c h r $ ( 1 2 8+ d ) :g o s u b i 2 2 0

: i f e < > 1t h e n s t o p

5 0 0s ° / o= s / 8: s 1 = s - s ° / o * 8

5 1 0 p 3= 4 * t : p 1= p 3+ s %+ 1 : p 2 = p o / o ( s 1 )

5 2 0p r i n t # 1 5 , "m - r "+ c h r $ ( p 1 )+ c h r $ ( 1 8 ) :g e t # 1 5 , b $

5 3 0b = l e n ( b $ ) :i f b t h e nb = a s c ( b $ )

5 4 0p r i n t # 1 5 ," m - r "+ c h r $ ( p 3 )+ c h r $ ( 1 8 ) :g e t # 1 5 , b $

5 5 0p 4 = l e n ( b $ ) :i f p 4 t h e np 4 =a s c ( b $ )

5 6 0p r i n t " @ " ;5 7 0 1 1 = 1 2

5 8 0p r i n t # 1 5 , "m - r "+ c h r $ ( 0 )+ c h r $ ( 1 7 ) :g e t # 1 5 , r $

5 9 0 1 1= 0 : i f r $ =" " g o t o 6 3 0

6 0 0 1 1= a s c ( r $ )

6 1 0p r i n t # 1 5 ," m - r "+ c h r $ ( 1 )+ c h r $ ( 1 7 ) : g e t # 1 5 , r $

6 2 0s 1 = l e n ( r $ ) :i f s 1 t h e ns 1 = a s c ( r $ )

6 3 0 g o s u b 1 1 2 0

6 4 0i f 1 2= 8 t h e np r i n t "s w a p/ " ;

6 5 0i f b a n dp 2 t h e np r i n t "u s e/ " ; : g o t o 6 7 0

6 6 0p r i n t" f r e e/ " ;

6 7 0i f t 1> O t h e n p r i n t "n e x t/ " ;

6 8 0p r i n t "m a p/ r e a d/ q u i t/ p r i n t [ 1 7 s p a c e s ] "

6 9 0i n p u t "[ S s h i f t e d s p a c e s ^ l e f t T ^ q S

: p r i n t" E S E 3" :r e mh o m e , 1 7 d o w n7 0 0i f I e n ( q $ ) < l 2 * 3+ 4 g o t o 7 8 0

7 1 0 x $= m i d $ ( q $ , 3 , 1 ) :i f x $ < >" < " g o t o 7 8 0

7 2 0e = 0 : r = 1 : g o s u b 1 3 3 0

7 3 0x $ = " m - w "+ c h r $ ( v )+ c h r $ ( 1 7 )+ c h r $ ( l 2 )

: i f e > 0t h e ns t o p

7 4 0f o rj = 0 t o 1 2 - 1: r = 5 + 3 * j :g o s u b i3 3 0

: x $ = x $ + c h r $ ( v ) :n e x t j

7 5 0 p r i n t # 1 5 , x $

7 6 0c $ = c h r $ ( 1 4 4 +d ) :g o s u b i 2 4 0

7 7 0g o t o 4 9 0

7 8 0f o rj = 1 t o l e n ( q $ ) :q = a s c ( m i d $ ( q $ , j ) )

: i f q = 6 3 o r q =3 2 t h e nn e x t j

7 9 0f o rj = 1 t o 1 : n e x t :i f q = 8 5 g o t o i0 3 0

8 0 0 i f q= 7 0 g o t o 1 0 5 0

8 1 0i f q = 7 8a n dt 1> 0 t h e nt = t 1: s = s 1 : g o t o 4 9 0

8 2 0i f q = 8 2g o t o4 7 0

8 3 0i f q = 8 1 t h e ne n d

8 4 0i f q = 8 0 g o t o1 0 0 0

8 5 0i f q = 7 7 g o t o8 9 0

8 6 0i f q < > 8 3g o t o 6 4 0

8 7 0s 7 = s 7 + 1 2 * 1 6: i f s 7 > 2 5 5t h e n s 7= 0

8 8 0 p r i n t " H " ;: 1 1= l 2 ^ o s u b 1 1 3 0: g o t o 6 4 08 9 0p r i n t "@ b a mm a p 0 ": f o rj = 0 t o2 0

: p r i n tm i d $ ( s t r $ ( j ) , 2 ) :n e x t j

9 0 0f o rj = 1 t o 3 5 : j %= j / 1 0: j 1 = j - j % *1 0

9 1 0 z $ =" " : i f j 1= 0 t h e n z $= c h r $ ( j %+ 4 8 )

9 2 0p r i n t " 0 "; t a b ( j+ 2 ) ; z $ : p r i n t t a b ( j+ 2 ) ;

c h r $ ( j 1+ 4 8 ) ;" [ 1l e f t ,1 d o w n ] " ;

9 3 0 f o r k= 0 t o 3 : j 1= j * 4+ k

9 4 0p r i n t # 1 5 , "m - r "+ c h r $ ( j 1 )+ c h r $ ( 1 8 )

9 5 0g e t # 1 5 , z $: z = l e n ( z $ ) :i f z t h e nz = a s c ( z $ )

9 6 0p o k e i3 6 + k , z: n e x t k: p o k e 2 0 8 , j :s y s 4 5 5 0

9 7 0i f p e e k( 1 3 6 ) 0 0t h e np r i n t "? " ;

9 8 0n e x t j :g e t z $

9 9 0g e t z $: i f z $ = " " g o t o 9 9 0

9 9 1g o t o 8 8 0

1 0 0 0o p e n 4 , 4: 1 1= 1 6 : c m d 4: g o s u b i1 3 0

1 0 1 0p r i n t # 4: p r i n t # 4: c l o s e 4

1 0 2 0 g o t o 6 4 0

1 0 3 0i f b a n dp 2 t h e nb = b - p 2: p 4 = p 4 - 1: g o t o 1 0 7 0

1 0 4 0 g o t o 6 4 0

1 0 5 0i f b a n dp 2 g o t o 6 4 0

1 0 6 0b = b o r p 2 : p 4 = p 4 + 1

1 0 7 0d $ = c h r $ ( 4 ) :c $ = c h r $ ( 1 4 4+ d )

1 0 8 0p r i n t # 1 5 , " m - w "+ c h r $ ( p 1 )+ c h r $ ( 1 8 )+

c h r $ ( 1 )+ c h r $ ( b )

1 0 9 0p r i n t # 1 5 , "m - w "+ c h r $ ( p 3 )+ c h r $ ( 1 8 )+

c h r $ ( 1 )+ c h r $ ( p 4 )

1 1 0 0 g o s u b i2 4 0: i f e < > 1t h e n s t o p

1 1 1 0 d $= c h r $ ( 3 ) : g o t o 8 8 0

1 1 2 0 s y s 4 3 6 8 : s 7= 0

1 1 3 0a $ = " [ a l l o c a t e d ] ": i f b a n d p 2 t h e na $ =" [ f r e e ] "

1 1 4 0p r i n t "t r a c k "; t ; "s e c t o r "; s ; a $ ; "i d = " ; i d $

1 1 5 0p o k e i9 4 , 1 1: p o k e i9 0 , s 7: s y s 4 4 4 7

1 1 6 0i f t 1 = 0 t h e np r i n t "n o n e x tb l o c k ": g o t o i1 8 0

1 1 7 0p r i n t" n e x ts e c t o r :t r a c k "; t 1 ; "s e c t o r "; s 1

1 1 8 0r e t u r n

1 1 9 0f o rI = 1 t o 2 : w %= w :w = ( w - w % ) * 1 6

: i f w % > 9t h e nw %= w %+ 7

1 2 0 0p r i n t c h r $ ( w %+ 4 8 ) ;: n e x t l

1 2 1 0r e t u r n

1 2 2 0p r i n t # 1 5 , "m - w "+ c 4 $ +c h r $ ( 4 )+ i d $+ 1 $ +s $

1 2 3 0p r i n t # 1 5 , "m - w "+ c h r $ ( 1 8 )+ c 2 $+ d $ + 1 $

1 2 4 0n = 0

1 2 5 0p r i n t # 1 5 , "m - w "+ d $+ c 2 $ +d $ + c $

1 2 6 0p r i n t # 1 5 , "m - r " + d $+ c 2 $: g e t # 1 5 , e $

1 2 7 0e = l e n ( e $ ) :i f e t h e ne = a s c ( e $ )

1 2 8 0 i f e > 1 2 7 g o t o 1 2 6 0

1 2 9 0i f e < > 1t h e nn = n + 1 : i f n < t 5g o t o i2 5 0

1 3 0 0 i f e > 2 0 t h e n e= 2 0

1 3 1 0 i f e < > 1t h e np r i n t" d i s k e r r o r :" ; e $ ( e )

1 3 2 0r e t u r n

1 3 3 0v = 0 : f o rk = r t o r + 1 : x = a s c ( m i d $ ( q $ , k ) )

1 3 4 0i f x < 5 8t h e nx = x - 4 8

1 3 5 0i f x > 6 4t h e nx = x - 5 5

1 3 6 0i f x < 0 o r x > 1 5 t h e n e = 1: g o t o 1 3 8 0

1 3 7 0v = v * 1 6 +x : n e x t k

1 3 8 0r e t u r n

T h eT r a n s a c t o r 7 4 V o l u m e5 , I s s u e0 3

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 77/84

C o m m o d o r eD i s kS p e c i f i c a t i o n s

M o d e l

D r i v e s p e rH e a d

H e a d sp e rD r i v e

F o r m a t t e dS t o r a g e

C a p a c i t yp e r U n i t

M a xS e q u e n t i a l F i l e s / D r i v e

M a xR e l a t i v eF i l e s / D r i v e

D i s kS y s t e mB u f f e r

D i s kF o r m a t s

C y l i n d e r s( T r a c k s )

S e c t o r sp e rC y l i n d e r

S e c t o r s p e rT r a c k

B y t e sp e r S e c t o r

B l o c k s F r e e

T r a n s f e rR a t e s( b y t e sp e rs e c o n d )

I n t e r n a lt o U n i t

I E E E - 4 8 8 B u s

A c c e s sT i m e s( m i l l i - s e c o n d s )

T r a c k - T o - T r a c k

A v e r a g eT r a c k

H e a dS e t t l i n gT i m e

A v e r a g eL a t e n c y

R P M

D 9 0 9 0

1

( i

7 . 4 7M B

7 . 4 1M B

7 . 3 5M B

4 K B

1 5 3

1 2 8

3 2

2 5 6

2 9 1 6 2

5 M B

1 . 2K B

3

1 5 3

1 5

8 . 3 4

3 6 0 0

D 9 0 6 0

1

4

4 . 9 8M B

4 . 9 4M B

4 . 9 0M B

4 K B

1 5 3

1 9 2

3 2

2 5 6

1 9 4 4 2

5 M B

1 . 2K B

3

1 5 3

1 5

8 . 3 4

3 6 0 0

8 2 5 0

2

2

2 . 1 2M B

1 . 0 5M B

1 . 0 4M B

4 K B

7 7

2 3 - 2 9

2 5 6

8 2 6 6

4 0 K B

1 . 2K B

5

1 2 5

1 0 0

3 0 0

8 0 5 0

2

1

1 . 0 5M B

5 2 1K B

1 8 3K B

4 K B

7 7

2 3 - 2 9

2 5 6

4 1 0 4

4 0 K B

1 . 2K B

*

* *

1 0 0

3 0 0

4 0 4 0

2

1

3 4 0K B

1 6 8K B

1 6 7K B

4 K B

3 5

1 7 - 2 1

2 5 6

1 3 2 8

4 0 K B

1 . 2K B

3 0

3 6 0

1 0 0

3 0 0

2 0 3 1

1

1

1 7 0 K B

1 6 8K B

1 6 7K B

2 K B

3 5

1 7 - 2 1

2 5 6

6 6 4

4 0 K B

1 . 2K B

3 0

3 6 0

1 0 0

3 0 0

1 5 4 1

1

1

1 7 0 K B

1 6 8 K B

1 6 7 K B

2 K B

3 5

1 7 - 2 1

2 5 6

6 6 4

-

3 0

3 6 0

1 0 0

3 0 0

* T r a c k - T o - T r a c k : M i c r o p o l i s8 0 5 0= 3 0m s .T a n d o n8 0 5 0 =5 m s .

" A v e r a g eT r a c k : M i c r o p o l i s8 0 5 0 = 7 5 0m s . T a n d o n8 0 5 0 =1 2 5 m s .

P h y s i c a lD i m e n s i o n s

H e i g h t( i n c h e s )

W i d t h( i n c h e s )

D e p t h( i n c h e s )

W e i g h t( p o u n d s )

E l e c t r i c a l

P o w e r( W a t t s )

V o l t a g e( a l lm o d e l s )

5 . 7 5

8 . 2 5

1 5 . 2 5

2 1

2 0 0

5 . 7 5

8 . 2 5

1 5 . 2 5

2 1

2 0 0

7 . 0

1 5 . 0

1 3 . 7 5

2 8

6 0

7 . 0

1 5 . 0

1 3 . 7 5

2 8

5 0

7 . 0

1 5 . 0

1 3 . 7 5

2 8

5 0

5 . 5

8 . 0

1 4 . 2 5

2 0

4 0

3 . 0

7 . 0

1 3 . 0

1 0

3 5

1 1 0 -1 2 0V A C .6 0 H z

D i s k U t i l i t y - C o m m a n dS e t S e c t o rD i s t r i b u t i o nB yT r a c k

C o m m a n d

B l o c k - R e a d

B l o c k - W r i t e

B l o c k - E x e c u t e

B u f f e r - P o i n t e r

B l o c k - A l l o c a t e

B l o c k - F r e e

M e m o r y - W r i t e

M e m o r y - R e a d

M e m o r y - E x e c u t e

U s e rC o m m a n d

A b b r e v i a t i o n

B - R

B - W

B - E

B - P

B - A

B - F

M - W

M - R

M - E

l i

F o r m a t

" B - R : " c h : d r ; t ; s

" B - W : " c h ; d r ; t ; s

" B - E : " c h ; d r ; t ; s

" B - P : " c h : p

" B - A : " d r ; t ; s

" B - F : "d r ; t ; s

" M - W "a d L / a d H / n c / d a t a

" M - R "a d l / a d h

" M - E "a d l / a d h

" u x : c h ; d r ; t ; s

C H

D R

T

S

P

A D L

A D H

N C

D A T A

X

P A R M S

T h ec h a n n e ln u m b e ri n D O S :i d e n t i c a lt o t h eS e c o n d a r yA d d r e s si n

t h e a s s o c i a t e dO P E Ns t a t e m e n t

T h eD r i v en u m b e r :0 ( o r1 f l o p p y d u a ld r i v e s )

T h eT r a c kn u m b e r :1 t h r o u g h1 5 4( d e p e n d i n go n t h em o d e l * )

S e c t o rn u m b e r: 0 t h r o u g h1 1 2( d e p e n d i n g o nt h em o d e l * )

T h ep o i n t e r P o s i t i o nf o rt h eb u f f e rp o i n t e r

T h eL o wb y t eo f t h eA d d r e s s( u s eC H R $ ( A D L ) )

T h eH i g hb y t eo f t h eA d d r e s s( u s eC H R $ ( A D L ) )

T h eN u m b e ro f C h a r a c t e r s :1 t h r o u g h3 4

T h ea c t u a ld a t ai n h e x a d e c i m a l .T h i si s t r a n s m i t t e db y u s i n g t h e

C H R $f u n c t i o n ,i e .C H R $ ( 1 7 ) w o u l ds e n dt h ed e c i m a le q u i v a l e n to f

h e x a d e c i m a l1 1

T h ei n d e xt o t h e u s e rt a b l e

T h eP a r a m e t e r sa s s o c i a t e dw i t ht h eU c o m m a n d( o p t i o n a l )

T r a c kN u m b e r

1 - 1 7

1 8 - 2 4

2 5 - 3 0

3 1 - 3 5

T r a c kN u m b e r

1 - 3 9

4 0 - 5 3

5 4 - 6 4

6 5 - 7 7

7 8 -1 1 6

1 1 7 -1 3 0

1 3 1 - 1 4 1

1 4 2 -1 5 4

N u m b e ro f S e c t o r s

4 0 4 0

2 1

1 9

1 8

1 7

8 0 5 0

2 9

2 7

2 5

2 3

2 0 3 1

2 1

1 9

1 8

1 7

8 2 5 0

2 9

2 7

2 5

2 3

2 9

2 7

2 5

2 3

1 5 4 1

2 1

1 9

1 8

1 7

D 9 0 6 0 / D 9 0 9 0- 1 5 3t r a c k sp e r r e c o r d i n gs u r f a c e( 4 o n

D 9 0 6 0a n d6 o n t h eD 9 0 9 0 )w i t h3 2 s e c t o r sp e rt r a c k

U s e rC o m m a n dJ u m pT a b l e

S t a n d a r d

S y n t a x

U l

U 2

U 3

U 4

U 5

U 6

U 7U 8

U 9

U :

A l t e r n a t e

S y n t a x

U A

U B

U C

U D

U E

U F

U GU H

U l

U J

F u n c t i o n

B l o c k - R e a d r e p l a c e m e n t

B l o c k - W r i t er e p l a c e m e n t

J u m pt o $ 1 3 0 0

J u m pt o $ 1 3 0 3

J u m pt o $ 1 3 0 6

J u m pt o $ 1 3 0 9

J u m p t o $ 1 3 0 CJ u m p t o $ 1 3 0 F

J u m p t o $ 1 0 F 0( N M I )

P o w e r - U pv e c t o r( r e s e t )

a n s a c t o r

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 78/84

B A M( B l o c k A l l o c a t i o nM a p )F o r m a t s

4 0 4 0 ,2 0 3 l , a n d1 5 4 1B A MF o r m a t- T r a c k1 8 S e c t o r0 0

B y t e *

0 - 1

2

3

4 - 1 4 3

D e s c r i p t i o n

T r a c k - S e c t o ro f f i r s tD i r e c t o r yb l o c k

A S C I I' a ' I d e n t i f i e sD O S2 . 6f o r m a t

R e s e r v e df o rf u t u r eD O Su s e

B i tm a po f a v a i l a b l eb l o c k s

D a t a

1 8 - 0 0

6 5

0 0

t r a c k s1 - 3 5

8 0 5 0B A MF o r m a t

B y t e *

0 - 1

2

3

4

5

6

7 - 1 0

1 1 - 2 5 5

D e s c r i p t i o n

T r a c k - S e c t o ro f n e x tB A Mb l o c k

A S C I I' c 1I d e n t i f i e sD O S2 . 5f o r m a t

R e s e r v e df o rf u t u r eD O Su s e

L o w e s tt r a c k* m a p p e di n t h i sB A Mb l o c k

H i g h e s tt r a c k* ( +1 ) m a p p e di n t h i sB A Mb l o c k

N u m b e ro f u n u s e db l o c k so n t r a c k :

B i tm a po f a v a i l a b l eb l o c k so n t r a c k :

( B A M2 : 1 1—1 4 0 ) B i tm a po f a v a i l a b l eb l o c k so n t r a c k s :

D a t a

B A M1

T r 3 8/ S c O O

3 8 - 0 3

6 7

0 0

0 1

5 1

1

1

2 - 5 0

B A M2

T r 3 8/ S c O 3

3 9 - 0 1

6 7

0 0

5 1

7 8

5 1

5 1

5 2 - 7 7

8 2 5 0B A MF o r m a t

B y t e *

0 - 1

23

4

5

6

7 - 1 0

1 1 - 2 5 5

D e s c r i p t i o n

T r a c k - S e c t o ro f n e x tB A Mb l o c k

A S C I I' c ' I d e n t i f i e sD O S2 . 7f o r m a tR e s e r v e df o rf u t u r eD O Su s e

L o w e s tt r a c k* m a p p e di n f i r s tB A Mb l o c k

H i g h e s tt r a c k* ( + 1 ) m a p p e di n f i r s tB A Mb l o c k

n u m b e ro f u n u s e db l o c k so n t r a c k :

b i t m a po f a v a i l a b l eb l o c k so n t r a c k :

( B A M4 : 1 l - 2 5 ) B i tm a po f a v a i l a b l eb l o c k so n t r a c k s :

D a t a

B A M1

T r 3 8/ S c O O

3 8 - 0 3

6 70 0

0 1

5 1

1

1

2 - 5 0

B A M2

T r 3 8/ S c O 3

3 8 - 0 6

6 70 0

5 1

1 0 1

5 1

5 1

5 2 - 1 0 0

B A M3

T r 3 8/ S c O 6

3 8 - 0 9

6 70 0

1 0 1

1 5 1

1 0 1

1 0 1

1 0 2 - 1 5 0

B A M4

T r 3 8/ S c O 9

3 8 - 0 1( D i r )

6 70 0

1 5 1

1 5 5

1 5 1

1 5 1

1 5 2 - 1 5 4

D 9 0 6 0/ D 9 0 9 0B A MF o r m a t- T r a c k1 S e c t o r0 ( n o r m a ll o c a t i o n )

B y t e *

0 - 1

2 - 3

4

5

6

7 - 1 0

1 1 - 2 5 5

D e s c r i p t i o n

T r a c k - S e c t o rp o i n t e rt o n e x tB A Mb l o c k

T r a c k - S e c t o rp o i n t e rt o p r e v i o u sB A Mb l o c k

L o w e s tt r a c k* m a p p e di n t h i sB A Mb l o c k

H i g h e s tt r a c k* ( + 1 ) m a p p e di n t h i sB A Mb l o c k

N u m b e ro f b l o c k su n u s e do n t h i st r a c k

B i tm a po f a v a i l a b l eb l o c k so n t h i st r a c k

B i tm a po f t h e n e x t4 9 t r a c k s

D a t a

$ F F F F =l a s t

$ F F F F =f i r s t

D i r e c t o r yF o r m a t

2 0 3 1 , 4 0 4 0 , 1 5 4 1D i r e c t o r yH e a d e r- T r a c k1 8 S e c t o r0 0

B y t e *

1 - 1 4 3

1 4 4 - 1 6 1

1 6 2 - 1 6 3

1 6 4

1 6 5 - 1 6 6

1 6 7 - 1 7 0

1 7 1 - 2 5 5

D a t a

1 6 0

5 0 , 6 5

1 6 0

0 0

D e s c r i p t i o n

R e s e r v e df o r2 0 3 1B A M

D i s k e t t en a m e , p a d d e dw i t hs h i f t e ds p a c e s

D i s k e t t eI D n u m b e r

S h i f t e ds p a c e

A S C I I' 2 a 'i d e n t i f i e sD O Sv e r s i o na n df o r m a t

S h i f t e ds p a c e s

N o t u s e d

8 0 5 0 , 8 2 5 0D i r e c t o r yH e a d e r- T r a c k 3 9S e c t o r0 0

B y t e *

0 - 1

2

3

4 - 5

6 - 2 1

2 2 - 2 3

2 4 - 2 5

2 6

2 7 - 2 8

2 9 - 3 2

3 3 - 2 5 5

D a t a

3 8 , 0 0

6 7

0 0

1 6 0

1 6 0

5 0 , 6 7

1 6 0

0 0

D e s c r i p t i o n

T r a c k - S e c t o rt o f i r s tB A Mb l o c k

A S C I I' c ' i d e n t i f i e sD O S2 . 5f o r m a t

r e s e r v e df o rf u t u r eD O Su s e

N o t u s e d

D i s k e t t en a m e , p a d d e dw i t hs h i f t e ds p a c e s

S h i f t e ds p a c e s

D i s k e t t eI D n u m b e r

S h i f t e ds p a c e

A S C I I' 2 c 'i d e n t i f i e sD O Sv e r s i o na n df o r m a t

S h i f t e ds p a c e s

N o t u s e d

D 9 0 6 0/ D 9 0 9 0D i r e c t o r yH e a d e r- T r a c k 0S e c t o r0

B y t e *

0 - 1

2 - 3

4 - 5

6 - 7

8 - 9

D a t a

0 0 , 2 5 5

7 6 , 0 0

0 0 , 0 0

0 1 , 0 0

D e s c r i p t i o n

T r a c k - S e c t o rp o i n t e rt o b a dt r a c ka n ds e c t o rl i s t

I d e n t i f i e sD O S3 . 0f o r m a t , .

T r a c k - S e c t o ro f f i r s td i r e c t o r yb l o c k

N o t u s e d

T r a c k - S e c t o ro f f i r s tB A Mb l o c k

2 0 3 1D i r e c t o r yB l o c k s - T r a c k1 8 S e c t o r0 1 t h r o u g h1 8

4 0 4 0D i r e c t o r yB l o c k s- T r a c k1 8S e c t o r0 1 t h r o u g h1 8

8 0 5 0D i r e c t o r yB l o c k s- T r a c k3 9 S e c t o r0 1 t h r o u g h2 9

8 2 5 0D i r e c t o r yB l o c k s- T r a c k3 9 S e c t o r0 1 t h r o u g h2 9

D 9 0 6 0/ D 9 0 9 0D i r e c t o r ) 'B l o c k s- S t a r t i n go n c y l i n

d e r7 6 ,u s e sa l lT r a c k s - S e c t o r s0 0 t h r o u g h3 1 ,t h e n

e x p a n d st o a d d i t i o n a lb l o c k sa s r e q u i r e d ,p r o v i d i n g

' u n l i m i t e d 'D i r e c t o r ys i z e .

B y t e *

0 - 1

23 - 4

5 - 2 0

2 1 - 2 2

2 3

2 4 - 2 7

2 8 - 2 9

3 0 - 3 1

3 2 - 2 5 5

D e s c r i p t i o n

T r a c k - s e c t o rp o i n t e rt o n e x td i r e c t o r yb l o c k

F i l et y p eT r a c k - s e c t o rp o i n t e rt o f i r s t f i l eb l o c k

F i l en a m e ,p a d d e dw i t hs h i f t e ds p a c e s

T r a c k - s e c t o ro f f i r s ts i d es e c t o ri f R E L a t i v ef i l e

R e c o r dl e n g t hi f r e l a t i v ef i l e

R e s e r v e df o rf u t u r ef i l ei n f o r m a t i o n

T r a c k - s e c t o rp o i n t e rf o rr e p l a c e m e n t

N u m b e ro f b l o c k su s e d b yt h ef i l e

S e v e nm o r e3 2 — b y t ef i l ee n t r i e s( s a m ea s 2 - 3 1

a b o v e ,p l u st w oa d d i t i o n a lu n u s e db y t e s )

A d d i t i o n a lN o t e s

3 2 b y t e s p e rf i l ee n t r y ,e x c e p tt h ef i r s te n t r yi s 3 0 b y t e s

T o t a lo f e i g h t( 8 )f i l ee n t r i e sp e rd i r e c t o r yb l o c k

F i l et y p e sa r e :S c r a t c h e dF i l e s $ 0 0

S e q u e n t i a lF i l e s $ 0 1

P r o g r a mF i l e s $ 0 2

U s e r - D e f i n e d $ 0 3

R e l a t i v eR e c o r d $ 0 4

F i l et y p ec o d e sa r eO R ' e dw i t h$ 8 0w h e nf i l ei s p r o p e r l yc l o s e d

T r a c kv a l u eo f 0 0 i n b y t e z e r oi n d i c a t e st h el a s tu s e db l o c ki n

t h ed i r e c t o r y .S e c t o rv a l u et h e ns h o w sn e x tb y t et o u s e

T h eT r a n s a

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 79/84

T h « T « « h / N •w i J o u r n a lF o rC o m i

P A Y S

$ 4 0p e rp a g ef o ra r t i c l e s

W e ' r ea l s ol o o k i n gf o r

p r o f e s s i o n a l l y

d r a w nc a r t o o n s !

S e n da l lm a t e r i a lt o :

T h eE d i t o r

T h eT r a n s a c t o r5 0 0S t e e l e sA v e n u e

M i l t o n ,O n t a r i o

L 9 T3 P 7

I s s u e *

V o l u m e5 E d i t o r i a lS c h e d u l e

T h e m e C o p yD u e P r i n t e d R e l e a s eD a t e

1

2

3

4

5

6

1

2

3

4

5

G r a p h i c sa n d S o u n d

T h eT r a n s i t i o nt o M a c h i n eC o d e

S o f t w a r eP r o t e c t i o n& P i r a c y

B u s i n e s sa n dE d u c a t i o n

H a r d w a r ea n dP e r i p h e r a l s

P r o g r a m m i n gA i d s& U t i l i t i e s

F e b1

A p r l

J u n1

A u g1

O c t l

D e c l

M a r1 9

M a y2 1

J u l 2 3

S e p l 7

N o v l 9

J a n1 9

V o l u m e6 E d i t o r i a lS c h e d u l e

C o m m u n i c a t i o n s& N e t w o r k i n gF e b1 M a r2 1

L a n g u a g e s

I m p l e m e n t i n gT h eS c i e n c e s

H a r d w a r e& S o f t w a r eI n t e r f a c i n g

R e a lL i f eA p p l i c a t i o n s

A p r l

J u n1

A u g l

O c t l

M a y2 0

J u l l 8

S e p 2 1

N o v l 9

A p r i l1

J u n e1

A u g u s t1

O c t o b e r1

D e c e m b e r1

F e b r u a r y1 / 8 5

A p r i l1 / 8 5

J u n e1

A u g u s t1

O c t o b e r1

D e c e m b e r1

A d v e r t i s e r sa n dA u t h o r ss h o u l dh a v em a t e r i a ls u b m i t t e dn o

l a t e rt h a nt h e' C o p y D u e 'd a t et o b e i n c l u d e d

w i t ht h e r e s p e c t i v ei s s u e .

P R O - L I N E■ ■ ■ ■ I I I I S O F T W A R E

A C A N A D I A NC O M P A N Y

d e s i g n i n g ,

d e v e l o p i n g ,

m a n u f a c t u r i n g ,

p u b l i s h i n g

a n d

d i s t r i b u t i n g

m i c r o c o m p u t e rs o f t w a r e

D E A L E RE N Q U I R I E SW E L C O M EA U T H O R ' SS U B M I S S I O N SI N V I T E D

C A L LO R W R I T E

( 4 1 6 ) 2 7 3 - 6 3 5 0

P R O - L I N E■ ■ ■ I I I I S O F T W A R E

7 5 5T H EQ U E E N S W A YE A S T .U N I T8

M I S S I S S A U G A .O N T A R I OL 4 Y 1 C 5

C O M M O D O R EO W N E R S

J o i n t h e w o r l d ' sl a r g e s t ,a c t i v eC o m m o d o r e

O w n e r sA s s o c i a t i o n .

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

o n t a p ea n dd i s kf o ry o u rC o m m o d o r e6 4 , V I C2 0

a n dP E T / C B M .

• M o n t h l y C l u b M a g a z i n e

A n n u a l C o n v e n t i o n

M e m b e rB u l l e t i nB o a r d

• L o c a lC h a p t e r M e e t i n g s

S e n d$ 1 . 0 0f o r P r o g r a mI n f o r m a t i o nC a t a l o g u e .

( F r e e w i t hm e m b e r s h i p ) .

M e m b e r s h i p

F e e sf o r

1 2 M o n t h s

C a n a d a — $ 2 0C a n .

U . S . A . — $ 2 0U . S .

O v e r s e a s— $ 3 0U . S .

T . P . U . G .I n c .

D e p a r t m e n t" M "

1 9 1 2 AA v e n u eR o a d ,S u i t e1

T o r o n t o ,O n t a r i o ,C a n a d aM 5 M4 A 1

* L E TU S K N O WW H I C H M A C H I N EY O UU S E*

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 80/84

B a c kI s s u e s

I S S U E# 1 — J A N .' 8 4 $ 4 . 0 0

T h e6 4 v . t h e P e a n u t !T h ec o m

p u t e ra s c o m m u n i c a t i o n sd e v i c e !

P r o t e c t o ' sB i l lB a d g e ri n t e r

v i e w e d !A n dr e a d yt o e n t e r :t h e

M u l t iD r a w6 4g r a p h i c ss y s t e m !

T h eI n t e r r u p tM u s i cM a k e r /

E d i t o r !A P e e ka t M e m o r y !P r o

g r a m m i n gS e q u e n t i a lF i l e s !

D o n ' tp u n c ha n o t h e r k e y

w i t h o u ta c o m p l e t ec o l l e c t i o n

o f A h o y !a n d t h e p r o g r a m

m i n gs t r a t e g i e sa n dp r o d u c t

a n a l y s e se a c hi s s u ep r o v i d e s .

O r d e rw h i l e s u p p l i e sl a s t !

I S S U E# 2 — F E B .' 8 4 $ 4 . 0 0

I l l u s t r a t e dt o u ro f t h e 1 5 4 1d i s k

d r i v e !S y n a p s e ' s I h o r W o l o

i n t e r v i e w e d !U s e r sg r o u p s !A r t i

f i c i a li n t e l l i g e n c e !A n dr e a d yt o

e n t e r :M u s i cM a k e rP a r tI I !

N i g h tA t t a c k !P r o g r a m m i n gR e l

a t i v e F i l e s !S c r e e n M a n i p u l a t

o n t h eC o m m o d o r e6 4 !

V * • -" « k / # , |r \ 1 X ^-

r _ i r \ r6 4 ! 1 ,

M A S !

~ t _ ^ / i- .k / l - _ _ ♦ - >

< A \ V H " % . Oi i i . M )m i s ? r ^ aI KV O X l ^ t ^I ' l l l - S S j - J l ,I I I I . S IK I V S &W F %i i i t \ n i i i ' V i i :• i ^

B i l l ^

- 1 ♦ \ - :

— ' i f^ — !

~ A !

0 %I S S U E# 3 — M A R .' 8 4$ 4 . 0 0

A n a t o m yo f t h e 6 4 ! P r i n t e r I n

t e r f a c i n gf o r t h e6 4 a n d V I C !E d u c a t i o n a ls o f t w a r e :f i r s to f a

s e r i e s !C o m m o d a r e s !A n d

r e a d yt o e n t e r :S p a c eL a n e s !

R a n d o mF i l e so n t h e 6 4 !E a s y

A c c e s sA d d r e s sB o o k !D y n a m i c

P o w e rf o ry o u r6 4 !

A !i i n ' s i i . i ;

I H . V I

i - ' t t i r . M K /

i 1

1 . 1V \ l l \l . . \\ I H. I f 1- \ r , i

< n v i . i . r . 1

[m u i s

q m s TA i m a i ii n :

( . a m i:

1 O \ H K H M H ! Ii ? * : i t . s

1 M U S I V I !

• ,

I S S U E# 4 - A P R .' 8 4 $ 4 . 0 0

P e t s p e e da n d E a s yS c r i p t

t u t o r i a l s !P r i n t e r i n t e r f a c i n ga n de d u c a t i o n a l s o f t w a r eg u i d ec o n

t i n u e d !L o w e rc a s ed e s c e n d e r s

o n y o u r1 5 2 5 ! L a s e r d i s c !T h e

D a l l a sQ u e s t A d v e n t u r eG a m e !

A n dr e a d yt o e n t e r :A p p l eP i e !

L u n a rL a n d e r !N a m et h a t S t a r !

I S S U E# 5 - M A Y' 8 4 $ 4 . 0 0

T h eF u t u r eo f C o m m o d o r e !I n

s i d eB A S I Cp r o g r a ms t o r a g e !C - 6 4S p r e a d s h e e t s !M e m o r y

M a n a g e m e n to nt h eV I Ca n d6 4 !

E d u c a t i o n a lS o f t w a r eG u i d e

c o n t i n u e s !A n dr e a d yt o e n t e r :

M a t hM a s t e r ! A i rA s s a u l t !B i o -

r h y t h m s !V I C2 0 C a l c u l a t o r !

S e n dc o u p o no r f a c s i m i l et o :

A h o y !B a c kI s s u e s ,I o nI n t e r n a t i o n a lI n c . ,4 5 W e s t3 4 t h S t r e e t — S u i t e 4 0 7 ,N e wY o r k ,N Y 1 0 0 0 1

P l e a s eS e n dM eT h eF o l l o w i n g :

C o p i e so f i s s u en u m b e rC o p i e so f i s s u en u m b e rC o p i e so f i s s u en u m b e r

N A M E

A D D R E S S .

E n c l o s e d P l e a s eF i n dM yC h e c ko rM o n e yO r d e rf o r$

( O u t s i d e t h eU S Ap l e a s ea d d$ 1 . 0 0f o re v e r yc o p y )

C I T Y

S T A T E

Z I PC O D E .

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 81/84

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 82/84

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 83/84

I f y o ur e a dT r a n s a c t o r ,y o u ' r en o t t h e a v e r a g eC o m m o d o r eo w n e r .Y o ud i d n ' tb u y

y o u rc o m p u t e rt o s e ew h a ts o m e o n ee l s e ' ss o f t w a r e c o u l dd o . Y o uw a n ta d i s c o v e r yt o o l .

O v e rt h e y e a r s o f t e a c h i n gc o m p u t e rp r o g r a m i n gt o a d u l t sa n dc h i l d r e n ,I ' v eb e e n

s t r u c kb y h o w m u c hm o r et h e yd i s c o v e ra b o u tp r o g r a m m i n gw h e nt h e yh a v ea t h i n g ,

a d e v i c ew h i c ht h e y ' r ew r i t i n gf o r . O n et h a t ' se a s yt o b u i l d ,e a s yt o u n d e r s t a n d ,e a s y

t o p r o g r a m ,a n df u nt o u s e .

O n eo f t h e s i m p l e s t ,y e t m o s tp o w e r f u lg i z m o sy o uc a n p l u gi n t oy o u rc o m p u t e r .

I t ' sa d r a w i n gd e v i c e ,a c o n t r o l l e r ,a m u s i c a li n s t r u m e n t ,a d i s c o v e r yt o o l .

I t h a st w oe s s e n t i a lp a r t s :a b o a r d ,a n da p o i n t e r .A s y o ug u i d et h e p o i n t e ra r o u n dt h eb o a r d ,t h ec o m p u t e ra l w a y sk n o w sw h e r e y o ua r e .

U n l i k ei t s h i g h - t e c hc o u s i n s ,K o a l a p a d ® a n dP o w e r p a d® , t h e

i s s o m e t h i n gy o u c a n t a k ea p a r t ,t i n k e r w i t h ,p u t b a c kt o g e t h e r .K i d sa s s e m b l et h e i r

o w ni n c l a s s .A l lt h e yn e e di s a s c r e w d r i v e r .

T h e h a s t w o p o t e n t i o m e t e r sm o u n t e di n i t s l u c i t ep o i n t e ra r m

a n da d u r a b l e - s u r f a c e 1 2 "x 1 6 " d r a w i n g b o a r dy o uc a nw r i t eo n a n d w i p eo f f . T w op u s h b u t t o n s c o n v e n i e n t l ym o u n t e dr i g h to n t h e e d g eo f t h eb o a r da c t l i k ea n e x t r as e t

o f f u n c t i o nk e y s .T h et u t o r i a l - b a s e dm a n u a ls h o w sy o uh o wt o p u t i t t o g e t h e ra n d c h e c ki t o u t . A n dg e t t i n gy o us t a r t e d a r es o m es a m p l e p r o g r a m si n B a s i cw i t hl o t so f c o m m e n t s .

a d i s k ,w i t hm a n ym o r ep r o g r a m s ,f o r

r e g i s t e r e do w n e r s .

S e n da c h e c ko r m o n e yo r d e r( U . S . f u n d s )f o r $ 5 0p l u s$ 4 p o s t a g ea n dh a n d l i n g

( U . S .a n dC a n a d a ) .P l e a s es p e c i f yw h a tc o m p u t e r y o uh a v e .I f y o u w a n tt h ed i s k ,a d d

a n o t h e r$ 1 5f o rt h eC 6 4« o r $ 8 f o rt h eV I Cs > v e r s i o n .

8/7/2019 The Transactor V5 03 1984

http://slidepdf.com/reader/full/the-transactor-v5-03-1984 84/84

G E TT H EM O S T O U TO FY O U R

o r V K > 2 O c o m p u t A L S OA V A I L A B L E :

3 o u t s t a n d i n g

M u s i cA l b u m st o

g o w i t hS y n t h y - 6 4

C l a s s i c a l

C h r i s t m a sa n dR a g / S i n g A l o n g

S e eb e l o w

L A N G U A G EB O O K

F O RT H EC O M M O D O R E

6 4

T A S - 6 4T e c h n i c a lA n a l y s i sS y s t e m

l o rs t o c kM a r k e tE v a l u a t i o n

C H A R T

P L O T - 6 4P L O T E R S U P P O R T :

A M D E KH e w l e t t P a c k a r d

H o u s t o nI n s t .

S T R O B E

S w e e t - P

R o l a n dD G

T H EA N A T O M Y

O F T H E1 5 4 1

D I S KD R I V E

P r o f e s s i o n a l

D e v e l o p m e n t

S o f t w a r e

F o rQ u a l i t y

A p p l i c a t i o n s

U L T R A B A S I C - 6 4 . . . A d d5 0c o m m a n d s :g r a p h i c s ,m u s i c ,T U R T L Ea n dg a m ef e a t u r e s . T u t o r i e 'd e m op l u s .

T A P E$ 2 4 . 9 5D I S K $ 2 7 . 9 5

A S S E M B L E R - M O N I T O R - M

H i g h s p e e d l a n g u a g e

d e v e l o p m e n t .E l e v e nf u n ct i o ne d i t o r .S c r e e ne d i t i n go f

s o u r c ef i l e . D I S K$ 3 2 . 9 5

M E R C U R E 6 4S i m p l e

S Y N T H Y - M . . .S e t st h e s t a n d a r df o r a l l o f t h er e s t .

B e s t6 4 - s y n t h e s i z e ra n y w h e r e .S a m p l e s a n dm a n u a l .C A S S E T T E$ 2 4 . 9 5 D I S K$ 2 7 . 9 5 .A l s oa v a i l a b l e :3 g r e a t

c o m p a n i o nm u s i ca l b u m s :C l a s s i c a l ,C h r i s t m a s , a n d

R a g t i m eS i n g - A l o n g .D I S K$ 1 2 . 9 5E a c h .

M A C H I N EL A N G U A G E B O O K

L e a r na l l i n s t r u c t i o n s .

A c c e s sR O Mr o u t i n e s ,I / O .

L i s t i n g sf o r A s s e m b l e r ,

S I M U L A T O R ,m o r e .

G R A P H I C SD E S I G N E R - S 4 . . .

M e n u - d r i v e nd r a w i n g s ,f l o o r

p l a n sa n di l l u s t r a t i o n se t c . .

S l i d ep r o g r a mc a p a b i l i t y .

D I S K$ 3 2 . 9 5

T A S - 6 4 . . .F u l l f e a t u r e d2 0 0 +P A G EB O O K$ 1 4 . 9 5

C H A R T P A K - 6 4 . . . P r o f e s

s i o n a l q u a l t i yp i e , l i n ea n db a rc h a r t s .M e n ud r i v e n ,i n

t e r a c t i v e ,h a r d c o p y .

D I S K$ 4 2 . 9 5

C H A R T P L 0 T - 6 4 . . . S a m ef i n e

f e a t u r e s a sC H A R T P A K - 6 4w i t h h i g hq u a l i t yo u t p u tt o

p l o t t e r s .

D I S K $ 8 4 . 9 5

A N A T O M YO F T H E1 5 4 1

Z O O MP A S C A L - 6 4 . . . P r o

d u c e s6 5 0 2 m a c h i n e c o d ef o rs p e e d .B o a t i n gp o i n t ,I n

t e g e r s , s t r i n g sF i l eh a n d l i n g .

D I S K $ 3 9 . 9 5

P O O L - 6 4 / 2 0 . . . P l a yF u l lr a c k

o r n i n eb a l l u s i n gh i r e s

g r a p h i c s ,v l c - 2 0r e q u i r e d8 Ke x p a n d e r .

T A P E$ 1 4 . 9 5D I S K$ 1 7 . 9 5

S U P E RD I S KU T I L I T Y - 6 4 .

S p e e d c o p y4 w a y s :T o t a l ,

B a m ,A p p e n do r F i l e .D u m po r m o d i f ys e c t o r s .M o r e .

D I S K$ 2 2 . 9 5

X R E F - 6 4 . . . S o r t e dB A S I C

c r o s s - r e f e r e n c eo n s c r e e no r

p r i n t e rF a s tM L S o r t .A d d

y o u ro w nt o k e n s .

D I S KO N L Y $ 1 7 . 9 5

M A S T E R - 6 4 . . . I n d e x e df i l e s ;p o w e r f u ls c r e e nm a n a g -