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:
parent
b53c7d32f9
commit
5005e43b80
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue