Difference between revisions of "001a522c - 001a52b0"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
Line 9: Line 9:
 
  001a5244: 24840008 addiu r4,r4,0x0008 r4 + 8 (below + f then >> 3?)
 
  001a5244: 24840008 addiu r4,r4,0x0008 r4 + 8 (below + f then >> 3?)
 
  001a5248: afbf0018 sw r31,0x0018(r29)
 
  001a5248: afbf0018 sw r31,0x0018(r29)
  001a524c: 0c06937a jal 0x001a4de8 [[0x001a4de8]] -
+
  001a524c: 0c06937a jal 0x001a4de8 [[0x1a4de8]] -
 
  001a5250: 00002821 addu r5,r0,r0
 
  001a5250: 00002821 addu r5,r0,r0
 
  001a5254: 00402021 addu r4,r2,r0 r4 is pointer to some SHP data pointer? palette data?
 
  001a5254: 00402021 addu r4,r2,r0 r4 is pointer to some SHP data pointer? palette data?

Latest revision as of 00:11, 21 March 2022

001a522c: 27bdffe0 addiu r29,r29,0xffe0
001a5230: afb00010 sw r16,0x0010(r29)
001a5234: 00808021 addu r16,r4,r0		r16 = some input?
001a5238: afb10014 sw r17,0x0014(r29)
001a523c: 321100ff andi r17,r16,0x00ff		also put it in r17
001a5240: 00112080 sll r4,r17,0x02		r4 * 4
001a5244: 24840008 addiu r4,r4,0x0008		r4 + 8 (below + f then >> 3?)
001a5248: afbf0018 sw r31,0x0018(r29)
001a524c: 0c06937a jal 0x001a4de8		0x1a4de8 -
001a5250: 00002821 addu r5,r0,r0
001a5254: 00402021 addu r4,r2,r0		r4 is pointer to some SHP data pointer? palette data?
001a5258: 34020080 ori r2,r0,0x0080		Initialise bytes 0, 1, and 2 to 0x80? (80 80 80 RGB?)
001a525c: a0900003 sb r16,0x0003(r4)		stores input 1 in byte 3 (flag? for?)
001a5260: a0820002 sb r2,0x0002(r4)
001a5264: a0820001 sb r2,0x0001(r4)
001a5268: a0820000 sb r2,0x0000(r4)
001a526c: 3c03801c lui r3,0x801c
001a5270: 8c63c0c0 lw r3,-0x3f40(r3)		*0x801bc0c0
001a5274: 3c02801c lui r2,0x801c
001a5278: 8c429274 lw r2,-0x6d8c(r2)		*0x801b9274
001a527c: 02238821 addu r17,r17,r3		P1 + *0x801bc0c0
001a5280: 0051102a slt r2,r2,r17		set if r2 is less than that
001a5284: 3c01801c lui r1,0x801c
001a5288: ac31c0c0 sw r17,-0x3f40(r1)		save new 0x801bc0c0 (old value + input)
001a528c: 10400003 beq r2,r0,0x001a529c	branch if not?
001a5290: 00801021 addu r2,r4,r0
001a5294: 3c01801c lui r1,0x801c
001a5298: ac319274 sw r17,-0x6d8c(r1)		if so, store new value at 0x801b9274
001a529c: 8fbf0018 lw r31,0x0018(r29)
001a52a0: 8fb10014 lw r17,0x0014(r29)
001a52a4: 8fb00010 lw r16,0x0010(r29)
001a52a8: 27bd0020 addiu r29,r29,0x0020
001a52ac: 03e00008 jr r31
001a52b0: 00000000 nop