ref: 37c8651f9836c277762bbe8fcbb92c84a46c4326
parent: 656b427bda6774ca1f4f5b309c1568cbec231f7f
parent: b1cd72cfef46f3362b6207e56a5581625c0c3a68
author: aiju <aiju@phicode.de>
date: Mon Mar 17 10:57:49 EDT 2014
merge
--- a/sys/src/games/snes/cpu.c
+++ b/sys/src/games/snes/cpu.c
@@ -857,7 +857,11 @@
rY &= 0xff;
nzx(rY);
return 2;
- case 0x89: bit(imm(0)); return 2+cyc;
+ case 0x89:
+ rP &= ~FLAGZ;
+ if((imm(0) & rA) == 0)
+ rP |= FLAGZ;
+ return 2+cyc;
case 0x8A: setra(rX); return 2+cyc;
case 0x8B: push8(rDB >> 16); return 3;
case 0x8C: memwx816(abso(0, 0), rY); return 4+cyc;