1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Corrected: now maps in the proper direction.

This commit is contained in:
Thomas Harte 2018-05-19 22:50:33 -04:00
parent a09fb01d71
commit 46fae1a761

View File

@ -102,7 +102,7 @@ void AppleDSK::set_tracks(const std::map<Track::Address, std::shared_ptr<Track>>
for(const auto &sector_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);
}