revert wrapping changed in recent edits

This commit is contained in:
Akamaki
2025-02-15 19:03:42 +09:00
parent 33b149e521
commit 59c3bb794f

View File

@@ -1284,8 +1284,7 @@ fdc_read(uint16_t addr, void *priv)
ret |= 0x40; ret |= 0x40;
if (fdc->fintr || fdc->reset_stat) /* INTR */ if (fdc->fintr || fdc->reset_stat) /* INTR */
ret |= 0x80; ret |= 0x80;
} } else
else
ret = 0xff; ret = 0xff;
break; break;
case 1: /* STB */ case 1: /* STB */
@@ -1360,8 +1359,7 @@ fdc_read(uint16_t addr, void *priv)
else else
ret = 0x00; ret = 0x00;
/* PS/55 POST throws an error and halt if ret = 1 or 2, somehow. */ /* PS/55 POST throws an error and halt if ret = 1 or 2, somehow. */
} } else if (!fdc->enh_mode)
else if (!fdc->enh_mode)
ret = 0x20; ret = 0x20;
else else
ret = fdc->rwc[drive] << 4; ret = fdc->rwc[drive] << 4;