? 0x14cbc0

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
#   ROUTINE: ? 0x14cbc0
#   Returns:
#       r2 = First 4-byte value of current menu block
#               Value is *((*0x80174038 * 1024) + *0x80165f98)

8014cbc0: 3c018017 lui r1,0x8017
8014cbc4: 00200821 addu r1,r1,r0
8014cbc8: 8c284038 lw r8,0x4038(r1)         #   *0x80174038                                     (Block number of Menu type)
8014cbcc: 00000000 nop
8014cbd0: 00084280 sll r8,r8,0x0a           #   *0x80174038 * 1024                              (Block number of Menu type * sizeof(Block))
8014cbd4: 3c018016 lui r1,0x8016
8014cbd8: 00200821 addu r1,r1,r0
8014cbdc: 8c295f98 lw r9,0x5f98(r1)         #   *0x80165f98                                     (Start location for block data?)
8014cbe0: 00000000 nop
8014cbe4: 01094021 addu r8,r8,r9            #   (*0x80174038 * 1024) + *0x80165f98              (Pointer to this block)
8014cbe8: 8d020000 lw r2,0x0000(r8)         #   return *((*0x80174038 * 1024) + *0x80165f98)    (Return first 4-byte value of this block)
8014cbec: 03e00008 jr r31
8014cbf0: 00000000 nop