This is copypasta'd from my "reminder" document.
Game: Super Mario Galaxy (NTSC)
Mario Infinite Health Code Example by Mathew M.
Original tutorial written by: Foxx of BSOD.
Use prefix 48 to show you want to add something to the pointer or modify a pointer,
then pad it with zeros.
You will end up with: 48000000 00000000
Replace the 00000000 with your Pointer.
Example: 48000000 806B7B40 (Mario's Health Pointer)
Then you need a new line to specify the Offet and what to lock
the value at.
Use prefix (14) for RAM Write (po), and pad the rest with zeros.
Example: 14000XXX Replace XXX with your offset.
Example: 14000380 Will be Mario's health Pointer's offset.
Then specify what to lock Mario's health at.
Example: 00000006 (Max Health) (32 Bit value 6)
Next you will need to reset the pointers after the code is
executed, to make sure the system doesn't lock up. (Freeze)
The following code will reset them: E0000000 80008000
So when you are done, Mario's infinite health code should be;
48000000 806B7B40 (Choose the pointer to modify)
14000380 00000006 (Lock Mario's health at 6)
E0000000 80008000 (Reset the pointer)
So here is a copypastable code you can use with
Gecko OS or Ocarina;
[Infinite Health] [Mathew_Wi & Foxx]
48000000 806B7B40
14000380 00000006
E0000000 80008000
[Mario Health Modifier] [Mathew_Wi & Foxx]
48000000 806B7B40
14000380 0000000x
E0000000 80008000
x Is the ammount of health to lock good ol' Mario's health. (Minimum 1 and Maximum 6)
Thanks for reading.