h6. [[OS SWI Calls]] h6(. » OS_Heap h2. OS_Heap h5. (SWI &1D) |_<^{width:4em}. Entry | | |<^. R0 |<^. "Reason code":#reason | |<^. R1 |<^. Pointer to heap | |\2<^. All other registers are dependent on reason code| |_<^{width:4em}. Exit | | |<^. R0 |<^. Preserved | |<^. R1 |<^. Preserved | |\2<^. All other registers dependent on reason code| h4. Use The purpose of this call is to perform various operations on the heap. h4. Notes The action performed depends on the reason code value in R0. It is not yet possible to compact the heap using this call. h4(#reason). Reason Codes |_<^{width:4em}. #|_<^{width:4em}. Hex #|_<^. Action| |<^. 0|<^. &00|<^. [[OS_Heap 0|Initialise heap]]| |<^. 1|<^. &01|<^. [[OS_Heap 1|Describe heap]]| |<^. 2|<^. &02|<^. [[OS_Heap 2|Claim block]]| |<^. 3|<^. &03|<^. [[OS_Heap 3|Release block]]| |<^. 4|<^. &04|<^. [[OS_Heap 4|Change size of block]]| |<^. 5|<^. &05|<^. [[OS_Heap 5|Change size of heap]]| |<^. 6|<^. &06|<^. [[OS_Heap 6|Read block size]]| |<^. 7|<^. &07|<^. [[OS_Heap 7|Get area aligned]]| |<^. 8|<^. &08|<^. [[OS_Heap 8|Get area skew-aligned]]|