From 575ee044e55bc07e2747c3d99567092d58e2ce5b Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 8 Sep 2005 20:58:33 +0000 Subject: [PATCH] Missing ser_ioctl wrapper by Oliver Schmidt git-svn-id: svn://svn.cc65.org/cc65/trunk@3626 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/serial/Makefile | 1 + libsrc/serial/ser_ioctl.s | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 libsrc/serial/ser_ioctl.s 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 + +