GBHawk: Bug Fixes
This commit is contained in:
parent
28fb17a9fe
commit
d9183ede93
|
@ -132,6 +132,12 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
|
|||
in_vblank = true; // we start off in vblank since the LCD is off
|
||||
in_vblank_old = true;
|
||||
|
||||
// Start off with RAM all 0xFF (the game 'X' (proto) expects this)
|
||||
for (int i = 0; i < RAM.Length; i++)
|
||||
{
|
||||
RAM[i] = 0xFF;
|
||||
}
|
||||
|
||||
Register_Reset();
|
||||
timer.Reset();
|
||||
ppu.Reset();
|
||||
|
|
|
@ -21,6 +21,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
|
|||
RAM_enable = false;
|
||||
sel_mode = false;
|
||||
ROM_mask = Core._rom.Length / 0x4000 - 1;
|
||||
|
||||
// some games have sizes that result in a degenerate ROM, account for it here
|
||||
if (ROM_mask > 4) { ROM_mask |= 3; }
|
||||
|
||||
RAM_mask = 0;
|
||||
if (Core.cart_RAM != null)
|
||||
{
|
||||
|
|
|
@ -144,7 +144,6 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawk
|
|||
case 0xFF45: // LYC
|
||||
LYC = value;
|
||||
if (LY != LYC) { STAT &= 0xFB; }
|
||||
Console.WriteLine(value);
|
||||
break;
|
||||
case 0xFF46: // DMA
|
||||
DMA_addr = value;
|
||||
|
|
Loading…
Reference in New Issue