diff options
author | aiju <devnull@localhost> | 2014-03-17 15:48:36 +0100 |
---|---|---|
committer | aiju <devnull@localhost> | 2014-03-17 15:48:36 +0100 |
commit | 84d5bbc6340856d85cfc498ffce91e90be90bf18 (patch) | |
tree | d8fae7fe785560e72deddf895659728341455eba /sys/src/games | |
parent | 37c8651f9836c277762bbe8fcbb92c84a46c4326 (diff) |
games/snes: reset oam address on vblank
Diffstat (limited to 'sys/src/games')
-rw-r--r-- | sys/src/games/snes/ppu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/games/snes/ppu.c b/sys/src/games/snes/ppu.c index 5edc52f5e..d88cc2044 100644 --- a/sys/src/games/snes/ppu.c +++ b/sys/src/games/snes/ppu.c @@ -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); |