diff options
| author | 2018-05-26 22:39:50 +0200 | |
|---|---|---|
| committer | 2018-05-26 23:10:19 +0200 | |
| commit | 1253922938683d60e5375c51065f8952f0d8c46b (patch) | |
| tree | ad85f196fcfb29edbd2e79e8e001ef7952949c17 /src | |
| parent | 034ba66e3e8c8615a2550524f0d674cb8f9e5b92 (diff) | |
Forgot the comment (nw)
Diffstat (limited to 'src')
| -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))) |
