Difference between revisions of "User:Pride"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
==Comments== | ==Comments== | ||
− | 8009e690 is the location of the pointer table for the Menu Controller routine, Facts are called with the routines x2E (80092434 - Fact Menu Idle) and x2F (800928ac - Display Fact Name?). It appears pointers x3A - x3C are available for custom functions if needed. | + | 8009e690 is the location of the pointer table for the Menu Controller routine, Facts are called with the routines x2E (80092434 - Fact Menu Idle) and x2F (800928ac - Display Fact Name?). It appears pointers x3A - x3C are empty and available for custom functions if needed. |
+ | |||
+ | The way the game processes the next menu is that at the end of the routine a value (ranging from x00 to at least x3c) is stored at 800d4580 + Menu "Depth" * 4. | ||
==Data Locations== | ==Data Locations== | ||
+ | 800d4580 - Next Menu Routine (This pointer is updated by 4 and is loaded as a word, I've seen many routines use 800d4584 as the base offset to store this data.) |
Revision as of 22:51, 23 March 2021
Important Fact Routines
8006c3dc - Menu Controller 80092434 - Fact Menu Idle (x2E) 80092618 - Display Fact Description 800928ac - Display Fact Name Outer? (x2F)
Comments
8009e690 is the location of the pointer table for the Menu Controller routine, Facts are called with the routines x2E (80092434 - Fact Menu Idle) and x2F (800928ac - Display Fact Name?). It appears pointers x3A - x3C are empty and available for custom functions if needed.
The way the game processes the next menu is that at the end of the routine a value (ranging from x00 to at least x3c) is stored at 800d4580 + Menu "Depth" * 4.
Data Locations
800d4580 - Next Menu Routine (This pointer is updated by 4 and is loaded as a word, I've seen many routines use 800d4584 as the base offset to store this data.)