seb77 said:
Code:
.globl regionfreeusaÂÂÂÂÂÂÂÂ# r3 address
regionfreeusa:
ÂÂÂÂmtctrÂÂÂÂr4
ÂÂÂÂlisÂÂÂÂr6, 0x281B
ÂÂÂÂoriÂÂÂÂr6, r6, 0x0001ÂÂÂÂ# blr
findusa:
ÂÂÂÂlwzÂÂÂÂr5, 0(r3)
ÂÂÂÂcmpwÂÂÂÂr6, r5
ÂÂÂÂbeqÂÂÂÂwritenop1
ÂÂÂÂaddiÂÂÂÂr3, r3, 4ÂÂÂÂ# next word
ÂÂÂÂbdnzÂÂÂÂfindusaÂÂÂÂÂÂÂÂ# loop length
ÂÂÂÂbÂÂÂÂexitusaÂÂÂÂÂÂÂÂ# stop unhooked game hanging
writenop1:
ÂÂÂÂaddiÂÂÂÂr3, r3, 4ÂÂÂÂ# next word
ÂÂÂÂlisÂÂÂÂ r4, 0x6000ÂÂÂÂ# nop
ÂÂÂÂoriÂÂÂÂ r4, r4, 0x0000
ÂÂÂÂstwÂÂÂÂ r4, 0(r3)ÂÂÂÂ# result in r3
ÂÂÂÂdcbfÂÂÂÂr0, r3ÂÂÂÂÂÂÂÂ# data cache block flush
ÂÂÂÂicbiÂÂÂÂr0, r3
exitusa:
ÂÂÂÂblrÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ # return
diggitydoggs you're right. We need to permanently patch this section of the sysmenu --> 0x28, 0x1B, 0x00, 0x01 to this 0x60, 0x00, 0x00, 0x00
That's what the rebooter do.
We need someone who is able to include this little change into the sysmenu.wad and it should be permanently set to region free for PAL-NTSC-JAP consoles.
Do I hear an Echo.......??????????
hahahahaha
No 0x281B0001 is the compare instruction, you should patch the instruction one below that...
bne loc_81377AC4
here is the related system menu code... 0,1,2 each one corresponds to a region... you should only patch the related bne (branch not equal) instruction...
CODE
.data1:81377A94 # ---------------------------------------------------------------------------
.data1:81377A94
.data1:81377A94 loc_81377A94:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ # CODE XREF: sub_81377198+8E8j
.data1:81377A94ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ cmpwiÂÂ %r27, 0
.data1:81377A98ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ bneÂÂÂÂ loc_81377AC4
.data1:81377A9CÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ liÂÂÂÂÂÂ%r0, 1
.data1:81377AA0ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ bÂÂÂÂÂÂ loc_81377AC8
.data1:81377AA4 # ---------------------------------------------------------------------------
.data1:81377AA4
.data1:81377AA4 loc_81377AA4:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ # CODE XREF: sub_81377198+8DCj
.data1:81377AA4ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ cmplwiÂÂ%r27, 1
.data1:81377AA8ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ bneÂÂÂÂ loc_81377AC4
.data1:81377AACÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ liÂÂÂÂÂÂ%r0, 1
.data1:81377AB0ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ bÂÂÂÂÂÂ loc_81377AC8
.data1:81377AB4 # ---------------------------------------------------------------------------
.data1:81377AB4
.data1:81377AB4 loc_81377AB4:ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ # CODE XREF: sub_81377198+8F8j
.data1:81377AB4ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ cmplwiÂÂ%r27, 2
.data1:81377AB8ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ bneÂÂÂÂ loc_81377AC4
.data1:81377ABCÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ liÂÂÂÂÂÂ%r0, 1
.data1:81377AC0ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ bÂÂÂÂÂÂ loc_81377AC8
.data1:81377AC4 # ---------------------------------------------------------------------------