From 83a3b78fb3418ccd7a08838433f6efe9930a3b91 Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Sat, 26 May 2018 22:39:50 +0200 Subject: [PATCH] Forgot the comment (nw) --- src/lib/formats/flopimg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/formats/flopimg.cpp b/src/lib/formats/flopimg.cpp index e6890ea7af3..3a89cb93016 100644 --- a/src/lib/formats/flopimg.cpp +++ b/src/lib/formats/flopimg.cpp @@ -1684,6 +1684,10 @@ void floppy_image_format_t::generate_track_from_bitstream(int track, int head, c std::vector &dest = image->get_buffer(track, head, subtrack); dest.clear(); + // If the bitstream has an odd number of inversions, one needs to be added. + // Put in in the middle of the half window after the center inversion, where + // any fdc ignores it. + int inversions = 0; for(int i=0; i != track_size; i++) if(trackbuf[i >> 3] & (0x80 >> (i & 7)))