Clock of NT 3.1 now renders correctly with its S3 2.3 drivers.

Fix for the MPU-401 that was preventing certain SB16 drivers for Windows 3.1 and NT 3.1 to work properly.
This commit is contained in:
TC1995
2017-11-23 19:37:08 +01:00
parent 1cd4018055
commit bf08b0c66b
2 changed files with 4 additions and 4 deletions

View File

@@ -169,7 +169,6 @@ static void MPU401_WriteCommand(mpu_t *mpu, uint8_t val)
if (mpu->state.reset)
{
mpu->state.cmd_pending=val+1;
return;
}
if (val<=0x2f)
@@ -678,9 +677,8 @@ static uint8_t mpu401_read(uint16_t addr, void *p)
break;
case 1: //Read Status
ret = 0x3f; /* Bits 6 and 7 clear */
if (mpu->state.cmd_pending) ret|=STATUS_OUTPUT_NOT_READY;
if (!mpu->queue_used) ret|=STATUS_INPUT_NOT_READY;
if (mpu->state.cmd_pending) ret=STATUS_OUTPUT_NOT_READY;
if (!mpu->queue_used) ret=STATUS_INPUT_NOT_READY;
pclog("Read Status (0x331) %x\n", ret);
break;
}