adt_HeapAdd_callee.asm
bitfixer_bitfixer/dg/z88dk/libsrc/adt/heap/adt_HeapAdd_callee.asm
; void __CALLEE__  adt_HeapAdd_callee(void *item, void **array, uint *n, void *compare)
; 08.2005 aralbrec

PUBLIC adt_HeapAdd_callee
PUBLIC CDISP_ADT_HEAPADD_CALLEE

EXTERN ADTHeapAdd, ADThcompare

.adt_HeapAdd_callee

   pop af
   pop iy
   pop hl
   pop bc
   pop de
   push af

.centry

   inc (hl)
   ld a,(hl)
   inc hl
   jr nz, noinchi
   inc (hl)

.noinchi

   ld h,(hl)
   ld l,a
   
   ld ix,ADThcompare
   jp ADTHeapAdd

DEFC CDISP_ADT_HEAPADD_CALLEE = # centry - adt_HeapAdd_callee
