1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-18 07:29:36 +00:00

Missing ser_ioctl wrapper by Oliver Schmidt

git-svn-id: svn://svn.cc65.org/cc65/trunk@3626 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2005-09-08 20:58:33 +00:00
parent 291b4edb9a
commit 575ee044e5
2 changed files with 24 additions and 0 deletions

View 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 \

23
libsrc/serial/ser_ioctl.s Normal file
View File

@ -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