1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-06 01:28:57 +00:00

Ensured there's no such thing as a zero-cycle operation, even if i don't yet know exactly what I should be doing.

This commit is contained in:
Thomas Harte 2016-11-25 21:24:25 +08:00
parent 8be81f6ebd
commit d5f9e0aa3b

View File

@ -261,6 +261,7 @@ void WD1770::posit_event(Event new_event_type)
status_ &= ~Flag::Busy;
index_hole_count_ = 0;
WAIT_FOR_EVENT(Event::Command);
WAIT_FOR_TIME(1); // TODO: what should the time cost here really be?
printf("Starting %02x\n", command_);
status_ |= Flag::Busy;
if(!(command_ & 0x80)) goto begin_type_1;