What's wrong with my SMB-palette?
Moderator: Moderators
What's wrong with my SMB-palette?
If you check the attached file, you'll see a strange effect in SMB running in my environment. SMB is the only title that's affected and I've tried quite a few. It looks like it's attribute-related, but only under certain conditions somehow.
I've checked attribute/nametable-mirroring, it seems okay.
Anyone got a quick feeling like "aha, he's doing this wrong"?
I've checked attribute/nametable-mirroring, it seems okay.
Anyone got a quick feeling like "aha, he's doing this wrong"?
Re: What's wrong with my SMB-palette?
Don't know offhand what would be causing this particular problem. But step 1 is to determine whether this is a PPU or CPU problem.
Do the attribute tables look correct in memory and are just being displayed incorrectly? (PPU problem)
Or are the attribute tables themselves incorrect? (CPU problem)
Or it might be a mirroring issue. Is your PPU getting the attributes from the wrong NT?
Do the attribute tables look correct in memory and are just being displayed incorrectly? (PPU problem)
Or are the attribute tables themselves incorrect? (CPU problem)
Or it might be a mirroring issue. Is your PPU getting the attributes from the wrong NT?
Re: What's wrong with my SMB-palette?
Looks like the attributetable is bad when I check. My CPU core passes the nestest.nes CPU-test, so.. To be continued..
Re: What's wrong with my SMB-palette?
Maybe the CPU is writing the correct values to $2006/2007, but they're being moved to the wrong place??
Re: What's wrong with my SMB-palette?
Still bothered with this bug. Doesn't seem to be PPU-related. Wrong data is stored in RAM.. I've got other issues in "Ice Climber", wrong data is also stored in RAM which is used for leveldata, I suspect the issues are related..
It's difficult tracking the code backwards on what's going wrong.. How reliable are the CPU test ROMS out there? I pass the tests I've tried but this problem isn't obviously caught..
It's difficult tracking the code backwards on what's going wrong.. How reliable are the CPU test ROMS out there? I pass the tests I've tried but this problem isn't obviously caught..
Re: What's wrong with my SMB-palette?
Try this one too: http://blargg.8bitalley.com/nes-tests/instr_test-v4.zipoRBIT2002 wrote:Looks like the attributetable is bad when I check. My CPU core passes the nestest.nes CPU-test, so.. To be continued..
My emulator passed nestest.nes but this one found a problem and I was able to fix it.
Re: What's wrong with my SMB-palette?
Thanks for the tip, this fixed the problem! I already thought I've been running these tests but this one obviously was different.
Re: What's wrong with my SMB-palette?
So, what exactly was wrong about your CPU implementation that caused such bugs? You know, to keep this thread relevant for future readers.
Re: What's wrong with my SMB-palette?
Glad you got it working! I'd also be interested in knowing what it was.
Re: What's wrong with my SMB-palette?
My <ROL zeropage> & <LSR zeropage> implementation was flawed. Strange that other test-ROMs didn't find this..