NEC CP/M-86 System Reference Manual page 71

Advanced personal computer
Table of Contents

Advertisement

Basic Disk Operating System (BDOS) Functions
FREE MEMORY
ENTRY
CL: 39H
DX: Offset
ofMCB
RETURN
FUNCTION 57
FREE MEM
The Free Memory function releases memory areas allocated to the program. The
value of the M-Ext field controls the operation of this function. If M-Ext is OFFH,
all memory areas allocated by the calling program are released. Otherwise, M-Ext
should be set to OOH. This releases the memory area oflength M-Length at location
M-Base given in the MCB addressed by
DX.
As previously explained, either an
entire allocated region or the end of a region must be released. The middle section of
a region cannot be returned under CP IM-86.
FREE ALL MEMORY
ENTRY
RETURN
CL: 3AH
FUNCTION 58
FREE ALL MEM
The Free All Memory function releases all memory in the CP 1M -86 environment. It
is normally used only by the CCP during initialization.
4-37

Advertisement

Table of Contents
loading

Table of Contents