diff --git a/libsrc/serial/Makefile b/libsrc/serial/Makefile index a77a31ce5..cef55eccf 100644 --- a/libsrc/serial/Makefile +++ b/libsrc/serial/Makefile @@ -34,6 +34,7 @@ C_OBJS = ser_load.o S_OBJS = ser-kernel.o \ ser_close.o \ ser_get.o \ + ser_ioctl.o \ ser_open.o \ ser_put.o \ ser_status.o \ diff --git a/libsrc/serial/ser_ioctl.s b/libsrc/serial/ser_ioctl.s new file mode 100644 index 000000000..0982739a5 --- /dev/null +++ b/libsrc/serial/ser_ioctl.s @@ -0,0 +1,23 @@ +; +; Oliver Schmidt, 2005-09-02 +; +; unsigned char __fastcall__ ser_ioctl (unsigned char code, void* data); +; /* Driver specific entry. */ + + + .import popa + .importzp ptr1 + + .include "ser-kernel.inc" + + +.proc _ser_ioctl + + sta ptr1 + stx ptr1+1 ; Save pointer to data + jsr popa ; Get code + jmp ser_ioctl ; Call the driver + +.endproc + +