? 0x7f1d4 (Status Bubble Related?)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
#   ROUTINE: ? 0x7f1d4 (Status bubble related)
#       Parameters:
#           r4 = [Unit misc data pointer]

0007f1d4: 27bdffe8 addiu r29,r29,-0x0018
0007f1d8: afb00010 sw r16,0x0010(r29)
0007f1dc: 00808021 addu r16,r4,r0
0007f1e0: afbf0014 sw r31,0x0014(r29)
0007f1e4: 9203007f lbu r3,0x007f(r16)                   #   MiscUnitData.0x7f                                      // Unit offset from centre of tile
0007f1e8: 3402002d ori r2,r0,0x002d
0007f1ec: 10620009 beq r3,r2,0x0007f214                 #   if ((MiscUnitData.0x7f != 0x2d)                        // if distance from centre != 0x2d (
0007f1f0: 34020031 ori r2,r0,0x0031
0007f1f4: 10620007 beq r3,r2,0x0007f214                 #       and (MiscUnitData.0x7f != 0x31)                    // nor is it 0x31
0007f1f8: 34020039 ori r2,r0,0x0039
0007f1fc: 10620005 beq r3,r2,0x0007f214                 #       and (MiscUnitData.0x7f != 0x39)                    // nor is it 0x39
0007f200: 34020035 ori r2,r0,0x0035
0007f204: 10620003 beq r3,r2,0x0007f214                 #       and (MiscUnitData.0x7f != 0x35))                   // nor is it 0x35 (every 4 pixels?)
0007f208: 00000000 nop                                  #   {
0007f20c: 0c01fa6a jal 0x0007e9a8                       #       ROUTINE: ? 0x7e9a8 (r4 = [Unit misc data pointer])
0007f210: 00000000 nop
                                                        #   }
0007f214: 920202dc lbu r2,0x02dc(r16)                   #   Activation byte for Status Bubble
0007f218: 00000000 nop
0007f21c: 10400003 beq r2,r0,0x0007f22c                 #   if ([Activation byte for Status Bubble] != 0) {
0007f220: 00000000 nop
0007f224: 0c01fae3 jal 0x0007eb8c                       #       ROUTINE: Determine Status Bubble Parameters
0007f228: 02002021 addu r4,r16,r0                       #           (Parameter: r4 = [Unit misc data pointer])
                                                        #   }
0007f22c: 8fbf0014 lw r31,0x0014(r29)
0007f230: 8fb00010 lw r16,0x0010(r29)
0007f234: 27bd0018 addiu r29,r29,0x0018
0007f238: 03e00008 jr r31
0007f23c: 00000000 nop