OS_Mcl, Close memory (free memory pool)

Register parameters

RST 20H, DEFB $51
 IN:
     IX = memory pool handle (returned from previous OS_Mop call)

OUT, if call successful:
     Fc = 0
     IX = 0
OUT, if call failed:
     Fc = 1
     A = error code:
          RC_HAND ($08), IX(in) was not a valid memory pool handle

Registers changed after return:
     ..BCDEHL/..IY same
     AF....../IX.. different

Notes

All the memory allocated using the above handle parameter will be freed.

Related calls

OS_Bix, Bind in extended address
OS_Box, restore bindings after OS_Bix
OS_Fc, select fast code (fast bank switching)
OS_Mal, allocate memory
OS_Mfr, free (previously allocated block) memory
OS_Mgb, get current bank binding in segment
OS_Mop, open memory (allocate memory pool)
OS_Mpb, set new bank binding in segment
OZ_Mgb, get current bank binding in segment
OZ_Mpb, set new bank binding in segment

web analytics