Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 543
» Latest member: Zacku
» Forum threads: 1,663
» Forum posts: 11,939

Full Statistics

Online Users
There are currently 353 online users.
» 0 Member(s) | 350 Guest(s)
Bing, Facebook, Google

Latest Threads
Make it to 10,000
Forum: General Discussion
Last Post: Fifty
6 hours ago
» Replies: 5,677
» Views: 4,183,161
Boot into TT cup selectio...
Forum: Misc/Other
Last Post: lschlick
10 hours ago
» Replies: 2
» Views: 2,846
Request: Custom brsars pe...
Forum: Code Support / Help / Requests
Last Post: lschlick
10 hours ago
» Replies: 0
» Views: 12
E-mails not working on th...
Forum: General Discussion
Last Post: Fifty
04-19-2024, 04:56 AM
» Replies: 3
» Views: 235
More missing info from Br...
Forum: Coding & Hacking General Discussion
Last Post: Vega
04-15-2024, 10:04 PM
» Replies: 0
» Views: 178
Request: Custom music vol...
Forum: Code Support / Help / Requests
Last Post: lschlick
04-15-2024, 06:13 PM
» Replies: 0
» Views: 195
Request: Additional sound...
Forum: Code Support / Help / Requests
Last Post: _Ro
04-15-2024, 01:50 AM
» Replies: 6
» Views: 237
Mistake in the Broadway M...
Forum: Coding & Hacking General Discussion
Last Post: Vega
04-14-2024, 11:58 PM
» Replies: 0
» Views: 95
Camera Distance Modifier ...
Forum: Visual & Sound Effects
Last Post: vlonebozo
04-13-2024, 11:05 PM
» Replies: 1
» Views: 6,759
Pretty In Game Item Spy p...
Forum: Online; Item
Last Post: vlonebozo
04-13-2024, 03:52 PM
» Replies: 1
» Views: 574

 
  Friend Roster Mii Name Changer & Extender [Vega]
Posted by: Vega - 11-25-2018, 07:59 PM - Forum: Online Non-Item - No Replies

Friend Roster Mii Name Changer & Extender [Vega]

This code will allow you to put in a custom Mii name for every friend of your friend roster online. Your Mii name will NOT be effected. Every friend will have the same Mii name that was set on the code. You also have the ability to extend the Mii Name from 10 to 29 characters in max length. If you don't want to use the full length of 29 characters, simply fill in the non-used values with 0's. 

NTSC-U
C25CF7F0 0000000E
7C0802A6 38E40066
48000045 0000WXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
00000000 7D8802A6
A56C0002 B5670002
2C0B0000 4082FFF4
7C0803A6 80E40068
60000000 00000000

PAL
C25E55CC 0000000E
7C0802A6 38E40066
48000045 0000WXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
00000000 7D8802A6
A56C0002 B5670002
2C0B0000 4082FFF4
7C0803A6 80E40068
60000000 00000000

NTSC-J
C25E4EA8 0000000E
7C0802A6 38E40066
48000045 0000WXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
00000000 7D8802A6
A56C0002 B5670002
2C0B0000 4082FFF4
7C0803A6 80E40068
60000000 00000000

NTSC-K
C25D3768 0000000E
7C0802A6 38E40066
48000045 0000WXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
WXYZWXYZ WXYZWXYZ
00000000 7D8802A6
A56C0002 B5670002
2C0B0000 4082FFF4
7C0803A6 80E40068
60000000 00000000

WXYZ = Mii Character ASCII Value

Example ASCII Values:
0020 = Space
0041 = A
0061 = a
E017 = DSi Heart

Use 0000 for unfilled values if you don't want to use the full length of 29 characters.



Source (using 01230123012301230123456789905 as the Mii Name):

#Address ports
# 805CF7F0 = NTSC-U
# 805E55CC = PAL
# 805E4EA8 = NTSC-J
# 805D3768 = NTSC-K

#Safe registers
#r0, r7, r11, r12

#Save LR, fyi: r0 good to use for this instruction
mflr r0

#Start of Mii Name is at r4+0x68 (where loop writing starts at)
#Mii Name characters are halfword a piece, loop will transfer a halfword at a time
#Thus use r7 to point to r4+0x66
addi r7, r4, 0x66

