Difference between revisions of "Recommence attack phase control"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
 
(No difference)

Latest revision as of 05:07, 22 October 2024

000777ec: 27bdffe8 addiu r29,r29,0xffe8
000777f0: afbf0014 sw r31,0x0014(r29)
000777f4: 0c01d2eb jal 0x00074bac
000777f8: afb00010 sw r16,0x0010(r29)
000777fc: 0c011298 jal 0x00044a60
00077800: 00000000 nop
00077804: 3c058004 lui r5,0x8004
00077808: 8ca55944 lw r5,0x5944(r5)
0007780c: 0c04fd48 jal 0x0013f520
00077810: 00402021 addu r4,r2,r0
00077814: 0c04fe5e jal 0x0013f978
00077818: 00000000 nop
0007781c: 8c430000 lw r3,0x0000(r2)
00077820: 00000000 nop
00077824: 28620007 slti r2,r3,0x0007
00077828: 14400008 bne r2,r0,0x0007784c
0007782c: 28620009 slti r2,r3,0x0009
00077830: 14400004 bne r2,r0,0x00077844
00077834: 34020001 ori r2,r0,0x0001
00077838: 340200ff ori r2,r0,0x00ff
0007783c: 14620003 bne r3,r2,0x0007784c
00077840: 34020001 ori r2,r0,0x0001
00077844: 3c01800a lui r1,0x800a
00077848: ac228db8 sw r2,-0x7248(r1)		store post action
0007784c: 0c01e875 jal 0x0007a1d4			get casting units misc data
00077850: 00000000 nop
00077854: 3c03800a lui r3,0x800a
00077858: 8c638db8 lw r3,-0x7248(r3)		load post action
0007785c: 00000000 nop
00077860: 1060004a beq r3,r0,0x0007798c
00077864: 00408021 addu r16,r2,r0
00077868: 0c01cb3a jal 0x00072ce8			???
0007786c: 00000000 nop
00077870: 14400046 bne r2,r0,0x0007798c
00077874: 00000000 nop
00077878: 920202bc lbu r2,0x02bc(r16)		load exp/jp display?
0007787c: 00000000 nop
00077880: 14400042 bne r2,r0,0x0007798c
00077884: 00000000 nop
00077888: 920201a4 lbu r2,0x01a4(r16)		load continue attack byte?
0007788c: 00000000 nop
00077890: 10400008 beq r2,r0,0x000778b4		branch if end?
00077894: 00000000 nop
00077898: 920201b5 lbu r2,0x01b5(r16)		load??
0007789c: 00000000 nop
000778a0: 24420001 addiu r2,r2,0x0001		increment
000778a4: 0c01cfbb jal 0x00073eec			set damage display type based on ability
000778a8: a20201b5 sb r2,0x01b5(r16)		store new
000778ac: 0801de63 j 0x0007798c
000778b0: 00000000 nop
000778b4: 3c04800a lui r4,0x800a
000778b8: 8c848d70 lw r4,-0x7290(r4)		load ??
000778bc: 00000000 nop
000778c0: 10800005 beq r4,r0,0x000778d8		
000778c4: 00000000 nop
000778c8: 0c011180 jal 0x00044600			??
000778cc: 00000000 nop
000778d0: 3c01800a lui r1,0x800a
000778d4: ac208d70 sw r0,-0x7290(r1)		clear ??
000778d8: 0c01ea5a jal 0x0007a968			??
000778dc: 02002021 addu r4,r16,r0
000778e0: 3c03800a lui r3,0x800a
000778e4: 8c638d84 lw r3,-0x727c(r3)		load type of action
000778e8: 34020100 ori r2,r0,0x0100
000778ec: 1462000f bne r3,r2,0x0007792c		branch if not active turn
000778f0: 34020001 ori r2,r0,0x0001
active turn
000778f4: 3c038009 lui r3,0x8009
000778f8: 8c636214 lw r3,0x6214(r3)			load action phase
000778fc: 00000000 nop
00077900: 1462000a bne r3,r2,0x0007792c		branch if not acting unit
00077904: 00000000 nop
00077908: 86050070 lh r5,0x0070(r16)		load current facing direction
0007790c: 00000000 nop
00077910: 04a10002 bgez r5,0x0007791c
00077914: 00000000 nop
00077918: 24a503ff addiu r5,r5,0x03ff
0007791c: 00052a82 srl r5,r5,0x0a
00077920: 8e040134 lw r4,0x0134(r16)
00077924: 0c063bcb jal 0x0018ef2c			??
00077928: 30a500ff andi r5,r5,0x00ff
0007792c: 8e040134 lw r4,0x0134(r16)		load unit data
00077930: 0c05f6f2 jal 0x0017dbc8			store some acting unit data
00077934: 00000000 nop
00077938: 0c020e15 jal 0x00083854			set animation based on status
0007793c: 02002021 addu r4,r16,r0
00077940: 0c020f16 jal 0x00083c58			Sprite display setting for all units based on attack
00077944: 02002021 addu r4,r16,r0
00077948: 0c01e886 jal 0x0007a218			get misc data
0007794c: 00000000 nop
00077950: 3c038009 lui r3,0x8009
00077954: 8c636214 lw r3,0x6214(r3)			load action phase
00077958: 00000000 nop
0007795c: 10600009 beq r3,r0,0x00077984		branch if pre-attack/hamedo (Do not initiate action phase control)
00077960: 34020002 ori r2,r0,0x0002
00077964: 10620003 beq r3,r2,0x00077974		branch if reacting (initiate action phase control, do not increment phase)
00077968: 24620001 addiu r2,r3,0x0001	
0007796c: 3c018009 lui r1,0x8009
00077970: ac226214 sw r2,0x6214(r1)			if phase was attacking phase, increment action phase to reaction phase
00077974: 0c01ce73 jal 0x000739cc                    Action phase control
00077978: 00000000 nop
0007797c: 14400003 bne r2,r0,0x0007798c
00077980: 00000000 nop
00077984: 0c01cd8e jal 0x00073638			post action stuff
00077988: 00000000 nop
0007798c: 8fbf0014 lw r31,0x0014(r29)
00077990: 8fb00010 lw r16,0x0010(r29)
00077994: 27bd0018 addiu r29,r29,0x0018
00077998: 03e00008 jr r31
0007799c: 00000000 nop