+ All Categories
Home > Documents > The Transactor V2 05 1979 Oct 31

The Transactor V2 05 1979 Oct 31

Date post: 08-Apr-2018
Category:
Upload: cubemanpdx
View: 218 times
Download: 0 times
Share this document with a friend
26
8/7/2019 The Transactor V2 05 1979 Oct 31 http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 1/26 u u n i m o d o r e c o m m e n t s a n b u l l e t i n s c o n c e r n i n g y o u r C O M M O D O R E P E T T h T r a n s a c t o r P E I T > i s r e g i s t e r e d T r a d e m a r k o C o m m o d o r e I n c . V o l . 2 B U L L E T I N O c t . 3 1 1 9 7 9 C a . s e C o n v e r t e r T h - f o l l o w i n g r f i a . o h i n e l a n s i u a a e p r o a r - a f t i c = > t ~ i f o u s e d " t c o n v e r t o l d R O u ^ ^ e r / l o u j e r c s s e t o t h e c o n v e n t i o n u s e d b n e R O M P E T s . L O R D a r i d R U N t h e P r o - a r - a m b e l o w . T h e n L O f l D " t h e p r o s r a m y o u w i s h " t c o n v e r t - f o r - o p e r a t i o n w i t h n e R O M s . T y p e S V S 8 2 s s ' i d w e l l a ! . . » = > . 1 u w e r c a s e b c o n i e s l o w e r c a s e a n o - f ' o o u r s e ' . ' i c e v e r s a . 1 8 F O 8 2 T 9 2 5 : R E f l D f 1 1 P O K E , T f l - ' N E X T 1 3 D R T R 1 6 . 4 1 3 2 0 1 6 9 , 1 , 1 3 3 , 2 0 1 4 D R T f l 3 2 8 9 3 1 6 8 , S 1 9 6 , 2 8 2 . . 2 4 0 , 1 1 5 D R T R 1 7 7 , 2 0 1 7 8 , 2 0 8 , 7 7 2 0 1 3 1 6 D R T R 2 0 1 3 3 , 2 0 2 , 7 6 , S S , 3 9 6 1 6 0 , 1 7 D R T H 1 7 7 , 2 9 1 , 2 4 0 , 4 4 , 2 8 1 3 4 2 4 6 , 1 3 D h T h 2 0 0 , 7 6 , 9 1 , 3 , 2 0 0 , 1 7 7 , 2 0 1 , 2 4 8 9 D R T F i 3 2 0 3 2 4 0 , 2 3 2 0 6 1 4 2 0 D R T R 2 4 3 , 2 8 1 , 9 1 , 1 4 4 , 3 , 2 0 1 , 1 9 2 , 1 4 4 2 1 D R T R 2 3 5 , 2 0 1 , 2 1 9 , 1 7 6 , 2 3 1 , 7 3 , 1 2 8 2 2 8 D R T R 1 4 5 , 2 8 1 , 7 6 , 1 0 3 , 3 , 2 0 0 , 7 6 , 9 1 , 3 2 3 8 D R T R 9 6 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 2 4 0 D R T R 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 2 5 8 D R T R 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 E d i t o r ' s N o t e D u t 3 d e - l a . = i . , t h e r e i v 1 b e n o S e p t e m b e r i s s u e o - T h T r a n s a c t o r . T h i s d o e s n o m e a n t h a t a n y l e s s m i l l b p u b l i s h e d o t h a t a n y " d o u b l e i s s u e s " w 1 b s e n t t m a k e u f o r l o s t t i m e , b u o n l y t h a t T r a n s a c t o r # w i l l b d a t e d O c t . 1 9 7 9 r a t h e r t h a n S e p t . 1 5 > 7 9 . t r a n s a c t o r V o l . s u b s c r i p t i o n s w " t t h e r e - f o r e t e r m i n a t e t h e n o - N a r a t h e r t h e r ' i c J f l p r l T h T r a n s a c t o r i w r i t t e n a r ' i d P r o d u c e d a l m o s t e n t i r e l y u s i t T - i t h o o i m o d o r " e W o r d p c o c e s £ o r . W o r d P r o I < v s ± - w r i t t e n b S t e v e P u n t e r o M s i s s a . u - i i ^ , O n t a r i c
Transcript
Page 1: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 1/26

u u n i m o d o r e c o m m e n t s a n b u l l e t i n sc o n c e r n i n g y o u r

C O M M O D O R E P E T ™

T h T r a n s a c t o rP E I T > i s r e g i s t e r e d T r a d e m a r k o C o m m o d o r e I n c .V o l . 2B U L L E T I N

O c t . 3 1 1 9 7 9

C a . s e C o n v e r t e rT h - f o l l o w i n g r f i a . o h i n e l a n s i u a a e p r o a r - a f t i c = > t ~ i f o u s e d " t

c o n v e r t o l d R O u ^ ^ e r / l o u j e r c s s e t o t h e c o n v e n t i o n u s e d b n e R O M P E T s .

L O R D a r i d R U N t h e P r o - a r - a m b e l o w . T h e n L O f l D " t h e p r o s r a my o u w i s h " t c o n v e r t - f o r - o p e r a t i o n w i t h n e R O M s . T y p e S V S8 2 s s ' i d w e l l a ! . . » = > . 1 u w e r c a s e b c o n i e s l o w e r c a s e a n o - f 'o o u r s e ' • . ■ ' i c e v e r s a .

1 8 F O 8 2 T 9 2 5 : R E f l D f 1 1 P O K E , T f l - ' N E X T1 3 D R T R 1 6 . • 4 1 3 2 0 1 6 9 , 1 , 1 3 3 , 2 0 1 4 D R T f l 3 2 8 9 3 1 6 8 , S 1 9 6 , 2 8 2 . . 2 4 0 , 1 1 5 D R T R 1 7 7 , 2 0 1 7 8 , 2 0 8 , 7 7 2 0 1 3 1 6 D R T R 2 0 1 3 3 , 2 0 2 , 7 6 , S S , 3 9 6 1 6 0 ,1 7 D R T H 1 7 7 , 2 9 1 , 2 4 0 , 4 4 , 2 8 1 3 4 2 4 6 ,1 3 D h T h 2 0 0 , 7 6 , 9 1 , 3 , 2 0 0 , 1 7 7 , 2 0 1 , 2 4 8

9 D R T F i 3 2 0 3 2 4 0 , 2 3 2 0 6 1 4 2 0 D R T R 2 4 3 , 2 8 1 , 9 1 , 1 4 4 , 3 , 2 0 1 , 1 9 2 , 1 4 42 1 D R T R 2 3 5 , 2 0 1 , 2 1 9 , 1 7 6 , 2 3 1 , 7 3 , 1 2 82 2 8 D R T R 1 4 5 , 2 8 1 , 7 6 , 1 0 3 , 3 , 2 0 0 , 7 6 , 9 1 , 32 3 8 D R T R 9 6 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 52 4 0 D R T R 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 52 5 8 D R T R 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5 , 2 5 5

E d i t o r ' s N o t eD u t 3 d e - l a . = i . , t h e r e i v 1 b e n o S e p t e m b e r i s s u e o - T h

T r a n s a c t o r . T h i s d o e s n o m e a n t h a t a n y l e s s m i l l b p u b l i s h e d o t h a t a n y " d o u b l e i s s u e s " w 1 b s e n t t m a k e u • f o r l o s t t i m e , b u o n l y t h a t T r a n s a c t o r # w i l l b d a t e d O c t .1 9 7 9 r a t h e r t h a n S e p t . 1 5 > 7 9 . t r a n s a c t o r V o l . s u b s c r i p t i o n sw " t t h e r e - f o r e t e r m i n a t e t h e n o - N a r a t h e r t h e r ' i c Jf l p r l

T h T r a n s a c t o r i w r i t t e n a r ' i d P r o d u c e d a l m o s t e n t i r e l yu s i t T - i t h o o i m o d o r " e W o r d p c o c e s £ o r . W o r d P r o I < v s ± - w r i t t e n b S t e v e P u n t e r o M s i s s a . u - i i ^ , O n t a r i c

Page 2: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 2/26

d i t s a n d P i e c e sC n u a n C h e © o + S t . C a t h e r i n e s . . O n t a r i o j h a s w r i t t e n " t h e

T r a n s a c t o r w i t h - f e w i t e m s o f i n t e r e s t 1

1 W h e n a v a r i a b l e i a s s i g n e d t h ■ - , ' a l u e z e r o w i t h F " . i c a n b e s u b s t i t u t e d w i t h f ! > T h d e c i m a l c - . o i n ti t h i s c a s e i e * i . u i ' - , ' a . l e n t t z e r o a n i 6 9 m i c r o s e c o n d s

