Fix bug w.r.t. floppy count.
authorhpa <hpa>
Thu, 25 Aug 2005 00:03:35 +0000 (00:03 +0000)
committerhpa <hpa>
Thu, 25 Aug 2005 00:03:35 +0000 (00:03 +0000)
memdisk/setup.c

index 187cbf9..1f8aa5d 100644 (file)
@@ -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 )