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

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

SECTION code_clib
SECTION code_alloc_malloc

PUBLIC heap_init

EXTERN asm_heap_init

heap_init:

   pop af
   pop bc
   pop hl
   
   push hl
   push bc
   push af
   
   jp asm_heap_init
