FDC sector number is always reset when hitting end of track, regardless of whether operation is multi-track or not. Fixes floppy disc on Windows 2000.

This commit is contained in:
TomW 2015-08-26 20:32:39 +01:00
commit 5005e43b80

View file

@ -541,9 +541,9 @@ void fdc_callback()
fdc.sector++; fdc.sector++;
if (fdc.sector > fdc.params[5]) if (fdc.sector > fdc.params[5])
{ {
fdc.sector = 1;
if (fdc.command & 0x80) if (fdc.command & 0x80)
{ {
fdc.sector=1;
fdc.head ^= 1; fdc.head ^= 1;
if (!fdc.head) if (!fdc.head)
{ {
@ -581,9 +581,9 @@ void fdc_callback()
fdc.sector++; fdc.sector++;
if (fdc.sector > fdc.params[5]) if (fdc.sector > fdc.params[5])
{ {
fdc.sector = 1;
if (fdc.command & 0x80) if (fdc.command & 0x80)
{ {
fdc.sector=1;
fdc.head ^= 1; fdc.head ^= 1;
if (!fdc.head) if (!fdc.head)
{ {