Mortal Kombat II Restored

Mortal Kombat II Restored 2.1

Created a new flash for saroo and out.iso works. Tested on my saroo. Please comfirm out.iso working on your hardware. Building a new ram test to test the settings on real hardware. Note that the patches for games in firmware remain unchanged. Works with default config. FPGA was reprogramed. This is a test firmware, its at your own risk. Uploading video as proof.


Stress test failing.

The stress test fails on the experimental FPGA: 1,197 errors at Sega timing with the CD load off. The first error is a stale halfword on a cache miss, so the read path is slightly too slow on real hardware. The diagnosis is recorded in the FPGA notes.
 

Attachments

  • 20261124_165039.jpg
    20261124_165039.jpg
    1.8 MB · Views: 0
Last edited:
Got the new FPGA code to pass RAM tests. Soak tests have started. 30 mins each. With and without CD load.
 

Attachments

  • 1.jpg
    1.jpg
    1.7 MB · Views: 0
  • 2.jpg
    2.jpg
    1.7 MB · Views: 0
Works after testing. Powers on without hanging on my console. Castlevania hack 4MB cart works, I saved and loaded a save game. The out.iso demo works, no config or patches needed. The two RAM soak tests work, one without CD load and one with CD load. All that's left is testing. Need you to test now. Play games.

Issues:
One console tested only. The late data line D13 we found may differ on other Saturns. Change 7 waits about 80ns before latching write data, and the simulation fails at 90ns. That leaves only a small margin for consoles that are slower.

To sum up, my Saroo now runs Sega's RAM-cart timing (0x23301FF0) as well as its own timing.

Update: Added the RAM Stress test ISO.
Added update that you can flash to Saroo.
Note: I didn't remove the patches Saroo uses for games.

Important: Update to Saroo version 0.9 first and then run my FPGA update from the update menu on Saroo. My Saroo PCB has Version 1.66 on it. If the cartridge bricks you can recover it with the USB blaster available on Aliexpress. There is a 10 pin header point on the Saroo PCB for it to connect. https://www.aliexpress.com/item/1005006358681875.html?spm=a2g0o.cart.0.0.48bd38da0LJLlg&mp=1&pdp_npi=6@dis!GBP!GBP+3.01!GBP+3.01!!GBP+3.01!!!@0b1585c117955479299731693e0e1b!12000060148911233!ct!UK!4747794819!!2!0! You can connect the wires to the 10 pin holes on the PCB and Flash a new FPGA program from 0.9.
 

Attachments

Last edited:
Saroo and WASCA work completely differently.

The main difference is that WASCA doesn't have the ODE features but actually aims to respect the official specs of the RAM cart and Backup RAM carts. So it actually works correclty. Both use modern SDRAM chips and an FPGA. The RAM cart test I linked has been run on WASCA and proven to work correctly.

See redesign of the Saroo fpga and not 100% likely to work. WASCA has issues with RAM cartridge support as well.

The only real issue WASCA has is timing with the 1MB RAM cart because the timing for that cart's DRAM chip is stricter than the 4MB RAM cart. It still works far better than Saroo at it. The 4MB cart test passes with flying colors on WASCA.

Works after testing. Powers on without hanging on my console. Castlevania hack 4MB cart works, I saved and loaded a save game. The out.iso demo works, no config or patches needed. The two RAM soak tests work, one without CD load and one with CD load. All that's left is testing. Need you to test now. Play games.

Issues:
One console tested only. The late data line D13 we found may differ on other Saturns. Change 7 waits about 80ns before latching write data, and the simulation fails at 90ns. That leaves only a small margin for consoles that are slower.

To sum up, my Saroo now runs Sega's RAM-cart timing (0x23301FF0) as well as its own timing.

Update: Added the RAM Stress test ISO.
Added update that you can flash to Saroo.
Note: I didn't remove the patches Saroo uses for games.

