mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 18:30:21 +00:00
Fixed: tags go first, then data.
This commit is contained in:
parent
05c2854dbc
commit
756641e837
@ -138,18 +138,19 @@ std::shared_ptr<::Storage::Disk::Track> DiskCopy42::get_track_at_position(::Stor
|
||||
for(int c = 0; c < included_sectors.length; ++c) {
|
||||
uint8_t sector_plus_tags[524];
|
||||
|
||||
// Copy in the sector body.
|
||||
memcpy(sector_plus_tags, sector, 512);
|
||||
sector += 512;
|
||||
|
||||
// Copy in the tags, if provided; otherwise generate them.
|
||||
if(tags) {
|
||||
memcpy(§or_plus_tags[512], tags, 12);
|
||||
memcpy(sector_plus_tags, tags, 12);
|
||||
tags += 12;
|
||||
} else {
|
||||
// TODO: generate tags.
|
||||
// TODO: fill in tags properly.
|
||||
memset(sector_plus_tags, 0, 12);
|
||||
}
|
||||
|
||||
// Copy in the sector body.
|
||||
memcpy(§or_plus_tags[12], sector, 512);
|
||||
sector += 512;
|
||||
|
||||
// NB: sync lengths below are identical to those for
|
||||
// the Apple II, as I have no idea whatsoever what they
|
||||
// should be.
|
||||
|
Loading…
Reference in New Issue
Block a user