Difference between revisions of "001adb3c - 001adc20"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
 
  001adb3c: 3c06801c lui r6,0x801c
 
  001adb3c: 3c06801c lui r6,0x801c
  001adb40: 90c6c0d0 lbu r6,-0x3f30(r6)
+
  001adb40: 90c6c0d0 lbu r6,-0x3f30(r6) #0x801bc0d0
 
  001adb44: 00000000 nop
 
  001adb44: 00000000 nop
  001adb48: 30c500ff andi r5,r6,0x00ff
+
  001adb48: 30c500ff andi r5,r6,0x00ff #move to r5
  001adb4c: 10a0002b beq r5,r0,0x001adbfc
+
  001adb4c: 10a0002b beq r5,r0,0x001adbfc #branch if 0
 
  001adb50: 00052040 sll r4,r5,0x01
 
  001adb50: 00052040 sll r4,r5,0x01
 
  001adb54: 00852021 addu r4,r4,r5
 
  001adb54: 00852021 addu r4,r4,r5
 
  001adb58: 00041100 sll r2,r4,0x04
 
  001adb58: 00041100 sll r2,r4,0x04
 
  001adb5c: 00822021 addu r4,r4,r2
 
  001adb5c: 00822021 addu r4,r4,r2
  001adb60: 00042080 sll r4,r4,0x02
+
  001adb60: 00042080 sll r4,r4,0x02 #? * 0xCC
 
  001adb64: 3c01801c lui r1,0x801c
 
  001adb64: 3c01801c lui r1,0x801c
 
  001adb68: 00240821 addu r1,r1,r4
 
  001adb68: 00240821 addu r1,r1,r4
  001adb6c: 90229278 lbu r2,-0x6d88(r1)
+
  001adb6c: 90229278 lbu r2,-0x6d88(r1) #related to attacker/target height mods?
 
  001adb70: 3c01801c lui r1,0x801c
 
  001adb70: 3c01801c lui r1,0x801c
  001adb74: a022c0d0 sb r2,-0x3f30(r1)
+
  001adb74: a022c0d0 sb r2,-0x3f30(r1) #store in 0x801bc0d0
 
  001adb78: 3c01801c lui r1,0x801c
 
  001adb78: 3c01801c lui r1,0x801c
 
  001adb7c: 00240821 addu r1,r1,r4
 
  001adb7c: 00240821 addu r1,r1,r4
  001adb80: 90239278 lbu r3,-0x6d88(r1)
+
  001adb80: 90239278 lbu r3,-0x6d88(r1) #related to ? again
 
  001adb84: 00000000 nop
 
  001adb84: 00000000 nop
 
  001adb88: 00031040 sll r2,r3,0x01
 
  001adb88: 00031040 sll r2,r3,0x01
Line 22: Line 22:
 
  001adb90: 00021900 sll r3,r2,0x04
 
  001adb90: 00021900 sll r3,r2,0x04
 
  001adb94: 00431021 addu r2,r2,r3
 
  001adb94: 00431021 addu r2,r2,r3
  001adb98: 00021080 sll r2,r2,0x02
+
  001adb98: 00021080 sll r2,r2,0x02 #? * 0xCC
 
  001adb9c: 3c01801c lui r1,0x801c
 
  001adb9c: 3c01801c lui r1,0x801c
 
  001adba0: 00220821 addu r1,r1,r2
 
  001adba0: 00220821 addu r1,r1,r2
  001adba4: a0209279 sb r0,-0x6d87(r1)
+
  001adba4: a0209279 sb r0,-0x6d87(r1) #clear byte before
 
  001adba8: 3c03801c lui r3,0x801c
 
  001adba8: 3c03801c lui r3,0x801c
  001adbac: 9063add8 lbu r3,-0x5228(r3)
+
  001adbac: 9063add8 lbu r3,-0x5228(r3) #?
 
  001adbb0: 00000000 nop
 
  001adbb0: 00000000 nop
 
  001adbb4: 00031040 sll r2,r3,0x01
 
  001adbb4: 00031040 sll r2,r3,0x01
Line 33: Line 33:
 
  001adbbc: 00021900 sll r3,r2,0x04
 
  001adbbc: 00021900 sll r3,r2,0x04
 
  001adbc0: 00431021 addu r2,r2,r3
 
  001adbc0: 00431021 addu r2,r2,r3
  001adbc4: 00021080 sll r2,r2,0x02
+
  001adbc4: 00021080 sll r2,r2,0x02 #? * 0xcc
 
  001adbc8: 3c01801c lui r1,0x801c
 
  001adbc8: 3c01801c lui r1,0x801c
 
  001adbcc: 00220821 addu r1,r1,r2
 
  001adbcc: 00220821 addu r1,r1,r2
  001adbd0: a0269279 sb r6,-0x6d87(r1)
