Set Secondary Effect Struct

From Final Fantasy Hacktics Wiki
(Redirected from Set some palette stuff)
Jump to navigation Jump to search
00068a20: 27bdff18 addiu r29,r29,0xff18
00068a24: afb000d8 sw r16,0x00d8(r29)
00068a28: 00808021 addu r16,r4,r0		r16 = Misc Unit Data Pointer
00068a2c: afb100dc sw r17,0x00dc(r29)
00068a30: 00a08821 addu r17,r5,r0		r17 = Preset Value
00068a34: afbf00e0 sw r31,0x00e0(r29)
00068a38: 0c01a1ef jal 0x000687bc              Transfer Palette
00068a3c: 27a50010 addiu r5,r29,0x0010		r5 = Stack pointer
00068a40: 8e020134 lw r2,0x0134(r16)		Load Unit's Data Pointer
00068a44: 00000000 nop
00068a48: 10400004 beq r2,r0,0x00068a5c		Branch if Pointer = 0
00068a4c: 02202021 addu r4,r17,r0		r4 = Preset Value
00068a50: 90450004 lbu r5,0x0004(r2)		Load Unit's Palette
00068a54: 0c06b755 jal 0x001add54              001add54 - 001ade78
00068a58: 27a60010 addiu r6,r29,0x0010		r6 = Stack Pointer
00068a5c: 8fbf00e0 lw r31,0x00e0(r29)
00068a60: 8fb100dc lw r17,0x00dc(r29)
00068a64: 8fb000d8 lw r16,0x00d8(r29)
00068a68: 27bd00e8 addiu r29,r29,0x00e8
00068a6c: 03e00008 jr r31
00068a70: 00000000 nop

Return locations

Battle.bin
00068a7c: 00068a74 - 00068a90	Call palette routine 1
00068a9c: 00068a94 - 00068ab0	Call palette routine 2
00068abc: 00068ab4 - 00068ad0	Call palette routine 3
00068adc: 00068ad4 - 00068af0	Call palette routine 4
00068afc: 00068af4 - 00068b10	Call palette routine 5
00068b1c: 00068b14 - 00068b30	Call palette routine 6
00068b3c: 00068b34 - 00068b50	Call palette routine 7

< BATTLE.BIN Routines

< Set evade type data, item and throw stone hardcoding
Call palette routine 1 >