WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: isomorphix on September 06, 2009, 08:08:55 PM

Title: Codetype 07???
Post by: isomorphix on September 06, 2009, 08:08:55 PM
I have been trying to figure out what code type 07 does. I've checked the Technical Code Type Document but I don't see any reference to this code type.

If it is any help, this is the specific code that I am trying to interpret:
077F9A00 00000028

Thanks in advance for your help.
Title: Re: Codetype 07???
Post by: Romaap on September 06, 2009, 08:39:02 PM
It is the String Code (http://wiird.l0nk.org/codetypes.html#c03).
But this one writes to ba+address+1000000.
Title: Re: Codetype 07???
Post by: HaXXeR on September 06, 2009, 08:44:29 PM
Curse you Romaap.  :D

I had a well written reply that I had to scrap because you answered while writing.
Title: Re: Codetype 07???
Post by: isomorphix on September 06, 2009, 08:58:34 PM
Alright, that makes some sense, but I don't quite get where the +1000000 is coming from. I'm new to hacking the wii, but I have years of programming experience as well as some some basic experience with asm on x86. An actual explanation rather than just what it does would be greatly appreciated it.

Thanks for the quick reply.
Title: Re: Codetype 07???
Post by: HaXXeR on September 06, 2009, 09:21:02 PM
The basic memory range is 80000000-81800000 (mostly). Since the two first characters are used for the codetype you can only specify the address with the last six (__######).

This means you cannot write to a higher adress than 80FFFFFF. What that type does is simply add 1 to the second character (i.e. 01000000). This means you can write to 81000000 and over without having to change the base address. This works with the "write and fill"-types too.

Of course this applies to whatever memory range you are using at the moment.
Title: Re: Codetype 07???
Post by: isomorphix on September 06, 2009, 09:23:50 PM
Ok, that is what I was thinking but I didn't want to assume anything.