Difference between revisions of "Set thrown item graphic/palette"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 00083758: 27bdffd0 addiu r29,r29,0xffd0 0008375c: afb50024 sw r21,0x0024(r29) 00083760: 0080a821 addu r21,r4,r0 00083764: afb3001c sw r19,0x001...")
 
 
Line 30: Line 30:
 
  000837c4: 34050005 ori r5,r0,0x0005
 
  000837c4: 34050005 ori r5,r0,0x0005
 
  000837c8: 00159040 sll r18,r21,0x01 used item ID*2
 
  000837c8: 00159040 sll r18,r21,0x01 used item ID*2
  000837cc: 00003821 addu r7,r0,r0
+
  000837cc: 00003821 addu r7,r0,r0 r7 = 0
 
  000837d0: 3c11800b lui r17,0x800b
 
  000837d0: 3c11800b lui r17,0x800b
  000837d4: 26316294 addiu r17,r17,0x6294
+
  000837d4: 26316294 addiu r17,r17,0x6294 r17 = 0x800b6294
 
  000837d8: 3c018009 lui r1,0x8009
 
  000837d8: 3c018009 lui r1,0x8009
 
  000837dc: 00320821 addu r1,r1,r18
 
  000837dc: 00320821 addu r1,r1,r18
  000837e0: 902443e4 lbu r4,0x43e4(r1) load item graphic data
+
  000837e0: 902443e4 lbu r4,0x43e4(r1) load item Palette
 
  000837e4: 92700004 lbu r16,0x0004(r19) load unit misc ID
 
  000837e4: 92700004 lbu r16,0x0004(r19) load unit misc ID
 
  000837e8: 00042102 srl r4,r4,0x04
 
  000837e8: 00042102 srl r4,r4,0x04
 
  000837ec: 00042140 sll r4,r4,0x05
 
  000837ec: 00042140 sll r4,r4,0x05
  000837f0: 00912021 addu r4,r4,r17
+
  000837f0: 00912021 addu r4,r4,r17 r17 pointer + Palette
  000837f4: 0c0249b6 jal 0x000926d8 get palette data
+
  000837f4: 0c0249b6 jal 0x000926d8 get palette data (WEP1?)
  000837f8: 02003021 addu r6,r16,r0
+
  000837f8: 02003021 addu r6,r16,r0 r6 = unit misc ID
  000837fc: 34050006 ori r5,r0,0x0006
+
  000837fc: 34050006 ori r5,r0,0x0006 r5 = 0x6
  00083800: 02003021 addu r6,r16,r0
+
  00083800: 02003021 addu r6,r16,r0 r6 = unit misc ID
 
  00083804: 3c018009 lui r1,0x8009
 
  00083804: 3c018009 lui r1,0x8009
  00083808: 00320821 addu r1,r1,r18
+
  00083808: 00320821 addu r1,r1,r18
  0008380c: 902443e4 lbu r4,0x43e4(r1) load item display data (palette)
+
  0008380c: 902443e4 lbu r4,0x43e4(r1) load item palette
 
  00083810: 00003821 addu r7,r0,r0
 
  00083810: 00003821 addu r7,r0,r0
 
  00083814: 3084000f andi r4,r4,0x000f
 
  00083814: 3084000f andi r4,r4,0x000f
 
  00083818: 00042140 sll r4,r4,0x05
 
  00083818: 00042140 sll r4,r4,0x05
  0008381c: 0c0249b6 jal 0x000926d8 get item palette data
+
  0008381c: 0c0249b6 jal 0x000926d8 get item palette data (WEP2?)
 
  00083820: 00912021 addu r4,r4,r17
 
  00083820: 00912021 addu r4,r4,r17
 
  00083824: a275013a sb r21,0x013a(r19) set used item ID
 
  00083824: a275013a sb r21,0x013a(r19) set used item ID

Latest revision as of 12:47, 24 October 2021

