2 ; Ullrich von Bassewitz, 21.06.2002
4 ; void __fastcall__ tgi_init (unsigned char mode);
5 ; /* Initialize the given graphics mode. */
8 .include "tgi-kernel.inc"
9 .include "tgi-error.inc"
16 jsr _tgi_done ; Switch off graphics if needed
18 sta _tgi_mode ; Remember the mode
19 jsr tgi_init ; Go into graphics mode
20 jsr tgi_fetch_error ; Get the error code
21 beq @L1 ; Jump if no error
23 sta _tgi_mode ; Clear the mode if init was not successful