mirror of
https://github.com/pevans/erc-c.git
synced 2025-08-15 03:27:19 +00:00
The same track/sector method works for all images
Particularly so as the data segment is now the 6-and-2 encoded form, which we either encode from DOS 3.3/ProDOS, or use literally from NIB files.
This commit is contained in:
@@ -223,17 +223,8 @@ apple2_dd_position(apple2dd *drive)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is a normative DOS 3.3 / ProDOS disk. (Except ProDOS is
|
int track_offset = (drive->track_pos % 2) * ENC_ETRACK;
|
||||||
// separated into 512 byte blocks which _shouldn't_ matter for our
|
return track_offset + drive->sector_pos;
|
||||||
// purposes but let's not talk about that here do-de-doo.)
|
|
||||||
if (drive->data->size == _140K_) {
|
|
||||||
int track_offset;
|
|
||||||
|
|
||||||
track_offset = (drive->track_pos % 2) * ENC_ETRACK;
|
|
||||||
return track_offset + drive->sector_pos;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user