changeset 1770:a176dea422cb

Add partially broken support for Blazing Paddles multicolor format. The background color is obviously incorrect currently.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 12 Jun 2018 13:51:03 +0300
parents bf22cd877c13
children c261db6e39aa
files tools/lib64fmts.c
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64fmts.c	Tue Jun 12 13:36:54 2018 +0300
+++ b/tools/lib64fmts.c	Tue Jun 12 13:51:03 2018 +0300
@@ -1168,6 +1168,25 @@
     },
 
     {
+        D64_FMT_MC, "blp", "Blazing Paddles (unpacked)", 0xA000, 10242, DM_FMT_RDWR | DM_FMT_BROKEN,
+        C64_SCR_WIDTH / 2, C64_SCR_HEIGHT,
+        C64_SCR_CH_WIDTH , C64_SCR_CH_HEIGHT,
+        NULL,
+        NULL, NULL,
+        NULL, NULL,
+        NULL,
+        {
+            { DO_COPY     , DS_BITMAP_RAM  , 0x0000, 0,  0, NULL, NULL },
+            // XXX TODO: Background color is wrong, this offset/addr is from codebase64 docs
+            { DO_SET_MEM  , DS_BGCOL       , 0x1f80, 0,  0, NULL, NULL },
+            { DO_COPY     , DS_SCREEN_RAM  , 0x2000, 0,  0, NULL, NULL },
+            { DO_COPY     , DS_COLOR_RAM   , 0x2400, 0,  0, NULL, NULL },
+            { DO_LAST     , 0              , 0     , 0,  0, NULL, NULL },
+        },
+        NULL
+    },
+
+    {
         D64_FMT_MC, "pmg", "Paint Magic crippled MC (unpacked)", 0x3f8e, 9332, DM_FMT_RDWR,
         C64_SCR_WIDTH / 2, C64_SCR_HEIGHT,
         C64_SCR_CH_WIDTH , C64_SCR_CH_HEIGHT,