Author Topic: NEW SNES 2.3 core release, support Real Time Save  (Read 13654 times)

0 Members and 1 Guest are viewing this topic.

Offline Dr.neo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
NEW SNES 2.3 core release, support Real Time Save
« on: October 09, 2010, 06:33:34 PM »
NEW SNES 2.3 core SPEC:

Added the MODE 4 << COPY MODE
$400000~$4FFFFF = $C00000~$CFFFFF < map to GBA card flash/psram memory
$500000~$5FFFFF = $D00000~$DFFFFF < map to SNES card PSRAM


$00C042 SET 0X01 enable the real time save function (by default is disable,you must set it before enter the game)

in the game if $00FFFE SET 0X01

will remap the PSRAM last 8Mbit to 65816 CPU $F00000~$FFFFFF (read/write able)

in the game if $000FFFE SET 0X00

will back to game
=====================================================================================
the MENU RAM expense function

$00C030 set 0X00 >>> disable (default seting)
$00C030 set 0X01 >>> remap the last SNES 8Mbit PSRAM TO $000000~$0FFFFF
$00C030 set 0X03 >>> remap the last SNES 8Mbit PSRAM TO $600000~$6FFFFF                 
$00C030 set 0X02 >>> remap the last SNES 8Mbit PSRAM TO $F00000~$FFFFFF

=====================================================================================
$00C050 SET 0X00 >>> don't back to MENU
            0X01 >>> hold the RESET button over 3 seconds will back to MENU 
            0X02 >>> press the RESET button then back to MENU 
            0X03 >>> use software back to MENU 


about the working ram in the game (for soft-reset / real time save and cheat code)
$00C012 SET  0X01  $003800~$003FFF RAM READ  ON  <CPLD RAM (by default is set to 0X00 when hard power on)
$00C015 SET  0X01  $003800~$003FFF RAM WRITE ON  <CPLD RAM (will set to 0X00 if back to menu)


1.GAME $00FFEA:XX YY move to 0X3FF0 << after NMI INT modified , then excute the below code , and need copy the INT value to 0X3FF0
format:  3FF0:XX YY
 
in menu change the game rom $00FFEA:00 3E
 
   
$3E00  PHP
       PHA
       LDA  $004219
       CMP  #$30     ( SEL+START )
       BEQ  SRET
       CMP  #$10     (START )
       BEQ  NMIX 
       PLA
       PLP
       JMP ($3FF0)   << JUMP NMI 

SRET: 
       STA $00FFFF   << RESET CPLD IO
       NOP
       JMP ($FFFC)   << JUMP MENU           


NMIX:
       
       JMP ($3FF0)   << JUMP NMI


In my world,have 0 and 1 only ......Matrix World......

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #1 on: October 09, 2010, 06:56:30 PM »
Sounds interesting. I'll look into this stuff when I'm done with the SD code.


Quote
in the game if $00FFFE SET 0X01

Wouldn't FFF6 or FFE6 be better, since FFFE is used as the IRQ vector in emulation mode?


Quote
LDA  $004219

