WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: CosmoCortney on December 07, 2014, 07:04:22 PM

Title: Problem with if-codes as pointer and gecko registers as pointer..
Post by: CosmoCortney on December 07, 2014, 07:04:22 PM
It's me again, sorry.
But I've been trying to make an if greater than conditional of a pointer code..

48000000 804691B8
DE000000 00008180
14001F24 XXXXXXXX

I want that if XXXXXXXX is greater than 81300000 the next lines are enabled.
QuoteTo use po instead of ba, change the codetype from 24 to 34.

48000000 344691B8
DE000000 00008180 // is this line still needed here?
14001F24 81300000


Is it correct? (i assume it isn't)

and i'd like to load into gecko register from a pointer and store something back into its address.

Title: Re: Problem with if-codes as pointer and gecko registers as pointer..
Post by: Bully@Wiiplaza on December 09, 2014, 12:27:44 AM
Hello Cortney,

48000000 804691B8 # Load 804691B8 into pointer address
DE000000 80008180 # Value at 804691B8 must be between 8000000 and 81800000
34001F24 XXXXXXXX # If value at address (value at 804691B8) + 1F24 is greater than XXXXXXXX
# Write something
E0000000 80008000 # Reset code execution status

I hope this helped!
Title: Re: Problem with if-codes as pointer and gecko registers as pointer..
Post by: CosmoCortney on December 09, 2014, 08:24:28 AM
yes, thank you!
seems obvious since 14XXXXXX is 04XXXXXX + 10 to ba..