D e c o d e d :   R o g u e   ( 1 9 8 0 )   b y   T o y ,   A r n o l d ,   W i c h m a n 
 
 D O S   v e r s i o n   ( 1 9 8 3 )   b y   M e l   S i b o n y   a n d   J o n   L a n e 
 
 B e g i n n e r   f r i e n d l y ,   l i n e - b y - l i n e   c o d e   w a l k t h r o u g h   b y   M a i Z u r e 
 
 
 
 T h e   m a s t e r   l i s t   o f   f u n c t i o n s   i n   R o g u e ,   b y   n a m e   a n d   b y   s o u r c e   f i l e 
 
 
 
 F U N C T I O N S   B Y   N A M E 
 
 - - - - - - - - - - - - - - - - - 
 
 
 
 a d d _ f r n t   [ M A Z E . C ]   -     a d d s   a   p o i n t   t o   t h e   p o t e n t i a l   m a z e   f r o n t i e r 
 
 a d d _ h a s t e   [ M I S C . C ]   -   a d d s   h a s t e   e f f e c t   t o   t h e   p l a y e r 
 
 a d d _ l i n e   [ T H I N G S . C ]   -     a d d s   t o   d i s c o v e r y   l i s t 
 
 a d d _ p a c k   [ P A C K . C ]   -     a d d s   a n   i t e m   t o   i n v e n t o r y 
 
 a d d _ p a s s   [ P A S S A G E S . C ]   -     d r a w   a l l   t h e   p a s s a g e s   o n   t h e   l e v e l 
 
 a d d _ s c o r e s   [ R I P . C ]   -     a d d s   t h i s   s c o r e   t o   t h e   h i s t o r y 
 
 a d d _ s t r   [ M I S C . C ]   -     a d d s   t o   t h e   p l a y e r ' s   s t r e n g t h 
 
 a d d c h   [ C U R S E S . C ]   -     p r i n t s   a   c h a r a c t e r   t o   t h e   c u r r e n t   p o s i t i o n 
 
 a d d m s g   [ I O . C ]   -     a d d s   f o r m a t t e d   m e s s a g e   t o   t h e   c u r r e n t   m e s s a g e 
 
 a d d s t r   [ C U R S E S . C ]   -     p r i n t s   a   s t r i n g   t o   t h e   s c r e e n 
 
 a g g r a v a t e   [ M I S C . C ]   -     w a k e s   u p   a l l   m o n s t e r s 
 
 a t t a c k   [ F I G H T . C ]   -     m o n s t e r   a t t a c k s   p l a y e r 
 
 b a c k s p a c e   [ I O . C ]   -     e x e c u t e s   a   b a c k s p a c e   o n   t h e   s c r e e n   c u r s o r 
 
 b d o s   [ M A C H _ D E P . C ]   -     i n v o k e s   a   D O S   s o f w a r e   i n t e r r u p t   ( 0 x 2 1 ) 
 
 b e _ t r a p p e d   [ M O V E . C ]   -     s e t   o f f   a   t r a p   o n   t h e   p l a y e r 
 
 b l a n k s   [ I O . C ]   -     p a d s   b u f f e r   w i t h   b l a n k s 
 
 b l o a d   [ L O A D . C ]   -     l o a d s   t h e   b i n a r y   d a t a   i n   t o   v i d e o   m e m o r y 
 
 b l o t _ o u t   [ C U R S E S . C ]   -     c l e a r   a   s c r e e n   r e g i o n 
 
 b o x   [ C U R S E S . C ]   -     d r a w s   a   b o x   o n   t h e   s c r e e n   u s i n g   i n p u t   c o o r d i n a t e s 
 
 c a l l   [ M I S C . C ]   -     a s s i g n s   p l a y e r   i n p u t   s t r i n g   t o   a n   o b j e c t 
 
 c a l l _ i t   [ M I S C . C ]   -     a l l o w s   p l a y e r   t o   c h a n g e   n a m e s   o f   o b j e c t s 
 
 c a n _ d r o p   [ T H I N G S . C ]   -     r e t u r n   t r u e   i f   a n   i t e m   c a n   b e   d r o p p e d 
 
 c a n s e e   [ C H A S E . C ]   -     c h e c k s   i f   p l a y e r   c a n   s e e   t h e   i n p u t   c o o r d i n a t e s 
 
 c e n t e r   [ C U R S E S . C ]   -     c e n t e r s   a   s t r i n g   o n   t h e   s c r e e n 
 
 c h a r g e _ s t r   [ S T I C K S . C ]   -     r e t u r n s   t h e   t e x t   o f   m a g i c   c h a r g e s   r e m a i n i n g 
 
 c h a s e   [ C H A S E . C ]   -     f i n d s   t h e   n e x t   s t e p   d u r i n g   a   c h a s e 
 
 c h e c k _ l e v e l   [ F I G H T . C ]   -     c h e c k s   i f   p l a y e r   l e v e l s   u p 
 
 c h g _ s t r   [ M I S C . C ]   -     c h a n g e s   p l a y e r   s t r e n g t h   b y   a n   i n p u t   a m o u n t 
 
 c h o p m s g   [ T H I N G S . C ]   -     s h o r t e n s   a n   i n p u t   m e s s a g e   b a s e d   o n   t e r s e   m o d e 
 
 c l e a r   [ C U R S E S . C ]   -     c l e a r s   t h e   s c r e e n 
 
 c l o c k _ o n   [ M A C H _ D E P . C ]   -     s a v e s   a n d   r e p l a c e s   t h e   r e a l - t i m e   c l o c k   i n t e r r u p t 
 
 c l r t o e o l   [ C U R S E S . C ]   -     c l e a r   a   r o w   o n   t h e   s c r e e n 
 
 c o m _ c h a r   [ C O M M A N D . C ]   -     r e t u r n s   a n   e s c a p e d   c h a r a c t e r   a n d   s e t s   s t a t e 
 
 c o m m a n d   [ C O M M A N D . C ]   -     h a n d l e s   i n p u t .   C a l l e d   e v e r y   c y c l e   o f   g a m e   l o o p 
 
 c o n _ f r n t   [ M A Z E . C ]   -     c o n n e c t s   a   f r o n t i e r   p o i n t   w i t h   t h e   m a z e 
 
 c o n n   [ P A S S A G E S . C ]   -     d r a w s   a   p a s s a g e w a y   o u t   o f   a   r o o m   ( c o n n e c t s   a n o t h e r ) 
 
 c r e a t e _ o b j   [ W I Z A R D . C ]   -     c r e a t e s   a n   o b j e c t   o u t   o f   t h i n   a i r 
 
 c r e d i t s   [ M A C H _ D E P . C ]   -     d i s p l a y s   t h e   g a m e   c r e d i t s 
 
 C r o o t   [ C R O O T . C ]   -     s e t s   u p   p r o c e s s   a r g u m e n t s   o n   t h e   h e a p   f o r   t h e   g a m e 
 
 c u r s o r   [ C U R S E S . C ]   -     t u r n s   c u r s o r   o n   a n d   o f f 
 
 d _ l e v e l   [ M I S C . C ]   -     g o   d o w n   a   l e v e l   
 
 d _ s l o t   [ D A E M O N . C ]   -   f i n d s   a   d a e m o n   s l o t 
 
 d a e m o n   [ D A E M O N . C ]   -     c r e a t e s   a   d a e m o n 
 
 d e a t h   [ R I P . C ]   -     d i s p l a y   t h e   l o s s   s c r e e n 
 
 d e m o   [ R I P . C ]   -     p r i n t s   t h e   d e m o   e n d i n g   s c r e e n 
 
 d e s c e n d   [ M O V E . C ]   -     c h a n g e s   l e v e l s   w i t h   a n   o u t p u t   m e s s a g e 
 
 d i a g _ o k   [ C H A S E . C ]   -     c h e c k s   i f   d i a g o n a l   m o v e m e n t   i s   p o s s i b l e 
 
 d i s c a r d   [ L I S T . C ]   -     d e s t o r y s   a n   i t e m 
 
 d i s c o v e r e d   [ T H I N G S . C ]   -     s h o w s   a   l i s t   o f   t h i n g s   t h e   p l a y e r   k n o w s 
 
 D I S T A N C E   [ M I S C . C ]   -     r e t u r n s   s q u a r e d   M a n h a t t a n   d i s t a n c e 
 
 d o _ c h a s e   [ C H A S E . C ]   -     s e t   o n e   m o s n t e r   o f f   c h a s i n g   a   t a r g e t 
 
 d o _ d a e m o n s   [ D A E M O N . C ]   -     r u n   d a e m o n s   t h a t   a r e   r e a d y 
 
 d o _ f u s e s   [ D A E M O N . C ]   -     g o e s   t h r o u g h   t i m e d   d a e m o n s   a n d   d e c r e m e n t s   t i m e r s 
 
 d o _ m a c r o   [ M I S C . C ]   -     a l l o w s   p l a y e r   t o   d e f i n e   a   m a c r o 
 
 d o _ m o t i o n   [ W E A P O N S . C ]   -     a n i m a t e s   p r o j e c t i l e s 
 
 d o _ m o v e   [ M O V E . C ]   -     p r o c e s s e s   p l a y e r   m o v e m e n t ,   m a y   i n i t i a t e   e v e n t s 
 
 d o _ p a s s a g e s   [ P A S S A G E S . C ]   -     c r e a t e s   a l l   p a s s a g e s   o n   t h e   l e v e l 
 
 d o _ r o o m s   [ R O O M S . C ]   -     c r e a t e s   a l l   r o o m s ,   i n c l u d i n g   m a z e s   a n d   o t h e r s 
 
 d o _ r u n   [ M O V E . C ]   -   P u t s   p l a y e r   i n   t o   r u n   m o d e 
 
 d o _ z a p   [ S T I C K S . C ]   -     m a g i c   a t t a c k   w i t h   w a n d 
 
 d o a d d   [ I O . C ]   -     a d d s   a   s t r i n g   t o   t h e   e n d   o f   t h e   m e s s a g e   b u f f e r 
 
 d o c t o r   [ D A E M O N S . C ]   -     h e a l i n g   o v e r   t i m e   d a e m o n 
 
 d o d o s   [ F A K E D O S . C ]   -     p r o c e s s   c o m m a n d   l i n e   i n p u t 
 
 d o o r   [ P A S S A G E S . C ]   -     o p e n s   a   d o o r 
 
 d o o r _ o p e n   [ M O V E . C ]   -     a d d s   a   d o o r   a n d   p o s s i b l y   a   s e c r e t   d o o r 
 
 d r a i n   [ S T I C K S . C ]   -     d e a l s   h e a l t h   d a m a g e   a l l   a r o u n d ,   i n c l u d i n g   p l a y e r 
 
 d r a w _ m a z e   [ M A Z E . C ]   -     d r a w s   a   m a z e   b y   m a n i p u l a t i n g   m a p   d a t a   i n   p l a c e 
 
 d r a w _ r o o m   [ R O O M S . C ]   -     l o a d s   t h e   s y m b o l s   o n   t h e   m a p   a s   n e e d e d 
 
 d r o p   [ T H I N G S . C ]   -     s l i d e   o u t   s c r e e n   u p d a t i n g   a n i m a t i o n 
 
 d r o p _ c u r t a i n   [ C U R S E S . C ]   -     p l a y e r   d r o p s   a n   i t e m 
 
 e a t   [ M I S C . C ]   -     p l a y e r   e a t s   f o o d   f r o m   p a c k 
 
 e n d _ l i n e   [ T H I N G S . C ]   -     e n d s   a   l i s t   w i t h   a   n u l l   i t e m 
 
 e n d b l k   [ S T R I N G S . C ]   -     n u l l t e r m s   t h e   i n p u t   s t r i n g   w i t h o u t   a   b r e a k / s p a c e 
 
 e n d i t   [ M A I N . C ]   -     a b n o r m a l   p r o g r a m   t e r m i n a t i o n 
 
 e n d m s g   [ I O . C ]   -     p u s h e s   t h e   m e s s a g e   b u f f e r   t o   t h e   s c r e e n 
 
 e n t e r _ r o o m   [ R O O M S . C ]   -     u p d a t e s   t h e   d i s p l a y   w h e n   e n t e r i n g   a   r o o m 
 
 e p y x _ y u c k   [ L O A D . C ]   -     s h o w   t h e   e p y x   t i t l e   l o g o 
 
 e r r o r   [ C U R S E S . C ]   -     p r i n t s   a n   e r r o r   ( n o t   u s e d ) 
 
 e x e c c o m   [ C O M M A N D . C ]   -     d i s p a t c h e s   c o m m a n d   i n p u t   t o   t h e   p r o p e r   h a n d l e r 
 
 e x i t   [ C R O O T . C ]   -     w r a p s   t h e   D O S   e x i t   s y s c a l l   a n d   u n l o a d s   t h e   g a m e 
 
 e x p _ a d d   [ M O N S T E R S . C ]   -     a d d s   a n   e x p e r i e n c e   m o d i f i e r 
 
 e x t i n g u i s h   [ D A E M O N . C ]   -     d e s t r o y s   a   d a e m o n 
 
 f a k e d o s   [ F A K E D O S . C ]   -     i m i t a t e s   t h e   D O S   p r o m p t   ( l a u n c h   w i t h   !   k e y ) 
 
 f a l l   [ W E A P O N S . C ]   -     d r o p s   a n   i t e m   a r o u n d   a r o u n d   a   l o c a t i o n 
 
 f a l l p o s   [ W E A P O N S . C ]   -     g e t s   t h e   f a l l   p o s i t i o n   o f f s e t   f r o m   a   f i x e d   p o i n t 
 
 f a t a l   [ M A I N . C ]   -     e n d   p r o c e s s   w i t h   m e s s a g e 
 
 f i g h t   [ F I G H T . C ]   -     p l a y e r   a t t a c k s   m o n s t e r s 
 
 f i n d _ d e s t   [ C H A S E . C ]   -     r e t u r n s   a   t a r g e t   d e s t i n a t i o n   f o r   a   c h a s e r 
 
 f i n d _ d i r   [ M I S C . C ]   -   r e t u r n s   t h e   d e l t a   c o o r d i n a t e   o f   a   d i r e c t i o n 
 
 f i n d _ d r i v e   [ L O A D . C ]   -     f i n d s   t h e   d r i v e   u s i n g   a   D O S   s o f t w a r e   i n t e r r u p t 
 
 f i n d _ o b j   [ M I S C . C ]   -     r e t u r n s   a   p o i n t e r   t o   a n   o b j e c t   a t   i n p u t   p o s i t i o n 
 
 f i n d _ s l o t   [ D A E M O N . C ]   -     r e t u r n s   a   d a e m o n   b y   i t s   f u n c t i o n 
 
 f i r e _ b o l t   [ S T I C K S . C ]   -     r a n g e d   f i r e   a t t a c k 
 
 f i x _ s t i c k   [ S T I C K S . C ]   -     i n i t i a l i z e s   w a n d / s t a f f 
 
 f i x u p   [ C U R S E S . C ]   -     c l e a r   a   s c r e e n   c o l u m n 
 
 f l u s h _ t y p e   [ M A C H _ D E P . C ]   -     c l e a r s   t h e   k e y b o a r d   l o o k a h e a d   b u f f e r 
 
 f o r c e b w   [ C U R S E S . C ]   -     s e t s   m o d e   t o   b l a c k   a n d   w h i t e 
 
 f u s e   [ D A E M O N . C ]   -     s e t s   a   d a e m o n   t o   g o   o f f   a f t e r   a   d e l a y 
 
 g e t _ d i r   [ M I S C . C ]   -     g e t s   a   d i r e c t i o n   a n d   r e t u r n s   s u c c e s s / f a i l 
 
 g e t _ i t e m   [ P A C K . C ]   -     u s e s   a n d   i t e m   f r o m   i n v e n t o r y 
 
 g e t _ m o d e   [ C U R S E S . C ]   -     r e t u r n s   t h e   v i d e o   m o d e   u s i n g   B I O S 
 
 g e t _ n u m   [ W I Z A R D . C ]   -     g e t s   a   n u m b e r   f r o m   t h e   p l a y e r 
 
 g e t _ p r e f i x   [ C O M M A N D . C ]   -     r e t u r n s   t h e   f i r s t   c h a r a c t e r   o f   i n p u t 
 
 g e t _ s c o r e s   [ R I P . C ]   -     g e t   t h e   s c o r e   h i s t o r y 
 
 g e t e n v   [ E N V . C ]   -   R e t u r n s   e n v i r o n m e n t   v a r i a b l e s 
 
 g e t h a n d   [ R I N G S . C ]   -     r e q u e s t s   t h e   i n t e r e s t e d   h a n d   f r o m   t h e   p l a y e r 
 
 g e t i n f o   [ I O . C ]   -     i t   i s   t h e   g e n e r a l   p u r p o s e   k e y b o a r d   r e a d e r / p a r s e r 
 
 g e t r c   [ C U R S E S . C ]   -     u p d a t e s   t h e   c u r s o r   p o s i t i o n   p o i n t e r s   t o   t h e   c a c h e 
 
 g e t s y l   [ I N I T . C ]   -     g e n e r a t e s   a   s y l l a b l e   f o r   a   r a n d o m   n a m e 
 
 g i v e _ p a c k   [ M O N S T E R S . C ]   -     c r e a t e s   i n v e n t o r y   f o r   a   m o n s t e r 
 
 g o o d c h   [ M I S C . C ]   -     m o d i f i e s   a n   o b j e c t   d i s p l a y   c h a r a c t e r   i f   i t s   b a d 
 
 h e l p   [ M I S C . C ]   -     d i s p l a y s   g a m e   h e l p   s c r e e n 
 
 h i t   [ F I G H T . C ]   -     p r i n t s   h i t   m e s s a g e 
 
 h i t _ m o n s t e r   [ W E A P O N S . C ]   -     d e t e c t s   m i s s i l e   h i t   a n d   a p p l i e s   d a m a g e 
 
 h o r i z   [ R O O M S . C ]   -     d r a w s   a   h o r i z o n t a l   w a l l   f o r   a   r o o m 
 
 i f t e r s e   [ I O . C ]   -     r e t u r n s   s t r i n g s   b a s e d   o n   g a m e   t e r s e   s t a t u s 
 
 i m p l o d e   [ C U R S E S . C ]   -     c l e a r   s c r e e n   a n i m a t i o n 
 
 I N D E X   [ M I S C . C ]   -     r e t u r n s   a   p o s i t i o n   i n   t h e   l e v e l   d a t a   a r r a y 
 
 i n i t _ c o l o r s   [ I N I T . C ]   -     s e t s   u p   a   p a l e t t e   t a b l e   f o r   t h i s   g a m e   r u n 
 
 i n i t _ d s   [ I N I T . C ]   -     s e t s   u p   t h e   g a m e   h e a p   ( s i n g l e   s t a t i c   a l l o c a t i o n ) 
 
 i n i t _ m a t e r i a l s   [ I N I T . C ]   -     r a n d o m l y   m a t c h e s   w o o d   a n d   s t a f f   t y p e s 
 
 i n i t _ n a m e s   [ I N I T . C ]   -     s e t s   t h e   r a n d o m i z e d   u n k n o w n   s c r o l l   n a m e s 
 
 i n i t _ p l a y e r   [ I N I T . C ]   -     s e t s   s t a r t i n g   v a r i a b l e s   f o r   t h e   p l a y e r 
 
 i n i t _ s t o n e s   [ I N I T . C ]   -     m a t c h e s   a   r a n d o m   m i x   o f   r i n g s   a n d   s t o n e s 
 
 i n i t _ t h i n g s   [ I N I T . C ]   -     s e t s   u p   a   c u m u l a t i v e   p r o b a b i l i t y   t a b l e 
 
 i n i t _ w e a p o n   [ W E A P O N S . C ]   -     i n i t i a l i z e s   w e a p o n   v a r i a b l e s 
 
 i n r a n g e   [ M A Z E . C ]   -     r e t u r n s   t r u e   i f   t h e   i n p u t   i s   w i t h i n   t h e   r o o m 
 
 i n v _ n a m e   [ T H I N G S . C ]   -     r e t u r n s   t h e   i n v e n t o r y   d i s p l a y   n a m e   o f   a n   i t e m 
 
 i n v e n t o r y   [ P A C K . C ]   -     l i s t s   o u t   t h e   i t e m s   i n   i n v e n t o r y 
 
 i n v i s _ o n   [ P O T I O N S . C ]   -     t u r n   o n   s e e   i n v i s i b l e   e f f e c t 
 
 i s _ c u r r e n t   [ M I S C . C ]   -     r e t u r n s   t r u e   i f   i n p u t   o b j e c t   i s   i n   u s e 
 
 i s _ m a g i c   [ F I G H T . C ]   -     c h e c k s   i f   a n   o b j e c t   i s   m a g i c a l 
 
 i s _ s e t   [ E N V . C ]   -   r e t u r n s   t r u e   i f   a n   e n v i r o n m e n t   l a b e l   e x i s t s 
 
 i s a l p h a   [ S T R I N G S . C ]   -   r e t u r n s   t r u e   i f   i n p u t   i s   a   l e t t e r 
 
 i s d i g i t   [ S T R I N G S . C ]   -   r e t u r n s   t r u e   i f   i n p u t   i s   a   n u m b e r 
 
 i s j r   [ M A C H _ D E P . C ]   -     d e t e c t s   a n d   r e t u r n s   f l a g   i f   t h i s   i s   a   P C j r 
 
 i s l o w e r   [ S T R I N G S . C ]   -   r e t u r n s   t r u e   i f   t h e   i n p u t   i s   l o w e r   c a s e 
 
 i s p r i n t   [ S T R I N G S . C ]   -   r e t u r n s   t r u e   i f   i n p u t   i s   a   p r i n t a b l e   c h a r a c t e r 
 
 i s s p a c e   [ S T R I N G S . C ]   -   r e t u r n s   t r u e   i f   t h e   i n p u t   i s   a   s p a c e 
 
 i s t e s t   [ M I S C . C ]   -     i s   u s e l e s s 
 
 i s u p p e r   [ S T R I N G S . C ]   -   r e t u r n s   t r u e   i f   i n p u t   i s   u p p e r   c a s e 
 
 k i l l e d   [ F I G H T . C ]   -     k i l l s   a   m o n s t e r 
 
 k i l l n a m e   [ R I P . C ]   -     g e t s   n a m e   o f   t h e   m o n s t e r   t h a t   k i l l e d   t h e   p l a y e r 
 
 l c a s e   [ S T R I N G S . C ]   -     c o n v e r t s   a   s t r i n g   t o   l o w e r   c a s e 
 
 l e a v e   [ M A I N . C ]   -     q u i c k   e x i t   f r o m   g a m e 
 
 l e a v e _ r o o m   [ R O O M S . C ]   -     u p d a t e s   t h e   d i s p l a y   a s   p l a y e r   e x i t s   a   r o o m 
 
 l e n g t h e n   [ D A E M O N . C ]   -     i n c r e a s e s   t h e   t i m e   d e l a y   o f   a   d a e m o n 
 
 l o o k   [ M I S C . C ]   -     u p d a t e s   t h e   s c r e e n . . . f o r c e d   r e c a l c u l a t e   a n d   r e d r a w 
 
 m a i n   [ M A I N . C ]   -     t h e   e n t r y   p o i n t   f o r   R o g u e 
 
 m a z e _ a t   [ M A Z E . C ]   -     c h e c k s   a   p o i n t   a n d   r e t u r n s   t r u e   i f   i t ' s   a   m a z e 
 
 m e   [ M I S C . C ]   -     r e t u r n s   a   g l o b a l   v a r i a b l e 
 
 m i s s   [ F I G H T . C ]   -     p r i n t s   m i s s   m e s s a g e 
 
 m i s s i l e   [ W E A P O N S . C ]   -     l a u n c h e s   a   p r o j e c t i l e 
 
 m o a t   [ M O N S T E R S . C ]   -     r e t u r n s   a   m o n s t e r   a t   a n   i n p u t   p o s i t i o n 
 
 m o n e y   [ P A C K . C ]   -     a d d   o r   t a k e   a w a y   g o l d 
 
 m o r e   [ I O . C ]   -     p a u s e s   m e s s a g e s   t o   w a i t   f o r   u s e r   i n p u t 
 
 m s g   [ I O . C ]   -     p r i n t s   a   m e s s a g e   t o   t h e   s c r e e n 
 
 m v a d d c h   [ C U R S E S . C ]   -     p r i n t s   a   c h a r a c t e r   a t   a   p o s i t i o n 
 
 m v a d d s t r   [ C U R S E S . C ]   -     p r i n t s   a   s t r i n g   s t a r t i n g   a t   a   p o s i t i o n 
 
 m v i n c h   [ C U R S E S . C ]   -     R e t u r n s   a   c h a r a c t e r   a t   a   p o s i t i o n 
 
 n e w _ f r o n t i e r   [ M A Z E . C ]   -     a d d s   c a r d i n a l   p o i n t s   t o   t h e   f r o n t i e r 
 
 n e w _ i t e m   [ L I S T . C ]   -     c r e a t e s   a   n e w   o b j e c t 
 
 n e w _ l e v e l   [ N E W _ L E V E . C ]   -     g e n e r a t e s   a   n e w   l e v e l   - -   a l l   s t o r e d   a t   g l o b a l 
 
 n e w _ m o n s t e r   [ M O N S T E R S . C ]   -     i n i t i a l i z e s   a   n e w   m o n s t e r   f o r   t h e   l e v e l 
 
 n e w _ s l i m e   [ S L I M E . C ]   -     c r e a t e s   a   n e w   s l i m e   f r o m   t h e   p a r e n t 
 
 n e w _ t h i n g   [ T H I N G S . C ]   -     a l l o c a t e s   a n d   i n i t i a l i z e s   a   n e w   i t e m 
 
 n e w m e m   [ M A C H _ D E P . C ]   -     m e m o r y   a l l o c a t o r   ( s t d   m a l l o c   n o t   i n v e n t e d   y e t ) 
 
 n o _ c l o c k   [ M A C H _ D E P . C ]   -     r e s t o r e s   o r i g i n a l   R T C   i n t e r r u p t   h a n d l e r 
 
 n o h a s t e   [ D A E M O N S . C ]   -     p l a y e r   l o s e s   h a s t e   e f f e c t 
 
 n o p e r   [ C R O O T . C ]   -     a   q u i c k   N O P   f u n c t i o n   i n   C 
 
 n o t e r s e   [ I O . C ]   -     r e t u r n s   t h e   a p p r o p r i a t e   ( n o n ) t e r s e   s t r i n g 
 
 n o t h i n g   [ T H I N G S . C ]   -     s e t   u p   b u f f e r   f o r   n o   d i s c o v e r i e s 
 
 n u m   [ W E A P O N S . C ]   -     a s s i g n   p a s s a g e   n u m b e r   t o   a   p a s s a g e 
 
 n u m p a s s   [ P A S S A G E S . C ]   -     c a l c u l a t e s   t h e   a d d i t i o n a l   d a m a g e / p r o t e c t   d e s c r i p t i o n 
 
 o f f m a p   [ M I S C . C ]   -     r e t u r n s   t r u e   i f   i n p u t   i s   o f f   t h e   m a p 
 
 o n e _ t i c k   [ M A C H _ D E P . C ]   -     b l o c k s   f o r   o n e   t i c k 
 
 p a c k _ c h a r   [ P A C K . C ]   -     g e t s   t h e   i n v e n t o r y   i n d e x 
 
 p a c k _ o b j   [ P A C K . C ]   -     r e t u r n s   o b j e c t   a n d   u p d a t e s   b a c k p a c k   p o i n t e r 
 
 p a s s n u m   [ P A S S A G E S . C ]   -     a s s i g n s   n u m b e r s   t o   a l l   p a s s a g e s 
 
 p a s s w d   [ W I Z A R D . C ]   -     p i n g s   t h e   p l a y e r   f o r   t h e   s e c r e t   c o d e 
 
 p e e k c   [ E N V . C ]   -   r e a d s   t h e   n e x t   c h a r a c t e r   i n   a   f i l e 
 
 p f _ c h r   [ I O . C ]   -     f o r m a t   t h e   i n p u t   a s   a   c h a r a c t e r 
 
 p f _ i n t   [ I O . C ]   -     f o r m a t   t h e   i n p u t   a s   a   s i g n e d   i n t e g e r 
 
 p f _ p e r   [ I O . C ]   -     f o r m a t s   t h e   i n p u t   a s   a n   a t t r i b u t e   t o k e n 
 
 p f _ s t r   [ I O . C ]   -     c o n v e r t s   a l l   i n p u t   t o   s t r i n g 
 
 p f _ u i n t   [ I O . C ]   -     f o r m a t   t h e   i n p u t   a s   a n   u n s i g n e d   i n t e g e r 
 
 p i c k _ m o n s   [ M O N S T E R S . C ]   -     c h o o s e s   a   m o n s t e r   a s   a   v o r p a l   t y p e 
 
 p i c k _ o n e   [ T H I N G S . C ]   -     c h o o s e s   a   m a g i c   i t e m   i n   a   l i s t ,   r e t u r n s   i n d e x 
 
 p i c k _ u p   [ P A C K . C ]   -     p i c k   u p   a n   i t e m 
 
 p l a y i t   [ M A I N . C ]   -     t h e   m a i n   g a m e   p l a y   l o o p :   r e a d   i n p u t   a n d   e x e c u t e 
 
 p l o p _ m o n s t e r   [ S L I M E . C ]   -     p l a c e s   t h e   n e w l y   c r e a t e d   s l i m e 
 
 p r _ s c o r e s   [ R I P . C ]   -     p r i n t s   t h e   t o p   s c o r e s 
 
 p r i n t _ d i s c   [ T H I N G S . C ]   -     s h o w s   d i s c o v e r s   o f   a   s p e c i f i c   t y p e 
 
 p r i n t w   [ C U R S E S . C ]   -     p r i n t s   a n   ( a l m o s t )   v a r i a d i c   s t r i n g   t o   t h e   s c r e e n 
 
 p r n a m e   [ F I G H T . C ]   -     p r i n t s   a t t a c k e r   n a m e 
 
 p r o t e c t   [ P R O T E C T . C ]   -     c o n f i r m s   c o p y   p r o t e c t i o n 
 
 p s p l a t   [ P A S S A G E S . C ]   -     d i g   a   s i n g l e   s q u a r e   o f   a   p a s s a g e 
 
 p u t _ s c o r e s   [ R I P . C ]   -     s a v e   t h e   s c o r e   h i s t o r y 
 
 p u t _ t h i n g s   [ N E W _ L E V E . C ]   -     p l a c e s   p o t i o n s   a n d   s c r o l l s 
 
 p u t e n v   [ E N V . C ]   -   a d d s   a   l a b e l   t o   t h e   e n v i r o n m e n t 
 
 p u t m s g   [ I O . C ]   -     a d d s   a   m u l t i l i n e   m e s s a g e   t o   t h e   t o p   l i n e   a s   n e e d e d 
 
 q u a f f   [ P O T I O N S . C ]   -     d r i n k s   a   p o t i o n   a n d   a p p l i e s   e f f e c t s 
 
 q u i t   [ M A I N . C ]   -     g r a c e f u l   p r o g r a m   e x i t 
 
 r a i s e _ c u r t a i n   [ C U R S E S . C ]   -     s l i d e   i n   s c r e e n   u p d a t i n g   e f f e c t 
 
 r a i s e _ l e v e l   [ F I G H T . C ]   -     l e v e l s   u p   t h e   p l a y e r 
 
 r a n   [ M A I N . C ]   -     r a n d o m   n u m b e r   g e n e r a t o r   s e e d   i n c r e m e n t a t i o n 
 
 r a n d m o n s t e r   [ M O N S T E R S . C ]   -     r e t u r n s   a   r a n d o m   m o n s t e r   t y p e 
 
 r c h r   [ I N I T . C ]   -     r e t u r n s   a   r a n d o m   c h a r a c t e r   f r o m   a n   i n p u t   s t r i n g 
 
 r e a d _ s c r o l l   [ S C R O L L S . C ]   -     i n v o k e s   s c r o l l   m a g i c 
 
 r e a d c h a r   [ M A C H _ D E P . C ]   -     r e t u r s n   t h e   n e x t   i n p u t   c h a r a c t e r 
 
 r e a l _ r c   [ C U R S E S . C ]   -   g e t s   t h e   c u r s o r   p o s i t i o n 
 
 r e m o v e   [ F I G H T . C ]   -     r e m o v e s   m o n s t e r   f r o m   g a m e   a n d   f r e e s   m e m o r y 
 
 r e p c h r   [ C U R S E S . C ]   -     r e p e a t s   a   c h a r a c t e r 
 
 r e s _ w i n   [ C U R S E S . C ]   -     r e s t o r e s   t h e   l e v e l   f l a g s   s t o r e d   i n   v i d e o   m e m o r y 
 
 r e s t o r e   [ S A V E . C ]   -     l o a d s   a n d   c o n t i n u e s   a   s a v e d   g a m e 
 
 r i n g _ e a t   [ R I N G S . C ]   -     r i n g   m a g i c   a l t e r s   p l a y e r   f o o d   c o n s u m p t i o n 
 
 r i n g _ n u m   [ R I N G S . C ]   -     p r i n t s   i n f o r m a t i o n   a b o u t   t h e   r i n g 
 
 r i n g _ o f f   [ R I N G S . C ]   -     r e m o v e s   a   r i n g   a n d   i t s   e f f e c t s 
 
 r i n g _ o n   [ R I N G S . C ]   -     w e a r s   a   r i n g   a n d   a p p l i e s   e f f e c t s 
 
 r n d   [ M A I N . C ]   -     r e t u r n s   a   r a n d o m   n u m b e r   f r o m   a   r a n g e 
 
 r n d _ p o s   [ R O O M S . C ]   -     r a n d o m l y   c h o o s e   a   m o v e m e n t   d e s t i n a t i o n 
 
 r n d _ r o o m   [ N E W _ L E V E . C ]   -     r e t u r n s   t h e   i n d e x   t o   a   r a n d o m   r o o m 
 
 r n d m o v e   [ M O V E . C ]   -     r e t u r n s   a   r a n d o m   l o c a t i o n   i n   a   r o o m 
 
 r o l l   [ M A I N . C ]   -     r o l l s   f o r   r a n d o m   c h a n c e   t o   w a k e   u p   a   m o n s t e r 
 
 r o l l _ e m   [ F I G H T . C ]   -     r o l l s   a t t a c k   s t a t s 
 
 r o l l w a n d   [ D A E M O N S . C ]   -     r o l l s   a   d i e   u s i n g   i n p u t   d i e   c o n f i g u r a t i o n 
 
 r o o m i n   [ C H A S E . C ]   -     r e t u r n s   a   r o o m   b y   i n p u t   c o o r d i n a t e s 
 
 r u n n e r s   [ C H A S E . C ]   -     e a c h   r u n n i n g   m o n s t e r   t a k e s   a   s t e p 
 
 s a v _ w i n   [ C U R S E S . C ]   -     s a v e s   t h e   l e v e l   f l a g s   t o   v i d e o   m e m o r y 
 
 s a v e   [ F I G H T . C ]   -     r o l l s   a n   e n t i t y ' s   c h a n c e   t o   s a v e 
 
 s a v e _ d s   [ S A V E . C ]   -     r o l l   f o r   s a v e   a g a i n s t   e f f e c t s 
 
 s a v e _ g a m e   [ S A V E . C ]   -     s a v e s   t h e   g a m e 
 
 s a v e _ t h r o w   [ F I G H T . C ]   -     s a v e s   t h e   d a t a   s e g m e n t   c o n t a i n i n g   g a m e   d a t a 
 
 s c a n _ n u m   [ I O . C ]   -     r e t u r n s   v a l u e   o f   t h e   c u r r e n t   n u m b e r   i n   s t r i n g 
 
 s c o r e   [ R I P . C ]   -     c a l c u l a t e s   e n d   o f   g a m e   s t a t s 
 
 s c r _ l o a d   [ L O A D . C ]   -     i n i t i a l i z e s   t h e   s c r e e n   f o r   g r a p h i c s   d i s p l a y 
 
 s c r l   [ I O . C ]   -     p u s h   a   m e s s a g e   a c r o s s   a   l i n e 
 
 s c r o l l   [ C U R S E S . C ]   -     s c r o l l s   a   s c r e e n   r e g i o n   u p   1   l i n e 
 
 s c r o l l _ d n   [ C U R S E S . C ]   -     s c r o l l s   a   s c r e e n   r e g i o n   d o w n   1   l i n e 
 
 s c r o l l _ u p   [ C U R S E S . C ]   -     s c r o l l s   t h e   s c r e e n   u p   o n e   l i n e 
 
 s e a r c h   [ M I S C . C ]   -     s e a r c h e s   a r o u n d   t h e   p l a y e r   f o r   h i d d e n   t h i n g s 
 
 s e e _ m o n s t   [ C H A S E . C ]   -     c h e c k s   i f   t h e   p l a y e r   c a n   s e e   a   m o n s t e r 
 
 s e t _ a t t r   [ C U R S E S . C ]   -   s e t s   t h e   a t t r i b u t e   b y t e   o f   a   m a p   p o s i t i o n 
 
 s e t _ c t r l b   [ M A C H _ D E P . C ]   -     o v e r r i d e s   c o n t r o l - b r e a k   i n t e r r u p t   h a n d l e r 
 
 s e t _ c u r s o r   [ C U R S E S . C ]   -     d e a d   c o d e 
 
 s e t _ o r d e r   [ T H I N G S . C ]   -     r a n d o m i z e   a n   i n p u t   l i s t 
 
 s e t e n v   [ E N V . C ]   -   p u t s   i n p u t   d a t a   i n   t o   t h e   s h e l l   e n v i r o n m e n t 
 
 s e t u p   [ M A C H _ D E P . C ]   -     s e t s   u p   t h e   s c r e e n   a n d   c o n t r o l - b r e a k 
 
 s h o r t _ n a m e   [ W E A P O N S . C ]   -     r e t u r n s   t h e   b r i e f   n a m e   ( i t e m   t y p e ) 
 
 s h o w _ c o u n t   [ C O M M A N D . C ]   -     d i s p l a y s   t h e   c u r r e n t   c o u n t   o f   r e p e a t e d   a c t i o n s 
 
 s h o w _ m a p   [ W I Z A R D . C ]   -     p r i n t s   o u t   t h e   c o m p l e t e   m a p 
 
 s h o w _ w i n   [ I O . C ]   -   d i s p l a y   t h e   w i n d o w   a n d   w a i t   f o r   i n p u t 
 
 S I G 2   [ I O . C ]   -     k e y b o a r d   h a r d w a r e   h a n d l e r 
 
 s i g h t   [ D A E M O N S . C ]   -     r e m o v e   p l a y e r   b l i n d n e s s 
 
 s i g n   [ M I S C . C ]   -     r e t u r n s   - 1 , 0 , 1   b a s e d   o n   s i g n   o f   n u m b e r 
 
 s l i m e _ s p l i t   [ S L I M E . C ]   -     s e t s   i n p u t   p o i n t   a s   a   m a z e   p a s s a g e . 
 
 s p l a t   [ M A Z E . C ]   -     r e t u r n s   a   r a n d o m   n u m b e r   w i t h i n   1 0 %   o f   i n p u t 
 
 s p r e a d   [ M I S C . C ]   -     r e s o l v e s   a   f o r m a t t e d   s t r i n g   i n   a   t a r g e t   b u f f e r 
 
 s p r i n t f   [ I O . C ]   -     r e t u r n s   a   r a n d o m   n u m b e r   s e e d 
 
 s r a n d   [ M A C H _ D E P . C ]   -   r e t u r n s   a   r a n d o m   s e e d 
 
 s t a r t _ r u n   [ C H A S E . C ]   -     w a k e s   u p   a   m o n s t e r 
 
 s t a t u s   [ I O . C ]   -     d i s p l a y s   t h e   p l a y e r   s t a t u s   l i n e 
 
 s t c c p y   [ S T R I N G S . C ]   -     c o p i e s   s t r i n g s 
 
 s t e p _ o k   [ M I S C . C ]   -     r e t u r n s   t r u e   i f   p l a y e r   c a n   m o v e   o n   i n p u t   s p a c e 
 
 s t o m a c h   [ D A E M O N S . C ]   -     m a k e s   t h e   p l a y e r   m o r e   h u n g r y .   A d d s   h u n g e r   e f f e c t s 
 
 s t p b l k   [ S T R I N G S . C ]   -     s k i p s   b l a n k s   f r o m   a   s t r i n g 
 
 s t p b r k   [ S T R I N G S . C ]   -     s k i p s   c h a r a c t e r s   i n   a   s t r i n g 
 
 s t r _ a t t r   [ I O . C ]   -     p r i n t s   a   f o r m a t t e d   s t r i n g 
 
 s t r _ p l u s   [ F I G H T . C ]   -     c a l c u l a t e s   s t r e n g t h   b e n e f i t   t o   h i t   c h a n c e 
 
 s w a n d e r   [ D A E M O N S . C ]   -     t r i g g e r s   m o n s t e r   w a n d e r 
 
 s w i n g   [ F I G H T . C ]   -     c h e c k s   f o r   a   h i t   o r   m i s s 
 
 s w i n t   [ M A C H _ D E P . C ]   -     i n v o k e s   s o f t w a r e   i n t e r r u p t   u n d e r   D O S 
 
 s w i t c h _ p a g e   [ C U R S E S . C ]   -     s w a p s   v i d e o   m e m o r y   p a g e 
 
 t a k e _ o f f   [ A R M O R . C ]   -     t a k e   o f f   w o r n   a r m o r ,   i f   p o s s i b l e 
 
 t a l l o c   [ L I S T . C ]   -     a l l o c a t e s   m e m o r y   f o r   a   n e w   o b j e c t 
 
 t e l e p o r t   [ W I Z A R D . C ]   -     m o v e s   p l a y e r   t o   a n o t h e r   l o c a t i o n 
 
 t h _ e f f e c t   [ P O T I O N S . C ]   -     a p p l y   t h r o w n   p o t i o n   e f f e c t   t o   m o n s t e r s 
 
 t h u n k   [ F I G H T . C ]   -     r o l l   f o r   m i s s i l e   h i t / m i s s 
 
 t i c k _ p a u s e   [ W E A P O N S . C ]   -     b l o c k s   p r o c e s s i n g   d u r i n g   t h e   s a m e   t i c k 
 
 t o a s c i i   [ S T R I N G S . C ]   -   c o n v e r t s   i n p u t   t o   A S C I I 
 
 t o l o w e r   [ S T R I N G S . C ]   -     c o n v e r t s   i n p u t   f r o m   u p p e r   t o   l o w e r   c a s e 
 
 t o t a l _ w i n n e r   [ R I P . C ]   -     d i s p l a y   t h e   v i c t o r y   s c r e e n 
 
 t o u p p e r   [ S T R I N G S . C ]   -     c o n v e r t s   i n p u t   f r o m   l o w e r   t o   u p p e r   c a s e 
 
 t r _ n a m e   [ M I S C . C ]   -     r e t u r n s   a   s t r i n g   o f   t h e   t r a p   n a m e 
 
 t r e a s _ r o o m   [ N E W _ L E V E . C ]   -     c r e a t e   a   t r e a s u r e   r o o m 
 
 t u r n _ s e e   [ P O T I O N S . C ]   -     t o g g l e   d e t e c t   m o n s t e r s   e f f e c t 
 
 u _ l e v e l   [ M I S C . C ]   -     g o   u p   a   l e v e l 
 
 u n c o n f u s e   [ D A E M O N S . C ]   -   u n c o n f u s e   p l a y e r 
 
 u n c t r l   [ I O . C ]   -     c o n v e r t s   i n p u t   c h a r a c t e r   t o   p r i n t a b l e 
 
 u n s e e   [ D A E M O N S . C ]   -     r e m o v e   s e e   i n v i s i b l e 
 
 u n s e t u p   [ M A C H _ D E P . C ]   -     r e s t o r e s   c t r l - b r e a k 
 
 v b o x   [ C U R S E S . C ]   -     d r a w s   a n   A S C I I   b o x   o n   t h e   s c r e e n   
 
 v e r t   [ R O O M S . C ]   -     d r a w s   a   v e r t i c a l   w a l l   f o r   a   r o o m 
 
 v i d e o _ m o d e   [ C U R S E S . C ]   -     s e t s   t h e   v i d e o   m o d e 
 
 v o w e l s t r   [ M I S C . C ]   -     C o n v e r t s   ' a ' - > ' a n '   w h e n   i n p u t   s t a r t s   w i t h   v o w e l 
 
 w a i t _ f o r   [ I O . C ]   -     s t o p s   g a m e   u n t i l   p l a y e r   h i t s   t h e   i n p u t   c h a r a c t e r 
 
 w a k e _ m o n s t e r   [ M O N S T E R S . C ]   -     s e t s   o f f   a   m o n s t e r   c h a s i n g   t h e   p l a y e r 
 
 w a n d e r e r   [ M O N S T E R S . C ]   -     c r e a t e s   a   w a n d e r i n g   m o n s t e r 
 
 w a s t e _ t i m e   [ A R M O R . C ]   -     p r o c e s s e s   t i m e r s   a n d   b a c k g r o u n d   d a e m o n s 
 
 w c l o s e   [ C U R S E S . C ]   -     c l o s e s   t h e   o u t p u t   w i n d o w 
 
 w d u m p   [ C U R S E S . C ]   -     o u t p u t s   t h e   s c r e e n   s t a t e   t o   b a c k u p   b u f f e r 
 
 w e a r   [ A R M O R . C ]   -     p u t s   o n   a r m o r   i f   p o s s i b l e 
 
 w h a t i s   [ W I Z A R D . C ]   -     i d e n t i f i e s   a n   o b j e c t 
 
 w i e l d   [ W E A P O N S . C ]   -     w e a r s   a   w e a p o n 
 
 w i n a t   [ M I S C . C ]   -     r e t u r n s   c h a r a c t e r   o n   t h e   m a p   a t   i n p u t   p o s i t i o n 
 
 w i n i t   [ C U R S E S . C ]   -     i n i t i a l i z e s   t h e   g a m e   w i n d o w 
 
 w r e s t o r   [ C U R S E S . C ]   -     l o a d s   a   s a v e   c o n s o l e   s c r e e n   f r o m   m e m o r y 
 
 
 
 
 
 F U N C T I O N S   B Y   S O U R C E   F I L E 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 A R M O R . C : 1 4 : w e a r 
 
 A R M O R . C : 4 2 : t a k e _ o f f 
 
 A R M O R . C : 6 1 : w a s t e _ t i m e 
 
 C H A S E . C : 1 8 : r u n n e r s 
 
 C H A S E . C : 4 2 : d o _ c h a s e 
 
 C H A S E . C : 1 8 2 : s e e _ m o n s t 
 
 C H A S E . C : 2 1 1 : s t a r t _ r u n 
 
 C H A S E . C : 2 4 0 : c h a s e 
 
 C H A S E . C : 3 4 2 : r o o m i n 
 
 C H A S E . C : 3 6 6 : d i a g _ o k 
 
 C H A S E . C : 3 7 8 : c a n s e e 
 
 C H A S E . C : 4 0 3 : f i n d _ d e s t 
 
 C O M M A N D . C : 1 3 : c o m m a n d 
 
 C O M M A N D . C : 4 9 : c o m _ c h a r 
 
 C O M M A N D . C : 7 4 : g e t _ p r e f i x 
 
 C O M M A N D . C : 1 5 4 : s h o w _ c o u n t 
 
 C O M M A N D . C : 1 6 3 : e x e c c o m 
 
 C R O O T . C : 8 : n o p e r 
 
 C R O O T . C : 1 5 : C r o o t 
 
 C R O O T . C : 4 8 : e x i t 
 
 C U R S E S . C : 7 : c h a r   * s b r k 
 
 C U R S E S . C : 9 3 : c l e a r 
 
 C U R S E S . C : 1 0 5 : c u r s o r 
 
 C U R S E S . C : 1 3 6 : g e t r c 
 
 C U R S E S . C : 1 4 3 : r e a l _ r c 
 
 C U R S E S . C : 1 6 1 : c l r t o e o l 
 
 C U R S E S . C : 1 7 1 : m v a d d s t r 
 
 C U R S E S . C : 1 7 9 : m v a d d c h 
 
 C U R S E S . C : 1 8 7 : m v i n c h 
 
 C U R S E S . C : 1 9 9 : a d d c h 
 
 C U R S E S . C : 2 9 3 : a d d s t r 
 
 C U R S E S . C : 3 0 0 : s e t _ a t t r 
 
 C U R S E S . C : 3 0 9 : e r r o r 
 
 C U R S E S . C : 3 2 8 : s e t _ c u r s o r 
 
 C U R S E S . C : 3 4 3 : w i n i t 
 
 C U R S E S . C : 4 2 4 : f o r c e b w 
 
 C U R S E S . C : 4 3 4 : w d u m p 
 
 C U R S E S . C : 4 4 1 : s a v _ w i n 
 
 C U R S E S . C : 4 4 8 : r e s _ w i n 
 
 C U R S E S . C : 4 5 8 : w r e s t o r 
 
 C U R S E S . C : 4 6 9 : w c l o s e 
 
 C U R S E S . C : 4 8 5 : b o x 
 
 C U R S E S . C : 4 9 5 : v b o x 
 
 C U R S E S . C : 5 3 4 : c e n t e r 
 
 C U R S E S . C : 5 4 5 : p r i n t w 
 
 C U R S E S . C : 5 5 4 : s c r o l l _ u p 
 
 C U R S E S . C : 5 6 4 : s c r o l l _ d n 
 
 C U R S E S . C : 5 7 5 : s c r o l l 
 
 C U R S E S . C : 5 8 7 : b l o t _ o u t 
 
 C U R S E S . C : 5 9 7 : r e p c h r 
 
 C U R S E S . C : 6 0 9 : f i x u p 
 
 C U R S E S . C : 6 1 8 : i m p l o d e 
 
 C U R S E S . C : 6 4 8 : d r o p _ c u r t a i n 
 
 C U R S E S . C : 6 7 2 : r a i s e _ c u r t a i n 
 
 C U R S E S . C : 6 8 7 : s w i t c h _ p a g e 
 
 C U R S E S . C : 7 0 5 : g e t _ m o d e 
 
 C U R S E S . C : 7 1 4 : v i d e o _ m o d e 
 
 D A E M O N . C : 2 7 : d _ s l o t 
 
 D A E M O N . C : 4 5 : f i n d _ s l o t 
 
 D A E M O N . C : 4 6 : i n t   
 
 D A E M O N . C : 6 0 : d a e m o n 
 
 D A E M O N . C : 6 1 : i n t   
 
 D A E M O N . C : 7 5 : d o _ d a e m o n s 
 
 D A E M O N . C : 9 4 : f u s e 
 
 D A E M O N . C : 9 5 : i n t   
 
 D A E M O N . C : 1 0 9 : l e n g t h e n 
 
 D A E M O N . C : 1 1 0 : i n t   
 
 D A E M O N . C : 1 2 4 : e x t i n g u i s h 
 
 D A E M O N . C : 1 2 5 : i n t   
 
 D A E M O N . C : 1 3 8 : d o _ f u s e s 
 
 D A E M O N S . C : 1 4 : d o c t o r 
 
 D A E M O N S . C : 4 5 : s w a n d e r 
 
 D A E M O N S . C : 5 4 : r o l l w a n d 
 
 D A E M O N S . C : 7 4 : u n c o n f u s e 
 
 D A E M O N S . C : 8 4 : u n s e e 
 
 D A E M O N S . C : 9 8 : s i g h t 
 
 D A E M O N S . C : 1 1 4 : n o h a s t e 
 
 D A E M O N S . C : 1 2 4 : s t o m a c h 
 
 E N V . C : 6 3 : s e t e n v 
 
 E N V . C : 1 5 3 : p e e k c 
 
 E N V . C : 1 8 8 : g e t e n v 
 
 E N V . C : 2 1 1 : p u t e n v 
 
 E N V . C : 2 2 4 : i s _ s e t 
 
 F A K E D O S . C : 1 0 : f a k e d o s 
 
 F A K E D O S . C : 3 5 : d o d o s 
 
 F I G H T . C : 1 4 : f i g h t 
 
 F I G H T . C : 9 0 : a t t a c k 
 
 F I G H T . C : 2 6 3 : s w i n g 
 
 F I G H T . C : 2 7 6 : c h e c k _ l e v e l 
 
 F I G H T . C : 3 0 0 : r o l l _ e m 
 
 F I G H T . C : 4 1 8 : p r n a m e 
 
 F I G H T . C : 4 4 1 : h i t 
 
 F I G H T . C : 4 6 1 : m i s s 
 
 F I G H T . C : 4 8 2 : s a v e _ t h r o w 
 
 F I G H T . C : 4 9 6 : s a v e 
 
 F I G H T . C : 5 1 2 : s t r _ p l u s 
 
 F I G H T . C : 5 6 0 : r a i s e _ l e v e l 
 
 F I G H T . C : 5 7 0 : t h u n k 
 
 F I G H T . C : 5 8 8 : r e m o v e 
 
 F I G H T . C : 6 2 3 : i s _ m a g i c 
 
 F I G H T . C : 6 4 6 : k i l l e d 
 
 I N I T . C : 1 3 : c h a r   * n e w m e m 
 
 I N I T . C : 1 9 : i n i t _ p l a y e r 
 
 I N I T . C : 2 3 5 : i n i t _ t h i n g s 
 
 I N I T . C : 2 4 7 : i n i t _ c o l o r s 
 
 I N I T . C : 2 7 3 : i n i t _ n a m e s 
 
 I N I T . C : 3 1 6 : g e t s y l 
 
 I N I T . C : 3 3 1 : r c h r 
 
 I N I T . C : 3 4 1 : i n i t _ s t o n e s 
 
 I N I T . C : 3 6 6 : i n i t _ m a t e r i a l s 
 
 I N I T . C : 4 3 1 : i n i t _ d s 
 
 I O . C : 1 6 : c h a r   * s t p b r k 
 
 I O . C : 2 7 : i f t e r s e 
 
 I O . C : 3 7 : m s g 
 
 I O . C : 6 3 : a d d m s g 
 
 I O . C : 7 5 : e n d m s g 
 
 I O . C : 9 9 : m o r e 
 
 I O . C : 1 5 9 : d o a d d 
 
 I O . C : 1 7 2 : p u t m s g 
 
 I O . C : 2 0 6 : s c r l 
 
 I O . C : 2 3 7 : u n c t r l 
 
 I O . C : 2 6 1 : s t a t u s 
 
 I O . C : 3 7 5 : w a i t _ f o r 
 
 I O . C : 3 9 2 : s h o w _ w i n 
 
 I O . C : 4 0 7 : g e t i n f o 
 
 I O . C : 4 5 9 : b a c k s p a c e 
 
 I O . C : 4 8 8 : s t r _ a t t r 
 
 I O . C : 5 5 5 : S I G 2 
 
 I O . C : 7 0 9 : i n t   p f _ s t r 
 
 I O . C : 7 0 9 : i n t   p f _ c h r 
 
 I O . C : 7 0 9 : i n t   p f _ u i n t 
 
 I O . C : 7 0 9 : i n t   p f _ i n t 
 
 I O . C : 7 0 9 : i n t   p f _ p e r 
 
 I O . C : 7 2 4 : s p r i n t f 
 
 I O . C : 7 6 6 : s c a n _ n u m 
 
 I O . C : 7 7 7 : p f _ s t r 
 
 I O . C : 7 8 4 : b l a n k s 
 
 I O . C : 7 9 1 : p f _ c h r 
 
 I O . C : 8 0 0 : p f _ i n t 
 
 I O . C : 8 1 0 : p f _ u i n t 
 
 I O . C : 8 3 5 : p f _ p e r 
 
 I O . C : 8 4 1 : n o t e r s e 
 
 L I S T . C : 7 3 : n e w _ i t e m 
 
 L I S T . C : 9 0 : t a l l o c 
 
 L I S T . C : 1 1 2 : d i s c a r d 
 
 L O A D . C : 1 9 : e p y x _ y u c k 
 
 L O A D . C : 4 6 : s c r _ l o a d 
 
 L O A D . C : 8 2 : b l o a d 
 
 L O A D . C : 9 6 : f i n d _ d r i v e 
 
 M A C H _ D E P . C : 2 1 : s e t u p 
 
 M A C H _ D E P . C : 3 7 : c l o c k _ o n 
 
 M A C H _ D E P . C : 4 9 : n o _ c l o c k 
 
 M A C H _ D E P . C : 5 7 : s r a n d 
 
 M A C H _ D E P . C : 7 5 : f l u s h _ t y p e 
 
 M A C H _ D E P . C : 8 5 : c r e d i t s 
 
 M A C H _ D E P . C : 1 7 2 : r e a d c h a r 
 
 M A C H _ D E P . C : 2 0 2 : b d o s 
 
 M A C H _ D E P . C : 2 2 0 : n e w m e m 
 
 M A C H _ D E P . C : 2 4 0 : i s j r 
 
 M A C H _ D E P . C : 2 5 1 : s w i n t 
 
 M A C H _ D E P . C : 2 6 2 : s e t _ c t r l b 
 
 M A C H _ D E P . C : 2 7 8 : u n s e t u p 
 
 M A C H _ D E P . C : 2 8 3 : o n e _ t i c k 
 
 M A I N . C : 3 9 : m a i n 
 
 M A I N . C : 1 4 1 : e n d i t 
 
 M A I N . C : 1 5 4 : r a n 
 
 M A I N . C : 1 6 5 : r n d 
 
 M A I N . C : 1 7 5 : r o l l 
 
 M A I N . C : 1 9 0 : p l a y i t 
 
 M A I N . C : 2 2 3 : q u i t 
 
 M A I N . C : 2 7 1 : l e a v e 
 
 M A I N . C : 2 8 5 : f a t a l 
 
 M A Z E . C : 2 1 : d r a w _ m a z e 
 
 M A Z E . C : 7 9 : n e w _ f r o n t i e r 
 
 M A Z E . C : 8 8 : a d d _ f r n t 
 
 M A Z E . C : 1 0 6 : c o n _ f r n t 
 
 M A Z E . C : 1 5 2 : m a z e _ a t 
 
 M A Z E . C : 1 6 0 : s p l a t 
 
 M A Z E . C : 1 7 3 : i n r a n g e 
 
 M I S C . C : 1 5 : t r _ n a m e 
 
 M I S C . C : 4 1 : l o o k 
 
 M I S C . C : 2 3 1 : f i n d _ o b j 
 
 M I S C . C : 2 5 1 : e a t 
 
 M I S C . C : 2 9 7 : c h g _ s t r 
 
 M I S C . C : 3 1 8 : a d d _ s t r 
 
 M I S C . C : 3 3 2 : a d d _ h a s t e 
 
 M I S C . C : 3 5 7 : a g g r a v a t e 
 
 M I S C . C : 3 7 1 : v o w e l s t r 
 
 M I S C . C : 3 9 1 : i s _ c u r r e n t 
 
 M I S C . C : 4 0 9 : g e t _ d i r 
 
 M I S C . C : 4 3 3 : f i n d _ d i r 
 
 M I S C . C : 4 5 8 : s i g n 
 
 M I S C . C : 4 7 1 : s p r e a d 
 
 M I S C . C : 4 8 2 : c a l l _ i t 
 
 M I S C . C : 5 0 1 : s t e p _ o k 
 
 M I S C . C : 5 2 4 : g o o d c h 
 
 M I S C . C : 5 7 8 : h e l p 
 
 M I S C . C : 6 3 9 : D I S T A N C E 
 
 M I S C . C : 6 5 5 : I N D E X 
 
 M I S C . C : 6 6 4 : o f f m a p 
 
 M I S C . C : 6 6 9 : w i n a t 
 
 M I S C . C : 6 8 0 : s e a r c h 
 
 M I S C . C : 7 2 8 : d _ l e v e l 
 
 M I S C . C : 7 4 2 : u _ l e v e l 
 
 M I S C . C : 7 6 1 : c a l l 
 
 M I S C . C : 8 1 5 : d o _ m a c r o 
 
 M I S C . C : 8 3 2 : m e 
 
 M I S C . C : 8 4 0 : i s t e s t 
 
 M O N S T E R S . C : 2 2 : r a n d m o n s t e r 
 
 M O N S T E R S . C : 4 5 : n e w _ m o n s t e r 
 
 M O N S T E R S . C : 1 0 4 : e x p _ a d d 
 
 M O N S T E R S . C : 1 2 4 : w a n d e r e r 
 
 M O N S T E R S . C : 1 5 9 : w a k e _ m o n s t e r 
 
 M O N S T E R S . C : 2 1 3 : g i v e _ p a c k 
 
 M O N S T E R S . C : 2 2 8 : p i c k _ m o n s 
 
 M O N S T E R S . C : 2 4 7 : m o a t 
 
 M O V E . C : 2 0 : d o _ r u n 
 
 M O V E . C : 3 3 : d o _ m o v e 
 
 M O V E . C : 1 9 2 : d o o r _ o p e n 
 
 M O V E . C : 2 1 7 : b e _ t r a p p e d 
 
 M O V E . C : 2 8 3 : d e s c e n d 
 
 M O V E . C : 3 0 3 : r n d m o v e 
 
 N E W _ L E V E . C : 1 6 : n e w _ l e v e l 
 
 N E W _ L E V E . C : 1 2 7 : r n d _ r o o m 
 
 N E W _ L E V E . C : 1 4 1 : p u t _ t h i n g s 
 
 N E W _ L E V E . C : 2 1 5 : t r e a s _ r o o m 
 
 P A C K . C : 1 1 : p a c k _ o b j 
 
 P A C K . C : 3 0 : a d d _ p a c k 
 
 P A C K . C : 2 1 4 : i n v e n t o r y 
 
 P A C K . C : 2 5 5 : p i c k _ u p 
 
 P A C K . C : 2 8 9 : g e t _ i t e m 
 
 P A C K . C : 3 7 5 : p a c k _ c h a r 
 
 P A C K . C : 3 9 4 : m o n e y 
 
 P A S S A G E S . C : 1 4 : c o n n 
 
 P A S S A G E S . C : 1 5 6 : d o _ p a s s a g e s 
 
 P A S S A G E S . C : 2 6 6 : d o o r 
 
 P A S S A G E S . C : 2 9 0 : a d d _ p a s s 
 
 P A S S A G E S . C : 3 0 8 : p a s s n u m 
 
 P A S S A G E S . C : 3 2 8 : n u m p a s s 
 
 P A S S A G E S . C : 3 6 4 : p s p l a t 
 
 P O T I O N S . C : 1 4 : q u a f f 
 
 P O T I O N S . C : 2 1 4 : i n v i s _ o n 
 
 P O T I O N S . C : 2 3 0 : t u r n _ s e e 
 
 P O T I O N S . C : 2 6 7 : t h _ e f f e c t 
 
 P R O T E C T . C : 4 8 : p r o t e c t 
 
 R I N G S . C : 1 5 : r i n g _ o n 
 
 R I N G S . C : 7 6 : r i n g _ o f f 
 
 R I N G S . C : 1 0 9 : g e t h a n d 
 
 R I N G S . C : 1 3 2 : r i n g _ e a t 
 
 R I N G S . C : 1 6 5 : r i n g _ n u m 
 
 R I P . C : 2 4 : s c o r e 
 
 R I P . C : 9 6 : g e t _ s c o r e s 
 
 R I P . C : 1 1 0 : p u t _ s c o r e s 
 
 R I P . C : 1 2 2 : p r _ s c o r e s 
 
 R I P . C : 2 0 2 : a d d _ s c o r e s 
 
 R I P . C : 2 2 9 : d e a t h 
 
 R I P . C : 3 0 0 : t o t a l _ w i n n e r 
 
 R I P . C : 4 2 9 : k i l l n a m e 
 
 R I P . C : 4 7 4 : d e m o 
 
 R O O M S . C : 1 6 : d o _ r o o m s 
 
 R O O M S . C : 1 4 7 : d r a w _ r o o m 
 
 R O O M S . C : 1 7 5 : v e r t 
 
 R O O M S . C : 1 8 9 : h o r i z 
 
 R O O M S . C : 2 0 3 : r n d _ p o s 
 
 R O O M S . C : 2 1 5 : e n t e r _ r o o m 
 
 R O O M S . C : 2 5 3 : l e a v e _ r o o m 
 
 S A V E . C : 4 2 : s a v e _ g a m e 
 
 S A V E . C : 8 3 : s a v e _ d s 
 
 S A V E . C : 1 4 6 : r e s t o r e 
 
 S C R O L L S . C : 1 6 : r e a d _ s c r o l l 
 
 S L I M E . C : 1 7 : s l i m e _ s p l i t 
 
 S L I M E . C : 3 3 : n e w _ s l i m e 
 
 S L I M E . C : 6 5 : p l o p _ m o n s t e r 
 
 S T I C K S . C : 1 5 : f i x _ s t i c k 
 
 S T I C K S . C : 4 0 : d o _ z a p 
 
 S T I C K S . C : 2 8 9 : d r a i n 
 
 S T I C K S . C : 3 3 8 : f i r e _ b o l t 
 
 S T I C K S . C : 4 5 6 : c h a r g e _ s t r 
 
 S T R I N G S . C : 5 : i s a l p h a 
 
 S T R I N G S . C : 6 : i s u p p e r 
 
 S T R I N G S . C : 7 : i s l o w e r 
 
 S T R I N G S . C : 8 : i s d i g i t 
 
 S T R I N G S . C : 9 : i s s p a c e 
 
 S T R I N G S . C : 1 0 : i s p r i n t 
 
 S T R I N G S . C : 1 2 : t o a s c i i 
 
 S T R I N G S . C : 1 7 : t o u p p e r 
 
 S T R I N G S . C : 2 3 : t o l o w e r 
 
 S T R I N G S . C : 2 9 : s t c c p y 
 
 S T R I N G S . C : 4 8 : s t p b l k 
 
 S T R I N G S . C : 5 6 : s t p b r k 
 
 S T R I N G S . C : 6 8 : e n d b l k 
 
 S T R I N G S . C : 8 2 : l c a s e 
 
 T H I N G S . C : 1 7 : i n v _ n a m e 
 
 T H I N G S . C : 1 5 2 : c h o p m s g 
 
 T H I N G S . C : 1 6 5 : d r o p 
 
 T H I N G S . C : 2 1 5 : c a n _ d r o p 
 
 T H I N G S . C : 2 6 1 : n e w _ t h i n g 
 
 T H I N G S . C : 3 6 1 : p i c k _ o n e 
 
 T H I N G S . C : 3 9 8 : d i s c o v e r e d 
 
 T H I N G S . C : 4 1 7 : p r i n t _ d i s c 
 
 T H I N G S . C : 4 6 9 : s e t _ o r d e r 
 
 T H I N G S . C : 4 9 2 : a d d _ l i n e 
 
 T H I N G S . C : 5 3 7 : e n d _ l i n e 
 
 T H I N G S . C : 5 5 4 : n o t h i n g 
 
 W E A P O N S . C : 3 4 : m i s s i l e 
 
 W E A P O N S . C : 8 6 : d o _ m o t i o n 
 
 W E A P O N S . C : 1 2 8 : s h o r t _ n a m e 
 
 W E A P O N S . C : 1 5 0 : f a l l 
 
 W E A P O N S . C : 1 8 8 : i n i t _ w e a p o n 
 
 W E A P O N S . C : 2 1 2 : h i t _ m o n s t e r 
 
 W E A P O N S . C : 2 3 2 : n u m 
 
 W E A P O N S . C : 2 4 8 : w i e l d 
 
 W E A P O N S . C : 2 8 4 : f a l l p o s 
 
 W E A P O N S . C : 3 2 0 : t i c k _ p a u s e 
 
 W I Z A R D . C : 1 6 : w h a t i s 
 
 W I Z A R D . C : 6 6 : c r e a t e _ o b j 
 
 W I Z A R D . C : 1 5 1 : t e l e p o r t 
 
 W I Z A R D . C : 2 1 1 : p a s s w d 
 
 W I Z A R D . C : 2 4 0 : s h o w _ m a p 
 
 W I Z A R D . C : 2 5 9 : g e t _ n u m 
 
 