From b13425e2b077de3d2562a8d6ebe5b8f6ab537f3d Mon Sep 17 00:00:00 2001 From: aiju Date: Sat, 22 Mar 2014 11:11:51 +0100 Subject: [PATCH] games/snes: silly bug --- sys/src/games/snes/cpu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/src/games/snes/cpu.c b/sys/src/games/snes/cpu.c index 4dd1109a7..c52683e80 100644 --- a/sys/src/games/snes/cpu.c +++ b/sys/src/games/snes/cpu.c @@ -597,10 +597,11 @@ tsb(u32int a, int set) }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 };