Display Menu Text Entry (WORLD.BIN)

From Final Fantasy Hacktics Wiki
Revision as of 02:05, 18 May 2018 by Glain (talk | contribs) (Created page with " # ROUTINE: DISPLAY MENU TEXT ENTRY (WORLD.BIN) # Analog to Display Menu Text Entry in BATTLE.BIN. # Parameters: # r4 = (combinedTextIndex) for...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
#   ROUTINE: DISPLAY MENU TEXT ENTRY (WORLD.BIN)
#       Analog to Display Menu Text Entry in BATTLE.BIN.
#       Parameters:
#           r4 = (combinedTextIndex) for text lookup
#               16-bit value:
#                   (Upper 5 bits):     Text Section
#                   (Lower 11 bits):    Inner text index within Section
#           r5 = (p2) Pointer; Used as Parameter 2 in Routine 0x800ff284
#                Sometimes varies by menu, sometimes is the same
#           r6 = (p3) Menu data pointer?

800fe774: 27bdffe8 addiu r29,r29,-0x0018
800fe778: 3c028010 lui r2,0x8010
800fe77c: 2442e818 addiu r2,r2,-0x17e8              #   0x800fe818
800fe780: afbf0010 sw r31,0x0010(r29)
800fe784: 3c01801d lui r1,0x801d
800fe788: ac22d78c sw r2,-0x2874(r1)                #   routineAddress = 0x800fe818 (Display Menu Text (WORLD.BIN))
800fe78c: 0c0400e1 jal 0x80100384                   #   Call Inner Subroutine (WORLD.BIN) (combinedTextIndex, p2, p3, 0);
800fe790: 00003821 addu r7,r0,r0
800fe794: 8fbf0010 lw r31,0x0010(r29)
800fe798: 27bd0018 addiu r29,r29,0x0018
800fe79c: 03e00008 jr r31
800fe7a0: 00000000 nop