From 4aa00e84e1e5ae9cb54999575faf4b77eb86d9cf Mon Sep 17 00:00:00 2001 From: "ol.sc" Date: Mon, 2 May 2011 10:38:48 +0000 Subject: [PATCH] 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 --- asminc/tgi-kernel.inc | 1 - asminc/tgi-mode.inc | 65 ------------------------------ doc/funcref.sgml | 26 +----------- include/tgi.h | 17 +------- include/tgi/tgi-mode.h | 61 ---------------------------- libsrc/apple2/Makefile | 2 +- libsrc/apple2/apple2-280-192-8.s | 1 - libsrc/apple2/apple2-40-48-16.s | 1 - libsrc/apple2/tgi_mode_table.s | 28 ------------- libsrc/apple2/tgi_stddrv.s | 18 +++++++++ libsrc/apple2enh/Makefile | 2 +- libsrc/atari/Makefile | 2 +- libsrc/atari/atari-10.s | 1 - libsrc/atari/atari-10p2.s | 1 - libsrc/atari/atari-11.s | 1 - libsrc/atari/atari-14.s | 1 - libsrc/atari/atari-15.s | 1 - libsrc/atari/atari-15p2.s | 1 - libsrc/atari/atari-3.s | 1 - libsrc/atari/atari-4.s | 1 - libsrc/atari/atari-5.s | 1 - libsrc/atari/atari-6.s | 1 - libsrc/atari/atari-7.s | 1 - libsrc/atari/atari-8.s | 1 - libsrc/atari/atari-8p2.s | 1 - libsrc/atari/atari-9.s | 1 - libsrc/atari/atari-9p2.s | 1 - libsrc/atari/tgi_mode_table.s | 38 ----------------- libsrc/atari/tgi_stddrv.s | 13 ++++++ libsrc/atmos/atmos-240-200-2.s | 1 - libsrc/c128/Makefile | 2 +- libsrc/c128/c128-640-200-2.s | 1 - libsrc/c128/c128-640-480-2.s | 1 - libsrc/c128/tgi_mode_table.s | 23 ----------- libsrc/c128/tgi_stddrv.s | 13 ++++++ libsrc/c64/Makefile | 2 +- libsrc/c64/c64-320-200-2.s | 1 - libsrc/c64/tgi_mode_table.s | 24 ----------- libsrc/c64/tgi_stddrv.s | 13 ++++++ libsrc/geos/devel/Makefile | 2 +- libsrc/geos/devel/geos-tgi.s | 1 - libsrc/geos/devel/tgi_mode_table.s | 24 ----------- libsrc/geos/devel/tgi_stddrv.s | 13 ++++++ libsrc/lynx/lynx-160-102-16.s | 1 - libsrc/tgi/Makefile | 3 -- libsrc/tgi/tgi_load.c | 63 ----------------------------- libsrc/tgi/tgi_stddrv.s | 11 ----- libsrc/tgi/tgi_stdmode.s | 11 ----- 48 files changed, 78 insertions(+), 422 deletions(-) delete mode 100644 asminc/tgi-mode.inc delete mode 100644 include/tgi/tgi-mode.h delete mode 100644 libsrc/apple2/tgi_mode_table.s create mode 100644 libsrc/apple2/tgi_stddrv.s delete mode 100644 libsrc/atari/tgi_mode_table.s create mode 100644 libsrc/atari/tgi_stddrv.s delete mode 100644 libsrc/c128/tgi_mode_table.s create mode 100644 libsrc/c128/tgi_stddrv.s delete mode 100644 libsrc/c64/tgi_mode_table.s create mode 100644 libsrc/c64/tgi_stddrv.s delete mode 100644 libsrc/geos/devel/tgi_mode_table.s create mode 100644 libsrc/geos/devel/tgi_stddrv.s delete mode 100644 libsrc/tgi/tgi_load.c delete mode 100644 libsrc/tgi/tgi_stddrv.s delete mode 100644 libsrc/tgi/tgi_stdmode.s diff --git a/asminc/tgi-kernel.inc b/asminc/tgi-kernel.inc index 76f96f135..5bca0b630 100644 --- a/asminc/tgi-kernel.inc +++ b/asminc/tgi-kernel.inc @@ -204,7 +204,6 @@ TGI_CLIP_TOP = $08 .global _tgi_ioctl .global _tgi_line .global _tgi_lineto - .global _tgi_load .global _tgi_load_driver .global _tgi_outtext .global _tgi_outtextxy diff --git a/asminc/tgi-mode.inc b/asminc/tgi-mode.inc deleted file mode 100644 index d3f7e92b1..000000000 --- a/asminc/tgi-mode.inc +++ /dev/null @@ -1,65 +0,0 @@ -;*****************************************************************************/ -;* */ -;* tgi-mode.inc */ -;* */ -;* TGI mode definitions */ -;* */ -;* */ -;* */ -;* (C) 2002-2003 Ullrich von Bassewitz */ -;* Römerstraße 52 */ -;* D-70794 Filderstadt */ -;* EMail: uz@cc65.org */ -;* */ -;* */ -;* This software is provided 'as-is', without any expressed or implied */ -;* warranty. In no event will the authors be held liable for any damages */ -;* arising from the use of this software. */ -;* */ -;* Permission is granted to anyone to use this software for any purpose, */ -;* including commercial applications, and to alter it and redistribute it */ -;* freely, subject to the following restrictions: */ -;* */ -;* 1. The origin of this software must not be misrepresented; you must not */ -;* claim that you wrote the original software. If you use this software */ -;* in a product, an acknowledgment in the product documentation would be */ -;* appreciated but is not required. */ -;* 2. Altered source versions must be plainly marked as such, and must not */ -;* be misrepresented as being the original software. */ -;* 3. This notice may not be removed or altered from any source */ -;* distribution. */ -;* */ -;*****************************************************************************/ - - - -; Graphics modes. Zero may not be used as a mode number. -.enum - TGI_MODE_INVALID - TGI_MODE_320_200_2 ; 320x200, 2 colors (b/w) - TGI_MODE_160_200_4 ; 160x200, 4 colors - TGI_MODE_640_200_2 ; 640x200, 2 colors (b/w) - TGI_MODE_640_480_2 ; 640x480, 2 colors (b/w) - TGI_MODE_280_192_8 ; 280x192, 8 colors - TGI_MODE_40_48_16 ; 40x48, 16 colors - TGI_MODE_320_192_2 - TGI_MODE_160_192_4 - TGI_MODE_160_192_2 - TGI_MODE_160_96_4 - TGI_MODE_160_96_2 - TGI_MODE_80_48_4 - TGI_MODE_80_48_2 - TGI_MODE_40_24_4 - TGI_MODE_80_192_16b ; 80x192, 16 shades of the same color - TGI_MODE_80_192_9 - TGI_MODE_80_192_16h ; 80x192, 16 colors with the same brightness - TGI_MODE_320_192_2_2p - TGI_MODE_80_192_16b_2p - TGI_MODE_160_192_4_2p - TGI_MODE_80_192_9_2p - TGI_MODE_160_102_16 ; 160x102, 16 colors - TGI_MODE_240_200_2 ; 240x200, 2 colors (b/w) -.endenum - - - diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 5b8138bc9..6529217ff 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -531,7 +531,6 @@ communication. - @@ -5750,34 +5749,11 @@ be used in presence of a prototype. -tgi_load