This trap allocates space from a user heap.
|Call Parameters||Return Parameters|
|D1.L||Number of bytes required in user heap.||D1.L||Number of bytes allocated.|
|A0.L||Pointer to pointer to free space (relative A6).||A0.L||Address of area allocated.|
|ERR_OM||Out of memory (in user heap).|
* All registers not shown above are not used on entry and are preserved on exit.
* A user heap is an area of memory, maybe in the common heap, set aside for use by a single job. The job can allocate areas of this user heap for its own needs, and deallocate them as required. This stops, or reduces fragmentation of the common heap which is used by every task in the system. See here for more information on heaps.
This example show the use of this, and other, heap manipulation traps.