Legaia 2: Duel Saga cover artAI generated
PS2PlayStation 2

Legaia 2: Duel Saga

AI contributions: Welcome

A Work-In-Progress reverse engineering and matching decompilation of Legaia 2: Duel Saga for the PlayStation 2 (PAL, SLES-50891).

0

Code

4.59%
decompiled of 2,022,408 bytes
  • 4.43% matching
  • 0.16% partially matching
  • 95.41% to do

Data

<0.01%
decompiled of 1,768,056 bytes
  • 136 done
  • 1,767,920 to do

code +0.02% · data ±0% ·

Match more work.cpp functions by hand (some need -fno-gcse)

No areas were stored for this report, so only the totals are shown.

History

DecompiledMatchingDataClick the chart to see the project at that commit.
0%25%50%75%100%2026-10-162026-10-19

Reports up to this one (44)

WhenDecompiledMatchingDataCommit
4.59% +0.02%4.43% +0.02%<0.01%7913b43 Match more work.cpp functions by hand (some need -fno-gcse)
4.57% +0.01%4.41% +0.01%<0.01%142f861 Match work.cpp 246a40 and 245f98 by hand
4.56% +0.01%4.40% +0.01%<0.01%76388a8 Match four small work.cpp functions by hand
4.55% +0.01%4.39% +0.01%<0.01%1941e08 gen_fam: set-field-then-two-calls family; gen_tiny3: array-typed bases (+8)
4.54% +0.46%4.38% +0.46%<0.01%60bca9e Generators for new-wrappers, function-local statics and small function families; duplicate-named functions too
4.08% +0.01%3.92% +0.01%<0.01%06c83f3 gen_tiny3: tail calls with fewer arguments, and returning the callee's result (+8)
4.07% +0.02%3.91% +0.02%<0.01%485f82c gen_tiny3: pass through every argument the code reads when tail calling (+24)
4.04% +0.04%3.89% +0.04%<0.01%1c8e1e0 gen_tiny3: lq/sq typedef in the check, rotations of long store lists (+15)
4.00% +0.02%3.84% +0.02%<0.01%01eb474 gen_tiny3: also try void when the last register written was only scratch (13 more)
3.99% +0.02%3.83% +0.02%<0.01%a4bbacc gen_tiny3: 64/128-bit and float tiny functions (23 more)
3.96% +0.02%3.81% +0.02%<0.01%2d5f4aa gen_tiny2: tiny functions whose statements need another order (28 more)
3.94%3.78%<0.01%457dabc Match yokota 23dfb0 by hand
3.94%3.78%<0.01%3e33481 Match yokota 23d038 by hand (exceptions on)
3.93% +0.02%3.78% +0.02%<0.01%b55e749 Match yokota 23fcb0 by hand (needs -fno-gcse)
3.91% +0.03%3.75% +0.03%<0.01%b4111be Match yokota 23ee88, 23f1c8, 23fa50 by hand
3.88% +0.02%3.72% +0.02%<0.01%664b9b6 report: handle the address of a function in the same file (lui/addiu against a section)
3.86% +0.01%3.70% +0.01%<0.01%31251b3 Match yokota 23efb8 and 23f090 by hand
3.85% +0.01%3.69% +0.01%<0.01%2d75714 Match six small yokota functions by hand
3.84%3.68%<0.01%f89fe5d Match abeshi 25fdc8 by hand (the loaded words are also DbgPrintf's arguments)
3.84%3.68% +0.04%<0.01%a8b8520 Match 269fc8 by hand (byte pointer to the unit table keeps one base register)

Badges

For your README. They show the default version and update with every report.

Decompiled
[![Decompiled](https://decompilati.onl/badge/legaia-2-duel-saga.svg)](https://decompilati.onl/projects/legaia-2-duel-saga)
Matching
[![Matching](https://decompilati.onl/badge/legaia-2-duel-saga/matching.svg)](https://decompilati.onl/projects/legaia-2-duel-saga)
Data
[![Data](https://decompilati.onl/badge/legaia-2-duel-saga/data.svg)](https://decompilati.onl/projects/legaia-2-duel-saga)