Pointer in a Pointer

Started by Igglyboo, December 25, 2008, 12:48:27 PM

Previous topic - Next topic

Igglyboo

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]?

paprika_killer

this one:

Quote58010 : po = [po+XXXXXXXX]

[SIGPIC][/SIGPIC]

brkirch

#2
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

hawkeye2777

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.
Currently "retired" from hacking codes.