Removed tgi_load() and all corresponding infrastructure. The idea behind tgi_load() was to be able to describe a TGI mode in a target-neutral way by resolution and colordepth. However it turned out that there arn't any cc65 targets sharing any resolution. As a result the only working target-independent approach for a TGI program is to call tgi_loaddriver(tgi_stddrv); and then look up the resolution provided - and to adapt to that resolution.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5016 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -33,7 +33,7 @@ S_OBJS = crt0.o \
|
||||
oserrlist.o \
|
||||
randomize.o \
|
||||
tgi_colors.o \
|
||||
tgi_mode_table.o
|
||||
tgi_stddrv.o
|
||||
|
||||
#--------------------------------------------------------------------------
|
||||
# Drivers
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
.include "zeropage.inc"
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
.include "tgi-mode.inc"
|
||||
.include "tgi-error.inc"
|
||||
|
||||
.include "../inc/const.inc"
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
;
|
||||
; Maciej 'YTM/Elysium' Witkowiak <ytm@elysium.pl>
|
||||
; 28.12.2002
|
||||
;
|
||||
; GEOS mode table for tgi_map_mode
|
||||
;
|
||||
|
||||
.export _tgi_mode_table
|
||||
|
||||
.include "tgi-mode.inc"
|
||||
|
||||
;----------------------------------------------------------------------------
|
||||
; Mode table. Contains entries of mode and driver name, the driver name being
|
||||
; null terminated. A mode with code zero terminates the list. The first entry
|
||||
; defines also the default mode and driver for the system.
|
||||
; BEWARE: The current implementation of tgi_map_mode does not work with tables
|
||||
; larger that 255 bytes!
|
||||
|
||||
.rodata
|
||||
|
||||
_tgi_mode_table:
|
||||
.byte TGI_MODE_320_200_2, "GEOS-TGI.TGI", 0
|
||||
.byte TGI_MODE_640_200_2, "GEOS-TGI.TGI", 0
|
||||
.byte 0 ; End marker
|
||||
13
libsrc/geos/devel/tgi_stddrv.s
Normal file
13
libsrc/geos/devel/tgi_stddrv.s
Normal file
@@ -0,0 +1,13 @@
|
||||
;
|
||||
; Name of the standard tgi driver
|
||||
;
|
||||
; Oliver Schmidt, 2011-05-02
|
||||
;
|
||||
; const char tgi_stddrv[];
|
||||
;
|
||||
|
||||
.export _tgi_stddrv
|
||||
|
||||
.rodata
|
||||
|
||||
_tgi_stddrv: .asciiz "geos-tgi.tgi"
|
||||
Reference in New Issue
Block a user