NES: sunsoft 1: clarify code, no emulation changes

This commit is contained in:
goyuken 2014-02-19 16:33:59 +00:00
parent 2555f5f5e0
commit 223116252b
1 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,10 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
public override void WriteWRAM(int addr, byte value)
{
left_piece = value & 7 & chr_mask;
right_piece = (value >> 4) & 7 & chr_mask;
// the bank at ppu $1000 has only 2 selection bits. the high bit is frozen to 1
// this doesn't matter in practice because the only game on this board with 32K CHR,
// wing of madoola, writes a '1' to the unread bit.
right_piece = (value >> 4 & 3 | 4) & chr_mask;
}
public override void SyncState(Serializer ser)