This will only work if the game uses the new SNES-style way of reading the joypad, since $4218-4219 only are updated if $4200.1 is set. $4219 will not contain any meaningful data if the game uses the old NES-style way of reading the joypad bit-by-bit from $4016 (I don't know if any SNES games do that).

Offline ronaldo_76

  • Full Member
  • ***
  • Posts: 196
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #2 on: October 09, 2010, 07:30:47 PM »
mic, have your new menu the reset function insert? when not, i'm waiting when this feature is done. everytime i switch the console on/off on/off thats not good.  ~sm-66.gif~.gif

thanks

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #3 on: October 09, 2010, 08:02:33 PM »
Quote
mic, have your new menu the reset function insert?

No, it doesn't use any of this new stuff yet. I found out about these changes at the same time as everyone else (i.e. yesterday).

Offline Dr.neo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #4 on: October 10, 2010, 01:09:53 AM »
Quote
Wouldn't FFF6 or FFE6 be better, since FFFE is used as the IRQ vector in emulation mode?

ok, will check the FFF6 address ...

and about the "LDA  $004219", myth hardware without any limit with it, it just one demo clip for show you the working flow, you can use any address like  $4016 , just you want  ~sm-57.gif~.gif
In my world,have 0 and 1 only ......Matrix World......

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #5 on: October 10, 2010, 04:21:03 AM »
Quote
and about the "LDA  $004219", myth hardware without any limit with it, it just one demo clip for show you the working flow, you can use any address like  $4016 , just you want

Yes, but my point is that if you want to read the joypad within an NMI hook that runs from CPLD RAM while a game is running, then you need to know what method the game is using for reading the joypad. I don't know if there's any way of detecting that (as far as I know, SNES register $4200 - which contains the flag - is write-only).

Always using the NES-style method in the NMI hook (strobe $4016, then read it N times to get the status of all the buttons you want) might be a solution. The only downside is that if the game also uses that method of reading the joypad - and if it was reading the joypad right when the NMI occurred - then you'll ruin the joypad data it's getting for that frame, which could have strange results. But maybe that's an acceptable trade-off.

The SNES can be a bit "special" sometimes..   ~sm-51.gif~.gif

Offline Dr.neo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #6 on: October 12, 2010, 06:17:22 PM »
hi mic_

here is the new firmware, have change the $00FFFE to $00FFF6, that's all.

about the $42xx question, it's  a PURE software issue, our hardware don't handle it at all  ~sm-75.gif~.gif
In my world,have 0 and 1 only ......Matrix World......

Offline Dr.neo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #7 on: October 26, 2010, 10:50:29 PM »
hi mic_ , some news about your SNES menu? something need us to improve or change?  ~sm-41.gif~
In my world,have 0 and 1 only ......Matrix World......

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #8 on: October 27, 2010, 03:14:10 AM »
No, not that I know of. But I haven't tried the core updates yet, since it wouldn't make sense for me to start working on any new features until the SD code is in place.

Offline ~tak

  • Newbie
  • *
  • Posts: 46
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #9 on: December 01, 2010, 03:27:22 AM »
aight, I've done finally the upgrade to 2.3 with the nero dual programmer. I'm using mic's menu and do not see any change of the usage. do I have to use the original neoflash menu or how can I now access the new functions?

btw, what purpose has the switch on the neoflash cart?

thanks,
~tak

Offline Aleomark

  • Sr. Member
  • ****
  • Posts: 290
  • Just a gamer!
    • El otro lado
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #10 on: December 01, 2010, 03:41:45 AM »
there's nothing new now for us, we had to wait new menu version and core upgrade, the core upgrade is already done, so we only have to wait for new menu version

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1751
  • Just a coding machine.
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #11 on: December 01, 2010, 05:35:11 AM »
This is a busy time of year for most people, so neither mic or I have had much time to work on the Neo Myth stuff lately. Accessing the SD card is working, but it's not yet added into the menu - code needs to be added for keeping info on directory entries, navigating the SD, and loading games.

Offline mic_

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 632
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #12 on: December 01, 2010, 04:39:24 PM »
I have actually begun working on the menu again recently after having coded nothing at all for about a month (outside of my job anyway). But these new core features are not a priority for me at the moment. I'm working only on the SD file browsing/loading. Initially I'll limit it so that all ROMs must be in one directory (probably /SNES/ROMS), and it won't have SaveRAM support to begin with. The menu will most likely start in GBA Card mode, and then you'll switch to SD mode by pressing a button on the controller (otherwise people without an SD card attached would get an error message every time they started the menu, which would be annoying).

Offline Dr.neo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #13 on: December 02, 2010, 03:17:37 PM »
any way is a start at least  ~sm-69.gif~.gif
In my world,have 0 and 1 only ......Matrix World......

Offline stefan_iro

  • Full Member
  • ***
  • Posts: 218
  • It´s a me, Mario
Re: NEW SNES 2.3 core release, support Real Time Save
« Reply #14 on: December 02, 2010, 10:29:24 PM »
I think these are very good news!
Maybe we have SD support for SNES Myth Menu by Christmas time?  ~sm-56.gif~.gif
-----------------------------------
8bit & 16bit
the golden age of videogames