NES - fix some chr mapping logic in Mapper 57

This commit is contained in:
adelikat 2012-07-20 02:57:46 +00:00
parent 48b24703a3
commit afbde96fe5
1 changed files with 4 additions and 1 deletions

View File

@ -83,13 +83,16 @@ namespace BizHawk.Emulation.Consoles.Nintendo
{
if (addr == 0)
{
chr_reg = (value & 0x07) | ((value & 0x40) >> 3);
chr_reg |= value & 0x07;
chr_reg &= ~0x08;
chr_reg &= (value & 0x40) >> 3;
}
else if ((addr & 0x800) > 0)
{
prg_reg = (value >> 5) & 0x07;
prg_mode = value.Bit(4);
chr_reg |= (value & 0x07);
if (addr.Bit(3))
{
SetMirrorType(EMirrorType.Horizontal);