0x773f8

From Final Fantasy Hacktics Wiki
Revision as of 05:40, 7 January 2017 by Glain (talk | contribs) (Created page with " # ROUTINE: ? 0x773f8 # Something to do with targets of an ability and/or effect? 800773f8: 27bdffc0 addiu r29,r29,-0x0040 800773fc: afbf0038 sw r31,0x0038(r29) 8007...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
#   ROUTINE: ? 0x773f8
#   Something to do with targets of an ability and/or effect?

800773f8: 27bdffc0 addiu r29,r29,-0x0040
800773fc: afbf0038 sw r31,0x0038(r29)
80077400: afb30034 sw r19,0x0034(r29)
80077404: afb20030 sw r18,0x0030(r29)
80077408: afb1002c sw r17,0x002c(r29)
8007740c: 0c021ad1 jal 0x80086b44               #   ? 0x8b644 ();
80077410: afb00028 sw r16,0x0028(r29)
80077414: 3c038009 lui r3,0x8009
80077418: 8c6360f0 lw r3,0x60f0(r3)             #   *0x800960f0
8007741c: 34020001 ori r2,r0,0x0001             #   1
80077420: 1062000d beq r3,r2,0x80077458         #   if (*0x800960f0 != 1) {
80077424: 00000000 nop
80077428: 0c021c67 jal 0x8008719c               #       ? 0x8719c ();
8007742c: 00000000 nop
80077430: 0c023c4c jal 0x8008f130               #       ? 0x8f130 ();
80077434: 00000000 nop
80077438: 0c022d10 jal 0x8008b440               #       ? 0x8b440 ();
8007743c: 00000000 nop
80077440: 0c022db9 jal 0x8008b6e4               #       ? 0x8b6e4 ();
80077444: 00000000 nop
80077448: 0c022e5a jal 0x8008b968               #       ? 0x8b968 ();
8007744c: 00000000 nop
80077450: 0c022ee5 jal 0x8008bb94               #       ? 0x8bb94 ();
80077454: 00000000 nop                          #   }
80077458: 0c021b71 jal 0x80086dc4               #   ? 0x86dc4 ();
8007745c: 00000000 nop
80077460: 0c023c82 jal 0x8008f208               #   ? 0x8f208 ();
80077464: 00000000 nop
80077468: 0c01d2da jal 0x80074b68               #   ? 0x74b68 ();
8007746c: 00000000 nop
80077470: 0c01e875 jal 0x8007a1d4               #   result_0x7a1d4 = ? 0x7a1d4 ();      // Result could be a unit misc data pointer?
80077474: 00000000 nop
80077478: 00409021 addu r18,r2,r0               #   result_0x7a1d4
8007747c: 96420008 lhu r2,0x0008(r18)           #   *(result_0x7a1d4 + 8)
80077480: 3c038004 lui r3,0x8004
80077484: 94635980 lhu r3,0x5980(r3)            #   *0x80045980
80077488: 9244018d lbu r4,0x018d(r18)           #   *(result_0x7a1d4 + 0x18d)
8007748c: 00431021 addu r2,r2,r3
80077490: 10800018 beq r4,r0,0x800774f4
80077494: a6420008 sh r2,0x0008(r18)
80077498: 10800016 beq r4,r0,0x800774f4
8007749c: 00008821 addu r17,r0,r0
800774a0: 02511021 addu r2,r18,r17
800774a4: 9044018e lbu r4,0x018e(r2)
800774a8: 0c01e9c9 jal 0x8007a724
800774ac: 00000000 nop
800774b0: 00408021 addu r16,r2,r0
800774b4: 1200000a beq r16,r0,0x800774e0
800774b8: 26310001 addiu r17,r17,0x0001
800774bc: 0c01b6c4 jal 0x8006db10
800774c0: 02002021 addu r4,r16,r0
800774c4: 9202007f lbu r2,0x007f(r16)
800774c8: 3c038009 lui r3,0x8009
800774cc: 8c63612c lw r3,0x612c(r3)
800774d0: 00000000 nop
800774d4: 00431025 or r2,r2,r3
800774d8: 3c018009 lui r1,0x8009
800774dc: ac22612c sw r2,0x612c(r1)
800774e0: 9242018d lbu r2,0x018d(r18)
800774e4: 00000000 nop
800774e8: 0222102a slt r2,r17,r2
800774ec: 1440ffed bne r2,r0,0x800774a4
800774f0: 02511021 addu r2,r18,r17
800774f4: 96440138 lhu r4,0x0138(r18)
800774f8: 00000000 nop
800774fc: 10800056 beq r4,r0,0x80077658
80077500: 34020200 ori r2,r0,0x0200
80077504: 10820054 beq r4,r2,0x80077658
80077508: 34020094 ori r2,r0,0x0094
8007750c: 10820052 beq r4,r2,0x80077658
80077510: 00000000 nop
80077514: 0c068605 jal 0x801a1814
80077518: 00000000 nop
8007751c: 14400007 bne r2,r0,0x8007753c
80077520: 00000000 nop
80077524: 96420138 lhu r2,0x0138(r18)
80077528: 00000000 nop
8007752c: 2442fe6a addiu r2,r2,-0x0196
80077530: 2c420008 sltiu r2,r2,0x0008
80077534: 10400003 beq r2,r0,0x80077544
80077538: 00000000 nop
8007753c: 0c01c190 jal 0x80070640
80077540: 00000000 nop
80077544: 3c028009 lui r2,0x8009
80077548: 8c42612c lw r2,0x612c(r2)
8007754c: 00000000 nop
80077550: 1440007b bne r2,r0,0x80077740
80077554: 00000000 nop
80077558: 924202bc lbu r2,0x02bc(r18)
8007755c: 00000000 nop
80077560: 14400077 bne r2,r0,0x80077740
80077564: 00000000 nop
80077568: 964201e2 lhu r2,0x01e2(r18)
8007756c: 00000000 nop
80077570: 10400007 beq r2,r0,0x80077590
80077574: 00000000 nop
80077578: 964201dc lhu r2,0x01dc(r18)
8007757c: 00000000 nop
80077580: 00021042 srl r2,r2,0x01
80077584: 2c42003c sltiu r2,r2,0x003c
80077588: 1040006d beq r2,r0,0x80077740
8007758c: 00000000 nop
80077590: 0c011018 jal 0x80044060
80077594: 00000000 nop
80077598: 9242018d lbu r2,0x018d(r18)
8007759c: 00000000 nop
800775a0: 10400065 beq r2,r0,0x80077738
800775a4: 00000000 nop
800775a8: 10400063 beq r2,r0,0x80077738
800775ac: 00008821 addu r17,r0,r0               #   count = 0
800775b0: 02511021 addu r2,r18,r17
                                                #   do {
800775b4: 9044018e lbu r4,0x018e(r2)
800775b8: 0c01e9c9 jal 0x8007a724
800775bc: 00000000 nop
800775c0: 00408021 addu r16,r2,r0
800775c4: 1200001d beq r16,r0,0x8007763c
800775c8: 00000000 nop
800775cc: 96420138 lhu r2,0x0138(r18)
800775d0: 00000000 nop
800775d4: 2442fe5a addiu r2,r2,-0x01a6
800775d8: 2c420020 sltiu r2,r2,0x0020
800775dc: 10400014 beq r2,r0,0x80077630
800775e0: 00000000 nop
800775e4: 96440138 lhu r4,0x0138(r18)
800775e8: 0c068605 jal 0x801a1814
800775ec: 00000000 nop
800775f0: 10400012 beq r2,r0,0x8007763c
800775f4: 00000000 nop
800775f8: 96420138 lhu r2,0x0138(r18)
800775fc: 00000000 nop
80077600: 00021840 sll r3,r2,0x01
80077604: 00621821 addu r3,r3,r2
80077608: 3c018009 lui r1,0x8009
8007760c: 00230821 addu r1,r1,r3
80077610: 90223e11 lbu r2,0x3e11(r1)
80077614: 00000000 nop
80077618: 10400008 beq r2,r0,0x8007763c
8007761c: 02402021 addu r4,r18,r0
80077620: 0c01dced jal 0x800773b4
80077624: 02002821 addu r5,r16,r0
80077628: 0801dd8f j 0x8007763c
8007762c: 00000000 nop
80077630: 92040004 lbu r4,0x0004(r16)
80077634: 0c01a38c jal 0x80068e30               #       ? 0x68e30 (a0);
80077638: 00000000 nop
8007763c: 9242018d lbu r2,0x018d(r18)           #       numTargets
80077640: 26310001 addiu r17,r17,0x0001         #       count = count + 1
80077644: 0222102a slt r2,r17,r2
80077648: 1440ffda bne r2,r0,0x800775b4         
8007764c: 02511021 addu r2,r18,r17
                                                #   } while (count < numTargets)
80077650: 0801ddce j 0x80077738                 
80077654: 00000000 nop
80077658: 0c01c190 jal 0x80070640
8007765c: 00000000 nop
80077660: 0c011298 jal 0x80044a60
80077664: 00000000 nop
80077668: 3c058004 lui r5,0x8004
8007766c: 8ca55944 lw r5,0x5944(r5)
80077670: 0c04fd48 jal 0x8013f520
80077674: 00402021 addu r4,r2,r0
80077678: 3c028009 lui r2,0x8009
8007767c: 8c42612c lw r2,0x612c(r2)
80077680: 00000000 nop
80077684: 1440002e bne r2,r0,0x80077740
80077688: 00000000 nop
8007768c: 924202bc lbu r2,0x02bc(r18)
80077690: 00000000 nop
80077694: 1440002a bne r2,r0,0x80077740
80077698: 00000000 nop
8007769c: 964201e2 lhu r2,0x01e2(r18)
800776a0: 00000000 nop
800776a4: 10400007 beq r2,r0,0x800776c4
800776a8: 00000000 nop
800776ac: 964201dc lhu r2,0x01dc(r18)
800776b0: 00000000 nop
800776b4: 00021042 srl r2,r2,0x01
800776b8: 2c42003c sltiu r2,r2,0x003c
800776bc: 10400020 beq r2,r0,0x80077740
800776c0: 00000000 nop
800776c4: 9242018d lbu r2,0x018d(r18)
800776c8: 00000000 nop
800776cc: 1040001a beq r2,r0,0x80077738
800776d0: 00000000 nop
800776d4: 10400018 beq r2,r0,0x80077738
800776d8: 00008821 addu r17,r0,r0
800776dc: 34130200 ori r19,r0,0x0200
800776e0: 02511021 addu r2,r18,r17
800776e4: 9044018e lbu r4,0x018e(r2)
800776e8: 0c01e9c9 jal 0x8007a724
800776ec: 00000000 nop
800776f0: 00408021 addu r16,r2,r0
800776f4: 1200000b beq r16,r0,0x80077724
800776f8: 00000000 nop
800776fc: 96420138 lhu r2,0x0138(r18)
80077700: 00000000 nop
80077704: 14530004 bne r2,r19,0x80077718
80077708: 00000000 nop
8007770c: 92040004 lbu r4,0x0004(r16)
80077710: 0c01a2f5 jal 0x80068bd4
80077714: 00000000 nop
80077718: 92040004 lbu r4,0x0004(r16)
8007771c: 0c01a38c jal 0x80068e30
80077720: 00000000 nop
80077724: 9242018d lbu r2,0x018d(r18)
80077728: 26310001 addiu r17,r17,0x0001
8007772c: 0222102a slt r2,r17,r2
80077730: 1440ffec bne r2,r0,0x800776e4
80077734: 02511021 addu r2,r18,r17
80077738: 0c01ccb2 jal 0x800732c8
8007773c: 00000000 nop
80077740: 8fbf0038 lw r31,0x0038(r29)
80077744: 8fb30034 lw r19,0x0034(r29)
80077748: 8fb20030 lw r18,0x0030(r29)
8007774c: 8fb1002c lw r17,0x002c(r29)
80077750: 8fb00028 lw r16,0x0028(r29)
80077754: 27bd0040 addiu r29,r29,0x0040
80077758: 03e00008 jr r31
8007775c: 00000000 nop