summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/video/nes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/video/nes.c')
-rw-r--r--src/mess/video/nes.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/mess/video/nes.c b/src/mess/video/nes.c
index 3c898d58b1b..077f4efe3a2 100644
--- a/src/mess/video/nes.c
+++ b/src/mess/video/nes.c
@@ -42,18 +42,21 @@ UINT32 nes_state::screen_update_nes(screen_device &screen, bitmap_ind16 &bitmap,
if ((m_cartslot && m_cartslot->exists() && (m_cartslot->get_pcb_id() == STD_DISKSYS)) // first scenario = disksys in m_cartslot (= famicom)
|| m_disk) // second scenario = disk via fixed internal disk option (fds & famitwin)
{
- // latch this input so it doesn't go at warp speed
- if ((m_io_disksel->read_safe(0) & 0x01) && (!m_last_frame_flip))
+ if (m_io_disksel)
{
- if (m_disk)
- m_disk->disk_flip_side();
- else
- m_cartslot->disk_flip_side();
- m_last_frame_flip = 1;
+ // latch this input so it doesn't go at warp speed
+ if ((m_io_disksel->read() & 0x01) && (!m_last_frame_flip))
+ {
+ if (m_disk)
+ m_disk->disk_flip_side();
+ else
+ m_cartslot->disk_flip_side();
+ m_last_frame_flip = 1;
+ }
+
+ if (!(m_io_disksel->read() & 0x01))
+ m_last_frame_flip = 0;
}
-
- if (!(m_io_disksel->read_safe(1) & 0x01))
- m_last_frame_flip = 0;
}
return 0;
}