joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.83k stars 383 forks source link

New BOOT -bios option #774

Open joncampbell123 opened 6 years ago

joncampbell123 commented 6 years ago

I just added initial code to support booting to a ROM BIOS image using the BOOT command.

Initial test results so far below.

IBM PC/AT mode (using ROM images from the PCem project):

PC-98 mode:

DOSBox-X won't be able to support running N88 BASIC without the ability to run the PC-98 ROM BIOS, which is the reason for this addition.

A bonus is that booting ROM BIOS images (in either IBM or NEC mode) enables analysis of the boot process.

J1mbo commented 5 years ago

@joncampbell123 Thanks for this mod - exactly what I'm looking for. The BIOS file causes DosBox-X to apparently hang in my case, but how do you produce that diagnostic output?

joncampbell123 commented 5 years ago

@J1mbo Run it with --debug for extra information.

You may also want to run with -break-start to make DOSBox-X break into the debugger before it executes the first instruction in the BIOS.

LFriede commented 6 months ago

Hi, I wanted to try this feature with a bios I dumped from a real machine. I tried to load my 64k of raw data by placing it as a file named "bios.bin" on the virtual Z drive and typing "BOOT --bios bios.bin". It fails with the message "Unable to open BIOS image" and I don't know why. Is there a specific format required instead of just raw data or is there something else I'm doing wrong?

Thanks in advance :)

maron2000 commented 6 months ago

In many cases putting files in Z drive wouldn't work. Try putting it to your working directory. The directory where your DOSBox-X executable exists maybe a good guess, if you dont know where it is.