DOSBox Staging
DOSBox Staging emulates MS-DOS, IBM PC, IBM PCjr and Tandy 1000. It reads 57 files, none of them required: it starts games without them.
The app reads its files from this folder:
%LOCALAPPDATA%/DOSBox/
dosbox-staging.conf beside the executable makes that folder the root instead.
Source: src/misc/cross.cpp:67-101
~/Library/Preferences/DOSBox/
dosbox-staging.conf beside the executable makes that folder the root instead.
Source: src/misc/cross.cpp:54-63
$XDG_CONFIG_HOME/dosbox/
~/.config/dosbox when XDG_CONFIG_HOME is unset, ~/.dosbox when that folder cannot be used. dosbox-staging.conf beside the executable makes that folder the root instead.
Source: src/misc/cross.cpp:108-171, src/
About this profile
Install this emulator's files
With Batocera, RetroBat, KNULLI or RetroPie: the installer finds Batocera, RetroBat, KNULLI or RetroPie and its BIOS folder, then downloads only the files DOSBox Staging reads there and checks each one.
Open Start. Type PowerShell, press Enter. Click Copy. Right-click to paste. Press Enter.
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator dosbox-stagingOpen a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator dosbox-stagingTechnical notes
Continuation of DOSBox on a C++23 codebase, SDL3, libmt32emu and FluidSynth
from vcpkg. The machine setting selects a video adapter (hercules, cga,
cga_mono, ega, svga_s3, svga_et3000, svga_et4000, svga_paradise, vesa_nolfb,
vesa_oldvbe) or a machine (pcjr, tandy).
ref: src/dosbox.cpp:1401-1413, vcpkg.json
No system BIOS: the PC BIOS, video BIOS fonts, keyboard layouts and codepage
tables are implemented in code.
ref: src/ints/int10_memory.cpp:160, dos_keyboard_layout_data.h
MIDI devices that need external data are mt32, soundcanvas and fluidsynth.
A device that fails to initialise throws, MIDI_Init warns and retries with
mididevice = port, then disables MIDI output. Emulation continues either way.
ref: src/midi/midi.cpp:803-859
MT-32/CM-32L: libmt32emu identifies every candidate by file size then SHA1,
so file names carry no meaning. A directory scan caches which ROM ids each
directory holds and logs anything unrecognised.
ref: src/, munt ROMInfo.cpp:206-213
A model needs one control ROM and one PCM ROM, supplied either as a full
image (addROMFile) or as the two chip dumps merged in memory
(mergeAndAddROMFiles): control halves are byte-interleaved, PCM halves are
concatenated.
ref: src/, munt ROMInfo.cpp:312-331
model = auto resolves the first available of cm32l_102, cm32l_100,
cm32ln_100, mt32_107, mt32_106, mt32_105, mt32_104, mt32_bluer, mt32_207,
mt32_206, mt32_204, mt32_203. The aliases cm32l, mt32, mt32_old and mt32_new
restrict that list. MIXER /LISTMIDI prints what was found.
ref: src/midi/mt32.cpp:278-331, 504-557
Search order is romdir, then mt32-roms in the configuration directory, then
the platform locations (C:\mt32-rom-data on Windows,
~/Library/Audio/Sounds/MT32-Roms and /usr/{local/,}share/mt32-rom-data on
macOS; $XDG_DATA_HOME/dosbox/mt32-roms, $XDG_DATA_HOME/mt32-rom-data,
$XDG_DATA_DIRS/mt32-rom-data and $XDG_CONFIG_HOME/dosbox/mt32-roms on Linux).
A relative romdir resolves against the working directory, so a game folder
can carry its own set.
ref: src/midi/mt32.cpp:385-396, 416-485
Sound Canvas: the SC-55 is emulated by the Nuked SC55 CLAP plugin, loaded
from a plugins directory next to the executable, in the configuration
directory or under the XDG data directories. DOSBox Staging resolves the ROM
directory candidates, canonicalises the ones that exist and exports them as
SOUNDCANVAS_ROM_PATH. The plugin appends the per-model subdirectory, hashes
every file under 4 MB it finds there and matches SHA256 against its table.
ref: src/, src/misc/support.cpp:351-379,
Nuked-SC55-CLAP nuked_sc55.cpp:117-215,
Nuked-SC55-CLAP rom_loader.cpp:32-63,
Nuked-SC55-CLAP rom_io.cpp:271-564
soundcanvas_model = auto resolves sc55_121, sc55_120, sc55_110, sc55_100,
sc55_200, sc55mk2_101, sc55mk2_100 in that order, each looked up by plugin
name inside the plugin library file Nuked-SC55.clap only.
The plugin publishes six descriptors: SC-55 v1.00, v1.10, v1.20, v1.21,
v2.00 and SC-55mk2 v1.01.
ref: src/midi/soundcanvas.cpp:52-68, 77-138, Nuked-SC55-CLAP plugin.cpp:23-90
mididevice = clap runs a CLAP synthesizer plugin the user names with
clap_library or clap_plugin in the [clap] section, from the same plugins
directories. It is chosen by configuration and identified by name only.
ref: src/midi/clap.cpp:52-82
FluidSynth: the soundfont setting names a file, tried as given and with .sf2
appended, in soundfont_dir, then in the platform locations. Those are
soundfonts in the configuration directory and C:\soundfonts on Windows, the
same directory and ~/Library/Audio/Sounds/Banks on macOS, and elsewhere
dosbox/soundfonts, soundfonts and sounds/sf2 under the XDG data home,
soundfonts and sounds/sf2 under each XDG data directory, then soundfonts in
the configuration directory. fluid_synth_sfload is the only check. The
SoundFont name from the RIFF INFO chunk and the stem of the file, symbolic
links resolved, select reverb, chorus and filter presets for four known
banks.
ref: src/, 672-689, 756-823, 1038-1061
Bundled data ships with the program and is read from the resources directory
next to the executable: FreeDOS codepages and keyboard layouts, translations,
shaders and shader presets, CGA colour presets, drive noise samples, the
mounted Y: drive utilities, the web interface and the manual pages.
ref: src/misc/support.cpp:300-320, src/dos/dos_code_page.cpp:1828, src/,
src/misc/messages.cpp:1072, src/,404, src/ints/int10_modes.cpp:2302,
src/audio/disk_noise.cpp:185, src/shell/autoexec.cpp:764
BIOSTEST.COM loads an arbitrary BIOS image at F000:0 and is compiled only
when the debugger is enabled, which is off by default.
ref: src/dos/CMakeLists.txt:82-84, biostest.h
51 files (57 accepted versions): 0 required, 51 optional.
In this collection: 49 in repo, 0 missing and 2 unsourceable.
Optional
Section titled “Optional”| File | Status | Hash |
|---|---|---|
ctrl_mt32_1_04.romMT-32 Control v1.04
Hashes, validation and source
| in repo | SHA1 5a5cb5a77d7d |
ctrl_mt32_1_05.romMT-32 Control v1.05
Hashes, validation and source
| in repo | SHA1 e17a3a6d265b |
ctrl_mt32_1_06.romMT-32 Control v1.06
Hashes, validation and source
| in repo | SHA1 a553481f4e27 |
ctrl_mt32_1_07.romMT-32 Control v1.07
Hashes, validation and source
| in repo | SHA1 b083518fffb7 |
ctrl_mt32_bluer.romMT-32 Control BlueRidge
Hashes, validation and source
| in repo | SHA1 7b8c2a5ddb42 |
ctrl_mt32_2_03.romMT-32 Control v2.03
Hashes, validation and source
| in repo | SHA1 5837064c9df4 |
ctrl_mt32_2_04.romMT-32 Control v2.04
Hashes, validation and source
| in repo | SHA1 2c16432b6c73 |
ctrl_mt32_2_06.romMT-32 Control v2.06
Hashes, validation and source
| in repo | SHA1 2869cf4c235d |
ctrl_mt32_2_07.romMT-32 Control v2.07
Hashes, validation and source
| in repo | SHA1 47b52adefeda |
ctrl_cm32l_1_00.romCM-32L/LAPC-I Control v1.00
Hashes, validation and source
| in repo | SHA1 73683d585cd6 |
ctrl_cm32l_1_02.romCM-32L/LAPC-I Control v1.02
Hashes, validation and source
| in repo | SHA1 a439fbb390da |
ctrl_cm32ln_1_00.romCM-32LN/CM-500/LAPC-N Control v1.00
Hashes, validation and source
| in repo | SHA1 dc1c5b1b90a4 |
ctrl_mt32_1_04_a.romMT-32 Control v1.04, even bytes
Hashes, validation and source
| in repo | SHA1 9cd4858014c4 |
ctrl_mt32_1_04_b.romMT-32 Control v1.04, odd bytes
Hashes, validation and source
| in repo | SHA1 fe8db469b5bf |
ctrl_mt32_1_05_a.romMT-32 Control v1.05, even bytes
Hashes, validation and source
| in repo | SHA1 57a09d80d2f7 |
ctrl_mt32_1_05_b.romMT-32 Control v1.05, odd bytes
Hashes, validation and source
| in repo | SHA1 52e3c6666db9 |
ctrl_mt32_1_06_a.romMT-32 Control v1.06, even bytes
Hashes, validation and source
| in repo | SHA1 cc83bf23cee5 |
ctrl_mt32_1_06_b.romMT-32 Control v1.06, odd bytes
Hashes, validation and source
| in repo | SHA1 bf4f15666bc4 |
ctrl_mt32_1_07_a.romMT-32 Control v1.07, even bytes
Hashes, validation and source
| in repo | SHA1 13f06b38f0d9 |
ctrl_mt32_1_07_b.romMT-32 Control v1.07, odd bytes
Hashes, validation and source
| in repo | SHA1 c55e165487d7 |
ctrl_mt32_bluer_a.romMT-32 Control BlueRidge, even bytes
Hashes, validation and source
| in repo | SHA1 11a6ae5d8b6e |
ctrl_mt32_bluer_b.romMT-32 Control BlueRidge, odd bytes
Hashes, validation and source
| in repo | SHA1 e0934320d7cb |
pcm_mt32.romMT-32 PCM ROM
Hashes, validation and source
| in repo | SHA1 f6b1eebc4b2d |
pcm_mt32_l.romMT-32 PCM ROM, first half
Hashes, validation and source
| in repo | SHA1 3a1e19b0cd40 |
pcm_mt32_h.romMT-32 PCM ROM, second half
Hashes, validation and source
| in repo | SHA1 2cadb99d21a6 |
pcm_cm32l.romCM-32L/CM-64/LAPC-I PCM ROM
Hashes, validation and source
| in repo | SHA1 289cc298ad53 |
pcm_cm32l_h.romCM-32L/CM-64/LAPC-I PCM ROM, second half
Hashes, validation and source
| in repo | SHA1 3ad889fde5db |
sc55_waverom1.binSC-55 wave ROM A (R15209276)
Hashes, validation and source
| in repo | - |
sc55_waverom2.binSC-55 wave ROM B (R15209277)
Hashes, validation and source
| in repo | - |
sc55_waverom3.binSC-55 wave ROM C (R15209281)
Hashes, validation and source
| in repo | - |
sc55_rom1.binSC-55 v1.00 MCU ROM (R15199748)
Hashes, validation and source
| in repo | - |
sc55_rom2.binSC-55 v1.00 program ROM (R15449258)
Hashes, validation and source
| in repo | - |
sc55_rom1.binSC-55 v1.10 MCU ROM (R15199736)
Hashes, validation and source
| in repo | - |
sc55_rom2.binSC-55 v1.10 program ROM (R15209275)
Hashes, validation and source
| in repo | - |
sc55_rom1.binSC-55 v1.20 and v1.21 MCU ROM (R15199778)
Hashes, validation and source
| in repo | - |
sc55_rom2.binSC-55 v1.20 program ROM (R15209337)
Hashes, validation and source
| in repo | - |
sc55_rom2.binSC-55 v1.21 program ROM (R15209363)
Hashes, validation and source
| in repo | - |
sc55_rom1.binSC-55 v2.00 MCU ROM (R15199799)
Hashes, validation and source
| in repo | - |
sc55_rom2.binSC-55 v2.00 program ROM (R15209387)
Hashes, validation and source
| in repo | - |
rom1.binSC-55mk2 v1.01 MCU ROM (R15199858)
Hashes, validation and source
| in repo | - |
rom2.binSC-55mk2 v1.01 program ROM (R00233567)
Hashes, validation and source
| in repo | - |
rom_sm.binSC-55mk2 v1.01 sub-MCU ROM (R15199880)
Hashes, validation and source
| in repo | - |
waverom1.binSC-55mk2 wave ROM 16M (R15209359)
Hashes, validation and source
| in repo | - |
waverom2.binSC-55mk2 wave ROM 8M (R15279813)
Hashes, validation and source
| in repo | - |
rom2.binSC-55mk2 program ROM, strict SC-55 tones, SC-55 v1.21 drums
Hashes, validation and source
| in repo | - |
rom2.binSC-55mk2 program ROM, strict SC-55 tones, SC-55 v2.00 drums
Hashes, validation and source
| in repo | - |
rom2.binSC-55mk2 program ROM, SC-55 tones, SC-55 v1.21 drums
Hashes, validation and source
| in repo | - |
rom2.binSC-55mk2 program ROM, SC-55 tones, SC-55 v2.00 drums
Hashes, validation and source
| in repo | - |
rom2.binSC-55mk2 program ROM, SC-55mkII tones, SC-55 v1.21 drums
Hashes, validation and source
| in repo | - |
rom2.binSC-55mk2 program ROM, SC-55mkII tones, SC-55 v2.00 drums
Hashes, validation and source
| in repo | - |
default.sf2SoundFont named by the default soundfont setting
| unsourceable | - |
GeneralUser-GS.sf2GeneralUser GS SoundFont by S. Christian Collins
| in repo | - |
Roland_SC-88.sf2SoundFont under a Roland SC-88 name
Source
| unsourceable | - |
FluidR3_GM.sf2Fluid R3 GM SoundFont by Frank Wen
| in repo | - |
system.romIBM PCjr system ROM
Hashes, validation and source
| in repo | SHA1 1f5f7013f18c |
IBM PC Cassette BASIC ROMIBM BASIC ROM image mapped at F600:0
Hashes, validation and source
| in repo | SHA1 07449ebca18f |
ibm-vga.binIBM VGA option ROM of 10/27/86, laid out as mapped at C000:0
Hashes, validation and source
| in repo | SHA1 dce6491424f1 |
Next steps
Section titled “Next steps”- Get the files, for the setup in use
- Every system, and the files each one needs
- When a game does not start