Difference between revisions of "001a9f44 - 001aa004"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 001a9f44: 27bdffe8 addiu r29,r29,0xffe8 001a9f48: 00002021 addu r4,r0,r0 001a9f4c: afbf0010 sw r31,0x0010(r29) 001a9f50: 0c008e95 jal 0x00023a5...")
 
m (filled it with a bunch o numbers. you're welcome. it all seems a bit hardcoded...)
Line 1: Line 1:
 
<font face='Courier New'>
 
<font face='Courier New'>
 
   
 
   
 +
For effects?
 
  001a9f44: 27bdffe8 addiu r29,r29,0xffe8
 
  001a9f44: 27bdffe8 addiu r29,r29,0xffe8
 
  001a9f48: 00002021 addu r4,r0,r0
 
  001a9f48: 00002021 addu r4,r0,r0
 
  001a9f4c: afbf0010 sw r31,0x0010(r29)
 
  001a9f4c: afbf0010 sw r31,0x0010(r29)
  001a9f50: 0c008e95 jal 0x00023a54
+
  001a9f50: 0c008e95 jal 0x00023a54 return r2 = 0x7c00? (pointless, overwritten immediately)
  001a9f54: 340501f0 ori r5,r0,0x01f0
+
  001a9f54: 340501f0 ori r5,r0,0x01f0 r5 = 0x1f0
  001a9f58: 34050001 ori r5,r0,0x0001
+
  001a9f58: 34050001 ori r5,r0,0x0001 r5 = 0x0001
  001a9f5c: 34020001 ori r2,r0,0x0001
+
  001a9f5c: 34020001 ori r2,r0,0x0001 r2 = 0x0001
 
  001a9f60: 3c01801c lui r1,0x801c
 
  001a9f60: 3c01801c lui r1,0x801c
  001a9f64: a42000a6 sh r0,0x00a6(r1)
+
  001a9f64: a42000a6 sh r0,0x00a6(r1) 0x801c00a6 = 0
 
  001a9f68: 3c01801c lui r1,0x801c
 
  001a9f68: 3c01801c lui r1,0x801c
  001a9f6c: a42000a4 sh r0,0x00a4(r1)
+
  001a9f6c: a42000a4 sh r0,0x00a4(r1) 0x801c00a4 = 0
 
  001a9f70: 3c01801c lui r1,0x801c
 
  001a9f70: 3c01801c lui r1,0x801c
  001a9f74: a422f00a sh r2,-0x0ff6(r1)
+
  001a9f74: a422f00a sh r2,-0x0ff6(r1) 0x801bf00a = 0x1
  001a9f78: 000510c0 sll r2,r5,0x03
+
  001a9f78: 000510c0 sll r2,r5,0x03 r2 = 0x0008
  001a9f7c: 00451021 addu r2,r2,r5
+
  001a9f7c: 00451021 addu r2,r2,r5 #r2 = r5 * 0x09
  001a9f80: 00021080 sll r2,r2,0x02
+
  001a9f80: 00021080 sll r2,r2,0x02 |r2 = r5 * 0x24
  001a9f84: 24a4ffff addiu r4,r5,0xffff
+
  001a9f84: 24a4ffff addiu r4,r5,0xffff |r4 = r5 - 1
  001a9f88: 24a30001 addiu r3,r5,0x0001
+
  001a9f88: 24a30001 addiu r3,r5,0x0001 |r3 = r5 + 1
 
  001a9f8c: 3c01801c lui r1,0x801c
 
  001a9f8c: 3c01801c lui r1,0x801c
  001a9f90: 00220821 addu r1,r1,r2
+
  001a9f90: 00220821 addu r1,r1,r2 |some table? 0x801c0000 + r5 * 0x24
  001a9f94: a42500a8 sh r5,0x00a8(r1)
+
  001a9f94: a42500a8 sh r5,0x00a8(r1) |save current r5
  001a9f98: 00602821 addu r5,r3,r0
+
  001a9f98: 00602821 addu r5,r3,r0 |new r5 = r5 + 1
 
  001a9f9c: 3c01801c lui r1,0x801c
 
  001a9f9c: 3c01801c lui r1,0x801c
  001a9fa0: 00220821 addu r1,r1,r2
+
  001a9fa0: 00220821 addu r1,r1,r2 |0x801c0000 + r5 * 0x24
  001a9fa4: a42400a4 sh r4,0x00a4(r1)
+
  001a9fa4: a42400a4 sh r4,0x00a4(r1) |save old r5
 
  001a9fa8: 3c01801c lui r1,0x801c
 
  001a9fa8: 3c01801c lui r1,0x801c
  001a9fac: 00220821 addu r1,r1,r2
+
  001a9fac: 00220821 addu r1,r1,r2 |0x801c0000 + r5 * 0x24
  001a9fb0: a42500a6 sh r5,0x00a6(r1)
+
  001a9fb0: a42500a6 sh r5,0x00a6(r1) |save save new r5
  001a9fb4: 28a20100 slti r2,r5,0x0100
+
  001a9fb4: 28a20100 slti r2,r5,0x0100 |set true if r5 < 0x0100
  001a9fb8: 1440fff0 bne r2,r0,0x001a9f7c
+
  001a9fb8: 1440fff0 bne r2,r0,0x001a9f7c #repeat 0x100 times
  001a9fbc: 000510c0 sll r2,r5,0x03
+
  001a9fbc: 000510c0 sll r2,r5,0x03 r2 = r5 * 0x8
  001a9fc0: 00451021 addu r2,r2,r5
+
  001a9fc0: 00451021 addu r2,r2,r5 r2 = 0x0900
  001a9fc4: 00021080 sll r2,r2,0x02
+
  001a9fc4: 00021080 sll r2,r2,0x02 r2 = 0x2400
  001a9fc8: 24a3ffff addiu r3,r5,0xffff
+
  001a9fc8: 24a3ffff addiu r3,r5,0xffff r3 = 0xff
 
  001a9fcc: 3c01801c lui r1,0x801c
 
  001a9fcc: 3c01801c lui r1,0x801c
  001a9fd0: 00220821 addu r1,r1,r2
+
  001a9fd0: 00220821 addu r1,r1,r2 r1 = 0x801c2400
  001a9fd4: a42300a4 sh r3,0x00a4(r1)
+
  001a9fd4: a42300a4 sh r3,0x00a4(r1) save 0xff to 0x801c24a4
 
  001a9fd8: 3c01801c lui r1,0x801c
 
  001a9fd8: 3c01801c lui r1,0x801c
 
  001a9fdc: 00220821 addu r1,r1,r2
 
  001a9fdc: 00220821 addu r1,r1,r2
  001a9fe0: a42000a6 sh r0,0x00a6(r1)
+
  001a9fe0: a42000a6 sh r0,0x00a6(r1) save 0x00 to 0x801c24a6
 
  001a9fe4: 3c01801c lui r1,0x801c
 
  001a9fe4: 3c01801c lui r1,0x801c
 
  001a9fe8: 00220821 addu r1,r1,r2
 
  001a9fe8: 00220821 addu r1,r1,r2
  001a9fec: a42500a8 sh r5,0x00a8(r1)
+
  001a9fec: a42500a8 sh r5,0x00a8(r1) save 0x100 to 0x801c24a8
 
  001a9ff0: 3c01801c lui r1,0x801c
 
  001a9ff0: 3c01801c lui r1,0x801c
  001a9ff4: a42024da sh r0,0x24da(r1)
+
  001a9ff4: a42024da sh r0,0x24da(r1) store current effect frame as 0?
 
  001a9ff8: 8fbf0010 lw r31,0x0010(r29)
 
  001a9ff8: 8fbf0010 lw r31,0x0010(r29)
 
  001a9ffc: 27bd0018 addiu r29,r29,0x0018
 
  001a9ffc: 27bd0018 addiu r29,r29,0x0018

Revision as of 04:56, 27 November 2021

For effects? 
001a9f44: 27bdffe8 addiu r29,r29,0xffe8
001a9f48: 00002021 addu r4,r0,r0
001a9f4c: afbf0010 sw r31,0x0010(r29)
001a9f50: 0c008e95 jal 0x00023a54			return r2 = 0x7c00? (pointless, overwritten immediately)
001a9f54: 340501f0 ori r5,r0,0x01f0			r5 = 0x1f0
001a9f58: 34050001 ori r5,r0,0x0001			r5 = 0x0001
001a9f5c: 34020001 ori r2,r0,0x0001			r2 = 0x0001
001a9f60: 3c01801c lui r1,0x801c
001a9f64: a42000a6 sh r0,0x00a6(r1)			0x801c00a6 = 0
001a9f68: 3c01801c lui r1,0x801c
001a9f6c: a42000a4 sh r0,0x00a4(r1)			0x801c00a4 = 0
001a9f70: 3c01801c lui r1,0x801c
001a9f74: a422f00a sh r2,-0x0ff6(r1)			0x801bf00a = 0x1
001a9f78: 000510c0 sll r2,r5,0x03			r2 = 0x0008
001a9f7c: 00451021 addu r2,r2,r5			#r2 = r5 * 0x09
001a9f80: 00021080 sll r2,r2,0x02				|r2 = r5 * 0x24
001a9f84: 24a4ffff addiu r4,r5,0xffff				|r4 = r5 - 1
001a9f88: 24a30001 addiu r3,r5,0x0001				|r3 = r5 + 1
001a9f8c: 3c01801c lui r1,0x801c
001a9f90: 00220821 addu r1,r1,r2				|some table? 0x801c0000 + r5 * 0x24
001a9f94: a42500a8 sh r5,0x00a8(r1)				|save current r5
001a9f98: 00602821 addu r5,r3,r0				|new r5 = r5 + 1
001a9f9c: 3c01801c lui r1,0x801c
001a9fa0: 00220821 addu r1,r1,r2				|0x801c0000 + r5 * 0x24
001a9fa4: a42400a4 sh r4,0x00a4(r1)				|save old r5
001a9fa8: 3c01801c lui r1,0x801c
001a9fac: 00220821 addu r1,r1,r2				|0x801c0000 + r5 * 0x24
001a9fb0: a42500a6 sh r5,0x00a6(r1)				|save save new r5
001a9fb4: 28a20100 slti r2,r5,0x0100				|set true if r5 < 0x0100
001a9fb8: 1440fff0 bne r2,r0,0x001a9f7c		#repeat 0x100 times
001a9fbc: 000510c0 sll r2,r5,0x03			r2 = r5 * 0x8
001a9fc0: 00451021 addu r2,r2,r5			r2 = 0x0900
001a9fc4: 00021080 sll r2,r2,0x02			r2 = 0x2400
001a9fc8: 24a3ffff addiu r3,r5,0xffff			r3 = 0xff
001a9fcc: 3c01801c lui r1,0x801c
001a9fd0: 00220821 addu r1,r1,r2			r1 = 0x801c2400
001a9fd4: a42300a4 sh r3,0x00a4(r1)			save 0xff to 0x801c24a4
001a9fd8: 3c01801c lui r1,0x801c
001a9fdc: 00220821 addu r1,r1,r2
001a9fe0: a42000a6 sh r0,0x00a6(r1)			save 0x00 to 0x801c24a6
001a9fe4: 3c01801c lui r1,0x801c
001a9fe8: 00220821 addu r1,r1,r2
001a9fec: a42500a8 sh r5,0x00a8(r1)			save 0x100 to 0x801c24a8
001a9ff0: 3c01801c lui r1,0x801c
001a9ff4: a42024da sh r0,0x24da(r1)			store current effect frame as 0?
001a9ff8: 8fbf0010 lw r31,0x0010(r29)
001a9ffc: 27bd0018 addiu r29,r29,0x0018
001aa000: 03e00008 jr r31
001aa004: 00000000 nop