#Use BL Trick to write out Mii Name
bl mii_name

.short 0x0000
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0030003100320033
.llong 0x0034003500360037
.llong 0x0038003900390030
.short 0x0035
.short 0x0000
.short 0x0000

mii_name:
mflr r12

the_loop:
lhzu r11, 0x2 (r12) #Load Mii Data from BL Trick
sthu r11, 0x2 (r7) #Store Mii Data to dynamic memory
cmpwi r11, 0 #Check for null halfword (end of Mii Data)
bne+ the_loop #If NOT null, keep loop going

mtlr r0 #Move to Link Register, this copies r0's value (original LR) to the Link Register
lwz r7, 0x0068 (r4) #Default Instruction



Code creator: Vega

Print this item

  Install PyiiASMH (ASM Code Compiler + Decompiler)
Posted by: Vega - 11-24-2018, 02:42 AM - Forum: Purgatory - No Replies

Install PyiiASMH (ASM Code Compiler + Decompiler)

NOTE: This is now outdated by PyiiASMH 3, which can be found here: https://mkwii.com/showthread.php?tid=1529



Intro

PyiiASMH is an alternative compiler+decompiler for your ASM codes. WiiRDGUI is proven and it works. The problem with WiiRDGUI is that if a hash-tagged comment is too long and enters into a new line below, WiiRDGUI will try to read it as an ASM instruction, thus giving you a compilation error. WiiRDGUI also does not allow the use of keyboard shortcuts (such as CTRL+A to select the entire source), which can be a nuisance.

PyiiASMH solves these issues. PyiiASMH also has options to compile C0 codes, RAW ASM, add in XOR checksum for F2 type codes, etc. The GUI is also more aesthetically pleasing to the eye.



Installation for Windows (confirmed working for Windows 7 SP3, haven't tried other versions)

Step 1. Install Python and PyQt

You will first need PyQt4 and Python 2.7.11 installed on your Windows computer.

Download Python 2.7.11 MSI x86 Installer - https://www.python.org/downloads/release/python-2711/
Choose the bottom option (Windows x86 Installer with the MD5 checksum of 241bf8e097ab4e1047d9bb4f59602095)

Download PyQt4 for x86 - https://sourceforge.net/projects/pyqt/fi...Qt-4.11.4/
Choose - PyQt4-4.11.4-gpl-Py2.7-Qt4.8.7-x32.exe (29.5 MB in size).

Run the Python MSI Installer first. Complete the installer, then run the PyQt4 exe application. Complete the installation.

Step 2. Download and launch PyiiASMH

Download PyiiASMH HERE.

Unzip/Extract the download. You will see a file called pyiiasmh.py (should have a python logo due to installing python earlier). Open the file. Command prompt will appear then the PyiiASM GUI will launch. Congratz!

You may want to create a desktop shortcut of the pyiiasmh.py file.



Installation for Linux (Debian 9 only, this may work for Ubuntu 16.04)

Here's how you can install PyiiASMH on Debian 9. In theory, this should also work on Ubuntu Linux, but I've never tested it.

1. sudo apt-get update

2. sudo apt-get install python-pyside

3. Download PyiiASMH HERE. Sha256 checksum for download is HERE.Extract the download. You will see a shell script file simply named 'PyiiASMH'. Open/launch the file. PyiiASMH GUI now appears. Congratz!

Downsides of PyiiASMH for Debian 9 only:
On Debian 9, PyiiASMH cannot decompile codes. It can only compile. It appears the linux64bit library for 'vdappc' (the disassembler) was compiled incorrectly from Gecko's vdappc.exe. A ldd command with grep not, shows I have no missing libraries, but the file won't even execute. There is a linux32bit version of the vdappc but it appears to not disassemble codes correctly.



Install PyiiASMH on Wine (Debian 9)

Requirements: Have a full working installation of Wine (plenty of tutorials all over google), have a file manager capable of launching windows-python .py files.

If you can't get PyiiASMH to install on Linux natively, you can try installing through Wine.

1. Download the msi and exe files that were shown for the Windows guide.

2. Open a terminal where you have downloaded the files

msiexec /a python-2.7.11.msi

Follow the installation wizard, leave everything default for any options.

3. Now run the PyQt4...exe via Wine, however you prefer to do it.

Follow the installation wizard, leave everything default for any options.

4. Download PyiiASMH HERE. Sha256 checksum for download is HERE.Extract the download. Right click on the file 'pyiiasmh.py', your file manager will show a list of options to run the file. There should be an option 'python' with the python logo next to it. If not, choose Open With..., and try searching around for it. Click on the 'python' logo to launch PyiiASMH.

NOTE: Do NOT click on the 'pythonw' logo.

PyiiASMH GUI now launches, a terminal screen (for wine.exe) will load alongside it. Congratz!



Troubleshooting (PyiiASMH via Wine-Linux) for launching the pyiiasmh.py file:
If your file manager doesn't automatically configure a launch path/logo when right-clicking on the pyiiasmh.py file, try this...

Run this command (you can replace nano with w/e text editor you want):
gedit ~/.local/share/applications/OpenWithPython.desktop

Fill the file with these contents..
[Desktop Entry]
Type=Application
Name=python
MimeType=text/x-python;
Exec=env WINEPREFIX="/home/yourusernameHERE/.wine" wine-stable start /ProgIDOpen Python.File %f
NoDisplay=true
StartupNotify=true
Icon=9C50_python.0

Save and close, try again. If that doesn't work, try this for the file's contents...

[Desktop Entry]
Name=Python
Exec=wine C:/python27/python.exe %F
Icon=python
Type=Application
Categories=Viewer
StartupNotify=false
Terminal=true
MimeType=application/py

Print this item

  Fibonacci in PowerPC ASM
Posted by: Vega - 11-23-2018, 03:20 AM - Forum: Coding & Hacking General Discussion - No Replies

I was asked by a random person on Discord if I could make a Fibonacci sequence on PPC ASM. 

Example:
x + y = z
0 + 1 = 1
1 + 1 = 2
1 + 2 = 3
2 + 3 = 5
etc etc

He wanted the equation to loop and repeat until X equals 255 then the loop will start from the very beginning again. Anyway here's a quick fibonacci ASM sequence if anybody cares... Ofc, modify this according to store/load to/from memory addresses for use in Cheat Codes...

first_label:
li r16, 0x0 #Set X value
li r17, 0x1 #Set Y Value

second_label:
add r18, r16, r17 #This is the instruction for X+Y=Z. Register 18 is the Z value
mr r16, r17 #Copy Y's values over to X
mr r17, r18 #Copy Z's value over to Y

cmplwi r16, 0xFF #Compare X's value to 255
blt+ second_label #If less than (more likely to occur) continue the Fibonacci sequence by jumping to back to second_label
b first_label #Once X equals 255, reset the entire sequence. Jump to first_label

Raw ASM:
3A000000 3A200001
7E508A14 7E308B78
7E519378 281000FF
4180FFF0 4BFFFFE4

Print this item

  Useless Coin Runners (Offline) [Vega]
Posted by: Vega - 11-21-2018, 10:09 PM - Forum: Time Trials & Battle - No Replies

Useless Coin Runners (Offline) [Vega]

Offline only

This code will make all players always have 0 coins (even though the animated coin stack will still show actual collected coins). Both teams will always finish 0-0. A tie is recorded for every match done. Nopping this code makes your team always lose with a final score of 120 to 144.

NTSC-U
04534D2C 38000000

PAL
04539874 38000000

NTSC-J
045391F4 38000000

NTSC-K
045278CC 38000000

Code creator: Vega

Print this item

  Ghost Always Saves [Diamond]
Posted by: Diamond - 11-19-2018, 03:11 AM - Forum: Time Trials & Battle - Replies (3)

Ghost Always Saves [Diamond]

This will save any run you complete, regardless of whether it's a PR or not. Note that since the game can only store one ghost per track, this will overwrite the former ghost that you have saved on said track, even if it's your PR. Leaderboard and timescroll are affected as well.

NTSC-U
04543C78 41820018

PAL
045491B4 41820018

NTSC-J
04548B34 41820018

NTSC-K
0453720C 41820018

Code creator: Diamond

Print this item

  Mega Mushroom Timer (Online only) [Vega]
Posted by: Vega - 11-18-2018, 07:28 PM - Forum: Incomplete & Outdated Codes - Replies (2)

Mega Mushroom Timer (Online only) [Vega]

NOTE: Outdated by JoshuaMK's Item Timer Code

Works Online only!

This code will keep track (via Milliseconds in timer) of how long you have left before your Mega runs out. Whenever you are not using a Mega, the timer will function normally.

NTSC-U
C2658828 00000003
3D808053 3D6080A1
616B0024 916C10A0
9903001F 00000000
C2572D90 00000006
3803FFFF 3D808053
2C000000 41820010
3D6038A0 7D6B0214
4800000C 3D6080A1
616B0024 916C10A0
60000000 00000000

PAL
C2660764 00000003
3D808053 3D6080A1
616B0024 916C5BE8
9903001F 00000000
C25795F4 00000006
3803FFFF 3D808053
2C000000 41820010
3D6038A0 7D6B0214
4800000C 3D6080A1
616B0024 916C5BE8
60000000 00000000

NTSC-J
C265FDD0 00000003
3D808053 3D6080A1
616B0024 916C5568
9903001F 00000000
C2578F74 00000006
3803FFFF 3D808053
2C000000 41820010
3D6038A0 7D6B0214
4800000C 3D6080A1
616B0024 916C5568
60000000 00000000

NTSC-K
C264EA7C 00000003
3D808052 3D6080A1
616B0024 916C3C40
9903001F 00000000
C256764C 00000006
3803FFFF 3D808052
2C000000 41820010
3D6038A0 7D6B0214
4800000C 3D6080A1
616B0024 916C3C40
60000000 00000000

Source for Timer Reset In Between Races:
#Values per Region

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

.if (region == 'E' || region == 'e') # RMCE
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x10A0
.elseif (region == 'P' || region == 'p') # RMCP
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x5BE8
.elseif (region == 'J' || region == 'j') # RMCJ
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x5568
.elseif (region == 'K' || region == 'k') # RMCK
    .set _1sthalf, 0x8052
    .set _2ndhalf, 0x3C40
.else # Invalid Region
    .abort
.endif

lis r12, _1sthalf
lis r11, 0x80A1 #Default Word Value (instruction) at Millisecond Display Code Address
ori r11, r11, 0x0024
stw r11, _2ndhalf (r12)

stb r8, 0x001F (r3) #Default Instruction


=====

Source for Mega Mushroom Timer (NTSC-K):
subi r0, r3, 1 #Default ASM, r0 holds mega time limit value

lis r12, 0x8052 #Set 1st half address for Millisecond Code

cmpwi r0, 0x0 #Compare mega time limit value to zero
beq- fix_timer #If equal, we need to fix the timer, let's fix it, jump to fix_timer label

lis r11, 0x38A0 #Set 1st half word value to write
add r11, r11, r0 #Add r11 and r0 together to get finalized word value to write

b the_end #No need to fix the timer ofc, jump to the_end

fix_timer:
lis r11, 0x80A1 #Set 1st half default word value
ori r11, r11, 0x0024 #Set 2nd half default word value

the_end:
stw r11, 0x3C40 (r12) #Store word of r11 to 0x80523C40

Code creator: Vega
Code credits: Bully (Millisecond Display Modifier & Address founder for Mega ASM)

Print this item

  Star Timer (Online only) [Vega]
Posted by: Vega - 11-18-2018, 07:07 PM - Forum: Incomplete & Outdated Codes - No Replies

Star Timer (Online only) [Vega]

NOTE: Outdated by JoshuaMK's Item Timer Code

Works Online only!

This code will keep track (via Milliseconds in timer) of how long you have left before your Star runs out. Whenever you are not using a Star, the timer will function normally.

NTSC-U
C2658828 00000003
3D808053 3D6080A1
616B0024 916C10A0
9903001F 00000000
C2572EC4 00000006
3803FFFF 3D808053
2C000000 41820010
3D6038A0 7D6B0214
4800000C 3D6080A1
616B0024 916C10A0
60000000 00000000

PAL
C2660764 00000003
3D808053 3D6080A1
616B0024 916C5BE8
9903001F 00000000
C2579728 00000006
3803FFFF 3D808053
2C000000 41820010
3D6038A0 7D6B0214
4800000C 3D6080A1
616B0024 916C5BE8
60000000 00000000

NTSC-J
C265FDD0 00000003
3D808053 3D6080A1
616B0024 916C5568
9903001F 00000000
C25790A8 00000006
3803FFFF 3D808053
2C000000 41820010
3D6038A0 7D6B0214
4800000C 3D6080A1
616B0024 916C5568
60000000 00000000

NTSC-K
C264EA7C 00000003
3D808052 3D6080A1
616B0024 916C3C40
9903001F 00000000
C2567780 00000006
3803FFFF 3D808052
2C000000 41820010
3D6038A0 7D6B0214
4800000C 3D6080A1
616B0024 916C3C40
60000000 00000000

Source for Timer Reset In Between Races:
#Values per Region

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

.if (region == 'E' || region == 'e') # RMCE
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x10A0
.elseif (region == 'P' || region == 'p') # RMCP
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x5BE8
.elseif (region == 'J' || region == 'j') # RMCJ
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x5568
.elseif (region == 'K' || region == 'k') # RMCK
    .set _1sthalf, 0x8052
    .set _2ndhalf, 0x3C40
.else # Invalid Region
    .abort
.endif

lis r12, _1sthalf
lis r11, 0x80A1 #Default Word Value (instruction) at Millisecond Display Code Address
ori r11, r11, 0x0024
stw r11, _2ndhalf (r12)

stb r8, 0x001F (r3) #Default Instruction

=====

Source for Star Timer (NTSC-K):
subi r0, r3, 1 #Default ASM, r0 holds star time limit value

lis r12, 0x8052 #Set 1st half address for Millisecond Code

cmpwi r0, 0x0 #Compare star time limit value to zero
beq- fix_timer #If equal, we need to fix the timer, let's fix it, jump to fix_timer label

lis r11, 0x38A0 #Set 1st half word value to write
add r11, r11, r0 #Add r11 and r0 together to get finalized word value to write

b the_end #No need to fix the timer ofc, jump to the_end

fix_timer:
lis r11, 0x80A1 #Set 1st half default word value
ori r11, r11, 0x0024 #Set 2nd half default word value

the_end:
stw r11, 0x3C40 (r12) #Store word of r11 to 0x80523C40

Code creator: Vega
Code credits: Bully (Millisecond Display Modifier & Address founder for Star ASM)

Print this item

  Golden Mushroom Timer (Online only) [Vega]
Posted by: Vega - 11-17-2018, 09:52 PM - Forum: Incomplete & Outdated Codes - Replies (12)

Golden Mushroom Timer (Online only) [Vega]

NOTE: Outdated by JoshuaMK's Item Timer Code

Works Online only!

This code will keep track (via Milliseconds in timer) of how long you have left before your Golden Mushroom runs out. Whenever you are not using a Golden, the timer will function normally.

NTSC-U
C2658828 00000003
3D808053 3D6080A1
616B0024 916C10A0
9903001F 00000000
C27ADD30 00000005
3403FFFF 3D808053
41820010 3D6038A0
7D6B0214 4800000C
3D6080A1 616B0024
916C10A0 00000000

PAL
C2660764 00000003
3D808053 3D6080A1
616B0024 916C5BE8
9903001F 00000000
C27BC790 00000005
3403FFFF 3D808053
41820010 3D6038A0
7D6B0214 4800000C
3D6080A1 616B0024
916C5BE8 00000000

NTSC-J
C265FDD0 00000003
3D808053 3D6080A1
616B0024 916C5568
9903001F 00000000
C27BBDFC 00000005
3403FFFF 3D808053
41820010 3D6038A0
7D6B0214 4800000C
3D6080A1 616B0024
916C5568 00000000

NTSC-K
C264EA7C 00000003
3D808052 3D6080A1
616B0024 916C3C40
9903001F 00000000
C27AAB50 00000005
3403FFFF 3D808052
41820010 3D6038A0
7D6B0214 4800000C
3D6080A1 616B0024
916C3C40 00000000

Source for Timer Reset In Between Races:
#Values per Region

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

.if (region == 'E' || region == 'e') # RMCE
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x10A0
.elseif (region == 'P' || region == 'p') # RMCP
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x5BE8
.elseif (region == 'J' || region == 'j') # RMCJ
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x5568
.elseif (region == 'K' || region == 'k') # RMCK
    .set _1sthalf, 0x8052
    .set _2ndhalf, 0x3C40
.else # Invalid Region
    .abort
.endif

lis r12, _1sthalf
lis r11, 0x80A1 #Default Word Value (instruction) at Millisecond Display Code Address
ori r11, r11, 0x0024
stw r11, _2ndhalf (r12)

stb r8, 0x001F (r3) #Default Instruction


=====

Source for Golden Mushroom Timer (NTSC-K):
subic. r0, r3, 1 #Default ASM, Condition Register is now set

lis r12, 0x8052 #Set 1st half address for Millisecond Display Modifier address

beq- fix_timer #If value in r0 is equal to 0, we need to now set the timer back to normal, jump to fix_timer label

lis r11, 0x38A0 #Set 1st half of word value to write to Millisecond Display address
add r11, r11, r0 #Add r11 and r0 together to get finalized word value

b the_end #No need to fix timer ofc, jump to the_end label

fix_timer:
lis r11, 0x80A1 #Set 1st half of default word value to write to Millisecond Display address
ori r11, r11, 0x0024 #Set 2nd half of default word value

the_end:
stw r11, 0x3C40 (r12) #Store word of r11 to 0x80523C40, 2nd half of address completed by offset

Code creator: Vega
Code credits: Bully (Millisecond Display Modifier & Address founder for Golden Mushroom ASM)

Print this item

  Air-O-Meter; TT's Only [Vega]
Posted by: Vega - 11-17-2018, 07:42 PM - Forum: Incomplete & Outdated Codes - Replies (2)

Air-O-Meter; TT's Only [Vega]

NOTE: Outdated by Universal Meter in main Codes forum since that can show Air in both TTs and Online

This code will tell you how long you have been in flight (air time). The unit of measurement is in frames. This will only work in Solo Time Trials.

NTSC-U
C2576FBC 00000003
8003001C 3D808053
3D6038A0 7D6B0214
916C10A0 00000000

PAL
C257D820 00000003
8003001C 3D808053
3D6038A0 7D6B0214
916C5BE8 00000000

NTSC-J
C257D1A0 00000003
8003001C 3D808053
3D6038A0 7D6B0214
916C5568 00000000

NTSC-K
C256B878 00000003
8003001C 3D808052
3D6038A0 7D6B0214
916C3C40 00000000



Source:
#Values per Region

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

.if (region == 'E' || region == 'e') # RMCE
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x10A0
.elseif (region == 'P' || region == 'p') # RMCP
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x5BE8
.elseif (region == 'J' || region == 'j') # RMCJ
    .set _1sthalf, 0x8053
    .set _2ndhalf, 0x5568
.elseif (region == 'K' || region == 'k') # RMCK
    .set _1sthalf, 0x8052
    .set _2ndhalf, 0x3C40
.else # Invalid Region
    .abort
.endif

lwz r0, 0x001C (r3) #Default Instruction, r0 holds air time

lis r12, _1sthalf
lis r11, 0x38A0
add r11, r11, r0 #Can't do addis w/o lis due to r0 being source register
stw r11, _2ndhalf (r12)



Code creator: Vega
Code credit(s): Bully (Millisecond Display Modifier Code creator), mdmwii (subroutine founder for Millisecond Display)

Print this item

  Press Button To Restart Wii [Vega]
Posted by: Vega - 11-16-2018, 11:24 PM - Forum: Misc/Other - No Replies

Press Button To Restart Wii [Vega]

This code allows you to press a button(s) on your controller (at any time) to shut down the game and restart the Wii. If you have something such as Priiloader installed with HBC configured to boot instead of the Wii menu, then you will return to the HBC menu instead.

NTSC-U
2834XXXX YYYYZZZZ
C60095F4 801AB938
E0000000 80008000

PAL
2834XXXX YYYYZZZZ
C6009634 801AB9D8
E0000000 80008000

NTSC-J
2834XXXX YYYYZZZZ
C6009590 801AB8F8
E0000000 80008000

NTSC-K
2833XXXX YYYYZZZZ
C600973C 801ABD34
E0000000 80008000

Source (PAL):
Write Branch => 801AB9D8 (__OSHotReset) at Address 80009634

Code creator: Vega
Code credits: Megazig (OS symbols)

Print this item