mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
Forgot the comment (nw)
This commit is contained in:
parent
de919271fe
commit
83a3b78fb3
@ -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);
|
std::vector<uint32_t> &dest = image->get_buffer(track, head, subtrack);
|
||||||
dest.clear();
|
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;
|
int inversions = 0;
|
||||||
for(int i=0; i != track_size; i++)
|
for(int i=0; i != track_size; i++)
|
||||||
if(trackbuf[i >> 3] & (0x80 >> (i & 7)))
|
if(trackbuf[i >> 3] & (0x80 >> (i & 7)))
|
||||||
|
Loading…
Reference in New Issue
Block a user