2 ; Ullrich von Bassewitz, 21.06.2002
4 ; Common functions of the tgi graphics kernel.
7 .include "tgi-kernel.inc"
9 ;----------------------------------------------------------------------------
14 _tgi_drv: .res 2 ; Pointer to driver
15 _tgi_error: .res 1 ; Last error code
20 ; Jump table for the driver functions.
22 tgi_install: jmp $0000
23 tgi_deinstall: jmp $0000
26 tgi_control: jmp $0000
28 tgi_setcolor: jmp $0000
29 tgi_setpixel: jmp $0000
30 tgi_getpixel: jmp $0000
36 ;----------------------------------------------------------------------------
37 ; Setup the TGI driver once it is loaded.
55 cpx #(TGI_HDR_JMPCOUNT*3)
61 jsr tgi_install ; Call driver install routine
65 ;----------------------------------------------------------------------------
66 ; Fetch the error code from the driver and place it into the global error
76 ;----------------------------------------------------------------------------
77 ; Load the pointer to the tgi driver into ptr1.