WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: Crapulecorp on August 15, 2013, 08:54:48 PM

Title: Try to understand 82 and 84 codetype
Post by: Crapulecorp on August 15, 2013, 08:54:48 PM
I really dont understand the 82 and 84 codetype.

So if someone can explain me in a really noob way thanks in advance.

I have an example it could be easier for me to understand:

R7GPAF
Dragon Ball: Revenge of King Piccolo


P1/Goku Health [sm98]
82100009 8041C8F0
84100019 8041C8EC

For this one i made a basic 16 bit search and i found the adress : 8041C8EC

(http://crapulecorp.site50.net/viedragonballpicolo.jpg)
------------------------------
For the Ki adress is 8044E760

P1/Goku Ki [sm98]
8210000A 8044E75E
8410000A 8044E760

(http://crapulecorp.site50.net/kidragonballpicolo.jpg)
Title: Re: Try to understand 82 and 84 codetype
Post by: dcx2 on August 15, 2013, 09:41:16 PM
82 = copy into Gecko Register (like ctrl+c into clipboard)
84 = paste from GR (like ctrl+v from clipboard)

8210 = copy 16 bits into GR

8410 = paste 16 bits from GR
Title: Re: Try to understand 82 and 84 codetype
Post by: Crapulecorp on August 15, 2013, 10:04:30 PM
Thanks dcx2.
But i need more precision :

P1/Goku Health [sm98]
82100009 8041C8F0
84100019 8041C8EC

For this one i don't understand  the 09 and the 19, and no value in it. ex: 04B0.

P1/Goku Health [sm98]
82100009 8041C8F0
84100019 8041C8EC

And the same for the second :

P1/Goku Ki [sm98]
8210000A 8044E75E
8410000A 8044E760
Title: Re: Try to understand 82 and 84 codetype
Post by: dcx2 on August 15, 2013, 10:11:51 PM
The very last digit is the specific GR that will be used for copy.  So for the first code, copy into GR9, paste from GR9.  The second code copies into GRA and pastes from GRA.

The second to last digit (actually, the three of them) are the number of times to paste, and are only used with 84 code type

8410YYY9, YYY = number of times to paste + 1.  So if YYY = 0, it pastes once.  If YYY = 1, it pastes twice.  Like pressing ctrl+v twice.

EDIT: the value, in this case 04B0, came from 8041C8F0 and was put into GR9, by the 82 code.