Possible Time Control
#1
Hello,

I found this Time Control Code together with a Youtube Video, and I removed the checksums in this code to make it work.

Here are the codes:


Time Control Wifi [hetoan2]

NTSC-U
48000000 809B8F70
DE000000 80008180
58010000 00000014
4A100000 00000048
8211000F 0053112E
92110007 00000002
2853112C 00003860
2834XXXX RRRRSSSS
A8000000 F0000000
8600000F 0000003C
E0000000 00000000
2853112C 00003860
2834XXXX TTTTUUUU
A8000000 F0000000
8600000F FFFFFFC4
E0000000 00000000
8411000F 0053112E
2853112C 00003860
2C53112E 00004614
0253112E 00004614
E0000000 00000000
2853112C 00003860
2E53112E 00000078
0253112E 00000078
E0000000 00000000
2834XXXX VVVVWWWW
0453112C 807D0048
E0000000 00000000
2834XXXX YYYYZZZZ
0253112C 00003860
E0000000 80008000

PAL
48000000 809BD730
DE000000 80008180
58010000 00000014
4A100000 00000048
8211000F 00535C76
92110007 00000002
28535C74 00003860
2834XXXX RRRRSSSS
A8000000 F0000000
8600000F 0000003C
E0000000 00000000
28535C74 00003860
2834XXXX TTTTUUUU
A8000000 F0000000
8600000F FFFFFFC4
E0000000 00000000
8411000F 00535C76
28535C74 00003860
2C535C76 00004614
02535C76 00004614
E0000000 00000000
28535C74 00003860
2E535C76 00000078
02535C76 00000078
E0000000 00000000
2834XXXX VVVVWWWW
04535C74 807D0048
E0000000 00000000
2834XXXX YYYYZZZZ
02535C74 00003860
E0000000 80008000

Explanation: The YYYYZZZZ button pauses the timer, the VVVVWWWW button unpauses the timer. While the timer is paused, you can increase or decrease the time with the RRRRSSSS and TTTTUUUU buttons. However, unpausing and increasing/decreasing is possible, but pausing (red marked) does not work. I thought one of you might find the function for it. Then the code would be complete.

Is it good enough to post? Thank you already for the answer.
Reply
#2
These two codes might help you.

https://mkwii.com/showthread.php?tid=103...me+control
https://mkwii.com/showthread.php?tid=529...ght=53112C

And ye it is good enough to post as the the top link doesn't allow decreasing.
Reply
#3
Thanks, Vega.

The second code was really helpful. And the gecko codetype documentation was also useful. Finally I found out that the line "92110007" loads some value into Gecko register 7. But no other line used the value in register 7, so my guess was that this register contains the value of time - and that was correct. So, it was only a storage instruction, which stores the value of register 7 as halfword at the correct position. Now it works and I just have to finish porting the codes.

Here are the codes:

NTSC-U
48000000 809B8F70
DE000000 80008180
58010000 00000014
4A100000 00000048
8211000F 0053112E
92110007 00000002
2853112C 00003860
2834XXXX RRRRSSSS
A8000000 F0000000
8600000F 00000100
E0000000 00000000
2853112C 00003860
2834XXXX TTTTUUUU
A8000000 F0000000
8600000F FFFFFF00
E0000000 00000000
8411000F 0053112E
2853112C 00003860
2C53112E 0000463C
0253112E 00001C18
E0000000 00000000
2853112C 00003860
2E53112E 00001C18
0253112E 0000463C
E0000000 00000000
2834XXXX VVVVWWWW
0453112C 807D0048
E0000000 00000000
2A53112C 00003860
2834XXXX YYYYZZZZ
84110007 0053112E
0253112C 00003860
E0000000 80008000

PAL
48000000 809BD730
DE000000 80008180
58010000 00000014
4A100000 00000048
8211000F 00535C76
92110007 00000002
28535C74 00003860
2834XXXX RRRRSSSS
A8000000 F0000000
8600000F 0000003C
E0000000 00000000
28535C74 00003860
2834XXXX TTTTUUUU
A8000000 F0000000
8600000F FFFFFFC4
E0000000 00000000
8411000F 00535C76
28535C74 00003860
2C535C76 00004614
02535C76 00004614
E0000000 00000000
28535C74 00003860
2E535C76 00000078
02535C76 00000078
E0000000 00000000
2834XXXX VVVVWWWW
04535C74 807D0048
E0000000 00000000
2A535C74 00003860
2834XXXX YYYYZZZZ
84110007 00535C76
02535C74 00003860
E0000000 80008000

