MM_LNKFR/MEM_REHP - Vector $DA
This vector sets up a user heap or links space back into an existing user heap. Space is allocated from the user heap by MM_ALLOC/MEM_ALHP.
Call Parameters | Return Parameters | ||
---|---|---|---|
D1.L | Number of bytes required. | D1.L | Number of bytes allocated. |
D2.L | Unused | D2.L | Corrupted. |
D3.L | Unused | D3.L | Corrupted. |
A0.L | Base of space | A0.L | Corrupted. |
A1.L | Pointer to pointer to free space | A1.L | Corrupted. |
A2.L | Unused | A2.L | Corrupted. |
A3.L | Unused | A3.L | Corrupted. |
Errors
No errors are returned by this vector call.
Notes
- All registers except possibly D0 not shown above are not used on entry and are preserved on exit.
- When the vector is used to set up a user heap, the pointer to free space must be made zero. Thereafter its value is maintained by MM_ALLOC/MEM_ALHP and MM_LNKFR/MEM_REHP and should not be altered, and need not be used, by the programmer.
Examples
The examples here show the use of this vector to set up a user heap and to return space to the user heap.