mirror of https://github.com/bsnes-emu/bsnes.git
![]() byuu says: This WIP adds Nintendo Super System emulation, at least of its DIP switches. This is done via XML mapping, like so: <?xml version="1.0" encoding="UTF-8"?> <cartridge region="NTSC"> <name>ActRaiser</name> <rom> <map mode="linear" address="00-7f:8000-ffff"/> <map mode="linear" address="80-ff:8000-ffff"/> </rom> <nss> <setting name="Difficulty"> <option value="0000" name="Easy"/> <option value="0001" name="Normal"/> <option value="0002" name="Hard"/> <option value="0003" name="Expert"/> </setting> <setting name="Lives"> <option value="0000" name="5 lives"/> <option value="0004" name="4 lives"/> <option value="0008" name="3 lives"/> <option value="000c" name="2 lives"/> </setting> </nss> </cartridge> The value field is a 16-bit value. All selected options are ORed together to produce the final DIP switch values. The number of options per setting is unlimited, but there are only sixteen settings allowed (you can't have more settings than you have switches, that's just stupid.) In the example above, d0-d1 controls difficulty, and d2-d3 controls # of lives. d4-d15 appear to be unused, as far as I can tell. |
||
---|---|---|
bsnes | ||
snesfilter | ||
snespurify | ||
snesshader |