Skip to content

Add PAL C for 21 functions - #55

Open
chistianh wants to merge 21 commits into
OpenRAC:mainfrom
chistianh:pal-oficial-11b
Open

chistianh wants to merge 21 commits into
OpenRAC:mainfrom
chistianh:pal-oficial-11b

Conversation

@chistianh

Copy link
Copy Markdown
Contributor

Title: Add PAL C for 21 functions

21 PAL-only functions, one commit each, chosen as in #33–#49 (fingerprint in no row of config/us/functions.tsv, no match or near row places them). All of them use float constants, so they build only since the li.s step of #49.

PAL Where Size
func_L02_004CBE78 src/pal/overlays/shared/ 184
func_L41_00446FE8 src/pal/overlays/l41_battledome_tower/ 196
func_L00_006B52D0 src/pal/overlays/shared/ 208
func_L01_00640588 src/pal/overlays/shared/ 212
func_L06_004C97B0 src/pal/overlays/shared/ 240
func_L01_003DCB10 src/pal/overlays/shared/ 244
func_004938D0 src/pal/game/ 260
func_004AAA48 src/pal/game/ 276
func_L01_004B86D0 src/pal/overlays/shared/ 284
func_L01_004770E0 src/pal/overlays/shared/ 288
func_0041E390 src/pal/game/ 300
func_L05_00492748 src/pal/overlays/shared/ 340
func_L15_004AF138 src/pal/overlays/l15_control_level/ 344
func_L00_005E8CF8 src/pal/overlays/l00_multiplayer_menu/ 360
func_L04_00487B50 src/pal/overlays/l04_sarathos_swamp/ 376
func_L01_00432918 src/pal/overlays/shared/ 400
func_L01_00502928 src/pal/overlays/shared/ 460
func_L01_0050E208 src/pal/overlays/l01_dreadzone_station/ 460
func_L00_00569100 src/pal/overlays/shared/ 472
func_004936E0 src/pal/game/ 488
func_L05_003E2348 src/pal/overlays/shared/ 488

Checks: every file of src/pal/ MATCHES with tools/check_func.py --version pal, checked with src/pal/ set aside. The branch is based on today's main. config/ and the reports are not regenerated.

Notes:

  • func_L02_004CBE78 uses retail's min.s/max.s, so its file has /* cflags: -ffast-math */, as src/pal/game/00502BB8.c.
  • I had also written func_L00_00611390 and func_L01_004C3FB0; batches 51 and 63 already add them, so they are not here.
  • func_L00_00614A00 calls 0x00620AA8, 8 bytes before the start config/pal/functions.tsv gives for func_L00_00620AB0 (two nops). It may be one more cut like the one in Add PAL C for 5 more PAL-only functions; three PAL catalogue cuts #38; I left that function out.

🤖 Generated with Claude Code

chistianh and others added 21 commits November 1, 2026 12:54
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PAL-only; matches its PAL bytes with tools/check_func.py --version pal (needs the li.s expansion of OpenRAC#49).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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