games/snes: reset oam address on vblank

This commit is contained in:
aiju 2014-03-17 15:48:36 +01:00
parent 37c8651f98
commit 84d5bbc634

View file

@ -757,6 +757,7 @@ ppustep(void)
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);