1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-19 19:16:34 +00:00

Started turning the 1540 into an actual disk drive.

This commit is contained in:
Thomas Harte
2016-07-29 11:03:09 -04:00
parent 6532b3a8c8
commit 89a1881fef
13 changed files with 104 additions and 33 deletions
+2 -2
View File
@@ -14,9 +14,9 @@ using namespace Storage;
TimedEventLoop::TimedEventLoop(unsigned int input_clock_rate) :
_input_clock_rate(input_clock_rate) {}
void TimedEventLoop::run_for_cycles(unsigned int number_of_cycles)
void TimedEventLoop::run_for_cycles(int number_of_cycles)
{
_time_into_interval += (unsigned int)_stepper->step(number_of_cycles);
_time_into_interval += (unsigned int)_stepper->step((uint64_t)number_of_cycles);
while(_time_into_interval >= _event_interval.length)
{
process_next_event();