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

chacal231077

Grand Master
Joined
Dec 21, 2017
Messages
1,084
Reaction score
543
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."

 
Ok, I checked all 5 revisions in Mame.

Original byte value to change is always $36

DOAA (Dead or Alive Revision A, Model 2A)
"epr-19311a.13" CRC: 1be62912 SHA1(dcc2df8e28e1a107867f74248e6ffcac83afe7c0)
ROM OFFSET: $2259 = $36 -> $32
CHK1 OFFSET: $637C7 = $85 -> $81
CHK2 OFFSET: $637D7 = $7A -> $7E

DOAAB (Dead or Alive Revision A, Model 2A)
"epr-19311.13" CRC: 8818363d SHA1(c10e07d4d90d5b975056f53bd5284de8cabd136a)
ROM OFFSET: $22CB = $36 -> $32
CHK1 OFFSET: $6360F = $6A -> $66
CHK2 OFFSET: $6361F = $95 -> $99

DOAAE (Dead or Alive Revision A, Model 2A)
"epr-19384a.13" CRC: 034a3ab9 SHA1(a01d2f0a4accfdf892228b65c25e2ad9144ecf59)
ROM OFFSET: $22A9 = $36 -> $32
CHK1 OFFSET: $636EF = $B5 -> $B1
CHK2 OFFSET: $636FF = $4A -> $4E

DOAB (Dead or Alive Revision B, Model 2B)
"epr-19380b.16" CRC: 766c1ec8 SHA1(49250886f66db9fd37d88bc22c8f22046f74f043)
ROM OFFSET: $2249 = $36 -> $32
CHK1 OFFSET: $6749F = $4C -> $48
CHK2 OFFSET: $674AF = $B3 -> $B7

DOA (Dead or Alive Revision C, Model 2B)
"epr-19380c.16" CRC: 58cfeaa9 SHA1(4319c22b8ebcff152676b62b5b1d4c1c7ce64fa6)
ROM OFFSET: $2251 = $36 -> $32
CHK1 OFFSET: $69217 = $9C -> $98
CHK2 OFFSET: $69227 = $63 -> $67

Edit: Added checksums offsets.
 
Last edited:
Ok, I checked all 5 revisions in Mame.

Original byte value to change is always $36

DOAA (Dead or Alive Revision A, Model 2A)
"epr-19311a.13" CRC(1be62912) SHA1(dcc2df8e28e1a107867f74248e6ffcac83afe7c0)
ROM OFFSET: $2259 = $36 -> $32

DOAAB (Dead or Alive Revision A, Model 2A)
"epr-19311.13" CRC(8818363d) SHA1(c10e07d4d90d5b975056f53bd5284de8cabd136a)
ROM OFFSET: $22CB = $36 -> $32

DOAAE (Dead or Alive Revision A, Model 2A)
"epr-19384a.13" CRC(034a3ab9) SHA1(a01d2f0a4accfdf892228b65c25e2ad9144ecf59)
ROM OFFSET: $22A9 = $36 -> $32

DOAB (Dead or Alive Revision B, Model 2B)
"epr-19380b.16" CRC(766c1ec8) SHA1(49250886f66db9fd37d88bc22c8f22046f74f043)
ROM OFFSET: $2249 = $36 -> $32

DOA (Dead or Alive Revision C, Model 2B)
"epr-19380c.16" CRC(58cfeaa9) SHA1(4319c22b8ebcff152676b62b5b1d4c1c7ce64fa6)
ROM OFFSET: $2251 = $36 -> $32
Whoua =O Thank you Again 🐌😭🙏
 
🐌🐌🐌😋
925923379_29901396399445860_3529391176535931734_n.jpg
921302012_29901396679445832_736694484950907584_n.jpg
927884794_29901397176112449_3850926335110845647_n.jpg
 
Back
Top