4 ; Generic memory allocation for TermScript
9 ;----- Overview -------------------------------------------------------------
22 ; On entry: R0 == size of block to allocate
24 ; On exit: R0 == pointer to anchor for that block
27 ; Use: Tries to allocate a block of memory, and returns a pointer
28 ; to the anchor for that block. All very unusual really,
29 ; but we blame Wimp_Extension which allocates anchors for
30 ; you in an utterley horrible way.
37 ; On entry: R0 == anchor of the block to free
41 ; Use: Frees the block.
47 ; On entry: R0 == pointer to block anchor
48 ; R1 == new size requested
50 ; On exit: May return an error
52 ; Use: Resizes a block
58 ;----- That's all, folks ----------------------------------------------------