Difference between revisions of "00138268 - 001385a0"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 00138268: 3c028019 lui r2,0x8019 0013826c: 904259e4 lbu r2,0x59e4(r2) 00138270: 27bdfe20 addiu r29,r29,0xfe20 00138274: afbf01dc sw r31,0x01dc(...")
 
 
Line 31: Line 31:
 
  001382d8: 27a40010 addiu r4,r29,0x0010
 
  001382d8: 27a40010 addiu r4,r29,0x0010
 
  001382dc: 02002821 addu r5,r16,r0
 
  001382dc: 02002821 addu r5,r16,r0
  001382e0: 0c016a35 jal 0x0005a8d4
+
  001382e0: 0c016a35 jal 0x0005a8d4               [[Initialize Unit's Job Data]]
 
  001382e4: 34060001 ori r6,r0,0x0001
 
  001382e4: 34060001 ori r6,r0,0x0001
  001382e8: 1440000c bne r2,r0,0x0013831c
+
  001382e8: 1440000c bne r2,r0,0x0013831c         Branch if unit's job data fails to initialize
 
  001382ec: 26100001 addiu r16,r16,0x0001
 
  001382ec: 26100001 addiu r16,r16,0x0001
 
  001382f0: 93a20012 lbu r2,0x0012(r29)
 
  001382f0: 93a20012 lbu r2,0x0012(r29)
 
  001382f4: 00000000 nop
 
  001382f4: 00000000 nop
  001382f8: 2c420010 sltiu r2,r2,0x0010
+
  001382f8: 2c420010 sltiu r2,r2,0x0010           Check for if there's a slot for unit in formation
  001382fc: 10400008 beq r2,r0,0x00138320
+
  001382fc: 10400008 beq r2,r0,0x00138320         Branch if fail
 
  00138300: 2a020014 slti r2,r16,0x0014
 
  00138300: 2a020014 slti r2,r16,0x0014
 
  00138304: 3c02801d lui r2,0x801d
 
  00138304: 3c02801d lui r2,0x801d
Line 66: Line 66:
 
  00138364: 3c058019 lui r5,0x8019
 
  00138364: 3c058019 lui r5,0x8019
 
  00138368: 24a551d4 addiu r5,r5,0x51d4
 
  00138368: 24a551d4 addiu r5,r5,0x51d4
  0013836c: 0c04aade jal 0x0012ab78
+
  0013836c: 0c04aade jal 0x0012ab78             [[0012ab78 - 0012ac10]]
 
  00138370: 3404000f ori r4,r0,0x000f
 
  00138370: 3404000f ori r4,r0,0x000f
 
  00138374: 00408021 addu r16,r2,r0
 
  00138374: 00408021 addu r16,r2,r0
Line 86: Line 86:
 
  001383b4: 3c01801d lui r1,0x801d
 
  001383b4: 3c01801d lui r1,0x801d
 
  001383b8: a422d784 sh r2,-0x287c(r1)
 
  001383b8: a422d784 sh r2,-0x287c(r1)
  001383bc: 0c03ffc2 jal 0x000fff08
+
  001383bc: 0c03ffc2 jal 0x000fff08             [[000fff08 - 000fff24]]
 
  001383c0: 00003821 addu r7,r0,r0
 
  001383c0: 00003821 addu r7,r0,r0
  001383c4: 0c048207 jal 0x0012081c
+
  001383c4: 0c048207 jal 0x0012081c             [[0012081c - 001208b4]]
 
  001383c8: 00000000 nop
 
  001383c8: 00000000 nop
 
  001383cc: 0804e15c j 0x00138570
 
  001383cc: 0804e15c j 0x00138570
Line 97: Line 97:
 
  001383e0: 3c05801d lui r5,0x801d
 
  001383e0: 3c05801d lui r5,0x801d
 
  001383e4: 24a5d5ec addiu r5,r5,0xd5ec
 
  001383e4: 24a5d5ec addiu r5,r5,0xd5ec
  001383e8: 0c04843a jal 0x001210e8
+
  001383e8: 0c04843a jal 0x001210e8             [[001210e8 - 001212b4]]
 
  001383ec: 34060002 ori r6,r0,0x0002
 
  001383ec: 34060002 ori r6,r0,0x0002
 
  001383f0: 3c01801d lui r1,0x801d
 
  001383f0: 3c01801d lui r1,0x801d
Line 117: Line 117:
 
  00138430: 34050019 ori r5,r0,0x0019
 
  00138430: 34050019 ori r5,r0,0x0019
 
  00138434: 02003021 addu r6,r16,r0
 
  00138434: 02003021 addu r6,r16,r0
  00138438: 0c03ffc2 jal 0x000fff08
+
  00138438: 0c03ffc2 jal 0x000fff08           [[000fff08 - 000fff24]]
 
  0013843c: 00003821 addu r7,r0,r0
 
  0013843c: 00003821 addu r7,r0,r0
 
  00138440: 0804e15c j 0x00138570
 
  00138440: 0804e15c j 0x00138570
 
  00138444: 00000000 nop
 
  00138444: 00000000 nop
  00138448: 0c048271 jal 0x001209c4
+
  00138448: 0c048271 jal 0x001209c4           [[001209c4 - 00120a60]]
 
  0013844c: 00000000 nop
 
  0013844c: 00000000 nop
 
  00138450: 00408821 addu r17,r2,r0
 
  00138450: 00408821 addu r17,r2,r0
Line 136: Line 136:
 
  0013847c: 00431021 addu r2,r2,r3
 
  0013847c: 00431021 addu r2,r2,r3
 
  00138480: 84440054 lh r4,0x0054(r2)
 
  00138480: 84440054 lh r4,0x0054(r2)
  00138484: 0c048dc2 jal 0x00123708
+
  00138484: 0c048dc2 jal 0x00123708           [[00123708 - 00123728]]
 
  00138488: 26100001 addiu r16,r16,0x0001
 
  00138488: 26100001 addiu r16,r16,0x0001
 
  0013848c: 3c03801d lui r3,0x801d
 
  0013848c: 3c03801d lui r3,0x801d
Line 147: Line 147:
 
  001384a8: 1440fff2 bne r2,r0,0x00138474
 
  001384a8: 1440fff2 bne r2,r0,0x00138474
 
  001384ac: 00000000 nop
 
  001384ac: 00000000 nop
  001384b0: 0c0481ef jal 0x001207bc
+
  001384b0: 0c0481ef jal 0x001207bc           [[001207bc - 00120818]]
 
  001384b4: 00002021 addu r4,r0,r0
 
  001384b4: 00002021 addu r4,r0,r0
 
  001384b8: 3c03801d lui r3,0x801d
 
  001384b8: 3c03801d lui r3,0x801d
Line 157: Line 157:
 
  001384d0: 34050019 ori r5,r0,0x0019
 
  001384d0: 34050019 ori r5,r0,0x0019
 
  001384d4: 3406f823 ori r6,r0,0xf823
 
  001384d4: 3406f823 ori r6,r0,0xf823
  001384d8: 0c03ffc2 jal 0x000fff08
+
  001384d8: 0c03ffc2 jal 0x000fff08           [[000fff08 - 000fff24]]
 
  001384dc: 00003821 addu r7,r0,r0
 
  001384dc: 00003821 addu r7,r0,r0
 
  001384e0: 00111080 sll r2,r17,0x02
 
  001384e0: 00111080 sll r2,r17,0x02
Line 165: Line 165:
 
  001384f0: 00000000 nop
 
  001384f0: 00000000 nop
 
  001384f4: 8444002c lh r4,0x002c(r2)
 
  001384f4: 8444002c lh r4,0x002c(r2)
  001384f8: 0c0167f8 jal 0x00059fe0
+
  001384f8: 0c0167f8 jal 0x00059fe0           [[Remove Unit from Party]]
 
  001384fc: 00000000 nop
 
  001384fc: 00000000 nop
 
  00138500: 0804e15a j 0x00138568
 
  00138500: 0804e15a j 0x00138568
Line 171: Line 171:
 
  00138508: 3c018019 lui r1,0x8019
 
  00138508: 3c018019 lui r1,0x8019
 
  0013850c: a431ba20 sh r17,-0x45e0(r1)
 
  0013850c: a431ba20 sh r17,-0x45e0(r1)
  00138510: 0c0452f2 jal 0x00114bc8
+
  00138510: 0c0452f2 jal 0x00114bc8           [[00114bc8 - 00114d48]]
 
  00138514: 00000000 nop
 
  00138514: 00000000 nop
 
  00138518: 34040002 ori r4,r0,0x0002
 
  00138518: 34040002 ori r4,r0,0x0002
Line 180: Line 180:
 
  0013852c: 3c018019 lui r1,0x8019
 
  0013852c: 3c018019 lui r1,0x8019
 
  00138530: a020ba26 sb r0,-0x45da(r1)
 
  00138530: a020ba26 sb r0,-0x45da(r1)
  00138534: 0c03ffc2 jal 0x000fff08
+
  00138534: 0c03ffc2 jal 0x000fff08           [[000fff08 - 000fff24]]
 
  00138538: 00003821 addu r7,r0,r0
 
  00138538: 00003821 addu r7,r0,r0
 
  0013853c: 34020015 ori r2,r0,0x0015
 
  0013853c: 34020015 ori r2,r0,0x0015
Line 190: Line 190:
 
  00138554: 34050019 ori r5,r0,0x0019
 
  00138554: 34050019 ori r5,r0,0x0019
 
  00138558: 3406f822 ori r6,r0,0xf822
 
  00138558: 3406f822 ori r6,r0,0xf822
  0013855c: 0c03ffc2 jal 0x000fff08
+
  0013855c: 0c03ffc2 jal 0x000fff08           [[000fff08 - 000fff24]]
 
  00138560: 00003821 addu r7,r0,r0
 
  00138560: 00003821 addu r7,r0,r0
 
  00138564: 34020001 ori r2,r0,0x0001
 
  00138564: 34020001 ori r2,r0,0x0001
 
  00138568: 3c01801d lui r1,0x801d
 
  00138568: 3c01801d lui r1,0x801d
 
  0013856c: a022d0f0 sb r2,-0x2f10(r1)
 
  0013856c: a022d0f0 sb r2,-0x2f10(r1)
  00138570: 0c04cf87 jal 0x00133e1c
+
  00138570: 0c04cf87 jal 0x00133e1c           [[00133e1c - 00133e70]]
 
  00138574: 00000000 nop
 
  00138574: 00000000 nop
  00138578: 0c04e3a9 jal 0x00138ea4
+
  00138578: 0c04e3a9 jal 0x00138ea4           [[00138ea4 - 00138ef8]]
 
  0013857c: 00000000 nop
 
  0013857c: 00000000 nop
  00138580: 0c04e3bf jal 0x00138efc
+
  00138580: 0c04e3bf jal 0x00138efc           [[00138efc - 00138f58]]
 
  00138584: 00000000 nop
 
  00138584: 00000000 nop
 
  00138588: 8fbf01dc lw r31,0x01dc(r29)
 
  00138588: 8fbf01dc lw r31,0x01dc(r29)

Latest revision as of 17:08, 31 May 2017

00138268: 3c028019 lui r2,0x8019
0013826c: 904259e4 lbu r2,0x59e4(r2)
00138270: 27bdfe20 addiu r29,r29,0xfe20
00138274: afbf01dc sw r31,0x01dc(r29)
00138278: afb201d8 sw r18,0x01d8(r29)
0013827c: afb101d4 sw r17,0x01d4(r29)
00138280: 14400029 bne r2,r0,0x00138328
00138284: afb001d0 sw r16,0x01d0(r29)
00138288: 00008021 addu r16,r0,r0
0013828c: 34020001 ori r2,r0,0x0001
00138290: 3c018019 lui r1,0x8019
00138294: a4205a20 sh r0,0x5a20(r1)
00138298: 3c018019 lui r1,0x8019
0013829c: a4205a5c sh r0,0x5a5c(r1)
001382a0: 3c01801d lui r1,0x801d
001382a4: a020d0f0 sb r0,-0x2f10(r1)
001382a8: 3c018019 lui r1,0x8019
001382ac: a02259e4 sb r2,0x59e4(r1)
001382b0: 3c018019 lui r1,0x8019
001382b4: ac20ba30 sw r0,-0x45d0(r1)
001382b8: 3c01801d lui r1,0x801d
001382bc: a020d0ec sb r0,-0x2f14(r1)
001382c0: 3c01801d lui r1,0x801d
001382c4: a020d0f4 sb r0,-0x2f0c(r1)
001382c8: 3c018019 lui r1,0x8019
001382cc: a020ba25 sb r0,-0x45db(r1)
001382d0: 3c01801d lui r1,0x801d
001382d4: a020d0fc sb r0,-0x2f04(r1)
001382d8: 27a40010 addiu r4,r29,0x0010
001382dc: 02002821 addu r5,r16,r0
001382e0: 0c016a35 jal 0x0005a8d4                Initialize Unit's Job Data
001382e4: 34060001 ori r6,r0,0x0001
001382e8: 1440000c bne r2,r0,0x0013831c          Branch if unit's job data fails to initialize
001382ec: 26100001 addiu r16,r16,0x0001
001382f0: 93a20012 lbu r2,0x0012(r29)
001382f4: 00000000 nop
001382f8: 2c420010 sltiu r2,r2,0x0010            Check for if there's a slot for unit in formation
001382fc: 10400008 beq r2,r0,0x00138320          Branch if fail
00138300: 2a020014 slti r2,r16,0x0014
00138304: 3c02801d lui r2,0x801d
00138308: 9042d0fc lbu r2,-0x2f04(r2)
0013830c: 00000000 nop
00138310: 24420001 addiu r2,r2,0x0001
00138314: 3c01801d lui r1,0x801d
00138318: a022d0fc sb r2,-0x2f04(r1)
0013831c: 2a020014 slti r2,r16,0x0014
00138320: 1440ffee bne r2,r0,0x001382dc
00138324: 27a40010 addiu r4,r29,0x0010
00138328: 3c02801d lui r2,0x801d
0013832c: 9042d0f0 lbu r2,-0x2f10(r2)
00138330: 00000000 nop
00138334: 1040000b beq r2,r0,0x00138364
00138338: 00000000 nop
0013833c: 3c02801d lui r2,0x801d
00138340: 8c42d52c lw r2,-0x2ad4(r2)
00138344: 00000000 nop
00138348: 304200f0 andi r2,r2,0x00f0
0013834c: 10400088 beq r2,r0,0x00138570
00138350: 34020019 ori r2,r0,0x0019
00138354: 3c01801d lui r1,0x801d
00138358: a422d784 sh r2,-0x287c(r1)
0013835c: 0804e15c j 0x00138570
00138360: 00000000 nop
00138364: 3c058019 lui r5,0x8019
00138368: 24a551d4 addiu r5,r5,0x51d4
0013836c: 0c04aade jal 0x0012ab78              0012ab78 - 0012ac10
00138370: 3404000f ori r4,r0,0x000f
00138374: 00408021 addu r16,r2,r0
00138378: 1600007d bne r16,r0,0x00138570
0013837c: 34020003 ori r2,r0,0x0003
00138380: 3c04801d lui r4,0x801d
00138384: 8484d728 lh r4,-0x28d8(r4)
00138388: 00000000 nop
0013838c: 10820004 beq r4,r2,0x001383a0
00138390: 34050019 ori r5,r0,0x0019
00138394: 2402ffff addiu r2,r0,0xffff
00138398: 1482000e bne r4,r2,0x001383d4
0013839c: 34020002 ori r2,r0,0x0002
001383a0: 34040002 ori r4,r0,0x0002
001383a4: 3406f825 ori r6,r0,0xf825
001383a8: 3402000d ori r2,r0,0x000d
001383ac: 3c018019 lui r1,0x8019
001383b0: a02059e4 sb r0,0x59e4(r1)
001383b4: 3c01801d lui r1,0x801d
001383b8: a422d784 sh r2,-0x287c(r1)
001383bc: 0c03ffc2 jal 0x000fff08              000fff08 - 000fff24
001383c0: 00003821 addu r7,r0,r0
001383c4: 0c048207 jal 0x0012081c              0012081c - 001208b4
001383c8: 00000000 nop
001383cc: 0804e15c j 0x00138570
001383d0: 00000000 nop
001383d4: 1482001c bne r4,r2,0x00138448
001383d8: 00000000 nop
001383dc: 00002021 addu r4,r0,r0
001383e0: 3c05801d lui r5,0x801d
001383e4: 24a5d5ec addiu r5,r5,0xd5ec
001383e8: 0c04843a jal 0x001210e8              001210e8 - 001212b4
001383ec: 34060002 ori r6,r0,0x0002
001383f0: 3c01801d lui r1,0x801d
001383f4: a022d788 sb r2,-0x2878(r1)
001383f8: 3c02801d lui r2,0x801d
001383fc: 9042d788 lbu r2,-0x2878(r2)
00138400: 00000000 nop
00138404: 10400005 beq r2,r0,0x0013841c
00138408: 3402001a ori r2,r0,0x001a
0013840c: 3c01801d lui r1,0x801d
00138410: a422d784 sh r2,-0x287c(r1)
00138414: 0804e10b j 0x0013842c
00138418: 3410f847 ori r16,r0,0xf847
0013841c: 3410f846 ori r16,r0,0xf846
00138420: 34020001 ori r2,r0,0x0001
00138424: 3c01801d lui r1,0x801d
00138428: a022d0f0 sb r2,-0x2f10(r1)
0013842c: 34040002 ori r4,r0,0x0002
00138430: 34050019 ori r5,r0,0x0019
00138434: 02003021 addu r6,r16,r0
00138438: 0c03ffc2 jal 0x000fff08            000fff08 - 000fff24
0013843c: 00003821 addu r7,r0,r0
00138440: 0804e15c j 0x00138570
00138444: 00000000 nop
00138448: 0c048271 jal 0x001209c4            001209c4 - 00120a60
0013844c: 00000000 nop
00138450: 00408821 addu r17,r2,r0
00138454: 0620003e bltz r17,0x00138550
00138458: 340203e8 ori r2,r0,0x03e8
0013845c: 3c01801d lui r1,0x801d
00138460: ac22d104 sw r2,-0x2efc(r1)
00138464: 3c03801d lui r3,0x801d
00138468: 2463d5ec addiu r3,r3,0xd5ec
0013846c: 00111080 sll r2,r17,0x02
00138470: 00439021 addu r18,r2,r3
00138474: 8e430000 lw r3,0x0000(r18)
00138478: 00101040 sll r2,r16,0x01
0013847c: 00431021 addu r2,r2,r3
00138480: 84440054 lh r4,0x0054(r2)
00138484: 0c048dc2 jal 0x00123708            00123708 - 00123728
00138488: 26100001 addiu r16,r16,0x0001
0013848c: 3c03801d lui r3,0x801d
00138490: 8c63d104 lw r3,-0x2efc(r3)
00138494: 00000000 nop
00138498: 00431021 addu r2,r2,r3
0013849c: 3c01801d lui r1,0x801d
001384a0: ac22d104 sw r2,-0x2efc(r1)
001384a4: 2a020005 slti r2,r16,0x0005
001384a8: 1440fff2 bne r2,r0,0x00138474
001384ac: 00000000 nop
001384b0: 0c0481ef jal 0x001207bc            001207bc - 00120818
001384b4: 00002021 addu r4,r0,r0
001384b8: 3c03801d lui r3,0x801d
001384bc: 8c63d104 lw r3,-0x2efc(r3)
001384c0: 00000000 nop
001384c4: 0043102b sltu r2,r2,r3
001384c8: 1040000f beq r2,r0,0x00138508
001384cc: 34040002 ori r4,r0,0x0002
001384d0: 34050019 ori r5,r0,0x0019
001384d4: 3406f823 ori r6,r0,0xf823
001384d8: 0c03ffc2 jal 0x000fff08            000fff08 - 000fff24
001384dc: 00003821 addu r7,r0,r0
001384e0: 00111080 sll r2,r17,0x02
001384e4: 3c01801d lui r1,0x801d
001384e8: 00220821 addu r1,r1,r2
001384ec: 8c22d5ec lw r2,-0x2a14(r1)
001384f0: 00000000 nop
001384f4: 8444002c lh r4,0x002c(r2)
001384f8: 0c0167f8 jal 0x00059fe0            Remove Unit from Party
001384fc: 00000000 nop
00138500: 0804e15a j 0x00138568
00138504: 34020001 ori r2,r0,0x0001
00138508: 3c018019 lui r1,0x8019
0013850c: a431ba20 sh r17,-0x45e0(r1)
00138510: 0c0452f2 jal 0x00114bc8            00114bc8 - 00114d48
00138514: 00000000 nop
00138518: 34040002 ori r4,r0,0x0002
0013851c: 34050019 ori r5,r0,0x0019
00138520: 3406f824 ori r6,r0,0xf824
00138524: 3c01801d lui r1,0x801d
00138528: a020d80c sb r0,-0x27f4(r1)
0013852c: 3c018019 lui r1,0x8019
00138530: a020ba26 sb r0,-0x45da(r1)
00138534: 0c03ffc2 jal 0x000fff08            000fff08 - 000fff24
00138538: 00003821 addu r7,r0,r0
0013853c: 34020015 ori r2,r0,0x0015
00138540: 3c01801d lui r1,0x801d
00138544: a422d784 sh r2,-0x287c(r1)
00138548: 0804e15c j 0x00138570
0013854c: 00000000 nop
00138550: 34040002 ori r4,r0,0x0002
00138554: 34050019 ori r5,r0,0x0019
00138558: 3406f822 ori r6,r0,0xf822
0013855c: 0c03ffc2 jal 0x000fff08            000fff08 - 000fff24
00138560: 00003821 addu r7,r0,r0
00138564: 34020001 ori r2,r0,0x0001
00138568: 3c01801d lui r1,0x801d
0013856c: a022d0f0 sb r2,-0x2f10(r1)
00138570: 0c04cf87 jal 0x00133e1c            00133e1c - 00133e70
00138574: 00000000 nop
00138578: 0c04e3a9 jal 0x00138ea4            00138ea4 - 00138ef8
0013857c: 00000000 nop
00138580: 0c04e3bf jal 0x00138efc            00138efc - 00138f58
00138584: 00000000 nop
00138588: 8fbf01dc lw r31,0x01dc(r29)
0013858c: 8fb201d8 lw r18,0x01d8(r29)
00138590: 8fb101d4 lw r17,0x01d4(r29)
00138594: 8fb001d0 lw r16,0x01d0(r29)
00138598: 27bd01e0 addiu r29,r29,0x01e0
0013859c: 03e00008 jr r31
001385a0: 00000000 nop