Skip to content

Commit

Permalink
floppy_seek: Extend positive cylinder range to cyl 1023
Browse files Browse the repository at this point in the history
This is suitable for legacy HDDs.
  • Loading branch information
keirf committed Aug 17, 2023
1 parent c5b6894 commit 9cd8093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ static uint8_t floppy_seek(int cyl)
return rc;
}

if ((cyl < (u->is_flippy ? -8 : 0)) || (cyl > 100))
if ((cyl < (u->is_flippy ? -8 : 0)) || (cyl >= 1024))
return ACK_BAD_CYLINDER;

if (u->cyl < cyl) {
Expand Down

0 comments on commit 9cd8093

Please sign in to comment.