Difference between revisions of "001afd90 - 001aff14"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
m (link)
Line 60: Line 60:
 
  001afe7c: 8fa40028 lw r4,0x0028(r29)
 
  001afe7c: 8fa40028 lw r4,0x0028(r29)
 
  001afe80: afa2002c sw r2,0x002c(r29)
 
  001afe80: afa2002c sw r2,0x002c(r29)
  001afe84: 0c00763a jal 0x0001d8e8
+
  001afe84: 0c00763a jal 0x0001d8e8               [[Get_Angle_Value_via_ArcTan_Table]]
 
  001afe88: 00042023 subu r4,r0,r4
 
  001afe88: 00042023 subu r4,r0,r4
 
  001afe8c: 27a40020 addiu r4,r29,0x0020
 
  001afe8c: 27a40020 addiu r4,r29,0x0020

Revision as of 21:32, 2 January 2022

001afd90: 27bdff90 addiu r29,r29,-0x0070
001afd94: afb00060 sw r16,0x0060(r29)
001afd98: 309000ff andi r16,r4,0x00ff
001afd9c: 02002021 addu r4,r16,r0
001afda0: afb10064 sw r17,0x0064(r29)
001afda4: 30b100ff andi r17,r5,0x00ff
001afda8: afbf006c sw r31,0x006c(r29)
001afdac: afb20068 sw r18,0x0068(r29)
001afdb0: afb00038 sw r16,0x0038(r29)
001afdb4: 0c023727 jal 0x0008dc9c
001afdb8: afb10048 sw r17,0x0048(r29)
001afdbc: 3c035555 lui r3,0x5555
001afdc0: 34635556 ori r3,r3,0x5556
001afdc4: 00021040 sll r2,r2,0x01
001afdc8: 00430018 mult r2,r3
001afdcc: 02202021 addu r4,r17,r0
001afdd0: 000217c3 sra r2,r2,0x1f
001afdd4: 00001810 mfhi r3
001afdd8: 00621823 subu r3,r3,r2
001afddc: 0c023727 jal 0x0008dc9c
001afde0: afa3003c sw r3,0x003c(r29)
001afde4: 02002021 addu r4,r16,r0
001afde8: 02202821 addu r5,r17,r0
001afdec: 27a60050 addiu r6,r29,0x0050
001afdf0: 0c06bddc jal 0x001af770
001afdf4: afa2004c sw r2,0x004c(r29)
001afdf8: 02002021 addu r4,r16,r0
001afdfc: 27b20030 addiu r18,r29,0x0030
001afe00: 0c02311a jal 0x0008c468
001afe04: 02402821 addu r5,r18,r0
001afe08: 02202021 addu r4,r17,r0
001afe0c: 97a20032 lhu r2,0x0032(r29)
001afe10: 97a3003c lhu r3,0x003c(r29)
001afe14: 27a50040 addiu r5,r29,0x0040
001afe18: 00431023 subu r2,r2,r3
001afe1c: 0c02311a jal 0x0008c468
001afe20: a7a20032 sh r2,0x0032(r29)
001afe24: 87a50040 lh r5,0x0040(r29)
001afe28: 87a20030 lh r2,0x0030(r29)
001afe2c: 00000000 nop
001afe30: 00a22823 subu r5,r5,r2
001afe34: 00a50018 mult r5,r5
001afe38: 87a30044 lh r3,0x0044(r29)
001afe3c: 87a20034 lh r2,0x0034(r29)
001afe40: 00002012 mflo r4
001afe44: 00621823 subu r3,r3,r2
001afe48: 00000000 nop
001afe4c: 00630018 mult r3,r3
001afe50: 87a60042 lh r6,0x0042(r29)
001afe54: 87a20032 lh r2,0x0032(r29)
001afe58: afa50020 sw r5,0x0020(r29)
001afe5c: afa30028 sw r3,0x0028(r29)
001afe60: 00461023 subu r2,r2,r6
001afe64: afa20024 sw r2,0x0024(r29)
001afe68: 00001012 mflo r2
001afe6c: 00822021 addu r4,r4,r2
001afe70: 0c00709a jal 0x0001c268               Get_Square_root_of_r4_dealing_with_4096
001afe74: 00042300 sll r4,r4,0x0c
001afe78: 8fa50020 lw r5,0x0020(r29)
001afe7c: 8fa40028 lw r4,0x0028(r29)
001afe80: afa2002c sw r2,0x002c(r29)
001afe84: 0c00763a jal 0x0001d8e8               Get_Angle_Value_via_ArcTan_Table 
001afe88: 00042023 subu r4,r0,r4
001afe8c: 27a40020 addiu r4,r29,0x0020
001afe90: 27b00054 addiu r16,r29,0x0054
001afe94: 02002821 addu r5,r16,r0
001afe98: 27b10058 addiu r17,r29,0x0058
001afe9c: 02203021 addu r6,r17,r0
001afea0: 0c06bcf7 jal 0x001af3dc
001afea4: a7a2001a sh r2,0x001a(r29)
001afea8: 10400013 beq r2,r0,0x00148ef8
001afeac: 02402021 addu r4,r18,r0
001afeb0: 02002821 addu r5,r16,r0
001afeb4: 27b0002c addiu r16,r29,0x002c
001afeb8: 02003021 addu r6,r16,r0
001afebc: 8fa20050 lw r2,0x0050(r29)
001afec0: 27a70018 addiu r7,r29,0x0018
001afec4: 0c06bece jal 0x001afb38
001afec8: afa20010 sw r2,0x0010(r29)
001afecc: 1440000b bne r2,r0,0x00148efc
001afed0: 34020001 ori r2,r0,0x0001
001afed4: 02402021 addu r4,r18,r0
001afed8: 02202821 addu r5,r17,r0
001afedc: 02003021 addu r6,r16,r0
001afee0: 8fa20050 lw r2,0x0050(r29)
001afee4: 27a70018 addiu r7,r29,0x0018
001afee8: 0c06bece jal 0x001afb38
001afeec: afa20010 sw r2,0x0010(r29)
001afef0: 14400002 bne r2,r0,0x00148efc
001afef4: 34020001 ori r2,r0,0x0001
001afef8: 00001021 addu r2,r0,r0
001afefc: 8fbf006c lw r31,0x006c(r29)
001aff00: 8fb20068 lw r18,0x0068(r29)
001aff04: 8fb10064 lw r17,0x0064(r29)
001aff08: 8fb00060 lw r16,0x0060(r29)
001aff0c: 27bd0070 addiu r29,r29,0x0070
001aff10: 03e00008 jr r31
001aff14: 00000000 nop

Return location

Battle.bin
0019d0a4: AI_Target_Unit_for_Direct_vs_Arc_Attack_(0019cd9c)