mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
Bunch of SNES changes, nw
This commit is contained in:
parent
c3a5dcfeb0
commit
edca1537c8
@ -804,6 +804,7 @@ WRITE8_HANDLER( snes_w_io )
|
||||
cpu_set_reg(state->m_maincpu, _5A22_FASTROM, data & 1);
|
||||
break;
|
||||
case TIMEUP: // IRQ Flag is cleared on both read and write
|
||||
device_set_input_line(state->m_maincpu, G65816_LINE_IRQ, CLEAR_LINE );
|
||||
snes_ram[TIMEUP] = 0;
|
||||
return;
|
||||
/* Following are read-only */
|
||||
|
@ -1903,7 +1903,10 @@ READ8_MEMBER( snes_state::snes_vram_read )
|
||||
if (h == 1362)
|
||||
res = m_snes_vram[offset];
|
||||
else
|
||||
{
|
||||
printf("%d %d VRAM read, CHECK!\n",h,v);
|
||||
res = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
res = m_snes_vram[offset];
|
||||
@ -1929,17 +1932,20 @@ WRITE8_MEMBER( snes_state::snes_vram_write )
|
||||
m_snes_vram[offset] = snes_open_bus_r(&space, 0);
|
||||
else
|
||||
{
|
||||
printf("%d %d VRAM write, CHECK!\n",h,v);
|
||||
//no write
|
||||
}
|
||||
}
|
||||
else if (v < snes_ppu.beam.last_visible_line)
|
||||
{
|
||||
printf("%d %d VRAM write, CHECK!\n",h,v);
|
||||
//no write
|
||||
}
|
||||
else if (v == snes_ppu.beam.last_visible_line)
|
||||
{
|
||||
if (h <= 4)
|
||||
{
|
||||
printf("%d %d VRAM write, CHECK!\n",h,v);
|
||||
//no write
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user