games/snes: reset oam address on vblank
This commit is contained in:
parent
37c8651f98
commit
84d5bbc634
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue