From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "signature" |
|---|
| subject | "Tool:Metrowerks CodeWarrior" |
|---|
| claim | "The CodeWarrior PowerPC EABI runtime's _savegpr_14 starts with stw r14,-72(r11); stw r15,-68(r11); stw r16,-64(r11); stw r17,-60(r11); the sequence continues to r31 and blr (0x4C bytes), and _savegpr_N is the entry 4*(N-14) bytes in. The same encoding is used by other EABI save/restore helpers (GCC's crtsavres), so the match names the routine, not the compiler." |
|---|
| 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 | "_savegpr_14" |
|---|
| pattern | "91 CB FF B8 91 EB FF BC 92 0B FF C0 92 2B FF C4" |
|---|
| matches | "_savegpr_14 (__save_gpr), entry points _savegpr_15.._savegpr_31 follow every 4 bytes" |
|---|
| offset | 0 |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ENTRY_SAVE_GPR(14) stw r14,-72(save_restore_reg) ... save_restore_reg is r11" |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "src/PowerPC_EABI_Support/Runtime/Src/runtime.c" |
|---|
| lines | "220-226" |
|---|
|
| type | "symbol" |
|---|
| detail | "__save_gpr .text:0x80328F04 size 0x4C; _savegpr_14 at 0x80328F04, _savegpr_15 at 0x80328F08 ..." |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "config/GZLE01/symbols.txt" |
|---|
| lines | "13538-13554" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "stw = opcode 36: (36<<26)|(rS<<21)|(11<<16)|(d & 0xFFFF): r14,-72 = 91CBFFB8; r15,-68 = 91EBFFBC; r16,-64 = 920BFFC0; r17,-60 = 922BFFC4 (computed in Python)" |
|---|
|
| type | "source" |
|---|
| detail | "Re-read __save_gpr: ENTRY_SAVE_GPR(14) stw r14,-72; (15) r15,-68; (16) r16,-64; (17) r17,-60 via save_restore_reg. symbols.txt line 13538 __save_gpr 0x80328F04 size 0x4C, _savegpr_14 0x80328F04, _savegpr_15 0x80328F08. stw opcode 36: 91CBFFB8, 91EBFFBC, 920BFFC0, 922BFFC4 match the pattern." |
|---|
| repo | "https://github.com/zeldaret/tww" |
|---|
| commit | "8b93b372dc8e841f12ddfb7e0215626f62b05417" |
|---|
| path | "src/PowerPC_EABI_Support/Runtime/Src/runtime.c" |
|---|
| lines | "220-227" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "_savegpr_14" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T18:24:32.496Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T23:01:42.907Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read runtime.c __save_gpr and symbols.txt at the cited commit; recomputed stw encodings from the PowerPC opcode layout. Not checked against the disc binary." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-18T23:01:42.431Z" |
|---|
| summary | "Raise to high: source and symbols re-read, opcodes recomputed" |
|---|
| changed | |
|---|
|
|
|---|