NTSC-J
48000000 809BC790
DE000000 80008180
58010000 00000014
4A100000 00000048
8211000F 005355F6
92110007 00000002
285355F4 00003860
2834XXXX RRRRSSSS
A8000000 F0000000
8600000F 0000003C
E0000000 00000000
285355F4 00003860
2834XXXX TTTTUUUU
A8000000 F0000000
8600000F FFFFFFC4
E0000000 00000000
8411000F 005355F6
285355F4 00003860
2C5355F6 00004614
025355F6 00004614
E0000000 00000000
285355F4 00003860
2E5355F6 00000078
025355F6 00000078
E0000000 00000000
2834XXXX VVVVWWWW
045355F4 807D0048
E0000000 00000000
2A5355F4 00003860
2834XXXX YYYYZZZZ
84110007 005355F6
025355F4 00003860
E0000000 80008000


However, I did not have the time to test it yet. It works offline in VS and Battle. Could someone test it in Time Trial and online? The results can then be posted in this forum.

If everything is fine, I will post the codes for approval.
Reply
#4
Works in TT and Online. There has to be way to make a more efficient version of this in ASM. I have yet to run into one code where ASM fell short to Gecko Codetypes.
Reply
#5
Yeah, I've been thinking about it too. As soon as I have time, I'll try. But I can still post the code and when an ASM version is available, the old thread can be moved to the Incomplete/Outdated forum.

Another question: Code creator is hetoan2, but I removed the checksums and added an important instruction. Should I get code credits then? Or does he remain the only code creator?
Reply
#6
What exactly does the Time Control code do anyways?
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#7
You can stop and resume the timer whenever. You can also decrease and increase the minutes at will.
Reply
#8
Is it the actual timer or just what visually appears?
Super Mario Eclipse, what Super Mario Sunshine could've been.
Reply
#9
Actual timer afaik
Reply
#10
NTSC-U
2834XXXX YYYYZZZZ
C2531130 00000005
38030000 3D808034
A18CXXXX 2C0CUUUU
40820008 380300RR
2C0CTTTT 40820008
3803FFSS 00000000
E0000000 00000000
2834XXXX VVVVWWWW
04531130 38030001
E0000000 80008000

PAL
2834XXXX YYYYZZZZ
C2535C78 00000005
38030000 3D8080QQ
A18CXXXX 2C0CUUUU
40820008 380300RR
2C0CTTTT 40820008
3803FFSS 00000000
E0000000 00000000
2834XXXX VVVVWWWW
04535C78 38030001
E0000000 80008000

NTSC-J
2834XXXX YYYYZZZZ
C25355F8 00000005
38030000 3D808034
A18CXXXX 2C0CUUUU
40820008 380300RR
2C0CTTTT 40820008
3803FFSS 00000000
E0000000 00000000
2834XXXX VVVVWWWW
045355F8 38030001
E0000000 80008000

NTSC-K
2833XXXX YYYYZZZZ
C2523CD0 00000005
38030000 3D808033
A18CXXXX 2C0CUUUU
40820008 380300RR
2C0CTTTT 40820008
3803FFSS 00000000
E0000000 00000000
2833XXXX VVVVWWWW
04523CD0 38030001
E0000000 80008000

XXXX = Controller Address
YYYYZZZZ = Pause
UUUU = Increase
TTTT = Decrease
VVVVWWWW = Unpause

RR = Speed of increasing
(Example: 01 = 1x, 02 = 2x, 03 = 3x, 09 = 9x, 10 = 16x, 14 = 20x)

SS = Speed of decreasing
(Example: FF = 1x, FE = 2x, FD = 3x, F7 = 9x, EA = 16x, E0 = 20x)

QQ Values (for PAL code only):
34 = If using Wheel, Chuck, or Classic
35 = If using GCN


Video: https://youtu.be/WIUF-UIaF8Y
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)