lseek_callee.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/fcntl/c/sdcc_iy/lseek_callee.asm

; off_t lseek_callee(int fd, off_t offset, int whence)

SECTION code_clib
SECTION code_fcntl

PUBLIC _lseek_callee, l0_lseek_callee

EXTERN asm_lseek

_lseek_callee:

   pop bc
   exx
   pop bc
   pop hl
   pop de
   ex (sp),hl
   ld a,l
   pop hl

l0__lseek_callee:

   exx
   push bc
   
   exx

   jp asm_lseek
