Get Spritesheet Graphic Height

From Final Fantasy Hacktics Wiki
Revision as of 22:47, 21 April 2022 by Glain (talk | contribs) (Created page with " # ROUTINE: GET SPRITESHEET GRAPHIC HEIGHT # Gets spritesheet graphic height. # Parameters: # r4 = (spritesheetID) Spritesheet ID # Returns:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
#   ROUTINE: GET SPRITESHEET GRAPHIC HEIGHT
#       Gets spritesheet graphic height.
#       Parameters:
#           r4 = (spritesheetID) Spritesheet ID
#       Returns:
#           r2 = Graphic height of spritesheet with specified ID

80081af0: 3084ffff andi r4,r4,0xffff                #   spritesheetID
80081af4: 00042080 sll r4,r4,0x02                   #   spritesheetID * 4
80081af8: 3c018009 lui r1,0x8009
80081afc: 00240821 addu r1,r1,r4
80081b00: 9022474a lbu r2,0x474a(r1)                #   return spritesheetData[spritesheetID].graphicHeight;
80081b04: 03e00008 jr r31
80081b08: 00000000 nop