GBHawk: mode1 bug fix

This commit is contained in:
alyosha-tas 2020-12-05 19:32:34 -05:00
parent 877c11d5f9
commit b7c821f8d6
2 changed files with 2 additions and 2 deletions

View File

@ -584,7 +584,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
{ {
if (STAT.Bit(4)) if (STAT.Bit(4))
{ {
if ((cycle >= 4) && (LY == 144)) if ((cycle >= 5) && (LY == 144))
{ {
VBL_INT = true; VBL_INT = true;
} }

View File

@ -587,7 +587,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
{ {
if (STAT.Bit(4)) if (STAT.Bit(4))
{ {
if ((cycle >= 4) && (LY == 144)) if ((cycle >= (3 + 1 * LYC_offset)) && (LY == 144))
{ {
VBL_INT = true; VBL_INT = true;
} }