Add files via upload

This commit is contained in:
alyosha-tas 2016-10-23 20:48:51 -04:00 committed by GitHub
parent c9a48d9215
commit 62057f60cb
1 changed files with 19 additions and 12 deletions

View File

@ -291,22 +291,29 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public virtual void AddressPPU(int addr) public virtual void AddressPPU(int addr)
{ {
int a12 = (addr >> 12) & 1; // see https://forums.nesdev.com/viewtopic.php?f=3&t=11361&start=60
bool rising_edge = (a12 == 1 && a12_old == 0); // apparently mmc3 can't see internal pattern tables
if (rising_edge) // fixes Recca
if (addr<0x3F00)
{ {
if (separator_counter > 0) int a12 = (addr >> 12) & 1;
bool rising_edge = (a12 == 1 && a12_old == 0);
if (rising_edge)
{ {
separator_counter = 15; if (separator_counter > 0)
{
separator_counter = 15;
}
else
{
separator_counter = 15;
irq_countdown = 6;
}
} }
else
{
separator_counter = 15;
irq_countdown = 6;
}
}
a12_old = a12; a12_old = a12;
}
} }
} }