Re: [hatari-devel] Zero divide in fdc.c |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Zero divide in fdc.c
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Fri, 12 Apr 2024 19:26:17 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1712949979; bh=iV4Snk8Exnj617WMXkIz6LZqq8mPjYDmNCuLTBsX7z4=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type: Content-Transfer-Encoding:From; b=XiX9kthwWDSarSgcQa41wVJ7rdBf3CYWeU6Rz8xMhlbr0XsODiPvNxIgjMUr2ZsOx yJ0K/IK6SV72E/rpoBBWTvJnr6X+4+UqjgMuD6ffkzIqEjXAGgVhwmBfWlCcak1iYi Oct3zTZ2xD9NyM+aw4eTZsekGMnZ/1UF2TGzjj0vTSWd3NNbWdTDkCY0LxDT5nqCn2 f/Z2W7w2cOFR2hKnzUsKCtcFEr9h3n95eZevAhZDvR9Zq4iXAfvGmz0Jd+1ycTwfXS jYek/I7T5Z/yf53w8KgLZe99iQprSuOQyw9VacSQm2QpUsmyAd2oEf9EFGpD+0uPIa dmdJyhEMAcpjw==
On 05/04/2024 10.25, Thorsten Otto wrote:
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.
Thanks, I fixed that now, there was indeed a sanity check missing here!
Thomas