2 ; Ullrich von Bassewitz, 21.06.2002
4 ; void __fastcall__ tgi_done (void);
5 ; /* End graphics mode, switch back to text mode. Will NOT unload the driver! */
7 .include "tgi-kernel.inc"
8 .include "tgi-error.inc"
12 lda _tgi_gmode ; Is a graphics mode active?
14 jsr tgi_done ; Call the driver routine
15 jsr tgi_geterror ; Get the error code
16 sta _tgi_error ; Save it for reference
18 bne @L1 ; Jump if we had an error
19 sta _tgi_gmode ; Reset the graph mode flag (A = 0)