From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "signature" |
|---|
| subject | "Tool:Metrowerks CodeWarrior" |
|---|
| claim | "The CodeWarrior PowerPC EABI runtime's _restgpr_14 starts with lwz r14,-72(r11); lwz r15,-68(r11); lwz r16,-64(r11); lwz r17,-60(r11) and continues to r31 and blr (0x4C bytes); _restgpr_N is 4*(N-14) bytes in." |
|---|
| scope | | level | "tool" |
|---|
| applies_to | "Tool:Metrowerks CodeWarrior" |
|---|
| observed_in | | "Build:The Legend of Zelda: The Wind Waker/GZLE01 Rev 0 (Nintendo GameCube, disc)" |
|
|---|
|
|---|
| data | | name | "_restgpr_14" |
|---|
| pattern | "81 CB FF B8 81 EB FF BC 82 0B FF C0 82 2B FF C4" |
|---|
| matches | "_restgpr_14 (__restore_gpr), entry points _restgpr_15.._restgpr_31 follow every 4 bytes" |
|---|
| offset | 0 |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ENTRY_RESTORE_GPR(14) lwz r14,-72(save_restore_reg) ..." |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "src/PowerPC_EABI_Support/Runtime/Src/runtime.c" |
|---|
| lines | "261-267" |
|---|
|
| type | "symbol" |
|---|
| detail | "__restore_gpr .text:0x80328F50 size 0x4C; _restgpr_14 at 0x80328F50" |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "config/GZLE01/symbols.txt" |
|---|
| lines | "13555-13557" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "lwz = opcode 32: r14,-72(r11) = 81CBFFB8 ... r17,-60 = 822BFFC4 (computed in Python)" |
|---|
|
| type | "source" |
|---|
| detail | "Re-read __restore_gpr: ENTRY_RESTORE_GPR(14) lwz r14,-72; (15) -68; (16) -64; (17) -60 via save_restore_reg. symbols.txt line 13555 __restore_gpr 0x80328F50 size 0x4C, _restgpr_14 0x80328F50, _restgpr_15 0x80328F54. lwz opcode 32: 81CBFFB8, 81EBFFBC, 820BFFC0, 822BFFC4 match the pattern." |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "src/PowerPC_EABI_Support/Runtime/Src/runtime.c" |
|---|
| lines | "258-267" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "_restgpr_14" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T18:24:32.570Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T23:01:42.990Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read runtime.c __restore_gpr and symbols.txt at the cited commit; recomputed lwz encodings. Not checked against the disc binary." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-18T23:01:42.510Z" |
|---|
| summary | "Raise to high: source and symbols re-read, opcodes recomputed" |
|---|
| changed | |
|---|
|
|
|---|