[SOLVED] Donkey Kong Visual Glitches

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Post Reply
Posts: 1
Joined: Fri Sep 04, 2020 1:49 pm

[SOLVED] Donkey Kong Visual Glitches

Post by dbll » Fri Sep 04, 2020 2:02 pm

Edit: This has been solved! The issue involved the CPU's ADC instruction.

Hello everyone!

I've been working on an NES emulator the past month, and have been working on the PPU more recently. I seem to have gotten something wrong, but after hours of debugging still can't find the source of the issue. When loading Donkey Kong, the menu looks fine, but when the gameplay demo begins I get the artifacts on the screen shown in the screenshot. When the demo is over and the game goes back to the menu, it looks fine again.

If you look at the top left, you can see the basic versions of the nametables at addresses $2000 and $2400 having the same issues (as seen by the two vertical bars towards the left side on both). So in other words, it is not a rendering issue. My CPU passes nestest as well, which makes me think it isn't a CPU issue either. This has lead me to believe that it's an issue with NMI generation or my PPU registers. I've checked both extensively, but I could be missing something. It also could be due to something I haven't listed, I'm not fully sure.

Has anyone had any similar issues? Or possibly would know how to resolve something like this? If so, I'd love to hear what you did to resolve them.

Last edited by dbll on Sat Sep 05, 2020 11:44 am, edited 1 time in total.

User avatar
Posts: 3
Joined: Sun Sep 27, 2020 12:42 pm
Location: Texas

Re: [SOLVED] Donkey Kong Visual Glitches

Post by kingdiesel » Sun Oct 11, 2020 6:22 pm

Nice -- what was the issue?

I've also found a few bug in my CPU implementation even though NESTest passed.

User avatar
Posts: 57
Joined: Mon Jun 22, 2020 9:39 am

Re: [SOLVED] Donkey Kong Visual Glitches

Post by LucianoTheWindowsFan » Fri Nov 13, 2020 5:41 pm

Reminds me of the kill screen in Pac-Man.
The SNES is my favorite console, not only because it is an upgrade to the NES, but because it had some quality games as well (e.g. EarthBound and Kirby's Dream Land 3).

Post Reply