qdosmsq:vectors:rehp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
qdosmsq:vectors:rehp [2009/02/12 14:54]
george.gwilt Links added
qdosmsq:vectors:rehp [2009/02/12 16:04] (current)
george.gwilt Example moved to 'here' and links corrected
Line 1: Line 1:
 +====== 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 [[alhp|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 [[alhp|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 [[qdosmsq:traps:heaps|here]] show the use of this vector to set up a user heap and to return space to the user heap.
 +
  
  • qdosmsq/vectors/rehp.txt
  • Last modified: 2009/02/12 16:04
  • by george.gwilt