Display Specific Menu Text

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
#   ROUTINE: DISPLAY SPECIFIC MENU TEXT
#       Parameters:
#           r4 = [Parameter 1]; Pointer; Used as Parameter 2 in Routine 0x14bd88
#                Sometimes varies by menu, sometimes is the same
#                Example values: 0x8016eb84 (Most menus), 0x801c3a7c (AT menu, part of Option menu) 0x801e5730 (Unit list)
#           r5 = [Parameter 2]; Menu data pointer?
#                Example value: 0x80165fa0 (Always seems to be this value)
#           r6 = [Text to Display]

0014b350: 27bdffe8 addiu r29,r29,-0x0018
0014b354: 00801821 addu r3,r4,r0
0014b358: 00a04021 addu r8,r5,r0
0014b35c: 00c03821 addu r7,r6,r0
0014b360: 3c028015 lui r2,0x8015
0014b364: 2442b394 addiu r2,r2,-0x4c6c          #   0x8014b394: Address of routine to call
0014b368: 00002021 addu r4,r0,r0
0014b36c: 00602821 addu r5,r3,r0
0014b370: afbf0010 sw r31,0x0010(r29)
0014b374: 3c018017 lui r1,0x8017
0014b378: ac223ca8 sw r2,0x3ca8(r1)             #   (Pseudo)-Parameter: Routine to call: Display Menu Text
0014b37c: 0c0533ad jal 0x0014ceb4               #   Routine: Call Inner Subroutine
0014b380: 01003021 addu r6,r8,r0                #       Parameters: (0, [Parameter 1], [Parameter 2], [Text to Display])
0014b384: 8fbf0010 lw r31,0x0010(r29)
0014b388: 27bd0018 addiu r29,r29,0x0018
0014b38c: 03e00008 jr r31
0014b390: 00000000 nop