mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-26 11:49:19 +00:00
dynamically load based on reading bits
This commit is contained in:
parent
f66049ce8e
commit
d655e9a1ba
@ -204,10 +204,12 @@ bool Woz::skipByte(uint8_t datatrack)
|
|||||||
uint8_t Woz::nextDiskBit(uint8_t datatrack)
|
uint8_t Woz::nextDiskBit(uint8_t datatrack)
|
||||||
{
|
{
|
||||||
if (!tracks[datatrack].trackData) {
|
if (!tracks[datatrack].trackData) {
|
||||||
fprintf(stderr, "ERROR: nextDiskBit was called without the track being cached, and it can't possibly know which QT to load it from\n");
|
loadMissingTrackFromImage(datatrack);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!tracks[datatrack].trackData)
|
||||||
|
return 0;
|
||||||
|
|
||||||
static uint8_t head_window = 0;
|
static uint8_t head_window = 0;
|
||||||
head_window <<= 1;
|
head_window <<= 1;
|
||||||
head_window |= getNextWozBit(datatrack);
|
head_window |= getNextWozBit(datatrack);
|
||||||
|
Loading…
Reference in New Issue
Block a user