shithub: riscv

Download patch

ref: 84d5bbc6340856d85cfc498ffce91e90be90bf18
parent: 37c8651f9836c277762bbe8fcbb92c84a46c4326
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);