Code: Select all

```
Metroid Prime (PAL) [GM8P01]
8000C744: 3C60803D lis r3,-32707
8000C748: 3C804330 lis r4,17200
8000C74C: 38C35788 addi r6,r3,22408
8000C750: 90810020 stw r4,32(r1)
8000C754: 80A60008 lwz r5,8(r6) ; r5: x-res = 0x0280 (640)
8000C758: 7FE3FB78 mr r3,r31
8000C75C: 8006000C lwz r0,12(r6) ; r0: y-res = 0x01C0 (448)
8000C760: 6CA58000 xoris r5,r5,32768
8000C764: 90810028 stw r4,40(r1)
8000C768: 6C008000 xoris r0,r0,32768
8000C76C: C8428098 lfd f2,-32616(r2)
8000C770: 90A10024 stw r5,36(r1)
8000C774: C06D9CBC lfs f3,-25412(r13)
8000C778: 9001002C stw r0,44(r1)
8000C77C: C8210020 lfd f1,32(r1)
8000C780: C8010028 lfd f0,40(r1)
8000C784: EC211028 fsubs f1,f1,f2
8000C788: 808DA198 lwz r4,-24168(r13)
8000C78C: EC001028 fsubs f0,f0,f2
8000C790: EC010024 fdivs f0,f1,f0
8000C794: EC030032 fmuls f0,f3,f0 ; f0: aspect ratio = 0x3FB6DB6E = 1.42857 (640/448)
8000C798: D00D8028 stfs f0,-32728(r13)
8000C79C: C0040024 lfs f0,36(r4)
8000C7A0: D00D8018 stfs f0,-32744(r13)
Widescreen patch:
8000C754: 38A00356 li r5,854 ; r5: x-res = 0x356 (854)
-> Aspect ratio = 854/448 = 1.90625 (Widescreen)
PAL AR/WiiRD code:
16:9 Aspect Ratio (Widescreen) [Ralf]
0400C754 38A00356
Metroid Prime 2: Echoes (PAL) [G2MP01]
80036E90: 3C80803C lis r4,-32708
80036E94: 3C604330 lis r3,17200
80036E98: 38C4B240 subi r6,r4,19904
80036E9C: 80FF24DC lwz r7,9436(r31)
80036EA0: 80A60008 lwz r5,8(r6) ; r5: x-res = 0x0280 (640)
80036EA4: 7FE4FB78 mr r4,r31
80036EA8: 8006000C lwz r0,12(r6) ; r0: y-res = 0x01C0 (448)
80036EAC: 54E6103A rlwinm r6,r7,2,0,29
80036EB0: 6CA58000 xoris r5,r5,32768
80036EB4: 90610018 stw r3,24(r1)
80036EB8: 6C008000 xoris r0,r0,32768
80036EBC: 7CDF3214 add r6,r31,r6
80036EC0: 90A1001C stw r5,28(r1)
80036EC4: C8428468 lfd f2,-31640(r2)
80036EC8: C8010018 lfd f0,24(r1)
80036ECC: 90010024 stw r0,36(r1)
80036ED0: EC201028 fsubs f1,f0,f2
80036ED4: C06D8D8C lfs f3,-29300(r13) ;
80036ED8: 90610020 stw r3,32(r1)
80036EDC: 8066151C lwz r3,5404(r6)
80036EE0: C8010020 lfd f0,32(r1)
80036EE4: EC001028 fsubs f0,f0,f2
80036EE8: EC010024 fdivs f0,f1,f0
80036EEC: EC230032 fmuls f1,f3,f0 ; f1: aspect ratio = 0x3FB6DB6E = 1.42857 (640/448)
80036EF0: 48176969 bl 0x801ad858
80036EF4: 57C0103A rlwinm r0,r30,2,0,29
80036EF8: 7C7F0214 add r3,r31,r0
PAL AR/WiiRD code:
16:9 Aspect Ratio (Widescreen) [Ralf]
04036EA0 38A00356
```