Add security for VS top gun

This commit is contained in:
alyosha-tas 2016-11-05 21:23:07 -04:00 committed by GitHub
parent 4d12197cc0
commit af93beb6af
1 changed files with 4 additions and 0 deletions

View File

@ -401,6 +401,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
{
return (byte)((Reg2002_vblank_active << 7) | (Reg2002_objhit << 6) | (Reg2002_objoverflow << 5) | (0x1C));
}
if (nes._isVS2c05 == 4)
{
return (byte)((Reg2002_vblank_active << 7) | (Reg2002_objhit << 6) | (Reg2002_objoverflow << 5) | (0x1B));
}
return (byte)((Reg2002_vblank_active << 7) | (Reg2002_objhit << 6) | (Reg2002_objoverflow << 5) | (ppu_open_bus & 0x1F));
}