Merge pull request #531 from NRS-NewRisingSun/mappers5fix
Small bugfix for the last mapper 268 update.
This commit is contained in:
@@ -91,6 +91,7 @@ static DECLFW(Mapper268_WriteWRAM) {
|
|||||||
|
|
||||||
static DECLFW(Mapper268_WriteReg) {
|
static DECLFW(Mapper268_WriteReg) {
|
||||||
int index =A &7;
|
int index =A &7;
|
||||||
|
if (~submapper &1) Mapper268_WriteWRAM(A, V);
|
||||||
if (~EXPREGS[3] &0x80 || index ==2) {
|
if (~EXPREGS[3] &0x80 || index ==2) {
|
||||||
if (index ==2) {
|
if (index ==2) {
|
||||||
if (EXPREGS[2] &0x80) V =V &0x0F | EXPREGS[2] &~0x0F;
|
if (EXPREGS[2] &0x80) V =V &0x0F | EXPREGS[2] &~0x0F;
|
||||||
@@ -100,7 +101,6 @@ static DECLFW(Mapper268_WriteReg) {
|
|||||||
FixMMC3PRG(MMC3_cmd);
|
FixMMC3PRG(MMC3_cmd);
|
||||||
FixMMC3CHR(MMC3_cmd);
|
FixMMC3CHR(MMC3_cmd);
|
||||||
}
|
}
|
||||||
if (~submapper &1) Mapper268_WriteWRAM(A, V);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Mapper268_Reset(void) {
|
static void Mapper268_Reset(void) {
|
||||||
|
|||||||
Reference in New Issue
Block a user