Display Specific Menu Text (WORLD.BIN)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
#   ROUTINE: DISPLAY SPECIFIC MENU TEXT (WORLD.BIN)
#       This routine is an analog to Display Specific Menu Text in BATTLE.BIN.
#       Parameters:
#           r4 = (p1) Pointer; Used as Parameter 2 in Routine 0x800ff284
#                Sometimes varies by menu, sometimes is the same
#           r5 = (p2) Menu data pointer?
#           r6 = (displayText) Specific text to display

800fe7d4: 27bdffe8 addiu r29,r29,-0x0018
800fe7d8: 00801821 addu r3,r4,r0
800fe7dc: 00a04021 addu r8,r5,r0
800fe7e0: 00c03821 addu r7,r6,r0
800fe7e4: 3c028010 lui r2,0x8010
800fe7e8: 2442e818 addiu r2,r2,-0x17e8              #   0x800fe818     
800fe7ec: 00002021 addu r4,r0,r0
800fe7f0: 00602821 addu r5,r3,r0
800fe7f4: afbf0010 sw r31,0x0010(r29)
800fe7f8: 3c01801d lui r1,0x801d
800fe7fc: ac22d78c sw r2,-0x2874(r1)                #   routineAddress = 0x800fe818 (Display Menu Text (WORLD.BIN))
800fe800: 0c0400e1 jal 0x80100384                   #   Call Inner Subroutine (WORLD.BIN) (0, p1, p2, displayText);
800fe804: 01003021 addu r6,r8,r0
800fe808: 8fbf0010 lw r31,0x0010(r29)
800fe80c: 27bd0018 addiu r29,r29,0x0018
800fe810: 03e00008 jr r31
800fe814: 00000000 nop