ref: b13425e2b077de3d2562a8d6ebe5b8f6ab537f3d
parent: 3e9650551ed048fe268871bc3700f5c22010bf43
author: aiju <devnull@localhost>
date: Sat Mar 22 07:11:51 EDT 2014
games/snes: silly bug
--- a/sys/src/games/snes/cpu.c
+++ b/sys/src/games/snes/cpu.c
@@ -597,10 +597,11 @@
}else
if((rA & v) == 0)
rP |= FLAGZ;
+ io();
if(set)
- rmw(a, v, v | rA);
+ memw816(a, v | rA);
else
- rmw(a, v, v & ~rA);
+ memw816(a, v & ~rA);
}
enum { COP = 0, BRK = 1, NMI = 3, IRQ = 5 };