Difference between revisions of "0006a380 - 0006a534"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 0006a380: 27bdffd8 addiu r29,r29,0xffd8 0006a384: afb00010 sw r16,0x0010(r29) 0006a388: 00808021 addu r16,r4,r0 0006a38c: afb3001c sw r19,0x001...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<font face='Courier New'>
 
 
 
  0006a380: 27bdffd8 addiu r29,r29,0xffd8
 
  0006a380: 27bdffd8 addiu r29,r29,0xffd8
 
  0006a384: afb00010 sw r16,0x0010(r29)
 
  0006a384: afb00010 sw r16,0x0010(r29)
Line 32: Line 30:
 
  0006a3f4: 02003021 addu r6,r16,r0
 
  0006a3f4: 02003021 addu r6,r16,r0
 
  0006a3f8: 3402000b ori r2,r0,0x000b
 
  0006a3f8: 3402000b ori r2,r0,0x000b
  0006a3fc: 0c02065e jal 0x00081978
+
  0006a3fc: 0c02065e jal 0x00081978 [[Store unit animation and facing value]]
 
  0006a400: a202007f sb r2,0x007f(r16)
 
  0006a400: a202007f sb r2,0x007f(r16)
 
  0006a404: 9203007c lbu r3,0x007c(r16)
 
  0006a404: 9203007c lbu r3,0x007c(r16)
Line 45: Line 43:
 
  0006a428: 02003021 addu r6,r16,r0
 
  0006a428: 02003021 addu r6,r16,r0
 
  0006a42c: 3402000f ori r2,r0,0x000f
 
  0006a42c: 3402000f ori r2,r0,0x000f
  0006a430: 0c02065e jal 0x00081978
+
  0006a430: 0c02065e jal 0x00081978 [[Store unit animation and facing value]]
 
  0006a434: a202007f sb r2,0x007f(r16)
 
  0006a434: a202007f sb r2,0x007f(r16)
 
  0006a438: 9203007c lbu r3,0x007c(r16)
 
  0006a438: 9203007c lbu r3,0x007c(r16)
Line 58: Line 56:
 
  0006a45c: 02003021 addu r6,r16,r0
 
  0006a45c: 02003021 addu r6,r16,r0
 
  0006a460: 34020009 ori r2,r0,0x0009
 
  0006a460: 34020009 ori r2,r0,0x0009
  0006a464: 0c02065e jal 0x00081978
+
  0006a464: 0c02065e jal 0x00081978 [[Store unit animation and facing value]]
 
  0006a468: a202007f sb r2,0x007f(r16)
 
  0006a468: a202007f sb r2,0x007f(r16)
 
  0006a46c: 9203007d lbu r3,0x007d(r16)
 
  0006a46c: 9203007d lbu r3,0x007d(r16)
Line 69: Line 67:
 
  0006a488: 02003021 addu r6,r16,r0
 
  0006a488: 02003021 addu r6,r16,r0
 
  0006a48c: 3402000d ori r2,r0,0x000d
 
  0006a48c: 3402000d ori r2,r0,0x000d
  0006a490: 0c02065e jal 0x00081978
+
  0006a490: 0c02065e jal 0x00081978 [[Store unit animation and facing value]]
 
  0006a494: a202007f sb r2,0x007f(r16)
 
  0006a494: a202007f sb r2,0x007f(r16)
 
  0006a498: 9203007d lbu r3,0x007d(r16)
 
  0006a498: 9203007d lbu r3,0x007d(r16)
Line 82: Line 80:
 
  0006a4bc: 02002021 addu r4,r16,r0
 
  0006a4bc: 02002021 addu r4,r16,r0
 
  0006a4c0: 92040131 lbu r4,0x0131(r16)
 
  0006a4c0: 92040131 lbu r4,0x0131(r16)
  0006a4c4: 0c01e9b9 jal 0x0007a6e4
+
  0006a4c4: 0c01e9b9 jal 0x0007a6e4 [[Get Unit Misc Data Pointer]] | [[Find Current Misc Unit Data Pointer (external ID)?]]
 
  0006a4c8: 00000000 nop
 
  0006a4c8: 00000000 nop
 
  0006a4cc: 10400005 beq r2,r0,0x0006a4e4
 
  0006a4cc: 10400005 beq r2,r0,0x0006a4e4
Line 88: Line 86:
 
  0006a4d4: 34040032 ori r4,r0,0x0032
 
  0006a4d4: 34040032 ori r4,r0,0x0032
 
  0006a4d8: 86050070 lh r5,0x0070(r16)
 
  0006a4d8: 86050070 lh r5,0x0070(r16)
  0006a4dc: 0c02065e jal 0x00081978
