nesdev.com
http://forums.nesdev.com/

fceux 2.2.3 not outputting 64kb wram file for mmc5
http://forums.nesdev.com/viewtopic.php?f=3&t=16420
Page 2 of 2

Author:  tepples [ Mon Aug 28, 2017 5:54 pm ]
Post subject:  Re: fceux 2.2.3 not outputting 64kb wram file for mmc5

Once you're close to actually needing both 32K halves battery-backed in your project, feel free to file an issue and attach the source and binary of your test ROM. If you have an easily reproducible test and a good reason, Rainwarrior and the rest of the FCEUX dev team are fairly good at acting on enhancement requests.

Author:  rainwarrior [ Mon Aug 28, 2017 8:37 pm ]
Post subject:  Re: fceux 2.2.3 not outputting 64kb wram file for mmc5

Looks like zeromus already put in 64k MMC5 SRAM save support yesterday:
https://sourceforge.net/p/fceultra/code/3373/

Author:  Bregalad [ Mon Aug 28, 2017 11:08 pm ]
Post subject:  Re: fceux 2.2.3 not outputting 64kb wram file for mmc5

infidelity wrote:
I even changed the 10th byte from A0, to 0A, and I still get 32kb output.

Sorry my bad it was effectively $a0 that you were supposed to use. So clearly you are right and the current emus are wrong/bugged when it comes to NES 2.0 support.
Quote:
Looks like zeromus already put in 64k MMC5 SRAM save support yesterday:
https://sourceforge.net/p/fceultra/code/3373/

This code is awful and does not support the NES 2.0 header at all, it just prepares several cases, probably made-up to support existing games, and quickly added infidelity's case as a work arround. They are not caring about future homebrew using different available RAM sizes on MMC5. It also does not output a proper error message if an unavailable RAM size is used.

Author:  rainwarrior [ Mon Aug 28, 2017 11:31 pm ]
Post subject:  Re: fceux 2.2.3 not outputting 64kb wram file for mmc5

Bregalad wrote:
This code is awful and does not support the NES 2.0 header at all

Sure, but it solves this particular problem that currently more than zero people are interested in.

If you'd like to submit a patch that offers proper iNES 2 WRAM size support, I'm sure it'd be considered.

Author:  Bregalad [ Tue Aug 29, 2017 1:12 am ]
Post subject:  Re: fceux 2.2.3 not outputting 64kb wram file for mmc5

Well I don't know but I'd code it something like that (pseudocode):

Code:
switch(save_game_size)
{
   case 0x00:
      // simulate ELROM cart with no PRG-RAM
      break;
   case 0x07:
   case 0x70:
       // simulate EKROM cart with 8kb PRG-RAM
      break;
   case 0x80:
   case 0x77:
   case 0x08:
      // simulate ETROM cart with 2x 8kb PRG-RAM chips
      break;
   
   case 0x90:
   case 0x09:
      // simulate EWROM cart with 32kb PRG-RAM
      break;
   
   case 0x79:
   case 0x97:
      // simulate hypotetical cart (ETROM ?) with 8kb and 32kb PRG-RAM chips
      break;
   
   case 0x99:
   case 0xa0:
   case 0x0a:
      // simulate hypotetical (ETROM ?) cart with 2x 32kb PRG-RAM chips
      break;
   
   default:
      // show some warning message that NES 2.0 header has an non-supported PRG-RAM size and default to something
}


Even this could be largely improved, but at least it show the idea.

Author:  infidelity [ Tue Aug 29, 2017 5:17 am ]
Post subject:  Re: fceux 2.2.3 not outputting 64kb wram file for mmc5

rainwarrior wrote:
Looks like zeromus already put in 64k MMC5 SRAM save support yesterday:
https://sourceforge.net/p/fceultra/code/3373/


It was zeromus who I was originally directed to, about the 64kb issue. However, he was quite snippy after I asked him how to obtain the latest build. I couldn't find it via goggle, and I've never compiled anything from the link rainwarrior posted. Could someone explain how I obtain this latest build of fceux?

And could someone direct me to those I should contact, that take care of Nestopia & Ninrendulator, so those can be updated too?

Author:  infidelity [ Thu Aug 31, 2017 2:38 am ]
Post subject:  Re: fceux 2.2.3 not outputting 64kb wram file for mmc5

Can someone please help me, in explaining how or where to obtain fceux r3372? Or is it r3374? Either way I've had no luck finding these build via google.

Author:  calima [ Thu Aug 31, 2017 2:55 am ]
Post subject:  Re: fceux 2.2.3 not outputting 64kb wram file for mmc5

Click the "buildbot builds" link on fceux downloads page:
https://ci.appveyor.com/project/zeromus ... /artifacts

Author:  infidelity [ Thu Aug 31, 2017 4:40 am ]
Post subject:  Re: fceux 2.2.3 not outputting 64kb wram file for mmc5

Thank you. :-)

Page 2 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/