From 8e26ff5b8dabdfe395954b3d1da6a22d8fcbaf16 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Sat, 11 Jun 2016 19:23:56 +1000 Subject: [PATCH] MT 06215 [Robbbert] --- src/mame/machine/micropolis.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/mame/machine/micropolis.cpp b/src/mame/machine/micropolis.cpp index a42c692718c..0508f22fe5e 100644 --- a/src/mame/machine/micropolis.cpp +++ b/src/mame/machine/micropolis.cpp @@ -220,7 +220,7 @@ READ8_MEMBER( micropolis_device::status_r ) READ8_MEMBER( micropolis_device::data_r ) { if (m_data_offset >= m_sector_length) - m_data_offset = 0; + return 0; return m_buffer[m_data_offset++]; } @@ -254,7 +254,7 @@ Command (bits 5,6,7) Options (bits 0,1,2,3,4) case 3: if (BIT(data, 0)) { - if (m_track < 77) + if (m_track < 76) { m_track++; direction = 1; @@ -276,17 +276,11 @@ Command (bits 5,6,7) Options (bits 0,1,2,3,4) } - m_status = STAT_RFC; - - if (BIT(data, 5)) - m_status |= STAT_READY; - - m_drive->floppy_drive_set_ready_state(1,0); - - - if (!m_track) + m_status = STAT_RFC | STAT_READY; + if (m_track == 0) m_status |= STAT_TRACK0; + m_drive->floppy_drive_set_ready_state(1,0); m_drive->floppy_drive_seek(direction); }