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:
@@ -104,7 +104,7 @@ S_OBJS= _scrsize.o \
|
||||
systime.o \
|
||||
sysuname.o \
|
||||
tgi_colors.o \
|
||||
tgi_mode_table.o\
|
||||
tgi_stddrv.o \
|
||||
toascii.o \
|
||||
vtabz.o \
|
||||
wherex.o \
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
.include "zeropage.inc"
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
.include "tgi-mode.inc"
|
||||
.include "tgi-error.inc"
|
||||
.include "apple2.inc"
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
.include "zeropage.inc"
|
||||
|
||||
.include "tgi-kernel.inc"
|
||||
.include "tgi-mode.inc"
|
||||
.include "tgi-error.inc"
|
||||
.include "apple2.inc"
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 31.05.2002
|
||||
;
|
||||
; Apple II 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:
|
||||
.ifdef __APPLE2ENH__
|
||||
.byte TGI_MODE_280_192_8, "A2E.HI.TGI", 0
|
||||
.byte TGI_MODE_40_48_16, "A2E.LO.TGI", 0
|
||||
.else
|
||||
.byte TGI_MODE_280_192_8, "A2.HI.TGI", 0
|
||||
.byte TGI_MODE_40_48_16, "A2.LO.TGI", 0
|
||||
.endif
|
||||
.byte 0 ; End marker
|
||||
18
libsrc/apple2/tgi_stddrv.s
Normal file
18
libsrc/apple2/tgi_stddrv.s
Normal file
@@ -0,0 +1,18 @@
|
||||
;
|
||||
; Name of the standard tgi driver
|
||||
;
|
||||
; Oliver Schmidt, 2011-05-02
|
||||
;
|
||||
; const char tgi_stddrv[];
|
||||
;
|
||||
|
||||
.export _tgi_stddrv
|
||||
|
||||
.rodata
|
||||
|
||||
_tgi_stddrv:
|
||||
.ifdef __APPLE2ENH__
|
||||
.asciiz "A2E.HI.TGI"
|
||||
.else
|
||||
.asciiz "A2.HI.TGI"
|
||||
.endif
|
||||
Reference in New Issue
Block a user