BUNIT.OUT Get generic job index

From Final Fantasy Hacktics Wiki
Revision as of 06:31, 14 December 2024 by Talcall (talk | contribs)
Jump to navigation Jump to search
001c71a8: 2482ffb6 addiu r2,r4,-0x004a          job ID - squire
001c71ac: 3042ffff andi r2,r2,0xffff
001c71b0: 2c420014 sltiu r2,r2,0x0014           set if generic job ID
001c71b4: 10400003 beq r2,r0,0x001c71c4         branch if not generic job ID; return generic job index 0
001c71b8: 00000000 nop
001c71bc: 08071c72 j 0x001c71c8                 else return generic job index for generic job
001c71c0: 2482ffb6 addiu r2,r4,-0x004a
001c71c4: 00001021 addu r2,r0,r0                
001c71c8: 00021400 sll r2,r2,0x10
001c71cc: 03e00008 jr r31
001c71d0: 00021403 sra r2,r2,0x10