From: cuz Date: Thu, 8 Sep 2005 20:58:33 +0000 (+0000) Subject: Missing ser_ioctl wrapper by Oliver Schmidt X-Git-Tag: V2.12.0~220 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=575ee044e55bc07e2747c3d99567092d58e2ce5b;p=cc65 Missing ser_ioctl wrapper by Oliver Schmidt git-svn-id: svn://svn.cc65.org/cc65/trunk@3626 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 + +