- f a s t e r t h a n z e r o . T h i s d o e s n o ( d e a n t h a t 1 8 9 9 c a b r e p l a c e d b 1 . . . s i n c e t h l a t t e r i i n t e r p r e t e d a " 1 + 0 1 l o w e d b a d e c i o i a . I t * o m t a n t ' . u o z e r o s .

2 " L I S T 8 l i s t s t h w h o l e P - r o - s r a m i n s t e a d o - o u s ts t a t e m e n t 0

3 " ' ; s h i - r t : > R E T U R N " a c t s o n l y a s s i m p l e C R L F i n s t e a d o - e n t e r i n i i n t o B F i S I C t o b e i n t e r p r e t e d .

4 S t a . t e r i > e r i t s s u c h a 2 * - 3 a n 2 / - 3 a r p o s s i b l eo n t h e P E u . ' h e r e a s o t h e r o o r r i ^ u t e r s r e q u i r e 2 # f i — 3 a n 2 / ' C — 3 " I - f ' a . o t . . y o c a h a v e u k t 1 " - s i g n s a n d a n yn u m b e r o - p r e c e e d i n s t a n u m e r i c . F i n y m o r e t h a n 1 " - w i l l r e s u l t i a ? O U T O M E M O R V E R R O R b t h s t a . c k u s e d b E F t S I C i o ' - . . ' e r ■ - P 1 o w e d .

5 ( " h e r i t r y i n g ; " t ' " " V E S " . - F E r e p l i e s w i t h — w h i c h i c o r r e c t . H o t r y . . F i " V h " V E S " a n P E r e t u r n s a

w h i c h i i . u r o n y . 1 t h i s i e n t e r e d - B a p - r o - s r a / f i a + l o w s

1 H = " V " " V E S "

. . . . a n d R U N . . P E r e p l i e s w i t h - 1 S w h y d o e s i w o r k i r - - r o 3 3 / i i r o c i e l : > u n m m e d a r n o d

H n m ■ ■ s s ' t y o e

' B i l l y , A S o o n A Y o F i n i s h Y o u rH o m e w o r k C o u J - J Y o H e l p M o m m yA n M B a l a n c a t h C h e c k b o o k ? '

' D Y o u H a v e A n " S o r r y Y o u r P r g r a m B o m b e d " C a r d s ? '

Page 3: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 3/26

M e m o r y m a p ; O r i g i n a l R O t U p g r a d e R O J i m B u t t e r f i e l dT i d e n t i f y f u n c t i o n o P E T ' s o r i g i n a l R O M , a n d / o r c o n v e r t i tt o t h e e q u i v a l e n t u p g r a d e R O l o c a t i o n , u s t h i s t a b l e .A l a d d r e s s e s a r e g i v e n i n h e x a d e c i m a l .O L

A D B R S 0 / 1 / 2 / 3 / U / $ / 6 / 7 / 0 0 0 0 : 0 0 0 0 0 0 0 1 0 0 0 2 0 0 0 E * * * * * * 0 0 0 8 t 0 0 1 1 0 0 1 2 0 2 0 0 0 2 0 1 0 2 0 2 0 2 0 3 0 2 0 U 0 2 0 $0 0 1 0 : 0 2 0 6 0 2 0 7 0 2 0 0 0 2 0 9 0 2 0 A 0 2 0 B 0 2 0 C 0 2 0 D0 0 1 8 : 0 2 0 E 0 2 0 F 0 2 1 0 0 2 1 1 0 2 1 2 0 2 1 3 0 2 1 b 0 2 1 $0 0 2 0 : 0 2 1 6 0 2 1 7 0 2 1 8 0 2 1 9 0 2 1 A 0 2 1 B 0 2 1 C 0 2 1 D0 0 2 8 : 0 2 1 E 0 2 1 F 0 2 2 0 0 2 2 1 0 2 2 2 0 2 2 3 0 2 2 b 0 2 2 $0 0 3 0 : 0 2 2 6 0 2 2 7 0 2 2 8 0 2 2 9 0 2 2 A 0 2 2 B O 2 2 C 0 2 2 D0 0 3 8 : 0 2 2 E 0 2 2 F 0 2 3 0 0 2 3 1 0 2 3 2 0 2 3 3 0 2 3 b 0 2 3 $O O l i O : 0 2 3 6 0 2 3 7 0 2 3 8 0 2 3 9 0 2 3 A O 2 3 B O 2 3 C O 2 3 D0 O U 8 ; O 2 3 E O 2 3 F O 2 t t O 0 2 b l 0 2 b 2 0 2 U 3 0 2 b b 0 2 b $0 0 5 0 : 0 2 l j 6 0 2 1 * 7 O 2 b 8 0 2 U 9 0 2 b A 0 2 b B 0 2 b C 0 2 b D0 0 $ 8 : 0 2 U B 0 2 U F 0 0 0 3 0 0 0 b 0 0 0 $ 0 0 0 6 0 0 0 7 0 0 0 80 0 6 0 : 0 0 0 9 O 0 0 A 0 0 0 3 0 0 0 C 0 0 0 D 0 0 1 3 0 0 1 b 0 0 1 $0 0 6 8 : 0 0 1 6 0 0 1 7 0 0 1 8 0 0 1 9 0 0 1 A 0 0 1 B 0 0 1 Q 0 0 1 D0 0 7 0 : 0 0 1 E 0 0 1 F 0 0 2 0 0 0 2 1 0 0 2 2 0 0 2 3 0 0 2 U 0 0 2 $0 0 7 8 : 0 0 2 6 0 0 2 7 0 0 2 8 0 0 2 9 0 0 2 A 0 0 2 B 0 0 2 C 0 O 2 D0 0 8 0 : 0 0 2 E 0 0 2 F 0 0 3 0 0 0 3 1 0 0 3 2 0 0 3 3 O 0 3 U 0 0 3 $0 0 8 8 : 0 0 3 6 0 0 3 7 0 0 3 8 0 0 3 9 0 0 3 A O 0 3 B 0 0 3 C 0 0 3 D0 0 9 0 : 0 0 3 E 0 0 3 F O O U O O O b l 0 0 b 2 0 0 b 3 O O b b 0 0 b $0 0 9 8 : 0 0 U 6 0 0 U 7 0 0 b 8 0 0 U 9 O O b A 0 0 b 3 O O b C O O U D0 0 A 0 : O O U E O O l t F 0 0 $ 0 0 0 $ l 0 0 0 0 $ 3 0 0 $ b 0 0 $ $0 0 A 8 : 0 0 $ 6 0 0 $ 7 0 0 $ 8 0 0 $ 9 0 0 $ A 0 0 $ B 0 0 $ C 0 0 $ DO O B O : 0 0 $ E 0 0 $ F 0 0 6 0 0 0 6 1 0 0 6 2 0 0 6 3 0 0 6 b 0 0 6 $0 0 B 8 : 0 0 6 6 0 0 6 7 0 0 6 8 0 0 6 9 0 0 6 A 0 0 6 B 0 0 6 C 0 0 6 DO O C O : 0 0 6 E 0 0 6 F 0 0 7 0 0 0 7 1 0 0 7 2 0 0 7 3 0 0 7 b 0 0 7 $0 0 C 8 : 0 0 7 6 0 0 7 7 0 0 7 8 0 0 7 9 0 0 7 A 0 0 7 B 0 0 7 C 0 0 7 DO O D O : 0 0 7 E 0 0 7 F 0 0 8 0 0 0 8 1 0 0 8 2 O O 8 3 0 0 8 b 0 0 8 $0 0 D 8 : 0 0 8 6 0 0 8 7 0 0 8 8 0 0 8 9 0 0 8 A 0 0 8 3 0 0 8 C » O O E O : O O C U 0 0 C $ 0 0 C 6 0 0 C 7 0 0 C 8 0 0 C 9 O O C A O O C B0 0 E 8 : O O C C O O B b O O C D O O C S O O C F O O D O 0 0 D 1 0 0 D 2O O F O : 0 0 D 3 O O D U 0 0 D $ 0 0 D 6 0 0 D 7 0 0 D 8 0 0 D 9 O O F B0 0 F 8 : O O F C O O n A O O D B O O D C O O D D P O P E O O D F » 0 2 0 0 : 0 0 8 D 0 0 8 E 0 0 8 F 0 0 9 7 0 0 9 8 0 0 9 9 0 0 9 A 0 0 F 90 2 0 8 : O O F A 0 0 9 B 0 0 9 C 0 0 9 D 0 0 9 6 0 0 9 S 0 0 9 F O 2 6 F0 2 1 0 : 0 2 7 0 0 2 7 1 0 2 7 2 0 2 7 3 0 2 7 U 0 2 7 $ 0 2 7 6 0 2 7 70 2 1 8 : 0 2 7 8 0 0 9 0 0 0 9 1 0 0 9 2 0 0 9 3 O O A O 0 0 A 1 * 0 2 2 0 : O 0 A 3 O O A b 0 0 A $ 0 0 A 6 0 0 A 7 0 0 A 8 0 0 A 9 O O A AO ? 2 8 : O O A B O O E O 0 0 E 1 0 0 5 2 0 0 5 3 O O E b 0 0 E $ 0 0 E 60 2 3 0 : 0 0 E 7 0 0 E 8 0 0 E 9 O O E A O O E B O O E C O O E D O O E E0 2 3 8 : O O E F O O F O O 0 F 1 0 0 F 2 0 0 F 3 O O F b 0 0 F $ 0 0 F 60 2 U 0 : 0 0 F 7 0 0 F 8 0 2 $ l 0 2 $ 2 O 2 $ 3 . e t c .0 2 6 0 : O O A C O O A D O O A E O O A F O O B O 0 0 B 1 0 0 B 2 ♦ * 0 2 6 8 : 0 0 B $ » » » » » » Q Q B 7 * » * * Q Q B 90 2 7 0 : O O B A O O B B O O B C O O B D O O B E O O B F O O C O O 0 C 1

Page 4: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 4/26

Page 5: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 5/26

L . r » o i o V ^ r j - e b i e s S t » r T r f o - P F i r a y s P o i n t e rS t o r e d a . * © . 3 r E - ? F o d e c i m a l 1 2 6 - 1 2 7 . - t h i s p o i n t e r

a « o r k s m u c h t ^ s a / i » e w a 3 3 t h e p r e v i o u s o n w h e n a r r a y• v a r i a b l e s a r c a l l e d . I i a l s o s e t t $ 8 4 8 4 o f c o w e r " - - \ j p . i ^ D I s t a t e m e n t s a r e x e c u t e d . . a r r a y s a r s e u k s t a r - t i n n a t r i e l o c a t i o n d e t e r m i n e d b t h i sp o i n t e r . T h i s w i l l b t h - P i r s t b y t e - P l o i n t h l a s t

0 " t h e v a r i a b l e t * . b l e . B u t w h a t h a p p e n s w h e n a i a s s i g n e d t n e v a r i a b l e ? I n a r r a y s

e x i s t * t h n e v a r i a b l e a n d i t v a l u e a r s i m p l y s t o r e di - - i t h b y t e s - P o l l o w i o a t h l o c a t i o n p o i n t e d a b t h E n o V a r i a b l e s p o i n t e r i n c l u s i v e . T h e p o i n t e r i t h e nu p d a t e d t a w a i t t h e n e x t n e v a r i a b l e .

H o w e v e r . , i f B r r - B ^ i - a r i c - r - e s e n " t . » s ^ a c e m u s t b c r e a t e d s u c h t h a t t h n e u » e n t r y c a b i n s e r t e d a p a r to t h v a r i a b l e - f c 3 . f c . l e . T h i s m e a n s t h a t t h e a r r a y s m u s t■ f i r s t b m o v e d u w b = « t e s . T r t h - f o l l o w i n g - "

~ * o w e r — u i *

T y p e - ? T R = ? T N o t e t h i r n e • * - ^ e r e n o e

• • l o w t y f = * e I I 4 . 2 5 a r i d T T E = ? T

N o t i c e h o w f u u c h l o n * i e r i t a k e s

T h e - - - . t r a t i m e i s i * e n t t r a r i s + ' e r i n - i * e a c h b y t e o - t h B r r ' 3 - j s a h e a d b b y t e s . 0 - c o u r s e P E T m u s t s t a r t w i t h t h i . a . s t b y t e 0 t h B r r - B . ^ s - w h i c h b r - i n * i s u t o .

4 E n c i h r r - B : * 3 S t a r t o - a v a i l a b l e S > : « a c e P o i n t e rt - 4 h e n P E m u s t o p e n u p a s p a c e - t o r - n e v a r i a b l e b

t t o v i m i t r ' . e a r r a y s u « * . • 1 c I o t h i s p o i n t e r t d e t e r m i n e > } / * ' i & r e t s t a r t t r a n s - P e r i m b y t e s . P E c o n t i n u e s x h i s b y t e b ' f = * t e t r a n s f e r u n t i t h b y t ep a I ' 1 - 3 r - 1 c ■ • a . r " e

T * r • ( £ - r " € j • . » . » e n t r " y i t I - " • e i n s e r t e d . . . k > r o c e s s c o m & e t e .

T " r - ; e E ^ - d c H r r & z f z . p o i n t e r l i e s a $ 0 0 8 0 - 8 1 o a 1 2 3 - 1 2 9 * » » : r i n 0 a . - f t p r — p

• - e w R O M -

I n e w R O M F E T s t h e r e a r ^ a l s o b a s i c a l l y p o i n t e r s u s e do s e c 1 r - i - f F a a i - e a / e a a s H o m . « • = • v e r • • . . t r ; e y a r s t o r • e - P - P e r e n t a c e s

P t e r • D e m L o c a l : c m I R O M N e w R O

S t a r t o - E . S S I C 1 2 2 - 1 2 3 4 0 - 4 1E n 0 - + = B r i S I C S t a r t o V a r i - a b l e s 1 2 4 - 1 2 5 4 2 - 4 3E r » . ; i o - v a r - i a l : » l = ; " ' . • ' S t a r t o a r r a y s 1 2 6 - 1 2 ? 4 4 — 4 5E n o - » - " f i r r = i . y : i : o - S ^ B r x o - ^ ' F t ' . ' a i l a l S ^ a . c e 1 2 8 - 1 2 9 4 6 - 4 ?

Page 6: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 6/26

M o v i n g P o i n t e r sN o t h a t u . » e k n o w w h e r e t h e s e p o i n t e r s a r e a n d u . » h a . t t h e y

d o . » s o m e e x p e r i m e n t i n g c a b d o n e . R e c a . l l t h a t o P o w e r - u pt h S t a r t ; o - B A S I C P o i n t e r i s e t h e x 8 4 © o d e c i m a l1 8 2 5 . H o w e v e r . , l o c a t i o n 1 3 2 4 i a l s o i m p o r t a n t . I h a s t h ev a l u e z e r o a r i d r e & r e s e n ' t s a " d u m m y e n d - o - f - l i n e " .

T h 2 n d c a s s e t t e b u - f - f e r s t a r t s a h e 8 3 3 R o d e c i m a . I8 2 6 . I - t h i s i t f o i n c l u d e d a s p a r t o - B R S I C m e m o r ys ^ a c e . - t h S t a r t o - B R S I C P o i n t e r m u s t t o m o v e d D O W N . S i n c el o c a t i o n 8 2 w i l l h a v e t s e r v e a t h d u m m y e n d - o - f - l i n e

c h a r a c t e r . , t h n e s t a r t o B R S I C w i l l b 8 2 o $ 0 3 3 B . T h ep r o c e d u r e i a ^ - f l o w s

P O K E 8 2 . . - D u m m y e n d - o - f - l i n eP O K E 1 2 5 l o w o r d e r - b y t e o - p o i n t e r * 3 0 3 * 1 6 + 1 1 >P O K E 1 2 . . - h i s s h o ^ d e i - b y t e * 8 < H e w R O M u s e r s w i l l s u b s t i t u t e t h e o t h e r P O K E l o c a t i o n s . >

T h a t t a k e s c a r e o - t h S t a r t O f B R S I C P o i n t e r b u a 1 t h o s e o t h e r p o i n t e r s s r e s t i l l u w h e r e t h e y u s e d t o b e w h e nB f l S I C s t a r t e d a $ 8 4 8 1 . T h e y m u s t a l s o b m o v e d d o w n . W c o u l d u s P O K E t a c c o m p l i s h t h i s h o w e v e r a N E c o m m a n d w i l ld t h e m a 1 a o n c e . T h e r e - f o r e e x e c u t e a N E a r i d t h e n P r i n tF R E O I O . V o u s h o u l d b r e t u r n e d 7 3 6 2 b y t e s - f r e e . * a i n c r e a s eo - 1 9 5 b y t e s ! T h i s m a n o s e e m l i k e m u c h b u t w h e n t h o s e + ' e we x t r a , b y t e s a r e n e e d e d t a d t h o s e - f i n i s h i n g t o u c h e s i t c o u l d c o m e i v e r y h a n d y .

\ l o w t h a t t h B R S I C m e m o r y s p a . o e h a b e e n i n c r e a s e d d o e sn m a a . • = j i l a . u 1 a a l l y - f i l l r -

a s . t h E r r a r r y o u r * • • = • » a / f ta n y w a . y s . 0 n e w a y t o e - r - f e o t i v u s t h i s m o d i + ' o a . t o i t h ■ f l o w i m i :

1 P o w e r — u p a n L O R D y o u r p r o g r a m .2 U i n U N L I S T d e s c r i b e d i T r a n s a c t o r # 2 . . V o l . 2 > . . r e c o r d

t h p r s i a m 3 I n c r e a s e m e m o r y u s i m - * t h s t e p s o u t l i n e d a b o v e . . 3 r t d .4 U n - t h i e M e r • i i p r o o e d l j r e . . a s o d e s o r k « e d T r a ^ * i s a . c t o r

2 . * i j t : a . b e s s e a 1 e i t e T i t y z ' t y s p a . c e .

N o m . » t h - f i r s t 1 3 b y t e s o - y o u r p r = i r a / n » . « . » i l l b e r e s d e n ti r ' i w h a t u s e d t o h e t h s e o o n d c a s s e t t e b u - f - f e r . R e m e m b e r . , y o n l o n g e r h a v e s e c o n d c a s s e t t e b u - f - f e r u r i t i y o u e i t h e rr e s e t t h m a c h i n e o r e — a . d i u s t t h e p o i n t e r s s d o n ' t t r y t ou s i o r y o u r p r o g r a m w i l l b c l o b b e r e d !

S - o o n e r - o l a . t e ^ - y o u » 1 n e e d t S h V E t h p r o - s i r a / f i .H o w e v e r . , t h i s o s r i n l o r v = i e r b d o n e i t h c o n v e n t i o n a lm a r i n e r . T s i < e a l o o k a . t h m e t h o d u s e d b B 1 S e l e o t h s e c o n d p a . - y e o - T r a n s a c t o r # 3 E x e c u t e l i n e s l G t h r o u g h 2 2 d i r e c 1 1 y o t , - " i e s c r e e n e x a . o 1 1 y a s s h o w n . T h i s i a . r r i o » : i i - f i e S R V E . T h e S V 3 6 3 1 5 3 a c c e s s e s t h t a p e w r i t e r o u t i n e s i R O M .

Page 7: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 7/26

s u a : : t n * a s r e r o & » f o k l e m . W h e n t n ^ o a r a m i L O R D e d b a c k i n t o t h P E T . . t h f a r o B R 3 I C P o i n t e r i n o j t o o i a . t i o a . l l s e t - I s t a y s a 0 4 0 3 b u o u p r o ^ a w s t a r t s a t " 3 3 3 f i . P O K E 1 2 2 . ' 5 9 a r i d P O K Ei 2 3 . • » . » » i l l - P i x t h i s u p

S h o r t N o t e o W h e n ^ r o - s r e / r t i r e c o r d e d o t a j * e . t h e s t a r t a r i d e n

a . d d r e s - r - e s o t h a t P - ^ o a r a / i ! & r a l s o r e c o r d e d a - p a r t o - t h t a ^ e h e a d e r . T h e r e - f o r e . - w h e n t n ^ r o - y r - a / i i i L O f l D e d . . P E f i r s t l o o k s a t h s t a r t a d d r e s s a r i d b e g i n s t r a r r s - f e r i n i i b y t e si ^ r o r r i t a - f c : * e i n t o R f i M . T h - f i r s t h = » t e i s t r a n s - P e r e c l t t h l o c a t i o n s p - e o i - P i e d b t h s t a r t * d d r & s . s . I n c r e a s i n g y o u r

f u e r i i o r y u s m - a t h i s m e t h o d d o e s N O i v ? e a n t h a t y o u r ^ r o i i r a x r i s» . i . i ± L O . R D t t n i s e . - . t r - a . s « - a c e . H o w e v e r * * . , t h e y o a r i b r n o d i + ' i e dt d s o T r i e i n - ^ c - r i i a t * . i o n n e e d e d i i t h a r i l b J i E u t t e r - f i e I o r t h - r i ^ - s t r ^ a n e o - t h - ^ i r s t T r a n s a c t o r i V o l .

C a s s e t t e f i l e E N m a r k e r s J i n B u t t e r f i e l d , T o r o n t oE n d - o f - t a p e b l o c k s m a y b w r i t t e n o c a s s e t t e t a p e *I f t h e c o n p u t e r i s e a r c h i n g f o p r o g r a m o f i l e a n d f i n d st h i s b l o c k , i t w i l l s t o p a n r e p o r t 7 F I I E N O F O U N D .

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

H e r e ' s h o t w r i t e s u c h a n E N D m a r k e r * W h e n y o u f r e s a v i n g t h el a s t p r o g r a m o t a p e , u s e S A V E " P R O G R A M - N A M E " , 1 , 2 . T h E N b l o c kw i l l b e w r i t t e n b e h i n d t h e p r o g r a m * I f y o a r w r i t i n g f i l e s ,o p e n t h l a s t f i l e w i t h O P E N 1 , 1 , 2 , " F I L E - N A M E 1 1 . T h E N b l o c kw i l l b w r i t t e n a f t e r t h f i l e i s c l o s e d * I n e i t h e r c a s e . i t f st h e v a l u e w h i c h t r i g g e r s w r i t i n g o t h E N m a r k e r *

I f y o u n e e d t o w r i t e a E N m a r k e r o t a p e w i t h o u t h a v i n gp r o g r a m o f i l e t w r i t e , y o u c a n d o i w i t h o n o t h e f o l l o w i n gs t a t e m e n t s :

O r i g i n a l R O M : P O K E 2 l i l , l P O K E 6 3 U , 5 S I 6 3 6 7 3U p g r a d e R C M : P O K E 2 1 2 , 1 P O K E 6 3 U , 5 S I 6 3 6 2 2T h f i r s t P O K E s t a t e m e n t s p e c i f i e s c a s s e t t e d r i v e # 1 Y o m a c h a n g e i f o c a s s e t t e # 2 i f y o u w i s h .

Page 8: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 8/26

H t t e n t o M I - P ~ r - 1 p h e r a U s ^ r s -

I h a s b e e n f o u n d t h a t w h ' e n m o r e t h a n o n e p e r i p h e r a l i c o n n e c t e d t t h I E E E — 4 S S b u s s . . . s l i g h t p r o b l e m m a o c c u rs h o u l d o n d e v i c e b O a n d t h e o t h e r O F F . T a k e f o r e x a m p l et h f o l o u . i i m i s e q u e n c e o e v e n t s -

P E O P r i n t e r O F D i s k O F

T y p e - O P E N i H I 3 K F I L EP E T r e s p o n d s - 7 B E V I C E H O P R E S E N T E R R O R

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

T y p e - O P E N D I S K F I L EP E r e s p o n d s : R E f l D V .

B u t t h e d i s k i O F o e s s e n t i a l l y " H O T P R E S E N T " . T h e r e f o r e -

P H T 1 . F I L E D R T R. . w 1 r e s u I i l o s t d a t a . .

T h e r e i s . , h o w e v e r . » t e s t t h a t c a r i b r n a d e t p r o t e c ta g a i n s t l o s t i n f o . T h s t a t u s w o r d . . S T . . i s e t - 1 2 8w h e n e v e r t h e a b o v e s i t u a t i o n o c c u r s . T h e r e f o r e t h f o l l o w i n gt e s t c o u l d b i n c l u d e d i m m e d i a t e l y a f t e r t h e O P E N s t a t e m e n t *

I S T H E N P R I N T " D E V I C E N O T P R E S E N T "

D o r r ' t b a l a r m e d s i n c e B r r d p f - o - y r a m s u s i n y d i s k f i l ea c c e s s a r u s u a l l y l o a d e d f r o m t h d i s k . . t h d i s k w i l l b et u r n e d O a n y w a y s a j - " i d t h e a k o v e s i t u a t i o n w i l l p r o b a b l y n e ' ^ e r -

e n o r " t e d

Page 9: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 9/26

n r c I * i » . « - 1 T o r o n t

? L O A D E R R O RT h i s n o t e d e a l s w i t h . p r o g r a m l o a d e r r o r s o t h 8 P F ( R e l e a s e ) a n h o t r e c o v e r f r o m t h e m *W i t h i n t w d a v ; s a f t e r l e t t i n g m y P E T < N o v 7 8 ) * d i s c o v e r e d t h m e r i t s o b a c K - u p c o p i e s o p r o g r a m s e n d a t a f i l e s *A l d i w a p r e s s P L A Y a n R E C O R D w h e n t h m e s s a g e s a i d t p r e s s P L A Y ! I w a o n l y s o m e t w e n t y s e c o n d s * b u i w a s u f f i c i e n t t w i p e o u t h f i l e h e a d e r a n m a K e t h f i l ei n a c c e s s i b l e *E v e r s i n c e I ' v e m a d e ? s u r e t K e e p m u l t i p l e c o p i e s * o t h s a m et a p e f o p r o g r a m s u n d e r d e v e l o p m e n t ? o d e d i c a t e d b a c K - u pt a p e f o r p r o g r a m s t h a t a r e m o r e o l e s s s t a t i c *S a l s o t h J o u r n a l p r o g r a m t h a t w a ' d e v e l o p i n g b a c K i J u . H ; *T h o n l y t h i n s * w a s * w a s a l s o w o r K i n s . * o a n o t h e r p r o g r a m * w h i r ht h a t a c c i d e n t l y s a v e d o t h w r o n g t a p e * S c r a t c h J o u r n a lv e r s i o n 0 * 6 *N r e a l h a r m d o n e * s i n c e ? s t i l l h a d . v e r s i o n 0 * 5 * r i ^ h t ? W r o n t f !I J u s t s h a p p e n e d t h a t g o o d o l 0 * h a l o a d e r r o r *

t r i e d J u s t a b o u t e v e r y t h i n g * d e m a g n e t i z e c l p a n h e a d s *b o t h t a p e d r i v e s o m P E T * L O A D v S T O P / s h i f t * f r e e z e C r j s s e t t p *r e w i n d t a p e e v e n l y * l o o s e n s c r e w s i c a s s e t t e h o u s i n g a n d p J r v ; o s e v e r a l o t h e r P E T s * A b o u t t h o n l y t h i n g d i n o p 3 ? y w i t hw a h e a d a l l i s n m e n t ( s i n c e t h e t a p e h a b e e n w r i t t e n w i t h t h : » ? *a l l i s n m e n t * i o u g h t t o b e o p t i m a l f o r e a d i n g ) *A l t n a v a i l * l o a d e r r o r g o t * a n l o a d e r r o r s K e p to g e t t i n g *Y e k n e w t h d a t a w s - > t h e r e ! T h e r e w e r e r > o m e 3 5 0 0 r h r r c : r t r r r >o t h a t t a p e * m o s t o w h i c h . l o a d e d c o r r e c t . l v ? * h u c o u l d n o tL I S T * R U N o S A V E *S i n c e s t i l l n e e d e d t h J o u r n a J p r o g r a m * m c h o i c e w a ? r - i n c - J r ts a l v a g e o r e - d e v e l o p e n r e - c r i l e r f r o m m e m o r y *S o w i t h a i n g e n u i t u b o r n o a z i n c r ; . r > ( t h a i , b r : i n . 3 o n o t h p r i m e t i u a l i f i r r : t i o n s f o s i . 1 , r r o n r n n i i u c r ^ ) * n a v a r i e d !

o . J i B i & 1 • • \ u c m o r v \ a > : > r « > c • T h e ; T < ■ ■ v > < . * c t o v - o T h B e ? s i . o T » c > r u > ^ c t o r v o 3 r - J ' ; ? ■ - . 1 5 ? a n v o f 7 > )a n n » o w u s c > • : > s c ? i $ « b I f : • : n r o R Q i ) h b r - r i c f p - c r u : i r e s s e n t i a l i n f o r m a t i o n o n p c i n t c r r f : i v : J d : > f ; n d - o u t j n c f -

F i r s t l e m i i i i i o c l u c c t h e a v . t o i : - h £ * ; r r . c i . c i : >

t h o n ' - t « t h f i l e h e a d c - r - * i < l o 6 : % 4 f o I b f c ? J o r B ? 6 f o t a r et h l o ^ c i = i c < i i . p o i n t i l \ \ c f j l e h e - . T . d r r < o f r e t r t h l o a d e x u . ' i p o i n t i t h h o l d e r r ; o f f r - e t i t h t ? i ^ > « B A ^ : > I / ; - o f I * - • * i J ; • ■ « { 1 2 t h £ i « . : ! S I • i - o t ; : ; ? " r : . i 1 < 3 1 t h e n o v < > r i a h ( • ? • • : • p o i n t e r r ; 3 . 2 6t h s t a r t o a v j ? i a f r l e i - p o c p p o i n t e r c i l o 2 t h € > N e x t I n s t r u c t i o n P o i n t e r ( N I P ) t h a t p r c i f i d ( " r e v e r -

B A S I C F T ( « : - < r • c > \ n 1 « • . : . I 1 o i

Page 10: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 10/26

t h B A S I C L i n e N u m b e r B L N ) t h a t i p a r t o e v p m s t a t e m e n tt h z e r o b y t e t h a t i d e n t i f i e s t h e n o e a t - h B A S I C

s t a t e m e n tt h E n O P r o g r a m E O m a r K e r * w h i c h i d u m m y N I P o

w h i c h s l e a s t t h s e c o n d b y t e c o n t a i n s ? e r o «A f t e r n o r m a l l o a d P E T u p d a t e s t h e n o B A S I C p o i n t e r t h e n o v s r i s b l e s 3 n t h s t a r t o a v a i l a b l e s p a c e p o i n t e r sb a s e d o t h e n o l o a d a d d r e s s f r o m t h f i l e h e a d e r *N o s o l o a d e r r o r r t h e n o B A S I C / s t a r t o v a r i a b J r sp o i n t e r r e m a i n s s 1 0 2 4 < t h e s t a r t o B A S I C p o i n t e r t h e x s c t ) H o w e v e r * i v a r i a b l e s s r e u s e d t h e y w i l l b s t o r e d s t e r l i n gl o c s t i o n 1 0 2 4 i * e * s m s c K o t o o t h e ? p r o g r a m *T h f o l l o w i n g c o d e w i l l f i t h a t ( a s s u m i n g L O A D f r o m t a p e i >

? P e ( 6 3 ) ? P e ( 6 3 w h i c h r e s u l t s i t h v a l u e s b e . i . n r : p r i n U - c i( r e m e m b e r n v a r i a b l e s m a b u s e d y e

2 3 1 e x a m p l e ( 2 3 7 + 2 5 6 * 1 7 = 4 5 8 9 )P o l 2 4 * 2 3 7 : P o l 2 5 * 1 7 - s e t e n o B A S I C / s t a r t o v a r i a b l e * : *P o 1 2 6 * 2 3 7 : P o 1 2 7 f 1 7 - e n o v a r i a b l e sP o l 2 8 t 2 3 7 : P o l 2 9 f 1 7 - s t a r t o a v a i l a b l e s p a c e *

W h e w ! N o w w e c s n u s e v s r i a b l e s * s i n c e t h e y w i l l n o b s t o r e ds t a r t i n g a 4 5 8 9 *N e x t s t e p i t r e b u i l d t h N I p o i n t e r c h a i n ? w h e r e t h e * N I p r e c e d i n g e v e r y B A S I C s t a t e m e n t p o i n t s t t h e N I P b e f o r e t h e *n e x t s t a t e m e n t ? u n t i l w g e t t h d u m m y N I t h a t m a r K se n o p r o g r a m *S Y S 5 0 2 2 4 i s a n o p e r a t i n g s y s t e m r o u t i n e t h a t d o e s J u s t t h a t *H o w e v e r i d o e s t h a t b a s e d o z e r o b y t e s * I a s s u m e s t h i r s t e v e rz e r o b y t e i e n c o u n t e r s r e p r e s e n t s e i t h e r t h e n o p s t a t e m e n t o t h e n o t h e n t i r e ? p r o g r a m * T h u r > i t h l o a d e r r o r i n t r o d u c e s s p u r i o u s z e r o e s * t h c - y m a t h r o wS Y 5 0 2 2 4 f o l o o p ? a n t h r o u t i n e w o u J d s t o r e N I P r > o t o o v a l i d d a t a * I f i t d o e s w o r K * h o w e v e r i t " ' s t h e b y f a r e a s i e rm e t h o d * I i d o e s n o w o r K J u s t r e s e t t h s y s t e m a n t r t h o t h e r p o s s i b l e a p p r o a c h *T h a l t e r n a t i v e i s t o w r i t e o n e - l i n e i m m e d i a t e ? r o u t i n e t h c : iw i l l f o l l o w t h e x i s t i n g c h a i n a f z a p o s s i h J e * f i > : r . n dc o n t i n u e ♦T h f o l l o w i n g r o u t i n e w i l l p r i n t l i s t o N I P s i a s c e n d i n go r d e r f w i t h l i n e n u m b e r s ( B L N ) f a l s o i a s c e n d i n g o r d e r *A n i r r e g u l a r i t y i e i t h e r l i s t i n d i c a t e s J o a d e r r o r *

1 = 1 0 2 5 i n i t i a l i z e p o i n t e r t f i r s t N I F o K = l T 0 9 0 0 : j = P e ( ) + 2 5 6 * P e ( 1 1 ) t B = P e ( I f 2 2 5 A * P e ( 1 + >

T h i s r e s u l t s i l i s t s u c h s s

1 0 2 51 0 5 21 0 6 61 0 9 91 1 2 0

1 0 5 21 0 6 61 0 9 91 1 2 01 1 5 6

1 2 2 5 6

Page 11: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 11/26

L & m a c h i n e l a n g u a g e s u b r o u t i n e t h a t w i l l: - o r . " " r » t ' ' i & c o r s t e r i t s i » - f t - : e s c f £ & n o n t o 2 G 2 . Z - 2 3 f - - r i n t e r n s . . i . - • • e l i d e s : r . . t h s & c o r » : l c a u r y e t T . * b M ^ ' * ' " ' = * / - r d c o u l d b i r . c o r r ^ o r = « . T e d i - . * e « - " " = « r « e = » . t l i r i t - j = » j V r » B h S I C £ * r o i - » r . = » j r i w h e r e a h a r d

t n s c r e e n r r i i i < h t b r e q u i r e d .

0 3 3 f l0 3 3 R0 3 3 f t0 3 3 ? .0 3 3 f t0 3 3 f t0 3 3 f t0 3 3 f t0 3 3 f t0 3 3 f t0 3 3 f t0 3 3 f t0 3 3 f t0 3 3 f t

0 3 3 E0 3 4 00 3 4 20 3 4 40 3 4 60 3 4 S0 3 4 B0 3 4 E0 3 5 00 3 5 20 3 5 40 3 5 60 3 5 90 3 5 B0 3 5 E0 3 6 00 3 6 20 3 6 46 3 6 76 3 6 90 3 6 BW S b l l0 3 6 E0 3 7 Q6 3 7 20 3 7 40 3 7 60 3 7 S0 3 7 f t0 3 7 C0 3 7 F0 3 8 00 3 S 2© 3 8 40 3 8 6

f t 8 f t 8 0 8 8 2 2 R 8 f t 8 2 f i f t E D f i 2 R B 2 H B 4 1 B 8 2 4 2 8 f C B © n

8 2 0 I 0 B D B f 2 1 2 e 2 D 1 4 0 0 9 D 0 I

7 I 2 0 I 2 8 9 D 2 0 4 0

F F

F E

F

F

. : S C R E E N. : C f t L L

P O I N TR F L R GC O U N TC D E V I C EC M P R I N TS L I S T NR T N O F FB U S O F FS C R E E NC f t S ES C P R T

L I N E

L O W E RM O R E

S R M E

P R I N T R O U T I N EI T *

L D f lS T L D f lS T L D S T S T f iJ S J S L D f lS T f lL D f lS T f lJ S L D f lL D C P B N L D f lJ S L D L D f lf i N DT f t KL D f lE O B P L D f lS T f lF I N DE O J S T X f lC M B C O R f lB N

S V S 8 2 6$ 0 3 3 f tf l $ 2 $ 2 * 9 $ D $ B * F F D 2$ F 6 B f l$ F 1 2 D* F F C C$ 3 0 0 8$ E 8 4 C ,# > S C R E E NP O I N T + 1# < S C R E E NP O I N T# C M D E V I C ES L I S T Nf l T N O F F# 2 C O U N T# C R F L f l GP R I N T# $ 1 1C f t S E# 1 L O W E R# $ 9 1P R I N T# ( P O I N T > , V# $ 7 F< P O I N T > , VR F L f l GS O M EC P O I N T > , VR F L f l G# $ 3 0# $ 9 2P R I N T# $ 2 0N O T f t L F# $ 4 ©S E N D

. : L I S T E N T I E E E

; g r r p h i c s o l

; S E T P O I N T E R T ; S T R R T O S C R E E N

; O P E N P R I N T E R. : 2 5 L I N E S. : S T f t R T N E L I N E. : R V S - O F F; S H I F T F O R L / C

; S H I F T F O R G R f l P H I C S

. : S C R E E N C H f t RS T R I P R V

. : S T O R E; C H E C K R V S; S f t M E f t L f t S T C H R P R I

; L O G N E R V S T f t T U ?

. : b u i l d r v o n / o f f; r e c h l l p r i n t c h r r

; C H f t N G E R L P H f t Z O N E; B R f l N C H R L W f t V S

Page 12: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 12/26

8 3 8 80 3 8 R0 3 8 C0 3 S E0 3 9 80 3 9 20 3 9 48 3 9 60 3 9 90 3 9 R0 3 9 C0 3 9 E0 3 f t O0 3 H 20 3 f t 40 3 f i 60 3 f l SC » 3 r S My . - : H L .0 3 f i E0 3 B 1

C 9 C B 0 D 4 2 C C 9 R 6 8 9 E C H 2 4

4 H O T R L F0 6 8 8 8 C 6 R R P HH F S E N D2 C I 2 I 8 2 2 f i t .o D F C C F F

C M B C C M B C O R f lB N E O J S I N C P B C L D R D S T f lB C I N D E B N L D f iJ S J M

# $ 4 8S E N D# $ 6 8G R f i P H# $ 8 8S E N D# $ C 8P R I N T# 4 M O R EP O I N T# 3 P O I N T* + P O I N T + 1C O U N TL I N E# C P R I N T$ F F C C

. i n e " h i s - e b p r i n t- - : , : • i - : > r i n

: - i 3 , - i v e s c r e e n p o i n t e r .. " H L W

. £ E S L I M EI " - : i . r I r - O T H E R

C L E F i R , B U Q U I T

^ O O 1

L 2 1 * 0 02 1

2 3 2 4 i 5 2 6 2 7 2 S : . 9 0

: > O 03 1 f i: - 2 : u

B R S I C L O n l i E R F O S C R E E N F I F O t ' 2 6 T 9 4 R E R D P O R EN E X TD R T R 1 6 9 , 1 2 8 . 1 3 3 , 3 2 , 1 6 9 , 0 , 1 3 3 ,D R T R 6 9 3 7 6 3 3 2 : 2 - 3 2 D R T R 2 4 0 , 3 2 5 2 4 ± 6 3 , 2 5 , 1 3 D R T R 1 6 1 3 1 3 3 3 , 3 2 2 1 0 , 2 5 ? .D R T R 7 . 1 7 4 , c 2 3 2 . 2 2 1 2 2 0 8 .B F i T R £ 9 1 4 5 , 3 2 0 2 ? ? « , 6 0 D R T R 3 . 4 1 , 1 2 . ? , 1 7 L 7 ? . - 3 • • 6 3 B R T n 7 3 . 3 , 3 3 , 4 1 . 1 2 3 . 7 . ;B R T n 1 4 6 . 3 2 . . Q , 2 * 5 5 , 3 2 0 3 D R T R 1 7 6 , 4 , 9 , 6 4 , 2 0 8 , 1 4 ± 0 - 6 B R T R 1 0 , 2 0 1 . 3 6 . i 7 6 . 4 - 9 , 1 2 6 2 0 8 ,D R T R 7 3 1 9 3 2 2 1 8 . 2 5 ^ - 2 . 0 0 1 9 2 -D R T R 1 4 , 2 0 3 . i 6 5 , 3 : ^ 5 , 5 3 3 D T > - i 1 2 2 3 > > . ' . 3 4 - 7 1 ;D h T m e 9 3 3 : 0 2 c - I

3

4

Page 13: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 13/26

i : ; S 6 5 S 7 5 J 8 5 1 2 6 6 5 2 1 2 4

B R

C i & a r i r * i l 5 6 y : i i 5 7 c l n o c o n l e i n < v a l i d N I F r ♦i t h i s s p e c i f i c i n s U m e e i a p p e a r s : - t h a t 1 1 5 6 * 1 1 5 7 « i r pi n d e e d t h N I ( s i n c e t h P L l o o K ^ t b c o r r e c t ) * h u t h N I h a b e e n c l o b b e r e d d u t t h e ? J o < * d e r r o r *F r e q u e n t l y l o a d e r r o r s a r r e s u J t o t i m i n t f e r r o r r ♦T h i s i w h e r e t h r - e a d r o u t i n e c a n n o t h a n d J p t h v a r i s t i o n r .i t a p e s p e e d t h * t i p e r c e i v e s *T h r e s u l t i = c o m m o n l y t h « ; l t h x - w o r o u t i n e r e a d r . m o r e h i f t h a n w e r e a c t u o i i ^ w r i t t e n t t h t a p e * C o n v e r r . c J w t h r o u t i n e m a a c t u a l l y r e c » d f e w e r *I m c a s e t h e r r o r s o c r - c j u i o n a J v w e r e w r o n r i c h a r a c t e r r . »o r i n s o m e i n s t a n c e s o n o m o r e c h a r a c t e r s n o r r s r i r : o e x t r a * Y e t s u b s e q u e n t c h w r - c t e r s w o u l d s t i J J b v a n J a r . ^ rb c o r r e c t * I o t h e r w o r « . l « , y i w o 3 p p r - w r t h a t t h r e a d r o u t i n e c a r e c u s E n i z e a n s w n c h r o n i ^ e w i t h h v ^ t eb o u n d a r i e s s r e c o r d e d o U r , e *T h i m p o r t a n t - t h i n s h e r e i ? t h a t T r e Q i i e n t J v N I a w o u l d b o u b p l u s o m i n u s o n " o t w h v i e r . ? h u r w o u l d t h n e x t o n z n t i t h n e x t *T v i e w w h a t t h i n t e r n a l r e r - r e & e n t a t i o o t h p r o r i r - < ' ; m

o o a n i e t o ? . c a I h o i - ;v i b m b u s e d ?

1 1 5 5 - l o c o l a s t v * l i d ( ? > N I P * n r i r u i r , t c h e c kf o p r e s e n c e o p r e c e d i n g z e r o

F o I T 0 I 6 0 J ? P e ( K > J * N e w o u 3 d r e s u l t i 1 3 7 1 4 1 3 3 A 4 ? . 4 P . 4 5 4 «

N I P B L N O G O T O( s o r r y j f n o t h i n t e r * v r € . ' t f > t i o n s h c . « w r i a t h v c r o n a . l i n e )

A o t h e r a p p r o a c h i t ? • r i 1 1 1 i h 3 1 : « c - i ; I , i ( « n r i u i f ? r ^ e r a ? : • t - . » r 3 s i t c o n t e n t * T h a t n i a k e t : . i m u c h p ^ r - i r r t o r * e e w h ^ l - i v s o i n s o n

F o K = I T 0 I + 6 0 : ? ' R / K / r - - ' P « : > ( ) ; N

R i 1 / r F ^ e v e r - s e v i d e o o f

T h i s w o u l d s h o w a l t e r n a t e l y ; o c : < n : i o i * : . v l d r e ? . . v - r r e v e r - r - ev i d e o ) f o l l o w e d b i t c o n t e n t ;1 0 5 5 1 0 5 6 1 3 J . 0 : i 7 1 0 5 8 1 0 7 ?

1 0 7 3 1 5 1 7 V ♦

T h i s a c i l i t a t e s c h u t : K i n ? . ; t h H I c r t v u ; ] l o c a t i o n ; : ? U " . : \ n r - tt h e x p e c t e d o n b b l h w i - . - . i i t i - r - « • • ( . : - e r i i h . - ; N T P ) ,

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

Page 14: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 14/26

F o K = I T Q I + 6 0 : ? ' R ' K ' r c l ' P e t i u ' r i ' * ; N cc s i n g l e c u r s o r - l e f t c h a r a c t e r

T h i s g e t s r i d o t h c u r s o r - r i g h t t h e P E T i n s e r t s s f t p ra l n u m b e r s * N o t o n l y c l u e s i c o m p r e s s t h e ? l i s t i n g * i s l s o a l l o w s r e u s e o t h e ? s t a t e m e n t ( s u c h b a f t e r P O K F *o f o d i f f e r e n t a v e s ) w i t h o u t o c c a s i o n a l d i g i t s f r o mt h p r e v i o u s d a t a s h o w i n g t h r o u g h ♦I a i n d i v i d u a l N I P i w r o n g * t h m o s t e x p e d i e n t s o l u t i o ni t P O K E i n n e v a l u e *I f h o w e v e r * s e v e r a l s u b s e q u e n t N I P s a r a J 1 o u t b t h s a m e a m o u n t * m o v i n g o v e r t h e ? r e s t o t h p r o s r ? ! ? !m a b i n d i c a t e d *V i s u a l i n s p e c t i o n w i l l h a v e t o i n d i c a t e ? w h i c h b y t e s t s u r p r e s s * o w h e r e t o p e n i \ \ v *R e m e m b e r t h m a i n c o n c e r n r i g h t n o i s t o g e t h p r o g r a mi s u c h s h a p e t h a t i c a i : « e L I S T e d a n u p d a t e d n o r m a l l y *O c o m p r e s s i o n * a i t h f o l l o w i n g r o u t i n e * b y t e s z r c o p i e d i n t o l o w e r n u m b e r e d l o c a t i o n s * T h u s i l o c a t i o n 1 1 1 2i s t o r e d i 1 1 1 1 * 1 1 1 3 i 1 1 1 2 * 1 1 1 4 i 1 1 1 3 * e t c * *l o c a t i o n 1 1 1 2 h a a l r e a d y b e e n u s e d b t h t i m e 1 1 1 3i s t o r e d i n t o i t a n t h u s m a b s a f e l y c l o b b e r e dF o e x a m p l e *

F o 1 1 1 1 T 0 4 5 8 9 I J = P e ( I 2 ) ♦ P o I J ; N eT h - f i t h P E E K c o m m a n d c a u s e s e v e r y t h i n g t h m o v e d o v e r ( ' t o t h l e f t ' ) b t w b y t e s *

N o t e t h a t m e r e l y c h a n g i n g t h + t - w i l l n o t r o o v p r - v ( < r v : i h : i n - t w p o s i t i o n s t t h r i s h t *I n s t e a d t h l e f t m o s t t w c h a r a c t e r s w i l l h e p r o p B ^ a t e - o t h r o u g ht h e n t i r e s e c t i o n b e i n g m o v e d * I t h a b o v e e x a m p ' p ( w i t h I ' + c h a n g e d t - b y t e 1 1 1 1 w o u l d b p i c k e d u f i r s t * a n d s t o r r * .i 1 1 1 3 * T h e n 1 1 1 2 w o u l d b s t o r e d i 1 J 1 4 * N e x t i l l ? w o u l d h t p i c K e c ! u t b s t o r e d i 1 1 1 5 * B u t 1 1 1 3 c o n t a i n s t h v a J u t *f r o m 1 1 1 1 b n o w * a r i d t h a t i w h a t w o u l d b d e p o s i t e d i : i J j T « «T h u s 1 1 1 1 e n d ? : - u i 1 1 1 ? . * l l l f j * 1 e t c * * w i t h 1 1 3 . 7 p n d i n su i n t i i & • n b t w e e r i o c a t o =

T h a d i s u c h b h r j . • • • : 1 1 i p o p p r • t h m o v e h a ? ■ t r - 1 < - - . rf r o m t h r i g h t * e * s » ;

F o 4 5 3 9 T 0 1 1 1 1 S T E P - l t J P t 1 - ) ; P o J * . . U N eT h a t e s s e n t i a l l y s u m s u t h t o t a l i t y o t h i s t e c h n i R U P f o s a l v a g i n g s n o o t

d o h o w e v e r * s i n c e r e l y h c ; p f : - h a y o u * ' 3 n e v e r h a v p t u s t : - : i i -

Page 15: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 15/26

T h e I E 5 E - h 8 8 B u p a r a l l e l i n t e r f a c e d e s i g n e d t o e x c h a n g e d a t a w i t h s e l e c t e d d e v i c e s

c o n n e c t e d t t h b u s .

M a n y d e v i c e s m a y b e c o n n e c t e d a t h s a m e t i m e , b u o n l y t h o n t h a t h a s b e e n s e l e c t e d w i l l s e n d o r e c e i v e d a t a . F o e x a m p l e ,t w o p r i n t e r s a n a d i s k u n i t c o u l d b c o n n e c t e d t a b u s ; t h e B a s i cp r o g r a m w o u l d a r r a n g e t s e n d t o r e c e i v e f r o m t h e v a r i o u s d e v i c e sa d e s i r e d .

S e l e c t i o n w o r k s b m e a n s o f " c a l l i n g 1 1 s y s t e m * B e f o r e s e n d i n g d a t a ,t h e c o m p u t e r f i r s t s e n d s s e l e c t i o n c h a r a c t e r , w h i c h c o m m a n d s t h a p p r o p r i a t e d e v i c e t " l i s t e n " . I f t h e d e v i c e i c o n n e c t e d , i t w i l la c k n o w l e d g e t h c o m m a n d . N o t h e d a t a i s e n t ; e a c h b y t e i a c k n o w l e d g e d b t h e r e c e i v i n g d e v i c e . F i n a l l y , t h d e v i c e i d i s c o n n e c t e d b a " u n l i s t e n " c o m m a n d . . T r e c e i v e d a t a , t h c o m p u t e r i n s t r u c t s t h e a p p r o p r i a t e d e v i c e t o " t a l k " . I t h e na c c e p t s d a t a u n t i l t h d e v i c e s i g n a l s " e n d o f d a t a " , a t w h i c h t i m et h c o n i p u t e r s e n d s a " u n t a l k " c o m m a n d .C o m m a n d s a r d i s t i n g u i s h e d f j r o m d a t a b u s i n g a s p e c i a l l i n e c a l l e dA T ( a t t e n t i o n ) . I f t h A T s i g n a l i l o ( m e a n i n g t r u e ) , t h i n f o r m a t i o n b e i n g s e n t i c o m m a n d : t a l k , u n t a l k , l i s t e n , o r u n l i s t e n .I t h A T s i g n a l i h i g h ( m e a n i n g f a l s e ) , t h i n f o r m a t i o n b e i n g s e n to r e c e i v e d i s d a t a . I n t h i s s y s t e m f o n l y o n d i r e c t i o n i u s e d :t h e c o m p u t e r s e n d s A T a n t h d e v i c e s r e c e i v e i t W h e n A T i l o w .a l d e v i c e s r e c e i v e t h c o m m a n d s , t s e i t h e y a r b e i n g s e l e c t e d .W h e n A T N i h i g h , o n l y t h e s e l e c t e d d e v i c e w i l l a c c e p t d a t a .

A n o t h e r l i n e , c a l l e d E O ( e n d o r i d e n t i f y ) i u s e d t s i g n a l t h l a s t b y t e o d a t a . I t w o r k s i n b o t h d i r e c t i o n s : i f t h c o m p u t e ri s e n d i n g , i s i g n a l s E O I l e w ( m e a n i n g t r u e ) w i t h i t l a s t c h a r a c t e r ;i t h d e v i c e i s s e n d i n g , i t s i g n a l s E O l o v r i f i t h a s n o m o r e d a t aa f t e r t h e c h a r a c t e r i i s e n d i n g .

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

A e x a r s p l e o f s e l e c t i o n : W h e n B a s i c e x e c u t e s O P E N 3 , b , t h I E E E - U 3 8b u s e t s t h A T s i g n a l l o a n d t r a n s m i t s h e x a d e c i m a l 2 t t h d a t al i n e s , i n s t r u c t i n g d e v i c e # U t o l i s t e n . I f t h d e v i c e d o e s n o a n s w e r ,B a s i c w i l l r e t u r n e i t h e r D E V I C E N O T P R E S E N T ( S T - 1 2 8 d e c i m a l ) o W R I T E T I M E O U T ( S T - l ) . S u b s e q u e n t l y , w h e n t h e c o m m a n d P R I M T # 3 , " H E L L O "i g i v e n , t h A T s i g n a l i a g a i n s e t l o a n d h e x 2 t r a n s m i t t e dt i n s t r u c t # i t o l i s t e n ; t h e n A T N i s e t h i g h , a n d t h e c h a r a c t e r sH E L a n a r s e n t , w i t h E O s e t l o w d u r i n g t h e t r a n s m i s s i o no t h 0 c h a r a c t e r ; f i n a l l y , t h A T i s e t l o w a n h e x 3 F i s e n tt o c a u s e t h e d e v i c e t u n l i s t e n . N o t e t h a t w h a v e n ' t c l o s e d t h ef i l e y e t ; b u t w e h a v e ( t e m p o r a r i l y ) d i s c o n n e c t e d t h d e v i c e .

Page 16: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 16/26

U s i n g C M o t h I B 5 B - U 8 8 B u

C M d o e s t w o t h i n g s :— i o p e n s t h e a p p r o p r i a t e d e v i c e t o " l i s t e n 1 1 ;— i w i l l d i v e r t o u t p u t n o r m a l l y d i r e c t e d t o t h e s c r e e n ,

t o t h e I S E E - U 8 8 b u s .B o t h C M D a c t i v i t i e s a r c a n c e l l e d i n a n y o t h r e e w a y s :

— p r e f e r r e d : w h e n t h e b u s i a d d r e s s e d w i t h a n o r m a l P R I N T S c o m m a n d ;— w h e n a n I N P U T o r G E T i s p e r f o r m e d ;- - w h e n a B a s i c e r r o r i s e n c o u n t e r e d .

I i b e s t t o a v o i d C M D w i t h i n B a s i c p r o g r a m s , s i n c e a n y u s e o f I N P U To G E T w i l l c a n c e l i t a n d t h e p r o g r a m m e r w i l l h a v e t a r r a n g e t or e p e a t t h e C M D a n e c e s s a r y . U s e P R I N T # w h e r e v e r p o s s i b l e * C M D i m o s t u s e f u l i n o b t a i n i n g p r o g r a m l i s t i n g s . T h e p r e f e r r e d m e t h o d :

O P E N U , U ( i d e n t i f y t h e p r i n t e r a d e v i c e k C M ( o p e n t h e p r i n t e r t l i s t e n r e d i r e c t c u t o u t )L I S T ( d t h l i s t i n g )P R I N T # l i ( c a n c e l t h C M f u n c t i o n s )C L O S E h ( c l o s e t h f i l e )

N e v e r c l o s e f i l e u n t i l y o u h a v e f i r s t c a n c e l l e d t h C M c o m m a n d .

I E E E - b 8 8 H a n d s h a k e : a b r i e f t e c h n i c a l d e s c r i p t i o n

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

T h e t a l k e r u s e s t h e D A V ( D a t a a v a i l a b l e ) l i n e t o i n d i c a t e t h a t v a l i dd a t a h a s n o b e e n p l a c e d o t h b u s . T h e l i s t e n e r u s e s t w l i n e s :N R F D ( N o t r e a d y f o d a t a ) t i n d i c a t e t h a t i i n o y e t w i l l i n g t r e c e i v e d a t a ; a n N D A C ( D a t a n o a c c e p t e d ) t i n d i c a t e t h a t i h a n o y e t a k e n d a t a f r o m t h b u s .

T r a n s f e r o d a t a t a k e s p l a c e i n t h f o l l o w i n g m a n n e r :

1 T h e t a l k e r i n i t i a l l y p l a c e s D A V h i g h ( m e a n i n g f a l s e ) t o i n d i c a t et h a t d a t a i n o b e i n g s e n t y e t . T h l i s t e n e r w i l l h a v e N D A C l o ( t a e a n i n g t r u e ) t o i n d i c a t e t h a t n d a t a i b e i n g r e c e i v e d .I t h e l i s t e n e r i s t i l l w o r k i n g o n s o m e t h i n g ( s a y , p r i n t i n g t h

p r e v i o u s c h a r a c t e r ) a n d c a n ' t a c c e p t d a t a y e t , i w i l l s e N R F D t l e ( t r u e ) , m e a n i n g i t ' s n o t r e a d y .

2 T h e t a l k e r c h e c k s t h e N R F D a n N D A C l i n e s f o b o t h h i g h ( m e a n i n g f a l s e ) ,I t h e y a r b o t h h i g h , s o m e t h i n g i w r o n g . I f t h e c o m p u t e r i t h t a l k e r , i w i l l s e n d D E V I C E N O T P R E S E N T .

3 T h t a l k e r p l a c e s i t d a t a o t h b u s , b u d o e s n ' t s i g n a l D A V l o w rf o r d a t a a v a i l a b l e u n t i l i t s e e s t h " l i s t e n e r ' s N R F D i h i g h ,w h i c h s i g n a l * t h a t t h e l i s t e n e r i r e a d y t r e c e i v e d a t a .T h t a l k e r w i l l w a i t f o r e v e r t h e r e i n o t i m e o u t .

Page 17: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 17/26

l x T h e d a t a i r e a d y , s t h l i s t e n e r a c c e p t s a n s t o r e s i t T h e n t h e l i s t e n e r s e t s N R F D l o w ( t r u e ) a n d N D A C h i g h ( f a l s e )t a c k n o w l e d g e . i t s r e c e i p t * T h l i s t e n e r h a t i m e l i m i to t h i s a c t i v i t y : i i d o e s n ' t c o m p l e t e i n 6 U m i l l i s e c o n d s ,t h t a l k e r w i l l f l a g T I M E O U T O W R I T E .

5 T h t a l k e r r e s p o n d s t t h a c k n o w l e d g e m e n t b s e t t i n g D A h i g h ,m e a n i n g t h a t t h d a t a i n o l o n g e r o f f e r e d , a n t h e n c l e a r i n gt h d a t a b u s .

6 T h l i s t e n e r d e t e c t s t h c h a n g e i D A V , a n r e a l i z e s t h a t i t a c k n o w l e d g e m e n t h a s b e e n s e e n * I r e t u r n s N D A C t l o w , c o m p l e t i n gt h c h a r a c t e r e x c h a n g e c y c l e . T h e r e i t i m e l i m i t h e r e :i t h l i s t e n e r d o e s n f t s e e D A V g h i g h w i t h i n 6 U m i l l i s e c o n d s ,i w i l l f l a g T D E O O T O R E A D .

Page 18: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 18/26

F r a n s

D e l e t e R e s t o I n s t r u c t i o n s i P r o g r a mO n o t h m o r e e x c i t i n g * a l b e i t u n d o c u m e n t e d * i n s t r u c t i o n so t h P E i t h ' D e l e t e R e s t o I n s t r u c t i o n s i n P r o s r a r n 'o D R I P i n s t r u c t i o n *I y o h a v e n ' t y e h a d o c c a s i o n t u s i t c o n s i d e r w o u r * e ) fl u c k y ♦U n d e r c e r t a i n c o n d i t i o n s t h u p d a t i n g a n r e p l a c i n g o f B A S I Cp r o g r a m i n s t r u c t i o n r e s u l t s i t h d i s s a p e a r a n c p o t h a t a n da l s u b s e q u e n t i n s t r u c t i o n s i t h p r o g r a m * A s t h i s s e e m st h a p p e n o n l y a f t e r e x t e n s i v e ( a n d n o t a y e s a v e d ) p r o g r a mc h a n g e s h a v e b e e n m a d e * t h r e s u l t i J o t o f e x c i t e m e n t *T h i s n o t e d e s c r i b e s w h a t h a p p e n s * w h e n * h o w t r e c o v e r f r o m i t a n c o v e r s t e c h n i q u e t h a t s e e m s t p r e v e n t i t b u s i n r p I ' n o t s u r e h o w o w h c a n ' t b c e r t a i n t h a t t h p p r e v p n t a t i v pm e a s u r e a l w a y s w o r k s *T h c o n t e n t o t h n o t e a p p l i e s t R e J r a s r . 1 o f t h e P F B s H s t p mt h e ' o l d R O M ' *T h o n l y c a u s e t h a t a c e r t a i n a b o u t i ? ? n i n t p r u p t o p r o g r a m o c c u r s t h a t i u s i n g t h P R I N T S t w r i t e t t h T F F F h u p *( W h e r e m p r i n t e r s i t s e d e v i c e ? n 4 * A n y s u b s e q u e n t a t t e m p t t c h a n s i e t h p r o g r a m f r p « u p n t J yr e s u l t s i n ' D R I P ' *H o w e v e r * i e n t e r ' C L R ' c o m m a n d i b e t w e p n o r ? t i f f > a e r r o r * s u c h a R U N c o m m a n d w i t h a i n v a J i d o p e r a n d 1 , J ' » R I Pd o e s n o t a r i s e *

T h s y m p t o m s a r s f o l l o w s * B A S I C - o o r ^ s o m p h o w n o r r n ^ n j r rt h s t t h e n e w l y e n t e r e d u p d a t e d ^ t a t t - i i i m j r . a i c h r r : - • : v l : i n n u m b e r * B A S I C t h e r e f o r e t r e a t s t h u p d ^ i . ^ d : i ' ■ ■ • I - w ' I . i ^ n s - n e o n e * a n m o v e r s o v e r t h r e s t o i h p r o g r a m l f o ^ K et i n s e r t t h i s ' n e w ' i n s t r u c t i o n *

H o w e v e r * B A S I C m a K e s o t h e r e r r o r s * t h e ^ t a r p v ? n i H i ' V PI i n s e r t s ; : e r o i t h e ? h i g h - o r d e - r ( ? x r n n n ) p o - r - i t ' r - o t h N e x t I n s t r u c t i o n P o i n t e r ( N I P ) o L h r . f i • • • - • t e r r - : r ; r n r r r r t h u p o s t e d i n s t r u c t i o n t h u ? > v > : - . i n r i r t h r r u i o P r c ^ r ^ i -T h p a r t o t h p r o g r a m t h a t h a h o - e n n . o v ^ d t a l l o w f o t h i n s e r t o t h ' n e w ' i n s t r u c t i o n ? h < n o h & t i : i i r P o : > i i > t f r -

F o r t u n a t e l y B A S I C l e a v e s t h - ' e n d c B A P i r . / r . t r - : j o p o i n t e r i n t a c t * s v a r i a b l e s c a h u s p d *

T h s o l u t i o n o t h i s F - r o b J e m i s a c t u a J J ^ « u i t r * t u p l e ' *

r e m o v e t h s p u r i o u s z r r or e b u i l d t h p o i n t e r c h a i n ♦

h a v i s i o n s o ~ > c p h i t j c - r . ■ I * - • p c " j f ; r c : r i i . 1 ( O . : s f t - • " • r e o r » * ; j p o i n t e r s b a s e d o t h r » i * : J i ; • : : i r » s ; . « j * j j r y p e i n s t r u c t i o n * z e r o % r r p c I ' = ; - b e ^ t t ^ . ^n u m b e r s a n v i s u a l i n s 7 - - « ? c t i o nB u o n c e m o r e * J i B u t t e r f i e - i d t t h r p v - n i p ! j » : i v - j : » r - tr o u t i n e s i d e n t i f i e s o n e - c a l J p - d C o r r p r i ? : - t h f - r . ' i a . i i : i n

Page 19: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 19/26

b e t w e e n t U V o J C i j . n e r , c o t t - r n s f c f * 1 . / « t e . l £ " t e I I

A i t u r n s i r c . 1 h d r p b t h c u r r e n t N I P * w h i c h i t s e J f i N I P * c o n t a i n * 7 P r oi t h s e c o n d b i r o r i « r > i d e - r e d t . h t h p n o p r o : : : i r c " • •A l o t h e r z e r o s s t c 5 r t i n « 5 s N I P + 4 ( t o m a K e B l l o w a n r e f o r t h eB A S I C l i n e n u m b e r ) s r e c o n s i d e r e d t r e p r e s e n t t h e n o a i n s t r u c t i o n ♦T h u s b r e m o v i n g t h z e r o t h a t e r o n e n u s l v * f J a £ s F n O P r o gt h p o i n t e r c h a i n c a n h e r e b u i l t b i n v o K i n = i t h i s r o u t i n r( S Y S 5 0 2 2 4 >

T h e o r e t i c a l l y S Y 5 0 2 2 4 c o u l d a J s o b e u s e d t f i n d t h l o c a t i o no n t h e E n O P r o s r a m z e r o b y t e * a s i t l e a v e s t h a d d r e s s o t h l a s t N I i l o c a t i o n s 1 1 3 * 1 1 4 *U n f o r t u n a t e l y r h o w e v e r * t h i s i n o c l o s e d s u b r o u t i n e * I t e r m i n a t e s b b r a n c h i n g < J M P ) i n t o t h e P F T ' s m a i n c o m m a n dp r o c e s s i n g l o s i c * r a t h e r t h a n r e t u r n i n g t t h c a . l J e r *L o c a t i o n s 1 1 3 * 1 1 4 h a v e b e e n c l o b b e r e d b y t h e t i m e c o n t r o li r e t u r n e d t t h k e y b o a r dW h a t c a b u s e d i a i m m e d i a t e c o m m a n d * s u c h a s

I = 1 0 2 5 : F o K = l T 0 1 0 0 0 : j = P e ( I ) + 2 5 6 * P e ( I - h - l ) t ? I J I = W w h i c h w i l l p r i n t l i s t o N I P b * t h a t i i a s c e n d i n go r d e r ? u p t o a n d i n c l u d i n g t h a d d r e s s o t h f a u J t y N I P * p * b * 1

3 2 5 53 2 7 23 3 0 13 3 5 65

B R 5 t o p

3 2 7 23 3 0 13 3 5 65 1 2 3 5 6

3 s o o n 3 d i o c c u r s : -I t h i s e x a m p l e l o c a t i o n s 3 3 5 6 * 3 3 5 7 c o n t a i n t h f a u J t y N I P *( T h e s e b y t e s c o n t a i n 5 5 o n d r e s p e c t i v e l y *N o a l t h a t i r e c u i i r e d i t h f o l l o w i n g :

P O K E 3 3 5 7 * 1S Y 5 0 2 2 4

T h P O K E i n s t r u c t i o n e r a d i c a t e s t h v a J u e 7 . e r o * a n t - h e S Y r e b u i l d s t h p o i n t e r c h a i n *

I a b o v e e x a m p l e b y t e 3 3 5 6 w o u l d o r i g i n a l l y h a v e c o n t a i n e d . 1 1 3 * 2 5 6 i 5 5 - - 3 3 B 3 h o w p v e r t h a t i i m m a t e r i a l a t h i n s t r u c t i o n t h o - t w a t h e r e ? h a s b e e n m o v e d * w h i J p t h S Y 5 0 7 2 4

o n l y m a k e s t h d i s t i n c t i o n z e r o o n o n - ? . e r n »

h o p e t h i s w i l l a l l o w o t h e r s t d e a J w i t h t h D R I P i n s t r u c t i o n *h o w e v e r * t h a p p r o a r • o e a t i p n s a . o p o & f ; p d t i s t i l l p r e f e r a b l e !

Page 20: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 20/26

C r o s s R e f e r e n c eI ' v e r e c e n t l y c o m p l e t e d c r o r , F . r e f e r e n c e * o f > i n p l r o r l ji t h e 8 K P E s y s t e m ( R e l e a s e 1 t h e t r e f r r e n c r i n d i v i t W )R A s n P I A / V I A l o c a t i o n s *T h p r o c e s s w a s a c t u a l l y c u i i t e s i n t p J e * u * & t i f r f i r . P f . r . r m h J p rt h a t s c a n s f o s e l e c t e d o p c o d e s s n t i s p e c i f i c o p e r a n d r r i d r t - r . r . r r . *I o n l y t o o K s o m e 2 8 h o u r s o p r o c e s s i n g t s c a n t h r ^ t t c n it h r e a u i r e d f e h u n d r e d t i m e s *B e c a u s e o i t s i z e I ' v e o n l y i n c l u d e d t h f i r s t r & t U - u f I h ca p p r o x i m a t e l y 2 r s g & l i s t i n g *T h t a p e f i l e f o t h i s c r o s s - r e f p r e n c p r o n i p i n ? f o r n r 7 7 0 0 0c h a r a c t e r s s n d 3 0 0 0 r e c o r d s *I a n y o n e i i n t e r e s t e d * I ' l l g l s d J t * s e n d t h e m f c w v . o e i t h e r t h l i s t i n g o t h t a p e * '

m u s t y h o w e v e r i n s i s t o c o p y i n g ? p o r - t r - . ^ p f - n d h P n d J i n r ic h a r s e # P h o t o c o p i e s c o s t m d i m e ( p c t u a J J v * r p n t f . } \ ) k pa n y b o d y e l s e y a n d i t f < k p r : . o v e r < " h o u r - t p o p v ? t h f - l i v e f ) ) ^ >I y o a r i n t e r e s t e d * s e n d m a n o t e ? ^ h e 3 o w c i d r f r ^ r . r ^ r m i n c l u d e $ 4 * 5 0 f o p h o t o c o p i e s - . £ « 0 0 f o I h t ^ r r ( i n r } u d i n y i

p r i n t / d i s p l a y p r o g r a m ) o $ 3 . 0 * 0 0 f o h o t h c o r i c < : . t w i w p {F o t h p h o t o c o p i e s s p e c i f y d e c i m ? O o h p x < ~ : d r ( ■ • : » r u r O ^ o o r c ^ i - . r ^ i

F r a n s V a n D u i M e n1 7 W e s t m i n s t e r ? v P fT o r o n t o O n t * M 6 1 N

Page 21: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 21/26

C R O S S R E F E R E N C E L I S T I N G P A G EL E G E N Dn o t a t i o n p r e c e d i n g a d d r e s s

A A c c u m u l a t o rf M e m o r y

X - r e g i s t e rY - r e g i s t e rS t a t U S f l o 3 T >s t a c K r e g i s t e r

n o t a t i o n f o l l o w i n g a d d r e s sI n d i r e c t a d d r e s s i n s

X I n d e x e d i n d i r e c t ( o I I n d i r e c t i n d e x e d ( o

I n d e x e d o r e I n d e x e d o r e D y n a m i c a l l y m o d i f i e d

L = J u m p i n s t r t U S b y t e 0 = $ 4 C J M

C 4 9 3 C 4 C 8

a

f E O B O X E O D E «F D 6 B I F E 0 5F F B 2 X

J u m p i n s t r t U S R r o u t iD 3 B B D 7 7 3

f D 8 7 B D 8 / FF D 5 0 F D 5 9F D 7 4 F E 0 9

J u m p i n s t r t U S r o u t if D 3 B F D 7 9 9f

L

f

L f

L W

L 0 E 3 F D b 2F E 2 F

A c t i v e I / d e v i c eC 3 5 B C 3 6 4C 9 E 2 C A S EU A L U U A D 6C B 5 D C C 0 6D 3 8 7 X E O F 2

N u l l s f o c a r r i a g eC 7 6 A C 9 E 8u y y y f l o k a

C u r s o r p o s ' n f o 1 s o

C 4 D E Y C 4 E 1C A 1 4 C A 5 A

r e r e

i n s t r u c t i o n

r o u t i n eC 4 F 8

n

n

n

7

E 9 F E O D

D 7 A 0n a a iF D 5 PF E 1 8

D 7 9 CF D 6 9

f o C 4 7 CC A 6 A

D 7 9 2

r e t u r nD 7 8 B

[ N P U T

L 1 D 4

T e r m i n a l w i d t h n o

C 5 0 1C A 6 2

u s e d

I I

p o n i ?

1

P R I N T

a r i c i r

C 5 1 AF D 4 8F F J 1

D 7 A 3D 8 8 3F D A lF F . 1 A

D 8 6 2F F

I

- \ s u r r - r e s sC 9 9 3n A P . £

r » 7 P . F

c o w h

n ? p ; 7

F E 1 3

T I B 6 6F 0 F . 1 .F D A 7

D 8 6 BF E O F

H 9 C FT A B 4C P I OD R S F

u s e dD 8 S A

I I

t n e x t

C 9 F 4F 0 F 8

r

n p . 9 1F D f i FF F 4 3

r i 8 6 C| D 4 AF D 7 2

n a a sF F 2 U

T A n iC B 1 7D 8 A 4

D 8 6 0

C 9 F 9F 1 C F

X

Page 22: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 22/26

T e c h n i c a l c o m m e n t o F O R / N E X T l o o n s t r u c t u r e s . J i P u t t e r f i e l d , T o r o n t o .R e c e n t r e m a r k s o p o p u l a r B a s i c i m n l e m e n t a x t i o n s i n d i c a t e " c h a td i f f i c u l t i e s m a y b e e n c o u n t e r e d i f t h e p r o r r a n - n e r . I m ^ d s o u t o f

F O R / N E X T l o o p .T h i s w o u l d b e v e r y s e r i o u s i f t r u e . T h e p r o g r a m m e r d o i n p t a b l es e a r c h w o u l d b r e q u i r e d t c o n t i n u e s c a n n i n g t h e t a b l e e v e n a f t e rf i n d i n g t h e i t e m h e w a n t s ; o r t o u s e q u e s t i o n a b l e p r a c t i c e s s u c ha m e d d l i n g w i t h t h e l o o p v a r i a b l e w h i l e s t i l l w i t h i n t h l o o n .

F o r t u n a t e l y , i t ' s t r u e o n l y f o f e c o ^ n l e x s i t u a t i o n s a n t h e s ea r e a s v t o f i x i f y o u \ m d e r s t a n d h o t h d y n a m i c F O R A f x T l o o ow o r k s . ( D y n a m i c l o o o s a r t h o s e s e t u d u r i n r a n a c t u a l n r o p r a mr u n , . i c o n t r a s t e d t p r e - c o - T m i l e d l o o n s w h i c h a r c h e c k e d o u t

t h e a c t n n l r n n s t a r t s ) .W h e n d y n a m i c i n t e r n r e t e r , s u c h a M i c r o s o f t B a s i c , e n c o u n t e r s

s t a t e m e n t s u c h a F O J . . i s e t s u p i n t e r n a l t a b l e s t o m a n a r et h l o o n . T h e s e i n t e r n a l t a b l e s c o n t a i n s u c h t h i n g s a s w h e r e t or e t u r n i N E X T J i e n c o u n t e r e d ; t h i d e n t i t y o t h l o o p v a r i a b l e( i t h i s c a s e , J ) w h e t h e r t h l o o p i c o u n t i n g u p o r d o w n , e t c .

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

s u i t a b l e n u m b e r o N E X T s t a t e m e n t s ) ; i f n e F O s t a t e m e n ti f o u n d ; o i h i g h e r p r i o r i t y l o o p i t e r m i n a t e d f o e i t h e ro t h p r e v i o u s r e a s o n s .

T h l a s t r u l e i v e r y s e n s i b l e , a n d i t ' s w o r t h c l o s e r l o o k .S u o p o s e w h a v e s e t u s e q u e n c e o c o n m a n d s s u c h a s X a f i t t x f f i x r n x i a F O 1 . . F O J . . F O K = . . . t a n s u r > n o s et h e c o m p u t e r , w h i l e d e a l i n g w i t h t h e s e t h r e e l o o p s , f i n d sn e F O I = . . . s t a t e m e n t . I v e r y w i s e l y s a y s , i i t o w n c o n r u t e ^ e s e ,M 0 l o o k s l i k e t h b i l o o p i b e i n g r e s t a r t e d ; s o t h l i t t l eo n e s a r e f i n i s h e d , t o o 1 1 . A n i p r o m p t l y t e r m i n a t e s t h a n

l o o p s , r e m o v i n g t h e t a b l e s f r o m i t m e m o r y .

F x a c t l y w h a t w w a n t b u t t h n r e a r c o u p l e o b i d d e r , p o t c h a st h a t t h e u s e r m u s t k n o w a b o u t w h e n h f r e t s i n t o t r i c k - . - c o ^ i n rr o v t i n e s .

T h e a s i e s t o n e t o s r > o t i t h s i t u a t i o n w h e r e e v e r 1 ; l o o n h a d i f f e r e n t v a r i a b l e n a m e . T h f i r s t l o o n i s s n y . ^ O " 5 . . t h n e x t o n e , F O . . s n r t t h n r o " r * » n m e r c o n t i n u e s t h r o u r ht h a l p h a b e t w i t h e a c " i l o o n . T : i s i d e a i n o o ^ : h c a n a n a l v r eh o e a c h l o o p h a b e h a v e d , f o e a c h v a r i a b l e r e m a i n s u n t o u c h e df o h i e x a m i n a t i o n . 3 u t e a c h t i m e h j u m p s o u o l o o n ,t h e l o o p t a b l e s r e m a i n i m e m o r y , u s i n g u v a l u a b l e s t a c k o t a b l e s p a c e . H e ' d b e m u c h b e t t e r o f f t o p i v e a t l e a s t h i o u t e r l o o p s t h s a n e v a r i a b l e n a m e , a n r e c l a i m t h a t s n a c e .

T h s e c o n d p r o b l e m s p o t i s l i t t l e m o r e s u b t l e , a n d a n e x a n p l ew o u l d b e s t i l l u s t r a t e i t

Page 23: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 23/26

H e r e ' s s i m p l e p r o g r a m t o i n p u t s t r i n g , e x t r a c t t h e i n d i v i d u a lw o r d s ( e l i m i n a t i n g s i n p l e o m u l t i p l e s p a c e s ) , a n n r i n t t h e m :

1 0 T P U T S $ g e t t h s t r i n g1 1 K = m a r k s t a r t - o f - s t r i n g1 2 F O J = T L E N ( S $ )1 3 I M I D $ ( S $ , J , l ) < > f f G O T O 1 5 0 s k i p s n a c e sH i N E X T1 5 I J > I E N ( S S ) G O T O 9 0 1 6 F O R K « J T U « : N ( S $ )1 7 0 I F M H » ( S f t , K , l ) » l f f G O T O 2 0 s c a n t o s p a c e o e n 1 8 0 N ^ X T K2 0 0 P R I N T M m $ ( S $ f J t K - J )8 0 I K < - I F N ( S & ) G O T O 1 2 9 0 E N

T h n r o r r a m w o r k s q u i t e w e l l , a n i s n ' t h a r d t f o l l o w .I s h o u l d b e n o t e d t h a t i e i t h e r t h e o J l o o p sr u n t o c o m p l e t i o n , t h v a r i a b l e w i l l h a v e v a l u e o I £ N ( S $ ) + 1 ;t h i s i i n t e n d e d a n d a l l o w e d f o i l i n e s 1 5 a n 8 0 0 .B e f o r e w e x t e n d t h i s p r o g r a m i n t o c a t a s t r o p h e , l e t ' s n o t eo n t h i n g : b t h e t i m e t h e p r o g r a m r e a c h e s l i n e 2 0 0 , b o t ht h a n l o o p s w i l l s t i l l b e o p e n m o s t o t h e t i m ew e " j u m p e d o u t " o f b o t h o f t h e m . N r e a l p r o b l e m ; v t f i e n w g b a c k t o 1 2 0 , t h e n e w F O R J . w i l l c a n c e l t h e m b o t h .

N o w l e t ' s g e t i n t o t r o u b l e . V / m a b w r i t i n g l i t t l e E L I Z Ah e r e , a n w a n t t o c h e c k t h e w o r d w e ' v e f o u n d a g a i n s tt a b l e o f k e y w o r d s ' s o a s t o p i c k s u i t a b l e r e p l y .W e 1 1 1 a s s u m e t a b l e o t w e n t y k e y w o r d s , a n s t a r t t b u i l d

s e a r c h l o o p . R e p l a c i n g l i n e P O O , w e s t a r t ' a n e w I o o d :

2 0 X M I D $ ( S $ , J , K - J ) r e w o r d2 1 F O R 1 = 1 T 2

O u r l o o p i n o t h r c o d e e p a n a r s t i l l c o n s i d e r e d a c t i v e ,r e m e m b e r ? N o r o M e m w i t h t h r e e - l e v e l l o o p s ; w f r s t i l l O K

P u h e r e f s w h e r ^ w e m i p h t g e t c l e v e r a n w r e c k e v e r y t h i n g , " . - f en e e d t p r e s e r v e t h a t ' s w h e r e o u s e a r c h f o r t h n e x t w o r dw i l l s t a r t . B u t h a s e r v e d i t p u m o s e , a n c o ^ l d b u s e d? p a i n f r i t f h t ? W e l l . l e t ' s s e e .

T h i s t a b l e o f 2 0 w o r d s i r e a l l y d o u b l e t a b l e . I c o n t a i n sp a i r s o w o r d s s u c h a " I " , ' 1 Y O U " , o r " M Y " , " Y O U R " . T m a k e o u c o m p u t e r t a l k w m u s t s p o t w o r d f r o m e i t h e r c o l u m n , a n s w i t c hi t h w o r d f r o m t h e o p p o s i t e c o l u m n ( s t h a t " I H A V - v F I Z A S " w i l lb e c o m e " Y O U H A V E F I S A S " ) . S w e n e e d o n m o r e l o o p t o s e a r c ho v e r t h t w c o l u m n s .

Page 24: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 24/26

3 L e t * s b e c l e v e r a n u s J s i n c e w e h a v e d e c i d e d t h a t i i s n ! tn e e d e d a n m o r e . a t h i s p o i n t . W c o d e :

2 2 F O R J » l T 2 3 I F X $ = T $ ( I , J ) T H E N X 8 - T $ ( J , 3 - J ) : S O T O h O O s w a n w o r *2 h N E X T2 $ N E X TU 0 0 P R I N T X $ ; w " r * n e * t w o

S u d d e n l y e v e r y t h i n g s t e m s w o r k i n g , a n t h w o r l d t u m b l e s d o w na r o u n d o u r p r o g r a m . V J h a t h a p n e n e d ?L e t f s s t o p a n d a n a l y z e . J u s t b e f o r e e x e c u t i n g l i n e 2 2 0 , t h c o m p u t e r h a t h r e e a c t i v e l o o p s , w i t h v a r i a b l e s J X a n I N o i r e a c h e s l i n e 2 2 0 , a n w h a t d o e s i t s e e ? l o o p b a s e d o J t h " b i g g e s t 1 1 l o o p ! S w h a t d o e s i t d o I c a n c e l s t h a n l o o p s , o f c o u r s e , a n d s t a r t s n e l o o p .

W h e n w e r e a c h l i n e 2 3 > O , t h c o m p u t e r s e e s 2 E X T b u i n l o n g e rh a a a c t i v e F O R I l o o p , a n y o g e N E X T W I T H O U T F O e r r o r n o t i c e .

T h e r u l e h e r e i s l i g h t l y m o r e c o m p l e x , b u n o t o t o u g h . I y o u s a a " o u t e r 1 1 l o o p v a r i a b l e , n e v e r u s e i t f o a n i n n e r l o o p .I w e r e v e r s e d a n i t h c o d i n g f r o m 2 1 t 2 5 > O , w e ' d h a v en p r o b l e m . T r t t h i n k i t e r m s o f t h e h i e r a r c h y o f l o o p s , a n dy o c a n m a k e s u r e t h a t g i v e n v a r i a b l e i u s e d o n l y a i t p r o p e r h i e r a r c h y l e v e l .

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

1 0 P I T S ( l , h ) t w b f i v p a r r a y1 1 P A T A M 3 , Y 0 U , I , Y 0 U , y Y J 0 I I R , A M , A R w . f ^ r ? . 3 I . F /1 2 0 F O R J = * 0 7 1 3 0 F O R K « 0 T U T F . A D T S ( J t K )1 5 * F , X ?1 6 } r . \ T1 7 I N 7 J J T S 1 6 K l = l1 9 F O J = K 1 T I Z N ( S $ )2 0 I M I 3 M S $ , J , 1 ) T H E N I I E X T2 1 J 1 = J2 2 I J > L E N ( S 3 ) G O T O 9 0 2 3 F O J = J 1 T I E N ( S $ )2 h I M I D $ ( S $ , J , 1 ) < > » T H E N ? E " < T2 5 K 2 6 X S » M T D $ ( S S , J 1 , K 1 - J 1 )2 7 F O J = T 2 8 0 F O R K = 0 T 2 9 I F T S ( K , J ) = Z 5 T : i r \ f X S = T S ( 1 K J : " 0 T 0 3 2 03 0 N F . : C T3 1 N E X T3 2 0 7 R T N T » ; X 3 ;3 ? I K L < - L E » ( S S ) G O T O 1 9

3 O C Q 1 7 0 - 3 ^

Page 25: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 25/26

N o t p t h a t t h o u t e r m o s t l o o n i n o w a l w a y s c a l l e d J t h e n e x t d o w na l w a y s K I f v e t i g h t e n e d u n t h e a r r a v y t u s t h z e r o r o w s a n c o l u m n s t o s a v e m e m o r y ; a n t h s e a r c h l o o p s a r l i t t l e f a s t e r .E v e n t h o u p h t h r ^ r o r r a m i r i d d l e d w i t h n r e m a t u r e l o o n e x J » t s f t h e r e 'a r e n o n r o h l o m s * J u s t o b s e r v e f e s i m p l e r u l e s , a n d y o u ' l l h a v ee f f i c i e n t a n d t r o u b l e - f r e e l o o p s .

1 1 r : ' i i e " = a a / " » n o o e n n u r * ' u " + r P E T .

i r ' i t e r - n a . R r H M e x p a n s i o n b o a r d s

£ 4 3 w . 0 0

- • £ - 1 £ . • r c • £ 2 _ "

f t r . « . c r 1 i : - j - i a u a . £ i e e 1 1 • : : > r ■ . a s s e f n b e r a n » : = ■ s ^ - s e r n ^ : « e » • : • a c k a : ^ e' 7 " r * f - . = i • £ ■ • - ? c » " H c ̂ 0 * 1 • = * ' i " f a . " t i r " - f » ■ " ■ I 1 9 *

C t 5 f • : a . - y H » . . . » e .n r P 9 . M a t o b a .

• : . 1 : 0 4 7 ^ 6 3 3 8 1

Page 26: The Transactor V2 05 1979 Oct 31

8/7/2019 The Transactor V2 05 1979 Oct 31

http://slidepdf.com/reader/full/the-transactor-v2-05-1979-oct-31 26/26

T h P E T ® G a z e t t e W i t h N e w N a m eC O M P U T E .T h J o u r n a l f o P r o g r e s s i v e C o m p u t i n g

t h n e p u b l i s h e r o t h e P E T ® G a z e t t e A U G U S T 1 1 9 7 9o r e a d e r s o t h P E G a z e t t e

D u r i n g t h p a s t y e a r , t h P E G a z e t t e h a g r o w n f r o m o n p a g e n e w s l e t t e r w i t h c i r c u l a t i o n o 5 t m a g a z i n e w i t h c i r c u l a t i o n o o v e r 4 O O O . D u t t h i s r a p i d g r o w t h t h m a g a z i n e h a r e a c h e d c r u c i a l

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

r s , a n w e l l y o g e t t h e p i c t u r e . T h d e m a n d f o t h P E G a z e t t e h a b e g u n t e x c e e d N i n d i v i d u a l r e s o u r c e s .R e g a r d l e s s o b e s t i n t e n t i o n s , t h p r e s s o f b u s i n e s s p r o b l e m s l e f t h i f a l l i n g b e h i n d i a d d i n g n e s u b s c r i b e r s , p r e s si n h i p r i n t e r f o d e l i v e r y , a n s o n W o r s t o a l l , h f o u n d h i m s e l f l o s i n g t h t i m e n e e d e d f o w r i t i n g a n p r o g r a m m i n g .

T h s o l u t i o n ? S m a l l S y s t e m S e r v i c e s , I n c . h a n o a c q u i r e d t h P E G a z e t t e . W e ' r e r e s p o n s i b l e f o h a n d l i n g t h m a n y p r o b l e m s a s s o c i a t e d w i t h b r i n g i n g a a c t i v e , e n e r g e t i c m a g a z i n e f r o m c o n c e p t i o n t y o u r d o o r . W e ' r e l i n i n gu p a n i n d u s t r y s e n s i t i v e g r o u p o f c o n t r i b u t i n g e d i t o r s ; w e ' r e e x p a n d i n g t h e m p h a s i s o t h m a g a z i n e . Y o u ' l l s t i l l s e t h e P E T G a z e t t e w i t h p r i m a r y e m p h a s i s o t h p r o d u c t s ( a n d p r o b l e m s ) o C o m m o d o r e B u s i n e s s M a c h i n e s , I n c . B u t "y o u ' H s e o t h e r 6 5 O 2 p r o d u c t s a s w e l l . A n c o n t i n u i n g f e a t u r e s o r r s u c h a r e a s a E d u c a t i o n B u s i n e s s , N e P r o du c t s , a n R e v i e w s . Y o u ' l l s e a o r v g o i n g i l l u s t r a t i v e c o l u m n o m a i n t e n a n c e a n t r o u b l e s h o o t i n g f o w i d e r a n g eo p r o b l e m s . A n y o u ' l l g e t a d v i c e o p r o g r a m d e s i g n a n s t y l e . P l u s n e f e a t u r e s t o b r i n g y o m o r e i n f o r m a t i o nf r o m s e v e r a l v i e w p o i n t s . Y o w i l l m o s t a s s u r e d l y b e n e f i t f r o m a l t h e s e a d d i t i o n s .

Y o u r r o l e a r e a d e r ? W e ' l l c o n t i n u e t s o l i c i t y o u r a d v i c e a n w r i t t e n c o n t r i b u t i o n s . F r o m o u p e r s p e c t i v e ,w e ' l l s h a p e u p T h P E G a z e t t e ' s n e x t i s s u e w i l l b e m a s s i v e s u p e r i s s u e . F a l l 1 9 7 9 , i n c l u d i n g C h r i s t m a s B u y e r sG u i d e , a n g e n e r a l N n t s o w h a f t c o m e . W e ' r e u p g r a d i n g t h q u a l i t y o f t h m a g a z i n e , a n r e d e s i g n i n g i f o r e a d i n g e a s e a n p r a c t i c a l u s e . T h i s s u p e r i s s u e o f t h N e P E G a z e t t e w i l l b d i s t r i b u t e d f r e e t a l c u r r e n t s u b s c r i be r s . I w i l l b f o l l o w e d b t h f i r s t o o u n o r m a l b i - m o n t h l y i s s u e s . A o t h J a n u a r y / F e b r u a r y 1 9 8 O i s s u e t h P E G a z e t t e w i l l c a r r y a a n n u a l s u b s c r i p t i o n p r i c e o S 9 . O O f o i s s u e s . T h s i n g l e c o p y n e w s t a n d p r i c e w i l l b S 2 O O .t h i r d o p t i o a w h i c h w e n c o u r a g e w h e r e f e a s i b l e , i " p e r s o n a l / r e t a i l " s u b s c r i p t i o a Y o s u b s c r i b e t h r o u g h u a t h r e d u c e d a n n u a l r a t e o S 7 . 5 O , a n d e a c h o y o u r p r e p a i d i s s u e s w i l l b i n c l u d e d i t h a d v a n c e s h i p m e n t t y o u r l o c a ld e a l e r w i t h h i s t a n d i n g o r d e r . Y o s i m p l y s t o p i a n p i c k u y o u r p r e p a i d c o p y . W s a v e t h m a i l i n g c o s t s , a n y o g e y o u r i s s u e a f a s t a U P S r e a c h e s y o u r d e a l e r , a n s a v e f e d o l l a r s t b o o t .

B u w h a t h a p p e n s t L e L i n d s a y a f t e r a l t h i s ? W e l l , w e ' v e a c q u i r e d t h e P E G a z e t t e , n o t L e L i n d s a y . H e ' l lg i v e , u t h t i t l e o j a c k - o f - a l h t r a d e s w h i l e r e t a i n i n g t h t i t l e o S e n i o r C o n t r i b u t i n g E d i t o r . H e ' l l r e m a i n h i o u t s p o k e ns e l f w i t h n a l l e g i a n c e t a n y o n e . W e ' l l h a n d l e t h b u s i n e s s e n d , h e l p c o o r d i n a t e t h m a t e r i a l f r o m t h e n e w l y a d d e da s s o c i a t e e d i t o r s , e t c . b u b e s t o a l l , L e w i l l r e t u r n t t h m o r e e x c i t i n g a s p e c t s o t h i s " b u s i n e s s " . . . w r i t i n g , p r o g r a mm i n g , a n r e v i e w i n g . T h n e e x p a n d e d P E G a z e t t e w i l l c o n t i n u e t o i n c l u d e a l t h e h e l p a n i n f o r m a t i o n a s p r e v io u s l y , b u w i l l n o a l s o I n c l u d e a r t i c l e s a n c o l u m n s b y t h l e a d i n g n a m e s I t h f l e k l I n c l u d e d w i l l b s p e c i f i c h e l pw i t h P E A s s e m b l y L a n g u a g e P r o g r a m m i n g a n g o o d h a r d w a r e h e l p .

S t i c k w i t h u s I f a e x c i t i n g t i m e f o t h n e P E G a z e t t e . O u t i t i e i " C O M P U T E , t h J o u r n a l f o P r o g r e s s i v eC o m p u t i n g . ™ " W p l a n t l i v e u t t h g o a l s i m p l i c i t i t h a t s t a t e m e n t . I y o u ' v e s e n t i d o n a t i o n c h e c k t L e s i n c e M a l e u k n o w i y o w i s h i a p p l i e d t o w a r d y o u r n e s u b s c r i p t i o n ( i n c l u d e p h o t o c o p y o y o u r r e c e i p t f r o mL e n ) . I y o a r i n t e r e s t e d i o u " P e r s o n a l / R e t a i l " s u b s c r i p t i o n p l a a i n c l u d e t h n a m e , a d d r e s s , a n d p h o n e n u m b e r o t h e d e a l e r y o u ' d l i k e t s u b s c r i b e t h r o u g h a l o n g w i t h y o u r c h e c k . C h e c k s s h o u l d b m a d e p a y a b l e t o " C O M P U T E . "R e g a r d l e s s o y o u r d e c i s i o n n o w , y o c a e x p e c t t s e t h n e x t i s s u e o f t h n e e x p a n d e d P E G a z e t t e i e a r l yO c t o b e r . O s t o p b t h e P E T G a z e t t e b o o t h ( 1 1 9 - A ) a t h e B o s t o n C o m p u t e r s h o w S e p t . 2 8 - 3 O . W h o p e y o a r e a se x c i t e d a s w a r a b o u t t h e s e i m p r o v e m e n t s a n a d d i t i o n s t o t h e P E T G a z e t t e . T h a n k y o f o y o u r c o n t i n u e d s u p p o r t .C o r d i a l l y ,R o b e r t C L o c k P r e s i d e n t , S m a l l S y s t e m S e r v i c e s , I n c .L e L i n d s a y S e n i o r C o n t r i b u t i n g F . d i t o r , C O M P U T E . T h J o u r n a l f o P r o g r e s s i v e C o m p u t i n g ™


Recommended