ref: d7b52500f32c3e540cdb79ad72e5e9e86f4cd31e
parent: bfa89313b50f2adc4158f97df2361b2d4eb3b226
author: aiju <devnull@localhost>
date: Tue Feb 25 04:39:30 EST 2014
games/nes: mmc3 chr inversion fixed
--- a/sys/src/games/nes/mem.c
+++ b/sys/src/games/nes/mem.c
@@ -281,7 +281,7 @@
prgb[2] = prg + (2 * nprg - 2) * 0x2000;
}
prgb[1] = prg + b[7] * 0x2000;
- c = (m & 0x80) >> 6;
+ c = (m & 0x80) >> 5;
for(i = 0; i < 2; i++){chrb[j = (i << 1) ^ c] = chr + (b[i] >> 1) * 0x800;
chrb[j+1] = chrb[j] + 0x400;
--
⑨