heap_alloc_unlocked.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/alloc/malloc/c/sccz80/heap_alloc_unlocked.asm

; void *heap_alloc_unlocked(void *heap, size_t size)

SECTION code_clib
SECTION code_alloc_malloc

PUBLIC heap_alloc_unlocked

EXTERN asm_heap_alloc_unlocked

heap_alloc_unlocked:

   pop af
   pop hl
   pop de
   
   push de
   push hl
   push af
   
   jp asm_heap_alloc_unlocked
