mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-16 16:28:59 +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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user