+
  0006a4dc: 0c02065e jal 0x00081978 [[Store unit animation and facing value]]
 
  0006a4e0: 00403021 addu r6,r2,r0
 
  0006a4e0: 00403021 addu r6,r2,r0
 
  0006a4e4: 02002021 addu r4,r16,r0
 
  0006a4e4: 02002021 addu r4,r16,r0
 
  0006a4e8: 02202821 addu r5,r17,r0
 
  0006a4e8: 02202821 addu r5,r17,r0
 
  0006a4ec: 02603021 addu r6,r19,r0
 
  0006a4ec: 02603021 addu r6,r19,r0
  0006a4f0: 0c01a67d jal 0x000699f4
+
  0006a4f0: 0c01a67d jal 0x000699f4 [[000699f4 - 00069af4]]
 
  0006a4f4: 02403821 addu r7,r18,r0
 
  0006a4f4: 02403821 addu r7,r18,r0
 
  0006a4f8: 8e05003c lw r5,0x003c(r16)
 
  0006a4f8: 8e05003c lw r5,0x003c(r16)
  0006a4fc: 0c01a77f jal 0x00069dfc
+
  0006a4fc: 0c01a77f jal 0x00069dfc [[00069dfc - 00069e64]]
 
  0006a500: 02002021 addu r4,r16,r0
 
  0006a500: 02002021 addu r4,r16,r0
 
  0006a504: 92220000 lbu r2,0x0000(r17)
 
  0006a504: 92220000 lbu r2,0x0000(r17)
Line 111: Line 109:
 
  0006a530: 03e00008 jr r31
 
  0006a530: 03e00008 jr r31
 
  0006a534: 00000000 nop
 
  0006a534: 00000000 nop
</font>
+
 
 +
==Return locations==
 +
'''Battle.bin'''
 +
0006c3a4: [[0006c320 - 0006c3d4]]
 +
0006c628: [[0006c4f8 - 0006c78c]]
 +
0006cfb4: 0006cc94 - 0006d05c [[Some Knockback Handling]]
 +
0006dae4: 0006d818 - 0006db0c [[Process Single Unit Movement]]
 +
 
 +
==< [[BATTLE.BIN Routines]]==
 +
<div style="float:left;">< [[Move target coordinates after knockback]]</div><div style="float:right;">[[0006a538 - 0006a7bc]] ></div>

Latest revision as of 13:28, 8 April 2023

