1
0
mirror of https://github.com/cc65/cc65.git synced 2026-04-25 22:18:27 +00:00

Added tgi_ioctl

git-svn-id: svn://svn.cc65.org/cc65/trunk@3252 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2004-10-14 18:24:52 +00:00
parent 567f264320
commit 08ee93cbad
3 changed files with 34 additions and 1 deletions
+1
View File
@@ -41,6 +41,7 @@ S_OBJS = tgi-kernel.o \
tgi_getyres.o \
tgi_gotoxy.o \
tgi_init.o \
tgi_ioctl.o \
tgi_line.o \
tgi_linepop.o \
tgi_lineto.o \
+26
View File
@@ -0,0 +1,26 @@
;
; Ullrich von Bassewitz, 2004-10-14
;
; unsigned __fastcall__ tgi_ioctl (unsigned char code, unsigned val);
; /* Call the driver specific control function. What this function does for
; * a specific code depends on the driver. The driver will set an error
; * for unknown codes or values.
; */
;
.include "tgi-kernel.inc"
.import popa
.importzp ptr1
.proc _tgi_ioctl
sta ptr1
stx ptr1+1 ; Save val
jsr popa ; Retrieve code
jmp tgi_control ; Call the driver
.endproc