Fixed the READ NATIVE MAX command.

This commit is contained in:
OBattler 2016-08-10 05:48:33 +02:00
parent 9a1d5ba3a7
commit 455254064b

View file

@ -1889,7 +1889,7 @@ void callbackide(int ide_board)
snum = hdc[cur_ide[ide->board]].spt; snum = hdc[cur_ide[ide->board]].spt;
snum *= hdc[cur_ide[ide->board]].hpc; snum *= hdc[cur_ide[ide->board]].hpc;
snum *= hdc[cur_ide[ide->board]].tracks; snum *= hdc[cur_ide[ide->board]].tracks;
ide_set_sector(ide, snum); ide_set_sector(ide, snum - 1);
ide->atastat = READY_STAT | DSC_STAT; ide->atastat = READY_STAT | DSC_STAT;
ide_irq_raise(ide); ide_irq_raise(ide);
return; return;