changeset 1763:847bd77a538d

Implement Rainbow Painter format support.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 12 Jun 2018 00:27:37 +0300
parents b69f3d97db9e
children 52e31cfc1e36
files tools/lib64fmts.c
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64fmts.c	Mon Jun 11 21:47:25 2018 +0300
+++ b/tools/lib64fmts.c	Tue Jun 12 00:27:37 2018 +0300
@@ -1133,6 +1133,25 @@
     },
 
     {
+        D64_FMT_MC, "rbp", "Rainbow Painter (unpacked)", 0x5c00, 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_SCREEN_RAM  , 0x0000, 0,  0, NULL, NULL },
+            { DO_COPY     , DS_BITMAP_RAM  , 0x0400, 0,  0, NULL, NULL },
+            { DO_COPY     , DS_COLOR_RAM   , 0x2400, 0,  0, NULL, NULL },
+            // XXX TODO: Not sure if the background color is hardcoded ..
+            { DO_SET_OP   , DS_BGCOL       , 0x00  , 0,  0, NULL, NULL },
+            { DO_LAST     , 0              , 0     , 0,  0, NULL, NULL },
+        },
+        NULL
+    },
+
+    {
         D64_FMT_MC, "pmg", "PMG crippled multicolor (unpacked)", 0x3f8e, 9332, DM_FMT_RDWR,
         C64_SCR_WIDTH / 2, C64_SCR_HEIGHT,
         C64_SCR_CH_WIDTH , C64_SCR_CH_HEIGHT,