[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.5.3 Allocating Memory in TEMPOB

06AD8 CREATETEMP Allocates C.A nibbles
carry if not enough memory
-> D0=bottom, D1=top of area
-> B.A = C.A = @D1 = offset
to previous tempob = #nibbles+6
039BE GETTEMP <see>CREATETEMP with
<see>GARBAGECOL if necessary
<see>GPMEMERR if not
enough memory
268CC GETBOTTEMP Allocates C.A nibbles at the
bottom of TEMPOB, errors if not
enough memory
Returns D0=top D1=bottom of area
C.A=nibbles
Uses A.W B.A C.W D.10 R1.A
Bottom of TEMPOB means two things: 1. VERY dangerous if called from TEMPOB 2. The allocated string will not be moved by GC
05B79 MAKE$ Creates character string in
tempob area Does SETHEX,
C=C+C.A and then <see>MAKE$N
05B7D MAKE$N Creates character string in
tempob area If not enough mem
even after GC then memerr
C.A = nibbles -> A=nibbles+5,
B=nibbles+16 C=D1=addr of stack
D0 = addr of body of $
R0 = addr of $ Not used: R1-R4
26919 MAKEBOT$N Creates a C.A nibs long string
at the bottom of TEMPOB
D0->body R0.A->string R1.A=len
Uses A.W B.A C.W D.10
See <see>WIPEOUT <see>GETBOTTEMP
26920 MAKERAM$ Allocates all free mem in a str,
leaves 5 nibbles for pushing
See <see>MAKE$N <see>ROOM



This document was generated by Carsten Dominik on May, 30 2005 using texi2html