It is currently Sat Dec 16, 2017 11:58 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Mapper 052 CHR Setup
PostPosted: Sat May 07, 2016 2:08 pm 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 751
Location: New York, NY
According to the wiki, the bits in the CHR setup are arranged as:

Code:
%BC C000 0000


However, the upper 2 bits need to be reversed to make the mapper function properly:

Code:
%CB C000 0000


This is based on the source of Nintendulator:

Code:
   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);
   }


Top
 Profile  
 
 Post subject: Re: Mapper 052 CHR Setup
PostPosted: Sat May 07, 2016 2:25 pm 
Offline
Formerly Fx3
User avatar

Joined: Fri Nov 12, 2004 4:59 pm
Posts: 3076
Location: Brazil
What games do use this mapper???


Top
 Profile  
 
 Post subject: Re: Mapper 052 CHR Setup
PostPosted: Sat May 07, 2016 2:33 pm 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 6534
Location: Seattle
Please read this thread from FARID.

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


Top
 Profile  
 
 Post subject: Re: Mapper 052 CHR Setup
PostPosted: Sat May 07, 2016 3:43 pm 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 751
Location: New York, NY
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group