mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-21 23:29:16 +00:00
We should be dividing, not using modulus
This commit is contained in:
parent
3e2d8acacf
commit
ba387c004f
@ -223,7 +223,7 @@ apple2_dd_position(apple2dd *drive)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int track_offset = (drive->track_pos % 2) * ENC_ETRACK;
|
||||
int track_offset = (drive->track_pos / 2) * ENC_ETRACK;
|
||||
return track_offset + drive->sector_pos;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user