IDE sector and sector count now return 0xFF (noise) on an unassigned IDE device, fixed TC430HX hanging with empty IDE channels.

This commit is contained in:
OBattler
2020-04-23 15:11:32 +02:00
parent da9c5a5e0b
commit 8b8ba3d5a7

View File

@@ -1815,11 +1815,12 @@ ide_readb(uint16_t addr, void *priv)
case 0x2: /* Sector count */
if (ide->type == IDE_ATAPI)
temp = ide->sc->phase;
else
else if (ide->type != IDE_NONE)
temp = ide->secount;
break;
case 0x3: /* Sector */
if (ide->type != IDE_NONE)
temp = (uint8_t) ide->sector;
break;