PtermO
Terminate Process
PtermO() Opcode = 0 ($00)
T his fu nction term in a te s th e c u rre n t p ro ce ss, clo se s all op en files, clears
th e m e m o ry sp ace u se d b y th e p ro ce ss , a n d re tu rn s to th e p rog ra m th at
called it (n orm a lly th e G E M D e s k to p ). T h is fu nctio n is m ain ly of in tere st to
m a ch in e la n g u ag e p ro g ra m m ers , sin ce th e s ta rtu p m o d u les su p p lied w ith
C lan g u ag e com p ilers au to m a tica lly call o n e of th e te rm in ate fu nction s
w h en th e m a i n ( ) fu nctio n ex its.
C macro format
P t e rm 0 ();
Machine language format
c lr.w - (sp )
trap # 1
Inputs
N o n e
Results
N o n e
See also
P t e r m ( ), P te r m r e s ()
239