bsearch.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/stdlib/c/sccz80/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 asm_bsearch

bsearch:

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