shithub: riscv

Download patch

ref: 88fbe05ee9a178b925d44d02a6c9faf994f0a91f
parent: af8c91cf6d30628c17c7d7cb9733dee9e7488ab0
author: aiju <devnull@localhost>
date: Sat Feb 22 14:50:31 EST 2014

games/nes: mapper 7 fix

--- a/sys/src/games/nes/mem.c
+++ b/sys/src/games/nes/mem.c
@@ -227,7 +227,7 @@
 }
 
 static void
-mmc7(int p, u8int v)
+axrom(int p, u8int v)
 {
 	static int b;
 
@@ -245,6 +245,8 @@
 		case RSTR:
 			b = get8();
 			break;
+		case SCAN:
+			return;
 		default:
 			nope(p);
 			return;
@@ -257,7 +259,7 @@
 	[0] nrom,
 	[1] mmc1,
 	[4] mmc3,
-	[7] mmc7,
+	[7] axrom,
 };
 
 static void