RelMem Release memory allocated by either GetMem or GetMem32.

Inputs: AX = 0ff0fh

BX = Selector for block to release.

Outputs: Carry set on error.

Errors: If an invalid selector is passed in BX or the memory was not allocated via GetMem or GetMem32, this function returns carry set.

RelMemDOS Release a block of DOS (conventional) memory allocated by GetMemDOS.

Inputs: AX = 0ff23h

DX = Selector of block to free.

Outputs: Carry set on error and AX = DOS error code.

Errors: If an invalid block is passed, this function returns carry set.

Notes: All descriptors allocated for the memory block are automatically freed and therefore should not be accessed once the block is freed by this function.

RelMemLinear Release previously allocated block of memory (linear address).

Inputs: AX = 0ff14h

SI:DI = Linear address of block to release.

Outputs: Carry set on error.

Errors: If the address passed in SI:DI is not a valid memory block, this function returns carry set.

Next Page

Previous Page

Go to Table of Contents

Go back to Devore Software & Consulting home page