mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
Increased logging; discovered I was packing events together too closely. Now getting some zeros.
This commit is contained in:
parent
fead524eb5
commit
6ee784a893
@ -100,9 +100,9 @@ void DiskDrive::process_next_event()
|
||||
_pll->add_pulse();
|
||||
break;
|
||||
case Track::Event::IndexHole:
|
||||
printf("[%d cycles]\n", _cycles_since_index_hole);
|
||||
_cycles_since_index_hole = 0;
|
||||
process_index_hole();
|
||||
printf("\n");
|
||||
break;
|
||||
}
|
||||
get_next_event();
|
||||
|
@ -39,7 +39,7 @@ PCMTrack::Event PCMTrack::get_next_event()
|
||||
// TODO: should I account for the converse bit ordering? Or can I assume MSB first?
|
||||
int bit = segment_data[_bit_pointer >> 3] & (0x80 >> (_bit_pointer&7));
|
||||
_bit_pointer++;
|
||||
_next_event.length.length += clock_multiplier;
|
||||
_next_event.length.length += clock_multiplier * _segments[_segment_pointer].length_of_a_bit.length;
|
||||
|
||||
if(bit) return _next_event;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user