From 9cd8093be3be1bae4c2c1db2989bd295d1fd3f0c Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 12 Aug 2023 13:52:06 +0100 Subject: [PATCH] floppy_seek: Extend positive cylinder range to cyl 1023 This is suitable for legacy HDDs. --- src/floppy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/floppy.c b/src/floppy.c index 6f18ff5..0b9c6ac 100644 --- a/src/floppy.c +++ b/src/floppy.c @@ -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) {