WiiRd forum

Wii & Gamecube Hacking => Wii Game hacking help => Topic started by: Igglyboo on December 25, 2008, 12:48:27 PM

Title: Pointer in a Pointer
Post by: Igglyboo on December 25, 2008, 12:48:27 PM
How would I construct a code to write to a pointer in a pointer.
How would I write the value 3F800000 to [[[80623320+4]+60]+3C]?
Title: Re: Pointer in a Pointer
Post by: paprika_killer on December 25, 2008, 01:49:15 PM
this one:

Quote58010 : po = [po+XXXXXXXX]

Title: Re: Pointer in a Pointer
Post by: brkirch on December 25, 2008, 04:57:17 PM
Quote from: Igglyboo on December 25, 2008, 12:48:27 PM
How would I construct a code to write to a pointer in a pointer.
How would I write the value 3F800000 to [[[80623320+4]+60]+3C]?
A code that writes 3F800000 to [[[80623320+4]+60]+3C] would look like this:
48000000 80623324
58010000 00000060
58010000 0000003C
14000000 3F800000
E0000000 80008000

Edit: Sorry, I forgot the pointer check lines.  If you make a code like that don't forget the DE000000 80008180 lines to ensure that addresses are valid before using them:
48000000 80623324
DE000000 80008180
58010000 00000060
DE000000 80008180
58010000 0000003C
DE000000 80008180
14000000 3F800000
E0000000 80008000
Title: Re: Pointer in a Pointer
Post by: hawkeye2777 on December 25, 2008, 08:00:26 PM
From personal experience, I think it is much easier to make an ASM write than deal with Pointers in Pointers. It might have just been that Need for Speed: Carbon (GCN) is just that badly programmed, but as soon as I made an ASM write instead of a pointer in pointer code, it did not freeze anymore.