Important: Update to Saroo version 0.9 first and then run my FPGA update from the update menu on Saroo. My Saroo PCB has Version 1.66 on it. If the cartridge bricks you can recover it with the USB blaster available on Aliexpress. There is a 10 pin header point on the Saroo PCB for it to connect. https://www.aliexpress.com/item/1005006358681875.html?spm=a2g0o.cart.0.0.48bd38da0LJLlg&mp=1&pdp_npi=6@dis!GBP!GBP+3.01!GBP+3.01!!GBP+3.01!!!@0b1585c117955479299731693e0e1b!12000060148911233!ct!UK!4747794819!!2!0! You can connect the wires to the 10 pin holes on the PCB and Flash a new FPGA program from 0.9.

Good, you actually fixed what TPUNIX was too lazy to do. Go put up a PR on the github page. Thanks for proving that I was actually right here and that there is indeed a RAM cart compatibility issue with Saroo.
 
TPUNIX cares more about the CD side of things which likely means he would never do this for you. Saroo patches provide support for all games that require 1MB or 4MB support. This will hopefully make it easier for people developing using the Saroo, no special Saroo configurations required or patches in Saroo. The main benefit is now the RAM cartridge is faster on Saroo, the icing is that we can just use the Sega method and not have to check for the Saroo's 4MB first. Working on the Saroo github for you. GitHub - evilkittie16-cyber/SAROO: SAROO is a SEGA Saturn HDloader
 
Last edited:
TPUNIX cares more about the CD side of things which likely means he would never do this for you. Saroo patches provide support for all games that require 1MB or 4MB support. This will hopefully make it easier for people developing using the Saroo, no special Saroo configurations required or patches in Saroo. The main benefit is now the RAM cartridge is faster on Saroo, the icing is that we can just use the Sega method and not have to check for the Saroo's 4MB first. Working on the Saroo github for you.
If you make a pull request for this you should also remove all the game specific patches for the RAM cart games and verify they also all work with your fix.
 
Remember Saroo sets itself up at boot, with the timings and all the patches do is remove the A-Bus setup in the games themselves. So it should work fine, even with the game patches. Does need tests on other consoles first but I have done all I can think off, with the hardware I have. Created a pull request.
 
Last edited:
Remember Saroo sets itself up and all the patches do is remove the A-Bus setup in the games. So it should work fine. Need tests on other consoles first. Created a pull request.
If you've truly fixed the A-Bus setting issues then the patches are no longer necessary and should be removed.
 
The SEGAGuysThe SEGAGuys are featuring Mortal Kombat 2 Restored on their channel.
- YouTube

@TrekkiesUnite118 I will look at it tomorrow, need a break from this as tired. I need change the ssfirm.bin to change the default timings to Sega timings. The FPGA is setup to work but the Firmware needs updating. I have attached the updated firmware I'm currently testing.

This firmware will mean the Saroo will use the default Sega ram cart timings and not its own. The ram test uses the sega timings and thus they're still right. Testing. Only issue I can see is with the Sega to Saroo logo change. I just goes right to the menu. Everything else tests the same. My console has issues as its old. So cannot find any other issues my end.

The firmware file will force Saroo to boot at Sega's timings. Thus, the game patches will stop games changing the timings. Every game I tested booted. Even the demo out.iso

In the morning I will look to remove the code that patches the RAM cart game setting so that Saroo default timings are used.

Note: Rename file to ssfirm.bin and put in the SAROO folder on the Mirco-sd card.
 

Attachments

Last edited:
Works after testing. Powers on without hanging on my console. Castlevania hack 4MB cart works, I saved and loaded a save game. The out.iso demo works, no config or patches needed. The two RAM soak tests work, one without CD load and one with CD load. All that's left is testing. Need you to test now. Play games.

Issues:
One console tested only. The late data line D13 we found may differ on other Saturns. Change 7 waits about 80ns before latching write data, and the simulation fails at 90ns. That leaves only a small margin for consoles that are slower.

To sum up, my Saroo now runs Sega's RAM-cart timing (0x23301FF0) as well as its own timing.

Update: Added the RAM Stress test ISO.
Added update that you can flash to Saroo.
Note: I didn't remove the patches Saroo uses for games.

