mirror of
https://github.com/trudnai/Steve2.git
synced 2025-02-08 18:30:48 +00:00
Adjusted Disk properties to work with the new instruction clock counter
This commit is contained in:
parent
386d3ea979
commit
49a9dff6da
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user