Difference between revisions of "Set some data for Mounted Units"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Return locations and navigation)
 
(One intermediate revision by the same user not shown)
Line 37: Line 37:
  
 
==< [[BATTLE.BIN Routines]]==
 
==< [[BATTLE.BIN Routines]]==
<div style="float:left;">< [[00069130 - 00069250]]</div><div style="float:right;">[[Set Animation/Facing for Mounted Units]] ></div>
+
<div style="float:left;">< [[00069130 - 00069250]]</div><div style="float:right;">[[? 0x692bc]] | [[Set Animation/Facing for Mounted Units]] ></div>

Latest revision as of 14:30, 7 April 2023

Set some data for Mounted Units:			00069254 - 000692b8
	0007a6e4: Find Current Misc Unit Data Pointer (external ID)?

00069254: 27bdffe8 addiu r29,r29,0xffe8			
00069258: afb00010 sw r16,0x0010(r29)			Store 0x4X onto Stack
0006925c: 00808021 addu r16,r4,r0
00069260: afbf0014 sw r31,0x0014(r29)			Store 0x4X onto Stack
00069264: 92030130 lbu r3,0x0130(r16)			Load Mount/Rider Value
00069268: 34020001 ori r2,r0,0x0001			r2 = (0x1) 1
0006926c: 1462000e bne r3,r2,0x000692a8			Branch if Mount/Rider Value != 1 (1)
00069270: 00000000 nop
00069274: 92040131 lbu r4,0x0131(r16)			Load Mount/Rider ID
00069278: 0c01e9b9 jal 0x0007a6e4			Find Current Misc Unit Data Pointer (external ID)?
0006927c: 00000000 nop
00069280: 8e030140 lw r3,0x0140(r16)			Load Status Flags 1
00069284: 2404fffd addiu r4,r0,0xfffd
00069288: a200011e sb r0,0x011e(r16)			Store 0x18a Unit ID + 1 (not sure what unit though)
0006928c: a2000130 sb r0,0x0130(r16)			Store Mount/Rider Value
00069290: a2000131 sb r0,0x0131(r16)			Store Mount/Rider ID
00069294: 00641824 and r3,r3,r4			-0x3 & Status Flags 1, Status Flags 2, Status Flags 3, Status Flags 4, 
00069298: 10400003 beq r2,r0,0x000692a8			Branch if Misc Unit Display Data  == 0x4X
0006929c: ae030140 sw r3,0x0140(r16)			Store Status Flags 1
000692a0: a0400130 sb r0,0x0130(r2)			Store Mount/Rider Value
000692a4: a0400131 sb r0,0x0131(r2)			Store Mount/Rider ID
000692a8: 8fbf0014 lw r31,0x0014(r29)			Load Stack + 0x14
000692ac: 8fb00010 lw r16,0x0010(r29)			Load Stack + 0x10
000692b0: 27bd0018 addiu r29,r29,0x0018			
000692b4: 03e00008 jr r31			Jump to Address
000692b8: 00000000 nop

Return locations

Battle.bin
0006a094: 0006a080 - 0006a208
0006a664: 0006a538 - 0006a7bc
0006cfd4: 0006cc94 - 0006d05c	Some Knockback Handling

< BATTLE.BIN Routines

< 00069130 - 00069250
? 0x692bc | Set Animation/Facing for Mounted Units >