shithub: riscv

Download patch

ref: 49ecfb6689b2a2dbe465dd8a98d5448add57831b
parent: 26777f4cefb1dc5a19da585cb38e08a7db9f143a
author: aiju <devnull@localhost>
date: Fri Mar 21 10:28:10 EDT 2014

games/snes: minor cpu bug fix

--- a/sys/src/games/snes/cpu.c
+++ b/sys/src/games/snes/cpu.c
@@ -756,7 +756,7 @@
 			rA--;
 		nz(rA);
 		return 2;
-	case 0x3B: nz(rA = rS); return 2;
+	case 0x3B: nz16(rA = rS); return 2;
 	case 0x3C: bit(mem816(abso(0, 1), 0)); return 4+cyc;
 	case 0x3D: nz(rA &= mem816(abso(0, 1), 0xFF00)); return 4+cyc;
 	case 0x3E: rol(abso(0, 1)); return 7+cyc;