]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/games/snes/mem.c
games/snes: minor oam bugs
[plan9front.git] / sys / src / games / snes / mem.c
index 1c8728e99570543e17a003ca96ee0fc3f976000c..a9156bc25f3238e1826e5d41241f9c72e1d29f70 100644 (file)
@@ -231,7 +231,7 @@ regwrite(u16int p, u8int v)
                oamaddr = (reg[0x2103] & 1) << 9 | v << 1;
                break;
        case 0x2103:
-               oamaddr = (v & 1) << 9 | reg[0x2102];
+               oamaddr = (v & 1) << 9 | reg[0x2102] << 1;
                break;
        case 0x2104:
                if((oamaddr & 1) == 0)