2 ; Ullrich von Bassewitz, 21.06.2002
4 ; Common functions of the tgi graphics kernel.
7 .include "tgi-kernel.inc"
12 ;----------------------------------------------------------------------------
17 _tgi_drv: .res 2 ; Pointer to driver
18 _tgi_error: .res 1 ; Last error code
19 _tgi_mode: .res 1 ; Graphics mode or zero
24 ; Jump table for the driver functions.
26 tgi_install: jmp $0000
27 tgi_deinstall: jmp $0000
30 tgi_control: jmp $0000
32 tgi_setcolor: jmp $0000
33 tgi_setpixel: jmp $0000
34 tgi_getpixel: jmp $0000
40 ;----------------------------------------------------------------------------
41 ; Setup the TGI driver once it is loaded.
59 cpx #(TGI_HDR_JUMPCOUNT*3)
62 ; Initialize variables
68 jsr tgi_install ; Call driver install routine
72 ;----------------------------------------------------------------------------
73 ; Fetch the error code from the driver and place it into the global error
83 ;----------------------------------------------------------------------------
84 ; Load the pointer to the tgi driver into ptr1.