nes-express m193 differently, maybe more clearly

This commit is contained in:
zeromus 2012-07-06 03:12:20 +00:00
parent 157c145a46
commit 1eda5f6d63
1 changed files with 4 additions and 4 deletions

View File

@ -103,14 +103,14 @@ namespace BizHawk.Emulation.Consoles.Nintendo
switch (addr)
{
case 0:
chr_banks_2k[0] = (byte)(value / 4 * 2);
chr_banks_2k[1] = (byte)(value / 4 * 2 + 1);
chr_banks_2k[0] = (byte)((value & ~3) >> 1);
chr_banks_2k[1] = (byte)(((value & ~3) >> 1) + 1);
break;
case 1:
chr_banks_2k[2] = (byte)(value / 2);
chr_banks_2k[2] = (byte)((value & ~1) >> 1);
break;
case 2:
chr_banks_2k[3] = (byte)(value / 2);
chr_banks_2k[3] = (byte)((value & ~1) >> 1);
break;
case 3:
prg_banks_8k[0] = value;