This page is a mirror of Tepples' nesdev forum mirror (URL TBD).
Last updated on Oct-18-2019 Download

Patterntable #1 and FCEUX

Patterntable #1 and FCEUX
by on (#121607)
FCEUX refuses to use patterntable #1 as background for my little .nes (MMC1) experiment and I haven't got a clue why. I clearly specify the correct(I hope) bit in $2000 (bit 4 = 1) but it keeps using patterntable 0. Other emulators (Nestopia, Nintendulator) seems to work properly but not FCEUX (latest build).
Is there a feature I am not aware of?

Thanks in advance
Re: Patterntable #1 and FCEUX
by on (#121608)
MMC1 can control mirroring with the control register, have you set it up correctly?
Re: Patterntable #1 and FCEUX
by on (#121609)
To elaborate a little more, if you haven't initialized all of the MMC1 internal registers, especially those having to do with CHR banking, then you'll have undefined behavior. On the hardware this usually means random behavior. On emulators it means you get their default behavior which may be different between various emulators.

Pop open FCEUX's pattern table viewer and ensure that pattern table #1 contains the patterns you expect it to. If not, you may have this issue. And as always, fully initialize your mapper.

Best of luck!
Re: Patterntable #1 and FCEUX
by on (#121611)
FCEUX pattern/PPU viewer just shows nothing no matter which ROM i try. :( That bug has been there for a few versions..

I'll check out my MMC1 code, I didn't think it had anything to do with which patterntable to use. But I'll check it out..
Re: Patterntable #1 and FCEUX
by on (#121614)
How about adjusting the ''Refresh'' ramp to refresh more instead of less?
Re: Patterntable #1 and FCEUX
by on (#121617)
I still have FCEUX 2.2.0 installed, and its PPU Viewer works. Sometimes you have to close and reopen it to get it to refresh though, especially if you're stepping through with the debugger.
Re: Patterntable #1 and FCEUX
by on (#121619)
Posting the ROM would help us diagnose the problem.
Re: Patterntable #1 and FCEUX
by on (#121620)
Fixing the MMC1 code fixed the problem, thanks.

PPU & Nametable viewer all goes black no matter what setting I've tried in FCEUX. I am not sure why. Anyone else have this problem?
Re: Patterntable #1 and FCEUX
by on (#121621)
oRBIT2002 wrote:
PPU & Nametable viewer all goes black no matter what setting I've tried in FCEUX. I am not sure why.

FCEUX shows the data for specific scanlines. If I'm not mistaken, the default scanline is 0 (you can change this to whatever you want), so it will show whatever is mapped when that scanline is rendered. In games that swap CHR mid-frame, you might have to change this value in order to see the tiles you're looking for. In the pattern table viewer you can also change the palette used to display the tiles, and an all black palette could make all tiles show up black.
Re: Patterntable #1 and FCEUX
by on (#121623)
All black, no matter what settings I change/use. :/