malloc.asm
bitfixer_bitfixer/dg/z88dk/libsrc/malloc/malloc.asm
; void __FASTCALL__ *malloc(unsigned int size)
; 12.2006 aralbrec

PUBLIC malloc

EXTERN HeapAlloc_callee
EXTERN _heap, ASMDISP_HEAPALLOC_CALLEE

.malloc

   ld c,l
   ld b,h
   ld hl,_heap

   jp HeapAlloc_callee + ASMDISP_HEAPALLOC_CALLEE
