This vector deallocates memory on the common heap. It should only be called in supervisor mode. The vector is atomic. The memory being deallocated should have been allocated using MM_ALCHP/MEM_ACHP.
|Call Parameters||Return Parameters|
|A0.L||Address of area to deallocate.||A0.L||Corrupted.|
|A6.L||System variables address||A6.L||Preserved.|
No errors are returned by this vector call.
The example below shows the use of this vector to deallocate a previously allocated chunk of memory. For the sake of the example, the start address of the area is assumed to be on the top of the stack.
Kill_hp move.w MM_RECHP,A2 ; MM_RECHP vector address. movea.l (a7)+,a0 ; Unstack the start of the allocated area. ; Assume A6 is correct already. jsr (a2) ; Make the call. ... ; Carry on here.