0006a380: 27bdffd8 addiu r29,r29,0xffd8
0006a384: afb00010 sw r16,0x0010(r29)
0006a388: 00808021 addu r16,r4,r0
0006a38c: afb3001c sw r19,0x001c(r29)
0006a390: 00a09821 addu r19,r5,r0
0006a394: afb10014 sw r17,0x0014(r29)
0006a398: afbf0020 sw r31,0x0020(r29)
0006a39c: afb20018 sw r18,0x0018(r29)
0006a3a0: 9202011c lbu r2,0x011c(r16)
0006a3a4: 92120097 lbu r18,0x0097(r16)
0006a3a8: 00021982 srl r3,r2,0x06
0006a3ac: 34020001 ori r2,r0,0x0001
0006a3b0: 1062001b beq r3,r2,0x0006a420
0006a3b4: 2611011c addiu r17,r16,0x011c
0006a3b8: 28620002 slti r2,r3,0x0002
0006a3bc: 10400005 beq r2,r0,0x0006a3d4
0006a3c0: 00000000 nop
0006a3c4: 1060000a beq r3,r0,0x0006a3f0
0006a3c8: 34040023 ori r4,r0,0x0023
0006a3cc: 0801a92c j 0x0006a4b0
0006a3d0: 00000000 nop
0006a3d4: 34020002 ori r2,r0,0x0002
0006a3d8: 1062001e beq r3,r2,0x0006a454
0006a3dc: 34020003 ori r2,r0,0x0003
0006a3e0: 10620028 beq r3,r2,0x0006a484
0006a3e4: 34040023 ori r4,r0,0x0023
0006a3e8: 0801a92c j 0x0006a4b0
0006a3ec: 00000000 nop
0006a3f0: 34050c00 ori r5,r0,0x0c00
0006a3f4: 02003021 addu r6,r16,r0
0006a3f8: 3402000b ori r2,r0,0x000b
0006a3fc: 0c02065e jal 0x00081978		Store unit animation and facing value
0006a400: a202007f sb r2,0x007f(r16)
0006a404: 9203007c lbu r3,0x007c(r16)
0006a408: 9202011c lbu r2,0x011c(r16)
0006a40c: 24630001 addiu r3,r3,0x0001
0006a410: 30420003 andi r2,r2,0x0003
0006a414: 00621821 addu r3,r3,r2
0006a418: 0801a92c j 0x0006a4b0
0006a41c: a2030080 sb r3,0x0080(r16)
0006a420: 34040023 ori r4,r0,0x0023
0006a424: 34050400 ori r5,r0,0x0400
0006a428: 02003021 addu r6,r16,r0
0006a42c: 3402000f ori r2,r0,0x000f
0006a430: 0c02065e jal 0x00081978		Store unit animation and facing value
0006a434: a202007f sb r2,0x007f(r16)
0006a438: 9203007c lbu r3,0x007c(r16)
0006a43c: 9202011c lbu r2,0x011c(r16)
0006a440: 246300ff addiu r3,r3,0x00ff
0006a444: 30420003 andi r2,r2,0x0003
0006a448: 00621823 subu r3,r3,r2
0006a44c: 0801a92c j 0x0006a4b0
0006a450: a2030080 sb r3,0x0080(r16)
0006a454: 34040023 ori r4,r0,0x0023
0006a458: 00002821 addu r5,r0,r0
0006a45c: 02003021 addu r6,r16,r0
0006a460: 34020009 ori r2,r0,0x0009
0006a464: 0c02065e jal 0x00081978		Store unit animation and facing value
0006a468: a202007f sb r2,0x007f(r16)
0006a46c: 9203007d lbu r3,0x007d(r16)
0006a470: 9202011c lbu r2,0x011c(r16)
0006a474: 246300ff addiu r3,r3,0x00ff
0006a478: 30420003 andi r2,r2,0x0003
0006a47c: 0801a92b j 0x0006a4ac
0006a480: 00621823 subu r3,r3,r2
0006a484: 34050800 ori r5,r0,0x0800
0006a488: 02003021 addu r6,r16,r0
0006a48c: 3402000d ori r2,r0,0x000d
0006a490: 0c02065e jal 0x00081978		Store unit animation and facing value
0006a494: a202007f sb r2,0x007f(r16)
0006a498: 9203007d lbu r3,0x007d(r16)
0006a49c: 9202011c lbu r2,0x011c(r16)
0006a4a0: 24630001 addiu r3,r3,0x0001
0006a4a4: 30420003 andi r2,r2,0x0003
0006a4a8: 00621821 addu r3,r3,r2
0006a4ac: a2030081 sb r3,0x0081(r16)
0006a4b0: 92030130 lbu r3,0x0130(r16)
0006a4b4: 34020002 ori r2,r0,0x0002
0006a4b8: 1462000b bne r3,r2,0x0006a4e8
0006a4bc: 02002021 addu r4,r16,r0
0006a4c0: 92040131 lbu r4,0x0131(r16)
0006a4c4: 0c01e9b9 jal 0x0007a6e4		Get Unit Misc Data Pointer | Find Current Misc Unit Data Pointer (external ID)?
0006a4c8: 00000000 nop
0006a4cc: 10400005 beq r2,r0,0x0006a4e4
0006a4d0: 00000000 nop
0006a4d4: 34040032 ori r4,r0,0x0032
0006a4d8: 86050070 lh r5,0x0070(r16)
0006a4dc: 0c02065e jal 0x00081978		Store unit animation and facing value
0006a4e0: 00403021 addu r6,r2,r0
0006a4e4: 02002021 addu r4,r16,r0
0006a4e8: 02202821 addu r5,r17,r0
0006a4ec: 02603021 addu r6,r19,r0
0006a4f0: 0c01a67d jal 0x000699f4		000699f4 - 00069af4
0006a4f4: 02403821 addu r7,r18,r0
0006a4f8: 8e05003c lw r5,0x003c(r16)
0006a4fc: 0c01a77f jal 0x00069dfc		00069dfc - 00069e64
0006a500: 02002021 addu r4,r16,r0
0006a504: 92220000 lbu r2,0x0000(r17)
0006a508: 00000000 nop
0006a50c: 00021142 srl r2,r2,0x05
0006a510: 30420001 andi r2,r2,0x0001
0006a514: a2020082 sb r2,0x0082(r16)
0006a518: 8fbf0020 lw r31,0x0020(r29)
0006a51c: 8fb3001c lw r19,0x001c(r29)
0006a520: 8fb20018 lw r18,0x0018(r29)
0006a524: 8fb10014 lw r17,0x0014(r29)
0006a528: 8fb00010 lw r16,0x0010(r29)
0006a52c: 27bd0028 addiu r29,r29,0x0028
0006a530: 03e00008 jr r31
0006a534: 00000000 nop

Return locations

Battle.bin
0006c3a4: 0006c320 - 0006c3d4
0006c628: 0006c4f8 - 0006c78c
0006cfb4: 0006cc94 - 0006d05c	Some Knockback Handling
0006dae4: 0006d818 - 0006db0c	Process Single Unit Movement

< BATTLE.BIN Routines

< Move target coordinates after knockback
0006a538 - 0006a7bc >