BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup

Join the forum, it's quick and easy

BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup
BullyWiiHacks
Would you like to react to this message? Create an account in a few clicks or log in to continue.
BullyWiiHacks

Gaming, Modding & Programming

Important reminders:

- Click *HERE* for advanced forum search or check out the text field below on the front page for Google before posting
- NO support via private message (use the forum)
- Write meaningful topic titles
Site Translation
Latest topics
» JMaster Duel Bot: A Yu-Gi-Oh! Master Duel Bot and Trainer for Steam
How Do I Properly Make ASM Codes for the Gamecube (Gecko) EmptyYesterday at 5:26 am by Bully@WiiPlaza

» Error Injecting Drool Links Saliva Mod Menu
How Do I Properly Make ASM Codes for the Gamecube (Gecko) EmptyYesterday at 5:24 am by Bully@WiiPlaza

» USB Gecko problems with some games
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty10/16/2024, 1:59 pm by Reclaimer Shawn

» Metal Gear Solid V The Phantom Pain X Flashpoint Batman Gameplay unedited [Seth@WiiPlaza]
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty9/23/2024, 12:48 pm by Seth@WiiPlaza

» Dropped Out of College to Pursue Web Dev and Life Pursuits in General
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty8/9/2024, 7:09 am by SnB@BWH

» Lego Stars Wars: The Complete Saga [RLGE64]
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty8/1/2024, 2:04 am by Whatever_1240

» ASM <> Gecko Code Converter
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty7/29/2024, 11:15 am by Mac11ngAround

» German With a Jackhammer
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty7/28/2024, 3:42 pm by SnB@BWH

» Wii RAM Hacking: Pointers and ASM
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty7/23/2024, 1:54 pm by Mac11ngAround

» IBM AIX Assembler Programming Reference - Useful For PPC ASM
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty7/21/2024, 5:00 pm by Mac11ngAround

Search
 
 

Display results as :
 


Rechercher Advanced Search

November 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar Calendar

Country Statistics
Free counters!

You are not connected. Please login or register

How Do I Properly Make ASM Codes for the Gamecube (Gecko)

2 posters

Go down  Message [Page 1 of 1]

Reclaimer Shawn

Reclaimer Shawn
Code Creator

I decided to get into ASM Coding for the Gamecube. I learned a good amount of ARM to work with the Nintendo Switch and I found the functions that are equivalent to what I want to do in PPC. I think I know enough PPC to do what I want to do. So, I used Dolphin Debugger to find the function that stores HP in Pokemon Colosseum. The address of the function is at 8011DC74 and the function is sth r4, 0x008A (r3). The address in question stores a 16-bit value, so it makes since Store Halfword is the function used. Furthermore, I know this is the proper function, as NOP'ing it prevents HP from being updated and this is the address I found by setting a breakpoint on write on the HP address.

I know r4 is what's being stored and I know 0x008A (r3) is where the value is being stored, that is, the current HP address.
I believe this assembler code would accomplish what I want:

li r4, 0
sth r4, 0x008A (r3)

My goal is to make r4 0 to set the HP value to 0 in order to make a one-hit kill code.

Using ASMWiiRD, I get the following code:
C211DC74 00000002
38800000 B083008A
60000000 00000000

I'm also under the assumption the code handler makes a branch to this function and sets a nop and a blr at the end, allowing the function to be passed back to the game.  

Problem is this prevents the game from starting. Dolphin says IntCPU = 00000000 at PC = 800018a8 last_PC = 812fffc8 LR = 80002ffc, with several similar areas incrementing the PC addresses after this. I know a one-hit kill code exists already, but I wanted to do something easy to get started with this type of coding. What am I doing wrong and how would I go about doing what I need to do? I already tried placing a blr into the assembler to see if that'd help (if the code handler didn't do it automatically as expected, but that didn't fix anything).

Reclaimer Shawn

Reclaimer Shawn
Code Creator

I tried the code on an actual Wii and it worked perfectly. Turns out, Dolphin just didn't like my code for whatever reason. I even got have it so it can be toggled off and on! I mean, the code already exists in the form of setting the opponent's HP to 0, but it does it by setting an address and not a function. So, this was at least fruitful as a lesson.

SnB@BWH

SnB@BWH
Admin & Writer

Dolphin isn't all that good as it should be for code creation of any kind, be it ASM or RAM Writes or even just poking. You're much better off, if you are to make ASM codes, to use Gecko dotNET and an actual Wii. Glad you got it working!


_________________
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Simple10

How Do I Properly Make ASM Codes for the Gamecube (Gecko) LSTjSyDDiscord: SnB_BWH

Click HERE to earn free bitcoin, litecoin, dogecoin, and dash!

Win Free Bitcoins every hour!

Reclaimer Shawn

Reclaimer Shawn
Code Creator

I have an actual Wii, as said above. Only problem is finding a USB Gecko or Shuriken USB (USB Gecko Clone). Haven't seen anyone selling them and no one produces either anymore. I guess from now on just use Dolphin to find functions associated with addresses and test my ASM codes on the Wii.

SnB@BWH

SnB@BWH
Admin & Writer

Oh, I know, I was just making a point, lol Smile If you're really good with programming and electronics, tinkering with stuff, etc., the resources for building one can be found online. You just have to put everything together. A couple years ago, I was going to attempt it, but I can't program worth a shit and I know the bare minimum when it comes to electronics, but I can tinker with things... Provided I have the right tools. ... I didn't bother with it, because I knew I wouldn't / couldn't go all the way through with it.


_________________
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Simple10

How Do I Properly Make ASM Codes for the Gamecube (Gecko) LSTjSyDDiscord: SnB_BWH

Click HERE to earn free bitcoin, litecoin, dogecoin, and dash!

Win Free Bitcoins every hour!

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum