Update 8237.cpp (#457)

Fix incorrect address mask for UNL8237A write registers. The game Lion Kings writes to 0x5010/0x5080.
This commit is contained in:
negativeExponent 2022-02-13 04:08:23 -08:00 committed by GitHub
parent 442f4e8934
commit c96a802904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@
* *
* Super Game (Sugar Softec) protected mapper * Super Game (Sugar Softec) protected mapper
* Pocahontas 2 (Unl) [U][!], etc. * Pocahontas 2 (Unl) [U][!], etc.
* TODO: 9in1 LION KING HANGS!
*/ */
#include "mapinc.h" #include "mapinc.h"
@ -139,7 +138,7 @@ static DECLFW(UNL8237Write) {
} }
static DECLFW(UNL8237ExWrite) { static DECLFW(UNL8237ExWrite) {
switch (A) { switch (A & 0xF007) {
case 0x5000: EXPREGS[0] = V; FixMMC3PRG(MMC3_cmd); break; case 0x5000: EXPREGS[0] = V; FixMMC3PRG(MMC3_cmd); break;
case 0x5001: EXPREGS[1] = V; FixMMC3PRG(MMC3_cmd); FixMMC3CHR(MMC3_cmd); break; case 0x5001: EXPREGS[1] = V; FixMMC3PRG(MMC3_cmd); FixMMC3CHR(MMC3_cmd); break;
case 0x5007: EXPREGS[2] = V; break; case 0x5007: EXPREGS[2] = V; break;