Atari ST series Technical Reference Manual page 247

Hide thumbs Also See for ST series:
Table of Contents

Advertisement

PtermO()
T h is f u n c t i o n t e r m i n a t e s t h e c u r r e n t p r o c e s s , c l o s e s a ll o p e n f ile s , c l e a r s
t h e m e m o r y s p a c e u s e d b y t h e p r o c e s s , a n d r e t u r n s t o t h e p r o g r a m t h a t
c a lle d it ( n o r m a l l y t h e G E M D e s k t o p ) . T h i s f u n c ti o n is m a in l y o f i n t e r e s t to
m a c h i n e l a n g u a g e p r o g r a m m e r s , s i n c e t h e s t a r t u p m o d u l e s s u p p l i e d w i th
C l a n g u a g e c o m p i l e r s a u t o m a t i c a l l y c a ll o n e o f t h e t e r m i n a t e f u n c t i o n s
w h e n t h e m a i n ( ) f u n c t i o n e x i t s .
C macro format
P t e r m 0 ( );
Machine language format
c l r .w
- ( s p )
tr a p
# 1
Inputs
N o n e
Results
N o n e
See also
P t e r m ( ) , P t e r m r e s ( )
PtermO
Terminate Process
Opcode = 0 ($00)
239

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents