1
0
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:
Thomas Harte 2016-10-16 22:15:24 -04:00
parent b274d7008c
commit cc0b70828b

View File

@ -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: