indigodarkwolf / box16

A fork of the official X16 emulator, converted to C++20 and with a bunch of features tweaked and added.
MIT License
41 stars 19 forks source link

Feature Request: command line options to load additional files at boot #43

Open indigodarkwolf opened 2 years ago

indigodarkwolf commented 2 years ago

From @ZeroByteOrg:

Talking to MooingLemur last night, I had an idea that might make for a good enhancement (if my understanding of official R39 behavior now works)... It's my understanding that HostFS now takes on the same speed (more or less) as SDimage due to the fact that the hook is now on ACPTR / MACPTR and not LOAD / SAVE

If that's the case, then it might be nice to add a commandline option to bootstrap-load additional files than just -prg

pglewis is doing that dancing baby demo, and was saying how each time he runs the program to test a change, it takes a while to load all the graphics and sound. So I thought a bootstrap load for arbitrary files to arbitrary locations in memory at startup might be a nice feature to speed up this sort of thing.... like -load file,addr -load file,addr -vload file,addr

Note that Box16 is still hooking LOAD and SAVE, it should probably hook ACPTR and MACPTR the way x16emu does now.

indigodarkwolf commented 1 year ago

This seems like it should be relatively simple to implement similarly to how multiple cartridges are handled.