mirror of
https://github.com/libretro/libretro-fceumm.git
synced 2024-12-28 03:45:48 +00:00
Mapper 268: Write to WRAM before corrupting V when index==2.
This commit is contained in:
parent
f221a59127
commit
23f21966be
@ -91,6 +91,7 @@ static DECLFW(Mapper268_WriteWRAM) {
|
||||
|
||||
static DECLFW(Mapper268_WriteReg) {
|
||||
int index =A &7;
|
||||
if (~submapper &1) Mapper268_WriteWRAM(A, V);
|
||||
if (~EXPREGS[3] &0x80 || index ==2) {
|
||||
if (index ==2) {
|
||||
if (EXPREGS[2] &0x80) V =V &0x0F | EXPREGS[2] &~0x0F;
|
||||
@ -100,7 +101,6 @@ static DECLFW(Mapper268_WriteReg) {
|
||||
FixMMC3PRG(MMC3_cmd);
|
||||
FixMMC3CHR(MMC3_cmd);
|
||||
}
|
||||
if (~submapper &1) Mapper268_WriteWRAM(A, V);
|
||||
}
|
||||
|
||||
static void Mapper268_Reset(void) {
|
||||
|
Loading…
Reference in New Issue
Block a user