diff options
author | aiju <devnull@localhost> | 2014-03-15 10:06:18 +0100 |
---|---|---|
committer | aiju <devnull@localhost> | 2014-03-15 10:06:18 +0100 |
commit | 55ea9a80b19c24851131d8f78d163b3e20920049 (patch) | |
tree | 69daeaf7cf8f3a6840233368faf5060936b82377 | |
parent | 442d17ab18c3650bc4f554e16417f1d68d44d53a (diff) | |
download | plan9front-55ea9a80b19c24851131d8f78d163b3e20920049.tar.xz |
games/snes: fix flickering sprite bug
-rw-r--r-- | sys/src/games/snes/mem.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/src/games/snes/mem.c b/sys/src/games/snes/mem.c index 6b6fb0286..9fd17aa86 100644 --- a/sys/src/games/snes/mem.c +++ b/sys/src/games/snes/mem.c @@ -203,12 +203,10 @@ regwrite(u16int p, u8int v) } switch(p){ case 0x2102: - oamaddr &= 0x200; - oamaddr |= v << 1; + oamaddr = (reg[0x2103] & 1) << 9 | v << 1; break; case 0x2103: - oamaddr &= 0x1fe; - oamaddr |= (v & 1) << 9; + oamaddr = (v & 1) << 9 | reg[0x2102]; break; case 0x2104: if((oamaddr & 1) == 0) |