Previous 15994 Revisions Next

r5019 Sunday 14th June, 2009 at 09:44:41 UTC by Barry Rodewald
[FM7] Fixed handling of disks that didn't have 16 sectors per track.
[src/mess/formats]fm7_dsk.c

src/mess/formats/fm7_dsk.c
r5018r5019
9696   if(offset > tag->image_size)
9797      return FLOPPY_ERROR_SEEKERROR;
9898     
99   if(sector_index >= 16)
99   floppy_image_read(floppy,sector_hdr,offset,16);
100
101   if(sector_index >= sector_hdr[4])
100102      return FLOPPY_ERROR_SEEKERROR;
101103
102   floppy_image_read(floppy,sector_hdr,offset,16);
103
104104   if(sector_length)
105105      *sector_length = 256;
106106   if(cylinder)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team