From 455254064bf4d0dc45365e78eee5f0f1d7e60fcf Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 10 Aug 2016 05:48:33 +0200 Subject: [PATCH] Fixed the READ NATIVE MAX command. --- src/ide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ide.c b/src/ide.c index 44facd77a..01f250ebf 100644 --- a/src/ide.c +++ b/src/ide.c @@ -1889,7 +1889,7 @@ void callbackide(int ide_board) snum = hdc[cur_ide[ide->board]].spt; snum *= hdc[cur_ide[ide->board]].hpc; 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_irq_raise(ide); return;