+
  001adbd0: a0269279 sb r6,-0x6d87(r1) #
 
  001adbd4: 3c02801c lui r2,0x801c
 
  001adbd4: 3c02801c lui r2,0x801c
  001adbd8: 9042add8 lbu r2,-0x5228(r2)
+
  001adbd8: 9042add8 lbu r2,-0x5228(r2)
 
  001adbdc: 3c01801c lui r1,0x801c
 
  001adbdc: 3c01801c lui r1,0x801c
 
  001adbe0: 00240821 addu r1,r1,r4
 
  001adbe0: 00240821 addu r1,r1,r4
Line 56: Line 56:
 
  001adc18: a420930c sh r0,-0x6cf4(r1)
 
  001adc18: a420930c sh r0,-0x6cf4(r1)
 
  001adc1c: 03e00008 jr r31
 
  001adc1c: 03e00008 jr r31
  001adc20: 00a01021 addu r2,r5,r0
+
  001adc20: 00a01021 addu r2,r5,r0 #return r2 = original 0x801bc0d0

Latest revision as of 05:03, 16 October 2022

001adb3c: 3c06801c lui r6,0x801c
001adb40: 90c6c0d0 lbu r6,-0x3f30(r6)			#0x801bc0d0
001adb44: 00000000 nop
001adb48: 30c500ff andi r5,r6,0x00ff			#move to r5
001adb4c: 10a0002b beq r5,r0,0x001adbfc		#branch if 0
001adb50: 00052040 sll r4,r5,0x01
001adb54: 00852021 addu r4,r4,r5
001adb58: 00041100 sll r2,r4,0x04
001adb5c: 00822021 addu r4,r4,r2
001adb60: 00042080 sll r4,r4,0x02			#? * 0xCC
001adb64: 3c01801c lui r1,0x801c
001adb68: 00240821 addu r1,r1,r4
001adb6c: 90229278 lbu r2,-0x6d88(r1)			#related to attacker/target height mods?
001adb70: 3c01801c lui r1,0x801c
001adb74: a022c0d0 sb r2,-0x3f30(r1)			#store in 0x801bc0d0
001adb78: 3c01801c lui r1,0x801c
001adb7c: 00240821 addu r1,r1,r4
001adb80: 90239278 lbu r3,-0x6d88(r1)			#related to ? again
001adb84: 00000000 nop
001adb88: 00031040 sll r2,r3,0x01
001adb8c: 00431021 addu r2,r2,r3
001adb90: 00021900 sll r3,r2,0x04
001adb94: 00431021 addu r2,r2,r3
001adb98: 00021080 sll r2,r2,0x02			#? * 0xCC
001adb9c: 3c01801c lui r1,0x801c
001adba0: 00220821 addu r1,r1,r2
001adba4: a0209279 sb r0,-0x6d87(r1)			#clear byte before
001adba8: 3c03801c lui r3,0x801c
001adbac: 9063add8 lbu r3,-0x5228(r3)			#?
001adbb0: 00000000 nop
001adbb4: 00031040 sll r2,r3,0x01
001adbb8: 00431021 addu r2,r2,r3
001adbbc: 00021900 sll r3,r2,0x04
001adbc0: 00431021 addu r2,r2,r3
001adbc4: 00021080 sll r2,r2,0x02			#? * 0xcc
001adbc8: 3c01801c lui r1,0x801c
001adbcc: 00220821 addu r1,r1,r2
001adbd0: a0269279 sb r6,-0x6d87(r1)			#
001adbd4: 3c02801c lui r2,0x801c
001adbd8: 9042add8 lbu r2,-0x5228(r2)			
001adbdc: 3c01801c lui r1,0x801c
001adbe0: 00240821 addu r1,r1,r4
001adbe4: a0209279 sb r0,-0x6d87(r1)
001adbe8: 3c01801c lui r1,0x801c
001adbec: 00240821 addu r1,r1,r4
001adbf0: a0229278 sb r2,-0x6d88(r1)
001adbf4: 3c01801c lui r1,0x801c
001adbf8: a026add8 sb r6,-0x5228(r1)
001adbfc: 00051040 sll r2,r5,0x01
001adc00: 00451021 addu r2,r2,r5
001adc04: 00021900 sll r3,r2,0x04
001adc08: 00431021 addu r2,r2,r3
001adc0c: 00021080 sll r2,r2,0x02
001adc10: 3c01801c lui r1,0x801c
001adc14: 00220821 addu r1,r1,r2
001adc18: a420930c sh r0,-0x6cf4(r1)
001adc1c: 03e00008 jr r31
001adc20: 00a01021 addu r2,r5,r0			#return r2 = original 0x801bc0d0