mirror of
https://github.com/pevans/erc-c.git
synced 2025-01-22 05:30:43 +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:
parent
4765dab912
commit
3e2d8acacf
@ -223,17 +223,8 @@ apple2_dd_position(apple2dd *drive)
|
||||
return 0;
|
||||
}
|
||||
|
||||
// This is a normative DOS 3.3 / ProDOS disk. (Except ProDOS is
|
||||
// separated into 512 byte blocks which _shouldn't_ matter for our
|
||||
// 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;
|
||||
int track_offset = (drive->track_pos % 2) * ENC_ETRACK;
|
||||
return track_offset + drive->sector_pos;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user