  
 
 
  
 	 	         h y t e r m . c o m p d v                                       0 4 / 2 3 / 8 5     1 2 5 7 . 6 r e w   0 4 / 2 3 / 8 5     0 9 1 1 . 8             2 4 9 9 6 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   * 
       *   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   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 W o r d s p a c e :   3 , 6 , 9 , S P ; 
 L e t t e r s p a c e :   1 ; 
 
 M e d i a C h a r s : 
 0 1 0 	 S E L F , 	 H T 	 0 1 1 , 	 F F 	 0 1 4 , 	 0 1 6 	 S E L F , 
 0 1 7 	 S E L F , 	 S T R O K E 	 0 3 0 , 	 0 3 0 	 S E L F , 	 E S C 	 0 3 3 , 
 0 3 3               S E L F , 	 P L O T             0 3 3   " 3 " , 	 U N P L O T         0 3 3   " 4 " ,     " ! " : " ~ " 	 S E L F , 
 1 7 7 	 S E L F , 	 N I L 	 " " , 
 2 7 7 	 " " , 	 	 / *   b l i n d   e s c a p e   * / 
 
 / * 	 T h e   f o n t   c h a n g e   s t r i n g s   e x p e c t e d   b y   h y t e r m _ w r i t e r _   a r e   o f   t h e   f o r m : 
 	 	 o o o   " h "   " w " 
 	 w h e r e   o o o   i s   t h e   o c t a l   r e p r e s e n t a t i o n   o f   t h e   w h e e l   n e e d e d . 
 	             " h "   i s   t h e   c h a r a c t e r   t o   g i v e   t o   t h e   d e v i c e 
 	             " w "   i s   t h e   d e c i m a l   d i g i t   r e p r e s e n t i n g   t h e   w i d t h   o f   a   W S P   * / 
 
 P w h e e l 	 0 0 1 , 	 H M I 6 	 0 1 5 , 	 W 6 	 " 6 " , 
 A w h e e l 	 0 0 2 , 	 H M I 5 	 0 1 3 , 	 W 5 	 " 5 " , 
 E w h e e l 	 0 0 3 , 	 H M I 4 	 0 1 1 , 	 W 4 	 " 4 " , 
 
 / *   d e f i n i t i o n s   t o   m o v e   a l l   8   d i r e c t i o n s   * / 
 	 	 	   R H L F   0 3 3   " D " , 	 / *   m a y   N O T   b e   u s e d   i n   P L O T   m o d e   * / 
   B S P R L F   0 1 0   0 3 3   0 1 2 ,                         R L F   0 3 3   0 1 2 ,                 S P R L F   0 4 0   0 3 3   0 1 2 , 
   B S P     0 1 0 ,                                                                                   S P     0 4 0 , 
   B S P L F   0 1 0   0 1 2 ,                                   L F     0 1 2 ,                         S P L F   0 4 0   0 1 2 , 
 	 	 	   H L F   0 3 3   " U " , 	 / *   m a y   N O T   b e   u s e d   i n   P L O T   m o d e   * / 
 	 	 / *   T h e s e   a r e   n e e d e d   b y   C l e a n u p :   * / 
 0 3 7 	 S E L F , 	 0 1 5 	 S E L F , 	 0 3 6 	 S E L F , 	 0 1 1 	 S E L F ; 
 
 S t r o k e s :   6 ; 
 
 M e d i a :         m A S C 1 0 ,       m A S C 1 2 ,       m A S C 1 5 ,       m A P L 1 0 ; 
 N I L               0 ,                 0 ,                 0 ,                 0 ; 
 B S P             - 6 ,               - 5 ,               - 4 ,               - 6 ; 
 0 1 0             - 6 ,               - 5 ,               - 4 ,               - 6 ; 
 H T                 0 ,                 0 ,                 0 ,                 0 ; 
 0 1 1               0 ,                 0 ,                 0 ,                 0 ; 
 F F                 0 ,                 0 ,                 0 ,                 0 ; 
 0 1 5               0 ,                 0 ,                 0 ,                 0 ; 
 0 1 6               0 ,                 = ,                 = ,                 0 ; 
 0 1 7               0 ,                 = ,                 = ,                 = ; 
 S T R O K E         1 , 	 = , 	 = , 	 = ; 
 0 3 0 	 1 , 	 = , 	 = , 	 = ; 
 E S C             - 6 ,               - 5 ,               - 4 ,               - 6 ; 
 0 3 3             - 6 ,               - 5 ,               - 4 ,               - 6 ; 
 0 3 6               0 ,                 0 ,                 0 ,                 0 ; 
 0 3 7               0 ,                 0 ,                 0 ,                 0 ; 
 S P                 6 ,                 5 ,                 4 ,                 6 ; 
 " ! " : " ~ "       6 ,                 5 ,                 4 ,                 6 ; 
 1 7 7               0 ,                 = ,                 = ,                 0 ; 
 P w h e e l         0 ,                 = ,                 = ,                 0 ; 
 A w h e e l         0 ,                 = ,                 = ,                 0 ; 
 E w h e e l         0 ,                 = ,                 = ,                 0 ; 
 H M I 6             0 ,                 = ,                 = ,                 0 ; 
 H M I 5             0 ,                 = ,                 = ,                 0 ; 
 H M I 4             0 ,                 = ,                 = ,                 0 ; 
 W 6                 0 ,                 = ,                 = ,                 0 ; 
 W 5                 0 ,                 = ,                 = ,                 0 ; 
 W 4                 0 ,                 = ,                 = ,                 0 ; 
 P L O T             0 ,                 = ,                 = ,                 0 ; 
 U N P L O T         0 ,                 = ,                 = ,                 0 ; 
 R L F               0 ,                 = ,                 = ,                 0 ; 
 R H L F             0 ,                 = ,                 = ,                 0 ; 
 B S P R L F       - 1 ,                 = ,                 = ,               - 1 ; 
 S P R L F           1 ,                 = ,                 = ,                 = ; 
 B S P L F         - 1 ,                 = ,                 = ,               - 1 ; 
 S P L F             1 ,                 = ,                 = ,                 1 ; 
 L F                 0 ,                 = ,                 = ,                 0 ; 
 
 V i e w : 	 v A S C 1 0 	 m A S C 1 0 ; 
 V i e w : 	 v A S C 1 2 	 m A S C 1 2 ; 
 V i e w : 	 v A S C 1 5 	 m A S C 1 5 ; 
 V i e w : 	 v A P L 1 0 	 m A P L 1 0 ; 
 
 D e f :   a s c i i ; 
 " ! " : " ~ " 	 S E L F ; 	 0 1 0 	 S E L F ; 
 
 D e f :   a s c i i _ ; 
 	 / *   a l l   o v e r s t r i k e s   w i l l   h a v e   u n d e r s c o r e   l a s t   t o   o p t i m i z e   d a i s y           * / 
 	 / *   w h e e l   m o t i o n .   h y t e r m _ w r i t e r _   w i l l   s e p a r a t e   u n d e r s c o r e d   p a r t s       * / 
 	 / *   i n t o   t h r e e   s t r i n g s   w i t h   a l l   B S P   t o g e t h e r .     B y   p l a c i n g   _   l a s t         * / 
 	 / *   i n   o v e r s t r i k e ,   a l l   _   w i l l   t h e n   b e   t o g e t h e r   i n   t h e   t h i r d   s t r i n g .   * / 
 	 / *     T h i s   p r i n t s   f a s t e r . 	 	 	 	               * / 
 " ! " : " ~ " 	 S E L F   B S P   " _ " ; 
 3 7 5 	 " Z "   B S P   " N " ; 
 E M -               ( P L O T   " _ "   4 ( R L F )   U N P L O T   2 ( " _ " )   B S P   P L O T   4 ( L F )   U N P L O T   " _ " ) = 1 2 ; 
 E N -               ( P L O T   4 ( R L F )   " _ "   4 ( L F )   U N P L O T   " _ " ) = 6 ; 
 
 2 4 0 	 	 	 	 / *   " p r i n t i n g "   \ 0 4 0   * /   
   ( P L O T   B S P   " [ "   2 ( S P )   " ] "   B S P   U N P L O T   S P ) = 6 ; 
 ' ' 	 / * ,   6 , * /   " " " "   B S P   " _ " ; 
 ` ` 	 / * ,   6 , * /   " " " "   B S P   " _ " ; 
 
 D e f :   e t c ; 
 S T R O K E 	 0 3 0 ; 	 1 7 7 	 S E L F ; 	 2 7 7 	 " " ; 
 3 7 7   	 S P ; 	 	 / *   p u n c t u a t i o n   s p a c e   * / 
 3 7 5 	 " Z "   B S P   " N " ; 	 / *   s q u a r e   * / 
 4 1 7 	 " ( "   " T "   " M "   " ) " ; 	 / *   t r a d e m a r k   * / 
 E N   	 S P ; 
 E M   	 2 ( S P ) ; 
 E M _ 	 " _ "   " _ " ; 
 E N _ 	 " _ " ; 
 T H I N 	 ( S P ) = 3 ; 
 D E V I T 	 ( S P ) = 1 ; 
 
 D e f :   a r t ; 
 / *   M A T H   S Y M B O L S 
       1   -   [     l e f t   s q u a r e   b r a c k e t 	           |   I n   t h e   p l o t   w h i c h   f o l l o w s   e a c h   s t r i n g 
       2   -   ]     r i g h t   s q u a r e   b r a c k e t           |   y o u   w i l l   s e e   t h e s e   c h a r a c t e r s   i n   u s e : 
       3   -   {     l e f t   c u r l y   b r a c k e t 	           |         .     a   p o s i t i o n   i n   t h e   " c h a r a c t e r   s p a c e " 
       4   -   }     r i g h t   c u r l y   b r a c k e t 	           |         o     w h e r e   a   " d i t "   w i l l   a p p e a r 
       5   -   (     l e f t   p a r e n 	           |         X     i n i t i a l   p o s i t i o n   o f   p r i n t   h e a d 
       6   -   )     r i g h t   p a r e n 	           |         +     f i n a l   p o s i t i o n   o f   p r i n t   h e a d 
       7   -   |     B o o l e a n   O R 
       8   -   | |     c o n c a t e n a t e     * / 
 
 a r t   [ t p 	 	 	 	 / *   t o p   p a r t s   * /   	 
   ( P L O T   8 ( R L F )   4 ( S P )   " . "   4 ( B S P   " . " )   8 ( L F   " . " )   U N P L O T   S P ) = 6 ; 
 a r t   ] t p 	 
   ( P L O T   " . "   8 ( R L F   " . " )   4 ( B S P   " . " )   4 ( S P )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   { t p 	 
   ( P L O T   " . "   6 ( R L F   " . " )   2 ( S P R L F   " . " )   2 ( S P   " . " )   2 ( S P )   8 ( L F )   U N P L O T ) = 6 ; 
 a r t   } t p 	 
   ( P L O T   " . "   6 ( R L F   " . " )   2 ( B S P R L F   " . " )   2 ( B S P   " . " )   4 ( S P )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   l p t p 	 
   ( P L O T   " . "   6 ( R L F   " . " )   2 ( S P R L F   " . " )   2 ( S P   " . " )   2 ( S P )   8 ( L F )   U N P L O T ) = 6 ; 
 a r t   r p t p 	 
   ( P L O T   " . "   6 ( R L F   " . " )   2 ( B S P R L F   " . " )   2 ( B S P   " . " )   4 ( S P )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   | t p 	 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   | | t p 	 
   ( P L O T   2 ( B S P )     " . "   8 ( R L F   " . " )   3 ( S P )     " . "   8 ( L F   " . " )   B S P   U N P L O T   S P ) = 6 ; 
 
 a r t   [ h t 	 	 	 	 / *   h a l f - t o p   p a r t s   * / 
   ( P L O T   " . "   4 ( R L F   " . " )   4 ( S P   " . " )   2 ( S P L F )   2 ( L F )   U N P L O T ) = 6 ; 
 a r t   ] h t 	 
   ( P L O T   " . "   4 ( R L F   " . " )   4 ( B S P   " . " )   4 ( S P L F )   U N P L O T   S P ) = 6 ; 
 a r t   { h t 	 
   ( P L O T   " . "   2 ( R L F   " . " )   2 ( S P R L F   " . " )   2 ( S P   " . " )   2 ( S P L F )   2 ( L F )   U N P L O T ) = 6 ; 
 a r t   } h t 	 
   ( P L O T   " . "   2 ( R L F   " . " )   2 ( B S P R L F   " . " )   2 ( B S P   " . " )   4 ( S P L F )   U N P L O T   S P ) = 6 ; 
 a r t   l p h t 	 
   ( P L O T   " . "   2 ( R L F   " . " )   2 ( S P R L F   " . " )   2 ( S P   " . " )   2 ( S P L F )   2 ( L F )   U N P L O T ) = 6 ; 
 a r t   r p h t 	 
   ( P L O T   " . "   2 ( R L F   " . " )   2 ( B S P R L F   " . " )   2 ( B S P   " . " )   4 ( S P L F )   U N P L O T   S P ) = 6 ; 
 a r t   | h t 	 
   ( P L O T   " . "   4 ( R L F   " . " )   4 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   | | h t 	 
   ( P L O T   2 ( B S P )     " . "   4 ( R L F   " . " )   3 ( S P )     " . "   4 ( L F   " . " )   B S P   U N P L O T   S P ) = 6 ; 
 
 a r t   [ m d 	 	 	 	 / *   m i d d l e   p a r t s   * / 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   ] m d 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   { m d 
   ( P L O T   " . "   2 ( R L F   " . " )   2 ( B S P R L F   " . " )   2 ( S P R L F   " . " )   2 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   } m d 
   ( P L O T   " . "   2 ( R L F   " . " )   2 ( S P R L F   " . " )   2 ( B S P R L F   " . " )   2 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   l p m d 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   r p m d 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   | m d 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   | | m d 
   ( P L O T   2 ( B S P )     " . "   8 ( R L F   " . " )   3 ( S P )     " . "   8 ( L F   " . " )   5 ( S P )   U N P L O T ) = 6 ; 
 
 a r t   [ h b 	 	 	 	 / *   h a l f - b o t t o m   p a r t s   * / 
   ( P L O T   4 ( S P L F )   " . "   4 ( B S P   " . " )   4 ( R L F   " . " )   U N P L O T ) = 0 ; 
 a r t   ] h b 
   ( P L O T   4 ( B S P L F )   " . "   4 ( S P   " . " )   4 ( R L F   " . " )   U N P L O T ) = 0 ; 
 a r t   { h b 
   ( P L O T   4 ( S P L F )   " . "   2 ( B S P   " . " )   2 ( B S P R L F   " . " )   2 ( R L F   " . " )   U N P L O T ) = 0 ; 
 a r t   } h b 
   ( P L O T   4 ( B S P L F )   " . "   2 ( S P   " . " )   2 ( S P R L F   " . " )   2 ( R L F   " . " )   U N P L O T ) = 0 ; 
 a r t   l p h b 
   ( P L O T   4 ( S P L F )   " . "   2 ( B S P   " . " )   2 ( B S P R L F   " . " )   2 ( R L F   " . " )   U N P L O T ) = 0 ; 
 a r t   r p h b 
   ( P L O T   4 ( B S P L F )   " . "   2 ( S P   " . " )   2 ( S P R L F   " . " )   2 ( R L F   " . " )   U N P L O T ) = 0 ; 
 a r t   | h b 
   ( P L O T   4 ( L F )   " . "   4 ( R L F   " . " )   U N P L O T ) = 0 ; 
 a r t   | | h b 
   ( P L O T   2 ( B S P L F )   2 ( L F )   " . "   4 ( R L F   " . " )   3 ( S P )   " . "   4 ( L F   " . " )   B S P R L F   3 ( R L F )   U N P L O T ) = 0 ; 
 
 a r t   [ b t 	 	 	 	 / *   b o t t o m   p a r t s   * / 
   ( P L O T   4 ( S P )   " . "   4 ( B S P   " . " )   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   ] b t 
   ( P L O T   4 ( B S P )   " . "   4 ( S P   " . " )   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   { b t 
   ( P L O T   4 ( S P )   " . "   2 ( B S P   " . " )   2 ( B S P R L F   " . " )   6 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   } b t 
   ( P L O T   4 ( B S P )   " . "   2 ( S P   " . " )   2 ( S P R L F   " . " )   6 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   l p b t 
   ( P L O T   4 ( S P )   " . "   2 ( B S P   " . " )   2 ( B S P R L F   " . " )   6 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   r p b t 
   ( P L O T   4 ( B S P )   " . "   2 ( S P   " . " )   2 ( S P R L F   " . " )   6 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   | b t 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   | | b t 
   ( P L O T   2 ( B S P )     " . "   8 ( R L F   " . " )   3 ( S P )     " . "   8 ( L F   " . " )   5 ( S P )   U N P L O T ) = 6 ; 
 
 a r t   [ f l 	 	 	 	 / *   f i l l e r   p a r t s   * / 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   ] f l 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   { f l 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   } f l 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   l p f l 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   r p f l 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   | f l 
   ( P L O T   " . "   8 ( R L F   " . " )   8 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   | | f l 
   ( P L O T   2 ( B S P )     " . "   8 ( R L F   " . " )   3 ( S P )     " . "   8 ( L F   " . " )   5 ( S P )   U N P L O T ) = 6 ; 
 
 a r t   [ 	 	 	 	 / *   o n e - h i g h s   * / 
   ( P L O T   4 ( S P L F )   " . "   4 ( B S P   " . " )   1 2 ( R L F   " . " )   4 ( S P   " . " )   6 ( L F )   2 ( S P L F )   U N P L O T ) = 6 ; 
 a r t   ] 
   ( P L O T   4 ( B S P L F )   " . "   4 ( S P   " . " )   1 2 ( R L F   " . " )   4 ( B S P   " . " )   8 ( S P L F )   2 ( S P )   U N P L O T ) = 6 ; 
 a r t   { 
   ( P L O T   4 ( S P L F )   " . "   2 ( B S P   " . " )   2 ( B S P R L F   " . " )   2 ( R L F   " . " )   2 ( B S P R L F   " . " )   2 ( S P R L F   " . " )   2 ( R L F   " . " )   2 ( S P R L F   " . " )   2 ( S P   " . " )   4 ( L F )   2 ( S P L F )   2 ( L F )   U N P L O T ) = 6 ; 
 a r t   } 
   ( P L O T   4 ( B S P L F )   " . "   2 ( S P   " . " )   2 ( S P R L F   " . " )   2 ( R L F   " . " )   2 ( S P R L F   " . " )   2 ( B S P R L F   " . " )   2 ( R L F   " . " )   2 ( B S P R L F   " . " )   2 ( B S P   " . " )   4 ( L F )   4 ( S P L F )   6 ( S P )   U N P L O T ) = 6 ; 
 a r t   ( 
   ( P L O T   4 ( S P L F )   " . "   2 ( B S P   " . " )   2 ( B S P R L F   " . " )   8 ( R L F   " . " )   2 ( S P R L F   " . " )   2 ( S P   " . " )   4 ( L F )   2 ( S P L F )   2 ( L F )   U N P L O T ) = 6 ; 
 a r t   ) 
   ( P L O T   4 ( B S P L F )   " . "   2 ( S P   " . " )   2 ( S P R L F   " . " )   8 ( R L F   " . " )   2 ( B S P R L F   " . " )   2 ( B S P   " . " )   4 ( L F )   4 ( S P L F )   6 ( S P )   U N P L O T ) = 6 ; 
 a r t   | 
   ( P L O T   4 ( L F )   " . "   1 2 ( R L F   " . " )   4 ( L F )   4 ( S P L F )   2 ( S P )   U N P L O T ) = 6 ; 
 a r t   | | 
   ( P L O T   2 ( B S P L F )   2 ( L F )   " . "   1 2 ( R L F   " . " )   3 ( S P )   " . "   1 2 ( L F   " . " )   4 ( S P R L F )   S P   U N P L O T ) = 6 ; 
 a r t   o 
   ( P L O T   B S P   " . "   2 ( S P   " . " )   S P R L F   " . "   4 ( B S P   " . " )   R L F   " . "   4 ( S P   " . " )   B S P R L F   " . "   2 ( B S P   " . " )   3 ( S P L F )   4 ( S P )   U N P L O T ) = 6 ; 
 a r t   / 
   ( P L O T   B S P L F   2 ( B S P )   " . "   9 ( S P R L F   " . " )   4 ( L F )   4 ( L F )   U N P L O T ) = 6 ; 
 a r t   X 
   ( P L O T   2 ( B S P )   " . "   6 ( S P R L F   " . " )   6 ( B S P )   " . "   6 ( S P L F   " . " )   2 ( S P )   U N P L O T ) = 6 ; 
 a r t   d 
   ( P L O T   B S P   " . "   4 ( S P R L F   " . " )   4 ( L F )   " . "   4 ( B S P R L F   " . " )   B S P L F   L F   " . "   6 ( S P   " . " )   2 ( S P L F )   U N P L O T ) = 6 ; 
 a r t   m 
   ( P L O T   2 ( L F )   " . "   8 ( R L F   " . " )   S P   " . "   8 ( L F   " . " )   2 ( S P R L F )   3 ( S P )   U N P L O T ) = 6 ; 
 
 a r t   | r u l 
   ( P L O T   6 ( R L F )   " . "   8 ( L F   " . " )   2 ( R L F )   U N P L O T ) = 0 ; 
 a r t   v 
   ( P L O T   2 ( L F )     " . "   B S P R L F   " . "   2 ( S P   " . " )   S P R L F   " . "   4 ( B S P   " . " )   B S P R L F   " . "   6 ( S P   " . " )   B S P L F   2 ( B S P )   U N P L O T ) = 0 ; 
 a r t   ^ 
   ( P L O T   3 ( B S P R L F )   " . "   6 ( S P   " . " )   B S P R L F   " . "   4 ( B S P   " . " )   S P R L F   " . "   2 ( S P   " . " )   B S P R L F   " . "   6 ( L F )   U N P L O T ) = 0 ; 
 a r t   - s t r 
   ( P L O T   2 ( L F )   U N P L O T ) = 0 ; 
 a r t   - r u l 
   ( P L O T   5 ( " . "   S P   " . " )   U N P L O T ) = 6 ; 
 a r t   - s t p 
   ( P L O T   2 ( R L F )   U N P L O T ) = 0 ; 
 a r t   < - 
   ( P L O T   5 ( L F )   " . "   6 ( R L F   " . " )   B S P L F   " . "   4 ( L F   " . " )   B S P R L F   " . "   2 ( R L F   " . " )   B S P L F   " . "   2 ( S P R L F )   S P   U N P L O T ) = 0 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . o . .                           * / 
 	 / *                           X  . . o o . . +                         * / 
 	 / *                             o o o                               * / 
 	 / *                           o o o o                               * / 
 	 / *                             o o o                               * / 
 	 / *                               o o                               * / 
 	 / *                                 o                               * / 
 
 
 a r t   - > 
   ( P L O T   4 ( L F )   B S P L F   2 ( B S P )   " . "   6 ( R L F   " . " )   S P L F   " . "   4 ( L F   " . " )   S P R L F   " . "   2 ( R L F   " . " )   S P L F   " . "   2 ( S P R L F )   4 ( S P )   U N P L O T ) = 6 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                     o     . . . . . .                           * / 
 	 / *                     o o   X  . . . . . . +                         * / 
 	 / *                     o o o                                       * / 
 	 / *                     o o o o                                     * / 
 	 / *                     o o o                                       * / 
 	 / *                     o o                                         * / 
 	 / *                     o                                           * / 
 
 a r t   D ^ 
   ( P L O T   2 ( L F )     " . "   3 ( S P R L F   " . " )   3 ( S P L F   " . " )   2 ( R L F )   U N P L O T ) = 6 ; 
 a r t   D < 
   ( S P   P L O T   2 ( L F )   " . "   4 ( B S P R L F   " . " )   4 ( S P R L F   " . " )   6 ( L F )   U N P L O T ) = 6 ; 
 a r t   D > 
   ( P L O T   2 ( L F )     " . "   4 ( S P R L F   " . " )   4 ( B S P R L F   " . " )   6 ( L F )   U N P L O T   S P ) = 6 ; 
 a r t   D v 
   ( P L O T   6 ( R L F )   " . "   3 ( S P L F   " . " )   3 ( S P R L F   " . " )   6 ( L F )   U N P L O T ) = 6 ; 
 
 a r t   \ r u l 	 ( P L O T   4 ( R L F )   2 ( B S P R L F )   " . "   8 ( S P L F   " . " )   2 ( R L F )   U N P L O T ) = 6 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                       o   . . . . . .                           * / 
 	 / *                         o . . . . . .                           * / 
 	 / *                           o . . . . .                           * / 
 	 / *                           . o . . . .                           * / 
 	 / *                           . . o . . .                           * / 
 	 / *                           . . . o . .                           * / 
 	 / *                           X  . . . . o . +                         * / 
 	 / *                                     o                           * / 
 	 / *                                       o                         * / 
 
 
 a r t   / r u l 	 ( P L O T   B S P L F   L F   " . "   8 ( S P R L F   " . " )   4 ( L F )   B S P L F   L F   U N P L O T ) = 6 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .   o                       * / 
 	 / *                           . . . . . . o                         * / 
 	 / *                           . . . . . o                           * / 
 	 / *                           . . . . o .                           * / 
 	 / *                           . . . o . .                           * / 
 	 / *                           . . o . . .                           * / 
 	 / *                           X  . o . . . . +                         * / 
 	 / *                           o                                     * / 
 	 / *                         o                                       * / 
 
 
 a r t   C l f 
   ( P L O T   4 ( L F )   4 ( L F )   2 ( S P L F )   4 ( S P )   " . "   3 ( B S P   " . " )   B S P R L F   " . "   2 ( B S P   " . " )   3 ( B S P R L F   " . " )   R L F   " . "   B S P R L F   " . "   2 ( R L F   " . " )   2 ( R L F   " . " )   S P R L F   " . "   R L F   " . "   3 ( S P R L F   " . " )   2 ( S P   " . " )   S P R L F   " . "   3 ( S P   " . " )   4 ( L F )   2 ( L F )   U N P L O T ) = 6 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . o o o o                         * / 
 	 / *                           o o o . . .                           * / 
 	 / *                         o . . . . . .                           * / 
 	 / *                       o   . . . . . .                           * / 
 	 / *                     o     . . . . . .                           * / 
 	 / *                     o     . . . . . .                           * / 
 	 / *                   o       X  . . . . . . +                         * / 
 	 / *                   o                                             * / 
 	 / *                   o                                             * / 
 	 / *                   o                                             * / 
 	 / *                   o                                             * / 
 	 / *                     o                                           * / 
 	 / *                     o                                           * / 
 	 / *                       o                                         * / 
 	 / *                         o                                       * / 
 	 / *                           o o o                                 * / 
 	 / *                                 o o o o                         * / 
 
 
 a r t   C r t 
   ( P L O T   4 ( L F )   4 ( L F )   2 ( B S P L F )   4 ( B S P )   " . "   3 ( S P   " . " )   S P R L F   " . "   2 ( S P   " . " )   3 ( S P R L F   " . " )   R L F   " . "   S P R L F   " . "   2 ( R L F   " . " )   2 ( R L F   " . " )   B S P R L F   " . "   R L F   " . "   3 ( B S P R L F   " . " )   2 ( B S P   " . " )   B S P R L F   " . "   3 ( B S P   " . " )   4 ( L F )   2 ( S P L F )   1 0 ( S P )   U N P L O T ) = 6 ; 
 	 / *                           . . . . . .                           * / 
 	 / *               o o o o     . . . . . .                           * / 
 	 / *                       o o o . . . . .                           * / 
 	 / *                           . o . . . .                           * / 
 	 / *                           . . o . . .                           * / 
 	 / *                           . . . o . .                           * / 
 	 / *                           . . . o . .                           * / 
 	 / *                           X  . . . . o . +                         * / 
 	 / *                                   o                             * / 
 	 / *                                   o                             * / 
 	 / *                                   o                             * / 
 	 / *                                   o                             * / 
 	 / *                                 o                               * / 
 	 / *                                 o                               * / 
 	 / *                               o                                 * / 
 	 / *                             o                                   * / 
 	 / *                       o o o                                     * / 
 	 / *               o o o o                                           * / 
 
 a r t   c 
   ( P L O T   S P R L F   2 ( S P )   U N P L O T   " c "   P L O T   B S P   " . "   2 ( R L F   " . " )   2 ( B S P R L F   " . " )   B S P   " . "   B S P R L F   " . "   2 ( B S P   " . " )   B S P L F   " . "   B S P   " . "   2 ( B S P L F   " . " )   2 ( L F   " . " )   2 ( S P L F   " . " )   S P   " . "   S P L F   " . "   2 ( S P   " . " )   S P R L F   " . "   S P   " . "   S P R L F   " . "   5 ( S P )   U N P L O T ) = 1 2 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . o o o .                           * / 
 	 / *                           o o . . . o o                         * / 
 	 / *                         o . . . . . .   o                       * / 
 	 / *                       o   . . . . . .     o                     * / 
 	 / *                       o   . . . . . .     o                     * / 
 	 / *                       o   . . . . . .     o                     * / 
 	 / *                         o X  . . . . . .   o         +             * / 
 	 / *                           o o       o o                         * / 
 	 / *                               o o o                             * / 
 
 a r t   t 	 	 	 	 / *   t r a d e m a r k   * / 
         ( P L O T   3 ( S P )   5 ( " . "   R L F )   3 ( B S P )   " . "   6 ( S P   " . " )   5 ( L F   " . " )   2 ( R L F )   S P R L F   " . "   
         2 ( S P L F   " . " )   3 ( S P R L F   " . " )   4 ( L F   " . " )   3 ( S P )   U N P L O T ) = 1 2 ; 
                     / *               . . . . . . . . . . . . . . .                     * / 
                     / *               . . . . . . . . . . . . . . .                     * / 
                     / *               o o o o o o o . . . . . . . .                     * / 
                     / *               . . . o . . o . . . . . o . .                     * / 
                     / *               . . . o . . o o . . . o o . .                     * / 
                     / *               . . . o . . o . o . o . o . .                     * / 
                     / *               . . . o . . o . . o . . o . .                     * / 
                     / *               + . . o . . o . . . . . o . . +                   * / 
 
 / *   d a g g a r   * /   2 6 1 
   ( P L O T   " | "   R L F   " | "   2 ( R L F )     " - "   3 ( S P L F )   3 ( S P )   U N P L O T ) = 6 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           o . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           o . . . . .                           * / 
 	 / *                           o  . . . . . . +                         * / 
 
 
 / *   d o u b l e   d a g g a r   * /   3 0 1 
   ( P L O T   " | "   R L F   " | "   2 ( R L F )     " - "   4 ( L F )     " - "   S P R L F   5 ( S P )   U N P L O T ) = 6 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           o . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           o . . . . .                           * / 
 	 / *                           o  . . . . . . +                         * / 
 	 / *                           o                                     * / 
 
 
 / *   d e l   * /   3 0 4 
   ( P L O T     " / "   S P R L F   R L F     " _ "   S P   " _ "   S P L F   L F     " \ "   6 ( S P )   U N P L O T ) = 9 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . o o . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           o  . . . o . .       +                   * / 
 
 
 / *   n a b l a   * /   2 5 4 
   ( P L O T     " \ "   4 ( R L F )   2 ( S P R L F )   R L F     " _ "   S P     " _ "   4 ( L F )   2 ( S P L F )   L F     " / "   5 ( S P )   U N P L O T ) = 1 0 ; 
 	 / *                           . . o o . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           o  . . . . . o         +                 * / 
 
 a r t   b x t l 	 ( P L O T   2 ( L F )   " . "   6 ( S P   " . " )   U N P L O T ) = 6 ; 
 a r t   b x t 	 S P ; 
 a r t   b x t r 	 ( P L O T   2 ( R L F )   U N P L O T ) = 0 ; 
 
 a r t   b x l 	 ( P L O T   6 ( R L F )   " . "   8 ( L F   " . " )   6 ( S P   " . " )   U N P L O T ) = 6 ; 
 a r t   b x x 	 ( P L O T   6 ( R L F )   " . "   8 ( L F   " . " )   2 ( R L F )   U N P L O T   S P ) = 6 ; 
 a r t   b x r 	 ( P L O T   8 ( R L F )   " . "   8 ( L F   " . " )   2 ( R L F )   U N P L O T ) = 0 ; 
 
 a r t   b x b l 	 ( P L O T   6 ( R L F )   " . "   8 ( L F   " . " )   6 ( S P   " . " )   U N P L O T ) = 6 ; 
 a r t   b x b 	 ( P L O T   6 ( R L F )   " . "   8 ( L F   " . " )   2 ( R L F )   U N P L O T   S P ) = 6 ; 
 a r t   b x b r 	 ( R L F   P L O T   " . "   8 ( L F   " . " )   2 ( R L F )   U N P L O T ) = 0 ; 
 
 a r t   l z t l 	 ( P L O T   2 ( L F )   " . "   6 ( S P   " . " )   U N P L O T ) = 6 ; 
 a r t   l z t r 	 ( P L O T   6 ( S P   " . " )   4 ( B S P )   2 ( B S P R L F )   U N P L O T ) = 0 ; 
 a r t   l z l 	 ( P L O T   B S P L F   L F   " . "   8 ( S P R L F   " . " )   5 ( L F )   B S P L F   U N P L O T ) = 6 ; 
 a r t   l z r 	 ( P L O T   4 ( R L F )   2 ( B S P R L F )   " . "   8 ( S P L F   " . " )   2 ( R L F )   U N P L O T ) = 6 ; 
 a r t   l z b l 	 ( P L O T   2 ( B S P )   6 ( B S P R L F )   " . "   8 ( S P L F   " . " )   6 ( S P   " . " )   U N P L O T ) = 6 ; 
 a r t   l z b r 	 ( P L O T   6 ( S P   " . " )   8 ( S P R L F   " . " )   8 ( B S P )   6 ( B S P L F )   U N P L O T ) = 0 ; 
 
 ' ' 	 / * ,   6 , * /   " " " " ; 
 ` ` 	 / * ,   6 , * /   " " " " ; 
 
 D e f :   U C b o l d ; 
 " a "   " A " ;   " b "   " B " ;   " c "   " C " ;   " d "   " D " ;   " e "   " E " ;   " f "   " F " ;   " g "   " G " ; 
 " h "   " H " ;   " i "   " I " ;   " j "   " J " ;   " k "   " K " ;   " l "   " L " ;   " m "   " M " ;   " n "   " N " ; 
 " o "   " O " ;   " p "   " P " ;   " q "   " Q " ;   " r "   " R " ;   " s "   " S " ;   " t "   " T " ;   " u "   " U " ; 
 " v "   " V " ;   " w "   " W " ;   " x "   " X " ;   " y "   " Y " ;   " z "   " Z " ; 
 
 D e f :   O S b o l d ; 
 " ! " : " ~ "   S E L F   B S P   S E L F   B S P   S E L F ; 
 
 D e f :   O S b o l d i t a l ; 
 " ! " : " ^ "   S E L F   B S P   S E L F   B S P   S E L F   B S P   " _ " ; 
 " _ "   S E L F   B S P   S E L F   B S P   S E L F ; 
 " ` " : " ~ "   S E L F   B S P   S E L F   B S P   S E L F   B S P   " _ " ; 
 
 F o n t :   a s c 1 0   v A S C 1 0 ; 
 r e f : 	 a s c i i ; 	 r e f : 	 e t c ; 	 r e f : 	 a r t ; 
 E N -   " - " ; 
 E M -   ( P L O T   3 ( " - "   4 ( S P ) )   U N P L O T ) = 1 2 ; 
 E M _   ( P L O T   R L F   R L F   2 ( " _ "   5 ( S P ) )   L F   L F   U N P L O T   ) = 1 2 ; 
 E N _   ( P L O T   R L F   R L F   " _ "   L F   L F   U N P L O T   S P ) = 6 ; 
 4 2 2   " " " " ; 
 4 2 1   " " " " ; 
 
 ' ' 	 / * * /   " " " " ; 
 ` ` 	 / * * /   " " " " ; 
 2 4 0 	 	 / *   " p r i n t i n g "   \ 0 4 0   * /   
   ( P L O T   B S P     " [ "   2 ( S P )     " ] "   5 ( S P )   U N P L O T ) = 6 ; 
 
 F o n t :   a p l   v A P L 1 0 ; 
 r e f : 	 a s c i i ; 	 r e f : 	 e t c ; 	 r e f : 	 a r t ; 
 
 F o n t :   A S C 1 0   v A S C 1 0 ; 
 r e f :   a s c i i ;       r e f :   e t c ;       r e f :   a r t ;       r e f :   U C b o l d ; 
 
 F o n t :   A S C 1 0 O S   v A S C 1 0 ; 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 	 r e f : 	 O S b o l d ; 
 
 F o n t :   a s c 1 0 _   v A S C 1 0 ; 	 / *   p i c k   a l l   t h e   a r t w o r k   * / 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 
 	 / *   a l l   o v e r s t r i k e s   w i l l   h a v e   u n d e r s c o r e   l a s t   t o   o p t i m i z e   d a i s y           * / 
 	 / *   w h e e l   m o t i o n .   h y t e r m _ w r i t e r _   w i l l   s e p a r a t e   u n d e r s c o r e d   p a r t s       * / 
 	 / *   i n t o   t h r e e   s t r i n g s   w i t h   a l l   B S P   t o g e t h e r .     B y   p l a c i n g   _   l a s t         * / 
 	 / *   i n   o v e r s t r i k e ,   a l l   _   w i l l   t h e n   b e   t o g e t h e r   i n   t h e   t h i r d   s t r i n g .   * / 
 	 / *     T h i s   p r i n t s   f a s t e r . 	 	 	 	               * / 
 " ! " : " ~ " 	 / * ,   6 , * /   S E L F   B S P   " _ " ; 
 3 7 5 	 / * ,   6 , * /   " Z "   B S P   " N " ; 
 E M - 	 
   ( P L O T   3 ( " - "   4 ( S P ) )   U N P L O T   2 ( B S P )   P L O T   2 ( " _ "   5 ( S P ) )   U N P L O T ) = 1 2 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           X  . . . . . .             +             * / 
 
 E N - 	 " - "   B S P   " _ " ; 
 
 2 4 0 	 	 / *   " p r i n t i n g "   \ 0 4 0   * /   
   ( P L O T   B S P     " [ "   2 ( S P )     " ] "   5 ( S P )   U N P L O T ) = 6 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                         o X  . o . . . . +                         * / 
 
 ' ' 	 / * ,   6 , * /   " " " "   B S P   " _ " ; 
 ` ` 	 / * ,   6 , * /   " " " "   B S P   " _ " ; 
 
 F o n t :   A S C 1 0 _   v A S C 1 0 ; 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 	 r e f : 	 a s c i i _ ; 
 " a "   1 0 1   B S P   " _ " ; 	 " b "   " B "   B S P   " _ " ; 	 " c "   " C "   B S P   " _ " ; 	 " d "   " D "   B S P   " _ " ; 	 
 " e "   " E "   B S P   " _ " ; 	 " f "   " F "   B S P   " _ " ; 	 " g "   " G "   B S P   " _ " ; 	 " h "   " H "   B S P   " _ " ; 	 
 " i "   " I "   B S P   " _ " ; 	 " j "   " J "   B S P   " _ " ; 	 " k "   " K "   B S P   " _ " ; 	 " l "   " L "   B S P   " _ " ; 	 
 " m "   " M "   B S P   " _ " ; 	 " n "   " N "   B S P   " _ " ; 	 " o "   " O "   B S P   " _ " ; 	 " p "   " P "   B S P   " _ " ; 	 
 " q "   " Q "   B S P   " _ " ; 	 " r "   " R "   B S P   " _ " ; 	 " s "   " S "   B S P   " _ " ; 	 " t "   " T "   B S P   " _ " ; 	 
 " u "   " U "   B S P   " _ " ; 	 " v "   " V "   B S P   " _ " ; 	 " w "   " W "   B S P   " _ " ; 	 " x "   " X "   B S P   " _ " ; 
 " y "   " Y "   B S P   " _ " ; 	 " z "   " Z "   B S P   " _ " ; 	 
 
 F o n t :   A S C 1 0 _ O S   v A S C 1 0 ; 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 	 r e f : 	 O S b o l d i t a l ; 
 
 F o n t :   a s c 1 2   v A S C 1 2 ; 
 r e f : 	 a s c i i ; 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 
 E N -   " - " ; 
 E M -   ( P L O T   3 ( " - "   3 ( S P ) )   S P   U N P L O T ) = 1 0 ; 
 
 2 4 0 	 	 / *   " p r i n t i n g "   \ 0 4 0   * /   
   ( P L O T   B S P     " [ "   2 ( S P )     " ] "   5 ( S P )   U N P L O T ) = 6 ; 
 
 F o n t :   A S C 1 2   v A S C 1 2 ; 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 	 r e f : 	 U C b o l d ; 
 
 F o n t :   a s c 1 2 _   v A S C 1 2 ; 	 / *   p i c k   a l l   t h e   a r t w o r k   * / 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 
 " ! " : " ~ " 	   S E L F   B S P   " _ " ; 
 3 7 5 	   " Z "   B S P   " N " ; 
 E M -   ( P L O T   3 ( " - "   3 ( S P ) )   S P   U N P L O T   2 ( B S P )   2 ( " _ " ) ) = 1 0 ; 
 E N - 	   " - "   B S P   " _ " ; 
 
 2 4 0 	 	 / *   " p r i n t i n g "   \ 0 4 0   * /   
   ( P L O T   B S P     " [ "   2 ( S P )     " ] "   4 ( S P )   U N P L O T ) = 5 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                         o X  . o  . . . . _  .                           * / 
 
 
 ' ' 	   " " " "   B S P   " _ " ; 
 ` ` 	   " " " "   B S P   " _ " ; 
 
 F o n t :   A S C 1 2 _   v A S C 1 2 ; 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 
 " a "   " A "   B S P   " _ " ; 
 " b "   " B "   B S P   " _ " ; 
 " c "   " C "   B S P   " _ " ; 
 " d "   " D "   B S P   " _ " ; 
 " e "   " E "   B S P   " _ " ; 
 " f "   " F "   B S P   " _ " ; 
 " g "   " G "   B S P   " _ " ; 
 " h "   " H "   B S P   " _ " ; 
 " i "   " I "   B S P   " _ " ; 
 " j "   " J "   B S P   " _ " ; 
 " k "   " K "   B S P   " _ " ; 
 " l "   " L "   B S P   " _ " ; 
 " m "   " M "   B S P   " _ " ; 
 " n "   " N "   B S P   " _ " ; 
 " o "   " O "   B S P   " _ " ; 
 " p "   " P "   B S P   " _ " ; 
 " q "   " Q "   B S P   " _ " ; 
 " r "   " R "   B S P   " _ " ; 
 " s "   " S "   B S P   " _ " ; 
 " t "   " T "   B S P   " _ " ; 
 " u "   " U "   B S P   " _ " ; 
 " v "   " V "   B S P   " _ " ; 
 " w "   " W "   B S P   " _ " ; 
 " x "   " X "   B S P   " _ " ; 
 " y "   " Y "   B S P   " _ " ; 
 " z "   " Z "   B S P   " _ " ; 
 
 F o n t :   a s c 1 5   v A S C 1 5 ; 
 r e f : 	 a s c i i ; 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 
 
 ` `   ( P L O T   B S P   " ` "   3 ( S P )   " ` "   2 ( S P )   U N P L O T ) = 4 ; 
 ' '   ( P L O T   B S P   " ' "   3 ( S P )   " ' "   2 ( S P )   U N P L O T ) = 4 ; 
 E M -   ( P L O T   2 ( " - "   4 ( S P ) )   U N P L O T ) = 8 ; 
 E N -   " - " ; 
 
 2 4 0 	 	 / *   " p r i n t i n g "   \ 0 4 0   * /   
   ( P L O T   B S P     " [ "   2 ( S P )     " ] "   3 ( S P )   U N P L O T ) = 4 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                         o X  . o  . . . _  . .                           * / 
 
 
 
 F o n t :   A S C 1 5   v A S C 1 5 ; 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 	 r e f : 	 U C b o l d ; 
 
 F o n t :   a s c 1 5 _   v A S C 1 5 ; 	 / *   p i c k   a l l   t h e   a r t w o r k   * / 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 
 " ! " : " ~ "     S E L F   B S P   " _ " ; 
 ' '     " " " "   B S P   " _ " ; 
 E M _   2 ( " _ " ) ; 
 E N _     " _ " ; 
 3 7 5     " Z "   B S P   " N " ; 
 E M -   ( P L O T   2 ( " - "   4 ( S P ) )   U N P L O T   2 ( B S P )   2 ( " _ " ) ) = 8 ; 
 E N -   " - "   B S P   " _ " ; 
 
 2 4 0 	 	 / *   " p r i n t i n g "   \ 0 4 0   * /   
   ( P L O T   B S P     " [ "   2 ( S P )     " ] "   3 ( S P )   U N P L O T ) = 4 ; 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                           . . . . . .                           * / 
 	 / *                         o X  . o  . . . _  . .                           * / 
 
 
 ` `     " " " "   B S P   " _ " ; 
 F o n t :   A S C 1 5 _   v A S C 1 5 ; 
 " a "   1 0 1   B S P   " _ " ; 
 " b "   " B "   B S P   " _ " ; 
 " c "   " C "   B S P   " _ " ; 
 " d "   " D "   B S P   " _ " ; 
 " e "   " E "   B S P   " _ " ; 
 " f "   " F "   B S P   " _ " ; 
 " g "   " G "   B S P   " _ " ; 
 " h "   " H "   B S P   " _ " ; 
 " i "   " I "   B S P   " _ " ; 
 " j "   " J "   B S P   " _ " ; 
 " k "   " K "   B S P   " _ " ; 
 " l "   " L "   B S P   " _ " ; 
 " m "   " M "   B S P   " _ " ; 
 " n "   " N "   B S P   " _ " ; 
 " o "   " O "   B S P   " _ " ; 
 " p "   " P "   B S P   " _ " ; 
 " q "   " Q "   B S P   " _ " ; 
 " r "   " R "   B S P   " _ " ; 
 " s "   " S "   B S P   " _ " ; 
 " t "   " T "   B S P   " _ " ; 
 " u "   " U "   B S P   " _ " ; 
 " v "   " V "   B S P   " _ " ; 
 " w "   " W "   B S P   " _ " ; 
 " x "   " X "   B S P   " _ " ; 
 " y "   " Y "   B S P   " _ " ; 
 " z "   " Z "   B S P   " _ " ; 
 
 F o n t :   A S C 1 5 O S   v A S C 1 5 ; 
 w o r d s p a c e :   2 , 4 , 8 , S P ; 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 	 r e f : 	 O S b o l d ; 
 
 F o n t :   A S C 1 5 _ O S   v A S C 1 5 ; 
 w o r d s p a c e :   2 , 4 , 8 , S P ; 
 r e f : 	 e t c ; 	 r e f : 	 a r t ; 	 r e f : 	 O S b o l d i t a l ; 
 
 F o n t :   e l i t e   v A S C 1 2 ; 
 F o n t :   e l i t e _   v A S C 1 2 ; 
 F o n t :   E L I T E   v A S C 1 2 ; 
 F o n t :   E L I T E _   v A S C 1 2 ; 
 F o n t :   e l i t e 1 5   v A S C 1 5 ; 
 F o n t :   e l i t e 1 5 _   v A S C 1 5 ; 
 F o n t :   E L I T E 1 5   v A S C 1 5 ; 
 F o n t :   E L I T E 1 5 _   v A S C 1 5 ; 
 
 
 S i z e :   o n e s i z e ,   7 . 2 ; 
 M i n L e a d :   1 . 5 ; 
 M i n S p a c e :   1 . 2 ; 
 M a x P a g e W i d t h :   9 5 0 . 4 ; 
 O u t p r o c :   h y t e r m _ w r i t e r _ ; 
 D e f a u l t M a r g s :   4 8 , 2 4 , 2 4 , 4 8 ; 
 C l e a n u p :   U N P L O T   0 3 3   0 3 7   0 1 5   0 3 3   0 3 6   0 1 1 ; 
 C o m m e n t : 
 "   T y p e   W h e e l   I d e n t i f i c a t i o n 
   1   -   3 8 1 0 1 - 0 1 	 P I C A   1 0 
   2   -   3 8 5 1 0 	 A P L   1 0 
   3   -   3 8 1 0 2 - 0 1 	 E L I T E   1 2 
 D B :   h y t e r m _ w r i t e r _ $ d i s p l a y 
 " ; 
 D e v N a m e :   " h y t e r m " ; 
 D e v C l a s s :   " d i a b l o " ; 
 I n t e r l e a v e :   o n ; 
 
 D e v i c e :   h y t e r m ,   H Y T E R M ,   d i a b l o 1 6 2 0 ; 	 i n i t :   t e x t   7 . 2 ; 
 v i e w s e l e c t :   v A S C 1 0   P w h e e l   H M I 6   W 6 , 
 	     v A S C 1 2   E w h e e l   H M I 5   W 5 , 
 	     v A S C 1 5   P w h e e l   H M I 4   W 4 , 
 	     v A P L 1 0   A w h e e l   H M I 6   W 6 ; 
 a t t a c h :   " s y n _   u s e r _ o u t p u t " ; 
 
 f a m i l y : 	 c e n t u r y s c h o o l b o o k ,   c s , 	 h e l v e t i c a ,   h ; 
     m e m b e r :   / m e d i u m ,   / m ,   / , 	 / r o m a n ,   / r 	 a s c 1 0 ; 
     m e m b e r :   / i t a l i c ,   / i , 	 / m e d i u m i t a l i c ,   / m i 	 a s c 1 0 _ ; 
     m e m b e r :   / b o l d ,   / b , 	 / b o l d r o m a n ,   / b r 	 A S C 1 0 O S ; 
     m e m b e r :   / b o l d i t a l i c ,   / b i 	 	 	 A S C 1 0 _ O S ; 
 
 f a m i l y : 	 p i c a 1 0 ; 
       m e m b e r :   / m e d i u m ,   / m ,   / , 	 / r o m a n ,   / r 	 a s c 1 0 ; 
       m e m b e r :   / i t a l i c ,   / i , 	 / m e d i u m i t a l i c ,   / m i 	 a s c 1 0 _ ; 
       m e m b e r :   / b o l d ,   / b , 	 / b o l d r o m a n ,   / b r 	 A S C 1 0 O S ; 
       m e m b e r :   / b o l d i t a l i c ,   / b i 	 	 	 A S C 1 0 _ O S ; 
       m e m b e r :         / c a p s 	 	 A S C 1 0 ; 
       m e m b e r :         / c a p s _ 	 A S C 1 0 _ ; 
 
 b a c h e l o r :   a s c i i ,   l 4 f o n t ,   l 3 e x a c t ,   l 4 e x a c t ,   t e x t ,   f o o t n o t e ,   f o o t r e f 	 a s c 1 0 ; 
 b a c h e l o r :   l 0 e x a c t ,   C S R ,   H R ,   t y p ,   s m a l l _ t y p ,   a s c i i 9 	 	 a s c 1 0 ; 
 b a c h e l o r :   l 0 f o n t ,   l 3 f o n t ,   A S C I I 	 	 	 	 A S C 1 0 ; 
 b a c h e l o r :   b o l d ,   C S B R ,   H B R ,   H B B l 	 	 	 	 A S C 1 0 O S ; 
 b a c h e l o r :   i t a l i c ,   l 2 f o n t ,   l 1 e x a c t ,   l 2 e x a c t ,   C S I ,   H m I ,   a s c i i _ 	 a s c 1 0 _ ; 
 b a c h e l o r :   l 1 f o n t ,   A S C I I _ 	 	 	 	 	 A S C 1 0 _ ; 
 b a c h e l o r :   C S B I ,   H B I ,   b o l d i t a l i c 	 	 	 	 A S C 1 0 _ O S ; 
 b a c h e l o r :   a p l ,   A P L   	 	 	 	 	 	 a p l ; 
 
 f a m i l y : 	 p i c a _ 1 2 ; 
       m e m b e r :   / m e d i u m ,   / m ,   / , 	 / r o m a n ,   / r 	 a s c 1 2 ; 
       m e m b e r :   / i t a l i c ,   / i , 	 / m e d i u m i t a l i c ,   / m i 	 a s c 1 2 _ ; 
       m e m b e r :   / b o l d ,   / b , 	 / b o l d r o m a n ,   / b r 	 A S C 1 2 ; 
       m e m b e r :   / b o l d i t a l i c ,   / b i 	 	 	 A S C 1 2 _ ; 
       m e m b e r :         / c a p s 	 	 A S C 1 2 ; 
       m e m b e r :         / c a p s _ 	 A S C 1 2 _ ; 
 
 b a c h e l o r : 	 p i c a 1 2 	 a s c 1 2 ; 
 b a c h e l o r : 	 p i c a 1 2 _ 	 a s c 1 2 _ ; 
 b a c h e l o r : 	 P I C A 1 2 	 A S C 1 2 ; 
 b a c h e l o r : 	 P I C A 1 2 _ 	 A S C 1 2 _ ; 
 
 D e v i c e :   h y t e r m _ d r a f t ; 	 i n i t :   t e x t   7 . 2 ; 
 v i e w s e l e c t :   v A S C 1 0   P w h e e l   H M I 6   W 6 , 
 	     v A S C 1 2   E w h e e l   H M I 5   W 5 , 
 	     v A S C 1 5   P w h e e l   H M I 4   W 4 , 
 	     v A P L 1 0   A w h e e l   H M I 6   W 6 ; 
 a t t a c h :   " s y n _   u s e r _ o u t p u t " ; 
 
 f a m i l y : 	 c e n t u r y s c h o o l b o o k ,   c s , 	 h e l v e t i c a ,   h ; 
     m e m b e r :   / m e d i u m ,   / m ,   / , 	 / r o m a n ,   / r 	 a s c 1 0 ; 
     m e m b e r :   / i t a l i c ,   / i , 	 / m e d i u m i t a l i c ,   / m i 	 a s c 1 0 _ ; 
     m e m b e r :   / b   , / b o l d , 	 / b o l d r o m a n ,   / b r 	 A S C 1 0 O S ; 
     m e m b e r :   / b i , / b o l d i t a l i c 	 	 	 A S C 1 0 _ O S ; 
 
 f a m i l y : 	 p i c a 1 0 ,   p i c a ; 
       m e m b e r :   / m e d i u m ,   / m ,   / , 	 / r o m a n ,   / r 	 a s c 1 0 ; 
       m e m b e r :   / i t a l i c ,   / i , 	 / m e d i u m i t a l i c ,   / m i 	 a s c 1 0 _ ; 
       m e m b e r :   / b o l d ,   / b , 	 / b o l d r o m a n ,   / b r 	 A S C 1 0 O S ; 
       m e m b e r :   / b o l d i t a l i c ,   / b i 	 	 	 A S C 1 0 _ O S ; 
       m e m b e r :         / c a p s 	 	 A S C 1 0 ; 
       m e m b e r :         / c a p s _ 	 A S C 1 0 _ ; 
 
 b a c h e l o r :   t e x t ,   f o o t n o t e ,   f o o t r e f ,   C S R ,   H R ,   a s c i i ,   t y p ,   s m a l l _ t y p ,   a s c i i 9 	 a s c 1 0 ; 
 b a c h e l o r :   l 0 e x a c t 	 	 	 	 	 	 a s c 1 0 ; 
 b a c h e l o r :   l 0 f o n t ,   A S C I I 	 	 	 	 	 A S C 1 0 ; 
 b a c h e l o r :   b o l d ,   C S B R ,   H B R ,   H B B l ,   l 4 f o n t ,   l 3 e x a c t ,   l 4 e x a c t 	 	 A S C 1 0 O S ; 
 b a c h e l o r :   i t a l i c ,   l 2 f o n t ,   l 1 e x a c t ,   l 2 e x a c t ,   C S I ,   H m I ,   a s c i i _ 	 a s c 1 0 _ ; 
 b a c h e l o r :   l 1 f o n t ,   A S C I I _ 	 	 	 	 	 A S C 1 0 _ ; 
 b a c h e l o r :   C S B I ,   H B I ,   l 3 f o n t ,   b o l d i t a l i c 	 	 	 	 A S C 1 0 _ O S ; 
 b a c h e l o r :   a p l ,   A P L   	 	 	 	 	 	 a p l ; 
 
 f a m i l y : 	 p i c a _ 1 2 ; 
       m e m b e r :   / m e d i u m ,   / m ,   / , 	 / r o m a n ,   / r 	 a s c 1 2 ; 
       m e m b e r :   / i t a l i c ,   / i , 	 / m e d i u m i t a l i c ,   / m i 	 a s c 1 2 _ ; 
       m e m b e r :   / b o l d ,   / b , 	 / b o l d r o m a n ,   / b r 	 A S C 1 2 ; 
       m e m b e r :   / b o l d i t a l i c ,   / b i 	 	 	 A S C 1 2 _ ; 
       m e m b e r :         / c a p s 	 	 A S C 1 2 ; 
       m e m b e r :         / c a p s _ 	 A S C 1 2 _ ; 
 
 b a c h e l o r : 	 p i c a 1 2 	 a s c 1 2 ; 
 b a c h e l o r : 	 p i c a 1 2 _ 	 a s c 1 2 _ ; 
 b a c h e l o r : 	 P I C A 1 2 	 A S C 1 2 ; 
 b a c h e l o r : 	 P I C A 1 2 _ 	 A S C 1 2 _ ; 
 
 D e v i c e :   v h y t ; 	 	 i n i t :   t e x t   7 . 2 ; 
 v i e w s e l e c t :   v A S C 1 2   E w h e e l   H M I 5   W 5 , 
 	     v A S C 1 5   P w h e e l   H M I 4   W 4 ; 
 d e v n a m e :   " v h y t " ; 
 d e v c l a s s :   " p h o t o c o m p " ; 
 a t t a c h :   " s y n _   u s e r _ o u t p u t " ; 
 
 f a m i l y : 	 c e n t u r y s c h o o l b o o k ,   c s ; 
     m e m b e r : 	 / m e d i u m ,   / m ,   / , 	 / r o m a n ,   / r 	 a s c 1 5 ; 
     m e m b e r : 	 / i t a l i c ,   / i , 	 / m e d i u m i t a l i c ,   / m i 	 a s c 1 5 _ ; 
     m e m b e r : 	 / b o l d ,   / b , 	 / b o l d r o m a n ,   / b r 	 A S C 1 5 ; 
     m e m b e r : 	 / b o l d i t a l i c ,   / b i 	 	 	 A S C 1 5 _ ; 
 
 b a c h e l o r : 	 C S R ,   H R ,   t e x t ,   l 4 f o n t ,   f o o t n o t e ,   f o o t r e f ,   l 0 e x a c t 	 	 a s c 1 5 ; 
 b a c h e l o r : 	 l 3 f o n t ,   b o l d ,   C S B R ,   H B R ,   H B B l 	 	 	 	 A S C 1 5 O S ; 
 b a c h e l o r : 	 i t a l i c ,   l 2 f o n t ,   C S I ,   H m I 	 	 	 	 a s c 1 5 _ ; 
 b a c h e l o r : 	 l 0 f o n t ,   l 1 f o n t ,   C S B I ,   H B I ,   b o l d i t a l i c 	 	 	 A S C 1 5 _ O S ; 
 
 f a m i l y : 	 p i c a ; 
       m e m b e r :   / m e d i u m ,   / m ,   / , 	 / r o m a n ,   / r 	 a s c 1 2 ; 
       m e m b e r :   / i t a l i c ,   / i , 	 / m e d i u m i t a l i c ,   / m i 	 a s c 1 2 _ ; 
       m e m b e r :   / b o l d ,   / b , 	 / b o l d r o m a n ,   / b r 	 A S C 1 2 ; 
       m e m b e r :   / b o l d i t a l i c ,   / b i 	 	 	 A S C 1 2 _ ; 
       m e m b e r :         / c a p s 	 	 A S C 1 2 ; 
       m e m b e r :         / c a p s _ 	 A S C 1 2 _ ; 
 
 b a c h e l o r : 	 p i c a 1 2 ,     a s c i i 	 	 	 a s c 1 2 ; 
 b a c h e l o r : 	 p i c a 1 2 _ ,   a s c i i _ 	 	 	 a s c 1 2 _ ; 
 b a c h e l o r : 	 P I C A 1 2 ,     A S C I I 	 	 	 A S C 1 2 ; 
 b a c h e l o r : 	 P I C A 1 2 _ ,   A S C I I _ 	 	 	 A S C 1 2 _ ; 
 
 D e v i c e :   n e c 5 5 2 5 ,   s p i n w r i t e r   l i k e   h y t e r m ; 
 d e v n a m e :   " n e c 5 5 2 5 " ; 
      
 
 
  
 	 	         h y t e r m _ w r i t e r _ . p l 1                             0 4 / 2 3 / 8 5     1 2 5 7 . 6 r   w   0 4 / 2 3 / 8 5     1 1 2 3 . 2             5 2 8 7 5 0     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   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   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u p p o r t   r o u t i n e   t o   w r i t e   o u t p u t   t o   h y t e r m   t e r m i n a l s   ( c l a s s   d i a b l o )   * / 
 
 / * 	 	 	           P R E F A C E 
 / *   T h i s   p r o g r a m   h a n d l e s   l e n g t h   a n d   d i s t a n c e   v a l u e s   i n   " p i c t u r e   e l e m e n t s " 
 / *   ( p i x e l s ) .   T h e s e   a r e   t h e   n a t i v e   u n i t s   i n   t h e   m a c h i n e   a n d ,   s o o n e r   o r   l a t e r , 
 / *   a l l   i n t e r n a l   l e n g t h   a n d   d i s t a n c e   v a l u e s   h a v e   t o   b e   c o n v e r t e d   t o   p i x e l s   t o 
 / *   a c t u a l l y   g e t   d e v i c e   o u t p u t .   I n   s o m e   c a s e s   t h e   v e r t i c a l   a n d   h o r i z o n t a l 
 / *   p i x e l s   a r e   n o t   o f   t h e   s a m e   s i z e ,   i . e .   a   D i a b l o - t y p e   t y p e w r i t e r   h a s 
 / *   6 0 / i n c h   h o r i z o n t a l l y   a n d   4 8 / i n c h   v e r t i c a l l y . 
 
 / *   A l l   v a l u e s   w h i c h   a r e   f i x e d   b i n   ( 3 1 )   a r e   i n   m i l l i p o i n t s . 
 
 / *   D e b u g g i n g   t o o l s - - - 
 / *   T h e r e   a r e   s e v e r a l   s w i t c h e s   t h a t   c o n t r o l   d e b u g g i n g   o u t p u t   f r o m   a   w r i t e r - - 
 / *         s h a r e d . b u g _ m o d e         d b _ s w         d t _ s w 	         l g _ s w 
 / *         d e b u g _ s w 	           d e t a i l _ s w 	         l o n g _ s w 
 / *   s h a r e d . b u g _ m o d e   i s   s e t   v i a   t h e   f a m i l y   o f   - d b   a r g u m e n t s .   I t   m e a n s   t h a t   a l l 
 / * 	 o f   c o m p o s e   i s   b e i n g   d e b u g g e d . 
 / *   d b _ s w ,   d t _ s w ,   l g _ s w   ( s t a t i c )   a r e   s e t   b y   t h e   e n t r i e s   d b n ,   d t n ,   a n d   l g n           * / 
 / * 	 r e s p e c t i v e l y .   T h e y   a r e   r e s e t   b y   t h e   e n t r i e s   d b f ,   d t f ,   a n d   l g f .           * / 
 
 / *   T h e s e   s w i t c h e s   i n t e r a c t   w i t h   e a c h   o t h e r .   I n   o r d e r   t o   r e d u c e   t h e   a m o u n t   o f   * / 
 / *   c o d e   e x e c u t e d   w h e n   n o t   d e b u g g i n g ,   t h e s e   i n t e r a c t i o n s   a r e   d i s t i l l e d   i n t o       * / 
 / *   a u t o m a t i c   s w i t c h e s ,   d e b u g _ s w ,   d e t a i l _ s w ,   a n d   l o n g _ s w   w i t h   t h i s   l o g i c .           * / 
 / *         d e b u g _ s w     =   ( s h a r e d . b u g _ m o d e   |   d b _ s w ) ; 	 	 	               * / 
 / *         d e t a i l _ s w   =   d e b u g _ s w   &   d t _ s w ; 	 	 	 	               * / 
 / *         l o n g _ s w       =   d e b u g _ s w   &   l g _ s w ; 	 	 	 	               * / 
 / *   d e b u g _ s w   c o n t r o l s   t h e s e   o u t p u t s - - 	 	 	 	               * / 
 / *   - -   e n t r y   a n d   e x i t   n o t i f i c a t i o n 	 	 	 	               * / 
 / *   - -   a n   i n t e r p r e t a t i o n   o f   e a c h   l i n e   o f   t h e   i n p u t   s t r u c t u r e   b e f o r e   i t   i s           * / 
 / *         a c t e d   u p o n . 	 	 	 	 	 	               * / 
 / *   - -   g a p   c o u n t   e r r o r   n o t i f i c a t i o n 	 	 	 	               * / 
 / *   d e t a i l _ s w   c o n t r o l s   t h e s e   o u t p u t s - - 	 	 	 	               * / 
 / *   - -   ( p r e f a c e )   i n d i c a t i o n 	 	 	 	 	               * / 
 / *   - -   j u s t i f i c a t i o n   c a l c u l a t i o n s 	 	 	 	               * / 
 / *   - -   d e v i c e   c o n t r o l   ( D C x x )   d i s p l a y 	 	 	 	               * / 
 / *   - -   p l o t   t r a c e 	 	 	 	 	 	               * / 
 / *   - -   p u t _   t r a c e 	 	 	 	 	 	               * / 
 / *   - -   s e t _ f o n t   t r a c e 	 	 	 	 	               * / 
 / *   - -   s e t _ m e d i a   t r a c e 	 	 	 	 	               * / 
 / *   - -   o v e r s t r i k e   p r o c e s s i n g   n o t i f i c a t i o n 	 	 	               * / 
 / *   l o n g _ s w   c o n t r o l s   t h e s e   o u t p u t s - - 	 	 	 	               * / 
 / *   - -   s h o w s   t h e   j u s t i f i e d   t e x t   l i n e 	 	 	 	               * / 
 / *   - -   s h o w s   d e t a i l e d   M u l t i c s / d e v i c e   t r a n s l a t i o n   ( s i m p l e ) 	 	               * / 
 
 / *   T h i s   i s   a   6 0 x 4 8   D i a b l o   t y p e   d e v i c e .   I t   s u p p o r t s   p l o t   m o d e   a n d   a d j u s t a b l e     * / 
 / *     H M I   v a l u e s .   M o s t   a r t w o r k   i s   d o n e   v i a   p l o t   m o d e .   H o r i z o n t a l   l i n e s   a r e           * / 
 / *     i m p l e m e n t e d   w i t h   H M I = 2 / 1 2 0   t h e n   " . " ' 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   * / 
 
 h y t e r m _ w r i t e r _ : 
     p r o c   ( f u n c ,   c o d e ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   f u n c 	       f i x e d   b i n ; 	 / *   f u n c t i o n   c o d e   * / 
 	 	 	 	 / *   0   =   b u i l d   a   p a g e   * / 
 	 	 	 	 / *   1   =   i n i t i a l i z e   a   p a g e   * / 
 	 	 	 	 / *   2   =   i n i t i a l i z e   a   f i l e   * / 
 	 	 	 	 / *   3   =   c l e a n   u p   * / 
 	 	 	 	 / *   4   =   p r e p a r e   e p i l o g u 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   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   a u t o _ l e a d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   a u t o m a t i c   b a s e l i n e   a d v a n c e   * / 
         d c l   B A D _ C H A 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   ( "ÿ " ) ; 
 	 	 	 	 / *   l i s t   o f   b a d   f o n t   c h a r s   * / 
         d c l   b a d _ c h r s 	       c h a r   ( 1 2 8 )   v a r   s t a t i c ; 
         d c l   c h a r _ n d x 	       f i x e d   b i n ; 	 / *   i n d e x   i n t o   f o n t   t a b l e   * / 
         d c l   c o l _ w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   c a l c u l a t e d   c o l u m n   w i d t h   * / 
         d c l   d e b u g _ s t r 	       c h a r   ( 1 0 2 0 )   v a r ; 
         d c l   d e b u g _ s w 	       b i t   ( 1 ) ; 
         d c l   d e t a i l _ s w 	       b i t   ( 1 ) ; 
         d c l   d e v _ s t a t _ p t r       p t r   s t a t i c   i n i t   ( n u l l   ( ) ) ; 
         d c l   E M _ w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   w i d t h   o f   E M   * / 
         d c l   E N _ w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   w i d t h   o f   E N   * / 
         d c l   f c d e v f n t 	       f i x e d   b i n ; 	 / *   d e v i c e   f o n t   n e e d e d   b y   a   c h a r   * / 
         d c l   f c w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   f o n t   c h a r   w i d t h   * / 
         d c l   f i r s t _ l i n e 	       b i t   ( 1 )   s t a t i c ; 
         d c l   f i r s t _ p a g e 	       b i t   ( 1 )   a l i g n e d   s t a t i c   i n i t   ( " 0 " b ) ; 
         d c l   f o n t _ i n 	       f i x e d   b i n ; 	 / *   c u r r e n t   f o n t   * / 
         d c l   f o n t _ s i z e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   p o i n t   s i z e   i n   c u r r e n t   f o n t   * / 
         d c l   f o n t s _ d o n e 	       b i t   ( 3 6 ) ; 	 / *   w h i c h   f o n t s   h a v e   b e e n   p r o c e s s e d   * / 
         d c l   f o n t s _ n e e d e d       b i t   ( 3 6 ) ; 	 / *   w h i c h   f o n t s   h a v e   b e e n   r e q u e s t e d   * / 
         d c l   h o t _ c h a r s 	       c h a r   ( 3 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   ( "           	 
                      þÿ " ) ; 
         d c l   ( i ,   j ,   j j ,   k ,   l l ) 
 	 	       f i x e d   b i n ; 
         d c l   i c h r 	       f i x e d   b i n ; 	 / *   i n d e x   t o   c u r r e n t   t e x t   c h a r a c t e r   * / 
         d c l   i l i n 	       f i x e d   b i n   s t a t i c ; / *   p a g e   i m a g e   l i n e   c o u n t e r   * / 
         d c l   j u s t _ l i n e 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   t h e   j u s t i f i e d   l i n e   * / 
         d c l   l i n e i n f o p t r 	       p t r ; 	 	 / *   - >   i n f o   s t r u c t u r e   f o r   i m a g e   l i n e   * / 
         d c l   l i n e _ w i n d o w _ s i z e 	 	 / *   #   o f   w i n d o w   l i n e s   p e r   o u t p u t   l i n e   * / 
 	 	       f i x e d   b i n ; 
         d c l   L m a r g 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   l e f t   m a r g i n   * / 
         d c l   l o c t x t 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   m a x   r e v   l e a d i n g   a l l o w e d   * / 
         d c l   l o n g _ s w 	       b i t   ( 1 ) ; 
         d c l   m a x _ l e v e l 	       f i x e d   b i n ; 
         d c l   m a x _ r e v l e a d 	       f i x e d   b i n   ( 3 1 )   s t a t i c ; 
         d c l   f o n t _ m e d i a 	       ( 3 6 )   f i x e d   b i n ; 	 / *   m e d i a   n e e d e d   b y   t h e   f o n t s   * / 
         d c l   m e d i a _ s i z e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   p o i n t   s i z e   i n   m e d i a   * / 
         d c l   m e d s e l s t r 	       c h a r   ( 3 2 )   v a r ; 	 / *   e m i t t e d   m e d s e l   s t r i n g   * / 
         d c l   n e e d _ f o n t 	       f i x e d   b i n ; 	 / *   n e e d e d   f o n t   * / 
         d c l   n e e d _ d e v f n t 	       f i x e d   b i n ; 	 / *   d e v i c e   f o n t   f o r   n e e d e d   f o n t   * / 
         d c l   n e e d _ s i z e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   n e e d e d   s i z e   * / 
         d c l   N U L s 	       c h a r   ( 4 )   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   ( "         " ) ; 
         d c l   p r e f _ s w 	       b i t   ( 1 ) ; 	 / *   e f f e c t i v e   p r e f a c e   s w i t c h   * / 
         d c l   q u a d 	       b i t   ( 6 ) ; 	 / *   a l i g n m e n t   f l a g s   * / 
         d c l   r u n o u t 	       f i x e d   b i n ; 	 / *   #   N L s   f o r   p a g e   r u n o u t   * / 
         d c l   S H I F T _ O P 	       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   ( " 0 " b ) ; 
 	 	 	 	 / *   d e v i c e   s t a t u s   i n f o   * / 
         d c l   s t a t _ b l k 	       ( 1 0 0 )   f i x e d   b i n   ( 3 5 )   s t a t i c   i n i t   ( ( 1 0 0 )   0 ) ; 
 	 	 	 	 / *   T h e   d e v e l o p e r   o f   a   d e v i c e   w r i t e r   * / 
 	 	 	 	 / *   m a y   u s e   t h i s   b l o c k   ( b y   d e f i n i n g   a   * / 
 	 	 	 	 / *   b a s e d   o v e r l a y )   t o   h o l d   a n y   * / 
 	 	 	 	 / *   n e c e s s a r y   d e v i c e   s t a t u s   i n f o .   * / 
 	 	 	 	 / *   N o t e   t h a t   t h e   f i r s t   w o r d   i s   * / 
 	 	 	 	 / *   i n i t i a l i z e d   t o   - 1   f o r   e a c h   p a g e ,   * / 
 	 	 	 	 / *   t h u s   a n y   o v e r l a y   s h o u l d   k e e p   i t   * / 
 	 	 	 	 / *   f i x e d   b i n   ( 3 5 )   a n d   a s s u r e   t h a t   * / 
 	 	 	 	 / *   a l l   s p e c i a l   d e v i c e   m o d e s   a r e   * / 
 	 	 	 	 / *   r e s e t   a t   t h e   e n d   o f   e a c h   p a g e .   * / 
         d c l   t e x t _ s w 	       b i t   ( 1 ) ; 
         d c l   t e x t _ w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   l o c a l   t e x t   w i d t h   * / 
         d c l   t c h r 	       c h a r   ( 1 ) ; 	 / *   l o c a l   t e x t   c h a r   * / 
         d c l   T H I N _ w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   w i d t h   o f   T H I N   * / 
         d c l   t s t r _ p t r 	       p t r ; 	 	 / *   t e x t   s t r i n g   * / 
         d c l   1   t s t r 	       a l i g n e d   b a s e d   ( t s t r _ p t r ) , 
 	 2   o p e n 	       b i t   ( 1 )   u n a l , 	 / *   l i n e   h a s   s o m e t h i n g   * / 
 	 2   w h i t e 	       b i t   ( 1 )   u n a l , 	 / *   l i n e   i s   w h i t e   * / 
 	 2   M B Z 	       b i t   ( 1 6 )   u n a l , 
 	 2   d e v f n t 	       f i x e d   b i n   u n a l , 	 / *   s t a r t i n g   d e v i c e   f o n t   f o r   l i n e   * / 
 	 2   l a s t _ c r 	       f i x e d   b i n   u n a l , 	 / *   p o s i t i o n   o f   l a s t   C R   o r   N L   * / 
 	 2   f o n t 	       f i x e d   b i n   u n a l , 	 / *   f o n t   b e i n g   p r o c e s s e d   * / 
 	 2   x p o s 	       f i x e d   b i n   ( 3 1 ) , 	 / *   X   p o s i t i o n   * / 
 	 2   y p o s 	       f i x e d   b i n   ( 3 1 ) , 	 / *   Y   p o s i t i o n   * / 
 	 2   w 	       f i x e d   b i n   ( 3 1 ) , 	 / *   w i d t h   o f   s t r   * / 
 	 2   s t r _ p t r 	       p t r ; 
         d c l   t s t r _ l i n e 	       c h a r   ( 2 0 4 8 )   v a r   b a s e d   ( t s t r . s t r _ p t r ) ; 
         d c l   t x t l e n 	       f i x e d   b i n ; 	 / *   l e n g t h   o f   t x t s t r   * / 
         d c l   u n s t a r t 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   s t a r t   o f   u n d e r s c o r e   * / 
         d c l   u n s t r i n g 	       b i t   ( 1 )   s t a t i c ; 	 / *   u n d e r s c o r i n g   i s   a c t i v e   * / 
         d c l   V E C T O R _ O P 	       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   w i n d o w _ a r e a _ p t r 	 	 / *   p o i n t s   t o   c u r r e n t   w i n d o w   a r e a   s e g   * / 
 	 	       p t r   s t a t i c   i n i t   ( n u l l ) ; 
         d c l   w i n d o w _ b o t t o m     f i x e d   b i n   s t a t i c   i n i t   ( 0 ) ; 
         d c l   w i n d o w _ l e v e l       f i x e d   b i n ; 
         d c l   w i n d o w _ p t r 	       p t r   s t a t i c   i n i t   ( n u l l ) ; 
         d c l   1   w i n d o w 	       ( w i n d o w _ t o p : w i n d o w _ b o t t o m )   a l i g n e d   l i k e   t s t r 
 	 	       b a s e d   ( w i n d o w _ p t r ) ; 
         d c l   w i n d o w _ t o p 	       f i x e d   b i n   s t a t i c   i n i t   ( 0 ) ; 
         d c l   w o r d 	       c h a r   ( 4 0 9 0 )   v a r ;   / *   w o r d   a c c u m u l a t o r   * / 
         d c l   w r d w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   w o r d   w i d t h   i n   M P T S   * / 
         d c l   X m o v 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   h o r i z o n t a l   C T L   m o v e m e n t   * / 
         d c l   X m p t s t r k 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   h o r i z o n t a l   m p t   - >   s t r o k e   c o n v   * / 
         d c l   X p i x e l 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   h o r i z o n t a l   p i x e l   s i z e   * / 
         d c l   X p o s 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   c u r r e n t   h o r i z o n t a l   p o s i t i o n   * / 
         d c l   X s p c 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   h o r i z o n t a l   m o v e m e n t   * / 
         d c l   X m p t s 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   t e m p   h o r i z   v a l u e   * / 
         d c l   Y i n i t 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   i n i t i a l   p a g e   d e p t h   * / 
         d c l   Y m o v 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   v e r t i c a l   C T L   m o v e m e n t   * / 
         d c l   Y p i x e l 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   v e r t i c a l   p i x e l   s i z e   * / 
         d c l   Y p o s 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   c u r r e n t   v e r t i c a l   p o s i t i o n   * / 
         d c l   Y s p c 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   v e r t i c a l   m o v e m e n t   * / 
         d c l   Y m p t s 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   t e m p   v e r t   v a l u e   * / 
 
         d c l   ( a d d r ,   b i n ,   d i v i d e ,   f i x e d ,   i n d e x ,   l e n g t h ,   m a x ,   m i n ,   m o d ,   n u l l ,   p o i n t e r , 
                 s i z e ,   s t r i n g ,   s u b s t r ,   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 m p _ a b o r t ,   n u l l _ f o n t _ c h a r ,   o v e r l e n g t h _ l i n e ,   z e r o _ f o n t _ i n d e x ) 
 	 	       c o n d i t i o n ; 
 
         d c l   e r r o r _ t a b l e _ $ f a t a l _ e r r o 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 _ $ 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 p _ e r r o r _ t a b l e _ $ l i m i t a t 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 p _ e r r o r _ t a b l e _ $ p r o g r a m _ e r r o r 
 	 	       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 _ $ r s 	       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 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   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   ( * )   a l i g n e d ,   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 ) ) ; 
 / * * * *   & d c l s   F O R   h y t e r m   * / 
 d c l   ( 
                 A B S _ T A B 	       c h a r   ( 2 )   i n i t   ( "  	 " ) , 
                 D T 1 	       c h a r   ( 3 )   i n i t   ( "  	  " ) , 
                 P E N D O W N 	       c h a r   ( 1 )   i n i t   ( " . " ) , 
                 P E N U P 	       c h a r   ( 1 )   i n i t   ( "   " ) , 
                 P L O T 	       c h a r   ( 2 )   i n i t   ( "  3 " ) , 
                 P L O T l e n 	       f i x e d   b i n   i n i t   ( 2 ) , 
                 R L F 	       c h a r   ( 2 )   i n i t   ( "  
 " ) , 
                 R L F l e n 	       f i x e d   b i n   i n i t   ( 2 ) , 
                 S E T _ H M I 	       c h a r   ( 2 )   i n i t   ( "   " ) , 
                 u n P L O T 	       c h a r   ( 4 )   v a r   i n i t   ( "  4 " ) , 
                 u n P L O T l e n 	       f i x e d   b i n   i n i t   ( 2 ) , 
 	 	 	 	 / *   1 0 p i t c h   h m i   v a l u e   * / 
                 H M I 1 0 	       f i x e d   b i n   i n i t   ( 1 2 ) 
 	 ) 	 	       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 ) ; 
         d c l   B E L c 	       c h a r   ( 1 7 )   v a r ; 	 / *   B E L | | H T | | P A D s   f o r   w h e e l   c h a n g e     * / 
         d c l   1   d e v _ s t a t 	       b a s e d   ( d e v _ s t a t _ p t r ) , 
 	 2   i n i t e d 	       f i x e d   b i n   ( 3 5 ) , 
 	 2   s w , 
 	     3   p l o t t i n g   b i t   ( 1 )   u n a l , 	 / *   1 -   i n   r e g u l a r   p l o t   m o d e   * / 
 	     3   M B Z 	       b i t   ( 3 5 )   u n a l , 
 	 2   h m i _ c o d e       c h a r   ( 1 ) , 	 / *   c u r r e n t   d e v i c e   H M   c h a r a c t e r       * / 
 	 2   h m i _ v a l u e     f i x e d   b i n ; 	 / *   c u r r e n t   d e v i c e   H M   v a l u e       * / 
         d c l   e r r _ c t                   f i x e d   b i n ; 
         d c l   e r r _ s w                   b i t   ( 1 ) ; 
         d c l   f o n t _ w h e e l 	       ( 3 6 )   f i x e d   b i n ; 	 / *   w h e e l s   n e e d e d   f o r   f o n t s   * / 
         d c l   m o u n t e d _ w h e e l 	 	 / *   p r i n t   w h e e l   o n   m a c h i n e   * / 
 	 	       f i x e d   b i n   s t a t i c   i n i t   ( 0 ) ; 
         d c l   n e e d _ w h e e l 	       f i x e d   b i n ; 	 / *   p r i n t   w h e e l   n e e d e d   * / 
         d c l   1   p r e f a c e 	       a l i g n e d   l i k e   p a g e _ r e c o r d   b a s e d   ( p a g e _ r e c o r d _ p t r ) ; 
         d c l   i p l t 	       f i x e d   b i n ; 	 / *   n u m b e r   o f   * c ' s   t o   e m i t   * / 
         d c l   M A X _ S T R 	       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 0 4 8 ) ; 
         d c l   p l o t _ s t r               ( 4 0 )   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 	 	 / * * / 
 	 	       ( "   
 . " , 	 " r d . " , 
 	 	         "    
 . " , 	 " r u . " , 
 	 	         "   . " , 	 " r . " , 
 	 	         "  
 . " , 	 " l d . " , 
 	 	         "   
 . " , 	 " l u . " , 
 	 	         "  . " , 	 " l . " , 
 	 	         " 
 . " , 	 " d . " , 
 	 	         "  
 . " , 	 " u . " , 
 	 	         " . " , 	 	 " . " , 
 	 	         "   
 " , 	 " r d " , 
 	 	         "    
 " , 	 " r u " , 
 	 	         "   " , 	 " r " , 
 	 	         "  
 " , 	 " l d " , 
 	 	         "   
 " , 	 " l u " , 
 	 	         "  " , 	 " l " , 
 	 	         " 
 " , 	 " d " , 
 	 	         "  
 " , 	 " u " , 
 	 	         " 	 " , 	 " H T " , 
 	 	         "  U " , 	 " d / 2 " , 
 	 	         "  D " , 	 " u / 2 " 
 	 	       ) ; 
 	 d c l   r s t 	 	 c h a r   ( 8 )   v a r ; 	 / *   r e p l a c e m e n t   s t r i n g   * / 
 	 d c l   V M I 	 	 c h a r   ( 4 )   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   ( "   " ) ; 
         d c l   t a b c o l 	       f i x e d   b i n ; 	 / *   t a r g e t   f o r   d i r e c t   t a b b i n g   * / 
         d c l   x c 	       c h a r   ( 2 )   v a r ; 	 / *   h o r i z o n t a l   p l o t   c h a r a c t e r ( s )   * / 
         d c l   x c m a x 	       f i x e d   b i n ; 
         d c l   x y c 	       c h a r   ( 6 )   v a r ; 	 / *   c o m m o n   p l o t   c h a r a c t e r ( s )   * / 
         d c l   x i y i 	       f i x e d   b i n ; 	 / *   a m o u n t   o f   c o m m o n   m o v e m e n t   * / 
         d c l   x y c m a x 	       f i x e d   b i n ; 
         d c l   y c 	       c h a r   ( 3 )   v a r ; 	 / *   v e r t i c a l   p l o t   c h a r a c t e r ( s )   * / 
         d c l   y c m a x 	       f i x e d   b i n ; 
 
         d c l   ( a b s ,   c h a r ,   c o l l a t e 9 ,   c o p y ,   d e c ,   l t r i m ,   r o u n d ,   r t r i m ,   s e a r c h ,   s i g n , 
                 v e r i f y ) 	       b u i l t i n ; 
 / * * * *   E N D   h y t e r m   * / 
 % p a g e ; 
         c o d e   =   0 ; 	 	 	 / *   c l e a r   e r r o r   c o d e   * / 
 
         i f   f u n c   =   3 	 	 	 / *   c l e a n   u p   * / 
         t h e n 
             d o ; 
 / * * * *   & c l e a n u p   F O R   h y t e r m   * / 
 / * * * *   N O   C O D E   * / / * * * *   E N D   h y t e r m   * / 
                 r e t u r n ; 
             e n d ; 
 
         i f   f u n c   =   1 	 	 	 / *   n e w   p a g e   * / 
         t h e n 
             d o ; 
 i n i t : 
     e n t r y ; 	 	 	 	 / *   c a l l e d   b y   p c o   * / 
                 s t a t _ b l k   ( * )   =   0 ; 
                 s t a t _ b l k   ( 1 )   =   - 1 ; 
                 d e v _ s t a t _ p t r   =   a d d r   ( s t a t _ b l k ) ; 
                 r e t u r n ; 
             e n d ; 
 
         i f   f u n c   =   2 	 	 	 / *   n e w   i n p u t   f i l e   * / 
         t h e n 
             d o ; 
 m y s e l f : 	 	 	 	 / *   c h e c k   s t r u c t u r e   v e r s i o n s   * / 
                 c o n s t . o u t p r o c _ p t r   =   c o d e p t r   ( m y s e l f ) ; 
                 i f   s h a r e d . v e r s i o n   ^ =   s h a r e d _ v e r s i o n 
 	 |   o p t i o n . v e r s i o n   ^ =   o p t i o n _ v e r s i o n   |   p a g e . v e r s i o n   ^ =   p a g e _ 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 i d _ v e r s i o n 
                 t h e n 
 	 d o ; 
 	     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 ; 
 	     i f   d b _ s w 
 	     t h e n 
 	         d o ; 
 	             c a l l   i o a _   ( "     s h a r e d . v e r s i o n = ^ i " ,   s h a r e d . v e r s i o n ) ; 
 	             c a l l   i o a _   ( "     s h a r e d _ v e r s i o n = ^ i " ,   s h a r e d _ v e r s i o n ) ; 
 	             c a l l   i o a _   ( "     o p t i o n . v e r s i o n = ^ i " ,   o p t i o n . v e r s i o n ) ; 
 	             c a l l   i o a _   ( "     o p t i o n _ v e r s i o n = ^ i " ,   o p t i o n _ v e r s i o n ) ; 
 	             c a l l   i o a _   ( " 	 p a g e . v e r s i o n = ^ i " ,   p a g e . v e r s i o n ) ; 
 	             c a l l   i o a _   ( " 	 p a g e _ v e r s i o n = ^ i " ,   p a g e _ v e r s i o n ) ; 
 	             c a l l   i o a _   ( " 	 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   i o a _   ( " 	 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 ) ; 
 	         e n d ; 
 	     r e t u r n ; 
 	 e n d ; 
 
                 b a d _ c h r s   =   " " ; 
                 u n s t r i n g   =   " 0 " b ; 
                 f i r s t _ p a g e   =   " 1 " b ; 
 / * * * *   & f i l e _ i n i t   F O R   h y t e r m   * / 
 	 m a x _ r e v l e a d   =   - 1 2 0 0 0 ; 	 / *   d o n t   b a c k   u p   m o r e   t h a n   1   l i n e   * / 
 	 i f   o p t i o n . n o b e l l _ o p t 
 	 t h e n   B E L c   =   "  	                " ; 
 	 e l s e   B E L c   =   "  	                " ; 
 	 m o u n t e d _ w h e e l   =   1 ; 	 	 / *   a s s u m e   A S C I I   w h e e l   i s   m o u n t e d   * / 
 / * * * *   E N D   h y t e r m   * / 
                 r e t u r n ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s e t   d e b u g   s w i t c h e s   * / 
         d e b u g _ s w ,   d e t a i l _ s w ,   l o n g _ s w ,   p r e f _ s w ,   t e x t _ s w   =   " 0 " b ; 
         d e b u g _ s w   =   ( s h a r e d . b u g _ m o d e   |   d b _ s w ) ; 
         d e t a i l _ s w   =   d e b u g _ s w   &   d t _ s w ; 
         l o n g _ s w   =   d e b u g _ s w   &   l g _ s w ; 
         t e x t _ s w   =   d e b u g _ s w   &   t x _ s w ; 
         p r e f _ s w   =   d e b u g _ s w   &   p f _ s w ; 
 
         i f   f u n c   =   4 	 	 	 / *   p r e p a r e   e p i l o g u e   * / 
         t h e n 
             d o ; 
                 p a g e _ r e c o r d _ p t r   =   a d d r   ( p a g e _ i m a g e . t e x t _ p t r   - >   r e c o r d . p a g e _ r e c o r d ) ; 
                 u n s p e c   ( p a g e _ r e c o r d )   =   " 0 " b ; 
 / * * * *   & e p i l o g u e   F O R   h y t e r m   * / 
 / * * * *   N O   C O D E   * / / * * * *   E N D   h y t e r m   * / 
                 r e t u r n ; 
             e n d ; 
 
 / *   f u n c   =   0 	 	 	       b u i l d   p a g e   * / 
         l i n e _ w i n d o w _ s i z e   =   d i v i d e   ( 1 2 0 0 0 ,   c o m p _ d v t . m i n _ l e a d ,   1 7 ,   0 ) ; 
         w i n d o w _ t o p   =   - l i n e _ w i n d o w _ s i z e ; 
         w i n d o w _ b o t t o m   =   d i v i d e   ( p a g e . p a r m s . l e n g t h ,   c o m p _ d v t . m i n _ l e a d ,   1 7 ,   0 ) ; 
 
         i f   d e b u g _ s w 
         t h e n   c a l l 
 	   i o a _   ( " h y t e r m _ w r i t e r _ ( ^ a ) :   ( p a g = ^ a   l c t = ^ d   l v l = ^ d : ^ d ) " , 
 	   o p t i o n . d e v i c e ,   p a g e . h d r . p a g e n o ,   p a g e _ i m a g e . c o u n t ,   w i n d o w _ t o p , 
 	   w i n d o w _ b o t t o m ) ; 
 
         i f   p a g e _ i m a g e . c o u n t   =   0 
         t h e n 
             d o ; 
                 c a l l 
 	 c o m p _ r e p o r t _   ( 4 ,   0 ,   " N o   o u t p u t   l i n e s   o n   p a g e   "   | |   p a g e . h d r . p a g e n o , 
 	 a d d r   ( c t l . i n f o ) ,   " " ) ; 
                 r e t u r n ; 
             e n d ; 
 
         o n   c l e a n u p   c a l l   r e l e a s e _ w i n d o w ; 	 / * * / 
 	 	 	 	 / *   p r e s e t   l o c a l   s t u f f   * / 
         a u t o _ l e a d ,   f o n t _ i n ,   n e e d _ d e v f n t ,   m e d i a _ s i z e ,   f o n t _ s i z e ,   X p o s ,   Y p o s ,   Y i n i t , 
             f o n t _ m e d i a   ( * )   =   0 ; 
         X p i x e l   =   c o m p _ d v t . m i n _ W S ; 
         Y p i x e l   =   c o m p _ d v t . m i n _ l e a d ; 
         p a g e _ r e c o r d _ p t r   =   a d d r   ( p a g e _ i m a g e . t e x t _ p t r   - >   r e c o r d . p a g e _ r e c o r d ) ; 
 / * * * *   & p a g e _ i n i t   F O R   h y t e r m   * / 
 n e e d _ w h e e l   =   m o u n t e d _ w h e e l ; 	 / *   l a s t   o n e   m o u n t e d   * / 
         f o n t _ w h e e l   ( * )   =   0 ; 
 / * * * *   E N D   D E V I C E   h y t e r m   * / 
 r e s c a n _ p a g e : 	 	 	 / *   ( r e ) s t a r t i n g   p a g e   * / 
 	 	 	 	 / *   g e t   s t o r a g e   f o r   o u t p u t   i m a g e   * / 
         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 o s e " ,   w i n d o w _ a r e a _ p t r ,   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 o s e " ,   " D e f i n i n g   a n   o u t p u t   w i n d o w   a r e a . " ) ; 
                 s i g n a l   c l e a n u p ; 
                 r e t u r n ; 
             e n d ; 
 
         X s p c ,   Y s p c   =   0 ; 
 
         w i n d o w _ p t r   =   a l l o c a t e   ( w i n d o w _ a r e a _ p t r , 
             ( w i n d o w _ b o t t o m   -   w i n d o w _ t o p   +   1 )   *   s i z e   ( t s t r ) ) ; 
         u n s p e c   ( w i n d o w )   =   " 0 " b ; 
         w i n d o w . s t r _ p t r   =   n u l l ; 
         u n s p e c   ( p a g e _ r e c o r d )   =   " 0 " b ; 
         f i r s t _ l i n e   =   " 1 " b ; 
         w i n d o w _ l e v e l ,   m a x _ l e v e l   =   0 ; 
         t s t r _ p t r   =   a d d r   ( w i n d o w   ( 0 ) ) ; 
         i f   t s t r . s t r _ p t r   =   n u l l 
         t h e n   t s t r . s t r _ p t r   =   a l l o c a t e   ( w i n d o w _ a r e a _ p t r ,   1 0 2 4 ) ;   
         t s t r _ l i n e   =   " " ; 	 	 	 	 	 
         t s t r . d e v f n t   =   0 ; 
 
         i f   p r e f _ s w 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( p r e f a c e ) " ) ; 
 
 / * * * *   & i m a g e _ i n i t   F O R   h y t e r m   * / 
 p r e f a c e . i n _ u s e ,   p r e f a c e . p r e f a c e ,   p r e f a c e . r a w o   =   " 1 " b ; 
 
         i f   n e e d _ w h e e l   ^ =   m o u n t e d _ w h e e l 	 / *   n e e d   a   w h e e l   c h a n g e ?   * / 
         t h e n 
             d o ; 
                 p r e f a c e . h a l t ,   p r e f a c e . h a l t 2   =   " 1 " b ; 
                 m o u n t e d _ w h e e l   =   n e e d _ w h e e l ; 	 / *   s h o w   w h e e l   c h a n g e d   * / 
             e n d ; 
 
         p r e f a c e . n e x t r e f   =   " 0 " b ; 
         p a g e _ r e c o r d _ p t r   =   a d d r   ( p r e f a c e . n e x t r e f ) ; 
         p a g e _ r e c o r d . l e n g   =   0 ; 
         u n s p e c   ( p a g e _ r e c o r d . s w s )   =   " 0 " b ; 
         p a g e _ r e c o r d . i n _ u s e   =   " 1 " b ; 
         p a g e _ r e c o r d . s w s . r a w o   =   " 1 " b ; 
         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 ; 
         h m i _ v a l u e   =   H M I 1 0 ; 
 
         i f   f i r s t _ p a g e 
         t h e n 
             d o ; 	 	 	 	 / *   e m i t   H M I   * / 
                 w i n d o w _ l e v e l ,   m a x _ l e v e l   =   w i n d o w _ t o p ; 
                 t s t r _ p t r   =   a d d r   ( w i n d o w   ( w i n d o w _ t o p ) ) ; 
                 i f   t s t r . s t r _ p t r   =   n u l l 
                 t h e n   t s t r . s t r _ p t r   =   a l l o c a t e   ( w i n d o w _ a r e a _ p t r ,   1 0 2 4 ) ;   
                 m e d s e l s t r ,   t s t r _ l i n e   =   " " ; 
                 c a l l   p u t _ s t r   ( S E T _ H M I   | |   b y t e   ( H M I 1 0   +   1 ) ,   0 ) ; 
                 c a l l   p u t _ ; 
                 u n s p e c   ( t s t r )   =   " 0 " b ; 
                 t s t r . s t r _ p t r   =   a l l o c a t e   ( w i n d o w _ a r e a _ p t r ,   1 0 2 4 ) ;   
                 t s t r _ p t r   =   a d d r   ( w i n d o w   ( 0 ) ) ; 
                 w i n d o w _ l e v e l ,   m a x _ l e v e l   =   0 ; 
                 f i r s t _ p a g e   =   " 0 " b ; 
             e n d ; 
 
 / * * * *   E N D   h y t e r m   * / 
         i f   d e b u g _ s w 
         t h e n   c a l l 
 	   i o a _   ( " : i l n   f n / l n       c h / g p     l m a r g       r m a r g       w i d t h       d e p t h " 
 	   | |   "         l e a d   s   m e d     f n t     s z " ) ; 
 % p a g e ; 
 i m a g e _ l o o p : 
         d o   i l i n   =   1   t o   p a g e _ i m a g e . c o u n t ; 	 / *   f o r   a l l   g i v e n   i m a g e   l i n e s   * / 
             d e b u g _ s w ,   d e t a i l _ s w ,   l o n g _ s w ,   t e x t _ s w   =   " 0 " b ; 
             f o n t s _ d o n e ,   f o n t s _ n e e d e d   = " 0 " b ; 
             L m a r g ,   c o l _ w i d t h ,   t e x t _ w i d t h   =   0 ; 
 
             i f   ( s h a r e d . b u g _ m o d e   |   d b _ s w ) 
             t h e n   i f   i l i n   > =   d b _ l i n e 
 	   t h e n 
 	       d o ; 
 	           d e b u g _ s w   =   " 1 " b ; 
 	           i f   d t _ s w 
 	           t h e n   d e t a i l _ s w   =   " 1 " b ; 
 	           e l s e   d e t a i l _ s w   =   " 0 " b ; 
 	           i f   l g _ s w 
 	           t h e n   l o n g _ s w   =   " 1 " b ; 
 	           e l s e   l o n g _ s w   =   " 0 " b ; 
 	           i f   t x _ s w 
 	           t h e n   t e x t _ s w   =   " 1 " b ; 
 	           e l s e   t e x t _ s w   =   " 0 " b ; 
 	       e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s e t   t e x t   p o i n t e r 	               * / 
             t x t s t r p t r   =   p a g e _ i m a g e . l i n e   ( i l i n ) . p t r ; 
             l o c t x t   =   t x t s t r ; 	 	 / *   c o p y   t x t s t r   * / 
             t x t l e n   =   l e n g t h   ( t x t s t r ) ; 	 / *   a n d   r e c o r d   l e n g t h   * / 
 
 t r i m _ f o n t : 	 	 	 / *   t r i m   t r a i l i n g   f o n t   c h a n g e   * / 
             i f   t x t l e n   >   7 
             t h e n   i f   s u b s t r   ( l o c t x t ,   t x t l e n   -   7 ,   2 )   =   "  À " 
 	   t h e n 
 	       d o ; 
 	           t x t l e n   =   t x t l e n   -   8 ; 
 	           g o t o   t r i m _ f o n t ; 
 	       e n d ; 
 
             l i n e i n f o p t r   =   a d d r   ( p a g e _ i m a g e . l i n e   ( i l i n ) . i n f o ) ; 
             q u a d   =   p a g e _ i m a g e . l i n e   ( i l i n ) . q u a d ; 
 
             i f   d e b u g _ s w 
             t h e n   c a l l   b l a t ; 
 
             Y s p c   =   d i v i d e   ( p a g e _ i m a g e . l i n e   ( i l i n ) . d e p t h ,   Y p i x e l ,   3 1 ,   0 )   -   Y p o s   -   Y i n i t ; 
             i f   i l i n   >   1 
             t h e n   Y s p c   =   Y s p c   -   a u t o _ l e a d ; 	 / *   a c c o u n t   f o r   t h e   " f r e e "   a m o u n t   * / 
 
             n e e d _ f o n t   =   p a g e _ i m a g e . l i n e   ( i l i n ) . l f n t ; 
             n e e d _ s i z e   =   p a g e _ i m a g e . l i n e   ( i l i n ) . l s i z e ; 
 
             i f   t x t l e n   >   0 
             t h e n 
                 d o ; 
 
 	 i f   f o n t _ i n   ^ =   n e e d _ f o n t 
 	 t h e n   c a l l   s e t _ f o n t   ( n e e d _ f o n t ,   n e e d _ s i z e ) ; 
 
 	 i f   p a g e _ i m a g e . l i n e   ( i l i n ) . l m a r g   >   0 
 	 t h e n   L m a r g   =   d i v i d e   ( p a g e _ i m a g e . l i n e   ( i l i n ) . l m a r g ,   X m p t s t r k ,   3 1 ,   0 ) ; 
 	 i f   p a g e _ i m a g e . l i n e   ( i l i n ) . n e t   >   0 
 	 t h e n   c o l _ w i d t h   =   d i v i d e   ( p a g e _ i m a g e . l i n e   ( i l i n ) . n e t ,   X m p t s t r k ,   3 1 ,   0 ) ; 
 	 i f   p a g e _ i m a g e . l i n e   ( i l i n ) . w i d t h   >   0 
 	 t h e n   t e x t _ w i d t h   =   d i v i d e   ( p a g e _ i m a g e . l i n e   ( i l i n ) . w i d t h ,   X m p t s t r k ,   3 1 ,   0 ) ; 
 / * * * *   & l i n e _ i n i t   F O R   h y t e r m   * / 
 / * * * *   N O   C O D E   * / / * * * *   E N D   h y t e r m   * / 
 	 i f   q u a d   =   q u a d r   |   q u a d   =   q u a d c 
 	 t h e n 	 	 	 / *   i f   s e t t i n g   r i g h t   * / 
 	     d o ; 	 	 	 / *   o r   c e n t e r   * / 
 	         X s p c   =   c o l _ w i d t h   -   t e x t _ w i d t h ; 
 	         i f   q u a d   =   q u a d c 	 	 / *   i f   c e n t e r i n g ,   t a k e   h a l f   * / 
 	         t h e n   X s p c   =   r o u n d   ( d i v i d e   ( m a x   ( X s p c ,   0 ) ,   2 ,   3 1 ,   1 ) ,   0 ) ; 
 	         L m a r g   =   L m a r g   +   X s p c ; 
 	     e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   j u s t i f y i n g   a n d   d e v i c e   d o e s n t   * / 
 	 i f   q u a d   =   j u s t   &   ^ c o m p _ d v t . j u s t i f y i n g 
 	 	 	 	 / *   a n d   t h e r e   a r e   s o m e   g a p s   * / 
 	 &   p a g e _ i m a g e . l i n e   ( i l i n ) . g a p s   >   0 
 	 t h e n   c a l l   p a d _ b l o c k ; 
 
 r e s c a n _ l i n e : 
 	 i f   d e t a i l _ s w 
 	 t h e n   c a l l 
 	               i o a _   ( " ^ 5 x ( r e s c a n _ l i n e :   L m a r g = ^ f   l v l = ^ d ) " , 
 	                     s h o w   ( L m a r g   *   X m p t s t r k ,   1 2 0 0 0 ) ,   w i n d o w _ l e v e l ) ; 
 
 	 w o r d   =   " " ; 	 	 / *   c l e a r   w o r d   a c c u m u l a t o r   * / 
 	 w r d w i d t h   =   0 ; 
 
 	 i f   Y s p c   ^ =   0 
 	 t h e n   c a l l   p l o t   ( S H I F T _ O P ,   0 ,   Y p o s   +   Y s p c ) ; 
 	 Y s p c   =   0 ; 	 	 / *   i n i t i a l   m o v e m e n t   * / 
 	 X s p c   =   L m a r g   -   X p o s ; 
 
 	 i f   f o n t _ i n   ^ =   p a g e _ i m a g e . l i n e   ( i l i n ) . l f n t 
 	     |   f o n t _ s i z e   ^ =   p a g e _ i m a g e . l i n e   ( i l i n ) . l s i z e 
 	 t h e n   c a l l   s e t _ f o n t   ( p a g e _ i m a g e . l i n e   ( i l i n ) . l f n t , 
 	               p a g e _ i m a g e . l i n e   ( i l i n ) . l s i z e ) ; 
 
 c h a r _ l o o p : 	 	 	 / *   p r o c e s s   e a c h   c h a r a c t e r   * / 
 	 d o   i c h r   =   1   t o   t x t l e n ; 
 	     t c h r   =   s u b s t r   ( l o c t x t ,   i c h r ,   1 ) ; 
 
 	     i f   t c h r   ^ =   D C 1 	 	 / *   d o   a n y   f o n t   c h a r s   * / 
 	     t h e n 
 f o n t _ c h a r : 
 	         d o ; 
 	             c h a r _ n d x   =   r a n k   ( t c h r ) ;   / *   f n t t b l   i n d e x   f o r   t e x t   c h a r   * / 
 	 	 	 	 / *   - >   r e p l a c e m e n t   * / 
 	             r e p l _ s t r _ p t r   =   f n t t b l . r e p l p t r   ( c h a r _ n d x ) ; 
 	 	 	 	 / *   i f   t h e r e ' s   n o   r e p l a c e m e n t   * / 
 	             i f   r e p l _ s t r _ p t r   =   n u l l   ( ) 
 	             t h e n 
 	                 d o ; 	 	 / *   i f   n o t   a l r e a d y   r e p o r t e d   * / 
 	 	 i f   i n d e x   ( b a d _ c h r s ,   t c h r )   =   0 
 	 	 t h e n 
 	 	     d o ; 	 	 / *   a d d   t o   b a d   c h a r s   a n d   r e p o r t   * / 
 	 	         b a d _ c h r s   =   b a d _ c h r s   | |   t c h r ; 
 	 	         c a l l 
 	 	             c o m p _ r e p o r t _ $ c t l s t r   ( 2 , 
 	 	             c o m p _ e r r o r _ t a b l e _ $ p r o g r a m _ e r r o r ,   l i n e i n f o p t r ,   l o c t x t , 
 	 	             " F o n t   ^ a ,   n o   r e p l a c e m e n t   f o r   " " ^ a " "   ( \ ^ . 3 b ) " , 
 	 	             f n t t b l . e n t r y . n a m e ,   t c h r ,   u n s p e c   ( t c h r ) ) ; 
 
 	 	         i f   a b r t _ s w 	 / *   a b o r t   i f   d e s i r e d   * / 
 	 	         t h e n   s i g n a l   n u l l _ f o n t _ c h a r ; 
 	 	     e n d ; 
 	 	 g o t o   e n d _ c h a r s ; 	 / *   s k i p   r e s t   o f   l i n e   * / 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   c o p y   f n t t b l   d a t a   * / 
 	             f c d e v f n t   =   f n t t b l . d e v f n t   ( c h a r _ n d x ) ; 
 	 	 	 	 / *   w h i t e   s p a c e ?   * / 
 	             i f   f n t t b l . w h i t e   ( c h a r _ n d x ) 
 	             t h e n 
 	                 d o ; 
 	 	 i f   w o r d   ^ =   " " 	 / *   f l u s h   c u r r e n t   w o r d   * / 
 	 	 t h e n 
 	 	     d o ; 
 	 	         c a l l   p u t _ s t r   ( w o r d ,   w r d w i d t h ) ; 
 	 	         w r d w i d t h   =   0 ; 
 	 	         t s t r . w h i t e   =   " 0 " b ; 
 	 	     e n d ; 
 
 	 	 f c w i d t h   =   f n t t b l . u n i t s   ( c h a r _ n d x ) ; 
 	 	 X s p c   =   X s p c   +   f c w i d t h ; 
 
 	 	 i f   t e x t _ s w   &   ^ p r e f _ s w 
 	                     t h e n   c a l l   i o a _   ( " ^ 5 x ( t e x t :   ^ d   ^ i   ^ f   ^ f   " " ^ 1 a " "   W S ) " , 
 	 	 	 f c d e v f n t ,   f c w i d t h , 
 	 	 	 s h o w   ( f c w i d t h   *   X m p t s t r k ,   1 2 0 0 0 ) , 
 	 	 	 s h o w   ( ( X p o s   +   X s p c )   *   X m p t s t r k ,   1 2 0 0 0 ) , 
 	 	 	 c o m p _ u t i l _ $ d i s p l a y   ( ( t c h r ) ,   0 ,   " 0 " b ) ) ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   i f   c a n t   p u t   c h a r   * / 
 	             e l s e   i f   f c d e v f n t   ^ =   t s t r . d e v f n t   &   t s t r . d e v f n t   ^ =   0 
 	             t h e n 
 	                 d o ; 
 	 	 i f   w o r d   ^ =   " " 	 / *   f l u s h   c u r r e n t   w o r d   * / 
 	 	 t h e n 
 	 	     d o ; 
 	 	         c a l l   p u t _ s t r   ( w o r d ,   w r d w i d t h ) ; 
 	 	         w r d w i d t h   =   0 ; 
 	 	         t s t r . w h i t e   =   " 0 " b ; 
 	 	     e n d ; 	 	 / * * / 
 	 	 	 	 / *   . . t r e a t   l i k e   w h i t e s p a c e   * / 
 	 	 f c w i d t h   =   f n t t b l . u n i t s   ( c h a r _ n d x ) ; 
 	 	 X s p c   =   X s p c   +   f c w i d t h ; 
 
 	 	 i f   t e x t _ s w   &   ^ p r e f _ s w 
 	                     t h e n   c a l l   i o a _   ( " ^ 5 x ( t e x t :   ^ d   ^ i   ^ f   ^ f   " " ^ a " "   ^ ^ f o n t ) " , 
 	 	 	 f c d e v f n t ,   f c w i d t h , 
 	 	 	 s h o w   ( f c w i d t h   *   X m p t s t r k ,   1 2 0 0 0 ) , 
 	 	 	 s h o w   ( ( X p o s   +   X s p c   +   w r d w i d t h )   *   X m p t s t r k , 
 	 	 	 1 2 0 0 0 ) ,   c o m p _ u t i l _ $ d i s p l a y   ( ( t c h r ) ,   0 ,   " 0 " b ) ) ; 
 	                 e n d ; 
 
 	             e l s e 	 	 / *   n o t   w h i t e   s p a c e   * / 
 	                 d o ; 	 	 / *   e m i t   a n y   a c c u m u l a t e d   m o t i o n   * / 
 	                     i f   Y s p c   ^ =   0   |   ( X s p c   ^ =   0   &   t x t l e n   ^ =   0 ) 
 	                     t h e n   c a l l   p l o t   ( S H I F T _ O P ,   X p o s   +   X s p c ,   Y p o s   +   Y s p c ) ; 
 	 	 X s p c ,   Y s p c   =   0 ; 
 	 	 	 	 / *   a n y   P L O T s   o r   u n P L O T s ?   * / 
 	 	 i f   i n d e x   ( r e p l s t r ,   P L O T )   >   0 
 	 	     |   i n d e x   ( r e p l s t r ,   u n P L O T )   >   0 
 	 	 t h e n 
 	 	     d o ; 
 	 	         i   =   1 ; 	 / *   b e g i n n i n g   o f   r e p l   s t r i n g   * / 
 	 	 	 	 / *   i f   i t   d o e s n t   s t a r t   w i t h   u n P L O T   * / 
 
 / * 	 	         i f   i n d e x   ( r e p l s t r ,   u n P L O T )   ^ =   1 
 / * 	 	         t h e n   i f   d e v _ s t a t . p l o t t i n g 
 / * 	 	                   t h e n   
 / * 	 	                       d o ; 
 / * 	 	 	       c a l l   p u t _ s t r   ( ( u n P L O T ) ,   0 ) ; 
 / * 	 	                           d e v _ s t a t . p l o t t i n g   =   " 0 " b ; 
 / * 	 	                       e n d ; 
 / * 	 	                   e l s e ; 	 / * * / 
 / * 	 	 	 	 / *   s c a n   t h e   r e p l s t r   * / 
 	 	         d o   w h i l e   ( i   < =   r e p l _ s t r . l e n ) ; 
 	 	             j   =   i n d e x   ( s u b s t r   ( r e p l s t r ,   i ) ,   P L O T ) ; 
 	 	             i f   j   >   0 	 / *   f o u n d   a   P L O T   * / 
 	 	             t h e n 
 	 	                 d o ; 	 / *   e n t e r   P L O T   m o d e   * / 
 	 	                     d e v _ s t a t . p l o t t i n g   =   " 1 " b ; 
 	 	                     i   =   i   +   j   +   P L O T l e n   -   1 ; 
 	 	                     j   =   0 ; 
 	 	                 e n d ; 
 
 	 	             e l s e 	 / *   n o   P L O T ,   l o o k   f o r   u n P L O T   * / 
 	 	                 d o ; 
 	 	                     j   =   i n d e x   ( s u b s t r   ( r e p l s t r ,   i ) ,   u n P L O T ) ; 
 	 	                     i f   j   >   0 	 / *   f o u n d   a n   u n P L O T   * / 
 	 	                     t h e n 
 	 	                         d o ; 	 / *   l e a v e   P L O T   m o d e   * / 
 	 	                             d e v _ s t a t . p l o t t i n g   =   " 0 " b ; 
 	 	                             i   =   i   +   j   +   u n P L O T l e n   -   1 ; 
 	 	                             j   =   0 ; 
 	 	                         e n d ; 	 / * * / 
 	 	 	 	 / *   n e i t h e r ,   e x i t   l o o p   * / 
 	 	                     e l s e   i   =   r e p l _ s t r . l e n   +   1 ; 
 	 	                 e n d ; 
 	 	         e n d ; 
 	 	     e n d ; 
 i f   t s t r . d e v f n t   =   0 
 	 	 t h e n   c a l l   s e t _ m e d i a   ( f o n t _ i n ,   f c d e v f n t ) ; 
 / * * * *   & p r o c e s s _ t e x t   F O R   h y t e r m   * / 
 / * * * *   N O   C O D E   * / 
 / * * * *   E N D   h y t e r m   * / 
 	                     w o r d   =   w o r d   | |   r e p l s t r ; 
 	 	 f c w i d t h   =   f n t t b l . u n i t s   ( c h a r _ n d x ) ; 
 	 	 w r d w i d t h   =   w r d w i d t h   +   f c w i d t h ; 
 
 	 	 i f   t e x t _ s w   &   ^ p r e f _ s w 
 	                     t h e n   c a l l   i o a _   ( " ^ 5 x ( t e x t :   ^ d   ^ i   ^ f   ^ f   " " ^ a " "   - >   " " ^ a ^ v a " " ) " , 
 	 	 	 f c d e v f n t ,   f c w i d t h , 
 	 	 	 s h o w   ( f c w i d t h   *   X m p t s t r k ,   1 2 0 0 0 ) , 
 	 	 	 s h o w   ( ( X p o s   +   X s p c   +   w r d w i d t h )   *   X m p t s t r k , 
 	 	 	 1 2 0 0 0 ) ,   c o m p _ u t i l _ $ d i s p l a y   ( ( t c h r ) ,   0 ,   " 0 " b ) , 
 	 	 	 c o m p _ u t i l _ $ d i s p l a y   ( r e p l s t r ,   0 ,   " 0 " b ) , 
 	 	 	 r e p l _ s t r . l e n   -   l e n g t h   ( r t r i m   ( r e p l s t r ) ) , 
 	 	 	 "   " ) ; 
 	                 e n d ; 
 	         e n d   f o n t _ c h a r ; 
 
 	     e l s e 
 c t l _ c h a r : 
 	         d o ; 	 	 	 / *   i t s   a   D C 1   c o n t r o l   s t r i n g   * / 
 	             i f   w o r d   ^ =   " " 	 / *   f l u s h   c u r r e n t   w o r d   * / 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   p u t _ s t r   ( w o r d ,   w r d w i d t h ) ; 
 	 	 w r d w i d t h   =   0 ; 
 	 	 t s t r . w h i t e   =   " 0 " b ; 
 	                 e n d ; 
 
 	             D C x x _ p   = 	 	 / *   s e t   c o n t r o l   s t r i n g   o v e r l a y   p t r         * / 
 	                 a d d r   ( s u b s t r   ( l o c t x t ,   i c h r ,   1 ) ) ; 
 	 	 	 	 / *   f o r   d e v i c e / w r i t e r   c o n t r o l s     * / 
 	             i f   d c x x . c t l . t y p e   =   " 0 0 0 " b 
 	             t h e n 
 	                 d o ; 
 ( n o s t r g ) : 	 	 i f   l o n g _ s w 
 	 	 t h e n   c a l l 
 	 	               i o a _   ( " ^ 5 x ( C T L :   ^ [ w a i t ^ ] ^ [ u n s t r t ^ ] ^ [ u n s t o p ^ ] " 
 	 	               | |   "   ^ a ^ [   X p o s = ^ f ^ ; ^ s ^ ] ) " ,   ( d c f s . t y p e   =   t y p e _ w a i t ) , 
 	 	               ( d c f s . t y p e   =   t y p e _ u n s t a r t ) , 
 	 	               ( d c f s . t y p e   =   t y p e _ u n s t o p ) , 
 	 	               c o m p _ u t i l _ $ d i s p l a y 
 	 	               ( ( s u b s t r   ( l o c t x t ,   i c h r ,   d c x x . l e n g   +   3 ) ) ,   0 ,   " 0 " b ) , 
 	 	               ( d c f s . t y p e   =   t y p e _ u n s t a r t ) 
 	 	               |   ( d c f s . t y p e   =   t y p e _ u n s t o p ) , 
 	 	               s h o w   ( ( X p o s   +   X s p c )   *   X m p t s t r k ,   1 2 0 0 0 ) ) ; 
 / *   a   m i d p a g e   w a i t ? 	             * / 
 	 	 i f   d c f s . t y p e   =   t y p e _ w a i t 
 	 	 t h e n 
 	 	     d o ; 	 	 	 / *   a n y   a c c u m u l a t e d   m o t i o n ?   * / 
 	 	         i f   X s p c   ^ =   0 
 	 	         t h e n   c a l l   p l o t   ( S H I F T _ O P ,   X p o s   +   X s p c ,   Y p o s ) ; 
 	 	         X s p c   =   0 ; 	 / * * / 
 	 	 	 	 / *   u s e r   w i l l   g i v e   N L   * / 
 	 	         Y s p c   =   Y s p c   -   d i v i d e   ( 1 2 0 0 0 ,   Y p i x e l ,   3 1 ,   0 ) ; 
 	 	         p a g e _ r e c o r d . h a l t 4   =   " 1 " b ; 
 	 	         p a g e _ r e c o r d . n e x t r e f   =   " 0 " b ; 
 	 	         p a g e _ r e c o r d _ p t r   =   a d d r   ( p a g e _ r e c o r d . n e x t r e f ) ; 
 	 	         p a g e _ r e c o r d . l e n g ,   t s t r . l a s t _ c r   =   0 ; 
 	 	         u n s p e c   ( p a g e _ r e c o r d . s w s )   =   " 0 " b ; 
 	 	         p a g e _ r e c o r d . i n _ u s e   =   " 1 " b ; 
 p a g e _ r e c o r d . p w h e e l   =   n e e d _ w h e e l ; 
 e n d ; 	 	 / * * / 
 / *   s t a r t   u n d e r s c o r e ?             * / 
 	 	 i f   d c f s . t y p e   =   t y p e _ u n s t a r t 
 	 	 t h e n 
 	 	     d o ; 
 	 	         u n s t a r t   =   m a x   ( X p o s   +   X s p c ,   L m a r g ) ; 
 	 	         u n s t r i n g   =   " 1 " b ; 
 	 	     e n d ; 	 	 / * * / 
 	 	 	 	 / *   s t o p   u n d e r s c o r e ?               * / 
 	 	 i f   d c f s . t y p e   =   t y p e _ u n s t o p 
 	 	 t h e n 
 	 	     d o ; 	 	 / *   u n d e r s c o r i n g   a c t i v e ?   * / 
 	 	         i f   u n s t r i n g   &   t s t r _ l i n e   ^ =   " " 
 	 	             & 
 	 	             ^ ( p a g e _ i m a g e . l i n e   ( i l i n ) . c b a r 
 	 	             |   p a g e _ i m a g e . l i n e   ( i l i n ) . m r g t x t ) 
 	 	         t h e n 
 	 	             d o ; 
 	 	                 c a l l   p u t _ u n s ; 
 	 	                 u n s t r i n g   =   " 0 " b ; 
 	 	             e n d ; 
 	 	     e n d ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   a   f o n t   c h a n g e ?   * / 
 	             e l s e   i f   d c f s . t y p e   =   t y p e _ f o n t   
 	             t h e n 
 	                 d o ; 
 	 	 i f   l o n g _ s w 
 	 	 t h e n 
 	 	     d o ; 
 ( n o s t r g ) : 	 	         d e b u g _ s t r   =   s u b s t r   ( l o c t x t ,   i c h r ,   d c x x . l e n g   +   3 ) ; 
 	 	         c a l l   i o a _   ( " ^ 5 x ( C T L :   f o n t   ^ a ) " , 
 	 	             c o m p _ u t i l _ $ d i s p l a y   ( d e b u g _ s t r ,   0 ,   " 0 " b ) ) ; 
 	 	     e n d ; 
 
 	 	 n e e d _ f o n t   =   d c f s . f ; 
 	 	 n e e d _ s i z e   =   d c f s . p ; 
 	 	 c a l l   s e t _ f o n t   ( n e e d _ f o n t ,   n e e d _ s i z e ) ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   a   l i t e r a l ?   * / 
 	             e l s e   i f   d c f s . t y p e   =   t y p e _ l i t 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   p u t _ s t r   ( s u b s t r   ( l o c t x t ,   i c h r   +   3 ,   d c x x . l e n g ) ,   0 ) ; 
 
 	 	 i f   l o n g _ s w 
 	 	 t h e n 
 	 	     d o ; 
 ( n o s t r g ) : 	 	         d e b u g _ s t r   =   s u b s t r   ( l o c t x t ,   i c h r ,   d c x x . l e n g   +   3 ) ; 
 	 	         c a l l   i o a _   ( " ^ 5 x ( C T L :   l i t e r a l   ^ a ) " , 
 	 	               c o m p _ u t i l _ $ d i s p l a y   ( d e b u g _ s t r ,   0 ,   " 0 " b ) ) ; 
 	 	     e n d ; 
 	                 e n d ; 
 
 	             e l s e 	 	 / *   i t s   e i t h e r   a   s h i f t   o r   a   v e c t o r   * / 
 	                 d o ; 	 	 / *   f e t c h   a   s h o r t   X   * / 
 	 	 i f   ( d c x x . X c t l   =   " 0 1 " b )   
 	 	 t h e n   X m p t s   =   d c s h o r t _ v a l . v 1 ; 
 	 	 	 	 / *   f e t c h   a   l o n g   X   * / 
 	 	 e l s e   i f   ( d c x x . X c t l   =   " 1 0 " b ) 
 	 	 t h e n   X m p t s   =   d c l o n g _ v a l . v 1 ; 
 	 	 e l s e   X m p t s   =   0 ; 	 / *   n o   X   m o v e m e n t   * / 
 
 	 	 i f   ( d c x x . X c t l   ^ =   " 0 0 " b ) 
 	 	 t h e n 	 	 / *   i f   X   i s   g i v e n   * / 
 	 	     d o ; 	 	 / *   t h e n   Y   i s   i n   v 2   * / 
 	 	 	 	 / *   f e t c h   a   s h o r t   Y   * / 
 	 	         i f   ( d c x x . Y c t l   =   " 0 1 " b ) 
 	 	         t h e n   Y m p t s   =   d c s h o r t _ v a l . v 2 ; 
 	 	 	 	 / *   f e t c h   a   l o n g   Y   * / 
 	 	         e l s e   i f   ( d c x x . Y c t l   =   " 1 0 " b ) 
 	 	         t h e n   Y m p t s   =   d c l o n g _ v a l . v 2 ; 
 	 	         e l s e   Y m p t s   =   0 ; 
 	 	     e n d ; 
 
 	 	 e l s e 	 	 / *   n o   X   w a s   g i v e n   * / 
 	 	     d o ; 	 	 / *   f e t c h   a   s h o r t   Y   * / 
 	 	         i f   ( d c x x . Y c t l   =   " 0 1 " b ) 
 	 	         t h e n   Y m p t s   =   d c s h o r t _ v a l . v 1 ; 
 	 	 	 	 / *   f e t c h   a   l o n g   Y   * / 
 	 	         e l s e   i f   ( d c x x . Y c t l   =   " 1 0 " b ) 
 	 	         t h e n   Y m p t s   =   d c l o n g _ v a l . v 1 ; 
 	 	         e l s e   Y m p t s   =   0 ; 
 	 	     e n d ; 	 	 / * * / 
 	 	 	 	 / *   s h i f t   * / 
 	 	 i f   d c x x . t y p e   =   " 1 0 0 " b 
 	 	 t h e n 
 	 	     d o ; 
 	 	         i f   f o n t _ i n   =   0 
 	 	         t h e n   c a l l   s e t _ f o n t   ( n e e d _ f o n t ,   n e e d _ s i z e ) ; 
 
 	 	         X m o v   =   s i g n   ( X m p t s ) 
 	 	             * 
 	 	             r o u n d   ( d i v i d e   ( a b s   ( X m p t s )   -   4 ,   X m p t s t r k ,   3 1 ,   1 ) ,   0 ) ; 
 	 	         X s p c   =   X s p c   +   X m o v ; 
 
 	 	         Y m o v   =   s i g n   ( Y m p t s ) 
 	 	             * 
 	 	             d i v i d e   ( a b s   ( Y m p t s ) ,   Y p i x e l ,   1 7 ,   0 ) ; 
 	 	         Y s p c   =   Y s p c   +   Y m o v ; 
 
 	 	         i f   l o n g _ s w 
 	 	         t h e n 
 	 	             d o ; 
 ( n o s t r g ) : 	 	                 d e b u g _ s t r   =   s u b s t r   ( l o c t x t ,   i c h r ,   d c x x . l e n g   +   3 ) ; 
 	 	                 c a l l   i o a _   ( " ^ 5 x ( C T L :   s h i f t   ^ f   ^ f   ( ^ f   ^ f )   ^ a ) " , 
 	 	                     s h o w   ( X m p t s ,   1 2 0 0 0 ) ,   s h o w   ( Y m p t s ,   1 2 0 0 0 ) , 
 	 	 	 s h o w   ( X s p c   *   X m p t s t r k ,   1 2 0 0 0 ) ,   s h o w   ( Y s p c , 1 2 0 0 0 ) , 
 	 	                     c o m p _ u t i l _ $ d i s p l a y   ( d e b u g _ s t r ,   0 ,   " 0 " b ) ) ; 
 	 	             e n d ; 
 	 	     e n d ; 
 
 	 	 e l s e 
 	 	     d o ; 	 	 / *   n o t   s h i f t ,   i t   m u s t   b e   v e c t o r   * / 
 	 	         i f   X s p c   ^ =   0   |   X m p t s   >   0 
 	 	         t h e n   i f   f o n t _ i n   ^ =   n e e d _ f o n t   |   f o n t _ s i z e   ^ =   n e e d _ s i z e 
 	 	             t h e n   c a l l   s e t _ f o n t   ( n e e d _ f o n t ,   n e e d _ s i z e ) ; 
 	 	 	   	 / *   n e e d   t o   p o s i t i o n   f i r s t ?   * / 
 	 	         i f   X s p c   ^ =   0   |   Y s p c   ^ =   0 
 	 	         t h e n   c a l l   p l o t   ( S H I F T _ O P ,   X p o s   +   X s p c ,   Y p o s   +   Y s p c ) ; 
 	 	         X s p c ,   Y s p c   =   0 ; 
 
 	 	         X s p c   =   d i v i d e   ( X m p t s ,   X m p t s t r k ,   3 1 ,   0 ) ; 
 	 	         Y s p c   =   d i v i d e   ( Y m p t s ,   Y p i x e l ,   3 1 ,   0 ) ; 
 
 	 	         i f   l o n g _ s w 
 	 	         t h e n 
 	 	             d o ; 
 ( n o s t r g ) : 	 	                 d e b u g _ s t r   =   s u b s t r   ( l o c t x t ,   i c h r ,   d c x x . l e n g   +   3 ) ; 
 	 	                 c a l l   i o a _   ( " ^ 5 x ( C T L :   v e c t o r   ^ f   ^ f   ^ a ) " , 
 	 	                     s h o w   ( X m p t s ,   1 2 0 0 0 ) ,   s h o w   ( Y m p t s ,   1 2 0 0 0 ) , 
 	 	                     c o m p _ u t i l _ $ d i s p l a y   ( d e b u g _ s t r ,   0 ,   " 0 " b ) ) ; 
 	 	             e n d ; 
 	 	         c a l l   p l o t   ( V E C T O R _ O P ,   X p o s   +   X s p c ,   Y p o s   +   Y s p c ) ; 
 	 	         X s p c ,   Y s p c   =   0 ; 
 	 	     e n d ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   m o v e   t o   l a s t   c t l   c h a r   * / 
 	             i c h r   =   i c h r   +   d c x x . l e n g   +   2 ; 
 	     e n d   c t l _ c h a r ; 	 	 / *   e n d   o f   c o n t r o l   s e q u e n c e   l o o p   * / 
 e n d _ c h a r s : 
 	 e n d   c h a r _ l o o p ; 
 
 	 i f   w o r d   ^ =   " " 	 / *   f l u s h   l a s t   w o r d   * / 
 	 t h e n 
 	     d o ; 
 	         c a l l   p u t _ s t r   ( w o r d ,   w r d w i d t h ) ; 
 	         w r d w i d t h   =   0 ; 
 	         t s t r . w h i t e   =   " 0 " b ; 
 	     e n d ; 
 
 	 i f   u n s t r i n g   	 	 	 / *   u n d e r s c o r i n g   a c t i v e ?   * / 
 	     &   ^ ( p a g e _ i m a g e . l i n e   ( i l i n ) . c b a r   |   p a g e _ i m a g e . l i n e   ( i l i n ) . m r g t x t ) 
 	 t h e n   c a l l   p u t _ u n s ; 
 / * * * *   & l i n e _ f i n i s h   F O R   h y t e r m   * / 
 / * * * *   N O   C O D E   * / 
 / * * * *   E N D   h y t e r m   * / 
 	 i f   d e t a i l _ s w 
 	 t h e n 
 	     d o ; 
 	         c a l l   i o a _   ( " ^ 5 x ( l i n e _ f i n i s h :   t s t r   l v l = ^ d   ^ [ ^ ^ ^ ] o p n   Y = ^ f   X = ^ f   l n = ^ d ) " , 
 	             w i n d o w _ l e v e l ,   ^ ( t s t r . o p e n ) ,   s h o w   ( Y p o s   *   Y p i x e l ,   1 2 0 0 0 ) , 
 	             s h o w   ( X p o s   *   X m p t s t r k ,   1 2 0 0 0 ) ,   l e n g t h   ( t s t r _ l i n e ) ) ; 
 	             i f   t s t r . o p e n 
 	             t h e n   c a l l   i o a _   ( " " " ^ a ^ v a " " " , 
 	             c o m p _ u t i l _ $ d i s p l a y   ( r t r i m   ( t s t r _ l i n e ) ,   0 ,   " 0 " b ) , 
 	             l e n g t h   ( t s t r _ l i n e )   -   l e n g t h   ( r t r i m   ( t s t r _ l i n e ) ) ,   "   " ) ; 
 	     e n d ; 
                 e n d ; 
 
         e n d   i m a g e _ l o o p ; 
 
 f i n i s h _ p a g e : 
         i f   d e t a i l _ s w 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( f i n i s h _ p a g e : ) " ) ; 
 	 	 	 	 / *   a d d   a n y   t r a i l i n g   l e a d   * / 
         i f   p a g e _ i m a g e . l i n e   ( p a g e _ i m a g e . c o u n t ) . w h i t e 
         t h e n   c a l l   p l o t   ( S H I F T _ O P ,   0 ,   Y p o s   + 
 	   d i v i d e   ( p a g e _ i m a g e . l i n e   ( p a g e _ i m a g e . c o u n t ) . l e a d ,   Y p i x e l ,   3 1 ,   0 ) ) ; 
         c a l l   p u t _ ; 	 	 	 / *   f l u s h   o u t p u t   i m a g e   * / 
 
         c a l l   r e l e a s e _ w i n d o w ; 	 	 / *   d i s c a r d   i m a g e   j u s t   p u t   * / 
 
         i f   ^ o p t i o n . g a l l e y _ o p t 
         t h e n 
             d o ; 
                 i f   c o m p _ d v t . e n d p a g e   ^ =   " 0 " b 	 / *   i f   F F   i s   d e f i n e d ,   t h e n   * / 
                 t h e n 	 	 	 / *   r e p l a c e   l a s t   N L   w i t h   i t   * / 
 	 s u b s t 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 ,   1 )   = 
 	     b y t e   ( b i n   ( c o m p _ d v t . e n d p a g e ) ) ; 
 	   	 	 	 / *   e l s e   r u n   o u t   t h e   p a g e   w i t h   N L s   * / 
                 e l s e   i f   Y p o s   <   d i v i d e   ( p a g e . p a r m s . l e n g t h ,   Y p i x e l ,   3 1 ,   0 ) 
                 t h e n 
 	 d o ; 
 	     r u n o u t   =   d i v i d e   ( p a g e . p a r m s . l e n g t h ,   1 2 0 0 0 ,   3 1 ,   0 )   -   1   - 
 	         d i v i d e   ( Y p o s ,   l i n e _ w i n d o w _ s i z e ,   3 1 ,   0 )   -   b i n   ( o p t i o n . s t o p _ o p t ) ; 
 	     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   +   r u n o u t ; 
 	     s u b s t 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   -   r u n o u t   +   1 , 
 	         r u n o u t )   =   c o p y   ( N L ,   r u n o u t ) ; 
 	 e n d ; 	 	 	 / * * / 
 / * * * *   & p a g e _ f i n i s h   F O R   h y t e r m   * / 
 	 	 	 / *   s h o w   t h i s   f o n t   o u t p u t   c o m p l e t e   * / 
         s u b s t r   ( f o n t s _ d o n e ,   f o n t _ i n ,   1 )   =   " 1 " b ; 
 	 	 	 	 / *   l o o k   f o r   a n o t h e r   f o n t   * / 
         n e e d _ f o n t   =   i n d e x   ( f o n t s _ n e e d e d   &   ^ f o n t s _ d o n e ,   " 1 " b ) ; 
         i f   n e e d _ f o n t   ^ =   0 	 	 / *   i f   a n o t h e r   w h e e l   i s   n e e d e d   * / 
         &   f o n t _ w h e e l   ( n e e d _ f o n t )   ^ =   f o n t _ w h e e l   ( f o n t _ i n ) 
         t h e n 
             d o ; 
                 p a g e _ r e c o r d . n e x t r e f   =   " 0 " b ; 
                 p a g e _ r e c o r d _ p t r   =   a d d r   ( p a g e _ r e c o r d . n e x t r e f ) ; 
                 f o n t _ i n ,   t s t r . d e v f n t   =   0 ;   	 / *   e r a s e   c u r r e n t   f o n t ,   d e v f n t   * / 
                 c a l l   s e t _ f o n t   ( n e e d _ f o n t ,   f o n t _ s i z e ) ; 
                 c a l l   s e t _ m e d i a   ( n e e d _ f o n t ,   f o n t _ m e d i a   ( n e e d _ f o n t ) ) ; 
                 g o t o   r e s c a n _ p a g e ; 
             e n d ; 
 
 / * * * *   E N D   h y t e r m   * / 
             e n d ; 
 
         p a g e _ r e c o r d . n e x t r e f   =   " 0 " b ; 	 / *   s h o w   n o t h i n g   f o l l o w s   * / 
 
 r e t u r n _ : 
         i f   d e b u g _ s w 
         t h e n   c a l l   i o a _   ( "           ( h y t e r m _ w r i t e r _ ) " ) ; 
         r e t u r n ; 
 % p a g e ; 
 f o o t p r o c : 
       e n t r y   ( f o o t r e f ,   p t r ) ; 
 
 / *   P A R A M E T E R S   * / 
 / *   	 	 	 	 a c t u a l   r e f e r e n c e   s t r i n g   * / 
             d c l   f o o t r e f 	           ( 3 )   c h a r   ( * )   v a r ; 
             d c l   p t r 	           p t r ; 	 	 / *   - >   c o m p _ d v t   * / 
 	 	 	 	 / *   & f o o t _ p r o c   f o r   h y t e r m   * / 
 d c l   1   s u p e r 	           l i k e   d c s h o r t _ v a l ; 
             d c l   1   s u b 	           l i k e   d c s h o r t _ v a l ; 
             d c l   s s c h a r 	           c h a r   ( 5 )   b a s e d ; 
 
             s u p e r . m a r k ,   s u b . m a r k   =   D C 1 ; 
             s u p e r . t y p e ,   s u b . t y p e   =   t y p e _ s y ; 
             s u p e r . l e n g ,   s u b . l e n g   =   d c s h o r t 1 _ l e n ; 
             s u p e r . v 1   =   - 4 5 0 0 ; 
             s u b . v 1   =   4 5 0 0 ; 
             f o o t r e f   ( 1 )   =   a d d r   ( s u p e r )   - >   s s c h a r ; 
             f o o t r e f   ( 3 )   =   a d d r   ( s u b )   - >   s s c h a r ; 
 i f   ( s h a r e d . b u g _ m o d e   |   d b _ s w ) 
         t h e n   d o ; 
               c a l l   i o a _   ( " h y t e r m _ w r i t e r _ $ f o o t p r o c :   ^ a " , 
 	 c o m p _ u t i l _ $ d i s p l a y   ( f o o t r e f   ( 1 )   | |   f o o t r e f   ( 2 )   | |   f o o t r e f   ( 3 ) ,   0 , 
 	 " 0 " b ) ) ; 
         e n d ; 
         r e t u r n ; 
 
 % p a g e ; 
 / *   T h i s   r o u t i n e   r e t u r n s   a   p r i n t a b l e   i n t e r p r e t a t i o n   o f   a   n a t i v e   d e v i c e   s t r i n g   * / 
 
 d c l   h y t e r m _ w r i t e r _ $ d i s p l a y   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 ) )   r e t u r n s   ( c h a r   ( * )   v a r ) ; 
 
 d i s p l a y : 
     e n t r y   ( d t e x t ,   d l e n ,   n o e r r )   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   d t e x t 	       c h a r   ( * )   v a r ; 	 / *   s t r i n g   t o   b e   d i s p l a y e d   * / 
         d c l   d l e n 	       f i x e d   b i n   ( 2 4 ) ; 	 / *   c h a r s   s c a n n e d   b y   t h i s   c a l l   * / 
         d c l   n o e r r 	       b i t   ( 1 ) ; 	 / *   1 =   d o n t   p r i n t   e r r o r   m e s s a g e s   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   c h 	       c h a r   ( 1 ) ; 	 / *   e x t r a c t e d   t e x t   c h a r   * / 
         d c l   c t 	       f i x e d   b i n ; 	 / *   n u m b e r   o f   d u p l i c a t e   c h a r s   * / 
         d c l   d s t r 	       c h a r   ( 1 0 2 0 )   v a r ; 	 / *   w o r k i n g   s t r i n g   * / 
         d c l   r t n _ s t r 	       c h a r   ( 1 6 3 8 4 )   v a r ; / *   r e t u r n   s t r i n g   * / 
 
         i f   d e v _ s t a t _ p t r   =   n u l l   ( ) 
         t h e n   d e v _ s t a t _ p t r   =   a d d r   ( s t a t _ b l k ) ; 
 
         i f   s t a t _ b l k   ( 1 )   ^ =   - 1 	 	 / *   c h e c k   s t a t u s   b l o c k   * / 
         t h e n 
             d o ; 
                 s t a t _ b l k   ( * )   =   0 ; 
                 s t a t _ b l k   ( 1 )   =   - 1 ; 
             e n d ; 
 
         r t n _ s t r   =   " " ; 	 	 	 / *   c l e a r   r e t u r n   s t r i n g   * / 
         c t   =   0 ; 
 
         i f   d e v _ s t a t . p l o t t i n g 
         t h e n   g o t o   d e v i c e _ d i s p l a y ; 
 
         c h   =   s u b s t r   ( d t e x t ,   1 ,   1 ) ; 	 / *   e x t r a c t   a   c h a r   * / 
 
         i f   c h   =   T H I N 
         t h e n 
             d o ; 
                 c t   =   v e r i f y   ( d t e x t ,   T H I N ) ; 	 / *   h o w   m a n y ?   * / 
                 i f   c t   =   0                 / *   a l l   t h e   r e s t   * / 
                 t h e n   c t   =   l e n g t h   ( d t e x t ) ; 
                 e l s e   c t   =   c t   -   1 ; 
 
                 i f   c t   >   1                 / *   i f   m o r e   t h a n   o n e   * / 
                 t h e n   c a l l   i o a _ $ r s n n l   ( " < T H N * ^ d > " ,   d s t r ,   0 ,   c t ) ; 
                 e l s e   d s t r   =   " < T H N > " ; 
 
                 r t n _ s t r   =   r t n _ s t r   | |   d s t r ; 
             e n d ; 
 
                   e l s e   i f   c h   =   D E V I T 
                   t h e n   d o ; 
 	     c t   =   v e r i f y   ( d t e x t ,   D E V I T ) ; 	 / *   h o w   m a n y ?   * / 
 	     i f   c t   =   0                 / *   a l l   t h e   r e s t   * / 
 	     t h e n   c t   =   l e n g t h   ( d t e x t ) ; 
 	     e l s e   c t   =   c t   -   1 ; 
 
 	     i f   c t   >   1                 / *   i f   m o r e   t h a n   o n e   * / 
 	     t h e n   c a l l   i o a _ $ r s n n l   ( " < D V T * ^ d > " ,   d s t r ,   0 ,   c t ) ; 
 	     e l s e   d s t r   =   " < D V T > " ; 
 
 	     r t n _ s t r   =   r t n _ s t r   | |   d s t r ; 
                   e n d ; 
 
         e l s e 
             d o ; 
 d e v i c e _ d i s p l a y : 	 	 	 / *   & d i s p l a y   F O R   D E V I C E   h y t e r m   * / 
 i f   c h   =   E S C 
                 t h e n 
 	 d o ; 
 	     i f   i n d e x   ( d t e x t ,   S E T _ H M I )   =   1 
 	     t h e n 
 	         d o ; 
 	             c h   =   s u b s t r   ( d t e x t ,   3 ,   1 ) ; 
 	             c a l l   i o a _ $ r s n n l   ( " < H M I ^ d / 1 2 0 > " ,   r t n _ s t r ,   0 ,   r a n k   ( c h )   -   1 ) ; 
 	             c t   =   3 ; 
 	         e n d ; 
 
 	     e l s e   i f   i n d e x   ( d t e x t ,   A B S _ T A B )   =   1 
 	     t h e n 
 	         d o ; 
 	             i f   l e n g t h   ( d t e x t )   <   3 
 	             t h e n   g o t o   d i s p _ r e t ; 	 / *   n o   c o l u m n   b y t e   * / 
 
 	             c h   =   s u b s t r   ( d t e x t ,   3 ,   1 ) ; 
 	             c a l l   i o a _ $ r s n n l   ( " < D T - ^ d > " ,   r t n _ s t r ,   0 ,   r a n k   ( c h ) ) ; 
 	             c t   =   3 ; 
 	         e n d ; 
 
 	     e l s e   i f   i n d e x   ( d t e x t ,   R L F )   =   1 
 	     t h e n 
 	         d o ; 
 	             c t   =   v e r i f y   ( d t e x t ,   R L F ) ; 
 	             i f   c t   =   0 
 	             t h e n   c t   =   d i v i d e   ( l e n g t h   ( d t e x t ) ,   R L F l e n ,   1 7 ,   0 ) ; 
 	             e l s e   c t   =   d i v i d e   ( c t   -   1 ,   R L F l e n ,   1 7 ,   0 ) ; 
 
 	             i f   c t   >   1 
 	             t h e n   c a l l   i o a _ $ r s n n l   ( " < R L F * ^ d > " ,   d s t r ,   0 ,   c t ) ; 
 	             e l s e   d s t r   =   " < R L F > " ; 
 
 	             r t n _ s t r   =   r t n _ s t r   | |   d s t r ; 
 	             c t   =   c t   *   R L F l e n ; 
 	         e n d ; 
 
 	     e l s e   i f   i n d e x   ( d t e x t ,   P L O T )   =   1 
 	     t h e n   i f   i n d e x   ( d t e x t ,   u n P L O T )   ^ =   0 
 	 t h e n 
 	     d o ; 
 	     r t n _ s t r   =   r t n _ s t r   | |   " < P L T [ " ; 
 	     c t   =   2 ; 
 	     i   =   3 ; 
 
 u n p l o t : 
 	     d o   i   =   i   b y   0   w h i l e   ( i   < =   l e n g t h   ( d t e x t ) ) ; 
 	         i f   i n d e x   ( s u b s t r   ( d t e x t ,   i ) ,   u n P L O T )   =   1 
 	                   |   i n d e x   ( s u b s t r   ( d t e x t ,   i ) ,   C R )   =   1 
 	         t h e n 
 	             d o ; 
 	                 r t n _ s t r   =   r t n _ s t r   | |   " ] > " ; 
 	                 c t   =   c t   +   2 ; 
 	                 g o t o   d i s p _ r e t ; 
 	             e n d ; 
 
 	         e l s e   i f   i n d e x   ( s u b s t r   ( d t e x t ,   i ) ,   P L O T )   =   1 
 	         t h e n 
 	             d o ; 
 	                 r t n _ s t r   =   r t n _ s t r   | |   " < P L T > " ; 
 	                 c t   =   c t   +   2 ; 
 	                 i   =   i   +   2 ; 
 	             e n d ; 
 
 	         e l s e 	 	 	 / *   l o o k   f o r   m o t i o n   s t r i n g s   * / 
 	             d o ; 
 	                 d o   j   =   1   t o   d i m e n s i o n   ( p l o t _ s t r ,   1 )   b y   2 
 	 	       w h i l e   ( i n d e x   ( s u b s t r   ( d t e x t ,   i ) ,   p l o t _ s t r   ( j ) )   ^ =   1 ) ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   a   s t r a n g e r ?   * / 
 	                 i f   j   >   d i m e n s i o n   ( p l o t _ s t r ,   1 ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     c h   =   s u b s t r   ( d t e x t ,   i ,   1 ) ; 
 	 	     c a l l   i o a _ $ r s n n l   ( " < ^ . 3 b > " ,   d s t r ,   0 ,   u n s p e c   ( c h ) ) ; 
 	 	     r t n _ s t r   =   r t n _ s t r   | |   d s t r ; 
 	 	     c t   =   c t   +   1 ; 
 	 	     i   =   i   +   1 ; 
 	 	 e n d ; 
 
 	                 e l s e 
 	 	 d o ; 
 	 	     d o   k   =   0   b y   l e n g t h   ( p l o t _ s t r   ( j ) ) 
 	 	               w h i l e   ( i n d e x   ( s u b s t r   ( d t e x t ,   i   +   k ) ,   p l o t _ s t r   ( j ) ) 
 	 	               =   1 ) ; 
 	 	     e n d ; 
 
 	 	     c a l l   i o a _ $ r s n n l   ( " ^ [ ( ^ d * ^ ; ^ s ^ ] ^ a ^ [ ) ^ ] " ,   d s t r ,   0 , 
 	 	               ( k   >   l e n g t h   ( p l o t _ s t r   ( j ) ) ) , 
 	 	               d i v i d e   ( k ,   l e n g t h   ( p l o t _ s t r   ( j ) ) ,   1 7 ,   0 ) , 
 	 	               p l o t _ s t r   ( j   +   1 ) ,   ( k   >   l e n g t h   ( p l o t _ s t r   ( j ) ) ) ) ; 
 	 	     r t n _ s t r   =   r t n _ s t r   | |   d s t r ; 
 	 	     c t   =   c t   +   k ; 
 	 	     i   =   i   +   k ; 
 	 	 e n d ; 
 	             e n d ; 
 	     e n d ; 
 	 e n d ; 
 
 	 e l s e   c t   =   - 1 ; 
                   e n d ; 
 
                   e l s e   i f   c h   =   R L F 
                   t h e n   d o ; 
 	     c t   =   v e r i f y   ( d t e x t ,   R L F ) ;   / *   h o w   m a n y ?   * / 
 	     i f   c t   =   0                 / *   a l l   t h e   r e s t   * / 
 	     t h e n   c t   =   d i v i d e   ( l e n g t h   ( d t e x t ) ,   l e n g t h   ( R L F ) ,   1 7 ,   0 ) ; 
 	     e l s e   c t   =   d i v i d e   ( c t   -   1 ,   2 ,   1 7 ,   0 ) ; 
 
 	     i f   c t   >   1                 / *   i f   m o r e   t h a n   o n e   * / 
 	     t h e n   c a l l   i o a _ $ r s n n l   ( " < R L F * ^ d > " ,   d s t r ,   0 ,   c t ) ; 
 	     e l s e   d s t r   =   " < R L F > " ; 
 
 	     r t n _ s t r   =   r t n _ s t r   | |   d s t r ; 
 	     c t   =   ( c t   +   b i n   ( c t   =   0 ) )   *   l e n g t h   ( R L F ) ; 
                   e n d ; 
 
                   e l s e   i f   c h   =   V M I 
                   t h e n 
 	   d o ; 
 	       i   =   i   +   3 ; 
 	       r t n _ s t r   =   r t n _ s t r   | |   " < V M I " ; 
 	       r t n _ s t r   =   r t n _ s t r   | |   l t r i m (   c h a r   ( r a n k   ( s u b s t r   ( d t e x t ,   i - 1 ,   1 ) )   - 1 ) ) ; 
 	       r t n _ s t r   =   r t n _ s t r   | |   " / 4 8 > " ; 
 	   e n d ; 
 
                   e l s e   i f   c h   =   u n P L O T 
                   t h e n 
 	   d o ; 
 	       r t n _ s t r   =   r t n _ s t r   | |   " ] > " ; 
 	       i   =   i   +   u n P L O T l e n ; 
 	 e n d ; 
 
                   e l s e   c t   =   0 ; 
 	 	 	 	 / * * / 
 	 	 	 	 / *   E N D   D E V I C E   h y t e r m   * / 
             e n d ; 
 
 d i s p _ r e t : 
             d l e n   =   c t ; 
 
             r e t u r n   ( r t n _ s t r ) ; 	 	 / *   e n d   o f   d i s p l a y   * / 
 % p a g e ; 
 a r t p r o c :   e n t r y   ( ) ; 	 	 	 / * * / 
 	 	 	 	 / *   & a r t _ p r o c   f o r   h y t e r m   * / 
 / * * * *   N O   C O D E   * / r e t u r n ; 
 % p a g e ; 
 b l a t :   p r o c ; 
 
 d c l   b l a t s t r   c h a r   ( 1 0 2 0 )   v a r ; 
 
               c a l l   i o a _ $ n n l   ( " : ^ 3 d ^ 3 d / ^ d ^ 1 2 t ^ 4 d / ^ i ^ 1 8 t ^ 5 ( ^ 8 f ^ ) "   | | 
 	 "   ^ [ I ^ ] ^ [ O ^ ] ^ [ L ^ ] ^ [ C ^ ] ^ [ R ^ ] ^ [ J ^ ] ^ [ L ^ ] ^ 6 0 t ^ 3 i   ^ 6 a   ^ f ^ / ^ 4 x " ,   i l i n , 
 	 p a g e _ i m a g e . l i n e   ( i l i n ) . f i l e n o ,   p a g e _ i m a g e . l i n e   ( i l i n ) . l i n e n o , 
 	 t x t l e n ,   p a g e _ i m a g e . l i n e   ( i l i n ) . g a p s , 
 	 s h o w   ( p a g e _ i m a g e . l i n e   ( i l i n ) . l m a r g ,   1 2 0 0 0 ) , 
 	 s h o w   ( p a g e _ i m a g e . l i n e   ( i l i n ) . r m a r g ,   1 2 0 0 0 ) , 
 	 s h o w   ( p a g e _ i m a g e . l i n e   ( i l i n ) . w i d t h ,   1 2 0 0 0 ) , 
 	 s h o w   ( p a g e _ i m a g e . l i n e   ( i l i n ) . d e p t h ,   1 2 0 0 0 ) , 
 	 s h o w   ( p a g e _ i m a g e . l i n e   ( i l i n ) . l e a d ,   1 2 0 0 0 ) , 
 	 q u a d   &   q u a d i ,   q u a d   &   q u a d o ,   q u a d   &   q u a d l , 
 	 q u a d   &   q u a d c ,   q u a d   &   q u a d r ,   q u a d   &   j u s t ,   ( q u a d   =   " 0 " b ) , 
 	 p a g e _ i m a g e . l i n e   ( i l i n ) . l f n t , 
 	 f n t t b l d a t a . p t r   ( p a g e _ i m a g e . l i n e   ( i l i n ) . l f n t )   - >   f n t t b l . e n t r y . n a m e , 
 	 s h o w   ( f n t t b l d a t a . p t r   ( p a g e _ i m a g e . l i n e   ( i l i n ) . l f n t )   - >   f n t t b l . e n t r y . s i z e ,   1 0 0 0 ) , 
 	 t x t l e n ) ; 
 
               b l a t s t r   =   c o m p _ u t i l _ $ d i s p l a y   ( s u b s t r   ( l o c t x t ,   1 ,   t x t l e n ) ,   0 ,   " 0 " b ) ; 
               c a l l   i o a _   ( " " " ^ a ^ v a " " " ,   b l a t s t r , 
 	 l e n g t h   ( b l a t s t r )   -   l e n g t h   ( r t r i m   ( b l a t s t r ) ) ,   "   " ) ; 
         e n d   b l a t ; 
 % p a g e ; 
 r e l e a s e _ w i n d o w : 
         p r o c ; 
 
             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   ( w i n d o w _ a r e a _ p t r ,   0 ) ; 
 
         e n d   r e l e a s e _ w i n d o w ; 
 % p a g e ; 
 m o v e _ t s t r : 	 	 	 / *   m o v e   t s t r   p t r   t o   n e w   w i n d o w   l e v e l   * / 
       p r o c   ( i n c r ) ; 
 
 / *   P A R A M E T E R S   * / 
 
       d c l   i n c r 	     f i x e d   b i n   ( 3 1 ) ; 	 / *   a m o u n t   t o   m o v e   * / 
 
       i f   d e t a i l _ s w 
       t h e n   c a l l   i o a _   ( " ^ - ( m o v e _ t s t r :   ^ d   - >   ^ d ) " ,   w i n d o w _ l e v e l , 
 	   w i n d o w _ l e v e l   +   i n c r ) ; 
 
       w i n d o w _ l e v e l   =   w i n d o w _ l e v e l   +   i n c r ; 
 
       m a x _ l e v e l   =   m a x   ( m a x _ l e v e l ,   w i n d o w _ l e v e l ) ; 
       t s t r _ p t r   =   a d d r   ( w i n d o w   ( w i n d o w _ l e v e l ) ) ; 
 
       t s t r . y p o s ,   Y p o s   =   Y p o s   +   i n c r ; 
       X p o s   =   t s t r . x p o s ; 
       t s t r . o p e n   =   " 1 " b ; 
 
       i f   t s t r . s t r _ p t r   =   n u l l 
       t h e n   t s t r . s t r _ p t r   =   a l l o c a t e   ( w i n d o w _ a r e a _ p t r ,   1 0 2 4 ) ;   
 	 	 	 	 	 	 
       e n d   m o v e _ t s t r ; 
 % p a g e ; 
 s h o w : 
     p r o c   ( d a t u m ,   s c a l e )   r e t u r n s   ( f i x e d   d e c   ( 1 1 ,   3 ) ) ; 
         d c l   d a t u m 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 
 
             r e t u r n   ( r o u n d   ( d e c   ( r o u n d   ( d i v i d e   ( d a t u m ,   s c a l e ,   3 1 ,   1 1 ) ,   1 0 ) ,   1 1 ,   4 ) ,   3 ) ) ; 
     e n d   s h o w ; 
 % p a g e ; 
 p l o t : 
     p r o c   ( P L O T _ O P ,   n e w _ x p o s ,   n e w _ y p o s ) ; 
 
 / *   T h i s   r o u t i n e   m o v e s   t h e   c u r r e n t   p o s i t i o n   t o   ( n e w _ x p o s , n e w _ y p o s ) ,   * / 
 / *   p l o t t i n g   o r   s h i f t i n g   a c c o r d i n g   t o   t h e   v a l u e   o f   P L O T _ O P .   * / 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   P L O T _ O P 	       b i t   ( 1 ) ; 	 / *   0 - s h i f t ;   1 - v e c t o r   * / 
         d c l   n e w _ x p o s 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   n e e d e d   h o r i z o n t a l   p o s i t i o n   * / 
         d c l   n e w _ y p o s 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   n e e d e d   v e r t i c a l   p o s i t i o n   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   c o p y s t r 	       c h a r   ( 2 0 4 8 )   v a r ; 
         d c l   e x i t _ s t r 	       c h a r   ( 3 2 )   v a r ; 
         d c l   o l d _ x p o s 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   o l d _ y p o s 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   p e n c t l 	       c h a r   ( 6 )   v a r ; 	 / *   p e n   c o n t r o l   s t r i n g   * / 
         d c l   p l t s t r 	       c h a r   ( 4 0 9 0 )   v a r ; 
         d c l   p l t w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   x i i 	       f i x e d   b i n ; 	 / *   w o r k i n g   v a l u e   * / 
         d c l   x m o v e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   X   m o v e m e n t   * / 
         d c l   y m o v e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   Y   m o v e m e n t   * / 
 
         i f   n e w _ x p o s   =   X p o s   &   n e w _ y p o s   =   Y p o s 
         t h e n   r e t u r n ; 
 
         x m o v e ,   y m o v e ,   p l t w i d t h   =   0 ; 
         p l t s t r   =   " " ; 
 
         o l d _ x p o s   =   X p o s ; 	 	 / *   c a s e   a   V S F T   c h a n g e s   X p o s   * / 
         o l d _ y p o s   =   Y p o s ; 
         x m o v e   =   n e w _ x p o s   -   X p o s ; 
         y m o v e   =   n e w _ y p o s   -   Y p o s ; 
 
         i f   d e t a i l _ s w 
         t h e n   c a l l 
 	   i o a _   ( " ^ 5 x p l o t :   ( ^ [ V ^ ; S ^ ]   ^ f / ^ f   - >   ^ f / ^ f   =   ^ f / ^ f ) " ,   P L O T _ O P , 
 	   s h o w   ( X p o s   *   X m p t s t r k ,   1 2 0 0 0 ) ,   s h o w   ( Y p o s   *   Y p i x e l ,   1 2 0 0 0 ) , 
 	   s h o w   ( n e w _ x p o s   *   X m p t s t r k ,   1 2 0 0 0 ) ,   s h o w   ( n e w _ y p o s   *   Y p i x e l ,   1 2 0 0 0 ) , 
 	   s h o w   ( x m o v e   *   X m p t s t r k ,   1 2 0 0 0 ) ,   s h o w   ( y m o v e   *   Y p i x e l ,   1 2 0 0 0 ) ) ; 
 
         i f   ^ P L O T _ O P 	 	 	 / *   i f   a   S H I F T   i s   w a n t e d   * / 
         t h e n 
             d o ; 
                 i f   y m o v e   ^ =   0 	 	 	 / *   a n y   Y   m o v e m e n t ?   * / 
                 t h e n 
                     d o ; 	 	 
 	     i f   w i n d o w _ l e v e l   +   y m o v e   <   w i n d o w _ t o p   |   
 	         w i n d o w _ l e v e l   +   y m o v e   >   w i n d o w _ b o t t o m 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ p r o g r a m _ e r r o r , 
 	                 l i n e i n f o p t r ,   l o c t x t , 
 	                 " A t t e m p t   t o   p l a c e   a   l i n e   o f f   p a g e   ^ a   a t   l i n e   ^ d . " , 
 	                 p a g e . h d r . p a g e n o ,   w i n d o w _ l e v e l ) ; 
 	             s i g n a l   c o m p _ a b o r t ; 
 	         e n d ; 
 
 	     c a l l   m o v e _ t s t r   ( y m o v e ) ; 
 	     y m o v e   =   0 ; 
 	     x m o v e   =   n e w _ x p o s   -   X p o s ; 
                     e n d ; 
 
                 p e n c t l   =   P E N U P ; 	 	 / *   i n i t   f o r   p e n   u p   * / 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   e l s e   a   V E C T O R   i s   w a n t e d   * / 
             e l s e   p e n c t l   =   P E N D O W N ; 	 	 / *   i n i t   f o r   p e n   d o w n   * / 
 / * * * *   & p l o t   F O R   h y t e r m   * / 
 i f   ^ P L O T _ O P 
         t h e n 
             d o ; 
                 i f   x m o v e   ^ =   0                                         / *   a n y   X   m o v e m e n t ?   * / 
                 t h e n 
                     d o ; 
 	     i f   t s t r . f o n t   =   0 
 	     t h e n   t s t r . f o n t   =   f o n t _ i n ; 	 / * * / 
 	 	 	 	 / *   a n y   f u l l   c o l u m n s ?   * / 
                         x i i   =   d i v i d e   ( x m o v e   *   X p i x e l ,   E N _ w i d t h ,   1 7 ,   0 ) ; 
 
                         i f   a b s   ( x i i )   > =   1 	 	 / *   i f   m o v i n g   a t   l e a s t   1   S P   o r   B S P   * / 
                         t h e n 
                             d o ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   n o t   m o r e   t h a n   3   S P s   * / 
 	             i f   a b s   ( x i i )   < =   3   &   x i i   >   0 
 	             &   n e w _ y p o s   =   o l d _ y p o s 	 / *   a n d   o n   t h e   s a m e   l i n e   * / 
 	             &   t s t r _ l i n e   ^ =   D T 1 	 / *   a n d   n o t   l e f t   m a r g i n   * / 
 	             t h e n 
 	                 d o ; 
 	 	 i f   l e n g t h   ( p l t s t r )   +   x i i   > =   M A X _ S T R 
 	 	 t h e n   c a l l   p u t _ s t r   ( p l t s t r ,   0 ) ; 
 
 	 	 p l t s t r   =   p l t s t r   | |   c o p y   ( "   " ,   x i i ) ; 
 	 	 p l t w i d t h   =   p l t w i d t h   +   
 	 	     d i v i d e   ( x i i   *   E N _ w i d t h ,   X p i x e l ,   3 1 ,   0 ) ; 
 	 	 x m o v e   =   x m o v e   -   d i v i d e   ( x i i   *   E N _ w i d t h ,   X p i x e l ,   3 1 ,   0 ) ; 
 	                 e n d ; 
 
 	             e l s e 	 	 / *   > 3 ,   d i r e c t   t a b   t o   c o l u m n   * / 
 	                 d o ; 
 	 	 t a b c o l   = 	 	 / *   m u s t   a c c o u n t   f o r   c u r r e n t   H M I   * / 
 	 	     d i v i d e   ( n e w _ x p o s   *   X p i x e l   *   H M I 1 0 , 
 	 	     E N _ w i d t h   *   h m i _ v a l u e ,   1 7 ,   0 ) ; 
 
 	 	 i f   t a b c o l   >   1 2 5 	 / *   c a n   d i r e c t   t a b   t o   o n l y   t h e   * / 
 	 	 t h e n   t a b c o l   =   1 2 5 ; 	 / *   . . f i r s t   1 2 6   p r i n t   p o s i t i o n s   * / 
 
 	 	 e l s e   i f   t a b c o l   <   0 
 	 	 t h e n 
 	 	     d o ; 
 	 	         c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 3 , 
 	 	             c o m p _ e r r o r _ t a b l e _ $ p r o g r a m _ e r r o r ,   l i n e i n f o p t r ,   l o c t x t , 
 	 	             " A   c a r r i a g e   c o l u m n   t o   t h e   l e f t   o f   t h e   l e f t   m a r g i n "   | | 
 	 	             "   s t o p   h a s   b e e n   e n c o u n t e r e d . " ) ; 
 	 	         t a b c o l   =   0 ; 
 	 	     e n d ; 
 
 	 	 p l t s t r   =   p l t s t r   | |   A B S _ T A B   | |   b y t e   ( t a b c o l   +   1 ) ; 
 	 	 p l t w i d t h   =   p l t w i d t h   -   X p o s   + 
 	 	     d i v i d e   ( t a b c o l   *   E N _ w i d t h ,   X p i x e l ,   3 1 ,   0 ) ; 
 	 	 	 	 / *   o v e r w r i t e   A B S _ T A B - o n l y   l i n e   * / 
 	 	 i f   l e n g t h   ( t s t r _ l i n e )   =   3   &   i n d e x   ( t s t r _ l i n e ,   A B S _ T A B )   =   1 
 	 	 t h e n   t s t r _ l i n e   =   " " ; 
 
 	 	 x m o v e   =   n e w _ x p o s   - 	 / *   h o w   m u c h   i s   l e f t ?   * / 
 	 	     t a b c o l   *   d i v i d e   ( E N _ w i d t h ,   X p i x e l ,   3 1 ,   0 ) ; 
 	                 e n d ; 
 	         e n d ; 
 	 e n d ; 
 
                 e l s e   i f   t s t r _ l i n e   =   " "   &   l o c t x t   ^ =   " " 
                 t h e n 
 	 d o ; 
 	     i f   t s t r . f o n t   =   0 
 	     t h e n   t s t r . f o n t   =   f o n t _ i n ; 
 	     p l t s t r   =   A B S _ T A B   | |   b y t e   ( 1 ) ; 
 	     p l t w i d t h   =   p l t w i d t h   -   X p o s ; 
 	 e n d ; 
             e n d ; 
 
         i f   x m o v e   ^ =   0   |   y m o v e   ^ =   0 	 / *   a n y   m o v e m e n t   a t   a l l ?   * / 
         t h e n 
             d o ; 
                 i f   x m o v e   <   0 	 	 / *   l e f t w a r d   m o v e m e n t ?   * / 
                 t h e n   x c   =   B S P ; 	 	 / *   s e t   B S   a s   p l o t   c h a r   * / 
                 e l s e   x c   =   "   " ; 	 	 / *   s e t   S P   a s   p l o t   c h a r   * / 
                 x m o v e   =   a b s   ( x m o v e ) ; 
 
                 i f   P L O T _ O P 
                 t h e n   x c   =   x c   | |   p e n c t l ; 
                 x c m a x   =   d i v i d e   ( M A X _ S T R ,   l e n g t h   ( x c ) ,   1 7 ,   0 ) ; 
     
                 i f   y m o v e   <   0 	 	 / *   u p w a r d   m o v e m e n t ?   * / 
                 t h e n   y c   =   R L F ; 	 	 / *   s e t   r e v e r s e   L F   a s   p l o t   c h a r   * / 
                 e l s e   y c   =   L F ; 	 	 / *   s e t   L F   a s   p l o t   c h a r   * / 
                 y m o v e   = a b s   ( y m o v e ) ; 
     
                 i f   P L O T _ O P 
                 t h e n   y c   =   y c   | |   p e n c t l ; 
                 y c m a x   =   d i v i d e   ( M A X _ S T R ,   l e n g t h   ( y c ) ,   1 7 ,   0 ) ; 
 
                 x y c   =   x c   | |   y c ; 
                 x y c m a x   =   d i v i d e   ( M A X _ S T R ,   l e n g t h   ( x y c ) ,   1 7 ,   0 ) ; 
 
                 x i y i   =   m i n   ( x m o v e ,   y m o v e ) ; 	 / *   a m o u n t   o f   c o m m o n   m o v m e n t   * / 
                 x m o v e   =   m a x   ( x m o v e   -   x i y i ,   0 ) ; 	 / *   r e m a i n i n g   x   m o v e m e n t   * / 
                 y m o v e   =   m a x   ( y m o v e   -   x i y i ,   0 ) ; 	 / *   r e m a i n i n g   y   m o v e m e n t   * / 
 
                 i f   l e n g t h   ( p l t s t r )   +   P L O T l e n   >   M A X _ S T R 
                 t h e n   c a l l   p u t _ s t r   ( p l t s t r ,   p l t w i d t h ) ; 
                 p l t s t r   =   p l t s t r   | |   P L O T ; 
 
                 d o   w h i l e   ( x i y i   >   0 ) ; 
 	 i p l t   =   m i n   ( x i y i ,   x y c m a x ) ; 
 	 i f   l e n g t h   ( p l t s t r )   +   i p l t   *   l e n g t h   ( x y c )   >   M A X _ S T R 
 	 t h e n   c a l l   p u t _ s t r   ( p l t s t r ,   p l t w i d t h ) ; 
 	 p l t s t r   =   p l t s t r   | |   c o p y   ( x y c ,   i p l t ) ; 
 	 p l t w i d t h   =   p l t w i d t h   +   s i g n   ( x m o v e )   *   i p l t ; 
 	 x i y i   =   x i y i   -   i p l t ; 
                 e n d ;   
 
                 d o   w h i l e   ( x m o v e   >   0 ) ; 
 	 i p l t   =   m i n   ( x m o v e ,   x c m a x ) ; 
 	 i f   l e n g t h   ( p l t s t r )   +   i p l t   *   l e n g t h   ( x c )   >   M A X _ S T R 
 	 t h e n   c a l l   p u t _ s t r   ( p l t s t r ,   p l t w i d t h ) ; 
 	 p l t s t r   =   p l t s t r   | |   c o p y   ( x c ,   i p l t ) ; 
 	 p l t w i d t h   =   p l t w i d t h   +   s i g n   ( x m o v e )   *   i p l t ; 
 	 x m o v e   =   x m o v e   -   i p l t ; 
                 e n d ;   
 
                 d o   w h i l e   ( y m o v e   >   0 ) ; 
 	 i p l t   =   m i n   ( y m o v e ,   y c m a x ) ; 
 	 i f   l e n g t h   ( p l t s t r )   +   i p l t   *   l e n g t h   ( y c )   >   M A X _ S T R 
 	 t h e n   c a l l   p u t _ s t r   ( p l t s t r ,   p l t w i d t h ) ; 
 	 p l t s t r   =   p l t s t r   | |   c o p y   ( y c ,   i p l t ) ; 
 	 y m o v e   =   y m o v e   -   i p l t ; 
                 e n d ; 
 
                 p l t s t r   =   p l t s t r   | |   u n P L O T ; 
             e n d ; 
 / * * * *   E N D   h y t e r m   * / 
 
 p l o t _ r e t u r n : 
           i f   l e n g t h   ( p l t s t r )   >   0 
           t h e n   c a l l   p u t _ s t r   ( p l t s t r ,   p l t w i d t h ) ; 
 
 / *           X p o s ,   t s t r . x p o s   =   n e w _ x p o s ; * / 
 
           i f   d e t a i l _ s w 
           t h e n   c a l l 
 	     i o a _   ( " ^ - ( p l o t :   ^ f / ^ f   l v l = ^ d   ^ [ ^ ^ ^ ] o p n ^ [   W ^ ] ) " ,   
 	     s h o w   ( X p o s   *   X m p t s t r k ,   1 2 0 0 0 ) ,   s h o w   ( Y p o s   *   Y p i x e l ,   1 2 0 0 0 ) , 
 	     w i n d o w _ l e v e l ,   ^ t s t r . o p e n ,   t s t r . w h i t e ) ; 
 
 / *           X p l t ,   Y p l t   =   0 ; 	 	 / *   m o t i o n   u s e d   * / 
       e n d   p l o t ; 
 % p a g e ; 
 p a d _ b l o c k : 
       p r o c ; 	 	 	 	 / * * / 
 
 / *   t h e s e   t w o   v a l u e s   i n   f i x e d   d e c   s o   r o u n d   o f f   d o e s n t   a f f e c t   p a d   p l a c e m e n t .   * / 
 / *             d c l 
 / * 	 (   i g a p , 	 	 	 / *   g a p   c o u n t e r   f o r   p a d d i n g   * / 
 / * 	     p a d e a c h 	 	 	 / *   p a d d i n g   i n t e r v a l   * / 
 / * 	 ) 	           f i x e d   d e c   ( 1 1 ,   3 ) ; * / 
 
             d c l 
 	 (   i g a p , 	 	 	 / *   g a p   c o u n t e r   f o r   p a d d i n g   * / 
 	     p a d e a c h 	 	 	 / *   p a d d i n g   i n t e r v a l   * / 
 	 ) 	           f i x e d   b i n ; 
 
             d c l   g a p s 	           f i x e d   b i n ; 	 / *   g a p   c o u n t   f o r   l i n e   * / 
             d c l   j l _ p t r 	           p t r ; 	 	 / *   p o i n t e r   t o   t h e   j u s t i f i e d   l i n e   * / 
             d c l   j u s t _ l i n e 	           c h a r   ( 1 0 2 0 )   v a r ; 
 	 	 	 	 / *   p a d s   p e r   g a p   * / 
             d c l   p a d s 	           ( p a g e _ i m a g e . l i n e   ( i l i n ) . g a p s )   f i x e d   b i n ; 
             d c l   p a d s i z e 	           f i x e d   b i n ; 	 / *   p a d   s p a c e   i n   p i x e l s   * / 
             d c l   1   p a d _ c t l 	           l i k e   d c l o n g _ v a l ;   / *   f o r   i n s e r t i n g   p a d s   * / 
             d c l   p a d _ c t l _ p t r         p t r ; 
             d c l   p a d _ s t r i n g           c h a r   ( 7 )   b a s e d   ( p a d _ c t l _ p t r ) ; 
             d c l   S P _ D C 1 	           c h a r   ( 2 )   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   ( "    " ) ; 
 
             j u s t _ l i n e   =   " " ; 	 	 / *   c l e a r   t h e   j u s t i f i e d   l i n e   * / 
             j l _ p t r   =   a d d r   ( j u s t _ l i n e ) ; 	 / *   a n d   s e t   p o i n t e r   f o r   t h e   o v e r l a y   * / 
 
             i f   f o n t _ i n   ^ =   n e e d _ f o n t 
             t h e n   c a l l   s e t _ f o n t   ( n e e d _ f o n t ,   n e e d _ s i z e ) ; 
 
             i f   c o l _ w i d t h   <   0 
             t h e n   c o l _ w i d t h   =   d i v i d e   ( p a g e _ i m a g e . l i n e   ( i l i n ) . n e t ,   X m p t s t r k ,   3 1 ,   0 ) ; 
             i f   t e x t _ w i d t h   >   0 
             t h e n   t e x t _ w i d t h   =   d i v i d e   ( p a g e _ i m a g e . l i n e   ( i l i n ) . w i d t h ,   X m p t s t r k ,   3 1 ,   0 ) ; 
 
             i f   X p i x e l   ^ =   E N _ w i d t h 	 / *   s e t   u p   p a d _ c t l   s t r i n g   * / 
                 t h e n 
 	 d o ; 
 	     p a d _ c t l . m a r k   =   D C 1 ; 
 	     p a d _ c t l . t y p e   =   t y p e _ s l x ; 
 	     p a d _ c t l . l e n g   =   d c l o n g 1 _ l e n ; 
 	     p a d _ c t l . v 2   =   0 ; 
 	     p a d _ c t l _ p t r   =   a d d r   ( p a d _ c t l ) ; 
 	 e n d ; 
 
             g a p s   =   p a g e _ i m a g e . l i n e   ( i l i n ) . g a p s ; 
             p a d s i z e   =   m a x   ( 0 ,   c o l _ w i d t h   -   t e x t _ w i d t h ) ; 
 	 	 	 	 / *   f i l l   i n   c o m m o n   a m o u n t   * / 
             p a d s   =   f n t t b l . u n i t s   ( r a n k   ( S T R O K E ) )   *   d i v i d e   ( 
                 d i v i d e   ( p a d s i z e ,   g a p s ,   1 7 ,   0 ) ,   f n t t b l . u n i t s   ( r a n k   ( S T R O K E ) ) ,   1 7 ,   0 ) ; 
 	 	 	 	 / *   t h e n   g e t   t h e   l e f t o v e r   a m o u n t   * / 
             p a d s i z e   =   p a d s i z e   -   p a d s   ( 1 )   *   g a p s ; 
 
             i f   l o n g _ s w 
             t h e n   c a l l 
 	       i o a _ $ n n l   ( " ^ 5 x ( p a d _ b l o c k :   l / w / r = ^ f / ^ f / ^ f   g p = ^ i   p d = ^ i + ^ i " , 
 	       s h o w   ( L m a r g   *   X m p t s t r k ,   1 2 0 0 0 ) , 
 	       s h o w   ( t e x t _ w i d t h   *   X m p t s t r k ,   1 2 0 0 0 ) , 
 	       s h o w   ( p a g e _ i m a g e . l i n e   ( i l i n ) . r m a r g ,   1 2 0 0 0 ) ,   g a p s , 
 	       p a d s   ( 1 ) ,   p a d s i z e ) ; 
 
         d o   w h i l e   ( p a d s i z e   >   0 ) ; 	 	 / *   u s e   u p   a n y   l e f t o v e r s   * / 
             p a d e a c h   = 	 	 	 / *   p a d   i n t e r v a l   * / 
 	   m a x   ( r o u n d   ( d i v i d e   ( g a p s   *   f n t t b l . u n i t s   ( r a n k   ( S T R O K E ) ) ,   p a d s i z e ,   1 7 ,   1 ) ,   0 ) ,   1 ) ; 
             i g a p   =   m a x   ( r o u n d   ( d i v i d e   ( g a p s   *   f n t t b l . u n i t s   ( r a n k   ( S T R O K E ) ) ,   2   *   p a d s i z e ,   1 7 ,   1 ) ,   0 ) ,   1 ) ; 
 
             d o   i g a p   =   i g a p   t o   g a p s   b y   p a d e a c h   w h i l e   ( p a d s i z e   >   0 ) ; 
                 p a d s   ( i g a p )   =   p a d s   ( i g a p )   +   f n t t b l . u n i t s   ( r a n k   ( S T R O K E ) ) ; 
                 p a d s i z e   =   p a d s i z e   -   f n t t b l . u n i t s   ( r a n k   ( S T R O K E ) ) ; 
             e n d ; 
         e n d ; 
 
         i f   l o n g _ s w 
         t h e n   c a l l   i o a _   ( " ^ ( , ^ i ^ ) ) " ,   p a d s ) ; 
 
         i c h r   =   v e r i f y   ( l o c t x t ,   "   " ) ; 	 / *   s t a r t   a t   f r o n t   o f   t e x t   * / 
         i f   i c h r   >   1 
         t h e n   j u s t _ l i n e   =   j u s t _ l i n e   | |   c o p y   ( E N ,   i c h r   -   1 ) ; 
 
         d o   j   =   1   t o   g a p s ; 
 t r y _ a g a i n : 	 	 	 / *   f i n d   w o r d   b o u n d a r y   * / 
               k   =   s e a r c h   ( s u b s t r   ( l o c t x t ,   i c h r ,   t x t l e n   -   i c h r   +   1 ) ,   S P _ D C 1 )   -   1 ; 
 
               i f   k   <   0 	 	 	 / *   M G O D !   g a p   c o u n t   i s   t o o   l a r g e   * / 
               t h e n 
                   d o ; 
 	   i f   d e t a i l _ s w 
 	   t h e n 
 	       d o ; 
 	           c a l l   i o a _ $ n n l   ( " g a p = ^ i   " ,   g a p s ) ; 
 	           c a l l   b l a t ; 
 	       e n d ; 
 	   g o t o   g a p _ e x i t ; 
                   e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c o p y   w o r d   * / 
                   j u s t _ l i n e   =   j u s t _ l i n e   | |   s u b s t r   ( l o c t x t ,   i c h r ,   k ) ; 
                   i c h r   =   i c h r   +   k ; 	 	 / *   s t e p   o v e r   " w o r d "   * / 
 	 	 	 	 / *     d i d   w e   f i n d   a   c o n t r o l ?   * / 
                   i f   s u b s t r   ( l o c t x t ,   i c h r ,   1 )   =   D C 1 
                   t h e n 
 	     d o ; 	 	 	 / *   s e t   p o i n t e r         * / 
 	           D C x x _ p   =   a d d r   ( s u b s t r   ( l o c t x t ,   i c h r ) ) ; 
 	           k   =   d c x x . l e n g   +   3 ; 	 / *   a n d   c o n t r o l   s t r i n g   l e n g t h 	               * / 
 	 	 	 	 / *   c o p y   c t l   s t r 	 * / 
 	           j u s t _ l i n e   =   j u s t _ l i n e   | |   s u b s t r   ( l o c t x t ,   i c h r ,   k ) ; 
 	           i c h r   =   i c h r   +   k ; 
 	           g o t o   t r y _ a g a i n ; 
 	     e n d ; 
 
                   i c h r   =   i c h r   +   1 ; 	 	 / *   s k i p   t h e   w o r d s p a c e   * / 
 
                   i f   X p i x e l   =   E N _ w i d t h 	 / *   n o w ,   a n y   e x c e s s   c o u n t   * / 
                   t h e n   j u s t _ l i n e   =   j u s t _ l i n e   | |   c o p y   ( "   " ,   p a d s   ( j ) ) ; 
                   e l s e 
 	   d o ; 
 	       p a d _ c t l . v 1   =   p a d s   ( j )   *   X m p t s t r k ; 
 	       j u s t _ l i n e   =   j u s t _ l i n e   | |   p a d _ s t r i n g ; 
 	   e n d ; 
             e n d ; 
 
 g a p _ e x i t : 
             k   =   t x t l e n   -   i c h r   +   1 ; 	 	 / *   l e n g t h   o f   t h e   l a s t   w o r d   * / 
 	 	 	 	 / *   m o v e   t h e   l a s t   w o r d   * / 
             j u s t _ l i n e   =   j u s t _ l i n e   | |   s u b s t r   ( l o c t x t ,   i c h r ,   k ) ; 
             l o c t x t   =   j u s t _ l i n e ; 	 	 / *   s w i t c h   t o   t h e   j u s t i f i e d   l i n e   * / 
             t x t l e n   =   l e n g t h   ( j u s t _ l i n e ) ; 
 
             i f   l o n g _ s w 
             t h e n   c a l l   i o a _   ( " ^ a " ,   c o m p _ u t i l _ $ d i s p l a y   ( j u s t _ l i n e ,   0 ,   " 0 " b ) ) ; 
 
       e n d   p a d _ b l o c k ; 
 % p a g e ; 
 p u t _ : 
     p r o c ; 
 
         d c l   l e v e l 	       f i x e d   b i n ; 
         d c l   l e v e l _ s k i p 	       f i x e d   b i n ; 
 
         i f   d e t a i l _ s w 
         t h e n   c a l l 
 	   i o a _   ( " ^ 5 x ( p u t :   m a x l v l = ^ d ) " ,   m a x _ l e v e l ) ; 
 
         l e v e l _ s k i p   =   0 ; 
 
         i f   f i r s t _ l i n e 
         t h e n 
             d o   l e v e l   =   w i n d o w _ t o p   t o   - 1 	 / *   d i s c a r d   l e a d i n g   n u l l   l i n e s   * / 
                 w h i l e   ( ^ w i n d o w   ( l e v e l ) . o p e n ) ; 
             e n d ; 
         e l s e   l e v e l   =   w i n d o w _ t o p ; 
 d e v _ s t a t . p l o t t i n g   =   " 0 " b ; 
 
         d o   l e v e l   =   l e v e l   t o   m a x _ l e v e l ; 
             t s t r _ p t r   =   a d d r   ( w i n d o w   ( l e v e l ) ) ;   / * * / 
 
             i f   t s t r . s t r _ p t r   =   n u l l 
             t h e n 
                 d o ; 
 	 t s t r . s t r _ p t r   =   a l l o c a t e   ( w i n d o w _ a r e a _ p t r ,   1 0 2 4 ) ; 
 	 t s t r _ l i n e   =   " " ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   & p u t   F O R   D E V I C E   h y t e r m   * / 
 / *   f o r   f u l l / p a r t i a l   l i n e s   * / 
             d o   l e v e l _ s k i p   =   0   t o   l i n e _ w i n d o w _ s i z e   -   1 
                 w h i l e   ( ^ w i n d o w   ( l e v e l   +   l e v e l _ s k i p   +   1 ) . o p e n ) ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   n e e d   a   F N L ?   * / 
             i f   l e v e l _ s k i p   > =   l i n e _ w i n d o w _ s i z e   -   1   |   l e v e l   =   m a x _ l e v e l 
             t h e n 
                 d o ; 
 	 i f   ^ f i r s t _ p a g e 
 	 t h e n   t s t r _ l i n e   =   t s t r _ l i n e   | |   N L ; 
 	 l e v e l _ s k i p   =   l i n e _ w i n d o w _ s i z e   -   1 ; 
                 e n d ; 
 
             e l s e 	 	 	 / *   n e e d   a   i n c r   N L   * / 
                 d o ; 
 	 i f   t s t r _ l i n e   =   D T 1 
 	 t h e n   t s t r _ l i n e   =   P L O T ; 
                     e l s e   t s t r _ l i n e   =   t s t r _ l i n e   | |   P L O T ; 
 	 t s t r _ l i n e   =   t s t r _ l i n e   | |   c o p y   ( N L ,   l e v e l _ s k i p   + 1 ) ; 
 	 t s t r _ l i n e   =   t s t r _ l i n e   | |   u n P L O T ; 
                 e n d ; 
 	 	 	 	 / * * / 
 	 	 	 	 / *   E N D   D E V I C E   h y t e r m   * / 
             i f   d e t a i l _ s w 
             t h e n   c a l l 
 	       i o a _   ( " ^ 7 x ( l v l = ^ d   ^ d + ^ d = ^ d   " " ^ a " " ) " ,   l e v e l ,   p a g e _ r e c o r d . l e n g , 
 	       l e n g t h   ( t s t r _ l i n e ) ,   p a g e _ r e c o r d . l e n g   +   l e n g t h   ( t s t r _ l i n e ) , 
 	       c o m p _ u t i l _ $ d i s p l a y   ( t s t r _ l i n e ,   0 ,   " 0 " b ) ) ; 
 
             l e v e l   =   l e v e l   +   l e v e l _ s k i p ; 
             t s t r . l a s t _ c r   =   0 ; 
             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   +   l e n g t h   ( t s t r _ l i n e ) ; 
             s u b s t 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   -   l e n g t h   ( t s t r _ l i n e )   +   1 , 
                 l e n g t h   ( t s t r _ l i n e ) )   =   t s t r _ l i n e ; 
         e n d ; 
 
         i f   p a g e _ r e c o r d . l e n g   >   0 
         t h e n   p a g e _ r e c o r d . i n _ u s e   =   " 1 " b ; 
         Y p o s   =   t s t r . y p o s ; 
 
     e n d   p u t _ ; 
 % p a g e ; 
 p u t _ s t r : 
     p r o c   ( s t r i n g ,   w i d t h ) ; 
 
         d c l   s t r i n g 	       c h a r   ( 4 0 9 0 )   v a r ; 	 / *   s t r i n g   t o   p u t   * / 
         d c l   w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   s t r i n g   w i d t h   * / 
 
         d c l   ( i ,   j ) 	       f i x e d   b i n ; 
         d c l   n e w _ l e n 	       f i x e d   b i n ; 
         d c l   o l d _ l e n 	       f i x e d   b i n ; 
         d c l   p o s 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   c u r r e n t   p o s i t i o n   * / 
 
         i f   t s t r . d e v f n t   ^ =   n e e d _ d e v f n t 
         t h e n   c a l l   s e t _ m e d i a   ( f o n t _ i n ,   n e e d _ d e v f n t ) ; 
 
         o l d _ l e n   =   l e n g t h   ( t s t r _ l i n e )   -   t s t r . l a s t _ c r ; 
         n e w _ l e n   =   o l d _ l e n   +   l e n g t h   ( s t r i n g ) ; 
 
 i f   n e w _ l e n   >   M A X _ S T R 
 t h e n 
             d o ; 
 e n d ; 
 
         i f   d e t a i l _ s w 
         t h e n 
             d o ; 
                 d e b u g _ s t r   =   c o m p _ u t i l _ $ d i s p l a y   ( s t r i n g ,   0 ,   " 0 " b ) ; 
                 c a l l   i o a _   ( 
 	       " ^ 5 x ( p u t _ s t r :   l v l = ^ d   X = ^ f + ^ f = ^ f   ^ d + ^ d = ^ d ^ [ ( ^ d ) ^ ; ^ s ^ ]   " " ^ a ^ v a " " ) " , 
 	       w i n d o w _ l e v e l ,   s h o w   ( X p o s   *   X m p t s t r k ,   1 2 0 0 0 ) ,   s h o w   ( w i d t h   *   X m p t s t r k ,   1 2 0 0 0 ) , 
 	       s h o w   ( ( X p o s   +   w i d t h )   *   X m p t s t r k ,   1 2 0 0 0 ) ,   o l d _ l e n ,   l e n g t h   ( s t r i n g ) ,   n e w _ l e n , 
 	       ( t s t r . l a s t _ c r   >   0 ) ,   l e n g t h   ( t s t r _ l i n e )   +   l e n g t h   ( s t r i n g ) , 
 	       d e b u g _ s t r ,   l e n g t h   ( d e b u g _ s t r )   -   l e n g t h   ( r t r i m   ( d e b u g _ s t r ) ) ,   "   " ) ; 
             e n d ; 
 
         t s t r _ l i n e   =   t s t r _ l i n e   | |   s t r i n g ; 
         X p o s ,   t s t r . x p o s   =   X p o s   +   w i d t h ; 
 
         s t r i n g   =   " " ; 
         w i d t h   =   0 ; 
         t s t r . o p e n   =   " 1 " b ; 
     e n d   p u t _ s t r ; 
 % p a g e ; 
 p u t _ u n s : 
     p r o c ; 	 
         d c l   Y _ o f f s   f i x e d   b i n   ( 3 1 ) ; 	 / *   b a s e l i n e   o f f s e t   * / 
         d c l   u n s l e n 	           f i x e d   b i n   ( 3 1 ) ; / *   l e n g t h   o f   u n d e r s c o r e   * / 
 
         Y _ o f f s   =   0 ; 
         u n s l e n   =   X p o s   +   X s p c   -   u n s t a r t ; 
 
         i f   u n s l e n   >   0 
         t h e n 
             d o ; 
                 i f   d e t a i l _ s w 
                 t h e n   c a l l 
 	           i o a _   ( " ^ 5 x ( p u t _ u n s :   ^ f ) " , 
 	           s h o w   ( u n s l e n   *   X m p t s t r k ,   1 2 0 0 0 ) ) ; 
 
 X s p c   =   X s p c   -   u n s l e n ; 	 	 / *   g o   t o   s t a r t   * / 
 X s p c   =   m a x   ( X s p c   -   3 ,   - ( X p o s   +   X s p c ) ) ; 
                 Y _ o f f s   =   3 ; 
 c a l l   p l o t   ( S H I F T _ O P ,   X p o s   +   X s p c ,   Y p o s   +   Y _ o f f s ) ; 
                 X s p c ,   Y s p c   =   0 ; 	 	 / * * / 
 	 	 	 	 / *   p u t   t h e   u n d e r s c o r e   * / 
                 c a l l   p l o t   ( V E C T O R _ O P ,   X p o s   +   u n s l e n ,   Y p o s ) ; 
 c a l l   p l o t   ( S H I F T _ O P ,   X p o s   +   3 6 0 0 ,   Y p o s   -   3 0 0 0 ) ; 
 u n s t a r t   =   L m a r g ; 
 
                 i f   d e t a i l _ s w 
                 t h e n   c a l l   i o a _   ( " ^ - ( p u t _ u n s ) " ) ; 
             e n d ; 
     e n d   p u t _ u n s ; 
 % p a g e ; 
 s e t _ f o n t : 
       p r o c   ( n e w _ f o n t ,   n e w _ s i z e ) ; 
 
 / *   P A R A M E T E R S   * / 
 
       d c l   n e w _ f o n t 	       f i x e d   b i n ; 	 / *   d e s i r e d   f o n t   i n d e x   * / 
       d c l   n e w _ s i z e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   d e s i r e d   p o i n t s i z e   * / 
 
       d c l   c h n g 	       b i t   ( 1 ) ; 
 
       c h n g   =   ( f o n t _ i n   ^ =   n e w _ f o n t   |   f o n t _ s i z e   ^ =   n e w _ s i z e ) ; 
 
       i f   c h n g 
       t h e n 
           d o ; 
               i f   d e t a i l _ s w 
               t h e n 
                   d o ; 
 	   i f   f o n t _ i n   =   0 
 	   t h e n   c a l l   i o a _ $ n n l   ( " ^ 5 x ( s e t _ f o n t :   0   -   0 .   - - > " ) ; 
 	   e l s e   c a l l 
 	                 i o a _ $ n n l   ( " ^ 5 x ( s e t _ f o n t :   ^ i   ^ a   ^ f   - - > " ,   f o n t _ i n , 
 	                 f n t t b l d a t a . p t r   ( f o n t _ i n )   - >   f n t t b l . e n t r y . n a m e , 
 	                 s h o w   ( f o n t _ s i z e ,   1 0 0 0 ) ) ; 
                   e n d ; 
 
               f o n t _ i n   =   n e w _ f o n t ; 
           e n d ; 
 
       f n t t b l _ p t r   =   f n t t b l d a t a . p t r   ( f o n t _ i n ) ; 
       s u b s t r   ( f o n t s _ n e e d e d ,   f o n t _ i n ,   1 )   =   " 1 " b ; 
       n e e d _ d e v f n t   =   f n t t b l . d e v f n t   ( 3 2 ) ; 
 / * * * *   & s e t _ f o n t   F O R   h y t e r m   * / 
 f o n t _ m e d i a   ( f o n t _ i n )   =   n e e d _ d e v f n t ; 
         n e e d _ w h e e l ,   f o n t _ w h e e l   ( f o n t _ i n )   = 	 / *   n e e d e d   w h e e l   * / 
             b i n   ( u n s p e c   ( s u b s t r   ( m e d s e l   ( n e e d _ d e v f n t ) ,   1 ,   1 ) ) ) ; 
 
 / * * * *   E N D   h y t e r m   * / 
       i f   s i z t b l . c t   =   1 
       t h e n   f o n t _ s i z e ,   n e w _ s i z e   =   s i z t b l . s i z e   ( 1 ) ; 
       e l s e   f o n t _ s i z e   =   n e w _ s i z e ; 
 
       X m p t s t r k   =   d i v i d e   ( f o n t _ s i z e ,   f n t t b l . r e l _ u n i t s ,   3 1 ,   0 ) ; 
       E M _ w i d t h   = 
           d i v i d e   ( f o n t _ s i z e   *   f n t t b l . u n i t s   ( r a n k   ( E M ) ) ,   f n t t b l . r e l _ u n i t s ,   3 1 ,   1 0 ) ; 
       E N _ w i d t h   = 
           d i v i d e   ( f o n t _ s i z e   *   f n t t b l . u n i t s   ( r a n k   ( E N ) ) ,   f n t t b l . r e l _ u n i t s ,   3 1 ,   1 0 ) ; 
       T H I N _ w i d t h   = 
           d i v i d e   ( f o n t _ s i z e   *   f n t t b l . u n i t s   ( r a n k   ( T H I N ) ) ,   f n t t b l . r e l _ u n i t s ,   3 1 ,   1 0 ) ; 
 
       i f   ( d e t a i l _ s w   |   l o n g _ s w )   &   c h n g 
       t h e n 
           d o ; 
               c a l l   i o a _   ( "   ^ i   ^ a   ^ f   X s c l = ^ d ) " ,   n e w _ f o n t , 
                   f n t t b l d a t a . p t r   ( n e w _ f o n t )   - >   f n t t b l . e n t r y . n a m e , 
                   s h o w   ( f o n t _ s i z e ,   1 0 0 0 ) ,   X m p t s t r k ) ; 
               i f   l o n g _ s w 
               t h e n   c a l l   i o a _   ( " ^ - ( H U G E = ^ d   E M = ^ d   E N = ^ d   T H K = ^ d   M E D = ^ d   " 
 	         | |   " T H N = ^ d   H A I R = ^ d   S T R K = ^ d ) " ,   f n t t b l . u n i t s   ( r a n k   ( H U G E ) ) , 
 	         f n t t b l . u n i t s   ( r a n k   ( E M ) ) , f n t t b l . u n i t s   ( r a n k   ( E N ) ) , 
 	         f n t t b l . u n i t s   ( r a n k   ( T H I C K ) ) , f n t t b l . u n i t s   ( r a n k   ( M E D I U M ) ) , 
 	         f n t t b l . u n i t s   ( r a n k   ( T H I N ) ) , f n t t b l . u n i t s   ( r a n k   ( D E V I T ) ) , 
 	         f n t t b l . u n i t s   ( r a n k   ( S T R O K E ) ) ) ; 
           e n d ; 
     e n d   s e t _ f o n t ; 
 % p a g e ; 
 s e t _ m e d i a : 
     p r o c   ( m e d i a _ f o n t ,   n e w _ d e v f n t ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   m e d i a _ f o n t 	       f i x e d   b i n ; 	 / *   f o n t   n e e d i n g   t h e   m e d i a   * / 
         d c l   n e w _ d e v f n t 	       f i x e d   b i n ; 	 / *   w a n t e d   d e v i c e   f o n t   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   c h n g 	       b i t   ( 1 ) ; 	 / *   1 =   m e d i a   o r   s i z e   h a s   t o   c h a n g e   * / 
         d c l   m e d _ c h n g 	       b i t   ( 1 ) ; 	 / *   1 =   m e d i a   h a s   t o   c h a n g e   * / 
         d c l   s i z e _ c h n g 	       b i t   ( 1 ) ; 	 / *   1 =   s i z e   h a s   t o   c h a n g e   * / 
         d c l   t e m p _ r 	       b i t   ( 1 8 ) ; 
 
         m e d _ c h n g   =   t s t r . d e v f n t   ^ =   n e w _ d e v f n t ; 
         s i z e _ c h n g   =   m e d i a _ s i z e   ^ =   f o n t _ s i z e ; 
         c h n g   =   m e d _ c h n g   |   s i z e _ c h n g ; 
 
         i f   d e t a i l _ s w   &   c h n g 
         t h e n   c a l l   i o a _ $ n n l   ( " ^ 5 x ( s e t _ m e d i a :   s i z = ^ f   m e d = ^ d   - - >   s i z = ^ f   m e d = ^ d   " , 
 	         s h o w   ( m e d i a _ s i z e ,   1 0 0 0 ) ,   t s t r . d e v f n t ,   s h o w   ( f o n t _ s i z e ,   1 0 0 0 ) , 
 	         n e w _ d e v f n t ) ; 
 / * * * *   & s e t _ m e d i a   F O R   h y t e r m   * / 
 m o u n t e d _ w h e e l   =   n e e d _ w h e e l ; 	 / *   n e e d e d   w h e e l   n o w   m o u n t e d   * / 
 
         i f   h m i _ c o d e   ^ =   s u b s t r   ( m e d s e l   ( n e w _ d e v f n t ) ,   2 ,   1 ) 
         t h e n 
             d o ; 
                 h m i _ c o d e   =   s u b s t r   ( m e d s e l   ( n e w _ d e v f n t ) ,   2 ,   1 ) ; 
                 m e d s e l s t r   =   S E T _ H M I   | |   h m i _ c o d e ; 
                 h m i _ v a l u e   =   r a n k   ( h m i _ c o d e )   -   1 ; 
           e n d ; 
 
 / * * * *   E N D   h y t e r m   * / 
 / * * * *   & s e t _ p s   F O R   h y t e r m   * / 
 
         m e d i a _ s i z e   =   7 2 0 0 ; 
 
 / * * * *   E N D   h y t e r m   * / 
             i f   d e t a i l _ s w   &   c h n g 
             t h e n   c a l l   i o a _   ( " s e l = " " ^ a " " ) " , 
                   c o m p _ u t i l _ $ d i s p l a y   ( ( m e d s e l   ( n e w _ d e v f n t ) ) ,   0 ,   " 0 " b ) ) ; 
 
 	 	 	 	 / *   i f   n o t   i n   m e d i a   n e e d e d   * / 
             i f   m e d _ c h n g 	 	 	 / *   . . . c h a n g e   t o   i t   * / 
             t h e n 
                 d o ; 
 	 t s t r . d e v f n t   =   n e w _ d e v f n t ; 
 	 t s t r . f o n t   =   m e d i a _ f o n t ; 
                 e n d ; 
 e n d   s e t _ m e d i a ; 
 
 / *   d e v i c e   h y t e r m   " o t h e r _ p r o c s "   * / 
 / * * * *   N O   C O D E   * / d c l   d b _ s w   b i t   ( 1 )   a l i g n e d   s t a t i c   i n i t   ( " 0 " b ) ; 
 
 d b n :   e n t r y ; d b _ s w   =   " 1 " b ; g o t o   d b _ j o i n ; 
 d b f :   e n t r y ; d b _ s w   =   " 0 " b ; r e t u r n ; 
 
 d c l   t x _ s w   b i t   ( 1 )   a l i g n e d   s t a t i c   i n i t   ( " 0 " b ) ; 
 t x n :   e n t r y ;   t x _ s w   =   " 1 " b ;   g o t o   d b _ j o i n ; 
 t x f :   e n t r y ;   t x _ s w   =   " 0 " b ;   r e t u r n ; 
 
 d c l   l g _ s w   b i t   ( 1 )   a l i g n e d   s t a t i c   i n i t   ( " 0 " b ) ; 
 l g n :   e n t r y ;   l g _ s w   =   " 1 " b ;   g o t o   d b _ j o i n ; 
 l g f :   e n t r y ;   l g _ s w   =   " 0 " b ;   r e t u r n ; 
 
 d c l   p f _ s w   b i t   ( 1 )   a l i g n e d   s t a t i c   i n i t   ( " 0 " b ) ; 
 p f n :   e n t r y ;   p f _ s w   =   " 1 " b ;   r e t u r n ; 
 p f f :   e n t r y ;   p f _ s w   =   " 0 " b ;   r e t u r n ; 
 
 d c l   a b r t _ s w   b i t   ( 1 )   a l i g n e d   s t a t i c   i n i t   ( " 0 " b ) ; 
 a b r t n :   e n t r y ;   a b r t _ s w   =   " 1 " b ;   r e t u r n ; 
 a b r t f :   e n t r y ;   a b r t _ s w   =   " 0 " b ;   r e t u r n ; 
 
 d c l   d t _ s w   b i t   ( 1 )   a l i g n e d   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 ; g o t o   d b _ j o i n ; 
 d t f :   e n t r y ; d t _ s w   =   " 0 " b ; r e t u r n ; 
 
 a l l n :   e n t r y ;   d b _ s w ,   d t _ s w ,   l g _ s w   =   " 1 " b ;   
 d b _ j o i n : 
 d c l   d b _ l i n e   f i x e d   b i n   s t a t i c   i n i t   ( 0 ) ; 
 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   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   e r c d   f i x e d   b i n   ( 3 5 ) ; 
 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 b _ l i n e   =   0 ; 
 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 ; 
     i f   e r c d   ^ =   e r r o r _ t a b l e _ $ n o a r g 
     t h e n   c a l l   c o m _ e r r _   ( e r c d ,   " h y t e r m _ w r i t e r _ " ) ; 
     r e t u r n ; 
 e n d ; 
 d b _ l i n e   =   c o n v e r t   ( d b _ l i n e ,   a r g ) ; 
 r e t u r n ; 
 
 a l l f :   e n t r y ;   d b _ s w ,   l g _ s w ,   t x _ s w ,   p f _ s w ,   d t _ s w ,   a b r t _ s w   =   " 0 " b ; 
 	 r e t u r n ; 
 % p a g e ; 
 / *   T h i s   o n e   i n c l u d e   f i l e   c o n t a i n s   a l l   t h e   c o m p o s e   i n c l u d e s   n e c e s s a r y   f o r   a n     * / 
 / *     o u t p u t   w r i t e r 	 	 	 	 	 	               * / 
 % 	 i n c l u d e   c o m p _ o u t p r o c ; 
 
   e n d   h y t e r m _ w r i t e r _ ; 
 
      
 
 
  
 	 	         h y t e r m _ w r i t e r _ . p l 1 . x d w                     0 4 / 2 3 / 8 5     1 2 5 7 . 6 r e w   0 4 / 2 3 / 8 5     0 9 1 1 . 9             1 3 5 9 6 3     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   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   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 & e x t   d e v i c e = h y t e r m & ; 
 & e x t   d e v c l a s s = d i a b l o & ; 
 & e x t   n o t e s = 
 / *   T h i s   i s   a   6 0 x 4 8   D i a b l o   t y p e   d e v i c e .   I t   s u p p o r t s   p l o t   m o d e   a n d   a d j u s t a b l e     * / 
 / *     H M I   v a l u e s .   M o s t   a r t w o r k   i s   d o n e   v i a   p l o t   m o d e .   H o r i z o n t a l   l i n e s   a r e           * / 
 / *     i m p l e m e n t e d   w i t h   H M I = 2 / 1 2 0   t h e n   " . " ' s .                                                                       * / 
 & ; 
 
 & e x t   B S P = & .  & ; 
 & e x t   F S P = & .   & ; 
 & e x t   H L F =  U & ; 
 & e x t   H R L F =  D & ; 
 & e x t   L F = & . 
 & ; 
 & e x t   R L F =  & . 
 & ; 
 & e x t   u n P L T c r = 1 & ; 
 & e x t   V M I =   & ; 
 & e x t   V M I n = < E S C > 0 3 6 & ; 
 
 & e x t   d c l s = & + 
         d c l   ( 
                 A B S _ T A B 	       c h a r   ( 2 )   i n i t   ( "  	 " ) , 
                 D T 1 	       c h a r   ( 3 )   i n i t   ( "  	  " ) , 
                 P E N D O W N 	       c h a r   ( 1 )   i n i t   ( " . " ) , 
                 P E N U P 	       c h a r   ( 1 )   i n i t   ( "   " ) , 
                 P L O T 	       c h a r   ( 2 )   i n i t   ( "  3 " ) , 
                 P L O T l e n 	       f i x e d   b i n   i n i t   ( 2 ) , 
                 R L F 	       c h a r   ( 2 )   i n i t   ( "  
 " ) , 
                 R L F l e n 	       f i x e d   b i n   i n i t   ( 2 ) , 
                 S E T _ H M I 	       c h a r   ( 2 )   i n i t   ( "   " ) , 
                 u n P L O T 	       c h a r   ( 4 )   v a r   i n i t   ( "  4 " ) , 
                 u n P L O T l e n 	       f i x e d   b i n   i n i t   ( 2 ) , 
 	 	 	 	 / *   1 0 p i t c h   h m i   v a l u e   * / 
                 H M I 1 0 	       f i x e d   b i n   i n i t   ( 1 2 ) 
 	 ) 	 	       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 ) ; 
         d c l   B E L c 	       c h a r   ( 1 7 )   v a r ; 	 / *   B E L | | H T | | P A D s   f o r   w h e e l   c h a n g e     * / 
         d c l   1   d e v _ s t a t 	       b a s e d   ( d e v _ s t a t _ p t r ) , 
 	 2   i n i t e d 	       f i x e d   b i n   ( 3 5 ) , 
 	 2   s w , 
 	     3   p l o t t i n g   b i t   ( 1 )   u n a l , 	 / *   1 -   i n   r e g u l a r   p l o t   m o d e   * / 
 	     3   M B Z 	       b i t   ( 3 5 )   u n a l , 
 	 2   h m i _ c o d e       c h a r   ( 1 ) , 	 / *   c u r r e n t   d e v i c e   H M   c h a r a c t e r       * / 
 	 2   h m i _ v a l u e     f i x e d   b i n ; 	 / *   c u r r e n t   d e v i c e   H M   v a l u e       * / 
         d c l   e r r _ c t                   f i x e d   b i n ; 
         d c l   e r r _ s w                   b i t   ( 1 ) ; 
         d c l   f o n t _ w h e e l 	       ( 3 6 )   f i x e d   b i n ; 	 / *   w h e e l s   n e e d e d   f o r   f o n t s   * / 
         d c l   m o u n t e d _ w h e e l 	 	 / *   p r i n t   w h e e l   o n   m a c h i n e   * / 
 	 	       f i x e d   b i n   s t a t i c   i n i t   ( 0 ) ; 
         d c l   n e e d _ w h e e l 	       f i x e d   b i n ; 	 / *   p r i n t   w h e e l   n e e d e d   * / 
         d c l   1   p r e f a c e 	       a l i g n e d   l i k e   p a g e _ r e c o r d   b a s e d   ( p a g e _ r e c o r d _ p t r ) ; 
         d c l   i p l t 	       f i x e d   b i n ; 	 / *   n u m b e r   o f   * c ' s   t o   e m i t   * / 
         d c l   M A X _ S T R 	       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 0 4 8 ) ; 
         d c l   p l o t _ s t r               ( 4 0 )   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 	 	 / * * / 
 	 	       ( " & F S P & L F . " , 	 " r d . " , 
 	 	         " & F S P & R L F . " , 	 " r u . " , 
 	 	         " & F S P . " , 	 " r . " , 
 	 	         " & B S P & L F . " , 	 " l d . " , 
 	 	         " & B S P & R L F . " , 	 " l u . " , 
 	 	         " & B S P . " , 	 " l . " , 
 	 	         " & L F . " , 	 " d . " , 
 	 	         " & R L F . " , 	 " u . " , 
 	 	         " . " , 	 	 " . " , 
 	 	         " & F S P & L F " , 	 " r d " , 
 	 	         " & F S P & R L F " , 	 " r u " , 
 	 	         " & F S P " , 	 " r " , 
 	 	         " & B S P & L F " , 	 " l d " , 
 	 	         " & B S P & R L F " , 	 " l u " , 
 	 	         " & B S P " , 	 " l " , 
 	 	         " & L F " , 	 " d " , 
 	 	         " & R L F " , 	 " u " , 
 	 	         " 	 " , 	 " H T " , 
 	 	         " & H L F " , 	 " d / 2 " , 
 	 	         " & H R L F " , 	 " u / 2 " 
 	 	       ) ; 
 	 d c l   r s t 	 	 c h a r   ( 8 )   v a r ; 	 / *   r e p l a c e m e n t   s t r i n g   * / 
 	 d c l   V M I 	 	 c h a r   ( 4 )   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   ( " & V M I " ) ; 
         d c l   t a b c o l 	       f i x e d   b i n ; 	 / *   t a r g e t   f o r   d i r e c t   t a b b i n g   * / 
         d c l   x c 	       c h a r   ( 2 )   v a r ; 	 / *   h o r i z o n t a l   p l o t   c h a r a c t e r ( s )   * / 
         d c l   x c m a x 	       f i x e d   b i n ; 
         d c l   x y c 	       c h a r   ( 6 )   v a r ; 	 / *   c o m m o n   p l o t   c h a r a c t e r ( s )   * / 
         d c l   x i y i 	       f i x e d   b i n ; 	 / *   a m o u n t   o f   c o m m o n   m o v e m e n t   * / 
         d c l   x y c m a x 	       f i x e d   b i n ; 
         d c l   y c 	       c h a r   ( 3 )   v a r ; 	 / *   v e r t i c a l   p l o t   c h a r a c t e r ( s )   * / 
         d c l   y c m a x 	       f i x e d   b i n ; 
 
         d c l   ( a b s ,   c h a r ,   c o l l a t e 9 ,   c o p y ,   d e c ,   l t r i m ,   r o u n d ,   r t r i m ,   s e a r c h ,   s i g n , 
                 v e r i f y ) 	       b u i l t i n ; 
 & ; 
 
 & e x t   f i l e _ i n i t = 
 & . 	 m a x _ r e v l e a d   =   - 1 2 0 0 0 ; 	 / *   d o n t   b a c k   u p   m o r e   t h a n   1   l i n e   * / 
 	 i f   o p t i o n . n o b e l l _ o p t 
 	 t h e n   B E L c   =   "  	                " ; 
 	 e l s e   B E L c   =   "  	                " ; 
 	 m o u n t e d _ w h e e l   =   1 ; 	 	 / *   a s s u m e   A S C I I   w h e e l   i s   m o u n t e d   * / 
 & ;   & + 
 
 & e x t   p a g e _ i n i t = & + 
         n e e d _ w h e e l   =   m o u n t e d _ w h e e l ; 	 / *   l a s t   o n e   m o u n t e d   * / 
         f o n t _ w h e e l   ( * )   =   0 ; 
 & ; & + 
 
 & e x t   i m a g e _ i n i t = & + 
         p r e f a c e . i n _ u s e ,   p r e f a c e . p r e f a c e ,   p r e f a c e . r a w o   =   " 1 " b ; 
 
         i f   n e e d _ w h e e l   ^ =   m o u n t e d _ w h e e l 	 / *   n e e d   a   w h e e l   c h a n g e ?   * / 
         t h e n 
             d o ; 
                 p r e f a c e . h a l t ,   p r e f a c e . h a l t 2   =   " 1 " b ; 
                 m o u n t e d _ w h e e l   =   n e e d _ w h e e l ; 	 / *   s h o w   w h e e l   c h a n g e d   * / 
             e n d ; 
 
         p r e f a c e . n e x t r e f   =   " 0 " b ; 
         p a g e _ r e c o r d _ p t r   =   a d d r   ( p r e f a c e . n e x t r e f ) ; 
         p a g e _ r e c o r d . l e n g   =   0 ; 
         u n s p e c   ( p a g e _ r e c o r d . s w s )   =   " 0 " b ; 
         p a g e _ r e c o r d . i n _ u s e   =   " 1 " b ; 
         p a g e _ r e c o r d . s w s . r a w o   =   " 1 " b ; 
         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 ; 
         h m i _ v a l u e   =   H M I 1 0 ; 
 
         i f   f i r s t _ p a g e 
         t h e n 
             d o ; 	 	 	 	 / *   e m i t   H M I   * / 
                 w i n d o w _ l e v e l ,   m a x _ l e v e l   =   w i n d o w _ t o p ; 
                 t s t r _ p t r   =   a d d r   ( w i n d o w   ( w i n d o w _ t o p ) ) ; 
                 i f   t s t r . s t r _ p t r   =   n u l l 
                 t h e n   t s t r . s t r _ p t r   =   a l l o c a t e   ( w i n d o w _ a r e a _ p t r ,   1 0 2 4 ) ;   
                 m e d s e l s t r ,   t s t r _ l i n e   =   " " ; 
                 c a l l   p u t _ s t r   ( S E T _ H M I   | |   b y t e   ( H M I 1 0   +   1 ) ,   0 ) ; 
                 c a l l   p u t _ ; 
                 u n s p e c   ( t s t r )   =   " 0 " b ; 
                 t s t r . s t r _ p t r   =   a l l o c a t e   ( w i n d o w _ a r e a _ p t r ,   1 0 2 4 ) ;   
                 t s t r _ p t r   =   a d d r   ( w i n d o w   ( 0 ) ) ; 
                 w i n d o w _ l e v e l ,   m a x _ l e v e l   =   0 ; 
                 f i r s t _ p a g e   =   " 0 " b ; 
             e n d ; 
 & ; & + 
 
 & e x t   s e t _ f o n t = 
         f o n t _ m e d i a   ( f o n t _ i n )   =   n e e d _ d e v f n t ; 
         n e e d _ w h e e l ,   f o n t _ w h e e l   ( f o n t _ i n )   = 	 / *   n e e d e d   w h e e l   * / 
             b i n   ( u n s p e c   ( s u b s t r   ( m e d s e l   ( n e e d _ d e v f n t ) ,   1 ,   1 ) ) ) ; 
 & ; & + 
 
 & e x t   s e t _ m e d i a = & + 
         m o u n t e d _ w h e e l   =   n e e d _ w h e e l ; 	 / *   n e e d e d   w h e e l   n o w   m o u n t e d   * / 
 
         i f   h m i _ c o d e   ^ =   s u b s t r   ( m e d s e l   ( n e w _ d e v f n t ) ,   2 ,   1 ) 
         t h e n 
             d o ; 
                 h m i _ c o d e   =   s u b s t r   ( m e d s e l   ( n e w _ d e v f n t ) ,   2 ,   1 ) ; 
                 m e d s e l s t r   =   S E T _ H M I   | |   h m i _ c o d e ; 
                 h m i _ v a l u e   =   r a n k   ( h m i _ c o d e )   -   1 ; 
           e n d ; 
 & ; 
 
 & e x t   s e t _ p s = & . 
         m e d i a _ s i z e   =   7 2 0 0 ; 
 & ; & + 
 
 & e x t   p r e p u t = & . 
                 i f   d e v _ s t a t . p l o t t i n g 	 / *   i f   a l r e a d y   p l o t t i n g   * / 
                 t h e n   d o ; 
 	 	 	 	 / *   d o e s   r e p l   s t a r t   w i t h   P L O T ?   * / 
 	   i f   i n d e x   ( r e p l . s t r ,   P L O T )   =   1 
 	   t h e n   d o ; 	 	 / *   s t r i p   i t   o f f   * / 
 	         s u b s t r   ( r e p l . s t r ,   1 ,   r e p l . l e n   -   P L O T l e n )   =   
 	               s u b s t r   ( r e p l . s t r ,   P L O T l e n )   +   1 ,   r e p l . l e n   -   P L O T l e n ) ; 
 	         r e p l . l e n   =   r e p l . l e n   -   P L O T l e n ) ; 
 	   e n d ; 
 
 	   e l s e   d o ; 
       	         s u b s t r   ( t s t r _ l i n e ,   t n x t ,   u n P L O T l e n )   =   u n P L O T ; 
 	         t s t r . l e n   =   t s t r . l e n   +   u n P L O T l e n ; 
 	         t n x t   =   t s t r . l e n   +   1 ; 
       	         d e v _ s t a t . p l o t t i n g   =   " 0 " b ; 
       	         i f   l o n g _ s w 
       	         t h e n   c a l l   i o a _   ( " ^ 5 x ( u n p l o t :   X = 0 .   Y = 0 .   " " ] > " " " ) ; 
 	   e n d ; 
                 e n d ; 
 
                 e l s e   i f   i n d e x   ( r e p l . s t r ,   P L O T )   =   1   & & 
                 s u b s t r   ( r e p l . s t r ,   r e p l . l e n   -   u n P L O T l e n )   ^ =   u n P L O T 
                 t h e n   d e v _ s t a t . p l o t t i n g   =   " 1 " b ; 
 & ; 
 
 & e x t   p a g e _ f i n i s h = & . 	 	 	 / *   s h o w   t h i s   f o n t   o u t p u t   c o m p l e t e   * / 
         s u b s t r   ( f o n t s _ d o n e ,   f o n t _ i n ,   1 )   =   " 1 " b ; 
 	 	 	 	 / *   l o o k   f o r   a n o t h e r   f o n t   * / 
         n e e d _ f o n t   =   i n d e x   ( f o n t s _ n e e d e d   & &   ^ f o n t s _ d o n e ,   " 1 " b ) ; 
         i f   n e e d _ f o n t   ^ =   0 	 	 / *   i f   a n o t h e r   w h e e l   i s   n e e d e d   * / 
         & &   f o n t _ w h e e l   ( n e e d _ f o n t )   ^ =   f o n t _ w h e e l   ( f o n t _ i n ) 
         t h e n 
             d o ; 
                 p a g e _ r e c o r d . n e x t r e f   =   " 0 " b ; 
                 p a g e _ r e c o r d _ p t r   =   a d d r   ( p a g e _ r e c o r d . n e x t r e f ) ; 
                 f o n t _ i n ,   t s t r . d e v f n t   =   0 ;   	 / *   e r a s e   c u r r e n t   f o n t ,   d e v f n t   * / 
                 c a l l   s e t _ f o n t   ( n e e d _ f o n t ,   f o n t _ s i z e ) ; 
                 c a l l   s e t _ m e d i a   ( n e e d _ f o n t ,   f o n t _ m e d i a   ( n e e d _ f o n t ) ) ; 
                 g o t o   r e s c a n _ p a g e ; 
             e n d ; 
 & ; 
 
 & e x t   p u t = & + 
 	 	 	 	 / *   f o r   f u l l / p a r t i a l   l i n e s   * / 
             d o   l e v e l _ s k i p   =   0   t o   l i n e _ w i n d o w _ s i z e   -   1 
                 w h i l e   ( ^ w i n d o w   ( l e v e l   +   l e v e l _ s k i p   +   1 ) . o p e n ) ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   n e e d   a   F N L ?   * / 
             i f   l e v e l _ s k i p   > =   l i n e _ w i n d o w _ s i z e   -   1   |   l e v e l   =   m a x _ l e v e l 
             t h e n 
                 d o ; 
 	 i f   ^ f i r s t _ p a g e 
 	 t h e n   t s t r _ l i n e   =   t s t r _ l i n e   | |   N L ; 
 	 l e v e l _ s k i p   =   l i n e _ w i n d o w _ s i z e   -   1 ; 
                 e n d ; 
 
             e l s e 	 	 	 / *   n e e d   a   i n c r   N L   * / 
                 d o ; 
 	 i f   t s t r _ l i n e   =   D T 1 
 	 t h e n   t s t r _ l i n e   =   P L O T ; 
                     e l s e   t s t r _ l i n e   =   t s t r _ l i n e   | |   P L O T ; 
 	 t s t r _ l i n e   =   t s t r _ l i n e   | |   c o p y   ( N L ,   l e v e l _ s k i p   + 1 ) ; 
 	 t s t r _ l i n e   =   t s t r _ l i n e   | |   u n P L O T ; 
                 e n d ; 
 & ; & + 
 
 & e x t   p u t _ s t r = 
 	 	 	 	 / *   c h a n g i n g   H M I ?   * / 
             i f   i n d e x   ( s t r ,   S E T _ H M I )   =   1 	 / *   c h a n g e   p i t c h   i f   n e e d e d   * / 
             t h e n   i f   h m i _ c o d e   ^ =   s u b s t r   ( s t r ,   3 ,   1 )   
                       t h e n     h m i _ c o d e   =   s u b s t r   ( s t r ,   3 ,   1 ) ; 
 
             r e c o r d _ b o d y . l e n g   =   r e c o r d _ b o d y . l e n g   +   l e n g t h   ( s t r ) ; 
             s u b s t r   ( r e c o r d _ b o d y . t e x t ,   r e c o r d _ b o d y . l e n g   -   l e n g t h   ( s t r )   +   1 ,   l e n g t h   ( s t r ) )   =   s t r ; 
 & ; & + 
 
 & e x t   d i s p l a y = 
                 i f   c h   =   E S C 
                 t h e n 
 	 d o ; 
 	     i f   i n d e x   ( d t e x t ,   S E T _ H M I )   =   1 
 	     t h e n 
 	         d o ; 
 	             c h   =   s u b s t r   ( d t e x t ,   3 ,   1 ) ; 
 	             c a l l   i o a _ $ r s n n l   ( " < H M I ^ d / 1 2 0 > " ,   r t n _ s t r ,   0 ,   r a n k   ( c h )   -   1 ) ; 
 	             c t   =   3 ; 
 	         e n d ; 
 
 	     e l s e   i f   i n d e x   ( d t e x t ,   A B S _ T A B )   =   1 
 	     t h e n 
 	         d o ; 
 	             i f   l e n g t h   ( d t e x t )   <   3 
 	             t h e n   g o t o   d i s p _ r e t ; 	 / *   n o   c o l u m n   b y t e   * / 
 
 	             c h   =   s u b s t r   ( d t e x t ,   3 ,   1 ) ; 
 	             c a l l   i o a _ $ r s n n l   ( " < D T - ^ d > " ,   r t n _ s t r ,   0 ,   r a n k   ( c h ) ) ; 
 	             c t   =   3 ; 
 	         e n d ; 
 
 	     e l s e   i f   i n d e x   ( d t e x t ,   R L F )   =   1 
 	     t h e n 
 	         d o ; 
 	             c t   =   v e r i f y   ( d t e x t ,   R L F ) ; 
 	             i f   c t   =   0 
 	             t h e n   c t   =   d i v i d e   ( l e n g t h   ( d t e x t ) ,   R L F l e n ,   1 7 ,   0 ) ; 
 	             e l s e   c t   =   d i v i d e   ( c t   -   1 ,   R L F l e n ,   1 7 ,   0 ) ; 
 
 	             i f   c t   >   1 
 	             t h e n   c a l l   i o a _ $ r s n n l   ( " < R L F * ^ d > " ,   d s t r ,   0 ,   c t ) ; 
 	             e l s e   d s t r   =   " < R L F > " ; 
 
 	             r t n _ s t r   =   r t n _ s t r   | |   d s t r ; 
 	             c t   =   c t   *   R L F l e n ; 
 	         e n d ; 
 
 	     e l s e   i f   i n d e x   ( d t e x t ,   P L O T )   =   1 
 	     t h e n   i f   i n d e x   ( d t e x t ,   u n P L O T )   ^ =   0 
 	 t h e n 
 	     d o ; 
 	     r t n _ s t r   =   r t n _ s t r   | |   " < P L T [ " ; 
 	     c t   =   2 ; 
 	     i   =   3 ; 
 
 u n p l o t : 
 	     d o   i   =   i   b y   0   w h i l e   ( i   < =   l e n g t h   ( d t e x t ) ) ; 
 	         i f   i n d e x   ( s u b s t r   ( d t e x t ,   i ) ,   u n P L O T )   =   1 
 	                   |   i n d e x   ( s u b s t r   ( d t e x t ,   i ) ,   C R )   =   1 
 	         t h e n 
 	             d o ; 
 	                 r t n _ s t r   =   r t n _ s t r   | |   " ] > " ; 
 	                 c t   =   c t   +   2 ; 
 	                 g o t o   d i s p _ r e t ; 
 	             e n d ; 
 
 	         e l s e   i f   i n d e x   ( s u b s t r   ( d t e x t ,   i ) ,   P L O T )   =   1 
 	         t h e n 
 	             d o ; 
 	                 r t n _ s t r   =   r t n _ s t r   | |   " < P L T > " ; 
 	                 c t   =   c t   +   2 ; 
 	                 i   =   i   +   2 ; 
 	             e n d ; 
 
 	         e l s e 	 	 	 / *   l o o k   f o r   m o t i o n   s t r i n g s   * / 
 	             d o ; 
 	                 d o   j   =   1   t o   d i m e n s i o n   ( p l o t _ s t r ,   1 )   b y   2 
 	 	       w h i l e   ( i n d e x   ( s u b s t r   ( d t e x t ,   i ) ,   p l o t _ s t r   ( j ) )   ^ =   1 ) ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   a   s t r a n g e r ?   * / 
 	                 i f   j   >   d i m e n s i o n   ( p l o t _ s t r ,   1 ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     c h   =   s u b s t r   ( d t e x t ,   i ,   1 ) ; 
 	 	     c a l l   i o a _ $ r s n n l   ( " < ^ . 3 b > " ,   d s t r ,   0 ,   u n s p e c   ( c h ) ) ; 
 	 	     r t n _ s t r   =   r t n _ s t r   | |   d s t r ; 
 	 	     c t   =   c t   +   1 ; 
 	 	     i   =   i   +   1 ; 
 	 	 e n d ; 
 
 	                 e l s e 
 	 	 d o ; 
 	 	     d o   k   =   0   b y   l e n g t h   ( p l o t _ s t r   ( j ) ) 
 	 	               w h i l e   ( i n d e x   ( s u b s t r   ( d t e x t ,   i   +   k ) ,   p l o t _ s t r   ( j ) ) 
 	 	               =   1 ) ; 
 	 	     e n d ; 
 
 	 	     c a l l   i o a _ $ r s n n l   ( " ^ [ ( ^ d * ^ ; ^ s ^ ] ^ a ^ [ ) ^ ] " ,   d s t r ,   0 , 
 	 	               ( k   >   l e n g t h   ( p l o t _ s t r   ( j ) ) ) , 
 	 	               d i v i d e   ( k ,   l e n g t h   ( p l o t _ s t r   ( j ) ) ,   1 7 ,   0 ) , 
 	 	               p l o t _ s t r   ( j   +   1 ) ,   ( k   >   l e n g t h   ( p l o t _ s t r   ( j ) ) ) ) ; 
 	 	     r t n _ s t r   =   r t n _ s t r   | |   d s t r ; 
 	 	     c t   =   c t   +   k ; 
 	 	     i   =   i   +   k ; 
 	 	 e n d ; 
 	             e n d ; 
 	     e n d ; 
 	 e n d ; 
 
 	 e l s e   c t   =   - 1 ; 
                   e n d ; 
 
                   e l s e   i f   c h   =   R L F 
                   t h e n   d o ; 
 	     c t   =   v e r i f y   ( d t e x t ,   R L F ) ;   / *   h o w   m a n y ?   * / 
 	     i f   c t   =   0                 / *   a l l   t h e   r e s t   * / 
 	     t h e n   c t   =   d i v i d e   ( l e n g t h   ( d t e x t ) ,   l e n g t h   ( R L F ) ,   1 7 ,   0 ) ; 
 	     e l s e   c t   =   d i v i d e   ( c t   -   1 ,   2 ,   1 7 ,   0 ) ; 
 
 	     i f   c t   >   1                 / *   i f   m o r e   t h a n   o n e   * / 
 	     t h e n   c a l l   i o a _ $ r s n n l   ( " < R L F * ^ d > " ,   d s t r ,   0 ,   c t ) ; 
 	     e l s e   d s t r   =   " < R L F > " ; 
 
 	     r t n _ s t r   =   r t n _ s t r   | |   d s t r ; 
 	     c t   =   ( c t   +   b i n   ( c t   =   0 ) )   *   l e n g t h   ( R L F ) ; 
                   e n d ; 
 
                   e l s e   i f   c h   =   V M I 
                   t h e n 
 	   d o ; 
 	       i   =   i   +   3 ; 
 	       r t n _ s t r   =   r t n _ s t r   | |   " < V M I " ; 
 	       r t n _ s t r   =   r t n _ s t r   | |   l t r i m (   c h a r   ( r a n k   ( s u b s t r   ( d t e x t ,   i - 1 ,   1 ) )   - 1 ) ) ; 
 	       r t n _ s t r   =   r t n _ s t r   | |   " / 4 8 > " ; 
 	   e n d ; 
 
                   e l s e   i f   c h   =   u n P L O T 
                   t h e n 
 	   d o ; 
 	       r t n _ s t r   =   r t n _ s t r   | |   " ] > " ; 
 	       i   =   i   +   u n P L O T l e n & . ; 
 	 e n d ; 
 
                   e l s e   c t   =   0 ; 
 & ; 
 
 & e x t   f o o t _ p r o c = 
             d c l   1   s u p e r 	           l i k e   d c s h o r t _ v a l ; 
             d c l   1   s u b 	           l i k e   d c s h o r t _ v a l ; 
             d c l   s s c h a r 	           c h a r   ( 5 )   b a s e d ; 
 
             s u p e r . m a r k ,   s u b . m a r k   =   D C 1 ; 
             s u p e r . t y p e ,   s u b . t y p e   =   t y p e _ s y ; 
             s u p e r . l e n g ,   s u b . l e n g   =   d c s h o r t 1 _ l e n ; 
             s u p e r . v 1   =   - 4 5 0 0 ; 
             s u b . v 1   =   4 5 0 0 ; 
             f o o t r e f   ( 1 )   =   a d d r   ( s u p e r )   - >   s s c h a r ; 
             f o o t r e f   ( 3 )   =   a d d r   ( s u b )   - >   s s c h a r ; 
 & ; 
 
 & e x t   p l o t = 
         i f   ^ P L O T _ O P 
         t h e n 
             d o ; 
                 i f   x m o v e   ^ =   0                                         / *   a n y   X   m o v e m e n t ?   * / 
                 t h e n 
                     d o ; 
 	     i f   t s t r . f o n t   =   0 
 	     t h e n   t s t r . f o n t   =   f o n t _ i n ; 	 / * * / 
 	 	 	 	 / *   a n y   f u l l   c o l u m n s ?   * / 
                         x i i   =   d i v i d e   ( x m o v e   *   X p i x e l ,   E N _ w i d t h ,   1 7 ,   0 ) ; 
 
                         i f   a b s   ( x i i )   > =   1 	 	 / *   i f   m o v i n g   a t   l e a s t   1   S P   o r   B S P   * / 
                         t h e n 
                             d o ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   n o t   m o r e   t h a n   3   S P s   * / 
 	             i f   a b s   ( x i i )   < =   3   & &   x i i   >   0 
 	             & &   n e w _ y p o s   =   o l d _ y p o s 	 / *   a n d   o n   t h e   s a m e   l i n e   * / 
 	             & &   t s t r _ l i n e   ^ =   D T 1 	 / *   a n d   n o t   l e f t   m a r g i n   * / 
 	             t h e n 
 	                 d o ; 
 	 	 i f   l e n g t h   ( p l t s t r )   +   x i i   > =   M A X _ S T R 
 	 	 t h e n   c a l l   p u t _ s t r   ( p l t s t r ,   0 ) ; 
 
 	 	 p l t s t r   =   p l t s t r   | |   c o p y   ( "   " ,   x i i ) ; 
 	 	 p l t w i d t h   =   p l t w i d t h   +   
 	 	     d i v i d e   ( x i i   *   E N _ w i d t h ,   X p i x e l ,   3 1 ,   0 ) ; 
 	 	 x m o v e   =   x m o v e   -   d i v i d e   ( x i i   *   E N _ w i d t h ,   X p i x e l ,   3 1 ,   0 ) ; 
 	                 e n d ; 
 
 	             e l s e 	 	 / *   > 3 ,   d i r e c t   t a b   t o   c o l u m n   * / 
 	                 d o ; 
 	 	 t a b c o l   = 	 	 / *   m u s t   a c c o u n t   f o r   c u r r e n t   H M I   * / 
 	 	     d i v i d e   ( n e w _ x p o s   *   X p i x e l   *   H M I 1 0 , 
 	 	     E N _ w i d t h   *   h m i _ v a l u e ,   1 7 ,   0 ) ; 
 
 	 	 i f   t a b c o l   >   1 2 5 	 / *   c a n   d i r e c t   t a b   t o   o n l y   t h e   * / 
 	 	 t h e n   t a b c o l   =   1 2 5 ; 	 / *   . . f i r s t   1 2 6   p r i n t   p o s i t i o n s   * / 
 
 	 	 e l s e   i f   t a b c o l   <   0 
 	 	 t h e n 
 	 	     d o ; 
 	 	         c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 3 , 
 	 	             c o m p _ e r r o r _ t a b l e _ $ p r o g r a m _ e r r o r ,   l i n e i n f o p t r ,   l o c t x t , 
 	 	             " A   c a r r i a g e   c o l u m n   t o   t h e   l e f t   o f   t h e   l e f t   m a r g i n "   | | 
 	 	             "   s t o p   h a s   b e e n   e n c o u n t e r e d . " ) ; 
 	 	         t a b c o l   =   0 ; 
 	 	     e n d ; 
 
 	 	 p l t s t r   =   p l t s t r   | |   A B S _ T A B   | |   b y t e   ( t a b c o l   +   1 ) ; 
 	 	 p l t w i d t h   =   p l t w i d t h   -   X p o s   + 
 	 	     d i v i d e   ( t a b c o l   *   E N _ w i d t h ,   X p i x e l ,   3 1 ,   0 ) ; 
 	 	 	 	 / *   o v e r w r i t e   A B S _ T A B - o n l y   l i n e   * / 
 	 	 i f   l e n g t h   ( t s t r _ l i n e )   =   3   & &   i n d e x   ( t s t r _ l i n e ,   A B S _ T A B )   =   1 
 	 	 t h e n   t s t r _ l i n e   =   " " ; 
 
 	 	 x m o v e   =   n e w _ x p o s   - 	 / *   h o w   m u c h   i s   l e f t ?   * / 
 	 	     t a b c o l   *   d i v i d e   ( E N _ w i d t h ,   X p i x e l ,   3 1 ,   0 ) ; 
 	                 e n d ; 
 	         e n d ; 
 	 e n d ; 
 
                 e l s e   i f   t s t r _ l i n e   =   " "   & &   l o c t x t   ^ =   " " 
                 t h e n 
 	 d o ; 
 	     i f   t s t r . f o n t   =   0 
 	     t h e n   t s t r . f o n t   =   f o n t _ i n ; 
 	     p l t s t r   =   A B S _ T A B   | |   b y t e   ( 1 ) ; 
 	     p l t w i d t h   =   p l t w i d t h   -   X p o s ; 
 	 e n d ; 
             e n d ; 
 
         i f   x m o v e   ^ =   0   |   y m o v e   ^ =   0 	 / *   a n y   m o v e m e n t   a t   a l l ?   * / 
         t h e n 
             d o ; 
                 i f   x m o v e   <   0 	 	 / *   l e f t w a r d   m o v e m e n t ?   * / 
                 t h e n   x c   =   B S P ; 	 	 / *   s e t   B S   a s   p l o t   c h a r   * / 
                 e l s e   x c   =   "   " ; 	 	 / *   s e t   S P   a s   p l o t   c h a r   * / 
                 x m o v e   =   a b s   ( x m o v e ) ; 
 
                 i f   P L O T _ O P 
                 t h e n   x c   =   x c   | |   p e n c t l ; 
                 x c m a x   =   d i v i d e   ( M A X _ S T R ,   l e n g t h   ( x c ) ,   1 7 ,   0 ) ; 
     
                 i f   y m o v e   <   0 	 	 / *   u p w a r d   m o v e m e n t ?   * / 
                 t h e n   y c   =   R L F ; 	 	 / *   s e t   r e v e r s e   L F   a s   p l o t   c h a r   * / 
                 e l s e   y c   =   L F ; 	 	 / *   s e t   L F   a s   p l o t   c h a r   * / 
                 y m o v e   = a b s   ( y m o v e ) ; 
     
                 i f   P L O T _ O P 
                 t h e n   y c   =   y c   | |   p e n c t l ; 
                 y c m a x   =   d i v i d e   ( M A X _ S T R ,   l e n g t h   ( y c ) ,   1 7 ,   0 ) ; 
 
                 x y c   =   x c   | |   y c ; 
                 x y c m a x   =   d i v i d e   ( M A X _ S T R ,   l e n g t h   ( x y c ) ,   1 7 ,   0 ) ; 
 
                 x i y i   =   m i n   ( x m o v e ,   y m o v e ) ; 	 / *   a m o u n t   o f   c o m m o n   m o v m e n t   * / 
                 x m o v e   =   m a x   ( x m o v e   -   x i y i ,   0 ) ; 	 / *   r e m a i n i n g   x   m o v e m e n t   * / 
                 y m o v e   =   m a x   ( y m o v e   -   x i y i ,   0 ) ; 	 / *   r e m a i n i n g   y   m o v e m e n t   * / 
 
                 i f   l e n g t h   ( p l t s t r )   +   P L O T l e n   >   M A X _ S T R 
                 t h e n   c a l l   p u t _ s t r   ( p l t s t r ,   p l t w i d t h ) ; 
                 p l t s t r   =   p l t s t r   | |   P L O T ; 
 
                 d o   w h i l e   ( x i y i   >   0 ) ; 
 	 i p l t   =   m i n   ( x i y i ,   x y c m a x ) ; 
 	 i f   l e n g t h   ( p l t s t r )   +   i p l t   *   l e n g t h   ( x y c )   >   M A X _ S T R 
 	 t h e n   c a l l   p u t _ s t r   ( p l t s t r ,   p l t w i d t h ) ; 
 	 p l t s t r   =   p l t s t r   | |   c o p y   ( x y c ,   i p l t ) ; 
 	 p l t w i d t h   =   p l t w i d t h   +   s i g n   ( x m o v e )   *   i p l t ; 
 	 x i y i   =   x i y i   -   i p l t ; 
                 e n d ;   
 
                 d o   w h i l e   ( x m o v e   >   0 ) ; 
 	 i p l t   =   m i n   ( x m o v e ,   x c m a x ) ; 
 	 i f   l e n g t h   ( p l t s t r )   +   i p l t   *   l e n g t h   ( x c )   >   M A X _ S T R 
 	 t h e n   c a l l   p u t _ s t r   ( p l t s t r ,   p l t w i d t h ) ; 
 	 p l t s t r   =   p l t s t r   | |   c o p y   ( x c ,   i p l t ) ; 
 	 p l t w i d t h   =   p l t w i d t h   +   s i g n   ( x m o v e )   *   i p l t ; 
 	 x m o v e   =   x m o v e   -   i p l t ; 
                 e n d ;   
 
                 d o   w h i l e   ( y m o v e   >   0 ) ; 
 	 i p l t   =   m i n   ( y m o v e ,   y c m a x ) ; 
 	 i f   l e n g t h   ( p l t s t r )   +   i p l t   *   l e n g t h   ( y c )   >   M A X _ S T R 
 	 t h e n   c a l l   p u t _ s t r   ( p l t s t r ,   p l t w i d t h ) ; 
 	 p l t s t r   =   p l t s t r   | |   c o p y   ( y c ,   i p l t ) ; 
 	 y m o v e   =   y m o v e   -   i p l t ; 
                 e n d ; 
 
                 p l t s t r   =   p l t s t r   | |   u n P L O T ; 
             e n d ; 
 & ; 
 
 & c o m p _ d e v _ w r i t e r ( ) 
  