Difference between revisions of "Set Animation/Facing for Mounted Units"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Return locations and navigation)
Line 1: Line 1:
<font face='Courier New'>
+
Set Animation/Facing for Mounted Units 692bc: 000692bc - 00069338
Set Animation/Facing for Mounted Units 692bc: [[000692bc - 00069338]]
 
 
   
 
   
 
  0007a6e4: [[Find Current Misc Unit Data Pointer (external ID)?]]
 
  0007a6e4: [[Find Current Misc Unit Data Pointer (external ID)?]]
Line 38: Line 37:
 
  00069334: 03e00008 jr r31 Jump to Address
 
  00069334: 03e00008 jr r31 Jump to Address
 
  00069338: 00000000 nop
 
  00069338: 00000000 nop
   
+
 
   
+
==Return locations==
  </font>
+
'''Battle.bin'''
 +
  00069f34: [[00069f14 - 0006a07c]]
 +
  0006cf4c: 0006cc94 - 0006d05c [[Some Knockback Handling]]
 +
  0006d98c: 0006d818 - 0006db0c [[Process Single Unit Movement]]
 +
0006d9ac
 +
00081ba8: 00081b88 - 00081c18 [[Store some movement coordinate data]]
 +
0008c78c: [[0008c664 - 0008c7c8]] [[Walk To]]
 +
0008c8c0: [[0008c7cc - 0008c8e0]]
 +
 
 +
==< [[BATTLE.BIN Routines]]==
 +
<div style="float:left;">< [[? 0x692bc]] | [[Set some data for Mounted Units]]</div><div style="float:right;">[[0006933c - 000693f0]] ></div>

Revision as of 02:44, 7 April 2023

Set Animation/Facing for Mounted Units 692bc:		000692bc - 00069338

	0007a6e4: Find Current Misc Unit Data Pointer (external ID)?
	00068e30: Jump to 68d08
	00068e30: Jump to 68d08

000692bc: 27bdffe8 addiu r29,r29,0xffe8			
000692c0: afb00010 sw r16,0x0010(r29)			Store 0x4X onto Stack
000692c4: 00808021 addu r16,r4,r0
000692c8: afbf0014 sw r31,0x0014(r29)			Store 0x4X onto Stack
000692cc: 92030130 lbu r3,0x0130(r16)			Load Mount/Rider Value
000692d0: 34020001 ori r2,r0,0x0001			r2 = (0x1) 1
000692d4: 14620014 bne r3,r2,0x00069328			Branch if Mount/Rider Value != 1 (1)
000692d8: 00000000 nop
000692dc: 92040131 lbu r4,0x0131(r16)			Load Mount/Rider ID
000692e0: 0c01e9b9 jal 0x0007a6e4			Find Current Misc Unit Data Pointer (external ID)?
000692e4: 00000000 nop
000692e8: 92040004 lbu r4,0x0004(r16)			Load Unit Misc ID?
000692ec: 8e030140 lw r3,0x0140(r16)			Load Status Flags 1
000692f0: 2405fffd addiu r5,r0,0xfffd
000692f4: a200011e sb r0,0x011e(r16)			Store 0x18a Unit ID + 1 (not sure what unit though)
000692f8: a2000130 sb r0,0x0130(r16)			Store Mount/Rider Value
000692fc: a2000131 sb r0,0x0131(r16)			Store Mount/Rider ID
00069300: 00651824 and r3,r3,r5			-0x3 & Status Flags 1, Status Flags 2, Status Flags 3, Status Flags 4, 
00069304: ae030140 sw r3,0x0140(r16)			Store Status Flags 1
00069308: 0c01a38c jal 0x00068e30			Jump to 68d08
0006930c: 00408021 addu r16,r2,r0
00069310: 12000005 beq r16,r0,0x00069328			Branch if Misc Unit Display Data  == 0x4X
00069314: 00000000 nop
00069318: 92040004 lbu r4,0x0004(r16)			Load Unit Misc ID?
0006931c: a2000130 sb r0,0x0130(r16)			Store Mount/Rider Value
00069320: 0c01a38c jal 0x00068e30			Jump to 68d08
00069324: a2000131 sb r0,0x0131(r16)			Store Mount/Rider ID
00069328: 8fbf0014 lw r31,0x0014(r29)			Load Stack + 0x14
0006932c: 8fb00010 lw r16,0x0010(r29)			Load Stack + 0x10
00069330: 27bd0018 addiu r29,r29,0x0018			
00069334: 03e00008 jr r31			Jump to Address
00069338: 00000000 nop

Return locations

Battle.bin
00069f34: 00069f14 - 0006a07c
0006cf4c: 0006cc94 - 0006d05c	Some Knockback Handling
0006d98c: 0006d818 - 0006db0c	Process Single Unit Movement
0006d9ac
00081ba8: 00081b88 - 00081c18	Store some movement coordinate data
0008c78c: 0008c664 - 0008c7c8	Walk To
0008c8c0: 0008c7cc - 0008c8e0

< BATTLE.BIN Routines

< ? 0x692bc | Set some data for Mounted Units
0006933c - 000693f0 >