mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-23 20:29:42 +00:00
Removed attempt at multiple-file logic, at least for the time being. Starting to wonder whether I actually need anything beyond a literal streaming of bytes?
This commit is contained in:
parent
b274d7008c
commit
cc0b70828b
@ -106,19 +106,20 @@ Tape::Pulse OricTAP::virtual_get_next_pulse()
|
||||
|
||||
case Data:
|
||||
next_byte = (uint8_t)fgetc(_file);
|
||||
_phase_counter++;
|
||||
if(_phase_counter == (_data_end_address - _data_start_address))
|
||||
{
|
||||
_phase_counter = 0;
|
||||
if((size_t)ftell(_file) == _file_length)
|
||||
{
|
||||
_next_phase = End;
|
||||
}
|
||||
else
|
||||
{
|
||||
_next_phase = LeadIn;
|
||||
}
|
||||
}
|
||||
if(feof(_file)) _phase = End;
|
||||
// _phase_counter++;
|
||||
// if(_phase_counter == (_data_end_address - _data_start_address)+1)
|
||||
// {
|
||||
// _phase_counter = 0;
|
||||
// if((size_t)ftell(_file) == _file_length)
|
||||
// {
|
||||
// _next_phase = End;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// _next_phase = LeadIn;
|
||||
// }
|
||||
// }
|
||||
break;
|
||||
|
||||
case End:
|
||||
|
Loading…
Reference in New Issue
Block a user