2002-06-21 13:28:51 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 21.06.2002
|
|
|
|
;
|
|
|
|
; void __fastcall__ tgi_unload (void);
|
|
|
|
; /* Unload the currently loaded driver. */
|
|
|
|
|
|
|
|
|
|
|
|
.include "tgi-kernel.inc"
|
|
|
|
.include "modload.inc"
|
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.import tgi_clear_ptr
|
2002-06-21 13:28:51 +00:00
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.proc _tgi_unload
|
2002-06-21 13:28:51 +00:00
|
|
|
|
|
|
|
jsr _tgi_done ; Switch off graphics
|
2003-02-11 12:37:46 +00:00
|
|
|
jsr tgi_uninstall ; Allow the driver to clean up
|
2002-06-21 13:28:51 +00:00
|
|
|
|
|
|
|
lda _tgi_drv
|
|
|
|
ldx _tgi_drv+1
|
|
|
|
jsr _mod_free ; Free the driver
|
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
jmp tgi_clear_ptr ; Clear the driver pointer and exit
|
2002-06-21 13:28:51 +00:00
|
|
|
|
2003-02-11 12:37:46 +00:00
|
|
|
.endproc
|
2002-06-21 13:28:51 +00:00
|
|
|
|