1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-11-27 20:51:17 +00:00

Use macro definitions for track/sector length

This commit is contained in:
Peter Evans 2018-02-04 14:19:40 -06:00
parent 8469c09161
commit e23a3e4b63

View File

@ -89,7 +89,7 @@ int
apple2_enc_track(vm_segment *dest, vm_segment *src,
int doff, int track)
{
int soff = track * 4096;
int soff = track * ENC_DTRACK;
int orig = doff;
int sect, i;
@ -106,7 +106,7 @@ apple2_enc_track(vm_segment *dest, vm_segment *src,
doff += apple2_enc_sector(dest, src, doff, soff);
// We're moving here in 256-byte blocks
soff += 256;
soff += ENC_DSECTOR;
}
return doff - orig;