jeffpar / pcjs

The original IBM PC and other machine emulations in JavaScript
https://www.pcjs.org
Other
809 stars 122 forks source link

Easier way to load ROM on x86? #62

Open AndersBNielsen opened 1 year ago

AndersBNielsen commented 1 year ago

I'll be writing some BIOS extension ROM code and I'd like to use pcjs for debugging. Is there an easier way to add a ROM to a 5160 machine other than what I'm doing now?

I have pcjs running locally. As a test I duplicated the BASIC ROM line in the corresponding machine.xml file - seemingly it also needed a different filename to be loaded - but that works:

So now I have:

<rom id="romBASIC" addr="0xf6000" size="0x8000" file="/machines/pcx86/ibm/5160/rom/basic/BASIC110.json5"/> <rom id="romBASIC2" addr="0xd0000" size="0x8000" file="/machines/pcx86/ibm/5160/rom/basic/BASIC110-2.json5"/>

I don't know if there's a market for it but I'd love a feature for loading ROM from URL/upload like there is for loading floppies. Could I go about this in an easier way? Maybe without selfhosting?