EasyManua.ls Logo

Atari ST series - Page 290

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...
Mfree
Mfree()
Free Memory Block
Opcode = 73 ($49)
T h is fu nctio n is u se d to re tu rn m em o ry th at w as a llo cated w ith M a llo c ()
b ack to th e sy stem .
C macro format
in t sta tu s;
lo n g a d d re ss;
statu s = M fre e(ad d re ss);
Machine language format
a d d re ss, - (sp )
# $ 4 9 , - ( s p )
#1
# 6 ,s p
m o v e.l
m o v e .w
tra p
a d d q .l
Inputs
a d d re ss
Results
DO statu s
See also
M a llo c ()
lo n g T he a d d res s o f th e m e m o ry block to be
retu rn ed .
w o rd A 0 in dic ates su cce ssfu l retu rn o f th e m em o ry . A
n e g ativ e n u m b er in d icate s a n erro r.
282