Update mapper 79

This commit is contained in:
negativeExponent
2020-03-09 21:38:07 +08:00
parent 82107ba321
commit 9827248938
2 changed files with 7 additions and 7 deletions

View File

@@ -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) {

View File

@@ -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 */