1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 02:29:52 +00:00
cc65/libsrc/tgi/tgi_ioctl.s
uz 36cf23680c MAde the second parameter of tgi_ioctl a void* instead of an unsigned to keep
the interface more uniform between the driver APIs.


git-svn-id: svn://svn.cc65.org/cc65/trunk@4518 b7a2c559-68d2-44c3-8de9-860c34a00d81
2009-12-11 14:33:53 +00:00

27 lines
596 B
ArmAsm

;
; Ullrich von Bassewitz, 2004-10-14
;
; unsigned __fastcall__ tgi_ioctl (unsigned char code, void* data);
; /* 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