Calculate Job Level
Jump to navigation
Jump to search
Calculate Job Level 0005def4: 00003021 addu r6,r0,r0 Job Level = 0 0005def8: 00002821 addu r5,r0,r0 Counter = 0 0005defc: 3084ffff andi r4,r4,0xffff r4 = Job's Total JP 0005df00: 3c038006 lui r3,0x8006 0005df04: 24636184 addiu r3,r3,0x6184 0005df08: 94620000 lhu r2,0x0000(r3) Load Job Level's JP Requirement 0005df0c: 00000000 nop 0005df10: 0082102b sltu r2,r4,r2 0005df14: 14400002 bne r2,r0,0x0005df20 Branch if Total JP < JP Required 0005df18: 24630002 addiu r3,r3,0x0002 Pointer += 2 0005df1c: 24c60001 addiu r6,r6,0x0001 Job Level ++ 0005df20: 24a50001 addiu r5,r5,0x0001 Counter ++ 0005df24: 28a20008 slti r2,r5,0x0008 0005df28: 1440fff7 bne r2,r0,0x0005df08 Branch if Counter < 8 0005df2c: 00000000 nop 0005df30: 03e00008 jr r31 0005df34: 00c01021 addu r2,r6,r0 r2 = Job Level
Return Locations
0005de44: Proposition JP Gain 0005df60: Initialize Unit's Job Levels 0005df70: 0017eb88: 0017ea80