git: 9front

Download patch

ref: b897741a1e81211c1f6e630b702bddb2307491e2
parent: 25b9e54dc071401e304848dbf8c6c81e6cdfdc6d
author: aiju <devnull@localhost>
date: Mon Mar 17 11:48:36 EDT 2014

games/snes: reset oam address on vblank

--- a/sys/src/games/snes/ppu.c
+++ b/sys/src/games/snes/ppu.c
@@ -757,6 +757,7 @@
 			reg[RDNMI] |= VBLANK;
 			if((reg[NMITIMEN] & VBLANK) != 0)
 				nmi = 2;
+			oamaddr = reg[0x2102] << 1 | (reg[0x2103] & 1) << 9;
 			if((reg[NMITIMEN] & AUTOJOY) != 0){
 				memwrite(0x4016, 1);
 				memwrite(0x4016, 0);
--