From f9b25bad48ae75e660f37f82d390652aa5ea1f66 Mon Sep 17 00:00:00 2001
From: "ol.sc"
Date: Mon, 25 Apr 2011 19:05:43 +0000
Subject: [PATCH] Added TGI mode tables for Atmos and Lynx
git-svn-id: svn://svn.cc65.org/cc65/trunk@4997 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
asminc/tgi-mode.inc | 7 ++++---
libsrc/atmos/Makefile | 1 +
libsrc/atmos/tgi_mode_table.s | 24 ++++++++++++++++++++++++
libsrc/lynx/Makefile | 1 +
libsrc/lynx/tgi_mode_table.s | 24 ++++++++++++++++++++++++
5 files changed, 54 insertions(+), 3 deletions(-)
create mode 100644 libsrc/atmos/tgi_mode_table.s
create mode 100644 libsrc/lynx/tgi_mode_table.s
diff --git a/asminc/tgi-mode.inc b/asminc/tgi-mode.inc
index d2be442aa..d3f7e92b1 100644
--- a/asminc/tgi-mode.inc
+++ b/asminc/tgi-mode.inc
@@ -42,7 +42,6 @@
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
@@ -51,13 +50,15 @@
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_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_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/libsrc/atmos/Makefile b/libsrc/atmos/Makefile
index a36554132..6c7a59d4a 100644
--- a/libsrc/atmos/Makefile
+++ b/libsrc/atmos/Makefile
@@ -66,6 +66,7 @@ OBJS = _scrsize.o \
systime.o \
sysuname.o \
tgi_colors.o \
+ tgi_mode_table.o\
wherex.o \
wherey.o \
write.o
diff --git a/libsrc/atmos/tgi_mode_table.s b/libsrc/atmos/tgi_mode_table.s
new file mode 100644
index 000000000..c649aaef8
--- /dev/null
+++ b/libsrc/atmos/tgi_mode_table.s
@@ -0,0 +1,24 @@
+;
+; Ullrich von Bassewitz, 31.05.2002
+;
+; Atmos 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_240_200_2, "atmos-240-200-2.tgi", 0
+ .byte 0 ; End marker
+
+
diff --git a/libsrc/lynx/Makefile b/libsrc/lynx/Makefile
index 4e0e73d1d..8729756b4 100644
--- a/libsrc/lynx/Makefile
+++ b/libsrc/lynx/Makefile
@@ -67,6 +67,7 @@ OBJS = bllhdr.o \
read.o \
sysuname.o \
tgi_colors.o \
+ tgi_mode_table.o\
toascii.o \
uploader.o
diff --git a/libsrc/lynx/tgi_mode_table.s b/libsrc/lynx/tgi_mode_table.s
new file mode 100644
index 000000000..108a05629
--- /dev/null
+++ b/libsrc/lynx/tgi_mode_table.s
@@ -0,0 +1,24 @@
+;
+; Ullrich von Bassewitz, 31.05.2002
+;
+; Lynx 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_160_102_16, "lynx-160-102-16.tgi", 0
+ .byte 0 ; End marker
+
+
--
2.39.5