Difference between revisions of "000931c4 - 000933c0"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
Line 50: Line 50:
 
  00093288: 00a32823 subu r5,r5,r3
 
  00093288: 00a32823 subu r5,r5,r3
 
  0009328c: 00052c00 sll r5,r5,0x10
 
  0009328c: 00052c00 sll r5,r5,0x10
  00093290: 0c060fed jal 0x00183fb4 [[Get Tile's Data Pointer]]
+
  00093290: 0c060fed jal 0x00183fb4 [[Get Tile Data Pointer]]
 
  00093294: 00052c03 sra r5,r5,0x10
 
  00093294: 00052c03 sra r5,r5,0x10
 
  00093298: 02802021 addu r4,r20,r0 r4 = PV
 
  00093298: 02802021 addu r4,r20,r0 r4 = PV

Latest revision as of 10:35, 11 February 2024

000931c4: 27bdff98 addiu r29,r29,0xff98
000931c8: afb3004c sw r19,0x004c(r29)
000931cc: 8fb30078 lw r19,0x0078(r29)		r19 = Green Mod
000931d0: afb40050 sw r20,0x0050(r29)
000931d4: 0080a021 addu r20,r4,r0		r20 = PV
000931d8: afb50054 sw r21,0x0054(r29)
000931dc: 00a0a821 addu r21,r5,r0		r21 = PV2
000931e0: afb20048 sw r18,0x0048(r29)
000931e4: 00c09021 addu r18,r6,r0		r18 = Misc ID
000931e8: afb00040 sw r16,0x0040(r29)
000931ec: 00e08021 addu r16,r7,r0		r16 = Red Mod
000931f0: afbe0060 sw r30,0x0060(r29)
000931f4: 8fbe007c lw r30,0x007c(r29)		r30 = Blue Mod
000931f8: 3244ffff andi r4,r18,0xffff		r4 = Misc ID
000931fc: afbf0064 sw r31,0x0064(r29)
00093200: afb7005c sw r23,0x005c(r29)
00093204: afb60058 sw r22,0x0058(r29)
00093208: 0c01e9b9 jal 0x0007a6e4		Get unit misc data that matches r4 ID
0009320c: afb10044 sw r17,0x0044(r29)
00093210: 00408821 addu r17,r2,r0		r17 = Misc Unit Data Pointer
00093214: a7b00028 sh r16,0x0028(r29)
00093218: a7b30030 sh r19,0x0030(r29)
0009321c: 1220005c beq r17,r0,0x00093390	Branch if Pointer doesn't exist
00093220: a7be0038 sh r30,0x0038(r29)
00093224: 27a40020 addiu r4,r29,0x0020		r4 = Stack Pointer
00093228: 0c01ee5b jal 0x0007b96c              Store vx, vy, vz vectors
0009322c: 02202821 addu r5,r17,r0		r5 = Misc Unit Data Pointer
00093230: 3c069249 lui r6,0x9249
00093234: 97a20020 lhu r2,0x0020(r29)		Load X Mod?
00093238: 34c62493 ori r6,r6,0x2493
0009323c: 00021400 sll r2,r2,0x10
00093240: 00022c03 sra r5,r2,0x10
00093244: 00a60018 mult r5,r6			X Mod? * -0.42857143 (-3/7)
00093248: 97a30024 lhu r3,0x0024(r29)		Load Level? Mod?
0009324c: 00002010 mfhi r4
00093250: 00031c00 sll r3,r3,0x10
00093254: 00033c03 sra r7,r3,0x10
00093258: 00e60018 mult r7,r6			Level? Mod? * -0.42857143 (-3/7)
0009325c: 000217c3 sra r2,r2,0x1f
00093260: 00031fc3 sra r3,r3,0x1f
00093264: 00852021 addu r4,r4,r5		X Mod? * 4 / 7
00093268: 00042103 sra r4,r4,0x04		X Value = X Mod? / 28
0009326c: 00822023 subu r4,r4,r2
00093270: 00042400 sll r4,r4,0x10
00093274: 00042403 sra r4,r4,0x10
00093278: 9226007e lbu r6,0x007e(r17)		Load Unit's Map Level
0009327c: 00002810 mfhi r5
00093280: 00a72821 addu r5,r5,r7		Level? Mod? * 4 / 7
00093284: 00052903 sra r5,r5,0x04		Level? Value = Level? Mod? / 28
00093288: 00a32823 subu r5,r5,r3
0009328c: 00052c00 sll r5,r5,0x10
00093290: 0c060fed jal 0x00183fb4		Get Tile Data Pointer
00093294: 00052c03 sra r5,r5,0x10
00093298: 02802021 addu r4,r20,r0		r4 = PV
0009329c: 02a02821 addu r5,r21,r0		r5 = PV2
000932a0: 34060003 ori r6,r0,0x0003		Section ID = 3 (Unit Palettes)
000932a4: 02403821 addu r7,r18,r0		r7 = Misc ID
000932a8: 00101c00 sll r3,r16,0x10
000932ac: 0003bc03 sra r23,r3,0x10
000932b0: 00131c00 sll r3,r19,0x10
000932b4: 0003b403 sra r22,r3,0x10
000932b8: 001e1c00 sll r3,r30,0x10
000932bc: 00039c03 sra r19,r3,0x10
000932c0: 00408021 addu r16,r2,r0		r16 = Tile Data Pointer
000932c4: afa00010 sw r0,0x0010(r29)		Store ?
000932c8: afb70014 sw r23,0x0014(r29)		Store Red Mod
000932cc: afb60018 sw r22,0x0018(r29)		Store Green Mod
000932d0: 0c023dc4 jal 0x0008f710		Palette Modification (for status coloration?)
000932d4: afb3001c sw r19,0x001c(r29)		Store Blue Mod
000932d8: 92020003 lbu r2,0x0003(r16)		Load Tile's Halves + Depth
000932dc: 00000000 nop
000932e0: 304200e0 andi r2,r2,0x00e0
000932e4: 10400015 beq r2,r0,0x0009333c		Branch if Tile doesn't have Depth
000932e8: 02802021 addu r4,r20,r0
000932ec: 92020003 lbu r2,0x0003(r16)
000932f0: 92030002 lbu r3,0x0002(r16)
000932f4: 00021142 srl r2,r2,0x05
000932f8: 00621821 addu r3,r3,r2
000932fc: 00031823 subu r3,r0,r3
00093300: 00031040 sll r2,r3,0x01
00093304: 00431021 addu r2,r2,r3
00093308: 86230042 lh r3,0x0042(r17)
0009330c: 00021080 sll r2,r2,0x02
00093310: 0062182a slt r3,r3,r2
00093314: 1460000a bne r3,r0,0x00093340
00093318: 02a02821 addu r5,r21,r0
0009331c: 02802021 addu r4,r20,r0
00093320: 34060004 ori r6,r0,0x0004
00093324: 02403821 addu r7,r18,r0
00093328: afa00010 sw r0,0x0010(r29)
0009332c: afb70014 sw r23,0x0014(r29)
00093330: afb60018 sw r22,0x0018(r29)
00093334: 08024ce2 j 0x00093388
00093338: afb3001c sw r19,0x001c(r29)
0009333c: 02a02821 addu r5,r21,r0
00093340: 34060004 ori r6,r0,0x0004
00093344: 97a80028 lhu r8,0x0028(r29)
00093348: 02403821 addu r7,r18,r0
0009334c: afa00010 sw r0,0x0010(r29)
00093350: 00081023 subu r2,r0,r8
00093354: 00021400 sll r2,r2,0x10
00093358: 97a80030 lhu r8,0x0030(r29)
0009335c: 00021403 sra r2,r2,0x10
00093360: afa20014 sw r2,0x0014(r29)
00093364: 00081023 subu r2,r0,r8
00093368: 00021400 sll r2,r2,0x10
0009336c: 97a80038 lhu r8,0x0038(r29)
00093370: 00021403 sra r2,r2,0x10
00093374: afa20018 sw r2,0x0018(r29)
00093378: 00081023 subu r2,r0,r8
0009337c: 00021400 sll r2,r2,0x10
00093380: 00021403 sra r2,r2,0x10
00093384: afa2001c sw r2,0x001c(r29)
00093388: 0c023dc4 jal 0x0008f710		Palette Modification
0009338c: 00000000 nop
00093390: 8fbf0064 lw r31,0x0064(r29)
00093394: 8fbe0060 lw r30,0x0060(r29)
00093398: 8fb7005c lw r23,0x005c(r29)
0009339c: 8fb60058 lw r22,0x0058(r29)
000933a0: 8fb50054 lw r21,0x0054(r29)
000933a4: 8fb40050 lw r20,0x0050(r29)
000933a8: 8fb3004c lw r19,0x004c(r29)
000933ac: 8fb20048 lw r18,0x0048(r29)
000933b0: 8fb10044 lw r17,0x0044(r29)
000933b4: 8fb00040 lw r16,0x0040(r29)
000933b8: 27bd0068 addiu r29,r29,0x0068
000933bc: 03e00008 jr r31
000933c0: 00000000 nop