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:
parent
442f4e8934
commit
c96a802904
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue