bsearch.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/stdlib/c/sdcc_iy/bsearch.asm

; void *bsearch(const void *key, const void *base,
;               size_t nmemb, size_t size,
;               int (*compar)(const void *, const void *))

SECTION code_clib
SECTION code_stdlib

PUBLIC _bsearch

EXTERN l0_bsearch_callee

_bsearch:

   pop af
   exx
   pop bc
   exx
   pop bc
   pop hl
   pop de
   pop ix
   
   push hl
   push de
   push hl
   push bc
   push bc
   push af

   jp l0_bsearch_callee
