It is currently Tue Sep 18, 2018 11:44 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Mapper 092
PostPosted: Fri May 08, 2015 5:12 pm 
Offline
User avatar

Joined: Mon Dec 29, 2014 1:46 pm
Posts: 817
Location: New York, NY
Mapper 092 is related to Mapper 072 as the wiki suggests, but it is not as simple as a different PRG setup. Per FCEUX:

Code:
//------------------ Map 092 ---------------------------
// Another two-in-one mapper, two Jaleco carts uses similar
// hardware, but with different wiring.
// Original code provided by LULU
// Additionally, PCB contains DSP extra sound chip, used for voice samples (unemulated)

static void M92Sync(void) {
   uint8 reg = latche & 0xF0;
   setprg16(0x8000, 0);
   if (latche >= 0x9000) {
      switch (reg) {
      case 0xD0: setprg16(0xc000, latche & 15); break;
      case 0xE0: setchr8(latche & 15); break;
      }
   } else {
      switch (reg) {
      case 0xB0: setprg16(0xc000, latche & 15); break;
      case 0x70: setchr8(latche & 15); break;
      }
   }
}

void Mapper92_Init(CartInfo *info) {
   Latch_Init(info, M92Sync, NULL, 0x80B0, 0x8000, 0xFFFF, 0);
}


Bits 4 and 5 are used to select the appropriate PRG or CHR bank. In addition, all lower 4 bits are used for both the PRG and CHR bank.

FCEUX's implementation maybe incomplete, but we should add this to the wiki.


Top
 Profile  
 
 Post subject: Re: Mapper 092
PostPosted: Sat May 09, 2015 1:45 am 
Offline

Joined: Sun Apr 13, 2008 11:12 am
Posts: 7519
Location: Seattle
The big difference in FCEUX's source here is that it claims that ALL bankswitching accesses use the address bus, not the data bus. This is suspicious; we don't know of any non-pirate games that do that. Additionally, Nestopia's implementation disagrees.

The magic numbers in FCUEX's source do not contradict the description in mapper 72; for both Soccer (unknown board) and Yakyuu'88 (JF-19) PRG bank is updated when the byte written has its 128s bit set and CHR bank is updated when the byte written has its 64s bit set.


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

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 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