Open mrfpga opened 1 year ago
I'm not quite sure what you mean by "MiSTer does not have DIP switch support". If you talk in general then MiSTer supports DIP switches already long time and many Arcades have it. If you are talking specifically about this arcade, then DIP are implemented in OSD options:
"O89,Lives,3,4,5,6;",
"OAB,Bonus Life,7k,10k,15k,20k;",
"OC,Cabinet,Upright,Cocktail;",
Thank you, Sorgelig, for your swift response. I couldn't locate any entries for DIP switch settings in the MRA files. Are the DIP switches on the OSD hardcoded, or do they serve as a fallback option in case no entries are found in the MRA files?
you can look into pacman arcade: https://github.com/MiSTer-devel/Arcade-Pacman_MiSTer/blob/master/Arcade-Pacman.sv
search by "dip" MRA for pacman also contains DIP(switches) descriptions and menu.
Thank you. Then it might be just a problem on my side. After loading a custom MRA file with DIP switch entries, the game "Crazy Kong Part II (Set 1)" starts with scrambled graphics and freezes immediately. This is what I added to the MRA file:
<switches default="80" base="8">
<dip bits="0,1" name="Lives" ids="3,4,5,6"/>
<dip bits="2,3" name="Bonus Life" ids="7000,10000,15000,20000"/>
<dip bits="4,5,6" name="Coinage" ids="1C_1C,2C_1C,1C_2C,3C_1C,1C_3C,4C_1C,1C_4C,5C_1C"/>
<dip bits="7" name="Cabinet" ids="Cocktail,Upright"/>
</switches>
you need to handle download of dip settings with ioctl_index==254 (iirc) check pacman code
On MiST FPGA, @gyurco added DIP switch support some time ago, allowing for more customisation and ease of use. You can check out the specific changes made in this commit: GitHub link, file "CClimber_mist.sv".
As of now, MiSTer does not have DIP switch support, but wouldn't it be fantastic if we could add this convenient feature as well? That's why I'm reaching out to all the skilled programmers in our community.
If you are a skilled programmer and have some time to spare, consider contributing to the MiSTer project by implementing DIP switch support. This would undoubtedly make the platform even more user-friendly and expand its functionality. Collaborative efforts like this one are what make the MiSTer community so special!
Let's work together to make MiSTer even better. Your contribution would be highly appreciated, and it will benefit all MiSTer users. Thank you for considering this opportunity, and I'm looking forward to seeing what our talented programmers can achieve!