setdefdev.asm
bitfixer_bitfixer/dg/z88dk/libsrc/stdio_new/fd/setdefdev.asm
; void __FASTCALL__ *setdefdev(void *driver_function)
; 06.2008 aralbrec

PUBLIC setdefdev
EXTERN _stdio_defdev

.setdefdev

   ; set a new default device
   ;
   ; enter : hl = void *driver_function
   ; exit  : hl = former default driver function
   
   ld de,(_stdio_defdev)
   ld (_stdio_defdev),hl
   ex de,hl

   ret
