Last active
November 1, 2019 04:39
-
-
Save NWPlayer123/690c69068ddc858d923a0c02e6de8d45 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Restore Health (Down + B) [NWPlayer123] | |
04004BF0 7C7F1B78 | |
04004BF4 7C9E2378 | |
04004BF8 3C60804D | |
04004BFC 3863AFD0 | |
04004C00 A0630000 | |
04004C04 28030204 | |
04004C08 40820008 | |
04004C0C 3BC00064 | |
04004C10 7FE3FB78 | |
04004C14 7FC4F378 | |
04004C18 7C800734 | |
04004C1C 480B4878 | |
040B9490 4BF4B760 | |
E0000000 80008000 | |
7C7F1B78 -> mr r31, r3 (object pointer) | |
7C9E2378 -> mr r30, r4 (what we're setting health to) | |
3C60804D -> lis 0x804D | |
3863AFD0 -> addi r3, r3, -0x5030 (0x804CAFD0) | |
A0630000 -> lhz r3, 0(r3) (load u16 button from PADStatus*) | |
28030204 -> cmplwi r3, 0x204 (down + B) | |
40820008 -> bne +8 (skip next instruction) | |
3BC00064 -> li r30, 100 (set restore value to 100) | |
7FE3FB78 -> mr r3, r31 | |
7FC4F378 -> mr r4, r30 | |
7C800734 -> extsh r0, r4 (instruction we overwrote) | |
480B4878 -> b 800B9494 (return) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment