585 Commits

Author SHA1 Message Date
Jonathan Campbell
e3d89d3dc5 KEYB.COM should be enabled on all but PC-98, my mistake. The font loading code should only work in EGA/VGA mode 2018-04-23 12:14:33 -07:00
Jonathan Campbell
e52e4cba9a Restrict KEYB.COM to EGA/VGA/SVGA video only. KEYB.COM does not work properly with CGA/MDA/Hercules/Tandy/PCjr as implemented. 2018-04-23 12:05:27 -07:00
Shane Krueger
3b5a774f83 Change to allow MountImageNone to be used in a loop properly 2018-04-23 10:24:45 -04:00
Shane Krueger
0b74fb9ba8 Memory leak fix 2018-04-23 02:16:13 -04:00
Jonathan Campbell
e43e64f583 Fix IMGMOUNT to allow multiple disk images with -fs none and multiple disk images 2018-04-22 22:57:33 -07:00
Jonathan Campbell
b3d68fd26a BOOT: If mounting one disk image to a drive, do it directly and not through the swap list. For multiple images, use the swap list only if no other drive has multiple attached 2018-04-22 22:38:47 -07:00
Jonathan Campbell
461e86d2b3 BOOT: If multiple images given and the floppy swap is already set to a drive, reject boot command. Add -swap-one-drive option to specify that disk swapping is restricted to that drive, if desired. If not specified, the drive is not set and floppy swapping retains the behavior of DOSBox SVN and DOSBox-X prior to this change 2018-04-22 22:06:06 -07:00
Jonathan Campbell
13b2735822 compiler warning about char* string assign 2018-04-22 21:54:09 -07:00
Shane Krueger
602c4b1dba imgmount multiple file loading update 2018-04-22 23:54:31 -04:00
Shane Krueger
9d40e9a9ca Fix crash when imgmount invalid files 2018-04-22 22:17:31 -04:00
Shane Krueger
ddae7ee251 Dynamic VHD support 2018-04-22 18:26:43 -04:00
Shane Krueger
2b61e3b077 Write 'Dynamic VHD unsupported' error to stdout 2018-04-21 15:28:04 -04:00
Jonathan Campbell
57e5ff1353 IMGMOUNT and BIOS disk emulation: Do not apply IBM PC style geometry translation in PC-98 mode. PC-98 does not have a 1024-cylinder limit. Prior to this fix, HDI images with > 1024 cylinders would not boot correctly due to the C/H/S dependent format of the IPL1 partition table 2018-04-16 00:51:13 -07:00
Jonathan Campbell
841886dfcd BOOT in PC-98 mode is basically functional now, remove --force requirement and "not supported yet" message to enable more mainstream usage of the command 2018-04-15 20:24:04 -07:00
Jonathan Campbell
3223b4af6e Fix BOOT command and PC-98 hard disk setup 2018-04-15 10:29:51 -07:00
Jonathan Campbell
5544db2a33 BOOT: More fixes 2018-04-15 09:27:13 -07:00
Jonathan Campbell
8b6c132e2c BOOT: Use the drive letter in PC-98 boot 2018-04-15 09:26:37 -07:00
Jonathan Campbell
5a235ead63 PC-98: Add SCSI/SASI hard disk BIOS emulation to INT 1Bh. MS-DOS HDI images now boot in PC-98 mode 2018-04-15 09:22:54 -07:00
Jonathan Campbell
4a5b63b35f PC-98: MS-DOS boot sector behavior suggests the BIOS runs the boot sector with CALL FAR and the boot sector can return to BIOS via RETF, so put something on the stack to allow the boot sector to RETF without crashing 2018-04-14 22:38:05 -07:00
Shane Krueger
54197a7560 Update new code to use IS_PC98_ARCH definition 2018-03-25 14:21:51 -04:00
Shane Krueger
c90c31789a Undo functional change introduced in pull request 625 in boot command 2018-03-25 14:20:22 -04:00
Shane Krueger
5cb34b4508 imgmount will attached mounted floppies to the PC-98 bios no matter what drive letter was specified 2018-03-25 14:06:20 -04:00
Jonathan Campbell
13f4c43ea5 Fix NULL vs integer comparison mistakes 2018-03-20 01:45:02 -07:00
Shane Krueger
86a6e21ecf Ramdrives will make floppies when logical to do so 2018-03-18 21:35:08 -04:00
Shane Krueger
66774e6e75 Bug fix for mounting ramdisk as B: while booting off A: 2018-03-18 20:43:31 -04:00
Shane Krueger
224d93c532 Allow ramdisk to format as floppy 2018-03-18 15:35:08 -04:00
Shane Krueger
e882da9184 Fix bug when imgmounting floppies not at A: or B: 2018-03-18 14:56:30 -04:00
Shane Krueger
6954b8ebdc In imgmount, enhance parsing of size parameter, added chs parameter, and enabled mounting ramdrives directly to bios (-fs none) 2018-03-18 14:47:44 -04:00
Shane Krueger
775b02e420 Refactor mediaid in imgmount 2018-03-18 10:39:19 -04:00
Shane Krueger
84114b09c5 Refactored imgmount - split MountRam off from MountFat 2018-03-18 10:26:20 -04:00
Shane Krueger
dc716db95e Update to support 4 hard drives attached to BIOS and IDE 2018-03-13 13:48:36 -04:00
Shane Krueger
f595f13871 Check for failure to imgmount files when -fs none 2018-03-13 04:16:31 -04:00
Shane Krueger
1c796046c9 Update help for imgmount (reservecyl) 2018-03-13 03:56:55 -04:00
Shane Krueger
5aa329ee88 El torito mount success message 2018-03-13 03:40:57 -04:00
Shane Krueger
70e6480ea8 Bug fixes 2018-03-13 03:19:14 -04:00
Shane Krueger
810929964d Ensure checks against imageDiskList use MAX_DISK_IMAGES or MAX_HDD_IMAGES 2018-03-13 03:19:14 -04:00
Shane Krueger
f6c764d302 Bounds check for imgmount -u with digit 2018-03-13 00:17:21 -04:00
Shane Krueger
242d379795 Misc refactoring 2018-03-12 23:58:22 -04:00
Shane Krueger
79ef64fee4 Bug fix so el-torito floppy images are bootable again 2018-03-12 23:22:04 -04:00
Shane Krueger
b5dce20ed7 Add code to unmount images from bios/fdd/ide controller 2018-03-12 19:35:35 -04:00
Shane Krueger
af8302b6af imgmount -u (unmount) by index code progress 2018-03-12 14:48:09 -04:00
Shane Krueger
86a8138372 imgmount - Consolidated and refactored code to attach drives to bios, fdc and ide 2018-03-12 13:49:36 -04:00
Shane Krueger
7552893b66 More imgmount cleanup 2018-03-12 01:35:17 -04:00
Shane Krueger
cd80edeb6f Remove unnecessary parameters from fatDrive(sourceLoadedDisk) constructor 2018-03-12 00:30:04 -04:00
Shane Krueger
d5239bec73 Removed unused parameter startSector from fatDrive constructor 2018-03-12 00:21:51 -04:00
Shane Krueger
f3c79bf56a Refactored imgmount (no functional changes) 2018-03-11 19:48:38 -04:00
Jonathan Campbell
6511e3e86f BOOT: Set BIOS data area up correctly to reflect what is attached to drive A: and B:. It is now possble to IMGMOUNT -fs none disk images to A: (0) and B: (1) and then boot to A: and have both appear in the guest MS-DOS operating system 2018-03-11 09:52:34 -07:00
Jonathan Campbell
38818d510c IMGMOUNT and BOOT: Add code to identify FDD disk images so that mounting raw or booting from them is possible 2018-03-11 09:37:01 -07:00
Jonathan Campbell
db92caa4a9 PC-98: Set at BOOT time the right BIOS flags to indicate the floppy drive supports 1.44MB floppies, to allow 1.44MB disks to boot 2018-03-10 20:06:34 -08:00
Jonathan Campbell
4a2664185b BOOT: Write disk equipment word in PC-98 mode so that the guest OS can determine from the BIOS that there is a floppy drive 2018-03-10 11:44:39 -08:00