mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
0390c34e88
The left side doesn't look unbalanced.
27 lines
595 B
ArmAsm
27 lines
595 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
|
|
|
|
|