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
» Dropped Out of College to Pursue Web Dev and Life Pursuits in General
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty4/7/2024, 2:34 pm by SnB@BWH

» Bully Made It Into a BIG Video 400K Views
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty4/7/2024, 6:58 am by Bully@WiiPlaza

» Wii Play Tanks
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty3/24/2024, 2:46 pm by helpmeout

» [Bypass Paywalls] (Global) @magnolia1234 - GitLab
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty3/18/2024, 3:55 am by Seth@WiiPlaza

» [Download] Mary Shelley's Frankenhole
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty3/16/2024, 8:29 am by Seth@WiiPlaza

» Completely Custom Modded Controllers (Undetectable)
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty3/5/2024, 1:55 pm by Shadow@BWH

» (Zombies) Drink perks code?
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty3/5/2024, 1:24 pm by Shadow@BWH

» Die Rückkehr zu STEAM und WARFACE
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty3/2/2024, 3:54 am by Seth@WiiPlaza

» First person hand model change?
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty2/28/2024, 4:53 am by Ad3lamac611

» {RELEASE} Field Raider Firefox v1.72 by Seth@WiiPlaza
How Do I Properly Make ASM Codes for the Gamecube (Gecko) Empty2/21/2024, 8:52 am by naxil

Search
 
 

Display results as :
 


Rechercher Advanced Search

April 2024
MonTueWedThuFriSatSun
1234567
891011121314
15161718192021
22232425262728
2930     

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