From 8df8a4aeacf991f9006ef92897a114d31bd33561 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Sun, 22 Jan 2023 15:10:08 +0400 Subject: COOLBOY submapper 2 and 3 writing fix --- FamicomDumper/FlashWriters/CoolboyWriter.cs | 3 ++- FamicomDumper/IMapper.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/FamicomDumper/FlashWriters/CoolboyWriter.cs b/FamicomDumper/FlashWriters/CoolboyWriter.cs index 6eaa6bc..ec54feb 100644 --- a/FamicomDumper/FlashWriters/CoolboyWriter.cs +++ b/FamicomDumper/FlashWriters/CoolboyWriter.cs @@ -198,7 +198,8 @@ namespace com.clusterrr.Famicom.Dumper.FlashWriters case 2: case 3: r1 = (byte)( - (((bank >> 8) & 1) << 1) // 8(22) + (1 << 4) // PRG mask 32KB, inverted + | (((bank >> 8) & 1) << 1) // 8(22) | (((bank >> 7) & 1) << 2) // 7(21) | (((bank >> 6) & 1) << 3) // 6(20) | (1 << 7)); // PRG mask 512KB diff --git a/FamicomDumper/IMapper.cs b/FamicomDumper/IMapper.cs index 63cfd5e..5bd96d5 100644 --- a/FamicomDumper/IMapper.cs +++ b/FamicomDumper/IMapper.cs @@ -60,7 +60,7 @@ namespace com.clusterrr.Famicom.Dumper /// This method will be called to enable PRG RAM /// /// - void EnablePrgRam(IFamicomDumperConnection dumper) + void EnablePrgRam(IFamicomDumperConnection dumper) => throw new NotImplementedException("PRG RAM is not supported by this mapper"); /// -- cgit v1.2.3