diff options
author | aiju <devnull@localhost> | 2014-02-25 09:39:30 +0100 |
---|---|---|
committer | aiju <devnull@localhost> | 2014-02-25 09:39:30 +0100 |
commit | 28c3c2bea7ac2d7c1b7abee4ac9c2c0435994ba3 (patch) | |
tree | 521a982a2492626e65c07033f6d825ff28db753b /sys/src | |
parent | 1df8b3d2c15ae0e8acd4d4f341385d774213d292 (diff) |
games/nes: mmc3 chr inversion fixed
Diffstat (limited to 'sys/src')
-rw-r--r-- | sys/src/games/nes/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/games/nes/mem.c b/sys/src/games/nes/mem.c index 79297a977..69951a124 100644 --- a/sys/src/games/nes/mem.c +++ b/sys/src/games/nes/mem.c @@ -281,7 +281,7 @@ t: 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; |