mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-26 21:29:27 +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();
|
_pll->add_pulse();
|
||||||
break;
|
break;
|
||||||
case Track::Event::IndexHole:
|
case Track::Event::IndexHole:
|
||||||
|
printf("[%d cycles]\n", _cycles_since_index_hole);
|
||||||
_cycles_since_index_hole = 0;
|
_cycles_since_index_hole = 0;
|
||||||
process_index_hole();
|
process_index_hole();
|
||||||
printf("\n");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
get_next_event();
|
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?
|
// 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));
|
int bit = segment_data[_bit_pointer >> 3] & (0x80 >> (_bit_pointer&7));
|
||||||
_bit_pointer++;
|
_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;
|
if(bit) return _next_event;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user