Mapper 052 CHR Setup

Discuss emulation of the Nintendo Entertainment System and Famicom.

Moderator: Moderators

Post Reply
User avatar
zeroone
Posts: 934
Joined: Mon Dec 29, 2014 1:46 pm
Location: New York, NY
Contact:

Mapper 052 CHR Setup

Post by zeroone » Sat May 07, 2016 2:08 pm

According to the wiki, the bits in the CHR setup are arranged as:

Code: Select all

%BC C000 0000
However, the upper 2 bits need to be reversed to make the mapper function properly:

Code: Select all

%CB C000 0000
This is based on the source of Nintendulator:

Code: Select all

	if (WhichGame & 0x40)
	{
		CHRmask = 0x7F;
		CHRbank = ((WhichGame & 0x20) >> 3) | ((WhichGame & 0x04) >> 1) | ((WhichGame & 0x10) >> 4);
	}
	else
	{
		CHRmask = 0xFF;
		CHRbank = ((WhichGame & 0x20) >> 3) | ((WhichGame & 0x04) >> 1);
	}

User avatar
Zepper
Formerly Fx3
Posts: 3220
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Re: Mapper 052 CHR Setup

Post by Zepper » Sat May 07, 2016 2:25 pm

What games do use this mapper???

lidnariq
Posts: 9708
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: Mapper 052 CHR Setup

Post by lidnariq » Sat May 07, 2016 2:33 pm

Please read this thread from FARID.

Nintendulator's implementation and Disch's notes are suspect in this case.

User avatar
zeroone
Posts: 934
Joined: Mon Dec 29, 2014 1:46 pm
Location: New York, NY
Contact:

Re: Mapper 052 CHR Setup

Post by zeroone » Sat May 07, 2016 3:43 pm

lidnariq wrote:Please read this thread from FARID.

Nintendulator's implementation and Disch's notes are suspect in this case.
The wiki is consistent with that link from FARID. I am testing Mario 7-in-1 and it requires the arrangement of bits described in the OP.

Post Reply