Important: Update to Saroo version 0.9 first and then run my FPGA update from the update menu on Saroo. My Saroo PCB has Version 1.66 on it. If the cartridge bricks you can recover it with the USB blaster available on Aliexpress. There is a 10 pin header point on the Saroo PCB for it to connect. https://www.aliexpress.com/item/1005006358681875.html?spm=a2g0o.cart.0.0.48bd38da0LJLlg&mp=1&pdp_npi=6@dis!GBP!GBP+3.01!GBP+3.01!!GBP+3.01!!!@0b1585c117955479299731693e0e1b!12000060148911233!ct!UK!4747794819!!2!0! You can connect the wires to the 10 pin holes on the PCB and Flash a new FPGA program from 0.9.
yeah you should contribute with this on the git.
Edit: Please test MKII and my KoF97 patches (all three) to see if they work correctly with your proper RAM implementation on Saroo. If they don't, I will have to remove the config set made for it in the future.
 
Last edited:
Found the following games that have the patches.

GameSerial(s)
Dungeons & Dragons Collection (Disc 2)T-1245G Appears to work.
Noel 3T-22205G Appears to work.
FriendsT-20109G Appears to work.
Astra SuperstarsT-1521G Appears to work.
Magical Night Dreams: Cotton 1T-9906G Appears to work.
Magical Night Dreams: Cotton 2T-9904G Appears to work.
Street Fighter Zero 3T-1246G Appears to work.
Metal Slug v1.002T-3111G Appears to work.
Metal Slug v1.005T-3111G Appears to work.
King of Fighters '96T-3108G Appears to work.
King of Fighters '97 (1MB-cart version)T-3121G, T-4401G Appears to work.
Samurai Spirits 3T-3104G Appears to work.
Samurai Spirits 4: Amakusa KourinT-3116G Appears to work.
Real Bout Garou DensetsuT-3105G Appears to work.
Real Bout Garou Densetsu Special v1.001T-3119G Appears to work.
Real Bout Garou Densetsu Special v1.002 (Rev A)T-3119G Appears to work.
Super Real Mahjong P7T-16509G Appears to work.
Super Real Mahjong P7 SPT-16510G Appears to work.
Gouketsuji Ichizoku 3: Groove on FightT-14411G Appears to work.
Vampire SaviorT-1229G Appears to work.
Marvel Super HeroesT-1215G (JP), T-1214H (US), T-7032H (EU), 6106664 (JP demo) Tried one version and its appears to work.
X-Men vs. Street FighterT-1226G Appears to work.
Fighter's History DynamiteGS-9107 Appears to work.
Final Fight RevengeT-1248G Appears to work.
Pia Carrot e Youkoso!! 2T-20114G Appears to work. Tried two versions.

These patches' other jobs still apply, such as setting the 1MB/4MB cart type and KOF97's 4MB-version code changes.
Timing patch left as it was
GameSerial(s)Why
King of Fighters '95MK-81088, T-3101GThe timing write is mixed in with other code changes in one version| Appears to work.
Pocket FighterT-1230Gtpunix rewrote that code instead of using a nop |Appears to work.
UltramanT-13308G2MB ROM cart; the firmware sets 0x34403440 itself | Can't test without the ROM cart dump
I will remove these patches as you requested. These are in the firmware, so are safe. If there are issues, you use the stock firmware. No chance of bricking the Saroo. No FPGA changes. Now testing starts.

Mortal Kombat 2 Restored appears to be working.

Working on: Making all the menus and boot of Saroo work at the saroo stock timing. Games will boot at sega timings. Testing.
 

Attachments

Last edited:
Link is needed. Found here The King of Fighters' 97 English Patch - Updates . Testing for rare errors and issues atm. Will test your game afterward.

Working on the Sega to Saroo animation at the start. It's stopped working. Fixed. See attached file.

KoF97 4MB version. Works.
KoF97 6MB version. Works.

