EasyManua.ls Logo

Atari ST series - Page 293

Atari ST series
420 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Pterm
Terminate Process with Return Code
Pterm() Opcode = 76 ($4C)
L ik e P te rm O (), P t e r m () term in a tes th e c u rre n t p ro ce ss, clo se s all o p en
files, cle ars th e m e m o ry sp a ce u se d b y th e p ro ce ss, an d exits to th e calling
p ro g ra m , u su ally th e G E M D es k to p . In ad d itio n , it a llow s a re tu rn co d e to
b e p a sse d to th e callin g p ro g ra m . T his fu n ctio n is m a inly of in tere st to m a
ch in e la n g u ag e p ro g ra m m e rs , sin ce th e star tu p m o d u les su p p lied w ith C
la n g u a g e com p ile rs au to m atically call o n e of th e te rm in ate fu nction s w h en
th e m a i n ( ) fu n ction exits.
C macro format
in t retco d e;
P term (re tc od e );
Machine language format
m o v e .w
m o v e .w
trap
Inputs
re tco d e
Results
N o n e
See also
P te rm O (), P t e rm r e s ()
# re tc o d e , - (sp )
# $ 4 C , - (sp )
#1
w o rd T h e exit co d e th at is retu rn ed to th e call
in g p ro g ra m .
285