NESHawk : fix dendy mode
This commit is contained in:
parent
42f9b817d2
commit
0bd3553c27
|
@ -991,7 +991,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
|
||||
public void TickPPU_preVBL()
|
||||
{
|
||||
if (ppur.status.cycle == 340)
|
||||
if ((ppur.status.cycle == 340) && (ppur.status.sl == 241 + preNMIlines - 1))
|
||||
{
|
||||
Reg2002_vblank_active_pending = true;
|
||||
}
|
||||
|
@ -999,6 +999,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
runppu();
|
||||
|
||||
if (ppur.status.cycle == 341)
|
||||
{
|
||||
ppur.status.cycle = 0;
|
||||
ppur.status.sl++;
|
||||
|
||||
if (ppur.status.sl == 241 + preNMIlines)
|
||||
{
|
||||
if (Reg2002_vblank_active_pending)
|
||||
{
|
||||
|
@ -1006,10 +1011,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
|||
Reg2002_vblank_active_pending = false;
|
||||
}
|
||||
|
||||
ppur.status.cycle = 0;
|
||||
ppur.status.sl++;
|
||||
if (ppur.status.sl == 241 + preNMIlines)
|
||||
{
|
||||
do_pre_vbl = false;
|
||||
do_vbl = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue