summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--memdisk/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memdisk/setup.c b/memdisk/setup.c
index 187cbf95..1f8aa5d3 100644
--- a/memdisk/setup.c
+++ b/memdisk/setup.c
@@ -730,7 +730,7 @@ uint32_t setup(syscall_t cs_syscall, void *cs_bounce)
} else {
/* Update BIOS floppy disk count */
uint8_t equip = rdz_8(BIOS_EQUIP);
- int nflop = (equip & 1) ? (equip >> 6) : 0;
+ int nflop = (equip & 1) ? (equip >> 6)+1 : 0;
nflop++;
if ( nflop <= geometry->driveno )