From e23a3e4b632a4ff577cee886a156ea1e12d90986 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Sun, 4 Feb 2018 14:19:40 -0600 Subject: [PATCH] Use macro definitions for track/sector length --- src/apple2.enc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apple2.enc.c b/src/apple2.enc.c index 620ebe8..5bd877f 100644 --- a/src/apple2.enc.c +++ b/src/apple2.enc.c @@ -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;