Page 1 of 1

Homebrew NES port of the arcade version of Donkey Kong

Posted: Sat Sep 26, 2020 4:48 pm
by TLPD-AVW


Currently the rom demonstrated in this video fails to boot on MiSTer, only showing a black screen. From my understanding it uses NROM (mapper 0) with battery save function - is such combination even supported by MiSTer? I thought that it could be related to iNES header providing insufficient information, but changing it to NES 2.0 format with 8kb save RAM defined did nothing.

I understand that the existence of the arcade original's core makes the support of this version unnecessary, but it would be neat if this port worked on the NES core.

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Sun Sep 27, 2020 2:37 am
by rcade
I'm almost positive I have played this on my MiSTer... even recently.

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Sun Sep 27, 2020 5:45 pm
by rcade
I was wrong- it doesn't work. I must have been playing on Everdrive and a real NES when I played it last.

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Tue Oct 27, 2020 8:22 pm
by lupin3rd
Thread necromancy!

Was support for this ever added?

If I'm not mistaken, there were no NROM games that supported battery-backed SRAM. So that means this game runs on a "custom" mapper, even though the concepts are well-known (NROM and Save Support). Emulators have to have mappers defined and emulated in the emulator itself, because ROMs alone do not contain the logical functions that an actual cartridge would physically supply. Support could be added, but if people are making homebrew stuff that they want to be playable on all NES systems/emulators/FPGAs, they should really use a well-known supported mapper from the outset.

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Tue Oct 27, 2020 10:19 pm
by aberu
The MiSTer NES core has had many custom mapper configs for homebrew added to it, so this probably wouldn't be impossible or unlikely for it to be fixed. I'll test this out in a sec with both the latest build and with current release.

EDIT: Just confirmed this still doesn't load. Image attached is the rom I used, just in case it matches or not. I think you are right, the fact it uses Battery Backed SRAM with NROM 0 mapping in a custom config might be the issue.

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Fri Dec 24, 2021 2:12 am
by aberu
https://github.com/MiSTer-devel/NES_MiS ... 1000610176

This works now thanks to @greyrogue ! :)

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Fri Dec 24, 2021 11:55 am
by TLPD-AVW
Indeed, the rom with NES 2.0 header works now! I tried to run the rom with that exact header a year ago with no luck, but now it runs properly. Thanks!

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Fri Dec 24, 2021 4:33 pm
by GreyRogue
FYI, in case you're curious, this was implemented here:
https://github.com/MiSTer-devel/NES_MiS ... /246/files
It added RAM support for all the mappers the code there supports:
https://github.com/MiSTer-devel/NES_MiS ... rt.sv#L154
// Mappers: 0, 2, 3, 7, 28, 94, 97, 180, 185 //
So, it's been in place for several months now.

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Sun Feb 13, 2022 1:32 am
by shertz
I must be doing something different cause I still can't get it to work. I just get a blank screen. Do I have to somehow edit the rom to get it to work?

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Sun Feb 13, 2022 2:15 am
by Stupid Dufus
Doesn't work for me either. ROM loads to a black screen.

MD5 I have is 9D64596784A288637695D309EA7868C4.

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Sun Feb 13, 2022 3:15 am
by mario64
TLPD-AVW wrote: Fri Dec 24, 2021 11:55 am Indeed, the rom with NES 2.0 header works now! I tried to run the rom with that exact header a year ago with no luck, but now it runs properly. Thanks!
Mind sharing the hash for the working rom? MD5 or CRC

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Sun Feb 13, 2022 8:40 pm
by TLPD-AVW
mario64 wrote: Sun Feb 13, 2022 3:15 am
TLPD-AVW wrote: Fri Dec 24, 2021 11:55 am Indeed, the rom with NES 2.0 header works now! I tried to run the rom with that exact header a year ago with no luck, but now it runs properly. Thanks!
Mind sharing the hash for the working rom? MD5 or CRC
CRC32: 05E7C02A
MD5: 1C5CDB47316A34C570CBD27DE84F7EB9

You can patch the original rom yourself by changing its header in a hex editor or other NES utility program. Or you can load the game in Mesen emulator, choose Debug>Edit iNES header from the top menu, input these specs and save a new rom file.
mesen.png
mesen.png (22.99 KiB) Viewed 8577 times

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Mon Feb 14, 2022 1:27 am
by Stupid Dufus
Thanks! Works for me now

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Mon Feb 14, 2022 3:44 am
by mario64
Yes indeed. Thanks so much TLPD-AVW! One follow up. Is there a way to rotate to vertical orientation? Don’t see that option in OSD.

Re: Homebrew NES port of the arcade version of Donkey Kong

Posted: Sat Feb 19, 2022 11:44 pm
by emmadness
TLPD-AVW tranks my friend!
Now the only thing I need is patience with this game that has a devilish difficulty.
Long live the arcades ;) greetings from Argentina!