sotn-decomp/config
Luciano Ciccariello 18f2bde385
Use PSP platform to disassemble PSP overlays (#1118)
Having `platform: psx` will not correctly disassemble PSP functions with
opcodes that are not part of the R3000 (the PSX CPU) architecture. These
functions would be disassembled by Splat as a bunch of `.word
0xBLAHBLAH`.

Changing the platform to `psp` introduces all sort of new challenges.
Function prototypes needs to be declared earlier. But also the MWCC
compiler will not accept the `%lo` and `%hi` dialect from GNU AS. There
were some patches on `mwcpp.py` to use `la SYMBOL_NAME` that would
expand into a `lui / addiu` combo. But even though symbols needs to be
declared like function prototypes at the top of the file. This is simply
not feasible on bigger overlays.

As a solution to the problem above, I replaced the existing patches by
converting instructions into `.word`. The overlay cannot longer be
relocated with this approach, but it is not an issue as the final goal
is to decompile these functions any way.

The labels in the jump table has the same problem, which forced me to
change the segment type from `rodata` to `data.

This is just another single step to create the conditions to start
including bigger re-compilable PSP overlays. I am sure the `mwcpp.py`
solution will be thrown into the bin at some point, but this PR improves
our current situation.
2024-05-06 19:35:28 +01:00
..
saturn Saturn: Decompile entrypoint, don't strip elfs (#659) 2023-10-02 06:47:44 -07:00
check.hd.sha Add TT_000 from the HD version (#1111) 2024-04-04 22:28:57 +01:00
check.pspeu.sha Add TT_000 overlay from PSP (#1113) 2024-04-21 02:18:10 +01:00
check.saturn.sha Saturn: Add Alucard overlay (#658) 2023-10-01 16:26:24 -07:00
check.us.sha Split BIN/WEAPON0.BIN (#154) 2023-08-10 23:56:40 +01:00
dirt.hd.json Import 4A538, demo and 5087C data (#835) 2023-12-12 10:36:34 -08:00
dirt.pspeu.json Add TT_000 overlay from PSP (#1113) 2024-04-21 02:18:10 +01:00
dirt.saturn.json Import 4A538, demo and 5087C data (#835) 2023-12-12 10:36:34 -08:00
dirt.us.json Import LBA data (#922) 2023-12-31 15:44:56 +00:00
disk.us.lba Writes built binaries into build/us/ 2023-02-21 20:06:27 +00:00
gfx.game.json Extract BIN/F_GAME.BIN (#886) 2023-12-25 19:23:25 +00:00
splat.hd.dra.yaml Migrate rodata to functions for dra (#1084) 2024-02-25 17:44:11 +00:00
splat.hd.tt_000.yaml Add TT_000 from the HD version (#1111) 2024-04-04 22:28:57 +01:00
splat.pspeu.tt_000.yaml Use PSP platform to disassemble PSP overlays (#1118) 2024-05-06 19:35:28 +01:00
splat.us.dra.yaml Migrate rodata to functions for dra (#1084) 2024-02-25 17:44:11 +00:00
splat.us.main.yaml Correct the split of libapi/l10.c (#1099) 2024-03-14 15:57:27 -07:00
splat.us.ric.yaml Pass undefined_syms files to linker (#1065) 2024-02-18 14:57:03 +00:00
splat.us.stcen.yaml Pass undefined_syms files to linker (#1065) 2024-02-18 14:57:03 +00:00
splat.us.stdre.yaml Pass undefined_syms files to linker (#1065) 2024-02-18 14:57:03 +00:00
splat.us.stmad.yaml Pass undefined_syms files to linker (#1065) 2024-02-18 14:57:03 +00:00
splat.us.stno3.yaml Pass undefined_syms files to linker (#1065) 2024-02-18 14:57:03 +00:00
splat.us.stnp3.yaml Pass undefined_syms files to linker (#1065) 2024-02-18 14:57:03 +00:00
splat.us.stnz0.yaml Pass undefined_syms files to linker (#1065) 2024-02-18 14:57:03 +00:00
splat.us.strwrp.yaml Pass undefined_syms files to linker (#1065) 2024-02-18 14:57:03 +00:00
splat.us.stsel.yaml Pass undefined_syms files to linker (#1065) 2024-02-18 14:57:03 +00:00
splat.us.stst0.yaml Decompile ST0 EntityDraculaFinalForm (#1058) 2024-04-02 21:56:14 +01:00
splat.us.stwrp.yaml Pass undefined_syms files to linker (#1065) 2024-02-18 14:57:03 +00:00
splat.us.tt_000.yaml Add TT_000 from the HD version (#1111) 2024-04-04 22:28:57 +01:00
splat.us.weapon.yaml weapon rodata migration (#1067) 2024-02-18 12:02:02 -08:00
symbols.beta.txt DRA DrawMapCursor (#1079) 2024-02-23 16:14:38 -08:00
symbols.hd.dra.txt DRA func_8010DA70 (#1095) 2024-03-07 22:19:44 +00:00
symbols.hd.tt_000.txt Add TT_000 from the HD version (#1111) 2024-04-04 22:28:57 +01:00
symbols.hd.txt DRA DrawMapCursor (#1079) 2024-02-23 16:14:38 -08:00
symbols.pspeu.tt_000.txt PSP: func_80171ED4 (#1116) 2024-05-04 19:09:31 +01:00
symbols.pspeu.txt Use PSP platform to disassemble PSP overlays (#1118) 2024-05-06 19:35:28 +01:00
symbols.stmad.txt ItemTypes to EquipKind and blendMode to drawMode (#999) 2024-01-20 13:16:03 -08:00
symbols.us.dra.txt DRA HandleGameOver (#1086) 2024-02-25 22:14:00 +00:00
symbols.us.main.txt Migrate .rodata to functions for main.exe (#1078) 2024-02-24 11:35:01 +00:00
symbols.us.ric.txt DRA RenderEntities (non matching) (#1034) 2024-02-06 10:54:35 -08:00
symbols.us.stcen.txt EntityStageNamePopup (#994) 2024-01-19 03:07:13 +00:00
symbols.us.stdre.txt ItemTypes to EquipKind and blendMode to drawMode (#999) 2024-01-20 13:16:03 -08:00
symbols.us.stno3.txt ItemTypes to EquipKind and blendMode to drawMode (#999) 2024-01-20 13:16:03 -08:00
symbols.us.stnp3.txt ItemTypes to EquipKind and blendMode to drawMode (#999) 2024-01-20 13:16:03 -08:00
symbols.us.stnz0.txt Pass undefined_syms files to linker (#1065) 2024-02-18 14:57:03 +00:00
symbols.us.strwrp.txt Decomp RWRP func_8018EC10 (#1026) 2024-02-03 10:43:42 -08:00
symbols.us.stsel.txt Decomp SEL func_801B69F8 (#1007) 2024-01-24 18:34:05 +00:00
symbols.us.stst0.txt Decompile ST0 EntityDraculaFinalForm (#1058) 2024-04-02 21:56:14 +01:00
symbols.us.stwrp.txt EntityStageNamePopup (#994) 2024-01-19 03:07:13 +00:00
symbols.us.tt_000.txt TT_000 func_801733D4 (#789) 2023-11-18 18:40:14 -08:00
symbols.us.txt _SsSeqPlay (#1092) 2024-03-04 19:36:00 +00:00
symbols.us.weapon.txt Enhance Makefile for WEAPON0.BIN (#466) 2023-08-14 02:03:54 +01:00
symbols.us.weapon.txt.in EntityWeaponShieldSpell symbol (#508) 2023-08-24 12:31:05 +01:00
undefined_syms.beta.txt Update splat (#247) 2023-06-12 06:04:25 +01:00
undefined_syms.hd.txt PSP: func_80171ED4 (#1116) 2024-05-04 19:09:31 +01:00
undefined_syms.pspeu.txt PSP: func_80171ED4 (#1116) 2024-05-04 19:09:31 +01:00
undefined_syms.us.txt PSP: func_80171ED4 (#1116) 2024-05-04 19:09:31 +01:00