vioctl_callee.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/fcntl/c/sdcc_ix/vioctl_callee.asm

; int vioctl_callee(int fd, uint16_t request, void *arg)

SECTION code_clib
SECTION code_fcntl

PUBLIC _vioctl_callee, l0_vioctl_callee

EXTERN asm_vioctl

_vioctl_callee:

   pop af
   pop hl
   pop bc
   pop de
   push af

l0_vioctl_callee:

   push ix
   
   call asm_vioctl
   
   pop ix
   ret
