attempt to apply changes to MMC5 specified by https://sourceforge.net/p/fceultra/bugs/787/

This commit is contained in:
zeromus 2017-04-28 21:33:26 -05:00
parent c696195ad0
commit d8fd403ea2
1 changed files with 13 additions and 13 deletions

View File

@ -258,24 +258,24 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
goto MAPPED;
}
//wish this logic could be smaller..
//how does this KNOW that its in 8x16 sprites? the pattern of reads... emulate it that way..
if (NES.ppu.reg_2000.obj_size_16
//zero 03-aug-2014 - added this to fix Uchuu Keibitai SDF. The game reads NT entries from CHR rom while PPU is disabled.
//obviously we have enormous numbers of bugs springing from our terrible emulation of ppu-disabled states, but this does the job for fixing this one
&& NES.ppu.show_obj_new
)
if (NES.ppu.reg_2000.obj_size_16)
{
if (NES.ppu.ppuphase == PPU.PPUPHASE.OBJ)
if (NES.ppu.ppuphase == PPU.PPUPHASE.OBJ && NES.ppu.show_obj_new)
bank_1k = a_banks_1k[bank_1k];
else
else if (NES.ppu.ppuphase == PPU.PPUPHASE.BG && NES.ppu.show_bg_new)
bank_1k = b_banks_1k[bank_1k];
else
{
if (ab_mode == 0)
bank_1k = a_banks_1k[bank_1k];
else
bank_1k = b_banks_1k[bank_1k];
}
}
else
if (ab_mode == 0)
bank_1k = a_banks_1k[bank_1k];
else
bank_1k = b_banks_1k[bank_1k];
{
bank_1k = a_banks_1k[bank_1k];
}
MAPPED:
bank_1k &= chr_bank_mask_1k;