Unlocking Raidou on original hardware (Sega Model 2A-CRX & 2B-CRX) - EPROM patch or NVRAM ?

chacal231077

Grand Master
Joined
Dec 21, 2017
Messages
1,071
Reaction score
532
Location
France
Hi everyone,:)
I recently came across a really cool discovery on the Free Step Dodge forum regarding the original Dead or Alive arcade game (Sega Model 2):

Sega model 2 Arcade Unlock Raidou page 1
Sega model 2 Arcade Unlock Raidou page 2

To summarize the work done by grap3fruitman (who disassembled the game in Ghidra) and Matt Ponton:

  • The original hidden condition: Raidou (along with his native character select box and portrait already built into the game) unlocks naturally once the cabinet's Bookkeeping Total Time counter reaches 600 hours (about 25 days of runtime).
  • The emulator hack: They created a LUA script for Model 2 Emulator (with an external cheat menu) as well as MAME cheats that force the unlock flag in RAM (0x54fd56 or 0x54fd76 depending on the ROM revision). The author even shared his full Ghidra project on GitHub.
My question for the Sega Model 2 hardware experts:
Since the LUA script only works on PC emulators, I would like to know how to port this unlock directly to original hardware (Sega Model 2A-CRX and 2B-CRX boards) so Raidou is playable right out of the box without waiting 25 days:

  1. What is the best injection method?
    • Program EPROMs (i960 CPU): Can we directly patch the assembly code found in Ghidra to force the unlock flag to 1 at boot, and burn new EPROMs (such as 27C4096 / 27C160 on the ROM Board)? Is there a boot checksum check that would reject a modified ROM?
    • Backup memory (SRAM / NVRAM): Would it be easier to flash a modified backup memory dump (on the CPU Board) with the runtime counter already set past 600 hours (0x20f57f seconds)?
  2. Which exact chip(s) need to be reprogrammed on both board revisions (2A-CRX and 2B-CRX)?
  3. Given how much AI-assisted reverse engineering has accelerated these kinds of projects lately (to analyze the i960 assembly from the existing Ghidra project, bypass checksums, and generate a clean binary patch), would creating a 100% working hardware mod for both revisions be straightforward?
Thanks in advance for your help and technical insights!:thumbup:
 
You don't need AI when you have the source code.

By looking at the source and a test in the Mame debugger, shows that the patch can be done by patching one byte.
Only the program rom (EPR-xxxxxx.xx). Need to be modified.

The offset depending the revison and region, there are several in Mame. Tell which one you need patch for and I can show you how to do it...

Edit: Found a better way to patch. Only 1 rom/Byte needed to be patched.
 
Last edited:
You don't need AI when you have the source code.

By looking at the source and a test in the Mame debugger, shows that the patch can be done by patching one byte.
Only the program rom (EPR-xxxxxx.xx). Need to be modified.

The offset depending the revison and region, there are several in Mame. Tell which one you need patch for and I can show you how to do it...

Edit: Found a better way to patch. Only 1 rom/Byte needed to be patched.

I have a Japanese version of a Sega Model 2A-CRX board (sold by Hikaru almost 20 years ago) that I still own.


I also have a Japanese Sega Model 2B-CRX Revision B."

 
Back
Top