Instant Transmission Switch [Anarion]
#11
Wow that would be a problem. I also fixed the player states too so you don't "slide" anymore, although a bug with the handling range is still present. Try this Tongue

(NTSC-U)
C258FDC0 00000009
3D80XXXX A18CYYYY
7180ZZZZ 3D808000
A0AC01C0 B00C01C0
7C8C2378 80840014
41820024 2C050000
40A2001C 68840010
908C0014 80AC0004
54A50104 54A50776
90AC0004 00000000

(PAL)
C25965E4 00000009
3D80XXXX A18CYYYY
7180ZZZZ 3D808000
A0AC01C0 B00C01C0
7C8C2378 80840014
41820024 2C050000
40A2001C 68840010
908C0014 80AC0004
54A50104 54A50776
90AC0004 00000000

(NTSC-J)
C2595F64 00000009
3D80XXXX A18CYYYY
7180ZZZZ 3D808000
A0AC01C0 B00C01C0
7C8C2378 80840014
41820024 2C050000
40A2001C 68840010
908C0014 80AC0004
54A50104 54A50776
90AC0004 00000000

(NTSC-K)
C258463C 00000009
3D80XXXX A18CYYYY
7180ZZZZ 3D808000
A0AC01C0 B00C01C0
7C8C2378 80840014
41820024 2C050000
40A2001C 68840010
908C0014 80AC0004
54A50104 54A50776
90AC0004 00000000

.set region, '' #Must set region value, or else source will not compile

.if (region == 'E' || region == 'e') # RMCE
.macro controller_address
lis r12, 0x8034
.endm
.elseif (region == 'P' || region == 'p') # RMCP
.macro controller_address
lis r12, 0x8034
.endm
.elseif (region == 'J' || region == 'j') # RMCJ
.macro controller_address
lis r12, 0x8034
.endm
.elseif (region == 'K' || region == 'k') # RMCK
.macro controller_address
lis r12, 0x8033
.endm
.else # Invalid Region
.abort
.endif

controller_address
lhz r12, 0x3E80 (r12)
andi. r0, r12, 0x10 #Z button
lis r12, 0x8000
lhz r5, 0x1C0 (r12)
sth r0, 0x1C0 (r12)
mr r12, r4
lwz r4, 0x14 (r4)
beq- noPress
cmpwi r5, 0
bne+ noPress
xori r4, r4, 0x10
stw r4, 0x14 (r12)
lwz r5, 0x4 (r12)
rlwinm r5, r5, 0, 4, 2
rlwinm r5, r5, 0, 29, 27
stw r5, 0x4 (r12)
noPress:

XXXX = Upper Controller Address
YYYY = Lower Controller Address
ZZZZ = Button to Press
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#12
It's not working. Transmission changes are not executing.
Reply
#13
Ah crap, I forgot to change the faulty lbz to lhz and stb to sth, sorry about that oversight Tongue It SHOULD work now LOL

Another thing, this code needs the raw inputs typed in. So z button is 0x0010 in this case, instead of 0x90. Idk what I did different for it to work this way but I've no time to fiddle with it.
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#14
So it looks like this Code (both the ASM and 28 version) only work 100% on Dolphin.

Here's the rundown of what I did this morning-
Your ASM version wasn't working
So I re-equipped my GCT from yesterday (which worked fine yesterday and its the version in the OP)
Now that version isn't working no matter what
My hooktype was in GXDraw, tried VBI
Still no worky...

Used OP version in Dolphin, works Fine. Used ASM version in Dolphin works fine.

So by now I am a little frustrated and do not want to bother with this code anymore. At least it works 100% in Dolphin...Added appropriate NOTE to OP.

The only TRUE way to know if his works on Console and it's not CodeHandler related (lmao here we go again) is to perma edit your ASM version onto an ISO/WBFS file. Tut for that is here - http://mkwii.com/showthread.php?tid=998

I am not expecting you to do all this work ofc, but if you are interested go ahead. Other tests could be to take your ASM version and try them on every hooktype after multiple reboots of the console, but that's silly.

With all of this being said, maybe you could start a thread on remaking a new code handler, make a github repo and we can work on it. I will be honest with you, I don't have much motivation to PPC-code anymore. Another option is to take Dolphin's codehandler.bin and recompile USB Loader GX in DevKit with it.
Reply
#15
Maybe I will do just that. I'm sick of the process we have to go through. "Maybe it's the codehandler" We shouldn't even have to deal with this possibility (which is veeery likely).
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)