Fixed in IDE and 4x0 code.

This commit is contained in:
OBattler
2020-03-24 02:24:49 +01:00
parent 3502a68919
commit 937befa4e7
2 changed files with 4 additions and 5 deletions

View File

@@ -162,10 +162,9 @@ i4x0_write(int func, int addr, uint8_t val, void *priv)
case INTEL_440FX:
regs[0x07] &= ~(val & 0xf9);
break;
case INTEL_440BX: case INTEL_440ZX
regs[0x07] &= ~(val & 0xf0);
break;
case INTEL_440BX: case INTEL_440ZX:
regs[0x07] &= ~(val & 0xf0);
break;
}
break;
case 0x0d:

View File

@@ -1953,7 +1953,7 @@ ide_callback(void *priv)
((ide->command >= WIN_SEEK) && (ide->command <= 0x7F))) {
if (ide->type != IDE_HDD)
goto abort_cmd;
if ((ide->command >= WIN_SEEK) && (ide->command <= 0x7F) && !ide_lba) {
if ((ide->command >= WIN_SEEK) && (ide->command <= 0x7F) && !ide->lba) {
if ((ide->cylinder >= ide->tracks) || (ide->head >= ide->hpc) ||
!ide->sector || (ide->sector > ide->spt))
goto id_not_found;