Merge pull request #1578 from skidau/Fix-Fast-Disc-Speed

Fixed the fast disc speed option (immediately service the interrupt instead of going through the scheduler).
This commit is contained in:
skidau 2014-11-20 19:24:58 +11:00
commit da962a3d2b
1 changed files with 13 additions and 2 deletions

View File

@ -1046,9 +1046,20 @@ void ExecuteCommand()
break;
}
if (ticks_until_TC)
{
// The transfer is finished after a delay
CoreTiming::ScheduleEvent((int)ticks_until_TC, tc);
}
else
{
// transfer is done
m_DICR.TSTART = 0;
m_DILENGTH.Length = 0;
GenerateDIInterrupt(INT_TCINT);
g_ErrorCode = 0;
}
}
// Simulates the timing aspects of reading data from a disc.
// Sets g_last_read_offset and g_last_read_time, and returns ticks_until_TC.