diff options
author | 2018-05-26 22:39:50 +0200 | |
---|---|---|
committer | 2018-05-26 22:39:50 +0200 | |
commit | 83a3b78fb3418ccd7a08838433f6efe9930a3b91 (patch) | |
tree | 80d9685aa3b4bb60db0558d99a6ad93aeedc0a63 | |
parent | de919271fef7b0378e7d3a4baa800bc8d3952244 (diff) |
Forgot the comment (nw)
-rw-r--r-- | src/lib/formats/flopimg.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<uint32_t> &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))) |