Adjusted Disk properties to work with the new instruction clock counter

This commit is contained in:
tudnai 2020-05-06 20:07:09 -07:00
parent a91e8239ae
commit d2a37ca1d2
1 changed files with 2 additions and 2 deletions

View File

@ -256,10 +256,10 @@ uint8_t woz_read() {
uint16_t usedBytes = woz_trks[track].bytes_used < WOZ_TRACK_BYTE_COUNT ? woz_trks[track].bytes_used : WOZ_TRACK_BYTE_COUNT;
if ( usedBytes ) {
if ( clkelpased > 100 ) {
if ( clkelpased > 120 ) {
// printf("NEED SYNC : %llu\n", clkelpased);
bitOffset = (clkelpased >> 2) & 7;
trackOffset += ((clkelpased >> 5) +100) % usedBytes;
trackOffset += ((clkelpased >> 5) +80) % usedBytes;
WOZread.data = woz_trks[track].data[trackOffset];
}