[hatari-devel] Zero divide in fdc.c

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


With Falcon emulation and TOS 4.04, i get a zero divide (and core dump) in fdc.c:1531:


return ( ( EmulationDrives[Drive].nImageBytes / NUMBYTESPERSECTOR ) / SectorsPerTrack ) / SidesPerDisk;


SectorsPerTrack is zero at this point. Image is an empty 1.4MB empty floppy than can be accessed without error in EmuTOS.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/