Author Topic: Using Neo Flash save function?  (Read 422 times)

cabbage

  • Sr. Member
  • ****
  • Posts: 342
Using Neo Flash save function?
« on: December 25, 2011, 04:12:22 PM »
Does anyone have any information on using the save RAM on a Neo Flash 128Mb card? I tried running a few tests using HuC but have had no luck so far. The internal BRAM is easy enough to work with, but it would be nice to support saving even on machines without the internal memory. If anyone has any knowledge or tips, I'd much appreciate your sharing. Thanks :)

Necromancer

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 21371
Re: Using Neo Flash save function?
« Reply #1 on: December 27, 2011, 04:11:12 AM »
I believe it only works with games that try to save to ram on the HuCard (Tennokoe Bank is the sole such huey); it doesn't work for the other games that save to internal memory.
U.S. Collection: 98% complete    157/161 titles

cabbage

  • Sr. Member
  • ****
  • Posts: 342
Re: Using Neo Flash save function?
« Reply #2 on: December 27, 2011, 02:51:51 PM »
Sure, I understand that it is a different system than the internal backup. I've had no problem writing code that works with the internal BRAM using HuC, but I'm really curious to try some code that can interact with the save RAM on the cart. Tennokoe Bank doesn't seem to work on the Neo Flash--or at least I haven't gotten it to--so I'm eager to see if the RAM even exists and how it works. It's a completely worthless feature of the flash cart at the moment, but I just thought it would be fun to try and support it on some (freeware) homebrew/demos.

Been really busy lately so I've had little time to tinker and even read up on hucard save RAM. If my assumptions are correct (definitely not saying they are), I think it may act as a sort of modified ROM bank that just has 0x2000 bytes of writeable memory. In one of the early flashing tools released by NeoTeam, the save RAM utility made some mention of dumping/writing 0x2000 bytes to 0x800000 (going from my poor memory here, don't shoot me if I'm way off!) But I haven't found a way to get HuC to let me try reading/writing from there. It's been quite awhile since I have done any coding for older hardware and I'm still new to PCE development so maybe I'm just making some simple mistakes.

My fear is that HuC won't allow me to get at 0x800000 (or wherever it is stored) due to how it handles ROM banks or due to the fact that it's compiling such a small program that it will baulk at accessing something that it thinks doesn't/won't exist... in which case, I'm at a loss, or at least need to rethink some things.

Enough rambling. I guess if no one here has any experience with HuCard save RAM I'll have to ask over at the NeoTeam forums and hope my question doesn't get lost in a sea of people complaining that their ROMs don't work  #-o
« Last Edit: December 27, 2011, 02:54:29 PM by cabbage »