Skip to content

Restore NTSC-U boot and level 39 C coverage - #214

Open
ImBaedin wants to merge 9 commits into
OpenRAC:masterfrom
ImBaedin:match/ntsc-u-level39-call
Open

ImBaedin wants to merge 9 commits into
OpenRAC:masterfrom
ImBaedin:match/ntsc-u-level39-call

Conversation

@ImBaedin

@ImBaedin ImBaedin commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

This batch restores two NTSC-U C placements, adds the NTSC-U boot copy of a front-end routine, and corrects two additional core inventory boundaries.

  • Level 39 carry. func_L01_004D2DC8 uses caller-specific call and data aliases. It now links from shared C in all 51 NTSC-U placements, including level 39. Its neighbor func_L01_004D3068 still links from C at all 51 placements.
  • Boot inventory. Both discs identify func_00116F98 separately, start func_0012C9A0 after the linker fill, and separate the remnant at func_00135D00 from func_00135D08. The boot build now links the 484-byte func_0012C9A0 from C at its actual entry.
  • Native NTSC-U boot front end. func_U_003B5428 ports func_003B55D8, using the NTSC-U addresses and the argument value 10 in the corresponding front-end call. It uses the owning PAL file's flags and the existing division padding counts for this body.

Verification

  • python3 tools/build.py --target all -j 10 printed MATCH for all three PAL core programs.
  • python3 tools/build_levels.py --setup -P 2 -j 4 1 39 printed MATCH for PAL levels 01 and 39.
  • JOBS=16 sh tools/carry_us.sh reported that all 54 NTSC-U targets match.
  • python3 tests/check_repository.py passed. python3 -m unittest discover -s tests ran 311 tests with seven skips.

Use caller-specific aliases for the regional call target and data address so both the wrapper and its neighbor link from shared C in all 51 placements.

Verified with tools/build.py --target all (three MATCH results), tools/build_levels.py --setup 1 39 (2 of 2 match), and tools/asm_build.py --version us --c (54 of 54 match). Repository checks passed and unittest reported OK, with seven skips.
Separate the assert routine from abort and the callback setter from its preceding linker remnant. Start sceGsSetDefLoadImage after the fill word in both core inventories so NTSC-U links its 484-byte C body.

The PAL core build printed three MATCH results. The NTSC-U boot rebuild printed MATCH with zero C fallbacks. The repository check passed and unittest ran 311 tests with seven skips.
Port func_003B55D8 to the NTSC-U boot address with its regional argument and symbol addresses. Keep the PAL file flags and apply the matching division padding counts to the native symbol.

The native checker printed MATCH. The PAL core build printed three MATCH results and tools/carry_us.sh reported 54 of 54 NTSC-U targets match. Repository checks passed and unittest ran 311 tests with seven skips.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-04T21:34:54.933531Z 56045d6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@bytematchdev

bytematchdev Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

ByteMatch progress report

SCES_524.56

Code matched 97.51% · 7.34 MB of 7.53 MB
Fuzzy match 97.51%
Functions 16,492 (+2) / 16,594
Units complete 589 / 605
✅ Newly matched (3)
  • func_0012C9A0 (484 bytes)
  • func_00116F98 (56 bytes)
  • func_00135D08 (52 bytes)
⚠️ No longer matching (1)
  • func_0012C99C 100.00% → 0.00%

SCUS_973.53

Code matched 92.49% (+0.01%) · 6.92 MB of 7.48 MB
Fuzzy match 93.27% (−0.00%)
Functions 16,328 (+4) / 16,591
Units complete 564 (+1) / 594
✅ Newly matched (3)
  • func_0012C9A0 (484 bytes)
  • func_00116F98 (56 bytes)
  • func_00135D08 (52 bytes)
⚠️ No longer matching (1)
  • func_0012C99C 100.00% → 0.00%

Commit b31d4ed · Ratchet & Clank: Up Your Arsenal on ByteMatch

Regenerate the PAL and NTSC-U progress reports after merging the Thran impact match. This preserves the measurements from both branches.

tools/build.py --target all -j 8 printed MATCH for the three PAL core programs. tools/build_levels.py --setup -P 1 -j 8 19 printed MATCH for PAL level 19. JOBS=16 sh tools/carry_us.sh printed MATCH for all 54 NTSC-U programs. tests/check_repository.py passed and unittest discovery ran 311 tests with 7 skips.
Merge upstream Tyhrranosis path search initialization and regenerate the PAL and NTSC-U progress reports from the combined source.

tools/build.py --target all -j 8 printed MATCH for the three PAL core programs. tools/build_levels.py --setup -P 1 -j 8 9 printed MATCH for PAL level 09. JOBS=16 sh tools/carry_us.sh printed MATCH for all 54 NTSC-U programs. tests/check_repository.py passed and unittest discovery ran 311 tests with 7 skips.
Merge the multiplayer boot initialization from master and regenerate the PAL progress report from the combined source.

tools/build.py --target all -j 8 printed MATCH for the three PAL core programs. tools/build_levels.py printed MATCH for PAL levels 39 through 51. JOBS=8 sh tools/carry_us.sh printed MATCH for all 54 NTSC-U programs. tests/check_repository.py passed and unittest discovery ran 311 tests with 7 skips.
Merge the shared follow camera basis update from master and regenerate the PAL and NTSC-U progress reports from the combined source.

tools/build.py --target all -j 8 printed MATCH for all three PAL core programs. tools/build_levels.py --setup -P 2 -j 4 1 39 printed MATCH for both levels. JOBS=16 sh tools/carry_us.sh printed MATCH for all 54 NTSC-U targets. tests/check_repository.py passed and unittest discovery ran 311 tests with 7 skips.
Merge the multiplayer help text box match and regenerate the PAL progress report from the combined source.

tools/build.py --target all -j 8 printed MATCH for the three PAL core programs. tools/build_levels.py --setup -P 1 -j 8 39 printed MATCH for PAL level 39. JOBS=16 sh tools/carry_us.sh printed MATCH for all 54 NTSC-U targets. tests/check_repository.py passed and unittest discovery ran 311 tests with 7 skips.
Merge the single-player and multiplayer shield arc matches from master and regenerate both progress reports from the combined source.

tools/build.py --target all -j 8 printed MATCH for all three PAL core programs. tools/build_levels.py --setup -P 2 -j 4 1 39 printed MATCH for both levels. JOBS=16 sh tools/carry_us.sh printed MATCH for all 54 NTSC-U targets. tests/check_repository.py passed and unittest discovery ran 311 tests with 7 skips.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant