1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 03:32:01 +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: case Data:
next_byte = (uint8_t)fgetc(_file); next_byte = (uint8_t)fgetc(_file);
_phase_counter++; if(feof(_file)) _phase = End;
if(_phase_counter == (_data_end_address - _data_start_address)) // _phase_counter++;
{ // if(_phase_counter == (_data_end_address - _data_start_address)+1)
_phase_counter = 0; // {
if((size_t)ftell(_file) == _file_length) // _phase_counter = 0;
{ // if((size_t)ftell(_file) == _file_length)
_next_phase = End; // {
} // _next_phase = End;
else // }
{ // else
_next_phase = LeadIn; // {
} // _next_phase = LeadIn;
} // }
// }
break; break;
case End: case End: