]> git.sur5r.net Git - cc65/commitdiff
Added TGI mode tables for Atmos and Lynx
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 25 Apr 2011 19:05:43 +0000 (19:05 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 25 Apr 2011 19:05:43 +0000 (19:05 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4997 b7a2c559-68d2-44c3-8de9-860c34a00d81

asminc/tgi-mode.inc
libsrc/atmos/Makefile
libsrc/atmos/tgi_mode_table.s [new file with mode: 0644]
libsrc/lynx/Makefile
libsrc/lynx/tgi_mode_table.s [new file with mode: 0644]

index d2be442aad44db5f3762ad4d175b658455b83689..d3f7e92b157e0ff71637bc6c5144a7cd8f92acf1 100644 (file)
@@ -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
         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
 
 
index a365541321cb4ada2c453c8037099bff64101d63..6c7a59d4a2ae5ee44a79a70807143bad6295fef0 100644 (file)
@@ -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 (file)
index 0000000..c649aae
--- /dev/null
@@ -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
+
+
index 4e0e73d1ddd7b052d04a669949c688470dafb66c..8729756b420c9e01394e6f55f9560e065cfcc776 100644 (file)
@@ -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 (file)
index 0000000..108a056
--- /dev/null
@@ -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
+
+