summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/ap2_dsk.cpp
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2018-12-24 15:11:59 -0500
committer arbee <rb6502@users.noreply.github.com>2018-12-24 15:11:59 -0500
commit5f049f185db3920d6e4ecd4867b6ddc3fa4221ef (patch)
tree9985dc06045d6d0db6a34cbe4b815a7ff925f878 /src/lib/formats/ap2_dsk.cpp
parent73fd154a9ef1551aa2e90f82d976c53954b79ae0 (diff)
Fix (currently unused) 3.5" track calc for WOZ2 (nw)
Diffstat (limited to 'src/lib/formats/ap2_dsk.cpp')
-rw-r--r--src/lib/formats/ap2_dsk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/ap2_dsk.cpp b/src/lib/formats/ap2_dsk.cpp
index 445e8297d3c..3dac57cc859 100644
--- a/src/lib/formats/ap2_dsk.cpp
+++ b/src/lib/formats/ap2_dsk.cpp
@@ -1736,7 +1736,7 @@ bool a2_woz_format::load(io_generic *io, uint32_t form_factor, floppy_image *ima
} else if (woz_vers == 2) {
for (unsigned int trkid = 0; trkid != limit; trkid++) {
int head = is_35 && trkid >= 80 ? 1 : 0;
- int track = is_35 ? trkid % 80 : trkid / 4;
+ int track = is_35 ? trkid >> 1 : trkid / 4;
int subtrack = is_35 ? 0 : trkid & 3;
uint8_t idx = r8(img, off_tmap + trkid);