Floppy images with more than 1024 bytes per sector and a valid BPB are now loaded correctly;

Fixed DOS boxes in Windows 9x with the Mach64/GX;
Applied mainline PCem commit that fixed the ET4000/W32p;
Finished the removal of the SVGA 8 MB maximum VRAM limit.
This commit is contained in:
OBattler
2016-07-27 04:32:08 +02:00
parent 9aa0cf046f
commit ff633c29ea
5 changed files with 116 additions and 77 deletions

View File

@@ -362,6 +362,8 @@ void img_load(int drive, char *fn)
/* The rest we just set directly from the BPB. */
img[drive].sectors = bpb_sectors;
img[drive].sides = bpb_sides;
/* The sector size. */
img[drive].sector_size = bpb_bps;
/* Now we calculate bytes per track, which is bpb_sectors * bpb_bps. */
bpt = (uint32_t) bpb_sectors * (uint32_t) bpb_bps;
/* Now we should be able to calculate the bit rate. */