4 * [Generated from subAlloc, 25 September 1996]
7 #if !defined(__CC_NORCROFT) || !defined(__arm)
8 #error You must use the Norcroft ARM Compiler for Sapphire programs
11 #pragma include_only_once
12 #pragma force_top_level
21 /*----- Overview ----------------------------------------------------------*
30 /* --- sub_alloc --- *
32 * On entry: R0 == size of block to allocate
34 * On exit: R0 == pointer to block allocated
37 * Use: Allocates a block of the size specified, typically very
40 * If the size is not one of those supported (currently
41 * supported sizes are 8-40 inclusive in 4 byte increments),
42 * the behaviour is undefined (but very predictable).
45 extern routine sub_alloc;
49 * On entry: R0 == pointer to block
50 * R1 == size of the block
54 * Use: Frees a block allocated using sub_alloc.
57 extern routine sub_free;
65 * Use: Initialises the suballocation system for use.
68 extern routine sub_init;
70 /*----- That's all, folks -------------------------------------------------*/