Mega Cloud [_tZ]
#10
I converted this code to C2 code to avoid using the Exception Vector Area.

(NTSC-U)
c2579dcc 00000006
3d808078 618cf6a8
7d8803a6 4e800021
3c60809b 8803f0b1
2c000000 4182000c
38600008 3880000c
60000000 00000000

(PAL)
c2580630 00000006
3d808079 618c86b4
7d8803a6 4e800021
3c60809c 880338b9
2c000000 4182000c
38600008 3880000c
60000000 00000000

(NTSC-J)
c257ffb0 00000006
3d808079 618c7d20
7d8803a6 4e800021
3c60809c 88032919
2c000000 4182000c
38600008 3880000c
60000000 00000000

(NTSC-K)
C256E688 00000006
3d808078 618c6a74
7d8803a6 4e800021
3c60809b 88031ef9
2c000000 4182000c
38600008 3880000c
60000000 00000000

Source
#inject at 0x80579DCC (NTSC-U)
#inject at 0x80580630 (PAL)
#inject at 0x8057FFB0 (NTSC-J)
#inject at 0x8056E688 (NTSC-K)

.set region, '' #Fill in E, P, J, or K within the quotes for your region when Compiling! Lowercase letters can also be used.

.if    (region == 'E' || region == 'e') # RMCE
    .set func_addr, 0x8078F6A8
    .set val_addr, 0x809BF0B1
.elseif (region == 'P' || region == 'p') # RMCP
    .set func_addr, 0x807986B4
    .set val_addr, 0x809C38B9
.elseif (region == 'J' || region == 'j') # RMCJ
    .set func_addr, 0x80797D20
    .set val_addr, 0x809C2919
.elseif (region == 'K' || region == 'k') # RMCK
    .set func_addr, 0x80786A74
    .set val_addr, 0x809B1EF9
.else # Invalid Region
    .abort
.endif

lis r12,func_addr@h
ori r12, r12,func_addr@l
mtlr r12
blrl
lis r3,val_addr@h
lbz r0,val_addr@l(r3)
cmpwi r0,0
beq- branch
li r3,8
li r4,12
branch:
Reply


Messages In This Thread
Mega Cloud [_tZ] - by CLF78 - 08-25-2020, 04:07 PM
RE: Mega Cloud [_tZ] - by Unnamed - 09-08-2020, 01:15 PM
RE: Mega Cloud [_tZ] - by MXCTH - 09-13-2020, 10:00 AM
RE: Mega Cloud [_tZ] - by Vega - 09-09-2020, 12:57 PM
RE: Mega Cloud [_tZ] - by Ragemodepigeon - 09-11-2020, 04:29 PM
RE: Mega Cloud [_tZ] - by Unnamed - 09-14-2020, 10:27 AM
RE: Mega Cloud [_tZ] - by Jeffy/Wrath - 09-15-2020, 04:21 PM
RE: Mega Cloud [_tZ] - by raoul0909 - 01-05-2021, 04:33 PM
RE: Mega Cloud [_tZ] - by Zeraora - 01-05-2021, 04:48 PM
RE: Mega Cloud [_tZ] - by Kazuki - 02-27-2021, 05:53 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)