Looking at the 16MB hack for Shadow over Mystara.
Dungeons & Dragons Shadow Over Mystara (Saroo Only) - Last Updated 02/27/2025
-Load times optimized for Saroo.
-Game files optimized for better reading on disc.
Uses Saroo's 16MB extra RAM mode to help loading so this works only with Saroo carts.
The loading times were reduced to ~2 seconds, huge gains compared to the original release.

Creating new ram test for 8MB Saroo xram region. The whole 12MB YZB's hack can be used and works at Sega timing while the STM32 is busy.

On a Saroo there is 12MB of usable cart RAM in one block:
Range (uncached / cached)SizeStatus
0x22000000–0x223FFFFF / 0x02000000–0x023FFFFF4MBSaroo's own: firmware, game list, save RAM. Don't use.
0x22400000–0x227FFFFF / 0x02400000–0x027FFFFF4MBThe standard RAM cart
0x22800000–0x22FFFFFF / 0x02800000–0x02FFFFFF8MBExtra; free on any Saroo
Total usable12MB0x22400000–0x22FFFFFF, contiguous
So you can make a 12MB version of KoF97 6MB version.
 

Attachments

Last edited:
Added another 16MB as an experiment. So total 28MB RAM cartridge. You need to swap the attach file with mcuapp.bin We lose 4MB because Saroo is using that memory itself. Sega Saturn can only address 32MB total from the cartridge slot. So this is the full amount you can use. The rest of the 64MB of RAM on the Saroo is unused. The Saroo's CD side doesn't use the SDRAM as its cache. It uses the STM32H750's own internal RAM, a 512KB block called AXI SRAM that starts at 0x24000000. tpunix's README says the same: he chose the H750 because its internal SRAM can hold the whole CD buffer.

Soak testing the full 28MB before handing over for others to test.
Full Saroo address ranges after mcuapp.bin hack.
| Range | Size | What it is |
|-----------------------|-------|----------------------------------------------------------------------------|
| 0x22000000–0x223FFFFF | 4 MB | Saroo's own RAM (firmware, saves). Never touch. |
| 0x22400000–0x227FFFFF | 4 MB | Standard cart |
| 0x22800000–0x22FFFFFF | 8 MB | XRAM. Always there on a Saroo (ID "SR" at 0x25807000). |
| 0x23000000–0x23FFFFFF | 16 MB | AA24 high RAM, only after the MCU ROMCTL (0x41) command, newer boards only |

For the Mortal Kombat 2 Restored project: This allows the full arcade Mortal Kombat 2 data to fit in cartridge memory. On Saroo you have the options of, 1MB, 4MB, 12MB or 28MB. Should be enough to easily solve any Mortal Kombat 2 Restored data storage issues. You can store everything you need in the cartridge RAM.

tldr: SAROO-sega-abus-timing-2026-11-25 has all the files needed to update Saroo. Sega Official 1MB/4MB timings, games work without patches. Extra 8MB xram range tested and a 16MB RAM range added and tested on PCB version 1.66. Saroo menus and boot work on the original Saroo timings and all the games launch with sega's timings. FPGA was updated to support faster timings. Firmware was updated the apply the faster timings and remove patches. mcuapp.bin was updated to support an extra 16MB of RAM. Passed 2 hours of soak test.

 

Attachments

Last edited:
Good to see KoF97 4MB and 6MB both confirmed. Have you tested MKII Restored itself on Saroo with that mcuapp.bin? Ardiloso asked for MKII alongside the KoF97 patches, and it would help to know whether it runs in the normal 4MB window or needs the XRAM/AA24 ranges.
 
MKII Restored was tested and found to work. It's the reason the Saroo stuff all got started. Make the cartridge act completely like a Sega official RAM cartridge in all regards. The Sega RAM cartridge is faster memory wise.

MKII Restored is programmed to use the 4MB but it can use the 8MB of xram on any Saroo if MKII Restored is programmed to use it. AA24 range requires the Saroo updates I made and won't work on a normal Saroo. Kind of turns Saroo into a development cartridge. Offering 28MB of cartridge RAM and near Sega official RAM cartridge operation. I'm using it and I hope others will without issues.
 
Last edited:
Back
Top