1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Disk II: Don't overwrite data bus when not asked to

Return DidNotLoad rather than 0xff from read_address on odd-numbered
addresses so that the data bus is not overwritten with 0xff on those
accesses.
This commit is contained in:
Ryan Carsten Schmidt 2023-12-05 10:03:52 -06:00
parent e9420fc48d
commit 01cf7462d5

View File

@ -294,7 +294,7 @@ int DiskII::read_address(int address) {
break;
}
decide_clocking_preference();
return (address & 1) ? 0xff : shift_register_;
return (address & 1) ? DidNotLoad : shift_register_;
}
void DiskII::set_activity_observer(Activity::Observer *observer) {