00083758: 27bdffd0 addiu r29,r29,0xffd0
0008375c: afb50024 sw r21,0x0024(r29)
00083760: 0080a821 addu r21,r4,r0
00083764: afb3001c sw r19,0x001c(r29)
00083768: 00a09821 addu r19,r5,r0
0008376c: afbf0028 sw r31,0x0028(r29)
00083770: afb40020 sw r20,0x0020(r29)
00083774: afb20018 sw r18,0x0018(r29)
00083778: afb10014 sw r17,0x0014(r29)
0008377c: 0c016a21 jal 0x0005a884			get item data pointer
00083780: afb00010 sw r16,0x0010(r29)
00083784: 90540005 lbu r20,0x0005(r2)		load item type
00083788: 00000000 nop
0008378c: 2e820020 sltiu r2,r20,0x0020		set if not throwing/bomb/item
00083790: 1040000b beq r2,r0,0x000837c0		branch if throwing/bomb/item
00083794: 00000000 nop
00083798: 96620138 lhu r2,0x0138(r19)		load used ability
0008379c: 00000000 nop
000837a0: 2442fe82 addiu r2,r2,0xfe82
000837a4: 2c42000c sltiu r2,r2,0x000c		set if throw ability
000837a8: 14400005 bne r2,r0,0x000837c0		branch if so
000837ac: 34020094 ori r2,r0,0x0094
000837b0: 96630138 lhu r3,0x0138(r19)		load ability ID
000837b4: 00000000 nop
000837b8: 14620003 bne r3,r2,0x000837c8		branch if not throw stone
000837bc: 34050005 ori r5,r0,0x0005
000837c0: 34140015 ori r20,r0,0x0015
000837c4: 34050005 ori r5,r0,0x0005
000837c8: 00159040 sll r18,r21,0x01			used item ID*2
000837cc: 00003821 addu r7,r0,r0			r7 = 0
000837d0: 3c11800b lui r17,0x800b
000837d4: 26316294 addiu r17,r17,0x6294	r17 = 0x800b6294
000837d8: 3c018009 lui r1,0x8009
000837dc: 00320821 addu r1,r1,r18
000837e0: 902443e4 lbu r4,0x43e4(r1)		load item Palette
000837e4: 92700004 lbu r16,0x0004(r19)		load unit misc ID
000837e8: 00042102 srl r4,r4,0x04
000837ec: 00042140 sll r4,r4,0x05
000837f0: 00912021 addu r4,r4,r17		r17 pointer + Palette
000837f4: 0c0249b6 jal 0x000926d8			get palette data (WEP1?)
000837f8: 02003021 addu r6,r16,r0		r6 = unit misc ID
000837fc: 34050006 ori r5,r0,0x0006		r5 = 0x6
00083800: 02003021 addu r6,r16,r0		r6 = unit misc ID
00083804: 3c018009 lui r1,0x8009
00083808: 00320821 addu r1,r1,r18		
0008380c: 902443e4 lbu r4,0x43e4(r1)		load item palette
00083810: 00003821 addu r7,r0,r0
00083814: 3084000f andi r4,r4,0x000f
00083818: 00042140 sll r4,r4,0x05
0008381c: 0c0249b6 jal 0x000926d8			get item palette data (WEP2?)
00083820: 00912021 addu r4,r4,r17
00083824: a275013a sb r21,0x013a(r19)		set used item ID
00083828: a274013b sb r20,0x013b(r19)		set ?? = 15
0008382c: 8fbf0028 lw r31,0x0028(r29)
00083830: 8fb50024 lw r21,0x0024(r29)
00083834: 8fb40020 lw r20,0x0020(r29)
00083838: 8fb3001c lw r19,0x001c(r29)
0008383c: 8fb20018 lw r18,0x0018(r29)
00083840: 8fb10014 lw r17,0x0014(r29)
00083844: 8fb00010 lw r16,0x0010(r29)
00083848: 27bd0030 addiu r29,r29,0x0030
0008384c: 03e00008 jr r31
00083850: 00000000 nop