GBHawk: fix behaviour of writing to LY reg, fixes Zen console verificaiton

This commit is contained in:
alyosha-tas 2020-07-29 18:29:26 -04:00
parent a54b9acba2
commit 9b5997cf7f
3 changed files with 7 additions and 4 deletions

View File

@ -162,8 +162,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
scroll_x = value;
break;
case 0xFF44: // LY
LY = 0; /*reset*/
LY_read = 0;
// writing to LY has no effect on GBC (zen intergalactic ninja does this on initialization)
//LY = 0; /*reset*/
//LY_read = 0;
break;
case 0xFF45: // LYC
// tests indicate that latching writes to LYC should take place 4 cycles after the write

View File

@ -158,8 +158,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
scroll_x = value;
break;
case 0xFF44: // LY
LY = 0; /*reset*/
LY_read = 0;
// writing to LY has no effect on GBC (zen intergalactic ninja does this on initialization)
//LY = 0; /*reset*/
//LY_read = 0;
break;
case 0xFF45: // LYC
// tests indicate that latching writes to LYC should take place 4 cycles after the write

View File

@ -83,6 +83,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
scroll_x = value;
break;
case 0xFF44: // LY
// writing to LY has no effect on GBC, not sure about GB (zen intergalactic ninja does this on initialization)
LY = 0; /*reset*/
break;
case 0xFF45: // LYC