  
 
 
  
 	 	         c o m p d v . r d                                               0 3 / 1 7 / 8 6     1 5 2 0 . 3 r e w   0 3 / 1 7 / 8 6     1 4 3 0 . 1           1 1 3 3 9 0 1     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 / * + + 
 I N C L U D E   E R R O R 	 	 	 	 	 	                 \ 
 B E G I N 
       /       /   P U S H   ( B E G I N ) 
 	     [ c a l l   p u s h   ( " B E G I N " ) ] 	 	 	 	               / \ 
 
 \ "   i f   " d c l "   o r   " M e d i a C h a r s "   a p p e a r   f i r s t ,   t a k e   t h e m . 
       /   d c l   : 
               / 	     [ i f   d b _ s t a r t   =   " d c l "   t h e n   d b _ s w ,   d t _ s w   =   " 1 " b ; 
 	       i f   d b _ s w 
 	       t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = D e c l a r e " ,   d t _ s w ) ] 
                   L E X ( 2 ) 	 	 	 	 	                         /   d c l   \ 
       /   M e d i a C h a r s   : 
               /   L E X ( 2 )   p o p 
 	     [ m e d i a c h a r s _ p   =   a r e a _ f r e e _ p ] 
                   P U S H   ( d o n e _ M e d i a C h a r s ) 
 	     [ c a l l   p u s h   ( " d o n e _ M e d i a C h a r s " ) ] 	 	           /   M e d i a C h a r s   \ 
 	 	 	 	 \ "   a n y   o f   t h e s e   n e e d   a   M e d i a C h a r s   t a b l e 
 	 	 	 	 \ "   ( w h i c h   m a y   b e   e m p t y ) ,   s o   d e f i n e 
 	 	 	 	 \ "   a   d u m m y   t a b l e . 
       /   M e d i a   / 	 	 	 	 	     /   n o _ M e d i a C h a r s   \ 
       /   V i e w   / 	 	 	 	 	     /   n o _ M e d i a C h a r s   \ 
       /   D e f   / 	 	 	 	 	     /   n o _ M e d i a C h a r s   \ 
       /   F o n t   / 	 	 	 	 	     /   n o _ M e d i a C h a r s   \ 
       /   S i z e   / 	 	 	 	 	     /   n o _ M e d i a C h a r s   \ 
       /   D e v i c e   / 	 	 	 	 	     /   n o _ M e d i a C h a r s   \ 
       /   < n o - t o k e n >   / 	 	 	 	 	     /   n o _ M e d i a C h a r s   \ 
 	 	 	 	 \ "   a n y t h i n g   e l s e   h e r e   m u s t   b e   a   
 	 	 	 	 \ "   g l o b a l   d e v i c e   v a l u e .   t h e y   d o n t   n e e d 
 	 	 	 	 \ "   M e d i a C h a r s . 
       /       / 	 	 	 	 	 	     /   g l o b a l _ d e v i c e   \ 
 
 n o _ M e d i a C h a r s 
       /       /   p o p 
 	     [ c a l l   E R R O R   ( m i s s i n g _ M e d i a C h a r s ) ] 
 	     [ m e d i a c h a r s _ p   =   a r e a _ f r e e _ p ; 
 	       m e d i a c h a r s . c o u n t   =   1 ; 	 \ "   s u p p l y   a   d u m m y   o n e 
 	       m e d i a c h a r s . n a m e   ( 1 )   =   " < m e d i a c h a r > " ; 
 	       m e d i a c h a r s . o u t _ r   ( 1 )   =   " 0 " b ] 	 	 	               / \ 
 	 	 	 	 \ "   f i n i s h   t h e   M e d i a C h a r s   t a b l e 
 d o n e _ M e d i a C h a r s 
     /   / 	                 [ a r e a _ f r e e _ p   =   a d d r _ i n c   ( m e d i a c h a r s _ p ,   s i z e   ( m e d i a c h a r s ) ) ]   / \ 
 
 M e d i a 
           / 	 / 	 [ i f   ( d b _ s t a r t   =   " m e d i a " )   t h e n   d b _ s w ,   d t _ s w   =   " 1 " b ]               / \ 
           / 	 / 	 [ m e d i a _ p   =   a r e a _ f r e e _ p ; 
 	 	   m e d i a . c o u n t   =   0 ] 	 	 	 	               / \ 
               /   V i e w 	 / 	 /   n o _ M e d i a   \ 
               /   D e f 	 / 	 /   n o _ M e d i a   \ 
               /   F o n t 	 / 	 /   n o _ M e d i a   \ 
               /   S i z e 	 / 	 /   n o _ M e d i a   \ 
               /   D e v i c e 	 / 	 /   n o _ M e d i a   \ 
               /   < n o - t o k e n > 	 / 	 /   n o _ M e d i a   \ 
 M e d i a _ 
           / 	 / P U S H   ( M e d i a _ ) [ c a l l   p u s h   ( " M e d i a _ " ) ] 	 	 	               / \ 
           /   M e d i a   : 
 	 / L E X ( 2 ) 	 	 	 	 	                 /   M w i d t h s   \ 
           /   V i e w 	 / p o p 	 	 	 	           /   d o n e _ M e d i a   \ 
               /   D e f 	 / p o p 	 /   d o n e _ M e d i a   \ 
               /   F o n t 	 / p o p 	 /   d o n e _ M e d i a   \ 
               /   S i z e 	 / p o p 	 /   d o n e _ M e d i a   \ 
               /   D e v i c e 	 / p o p 	 /   d o n e _ M e d i a   \ 
           / 	 / 	 	 	 	 	     /   g l o b a l _ d e v i c e   \ 
 n o _ M e d i a 
           / 	 / [ c a l l   E R R O R   ( m i s s i n g _ M e d i a ) ] 
 	 	 [ m e d i a . c o u n t   =   1 ; 	 \ "   s u p p l y   a   d u m m y   o n e 
 	 	   m e d i a . n a m e   ( 1 )   =   " < m e d i a > " ; 
 	 	   m e d i a . r e l _ u n i t s   ( 1 )   =   0 ; 
 	 	   m e d i a . w i d t h   ( 1 ,   1 )   =   0 ] 	 	 	               / \ 
 d o n e _ M e d i a 
           / 	 / 	 [ a r e a _ f r e e _ p   =   a d d r _ i n c   ( m e d i a _ p ,   s i z e   ( m e d i a ) ) ] 	               / \ 
 
 s t a r t _ V i e w 
           / 	 / 	 [ i f   ( d b _ s t a r t   =   " v i e w " )   t h e n   d b _ s w ,   d t _ s w   =   " 1 " b ] 	               / \ 
           / 	 / 	 [ v i e w _ p   =   a r e a _ f r e e _ p ; 
 	 	   v i e w . c o u n t   =   0 ] 	 	 	 	               / \ 
               /   D e f 	 / 	 /   n o _ V i e w   \ 
               /   F o n t 	 / 	 /   n o _ V i e w   \ 
               /   S i z e 	 / 	 /   n o _ V i e w   \ 
               /   D e v i c e 	 / 	 /   n o _ V i e w   \ 
               /   < n o - t o k e n > 	 / 	 /   n o _ V i e w   \ 
 V i e w _ 
           / 	 / P U S H   ( V i e w _ ) [ c a l l   p u s h   ( " V i e w _ " ) ] 	 	 	               / \ 
           /   V i e w   : 
 	 / L E X ( 2 ) 	   	 	 	 	               /   V i e w r e s t   \ 
               /   D e f 	 / p o p 	 /   d o n e _ V i e w   \ 
               /   F o n t 	 / p o p 	 /   d o n e _ V i e w   \ 
               /   S i z e 	 / p o p 	 /   d o n e _ V i e w   \ 
               /   D e v i c e 	 / p o p 	 /   d o n e _ V i e w   \ 
           / 	 / 	 	 	 	 	     /   g l o b a l _ d e v i c e   \ 
 n o _ V i e w 
           / 	 / [ c a l l   E R R O R   ( m i s s i n g _ V i e w ) ] 
 	 	 [ v i e w . c o u n t   =   1 ; 	 \ "   s u p p l y   a   d u m m y   o n e 
 	 	   v i e w . n a m e   ( 1 )   =   " < v i e w > " ; 
 	 	   v i e w . m e d i a   ( 1 )   =   1 ] 	 	 	               / \ 
 d o n e _ V i e w 
           / 	 / 	 [ a r e a _ f r e e _ p   =   a d d r _ i n c   ( v i e w _ p ,   s i z e   ( v i e w ) ) ]                       / \ 
 
 s t a r t _ D e f 
           / 	 / 	 [ i f   ( d b _ s t a r t   =   " d e f " )   t h e n   d b _ s w ,   d t _ s w   =   " 1 " b ] 	               / \ 
           / 	 / 	 [ D e f _ p   =   a r e a _ f r e e _ p ; 
 	 	   D e f . c o u n t   =   0 ] 	 	 	 	               / \ 
               /   F o n t 	 / 	 /   n o _ D e f   \ 
               /   S i z e 	 / 	 /   n o _ D e f   \ 
               /   D e v i c e 	 / 	 /   n o _ D e f   \ 
               /   < n o - t o k e n >   / 	 /   n o _ D e f   \ 
 D e f _ 
           / 	 / P U S H   ( D e f _ ) [ c a l l   p u s h   ( " D e f _ " ) ] 	 	 	               / \ 
           /   D e f   : 
 	 / L E X ( 2 ) 	 	 	 	 	                 /   D e f r e s t   \ 
           /   F o n t 	 / p o p 	 	 	 	               /   d o n e _ D e f   \ 
               /   S i z e 	 / p o p               /   d o n e _ D e f   \ 
               /   D e v i c e 	 / p o p               /   d o n e _ D e f   \ 
           / 	 / 	 	 	 	 	     /   g l o b a l _ d e v i c e   \ 
 n o _ D e f 
           / 	 / 	 [ D e f . c o u n t   =   1 ; 
 	 	   D e f . n a m e   ( 1 )   =   " < D e f > " ; 
 	 	   D e f . p t   ( 1 )   =   n u l l ( ) ] 	 	 	               / \ 
 d o n e _ D e f 
           / 	 / 	 [ a r e a _ f r e e _ p   =   a d d r _ i n c   ( D e f _ p ,   s i z e   ( D e f ) ) ] 	               / \ 
 
 s t a r t _ F o n t 
           / 	 / 	 [ i f   ( d b _ s t a r t   =   " f o n t " )   t h e n   d b _ s w ,   d t _ s w   =   " 1 " b ] 	               / \ 
               /   S i z e 	 / 	 /   n o _ F o n t   \ 
               /   D e v i c e 	 / 	 /   n o _ F o n t   \ 
               /   < n o - t o k e n > 	 / 	 /   n o _ F o n t   \ 
 F o n t _ 
           / 	 / P U S H   ( F o n t _ ) [ c a l l   p u s h   ( " F o n t _ " ) ] 	 	 	               / \ 
           /   F o n t   : 
 	 / L E X ( 2 ) 	 	 	 	 	               /   F o n t r e s t   \ 
           /   S i z e 	 / p o p 	 	 	 	             /   d o n e _ F o n t   \ 
               /   D e v i c e 	 / p o p 	 /   d o n e _ F o n t   \ 
           / 	 / 	 	 	 	 	     /   g l o b a l _ d e v i c e   \ 
 n o _ F o n t 
           / 	 / [ c a l l   E R R O R   ( m i s s i n g _ F o n t ) ] 	 	 	           /   s t a r t _ S i z e   \ 
 d o n e _ F o n t 
           / 	 / 	 [ a r e a _ f r e e _ p   =   a d d r _ i n c   ( o p u t _ p ,   s i z e   ( o p u t ) ) ] 	               / \ 
 
 s t a r t _ S i z e 
           / 	 / 	 [ i f   ( d b _ s t a r t   =   " s i z e " )   t h e n   d b _ s w ,   d t _ s w   =   " 1 " b ] 	               / \ 
           / 	 / 	 [ s i z e _ l i s t _ p   =   a r e a _ f r e e _ p ; 
 	 	   s i z e _ l i s t . c o u n t   =   0 ; 
 	 	   a r e a _ f r e e _ p ,   s i z e l _ p   =   a d d r   ( s i z e _ l i s t . s t a r t ) ] 	               / \ 
               /   D e v i c e 	 / 	 /   n o _ S i z e   \ 
               /   < n o - t o k e n > 	 / 	 /   n o _ S i z e   \ 
 S i z e 
           / 	 / P U S H   ( S i z e ) [ c a l l   p u s h   ( " S i z e " ) ] 	 	 	               / \ 
           /   S i z e   : 
 	 / L E X ( 2 ) 	 	 	 	 	               /   S i z e r e s t   \ 
           /   D e v i c e 
 	 / p o p 	 	 	 	 	             /   d o n e _ S i z e   \ 
           / 	 / 	 	 	 	 	     /   g l o b a l _ d e v i c e   \ 
 n o _ S i z e 
           / 	 / [ c a l l   E R R O R   ( m i s s i n g _ S i z e ) ] 
 	 	 [ s i z e _ l i s t . c o u n t   =   1 ; 	 \ "   s u p p l y   a   d u m m y   o n e 
 	 	   s i z e _ l i s t . n a m e   ( 1 )   =   " < s i z e > " ; 
 	 	   s i z e _ l i s t . p t   ( 1 )   =   a d d r ( s i z e _ l i s t . s t a r t ) ]               /   D e v i c e   \ 
 d o n e _ S i z e 
           / 	 / 	 [ i f   S i z e s   =   0 
 	 	   t h e n   i f   s i z e _ l i s t . c o u n t   >   0 
 	 	   t h e n   S i z e s   =   1 ; 
 
 	 	   t p   =   P t o k e n ; 
 	 	   d o   f n t _ p   =   f n t l _ p   ( 1 )   r e p e a t   ( f n t . n e x t ) 
 	 	         w h i l e   ( f n t _ p   ^ =   n u l l   ( ) ) ; 
 	 	         P t o k e n ,   P t h i s _ t o k e n   =   f n t . n o d e ; 
 	 	         i f   ( f o n t . m i n _ w s p   =   - 1 ) 
 	 	         t h e n   c a l l   E R R O R   ( n o _ w o r d s p a c e _ v a l ) ; 
 	 	   e n d ; 
 	 	   P t o k e n ,   P t h i s _ t o k e n   =   t p ] 	 	                                   / \ 
 
 D e v i c e 
           / 	 / 	 [ i f   ( d b _ s t a r t   =   " d e v " )   t h e n   d b _ s w ,   d t _ s w   =   " 1 " b ] 	               / \ 
           / 	 /   P U S H   ( D e v i c e ) [ c a l l   p u s h   ( " D e v i c e " ) ] 	 	 	               / \ 
           /   D e v i c e   : 
 	 / 	 [ D e v i c e _ P t h i s _ t o k e n   =   P t h i s _ t o k e n ] 
 	     L E X ( 2 ) 
 	 	 [ i f   d b _ s w   t h e n 
 	 	   c a l l   i o a _   ( " = = = D e v i c e   ^ a " ,   t o k e n _ v a l u e ) ]         /   D e v i c e r e s t   \ 
           /   < n o - t o k e n > 
 	 / 	 [ i f   c o n s t . d e v p t r   =   n u l l   ( ) 
 	 	   t h e n   c a l l   E R R O R   ( n o _ D e v i c e ) ] 	 	                   /   R E T U R N   \ 
           / 	 /     	 	 	 	 	     /   g l o b a l _ d e v i c e   \ 
  
 s t a c k _ p o p 
           / 	 / [ i f   t r _ s w 
 	     t h e n   c a l l   i o a _ ( "   S T A C K _ P O P ( ^ a , ^ i ) " , S t a c k ( S T A C K _ D E P T H ) , S T A C K _ D E P T H ) ] 
 	 	 	 	 	 	           /   S T A C K _ P O P   \ 
           / 	 / [ ; 
 p u s h :   p r o c   ( n a m e ) ; 
 d c l   n a m e 	 	 c h a r   ( * ) ; 
 
             S t a c k   ( S T A C K _ D E P T H )   =   n a m e ; 
             i f   t r _ s w   t h e n   c a l l   i o a _   ( "   P U S H ( ^ a , ^ i ) " ,   n a m e , S T A C K _ D E P T H ) ; 
       e n d   p u s h ; 
 
 p o p :   p r o c ; 
             i f   t r _ s w   t h e n   c a l l   i o a _   ( "   P O P ( ^ a , ^ i ) " ,   S t a c k   ( S T A C K _ D E P T H ) , S T A C K _ D E P T H ) ; 
             S T A C K _ D E P T H   =   m a x   ( S T A C K _ D E P T H   -   1 ,   0 ) ; 
       e n d   p o p ; 	 ] 	 	 	 	 	               / \ 
  
 \ "   d e f i n e   l o c a l   n a m e d   s y m b o l s   f o r   v a r i o u s   s t r i n g s 
 d c l 
       /   < i d e n t >   ,           
             / 	     [ d c l n a m e   =   t o k e n _ v a l u e ] 
                   L E X ( 2 ) 
                   P U S H   ( d c l _ 1 ) [ c a l l   p u s h   ( " d c l _ 1 " ) ] 	 	               /   o u t p u t _ 0   \ 
 d c l _ 1 
           /   ;   /                 [ d c l _ p   =   a r e a _ f r e e _ p ; 
 	                   d c l _ . l e n g   =   l e n g t h   ( p a r t _ s t r   ( 1 ) ) ; 
 	                   d c l _ . d c l _ v   =   p a r t _ s t r   ( 1 ) ; 
 	                   d c l _ . d c l _ n a m e   =   d c l n a m e ; 
 	                   a r e a _ f r e e _ p   =   a d d r   ( d c l _ . d u m m y ) ; 
 	                   i f   d t _ s w 
 	                   t h e n   c a l l   i o a _   ( " ^ p ^ - d c l   ^ 8 a   " " ^ a " " " ,   d c l _ p ,   d c l _ n a m e , 
 	                       d c l _ v ) ; 
 	                   c a l l   l i n k   ( d c l _ l _ p ,   d c l _ p ) ] 
 	   L E X ( 1 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ d c l ) ]   N E X T _ S T M T 	 	             /   s t a c k _ p o p   \ 
  
 M e d i a C h a r s 
           /   < i d e n t 2 > 
 	 / 	 [ m e d i a 1 ,   m e d i a 2 = t o k e n _ v a l u e ] 	 	                 /   M e d i a _ 3   \ 
           /   < i n p u t > 
 	 / 	 [ m e d i a 1 ,   m e d i a 2 = " [ "   | |   I n p u t   | |   " ] " ] 
 	   L E X ( 1 ) 	 	 	 	 	                 /   M e d i a _ 1   \ 
 M e d i a _ e r r 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ M e d i a C h a r s ) ]   	 	 	               / \ 
 M e d i a _ s k i p 	 \ "   s c a n   f o r w a r d   l o o k i n g   f o r   a   " , "   o r   " ; " 
           /   , 	 / L E X ( 1 ) 	 	 	 	 	           /   M e d i a C h a r s   \ 
           /   ; 	 / 	 	 	 	 	                 /   M e d i a _ 9   \ 
           /   < a n y - t o k e n > 
 	 / L E X ( 1 ) 	 	 	 	 	           /   M e d i a _ s k i p   \ 
 
 M e d i a _ 1 
           /   : 	 / L E X ( 1 ) 	 	 	 	 	                 /   M e d i a _ 2   \ 
           / 	 / L E X ( - 1 ) 	 	 	 	 	                 /   M e d i a _ 3   \ 
 M e d i a _ 2 
           /   < i n p u t > 
 	 / 	 [ m e d i a 2 = " [ "   | |   I n p u t   | |   " ] " ] 	 	                 /   M e d i a _ 3   \ 
           / 	 / 	 	 	 	 	             /   M e d i a _ e r r   \ 
 M e d i a _ 3 
           / 	 / 	 [ h e l d _ P t h i s _ t o k e n   =   P t h i s _ t o k e n ]   \ "   f o r   e r r o r   m s g s 
 	   L E X ( 1 )   P U S H   ( M e d i a _ 4 ) [ c a l l   p u s h   ( " M e d i a _ 4 " ) ] 	               /   o u t p u t _ 0   \ 
 M e d i a _ 4 
           / 	 / 	 [ h o l d _ P t h i s _ t o k e n   =   P t h i s _ t o k e n ; 
 	 	   P t o k e n ,   P t h i s _ t o k e n   =   h e l d _ P t h i s _ t o k e n ; 
 	 	 	 	 	   \ " i n   c a s e   a n y   E R R O R S 
 	 	   t h e _ s t r i n g   =   p a r t _ s t r   ( 1 ) ; 
 
 	 	   i f   ( m e d i a 1   ^ =   m e d i a 2 ) 
 	 	   t h e n   d o ; 
 	 	         i f   ( s u b s t r   ( m e d i a 1 ,   1 ,   1 )   ^ =   " [ " ) 
 	 	         |   ( s u b s t r   ( m e d i a 2 ,   1 ,   1 )   ^ =   " [ " ) 
 	 	         t h e n   c a l l   E R R O R   ( i n v _ M e d i a C h a r _ r a n g e ) ; 
 	 	         e l s e   i f   ( m e d i a 1   >   m e d i a 2 ) 
 	 	         t h e n   c a l l   E R R O R   ( i n v _ M u l t i c s _ c h a r _ r a n g e ) ; 
 	 	   e n d ; 
 
 	 	   d o   w h i l e   ( m e d i a 1   < =   m e d i a 2 ) ; 
 	 	         d o   i   =   1   t o   m e d i a c h a r s . c o u n t ; 
 	 	               i f   ( m e d i a c h a r s . n a m e   ( i )   =   m e d i a 1 ) 
 	 	               t h e n   d o ; 
 	 	 	 c a l l   E R R O R   ( d u p _ M e d i a C h a r s ) ; 
 	 	 	 i   =   m e d i a c h a r s . c o u n t ; 
 	 	               e n d ; 
 	 	         e n d ; 
 
 	 	         i   =   i n d e x   ( t h e _ s t r i n g ,   o 7 7 7 ) ; 
 	 	         i f   ( i   >   0 ) 
 	 	         t h e n   d o ; 
 	 	               i f   ( s u b s t r   ( m e d i a 1 ,   1 ,   1 )   ^ =   " [ " ) 
 	 	               t h e n   c a l l   E R R O R   ( i n v _ M e d i a C h a r _ S E L F _ r e f ) ; 
 	 	               s u b s t r   ( t h e _ s t r i n g ,   i ,   1 )   =   s u b s t r   ( m e d i a 1 ,   2 ,   1 ) ; 
 	 	         e n d ; 
 	 	         m e d i a c h a r s . c o u n t   =   m e d i a c h a r s . c o u n t   +   1 ; 
 	 	         m e d i a c h a r s . n a m e   ( m e d i a c h a r s . c o u n t )   =   m e d i a 1 ; 
 	 	         m e d i a c h a r s . o u t _ r   ( m e d i a c h a r s . c o u n t ) 
 	 	               =   r e l   ( f i n d _ s t r   ( 1 ) ) ; 
 	 	         i f   ( i   >   0 ) 
 	 	         t h e n   s u b s t r   ( t h e _ s t r i n g ,   i ,   1 )   =   o 7 7 7 ; 
 	 	         s u b s t r   ( m e d i a 1 ,   2 ,   1 ) 
 	 	               =   b y t e   ( r a n k   ( s u b s t r   ( m e d i a 1 ,   2 ,   1 ) )   +   1 ) ; 
 	 	       	 \ "   m e d i a   h a s   f o r m   " [ x ] "   w h e n   i n   a   r a n g e 
 	 	   e n d ; 
 	 	   P t o k e n ,   P t h i s _ t o k e n   =   h o l d _ P t h i s _ t o k e n ] 	               / \ 
           /   , 	 / L E X ( 1 ) 	 	 	 	 	           /   M e d i a C h a r s   \ 
 M e d i a _ 9 
           /   ; 	 /   L E X ( 1 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           / 	 / 	 	 	 	 	             /   M e d i a _ e r r   \ 
  
 M w i d t h s 
           / 	 / 	 [ m e d i a c t   =   0 ; 
 	 	   m e d i a b a s e   =   m e d i a . c o u n t ] 	 	 	               / \ 
 M w i d t h _ 1 
           /   < v a l i d _ M e d i a _ n a m e > 
 	 / 	 [ m e d i a c t   =   m e d i a c t   +   1 ; 
 	 	   m e d i a . c o u n t   =   m e d i a . c o u n t   +   1 ; 
 	 	   m e d i a . n a m e   ( m e d i a . c o u n t )   =   t o k e n _ v a l u e ; 
 	 	   m e d i a . r e l _ u n i t s   ( m e d i a . c o u n t )   =   S t r o k e s ; 
 	 	   m e d i a . w i d t h   ( m e d i a . c o u n t ,   * )   =   n u l w i d t h ] 
 	   L E X ( 1 ) 	 	 	 	 	               /   M w i d t h _ 2   \ 
 M w i d t h _ e r r 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ M e d i a _ s e c ) ]   N E X T _ S T M T 	               /   M w i d t h _ 3   \ 
 
 M w i d t h _ 2 
           /   , 	 / L E X ( 1 ) 	 	 	 	 	               /   M w i d t h _ 1   \ 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	               /   M w i d t h _ 3   \ 
           / 	 / 	 	 	 	 	           /   M w i d t h _ e r r   \ 
 M w i d t h _ 3 
           /   s t r o k e s   : 
 	 / L E X ( 2 ) 	 [ m e d i a _ i   =   1 ] 	 	 	             /   M w i d t h _ s 1   \ 
           / 	 / 	 	 	 	 	               /   M w i d t h _ 4   \ 
 M w i d t h _ s 1 
           /   < n u m > 
 	 / 	 [ i f   ( m e d i a _ i   >   m e d i a c t ) 
 	 	   t h e n   c a l l   E R R O R   ( t o o _ m a n y _ s t r o k e _ v a l u e s ) ; 
 	 	   m e d i a . r e l _ u n i t s   ( m e d i a _ i + m e d i a b a s e )   =   t o k e n . N v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	 	               / \ 
           /   , 	 / L E X ( 1 ) 	 [ m e d i a _ i   =   m e d i a _ i   +   1 ] 	 	             /   M w i d t h _ s 1   \ 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	               /   M w i d t h _ 3   \ 
           / 	 / 	 	 	 	 	           /   M w i d t h _ e r r   \ 
 M w i d t h _ 4 
           /   < c h a r n a m e > 
 	 / 	 [ c h a r i d = t o k e n . N v a l u e ; 
 	 	   m e d i a 1   =   m e d i a 2 ; 	 	 \ "   c h a r n a m e   s e t s   m e d i a 2 
 	 	   m e d i a _ i   =   1 ; 
 	 	   m e d i a w i d t h   =   n u l w i d t h ] 
 	 	 	 	 	 	               /   M w i d t h _ A   \ 
           / 	 / 	 	 	 	 	             /   s t a c k _ p o p   \ 
 M w i d t h _ A 
           /   < i n p u t _ > 
 	 / L E X ( 1 ) 	 	 	 	 	               /   M w i d t h _ B   \ 
           / 	 / L E X ( 1 ) 	 	 	 	 	               /   M w i d t h _ 6   \ 
 M w i d t h _ B 
           /   : 	 / L E X ( 1 ) 	 	 	 	 	               /   M w i d t h _ C   \ 
           / 	 / 	 	 	 	 	               /   M w i d t h _ 6   \ 
 M w i d t h _ C 
           /   < c h a r n a m e > 
 	 / 	 	 	 	 	               /   M w i d t h _ D   \ 
           / 	 / 	 	 	 	 	           /   M w i d t h _ e r r   \ 
 M w i d t h _ D 
           /   < i n p u t _ > 
 	 / L E X ( 1 ) 	 	 	 	 	               /   M w i d t h _ 6   \ 
           / 	 / 	 	 	 	 	           /   M w i d t h _ e r r   \ 
 M w i d t h _ 6 
           /   < n u m > 
 	 / 	 	 	 	 	               /   M w i d t h _ 7   \ 
           /   < n e g n u m > 
 	 / 	 	 	 	 	               /   M w i d t h _ 7   \ 
           /   = 	 / 	 	 	 	 	               /   M w i d t h _ 8   \ 
           / 	 / 	 	 	 	 	               /   M w i d t h _ 9   \ 
 M w i d t h _ 7 
           / 	 / 	 [ m e d i a w i d t h   =   t o k e n . N v a l u e ] 	 	 	               / \ 
 M w i d t h _ 8 
           / 	 / L E X ( 1 ) 	 [ m e d i a _   =   m e d i a 1 ; 
 	 	   c h a r i d _   =   c h a r i d ; 
 	 	   i f   ( m e d i a w i d t h   =   n u l w i d t h ) 
 	 	   t h e n   c a l l   E R R O R   ( n o _ p r i o r _ w i d t h ) ; 
 	 	   e l s e   i f   ( m e d i a _   >   m e d i a 2 ) 
 	 	   t h e n   c a l l   E R R O R   ( i n v _ M e d i a _ r a n g e ) ; 
 	 	   e l s e   d o   w h i l e   ( m e d i a _   < =   m e d i a 2 ) ; 
 	 	         i f   ( m e d i a _ i   >   m e d i a c t ) 
 	 	         t h e n   d o ; 
 	 	               c a l l   E R R O R   ( t o o _ m a n y _ w i d t h s ) ; 
 	 	               m e d i a _   =   " ~ "   | |   r t r i m   ( m e d i a 2 ) ; 
 	 	         e n d ; 
 	 	         e l s e   d o ; 
 	 	               m e d i a . w i d t h   ( m e d i a _ i   +   m e d i a b a s e ,   c h a r i d _ ) 
 	 	 	 =   m e d i a w i d t h ; 
 	 	               i f   ( m e d i a _   <   m e d i a 2 ) 
 	 	               t h e n   d o ; 
 	 	 	 s u b s t r   ( m e d i a _ ,   2 ,   1 )   = 
 	 	 	       b y t e   ( r a n k   ( s u b s t r   ( m e d i a _ ,   2 ,   1 ) ) + 1 ) ; 
 	 	 	 c h a r i d _   =   0 ; 
 	 	 	 d o   i   =   1   t o   m e d i a c h a r s . c o u n t 
 	 	 	       w h i l e   ( c h a r i d _   =   0 ) ; 
 	 	 	       i f   ( m e d i a c h a r s . n a m e   ( i )   =   m e d i a _ ) 
 	 	 	       t h e n   c h a r i d _   =   i ; 
 	 	 	 e n d ; 
 	 	 	 i f   ( c h a r i d _   =   0 ) 
 	 	 	 t h e n   d o ; 
 	 	 	       c a l l   E R R O R   ( i n v _ M e d i a _ r a n g e ) ; 
 	 	 	       m e d i a _   =   " ~ "   | |   r t r i m   ( m e d i a 2 ) ; 
 	 	 	 e n d ; 
 	 	               e n d ; 
 	 	               e l s e   m e d i a _   =   " ~ "   | |   r t r i m   ( m e d i a 2 ) ;       \ "   f o r c e   i t   H I 
 	 	         e n d ; 
 	 	   e n d ] 	 	 	 	 	               / \ 
 M w i d t h _ 9 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	               /   M w i d t h _ 3   \ 
           /   , 	 / 	 [ m e d i a _ i   =   m e d i a _ i   +   1 ] 
 	   L E X ( 1 ) 	 	 	 	 	               /   M w i d t h _ 6   \ 
           / 	 / 	 	 	 	 	           /   M w i d t h _ e r r   \ 
  
 V i e w r e s t 
           /   < i d e n t > 
 	 / 	 [ v i e w n a m e = t o k e n _ v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	                   /   V i e w _ 1   \ 
 V i e w _ e r r 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ V i e w ) ]   N E X T _ S T M T 	 	             /   s t a c k _ p o p   \ 
 
 V i e w _ 1 
           /   < m e d i a n a m e > 
 	 / 	 [ v i e w . c o u n t   =   v i e w . c o u n t   +   1 ; 
 	 	   v i e w . n a m e   ( v i e w . c o u n t )   =   v i e w n a m e ; 
 	 	   v i e w . m e d i a   ( v i e w . c o u n t )   =   t o k e n . N v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	                   /   V i e w _ 2   \ 
           / 	 / 	 	 	 	 	               /   V i e w _ e r r   \ 
 V i e w _ 2 
           /   , 	 / L E X ( 1 ) 	 	 	 	 	               /   V i e w r e s t   \ 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           / 	 / 	 	 	 	 	               /   V i e w _ e r r   \ 
  
 D e f r e s t 
           /   < i d e n t >   ; 
 	 / 	 [ D e f . c o u n t   =   D e f . c o u n t   +   1 ; 
 	 	   D e f . n a m e   ( D e f . c o u n t )   =   t o k e n _ v a l u e ] 
 	   L E X ( 2 ) 	 [ D e f . p t   ( D e f . c o u n t )   =   P t h i s _ t o k e n ; 
 	 	   v a l s _ c t   =   0 ] 	 	 	                     /   D e f _ 1   \ 
 \ "   t h e   t o k e n   p o i n t e r   i s   s a v e d   h e r e   s o   t h a t   a t   r e f   t i m e   p a r s i n g   c a n   b e 
 \ "   t e m p o r a r i l y   d i v e r t e d   b a c k   h e r e . 
 
           / 	 / [ c a l l   E R R O R   ( n o _ n a m e _ D e f ) ]   N E X T _ S T M T 	 	 	               / \ 
 
 
 \ "   T h i s   k e e p s   p a r s i n g   u n t i l   e i t h e r   a   D E F ,   F O N T ,   o r   I N V A L I D   S T A T E M E N T   o c c u r s . 
 \ "   N o t h i n g   i s   d o n e   w i t h   t h e   r e s u l t s   o f   t h e   p a r s e   o t h e r   t h a n   i n v a l i d   s t a t e m e n t s 
 \ "   a r e   d e l e t e d   s o   t h e y   w i l l   n o t   c a u s e   f u r t h e r   e r r o r s . 
 D e f _ 1 
           /   D e f   / 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   F o n t   / 	 	 	 	 	             /   s t a c k _ p o p   \ 
               /   S i z e 	 / 	 /   s t a c k _ p o p   \ 
               /   D e v i c e 	 / 	 /   s t a c k _ p o p   \ 
               /   < n o - t o k e n > 	 / 	 /   s t a c k _ p o p   \ 
           / 	 / 	 [ t h i s _ v i e w   =   - 1 ] 
 	   P U S H   ( D e f _ 2 ) [ c a l l   p u s h   ( " D e f _ 2 " ) ] 	 	             /   f o n t _ c h a r   \ 
 D e f _ 2 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	 	 /   D e f _ 1   \ 
           / 	 / D E L E T E _ S T M T 	 	 	 	                     /   D e f _ 1   \ 
 	 	 \ "   f o n t _ c h a r   h a s   a l r e a d y   s a i d   w h y   i t   i s   b a d . 
 	 	 \ "   D e l e t i n g   s t a t e m e n t   i s   s o   e r r o r   w o n ' t   h a p p e n   a g a i n 
 	 	 \ "   d u r i n g   r e p a r s e   a t   r e f   t i m e . 
  
 f o n t _ c h a r 
           / 	 / 	 [ v a l s _ c t   =   0 ] 	 	 	 	               / \ 
 f c h _ 1 
           /   < a l l _ i n p u t > 
 	 / L E X ( 1 ) 	 [ v a l s _ c t   =   v a l s _ c t   +   1 ; 
 	 	   v a l s   ( v a l s _ c t )   =   r a n k   ( I n p u t ) ] 	 	 /   f c h _ 2   \ 
           /   a r t 
 	 / L E X ( 1 ) 	 	 	 	 	 	 /   f c h _ 0   \ 
           / 	 / [ c a l l   E R R O R   ( i n v _ M u l _ c h a r _ s p e c ) ] 	 	   	 /   f c h _ e   \ 
 f c h _ 0 
           /   < p a r t > 
 	 / L E X ( 1 ) 	 [ v a l s _ c t   =   v a l s _ c t   +   1 ; 
 	 	   v a l s   ( v a l s _ c t )   =   r a n k   ( I n p u t ) ] 	 	 /   f c h _ 5   \ 
           / 	 / [ c a l l   E R R O R   ( i n v _ a r t w o r k _ s p e c ) ] 	 	   	 /   f c h _ e   \ 
 f c h _ 2 
           /   : 	 / L E X ( 1 ) 	 	 	 	 	 	 /   f c h _ 3   \ 
           / 	 / 	 	 	 	 	 	 /   f c h _ 5   \ 
 f c h _ 3 
           /   < a l l _ i n p u t > 
 	 / L E X ( 1 ) 	 [ i   =   r a n k   ( I n p u t ) ; 
 	 	 i f   ( v a l s   ( v a l s _ c t )   >   i ) 
 	 	 t h e n   d o ; 
 	 	       c a l l   E R R O R   ( i n v _ M u l t i c s _ c h a r _ r a n g e ) ; 
 	 	       c a l l   L E X   ( - 2 ) ; 
 	 \ "   * * * * * * *   b a c k   u p   t o   t h e   " : "   t o   f o r c e   e r r o r   e x i t   a t   f c h _ 4 
 	 	 e n d ; 
 	 	 e l s e   d o ; 
 	 	       j   =   v a l s   ( v a l s _ c t ) ; 
 	 	       d o   w h i l e   ( j   <   i ) ; 
 	 	             j   =   j   +   1 ; 
 	 	             v a l s _ c t   =   v a l s _ c t   +   1 ; 
 	 	             v a l s   ( v a l s _ c t )   =   j ; 
 	 	       e n d ; 
 	 	 e n d ] 	   	 	 	 	 /   f c h _ 4   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ a f t e r _ c o l o n ) ] 	 	 	 /   f c h _ e   \ 
 f c h _ 4 
           /   : 	 \ "   * * * * * * *   t h i s   c a t c h e s   e r r o r   f o r c e d   a b o v e 
                 	 / 	 	 	 	 	 	 /   f c h _ e   \ 
 f c h _ 5 
           /   , 	 / L E X ( 1 ) 	 	 	 	 	 	 /   f c h _ 1   \ 
           /   < i s _ v i e w n a m e > 
 	 / 	 [ i f   ( t h i s _ v i e w   ^ =   - 1 ) 
 	 	 t h e n   t h i s _ v i e w   =   t o k e n . N v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	 	               / \ 
 
 	 \ "   M C _ S T R I N G   i s   a n   a l t e r n a t e   e n t r y   p o i n t   t o   t h i s   r o u t i n e . 
 m c _ s t r i n g 
           / 	 / 	 [ m e d i a w i d t h ,   s e l f _ c t   =   0 ; 
 	 	   t h e _ s t r i n g   =   " " ] 	 	 	 	               / \ 
           /   < q u o t e d - s t r i n g >   / 	 	 	 	 	 /   f c h _ 6   \ 
           /   ( 	 / L E X ( 1 ) 	 	 	 	 	 	 /   f c h _ A   \ 
           /   < n u m >   ( 	 / 	 	 	 	 	 /   f c h _ 6   \ 
           /   S E L F 	 / 	 	 	 	 	 /   f c h _ 6   \ 
           /   < c h a r n a m e > 	 / 	 	 	 	 	 /   f c h _ 6   \ 
           / 	 / [ c a l l   E R R O R   ( n o t _ c h a r n a m e ) ] 	 	 	 	               / \ 
 f c h _ 6 
           / 	 / 	 [ p a r t _ n e s t   =   0 ] 
 	   P U S H   ( f c h _ 7 ) [ c a l l   p u s h   ( " f c h _ 7 " ) ] 	 	 	 /   f c h _ l   \ 
 f c h _ 7 
           / 	 / 	 [ t h e _ s t r i n g   =   p a r t _ s t r   ( 1 ) ; 
 	 	 t e s t w i d t h   =   n u l w i d t h ; 
 	 	 m e d i a w i d t h   =   p a r t _ w i d t h   ( 1 ) ] 	 	               / \ 
           /   = 	 / L E X ( 1 ) 	 	 	 	 	 	 /   f c h _ 9   \ 
 f c h _ 8 
           /   ; 	 / 	 	 	 	 	             /   s t a c k _ p o p   \ 
 	 	 \ "   n o r m a l   r e t u r n   i s   w i t h   " ; "   t o k e n   c u r r e n t 
           /   , 	 / 	 	 	 	 	             /   s t a c k _ p o p   \ 
 	 	 \ "   b u t   d o n ' t   c o m p l a i n   a b o u t   a   " , "   e i t h e r . 
           / 	 / [ c a l l   E R R O R   ( n o t _ c h a r n a m e ) ]   L E X   ( 1 ) 	 	                     /   f c h _ 6   \ 
 f c h _ 9 
           /   < n e g n u m > 
 	 / 	       [ t e s t w i d t h   =   t o k e n . N v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	 	 /   f c h _ 8   \ 
           /   < n u m > 
 	 / 	       [ t e s t w i d t h   =   t o k e n . N v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	 	 /   f c h _ 8   \ 
           / 	 / [ c a l l   E R R O R   ( n o _ t e s t _ w i d t h ) ] 	 	 	 	 /   f c h _ 8   \ 
 
 f c h _ A 
           / 	 / 	 [ p a r t _ n e s t   =   0 ] 
 	   P U S H   ( f c h _ B ) [ c a l l   p u s h   ( " f c h _ B " ) ] 	 	 	 /   f c h _ l   \ 
 f c h _ B 
           /   )   = 
 	 / L E X   ( 2 ) 	 [ t h e _ s t r i n g   =   p a r t _ s t r   ( 1 ) ; 
 	 	 t e s t w i d t h   =   n u l w i d t h ] 	 	 	 /   f c h _ C   \ 
           / 	 / [ c a l l   E R R O R   ( p a r e n _ e q u a l _ e x p e c t e d ) ] 	 	 	 /   f c h _ 8   \ 
 f c h _ C 
           /   < n e g n u m > 
 	 / 	       [ m e d i a w i d t h   =   t o k e n . N v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	 	 /   f c h _ 8   \ 
           /   < n u m > 
 	 / 	       [ m e d i a w i d t h   =   t o k e n . N v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	 	 /   f c h _ 8   \ 
           / 	 / [ c a l l   E R R O R   ( m i s s i n g _ w i d t h ) ] 	 	 	 	 /   f c h _ 8   \ 
 
 f c h _ e 
           /   ; 	 / L E X ( - 1 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
 	 	 \ "   e r r o r   r e t u r n   c a n ' t   b e   w i t h   t o k e n   " ; "   c u r r e n t 
           / 	 / 	 	 	 	 	             /   s t a c k _ p o p   \ 
 f c h _ l 
           / 	 / 	 [ p a r t _ n e s t   =   p a r t _ n e s t   +   1 ; 
 	 	   p a r t _ s t r   ( p a r t _ n e s t )   =   " " ; 
 	 	   p a r t _ w i d t h   ( p a r t _ n e s t )   =   0 ] 	 	 	               / \ 
 f c h _ M 
           /   < n u m >   ( 
 	 / 	 [ p a r t _ r e p l   ( p a r t _ n e s t )   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 )   P U S H   ( f c h _ e l ) [ c a l l   p u s h   ( " f c h _ e l " ) ] 	 	 /   f c h _ l   \ 
           /   S E L F 
 	 / L E X ( 1 ) 	 [ p a r t _ s t r   ( p a r t _ n e s t )   =   p a r t _ s t r   ( p a r t _ n e s t )   | |   o 7 7 7 ] 
 	 	 	 	 	 	 	 /   f c h _ M   \ 
           /   < c h a r n a m e > 
 	 / P U S H ( f c h _ M ) [ c a l l   p u s h ( " f c h _ M " ) ] 	 	 	 /   f c h _ K   \ 
           /   < q u o t e d - s t r i n g > 
 	 / L E X ( 1 ) 	 [ l i s t _ n d x   =   1 ] 	 	 	 	 /   f c h _ L   \ 
           / 	 / 	 [ p a r t _ n e s t   =   p a r t _ n e s t   -   1 ] 	 	             /   s t a c k _ p o p   \ 
 f c h _ L 
           / 	 / L E X ( - 1 ) 	 	 	 	 	 	               / \ 
           /   < c h a r l i s t > 	 \ "   p e e l   t h e m   o f f   o n e   c h a r   a t   a   t i m e 
 	 / P U S H ( f c h _ L ) [ c a l l   p u s h ( " f c h _ L " ) ] 	 	 	 /   f c h _ K   \ 
           / 	 / L E X ( 1 ) 	 	 	 	 	 	 /   f c h _ M   \ 
 f c h _ K 
           / 	 / 	 [ s t r _ p   =   p t r   ( n e x t _ s t r _ p ,   m e d i a c h a r s . o u t _ r   ( t o k e n . N v a l u e ) ) ; 
 	 	   p a r t _ s t r   ( p a r t _ n e s t )   =   p a r t _ s t r   ( p a r t _ n e s t )   | |   b s t r . s t r ; 
 	 	   i f   t h i s _ v i e w   >   0 
 	 	   t h e n   d o ; 
 	 	         i f   ( m e d i a . r e l _ u n i t s   ( v i e w . m e d i a   ( t h i s _ v i e w ) ) 
 	 	               ^ =   f o n t . r e l _ u n i t s ) 
 	 	         t h e n   c a l l   E R R O R   ( b a d _ s t r o k e _ v a l u e ) ; 
 	 	         m w   =   m e d i a . w i d t h   ( v i e w . m e d i a   ( t h i s _ v i e w ) , 
 	 	               t o k e n . N v a l u e ) ; 
 	 	         i f   m w   =   n u l w i d t h 
 	 	         t h e n   c a l l   E R R O R _   ( n o _ w i d t h _ s p e c i f i e d , 
 	 	               v i e w . n a m e   ( t h i s _ v i e w ) , 
 	 	               s h o w _ n a m e   ( m e d i a c h a r s . n a m e   ( t o k e n . N v a l u e ) ) ) ; 
 	 	         p a r t _ w i d t h   ( p a r t _ n e s t )   =   p a r t _ w i d t h   ( p a r t _ n e s t )   +   m w ; 
 	 	   e n d ] 
 	   L E X ( 1 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
 
 f c h _ e l 
           /   ) 	 / L E X ( 1 ) 	 [ p a r t _ s t r   ( p a r t _ n e s t )   =   p a r t _ s t r   ( p a r t _ n e s t ) 
 	 	         | |   c o p y   ( p a r t _ s t r ( p a r t _ n e s t + 1 ) ,   p a r t _ r e p l   ( p a r t _ n e s t ) ) ; 
 	 	   p a r t _ w i d t h   ( p a r t _ n e s t )   =   p a r t _ w i d t h   ( p a r t _ n e s t ) 
 	 	         +   p a r t _ w i d t h   ( p a r t _ n e s t + 1 )   *   p a r t _ r e p l   ( p a r t _ n e s t ) ] 
 	 	 	 	 	 	 	 /   f c h _ M   \ 
           / 	 / [ c a l l   E R R O R   ( u n b a l _ p a r e n s ) ] 	 	   	             /   s t a c k _ p o p   \ 
  
 F o n t r e s t 
           /   < i d e n t > 
 	 / 	 [ f n t _ p   =   f i n d _ f o n t   ( " 1 " b ) ; 
 	 	   i f   f n t . p t   ^ =   n u l l   ( ) 
 	 	   t h e n   c a l l   E R R O R   ( d u p _ f o n t n a m e ) ; 
 	 	   f o n t _ p t r ,   f n t . p t   =   a r e a _ f r e e _ p ; 
 	 	   a r e a _ f r e e _ p   =   a d d r _ i n c   ( a r e a _ f r e e _ p ,   s i z e   ( f o n t ) ) ; 
 	 	   u n i _ p   =   a r e a _ f r e e _ p ; 
 	 	   a r e a _ f r e e _ p   =   a d d r _ i n c   ( a r e a _ f r e e _ p ,   s i z e   ( u n i ) ) ; 
 	 	   c a l l   l i n k   ( u n i l _ p ,   u n i _ p ) ; 
 	 	   u n i . s e q n o ,   u n i . r e f n o ,   u n i _ c t   =   u n i _ c t   +   1 ; 
 	 	   u n i t s _ p t r ,   u n i . r e f _ p   =   a r e a _ f r e e _ p ; 
 	 	   a r e a _ f r e e _ p   =   a d d r _ i n c   ( a r e a _ f r e e _ p ,   s i z e   ( u n i t s ) ) ; 
 	 	   o p u _ p   =   a r e a _ f r e e _ p ; 
 	 	   a r e a _ f r e e _ p   =   a d d r _ i n c   ( a r e a _ f r e e _ p ,   s i z e   ( o p u ) ) ; 
 	 	   c a l l   l i n k   ( o p u l _ p ,   o p u _ p ) ; 
 	 	   o p u . r e f n o ,   o p u . s e q n o   =   u n i _ c t ; 
 	 	   o p u t _ p ,   o p u . r e f _ p   =   a r e a _ f r e e _ p ; 
 	 	   f o n t . u n i t s _ r   =   r e l   ( u n i _ p ) ; 
 	 	   f o n t . o p u t _ r   =   r e l   ( o p u _ p ) ; 
 	 	   f o n t . r e l _ u n i t s   =   - 1 ; 
 	 	   f o n t . f o o t s e p   =   F o o t s e p ; 
 	 	   f o n t . m i n _ w s p   =   M i n W o r d s p ; 
 	 	   f o n t . a v g _ w s p   =   A v g W o r d s p ; 
 	 	   f o n t . m a x _ w s p   =   M a x W o r d s p ; 
 	 	   u n i t s   ( * )   =   0 ; 
 	 	   o p u t . d a t a _ c t   =   0 ; 
 	 	   d e f a u l t _ v i e w   =   1 ] 
 	   L E X ( 1 ) 	 	 	 	 	                   /   F o n t _ 1   \ 
           / 	 / [ c a l l   E R R O R   ( n o t _ v a l i d _ F o n t _ n a m e ) ]   N E X T _ S T M T 	                   /   F o n t _ 3   \ 
 
 F o n t _ 1 
           /   < i s _ v i e w n a m e > 
 	 / 	 [ d e f a u l t _ v i e w   =   t o k e n . N v a l u e ; 
 	 	   f o n t . r e l _ u n i t s 
 	 	         =   m e d i a . r e l _ u n i t s   ( v i e w . m e d i a   ( d e f a u l t _ v i e w ) ) ] 
 	   L E X ( 1 ) 	 	 	 	 	                   /   F o n t _ 2   \ 
           / 	 / [ c a l l   E R R O R   ( n o t _ v i e w n a m e ) ]   N E X T _ S T M T 	 	                   /   F o n t _ 3   \ 
 
 F o n t _ 2 
           /   ; 	 / 	 	 	 	 	                   /   F o n t _ 3   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ F o n t ) ] 	 	 	 	               / \ 
 F o n t _ 3 
           / 	 / 	 [ i f   W o r d s p a c e _ p   =   n u l l ( ) 
 	 	   t h e n   g o t o   R D _ N E X T _ R E D U C T I O N ; 
 	 	   h o l d _ P t h i s _ t o k e n   =   P t h i s _ t o k e n ; 
 	 	   P t o k e n ,   P t h i s _ t o k e n   =   W o r d s p a c e _ p ] 
 	   P U S H ( F o n t _ 4 ) [ c a l l   p u s h ( " F o n t _ 4 " ) ] 	 	             /   w o r d s p a c e   \ 
           / 	 / 	 	 	 	 	                   /   F o n t _ 5   \ 
 F o n t _ 4 
           /   ; 	 / 	 [ P t o k e n ,   P t h i s _ t o k e n   =   h o l d _ P t h i s _ t o k e n ]                   /   F o n t _ 8   \ 
           /         / [ c a l l   E R R O R   ( s y n t a x _ W o r d s p a c e ) ] 
 	 	 [ P t o k e n ,   P t h i s _ t o k e n   =   h o l d _ P t h i s _ t o k e n ]                   /   F o n t _ 5   \ 
 
 f o n t _ e r r 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ F o n t _ s e c ) ]   N E X T _ S T M T 	             /   s t a c k _ p o p   \ 
 
 F o n t _ 5 
           / 	 / P U S H   ( e n d F o n t ) [ c a l l   p u s h ( " e n d F o n t " ) ] 	 	 	               / \ 
 F o n t _ 6 
           /   < a l l _ i n p u t > 
 	 / 	 [ t h i s _ v i e w   =   d e f a u l t _ v i e w ] 
 	   P U S H   ( F o n t _ 8 ) [ c a l l   p u s h   ( " F o n t _ 8 " ) ] 	 	             /   f o n t _ c h a r   \ 
           /   a r t 
 	 / 	 [ t h i s _ v i e w   =   d e f a u l t _ v i e w ] 
 	   P U S H   ( F o n t _ 8 ) [ c a l l   p u s h   ( " F o n t _ 8 " ) ] 	 	             /   f o n t _ c h a r   \ 
           /   D e f 	 \ "   T h i s   i s   h e r e   f o r   p u r p o s e s   o f   r e f   c l o s u r e 
 	 / 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   f o o t r e f s e p a r a t o r   : 
 	 / L E X ( 2 ) 	 	 	 	 	           /   f o o t r e f s e p   \ 
           /   w o r d s p a c e   : 
 	 / L E X ( 2 )   P U S H ( F o n t _ 9 ) [ c a l l   p u s h ( " F o n t _ 9 " ) ] 	             /   w o r d s p a c e   \ 
           /   r e f   : 
 	 / L E X ( 2 ) 	 	 	 	 	 	     /   r e f   \ 
           /   F o n t 	 / 	 	 	 	             /   s t a c k _ p o p   \ 
           /   S i z e 	 / 	 	 	 	             /   s t a c k _ p o p   \ 
               /   D e v i c e 	 / 	 /   s t a c k _ p o p   \ 
               /   < n o - t o k e n > 	 / 	 /   s t a c k _ p o p   \ 
           /   	 / P U S H   ( F o n t _ 6 ) [ c a l l   p u s h   ( " F o n t _ 6 " ) ] 	 	     /   g l o b a l _ d e v i c e   \ 
 
 F o n t _ 8 
           /   ; 	 / 	 [ s e l f _ c t   =   0 ; 
 	 	   j   =   i n d e x   ( t h e _ s t r i n g ,   o 7 7 7 ) ; 
 	 	   i f   ( j   =   0 ) 
 	 	   t h e n   t h e _ s t r i n g _ r   =   r e l   ( f i n d _ s t r   ( 2 ) ) ; 
 	 	   e l s e   d o ; 
 	 	         d o   w h i l e   ( j   < =   l e n g t h ( t h e _ s t r i n g ) ) ; 
 	 	               s e l f _ c t   =   s e l f _ c t   +   1 ; 
 	 	               s e l f _ i   ( s e l f _ c t )   =   j ; 
 	 	               j   =   j   +   1 ; 
 	 	               i f   ( j   <   l e n g t h   ( t h e _ s t r i n g ) ) 
 	 	               t h e n   d o ; 
 	 	 	 i   =   i n d e x   ( s u b s t r   ( t h e _ s t r i n g ,   j ) ,   o 7 7 7 ) ; 
 	 	 	 i f   ( i   =   0 ) 
 	 	 	 t h e n   j   =   l e n g t h   ( t h e _ s t r i n g ) + 1 ; 
 	 	 	 e l s e   j   =   j   +   i   -   1 ; 
 	 	               e n d ; 
 	 	         e n d ; 
 	 	   e n d ; 
 	 	   m e d i a 1   =   " [   ] " ; 
 	 	   j j =   0 ; 
 	 	   d o   i   =   1   t o   v a l s _ c t ; 
 	 	         i i   =   v a l s   ( i ) ; 
 	 	         i f   ( s e l f _ c t   >   0 ) 
 	 	         t h e n   d o ; 
 	 	               s u b s t r   ( m e d i a 1 ,   2 ,   1 )   =   b y t e   ( i i ) ; 
 	 	               d o   j   =   1   t o   s e l f _ c t ; 
 	 	 	 s u b s t r   ( t h e _ s t r i n g ,   s e l f _ i   ( j ) ,   1 )   =   b y t e   ( i i ) ; 
 	 	               e n d ; 
 	 	               t h e _ s t r i n g _ r   =   r e l   ( f i n d _ s t r   ( 2 ) ) ; 
 	 	               c h a r i d   =   0 ; 
 	 	               d o   j j   =   1   t o   m e d i a c h a r s . c o u n t 
 	 	 	 w h i l e   ( c h a r i d   =   0 ) ; 
 	 	 	 i f   ( m e d i a c h a r s . n a m e   ( j j )   =   m e d i a 1 ) 
 	 	 	 t h e n   c h a r i d   =   j j ; 
 	 	               e n d ; 
 	 	               i f   ( c h a r i d   =   0 ) 	 \ "   a   M e d i a C h a r   m u s t   b e 
 	 	               t h e n   d o ; 	 	 \ "   d e f i n e d   w i t h   t h i s   n a m e 
 	 	 	 c a l l   E R R O R   ( i n v _ F o n t _ S E L F _ r e f ) ; 
 	 	 	 j j   =   0 ; 
 	 	               e n d ; 
 	 	               e l s e   d o ; 
 	 	 	 j j   =   m e d i a . w i d t h   ( v i e w . m e d i a   ( t h i s _ v i e w ) , 
 	 	 	       c h a r i d ) ; 
 	 	 	 i f   j j   =   n u l w i d t h 
 	 	 	 t h e n   c a l l   E R R O R _   ( n o _ w i d t h _ s p e c i f i e d , 
 	 	 	       v i e w . n a m e   ( t h i s _ v i e w ) , 
 	 	 	       s h o w _ n a m e   ( m e d i a c h a r s . n a m e   ( c h a r i d ) ) ) ; 
 	 	               e n d ; 
 	 	         e n d ; 
 	 	         u n i t s   ( i i )   =   m e d i a w i d t h   +   j j   *   s e l f _ c t ; 
 	 	         o p u t . d a t a _ c t   =   m a x   ( o p u t . d a t a _ c t ,   i i ) ; 
 	 	         o p u t . w h i c h   ( i i )   =   t h i s _ v i e w ; 
 	 	         o p u t . w h a t _ r   ( i i )   =   t h e _ s t r i n g _ r ; 
 	 	         i f   ( t e s t w i d t h   ^ =   n u l w i d t h ) 
 	 	         t h e n   i f   ( u n i t s   ( i i )   ^ =   t e s t w i d t h ) 
 	 	         t h e n   c a l l   E R R O R _   ( b a d _ w i d t h _ v a l u e , 
 	 	               l t r i m   ( c h a r   ( u n i t s   ( i i ) ) ) , 
 	 	               l t r i m   ( c h a r   ( t e s t w i d t h ) ) ) ; 
 	 	   e n d ] 
 	   L E X ( 1 ) 	 	 	 	 	                   /   F o n t _ 6   \ 
 	 	 \ "   t h e   L E X ( 1 )   n e e d s   t o   b e   a f t e r   s o   e r r o r   m s g   w i l l   d i s p l a y 
 	 	 \ "     p r o p e r   s t a t e m e n t . 
           / 	 / N E X T _ S T M T 	 	 	 	                   /   F o n t _ 6   \ 
 	 	 \ "   f o n t _ c h a r   a l r e a d y   t o l d   w h y   i n   e r r o r 
 
 
 f o o t r e f s e p 
           /   < a l l _ i n p u t >   ; 
 	 / L E X ( 2 ) 	 [ f o n t . f o o t s e p   =   I n p u t ] 	 	                   /   F o n t _ 6   \ 
 F o n t _ 9 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	                   /   F o n t _ 6   \ 
           /         / [ c a l l   E R R O R   ( s y n t a x _ w o r d s p a c e ) ]   N E X T _ S T M T   L E X ( - 1 )                   /   F o n t _ 6   \ 
 
 
 w o r d s p a c e 
           /   < n u m >   , 
 	 / 	 [ f o n t . m i n _ w s p   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	                 /   f o n t _ s 2   \ 
           / 	 / 	 	 	 	 	                 /   f o n t _ s e   \ 
 f o n t _ s 2 
           /   < n u m >   , 
 	 / 	 [ f o n t . a v g _ w s p   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	                 /   f o n t _ s 3   \ 
           / 	 / 	 	 	 	 	                 /   f o n t _ s e   \ 
 f o n t _ s 3 
           /   < n u m >   , 
 	 / 	 [ f o n t . m a x _ w s p   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	                 /   f o n t _ s 4   \ 
           / 	 / 	 	 	 	 	                 /   f o n t _ s e   \ 
 f o n t _ s 4 
           /   < c h a r n a m e >   ; 
 	 / 	 [ t h i s _ v i e w   =   d e f a u l t _ v i e w ; 
 	 	   v a l s _ c t   =   1 ; 
 	 	   v a l s   ( 1 )   =   3 2 ] 	 	 	             /   m c _ s t r i n g   \ 
 	 \ "   C o n s i s t e n c y   b e t w e e n   A v g W o r d s p   a n d   m e d i a w i d t h   w i l l   b e   c h e c k e d   l a t e r . 
 f o n t _ s e 
         /   ; 	 /   L E X ( - 1 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
 	 \ "   m a k e   s u r e   N O T   p o i n t i n g   t o   " ; "   t o k e n   w h e n   r e t u r n 
 
         / 	 / 	 	 	 	 	             /   s t a c k _ p o p   \ 
 
 e n d F o n t 
         / 	 / 	 [ t p   =   u n i l _ p   ( 2 ) ; 	 \ "   s e e   i f   u n i t s   i s   l i k e   a   p r i o r   o n e 
 	 	   d o n e   =   " 0 " b ; 
 	 	   d o   u n i _ p   =   u n i l _ p   ( 1 )   r e p e a t   ( u n i . n e x t ) 
 	 	         w h i l e   ( ( u n i _ p   ^ =   u n i l _ p   ( 2 ) )   &   ^ d o n e ) ; 
 	 	         i f   ( u n i . r e f n o   =   u n i . s e q n o ) 
 	 	         t h e n   d o ; 	 \ "   c h e c k   o n l y   " r e a l "   o n e s 
 	 	               i f   ( u n s p e c   ( u n i . r e f _ p   - >   u n i t s ) 
 	 	                     =   u n s p e c   ( t p   - >   u n i . r e f _ p   - >   u n i t s ) ) 
 	 	               t h e n   d o ; 
 	 	                     t p   - >   u n i . r e f n o   =   u n i . s e q n o ;   \ " i t s   a   d u p l i c a t e 
 	 	                     d o n e   =   " 1 " b ; 
 	 	               e n d ; 
 	 	         e n d ; 
 	 	   e n d ; 
 	 	   t p   =   o p u l _ p   ( 2 ) ; 	 \ "   s e e   i f   o p u t   i s   l i k e   a   p r i o r   o n e 
 	 	   d o n e   =   " 0 " b ; 
 	 	   d o   o p u _ p   =   o p u l _ p   ( 1 )   r e p e a t   ( o p u . n e x t ) 
 	 	         w h i l e   ( ( o p u _ p   ^ =   o p u l _ p   ( 2 ) )   &   ^ d o n e ) ; 
 	 	         i f   ( o p u . r e f n o   =   o p u . s e q n o ) 
 	 	         t h e n   d o ; 	 \ "   c h e c k   o n l y   " r e a l "   o n e s 
 	 	               i f   ( u n s p e c   ( o p u . r e f _ p   - >   o p u t ) 
 	 	 	 =   u n s p e c   ( t p   - >   o p u . r e f _ p   - >   o p u t ) ) 
 	 	               t h e n   d o ; 
 	 	                     t p   - >   o p u . r e f n o   =   o p u . s e q n o ;   \ " i t s   a   d u p l i c a t e 
 	 	                     d o n e   =   " 1 " b ; 
 	 	               e n d ; 
 	 	         e n d ; 
 	 	   e n d ] 	 	 	 	             /   s t a c k _ p o p   \ 
 
 
 \ "   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 \ "   T h i s   r o u t i n e   r e p a r s e s   t h e   s o u r c e   f o l l o w i n g   t h e   n a m e d   D e f   a n d   t h e n   c o n t i n u e s 
 \ "   f o l l o w i n g   t h e   r e f   s t a t e m e n t . 
 r e f 
           /   < i s _ D e f n a m e > 
 	 / 	 [ i   =   t o k e n . N v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	 	 /   r e f _ _   \ 
           / 	 / [ c a l l   E R R O R   ( n o t _ D e f n a m e ) ]   N E X T _ S T M T 	 	                   /   F o n t _ 6   \ 
 r e f _ _ 
           /   ; 	 / 	 	 	 	 	 	 /   r e f _ 0   \ 
           / 	 / [ c a l l   E R R O R   ( m i s s i n g _ s e m i c o l o n ) ] 	 	 	               / \ 
 r e f _ 0 
           / 	 / 	 [ h o l d _ P t h i s _ t o k e n   =   P t h i s _ t o k e n ; 
 	 	   P t o k e n ,   P t h i s _ t o k e n   =   D e f . p t   ( i ) ] 
 	   P U S H   ( r e f _ 1 ) [ c a l l   p u s h   ( " r e f _ 1 " ) ] 	 	                   /   F o n t _ 6   \ 
 	 	 \ "   d i v e r t   p a r s i n g   b a c k   t o   t h e   D e f   s o u r c e 
 r e f _ 1 
           / 	 / 	 [ P t o k e n ,   P t h i s _ t o k e n   =   h o l d _ P t h i s _ t o k e n ] 
 	   N E X T _ S T M T 	 	 	 	                   /   F o n t _ 6   \ 
 	 	 \ "   h a v e   r e a c h e d   e n d   o f   D e f , 
 	 	 \ "   c o n t i n u e   p a r s i n g   w h e r e   w e   l e f t   o f f 
 \ "   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 S i z e r e s t 
           /   < i d e n t > 
 	 / 	 [ s i z e _ l i s t . c o u n t   =   s i z e _ l i s t . c o u n t   +   1 ; 
 	 	   s i z e _ l i s t . n a m e   ( s i z e _ l i s t . c o u n t )   =   t o k e n _ v a l u e ; 
 	 	   s i z e _ l i s t . p t   ( s i z e _ l i s t . c o u n t )   =   s i z e l _ p ; 
 	 	   s i z e l . v a l _ c t   =   0 ] 
 	   L E X ( 1 ) 	 	 	 	 	                 /   p o i n t _ 1   \ 
           / 	 / [ c a l l   E R R O R   ( n o _ S i z e _ n a m e ) ]   N E X T _ S T M T 	 	             /   s t a c k _ p o p   \ 
 
 p o i n t _ 1 
           /   ,   < n u m > 
 	 / L E X ( 1 ) 	 [ s i z e l . v a l _ c t   =   s i z e l . v a l _ c t   +   1 ; 
 	 	   s i z e l . v a l   ( s i z e l . v a l _ c t )   =   s c a l e _ u n i t   ( 1 0 0 0 ) ] 
 	   L E X ( 1 ) 	 	 	 	 	                 /   p o i n t _ 1   \ 
           / 	 / 	 [ a r e a _ f r e e _ p ,   s i z e l _ p   =   a d d r _ i n c   ( s i z e l _ p ,   s i z e   ( s i z e l ) ) ] / \ 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ S i z e ) ]   N E X T _ S T M T 	 	             /   s t a c k _ p o p   \ 
 \ "   
 g l o b a l _ d e v i c e 
           /   U n i t s   :   < u n i t k e y >   ; 
 	 / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = U n i t s   ^ a " , 
 	 	 	 d t _ s w ,   t o k e n _ v a l u e ) ; 
 	 	   H s c a l e   =   h s c a l e s   ( t o k e n . N v a l u e ) ; 
 	                       V s c a l e   =   v s c a l e s   ( t o k e n . N v a l u e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	           /   s t a c k _ p o p   \ 
           /   A r t p r o c   :   < i d e n t > 
 	 / L E X ( 2 ) 	 [ A r t P r o c   =   t o k e n _ v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	                 /   A r t p r o c   \ 
           /   A t t a c h   :   < q u o t e d - s t r i n g >   ; 
 	 / L E X ( 2 ) 	 [ t h e _ s t r i n g   =   t o k e n _ v a l u e ; 
 	 	   A t d _ r   =   r e l   ( f i n d _ s t r   ( 2 ) ) ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   C l e a n u p   : 
 	 / L E X ( 2 ) 	 [ p a r t _ n e s t   =   0 ] 
 	   P U S H   ( C l e a n u p ) [ c a l l   p u s h   ( " C l e a n u p " ) ] 	 	             /   m c _ s t r i n g   \ 
           /   F o n t   : 
 	 / 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   C o m m e n t   :   < q u o t e d - s t r i n g >   ; 
 	 / L E X ( 2 ) 	   [ t h e _ s t r i n g   =   t o k e n _ v a l u e ; 
 	 	     C o m _ r   =   r e l   ( f i n d _ s t r   ( 2 ) ) ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   D e f a u l t M a r g s   :   < n u m >   ,   < n u m >   ,   < n u m >   ,   < n u m >   ; 
 	 / L E X ( 2 ) 	 [ D e f V m t   =   s c a l e _ u n i t   ( V s c a l e ) ] 
 	   L E X ( 2 ) 	 [ D e f V m h   =   s c a l e _ u n i t   ( V s c a l e ) ] 
 	   L E X ( 2 ) 	 [ D e f V m f   =   s c a l e _ u n i t   ( V s c a l e ) ] 
 	   L E X ( 2 ) 	 [ D e f V m b   =   s c a l e _ u n i t   ( V s c a l e ) ] 
           	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   D e v C l a s s   :   < q u o t e d - s t r i n g >   ; 
           	 / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = D e v C l a s s " ,   d t _ s w ) ; 
 	 	   D e v C l a s s   =   t o k e n _ v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   D e v N a m e   :   < q u o t e d - s t r i n g >   ; 
           	 / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = D e v N a m e " ,   d t _ s w ) ; 
 	 	   D e v N a m e   =   t o k e n _ v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   E n d p a g e   :   < a l l _ i n p u t >   ; 
 	 / L E X ( 2 ) 	 [ E n d P a g e   =   u n s p e c   ( I n p u t ) ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   F o o t p r o c   : 
 	 / 	 [ i f   d b _ s w 
 	 	   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = F o o t p r o c " ,   d t _ s w ) ] 
 	   L E X ( 2 ) 	 	 	 	   	               /   F o o t p r o c   \ 
           /   F o o t r e f s e p a r a t o r   : 
 	 / 	 [ i f   d b _ s w 
 	 	   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = F o o t r e f s e p a r a t o r " ,   d t _ s w ) ] 
 	   L E X ( 2 ) 	 	 	 	 	           /   F o o t r e f s e p   \ 
           /   J u s t i f y   :   < s w i t c h >   ; 
           	 / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = J u s t i f y " ,   d t _ s w ) ; 
 	 	   J u s t i f y   =   ( t o k e n . N v a l u e   >   0 ) ] 
 	   L E X ( 2 ) 	 	 	 	 	           /   s t a c k _ p o p   \ 
           /   I n t e r l e a v e   :   < s w i t c h >   ; 
           	 / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = I n t e r l e a v e " ,   d t _ s w ) ; 
 	 	   I n t e r l e a v e   =   ( t o k e n . N v a l u e   >   0 ) ] 
 	   L E X ( 2 ) 	 	 	 	 	           /   s t a c k _ p o p   \ 
           /   L e t t e r s p a c e   :   < n u m >   ; 
 	 / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = L e t t e r s p a c e " ,   d t _ s w ) ; 
 	 	   L e t t e r s p a c e   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   M a x F i l e s   :   < l i m i t >   ; 
 	 / L E X ( 2 ) 	 [ M a x F i l e s   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   M a x P a g e s   :   < l i m i t >   ; 
 	 / L E X ( 2 ) 	 [ M a x P a g e s   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   M a x P a g e L e n g t h   :   < l i m i t >   ; 
                     / L E X ( 2 ) 	 [ M a x P a g e L e n g t h   =   s c a l e _ u n i t   ( V s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   M a x P a g e W i d t h   :   < n u m >   ; 
 	 / L E X ( 2 ) 	 [ i f   d b _ s w 
 	 	   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = M a x P a g e W i d t h " ,   d t _ s w ) ; 
 	 	   M a x P a g e W i d t h   =   s c a l e _ u n i t   ( H s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	                                 /   s t a c k _ p o p   \ 
           /   M i n B o t M a r g   :   < n u m >   ; 
           	 / L E X ( 2 ) 	 [ M i n V m b   =   s c a l e _ u n i t   ( V s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   M i n L e a d   :   < n u m >   ; 
                     / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = M i n L e a d " ,   d t _ s w ) ; 
 	 	   M i n L e a d   =   s c a l e _ u n i t   ( V s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   M i n S p a c e   :   < n u m >   ; 
                     / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = M i n S p a c e " ,   d t _ s w ) ; 
 	 	   M i n S p a c e   =   s c a l e _ u n i t   ( H s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   M i n T o p M a r g   :   < n u m >   ; 
           	 / L E X ( 2 ) 	 [ M i n V m t   =   s c a l e _ u n i t   ( V s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   O u t p r o c   :   < i d e n t > 
           	 / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = O u t p r o c " ,   d t _ s w ) ; 
 	 	   O u t P r o c ,   D i s p l a y P r o c   =   t o k e n _ v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	                 /   O u t p r o c   \ 
           /   S t r o k e s   :   < n u m >   ; 
 	 / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = S t r o k e s " ,   d t _ s w ) ; 
 	 	   S t r o k e s   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   W o r d s p a c e   : 
 	 / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " = = = W o r d s p a c e " ) ; 
 	 	   W o r d s p a c e _ p   =   P t h i s _ t o k e n ]   N E X T _ S T M T                   /   s t a c k _ p o p   \ 
 	 	 \ "   j u s t   r e m e m b e r   w h e r e   t h i s   i s   f o r   l a t e r   u s e . 
           /   S i z e s   :   < s i z e n a m e >   ; 
           	 / L E X ( 2 ) 	 [ S i z e s   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   S t r e a m   :   < s w i t c h >   ; 
 	 / L E X ( 2 ) 	 [ i f   d b _ s w   t h e n   c a l l   i o a _   ( " ^ [ ^ / ^ ] = = = S t r e a m " ,   d t _ s w ) ; 
 	 	   O p e n m o d e   =   5   -   3   *   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   T a p e R e c   :   < l i m i t >   ; 
           	 / L E X ( 2 ) 	 [ T a p e R e c   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   < n o - t o k e n >   / [ c a l l   E R R O R   ( e n d _ o f _ s o u r c e ) ] 	 	                   /   R E T U R N   \ 
           /   d c l 
 	 / 	 	 	 	 	       /   o u t _ o f _ p l a c e   \ 
           /   M e d i a C h a r s 
 	 / 	 	 	 	 	       /   o u t _ o f _ p l a c e   \ 
           /   M e d i a 
 	 / 	 	 	 	 	       /   o u t _ o f _ p l a c e   \ 
           /   V i e w 
 	 / 	 	 	 	 	       /   o u t _ o f _ p l a c e   \ 
           /   D e f 
 	 / 	 	 	 	 	       /   o u t _ o f _ p l a c e   \ 
           /   F o n t 
 	 / 	 	 	 	 	       /   o u t _ o f _ p l a c e   \ 
           /   S i z e 
 	 / 	 	 	 	 	       /   o u t _ o f _ p l a c e   \ 
           /   D e v i c e 
 	 / 	 	 	 	 	       /   o u t _ o f _ p l a c e   \ 
           /     	 / [ c a l l   E R R O R   ( i n v _ s t a t e m e n t ) ]   N E X T _ S T M T 	 	             /   s t a c k _ p o p   \ 
 o u t _ o f _ p l a c e 
           / 	 / [ c a l l   E R R O R   ( s t m t _ o u t _ o f _ p l a c e ) ]   N E X T _ S T M T 	             /   s t a c k _ p o p   \ 
 
 A r t p r o c 
           /   $   < i d e n t >   ; 
 	 / L E X ( 1 ) 	 [ A r t E n t r y   =   t o k e n _ v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           / 	 / 	 [ A r t E n t r y   =   A r t P r o c ] 
 	   L E X ( 1 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
 
 F o o t r e f s e p 
           /   < a l l _ i n p u t >   ; 
 	 / 	 [ F o o t s e p   =   I n p u t ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ F o o t r e f s e p ) ]   N E X T _ S T M T 	             /   s t a c k _ p o p   \ 
 
 F o o t p r o c 
           /   < i d e n t > 
 	 / 	 [ F o o t P r o c   =   t o k e n _ v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	                   /   F o o t _ 1   \ 
           /   , 	 / L E X ( 1 ) 	 	 	 	 	                   /   F o o t _ 2   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ F o o t p r o c ) ]   N E X T _ S T M T 	             /   s t a c k _ p o p   \ 
 
 F o o t _ 1 
           /   $   < i d e n t > 
 	 / L E X ( 1 ) 	 [ F o o t E n t r y   =   t o k e n _ v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	                 /   F o o t _ 2     \ 
           / 	 / 	 [ F o o t E n t r y   =   F o o t P r o c ] 	 	 	               / \ 
 
 F o o t _ 2 
           /   ,   < f a m _ m e m > 
 	 / L E X ( 2 ) 	 [ F o o t F a m i l y   =   f o n t _ f a m ; 
 	 	   F o o t M e m b e r   =   f o n t _ m e m ] 	 	                                   / \ 
           /   ; 	 / L E X ( 1 ) 	 	 	                                                     /   s t a c k _ p o p   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ F o o t p r o c ) ]   N E X T _ S T M T 	             /   s t a c k _ p o p   \ 
 
 O u t p r o c 
           /   $   < i d e n t >   ; 
 	 / L E X ( 1 ) 	 [ O u t E n t r y   =   t o k e n _ v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	             /   s t a c k _ p o p   \ 
           /   ; 	 / 	 [ O u t E n t r y   =   O u t P r o c ] 
 	   L E X ( 1 ) 	 	 	                                                     /   s t a c k _ p o p   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ O u t p r o c ) ]   N E X T _ S T M T 	             /   s t a c k _ p o p   \ 
 
 C l e a n u p 
           /   ; 	 / L E X ( 1 ) 	 [   C l e a n _ r   =   r e l   ( f i n d _ s t r   ( 2 ) ) ] 	             /   s t a c k _ p o p   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ C l e a n u p ) ]   N E X T _ S T M T 	             /   s t a c k _ p o p   \ 
  
 o u t p u t _ 0 
           / 	 / 	 [ i i i ,   p a r e n c t ,   p a r t _ n e s t   =   0 ] 	 	 	               / \ 
 o u t p u t _ 1 
           / 	 / 	 [ p a r t _ n e s t   =   p a r t _ n e s t   +   1 ; 
 	 	   p a r t _ r e p l   ( p a r t _ n e s t )   =   i i i ; 
 	 	   p a r t _ s t r   ( p a r t _ n e s t )   =   " " ] 	 	                                   / \ 
 
 o u t p u t _ 2 
           /   < o c t a l > 
 	 / 	 [ p a r t _ s t r   ( p a r t _ n e s t )   =   p a r t _ s t r   ( p a r t _ n e s t )   | |   I n p u t ] 
 	   L E X ( 1 ) 	 	 	 	 	               /   o u t p u t _ 2   \ 
           /   < q u o t e d - s t r i n g > 
 	 / 	 [ p a r t _ s t r   ( p a r t _ n e s t )   =   p a r t _ s t r   ( p a r t _ n e s t )   | |   t o k e n _ v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	               /   o u t p u t _ 2   \ 
           /   S E L F 
 	 / 	 [ p a r t _ s t r   ( p a r t _ n e s t )   =   p a r t _ s t r   ( p a r t _ n e s t )   | |   o 7 7 7 ] 
 	   L E X ( 1 ) 	 	 	 	 	               /   o u t p u t _ 2   \ 
           /   < n u m >   ( 
 	 / 	 [ i i i   =   t o k e n . N v a l u e ; 
 	 	   p a r e n c t   =   p a r e n c t   +   1 ] 
 	   L E X ( 2 )   P U S H   ( o u t p u t _ 3 ) [ c a l l   p u s h   ( " o u t p u t _ 3 " ) ] 	               /   o u t p u t _ 1   \ 
           /   < d c l _ e d > 
 	 / 	 [ p a r t _ s t r ( p a r t _ n e s t )   =   p a r t _ s t r ( p a r t _ n e s t ) | | b s t r . s t r ] 
 	   L E X ( 1 ) 	 	 	 	 	               /   o u t p u t _ 2   \ 
           / 	 / 	 	 	 	 	             /   s t a c k _ p o p   \ 
 
 o u t p u t _ 3 
           /   ) 	 / L E X ( 1 ) 	 [ p a r t _ s t r   ( p a r t _ n e s t - 1 )   =   p a r t _ s t r   ( p a r t _ n e s t - 1 ) 
 	 	         | |   c o p y   ( p a r t _ s t r   ( p a r t _ n e s t ) ,   p a r t _ r e p l   ( p a r t _ n e s t ) ) ; 
 	 	   p a r t _ n e s t   =   p a r t _ n e s t   -   1 ; 
 	 	   p a r e n c t   =   p a r e n c t   -   1 ] 	 	               /   o u t p u t _ 2   \ 
           /   ; 	 / [ c a l l   E R R O R   ( u n b a l _ p a r e n s ) ] 	 	 	             /   s t a c k _ p o p   \ 
           / 	 / 	 	 	 	 	             /   s t a c k _ p o p   \ 
  
 D e v i c e r e s t 
           / 	 / 	 [ c o m p _ d v i d _ c t   =   c o m p _ d v i d _ c t + 1 ; 
 	 	   c o m p _ d v i d _ n e w = " 1 " b ; 
 	 	   l i k e _ t a b l e   =   - 1 ] 	 	 	 	               / \ 
 D e v i c e _ 0 
           /   < v a l i d _ D e v i c e _ n a m e > 
 	 / 	 [ i f   ( d v i d _ c t   =   0 ) 
 	 	   t h e n   d v i d _ c t   =   d v i d _ c t   +   1 ;       \ "   a d d   D e v i c e   n a m e 
 	                       d v i d _ p   =   a r e a _ f r e e _ p ; 
 	 	   a r e a _ f r e e _ p   =   a d d r   ( d v i d . d u m m y ) ; 
 	 	   c a l l   l i n k   ( d v i d l _ p ,   d v i d _ p ) ; 
 	 	   d v i d . n d x   =   c o m p _ d v i d _ c t ; 
 	 	   d v i d . r e a l   =   c o m p _ d v i d _ n e w ; 
 	 	   d v i d . r e f n a m e   =   t o k e n _ v a l u e ; 
 	 	   d v i d . d e v n a m e   =   D e v N a m e ; 
 	 	   d v i d . d v t _ n d x   =   d v t _ c t   +   1 ; 
 	 	   c o m p _ d v i d _ n e w   =   " 0 " b ] 
 	   L E X ( 1 ) 	 	 	 	 	               /   D e v i c e _ 1   \ 
 
 t a b l e _ e 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ D e v i c e ) ]   N E X T _ S T M T 	 	             /   s t a c k _ p o p   \ 
 
 D e v i c e _ 1 
           /   , 	 / L E X ( 1 ) 	 	 	 	 	               /   D e v i c e _ 0   \ 
           /   l i k e   
                     / L E X ( 1 ) 	 	 	 	 	           /   l i k e _ t a b l e   \ 
           /   ; 	 / L E X ( 1 )   P U S H   ( s t a r t D e v i c e ) [ c a l l   p u s h   ( " s t a r t D e v i c e " ) ]         /   D e v i c e _ I   \ 
           / 	 / 	 	 	 	 	                 /   t a b l e _ e   \ 
 
 l i k e _ t a b l e 
           /   < t a b l e _ n a m e >   ; 
                     / 	 [ l i k e _ t a b l e   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	         /   l i k e _ t a b l e 2   \ 
           / 	 / 	 	 	 	 	                 /   t a b l e _ e   \ 
 
 l i k e _ t a b l e 3 
           / 	 / 	 [ d o   d v i d _ p   =   d v i d l _ p   ( 1 )   r e p e a t   ( d v i d . n e x t ) 
 	 	         w h i l e   ( d v i d _ p   ^ =   n u l l   ( ) ) ; 
 	 	         i f   d v i d . d v t _ n d x   =   d v t _ c t   +   1 
 	 	         t h e n   d v i d . d v t _ n d x   =   l i k e _ t a b l e ; 
 	 	   e n d ] 	 	 	 	             /   s t a c k _ p o p   \ 
 l i k e _ t a b l e 2 
           /   D e v i c e 
 	 / 	 	 	 	 	         /   l i k e _ t a b l e 3   \ 
           /   < n o - t o k e n > 
                     / 	 	 	 	 	         /   l i k e _ t a b l e 3   \ 
           /         /   P U S H   ( c o p y _ t a b l e ) [ c a l l   p u s h   ( " c o p y _ t a b l e " ) ] 	               /   D e v i c e _ I   \ 
 
 D e v i c e _ I 
           / 	 / 	 [ d v t _ p   =   a r e a _ f r e e _ p ; 
 	 	   a r e a _ f r e e _ p   =   a d d r   ( d v t . d u m m y ) ; 
 	 	   c a l l   l i n k   ( d v t l _ p ,   d v t _ p ) ; 
 	 	   d v t . n d x ,   d v t _ c t   =   d v t _ c t   +   1 ; 
 	 	   d v t . m e d _ s e l   =   a r e a _ f r e e _ p ; 
 	 	   m e d _ s e l _ t a b . c o u n t   =   f o n t _ c o u n t ; 
 	 	   a r e a _ f r e e _ p 
 	 	         =   a d d r _ i n c   ( a r e a _ f r e e _ p ,   s i z e   ( m e d _ s e l _ t a b ) ) ; 
 	 	   m e d _ s e l _ t a b . r e f _ r   ( * )   =   " 0 " b ; 
 
 	 	   d v t . p r e n t ,   p r e n t _ p   =   a r e a _ f r e e _ p ; 
 	 	   a r e a _ f r e e _ p   =   a d d r   ( p r e n t . d u m m y ) ; 
 
 	 	   d v t . r e f ,   c o n s t . d e v p t r   =   a r e a _ f r e e _ p ; 
 	 	   d v t _ c t   =   d v t _ c t   +   1 ] 	 	             /   s t a c k _ p o p   \ 
 
 c o p y _ t a b l e 
           / 	 / 	 [ t p   =   n u l l   ( ) ; 
 	 	   d o   d v t _ p   =   d v t l _ p   ( 1 )   r e p e a t   ( d v t . n e x t ) 
 	 	         w h i l e   ( d v t _ p   ^ =   n u l l   ( )   &   t p   =   n u l l   ( ) ) ; 
 	 	         i f   d v t . n d x   =   l i k e _ t a b l e 
 	 	         t h e n   t p   =   d v t _ p ; 
 	 	   e n d ; 
 
 	 	   d v t _ p   =   t p ; 
 	 	   m e d _ s e l _ t a b   =   d v t . m e d _ s e l   - >   m e d _ s e l _ t a b ; 
 	 	   p r e n t   =   d v t . p r e n t   - >   p r e n t ; 
 	 	   c o m p _ d v t . f a m i l y _ c t   =   d v t . r e f   - >   c o m p _ d v t . f a m i l y _ c t ; 
 	 	   c o m p _ d v t   =   d v t . r e f   - >   c o m p _ d v t ] 	               /   D e v i c e _ 2   \ 
 
 s t a r t D e v i c e 
           / 	 / 	 [ p r e n t . o u t p r o c   =   O u t P r o c   | |   " $ "   | |   O u t E n t r y ; 
 	 	   p r e n t . a r t p r o c   =   A r t P r o c   | |   " $ "   | |   A r t E n t r y ; 
 	 	   p r e n t . f o o t p r o c   =   F o o t P r o c   | |   " $ "   | |   F o o t E n t r y ; 
 	 	   i n i t f a m i l y ,   i n i t m e m b e r   =   " " ; 
 	 	   f o o t f a m i l y   =   F o o t F a m i l y ; 
 	 	   f o o t m e m b e r   =   F o o t M e m b e r ; 
 	 	   h s c a l e   =   H s c a l e ; 
 	 	   v s c a l e   =   V s c a l e ; 
 	 	   c o m p _ d v t . d e v c l a s s   =   D e v C l a s s ; 
 	 	   c o m p _ d v t . m i n _ W S   =   M i n S p a c e ; 
 	 	   c o m p _ d v t . m i n _ l e a d   =   M i n L e a d ; 
 	 	   c o m p _ d v t . v m t _ m i n   =   M i n V m t ; 
 	 	   c o m p _ d v t . v m b _ m i n   =   M i n V m b ; 
 	 	   c o m p _ d v t . d e f _ v m t   =   D e f V m t ; 
 	 	   c o m p _ d v t . d e f _ v m h   =   D e f V m h ; 
 	 	   c o m p _ d v t . d e f _ v m f   =   D e f V m f ; 
 	 	   c o m p _ d v t . d e f _ v m b   =   D e f V m b ; 
 	 	   c o m p _ d v t . p d w _ m a x   =   M a x P a g e W i d t h ; 
 	 	   c o m p _ d v t . p d l _ m a x   =   M a x P a g e L e n g t h ; 
 	 	   c o m p _ d v t . u p s h i f t   =   0 ; 
 	 	   c o m p _ d v t . i n i t _ p s   =   0 ; 
 	 	   c o m p _ d v t . l e t t e r s p   =   L e t t e r s p a c e ; 
 	 	   c o m p _ d v t . m a x _ p a g e s   =   M a x P a g e s ; 
 	 	   c o m p _ d v t . m a x _ f i l e s   =   M a x F i l e s ; 
 	 	   c o m p _ d v t . i n i t _ f a m i l y   =   " " ; 
 	 	   c o m p _ d v t . i n i t _ m e m b e r   =   " " ; 
 	 	   c o m p _ d v t . a t d _ r   =   A t d _ r ; 
 	 	   c o m p _ d v t . d v c _ r   =   " " b ; 
 	 	   c o m p _ d v t . c o m m e n t _ r   =   C o m _ r ; 
 	 	   c o m p _ d v t . c l e a n u p _ r   =   C l e a n _ r ; 
 	 	   c o m p _ d v t . m e d s e l _ t a b l e _ r   =   " " b ; 
 	 	   c o m p _ d v t . f o o t _ f a m i l y   =   " " ; 
 	 	   c o m p _ d v t . f o o t _ m e m b e r   =   " " ; 
 
 	 	   c o m p _ d v t . s w s . i n t e r l e a v e   =   I n t e r l e a v e ; 
 	 	   c o m p _ d v t . s w s . j u s t i f y i n g   =   J u s t i f y ; 
 	 	   c o m p _ d v t . s w s . m b z   =   " 0 " b ; 
 	 	   c o m p _ d v t . s w s . e n d p a g e   =   E n d P a g e ; 
 	 	   c o m p _ d v t . o p e n _ m o d e   =   O p e n m o d e ; 
 	 	   c o m p _ d v t . r e c l e n g   =   T a p e R e c ; 
 	 	   c o m p _ d v t . f a m i l y _ c t   =   0 ] 	 	 	               / \ 
 
 D e v i c e _ 2 
           /   u n i t s   :   < u n i t k e y >   ; 
 	 / L E X ( 2 ) 	 [ h s c a l e   =   h s c a l e s   ( t o k e n . N v a l u e ) ; 
 	                       v s c a l e   =   v s c a l e s   ( t o k e n . N v a l u e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   a r t p r o c   :   < i d e n t > 
 	 / L E X ( 2 ) 	 [ p r e n t . a r t p r o c   =   t o k e n _ v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	                 /   a r t p r o c   \ 
           /   a t t a c h   :   < q u o t e d - s t r i n g >   ; 
 	 / L E X ( 2 ) 	 [ t h e _ s t r i n g   =   t o k e n _ v a l u e ; 
 	 	   c o m p _ d v t . a t d _ r   =   r e l   ( f i n d _ s t r   ( 2 ) ) ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   c l e a n u p   : 
 	 / L E X ( 2 )   P U S H   ( c l e a n u p ) [ c a l l   p u s h   ( " c l e a n u p " ) ] 	             /   m c _ s t r i n g   \ 
           /   c o m m e n t   :   < q u o t e d - s t r i n g >   ; 
 	 / L E X ( 2 ) 	 [ t h e _ s t r i n g   =   t o k e n _ v a l u e ; 
 	 	   c o m p _ d v t . c o m m e n t _ r   =   r e l   ( f i n d _ s t r   ( 2 ) ) ; 
 	 	   i f   l e n g t h   ( t o k e n _ v a l u e )   >   l e n g t h   ( t h e _ s t r i n g ) 
 	 	   t h e n   c a l l   E R R O R   ( c o m m e n t _ g t _ 8 0 0 0 ) ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
 
           /   d e f a u l t m a r g s   :   < n u m >   ,   < n u m >   ,   < n u m >   ,   < n u m >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . d e f _ v m t   =   s c a l e _ u n i t   ( v s c a l e ) ] 
 	   L E X ( 2 ) 	 [ c o m p _ d v t . d e f _ v m h   =   s c a l e _ u n i t   ( v s c a l e ) ] 
 	   L E X ( 2 ) 	 [ c o m p _ d v t . d e f _ v m f   =   s c a l e _ u n i t   ( v s c a l e ) ] 
 	   L E X ( 2 ) 	 [ c o m p _ d v t . d e f _ v m b   =   s c a l e _ u n i t   ( v s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   d e v c l a s s   :   < q u o t e d - s t r i n g >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . d e v c l a s s   =   t o k e n _ v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   d e v n a m e   :   < q u o t e d - s t r i n g >   ; 
 	 / L E X ( 2 ) 	 [ d o   d v i d _ p   =   d v i d l _ p   ( 1 )   r e p e a t   ( d v i d . n e x t ) 
 	 	         w h i l e   ( d v i d _ p   ^ =   n u l l   ( ) ) ; 
 	 	         i f   d v i d . d v t _ n d x   =   d v t _ c t 
 	 	         t h e n   d v i d . d e v n a m e   =   t o k e n _ v a l u e ; 
 	 	   e n d ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
 \ "           /   d v c   :   < i d e n t >   , 
 \ " 	 / L E X ( 2 ) 	 [ d v c n a m e   =   t o k e n _ v a l u e ] 
 \ " 	   L E X ( 2 ) 	 [ d v c p r o c ,   t h e _ s t r i n g   =   " " ] 	 	               /   d v c _ 1         \ 
           /   e n d p a g e   :   < a l l _ i n p u t >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . e n d p a g e   =   u n s p e c   ( I n p u t ) ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   f a m i l y   : 
 	 / 	 [ b a c h _ s w   =   " 0 " b ] 
 	   L E X ( 2 )   P U S H ( f a m i l y ) [ c a l l   p u s h ( " f a m i l y " ) ] 	           /   a d d _ f a m i l y   \ 
           /   f o o t p r o c   : 
 	 / L E X ( 2 ) 	 	 	 	 	               /   f o o t p r o c   \ 
           /   i n i t   : 
 	 / L E X ( 2 ) 	 	 	 	 	                 /   i n i t _ f 0   \ 
           /   i n t e r l e a v e   :   < s w i t c h >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . i n t e r l e a v e   =   ( t o k e n . N v a l u e   >   0 ) ]           /   D e v i c e _ 2   \ 
           /   j u s t i f y   :   < s w i t c h >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . j u s t i f y i n g   =   ( t o k e n . N v a l u e   >   0 ) ]           /   D e v i c e _ 2   \ 
           /   l e t t e r s p a c e   :   < n u m >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . l e t t e r s p   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   m a x f i l e s   :   < l i m i t >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . m a x _ f i l e s   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   m a x p a g e s   :   < l i m i t >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . m a x _ p a g e s   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   m a x p a g e l e n g t h   :   < l i m i t >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . p d l _ m a x   =   s c a l e _ u n i t   ( v s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   m a x p a g e w i d t h   :   < n u m >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . p d w _ m a x   =   s c a l e _ u n i t   ( h s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   m i n b o t m a r g   :   < n u m >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . v m b _ m i n   =   s c a l e _ u n i t   ( v s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   m i n l e a d   :   < n u m >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . m i n _ l e a d   =   s c a l e _ u n i t   ( v s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   m i n s p a c e   :   < n u m >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . m i n _ W S   =   s c a l e _ u n i t   ( h s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   m i n t o p m a r g   :   < n u m >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . v m t _ m i n   =   s c a l e _ u n i t   ( v s c a l e ) ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   o u t p r o c   :   < i d e n t > 
 	 / L E X ( 2 ) 	 [ p r e n t . o u t p r o c   =   t o k e n _ v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	                 /   o u t p r o c   \ 
           /   s t r e a m   :   < s w i t c h >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . o p e n _ m o d e   =   5   -   3   *   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   t a p e r e c   :   < l i m i t >   ; 
 	 / L E X ( 2 ) 	 [ c o m p _ d v t . r e c l e n g   =   t o k e n . N v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   b a c h e l o r   : 
 	 / 	 [ b a c h _ s w   =   " 1 " b ] 
 	   L E X ( 2 )   P U S H ( b a c h e l o r ) [ c a l l   p u s h ( " b a c h e l o r " ) ] 	           /   a d d _ f a m i l y   \ 
           /   v i e w s e l e c t   : 
 	 / L E X ( 2 ) 	 	 	 	 	           /   v i e w s e l e c t   \ 
           /   D e v i c e 
 	 / 	 	 	 	 	             /   e n d D e v i c e   \ 
           /   < n o - t o k e n > 
 	 / 	 	 	 	 	             /   e n d D e v i c e   \ 
           / 	 /   P U S H   ( D e v i c e _ 2 ) [ c a l l   p u s h   ( " D e v i c e _ 2 " ) ] 	     /   g l o b a l _ d e v i c e   \ 
 
 e n d D e v i c e 
           / 	 / 	 [ t p   =   P t h i s _ t o k e n ; 
 	 	   P t o k e n ,   P t h i s _ t o k e n   =   D e v i c e _ P t h i s _ t o k e n ; 
 
 	 	   d o n e   =   " 0 " b ; 
 	 	   d o   d v i d _ p   =   d v i d l _ p   ( 1 )   r e p e a t   ( d v i d . n e x t ) 
 	 	         w h i l e   ( ( d v i d _ p   ^ =   n u l l   ( ) )   &   ^ d o n e ) ; 
 	 	         i f   ( d v i d . d v t _ n d x   =   d v t _ c t ) 
 	 	         t h e n   i f   ( d v i d . d e v n a m e   =   " " ) 
 	 	         t h e n   d o ; 
 	 	               c a l l   E R R O R   ( n o _ d e v n a m e ) ; 
 	 	               d o n e   =   " 1 " b ; 
 	 	         e n d ; 
 	                       e n d ; 
 	 	   d v i d _ p   =   d v i d l _ p   ( 2 ) ; 
 	 	   i f   ( c o m p _ d v t . f a m i l y _ c t   =   0 ) 
 	 	   t h e n   c a l l   E R R O R   ( n o _ f o n t s _ s e l e c t e d ) ; 
 	 	   i f   ( i n i t f a m i l y   =   " " ) 
 	 	   t h e n   c a l l   E R R O R   ( n o _ i n i t _ f o n t ) ; 
 	 	   i f   ( f o o t f a m i l y   =   " " ) 
 	 	   t h e n   d o ; 
 	 	         f o o t f a m i l y   =   i n i t f a m i l y ; 
 	 	         f o o t m e m b e r   =   i n i t m e m b e r ; 
 	 	   e n d ; 
 
 	 	   v i e w s _ s e l e c t e d   =   0 ; 
 	 	   d o   i   =   1   t o   v i e w . c o u n t ; 
 	 	         i f   ( m e d _ s e l _ t a b . r e f _ r   ( i )   ^ =   " 0 " b ) 
 	 	         t h e n   v i e w s _ s e l e c t e d   =   v i e w s _ s e l e c t e d   +   1 ; 
 	 	   e n d ; 
 
 	 	   d o   i   =   1   t o   c o m p _ d v t . f a m i l y _ c t ; 
 	 	         m e m _ p   =   p t r   ( a r e a 1 _ p ,   c o m p _ d v t . m e m b e r _ r   ( i ) ) ; 
 	 	         m e m b e r _ p t r   =   m e m . r e f _ p ; 
 	 	         d o   i i   =   1   t o   m e m b e r . c o u n t ; 
 	 	               i f   i n i t f a m i l y   =   c o m p _ d v t . f a m i l y   ( i ) . n a m e 
 	 	               &   i n i t m e m b e r   =   m e m b e r . n a m e   ( i i ) 
 	 	               t h e n   d o ; 
 	 	 	 c o m p _ d v t . i n i t _ f a m   =   i ; 
 	 	 	 c o m p _ d v t . i n i t _ f a m i l y   =   i n i t f a m i l y ; 
 	 	 	 c o m p _ d v t . i n i t _ m e m   =   i i ; 
 	 	 	 c o m p _ d v t . i n i t _ m e m b e r   =   i n i t m e m b e r ; 
 	 	               e n d ; 
 	 	               i f   f o o t f a m i l y   =   c o m p _ d v t . f a m i l y   ( i ) . n a m e 
 	 	               &   f o o t m e m b e r   =   m e m b e r . n a m e   ( i i ) 
 	 	               t h e n   d o ; 
 	 	 	 c o m p _ d v t . f o o t _ f a m   =   i ; 
 	 	 	 c o m p _ d v t . f o o t _ f a m i l y   =   f o o t f a m i l y ; 
 	 	 	 c o m p _ d v t . f o o t _ m e m   =   i i ; 
 	 	 	 c o m p _ d v t . f o o t _ m e m b e r   =   f o o t m e m b e r ; 
 	 	               e n d ; 
 
 	 	               i f   v i e w s _ s e l e c t e d   <   v i e w . c o u n t 
 	 	               t h e n   d o ; 
 	 	 	 f n t _ p   =   p t r   ( a r e a 2 _ p ,   m e m b e r . f o n t _ r   ( i i ) ) ; 
 	 	 	 f o n t _ p t r   =   f n t . p t ; 
 	 	 	 u n i _ p   =   p t r   ( f n t . p t ,   f o n t . u n i t s _ r ) ; 
 	 	 	 u n i t s _ p t r   =   u n i . r e f _ p ; 
 	 	 	 o p u _ p   =   p t r   ( f n t . p t ,   f o n t . o p u t _ r ) ; 
 	 	 	 o p u t _ p   =   o p u . r e f _ p ; 
 
 	 	 	 d o   i i i   =   0   t o   o p u t . d a t a _ c t ; 
 	 	 	       j   =   o p u t . w h i c h   ( i i i ) ; 
 	 	 	       i f   ( j   >   0 ) 	 \ "   i s   t h e   c h a r   d e f i n e d ? 
 	 	 	       t h e n   d o ; 	 \ "     Y E S 
 	 	 	             i f   ( m e d _ s e l _ t a b . r e f _ r   ( j )   =   " 0 " b ) 
 	 	 	             t h e n   d o ;     	 \ "   b u t   y o u   c a n ' t   g e t   a t   i t ! 
 	 	 	                   c a l l   E R R O R _   ( n o _ v i e w s e l e c t , 
 	 	 	 	     v i e w . n a m e   ( j ) ,   d v i d . r e f n a m e ) ; 
 	 	 	                   m e d _ s e l _ t a b . r e f _ r   ( j )   =   " 0 0 0 0 0 1 " b 3 ; 
 	 	 	 	 \ "   d o n ' t   w a n t   t o   s a y   t h i s   a g a i n . 
 	 	 	                   v i e w s _ s e l e c t e d   =   v i e w s _ s e l e c t e d   +   1 ; 
 	 	 	             e n d ; 
 	 	 	       e n d ; 
 	 	 	 e n d ; 
 	 	               e n d ; 
 	 	         e n d ; 
 	 	   e n d ; 
 	 	   i f   ( c o m p _ d v t . i n i t _ f a m i l y   =   " " ) 
 	 	   t h e n   c a l l   E R R O R   ( i n i t _ f o n t _ n o t _ o n _ D e v i c e ) ; 
 	 	   i f   ( c o m p _ d v t . f o o t _ f a m i l y   =   " " ) 
 	 	   t h e n   c a l l   E R R O R   ( f o o t _ f o n t _ n o t _ o n _ D e v i c e ) ; 
 	 	   P t o k e n ,   P t h i s _ t o k e n   =   t p ; 
 	 	   a r e a _ f r e e _ p   =   a d d r _ i n c   ( a r e a _ f r e e _ p ,   s i z e   ( c o m p _ d v t ) ) ] 
 	 	 	 	 \ "   f i n i s h   a l l o c a t i o n 
 	 	 	 	 	 	             /   s t a c k _ p o p   \ 
 
 a r t p r o c 
           /   $   < i d e n t >   ; 
 	 / L E X ( 1 ) 	 [ p r e n t . a r t p r o c   =   p r e n t . a r t p r o c   | |   " $ " ; 
 	 	   p r e n t . a r t p r o c   =   p r e n t . a r t p r o c   | |   t o k e n _ v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           / 	 / L E X ( 1 ) 	 [ p r e n t . a r t p r o c   
 	 	         =   p r e n t . a r t p r o c   | |   " $ "   | |   p r e n t . a r t p r o c ]       /   D e v i c e _ 2   \ 
 
 o u t p r o c 
           /   $   < i d e n t >   ; 
 	 / L E X ( 1 ) 	 [ p r e n t . o u t p r o c   =   p r e n t . o u t p r o c   | |   " $ "   | |   t o k e n _ v a l u e ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ o u t p r o c ) ]   N E X T _ S T M T 	               /   D e v i c e _ 2   \ 
 
 c l e a n u p 
           /   ; 	 / L E X ( 1 ) 	 [ c o m p _ d v t . c l e a n u p _ r   =   r e l   ( f i n d _ s t r   ( 2 ) ) ]             /   D e v i c e _ 2   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ c l e a n u p ) ]   N E X T _ S T M T 	               /   D e v i c e _ 2   \ 
 
 a d d _ f a m i l y 
           / 	 / 	 [ n e w _ f a m i l y   =   " 1 " b ] 	 	 	 	               / \ 
 f a m i l y _ 1 
           /   < f a m _ b a c h > 
                     / 	 [ i f   n e w _ f a m i l y 
 	 	   t h e n   d o ; 
 	 	         i f   ( m e m b e r _ p t r   =   n u l l   ( ) ) 
 	 	         t h e n   m e m _ p   =   a r e a 1 _ p ; 
 	 	         e l s e   m e m _ p   =   a d d r _ i n c   ( ( m e m b e r _ p t r ) ,   s i z e   ( m e m b e r ) ) ; 
 	 	         c a l l   l i n k   ( m e m l _ p ,   m e m _ p ) ; 
 	 	         m e m . s e q n o ,   m e m . r e f n o ,   m e m _ c t   =   m e m _ c t   +   1 ; 
 	 	         m e m b e r _ p t r ,   m e m . r e f _ p   =   a d d r   ( m e m . d u m m y ) ; 
 	 	         m e m b e r . c o u n t   =   0 ; 
 	 	         n e w _ f a m i l y   =   " 0 " b ; 
 	 	   e n d ; 
 	 	   c o m p _ d v t . f a m i l y _ c t   =   c o m p _ d v t . f a m i l y _ c t   +   1 ; 
 	 	   c o m p _ d v t . m e m b e r _ r   ( c o m p _ d v t . f a m i l y _ c t )   =   r e l   ( m e m _ p ) ; 
 	 	   i f   ^ b a c h _ s w 
 	 	   t h e n   c o m p _ d v t . f a m i l y   ( c o m p _ d v t . f a m i l y _ c t ) . n a m e 
 	 	         =   t r a n s l a t e   ( t o k e n _ v a l u e ,   a z ,   A Z ) ; 
 	 	   e l s e   c o m p _ d v t . f a m i l y   ( c o m p _ d v t . f a m i l y _ c t ) . n a m e 
 	 	         =   t o k e n _ v a l u e ; 
 	 	   S c a l e _ x ,   S c a l e _ y   =   S c a l e _ s c a l e ] 
 	   L E X ( 1 ) 	 	 	 	 	               /   f a m i l y _ 2   \ 
           / 	 / [ c a l l   E R R O R   ( f a m _ b a c h _ n a m e _ e x p e c t e d ) ] 	 	             /   s t a c k _ p o p   \ 
 f a m i l y _ 2 
           /   , 	 / L E X ( 1 ) 	 	 	 	 	               /   f a m i l y _ 1   \ 
           / 	 / 	 	 	 	 	             /   s t a c k _ p o p   \ 
 f a m i l y 
           /   ;   m e m b e r 
                     / L E X ( 1 ) 	 	 	 	 	                   /   m e m b e r   \ 
 f a m i l y _ e r r 
           /         / [ c a l l   E R R O R   ( s y n t a x _ f a m i l y ) ]   N E X T _ S T M T 	 	               /   D e v i c e _ 2   \ 
 m e m b e r 
           /   m e m b e r   : 
                     / 	 [ n e w _ m e m b e r   =   m e m b e r . c o u n t + 1 ] 
 	   L E X ( 2 ) 	 	 	 	 	               /   m e m b e r _ 1   \ 
           / 	 / 	 	 	 	 	                   /   e n d m e m   \ 
 
 m e m b e r _ 1 
           /   < m e m b e r n a m e > 
                     / 	 [ m e m b e r . c o u n t   =   m e m b e r . c o u n t   +   1 ; 
 	 	   m e m b e r . f o n t _ r   ( m e m b e r . c o u n t )   =   " 0 " b ; 
 	 	   m e m b e r . s i z e _ r   ( m e m b e r . c o u n t )   =   " 0 " b ; 
 	 	   m e m b e r . n a m e   ( m e m b e r . c o u n t ) 
 	 	         =   t r a n s l a t e   ( t o k e n _ v a l u e ,   a z ,   A Z ) ] 
 	   L E X ( 1 ) 	 	 	 	 	               /   m e m b e r _ 2   \ 
           /         / [ c a l l   E R R O R   ( s y n t a x _ m e m b e r ) ]   N E X T _ S T M T 	 	               /   D e v i c e _ 2   \ 
 m e m b e r _ 2 
           /   , 	 / L E X ( 1 )   	 	 	 	 	               /   m e m b e r _ 1   \ 
           / 	 / P U S H   ( m e m b e r )   [ c a l l   p u s h   ( " m e m b e r " ) ] 	 	 	               / \ 
 m e m b e r _ 3 
           /   < f o n t _ n a m e > 
 	 / L E X ( 1 ) 	 	 	 	 	               /   m e m b e r _ 4   \ 
           / 	 / [ c a l l   E R R O R   ( n o _ f o n t n a m e ) ] 	 	 	 	               / \ 
 m e m b e r _ 4 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	               /   m e m b e r _ 6   \ 
           /         / [ c a l l   E R R O R   ( s y n t a x _ m e m b e r ) ]   N E X T _ S T M T 	 	             /   s t a c k _ p o p   \ 
 m e m b e r _ 6 
           /   S c a l e   : 
 	 / L E X ( 2 ) 	 	 	 	 	               /   m e m b e r _ 7   \ 
           / 	 / 	 	 	 	 	               /   m e m b e r _ A   \ 
 m e m b e r _ 7 
           /   < n u m > 
 	 / 	 [ S c a l e _ x ,   S c a l e _ y 
 	 	         =   c o n v e r t   ( f d 1 2 _ 8 ,   t o k e n _ v a l u e ) *   S c a l e _ s c a l e ] 
 	   L E X ( 1 ) 	 	 	 	 	               /   m e m b e r _ 8   \ 
           / 	 / 	 	 	 	 	             /   S c a l e _ e r r   \ 
 m e m b e r _ 8 
           /   ,   < n u m > 
 	 / L E X ( 1 ) 	 [ S c a l e _ y   =   c o n v e r t   ( f d 1 2 _ 8 ,   t o k e n _ v a l u e )   *   S c a l e _ s c a l e ] 
 	   L E X ( 1 ) 	 	 	 	 	               /   m e m b e r _ 9   \ 
           / 	 / 	 	 	 	 	             /   S c a l e _ e r r   \ 
 m e m b e r _ 9 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	               /   m e m b e r _ A   \ 
 S c a l e _ e r r 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ S c a l e ) ]   N E X T _ S T M T 	 	 	               / \ 
 m e m b e r _ A 
           / 	 / 	 [ t h e _ s t r i n g _ r   =   r e l   ( f i n d _ s t r   ( 2 ) ) ; 
 	 	   d o   i   =   n e w _ m e m b e r   t o   m e m b e r . c o u n t ; 
 	 	         m e m b e r . f o n t _ r   ( i )   =   r e l   ( t h e _ f o n t ) ; 
 	 	         m e m b e r . S c a l e x   ( i )   =   S c a l e _ x ; 
 	 	         m e m b e r . S c a l e y   ( i )   =   S c a l e _ y ; 
 	 	         a d d r   ( m e m b e r . s i z e _ r   ( i ) )   - >   b f b   =   S i z e s ; 
 	 	   e n d ] 	 	 	 	             /   s t a c k _ p o p   \ 
 
 i n i t _ f 0 
           /   < f a m _ m e m > 
 	 / L E X ( 1 ) 	 [ i n i t f a m i l y   =   f o n t _ f a m ; 
 	 	   i n i t m e m b e r   =   f o n t _ m e m ] 	 	                 /   i n i t _ f 2   \ 
           / 	 / [ c a l l   E R R O R   ( m i s s i n g _ f o n t ) ] N E X T _ S T M T 	 	               /   D e v i c e _ 2   \ 
 i n i t _ f 2 
           /   < n u m > 
 	 / 	 [ c o m p _ d v t . i n i t _ p s   =   s c a l e _ u n i t   ( 1 0 0 0 ) ] 
 	   L E X ( 1 ) 	 	 	 	 	                 /   i n i t _ f 3   \ 
           / 	 / [ c a l l   E R R O R   ( n o _ i n i t _ p s ) ] N E X T _ S T M T 	 	               /   D e v i c e _ 2   \ 
 i n i t _ f 3 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           / 	 / [ c a l l   E R R O R   ( m i s s i n g _ s e m i c o l o n ) ] N E X T _ S T M T 	               /   D e v i c e _ 2   \ 
 
 b a c h e l o r 
           / 	 / 	 [ n e w _ m e m b e r ,   m e m b e r . c o u n t   =   1 ; 
 	 	   m e m b e r . f o n t _ r   ( 1 )   =   " 0 " b ; 
 	 	   m e m b e r . s i z e _ r   ( 1 )   =   " 0 " b ; 
 	 	   m e m b e r . S c a l e x   ( 1 )   =   S c a l e _ x ; 
 	 	   m e m b e r . S c a l e y   ( 1 )   =   S c a l e _ y ; 
 	 	   m e m b e r . n a m e   ( 1 )   =   " " ] 
 	 P U S H   ( e n d m e m )   [ c a l l   p u s h   ( " e n d m e m " ) ] 	 	               /   m e m b e r _ 3   \ 
 e n d m e m 
           / 	 / 	 [ d o n e   =   " 0 " b ; 	 \ "   p u t   i n t o   " n o r m a l "   f o r m 
 	 	   d o   w h i l e   ( ^ d o n e ) ; 
 	 	         d o n e   =   " 1 " b ; 
 	 	         d o   i   =   1   t o   m e m b e r . c o u n t - 1 ; 
 	 	               c a l l   m e m o r d e r ; 
 	 	         e n d ; 
 	 	         i f   ^ d o n e 
 	 	         t h e n   d o ; 
 	 	               d o n e   =   " 1 " b ; 
 	 	               d o   i   =   m e m b e r . c o u n t - 1   t o   1   b y   - 1 ; 
 	 	 	 c a l l   m e m o r d e r ; 
 	 	               e n d ; 
 	 	         e n d ; 
 	 	   e n d ; 
 m e m o r d e r :   p r o c ; 
 	 i f   m e m b e r . n a m e   ( i )   >   m e m b e r . n a m e   ( i + 1 ) 
 	 t h e n   d o ; 
 	       m e m b e r _ h o l d   =   m e m b e r . e   ( i ) ; 
 	       m e m b e r . e   ( i )   =   m e m b e r . e   ( i + 1 ) ; 
 	       m e m b e r . e   ( i + 1 )   =   m e m b e r _ h o l d ; 
 	       d o n e   =   " 0 " b ; 
 	 e n d ; 
               e n d   m e m o r d e r ; 
 	 	   t p   =   m e m l _ p   ( 2 ) ; 	 \ "   s e e   i f   m e m b e r   i s   l i k e   a   p r i o r   o n e 
 	 	   d o n e   =   " 0 " b ; 
 	 	   d o   m e m _ p   =   m e m l _ p   ( 1 )   r e p e a t   ( m e m . n e x t ) 
 	 	         w h i l e   ( m e m _ p   ^ =   m e m l _ p   ( 2 ) ) ; 
 	 	         i f   ( m e m . s e q n o   =   m e m . r e f n o ) 
 	 	         t h e n   d o ; 	 \ "   c h e c k   o n l y   " r e a l "   o n e s 
 	 	               i f   ( u n s p e c   ( m e m . r e f _ p   - >   m e m ) 
 	 	                     =   u n s p e c   ( t p   - >   m e m . r e f _ p   - >   m e m ) ) 
 	 	               t h e n   d o ; 
 	 	                     t p   - >   m e m . r e f n o   =   m e m . s e q n o ;   \ " i t s   a   d u p l i c a t e 
 	 	                     d o n e   =   " 1 " b ; 
 	 	               e n d ; 
 	 	         e n d ; 
 	 	   e n d ] 	 	 	 	               /   D e v i c e _ 2   \ 
 
 \ " d v c _ 1 
 \ "           /   < i d e n t > $ < i d e n t > 
 \ " 	 / 	 [ d v c p r o c   =   t o k e n _ v a l u e ] 
 \ " 	   L E X ( 2 ) 	 [ d v c e n t r y   =   t o k e n _ v a l u e ] 
 \ " 	   L E X ( 1 ) 	 	 	 	 	               	               / \ 
 \ " 	 /   < q u o t e d - s t r i n g > 
 \ " 	 / 	 [ t h e _ s t r i n g   =   t o k e n _ v a l u e ] 
 \ " 	   L E X ( 1 ) 	 	 	 	 	               	               / \ 
 \ "           /   ; 	 / L E X ( 1 ) 	 [ t h e _ s t r i n g   =   " " ]   	 	 	               /   D e v i c e _ 2   \ 
 
 f o o t p r o c 
           /   < i d e n t > 
 	 / 	 [ p r e n t . f o o t p r o c   =   t o k e n _ v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	                   /   f o o t _ 1   \ 
           /   , 	 / L E X ( 1 ) 	 	 	 	 	                   /   f o o t _ 2   \ 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ f o o t p r o c ) ]   N E X T _ S T M T 	               /   D e v i c e _ 2   \ 
 
 f o o t _ 1 
           /   $   < i d e n t > 
 	 / L E X ( 1 ) 	 [ p r e n t . f o o t p r o c   =   p r e n t . f o o t p r o c   | |   " $ "   | |   t o k e n _ v a l u e ] 
 	   L E X ( 1 ) 	 	 	 	 	 	               / \ 
 
 f o o t _ 2 
           /   ,   < f a m _ m e m > 
 	 / L E X ( 2 ) 	 [ F o o t F a m i l y   =   f o n t _ f a m ; 
 	 	   F o o t M e m b e r   =   f o n t _ m e m ] 	 	                   /   f o o t _ 3   \ 
           / 	 / 	 	 	 	 	                   /   f o o t _ e   \ 
 f o o t _ 3 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
 f o o t _ e 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ f o o t p r o c ) ]   N E X T _ S T M T 	               /   D e v i c e _ 2   \ 
 
 v i e w s e l e c t 
           /   < i s _ v i e w n a m e > 
 	 / 	 [ d e f a u l t _ v i e w   =   t o k e n . N v a l u e ; 
 	 	   t h i s _ v i e w   =   - 1 ] 
 	   L E X ( 1 )   P U S H   ( v i e w s e l 1 ) [ c a l l   p u s h   ( " v i e w s e l 1 " ) ] 	             /   m c _ s t r i n g   \ 
 v i e w s e l e c t _ e r r 
           / 	 / [ c a l l   E R R O R   ( s y n t a x _ v i e w s e l e c t ) ]   N E X T _ S T M T 	               /   D e v i c e _ 2   \ 
 v i e w s e l 1 
           / 	 / 	 [ m e d _ s e l _ t a b . r e f _ r   ( d e f a u l t _ v i e w )   =   r e l   ( f i n d _ s t r   ( 2 ) ) ]     / \ 
           /   ; 	 / L E X ( 1 ) 	 	 	 	 	               /   D e v i c e _ 2   \ 
           /   , 	 / L E X ( 1 ) 	 	 	 	 	           /   v i e w s e l e c t   \ 
           / 	 / 	 	 	 	 	   /   v i e w s e l e c t _ e r r   \ 
 + + * / 
 % p a g e ; 
 c o m p d v : 
     p r o c ; 
 
         d c l   v e r s i o n 	       c h a r   ( 1 0 )   v a r   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 2 . 0 a " ) ; 
         d c l   c o m p d v _ s e v e r i t y _ 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
         c o m p s t a t $ c o m p c o n s t . p t r   =   a d d r   ( c o m p s t a t $ c o m p c o n s t . p t r ) ; 
         d t _ s w   =   " 0 " b ; 
 
 / *   i n i t i a l i z e   s t a t i c   o n   f i r s t   c a l l   i n   t h e   p r o c e s s   * / 
         i f   f i r s t _ t i m e 
         t h e n 
             d o ; 
                 b r e a k s ,   i g n o r e d _ b r e a k s   = 
 	       s u b s t r   ( c o l l a t e   ( ) ,   1 ,   3 3 )   | |   s u b s t r   ( c o l l a t e   ( ) ,   1 2 8 ,   1 ) ; 
                 b r e a k s   =   b r e a k s   | |   " : , ( ) $ = " ; 
                 c a l l   l e x _ s t r i n g _ $ i n i t _ l e x _ d e l i m s   ( " " " " ,   " " " " ,   " / * " ,   " * / " ,   " ; " ,   " 1 0 " b , 
 	 	 	 	 / *   s u p p r e s s   q u o t e ,   k e e p   s t a t e m e n t   * / 
 	       b r e a k s ,   i g n o r e d _ b r e a k s ,   l e x _ d e l i m s ,   l e x _ c t l _ c h a r s ) ; 
                 f i r s t _ t i m e   =   " 0 " b ; 	 	 / *   s t a t i c   i n i t   d o n e ,   r e s e t   s w i t c h   * / 
             e n d ; 
 
 / *   * * * * * * * * * * * * * * * * * * * *   P R O C E S S   C O M M A N D   L I N E * * * * * * * * * * * * * * * * * * * *   * / 
 
         c a l l   c u _ $ a r g _ c o u n t   ( n a r g s ) ; 	 / *   h o w   m a n y   g i v e n ?   * / 
 
         c o m p d v _ s e v e r i t y _   =   5 ; 	 	 / *   p r e s e t   f o r   c o m m a n d   p a r s e r   * / 
 
         i f   n a r g s   =   0 	 	 	 / *   i f   n o n e   a r e   g i v e n   . . .   * / 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( 0 ,   " c o m p d v " , 
 	       " ( V e r s .   ^ a )   P r o p e r   u s a g e   i s :   c o m p d v " 
 	       | |   "   < i n p u t _ p a t h n a m e > { . c o m p d v } ^ / ^ - [ - c h e c k   |   - c k   |   - l i s t   |   - l s ] " , 
 	       v e r s i o n ) ; 
                 r e t u r n ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   f e t c h   i n p u t   p a t h n a m e   * / 
         c a l l   c u _ $ a r g _ p t r   ( 1 ,   a r g p ,   a r g l ,   e r c d ) ; 
         i f   e r c d   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( e r c d ,   " c o m p d v " ,   " R e a d i n g   i n p u t   p a t h n a m e . " ) ; 
                 r e t u r n ; 
             e n d ; 
 
         i f   s e a r c h   ( " < > " ,   a r g )   =   0 	 	 / *   i f   a   s e a r c h   i s   n e e d e d   * / 
         t h e n 
             d o ; 	 	 	 	 / *   c h e c k   e n t r y   n a m e   l e n g t h   * / 
                 i f   l e n g t h   ( b e f o r e   ( a r g ,   " . c o m p d v " ) )   >   2 5 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m _ e r r _   ( 0 ,   " c o m p d v " ,   " I n p u t   e n t r y n a m e   " " ^ a " "   i s   t o o   l o n g " , 
 	               r t r i m   ( a r g ) ) ; 
 	     r e t u r n ; 
 	 e n d ; 
 
                 e n a m e   =   b e f o r e   ( a r g ,   " . c o m p d v " ) ; / *   s t r i p   t h e   s u f f i x   * / 
 
                 c a l l   s e a r c h _ p a t h s _ $ f i n d _ d i r   ( " c o m p o s e " , 
 	 	 	 	 / *   u s e   c o m p o s e   l i s t   * / 
 	       n u l l   ( ) ,   r t r i m   ( e n a m e )   | |   " . c o m p d v " ,   " " ,   d n a m e ,   e r c d ) ; 
                 i f   e r c d   ^ =   0 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m _ e r r _   ( e r c d ,   " c o m p d v " ,   " S e a r c h i n g   f o r   " " ^ a " " " , 
 	               r t r i m   ( e n a m e )   | |   " . c o m p d v " ) ; 
 	     r e t u r n ; 
 	 e n d ; 
             e n d ; 
 
         e l s e 
             d o ; 
                 c a l l   e x p a n d _ p a t h n a m e _ $ a d d _ s u f f i x   ( a r g ,   " c o m p d v " ,   d n a m e ,   e n a m e ,   e r c d ) ; 
                 i f   e r c d   ^ =   0 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m _ e r r _   ( e r c d ,   " c o m p d v " ,   " E x p a n d i n g   p a t h   f o r   " " ^ a " " " , 
 	               r t r i m   ( a r g ) ) ; 
 	     r e t u r n ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   t r i m   t h e   s u f f i x   * / 
                 e n a m e   =   b e f o r e   ( e n a m e ,   " . c o m p d v " ) ; 
             e n d ; 
 
         c h e c k _ o p t ,   l i s t _ o p t   =   " 0 " b ; 	 / *   r e s e t   o p t i o n   f l a g s   * / 
 
         i f   n a r g s   >   1 	 	 	 / *   a n y   c o n t r o l   a r g s ?   * / 
         t h e n 
             d o ; 
                 c a l l   c u _ $ a r g _ p t r   ( 2 ,   a r g p ,   a r g l ,   e r c d ) ; 
                 i f   e r c d   ^ =   0 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m _ e r r _   ( e r c d ,   " c o m p d v " ,   " R e a d i n g   c o n t r o l   a r g u m e n t . " ) ; 
 	     r e t u r n ; 
 	 e n d ; 
 
                 i f   a r g   =   " - c h e c k "   |   a r g   =   " - c k " 
                 t h e n   c h e c k _ o p t   =   " 1 " b ; 
 
                 e l s e   i f   a r g   =   " - l i s t "   |   a r g   =   " - l s " 
                 t h e n   l i s t _ o p t   =   " 1 " b ; 
 
                 e l s e 
 	 d o ; 
 	     c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ b a d o p t ,   " c o m p d v " ,   " " " ^ a " " " ,   a r g ) ; 
 	     r e t u r n ; 
 	 e n d ; 
             e n d ; 
 
         c a l l   h c s _ $ i n i t i a t e _ c o u n t   ( d n a m e ,   r t r i m   ( e n a m e )   | |   " . c o m p d v " ,   " " , 
                   i n p u t _ b i t c o u n t ,   0 ,   i n p u t _ p t r ,   e r c d ) ; 
         i f   i n p u t _ p t r   =   n u l l   ( ) 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( e r c d ,   " c o m p d v " ,   " I n i t i a t i n g   ^ a > ^ a . c o m p d v " , 
 	       r t r i m   ( d n a m e ) ,   r t r i m   ( e n a m e ) ) ; 
                 r e t u r n ; 
             e n d ; 
 
         o n   c o n d i t i o n   ( c l e a n u p )   c a l l   c l e a n e r ; / *   w e   n o w   n e e d   c l e a n i n g   * / 
 
         i n p u t _ c h a r c o u n t   =   d i v i d e   ( i n p u t _ b i t c o u n t ,   9 ,   2 4 ,   0 ) ; 
 
         c a l l   t r a n s l a t o r _ t e m p _ $ g e t _ s e g m e n t   ( " c o m p d v " ,   l e x _ t e m p _ p t r ,   e r c d ) ; 
         i f   e r c d   ^ =   0 	 	 	 / *   g e t   a   t e m p   s e g   f o r   l e x _ s t r i n g _   * / 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( e r c d ,   " c o m p d v " ,   " G e t t i n g   a   t r a n s l a t o r   t e m p   s e g . " ) ; 
                 c a l l   c l e a n e r ; 
                 r e t u r n ; 
             e n d ; 
 
         c a l l   g e t _ t e m p _ s e g m e n t s _   ( " c o m p d v " ,   t e m p _ p t r s ,   e r c d ) ; 
         i f   e r c d   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( e r c d ,   " c o m p d v " ,   " G e t t i n g   t e m p   s e g m e n t s " ) ; 
                 c a l l   c l e a n e r ; 
                 r e t u r n ; 
             e n d ; 
 
 / *   * * * * * * * * * * * * * * * * * * * *   I N I T I A L I Z E   F O R   E X E C U T I O N   * * * * * * * * * * * * * * * * * * * *   * / 
 
         c a l l   i o a _   ( " C O M P D V   ^ a - ^ d " ,   v e r s i o n ,   c o m p _ d v i d _ v e r s i o n ) ; 
 
         c o m p d v _ s e v e r i t y _   =   0 ; 	 	 / *   c l e a r   f o r   e x e c u t i o n   * / 
         d c l _ l _ p   ( * )   =   n u l l   ( ) ; 
         n e x t _ s t r _ p   =   p t r   ( s t r i n g _ a r e a _ p ,   1 ) ; / *   n e x t   s t r i n g   d e f i n i t i o n   * / 
         s i z e _ l i s t _ p   =   n u l l   ( ) ; 
 
         a r e a _ f r e e _ p   =   a r e a 2 _ p ; 	 	 / *   n e x t   s y m b o l   d e c l a r a t i o n 	               * / 
         m e d i a c h a r s _ p   =   n u l l   ( ) ; 	 	 / *   g o o d   h o u s e k e e p i n g 	               * / 
         m e d i a _ p   =   n u l l   ( ) ; 
         v i e w _ p   =   n u l l   ( ) ; 
         D e f _ p   =   n u l l   ( ) ; 
 
         d v i d _ c t   =   0 ; 
         d v i d l _ p   ( * )   =   n u l l   ( ) ; 
         d v t _ c t   =   0 ; 
         d v t l _ p   ( * )   =   n u l l   ( ) ; 
 
         f o n t _ c o u n t   =   0 ; 
         m e m b e r _ p t r   =   n u l l   ( ) ; 
         f n t l _ p   ( * )   =   n u l l   ( ) ; 
         m e m l _ p   ( * )   =   n u l l   ( ) ; 
         u n i l _ p   ( * )   =   n u l l   ( ) ; 
         o p u l _ p   ( * )   =   n u l l   ( ) ; 
 
         t h e _ s t r i n g   =   " " ; 
         i f   r e l   ( f i n d _ s t r   ( 1 ) ) 
         t h e n   ; 	 	 	 / *   p u t   n u l l   s t r i n g   a s   f i r s t 	               * / 
         i f   r e l   ( f i n d _ s t r   ( 2 ) ) 
         t h e n   ; 	 	 	 / *       s t r i n g   t a b l e   e n t r i e s 	               * / 
 
         A r t P r o c ,   F o o t P r o c ,   O u t P r o c ,   D i s p l a y P r o c ,   O u t E n t r y   = 
                   r t r i m   ( e n a m e )   | |   " _ w r i t e r _ " ; 
         F o o t F a m i l y ,   F o o t M e m b e r   =   " " ; 
         C o m _ r ,   C l e a n _ r   =   " 0 " b ; 
         V s c a l e   =   v s c a l e s   ( 6 ) ; 	 	 / *   d e f a u l t   t o   p o i n t s 	               * / 
         H s c a l e   =   h s c a l e s   ( 6 ) ; 
 
         i f   i n p u t _ c h a r c o u n t   =   0 
         t h e n 
             d o ; 
                 c o d e   =   e r r o r _ t a b l e _ $ z e r o _ l e n g t h _ s e g ; 
                 g o t o   e m p t y _ s e g ; 
             e n d ; 
 
         c a l l   l e x _ s t r i n g _ $ l e x   ( i n p u t _ p t r ,   i n p u t _ c h a r c o u n t ,   0 ,   l e x _ t e m p _ p t r ,   " 1 0 0 0 " b , 
                   " " " " ,   " " " " ,   " / * " ,   " * / " ,   " ; " ,   b r e a k s ,   i g n o r e d _ b r e a k s ,   l e x _ d e l i m s , 
                   l e x _ c t l _ c h a r s ,   n u l l   ( ) ,   f i r s t _ t o k e n _ p ,   c o d e ) ; 
         i f   c o d e   ^ =   0 
         t h e n 
             d o ; 
 e m p t y _ s e g : 
                 i f   c o d e   =   e r r o r _ t a b l e _ $ z e r o _ l e n g t h _ s e g 
                 t h e n   c a l l   c o m _ e r r _   ( 0 ,   " c o m p d v " , 
 	                 " S o u r c e   c o n t a i n s   n o   s t a t e m e n t s .   ^ a > ^ a . c o m p d v . " ,   d n a m e ,   e n a m e ) 
 	                 ; 
                 e l s e   c a l l   c o m _ e r r _   ( c o d e ,   " c o m p d v " , 
 	                 " ^ a   d o e s   n o t   e n d   w i t h   a   s t a t e m e n t   d e l i m i t e r . " , 
 	                 p a t h n a m e _   ( d n a m e ,   e n a m e ) ) ; 
                 c a l l   c l e a n e r ; 
                 r e t u r n ; 
             e n d ; 
 
         P t o k e n ,   P t h i s _ t o k e n   =   f i r s t _ t o k e n _ p ; 
  
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   G O   * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
         c a l l   S E M A N T I C _ A N A L Y S I S ; 
         c o m p d v _ s e v e r i t y _   =   M E R R O R _ S E V E R I T Y ; 
 
         i f   M E R R O R _ S E V E R I T Y   <   3 
         t h e n 
             d o ; 
                 d v i d _ p   =   d v i d l _ p   ( 1 ) ; 
                 e n a m e   =   r t r i m   ( d v i d . r e f n a m e )   | |   " . c o m p _ d s m " ; 
                 c a l l   i o x _ $ a t t a c h _ n a m e   ( " c o m p _ g e n _ " ,   A L M , 
 	       " v f i l e _   "   | |   r t r i m   ( e n a m e )   | |   " . a l m " ,   n u l l   ( ) ,   c o d e ) ; 
                 c a l l   i o x _ $ o p e n   ( A L M ,   2 ,   " 0 " b ,   c o d e ) ; 
                 c a l l   o u t p u t t e r ; 
                 c a l l   i o x _ $ c l o s e   ( A L M ,   c o d e ) ; 
                 c a l l   i o x _ $ d e t a c h _ i o c b   ( A L M ,   c o d e ) ; 
 
                 i f   ^ c h e c k _ o p t 
                 t h e n 
 	 d o ; 
 	     i f   l i s t _ o p t 
 	     t h e n   c a l l   a l m   ( e n a m e ,   " - l i s t " ) ; 
 	     e l s e   c a l l   a l m   ( e n a m e ) ; 
 
 	     d o   d v i d _ p   =   d v i d l _ p   ( 1 )   r e p e a t   ( d v i d . n e x t ) 
 	               w h i l e   ( d v i d _ p   ^ =   n u l l   ( ) ) ; 
 	         c a l l   h c s _ $ c h n a m e _ f i l e   ( g e t _ w d i r _   ( ) ,   e n a m e ,   " " , 
 	                   r t r i m   ( d v i d . r e f n a m e )   | |   " . c o m p _ d s m " ,   c o d e ) ; 
 	         i f   ( c o d e   =   e r r o r _ t a b l e _ $ s e g n a m e d u p ) 
 	         t h e n   c o d e   =   0 ; 
 	         i f   c o d e   ^ =   0 
 	         t h e n   c a l l   c o m _ e r r _   ( c o d e ,   " c o m p d v " , 
 	 	         " T r y i n g   t o   a d d   n a m e   ^ a . c o m p _ d s m   t o   ^ a > ^ a " , 
 	 	         d v i d . r e f n a m e ,   g e t _ w d i r _   ( ) ,   e n a m e ) ; 
 	     e n d ; 
 	 e n d ; 
             e n d ; 
 
         c a l l   c l e a n e r ; 
         r e t u r n ; 
  
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + +   A _ D E B U G   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T h i s   r o u t i n e   h e l p s   i n   d e b u g g i n g .   T o   u s e   i t   a   c h a n g e   m u s t   b e   m a d e   t o   t h e       * / 
 / *   o u t p u t   o f   r d c   b e f o r e   c o m p i l a t i o n .   A t   t h e   l a b e l   R D _ M A T C H   t h i s   m u s t   b e   p u t :   * / 
 / *             i f   d b _ s w   t h e n   c a l l   a _ d e b u g ; 	 	 	 	               * / 
 
 a _ d e b u g : 
     p r o c ; 
         c a l l   i o a _ $ n n l   ( "   " " ^ a " " " ,   t o k e n _ v a l u e ) ; 
         i f   ( t o k e n _ v a l u e   =   " , " )   |   ( t o k e n _ v a l u e   =   " ; " ) 
         t h e n   c a l l   i o a _ $ n n l   ( " ^ / " ) ; 
     e n d   a _ d e b u g ; 
 
 / * * * *   + + + [ F u n c t i o n ] + + + + + + + + + + + + + + +   A D D R _ I N C   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   t h i s   i s   a n   a d d r e l   f u n c t i o n   w h i c h   i n c r e m e n t s   b y   d o u b l e   w o r d s 	               * / 
 a d d r _ i n c : 
     p r o c   ( a _ p t r ,   a n _ i n c )   r e t u r n s   ( p t r ) ; 
 
         d c l   a _ p t r 	       p t r , 
                 a n _ i n c 	       f i x e d   b i n   ( 2 4 ) ; 
 
         r e t u r n   ( a d d r e l   ( a _ p t r ,   d i v i d e   ( a n _ i n c   +   1 ,   2 ,   1 7 ,   0 )   *   2 ) ) ; 
     e n d   a d d r _ i n c ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + +   C H A R L I S T   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t s   f o r   t h e   c h a r s   o f   a   q u o t e d   s t r i n g   b e i n g   d e f i n e d   c h a r n a m e s .   E a c h             * / 
 / *     e n t r y   p r o c e s s e s   t h e   n e x t   c h a r   i n   t h e   l i s t . 	 	 	               * / 
 / *   U S E S : 	 t o k e n _ v a l u e   -   c u r r e n t   t o k e n 	 	 	 	               * / 
 / * 	 l i s t _ n d x   -   c h a r a c t e r   t o   p r o c e s s   t h i s   t i m e 	 	               * / 
 / *   S E T S : 	 t o k e n . N v a l u e   -   i n d e x   o f   f o u n d   c h a r n a m e 	 	 	               * / 
 
 c h a r l i s t : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d c l   i 	 	       f i x e d   b i n ; 
 
         i f   l i s t _ n d x   >   l e n g t h   ( t o k e n _ v a l u e ) 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         m e d i a 2   =   " [ "   | |   s u b s t r   ( t o k e n _ v a l u e ,   l i s t _ n d x ,   1 )   | |   " ] " ; 
 
         d o   i   =   1   t o   m e d i a c h a r s . c o u n t ; 	 / *   l o o k   t h r u   t h e   m e d i a c h a r s   l i s t           * / 
             i f   ( m e d i a c h a r s . n a m e   ( i )   =   m e d i a 2 ) 
             t h e n 
                 d o ; 
 	 t o k e n . N v a l u e   =   i ; 
 	 i f   d t _ s w 
 	 t h e n   c a l l   i o a _ $ n n l   ( " < c h a r l i s t - ^ i > " ,   l i s t _ n d x ) ; 
 	 l i s t _ n d x   =   l i s t _ n d x   +   1 ; 
 	 r e t u r n   ( " 1 " b ) ; 
                 e n d ; 
         e n d ; 
         c a l l   E R R O R _   ( n o t _ c h a r n a m e ,   s h o w _ n a m e   ( m e d i a 2 ) ,   " " ) ; 
         r e t u r n   ( " 0 " b ) ; 
 
     e n d   c h a r l i s t ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + +   C H A R N A M E   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t s   f o r   t h e   t o k e n   b e i n g   a   d e f i n e d   c h a r n a m e . 	 	 	               * / 
 / *   U S E S : 	 t o k e n _ v a l u e   -   c u r r e n t   t o k e n 	 	 	 	               * / 
 / *   S E T S : 	 t o k e n . N v a l u e   -   i n d e x   o f   f o u n d   c h a r n a m e 	 	 	               * / 
 
 c h a r n a m e : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d c l   i 	 	       f i x e d   b i n ; 
 
         i f   i n p u t _   ( ) 	 	 	 / *   ( s e t s   I n p u t   i f   t r u e ) 	               * / 
         t h e n   m e d i a 2   =   " [ "   | |   I n p u t   | |   " ] " ; 
         e l s e   i f   i d e n t _   ( ) 
         t h e n   m e d i a 2   =   t o k e n _ v a l u e ; 
         e l s e   r e t u r n   ( " 0 " b ) ; 
         d o   i   =   1   t o   m e d i a c h a r s . c o u n t ; 	 / *   l o o k   t h r u   t h e   m e d i a c h a r s   l i s t           * / 
             i f   ( m e d i a c h a r s . n a m e   ( i )   =   m e d i a 2 ) 
             t h e n 
                 d o ; 
 	 t o k e n . N v a l u e   =   i ; 
 	 i f   d t _ s w 
 	 t h e n   c a l l   i o a _ $ n n l   ( " < c h a r n a m e > " ) ; 
 	 r e t u r n   ( " 1 " b ) ; 
                 e n d ; 
         e n d ; 
         r e t u r n   ( " 0 " b ) ; 
 
     e n d   c h a r n a m e ; 
 
 / * * * *   + + + [ P r o c e d u r e ] + + + + + + + + + + + + + +   C L E A N E R   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   D o e s   a l l   t h e   n e e d e d   s t u f f   f o r   c o n d i t i o n ( c l e a n u p ) .   H o w e v e r ,   d o e s n ' t   r e p o r t   * / 
 / *     a n y   e r r o r s   s i n c e   w e   m a y   b e   i n   t r o u b l e . 	 	 	               * / 
 
 c l e a n e r : 
     p r o c ; 
 
         i f   d b _ s w 
         t h e n   c a l l   i o a _   ( " = = = c l e a n e r " ) ; 
 
         c a l l   h c s _ $ t e r m i n a t e _ n o n a m e   ( i n p u t _ p t r ,   c o d e ) ; 
 
         i f   l e x _ t e m p _ p t r   ^ =   n u l l   ( ) 
         t h e n   c a l l   t r a n s l a t o r _ t e m p _ $ r e l e a s e _ a l l _ s e g m e n t s   ( l e x _ t e m p _ p t r ,   c o d e ) ; 
 
         i f   t e m p _ p t r s   ( 1 )   ^ =   n u l l   ( ) 
         t h e n   c a l l   r e l e a s e _ t e m p _ s e g m e n t s _   ( " c o m p d v " ,   t e m p _ p t r s ,   c o d e ) ; 
 
         i f   A L M   ^ =   n u l l   ( ) 
         t h e n 
             d o ; 
                 c a l l   i o x _ $ c l o s e   ( A L M ,   c o d e ) ; 
                 c a l l   i o x _ $ d e t a c h _ i o c b   ( A L M ,   c o d e ) ; 
                 A L M   =   n u l l   ( ) ; 
             e n d ; 
 
         i f   ^ c h e c k _ o p t 
         t h e n   c a l l   d e l e t e _ $ p a t h   ( g e t _ w d i r _   ( ) ,   r t r i m   ( e n a m e )   | |   " . a l m " ,   " 1 0 0 1 0 0 " b , 
 	         " c o m p d v " ,   c o d e ) ; 
 
     e n d   c l e a n e r ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + + +   D C L _ E D   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
 d c l _ e d : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d o   d c l _ p   =   d c l _ l _ p   ( 1 )   r e p e a t   ( d c l _ . n e x t )   w h i l e   ( d c l _ p   ^ =   n u l l   ( ) ) ; 
             i f   ( d c l _ . d c l _ n a m e   =   t o k e n _ v a l u e ) 
             t h e n 
                 d o ; 
 	 s t r _ p   =   a d d r   ( d c l _ . l e n g ) ; 
 	 i f   d t _ s w 
 	 t h e n   c a l l   i o a _ $ n n l   ( " < d c l _ e d > " ) ; 
 	 r e t u r n   ( " 1 " b ) ; 
                 e n d ; 
         e n d ; 
         r e t u r n   ( " 0 " b ) ; 
 
     e n d   d c l _ e d ; 
 
 / * * * *   + + + [ P r o c e d u r e ] + + + + + + + + + + + + + + +   E R R O R _   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T h i s   r o u t i n e   p r i n t s   e r r o r   m e s s a g e s   w h i c h   n e e d   " n o n - s t a n d a r d "   i n s e r t i o n s .     * / 
 
 E R R O R _ : 
     p r o c   ( N e r r o r ,   A r g 1 ,   A r g 2 ) ; 
 
         d c l   N e r r o r 	       f i x e d   b i n , 
                 A r g 1 	       c h a r   ( * ) , 	 / *   T h e   n e e d   i s   c u r r e n t l y   f o r   2               * / 
                 A r g 2 	       c h a r   ( * ) ; 	 / *   a r g u m e n t s ,   ( m a y   n e e d   e x p a n s i o n ) .     * / 
 
         d c l   P s t m t 	       p t r , 
                 1   e r r i n g _ t o k e n   a l i g n e d   b a s e d   ( P e r r i n g _ t o k e n )   l i k e   t o k e n , 
                 P e r r i n g _ t o k e n     p t r , 
                 e r r i n g _ t o k e n _ v a l u e 
 	 	       c h a r   ( e r r i n g _ t o k e n . L v a l u e )   b a s e d   ( e r r i n g _ t o k e n . P v a l u e ) ; 
         d c l   l e x _ e r r o r _ 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
 
         P e r r i n g _ t o k e n   =   P t h i s _ t o k e n ; 
 
         i f   e r r o r _ c o n t r o l _ t a b l e . S o u t p u t _ s t m t   ( N e r r o r ) 
         t h e n   P s t m t   =   e r r i n g _ t o k e n . P s t m t ; 	 / *   a d d r   s t a t e m e n t   d e s c r i p t o r .         * / 
         e l s e   P s t m t   =   n u l l   ( ) ; 
 
         c a l l   l e x _ e r r o r _   ( N e r r o r ,   S E R R O R _ P R I N T E D   ( N e r r o r ) , 
                   ( e r r o r _ c o n t r o l _ t a b l e . s e v e r i t y   ( N e r r o r ) ) ,   M E R R O R _ S E V E R I T Y ,   P s t m t , 
                   n u l l   ( ) ,   S E R R O R _ C O N T R O L ,   ( e r r o r _ c o n t r o l _ t a b l e . m e s s a g e   ( N e r r o r ) ) , 
                   ( e r r o r _ c o n t r o l _ t a b l e . b r i e f _ m e s s a g e   ( N e r r o r ) ) ,   A r g 1 ,   A r g 2 ) ; 
 
         c o m p d v _ s e v e r i t y _   = 
                   m a x   ( c o m p d v _ s e v e r i t y _ ,   e r r o r _ c o n t r o l _ t a b l e . s e v e r i t y   ( N e r r o r ) ) ; 
     e n d   E R R O R _ ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + +   F A M _ M E M   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
 f a m _ m e m : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         i f   t o k e n . q u o t e d _ s t r i n g 	 	 / *   q u o t e d   s t r i n g ? 	 	               * / 
                   |   t o k e n _ v a l u e   =   " S E L F " 	 / *   t h e   r e s e r v e d   w o r d ? 	               * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 	 	 / *   a n y   o f   t h e s e ,   r e t u r n   f a l s e 	               * / 
 	 	 	 	 / *   e x t r a c t   t h e   f i r s t   n a m e   * / 
         f o n t _ f a m   =   b e f o r e   ( t o k e n _ v a l u e ,   " / " ) ; 
         i f   f o n t _ f a m   =   " " 	 	 / *   n o   f a m i l y   g i v e n   * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 	 	 / * * / 
 	 	 	 	 / *   e x t r a c t   p o s s i b l e   s e c o n d   n a m e   * / 
         f o n t _ m e m   =   a f t e r   ( t o k e n _ v a l u e ,   " / " ) ; / *   i n v a l i d   n a m e s ?   * / 
         i f   ( v e r i f y   ( f o n t _ f a m ,   a z _ A Z 0 9 )   ^ =   0 )   |   ( v e r i f y   ( f o n t _ m e m ,   a z _ A Z 0 9 )   ^ =   0 ) 
                   |   ( s e a r c h   ( f o n t _ f a m ,   " 0 1 2 3 4 5 6 7 8 9 _ " )   =   1 ) 
                   |   ( s e a r c h   ( f o n t _ m e m ,   " 0 1 2 3 4 5 6 7 8 9 _ " )   ^ =   0 ) 
         t h e n   r e t u r n   ( " 0 " b ) ; 
 
         i f   ( i n d e x   ( t o k e n _ v a l u e ,   " / " )   ^ =   0 ) 
         t h e n 
             d o ; 
                 f o n t _ m e m   =   " / "   | |   r t r i m   ( f o n t _ m e m ) ; 
                 f o n t _ f a m   =   t r a n s l a t e   ( f o n t _ f a m ,   a z ,   A Z ) ; 
                 f o n t _ m e m   =   t r a n s l a t e   ( f o n t _ m e m ,   a z ,   A Z ) ; 
             e n d ; 
 
         i f   d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " < f a m _ m e m > " ) ; 
 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   f a m _ m e m ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + +   F A M _ B A C H   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
 f a m _ b a c h : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d c l   i 	 	       f i x e d   b i n ; 
         d c l   n a m e 	       c h a r   ( 3 2 ) ; 
 
         i f   t o k e n . q u o t e d _ s t r i n g 	 	 / *   q u o t e d   s t r i n g ? 	 	               * / 
                   |   t o k e n _ v a l u e   =   " S E L F " 	 / *   t h e   r e s e r v e d   w o r d ? 	               * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 	 	 / *   a n y   o f   t h e s e ,   r e t u r n   f a l s e 	               * / 
 	 	 	 	 / *   i n v a l i d   n a m e s ?   * / 
         i f   ( v e r i f y   ( t o k e n _ v a l u e ,   a z _ A Z 0 9 )   ^ =   0 ) 
                   |   ( s e a r c h   ( t o k e n _ v a l u e ,   " 0 1 2 3 4 5 6 7 8 9 _ " )   =   1 ) 
         t h e n   r e t u r n   ( " 0 " b ) ; 
 
         i f   ^ b a c h _ s w 
         t h e n   n a m e   =   t r a n s l a t e   ( t o k e n _ v a l u e ,   a z ,   A Z ) ; 
         e l s e   n a m e   =   t o k e n _ v a l u e ; 
 
         d o   i   =   1   t o   c o m p _ d v t . f a m i l y _ c t ; 
             i f   n a m e   =   c o m p _ d v t . f a m i l y   ( i ) . n a m e 
             t h e n 
                 d o ; 
 	 c a l l   E R R O R   ( d u p l i c a t e _ f o n t _ n a m e ) ; 
 	 r e t u r n   ( " 0 " b ) ; 
                 e n d ; 
         e n d ; 
 
         i f   d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " < f a m _ b a c h > " ) ; 
 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   f a m _ b a c h ; 
 
 / * * * *   + + + [ F u n c t i o n ] + + + + + + + + + + + + + +   F I N D _ F O N T   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
 f i n d _ f o n t : 
     p r o c   ( c r e a t e )   r e t u r n s   ( p t r ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   c r e a t e 	       b i t   ( 1 ) ; 	 / *   1   =   f o n t   i s   t o   b e   c r e a t e d   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   t p 	       p t r ; 
         d c l   f n a m e 	       c h a r   ( 3 2 ) ; 
 
         i f   d b _ s w 
         t h e n   c a l l   i o a _   ( " = = = f i n d _ f o n t " ) ; 
 
         f n a m e   =   t o k e n _ v a l u e ; 
         i f   t o k e n _ v a l u e   =   " S E L F " 	 	 / *   c a n ' t   u s e   " S E L F "   a s   a   f o n t   n a m e   * / 
                   |   t o k e n . q u o t e d _ s t r i n g 	 / *   c a n ' t   b e   a   l i t e r a l   * / 
                   |   o c t a l _   ( ) 	 	 / *   o r   a n   o c t a l   v a l u e   * / 
                   |   n u m   ( ) 	 	 	 / *   o r   a   n u m e r i c   * / 
         t h e n 
             d o ; 
                 i f   c r e a t e 
                 t h e n   g o t o   b a d _ n e w s ; 
                 r e t u r n   ( n u l l   ( ) ) ; 
             e n d ; 	 	 	 / *   g o   t h r u   a l l   d e f i n e d   f o n t s 	               * / 
         d o   t p   =   f n t l _ p   ( 1 )   r e p e a t   ( t p   - >   f n t . n e x t )   w h i l e   ( t p   ^ =   n u l l   ( ) ) ; 
             i f   t p   - >   f n t . n a m e   =   t o k e n _ v a l u e 	 / *   i s   t h i s   t h e   o n e   w e   w a n t ? 	               * / 
             t h e n   r e t u r n   ( t p ) ; 	 	 / *     Y E S ,   r e t u r n   i t s   a d d r 	               * / 
         e n d ; 
 
         i f   ^ c r e a t e 	 	 	 / *   n o t   f o u n d ;   i f   n o t   c r e a t i n g 	               * / 
         t h e n   r e t u r n   ( n u l l ) ; 	 	 / *   r e t u r n   a   n u l l   v a l u e 	               * / 
 
         i f   ^ i d e n t _   ( ) 	 	 	 / *   b u t   m u s t   b e   a   l e g a l   n a m e 	               * / 
         t h e n 
             d o ; 
 b a d _ n e w s : 
                 c a l l   E R R O R   ( n o t _ v a l i d _ F o n t _ n a m e ) ; 
                 f n a m e   =   " " ; 	 	 	 / *   s u p p l y   s o m e t h i n g 	 	               * / 
             e n d ; 
 
         i f   ( f o n t _ c o u n t   >   0 ) 
         t h e n   a r e a _ f r e e _ p   =   a d d r _ i n c   ( o p u t _ p ,   s i z e   ( o p u t ) ) ; 
         t p   =   a r e a _ f r e e _ p ; 
         a r e a _ f r e e _ p   =   a d d r   ( t p   - >   f n t . d u m m y ) ; 
         f o n t _ c o u n t   =   f o n t _ c o u n t   +   1 ; 	 / *   r e c o r d   n e w   f o n t   i n f o   * / 
         c a l l   l i n k   ( f n t l _ p ,   t p ) ; 
         t p   - >   f n t . n a m e   =   f n a m e ; 	 	 / *   f i l l   i n   t h e   i n t e r n a l   f o n t   n a m e         * / 
         t p   - >   f n t . r e f n o   =   f o n t _ c o u n t ; 	 / *     a n d   t h e   r e f e r e n c e   # 	               * / 
         t p   - >   f n t . n o d e   =   P t o k e n ; 	 	 / *   k e e p   s t a t e m e n t   p t r   f o r   e r r o r   m s g s   * / 
         t p   - >   f n t . p t   =   n u l l   ( ) ; 	 	 / *   n o   t a b l e   s t a r t e d   y e t 	               * / 
 
         r e t u r n   ( t p ) ; 	 	 	 / *   r e t u r n   t h e   n e w   a d d r 	               * / 
 
     e n d   f i n d _ f o n t ; 
 
 / * * * *   + + + [ F u n c t i o n ] + + + + + + + + + + + + + + +   F I N D _ S T R   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   F i n d s   t h e   l o c a t i o n   o f   a   s t r i n g   i n   a   s t r i n g   t a b l e .   I f   t h e   s t r i n g   i s   n o t         * / 
 / *   i n   t h e   t a b l e ,   t h e n   i t   i s   e n t e r e d . 	 	 	 	               * / 
 
 f i n d _ s t r : 
     p r o c   ( w h i c h )   r e t u r n s   ( p t r ) ; 
 
         d c l   w h i c h 	       f i x e d   b i n ; 	 / *   1 -   t e m p o r a r y   s t r i n g   a r e a 	               * / 
 	 	 	 	 / *   2 -   D S M   s t r i n g   a r e a 	               * / 
 
         d c l   i 	 	       f i x e d   b i n ; 
 
         i f   d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " ` ^ a ' " ,   t h e _ s t r i n g ) ; 
         i f   ( s t r i n g _ l   ( w h i c h )   >   0 )   &   ( l e n g t h   ( t h e _ s t r i n g )   =   0 ) 
         t h e n 
             d o ; 
                 i f   d t _ s w 
                 t h e n   c a l l   i o a _   ( " - - i s   ^ i , 1 " ,   w h i c h ) ; 
                 r e t u r n   ( s t r l _ p   ( w h i c h ,   1 ) ) ; 
             e n d ; 
 
 
         d o   i   =   1   t o   s t r i n g _ l   ( w h i c h ) ; 
             s t r _ p   =   s t r l _ p   ( w h i c h ,   i ) ; 
             i f   ( l e n g t h   ( b s t r . s t r )   =   l e n g t h   ( t h e _ s t r i n g ) ) 
             t h e n   i f   ( b s t r . s t r   =   t h e _ s t r i n g ) 
 	   t h e n 
 	       d o ; 
 	           i f   d t _ s w 
 	           t h e n   c a l l   i o a _   ( " - - f o u n d   ^ i , ^ i " ,   w h i c h ,   i ) ; 
 	           r e t u r n   ( s t r _ p ) ; 
 	       e n d ; 
         e n d ; 
         s t r _ p   =   n e x t _ s t r _ p ; 
         b s t r . l e n g   =   l e n g t h   ( t h e _ s t r i n g ) ; 
         b s t r . s t r   =   t h e _ s t r i n g ; 
         s t r i n g _ l   ( w h i c h ) ,   i   =   s t r i n g _ l   ( w h i c h )   +   1 ; 
         s t r l _ p   ( w h i c h ,   i )   =   s t r _ p ; 
         n e x t _ s t r _ p   =   a d d r   ( b s t r . d u m m y ) ; 
         i f   d t _ s w 
         t h e n   c a l l   i o a _   ( " - - n e w   ^ i , ^ i " ,   w h i c h ,   i ) ; 
         r e t u r n   ( s t r l _ p   ( w h i c h ,   i ) ) ; 
 
     e n d   f i n d _ s t r ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + +   F O N T _ N A M E   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t   f o r   t o k e n   b e i n g   a   d e f i n e d   f o n t n a m e . 	 	 	               * / 
 
 f o n t _ n a m e : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         t h e _ f o n t   =   f i n d _ f o n t   ( " 0 " b ) ; 
         i f   t h e _ f o n t   ^ =   n u l l   ( ) 
         t h e n 
             d o ; 
                 i f   d t _ s w 
                 t h e n   c a l l   i o a _ $ n n l   ( " < f o n t _ n a m e > " ) ; 
                 r e t u r n   ( " 1 " b ) ; 
             e n d ; 
         t h e _ f o n t   =   f n t l _ p   ( 1 ) ; 	 	 / *   f i l l   i n   a   v a l u e   s o   p r o g r a m   w i l l       * / 
 	 	 	 	 / *     k e e p   r u n n i n g 	 	               * / 
         r e t u r n   ( " 0 " b ) ; 
 
     e n d   f o n t _ n a m e ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + +   I D E N T / I D E N T 2   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   c h e c k   f o r   l e g a l   < n a m e >   s t r i n g 	 	 	 	               * / 
 
 i d e n t : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         l d t _ s w   =   d t _ s w ; 
         g o t o   s t a r t ; 
 
 i d e n t 2 : 
     e n t r y   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         l d t _ s w   =   d t _ s w ; 
         i f   ( t o k e n . L v a l u e   =   1 ) 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         g o t o   s t a r t ; 
 
 i d e n t _ : 
     e n t r y   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         l d t _ s w   =   " 0 " b ; 	 	 	 / *   n e v e r   d b   d i s p l a y s   * / 
 
         d c l   l d t _ s w 	       b i t   ( 1 ) ; 
 
 s t a r t : 
         i f   t o k e n . q u o t e d _ s t r i n g 	 	 / *   q u o t e d   s t r i n g ? 	 	               * / 
                   |   t o k e n _ v a l u e   =   " S E L F " 	 / *   t h e   r e s e r v e d   w o r d ? 	               * / 
                   |   v e r i f y   ( t o k e n _ v a l u e ,   a z _ A Z 0 9 )   ^ =   0 
 	 	 	 	 / *   n o n - ( a l p h a n u m e r i c   o r   _ ) ?         * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 	 	 / *   a n y   o f   t h e s e ,   r e t u r n   f a l s e 	               * / 
 
         i f   ( i n d e x   ( " 0 1 2 3 4 5 6 7 8 9 _ " ,   s u b s t r   ( t o k e n _ v a l u e ,   1 ,   1 ) )   ^ =   0 ) 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         i f   l d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " < i d e n t > " ) ; 
         r e t u r n   ( " 1 " b ) ; 	 	 	 / *   m u s t   n o t   h a v e   l e a d i n g   n u m b e r   o r   _   * / 
     e n d   i d e n t ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + +   I N P U T / A L L _ I N P U T   + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t s   f o r   t o k e n   b e i n g   a   s i n g l e   c h a r   i n   e i t h e r   o c t a l   o r   q u o t e d   f o r m .               * / 
 / *   A L L _ I N P U T   a l s o   c h e c k s   f o r   a   w h o l e   s l e w   o f   b u i l t i n   c h a r   n a m e s . 	               * / 
 / *   S E T S : 	 I n p u t   -   9 - b i t   c h a r   v a l u e   w h i c h   r e s u l t s 	 	 	               * / 
 
 i n p u t : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d c l   w h i c h 	       c h a r   ( 1 2 ) ; 
         d c l   l d t _ s w 	       b i t   ( 1 ) ; 
 
         w h i c h   =   " < i n p u t > " ; 
         l d t _ s w   =   d t _ s w ; 
         g o t o   s o m e ; 
 
 i n p u t _ : 
     e n t r y   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         l d t _ s w   =   " 0 " b ; 	 	 	 / *   n e v e r   d b   d i s p l a y s   * / 
         g o t o   s o m e ; 
 
 a l l _ i n p u t : 
     e n t r y   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         w h i c h   =   " < a l l _ i n p u t > " ; 
         l d t _ s w   =   d t _ s w ; 
 
         i f   ( t o k e n _ v a l u e   =   " E M " ) 
         t h e n   I n p u t   =   E M ; 
 
         e l s e   i f   ( t o k e n _ v a l u e   =   " E N " ) 
         t h e n   I n p u t   =   E N ; 
 
         e l s e   i f   ( t o k e n _ v a l u e   =   " T H I C K " ) 
         t h e n   I n p u t   =   T H I C K ; 
 
         e l s e   i f   ( t o k e n _ v a l u e   =   " M E D I U M " ) 
         t h e n   I n p u t   =   M E D I U M ; 
 
         e l s e   i f   ( t o k e n _ v a l u e   =   " T H I N " ) 
         t h e n   I n p u t   =   T H I N ; 
 
         e l s e   i f   ( t o k e n _ v a l u e   =   " H A I R " ) 
         t h e n   I n p u t   =   H A I R ; 
 
         e l s e   i f   ( t o k e n _ v a l u e   =   " D E V I T " ) 
         t h e n   I n p u t   =   D E V I T ; 
 
         e l s e   i f   ( t o k e n _ v a l u e   =   " S T R O K E " ) 
         t h e n   I n p u t   =   S T R O K E ; 
 
         e l s e   i f   ( t o k e n _ v a l u e   =   " E M - " ) 
         t h e n   I n p u t   =   E M d a s h ; 
 
         e l s e   i f   ( t o k e n _ v a l u e   =   " E N - " ) 
         t h e n   I n p u t   =   E N d ; 
 
         e l s e   i f   ( t o k e n _ v a l u e   =   " E M _ " ) 
         t h e n   I n p u t   =   E M _ ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " E N _ " ) 
         t h e n   I n p u t   =   E N _ ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ^ 0 " ) 
         t h e n   I n p u t   =   s u p 0 ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ^ 1 " ) 
         t h e n   I n p u t   =   s u p 1 ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ^ 2 " ) 
         t h e n   I n p u t   =   s u p 2 ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ^ 3 " ) 
         t h e n   I n p u t   =   s u p 3 ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ^ 4 " ) 
         t h e n   I n p u t   =   s u p 4 ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ^ 5 " ) 
         t h e n   I n p u t   =   s u p 5 ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ^ 6 " ) 
         t h e n   I n p u t   =   s u p 6 ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ^ 7 " ) 
         t h e n   I n p u t   =   s u p 7 ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ^ 8 " ) 
         t h e n   I n p u t   =   s u p 8 ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ^ 9 " ) 
         t h e n   I n p u t   =   s u p 9 ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ' ' " ) 
         t h e n   I n p u t   =   r q u o t e ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " ` ` " ) 
         t h e n   I n p u t   =   l q u o t e ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " P S " ) 
         t h e n   I n p u t   =   P S ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " l s l n t " ) 
         t h e n   I n p u t   =   l s l n t ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " v r u l e " ) 
         t h e n   I n p u t   =   v r u l e ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " b u l l e t " ) 
         t h e n   I n p u t   =   b u l l e t ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " c r i g h t " ) 
         t h e n   I n p u t   =   c r i g h t ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " m o d m a r k " ) 
         t h e n   I n p u t   =   m o d m a r k ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " d e l m a r k " ) 
         t h e n   I n p u t   =   d e l m a r k ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " m u l t i p l y " ) 
         t h e n   I n p u t   =   m u l t i p l y ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " n a b l a " ) 
         t h e n   I n p u t   =   n a b l a ; 
         e l s e   i f   ( t o k e n _ v a l u e   =   " p l _ m i " ) 
         t h e n   I n p u t   =   p l _ m i ; 
         e l s e 
 s o m e : 
                   i f   t o k e n . q u o t e d _ s t r i n g 
         t h e n 
             d o ; 
                 i f   t o k e n . L v a l u e   ^ =   1 
                 t h e n   r e t u r n   ( " 0 " b ) ; 
                 I n p u t   =   t o k e n _ v a l u e ; 
             e n d ; 
         e l s e   i f   ^ o c t a l _   ( ) 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         i f   l d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " ^ a " ,   w h i c h ) ; 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   i n p u t ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + +   I S _ D E F N A M E   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t s   f o r   a   t o k e n   b e i n g   a   d e f i n e d   D e f n a m e . 	 	 	               * / 
 / *   S E T S : 	 t o k e n . N v a l u e   -   i n d e x   o f   t h e   f o u n d   D e f n a m e 	 	               * / 
 
 i s _ D e f n a m e : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d o   i   =   1   t o   D e f . c o u n t ; 
             i f   ( D e f . n a m e   ( i )   =   t o k e n _ v a l u e ) 
             t h e n 
                 d o ; 
 	 t o k e n . N v a l u e   =   i ; 
 	 i f   d t _ s w 
 	 t h e n   c a l l   i o a _ $ n n l   ( " < i s _ D e f n a m e > " ) ; 
 	 r e t u r n   ( " 1 " b ) ; 
                 e n d ; 
         e n d ; 
         r e t u r n   ( " 0 " b ) ; 
 
     e n d   i s _ D e f n a m e ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + +   I S _ V I E W N A M E   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t s   f o r   t o k e n   b e i n g   a   d e f i n e d   v i e w n a m e . 	 	 	               * / 
 / *   S E T S : 	 t o k e n . N v a l u e   -   i n d e x   o f   t h e   f o u n d   v i e w n a m e 	 	               * / 
 
 i s _ v i e w n a m e : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d o   i   =   1   t o   v i e w . c o u n t ; 
             i f   ( v i e w . n a m e   ( i )   =   t o k e n _ v a l u e ) 
             t h e n 
                 d o ; 
 	 t o k e n . N v a l u e   =   i ; 
 	 i f   d t _ s w 
 	 t h e n   c a l l   i o a _ $ n n l   ( " < i s _ v i e w n a m e > " ) ; 
 	 r e t u r n   ( " 1 " b ) ; 
                 e n d ; 
         e n d ; 
         r e t u r n   ( " 0 " b ) ; 
 
     e n d   i s _ v i e w n a m e ; 
 
 / * * * *   + + + [ P r o c e d u r e ] + + + + + + + + + + + + + + + +   L I N K   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   l i n k   a n   e l e m e n t   t o   e n d   o f   a   l i s t 	 	 	 	               * / 
 
 l i n k : 
     p r o c   ( l _ p ,   e _ p ) ; 
         d c l   l _ p 	       ( 2 )   p t r , 	 / *   b e g i n / e n d   l i s t   p t r s 	               * / 
                 e _ p 	       p t r ; 	 	 / *   e l e m e n t   t o   b e   l i n k e d 	               * / 
 
         d c l   n e x t 	       p t r   b a s e d   ( e _ p ) ;   / *   f i r s t   w o r d   o f   e l e m e n t   - >   n e x t           * / 
 
         i f   ( l _ p   ( 1 )   =   n u l l   ( ) ) 
         t h e n   l _ p   ( * )   =   e _ p ; 	 	 / *   i n i t i a l i z e   l i s t 	 	               * / 
         e l s e 
             d o ; 
                 l _ p   ( 2 )   - >   n e x t   =   e _ p ; 	 / *   l a s t   o n e   p o i n t s   t o   t h i s   o n e               * / 
                 l _ p   ( 2 )   =   e _ p ; 	 	 / *   t h i s   o n e   i s   n o w   l a s t 	               * / 
             e n d ; 
         n e x t   =   n u l l   ( ) ; 	 	 	 / *   t h i s   o n e   p o i n t s   n o w h e r e 	               * / 
 
     e n d   l i n k ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + +   M E D I A N A M E   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t   f o r   t h e   t o k e n   b e i n g   a   d e f i n e d   m e d i a n a m e 	 	 	               * / 
 / *   S E T S :   t o k e n . N v a l u e   -   t h e   i n d e x   o f   t h e   f o u n d   m e d i a n a m e 	 	               * / 
 
 m e d i a n a m e : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d c l   i 	 	       f i x e d   b i n ; 
 
         i f   ^ i d e n t _   ( ) 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         d o   i   =   1   t o   m e d i a . c o u n t ; 
             i f   ( m e d i a . n a m e   ( i )   =   t o k e n _ v a l u e ) 
             t h e n 
                 d o ; 
 	 t o k e n . N v a l u e   =   i ; 
 	 i f   d t _ s w 
 	 t h e n   c a l l   i o a _ $ n n l   ( " < m e d i a n a m e > " ) ; 
 	 r e t u r n   ( " 1 " b ) ; 
                 e n d ; 
         e n d ; 
         r e t u r n   ( " 0 " b ) ; 
 
     e n d   m e d i a n a m e ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + +   M E M B E R N A M E   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
 m e m b e r n a m e : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d c l   i 	 	       f i x e d   b i n ; 
 
         i f   ( s u b s t r   ( t o k e n _ v a l u e ,   1 ,   1 )   ^ =   " / " ) 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         i f   ( t o k e n . L v a l u e   >   3 2 ) 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         i f   ( t o k e n . L v a l u e   >   1 ) 
         t h e n 
             d o ; 
                 i f   ( i n d e x   ( " 0 1 2 3 4 5 6 7 8 9 " ,   s u b s t r   ( t o k e n _ v a l u e ,   2 ,   1 ) )   ^ =   0 ) 
                 t h e n   r e t u r n   ( " 0 " b ) ; 
                 i f   ( v e r i f y   ( s u b s t r   ( t o k e n _ v a l u e ,   2 ) ,   a z _ A Z 0 9 )   ^ =   0 ) 
                 t h e n   r e t u r n   ( " 0 " b ) ; 
             e n d ; 
         i f   d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " < m e m b e r n a m e > " ) ; 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   m e m b e r n a m e ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + + +   N E G N U M   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t s   t o k e n   f o r   b e i n g   a   n e g a t i v e   n u m b e r 	 	 	               * / 
 
 n e g n u m : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 	 / *   c h e c k   n e g a t i v e   d e c i m a l   v a l u e   * / 
 
         i f   ( s u b s t r   ( t o k e n _ v a l u e ,   1 ,   1 )   ^ =   " - " ) 
 	 	 	 	 / *   m u s t   s t a r t   w i t h   -   s i g n               * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         i f   ( t o k e n _ v a l u e   =   " - . " ) 	 	 / *   j u s t   i n   c a s e   t h e y   t h r o w   a   c u r v e       * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         i f   ( v e r i f y   ( s u b s t r   ( t o k e n _ v a l u e ,   2 ) ,   " 0 1 2 3 4 5 6 7 8 9 . " )   ^ =   0 ) 
 	 	 	 	 / *   a n d   h a v e     * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 	 	 / *   o n l y   l e g a l   d e c i m a l   c h a r s   & 	               * / 
         i f   ( i n d e x   ( a f t e r   ( t o k e n _ v a l u e ,   " . " ) ,   " . " )   ^ =   0 ) 
 	 	 	 	 / *   o n l y   1   d e c i m a l   p t     * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         i f   d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " < n e g n u m > " ) ; 
         t o k e n . N v a l u e   =   c o n v e r t   ( t o k e n . N v a l u e ,   t o k e n _ v a l u e ) ; 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   n e g n u m ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + +   N U M / L I M I T   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t s   t o k e n   f o r   b e i n g   U N L I M I T E D   o r   b e i n g   a   n u m b e r 	 	               * / 
 / *   T e s t s   t o k e n   f o r   b e i n g   a   n u m b e r 	 	 	 	               * / 
 
 l i m i t : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         i f   ( t o k e n _ v a l u e   =   " u n l i m i t e d " ) 
         t h e n 
             d o ; 
                 t o k e n . N v a l u e   =   - 1 ; 
                 r e t u r n   ( " 1 " b ) ; 
             e n d ; 
 
 n u m : 
     e n t r y   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 	 / *   c h e c k   d e c i m a l   v a l u e   * / 
 
         i f   t o k e n _ v a l u e   =   " . " 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         i f   v e r i f y   ( t o k e n _ v a l u e ,   " 0 1 2 3 4 5 6 7 8 9 . " )   ^ =   0 
 	 	 	 	 / *   l e g a l   d e c i m a l   c h a r s   * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 
 
         i f   ( i n d e x   ( a f t e r   ( t o k e n _ v a l u e ,   " . " ) ,   " . " )   ^ =   0 ) 
 	 	 	 	 / *   o n l y   1   d e c   p t   * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         i f   d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " < n u m > " ) ; 
         t o k e n . N v a l u e   =   c o n v e r t   ( t o k e n . N v a l u e ,   t o k e n _ v a l u e ) ; 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   l i m i t ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + + +   O C T A L   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t s   t o k e n   f o r   b e i n g   a n   o c t a l   c h a r a c t e r   r e p r e s e n t a t i o n 	 	               * / 
 / *   S E T S : 	 I n p u t   -   9 - b i t   c h a r   g o t t e n   b y   c o n v e r t i n g   t h e   3   o c t a l   d i g i t s 	               * / 
 
 o c t a l : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         l d t _ s w   =   d t _ s w ; 
         g o t o   s t a r t ; 
 
 o c t a l _ : 
     e n t r y   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         l d t _ s w   =   " 0 " b ; 	 	 	 / *   n e v e r   d b   d i s p l a y s   * / 
 
         d c l   l d t _ s w 	       b i t   ( 1 ) ; 
         d c l   1   b i t s 	       ( 3 )   u n a l , 	 / *   c o p y   o f   t h e   3   t o k e n   c h a r s   a s   b i t s   * / 
 	 2   f 	       b i t   ( 6 ) , 
 	 2   b 	       b i t   ( 3 ) ; 
 
 s t a r t : 
         i f   t o k e n . L v a l u e   ^ =   3 	 	 / *   i f   t o k e n   i s   n o t   e x a c t l y   3   c h a r s   * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 	 	 / *   i t   c a n ' t   b e   o c t a l   * / 
 
         i f   v e r i f y   ( t o k e n _ v a l u e ,   " 0 1 2 3 4 5 6 7 " )   ^ =   0 
 	 	 	 	 / *   i t   c a n ' t   h a v e   a n y   c h a r s   * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 	 	 / *   o u t s i d e   t h e   o c t a l   r a n g e   * / 
 
         s t r i n g   ( b i t s )   =   u n s p e c   ( t o k e n _ v a l u e ) ; 
 	 	 	 	 / *   c o p y   t o k e n   i n t o   s t r u c t u r e   * / 
         u n s p e c   ( I n p u t )   =   b   ( 1 )   | |   b   ( 2 )   | |   b   ( 3 ) ; 
 	 	 	 	 / *   c o n v e r t   o c t a l   t o   b i n a r y   * / 
         i f   l d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " < o c t a l > " ) ; 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   o c t a l ; 
 
 / * * * *   + + + [ P r o c e d u r e ] + + + + + + + + + + + + +   O U T P U T T E R   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   O u t p u t s   t h e   w h o l e   s c h m e e r   t o   a n   a l m   s o u r c e   f i l e . 	 	               * / 
 / *   U S E S : 	 m o s t   e v e r y t h i n g   o f   v a l u e 	 	 	 	               * / 
 
 o u t p u t t e r : 
     p r o c ; 
 
         d c l   a d d n a m e 	       b i t   ( 1 ) ; 	 / *   1   =   t a b l e   n a m e   i s   a n   a d d n a m e             * / 
 / * * * *   f o r m a t :   o f f   * / 
 d c l   b i t n a m e 	 ( 0 : 5 1 1 )   c h a r   ( 1 6 ) 	 / *   c h a r   n a m e s   f o r   t a b l e s 	               * / 
 	 	 i n t   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t 
     ( " 0 0 0 " ,   " 0 0 1 " ,   " 0 0 2 " ,   " 0 0 3 " ,   " 0 0 4 " ,   " 0 0 5 " ,   " 0 0 6 " ,   " 0 0 7 " ,   " 0 1 0   B S P " ,   " 0 1 1   H T " , 
       " 0 1 2   N L " ,   " 0 1 3   V T " ,   " 0 1 4   F F " ,   " 0 1 5   C R " ,   " 0 1 6 " ,   " 0 1 7 " ,   " 0 2 0 " ,   " 0 2 1   c t l - s t r " , 
       " 0 2 2 " ,   " 0 2 3 " ,   " 0 2 4 " ,   " 0 2 5 " ,   " 0 2 6 " ,   " 0 2 7 " ,   " 0 3 0 " ,   " 0 3 1 " ,   " 0 3 2 " ,   " 0 3 3   E S C " , 
       " 0 3 4 " ,   " 0 3 5 " ,   " 0 3 6 " ,   " 0 3 7 " ,   " 0 4 0   S P " ,   " 0 4 1   ! " ,   " 0 4 2   " " " ,   " 0 4 3   # " ,   " 0 4 4   $ " , 
       " 0 4 5   % " ,   " 0 4 6   & " ,   " 0 4 7   ' " ,   " 0 5 0   L p " ,   " 0 5 1   R p " ,   " 0 5 2   * " ,   " 0 5 3   + " ,   " 0 5 4   , " , 
       " 0 5 5   - " ,   " 0 5 6   . " ,   " 0 5 7   / " ,   " 0 6 0   0 " ,   " 0 6 1   1 " ,   " 0 6 2   2 " ,   " 0 6 3   3 " ,   " 0 6 4   4 " , 
       " 0 6 5   5 " ,   " 0 6 6   6 " ,   " 0 6 7   7 " ,   " 0 7 0   8 " ,   " 0 7 1   9 " ,   " 0 7 2   : " ,   " 0 7 3   ; " ,   " 0 7 4   < " , 
       " 0 7 5   = " ,   " 0 7 6   > " ,   " 0 7 7   ? " ,   " 1 0 0   @ " ,   " 1 0 1   A " ,   " 1 0 2   B " ,   " 1 0 3   C " ,   " 1 0 4   D " , 
       " 1 0 5   E " ,   " 1 0 6   F " ,   " 1 0 7   G " ,   " 1 1 0   H " ,   " 1 1 1   I " ,   " 1 1 2   J " ,   " 1 1 3   K " ,   " 1 1 4   L " , 
       " 1 1 5   M " ,   " 1 1 6   N " ,   " 1 1 7   O " ,   " 1 2 0   P " ,   " 1 2 1   Q " ,   " 1 2 2   R " ,   " 1 2 3   S " ,   " 1 2 4   T " , 
       " 1 2 5   U " ,   " 1 2 6   V " ,   " 1 2 7   W " ,   " 1 3 0   X " ,   " 1 3 1   Y " ,   " 1 3 2   Z " ,   " 1 3 3   [ " ,   " 1 3 4   \ " , 
       " 1 3 5   ] " ,   " 1 3 6   ^ " ,   " 1 3 7   _ " ,   " 1 4 0   ` " ,   " 1 4 1   a " ,   " 1 4 2   b " ,   " 1 4 3   c " ,   " 1 4 4   d " , 
       " 1 4 5   e " ,   " 1 4 6   f " ,   " 1 4 7   g " ,   " 1 5 0   h " ,   " 1 5 1   i " ,   " 1 5 2   j " ,   " 1 5 3   k " ,   " 1 5 4   l " , 
       " 1 5 5   m " ,   " 1 5 6   n " ,   " 1 5 7   o " ,   " 1 6 0   p " ,   " 1 6 1   q " ,   " 1 6 2   r " ,   " 1 6 3   s " ,   " 1 6 4   t " , 
       " 1 6 5   u " ,   " 1 6 6   v " ,   " 1 6 7   w " ,   " 1 7 0   x " ,   " 1 7 1   y " ,   " 1 7 2   z " ,   " 1 7 3   { " ,   " 1 7 4   | " , 
       " 1 7 5   } " ,   " 1 7 6   ~ " ,   " 1 7 7   P A D " ,   " 2 0 0 " ,   " 2 0 1 " ,   " 2 0 2 " ,   " 2 0 3 " ,   " 2 0 4 " ,   " 2 0 5 " , 
       " 2 0 6 " ,   " 2 0 7 " ,   " 2 1 0 " ,   " 2 1 1 " ,   " 2 1 2 " ,   " 2 1 3 " ,   " 2 1 4 " ,   " 2 1 5 " ,   " 2 1 6 " ,   " 2 1 7 " , 
       " 2 2 0 " ,   " 2 2 1 " ,   " 2 2 2 " ,   " 2 2 3 " ,   " 2 2 4 " ,   " 2 2 5 " ,   " 2 2 6 " ,   " 2 2 7 " ,   " 2 3 0 " ,   " 2 3 1 " , 
       " 2 3 2 " ,   " 2 3 3 " ,   " 2 3 4 " ,   " 2 3 5 " ,   " 2 3 6 " ,   " 2 3 7 " ,   " 2 4 0 " ,   " 2 4 1 " ,   " 2 4 2 " ,   " 2 4 3 " , 
       " 2 4 4 " ,   " 2 4 5 " ,   " 2 4 6 " ,   " 2 4 7 " ,   " 2 5 0 " ,   " 2 5 1 " ,   " 2 5 2   m l p y " ,   " 2 5 3   +  _ " ,   " 2 5 4   n a b l a " , 
       " 2 5 5   E M d a s h " ,   " 2 5 6 " ,   " 2 5 7   s l a s h " ,   " 2 6 0 " ,   " 2 6 1   d a g g e r " ,   " 2 6 2 " ,   " 2 6 3 " ,   " 2 6 4 " , 
       " 2 6 5 " ,   " 2 6 6 " ,   " 2 6 7 " ,   " 2 7 0 " ,   " 2 7 1 " ,   " 2 7 2 " ,   " 2 7 3   _  | " ,   " 2 7 4 " ,   " 2 7 5   /  = " ,   " 2 7 6 " , 
       " 2 7 7 " ,   " 3 0 0 " ,   " 3 0 1   d b l   d a g g e r " ,   " 3 0 2 " ,   " 3 0 3   c o p y r i g h t " ,   " 3 0 4   d e l t a " ,   " 3 0 5 " , 
       " 3 0 6 " ,   " 3 0 7 " ,   " 3 1 0 " ,   " 3 1 1 " ,   " 3 1 2 " ,   " 3 1 3 " ,   " 3 1 4 " ,   " 3 1 5   b u l l e t " ,   " 3 1 6 | | " , 
       " 3 1 7 " ,   " 3 2 0   P I " ,   " 3 2 1 " ,   " 3 2 2 " ,   " 3 2 3 " ,   " 3 2 4 " ,   " 3 2 5 " ,   " 3 2 6   t h e r e f o r e " ,   " 3 2 7 " , 
       " 3 3 0 " ,   " 3 3 1 " ,   " 3 3 2   =    " ,   " 3 3 3 " ,   " 3 3 4 " ,   " 3 3 5 " ,   " 3 3 6 " ,   " 3 3 7   i n f i n i t y " ,   " 3 4 0 " , 
       " 3 4 1 " ,   " 3 4 2 " ,   " 3 4 3 " ,   " 3 4 4 " ,   " 3 4 5 " ,   " 3 4 6 " ,   " 3 4 7 " ,   " 3 5 0 " ,   " 3 5 1 " ,   " 3 5 2   t h e t a " , 
       " 3 5 3 " ,   " 3 5 4 " ,   " 3 5 5 " ,   " 3 5 6 " ,   " 3 5 7 " ,   " 3 6 0   p i " ,   " 3 6 1 " ,   " 3 6 2 " ,   " 3 6 3 " ,   " 3 6 4 " , 
       " 3 6 5 " ,   " 3 6 6 " ,   " 3 6 7 " ,   " 3 7 0 " ,   " 3 7 1 " ,   " 3 7 2 " ,   " 3 7 3 " ,   " 3 7 4 " ,   " 3 7 5   s q u a r e " , 
       " 3 7 6   o v e r b a r " ,   " 3 7 7   p u n c t   S P " ,   " 4 0 0   s u p e r i o r   0 " ,   " 4 0 1   s u p e r i o r   1 " , 
       " 4 0 2   s u p e r i o r   2 " ,   " 4 0 3   s u p e r i o r   3 " ,   " 4 0 4   s u p e r i o r   4 " ,   " 4 0 5   s u p e r i o r   5 " , 
       " 4 0 6   s u p e r i o r   6 " ,   " 4 0 7   s u p e r i o r   7 " ,   " 4 1 0   s u p e r i o r   8 " ,   " 4 1 1   s u p e r i o r   9 " , 
       " 4 1 2   E M " ,   " 4 1 3   E M   _ d a s h " ,   " 4 1 4   E N " ,   " 4 1 5   E N   _ d a s h " ,   " 4 1 6   E N   d a s h " , 
       " 4 1 7   t h i n   s p a c e " ,   " 4 2 0 " ,   " 4 2 1   ` ` " ,   " 4 2 2   ' ' " ,   " 4 2 3   1 h i   X " ,   " 4 2 4 " , 
       " 4 2 5   v  | " ,   " 4 2 6 " ,   " 4 2 7   d i a   l e f t " ,   " 4 3 0   d e l e t e   m a r k " ,   " 4 3 1   d i a   r i g h t " , 
       " 4 3 2   d i a   t o p " ,   " 4 3 3   < " ,   " 4 3 4   1 h i   { " ,   " 4 3 5   1 h i   [ " ,   " 4 3 6   l e f t   c i r c l e " ,   " 4 3 7 " , 
       " 4 4 0   - > " ,   " 4 4 1   1 h i   } " ,   " 4 4 2   1 h i   ] " ,   " 4 4 3   r i g h t   c i r c l e " ,   " 4 4 4 " ,   " 4 4 5   ^  | " , 
       " 4 4 6 " ,   " 4 4 7 " ,   " 4 5 0 " ,   " 4 5 1 " ,   " 4 5 2 " ,   " 4 5 3 " ,   " 4 5 4 " ,   " 4 5 5 " ,   " 4 5 6 " ,   " 4 5 7 " , 
       " 4 6 0 " ,   " 4 6 1 " ,   " 4 6 2 " ,   " 4 6 3 " ,   " 4 6 4 " ,   " 4 6 5 " ,   " 4 6 6 " ,   " 4 6 7 " ,   " 4 7 0 " ,   " 4 7 1 " , 
       " 4 7 2 " ,   " 4 7 3 " ,   " 4 7 4 " ,   " 4 7 5 " ,   " 4 7 6 " ,   " 4 7 7 " ,   " 5 0 0 " ,   " 5 0 1 " ,   " 5 0 2 " ,   " 5 0 3 " , 
       " 5 0 4 " ,   " 5 0 5 " ,   " 5 0 6 " ,   " 5 0 7 " ,   " 5 1 0 " ,   " 5 1 1 " ,   " 5 1 2 " ,   " 5 1 3 " ,   " 5 1 4 " ,   " 5 1 5 " , 
       " 5 1 6 " ,   " 5 1 7 " ,   " 5 2 0 " ,   " 5 2 1 " ,   " 5 2 2 " ,   " 5 2 3 " ,   " 5 2 4 " ,   " 5 2 5 " ,   " 5 2 6 " ,   " 5 2 7 " , 
       " 5 3 0 " ,   " 5 3 1 " ,   " 5 3 2 " ,   " 5 3 3 " ,   " 5 3 4 " ,   " 5 3 5 " ,   " 5 3 6 " ,   " 5 3 7 " ,   " 5 4 0 " ,   " 5 4 1 " , 
       " 5 4 2 " ,   " 5 4 3 " ,   " 5 4 4 " ,   " 5 4 5 " ,   " 5 4 6 " ,   " 5 4 7 " ,   " 5 5 0 " ,   " 5 5 1 " ,   " 5 5 2 " ,   " 5 5 3 " , 
       " 5 5 4 " ,   " 5 5 5 " ,   " 5 5 6 " ,   " 5 5 7 " ,   " 5 6 0 " ,   " 5 6 1 " ,   " 5 6 2 " ,   " 5 6 3 " ,   " 5 6 4 " ,   " 5 6 5 " , 
       " 5 6 6 " ,   " 5 6 7 " ,   " 5 7 0 " ,   " 5 7 1 " ,   " 5 7 2 " ,   " 5 7 3 " ,   " 5 7 4 " ,   " 5 7 5 " ,   " 5 7 6 " ,   " 5 7 7 " , 
       " 6 0 0 " ,   " 6 0 1 " ,   " 6 0 2 " ,   " 6 0 3 " ,   " 6 0 4 " ,   " 6 0 5 " ,   " 6 0 6 " ,   " 6 0 7 " ,   " 6 1 0 " ,   " 6 1 1 " , 
       " 6 1 2 " ,   " 6 1 3 " ,   " 6 1 4 " ,   " 6 1 5 " ,   " 6 1 6 " ,   " 6 1 7 " ,   " 6 2 0 " ,   " 6 2 1 " ,   " 6 2 2 " ,   " 6 2 3 " , 
       " 6 2 4 " ,   " 6 2 5 " ,   " 6 2 6 " ,   " 6 2 7 " ,   " 6 3 0 " ,   " 6 3 1 " ,   " 6 3 2 " ,   " 6 3 3 " ,   " 6 3 4 " ,   " 6 3 5 " , 
       " 6 3 6 " ,   " 6 3 7 " ,   " 6 4 0 " ,   " 6 4 1 " ,   " 6 4 2 " ,   " 6 4 3 " ,   " 6 4 4 " ,   " 6 4 5 " ,   " 6 4 6 " ,   " 6 4 7 " , 
       " 6 5 0 " ,   " 6 5 1 " ,   " 6 5 2 " ,   " 6 5 3 " ,   " 6 5 4 " ,   " 6 5 5 " ,   " 6 5 6 " ,   " 6 5 7 " ,   " 6 6 0 " ,   " 6 6 1 " , 
       " 6 6 2 " ,   " 6 6 3 " ,   " 6 6 4 " ,   " 6 6 5 " ,   " 6 6 6 " ,   " 6 6 7 " ,   " 6 7 0 " ,   " 6 7 1 " ,   " 6 7 2 " ,   " 6 7 3 " , 
       " 6 7 4 " ,   " 6 7 5 " ,   " 6 7 6 " ,   " 6 7 7 " ,   " 7 0 0 " ,   " 7 0 1 " ,   " 7 0 2 " ,   " 7 0 3 " ,   " 7 0 4 " ,   " 7 0 5 " , 
       " 7 0 6 " ,   " 7 0 7 " ,   " 7 1 0 " ,   " 7 1 1 " ,   " 7 1 2 " ,   " 7 1 3 " ,   " 7 1 4 " ,   " 7 1 5 " ,   " 7 1 6 " ,   " 7 1 7 " , 
       " 7 2 0 " ,   " 7 2 1 " ,   " 7 2 2 " ,   " 7 2 3 " ,   " 7 2 4 " ,   " 7 2 5 " ,   " 7 2 6 " ,   " 7 2 7 " ,   " 7 3 0 " ,   " 7 3 1 " , 
       " 7 3 2 " ,   " 7 3 3 " ,   " 7 3 4 " ,   " 7 3 5 " ,   " 7 3 6 " ,   " 7 3 7 " ,   " 7 4 0 " ,   " 7 4 1 " ,   " 7 4 2 " ,   " 7 4 3 " , 
       " 7 4 4 " ,   " 7 4 5 " ,   " 7 4 6 " ,   " 7 4 7 " ,   " 7 5 0 " ,   " 7 5 1 " ,   " 7 5 2 " ,   " 7 5 3 " ,   " 7 5 4 " ,   " 7 5 5 " , 
       " 7 5 6 " ,   " 7 5 7 " ,   " 7 6 0 " ,   " 7 6 1 " ,   " 7 6 2 " ,   " 7 6 3 " ,   " 7 6 4 " ,   " 7 6 5 " ,   " 7 6 6 " ,   " 7 6 7 " , 
       " 7 7 0 " ,   " 7 7 1 " ,   " 7 7 2 " ,   " 7 7 3 " ,   " 7 7 4 " ,   " 7 7 5 " ,   " 7 7 6 " ,   " 7 7 7 " ) ; 
 / * * * *   f o r m a t :     o n   * / 
 
         d c l   ( i ,   j ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   o c t _ p 	       p t r ; 
         d c l   j j j 	       f i x e d   b i n ; 
         d c l   1   o c t 	       b a s e d , 
 	 2   c t 	       f i x e d   b i n   ( 3 5 ) , 
 	 2   e 	       ( o _ s )   f i x e d   b i n   ( 3 5 ) ; 
         d c l   o _ s 	       f i x e d   b i n ; 
         d c l   o u t 	       e n t r y   a u t o m a t i c   o p t i o n s   ( v a r i a b l e ) ; 
         o u t   =   i o a _ $ i o a _ s w i t c h ; 	 	 / *   t o   s h r i n k   t h e   l i n e   s i z e   b e l o w           * / 
 
 / *   T h i s   w r i t e s   t h i n g s   i n   t h i s   s e q u e n c e : 	 	 	 	               * / 
 / *     1 )     " i n c l u d e   c o m p d v " 	 	 	 	 	               * / 
 / *     2 )     ( { c o m p _ d v i d }   s e g d e f ' s ) ' s 	 	 	 	               * / 
 / *     3 )     ( c o m p _ d v t   m e m b e r ' s   m e d _ s e l ) ' s 	 	 	 	               * / 
 / *     4 )     f o n t ' s 	 	 	 	 	 	               * / 
 / *     5 )     s i z e l ' s 	 	 	 	 	 	               * / 
 / *     6 )     s t r i n g s   . . . 	 	 	 	 	 	               * / 
 / *     7 )     " e n d " 	 	 	 	 	 	               * / 
 
         i f   d b _ s w 
         t h e n   c a l l   i o a _   ( " = = = o u t p u t t e r " ) ; 
 
         c a l l   o u t   ( A L M ,   " ^ - i n c l u d e ^ - c o m p d v " ) ; 
 
         d o   d v i d _ p   =   d v i d l _ p   ( 1 )   r e p e a t   ( d v i d . n e x t )   w h i l e   ( d v i d _ p   ^ =   n u l l   ( ) ) ; 
             i f   d v i d . r e a l 
             t h e n 
                 d o ; 
 	 c a l l   o u t   ( A L M ,   " ^ / d v i d . ^ i : " ,   d v i d . n d x ) ; 
 	 c a l l   o u t   ( A L M ,   " ^ - d v i d . v e r s i o n ^ - ^ i " ,   c o m p _ d v i d _ v e r s i o n ) ; 
 	 c a l l   o u t   ( A L M ,   " ^ - d v i d . d e v n a m e ^ - ^ a , ^ i " ,   d v i d . d e v n a m e , 
 	           l e n g t h   ( d v i d . d e v n a m e ) ) ; 
 	 c a l l   o u t   ( A L M ,   " ^ - d v i d . d v t _ r ^ - d v t . ^ i " ,   d v i d . d v t _ n d x ) ; 
                 e n d ; 
             c a l l   o u t   ( A L M ,   " ^ / ^ - d v i d _ s e g d e f ^ - ^ i , ^ a " ,   d v i d . n d x ,   d v i d . r e f n a m e ) ; 
         e n d ; 
 
         d o   d v t _ p   =   d v t l _ p   ( 1 )   r e p e a t   ( d v t . n e x t )   w h i l e   ( d v t _ p   ^ =   n u l l   ( ) ) ; 
             p r e n t _ p   =   d v t . p r e n t ; 
             c o n s t . d e v p t r   =   d v t . r e f ; 
             c a l l   o u t   ( A L M ,   " ^ - e v e n ^ / d v t . ^ i : " ,   d v t . n d x ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . d e v c l a s s ^ - ^ a , ^ i " ,   c o m p _ d v t . d e v c l a s s , 
 	   l e n g t h   ( c o m p _ d v t . d e v c l a s s ) ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . o u t p r o c ^ - ^ a " ,   p r e n t . o u t p r o c ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . f o o t p r o c ^ - ^ a " ,   p r e n t . f o o t p r o c ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . a r t p r o c ^ - ^ a " ,   p r e n t . a r t p r o c ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . d i s p l a y p r o c ^ - ^ a " ,   D i s p l a y P r o c   | |   " $ d i s p l a y " ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . m i n _ W S ^ - ^ i " ,   c o m p _ d v t . m i n _ W S ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . m i n _ l e a d ^ - ^ i " ,   c o m p _ d v t . m i n _ l e a d ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . v m t _ m i n ^ - ^ i " ,   c o m p _ d v t . v m t _ m i n ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . v m b _ m i n ^ - ^ i " ,   c o m p _ d v t . v m b _ m i n ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . d e f _ v m t ^ - ^ i " ,   c o m p _ d v t . d e f _ v m t ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . d e f _ v m h ^ - ^ i " ,   c o m p _ d v t . d e f _ v m h ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . d e f _ v m f ^ - ^ i " ,   c o m p _ d v t . d e f _ v m f ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . d e f _ v m b ^ - ^ i " ,   c o m p _ d v t . d e f _ v m b ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . p d w _ m a x ^ - ^ i " ,   c o m p _ d v t . p d w _ m a x ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . p d l _ m a x ^ - ^ i " ,   c o m p _ d v t . p d l _ m a x ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . u p s h i f t ^ - ^ i " ,   c o m p _ d v t . u p s h i f t ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . i n i t _ p s ^ - ^ i " ,   c o m p _ d v t . i n i t _ p s ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . l e t t e r s p ^ - ^ i " ,   c o m p _ d v t . l e t t e r s p ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . m a x _ p a g e s ^ - ^ i " ,   c o m p _ d v t . m a x _ p a g e s ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . m a x _ f i l e s ^ - ^ i " ,   c o m p _ d v t . m a x _ f i l e s ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . i n i t _ f a m ^ - ^ i " ,   c o m p _ d v t . i n i t _ f a m ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . i n i t _ m e m ^ - ^ i " ,   c o m p _ d v t . i n i t _ m e m ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . f o o t _ f a m ^ - ^ i " ,   c o m p _ d v t . f o o t _ f a m ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . f o o t _ m e m ^ - ^ i " ,   c o m p _ d v t . f o o t _ m e m ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . i n i t _ f a m i l y ^ - ^ a , ^ i " ,   c o m p _ d v t . i n i t _ f a m i l y , 
 	   l e n g t h   ( c o m p _ d v t . i n i t _ f a m i l y ) ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . i n i t _ m e m b e r ^ - ^ a , ^ i " ,   c o m p _ d v t . i n i t _ m e m b e r , 
 	   l e n g t h   ( c o m p _ d v t . i n i t _ m e m b e r ) ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . a t d _ r ^ 2 - ^ a " ,   f m t _ s t r _ r   ( c o m p _ d v t . a t d _ r ) ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . d v c _ r ^ 2 - d v c ^ . 3 b " ,   c o m p _ d v t . d v c _ r ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . c o m m e n t _ r ^ - ^ a " ,   f m t _ s t r _ r   ( c o m p _ d v t . c o m m e n t _ r ) ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . c l e a n u p _ r ^ - ^ a " ,   f m t _ s t r _ r   ( c o m p _ d v t . c l e a n u p _ r ) ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . m e d s e l _ t a b l e _ r ^ - m e d _ s e l . ^ d " ,   d v t . n d x ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . f o o t _ f a m i l y ^ - ^ a , ^ i " ,   c o m p _ d v t . f o o t _ f a m i l y , 
 	   l e n g t h   ( c o m p _ d v t . f o o t _ f a m i l y ) ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . f o o t _ m e m b e r ^ - ^ a , ^ i " ,   c o m p _ d v t . f o o t _ m e m b e r , 
 	   l e n g t h   ( c o m p _ d v t . f o o t _ m e m b e r ) ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . s w s ^ 2 - ^ w " ,   s t r i n g   ( c o m p _ d v t . s w s ) ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . o p e n _ m o d e ^ - . ^ [ s t r ^ ; s e q ^ ] _ o u t . " , 
 	   ( c o m p _ d v t . o p e n _ m o d e   =   2 ) ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . r e c l e n g ^ - ^ i " ,   c o m p _ d v t . r e c l e n g ) ; 
             c a l l   o u t   ( A L M ,   " ^ - d v t . f a m i l y _ c t ^ - ^ i " ,   c o m p _ d v t . f a m i l y _ c t ) ; 
 
             d o   f a m i l y _ i   =   1   t o   c o m p _ d v t . f a m i l y _ c t ; 
                 m e m _ p   =   p t r   ( a r e a 1 _ p ,   c o m p _ d v t . f a m i l y   ( f a m i l y _ i ) . m e m b e r _ r ) ; 
                 c a l l   o u t   ( A L M ,   " ^ - d v t . . m e m b e r _ r ^ - m e m . ^ d " ,   m e m . r e f n o ) ; 
                 c a l l   o u t   ( A L M ,   " ^ - d v t . . n a m e ^ 2 - ^ a , ^ i " ,   c o m p _ d v t . f a m i l y   ( f a m i l y _ i ) . n a m e , 
 	       3 2 ) ; 
             e n d ; 
 
             c a l l   o u t   ( A L M ,   " ^ / m e d _ s e l . ^ i : " ,   d v t . n d x ) ; 
             c a l l   o u t   ( A L M ,   " ^ - m e d _ s e l _ t a b . c o u n t ^ - ^ i " ,   v i e w . c o u n t ) ; 
             d o   m e d _ s e l _ i   =   1   t o   v i e w . c o u n t ; 
                 c a l l   o u t   ( A L M ,   " ^ - m e d _ s e l _ t a b . . r e f _ r ^ - ^ a ^ - ^ i " , 
 	       f m t _ s t r _ r   ( m e d _ s e l _ t a b . r e f _ r   ( m e d _ s e l _ i ) ) ,   m e d _ s e l _ i ) ; 
             e n d ; 
         e n d ; 
 
         d o   m e m _ p   =   m e m l _ p   ( 1 )   r e p e a t   ( m e m . n e x t )   w h i l e   ( m e m _ p   ^ =   n u l l   ( ) ) ; 
             i f   m e m . r e f n o   =   m e m . s e q n o 
             t h e n 
                 d o ; 
 	 m e m b e r _ p t r   =   m e m . r e f _ p ; 
 	 c a l l   o u t   ( A L M ,   " m e m . ^ d : " ,   m e m . s e q n o ) ; 
 	 c a l l   o u t   ( A L M ,   " ^ - m e m b e r . c o u n t ^ - ^ i " ,   m e m b e r . c o u n t ) ; 
 	 d o   m e m _ i   =   1   t o   m e m b e r . c o u n t ; 
 	     f n t _ p   =   p t r   ( a r e a 2 _ p ,   m e m b e r . f o n t _ r   ( m e m _ i ) ) ; 
 	     c a l l   o u t   ( A L M ,   " ^ - m e m b e r . . f o n t _ r ^ - f . ^ i " ,   f n t . r e f n o ) ; 
 	     c a l l   o u t   ( A L M ,   " ^ - m e m b e r . . s i z e _ r ^ - s i z e . ^ i " , 
 	               a d d r   ( m e m b e r . s i z e _ r   ( m e m _ i ) )   - >   b f b ) ; 
 	     c a l l   o u t   ( A L M ,   " ^ - m e m b e r . . S c a l e ^ - ^ i , ^ i " ,   m e m b e r . S c a l e x   ( m e m _ i ) , 
 	               m e m b e r . S c a l e y   ( m e m _ i ) ) ; 
 	     c a l l   o u t   ( A L M ,   " ^ - m e m b e r . . n a m e ^ - ^ a , ^ i " ,   m e m b e r . n a m e   ( m e m _ i ) , 
 	               l e n g t h   ( m e m b e r . n a m e   ( m e m _ i ) ) ) ; 
 	 e n d ; 
                 e n d ; 
         e n d ; 
 
         c a l l   o u t   ( A L M ,   " ^ | " ) ; 	 	 / *   e j e c t   p a g e   b e f o r e   f o n t s 	               * / 
         d o   f n t _ p   =   f n t l _ p   ( 1 )   r e p e a t   ( f n t . n e x t )   w h i l e   ( f n t _ p   ^ =   n u l l   ( ) ) ; 
             f o n t _ p t r   =   f n t . p t ; 
             u n i _ p   =   p t r   ( f n t . p t ,   f o n t . u n i t s _ r ) ; 
             o p u _ p   =   p t r   ( f n t . p t ,   f o n t . o p u t _ r ) ; 
             c a l l   o u t   ( A L M ,   " f . ^ i : ^ 2 - " " ^ a " ,   f n t . r e f n o ,   f n t . n a m e ) ; 
             c a l l   o u t   ( A L M ,   " ^ - f o n t . o p u t _ r ^ - o p u . ^ i " ,   o p u . r e f n o ) ; 
             c a l l   o u t   ( A L M ,   " ^ - f o n t . u n i t s _ r ^ - u n i . ^ i " ,   u n i . r e f n o ) ; 
             c a l l   o u t   ( A L M ,   " ^ - f o n t . r e l _ u n i t s ^ - ^ i " ,   f o n t . r e l _ u n i t s ) ; 
             c a l l   o u t   ( A L M ,   " ^ - f o n t . f o o t s e p ^ - ( ^ 1 a ) " ,   f o n t . f o o t s e p ) ; 
             c a l l   o u t   ( A L M ,   " ^ - f o n t . f i l l ^ -       " ) ; 
             c a l l   o u t   ( A L M ,   " ^ - f o n t . m i n _ w s p ^ - ^ i " ,   f o n t . m i n _ w s p ) ; 
             c a l l   o u t   ( A L M ,   " ^ - f o n t . a v g _ w s p ^ - ^ i " ,   f o n t . a v g _ w s p ) ; 
             c a l l   o u t   ( A L M ,   " ^ - f o n t . m a x _ w s p ^ - ^ i " ,   f o n t . m a x _ w s p ) ; 
         e n d ; 
 
         d o   u n i _ p   =   u n i l _ p   ( 1 )   r e p e a t   ( u n i . n e x t )   w h i l e   ( u n i _ p   ^ =   n u l l   ( ) ) ; 
             i f   u n i . r e f n o   =   u n i . s e q n o 
             t h e n 
                 d o ; 
 	 c a l l   o u t   ( A L M ,   " u n i . ^ i : " ,   u n i . s e q n o ) ; 
 	 u n i t s _ p t r   =   u n i . r e f _ p ; 
 	 m e d i a w i d t h   =   u n i t s   ( 0 ) ; 
 	 d u p _ c t   =   1 ; 
 	 d o   i   =   1   t o   5 1 1 ; 
 	     i f   ( m e d i a w i d t h   =   u n i t s   ( i ) ) 
 	     t h e n   d u p _ c t   =   d u p _ c t   +   1 ; 
 	     e l s e 
 	         d o ; 
 	             c a l l   o u t   ( A L M ,   " ^ - u n i t s   ( ^ i ) , ^ [ 0 ^ ; ^ i ^ ] " ,   d u p _ c t , 
 	 	   ( m e d i a w i d t h   =   n u l w i d t h ) ,   m e d i a w i d t h ) ; 
 	             m e d i a w i d t h   =   u n i t s   ( i ) ; 
 	             d u p _ c t   =   1 ; 
 	         e n d ; 
 	 e n d ; 
 	 c a l l   o u t   ( A L M ,   " ^ - u n i t s   ( ^ i ) , ^ [ 0 ^ ; ^ i ^ ] " ,   d u p _ c t , 
 	           ( m e d i a w i d t h   =   n u l w i d t h ) ,   m e d i a w i d t h ) ; 
                 e n d ; 
         e n d ; 
 
         d o   o p u _ p   =   o p u l _ p   ( 1 )   r e p e a t   ( o p u . n e x t )   w h i l e   ( o p u _ p   ^ =   n u l l   ( ) ) ; 
             i f   o p u . r e f n o   =   o p u . s e q n o 
             t h e n 
                 d o ; 
 	 c a l l   o u t   ( A L M ,   " o p u . ^ i : " ,   o p u . s e q n o ) ; 
 	 o p u t _ p   =   o p u . r e f _ p ; 
 	 c a l l   o u t   ( A L M ,   " ^ - o p u t . d a t a _ c t ^ - ^ i " ,   o p u t . d a t a _ c t ) ; 
 	 s k i p _ c t   =   0 ; 
 	 d o   i   =   0   t o   o p u t . d a t a _ c t ; 
 	     i f   ( o p u t . w h a t _ r   ( i )   =   " 0 " b ) 
 	     t h e n   s k i p _ c t   =   s k i p _ c t   +   1 ; 
 	     e l s e 
 	         d o ; 
 	             i f   ( s k i p _ c t   >   0 ) 
 	             t h e n   c a l l   o u t   ( A L M ,   " ^ - n o _ c h   ( ^ i ) " ,   s k i p _ c t ) ; 
 	             s k i p _ c t   =   0 ; 
 	             c a l l   o u t   ( A L M ,   " ^ - c h         ^ i , ^ a     [ ^ [ n u l l ^ s ^ ; ^ i ^ ] ] ^ - ^ a " , 
 	 	   o p u t . w h i c h   ( i ) ,   f m t _ s t r _ r   ( ( o p u t . w h a t _ r   ( i ) ) ) , 
 	 	   ( u n i t s   ( i )   =   n u l w i d t h ) ,   u n i t s   ( i ) ,   b i t n a m e   ( i ) ) ; 
 	         e n d ; 
 	 e n d ; 
                 e n d ; 
         e n d ; 
 
         d o   i   =   1   t o   s i z e _ l i s t . c o u n t ; 
             s i z e l _ p   =   s i z e _ l i s t . p t   ( i ) ; 
             c a l l   o u t   ( A L M ,   " ^ / s i z e . ^ i : " ,   i ) ; 
             c a l l   o u t   ( A L M ,   " ^ - s i z e l . v a l _ c t ^ - ^ i " ,   s i z e l . v a l _ c t ) ; 
             d o   j   =   1   t o   s i z e l . v a l _ c t ; 
                 c a l l   o u t   ( A L M ,   " ^ - s i z e l . . v a l ^ - ^ d " ,   s i z e l . v a l   ( j ) ) ; 
             e n d ; 
         e n d ; 
 
         c a l l   o u t   ( A L M ,   " ^ / . n u l _ s t r . : ^ - z e r o " ) ; 
         d o   j   =   2   t o   s t r i n g _ l   ( 2 ) ; 
             o c t _ p   =   s t r l _ p   ( 2 ,   j ) ; 
             o _ s   =   d i v i d e   ( o c t _ p   - >   b s t r . l e n g   +   3 ,   4 ,   1 7 ,   0 ) ; 
             i f   j   =   2 
             t h e n   c a l l   o u t   ( A L M ,   " ^ / s t r : ^ - d e c ^ - ^ d " ,   o c t _ p   - >   o c t . c t ) ; 
             e l s e   c a l l   o u t   ( A L M ,   " ^ / ^ - d e c ^ - ^ d ^ 2 - ^ a " ,   o c t _ p   - >   o c t . c t , 
 	             f m t _ s t r _ r   ( r e l   ( o c t _ p ) ) ) ; 
             d o   j j j   =   1   t o   o _ s ; 
                 c a l l   o u t   ( A L M ,   " ^ - o c t ^ - ^ w ^ - ^ a " ,   o c t _ p   - >   o c t . e   ( j j j ) , 
 	       f m t _ s t r _ c m t   ( o c t _ p   - >   o c t . e   ( j j j ) , 
 	       o c t _ p   - >   o c t . c t   -   4   *   ( j j j   -   1 ) ) ) ; 
             e n d ; 
         e n d ; 
 
         c a l l   o u t   ( A L M ,   " ^ / ^ - e n d " ) ; 
 
     e n d   o u t p u t t e r ; 
 
 / * * * *   + + +   O U T P U T T E R   U T I L I T Y :     F M T _ S T R _ C M T   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
 f m t _ s t r _ c m t : 
     p r o c   ( O c t ,   L e n )   r e t u r n s   ( c h a r   ( 4 )   a l i g n e d ) ; 
 
         d c l   O c t 	       f i x e d   b i n   ( 3 5 ) ; 
         d c l   L e n 	       f i x e d   b i n ; 
         d c l   i d x 	       f i x e d   b i n ; 
         d c l   s t r 	       c h a r   ( 4 )   a l i g n e d ; 
 
         u n s p e c   ( s t r )   =   u n s p e c   ( O c t ) ; 
         i f   L e n   <   4 
         t h e n   s u b s t r   ( s t r ,   L e n   +   1 )   =   " " ; 
 
         d o   i d x   =   1   t o   m i n   ( 4 ,   L e n ) ; 
             i f   s u b s t r   ( s t r ,   i d x ,   1 )   =   " ; " 
 	   |   r a n k   ( s u b s t r   ( s t r ,   i d x ,   1 ) )   <   r a n k   ( "   " ) 
 	   |   r a n k   ( s u b s t r   ( s t r ,   i d x ,   1 ) )   >   r a n k   ( " ~ " ) 
             t h e n   s u b s t r   ( s t r ,   i d x ,   1 )   =   " . " ; 
         e n d ; 
 
         r e t u r n   ( s t r ) ; 
 
     e n d   f m t _ s t r _ c m t ; 
 
 / * * * *   + + +   O U T P U T T E R   U T I L I T Y :   F M T _ S T R _ R   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
 f m t _ s t r _ r : 
     p r o c   ( R e l )   r e t u r n s   ( c h a r   ( 9 ) ) ; 
 
         d c l   R e l 	       b i t   ( 1 8 )   a l i g n e d ; 
         d c l   p i c 	       p i c t u r e   " 9 9 9 9 9 " ; 
 
         i f   R e l   =   " " b 
         t h e n   r e t u r n   ( " . n o _ r e p l . " ) ; 
 
         i f   R e l   =   r e l   ( s t r l _ p   ( 2 ,   1 ) ) 
         t h e n   r e t u r n   ( " . n u l _ s t r . " ) ; 
 
         p i c   =   b i n a r y   ( R e l ,   1 8 )   -   w o r d n o   ( s t r l _ p   ( 2 ,   2 ) ) ; 
         r e t u r n   ( " s t r + "   | |   p i c ) ; 
 
     e n d   f m t _ s t r _ r ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + + + +   P A R T   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
 p a r t : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
 / * * * *   f o r m a t :     o f f   * / 
 d c l   a r t _ t o k e n s 	 c h a r   ( 3 8 8 )   i n i t 	 / *   t o k e n   s t r i n g   * / 
       ( " [       ]       {       }       (       )       |       | |     o       /       X       d       m       \       c       t       "   | | 
         " v       ^       < -     - >     D ^     D <     D >     D v     C l f   C r t   - s t r - r u l - s t p | r u l / r u l \ r u l "   | | 
         " [ t p   ] t p   { t p   } t p   l p t p r p t p | t p   | | t p [ h t   ] h t   { h t   } h t   l p h t r p h t | h t   | | h t "   | | 
         " [ m d   ] m d   { m d   } m d   l p m d r p m d | m d   | | m d [ h b   ] h b   { h b   } h b   l p h b r p h b | h b   | | h b "   | | 
         " [ b t   ] b t   { b t   } b t   l p b t r p b t | b t   | | b t [ f l   ] f l   { f l   } f l   l p f l r p f l | f l   | | f l "   | | 
         " P I     p i     b x t l b x t   b x t r b x l   b x x   b x r   b x b l b x b   b x b r l z t l l z t r l z l   l z r   l z b l l z b r " ) ; 
 d c l   a r t _ c o d e s 	 ( 9 7 )   c h a r   ( 1 )   i n i t 	 / *   c o d e s   * / 
     ( a r t . o n e   ( 1 ) ,   a r t . o n e   ( 2 ) ,   a r t . o n e   ( 3 ) ,   a r t . o n e   ( 4 ) ,   a r t . o n e   ( 5 ) , 
       a r t . o n e   ( 6 ) ,   a r t . o n e   ( 7 ) ,   a r t . o n e   ( 8 ) ,   a r t . o n e   ( 9 ) ,   a r t . o n e   ( 1 0 ) , 
       a r t . o n e   ( 1 1 ) ,   a r t . o n e   ( 1 2 ) ,   a r t . o n e   ( 1 3 ) ,   a r t . l s l n t ,   c r i g h t ,   t m a r k , 
       a r t . d a r o ,   a r t . u p a r o ,   a r t . l a r o ,   a r t . r a r o ,   a r t . d i a m . t o p ,   a r t . d i a m . l v e r t , 
       a r t . d i a m . r v e r t ,   a r t . d i a m . b o t t o m ,   a r t . l c i r c ,   a r t . r c i r c ,   a r t . h o r i z . s t a r t , 
       a r t . h o r i z . l i n e ,   a r t . h o r i z . t e r m ,   a r t . v p a r t ,   a r t . r s l n t ,   a r t . l s l n t , 
       a r t . t o p   ( 1 ) ,   a r t . t o p   ( 2 ) ,   a r t . t o p   ( 3 ) ,   a r t . t o p   ( 4 ) ,   a r t . t o p   ( 5 ) , 
       a r t . t o p   ( 6 ) ,   a r t . t o p   ( 7 ) ,   a r t . t o p   ( 8 ) ,   a r t . h a l f _ t o p   ( 1 ) ,   a r t . h a l f _ t o p   ( 2 ) , 
       a r t . h a l f _ t o p   ( 3 ) ,   a r t . h a l f _ t o p   ( 4 ) ,   a r t . h a l f _ t o p   ( 5 ) ,   a r t . h a l f _ t o p   ( 6 ) , 
       a r t . h a l f _ t o p   ( 7 ) ,   a r t . h a l f _ t o p   ( 8 ) ,   a r t . m i d d l e   ( 1 ) ,   a r t . m i d d l e   ( 2 ) , 
       a r t . m i d d l e   ( 3 ) ,   a r t . m i d d l e   ( 4 ) ,   a r t . m i d d l e   ( 5 ) ,   a r t . m i d d l e   ( 6 ) , 
       a r t . m i d d l e   ( 7 ) ,   a r t . m i d d l e   ( 8 ) ,   a r t . h a l f _ b o t t o m   ( 1 ) ,   a r t . h a l f _ b o t t o m   ( 2 ) , 
       a r t . h a l f _ b o t t o m   ( 3 ) ,   a r t . h a l f _ b o t t o m   ( 4 ) ,   a r t . h a l f _ b o t t o m   ( 5 ) , 
       a r t . h a l f _ b o t t o m   ( 6 ) ,   a r t . h a l f _ b o t t o m   ( 7 ) ,   a r t . h a l f _ b o t t o m   ( 8 ) , 
       a r t . b o t t o m   ( 1 ) ,   a r t . b o t t o m   ( 2 ) ,   a r t . b o t t o m   ( 3 ) ,   a r t . b o t t o m   ( 4 ) , 
       a r t . b o t t o m   ( 5 ) ,   a r t . b o t t o m   ( 6 ) ,   a r t . b o t t o m   ( 7 ) ,   a r t . b o t t o m   ( 8 ) , 
       a r t . o t h e r _ p a r t   ( 1 ) ,   a r t . o t h e r _ p a r t   ( 2 ) ,   a r t . o t h e r _ p a r t   ( 3 ) , 
       a r t . o t h e r _ p a r t   ( 4 ) ,   a r t . o t h e r _ p a r t   ( 5 ) ,   a r t . o t h e r _ p a r t   ( 6 ) , 
       a r t . o t h e r _ p a r t   ( 7 ) ,   a r t . o t h e r _ p a r t   ( 8 ) ,   a r t . P I ,   a r t . p i , 
       a r t . b o x . t l ,   a r t . b o x . t ,   a r t . b o x . t r ,   a r t . b o x . l ,   a r t . b o x . x ,   a r t . b o x . r ,   
       a r t . b o x . b l ,   a r t . b o x . b ,   a r t . b o x . b r ,   a r t . l o z . t l ,   a r t . l o z . t r , 
       a r t . l o z . l ,   a r t . l o z . r ,   a r t . l o z . b l ,   a r t . l o z . b r ) ; 
 / * * * *   f o r m a t :     o n   * / 
 
         d c l   i 	 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   p a r t _ t o k e n 	       c h a r   ( 4 ) ; 	 / *   t o k e n   e x p a n d e d   t o   4   c h a r s   * / 
 
         p a r t _ t o k e n   =   t o k e n _ v a l u e ; 	 	 / *   c o p y   t h e   t o k e n   * / 
 
         i   =   i n d e x   ( a r t _ t o k e n s ,   p a r t _ t o k e n ) ;   / *   s c a n   a r t   t o k e n s   * / 
         i f   i   >   0 	 	 	 / *   f o u n d ?   * / 
         t h e n 
             d o ; 
                 i   =   d i v i d e   ( i ,   4 ,   1 7 ,   0 )   +   1 ; 	 / *   c a l c u l a t e   c o d e   i n d e x   * / 
                 I n p u t   =   a r t _ c o d e s   ( i ) ; 	 / *   f e t c h   t h e   c o d e   * / 
                 i f   d t _ s w 
                 t h e n   c a l l   i o a _ $ n n l   ( " < p a r t > " ) ; 
                 r e t u r n   ( " 1 " b ) ; 	 	 / *   r e t u r n   t r u e   * / 
             e n d ; 
 
         e l s e   r e t u r n   ( " 0 " b ) ; 
     e n d   p a r t ; 
 
 / * * * *   + + + [ D e b u g   R o u t i n e ] + + + + + + + + +   P U S H / P O P   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 
         d c l   S t a c k 	       ( 2 0 )   c h a r   ( 1 6 ) ; 
 
 
 / * * * *   + + + [ F u n c t i o n ] + + + + + + + + + + + + + +   S C A L E _ U N I T   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   c o n v e r t   u n i t s   t o   m i l l i p o i n t s 	 	 	 	               * / 
 
 s c a l e _ u n i t : 
     p r o c   ( t h e _ s c a l e )   r e t u r n s   ( f i x e d   b i n   ( 3 1 ) ) ; 
 
         d c l   t h e _ s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   ( p i ,   p t ) 	       c h a r   ( 1 0 ) ; 
 
         i f   ( t h e _ s c a l e   >   0 ) 	 	 / *   n o t   p i c a / p o i n t   f o r m 	               * / 
         t h e n   r e t u r n   ( t h e _ s c a l e   *   b i n   ( b e f o r e   ( t o k e n _ v a l u e ,   " . " ) ) 
 	         + 
 	         d i v i d e   ( t h e _ s c a l e 
 	         *   b i n   ( s u b s t r   ( a f t e r   ( t o k e n _ v a l u e ,   " . " )   | |   " 0 0 0 " ,   1 ,   3 ) ) ,   1 0 0 0 , 
 	         1 7 ,   0 ) ) ; 
 
         r e t u r n   ( h s c a l e s   ( 5 )   *   b i n   ( b e f o r e   ( t o k e n _ v a l u e ,   " . " ) ) 
                   +   h s c a l e s   ( 6 )   *   b i n   ( a f t e r   ( t o k e n _ v a l u e ,   " . " ) ) ) ; 
 
     e n d   s c a l e _ u n i t ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + +   S I Z E N A M E   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
 s i z e n a m e : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d c l   i 	 	       f i x e d   b i n ; 
 
         d o   i   =   1   t o   s i z e _ l i s t . c o u n t ; 	 / *   s c a n   s i z e t a b l e   n a m e s   * / 
             i f   s i z e _ l i s t . n a m e   ( i )   =   t o k e n _ v a l u e 
             t h e n 
                 d o ; 
 	 t o k e n . N v a l u e   =   i ; 	 	 / *   s e t   i n d e x   v a l u e   * / 
 	 i f   d t _ s w 
 	 t h e n   c a l l   i o a _ $ n n l   ( " < s i z e n a m e > " ) ; 
 	 r e t u r n   ( " 1 " b ) ; 
                 e n d ; 
         e n d ; 
 
         r e t u r n   ( " 0 " b ) ; 
     e n d   s i z e n a m e ; 
 
 / * * * *   + + + [ F u n c t i o n ] + + + + + + + + + + + + + +   S H O W _ N A M E   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   c o n v e r t s   a   M e d i a C h a r   n a m e   i n t o   d i s p l a y   f o r m   i f   n e e d e d . 	 	               * / 
 s h o w _ n a m e : 
     p r o c   ( s t r )   r e t u r n s   ( c h a r   ( 3 2 ) ) ; 
 
         d c l   s t r 	       c h a r   ( * ) ; 
 
         d c l   b i t s 	       ( 3 )   b i t   ( 3 )   u n a l ; 
         d c l   b i n s 	       ( 3 )   f i x e d   b i n   ( 3 )   u n s i g n e d   u n a l   b a s e d   ( a d d r   ( b i t s ) ) ; 
 
         i f   ( s u b s t r   ( s t r ,   1 ,   1 )   ^ =   " [ " ) 
         t h e n   r e t u r n   ( s t r ) ; 
         i f   ( s u b s t r   ( s t r ,   2 ,   1 )   >   "   " )   &   ( s u b s t r   ( s t r ,   2 ,   1 )   < =   " ~ " ) 
         t h e n   r e t u r n   ( " " " "   | |   s u b s t r   ( s t r ,   2 ,   1 )   | |   " " " " ) ; 
         s t r i n g   ( b i t s )   =   u n s p e c   ( s u b s t r   ( s t r ,   2 ,   1 ) ) ; 
         r e t u r n   ( s u b s t r   ( " 0 1 2 3 4 5 6 7 " ,   b i n s   ( 1 )   +   1 ,   1 ) 
                   | |   s u b s t r   ( " 0 1 2 3 4 5 6 7 " ,   b i n s   ( 2 )   +   1 ,   1 ) 
                   | |   s u b s t r   ( " 0 1 2 3 4 5 6 7 " ,   b i n s   ( 3 )   +   1 ,   1 ) ) ; 
 
     e n d   s h o w _ n a m e ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + + +   S W I T C H   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   c h e c k   f o r   o n / o f f 	 	 	 	 	 	               * / 
 / *   S E T S : 	 t o k e n . N v a l u e   -   0   ( o f f )   1   ( o n ) 	 	 	 	               * / 
 s w i t c h : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         i f   t o k e n _ v a l u e   =   " o n " 
         t h e n   t o k e n . N v a l u e   =   1 ; 
         e l s e   i f   t o k e n _ v a l u e   =   " o f f " 
         t h e n   t o k e n . N v a l u e   =   0 ; 
         e l s e   r e t u r n   ( " 0 " b ) ; 
         i f   d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " < s w i t c h > " ) ; 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   s w i t c h ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + +   T A B L E _ N A M E   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
 t a b l e _ n a m e : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d c l   i 	 	       f i x e d   b i n ; 	 / *   s c a n   d v i d   l i s t   n a m e s   * / 
         d o   d v i d _ p   =   d v i d l _ p   ( 1 )   r e p e a t   ( d v i d . n e x t )   w h i l e   ( d v i d _ p   ^ =   n u l l   ( ) ) ; 
             i f   d v i d . r e f n a m e   =   t o k e n _ v a l u e 
             t h e n 
                 d o ; 
 	 i f   d v i d . d v t _ n d x   =   d v t _ c t   +   1 
 	 t h e n 
 	     d o ; 
 	         c a l l   E R R O R   ( c i r c u l a r _ D e v i c e _ d e f ) ; 
 	         r e t u r n   ( " 0 " b ) ; 
 	     e n d ; 
 	 t o k e n . N v a l u e   =   d v i d . d v t _ n d x ; 	 / *   s e t   i n d e x   v a l u e 	 	               * / 
 	 i f   d t _ s w 
 	 t h e n   c a l l   i o a _ $ n n l   ( " < t a b l e _ n a m e > " ) ; 
 	 r e t u r n   ( " 1 " b ) ; 
                 e n d ; 
         e n d ; 
         r e t u r n   ( " 0 " b ) ; 
 
     e n d   t a b l e _ n a m e ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + + + + + +   U N I T K E Y   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
 u n i t k e y : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         d c l   i 	 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   u n i t _ k e y _ l i s t     ( 7 )   c h a r   ( 2 ) 	 / *   l i s t   o f   U n i t s   k e y w o r d s   * / 
 	 	       s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " p i " ,   " e l " ,   " i n " ,   " m m " ,   " p c " ,   " p t " ,   " p p " ) ; 
 
         d o   i   =   1   t o   h b o u n d   ( u n i t _ k e y _ l i s t ,   1 ) 
                   w h i l e   ( t o k e n _ v a l u e   ^ =   u n i t _ k e y _ l i s t   ( i ) ) ; 
         e n d ; 
 
         i f   i   >   h b o u n d   ( u n i t _ k e y _ l i s t ,   1 ) 
         t h e n 
             d o ; 
                 c a l l   E R R O R   ( i n v _ U n i t s _ k e y w o r d ) ; 
                 r e t u r n   ( " 0 " b ) ; 
             e n d ; 
 
         t o k e n . N v a l u e   =   i ; 
         i f   d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " < u n i t k e y > " ) ; 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   u n i t k e y ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + 	 V A L I D _ D E V I C E _ N A M E   + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t   f o r   t o k e n   b e i n g   a   v a l i d   D e v i c e   n a m e ,   i . e .   a n   < i d e n t >   w h i c h   i s   n o t         * / 
 / *     a l r e a d y   d e f i n e d   a s   a   D e v i c e   n a m e . 	 	 	 	               * / 
 
 v a l i d _ D e v i c e _ n a m e : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         i f   ^ i d e n t _   ( ) 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         d o   d v i d _ p   =   d v i d l _ p   ( 1 )   r e p e a t   ( d v i d . n e x t )   w h i l e   ( d v i d _ p   ^ =   n u l l   ( ) ) ; 
             i f   t o k e n _ v a l u e   =   d v i d . r e f n a m e 
             t h e n 
                 d o ; 
 	 c a l l   E R R O R   ( d u p _ D e v i c e ) ; 
 	 r e t u r n   ( " 0 " b ) ; 
                 e n d ; 
         e n d ; 
         i f   d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " < v a l i d _ D e v i c e _ n a m e > " ) ; 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   v a l i d _ D e v i c e _ n a m e ; 
 
 / * * * *   + + + [ S y n t a x   F u n c t i o n ] + + + 	 V A L I D _ M E D I A _ N A M E   + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T e s t   f o r   t o k e n   b e i n g   a   v a l i d   M e d i a   n a m e ,   i . e .   a n   < i d e n t >   w h i c h   i s   n o t         * / 
 / *     a l r e a d y   d e f i n e d   a s   a   M e d i a   n a m e . 	 	 	 	               * / 
 
 v a l i d _ M e d i a _ n a m e : 
     p r o c   r e t u r n s   ( b i t   ( 1 )   a l i g n e d ) ; 
 
         i f   ^ i d e n t _   ( ) 
         t h e n   r e t u r n   ( " 0 " b ) ; 
         d o   i   =   1   t o   m e d i a . c o u n t ; 
             i f   ( m e d i a . n a m e   ( i )   =   t o k e n _ v a l u e ) 
             t h e n 
                 d o ; 
 	 c a l l   E R R O R   ( d u p _ M e d i a ) ; 
 	 r e t u r n   ( " 0 " b ) ; 
                 e n d ; 
         e n d ; 
         i f   d t _ s w 
         t h e n   c a l l   i o a _ $ n n l   ( " < v a l i d _ M e d i a _ n a m e > " ) ; 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   v a l i d _ M e d i a _ n a m e ; 
 
 s a v e _ u n r e f : 
         i f   " 0 " b 
         t h e n   c a l l   a _ d e b u g ; 
         g o t o   s a v e _ u n r e f ; 
 
 d b s : 
     e n t r y   ( x x x x ) ; 
         d b _ s t a r t   =   x x x x ; 
         r e t u r n ; 
         d c l   x x x x 	       c h a r   ( * ) ; 
 
 d b n : 
     e n t r y ; 
         d b _ s w   =   " 1 " b ; 
         r e t u r n ; 
 d b f : 
     e n t r y ; 
         d b _ s w   =   " 0 " b ; 
         r e t u r n ; 
 
 d t n : 
     e n t r y ; 
         d t _ s w   =   " 1 " b ; 
         r e t u r n ; 
 d t f : 
     e n t r y ; 
         d t _ s w   =   " 0 " b ; 
         r e t u r n ; 
 
 t r n : 
     e n t r y ; 
         t r _ s w   =   " 1 " b ; 
         r e t u r n ; 
 t r f : 
     e n t r y ; 
         t r _ s w   =   " 0 " b ; 
         r e t u r n ; 
 % p a g e ; 
 / *   + + + + + + + + + + + + + + + + + + + + + + + + + + +   L O O S E   V A R I A B L E S   + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
         d c l   A L M 	       p t r   i n i t   ( n u l l   ( ) ) ; 
 	 	 	 	 / *   i o c b   p o i n t e r   f o r   a l m   o u t p u t   f i l e   * / 
         d c l   a r g 	       c h a r   ( a r g l )   b a s e d   ( a r g p ) ; 
 	 	 	 	 / *   a   c o m m a n d   l i n e   a r g u m e n t   * / 
         d c l   a r g l 	       f i x e d   b i n ; 	 / *   l e n g t h   o f   a r g   * / 
         d c l   a r g p 	       p t r ; 	 	 / *   p o i n t e r   t o   a r g   * / 
         d c l   A r t E n t r y 	       c h a r   ( 3 2 )   v a r   i n i t   ( " a r t p r o c " ) ; 
 	 	 	 	 / *   a r t w o r k   p r o c   e n t r y   * / 
         d c l   A r t P r o c 	       c h a r   ( 3 2 )   v a r y i n g ; 
 	 	 	 	 / *   a r t w o r k   p r o c e d u r e   e n t r y n a m e   * / 
         d c l   A t d _ r 	       b i t   ( 1 8 )   i n i t   ( " 0 0 0 0 0 0 " b 3 ) ; 
 	 	 	 	 / *   d e f a u l t   a t t a c h   d e s c r   r e l p   * / 
         d c l   a t t a c h 	       c h a r   ( 2 5 6 )   v a r ; 
         d c l   A v g W o r d s p 	       f i x e d   b i n   i n i t   ( - 1 ) ; 
 	 	 	 	 / *   g l o b a l   a v e r a g e   w o r d s p a c e   * / 
         d c l   a z _ A Z 0 9 	       c h a r   ( 6 4 )   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " a b c d e f g h i j k l m n o p q r s t u v w x y z _ " 
 	 	       | |   " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z   0 1 2 3 4 5 6 7 8 9 " ) ; 
         d c l   b a c h _ s w 	       b i t   ( 1 ) ; 
         d c l   b f b 	       f i x e d   b i n   ( 3 5 )   b a s e d   a l i g n e d ; 
         d c l   b p p t r 	       p t r   b a s e d ; 
         d c l   b r e a k s 	       c h a r   ( 1 2 8 )   v a r   s t a t i c ; 
 	 	 	 	 / *   c o n t r o l   s t r i n g   f o r   l e x _ s t r i n g _   * / 
         d c l   c h 1 	       c h a r   ( 1 ) ; 
         d c l   c h a r _ v a l 	       f i x e d   b i n ; 
         d c l   c h a r i d 	       f i x e d   b i n ; 
         d c l   c h a r i d _ 	       f i x e d   b i n ; 
         d c l   c h e c k _ o p t 	       b i t   ( 1 )   s t a t i c ; 	 / *   c h e c k   m o d e   f l a g   * / 
         d c l   c l e a n u p 	       c o n d i t i o n ; 
         d c l   c o d e 	       f i x e d   b i n   ( 3 5 ) ; 
         d c l   C o m _ r 	       b i t   ( 1 8 ) ; 
         d c l   C l e a n _ r 	       b i t   ( 1 8 ) ; 
         d c l   d b _ s t a r t 	       c h a r   ( 1 2 )   i n t   s t a t i c   i n i t   ( " " ) ; 
         d c l   d b _ s w 	       b i t   ( 1 )   i n t   s t a t i c   i n i t   ( " 0 " b ) ; 
         d c l   d c l n a m e 	       c h a r   ( 8 ) ; 
         d c l   d e f a u l t _ v i e w       f i x e d   b i n ; 
         d c l   D e f V m t 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 4 8 0 0 0 ) ; 
         d c l   D e f V m h 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 2 4 0 0 0 ) ; 
         d c l   D e f V m f 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 2 4 0 0 0 ) ; 
         d c l   D e f V m b 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 4 8 0 0 0 ) ; 
         d c l   D e v C l a s s 	       c h a r   ( 2 4 )   i n i t   ( " t y p e w r i t e r " ) ; 
 	 	 	 	 / *   d e f a u l t   d e v i c e   c l a s s   * / 
         d c l   D e v i c e _ P t h i s _ t o k e n 
 	 	       p t r ; 
         d c l   D e v N a m e 	       c h a r   ( 2 4 )   i n i t   ( " a s c i i " ) ; 
 	 	 	 	 / *   d e f a u l t   d e v i c e   n a m e   * / 
         d c l   d n a m e 	       c h a r   ( 1 6 8 ) ; 	 / *   n a m e   o f   d i r   c o n t a i n i n g   e n a m e   * / 
         d c l   d o n e 	       b i t   ( 1 ) ; 
         d c l   d t _ s w 	       b i t   ( 1 ) ; 
         d c l   d u p _ c t 	       f i x e d   b i n ; 
         d c l   d v t _ i 	       f i x e d   b i n ; 
         d c l   e n a m e 	       c h a r   ( 3 2 ) ; 	 / *   i n p u t   e n t r y n a m e   ( n o   s u f f i x )   * / 
         d c l   E n d P a g e 	       b i t   ( 9 )   i n i t   ( " 0 " b ) ; 
         d c l   e r c d 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   e r r o r   c o d e   * / 
         d c l   f a m i l y _ i 	       f i x e d   b i n ; 
         d c l   f d 1 2 _ 8 	       f i x e d   d e c   ( 1 2 ,   8 ) ; 
         d c l   f i r s t _ t i m e 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 1 " b ) ; 
 	 	 	 	 / *   i n i t i n g   c o n t r o l   s w i t c h   * / 
         d c l   f i r s t _ t o k e n _ p     p t r ; 
         d c l   f o n t _ f a m 	       c h a r   ( 3 2 ) ; 
         d c l   f o n t _ m e m 	       c h a r   ( 3 2 ) ; 
         d c l   F o o t E n t r y 	       c h a r   ( 3 2 )   v a r y i n g / *   f o o t n o t e   p r o c e d u r e   e n t r y p o i n t   * / 
 	 	       i n i t   ( " f o o t p r o c " ) ; 
         d c l   f o o t e n t r y 	       c h a r   ( 3 2 ) ; 
         d c l   F o o t F a m i l y 	       c h a r   ( 3 2 ) ; 	 / *   g l o b a l   f o o t n o t e   f o n t   f a m i l y   n a m e     * / 
         d c l   f o o t f a m i l y 	       c h a r   ( 3 2 ) ; 
         d c l   F o o t M e m b e r 	       c h a r   ( 3 2 ) ; 	 / *   g l o b a l   f o o t n o t e   f o n t   m e m b e r   n a m e     * / 
         d c l   f o o t m e m b e r 	       c h a r   ( 3 2 ) ; 
         d c l   F o o t P r o c 	       c h a r   ( 3 2 )   v a r y i n g ; 
 	 	 	 	 / *   f o o t n o t e   p r o c e d u r e   e n t r y n a m e   * / 
         d c l   F o o t s e p 	       c h a r   ( 1 )   i n i t   ( " , " ) ; 
         d c l   h e l d _ P t h i s _ t o k e n 
 	 	       p t r ; 
         d c l   h o l d _ P t h i s _ t o k e n 
 	 	       p t r ; 
         d c l   H s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   g l o b a l   h o r   s c a l e   * / 
         d c l   h s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   l o c a l   h o r   s c a l e   * / 
         d c l   h s c a l e s 	       ( 7 )   f i x e d   b i n   ( 3 1 ) 
 	 	 	 	 / *   h o r   s c a l e   f a c t o r s   * / 
 	 	       s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 7 2 0 0 ,   6 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; 
         d c l   i 	 	       f i x e d   b i n ; 
         d c l   i g n o r e d _ b r e a k s   c h a r   ( 1 2 8 )   v a r   s t a t i c ; 
 	 	 	 	 / *   c o n t r o l   s t r i n g   f o r   l e x _ s t r i n g _   * / 
         d c l   i i 	       f i x e d   b i n ; 
         d c l   i i i 	       f i x e d   b i n ; 
         d c l   i n i t f a m i l y 	       c h a r   ( 3 2 ) ; 
         d c l   i n i t m e m b e r 	       c h a r   ( 3 2 ) ; 
         d c l   I n p u t 	       c h a r   ( 1 ) ; 
         d c l   i n p u t _ b i t c o u n t   f i x e d   b i n   ( 2 4 ) ; 	 / *   b i t   c o u n t   f o r   e n a m e   s e g m e n t   * / 
         d c l   i n p u t _ c h a r c o u n t 
 	 	       f i x e d   b i n   ( 2 4 ) ; 	 / *   c h a r   c o u n t   f o r   e n a m e   s e g m e n t   * / 
         d c l   i n p u t _ f i l e 	       c h a r   ( i n p u t _ c h a r c o u n t ) 
 	 	 	 	 / *   s o u r c e   f i l e   o v e r l a y   * / 
 	 	       b a s e d   ( i n p u t _ p t r ) ; 
         d c l   i n p u t _ p t r 	       p t r ; 	 	 / *   p o i n t   t o   e n a m e   s e g m e n t   * / 
         d c l   I n t e r l e a v e 	       b i t   ( 1 )   i n i t   ( " 0 " b ) ; 
         d c l   j 	 	       f i x e d   b i n ; 
         d c l   j j 	       f i x e d   b i n ; 
         d c l   J u s t i f y 	       b i t   ( 1 )   i n i t   ( " 0 " b ) ; 
         d c l   L e t t e r s p a c e 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) ; 
         d c l   l e x _ c t l _ c h a r s     c h a r   ( 1 2 8 )   v a r   s t a t i c ; 
 	 	 	 	 / *   c o n t r o l   s t r i n g   f o r   l e x _ s t r i n g _   * / 
         d c l   l e x _ d e l i m s 	       c h a r   ( 1 2 8 )   v a r   s t a t i c ; 
 	 	 	 	 / *   c o n t r o l   s t r i n g   f o r   l e x _ s t r i n g _   * / 
         d c l   l e x _ t e m p _ p t r       p t r   i n i t   ( n u l l   ( ) ) ; 
 	 	 	 	 / *   t e m p   s e g   f o r   l e x _ s t r i n g _   * / 
         d c l   l i k e _ t a b l e 	       f i x e d   b i n ; 
         d c l   l i s t _ n d x 	       f i x e d   b i n ; 
         d c l   l i s t _ o p t 	       b i t   ( 1 ) ; 	 / *   l i s t   o p t i o n   f l a g   * / 
 	 	 	 	 / *   f o n t   l o c a t o r   * / 
         d c l   l o c _ f o n t 	       f i x e d   b i n   ( 3 5 )   b a s e d ; 
         d c l   ( 
                 M a x F i l e s , 	 	 	 / *   g l o b a l   m a x i m u m   f i l e / r e e l 	               * / 
                 M a x W o r d s p , 	 	 	 / *   g l o b a l   m a x i m u m   w o r d s p a c e 	               * / 
                 M a x P a g e s , 	 	 	 / *   g l o b a l   m a x i m u m   p a g e s / f i l e 	               * / 
                 M a x P a g e L e n g t h 
                 ) 	 	       f i x e d   b i n   ( 3 1 )   i n i t   ( - 1 ) ; 
         d c l   M a x P a g e W i d t h       f i x e d   b i n   ( 3 1 )   i n i t   ( 9 7 9 2 0 0 ) ; 
         d c l   m e d i a 1 	       c h a r   ( 3 2 ) ; 
         d c l   m e d i a 2 	       c h a r   ( 3 2 ) ; 
         d c l   m e d i a b a s e 	       f i x e d   b i n ; 
         d c l   m e d i a c t 	       f i x e d   b i n ; 
         d c l   m e d i a w i d t h 	       f i x e d   b i n ; 
         d c l   m e d i a _ 	       c h a r   ( 3 2 ) ; 
         d c l   m e d i a _ i 	       f i x e d   b i n ; 
         d c l   1   m e m b e r _ h o l d     l i k e   m e m b e r . e ; 
         d c l   m e m _ i 	       f i x e d   b i n ; 
         d c l   m e d _ s e l _ i 	       f i x e d   b i n ; 
         d c l   M i n L e a d 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 7 2 0 0 ) ; 
 	 	 	 	 / *   g l o b a l   m i n i m u m   l e a d   * / 
         d c l   M i n S p a c e 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 7 2 0 0 ) ; 
         d c l   M i n W o r d s p 	       f i x e d   b i n   i n i t   ( - 1 ) ; 
 	 	 	 	 / *   g l o b a l   m i n i m u m   w o r d s p a c e   * / 
         d c l   M i n V m b 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) ; 
         d c l   M i n V m t 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) ; 
         d c l   m w 	       f i x e d   b i n ; 
         d c l   n a r g s 	       f i x e d   b i n ; 	 / *   c o m m a n d   l i n e   a r g   c o u n t   * / 
         d c l   n e w _ f a m i l y 	       b i t   ( 1 ) ; 
         d c l   n e w _ m e m b e r 	       f i x e d   b i n ; 
         d c l   n e x t _ d c l _ p 	       p t r ; 
         d c l   n e x t _ s t r _ p 	       p t r ; 
         d c l   n u l w i d t h 	       f i x e d   b i n   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( - 1 0 0 0 0 0 ) ; 
         d c l   o 7 7 7 	       c h a r   ( 1 )   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "ÿ " ) ; 
         d c l   O p e n m o d e 	       f i x e d   b i n   i n i t   ( 5 ) ; 
 	 	 	 	 / *   o p e n i n g   m o d e   f o r   c o m p o u t   f i l e   * / 
         d c l   O u t E n t r y 	       c h a r   ( 3 2 )   v a r ; 
         d c l   O u t P r o c 	       c h a r   ( 3 2 )   v a r ; 
         d c l   D i s p l a y P r o c 	       c h a r   ( 3 2 )   v a r ; 
         d c l   p a r e n c t 	       f i x e d   b i n ; 	 / *   n e x t   4   v a r s   f o r   " n ( m e d c h a r s ) "           * / 
 	 	 	 	 / *     a n d   " n ( o u t p u t ) " 	 	               * / 
         d c l   p a r t _ r e p l 	       ( 1 0 )   f i x e d   b i n ; 	 / *   r e p l i c a t i o n   c o u n t   f o r   a   p a r t             * / 
         d c l   p a r t _ s t r 	       ( 1 0 )   c h a r   ( 4 0 0 )   v a r ; 
 	 	 	 	 / *   t h e   s t r i n g   f o r   a   p a r t 	               * / 
         d c l   p a r t _ w i d t h 	       ( 1 0 )   f i x e d   b i n ; 	 / *   t h e   w i d t h   o f   a   p a r t 	               * / 
         d c l   p a r t _ n e s t 	       f i x e d   b i n ; 	 / *   n e s t i n g   o f   p a r t s 	 	               * / 
         d c l   S c a l e _ s c a l e 	       f i x e d   b i n   ( 3 5 )   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 1 0 0 0 0 0 0 0 0 ) ; 
         d c l   S c a l e _ x 	       f i x e d   b i n   ( 3 5 ) ; 
         d c l   S c a l e _ y 	       f i x e d   b i n   ( 3 5 ) ; 
         d c l   s e l f _ s w 	       b i t   ( 1 ) ; 
         d c l   s e l f _ c t 	       f i x e d   b i n ; 	 / *   n u m b e r   o f   S E L F s   i n   m e d i a c h a r   l i s t   * / 
         d c l   s e l f _ i 	       ( 1 6 )   f i x e d   b i n ; 	 / *   l o c a t i o n   o f   t h e s e   S E L F s 	               * / 
         d c l   S i z e s 	       f i x e d   b i n   i n i t   ( 0 ) ; 
         d c l   s k i p _ c t 	       f i x e d   b i n ; 
         d c l   s t r i n g _ l 	       ( 2 )   f i x e d   b i n   i n i t   ( 0 ,   0 ) ; 
         d c l   S t r o k e s 	       f i x e d   b i n   i n i t   ( 1 ) ; 
         d c l   T a p e R e c 	       f i x e d   b i n   i n i t   ( - 1 ) ; 
         d c l   t e s t w i d t h 	       f i x e d   b i n ; 
         d c l   t h e _ f o n t 	       p t r ; 
         d c l   t h e _ s t r i n g 	       c h a r   ( 8 0 0 0 )   v a r ; 
         d c l   t h e _ s t r i n g _ r       b i t   ( 1 8 )   a l i g n e d ; / *   o f f s e t   i n   s t r i n g   t a b l e 	               * / 
         d c l   t h i s _ v i e w 	       f i x e d   b i n ; 
         d c l   t o p _ d c l _ p 	       p t r   i n i t   ( n u l l   ( ) ) ; 
         d c l   t p 	       p t r ; 
         d c l   t r _ s w 	       b i t   ( 1 )   i n t   s t a t i c   i n i t   ( " 0 " b ) ; 
         d c l   v a l s _ c t 	       f i x e d   b i n ; 	 / *   c o u n t   o f   e n t r i e s   i n   v a l s   a r r a y   * / 
         d c l   v a l s 	       ( 1 : 5 1 2 )   f i x e d   b i n ; 
         d c l   v i e w s _ s e l e c t e d   f i x e d   b i n ; 
         d c l   v i e w n a m e 	       c h a r   ( 3 2 ) ; 
         d c l   V s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   g l o b a l   v e r t i c a l   s c a l e   * / 
         d c l   v s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   l o c a l   v e r t i c a l   s c a l e   * / 
         d c l   v s c a l e s 	       ( 7 )   f i x e d   b i n   ( 3 1 ) 
 	 	 	 	 / *   v e r t i c a l   s c a l e   f a c t o r s   * / 
 	 	       s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 1 2 0 0 0 ,   9 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; 
         d c l   W o r d s p a c e _ p 	       p t r   i n i t   ( n u l l   ( ) ) ; 
 
         d c l   ( a d d r ,   a d d r e l ,   a f t e r ,   b e f o r e ,   b i n ,   b i t ,   b y t e ,   c o l l a t e ,   c o n v e r t ,   c o p y , 
                 d e c ,   d i m e n s i o n ,   d i v i d e ,   f i x e d ,   h b o u n d ,   i n d e x ,   l e n g t h ,   p t r ,   r e l ,   s i z e , 
                 u n s p e c ,   v e r i f y ,   m a x ,   n u l l ,   r a n k ,   r t r i m ,   s e a r c h ,   s t r i n g ,   s u b s t r , 
                 t r a n s l a t e ) 	       b u i l t i n ; 
 % p a g e ; 
 / *   + + + + + + + + + + + + + + + + + +   E R R O R   C O D E S   &   E X T E R N A L   P R O C E D U R E S   + + + + + + + + + + + + + + + + + + + +   * / 
 
         d c l   e r r o r _ t a b l e _ $ b a d o p t 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ n a m e d u p 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ s e g n a m e d u p 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ z e r o _ l e n g t h _ s e g 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
         d c l   a l m 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   a z 	       c h a r   ( 2 6 )   i n t   s t a t i c 
 	 	       i n i t   ( " a b c d e f g h i j k l m n o p q r s t u v w x y z " ) ; 
         d c l   A Z 	       c h a r   ( 2 6 )   i n t   s t a t i c 
 	 	       i n i t   ( " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z " ) ; 
         d c l   c o m _ e r r _ 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   c u _ $ a r g _ c o u n t     e n t r y   ( f i x e d   b i n ) ; 
         d c l   c u _ $ a r g _ p t r 	       e n t r y   ( f i x e d   b i n ,   p t r ,   f i x e d   b i n ,   f i x e d   ( 3 5 ) ) ; 
         d c l   d e l e t e _ $ p a t h       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   b i t   ( 6 )   a l i g n e d ,   c h a r   ( * ) , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   e x p a n d _ p a t h n a m e _ $ a d d _ s u f f i x 
 	 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) , 
 	 	       f i x e d   ( 3 5 ) ) ; 
         d c l   g e t _ t e m p _ s e g m e n t s _ 
 	 	       e n t r y   ( c h a r   ( * ) ,   ( * )   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   g e t _ w d i r _ 	       e n t r y   r e t u r n s   ( c h a r   ( 1 6 8 ) ) ; 
         d c l   h c s _ $ c h n a m e _ f i l e 
 	 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   h c s _ $ i n i t i a t e _ c o u n t 
 	 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 2 4 ) , 
 	 	       f i x e d   b i n   ( 2 ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   h c s _ $ t e r m i n a t e _ n o n a m e 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o a _ $ i o a _ s w i t c h 
 	 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   i o x _ $ a t t a c h _ n a m e 
 	 	       e n t r y   ( c h a r   ( * ) ,   p t r ,   c h a r   ( * ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ c l o s e 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ d e t a c h _ i o c b 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ o p e n 	       e n t r y   ( p t r ,   f i x e d   b i n ,   b i t   ( 1 )   a l i g n e d ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   l e x _ s t r i n g _ $ i n i t _ l e x _ d e l i m s 
 	 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) , 
 	 	       b i t   ( * ) ,   c h a r   ( * )   v a r ,   c h a r   ( * )   v a r ,   c h a r   ( * )   v a r , 
 	 	       c h a r   ( * )   v a r ) ; 
         d c l   l e x _ s t r i n g _ $ l e x 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 2 4 ) ,   f i x e d   b i n   ( 2 4 ) ,   p t r , 
 	 	       b i t   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) , 
 	 	       c h a r   ( * ) ,   c h a r   ( * )   v a r ,   c h a r   ( * )   v a r ,   c h a r   ( * )   v a r , 
 	 	       c h a r   ( * )   v a r ,   p t r ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   p a t h n a m e _ 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) )   r e t u r n s   ( c h a r   ( 1 6 8 ) ) ; 
         d c l   r e l e a s e _ t e m p _ s e g m e n t s _ 
 	 	       e n t r y   ( c h a r   ( * ) ,   ( * )   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   s e a r c h _ p a t h s _ $ f i n d _ d i r 
 	 	       e n t r y   ( c h a r   ( * ) ,   p t r ,   c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) , 
 	 	       f i x e d   ( 3 5 ) ) ; 
         d c l   t r a n s l a t o r _ t e m p _ $ g e t _ s e g m e n t 
 	 	       e n t r y   ( c h a r   ( * ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   t r a n s l a t o r _ t e m p _ $ r e l e a s e _ a l l _ s e g m e n t s 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
 % p a g e ; 
 / *   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   S T R U C T U R E S   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 
         d c l   t e m p _ p t r s 	       ( 4 )   p t r   i n i t   ( ( 4 )   n u l l   ( ) ) ; 
 
 / *   T h e s e   4   s e g m e n t s   a r e   u s e d   t o   h o l d   t h e s e   s t r u c t u r e s   ( i n   o r d e r ) : 	               * / 
 / * 	 1 	 2 	 3 	 4 	 	 	               * / 
 / * 	 s t r l _ p 	 b s t r 	 	 d c l _ 	 	 	               * / 
 / * 	 	 	 	 m e d i a c h a r s 	 	               * / 
 / * 	 	 	 	 m e d i a 	 	 	               * / 
 / * 	 	 	 	 v i e w 	 	 	               * / 
 / * 	 	 	 	 D e f 	 	 	               * / 
 / * 	 	 	 	 f n t ,   f o n t ,   u n i t s ,   o p u t   . . . 	               * / 
 / * 	 	 	 	 s i z e _ l i s t ,   s i z e l . . . 	 	               * / 
 / * 	 	 	 m e m 	 d v i d . . . ,   d v t ,   m e d _ s e l ,   c o m p _ d v t   . . .     * / 
 
         d c l   s t r l _ p 	       ( 2 ,   2 0 0 0 )   p t r   b a s e d   ( t e m p _ p t r s   ( 1 ) ) ; 
 	 	 	 	 / *   l i s t   o f   s t r i n g s   * / 
         d c l   s t r i n g _ a r e a _ p     p t r   d e f i n e d   ( t e m p _ p t r s   ( 2 ) ) ; 
 	 	 	 	 / *   p l a c e   t o   h o l d   s t r i n g s         * / 
         d c l   a r e a 1 _ p 	       p t r   d e f i n e d   ( t e m p _ p t r s   ( 3 ) ) ; 
         d c l   a r e a 2 _ p 	       p t r   d e f i n e d   ( t e m p _ p t r s   ( 4 ) ) ; 
         d c l   a r e a _ f r e e _ p 	       p t r ; 	 	 / *   n e x t   f r e e   l o c a t i o n   i n   a r e a 2               * / 
 
         d c l   s i z e _ l i s t _ p 	       p t r ; 
         d c l   1   s i z e _ l i s t 	       b a s e d   ( s i z e _ l i s t _ p ) , 
 	 2   c o u n t 	       f i x e d   b i n , 
 	 2   f r e e 	       p t r , 	 	 / *   w h e r e   t o   p u t   n e x t   l i s t 	               * / 
 	 2   e 	       ( 5 0 ) , 
 	     3   n a m e 	       c h a r   ( 3 2 ) , 	 / *   n a m e   o f   s i z e   l i s t 	               * / 
 	     3   p t 	       p t r , 	 	 / *   p o i n t   t o   s i z e   l i s t 	               * / 
 	 2   s t a r t 	       p t r ; 	 	 / *   s t a r t   o f   l i s t   a r e a 	               * / 
 
 / * 	                 C O M P D V / C O M P _ D S M   S T R U C T U R E   I N T E R C O N N E C T I O N 	 	               * / 
 
 / * 	 	   T A B L E S   U S E D   B Y   c o m p d v   W H I L E   P A R S I N G , 	 	               * / 
 / * 	 	 N A M E S   M A R K E D   W I T H   *   A R E   i n t e r n a l   O N L Y 	 	               * / 
 / * 	             T a b l e s   a r e   g e n e r a l l y   s h o w n   i n   o r d e r   g e n e r a t e d 	               * / 
 / * 	               ( e x c e p t   f o r   s t r i n g s ,   w h i c h   c r o p   u p   a l l   o v e r ) 	               * / 
 
 / * + + 
 / *   d c l _ l _ p ( 1 ) > - - - - + 	 	 	 	 	 	               * / 
 / *   d c l _ l _ p ( 2 ) > - +     | 	 	 	 	 d c l s   a r e   m a d e   f i r s t .               * / 
 / * 	           |     | 	   d c l _ * 	         	 	 T h e y   a r e   s t r i n g s   w h i c h           * / 
 / * 	           |     | 	     _ _ _ _ _ _ _ _         	 	 a r e   r e f e r e n c e d   b y   n a m e           * / 
 / * 	           |     + - > | n e x t         > - - + 	 	 a s   a n   a i d   t o   u n d e r s t a n d i n g   * / 
 / * 	           | 	   | d c l _ n a m e |     | 	 	 t h e   D S M   d e f i n i t i o n .   T h e y       * / 
 / * 	           | 	   | l e n g         |     | 	 	 a r e   n o t   n e c e s s a r y   t o   d o         * / 
 / * 	           | 	   | d c l _ v       |     | 	 	 t h e   j o b . 	 	               * / 
 / * 	           | 	   | _ _ _ _ _ _ _ _ |     | 	 	 	 	               * / 
 / * 	           |     + - - - - - - - - - - - - - - + 	 S t r i n g s   u s e d   b y   m e d i a c h a r s   a r e               * / 
 / * 	           |     |     d c l _ * 	         	 t e m p o r a r y ,   i . e .   o n l y   u s e d   b y   c o m p d v ,   * / 
 / * 	           |     |       _ _ _ _ _ _ _ _         	 p o i n t e r s   t o   t h e s e   g o   i n   s t r l _ p ( 1 , * ) .   * / 
 / * 	           |     + - > | n e x t         > - - + 	 	 	 	               * / 
 / * 	           | 	   | d c l _ n a m e |     | 	 S t r i n g s   u s e d   b y   f o n t ,   c l e a n u p ,   e t c .     * / 
 / * 	           |   	   | l e n g         |     | 	 a r e   p e r m a n e n t ,   i . e .   t h e y   e n d   u p   i n       * / 
 / * 	           | 	   | d c l _ v       |     | 	 t h e   D S M ,   p o i n t e r s   t o   t h e s e   g o   i n           * / 
 / * 	           | 	   | _ _ _ _ _ _ _ _ |     | 	 s t r l _ p ( 2 , * ) . 	 	               * / 
 / * 	           |     + - - - - - - - - - - - - - - + 	 	 	 	               * / 
 / * 	           |     |     d c l _ * 	 	 s t r l _ p * 	 	 	               * / 
 / * 	           |     |       _ _ _ _ _ _ _ _ 	   _ _ _ _ _ _ _ _ _   	 b s t r * 	               * / 
 / * 	           + - - + - > | n e x t         > n u l l 	 | 1 , 1   | 2 , 1   > . . . 	   _ _ _ _ 	               * / 
 / * 	 	   | d c l _ n a m e | 	 | 1 , 2   | 2 , 2   > - - - - - - - - > | l e n g | 	               * / 
 / * 	   	   | l e n g         | 	 .         .         . 	 | s t r   | 	               * / 
 / * 	   	   | d c l _ v       | 	 :         :         : 	 | _ _ _ _ | 	               * / 
 / * 	   	   | _ _ _ _ _ _ _ _ | 	 	 	 	               * / 
 
         d c l   s t r _ p 	       p t r ; 
         d c l   1   b s t r 	       b a s e d   ( s t r _ p ) , 	 / *   b a s e d   s t r i n g   u s e d   f o r   b u i l d i n g         * / 
 	 2   l e n g 	       f i x e d   b i n , 	 / *     p s e u d o - c h a r _ v a r   s t r i n g s 	               * / 
 	 2   s t r 	       c h a r   ( b s t r . l e n g ) , 
 	 2   d u m m y 	       b i t   ( 3 6 )   a l i g n e d ; / *   w h e r e   n e x t   s t r u c t u r e   w i l l   g o             * / 
 
         d c l   d c l _ l _ p 	       ( 2 )   p t r ; 	 / *   d c l _   l i s t   b e g i n / e n d 	               * / 
         d c l   d c l _ p 	       p t r ; 
         d c l   1   d c l _ 	       b a s e d   ( d c l _ p ) , 	 / *   * *   s y m b o l   d e c l a r a t i o n 	               * / 
 	 2   n e x t 	       p t r , 	 	 / *   l i n k e d   l i s t   n e x t   e l e m e n t 	               * / 
 	 2   d c l _ n a m e       c h a r   ( 8 ) , 	 / *   d e c l a r e d   n a m e 	 	               * / 
 	 2   l e n g 	       f i x e d   b i n , 	 / *   l e n g t h   o f   d e f i n i t i o n   s t r i n g               * / 
 	 2   d c l _ v 	       c h a r   ( d c l _ . l e n g ) , / *   s y m b o l   d e f i n i t i o n   s t r i n g 	               * / 
 	 2   d u m m y 	       p t r ; 	 	 / *   w h e r e   n e x t   o n e   i s   b a s e d 	               * / 
 % p a g e ; 
 / *             m e d i a c h a r s * 	 	 	 	 	 	               * / 
 / *               _ _ _ _ _ _ _ 	 	 	 N e x t ,   a l l   m e d i a c h a r s   a r e   d e f i n e d           * / 
 / *             | c o u n t = n | _ _   	 	 i n   t e r m s   o f   d c l ' e d   s y m b o l s   o r 	               * / 
 / *       ( 1 ) | n a m e | o u t _ r > - - - - - - - - - - + 	 l i t e r a l s . 	 	 	               * / 
 / *       ( 2 ) | n a m e | o u t _ r > . . . 	 | 	 	   	 b s t r * 	               * / 
 / *             .         .           . 	 | 	 	   	   _ _ _ _ 	               * / 
 / *             :         :           : 	 + - - - - - - - - - - - - - - - - - - - - - - - - - - - - > | l e n g | 	               * / 
 / *       ( n ) | n a m e | o u t _ r > . . . 	 	 	   	 | s t r   | 	               * / 
 / *             | _ _ _ _ | _ _ _ _ _ | 	 	 	   	 | _ _ _ _ | 	               * / 
         d c l   m e d i a c h a r s _ p       p t r ; 
         d c l   1   m e d i a c h a r s       b a s e d   ( m e d i a c h a r s _ p ) , 
 	 2   c o u n t 	       f i x e d   b i n , 	 / *   h o w   m a n y   h a v e   b e e n   d e f i n e d 	               * / 
 	 2   e 	       ( m e d i a c h a r s . c o u n t ) , 
 	     3   n a m e 	       c h a r   ( 3 2 ) , 	 / *   n a m e   o f   t h e   c h a r 	 	               * / 
 	     3   o u t _ r 	       b i t   ( 1 8 )   a l i g n e d ; / *   o u t p u t   s t r i n g   t o   g e t   i t 	               * / 
 
 / * 	               m e d i a * 	 	 	               
 / * 	                 _ _ _ _ _ _ _ 	 	 	 T h e n ,   a l l   m e d i a   a r e 	               * / 
 / * 	   _ _ _ _ _ _ | c o u n t = m | _ _ _ _ _ _ _ _ _   . . .   _ _ _ _ _ _ 	 d e s c r i b e d   i n   t e r m s   o f   t h e     * / 
 / *           ( 1 ) | n a m e | r e l _ u n i t s | w 1 1   | w 1 2   | . . .   | w 1 n   | 	 m e d i a c h a r s ,   w i t h   t h e               * / 
 / *           ( 2 ) | n a m e | r e l _ u n i t s | w 2 1   | w 2 2   | . . .   |   @     | 	 w i d t h s   b e i n g   d e f i n e d   f o r       * / 
 / * 	 .         .                   .         .         .         .         . 	 e a c h .   V a l u e s   m i g h t   n o t           * / 
 / * 	 :         :                   :         :         :         :         : 	 e x i s t   f o r   a l l   m e d i a c h a r s       * / 
 / *           ( m ) | n a m e | r e l _ u n i t s | w m 1   |   @     | . . .   | w m n   | 	 i n   a l l   m e d i a   ( s h o w n   a s   @ ) .   * / 
 / * 	 | _ _ _ _ | _ _ _ _ _ _ _ _ _ | _ _ _ _ | _ _ _ _ | . . .   | _ _ _ _ | 	 	 	               * / 
 / *         m e d i a c h a r   #   - - >           ( 1 )     ( 2 )     . . .     ( n ) 	 	 	               * / 
         d c l   m e d i a _ p 	       p t r ; 
         d c l   1   m e d i a 	       b a s e d   ( m e d i a _ p ) , 
 	 2   c o u n t 	       f i x e d   b i n , 	 / *   h o w   m a n y   h a v e   b e e n   d e f i n e d 	               * / 
 	 2   e 	       ( m e d i a . c o u n t ) , 
 	     3   n a m e 	       c h a r   ( 3 2 ) , 	 / *   n a m e   o f   t h e   m e d i a 	               * / 
 	     3   r e l _ u n i t s 
 	 	       f i x e d   b i n , 	 / *   i t s   s t r o k e   v a l u e 	 	               * / 
 	     3   w i d t h 	       ( m e d i a c h a r s . c o u n t )   f i x e d   b i n ; 
 	 	 	 	 / *   f o r   e a c h   m e d i a c h a r         * / 
 % p a g e ; 
 / * 	   v i e w * 	 	 	 	 	 	               * / 
 / *                     _ _ _ _ _ _ _ 	 	 	 	 V i e w s   a r e   t h e n   m a d e   u p           * / 
 / *                   | c o u n t = k | _ _ 	 	 	 f r o m   t h e   d e f i n e d   m e d i a .         * / 
 / *             ( 1 ) | v i e w 1 | m e d 4 | 	 	 	 V i e w s   c a n   s h a r e   a   m e d i a ,       * / 
 / *             ( 2 ) | v i e w 2 | m e d 2 | 	 	 	 b u t   w i l l   d i f f e r   m e d i a             * / 
 / *                   .           .         . 	 	 	 s e l e c t   s t r i n g .   E a c h   D e v i c e   * / 
 / *                   :           :         : 	 	 	 s p e c i f i e s   i t s   o w n   s e t   o f       * / 
 / *             ( k ) | v i e w k | m e d 4 | 	 	 	 m e d i a   s e l e c t   s t r i n g s . 
 / *                   | _ _ _ _ _ | _ _ _ _ | 	 	 	 	 	               * / 
 
         d c l   v i e w _ p 	       p t r ; 
         d c l   1   v i e w 	       b a s e d   ( v i e w _ p ) , 
 	 2   c o u n t 	       f i x e d   b i n , 	 / *   h o w   m a n y   d e f i n e d 	 	               * / 
 	 2   e 	       ( v i e w . c o u n t ) , 
 	     3   n a m e 	       c h a r   ( 3 2 ) , 	 / *   v i e w n a m e 	 	               * / 
 	     3   m e d i a 	       f i x e d   b i n ; 	 / *   m e d i a   b e i n g   r e f e r e n c e d 	               * / 
 
 
 / * 	 D e f * 	 	 	 	 	 	               * / 
 / * 	   _ _ _ _ _ _ _ 	 	 D e f ' s   a r e   a   s o r t   o f   m a c r o   d e f i n i t i o n . 	               * / 
 / * 	 | c o u n t = d | _ 	 W h e n e v e r   a   s e t   o f   M u l t i c s   c h a r s   h a v e   t h e   s a m e     * / 
 / *           ( 1 ) | n a m e 1 | p t 1 | 	 d e f i n i t i o n   i n   s e v e r a l   f o n t s ,   i n s t e a d   o f 	               * / 
 / *           ( 2 ) | n a m e 2 | p t 2 | 	 e n t e r i n g   t h e   d e s c r i p t i o n   a g a i n   a n d   a g a i n ,   a         * / 
 / * 	 .           .       . 	 D e f   i s   m a d e   c o n t a i n i n g   t h e   n e e d e d   i n f o   a n d           * / 
 / * 	 :           :       : 	 t h e n   t h e y   a r e   r e f ' e d   i n   e a c h   t a b l e   a s   n e e d e d .     * / 
 / *           ( d ) | n a m e d | p t d | 	 	 	 	 	               * / 
 / * 	 | _ _ _ _ _ | _ _ _ | 	 	 	 	 	               * / 
 
         d c l   D e f _ p 	       p t r ; 
         d c l   1   D e f 	       b a s e d   ( D e f _ p ) , 
 	 2   c o u n t 	       f i x e d   b i n , 	 / *   h o w   m a n y   D e f ' s   p r e s e n t 	               * / 
 	 2   e 	       ( D e f . c o u n t ) , 
 	     3   n a m e 	       c h a r   ( 3 2 ) , 	 / *   i n t e r n a l   n a m e   o f   t h i s   D e f 	               * / 
 	     3   p t 	       p t r ; 	 	 / *   P o i n t s   t o   t h e   n o d e   i n   t h e 	               * / 
 	 	 	 	 / *     l e x _ s t r i n g _   l i s t   a t   w h i c h   s o u r c e   * / 
 	 	 	 	 / *     o f   t h e   D e f   b e g i n s .     A t   r e f   t i m e ,   * / 
 	 	 	 	 / *     t h i s   s o u r c e   w i l l   b e   b e   r e - p a r s e d   * / 
 	 	 	 	 / *     v i a   t h i s   p o i n t e r . 	               * / 
 % p a g e ; 
 / *   f n t l _ p ( 1 ) > - - - - + 	 	 	 	 	 	               * / 
 / *   f n t l _ p ( 2 ) > - - - ) | ( - - - - - - - - - - - - - - - - - - - - - + 	 	 	               * / 
 / *         + - - - - - - - - - - + 	 	 	 | 	 	 	               * / 
 / *         | 	 f n t * 	 	 f n t * 	 | 	 f n t * 	 	               * / 
 / *         | 	   _ _ _ _ _ 	 	   _ _ _ _ _ 	 | 	   _ _ _ _ _ 	 	               * / 
 / *         + - - > | n e x t   > - - - - - - - - - - - - > | n e x t   > - - - + - - - - - - - - > | n e x t   > n u l l 	               * / 
 / * 	 | n a m e   | 	 	 | n a m e   | 	 	 | n a m e   | 	 	               * / 
 / * 	 | r e f n o | 	 	 | r e f n o | 	 	 | r e f n o | 	 	               * / 
 / * 	 | n o d e   > . . . 	 | n o d e   > . . . 	 | n o d e   > . . . 	               * / 
 / * 	 | p t       > - - - + 	 | p t       > . . . 	 | p t       > . . . 	               * / 
 / * 	 | _ _ _ _ _ |     	 | 	 | _ _ _ _ _ | 	 	 | _ _ _ _ _ | 	 	               * / 
 / *         + - - - - - - - - - - - - - + 	 	 	 	 	               * / 
 / *         |         f o n t 	 	 	 F o n t s   a r e   m a d e   u p   b y   s e l e c t i n g   o n e       * / 
 / *         |         _ _ _ _ _ _ _ _ _ 	 	 o r   m o r e   m e d i a c h a r s   f r o m   a   v i e w   a n d       * / 
 / *         + - - > | u n i t s _ r     > - - - - - + 	 	 a s s o c i a t i n g   t h e m   t o   M u l t i c s   ( i n p u t )     * / 
 / * 	 | o p u t _ r       > - - +     | 	 	 c h a r a c t e r s .   T o   s p e e d   u p   m e a s u r i n g ,       * / 
 / * 	 | r e l _ u n i t s |     |     | 	 	 t h e   w i d t h   p o r t i o n   o f   t h e   f o n t   t a b l e     * / 
 / * 	 | f o o t s e p     |     |     | 	 	 i s   a   f i x e d   s i z e . 	 	               * / 
 / * 	 | m i n _ s p b     |     |     | 	 	     T o   s a v e   s p a c e ,   h o w e v e r ,   t h e   o u t p u t   * / 
 / * 	 | a v g _ s p b     |     |     | 	 	 s t r i n g   p o r t i o n   o f   t h e   f o n t   i s   o n l y       * / 
 / * 	 | m a x _ s p b     |     |     | 	 	 a s   l o n g   a s   t h e   h i g h e s t   M u l t i c s   c h a r     * / 
 / * 	 | _ _ _ _ _ _ _ _ _ |     |     | 	 	 d e f i n e d . 	 	 	               * / 
 / *         + - - - - - - - - - - - - - - - - +     | 	 	 	 	 	               * / 
 / *         | 	   o p u * 	             | 	   u n i * 	 	       T h e   o p u t   a n d   u n i t s             * / 
 / *         |         _ _ _ _ _ 	             | 	   _ _ _ _ _                   u n i t s       t a b l e s   o f t e n   e n d   u p           * / 
 / *         + - - > | n e x t   > . . .             + - - > | n e x t   > . . .           _ _ _ _ _       l o o k i n g   l i k e   o t h e r s   o f     * / 
 / * 	 | r e f _ p > - - - +         	 | r e f _ p > - - - - - - > | ( 0 )     |     t h e i r   k i n d .   T h u s   w h e n       * / 
 / * 	 | s e q n o | 	 | 	 | s e q n o | 	         | ( 1 )     |     e a c h   i s   c o m p l e t e d ,   i t       * / 
 / * 	 | r e f n o |       | 	 | r e f n o | 	         .           .     i s   m a t c h e d   a g a i n s t   a l l     * / 
 / * 	 | _ _ _ _ _ | 	 | 	 | _ _ _ _ _ | 	         :           :     p r i o r   o n e s   &   l o g i c a l l y     * / 
 / *         + - - - - - - - - - - - - - +         	               	         | ( 5 1 1 ) |     r e m o v e d   i f   a l r e a d y             * / 
 / *         |     	 o p u t 	         	               	         | _ _ _ _ _ |     t h e r e ,   r e d u c i n g   D S M           * / 
 / *         | 	   _ _ _ _ _ _ _ _ _ _ _ _ 	 	 	       s i z e . 	 	               * / 
 / *         + - - > | d a t a _ c o u n t = k | 	 	               	 	 	               * / 
 / *           ( 0 ) | w h i c h | w h a t _ r > . . . 	 	 	 	 	               * / 
 / *           ( 1 ) | w h i c h | w h a t _ r > . . . 	 	 	 F r o m   c o m p d v ' s   p o i n t   o f           * / 
 / *     	 .           .             . 	         m e d c h a r _ s e l   	 v i e w ,   m e d c h a r _ s e l   i s   a           * / 
 / *     	 :           :             : 	       _ _ _ _ _ _ _ _ . . . _ 	 b s t r . 	 	               * / 
 / *           ( k ) | w h i c h | w h a t _ r > - - - - - - - > | l e n | t e x t . . .   | 	 	 	               * / 
 / *                 | _ _ _ _ _ | _ _ _ _ _ _ | 	     | _ _ _ | _ _ _ _ _ _ _ _ | 	 	 	               * / 
 / * 	 	         	 	 	 	 	               * / 
 / * 	 	         	 	 o p u t . w h i c h   r e f e r e n c e s   a n   e n t r y   i n         * / 
 / * 	 	         	 	 t h e   D e v i c e ' s   m e d _ s e l _ t a b l e . 	               * / 
 % p a g e ; 
         d c l   f o n t _ c o u n t 	       f i x e d   b i n ; 	 / *   #   f o n t   e n t r i e s   p r e s e n t 	               * / 
         d c l   f n t l _ p 	       ( 2 )   p t r ; 	 / *   b e g i n / e n d   f n t   l i s t 	               * / 
         d c l   f n t _ p 	       p t r ; 
         d c l   1   f n t 	       b a s e d   ( f n t _ p ) , 	 / *   = = =   f o n t   i n f o   e n t r y 	               * / 
 	 2   n e x t 	       p t r , 	 	 / *   n e x t   e n t r y 	 	               * / 
 	 2   n a m e 	       c h a r   ( 3 2 ) , 	 / *   i n t e r n a l   r e f e r e n c e   o n l y 	               * / 
 	 2   r e f n o 	       f i x e d   b i n , 	 / *   i n t e r n a l   r e f e r e n c e   # 	               * / 
 	 2   n o d e 	       p t r , 	 	 / *   r d c   n o d e   f o r   F o n t :   s t a t e m e n t             * / 
 	 	 	 	 / *     u s e d   f o r   e r r o r   m e s s a g e s 	               * / 
 	 2   p t 	       p t r , 	 	 / *   p o i n t s   t o   t h e   f o n t   t a b l e 	               * / 
 	 2   d u m m y 	       p t r ; 	 	 / *   w h e r e   n e x t   s t r u c t u r e   g o e s 	               * / 
 
         d c l   u n i _ c t 	       f i x e d   b i n   i n i t   ( 0 ) ; 
         d c l   u n i l _ p 	       ( 2 )   p t r ; 
         d c l   u n i _ p 	       p t r ; 
         d c l   1   u n i 	       b a s e d   ( u n i _ p ) , 	 / *   = = =   u n i t s   e n t r y 	 	               * / 
 	 2   n e x t 	       p t r , 	 	 / *   n e x t   e n t r y 	 	               * / 
 	 2   r e f _ p 	       p t r , 	 	 / *   p o i n t s   t o   u n i t s   t a b l e 	               * / 
 	 2   s e q n o 	       f i x e d   b i n , 	 / *   i n t e r n a l   s e q u e n c e   # 	               * / 
 	 2   r e f n o 	       f i x e d   b i n ; 	 / *   i n t e r n a l   r e f e r e n c e   # 	               * / 
 	 	 	 	 / *   w h e n   s e q n o = r e f n o   t h i s   i s   a   " r e a l "   * / 
 	 	 	 	 / *   e n t r y ,   o t h e r w i s e   i t ' s   a   d u p l i c a t e   * / 
 
         d c l   o p u l _ p 	       ( 2 )   p t r ; 
         d c l   o p u _ p 	       p t r ; 
         d c l   1   o p u 	       b a s e d   ( o p u _ p ) , 	 / *   = = =   o p u t s   e n t r y 	 	               * / 
 	 2   n e x t 	       p t r , 	 	 / *   n e x t   e n t r y 	 	               * / 
 	 2   r e f _ p 	       p t r , 	 	 / *   p o i n t s   t o   o p u t   t a b l e 	               * / 
 	 2   s e q n o 	       f i x e d   b i n , 	 / *   i n t e r n a l   s e q u e n c e   # 	               * / 
 	 2   r e f n o 	       f i x e d   b i n ; 	 / *   i n t e r n a l   r e f e r e n c e   # 	               * / 
 	 	 	 	 / *   w h e n   s e q n o = r e f n o   t h i s   i s   a   " r e a l "   * / 
 	 	 	 	 / *   e n t r y ,   o t h e r w i s e   i t ' s   a   d u p l i c a t e   * / 
 
 % p a g e ; 
 / *   	 	                       d v i d * 	 	 	 	               * / 
 / * 	 	                       _ _ _ _ _ _ _ 	 	 	 	               * / 
 / *     d v i d l _ p ( 1 ) > - - - - - - - - - - - - - - > | n e x t       > - - - - - - +           d v i d * 	 	               * / 
 / *     d v i d l _ p ( 2 ) > - - - - - - - - - - + 	 | n d x         | 	           |           _ _ _ _ _ _ _ 	 	               * / 
 / * 	 	           | 	 | r e a l       | 	           + - - - > | n e x t       > n u l l 	               * / 
 / * 	 	           |         | r e f n a m e | 	           | 	 | n d x         | 	 	               * / 
 / * 	 	           | 	 | d e v n a m e | 	           | 	 | r e a l       | 	 	               * / 
 / * 	 	           | 	 | d v t _ n d x | 	           | 	 | r e f n a m e | 	 	               * / 
 / * 	 	           | 	 | _ _ _ _ _ _ _ | 	           | 	 | d e v n a m e | 	 	               * / 
 / * 	 	           | 	 	           | 	 | d v t _ n d x | 	 	               * / 
 / * 	 	           + - - - - - - - - - - - - - - - - - - - + 	 | _ _ _ _ _ _ _ | 	 	               * / 
         d c l   c o m p _ d v i d _ n e w     b i t   ( 1 ) ; 	 / *   a   n e w   c o m p _ d v i d   i s   b e i n g   s t a r t e d     * / 
         d c l   c o m p _ d v i d _ c t       f i x e d   b i n   i n i t   ( 0 ) ; 
 	 	 	 	 / *   h o w   m a n y   a c t u a l   c o m p _ d v i d   d e f i n e d   * / 
         d c l   d v i d _ c t 	       f i x e d   b i n ; 	 / *   #   d v i d   e n t r i e s   p r e s e n t 	               * / 
         d c l   d v i d l _ p 	       ( 2 )   p t r ; 	 / *   b e g i n / e n d   o f   d v i d   l i s t 	               * / 
         d c l   d v i d _ p 	       p t r ; 
         d c l   1   d v i d 	       b a s e d   ( d v i d _ p ) , 	 / *   = = =   c o m p _ d v i d   d a t a 	               * / 
 	 2   n e x t 	       p t r , 	 	 / *   l i n k   t o   n e x t   e n t r y 	               * / 
 	 2   n d x 	       f i x e d   b i n , 	 / *   w h i c h   d v i d   b e i n g   r e f e r e n c e d               * / 
 	 2   r e a l 	       b i t   ( 1 )   a l i g n e d ,   / *   1 -   d e f i n e s   a   c o m p _ d v i d 	               * / 
 	 2   r e f n a m e 	       c h a r   ( 3 2 ) , 	 / *   e x t e r n a l   r e f e r e n c e   n a m e 	               * / 
 	 2   d e v n a m e 	       c h a r   ( 3 2 ) , 	 / *   c o m p _ d v i d . d e v n a m e 	               * / 
 	 2   d v t _ n d x 	       f i x e d   b i n , 	 / *   c o m p _ d v i d . d v t _ r   d e r i v e d   f r o m   t h i s   * / 
 	 2   d u m m y 	       p t r ; 	 	 / *   p l a c e   w h e r e   n e x t   s t r u c t u r e   g o e s       * / 
 
 / *   T h i s   s t r u c t u r e   c o n t a i n s   a l l   t h e   i n f o   n e c e s s a r y   t o   g e n e r a t e   c o m p _ d v i d .           * / 
 % p a g e ; 
 / * 	 	 	 	 	           	   d v t * 	               * / 
 / *     d v t l _ p ( 1 )   > - - - - - - + 	 	 	                 	   _ _ _ _ _ _ _ 	               * / 
 / *     d v t l _ p ( 2 )   > - - - - - ) | ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - > | n e x t       > n u l l         * / 
 / * 	 	   |                 d v t * 	 	         | 	 | n d x         | 	               * / 
 / * 	 	   |                 _ _ _ _ _ _ _ 	 	         | 	 | p r e n t     > - . . .         * / 
 / * 	 	   + - - - - - - > | n e x t       > - - - - - - - - - - - - - - - - + 	 | m e d _ s e l > - - . . .       * / 
 / * 	 	                   | n d x         | 	 	                     | r e f         > - . . .         * / 
 / * 	 	                   | p r e n t     > - - - - - - - - + 	                     | _ _ _ _ _ _ _ | 	               * / 
 / * 	 	                   | m e d _ s e l > - - - - - +     | 	 	 	               * / 
 / * 	 	                   | r e f         > - - +     |     | 	         	   p r e n t * 	               * / 
 / * 	 	                   | _ _ _ _ _ _ _ | 	 |     |     | 	 	   _ _ _ _ _ _ _ _ _ _             * / 
 / * 	         + - - - - - - - - - - - - - - - - - - - - - - - - - +     |     + - - - - - - - - - - - - > | o u t p r o c       |           * / 
 / * 	         | 	 	 	       |     	 	 | a r t p r o c       |           * / 
 / * 	         |             c o m p _ d v t 	         	       |       m e d _ s e l 	 | f o o t p r o c     |           * / 
 / * 	         |             _ _ _ _ _ _ _ _ _         	       |         _ _ _ _ _ _ _ _ _ 	 | _ _ _ _ _ _ _ _ _ _ |           * / 
 / * 	         + - - - - > |   d e t a i l s 	 |       	       + - - > |   d e t a i l s   | 	 	               * / 
 / * 	 	 |   b e l o w       | 	               |     b e l o w     | 	 	               * / 
 / * 	 	 | _ _ _ _ _ _ _ _ _ |       	               | _ _ _ _ _ _ _ _ _ | 	 	               * / 
 
         d c l   d v t _ c t 	       f i x e d   b i n ; 	 / *   #   d v t   e n t r i e s   p r e s e n t 	               * / 
         d c l   d v t l _ p 	       ( 2 )   p t r ; 	 / *   b e g i n / e n d   o f   d v t   l i s t 	               * / 
 
         d c l   d v t _ p 	       p t r ; 
         d c l   1   d v t 	       b a s e d   ( d v t _ p ) , 	 / *   = = =   c o m p _ d v t   r e f e r e n c e   i n f o               * / 
 	 2   n e x t 	       p t r , 	 	 / *   l i n k   t o   n e x t   e n t r y 	               * / 
 	 2   n d x 	       f i x e d   b i n , 	 / *   w h i c h   i n d e x   t h i s   r e p r e s e n t s               * / 
 	 2   p r e n t 	       p t r , 	 	 / *   p t r   t o   p r e n t   d a t a 	               * / 
 	 2   m e d _ s e l 	       p t r , 	 	 / *   p t r   t o   a s s o c i a t e d   m e d _ s e l   a r r a y       * / 
 	 2   r e f 	       p t r , 	 	 / *   p t r   t o   c o m p _ d v t 	 	               * / 
 	 2   d u m m y 	       p t r ; 	 	 / *   p l a c e   w h e r e   n e x t   s t r u c t u r e   g o e s       * / 
 
         d c l   p r e n t _ p 	       p t r ; 
         d c l   1   p r e n t 	       b a s e d   ( p r e n t _ p ) ,   / *   = = =   e n t r y n a m e   s t r i n g s ,   c o m p _ d v t       * / 
 	 2   o u t p r o c 	       c h a r   ( 6 8 )   v a r , 
 	 2   a r t p r o c 	       c h a r   ( 6 8 )   v a r , 
 	 2   f o o t p r o c       c h a r   ( 6 8 )   v a r , 
 	 2   d u m m y 	       p t r ; 	 	 / *   p l a c e   w h e r e   n e x t   s t r u c t u r e   g o e s       * / 
 
         d c l   1   m e d _ s e l _ t a b     a l i g n e d   b a s e d   ( d v t . m e d _ s e l ) , 
 	 2   c o u n t 	       f i x e d   b i n , 
 	 2   r e f _ r 	       ( m e d _ s e l _ t a b . c o u n t )   b i t   ( 1 8 )   a l i g n e d ; 
 % p a g e ; 
 / * 	                             m e m * 	 	 	 	 	               * / 
 / * 	                   	         _ _ _ _ _ _ 	 	 	 	               * / 
 / *     m e m l _ p ( 1 )   > - - - - 	 + - > | n e x t     > - - + 	 	 	 	               * / 
 / *     m e m l _ p ( 2 )   > - - +   	       | r e f _ p   >     | 	 	 	 	               * / 
 / *   	               |           | s e q n o   |     | 	 	 	 	               * / 
 / * 	               |   	       | _ _ _ _ _ _ |     | 	 	 	 	               * / 
 / * 	               + - - - - - - - - - - - - - - - + 	 	 	 	               * / 
 / * 	               |           m e m * 	 	 	 	 	               * / 
 / * 	               | 	       _ _ _ _ _ _ 	                     m e m b e r 	 	 	               * / 
 / * 	               + - - - > | n e x t     > n u l l             _ _ _ _ _ _ _ _ _ 	 	 	               * / 
 / * 	 	     | r e f _ p   > - - - - - - - - > |   d e t a i l s   | 	 	               * / 
 / * 	 	     | s e q n o   |                   |     b e l o w     | 	 	               * / 
 / * 	 	     | _ _ _ _ _ _ |                   | _ _ _ _ _ _ _ _ _ | 	 	               * / 
 
         d c l   m e m l _ p 	       ( 2 )   p t r ; 	 / *   b e g i n / e n d   m e m b e r   l i s t 	               * / 
         d c l   m e m _ c t 	       f i x e d   b i n   i n i t   ( 0 ) ; 
 	 	 	 	 / *   i n t e r n a l   s e q u e n c e   c o u n t e r 	               * / 
         d c l   m e m _ p 	       p t r ; 
         d c l   1   m e m 	       b a s e d   ( m e m _ p ) , 	 / *   = = =   m e m b e r   t a b l e   ( c o d e   g e n   o n l y )     * / 
 	 2   n e x t 	       p t r , 	 	 / *   n e x t   e n t r y 	 	               * / 
 	 2   r e f _ p 	       p t r , 	 	 / *   p o i n t e r   t o   t h e   m e m b e r   t a b l e               * / 
 	 2   s e q n o 	       f i x e d   b i n , 	 / *   i n t e r n a l   s e q u e n c e   # 	               * / 
 	 2   r e f n o 	       f i x e d   b i n , 	 / *   i n t e r n a l   r e f e r e n c e   # 	               * / 
 	 	 	 	 / *   w h e n   s e q n o = r e f n o   t h i s   i s   a   " r e a l "   * / 
 	 	 	 	 / *   e n t r y ,   o t h e r w i s e   i t ' s   a   d u p l i c a t e   * / 
 	 2   d u m m y 	       p t r ; 	 	 / *   w h e r e   n e x t   s t r u c t u r e   g o e s 	               * / 
  
 / * 	 	   E X T E R N A L   I N T E R C O N N E C T I O N   i n   t h e   D S M 	 	               * / 
 / *     l i n k a g e 	 	 	 	 	 	               * / 
 / *     s e c t i o n 	 	 	 	                           c o m p _ d v i d           * / 
 / *     _ _ _ _ _ _           + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +           _ _ _ _ _ _ _               * / 
 / *   |             |         | 	 	 	 	               + - - - > |               |             * / 
 / *   | n a m e 1   > - - - - + 	 	 	 	                         | d e v n a m e |             * / 
 / *   | n a m e 2   > - - - ) | ( - - - - - - - - - - - - - - - - - - - +         c o m p _ d v i d                         | d v t _ r     > - - +       * / 
 / *   | n a m e 3   > - - - - +       c o m p _ d v i d 	             |         _ _ _ _ _ _ _ 	                         | _ _ _ _ _ _ _ |     |       * / 
 / *   | n a m e 4   > - - +           _ _ _ _ _ _ _ 	             + - - > |               | 	         c o m p _ d v t 	       |       * / 
 / *   |   e t c .   |     + - - - > |               | 	                     | d e v n a m e | 	         _ _ _ _ _ _ _ _ 	       |       * / 
 / *   | _ _ _ _ _ _ |               | d e v n a m e | 	                     | d v t _ r     > - - - > |   . . . 	 	       |       * / 
 / *                                 | d v t _ r     > - - +                     | _ _ _ _ _ _ _ |         | 	 	       |       * / 
 / *                                 | _ _ _ _ _ _ _ |     | 	 	 	 	       |       * / 
 / *     + - - - - - - - < - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - < - - - - - - - +       * / 
 / *     |         c o m p _ d v t 	 	 	 	 	 	               * / 
 / *     |         _ _ _ _ _ _ _ _ _ _ _ _ _ 	 	 	                           b s t r 	               * / 
 / *     + - - > |                           | 	 	 	                           _ _ _ _ _ _ _ _ _ _ _       * / 
 / *             | a t d _ r                 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > | l e n | s t r . . .   |     * / 
 / *             | d v c _ r                 > . . . 	 	 	         	     | _ _ _ | _ _ _ _ _ _ _ |     * / 
 / *             | m e d _ s e l _ t a b _ r > - - - - - - - - - - - - - - - - - +         m e d _ s e l _ t a b 	 	               * / 
 / *             |   . . .                   | 	 	 |         _ _ _ _ _ _ _               	       m e d _ s e l               * / 
 / *             | f a m i l y _ c t = F     | 	 	 + - - > | c o u n t = K |             	       _ _ _ _ _ _ _ _ _ _ _       * / 
 / *       ( 1 ) | . m e m b e r _ r         > - - + 	 	   ( 1 ) | r e f _ r > - - - - - - - - - - > | l e n | s t r . . .   |     * / 
 / *       ( 1 ) | . n a m e                 |     | 	 	         .           .                       | _ _ _ | _ _ _ _ _ _ _ |     * / 
 / *             |   . . .                   |     | 	 	   ( n ) | r e f _ r > n u l l o 	 	               * / 
 / *             | _ _ _ _ _ _ _ _ _ _ _ _ _ |     | 	 	         .           . 	 	               * / 
 / *               + - - - - - - - - - - - - - - - + 	 	   ( K ) | r e f _ r > . . . 	   s i z e l 	               * / 
 / *               |         m e m b e r 	 	         | _ _ _ _ _ |   	   _ _ _ _ _ _ _ _ 	               * / 
 / *               |         _ _ _ _ _ _ _ 	   + - - - - - - - - - - - - - - - - - - - - - - - - - - - > | v a l _ c t = S |               * / 
 / *               + - - > | c o u n t = L | _ _ _ _ _ _ _ _ _ | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 	               ( 1 ) | v a l           |               * / 
 / * 	 ( 1 ) | f o n t _ r >   s i z e _ r >     |   l e x | S c a l e y | n a m e | 	 	 .                 .               * / 
 / * 	 ( 2 ) | f o n t _ r >   s i z e _ r > - - +   l e x | S c a l e y | n a m e | 	 	 :                 :               * / 
 / * 	       .             .               .               .             .         . 	               ( S ) | v a l           |               * / 
 / * 	       :             :               :               :             :         : 	 	 | _ _ _ _ _ _ _ _ |               * / 
 / * 	 ( L ) | f o n t _ r > - - - +       >   S c a l e x | S c a l e y | n a m e | 	 	 	               * / 
 / * 	       | _ _ _ _ _ _ | _ _ _ | _ _ _ | _ _ _ _ _ _ _ | _ _ _ _ _ _ | _ _ _ _ | 	 	 	               * / 
 / * 	                             | 	 	 	 	 	               * / 
 / *         + - - - - - - - - - - - - - - - - - + 	 	 	 	 	               * / 
 / *         |         f o n t 	 	 	 	 	 u n i t s 	               * / 
 / *         |         _ _ _ _ _ _ _ _ _ 	 	 	 	 _ _ _ _ _ 	               * / 
 / *         + - - > | u n i t s _ r     > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > | ( 0 )     | 	               * / 
 / * 	 | o p u t _ r       > - - - +   	 	 	 	 | ( 1 )     | 	               * / 
 / * 	 | r e l _ u n i t s |       | 	 	     	 	 .           . 	               * / 
 / * 	 | f o o t s e p     |       |     	 o p u t 	         	               	 :           : 	               * / 
 / * 	 | m i n _ s p b     |       |         _ _ _ _ _ _ _ _ _ 	 	               	 | ( 5 1 1 ) | 	               * / 
 / * 	 | a v g _ s p b     |       + - - > | d a t a _ c t = k | _ _ 	 	 | _ _ _ _ _ | 	               * / 
 / * 	 | m a x _ s p b     |         ( 0 ) | w h i c h | w h a t _ r > . . . 	 	 	               * / 
 / * 	 | _ _ _ _ _ _ _ _ _ |         ( 1 ) | w h i c h | w h a t _ r > . . . 	 	 	               * / 
 / * 	 	                 .           .             . 	         m e d c h a r _ s e l 	               * / 
 / * 	 	                 :           :             : 	       _ _ _ _ _ _ _ _ . . . _ 	               * / 
 / * 	 	           ( k ) | w h i c h | w h a t _ r > - - - - - - - - - > | l e n | t e x t . . .   | 	               * / 
 / * 	 	                 | _ _ _ _ _ | _ _ _ _ _ _ | 	     | _ _ _ | _ _ _ _ _ _ _ _ | 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 / * 	 	         	 	 o p u t . w h i c h   r e f e r e n c e s   a n   e n t r y   i n         * / 
 / * 	 	         	 	 t h e   D e v i c e ' s   m e d _ s e l _ t a b l e . 	               * / 
 % p a g e ; 
 % i n c l u d e   c o m p _ a r t _ p a r t s ; 
 % i n c l u d e   c o m p _ m e t a c o d e s ; 
 % i n c l u d e   c o m p _ d v i d ; 
 % i n c l u d e   c o m p _ d v t ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o n t ; 
 % i n c l u d e   c o m p s t a t ; 
 % i n c l u d e   c o m p d v _ m s g s ; 
        
 
 
  
 	 	         c o m p o s e _ i n d e x . p l 1                               0 4 / 2 3 / 8 5     1 1 0 0 . 9 r e w   0 4 / 2 3 / 8 5     0 9 1 1 . 1             2 9 4 6 6 9     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 3   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   A   c o m p o s e   s u p p o r t   t o o l   e m b o d y i n g   a l l   t h e   f u n c t i o n a l i t y   o f   t h e   o l d e r 
       i n d e x _ p r o c e s s . t e d ,   i n d e x _ s o r t . t e d ,   a n d   i n d e x _ p r i n t .   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p o s e _ i n d e x : 
 c o m p _ i n d e x : 
 c n d x : 
     p r o c ; 
 
 / *   S Y N T A X 
 
       c o m p o s e _ i n d e x   p a t h   { - c o n t r o l _ a r g s } 
 
       w h e r e : 
 
               p a t h 
 	 t h e   p a t h n a m e   o f   t h e   c o m p i n   f i l e   p r o d u c i n g   t h e   r a w   i n d e x   d a t a . 
 	 T h e   c o m p i n   s u f f i x   n e e d   n o t   b e   g i v e n . 
 
               { - c o n t r o l _ a r g s }   m a y   b e : 
 
               - a l p h a _ h e a d e r ,   - a h d r 
 	 i n s e r t   c e n t e r e d   u p p e r c a s e   a l p h a b e t i c   c h a r a c t e r s   a s   g r o u p   s e p a r a t o r s 
 	 w h e n e v e r   t h e   f i r s t   c h a r a c t e r   o f   t h e   p r i m a r y   k e y   c h a n g e s . 
 
               - c o n t r o l _ f i l e   C T L _ P A T H ,   - c f   C T L _ P A T H 
 	 u s e   C T L _ P A T H . i n d e x . c o n t r o l   a s   t h e   c o n t r o l   f i l e   f o r   t h i s   i n d e x . 
 	 T h e   s u f f i x   " c n d x c t l "   i s   a s s u m e d   i f   n o t   g i v e n . 
 
               - n u m b e r   N ,   - n b   N 
 	 o n e   o f   t h e   1 0   ( 0   t h r u   9 )   p o s s i b l e   r a w   i n d e x   d a t a   f i l e s . 
 	 T h e   d e f a u l t   v a l u e   i s   0 .   S e e   N o t e s   b e l o w . 
 
 	 U N D O C U M E N T E D 
               - d e b u g 
 	 d i s p l a y   d e b u g   i n f o 
 
 
       N o t e s : 
 	 T h e   r a w   i n d e x   d a t a   f i l e s   a r e   p r o d u c e d   b y   c o m p o s e   w h e n   t h e   . h i t   
 	 c o n t r o l   i s   u s e d .     S e e   W O R D P R O   R e f e r e n c e   G u i d e   ( A Z 9 8 )   f o r   f u r t h e r   
 	 i n f o r m a t i o n   o n   t h i s   c o n t r o l .     T h e   d e f a u l t   r a w   d a t a   f i l e   i s 
 	 < p a t h > . 0 . c n d x .   T h e   o u t p u t   f i l e   i s   [ w d ] > < p a t h   e n t r y n a m e > . 0 . i n d e x . 
 
 	 T h e   r a w   d a t a   i n   < p a t h > . N . c n d x   i s   p r o c e s s e d   i n t o   a   a r b i t r a r i l y   c h o s e n 
 	 f o r m a t   t h e   s t y l e   o f   w h i c h   i s   p a r t i a l l y   b y   c o n s t a n t s   b u i l t   i n t o   t h e 
 	 p r o g r a m   a n d   p a r t i a l l y   b y   s t a t e m e n t s   i n   t h e   c o n t r o l   f i l e .   T h e   d e f a u l t   
 	 c o n t r o l   f i l e   i s   < p a t h > . c n d x c t l .   S e e   N o t e s   o n   I n d e x   C o n t r o l   
 	 F i l e s   b e l o w . 
 
       N o t e s   o n   I n d e x   C o n t r o l   F i l e s 
 
 	 T h e   o u t p u t   f i l e   c r e a t e d   b y   t h i s   p r o g r a m   i s   t o   b e   t r e a t e d   j u s t   l i k e 
   	 a n y   o t h e r   s e c t i o n   o f   t h e   d o c u m e n t   t o   w h i c h   i t   a p p l i e s .     T h a t   o u t p u t 
 	 f i l e   c o n t a i n s   r e f e r e n c e s   t o   s e v e r a l   o f   t h e   v a r i a b l e s   d e f i n e d   b y   t h e 
 	 d o c u m e n t a t i o n   m a c r o s ;   t h e r e f o r e ,   t h e   f i r s t   l i n e   o f   a   c o n t r o l   f i l e 
 	 m u s t   b e   a   c a l l   t o   o n e   o f   t h e   v a r i o u s   i n i t . c o m p i n   e n t r y p o i n t s . 
 * / 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   a h d r _ s w 	       b i t   ( 1 ) ; 	 / *   a l p h a   h e a d e r   c o n t r o l   s w i t c h   * / 
         d c l   a r g 	 	 	 / *   a   c o m m a n d   l i n e   a r g u m e n t   * / 
 	 	       c h a r   ( a r g l )   b a s e d   ( a r g p ) ; 
         d c l   a r g l 	       f i x e d   b i n   ( 2 1 ) ; 
         d c l   a r g p 	       p t r ; 	 	 / * * / 
 	 	 	 	 / *   l i n e   a r r a y   f o r   s o r t i n g   * / 
         d c l   1   b e a d 	       a l i g n e d   b a s e d   ( b e a d _ p t r ) , 
 	 2   c t 	       f i x e d   b i n , 	 / *   b e a d   c o u n t   * / 
 	 2   e 	       ( 0   r e f e r   ( b e a d . c t ) ) , 
 	     3   l i n p t r       p t r , 	 	 / *   - >   l i n e   t e x t   * / 
 	     3   l e n 	       f i x e d   b i n   ( 2 4 ) , 	 / *   l e n g t h   o f   g i v e n   t e x t   * / 
 	     3   t y p e 	       c h a r   ( 1 ) , 	 / *   h i t   t y p e   * / 
 	     3   s o r t p t r     p t r ; 	 	 / *   - >   l i n e   t e x t   t o   b e   c o m p a r e d   * / 
         d c l   b e a d _ p t r 	       p t r ; 
         d c l   c o d e 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   e r r o r   c o d e   * / 
         d c l   1   c o n t r o l _ f i l e   a l i g n e d   l i k e   n u l l _ f i l e ; 
         d c l   d 	 	       f i x e d   b i n ; 	 / *   b e a d   s e p a r a t i o n   f o r   s o r t i n g   * / 
         d c l   d e b u g 	       b i t   ( 1 ) ; 	 / *   d e b u g   o p t i o n   * / 
         d c l   1   d e l i m , 	 	 	 / *   h i t   l i n e   d e l i m i t e r s   * / 
 	 2   k e y 	       c h a r   ( 1 ) , 
 	 2   s e p 	       c h a r   ( 1 ) , 
 	 2   e n d 	       c h a r   ( 1 ) ; 	 / * * / 
 	 	 	 	 / *   d e f a u l t   d e l i m i t e r s   * / 
         d c l   1   d f l t _ d e l i m       s t a t i c   o p t i o n s   ( c o n s t a n t ) , 
 	 2   k e y 	       c h a r   ( 1 )   i n i t   ( " | " ) , 
 	 2   s e p 	       c h a r   ( 1 )   i n i t   ( " ~ " ) , 
 	 2   e n d 	       c h a r   ( 1 )   i n i t   ( " ; " ) ; 
         d c l   E M P T Y 	       c h a r   ( 3 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " ` ~ ' " ) ; 
         d c l   E N 	       c h a r   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " " ) ; 
         d c l   E N D 	       c h a r   ( 3 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "      " ) ; 
 	 	 	 	 / *   =   < S P > < 0 3 5 > < S P >   * / 
         d c l   e x c l _ p t r 	       p t r ; 	 	 / *   e x c l u s i o n s   f o r   p e r m u t i n g   * / 
         d c l   1   e x c l 	       a l i g n e d   b a s e d   ( e x c l _ p t r ) , 
 	 2   c t 	       f i x e d   b i n , 	 / *   c o u n t   o f   e n t r i e s   * / 
 	 2   k e y 	       ( 0   r e f e r   ( e x c l . c t ) )   c h a r   ( 1 2 8 )   v a r ; 
         d c l   h i t _ t y p e 	       c h a r   ( 1 ) ; 	 / *   g i v e n   h i t   t y p e   c h a r a c t e r   * / 
         d c l   ( i ,   j ,   k ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   i a r g 	       f i x e d   b i n ; 	 / *   a r g u m e n t   c o u n t e r   * / 
         d c l   i g n o r e 	       c h a r   ( 1 2 8 )   v a r ; 	 / *   c h a r s   t o   i g n o r e   d u r i n g   s o r t i n g   * / 
         d c l   i n d e x _ n b r 	       c h a r   ( 1 ) ; 	 / *   i n d e x   d a t a   n u m b e r ,   0 - 9   * / 
         d c l   k e y _ s t r i n g 	       c h a r   ( 1 0 2 4 )   v a r ;   / *   c u r r e n t   k e y   s t r i n g   * / 
         d c l   l a s t k e y 	       c h a r   ( 1 0 2 4 )   v a r ;   / *   l a s t k e y   s t r i n g   * / 
         d c l   1   l a s t _ h i t 	       a l i g n e d , 
 	 2   k e y 	       ( 5 )   c h a r   ( 1 0 2 4 )   v a r , 
 	 2   p a g e r e f 	       c h a r   ( 6 4 )   v a r ; 
         d c l   l i n e 	       c h a r   ( 1 0 2 4 )   v a r ;   / *   a   w o r k i n g   l i n e   * / 
         d c l   l i n e c t 	       f i x e d   b i n ; 	 / *   l i n e   c o u n t e r   * / 
         d c l   l i n s t r 	       c h a r   ( 1 0 2 4 )   b a s e d ; 
         d c l   l o w e r _ c a s e 	       c h a r   ( 2 6 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " a b c d e f g h i j k l m n o p q r s t u v w x y z " ) ; 
         d c l   m a x _ c h a r s 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   l i m i t   f o r   c h a r s   i n   a   s e g m e n t   * / 
         d c l   m e 	       c h a r   ( 1 3 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " c o m p o s e _ i n d e x " ) ; 
         d c l   n a r g s 	       f i x e d   b i n ; 	 / *   c o m m a n d   a r g u m e n t   c o u n t   * / 
         d c l   N L 	       c h a r   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 
 " ) ; 	 	 	 	 / * * / 
 	 	 	 	 / *   e m p t y   f i l e   d a t a   s t r u c t u r e   * / 
         d c l   1   n u l l _ f i l e 	       a l i g n e d   s t a t i c   o p t i o n s   ( c o n s t a n t ) , 
 	 2   c h a r c t 	       f i x e d   b i n   ( 2 4 )   i n i t   ( 0 ) , 
 	 2   e n t r y n a m e     c h a r   ( 3 2 )   a l i g n e d   i n i t   ( " " ) , 
 	 2   d i r 	       c h a r   ( 1 6 8 )   a l i g n e d   i n i t   ( " " ) , 
 	 2   l i n e n o 	       f i x e d   b i n   i n i t   ( 0 ) , 
 	 2   n a m e 	       c h a r   ( 3 2 )   v a r   i n i t   ( " " ) , 
 	 2   p a t h 	       c h a r   ( 2 0 0 )   v a r   i n i t   ( " " ) , 
 	 2   p o s n 	       f i x e d   b i n   ( 2 1 )   i n i t   ( 1 ) , 
 	 2   p t r 	       p t r   i n i t   ( n u l l   ( ) ) ; 
 	 	 	 	 / *   - >   d a t a   f i l e   * / 
         d c l   1   o u t p u t _ f i l e     a l i g n e d   l i k e   n u l l _ f i l e ; 
         d c l   p a g e r e f 	       c h a r   ( 1 0 2 4 )   v a r ;   / *   p a g e r e f   s t r i n g   * / 
         d c l   p c t 	       f i x e d   b i n ; 	 / *   p c t   c o u n t e r   f o r   s o r t   r o u t i n e   * / 
         d c l   1   r a w _ f i l e 	       a l i g n e d   l i k e   n u l l _ f i l e ; 
         d c l   S E P 	       c h a r   ( 3 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "      " ) ; 
 	 	 	 	 / *   =   < S P > < 0 3 6 > < S P >   * / 
         d c l   1   s o r t e d _ f i l e     a l i g n e d   l i k e   n u l l _ f i l e ; 
         d c l   s o r t s t r 	       c h a r   ( 1 0 2 4 )   v a r   b a s e d   ( s o r t s t r _ p t r ) ; 
         d c l   s o r t s t r _ p t r 	       p t r ; 
         d c l   s w p 	       b i t   ( 1 ) ; 	 / *   s w a p   f l a g   f o r   s o r t i n g   * / 
         d c l   1   t b e a d 	       l i k e   b e a d . e ; 	 / *   t e m p o r a r y   f o r   s o r t i n g   * / 
         d c l   1   t h i s _ h i t 	       a l i g n e d , 
 	 2   k e y 	       ( 5 )   c h a r   ( 1 0 2 4 )   v a r , 
 	 2   p a g e r e f 	       c h a r   ( 6 4 )   v a r ; 
         d c l   t l i n e 	       c h a r   ( 1 0 2 4 )   v a r ;   / *   a   w o r k i n g   l i n e   * / 
 	 	 	 	 / *   t r a n s f o r m a t i o n s   o f   p e r m u t i n g   * / 
         d c l   1   t r a n 	       a l i g n e d   b a s e d   ( t r a n _ p t r ) , 
 	 2   c t 	       f i x e d   b i n , 	 / *   c o u n t   o f   p a i r s   * / 
 	 2   e 	       ( 0   r e f e r   ( t r a n . c t ) ) , 
 	     3   i n 	       c h a r   ( 1 2 8 )   v a r , 
 	     3   o u t 	       c h a r   ( 1 2 8 )   v a r ; 
         d c l   t r a n _ p t r 	       p t r ; 
         d c l   t s e g s 	       ( 6 )   p t r ; 	 / *   t e m p   s e g   p o i n t e r s   * / 
         d c l   u p p e r _ c a s e 	       c h a r   ( 2 6 )   i n i t   ( " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z " ) 
 	 	       s t a t i c   o p t i o n s   ( c o n s t a n t ) ; 
         d c l   1   w o r k _ f i l e 	       a l i g n e d   l i k e   n u l l _ f i l e ; 
 
         d c l   ( a d d r ,   a f t e r ,   b e f o r e ,   d i v i d e ,   i n d e x ,   l e n g t h ,   n u l l ,   r t r i m ,   s u b s t r , 
                 t r a n s l a t e ) 	       b u i l t i n ; 
 
         d c l   c l e a n u p 	       c o n d i t i o n ; 
 
         d c l   e r r o r _ t a b l e _ $ b a d _ a r g 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ b a d o p t 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ z e r o _ l e n g t h _ s e g 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   s y s _ i n f o $ m a x _ s e g _ s i z e 
 	 	       f i x e d   b i n   ( 1 8 )   e x t   s t a t i c ; 
 
         d c l   c o m _ e r r _ 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   c u _ $ a r g _ c o u n t     e n t r y   ( f i x e d   b i n ) ; 
         d c l   c u _ $ a r g _ p t r 	       e n t r y   ( f i x e d   b i n ,   p t r ,   f i x e d   b i n   ( 2 1 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   e x p a n d _ p a t h n a m e _ 
 	 	       e n t r y   ( c h a r   ( * )   a l i g n e d ,   c h a r   ( * )   a l i g n e d , 
 	 	       c h a r   ( * )   a l i g n e d ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   g e t _ t e m p _ s e g m e n t s _ 
 	 	       e n t r y   ( c h a r   ( * ) ,   ( * )   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   g e t _ w d i r _ 	       e n t r y   r e t u r n s   ( c h a r   ( 1 6 8 ) ) ; 
         d c l   h c s _ $ i n i t i a t e _ c o u n t 
 	 	       e n t r y   ( c h a r   ( * )   a l i g n e d ,   c h a r   ( * )   a l i g n e d , 
 	 	       c h a r   ( * )   a l i g n e d ,   f i x e d   b i n   ( 2 4 ) ,   f i x e d   b i n   ( 1 ) ,   p t r , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   h c s _ $ m a k e _ s e g     e n t r y   ( c h a r   ( * )   a l i g n e d ,   c h a r   ( * )   a l i g n e d , 
 	 	       c h a r   ( * )   a l i g n e d ,   f i x e d   b i n   ( 5 ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   h c s _ $ s e t _ b c _ s e g 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 2 4 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   h c s _ $ t r u n c a t e _ s e g 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 1 9 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o a _ 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   r e l e a s e _ t e m p _ s e g m e n t s _ 
 	 	       e n t r y   ( c h a r   ( * ) ,   ( * )   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   t e r m _ $ s e g _ p t r     e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
 
         m a x _ c h a r s   =   4   *   s y s _ i n f o $ m a x _ s e g _ s i z e ; 
         a h d r _ s w ,   d e b u g   =   " 0 " b ; 	 	 / *   a l p h a   h e a d e r s   &   d e b u g   o f f   * / 
         i n d e x _ n b r   =   " 0 " ; 	 	 / *   d e f a u l t   i n d e x   d a t a   n u m b e r   * / 
 / * * * *         t s e g s   ( * )   =   n u l l   ( ) ; 	 	 / *   c l e a n   u p   a n y   g a r b a g e   * / 
         i g n o r e   =   " " ; 	 	 	 / *   n o   i g n o r e   c h a r s   * / 
         r a w _ f i l e   =   n u l l _ f i l e ; 	 	 / *   p l 1   b u g   1 8 1 5   w o n t   a l l o w   m u l t i p l e   * / 
         c o n t r o l _ f i l e   =   n u l l _ f i l e ; 	 	 / *   a g g r e g a t e   a s s i g n m e n t s   * / 
         o u t p u t _ f i l e   =   n u l l _ f i l e ; 
 
 / *   P R O C E S S   C O M M A N D   L I N E   * / 
 
         c a l l   c u _ $ a r g _ c o u n t   ( n a r g s ) ; 	 / *   h o w   m a n y   a r g s ?   * / 
 
         i f   n a r g s   =   0 	 	 	 / *   m u s t   h a v e   a t   l e a s t   o n e   a r g   * / 
         t h e n 
             d o ; 
                 c a l l   i o a _   ( " ^ a :   P r o p e r   u s a g e   i s :   c o m p o s e _ i n d e x   p a t h   { - c o n t r o l _ a r g } " , 
 	       m e ) ; 
                 r e t u r n ; 
             e n d ; 
 
         e l s e 
             d o   i a r g   =   1   t o   n a r g s ; 	 	 / *   p r o c e s s   t h e   a r g s   * / 
                 c a l l   c u _ $ a r g _ p t r   ( i a r g ,   a r g p ,   a r g l ,   c o d e ) ; 
                 i f   c o d e   ^ =   0 
                 t h e n 
 	 d o ; 
 a r g _ e r r : 
 	     c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " R e a d i n g   a r g u m e n t   ^ d " ,   i a r g ) ; 
 	     r e t u r n ; 
 	 e n d ; 
 
                 i f   i n d e x   ( a r g ,   " - " )   =   1 	 / *   c o n t r o l   a r g ?   * / 
                 t h e n 
 	 d o ; 
 	     i f   a r g   =   " - a l p h a _ h e a d e r "   |   a r g   =   " - a h d r " 
 	     t h e n   a h d r _ s w   =   " 1 " b ; 
 
 	     e l s e   i f   a r g   =   " - c o n t r o l _ f i l e "   |   a r g   =   " - c f " 
 	     t h e n 
 	         d o ; 
 	             i a r g   =   i a r g   +   1 ; 
 	             c a l l   c u _ $ a r g _ p t r   ( i a r g ,   a r g p ,   a r g l ,   c o d e ) ; 
 	             i f   c o d e   ^ =   0 
 	             t h e n   g o t o   a r g _ e r r ; 
 
 	             c o n t r o l _ f i l e . p a t h   =   b e f o r e   ( a r g ,   " . c n d x c t l " )   | |   " . c n d x c t l " ; 
 
 	             i f   i n d e x   ( c o n t r o l _ f i l e . p a t h ,   " < > " )   ^ =   0 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   e x p a n d _ p a t h n a m e _   ( ( c o n t r o l _ f i l e . p a t h ) , 
 	 	           c o n t r o l _ f i l e . d i r ,   c o n t r o l _ f i l e . e n t r y n a m e ,   c o d e ) ; 
 	 	 i f   c o d e   ^ =   0 
 	 	 t h e n 
 	 	     d o ; 
 	 	         c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " E x p a n d i n g   p a t h   f o r   " " ^ a " " . " , 
 	 	                   c o n t r o l _ f i l e . p a t h ) ; 
 	 	         r e t u r n ; 
 	 	     e n d ; 
 	                 e n d ; 
 
 	             e l s e 
 	                 d o ; 
 	 	 c o n t r o l _ f i l e . d i r   =   g e t _ w d i r _   ( ) ; 
 	 	 c o n t r o l _ f i l e . e n t r y n a m e   =   c o n t r o l _ f i l e . p a t h ; 
 	                 e n d ; 
 
 	             c o n t r o l _ f i l e . p a t h   = 
 	 	   r t r i m   ( c o n t r o l _ f i l e . d i r )   | |   " > " 
 	 	   | |   r t r i m   ( c o n t r o l _ f i l e . e n t r y n a m e ) ; 
 	         e n d ; 
 
 	     e l s e   i f   a r g   =   " - n u m b e r "   |   a r g   =   " - n b " 
 	     t h e n 
 	         d o ; 
 	             i a r g   =   i a r g   +   1 ; 
 	             c a l l   c u _ $ a r g _ p t r   ( i a r g ,   a r g p ,   a r g l ,   c o d e ) ; 
 	             i f   c o d e   ^ =   0 
 	             t h e n   g o t o   a r g _ e r r ; 
 
 	             i f   a r g l   >   1   |   i n d e x   ( " 0 1 2 3 4 5 6 7 8 9 " ,   a r g )   =   0 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ b a d _ a r g ,   m e , 
 	 	           " A   s i n g l e   d e c i m a l   d i g i t   e x p e c t e d   f o r   a r g u m e n t   ^ d . " , 
 	 	           i a r g ) ; 
 	 	 r e t u r n ; 
 	                 e n d ; 
 
 	             i n d e x _ n b r   =   a r g ; 
 	         e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   U N D O C U M E N T E D   * / 
 	     e l s e   i f   a r g   =   " - d e b u g " 
 	     t h e n   d e b u g   =   " 1 " b ; 
 
 	     e l s e 
 	         d o ; 
 	             c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ b a d o p t ,   m e , 
 	 	   " A r g u m e n t   ^ d   -   " " ^ a " " . " ,   i a r g ,   a r g ) ; 
 	             r e t u r n ; 
 	         e n d ; 
 	 e n d ; 
 
                 e l s e 
 	 d o ; 	 	 	 / *   f i l e   n a m e   * / 
 	     r a w _ f i l e . p a t h   =   b e f o r e   ( a r g ,   " . c o m p i n " ) ; 
 
 	     i f   s e a r c h   ( r a w _ f i l e . p a t h ,   " < > " )   ^ =   0 
 	     t h e n 
 	         d o ; 
 	             c a l l   e x p a n d _ p a t h n a m e _   ( ( r a w _ f i l e . p a t h ) ,   r a w _ f i l e . d i r , 
 	 	   r a w _ f i l e . e n t r y n a m e ,   c o d e ) ; 
 	             i f   c o d e   ^ =   0 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " E x p a n d i n g   p a t h   f o r   " " ^ a " " . " , 
 	 	           r a w _ f i l e . p a t h ) ; 
 	 	 r e t u r n ; 
 	                 e n d ; 
 	         e n d ; 
 
 	     e l s e 
 	         d o ; 
 	             r a w _ f i l e . d i r   =   g e t _ w d i r _   ( ) ; 
 	             r a w _ f i l e . e n t r y n a m e   =   r a w _ f i l e . p a t h ; 
 	         e n d ; 
 
 	     r a w _ f i l e . p a t h   = 
 	               r t r i m   ( r a w _ f i l e . d i r )   | |   " > "   | |   r t r i m   ( r a w _ f i l e . e n t r y n a m e ) ; 
 	 e n d ; 
             e n d ; 
 
 / *   P R O C E S S   T H E   R A W   F I L E   * / 
 
         r a w _ f i l e . n a m e   =   r t r i m   ( r a w _ f i l e . e n t r y n a m e )   | |   " . "   | |   i n d e x _ n b r   | |   " . c n d x " ; 
 
         c a l l   h c s _ $ i n i t i a t e _ c o u n t   ( r a w _ f i l e . d i r ,   ( r a w _ f i l e . n a m e ) ,   " " , 
                   r a w _ f i l e . c h a r c t ,   0 ,   r a w _ f i l e . p t r ,   c o d e ) ; 
         i f   r a w _ f i l e . p t r   =   n u l l   ( ) 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " I n i t i a t i n g   ^ a > ^ a . " ,   r t r i m   ( r a w _ f i l e . d i r ) , 
 	       r a w _ f i l e . n a m e ) ; 
                 r e t u r n ; 
             e n d ; 
 
         o n   c l e a n u p   g o t o   c l e a n ; 	 	 / *   w e   n o w   h a v e   s o m e t h i n g   t o   c l e a n   * / 
 
         i f   r a w _ f i l e . c h a r c t   =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ z e r o _ l e n g t h _ s e g ,   m e ,   " ^ a > ^ a . " , 
 	       r t r i m   ( r a w _ f i l e . d i r ) ,   r a w _ f i l e . n a m e ) ; 
                 g o t o   c l e a n ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   w e   a r e   G O   f o r   t h i s   r u n   * / 
         w o r k _ f i l e   =   n u l l _ f i l e ; 
         s o r t e d _ f i l e   =   n u l l _ f i l e ; 
         o u t p u t _ f i l e . d i r   =   g e t _ w d i r _   ( ) ; 	 / *   h o o k   u p   t o   t h e   o u t p u t   f i l e   * / 
         o u t p u t _ f i l e . e n t r y n a m e ,   o u t p u t _ f i l e . n a m e   = 
                   r t r i m   ( r a w _ f i l e . e n t r y n a m e )   | |   " . "   | |   i n d e x _ n b r   | |   " . i n d e x " ; 
 
         c a l l   h c s _ $ m a k e _ s e g   ( o u t p u t _ f i l e . d i r ,   o u t p u t _ f i l e . e n t r y n a m e ,   " " ,   1 0 , 
                   o u t p u t _ f i l e . p t r ,   c o d e ) ; 
         i f   o u t p u t _ f i l e . p t r   =   n u l l   ( ) 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " A c c e s s i n g   t h e   o u t p u t   c o m p i n   f i l e . " ) ; 
                 g o t o   c l e a n ; 
             e n d ; 
 
         c a l l   h c s _ $ t r u n c a t e _ s e g   ( o u t p u t _ f i l e . p t r ,   0 ,   c o d e ) ; 
 	 	 	 	 / *   g e t   s o m e   t e m p   s e g s   * / 
         c a l l   g e t _ t e m p _ s e g m e n t s _   ( m e ,   t s e g s ,   c o d e ) ; 
         i f   c o d e   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " C r e a t i n g   t e m p o r a r y   s e g m e n t s . " ) ; 
                 g o t o   c l e a n ; 
             e n d ; 
         w o r k _ f i l e . p t r   =   t s e g s   ( 1 ) ; 
         b e a d _ p t r   =   t s e g s   ( 2 ) ; 
         s o r t e d _ f i l e . p t r   =   t s e g s   ( 3 ) ; 
         t r a n _ p t r   =   t s e g s   ( 4 ) ; 
         e x c l _ p t r   =   t s e g s   ( 5 ) ; 
         s o r t s t r _ p t r   =   t s e g s   ( 6 ) ; 
 
         i f   c o n t r o l _ f i l e . d i r   =   " " 	 	 / *   n o   c o n t r o l   f i l e   g i v e n ?   * / 
         t h e n 
             d o ; 	 	 	 	 / *   u s e   r a w   d a t a   f i l e   f o r   c o n t r o l   * / 
                 c o n t r o l _ f i l e . d i r   =   r a w _ f i l e . d i r ; 
                 c o n t r o l _ f i l e . e n t r y n a m e   =   r a w _ f i l e . e n t r y n a m e ; 
                 c o n t r o l _ f i l e . n a m e   =   r t r i m   ( c o n t r o l _ f i l e . e n t r y n a m e )   | |   " . c n d x c t l " ; 
             e n d ; 
 
         c a l l   h c s _ $ i n i t i a t e _ c o u n t   ( c o n t r o l _ f i l e . d i r ,   ( c o n t r o l _ f i l e . n a m e ) ,   " " , 
                   c o n t r o l _ f i l e . c h a r c t ,   0 ,   c o n t r o l _ f i l e . p t r ,   c o d e ) ; 
 
         i f   c o n t r o l _ f i l e . p t r   =   n u l l   ( ) 	 / *   n o   c o n t r o l   f i l e ?   * / 
         t h e n 
             d o ; 
 n o _ c t l _ f i l e : 
                 c a l l   w r i t e   ( o u t p u t _ f i l e ,   " . . i n i t   " " " " " ) ; 
                 c a l l   w r i t e   ( o u t p u t _ f i l e ,   " . . l 0 i n d e x " ) ; 
                 g o t o   G O ; 
             e n d ; 
 
         i f   c o n t r o l _ f i l e . c h a r c t   =   0 	 / *   e m p t y   c o n t r o l   f i l e ?   * / 
         t h e n 
             d o ; 
                 c o n t r o l _ f i l e . p t r   =   n u l l   ( ) ; 
                 g o t o   n o _ c t l _ f i l e ; 
             e n d ; 	 	 	 / *   i n   c a s e   t h e   u s e r   f o r g e t s   t h e m   * / 
         c a l l   w r i t e   ( o u t p u t _ f i l e ,   " . s r v   M P M _ S P A C E " ) ; 
         c a l l   w r i t e   ( o u t p u t _ f i l e ,   " . s r v   I N D E X S P A C E   1 " ) ; 
 	 	 	 	 / *   p r o c e s s   c o n t r o l   f i l e   * / 
         c o n t r o l _ f i l e . c h a r c t   =   d i v i d e   ( c o n t r o l _ f i l e . c h a r c t ,   9 ,   2 1 ,   0 ) ; 
         t r a n . c t   =   0 ; 
         e x c l . c t   =   0 ; 
 
         d o   w h i l e   ( c o n t r o l _ f i l e . p o s n   <   c o n t r o l _ f i l e . c h a r c t ) ; 
             l i n e   =   r e a d   ( c o n t r o l _ f i l e ) ; 	 / * * / 
 	 	 	 	 / *   t r a n s f o r m a t i o n s   * / 
             i f   s u b s t r   ( l i n e ,   1 ,   6 )   =   " . * t r a n " 
             t h e n 
                 d o ; 
 	 t l i n e   =   t r a n s l a t e   ( a f t e r   ( l i n e ,   " . * t r a n   " ) ,   l o w e r _ c a s e ,   u p p e r _ c a s e ) ; 
 	 i f   s u b s t r   ( t l i n e ,   1 ,   1 )   ^ =   " , " 
 	 t h e n 
 t r a n _ e r r : 
 	     c a l l   i o a _   ( " ^ a :   M i s s i n g   c o m m a   a t   l i n e   ^ d . ^ / ^ - ^ a " ,   m e , 
 	               r a w _ f i l e . l i n e n o ,   l i n e ) ; 
 
 	 e l s e 
 	     d o ; 
 	         t l i n e   =   a f t e r   ( t l i n e ,   " , " ) ; 
 	         i f   i n d e x   ( t l i n e ,   " , " )   =   0 
 	         t h e n   g o t o   t r a n _ e r r ; 
 
 	         e l s e 
 	             d o ; 
 	                 i   =   t r a n . c t   +   1 ; 
 	                 t r a n . i n   ( i )   =   r t r i m   ( b e f o r e   ( t l i n e ,   " , " ) ) ; 
 	                 t l i n e   =   a f t e r   ( t l i n e ,   " , " ) ; 
 	                 t r a n . o u t   ( i )   =   r t r i m   ( b e f o r e   ( t l i n e ,   " , " ) ) ; 
 	                 t r a n . c t   =   i ; 
 	             e n d ; 
 	     e n d ; 
                 e n d ; 
 
             e l s e   i f   s u b s t r   ( l i n e ,   1 ,   8 )   =   " . * p h r a s e " 
             t h e n 
                 d o ; 
 	 i   =   t r a n . c t   +   1 ; 
 	 t r a n . i n   ( i )   =   t l i n e ; 
 	 t r a n . o u t   ( i )   =   t r a n s l a t e   ( t l i n e ,   " " ,   "   " ) ; 
 	 t r a n . c t   =   i ; 
                 e n d ; 
 
             e l s e   i f   s u b s t r   ( l i n e ,   1 ,   6 )   =   " . * e x c l " 
 	 	 	 	 / *   e x c l u s i o n s   * / 
             t h e n 
                 d o ; 
 	 t l i n e   =   t r a n s l a t e   ( a f t e r   ( l i n e ,   " . * e x c l   " ) ,   l o w e r _ c a s e ,   u p p e r _ c a s e ) ; 
 
 	 d o   e x c l . c t   =   e x c l . c t   +   1   b y   1   w h i l e   ( t l i n e   ^ =   " " ) ; 
 	     i f   t l i n e   ^ =   " , "   &   s u b s t r   ( t l i n e ,   1 ,   2 )   ^ =   " , , " 
 	     t h e n   e x c l . k e y   ( e x c l . c t )   =   b e f o r e   ( t l i n e ,   " , " ) ; 
 e x c l _ l o o p : 	 	 	 / *   c o n v e r t   ~ s   t o   S E P s   * / 
 	     j   =   i n d e x   ( e x c l . k e y   ( e x c l . c t ) ,   " ~ " ) ; 
 	     i f   j   >   0 
 	     t h e n 
 	         d o ; 
 	             e x c l . k e y   ( e x c l . c t )   = 
 	 	   s u b s t r   ( e x c l . k e y   ( e x c l . c t ) ,   1 ,   j   -   1 )   | |   S E P 
 	 	   | |   s u b s t r   ( e x c l . k e y   ( e x c l . c t ) ,   j   +   1 ) ; 
 	         e n d ; 
 
 	     t l i n e   =   a f t e r   ( t l i n e ,   " , " ) ; 
 	 e n d ; 
 
 	 e x c l . c t   =   e x c l . c t   -   1 ; 	 / *   b a c k   o u t   e x t r a   c o u n t   * / 
                 e n d ; 
 
             e l s e   i f   s u b s t r   ( l i n e ,   1 ,   8 )   =   " . * i g n o r e " 
 	   |   s u b s t r   ( l i n e ,   1 ,   7 )   =   " . * b l i n d " 
             t h e n   i g n o r e   =   a f t e r   ( l i n e ,   "   " ) ; 	 / *   w r i t e   i t   t o   o u t p u t   &   l e t   c o m p o s e   * / 
             e l s e   c a l l   w r i t e   ( o u t p u t _ f i l e ,   l i n e ) ; 
 	 	 	 	 / *   w o r r y   a b o u t   i t   * / 
         e n d ; 
 
 G O : 
         w o r k _ f i l e . n a m e   =   " w o r k _ f i l e " ; 
 
         l a s t _ h i t . k e y   ( * ) ,   t h i s _ h i t . k e y   ( * )   =   E M P T Y ; 
         l a s t _ h i t . p a g e r e f ,   t h i s _ h i t . p a g e r e f   =   " " ; 
 
         r a w _ f i l e . c h a r c t   =   d i v i d e   ( r a w _ f i l e . c h a r c t ,   9 ,   2 1 ,   0 ) ; 
         l i n e c t ,   b e a d . c t   =   0 ; 	 	 / * * / 
 	 	 	 	 / *   r u n   t h r u   r a w   d a t a   f i l e   * / 
         d o   w h i l e   ( r a w _ f i l e . p o s n   <   r a w _ f i l e . c h a r c t ) ; 
             d e l i m   =   d f l t _ d e l i m ; 	 	 / *   r e i n i t i a l i z e   d e l i m i t e r s   * / 
 
             l i n e   =   r e a d   ( r a w _ f i l e ) ; 	 	 / *   r e a d   a   l i n e   * / 
             l i n e c t   =   l i n e c t   +   1 ; 	 	 / *   a n d   c o u n t   i t   * / 
 	 	 	 	 / *   p r o c e s s   o n l y   t h o s e   l i n e s   h a v i n g * / 
             i f   i n d e x   ( l i n e ,   " . ~   H I T   " )   ^ =   0 	 / *   a   h i t   f l a g   s t r i n g   * / 
             t h e n 
                 d o ; 
 	 i f   d e b u g 
 	 t h e n   c a l l   i o a _   ( " H I T   l i n e :   " " ^ a " " " ,   l i n e ) ; 
 
 	 t l i n e   =   a f t e r   ( l i n e ,   " . ~   H I T   " ) ; 
 	 	 	 	 / *   s t r i p   o f f   h i t   f l a g   s t r i n g   * / 
 
 	 i f   s u b s t r   ( t l i n e ,   1 ,   1 )   =   " = "   / *   d e l i m i t e r   c h a n g e   f o r   t h i s   l i n e ?   * / 
 	 t h e n 
 	     d o ; 
 	         d e l i m . k e y   =   s u b s t r   ( t l i n e ,   2 ,   1 ) ; 
 	         d e l i m . s e p   =   s u b s t r   ( t l i n e ,   3 ,   1 ) ; 
 	         d e l i m . e n d   =   s u b s t r   ( t l i n e ,   4 ,   1 ) ; 
 	         t l i n e   =   s u b s t r   ( t l i n e ,   5 ) ; 
 	     e n d ; 	 	 	 / *   s k i p   n u l l   k e y   s t r i n g s   * / 
 	 i f   s u b s t r   ( t l i n e ,   1 ,   1 )   =   d e l i m . e n d 
 	 t h e n   g o t o   s k i p _ h i t ; 	 	 / *   c o p y   t h e   h i t   t y p e   c h a r   * / 
 	 h i t _ t y p e   =   s u b s t r   ( t l i n e ,   1 ,   1 ) ; 
 	 t l i n e   =   a f t e r   ( t l i n e ,   h i t _ t y p e ) ; 
 	 	 	 	 / *   a n d   s t r i p   i t   o f f   * / 
 
 	 i f   i n d e x   ( t l i n e ,   d e l i m . k e y )   =   0 
 	 	 	 	 / *   c h e c k   f o r   r e q u i r e d   k e y   d e l i m   * / 
 	 t h e n 
 	     d o ; 
 	         c a l l   i o a _   ( " N o   k e y   d e l i m i t e r   f o r   l i n e   ^ d ,   o n e   w i l l   b e   p r o v i d e d . " 
 	                   | |   " ^ / ^ - ^ a " ,   r a w _ f i l e . l i n e n o ,   l i n e ) ; 
 	         t l i n e   =   d e l i m . k e y   | |   t l i n e ; 
 	     e n d ; 
 
 	 i   =   0 ; 	 	 	 / *   c o n v e r t   g i v e n   d e l i m i t e r s   * / 
 	 d o   w h i l e   ( i   < =   l e n g t h   ( t l i n e ) ) ; 
 	     j ,   k   =   0 ; 
 
 	     j   =   i n d e x   ( t l i n e ,   d e l i m . s e p ) ; 
 	     i f   j   >   0 
 	     t h e n   t l i n e   =   b e f o r e   ( t l i n e ,   d e l i m . s e p )   | |   S E P 
 	 	     | |   a f t e r   ( t l i n e ,   d e l i m . s e p ) ; 
 
 	     k   =   i n d e x   ( t l i n e ,   d e l i m . e n d ) ; 
 	     i f   k   >   0 
 	     t h e n   t l i n e   =   b e f o r e   ( t l i n e ,   d e l i m . e n d )   | |   E N D 
 	 	     | |   a f t e r   ( t l i n e ,   d e l i m . e n d ) ; 
 
 	     i f   j   >   0   |   k   >   0 
 	     t h e n   i   =   i   +   m i n   ( j ,   k ) ; 
 	     e l s e   i   =   l e n g t h   ( t l i n e )   +   1 ; 
 	 e n d ; 
 
 	 i f   s u b s t r   ( t l i n e ,   1 ,   1 )   ^ =   d e l i m . k e y 
 	 	 	 	 / *   i s   t h e r e   a   l a s t k e y ?   * / 
 	 t h e n 
 	     d o ; 
 	         l a s t k e y   =   b e f o r e   ( t l i n e ,   d e l i m . k e y ) ; 
 	         t l i n e   =   a f t e r   ( t l i n e ,   l a s t k e y ) ; 
 	     e n d ; 
 	 e l s e   l a s t k e y   =   " " ; 
 
 	 t l i n e   =   a f t e r   ( t l i n e ,   d e l i m . k e y ) ; 
 	 	 	 	 / *   s t r i p   k e y   d e l i m   * / 
 	 p a g e r e f   = 	 	 	 / *   c o p y   p a g e r e f   s t r i n g   * / 
 	           b e f o r e   ( l t r i m   ( a f t e r   ( t l i n e ,   E N D ) ) ,   "   " ) ; 
 	 t l i n e   =   s u b s t r   ( t l i n e ,   1 ,   l e n g t h   ( t l i n e )   -   l e n g t h   ( p a g e r e f ) ) ; 
 	 	 	 	 / *   t r i m   p a g e r e f   s t r i n g   * / 
 
 	 i f   t l i n e   =   " " 	 	 / *   s k i p   e m p t y   k e y   s t r i n g s   * / 
 	 t h e n   g o t o   s k i p _ h i t ; 
 
 / *   K   t y p e   -   s p e c i f e d   k e y   * / 
 / *   S   t y p e   -   " s e e "   r e f e r e n c e   * / 
 	 i f   h i t _ t y p e   =   " K "   |   h i t _ t y p e   =   " S " 
 	 t h e n 
 	     d o   w h i l e   ( t l i n e   ^ =   " " ) ; 
 	         k e y _ s t r i n g   =   b e f o r e   ( t l i n e ,   d e l i m . k e y )   | |   l a s t k e y ; 
 	         i f   h i t _ t y p e   =   " K " 
 	         t h e n   k e y _ s t r i n g   =   k e y _ s t r i n g   | |   p a g e r e f ; 
 	 	 	 	 / *   m a k e   a   n e w   b e a d   * / 
 	         c a l l   m a k e _ b e a d   ( k e y _ s t r i n g ) ; 
 
 	         t l i n e   =   a f t e r   ( t l i n e ,   d e l i m . k e y ) ; 
 	     e n d ; 
 
 / *   U   t y p e   -   p e r m u t e d   u p p e r   c a s e   * / 
 
 / *   T h e   k e y   s t r i n g   m a y   b e   O N L Y   a   l e v e l   1   k e y .   E a c h   " w o r d "   o f   t h e   k e y   i s   
       t r a n s l a t e d   t o   u p p e r c a s e   a n d   e m i t t e d   a s   a   l e v e l   1   k e y   a n d   f o l l o w e d   b y   t h e   
       g i v e n   k e y   s t r i n g   a t   l e v e l   2 .   * / 
 
 	 i f   h i t _ t y p e   =   " U " 
 	 t h e n 
 	     d o ; 
 
 / * 
 { t r a n s : = " 1 , $ U / ^ . * % % % / " }   "   	 s e t   s p e c i a l   t r a n s l a t i o n 
 > ( p e r m u t e )   \ B ( e x e c )   " 	 c a l l   p e r m u t e r 
 
 1 , $ U / ^ . * ~ /   1 , $ M ( r f )   " 	 t r a n s l a t e   a l l   t o   u p p e r c a s e   a n d   c o p y   t o   b ( r f ) 
 : ( n o _ U ) 
 * / 
 
 	         c a l l   p e r m u t e   ( t l i n e ) ; 
 	     e n d ; 
 s k i p _ h i t : 
                 e n d ; 
         e n d ; 	 	 	 	 / *   s o r t   t h e   h i t s   * / 
         i f   b e a d . c t   >   0 
         t h e n 
             d o ; 
                 p c t   =   0 ; 
                 d   =   b e a d . c t ; 
 s o r t : 
                 d   =   d i v i d e   ( d   +   1 ,   2 ,   1 7 ,   0 ) ; 
 p a s s : 
                 p c t   =   p c t   +   1 ; 
                 s w p   =   " 0 " b ; 
                 d o   i   =   1   t o   b e a d . c t   -   d ; 
 	 j   =   i   +   d ; 
 
 	 i f   b e a d . s o r t p t r   ( i )   - >   s o r t s t r   >   b e a d . s o r t p t r   ( j )   - >   s o r t s t r 
 	 t h e n 
 	     d o ; 
 	         t b e a d   =   b e a d . e   ( j ) ; 
 	         b e a d . e   ( j )   =   b e a d . e   ( i ) ; 
 	         b e a d . e   ( i )   =   t b e a d ; 
 	         s w p   =   " 1 " b ; 
 	     e n d ; 
                 e n d ; 
 
                 i f   s w p 
                 t h e n   g o t o   p a s s ; 
                 i f   d   >   1 
                 t h e n   g o t o   s o r t ; 
             e n d ; 
 
         s o r t e d _ f i l e . n a m e   =   " s o r t e d _ f i l e " ; 
 
         d o   i   =   1   t o   b e a d . c t ; 
             c a l l   w r i t e   ( s o r t e d _ f i l e , 
 	   s u b s t r   ( b e a d . l i n p t r   ( i )   - >   l i n s t r ,   1 ,   b e a d . l e n   ( i ) ) ) ; 
         e n d ; 
 
         p a g e r e f   =   " " ; 	 	 	 / *   e r a s e   l e f t o v e r s   * / 
         s o r t e d _ f i l e . p o s n   =   1 ; 	 	 / *   " r e w i n d "   s o r t e d   f i l e   * / 
         l i n e c t   =   0 ; 
 
         d o   w h i l e   ( s o r t e d _ f i l e . p o s n   < =   s o r t e d _ f i l e . c h a r c t ) ; 
 	 	 	 	 / *   g e t   k e y   s t r i n g s   f r o m   * / 
             c a l l   g e t _ k e y s ; 	 	 / *   n e x t   s o r t e d   f i l e   l i n e   * / 
             l i n e c t   =   l i n e c t   +   1 ; 
 
             d o   i   =   1   t o   5   w h i l e   ( t h i s _ h i t . k e y   ( i )   ^ =   E M P T Y ) ; 
 	 	 	 	 / *   b r e a k   a t   t h i s   l e v e l ?   * / 
                 i f   t r a n s l a t e   ( t h i s _ h i t . k e y   ( i ) ,   l o w e r _ c a s e ,   u p p e r _ c a s e ) 
 	       ^ =   t r a n s l a t e   ( l a s t _ h i t . k e y   ( i ) ,   l o w e r _ c a s e ,   u p p e r _ c a s e ) 
                 t h e n 
 	 d o ; 
 	     i f   p a g e r e f   ^ =   " " 
 	     t h e n 
 	         d o ; 
 	             c a l l   w r i t e   ( o u t p u t _ f i l e ,   p a g e r e f ) ; 
 	             p a g e r e f   =   " " ; 
 	         e n d ; 
 
 	     i f   i   =   1 	 	 / *   f i r s t   l e v e l   b r e a k ?   * / 
 	     t h e n 
 	         d o ; 
 	             i f   a h d r _ s w 	 	 / *   a l p h a   h e a d e r s   w a n t e d ?   * / 
 	             t h e n 
 	                 d o ; 	 	 / *   d o e s   f i r s t   c h a r   c h a n g e ?   * / 
 	 	 i f   t r a n s l a t e   ( s u b s t r   ( t h i s _ h i t . k e y   ( 1 ) ,   1 ,   1 ) ,   l o w e r _ c a s e , 
 	 	           u p p e r _ c a s e ) 
 	 	           ^ = 
 	 	           t r a n s l a t e   ( s u b s t r   ( l a s t _ h i t . k e y   ( 1 ) ,   1 ,   1 ) , 
 	 	           l o w e r _ c a s e ,   u p p e r _ c a s e ) 
 	 	 t h e n 
 	 	     d o ; 
 	 	         c a l l   w r i t e   ( o u t p u t _ f i l e , 
 	 	                   " . u r   . u r   . s p t   % % { % I N D E X S P A C E %   +   % M P M _ S P A C E % } % % " ) ; 
 	 	         c a l l   w r i t e   ( o u t p u t _ f i l e , 
 	 	                   " . t l h   1   0   | | % . f n t   H B R % " 
 	 	                   | | 
 	 	                   t r a n s l a t e   ( s u b s t r   ( t h i s _ h i t . k e y   ( 1 ) ,   1 ,   1 ) , 
 	 	                   u p p e r _ c a s e ,   l o w e r _ c a s e )   | |   " % . f n t % | | " ) ; 
 	 	     e n d ; 
 	                 e n d ; 
 
 	             c a l l   w r i t e   ( o u t p u t _ f i l e ,   " . u r   . s p t   % I N D E X S P A C E % " ) ; 
 	 	 	 	 / *   s e t   s p l i t   t i t l e   * / 
 	             c a l l   w r i t e   ( o u t p u t _ f i l e , 
 	 	   " . d f u   b l o c k _ s p l i t   . s t l   | "   | |   t h i s _ h i t . k e y   ( 1 ) 
 	 	   | |   "   ( c o n t . )   | " ) ; 
 	         e n d ; 
 
 	     c a l l   w r i t e   ( o u t p u t _ f i l e ,   " . u n l   "   | |   l t r i m   ( c h a r   ( 2   *   ( 5   -   i ) ) ) ) ; 
 	     c a l l   w r i t e   ( o u t p u t _ f i l e ,   t h i s _ h i t . k e y   ( i ) ) ; 
 
 	     d o   j   =   i   +   1   t o   4 ; 	 / *   c l e a r   s u b o r d i n a t e   k e y s   * / 
 	         l a s t _ h i t . k e y   ( j )   =   E M P T Y ; 
 	     e n d ; 
 	 e n d ; 
             e n d ; 
 
             i f   p a g e r e f   =   " " 
             t h e n   p a g e r e f   =   t h i s _ h i t . p a g e r e f ; 
             e l s e   i f   t h i s _ h i t . p a g e r e f   ^ =   l a s t _ h i t . p a g e r e f 
             t h e n   p a g e r e f   =   p a g e r e f   | |   " ,   "   | |   t h i s _ h i t . p a g e r e f ; 
 
             l a s t _ h i t   =   t h i s _ h i t ; 
         e n d ; 	 	 	 	 / *   a n d   f i n a l l y ,   t h e   p a g e r e f   * / 
         i f   p a g e r e f   ^ =   " " 
         t h e n   c a l l   w r i t e   ( o u t p u t _ f i l e ,   p a g e r e f ) ; 
 
 c l e a n : 
         c a l l   t e r m _ $ s e g _ p t r   ( r a w _ f i l e . p t r ,   c o d e ) ; 
         i f   c o d e   ^ =   0 
         t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " T e r m i n a t i n g   ^ a > ^ a . " ,   r t r i m   ( r a w _ f i l e . d i r ) , 
 	         r a w _ f i l e . n a m e ) ; 
 
         c o d e   =   0 ; 
         i f   c o n t r o l _ f i l e . p t r   ^ =   n u l l   ( ) 
         t h e n   c a l l   t e r m _ $ s e g _ p t r   ( c o n t r o l _ f i l e . p t r ,   c o d e ) ; 
         i f   c o d e   ^ =   0 
         t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " T e r m i n a t i n g   ^ a > ^ a . " , 
 	         r t r i m   ( c o n t r o l _ f i l e . d i r ) ,   c o n t r o l _ f i l e . n a m e ) ; 
 
         c o d e   =   0 ; 
         i f   o u t p u t _ f i l e . p t r   ^ =   n u l l   ( ) 
         t h e n 
             d o ; 
                 c a l l   h c s _ $ s e t _ b c _ s e g   ( o u t p u t _ f i l e . p t r ,   9   *   o u t p u t _ f i l e . c h a r c t ,   c o d e ) ; 
                 i f   c o d e   ^ =   0 
                 t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " S e t t i n g   b i t c o u n t   f o r   ^ a > ^ a " , 
 	                 r t r i m   ( o u t p u t _ f i l e . d i r ) ,   r t r i m   ( o u t p u t _ f i l e . e n t r y n a m e ) ) ; 
                 c o d e   =   0 ; 
 
                 c a l l   t e r m _ $ s e g _ p t r   ( o u t p u t _ f i l e . p t r ,   c o d e ) ; 
                 i f   c o d e   ^ =   0 
                 t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " T e r m i n a t i n g   ^ a > ^ a . " , 
 	                 r t r i m   ( o u t p u t _ f i l e . d i r ) ,   o u t p u t _ f i l e . n a m e ) ; 
             e n d ; 
 
         c o d e   =   0 ; 
         c a l l   r e l e a s e _ t e m p _ s e g m e n t s _   ( m e ,   t s e g s ,   c o d e ) ; 
         i f   c o d e   ^ =   0 
         t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " R e l e a s i n g   t e m p o r a r y   s e g m e n t s . " ) ; 
 % p a g e ; 
 / *   c o n v e r t   d i g i t   s t r i n g s   t o   p i c t u r e s   f o r   p r o p e r   s o r t i n g   * / 
 c o n v _ n b r s : 
     p r o c   ( s t r ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   s t r 	       c h a r   ( 1 0 2 4 )   v a r ; 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   ( i ,   j ,   k ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   p i c 	       p i c   " ( 9 ) 9 " ; 	 / *   o u t p u t   p c i t u r e   * / 
 
         i   =   1 ; 	 	 	 / *   s c a n   t h e   s t r i n g   * / 
         d o   w h i l e   ( i   < =   l e n g t h   ( s t r ) ) ; 
             j   =   s e a r c h   ( s u b s t r   ( s t r ,   i ) ,   " 0 1 2 3 4 5 6 7 8 9 " ) ; 
 	 	 	 	 / *   l o o k   f o r   n u m b e r s   * / 
 
             i f   j   >   0 	 	 	 / *   f o u n d   o n e   * / 
             t h e n 
                 d o ; 
 	 i   =   i   +   j   -   1 ; 	 	 / *   s k i p   t o   f i r s t   d i g i t   * / 
 	 k   =   v e r i f y   ( s u b s t r   ( s t r ,   i ) ,   " 0 1 2 3 4 5 6 7 8 9 " ) ; 
 	 	 	 	 / *   h o w   m a n y ?   * / 
 	 i f   k   =   0 	 	 	 / *   a l l   t h e   r e s t   o f   s t r   * / 
 	 t h e n   k   =   l e n g t h   ( s t r )   -   i   +   1 ; 
 	 e l s e   k   =   k   -   1 ; 
 
 	 p i c   =   c o n v e r t   ( p i c ,   s u b s t r   ( s t r ,   i ,   k ) ) ; 
 	 	 	 	 / *   c o n v e r t   t o   p i c t u r e   * / 
 	 s t r   =   s u b s t r   ( s t r ,   1 ,   i   -   1 )   | |   p i c   | |   s u b s t r   ( s t r ,   i   +   k ) ; 
 	 i   =   i   +   9 ; 
                 e n d ; 
 
             e l s e   i   =   l e n g t h   ( s t r )   +   1 ; 	 / *   f o r   l o o p   c o n t r o l   * / 
         e n d ; 
 
     e n d   c o n v _ n b r s ; 
 % p a g e ; 
 / *   r e a d   a   l i n e   f r o m   t h e   s o r t e d   d a t a   f i l e   a n d   b r e a k   i t   i n t o   k e y s   * / 
 g e t _ k e y s : 
     p r o c ; 
 
         d c l   i 	 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
 
         t h i s _ h i t . k e y   ( * )   =   E M P T Y ; 	 	 / *   p r e s e t   t o   e m p t y   * / 
         t h i s _ h i t . p a g e r e f   =   " " ; 
 
         l i n e   =   r e a d   ( s o r t e d _ f i l e ) ; 	 / *   r e a d   a   l i n e   f r o m   t h e   s o r t e d   f i l e   * / 
 
         d o   i   =   1   t o   5   w h i l e   ( l i n e   ^ =   " " ) ; 	 / *   b r e a k   i t   i n t o   k e y   f i e l d s   * / 
             j ,   k   =   0 ; 
             j   =   i n d e x   ( l i n e ,   S E P ) ; 	 	 / *   l o o k   f o r   a   k e y   s e p a r a t o r   * / 
             i f   j   >   0 	 	 	 / *   f o u n d   a   s e p a r a t o r ?   * / 
             t h e n 
                 d o ; 
 	 t h i s _ h i t . k e y   ( i )   =   b e f o r e   ( l i n e ,   S E P ) ; 
 	 l i n e   =   a f t e r   ( l i n e ,   S E P ) ; 
                 e n d ; 
 
             e l s e   k   =   i n d e x   ( l i n e ,   E N D ) ; 	 / *   l o o k   a   k e y   t e r m i n a t o r   * / 
             i f   k   >   0 	 	 	 / *   f o u n d   a   t e r m i n a t o r ?   * / 
             t h e n 
                 d o ; 
 	 t h i s _ h i t . k e y   ( i )   =   b e f o r e   ( l i n e ,   E N D ) ; 
 	 l i n e   =   a f t e r   ( l i n e ,   E N D ) ; 
                 e n d ; 
 
             i f   i   =   1 
             t h e n 
                 d o ; 
 	 i f   h i t _ t y p e   =   " U " 
 	 t h e n   t h i s _ h i t . k e y   ( 1 )   = 
 	 	 t r a n s l a t e   ( t h i s _ h i t . k e y   ( 1 ) ,   u p p e r _ c a s e ,   l o w e r _ c a s e ) ; 
                 e n d ; 
 
 
             e l s e   i f   j   =   0 	 	 	 / *   f o u n d   n e i t h e r ,   r e s t   i s   p a g e n o   * / 
             t h e n 
                 d o ; 
 	 t h i s _ h i t . p a g e r e f   =   l t r i m   ( l i n e ) ; 
 	 l i n e   =   " " ; 
                 e n d ; 
         e n d ; 
 
     e n d   g e t _ k e y s ; 
 % p a g e ; 
 / *   c l e a n s   u p   a   k e y   s t r i n g   a n d   a d d   i t   t o   t h e   l i s t   o f   s o r t a b l e   b e a d s   * / 
 m a k e _ b e a d : 
     p r o c   ( s t r ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   s t r 	       c h a r   ( 1 0 2 4 )   v a r ;   / *   k e y   s t r i n g   ( I N P U T )   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   e n d 	       f i x e d   b i n ; 	 / *   p o s i t i o n   o f   E N D   * / 
         d c l   ( k ,   l ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   b d s t r 	       c h a r   ( 1 0 2 4 )   v a r ;   / *   w o r k i n g   s t r i n g   * / 
         d c l   b l i n d _ c h a r 	       c h a r   ( 1 ) ; 	 / *   b l i n d   s o r t   c h a r a c t e r   * / 
 
         b d s t r   =   s t r ; 	 	 	 / *   c o p y   g i v e n   s t r i n g   * / 
 
         k   =   1 ; 	 	 	 / *   d i s c a r d   p a d   c h a r a c t e r s   * / 
         d o   w h i l e   ( k   >   0 ) ; 
             k   =   s e a r c h   ( b d s t r ,   " ÿ " ) ; 	 / *   < 1 7 7 > < 7 7 7 >   * / 
             i f   k   >   0 
             t h e n   b d s t r   =   s u b s t r   ( b d s t r ,   1 ,   k   -   1 )   | |   s u b s t r   ( b d s t r ,   k   +   1 ) ; 
         e n d ; 
 
         k   =   i n d e x   ( b d s t r ,   S E P   | |   E N D ) ; 	 / *   t r i m   t r a i l i n g   S E P s   * / 
         i f   k   >   0 
         t h e n   b d s t r   =   s u b s t r   ( b d s t r ,   1 ,   k   -   1 )   | |   s u b s t r   ( b d s t r ,   k   +   3 ) ; 
 
         b e a d . c t   =   b e a d . c t   +   1 ; 	 	 / *   m a k e   a   n e w   b e a d   * / 
         b e a d . l i n p t r   ( b e a d . c t )   = 	 	 / *   p o i n t   t o   g i v e n   l i n e   * / 
                   a d d r   ( s u b s t r   ( w o r k _ f i l e . p t r   - >   l i n s t r ,   w o r k _ f i l e . p o s n ) ) ; 
         b e a d . l e n   ( b e a d . c t )   =   l e n g t h   ( b d s t r ) ; / *   l e n   o f   c l e a n e d   u p   k e y   s t r i n g   * / 
         b e a d . t y p e   =   h i t _ t y p e ; 	 	 / *   r e c o r d   h i t   t y p e   * / 
         c a l l   w r i t e   ( w o r k _ f i l e ,   b d s t r ) ; 	 / *   s a v e   g i v e n   l i n e   * / 
 	 	 	 	 / *   f o r c e   l o w e r   c a s e   * / 
         b d s t r   =   t r a n s l a t e   ( b d s t r ,   l o w e r _ c a s e ,   u p p e r _ c a s e ) ; 
 
         k   =   1 ; 	 	 	 / *   d i s c a r d   b l i n d   p a d   c h a r   f o r   s o r t   * / 
         d o   w h i l e   ( k   >   0 ) ; 
             k   =   s e a r c h   ( b d s t r ,   " ¿ " ) ; 	 / *   < 2 7 7 >   * / 
             i f   k   >   0 
             t h e n   b d s t r   =   s u b s t r   ( b d s t r ,   1 ,   k   -   1 )   | |   s u b s t r   ( b d s t r ,   k   +   1 ) ; 
         e n d ; 
 
         c a l l   c o n v _ n b r s   ( b d s t r ) ; 	 	 / *   c o n v e r t   n u m b e r s   t o   p i c t u r e s   * / 
 	 	 	 	 / *   p r o c e s s   i g n o r e   c h a r s   * / 
         i f   h i t _ t y p e   =   " S " 	 	 / *   S   t y p e ?   * / 
         t h e n 
             d o ; 	 	 	 	 / *   p o s i t i o n   o f   " s e e "   * / 
                 e n d   =   i n d e x   ( b d s t r ,   " s e e " )   -   1 ; 
                 i f   e n d   >   1 	 	 	 / *   p a r e n s   o n   i t ?   * / 
                 t h e n   i f   s u b s t r   ( b d s t r ,   e n d ,   1 )   =   " ( " 
 	       t h e n   e n d   =   e n d   -   1 ; 
             e n d ; 
 
         e l s e   e n d   =   i n d e x   ( b d s t r ,   E N D ) ; 
         l   =   e n d   -   1 ; 	 	 	 / *   l e n g t h   o f   s t r i n g   t o   s c a n   * / 
 
         k   =   1 ; 	 	 	 / *   m a s s a g e   i g n o r e   c h a r s   * / 
         i f   i g n o r e   ^ =   " " 
         t h e n 
             d o   w h i l e   ( k   >   0 ) ; 
                 k   =   s e a r c h   ( b d s t r ,   i g n o r e ) ; 
                 i f   k   >   0 
                 t h e n 
 	 d o ; 
 	     b l i n d _ c h a r   =   s u b s t r   ( b d s t r ,   k ,   1 ) ; 
 	 	 	 	 / *   c o p y   b l i n d   c h a r   * / 
 	     b l i n d _ c h a r   =   b y t e   ( r a n k   ( b l i n d _ c h a r )   +   1 2 8 ) ; 
 	 	 	 	 / *   k i c k   i t   u p s t a i r s   * / 
 	     b d s t r   =   s u b s t r   ( b d s t r ,   1 ,   k   -   1 )   | |   s u b s t r   ( b d s t r ,   k   +   1 ,   1 ) 
 	               | |   b l i n d _ c h a r   | |   s u b s t r   ( b d s t r ,   k   +   2 ) ; 
 	 e n d ; 
             e n d ; 
 
         s o r t s t r   =   b d s t r ; 	 	 / *   s t r i n g   t o   b e   s o r t e d   * / 
         b e a d . s o r t p t r   ( b e a d . c t )   =   s o r t s t r _ p t r ; 
         s o r t s t r _ p t r   =   a d d r e l   ( s o r t s t r _ p t r ,   b i n   ( ( l e n g t h   ( b d s t r )   +   7 )   /   4 ,   3 5 ,   0 ) ) ; 
 
     e n d   m a k e _ b e a d ; 
 % p a g e ; 
 / *   P e r m u t e s   " w o r d s "   i n   g i v e n   k e y   s t r i n g   a n d   c r e a t e s   b e a d s   f r o m   t h e m   * / 
 p e r m u t e : 
     p r o c   ( s t r ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   s t r 	       c h a r   ( 1 0 2 4 )   v a r ;   / *   k e y   s t r i n g   t o   b e   p e r m u t e d   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   ( i ,   j ,   k ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   l s t r 	       c h a r   ( 1 0 2 4 )   v a r ;   / *   l o c a l   s t r i n g   f o r   e x c l u s i o n s   * / 
         d c l   p k e y 	       c h a r   ( 1 2 8 )   v a r ; 	 / *   p e r m u t a t i o n   w o r d   * / 
         d c l   p s t r 	       c h a r   ( 1 0 2 4 )   v a r ;   / *   l o c a l   s t r i n g   f o r   p e r m u t i n g   * / 
         d c l   t r a n _ s w 	       b i t   ( 1 ) ; 	 / *   c o n t r o l   t r a n s f o r m a t i o n   l o o p   * / 
 	 	 	 	 / *   c o p y   k e y   s t r i n g ,   t r a n s l a t i n g   H T s   * / 
 	 	 	 	 / *   t o   S P s ,   l t r i m m i n g ,   a n d   * / 
 	 	 	 	 / *   f o r c i n g   l o w e r   c a s e   * / 
         p s t r   =   l t r i m   ( t r a n s l a t e   ( b e f o r e   ( s t r ,   E N D ) ,   "   " ,   " 	 " ) ) ; 
         p s t r   =   t r a n s l a t e   ( p s t r ,   l o w e r _ c a s e ,   u p p e r _ c a s e ) ; 
 
         i   =   1 ; 	 	 	 / *   c a s t   o u t   m u l t i p l e   b l a n k s   * / 
         d o   w h i l e   ( i   < =   l e n g t h   ( p s t r ) ) ; 
             j   =   i n d e x   ( s u b s t r   ( p s t r ,   i ) ,   "   " )   -   1 ; 
             i f   j   >   0 
             t h e n 
                 d o ; 
 	 i   =   i   +   j ; 
 	 j   =   v e r i f y   ( s u b s t r   ( p s t r ,   i ) ,   "   " ) ; 
 	 	 	 	 / *   h o w   m a n y ?   * / 
 	 i f   j   >   0 
 	 t h e n   p s t r   =   s u b s t r   ( p s t r ,   1 ,   i )   | |   s u b s t r   ( p s t r ,   i   +   j   -   1 ) ; 
 	 i   =   i   +   1 ; 
                 e n d ; 
             e l s e   i   =   l e n g t h   ( p s t r )   +   1 ; 	 / *   l o o p   c o n t r o l   * / 
         e n d ; 
 
         j ,   k   =   1 ; 	 	 	 / *   r e m o v e   u n d e r s c o r e s   * / 
         d o   w h i l e   ( j   +   k   >   0 ) ; 
             j ,   k   =   0 ; 
 
             j   =   i n d e x   ( p s t r ,   "  _ " ) ; 	 	 / *   < B S > _   * / 
             i f   j   >   0 
             t h e n   p s t r   =   s u b s t r   ( p s t r ,   1 ,   j   -   1 )   | |   s u b s t r   ( p s t r ,   j   +   2 ) ; 
 
             k   =   i n d e x   ( p s t r ,   " _  " ) ; 	 	 / *   _ < B S >   * / 
             i f   k   >   0 
             t h e n   p s t r   =   s u b s t r   ( p s t r ,   1 ,   k   -   1 )   | |   s u b s t r   ( p s t r ,   k   +   2 ) ; 
 
             i f   j   +   k   >   0 
             t h e n   i   =   i   +   m i n   ( j ,   k ) ; 
             e l s e   i   =   l e n g t h   ( p s t r )   +   1 ; 
         e n d ; 
 
         p s t r   =   t r a n s l a t e   ( p s t r ,   "   " ,   " _ " ) ; 	 / *   c o n v e r t   _ ' s   t o   S P s   * / 
 
         i f   t r a n . c t   >   0 	 	 	 / *   a p p l y   t r a n ' s   t o   p s t r   * / 
         t h e n 
             d o   i   =   1   t o   t r a n . c t   b y   2 ; 
                 t r a n _ s w   =   " 1 " b ; 	 	 / *   c o n d i t i o n   l o o p   c o n t r o l   s w i t c h   * / 
                 k   =   1 ; 	 	 	 / *   s t r i n g   s c a n   i n d e x   * / 
                 d o   w h i l e   ( t r a n _ s w ) ; 
 	 t r a n _ s w   =   " 0 " b ; 
 	 j   =   i n d e x   ( s u b s t r   ( p s t r ,   k ) ,   t r a n . i n   ( i ) ) ; 
 	 i f   j   >   0 
 	 t h e n 
 	     d o ; 
 	         p s t r   =   s u b s t r   ( p s t r ,   k ,   j   -   1 )   | |   t r a n . o u t   ( i ) 
 	                   | | 
 	                   s u b s t r   ( p s t r ,   k   +   j   +   l e n g t h   ( t r a n . i n   ( i ) )   -   1 , 
 	                   l e n g t h   ( p s t r )   -   k   -   j   -   l e n g t h   ( t r a n . i n   ( i ) )   +   2 ) ; 
 	         k   =   k   +   j ; 
 	         t r a n _ s w   =   " 1 " b ; 
 	     e n d ; 
                 e n d ; 
             e n d ; 
 
         l s t r   =   p s t r ; 	 	 	 / *   s a v e   f i n a l   r e s u l t   f o r   e x c l u s i o n s   * / 
 	 	 	 	 / *   f i n a l l y ,   w e   g e t   t o   p e r m u t e !   * / 
         i f   p s t r   ^ =   " "   &   i n d e x   ( p s t r ,   "   " )   =   0 
 	 	 	 	 / *   p h s a w !   n o t h i n g   t o   p e r m u t e   * / 
         t h e n   c a l l   m a k e _ b e a d   ( p s t r   | |   E N D   | |   p a g e r e f ) ; 
 
         e l s e 
             d o   w h i l e   ( p s t r   ^ =   " " ) ; 	 	 / *   c o p y   p e r m u t e   w o r d   * / 
                 p k e y   =   l t r i m   ( r t r i m   ( b e f o r e   ( p s t r ,   "   " ) ,   " ) " ) ,   " ( " ) ; 
 
                 i f   e x c l . c t   >   0 	 	 / *   a p p l y   e x c l u s i o n s   * / 
                 t h e n 
 	 d o   i   =   1   t o   e x c l . c t ; 
 	     i f   p k e y   =   e x c l . k e y   ( i ) 
 	     t h e n   g o t o   s k i p _ p k e y ; 
 
 	     i f   s u b s t r   ( p k e y   | |   S E P   | |   l s t r ,   1 ,   l e n g t h   ( e x c l . k e y   ( i ) ) ) 
 	               =   e x c l . k e y   ( i ) 
 	     t h e n   g o t o   s k i p _ p k e y ; 
 	 e n d ; 
 
                 c a l l   m a k e _ b e a d   ( p k e y   | |   S E P   | |   s t r   | |   p a g e r e f ) ; 
 
 / * 
 : ( p e r m u t e ) 
 " 	 	 	 p r e p e n d   e v e r y   l i n e   w i t h   i t s   o w n   1 s t   s t r i n g 
 1 , $ S / ^ . * ; / & % ; & /   " 	 	 f o l l o w e d   b y   a   % 
 1 , $ S / ; % ; /   % % % /   " 	 	 r e p l a c e   a n y   n u l l   p r e p e n d s   w i t h   S P % % % 
 1 , $ S / | /   /   " 	 	 m a k e   | ' s   S P s 
 
 " 	 	 	 	 C R E A T E   k e y , p h r a s e   L I N E S 
 b ( h i t s )   l 
 1 , $ S / ) /   )   /   " 	 	 m o v e   p a r e n s   o u t   o f   t h e   w a y 
 { l e v e l : = 0 } 
 : ( c r e a t e )   " 	 	 g e n e r a t e   a   l e v e l   o f   k e y 
 1 , $ S / ^ ( / /   " 	 	 r e m o v e   i n i t i a l   ( 
 1 , $ S / ^ )     < < * > > / /   1 , $ S / ^   * % % % / ~ ~   % % % /   " 	 r e m o v e   i n i t i a l   ) ,   d r o p   e m p t y   k e y s   c r e a t e d 
 \ v { t r a n s }   " 	 	 a p p l y   t r a n s l a t i o n   f o r   c u r r e n t   t y p e 
 \ B ( t r a n )   " 	 	 	 D O   S P E C I F I E D   T R A N S F O R M A T I O N S 
 1 , $ K ( i n d e x )   " 	 	 c o p y   a l l   l i n e s   o n t o   i n d e x 
 1 , $ S / ^ . *   / /   " 	 	 s t r i p   o f f   f i r s t   w o r d   o f   k e y 
 g d / ^   * % % % /   " 	 	 d e l e t e   a n y   l i n e s   w i t h   e m p t y   k e y s 
 ? 1 , 1 , $ v < < * > > / % % % /   m ( e x c l ) 
 b ( e x c l )   ? 1   t ! I m p r o p e r   . * t r a n   c a u s e s   t h e s e   l i n e s   t o   a p p e a r   d u r i n g   p e r m u t a t i o n ;   t h e y   w e r e   d e l e t e d . !   l   1 , $ p   l   1 , $ d 
 b ( h i t s )   ? 1   > ( c r e a t e )   " 	 	 i f   a n y   l i n e s   l e f t ,   t r y   a g a i n 
 b ( i n d e x ) 
 g d / ^ ~ ~   /   " 	 	 r e m o v e   a n   e x c l u d e d   l i n e s 
 1 , $ S /   . * % % % / ~ /   " 	 	 r e p l a c e   " s u r p l u s "   k e y   p l u s   s e p a r a t o r   w i t h   t i l d e 
 1 , $ S /   )   / ) /   " 	 	 p u t   p a r e n   b a c k   t o g e t h e r 
 1 , $ S /   / /   " 	 	 r e m o v e   t h e   p a d d i n g   c h a r a c t e r   \ 0 0 0 
 1 , $ S / ^ ~ / /   " 	 	 r e m o v e   n u l l   k e y s   w h i c h   m a y   h a v e   c r o p p e d   u p . 
 \ B ( l e t )   " 	 	 	 d o   f i n a l   c h a n g e s 
 " 1 , $ S / & /   /   " 	 	 r e m o v e   l i n k i n g   c h a r a c t e r 
 1 z i f   { d e b u g }   t | A f t e r : |   l   1 , $ P   l 
 "   r e t u r n   f r o m   p e r m u t e 
 >   * / 
 
 s k i p _ p k e y : 
                 p s t r   =   a f t e r   ( p s t r ,   "   " ) ; 
             e n d ; 
 
     e n d   p e r m u t e ; 
 % p a g e ; 
 / *   R e a d s   o n e   l i n e   f r o m   t h e   g i v e n   f i l e   a n d   p u t s   i t   i n   t h e   
       c h a r   ( 1 0 2 4 )   v a r   s t r i n g   ' l i n e '   * / 
 r e a d : 
     p r o c   ( f i l e )   r e t u r n s   ( c h a r   ( * )   v a r ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   1   f i l e 	       a l i g n e d   l i k e   n u l l _ f i l e ; 
 	 	 	 	 / *   f i l e   b e i n g   r e a d   ( I N P U T )   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   i n p u t 	       c h a r   ( m a x _ c h a r s )   b a s e d   ( f i l e . p t r ) ; 
 	 	 	 	 / *   i n p u t   s t r i n g   * / 
         d c l   l l e n 	       f i x e d   b i n   ( 2 4 ) ; 	 / *   l e n g t h   o f   l i n e   * / 
         d c l   l p t r 	       p t r ; 	 	 / *   - >   l i n e   * / 
 	 	 	 	 / *   p o i n t   t o   l i n e   * / 
         l p t r   =   a d d r   ( s u b s t r   ( i n p u t ,   f i l e . p o s n ) ) ; 
 	 	 	 	 / *   s e t   i n p u t   l i n e   l e n g t h   * / 
         i f   f i l e . p o s n   < =   f i l e . c h a r c t 	 / *   i f   n o t   a t   E O F ,   t a k e   u p   t o   N L   * / 
         t h e n   l l e n   = 
 	         i n d e x   ( s u b s t r   ( i n p u t ,   f i l e . p o s n ,   f i l e . c h a r c t   -   f i l e . p o s n   +   1 ) , 
 	         N L )   -   1 ; 	 	 / *   t a k e   a l l   t h e   r e s t   * / 
         e l s e   l l e n   =   f i l e . c h a r c t   -   f i l e . p o s n   +   1 ; 
 
         i f   d e b u g 
         t h e n   c a l l   i o a _   ( " r e a d :   ( ^ a , ^ d )   " " ^ a " " " ,   f i l e . n a m e ,   l i n e c t   +   1 , 
 	         s u b s t r   ( i n p u t ,   f i l e . p o s n ,   l l e n ) ) ; 
 
         f i l e . p o s n   =   f i l e . p o s n   +   l l e n   +   1 ; 	 / *   a d v a n c e   f i l e   p o s i t i o n   * / 
         f i l e . l i n e n o   =   f i l e . l i n e n o   +   1 ; 	 / *   c o u n t   i n p u t   l i n e s   * / 
 
         r e t u r n   ( s u b s t r   ( l p t r   - >   i n p u t ,   1 ,   l l e n ) ) ; 
     e n d   r e a d ; 
 % p a g e ; 
 / *   W r i t e s   t h e   l i n e   t o   t h e   g i v e n   f i l e   * / 
 w r i t e : 
     p r o c   ( f i l e ,   l i n e ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   1   f i l e 	       a l i g n e d   l i k e   n u l l _ f i l e ; 
 	 	 	 	 / *   f i l e   b e i n g   w r i t t e n   * / 
         d c l   l i n e 	       c h a r   ( 1 0 2 4 )   v a r ;   / *   l i n e   t o   w r i t e   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   o u t p u t 	       c h a r   ( m a x _ c h a r s )   b a s e d   ( f i l e . p t r ) ; 
 	 	 	 	 / *   o u t p u t   s t r i n g   * / 
         d c l   l i n l e n 	       f i x e d   b i n ; 	 / *   l e n g t h   o f   w r i t t e n   * / 
 	 	 	 	 / *   s e t   o u t p u t   l i n e   l e n g t h   * / 
         l i n l e n   =   l e n g t h   ( l i n e )   +   1 ; 	 / *   1   f o r   N L   * / 
 
         s u b s t r   ( o u t p u t ,   f i l e . p o s n ,   l i n l e n )   =   l i n e   | |   N L ; 
         f i l e . p o s n   =   f i l e . p o s n   +   l i n l e n ; 	 / *   a d v a n c e   f i l e   p o s i t i o n   * / 
         f i l e . c h a r c t   =   f i l e . c h a r c t   +   l i n l e n ;   / *   c o u n t   o u t p u t   c h a r s   * / 
         f i l e . l i n e n o   =   f i l e . l i n e n o   +   1 ; 	 / *   a n d   l i n e s   * / 
 
         i f   d e b u g 
         t h e n   c a l l   i o a _   ( " w r i t e :   ( ^ a )   " " ^ a " " " ,   f i l e . n a m e ,   l i n e ) ; 
     e n d   w r i t e ; 
 
     e n d   c o m p o s e _ i n d e x ; 
        
 
 
  
 	 	         c o n v e r t _ r u n o f f . p l 1                             0 4 / 2 3 / 8 5     1 1 0 0 . 9 r e w   0 4 / 2 3 / 8 5     0 9 1 1 . 3             2 0 7 3 7 8     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   P r o g r a m   t o   c o n v e r t   r u n o f f   s o u r c e   f i l e s   t o   c o m p o s e   s o u r c e   f i l e s .   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 3 , l l 8 0 , d c l i n d 4 , i d i n d 1 6 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o n v e r t _ r u n o f f : 
 c v _ r f : 
       p r o c ; 
 
 / *   S Y N T A X :     c o n v e r t _ r u n o f f   X 	 	 n o   *   c o n v e n t i o n   * / 
 
 / *   W r i t t e n :   J A F   ? ? ? ? ? ?   * / 
 / *   M o d i f i e d : 
 0 1 / ? ? / 8 2   -   E J W   -   R e w r i t t e n   b e c a u s e   o f   v a r i o u s   p r o b l e m s . 
 1 0 / 0 7 / 8 2   -   E J W   -   F i x e d   b u g   t h a t   t r u n c a t e d   i n p u t   p a t h n a m e . 
 * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
             d c l   a r g 	             c h a r   ( a r g l )   b a s e d   ( a r g p ) ; 
 	 	 	 	 / *   c o m m a n d   l i n e   a r g u m e n t   * / 
             d c l   a r g l 	             f i x e d   b i n ; 
             d c l   a r g p 	             p t r ; 
             d c l   b i t c t 	             f i x e d   b i n   ( 2 4 ) ; 
 	 	 	 	 / *   s e g m e n t   b i t c o u n t   * / 
             d c l   c e c t 	             f i x e d   b i n ; 	 / *   . c e   l i n e   c o u n t   * / 
             d c l   c o d e 	             f i x e d   b i n   ( 3 5 ) ; 
 	 	 	 	 / *   s y s t e m   e r r o r   c o d e   * / 
             d c l   C R E A T E 	             b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
             d c l   c s d 	             c h a r   ( 1 )   i n i t   ( " % " ) ; 
 	 	 	 	 / *   c u r r e n t   s y m b o l   d e l i m i t e r   * / 
             d c l   c t d 	             c h a r   ( 1 ) ; 	 / *   l o c a l   t i t l e   d e l i m i t e r   * / 
             d c l   d b _ l i n e 	             f i x e d   b i n   i n i t   ( - 1 ) ; 
 	 	 	 	 / *   d e b u g   i l i n o   * / 
             d c l   e q c t 	             f i x e d   b i n ; 	 / *   . e q   l i n e   c o u n t   * / 
             d c l   e q s w 	             b i t   ( 1 )   i n i t   ( " 1 " b ) ; 
 	 	 	 	 / *   f i r s t   . e q   s w i t c h   * / 
             d c l   e r r o r _ t a b l e _ $ b a d o p t 
 	 	             f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
             d c l   e r r o r _ t a b l e _ $ e m p t y _ f i l e 
 	 	             f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
             d c l   f t n t g l s w 	             b i t   ( 1 ) ; 	 / *   f o o t n o t e   t o g g l e   s w i t c h   * / 
             d c l   i 	             f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
             d c l   i l i n 	             c h a r   ( i l i n l )   b a s e d   ( i l i n p ) ; 
 	 	 	 	 / *   c u r r e n t   i n p u t   l i n e   * / 
             d c l   i l i n l 	             f i x e d   b i n   ( 2 4 ) ; 
 	 	 	 	 / *   l e n g t h   o f   i n p u t   l i n e   * / 
             d c l   i l i n o 	             f i x e d   b i n ; 	 / *   i n p u t   l i n e   c o u n t e r   * / 
             d c l   i l i n p 	             p t r ; 	 / *   - >   i n p u t   l i n e   * / 
             d c l   i n _ c h a r s 	             f i x e d   b i n   ( 2 4 ) ; 
 	 	 	 	 / *   i n p u t   s e g m e n t   c h a r   c o u n t   * / 
             d c l   i n _ f i l e 	             c h a r   ( 2 0 0 )   v a r ; 
 	 	 	 	 / *   i n p u t   f i l e   e n t r y n a m e   * / 
             d c l   i n d x 	             f i x e d   b i n   ( 2 4 ) ; 
 	 	 	 	 / *   i n p u t   f i l e   p o s i t i o n   i n d e x   * / 
             d c l   i n p u t _ p t r 	             p t r   i n i t   ( n u l l   ( ) ) ; 
 	 	 	 	 / *   p o i n t e r   t o   i n p u t   f i l e   * / 
             d c l   i s e g 	             c h a r   ( i n _ c h a r s )   b a s e d   ( i n p u t _ p t r ) ; 
 	 	 	 	 / *   i n p u t   c h a r s   * / 
             d c l   l i c t 	             f i x e d   b i n ; 	 / *   l i t e r a l   c o u n t   * / 
             d c l   M E 	             c h a r   ( 1 4 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	             i n i t   ( " c o n v e r t _ r u n o f f " ) ; 
             d c l   n a r g s 	             f i x e d   b i n ; 	 / *   n u m b e r   o f   c o m m a n d   l i n e   a r g s   * / 
             d c l   N L 	             c h a r   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 
 " ) ; 
             d c l   o l i n 	             c h a r   ( 1 0 2 4 )   v a r ; 
 	 	 	 	 / *   o u t p u t   l i n e   * / 
             d c l   o l i n o 	             f i x e d   b i n ; 	 / *   o u t p u t   l i n e   c o u n t e r   * / 
             d c l   o l i n o x 	             f i x e d   b i n ; 	 / *   e x t r a   o l i n e s   u s e d   * / 
             d c l   o n d x 	             f i x e d   b i n   ( 2 4 ) ; 
 	 	 	 	 / *   o u t p u t   f i l e   p o s i t i o n   i n d e x   * / 
             d c l   o s e g 	             c h a r   ( o u t _ c h a r s )   b a s e d   ( o u t p u t _ p t r ) ; 
 	 	 	 	 / *   o u t p u t   c h a r s   * / 
             d c l   o u t _ c h a r s 	             f i x e d   b i n   ( 2 4 ) ; 
 	 	 	 	 / *   o u t p u t   s e g m e n t   c h a r   c o u n t   * / 
             d c l   o u t _ f i l e 	             c h a r   ( 2 0 0 )   v a r ; 
 	 	 	 	 / *   o u t p u t   f i l e   e n t r y n a m e   * / 
             d c l   o u t p u t _ p t r             p t r   i n i t   ( n u l l   ( ) ) ; 
 	 	 	 	 / *   p o i n t e r   t o   o u t p u t   f i l e   * / 
 
             d c l   ( b e f o r e ,   c o n v e r t ,   d i v i d e ,   h b o u n d ,   i n d e x ,   r e v e r s e ,   r t r i m ,   s e a r c h , 
 	 s u b s t r ) 	             b u i l t i n ; 
 
             d c l   ( c l e a n u p ,   c o n v e r s i o n ) 
 	 	             c o n d i t i o n ; 
 
             d c l   c o m _ e r r _ 	             e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
             d c l   c u _ $ a r g _ c o u n t       e n t r y   ( f i x e d   b i n ) ; 
             d c l   c u _ $ a r g _ p t r           e n t r y   ( f i x e d   b i n ,   p t r ,   f i x e d   b i n ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   i o a _ 	             e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
 
 / *   P R O C E S S   C O M M A N D   L I N E   * / 
 
             c a l l   i o a _   ( " c o n v e r t _ r u n o f f   1 . 6 " ) ; 
 
             c a l l   c u _ $ a r g _ c o u n t   ( n a r g s ) ; 
             i f   n a r g s   <   1 
             t h e n 
                   d o ; 
 	     c a l l   c o m _ e r r _   ( 0 ,   M E , 
 	               " U s a g e :   c o n v e r t _ r u n o f f   < r u n o f f - f i l e - p a t h n a m e > " ) ; 
 	     r e t u r n ; 
                   e n d ; 
 
             c a l l   c u _ $ a r g _ p t r   ( 1 ,   a r g p ,   a r g l ,   c o d e ) ; 
             i f   c o d e   ^ =   0 
             t h e n 
                   d o ; 
 	     c a l l   c o m _ e r r _   ( c o d e ,   M E ,   " R e a d i n g   p a t h n a m e   o f   i n p u t   s e g m e n t . " ) ; 
 	     r e t u r n ; 
                   e n d ; 
 
             i n _ f i l e   =   b e f o r e   ( a r g ,   " . r u n o f f " )   | |   " . r u n o f f " ; 
             c a l l   g e t _ s e g _ p t r   ( ( i n _ f i l e ) ,   ^ C R E A T E ,   b i t c t ,   i n p u t _ p t r ,   c o d e ) ; 
             i f   c o d e   ^ =   0 
             t h e n 
                   d o ; 
 i n _ f i l e _ e r r : 
 	     c a l l   c o m _ e r r _   ( c o d e ,   M E ,   " ^ a " ,   i n _ f i l e ) ; 
 	     r e t u r n ; 
                   e n d ; 
 
             o n   c o n d i t i o n   ( c l e a n u p ) 
                   b e g i n ; 	 	 	 / *   w e   n o w   h a v e   s o m e t h i n g   t o   c l e a n   u p   * / 
 	     o u t _ c h a r s   =   0 ; 
 	     c a l l   c l e a n ; 
                   e n d ; 
 
             i f   b i t c t   =   0 
             t h e n 
                   d o ; 
 	     c a l l   c l e a n ; 
 	     c o d e   =   e r r o r _ t a b l e _ $ e m p t y _ f i l e ; 
 	     g o t o   i n _ f i l e _ e r r ; 
                   e n d ; 
 
             i n _ c h a r s   =   d i v i d e   ( b i t c t ,   9 ,   2 4 ,   0 ) ; 
 	 	 	 	 / *   i f   a r g   i s   a   p a t h ,   * / 
             i   =   s e a r c h   ( r e v e r s e   ( a r g ) ,   " < > " ) ;   / *   t a k e   o n l y   e n t r y n a m e   * / 
             i f   i   =   0 
             t h e n   i   =   a r g l   +   1 ; 
 
             o u t _ f i l e   =   b e f o r e   ( s u b s t r   ( a r g ,   a r g l   +   2   -   i ) ,   " . r u n o f f " )   | |   " . c o m p i n " ; 
             c a l l   g e t _ s e g _ p t r   ( o u t _ f i l e ,   C R E A T E ,   0 ,   o u t p u t _ p t r ,   c o d e ) ; 
             i f   c o d e   ^ =   0 
             t h e n 
                   d o ; 
 	     c a l l   c o m _ e r r _   ( c o d e ,   M E ,   " ^ a " ,   o u t _ f i l e ) ; 
 	     g o t o   f i n i s h ; 
                   e n d ; 
 
             i f   i n p u t _ p t r   =   o u t p u t _ p t r 
             t h e n 
                   d o ; 
 	     c a l l   c o m _ e r r _   ( 0 ,   M E , 
 	               " A t t e m p t   t o   s p e c i f y   s a m e   s e g m e n t   a s   i n p u t   a n d   o u t p u t . " ) ; 
 	     g o t o   f i n i s h ; 
                   e n d ; 	 	 	 / *   a n y   m o r e   a r g s ?   * / 
             c a l l   c u _ $ a r g _ p t r   ( 2 ,   a r g p ,   a r g l ,   c o d e ) ; 
             i f   c o d e   =   0 
             t h e n 
                   d o ; 
 	     i f   a r g   =   " - d b " 
 	     t h e n 
 	           d o ; 
 	                 c a l l   c u _ $ a r g _ p t r   ( 3 ,   a r g p ,   a r g l ,   c o d e ) ; 
 
 	                 o n   c o n d i t i o n   ( c o n v e r s i o n ) 
 	 	   b e g i n ; 
 	 	         c a l l   c o m _ e r r _   ( 0 ,   M E ,   " N u m e r i c   v a l u e   e x p e c t e d . " ) ; 
 	 	         d b _ l i n e   =   - 1 ; 
 	 	         g o t o   r e v e r t ; 
 	 	   e n d ; 
 
 	                 i f   c o d e   =   0 
 	                 t h e n   d b _ l i n e   =   c o n v e r t   ( d b _ l i n e ,   a r g ) ; 
 	                 e l s e   d b _ l i n e   =   1 ; 
 
 r e v e r t : 
 	                 r e v e r t   c o n v e r s i o n ; 
 	           e n d ; 
 
 	     e l s e 
 	           d o ; 
 	                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ b a d o p t ,   M E ,   " ^ a " ,   a r g ) ; 
 	                 r e t u r n ; 
 	           e n d ; 
                   e n d ; 
 
             i n d x ,   o n d x   =   1 ; 	 	 / *   i n i t i a l i z e   * / 
             i l i n o ,   o l i n o ,   o l i n o x ,   l i c t ,   c e c t ,   e q c t ,   o u t _ c h a r s   =   0 ; 
             f t n t g l s w   =   " 0 " b ; 
 % p a g e ; 
 / *   S C A N   I N P U T   F I L E   * / 
 s c a n _ l o o p : 
             d o   w h i l e   ( i n d x   < =   i n _ c h a r s ) ; 
                   i l i n l   =   i n d e x   ( s u b s t r   ( i s e g ,   i n d x ,   i n _ c h a r s   -   i n d x   +   1 ) ,   N L )   -   1 ; 
                   i f   i l i n l   <   0 	 	 / *   i f   n o   N L ,   t a k e   r e s t   o f   s e g   * / 
 	 	 	 	 / *   M S F s   S H O U L D   B E   H A N D L E D   H E R E   * / 
                   t h e n   i l i n l   =   i n _ c h a r s   -   i n d x   +   1 ; 
 
                   i l i n p   =   a d d r   ( s u b s t r   ( i s e g ,   i n d x ) ) ; 
 	 	 	 	 / *   p o i n t   t o   i n p u t   l i n e   * / 
                   i l i n o   =   i l i n o   +   1 ; 	 	 / *   c o u n t   i n p u t   l i n e s   * / 
                   o l i n o   =   o l i n o   +   o l i n o x   +   1 ; 	 / *   a n d   o u t p u t   l i n e s   * / 
                   o l i n o x   =   0 ; 	 	 / *   r e s e t   e x t r a   l i n e   c o u n t   * / 
 
                   i f   i l i n o   > =   d b _ l i n e   &   d b _ l i n e   >   0 
                   t h e n   c a l l   i o a _   ( " ^ 6 d ^ - i n     =   ^ a " ,   i l i n o ,   i l i n ) ; 
 
                   i f   l i c t   >   0 	 	 / *   i f   a   l i t e r a l   * / 
                   t h e n 
 	     d o ; 
 	           o l i n   =   i l i n ; 	 	 / *   m o v e   l i n e   t o   o u t p u t   * / 
 	           l i c t   =   l i c t   -   1 ; 	 / *   c o u n t   l i t e r a l s   * / 
 	     e n d ; 
 
                   e l s e 
 	     d o ; 
 	           i f   s u b s t r   ( i l i n ,   1 ,   1 )   ^ =   " . " 
 	 	 	 	 / *   o r   n o t   a   c o n t r o l   * / 
 	 	 	 	 / *   o r   e i t h e r   c o m m e n t   * / 
 	 	 |   s u b s t r   ( i l i n ,   1 ,   2 )   =   " . * "   |   s u b s t r   ( i l i n ,   1 ,   2 )   =   " . ~ " 
 	           t h e n   o l i n   =   i l i n ; 	 / *   m o v e   l i n e   t o   o u t p u t   * / 
 
 	           e l s e 
 	                 d o ; 
 	 	   o l i n   =   " " ; 	 / *   c l e a r   o u t p u t   l i n e   * / 
 	 	   c a l l   l o o k u p ; 	 / *   c h e c k   f o r   a   r u n o f f   c o n t r o l   * / 
 
 	 	   i f   ( i n d e x   ( o l i n ,   c s d )   ^ =   0 ) 
 	 	   t h e n   c a l l   b u i l t i n ; 
 
 	 	   i f   ( i n d e x   ( o l i n ,   B S P )   ^ =   0 ) 
 	 	   t h e n   c a l l   r e l a t i o n a l ; 
 	                 e n d ; 
 
 	           c e c t   =   c e c t   -   1 ; 	 / *   c o u n t   . c e   l i n e s   * / 
 	           i f   c e c t   =   0 
 	           t h e n 
 	                 d o ; 
 	 	   o l i n   =   o l i n   | |   N L   | |   " . t b e " ; 
 	 	 	 	 / *   e n d   t i t l e   b l o c k   * / 
 	 	   o l i n   =   o l i n   | |   N L   | |   " . b r b " ; 
 	 	 	 	 / *   m a k e   i t   a n   o r p h a n   * / 
 	 	   o l i n o x   =   o l i n o x   +   2 ; 
 	                 e n d ; 
 
 	           e q c t   =   e q c t   -   1 ; 	 / *   c o u n t   . e q   l i n e s   * / 
 	           i f   e q c t   =   0 
 	           t h e n 
 	                 d o ; 
 	 	   o l i n   =   o l i n   | |   N L   | |   " . b e t " ; 
 	 	 	 	 / *   e n d   t i t l e   b l o c k   * / 
 	 	   o l i n o x   =   o l i n o x   +   1 ; 
 
 	 	   i f   c t d   ^ =   " | " 
 	 	   t h e n 
 	 	         d o ; 
 	 	               o l i n   =   o l i n   | |   N L   | |   " . c t d " ; 
 	 	               o l i n o x   =   o l i n o x   +   1 ; 
 	 	         e n d ; 
 	                 e n d ; 
 	     e n d ; 
 
                   o u t _ c h a r s   =   o u t _ c h a r s   +   l e n g t h   ( o l i n )   +   1 ; 
 	 	 	 	 / *   g r o w   t h e   o u t p u t   * / 
 	 	 	 	 / *   M S F s   H E R E ?   * / 
                   s u b s t r   ( o s e g ,   o n d x )   =   o l i n   | |   N L ; 
 	 	 	 	 / *   a p p e n d   l i n e   t o   o u t p u t   * / 
                   o n d x   =   o u t _ c h a r s   +   1 ; 	 / *   n e x t   o u t p u t   p o s i t i o n   * / 
                   i n d x   =   i n d x   +   i l i n l   +   1 ; 	 / *   a d v a n c e   t o   n e x t   i n p u t   l i n e   * / 
 
                   i f   i l i n o   > =   d b _ l i n e   &   d b _ l i n e   >   0 
                   t h e n   c a l l   i o a _   ( " ^ 8 d ^ - o u t   =   ^ a " ,   o l i n o ,   o l i n ) ; 
             e n d   s c a n _ l o o p ; 
 
 f i n i s h : 
             c a l l   c l e a n ; 
 e x i t : 
             r e t u r n ; 
 % p a g e ; 
 / *   C O N V E R T   R U N O F F   C O N T R O L S   * / 
 
 l o o k u p : 
       p r o c ; 
 
             d c l   c t l _ t o k e n 	             c h a r   ( 4 ) ; 	 / *   t h e   r u n o f f   c o n t r o l   * / 
             d c l   v a r f l d 	             c h a r   ( 5 1 2 )   v a r ; 
 	 	 	 	 / *   v a r i a b l e   f i e l d   f o r   c o n t r o l   * / 
 
 / *   ' t o k e n s '   d e c l a r e d   a t   t h e   e n d   o f   t h e   s e g m e n t   * / 
 
 r e l o o k : 
             c t l _ t o k e n   =   s u b s t r   ( i l i n ,   1 ,   m i n   ( l e n g t h   ( i l i n ) ,   4 ) ) ; 
             i f   l e n g t h   ( i l i n )   >   4 
             t h e n   v a r f l d   =   r t r i m   ( s u b s t r   ( i l i n ,   4 ) ) ; 
 	 	 	 	 / *   t a k e   S P ,   t o o   * / 
             e l s e   v a r f l d   =   " " ; 
 
             d o   i   =   1   t o   h b o u n d   ( t o k e n s ,   1 ) ; 	 / *   g o   t h r u   t o k e n   l i s t   * / 
 
                   i f   s u b s t r   ( t o k e n s   ( i ) ,   1 ,   4 )   =   c t l _ t o k e n 
 	 	 	 	 / *   i s   t h i s   t h e   o n e ?   * / 
                   t h e n 
 	     d o ; 	 	 	 / *   i f   a   1 - t o - 1   t o k e n   r e p l a c e m e n t   * / 
 	           i f   s u b s t r   ( t o k e n s   ( i ) ,   5 ,   1 )   =   "   " 
 	 	 |   s u b s t r   ( t o k e n s   ( i ) ,   5 ,   1 )   =   " * " 
 	           t h e n 
 	                 d o ; 
 	 	   o l i n   =   o l i n   | |   s u b s t r   ( t o k e n s   ( i ) ,   6 ) ; 
 	 	   o l i n   =   o l i n   | |   v a r f l d ; 
 	 	 	 	 / *   v a r f l d   s t a r t s   w i t h   S P   * / 
 	 	   r e t u r n ; 
 	                 e n d ; 
 
 	           e l s e 
 	                 d o ; 
 	 	   g o t o   r t n   ( i n d e x   ( " 1 2 3 4 5 6 7 8 9 . " ,   s u b s t r   ( t o k e n s   ( i ) ,   6 ,   1 ) ) ) ; 
 
 r t n   ( 0 ) : 
 	 	   c a l l   i o a _   ( " L i n e   ^ i :   ^ a   n o t   h a n d l e d . " ,   i l i n o ,   c t l _ t o k e n ) ; 
 	 	   r e t u r n ; 
 
 r t n   ( 1 ) : 	 	 	 	 / *   . a r   * / 
 	 	   o l i n   =   o l i n   | |   " . u r   . b r p   "   | |   c s d   | |   " P a g e N o "   | |   c s d 
 	 	             | |   "   a r " ; 
 	 	   r e t u r n ; 
 
 
 r t n   ( 2 ) : 	 	 	 	 / *     . r o   * / 
 	 	   o l i n   =   o l i n   | |   " . u r   . b r p   "   | |   c s d   | |   " P a g e N o "   | |   c s d 
 	 	             | |   "   r l " ; 
 	 	   r e t u r n ; 
 
 r t n   ( 3 ) : 	 	 	 	 / *   . c e   * / 
 	 	   o l i n   =   o l i n   | |   " . t b b " ; 
 	 	 	 	 / *   s t a r t   a   t i t l e   b l o c k   * / 
 	 	   o l i n   =   o l i n   | |   N L   | |   " . a l c " ; 
 	 	 	 	 / *   c e n t e r e d   * / 
 	 	   o l i n   =   o l i n   | |   N L   | |   " . f i f " ; 
 	 	 	 	 / *   a n d   u n f i l l e d   * / 
 	 	   o l i n o x   =   o l i n o x   +   2 ; 
 
 	 	   i f   v a r f l d   =   " " 	 / *   d e f a u l t   c o u n t   i s   1   * / 
 	 	   t h e n   c e c t   =   2 ; 	 / *   m u s t   b e   s e t   o n e   t o o   h i g h   b e c a u s e   * / 
 	 	 	 	 / *   o f   t h e   w a y   c o u n t i n g   i s   d o n e   i n   t h e   * / 
 	 	 	 	 / *   m a i n   l o o p   * / 
 	 	   e l s e 
 	 	         d o ; 	 	 / *   u s e   g i v e n   c o u n t   * / 
 	 	               o n   c o n v e r s i o n 
 	 	 	 b e g i n ; 
 	 	 	       c a l l   i o a _   ( " ^ a :   N u m e r i c   v a l u e   e x p e c t e d   i n   ^ a " , 
 	 	 	                 M E ,   i l i n ) ; 
 	 	 	       c e c t   =   2 ; 
 	 	 	 	 / *   a g a i n ,   1   t o o   h i g h   * / 
 	 	 	       g o t o   r e v e r t 3 ; 
 	 	 	 e n d ; 
 
 	 	               c e c t   =   c o n v e r t   ( c e c t ,   v a r f l d )   +   1 ; 
 	 	 	 	 / *   1   t o o   h i g h   * / 
 
 r e v e r t 3 : 
 	 	               r e v e r t   c o n v e r s i o n ; 
 	 	         e n d ; 
 
 	 	   r e t u r n ; 
 
 r t n   ( 4 ) : 	 	 	 	 / *   . e q     * / 
 	 	   o l i n   =   " . b b t " ; 
 
 	 	   i f   v a r f l d   =   " " 	 / *   d e f a u l t   c o u n t   i s   1   * / 
 	 	   t h e n   e q c t   =   2 ; 	 / *   m u s t   b e   s e t   o n e   t o o   h i g h   b e c a u s e   * / 
 	 	 	 	 / *   o f   t h e   w a y   c o u n t i n g   i s   d o n e   i n   t h e   * / 
 	 	 	 	 / *   m a i n   l o o p   * / 
 	 	   e l s e 
 	 	         d o ; 	 	 / *   u s e   g i v e n   c o u n t   * / 
 	 	               o n   c o n v e r s i o n 
 	 	 	 b e g i n ; 
 	 	 	       c a l l   i o a _   ( " ^ a :   N u m e r i c   v a l u e   e x p e c t e d   i n   ^ a " , 
 	 	 	                 M E ,   i l i n ) ; 
 	 	 	       e q c t   =   2 ; 
 	 	 	 	 / *   a g a i n ,   1   t o o   h i g h   * / 
 	 	 	       g o t o   r e v e r t 4 ; 
 	 	 	 e n d ; 
 
 	 	               e q c t   =   c o n v e r t   ( e q c t ,   v a r f l d )   +   1 ; 
 	 	 	 	 / *   1   t o o   h i g h   * / 
 
 r e v e r t 4 : 
 	 	               r e v e r t   c o n v e r s i o n ; 
 	 	         e n d ; 	 	 / *   n e e d   a   d e l i m i t e r   c h a n g e ?   * / 
 	 	   c t d   = 	 	 / *   g e t   f i r s t   c h a r   o f   n e x t   l i n e   * / 
 	 	             s u b s t r   ( i s e g ,   i n d x   +   i l i n l   +   1 ,   1 ) ; 
 	 	   i f   c t d   ^ =   " | " 
 	 	   t h e n 
 	 	         d o ; 
 	 	               o l i n   =   o l i n   | |   N L   | |   " . c t d   "   | |   c t d ; 
 	 	               o l i n o x   =   o l i n o x   +   1 ; 
 	 	         e n d ; 
 
 	 	   r e t u r n ; 
 
 r t n   ( 5 ) : 	 	 	 	 / *   . f r     * / 
 	 	   v a r f l d   =   l t r i m   ( v a r f l d ) ; 
 
 	 	   i f   v a r f l d   =   " t " 
 	 	   t h e n   o l i n   =   " . f t p " ; 
 
 	 	   e l s e   i f   v a r f l d   =   " f " 
 	 	   t h e n   o l i n   =   " . f t r " ; 
 
 	 	   e l s e   i f   v a r f l d   =   " u " 
 	 	   t h e n   o l i n   =   " . f t u " ; 
 
 	 	   e l s e   o l i n   =   " . f t p " ; 
 	 	   r e t u r n ; 
 
 
 r t n   ( 6 ) : 	 	 	 	 / *   . f t     * / 
 	 	   i f   f t n t g l s w 
 	 	   t h e n   o l i n   =   " . b e f " ; 
 	 	   e l s e   o l i n   =   " . b b f " ; 
 	 	   f t n t g l s w   =   ^ f t n t g l s w ; 
 	 	   r e t u r n ; 
 
 r t n   ( 7 ) : 	 	 	 	 / *   . l i     * / 
 	 	   i f   v a r f l d   =   " " 	 / *   d e f a u l t   c o u n t   i s   1   * / 
 	 	   t h e n   v a r f l d   =   "   1 " ; 
 
 	 	   o n   c o n v e r s i o n 
 	 	         b e g i n ; 
 	 	               c a l l   i o a _   ( " ^ a :   N u m e r i c   v a l u e   e x p e c t e d   i n   ^ a " ,   M E , 
 	 	 	     i l i n ) ; 
 	 	               v a r f l d   =   "   1 " ; 
 	 	               g o t o   r e v e r t 7 ; 
 	 	         e n d ; 
 
 	 	   l i c t   =   c o n v e r t   ( l i c t ,   v a r f l d ) ; 
 
 r e v e r t 7 : 
 	 	   r e v e r t   c o n v e r s i o n ; 
 
 	 	   o l i n   =   " . b b l "   | |   v a r f l d ; 
 
 	 	   r e t u r n ; 
 
 r t n   ( 8 ) : 	 	 	 	 / *   . m a     * / 
 	 	   i f   v a r f l d   =   " " 	 / *   d e f a u l t   i s   1   * / 
 	 	   t h e n   v a r f l d   =   "   1 " ; 
 
 	 	   o l i n   =   " . v m t "   | |   v a r f l d   | |   N L ; 
 	 	   o l i n o x   =   o l i n o x   +   1 ; 
 	 	   o l i n   =   o l i n   | |   " . v m b "   | |   v a r f l d ; 
 
 	 	   r e t u r n ; 
 
 r t n   ( 9 ) : 	 	 	 	 / *   . u r     * / 
 	 	   d o   w h i l e   ( s u b s t r   ( i l i n ,   1 ,   3 )   =   " . u r " ) ; 
 	 	 	 	 / *   d o   a l l   . u r ' s   * / 
 	 	         o l i n   =   o l i n   | |   " . u r   " ; 
 	 	 	 	 / *   p l a c e   a   . u r   * / 
 	 	         j   =   2   + 	 / *   s t e p   o v e r   . u r   * / 
 	 	                   v e r i f y   ( s u b s t r   ( i l i n ,   m i n   ( i l i n l ,   4 ) ) ,   "   " ) ; 
 	 	         i n d x   =   i n d x   +   j ; 
 	 	         i l i n p   =   a d d r   ( s u b s t r   ( i s e g ,   i n d x ) ) ; 
 	 	 	 	 / *   m o v e   i n p u t   p o i n t e r   * / 
 	 	         i l i n l   =   i l i n l   -   j ; 
 	 	   e n d ; 
 
 	 	   i f   l e n g t h   ( o l i n )   >   4 
 	 	   t h e n   c a l l   i o a _   ( 
 	 	 	   " O u t p u t   l i n e   ^ i :   M u l t i p l e   . u r ' s .   C h e c k   f o r   " 
 	 	 	   | |   " c o r r e c t   s y m b o l   d e l i m i t e r   n e s t i n g . " ,   o l i n o ) ; 
 
 	 	   i f   i n d e x   ( i l i n ,   " . " )   =   1 
 	 	 	 	 / *   i s   i t   a   c o n t r o l ?   * / 
 	 	   t h e n   g o t o   r e l o o k ; 
 	 	   e l s e 
 	 	         d o ; 
 	 	               o l i n   =   o l i n   | |   i l i n ; 
 	 	               r e t u r n ; 
 	 	         e n d ; 
 
 r t n   ( 1 0 ) : 	 	 	 	 / *   h e a d e r s / f o o t e r s   * / 
 	 	 	 	 / *   n e e d   a   d e l i m i t e r   c h a n g e ?   * / 
 	 	   j   =   v e r i f y   ( v a r f l d ,   "   0 1 2 3 4 5 6 7 8 9 " ) ; 
 	 	   c t d   =   s u b s t r   ( v a r f l d ,   j ,   1 ) ; 
 	 	   i f   c t d   ^ =   " | " 
 	 	   t h e n 
 	 	         d o ; 
 	 	               o l i n   =   o l i n   | |   " . c t d   "   | |   c t d   | |   N L ; 
 	 	               o l i n o x   =   o l i n o x   +   1 ; 
 	 	         e n d ; 
 
 	 	   o l i n   =   o l i n   | |   s u b s t r   ( t o k e n s   ( i ) ,   6 ) ; 
 	 	   o l i n   =   o l i n   | |   v a r f l d ; 
 
 	 	   i f   c t d   =   " | " 
 	 	   t h e n   r e t u r n ; 
 
 	 	   o l i n   =   o l i n   | |   N L   | |   " . c t d " ; 
 	 	   o l i n o x   =   o l i n o x   +   1 ; 
 	 	   r e t u r n ; 
 
 	                 e n d ; 
 	     e n d ; 
             e n d ; 
 
 / *   t a b l e   s e a r c h   f a i l e d .   l i n e   i s n t   a   c o n t r o l   * / 
             o l i n   =   i l i n ; 
       e n d   l o o k u p ; 
  
 / *   C O N V E R T   R U N O F F   B U I L T I N S   * / 
 b u i l t i n : 
       p r o c ; 
 
 / *   S c a n   t h e   l i n e   f o r   c d s ,   e x t r a c t i n g   t h e   c o n t a i n e d   v a r i a b l e   n a m e s . 
       I f   t h e r e   i s   n o   v a l i d   v a r i a b l e   n a m e ,   o u t p u t   a   c s d | | P a g e N o | | c s d . 
       I f   t h e r e   i s   a   v a l i d   v a r i a b l e   n a m e ,   t h e n   s e a r c h   t h e   b u i l t i n   l i s t ; 
       i f   f o u n d ,   t h e n   p r o c e s s   a c c o r d i n g   t o   t h e   l i s t . 
       i f   n o t ,   t h e n   o u t p u t   i t ,   a s - i s .   * / 
 
             d c l   b n a m e 	             c h a r   ( 3 2 )   v a r ; / *   e x t r a c t e d   v a r i a b l e   n a m e   * / 
             d c l   c s d c t 	             f i x e d   b i n ; 	 / *   c o u n t   o f   o p e n i n g   c s d ' s   * / 
             d c l   ( i ,   j ,   k ) 	             f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
 
             i   =   1 ; 	 	 	 / *   i n i t   l i n e   s c a n   i n d e x   * / 
 
             d o   w h i l e   ( i   < =   l e n g t h   ( o l i n ) ) ; 
                   j   =   i n d e x   ( s u b s t r   ( o l i n ,   i ) ,   c s d ) ; 
 	 	 	 	 / *   l o o k   f o r   a   c s d   * / 
                   i f   j   =   0 	 	 	 / *   i f   n o n e ,   * / 
                   t h e n   r e t u r n ; 	 	 / *   w e ' r e   d o n e   * / 
                   e l s e   i   =   i   +   j   -   1 ; 	 	 / *   m o v e   t o   c s d   * / 
 
                   c s d c t   =   v e r i f y   ( s u b s t r   ( o l i n ,   i ) ,   c s d )   -   1 ; 
 	 	 	 	 / *   s t e p   o v e r   c s d ' s   * / 
 
                   i f   c s d c t   <   0 	 	 / *   a   t r a i l i n g   c s d ?   * / 
                   t h e n 
 	     d o ; 
 	           o l i n   =   o l i n   | |   " P a g e N o "   | |   c s d ; 
 	           r e t u r n ; 
 	     e n d ; 
 
                   i   =   i   +   c s d c t ; 	 	 / *   m o v e   t o   f i r s t   n a m e   c h a r   * / 
                   j   =   i n d e x   ( s u b s t r   ( o l i n ,   i ) ,   c s d ) ; 
 	 	 	 	 / *   l o o k   f o r   n e x t   c s d   * / 
 
                   i f   j   =   0 	 	 	 / *   n o   m o r e   i n   o l i n ?   * / 
                   t h e n   g o t o   N p _ r e f ; 
                   e l s e   j   =   j   -   1 ; 
 
                   b n a m e   =   s u b s t r   ( o l i n ,   i ,   j ) ; 	 / *   e x t r a c t   o l d   n a m e ,   j   h o l d s   l e n g t h   * / 
                   k   =   v e r i f y   ( b n a m e , 	 	 / *   a n d   v a l i d a t e   i t   * / 
 	         " a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ 0 1 2 3 4 5 6 7 8 9 " ) 
 	         ; 
 
                   i f   k   ^ =   0 	 	 	 / *   u s e   % P a g e N o %   f o r   i n v a l i d   n a m e s   * / 
                   t h e n 
 	     d o ; 
 N p _ r e f : 
 	           o l i n   =   s u b s t r   ( o l i n ,   1 ,   i   -   1 )   | |   " P a g e N o "   | |   c s d 
 	 	 | |   s u b s t r   ( o l i n ,   i ) ; 
 	           i   =   i   +   7 ; 
 	     e n d ; 
 
                   e l s e 
 	     d o ; 
 	           d o   k   =   1   t o   h b o u n d   ( b u i l t i n _ n a m e ,   1 ) ; 
 	                 i f   ( b n a m e   =   s u b s t r   ( b u i l t i n _ n a m e   ( k ) ,   1 ,   2 0 ) ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         i f   l e n g t h   ( b u i l t i n _ n a m e   ( k ) )   <   2 1 
 	 	         t h e n 
 	 	               d o ; 	 / *   n o t   s u p p o r t e d ?   * / 
 	 	 	 c a l l   i o a _   ( 
 	 	 	           " L i n e   ^ i :   B u i l t i n   % ^ a %   i s   n o t   s u p p o r t e d . " , 
 	 	 	           i l i n o ,   b n a m e ) ; 
 	 	 	 g o t o   f o u n d ; 
 	 	               e n d ; 
 
 	 	         e l s e   i f   s u b s t r   ( b u i l t i n _ n a m e   ( k ) ,   2 1 ,   1 )   =   " . " 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 o l i n   =   " . u r   "   | |   o l i n ; 
 	 	 	 	 / *   p r e p e n d   a n o t h e r   . u r   * / 
 	 	 	 i   =   i   +   4 ; / *   b i f   r e f   h a s   m o v e d   * / 
 	 	 	 c a l l   i o a _   ( 
 	 	 	           " O u t p u t   l i n e   ^ i :   M u l t i p l e   . u r ' s .   C h e c k   f o r   " 
 	 	 	           | |   " c o r r e c t   s y m b o l   d e l i m i t e r   n e s t i n g . " , 
 	 	 	           o l i n o ) ; 
 
 	 	 	 g o t o   b i f   ( 
 	 	 	           i n d e x   ( " 1 2 3 4 " , 
 	 	 	           s u b s t r   ( b u i l t i n _ n a m e   ( k ) ,   2 2 ,   1 ) ) ) ; 
 
 b i f   ( 0 ) : 	 	 	 	 / *   e r r o r   * / 
 	 	 	 c a l l   i o a _   ( " L i n e   ^ d :   P r o g r a m   e r r o r   p r o c e s s i n g   " 
 	 	 	           | |   " b u i l t i n   ^ a " ,   i l i n o ,   b n a m e ) ; 
 	 	 	 g o t o   f o u n d ; 
 
 b i f   ( 1 ) : 	 	 	 	 / *   % ( % A l i g n M o d e %   =   " " b o t h " " ) %   * / 
 	 	 	 b n a m e   =   c s d   | |   " ( "   | |   c s d   | |   " A l i g n M o d e "   | |   c s d 
 	 	 	           | |   " =   " " b o t h " " ) "   | |   c s d ; 
 	 	 	 g o t o   f o u n d ; 
 
 b i f   ( 2 ) : 	 	 	 	 / *   % ( % F o o t R e s e t %   =   " " p a g e d " " ) %   * / 
 	 	 	 b n a m e   =   c s d   | |   " ( "   | |   c s d   | |   " F o o t R e s e t "   | |   c s d 
 	 	 	           | |   " =   " " p a g e d " " ) "   | |   c s d ; 
 	 	 	 g o t o   f o u n d ; 
 
 b i f   ( 3 ) : 	 	 	 	 / *   % ( % F o o t R e s e t %   =   " " u " " ) %   * / 
 	 	 	 b n a m e   =   c s d   | |   " ( "   | |   c s d   | |   " F o o t R e s e t "   | |   c s d 
 	 	 	           | |   " =   " " u " " ) "   | |   c s d ; 
 	 	 	 g o t o   f o u n d ; 
 
 b i f   ( 4 ) : 	 	 	 	 / *   % ( % D e v i c e %   =   " " p r i n t e r " " ) %   * / 
 	 	 	 b n a m e   =   c s d   | |   " ( "   | |   c s d   | |   " D e v i c e "   | |   c s d 
 	 	 	           | |   " =   " " P r i n t e r " " ) "   | |   c s d ; 
 	 	 	 g o t o   f o u n d ; 
 	 	               e n d ; 
 
 	 	         e l s e 
 	 	               d o ; 
 	 	 	 b n a m e   =   s u b s t r   ( b u i l t i n _ n a m e   ( k ) ,   2 1 ) ; 
 	 	 	 	 / *   g e t   n e w   n a m e   * / 
 	 	 	 g o t o   f o u n d ; 
 	 	               e n d ; 
 	 	   e n d ; 
 	           e n d ; 
 f o u n d : 
 	           o l i n   =   s u b s t r   ( o l i n ,   1 ,   i   -   1 )   | |   b n a m e   | |   s u b s t r   ( o l i n ,   i   +   j ) ; 
 	           i   =   i   +   l e n g t h   ( b n a m e ) ; 	 / *   m o v e   t o   c s d   * / 
 	           i   =   i   +   c s d c t ; 	 	 / *   s t e p   o v e r   c l o s i n g   c s d ' s   * / 
 	     e n d ; 
             e n d ; 
       e n d   b u i l t i n ; 
  
 r e l a t i o n a l : 
       p r o c ; 
 
             d c l   ( i ,   k ) 	             f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
             d c l   r e l o p 	             c h a r   ( 3 ) ; 	 / *   l o c a l   c o p y   o f   r e l   o p e r a t o r   * / 
             d c l   r e l s 	             ( 8 )   c h a r   ( 6 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	             i n i t   ( " /  =   ^ = " ,   " =  /   ^ = " , 
 	 	 	 	 / *   t h e s e   a l l   d o u b l e d   s o   * / 
 	 	             " <  _   < = " ,   " _  <   < = " , 
 	 	 	 	 / *   c a n o n i c a l   f o r m   i s n t   n e e d e d   * / 
 	 	             " =  _   = = " ,   " _  =   = = " ,   " >  _   > = " ,   " _  >   > = " ) ; 
 
             i   =   1 ; 
             d o   w h i l e   ( i   < =   l e n g t h   ( o l i n ) ) ; 
                   k   =   i n d e x   ( s u b s t r   ( o l i n ,   i ) ,   B S P ) ; 
 	 	 	 	 / *   l o o k   f o r   a   B S P   * / 
                   i f   k   =   0   |   k   =   l e n g t h   ( o l i n ) 	 / *   i f   n o n e   o r   t r a i l i n g   B S P ,   * / 
                   t h e n   r e t u r n ; 	 	 / *   w e ' r e   d o n e   * / 
                   e l s e   i   =   i   +   k   -   2 ; 	 	 / *   m o v e   t o   p r e c e d i n g   c h a r   * / 
 
                   r e l o p   =   s u b s t r   ( o l i n ,   i ,   3 ) ; 	 / *   e x t r a c t   t h e   r e l   o p e r a t o r   * / 
 
                   d o   k   =   1   t o   8 ; 
 	     i f   ( r e l o p   =   s u b s t r   ( r e l s   ( k ) ,   1 ,   3 ) ) 
 	     t h e n 
 	           d o ; 
 	                 o l i n   =   s u b s t r   ( o l i n ,   1 ,   i   -   1 )   | |   s u b s t r   ( r e l s   ( k ) ,   5 ) 
 	 	       | |   s u b s t r   ( o l i n ,   i   +   3 ) ; 
 	           e n d ; 
                   e n d ; 
                   i   =   i   +   3 ; 	 	 	 / *   s t e p   o v e r   r e l o p   * / 
             e n d ; 
 
       e n d   r e l a t i o n a l ; 
 % p a g e ; 
 g e t _ s e g _ p t r : 
       p r o c   ( p n a m e ,   c r e a t e ,   b i t c t ,   p t r ,   c o d e ) ; 
 
             d c l   p n a m e 	             c h a r   ( 2 0 0 )   v a r ; 
 	 	 	 	 / *   g i v e n   p a t h n a m e   * / 
             d c l   c r e a t e 	             b i t   ( 1 ) ; 	 / *   c r e a t e   s w i t c h   * / 
             d c l   b i t c t 	             f i x e d   b i n   ( 2 4 ) ; 
 	 	 	 	 / *   b i t c o u n t   * / 
             d c l   p t r 	             p t r ; 	 / *   s e g   p o i n t e r   * / 
             d c l   c o d e 	             f i x e d   b i n   ( 3 5 ) ; 
 	 	 	 	 / *   e r r o r   c o d e   * / 
 
             d c l   d n a m e 	             c h a r   ( 1 6 8 ) ; 	 / *   f i l e   d i r n a m e   * / 
             d c l   e n a m e 	             c h a r   ( 3 2 ) ; 	 / *   f i l e   e n t r y n a m e   * / 
 
             d c l   e x p a n d _ p a t h n a m e _ 
 	 	             e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   h c s _ $ i n i t i a t e _ c o u n t 
 	 	             e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 2 4 ) , 
 	 	             f i x e d   b i n   ( 2 ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   h c s _ $ m a k e _ s e g       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 5 ) , 
 	 	             p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
 
             c a l l   e x p a n d _ p a t h n a m e _   ( ( p n a m e ) ,   d n a m e ,   e n a m e ,   c o d e ) ; 
             i f   c o d e   ^ =   0 
             t h e n   r e t u r n ; 
 
             c a l l   h c s _ $ i n i t i a t e _ c o u n t   ( d n a m e ,   e n a m e ,   " " ,   b i t c t ,   0 ,   p t r ,   c o d e ) ; 
             i f   p t r   ^ =   n u l l   ( ) 
             t h e n 
                   d o ; 
 	     c o d e   =   0 ; 
 	     r e t u r n ; 
                   e n d ; 
 
             i f   c r e a t e 
             t h e n   c a l l   h c s _ $ m a k e _ s e g   ( d n a m e ,   e n a m e ,   " " ,   0 1 0 1 0 b ,   p t r ,   c o d e ) ; 
 
       e n d   g e t _ s e g _ p t r ; 
 % p a g e ; 
 r e l e a s e _ s e g _ p t r _ : 
       p r o c   ( p t ,   b i t c t ,   c o d e ) ; 
 
             d c l   p t 	             p t r , 
 	 b i t c t 	             f i x e d   b i n   ( 2 4 ) , 
 	 c o d e 	             f i x e d   b i n   ( 3 5 ) ; 
 
             d c l   h c s _ $ s e t _ b c _ s e g   e n t r y   ( p t r ,   f i x e d   b i n   ( 2 4 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   h c s _ $ t e r m i n a t e _ n o n a m e 
 	 	             e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
 
             c o d e   =   0 ; 
             i f   ( p t   =   n u l l   ( ) ) 
             t h e n   r e t u r n ; 
             i f   ( b i t c t   >   - 1 ) 
             t h e n   c a l l   h c s _ $ s e t _ b c _ s e g   ( p t ,   b i t c t ,   c o d e ) ; 
             i f   ( c o d e   =   0 ) 
             t h e n   c a l l   h c s _ $ t e r m i n a t e _ n o n a m e   ( p t ,   c o d e ) ; 
 
       e n d ; 
  
 
 c l e a n : 
       p r o c ; 
             i f   ( o u t p u t _ p t r   ^ =   n u l l   ( ) ) 
             t h e n   c a l l   r e l e a s e _ s e g _ p t r _   ( o u t p u t _ p t r ,   o u t _ c h a r s   *   9 ,   c o d e ) ; 
             i f   ( i n p u t _ p t r   ^ =   n u l l   ( ) ) 
             t h e n   c a l l   r e l e a s e _ s e g _ p t r _   ( i n p u t _ p t r ,   - 1 ,   c o d e ) ; 
       e n d ; 
 % p a g e ; 
             d c l   B S P 	             c h a r   ( 1 )   i n t   s t a t i c   i n i t   ( "  " ) ; 
             d c l   i o x _ $ a t t a c h _ n a m e 
 	 	             e n t r y   ( c h a r   ( * ) ,   p t r ,   c h a r   ( * ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   i o x _ $ c l o s e             e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   i o x _ $ d e t a c h _ i o c b 
 	 	             e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   i o x _ $ g e t _ l i n e       e n t r y   ( p t r ,   p t r ,   f i x e d   b i n ,   f i x e d   b i n ,   f i x e d   b i n   ( 3 5 ) ) 
 	 	             ; 
             d c l   i o x _ $ o p e n 	             e n t r y   ( p t r ,   f i x e d   b i n ,   b i t   ( 1 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   j 	             f i x e d   b i n ; 
             d c l   r e c l 	             f i x e d   b i n ; 
 
             d c l   ( a d d r ,   l e n g t h ,   m o d ) 
 	 	             b u i l t i n ; 
 % p a g e ; 
 / * * * * *   C O N S T A N T   A R R A Y S   * / 
             d c l   b u i l t i n _ n a m e         ( 5 8 )   c h a r   ( 5 0 )   v a r   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	             i n i t   ( " A d                                     . 1 " ,   " C e " ,   " C h a r s T a b l e " , 
 	 	             " C h a r s w " ,   " C o n s o l e                           U s e r I n p u t " , 
 	 	             " C o n v T a b l e " ,   " D a t e                                 D a t e " , 
 	 	             " D e v i c e                             D e v i c e " ,   " D e v i c e T a b l e " ,   " E q " , 
 	 	             " E q c n t                               E q c n t " , 
 	 	             " E x t r a M a r g i n                   E x t r a M a r g i n " , 
 	 	             " F i                                     F i l l M o d e " , 
 	 	             " F i l e s w                             O u t p u t F i l e O p t " , 
 	 	             " F o o t                                 F o o t c n t " ,   " F o o t R e f " ,   " F p " , 
 	 	             " F r                                     . 2 " ,   " F r o m " , 
 	 	             " F t                                     F o o t n o t e M o d e " , 
 	 	             " H y p h e n a t i n g                   H y p h e n a t i n g " , 
 	 	             " I n                                     I n d e n t " , 
 	 	             " I n p u t F i l e N a m e               I n p u t F i l e N a m e " , 
 	 	             " I n p u t L i n e s                     I n p u t L i n e n o " , 
 	 	             " L i n e s L e f t                       L i n e s L e f t " , 
 	 	             " L l                                     P a g e W i d t h " ,   " L p " , 
 	 	             " M a 1                                   V M a r g T o p " , 
 	 	             " M a 2                                   V M a r g H e a d e r " , 
 	 	             " M a 3                                   V M a r g F o o t e r " , 
 	 	             " M a 4                                   V M a r g B o t t o m " , 
 	 	             " M s                                     L i n e S p a c e " , 
 	 	             " M u l t i p l e P a g e c o u n t       P a g e S p a c e " , 
 	 	             " N e s t i n g D e p t h                 I n s e r t I n d e x " , 
 	 	             " N l                                     P a g e L i n e " , 
 	 	             " N N p                                   N e x t P a g e N o " , 
 	 	             " N o F t N o                             . 3 " , 
 	 	             " N o P a g i n g                         G a l l e y " , 
 	 	             " N p                                     P a g e N o " ,   " P a d L e f t " , 
 	 	             " P a g e N o                             P a g e N o " , 
 	 	 	 	 / *   c o m p o s e   b i f   n e e d e d   f o r   * / 
 	 	 	 	 / *   c o r r e c t   h a n d l i n g   o f   . a r   a n d   . r o   * / 
 	 	             " P a r a m e t e r                       P a r a m e t e r " , 
 	 	             " P a s s e s                             P a s s " , 
 	 	             " P i                                     P i c t u r e C o u n t " , 
 	 	             " P l                                     P a g e L e n g t h " , 
 	 	             " P r i n t e r s w                       . 4 " , 
 	 	             " P r i n t L i n e N u m b e r s         L i n e N u m b e r O p t " ,   " R o m a n " ,   " S e l s w " , 
 	 	             " S p e c C h                             S y m b o l D e l i m i t e r " ,   " S t a r t " , 
 	 	             " S t o p s w                             S t o p O p t " ,   " T e x t R e f " ,   " T i m e " , 
 	 	             " T o " ,   " T r T a b l e                           T r T a b l e " , 
 	 	             " U n                                     U n d e n t " , 
 	 	             " W a i t s w                             W a i t O p t " ) ; 
 	 	 	 	 / *   e n t r i e s   i n   t h i s   a r r a y   a r e   c o d e d   * / 
 	 	 	 	 / *   c h a r s   1 , 4   -   r u n o f f   c o n t r o l   * / 
 	 	 	 	 / *   c h a r     5       -   a c t i o n   f l a g   * / 
 	 	 	 	 / *   c h a r s   6 , $   -   r e p l a c e m e n t   o r   * / 
 	 	 	 	 / * 	           f u n c t i o n   i n d e x   * / 
 / * * * *   f o r m a t :   o f f   * / 
 d c l   t o k e n s 	 ( 5 5 )   c h a r   ( 1 2 )   v a r   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 
 	 	 " . a d     . a l b " ,   " . a r   - 1 " ,             " . b p     . b r p " ,   " . b r     . b r f " , 
 	 	 " . c c     . c s d " ,   " . c e   - 3 " ,             " . c h     . t r e " ,   " . d s     . l s   2 " , 
 	 	 " . e f   - . f l e " ,   " . e h   - . h l e " ,       " . e q   - 4 " ,         " . e p     . b r p   e " , 
 " . e x     . e x c " , 
 	 	 " . f h   - . h l f " ,   " . f i     . f i n " ,       " . f o   - . f l a " ,   " . f r   - 5 " , 
 	 	 " . f t   - 6 " ,         " . g b     . g o " ,         " . g f     . g o " ,     " . h e   - . h l a " , 
 	 	 " . i f     . i f i " ,   " . i n     . i n l " ,       " . l a     . l a " ,     " . l i   - 7 " , 
 	 	 " . l l     . p d w " ,   " . m 1     . v m t " ,       " . m 2     . v m h " ,   " . m 3     . v m f " , 
 	 	 " . m 4     . v m b " ,   " . m a   - 8 " ,             " . m p     . p s " ,     " . m s     . l s " , 
 	 	 " . n a     . a l l " ,   " . n e     . b r n " ,       " . n f     . f i f " ,   " . o f   - . f l o " , 
 	 	 " . o h   - . h l o " ,   " . o p     . b r p   o " ,   " . p a     . b r p " ,   " . p i     . b b p " , 
 	 	 " . p l     . p d l " ,   " . r d     . r d " ,         " . r o   - 2 " ,         " . r t     . r t " , 
 	 	 " . s k     . b r s " ,   " . s p     . s p b " ,       " . s r     . s r v " ,   " . s s     . l s   1 " , 
 	 	 " . t r     . t r n " ,   " . t s     . t s " ,         " . t y     . t y " ,     " . u n     . u n l " , 
 	 	 " . u r   - 9 " ,         " . w t     . w t " ) ; 
 / * * *   f o r m a t :   o n   * / 
       e n d   c o n v e r t _ r u n o f f ; 
      
 
 
  
 	 	         d i s p l a y _ c o m p _ d s m . p l 1                         0 2 / 1 6 / 8 8     1 4 5 5 . 7 r   w   0 2 / 1 6 / 8 8     1 4 1 1 . 9             2 8 4 7 4 2     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 2   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 / *   W r i t t e n :   ? ? / 8 0   -   J i m   F a l k s e n 
 / *   M o d i f i e d :   6 / 8 3   -   E d   W a l l m a n   -   A d d e d   - a l l ,   c l e a n e d   u p   a n d   m o d e r n i z e d . 
 / *   M o d i f i e d :   9 / 8 3   -   E d   W a l l m a n   -   A d d e d   l c d s m   c o m m a n d   e n t r y .   C h a n g e d 
 / * 	 	 d i s p l a y _ c o m p _ d s m   s h o r t   n a m e   t o   d c d s m . 
 * / 
 
 d i s p l a y _ c o m p _ d s m : 
 d c d s m : 
     p r o c ; 
 
 / *   U s a g e : 	 d c d s m   d s m _ p a t h   { - l i n e l e n g t h   N } 	 	 	               * / 
 / *   	 T h i s   d i s p l a y s   a l l   t h e   e x t e r n a l   D S M   n a m e s   i n   t h e   s p e c i f i e d   s e g m e n t .   * / 
 / *   U s a g e : 	 d c d s m   d s m _ p a t h   - d e v i c e   { - l i n e l e n g t h   N } 	 	 	               * / 
 / * 	 T h i s   d i s p l a y s   a l l   t h e   n a m e s   a n d   s y n o n y m s   o n   t h e   s p e c i f i e d   d e v i c e ,     * / 
 / * 	 a l s o   l i s t s   a l l   t h e   f a m i l y / m e m b e r   n a m e s   a n d   b a c h e l o r s   i n   t h e   D S M .       * / 
 / *   U s a g e : 	 d c d s m   d s m _ p a t h   - l o n g   { - l i n e l e n g t h   N } 	 	 	               * / 
 / * 	 T h i s   i s   l i k e   t h e   p r e v i o u s   o n e   w i t h   t h e   a d d i t i o n   o f   a   l i s t   o f   m a n y     * / 
 / * 	 p a r a m e t e r s   a b o u t   t h e   d e v i c e ,   m a x   p a g e l e n g t h ,   e t c . 	 	               * / 
 / *   U s a g e : 	 d c d s m   d s m _ p a t h   f a m i l y { / m e m b e r }   - { l i n e l e n g t h   N } 	 	               * / 
 / * 	 T h i s   s h o w s   a l l   t h e   d e f i n e d   g r a p h i c s   i n   t h e   s p e c i f i e d   f a m i l y / m e m b e r   * / 
 / * 	 o r   b a c h e l o r   w i t h   t h e i r   w i d t h s . 	 	 	               * / 
 / *   U s a g e : 	 d c d s m   d s m _ p a t h   f a m i l y { / m e m b e r }   - l o n g   { - l i n e l e n g t h   N } 	               * / 
 / * 	 T h i s   s h o w s   a l l   t h e   d e f i n e d   g r a p h i c s   w i t h   t h e i r   w i d t h s   a n d   o u t p u t       * / 
 / * 	 s t r i n g s . 	 	 	 	 	 	               * / 
 
 
 / *   U s a g e : 	 l c d s m   { s t a r n a m e } 	 	 	 	 	               * / 
 / *   	 T h i s   d i s p l a y s   a l l   t h e   m a t c h i n g   D S M   n a m e s   f o u n d   w i t h   c o m p o s e   s e a r c h   * / 
 / * 	 l i s t .   D e f a u l t   s t a r n a m e   i s   * * . 	 	 	 	               * / 
 / *   U s a g e : 	 l c d s m   { s t a r n a m e }   - p a t h n a m e   P A T H 	 	 	               * / 
 / *   	 T h i s   d i s p l a y s   a l l   t h e   m a t c h i n g   D S M   n a m e s   f o u n d   i n   t h e   d i r e c t o r y         * / 
 / * 	 P A T H .   D e f a u l t   s t a r n a m e   i s   * * . 	 	 	 	               * / 
 / *   U s a g e : 	 l c d s m   { s t a r n a m e }   - w o r k i n g _ d i r 	 	 	 	               * / 
 / *   	 T h i s   d i s p l a y s   a l l   t h e   m a t c h i n g   D S M   n a m e s   f o u n d   i n   t h e   w o r k i n g             * / 
 / * 	 d i r e c t o r y .   D e f a u l t   s t a r n a m e   i s   * * . 	 	 	               * / 
 % p a g e ; 
         d c l   c o d e 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   e r r o r   c o d e   * / 
         d c l   c o l w i d t h 	       f i x e d   b i n ; 
         d c l   d n a m e 	       c h a r   ( 1 6 8 ) ; 	 / *   m o d u l e   d i r   n a m e   * / 
         d c l   d s m p a t h 	       c h a r   ( 2 0 0 ) ; 	 / *   m o d u l e   p a t h   n a m e   * / 
         d c l   d s m p t r 	       p t r ; 	 	 / *   m o d u l e   o b j e c t   p o i n t e r   * / 
         d c l   D S N A M E 	       c h a r   ( 1 6 )   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " d i s p l a y _ c o m p _ d s m " ) ; 
         d c l   e n a m e 	       c h a r   ( 3 2 ) ; 	 / *   m o d u l e   e n t r y   n a m e   * / 
         d c l   f a m i l y n a m e 	       c h a r   ( 3 2 ) ; 	 / *   f o n t   f a m i l y   n a m e   * / 
         d c l   i 	 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   i n d e n t 	       f i x e d   b i n ; 	 / *   d i s p l a y   i n d e n t a t i o n   * / 
         d c l   i p a t h 	       f i x e d   b i n ; 	 / *   s e a r c h   p a t h   c o u t n e r   * / 
         d c l   i s t a r 	       f i x e d   b i n ; 	 / *   s t a r   n a m e   c o u n t e r   * / 
         d c l   l i n e a 	       c h a r   ( 2 0 0 )   v a r ; 	 / *   a n   o u t p u t   l i n e   * / 
         d c l   l i n e b 	       c h a r   ( 2 0 0 )   v a r ; 	 / *   a n o t h e r   * / 
         d c l   l i n e l e n g t h 	       f i x e d   b i n ; 
         d c l   L S N A M E 	       c h a r   ( 1 6 )   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " l i s t _ c o m p _ d s m " ) ; 
         d c l   m e 	       c h a r   ( 1 6 )   v a r ; 
         d c l   m e m b e r n a m e 	       c h a r   ( 3 2 ) ; 
         d c l   s l _ i n f o _ a r e a       a r e a   ( 2 0 4 8 ) ; 
         d c l   s t a r _ a r e a 	       a r e a   ( 2 0 4 8 ) ; 
         d c l   s t a r _ c o d e 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   s t a r n a m e   t y p e   c o d e   * / 
         d c l   s t a r n a m e 	       c h a r   ( 2 0 0 ) ; 
         d c l   1   s w s , 	 	 	 / *   c o n t r o l   s w i t c h e s   * / 
 	 2   d e b u g 	       b i t   ( 1 )   u n a l , 	 / *   1 =   - d e b u g   * / 
 	 2   d e v i c e 	       b i t   ( 1 )   u n a l , 	 / *   1 =   - d e v i c e   * / 
 	 2   e r r o r 	       b i t   ( 1 )   u n a l , 	 / *   1 =   c o m m a n d   l i n e   e r r o r   * / 
 	 2   l o n g 	       b i t   ( 1 )   u n a l , 	 / *   1 =   - l o n g   * / 
 	 2   p a t h 	       b i t   ( 1 )   u n a l , 	 / *   1 =   - p a t h n a m e   * / 
 	 2   m b z 	       b i t   ( 3 1 )   u n a l ; 
 
         d c l   ( a d d r ,   a f t e r ,   b e f o r e ,   b i n a r y ,   l e n g t h ,   n u l l ,   p t r ,   r a n k ,   s i z e ,   s u b s t r , 
                 s u m ,   u n s p e c )       b u i l t i n ; 
 
         d c l   c l e a n u p 	       c o n d i t i o n ; 
 
         d c l   e r r o r _ t a b l e _ $ n a m e _ n o t _ f o u n d 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ n o _ d i r 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ n o _ e x t _ s y m 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ n o m a t c h 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ u n i m p l e m e n t e d _ v e r s i o n 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
         d c l   c o m _ e r r _ 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   e x p a n d _ p a t h n a m e _ 
 	 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   e x p a n d _ p a t h n a m e _ $ a d d _ s u f f i x 
 	 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   h c s _ $ s t a r _ 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 2 ) ,   p t r , 
 	 	       f i x e d   b i n ,   p t r ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o a _ $ r s n n l 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   p a t h n a m e _ 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) )   r e t u r n s   ( c h a r   ( 1 6 8 ) ) ; 
         d c l   s e a r c h _ p a t h s _ $ g e t 
 	 	       e n t r y   ( c h a r   ( * ) ,   b i t   ( 3 6 ) ,   c h a r   ( * ) ,   p t r ,   p t r , 
 	 	       f i x e d   b i n ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
 
         m e   =   D S N A M E ; 
 
         g o t o   j o i n ; 
 
 l i s t _ c o m p _ d s m : 
 l c d s m : 
     e n t r y ; 
 
         m e   =   L S N A M E ; 
 
 j o i n : 	 	 	 	 / *   s e t   c o n s t a n t s   s t r u c t u r e   p o i n t e r   * / 
         c o m p s t a t $ c o m p c o n s t . p t r   =   a d d r   ( c o m p s t a t $ c o m p c o n s t . p t r ) ; 
 
         c a l l   p r o c _ a r g s ; 	 	 	 / *   p r o c e s s   a r g s   * / 
 
         i f   e r r o r 	 	 	 / *   c a n t   c o n t i n u e   * / 
         t h e n   r e t u r n ; 
 
         i f   ( f a m i l y n a m e   ^ =   " " )   |   l o n g 	 / *   t h e s e   o p t i o n s   n e e d   t h e   s w i t c h   * / 
         t h e n   d e v i c e   =   " 1 " b ; 
         l i n e b   =   " " ; 
 
         o n   c l e a n u p   c a l l   c l e a n ; 
 
         i f   m e   =   L S N A M E 
         t h e n 
             d o ; 
                 i f   p a t h 	 	 	 / *   w a s   a   p a t h n a m e   g i v e n ?   * / 
                 t h e n 
 	 d o ; 	 	 	 / *   e x p a n d   p o s s i b l e   r e l a t i v e   n a m e   * / 
 	     c a l l   e x p a n d _ p a t h n a m e _   ( d s m p a t h ,   d n a m e ,   e n a m e ,   c o d e ) ; 
 	     i f   ( c o d e   ^ =   0 ) 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ / ^ 5 x E x p a n d i n g   g i v e n   p a t h n a m e ,   ^ a " , 
 	 	   d s m p a t h ) ; 
 	             r e t u r n ; 
 	         e n d ; 
 	     d n a m e   =   p a t h n a m e _   ( d n a m e ,   e n a m e ) ; 
 
 	     c a l l 	 	 	 / *   g e t   l i s t   o f   d s m ' s   i n   t h i s   d i r   * / 
 	               h c s _ $ s t a r _   ( d n a m e ,   s t a r n a m e ,   s t a r _ A L L _ E N T R I E S , 
 	               a d d r   ( s t a r _ a r e a ) ,   s t a r _ e n t r y _ c o u n t ,   s t a r _ e n t r y _ p t r , 
 	               s t a r _ n a m e s _ p t r ,   c o d e ) ; 
 	     i f   ( c o d e   ^ =   0 ) 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ / ^ 5 x G e t t i n g   c o m p _ d s m   n a m e s   i n   ^ a " , 
 	 	   d n a m e ) ; 
 	             r e t u r n ; 
 	         e n d ; 
 
 	     i f   d e b u g 
 	     t h e n   c a l l   i o a _   ( " s t a r   u s e d   =   ^ i " , 
 	 	     s i z e   ( s t a r _ e n t r i e s )   +   s i z e   ( s t a r _ n a m e s ) ) ; 
 
 	     d o   i s t a r   =   1   t o   s t a r _ e n t r y _ c o u n t ; 
 	         e n a m e   =   s t a r _ n a m e s   ( s t a r _ e n t r i e s   ( i s t a r ) . n i n d e x ) ; 
 	         c a l l   s h o w _ d s m ; 
 	     e n d ; 
 	 e n d ; 
 
                 e l s e 	 	 	 / *   u s e r   w a n t s   t h e m   a l l   * / 
 	 d o ; 
 	     c a l l   s e a r c h _ p a t h s _ $ g e t   ( " c o m p o s e " ,   s l _ c o n t r o l _ d e f a u l t ,   " " ,   n u l l , 
 	               a d d r   ( s l _ i n f o _ a r e a ) ,   s l _ i n f o _ v e r s i o n _ 1 ,   s l _ i n f o _ p ,   c o d e ) ; 
 	     i f   ( c o d e   ^ =   0 ) 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ / ^ G e t t i n g   c o m p o s e   s e a r c h   l i s t . " ) ; 
 	             r e t u r n ; 
 	         e n d ; 
 
 	     d o   i p a t h   =   1   t o   s l _ i n f o . n u m _ p a t h s ; 
 	         d n a m e   =   s l _ i n f o . p a t h s   ( i p a t h ) . p a t h n a m e ; 
 	 	 	 	 / *   d o n t   r e p e a t   a n y   d i r s   * / 
 	         d o   i   =   1   t o   i p a t h   w h i l e   ( d n a m e   ^ =   s l _ i n f o . p a t h s   ( i ) . p a t h n a m e ) ; 
 	         e n d ; 
 
 	         i f   i   =   i p a t h 
 	         t h e n 
 	             d o ; 
 	                 c a l l 	 	 / *   g e t   l i s t   o f   d s m ' s   i n   t h i s   d i r   * / 
 	 	       h c s _ $ s t a r _   ( d n a m e ,   s t a r n a m e ,   s t a r _ A L L _ E N T R I E S , 
 	 	       a d d r   ( s t a r _ a r e a ) ,   s t a r _ e n t r y _ c o u n t ,   s t a r _ e n t r y _ p t r , 
 	 	       s t a r _ n a m e s _ p t r ,   c o d e ) ; 
 	                 i f   c o d e   ^ =   0   &   c o d e   ^ =   e r r o r _ t a b l e _ $ n o m a t c h 
 	 	       &   c o d e   ^ =   e r r o r _ t a b l e _ $ n o _ d i r 
 	                 t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e , 
 	 	                 " ^ / ^ 5 x G e t t i n g   c o m p _ d s m   n a m e s   i n   ^ a " ,   d n a m e ) ; 
 
 	                 e l s e   i f   c o d e   ^ =   e r r o r _ t a b l e _ $ n o m a t c h 
 	                 t h e n 
 	 	 d o ; 
 	 	     c a l l   i o a _   ( " ^ / ^ - A t   ^ a . . . " ,   d n a m e ) ; 
 
 	 	     i f   d e b u g 
 	 	     t h e n   c a l l   i o a _   ( " s t a r   u s e d   =   ^ i " , 
 	 	 	     s i z e   ( s t a r _ e n t r i e s )   +   s i z e   ( s t a r _ n a m e s ) ) ; 
 
 	 	     d o   i s t a r   =   1   t o   s t a r _ e n t r y _ c o u n t ; 
 	 	         e n a m e   =   s t a r _ n a m e s   ( s t a r _ e n t r i e s   ( i s t a r ) . n i n d e x ) ; 
 	 	         c a l l   s h o w _ d s m ; 
 	 	     e n d ; 
 	 	 e n d ; 
 	             e n d ; 
 	     e n d ; 
 	 e n d ; 
             e n d ; 
 
         e l s e 	 	 	 	 / *   o n l y   a   m o d u l e   n a m e   * / 
             d o ; 
                 c a l l   e x p a n d _ p a t h n a m e _ $ a d d _ s u f f i x   ( d s m p a t h ,   " c o m p _ d s m " ,   d n a m e ,   e n a m e , 
 	       c o d e ) ; 
                 i f   ( c o d e   ^ =   0 ) 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ / ^ 5 x E x p a n d i n g   g i v e n   m o d u l e   n a m e ,   ^ a " , 
 	               d s m p a t h ) ; 
 	     r e t u r n ; 
 	 e n d ; 
 
                 c a l l   s h o w _ d s m ; 
             e n d ; 
 
         r e t u r n ; 
 % p a g e ; 
 s h o w _ d s m : 
     p r o c ; 
 
         d c l   A C C p t r 	       p t r ; 	 	 / *   A C C   s t r i n g s   * / 
         d c l   1   A C C 	       a l i g n e d   b a s e d   ( A C C p t r ) , 
 	 2   l e n 	       f i x e d   b i n   ( 8 )   u n a l , 
 	 2   s t r i n g 	       c h a r   ( A C C . l e n )   u n a l ; 
         d c l   b i t c o u n t 	       f i x e d   b i n   ( 2 4 ) ; 	 / *   m o d u l e   o b j e c t   b i t   c o u n t   * / 
         d c l   d e f p t r 	       p t r ; 	 	 / *   d s m i n f o   d e f i n i t i o n   p o i n t e r   * / 
         d c l   1   d s m i n f o 	       l i k e   o b j e c t _ i n f o ; 
         d c l   d v t c o u n t 	       f i x e d   b i n ; 	 / *   n u m b e r   o f   d e v i c e   t a b l e s   t o   d o   * / 
         d c l   d v t n a m e 	       c h a r   ( 3 2 )   v a r ; 	 / *   d e v i c e   t a b l e   n a m e   * / 
         d c l   1   o b j s e g 	       ( 0 : 1 0 0 ) , 	 / *   i n t e r e s t i n g   o b j e c t   s e g m e n t   p t r s   * / 
 	 2   s y m b o l p t r     p t r , 
 	 2   n a m e 	       c h a r   ( 3 2 ) , 
 	 2   d v i d p t r 	       p t r , 
 	 2   d v t p t r 	       p t r ; 
 
         d c l   a d d r e l 	       b u i l t i n ; 
 
         d c l   e r r o r _ t a b l e _ $ i m p r o p e r _ d a t a _ f o r m a t 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
         d c l   i n i t i a t e _ f i l e _   e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   b i t   ( * ) ,   p t r ,   f i x e d   b i n   ( 2 4 ) , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o a _ $ n n l 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   o b j e c t _ i n f o _ $ b r i e f 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 2 4 ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
 
         d s m p t r   =   n u l l   ( ) ; 	 	 / *   i n t i a l i z e   a u t o   s t o r a g e   * / 
         d s m p a t h   =   p a t h n a m e _   ( d n a m e ,   e n a m e ) ; 
         c a l l   i n i t i a t e _ f i l e _   ( d n a m e ,   e n a m e ,   R _ A C C E S S ,   d s m p t r ,   b i t c o u n t ,   c o d e ) ; 
         i f   ( d s m p t r   =   n u l l   ( ) ) 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ / ^ 5 x I n i t i a t i n g   ^ a " ,   d s m p a t h ) ; 
                 r e t u r n ; 
             e n d ; 	 	 	 / *   * / 
 	 	 	 	 / *   g e t   o b j e c t   i n f o   f o r   t h e   m o d u l e   * / 
         d s m i n f o . v e r s i o n _ n u m b e r   =   o b j e c t _ i n f o _ v e r s i o n _ 2 ; 
         c a l l   o b j e c t _ i n f o _ $ b r i e f   ( d s m p t r ,   b i t c o u n t ,   a d d r   ( d s m i n f o ) ,   c o d e ) ; 
         i f   ( c o d e   ^ =   0 ) 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ / ^ 5 x G e t t i n g   o b j e c t   i n f o   f o r   ^ a " ,   d s m p a t h ) ; 
                 c a l l   c l e a n ; 
                 r e t u r n ; 
             e n d ; 
 
         i f   ^ d s m i n f o . f o r m a t . s t a n d a r d 	 / *   m u s t   b e   a   s t a n d a r d   o b j e c t   s e g m e n t   * / 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i m p r o p e r _ d a t a _ f o r m a t ,   m e , 
 	       " ^ / ^ 5 x ^ a   i s   n o t   a   s t a n d a r d   o b j e c t   s e g m e n t . " ,   d s m p a t h ) ; 
                 c a l l   c l e a n ; 
                 r e t u r n ; 
             e n d ; 
 
         d v t c o u n t   =   0 ; 
         d e f p t r   = 	 	 	 / *   p o i n t   t o   f i r s t   d e f   * / 
                   a d d r e l   ( d s m i n f o . d e f p ,   d s m i n f o . d e f p   - >   d e f i n i t i o n _ h e a d e r . d e f _ l i s t _ r e l p ) 
                   ; 
 
         i f   d e v i c e 	 	 	 / *   i s   d e v i c e   s w i t c h   o n ?   * / 
         t h e n 	 	 	 	 / *   l o o k   f o r   g i v e n   d e v i c e   * / 
             d o ; 	 	 	 	 / *   f o r m   d e v i c e   t a b l e   n a m e   * / 
                 d v t n a m e   =   b e f o r e   ( e n a m e ,   " . c o m p _ d s m " )   | |   " . d v t " ; 
                 d o   d e f p t r   =   d e f p t r 	 	 / *   w a l k   t h e   d e f i n i t i o n   t h r e a d   * / 
 	       r e p e a t   a d d r e l   ( d s m i n f o . d e f p ,   d e f p t r   - >   d e f i n i t i o n . f o r w a r d _ r e l p ) 
 	       w h i l e   ( d e f p t r   - >   d e f i n i t i o n . f o r w a r d _ r e l p   ^ =   0 ) ; 
 	 	 	 	 / *   p o i n t   t o   s y m b o l ' s   A C C   * / 
 	 A C C p t r   =   a d d r e l   ( d s m i n f o . d e f p ,   d e f p t r   - >   d e f i n i t i o n . n a m e _ r e l p ) ; 
 	 i f   ( d e f p t r   - >   d e f i n i t i o n . c l a s s   =   C L A S S _ T E X T )   &   ( A C C . s t r i n g   =   d v t n a m e ) 
 	 t h e n 
 	     d o ; 
 	         d v t c o u n t   =   d v t c o u n t   +   1 ; 	 / *   r e c o r d   i n t e r e s t i n g   s t u f f   * / 
 	         o b j s e g . s y m b o l p t r   ( d v t c o u n t )   =   A C C p t r ; 
 	         o b j s e g . d v i d p t r   ( d v t c o u n t ) ,   c o n s t . d v i d p t r   = 
 	                   a d d r e l   ( d s m i n f o . t e x t p ,   d e f p t r   - >   d e f i n i t i o n . t h i n g _ r e l p ) ; 
 	         o b j s e g . d v t p t r   ( d v t c o u n t )   =   p t r   ( d s m i n f o . t e x t p ,   c o m p _ d v i d . d v t _ r ) ; 
 	         o b j s e g . n a m e   ( d v t c o u n t )   =   b e f o r e   ( A C C . s t r i n g ,   " . " ) ; 
 	         g o t o   f o u n d _ d e v i c e ; 
 	     e n d ; 
                 e n d ; 
 
                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ n o _ e x t _ s y m ,   m e , 
 	       " ^ / ^ 5 x ^ a   s y m b o l   d e f i n i t i o n   i n   ^ a . " ,   d v t n a m e ,   d s m p a t h ) ; 
                 c a l l   c l e a n ; 
                 r e t u r n ; 
             e n d ; 
 
         e l s e 	 	 	 	 / *   d e v i c e   s w i t c h   i s   o f f   * / 
             d o ; 	 	 	 	 / *   r e c o r d   m o d u l e ' s   s e g n a m e   d e f   p t r   * / 
                 o b j s e g . d v i d p t r   ( 0 )   =   p t r   ( d s m i n f o . d e f p ,   0 ) ; 
                 d o   d e f p t r   =   d e f p t r 	 	 / *   w a l k   d e f i n i t i o n   t h r e a d   * / 
 	       r e p e a t   a d d r e l   ( d s m i n f o . d e f p ,   d e f p t r   - >   d e f i n i t i o n . f o r w a r d _ r e l p ) 
 	       w h i l e   ( d e f p t r   - >   d e f i n i t i o n . f o r w a r d _ r e l p   ^ =   0 ) ; 
 	 	 	 	 / *   p o i n t   t o   s y m b o l ' s   A C C   * / 
 	 A C C p t r   =   a d d r e l   ( d s m i n f o . d e f p ,   d e f p t r   - >   d e f i n i t i o n . n a m e _ r e l p ) ; 
 	 	 	 	 / *   t a k e   o n l y   d e v i c e   t a b l e s   * / 
 	 i f   ( d e f p t r   - >   d e f i n i t i o n . c l a s s   =   C L A S S _ T E X T ) 
 	           &   ( a f t e r   ( A C C . s t r i n g ,   " . " )   =   " d v t " ) 
 	 t h e n 
 	     d o ; 
 	         d v t c o u n t   =   d v t c o u n t   +   1 ; 	 / *   r e c o r d   i n t e r e s t i n g   s t u f f   * / 
 	         o b j s e g . s y m b o l p t r   ( d v t c o u n t )   =   A C C p t r ; 
 	         o b j s e g . d v i d p t r   ( d v t c o u n t ) ,   c o n s t . d v i d p t r   = 
 	                   a d d r e l   ( d s m i n f o . t e x t p ,   d e f p t r   - >   d e f i n i t i o n . t h i n g _ r e l p ) ; 
 	         o b j s e g . d v t p t r   ( d v t c o u n t )   =   p t r   ( d s m i n f o . t e x t p ,   c o m p _ d v i d . d v t _ r ) ; 
 	         o b j s e g . n a m e   ( d v t c o u n t )   =   b e f o r e   ( A C C . s t r i n g ,   " . " ) ; 
 	     e n d ; 
                 e n d ; 
             e n d ; 
 
 f o u n d _ d e v i c e : 
         o b j s e g . d v i d p t r   ( d v t c o u n t   +   1 )   =   n u l l   ( ) ; 
         o b j s e g . d v t p t r   ( d v t c o u n t   +   1 )   =   n u l l   ( ) ; 
 	 	 	 	 / *   d i s p l a y   t h e   r e q u e s t e d   i n f o   * / 
         d o   i   =   d v t c o u n t   t o   0   b y   - 1 ; 	 / *   d o   i t   b a c k w a r d s   b e c a u s e   d e f s   * / 
 	 	 	 	 / *   a r e   r e v e r s e   t h r e a d e d   * / 
             i f   i   >   0 
             t h e n   c o n s t . d v i d p t r   =   o b j s e g . d v i d p t r   ( i ) ; 
 	 	 	 	 / *   c h e c k   s t r u c t u r e   v e r s i o n   * / 
             i f   c o m p _ d v i d . v e r s i o n   <   0   |   c o m p _ d v i d . v e r s i o n   >   c o m p _ d v i d _ v e r s i o n 
             t h e n 
                 d o ; 
 	 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ u n i m p l e m e n t e d _ v e r s i o n ,   m e , 
 	           " ^ / ^ 5 x ^ a   i s   n o t   a   v a l i d   d e v i c e   t a b l e . " ,   d s m p a t h ) ; 
 	 c a l l   c l e a n ; 
 	 r e t u r n ; 
                 e n d ; 
 
             e l s e 
                 d o ; 	 	 	 / *   i f   t h i s   d e v i c e   i s   j u s t   a n   a d d n a m e   * / 
 	 i f   o b j s e g . d v i d p t r   ( i   +   1 )   =   o b j s e g . d v i d p t r   ( i ) 
 	 t h e n   c a l l   i o a _ $ n n l   ( " ,   ^ a " ,   o b j s e g . n a m e   ( i ) ) ; 
 
 	 e l s e 	 	 	 / *   t h i s   i s   a   r e a l   d e v i c e   t a b l e   * / 
 	     d o ; 	 	 	 / *   i s   i t   " l i k e "   a   p r e v i o u s   d e v i c e ?   * / 
 	         d o   j   =   d v t c o u n t   t o   i   +   2   b y   - 1 ; 
 	             i f   ( o b j s e g . d v t p t r   ( i   +   1 )   =   o b j s e g . d v t p t r   ( j ) 
 	 	   &   o b j s e g . d v i d p t r   ( i   +   1 )   ^ =   o b j s e g . d v i d p t r   ( j ) ) 
 	             t h e n 	 	 / *   y e s   * / 
 	                 d o ; 
 	 	 c a l l   i o a _   ( "   l i k e   ^ a ; " ,   o b j s e g . n a m e   ( j ) ) ; 
 	 	 g o t o   f o u n d ; 
 	                 e n d ; 
 	         e n d ; 
 
 	         i f   i   <   d v t c o u n t 	 	 / *   d o n ' t   d o   t h i s   f o r   f i r s t   d e v i c e   * / 
 	         t h e n   c a l l   s h o w _ d v t ; 
 f o u n d : 
 	         i f   i   >   0 	 	 / *   d o n ' t   d o   t h i s   f o r   l a s t   d e v i c e   * / 
 	         t h e n 
 	             d o ; 
 	                 c a l l   i o a _ $ n n l   ( " D e v i c e : ^ - ^ a " ,   o b j s e g . n a m e   ( i ) ) ; 
 	                 c o n s t . d v i d p t r   =   o b j s e g . d v i d p t r   ( i ) ; 
 	                 c o n s t . d e v p t r   =   p o i n t e r   ( c o n s t . d v i d p t r ,   c o m p _ d v i d . d v t _ r ) ; 
 	             e n d ; 
 	     e n d ; 
                 e n d ; 
         e n d ; 
 
         c a l l   c l e a n ; 
         r e t u r n ; 
 % p a g e ; 
 s h o w _ d v t : 
     p r o c ; 
 
         d c l   c h a r v p 	       p t r ; 
         d c l   c h a r v 	       c h a r   ( 5 0 0 0 )   v a r   b a s e d   ( c h a r v p ) ; 
 
         c a l l   i o a _   ( " ; ^ /     d e v c l a s s :   ^ a ; " ,   c o m p _ d v t . d e v c l a s s ) ; 
 
         i f   ^ d e v i c e 	 	 	 / *   t h a t s   a l l   i f   d e v i c e   s w i t c h   i s   o f f   * / 
         t h e n   r e t u r n ; 
 
         c a l l   c o m p _ d v t . o u t p r o c   ( 1 ,   c o d e ) ; 
 
         i f   f a m i l y n a m e   ^ =   " " 	 	 / *   w a s   a   f o n t   g i v e n ?   * / 
         t h e n   c a l l   s h o w _ a _ f o n t ; 
 
         e l s e 	 	 	 	 / *   j u s t   s h o w   d e v i c e   i n f o   * / 
             d o ; 
                 i f   l o n g 	 	 	 / *   l o n g   f o r m ?   * / 
                 t h e n 
 	 d o ; 
 	     c a l l 	 	 	 / *   v e r s i o n   i d s   * / 
 	               i o a _   ( " / *   v e r s i o n :   ^ i   ( ^ i )   * / " ,   c o m p _ d v i d . v e r s i o n , 
 	               c o m p _ d v i d _ v e r s i o n ) ; 
 
 	     c a l l   i o a _   ( "     u n i t s :   p t ; " ) ;   / *   c a n n e d   t i l   i t s   i m p l e m e n t e d   * / 
 
 	     i f   c o m p _ d v t . a t d _ r   ^ =   " 0 " b 	 / *   a t t a c h   d e s c r i p t i o n   * / 
 	     t h e n 
 	         d o ; 
 	             c a l l   d i s p l a y _ n e w _ s t r   ( ( c o m p _ d v t . a t d _ r ) ) ; 
 	             c a l l   i o a _   ( "     a t t a c h :   ^ a ; " ,   l i n e a ) ; 
 	         e n d ; 	 	 	 / *   * / 
 	 	 	 	 / *   c o m m e n t   * / 
 	     i f   c o m p _ d v t . c o m m e n t _ r   ^ =   " 0 " b 
 	     t h e n 
 	         d o ; 
 	             c h a r v p   =   p o i n t e r   ( c o n s t . d v i d p t r ,   c o m p _ d v t . c o m m e n t _ r ) ; 
 	             c a l l   i o a _   ( "     c o m m e n t :   " " ^ a " " ; " ,   c h a r v ) ; 
 	         e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c l e a n u p   s t r i n g   * / 
 	     i f   c o m p _ d v t . c l e a n u p _ r   ^ =   " 0 " b 
 	     t h e n 
 	         d o ; 
 	             c a l l   d i s p l a y _ n e w _ s t r   ( ( c o m p _ d v t . c l e a n u p _ r ) ) ; 
 	             c a l l   i o a _   ( "     c l e a n u p :   ^ a ; " ,   l i n e a ) ; 
 	         e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   d e f a u l t   p a g e   m a r g i n s   * / 
 	     c a l l   i o a _   ( "     d e f a u l t m a r g s :   ^ f ,   ^ f ,   ^ f ,   ^ f ; " , 
 	               d e c   ( c o m p _ d v t . d e f _ v m t ,   1 1 ,   3 )   /   1 0 0 0 , 
 	               d e c   ( c o m p _ d v t . d e f _ v m h ,   1 1 ,   3 )   /   1 0 0 0 , 
 	               d e c   ( c o m p _ d v t . d e f _ v m f ,   1 1 ,   3 )   /   1 0 0 0 , 
 	               d e c   ( c o m p _ d v t . d e f _ v m b ,   1 1 ,   3 )   /   1 0 0 0 ) ; 
 	 	 	 	 / *   m i n i m u m   t o p   m a r g i n   * / 
 	     c a l l   i o a _   ( "     m i n t o p m a r g :   ^ f ; " , 
 	               d e c   ( c o m p _ d v t . v m t _ m i n ,   1 1 ,   3 )   /   1 0 0 0 ) ; 
 	 	 	 	 / *   m i n i m u m   b o t t o m   m a r g i n   * / 
 	     c a l l   i o a _   ( "     m i n b o t t o m m a r g :   ^ f ; " , 
 	               d e c   ( c o m p _ d v t . v m b _ m i n ,   1 1 ,   3 )   /   1 0 0 0 ) ; 
 	 	 	 	 / *   m i n i m u m   h o r i z o n t a l   w h i t e s p a c e   * / 
 	     c a l l   i o a _   ( "     m i n s p a c e :   ^ f ; " ,   d e c   ( c o m p _ d v t . m i n _ W S ,   1 1 ,   3 )   /   1 0 0 0 ) ; 
 	 	 	 	 / * * / 
 	 	 	 	 / *   m i n i m u m   v e r t i c a l   r e s o l u t i o n   * / 
 	     c a l l   i o a _   ( "     m i n l e a d :   ^ f ; " ,   d e c   ( c o m p _ d v t . m i n _ l e a d ,   1 1 ,   3 )   /   1 0 0 0 ) 
 	               ; 
 
 	     c a l l   i o a _   ( "     i n i t :   ^ a ^ a   ^ f ; " ,   c o m p _ d v t . i n i t _ f a m i l y , 
 	               c o m p _ d v t . i n i t _ m e m b e r ,   d e c   ( c o m p _ d v t . i n i t _ p s ,   1 1 ,   3 )   /   1 0 0 0 ) ; 
 	     c a l l   i o a _   ( "     i n t e r l e a v e :   ^ [ o n ^ ; o f f ^ ] ; " ,   c o m p _ d v t . i n t e r l e a v e ) ; 
 	     c a l l   i o a _   ( "     l e t t e r s p a c e :   ^ i ; " ,   c o m p _ d v t . l e t t e r s p ) ; 
 	     c a l l   i o a _   ( "     m a x p a g e s :   ^ [ u n l i m i t e d ^ ; ^ i ^ ] ; " , 
 	               ( c o m p _ d v t . m a x _ p a g e s   =   - 1 ) ,   c o m p _ d v t . m a x _ p a g e s ) ; 
 	     c a l l   i o a _   ( "     m a x f i l e s :   ^ [ u n l i m i t e d ^ ; ^ i ^ ] ; " , 
 	               ( c o m p _ d v t . m a x _ f i l e s   =   - 1 ) ,   c o m p _ d v t . m a x _ f i l e s ) ; 
 	     c a l l   i o a _   ( "     m a x p a g e l e n g t h :   ^ [ u n l i m i t e d ^ ; ^ f ^ ] ; " , 
 	               ( c o m p _ d v t . p d l _ m a x   =   - 1 ) ,   d e c   ( c o m p _ d v t . p d l _ m a x ,   1 1 ,   3 )   /   1 0 0 0 ) 
 	               ; 
 	     c a l l   i o a _   ( "     m a x p a g e w i d t h :   ^ f ; " , 
 	               d e c   ( c o m p _ d v t . p d w _ m a x ,   1 1 ,   3 )   /   1 0 0 0 ) ; 
 	     c a l l   i o a _   ( "     m i n b o t m a r g :   ^ f ; " , 
 	               d e c   ( c o m p _ d v t . v m b _ m i n ,   1 1 ,   3 )   /   1 0 0 0 ) ; 
 	     c a l l   i o a _   ( "     m i n t o p m a r g :   ^ f ; " , 
 	               d e c   ( c o m p _ d v t . v m t _ m i n ,   1 1 ,   3 )   /   1 0 0 0 ) ; 
 	     c a l l   i o a _   ( "     s t r e a m :   ^ [ o n ^ ; o f f ^ ] ; " ,   ( c o m p _ d v t . o p e n _ m o d e   =   2 ) ) ; 
 	     c a l l   i o a _   ( "     t a p e r e c :   ^ [ u n l i m i t e d ^ ; ^ f ^ ] ; " , 
 	               ( c o m p _ d v t . p d l _ m a x   =   - 1 ) ,   c o m p _ d v t . p d l _ m a x ) ; 
 	 e n d ; 
                 c a l l   s h o w _ f a m i l i e s ; 
             e n d ; 
 % p a g e ; 
 s h o w _ a _ f o n t : 	 	 	 / *   d i s p a l y   c h a r a c t e r s   d e f i n e d   f o r   a   f o n t   * / 
     p r o c ; 
 
         d c l   ( f ,   m ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
 
         d c l   l e n g t h 	       b u i l t i n ; 
 
         d o   f   =   1   t o   c o m p _ d v t . f a m i l y _ c t ; 	 / *   s e a r c h   f o r   t h e   f o n t   * / 
             i f   c o m p _ d v t . f a m i l y . n a m e   ( f )   =   f a m i l y n a m e 
             t h e n 
                 d o ; 
 	 m e m b e r _ p t r   =   p t r   ( c o n s t . d v i d p t r ,   c o m p _ d v t . m e m b e r _ r   ( f ) ) ; 
 
 	 i f   ( m e m b e r . c o u n t   >   1   |   m e m b e r . n a m e   ( 1 )   ^ =   " " )   &   m e m b e r n a m e   =   " " 
 	 t h e n   m e m b e r n a m e   =   " / m " ; 
 
 	 d o   m   =   1   t o   m e m b e r . c o u n t ; 
 	     i f   ( m e m b e r . n a m e   ( m )   =   m e m b e r n a m e ) 
 	     t h e n   g o t o   f o u n d ; 
 	 e n d ; 
 
 	 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ n a m e _ n o t _ f o u n d ,   m e , 
 	           " ^ a   n o t   f o u n d   i n   f a m i l y   ^ a   o n   d e v i c e   ^ a . " ,   m e m b e r n a m e , 
 	           f a m i l y n a m e ,   b e f o r e   ( d v t n a m e ,   " . d v t " ) ) ; 
 	 r e t u r n ; 
                 e n d ; 
         e n d ; 
 
         c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ n a m e _ n o t _ f o u n d ,   m e , 
                   " F o n t   ^ a   n o t   f o u n d   o n   d e v i c e   ^ a . " ,   f a m i l y n a m e , 
                   b e f o r e   ( d v t n a m e ,   " . d v t " ) ) ; 
         r e t u r n ; 
 
 f o u n d : 
         i f   m e m b e r n a m e   =   " " 
         t h e n   c a l l   i o a _   ( "     b a c h e l o r :   ^ a ; " ,   f a m i l y n a m e ) ; 
         e l s e   c a l l   i o a _   ( "     f a m i l y :   ^ a ;   m e m b e r :   ^ a ; " ,   f a m i l y n a m e ,   m e m b e r n a m e ) ; 
 
         f o n t _ p t r   =   p t r   ( c o n s t . d e v p t r ,   m e m b e r . f o n t _ r   ( m ) ) ; 
         o p u t _ p   =   p t r   ( c o n s t . d e v p t r ,   f o n t . o p u t _ r ) ; 
         m e d s e l _ t a b l e _ p t r   =   p t r   ( c o n s t . d v i d p t r ,   c o m p _ d v t . m e d s e l _ t a b l e _ r ) ; 
         m e d _ s e l _ p   =   p o i n t e r   ( c o n s t . d e v p t r ,   m e d s e l _ t a b l e . r e f _ r   ( o p u t . w h i c h   ( 3 2 ) ) ) ; 
 
         c a l l   i o a _   ( "     s t r o k e s :   ^ i ^ /     w o r d s p a c e :   ^ i , ^ i , ^ i ^ /     f o o t s e p :   ^ a ^ /     " 
                   | |   " m e d s e l :   " " ^ a " " " ,   f o n t . r e l _ u n i t s ,   f o n t . m i n _ w s p ,   f o n t . a v g _ w s p , 
                   f o n t . m a x _ w s p ,   c o m p _ u t i l _ $ d i s p l a y   ( ( f o n t . f o o t s e p ) ,   0 ,   " 0 " b ) , 
                   c o m p _ u t i l _ $ d i s p l a y 
                   ( ( m e d _ s e l _ p   - >   s u b s t r   ( m e d _ s e l . s t r ,   1 ,   m e d _ s e l . s t r _ l ) ) ,   0 ,   " 0 " b ) ) ; 
 
         u n i t s _ p t r   =   p t r   ( c o n s t . d e v p t r ,   f o n t . u n i t s _ r ) ; 
         l i n e a   =   " " ; 
 
         i f   l o n g 
         t h e n   c o l w i d t h   =   1 6 ; 
         e l s e   c o l w i d t h   =   1 0 ; 
 
         d o   k k   =   0   t o   o p u t . d a t a _ c t ; 
             i f   o p u t . w h a t _ r   ( k k )   ^ =   " 0 " b 
             t h e n 
                 d o ; 
 	 i f   k k   > =   3 2   &   k k   <   1 2 7 
 	 t h e n   l i n e a   =   l i n e a   | |   b y t e   ( k k ) ; 
 	 e l s e   l i n e a   =   l i n e a   | |   c o m p _ u t i l _ $ d i s p l a y   ( ( b y t e   ( k k ) ) ,   0 ,   " 0 " b ) ; 
 	 l i n e a   =   l i n e a   | |   "   ( "   | |   l t r i m   ( c h a r   ( u n i t s   ( k k ) ) ) ; 
 
 	 i f   l o n g 
 	 t h e n 
 	     d o ; 
 	         l i n e a   =   l i n e a   | |   " , " ; 
 	         c a l l   d i s p l a y _ s t r   ( o p u t . w h a t _ r   ( k k ) ) ; 
 	     e n d ; 
 
 	 l i n e a   =   l i n e a   | |   " ) " ; 
 	 c a l l   p u t _ s t r   ( 0 ) ; 
 	 l i n e a   = 
 	           c o p y   ( "   " ,   c o l w i d t h   -   m o d   ( l e n g t h   ( l i n e b )   +   1 ,   c o l w i d t h )   +   1 ) ; 
                 e n d ; 
         e n d ; 
         i f   ( l i n e b   ^ =   " " ) 
         t h e n   c a l l   i o a _   ( " ^ a " ,   l i n e b ) ; 
 
 / *   * * *   f o r m a t :   o f f   * / 
         d c l   b i t n a m e 	 	 	 / *   c h a r   n a m e s   f o r   t a b l e s   * / 
 	 	       ( 0 : 5 1 1 )   c h a r   ( 1 6 )   v a r   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " N U L " ,   " S O H " ,   " S T X " ,   " E T X " ,   " E O T " ,   " E N Q " ,   " A C K " , 
 	 	       " B E L " ,   " B S P " ,   " H T " ,   " L F " ,   " V T " ,   " F F " ,   " C R " ,   " S O " ,   " S I " , 
 	 	       " D L E " ,   " D C 1 " ,   " D C 2 " ,   " D C 3 " ,   " D C 4 " ,   " N A K " ,   " S Y N " ,   " E T B " , 
 	 	       " C A N " ,   " 0 3 1 " ,   " S U B " ,   " E S C " ,   " F S " ,   " G S " ,   " R S " ,   " U S " , 
 	 	       " S P " ,   " " " ! " " " ,   " " " " " " " " ,   " " " # " " " ,   " " " $ " " " ,   " " " % " " " , 
 	 	       " " " & " " " ,   " " " ' " " " ,   " " " ( " " " ,   " " " ) " " " ,   " " " * " " " ,   " " " + " " " , 
 	 	       " " " , " " " ,   " " " - " " " ,   " " " . " " " ,   " " " / " " " ,   " " " 0 " " " ,   " " " 1 " " " , 
 	 	       " " " 2 " " " ,   " " " 3 " " " ,   " " " 4 " " " ,   " " " 5 " " " ,   " " " 6 " " " ,   " " " 7 " " " , 
 	 	       " " " 8 " " " ,   " " " 9 " " " ,   " " " : " " " ,   " " " ; " " " ,   " " " < " " " ,   " " " = " " " , 
 	 	       " " " > " " " ,   " " " ? " " " ,   " " " @ " " " ,   " " " A " " " ,   " " " B " " " ,   " " " C " " " , 
 	 	       " " " D " " " ,   " " " E " " " ,   " " " F " " " ,   " " " G " " " ,   " " " H " " " ,   " " " I " " " , 
 	 	       " " " J " " " ,   " " " K " " " ,   " " " L " " " ,   " " " M " " " ,   " " " N " " " ,   " " " O " " " , 
 	 	       " " " P " " " ,   " " " Q " " " ,   " " " R " " " ,   " " " S " " " ,   " " " T " " " ,   " " " U " " " , 
 	 	       " " " V " " " ,   " " " W " " " ,   " " " X " " " ,   " " " Y " " " ,   " " " Z " " " ,   " " " [ " " " , 
 	 	       " " " \ " " " ,   " " " ] " " " ,   " " " ^ " " " ,   " " " _ " " " ,   " " " ` " " " ,   " " " a " " " , 
 	 	       " " " b " " " ,   " " " c " " " ,   " " " d " " " ,   " " " e " " " ,   " " " f " " " ,   " " " g " " " , 
 	 	       " " " h " " " ,   " " " i " " " ,   " " " j " " " ,   " " " k " " " ,   " " " l " " " ,   " " " m " " " , 
 	 	       " " " n " " " ,   " " " o " " " ,   " " " p " " " ,   " " " q " " " ,   " " " r " " " ,   " " " s " " " , 
 	 	       " " " t " " " ,   " " " u " " " ,   " " " v " " " ,   " " " w " " " ,   " " " x " " " ,   " " " y " " " , 
 	 	       " " " z " " " ,   " " " { " " " ,   " " " | " " " ,   " " " } " " " ,   " " " ~ " " " ,   " P A D " , 
 	 	       " 2 0 0 " ,   " 2 0 1 " ,   " 2 0 2 " ,   " 2 0 3 " ,   " 2 0 4 " ,   " 2 0 5 " ,   " 2 0 6 " ,   " 2 0 7 " , 
 	 	       " 2 1 0 " ,   " 2 1 1 " ,   " 2 1 2 " ,   " 2 1 3 " ,   " 2 1 4 " ,   " 2 1 5 " ,   " 2 1 6 " ,   " 2 1 7 " , 
 	 	       " 2 2 0 " ,   " 2 2 1 " ,   " 2 2 2 " ,   " 2 2 3 " ,   " 2 2 4 " ,   " 2 2 5 " ,   " 2 2 6 " ,   " 2 2 7 " , 
 	 	       " 2 3 0 " ,   " 2 3 1 " ,   " 2 3 2 " ,   " 2 3 3 " ,   " 2 3 4 " ,   " 2 3 5 " ,   " 2 3 6 " ,   " 2 3 7 " , 
 	 	       " 2 4 0 " ,   " 2 4 1 " ,   " 2 4 2 " ,   " 2 4 3 " ,   " 2 4 4 " ,   " 2 4 5 " ,   " 2 4 6 " ,   " 2 4 7 " , 
 	 	       " 2 5 0 " ,   " 2 5 1 " ,   " 2 5 2 " ,   " 2 5 3 " ,   " 2 5 4 " ,   " E M d a s h " ,   " 2 5 6 " , 
 	 	       " 2 5 7 " ,   " 2 6 0 " ,   " 2 6 1 " ,   " 2 6 2 " ,   " 2 6 3 " ,   " 2 6 4 " ,   " 2 6 5 " ,   " 2 6 6 " , 
 	 	       " 2 6 7 " ,   " 2 7 0 " ,   " 2 7 1 " ,   " 2 7 2 " ,   " 2 7 3 " ,   " 2 7 4 " ,   " 2 7 5 " ,   " 2 7 6 " , 
 	 	       " 2 7 7 " ,   " 3 0 0 " ,   " 3 0 1 " ,   " 3 0 2 " ,   " ( c ) " ,   " 3 0 4 " ,   " 3 0 5 " ,   " 3 0 6 " , 
 	 	       " 3 0 7 " ,   " 3 1 0 " ,   " 3 1 1 " ,   " 3 1 2 " ,   " 3 1 3 " ,   " 3 1 4 " ,   " o " ,   " 3 1 6 " , 
 	 	       " 3 1 7 " ,   " 3 2 0 " ,   " 3 2 1 " ,   " 3 2 2 " ,   " 3 2 3 " ,   " 3 2 4 " ,   " 3 2 5 " ,   " 3 2 6 " , 
 	 	       " 3 2 7 " ,   " 3 3 0 " ,   " 3 3 1 " ,   " 3 3 2 " ,   " 3 3 3 " ,   " 3 3 4 " ,   " 3 3 5 " ,   " 3 3 6 " , 
 	 	       " 3 3 7 " ,   " 3 4 0 " ,   " 3 4 1 " ,   " 3 4 2 " ,   " 3 4 3 " ,   " 3 4 4 " ,   " 3 4 5 " ,   " 3 4 6 " , 
 	 	       " 3 4 7 " ,   " 3 5 0 " ,   " 3 5 1 " ,   " 3 5 2 " ,   " 3 5 3 " ,   " 3 5 4 " ,   " 3 5 5 " ,   " 3 5 6 " , 
 	 	       " 3 5 7 " ,   " 3 6 0 " ,   " 3 6 1 " ,   " 3 6 2 " ,   " 3 6 3 " ,   " 3 6 4 " ,   " 3 6 5 " ,   " 3 6 6 " , 
 	 	       " 3 6 7 " ,   " 3 7 0 " ,   " 3 7 1 " ,   " 3 7 2 " ,   " 3 7 3 " ,   " 3 7 4 " ,   " 3 7 5 " ,   " 3 7 6 " , 
 	 	       " P S " ,   " ^ 0 " ,   " ^ 1 " ,   " ^ 2 " ,   " ^ 3 " ,   " ^ 4 " ,   " ^ 5 " ,   " ^ 6 " ,   " ^ 7 " , 
 	 	       " ^ 8 " ,   " ^ 9 " ,   " E M " ,   " E M _ " ,   " E N " ,   " E N _ " ,   " E N d " ,   " T H I N " , 
 	 	       " D E V I T " ,   " ` ` " ,   " ' ' " ,   " 1 h i - X " ,   " 4 2 4 " ,   " d n - a r r o w " ,   " 4 2 6 " , 
 	 	       " d i a - l e f t " ,   " d e l e t e - m a r k " ,   " d i a - r i g h t " ,   " d i a - t o p " ,   " < " , 
 	 	       " 1 h i - { " ,   " 1 h i - [ " ,   " l e f t - c i r c l e " ,   " 4 3 7 " ,   " - > " ,   " 1 h i - } " , 
 	 	       " 1 h i - ] " ,   " r i g h t - c i r c l e " ,   " 4 4 4 " ,   " u p - a r r o w " ,   " 4 4 6 " , 
 	 	       " 4 4 7 " ,   " 4 5 0 " ,   " 4 5 1 " ,   " 4 5 2 " ,   " 4 5 3 " ,   " 4 5 4 " ,   " 4 5 5 " ,   " 4 5 6 " , 
 	 	       " 4 5 7 " ,   " 4 6 0 " ,   " 4 6 1 " ,   " 4 6 2 " ,   " 4 6 3 " ,   " 4 6 4 " ,   " 4 6 5 " ,   " 4 6 6 " , 
 	 	       " 4 6 7 " ,   " 4 7 0 " ,   " 4 7 1 " ,   " 4 7 2 " ,   " 4 7 3 " ,   " 4 7 4 " ,   " 4 7 5 " ,   " 4 7 6 " , 
 	 	       " 4 7 7 " ,   " 5 0 0 " ,   " 5 0 1 " ,   " 5 0 2 " ,   " 5 0 3 " ,   " 5 0 4 " ,   " 5 0 5 " ,   " 5 0 6 " , 
 	 	       " 5 0 7 " ,   " 5 1 0 " ,   " 5 1 1 " ,   " 5 1 2 " ,   " 5 1 3 " ,   " 5 1 4 " ,   " 5 1 5 " ,   " 5 1 6 " , 
 	 	       " 5 1 7 " ,   " 5 2 0 " ,   " 5 2 1 " ,   " 5 2 2 " ,   " 5 2 3 " ,   " 5 2 4 " ,   " 5 2 5 " ,   " 5 2 6 " , 
 	 	       " 5 2 7 " ,   " 5 3 0 " ,   " 5 3 1 " ,   " 5 3 2 " ,   " 5 3 3 " ,   " 5 3 4 " ,   " 5 3 5 " ,   " 5 3 6 " , 
 	 	       " 5 3 7 " ,   " 5 4 0 " ,   " 5 4 1 " ,   " 5 4 2 " ,   " 5 4 3 " ,   " 5 4 4 " ,   " 5 4 5 " ,   " 5 4 6 " , 
 	 	       " 5 4 7 " ,   " 5 5 0 " ,   " 5 5 1 " ,   " 5 5 2 " ,   " 5 5 3 " ,   " 5 5 4 " ,   " 5 5 5 " ,   " 5 5 6 " , 
 	 	       " 5 5 7 " ,   " 5 6 0 " ,   " 5 6 1 " ,   " 5 6 2 " ,   " 5 6 3 " ,   " 5 6 4 " ,   " 5 6 5 " ,   " 5 6 6 " , 
 	 	       " 5 6 7 " ,   " 5 7 0 " ,   " 5 7 1 " ,   " 5 7 2 " ,   " 5 7 3 " ,   " 5 7 4 " ,   " 5 7 5 " ,   " 5 7 6 " , 
 	 	       " 5 7 7 " ,   " 6 0 0 " ,   " 6 0 1 " ,   " 6 0 2 " ,   " 6 0 3 " ,   " 6 0 4 " ,   " 6 0 5 " ,   " 6 0 6 " , 
 	 	       " 6 0 7 " ,   " 6 1 0 " ,   " 6 1 1 " ,   " 6 1 2 " ,   " 6 1 3 " ,   " 6 1 4 " ,   " 6 1 5 " ,   " 6 1 6 " , 
 	 	       " 6 1 7 " ,   " 6 2 0 " ,   " 6 2 1 " ,   " 6 2 2 " ,   " 6 2 3 " ,   " 6 2 4 " ,   " 6 2 5 " ,   " 6 2 6 " , 
 	 	       " 6 2 7 " ,   " 6 3 0 " ,   " 6 3 1 " ,   " 6 3 2 " ,   " 6 3 3 " ,   " 6 3 4 " ,   " 6 3 5 " ,   " 6 3 6 " , 
 	 	       " 6 3 7 " ,   " 6 4 0 " ,   " 6 4 1 " ,   " 6 4 2 " ,   " 6 4 3 " ,   " 6 4 4 " ,   " 6 4 5 " ,   " 6 4 6 " , 
 	 	       " 6 4 7 " ,   " 6 5 0 " ,   " 6 5 1 " ,   " 6 5 2 " ,   " 6 5 3 " ,   " 6 5 4 " ,   " 6 5 5 " ,   " 6 5 6 " , 
 	 	       " 6 5 7 " ,   " 6 6 0 " ,   " 6 6 1 " ,   " 6 6 2 " ,   " 6 6 3 " ,   " 6 6 4 " ,   " 6 6 5 " ,   " 6 6 6 " , 
 	 	       " 6 6 7 " ,   " 6 7 0 " ,   " 6 7 1 " ,   " 6 7 2 " ,   " 6 7 3 " ,   " 6 7 4 " ,   " 6 7 5 " ,   " 6 7 6 " , 
 	 	       " 6 7 7 " ,   " 7 0 0 " ,   " 7 0 1 " ,   " 7 0 2 " ,   " 7 0 3 " ,   " 7 0 4 " ,   " 7 0 5 " ,   " 7 0 6 " , 
 	 	       " 7 0 7 " ,   " 7 1 0 " ,   " 7 1 1 " ,   " 7 1 2 " ,   " 7 1 3 " ,   " 7 1 4 " ,   " 7 1 5 " ,   " 7 1 6 " , 
 	 	       " 7 1 7 " ,   " 7 2 0 " ,   " 7 2 1 " ,   " 7 2 2 " ,   " 7 2 3 " ,   " 7 2 4 " ,   " 7 2 5 " ,   " 7 2 6 " , 
 	 	       " 7 2 7 " ,   " 7 3 0 " ,   " 7 3 1 " ,   " 7 3 2 " ,   " 7 3 3 " ,   " 7 3 4 " ,   " 7 3 5 " ,   " 7 3 6 " , 
 	 	       " 7 3 7 " ,   " 7 4 0 " ,   " 7 4 1 " ,   " 7 4 2 " ,   " 7 4 3 " ,   " 7 4 4 " ,   " 7 4 5 " ,   " 7 4 6 " , 
 	 	       " 7 4 7 " ,   " 7 5 0 " ,   " 7 5 1 " ,   " 7 5 2 " ,   " 7 5 3 " ,   " 7 5 4 " ,   " 7 5 5 " ,   " 7 5 6 " , 
 	 	       " 7 5 7 " ,   " 7 6 0 " ,   " 7 6 1 " ,   " 7 6 2 " ,   " 7 6 3 " ,   " 7 6 4 " ,   " 7 6 5 " ,   " 7 6 6 " , 
 	 	       " 7 6 7 " ,   " 7 7 0 " ,   " 7 7 1 " ,   " 7 7 2 " ,   " 7 7 3 " ,   " 7 7 4 " ,   " 7 7 5 " ,   " 7 7 6 " , 
 	 	       " 7 7 7 " ) ; 	 / *   * * *   f o r m a t :   o n   * / 
     e n d   s h o w _ a _ f o n t ; 
 % p a g e ; 
 s h o w _ f a m i l i e s : 
     p r o c ; 
 
         d c l   b a c h _ s w 	       b i t   ( 1 ) ; 
         d c l   j 	 	       f i x e d   b i n ; 
 
         d c l   l e n g t h 	       b u i l t i n ; 
 
         f i r s t   =   " 1 " b ; 
         d o   j   =   1   t o   c o m p _ d v t . f a m i l y _ c t ; 
             m e m b e r _ p t r   =   p t r   ( c o n s t . d v i d p t r ,   c o m p _ d v t . m e m b e r _ r   ( j ) ) ; 
             b a c h _ s w   =   ( m e m b e r . n a m e   ( 1 )   =   " " ) ; 
             i f   f i r s t 
             t h e n 
                 d o ; 
 	 i f   d e b u g 
 	 t h e n 
 	     d o ; 
 	         i f   b a c h _ s w 
 	         t h e n   c a l l   i o a _ $ r s n n l   ( " ^ . 3 b " ,   l i n e a ,   0 ,   m e m b e r . f o n t _ r   ( 1 ) ) ; 
 	         e l s e   l i n e a   =   " " ; 
 	         l i n e a   =   l i n e a   | |   c o p y   ( "   " ,   1 0   -   l e n g t h   ( l i n e a ) ) ; 
 	     e n d ; 
 	 e l s e   l i n e a   =   "         " ; 
 	 i f   b a c h _ s w 
 	 t h e n   l i n e a   =   l i n e a   | |   " b a c h e l o r : " ; 
 	 e l s e   l i n e a   =   l i n e a   | |   " f a m i l y : " ; 
                 e n d ; 
             e l s e 
                 d o ; 
 	 l i n e a   =   l i n e a   | |   " , " ; 
 	 c a l l   p u t _ s t r   ( i n d e n t ) ; 
 	 l i n e a   =   " " ; 
                 e n d ; 
             l i n e a   =   l i n e a   | |   "   " ; 
             l i n e a   =   l i n e a   | |   r t r i m   ( c o m p _ d v t . n a m e   ( j ) ) ; 
             i f   d e b u g 
             t h e n 
                 d o ; 
 	 l i n e a   =   l i n e a   | |   " ( " ; 
 	 l i n e a   =   l i n e a   | |   l t r i m   ( c h a r   ( j ) ) ; 
 	 l i n e a   =   l i n e a   | |   " ) " ; 
                 e n d ; 
             f i r s t   =   " 0 " b ; 
             i f   ( j   =   c o m p _ d v t . f a m i l y _ c t ) 
             t h e n   c a l l   s h o w _ m e m b e r s ; 
             e l s e   i f   ( c o m p _ d v t . m e m b e r _ r   ( j )   ^ =   c o m p _ d v t . m e m b e r _ r   ( j   +   1 ) ) 
             t h e n   c a l l   s h o w _ m e m b e r s ; 
         e n d ; 
         c a l l   p u t _ s t r   ( i n d e n t ) ; 
 % p a g e ; 
 s h o w _ m e m b e r s : 
     p r o c ; 
 
         f i r s t   =   " 1 " b ; 
         i f   ( m e m b e r . n a m e   ( 1 )   ^ =   " " ) 
         t h e n 
             d o ; 
                 d i d m e m   ( * )   =   " 0 " b ; 
                 d o   k   =   1   t o   m e m b e r . c o u n t ; 
 	 i f   ^ d i d m e m   ( k ) 
 	 t h e n 
 	     d o ; 
 	         i f   f i r s t 
 	         t h e n 
 	             d o ; 
 	                 l i n e a   =   l i n e a   | |   " ; " ; 
 	                 c a l l   p u t _ s t r   ( i n d e n t ) ; 
 	                 c a l l   i o a _   ( " ^ a " ,   l i n e b ) ; 
 	                 l i n e b   =   " " ; 
 	             e n d ; 
 	         i f   d e b u g 
 	         t h e n   c a l l   i o a _ $ r s n n l   ( " ^ . 3 b " ,   l i n e a ,   0 ,   m e m b e r . f o n t _ r   ( 1 ) ) ; 
 	         e l s e   l i n e a   =   " " ; 
 	         l i n e a   =   l i n e a   | |   "             m e m b e r :   " ; 
 	         l i n e a   =   l i n e a   | |   r t r i m   ( m e m b e r . n a m e   ( k ) ) ; 
 	         i f   d e b u g 
 	         t h e n 
 	             d o ; 
 	                 l i n e a   =   l i n e a   | |   " ( " ; 
 	                 l i n e a   =   l i n e a   | |   l t r i m   ( c h a r   ( k ) ) ; 
 	                 l i n e a   =   l i n e a   | |   " ) " ; 
 	             e n d ; 
 	         f i r s t   =   " 0 " b ; 
 	         d i d m e m   ( k )   =   " 1 " b ; 
 	         d o   k k   =   k   +   1   t o   m e m b e r . c o u n t ; 
 	             i f   ( m e m b e r . f o n t _ r   ( k )   =   m e m b e r . f o n t _ r   ( k k ) ) 
 	             t h e n 
 	                 d o ; 
 	 	 l i n e a   =   l i n e a   | |   " , " ; 
 	 	 c a l l   p u t _ s t r   ( i n d e n t ) ; 
 	 	 l i n e a   =   "   " ; 
 	 	 l i n e a   =   l i n e a   | |   r t r i m   ( m e m b e r . n a m e   ( k k ) ) ; 
 	 	 i f   d e b u g 
 	 	 t h e n 
 	 	     d o ; 
 	 	         l i n e a   =   l i n e a   | |   " ( " ; 
 	 	         l i n e a   =   l i n e a   | |   l t r i m   ( c h a r   ( k k ) ) ; 
 	 	         l i n e a   =   l i n e a   | |   " ) " ; 
 	 	     e n d ; 
 	 	 d i d m e m   ( k k )   =   " 1 " b ; 
 	                 e n d ; 
 	         e n d ; 
 	         f i r s t   =   " 1 " b ; 	 	 / * 	           i f   a l t _ s w 
 	 	 	 	       t h e n   d o ; 
 	 	 	 	       l i n e a   =   l i n e a   | |   " ; " ; 
 	 	 	 	       c a l l   p u t _ s t r   ( i n d e n t ) ; 
 	 	 	 	       c a l l   i o a _   ( " ^ a " ,   l i n e b ) ; 
 	 	 	 	       l i n e b   =   " " ; 
 	 	 	 	       e n d ; 	               * / 
 	     e n d ; 
                 e n d ; 
             e n d ; 
         l i n e a   =   l i n e a   | |   " ; " ; 
         c a l l   p u t _ s t r   ( i n d e n t ) ; 
         c a l l   i o a _   ( " ^ a " ,   l i n e b ) ; 
         l i n e b   =   " " ; 
         f i r s t   =   " 1 " b ; 
 
     e n d   s h o w _ m e m b e r s ; 
 
     e n d   s h o w _ f a m i l i e s ; 
 
     e n d   s h o w _ d v t ; 
 
     e n d   s h o w _ d s m ; 
 
 p u t _ s t r : 
     p r o c   ( i n d e n t ) ; 
 
         d c l   i n d e n t 	       f i x e d   b i n ; 
 
         i f   ( l e n g t h   ( l i n e a )   +   l e n g t h   ( l i n e b )   >   l i n e l e n g t h ) 
         t h e n 
             d o ; 
                 i f   l i n e b   ^ =   " " 
                 t h e n 
 	 d o ; 
 	     c a l l   i o a _   ( " ^ a " ,   l i n e b ) ; 
 	     l i n e b   =   c o p y   ( "   " ,   i n d e n t ) ; 
 	 e n d ; 
                 e l s e   l i n e b   =   " " ; 
                 l i n e b   =   l i n e b   | |   l t r i m   ( l i n e a ) ; 
             e n d ; 
         e l s e   l i n e b   =   l i n e b   | |   l i n e a ; 
         l i n e a   =   " " ; 
 
     e n d   p u t _ s t r ; 
 
 d i s p l a y _ n e w _ s t r : 
     p r o c   ( s t r _ r ) ; 
 
         l i n e a   =   " " ; 
 
 d i s p l a y _ s t r : 
     e n t r y   ( s t r _ r ) ; 
 
         d c l   s t r _ r 	       b i t   ( 1 8 ) ; 
 
         d c l   c h 	       c h a r   ( 1 ) ; 
         d c l   b i n s 	       ( 3 )   f i x e d   b i n   ( 3 )   u n s i g n e d   u n a l   b a s e d   ( a d d r   ( c h ) ) ; 
         d c l   k k k 	       f i x e d   b i n ; 
         d c l   l i n e d 	       c h a r   ( 2 0 0 )   v a r ; 
 
         m e d c h a r _ s e l _ p   =   p t r   ( c o n s t . d e v p t r ,   s t r _ r ) ; 
         l i n e d   =   c o m p _ u t i l _ $ d i s p l a y   ( ( m e d c h a r _ s e l . s t r ) ,   0 ,   " 0 " b ) ; 
         l i n e a   =   l i n e a   | |   " " " "   | |   l i n e d ; 
         l i n e a   =   l i n e a   | |   " " " " ; 
 
     e n d   d i s p l a y _ n e w _ s t r ; 
 % p a g e ; 
 c l e a n : 
     p r o c ; 
 
         d c l   t e r m i n a t e _ f i l e _ 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 2 4 ) ,   b i t   ( * ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
 
         c a l l   t e r m i n a t e _ f i l e _   ( d s m p t r ,   0 ,   T E R M _ F I L E _ T E R M ,   c o d e ) ; 
         i f   ( c o d e   ^ =   0 ) 
         t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " T e r m i n a t i n g   ^ a " ,   d s m p a t h ) ; 
 
     e n d   c l e a n ; 
 % p a g e ; 
 p r o c _ a r g s : 
     p r o c ; 
 
         d c l   a r g 	       c h a r   ( a r g l )   b a s e d   ( a r g p ) ; 
         d c l   a r g c t 	       f i x e d   b i n ; 	 / *   n u m b e r   o f   a r g s   g i v e n   * / 
         d c l   a r g l 	       f i x e d   b i n   ( 2 1 ) ; 
         d c l   a r g n o 	       f i x e d   b i n ; 	 / *   a r g   c o u n t e r   * / 
         d c l   a r g p 	       p t r ; 
 
         d c l   ( d e c a t ,   i n d e x )   b u i l t i n ; 
 
         d c l   e r r o r _ t a b l e _ $ b a d o p t 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ n o a r g 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   i o x _ $ u s e r _ o u t p u t 
 	 	       p t r   e x t   s t a t i c ; 
 
         d c l   c h e c k _ s t a r _ n a m e _ $ e n t r y 
 	 	       e n t r y   ( c h a r   ( * ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   c u _ $ a f _ a r g _ c o u n t 
 	 	       e n t r y   ( f i x e d   b i n ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   c u _ $ a r g _ p t r 	       e n t r y   ( f i x e d   b i n ,   p t r ,   f i x e d   b i n   ( 2 1 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   c v _ d e c _ c h e c k _     e n t r y   ( c h a r   ( * ) ,   f i x e d   b i n   ( 3 5 ) ) 
 	 	       r e t u r n s   ( f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   g e t _ l i n e _ l e n g t h _ $ s w i t c h 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) )   r e t u r n s   ( f i x e d   b i n ) ; 
         d c l   g e t _ w d i r _ 	       e n t r y   r e t u r n s   ( c h a r   ( 1 6 8 ) ) ; 
 
         u n s p e c   ( s w s )   =   " 0 " b ; 	 	 / *   p r e s e t   s w i t c h e s   * / 
         s t a r _ c o d e   =   0 ; 
         d s m p a t h ,   f a m i l y n a m e ,   m e m b e r n a m e   =   " " ; 
 
         c a l l   c u _ $ a f _ a r g _ c o u n t   ( a r g c t ,   c o d e ) ; 
         i f   c o d e   =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( 0 ,   m e ,   " N o t   c a l l a b l e   a s   a n   a c t i v e   f u n c t i o n . " ) ; 
                 e r r o r   =   " 1 " b ; 
                 r e t u r n ; 
             e n d ; 
 
         i f   m e   =   D S N A M E 	 	 	 / *   d i s p l a y _ c o m p _ d s m   a r g s   * / 
         t h e n 
             d o ; 
                 i f   a r g c t   =   0 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ n o a r g ,   m e , 
 	               " ^ / ^ 5 x P r o p e r   u s a g e :   d c d s m   p a t h   { f o n t }   { - c o n t r o l _ a r g s } " ) ; 
 	     e r r o r   =   " 1 " b ; 
 	     r e t u r n ; 
 	 e n d ; 
 
                 l i n e l e n g t h   =   g e t _ l i n e _ l e n g t h _ $ s w i t c h   ( i o x _ $ u s e r _ o u t p u t ,   c o d e ) ; 
                 i f   c o d e   ^ =   0 
                 t h e n   l i n e l e n g t h   =   8 0 ; 
                 i n d e n t   =   1 0 ; 
 
                 d o   a r g n o   =   1   t o   a r g c t ; 
 	 c a l l   c u _ $ a r g _ p t r   ( a r g n o ,   a r g p ,   a r g l ,   c o d e ) ; 
 
 	 i f   ( c o d e   =   0 ) 
 	 t h e n 
 	     d o ; 
 	         i f   ( i n d e x   ( a r g ,   " - " )   =   1 ) 
 	         t h e n 
 	             d o ; 
 	                 i f   ( a r g   =   " - d e v i c e " )   |   ( a r g   =   " - d v " ) 
 	                 t h e n   d e v i c e   =   " 1 " b ; 
 
 	                 e l s e   i f   ( a r g   =   " - l i n e l e n g t h " )   |   ( a r g   =   " - l l " ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   a r g n o   =   a r g c t 
 	 	     t h e n 
 	 	         d o ; 
 m i s s i n g _ a r g : 
 	 	             c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ n o a r g ,   m e , 
 	 	 	   " V a l u e   f o r   ^ a " ,   a r g ) ; 
 	 	             e r r o r   =   " 1 " b ; 
 	 	         e n d ; 
 
 	 	     e l s e 
 	 	         d o ; 
 	 	             a r g n o   =   a r g n o   +   1 ; 
 	 	             c a l l   c u _ $ a r g _ p t r   ( a r g n o ,   a r g p ,   a r g l ,   c o d e ) ; 
 	 	             l i n e l e n g t h   =   c v _ d e c _ c h e c k _   ( a r g ,   c o d e ) ; 
 	 	             i f   ( c o d e   ^ =   0 ) 
 	 	             t h e n 
 	 	                 d o ; 
 	 	 	 c a l l   c o m _ e r r _   ( 0 ,   m e , 
 	 	 	           " I n v a l i d   d e c i m a l   v a l u e .   ^ a " ,   a r g ) ; 
 	 	 	 e r r o r   =   " 1 " b ; 
 	 	                 e n d ; 
 	 	         e n d ; 
 	 	 e n d ; 
 
 	                 e l s e   i f   ( a r g   =   " - l o n g " )   |   ( a r g   =   " - l g " ) 
 	                 t h e n   l o n g   =   " 1 " b ; 
 
 	                 e l s e   i f   ( a r g   =   " - d e b u g " )   |   ( a r g   =   " - d b " ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     d e b u g   =   " 1 " b ; 
 	 	     i n d e n t   =   1 6 ; 
 	 	 e n d ; 
 
 	                 e l s e 
 	 	 d o ; 
 b a d o p t : 
 	 	     c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ b a d o p t ,   m e ,   " ^ a " ,   a r g ) ; 
 	 	     e r r o r   =   " 1 " b ; 
 	 	 e n d ; 
 	             e n d ; 
 
 	         e l s e 
 	             d o ; 
 	                 i f   d s m p a t h   =   " " 	 / *   f i r s t   n a m e   i s   t h e   m o d u l e   * / 
 	                 t h e n   d s m p a t h   =   a r g ; 
 
 	                 e l s e   i f   f a m i l y n a m e   =   " " 
 	 	 	 	 / *   s e c o n d   n a m e   i s   a   f o n t   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     f a m i l y n a m e   =   b e f o r e   ( a r g ,   " / " ) ; 
 	 	     m e m b e r n a m e   =   d e c a t   ( a r g ,   " / " ,   " 0 1 1 " b ) ; 
 	 	 e n d ; 
 
 	                 e l s e 
 	 	 d o ; 
 	 	     c a l l   c o m _ e r r _   ( 0 ,   m e ,   " T o o   m a n y   p o s i t i o n a l   a r g s .   ^ a " , 
 	 	               a r g ) ; 
 	 	     e r r o r   =   " 1 " b ; 
 	 	 e n d ; 
 	             e n d ; 
 	     e n d ; 
 
 	 e l s e 
 	     d o ; 
 	         c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " R e a d i n g   a r g u m e n t   ^ i " ,   a r g n o ) ; 
 	         e r r o r   =   " 1 " b ; 
 	     e n d ; 
                 e n d ; 
 
                 i f   d s m p a t h   =   " " 	 	 / *   m u s t   h a v e   a   m o d u l e   * / 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ n o a r g ,   m e ,   " N o   d s m _ n a m e   s p e c i f i e d . " ) ; 
 	     e r r o r   =   " 1 " b ; 
 	 e n d ; 
             e n d ; 
 
         e l s e 	 	 	 	 / *   l i s t _ c o m p _ d s m   a r g s   * / 
             d o ; 
                 s t a r n a m e   =   " " ; 
 
                 d o   a r g n o   =   1   t o   a r g c t ; 
 	 c a l l   c u _ $ a r g _ p t r   ( a r g n o ,   a r g p ,   a r g l ,   c o d e ) ; 
 
 	 i f   ( c o d e   =   0 ) 
 	 t h e n 
 	     d o ; 
 	         i f   ( i n d e x   ( a r g ,   " - " )   =   1 ) 
 	         t h e n 
 	             d o ; 
 	                 i f   ( a r g   =   " - d e b u g " )   |   ( a r g   =   " - d b " ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     d e b u g   =   " 1 " b ; 
 	 	 e n d ; 
 
 	                 e l s e   i f   ( a r g   =   " - p a t h n a m e " )   |   ( a r g   =   " - p n " ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     p a t h   =   " 1 " b ; 
 
 	 	     i f   a r g n o   =   a r g c t 
 	 	     t h e n   g o t o   m i s s i n g _ a r g ; 
 
 	 	     a r g n o   =   a r g n o   +   1 ; 
 	 	     c a l l   c u _ $ a r g _ p t r   ( a r g n o ,   a r g p ,   a r g l ,   c o d e ) ; 
 	 	     d s m p a t h   =   a r g ; 
 	 	 e n d ; 
 
 	                 e l s e   i f   ( a r g   =   " - w o r k i n g _ d i r " )   |   ( a r g   =   " - w d " ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     p a t h   =   " 1 " b ; 
 	 	     d s m p a t h   =   g e t _ w d i r _   ( ) ; 
 	 	 e n d ; 
 
 	                 e l s e   g o t o   b a d o p t ; 
 	             e n d ; 
 
 	         e l s e   i f   s t a r n a m e   ^ =   " " 
 	         t h e n 
 	             d o ; 
 	                 c a l l   c o m _ e r r _   ( 0 ,   m e ,   " O n l y   o n e   s t a r n a m e   a l l o w e d .   ^ a " ,   a r g ) ; 
 	                 e r r o r   =   " 1 " b ; 
 	             e n d ; 
 
 	         e l s e 
 	             d o ; 
 	                 c a l l   c h e c k _ s t a r _ n a m e _ $ e n t r y   ( a r g ,   s t a r _ c o d e ) ; 
 	                 i f   s t a r _ c o d e   >   2 
 	                 t h e n 
 	 	 d o ; 
 	 	     c a l l   c o m _ e r r _   ( s t a r _ c o d e ,   m e ,   "   s t a r n a m e   ^ a " ,   a r g ) ; 
 	 	     e r r o r   =   " 1 " b ; 
 	 	 e n d ; 
 
 	                 e l s e   s t a r n a m e   =   a r g ; 
 	             e n d ; 
 
 	     e n d ; 
                 e n d ; 
 
                 i f   s t a r n a m e   =   " " 
                 t h e n   s t a r n a m e   =   " * * . c o m p _ d s m " ; 
                 e l s e 
 	 d o ; 
 	     c a l l   e x p a n d _ p a t h n a m e _ $ a d d _ s u f f i x   ( s t a r n a m e ,   " c o m p _ d s m " ,   " " , 
 	               s t a r n a m e ,   c o d e ) ; 
 	     i f   c o d e   ^ =   0 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " A s s u r i n g   s t a r n a m e   s u f f i x . " ) ; 
 	             e r r o r   =   " 1 " b ; 
 	             r e t u r n ; 
 	         e n d ; 
 	 e n d ; 
 
             e n d ; 
     e n d   p r o c _ a r g s ; 
 
         d c l   d i d m e m 	       ( 3 6 0 0 )   b i t   ( 1 )   u n a l ; 
         d c l   f i r s t 	       b i t   ( 1 ) ; 
         d c l   j 	 	       f i x e d   b i n ; 
         d c l   k 	 	       f i x e d   b i n ; 
         d c l   k k 	       f i x e d   b i n ; 
 
 % i n c l u d e   a c c e s s _ m o d e _ v a l u e s ; 
 % i n c l u d e   c o m p s t a t ; 
 % i n c l u d e   c o m p _ d v i d ; 
 % i n c l u d e   c o m p _ d v t ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o n t ; 
 % i n c l u d e   d e f i n i t i o n _ d c l s ; 
 % i n c l u d e   o b j e c t _ i n f o ; 
 % i n c l u d e   s l _ c o n t r o l _ s ; 
 % i n c l u d e   s l _ i n f o ; 
 % i n c l u d e   s t a r _ s t r u c t u r e s ; 
 % i n c l u d e   t e r m i n a t e _ f i l e ; 
 
     e n d   d i s p l a y _ c o m p _ d s m ; 
      
 
 
  
 	 	         e x p a n d _ d e v i c e _ w r i t e r . p l 1                 0 4 / 2 3 / 8 5     1 1 0 0 . 9 r e w   0 4 / 2 3 / 8 5     0 9 1 1 . 5               8 0 0 4 6     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 3 , l l 8 0 , d c l i n d 4 , i d i n d 1 6 , c o m c o l 4 1 , l i n e c o m   * / 
 
 e x p a n d _ d e v i c e _ w r i t e r : 
 x d w : 
       p r o c ; 
             m e   =   " x d w " ; 
             M E   =   " X D W " ; 
             s u f f i x   =   " . x d w " ; 
             g o t o   s t a r t ; 
 
 m a c r o : 
       e n t r y ; 
             m e   =   " m a c r o " ; 
             M E   =   " M A C R O " ; 
             s u f f i x   =   " . m a c r o " ; 
 
             d c l   v e r s i o n 	             c h a r   ( 6 )   i n t   s t a t i c   i n i t   ( " 1 . 2 b " ) ; 
             d c l   m e 	             c h a r   ( 3 2 )   v a r ; 
             d c l   M E 	             c h a r   ( 8 )   v a r ; 
 
 s t a r t : 
             c o d e   =   0 ; 
             s e g n a m e   =   " " ; 
             i n _ p ,   o f _ p   =   n u l l   ( ) ; 
             i n _ l ,   o f _ l   =   0 ; 
             c a l l p   =   n u l l   ( ) ; 
             i n _ s w ,   o f _ s w ,   p r _ s w ,   l o n g _ s w   =   " 0 " b ; 
 
             a r g n o   =   0 ; 
             a r g c t   =   0 ; 
             d o   w h i l e   ( c o d e   =   0 ) ; 
                   a r g n o   =   a r g n o   +   1 ; 
                   c a l l   c u _ $ a r g _ p t r   ( a r g n o ,   a r g _ p ,   a r g _ l ,   c o d e ) ; 
                   i f   ( c o d e   =   0 ) 
                   t h e n 
 	     d o ; 
 	           i f   ( s u b s t r   ( a r g ,   1 ,   1 )   =   " - " ) 
 	           t h e n 
 	                 d o ; 
 	 	   i f   ( a r g   =   " - p r " )   |   ( a r g   =   " - p r i n t " ) 
 	 	   t h e n   p r _ s w   =   " 1 " b ; 
 	 	   i f   ( a r g   =   " - n p r " )   |   ( a r g   =   " - n o _ p r i n t " ) 
 	 	   t h e n   p r _ s w   =   " 0 " b ; 
 	 	   e l s e   i f   ( a r g   =   " - c a l l " ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               a r g n o   =   a r g n o   +   1 ; 
 	 	               c a l l   c u _ $ a r g _ p t r   ( a r g n o ,   a r g _ p ,   a r g _ l ,   c o d e ) ; 
 	 	               i f   ( c o d e   ^ =   0 ) 
 	 	               t h e n 
 	 	 	 d o ; 
 	 	 	       c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " - c a l l   v a l u e " ) ; 
 	 	 	       r e t u r n ; 
 	 	 	 e n d ; 
 	 	               c a l l p   =   a r g _ p ; 
 	 	               c a l l l   =   a r g _ l ; 
 	 	         e n d ; 
 	 	   e l s e   i f   ( a r g   =   " - l o n g " )   |   ( a r g   =   " - l g " ) 
 	 	   t h e n   l o n g _ s w   =   " 1 " b ; 
 	 	   e l s e   i f   ( a r g   =   " - b r i e f " )   |   ( a r g   =   " - b f " ) 
 	 	   t h e n   l o n g _ s w   =   " 0 " b ; 
 	 	   e l s e   i f   ( a r g   =   " - i n s t r " )   |   ( a r g   =   " - i n p u t _ s t r i n g " ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               i f   i n _ s w 
 	 	               t h e n 
 	 	 	 d o ; 
 	 	 	       c a l l   c o m _ e r r _   ( 0 ,   m e , 
 	 	 	                 " M u l t i p l e   i n p u t _ s t r i n g s   s u p p l i e d . " ) ; 
 	 	 	       r e t u r n ; 
 	 	 	 e n d ; 
 	 	               i f   ( i n _ p   ^ =   n u l l   ( ) ) 
 	 	               t h e n   g o t o   n o t _ b o t h ; 
 	 	               a r g n o   =   a r g n o   +   1 ; 
 	 	               c a l l   c u _ $ a r g _ p t r   ( a r g n o ,   a r g _ p ,   a r g _ l ,   c o d e ) ; 
 	 	               i f   ( c o d e   ^ =   0 ) 
 	 	               t h e n 
 	 	 	 d o ; 
 	 	 	       c a l l   c o m _ e r r _   ( 0 ,   m e ,   " V a l u e   f o r   - i n   k e y w o r d . " ) 
 	 	 	                 ; 
 	 	 	       r e t u r n ; 
 	 	 	 e n d ; 
 	 	               i n _ s w   =   " 1 " b ; 
 	 	               i n _ p   =   a r g _ p ; 
 	 	               i n _ l   =   a r g _ l ; 
 	 	         e n d ; 
 	 	   e l s e   i f   ( a r g   =   " - a g " )   |   ( a r g   =   " - a r g u m e n t s " ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               d o   i   =   1   t o   2 5   w h i l e   ( c o d e   =   0 ) ; 
 	 	 	 a r g n o   =   a r g n o   +   1 ; 
 	 	 	 c a l l   c u _ $ a r g _ p t r   ( a r g n o ,   a r g _ p ,   a r g _ l ,   c o d e ) ; 
 	 	 	 i f   ( c o d e   =   0 ) 
 	 	 	 t h e n 
 	 	 	       d o ; 
 	 	 	             a r g c t   =   a r g c t   +   1 ; 
 	 	 	             a r g l . p   ( a r g c t )   =   a r g _ p ; 
 	 	 	             a r g l . l   ( a r g c t )   =   a r g _ l ; 
 	 	 	       e n d ; 
 	 	               e n d ; 
 	 	         e n d ; 
 	 	   e l s e   i f   ( a r g   =   " - o f " )   |   ( a r g   =   " - o u t p u t _ f i l e " ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               o f _ s w   =   " 1 " b ; 
 	 	               a r g n o   =   a r g n o   +   1 ; 
 	 	               c a l l   c u _ $ a r g _ p t r   ( a r g n o ,   a r g _ p ,   a r g _ l ,   c o d e ) ; 
 	 	               i f   ( c o d e   ^ =   0 ) 
 	 	               t h e n 
 	 	 	 d o ; 
 	 	 	       c a l l   c o m _ e r r _   ( 0 ,   m e ,   " V a l u e   f o r   - o f   k e y w o r d . " ) 
 	 	 	                 ; 
 	 	 	       r e t u r n ; 
 	 	 	 e n d ; 
 	 	               o f _ p   =   a r g _ p ; 
 	 	               o f _ l   =   a r g _ l ; 
 	 	         e n d ; 
 	 	   e l s e 
 	 	         d o ; 
 	 	               c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ b a d o p t ,   m e ,   " ^ a " ,   a r g ) ; 
 	 	               r e t u r n ; 
 	 	         e n d ; 
 	                 e n d ; 
 	           e l s e 
 	                 d o ; 
 	 	   i f   ( s e g n a m e   ^ =   " " ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               c a l l   c o m _ e r r _   ( 0 ,   m e , 
 	 	 	     " M u l t i p l e   s o u r c e   n a m e s   s u p p l i e d . " ) ; 
 	 	               r e t u r n ; 
 	 	         e n d ; 
 	 	   i f   ( s u b s t r   ( a r g ,   1 ,   1 )   =   " & " ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               c a l l   c o m _ e r r _   ( 0 ,   m e , 
 	 	 	     " M u s t   n o w   u s e   - i n p u t _ s t r i n g   t o   s p e c i f y   s t r i n g   t o   b e   e x p a n d e d . " 
 	 	 	     ) ; 
 	 	               r e t u r n ; 
 	 	         e n d ; 
 	 	   i f   ( i n _ p   ^ =   n u l l   ( ) ) 
 	 	   t h e n 
 	 	         d o ; 
 n o t _ b o t h : 
 	 	               c a l l   c o m _ e r r _   ( 0 ,   m e , 
 	 	 	     " C a n n o t   s u p p l y   b o t h   s t r i n g   a n d   s e g m e n t   a s   i n p u t . " 
 	 	 	     ) ; 
 	 	               r e t u r n ; 
 	 	         e n d ; 
 	 	   c a l l   e x p a n d _ p a t h n a m e _   ( a r g ,   d n a m e ,   e n a m e ,   c o d e ) ; 
 	 	   i f   ( c o d e   ^ =   0 ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ a " ,   a r g ) ; 
 	 	               r e t u r n ; 
 	 	         e n d ; 
 	 	   e n a m e   =   b e f o r e   ( e n a m e ,   s u f f i x ) ; 
 	 	   s e g n a m e   =   r t r i m   ( e n a m e ) ; 
 	 	   c a l l   h c s _ $ i n i t i a t e _ c o u n t   ( d n a m e ,   s e g n a m e   | |   s u f f i x ,   " " , 
 	 	             i n _ l ,   0 ,   i n _ p ,   c o d e ) ; 
 	 	   i f   ( i n _ p   =   n u l l   ( ) ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ a > ^ a ^ a " ,   d n a m e ,   e n a m e , 
 	 	 	     s u f f i x ) ; 
 	 	               r e t u r n ; 
 	 	         e n d ; 
 	 	   i n _ l   =   d i v i d e   ( i n _ l ,   9 ,   2 4 ,   0 ) ; 
 	 	   c o d e   =   0 ; 
 	                 e n d ; 
 	     e n d ; 
 
                   e l s e   i f   a r g n o   =   1 
                   t h e n 
 	     d o ; 
 	           c a l l   c o m _ e r r _   ( c o d e ,   M E , 
 	 	 " ^ / U s a g e   i s :   e x p a n d _ d e v i c e _ w r i t e r   { p a t h }   { - c o n t r o l _ a r g s } " ) ; 
 	           r e t u r n ; 
 	     e n d ; 
             e n d ; 
 
             i f   ( s e g n a m e   =   " " )   &   ( i n _ p   =   n u l l   ( ) )   |   ( a r g n o   =   1 ) 
             t h e n 
                   d o ; 
 	     i f   ( s u f f i x   =   " . m a c r o " ) 
 	     t h e n   c a l l   c o m _ e r r _   ( 0 ,   m e , 
 	 	     " ( ^ a )   P r o p e r   u s a g e   i s :   ^ a   { p a t h }   { - c o n t r o l _ a r g s } " , 
 	 	     v e r s i o n ,   m e ) ; 
 	     r e t u r n ; 
                   e n d ; 
 
             i f   ^ o f _ s w 
             t h e n   i f   i n _ s w 
 	   t h e n   p r _ s w   =   " 1 " b ; 
 	   e l s e   d n a m e   =   g e t _ w d i r _   ( ) ; 
             c a l l   g e t _ t e m p _ s e g m e n t s _   ( ( m e ) ,   p t r a ,   c o d e ) ; 
             o u t _ p t r   =   p t r a   ( 1 ) ; 
             i f   ( c o d e   ^ =   0 ) 
             t h e n 
                   d o ; 
 	     c a l l   c o m _ e r r _   ( c o d e ,   m e ) ; 
 	     r e t u r n ; 
                   e n d ; 
 
             o u t _ l e n   =   0 ; 
             c a l l   i o a _   ( " ^ a   ^ a " ,   M E ,   v e r s i o n ) ; 
             o n   c o n d i t i o n   ( c l e a n u p ) 
                   b e g i n ; 
 	     c a l l   x d w _ $ f r e e   ( l o n g _ s w ) ; 
 	     c a l l   r e l e a s e _ t e m p _ s e g m e n t s _   ( ( m e ) ,   p t r a ,   c o d e ) ; 
                   e n d ; 
             c a l l   x d w _ $ e x p a n d   ( m e ,   s e g n a m e ,   " " ,   o u t _ p t r ,   o u t _ l e n ,   a d d r   ( a r g l ) ,   ( a r g c t ) , 
 	   m s g ,   i n _ p ,   i n _ l ,   c o d e ) ; 
             c a l l   x d w _ $ f r e e   ( l o n g _ s w ) ; 
             i f   ( c o d e   ^ =   0 ) 
             t h e n 
                   d o ; 
 	     i f   ( c o d e   =   1 )   |   ( c o d e   =   - 1 ) 
 	     t h e n   i c o d e   =   0 ; 
 	     e l s e   i c o d e   =   c o d e ; 
 	     c a l l   c o m _ e r r _   ( i c o d e ,   m e ,   " ^ a " ,   m s g ) ; 
                   e n d ; 
             i f   p r _ s w 
             t h e n 
                   d o ; 
 	     c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ u s e r _ o u t p u t ,   o u t _ p t r ,   o u t _ l e n ,   c o d e ) ; 
                   e n d ; 
             e l s e   i f   ( c o d e   =   0 ) 
             t h e n 
                   d o ; 
 	     i f   ( o f _ p   ^ =   n u l l   ( ) ) 
 	     t h e n 
 	           d o ; 
 	                 a r g _ p   =   o f _ p ; 
 	                 a r g _ l   =   o f _ l ; 
 	                 c a l l   e x p a n d _ p a t h n a m e _   ( a r g ,   d n a m e ,   e n a m e ,   c o d e ) ; 
 	                 i f   ( c o d e   ^ =   0 ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         c a l l   c o m _ e r r _   ( 0 ,   m e ,   " ^ a " ,   a r g ) ; 
 	 	         g o t o   d o n e ; 
 	 	   e n d ; 
 	           e n d ; 
 	     c a l l   h c s _ $ m a k e _ s e g   ( d n a m e ,   e n a m e ,   " " ,   0 1 0 1 0 b ,   o u t _ p t r ,   c o d e ) ; 
 	     i f   ( o u t _ p t r   =   n u l l   ( ) ) 
 	     t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ a > ^ a " ,   d n a m e ,   e n a m e ) ; 
 	     e l s e 
 	           d o ; 
 	                 s u b s t r   ( o u t _ p t r   - >   s t r ,   1 ,   o u t _ l e n )   = 
 	 	       s u b s t r   ( p t r a   ( 1 )   - >   s t r ,   1 ,   o u t _ l e n ) ; 
 	                 c a l l   h c s _ $ s e t _ b c _ s e g   ( o u t _ p t r ,   o u t _ l e n   *   9 ,   c o d e ) ; 
 	                 c a l l   h c s _ $ t e r m i n a t e _ n o n a m e   ( o u t _ p t r ,   c o d e ) ; 
 	                 i f   ( c o d e   ^ =   0 ) 
 	                 t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ) ; 
 	                 i f   ( c o d e   =   0 )   &   ( c a l l p   ^ =   n u l l   ( ) ) 
 	                 t h e n   c a l l   c u _ $ c p   ( c a l l p ,   c a l l l ,   0 ) ; 
 	           e n d ; 
                   e n d ; 
 d o n e : 
             c a l l   r e l e a s e _ t e m p _ s e g m e n t s _   ( ( m e ) ,   p t r a ,   c o d e ) ; 
 
 
             d c l   1   a r g l 	             ( 2 5 ) , 
 	     2   p 	             p t r , 
 	     2   l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g c t 	             f i x e d   b i n   ( 2 4 ) ; 
 
             d c l   i n _ p 	             p t r ; 
             d c l   i n _ l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   o f _ p 	             p t r ; 
             d c l   o f _ s w 	             b i t   ( 1 ) ; 
             d c l   i n _ s w 	             b i t   ( 1 ) ; 
             d c l   o f _ l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   g e t _ w d i r _ 	             e n t r y   r e t u r n s   ( c h a r   ( 1 6 8 ) ) ; 
             d c l   i c o d e 	             f i x e d   b i n   ( 3 5 ) ; 
             d c l   d n a m e 	             c h a r   ( 1 6 8 ) ; 
             d c l   s u f f i x 	             c h a r   ( 3 2 )   v a r ; 
             d c l   e n a m e 	             c h a r   ( 3 2 ) ; 
             d c l   e x p a n d _ p a t h n a m e _ 
 	 	             e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   a r g 	             c h a r   ( a r g _ l )   b a s e d   ( a r g _ p ) ; 
             d c l   a r g _ l 	             f i x e d   b i n ; 
             d c l   a r g _ p 	             p t r ; 
             d c l   a r g n o 	             f i x e d   b i n ; 
             d c l   c a l l l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   c a l l p 	             p t r ; 
             d c l   c l e a n u p 	             c o n d i t i o n ; 
             d c l   c o d e 	             f i x e d   b i n   ( 3 5 ) ; 
             d c l   c o m _ e r r _ 	             e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
             d c l   c u _ $ a r g _ p t r           e n t r y   ( f i x e d   b i n ,   p t r ,   f i x e d   b i n ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   c u _ $ c p 	             e n t r y   ( p t r ,   f i x e d   b i n   ( 2 4 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   e r r o r _ t a b l e _ $ b a d o p t 
 	 	             f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
             d c l   g e t _ t e m p _ s e g m e n t s _ 
 	 	             e n t r y   ( c h a r   ( * ) ,   ( * )   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   i 	             f i x e d   b i n ; 
             d c l   i o a _ 	             e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
             d c l   i o x _ $ p u t _ c h a r s     e n t r y   ( p t r ,   p t r ,   f i x e d   b i n   ( 2 4 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   i o x _ $ u s e r _ o u t p u t 
 	 	             p t r   e x t   s t a t i c ; 
             d c l   l o n g _ s w 	             b i t   ( 1 ) ; 
             d c l   s e g n a m e 	             c h a r   ( 3 2 )   v a r ; 
             d c l   x d w _ $ e x p a n d           e n t r y   ( c h a r   ( 3 2 )   v a r ,   c h a r   ( 3 2 )   v a r ,   c h a r   ( 3 2 )   v a r , 
 	 	             p t r ,   f i x e d   b i n   ( 2 4 ) ,   p t r ,   f i x e d   b i n ,   c h a r   ( 1 0 0 0 )   v a r , 
 	 	             p t r ,   f i x e d   b i n   ( 2 4 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   x d w _ $ f r e e 	             e n t r y   ( b i t   ( 1 ) ) ; 
             d c l   m s g 	             c h a r   ( 1 0 0 0 )   v a r ; 
             d c l   o u t _ l e n 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   o u t _ p t r 	             p t r ; 
             d c l   p r _ s w 	             b i t   ( 1 ) ; 
             d c l   h c s _ $ i n i t i a t e _ c o u n t 
 	 	             e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 2 4 ) , 
 	 	             f i x e d   b i n   ( 2 ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   h c s _ $ m a k e _ s e g       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 5 ) , 
 	 	             p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   h c s _ $ s e t _ b c _ s e g   e n t r y   ( p t r ,   f i x e d   b i n   ( 2 4 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   h c s _ $ t e r m i n a t e _ n o n a m e 
 	 	             e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   p t r a 	             ( 1 )   p t r ; 
             d c l   r e l e a s e _ t e m p _ s e g m e n t s _ 
 	 	             e n t r y   ( c h a r   ( * ) ,   ( * )   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   s t r 	             c h a r   ( 2 6 2 1 4 4 )   b a s e d ; 
       e n d   e x p a n d _ d e v i c e _ w r i t e r ; 
      
 
 
  
 	 	         p r o c e s s _ c o m p o u t . p l 1                           0 4 / 2 3 / 8 5     1 1 0 0 . 9 r e w   0 4 / 2 3 / 8 5     0 9 1 1 . 5             8 8 4 1 6 9     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   r o u t i n e   t o   p r i n t   s e q u e n t i a l   c o m p o u t   f i l e s   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 p r o c e s s _ c o m p o u t : 
 p c o : 
     p r o c ; 
 
 / * 
       T h i s   p r o c e d u r e   i m p l e m e n t s   o n e   c o m m a n d   a n d   t w o   a c t i v e   f u n c t i o n s   d e s i g n e d 
       f o r   p r o c e s s i n g   c o m p o u t   f i l e s . 
 	 p r o c e s s _ c o m p o u t   ( p c o ) 	 w r i t e s   d e v i c e   i m a g e s   i n   v a r i o u s 
 	 	 	 	 f o r m a t s   t o   m a g / p a p e r   t a p e   t o   u s e r 
 	 	 	 	 o u t p u t 
 	 [ c o m p o u t ] 	 	 	 r e t u r n s   t h e   n a m e   o f   a   c o m p o u t 
 	 [ c o m p a s k   . . . ] 	 	 " r e s p o n s e "   w i t h   a   m e m o r y 
 
 / *   U s a g e : 	 p r o c e s s _ c o m p o u t   { p a t h }   { c t l a r g s } 	 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   P r o c e s s e s   o n e   o r   m o r e   s e q u e n t i a l   c o m p o u t   f i l e s   t o   t h e   t e r m i n a l ,   p a p e r           * / 
 / *   t a p e ,   o r   m a g   t a p e .   I t   s u p p o r t s   v a r i o u s   m e a n s   o f   p a g e   s e l e c t i o n   a n d 	               * / 
 / *   a n d   s e v e r a l   o u t p u t   d i s p l a y   m o d e s . 	 	 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   a r g s : 	 	 	 	 	 	 	               * / 
 / *   p a t h 	 	 	 	 	 	 	               * / 
 / * 	 t h e   n a m e   o f   a   c o m p o u t   t o   p r o c e s s ,   m a y   b e   a   s t a r n a m e .   T h e   c o m p o u t       * / 
 / * 	 s u f f i x   n e e d   n o t   b e   s u p p l i e d .   I f   n o t   g i v e n ,   t h e n   - p n   m u s t   b e   u s e d .     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   c t l a r g s : 	 	 	 	 	 	               * / 
 / *   - b l o c k   x x 	 	 	 	 	 	               * / 
 / * 	 O v e r r i d e   t h e   i m b e d d e d   o u t p u t   b l o c k i n g   f a c t o r ,   u s i n g   x x   i n s t e a d .         * / 
 / *   - b r i e f ,   - b f                                                                                                                               * / 
 / *                 a b b r e v i a t e   v a r i o u s   h e a d e r s   a n d   l a b e l s                                                             * / 
 / *   - c h a n g e _ p r i n t w h e e l _ f o r _ f i l e ,   - c p w f 	 	 	 	               * / 
 / * 	 c h a n g e   p r i n t w h e e l   a n d   r e p r i n t   a t   e n d   o f   f i l e . 	 	               * / 
 / *   - c h a n g e - p r i n t w h e e l _ f o r _ p a g e s ,   - c p w p 	 	 	 	               * / 
 / * 	 c h a n g e   p r i n t w h e e l   a n d   r e p r i n t   a t   e n d   o f   p a g e . 	 	               * / 
 / *   - c o m m e n t 	 	 	 	 	 	               * / 
 / * 	 s a m e   a s   - m o d e   c o m m e n t 	 	 	 	               * / 
 / *   - c o n t r o l _ f i l e   p a t h ,   - c f   p a t h 	 A C C E P T E D ,   B U T   N O T   I M P L E M E N T E D                 * / 
 / * 	 p a t h   i s   t h e   n a m e   o f   a   c o n t r o l   f i l e   ( s e e   b e l o w   f o r   f o r m a t ) . 	               * / 
 / *   - d i s p l a y ,   - d s 	 	 	 	 	 	               * / 
 / * 	 s a m e   a s   - m o d e   d i s p l a y 	 	 	 	               * / 
 / *   - d u m p 	 	 	 	 	 	 	               * / 
 / * 	 s a m e   a s   - m o d e   d u m p 	 	 	 	 	               * / 
 / *   - f r o m   x x ,   - f m   x x 	 	 	 	 	 	               * / 
 / * 	 b e g i n   o u t p u t   f r o m   p a g e   x x   ( s e e   p a g e   n u m b e r   c o n v e n t i o n s ) 	               * / 
 / *   - h e a d e r ,   - h e 	 	 	 	 	 	               * / 
 / * 	 s h o w   t h e   f i l e   h e a d e r   w i t h   - d u m p   o r   - m o d e   d u m p . 	 	               * / 
 / *   - l o n g ,   - l g 	 	 	 	 	 	               * / 
 / * 	 a d d   a d d i t i o n a l   i n f o r m a t i o n   t o   w h a t   i s   b e i n g   d i s p l a y e d . 	               * / 
 / *   - m o d e   c o m m e n t | d i s p l a y | d u m p | s e t u p | ? | x x | " S T R " 	 	 	               * / 
 / * 	 c o m m e n t 	 p r i n t s   t h e   c o m p o u t   c o n t r o l   c o m m e n t   i n f o r m a t i o n 	               * / 
 / * 	 d i s p l a y 	 p r i n t s   t h e   i m a g e   w i t h   a l l   d e v i c e   c o n t r o l s   i n t e r p r e t e d         * / 
 / * 	 d u m p 	 p r i n t s   a n d   a s c i i / o c t a l   d u m p   o f   t h e   i m a g e 	               * / 
 / * 	 s e t u p 	 p r i n t s   t h e   m a c h i n e   s e t u p   i n f o r m a t i o n   ( f o n t   a s s i g n m e n t s ,     * / 
 / * 	 	 p r i n t   w h e e l   a s s i g n m e n t s ,   e t c ) 	 	 	               * / 
 / * 	 ?   	 p r i n t s   t h e   m o d e s   d e f i n e d   i n   t h e   f i l e   h e a d e r 	               * / 
 / * 	 x x 	 s e l e c t s   t h e   m o d e   w i t h   t h a t   n a m e   f r o m   t h e   c o n t r o l   c o m m e n t   * / 
 / * 	 " S T R " 	 u s e s   S T R   a s   a n   a t t a c h   d e s c s c r i p t i o n   ( a t d )   s t r i n g 	               * / 
 / *   - n o h e a d e r ,   - n h e 	 	 	 	 	 	               * / 
 / * 	 d o   n o t   s h o w   t h e   f i l e   h e a d e r   w i t h   - d u m p   o r   - m o d e   d u m p   ( d e f a u l t ) .         * / 
 / *   - p a g e s   x x ,   - p g s   x x ,   - p a g e   x x ,   - p g   x x 	 	 	 	               * / 
 / * 	 s e l e c t s   a   s e r i e s   o f   p a g e s   a n d / o r   r a n g e s   o f   p a g e s   ( s e e   p a g e   n u m b e r     * / 
 / * 	 c o n v e n t i o n s ) .   A n y   n u m b e r   o f   x x ' s   m a y   f o l l o w 	 	               * / 
 / *   - p a g e s _ c h a n g e d   { p | s } ,   - p g s   { p | s } 	 	 	 	               * / 
 / * 	 c a u s e s   o n l y   t h e   c h a n g e d   p a g e s   t o   b e   s e l e c t e d .   T h e   " s "   o p t i o n   s a y s     * / 
 / * 	 t h a t   o n l y   t h e   s i n g l e   m o d i f i e d   p a g e s   a r e   w a n t e d .   T h e   " p "   o p t i o n           * / 
 / * 	 s a y s   t h a t   t h e   o b v e r s e   p a g e s   a r e   w a n t e d   t o   m a t c h   a l l   m o d i f i e d               * / 
 / * 	 p a g e s . 	 	 	 	 	 	               * / 
 / *   - - - - - - - - - - - - - - - - 	 " p "   o p t i o n   a c c e p t e d ,   b u t   n o t   i m p l e m e n t e d ;   g i v e s   w a r n i n g     * / 
 / *   - p a t h n a m e   x x ,   - p n   x x 	 	 	 	 	               * / 
 / * 	 c a u s e s   x x   t o   b e   u s e d   a s   a n   i n p u t   f i l e   n a m e   w i t h o u t   a d d i n g 	               * / 
 / * 	 " . c o m p o u t " .   M a y   n o t   b e   u s e d   w h e n   p a t h   i s   g i v e n . 	 	               * / 
 / *   - s t o p ,   - s p 	 	 	 	 	 	               * / 
 / * 	 s t o p   b e t w e e n   p a g e s 	 	 	 	 	               * / 
 / *   - t a b l e ,   - t b 	 	 	 	 	 	               * / 
 / * 	 c a u s e s   a   t a b l e   o f   a l l   t h e   p a g e s   s e l e c t e d   t o   b e   p r i n t e d ,   s h o w i n g         * / 
 / * 	 t h e   p a g e   s e q u e n c e   n u m b e r ,   f r o n t / b a c k   s t a t u s ,   t h e   c h a n g e d   s t a t u s         * / 
 / * 	 ( v i a   " # " )   a n d   t h e   p a g e   i d e n t i f i c a t i o n 	 	 	               * / 
 / *   - t o   x x 	 	 	 	 	 	 	               * / 
 / * 	 T h i s   c a u s e s   o u t p u t   t o   c e a s e   a f t e r   p a g e   x x   ( s e e   p a g e   n u m b e r 	               * / 
 / * 	 c o n v e n t i o n s ) 	 	 	 	 	               * / 
 / *   - v o l u m e   x x 	 	 	 	 	 	               * / 
 / * 	 t h i s   s p e c i f i e s   t h e   n a m e   o f   a n   o u t p u t   t a p e   t o   b e   u s e d 	               * / 
 / *   - w a i t ,   - w t 	 	 	 	 	 	               * / 
 / * 	 s t o p   b e f o r e   f i r s t   p a g e   ( o n l y ) 	 	 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   N o t e :   a r g s   a p p l y   t o   a l l   i n p u t   f i l e s . 	 	 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   C O N T R O L   F I L E   F O R M A T   - - -   N O T   I M P L E M E N T E D 	 	 	               * / 
 / *   A   c o n t r o l   f i l e   i s   u s e d   t o   s p e c i f y   w h a t   i s   t o   b e   d o n e .   E a c h   e n t r y   h a s   t h i s   * / 
 / *   f o r m : 	 	 	 	 	 	 	               * / 
 / *               s t a r _ p a t h s   { c t l a r g s } ; 	 	 	 	               * / 
 / *   T h e   c t l a r g s   i n   a   e n t r y   a p p l y   t o   o n l y   t h e   p a t h s   i n   t h a t   e n t r y .     I n   t h i s         * / 
 / *   m a n n e r ,   d i f f e r e n t   s e l e c t i o n   c a n   b e   d o n e   o n   v a r i o u s   p a t h s   t o   b e   p r o c e s s e d ,   * / 
 / *   t o   a   s i n g l e   t a p e . 	 	 	 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   P A G E   N U M B E R   C O N V E N T I O N S 	 	 	 	 	               * / 
 / *   ! n 	 a b s o l u t e   p a g e   n u m b e r ,   s e q u e n c e   n u m b e r   i n   c o m p o u t 	 	               * / 
 / *   ! 0 	 r e s e t   t o   b e g i n n i n g   o f   c o m p o u t ,   u s e d   t o   e n a b l e   o u t p u t   i n   o r d e r             * / 
 / * 	 o t h e r   t h a n   c o m p o u t   o r d e r 	 	 	 	               * / 
 / *   + n 	 r e l a t i v e   p a g e   n u m b e r ,   f o r w a r d   f r o m   c u r r e n t   p o s i t i o n 	               * / 
 / *   $ - n         r e l a t i v e   p a g e   n u m b e r ,   r e f e r e n c i n g   t h e   l a s t   p a g e   ( - n   o p t i o n a l )             * / 
 / *   X X X 	 p a g e   i d e n t i f i c a t i o n ,   t h e   p a g e   i d e n t i f i e r   X X X   i s   s e a r c h e d   f o r .   A n       * / 
 / * 	 e x a c t   m a t c h   m u s t   o c c u r ,   n o   l e s s / g r e a t e r   t h a n   c h e c k   i s   p o s s i b l e           * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   f i l e h e a d e r . c o m m e n t   i s   u s e d   t o   c a r r y   i n f o r m a t i o n   w h i c h   i s   n e e d e d   t o   h a n d l e   * / 
 / *   t h e   f i l e .     T h i s   i n f o r m a t i o n   c o n s i s t s   o f   l i n e s   ( i . e .   s e p a r a t e d   b y   N L s ) .         * / 
 / *   E a c h   l i n e   b e g i n s   w i t h   a   k e y w o r d   f o l l o w e d   b y   a   c o l o n .   B e l o w ,   " x x x " 	               * / 
 / *   r e p r e s e n t s   t h e   d a t a   p e r t a i n i n g   t o   t h e   k e y w o r d .   A l l   x x x   s t r i n g s   a r e   a c t i v e   * / 
 / *   f u n c t i o n   e x p a n d e d   ( " [ "   a n d   " ] "   a r e   r e s e r v e d   f o r   t h i s   p u r p o s e )   b e f o r e             * / 
 / *   b e i n g   p u t   t o   u s e .   A   N L   n e e d   n o t   f o l l o w   t h e   l a s t   l i n e .     T h e s e   o p t i o n s   a r e     * / 
 / *   a v a i l a b l e   ( a n y t h i n g   e l s e   i s   i g n o r e d ) : 	 	 	               * / 
 
 / *     m o d e : z z z = x x x 	 T h i s   d e f i n e s   a   m o d e ,   z z z ,   t o   h a v e   t h e   v a l u e   x x x .   T h e           * / 
 / * 	 	 f i r s t   m o d e   p r e s e n t   i s   t h e   d e f a u l t   m o d e .   I f   a n y   o t h e r s         * / 
 / * 	 	 a r e   p r e s e n t ,   t h e y   r e p r e s e n t   a l t e r n a t i v e s   a v a i l a b l e .             * / 
 / * 	 	 A   m o d e   d e f i n e s   a   m e t h o d   o f   d i s p o s i n g   o f   t h e   d a t a .   T h e         * / 
 / * 	 	 o u t p u t   t y p e   i s   t h e   f i r s t   4   c h a r a c t e r s   o f   t h e   m o d e 	               * / 
 / * 	 	 s t r i n g .     T h e s e   3   a r e   c u r r e n t l y   s u p p o r t e d : 	               * / 
 / * 	 	 1 )   o u t p u t _ t y p e = T A P E   s p e c i f i e d   a s 	 	               * / 
 / * 	 	   " t a p e _ i b m _     a t t a c h - d e s c r i p t i o n "         O R 	 	               * / 
 / * 	 	   " t a p e _ a n s i _   a t t a c h - d e s c r i p t i o n " 	 	               * / 
 / * 	 	 2 )   o u t p u t _ t y p e = P U N C H   s p e c i f i e d   a s 	 	               * / 
 / * 	 	   " p u n c h   K " 	 	 	 	               * / 
 / * 	 	 3 )   o u t p u t _ t y p e = O N L I N E   ( d e f a u l t   i n   n o n e   s p e c i f i e d   a t   a l l )   * / 
 / * 	                 - - a t t a c h - d e s c r i p t i o n   i s   e v e r y t h i n g   n e e d e d   e x c e p t   f o r               * / 
 / * 	 	         v o l u m e - i d 	 - r i n g 	 - r e t a i n   x x x 	               * / 
 / * 	 	         - n u m b e r   n n n 	 - c r e a t e / - a p p e n d 	 	               * / 
 / * 	 	 T h e s e   a r e   a l l   s u p p l i e d   a s   n e e d e d   b y   p c o . 	               * / 
 / * 	                 - - K   c u r r e n t l y   c a n   o n l y   b e   " 6 " .     p u n c h   6   i s   u s e d   t o   p u t           * / 
 / * 	 	 o u t   T T S   o r   r e v e r s e   T T S   i n f o r m a t i o n   v i a   a   m o d i f i e d   T N 3 0 0     * / 
 / * 	 	 p a p e r   t a p e   p u n c h   ( d i s a b l e   2   u p p e r   p u n c h e s ) 	               * / 
 / * 	                 - - o n l i n e   c a u s e s   o u t p u t   t o   b e   s e n t   u s e r _ o u t p u t 	               * / 
 
 / *     l e a d e r : x x x 	 T h e   s t r i n g   x x x   i s   p u n c h e d   o u t   i n   " b i g "   l e t t e r s   o n   t h e         * / 
 / *                                     p a p e r   t a p e   l e a d e r   a f t e r   t h e   f i l e   i d e n t i f i c a t i o n . 	               * / 
 
 / *     s e t u p : x x x               T h e   s t r i n g   x x x   i s   p l a c e d   i n   t h e   " c o n t e n t s "   f i l e   w h i c h         * / 
 / *                                     i s   w r i t t e n   f i r s t   o n   m a g   t a p e .     W h e n   m u l t i p l e   f i l e s   a r e       * / 
 / * 	 	 b e i n g   w r i t t e n   t o   t h e   s a m e   t a p e ,   t h i s   i n f o r m a t i o n   i s             * / 
 / * 	 	 i n c l u d e d   o n l y   o n c e   ( t h e   f i r s t   f i l e ' s ) .   T h i s   i s   i n t e n d e d     * / 
 / * 	 	 t o   b e   u s e d   t o   c o n v e y   t h e   f o n t   s e t u p ,   e t c .   i n f o r m a t i o n   t o   * / 
 / * 	 	 t h e   r e c e i v e r   o f   t h e   t a p e . 	 	 	               * / 
 / * 	 	 T h e r e   m a y   b e   m u l t i p l e   o c c u r a n c e s   o f   t h i s   s t a t e m e n t .   E a c h   * / 
 / * 	 	 o c c u r a n c e   i s   a d d e d   t o   t h e   " c o n t e n t s "   f i l e   f o l l o w e d   b y   a     * / 
 / * 	 	 C R / L F . 	 	 	 	 	               * / 
 
 / *   f i l e : x x x 	 T h e   s t r i n g   x x x   i s   p l a c e d   i n   t h e   " c o n t e n t s "   f i l e   w h i c h         * / 
 / * 	 	 i s   w r i t t e n   f i r s t   o n   m a g   t a p e .   T h i s   i n f o r m a t i o n   i s   u s e d       * / 
 / * 	 	 f r o m   E A C H   f i l e   w r i t t e n   o n   t a p e .   I t   i s   i n t e n d e d   t o   g i v e       * / 
 / * 	 	 i n f o r m a t i o n   s p e c i f i c   t o   e a c h   f i l e   ( d o c u m e n t ) . 	               * / 
 / * 	 	 T h e   a c t i v e   f u n c t i o n   [ c o m p o u t ]   w i l l   c o n t a i n   t h e   n a m e   o f       * / 
 / * 	 	 e a c h   d o c u m e n t   i n   t u r n   a s   t h i s   i n f o r m a t i o n   i s   p r o c e s s e d .     * / 
 / * 	 	 T h e   a c t i v e   f u n c t i o n   [ c o m p a s k   . . . ]   i s   d e s i g n e d   t o   b e   o f       * / 
 / * 	 	 h e l p   i n   r e p l y i n g   t o   t h e   m a n y   o c c u r a n c e s   o f   t h e   s a m e             * / 
 / * 	 	 q u e s t i o n   w h i c h   w i l l   o c c u r   i n   t h i s   c a s e . 	 	               * / 
 
 / *   c o n t e n t _ f i l e : { ^ } s e g , { ^ } t a p e 	 	 	 	               * / 
 / * 	 	 T h i s   c o n t r o l s   t h e   d i s p o s i t i o n   o f   t h e   " c o n t e n t s "   f i l e .         * / 
 / * 	 	 I f   n o t   s p e c i f i e d ,   t h e   d e f a u l t   i s   " ^ t a p e , s e g " . 	               * / 
 / *         s e g , ^ s e g 	 d o / d o n t   c r e a t e   t h e   s e g m e n t   X X X . c o n t e n t s .   T h i s   w i l l               * / 
 / * 	 	 h a p p e n   o n l y   i f   - v o l u m e   X X X   i s   s p e c i f i e d .   X X X   i s   t h e   n a m e   * / 
 / * 	 	 o f   t h e   t a p e   b e i n g   w r i t t e n . 	 	 	               * / 
 / *         t a p e , ^ t a p e 	 d o / d o n t   p l a c e   t h e   c o n t e n t s   f i l e   a t   t h e   b e g i n n i n g   o f   t h e     * / 
 / * 	 	 t a p e . 	 	 	 	 	               * / 
 / *     p a c k : x x x 	 	 	 	 	 	               * / 
 / *         w h e r e   x x x   i s   o f   t h e   f o r m 	 	 	 	               * / 
 / * 	 { < s p e c > [ , < s p e c > ] . . . } . . . 	 	 	 	               * / 
 / *         w h e r e   < s p e c >   i s   f N   |   c N   |   b N   |   ' . . . ' 	 	 	               * / 
 / *                                     T h i s   s i g n i f i e s   t h a t   t h e   d a t a   i s   t o   b e   p a c k e d   w h e n 	               * / 
 / * 	 	 w r i t i n g   t o   m a g   t a p e . 	 	 	               * / 
 / *                                 - - ' . . . '   i s   a   l i t e r a l   b i t   s t r i n g   t o   b e   o u t p u t ,   q u o t e d   t h i s     * / 
 / * 	 	 w a y   b e c a u s e   t h e   c o m m e n t   i n   c o m p d v   i s   a l r e a d y   i n   " ' s             * / 
 / *                                 - - f N   m e a n s   t o   m o v e   f o r w a r d   N   b i t s   i n   t h e   i n p u t   b y t e 	               * / 
 / *                                 - - c N   m e a n s   t o   c o p y   N   b i t s   f r o m   t h e   i n p u t   b y t e 	               * / 
 / *                                 - - b N   m e a n s   t o   m o v e   b a c k w a r d   N   b i t s   i n   t h e   i n p u t   b y t e               * / 
 / *                                     ( N   i s   a   s i n g l e   d i g i t ) 	 	 	               * / 
 / *                                 - - " , "   s e p a r a t e s   p a r t s   w i t h i n   a   " b y t e s - w o r t h " 	               * / 
 / *                                 - - " ; "   s e p a r a t e s   b e t w e e n   i n p u t   b y t e s 	 	               * / 
 
 / *     b l k h d r / b l k t l r 	 r e c o g n i z e d   b u t   n o t   i m p l e m e n t e d 	 	               * / 
 
 / *     D B :   x x x 	 x x x   i s   t h e   s e g $ e n t r y   o f   r o u t i n e   t o   d o   t h e   - d b   d i s p l a y         * / 
 / * 	 	 T h i s   e n t r y   a n d   a n y   w h i c h   f o l l o w   i t   w i l l   n o t   b e   s h o w n   i f     * / 
 / * 	 	 - m o d e   c o m m e n t   i s   r e q u e s t e d . 	 	 	               * / 
 % p a g e ; 
 / *   U s a g e :   [ c o m p o u t ] 	 	 	 	 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   W h i l e   t h e   c o m m e n t   s t r i n g   o f   a   c o m p o u t   i s   b e i n g   p r o c e s s e d ,   t h i s   f u n c t i o n       * / 
 / *     w i l l   r e t u r n   t h e   n a m e   ( l e s s   " . c o m p o u t " )   o f   t h i s   c o m p o u t . 	 	               * / 
 / *   I f   c a l l e d   a t   a n y   o t h e r   t i m e   i t   w i l l   p r i n t   t h e   m e s s a g e   f r o m 	               * / 
 / * 	 e r r o r _ t a b l e _ $ o u t _ o f _ s e q u e n c e 	 	 	 	               * / 
 % s k i p   ( 5 ) ; 
 / *   U s a g e :   [ c o m p a s k   q u e s t i o n   { r e s p o n s e s } ] 	 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   W h i l e   t h e   c o m m e n t   s t r i n g   o f   a   c o m p o u t   i s   b e i n g   p r o c e s s e d ,   t h i s   f u n c t i o n       * / 
 / *   a s k s   a   q u e s t i o n   o f   t h e   u s e r .   I t   o p t i o n a l l y   c o n s t r a i n s   t h e   a n s w e r   t o   b e         * / 
 / *     o n e   o f   a   s p e c i f i e d   s e t .   I t   a l s o   c o n t a i n s   p r o v i s i o n   f o r   t h e   m a p p i n g   o f   a     * / 
 / *     s p e c i f i c   u s e r   a n s w e r   i n t o   a   d i f f e r e n t   r e t u r n   s t r i n g .     T h i s   f u n c t i o n             * / 
 / *     r e m e m b e r s   t h e   t e x t   o f   e a c h   d i f f e r e n t   q u e s t i o n   a s k e d   ( w i t h i n   a   s i n g l e   p c o   * / 
 / *     e x e c u t i o n ) ,   a n d   k e e p s   t h e   l a s t   a n s w e r .   E a c h   q u e s t i o n   i s   a s k e d ,   s h o w i n g       * / 
 / *     t h e   r e m e m b e r e d   a n s w e r   ( i f   a n y ) .   T h i s   l a s t   a n s w e r   m a y   b e   s e l e c t e d   b y             * / 
 / *     a n s w e r i n g   o n l y   a   N L .   I f   a   n u l l   a n s w e r   i s   w a n t e d   i n s t e a d   o f   t h e   l a s t             * / 
 / *     a n s w e r ,   a   s i n g l e   " . "   m u s t   b e   t h e   r e s p o n s e . 	 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   q u e s t i o n 	 i s   w h a t e v e r   i s   t o   b e   a s k e d .   I t   i s   p r i n t e d ,   f o l l o w e d   b y       * / 
 / * 	 	 t h e   l a s t   a n s w e r   t o   t h i s   q u e s t i o n   i n   p a r e n t h e s e s ,   b u t           * / 
 / * 	 	 w i t h   n o   N L . 	 	 	 	               * / 
 / *   r e s p o n s e 	 i f   p r e s e n t   s p e c i f i e s   a   v a l u e   w h i c h   i s   a   v a l i d   r e s p o n s e .     * / 
 / * 	 	 T h i s   m a y   b e   i n   o n e   o f   t w o   f o r m s :   " A "   o r   " A = B " .   T h e   " A "       * / 
 / * 	 	 i s   a   r e s p o n s e   t o   b e   c h e c k e d   f o r .   I f   t h e   " = "   i s   p r e s e n t ,     * / 
 / * 	 	 w h a t e v e r   f o l l o w s   i t   ( t h e   " B "   p o r t i o n ,   w h i c h   m a y   b e   n u l l )   * / 
 / * 	 	 i s   r e t u r n e d   i f   t h e   " A "   i s   e n t e r e d   b y   t h e   u s e r . 	               * / 
 / *   F o r   e x a m p l e :   ( a l l   o n   o n e   l i n e   i n   a   c o m p o u t   c o m m e n t   s t r i n g ) 	               * / 
 / * 	 f i l e : R e t u r n [ c o m p a s k   " "     P a s t e u p ?   " "   n o =   " " y e s =   p a s t e d   u p " " ] 	               * / 
 / * 	   [ c o m p a s k   " " o r i g i n a l / c o p y ?   " "   o = o r i g i n a l   o r i g i n a l   c = c o p y   c o p y ] .         * / 
 / *   I f   2   f i l e s   a r e   b e i n g   p r o c e s s e d ,   i t   w i l l   c a u s e   t h i s   k i n d   o f   i n t e r a c t i o n :       * / 
 / *                     P a s t e u p ?   ( )   y e s 	 	 	 	 	               * / 
 / * 	 o r i g i n a l / c o p y   ( )   c o p y 	 	 	 	               * / 
 / * 	     P a s t e u p ?   ( y e s )   n o 	 	 	 	 	               * / 
 / * 	 o r i g i n a l / c o p y   ( c o p y )   o 	 	 	 	               * / 
 / *   w i l l   c a u s e   g e n e r a t i o n   o f   t h e s e   l i n e s : 	 	 	               * / 
 / * 	 R e t u r n   p a s t e d   u p   c o p y . 	 	 	 	               * / 
 / * 	 R e t u r n   o r i g i n a l . 	 	 	 	 	               * / 
 / *   N o t e   t h a t   t h e   p a s t e u p   q u e s t i o n   r e t u r n s   a   n u l l   r e s u l t   i f   t h e   a n s w e r   i s   n o     * / 
 / *   a n d   t h e   s t r i n g   "   p a s t e d   u p "   i f   t h e   a n s w e r   i s   y e s .   T h e   y e s   r e s p o n s e   m u s t       * / 
 / *   b e   q u o t e d   b e c a u s e   i t   c o n t a i n s   S P s . 	 	 	 	               * / 
 / *   T h e   o t h e r   q u e s t i o n   a l l o w s   t h e   u s e r   t o   r e p l y   " o "   i n s t e a d   o f   h a v i n g   t o   t y p e   * / 
 / *   " o r i g i n a l " ,   y e t   t h e   r e s u l t   i s   t h e   m o r e   m e a n i n g f u l   w h o l e   w o r d . 	               * / 
 % p a g e ; 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   a f _ d a t a _ p t r 	       p t r   i n t   s t a t i c   i n i t   ( n u l l   ( ) ) ; 
         d c l   1   a f _ d a t a 	       b a s e d   ( a f _ d a t a _ p t r ) , 
 	 2   c o m p o u t 	       c h a r   ( 3 2 )   v a r , 	 / *   [ c o m p o u t ]   d a t a 	 	               * / 
 	 2   c o u n t 	       f i x e d   b i n , 	 / *   [ c o m p a s k   " . . . " ]   d a t a   l i s t 	               * / 
 	 2   e 	       ( a f _ d a t a . c o u n t ) , 
 	     3   q u e s t 	       c h a r   ( 1 0 0 )   v a r , 	 / *   q u e s t i o n   * / 
 	     3   a n s 	       c h a r   ( 1 6 8 )   v a r ; 	 / *   a n s w e r   * / 
         d c l   a n s w e r 	       c h a r   ( 4 )   v a r ; 	 / *   c o m m a n d _ q u e r y   a n s w e r   * / 
 	 	 	 	 / *   c o m m a n d   a r g u m e n t 	               * / 
         d c l   a r g 	       c h a r   ( a r g l )   b a s e d   ( a r g p ) ; 
 	 	 	 	 / *   a r g   l i s t   s t r u c t u r e   * / 
         d c l   1   a r g _ l i s t 	       b a s e d   ( a r g _ l i s t _ p t r ) , 
 	 	 	 	 / *   1 =   u s e   a r g   a s   n a m e   w o / c o m p o u t       * / 
 	 2   a s i s 	       ( a r g c t )   b i t   ( 1 )   u n a l , 
 	 	 	 	 / *   c a n   b e   a n   a b s o l u t e   p a t h               * / 
 	 2   a r g 	       ( a r g c t )   c h a r   ( 2 0 0 )   v a r , 
 	 2   E 	       p t r ; 	 	 / *   - >   f i l e   i f   a r g   i s   a   p a t h   * / 
         d c l   a r g _ l i s t _ p t r       p t r   d e f i n e d   t e m p s e g s   ( 5 ) ; 
         d c l   a r g c t 	       f i x e d   b i n ; 	 / *   n u m b e r   o f   c o m m a n d   a r g s   g i v e n   * / 
         d c l   a r g l 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   l e n g t h   o f   a r g 	 	               * / 
         d c l   a r g n o 	       f i x e d   b i n ; 	 / *   c o m m a n d   l i n e   a r g   c o u n t e r 	               * / 
         d c l   a r g p 	       p t r ; 	 	 / *   p o i n t e r   t o   a r g 	 	               * / 
         d c l   B E G I N 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 1 ) ; 
         d c l   B E L H T 	       c h a r   ( 2 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "  	 " ) ; 
         d c l   B O F 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( - 1 ) ; 
         d c l   c o d e 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   e r r o r   c o d e 	 	               * / 
 	 	 	 	 / *   - >   t a p e   c o n t e n t s   l i s t   * / 
         d c l   c o n t e n t s _ p t r       p t r   d e f i n e d   t e m p s e g s   ( 3 ) ; 
         d c l   c o n t e n t s 	       c h a r   ( 2 6 2 1 4 3 )   v a r   b a s e d   ( c o n t e n t s _ p t r ) ; 
         d c l   c o n t e n t s _ l 	       f i x e d   b i n ; 
         d c l   C R 	       c h a r   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "  " ) ; 
         d c l   c t l _ f i l e 	       ( 1 0 0 )   c h a r   ( 1 6 8 )   v a r ; 
 	 	 	 	 / *   c o n t r o l   f i l e   p a t h s   * / 
         d c l   c t l _ f i l e _ c o u n t   f i x e d   b i n ; 	 / *   n u m b e r   o f   c o n t r o l   f i l e s   * / 
         d c l   d e v i c e _ c l e a n u p   c h a r   ( 1 0 0 )   v a r ; 	 / *   c l e a n u p   s t r i n g   f o r   d e v i c e   * / 
 
 / *         d c l   d i s p l a y _ p r o c       e n t r y   ( c h a r   ( * )   v a r ,   f i x e d   b i n   ( 2 4 ) ,   b i t   ( 1 ) ,   b i t   ( 1 ) ) 
 / * 	 	       r e t u r n s   ( c h a r   ( * )   v a r )   a u t o m a t i c ; * / 
 / *         d c l   d i s p l a y _ r t n 	       c h a r   ( 1 6 8 )   v a r ; 	 / *   n a m e   o f   - d b / - d i s p l a y   r o u t i n e             * / 
         d c l   d o n e 	       b i t   ( 1 ) ; 	 / *   l o o p   c o n t r o l   s w i t c h   * / 
         d c l   E N D 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 2 ) ; 
         d c l   g i v e n _ f i l e _ c o u n t 	 	 / *   #   o f   f i l e s   g i v e n   * / 
 	 	       f i x e d   b i n ; 
         d c l   f i l e _ e n t r y _ p t r   p t r ; 	 	 / *   f i l e   e n t r y   s t r u c t u r e   * / 
         d c l   1   f i l e _ e n t r y       a l i g n e d   b a s e d   ( f i l e _ e n t r y _ p t r ) , 
 	 2   l i n k 	       p t r , 	 	 / *   - >   n e x t   f i l e   i n   l i n k e d   l i s t   * / 
 	 2   f i l e 	       c h a r   ( 1 6 8 )   v a r , 	 / *   n a m e   o f   f i l e   t o   p r o c e s s * / 
 	 2   e n a m e 	       c h a r   ( 3 2 )   v a r , 	 / *   c o m p o u t   n a m e 	 	               * / 
 	 2   s e q _ n o 	       f i x e d   b i n , 
 	 2   p a g e _ c o u n t   f i x e d   b i n , 	 / *   c o u n t   o f   s e l e c t e d   p a g e s 	               * / 
 	 2   s w s , 
 	     3   p g c 	       b i t   ( 1 )   u n a l , 
 	     3   o b v e r s e     b i t   ( 1 )   u n a l , 	 / *   n o t   y e t   i m p l e m e n t e d   * / 
 	     3   s t o p 	       b i t   ( 1 )   u n a l , 
 	     3   w a i t 	       b i t   ( 1 )   u n a l , 
 	     3   f i l l 	       b i t   ( 3 2 )   u n a l , 
 	 2   p a g e _ s e l _ c t 
 	 	       f i x e d   b i n , 	 / *   c o u n t   o f   p a g e   s e l e c t   f i e l d s   * / 
 	 2   l l 	       ( f i l e _ e n t r y . p a g e _ s e l _ c t ) , 
 	     3   f r o m , 
 	         4   n u m 	       f i x e d   b i n , 	 / *   r e l a t i v e   p a g e   c o u n t 	               * / 
 	         4   i d 	       c h a r   ( 3 2 ) , 	 / *   a c t u a l   p a g e   i d   t o   l o o k   f o r 	               * / 
 	         4   s i g n       c h a r   ( 1 ) , 	 / *   " - "   n u m   i s   $ -   v a l u e 	               * / 
 	 	 	 	 / *   " + "   n u m   i s   +   v a l u e 	               * / 
 	 	 	 	 / *   " x "   n u m   i s   a b s o l u t e   v a l u e 	               * / 
 	 	 	 	 / *   "   "   i d   i s   w h a t   t o   l o o k   f o r 	               * / 
 	     3   t o 	       l i k e   f i l e _ e n t r y . f r o m , 
 	 2   n e x t 	       f i x e d   b i n ; 
         d c l   f i l e _ e n t r y _ b a s e _ p t r 
 	 	       ( 2 )   p t r ; 	 / *   b a s e   o f   l i n k e d   l i s t   o f   * / 
 	 	 	 	 / *           f i l e   e n t r y   p t r s   * / 
 	 	 	 	 / *   ( 1 )   -   c o m m a n d   l i n e   f i l e s   * / 
 	 	 	 	 / *   ( 2 )   -   ? ? ?   ( c o n t r o l   f i l e s   )   * / 
         d c l   f i l n o 	       f i x e d   b i n ; 	 / *   f i l e   c o u n t e r   * / 
         d c l   1   f r o m _ t o 	       a l i g n e d   l i k e   f i l e _ e n t r y . f r o m   b a s e d   ( f r o m _ t o _ p t r ) ; 
         d c l   f r o m _ t o _ p t r 	       p t r ; 
         d c l   F S P R E C 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 0 ) ; 
         d c l   k e y w o r d 	       c h a r   ( 6 4 )   v a r ; 	 / *   a s   n e e d e d   f o r   k e y w o r d   c h e c k i n g         * / 
         d c l   h e a d e r _ o u t _ p t r   p t r ; 	 	 / *   - >   h e a d e r   o f   t h e   c u r r e n t   c o m p o u t   * / 
         d c l   P A D H T 	       c h a r   ( 2 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "  	 " ) ; 
         d c l   i i 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
 
 / *         d c l   i n i t _ p r o c 	       e n t r y   a u t o m a t i c ;   / *   w r i t e r   i n i t   p r o c   * / 
         d c l   i n p u t _ i o c b p 	       p t r ; 	 	 / *   - >   I O C B   f o r   i n p u t   f i l e         * / 
         d c l   i p a g e 	       f i x e d   b i n ; 	 / *   p a g e   c o u n t e r   * / 
         d c l   j 	 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   l e a d e r 	       c h a r   ( 2 5 6 )   v a r ; 	 / *   f i x e d   p o r t i o n   o f   l e a d e r   * / 
         d c l   m a x _ t a p e _ f i l e s   f i x e d   b i n ; 	 / *   o n   a   t a p e   * / 
         d c l   m a x _ o u t r e c s 	       f i x e d   b i n ; 	 / *   m a x   r e c o r d s   i n   a n   o u t p u t   f i l e   * / 
         d c l   m a x _ r e c o r d s 	       f i x e d   b i n ; 	 / *   - b l o c k   v a l u e   f o r   m a x _ o u t r e c s   * / 
         d c l   m e 	       c h a r   ( 1 5 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " p r o c e s s _ c o m p o u t " ) ; 
         d c l   m o d e 	       c h a r   ( 2 0 0 )   v a r ; 	 / *   a   m o d e   f r o m   t h e   f i l e   * / 
         d c l   m o d e _ a r g 	       c h a r   ( 2 0 0 )   v a r ; 	 / *   a r g   g i v e n   f o r   - m o d e   * / 
         d c l   m o u n t e d _ w h e e l     f i x e d   b i n   s t a t i c   i n i t   ( 1 ) ; 
         d c l   n e x t _ i m a g e 	       b i t   ( 3 6 ) ; 	 / *   f o r   l o o p   c o n t r o l 	 	               * / 
         d c l   N O V O L 	       c h a r   ( 6 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " # # # # # # " ) ; 
         d c l   O N L I N E 	       c h a r   ( 4 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " o n l i " ) ; 
         d c l   o u t p u t _ m e d i u m     c h a r   ( 4 ) ; 	 / *   =   t a p e / p u n c h / o n l i n e   * / 
         d c l   o u t p u t _ t e x t 	       c h a r   ( o u t p u t _ t e x t _ l e n )   b a s e d   ( o u t p u t _ t e x t _ p t r ) ; 
         d c l   o u t p u t _ t e x t _ l e n 
 	 	       f i x e d   b i n   ( 2 1 ) ; 
         d c l   o u t p u t _ t e x t _ p t r 
 	 	       p t r   d e f i n e d   t e m p s e g s   ( 6 ) ; 
         d c l   p a c k _ c t 	       f i x e d   b i n ; 	 / *   #   e n t r i e s   i n   b i t   p a c k i n g   a r r a y   * / 
         d c l   p a g e _ l e n g t h 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   p a g e _ s e l e c t e d     f i x e d   b i n ; 	 / *   p a g e l i s t . p a g e   n d x   o f   p a g e   * / 
         d c l   p a g e _ w r d c t 	       f i x e d   b i n ; 	 / *   w o r d   c o u n t   f o r   p a g e   o v e r l a y   p a g e   * / 
         d c l   p a g e l i s t _ b a s e     f i x e d   b i n ; 	 / *   b a s e   p a g e l i s t . p a g e   i n d e x   * / 
         d c l   p a g e l i s t _ l a s t     f i x e d   b i n ; 	 / *   l a s t   p a g e l i s t . p a g e   i n d e x   * / 
 	 	 	 	 / *   c o n t e n t s   o f   a l l   r e q u e s t e d   f i l e s   * / 
         d c l   p a g e l i s t _ p t r       p t r   d e f i n e d   t e m p s e g s   ( 4 ) ; 
         d c l   1   p a g e l i s t 	       b a s e d   ( p a g e l i s t _ p t r ) , 
 	 2   f i l e _ c o u n t   f i x e d   b i n , 	 / *   h o w   m a n y   f i l e s   i n   t h e   l i s t   * / 
 	 2   p a g e _ c o u n t   f i x e d   b i n , 	 / *   h o w   m a n y   p a g e s   i n   t h e   l i s t   * / 
 	 2   f i l e 	       ( p a g e l i s t . f i l e _ c o u n t ) , 
 	     3   n a m e 	       c h a r   ( 1 6 8 )   v a r , 	 / *   f i l e   n a m e   * / 
 	     3   f r o m 	       f i x e d   b i n , 	 / *   b e g i n n i n g   p a g e l i s t . p a g e   i n d e x   * / 
 	     3   t o 	       f i x e d   b i n , 	 / *   e n d i n g   p a g e l i s t . p a g e   i n d e x   * / 
 	 2   p a g e 	       ( p a g e l i s t . p a g e _ c o u n t ) , 
 	     3   i d 	       c h a r   ( 3 2 ) , 	 / *   p a g e   i d e n t i f i c a t i o n   * / 
 	     3   f i l e _ n o     f i x e d   b i n , 	 / *   p a g e l i s t . f i l e   i n d e x   * / 
 	     3   s e q _ n o       f i x e d   b i n , 	 / *   a b s   p o s i t i o n   i n   f i l e   * / 
 	     3   s w , 
 	         4   c h a n g e d 
 	 	       b i t   ( 1 )   u n a l , 	 / *   p a g e   i s   c h a n g e d 	 	               * / 
 	         4   o b v _ c h a n g e d 
 	 	       b i t   ( 1 )   u n a l , 	 / *   o b v e r s e   i s   c h a n g e d 	               * / 
 	         4   f r o n t     b i t   ( 1 )   u n a l , 	 / *   p a g e   i s   a   f r o n t 	 	               * / 
 	         4   b l a n k     b i t   ( 1 )   u n a l , 	 / *   p a g e   i s   i n t e n t i o n a l l y   b l a n k               * / 
 	         4   n o _ f r o n t 
 	 	       b i t   ( 1 )   u n a l , 	 / *   o b v e r s e   f r o n t   n o t   p r e s e n t 	               * / 
 	         4   n o _ b a c k 
 	 	       b i t   ( 1 )   u n a l , 	 / *   o b v e r s e   b a c k   n o t   p r e s e n t 	               * / 
 	         4   s e l e c t   b i t   ( 1 )   u n a l , 	 / *   p a g e   i s   s e l e c t e d   f o r   o u t p u t               * / 
 	         4   f i l l       b i t   ( 2 9 )   u n a l ; 
         d c l   p r e f a c e 	       c h a r   ( 5 0 0 )   v a r ; 	 / *   p l a c e   t o   h o l d   s u c c e s s i v e   p r e f a c e s   * / 
         d c l   P U N C H 	       c h a r   ( 4 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " p u n c " ) ; 
 	 	 	 	 / *   i n t e r n a l   p r o c   t o   d o   t h e   o u t p u t   * / 
         d c l   p u t _ o u t 	       e n t r y   ( f i x e d   b i n )   a u t o m a t i c ; 
         d c l   r a w _ r e c o r d 	       c h a r   ( r e c o r d _ l e n )   b a s e d   ( r e c o r d _ p t r ) ; 
         d c l   r e c o r d _ b y t e s       f i x e d   b i n   ( 2 1 ) ; 	 / *   m a x   t a p e   r e c o r d   l e n g t h   i n   b y t e s   * / 
         d c l   r e c o r d _ c o u n t       f i x e d   b i n ; 	 / *   r e c o r d   c o u n t e r 	 	               * / 
         d c l   r e c o r d _ h d r c t       f i x e d   b i n ; 	 / *   i n p u t   r e c o r d   h e a d e r   w o r d   c o u n t         * / 
         d c l   r e c o r d _ l e n 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   i n p u t   r e c o r d   l e n g t h   f r o m   i o x _           * / 
         d c l   r e c o r d _ w r d c t       f i x e d   b i n ; 	 / *   i n p u t   r e c o r d   w o r d   c o u n t 	               * / 
         d c l   r e p l y _ t e x t 	       c h a r   ( 2 5 6 ) ; 	 / *   u s e r s   r e s p o n s e   t o   a   q u e s t i o n   * / 
         d c l   s e t u p 	       c h a r   ( 2 0 0 0 )   v a r ;   / *   f o n t   s e t u p   i n f o   f o r   c o n t e n t s   f i l e   * / 
         d c l   s t o p _ s i g n a l 	       c h a r   ( 5 ) ; 	 / *   2   ( { B E L | | } H T ) | | C R   * / 
         d c l   1   s w s , 	 	 	 / *   c o n t r o l   s w i t c h e s   * / 
 	 2   b r i e f _ s w       b i t   ( 1 )   u n a l , 	 / *   1 =   b r i e f   o u t p u t   m o d e   * / 
 	 2   c o m m e n t _ s w   b i t   ( 1 )   u n a l , 	 / *   1 =   p r i n t   c o m m e n t   v a l u e   * / 
 	 2   c o n t e n t s _ s e g _ s w 	 	 / *   1 =   T O C   s e g m e n t   w a n t e d   * / 
 	 	       b i t   ( 1 )   u n a l , 
 	 2   c o n t e n t s _ t a p _ s w 	 	 / *   1 =   T O C   f i l e   o n   t a p e   w a n t e d   * / 
 	 	       b i t   ( 1 )   u n a l , 
 	 2   c p w f _ s w 	       b i t   ( 1 )   u n a l , 	 / *   1 =   c h a n g e   p w h e e l   a t   E O F   * / 
 	 2   d e b u g _ s w       b i t   ( 1 )   u n a l , 	 / *   1 =   d e b u g g i n g   * / 
 	 2   d i s p l a y _ s w   b i t   ( 1 )   u n a l , 	 / *   1 =   i n t e r p r e t   f i l e   c o n t e n t s   * / 
 	 2   d u m p _ s w 	       b i t   ( 1 )   u n a l , 	 / *   1 =   o c t a l   d u m p   o f   f i l e   c o n t e n t s   * / 
 	 2   e r r o r _ s w       b i t   ( 1 )   u n a l , 	 / *   g l o b a l   e r r o r   f l a g 	               * / 
 	 2   f i r s t _ p r e f _ s w 	 	 / *   1 =   f i r s t   p r e f a c e   * / 
 	 	       b i t   ( 1 )   u n a l , 
 	 2   f r o m _ t o _ s w   b i t   ( 1 )   u n a l , 	 / *   1 =   - f r o m / - t o   a r g   g i v e n   * / 
 	 2   h e a d e r _ s w     b i t   ( 1 )   u n a l , 	 / *   1 =   s h o w   f i l e   h e a d e r   * / 
 	 2   l o n g _ s w 	       b i t   ( 1 )   u n a l , 	 / *   1 =   l o n g   o u t p u t   m o d e   * / 
 	 2   m o d e _ s w 	       b i t   ( 1 )   u n a l , 	 / *   1 =   - m o d e   h a s   b e e n   g i v e n   * / 
 	 2   n o b e l l _ s w     b i t   ( 1 )   u n a l , 	 / *   1 =   s u p p r e s s   B E L s   i n   s t o p   s i g n a l   * / 
 	 2   r a w o _ s w 	       b i t   ( 1 )   u n a l , 	 / *   1 =   i n   R A W O   m o d e       * / 
 	 2   s e t u p _ s w       b i t   ( 1 )   u n a l , 	 / *   1 =   p r i n t   m a c h i n e   s e t u p   v a l u e s   * / 
 	 2   s k i p _ p r e f _ s w 	 	 / *   1 =   s k i p   p r e f a c e   * / 
 	 	       b i t   ( 1 )   u n a l , 
 	 2   s t a r t _ p a g e _ s w 	 	 / *   1 -   s t a r t i n g   a   p a g e   o u t p u t                   * / 
 	 	       b i t   ( 1 )   u n a l , 
 	 2   t a b l e _ s w       b i t   ( 1 )   u n a l , 	 / *   1 =   t a b l e   l i s t   w a n t e d     * / 
 	 2   v o l _ s w 	       b i t   ( 1 )   u n a l , 	 / *   1 =   v o l u m e   I D   h a s   b e e n   g i v e n   * / 
 	 2   M B Z 	       b i t   ( 1 5 )   u n a l ; 
         d c l   T A P E 	       c h a r   ( 4 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " t a p e " ) ; 
         d c l   t a p e _ i o c b p 	       p t r ; 	 	 / *   - >   I O C B   f o r   o u t p u t   t a p e   * / 
         d c l   t e m p s e g s 	       ( 6 )   p t r ; 	 / *   t e m p s e g   p o i n t e r s   * / 
         d c l   t e x t _ c o n s 	       ( 2 )   c h a r   ( 1 2 8 )   v a r ; 
         d c l   t e x t _ p a g e s 	       f i x e d   b i n ; 	 / *   #   o f   p a g e s   p u t   i n t o   o u t p u t   f i l e   * / 
         d c l   U N L I M I T E D 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( - 1 ) ; 
         d c l   v o l i d 	       c h a r   ( 2 0 )   v a r ; 	 / *   t a p e   l a b e l   v o l u m e   I D   * / 
         d c l   v o l _ f i l e _ c t 	       f i x e d   b i n ; 	 / *   n u m b e r   o f   f i l e s   o n   a   t a p e   v o l u m e   * / 
         d c l   w h e e l _ d o n e 	       b i t   ( 3 6 ) ; 	 / *   w h i c h   w h e e l s   h a v e   b e e n   p r o c e s s e d     * / 
         d c l   w h e e l _ n e e d 	       b i t   ( 3 6 ) ; 	 / *   w h i c h   w h e e l s   h a v e   b e e n   r e q u e s t e d     * / 
 
         d c l   ( 	 	 	 	 / *   p a g e   l i s t   v a l u e   t y p e s   * / 
                 N E G _ R E L 	       i n i t   ( " - " ) , 	 / *   $ - v a l u e 	 	               * / 
                 P O S _ R E L 	       i n i t   ( " + " ) , 	 / *   + v a l u e 	 	 	               * / 
                 A B S 	       i n i t   ( " x " ) , 	 / *   v a l u e 	 	 	               * / 
                 S E A R C H _ I D 	       i n i t   ( "   " ) 	 / *   " P a g e N o   s t r i n g "   * / 
                 ) 	 	 	 	 / *   s e a r c h   f o r   p a g e   i d 	               * / 
 	 	       c h a r   ( 1 )   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t ) ; 
 
         d c l   e r r o r _ t a b l e _ $ e n d _ o f _ i n f o 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ u n i m p l e m e n t e d _ v e r s i o n 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
         d c l   ( a d d r ,   a d d r e l ,   a f t e r ,   b e f o r e ,   c h a r ,   c o d e p t r ,   c o l l a t e ,   c o n v e r t ,   d e c , 
                 d i v i d e ,   h b o u n d ,   i n d e x ,   l e n g t h ,   l t r i m ,   m i n ,   m a x ,   m o d ,   n u l l ,   r t r i m ,   s i z e , 
                 s t r i n g ,   s u b s t r ,   u n s p e c ,   v e r i f y ) 
 	 	       b u i l t i n ; 
 
         d c l   ( c l e a n u p ,   p c o _ e r r o r ,   q u i t ) 
 	 	       c o n d i t i o n ; 
 
         d c l   c o m _ e r r _ 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   c o m m a n d _ q u e r y _   e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   c o n t i n u e _ t o _ s i g n a l _ 
 	 	       e n t r y   ( f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   c u _ $ a r g _ c o u n t     e n t r y   ( f i x e d   b i n ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   c u _ $ a r g _ p t r 	       e n t r y   ( f i x e d   b i n ,   p t r ,   f i x e d   b i n   ( 2 1 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   d u m p _ s e g m e n t _     e n t r y   ( p t r ,   p t r ,   f i x e d   b i n ,   f i x e d   b i n ,   f i x e d   b i n , 
 	 	       b i t   ( * ) ) ; 
         d c l   h c s _ $ m a k e _ p t r     e n t r y   ( p t r ,   c h a r   ( * ) ,   c h a r   ( * ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   g e t _ t e m p _ s e g m e n t s _ 
 	 	       e n t r y   ( c h a r   ( * ) ,   ( * )   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ a t t a c h _ n a m e 
 	 	       e n t r y   ( c h a r   ( * ) ,   p t r ,   c h a r   ( * ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ c l o s e 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ d e t a c h _ i o c b 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ o p e n 	       e n t r y   ( p t r ,   f i x e d   b i n ,   b i t   ( 1 )   a l i g n e d ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ p u t _ c h a r s   e n t r y   ( p t r ,   p t r ,   f i x e d   ( 2 1 ) ,   f i x e d   ( 3 5 ) ) ; 
         d c l   i o x _ $ r e a d _ r e c o r d 
 	 	       e n t r y   ( p t r ,   p t r ,   f i x e d   b i n   ( 2 1 ) ,   f i x e d   b i n   ( 2 1 ) , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
 % p a g e ; 
 / *   I N I T I A L I Z E 	 	 	 	 	 	               * / 
         c a l l   c u _ $ a r g _ c o u n t   ( a r g c t ,   c o d e ) ; 	 / *   c h e c k   t h e   c a l l 	 	               * / 
         i f   c o d e   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( c o d e ,   m e ) ; 
                 r e t u r n ; 
             e n d ; 
 
         i f   a r g c t   =   0 	 	 	 / *   s h o w   u s a g e   m e s s a g e   * / 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( 0 ,   m e , 
 	       " P r o p e r   u s a g e   i s :   ^ a   "   | |   " p a t h s   { - c o n t r o l _ a r g s } " ,   m e ) ; 
                 r e t u r n ; 
             e n d ; 
 
 / *   p r e s e t   s t u f f   t o u c h e d   b y   c l e a n           * / 
         u n s p e c   ( s w s )   =   " 0 " b ; 	 	 / *   c l e a r   a l l   s w i t c h e s   * / 
         d e v i c e _ c l e a n u p   =   " " ; 
         t e m p s e g s   ( * ) ,   i n p u t _ i o c b p ,   t a p e _ i o c b p   =   n u l l   ( ) ; 
 	 	 	 	 / *   g e t   t e m p   s e g s 	               * / 
         c a l l   g e t _ t e m p _ s e g m e n t s _   ( m e ,   t e m p s e g s ,   c o d e ) ; 
         i f   c o d e   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " G e t t i n g   t e m p   s e g m e n t s . " ) ; 
                 g o t o   f i n i s h ; 	 	 / *   c l e a n u p   d o n e   a t   t h i s   l a b e l 	               * / 
             e n d ; 
 
         q u e r y _ i n f o . v e r s i o n   =   2 ; 	 	 / *   s e t   u p   i n   c a s e   q u e r y   n e e d e d               * / 
         q u e r y _ i n f o . s u p p r e s s _ s p a c i n g   =   " 1 " b ; 
         q u e r y _ i n f o . y e s _ o r _ n o _ s w   =   " 1 " b ; 
 
         f i l e h e a d e r _ p t r ,   r e c o r d _ p t r   =   t e m p s e g s   ( 1 ) ; 
 	 	 	 	 / *   b u i l d   a r g _ l i s t   a r r a y   i n   t e m p s e g s   ( 5 )   * / 
 	 	 	 	 / *   t h e   l i s t   i s   s t o r e d   a s i d e   b e c a u s e   * / 
 	 	 	 	 / *   t h e   c o n t r o l   f i l e   f e a t u r e   w i l l   * / 
 	 	 	 	 / *   c h a n g e / a u g m e n t   t h e   c o n t r o l   a r g s   * / 
         d o   a r g n o   =   1   t o   a r g c t ; 	 	 / *   f o r   i n d i v i d u a l   i n p u t   f i l e s   * / 
             c a l l   c u _ $ a r g _ p t r   ( a r g n o ,   a r g p ,   a r g l ,   c o d e ) ; 
             a r g _ l i s t . a r g   ( a r g n o )   =   a r g ; 
         e n d ; 
 
 / *   p r e s e t   s t u f f   t o u c h e d   b y   p r o c _ a r g s   * / 
         f i l e _ e n t r y _ b a s e _ p t r   ( * )   =   n u l l   ( ) ; 
         m a x _ r e c o r d s ,   c t l _ f i l e _ c o u n t ,   g i v e n _ f i l e _ c o u n t   =   0 ; 
         m o d e _ a r g ,   m o d e ,   v o l i d   =   " " ; 
 
         c a l l   p r o c _ a r g s ; 	 	 	 / *   p r o c e s s   t h e   c o m m a n d   a r g s 	               * / 
 
         i f   e r r o r _ s w 	 	 	 / *   a n y   e r r o r s   p r o c e s s i n g   a r g s ?               * / 
         t h e n   r e t u r n ; 
 
         i f   g i v e n _ f i l e _ c o u n t   =   0 	 	 / *   c h e c k   f i l e   c o u n t   * / 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( 0 ,   m e ,   " N o   c o m p o u t s   s p e c i f i e d   t o   p r o c e s s " ) ; 
                 r e t u r n ; 
             e n d ; 
 
 / *   f i n i s h   u p   i n i t i a l i z a t i o n 	               * / 
         p r e f a c e ,   t e x t _ c o n s   ( * ) , 	 	 / * d i s p l a y _ r t n , * / 
                   l e a d e r ,   s e t u p   =   " " ; 
         p a c k _ c t   =   0 ; 
         s k i p _ p r e f _ s w   =   " 1 " b ; 
         m a x _ t a p e _ f i l e s   =   U N L I M I T E D ; 
         m a x _ o u t r e c s ,   r e c o r d _ b y t e s   =   9 9 9 9 9 ; 
         o u t p u t _ m e d i u m   =   O N L I N E ; 
 
         i f   v o l i d   =   " " 	 	 	 / *   - v o l u m e   i s   a l l o w e d   o n l y   i n   c o m         * / 
         t h e n   v o l i d   =   N O V O L ; 	 	 / *     l i n e ,   n o t   c o n t r o l   f i l e 	               * / 
 
         i f   n o b e l l _ s w 
         t h e n   s t o p _ s i g n a l   =   P A D H T   | |   P A D H T   | |   C R ; 
         e l s e   s t o p _ s i g n a l   =   B E L H T   | |   B E L H T   | |   C R ; 
 
 / * * * *   L E A V E   T H I S   I N   F O R   F U T U R E   I M P L E M E N T A T I O N   * / 
 / *             d o   i i   =   1   t o   c t l _ f i l e _ c o u n t ; 	 / *   p r o c e s s   a n y   c t l _ f i l e ' s 	               * / 
 / *                   c a l l   i o a _   ( " c o n t r o l   f i l e   n o t   y e t   h a n d l e d .   ^ a " ,   c t l _ f i l e   ( i i ) ) ; 
 / *             e n d ; * / 
 
         h e a d e r _ o u t _ p t r   =   a d d r   ( f i l e _ e n t r y . n e x t ) ; 
         p a g e l i s t . f i l e _ c o u n t   =   g i v e n _ f i l e _ c o u n t ; 
         f i l n o ,   p a g e l i s t . p a g e _ c o u n t   =   0 ; 
 
 / *   m a k e   a l l   t h e   e n t r y p o i n t s   n e e d e d   a r e   k n o w n   ( w h e n   P C O   n o t   i n   s e a r c h   r u l e s )   * / 
 h e r e : 
         c a l l   h c s _ $ m a k e _ p t r   ( c o d e p t r   ( h e r e ) ,   " c o m p o u t " ,   " c o m p o u t " ,   n u l l   ( ) ,   0 ) ; 
         c a l l   h c s _ $ m a k e _ p t r   ( c o d e p t r   ( h e r e ) ,   " c o m p a s k " ,   " c o m p a s k " ,   n u l l   ( ) ,   0 ) ; 
 
         o n   c o n d i t i o n   ( c l e a n u p )   c a l l   c l e a n ; 
 % p a g e ; 
 / *   g o   t h r u   e v e r y t h i n g ,   m a k i n g   s u r e   a l l   a s k e d   f o r   e x i s t s 	 	               * / 
         a f _ d a t a _ p t r   =   c o n t e n t s _ p t r ; 	 / *   b o r r o w   t h e   s e g m e n t   f o r   a   w h i l e         * / 
         a f _ d a t a . c o u n t   =   0 ; 
 
         i f   d t _ s w 
         t h e n   c a l l   i o a _   ( " F I L E   L I S T   * * * " ) ; 
 
 f i l e _ l o o p _ 1 : 	 	 	 / *   f o r   a l l   f i l e s   g i v e n   * / 
         d o   f i l e _ e n t r y _ p t r   =   f i l e _ e n t r y _ b a s e _ p t r   ( 1 )   r e p e a t   ( f i l e _ e n t r y . l i n k ) 
                   w h i l e   ( f i l e _ e n t r y _ p t r   ^ =   n u l l   ( ) ) ; 
 
             i f   o p e n _ c o m p o u t   ( ) 	 	 / *   o p e n   c o m p o u t   a n d   g e t   f i l e   h e a d e r   * / 
             t h e n 	 	 	 / *   r e t u r n s   " 1 " b   i f   o p e n   i s   O K   * / 
                 d o ; 
 	 a f _ d a t a . c o m p o u t   =   r t r i m   ( f i l e _ e n t r y . e n a m e ,   " . c o m p o u t " ) ; 
 	 f i l n o   =   f i l n o   +   1 ; 
 	 p a g e l i s t . f i l e . n a m e   ( f i l n o )   =   f i l e _ e n t r y . f i l e ; 
 	 p a g e l i s t . f i l e   ( f i l n o ) . f r o m   =   p a g e l i s t . p a g e _ c o u n t   +   1 ; 
 
 	 i f   d e v i c e _ c l e a n u p   =   " " 	 / *   e x t r a c t   d e v i c e   c l e a n u p   s t r i n g   * / 
 	 t h e n 
 	     d o ; 
 	         l _ c l e a n u p   =   f i l e h e a d e r . c l e a n u p _ l e n g ; 
 	         d e v i c e _ c l e a n u p   =   f i l e h e a d e r . c l e a n u p ; 
 	     e n d ; 
 
 	 i f   d e b u g _ s w 
 	 t h e n   c a l l   i o a _   ( 
 	 	 " h e a d e r :   r e c o r d _ l e n = ^ i ^ / V e r s i o n :   ^ i   D e v i c e :   ^ a / ^ a / ^ a   " 
 	 	 | |   " M a x F i l e s :   ^ i ;   M a x P a g e s :   ^ i ; " ,   r e c o r d _ l e n , 
 	 	 f i l e h e a d e r . v e r s i o n ,   f i l e h e a d e r . d e v i c e _ c l a s s , 
 	 	 f i l e h e a d e r . d e v i c e _ n a m e ,   f i l e h e a d e r . d e v i c e ,   m a x _ t a p e _ f i l e s , 
 	 	 f i l e h e a d e r . m a x _ p a g e s ) ; 
 
 	 i f   ^ t a b l e _ s w 
 	 t h e n 
 	     d o ; 
 	         c a l l   p r o c _ c o m m e n t ; 
 	         i f   d e b u g _ s w 
 	         t h e n   c a l l   i o a _   ( " C l e a n u p :   ^ a " , 
 	 	         c o m p _ u t i l _ $ d i s p l a y   ( 
 	 	         s u b s t r   ( d e v i c e _ c l e a n u p ,   1 ,   l _ c l e a n u p ) ,   0 ,   " 0 " b ) ) ; 
 	     e n d ; 
 
 	 d o n e   =   " 0 " b ; 	 	 / *   s e t   u p   f o r   f i l e   p r o c e s s i n g   * / 
 	 r e c o r d _ c o u n t   =   0 ; 
 	 i f   ^ c o m m e n t _ s w   &   ^ e r r o r _ s w 	 / *   i f   n o t   j u s t   p r i n t i n g   C o m m e n t :   a n d   * / 
 	 t h e n 	 	 	 / *   t h e r e   h a v e   b e e n   n o   e r r o r s   * / 
 	     d o   w h i l e   ( ^ d o n e ) ; 
 	         c a l l 	 	 	 / *   r e a d   a   r e c o r d   * / 
 	                   i o x _ $ r e a d _ r e c o r d   ( i n p u t _ i o c b p ,   r e c o r d _ p t r ,   r e c o r d _ l e n , 
 	                   r e c o r d _ l e n ,   c o d e ) ; 	 / * * / 
 	 	 	 	 / *   E O F ?   * / 
 	         i f   ( c o d e   =   e r r o r _ t a b l e _ $ e n d _ o f _ i n f o ) 
 	         t h e n   d o n e   =   " 1 " b ; 
 
 	         e l s e   i f   ( c o d e   ^ =   0 ) 	 / *   r e a d   e r r o r ?   * / 
 	         t h e n 
 	             d o ; 
 	                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " R e a d i n g   ^ a " ,   f i l e _ e n t r y . f i l e ) ; 
 	                 d o n e   =   " 1 " b ; 
 	             e n d ; 
 
 	         e l s e 	 	 	 / *   w e   h a v e   a   v a l i d   r e c o r d   * / 
 	             d o ; 	 	 	 / *   c o u n t   &   c o p y   s t u f f   i n t o   p a g e l i s t   * / 
 	                 r e c o r d _ c o u n t   =   r e c o r d _ c o u n t   +   1 ; 
 	                 p a g e l i s t . f i l e   ( f i l n o ) . t o ,   p a g e l i s t . p a g e _ c o u n t   = 
 	 	       p a g e l i s t . p a g e _ c o u n t   +   1 ; 
 	                 p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . i d   =   r e c o r d . p a g e i d ; 
 	                 p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . f i l e _ n o   =   f i l n o ; 
 	                 p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . s e q _ n o   =   r e c o r d _ c o u n t ; 
 	                 p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . c h a n g e d   =   r e c o r d . c h a n g e d ; 
 	                 p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . f r o n t   =   r e c o r d . f r o n t ; 
 	                 p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . b l a n k   =   r e c o r d . b l a n k ; 
 	                 p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . s e l e c t , 
 	 	       p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . n o _ f r o n t , 
 	 	       p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . n o _ b a c k   =   " 0 " b ; 
 
 	                 i f   ( r e c o r d _ c o u n t   >   1 ) 
 	                 t h e n   i f   ( p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . f r o n t 
 	 	                 =   p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t   -   1 ) . f r o n t ) 
 	 	       t h e n   i f   p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . f r o n t 
 	 	                 t h e n   p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t   -   1 ) 
 	 	 	                 . n o _ b a c k   =   " 1 " b ; 
 	 	                 e l s e   p a g e l i s t . p a g e   ( p a g e l i s t . p a g e _ c o u n t ) . n o _ f r o n t   = 
 	 	 	                 " 1 " b ; 
 	             e n d ; 
 	     e n d ; 
 
 	 i f   d t _ s w   &   f i l n o   >   0 
 	 t h e n   c a l l   i o a _   ( " p a g e n d x = ^ i : ^ i   f i l e = ^ a " ,   p a g e l i s t . f i l e   ( f i l n o ) . f r o m , 
 	 	 p a g e l i s t . f i l e   ( f i l n o ) . t o ,   p a g e l i s t . f i l e   ( f i l n o ) . n a m e ) ; 
 
 	 c a l l   c l o s e _ c o m p o u t   ( ) ; 	 / *   c l o s e   t h e   c o m p o u t   * / 
                 e n d ; 
 
             e l s e   f i l e _ e n t r y . f i l e   =   " " ; 
         e n d   f i l e _ l o o p _ 1 ; 
 % p a g e ; 
         i f   f i l n o   =   0 	 	 	 / *   n o   f i l e s   t o   p r o c e s s   * / 
         t h e n   r e t u r n ; 
 
         f i l n o   =   0 ; 	 	 	 / *   n o w ,   w e   k n o w   e v e r y t h i n g   w e   n e e d   * / 
 f i l e _ l o o p _ 2 : 	 	 	 / *   s o   p r o c e s s   t h e   f i l e s   * / 
         d o   f i l e _ e n t r y _ p t r   =   f i l e _ e n t r y _ b a s e _ p t r   ( 1 )   r e p e a t   ( f i l e _ e n t r y . l i n k ) 
                   w h i l e   ( f i l e _ e n t r y _ p t r   ^ =   n u l l   ( ) ) ; 
 
             f i l n o   =   f i l n o   +   1 ; 	 	 / *   c o u n t   a   f i l e   * / 
             r e c o r d _ c o u n t   =   1 ; 	 	 / *   a n d   s e t   u p   f o r   p r o c e s s i n g   * / 
             p a g e l i s t _ b a s e   =   p a g e l i s t . f i l e   ( f i l n o ) . f r o m   -   1 ; 
             p a g e l i s t _ l a s t   =   p a g e l i s t . f i l e . t o   ( f i l n o )   -   p a g e l i s t _ b a s e ; 
 
             i f   f i l e _ e n t r y . f i l e   ^ =   " " 	 / *   i f   f i l e   h a s n t   b e e n   d i s c a r d e d   * / 
             t h e n 
 p a g e _ s e l e c t _ l o o p : 	 	 	 / *   g o   t h r u   t h e   p a g e s   s e l e c t e d   * / 
                 d o   i p a g e   =   1   t o   f i l e _ e n t r y . p a g e _ s e l _ c t ; 
 	 	 	 	 / *   r e s e t t i n g   t o   ! 0 ? 	 	               * / 
 	 i f   ( f i l e _ e n t r y . f r o m . s i g n   ( i p a g e )   =   A B S ) 
 	           &   ( f i l e _ e n t r y . f r o m . n u m   ( i p a g e )   =   0 ) 
 	 t h e n 
 	     d o ; 
 	         r e c o r d _ c o u n t   =   0 ; 
 	         i p a g e   =   i p a g e   +   1 ; 
 	         g o t o   e n d _ p a g e _ s e l e c t _ l o o p ; 
 	     e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   d o   a   p a g e   s e l e c t   p a i r   * / 
 	 d o   f r o m _ t o _ p t r   =   a d d r   ( f i l e _ e n t r y . f r o m   ( i p a g e ) ) , 
 	           a d d r   ( f i l e _ e n t r y . t o   ( i p a g e ) ) ; 
 
 	     i f   f r o m _ t o . s i g n   =   N E G _ R E L 	 / *   i s   t h i s   a   $ - n   t y p e ?               * / 
 	     t h e n 
 	         d o ; 
 	             p a g e _ s e l e c t e d   =   p a g e l i s t _ l a s t   -   f r o m _ t o . n u m ; 
 
 	             i f   ( p a g e _ s e l e c t e d   <   0 ) 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m m a n d _ q u e r y _   ( a d d r   ( q u e r y _ i n f o ) ,   a n s w e r ,   m e , 
 	 	           " F i l e   ^ a :   ^ a   <   B O F .   U s e   f i r s t   p a g e ? " ,   f i l e _ e n t r y . f i l e , 
 	 	           f r o m _ t o . i d ) ; 
 	 	 i f   ( a n s w e r   ^ =   " y e s " ) 
 	 	 t h e n   e r r o r _ s w   =   " 1 " b ; 
 	 	 p a g e _ s e l e c t e d   =   1 ; 
 	                 e n d ; 
 	         e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   n e e d   t o   s e a r c h   f o r   p a g e   i d ?   * / 
 	     e l s e   i f   ( f r o m _ t o . s i g n   =   S E A R C H _ I D ) 
 	     t h e n 
 	         d o ; 
 	             p a g e _ s e l e c t e d   =   r e c o r d _ c o u n t ; 
 	             d o   j   =   r e c o r d _ c o u n t   +   p a g e l i s t _ b a s e 
 	 	   t o   p a g e l i s t _ l a s t   +   p a g e l i s t _ b a s e 
 	 	   w h i l e   ( f r o m _ t o . i d   ^ =   p a g e l i s t . i d   ( j ) ) ; 
 	             e n d ; 
 
 	             i f   j   >   p a g e l i s t _ l a s t   +   p a g e l i s t _ b a s e 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m _ e r r _   ( 0 ,   m e ,   " P a g e   " " ^ a " "   n o t   f o u n d   i n   ^ a " , 
 	 	           f r o m _ t o . i d ,   f i l e _ e n t r y . f i l e ) ; 
 	 	 e r r o r _ s w   =   " 1 " b ; 
 	                 e n d ; 
 
 	             e l s e   p a g e _ s e l e c t e d   =   j   -   p a g e l i s t _ b a s e ; 
 	         e n d ; 
 
 	     e l s e 
 	         d o ; 
 	             p a g e _ s e l e c t e d   =   f r o m _ t o . n u m ; 
 	 	 	 	 / *   i s   t h i s   + n   f o r m   * / 
 	             i f   ( f r o m _ t o . s i g n   =   P O S _ R E L ) 
 	             t h e n   p a g e _ s e l e c t e d   =   p a g e _ s e l e c t e d   +   r e c o r d _ c o u n t ; 
 	             i f   ( p a g e _ s e l e c t e d   >   p a g e l i s t _ l a s t ) 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m m a n d _ q u e r y _   ( a d d r   ( q u e r y _ i n f o ) ,   a n s w e r ,   m e , 
 	 	           " F i l e   ^ a :   ^ a   >   E O F .   U s e   l a s t   p a g e ? " ,   f i l e _ e n t r y . f i l e , 
 	 	           f r o m _ t o . i d ) ; 
 	 	 i f   ( a n s w e r   ^ =   " y e s " ) 
 	 	 t h e n   e r r o r _ s w   =   " 1 " b ; 
 	 	 p a g e _ s e l e c t e d   =   p a g e l i s t _ l a s t   -   1 ; 
 	                 e n d ; 
 	         e n d ; 
 
 	     f r o m _ t o . n u m ,   r e c o r d _ c o u n t   =   p a g e _ s e l e c t e d ; 
 	     f r o m _ t o . s i g n   =   A B S ; 	 / *   n o w   w e   k n o w   w h e r e   w e   a r e 	               * / 
 	 e n d ; 
 
 	 i f   ( f i l e _ e n t r y . f r o m . n u m   ( i p a g e )   >   f i l e _ e n t r y . t o . n u m   ( i p a g e ) ) 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m m a n d _ q u e r y _   ( a d d r   ( q u e r y _ i n f o ) ,   a n s w e r ,   m e , 
 	                   " F i l e   ^ a :   f r o m _ v a l u e   " " ^ a " "   ( ! ^ i )   >   t o _ v a l u e   " " ^ a " "   ( ! ^ i ) . 
 	 D o   y o u   w i s h   t o   i g n o r e   s p e c i f i c a t i o n ? " ,   f i l e _ e n t r y . f i l e , 
 	                   f i l e _ e n t r y . f r o m . i d   ( i p a g e ) ,   f i l e _ e n t r y . f r o m . n u m   ( i p a g e ) , 
 	                   f i l e _ e n t r y . t o . i d   ( i p a g e ) ,   f i l e _ e n t r y . t o . n u m   ( i p a g e ) ) ; 
 	         i f   ( a n s w e r   =   " n o " ) 
 	         t h e n   e r r o r _ s w   =   " 1 " b ; 
 	         f i l e _ e n t r y . t o . n u m   ( i p a g e ) ,   f i l e _ e n t r y . f r o m . n u m   ( i p a g e )   =   0 ; 
 	     e n d ; 
 
 	 i f   f i l e _ e n t r y . p g c 	 	 / *   l o o k i n g   f o r   c h a n g e d   p a g e s ? 	               * / 
 	 t h e n 
 	     d o ; 
 
 / *   o b v e r s e   n e e d s   t o   b e   h a n d l e d   h e r e ,   t o o . 	 	 	               * / 
 
 	         d o   p a g e _ s e l e c t e d   =   f i l e _ e n t r y . f r o m . n u m   ( i p a g e )   +   p a g e l i s t _ b a s e 
 	                   t o   f i l e _ e n t r y . t o . n u m   ( i p a g e )   +   p a g e l i s t _ b a s e ; 
 	             i f   p a g e l i s t . c h a n g e d   ( p a g e _ s e l e c t e d ) 
 	 	   |   p a g e l i s t . o b v _ c h a n g e d   ( p a g e _ s e l e c t e d ) 
 	             t h e n 
 	                 d o ; 
 	 	 p a g e l i s t . s e l e c t   ( p a g e _ s e l e c t e d )   =   " 1 " b ; 
 	 	 f i l e _ e n t r y . p a g e _ c o u n t   =   f i l e _ e n t r y . p a g e _ c o u n t   +   1 ; 
 	                 e n d ; 
 	         e n d ; 
 	     e n d ; 
 
 	 e l s e 
 	     d o   p a g e _ s e l e c t e d   =   f i l e _ e n t r y . f r o m . n u m   ( i p a g e )   +   p a g e l i s t _ b a s e 
 	               t o   f i l e _ e n t r y . t o . n u m   ( i p a g e )   +   p a g e l i s t _ b a s e ; 
 	         p a g e l i s t . s e l e c t   ( p a g e _ s e l e c t e d )   =   " 1 " b ; 
 	         f i l e _ e n t r y . p a g e _ c o u n t   =   f i l e _ e n t r y . p a g e _ c o u n t   +   1 ; 
 	     e n d ; 
 
 e n d _ p a g e _ s e l e c t _ l o o p : 
                 e n d   p a g e _ s e l e c t _ l o o p ; 
         e n d   f i l e _ l o o p _ 2 ; 
 
         i f   d t _ s w 
         t h e n 
             d o ; 
                 c a l l   i o a _   ( " S T A R T   * * * " ) ; 
 
                 f i l n o   =   0 ; 
                 d o   f i l e _ e n t r y _ p t r   =   f i l e _ e n t r y _ b a s e _ p t r   ( 1 ) 
 	       r e p e a t   ( f i l e _ e n t r y . l i n k )   w h i l e   ( f i l e _ e n t r y _ p t r   ^ =   n u l l   ( ) ) ; 
 
 	 f i l n o   =   f i l n o   +   1 ; 
 	 c a l l   i o a _   ( " p a g e n d x = ^ i : ^ i   f i l e = ^ a " ,   p a g e l i s t . f i l e   ( f i l n o ) . f r o m , 
 	           p a g e l i s t . f i l e   ( f i l n o ) . t o ,   p a g e l i s t . f i l e   ( f i l n o ) . n a m e ) ; 
 
 	 d o   i   =   p a g e l i s t . f i l e   ( f i l n o ) . f r o m   t o   p a g e l i s t . f i l e   ( f i l n o ) . t o ; 
 	     c a l l   i o a _   ( " ^ [ * ^ ;   ^ ] ^ 5 i   " " ^ a " " ^ [   C H A N G E D ^ ] ^ [   F R O N T ^ ] ^ [   B L A N K ^ ] " , 
 	               p a g e l i s t . p a g e   ( i ) . s e l e c t ,   i ,   p a g e l i s t . p a g e   ( i ) . i d , 
 	               p a g e l i s t . p a g e   ( i ) . c h a n g e d ,   p a g e l i s t . p a g e   ( i ) . f r o n t , 
 	               p a g e l i s t . p a g e   ( i ) . b l a n k ) ; 
 	 e n d ; 
                 e n d ; 
             e n d ; 
 
         a f _ d a t a _ p t r   =   n u l l   ( ) ; 	 	 / *   g i v e   b a c k   t h e   s e g   w e   b o r r o w e d   * / 
 
         i f   c o m m e n t _ s w   |   s e t u p _ s w 
         t h e n   g o t o   f i n i s h ; 
 
         i f   ( m a x _ r e c o r d s   ^ =   0 ) 
         t h e n   m a x _ o u t r e c s   =   m a x _ r e c o r d s ; 
 
         i f   ( o u t p u t _ m e d i u m   =   P U N C H ) 
         t h e n 
             d o ; 
                 c a l l   b u i l d _ c o n t e n t s ; 
 
                 i f   ^ t a b l e _ s w 
                 t h e n   c a l l   i o a _   ( " I n f o r m a t i o n   t o   b e   p u n c h e d : ^ / ^ a " ,   c o n t e n t s ) ; 
 
                 s k i p _ p r e f _ s w   =   " 0 " b ; 
 
                 i f   ( m o d e   =   " p u n c h   6 " ) 
                 t h e n 
 	 d o ; 
 	     i f   d e b u g _ s w   |   d i s p l a y _ s w 
 	     t h e n   p u t _ o u t   =   p u t _ o n l i n e ; 
 	     e l s e   p u t _ o u t   =   p u t _ p u n c h ; 
 	 e n d ; 
 
                 e l s e 
 	 d o ; 
 n o _ h a n d l e : 
 	     c a l l   c o m _ e r r _   ( 0 ,   m e ,   " D o n t   k n o w   h o w   t o   h a n d l e   " " ^ a " " " ,   m o d e ) ; 
 	     e r r o r _ s w   =   " 1 " b ; 
 	 e n d ; 
             e n d ; 
 
         e l s e   i f   ( o u t p u t _ m e d i u m   =   T A P E ) 
         t h e n 
             d o ; 
                 c a l l   b u i l d _ c o n t e n t s ; 
 
                 i f   ^ t a b l e _ s w 
                 t h e n   c a l l   i o a _   ( " ^ / C o n t e n t s   f i l e : ^ / ^ 2 0 ( - ^ ) ^ / ^ a ^ 2 0 ( - ^ ) " ,   c o n t e n t s ) ; 
 
                 i f   c o n t e n t s _ s e g _ s w 
                 t h e n 
 	 b e g i n ; 
 	     d c l   h c s _ $ m a k e _ s e g 	   e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) , 
 	 	 	   f i x e d   b i n   ( 5 ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
 	     d c l   g e t _ w d i r _ 	   e n t r y   ( )   r e t u r n s   ( c h a r   ( 1 6 8 ) ) ; 
 	     d c l   s e g _ p 	   p t r ; 
 	     d c l   s e g 	 	   c h a r   ( l e n g t h   ( c o n t e n t s ) )   b a s e d   ( s e g _ p ) ; 
 	     d c l   h c s _ $ t r u n c a t e _ s e g 
 	 	 	   e n t r y   ( p t r ,   f i x e d   b i n   ( 1 9 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
 	     d c l   h c s _ $ t e r m i n a t e _ n o n a m e 
 	 	 	   e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
 	     d c l   h c s _ $ s e t _ b c _ s e g 
 	 	 	   e n t r y   ( p t r ,   f i x e d   b i n   ( 2 4 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
 
 	     c a l l   h c s _ $ m a k e _ s e g   ( g e t _ w d i r _   ( ) ,   v o l i d   | |   " . c o n t e n t s " ,   " " ,   0 1 0 1 0 b , 
 	               s e g _ p ,   c o d e ) ; 
 	     i f   ( s e g _ p   =   n u l l   ( ) ) 
 	     t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ a > ^ a . c o n t e n t s " ,   g e t _ w d i r _   ( ) , 
 	 	     v o l i d ) ; 
 
 	     e l s e 
 	         d o ; 
 	             c a l l   h c s _ $ t r u n c a t e _ s e g   ( s e g _ p , 
 	 	   d i v i d e   ( l e n g t h   ( c o n t e n t s ) ,   4 ,   1 9 ,   0 ) ,   c o d e ) ; 
 	             s e g   =   c o n t e n t s ; 
 	             c a l l   h c s _ $ s e t _ b c _ s e g   ( s e g _ p ,   l e n g t h   ( c o n t e n t s )   *   9 ,   c o d e ) ; 
 	             c a l l   h c s _ $ t e r m i n a t e _ n o n a m e   ( s e g _ p ,   c o d e ) ; 
 	         e n d ; 
 	 e n d ; 
 
                 s k i p _ p r e f _ s w   =   " 0 " b ; 
                 v o l _ f i l e _ c t   =   0 ; 
 
                 i f   d e b u g _ s w   |   d i s p l a y _ s w 
                 t h e n   p u t _ o u t   =   p u t _ o n l i n e ; 
                 e l s e   p u t _ o u t   =   p u t _ t a p e ; 
             e n d ; 
 
         e l s e 
             d o ; 
                 o u t p u t _ m e d i u m   =   O N L I N E ; 
 
                 i f   d e b u g _ s w   |   d i s p l a y _ s w 
                 t h e n   p u t _ o u t   =   p u t _ o n l i n e ; 
             e n d ; 
 
         i f   e r r o r _ s w 
         t h e n 
             d o ; 
                 c a l l   i o a _   ( " A n   e r r o r   h a s   o c c u r r e d ,   n o   o u t p u t   w i l l   b e   p r o d u c e d . " ) ; 
 
                 i f   d t _ s w 
                 t h e n   s i g n a l   c o n d i t i o n   ( p c o _ e r r o r ) ; 
 
                 g o t o   f i n i s h ; 
             e n d ; 
 
         i f   ( d e v i c e _ c l e a n u p   ^ =   " " )   &   ( o u t p u t _ m e d i u m   =   O N L I N E )   &   ^ d e b u g _ s w 
                   &   ^ d i s p l a y _ s w 	 	 / *   c l e a n u p   i f   Q U I T   d u r i n g   O N L I N E   * / 
         t h e n   o n   c o n d i t i o n   ( q u i t ) 
 	   b e g i n ; 
 	       c a l l   s e t _ r a w o ; 
 	       c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ u s e r _ o u t p u t , 
 	                 a d d r e l   ( a d d r   ( d e v i c e _ c l e a n u p ) ,   1 ) ,   l e n g t h   ( d e v i c e _ c l e a n u p ) , 
 	                 c o d e ) ; 
 	       c a l l   r e s e t _ r a w o ; 
 	       c a l l   c o n t i n u e _ t o _ s i g n a l _   ( c o d e ) ; 
 	   e n d ; 
 % p a g e ; 
 / *   N o w   a l l   v a l i d i t y   c h e c k i n g   i s   d o n e ;   g o   t h r u   t h e   l i s t   a n d   g e t   a l l   t h e               * / 
 / *     p a g e s   w a n t e d . 	 	 	 	 	 	               * / 
 
         p r e f a c e   =   " " ; 
         f i l n o   =   1 ; 
 
 f i l e _ l o o p _ 3 : 
         d o   f i l e _ e n t r y _ p t r   =   f i l e _ e n t r y _ b a s e _ p t r   ( 1 )   r e p e a t   ( f i l e _ e n t r y . l i n k ) 
                   w h i l e   ( f i l e _ e n t r y _ p t r   ^ =   n u l l   ( ) ) ; 
 
             i f   f i l e _ e n t r y . f i l e   =   " " 	 	 / *   i f   f i l e   h a s   b e e n   d i s c a r d e d   * / 
             t h e n   g o t o   e n d _ f i l e _ l o o p _ 3 ; 
 
             i f   ^ o p e n _ c o m p o u t   ( ) 	 	 / *   c a n t   o p e n   c o m p o u t ?   s k i p   i t   * / 
             t h e n   g o t o   e n d _ f i l e _ l o o p _ 3 ; 
 
             i f   d u m p _ s w   &   h e a d e r _ s w 	 	 / *   i f   f i l e   i s   b e i n g   d u m p e d   * / 
             t h e n 
                 d o ; 
 	 c a l l 	 	 	 / *   h e a d e r   l a b e l   * / 
 	           i o a _   ( " ^ / R e c o r d   0   ^ i ( ^ o ) 8   b y t e s " ,   r e c o r d _ l e n ,   r e c o r d _ l e n ) ; 
 
 	 i f   ^ b r i e f _ s w 
 	 t h e n   c a l l 	 	 	 / *   h e a d e r   c o n t e n t s   * / 
 	 	 d u m p _ s e g m e n t _   ( i o x _ $ u s e r _ o u t p u t ,   f i l e h e a d e r _ p t r ,   0 ,   0 , 
 	 	 d i v i d e   ( r e c o r d _ l e n   +   3 ,   4 ,   1 7 ,   0 ) ,   f o r m a t ) ; 
                 e n d ; 
 
             i f   t a b l e _ s w 	 	 	 / *   m a k i n g   a   t a b l e ?   * / 
             t h e n   c a l l   i o a _   ( " - p a t h n a m e   ^ a   - p a g e s " ,   f i l e _ e n t r y . e n a m e ) ; 
 
             i f   d i s p l a y _ s w   &   ^ b r i e f _ s w 	 / *   d i s p l a y   h e a d e r   * / 
             t h e n   c a l l   i o a _   ( "     * *     F r o m   f i l e :   ^ a " ,   f i l e _ e n t r y . f i l e ) ; 
 	 	 	 	 / *   i f   a c t u a l l y   w r i t i n g   t h e   f i l e   * / 
             i f   ^ ( d i s p l a y _ s w   |   d u m p _ s w   |   t a b l e _ s w ) 
             t h e n   i f   c p w f _ s w   &   f i l e h e a d e r . v e r s i o n   <   f i l e d a t a _ v e r s i o n _ 4 
 	   t h e n 
 	       d o ; 
 	           c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ u n i m p l e m e n t e d _ v e r s i o n ,   m e , 
 	 	 " ^ / ^ 5 x   T h e   - c p w f   o p t i o n   c a n t   b e   u s e d   w i t h   ^ a " , 
 	 	 f i l e _ e n t r y . f i l e ) ; 
 	           g o t o   e n d _ f i l e _ l o o p _ 3 ; 
 	       e n d ; 
 
             i f   f i l e _ e n t r y . w a i t 	 	 / *   w a i t   f o r   a   N L   b e f o r e   s t a r t i n g   * / 
             t h e n   c a l l   s y n c   ( b e g i n _ f i l e ) ; 
 
 b e g i n _ f i l e : 
             w h e e l _ n e e d   =   " 0 " b ; 
 r e p r i n t _ f i l e : 
             p a g e l i s t _ b a s e   =   p a g e l i s t . f i l e   ( f i l n o ) . f r o m   -   1 ; 
             t e x t _ p a g e s ,   r e c o r d _ c o u n t ,   o u t p u t _ t e x t _ l e n   =   0 ; 
             f i r s t _ p r e f _ s w   =   " 1 " b ; 
             d o n e ,   w h e e l _ d o n e   =   " 0 " b ; 
             i p a g e   =   1 ; 
 
 r e c o r d _ l o o p _ 2 : 
             d o   w h i l e   ( ^ d o n e ) ; 	 	 / *   r e a d   a l l   r e c o r d s   i n   t h i s   f i l e   * / 
                 i f   f i l e _ e n t r y . f r o m . n u m   ( i p a g e )   =   0 
                 t h e n 	 	 	 / *   i f   n o   ( m o r e )   p a g e s   f o r   t h i s   f i l e   * / 
 	 d o ; 	 	 	 / *   r e w i n d   i t   * / 
 	     c a l l   i o x _ $ p o s i t i o n   ( i n p u t _ i o c b p ,   B O F ,   0 ,   c o d e ) ; 
 	     g o t o   n e x t _ f i l e ; 
 	 e n d ; 
 
                 r e c o r d _ c o u n t   =   r e c o r d _ c o u n t   +   1 ; / *   c o u n t   t h e   r e c o r d 	               * / 
 	 	 	 	 / *   n e e d   t o   b e   f u r t h e r   d o w n   f i l e             * / 
                 i f   f i l e _ e n t r y . f r o m . n u m   ( i p a g e )   >   r e c o r d _ c o u n t 
                 t h e n 
 	 d o ; 
 	     r e c o r d _ c o u n t   =   f i l e _ e n t r y . f r o m . n u m   ( i p a g e ) ; 
 	     c a l l   i o x _ $ p o s i t i o n   ( i n p u t _ i o c b p ,   B O F ,   0 ,   c o d e ) ; 
 	     i f   c o d e   =   0 
 	     t h e n   c a l l   i o x _ $ p o s i t i o n   ( i n p u t _ i o c b p ,   F S P R E C ,   r e c o r d _ c o u n t ,   c o d e ) ; 
 	 e n d ; 
 
                 i f   c o d e   =   0 
                 t h e n   c a l l   i o x _ $ r e a d _ r e c o r d   ( i n p u t _ i o c b p ,   r e c o r d _ p t r ,   2 6 2 1 4 4 , 
 	                 r e c o r d _ l e n ,   c o d e ) ; 
                 i f   c o d e   ^ =   0 
                 t h e n 
 	 d o ; 
 	     i f   c o d e   ^ =   e r r o r _ t a b l e _ $ e n d _ o f _ i n f o 
 	     t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " R e a d i n g   ^ a " ,   f i l e _ e n t r y . f i l e ) ; 
 	     g o t o   e n d _ f i l e _ l o o p _ 3 ; 
 	 e n d ; 
 
                 i f   f i l e _ e n t r y . p g c   &   r e c o r d . c h a n g e d   |   ^ f i l e _ e n t r y . p g c 
                 t h e n 
 	 d o ; 
 	     i f   d e b u g _ s w 
 	     t h e n   c a l l   i o a _   ( " t e x t :   r e c o r d   ^ i   l e n g t h = ^ i " ,   r e c o r d _ c o u n t , 
 	 	     r e c o r d _ l e n ) ; 	 / * * / 
 	 	 	 	 / *   e r a s e   a n y   t r a i l i n g   g a r b a g e   * / 
 ( n o s t r g ) : 
 	     s u b s t r   ( r a w _ r e c o r d ,   r e c o r d _ l e n   +   1 ,   8 )   =   N U L s ; 
 
 r e p r i n t : 	 	 	 	 / *   c a l c u l a t e   r e c o r d   w o r d   c o u n t               * / 
 	     r e c o r d _ w r d c t   =   d i v i d e   ( r e c o r d _ l e n   +   3 ,   4 ,   1 7 ,   0 ) ; 
 	 	 	 	 / *   a d j u s t   f o r   s i z e   o f   r e c o r d   h e a d e r     * / 
 	     r e c o r d _ h d r c t   =   s i z e   ( r e c o r d )   -   1 ; 
 	     r e c o r d _ w r d c t   =   r e c o r d _ w r d c t   -   r e c o r d _ h d r c t ; 
 
 	     i f   d u m p _ s w 
 	     t h e n 
 	         d o ; 
 	             c a l l   i o a _   ( " ^ / R e c o r d   ^ i   ^ i ( ^ o ) 8   b y t e s " ,   r e c o r d _ c o u n t , 
 	 	   r e c o r d _ l e n ,   r e c o r d _ l e n ) ; 
 
 	             i f   ^ b r i e f _ s w 
 	             t h e n   c a l l   d u m p _ s e g m e n t _   ( i o x _ $ u s e r _ o u t p u t ,   r e c o r d _ p t r ,   0 ,   0 , 
 	 	             r e c o r d _ h d r c t ,   f o r m a t ) ; 
 	         e n d ; 
 
 	     s t a r t _ p a g e _ s w ,   n e x t _ i m a g e   =   " 1 " b ; 
 	 	 	 	 / *   s t a r t   a t   t o p   o f   p a g e   * / 
 i m a g e _ l o o p : 
 	     d o   p a g e _ r e c o r d _ p t r   =   a d d r   ( r e c o r d . p a g e _ r e c o r d ) 
 	               r e p e a t   ( a d d r   ( p a g e _ r e c o r d . n e x t r e f ) ) 
 	               w h i l e   ( n e x t _ i m a g e   ^ =   " 0 " b ) ; 
 
 	         i f   ( t a b l e _ s w   &   d e b u g _ s w )   |   d u m p _ s w 
 	         t h e n   c a l l   i o a _   ( " ^ 5 x ^ [   H A L T ^ ] ^ [   2 ^ ] ^ [   3 ^ ] ^ [   . w t ^ ] ^ [   p r e f a c e ^ ] " 
 	 	         | |   " ^ [   i d _ p r e f a c e ^ ] ^ [   p w h l = ^ d ^ ]   ^ i ( ^ o ) 8   b y t e s " , 
 	 	         p a g e _ r e c o r d . h a l t ,   p a g e _ r e c o r d . h a l t 2 ,   p a g e _ r e c o r d . h a l t 3 , 
 	 	         p a g e _ r e c o r d . h a l t 4 ,   p a g e _ r e c o r d . p r e f a c e , 
 	 	         p a g e _ r e c o r d . i d _ p r e f a c e ,   ( p a g e _ r e c o r d . p w h e e l   >   0 ) , 
 	 	         p a g e _ r e c o r d . p w h e e l ,   p a g e _ r e c o r d . l e n g ,   p a g e _ r e c o r d . l e n g ) 
 	 	         ; 
 
 	         p a g e _ w r d c t   =   d i v i d e   ( p a g e _ r e c o r d . l e n g   +   3 ,   4 ,   1 7 ,   0 )   +   2 ; 
 	         r e c o r d _ w r d c t   =   r e c o r d _ w r d c t   -   p a g e _ w r d c t ; 
 
 	         i f   ( r e c o r d _ w r d c t   <   0 ) 
 	         t h e n 
 	             d o ; 
 	                 c a l l   i o a _   ( " R e c o r d   l e n g t h   e r r o r ,   ^ i " ,   r e c o r d _ w r d c t ) ; 
 	                 r e c o r d _ w r d c t   =   - r e c o r d _ w r d c t ; 
 	             e n d ; 
 
 / * 	         i f   p a g e _ r e c o r d . p a d   ^ =   " 0 " b 
 / * 	         t h e n   c a l l   i o a _   ( " R e c o r d   s c r e w e d   u p ! " ) ; * / 
 
 	         e l s e   i f   d u m p _ s w 
 	         t h e n   c a l l   d u m p _ s e g m e n t _   ( i o x _ $ u s e r _ o u t p u t ,   p a g e _ r e c o r d _ p t r ,   0 ,   0 , 
 	 	         p a g e _ w r d c t ,   f o r m a t ) ; 
 
 	         i f   p a g e _ r e c o r d . p w h e e l   >   0 
 	         t h e n   s u b s t r   ( w h e e l _ n e e d ,   p a g e _ r e c o r d . p w h e e l ,   1 )   =   " 1 " b ; 
 
 	         i f   ( d u m p _ s w   &   d e b u g _ s w )   |   ^ ( t a b l e _ s w   |   d u m p _ s w ) 
 	         t h e n 
 	             d o ; 
 d o _ d e b u g _ t o o : 
 	                 i f   p a g e _ r e c o r d . p r e f a c e / *   i s   t h i s   a   p r e f a c e ?   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   f i r s t _ p r e f _ s w 	 / *   f i r s t   o n e ?   * / 
 	 	     t h e n   i f   s k i p _ p r e f _ s w 
 	 	 	 	 / *   b e   s u r e   i t s   s k i p p e d     * / 
 	 	               t h e n   p r e f a c e   =   p a g e _ r e c o r d . t e x t ; 
 	 	 	 	 / *   b e   s u r e   i t s   u s e d 	               * / 
 	 	               e l s e   p r e f a c e   =   " " ; 
 	 	 e n d ; 	 	 / * * / 
 	 	 	 	 / *   a n   I D   p r e f a c e ?   * / 
 	                 e l s e   i f   p a g e _ r e c o r d . i d _ p r e f a c e 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   f i r s t _ p r e f _ s w 
 	 	     t h e n   g o t o   a d d _ s t r i n g ; 
 	 	 e n d ; 
 
 	                 e l s e   f i r s t _ p r e f _ s w   =   " 0 " b ; 
 	 	 	 	 / * * / 
 	 	 	 	 / *   r e c o r d   t e x t   o r   n e w   p r e f a c e ?   * / 
 	                 i f   ^ p a g e _ r e c o r d . p r e f a c e   |   ( p a g e _ r e c o r d . t e x t   ^ =   p r e f a c e ) 
 	                 t h e n 
 	 	 d o ; 
 a d d _ s t r i n g : 	 	 	 / *   w r i t i n g   t e x t   o n l i n e ?   * / 
 	 	     i f   ( o u t p u t _ m e d i u m   =   O N L I N E )   &   ^ ( d e b u g _ s w   |   d i s p l a y _ s w ) 
 	 	     t h e n 
 	 	         d o ; 
 	 	             i f   ^ c p w f _ s w 
 	 	             t h e n 
 	 	                 d o ; 
 	 	 	 c a l l   s e t _ r a w o ; 
 	 	 	 	 / *   p w h e e l   c h a n g e ?   * / 
 	 	 	 i f   p a g e _ r e c o r d . p w h e e l   >   0 
 	 	 	           &   p a g e _ r e c o r d . p w h e e l   ^ =   m o u n t e d _ w h e e l 
 	 	 	 t h e n   c a l l   c h a n g e _ p w h e e l   ( ( p a g e _ r e c o r d . p w h e e l ) ) ; 
 	 	 	 c a l l 	 / *   w r i t e   t h e   t e x t   * / 
 	 	 	           i o x _ $ p u t _ c h a r s   ( i o x _ $ u s e r _ o u t p u t , 
 	 	 	           a d d r   ( p a g e _ r e c o r d . t e x t ) ,   ( p a g e _ r e c o r d . l e n g ) , 
 	 	 	           c o d e ) ; 
 	 	 	 	 / * * / 
 	 	 	 	 / *   m i d p a g e   w a i t ?   * / 
 	 	 	 i f   p a g e _ r e c o r d . h a l t 4 
 	 	 	 t h e n 
 	 	 	     d o ; 
 	 	 	         c a l l   i o x _ $ c o n t r o l   ( i o x _ $ u s e r _ i n p u t , 
 	 	 	                   " r e s e t r e a d " ,   n u l l   ( ) ,   c o d e ) ; 
 	 	 	         c a l l   i o x _ $ g e t _ l i n e   ( i o x _ $ u s e r _ i n p u t , 
 	 	 	                   a d d r   ( s t o p _ b f r ) ,   8 0 ,   a r g l ,   c o d e ) ; 
 	 	 	     e n d ; 
 	 	 	 s t a r t _ p a g e _ s w   =   " 0 " b ; 
 	 	                 e n d ; 	 / * * / 
 	 	         e n d ; 
 
 	 	     e l s e   i f   d i s p l a y _ s w 
 	 	     t h e n 
 	 	         d o ; 
 	 	             o u t p u t _ t e x t _ l e n   =   o u t p u t _ t e x t _ l e n   +   p a g e _ r e c o r d . l e n g ; 
 	 	             s u b s t r   ( o u t p u t _ t e x t , 
 	 	 	   o u t p u t _ t e x t _ l e n   -   p a g e _ r e c o r d . l e n g   +   1 , 
 	 	 	   p a g e _ r e c o r d . l e n g )   =   p a g e _ r e c o r d . t e x t ; 
 	 	         e n d ; 
 
 	 	     e l s e 
 	 	         d o ; 
 	 	             i f   s t a r t _ p a g e _ s w 
 	 	 	 	 / *   a t   t o p   o f   p a g e ?   * / 
 	 	             t h e n 
 	 	                 d o ; 
 	 	 	 s t a r t _ p a g e _ s w   =   " 0 " b ; 
 	 	 	 	 / *   r e c o r d   l i m i t   f o r   t h i s   f i l e ?   * / 
 	 	 	 i f   t e x t _ p a g e s   =   m a x _ o u t r e c s   &   m a x _ o u t r e c s   >   0 
 	 	 	 t h e n 
 	 	 	     d o ; 	 / *   h a v e   t o   c l e a n u p ?   * / 
 	 	 	         i f   d e v i c e _ c l e a n u p   ^ =   " " 
 	 	 	                   &   o u t p u t _ m e d i u m   =   O N L I N E 
 	 	 	                   &   ^ ( d e b u g _ s w   |   d i s p l a y _ s w ) 
 	 	 	         t h e n 
 	 	 	             d o ; 
 	 	 	                 o u t p u t _ t e x t _ l e n   = 
 	 	 	 	       o u t p u t _ t e x t _ l e n 
 	 	 	 	       +   l e n g t h   ( d e v i c e _ c l e a n u p ) ; 
 	 	 	                 s u b s t r   ( o u t p u t _ t e x t , 
 	 	 	 	       o u t p u t _ t e x t _ l e n 
 	 	 	 	       -   l e n g t h   ( d e v i c e _ c l e a n u p )   +   1 , 
 	 	 	 	       l e n g t h   ( d e v i c e _ c l e a n u p ) )   = 
 	 	 	 	       d e v i c e _ c l e a n u p ; 
 	 	 	             e n d ; 
 
 	 	 	         c a l l   p u t _ o u t   ( E N D ) ; 
 	 	 	         t e x t _ p a g e s   =   1 ; 
 	 	 	         o u t p u t _ t e x t _ l e n   =   0 ; 
 	 	 	     e n d ; 
 	 	 	 e l s e   t e x t _ p a g e s   =   t e x t _ p a g e s   +   1 ; 
 
 	 	 	 o u t p u t _ t e x t _ l e n   = 
 	 	 	           o u t p u t _ t e x t _ l e n   +   p a g e _ r e c o r d . l e n g ; 
 	 	 	 s u b s t r   ( o u t p u t _ t e x t , 
 	 	 	           o u t p u t _ t e x t _ l e n   -   p a g e _ r e c o r d . l e n g   +   1 , 
 	 	 	           p a g e _ r e c o r d . l e n g )   =   p a g e _ r e c o r d . t e x t ; 
 	 	                 e n d ; 
 
 	 	             i f   o u t p u t _ t e x t _ l e n   =   0 
 	 	             t h e n   c a l l   p u t _ o u t   ( B E G I N ) ; 
 	 	         e n d ; 
 	 	 e n d ; 
 
 / * * * *   d c l s   * / 
 	                 i f   p a g e _ r e c o r d . p r e f a c e 
 	                 t h e n   p r e f a c e   =   p a g e _ r e c o r d . t e x t ; 
 	             e n d ; 
 
 	         n e x t _ i m a g e   =   p a g e _ r e c o r d . n e x t r e f ; 
 	     e n d   i m a g e _ l o o p ; 
 
 	     i f   ( t e x t _ p a g e s   =   m a x _ o u t r e c s ) 
 	 	 	 	 / *   i f   r e c o r d   w a s   j u s t   f i l l e d ,   e n s u r e     * / 
 	     t h e n   f i r s t _ p r e f _ s w   =   " 1 " b ; 	 / *     t h a t   p r e f i x   i n c l u d e d   o n   n e x t   o n e   * / 
 
 	     i f   t a b l e _ s w   |   d e b u g _ s w 
 	     t h e n 
 	         d o ; 
 	             t h i s _ p a g e   =   r e c o r d _ c o u n t   +   p a g e l i s t _ b a s e ; 
 	             i f   p a g e l i s t . n o _ f r o n t   ( t h i s _ p a g e ) 
 	             t h e n   c a l l   i o a _   ( " ^ - / *   b l a n k   f r o n t   n o t   s u p p l i e d   * / " ) ; 
 	             c a l l   i o a _   ( " ^ [ ^ / ^ 8 i   P a g e :   ^ ; ^ s ^ ] ! ^ i ^ - / * ^ [   B L A N K ^ ] ^ - ^ [ F R O N T ^ ] ^ - " 
 	 	   | |   " ^ a ^ [ ^ - C H A N G E D ^ ]   * / " ,   d e b u g _ s w ,   r e c o r d _ l e n , 
 	 	   r e c o r d _ c o u n t ,   r e c o r d . b l a n k ,   r e c o r d . f r o n t ,   r e c o r d . p a g e i d , 
 	 	   r e c o r d . c h a n g e d ) ; 
 	             i f   p a g e l i s t . n o _ b a c k   ( t h i s _ p a g e ) 
 	             t h e n   c a l l   i o a _   ( " ^ - / *   b l a n k   b a c k   n o t   s u p p l i e d   * / " ) ; 
 	         e n d ; 
 
 	     i f   ^ t a b l e _ s w 
 	     t h e n   i f   f i l e _ e n t r y . s t o p 
 	               t h e n 
 	                   d o ; 
 w a i t : 
 	 	   c a l l   s y n c   ( r e p r i n t ) ; 
 	                   e n d ; 
 	     i f   ( r e c o r d _ c o u n t   =   f i l e _ e n t r y . t o . n u m   ( i p a g e ) ) 
 	     t h e n 
 	         d o ; 
 n e x t _ f i l e : 
 	             i p a g e   =   i p a g e   +   1 ; 
 	             i f   ( i p a g e   >   f i l e _ e n t r y . p a g e _ s e l _ c t ) 
 	             t h e n   d o n e   =   " 1 " b ; 
 	         e n d ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   a s s u r e   t h e   l e f t   m a r g i n   * / 
 / * * * *                 c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ u s e r _ o u t p u t ,   a d d r   ( C R ) ,   1 ,   c o d e ) ; * / 
             e n d   r e c o r d _ l o o p _ 2 ; 	 	 / * * / 
 e n d _ f i l e _ l o o p _ 3 : 
             i f   r a w o _ s w 
             t h e n   c a l l   r e s e t _ r a w o ; 
 
             i f   o u t p u t _ t e x t _ l e n   >   0 	 	 / *   a n y t h i n g   p e n d i n g   o n   o u t p u t   r e c o r d   * / 
             t h e n 
                 d o ; 
 	 i f   ( d e v i c e _ c l e a n u p   ^ =   " " )   &   ( o u t p u t _ m e d i u m   =   O N L I N E )   &   ^ d e b u g _ s w 
 	           &   ^ d i s p l a y _ s w 
 	 t h e n 
 	     d o ; 
 	         o u t p u t _ t e x t _ l e n   =   o u t p u t _ t e x t _ l e n   +   l e n g t h   ( d e v i c e _ c l e a n u p ) ; 
 	         s u b s t r   ( o u t p u t _ t e x t , 
 	                   o u t p u t _ t e x t _ l e n   -   l e n g t h   ( d e v i c e _ c l e a n u p )   +   1 , 
 	                   l e n g t h   ( d e v i c e _ c l e a n u p ) )   =   d e v i c e _ c l e a n u p ; 
 	     e n d ; 
 
 	 c a l l   p u t _ o u t   ( E N D ) ; 
                 e n d ; 
 
             i f   ^ c p w f _ s w 
             t h e n 
                 d o ; 
 	 s u b s t r   ( w h e e l _ d o n e ,   m o u n t e d _ w h e e l ,   1 )   =   " 1 " b ; 
 	 i   =   i n d e x   ( w h e e l _ n e e d   &   ^ w h e e l _ d o n e ,   " 1 " b ) ; 
                 e n d ; 	 	 	 / * * / 
 
             c a l l   c l o s e _ c o m p o u t   ( ) ; 
 
         e n d   f i l e _ l o o p _ 3 ; 
 f i n i s h : 
         i f   ^ d e b u g _ s w   &   ^ d i s p l a y _ s w 
         t h e n 
             d o ; 
                 i f   o u t p u t _ m e d i u m   ^ =   O N L I N E 
                 t h e n   c a l l   i o a _   ( " p r o c e s s _ c o m p o u t :   T a p e   c o m p l e t e . " ) ; 
                 e l s e   c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ u s e r _ o u t p u t ,   a d d r   ( C R L F ) ,   2 ,   c o d e ) ; 
             e n d ; 
 
         c a l l   c l e a n ; 
         r e t u r n ; 
 % p a g e ; 
 a f _ p r o c : 
     p r o c   ( s t r )   r e t u r n s   ( c h a r   ( 5 0 0 )   v a r ) ; 
 
         d c l   s t r 	       c h a r   ( 2 0 0 )   v a r ; 
 
         d c l   r e s 	       c h a r   ( 5 0 0 )   v a r ; 
         d c l   s e t u p X 	       c h a r   ( 2 5 6 )   v a r ; 
         d c l   ( i ,   j ) 	       f i x e d   b i n   ( 2 1 ) ; 
 
         i   =   s e a r c h   ( s t r ,   " | [ " ) ; 	 	 / *   s e e   i f   a n y   p o t e n t i a l   A F s 	               * / 
         i f   ( i   >   0 )   &   ( ( o u t p u t _ m e d i u m   =   T A P E )   |   l o n g _ s w ) 
 	 	 	 	 / *   a n d   d o   w e   e v e n   c a r e       * / 
         t h e n 
             d o ; 
                 r e s   =   " " ; 	 	 	 / *   s t a r t   o u t   c l e a n 	 	               * / 
                 j   =   1 ; 
                 d o   w h i l e   ( i   ^ =   0 ) ; 
 	 r e s   =   r e s   | |   s u b s t r   ( s t r ,   j ,   i   -   1 ) ; 
 	 	 	 	 / *   c o p y   i n - b e t w e e n   s t u f f         * / 
 	 j   =   j   +   i   -   1 ; 	 	 / *   a n d   s k i p   o v e r   i t 	 	               * / 
 	 i f   ( s u b s t r   ( s t r ,   j ,   1 )   =   " [ " )   / *   i s   i t   a   v a l i d   A F   c a l l           * / 
 	           |   ( s u b s t r   ( s t r ,   j ,   2 )   =   " | [ " )   |   ( s u b s t r   ( s t r ,   j ,   3 )   =   " | | [ " ) 
 	 t h e n 
 	     d o ; 	 	 	 / *   y e s ,   g o   g e t   i t   e x p a n d e d 	               * / 
 	         c a l l   e v a l u a t e _ a f _   ( s u b s t r   ( s t r ,   j ) ,   i 2 ,   s e t u p X ,   c o d e ) ; 
 	         i f   ( c o d e   ^ =   0 ) 
 	         t h e n 
 	             d o ; 
 	                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " E v a l u a t i n g   " " ^ a " " . " , 
 	 	       s u b s t r   ( s t r ,   j ) ) ; 
 	                 e r r o r _ s w   =   " 1 " b ; 
 	             e n d ; 
 	     e n d ; 
 	 e l s e 
 	     d o ; 	 	 	 / *   n o ,   j u s t   u s e   u p   a   s i n g l e   c h a r           * / 
 	         s e t u p X   =   s u b s t r   ( s t r ,   j ,   1 ) ; 
 	         i 2   =   1 ; 
 	     e n d ; 
 	 r e s   =   r e s   | |   s e t u p X ; 	 / *   a d d   t h e   r e s u l t   t o   t h e   o u t p u t             * / 
 	 j   =   j   +   i 2 ; 
 	 i   =   s e a r c h   ( s u b s t r   ( s t r ,   j ) ,   " | [ " ) ; 
 	 	 	 	 / *   s e e   i f   t h e r e ' s   a n o t h e r       * / 
 	 i f   ( i   =   0 ) 	 	 / *   i f   n o t ,   c o p y   t h e   r e s t   o v e r 	               * / 
 	 t h e n   r e s   =   r e s   | |   s u b s t r   ( s t r ,   j ) ; 
                 e n d ; 
             e n d ; 
         e l s e 
             d o ; 
 e r r _ e x i t : 
                 r e s   =   s t r ; 
             e n d ; 
         r e t u r n   ( r e s ) ; 
 
     e n d   a f _ p r o c ; 
 % p a g e ; 
 b u i l d _ c o n t e n t s : 
     p r o c ; 
         c o n t e n t s _ l   =   0 ; 
         c o n t e n t s   =   " " ; 
 
         i f   ( s e t u p   ^ =   " " )   &   ( ^ d i s p l a y _ s w   |   l o n g _ s w ) 
         t h e n   c o n t e n t s   =   c o n t e n t s   | |   s e t u p   | |   C R L F ; 
 
         c o n t e n t s   =   c o n t e n t s   | |   " D i r e c t o r y   o f   f i l e s , " ; 
 
         i f   ( o u t p u t _ m e d i u m   =   T A P E ) 
         t h e n   c o n t e n t s   =   c o n t e n t s   | |   "   o n   t a p e , " ; 
 
         c o n t e n t s   =   c o n t e n t s   | |   "   b y   f i l e   n u m b e r "   | |   C R L F ; 
         c o n t e n t s   =   c o n t e n t s   | |   "       #                             - - -   p a g e i d s   p r e s e n t   - - - " ; 
 
         i f   c o n t e n t s _ t a p _ s w 
         t h e n 
             d o ; 
                 c o n t e n t s   =   c o n t e n t s   | |   C R L F ; 
                 c o n t e n t s   =   c o n t e n t s   | |   "       0               < A S C I I   i n f o r m a t i o n   f i l e > " ; 
             e n d ; 
         c o n t e n t s   =   c o n t e n t s   | |   C R L F ; 	 / *   e n d   o f   c o n t e n t s   h e a d e r   * / 
 
         f i l n o   =   0 ; 	 	 	 / *   g e t   f i l e   c o n t e n t s   i n f o   * / 
         d o   f i l e _ e n t r y _ p t r   =   f i l e _ e n t r y _ b a s e _ p t r   ( 1 )   r e p e a t   ( f i l e _ e n t r y . l i n k ) 
                   w h i l e   ( f i l e _ e n t r y _ p t r   ^ =   n u l l   ( ) ) ; 
             i f   ( f i l e _ e n t r y . f i l e   ^ =   " " ) 
             t h e n 
                 d o ; 
 	 r e c o r d _ c o u n t   =   0 ; 
 	 f i l n o   =   f i l n o   +   1 ; 
 	 p a g e l i s t _ b a s e   =   p a g e l i s t . f i l e   ( f i l n o ) . f r o m   -   1 ; 
 
 	 c o n t e n t s   =   c o n t e n t s   | |   " D o c u m e n t :   " ; 
 	 c o n t e n t s   =   c o n t e n t s   | |   b e f o r e   ( f i l e _ e n t r y . e n a m e ,   " . c o m p o u t " ) ; 
 	 c o n t e n t s   =   c o n t e n t s   | |   C R L F ; 
 
 	 d o   i p a g e   =   1   t o   f i l e _ e n t r y . p a g e _ s e l _ c t ; 
 	     d o   i   =   f i l e _ e n t r y . f r o m . n u m   ( i p a g e )   +   p a g e l i s t _ b a s e 
 	               t o   f i l e _ e n t r y . t o . n u m   ( i p a g e )   +   p a g e l i s t _ b a s e ; 
 
 	         i f   p a g e l i s t . s e l e c t   ( i ) 	 / *   w a n t   t h i s   p a g e ?   * / 
 	         t h e n 
 	             d o ; 
 	                 i f   p a g e l i s t . n o _ f r o n t   ( i ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     c o n t e n t s   =   c o n t e n t s   | |   "             b l a n k   f r o n t   n o t   s u p p l i e d " ; 
 	 	     c o n t e n t s   =   c o n t e n t s   | |   C R L F ; 
 	 	 e n d ; 
 
 	                 i f   ( r e c o r d _ c o u n t   =   0 ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     c o n t e n t s _ l   =   c o n t e n t s _ l   +   1 ; 
 	 	     c o n t e n t s   =   c o n t e n t s   | |   c o n v e r t   ( t o c h _ n d x ,   c o n t e n t s _ l ) ; 
 	 	 e n d ; 
 	                 e l s e   c o n t e n t s   =   c o n t e n t s   | |   "             " ; 
 	                 r e c o r d _ c o u n t   =   r e c o r d _ c o u n t   +   1 ; 
 	                 i f   ( r e c o r d _ c o u n t   =   m a x _ o u t r e c s ) 
 	                 t h e n   r e c o r d _ c o u n t   =   0 ; 
 	                 i f   p a g e l i s t . b l a n k   ( i ) 
 	                 t h e n   c o n t e n t s   =   c o n t e n t s   | |   " B L A N K   " ; 
 	                 e l s e   c o n t e n t s   =   c o n t e n t s   | |   "             " ; 
 	                 i f   p a g e l i s t . f r o n t   ( i ) 
 	                 t h e n   c o n t e n t s   =   c o n t e n t s   | |   " F R O N T   " ; 
 	                 e l s e   c o n t e n t s   =   c o n t e n t s   | |   "             " ; 
 	                 c o n t e n t s   =   c o n t e n t s   | |   r t r i m   ( p a g e l i s t . i d   ( i ) ) ; 
 	                 c o n t e n t s   =   c o n t e n t s   | |   C R L F ; 
 	                 i f   p a g e l i s t . n o _ b a c k   ( i ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     c o n t e n t s   =   c o n t e n t s   | |   "             b l a n k   b a c k   n o t   s u p p l i e d " ; 
 	 	     c o n t e n t s   =   c o n t e n t s   | |   C R L F ; 
 	 	 e n d ; 
 	             e n d ; 
 	     e n d ; 
 	 e n d ; 
                 e n d ; 
 
             i f   d e b u g _ s w 
             t h e n 
                 d o ; 	 	 	 / *   s h o w   w h a t   h a s   b e e n   d e t e r m i n e d           * / 
 	 c a l l   i o a _   ( " ^ 3 i   ^ a   ( ^ a ) " ,   r e c o r d _ c o u n t ,   f i l e _ e n t r y . f i l e , 
 	           f i l e _ e n t r y . e n a m e ) ; 
 	 c a l l   i o a _   ( "       s e q = ^ i   c o u n t = ^ i   ^ [ P G C   ^ ] ^ [ O B V   ^ ] ^ [ S P   ^ ] ^ [ W T   ^ ] " , 
 	           f i l e _ e n t r y . s e q _ n o ,   f i l e _ e n t r y . p a g e _ c o u n t ,   f i l e _ e n t r y . p g c , 
 	           f i l e _ e n t r y . o b v e r s e ,   f i l e _ e n t r y . s t o p ,   f i l e _ e n t r y . w a i t ) ; 
 	 d o   i   =   1   t o   f i l e _ e n t r y . p a g e _ s e l _ c t ; 
 	     c a l l   i o a _   ( " ^ 6 i   f m   " " ^ 1 a " "   ^ i   " " ^ a " " " ,   i ,   f i l e _ e n t r y . f r o m   ( i ) . s i g n , 
 	               f i l e _ e n t r y . f r o m   ( i ) . n u m ,   f i l e _ e n t r y . f r o m   ( i ) . i d ) ; 
 	     c a l l   i o a _   ( " ^ 6 x   t o   " " ^ 1 a " "   ^ i   " " ^ a " " " ,   f i l e _ e n t r y . t o   ( i ) . s i g n , 
 	               f i l e _ e n t r y . t o   ( i ) . n u m ,   f i l e _ e n t r y . t o   ( i ) . i d ) ; 
 	 e n d ; 
                 e n d ; 
         e n d ; 
 
     e n d   b u i l d _ c o n t e n t s ; 
 % p a g e ; 
 c h a n g e _ p w h e e l : 
     p r o c   ( w h e e l ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   w h e e l 	       f i x e d   b i n ; 	 / *   w h e e l   n e e d e d   * / 
 	 	 	 	 / *   L O C A L   S T O R A G E   * / 
 
         d c l   c h a n g e _ s i g n a l     c h a r   ( 1 2 8 ) ; 
 
         i f   n o b e l l _ s w 
         t h e n   c h a n g e _ s i g n a l   =   c o p y   ( P A D H T ,   w h e e l ) ; 
         e l s e   c h a n g e _ s i g n a l   =   c o p y   ( B E L H T ,   w h e e l ) ; 
 
         c a l l   i o x _ $ c o n t r o l   ( i o x _ $ u s e r _ i n p u t ,   " r e s e t r e a d " ,   n u l l   ( ) ,   c o d e ) ; 
         c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ u s e r _ o u t p u t ,   a d d r   ( c h a n g e _ s i g n a l ) ,   2   *   w h e e l , 
                   c o d e ) ; 
         c a l l   i o x _ $ g e t _ l i n e   ( i o x _ $ u s e r _ i n p u t ,   a d d r   ( s t o p _ b f r ) ,   8 0 ,   0 ,   c o d e ) ; 
         c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ u s e r _ o u t p u t ,   a d d r   ( s t o p _ s i g n a l ) ,   5 ,   c o d e ) ; 
         c a l l   i o x _ $ g e t _ l i n e   ( i o x _ $ u s e r _ i n p u t ,   a d d r   ( s t o p _ b f r ) ,   8 0 ,   0 ,   c o d e ) ; 
 
     e n d   c h a n g e _ p w h e e l ; 
 % p a g e ; 
 g a t h e r _ c o n s : 
     p r o c   ( s t r ,   w h e r e ) ; 
         d c l   s t r 	       c h a r   ( * ) , 
                 w h e r e 	       c h a r   ( * )   v a r ; 
 
         d c l   ( i ,   j ) 	       f i x e d   b i n ; 
 
         i   =   1 ; 
         d o   w h i l e   ( i   < =   l e n g t h   ( s t r ) ) ; 
         e n d ; 
 
     e n d   g a t h e r _ c o n s ; 
 % p a g e ; 
 / * * * * * 	 P R O C E S S   T H E   C O M M E N T   S T A T E M E N T   I N   T H E   D S M   	 * * * * * / 
 p r o c _ c o m m e n t : 
     p r o c ; 	 	 	 	 / * * / 
 	 	 	 	 / *   t h e   C o m m e n t   s t a t e m e n t   * / 
         d c l   c o m m e n t 	       c h a r   ( l _ c o m m e n t )   b a s e d   ( c o m m e n t _ p t r ) ; 
         d c l   c o m m e n t _ p t r 	       p t r ; 
         d c l   j 	 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   m o d e _ l i s t 	       c h a r   ( 2 5 6 )   v a r ; 	 / * * / 
 	 	 	 	 / *   a v a i l a b l e   o p t i o n s   * / 
         d c l   o p t i o n 	       ( 9 )   c h a r   ( 1 6 )   v a r   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " m o d e : " ,   " l e a d e r : " ,   " s e t u p : " ,   " p a c k : " ,   " D B : " , 
 	 	       " b l k h d r : " ,   " b l k t l r : " ,   " f i l e : " ,   " c o n t e n t _ f i l e : " ) ; 
         d c l   o p t i o n _ l i n e 	       c h a r   ( 2 0 0 )   v a r ; 	 / *   o p t i o n   l i n e   f r o m   c o m m e n t   * / 
         d c l   o p t i o n _ n d x 	       f i x e d   b i n ; 	 / *   o p t i o n   l i s t   i n d e x   * / 
         d c l   s c a n _ n d x 	       f i x e d   b i n ; 	 / *   c o m m e n t   s t r i n g   s c a n   i n d e x   * / 
 	 	 	 	 / *   p o i n t   t o   t h e   C o m m e n t   s t a t e m e n t   * / 
         l _ c o m m e n t   =   f i l e h e a d e r . c o m m e n t _ l e n g ; 
         c o m m e n t _ p t r   =   a d d r   ( f i l e h e a d e r . c o m m e n t ) ; 
 
         i f   c o m m e n t _ s w 	 	 	 / *   j u s t   p r i n t   t h e   C o m m e n t ?   * / 
         t h e n 
             d o ; 
                 c a l l   i o a _   ( " ^ /     * *     F r o m   f i l e   ^ a ^ / ^ a " ,   f i l e _ e n t r y . f i l e , 
 	       b e f o r e   ( c o m m e n t ,   N L   | |   " D B : " ) ) ; 
                 r e t u r n ; 
             e n d ; 
 
         i f   d e b u g _ s w 
         t h e n   c a l l   i o a _   ( " ^ a " ,   r t r i m   ( r t r i m   ( c o m m e n t ) ,   N L ) ) ; 
 
         m o d e _ l i s t   =   " " ; 
         s c a n _ n d x   =   1 ; 
 s c a n _ c o m m e n t : 	 	 	 / *   s c a n   c o m m e n t   f o r   o p t i o n   k e y w o r d s   * / 
         d o   w h i l e   ( s c a n _ n d x   <   l e n g t h   ( c o m m e n t ) ) ; 
 	 	 	 	 / *   r u n   t h r u   o p t i o n   l i s t   * / 
             d o   o p t i o n _ n d x   =   1   t o   h b o u n d   ( o p t i o n ,   1 ) ; 
                 i f   i n d e x   ( s u b s t r   ( c o m m e n t ,   s c a n _ n d x ) ,   o p t i o n   ( o p t i o n _ n d x ) )   =   1 
                 t h e n 
 	 d o ; 	 	 	 / *   f o u n d   o n e ;   s t e p   o v e r   t h e   k e y w o r d   * / 
 	     s c a n _ n d x   =   s c a n _ n d x   +   l e n g t h   ( o p t i o n   ( o p t i o n _ n d x ) ) ; 
 	 	 	 	 / *   e x t r a c t   t h e   o p t i o n   ' v a l u e '   * / 
 	     o p t i o n _ l i n e   =   b e f o r e   ( s u b s t r   ( c o m m e n t ,   s c a n _ n d x ) ,   N L ) ; 
 	     g o t o   o p t _ r t n   ( o p t i o n _ n d x ) ; 	 / *   g o   p r o c e s s   t h e   o p t i o n   * / 
 	 e n d ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   n o   ( m o r e )   o p t i o n s   * / 
             i f   m o d e _ a r g   =   " " 	 	 / *   i f   t a k i n g   d e f a u l t   m o d e 	               * / 
 	   &   s c a n _ n d x   =   1 	 	 / *   a n d   f i r s t   l i n e   i s   n o t   a   k e y w o r d ,     * / 
 	   &   i n d e x   ( c o m m e n t ,   T A P E )   =   1 	 / *   a s s u m e   i t s   o l d   s t y l e 	               * / 
             t h e n 
                 d o ; 
 	 m o d e   =   b e f o r e   ( c o m m e n t ,   N L ) ; 
 	 i f   d e b u g _ s w 
 	 t h e n   c a l l   i o a _   ( " m o d e ( o l d   s t y l e ) =   ^ a " ,   m o d e ) ; 
                 e n d ; 
 
 o p t _ r t n _ e n d : 	 	 	 / *   a l l   o p t _ r t n   ( * )   r e t u r n   h e r e               * / 
 	 	 	 	 / *   s t e p   o v e r   o p t i o n   ' v a l u e '   * / 
             j   =   i n d e x   ( s u b s t r   ( c o m m e n t ,   s c a n _ n d x ) ,   N L ) ; 
             i f   j   =   0 	 	 	 / *   i f   l a s t   o p t i o n   * / 
             t h e n   s c a n _ n d x   =   l e n g t h   ( c o m m e n t ) ; 
             e l s e   s c a n _ n d x   =   s c a n _ n d x   +   j ; 
         e n d   s c a n _ c o m m e n t ; 
 
         i f   m o d e   =   " " 	 	 	 / *   i f   n o   m o d e   a f t e r   a l l   t h a t   * / 
         t h e n 
             d o ; 
                 i f   m o d e _ a r g   ^ =   " " 	 	 / *   i f   n o t   t a k i n g   t h e   d e f a u l t   m o d e   * / 
                 t h e n 
 	 d o ; 
 	     i f   m o d e _ l i s t   =   " " 	 	 / *   s h o o t !   n o n e   d e f i n e d   i n   t h e   c o m p o u t   * / 
 	     t h e n   m o d e _ l i s t   =   " . . ( f i l e   d e f i n e s   N O N E ) " ; 
 	 	 	 	 / *   m o d e   r e q u e s t e d   n o t   d e f i n e d   * / 
 	     c a l l 	 	 	 / *   f i n d   o u t   w h a t   t o   d o   * / 
 	               c o m _ e r r _   ( 0 ,   m e , 
 	               " M o d e   " " ^ a " "   i s   n o t   d e f i n e d   i n   f i l e   ^ a . " 
 	               | |   " ^ / ^ 2 x T h e s e   a r e   d e f i n e d :   ^ a ^ / ^ 2 x U s e   m o d e   ?   t o   s e e   " 
 	               | |   " d e t a i l s   o f   t h e s e   m o d e s . " ,   b e f o r e   ( m o d e _ a r g ,   " : " ) , 
 	               f i l e _ e n t r y . f i l e ,   s u b s t r   ( m o d e _ l i s t ,   3 ) ) ; 
 	     e r r o r _ s w   =   " 1 " b ; 
 	 e n d ; 
                 e l s e   m o d e   =   O N L I N E ; 
             e n d ; 
 
 / *         i f   ( d e b u g _ s w   |   d i s p l a y _ s w )   &   ( d i s p l a y _ r t n   =   " " ) 
 / *         t h e n 
 / *             d o ; 
 / *                 c a l l   c o m _ e r r _   ( 0 ,   m e ,   " D i s p l a y   r o u t i n e   n o t   d e f i n e d   i n   f i l e .   ^ a " , 
 / * 	       f i l e _ e n t r y . f i l e ) ; 
 / *                 e r r o r _ s w   =   " 1 " b ; 
 / *             e n d ; 	 	 	 / * * / 
 / *   c h e c k   z e r o   l e n g t h   r e c o r d   * / 
         i f   f i l e h e a d e r . r e c l e n g   =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( 0 ,   m e ,   " F i l e   ^ a   ( d e v i c e   ^ a )   h a s   r e c l e n g   =   0 . " , 
 	       f i l e _ e n t r y . f i l e ,   f i l e h e a d e r . d e v i c e ) ; 
                 e r r o r _ s w   =   " 1 " b ; 
             e n d ; 
         e l s e   r e c o r d _ b y t e s   =   m i n   ( r e c o r d _ b y t e s ,   f i l e h e a d e r . r e c l e n g ) ; 
 
         i f   ( o u t p u t _ m e d i u m   =   T A P E )   |   ( o u t p u t _ m e d i u m   =   P U N C H )   |   d i s p l a y _ s w 
         t h e n 
             d o ; 
                 i i   =   f i l e h e a d e r . m a x _ p a g e s ; 
                 i f   ( i i   =   0 ) 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m _ e r r _   ( 0 ,   m e ,   " F i l e   ^ a   ( d e v i c e   ^ a )   h a s   m a x _ p a g e s   =   0 . " , 
 	               f i l e _ e n t r y . f i l e ,   f i l e h e a d e r . d e v i c e ) ; 
 	     e r r o r _ s w   =   " 1 " b ; 
 	 e n d ; 
                 e l s e   m a x _ o u t r e c s   =   m i n   ( m a x _ o u t r e c s ,   i i ) ; 
             e n d ; 
 
         r e t u r n ; 
 
 o p t _ r t n   ( 1 ) : 	 	 	 / *   m o d e :   * / 
         d c l   t e m p 	       c h a r   ( 3 2 )   v a r ; 
         i f   m o d e _ s w 	 	 	 / *   j u s t   p r i n t   t h e   m o d e s ?   * / 
         t h e n 
             d o ; 
                 c a l l   i o a _   ( " ^ a " ,   o p t i o n _ l i n e ) ; 
                 g o t o   o p t _ r t n _ e n d ; 
             e n d ; 
 
         t e m p   =   b e f o r e   ( o p t i o n _ l i n e ,   " = " ) ; 	 / *   c o p y   t h e   1 s t   m o d e   * / 
         i f   t e m p   =   " " 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( 0 ,   m e ,   " M i s s i n g   m o d e n a m e   i n   ^ a ^ / ^ - ^ a " ,   f i l e _ e n t r y . f i l e , 
 	       o p t i o n _ l i n e ) ; 
                 e r r o r _ s w   =   " 1 " b ; 
             e n d ; 
 
         e l s e   i f   ^ ( d i s p l a y _ s w   |   d u m p _ s w ) 
         t h e n 
             d o ; 
                 m o d e _ l i s t   =   m o d e _ l i s t   | |   " ,   " ; 
                 m o d e _ l i s t   =   m o d e _ l i s t   | |   t e m p ; 
                 i   =   l e n g t h   ( t e m p )   +   1 ; 
                 i f   ( m o d e   =   " " ) 
                 t h e n 
 	 d o ; 
 	     i f   ( m o d e _ a r g   =   " " )   |   ( t e m p   =   m o d e _ a r g ) 
 	     t h e n 
 	         d o ; 
 	             m o d e _ n a m e   =   t e m p ; 
 	             m o d e _ u n p r o c   =   o p t i o n _ l i n e ; 
 	             m o d e   =   a f _ p r o c   ( a f t e r   ( o p t i o n _ l i n e ,   " = " ) ) ; 
 	             o u t p u t _ m e d i u m   =   s u b s t r   ( m o d e ,   1 ,   4 ) ; 
 	             i f   d e b u g _ s w 
 	             t h e n   c a l l   i o a _   ( " m o d e =   ^ a " ,   m o d e ) ; 
 	         e n d ; 
 	 e n d ; 
                 e l s e   i f   ( t e m p   =   m o d e _ n a m e )   &   ( m o d e _ u n p r o c   ^ =   o p t i o n _ l i n e ) 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m _ e r r _   ( 0 ,   m e ,   " M o d e   m i s m a t c h : ^ /       ^ a   ( ^ a ) ^ /       ^ a   ( ^ a ) " , 
 	               o p t i o n _ l i n e ,   f i l e _ e n t r y . f i l e ,   m o d e _ u n p r o c , 
 	               f i l e _ e n t r y _ b a s e _ p t r   ( 1 )   - >   f i l e _ e n t r y . f i l e ) ; 
 	     e r r o r _ s w   =   " 1 " b ; 
 	     r e t u r n ; 
 	 e n d ; 
             e n d ; 
         g o t o   o p t _ r t n _ e n d ; 	 	 / *   f i n i s h e d   w i t h   t h i s   c a s e 	               * / 
 
 o p t _ r t n   ( 2 ) : 	 	 	 / *   l e a d e r :   * / 
         l e a d e r   =   a f _ p r o c   ( o p t i o n _ l i n e ) ; 
         g o t o   o p t _ r t n _ e n d ; 	 	 / *   f i n i s h e d   w i t h   t h i s   c a s e 	               * / 
 
 o p t _ r t n   ( 3 ) : 	 	 	 / *   s e t u p :   * / 
         i f   s e t u p _ s w 
         t h e n   c a l l   i o a _   ( " ^ a " ,   o p t i o n _ l i n e ) ; 
         e l s e   i f   ( d e b u g _ s w   |   ( o u t p u t _ m e d i u m   ^ =   O N L I N E )   |   l o n g _ s w ) 
                   &   ( f i l e _ e n t r y _ p t r   =   f i l e _ e n t r y _ b a s e _ p t r   ( 1 ) ) 
         t h e n 
             d o ; 	 	 	 	 / *   o n l y   f o r   f i r s t   f i l e 	               * / 
                 s e t u p   =   s e t u p   | |   a f _ p r o c   ( o p t i o n _ l i n e ) ; 
                 s e t u p   =   s e t u p   | |   C R L F ; 
             e n d ; 
         g o t o   o p t _ r t n _ e n d ; 	 	 / *   f i n i s h e d   w i t h   t h i s   c a s e 	               * / 
 
 o p t _ r t n   ( 5 ) : 	 	 	 / *   D B :   * / 
         i f   d e b u g _ s w   |   d i s p l a y _ s w 	 	 / *   e i t h e r   - d b   o r   - d i s p l a y   w a s   g i v e n   * / 
         t h e n 
             d o ; 
                 c a l l   h c s _ $ m a k e _ p t r   ( c o d e p t r   ( h e r e ) , 
 	       r t r i m   ( f i l e h e a d e r . d e v i c e )   | |   " . c o m p _ d s m " , 
 	       r t r i m   ( f i l e h e a d e r . d e v i c e )   | |   " . d v t " ,   c o n s t . d v i d p t r ,   c o d e ) ; 
                 i f   c o d e   ^ =   0 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " M a k i n g   a   p o i n t e r   t o   ^ a $ ^ a " , 
 	               r t r i m   ( f i l e h e a d e r . d e v i c e )   | |   " . c o m p _ d s m " , 
 	               r t r i m   ( f i l e h e a d e r . d e v i c e )   | |   " . d v t " ) ; 
 	     e r r o r _ s w   =   " 1 " b ; 
 	 e n d ; 
                 c o n s t . d e v p t r   =   p o i n t e r   ( c o n s t . d v i d p t r ,   c o m p _ d v i d . d v t _ r ) ; 
 
 / *                 c a l l   h c s _ $ m a k e _ e n t r y   ( c o d e p t r   ( h e r e ) , 
 / * 	       r t r i m   ( f i l e h e a d e r . d e v i c e )   | |   " _ w r i t e r _ " ,   " d i s p l a y " , 
 / * 	       c o m p _ d v t . d i s p l a y p r o c ,   c o d e ) ; 
 / *                 i f   c o d e   ^ =   0 
 / *                 t h e n 
 / * 	 d o ; 
 / * 	     c a l l   c o m _ e r r _   ( c o d e ,   m e , 
 / * 	               " S e t t i n g   c o m p _ d v t . d i s p l a y p r o c   t o   ^ a _ w r i t e r _ $ d i s p l a y " , 
 / * 	               r t r i m   ( f i l e h e a d e r . d e v i c e ) ) ; 
 / * 	     e r r o r _ s w   =   " 1 " b ; 
 / * 	 e n d ; * / 
 
 / *                 c a l l   h c s _ $ m a k e _ e n t r y   ( n u l l   ( ) ,   b e f o r e   ( d i s p l a y _ r t n ,   " $ " ) ,   " i n i t " , 
 / * 	       i n i t _ p r o c ,   c o d e ) ; 
 / *                 i f   c o d e   ^ =   0 
 / *                 t h e n 
 / * 	 d o ; 
 / * 	     c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ a $ i n i t " ,   b e f o r e   ( d i s p l a y _ r t n ,   " $ " ) ) ; 
 / * 	     e r r o r _ s w   =   " 1 " b ; 
 / * 	 e n d ; * / 
             e n d ; 
         g o t o   o p t _ r t n _ e n d ; 	 	 / *   f i n i s h e d   w i t h   t h i s   c a s e 	               * / 
 
 o p t _ r t n   ( 8 ) : 	 	 	 / *   f i l e :   * / 
         i f   d e b u g _ s w   |   l o n g _ s w   |   ( o u t p u t _ m e d i u m   ^ =   O N L I N E )   &   ^ ( d i s p l a y _ s w   |   d u m p _ s w ) 
         t h e n 
             d o ; 
                 s e t u p   =   s e t u p   | |   a f _ p r o c   ( o p t i o n _ l i n e ) ; 
                 s e t u p   =   s e t u p   | |   C R L F ; 
             e n d ; 
         g o t o   o p t _ r t n _ e n d ; 	 	 / *   f i n i s h e d   w i t h   t h i s   c a s e 	               * / 
 
         d c l   s e t t i n g 	       b i t   ( 1 ) ; 
 o p t _ r t n   ( 9 ) : 	 	 	 / *   c o n t e n t _ f i l e :   * / 
         i f   ^ d i s p l a y _ s w   &   v o l _ s w 
         t h e n 
             d o ; 
                 i   =   1 ; 
                 d o   w h i l e   ( i   <   l e n g t h   ( o p t i o n _ l i n e ) ) ; 
 	 i f   ( s u b s t r   ( o p t i o n _ l i n e ,   i ,   1 )   =   " ^ " ) 
 	 t h e n 
 	     d o ; 
 	         i   =   i   +   1 ; 
 	         s e t t i n g   =   " 0 " b ; 
 	     e n d ; 
 	 e l s e   s e t t i n g   =   " 1 " b ; 
 	 i f   ( s u b s t r   ( o p t i o n _ l i n e ,   i ,   3 )   =   " s e g " ) 
 	 t h e n 
 	     d o ; 
 	         c o n t e n t s _ s e g _ s w   =   s e t t i n g ; 
 	         i   =   i   +   3 ; 
 	     e n d ; 
 	 e l s e   i f   ( s u b s t r   ( o p t i o n _ l i n e ,   i ,   4 )   =   T A P E ) 
 	 t h e n 
 	     d o ; 
 	         c o n t e n t s _ t a p _ s w   =   s e t t i n g ; 
 	         i   =   i   +   4 ; 
 	     e n d ; 
 	 e l s e 
 	     d o ; 
 	         c a l l   c o m _ e r r _   ( 0 ,   m e ,   " I n v a l i d   c o n t e n t _ f i l e   o p t i o n .   ^ a " , 
 	                   o p t i o n _ l i n e ) ; 
 	         e r r o r _ s w   =   " 1 " b ; 
 	     e n d ; 
 
 	 i f   s u b s t r   ( o p t i o n _ l i n e ,   i ,   1 )   =   " , " 
 	 t h e n   i   =   i   +   1 ; 
                 e n d ; 
             e n d ; 
 
         g o t o   o p t _ r t n _ e n d ; 
 
 o p t _ r t n   ( 6 ) : 	 	 	 / *   b l k h d r : * / 
         c a l l   g a t h e r _ c o n s   ( a f _ p r o c   ( o p t i o n _ l i n e ) ,   t e x t _ c o n s   ( 1 ) ) ; 
         g o t o   o p t _ r t n _ e n d ; 	 	 / *   f i n i s h e d   w i t h   t h i s   c a s e 	               * / 
 % s k i p   ( 5 ) ; 
 o p t _ r t n   ( 7 ) : 	 	 	 / *   b l k t l r :   * / 
         c a l l   g a t h e r _ c o n s   ( a f _ p r o c   ( o p t i o n _ l i n e ) ,   t e x t _ c o n s   ( 2 ) ) ; 
         g o t o   o p t _ r t n _ e n d ; 	 	 / *   f i n i s h e d   w i t h   t h i s   c a s e 	               * / 
 % p a g e ; 
 o p t _ r t n   ( 4 ) : 	 	 	 / *   p a c k :   * / 
         d o n e   =   " 0 " b ; 
         o p t i o n _ l i n e   =   a f _ p r o c   ( o p t i o n _ l i n e ) ; 
         p a c k i   =   1 ; 
         d o   w h i l e   ( ^ d o n e ) ; 
             p a c k _ c t   =   p a c k _ c t   +   1 ; 
             p a c k . c c t   ( p a c k _ c t )   =   0 ; 
             p a c k . c o n   ( p a c k _ c t )   =   " 0 " b ; 
             i t   =   i n d e x   ( " " " c f b " ,   s u b s t r   ( o p t i o n _ l i n e ,   p a c k i ,   1 ) ) ; 
             i f   ( i t   =   0 ) 
             t h e n 
                 d o ; 
 b a d _ p a c k : 
 	 c a l l   c o m _ e r r _   ( 0 ,   m e ,   " S y n t a x   e r r o r   i n   p a c k :   s t a t e m e n t .   ^ a " , 
 	           f i l e _ e n t r y . f i l e ) ; 
 	 e r r o r _ s w   =   " 1 " b ; 
 	 g o t o   d o n e _ p a c k ; 
                 e n d ; 
             p a c k . t y p e   ( p a c k _ c t )   =   i t ; 
             i f   ( i t   =   1 ) 
             t h e n 
                 d o ; 
 c o n _ p a c k : 
 	 p a c k i   =   p a c k i   +   1 ; 
 	 i f   ( s u b s t r   ( o p t i o n _ l i n e ,   p a c k i ,   1 )   ^ =   " " " " ) 
 	 t h e n 
 	     d o ; 
 	         p a c k . c c t   ( p a c k _ c t )   =   p a c k . c c t   ( p a c k _ c t )   +   1 ; 
 	         i f   ( s u b s t r   ( o p t i o n _ l i n e ,   p a c k i ,   0 1 )   =   " 0 " ) 
 	         t h e n   g o t o   c o n _ p a c k ; 
 	         i f   ( s u b s t r   ( o p t i o n _ l i n e ,   p a c k i ,   1 )   ^ =   " 1 " ) 
 	         t h e n   g o t o   b a d _ p a c k ; 
 	         s u b s t r   ( p a c k . c o n   ( p a c k _ c t ) ,   p a c k . c c t   ( p a c k _ c t ) ,   1 )   =   " 1 " b ; 
 	         g o t o   c o n _ p a c k ; 
 	     e n d ; 
                 e n d ; 
             e l s e 
                 d o ; 
 	 p a c k i   =   p a c k i   +   1 ; 
 	 p a c k . c c t   ( p a c k _ c t )   = 
 	           i n d e x   ( " 1 2 3 4 5 6 7 8 9 " ,   s u b s t r   ( o p t i o n _ l i n e ,   p a c k i ,   1 ) ) ; 
 	 i f   ( p a c k . c c t   ( p a c k _ c t )   =   0 ) 
 	 t h e n   g o t o   b a d _ p a c k ; 
 	 i f   ( i t   =   4 ) 
 	 t h e n   p a c k . c c t   ( p a c k _ c t )   =   - p a c k . c c t   ( p a c k _ c t ) ; 
                 e n d ; 
             p a c k i   =   p a c k i   +   1 ; 
             i f   ( s u b s t r   ( o p t i o n _ l i n e ,   p a c k i ,   1 )   =   " ; " ) 
             t h e n 
                 d o ; 
 	 p a c k _ c t   =   p a c k _ c t   +   1 ; 
 	 p a c k . t y p e   ( p a c k _ c t )   =   5 ; 
                 e n d ; 
             e l s e   i f   ( s u b s t r   ( o p t i o n _ l i n e ,   p a c k i ,   1 )   ^ =   " , " ) 
             t h e n   g o t o   b a d _ p a c k ; 
             p a c k i   =   p a c k i   +   1 ; 
             i f   ( p a c k i   >   l e n g t h   ( o p t i o n _ l i n e ) ) 
             t h e n   d o n e   =   " 1 " b ; 
         e n d ; 
         j   =   0 ; 
         d o   p a c k i   =   1   t o   p a c k _ c t ; 
             i f   p a c k . t y p e   ( p a c k i )   <   3 
             t h e n   j   =   j   +   p a c k . c c t   ( p a c k i ) ; 
         e n d ; 
         i f   ( m o d   ( j ,   8 )   ^ =   0 ) 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( 0 ,   m e ,   " p a c k :   l e n g t h   n o t   a   m u l t i p l e   o f   8 " , 
 	       f i l e _ e n t r y . f i l e ) ; 
                 e r r o r _ s w   =   " 1 " b ; 
             e n d ; 
 d o n e _ p a c k : 
         g o t o   o p t _ r t n _ e n d ; 	 	 / *   f i n i s h e d   w i t h   t h i s   c a s e 	               * / 
 
     e n d   p r o c _ c o m m e n t ; 
 % p a g e ; 
 s y n c : 	 	 	 	 / *   r o u t i n e   t o   s y n c h r o n i z e   p r i n t i n g       * / 
     p r o c   ( r e d o ) ; 	 	 	 / *   w i t h   u s e r ' s   p a p e r   h a n d l i n g 	               * / 
 
         d c l   r e d o 	       l a b e l ; 	 	 / *   t r a n s f e r   l a b e l   * / 
 
         d c l   r e p r i n t _ s w 	       b i t   ( 1 ) ; 
         d c l   c u r r e n t _ m o d e s     c h a r   ( 2 5 6 ) ; 
 
         r e p r i n t _ s w   =   " 0 " b ; 
 
 w a i t : 
         c a l l   i o x _ $ c o n t r o l   ( i o x _ $ u s e r _ i n p u t ,   " r e s e t r e a d " ,   n u l l   ( ) ,   c o d e ) ; 
         c a l l   i o x _ $ m o d e s   ( i o x _ $ u s e r _ o u t p u t ,   " r a w o , r a w i " ,   c u r r e n t _ m o d e s ,   c o d e ) ; 
 
         i f   d e v i c e _ c l e a n u p   ^ =   " " 
         t h e n   c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ u s e r _ o u t p u t , 
 	         a d d r e l   ( a d d r   ( d e v i c e _ c l e a n u p ) ,   1 ) ,   l e n g t h   ( d e v i c e _ c l e a n u p ) ,   c o d e ) 
 	         ; 
 
         c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ u s e r _ o u t p u t ,   a d d r   ( s t o p _ s i g n a l ) ,   5 ,   c o d e ) ; 
         c a l l   i o x _ $ g e t _ l i n e   ( i o x _ $ u s e r _ i n p u t ,   a d d r   ( s t o p _ b f r ) ,   1 0 ,   a r g l ,   c o d e ) ; 
         c a l l   i o x _ $ m o d e s   ( i o x _ $ u s e r _ o u t p u t ,   c u r r e n t _ m o d e s ,   " " ,   c o d e ) ; 
 
         i f   a r g l   >   1 
         t h e n 
             d o ; 
                 i f   s u b s t r   ( s t o p _ b f r ,   1 ,   1 )   =   " q " 
                 t h e n   g o t o   f i n i s h ; 
                 i f   s u b s t r   ( s t o p _ b f r ,   1 ,   1 )   =   " r " 
                 t h e n 
 	 d o ; 
 	     r e p r i n t _ s w   =   " 1 " b ; 
 	     g o t o   w a i t ; 
 	 e n d ; 
             e n d ; 
         i f   r e p r i n t _ s w 
         t h e n   g o t o   r e d o ; 
 
     e n d   s y n c ; 
 % p a g e ; 
 / *   o p e n   a   c o m p o u t   f i l e   f o r   r e a d i n g   * / 
 o p e n _ c o m p o u t : 
     p r o c   r e t u r n s   ( b i t   ( 1 ) ) ; 
 
         d c l   S E Q U E N T I A L _ I N P U T 
 	 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 4 ) ; 
         d c l   S T R E A M _ I N P U T       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 1 ) ; 
 
         d c l   e r r o r _ t a b l e _ $ b a d _ f i l e 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ i m p r o p e r _ d a t a _ f o r m a t 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
         d c l   i o x _ $ g e t _ c h a r s   e n t r y   ( p t r ,   p t r ,   f i x e d   b i n   ( 2 1 ) ,   f i x e d   b i n   ( 2 1 ) , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
 
         i f   f i l e _ e n t r y . f i l e   =   " " 	 	 / *   i f   t h i s   f i l e   i s   t o   b e   s k i p p e d   * / 
         t h e n   r e t u r n   ( " 0 " b ) ; 
 
         c a l l 	 	 	 	 / *   a t t a c h   a n d   o p e n   t h e   f i l e   * / 
                   i o x _ $ a t t a c h _ n a m e   ( " p c o _ " ,   i n p u t _ i o c b p ,   " v f i l e _   "   | |   f i l e _ e n t r y . f i l e , 
                   n u l l   ( ) ,   c o d e ) ; 
         i f   c o d e   =   0 
         t h e n   c a l l   i o x _ $ o p e n   ( i n p u t _ i o c b p ,   S E Q U E N T I A L _ I N P U T ,   " 0 " b ,   c o d e ) ; 
         i f   c o d e   ^ =   0 
         t h e n 
             d o ; 	 	 	 	 / *   i f   n o t   a   p r o p e r   s t r u c t u r e d   f i l e   * / 
                 i f   c o d e   =   e r r o r _ t a b l e _ $ b a d _ f i l e 
                 t h e n 
 	 d o ; 	 	 	 / *   t r y   t o   o p e n   a s   a   s t r e a m   f i l e   * / 
 	     c a l l   i o x _ $ o p e n   ( i n p u t _ i o c b p ,   S T R E A M _ I N P U T ,   " 0 " b ,   c o d e ) ; 
 	     i f   c o d e   =   0 	 	 / *   o p e n e d   O K ,   t r y   t o   r e a d   i t   * / 
 	     t h e n 
 	         d o ; 
 	             c a l l   i o x _ $ g e t _ c h a r s   ( i n p u t _ i o c b p ,   a d d r   ( r e p l y _ t e x t ) , 
 	 	   l e n g t h   ( r e p l y _ t e x t ) ,   r e c o r d _ l e n ,   c o d e ) ; 
 	             i f   c o d e   =   0 	 	 / *   r e a d   i t   O K ,   i s   i t   A S C I I   s t u f f ?   * / 
 	             t h e n 
 	                 d o ; 
 	 	 i f   v e r i f y   ( s u b s t r   ( r e p l y _ t e x t ,   1 ,   r e c o r d _ l e n ) ,   c o l l a t e   ( ) ) 
 	 	           =   0 
 	 	 t h e n 	 	 / *   y e p   * / 
 	 	     d o ; 
 	 	         c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i m p r o p e r _ d a t a _ f o r m a t ,   m e , 
 	 	                   " A p p e a r s   t o   b e   a   s t r e a m   f i l e . ^ /         ^ a " , 
 	 	                   f i l e _ e n t r y . f i l e ) ; 
 	 	         g o t o   e r r _ r e t u r n ; 
 	 	     e n d ; 
 	                 e n d ; 
 	         e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   p u t   b a c k   w h a t   w e   h a d 	               * / 
 	     c o d e   =   e r r o r _ t a b l e _ $ b a d _ f i l e ; 
 	 e n d ; 
 
                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " O p e n i n g   ^ a " ,   f i l e _ e n t r y . f i l e ) ; 
                 g o t o   e r r _ r e t u r n ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   r e a d   f i l e   h e a d e r 	               * / 
         c a l l   i o x _ $ r e a d _ r e c o r d   ( i n p u t _ i o c b p ,   f i l e h e a d e r _ p t r ,   8 1 9 2 ,   r e c o r d _ l e n ,   c o d e ) 
                   ; 
         i f   c o d e   =   0 
         t h e n 
             d o ; 
                 i f   f i l e h e a d e r . v e r s i o n   > =   f i l e d a t a _ v e r s i o n _ 3 
                 t h e n   m a x _ t a p e _ f i l e s   =   m a x   ( m a x _ t a p e _ f i l e s ,   f i l e h e a d e r . m a x _ f i l e s ) ; 
 
                 e l s e   i f   f i l e h e a d e r . v e r s i o n   =   f i l e d a t a _ v e r s i o n _ 4 
                 t h e n   p a g e _ l e n g t h   =   f i l e h e a d e r . p a g e _ l e n ; 
 
                 e l s e   i f   f i l e h e a d e r . v e r s i o n   ^ =   f i l e d a t a _ v e r s i o n _ 2 
                 t h e n   c o d e   =   e r r o r _ t a b l e _ $ u n i m p l e m e n t e d _ v e r s i o n ; 
             e n d ; 
 
         i f   c o d e   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " R e a d i n g   h e a d e r   r e c o r d . ^ /         ^ a " , 
 	       f i l e _ e n t r y . f i l e ) ; 
 
 e r r _ r e t u r n : 
                 c a l l   c l o s e _ c o m p o u t   ( ) ; 
                 f i l e _ e n t r y . f i l e   =   " " ; 	 	 / *   d o n t   w a n t   t o   c o n s i d e r   t h i s   a g a i n     * / 
                 r e t u r n   ( " 0 " b ) ; 
             e n d ; 
 
         f i l e _ e n t r y . s e q _ n o   =   - 1 ; 
         r e t u r n   ( " 1 " b ) ; 
 
     e n d   o p e n _ c o m p o u t ; 
 % p a g e ; 
 c l e a n : 
     p r o c ; 
 
         i f   r a w o _ s w 
         t h e n   c a l l   r e s e t _ r a w o ; 
 
         a f _ d a t a _ p t r   =   n u l l   ( ) ; 
         i f   ( t e m p s e g s   ( 1 )   ^ =   n u l l   ( ) ) 
         t h e n   c a l l   r e l e a s e _ t e m p _ s e g m e n t s _   ( m e ,   t e m p s e g s ,   c o d e ) ; 
 
 c l o s e _ c o m p o u t : 
     e n t r y ; 
         i f   ( i n p u t _ i o c b p   ^ =   n u l l   ( ) ) 
         t h e n 
             d o ; 
                 c a l l   i o x _ $ c l o s e   ( i n p u t _ i o c b p ,   c o d e ) ; 
                 c a l l   i o x _ $ d e t a c h _ i o c b   ( i n p u t _ i o c b p ,   c o d e ) ; 
             e n d ; 
         i f   ( t a p e _ i o c b p   ^ =   n u l l   ( ) ) 
         t h e n 
             d o ; 
                 c a l l   i o x _ $ c l o s e   ( t a p e _ i o c b p ,   c o d e ) ; 
                 c a l l   i o x _ $ d e t a c h _ i o c b   ( t a p e _ i o c b p ,   c o d e ) ; 
             e n d ; 
     e n d   c l e a n ; 
 % p a g e ; 
 p r o c _ a r g s : 
     p r o c ; 	 	 	 	 / *   p r o c e s s   c o m m a n d   l i n e   a r g s   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   e n a m e 	       c h a r   ( 3 2 ) ; 	 / *   c o m p o u t   e n t r y n a m e   * / 
         d c l   t p 	       p t r ; 
         d c l   s y s t e m _ f r e e _ p     p t r   i n t   s t a t i c   i n i t   ( n u l l   ( ) ) ; 
         d c l   e _ c 	       f i x e d   b i n ; 
         d c l   e _ p 	       p t r ; 
         d c l   n _ p 	       p t r ; 
         d c l   1   e n t r i e s 	       ( e _ c )   a l i g n e d   b a s e d   ( e _ p ) , 
 	 2   t y p e 	       b i t   ( 2 )   u n a l , 
 	 2   n n a m e s 	       f i x e d   b i n   ( 1 5 )   u n a l , 
 	 2   n i n d e x 	       f i x e d   b i n   ( 1 7 )   u n a l ; 
         d c l   n a m e s 	       ( 3 )   c h a r   ( 3 2 )   b a s e d   ( n _ p ) ; 
 
         d c l   e r r o r _ t a b l e _ $ b a d o p t 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
         d c l   c h e c k _ s t a r _ n a m e _ $ e n t r y 
 	 	       e n t r y   ( c h a r   ( * ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   g e t _ s y s t e m _ f r e e _ a r e a _ 
 	 	       e n t r y   r e t u r n s   ( p t r ) ; 
         d c l   h c s _ $ s t a r _ 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 2 ) ,   p t r , 
 	 	       f i x e d   b i n ,   p t r ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
 	 	 	 	 / *   t h i s   i n i t i a l z a t i o n   c o d e   i s   h e r e   * / 
 	 	 	 	 / *   i n   p r e c o g n i t i o n   o f   t h e   f a c t   t h a t   * / 
 	 	 	 	 / *   p r o c _ a r g s   w i l l   b e   c a l l e d   * / 
 	 	 	 	 / *   r e c u r s i v e l y   t o   p r o c e s s   l i n e s   f r o m   * / 
 	 	 	 	 / *   t h e   y e t - t o - b e - i m p l e m e n t e d   c o n t r o l   * / 
 	 	 	 	 / *   f i l e   f e a t u r e   * / 
         i f   ( f i l e _ e n t r y _ b a s e _ p t r   ( 1 )   =   n u l l   ( ) ) 
 	 	 	 	 / *   f i l e   f e a t u r e   * / 
         t h e n   f i l e _ e n t r y _ b a s e _ p t r   ( * ) ,   f i r s t _ p ,   f i l e _ e n t r y _ p t r   =   t e m p s e g s   ( 2 ) ; 
         e l s e   f i l e _ e n t r y _ b a s e _ p t r   ( 2 ) ,   f i r s t _ p ,   f i l e _ e n t r y _ p t r   = 
 	         a d d r   ( f i l e _ e n t r y . n e x t ) ; 
 
         f i l e _ e n t r y . l i n k   =   n u l l   ( ) ; 
         f i l e _ e n t r y . f i l e   =   " " ; 
         s t r i n g   ( f i l e _ e n t r y . s w s )   =   " 0 " b ; 
         f i l e _ e n t r y . p a g e _ s e l _ c t   =   1 ; 
         f i l e _ e n t r y . f r o m . n u m   ( 1 )   =   0 ; 
         f i l e _ e n t r y . f r o m . i d   ( 1 )   =   " " ; 
         f i l e _ e n t r y . f r o m . s i g n   ( 1 )   =   P O S _ R E L ; 
         f i l e _ e n t r y . t o . n u m   ( 1 )   =   0 ; 
         f i l e _ e n t r y . t o . i d   ( 1 )   =   " " ; 
         f i l e _ e n t r y . t o . s i g n   ( 1 )   =   N E G _ R E L ; 
         s t r i n g   ( a r g _ l i s t . a s i s )   =   " 0 " b ; 
 
         d o   a r g n o   =   1   t o   a r g c t ; 	 	 / *   f i r s t   p r o c e s s   a l l   c o n t r o l   a r g s         * / 
             i f   i n d e x   ( a r g _ l i s t . a r g   ( a r g n o ) ,   " - " )   =   1 
             t h e n 
                 d o ; 
 n e x t _ c t l _ a r g : 	 	 	 / *   c o p y   t o   a u t o m a t i c   * / 
 	 k e y w o r d   =   a r g _ l i s t . a r g   ( a r g n o ) ; 
 	 a r g _ l i s t . a r g   ( a r g n o )   =   " " ; 	 / *   e r a s e   i t ,   l e a v i n g   o n l y   p a t h s   * / 
 
 	 i f   k e y w o r d   =   " - b l o c k " 	 / *   b l o c k i n g   f a c t o r   f e a t u r e 	               * / 
 	 t h e n 
 	     d o ; 	 	 	 / *   c h a n g e   #   p a g e s / f i l e 	               * / 
 	         i f   ( a r g n o   =   a r g c t ) 
 	         t h e n   g o t o   m i s s i n g ; 
 
 	         a r g n o   =   a r g n o   +   1 ; 
 	         m a x _ r e c o r d s   =   c o n v e r t   ( m a x _ r e c o r d s ,   a r g _ l i s t . a r g   ( a r g n o ) ) ; 
 	         a r g _ l i s t . a r g   ( a r g n o )   =   " " ; 
 	     e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   b r i e f   o u t p u t   f e a t u r e 	               * / 
 	 e l s e   i f   k e y w o r d   =   " - b r i e f "   |   k e y w o r d   =   " - b f " 
 	 t h e n 
 	     d o ; 
 	         b r i e f _ s w   =   " 1 " b ; 
 	         l o n g _ s w   =   " 0 " b ; 
 	     e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   p r i n t w h e e l   c h a n g i n g   f e a t u r e   * / 
 	 e l s e   i f   k e y w o r d   =   " - c h a n g e _ p r i n t w h e e l _ f o r _ f i l e "   |   k e y w o r d   =   " - c p w f " 
 	 t h e n   c p w f _ s w   =   " 1 " b ; 
 
 	 e l s e   i f   k e y w o r d   =   " - c h a n g e _ p r i n t w h e e l _ f o r _ p a g e s "   |   k e y w o r d   =   " - c p w p " 
 	 t h e n   c p w f _ s w   =   " 0 " b ; 	 / * * / 
 	 	 	 	 / *   p r i n t   C o m m e n t :   o n l y   * / 
 	 e l s e   i f   k e y w o r d   =   " - c o m m e n t " 
 	 t h e n 
 	     d o ; 
 	         c o m m e n t _ s w   =   " 1 " b ; 
 	     e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c o n t r o l   f i l e   f e a t u r e 	               * / 
 	 e l s e   i f   k e y w o r d   =   " - c o n t r o l _ f i l e "   |   k e y w o r d   =   " - c f " 
 	 t h e n 
 	     d o ; 
 	         i f   a r g n o   =   a r g c t 	 / *   m u s t   n o t   b e   l a s t 	 	               * / 
 	         t h e n   g o t o   m i s s i n g ; 
 
 	         c t l _ f i l e _ c o u n t   =   c t l _ f i l e _ c o u n t   +   1 ; 
 	         a r g n o   =   a r g n o   +   1 ; 
 	         c t l _ f i l e   ( c t l _ f i l e _ c o u n t )   =   a r g _ l i s t . a r g   ( a r g n o ) ; 
 	         a r g _ l i s t . a r g   ( a r g n o )   =   " " ; 
 	     e n d ; 	 	 	 / *   d e b u g g i n g   f e a t u r e 	               * / 
 	 e l s e   i f   k e y w o r d   =   " - d e b u g "   |   k e y w o r d   =   " - d b " 
 	 t h e n 
 	     d o ; 
 	         d e b u g _ s w   =   " 1 " b ; 
 	     e n d ; 	 	 	 / *   d i s p l a y   m o d e   * / 
 	 e l s e   i f   k e y w o r d   =   " - d i s p l a y "   |   k e y w o r d   =   " - d s " 
 	 t h e n 
 	     d o ; 
 	         d i s p l a y _ s w   =   " 1 " b ; 
 	     e n d ; 	 	 	 / *   d u m p   m o d e   * / 
 	 e l s e   i f   k e y w o r d   =   " - d u m p " 
 	 t h e n 
 	     d o ; 
 	         d u m p _ s w   =   " 1 " b ; 
 	     e n d ; 	 	 	 / *   p a g e   s e l e c t i o n   f e a t u r e 	               * / 
 	 e l s e   i f   k e y w o r d   =   " - f r o m "   |   k e y w o r d   =   " - f m " 
 	 t h e n 
 	     d o ; 
 	         f r o m _ t o _ p t r   =   a d d r   ( f i l e _ e n t r y . f r o m   ( 1 ) ) ; 
 f r o m _ t o _ r t n : 
 	         i f   f i l e _ e n t r y . p a g e _ s e l _ c t   >   1 
 	         t h e n 
 	             d o ; 
 	                 e r r o r _ s w   =   " 1 " b ; 
 	                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i n c o n s i s t e n t ,   m e , 
 	 	       " ^ a   c a n n o t   b e   m i x e d   w i t h   - p a g e s " ,   k e y w o r d ) ; 
 	             e n d ; 
 
 	         e l s e 
 	             d o ; 
 	                 i f   ( a r g n o   =   a r g c t ) 
 	                 t h e n   g o t o   m i s s i n g ; 
 
 	                 f r o m _ t o _ s w   =   " 1 " b ; 
 	                 a r g n o   =   a r g n o   +   1 ; 
 	                 c a l l   f r o m _ t o _ p r o c   ( 1 ,   l e n g t h   ( a r g _ l i s t . a r g   ( a r g n o ) ) ) ; 
 	                 a r g _ l i s t . a r g   ( a r g n o )   =   " " ; 
 	             e n d ; 
 	     e n d ; 
 
 	 e l s e   i f   k e y w o r d   =   " - h e a d e r "   |   k e y w o r d   =   " - h e " 
 	 t h e n   h e a d e r _ s w   =   " 1 " b ; 
 
 	 e l s e   i f   k e y w o r d   =   " - n o h e a d e r "   |   k e y w o r d   =   " - n h e " 
 	 t h e n   h e a d e r _ s w   =   " 0 " b ; 
 
 	 e l s e   i f   k e y w o r d   =   " - p a t h n a m e "   |   k e y w o r d   =   " - p n " 
 	 t h e n 	 	 	 / *   u s e   n e x t   a r g   a s   n a m e   w i t h o u t             * / 
 	     d o ; 	 	 	 / *       a d d i n g   . c o m p o u t 	               * / 
 	         i f   a r g n o   =   a r g c t 	 / *   n o   p a t h   g i v e n ?   * / 
 	         t h e n   g o t o   m i s s i n g ; 
 
 	         a r g _ l i s t . a r g   ( a r g n o )   =   " " ; 
 	         a r g n o   =   a r g n o   +   1 ; 	 / *   s t e p   t o   p a t h   a r g   * / 
 	         a r g _ l i s t . a s i s   ( a r g n o )   =   " 1 " b ; 
 	     e n d ; 
 
 	 e l s e   i f   k e y w o r d   =   " - m o d e " 
 	 t h e n 
 	     d o ; 	 	 	 / *   s e l e c t   n o n - d e f a u l t   m o d e 	               * / 
 	         i f   ( a r g n o   =   a r g c t ) 
 	         t h e n   g o t o   m i s s i n g ; 
 
 	         a r g n o   =   a r g n o   +   1 ; 
 	         m o d e _ a r g   =   a r g _ l i s t . a r g   ( a r g n o ) ; 
 
 	         i f   ( m o d e _ a r g   =   " d u m p " ) 
 	         t h e n 
 	             d o ; 
 	                 d u m p _ s w   =   " 1 " b ; 
 	                 m o d e _ a r g   =   " " ; 
 	             e n d ; 
 
 	         e l s e   i f   ( m o d e _ a r g   =   " d i s p l a y " ) 
 	         t h e n 
 	             d o ; 
 	                 d i s p l a y _ s w   =   " 1 " b ; 
 	                 m o d e _ a r g   =   " " ; 
 	             e n d ; 
 
 	         e l s e   i f   ( m o d e _ a r g   =   " c o m m e n t " ) 
 	         t h e n 
 	             d o ; 
 	                 c o m m e n t _ s w   =   " 1 " b ; 
 	                 m o d e _ a r g   =   " " ; 
 	             e n d ; 
 
 	         e l s e   i f   ( m o d e _ a r g   =   " s e t u p " ) 
 	         t h e n 
 	             d o ; 
 	                 s e t u p _ s w   =   " 1 " b ; 
 	                 m o d e _ a r g   =   " " ; 
 	             e n d ; 
 
 	         e l s e   i f   ( m o d e _ a r g   =   " ? " ) 
 	         t h e n 
 	             d o ; 
 	                 m o d e _ s w   =   " 1 " b ; 
 	                 m o d e _ a r g   =   " " ; 
 	             e n d ; 
 
 	         e l s e 
 	             d o ; 
 	                 j   =   ( i n d e x   ( m o d e _ a r g ,   "   " ) ) ; 
 	                 i f   ( j   =   0 ) 
 	                 t h e n   m o d e _ a r g   =   a r g _ l i s t . a r g   ( a r g n o ) ; 
 	                 e l s e   m o d e   =   s u b s t r   ( m o d e _ a r g ,   1 ,   j ) ; 
 	             e n d ; 
 
 	         a r g _ l i s t . a r g   ( a r g n o )   =   " " ; 
 	     e n d ; 
 
 	 e l s e   i f   k e y w o r d   =   " - n o _ b e l l "   |   k e y w o r d   =   " - n o b " 
 	 t h e n   n o b e l l _ s w   =   " 1 " b ; 
 
 	 e l s e   i f   k e y w o r d   =   " - p a g e s "   |   k e y w o r d   =   " - p g s "   |   k e y w o r d   =   " - p a g e " 
 	           |   k e y w o r d   =   " - p g " 
 	 t h e n 
 	     d o ; 	 	 	 / *   p a g e   s e l e c t i o n   f e a t u r e 	               * / 
 	         i f   f r o m _ t o _ s w 
 	         t h e n 
 	             d o ; 
 	                 e r r o r _ s w   =   " 1 " b ; 
 	                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i n c o n s i s t e n t ,   m e , 
 	 	       " - p a g e s   c a n n o t   b e   m i x e d   w i t h   - f r o m / - t o " ) ; 
 	             e n d ; 
 
 	         e l s e 
 	             d o ; 
 	                 i f   a r g n o   =   a r g c t 	 / *   n o n e   l e f t   o r   a n o t h e r   c t l   a r g   * / 
 	 	       |   i n d e x   ( a r g _ l i s t . a r g   ( a r g n o   +   1 ) ,   " - " )   =   1 
 	                 t h e n   g o t o   m i s s i n g ; 
 
 	                 f i l e _ e n t r y . p a g e _ s e l _ c t   =   0 ; 
 	 	 	 	 / *   r e s e t   c o u n t   f o r   l o o p   * / 
 p a g e s _ l o o p : 
 	                 a r g n o   =   a r g n o   +   1 ; 	 / *   i t s   a n o t h e r   c o n t r o l   a r g 	               * / 
 	                 i f   ( s u b s t r   ( a r g _ l i s t . a r g   ( a r g n o ) ,   1 ,   1 )   =   " - " ) 
 	                 t h e n   g o t o   n e x t _ c t l _ a r g ; 
 
 	                 i   =   1 ; 
 	                 f i l e _ e n t r y . p a g e _ s e l _ c t   =   f i l e _ e n t r y . p a g e _ s e l _ c t   +   1 ; 
 	                 l   =   i n d e x   ( a r g _ l i s t . a r g   ( a r g n o ) ,   " , " ) ; 
 
 	                 i f   ( l   =   0 ) 
 	                 t h e n   l   =   l e n g t h   ( a r g _ l i s t . a r g   ( a r g n o ) ) ; 
 	                 e l s e   l   =   l   -   1 ; 
 
 	                 f r o m _ t o _ p t r   = 
 	 	       a d d r   ( f i l e _ e n t r y . f r o m   ( f i l e _ e n t r y . p a g e _ s e l _ c t ) ) ; 
 	                 c a l l   f r o m _ t o _ p r o c   ( i ,   l ) ; 
 	                 f i l e _ e n t r y . t o   ( f i l e _ e n t r y . p a g e _ s e l _ c t )   = 
 	 	       f i l e _ e n t r y . f r o m   ( f i l e _ e n t r y . p a g e _ s e l _ c t ) ; 
 	                 i   =   l   +   2 ; 
 	                 l   =   l e n g t h   ( a r g _ l i s t . a r g   ( a r g n o ) )   -   i   +   1 ; 
 
 	                 i f   ( l   >   0 ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     f r o m _ t o _ p t r   = 
 	 	               a d d r   ( f i l e _ e n t r y . t o   ( f i l e _ e n t r y . p a g e _ s e l _ c t ) ) ; 
 	 	     c a l l   f r o m _ t o _ p r o c   ( i ,   l ) ; 
 	 	 e n d ; 
 
 	                 a r g _ l i s t . a r g   ( a r g n o )   =   " " ; 
 	                 i f   ( a r g n o   <   a r g c t ) 
 	                 t h e n   g o t o   p a g e s _ l o o p ; 
 	             e n d ; 
 	     e n d ; 
 
 	 e l s e   i f   k e y w o r d   =   " - p a g e s _ c h a n g e d "   |   k e y w o r d   =   " - p g c " 
 	 t h e n 
 	     d o ; 
 	         f i l e _ e n t r y . p g c   =   " 1 " b ; 
 	         i f   ( a r g n o   <   a r g c t ) 
 	         t h e n   i f   ( s u b s t r   ( a r g _ l i s t . a r g   ( a r g n o   +   1 ) ,   1 ,   1 )   ^ =   " - " ) 
 	                   t h e n 
 	 	   d o ; 
 	 	       a r g n o   =   a r g n o   +   1 ; 
 
 	 	       i f   ( a r g _ l i s t . a r g   ( a r g n o )   =   " p " ) 
 	 	       t h e n 
 	 	           d o ; 
 	 	               f i l e _ e n t r y . o b v e r s e   =   " 1 " b ; 
 	 	               c a l l   i o a _   ( " W A R N I N G :   p c o   d o e s   n o t   y e t   s u p p o r t " 
 	 	 	     | |   "   t h e   o b v e r s e   o p t i o n " ) ; 
 	 	           e n d ; 
 
 	 	       e l s e   i f   ( a r g _ l i s t . a r g   ( a r g n o )   ^ =   " s " ) 
 	 	       t h e n 
 	 	           d o ; 
 	 	               e r r o r _ s w   =   " 1 " b ; 
 	 	               c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i n c o n s i s t e n t ,   m e , 
 	 	 	     " O b j e c t   o f   ^ a   i s   n o t   a n   a l l o w e d   v a l u e .   ^ a " , 
 	 	 	     k e y w o r d ,   a r g _ l i s t . a r g   ( a r g n o ) ) ; 
 	 	           e n d ; 
 
 	 	       a r g _ l i s t . a r g   ( a r g n o )   =   " " ; 
 	 	   e n d ; 
 	     e n d ; 
 
 	 e l s e   i f   k e y w o r d   =   " - s t o p "   |   k e y w o r d   =   " - s p " 
 	 t h e n 
 	     d o ; 
 	         i f   v o l _ s w 
 	         t h e n   c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i n c o n s i s t e n t ,   m e , 
 	 	         " - s t o p   i g n o r e d   w i t h   - v o l u m e " ) ; 
 	         e l s e   f i l e _ e n t r y . s t o p ,   f i l e _ e n t r y . w a i t   =   " 1 " b ; 
 	     e n d ; 
 
 	 e l s e   i f   k e y w o r d   =   " - v o l u m e " 
 	 t h e n 
 	     d o ; 
 	         i f   ( a r g n o   =   a r g c t ) 
 	         t h e n 
 	             d o ; 
 m i s s i n g : 
 	                 e r r o r _ s w   =   " 1 " b ; 
 	                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i n c o n s i s t e n t ,   m e , 
 	 	       " O b j e c t   o f   ^ a   m i s s i n g . " ,   k e y w o r d ) ; 
 	                 r e t u r n ; 
 	             e n d ; 
 
 	         a r g n o   =   a r g n o   +   1 ; 
 
 	         i f   ( v o l i d   ^ =   " " ) 
 	         t h e n 
 	             d o ; 
 	                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i n c o n s i s t e n t ,   m e , 
 	 	       " ^ [ - v o l u m e   n o t   a l l o w e d   i n   c o n t r o l   f i l e " 
 	 	       | |   " ^ ; d u p l i c a t e   - v o l u m e   s p e c i f i e d " ,   ( v o l i d   =   N O V O L ) ) ; 
 	                 e r r o r _ s w   =   " 1 " b ; 
 	             e n d ; 
 
 	         e l s e 
 	             d o ; 
 	                 v o l i d   =   a r g _ l i s t . a r g   ( a r g n o ) ; 
 	                 v o l _ s w   =   " 1 " b ; 
 	             e n d ; 
 	         a r g _ l i s t . a r g   ( a r g n o )   =   " " ; 
 
 	         i f   f i l e _ e n t r y . s t o p 
 	         t h e n 
 	             d o ; 
 	                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i n c o n s i s t e n t ,   m e , 
 	 	       " - s t o p   i g n o r e d   w i t h   - v o l u m e " ) ; 
 	                 f i l e _ e n t r y . s t o p   =   " 0 " b ; 
 	             e n d ; 
 
 	         i f   f i l e _ e n t r y . w a i t 
 	         t h e n 
 	             d o ; 
 	                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i n c o n s i s t e n t ,   m e , 
 	 	       " - w a i t   i g n o r e d   w i t h   - v o l u m e " ) ; 
 	                 f i l e _ e n t r y . w a i t   =   " 0 " b ; 
 	             e n d ; 
 
 	         i f   d u m p _ s w 
 	         t h e n 
 	             d o ; 
 	                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i n c o n s i s t e n t ,   m e , 
 	 	       " - m o d e   d u m p   - v o l u m e " ) ; 
 	                 v o l i d   =   " " ; 
 	             e n d ; 
 
 	         i f   t a b l e _ s w 
 	         t h e n 
 	             d o ; 
 	                 c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i n c o n s i s t e n t ,   m e , 
 	 	       " - t a b l e   n u l l i f i e s   - v o l u m e " ) ; 
 	                 v o l i d   =   " " ; 
 	             e n d ; 
 	     e n d ; 
 
 	 e l s e   i f   k e y w o r d   =   " - t o " 	 / *   p a g e   s e l e c t i o n   f e a t u r e   * / 
 	 t h e n 
 	     d o ; 
 	         f r o m _ t o _ p t r   =   a d d r   ( f i l e _ e n t r y . t o   ( 1 ) ) ; 
 	         g o t o   f r o m _ t o _ r t n ; 
 	     e n d ; 
 
 	 e l s e   i f   k e y w o r d   =   " - t a b l e "   |   k e y w o r d   =   " - t b " 
 	 t h e n 
 	     d o ; 
 	         t a b l e _ s w   =   " 1 " b ; 
 	     e n d ; 
 
 	 e l s e   i f   k e y w o r d   =   " - w a i t "   |   k e y w o r d   =   " - w t " 
 	 t h e n 
 	     d o ; 
 	         i f   v o l _ s w 
 	         t h e n   c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ i n c o n s i s t e n t ,   m e , 
 	 	         " - w a i t   i g n o r e d   w i t h   - v o l u m e " ) ; 
 	         e l s e   f i l e _ e n t r y . w a i t   =   " 1 " b ; 
 	     e n d ; 
 
 	 e l s e   i f   k e y w o r d   =   " - l g "   |   k e y w o r d   =   " - l o n g " 
 	 t h e n 
 	     d o ; 
 	         b r i e f _ s w   =   " 0 " b ; 
 	         l o n g _ s w   =   " 1 " b ; 
 	     e n d ; 
 
 	 e l s e 
 	     d o ; 
 	         c a l l   c o m _ e r r _   ( e r r o r _ t a b l e _ $ b a d o p t ,   m e ,   " " " ^ a " " " ,   k e y w o r d ) ; 
 	         e r r o r _ s w   =   " 1 " b ; 
 	     e n d ; 
                 e n d ; 
         e n d ; 
 
 / *   i t s   a   f i l e   n a m e   * / 
         d o   a r g n o   =   1   t o   a r g c t ; 
             i f   a r g _ l i s t . a r g   ( a r g n o )   ^ =   " " 
             t h e n 
                 d o ; 
 	 c a l l   e x p a n d _ p a t h n a m e _   ( ( a r g _ l i s t . a r g   ( a r g n o ) ) ,   d n a m e ,   e n a m e ,   c o d e ) ; 
 	 i f   c o d e   ^ =   0 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " E x p a n d i n g   p a t h   f o r   ^ a " , 
 	                   a r g _ l i s t . a r g   ( a r g n o ) ) ; 
 	         e r r o r _ s w   =   " 1 " b ; 
 	         r e t u r n ; 
 	     e n d ; 
 
 	 i f   a r g _ l i s t . a s i s   ( a r g n o ) 
 	 t h e n   e n a m e   =   r t r i m   ( e n a m e ) ; 
 	 e l s e   e n a m e   =   b e f o r e   ( r t r i m   ( e n a m e ) ,   " . c o m p o u t " )   | |   " . c o m p o u t " ; 
 
 	 c a l l   c h e c k _ s t a r _ n a m e _ $ e n t r y   ( e n a m e ,   c o d e ) ; 
 	 	 	 	 / *   c h e c k   f o r   s t a r   n a m e   * / 
 
 	 i f   c o d e   =   0 	 	 / *   0   =   n o t   a   s t a r   n a m e   * / 
 	 t h e n   c a l l   a d d _ l i n k e d _ f i l e ; 	 / *   a d d   a   n e w   f i l e   t o   t h e   l i n k e d   l i s t   * / 
 
 	 e l s e 
 	     d o ; 
 	         i f   ( c o d e   >   2 ) 
 	         t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ a " ,   e n a m e ) ; 
 
 	         e l s e 
 	             d o ; 
 	                 i f   ( s y s t e m _ f r e e _ p   =   n u l l   ( ) ) 
 	                 t h e n   s y s t e m _ f r e e _ p   =   g e t _ s y s t e m _ f r e e _ a r e a _   ( ) ; 
 	                 c a l l   h c s _ $ s t a r _   ( d n a m e ,   e n a m e ,   3 ,   s y s t e m _ f r e e _ p ,   e _ c ,   e _ p , 
 	 	       n _ p ,   c o d e ) ; 
 	                 i f   ( c o d e   ^ =   0 ) 
 	                 t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " ^ a > ^ a " ,   d n a m e ,   e n a m e ) ; 
 
 	                 e l s e 
 	 	 d o ; 
 	 	     d o   i   =   1   t o   e _ c ; 
 	 	         a r g c t   =   a r g c t   +   1 ; 
 	 	         e n a m e   =   n a m e s   ( e n t r i e s   ( i ) . n i n d e x ) ; 
 	 	         c a l l   a d d _ l i n k e d _ f i l e ; 
 	 	     e n d ; 
 	 	     f r e e   e n t r i e s ; 
 	 	     f r e e   n a m e s ; 
 	 	 e n d ; 
 	             e n d ; 
 	     e n d ; 
                 e n d ; 
         e n d ; 
 
         i f   v o l _ s w   &   ^ d i s p l a y _ s w 
         t h e n   c o n t e n t s _ s e g _ s w   =   " 1 " b ; 
 
         d c l   d n a m e 	       c h a r   ( 1 6 8 ) ; 
 
 a d d _ l i n k e d _ f i l e : 
     p r o c ; 
 
         g i v e n _ f i l e _ c o u n t   =   g i v e n _ f i l e _ c o u n t   +   1 ; 
         i f   ( f i l e _ e n t r y . f i l e   ^ =   " " ) 
         t h e n 
             d o ; 	 	 	 	 / *   n e x t   e n t r y 	               * / 
                 t p ,   f i l e _ e n t r y . l i n k   =   a d d r   ( f i l e _ e n t r y . n e x t ) ; 
                 f i l e _ e n t r y _ p t r   =   f i r s t _ p ; 	 / *   m a k e   s u r e   t h e   r e f e r e n c e   t o 	               * / 
 	 	 	 	 / *       f i l e _ e n t r y . p a g e _ s e l _ c t   i n   t h e       * / 
 	 	 	 	 / *       n e x t   m o v e   r e f e r s   t o   t h e   o n e           * / 
 	 	 	 	 / *       b e i n g   m o v e d 	 	               * / 
                 t p   - >   f i l e _ e n t r y   =   f i l e _ e n t r y ; 	 / *   c o p y   i n   a l l   c o n t r o l   d a t a 	               * / 
                 f i l e _ e n t r y _ p t r   =   t p ; 	 	 / *   p o i n t   t o   t h e   n e w   e n t r y 	               * / 
                 f i l e _ e n t r y . l i n k   =   n u l l   ( ) ; 	 / *   m a k e   s u r e   l i s t   e n d s 	               * / 
             e n d ; 
 
         f i l e _ e n t r y . e n a m e   =   r t r i m   ( e n a m e ) ; 	 / *   r e c o r d   f i l e   n a m e 	 	               * / 
         f i l e _ e n t r y . f i l e   =   r t r i m   ( d n a m e ) ; 	 / *   c o n t r u c t   a b s o l u t e   p a t h 	               * / 
         f i l e _ e n t r y . f i l e   =   f i l e _ e n t r y . f i l e   | |   " > " ; 
         f i l e _ e n t r y . f i l e   =   f i l e _ e n t r y . f i l e   | |   f i l e _ e n t r y . e n a m e ; 
 
     e n d   a d d _ l i n k e d _ f i l e ; 
 
 f r o m _ t o _ p r o c : 
     p r o c   ( b e g ,   l e n ) ; 
 
         d c l   ( b e g ,   l e n ) 	       f i x e d   b i n ; 
 
         f r o m _ t o . i d   =   s u b s t r   ( a r g _ l i s t . a r g   ( a r g n o ) ,   b e g ,   l e n ) ; 
         i f   ( s u b s t r   ( a r g _ l i s t . a r g   ( a r g n o ) ,   b e g ,   l e n )   =   " $ " ) 
         t h e n 
             d o ; 
                 f r o m _ t o . s i g n   =   N E G _ R E L ; 
                 f r o m _ t o . n u m   =   0 ; 
             e n d ; 
         e l s e   i f   ( s u b s t r   ( a r g _ l i s t . a r g   ( a r g n o ) ,   b e g ,   1 )   =   " + " ) 
         t h e n 
             d o ; 
                 f r o m _ t o . s i g n   =   P O S _ R E L ; 
                 f r o m _ t o . n u m   = 
 	       c o n v e r t   ( f r o m _ t o . n u m , 
 	       s u b s t r   ( a r g _ l i s t . a r g   ( a r g n o ) ,   b e g   +   1 ,   l e n   -   1 ) ) ; 
             e n d ; 
         e l s e   i f   i n d e x   ( s u b s t r   ( a r g _ l i s t . a r g   ( a r g n o ) ,   b e g ) ,   " $ - " )   =   1 
         t h e n 
             d o ; 
                 f r o m _ t o . s i g n   =   N E G _ R E L ; 
                 f r o m _ t o . n u m   = 
 	       c o n v e r t   ( f r o m _ t o . n u m , 
 	       s u b s t r   ( a r g _ l i s t . a r g   ( a r g n o ) ,   b e g   +   2 ,   l e n   -   2 ) ) ; 
             e n d ; 
         e l s e   i f   ( s u b s t r   ( a r g _ l i s t . a r g   ( a r g n o ) ,   b e g ,   1 )   =   " ! " ) 
         t h e n 
             d o ; 
                 f r o m _ t o . s i g n   =   A B S ; 
                 f r o m _ t o . n u m   = 
 	       c o n v e r t   ( f r o m _ t o . n u m , 
 	       s u b s t r   ( a r g _ l i s t . a r g   ( a r g n o ) ,   b e g   +   1 ,   l e n   -   1 ) ) ; 
             e n d ; 
         e l s e 
             d o ; 
                 f r o m _ t o . s i g n   =   S E A R C H _ I D ; 
                 f r o m _ t o . n u m   =   0 ; 
             e n d ; 
     e n d   f r o m _ t o _ p r o c ; 
 
     e n d   p r o c _ a r g s ; 
 % p a g e ; 
 s e t _ r a w o : 
     p r o c ; 
 
         i f   ^ r a w o _ s w 
         t h e n 
             d o ; 
                 c a l l   i o x _ $ m o d e s   ( i o x _ $ u s e r _ o u t p u t ,   " r a w o " ,   " " ,   c o d e ) ; 
                 i f   c o d e   ^ =   0 
                 t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " S e t t i n g   R A W O   m o d e . " ) ; 
                 r a w o _ s w   =   " 1 " b ; 
             e n d ; 
 
     e n d   s e t _ r a w o ; 
 
 r e s e t _ r a w o : 
     p r o c ; 
 
         c a l l   i o x _ $ m o d e s   ( i o x _ $ u s e r _ o u t p u t ,   " ^ r a w o " ,   " " ,   c o d e ) ; 
 	 	 	 	 / *   l e a v e   R A W O   m o d e 	 	               * / 
         i f   c o d e   ^ =   0 
         t h e n   c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " R e s e t t i n g   R A W O   m o d e . " ) ; 
         r a w o _ s w   =   " 0 " b ; 	 	 	 / *   d o n t   w a n t   c l e a n _   t o   t r y   a g a i n           * / 
 
     e n d   r e s e t _ r a w o ; 
 % p a g e ; 
 / *   T h i s   r o u t i n e   h a n d l e s   w r i t i n g   t h e   d e v i c e   s t r i n g   t o   t a p e . 	 	               * / 
 
 p u t _ t a p e : 
     p r o c   ( d o i n g ) ; 
 
         d c l   d o i n g 	       f i x e d   b i n ; 	 / *   1 - b e g i n   2 - e n d 	 	               * / 
 
         d c l   i i 	       f i x e d   b i n   ( 2 4 ) ; 
         d c l   t p 	       p t r ; 
         d c l   t l 	       f i x e d   b i n   ( 2 4 ) ; 
         d c l   a t d 	       c h a r   ( 2 5 6 )   v a r ; 
         d c l   b p 	       p t r ; 
         d c l   b l 	       f i x e d   b i n   ( 2 4 ) ; 
         d c l   b i 9 	       f i x e d   b i n ; 
         d c l   b i t 9 	       b i t   ( 9 ) ; 
         d c l   b i t 3 6 	       b i t   ( 3 6 )   v a r ; 
         d c l   1   b s 	       ( 1 0 0 0 0 )   b a s e d   ( b p ) , 
 	 2   x 	       b i t   ( 1 )   u n a l , 	 / *   m u s t   b e   " 0 " b ,   t h r o w n   a w a y 	               * / 
 	 2   d 	       b i t   ( 8 ) ; 	 / *   t h e s e   b i t s   g e t   o n   t a p e 	               * / 
         d c l   p a c k _ i 	       f i x e d   b i n   ( 2 4 ) ; 
 
         g o t o   f u n c   ( d o i n g ) ; 
 
 f u n c   ( 2 ) : 
         i f   ( r e c o r d _ b y t e s   <   1 )   |   ( r e c o r d _ b y t e s   >   9 9 9 9 9 ) 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( 0 ,   m e ,   " N o t   0 < r e c o r d _ b y t e s < 9 9 9 9 9 .   ^ a " ,   f i l e _ e n t r y . f i l e ) ; 
                 g o t o   f i n i s h ; 
             e n d ; 
         v o l _ f i l e _ c t   =   v o l _ f i l e _ c t   +   1 ; 	 / *   o p e n   n e x t   f i l e   o n   v o l u m e 	               * / 
         b p ,   t p   =   p a g e _ r e c o r d _ p t r ; 
         b l ,   t l   =   o u t p u t _ t e x t _ l e n ; 
         i f   ( v o l _ f i l e _ c t   =   1 )   &   c o n t e n t s _ t a p _ s w 
 	 	 	 	 / *   f i r s t   f i l e   o n   t a p e   i s   t h e 	               * / 
         t h e n 
             d o ; 	 	 	 	 / *       t a b l e - o f - c o n t e n t s 	               * / 
                 b p   =   a d d r e l   ( a d d r   ( c o n t e n t s ) ,   1 ) ; 
                 b l   =   l e n g t h   ( c o n t e n t s ) ; 
             e n d ; 
         i f   ( v o l _ f i l e _ c t   >   m a x _ t a p e _ f i l e s ) 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( 0 ,   " L i m i t   o f   ^ a   f i l e s / t a p e   s u r p a s s e d .   ^ a " , 
 	       m a x _ t a p e _ f i l e s ,   f i l e _ e n t r y . f i l e ) ; 
                 g o t o   f i n i s h ; 
             e n d ; 
         n n n   =   v o l _ f i l e _ c t ; 
         a t d   =   b e f o r e   ( m o d e ,   "   " ) ; 
         a t d   =   a t d   | |   "   " ; 
         a t d   =   a t d   | |   v o l i d ; 
         a t d   =   a t d   | |   a f t e r   ( m o d e ,   "   " ) ; 
         i f   ( v o l _ f i l e _ c t   < =   c o n t e n t s _ l ) 
         t h e n   a t d   =   a t d   | |   "   - r e t a i n   a l l " ; 
         a t d   =   a t d   | |   "   - r i n g   - c r e a t e   - n u m b e r   " ; 
         a t d   =   a t d   | |   n n n ; 
 
         c a l l   i o x _ $ a t t a c h _ n a m e   ( " p c o _ t a p e _ " ,   t a p e _ i o c b p ,   ( a t d ) ,   n u l l   ( ) ,   c o d e ) ; 
         i f   c o d e   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " A t t a c h i n g   p c o _ t a p e _   ^ a " ,   a t d ) ; 
                 g o t o   f i n i s h ; 
             e n d ; 
 
         c a l l   i o x _ $ o p e n   ( t a p e _ i o c b p ,   5 ,   " 0 " b ,   c o d e ) ; 
         i f   c o d e   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " O p e n i n g   v o l u m e   " " ^ a " "   - n u m b e r   ^ a " ,   v o l i d , 
 	       n n n ) ; 
                 e r r o r _ s w   =   " 1 " b ; 
             e n d ; 
 
         e l s e 
             d o ; 
                 i f   ( v o l _ f i l e _ c t   >   1   |   ^ c o n t e n t s _ t a p _ s w )   &   p a c k _ c t   >   0 
                 t h e n 
 	 d o ; 
 ( n o s t r g ) : 
 	     s u b s t r   ( o u t p u t _ t e x t ,   o u t p u t _ t e x t _ l e n   +   1 ,   1 )   =   "   " ; 
 	     b p   =   a d d r   ( t e x t _ c   ( d i v i d e   ( o u t p u t _ t e x t _ l e n   +   4 ,   4 ,   2 4 ,   0 )   *   4 ) ) ; 
 	     p a c k _ i   =   0 ; 
 	     b l   =   0 ; 
 	     b i t 3 6   =   " " b ; 
 	     d o   i   =   1   t o   o u t p u t _ t e x t _ l e n , 
 	               o u t p u t _ t e x t _ l e n   +   1   r e p e a t   ( o u t p u t _ t e x t _ l e n   +   1 ) 
 	               w h i l e   ( l e n g t h   ( b i t 3 6 )   >   0 ) ; 
 	         b i t 9   =   u n s p e c   ( s u b s t r   ( o u t p u t _ t e x t ,   i ,   1 ) ) ; 
 	         b i 9   =   1 ; 
 p k d : 
 	         p a c k _ i   =   p a c k _ i   +   1 ; 
 	         g o t o   p k   ( p a c k . t y p e   ( p a c k _ i ) ) ; 
 p k   ( 1 ) : 
 	         b i t 3 6   =   b i t 3 6 
 	                   | |   s u b s t r   ( p a c k . c o n   ( p a c k _ i ) ,   1 ,   p a c k . c c t   ( p a c k _ i ) ) ; 
 	         g o t o   p k d ; 
 p k   ( 2 ) : 
 	         b i t 3 6   =   b i t 3 6   | |   s u b s t r   ( b i t 9 ,   b i 9 ,   p a c k . c c t   ( p a c k _ i ) ) ; 
 p k   ( 4 ) : 
 p k   ( 3 ) : 
 	         b i 9   =   b i 9   +   p a c k . c c t   ( p a c k _ i ) ; 
 	         g o t o   p k d ; 
 p k   ( 5 ) : 
 	         i f   ( p a c k _ c t   =   p a c k _ i ) 
 	         t h e n   p a c k _ i   =   0 ; 
 	         d o   w h i l e   ( l e n g t h   ( b i t 3 6 )   > =   8 ) ; 
 	             b l   =   b l   +   1 ; 
 	             b s . x   ( b l )   =   " 0 " b ; 
 	             b s . d   ( b l )   =   s u b s t r   ( b i t 3 6 ,   1 ,   8 ) ; 
 	             i f   ( l e n g t h   ( b i t 3 6 )   =   8 ) 
 	             t h e n   b i t 3 6   =   " " b ; 
 	             e l s e   b i t 3 6   =   s u b s t r   ( b i t 3 6 ,   9 ) ; 
 	         e n d ; 
 	     e n d ; 
 	 e n d ; 
                 u n s p e c   ( s u b s t r   ( b p   - >   o u t p u t _ t e x t ,   b l   +   1 ,   r e c o r d _ b y t e s ) )   =   " 0 " b ; 
 	 	 	 	 / *   p a d   o u t   l a s t   r e c o r d 	               * / 
                 d o   i i   =   1   t o   b l   b y   r e c o r d _ b y t e s ; 
 	 c a l l   i o x _ $ w r i t e _ r e c o r d   ( t a p e _ i o c b p ,   a d d r   ( b p   - >   t e x t _ c   ( i i ) ) , 
 	           r e c o r d _ b y t e s ,   c o d e ) ; 
 	 i f   c o d e   ^ =   0 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " W r i t i n g   v o l u m e   " " ^ a " "   - n u m b e r   ^ a " , 
 	                   v o l i d ,   n n n ) ; 
 	     e n d ; 
                 e n d ; 
                 c a l l   i o x _ $ c l o s e   ( t a p e _ i o c b p ,   c o d e ) ; 
             e n d ; 
 
         c a l l   i o x _ $ d e t a c h _ i o c b   ( t a p e _ i o c b p ,   c o d e ) ; 
 
         i f   ( v o l _ f i l e _ c t   =   1 )   &   c o n t e n t s _ t a p _ s w 
         t h e n 
             d o ; 
                 b p   =   t p ; 
                 b l   =   t l ; 
                 g o t o   f u n c   ( 2 ) ; 
             e n d ; 
 f u n c   ( 1 ) : 
         r e t u r n ; 
 
     e n d   p u t _ t a p e ; 
 % p a g e ; 
 / *   T h i s   r o u t i n e   h a n d l e s   t h e   p u n c h i n g   o f   6 - l e v e l   t a p e   o n   8 - l e v e l   s p e c i a l l y         * / 
 / *     m o d i f i e d   T N 3 0 0   p u n c h . 	 	 	 	 	               * / 
 
 p u t _ p u n c h : 
     p r o c   ( d o i n g ) ; 
 
         d c l   d o i n g 	       f i x e d   b i n ; 	 / *   1 - b e g i n   2 - e n d 	 	               * / 
 
         d c l   i 	 	       f i x e d   b i n   ( 2 4 ) ; 
 
         g o t o   f u n c   ( d o i n g ) ; 
 
 f u n c   ( 2 ) : 
         c a l l   l e t t e r s   ( "           >   >       "   | |   w h a t   | |   "                     ? " ) ; 
         o u t p u t _ t e x t _ l e n   =   o u t p u t _ t e x t _ l e n   +   2 ; 
         s u b s t r   ( o u t p u t _ t e x t ,   o u t p u t _ t e x t _ l e n   -   1 ,   1 )   =   " ? " ; 
         s u b s t r   ( o u t p u t _ t e x t ,   o u t p u t _ t e x t _ l e n ,   1 )   =   P C H o f f ; 
         d o   i   =   1   t o   d i v i d e   ( o u t p u t _ t e x t _ l e n   +   3 ,   4 ,   1 7 ,   0 ) ; 
             w o r d   ( i )   =   w o r d   ( i )   |   " 1 0 0 1 0 0 1 0 0 1 0 0 " b 3 ; 
         e n d ; 
 
         c a l l   i o a _   ( " ( M u s t   b e   o n   T N 3 0 0 )   T u r n   t r a n s p a r e n c y   O N   a n d   h i t   r e t u r n . " ) ; 
         c a l l   i o a _   ( " W h e n   p u n c h   s t o p s ,   t u r n   t r a n s p a r e n c y   O F F   a n d   h i t   r e t u r n . " ) ; 
         c a l l   i o x _ $ g e t _ l i n e   ( i o x _ $ u s e r _ i n p u t ,   a d d r   ( k e y w o r d ) ,   1 0 ,   0 ,   c o d e ) ; 
         c a l l   i o x _ $ m o d e s   ( i o x _ $ u s e r _ o u t p u t ,   " r a w o " ,   " " ,   c o d e ) ; 
         c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ u s e r _ o u t p u t ,   p a g e _ r e c o r d _ p t r ,   o u t p u t _ t e x t _ l e n , 
                   c o d e ) ; 
         c a l l   i o x _ $ m o d e s   ( i o x _ $ u s e r _ o u t p u t ,   " ^ r a w o " ,   " " ,   c o d e ) ; 
         c a l l   i o x _ $ g e t _ l i n e   ( i o x _ $ u s e r _ i n p u t ,   a d d r   ( k e y w o r d ) ,   1 0 ,   0 ,   c o d e ) ; 
         c a l l   i o a _   ( " P u n c h e d   ^ i   c h a r a c t e r s ,   ^ . 3 f   f e e t " ,   o u t p u t _ t e x t _ l e n , 
                   d e c   ( o u t p u t _ t e x t _ l e n )   /   1 2 0 ) ; 
         r e t u r n ; 
 
 f u n c   ( 1 ) : 
         s u b s t r   ( o u t p u t _ t e x t ,   1 ,   1 )   =   P C H o n ;   / *   p u t   h e a d e r 	 	               * / 
         s u b s t r   ( o u t p u t _ t e x t ,   2 ,   1 )   =   " ? " ; 
         o u t p u t _ t e x t _ l e n   =   2 ; 
         f i l e _ e n t r y . s e q _ n o   =   f i l e _ e n t r y . s e q _ n o   +   1 ; 
         w h a t   =   f i l e _ e n t r y . e n a m e ; 
         w h a t   =   w h a t   | |   " - " ; 
         w h a t   =   w h a t   | |   l t r i m   ( c h a r   ( f i l e _ e n t r y . s e q _ n o ) ) ; 
         c a l l   l e t t e r s   ( "               " ) ; 
         c a l l   l e t t e r s   ( ( w h a t ) ) ; 
         c a l l   l e t t e r s   ( "         >   >       " ) ; 
         c a l l   l e t t e r s   ( ( l e a d e r ) ) ; 
         c a l l   l e t t e r s   ( "             " ) ; 
         r e t u r n ; 
 
         d c l   P C H o n 	       c h a r   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "  " ) ; 
         d c l   P C H o f f 	       c h a r   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "  " ) ; 
 
 l e t t e r s : 
     p r o c   ( s ) ; 
 
         d c l   s 	 	       c h a r   ( * ) ; 
 
         d c l   ( i ,   j ) 	       f i x e d   b i n ; 
 
         d o   i   =   1   t o   l e n g t h   ( s ) ; 
             j   =   i n d e x   ( 
 	   " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 1 2 3 4 5 6 7 8 9 0 . _ - > ~ ! " 
 	   ,   s u b s t r   ( s ,   i ,   1 ) ) ; 
             i f   ( j   >   2 6 ) 
             t h e n   j   =   j   -   2 6 ; 
             o u t p u t _ t e x t _ l e n   =   o u t p u t _ t e x t _ l e n   +   l e n g t h   ( h o l e s   ( j ) ) ; 
             s u b s t r   ( o u t p u t _ t e x t ,   o u t p u t _ t e x t _ l e n   -   l e n g t h   ( h o l e s   ( j ) )   +   1 , 
 	   l e n g t h   ( h o l e s   ( j ) ) )   =   h o l e s   ( j ) ; 
         e n d ; 
 
         d c l   h o l e s 	       ( 0 : 4 2 )   c h a r   ( 8 )   v a r   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " @ @ @ @ @ " , 	 / *       * / 
 	 	       " @ | J | " , 	 / *   A   * / 
 	 	       " @ ~ j j T " , 	 / *   B   * / 
 	 	       " @ \ b b " , 	 / *   C   * / 
 	 	       " @ ~ b \ " , 	 / *   D   * / 
 	 	       " @ ~ j j " , 	 / *   E   * / 
 	 	       " @ ~ J J " , 	 / *   F   * / 
 	 	       " @ \ b j z " , 	 / *   G   * / 
 	 	       " @ ~ H H ~ " , 	 / *   H   * / 
 	 	       " @ b ~ b " , 	 / *   I   * / 
 	 	       " @ ` ` ~ " , 	 / *   J   * / 
 	 	       " @ ~ H T b " , 	 / *   K   * / 
 	 	       " @ ~ ` ` " , 	 / *   L   * / 
 	 	       " @ ~ D H D ~ " , 	 / *   M   * / 
 	 	       " @ ~ D H ~ " , 	 / *   N   * / 
 	 	       " @ ~ b b ~ " , 	 / *   O   * / 
 	 	       " @ ~ J J D " , 	 / *   P   * / 
 	 	       " @ \ b j R l " , 	 / *   Q   * / 
 	 	       " @ ~ J J t " , 	 / *   R   * / 
 	 	       " @ d j j R " , 	 / *   S   * / 
 	 	       " @ B B ~ B B " , 	 / *   T   * / 
 	 	       " @ ~ ` ~ " , 	 / *   U   * / 
 	 	       " @ ^ ` ^ " , 	 / *   V   * / 
 	 	       " @ ~ ` \ ` ~ " , 	 / *   W   * / 
 	 	       " @ b T H T b " , 	 / *   X   * / 
 	 	       " @ B D x D B " , 	 / *   Y   * / 
 	 	       " @ r j f b " , 	 / *   Z   * / 
 	 	       " @ D ~ " , 	 	 / *   1   * / 
 	 	       " @ d r j d " , 	 / *   2   * / 
 	 	       " @ R b f Z " , 	 / *   3   * / 
 	 	       " @ N H ~ H " , 	 / *   4   * / 
 	 	       " @ N j j R " , 	 / *   5   * / 
 	 	       " @ \ j j X " , 	 / *   6   * / 
 	 	       " @ B r J F " , 	 / *   7   * / 
 	 	       " @ T j j T " , 	 / *   8   * / 
 	 	       " @ D j j \ " , 	 / *   9   * / 
 	 	       " @ \ b b \ " , 	 / *   0   * / 
 	 	       " @ p p " , 	 	 / *   .   * / 
 	 	       " @ ` ` ` ` " , 	 / *   _   * / 
 	 	       " @ H H H H " , 	 / *   -   * / 
 	 	       " @ H \ ~ " , 	 / *   >   * / 
 	 	       " W q " , 	 	 / *   n o F L A S H   * / 
 	 	       " W M " ) ; 	 	 / *   F L A S H   * / 
     e n d   l e t t e r s ; 
     e n d   p u t _ p u n c h ; 
         d c l   w h a t 	       c h a r   ( 4 4 )   v a r ; 	 / *   n a m e   o f   w h a t   i s   b e i n g   w o r k e d   o n       * / 
 % p a g e ; 
 / *   T h i s   r o u t i n e   h a n d l e s   t h e   - d b / - d i s p l a y   o u t p u t   o f   t h e   d e v i c e   s t r i n g . 	               * / 
 
 p u t _ o n l i n e : 
     p r o c   ( d o i n g ) ; 
 
         d c l   d o i n g 	       f i x e d   b i n ; 	 / *   1 - b e g i n ,   2 - e n d 	 	               * / 
 
         d c l   d b _ d i s p l _ s t r       c h a r   ( 4 0 9 6 )   v a r ;   / *   t h e   i n t e r p r e t e d   s t r i n g   * / 
         d c l   d l e n 	       f i x e d   b i n ; 
         d c l   ( i ,   j ) 	       f i x e d   b i n   ( 2 4 ) ; 
         d c l   i b l k 	       f i x e d   b i n   ( 2 4 ) ; 
 
         d c l   1   d e l a y 	       i n t e r n a l   s t a t i c   a l i g n e d , 
 	 2   v e r s i o n 	       f i x e d   b i n   i n i t   ( 1 ) , 
 	 2   d e f a u l t 	       f i x e d   b i n , 
 	 2   v a l u e s 	       l i k e   i n p u t _ d e l a y s ; 
         d c l   E S C 	       c h a r   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "  " ) ; 
         d c l   1   i n p u t _ d e l a y s   a l i g n e d , 	 / *   s u p p l i e d   v a l u e s   f o r   d e l a y   s e t t i n g   * / 
 	 2   v e r t _ n l 	       f i x e d   b i n , 
 	 2   h o r z _ n l 	       f l o a t   b i n , 
 	 2   c o n s t _ t a b     f i x e d   b i n , 
 	 2   v a r _ t a b 	       f l o a t   b i n , 
 	 2   b a c k s p a c e     f i x e d   b i n , 
 	 2   v t _ f f 	       f i x e d   b i n ; 
 
         d c l   i o x _ $ c o n t r o l       e n t r y   ( p t r ,   c h a r   ( * ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ u s e r _ i o       p t r   e x t   s t a t i c ; 
 
         i f   d o i n g   =   E N D 
         t h e n 
             d o ; 
                 i f   i o x _ $ u s e r _ o u t p u t   =   i o x _ $ u s e r _ i o 
                 t h e n 
 	 d o ; 
 	     c a l l   i o x _ $ c o n t r o l   ( i o x _ $ u s e r _ o u t p u t ,   " g e t _ d e l a y " ,   a d d r   ( d e l a y ) , 
 	               c o d e ) ; 
 	     i n p u t _ d e l a y s   =   d e l a y . v a l u e s ; 
 	     d e l a y . h o r z _ n l   =   0 . 3 ; 
 	     c a l l   i o x _ $ c o n t r o l   ( i o x _ $ u s e r _ o u t p u t ,   " s e t _ d e l a y " ,   a d d r   ( d e l a y ) , 
 	               c o d e ) ; 
 	     d e l a y . v a l u e s   =   i n p u t _ d e l a y s ; / *   r e s t o r e   f o r   r e t u r n   * / 
 
 	     o n   c l e a n u p 
 	         c a l l   i o x _ $ c o n t r o l   ( i o x _ $ u s e r _ o u t p u t ,   " s e t _ d e l a y " ,   a d d r   ( d e l a y ) , 
 	                   c o d e ) ; 
 	 e n d ; 
 
 / *                 c a l l   i o a _   ( " ^ /       * * * *   F I L E   # ^ i   * * * * ^ / " ,   f i l n o ) ; * / 
                 f i l n o   =   f i l n o   +   1 ; 
 
                 i   =   1 ; 
                 d o   w h i l e   ( i   < =   o u t p u t _ t e x t _ l e n ) ; / *   r u n   t h r u   t h e   o u t p u t   r e c o r d   * / 
 	 	 	 	 / *   g r a b   a   c h u n k   * / 
 	 d l e n   =   m i n   ( o u t p u t _ t e x t _ l e n   -   i   +   1 ,   2 0 0 0 ) ; 
 
 	 i f   d l e n   =   2 0 0 0 	 	 / *   d o n t   s p l i t   E S C   s e q u e n c e s   * / 
 	 t h e n 
 	     d o ; 
 	         j   =   i n d e x   ( r e v e r s e   ( s u b s t r   ( o u t p u t _ t e x t ,   i ,   2 0 0 0 ) ) ,   E S C ) ; 
 	         d l e n   =   d l e n   -   j ; 
 	     e n d ; 
 
 	 d b _ d i s p l _ s t r   = 
 	           c o m p _ u t i l _ $ d i s p l a y   ( s u b s t r   ( o u t p u t _ t e x t ,   i ,   d l e n ) ,   d l e n ,   " 1 " b ) ; 
 	 c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ u s e r _ o u t p u t , 
 	           a d d r   ( s u b s t r   ( d b _ d i s p l _ s t r ,   1 ) ) ,   l e n g t h   ( d b _ d i s p l _ s t r ) ,   c o d e ) ; 
 
 	 i f   c o d e   ^ =   0 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m _ e r r _   ( c o d e ,   m e ,   " W r i t i n g   d i s p l a y   o u t p u t . " ) ; 
 	         i f   i o x _ $ u s e r _ o u t p u t   =   i o x _ $ u s e r _ i o 
 	         t h e n   c a l l   i o x _ $ c o n t r o l   ( i o x _ $ u s e r _ o u t p u t ,   " s e t _ d e l a y " , 
 	 	         a d d r   ( d e l a y ) ,   c o d e ) ; 
 	         r e t u r n ; 
 	     e n d ; 
 
 	 i   =   i   +   d l e n ; 
                 e n d ; 
 
                 i f   i o x _ $ u s e r _ o u t p u t   =   i o x _ $ u s e r _ i o 
                 t h e n   c a l l   i o x _ $ c o n t r o l   ( i o x _ $ u s e r _ o u t p u t ,   " s e t _ d e l a y " ,   a d d r   ( d e l a y ) , 
 	                 c o d e ) ; 
             e n d ; 
 
     e n d   p u t _ o n l i n e ; 
 % p a g e ; 
 / *   + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +   * / 
 / * 	 	               A C T I V E   F U N C T I O N   E N T R I E S 	 	               * / 
 
 c o m p o u t : 
     e n t r y ; 
 
         c a l l   c u _ $ a f _ r e t u r n _ a r g   ( n a r g s ,   r e t _ p ,   r e t _ l ,   c o d e ) ; 
         i f   ( c o d e   =   0 ) 
         t h e n   e r r _ o u t   =   a c t i v e _ f n c _ e r r _ ; 
         e l s e 
             d o ; 
                 e r r _ o u t   =   c o m _ e r r _ ; 
                 r e t _ p   =   n u l l   ( ) ; 
             e n d ; 
         i f   a f _ d a t a _ p t r   =   n u l l   ( ) 
         t h e n 
             d o ; 
                 c a l l   e r r _ o u t   ( e r r o r _ t a b l e _ $ o u t _ o f _ s e q u e n c e ,   " c o m p o u t " ) ; 
                 r e t u r n ; 
             e n d ; 
         i f   ( r e t _ p   =   n u l l   ( ) ) 
         t h e n   c a l l   i o a _   ( " ^ a " ,   a f _ d a t a . c o m p o u t ) ; 
         e l s e   r e t _ v   =   a f _ d a t a . c o m p o u t ; 
         r e t u r n ; 
 
 c o m p a s k : 
     e n t r y ; 
 
         c a l l   c u _ $ a f _ r e t u r n _ a r g   ( n a r g s ,   r e t _ p ,   r e t _ l ,   c o d e ) ; 
         i f   ( c o d e   =   0 ) 
         t h e n 
             d o ; 
                 e r r _ o u t   =   a c t i v e _ f n c _ e r r _ ; 
             e n d ; 
         e l s e 
             d o ; 
                 e r r _ o u t   =   c o m _ e r r _ ; 
                 r e t _ p   =   n u l l   ( ) ; 
             e n d ; 
         i f   a f _ d a t a _ p t r   =   n u l l   ( ) 
         t h e n 
             d o ; 
                 c a l l   e r r _ o u t   ( e r r o r _ t a b l e _ $ o u t _ o f _ s e q u e n c e ,   " c o m p a s k " ) ; 
                 r e t u r n ; 
             e n d ; 
         d o   a r g n o   =   2   t o   n a r g s ; 
             c a l l   c u _ $ a r g _ p t r   ( a r g n o ,   a r g p ,   a r g l ,   c o d e ) ; 
             i   =   i n d e x   ( a r g ,   " = " ) ; 
             i f   ( i   =   0 ) 
             t h e n   v a l i d _ i n   ( a r g n o ) ,   v a l i d _ o u t   ( a r g n o )   =   a r g ; 
             e l s e 
                 d o ; 
 	 v a l i d _ i n   ( a r g n o )   =   b e f o r e   ( a r g ,   " = " ) ; 
 	 v a l i d _ o u t   ( a r g n o )   =   a f t e r   ( a r g ,   " = " ) ; 
                 e n d ; 
         e n d ; 
         c a l l   c u _ $ a r g _ p t r   ( 1 ,   a r g p ,   a r g l ,   c o d e ) ; 
         i f   ( c o d e   ^ =   0 ) 
         t h e n 
             d o ; 
                 c a l l   e r r _ o u t   ( c o d e ,   " c o m p a s k " ) ; 
                 r e t u r n ; 
             e n d ; 
         d e f a u l t _ a n s   =   " " ; 
         d o   j   =   a f _ d a t a . c o u n t   t o   1   b y   - 1 ; 
             i f   ( a r g   =   a f _ d a t a . q u e s t   ( j ) ) 
             t h e n 
                 d o ; 
 	 d e f a u l t _ a n s   =   a f _ d a t a . a n s   ( j ) ; 
 	 j   =   0 ; 
                 e n d ; 
         e n d ; 
         q u e r y _ i n f o . y e s _ o r _ n o _ s w   =   " 0 " b ; 
         q u e r y _ i n f o . s u p p r e s s _ n a m e _ s w   =   " 1 " b ; 
 r e _ a s k : 
         c a l l   i o a _ $ n n l   ( " ^ a   ( ^ a )   " ,   a r g ,   d e f a u l t _ a n s ) ; 
 r e _ g e t : 
         c a l l   i o x _ $ g e t _ l i n e   ( i o x _ $ u s e r _ i n p u t ,   a d d r   ( r e p l y _ t e x t ) , 
                   l e n g t h   ( r e p l y _ t e x t ) ,   r e p l y _ l ,   c o d e ) ; 
         i f   ( c o d e   =   e r r o r _ t a b l e _ $ e n d _ o f _ i n f o ) / *   i n   c a s e   c a l l e d   i n   a n   e x e c _ c o m     * / 
         t h e n   g o t o   r e _ g e t ; 
         c o m p a n s   =   s u b s t r   ( r e p l y _ t e x t ,   1 ,   r e p l y _ l   -   1 ) ; 
         n e w _ s w   =   " 0 " b ; 
         i f   ( c o m p a n s   =   " . " ) 
         t h e n   v a l i d _ i n   ( 1 ) ,   v a l i d _ o u t   ( 1 )   =   " " ; 
         e l s e   i f   ( c o m p a n s   =   " " ) 
         t h e n   v a l i d _ i n   ( 1 ) ,   v a l i d _ o u t   ( 1 )   =   d e f a u l t _ a n s ; 
         e l s e 
             d o ; 
                 v a l i d _ i n   ( 1 ) ,   v a l i d _ o u t   ( 1 )   =   c o m p a n s ; 
                 n e w _ s w   =   " 1 " b ; 
             e n d ; 
         i f   n a r g s   >   1 
         t h e n 
             d o ; 
                 d o   a r g n o   =   2   t o   n a r g s ; 
 	 i f   ( v a l i d _ i n   ( a r g n o )   =   v a l i d _ i n   ( 1 ) ) 
 	 t h e n 
 	     d o ; 
 	         v a l i d _ o u t   ( 1 )   =   v a l i d _ o u t   ( a r g n o ) ; 
 	         g o t o   f o u n d _ r e p l y ; 
 	     e n d ; 
                 e n d ; 
                 c a l l   i o a _   ( " P l e a s e   a n s w e r   ^ a ^ ( ,   ^ a ^ ) . " ,   v a l i d _ l i s t ) ; 
                 g o t o   r e _ a s k ; 
 f o u n d _ r e p l y : 
             e n d ; 
         c o m p a n s   =   v a l i d _ o u t   ( 1 ) ; 
         q u e r y _ i n f o . y e s _ o r _ n o _ s w   =   " 1 " b ; 
         q u e r y _ i n f o . s u p p r e s s _ n a m e _ s w   =   " 0 " b ; 
         i f   n e w _ s w 
         t h e n 
             d o ; 
                 a f _ d a t a . c o u n t   =   a f _ d a t a . c o u n t   +   1 ; 
                 a f _ d a t a . q u e s t   ( a f _ d a t a . c o u n t )   =   a r g ; 
                 a f _ d a t a . a n s   ( a f _ d a t a . c o u n t )   =   v a l i d _ i n   ( 1 ) ; 
             e n d ; 
         i f   ( r e t _ p   =   n u l l   ( ) ) 
         t h e n   c a l l   i o a _   ( " ^ a " ,   c o m p a n s ) ; 
         e l s e 
             d o ; 
                 i f   ( i n d e x   ( c o m p a n s ,   "   " )   =   0 ) 
                 t h e n   r e t _ v   =   c o m p a n s ; 
                 e l s e   r e t _ v   =   " " " "   | |   c o m p a n s   | |   " " " " ; 
             e n d ; 
         r e t u r n ; 
 
         d c l   d t _ s w 	       b i t   ( 1 )   i n t   s t a t i c   i n i t   ( " 0 " b ) ; 
 d t n : 
     e n t r y ; 
         d t _ s w   =   " 1 " b ; 
         r e t u r n ; 
 d t f : 
     e n t r y ; 
         d t _ s w   =   " 0 " b ; 
         r e t u r n ; 
 
 e v a l u a t e _ a f _ : 
     p r o c   ( i n _ s t r ,   i n _ u s e d ,   o u t _ s t r ,   c o d e ) ; 
 
         d c l   i n _ s t r 	       c h a r   ( * ) , 	 / *   s t r   w h i c h   b e g i n s   w i t h   A F 	     [ I N ]   * / 
                 i n _ u s e d 	       f i x e d   b i n   ( 2 1 ) , 	 / *   a m o u n t   o f   i n _ s t r   u s e d   u p         [ O U T ]   * / 
                 o u t _ s t r 	       c h a r   ( * )   v a r , 	 / *   r e s u l t   o f   e x p a n s i o n 	   [ O U T ]   * / 
                 c o d e 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   r e t u r n   c o d e 	 	   [ O U T ]   * / 
 
         i f   ( s u b s t r   ( i n _ s t r ,   1 ,   1 )   =   " [ " ) 
         t h e n   a f _ t y p e   =   1 ; 
         e l s e   i f   ( s u b s t r   ( i n _ s t r ,   1 ,   2 )   =   " | [ " ) 
         t h e n   a f _ t y p e   =   2 ; 
         e l s e   i f   ( s u b s t r   ( i n _ s t r ,   1 ,   3 )   =   " | | [ " ) 
         t h e n   a f _ t y p e   =   3 ; 
         e l s e   g o t o   b r a c k ; 
         n e s t   =   1 ; 
         i n _ u s e d   =   a f _ t y p e   +   1 ; 
 k e e p _ o n : 
         i   =   s e a r c h   ( s u b s t r   ( i n _ s t r ,   i n _ u s e d ) ,   " " " [ ] " ) ; 
         i f   ( i   =   0 ) 
         t h e n 
             d o ; 
 b r a c k : 
                 c o d e   =   e r r o r _ t a b l e _ $ u n b a l a n c e d _ b r a c k e t s ; 
                 r e t u r n ; 
             e n d ; 
         i n _ u s e d   =   i n _ u s e d   +   i ; 
         c h   =   s u b s t r   ( i n _ s t r ,   i n _ u s e d   -   1 ,   1 ) ; 
         i f   ( c h   =   " " " " ) 
         t h e n 
             d o ; 
                 i   =   i n d e x   ( s u b s t r   ( i n _ s t r ,   i n _ u s e d ) ,   " " " " ) ; 
                 i f   ( i   =   0 ) 
                 t h e n 
 	 d o ; 
 	     c o d e   =   e r r o r _ t a b l e _ $ u n b a l a n c e d _ q u o t e s ; 
 	     r e t u r n ; 
 	 e n d ; 
                 i n _ u s e d   =   i n _ u s e d   +   i ; 
                 g o t o   k e e p _ o n ; 
             e n d ; 
         i f   ( c h   =   " [ " ) 
         t h e n 
             d o ; 
                 n e s t   =   n e s t   +   1 ; 
                 g o t o   k e e p _ o n ; 
             e n d ; 
         i f   ( c h   =   " ] " ) 
         t h e n 
             d o ; 
                 n e s t   =   n e s t   -   1 ; 
                 i f   ( n e s t   >   0 ) 
                 t h e n   g o t o   k e e p _ o n ; 
             e n d ; 
         i n _ u s e d   =   i n _ u s e d   -   1 ; 
         c a l l   c u _ $ e v a l u a t e _ a c t i v e _ s t r i n g   ( n u l l   ( ) , 
                   s u b s t r   ( i n _ s t r ,   a f _ t y p e   +   1 ,   i n _ u s e d   -   a f _ t y p e   -   1 ) ,   a f _ t y p e ,   o u t _ s t r , 
                   c o d e ) ; 
 
 
         d c l   a f _ t y p e 	       f i x e d   b i n ; 
         d c l   n e s t 	       f i x e d   b i n ; 
         d c l   i 	 	       f i x e d   b i n ; 
         d c l   c h 	       c h a r   ( 1 ) ; 
         d c l   c u _ $ e v a l u a t e _ a c t i v e _ s t r i n g 
 	 	       e n t r y   ( p t r ,   c h a r   ( * ) ,   f i x e d   b i n ,   c h a r   ( * )   v a r , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   e r r o r _ t a b l e _ $ u n b a l a n c e d _ b r a c k e t s 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ u n b a l a n c e d _ q u o t e s 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
     e n d   e v a l u a t e _ a f _ ; 
 % p a g e ; 
         d c l   c o m p a n s 	       c h a r   ( 2 0 0 )   v a r ; 
         d c l   d e f a u l t _ a n s 	       c h a r   ( 2 0 0 )   v a r ; 
         d c l   c u _ $ a f _ a r g _ p t r   e n t r y   ( f i x e d   b i n ,   p t r ,   f i x e d   b i n   ( 2 1 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   e r r _ o u t 	       e n t r y   o p t i o n s   ( v a r i a b l e )   a u t o m a t i c ; 
         d c l   a c t i v e _ f n c _ e r r _ 
 	 	       e n t r y   ( )   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   e r r o r _ t a b l e _ $ o u t _ o f _ s e q u e n c e 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   c u _ $ a f _ r e t u r n _ a r g 
 	 	       e n t r y   ( f i x e d   b i n ,   p t r ,   f i x e d   b i n   ( 2 1 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   n a r g s 	       f i x e d   b i n ; 
         d c l   n e w _ s w 	       b i t   ( 1 ) ; 
         d c l   r e p l y _ l 	       f i x e d   b i n   ( 2 1 ) ; 
         d c l   r e t _ p 	       p t r ; 
         d c l   r e t _ l 	       f i x e d   b i n   ( 2 1 ) ; 
         d c l   r e t _ v 	       c h a r   ( r e t _ l )   v a r   b a s e d   ( r e t _ p ) ; 
 % p a g e ; 
 / *       *     T e m p   s e g m e n t   u s a g e : 	 	 	 	 	               * / 
 / *       *               r e c o r d _ p t r   - >   r e c o r d   r e a d   f r o m   i n p u t   f i l e 	 	               * / 
 / *       *               | 	 	 	 	 	 	               * / 
 / *       *     ( 1 )     v _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ~ 	 	               * / 
 / *       * 	 	 	 	 	 	 	               * / 
 / *       *               f i l e _ e n t r y _ p t r   h e a d e r _ o u t _ p t r   p a g e _ r e c o r d _ p t r 	 	               * / 
 / *       *               |             |                         | 	                 | 	 	 	               * / 
 / *       *     ( 2 )     v _ _ _ _ _ _ v _ _ _ _ _ _ _ _ _ _ _ _ v _ _ _ _ _ _ _ _ _ _ _ _ _ _ v _ _ _ _ _ _ _ _ _ ~ 	 	               * / 
 / *       * 	 	 	 	 	 	 	               * / 
 / *       *               c o n t e n t s _ p t r 	 	 	 	 	 	               * / 
 / *       *               | 	 	 	 	 	 	               * / 
 / *       *     ( 3 )     v _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ~ 	 	               * / 
 / *       * 	 	 	 	 	 	 	               * / 
 / *       *               p a g e l i s t _ p t r 	 	 	 	 	               * / 
 / *       *               | 	 	 	 	 	 	               * / 
 / *       *     ( 4 )     v _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ~ 	 	               * / 
 / *       * 	 	 	 	 	 	 	               * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   t e x t _ c 	       ( o u t p u t _ t e x t _ l e n )   c h a r   ( 1 )   b a s e d   ( p a g e _ r e c o r d _ p t r ) ; 
 	 	 	 	 / *     ( m a g t a p e / p a p e r t a p e ) 	               * / 
         d c l   f i l e _ s e q _ n o 	       f i x e d   b i n ; 
         d c l   f i r s t _ p 	       p t r ; 
         d c l   f o r m a t 	       b i t   ( 1 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 0 0 0 1 " b ) ; 
 	 	 	 	 / *   c o n t r o l   f o r   d u m p _ s e g m e n t _ 	               * / 
         d c l   ( i ,   l ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x 	 	               * / 
         d c l   i 2 	       f i x e d   b i n   ( 2 1 ) ; 
         d c l   i t 	       f i x e d   b i n   ( 2 4 ) ; 
         d c l   m o d e _ u n p r o c 	       c h a r   ( 2 0 0 )   v a r ; 	 / *   t h e   c u r r e n t   m o d e   s a n s   a f _ p r o c           * / 
         d c l   m o d e _ n a m e 	       c h a r   ( 3 2 )   v a r ; 
         d c l   n n n 	       p i c   " 9 9 9 " ; 
         d c l   N L 	       c h a r   ( 1 )   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 
 " ) ; 
         d c l   N U L s 	       c h a r   ( 8 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "                 " ) ; 
         d c l   p a c k i 	       f i x e d   b i n ; 
         d c l   s t o p _ b f r 	       c h a r   ( 8 0 ) ; 	 / *   b u f f e r   t o   h o l d   u s e r s   - s t o p 	               * / 
 	 	 	 	 / *     o p t i o n   r e s p o n s e 	 	               * / 
 	 	 	 	 / *   O R   t h e   . w t   i n p u t 	 	               * / 
         d c l   s t r 	       c h a r   ( 2 6 2 1 4 4 )   b a s e d ; 
         d c l   t h i s _ p a g e 	       f i x e d   b i n ; 
         d c l   v a l i d _ i n 	       ( 1 5 )   c h a r   ( 6 4 )   v a r ; 
         d c l   v a l i d _ l i s t 	       ( n a r g s   -   1 )   c h a r   ( 6 4 )   v a r   b a s e d   ( a d d r   ( v a l i d _ i n   ( 2 ) ) ) ; 
         d c l   v a l i d _ o u t 	       ( 1 5 )   c h a r   ( 6 4 )   v a r ; 
         d c l   w o r d 	       ( 2 0 0 0 )   b i t   ( 3 6 )   b a s e d   ( p a g e _ r e c o r d _ p t r ) ; 
 
 
 
         d c l   1   p a c k 	       ( 4 0 ) , 
 	 2   c c t 	       f i x e d   b i n , 	 / *   n u m b e r   o f   b i t s   i n   u s e 	               * / 
 	 2   c o n 	       b i t   ( 2 7 )   u n a l , 	 / *   c o n s t a n t 	 	               * / 
 	 2   t y p e 	       f i x e d   b i n   ( 8 )   u n a l ; 
 	 	 	 	 / *   1 - l i t e r a l   2 - f w d   3 - c o p y   4 - b w d             * / 
         d c l   t o c h _ n d x 	       p i c   " z z z 9 b b " ; 
 
         d c l   C R L F 	       c h a r   ( 2 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "  
 " ) ; 
 
 
 
         d c l   e r r o r _ t a b l e _ $ i n c o n s i s t e n t 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
         d c l   h c s _ $ m a k e _ e n t r y 
 	 	       e n t r y   ( p t r ,   c h a r   ( * ) ,   c h a r   ( * ) ,   e n t r y ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ c o n t r o l       e n t r y   ( p t r ,   c h a r   ( * ) ,   p t r ,   f i x e d   ( 3 5 ) ) ; 
         d c l   i o x _ $ g e t _ l i n e     e n t r y   ( p t r ,   p t r ,   f i x e d   b i n   ( 2 1 ) ,   f i x e d   b i n   ( 2 1 ) , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ m o d e s 	       e n t r y   ( p t r ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   ( 3 5 ) ) ; 
         d c l   i o x _ $ p o s i t i o n     e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   i o x _ $ w r i t e _ r e c o r d 
 	 	       e n t r y   ( p t r ,   p t r ,   f i x e d   b i n   ( 2 1 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   r e l e a s e _ t e m p _ s e g m e n t s _ 
 	 	       e n t r y   ( c h a r   ( * ) ,   ( * )   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   e x p a n d _ p a t h n a m e _ 
 	 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
 
 
 % i n c l u d e   c o m p _ d v i d ; 
 % i n c l u d e   c o m p _ d v t ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ o u t p u t ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p s t a t ; 
 % i n c l u d e   q u e r y _ i n f o _ ; 
 
     e n d   p r o c e s s _ c o m p o u t ; 
        
 
 
  
 	 	         x d w _ . p l 1                                                 0 4 / 2 3 / 8 5     1 1 0 0 . 9 r e w   0 4 / 2 3 / 8 5     0 9 1 1 . 6           1 0 3 5 5 4 9     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 3 , l l 8 0 , d c l i n d 4 , i d i n d 1 6 , c o m c o l 4 1 , l i n e c o m   * / 
 
 / *   F U T U R E   & f i l e o u t   n a m e   . . .   & f i l e n d   * / 
 
 x d w _ : 
 m a c r o _ : 
       p r o c   ( s l _ n a m e ,   s e g n a m e ,   m a c n a m e ,   o u t _ p t r ,   o u t _ l e n ,   a r g l p ,   a r g c t ,   m s g ,   r e f s e g , 
                 e c o d e ) ; 
 
             s e g t y p e   =   " M A C R O " ; 
             i f   ( s l _ n a m e   =   " m a c r o " ) 
             t h e n   w h o _ a m _ i   =   " M A C R O " ; 
             e l s e   w h o _ a m _ i   =   " E X P A N S I O N " ; 
             m a c _ s w   =   " 1 " b ; 
             s e g p t r   =   n u l l   ( ) ; 
             r e f p   =   r e f s e g ; 
             g o t o   s t a r t ; 
 
 e x p a n d : 
       e n t r y   ( s l _ n a m e ,   s e g n a m e ,   m a c n a m e ,   o u t _ p t r ,   o u t _ l e n ,   a r g l p ,   a r g c t ,   m s g , 
                 s t r p t r ,   s t r l e n ,   e c o d e ) ; 
 
             i f   ( s e g n a m e   =   " " ) 
             t h e n   s e g t y p e   =   " S T R I N G " ; 
             e l s e   s e g t y p e   =   " S E G M E N T " ; 
             m y n a m e   =   " s o u r c e   "   | |   s e g t y p e ; 
             m a c _ s w   =   " 0 " b ; 
             r e f p   =   n u l l   ( ) ; 
             s e g p t r   =   s t r p t r ; 
             s e g i   =   1 ; 
             s e g e   =   s t r l e n ; 
             g o t o   s t a r t ; 
 
             d c l   s l _ n a m e 	             c h a r   ( 3 2 )   v a r , / *   s e a r c h     l i s t   n a m e 	               * / 
 	 s e g n a m e 	             c h a r   ( 3 2 )   v a r , / *   n a m e   o f   s e g m e n t   t o   f i n d 	               * / 
 	 	 	 	 / *   " "   - >   n o t   s p e c i f i e d 	               * / 
 	 m a c n a m e 	             c h a r   ( 3 2 )   v a r , / *   n a m e   o f   m a c r o   t o   e x p a n d 	               * / 
 	 	 	 	 / *   " "   - >   e x p a n d i n g   a   s t r i n g 	               * / 
 	 o u t _ p t r 	             p t r , 	 / *   o u t p u t   s t r i n g   ( n o t   a l i g n e d )               * / 
 	 o u t _ l e n 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l e n g t h   o f   o u t p u t   p r o d u c e d   ( O u t )       * / 
 	 a r g l p 	             p t r , 	 / *   p o i n t e r   t o   a r g u m e n t   l i s t 	               * / 
 	 a r g c t 	             f i x e d   b i n , 	 / *   n u m b e r   o f   a r g u m e n t s 	               * / 
 	 m s g 	             c h a r   ( 1 0 0 0 )   v a r , 
 	 	 	 	 / *   e r r o r   m e s s a g e   t e x t 	               * / 
 	 r e f s e g 	             p t r , 	 / *   p o i n t e r   t o   r e f e r e n c i n g   s e g m e n t         * / 
 	 s t r p t r 	             p t r , 	 / *   p o i n t e r   t o   s t r i n g   t o   e x p a n d               * / 
 	 s t r l e n 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l e n g t h   o f   s t r i n g   t o   e x p a n d 	               * / 
 	 e c o d e 	             f i x e d   b i n   ( 3 5 ) ; 
 
             d c l   1   a r g l 	             ( 2 4 )   b a s e d   ( a r g l p ) , 
 	     2   p 	             p t r , 
 	     2   l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g 	             c h a r   ( a r g l . l   ( n u m ) )   b a s e d   ( a r g l . p   ( n u m ) ) ; 
             d c l   n u m 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   r e f p 	             p t r ; 
 
 s t a r t : 
             i f   f r e e _ a r e a _ p   =   n u l l   ( ) 
             t h e n   c a l l   g e t _ a r e a ; 
             l o c a l _ v a r _ p t r ,   i n t _ v a r _ p t r   =   n u l l   ( ) ; 
             m s g _ e t c   =   " " ; 
 
             d o   n u m   =   1   t o   a r g c t ; 
                   i f   ( a r g l . l   ( n u m )   <   0 ) 
                   t h e n   s i g n a l   c o n d i t i o n   ( a r g l e n g _ l e s s _ t h a n _ z e r o ) ; 
                   i f   ( a r g l . l   ( n u m )   >   5 0 0 ) 
                   t h e n 
 	     d o ; 
 	           m s g   =   " A R G   " ; 
 	           m s g   =   m s g   | |   l t r i m   ( c h a r   ( n u m ) ) ; 
 	           m s g   =   m s g   | |   "   > 5 0 0   c h a r a c t e r s . " ; 
 	           e c o d e   =   - 1 ; 
 	           r e t u r n ; 
 	     e n d ; 
             e n d ; 
             m s g   =   " " ; 
             e c o d e   =   0 ; 
             m a c r o _ n e s t   =   m a c r o _ n e s t   +   1 ; 
 
             s a v e _ d b   =   d b _ s w ; 
             i f   ( s e g t y p e   =   " S T R I N G " )   |   ( s e g p t r   ^ =   n u l l   ( ) ) 
             t h e n   g o t o   d o i t ; 
 
 / *   n a m e   =   " m a c r o "   |   " f o o $ f o o "   |   " f o o $ b a r " 	 	 	               * / 
             i f   m a c _ s w 
             t h e n 
                   d o ; 
 	     c 3 2   =   s e g n a m e ; 
 	     i f   ( c 3 2   =   " " ) 
 	     t h e n 
 	           d o ; 
 	                 i f   d b _ s w 
 	                 t h e n   c a l l   i o a _   ( " " " " "   ^ a " ,   m a c n a m e ) ; 
 	                 m y n a m e   =   m a c n a m e ; 
 	                 d o   m a c l p   =   m a c r o _ l i s t _ p   r e p e a t   ( m a c r o _ l i s t . n e x t ) 
 	 	       w h i l e   ( m a c l p   ^ =   n u l l   ( ) ) ; 
 	 	   i f   m a c r o _ l i s t . i n t _ m a c 
 	 	   t h e n 
 	 	         d o ; 
 	 	               i f   d b _ s w 
 	 	               t h e n   c a l l   i o a _   ( "       ^ a / ^ a " , 
 	 	 	               s u b s t r   ( m a c r o _ l i s t . d n a m e ,   1 ,   1 ) , 
 	 	 	               m a c r o _ l i s t . n a m e ) ; 
 	 	               i f   ( m a c r o _ l i s t . n a m e   =   m a c n a m e ) 
 	 	               t h e n 
 	 	 	 d o ; 
 	 	 	       s e g p t r   =   m a c r o _ l i s t . r e f ; 
 	 	 	       s e g i   =   m a c r o _ l i s t . f r o m ; 
 	 	 	       s e g e   =   m a c r o _ l i s t . t o ; 
 	 	 	       g o t o   d o i t ; 
 	 	 	 e n d ; 
 	 	         e n d ; 
 	                 e n d ; 
 	                 c 3 2   =   m a c n a m e ; 	 / *   d i d n ' t   f i n d   a n   i m b e d d e d   m a c r o   b y     * / 
 	           e n d ; 	 	 	 / *     t h i s   n a m e ,   t r y   f o r   m a c r o $ m a c r o .     * / 
 	     i f   d b _ s w 
 	     t h e n   c a l l   i o a _   ( " ^ a $ ^ a " ,   c 3 2 ,   m a c n a m e ) ; 
 	     m y n a m e   =   c 3 2 ; 
 	     m y n a m e   =   m y n a m e   | |   " $ " ; 
 	     m y n a m e   =   m y n a m e   | |   m a c n a m e ; 
 	     d o   m a c l p   =   m a c r o _ l i s t _ p   r e p e a t   ( m a c r o _ l i s t . n e x t ) 
 	               w h i l e   ( m a c l p   ^ =   n u l l   ( ) ) ; 
 	           i f   ^ m a c r o _ l i s t . i n t _ m a c 
 	           t h e n 
 	                 d o ; 
 	 	   i f   d b _ s w 
 	 	   t h e n   c a l l   i o a _   ( "       ^ a / ^ a " ,   m a c r o _ l i s t . e n a m e , 
 	 	 	   m a c r o _ l i s t . n a m e ) ; 
 	 	   i f   ( m a c r o _ l i s t . e n a m e   =   c 3 2 )   &   ( m a c r o _ l i s t . n a m e   =   m a c n a m e ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               s e g p t r   =   m a c r o _ l i s t . r e f ; 
 	 	               s e g i   =   m a c r o _ l i s t . f r o m ; 
 	 	               s e g e   =   m a c r o _ l i s t . t o ; 
 	 	               g o t o   d o i t ; 
 	 	         e n d ; 
 	                 e n d ; 
 	     e n d ; 
                   e n d ; 
 
             c a l l   f i n d _ m a c r o   ( r e f p ,   s e g n a m e ,   s l _ n a m e ,   m a c n a m e ) ; 
 
 d o i t : 
             t r _ s w   =   " 0 " b ; 
             i f   ( s u b s t r   ( s e g m e n t ,   s e g i ,   7 )   =   " & t r a c e 
 " ) 
             t h e n 
                   d o ; 
 	     s e g i   =   s e g i   +   7 ; 
 	     t r _ s w   =   " 1 " b ; 
                   e n d ; 
             i f   ( s u b s t r   ( s e g m e n t ,   s e g i ,   7 )   =   " & d e b u g 
 " ) 
             t h e n 
                   d o ; 
 	     s e g i   =   s e g i   +   7 ; 
 	     d b _ s w   =   " 1 " b ; 
                   e n d ; 
             i f   d b _ s w   |   p c _ s w   |   t r _ s w   |   a l _ s w 
             t h e n 
                   d o ; 
 	     c a l l   i o a _   ( " ^ [ E X P A N D ^ s ^ ; ^ a ^ ] ( ^ i )     ^ a " ,   ( w h o _ a m _ i   =   " E X P A N S I O N " ) , 
 	               s e g t y p e ,   m a c r o _ n e s t ,   m a c n a m e ) ; 
 	     d o   n u m   =   1   t o   a r g c t ; 
 	           c a l l   i o a _   ( " A R G ^ 2 i :     " " ^ v a " " " ,   n u m ,   a r g l . l   ( n u m ) ,   a r g ) ; 
 	     e n d ; 
 	     i f   ( a r g c t   =   0 ) 
 	     t h e n   c a l l   i o a _   ( " A R G s :   n o n e " ) ; 
                   e n d ; 
             c o n s t r u c t _ n e s t   =   1 ; 
             c a l l _ e r r   =   " 0 " b ; 
             c a l l   e x p a n d   ( s e g p t r ,   s e g i ,   s e g e ,   o u t _ p t r ,   o u t _ l e n ,   " 1 1 " b ) ; 
 q u i t : 
             i f   d b _ s w   |   p c _ s w   |   t r _ s w   |   a l _ s w 
             t h e n   c a l l   i o a _   ( "   ^ [ M E N D ^ ; E X P E N D ^ ] ( ^ i )     ^ a " ,   ( w h o _ a m _ i   =   " M A C R O " ) , 
 	             m a c r o _ n e s t ,   m a c n a m e ) ; 
 
             i f   ( s e g i   <   s e g e ) 
             t h e n 
                   d o ; 
 m i s p l a c e d : 
 	     m s g   =   " M i s p l a c e d   " " " ; 
 	     m s g   =   m s g   | |   c 3 2 ; 
 	     m s g   =   m s g   | |   " " " .   " ; 
 
 a d d _ i d e n t i f i c a t i o n : 
 	     e c o d e   =   e r r o r _ t a b l e _ $ b a d s y n t a x ; 
 a d d _ i d : 
 	     i f   c a l l _ e r r 
 	     t h e n   m s g   =   m s g   | |   " 
 	 f r o m " ; 
 	     i f   s e g t y p e   =   " M A C R O " 
 	     t h e n 
 	           d o ; 
 	                 m s g   =   m s g   | |   "   " ; 
 	                 m s g   =   m s g   | |   w h o _ a m _ i ; 
 	           e n d ; 
 	     m s g   =   m s g   | |   "   " " " ; 
 	     m s g   =   m s g   | |   m y n a m e ; 
 	     m s g   =   m s g   | |   " " " ,   l i n e   " ; 
 	     m s g   =   m s g   | |   l i n e n o   ( s e g i ) ; 
 	     i f   ^ c a l l _ e r r 
 	     t h e n 
 	           d o ; 
 	                 m s g   =   " 
 E R R O R   S E V E R I T Y   4 .   "   | |   m s g ; 
 	                 i f   ( m s g _ e t c   ^ =   " " ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   m s g   | |   N L ; 
 	 	         m s g   =   m s g   | |   m s g _ e t c ; 
 	 	   e n d ; 
 	           e n d ; 
                   e n d ; 
 e x i t : 
             m a c r o _ n e s t   =   m a c r o _ n e s t   -   1 ; 
             t p t r   =   l o c a l _ v a r _ p t r ; 
             c a l l   f r e e _ u m   ( " l o c " ) ; 
             i f   ( e r r _ c t   ( 3 )   ^ =   0 )   &   ( e r r _ c t   ( 4 )   =   0 ) 
             t h e n   e c o d e   =   e r r o r _ t a b l e _ $ t r a n s l a t i o n _ f a i l e d ; 
             d b _ s w   =   s a v e _ d b ; 
             r e t u r n ; 
 
 
 s y n t a x _ e r r : 
             m s g   =   " S y n t a x   e r r o r   i n   "   | |   m s g ; 
             m s g   =   m s g   | |   " .   " ; 
             g o t o   a d d _ i d e n t i f i c a t i o n ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   a d d   a   m a c r o   t o   t h e   l i s t   o f   k n o w n   m a c r o s 	 	 	               * / 
 
 a d d m a c r o : 
       p r o c   ( d n a m e ,   s e g n a m e ,   m a c n a m e ,   i n t _ m a c ,   s e g p ,   s e g i ,   s e g e ) ; 
 
             d c l   d n a m e 	             c h a r   ( 1 6 8 ) , 
 	 s e g n a m e 	             c h a r   ( 3 2 )   v a r , 
 	 m a c n a m e 	             c h a r   ( 3 2 )   v a r , 
 	 i n t _ m a c 	             b i t   ( 1 ) , 	 / *   1 -   i s   & m a c r o / & d e f i n e 	               * / 
 	 s e g p 	             p t r , 
 	 s e g i 	             f i x e d   b i n   ( 2 4 ) , 
 	 s e g e 	             f i x e d   b i n   ( 2 4 ) ; 
 
             i f   d b _ s w 
             t h e n   c a l l   i o a _   ( " a d d m a c r o   ^ a   >   ^ a   ( ^ p )   ^ a ^ [   I N T E R N A L ^ ] " ,   d n a m e ,   s e g n a m e , 
 	             s e g p ,   m a c n a m e ,   i n t _ m a c ) ; 
             d o   m a c l p   =   m a c r o _ l i s t _ p   r e p e a t   ( m a c r o _ l i s t . n e x t )   w h i l e   ( m a c l p   ^ =   n u l l   ( ) ) ; 
                   i f   ( m a c r o _ l i s t . e n a m e   =   s e g n a m e )   &   ( m a c r o _ l i s t . n a m e   =   m a c n a m e ) 
 	         &   ( m a c r o _ l i s t . i n t _ m a c   =   i n t _ m a c ) 
                   t h e n 
 	     d o ; 
 	           i f   ( s e g p t r   =   m a c r o _ l i s t . r e f )   &   ( s e g i   =   m a c r o _ l i s t . f r o m ) 
 	 	 &   ( s e g e   =   m a c r o _ l i s t . t o ) 
 	           t h e n 
 	                 d o ; 
 	 	   i f   d b _ s w 
 	 	   t h e n   c a l l   i o a _   ( "       a l r e a d y   t h e r e " ) ; 
 	 	   r e t u r n ; 
 	                 e n d ; 
 	           m s g   =   w h o _ a m _ i ; 
 	           m s g   =   m s g   | |   "   a l r e a d y   d e f i n e d . " ; 
 	           g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	     e n d ; 
             e n d ; 
             a l l o c a t e   m a c r o _ l i s t   i n   ( f r e e _ a r e a ) ; 
             i f   a l _ s w 
             t h e n   c a l l   i o a _   ( " A   m a c r o _ l i s t   ^ i   ^ p " ,   s i z e   ( m a c r o _ l i s t ) ,   m a c l p ) ; 
             m a c r o _ l i s t . n a m e   =   m a c n a m e ; 
             m a c r o _ l i s t . r e f   =   s e g p ; 
             m a c r o _ l i s t . d n a m e   =   d n a m e ; 
             m a c r o _ l i s t . e n a m e   =   s e g n a m e ; 
             m a c r o _ l i s t . f r o m   =   s e g i ; 
             m a c r o _ l i s t . t o   =   s e g e ; 
             m a c r o _ l i s t . i n t _ m a c   =   i n t _ m a c ; 
             m a c r o _ l i s t . n e x t   =   m a c r o _ l i s t _ p ; 
             m a c r o _ l i s t _ p   =   m a c l p ; 
             i f   d b _ s w 
             t h e n   c a l l   i o a _   ( " a d d m a c   ^ 1 6 a   ^ p   ^ i : ^ i ^ / ^ - ^ a   >   ^ a " ,   m a c r o _ l i s t . n a m e , 
 	             m a c r o _ l i s t . r e f ,   m a c r o _ l i s t . f r o m ,   m a c r o _ l i s t . t o , 
 	             m a c r o _ l i s t . d n a m e ,   m a c r o _ l i s t . e n a m e ) ; 
 
       e n d   a d d m a c r o ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   A n   a m p e r s a n d   h a s   b e e n   f o u n d ,   h a n d l e   i t . 	 	 	               * / 
 
 a m p e r s a n d : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   e r r _ s w )   r e c u r s i v e ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) , 
 	 e r r _ s w 	             b i t   ( 1 ) ; 	 / *   0 -   m i s p l a c e d   a r e   e r r o r 	               * / 
 	 	 	 	 / *   1 -   m i s p l a c e d   n o   s w e a t 	               * / 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
 
 
             b e g l   =   i f i ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " a m p r " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i f   ( i f i   > =   i f e ) 
             t h e n 
                   d o ; 
 	     m s g   =   " O r p h a n   & . " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             i   =   i n d e x   ( " 0 1 2 3 4 5 6 7 8 9 " ,   i n p u t a   ( i f i   +   1 ) ) ; 
             i f   ( i   ^ =   0 ) 
             t h e n 
                   d o ; 
 	     n u m   =   i   -   1 ; 
 	     i   =   i n d e x   ( " 0 1 2 3 4 5 6 7 8 9 " ,   i n p u t a   ( i f i   +   2 ) ) ; 
 	     i f   ( i   ^ =   0 ) 
 	     t h e n 
 	           d o ; 
 	                 n u m   =   n u m   *   1 0   +   i   -   1 ; 
 	                 i f i   =   i f i   +   1 ; 
 	           e n d ; 
 	     i f i   =   i f i   +   2 ; 
 	     i f   ( n u m   < =   a r g c t ) 
 	     t h e n 
 	           d o ; 
 	                 s u b s t r   ( o u t p u t ,   o f e   +   1 ,   a r g l . l   ( n u m ) )   =   a r g ; 
 	                 o f e   =   o f e   +   a r g l . l   ( n u m ) ; 
 	           e n d ; 
                   e n d ; 
             e l s e 
                   d o ; 
 	     c h _ 2 n d   =   i n p u t a   ( i f i   +   1 ) ; 
 	     i f   ( c h _ 2 n d   =   " { " ) 
 	     t h e n   c a l l   a r g _ r a n g e   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	     e l s e   i f   ( c h _ 2 n d   =   " * " ) 
 	     t h e n 
 	           d o ; 
 	                 i f i   =   i f i   +   2 ; 
 	                 c 3 2   =   l t r i m   ( c h a r   ( a r g c t ) ) ; 
 	                 s u b s t r   ( o u t p u t ,   o f e   +   1 ,   l e n g t h   ( c 3 2 ) )   =   c 3 2 ; 
 	                 o f e   =   o f e   +   l e n g t h   ( c 3 2 ) ; 
 	           e n d ; 
 
 	     e l s e   i f   ( c h _ 2 n d   =   " . " ) 	 / *   & .   n u l l   s e p a r a t o r 	               * / 
 	     t h e n   i f i   =   i f i   +   2 ; 
 
 	     e l s e   i f   ( c h _ 2 n d   =   " + " ) 	 / *   & +   n u l l   s e p a r a t o r , 	               * / 
 	     t h e n   c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
 	 	 	 	 / *     g r a b s   t r a i l i n g   s p a c e 	               * / 
 
 	     e l s e   i f   ( c h _ 2 n d   =   " [ " ) 
 	     t h e n   c a l l   m a c r o _ a f   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	     e l s e   i f   ( c h _ 2 n d   =   " ( " ) 
 	     t h e n   c a l l   a r i t h m e t i c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	     e l s e   i f   ( c h _ 2 n d   =   " " " " ) 
 	     t h e n   c a l l   p r o t e c t e d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ) ; 
 
 	     e l s e   i f   ( c h _ 2 n d   =   " ; " ) 
 	     t h e n 
 	           d o ; 
 	                 c 3 2   =   " & ; " ; 
 	                 r e t u r n ; 
 	           e n d ; 
 
 	     e l s e   i f   ( c h _ 2 n d   =   " & " ) 
 	     t h e n 
 	           d o ; 
 	                 s u b s t r   ( o u t p u t ,   o u t _ l e n   +   1 ,   1 )   =   " & " ; 
 	                 o u t _ l e n   =   o u t _ l e n   +   1 ; 
 	                 i f i   =   i f i   +   2 ; 
 	           e n d ; 
 	     e l s e 
 	           d o ; 
 v a r i a b l e : 
 	                 i   =   v e r i f y   ( s u b s t r   ( i n p u t ,   i f i   +   1 ) ,   t o k e n _ c h a r s ) ; 
 
 	                 i f   ( i   =   0 ) 
 	                 t h e n   i   =   i f e   -   i f i   +   1 ; 
 	                 i f   ( i   >   1 ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         i f   ( i   >   2 6 ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 m s g   =   w h o _ a m _ i ; 
 	 	 	 m s g   =   m s g   | |   "   n a m e   >   2 6   c h a r s . " ; 
 	 	 	 g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	               e n d ; 
 	 	         c 3 2   =   s u b s t r   ( i n p u t ,   i f i   +   1 ,   i   -   1 ) ; 
 	 	         c 3 2 x   =   " " ; 
 
 	 	         i f   ( i n p u t a   ( i f i   +   i )   =   " $ " ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 i f i   =   i f i   +   i ; 
 	 	 	 i i   =   v e r i f y   ( s u b s t r   ( i n p u t ,   i f i   +   1 ) ,   t o k e n _ c h a r s ) 
 	 	 	           ; 
 	 	 	 i f   ( i i   =   0 ) 
 	 	 	 t h e n   i   =   0 ; 
 	 	 	 	 / *   e r r o r 	 	 	               * / 
 	 	 	 e l s e   i f   ( i n p u t a   ( i f i   +   i i )   =   " ( " ) 
 	 	 	 t h e n 
 	 	 	       d o ; 
 	 	 	             i   =   i i ; 
 	 	 	             c 3 2 x   =   c 3 2 ; 
 	 	 	             c 3 2   =   s u b s t r   ( i n p u t ,   i f i   +   1 ,   i   -   1 ) ; 
 	 	 	       e n d ; 
 	 	               e n d ; 
 
 	 	         i f   ( i n p u t a   ( i f i   +   i )   =   " ( " )   &   ( i f e   >   i f i   +   i ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 i f i   =   i f i   +   i   +   1 ; 
 	 	 	 c a l l   m a c r o _ c a l l   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 	 	               e n d ; 
 
 	 	         e l s e   i f   ( i n p u t a   ( i f i   +   i )   =   " { " )   &   ( i f e   >   i f i   +   i ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 i f i   =   i f i   +   i   +   1 ; 
 	 	 	 c a l l   v a r _ r a n g e   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 	 	               e n d ; 
 
 / *   a r g   * / 
 	 	         e l s e   i f   ( c 3 2   =   " l b o u n d " ) 
 	 	         t h e n   c a l l   v a r _ b o u n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 	 	         e l s e   i f   ( c 3 2   =   " h b o u n d " ) 
 	 	         t h e n   c a l l   v a r _ b o u n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " e m p t y " ) 
 	 	         t h e n   c a l l   m a c r o _ e m p t y   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " e r r o r " ) 
 	 	         t h e n   c a l l   m a c r o _ e r r o r   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " c o m m e n t " ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & ; " ) ; 
 	 	 	 i f   ( i   =   0 ) 
 	 	 	 t h e n 
 	 	 	       d o ; 
 	 	 	             m s g   =   " & ; " ; 
 	 	 	             c a l l   e r r o r _ m i s s i n g   ( " c o m m e n t " ,   b e g l ,   i f e ) ; 
 	 	 	       e n d ; 
 	 	 	 i f i   =   i f i   +   i   +   1 ; 
 	 	 	 r e t u r n ; 
 	 	               e n d ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " u s a g e " ) 
 	 	         t h e n   c a l l   m a c r o _ u s a g e   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " q u o t e " ) 
 	 	         t h e n   c a l l   m a c r o _ q u o t e   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " u n q u o t e " ) 
 	 	         t h e n   c a l l   m a c r o _ u n q u o t e   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " r e t u r n " ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 s e g i   =   s e g e   +   1 ; 
 	 	 	 g o t o   q u i t ; 
 	 	               e n d ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " s c a n " ) 
 	 	         t h e n   c a l l   m a c r o _ s c a n   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " d e f i n e " ) 
 	 	         t h e n   c a l l   m a c r o _ d e f i n e   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " s u b s t r " ) 
 	 	         t h e n   c a l l   m a c r o _ s u b s t r   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " l e n g t h " ) 
 	 	         t h e n   c a l l   m a c r o _ l e n g t h   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " l e t " ) 
 	 	         t h e n   c a l l   m a c r o _ l e t   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   0 ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " e x t " ) 
 	 	         t h e n   c a l l   m a c r o _ l e t   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   1 ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " i n t " ) 
 	 	         t h e n   c a l l   m a c r o _ l e t   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   2 ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " l o c " ) 
 	 	         t h e n   c a l l   m a c r o _ l e t   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   3 ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " d o " ) 
 	 	         t h e n   c a l l   m a c r o _ d o   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " i f " ) 
 	 	         t h e n   c a l l   m a c r o _ i f   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " o d " )   |   ( c 3 2   =   " f i " )   |   ( c 3 2   =   " t h e n " ) 
 	 	                   |   ( c 3 2   =   " e l s e " )   |   ( c 3 2   =   " e l s e i f " ) 
 	 	                   |   ( c 3 2   =   " w h i l e " ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 c 3 2   =   " & "   | |   c 3 2 ; 
 	 	 	 i f   ^ e r r _ s w 
 	 	 	 t h e n   g o t o   m i s p l a c e d ; 
 	 	 	 r e t u r n ; 
 	 	               e n d ; 
 
 	 	         e l s e   i f   ( c 3 2   =   " e x p a n d " ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 s t a r t _ s y m   =   " e x p a n d " ; 
 	 	 	 e n d _ s y m   =   " e x p e n d " ; 
 	 	 	 g o t o   m a c d e f ; 
 	 	               e n d ; 
 	 	         e l s e   i f   ( c 3 2   =   " m a c r o " ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 s t a r t _ s y m   =   " m a c r o " ; 
 	 	 	 e n d _ s y m   =   " m e n d " ; 
 m a c d e f : 
 	 	 	 i f   c o n s t r u c t _ n e s t   >   1 
 	 	 	 t h e n 
 	 	 	       d o ; 
 m a c n e s t _ e r r : 
 	 	 	             m s g   =   " & " ; 
 	 	 	             m s g   =   m s g   | |   s t a r t _ s y m ; 
 	 	 	             m s g   =   m s g 
 	 	 	 	   | | 
 	 	 	 	   "   m a y   n o t   b e   n e s t e d   i n   a n y   o t h e r   c o n s t r u c t . " 
 	 	 	 	   ; 
 	 	 	             g o t o   a d d _ i d ; 
 	 	 	       e n d ; 
 	 	 	 i f i   =   i f i   +   i ; 
 	 	 	 i f   ( s u b s t r   ( i n p u t ,   i f i ,   1 )   ^ =   "   " ) 
 	 	 	 t h e n 
 	 	 	       d o ; 
 m a c d e f _ e r r : 
 	 	 	             c a l l   e r r o r _ s y n t a x   ( ( s t a r t _ s y m ) ,   b e g l ,   i f i ) ; 
 	 	 	       e n d ; 
 	 	 	 i f i   =   i f i   +   1 ; 
 	 	 	 i   =   v e r i f y   ( s u b s t r   ( i n p u t ,   i f i ) , 
 	 	 	           " a b c d e f g h i j k l m n o p q r s t u v w x y z " 
 	 	 	           | |   " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ 0 1 2 3 4 5 6 7 8 9 " ) ; 
 	 	 	 i f   ( i   =   0 ) 
 	 	 	 t h e n   g o t o   m a c d e f _ e r r ; 
 	 	 	 i f   ( i   <   2 ) 
 	 	 	 t h e n 
 	 	 	       d o ; 
 	 	 	             m s g   =   " n a m e " ; 
 	 	 	             c a l l   e r r o r _ m i s s i n g   ( ( s t a r t _ s y m ) ,   b e g l ,   i f i ) ; 
 	 	 	       e n d ; 
 	 	 	 i   =   i   -   1 ; 
 	 	 	 c 3 2   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	 	 	 i f i   =   i f i   +   i ; 
 	 	 	 i f   ( i n p u t a   ( i f i )   ^ =   N L ) 
 	 	 	 t h e n   g o t o   m a c d e f _ e r r ; 
 	 	 	 i f i   =   i f i   +   1 ; 
 	 	 	 i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) , 
 	 	 	           " & "   | |   e n d _ s y m   | |   " 
 " ) ; 
 	 	 	 i f   ( i   =   0 ) 
 	 	 	 t h e n 
 	 	 	       d o ; 
 n o _ m e n d : 
 	 	 	             m s g   =   " & " ; 
 	 	 	             m s g   =   m s g   | |   e n d _ s y m ; 
 	 	 	             m s g   =   m s g   | |   " < N L > " ; 
 	 	 	             c a l l   e r r o r _ m i s s i n g   ( ( s t a r t _ s y m ) ,   b e g l ,   i f e ) ; 
 	 	 	       e n d ; 
 	 	 	 i f   ( i n d e x   ( s u b s t r   ( i n p u t ,   i f i ,   i   -   1 ) ,   " & m a c r o   " ) 
 	 	 	           ^ =   0 ) 
 	 	 	           |   ( 
 	 	 	           i n d e x   ( s u b s t r   ( i n p u t ,   i f i ,   i   -   1 ) , 
 	 	 	           " & e x p a n d   " )   ^ =   0 ) 
 	 	 	 t h e n   g o t o   n o _ m e n d ; 
 	 	 	 c a l l   h c s _ $ f s _ g e t _ p a t h _ n a m e   ( i f p ,   d n a m e ,   0 ,   e n a m e , 
 	 	 	           0 ) ; 
 	 	 	 c a l l   a d d m a c r o   ( "     & "   | |   s t a r t _ s y m   | |   "   i n   " 
 	 	 	           | |   m y n a m e ,   " " ,   c 3 2 ,   " 1 " b ,   i f p ,   i f i , 
 	 	 	           i f i   +   i   -   2 ) ; 
 	 	 	 i f i   =   i f i   +   i   +   l e n g t h   ( e n d _ s y m )   +   1 ; 
 	 	               e n d ; 
 	 	         e l s e 
 	 	               d o ; 
 	 	 	 c a l l   v a r _ r e f   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 	 	 	 i f i   =   i f i   +   i ; 
 	 	               e n d ; 
 	 	   e n d ; 
 	                 e l s e 
 	 	   d o ; 
 	 	         m s g   =   " U n r e c o g n i z e d   & c o n t r o l   " " " ; 
 	 	         m s g   =   m s g   | |   c 3 2 ; 
 	 	         m s g   =   m s g   | |   " " " .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	           e n d ; 
                   e n d ; 
       e n d   a m p e r s a n d ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   p a r s e   a n   a r g u m e n t   r a n g e   s p e c i f i c a t i o n . 	 	 	               * / 
 
 a r g _ r a n g e : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e p a r a t o r 	             c h a r   ( 1 5 0 )   v a r ; 
 
 / *   & {   A R I T H   } 	 	 	 y i e l d s   a r g u m e n t   A R I T H 	               * / 
 / *   & {   A R I T H   :   A R I T H   }   	 	 y i e l d s   a r g u m e n t s   A R I T H   t h r u   A R I T H         * / 
 / *                                                                                     s e p a r a t e d   b y   a   S P 	               * / 
 / *   & {   A R I T H   :   A R I T H   ,   S T R I N G   } 	 y i e l d s   a r g u m e n t s   A R I T H   t h r u   A R I T H         * / 
 / *                                                                                     s e p a r a t e d   b y   S T R I N G 	               * / 
 
             b e g l   =   i f i ; 
             i i   =   o f e ; 
             i   =   1 ; 
             j   =   a r g c t ; 
             c a l l   g e t _ r a n g e   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   i ,   j ) ; 
             s e p a r a t o r   =   "   " ; 
             i f   ( i n p u t a   ( i f i )   =   " , " ) 
             t h e n 
                   d o ; 
 	     i f i   =   i f i   +   1 ; 
 	     d o   w h i l e   ( " 1 " b ) ; 
 	           j j   =   s e a r c h   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & } " ) ; 
 	           i f   ( j j   =   0 ) 
 	           t h e n 
 	                 d o ; 
 	 	   m s g   =   " } " ; 
 	 	   c a l l   e r r o r _ m i s s i n g   ( " { " ,   b e g l ,   i f e ) ; 
 	                 e n d ; 
 	           i f   ( j j   >   1 ) 
 	           t h e n 
 	                 d o ; 
 	 	   j j   =   j j   -   1 ; 
 	 	   s u b s t r   ( o u t p u t ,   o f e   +   1 ,   j j )   =   s u b s t r   ( i n p u t ,   i f i ,   j j ) ; 
 	 	   i f i   =   i f i   +   j j ; 
 	 	   o f e   =   o f e   +   j j ; 
 	                 e n d ; 
 	           i f   ( i n p u t a   ( i f i )   =   " } " ) 
 	           t h e n 
 	                 d o ; 
 	 	   s e p a r a t o r   =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   o f e   -   i i ) ; 
 	 	   o f e   =   i i ; 
 	 	   g o t o   e n d _ r a n g e ; 
 	                 e n d ; 
 	           c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
 	     e n d ; 
                   e n d ; 
             i f   ( i n p u t a   ( i f i )   =   " } " ) 
             t h e n 
                   d o ; 
 e n d _ r a n g e : 
 	     i f i   =   i f i   +   1 ; 
 	     i f   ( T F   =   " 0 0 " b ) 
 	     t h e n   r e t u r n ; 
 	     j   =   m i n   ( j ,   a r g c t ) ; 
 	     d o   n u m   =   i   t o   j ; 
 	           s u b s t r   ( o u t p u t ,   o f e   +   1 ,   a r g l . l   ( n u m ) )   =   a r g ; 
 	           o f e   =   o f e   +   a r g l . l   ( n u m ) ; 
 	           i f   ( n u m   ^ =   j ) 
 	           t h e n 
 	                 d o ; 
 	 	   s u b s t r   ( o u t p u t ,   o f e   +   1 ,   l e n g t h   ( s e p a r a t o r ) )   =   s e p a r a t o r ; 
 	 	   o f e   =   o f e   +   l e n g t h   ( s e p a r a t o r ) ; 
 	                 e n d ; 
 	     e n d ; 
                   e n d ; 
             e l s e 
                   d o ; 
 	     c a l l   e r r o r _ s y n t a x   ( " { " ,   b e g l ,   i f i ) ; 
                   e n d ; 
       e n d   a r g _ r a n g e ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   p r o c e s s   a n   a r i t h m e t i c   e x p r e s s i o n . 	 	 	 	               * / 
 
 a r i t h m e t i c : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l e v e l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   ( v l ,   s l ) 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   v a l 	             ( 2 0 )   f i x e d   d e c   ( 5 9 ,   9 ) ; 
             d c l   s t k 	             ( 2 0 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   p i c 6 0 	             p i c   " ( 4 9 ) - 9 v . ( 9 ) 9 " ; 
             d c l   c h 6 0 	             c h a r   ( 6 0 )   v a r ; 
             d c l   v 	             f i x e d   d e c   ( 5 9 ,   9 ) ; 
 
             i f i ,   b e g l   =   i f i   +   2 ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " a r t h " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i i   =   o f e ; 
             s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   " ( " ; 
             o f e   =   o f e   +   1 ; 
             l e v e l   =   1 ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
             i   =   s e a r c h   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & ( ) , : } " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " M i s s i n g   a r i t h m e t i c   t e r m i n a t o r .   " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     i f i   =   i f i   +   i ; 
                   e n d ; 
             g o t o   t y p e   ( i n d e x   ( " & ( ) , : } " ,   i n p u t a   ( i f i ) ) ) ; 
 
 t y p e   ( 1 ) : 	 	 	 	 / *   &   * / 
 	 	 	 	 / *   * / 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   =   " & ; " ) 
             t h e n   g o t o   t y p e   ( 4 ) ; 	 	 / *   I t   s t o p s   s c a n ,   b u t   i s   n o t   u s e d   u p   * / 
             c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
             g o t o   l o o p ; 
 
 t y p e   ( 2 ) : 	 	 	 	 / *   (   * / 
 	 	 	 	 / *   * / 
             s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   " ( " ; 
             o f e   =   o f e   +   1 ; 
             l e v e l   =   l e v e l   +   1 ; 
             i f i   =   i f i   +   1 ; 
             g o t o   l o o p ; 
 
 t y p e   ( 4 ) : 	 	 	 	 / *   ,   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 5 ) : 	 	 	 	 / *   :   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 6 ) : 	 	 	 	 / *   }   * / 
 	 	 	 	 / *   * / 
             i f   ( l e v e l   >   1 ) 
             t h e n   g o t o   a r i t h _ e r r ; 
             i f i   =   i f i   -   1 ; 	 	 / *   d o n ' t   w a n t   t o   u s e   u p   t h i s   c h a r         * / 
 t y p e   ( 3 ) : 	 	 	 	 / *   )   * / 
 	 	 	 	 / *   * / 
             s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   " ) " ; 
             o f e   =   o f e   +   1 ; 
             i f i   =   i f i   +   1 ; 
             l e v e l   =   l e v e l   -   1 ; 
             i f   ( l e v e l   >   0 ) 
             t h e n   g o t o   l o o p ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
 
             i f   ( T F   =   " 0 0 " b ) 
             t h e n 
                   d o ; 
 	     o f e   =   i i ; 
 	     r e t u r n ; 
                   e n d ; 
 
             s l   =   1 ; 
             v l   =   0 ; 
             s t k   ( 1 )   =   1 6 ; 
 
             i f   d b _ s w   |   t r _ s w 
             t h e n 
                   d o ; 
 	     c a l l   i o a _ $ n n l   ( " # ^ a : ^ a ^ - a r i t h   " ,   l i n e n o   ( b e g l ) ,   l i n e n o   ( i f i   -   1 ) ) ; 
 	     c a l l   s h o w _ s t r i n g   ( s u b s t r   ( o u t p u t ,   i i   +   1 ,   o f e   -   i i ) ,   " 
 " ) ; 
                   e n d ; 
             d o   i   =   i i   +   1   t o   o f e ; 
 / * * * *   f o r m a t :   o f f   * / 
 / *                                                                               " - - - - - - - - - 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 	 2 2   2       * / 
 / *                                                                               " - - - - - - - - - 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 	 6 7   8       * / 
 d c l   a r i t h c h a r   c h a r   ( 2 8 )   i n t   s t a t i c   i n i t   ( " 0 1 2 3 4 5 6 7 8 9 ( = ^ = < = > = + - * / )   	 . " " 
 " ) ;   / * * * *   f o r m a t :   o n   * / 
                   j   =   i n d e x   ( a r i t h c h a r ,   s u b s t r   ( o u t p u t ,   i ,   1 ) ) ; 
                   i f   ( j   =   0 ) 
                   t h e n 
 	     d o ; 
 	           j j   =   v e r i f y   ( s u b s t r   ( o u t p u t ,   i ) , 
 	 	 " a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ 0 1 2 3 4 5 6 7 8 9 " 
 	 	 ) ; 
 	           i f   ( j j   =   0 ) 
 	           t h e n   j j   =   i f e   -   i f i   +   1 ; 
 	           i f   ( j j   =   1 ) 
 	           t h e n   g o t o   a r i t h _ e r r ; 
 	           g o t o   a r i t h _ e r r ; 
 	     e n d ; 
 r e t r y : 
                   i f   l g _ s w 
                   t h e n   i f   d b _ s w 
 	         t h e n 
 	               d o ; 
 	 	 c a l l   i o a _   ( " ^ 3 i   : ^ 1 a : " ,   i ,   s u b s t r   ( o u t p u t ,   i ,   1 ) ) ; 
 	 	 d o   j j   =   1   t o   s l ; 
 	 	       c a l l   i o a _ $ n n l   ( "   ^ 1 a " ,   s u b s t r   ( a r i t h c h a r ,   s t k   ( j j ) ,   1 ) ) ; 
 	 	 e n d ; 
 	 	 c a l l   i o a _   ( " . " ) ; 
 	 	 d o   j j   =   1   t o   v l ; 
 	 	       c a l l   i o a _ $ n n l   ( "   ^ f " ,   v a l   ( j j ) ) ; 
 	 	 e n d ; 
 	 	 c a l l   i o a _   ( " # " ) ; 
 	               e n d ; 
                   i f   ( j   >   1 0 ) 
                   t h e n   g o t o   t y p e   ( j ) ; 
 
 t y p e   ( 2 6 ) : 	 	 	 / *   d e c i m a l   p o i n t   * / 
                   j j   =   v e r i f y   ( s u b s t r   ( o u t p u t ,   i ) ,   " . 0 1 2 3 4 5 6 7 8 9 " )   -   1 ; 
                   i f   ( j j   =   0 ) 
                   t h e n   j j   =   i f e   -   i f i   +   1 ; 
                   v l   =   v l   +   1 ; 
                   v a l   ( v l )   =   c o n v e r t   ( v a l   ( 1 ) ,   s u b s t r   ( o u t p u t ,   i ,   j j ) ) ; 
                   s l   =   s l   +   1 ; 
                   s t k   ( s l )   =   1 0 ; 
                   i   =   i   +   j j   -   1 ; 
                   g o t o   e n d l o o p ; 
 
 t y p e   ( 2 3 ) : 	 	 	 / *   )   * / 
 	 	 	 	 / *   * / 
                   i f   ( s t k   ( s l )   ^ =   1 0 ) 
                   t h e n   g o t o   a r i t h _ e r r ; 
                   g o t o   c a l c   ( s t k   ( s l   -   1 ) ) ; 
 
 t y p e   ( 1 3 ) : 	 	 	 / *   ^   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 1 5 ) : 	 	 	 / *   <   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 1 7 ) : 	 	 	 / *   >   * / 
 	 	 	 	 / *   * / 
                   i f   ( s u b s t r   ( o u t p u t ,   i   +   1 ,   1 )   =   " = " ) 
                   t h e n 
 	     d o ; 
 	           i   =   i   +   1 ; 
 	           j   =   j   +   1 ; 
 	     e n d ; 
                   i f   ( j   =   1 3 ) 
                   t h e n   g o t o   t y p e   ( 1 1 ) ; 
 t y p e   ( 1 4 ) : 	 	 	 / *   ^ =   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 1 6 ) : 	 	 	 / *   < =   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 1 8 ) : 	 	 	 / *   > =   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 1 2 ) : 	 	 	 / *   =   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 2 1 ) : 	 	 	 / *   *   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 2 2 ) : 	 	 	 / *   /   * / 
 	 	 	 	 / *   * / 
                   i f   ( s t k   ( s l )   ^ =   1 0 ) 
                   t h e n 
 	     d o ; 
 t y p e   ( 2 7 ) : 	 	 	 / *   q u o t e d   s t r i n g   n o t   h a n d l e d   y e t           * / 
 a r i t h _ e r r : 
 	           m s g   =   " A r i t h m e t i c   s y n t a x   e r r o r .   " ; 
 	           m s g   =   m s g   | |   s u b s t r   ( a r i t h c h a r ,   s t k   ( s l ) ,   1 ) ; 
 	           m s g   =   m s g   | |   s u b s t r   ( a r i t h c h a r ,   j ,   1 ) ; 
 	           m s g   =   m s g   | |   "   " " " ; 
 	           m s g   =   m s g   | |   s u b s t r   ( o u t p u t ,   i i   +   1 ,   i   -   i i ) ; 
 	           m s g   =   m s g   | |   " " "   " ; 
 	           g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	     e n d ; 
 
 t y p e   ( 1 9 ) : 	 	 	 / *   +   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 2 0 ) : 	 	 	 / *   -   * / 
 	 	 	 	 / *   * / 
                   i f   ( s t k   ( s l )   =   2 1 ) 
                   t h e n   g o t o   a r i t h _ e r r ; 
                   i f   ( s t k   ( s l )   =   2 2 ) 
                   t h e n   g o t o   a r i t h _ e r r ; 
                   i f   ( s t k   ( s l )   >   1 0 ) 
                   t h e n 
 	     d o ; 
 	           v l   =   v l   +   1 ; 
 	           v a l   ( v l )   =   0 ; 
 	           s l   =   s l   +   1 ; 
 	           s t k   ( s l )   =   1 0 ; 
 	     e n d ; 
                   i f   ( s t k   ( s l   -   1 )   > =   j ) 
                   t h e n   g o t o   c a l c   ( s t k   ( s l   -   1 ) ) ; 
                   s l   =   s l   +   1 ; 
                   s t k   ( s l )   =   j ; 
                   g o t o   e n d l o o p ; 
 
 t y p e   ( 1 1 ) : 	 	 	 / *   (   * / 
 	 	 	 	 / *   * / 
                   i f   ( s t k   ( s l )   =   1 0 ) 
                   t h e n   g o t o   a r i t h _ e r r ; 
                   s l   =   s l   +   1 ; 
                   s t k   ( s l )   =   j ; 
                   g o t o   e n d l o o p ; 
 
 c a l c   ( 1 2 ) : 	 	 	 / *   =     * / 
 	 	 	 	 / *   * / 
                   i f   ( v a l   ( v l   -   1 )   =   v a l   ( v l ) ) 
                   t h e n   v   =   1 ; 
                   e l s e   v   =   0 ; 
                   g o t o   c a l c _ c o m m o n ; 
 
 
 c a l c   ( 1 3 ) : 	 	 	 / *   ^     * / 
 	 	 	 	 / *   * / 
                   i f   ( v a l   ( v l )   =   0 ) 
                   t h e n   v a l   ( v l )   =   1 ; 
                   e l s e   v a l   ( v l )   =   0 ; 
                   s l   =   s l   -   1 ; 
                   s t k   ( s l )   =   1 0 ; 
                   g o t o   r e t r y ; 
 
 
 c a l c   ( 1 4 ) : 	 	 	 / *   ^ =   * / 
 	 	 	 	 / *   * / 
                   i f   ( v a l   ( v l   -   1 )   ^ =   v a l   ( v l ) ) 
                   t h e n   v   =   1 ; 
                   e l s e   v   =   0 ; 
                   g o t o   c a l c _ c o m m o n ; 
 
 
 c a l c   ( 1 5 ) : 	 	 	 / *   <     * / 
 	 	 	 	 / *   * / 
                   i f   ( v a l   ( v l   -   1 )   <   v a l   ( v l ) ) 
                   t h e n   v   =   1 ; 
                   e l s e   v   =   0 ; 
                   g o t o   c a l c _ c o m m o n ; 
 
 
 c a l c   ( 1 6 ) : 	 	 	 / *   < =   * / 
 	 	 	 	 / *   * / 
                   i f   ( v a l   ( v l   -   1 )   < =   v a l   ( v l ) ) 
                   t h e n   v   =   1 ; 
                   e l s e   v   =   0 ; 
                   g o t o   c a l c _ c o m m o n ; 
 
 
 c a l c   ( 1 7 ) : 	 	 	 / *   >     * / 
 	 	 	 	 / *   * / 
                   i f   ( v a l   ( v l   -   1 )   >   v a l   ( v l ) ) 
                   t h e n   v   =   1 ; 
                   e l s e   v   =   0 ; 
                   g o t o   c a l c _ c o m m o n ; 
 
 
 c a l c   ( 1 8 ) : 	 	 	 / *   > =   * / 
 	 	 	 	 / *   * / 
                   i f   ( v a l   ( v l   -   1 )   > =   v a l   ( v l ) ) 
                   t h e n   v   =   1 ; 
                   e l s e   v   =   0 ; 
                   g o t o   c a l c _ c o m m o n ; 
 
 
 
 c a l c   ( 1 9 ) : 	 	 	 / *   +   * / 
 	 	 	 	 / *   * / 
                   v   =   v a l   ( v l   -   1 )   +   v a l   ( v l ) ; 
                   g o t o   c a l c _ c o m m o n ; 
 
 c a l c   ( 2 0 ) : 	 	 	 / *   -   * / 
 	 	 	 	 / *   * / 
                   v   =   v a l   ( v l   -   1 )   -   v a l   ( v l ) ; 
                   g o t o   c a l c _ c o m m o n ; 
 
 c a l c   ( 2 1 ) : 	 	 	 / *   *   * / 
 	 	 	 	 / *   * / 
                   v   =   v a l   ( v l   -   1 )   *   v a l   ( v l ) ; 
                   g o t o   c a l c _ c o m m o n ; 
 
 c a l c   ( 2 2 ) : 	 	 	 / *   /   * / 
 	 	 	 	 / *   * / 
                   v   =   v a l   ( v l   -   1 )   /   v a l   ( v l ) ; 
 c a l c _ c o m m o n : 
                   v l   =   v l   -   1 ; 
                   v a l   ( v l )   =   v ; 
                   s l   =   s l   -   2 ; 
                   s t k   ( s l )   =   1 0 ; 
                   g o t o   r e t r y ; 
 
 
 c a l c   ( 1 1 ) : 	 	 	 / *   (   * / 
 	 	 	 	 / *   * / 
                   i f   ( j   =   2 3 ) 
                   t h e n 
 	     d o ; 
 	           s l   =   s l   -   1 ; 
 	           s t k   ( s l )   =   1 0 ; 
 	           g o t o   e n d l o o p ; 
 	     e n d ; 
                   g o t o   a r i t h _ e r r ; 
 
 t y p e   ( 2 4 ) : 	 	 	 / *   S P   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 2 5 ) : 	 	 	 / *   H T   * / 
 	 	 	 	 / *   * / 
 t y p e   ( 2 8 ) : 	 	 	 / *   N L   * / 
 	 	 	 	 / *   * / 
 e n d l o o p : 
             e n d ; 
             o f e   =   i i ; 
             c h 6 0   =   l t r i m   ( r t r i m   ( r t r i m   ( c o n v e r t   ( p i c 6 0 ,   v a l   ( 1 ) ) ,   " 0 " ) ,   " . " ) ) ; 
             s u b s t r   ( o u t p u t ,   o f e   +   1 ,   l e n g t h   ( c h 6 0 ) )   =   c h 6 0 ; 
             o f e   =   o f e   +   l e n g t h   ( c h 6 0 ) ; 
       e n d   a r i t h m e t i c ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   c o n v e r t   a   t e x t   s t r i n g   f o r   d e b u g   d i s p l a y . 	 	 	               * / 
 
 c v t : 
       p r o c   ( i f p ,   i f i ,   i f e )   r e t u r n s   ( c h a r   ( 3 2 )   v a r ) ; 
 
             d c l   r e s 	             c h a r   ( 3 2 )   v a r ; 
             d c l   i f p 	             p t r ; 
             d c l   ( i f i ,   i f e )             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   c h 	             c h a r   ( 1 ) ; 
 
             r e s   =   " " " " ; 
             d o   i   =   i f i   t o   m i n   ( i f i   +   1 5 ,   i f e ) ; 
                   c h   =   i n p u t a   ( i ) ; 
                   i f   ( c h   <   "   " ) 
                   t h e n   c h   =   " ~ " ; 
                   r e s   =   r e s   | |   c h ; 
             e n d ; 
             r e s   =   r e s   | |   " " " " ; 
             r e t u r n   ( r e s ) ; 
 
       e n d   c v t ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   s h o w   a   b u n c h   o f   d e b u g g i n g   i n f o r m a t i o n . 	 	 	               * / 
 
 d u m p e r : 
       p r o c   ( t e x t ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   t e x t 	             c h a r   ( 4 ) , 
 	 i f p 	             p t r , 
 	 ( i f i ,   i f e )             f i x e d   b i n   ( 2 4 ) , 
 	 o f p 	             p t r , 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 T F 	             b i t   ( 2 ) ; 
 
             c a l l   i o a _   ( " ^ 2 i . ^ 2 i   ^ 4 a   T F ^ . 1 b   ^ i : ^ i   ^ i ^ - ^ a   -   ^ a " ,   m a c r o _ n e s t , 
 	   c o n s t r u c t _ n e s t ,   t e x t ,   T F ,   i f i ,   i f e ,   o f e ,   c v t   ( i f p ,   i f i ,   i f e ) , 
 	   c v t   ( o f p ,   m a x   ( 1 ,   o f e   -   1 5 ) ,   o f e ) ) ; 
 
       e n d   d u m p e r ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   E R R O R   M E S S A G E   p r o c s 	 	 	 	 	               * / 
 
 e r r o r _ m i s s i n g : 
       p r o c   ( w h o ,   b e g l ,   e n d l ) ; 
 
             d c l   w h o 	             c h a r   ( * ) , 
 	 b e g l 	             f i x e d   b i n   ( 2 4 ) , 
 	 e n d l 	             f i x e d   b i n   ( 2 4 ) ; 
 
             d c l   h o l d 	             c h a r   ( 1 0 0 0 )   v a r ; 
             d c l   ( c l i n e ,   e l i n e )     c h a r   ( 6 )   v a r ; 
 
             h o l d   =   " M i s s i n g   " ; 
             h o l d   =   h o l d   | |   m s g ; 
             g o t o   c o m m o n ; 
 
 e r r o r _ s y n t a x : 
       e n t r y   ( w h o ,   b e g l ,   e n d l ) ; 
 
             h o l d   =   " S y n t a x   e r r o r " ; 
             g o t o   c o m m o n ; 
 
 e r r o r _ m i s p l a c e d : 
       e n t r y   ( w h o ,   b e g l ,   e n d l ) ; 
 
             h o l d   =   " M i s p l a c e d   " ; 
             h o l d   =   h o l d   | |   m s g ; 
             g o t o   c o m m o n ; 
 
 e r r o r _ g e n : 
       e n t r y   ( w h o ,   b e g l ,   e n d l ) ; 
 
             h o l d   =   m s g ; 
             g o t o   c o m m o n ; 
 
 e r r o r _ a t t e m p t : 
       e n t r y   ( w h o ,   b e g l ,   e n d l ) ; 
 
             h o l d   =   " A t t e m p t   t o   " ; 
             h o l d   =   h o l d   | |   m s g ; 
             g o t o   c o m m o n ; 
 
 c o m m o n : 
             h o l d   =   h o l d   | |   "   i n   " " " ; 
             c l i n e   =   l i n e n o   ( b e g l ) ; 
             e l i n e   =   l i n e n o   ( e n d l ) ; 
 
             m s g   =   " 
 E R R O R   S E V E R I T Y   4 .   " ; 
             m s g   =   m s g   | |   w h o _ a m _ i ; 
             m s g   =   m s g   | |   "   " " " ; 
             m s g   =   m s g   | |   m y n a m e ; 
             m s g   =   m s g   | |   " " " ,   l i n e   " ; 
             m s g   =   m s g   | |   e l i n e ; 
             m s g   =   m s g   | |   " . 
             " ; 
             m s g   =   m s g   | |   h o l d ; 
             m s g   =   m s g   | |   " & " ; 
             m s g   =   m s g   | |   w h o ; 
             m s g   =   m s g   | |   " " " " ; 
             i f   ( e l i n e   ^ =   c l i n e ) 
             t h e n 
                   d o ; 
 	     m s g   =   m s g   | |   "   ( o n   l i n e   " ; 
 	     m s g   =   m s g   | |   c l i n e ; 
 	     m s g   =   m s g   | |   " ) " ; 
                   e n d ; 
             m s g   =   m s g   | |   " . " ; 
             e c o d e   =   e r r o r _ t a b l e _ $ b a d s y n t a x ; 
             g o t o   e x i t ; 
 
       e n d   e r r o r _ m i s s i n g ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   e x p a n d   a   s p e c i f i e d   s t r i n g 	 	 	 	 	               * / 
 
 e x p a n d : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   t f ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 t f 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
 
 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " e x p n " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   t f ) ; 
             d o   w h i l e   ( i f i   < =   i f e ) ; 
                   i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
                   i f   ( i   =   0 ) 
                   t h e n   i   =   i f e   -   i f i   +   1 ; 
                   e l s e   i   =   i   -   1 ; 
                   i f   ( i   >   0 ) 
                   t h e n 
 	     d o ; 
 	           s u b s t r   ( o u t p u t ,   o u t _ l e n   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	           o u t _ l e n   =   o u t _ l e n   +   i ; 
 	           i f i   =   i f i   +   i ; 
 	     e n d ; 
                   i f   ( i f i   >   i f e ) 
                   t h e n   r e t u r n ; 
                   i i   =   i f i ; 
                   c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   t f ,   " 1 " b ) ; 
                   i f   ( i i   =   i f i ) 
                   t h e n   r e t u r n ; 
             e n d ; 
       e n d   e x p a n d ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   s e a r c h   f o r   t h e   m a c r o   s p e c i f i e d 	 	 	 	               * / 
 
 f i n d _ m a c r o : 
       p r o c   ( r e f p ,   s e g n a m e ,   s u f f i x ,   m a c n a m e ) ; 
             d c l   r e f p 	             p t r , 
 	 s e g n a m e 	             c h a r   ( 3 2 )   v a r , 
 	 s u f f i x 	             c h a r   ( 3 2 )   v a r , 
 	 m a c n a m e 	             c h a r   ( 3 2 )   v a r ; 
 
             d c l   h c s _ $ i n i t i a t e _ c o u n t 
 	 	             e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 2 4 ) , 
 	 	             f i x e d   b i n   ( 2 ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
 
             d c l   s e a r c h _ p a t h s _ $ f i n d _ d i r 
 	 	             e n t r y   ( c h a r   ( * ) ,   p t r ,   c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) , 
 	 	             f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   s e a r c h _ f o r             c h a r   ( 3 5 )   v a r ; 
 
             i f   ( s e g n a m e   =   " " ) 
             t h e n   s e a r c h _ f o r   =   m a c n a m e ; 
             e l s e   s e a r c h _ f o r   =   s e g n a m e ; 
             s e a r c h _ f o r   =   s e a r c h _ f o r   | |   " . "   | |   s u f f i x ; 
 
             i f   ( r e f p   =   n u l l   ( ) ) 
             t h e n   r e f _ p a t h   =   " " ; 
             e l s e   c a l l   h c s _ $ f s _ g e t _ p a t h _ n a m e   ( r e f p ,   r e f _ p a t h ,   0 ,   " " ,   0 ) ; 
             i f   d b _ s w 
             t h e n   c a l l   i o a _   ( " f i n d _ m a c r o   ^ a   ^ a   ( ^ a ) " ,   s e a r c h _ f o r ,   m a c n a m e ,   r e f _ p a t h ) ; 
             c a l l   s e a r c h _ p a t h s _ $ f i n d _ d i r   ( ( s u f f i x ) ,   n u l l   ( ) ,   ( s e a r c h _ f o r ) ,   r e f _ p a t h , 
 	   d n a m e ,   e c o d e ) ; 
             i f   ( e c o d e   =   e r r o r _ t a b l e _ $ n o _ s e a r c h _ l i s t ) 
             t h e n 
                   d o ; 
 	     d c l   h c s _ $ m a k e _ p t r 	     e n t r y   ( p t r ,   c h a r   ( * ) ,   c h a r   ( * ) ,   p t r , 
 	 	 	     f i x e d   b i n   ( 3 5 ) ) ; 
 h e r e : 
 	     c a l l   h c s _ $ m a k e _ p t r   ( c o d e p t r   ( h e r e ) ,   s u f f i x   | |   " . s e a r c h " , 
 	               s u f f i x   | |   " . s e a r c h " ,   s e g p t r ,   e c o d e ) ; 
 	 	 	 	 / *   f u d g e   a   l i t t l e   * / 
 	     i f   ( s e g p t r   =   n u l l   ( ) ) 
 	     t h e n   c a l l   c o m _ e r r _   ( 0 ,   ( s u f f i x ) , 
 	 	     " D e f a u l t   s e a r c h   s e g m e n t   n o t   i n   s a m e   d i r e c t o r y   a s   o b j e c t   s e g m e n t . " 
 	 	     ) ; 
 	     e l s e   c a l l   s e a r c h _ p a t h s _ $ f i n d _ d i r   ( ( s u f f i x ) ,   n u l l   ( ) ,   ( s e a r c h _ f o r ) , 
 	 	     r e f _ p a t h ,   d n a m e ,   e c o d e ) ; 
                   e n d ; 
             i f   ( e c o d e   =   0 ) 
             t h e n 
                   d o ; 
 	     c a l l   h c s _ $ i n i t i a t e _ c o u n t   ( d n a m e ,   ( s e a r c h _ f o r ) ,   " " ,   b c ,   0 ,   s e g p t r , 
 	               e c o d e ) ; 
 	     i f   ( s e g p t r   ^ =   n u l l   ( ) ) 
 	     t h e n   e c o d e   =   0 ; 
                   e n d ; 
             i f   ( e c o d e   ^ =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " N o   d e f i n i t i o n   s e g m e n t   f o u n d .   " ; 
 	     m s g   =   m s g   | |   s e a r c h _ f o r ; 
 	     m s g   =   m s g   | |   " $ " ; 
 	     m s g   =   m s g   | |   m a c n a m e ; 
 	     e c o d e   =   - 1 ; 
 	     g o t o   e x i t ; 
                   e n d ; 
             s e g i   =   1 ; 
             s e g e   =   d i v i d e   ( b c ,   9 ,   2 4 ,   0 ) ; 
             i f   m a c _ s w 
             t h e n 
                   d o ; 
 	     i f   ( s u f f i x   =   " m a c r o " ) 
 	     t h e n   i   =   i n d e x   ( s e g ,   " & m a c r o   "   | |   m a c n a m e   | |   N L ) ; 
 	     e l s e   i   =   i n d e x   ( s e g ,   " & e x p a n d   "   | |   m a c n a m e   | |   N L ) ; 
 	     i f   ( i   =   0 ) 
 	     t h e n 
 	           d o ; 
 	                 m s g   =   " N o   d e f i n i t i o n   f o u n d   f o r   " " " ; 
 b a d _ m a c : 
 	                 m s g   =   m s g   | |   m a c n a m e ; 
 	                 m s g   =   m s g   | |   " " "   " ; 
 	                 m s g   =   m s g   | |   " i n   " ; 
 	                 m s g   =   m s g   | |   r t r i m   ( d n a m e ) ; 
 	                 m s g   =   m s g   | |   " > " ; 
 	                 m s g   =   m s g   | |   s e a r c h _ f o r ; 
 	                 e c o d e   =   - 1 ; 
 	                 g o t o   e x i t ; 
 	           e n d ; 
 	     s e g i   =   i   +   l e n g t h   ( m a c n a m e )   +   8 ; 
 	     i f   ( s u f f i x   =   " m a c r o " ) 
 	     t h e n   i   =   i n d e x   ( s u b s t r   ( s e g ,   s e g i ) ,   " & m e n d 
 " ) ; 
 	     e l s e 
 	           d o ; 
 	                 s e g i   =   s e g i   +   1 ; 	 / *   & e x p a n d   1   c h a r > t h a n   & m a c r o 	               * / 
 	                 i   =   i n d e x   ( s u b s t r   ( s e g ,   s e g i ) ,   " & e x p e n d 
 " ) ; 
 	           e n d ; 
 
 	     i f   i   =   0 
 	     t h e n 
 	           d o ; 
 	                 m s g   =   " & "   | |   e n d _ s y m   | |   "   m i s s i n g   o n   " " " ; 
 	                 g o t o   b a d _ m a c ; 
 	           e n d ; 
 
 	     s e g e   =   s e g i   +   i   -   2 ; 
 	     c a l l   a d d m a c r o   ( d n a m e ,   b e f o r e   ( s e a r c h _ f o r ,   " . " ) ,   ( m a c n a m e ) ,   " 0 " b , 
 	               s e g p t r ,   s e g i ,   s e g e ) ; 
 	     i f   ( s e g n a m e   =   " " ) 
 	     t h e n 
 	           d o ; 
 
 / *   n o w   a l l   t h a t   i s   f i n e   a n d   d a n d y ,   b u t   w e   d o n ' t   w a n t   t o   l e t   & b ( )   f i n d   a n           * / 
 / *   e x t e r n a l   b $ b   b e c a u s e   n o t h i n g   h a s   b e e n   i n t e r n a l l y   d e f i n e d   a n d   t h e n   l a t e r       * / 
 / *   h a v e   t h e   s a m e   t h i n g   f i n d   a   d i f f e r e n t   m a c r o   b e c a u s e   t h e r e   n o w   h a s   b e e n   a n     * / 
 / *   i n t e r n a l   m a c r o / d e f i n e   e n c o u n t e r e d .   S o   w e   d u m m y   u p   a   p s e u d o - i n t e r n a l   e n t r y   * / 
 / *   t o   n i p   s u c h   a   t h i n g   i n   t h e   b u d . 	 	 	 	               * / 
 
 	                 c a l l   a d d m a c r o   ( " " ,   b e f o r e   ( s e a r c h _ f o r ,   " . " ) ,   ( m a c n a m e ) ,   " 1 " b , 
 	 	       s e g p t r ,   s e g i ,   s e g e ) ; 
 	           e n d ; 
                   e n d ; 
 
       e n d   f i n d _ m a c r o ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   f r e e   a l l   t h e   s t o r a g e   u s e d 	 	 	 	 	               * / 
 
 f r e e _ u m : 
       p r o c   ( w h i c h ) ; 
 
             d c l   w h i c h 	             c h a r   ( 3 ) ; 
 
             d o   w h i l e   ( t p t r   ^ =   n u l l   ( ) ) ; 
                   v a r _ p t r   =   t p t r ; 
                   t p t r   =   v a r . n e x t ; 
                   i f   ( v a r . t y p e   =   0 ) 
                   t h e n 
 	     d o ; 
 	           i f   d b _ s w 
 	           t h e n 
 	                 d o ; 
 	 	   c a l l   i o a _   ( " ^ p 	 ^ a   ^ a " ,   v a r _ p t r ,   w h i c h ,   v a r . n a m e ) ; 
 	 	   i f   v a r . r e f   ^ =   n u l l   ( ) 
 	 	   t h e n   c a l l   i o a _   ( "     ^ p 	 " " ^ a " " " ,   v a r . r e f ,   v a r t e x t ) ; 
 	                 e n d ; 
 	           i f   ( v a r . r e f   ^ =   n u l l   ( ) ) 
 	           t h e n 
 	                 d o ; 
 	 	   i f   a l _ s w 
 	 	   t h e n   c a l l   i o a _   ( " F   ^ p   " " ^ a " " " ,   v a r . r e f ,   v a r t e x t ) ; 
 	 	   f r e e   v a r t e x t   i n   ( f r e e _ a r e a ) ; 
 	                 e n d ; 
 	     e n d ; 
                   i f   ( v a r . t y p e   > =   1 )   &   ( v a r . t y p e   < =   5 ) 
                   t h e n 
 	     d o ; 
 	           a r r _ p t r   =   v a r . r e f ; 
 	           i f   d b _ s w 
 	           t h e n   c a l l   i o a _   ( " ^ p 	 ^ a   ^ a { ^ i : ^ i } " ,   v a r _ p t r ,   w h i c h ,   v a r . n a m e , 
 	 	           a r r a y . l o w e r ,   a r r a y . l o w e r   +   v a r . l e n   -   1 ) ; 
 	           d o   a r r _ e l e m   =   1   t o   v a r . l e n ; 
 	                 i f   ( a r r a y . r e f   ( a r r _ e l e m )   ^ =   n u l l   ( ) ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         i f   a l _ s w 
 	 	         t h e n   c a l l   i o a _   ( " ^ p 	 { ^ i }   " " ^ a " " " , 
 	 	 	         a r r a y . r e f   ( a r r _ e l e m ) , 
 	 	 	         - a r r a y . l o w e r   +   a r r _ e l e m   -   1 ,   a r r t e x t ) ; 
 	 	         f r e e   a r r t e x t   i n   ( f r e e _ a r e a ) ; 
 	 	   e n d ; 
 	           e n d ; 
 	     e n d ; 
                   i f   a l _ s w 
                   t h e n   c a l l   i o a _   ( " F   v a r - ^ a   ^ p " ,   v a r . n a m e ,   v a r _ p t r ) ; 
                   f r e e   v a r   i n   ( f r e e _ a r e a ) ; 
             e n d ; 
 
       e n d   f r e e _ u m ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   s e t   u p   a n   a r e a 	 	 	 	 	 	               * / 
 
 g e t _ a r e a : 
       p r o c ; 
 
             a i . v e r s i o n   =   a r e a _ i n f o _ v e r s i o n _ 1 ; 
             s t r i n g   ( a i . c o n t r o l )   =   " 0 " b ; 
             a i . e x t e n d   =   " 1 " b ; 
             a i . o w n e r   =   s l _ n a m e ; 
             a i . s i z e   =   2 6 1 1 2 0 ; 
             a i . a r e a p   =   n u l l   ( ) ; 
             c a l l   d e f i n e _ a r e a _   ( a d d r   ( a i ) ,   e c o d e ) ; 
             f r e e _ a r e a _ p   =   a i . a r e a p ; 
 
 % i n c l u d e   a r e a _ i n f o ; 
             d c l   1   a i 	             l i k e   a r e a _ i n f o ; 
 
       e n d   g e t _ a r e a ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   p a r s e   a n   a r r a y   r a n g e   s p e c i f i c a t i o n . 	 	 	 	               * / 
 
 g e t _ r a n g e : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   i ,   j ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
 
             i f   ( i n p u t a   ( i f i   +   2 )   =   " } " )   |   ( i n p u t a   ( i f i   +   2 )   =   " , " ) 
             t h e n 
                   d o ; 
 	     i f i   =   i f i   +   2 ; 
 	     r e t u r n ; 
                   e n d ; 
             i i   =   o f e ; 
             c a l l   a r i t h m e t i c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i ,   j   =   f i x e d   ( s u b s t r   ( o u t p u t ,   i i   +   1 ,   o f e   -   i i ) ) ; 
             o f e   =   i i ; 
             i f   ( i n p u t a   ( i f i )   =   " : " ) 
             t h e n 
                   d o ; 
 	     i f i   =   i f i   -   1 ; 
 	     c a l l   a r i t h m e t i c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 	     j   =   f i x e d   ( s u b s t r   ( o u t p u t ,   i i   +   1 ,   o f e   -   i i ) ) ; 
 	     o f e   =   i i ; 
                   e n d ; 
 
       e n d   g e t _ r a n g e ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   p a r s e   t h e   n e x t   i n p u t   t o k e n 	 	 	 	 	               * / 
 
 g e t _ t o k e n : 
       p r o c   ( i f p ,   i f i ,   i f e ) ; 
 
             d c l   i f p 	             p t r , 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   1 )   ^ =   " & " ) 
             t h e n 
                   d o ; 
 	     c 3 2   =   " " ; 
 	     r e t u r n ; 
                   e n d ; 
             i   =   v e r i f y   ( s u b s t r   ( i n p u t ,   i f i   +   1 ) ,   " a b c d e f g h i j k l m n o p q r s t u v w x y z " ) ; 
             i f   ( i   =   0 ) 
             t h e n   i   =   i f e   -   i f i   +   1 ; 
             e l s e   i f   ( i   =   1 ) 
             t h e n   i   =   2 ; 
             c 3 2   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 
       e n d   g e t _ t o k e n ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   d e t e r m i n e   a n d   f o r m a t   t h e   l i n e   n u m b e r   o f   a   g i v e n   p o i n t   i n   a   s e g m e n t 	               * / 
 
 l i n e n o : 
       p r o c   ( s e g i )   r e t u r n s   ( c h a r   ( 6 )   v a r ) ; 
 
             d c l   s e g i 	             f i x e d   b i n   ( 2 4 ) ; 
 
             d c l   c 6 	             p i c   " z z z z z 9 " ; 
             d c l   c v 6 	             c h a r   ( 6 )   v a r ; 
             d c l   j 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   l i n e 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   e 	             f i x e d   b i n   ( 2 4 ) ; 
 
             l i n e   =   0 ; 
             i   =   1 ; 
             e   =   m i n   ( s e g i ,   s e g e ) ; 
             d o   w h i l e   ( i   < =   s e g i ) ; 
                   l i n e   =   l i n e   +   1 ; 
                   j   =   i n d e x   ( s u b s t r   ( s e g ,   i ) ,   N L ) ; 
                   i f   ( j   =   0 ) 
                   t h e n   i   =   s e g e   +   1 ; 
                   e l s e   i   =   i   +   j ; 
             e n d ; 
             c v 6   =   l t r i m   ( c h a r   ( l i n e ) ) ; 
             r e t u r n   ( c v 6 ) ; 
 
       e n d   l i n e n o ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   p r o c e s s   a   l o g i c a l   e x p r e s s i o n 	 	 	 	               * / 
 
 l o g i c a l : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j ,   k k ) 
 	 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c 	             ( 2 4 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e p _ c t 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g s t r l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   r e l 	             f i x e d   b i n   ( 2 4 ) ; 
 
             j j   =   o f e ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             b e g l   =   i f i ; 
 l o o p : 
             i   =   s e a r c h   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & = ^ < > " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 l o g _ e r r : 
 	     m s g   =   " M i s s i n g   t e r m i n a t i o n   o f   l o g i c a l   e x p r e s s i o n .   " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     i f i   =   i f i   +   i ; 
                   e n d ; 
             r e l   =   i n d e x   ( " & = ^ = < ^ > = " ,   i n p u t a   ( i f i ) ) ; 
             g o t o   t y p e   ( r e l ) ; 
 
 t y p e   ( 1 ) : 	 	 	 	 / *   &   * / 
 	 	 	 	 / *   &   * / 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   5 )   =   " & t h e n " )   |   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   =   " & ; " ) 
             t h e n 
                   d o ; 
 	     k k   =   o f e ; 
 	     i f   d b _ s w   |   t r _ s w 
 	     t h e n 
 	           d o ; 
 	                 c a l l   i o a _ $ n n l   ( " # ^ a : ^ a ^ - l o g - ^ . 1 b   ( " ,   l i n e n o   ( b e g l ) , 
 	 	       l i n e n o   ( i f i   -   1 ) ,   T F ) ; 
 	                 c a l l   s h o w _ s t r i n g   ( s u b s t r   ( o u t p u t ,   j j   +   1 ,   k k   -   j j ) ,   " ) 
 " ) ; 
 	           e n d ; 
 	     o f e   =   j j ; 
 	     i f   ( T F   =   " 0 0 " b ) 
 	     t h e n   r e t u r n ; 
 	     c 3 2   =   t r a n s l a t e   ( s u b s t r   ( o u t p u t ,   j j   +   1 ,   k k   -   j j ) , 
 	               "     A B C D E F G H I J K L M N O P Q R S T U V W X Y Z " ,   " 
 	 a b c d e f g h i j k l m n o p q r s t u v w x y z " ) ; 
 	     i f   ( c 3 2   =   " 0 " )   |   ( c 3 2   =   " F A L S E " )   |   ( c 3 2   =   " F " )   |   ( c 3 2   =   " N O " ) 
 	     t h e n   T F   =   " 0 1 " b ; 
 	     e l s e   T F   =   " 1 0 " b ; 
 	     r e t u r n ; 
                   e n d ; 
             c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
             g o t o   l o o p ; 
 t y p e   ( 3 ) : 	 	 	 	 / *   ^   * / 
 	 	 	 	 / *   ^   * / 
 t y p e   ( 5 ) : 	 	 	 	 / *   <   * / 
 	 	 	 	 / *   <   * / 
 t y p e   ( 7 ) : 	 	 	 	 / *   >   * / 
 	 	 	 	 / *   >   * / 
             i f   ( i n p u t a   ( i f i   +   1 )   =   " = " ) 
             t h e n 
                   d o ; 
 	     r e l   =   r e l   +   1 ; 
 	     i f i   =   i f i   +   1 ; 
                   e n d ; 
             e l s e   i f   ( r e l   =   3 ) 
             t h e n 
                   d o ; 
 	     i f i   =   i f i   +   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   " ^ " ; 
 	     o f e   =   o f e   +   1 ; 
 	     g o t o   l o o p ; 
                   e n d ; 
 t y p e   ( 2 ) : 	 	 	 	 / *   =   * / 
 	 	 	 	 / *   =   * / 
 	 	 	 	 / *   2   =   	 4   ^ = 	 	               * / 
 	 	 	 	 / *   5   <         6   < = 	 	               * / 
 	 	 	 	 / *   7   > 	 8   > = 	 	               * / 
             i f i   =   i f i   +   1 ; 
             i i   =   o f e ; 
 l o o p 1 : 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             j   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
             i f   ( j   =   0 ) 
             t h e n   g o t o   l o g _ e r r ; 
             i f   ( j   >   1 ) 
             t h e n 
                   d o ; 
 	     j   =   j   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   j )   =   s u b s t r   ( i n p u t ,   i f i ,   j ) ; 
 	     i f i   =   i f i   +   j ; 
 	     o f e   =   o f e   +   j ; 
                   e n d ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   5 )   =   " & t h e n " )   |   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   =   " & ; " ) 
             t h e n 
                   d o ; 
 	     c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
 	     k k   =   o f e ; 
 	     i f   d b _ s w   |   t r _ s w 
 	     t h e n 
 	           d o ; 
 	                 c a l l   i o a _ $ n n l   ( " # ^ a : ^ a ^ - l o g - ^ . 1 b   ( " ,   l i n e n o   ( b e g l ) , 
 	 	       l i n e n o   ( i f i   -   1 ) ,   T F ) ; 
 	                 c a l l   s h o w _ s t r i n g   ( s u b s t r   ( o u t p u t ,   j j   +   1 ,   i i   -   j j ) ,   " " ) ; 
 	                 c a l l   i o a _ $ n n l   ( " ) ^ a ( " ,   r e l a t   ( r e l ) ) ; 
 	                 c a l l   s h o w _ s t r i n g   ( s u b s t r   ( o u t p u t ,   i i   +   1 ,   k k   -   i i ) ,   " ) 
 " ) ; 
 	           e n d ; 
 	     o f e   =   j j ; 
 	     i f   ( T F   =   " 0 0 " b ) 
 	     t h e n   r e t u r n ; 
 	     d c l   r e l a t 	     ( 2 : 8 )   c h a r   ( 2 )   i n t   s t a t i c 
 	 	 	     i n i t   ( " = " ,   " ! ! " ,   " ^ = " ,   " < " ,   " < = " ,   " > " ,   " > = " ) ; 
 	     g o t o   c o m p   ( r e l ) ; 
                   e n d ; 
             c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
             g o t o   l o o p 1 ; 
 
 c o m p   ( 2 ) : 
             i f   ( s u b s t r   ( o u t p u t ,   j j   +   1 ,   i i   -   j j )   =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   k k   -   i i ) ) 
             t h e n   T F   =   " 1 0 " b ; 
             e l s e   T F   =   " 0 1 " b ; 
             r e t u r n ; 
 
 c o m p   ( 4 ) : 
             i f   ( s u b s t r   ( o u t p u t ,   j j   +   1 ,   i i   -   j j )   ^ =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   k k   -   i i ) ) 
             t h e n   T F   =   " 1 0 " b ; 
             e l s e   T F   =   " 0 1 " b ; 
             r e t u r n ; 
 
 c o m p   ( 5 ) : 
             i f   ( s u b s t r   ( o u t p u t ,   j j   +   1 ,   i i   -   j j )   <   s u b s t r   ( o u t p u t ,   i i   +   1 ,   k k   -   i i ) ) 
             t h e n   T F   =   " 1 0 " b ; 
             e l s e   T F   =   " 0 1 " b ; 
             r e t u r n ; 
 
 c o m p   ( 6 ) : 
             i f   ( s u b s t r   ( o u t p u t ,   j j   +   1 ,   i i   -   j j )   < =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   k k   -   i i ) ) 
             t h e n   T F   =   " 1 0 " b ; 
             e l s e   T F   =   " 0 1 " b ; 
             r e t u r n ; 
 
 c o m p   ( 7 ) : 
             i f   ( s u b s t r   ( o u t p u t ,   j j   +   1 ,   i i   -   j j )   >   s u b s t r   ( o u t p u t ,   i i   +   1 ,   k k   -   i i ) ) 
             t h e n   T F   =   " 1 0 " b ; 
             e l s e   T F   =   " 0 1 " b ; 
             r e t u r n ; 
 
 c o m p   ( 8 ) : 
             i f   ( s u b s t r   ( o u t p u t ,   j j   +   1 ,   i i   -   j j )   > =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   k k   -   i i ) ) 
             t h e n   T F   =   " 1 0 " b ; 
             e l s e   T F   =   " 0 1 " b ; 
             r e t u r n ; 
 
       e n d   l o g i c a l ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   l o o k   u p   a   s p e c i f i e d   n a m e   i n   t h e   v a r i a b l e   l i s t s 	 	 	               * / 
 
 l o o k u p : 
       p r o c   ( v n a m e )   r e t u r n s   ( f i x e d   b i n )   r e c u r s i v e ; 
 
             d c l   v n a m e 	             c h a r   ( 3 2 )   v a r ; 
 
 / *   f i r s t   l o o k   u p   l o c a l   v a r i a b l e s 	 	 	 	               * / 
 
             v a r _ p t r   =   l o c a l _ v a r _ p t r ; 
             d o   w h i l e   ( v a r _ p t r   ^ =   n u l l   ( ) ) ; 
                   i f   ( v a r . n a m e   =   v n a m e ) 
                   t h e n   r e t u r n   ( 3 ) ; 
                   v a r _ p t r   =   v a r . n e x t ; 
             e n d ; 
 
 / *   t h e n   l o o k   u p   i n t e r n a l   s t a t i c   v a r i a b l e s 	 	 	               * / 
 
             i f   ( i n t _ v a r _ p t r   =   n u l l   ( ) ) 
             t h e n 
                   d o ; 
 	     i n t _ v a r _ p t r   =   i n t _ v a r s _ b a s e ; 
 	     d o   w h i l e   ( i n t _ v a r _ p t r   ^ =   n u l l   ( ) ) ; 
 	           i f   ( m a c n a m e   =   i n t _ v a r s . m a c r o ) 
 	           t h e n   g o t o   f o u n d ; 
 	           e l s e   i n t _ v a r _ p t r   =   i n t _ v a r s . n e x t ; 
 	     e n d ; 
 	     a l l o c a t e   i n t _ v a r s   i n   ( f r e e _ a r e a ) ; 
 	     i f   a l _ s w 
 	     t h e n   c a l l   i o a _   ( " A   i n t _ v a r s   ^ a ^ i   ^ p " ,   m a c n a m e ,   s i z e   ( i n t _ v a r s ) , 
 	 	     i n t _ v a r _ p t r ) ; 
 	     i n t _ v a r s . n e x t   =   i n t _ v a r s _ b a s e ; 
 	     i n t _ v a r s . r e f   =   n u l l   ( ) ; 
 	     i n t _ v a r s . m a c r o   =   m a c n a m e ; 
 	     i n t _ v a r s _ b a s e   =   i n t _ v a r _ p t r ; 
                   e n d ; 
 
 f o u n d : 
             v a r _ p t r   =   i n t _ v a r s . r e f ; 
             d o   w h i l e   ( v a r _ p t r   ^ =   n u l l   ( ) ) ; 
                   i f   ( v a r . n a m e   =   v n a m e ) 
                   t h e n   r e t u r n   ( 2 ) ; 
                   v a r _ p t r   =   v a r . n e x t ; 
             e n d ; 
 
 / *   t h e n   l o o k   u p   e x t e r n a l   s t a t i c   v a r i a b l e s   * / 
 
             v a r _ p t r   =   e x t _ v a r _ p t r ; 
             d o   w h i l e   ( v a r _ p t r   ^ =   n u l l   ( ) ) ; 
                   i f   ( v a r . n a m e   =   v n a m e ) 
                   t h e n   r e t u r n   ( 1 ) ; 
                   v a r _ p t r   =   v a r . n e x t ; 
             e n d ; 
 
             r e t u r n   ( 0 ) ; 
       e n d   l o o k u p ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   h a n d l e   t h e   a c t i v e   f u n c t i o n   c a l l 	 	 	 	               * / 
 
 m a c r o _ a f : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l e v e l 	             f i x e d   b i n   ( 2 4 ) ; 
 
 / *   & [   . . .   ]   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   2 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " a f . . " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i i   =   o f e ; 
             l e v e l   =   1 ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
             i   =   s e a r c h   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & [ ] " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " ] " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " [ " ,   b e g l ,   i f e ) ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     i f i   =   i f i   +   i ; 
                   e n d ; 
             g o t o   t y p e   ( i n d e x   ( " & [ ] " ,   i n p u t a   ( i f i ) ) ) ; 
 
 t y p e   ( 1 ) : 	 	 	 	 / *   &   * / 
 	 	 	 	 / *   * / 
             c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
             i f   ( c 3 2   =   " & ; " ) 
             t h e n   g o t o   m i s p l a c e d ; 
             g o t o   l o o p ; 
 
 t y p e   ( 2 ) : 	 	 	 	 / *   [   * / 
 	 	 	 	 / *   * / 
             s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   " [ " ; 
             o f e   =   o f e   +   1 ; 
             i f i   =   i f i   +   1 ; 
             l e v e l   =   l e v e l   +   1 ; 
             g o t o   l o o p ; 
 
 t y p e   ( 3 ) : 	 	 	 	 / *   ]   * / 
 	 	 	 	 / *   * / 
             s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   " ] " ; 
             o f e   =   o f e   +   1 ; 
             i f i   =   i f i   +   1 ; 
             l e v e l   =   l e v e l   -   1 ; 
             i f   ( l e v e l   >   0 ) 
             t h e n   g o t o   l o o p ; 
 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
             o f e   =   o f e   -   1 ; 
             i f   ( T F   =   " 0 0 " b ) 
             t h e n 
                   d o ; 
 	     o f e   =   i i ; 
 	     r e t u r n ; 
                   e n d ; 
 
             b e g i n ; 
 
                   d c l   r v a l 	                   c h a r   ( 5 0 0 )   v a r ; 
                   d c l   c u _ $ e v a l u a t e _ a c t i v e _ s t r i n g 
 	 	                   e n t r y   ( p t r ,   c h a r   ( * ) ,   f i x e d   b i n ,   c h a r   ( * )   v a r , 
 	 	                   f i x e d   b i n   ( 3 5 ) ) ; 
 % i n c l u d e   c p _ a c t i v e _ s t r i n g _ t y p e s ; 
 
                   c a l l   c u _ $ e v a l u a t e _ a c t i v e _ s t r i n g   ( n u l l   ( ) , 
 	         s u b s t r   ( o u t p u t ,   i i   +   1 ,   o f e   -   i i ) ,   A T O M I C _ A C T I V E _ S T R I N G ,   r v a l , 
 	         e c o d e ) ; 
                   i f   e c o d e   ^ =   0 
                   t h e n 
 	     d o ; 
 	           e r r _ c t   =   0 ; 
 	           m s g   =   " P r o c e s s i n g   a c t i v e   f u n c t t i o n .   " ; 
 	           m s g _ e t c   =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   o f e   -   i i ) ; 
 	           g o t o   a d d _ i d ; 
 	     e n d ; 
                   o f e   =   i i ; 
                   s u b s t r   ( o u t p u t ,   o f e   +   1 ,   l e n g t h   ( r v a l ) )   =   r v a l ; 
                   o f e   =   o f e   +   l e n g t h   ( r v a l ) ; 
             e n d ; 
             r e t u r n ; 
 
       e n d   m a c r o _ a f ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   h a n d l e   a   m a c r o   c a l l 	 	 	 	 	               * / 
 
 m a c r o _ c a l l : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F )   r e c u r s i v e ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c 	             ( 1 0 0 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   ( s e p _ c t ,   l e v e l )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g s t r l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   c a l l s e g 	             c h a r   ( 3 2 )   v a r ; 
             d c l   c a l l m a c 	             c h a r   ( 3 2 )   v a r ; 
 
 / *         & x x x (   . . .   ,   . . .   ,   . . . )   * / 
 / *   & x x x $ y y (   . . .   ,   . . .   ,   . . . )   * / 
 
             b e g l   =   i f i ; 
             c a l l s e g   =   c 3 2 x ; 
             c a l l m a c   =   c 3 2 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " c a l l " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i i   =   o f e ; 
             s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   " ( " ; 
             o f e ,   l o c   ( 1 )   =   o f e   +   1 ; 
             s e p _ c t   =   1 ; 
             l e v e l   =   1 ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
             i   =   s e a r c h   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & ( ) , " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " ) " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( c a l l m a c   | |   " ( " ,   b e g l ,   i f e ) ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     i f i   =   i f i   +   i ; 
                   e n d ; 
             g o t o   t y p e   ( i n d e x   ( " & ( ) , " ,   i n p u t a   ( i f i ) ) ) ; 
 
 t y p e   ( 1 ) : 	 	 	 	 / *   &   * / 
 	 	 	 	 / *   * / 
             c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
             g o t o   l o o p ; 
 
 t y p e   ( 2 ) : 	 	 	 	 / *   (   * / 
 	 	 	 	 / *   * / 
             s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   " ( " ; 
             o f e   =   o f e   +   1 ; 
             i f i   =   i f i   +   1 ; 
             l e v e l   =   l e v e l   +   1 ; 
             g o t o   l o o p ; 
 
 t y p e   ( 3 ) : 	 	 	 	 / *   )   * / 
 	 	 	 	 / *   * / 
             s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   " ) " ; 
             o f e   =   o f e   +   1 ; 
             i f i   =   i f i   +   1 ; 
             l e v e l   =   l e v e l   -   1 ; 
             i f   ( l e v e l   >   0 ) 
             t h e n   g o t o   l o o p ; 
 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
             l o c   ( s e p _ c t   +   1 )   =   o f e ; 
             a r g s t r l   =   o f e   -   l o c   ( 1 )   +   1 ; 
             i f   ( a r g s t r l   >   1 6 3 8 4 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & c a l l   a r g - s t r i n g   >   1 6 3 8 4   c h r s . " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             b e g i n ; 
                   d c l   1   a r g s 	                   ( s e p _ c t )   l i k e   a r g l ; 
                   d c l   a r g s t r 	                   ( a r g s t r l )   c h a r   ( 1 )   u n a l ; 
                   i f   d b _ s w   |   t r _ s w 
                   t h e n 
 	     d o ; 
 	           c a l l   i o a _ $ n n l   ( " # ^ a : ^ a ^ - c a l l   ^ a $ ^ a   " ,   l i n e n o   ( b e g l ) , 
 	 	 l i n e n o   ( i f i   -   1 ) ,   c a l l s e g ,   c a l l m a c ) ; 
 	           c a l l   s h o w _ s t r i n g   ( s u b s t r   ( o u t p u t ,   l o c   ( 1 ) ,   a r g s t r l ) ,   " 
 " ) ; 
 	     e n d ; 
                   s t r i n g   ( a r g s t r )   =   s u b s t r   ( o u t p u t ,   l o c   ( 1 ) ,   a r g s t r l ) ; 
                   o f e   =   l o c   ( 1 )   -   1 ; 
                   i f   ( a r g s t r l   =   2 ) 
                   t h e n   s e p _ c t   =   0 ; 
                   d o   i   =   1   t o   s e p _ c t ; 
 	     a r g s . l   ( i )   =   l o c   ( i   +   1 )   -   l o c   ( i )   -   1 ; 
 	     j   =   l o c   ( i )   -   o f e   +   1 ; 
 	     a r g s . p   ( i )   =   a d d r   ( a r g s t r   ( j ) ) ; 
                   e n d ; 
                   c a l l   m a c r o _   ( s l _ n a m e ,   c a l l s e g ,   c a l l m a c ,   o f p ,   o f e ,   a d d r   ( a r g s ) , 
 	         ( s e p _ c t ) ,   m s g ,   i f p ,   e c o d e ) ; 
                   i f   ( e c o d e   =   - 1 ) 
                   t h e n   c a l l   e r r o r _ g e n   ( " c a l l " ,   b e g l ,   i f i ) ; 
                   i f   ( e c o d e   ^ =   0 ) 
                   t h e n 
 	     d o ; 
 	           i f i   =   b e g l ; 
 	           c a l l _ e r r   =   " 1 " b ; 
 	           g o t o   a d d _ i d ; 
 	     e n d ; 
             e n d ; 
             r e t u r n ; 
 
 t y p e   ( 4 ) : 	 	 	 	 / *   ,   * / 
 	 	 	 	 / *   * / 
             s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   " , " ; 
             o f e   =   o f e   +   1 ; 
             i f i   =   i f i   +   1 ; 
             i f   ( l e v e l   =   1 ) 
             t h e n 
                   d o ; 
 	     i f   ( s e p _ c t   > =   1 0 0 ) 
 	     t h e n 
 	           d o ; 
 	                 m s g   =   " C a n n o t   h a n d l e   o v e r   1 0 0   " ; 
 	                 m s g   =   m s g   | |   w h o _ a m _ i ; 
 	                 m s g   =   m s g   | |   "   a r g u m e n t s . " ; 
 	                 g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	           e n d ; 
 	     s e p _ c t   =   s e p _ c t   +   1 ; 
 	     l o c   ( s e p _ c t )   =   o f e ; 
 	     c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
                   e n d ; 
             g o t o   l o o p ; 
       e n d   m a c r o _ c a l l ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   d y n a m i c a l l y   d e f i n e   a   m a c r o 	 	 	 	 	               * / 
 
 m a c r o _ d e f i n e : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c 	             ( 2 4 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e p _ c t 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g s t r l 	             f i x e d   b i n   ( 2 4 ) ; 
 
 / *   & d e f i n e   . . .   & d e n d   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   7 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " d e f i " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i i   =   o f e ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
             i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & d e n d " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " d e f i n e " ,   b e g l ,   i f e ) ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     i f i   =   i f i   +   i ; 
                   e n d ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   5 )   =   " & d e n d " ) 
             t h e n 
                   d o ; 
 	     i f i   =   i f i   +   5 ; 
 	     c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
 	     i f   ( T F   &   " 1 0 " b ) 
 	     t h e n 
 	           d o ; 
 	                 i   =   i i   +   1 ; 
 	                 i   =   i   +   v e r i f y   ( s u b s t r   ( o u t p u t ,   i ,   o f e   -   i   +   1 ) ,   s p a c e )   -   1 ; 
 	                 j   =   v e r i f y   ( s u b s t r   ( o u t p u t ,   i ,   o f e   -   i   +   1 ) , 
 	 	       " a b c d e f g h i j k l m n o p q r s t u v w x y z " 
 	 	       | |   " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ 0 1 2 3 4 5 6 7 8 9 " ) ; 
 	                 i f   ( j   =   0 ) 
 	                 t h e n 
 	 	   d o ; 
 d e f _ e r r : 
 	 	         c a l l   e r r o r _ s y n t a x   ( " d e f i n e " ,   b e g l ,   i f i ) ; 
 	 	   e n d ; 
 	                 i f   ( j   <   2 ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " m a c r o n a m e " ; 
 	 	         c a l l   e r r o r _ m i s s i n g   ( " d e f i n e " ,   b e g l ,   i f i ) ; 
 	 	   e n d ; 
 	                 j   =   j   -   1 ; 
 	                 c 3 2   =   s u b s t r   ( o u t p u t ,   i ,   j ) ; 
 	                 i   =   i   +   j ; 
 	                 i f   ( s u b s t r   ( o u t p u t ,   i ,   1 )   ^ =   N L ) 
 	                 t h e n   g o t o   d e f _ e r r ; 
 	                 m a c r o _ h o l d e r _ l   =   o f e   -   i ; 
 	                 a l l o c a t e   m a c r o _ h o l d e r   i n   ( f r e e _ a r e a ) ; 
 	                 m a c r o _ h o l d e r   =   s u b s t r   ( o u t p u t ,   i   +   1 ,   m a c r o _ h o l d e r _ l ) ; 
 	                 i f   d b _ s w   |   t r _ s w 
 	                 t h e n 
 	 	   d o ; 
 	 	         c a l l   i o a _ $ n n l   ( " # ^ a : ^ a ^ - & d e f i n e   ^ a ^ / ^ - " ,   l i n e n o   ( b e g l ) , 
 	 	                   l i n e n o   ( i f i   -   1 ) ,   c 3 2 ) ; 
 	 	         c a l l   s h o w _ s t r i n g   ( m a c r o _ h o l d e r ,   " & d e n d 
 " ) ; 
 	 	   e n d ; 
 	                 c a l l   a d d m a c r o   ( "     & d e f i n e ' e d   i n   "   | |   m y n a m e   | |   "     " ,   " " ,   c 3 2 , 
 	 	       " 1 " b ,   m a c r o _ h o l d e r _ p ,   1 ,   m a c r o _ h o l d e r _ l ) ; 
 	           e n d ; 
 	     o f e   =   i i ; 
 	     c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
 	     r e t u r n ; 
                   e n d ; 
             c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
             g o t o   l o o p ; 
       e n d   m a c r o _ d e f i n e ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   h a n d l e   t h e   i t e r a t i o n   c o n s t r u c t 	 	 	 	               * / 
 
 m a c r o _ d o : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   t f 	             b i t   ( 2 ) ; 
 
 / *   & d o   E X P A N D   & w h i l e   L O G I C A L   & ;   E X P A N D   & o d   * / 
 / *   L O G I C A L   : : =   a r i t h m e t i c   |   c o m p a r e   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   3 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " d o . . " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i f   ( T F   =   " 0 0 " b ) 
             t h e n   g o t o   s k i p ; 
             i i   =   i f i ; 
             j j   =   0 ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
             c a l l   e x p a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   ( T F ) ) ; 
             i f   ( c 3 2   =   " & w h i l e " ) 
             t h e n 
                   d o ; 
 	     i f i   =   i f i   +   l e n g t h   ( c 3 2 ) ; 
 	     j j   =   1 ; 
 	     t f   =   T F ; 
 	     c a l l   l o g i c a l   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   t f ) ; 
 	     c a l l   g e t _ t o k e n   ( i f p ,   i f i ,   i f e ) ; 
 	     i f   ( c 3 2   ^ =   " & ; " ) 
 	     t h e n 
 	           d o ; 
 	                 m s g   =   " & ; " ; 
 	                 c a l l   e r r o r _ m i s s i n g   ( " w h i l e " ,   b e g l ,   i f i ) ; 
 	           e n d ; 
 	     i f i   =   i f i   +   l e n g t h   ( c 3 2 ) ; 
 	     c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
 	     i f   ( t f   =   " 0 1 " b ) 
 	     t h e n 
 	           d o ; 
 s k i p : 
 	                 i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
 	                 i f   ( i   =   0 ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " & o d " ; 
 	 	         c a l l   e r r o r _ m i s s i n g   ( " d o " ,   b e g l ,   i f e ) ; 
 	 	   e n d ; 
 	                 i f i   =   i f i   +   i   -   1 ; 
 	                 c a l l   g e t _ t o k e n   ( i f p ,   i f i ,   i f e ) ; 
 	                 i f   ( c 3 2   =   " & d o " ) 
 	                 t h e n   c a l l   m a c r o _ d o   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   " 0 0 " b ) ; 
 	                 e l s e   i f   ( c 3 2   =   " & " " " ) 
 	                 t h e n   c a l l   p r o t e c t e d   ( i f p ,   i f i ,   i f e ,   o f p ,   ( o f e ) ) ; 
 	                 e l s e   i f   ( c 3 2   =   " & o d " ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         j j   =   0 ; 
 	 	         g o t o   o d ; 
 	 	   e n d ; 
 	                 e l s e   i f i   =   i f i   +   1 ; 
 	                 g o t o   s k i p ; 
 	           e n d ; 
 	     g o t o   l o o p ; 
                   e n d ; 
             i f   ( c 3 2   =   " & o d " ) 
             t h e n 
                   d o ; 
 o d : 
 	     i f i   =   i f i   +   l e n g t h   ( c 3 2 ) ; 
 	     c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
 	     i f   ( j j   =   0 ) 
 	     t h e n 
 	           d o ; 
 	                 c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
 	                 r e t u r n ; 
 	           e n d ; 
 	     i f i   =   i i ; 
 	     g o t o   l o o p ; 
                   e n d ; 
             m s g   =   c 3 2 ; 
             c a l l   e r r o r _ m i s p l a c e d   ( " d o " ,   b e g l ,   i f i ) ; 
       e n d   m a c r o _ d o ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   m a k e   a   l i s t   o r   a r r a y   v a r   b e   e m p t y   a g a i n 	 	 	               * / 
 
 m a c r o _ e m p t y : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             d c l   i f p 	             p t r , 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 o f p 	             p t r , 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   t f 	             b i t   ( 2 ) ; 
             d c l   v n a m e 	             c h a r   ( 3 2 )   v a r ; 
 
 / *   & e m p t y   n a m e   & ;   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   6 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " e m p t " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i   =   v e r i f y   ( s u b s t r   ( i n p u t ,   i f i ) , 
 	   " a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ 0 1 2 3 4 5 6 7 8 9 " ) ; 
             i f   ( i   =   0 ) 
             t h e n   i   =   i f e   -   i f i   +   1 ; 
             i f   ( i   =   1 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " a r r a y   n a m e " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " e m p t y " ,   b e g l ,   i f i ) ; 
                   e n d ; 
             v n a m e   =   s u b s t r   ( i n p u t ,   i f i ,   i   -   1 ) ; 
             i f   ( l e n g t h   ( v n a m e )   >   1 6 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " " " " ; 
 	     m s g   =   m s g   | |   v n a m e ; 
 	     m s g   =   m s g   | |   " " "   >   1 6   c h a r a c t e r s . " ; 
 	     c a l l   e r r o r _ g e n   ( " e m p t y " ,   b e g l ,   i f i ) ; 
                   e n d ; 
             i f i   =   i f i   +   l e n g t h   ( v n a m e ) ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   ^ =   " & ; " ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & ; " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " e m p t y " ,   b e g l ,   i f i ) ; 
                   e n d ; 
             c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
             i   =   l o o k u p   ( v n a m e ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " " " " ; 
 	     m s g   =   m s g   | |   v n a m e ; 
 	     m s g   =   m s g   | |   " " "   u n d e f i n e d . " ; 
 	     c a l l   e r r o r _ g e n   ( " e m p t y " ,   b e g l ,   i f i ) ; 
                   e n d ; 
             i f   ( v a r . t y p e   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " " " " ; 
 	     m s g   =   m s g   | |   v n a m e ; 
 	     m s g   =   m s g   | |   " " "   i s   a   s c a l a r . " ; 
 	     c a l l   e r r o r _ g e n   ( " e m p t y " ,   b e g l ,   i f i ) ; 
                   e n d ; 
             a r r _ p t r   =   v a r . r e f ; 	 	 / *   f r e e   a n y   a l l o c a t e d   s t r i n g s   * / 
             i f   ( v a r . t y p e   =   2 ) 
             t h e n 
                   d o ; 
 	     a r r a y . h _ b o u n d   =   a r r a y . l o w e r   -   1 ; 
 	     a r r a y . l _ b o u n d   =   a r r a y . l o w e r   +   v a r . l e n ; 
                   e n d ; 
             i f   ( v a r . t y p e   =   3 ) 
             t h e n 
                   d o ; 
 	     a r r a y . l _ b o u n d   =   1 ; 
 	     a r r a y . h _ b o u n d   =   0 ; 
                   e n d ; 
       e n d   m a c r o _ e m p t y ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   p r i n t   a   u s e r   s p e c i f i e d   e r r o r   m e s s a g e 	 	 	 	               * / 
 
 m a c r o _ e r r o r : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c 	             ( 2 4 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e p _ c t 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g s t r l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   c h 8 	             p i c   " - - - - - - - 9 " ; 
 
 / *   & e r r o r   A R I T H   ,   . . .   & ;   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   6 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " e r r . " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i i   =   o f e ; 
             m s g   =   " " ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
             i f i   =   i f i   -   2 ; 
             c a l l   a r i t h m e t i c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             i f   ( o f e   ^ =   i i   +   1 )   |   ( s u b s t r   ( o u t p u t ,   o f e ,   1 )   <   " 0 " ) 
 	   |   ( s u b s t r   ( o u t p u t ,   o f e ,   1 )   >   " 4 " ) 
             t h e n 
                   d o ; 
 	     s u b s t r   ( o u t p u t ,   i i   +   1 ,   3 8 )   = 
 	               " 4 ( I n v a l i d   & e r r o r   s e v e r i t y ,   4   a s s u m e d . )   " ; 
 	     o f e   =   i i   +   3 8 ; 
                   e n d ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   ( i n p u t a   ( i f i )   ^ =   " , " ) 
             t h e n 
                   d o ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   3 9 )   = 
 	               " ( M i s s i n g   c o m m a   a f t e r   & e r r o r   s e v e r i t y . )   " ; 
 	     o f e   =   o f e   +   3 9 ; 
                   e n d ; 
             e l s e   i f i   =   i f i   +   1 ; 
 l o o p : 
             i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & ; " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " e r r o r " ,   b e g l ,   i f e ) ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     i f i   =   i f i   +   i ; 
                   e n d ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   =   " & ; " ) 
             t h e n 
                   d o ; 
 	     c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
 	     i   =   i n d e x   ( " 0 1 2 3 4 " ,   s u b s t r   ( o u t p u t ,   i i   +   1 ,   1 ) )   -   1 ; 
 	     e r r _ c t   ( i )   =   e r r _ c t   ( i )   +   1 ; 
 	     m s g   =   N L ; 
 	     i f   ( i   =   0 ) 
 	     t h e n   m s g   =   m s g   | |   " N O T E :   " ; 
 	     e l s e   i f   ( i   =   1 ) 
 	     t h e n   m s g   =   m s g   | |   " W A R N I N G .   " ; 
 	     e l s e 
 	           d o ; 
 	                 m s g   =   m s g   | |   " E R R O R   S E V E R I T Y   " ; 
 	                 m s g   =   m s g   | |   s u b s t r   ( o u t p u t ,   i i   +   1 ,   1 ) ; 
 	                 m s g   =   m s g   | |   " .   " ; 
 	           e n d ; 
 	     m s g   =   m s g   | |   w h o _ a m _ i ; 
 	     m s g   =   m s g   | |   "   " " " ; 
 	     m s g   =   m s g   | |   m a c n a m e ; 
 	     m s g   =   m s g   | |   " " " ,   l i n e   " ; 
 	     m s g   =   m s g   | |   l i n e n o   ( i f i ) ; 
 	     m s g   =   m s g   | |   N L ; 
 	     c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ e r r o r _ o u t p u t ,   a d d r e l   ( a d d r   ( m s g ) ,   1 ) , 
 	               l e n g t h   ( m s g ) ,   0 ) ; 
 	     m s g   =   " " ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   N L ; 
 	     c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ e r r o r _ o u t p u t , 
 	               a d d r   ( s u b s t r   ( o u t p u t ,   i i   +   2 ,   1 ) ) ,   o f e   -   i i ,   0 ) ; 
 	     i f   ( i   =   4 ) 
 	     t h e n 
 	           d o ; 
 	                 m s g   =   " E r r o r   d e t e c t e d   b y   " ; 
 	                 m s g   =   m s g   | |   w h o _ a m _ i ; 
 	                 m s g   =   m s g   | |   "   " " " ; 
 	                 m s g   =   m s g   | |   m a c n a m e ; 
 	                 m s g   =   m s g   | |   " " " . " ; 
 	                 e c o d e   =   e r r o r _ t a b l e _ $ t r a n s l a t i o n _ a b o r t e d ; 
 	                 g o t o   e x i t ; 
 	           e n d ; 
 	     o f e   =   i i ; 
 	     c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
 	     r e t u r n ; 
                   e n d ; 
             c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
             g o t o   l o o p ; 
 
             d c l   i o x _ $ e r r o r _ o u t p u t 
 	 	             p t r   e x t   s t a t i c ; 
             d c l   i o x _ $ p u t _ c h a r s     e n t r y   ( p t r ,   p t r ,   f i x e d   b i n   ( 2 1 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
       e n d   m a c r o _ e r r o r ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   h a n d l e   t h e   " i f   t h e n   [ e l s e i f ]   . . .   [ e l s e ]   f i "   c o n s t r u c t 	 	               * / 
 
 m a c r o _ i f : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   t f ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 t f 	             b i t   ( 2 ) ; 	 / *   1 x -   p r o c e s s   t r u e 	 	               * / 
 	 	 	 	 / *   x 1 -   p r o c e s s   f a l s e 	               * / 
 	 	 	 	 / *   v a l u e   n o t   r e t u r n e d   ( m o d i f i e d )           * / 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   b e g l t 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   s k i p _ s w 	             b i t   ( 1 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   T F 	             b i t   ( 2 ) ; 
             d c l   i f _ l i n e n o 	             c h a r   ( 6 )   v a r ; 
             d c l   e l s e i f 	             b i t   ( 1 ) ; 
 
 
 / *   & i f   L O G I C A L   & t h e n   E X P A N D   { & e l s e i f   E X P A N D }   . . .   { & e l s e   E X P A N D }   & f i   * / 
 
             b e g l ,   b e g l t   =   i f i ; 
             i f i   =   i f i   +   3 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             T F   =   t f ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " i f . . " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             e l s e i f   =   " 0 " b ; 
             i f _ l i n e n o   =   l i n e n o   ( b e g l ) ; 
 
 n o t h e r _ l o g i c a l : 
             c a l l   l o g i c a l   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i f   ( t f   =   " 0 0 " b ) 
             t h e n   T F   =   " 0 0 " b ; 
             i f   d b _ s w   |   t r _ s w 
             t h e n   c a l l   i o a _   ( " # ^ a : ^ a ^ - & ^ [ e l s e ^ ] i f   ( ^ a )   ^ [ s k i p ^ ; F ^ ; T ^ ; T F ^ ] " , 
 	             l i n e n o   ( b e g l t ) ,   l i n e n o   ( i f i   -   1 ) ,   e l s e i f ,   i f _ l i n e n o , 
 	             f i x e d   ( T F )   +   1 ) ; 
             c a l l   g e t _ t o k e n   ( i f p ,   i f i ,   i f e ) ; 
             i f   ( c 3 2   ^ =   " & t h e n " ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & t h e n " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " i f " ,   b e g l ,   i f i ) ; 
                   e n d ; 
             b e g l t   =   i f i ; 
             i f i   =   i f i   +   l e n g t h   ( c 3 2 ) ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
             i f   ( T F   &   " 1 0 " b ) 
             t h e n   c a l l   e x p a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   ( T F ) ) ; 
             e l s e   c a l l   s k i p p e r ; 
             i f   d b _ s w   |   t r _ s w 
             t h e n   c a l l   i o a _   ( " # ^ a : ^ a ^ - & t h e n   ( ^ a )   ^ [ d o n e ^ ; s k i p ^ ] " ,   l i n e n o   ( b e g l t ) , 
 	             l i n e n o   ( i f i   -   1 ) ,   i f _ l i n e n o ,   ( T F   &   " 1 0 " b ) ) ; 
 s k i p _ a g a i n : 
             b e g l t   =   i f i ; 
             i f   ( c 3 2   =   " & e l s e i f " ) 
             t h e n 
                   d o ; 
 	     i f i   =   i f i   +   l e n g t h   ( c 3 2 ) ; 
 	     c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
 	     i f   ( T F   &   " 0 1 " b ) 
 	     t h e n 
 	           d o ; 
 	                 c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
 	                 e l s e i f   =   " 1 " b ; 
 	                 g o t o   n o t h e r _ l o g i c a l ; 
 	           e n d ; 
 	     c a l l   s k i p p e r ; 
 	     i f   d b _ s w   |   t r _ s w 
 	     t h e n   c a l l   i o a _   ( " # ^ a : ^ a ^ - & e l s e i f   ( ^ a )   s k i p " ,   l i n e n o   ( b e g l t ) , 
 	 	     l i n e n o   ( i f i   -   1 ) ,   i f _ l i n e n o ) ; 
 	     g o t o   s k i p _ a g a i n ; 
                   e n d ; 
             i f   ( c 3 2   =   " & e l s e " ) 
             t h e n 
                   d o ; 
 	     i f i   =   i f i   +   l e n g t h   ( c 3 2 ) ; 
 	     c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
 	     i f   ( T F   &   " 0 1 " b ) 
 	     t h e n   c a l l   e x p a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   ( T F ) ) ; 
 	     e l s e   c a l l   s k i p p e r ; 
 	     i f   d b _ s w   |   t r _ s w 
 	     t h e n   c a l l   i o a _   ( " # ^ a : ^ a ^ - & e l s e   ( ^ a )   ^ [ d o n e ^ ; s k i p ^ ] " ,   l i n e n o   ( b e g l t ) , 
 	 	     l i n e n o   ( i f i   -   1 ) ,   i f _ l i n e n o ,   T F   &   " 0 1 " b ) ; 
 	     b e g l t   =   i f i ; 
                   e n d ; 
             i f   ( c 3 2   ^ =   " & f i " ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & f i " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " i f " ,   b e g l ,   i f i ) ; 
                   e n d ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
             i f i   =   i f i   +   l e n g t h   ( c 3 2 ) ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w   |   t r _ s w 
             t h e n   c a l l   i o a _   ( " # ^ a : ^ a ^ - & f i   ( ^ a ) " ,   l i n e n o   ( b e g l t ) ,   l i n e n o   ( i f i   -   1 ) , 
 	             i f _ l i n e n o ) ; 
             r e t u r n ; 
 
 s k i p p e r : 
       p r o c ; 
 
             d o   w h i l e   ( " 1 " b ) ; 
                   i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
                   i f   ( i   =   0 ) 
                   t h e n 
 	     d o ; 
 	           c 3 2   =   " " ; 
 	           r e t u r n ; 
 	     e n d ; 
                   i f i   =   i f i   +   i   -   1 ; 
                   c a l l   g e t _ t o k e n   ( i f p ,   i f i ,   i f e ) ; 
                   i f   ( c 3 2   =   " & i f " ) 
                   t h e n   c a l l   m a c r o _ i f   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   " 0 0 " b ) ; 
                   e l s e   i f   ( c 3 2   =   " & f i " ) 
                   t h e n   r e t u r n ; 
                   e l s e   i f   ( c 3 2   =   " & e l s e " ) 
                   t h e n   r e t u r n ; 
                   e l s e   i f   ( c 3 2   =   " & e l s e i f " ) 
                   t h e n   r e t u r n ; 
                   e l s e   i f   ( c 3 2   =   " & " " " ) 
                   t h e n   c a l l   p r o t e c t e d   ( i f p ,   i f i ,   i f e ,   o f p ,   ( o f e ) ) ; 
                   e l s e   i f i   =   i f i   +   1 ; 
             e n d ; 
 
       e n d ; 
 
       e n d   m a c r o _ i f ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   r e t u r n   t h e   l e n g t h   o f   a   s t r i n g 	 	 	 	               * / 
 
 m a c r o _ l e n g t h : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c 	             ( 2 4 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e p _ c t 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g s t r l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   c h 8 	             p i c   " - - - - - - - 9 " ; 
 
 / *   & l e n g t h   . . .   & ;   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   7 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " l e n g " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i i   =   o f e ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
             i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & ; " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " l e n g t h " ,   b e g l ,   i f e ) ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     i f i   =   i f i   +   i ; 
                   e n d ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   =   " & ; " ) 
             t h e n 
                   d o ; 
 	     c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
 	     c h 8   =   o f e   -   i i ; 
 	     o f e   =   i i ; 
 	     i   =   i n d e x   ( r e v e r s e   ( c h 8 ) ,   "   " )   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( c h 8 ,   9   -   i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
 	     r e t u r n ; 
                   e n d ; 
             c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
             g o t o   l o o p ; 
       e n d   m a c r o _ l e n g t h ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   p r o c e s s   l o c / i n t / e x t / l e t   s t a t e m e n t s   ( t h e y   l o o k   v e r y   m u c h   a l i k e 	               * / 
 
 m a c r o _ l e t : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   w h i c h )   r e c u r s i v e ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) , 
 	 w h i c h 	             f i x e d   b i n   ( 2 4 ) ; 
 	 	 	 	 / *   0 - l e t ,   1 - e x t ,   2 - i n t ,   3 - l o c   * / 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   v n a m e 	             c h a r   ( 3 2 )   v a r ; 
             d c l   v p t r 	             p t r ; 
             d c l   f o u n d 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   ( l o w e r ,   h i g h e r )   f i x e d   b i n   ( 2 4 ) ; 
 
 / *   & l e t   v a r   =   E X P R   & ; 
       & e x t   v a r   =   E X P R   & ; 
       & e x t   v a r   & ; 
       & i n t   v a r   =   E X P R   & ; 
       & i n t   v a r   & ; 
       & l o c   v a r   =   E X P R   & ; 
       & l o c   v a r   & ;   * / 
 / *   E X P R   : : =   a r i t h m e t i c   |   s t r i n g   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   4 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( c m d   ( w h i c h ) ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i   =   v e r i f y   ( s u b s t r   ( i n p u t ,   i f i ,   1 ) , 
 	   " a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z " ) ; 
             i f   ( i   ^ =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " V a r i a b l e   n a m e   m u s t   b e g i n   w i t h   a l p h a b e t i c   c h a r .   " ; 
 	     c a l l   e r r o r _ g e n   ( c m d   ( w h i c h ) ,   b e g l ,   i f i ) ; 
                   e n d ; 
             i   =   v e r i f y   ( s u b s t r   ( i n p u t ,   i f i ) , 
 	   " a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ 0 1 2 3 4 5 6 7 8 9 " ) ; 
             i f   ( i   =   0 ) 
             t h e n   i   =   i f e   -   i f i   +   1 ; 
             e l s e   i   =   i   -   1 ; 
             v n a m e   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
             i f   ( i   >   1 6 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " D a t a   n a m e   >   1 6   c h a r a c t e r s .   " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             i f i   =   i f i   +   i ; 
             d c l   r e s e r v e d 	             ( 2 9 )   c h a r   ( 8 )   i n t   s t a t i c 
 	 	             i n i t   ( " a r g " ,   " c o m m e n t " ,   " d e f i n e " ,   " d e n d " ,   " d o " , 
 	 	             " e l s e " ,   " e l s e i f " ,   " e m p t y " ,   " e r r o r " ,   " e x p a n d " , 
 	 	             " e x p e n d " ,   " e x t " ,   " f i " ,   " h b o u n d " ,   " i f " ,   " i n t " ,   " l e t " , 
 	 	             " l b o u n d " ,   " l e n g t h " ,   " l o c " ,   " m a c r o " ,   " m e n d " ,   " q u o t e " , 
 	 	             " r e t u r n " ,   " s c a n " ,   " s u b s t r " ,   " u n q u o t e " ,   " u s a g e " , 
 	 	             " w h i l e " ) ; 
             d o   i   =   1   t o   h b o u n d   ( r e s e r v e d ,   1 ) ; 
                   i f   ( v n a m e   =   r e s e r v e d   ( i ) ) 
                   t h e n 
 	     d o ; 
 	           m s g   =   " A t t e m p t   t o   u s e   r e s e r v e d   w o r d   " " " ; 
 	           m s g   =   m s g   | |   v n a m e ; 
 	           m s g   =   m s g   | |   " " "   a s   v a r i a b l e .   " ; 
 	           g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	     e n d ; 
             e n d ; 
             f o u n d   =   l o o k u p   ( v n a m e ) ; 
             i f   ( f o u n d   <   w h i c h ) 
             t h e n 
                   d o ; 
 	     a l l o c a t e   v a r   i n   ( f r e e _ a r e a )   s e t   ( v a r _ p t r ) ; 
 	     i f   a l _ s w 
 	     t h e n   c a l l   i o a _   ( " A   v a r - ^ a   ^ i   ^ p " ,   v n a m e ,   s i z e   ( v a r ) ,   v a r _ p t r ) ; 
 	     v a r . n a m e   =   v n a m e ; 
 	     v a r . r e f   =   n u l l   ( ) ; 
 	     v a r . t y p e   =   0 ; 
 	     v a r . l e n   =   0 ; 
 	     i f   ( w h i c h   =   1 ) 
 	     t h e n 
 	           d o ; 
 	                 v a r . n e x t   =   e x t _ v a r _ p t r ; 
 	                 e x t _ v a r _ p t r   =   v a r _ p t r ; 
 	                 i f   d b _ s w 
 	                 t h e n   c a l l   i o a _   ( " ^ p 	 e x t   " " ^ a " " " ,   v a r _ p t r ,   v a r . n a m e ) ; 
 	           e n d ; 
 	     e l s e   i f   ( w h i c h   =   2 ) 
 	     t h e n 
 	           d o ; 
 	                 v a r . n e x t   =   i n t _ v a r s . r e f ; 
 	                 i n t _ v a r s . r e f   =   v a r _ p t r ; 
 	                 i f   d b _ s w 
 	                 t h e n   c a l l   i o a _   ( " ^ p 	 i n t . ^ a   " " ^ a " " " ,   v a r _ p t r ,   m a c n a m e , 
 	 	                 v a r . n a m e ) ; 
 	           e n d ; 
 	     e l s e 
 	           d o ; 
 	                 v a r . n e x t   =   l o c a l _ v a r _ p t r ; 
 	                 l o c a l _ v a r _ p t r   =   v a r _ p t r ; 
 	                 i f   d b _ s w 
 	                 t h e n   c a l l   i o a _   ( " ^ p 	 l o c   " " ^ a " " " ,   v a r _ p t r ,   v a r . n a m e ) ; 
 	           e n d ; 
                   e n d ; 
             e l s e   i f   ( f o u n d   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " A t t e m p t   t o   s e t   u n d e c l a r e d   v a r i a b l e   " " " ; 
 	     m s g   =   m s g   | |   v n a m e ; 
 	     m s g   =   m s g   | |   " " " .   " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             v p t r   =   v a r _ p t r ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   ( w h i c h   >   0 ) 
             t h e n   i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   =   " & ; " ) 
 	   t h e n 
 	         d o ; 
 	               c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
 	               r e t u r n ; 
 	         e n d ; 
             i f   ( i n p u t a   ( i f i )   =   " { " ) 
             t h e n 
                   d o ; 
 	     i f i   =   i f i   -   1 ; 
 	     i f   ( v a r . t y p e   =   0 ) 
 	     t h e n 
 	           d o ; 
 	                 l o w e r ,   h i g h e r   =   - 9 9 9 9 ; 
 	           e n d ; 
 	     e l s e 
 	           d o ; 
 	                 a r r _ p t r   =   v a r . r e f ; 
 	                 l o w e r   =   a r r a y . l _ b o u n d ; 
 	                 h i g h e r   =   a r r a y . h _ b o u n d ; 
 	           e n d ; 
 	     c a l l   g e t _ r a n g e   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   l o w e r ,   h i g h e r ) ; 
 	     i f   ( i n p u t a   ( i f i )   ^ =   " } " ) 
 	     t h e n 
 	           d o ; 
 	                 m s g   =   " } " ; 
 	                 c a l l   e r r o r _ m i s s i n g   ( c m d   ( w h i c h ) ,   b e g l ,   i f i ) ; 
 	           e n d ; 
 	     i f i   =   i f i   +   1 ; 
 	     c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
 	     v a r _ p t r   =   v p t r ; 
 	     i f   ( w h i c h   >   0 ) 	 	 / *     n o t   l e t   * / 
 	     t h e n 
 	           d o ; 
 	                 i f   ( l o w e r   =   h i g h e r ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         i f   ( l o w e r   <   1 ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 m s g   =   " I m p r o p e r   d i m e n s i o n .   " ; 
 	 	 	 g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	               e n d ; 
 	 	         l o w e r   =   1 ; 
 	 	   e n d ; 
 	                 i f   ( f o u n d   ^ =   w h i c h ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         v a r . t y p e   =   1 ; 
 	 	         v a r . l e n   =   h i g h e r   -   l o w e r   +   1 ; 
 	 	         a l l o c a t e   a r r a y   i n   ( f r e e _ a r e a )   s e t   ( a r r _ p t r ) ; 
 	 	         v a r . r e f   =   a r r _ p t r ; 
 	 	         i f   a l _ s w 
 	 	         t h e n   c a l l   i o a _   ( " A ^ a { ^ i : ^ i }   ^ i   ^ p " ,   v n a m e ,   l o w e r , 
 	 	 	         h i g h e r ,   s i z e   ( a r r a y ) ,   v a r . r e f ) ; 
 	 	         d o   a r r _ e l e m   =   1   t o   v a r . l e n ; 
 	 	               a r r a y . r e f   ( a r r _ e l e m )   =   n u l l   ( ) ; 
 	 	               a r r a y . l e n   ( a r r _ e l e m )   =   0 ; 
 	 	         e n d ; 
 	 	         a r r a y . l o w e r   =   l o w e r ; 
 	 	   e n d ; 
 	                 i f   ( s u b s t r   ( i n p u t ,   i f i ,   3 )   =   " v a r " ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         i f i   =   i f i   +   3 ; 
 	 	         i f   ( f o u n d   =   w h i c h ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 i f   ( v a r . t y p e   ^ =   2 )   |   ( a r r a y . l o w e r   ^ =   l o w e r ) 
 	 	 	           |   ( v a r . l e n   ^ =   h i g h e r   -   l o w e r   +   1 ) 
 	 	 	 t h e n 
 	 	 	       d o ; 
 d c l _ e r r : 
 	 	 	             m s g   =   " D a t a   d e c l a r a t i o n   d o e s   n o t   m a t c h   p r i o r   d e c l a r a t i o n   f o r   " " " 
 	 	 	 	   ; 
 	 	 	             m s g   =   m s g   | |   v n a m e ; 
 	 	 	             m s g   =   m s g   | |   " " " .   " ; 
 	 	 	             g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	 	       e n d ; 
 	 	               e n d ; 
 	 	         e l s e 
 	 	               d o ; 
 	 	 	 v a r . t y p e   =   2 ; 
 	 	 	 a r r a y . l _ b o u n d   =   h i g h e r   +   1 ; 
 	 	 	 a r r a y . h _ b o u n d   =   l o w e r   -   1 ; 
 	 	               e n d ; 
 	 	   e n d ; 
 	                 e l s e   i f   ( s u b s t r   ( i n p u t ,   i f i ,   4 )   =   " l i s t " ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         i f i   =   i f i   +   4 ; 
 	 	         i f   ( f o u n d   =   w h i c h ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 i f   ( v a r . t y p e   ^ =   3 )   |   ( v a r . l e n   ^ =   h i g h e r ) 
 	 	 	 t h e n   g o t o   d c l _ e r r ; 
 	 	               e n d ; 
 	 	         e l s e 
 	 	               d o ; 
 	 	 	 v a r . t y p e   =   3 ; 
 	 	 	 a r r a y . l _ b o u n d   =   1 ; 
 	 	 	 a r r a y . h _ b o u n d   =   0 ; 
 	 	               e n d ; 
 	 	   e n d ; 
 	                 e l s e   i f   ( s u b s t r   ( i n p u t ,   i f i ,   4 )   =   " f i f o " ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         i f i   =   i f i   +   4 ; 
 	 	         i f   ( f o u n d   =   w h i c h ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 i f   ( v a r . t y p e   ^ =   4 )   |   ( a r r a y . l _ b o u n d   ^ =   l o w e r ) 
 	 	 	           |   ( a r r a y . h _ b o u n d   ^ =   h i g h e r ) 
 	 	 	 t h e n   g o t o   d c l _ e r r ; 
 	 	               e n d ; 
 	 	         e l s e 
 	 	               d o ; 
 	 	 	 v a r . t y p e   =   4 ; 
 	 	 	 a r r a y . l _ b o u n d   =   1 ; 
 	 	 	 a r r a y . h _ b o u n d   =   0 ; 
 	 	               e n d ; 
 	 	   e n d ; 
 	                 e l s e   i f   ( s u b s t r   ( i n p u t ,   i f i ,   4 )   =   " l i f o " ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         i f i   =   i f i   +   4 ; 
 	 	         i f   ( f o u n d   =   w h i c h ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 i f   ( v a r . t y p e   ^ =   5 )   |   ( a r r a y . l _ b o u n d   ^ =   l o w e r ) 
 	 	 	           |   ( a r r a y . h _ b o u n d   ^ =   h i g h e r ) 
 	 	 	 t h e n   g o t o   d c l _ e r r ; 
 	 	               e n d ; 
 	 	         e l s e 
 	 	               d o ; 
 	 	 	 v a r . t y p e   =   5 ; 
 	 	 	 a r r a y . l _ b o u n d   =   1 ; 
 	 	 	 a r r a y . h _ b o u n d   =   0 ; 
 	 	               e n d ; 
 	 	   e n d ; 
 	                 e l s e 
 	 	   d o ; 
 	 	         i f   ( f o u n d   =   w h i c h ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 i f   ( v a r . t y p e   ^ =   1 )   |   ( a r r a y . l _ b o u n d   ^ =   l o w e r ) 
 	 	 	           |   ( a r r a y . h _ b o u n d   ^ =   h i g h e r ) 
 	 	 	 t h e n   g o t o   d c l _ e r r ; 
 	 	               e n d ; 
 	 	         e l s e 
 	 	               d o ; 
 	 	 	 a r r a y . l _ b o u n d   =   l o w e r ; 
 	 	 	 a r r a y . h _ b o u n d   =   h i g h e r ; 
 	 	               e n d ; 
 	 	   e n d ; 
 	                 c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
 	           e n d ; 
 	     e l s e 
 	           d o ; 
 	                 i f   ( v a r . t y p e   ^ =   1 )   &   ( v a r . t y p e   ^ =   2 ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " A t t e m p t   t o   d o   a r r a y   a s s i g n m e n t   t o   n o n - a r r a y   v a r i a b l e .   " 
 	 	                   ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	                 a r r _ p t r   =   v a r . r e f ; 
 	                 i f   ( l o w e r   <   a r r a y . l o w e r ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " A t t e m p t   t o   s e t   b e l o w   l o w e r   b o u n d .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	                 i f   ( h i g h e r   >   a r r a y . l o w e r   +   v a r . l e n   -   1 ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " A t t e m p t   t o   s e t   a b o v e   u p p e r   b o u n d .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	           e n d ; 
 	     c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
 	     i f   ( w h i c h   >   0 ) 
 	     t h e n   i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   =   " & ; " ) 
 	               t h e n 
 	 	 d o ; 
 	 	       c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
 	 	       r e t u r n ; 
 	 	 e n d ; 
                   e n d ; 
             e l s e 
                   d o ; 
 	     i f   ( v a r . t y p e   =   1 )   |   ( v a r . t y p e   =   2 ) 
 	     t h e n 
 	           d o ; 
 	                 m s g   =   " A t t e m p t   t o   d o   s c a l a r   a s s i g n m e n t   t o   a r r a y   v a r i a b l e .   " ; 
 	                 g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	           e n d ; 
 	     i f   ( v a r . t y p e   =   4 ) 	 	 / *     f i f o   * / 
 	     t h e n 
 	           d o ; 
 	                 a r r _ p t r   =   v a r . r e f ; 
 	                 i f   ( a r r a y . l _ b o u n d   +   v a r . l e n   -   1   >   a r r a y . h _ b o u n d ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " O u t - o f - b o u n d s   o n   f i f o   " " " ; 
 	 	         m s g   =   m s g   | |   v n a m e ; 
 	 	         m s g   =   m s g   | |   " " " .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	                 i f   ( a r r a y . l _ b o u n d   +   v a r . l e n   -   1   =   a r r a y . h _ b o u n d ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " A t t e m p t   t o   s t a c k   t o o   m a n y   e l e m e n t s .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	                 a r r a y . h _ b o u n d   =   a r r a y . h _ b o u n d   +   1 ; 
 	                 l o w e r ,   h i g h e r   =   m o d   ( a r r a y . h _ b o u n d ,   v a r . l e n )   +   1 ; 
 	           e n d ; 
 	     i f   ( v a r . t y p e   =   5 ) 
 	     t h e n 
 	           d o ; 
 	                 a r r _ p t r   =   v a r . r e f ; 
 	                 i f   ( v a r . l e n   <   a r r a y . h _ b o u n d ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " O u t - o f - b o u n d s   o n   l i f o   " " " ; 
 	 	         m s g   =   m s g   | |   v n a m e ; 
 	 	         m s g   =   m s g   | |   " " " .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	                 i f   ( v a r . l e n   =   a r r a y . h _ b o u n d ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " A t t e m p t   t o   s t a c k   t o o   m a n y   e l e m e n t s .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	                 a r r a y . h _ b o u n d ,   l o w e r ,   h i g h e r   =   a r r a y . h _ b o u n d   +   1 ; 
 	           e n d ; 
                   e n d ; 
             i f   ( i n p u t a   ( i f i )   ^ =   " = " ) 
             t h e n 
                   d o ; 
 	     m s g   =   " = " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( c m d   ( w h i c h ) ,   b e g l ,   i f i ) ; 
 	     d c l   c m d 	 	     ( 0 : 3 )   c h a r   ( 4 )   i n t   s t a t i c 
 	 	 	     i n i t   ( " l e t   " ,   " e x t   " ,   " i n t   " ,   " l o c   " ) ; 
                   e n d ; 
             i f i   =   i f i   +   1 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             j j   =   o f e ; 
             i f   ( i n p u t a   ( i f i )   =   " ( " ) 
             t h e n 
                   d o ; 
 	     m s g   =   " V e c t o r   a s s i g n m e n t   n o t   a v a i l a b l e   y e t . " ; 
 	     c a l l   e r r o r _ g e n   ( c m d   ( w h i c h ) ,   b e g l ,   i f i ) ; 
                   e n d ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   =   " & ( " ) 
             t h e n 
                   d o ; 
 	     c a l l   a r i t h m e t i c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 	     c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
                   e n d ; 
             e l s e 
                   d o ; 
 	     c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
 	     i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
 	     i f   ( i   =   0 ) 
 	     t h e n 
 	           d o ; 
 	                 m s g   =   " & ; " ; 
 	                 c a l l   e r r o r _ m i s s i n g   ( c m d   ( w h i c h ) ,   b e g l ,   i f e ) ; 
 	           e n d ; 
 	     i f   ( i   >   1 ) 
 	     t h e n 
 	           d o ; 
 	                 i   =   i   -   1 ; 
 	                 s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	                 o f e   =   o f e   +   i ; 
 	                 i f i   =   i f i   +   i ; 
 	           e n d ; 
 	     i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   ^ =   " & ; " ) 
 	     t h e n 
 	           d o ; 
 	                 c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
 	                 g o t o   l o o p ; 
 	           e n d ; 
 	     c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
                   e n d ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   ^ =   " & ; " ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & ; " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( c m d   ( w h i c h ) ,   b e g l ,   i f e ) ; 
                   e n d ; 
             c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
             i f   ( f o u n d   =   0 )   |   ( w h i c h   =   0 ) 
             t h e n 
                   d o ; 
 	     j   =   o f e   -   j j ; 
 	     v a r _ p t r   =   v p t r ; 
 	     i f   ( v a r . t y p e   =   0 ) 
 	     t h e n 
 	           d o ; 
 	                 i f   ( v a r . l e n   ^ =   j ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         i f   ( v a r . l e n   >   0 ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 i f   a l _ s w 
 	 	 	 t h e n   c a l l   i o a _   ( " F   ^ a   ^ i   ^ p " ,   v n a m e ,   v a r . l e n , 
 	 	 	 	 v a r . r e f ) ; 
 	 	 	 f r e e   v a r t e x t   i n   ( f r e e _ a r e a ) ; 
 	 	               e n d ; 
 	 	         v a r . l e n   =   j ; 
 	 	         a l l o c a t e   v a r t e x t   i n   ( f r e e _ a r e a )   s e t   ( v a r . r e f ) ; 
 	 	         i f   a l _ s w 
 	 	         t h e n   c a l l   i o a _   ( " A   ^ a   ^ i   ^ p " ,   v n a m e ,   s i z e   ( v a r t e x t ) , 
 	 	 	         v a r . r e f ) ; 
 	 	   e n d ; 
 	                 v a r t e x t   =   s u b s t r   ( o u t p u t ,   j j   +   1 ,   j ) ; 
 	                 i f   d b _ s w   |   t r _ s w 
 	                 t h e n 
 	 	   d o ; 
 	 	         c a l l   i o a _ $ n n l   ( " # ^ a : ^ a ^ - & ^ a   ^ a   = " ,   l i n e n o   ( b e g l ) , 
 	 	                   l i n e n o   ( i f i   -   1 ) ,   c m d   ( w h i c h ) ,   v a r . n a m e ) ; 
 	 	         c a l l   s h o w _ s t r i n g   ( v a r t e x t ,   " & ; 
 " ) ; 
 	 	   e n d ; 
 	           e n d ; 
 	     e l s e 
 	           d o ; 
 	                 a r r _ p t r   =   v a r . r e f ; 
 	                 i f   ( v a r . t y p e   =   2 ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         a r r a y . l _ b o u n d   =   m i n   ( a r r a y . l _ b o u n d ,   l o w e r ) ; 
 	 	         a r r a y . h _ b o u n d   =   m a x   ( a r r a y . h _ b o u n d ,   h i g h e r ) ; 
 	 	   e n d ; 
 	                 i f   ( v a r . t y p e   =   3 ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         d o   a r r _ e l e m   =   a r r a y . l _ b o u n d   t o   a r r a y . h _ b o u n d ; 
 	 	               i f   ( a r r t e x t   =   s u b s t r   ( o u t p u t ,   j j   +   1 ,   j ) ) 
 	 	               t h e n 
 	 	 	 d o ; 
 	 	 	       o f e   =   j j ; 
 	 	 	       r e t u r n ; 
 	 	 	 e n d ; 
 	 	         e n d ; 
 	 	         i f   ( a r r a y . h _ b o u n d   =   v a r . l e n ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 m s g   =   " A t t e m p t   t o   a d d   t o o   m a n y   e l e m e n t s   t o   l i s t .   " 
 	 	 	           ; 
 	 	 	 g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	               e n d ; 
 	 	         a r r a y . h _ b o u n d ,   l o w e r ,   h i g h e r   =   a r r a y . h _ b o u n d   +   1 ; 
 	 	   e n d ; 
 	                 d o   a r r _ e l e m   =   l o w e r   -   a r r a y . l o w e r   +   1 
 	 	       t o   h i g h e r   -   a r r a y . l o w e r   +   1 ; 
 	 	   i f   ( a r r a y . l e n   ( a r r _ e l e m )   ^ =   j ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               i f   ( a r r a y . r e f   ( a r r _ e l e m )   ^ =   n u l l   ( ) ) 
 	 	               t h e n 
 	 	 	 d o ; 
 	 	 	       i f   a l _ s w 
 	 	 	       t h e n   c a l l   i o a _   ( " F   ^ a { ^ i }   ^ i   ^ p " ,   v n a m e , 
 	 	 	 	       a r r _ e l e m ,   a r r a y . l e n   ( a r r _ e l e m ) , 
 	 	 	 	       a r r a y . r e f   ( a r r _ e l e m ) ) ; 
 	 	 	       f r e e   a r r t e x t   i n   ( f r e e _ a r e a ) ; 
 	 	 	 e n d ; 
 	 	               a r r a y . l e n   ( a r r _ e l e m )   =   j ; 
 	 	               a l l o c a t e   a r r t e x t   i n   ( f r e e _ a r e a ) 
 	 	 	     s e t   ( a r r a y . r e f   ( a r r _ e l e m ) ) ; 
 	 	               i f   a l _ s w 
 	 	               t h e n   c a l l   i o a _   ( " A   ^ a { ^ i }   ^ i   ^ p " ,   v n a m e ,   a r r _ e l e m , 
 	 	 	               s i z e   ( a r r t e x t ) ,   a r r a y . r e f   ( a r r _ e l e m ) ) ; 
 	 	         e n d ; 
 	 	   a r r t e x t   =   s u b s t r   ( o u t p u t ,   j j   +   1 ,   j ) ; 
 	                 e n d ; 
 	                 i f   d b _ s w   |   t r _ s w 
 	                 t h e n 
 	 	   d o ; 
 	 	         c a l l   i o a _ $ n n l   ( " # ^ a : ^ a ^ - & ^ a   ^ a { ^ i : ^ i }   = " ,   l i n e n o   ( b e g l ) , 
 	 	                   l i n e n o   ( i f i   -   1 ) ,   c m d   ( w h i c h ) ,   v a r . n a m e ,   l o w e r , 
 	 	                   h i g h e r ) ; 
 	 	         c a l l   s h o w _ s t r i n g   ( s u b s t r   ( o u t p u t ,   j j   +   1 ,   j ) ,   " & ; 
 " ) ; 
 	 	   e n d ; 
 	           e n d ; 
                   e n d ; 
             o f e   =   j j ; 
       e n d   m a c r o _ l e t ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   d o u b l e   a n y   q u o t e s   i n   a   s t r i n g 	 	 	 	               * / 
 
 m a c r o _ q u o t e : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   t f ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 t f 	             b i t   ( 2 ) ; 	 / *   1 x -   p r o c e s s   t r u e 	 	               * / 
 	 	 	 	 / *   x 1 -   p r o c e s s   f a l s e 	               * / 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n s i d e 	             b i t   ( 1 ) ; 
             d c l   c h 	             c h a r   ( 1 ) ; 
 
 / *   & q u o t e   . . .   & ;   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   6 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i i   =   o f e ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
             i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & ; " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " q u o t e " ,   b e g l ,   i f e ) ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   1 ; 
 	     i f i   =   i f i   +   1 ; 
                   e n d ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   ^ =   " & ; " ) 
             t h e n 
                   d o ; 
 	     c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   t f ,   " 0 " b ) ; 
 	     g o t o   l o o p ; 
                   e n d ; 
             c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
             i   =   o f e   -   i i ; 
             i f   ( i   >   1 6 3 8 4 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " S o r r y ,   n o t   y e t   h a n d l i n g   & q u o t e   s t r i n g s   >   1 6 3 8 4   c h r s . " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
             i f   ( i n d e x   ( s u b s t r   ( o u t p u t ,   i i   +   1 ,   i ) ,   " " " " )   =   0 ) 
             t h e n 
                   d o ; 
 	     r e t u r n ; 
                   e n d ; 
             b e g i n ; 
                   d c l   a r g s t r 	                   c h a r   ( i ) ; 
                   a r g s t r   =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   i ) ; 
                   o f e   =   i i ; 
                   j   =   1 ; 
 l o o p : 
                   i i   =   i n d e x   ( s u b s t r   ( a r g s t r ,   j ) ,   " " " " ) ; 
                   i f   ( i i   =   0 ) 
                   t h e n   i i   =   i   -   j   +   1 ; 
                   s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i i )   =   s u b s t r   ( a r g s t r ,   j ,   i i ) ; 
                   o f e   =   o f e   +   i i ; 
                   j   =   j   +   i i ; 
                   i f   ( s u b s t r   ( o u t p u t ,   o f e ,   1 )   =   " " " " ) 
                   t h e n 
 	     d o ; 
 	           s u b s t r   ( o u t p u t ,   o f e   +   1 ,   1 )   =   " " " " ; 
 	           o f e   =   o f e   +   1 ; 
 	     e n d ; 
                   i f   ( j   >   i ) 
                   t h e n   r e t u r n ; 
                   g o t o   l o o p ; 
             e n d ; 
       e n d   m a c r o _ q u o t e ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   r e s c a n   a   r e s u l t   o f   m a c r o   e x p a n s i o n 	 	 	 	               * / 
 
 m a c r o _ s c a n : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c 	             ( 2 4 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e p _ c t 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g s t r l 	             f i x e d   b i n   ( 2 4 ) ; 
 
 / *   & s c a n   . . .   & ;   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   5 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " s c a n " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i i   =   o f e ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
             i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & ; " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " s c a n " ,   b e g l ,   i f e ) ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     i f i   =   i f i   +   i ; 
                   e n d ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   =   " & ; " ) 
             t h e n 
                   d o ; 
 	     c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
 	     a r g s t r l   =   o f e   -   i i ; 
 	     i f   ( a r g s t r l   >   1 6 3 8 4 ) 
 	     t h e n 
 	           d o ; 
 	                 m s g   =   " & s c a n   s t r i n g   >   1 6 3 8 4   c h a r s . " ; 
 	                 g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	           e n d ; 
 	     b e g i n ; 
 	           d c l   a r g s t r 	           c h a r   ( a r g s t r l ) ; 
 	           i f   d b _ s w   |   t r _ s w 
 	           t h e n 
 	                 d o ; 
 	 	   c a l l   i o a _ $ n n l   ( " # ^ a : ^ a ^ - & s c a n   " ,   l i n e n o   ( b e g l ) , 
 	 	             l i n e n o   ( i f i   -   1 ) ) ; 
 	 	   c a l l   s h o w _ s t r i n g   ( s u b s t r   ( o u t p u t ,   i i   +   1 ,   a r g s t r l ) ,   " & ; 
 " ) ; 
 	                 e n d ; 
 	           s t r i n g   ( a r g s t r )   =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   a r g s t r l ) ; 
 	           o f e   =   i i ; 
 	           c a l l   e x p a n d   ( a d d r   ( a r g s t r ) ,   1 ,   a r g s t r l ,   o f p ,   o f e ,   ( T F ) ) ; 
 	           c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
 	           r e t u r n ; 
 	     e n d ; 
                   e n d ; 
             c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
             g o t o   l o o p ; 
       e n d   m a c r o _ s c a n ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   r e t u r n   p a r t   o f   a   s t r i n g   w i t h   n e e d e d   p a d d i n g 	 	 	               * / 
 
 m a c r o _ s u b s t r : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c 	             ( 2 4 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e p _ c t 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g s t r l 	             f i x e d   b i n   ( 2 4 ) ; 
 
 / *   & s u b s t r   . . .   ,   A R I T H   ,   A R I T H   & ; 
       & s u b s t r   . . .   ,   A R I T H   & ; 
       & s u b s t r   . . .   ,   A R I T H   :   A R I T H   & ;   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   7 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " s u b s " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i i   =   o f e ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
             i   =   s e a r c h   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & , " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & ; " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " s u b s t r " ,   b e g l ,   i f e ) ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     i f i   =   i f i   +   i ; 
                   e n d ; 
             i f   ( i n p u t a   ( i f i )   =   " & " ) 
             t h e n 
                   d o ; 
 	     c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
 	     g o t o   l o o p ; 
                   e n d ; 
             a r g s t r l   =   o f e   -   i i ; 
             i f   ( a r g s t r l   >   1 6 3 8 4 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & s u b s t r   s t r i n g   >   1 6 3 8 4   c h r s . " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             b e g i n ; 
                   d c l   a r g s t r 	                   c h a r   ( a r g s t r l ) ; 
                   d c l   s e p c h 	                   c h a r   ( 1 ) ; 
                   a r g s t r   =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   a r g s t r l ) ; 
                   o f e   =   i i ; 
                   i f i   =   i f i   -   1 ; 
                   c a l l   a r i t h m e t i c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
                   i   =   f i x e d   ( s u b s t r   ( o u t p u t ,   i i   +   1 ,   o f e   -   i i ) ) ; 
                   s e p c h   =   "   " ; 
                   o f e   =   i i ; 
                   i f   ( i n p u t a   ( i f i )   =   " , " )   |   ( i n p u t a   ( i f i )   =   " : " ) 
                   t h e n 
 	     d o ; 
 	           s e p c h   =   i n p u t a   ( i f i ) ; 
 	           i f i   =   i f i   -   1 ; 
 	           c a l l   a r i t h m e t i c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 	           j   =   f i x e d   ( s u b s t r   ( o u t p u t ,   i i   +   1 ,   o f e   -   i i ) ) ; 
 	           o f e   =   i i ; 
 	     e n d ; 
                   i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   ^ =   " & ; " ) 
                   t h e n   g o t o   m i s p l a c e d ; 
                   c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
                   i f   ( T F   ^ =   " 0 0 " b ) 
                   t h e n 
 	     d o ; 
 	           i f   ( i   <   0 ) 
 	           t h e n   i   =   a r g s t r l   +   i   +   1 ; 
 	           i f   ( s e p c h   =   "   " ) 
 	           t h e n   j   =   a r g s t r l   -   i   +   1 ; 
 	           i f   ( s e p c h   =   " : " ) 
 	           t h e n 
 	                 d o ; 
 	 	   i f   ( j   <   1 ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               m s g   =   " S u b s t r   e n d   l o c a t i o n   < 0 .   " ; 
 	 	               g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	         e n d ; 
 	 	   i f   ( j   <   i ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               m s g   =   " S u b s t r   e n d   b e f o r e   b e g i n .   " ; 
 	 	               g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	         e n d ; 
 	 	   j   =   j   -   i   +   1 ; 
 	                 e n d ; 
 	           i f   ( j   <   0 ) 
 	           t h e n 
 	                 d o ; 
 	 	   j j   =   ( a r g s t r l   -   i   +   1 )   +   j ; 
 	 	   i f   ( j j   <   0 ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               s u b s t r   ( o u t p u t ,   o f e   +   1 ,   - j j )   =   "   " ; 
 	 	               o f e   =   o f e   -   j j ; 
 	 	               j   =   - j   +   j j ; 
 	 	         e n d ; 
 	 	   e l s e   j   =   - j ; 
 	                 e n d ; 
 	           i f   ( i   <   1 ) 
 	           t h e n 
 	                 d o ; 
 	 	   m s g   =   " S u b s t r   b e f o r e   s t r i n g   b e g i n .   " ; 
 	 	   g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	                 e n d ; 
 	           i f   ( i   >   a r g s t r l ) 
 	           t h e n 
 	                 d o ; 
 	 	   m s g   =   " S u b s t r   a f t e r   s t r i n g   e n d .   " ; 
 	 	   m s g _ e t c   =   l t r i m   ( c h a r   ( i ) ) ; 
 	 	   m s g _ e t c   =   m s g _ e t c   | |   " , " ; 
 	 	   m s g _ e t c   =   m s g _ e t c   | |   l t r i m   ( c h a r   ( j ) ) ; 
 	 	   m s g _ e t c   =   m s g _ e t c   | |   "   o f   " ; 
 	 	   m s g _ e t c   =   m s g _ e t c   | |   l t r i m   ( c h a r   ( a r g s t r l ) ) ; 
 	 	   m s g _ e t c   =   m s g _ e t c   | |   " " " " ; 
 	 	   m s g _ e t c   =   m s g _ e t c   | |   a r g s t r ; 
 	 	   m s g _ e t c   =   m s g _ e t c   | |   " " " " ; 
 	 	   g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	                 e n d ; 
 	           s u b s t r   ( o u t p u t ,   o f e   +   1 ,   j )   =   s u b s t r   ( a r g s t r ,   i ) ; 
 	           o f e   =   o f e   +   j ; 
 	     e n d ; 
             e n d ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
       e n d   m a c r o _ s u b s t r ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   r e m o v e   d o u b l e d   q u o t e s   a n d   s u r r o u n d i n g   q u o t e s   ( i f   a n y )   f r o m   a   s t r i n g               * / 
 
 m a c r o _ u n q u o t e : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   t f ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 t f 	             b i t   ( 2 ) ; 	 / *   1 x -   p r o c e s s   t r u e 	 	               * / 
 	 	 	 	 / *   x 1 -   p r o c e s s   f a l s e 	               * / 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n s i d e 	             b i t   ( 1 ) ; 
             d c l   c h 	             c h a r   ( 1 ) ; 
 
 / *   & u n q u o t e   . . .   & ;   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   8 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i i   =   o f e ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
             i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & ; " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " u n q u o t e " ,   b e g l ,   i f e ) ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   1 ; 
 	     i f i   =   i f i   +   1 ; 
                   e n d ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   ^ =   " & ; " ) 
             t h e n 
                   d o ; 
 	     c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   t f ,   " 0 " b ) ; 
 	     g o t o   l o o p ; 
                   e n d ; 
             c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
             i   =   i i ; 
             i n s i d e   =   " 0 " b ; 
             d o   i i   =   i i   +   1   t o   o f e ; 
                   c h   =   s u b s t r   ( o u t p u t ,   i i ,   1 ) ; 
                   i f   ( c h   =   " " " " ) 
                   t h e n 
 	     d o ; 
 	           i f   i n s i d e 
 	           t h e n 
 	                 d o ; 
 	 	   i f   ( s u b s t r   ( o u t p u t ,   i i   +   1 ,   1 )   =   " " " " ) 
 	 	   t h e n 
 	 	         d o ; 
 	 	               i i   =   i i   +   1 ; 
 	 	               g o t o   u s e _ c h a r ; 
 	 	         e n d ; 
 	 	   e l s e   i n s i d e   =   " 0 " b ; 
 	                 e n d ; 
 	           e l s e   i n s i d e   =   " 1 " b ; 
 	     e n d ; 
                   e l s e 
 	     d o ; 
 u s e _ c h a r : 
 	           i   =   i   +   1 ; 
 	           s u b s t r   ( o u t p u t ,   i ,   1 )   =   c h ; 
 	     e n d ; 
             e n d ; 
             o f e   =   i ; 
 
       e n d   m a c r o _ u n q u o t e ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   s h o w   t h e   m a c r o s   u s e d   u p   t o   t h i s   p o i n t 	 	 	               * / 
 
 m a c r o _ u s a g e : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c 	             ( 2 4 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e p _ c t 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g s t r l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   c t l 	             c h a r   ( 1 0 0 )   v a r ; 
             d c l   r e t _ s t r 	             c h a r   ( 2 5 6 ) ; 
             d c l   r e t _ l e n 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i o a _ $ r s n p n n l         e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
 
 / *   & u s a g e   s t r i n g   & ;   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   6 ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
             i f   d b _ s w 
             t h e n   c a l l   d u m p e r   ( " u s a g " ,   i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
             i i   =   o f e ; 
             c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   +   1 ; 
 l o o p : 
             i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & ; " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " u s a g e " ,   b e g l ,   i f e ) ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     i f i   =   i f i   +   i ; 
                   e n d ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   =   " & ; " ) 
             t h e n 
                   d o ; 
 	     c a l l   s t r i p 2   ( i f p ,   i f i ,   i f e ) ; 
 	     c t l   =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   o f e   -   i i ) ; 
 	     o f e   =   i i ; 
 	     d o   m a c l p   =   m a c r o _ l i s t _ p   r e p e a t   ( m a c r o _ l i s t . n e x t ) 
 	               w h i l e   ( m a c l p   ^ =   n u l l   ( ) ) ; 
 	           c a l l   i o a _ $ r s n p n n l   ( c t l ,   r e t _ s t r ,   r e t _ l e n ,   m a c r o _ l i s t . d n a m e , 
 	 	 m a c r o _ l i s t . e n a m e ,   m a c r o _ l i s t . n a m e ) ; 
 	           s u b s t r   ( o u t p u t ,   o f e   +   1 ,   r e t _ l e n )   =   s u b s t r   ( r e t _ s t r ,   1 ,   r e t _ l e n ) ; 
 	           o f e   =   o f e   +   r e t _ l e n ; 
 	     e n d ; 
 	     c o n s t r u c t _ n e s t   =   c o n s t r u c t _ n e s t   -   1 ; 
 	     r e t u r n ; 
                   e n d ; 
             c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
             g o t o   l o o p ; 
       e n d   m a c r o _ u s a g e ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   p r o c e s s   a   p r o t e c t e d   s t r i n g 	 	 	 	 	               * / 
 
 p r o t e c t e d : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) ; 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c 	             ( 2 4 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e p _ c t 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g s t r l 	             f i x e d   b i n   ( 2 4 ) ; 
 
 / *   & "   . . .   { & " & " }   . . .   & "   * / 
 
             b e g l   =   i f i ; 
             i f i   =   i f i   +   2 ; 
             d o   w h i l e   ( " 1 " b ) ; 
                   i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " " " ) ; 
                   i f   ( i   =   0 ) 
                   t h e n 
 	     d o ; 
 	           m s g   =   " & " " " ; 
 	           c a l l   e r r o r _ m i s s i n g   ( " " " " ,   b e g l ,   i f e ) ; 
 	     e n d ; 
                   i   =   i   -   1 ; 
                   s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
                   o f e   =   o f e   +   i ; 
                   i f i   =   i f i   +   i   +   2 ; 
                   i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   ^ =   " & " " " ) 
                   t h e n   r e t u r n ; 
                   s u b s t r   ( o u t p u t ,   o f e   +   1 ,   2 )   =   " & " " " ; 
                   o f e   =   o f e   +   2 ; 
                   i f i   =   i f i   +   2 ; 
             e n d ; 
       e n d   p r o t e c t e d ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   s c a n   a   s t r i n g   a n d   p r i n t   i t   i n d e n t i n g   1   H T . 	 	 	               * / 
 
 s h o w _ s t r i n g : 
       p r o c   ( s t r 1 ,   s t r 2 ) ; 
 
             d c l   ( s t r 1 ,   s t r 2 )         c h a r   ( * ) ; 
             d c l   ( i ,   j ,   k ) 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   H T _ s w 	             b i t   ( 1 ) ; 
 
             i   =   1 ; 
             d o   w h i l e   ( i   < =   l e n g t h   ( s t r 1 ) ) ; 
                   j   =   i n d e x   ( s u b s t r   ( s t r 1 ,   i ) ,   N L ) ; 
                   i f   ( j   =   0 ) 
                   t h e n 
 	     d o ; 
 	           j   =   l e n g t h   ( s t r 1 )   -   i   +   1 ; 
 	           H T _ s w   =   " 0 " b ; 
 	     e n d ; 
                   e l s e   H T _ s w   =   " 1 " b ; 
                   k   =   i   +   j ; 
                   c a l l   i o a _ $ n n l   ( " ^ a ^ [ ^ - ^ ] " ,   s u b s t r   ( s t r 1 ,   i ,   j ) ,   H T _ s w ) ; 
                   i   =   k ; 
             e n d ; 
             c a l l   i o a _ $ n n l   ( " ^ a " ,   s t r 2 ) ; 
 
       e n d   s h o w _ s t r i n g ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   s k i p   o v e r   w h i t e s p a c e .   s t r i p 2   m o v e s   a h e a d   2   f i r s t 	 	               * / 
 
 s t r i p 2 : 
       p r o c   ( i f p ,   i f i ,   i f e ) ; 
 
             i f i   =   i f i   +   2 ; 
 
 s t r i p : 
       e n t r y   ( i f p ,   i f i ,   i f e ) ; 
 
             d c l   i f p 	             p t r , 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
 
             d c l   i 	             f i x e d   b i n   ( 2 4 ) ; 
 
 l o o p : 
             i   =   v e r i f y   ( s u b s t r   ( i n p u t ,   i f i ) ,   s p a c e ) ; 
             i f   ( i   =   0 ) 
             t h e n   i f i   =   i f e   +   1 ; 
             e l s e   i f i   =   i f i   +   i   -   1 ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   1 )   ^ =   " & " ) 
             t h e n   r e t u r n ; 
             i   =   v e r i f y   ( s u b s t r   ( i n p u t ,   i f i   +   1 ) ,   t o k e n _ c h a r s ) ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i   +   1 ,   i )   ^ =   " c o m m e n t " ) 
             t h e n   r e t u r n ; 
             i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & ; " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " & ; " ; 
 	     c a l l   e r r o r _ m i s s i n g   ( " c o m m e n t " ,   i f i ,   i f i   +   8 ) ; 
                   e n d ; 
             i f i   =   i f i   +   i   +   1 ; 
             g o t o   l o o p ; 	 	 	 / *   k e e p   o n   s t r i p p i n g 	               * / 
 
       e n d   s t r i p 2 ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   r e t u r n   t h e   l b o u n d / h b o u n d   o f   a n   a r r a y 	 	 	 	               * / 
 
 v a r _ b o u n d : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F )   r e c u r s i v e ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c 	             ( 2 4 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   ( s e p _ c t ,   l e v e l )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g s t r l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   v n a m e 	             c h a r   ( 3 2 )   v a r ; 
 
 / *   & l b o u n d   x x x & ; 
       & h b o u n d   x x x & ;   * / 
             i i   =   o f e ; 
             c a l l   s t r i p   ( i f p ,   i f i ,   i f e ) ; 
 l o o p : 
             i   =   i n d e x   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & " ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " M i s s i n g   t e r m i n a t o r   o n   & " ; 
 	     m s g   =   m s g   | |   c 3 2 ; 
 	     m s g   =   m s g   | |   " .   " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             i f   ( i   >   1 ) 
             t h e n 
                   d o ; 
 	     i   =   i   -   1 ; 
 	     s u b s t r   ( o u t p u t ,   o f e   +   1 ,   i )   =   s u b s t r   ( i n p u t ,   i f i ,   i ) ; 
 	     o f e   =   o f e   +   i ; 
 	     i f i   =   i f i   +   i ; 
                   e n d ; 
             i f   ( s u b s t r   ( i n p u t ,   i f i ,   2 )   ^ =   " & ; " ) 
             t h e n 
                   d o ; 
 	     c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
 	     g o t o   l o o p ; 
                   e n d ; 
             v n a m e   =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   o f e   -   i i ) ; 
             o f e   =   i i ; 
             j   =   l o o k u p   ( v n a m e ) ; 
             i f   ( j   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " A t t e m p t   t o   r e f e r e n c e   u n d e c l a r e d   v a r i a b l e   " " " ; 
 	     m s g   =   m s g   | |   v n a m e ; 
 	     m s g   =   m s g   | |   " " " .   " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             i f   ( v a r . t y p e   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " A t t e m p t   t o   g e t   " ; 
 	     m s g   =   m s g   | |   c 3 2 ; 
 	     m s g   =   m s g   | |   "   o f   a   s c a l a r .   " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             a r r _ p t r   =   v a r . r e f ; 
             i f   ( v a r . t y p e   =   1 ) 	 	 / *   a r r a y 	 	 	               * / 
 	   |   ( v a r . t y p e   =   2 ) 	 	 / *   a r r a y   v a r 	 	               * / 
 	   |   ( v a r . t y p e   =   3 ) 	 	 / *   l i s t 	 	 	               * / 
             t h e n 
                   d o ; 
 	     i f   ( c 3 2   =   " l b o u n d " ) 
 	     t h e n   i   =   a r r a y . l _ b o u n d ; 
 	     e l s e   i   =   a r r a y . h _ b o u n d ; 
                   e n d ; 
             i f   ( v a r . t y p e   =   4 ) 	 	 / *   f i f o 	 	 	               * / 
 	   |   ( v a r . t y p e   =   5 ) 	 	 / *   l i f o 	 	 	               * / 
             t h e n 
                   d o ; 
 	     m s g   =   " C a n n o t   g e t   " ; 
 	     m s g   =   m s g   | |   c 3 2 ; 
 	     m s g   =   m s g   | |   "   o f   " ; 
 	     i f   ( v a r . t y p e   =   5 ) 
 	     t h e n   m s g   =   m s g   | |   " l " ; 
 	     e l s e   m s g   =   m s g   | |   " f " ; 
 	     m s g   =   m s g   | |   " i f o . " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
       e n d   v a r _ b o u n d ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 
 v a r _ r a n g e : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ) ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e p a r a t o r 	             c h a r   ( 1 5 0 )   v a r ; 
             d c l   v p t r 	             p t r ; 
             d c l   l i m i t 	             f i x e d   b i n ; 
 
 / *   & v a r {   A R I T H   } 	 	 	 y i e l d s   a r g u m e n t   A R I T H 	               * / 
 / *   & v a r {   A R I T H   :   A R I T H   }   	 	 y i e l d s   a r g u m e n t s   A R I T H   t h r u   A R I T H         * / 
 / *   	 	 	 	             s e p a r a t e d   b y   a   S P 	               * / 
 / *   & v a r {   A R I T H   :   A R I T H   ,   S T R I N G   } 	 y i e l d s   a r g u m e n t s   A R I T H   t h r u   A R I T H         * / 
 / *   	 	 	 	             s e p a r a t e d   b y   S T R I N G 	               * / 
 
             b e g l   =   i f i ; 
             i i   =   o f e ; 
             i   =   l o o k u p   ( c 3 2 ) ; 
             i f   ( i   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " A t t e m p t   t o   r e f e r e n c e   u n d e c l a r e d   a r r a y .   " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             i f   ( v a r . t y p e   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " A t t e m p t   t o   m a k e   n o n - s c a l a r   r e f   t o   s c a l a r   v a r i a b l e   " " " ; 
 	     m s g   =   m s g   | |   c 3 2 ; 
 	     m s g   =   m s g   | |   " " " .   " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             v p t r   =   v a r _ p t r ; 
             a r r _ p t r   =   v a r . r e f ; 
             i   =   a r r a y . l _ b o u n d ; 
             j   =   a r r a y . h _ b o u n d ; 
             i f i   =   i f i   -   2 ; 
             c a l l   g e t _ r a n g e   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   i ,   j ) ; 
             v a r _ p t r   =   v p t r ; 
             a r r _ p t r   =   v a r . r e f ; 
             i f   ( T F   ^ =   " 0 0 " b ) 
             t h e n 
                   d o ; 
 	     i f   ( v a r . t y p e   =   4 )   |   ( v a r . t y p e   =   5 ) 
 	     t h e n 
 	           d o ; 
 	                 i f   ( i   ^ =   j ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " A t t e m p t   t o   m a k e   m u l t i p l e   r e f   t o   s t a c k   " " " ; 
 	 	         m s g   =   m s g   | |   c 3 2 ; 
 	 	         m s g   =   m s g   | |   " " " .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	                 i f   ( i   >   0 ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " A t t e m p t   t o   r e f   p o s i t i v e   s t a c k   e l e m e n t   " " " ; 
 	 	         m s g   =   m s g   | |   c 3 2 ; 
 	 	         m s g   =   m s g   | |   " " " .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	                 i f   ( v a r . t y p e   =   4 ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         i ,   j   =   a r r a y . l _ b o u n d   -   i ; 
 	 	         i f   ( i   >   a r r a y . h _ b o u n d ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 m s g   =   " A t t e m p t   t o   r e f   n o n - e x i s t a n t   s t a c k   e l e m e n t   i n   " " " 
 	 	 	           ; 
 	 	 	 m s g   =   m s g   | |   c 3 2 ; 
 	 	 	 m s g   =   m s g   | |   " " " .   " ; 
 	 	 	 g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	               e n d ; 
 	 	   e n d ; 
 	                 e l s e 
 	 	   d o ; 
 	 	         i ,   j   =   a r r a y . h _ b o u n d   +   i ; 
 	 	         i f   ( i   <   a r r a y . l _ b o u n d ) 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 m s g   =   " A t t e m p t   t o   r e f   n o n - e x i s t a n t   s t a c k   e l e m e n t   i n   " " " 
 	 	 	           ; 
 	 	 	 m s g   =   m s g   | |   c 3 2 ; 
 	 	 	 m s g   =   m s g   | |   " " " .   " ; 
 	 	 	 g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	               e n d ; 
 	 	   e n d ; 
 	           e n d ; 
 	     e l s e 
 	           d o ; 
 	                 i f   ( i   <   a r r a y . l _ b o u n d ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " A t t e m p t   t o   r e f e r e n c e   b e l o w   l o w e r   b o u n d .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	                 i f   ( j   >   a r r a y . h _ b o u n d ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " A t t e m p t   t o   r e f e r e n c e   a b o v e   u p p e r   b o u n d .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	           e n d ; 
                   e n d ; 
             s e p a r a t o r   =   "   " ; 
             i f   ( i n p u t a   ( i f i )   =   " , " ) 
             t h e n 
                   d o ; 
 	     i f i   =   i f i   +   1 ; 
 	     d o   w h i l e   ( " 1 " b ) ; 
 	           j j   =   s e a r c h   ( s u b s t r   ( i n p u t ,   i f i ) ,   " & } " ) ; 
 	           i f   ( j j   =   0 ) 
 	           t h e n 
 	                 d o ; 
 	 	   m s g   =   " } " ; 
 	 	   c a l l   e r r o r _ m i s s i n g   ( " x x x { " ,   b e g l ,   i f e ) ; 
 	                 e n d ; 
 	           i f   ( j j   >   1 ) 
 	           t h e n 
 	                 d o ; 
 	 	   j j   =   j j   -   1 ; 
 	 	   s u b s t r   ( o u t p u t ,   o f e   +   1 ,   j j )   =   s u b s t r   ( i n p u t ,   i f i ,   j j ) ; 
 	 	   i f i   =   i f i   +   j j ; 
 	 	   o f e   =   o f e   +   j j ; 
 	                 e n d ; 
 	           i f   ( i n p u t a   ( i f i )   =   " } " ) 
 	           t h e n 
 	                 d o ; 
 	 	   s e p a r a t o r   =   s u b s t r   ( o u t p u t ,   i i   +   1 ,   o f e   -   i i ) ; 
 	 	   o f e   =   i i ; 
 	 	   g o t o   e n d _ r a n g e ; 
 	                 e n d ; 
 	           c a l l   a m p e r s a n d   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F ,   " 0 " b ) ; 
 	     e n d ; 
                   e n d ; 
             i f   ( i n p u t a   ( i f i )   =   " } " ) 
             t h e n 
                   d o ; 
 e n d _ r a n g e : 
 	     i f i   =   i f i   +   1 ; 
 	     i f   ( T F   =   " 0 0 " b ) 
 	     t h e n   r e t u r n ; 
 	     v a r _ p t r   =   v p t r ; 
 	     a r r _ p t r   =   v a r . r e f ; 
 	     l i m i t   =   j   -   a r r a y . l o w e r   +   1 ; 
 	     d o   a r r _ e l e m   =   i   -   a r r a y . l o w e r   +   1   t o   l i m i t ; 
 	           s u b s t r   ( o u t p u t ,   o f e   +   1 ,   a r r a y . l e n   ( a r r _ e l e m ) )   =   a r r t e x t ; 
 	           o f e   =   o f e   +   a r r a y . l e n   ( a r r _ e l e m ) ; 
 	           i f   ( a r r _ e l e m   ^ =   l i m i t ) 
 	           t h e n 
 	                 d o ; 
 	 	   s u b s t r   ( o u t p u t ,   o f e   +   1 ,   l e n g t h   ( s e p a r a t o r ) )   =   s e p a r a t o r ; 
 	 	   o f e   =   o f e   +   l e n g t h   ( s e p a r a t o r ) ; 
 	                 e n d ; 
 	     e n d ; 
                   e n d ; 
             e l s e 
                   d o ; 
 	     m s g   =   " & v a r {   . . .   } " ; 
 	     g o t o   s y n t a x _ e r r ; 
                   e n d ; 
       e n d   v a r _ r a n g e ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   r e f e r e n c e   a   v a r i a b l e 	 	 	 	 	               * / 
 
 v a r _ r e f : 
       p r o c   ( i f p ,   i f i ,   i f e ,   o f p ,   o f e ,   T F )   r e c u r s i v e ; 
 
             d c l   i f p 	             p t r , 	 / *   p o i n t e r   t o   i n p u t 	 	               * / 
 	 i f i 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   f i r s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 i f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   i n p u t   t o   u s e 	               * / 
 	 o f p 	             p t r , 	 / *   p o i n t e r   t o   o u t p u t 	               * / 
 	 o f e 	             f i x e d   b i n   ( 2 4 ) , 
 	 	 	 	 / *   l a s t   c h a r   o f   o u t p u t   u s e d 	               * / 
 	 T F 	             b i t   ( 2 ) ; 
             d c l   b e g l 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   i n p u t a 	             ( i f e )   c h a r   ( 1 )   b a s e d   ( i f p ) ; 
             d c l   i n p u t 	             c h a r   ( i f e )   b a s e d   ( i f p ) ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o f p ) ; 
             d c l   ( i ,   j ,   i i ,   j j )     f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c 	             ( 2 4 )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   ( s e p _ c t ,   l e v e l )   f i x e d   b i n   ( 2 4 ) ; 
             d c l   a r g s t r l 	             f i x e d   b i n   ( 2 4 ) ; 
 
 / *   & x x x   * / 
 / *   x x x   c a n   b e   S C A L A R ,   F I F I ,   o r   L I F O   * / 
             i f   ( T F   =   " 0 0 " b ) 
             t h e n   r e t u r n ; 
             b e g l   =   i f i ; 
             j   =   l o o k u p   ( c 3 2 ) ; 
             i f   ( j   =   0 ) 
             t h e n 
                   d o ; 
 	     m s g   =   " A t t e m p t   t o   r e f e r e n c e   u n d e c l a r e d   v a r i a b l e   " " " ; 
 	     m s g   =   m s g   | |   c 3 2 ; 
 	     m s g   =   m s g   | |   " " " .   " ; 
 	     g o t o   a d d _ i d e n t i f i c a t i o n ; 
                   e n d ; 
             i f   ( v a r . t y p e   =   0 ) 
             t h e n 
                   d o ; 
 	     i f   ( c 3 2   =   w a t c h w o r d ) 
 	     t h e n   c a l l   i o a _   ( " ^ a   ^ i   " " ^ v a " " " ,   w a t c h w o r d ,   v a r . l e n ,   v a r . l e n , 
 	 	     v a r t e x t ) ; 
 	     s u b s t r   ( o u t p u t ,   o u t _ l e n   +   1 ,   v a r . l e n )   =   v a r t e x t ; 
 	     o u t _ l e n   =   o u t _ l e n   +   v a r . l e n ; 
                   e n d ; 
             e l s e 
                   d o ; 
 	     a r r _ p t r   =   v a r . r e f ; 
 	     i f   ( v a r . t y p e   =   4 ) 
 	     t h e n 
 	           d o ; 
 	                 i f   ( a r r a y . l _ b o u n d   >   a r r a y . h _ b o u n d ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " A t t e m p t   t o   r e f e r e n c e   e m p t y   f i f o   " " " ; 
 	 	         m s g   =   m s g   | |   c 3 2 ; 
 	 	         m s g   =   m s g   | |   " " " .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	                 a r r _ e l e m   =   m o d   ( a r r a y . l _ b o u n d ,   v a r . l e n )   +   1 ; 
 	                 i f   ( c 3 2   =   w a t c h w o r d ) 
 	                 t h e n   c a l l   i o a _   ( " ^ a { ^ i }   ^ i   " " ^ v a " " " ,   w a t c h w o r d ,   a r r _ e l e m , 
 	 	                 a r r a y . l e n   ( a r r _ e l e m ) ,   a r r a y . l e n   ( a r r _ e l e m ) ,   a r r t e x t ) 
 	 	                 ; 
 	                 s u b s t r   ( o u t p u t ,   o u t _ l e n   +   1 ,   a r r a y . l e n   ( a r r _ e l e m ) )   =   a r r t e x t ; 
 	                 o u t _ l e n   =   o u t _ l e n   +   a r r a y . l e n   ( a r r _ e l e m ) ; 
 	                 a r r a y . l _ b o u n d   =   a r r a y . l _ b o u n d   +   1 ; 
 	                 i f   a l _ s w 
 	                 t h e n   c a l l   i o a _   ( " F   ^ a { ^ i }   ^ i   ^ p " ,   c 3 2 ,   a r r _ e l e m , 
 	 	                 a r r a y . l e n   ( a r r _ e l e m ) ,   a r r a y . r e f   ( a r r _ e l e m ) ) ; 
 	                 f r e e   a r r t e x t   i n   ( f r e e _ a r e a ) ; 
 	           e n d ; 
 	     e l s e   i f   ( v a r . t y p e   =   5 ) 
 	     t h e n 
 	           d o ; 
 	                 i f   ( a r r a y . l _ b o u n d   >   a r r a y . h _ b o u n d ) 
 	                 t h e n 
 	 	   d o ; 
 	 	         m s g   =   " A t t e m p t   t o   r e f e r e n c e   e m p t y   l i f o   " " " ; 
 	 	         m s g   =   m s g   | |   c 3 2 ; 
 	 	         m s g   =   m s g   | |   " " " .   " ; 
 	 	         g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	 	   e n d ; 
 	                 a r r _ e l e m   =   a r r a y . h _ b o u n d ; 
 	                 i f   ( c 3 2   =   w a t c h w o r d ) 
 	                 t h e n   c a l l   i o a _   ( " ^ a { ^ i }   ^ i   " " ^ v a " " " ,   w a t c h w o r d ,   a r r _ e l e m , 
 	 	                 a r r a y . l e n   ( a r r _ e l e m ) ,   a r r a y . l e n   ( a r r _ e l e m ) ,   a r r t e x t ) 
 	 	                 ; 
 	                 s u b s t r   ( o u t p u t ,   o u t _ l e n   +   1 ,   a r r a y . l e n   ( a r r _ e l e m ) )   =   a r r t e x t ; 
 	                 o u t _ l e n   =   o u t _ l e n   +   a r r a y . l e n   ( a r r _ e l e m ) ; 
 	                 a r r a y . h _ b o u n d   =   a r r a y . h _ b o u n d   -   1 ; 
 	                 i f   a l _ s w 
 	                 t h e n   c a l l   i o a _   ( " F   ^ a { ^ i }   ^ i   ^ p " ,   c 3 2 ,   a r r _ e l e m , 
 	 	                 a r r a y . l e n   ( a r r _ e l e m ) ,   a r r a y . r e f   ( a r r _ e l e m ) ) ; 
 	                 f r e e   a r r t e x t   i n   ( f r e e _ a r e a ) ; 
 	           e n d ; 
 	     e l s e 
 	           d o ; 
 	                 m s g   =   " A t t e m p t   t o   m a k e   s c a l a r   r e f e r e n c e   t o   n o n - s c a l a r   " " " ; 
 	                 m s g   =   m s g   | |   c 3 2 ; 
 	                 m s g   =   m s g   | |   " " " .   " ; 
 	                 g o t o   a d d _ i d e n t i f i c a t i o n ; 
 	           e n d ; 
                   e n d ; 
       e n d   v a r _ r e f ; 
 % p a g e ; 
 / *     - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -   - + -     * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   E X T E R N A L   e n t r y   t o   c l e a n u p   t h e   p r o c e s s i n g   e n v i r o n m e n t 	 	               * / 
 
             d c l   r e f _ p a t h 	             c h a r   ( 1 6 8 ) ; 
 f r e e : 
       e n t r y   ( p r _ s w ) ; 
 
             d c l   p r _ s w 	             b i t   ( 1 ) ; 
 
             d c l   d e f i n e _ a r e a _         e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   r e l e a s e _ a r e a _       e n t r y   ( p t r ) ; 
 
             i f   f r e e _ a r e a _ p   ^ =   n u l l   ( ) 
             t h e n 
                   d o ; 
 	     t p t r   =   e x t _ v a r _ p t r ; 
 	     c a l l   f r e e _ u m   ( " e x t " ) ; 
 	     e x t _ v a r _ p t r   =   n u l l   ( ) ; 
 	     d o   w h i l e   ( i n t _ v a r s _ b a s e   ^ =   n u l l   ( ) ) ; 
 	           i n t _ v a r _ p t r   =   i n t _ v a r s _ b a s e ; 
 	           i f   d b _ s w 
 	           t h e n   c a l l   i o a _   ( " ^ p ^ - m a c r o   ^ a " ,   i n t _ v a r _ p t r ,   i n t _ v a r s . m a c r o ) ; 
 	           i n t _ v a r s _ b a s e   =   i n t _ v a r s . n e x t ; 
 	           t p t r   =   i n t _ v a r s . r e f ; 
 	           c a l l   f r e e _ u m   ( " i n t " ) ; 
 	           i f   a l _ s w 
 	           t h e n   c a l l   i o a _   ( " F   i n t _ v a r s   ^ p " ,   i n t _ v a r _ p t r ) ; 
 	           f r e e   i n t _ v a r s   i n   ( f r e e _ a r e a ) ; 
 	     e n d ; 
 	     t p t r   =   m a c r o _ l i s t _ p ; 
 	     i f   ( t p t r   ^ =   n u l l   ( ) )   &   p r _ s w 
 	     t h e n   c a l l   i o a _   ( " ^ a S   U S E D : " ,   w h o _ a m _ i ) ; 
 	     d o   w h i l e   ( t p t r   ^ =   n u l l   ( ) ) ; 
 	           m a c l p   =   t p t r ; 
 	           i f   p r _ s w   &   ( m a c r o _ l i s t . d n a m e   ^ =   " " ) 
 	           t h e n 
 	                 d o ; 
 	 	   c a l l   i o a _   ( " ^ i : ^ i   ^ a > ^ a   - -   ( ^ a . m a c r o ) " ,   m a c r o _ l i s t . f r o m , 
 	 	             m a c r o _ l i s t . t o ,   m a c r o _ l i s t . d n a m e ,   m a c r o _ l i s t . e n a m e , 
 	 	             m a c r o _ l i s t . n a m e ) ; 
 	                 e n d ; 
 	           t p t r   =   m a c r o _ l i s t . n e x t ; 
 	           m a c r o _ h o l d e r _ p   =   m a c r o _ l i s t . r e f ; 
 	           i f   ( s u b s t r   ( m a c r o _ l i s t . d n a m e ,   1 ,   4 )   =   "       & " ) 
 	           t h e n 
 	                 d o ; 
 	 	   m a c r o _ h o l d e r _ l   =   m a c r o _ l i s t . t o ; 
 	 	   i f   a l _ s w 
 	 	   t h e n   c a l l   i o a _   ( " F   m a c r o _ h o l d e r   ^ p " ,   m a c r o _ h o l d e r _ p ) ; 
 	 	   f r e e   m a c r o _ h o l d e r   i n   ( f r e e _ a r e a ) ; 
 	                 e n d ; 
 	           i f   a l _ s w 
 	           t h e n   c a l l   i o a _   ( " F   m a c r o _ l i s t   ^ p " ,   m a c l p ) ; 
 	           f r e e   m a c r o _ l i s t   i n   ( f r e e _ a r e a ) ; 
 	     e n d ; 
 	     c a l l   r e l e a s e _ a r e a _   ( f r e e _ a r e a _ p ) ; 
 	     f r e e _ a r e a _ p   =   n u l l   ( ) ; 
                   e n d ; 
             m a c r o _ l i s t _ p   =   n u l l   ( ) ; 
             e r r _ c t   ( * )   =   0 ; 
             m a c r o _ n e s t   =   0 ; 
             r e t u r n ; 
 
             d c l   d n a m e 	             c h a r   ( 1 6 8 ) ; 
             d c l   e n a m e 	             c h a r   ( 3 2 ) ; 
             d c l   h c s _ $ f s _ g e t _ p a t h _ n a m e 
 	 	             e n t r y   ( p t r ,   c h a r   ( * ) ,   f i x e d   b i n   ( 2 4 ) ,   c h a r   ( * ) , 
 	 	             f i x e d   b i n   ( 3 5 ) ) ; 
 
 
 
 / *   *   *   *   *   *   *   *   *   *   *   *   *   *   I N T E R N A L   S T A T I C   D A T A     *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 
             d c l   a l _ s w 	             b i t   ( 1 )   i n t   s t a t i c   i n i t   ( " 0 " b ) ; 
             d c l   d b _ s w 	             b i t   ( 1 )   i n t   s t a t i c   i n i t   ( " 0 " b ) ; 
             d c l   e n d _ s y m 	             c h a r   ( 8 )   v a r ; 
             d c l   e r r _ c t 	             ( 0 : 4 )   f i x e d   b i n   i n t   s t a t i c   i n i t   ( ( 5 )   0 ) ; 
             d c l   e x t _ v a r _ p t r           p t r   i n t   s t a t i c   i n i t   ( n u l l   ( ) ) ; 
             d c l   f r e e _ a r e a _ p           p t r   i n t   s t a t i c   i n i t   ( n u l l   ( ) ) ; 
             d c l   i n t _ v a r s _ b a s e       p t r   i n t   s t a t i c   i n i t   ( n u l l   ( ) ) ; 
             d c l   l g _ s w 	             b i t   ( 1 )   i n t   s t a t i c   i n i t   ( " 0 " b ) ; 
             d c l   m a c r o _ l i s t _ p         p t r   i n t   s t a t i c   i n i t   ( n u l l   ( ) ) ; 
             d c l   m a c r o _ n e s t             f i x e d   b i n   i n t   s t a t i c   i n i t   ( 0 ) ; 
             d c l   p c _ s w 	             b i t   ( 1 )   i n t   s t a t i c   i n i t   ( " 0 " b ) ; 
             d c l   w a t c h w o r d 	             c h a r   ( 3 2 )   i n t   s t a t i c   i n i t   ( " " ) ; 
             d c l   w h o _ a m _ i 	             c h a r   ( 1 2 )   v a r   i n t   s t a t i c ; 
 
 / *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *     C O N S T A N T S     *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 
             d c l   N L 	             c h a r   ( 1 )   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 
 " ) ; 
             d c l   s p a c e 	             c h a r   ( 5 )   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "   	 
   " ) ; 
 
 / *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *     S T R U C T U R E S   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   * / 
 
             d c l   v a r _ p t r 	             p t r ; 
             d c l   1   v a r 	             b a s e d   ( v a r _ p t r ) , 
 	     2   n e x t 	             p t r , 	 / *   n e x t   v a r i a b l e   i n   l i s t 	               * / 
 	     2   n a m e 	             c h a r   ( 1 6 ) , 
 	     2   t y p e 	             f i x e d   b i n , 	 / *   0 - s c a l a r     1 - a r r a y       2 - a r r a y   v a r       * / 
 	 	 	 	 / *   3 - l i s t         4 - f i f o         5 - l i f o 	               * / 
 	     2   l e n 	             f i x e d   b i n , 	 / *   l e n g t h   o f   d a t a   s t r i n g 	               * / 
 	     2   r e f 	             p t r ; 	 / *   p o i n t s   t o   d a t a   s t r i n g 	               * / 
             d c l   v a r t e x t 	             c h a r   ( v a r . l e n )   b a s e d   ( v a r . r e f ) ; 
 
 
             d c l   a r r _ p t r 	             p t r ; 
             d c l   1   a r r a y 	             b a s e d   ( a r r _ p t r ) , 
 	     2   l o w e r 	             f i x e d   b i n , 
 	     2   l _ b o u n d           f i x e d   b i n , 	 / *   d e f i n e d   l o w e r   b o u n d 	               * / 
 	     2   h _ b o u n d           f i x e d   b i n , 	 / *   d e f i n e d   h i g h e r   b o u n d 	               * / 
 	     2   e l e m 	             ( v a r . l e n ) , 
 	         3   l e n 	             f i x e d   b i n , 	 / *   l e n g t h   o f   d a t a   s t r i n g 	               * / 
 	         3   r e f 	             p t r ; 	 / *   p o i n t s   t o   d a t a   s t r i n g 	               * / 
             d c l   a r r t e x t 	             c h a r   ( a r r a y . l e n   ( a r r _ e l e m ) ) 
 	 	             b a s e d   ( a r r a y . r e f   ( a r r _ e l e m ) ) ; 
             d c l   a r r _ e l e m 	             f i x e d   b i n   ( 2 4 ) ; 
 
             d c l   i n t _ v a r _ p t r           p t r ; 
             d c l   1   i n t _ v a r s             b a s e d   ( i n t _ v a r _ p t r ) , 
 	     2   n e x t 	             p t r , 
 	     2   r e f 	             p t r , 	 / *   p o i n t s   t o   v a r i a b l e   d e f i n i t i o n           * / 
 	     2   m a c r o 	             c h a r   ( 3 2 ) ; 	 / *   n a m e   o f   m a c r o   o w n i n g   i t 	               * / 
 
             d c l   m a c l p 	             p t r ; 
             d c l   1   m a c r o _ l i s t         b a s e d   ( m a c l p ) , 
 	     2   n e x t 	             p t r , 
 	     2   r e f 	             p t r , 
 	     2   d n a m e 	             c h a r   ( 1 6 8 ) , 
 	     2   e n a m e 	             c h a r   ( 3 2 ) , 
 	     2   f r o m 	             f i x e d   b i n   ( 2 4 ) , 
 	     2   t o 	             f i x e d   b i n   ( 2 4 ) , 
 	     2   n a m e 	             c h a r   ( 3 2 ) , 
 	     2   i n t _ m a c           b i t   ( 1 ) ; 	 / *   1 -   & m a c r o / & d e f i n e ' e d 	               * / 
 
 / *   *   *   *   *   *   *   *   *   *   *   *   *   L O O S E   A R R A Y S   a n d   S C A L A R S     *   *   *   *   *   *   *   *   *   *   *   *   * / 
 
             d c l   a r g l e n g _ l e s s _ t h a n _ z e r o 
 	 	             c o n d i t i o n ; 
             d c l   b c 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   c 3 2 	             c h a r   ( 3 2 )   v a r ; 
             d c l   c 3 2 x 	             c h a r   ( 3 2 )   v a r ; 
             d c l   c a l l _ e r r 	             b i t   ( 1 ) ; 
             d c l   c h _ 2 n d 	             c h a r   ( 1 ) ; 
             d c l   c o n s t r u c t _ n e s t     f i x e d   b i n   ( 2 4 ) ; 
             d c l   f r e e _ a r e a 	             a r e a   b a s e d   ( f r e e _ a r e a _ p ) ; 
             d c l   i 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   j a f 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   l o c a l _ v a r _ p t r       p t r ; 
             d c l   m a c r o _ h o l d e r         c h a r   ( m a c r o _ h o l d e r _ l )   b a s e d   ( m a c r o _ h o l d e r _ p ) ; 
             d c l   m a c r o _ h o l d e r _ l     f i x e d   b i n   ( 2 4 ) ; 
             d c l   m a c r o _ h o l d e r _ p     p t r ; 
             d c l   m s g _ e t c 	             c h a r   ( 1 0 0 0 )   v a r ; 
             d c l   m y n a m e 	             c h a r   ( 3 2 )   v a r ; 
             d c l   o u t p u t 	             c h a r   ( 1 0 4 4 4 8 0 )   b a s e d   ( o u t _ p t r ) ; 
             d c l   s a v e _ d b 	             b i t   ( 1 ) ; 
             d c l   s e g 	             c h a r   ( s e g e )   b a s e d   ( s e g p t r ) ; 
             d c l   s e g a 	             ( s e g e )   c h a r   ( 1 )   b a s e d   ( s e g p t r ) ; 
             d c l   s e g e 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e g i 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e g i i 	             f i x e d   b i n   ( 2 4 ) ; 
             d c l   s e g m e n t 	             c h a r   ( s e g e )   b a s e d   ( s e g p t r ) ; 
             d c l   s e g p t r 	             p t r ; 
             d c l   s e g t y p e 	             c h a r   ( 8 )   v a r ; 
             d c l   s t a r t _ s y m 	             c h a r   ( 8 )   v a r ; 
             d c l   t p t r 	             p t r ; 
             d c l   t o k e n _ c h a r s           c h a r   ( 6 3 )   i n t   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	             i n i t   ( " a b c d e f g h i j k l m n o p q r s t u v w x y z " 
 	 	             | |   " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _ 0 1 2 3 4 5 6 7 8 9 " ) ; 
             d c l   t r _ s w 	             b i t   ( 1 ) ; 
 
             d c l   e r r o r _ t a b l e _ $ a c t i o n _ n o t _ p e r f o r m e d 
 	 	             f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
             d c l   e r r o r _ t a b l e _ $ a r c h i v e _ f m t _ e r r 
 	 	             f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
             d c l   e r r o r _ t a b l e _ $ b a d s y n t a x 
 	 	             f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
             d c l   e r r o r _ t a b l e _ $ n e w _ s e a r c h _ l i s t 
 	 	             f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
             d c l   e r r o r _ t a b l e _ $ n o _ s e a r c h _ l i s t 
 	 	             f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
             d c l   e r r o r _ t a b l e _ $ t r a n s l a t i o n _ a b o r t e d 
 	 	             f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
             d c l   e r r o r _ t a b l e _ $ t r a n s l a t i o n _ f a i l e d 
 	 	             f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
             d c l   i o a _ 	             e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
             d c l   c o m _ e r r _ 	             e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
             d c l   a r c h i v e _ u t i l _ $ f i r s t _ e l e m e n t 
 	 	             e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   a r c h i v e _ u t i l _ $ s e a r c h 
 	 	             e n t r y   ( p t r ,   p t r ,   c h a r   ( 3 2 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   i o a _ $ n n l 	             e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
             d c l   h c s _ $ m a k e _ p t r       e n t r y   ( p t r ,   c h a r   ( * ) ,   c h a r   ( * ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   h c s _ $ f s _ g e t _ s e g _ p t r 
 	 	             e n t r y   ( c h a r   ( * ) ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   g e t _ s e g _ p t r _         e n t r y   ( c h a r   ( * ) ,   b i t   ( 6 ) ,   f i x e d   b i n   ( 2 4 ) ,   p t r , 
 	 	             f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   m a c _ s w 	             b i t   ( 1 ) ; 
 
             d c l   ( a d d r ,   a d d r e l ,   c h a r ,   c o n v e r t ,   d i v i d e ,   f i x e d ,   h b o u n d ,   i n d e x ,   l e n g t h , 
 	 l t r i m ,   m a x ,   m i n ,   m o d ,   n u l l ,   r e v e r s e ,   r t r i m ,   s e a r c h ,   s i z e ,   s t r i n g , 
 	 s u b s t r ,   t r a n s l a t e ,   v e r i f y ) 
 	 	             b u i l t i n ; 
 d b n : 
       e n t r y ; 
             d b _ s w   =   " 1 " b ; 
             r e t u r n ; 
 a l n : 
       e n t r y ; 
             a l _ s w   =   " 1 " b ; 
             r e t u r n ; 
 p c n : 
       e n t r y ; 
             p c _ s w   =   " 1 " b ; 
             r e t u r n ; 
 l g n : 
       e n t r y ; 
             l g _ s w   =   " 1 " b ; 
             r e t u r n ; 
 l g f : 
       e n t r y ; 
             l g _ s w   =   " 0 " b ; 
             r e t u r n ; 
 p c f : 
       e n t r y ; 
             p c _ s w   =   " 0 " b ; 
             r e t u r n ; 
 a l f : 
       e n t r y ; 
             a l _ s w   =   " 0 " b ; 
             r e t u r n ; 
 d b f : 
       e n t r y ; 
             d b _ s w   =   " 0 " b ; 
             r e t u r n ; 
 
 w a t c h : 
       e n t r y   ( w a t c h f o r ) ; 
             d c l   w a t c h f o r 	             c h a r   ( * ) ; 
 
             w a t c h w o r d   =   w a t c h f o r ; 
             r e t u r n ; 
 
       e n d ; 
      