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

; int dup(int fd)

SECTION code_clib
SECTION code_fcntl

PUBLIC _dup

EXTERN asm_dup

_dup:

   pop af
   pop hl
   
   push hl
   push af

   jp asm_dup
