]> git.sur5r.net Git - cc65/commitdiff
Missing ser_ioctl wrapper by Oliver Schmidt
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 8 Sep 2005 20:58:33 +0000 (20:58 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 8 Sep 2005 20:58:33 +0000 (20:58 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@3626 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/serial/Makefile
libsrc/serial/ser_ioctl.s [new file with mode: 0644]

index a77a31ce5facc8e0b8144f67c35b9b68224973c6..cef55eccfc4880e1f5a515906502eb4a15b8ab7e 100644 (file)
@@ -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 (file)
index 0000000..0982739
--- /dev/null
@@ -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
+
+