mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
Corrected: now maps in the proper direction.
This commit is contained in:
parent
a09fb01d71
commit
46fae1a761
@ -102,7 +102,7 @@ void AppleDSK::set_tracks(const std::map<Track::Address, std::shared_ptr<Track>>
|
||||
for(const auto §or_pair: sector_map) {
|
||||
size_t target_address = sector_pair.second.address.sector;
|
||||
if(target_address != 15) {
|
||||
target_address = (target_address * (is_prodos_ ? 2 : 13)) % 15;
|
||||
target_address = (target_address * (is_prodos_ ? 8 : 7)) % 15;
|
||||
}
|
||||
memcpy(&track_contents[target_address*256], sector_pair.second.data.data(), bytes_per_sector);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user