1
0
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:
Peter Evans 2018-02-11 20:36:41 -06:00
parent 3e2d8acacf
commit ba387c004f

View File

@ -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;
}