/* */
/* */
/* */
-/* (C) 2002-2003 Ullrich von Bassewitz */
+/* (C) 2002-2004 Ullrich von Bassewitz */
/* Römerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
* the end of the text.
*/
+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.
+ */
+
/* End of tgi.h */
tgi_getyres.o \
tgi_gotoxy.o \
tgi_init.o \
+ tgi_ioctl.o \
tgi_line.o \
tgi_linepop.o \
tgi_lineto.o \
--- /dev/null
+;
+; 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
+
+