WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: doudley on August 29, 2010, 01:53:36 PM

Title: Code help! noob question regarding code convertion
Post by: doudley on August 29, 2010, 01:53:36 PM
Hi! I'm doudley, I'm new to code making and what not, this is just out of my curiosity but I'm just wondering if I can convert a code with button activator into a ASM (C2 codetype) format or in a subcode format?

This is my code:

04799F04 C2700000
286593DC FFEF0010
04799F04 42700000
E0000000 80008000

If the reason is ask, I just like to use cheat codes to a gaming platform emulator that doesn't support code types.

Any format would be appreciated, even in op codes. Thank you!
Title: Re: Code help! noob question regarding code convertion
Post by: Deathwolf on August 29, 2010, 02:52:24 PM
fisrt you must break the 04 addresses to get the ASM instructions.
but you can convert it into C0 codetype.

lis r9,0x8079
ori r9,r9,0x9F04
lis r10,0xC270
ori r10,r10,0x0000
stw r10,0(r9)

lis r11,0x8079
ori r11,r11,0x9F04
lis r12,0x4270
ori r12,r12,0x0000
stw r12,0(r11)

C0000000 00000003
3D208079 61299F04 <--- load into address 80799F04
3D40C270 614A0000 <--- write value C2700000
91490000 4E800020
286593DC FFEF0010  <-- button activator
C0000000 00000003
3D608079 616B9F04 <--- load into address 80799F04
3D804270 618C0000 <--- write value 42700000
918B0000 4E800020
Title: Re: Code help! noob question regarding code convertion
Post by: doudley on August 29, 2010, 03:00:48 PM
Thanks Deathwolf! I'm going to try those right now ;D

EDIT: Nope sorry :-[, I can't figure out this and the C0 is still a codetype.... How about a subcode that branches out to the address that I want to change values when i press a button! Is that possible?

-lol, wrong spelling of "conversion"! sorry about that! :P
Title: Re: Code help! noob question regarding code convertion
Post by: Deathwolf on August 29, 2010, 03:15:51 PM
set bp read on address 80799F04
Title: Re: Code help! noob question regarding code convertion
Post by: doudley on August 29, 2010, 03:35:29 PM
Quote from: Deathwolf on August 29, 2010, 03:15:51 PM
set bp read on address 80799F04

OK I get it :D This gonna take me a while though, I'll just gonna post the result when I come back, TY very much Deathwolf for your time!
Title: Re: Code help! noob question regarding code convertion
Post by: Deathwolf on August 29, 2010, 03:38:18 PM
yea no problem^^
Title: Re: Code help! noob question regarding code convertion
Post by: dcx2 on August 29, 2010, 03:51:03 PM
Quote from: doudley on August 29, 2010, 01:53:36 PM
If the reason is ask, I just like to use cheat codes to a gaming platform emulator that doesn't support code types.

So in other words, you're pirating Wii games with the Dolphin emulator?

Sorry, we don't support piracy on this forum.  Go buy a Wii and some games so the developers can feed their kids and send them to college.

I'm locking this thread.