From 982724893891bb63b9a2ba6dfcada42f7def417a Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Mon, 9 Mar 2020 21:38:07 +0800 Subject: [PATCH] Update mapper 79 --- src/boards/79.c | 11 +++++------ src/ines-correct.h | 3 ++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/boards/79.c b/src/boards/79.c index c5b7f8e..68bb3b3 100644 --- a/src/boards/79.c +++ b/src/boards/79.c @@ -35,19 +35,18 @@ static void Sync(void) { } static DECLFW(M79Write) { - if ((A < 0x8000) && ((A ^ 0x4100) == 0)) { + if (A & 0x100) { preg = (V >> 3) & 1; + creg = V & 7; + Sync(); } - creg = V & 7; - Sync(); } static void M79Power(void) { - preg = ~0; + preg = 0; Sync(); - SetWriteHandler(0x4100, 0x5FFF, M79Write); - SetWriteHandler(0x8000, 0xFFFF, M79Write); SetReadHandler(0x8000, 0xFFFF, CartBR); + SetWriteHandler(0x4100, 0x5FFF, M79Write); } static void StateRestore(int version) { diff --git a/src/ines-correct.h b/src/ines-correct.h index 7aa15c5..14069cc 100644 --- a/src/ines-correct.h +++ b/src/ines-correct.h @@ -378,7 +378,8 @@ {0x19C1ED51, 150, -1}, /* Poker III (Asia) (Ja) (Unl).nes */ {0x282745C5, 141, -1}, /* Q Boy (Asia) (Ja) (Unl).nes */ - {0x4B9ECFB2, 21, -1}, /* Wai Wai World 2 - SOS!! Paseri Jou (Japan) (Virtual Console).nes */ + {0x4B9ECFB2, 21, -1}, /* Wai Wai World 2 - SOS!! Paseri Jou (Japan) (Virtual Console).nes */ + {0x33751782, 4, -1}, /* Zoda's Revenge - StarTropics II (USA, Europe) (Virtual Console).nes */ /* TXC / Sachen / JoyVan */