changeset 2399:5d391c31ebc9

Add support for Abyss Connection PETSCII-Editor 4.61 (unpacked) raw file format.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 12 Jan 2020 03:41:02 +0200
parents 0b1928ed902f
children 01c6a5261962
files tools/lib64fmts.c
diffstat 1 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64fmts.c	Fri Jan 10 01:45:46 2020 +0200
+++ b/tools/lib64fmts.c	Sun Jan 12 03:41:02 2020 +0200
@@ -2850,6 +2850,32 @@
         NULL
     },
 
+    {
+        "acpe", "Abyss Connection PETSCII-Editor 4.61 (unpacked)", 0x3000, 2026, DM_FMT_RDWR,
+        NULL,
+        NULL, NULL,
+        {
+            D64_FMT_HIRES | D64_FMT_CHAR,
+            D64_SCR_WIDTH   , D64_SCR_HEIGHT,
+            D64_SCR_CH_WIDTH, D64_SCR_CH_HEIGHT,
+            1, 1,
+            NULL, NULL,
+            NULL,
+            {
+                { DO_FUNC       , 0              , 0x33ea - 0x3000, 0,  0,   0, NULL, fmtEncodeCocaPETSCIIData, DF_NORMAL },
+                { DO_COPY       , DS_SCREEN_RAM  , 0x0000         , 0,  0,   0, NULL, NULL, DF_NORMAL },
+                { DO_COPY       , DS_COLOR_RAM   , 0x0400         , 0,  0,   0, NULL, NULL, DF_NORMAL },
+
+                { DO_SET_MEM_LO , DS_D020        , 0x33e8 - 0x3000, 0,  0,   0, NULL, NULL, DF_NORMAL },
+                { DO_SET_MEM_LO , DS_BGCOL       , 0x33e9 - 0x3000, 0,  0,   0, NULL, NULL, DF_NORMAL },
+                { DO_FUNC       , 0              , 0x33ea - 0x3000, 0,  0,   0, fmtDecodeHiresPETSCIICharsetData, NULL, DF_NORMAL },
+
+                { DO_LAST       , 0              , 0     , 0,  0,   0, NULL, NULL, DF_NORMAL },
+            }
+        },
+        NULL
+    },
+
 };
 
 const int ndmC64ImageFormats = sizeof(dmC64ImageFormats) / sizeof(dmC64ImageFormats[0]);