Previous 199869 Revisions Next

r26045 Thursday 7th November, 2013 at 20:54:04 UTC by smf
fixed mametesters 05357 [smf]
[src/emu/machine]idehd.c

trunk/src/emu/machine/idehd.c
r26044r26045
434434
435435      /* just set a timer */
436436      int new_lba = lba_address();
437      attotime seek_time;
437      int diff = abs(m_cur_lba - new_lba);
438      int total_sectors = m_num_cylinders * m_num_heads * m_num_sectors;
439      attotime seek_time = TIME_NO_SEEK_MULTISECTOR + ((TIME_SEEK_MULTISECTOR * diff) / total_sectors);
438440
439      if (new_lba == m_cur_lba || new_lba == m_cur_lba + 1)
440         start_busy(TIME_NO_SEEK_MULTISECTOR, PARAM_COMMAND);
441      else
442         start_busy(TIME_SEEK_MULTISECTOR, PARAM_COMMAND);
441      start_busy(seek_time, PARAM_COMMAND);
443442
444443      m_cur_lba = new_lba;
445444   }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team