000779a0 - 00077b54

From Final Fantasy Hacktics Wiki
Revision as of 13:58, 8 February 2015 by Choto (talk | contribs) (Created page with "<font face='Courier New'> 000779a0: 27bdffd8 addiu r29,r29,0xffd8 000779a4: afbf0024 sw r31,0x0024(r29) 000779a8: afb20020 sw r18,0x0020(r29) 000779ac: afb1001c sw r17,0...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

000779a0: 27bdffd8 addiu r29,r29,0xffd8
000779a4: afbf0024 sw r31,0x0024(r29)
000779a8: afb20020 sw r18,0x0020(r29)
000779ac: afb1001c sw r17,0x001c(r29)
000779b0: 0c01d2eb jal 0x00074bac			??
000779b4: afb00018 sw r16,0x0018(r29)
000779b8: 0c011298 jal 0x00044a60
000779bc: 00000000 nop
000779c0: 3c058004 lui r5,0x8004
000779c4: 8ca55944 lw r5,0x5944(r5)
000779c8: 0c04fd48 jal 0x0013f520
000779cc: 00402021 addu r4,r2,r0
000779d0: 0c04fe5e jal 0x0013f978
000779d4: 00000000 nop
000779d8: 0c01e875 jal 0x0007a1d4		get casting unit's misc data
000779dc: 00408021 addu r16,r2,r0		
000779e0: 00408821 addu r17,r2,r0
000779e4: 8e100000 lw r16,0x0000(r16)	169828	
000779e8: 34020008 ori r2,r0,0x0008
000779ec: 12020018 beq r16,r2,0x00077a50
000779f0: 2a020009 slti r2,r16,0x0009
000779f4: 10400005 beq r2,r0,0x00077a0c
000779f8: 34020007 ori r2,r0,0x0007
000779fc: 12020008 beq r16,r2,0x00077a20
00077a00: 34020002 ori r2,r0,0x0002
00077a04: 0801dea5 j 0x00077a94
00077a08: 00000000 nop
greater than 0x09
00077a0c: 340200ff ori r2,r0,0x00ff
00077a10: 1202000f beq r16,r2,0x00077a50
00077a14: 00000000 nop
00077a18: 0801dea5 j 0x00077a94
00077a1c: 00000000 nop
0x07 or 0x02
00077a20: 3c038009 lui r3,0x8009
00077a24: 8c636204 lw r3,0x6204(r3)			load post action display phase
00077a28: 00000000 nop
00077a2c: 14620008 bne r3,r2,0x00077a50		branch if not 2? 
00077a30: 00000000 nop
00077a34: 3c048009 lui r4,0x8009
00077a38: 94846200 lhu r4,0x6200(r4)		load learned ability
00077a3c: 0c01e9c9 jal 0x0007a724			get units misc data pointer
00077a40: 00000000 nop
00077a44: 8c440134 lw r4,0x0134(r2)			load unit data
00077a48: 0c063a2b jal 0x0018e8ac			learn on hit 2
00077a4c: 00000000 nop
00077a50: 3c028009 lui r2,0x8009
00077a54: 8c426204 lw r2,0x6204(r2)			load post action phase
00077a58: 00000000 nop
00077a5c: 24420001 addiu r2,r2,0x0001		increment phase
00077a60: 3c018009 lui r1,0x8009
00077a64: ac226204 sw r2,0x6204(r1)			store new
00077a68: 28420003 slti r2,r2,0x0003
00077a6c: 14400007 bne r2,r0,0x00077a8c		branch if still shit to do?
00077a70: 34020001 ori r2,r0,0x0001
00077a74: 3c01800a lui r1,0x800a
00077a78: ac228db8 sw r2,-0x7248(r1)		store new post action byte?
00077a7c: 0801dea5 j 0x00077a94
00077a80: 00000000 nop
00077a84: 0801dec6 j 0x00077b18
00077a88: 34120001 ori r18,r0,0x0001
00077a8c: 0c01cd33 jal 0x000734cc
00077a90: 00000000 nop
anything else
00077a94: 3c02800a lui r2,0x800a
00077a98: 8c428db8 lw r2,-0x7248(r2)		load post action byte?
00077a9c: 00000000 nop
00077aa0: 10400026 beq r2,r0,0x00077b3c		skip to end if zero
00077aa4: 00000000 nop
00077aa8: 3c028009 lui r2,0x8009
00077aac: 8c42612c lw r2,0x612c(r2)			load ??
00077ab0: 00000000 nop
00077ab4: 14400021 bne r2,r0,0x00077b3c		branch to end if ??
00077ab8: 00000000 nop
00077abc: 922202bc lbu r2,0x02bc(r17)		load exp/jp display?
00077ac0: 00000000 nop
00077ac4: 1440001d bne r2,r0,0x00077b3c		branch if not 0
00077ac8: 00008021 addu r16,r0,r0
00077acc: 9222018d lbu r2,0x018d(r17)		load target hit counter
00077ad0: 00000000 nop
00077ad4: 18400010 blez r2,0x00077b18		branch if none hit?
00077ad8: 00009021 addu r18,r0,r0
00077adc: 02301021 addu r2,r17,r16			r2 = misc data
00077ae0: 9044018e lbu r4,0x018e(r2)		load target list
00077ae4: 0c01e9c9 jal 0x0007a724			get misc data
00077ae8: 00000000 nop
00077aec: 10400005 beq r2,r0,0x00077b04		branch if non-existent
00077af0: 26100001 addiu r16,r16,0x0001		counter++
00077af4: 904202bc lbu r2,0x02bc(r2)		load exp/jp display
00077af8: 00000000 nop
00077afc: 1440ffe1 bne r2,r0,0x00077a84		branch if not 0
00077b00: 00000000 nop
00077b04: 9222018d lbu r2,0x018d(r17)		load target hit counter
00077b08: 00000000 nop
00077b0c: 0202102a slt r2,r16,r2			set if counter < target hit counter
00077b10: 1440fff3 bne r2,r0,0x00077ae0		branch if so
00077b14: 02301021 addu r2,r17,r16
00077b18: 16400008 bne r18,r0,0x00077b3c	branch if 0x2bc byte != 0 on any targets
00077b1c: 00000000 nop
00077b20: 0c01e886 jal 0x0007a218			get misc data
00077b24: 00000000 nop
00077b28: 00408821 addu r17,r2,r0
00077b2c: 0c020e15 jal 0x00083854			Set animation based on status
00077b30: 02202021 addu r4,r17,r0
00077b34: 0c01cac5 jal 0x00072b14			???
00077b38: 02202021 addu r4,r17,r0
00077b3c: 8fbf0024 lw r31,0x0024(r29)
00077b40: 8fb20020 lw r18,0x0020(r29)
00077b44: 8fb1001c lw r17,0x001c(r29)
00077b48: 8fb00018 lw r16,0x0018(r29)
00077b4c: 27bd0028 addiu r29,r29,0x0028
00077b50: 03e00008 jr r31
00077b54: 00000000 nop