mirror of
https://github.com/trudnai/Steve2.git
synced 2025-02-10 01:31:37 +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;
|
uint16_t usedBytes = woz_trks[track].bytes_used < WOZ_TRACK_BYTE_COUNT ? woz_trks[track].bytes_used : WOZ_TRACK_BYTE_COUNT;
|
||||||
if ( usedBytes ) {
|
if ( usedBytes ) {
|
||||||
if ( clkelpased > 100 ) {
|
if ( clkelpased > 120 ) {
|
||||||
// printf("NEED SYNC : %llu\n", clkelpased);
|
// printf("NEED SYNC : %llu\n", clkelpased);
|
||||||
bitOffset = (clkelpased >> 2) & 7;
|
bitOffset = (clkelpased >> 2) & 7;
|
||||||
trackOffset += ((clkelpased >> 5) +100) % usedBytes;
|
trackOffset += ((clkelpased >> 5) +80) % usedBytes;
|
||||||
WOZread.data = woz_trks[track].data[trackOffset];
|
WOZread.data = woz_trks[track].data[trackOffset];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user