Rework the bytecode format to use a much simplified setup: a six-bit timer with

the top two bits reserved for pulse and index state. This is actually smaller,
bandwidth-wise, than the old version, and may be smaller than the crunched
version.
This commit is contained in:
David Given
2020-03-14 18:58:43 +00:00
parent a401173f6d
commit fc2655ecd6
13 changed files with 139 additions and 90 deletions

View File

@@ -35,7 +35,7 @@ void AbstractDecoder::decodeToSectors(Track& track)
return;
if ((r == UNKNOWN_RECORD) || (r == DATA_RECORD))
{
fmr.readNextMatchingOpcode(F_OP_PULSE);
fmr.findEvent(F_BIT_PULSE);
continue;
}
@@ -56,7 +56,7 @@ void AbstractDecoder::decodeToSectors(Track& track)
r = advanceToNextRecord();
if (r != UNKNOWN_RECORD)
break;
if (fmr.readNextMatchingOpcode(F_OP_PULSE) == 0)
if (fmr.findEvent(F_BIT_PULSE) == 0)
break;
}
recordStart = fmr.tell();