Repository navigation
Match 273 PAL-only functions (28 with @divpad, depends on #204) - #205
Merged
Merged
Conversation
Retail's nops before div.s come from ps2eeas's divide-unit erratum padding, measured on ps2eeas 1.9.25 with -Wdivbug-on: div.s, sqrt.s, rsqrt.s, vdiv, vsqrt and vrsqrt 0 or 1 instruction after a label or after a B-type branch's delay slot get 2 minus that distance nops. The labels are mostly -g's line labels: retail was compiled with -g there and stripped, so a div.s that starts a source line has two nops. - ps2eeas_nops.py: rule 4 (--div), measured in the first-pass object, whose labels cc.sh now keeps with -Wa,-L; stabs lines no longer hide an mtc1 hazard from rule 3. - ps2eeas_stabs.py: drops -g's stabs directives and keeps its labels. - cc.sh: the @divpad cflags token compiles with -g and runs rule 4. Opt-in: some retail objects have no such nops (func_L00_00590698). -g leaves the code unchanged: a full build has the same .text in all 8687 compared objects. With these tools and no file using @divpad, the 9358 objects of a full build have the same .text as with the old tools. With @divpad, func_00502B10, func_L00_006D57A0, func_L00_0077FA58 and func_L01_004C3660 (division moved to its own line) match on PAL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ps2eeas measures the distance to the barrier after its own padding: retail has `nop nop div.s div.s` 20 times and `nop nop div.s nop div.s` never, and on ps2eeas a label followed by two div.s pads only the first. Rule 4 now adds the nops it gave earlier ops between the barrier and the current one to the distance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 1, 2026 17:31
3e7f2fb to
166fc40
Compare
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 1, 2026 17:54
166fc40 to
316b6e4
Compare
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 1, 2026 19:03
316b6e4 to
3c843da
Compare
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 1, 2026 19:21
3c843da to
3178f2d
Compare
move_sites() dropped the pending mtc1/li.s register at any directive, so `li.s; .p2align 3; $Lloop: <reader>` -- a form retail has -- counted one site fewer in the source than in the object and the tool refused the file. Alignment emits nothing there; when it does pad, the object has no adjacent pair and the counts still disagree, so the tool keeps refusing rather than guessing. A full build gives the same .text in all 9471 objects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 1, 2026 19:46
3178f2d to
35c00e9
Compare
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 1, 2026 20:16
35c00e9 to
ca50a58
Compare
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 1, 2026 20:45
ca50a58 to
ab8b806
Compare
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 1, 2026 21:12
ab8b806 to
f08e05c
Compare
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 2, 2026 08:18
f08e05c to
dea6265
Compare
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 2, 2026 09:04
dea6265 to
6e09fd9
Compare
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 2, 2026 09:35
6e09fd9 to
0f52359
Compare
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 2, 2026 19:37
0f52359 to
0e9c13b
Compare
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 2, 2026 22:13
0e9c13b to
7745b49
Compare
rabbitizer's R5900 table has no sqrt.s: it decodes a word such as
0x46000104 (sqrt.s $f4,$f0) as a bare `c1`. The object side of rule 4 then
saw one DIV op fewer than the source and refused the file ("object has 1 DIV
ops, source has 2"). Such a word is now decoded again with the plain MIPS
table. A test covers a sqrt.s after a label; it fails without the change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
func_L00_005CABB0, func_L00_00601990, func_L00_00670E18, func_L00_006EFD70, func_L01_003CC778, func_L01_003D0960, func_L01_0043B970, func_L01_00441A08, func_L01_00473F98, func_L01_00654E98, func_L01_00658558, func_L02_004C73C0, func_L02_004CDEF8, func_L06_004C9A80 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
func_0054B140, func_L00_00713F30, func_L00_00757C28, func_L00_00776C80 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Menu: func_0045CEE0, func_00465650, func_004BFCC8, func_004CBF90, func_004F9690, func_004FAB48, func_005120D8 Shared overlay: func_L00_00670D68, func_L01_00442518, func_L01_00572AD8, func_L01_00653FD8 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main: func_00502B10 Shared overlay: func_L00_006D57A0, func_L01_004C3660 Menu: func_L00_0077FA58 Each has the nops ps2eeas put before a div.s that starts a source line (retail built with -g); the files opt in with /* cflags: @divpad */. func_L01_004C3660 has its division on its own line, where retail's two nops say its line label was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main: func_0043AD58, func_0045E2D8, func_004645B0, func_00465C98, func_00466388, func_004659C0, func_00469620, func_0046B918, func_0046BA30, func_0046BBF0, func_0048B280, func_0049A410, func_004ABDF8, func_004E3818, func_00548190, func_0054C6B8 Shared overlay: func_L00_0060D1B8, func_L01_004CA068, func_L01_00405040 Control level: func_L15_004A24B0 @divpad (ps2eeas's nops before div.s): func_0043AD58, func_0046B918, func_0046BA30, func_00548190, func_0054C6B8, func_L00_0060D1B8, func_L01_004CA068, func_L01_00405040. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shared overlay: func_L00_00571068, func_L00_00598C18, func_L00_0059ACB0, func_L00_006ACB58, func_L00_00702B60, func_L01_00479E68, func_L01_004A9188, func_L01_004D4C58, func_L01_004DA820, func_L01_0052E988 Menu: func_L00_0070ECB0, func_L00_00734F80, func_L00_00741338, func_L00_0074C950, func_L00_0076A0C8, func_L00_0077F880 Main: func_00439CE8, func_0044D690, func_00463150, func_004A5EE0, func_00535E60 func_L00_0074C950 passes 0x400 as a third argument to func_L00_00601990, whose definition now takes it (unused there; same code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shared overlay: func_L00_00612E20, func_L00_00614A00, func_L00_00618378, func_L01_0040B708, func_L01_0045B7F8, func_L01_0046F540, func_L01_004A9670, func_L01_004CB058, func_L01_0056F8A0, func_L11_00408E58 Menu: func_L00_00713B40 Main: func_00421E38, func_0043D988 func_L00_00614A00 calls func_L00_00620AA8: the catalogue's func_L00_00620AB0 really starts 8 bytes earlier, at the two nops ps2eeas put before its leading div.s. func_L00_00713B40 stores D_00220BE8 as a byte through $gp; 0050D870.c defines it as a u32. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shared overlay: func_L01_0045BC88, func_L04_00499228, func_L02_004CDD50, func_L02_004C9D20, func_L00_00707320, func_L02_004CB1D8, func_L05_004DF408, func_L01_003E80B0 Level: func_L00_007572A0, func_L00_0077BE90, func_L00_0077C0E0, func_L00_0076A4A8, func_L00_0076AA78, func_L00_0076BA88, func_L01_00456868, func_L00_0076BC30, func_L00_00770FB0, func_L00_00776538, func_L00_007766E8, func_L00_0077FF78, func_L00_0075AAC8, func_L01_00531460, func_L00_0071C5B0, func_L00_0074F038, func_L00_00777490 Main: func_004795A8 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shared overlay: func_L01_004EB098, func_L01_003D7540, func_L01_004A8DF8, func_L01_00474C98, func_L01_004A92C8, func_L00_00612338, func_L01_003EC5A0, func_L01_004A8FB0, func_L02_004C9038, func_L01_004340D0, func_L01_004A9B80, func_L00_005AC050, func_L01_0046B100, func_L01_004A9490 Level: func_L02_004007F8, func_L00_0071E7A8, func_L15_004DDF70, func_L00_00725FF8, func_L00_0074A0C8, func_L00_007825E8, func_L01_00457CC0, func_L41_003BE160, func_L05_003E5CA8, func_L00_00718A30 Main: func_0044A8E0 func_L41_003BE160 declares func_00476678 with its int argument last, as 0051CCC0.c does (ints and floats take separate EE argument registers). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shared overlay: func_L00_00614E70, func_L01_00654C20, func_L01_004DDCD8 Level: func_L00_00713CB0, func_L15_005053A0, func_L00_00758EB8 Main: func_00469B80, func_004EFEF8, func_0048B778, func_004222C8, func_0044AC70, func_005482D8 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shared overlay: func_L00_005B1A78, func_L00_006BA3F0, func_L01_004ED760, func_L01_004A8BB8, func_L01_004146B0, func_L01_004DB208, func_L01_004A97E0, func_L01_004EE648, func_L04_004E84C0, func_L01_00441040, func_L01_00523220, func_L01_00588568 Level: func_L00_00760000, func_L01_00531970, func_L15_00503B60, func_L00_00757CB0, func_L00_00720B48, func_L01_005102E0, func_L01_00531700, func_L41_00445270, func_L00_00780A00, func_L00_0074D4C0, func_L00_0077EF00, func_L01_0050C010, func_L05_003E26F8, func_L00_0075BCB0 Main: func_004AE2D8, func_0044AE78, func_0050DF08 func_L00_00777490 (from an earlier commit) now returns func_0015BA30's result, which func_L00_00780A00 uses; its code is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shared overlay: func_L01_004B8520, func_L01_004EF6D8, func_L01_0062B6C0, func_L01_0047E848, func_L01_004B3F88 Level: func_L01_004E7850, func_L00_00726B70, func_L00_0072B3F8, func_L00_00721C50, func_L00_00743098, func_L41_006240A0, func_L01_005086B0, func_L00_0073DEC8, func_L00_0073FCF0 Main: func_004532C0, func_00458F10, func_004E3548 Seven were near misses of earlier batches, closed with levers found since. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shared overlay: func_L01_00406688, func_L01_0049C140, func_L01_004D4F30, func_L01_004B0310, func_L01_004EAD78, func_L05_0046A328, func_L00_005D6558, func_L01_00421C08, func_L00_005ABA70 Level: func_L00_00745008, func_L15_004EDC50, func_L00_0072BF68, func_L02_004C1168, func_L00_00735618, func_L00_0077F218, func_L15_004EE3C0 Main: func_004BE808, func_005430B0 Three were near misses of earlier batches, closed with levers found since. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shared overlay: func_L01_00446DA0 Level: func_L00_0073BE18, func_L00_00754C90, func_L00_0074F918, func_L00_00768C60, func_L05_00698D48, func_L15_006907E0, func_L00_00760CC0 Main: func_004D3290, func_004AA2E0, func_004E7F28 func_L05_00698D48 and func_L15_006907E0 call func_L00_0065BA18 and func_L00_0065BB60 with one argument, which those wrappers pass on to func_004D0ED8; the shared definitions are written as void(void), as L01_004ABE88.c already calls func_L00_0065BB60 with two arguments. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shared overlay: func_L01_004B7F00, func_L01_0043C578, func_L01_00453578, func_L01_004A6770, func_L00_00594AC8, func_L00_005AB038, func_L00_0068F6A8 Level: func_L00_00727EB8, func_L41_003DF1A8, func_L00_00777640, func_L00_0071EE50 Main: func_00528078 func_L00_0068F6A8 goes into L00_00691168.c. Both functions read D_002203B4 through $gp, which needs the variable defined in the same file. The new function indexes the bytes of the u16 at +0x68 that func_L00_00691168 tests, so Obj.x68 becomes a union of both views; func_L00_00691168 still matches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Level: func_L00_0075ACB0, func_L00_0074D7A8, func_L00_0075AC70, func_L00_00764088, func_L00_0072ACF0, func_L00_00736E50, func_L01_0050BA38, func_L08_003E7750, func_L01_00516F88, func_L00_00780598, func_L00_007581D8 Shared overlay: func_L01_0056FE58 Main: func_004EF280, func_004F5AF8 func_L00_007581D8 goes into L00_00757590.c: both use D_00221478, which is defined there and reached through $gp, so it must be defined in the file of each user. func_L00_00757590 still matches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Level: func_L00_00734790, func_L41_003D7218, func_L00_0075BF90, func_L00_00738F38 Shared overlay: func_L00_005C66E8, func_L01_003D0660, func_L02_004CDFA0 Main: func_005412B0, func_004F7428, func_0051B270 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 3, 2026 06:52
7745b49 to
01c8dc7
Compare
Level: func_L41_004420F8, func_L00_00774210, func_L00_0075DB30 Shared overlay: func_L01_004D1DF0, func_L01_004A9D60, func_L00_006B8A38 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 3, 2026 07:23
01c8dc7 to
4ecde9d
Compare
Level: func_L00_0072E3F8, func_L00_00758010, func_L00_0072AFB0, func_L00_00757748 Shared overlay: func_L01_004DA240, func_L00_0058B868 func_L00_0072E3F8 and func_L00_0072AFB0 use -fmove-all-movables: without it loop.c hoists one invariant only in its second pass, after the strength-reduction inits, and the loop preheader comes out in a different order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JeremyL71
force-pushed
the
pal/jeremyl71-batch1
branch
from
December 3, 2026 07:47
4ecde9d to
0ad38eb
Compare
ByteMatch progress reportSCUS_974.65
|
| Code matched | 22.43% (−0.02%) · 1.30 MB of 5.81 MB |
| Fuzzy match | 23.35% (−0.25%) |
| Functions | 10,118 (−193) / 18,136 |
| Units complete | 5,354 (−201) / 5,412 |
✅ Newly matched (261)
func_L00_0072E3F8(2,052 bytes)func_L00_006B8A38(1,652 bytes)func_L00_0075DB30(1,544 bytes)func_L01_004DA240(1,500 bytes)func_L01_004A9D60(1,492 bytes)func_L02_004CDFA0(1,424 bytes)func_0051B270(1,348 bytes)func_L00_0075BF90(1,336 bytes)func_L00_00738F38(1,332 bytes)func_L01_0050BA38(1,204 bytes)func_L00_00736E50(1,148 bytes)func_L00_00780598(1,124 bytes)func_L00_007581D8(1,104 bytes)func_L41_003D7218(1,104 bytes)func_L00_0072AFB0(1,092 bytes)func_L08_003E7750(1,040 bytes)func_L01_00516F88(1,016 bytes)func_L00_005AB038(1,008 bytes)func_L00_0071EE50(992 bytes)func_L00_00777640(960 bytes)func_L00_00594AC8(952 bytes)func_L41_003DF1A8(944 bytes)func_L01_004A6770(940 bytes)func_L01_00453578(932 bytes)func_L00_00727EB8(924 bytes)func_L01_0043C578(920 bytes)func_L00_0068F6A8(916 bytes)func_L01_004B7F00(912 bytes)func_L05_00698D48(896 bytes)func_L15_006907E0(896 bytes)- …and 231 more
⚠️ No longer matching (454)
func_L00_00527BB0100.00% → 0.00%func_0015E858100.00% → 0.00%func_01EDD5C8100.00% → 0.00%func_L00_00749018100.00% → 0.00%func_01EE10F0100.00% → 0.00%func_0048DDE8100.00% → 0.00%func_01ECCEC8100.00% → 0.00%func_L41_0040F1A0100.00% → 0.00%func_01ED9CA0100.00% → 0.00%func_0046B540100.00% → 0.00%func_L01_004E5F00100.00% → 0.00%func_01EA13B8100.00% → 0.00%func_01EC1670100.00% → 0.00%func_01EFB8A8100.00% → 0.00%func_004D7E58100.00% → 0.00%func_01EE2CE0100.00% → 0.00%func_L00_0077E0D0100.00% → 0.00%func_L00_00724020100.00% → 0.00%func_L00_0051C998100.00% → 97.73%func_L00_0074EBE8100.00% → 0.00%func_01EF989C100.00% → 0.00%func_0012BF10100.00% → 0.00%func_01EE0980100.00% → 0.00%func_01EE0E50100.00% → 0.00%func_L00_00716D28100.00% → 0.00%func_01E9AE48100.00% → 0.00%func_L00_00537360100.00% → 0.00%func_004C3578100.00% → 0.00%func_01EBD068100.00% → 0.00%func_004AE2D8100.00% → 0.00%- …and 424 more
📈 Improved (13)
func_L00_005477D00.00% → 97.12%func_L00_00535B800.00% → 97.20%func_L00_005392E00.00% → 92.12%func_01F061880.00% → 98.96%func_01EABCE00.00% → 97.87%func_01F0B7E40.00% → 96.11%func_01F0B3D00.00% → 75.60%func_01EEF3580.00% → 87.50%func_01EF71400.00% → 90.00%func_01EF33D40.00% → 96.79%func_L01_006B95B00.00% → 82.86%func_01F051D80.00% → 89.39%func_01EE992C0.00% → 98.28%
📉 Worse (97)
func_01EC302893.69% → 0.00%func_01EFEBA832.77% → 0.00%func_001623B043.38% → 0.00%func_01EFA60429.75% → 0.00%func_01E9C4A091.84% → 0.00%func_001521D093.28% → 0.00%func_01EA37F041.40% → 0.00%func_01EBC2E897.53% → 0.00%func_01EB87A097.75% → 0.00%func_01F0682C35.92% → 0.00%func_01EC90E077.91% → 0.00%func_01EA4F6862.35% → 0.00%func_L00_0070D8B054.46% → 0.00%func_01EB5C4047.29% → 0.00%func_004D659097.81% → 0.00%func_00153AF070.00% → 0.00%func_00155FE068.35% → 0.00%func_01ED982098.10% → 0.00%func_01EBA49880.77% → 0.00%func_L00_0073320096.10% → 0.00%func_01EE74F099.34% → 0.00%func_01ECE8F896.67% → 0.00%func_01ECC1C099.66% → 0.00%func_0013C2E895.89% → 0.00%func_01EE5BD079.51% → 0.00%func_01ED1C7895.77% → 0.00%func_L00_00528E4830.00% → 0.00%func_01EA6EC095.59% → 0.00%func_01EB5EA099.63% → 0.00%func_01F0BCC897.69% → 0.00%- …and 67 more
Commit 0ad38eb · Ratchet: Deadlocked on ByteMatch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
273 PAL-only functions (SCES_532.85), all reserved in #112 (my comment there). Nineteen commits of C by family, then one commit with the regenerated maps and reports.
Depends on #204 (first commit here,
@divpad): the functions marked@divpad(28) need it. Review that one first; once it is merged I will rebase this branch onto main.L00_005CABB0,L00_00601990,L00_00670E18,L00_006EFD70,L01_003CC778,L01_003D0960,L01_0043B970,L01_00441A08,L01_00473F98,L01_00654E98,L01_00658558,L02_004C73C0,L02_004CDEF8,L06_004C9A800054B140,L00_00713F30,L00_00757C28,L00_00776C800045CEE0,00465650,004BFCC8,004CBF90,004F9690,004FAB48,005120D8,L00_00670D68,L01_00442518,L01_00572AD8,L01_00653FD8div.s,@divpad(4)00502B10,L00_006D57A0,L00_0077FA58,L01_004C3660@divpad(16 main, 3 shared overlay, 1 control level)0043AD58,0045E2D8,004645B0,00465C98,00466388,004659C0,00469620,0046B918,0046BA30,0046BBF0,0048B280,0049A410,004ABDF8,004E3818,00548190,0054C6B8,L00_0060D1B8,L01_004CA068,L01_00405040,L15_004A24B0L00_00571068,L00_00598C18,L00_0059ACB0,L00_006ACB58,L00_00702B60,L01_00479E68,L01_004A9188,L01_004D4C58,L01_004DA820,L01_0052E988,L00_0070ECB0,L00_00734F80,L00_00741338,L00_0074C950,L00_0076A0C8,L00_0077F880,00439CE8,0044D690,00463150,004A5EE0,00535E60L00_00612E20,L00_00614A00,L00_00618378,L01_0040B708,L01_0045B7F8,L01_0046F540,L01_004A9670,L01_004CB058,L01_0056F8A0,L11_00408E58,L00_00713B40,00421E38,0043D988L01_0045BC88,L04_00499228,L02_004CDD50,L00_007572A0,L00_0077BE90,L00_0077C0E0,L00_0076A4A8,L00_0076AA78,L00_0076BA88,L01_00456868,L02_004C9D20,L00_00707320,L00_0076BC30,L00_00770FB0,L00_00776538,L00_007766E8,004795A8,L02_004CB1D8,L00_0077FF78,L00_0075AAC8,L01_00531460,L00_0071C5B0,L00_0074F038,L05_004DF408,L00_00777490,L01_003E80B0L01_004EB098,L02_004007F8,L01_003D7540,L01_004A8DF8,L01_00474C98,L00_0071E7A8,L01_004A92C8,L00_00612338,L15_004DDF70,0044A8E0,L00_00725FF8,L00_0074A0C8,L00_007825E8,L01_003EC5A0,L01_00457CC0,L01_004A8FB0,L02_004C9038,L41_003BE160,L01_004340D0,L01_004A9B80,L00_005AC050,L01_0046B100,L01_004A9490,L05_003E5CA8,L00_00718A3000469B80,004EFEF8,L00_00713CB0,0048B778,L00_00614E70,L01_00654C20,004222C8,0044AC70,L01_004DDCD8,L15_005053A0,005482D8,L00_00758EB8L00_005B1A78,004AE2D8,L00_006BA3F0,L00_00760000,L01_004ED760,L01_00531970,L15_00503B60,L01_004A8BB8,L01_004146B0,L00_00757CB0,L01_004DB208,L00_00720B48,L01_004A97E0,L01_004EE648,L01_005102E0,L04_004E84C0,L01_00531700,L01_00441040,L41_00445270,0044AE78,L00_00780A00,L00_0074D4C0,L00_0077EF00,L01_0050C010,L01_00523220,L01_00588568,L05_003E26F8,0050DF08,L00_0075BCB0004532C0,L01_004B8520,L01_004EF6D8,L01_004E7850,L01_0062B6C0,00458F10,L00_00726B70,L00_0072B3F8,004E3548,L00_00721C50,L00_00743098,L41_006240A0,L01_0047E848,L01_004B3F88,L01_005086B0,L00_0073DEC8,L00_0073FCF0L01_00406688,L01_0049C140,L01_004D4F30,004BE808,L00_00745008,L01_004B0310,005430B0,L01_004EAD78,L05_0046A328,L15_004EDC50,L00_005D6558,L00_0072BF68,L01_00421C08,L02_004C1168,L00_00735618,L00_0077F218,L00_005ABA70,L15_004EE3C0L00_0073BE18,004D3290,004AA2E0,L01_00446DA0,L00_00754C90,L00_0074F918,004E7F28,L00_00768C60,L05_00698D48,L15_006907E0,L00_00760CC0L00_0068F6A8added to the existingL00_00691168.c)00528078,L01_004B7F00,L01_0043C578,L00_00727EB8,L01_00453578,L01_004A6770,L41_003DF1A8,L00_00594AC8,L00_00777640,L00_0071EE50,L00_005AB038,L00_0068F6A8L00_007581D8added to the existingL00_00757590.c)L00_0075ACB0,L01_0056FE58,L00_0074D7A8,L00_0075AC70,L00_00764088,L00_0072ACF0,L00_00736E50,L01_0050BA38,L08_003E7750,004EF280,004F5AF8,L01_00516F88,L00_00780598,L00_007581D8L00_005C66E8,005412B0,L01_003D0660,L00_00734790,004F7428,L41_003D7218,L00_0075BF90,L00_00738F38,0051B270,L02_004CDFA0L41_004420F8,L01_004D1DF0,L00_00774210,L01_004A9D60,L00_0075DB30,L00_006B8A38-fmove-all-movables, 1@divpad)L00_0072E3F8,L00_00758010,L00_0072AFB0,L00_00757748,L01_004DA240,L00_0058B868"PAL-only" here means the function's fingerprint in
config/pal/functions.tsvhas no twin inconfig/us/functions.tsv, so these should not overlap with US work.Checks
tools/cc.shin the container and its function ismatch(100.00) inconfig/pal/map.tsvaftertools/match_map.py --version pal --update-native ... --check.tools/audit_pal_relocs.pyon the 273 functions: 4067 relocations, 0 mismatches, 0 unresolved (this caught and fixed a swapped pair of byte globals inL01_003CC778and a sign error in a%loin0046B918and two swapped$gpglobals inL00_0070ECB0, four more swapped neighbouring globals in the 17-function commit, and one more pair in the 18-function commit).tools/progress.py --checkpasses for US and PAL. The US map records the new sources asother, so the US report does not change. PAL: 9849 → 10118 matched functions.func_L00_00601990(from the first commit) now takes the third argumentfunc_L00_0074C950passes (0x400, unused there); its code is unchanged.func_00476D30reads only$f12–$f15, soL00_00614A00andL00_00618378declare it with four floats;L00_00611390.c(an m2c-style file) still declares a leadingvoid *.L00_00713B40storesD_00220BE8as a byte through$gpand defines it as au8, while0050D870.cdefines it as au32(commented in the file).L00_007572A0passesfunc_L00_0071FD20's fifth argument asu32(retail builds -1 withlui/ori),L00_0074AE60.cdeclares its32;L00_0076BC30readsD_00221890asextern u16[](lhuof element 0), another file declares ans32.L00_00713CB0definesD_00220BD8as a one-element array (needed to keep a store above a pointer load);L00_00713B40defines it as a scalar.004F55C0.cdeclaresfunc_00469B80asvoid (s32, s32); it reads only$a0and returns a value, as00469B80.cdefines it.func_L00_00777490now returnsfunc_0015BA30's result (its callersL00_00780A00and the near missL00_007803D0use it); same code.volatile, asm,#definealiases or hardcoded addresses. One file uses/* cflags: -mno-split-addresses */(L01_00473F98);0045CEE0uses__builtin_memcpyasL00_00519AB8.cdoes.tools/build.shon an x86 machine (about 7 minutes) compiles every file of the main SN 1.36 profile; the files of the isolated profiles (@ee296,@ee32-040921,@ee29-01) were not set up there. With this branch's tools and no file using@divpad, all 9358 objects have the same.textas with main's tools.Notes
L00_00776C80, sibling ofL00_0077DAB8.c).lui/addiu %lothen a separateaddiu 4, plainD_x[i].f4matches; a pointer local folds the +4 into%lo(L00_005CABB0).lbufields ares32(L00_00670E18); ans16that is only sign-extended on the call path is ans32parameter narrowed by the prototype (L00_005CABB0).p->fACabove a store to a scalar global;*(T *)((u8 *)p + 0xAC)keeps retail's order (L06_004C9A80).extern T D_x[]read asD_x[0]where retail reaches a scalar withluiinto another register (L00_00601990,L00_00757C28,004F9690).lw %lo/lhu 4move-by-pieces needs 8-byte alignment: both bufferss64and__builtin_memcpy(0045CEE0).@divpad, source lines matter:L01_004C3660matches with its division on its own line, where retail's two nops place a line label.00466388and00465C98defineD_0021F1EClike00466458.cdoes: each needs the definition for its$gpaccess, asD_00220E7Cis already defined in three files.Held back / released
Inventory splits found in
config/pal(the C of the real function matches, the catalogue entry does not):func_L00_0065E8D0andfunc_L41_00623FA8each lose theirjr $radelay slot to a 4-byte "function" (func_L00_0065EA08,func_L01_005DB758);func_L00_005174D8starts mid-function (real start0x005174C0, 0xC8 bytes);func_L00_00530910is part of a function starting at0x00530760;func_0045D370's entry includes 16 bytes of the previous function (real start0x0045D380);func_L00_00620AB0really starts at0x00620AA8, on the two nops ps2eeas put before its leadingdiv.s(L00_00614A00calls it there asfunc_L00_00620AA8). Released.func_L01_004A9A30matches only by readingD_0021DE40through a neighbouring struct symbol (to keep a reload GCC would merge), so I left it out. Released.Exact but not in this PR:
L01_00572A68(its name resolves to the US filesrc/overlays/shared/L01_00572A68.c, which is PALL01_00575660),L00_00773A50(only matches iffunc_L00_00774290takes two pass-through arguments, which conflicts with its(void)definition) andL00_007381A0(string literals land at the wrong addresses). Still reserved in Function reservations and contributor coordination #112.Several reserved "functions" turned out to be fragments of a neighbouring function (they start mid-body, use unsaved
$sregisters or contain inline data):L00_0052FF68,L00_00518950,L00_004F0CC0,L00_006D6238,L00_005320DC,L00_005318AC(body ofL00_005318A0),L00_00516E18,L00_00571190,L00_005332B0,L00_004F82B4,L00_00518E1C,L00_004F0BE0. They probably need a re-split inconfig/pal.00415788has 12 bytes of code after itsjr $rain its catalogue size. Released.🤖 Generated with Claude Code