Previous 15994 Revisions Next

r7819 Thursday 15th April, 2010 at 17:30:28 UTC by Angelo Salese
[SNES]: ext latch bit gets cleared when WRIO bit 7 is high
[src/mame/video]snes.c

src/mame/video/snes.c
r7818r7819
22262226      case STAT78:   /* PPU status flag and version number */
22272227         state->read_ophct = 0;
22282228         state->read_opvct = 0;
2229         value = snes_ram[offset];
2230         value |= (snes_ppu.ppu2_open_bus & 0x20);
2231         value |= (snes_ppu.ppu2_version & 0x0f);
2232         snes_ram[offset] = value;   // not sure if this is needed...
2233         snes_ppu.ppu2_open_bus = value;
2229         if(snes_ram[WRIO] & 0x80)
2230            snes_ram[STAT78] &= ~0x40; //clear ext latch if bit 7 of WRIO is set
2231         snes_ram[STAT78] = (snes_ram[STAT78] & ~0x2f) | (snes_ppu.ppu2_open_bus & 0x20) | (snes_ppu.ppu2_version & 0x0f);
2232         snes_ppu.ppu2_open_bus = snes_ram[STAT78];
22342233         return snes_ppu.ppu2_open_bus;
22352234   }
22362235

Previous 15994 Revisions Next


© 1998-2018 The MESS Team