Difference between revisions of "JOBSTTS.OUT Get generic job index"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " 001e0390: 2482ffb6 addiu r2,r4,0xffb6 001e0394: 3042ffff andi r2,r2,0xffff 001e0398: 2c420014 sltiu r2,r2,0x0014 001e039c: 10400003 beq r2,r0,0x001e03ac 001e03a0: 0000000...")
 
Line 1: Line 1:
  001e0390: 2482ffb6 addiu r2,r4,0xffb6
+
  001e0390: 2482ffb6 addiu r2,r4,0xffb6           job - 4a
 
  001e0394: 3042ffff andi r2,r2,0xffff
 
  001e0394: 3042ffff andi r2,r2,0xffff
 
  001e0398: 2c420014 sltiu r2,r2,0x0014
 
  001e0398: 2c420014 sltiu r2,r2,0x0014
  001e039c: 10400003 beq r2,r0,0x001e03ac
+
  001e039c: 10400003 beq r2,r0,0x001e03ac         branch if currently unique job
 
  001e03a0: 00000000 nop
 
  001e03a0: 00000000 nop
  001e03a4: 080780ec j 0x001e03b0
+
  001e03a4: 080780ec j 0x001e03b0                 if generic job, return proper index
  001e03a8: 2482ffb6 addiu r2,r4,0xffb6
+
  001e03a8: 2482ffb6 addiu r2,r4,0xffb6          
  001e03ac: 00001021 addu r2,r0,r0
+
  001e03ac: 00001021 addu r2,r0,r0                 job index = 0
 
  001e03b0: 00021400 sll r2,r2,0x10
 
  001e03b0: 00021400 sll r2,r2,0x10
  001e03b4: 03e00008 jr r31
+
  001e03b4: 03e00008 jr r31                       return job index of current job
 
  001e03b8: 00021403 sra r2,r2,0x10
 
  001e03b8: 00021403 sra r2,r2,0x10

Revision as of 22:47, 25 May 2024

001e0390: 2482ffb6 addiu r2,r4,0xffb6            job - 4a
001e0394: 3042ffff andi r2,r2,0xffff
001e0398: 2c420014 sltiu r2,r2,0x0014
001e039c: 10400003 beq r2,r0,0x001e03ac          branch if currently unique job
001e03a0: 00000000 nop
001e03a4: 080780ec j 0x001e03b0                  if generic job, return proper index
001e03a8: 2482ffb6 addiu r2,r4,0xffb6            
001e03ac: 00001021 addu r2,r0,r0                 job index = 0
001e03b0: 00021400 sll r2,r2,0x10
001e03b4: 03e00008 jr r31                        return job index of current job
001e03b8: 00021403 sra r2,r2,0x10