Difference between revisions of "0007db1c - 0007e300"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m (links)
m
 
(2 intermediate revisions by 2 users not shown)
Line 49: Line 49:
 
  0007dbd4: 0c01ebc2 jal 0x0007af08
 
  0007dbd4: 0c01ebc2 jal 0x0007af08
 
  0007dbd8: 00628821 addu r17,r3,r2
 
  0007dbd8: 00628821 addu r17,r3,r2
  0007dbdc: 02802021 addu r4,r20,r0
+
  0007dbdc: 02802021 addu r4,r20,r0 contains some vector/matrix data?
 
  0007dbe0: 27a50010 addiu r5,r29,0x0010
 
  0007dbe0: 27a50010 addiu r5,r29,0x0010
 
  0007dbe4: 27b00040 addiu r16,r29,0x0040
 
  0007dbe4: 27b00040 addiu r16,r29,0x0040
Line 56: Line 56:
 
  0007dbf0: 8ce74e70 lw r7,0x4e70(r7)
 
  0007dbf0: 8ce74e70 lw r7,0x4e70(r7)
 
  0007dbf4: 34030009 ori r3,r0,0x0009
 
  0007dbf4: 34030009 ori r3,r0,0x0009
  0007dbf8: a2230003 sb r3,0x0003(r17)
+
  0007dbf8: a2230003 sb r3,0x0003(r17) store polygon length as 0x9 words
 
  0007dbfc: 3403002c ori r3,r0,0x002c
 
  0007dbfc: 3403002c ori r3,r0,0x002c
 
  0007dc00: 00021400 sll r2,r2,0x10
 
  0007dc00: 00021400 sll r2,r2,0x10
 
  0007dc04: 00021403 sra r2,r2,0x10
 
  0007dc04: 00021403 sra r2,r2,0x10
  0007dc08: a2230007 sb r3,0x0007(r17)
+
  0007dc08: a2230007 sb r3,0x0007(r17) store polygon type = 0x2c (polyt4)
 
  0007dc0c: 00021880 sll r3,r2,0x02
 
  0007dc0c: 00021880 sll r3,r2,0x02
 
  0007dc10: 00621821 addu r3,r3,r2
 
  0007dc10: 00621821 addu r3,r3,r2
 
  0007dc14: 000318c0 sll r3,r3,0x03
 
  0007dc14: 000318c0 sll r3,r3,0x03
  0007dc18: 0c00755e jal 0x0001d578
+
  0007dc18: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
 
  0007dc1c: 00679021 addu r18,r3,r7
 
  0007dc1c: 00679021 addu r18,r3,r7
 
  0007dc20: 02a02021 addu r4,r21,r0
 
  0007dc20: 02a02021 addu r4,r21,r0
 
  0007dc24: 97a20010 lhu r2,0x0010(r29)
 
  0007dc24: 97a20010 lhu r2,0x0010(r29)
 
  0007dc28: 27a50010 addiu r5,r29,0x0010
 
  0007dc28: 27a50010 addiu r5,r29,0x0010
  0007dc2c: a6220008 sh r2,0x0008(r17)
+
  0007dc2c: a6220008 sh r2,0x0008(r17) store polygon X coordinate? just a corner?
 
  0007dc30: 97a20014 lhu r2,0x0014(r29)
 
  0007dc30: 97a20014 lhu r2,0x0014(r29)
 
  0007dc34: 02003021 addu r6,r16,r0
 
  0007dc34: 02003021 addu r6,r16,r0
  0007dc38: 0c00755e jal 0x0001d578
+
  0007dc38: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
  0007dc3c: a622000a sh r2,0x000a(r17)
+
  0007dc3c: a622000a sh r2,0x000a(r17) store polygon z coordinate? just a corner?
 
  0007dc40: 03c02021 addu r4,r30,r0
 
  0007dc40: 03c02021 addu r4,r30,r0
 
  0007dc44: 97a20010 lhu r2,0x0010(r29)
 
  0007dc44: 97a20010 lhu r2,0x0010(r29)
Line 80: Line 80:
 
  0007dc50: 97a20014 lhu r2,0x0014(r29)
 
  0007dc50: 97a20014 lhu r2,0x0014(r29)
 
  0007dc54: 02003021 addu r6,r16,r0
 
  0007dc54: 02003021 addu r6,r16,r0
  0007dc58: 0c00755e jal 0x0001d578
+
  0007dc58: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
 
  0007dc5c: a6220012 sh r2,0x0012(r17)
 
  0007dc5c: a6220012 sh r2,0x0012(r17)
 
  0007dc60: 8fa40084 lw r4,0x0084(r29)
 
  0007dc60: 8fa40084 lw r4,0x0084(r29)
Line 88: Line 88:
 
  0007dc70: 97a20014 lhu r2,0x0014(r29)
 
  0007dc70: 97a20014 lhu r2,0x0014(r29)
 
  0007dc74: 02003021 addu r6,r16,r0
 
  0007dc74: 02003021 addu r6,r16,r0
  0007dc78: 0c00755e jal 0x0001d578
+
  0007dc78: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
 
  0007dc7c: a622001a sh r2,0x001a(r17)
 
  0007dc7c: a622001a sh r2,0x001a(r17)
 
  0007dc80: 00162100 sll r4,r22,0x04
 
  0007dc80: 00162100 sll r4,r22,0x04
Line 94: Line 94:
 
  0007dc88: 97a20010 lhu r2,0x0010(r29)
 
  0007dc88: 97a20010 lhu r2,0x0010(r29)
 
  0007dc8c: 340501e2 ori r5,r0,0x01e2
 
  0007dc8c: 340501e2 ori r5,r0,0x01e2
  0007dc90: a6220020 sh r2,0x0020(r17)
+
  0007dc90: a6220020 sh r2,0x0020(r17) store polygon data 4 times (one for each corner of tile cursor.)
  0007dc94: 92220007 lbu r2,0x0007(r17)
+
  0007dc94: 92220007 lbu r2,0x0007(r17) load polygon type
 
  0007dc98: 97a30014 lhu r3,0x0014(r29)
 
  0007dc98: 97a30014 lhu r3,0x0014(r29)
  0007dc9c: 34420002 ori r2,r2,0x0002
+
  0007dc9c: 34420002 ori r2,r2,0x0002 OR 0x2
  0007dca0: a2220007 sb r2,0x0007(r17)
+
  0007dca0: a2220007 sb r2,0x0007(r17) store polygon type again
 
  0007dca4: 3402003f ori r2,r0,0x003f
 
  0007dca4: 3402003f ori r2,r0,0x003f
  0007dca8: a6220016 sh r2,0x0016(r17)
+
  0007dca8: a6220016 sh r2,0x0016(r17) dramatically corrupts texture if wrong
 
  0007dcac: 0c008e95 jal 0x00023a54
 
  0007dcac: 0c008e95 jal 0x00023a54
 
  0007dcb0: a6230022 sh r3,0x0022(r17)
 
  0007dcb0: a6230022 sh r3,0x0022(r17)
Line 106: Line 106:
 
  0007dcb8: 02203021 addu r6,r17,r0
 
  0007dcb8: 02203021 addu r6,r17,r0
 
  0007dcbc: 26280020 addiu r8,r17,0x0020
 
  0007dcbc: 26280020 addiu r8,r17,0x0020
  0007dcc0: a622000e sh r2,0x000e(r17)
+
  0007dcc0: a622000e sh r2,0x000e(r17) store tile cursor VRAM palette ID
 
  0007dcc4: 34020080 ori r2,r0,0x0080
 
  0007dcc4: 34020080 ori r2,r0,0x0080
 
  0007dcc8: a2220006 sb r2,0x0006(r17)
 
  0007dcc8: a2220006 sb r2,0x0006(r17)
 
  0007dccc: a2220005 sb r2,0x0005(r17)
 
  0007dccc: a2220005 sb r2,0x0005(r17)
  0007dcd0: a2220004 sb r2,0x0004(r17)
+
  0007dcd0: a2220004 sb r2,0x0004(r17) Store RGB for tile cursor to 0x80 all round
 
  0007dcd4: 3402000d ori r2,r0,0x000d
 
  0007dcd4: 3402000d ori r2,r0,0x000d
 
  0007dcd8: a2220024 sb r2,0x0024(r17)
 
  0007dcd8: a2220024 sb r2,0x0024(r17)
  0007dcdc: a2220014 sb r2,0x0014(r17)
+
  0007dcdc: a2220014 sb r2,0x0014(r17) store width of tile cursor load location (from frame.bin) to 0x0d
 
  0007dce0: 340200a0 ori r2,r0,0x00a0
 
  0007dce0: 340200a0 ori r2,r0,0x00a0
 
  0007dce4: a2220015 sb r2,0x0015(r17)
 
  0007dce4: a2220015 sb r2,0x0015(r17)
  0007dce8: a222000d sb r2,0x000d(r17)
+
  0007dce8: a222000d sb r2,0x000d(r17) stretch tile cursor east to 0xa0
 
  0007dcec: 340200ad ori r2,r0,0x00ad
 
  0007dcec: 340200ad ori r2,r0,0x00ad
 
  0007dcf0: a220001c sb r0,0x001c(r17)
 
  0007dcf0: a220001c sb r0,0x001c(r17)
 
  0007dcf4: a220000c sb r0,0x000c(r17)
 
  0007dcf4: a220000c sb r0,0x000c(r17)
 
  0007dcf8: a2220025 sb r2,0x0025(r17)
 
  0007dcf8: a2220025 sb r2,0x0025(r17)
  0007dcfc: a222001d sb r2,0x001d(r17)
+
  0007dcfc: a222001d sb r2,0x001d(r17) stretch tile cursor west to 0xad
 
  0007dd00: 8cc20000 lw r2,0x0000(r6)
 
  0007dd00: 8cc20000 lw r2,0x0000(r6)
 
  0007dd04: 8cc30004 lw r3,0x0004(r6)
 
  0007dd04: 8cc30004 lw r3,0x0004(r6)
Line 140: Line 140:
 
  0007dd40: 340501e2 ori r5,r0,0x01e2
 
  0007dd40: 340501e2 ori r5,r0,0x01e2
 
  0007dd44: 3402001f ori r2,r0,0x001f
 
  0007dd44: 3402001f ori r2,r0,0x001f
  0007dd48: 0c008e95 jal 0x00023a54
+
  0007dd48: 0c008e95 jal 0x00023a54 gets some VRAM palette ID?
 
  0007dd4c: a6420016 sh r2,0x0016(r18)
 
  0007dd4c: a6420016 sh r2,0x0016(r18)
  0007dd50: a642000e sh r2,0x000e(r18)
+
  0007dd50: a642000e sh r2,0x000e(r18) store VRAM palette for?
 
  0007dd54: 3402000c ori r2,r0,0x000c
 
  0007dd54: 3402000c ori r2,r0,0x000c
 
  0007dd58: a242001c sb r2,0x001c(r18)
 
  0007dd58: a242001c sb r2,0x001c(r18)
 
  0007dd5c: a242000c sb r2,0x000c(r18)
 
  0007dd5c: a242000c sb r2,0x000c(r18)
 
  0007dd60: a2420024 sb r2,0x0024(r18)
 
  0007dd60: a2420024 sb r2,0x0024(r18)
  0007dd64: a2420014 sb r2,0x0014(r18)
+
  0007dd64: a2420014 sb r2,0x0014(r18) might be some sort of palette mod for tile cursor?
 
  0007dd68: 340200a0 ori r2,r0,0x00a0
 
  0007dd68: 340200a0 ori r2,r0,0x00a0
 
  0007dd6c: a2420015 sb r2,0x0015(r18)
 
  0007dd6c: a2420015 sb r2,0x0015(r18)
Line 219: Line 219:
 
  0007de7c: 000318c0 sll r3,r3,0x03
 
  0007de7c: 000318c0 sll r3,r3,0x03
 
  0007de80: a2470003 sb r7,0x0003(r18)
 
  0007de80: a2470003 sb r7,0x0003(r18)
  0007de84: 0c00755e jal 0x0001d578
+
  0007de84: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
 
  0007de88: 0068a021 addu r20,r3,r8
 
  0007de88: 0068a021 addu r20,r3,r8
 
  0007de8c: 02a02021 addu r4,r21,r0
 
  0007de8c: 02a02021 addu r4,r21,r0
Line 227: Line 227:
 
  0007de9c: 97a20014 lhu r2,0x0014(r29)
 
  0007de9c: 97a20014 lhu r2,0x0014(r29)
 
  0007dea0: 02003021 addu r6,r16,r0
 
  0007dea0: 02003021 addu r6,r16,r0
  0007dea4: 0c00755e jal 0x0001d578
+
  0007dea4: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
 
  0007dea8: a622000a sh r2,0x000a(r17)
 
  0007dea8: a622000a sh r2,0x000a(r17)
 
  0007deac: 03c02021 addu r4,r30,r0
 
  0007deac: 03c02021 addu r4,r30,r0
Line 237: Line 237:
 
  0007dec4: 02003021 addu r6,r16,r0
 
  0007dec4: 02003021 addu r6,r16,r0
 
  0007dec8: a642000a sh r2,0x000a(r18)
 
  0007dec8: a642000a sh r2,0x000a(r18)
  0007decc: 0c00755e jal 0x0001d578
+
  0007decc: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
 
  0007ded0: a6220012 sh r2,0x0012(r17)
 
  0007ded0: a6220012 sh r2,0x0012(r17)
 
  0007ded4: 8fa40084 lw r4,0x0084(r29)
 
  0007ded4: 8fa40084 lw r4,0x0084(r29)
Line 247: Line 247:
 
  0007deec: 02003021 addu r6,r16,r0
 
  0007deec: 02003021 addu r6,r16,r0
 
  0007def0: a642001a sh r2,0x001a(r18)
 
  0007def0: a642001a sh r2,0x001a(r18)
  0007def4: 0c00755e jal 0x0001d578
+
  0007def4: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
 
  0007def8: a622001a sh r2,0x001a(r17)
 
  0007def8: a622001a sh r2,0x001a(r17)
 
  0007defc: 97a20010 lhu r2,0x0010(r29)
 
  0007defc: 97a20010 lhu r2,0x0010(r29)
Line 329: Line 329:
 
  0007e034: 000318c0 sll r3,r3,0x03
 
  0007e034: 000318c0 sll r3,r3,0x03
 
  0007e038: a2470003 sb r7,0x0003(r18)
 
  0007e038: a2470003 sb r7,0x0003(r18)
  0007e03c: 0c00755e jal 0x0001d578
+
  0007e03c: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
 
  0007e040: 0068a021 addu r20,r3,r8
 
  0007e040: 0068a021 addu r20,r3,r8
 
  0007e044: 02a02021 addu r4,r21,r0
 
  0007e044: 02a02021 addu r4,r21,r0
Line 339: Line 339:
 
  0007e05c: 02003021 addu r6,r16,r0
 
  0007e05c: 02003021 addu r6,r16,r0
 
  0007e060: a642000a sh r2,0x000a(r18)
 
  0007e060: a642000a sh r2,0x000a(r18)
  0007e064: 0c00755e jal 0x0001d578
+
  0007e064: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
 
  0007e068: a622000a sh r2,0x000a(r17)
 
  0007e068: a622000a sh r2,0x000a(r17)
 
  0007e06c: 03c02021 addu r4,r30,r0
 
  0007e06c: 03c02021 addu r4,r30,r0
Line 347: Line 347:
 
  0007e07c: 97a20014 lhu r2,0x0014(r29)
 
  0007e07c: 97a20014 lhu r2,0x0014(r29)
 
  0007e080: 02003021 addu r6,r16,r0
 
  0007e080: 02003021 addu r6,r16,r0
  0007e084: 0c00755e jal 0x0001d578
+
  0007e084: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
 
  0007e088: a6220012 sh r2,0x0012(r17)
 
  0007e088: a6220012 sh r2,0x0012(r17)
 
  0007e08c: 8fa40084 lw r4,0x0084(r29)
 
  0007e08c: 8fa40084 lw r4,0x0084(r29)
Line 355: Line 355:
 
  0007e09c: 97a20014 lhu r2,0x0014(r29)
 
  0007e09c: 97a20014 lhu r2,0x0014(r29)
 
  0007e0a0: 02003021 addu r6,r16,r0
 
  0007e0a0: 02003021 addu r6,r16,r0
  0007e0a4: 0c00755e jal 0x0001d578
+
  0007e0a4: 0c00755e jal 0x0001d578                     [[Get_vector_from_GTE]]
 
  0007e0a8: a642001a sh r2,0x001a(r18)
 
  0007e0a8: a642001a sh r2,0x001a(r18)
 
  0007e0ac: 97a20010 lhu r2,0x0010(r29)
 
  0007e0ac: 97a20010 lhu r2,0x0010(r29)

Latest revision as of 05:04, 7 June 2023

0007db1c: 27bdff90 addiu r29,r29,0xff90
0007db20: afbe0068 sw r30,0x0068(r29)
0007db24: 8fbe0080 lw r30,0x0080(r29)
0007db28: afb60060 sw r22,0x0060(r29)
0007db2c: 0080b021 addu r22,r4,r0
0007db30: afb1004c sw r17,0x004c(r29)
0007db34: 00a08821 addu r17,r5,r0
0007db38: afb40058 sw r20,0x0058(r29)
0007db3c: 00c0a021 addu r20,r6,r0
0007db40: afb5005c sw r21,0x005c(r29)
0007db44: 00e0a821 addu r21,r7,r0
0007db48: afb00048 sw r16,0x0048(r29)
0007db4c: 3c10800a lui r16,0x800a
0007db50: 26108a24 addiu r16,r16,0x8a24
0007db54: afb70064 sw r23,0x0064(r29)
0007db58: 8fb70088 lw r23,0x0088(r29)
0007db5c: 02002021 addu r4,r16,r0
0007db60: afbf006c sw r31,0x006c(r29)
0007db64: afb30054 sw r19,0x0054(r29)
0007db68: 0c00742a jal 0x0001d0a8                   Store_Rotation_matrix_elements_to_GTE
0007db6c: afb20050 sw r18,0x0050(r29)
0007db70: 0c00744e jal 0x0001d138                   Store_Translation_Vectors_to_GTE 
0007db74: 02002021 addu r4,r16,r0
0007db78: 34020001 ori r2,r0,0x0001
0007db7c: 12220093 beq r17,r2,0x0007ddcc
0007db80: 2a220002 slti r2,r17,0x0002
0007db84: 10400005 beq r2,r0,0x0007db9c
0007db88: 00000000 nop
0007db8c: 12200008 beq r17,r0,0x0007dbb0
0007db90: 00000000 nop
0007db94: 0801f8b4 j 0x0007e2d0
0007db98: 00000000 nop
0007db9c: 34020002 ori r2,r0,0x0002
0007dba0: 122200f8 beq r17,r2,0x0007df84
0007dba4: 00000000 nop
0007dba8: 0801f8b4 j 0x0007e2d0
0007dbac: 00000000 nop
0007dbb0: 0c01ebc2 jal 0x0007af08
0007dbb4: 00000000 nop
0007dbb8: 00021400 sll r2,r2,0x10
0007dbbc: 00021403 sra r2,r2,0x10
0007dbc0: 00021880 sll r3,r2,0x02
0007dbc4: 00621821 addu r3,r3,r2
0007dbc8: 3c02800e lui r2,0x800e
0007dbcc: 8c424e70 lw r2,0x4e70(r2)
0007dbd0: 000318c0 sll r3,r3,0x03
0007dbd4: 0c01ebc2 jal 0x0007af08
0007dbd8: 00628821 addu r17,r3,r2
0007dbdc: 02802021 addu r4,r20,r0			contains some vector/matrix data?
0007dbe0: 27a50010 addiu r5,r29,0x0010
0007dbe4: 27b00040 addiu r16,r29,0x0040
0007dbe8: 02003021 addu r6,r16,r0
0007dbec: 3c07800e lui r7,0x800e
0007dbf0: 8ce74e70 lw r7,0x4e70(r7)
0007dbf4: 34030009 ori r3,r0,0x0009
0007dbf8: a2230003 sb r3,0x0003(r17)			store polygon length as 0x9 words
0007dbfc: 3403002c ori r3,r0,0x002c
0007dc00: 00021400 sll r2,r2,0x10
0007dc04: 00021403 sra r2,r2,0x10
0007dc08: a2230007 sb r3,0x0007(r17)			store polygon type = 0x2c (polyt4)
0007dc0c: 00021880 sll r3,r2,0x02
0007dc10: 00621821 addu r3,r3,r2
0007dc14: 000318c0 sll r3,r3,0x03
0007dc18: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007dc1c: 00679021 addu r18,r3,r7
0007dc20: 02a02021 addu r4,r21,r0
0007dc24: 97a20010 lhu r2,0x0010(r29)
0007dc28: 27a50010 addiu r5,r29,0x0010
0007dc2c: a6220008 sh r2,0x0008(r17)			store polygon X coordinate? just a corner?
0007dc30: 97a20014 lhu r2,0x0014(r29)
0007dc34: 02003021 addu r6,r16,r0
0007dc38: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007dc3c: a622000a sh r2,0x000a(r17)			store polygon z coordinate? just a corner?
0007dc40: 03c02021 addu r4,r30,r0
0007dc44: 97a20010 lhu r2,0x0010(r29)
0007dc48: 27a50010 addiu r5,r29,0x0010
0007dc4c: a6220010 sh r2,0x0010(r17)
0007dc50: 97a20014 lhu r2,0x0014(r29)
0007dc54: 02003021 addu r6,r16,r0
0007dc58: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007dc5c: a6220012 sh r2,0x0012(r17)
0007dc60: 8fa40084 lw r4,0x0084(r29)
0007dc64: 97a20010 lhu r2,0x0010(r29)
0007dc68: 27a50010 addiu r5,r29,0x0010
0007dc6c: a6220018 sh r2,0x0018(r17)
0007dc70: 97a20014 lhu r2,0x0014(r29)
0007dc74: 02003021 addu r6,r16,r0
0007dc78: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007dc7c: a622001a sh r2,0x001a(r17)
0007dc80: 00162100 sll r4,r22,0x04
0007dc84: 24840010 addiu r4,r4,0x0010
0007dc88: 97a20010 lhu r2,0x0010(r29)
0007dc8c: 340501e2 ori r5,r0,0x01e2
0007dc90: a6220020 sh r2,0x0020(r17)			store polygon data 4 times (one for each corner of tile cursor.)
0007dc94: 92220007 lbu r2,0x0007(r17)			load polygon type
0007dc98: 97a30014 lhu r3,0x0014(r29)
0007dc9c: 34420002 ori r2,r2,0x0002			OR 0x2
0007dca0: a2220007 sb r2,0x0007(r17)			store polygon type again
0007dca4: 3402003f ori r2,r0,0x003f
0007dca8: a6220016 sh r2,0x0016(r17)			dramatically corrupts texture if wrong
0007dcac: 0c008e95 jal 0x00023a54
0007dcb0: a6230022 sh r3,0x0022(r17)
0007dcb4: 02403821 addu r7,r18,r0
0007dcb8: 02203021 addu r6,r17,r0
0007dcbc: 26280020 addiu r8,r17,0x0020
0007dcc0: a622000e sh r2,0x000e(r17)			store tile cursor VRAM palette ID
0007dcc4: 34020080 ori r2,r0,0x0080
0007dcc8: a2220006 sb r2,0x0006(r17)
0007dccc: a2220005 sb r2,0x0005(r17)
0007dcd0: a2220004 sb r2,0x0004(r17)			Store RGB for tile cursor to 0x80 all round
0007dcd4: 3402000d ori r2,r0,0x000d
0007dcd8: a2220024 sb r2,0x0024(r17)
0007dcdc: a2220014 sb r2,0x0014(r17)			store width of tile cursor load location (from frame.bin) to 0x0d
0007dce0: 340200a0 ori r2,r0,0x00a0
0007dce4: a2220015 sb r2,0x0015(r17)
0007dce8: a222000d sb r2,0x000d(r17)			stretch tile cursor east to 0xa0
0007dcec: 340200ad ori r2,r0,0x00ad
0007dcf0: a220001c sb r0,0x001c(r17)
0007dcf4: a220000c sb r0,0x000c(r17)
0007dcf8: a2220025 sb r2,0x0025(r17)
0007dcfc: a222001d sb r2,0x001d(r17)			stretch tile cursor west to 0xad
0007dd00: 8cc20000 lw r2,0x0000(r6)
0007dd04: 8cc30004 lw r3,0x0004(r6)
0007dd08: 8cc40008 lw r4,0x0008(r6)
0007dd0c: 8cc5000c lw r5,0x000c(r6)
0007dd10: ace20000 sw r2,0x0000(r7)
0007dd14: ace30004 sw r3,0x0004(r7)
0007dd18: ace40008 sw r4,0x0008(r7)
0007dd1c: ace5000c sw r5,0x000c(r7)
0007dd20: 24c60010 addiu r6,r6,0x0010
0007dd24: 14c8fff6 bne r6,r8,0x0007dd00
0007dd28: 24e70010 addiu r7,r7,0x0010
0007dd2c: 8cc20000 lw r2,0x0000(r6)
0007dd30: 8cc30004 lw r3,0x0004(r6)
0007dd34: ace20000 sw r2,0x0000(r7)
0007dd38: ace30004 sw r3,0x0004(r7)
0007dd3c: 34040050 ori r4,r0,0x0050
0007dd40: 340501e2 ori r5,r0,0x01e2
0007dd44: 3402001f ori r2,r0,0x001f
0007dd48: 0c008e95 jal 0x00023a54			gets some VRAM palette ID?
0007dd4c: a6420016 sh r2,0x0016(r18)
0007dd50: a642000e sh r2,0x000e(r18)			store VRAM palette for?
0007dd54: 3402000c ori r2,r0,0x000c
0007dd58: a242001c sb r2,0x001c(r18)
0007dd5c: a242000c sb r2,0x000c(r18)
0007dd60: a2420024 sb r2,0x0024(r18)
0007dd64: a2420014 sb r2,0x0014(r18)			might be some sort of palette mod for tile cursor?
0007dd68: 340200a0 ori r2,r0,0x00a0
0007dd6c: a2420015 sb r2,0x0015(r18)
0007dd70: a242000d sb r2,0x000d(r18)
0007dd74: a2420025 sb r2,0x0025(r18)
0007dd78: a242001d sb r2,0x001d(r18)
0007dd7c: 8624000a lh r4,0x000a(r17)
0007dd80: 86220008 lh r2,0x0008(r17)
0007dd84: 86250012 lh r5,0x0012(r17)
0007dd88: 8626001a lh r6,0x001a(r17)
0007dd8c: 00042400 sll r4,r4,0x10
0007dd90: 00822021 addu r4,r4,r2
0007dd94: 86220010 lh r2,0x0010(r17)
0007dd98: 00052c00 sll r5,r5,0x10
0007dd9c: 00a22821 addu r5,r5,r2
0007dda0: 86220018 lh r2,0x0018(r17)
0007dda4: 00063400 sll r6,r6,0x10
0007dda8: 0c00756a jal 0x0001d5a8
0007ddac: 00c23021 addu r6,r6,r2
0007ddb0: 04400147 bltz r2,0x0007e2d0
0007ddb4: 02e02021 addu r4,r23,r0
0007ddb8: 0c008eed jal 0x00023bb4
0007ddbc: 02202821 addu r5,r17,r0
0007ddc0: 02e02021 addu r4,r23,r0
0007ddc4: 0801f8b2 j 0x0007e2c8
0007ddc8: 02402821 addu r5,r18,r0
0007ddcc: 0c01ebc2 jal 0x0007af08
0007ddd0: 00000000 nop
0007ddd4: 00021400 sll r2,r2,0x10
0007ddd8: 00021403 sra r2,r2,0x10
0007dddc: 00021880 sll r3,r2,0x02
0007dde0: 00621821 addu r3,r3,r2
0007dde4: 3c02800e lui r2,0x800e
0007dde8: 8c424e70 lw r2,0x4e70(r2)
0007ddec: 000318c0 sll r3,r3,0x03
0007ddf0: 0c01ebc2 jal 0x0007af08
0007ddf4: 00628821 addu r17,r3,r2
0007ddf8: 00021400 sll r2,r2,0x10
0007ddfc: 00021403 sra r2,r2,0x10
0007de00: 00021880 sll r3,r2,0x02
0007de04: 00621821 addu r3,r3,r2
0007de08: 3c02800e lui r2,0x800e
0007de0c: 8c424e70 lw r2,0x4e70(r2)
0007de10: 000318c0 sll r3,r3,0x03
0007de14: 0c01ebc2 jal 0x0007af08
0007de18: 00629021 addu r18,r3,r2
0007de1c: 00021400 sll r2,r2,0x10
0007de20: 00021403 sra r2,r2,0x10
0007de24: 00021880 sll r3,r2,0x02
0007de28: 00621821 addu r3,r3,r2
0007de2c: 3c02800e lui r2,0x800e
0007de30: 8c424e70 lw r2,0x4e70(r2)
0007de34: 000318c0 sll r3,r3,0x03
0007de38: 0c01ebc2 jal 0x0007af08
0007de3c: 00629821 addu r19,r3,r2
0007de40: 02802021 addu r4,r20,r0
0007de44: 27a50010 addiu r5,r29,0x0010
0007de48: 27b00040 addiu r16,r29,0x0040
0007de4c: 02003021 addu r6,r16,r0
0007de50: 34070007 ori r7,r0,0x0007
0007de54: 34030024 ori r3,r0,0x0024
0007de58: 00021400 sll r2,r2,0x10
0007de5c: 3c08800e lui r8,0x800e
0007de60: 8d084e70 lw r8,0x4e70(r8)
0007de64: 00021403 sra r2,r2,0x10
0007de68: a2270003 sb r7,0x0003(r17)
0007de6c: a2230007 sb r3,0x0007(r17)
0007de70: a2430007 sb r3,0x0007(r18)
0007de74: 00021880 sll r3,r2,0x02
0007de78: 00621821 addu r3,r3,r2
0007de7c: 000318c0 sll r3,r3,0x03
0007de80: a2470003 sb r7,0x0003(r18)
0007de84: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007de88: 0068a021 addu r20,r3,r8
0007de8c: 02a02021 addu r4,r21,r0
0007de90: 97a20010 lhu r2,0x0010(r29)
0007de94: 27a50010 addiu r5,r29,0x0010
0007de98: a6220008 sh r2,0x0008(r17)
0007de9c: 97a20014 lhu r2,0x0014(r29)
0007dea0: 02003021 addu r6,r16,r0
0007dea4: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007dea8: a622000a sh r2,0x000a(r17)
0007deac: 03c02021 addu r4,r30,r0
0007deb0: 97a20010 lhu r2,0x0010(r29)
0007deb4: 27a50010 addiu r5,r29,0x0010
0007deb8: a6420008 sh r2,0x0008(r18)
0007debc: a6220010 sh r2,0x0010(r17)
0007dec0: 97a20014 lhu r2,0x0014(r29)
0007dec4: 02003021 addu r6,r16,r0
0007dec8: a642000a sh r2,0x000a(r18)
0007decc: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007ded0: a6220012 sh r2,0x0012(r17)
0007ded4: 8fa40084 lw r4,0x0084(r29)
0007ded8: 97a20010 lhu r2,0x0010(r29)
0007dedc: 27a50010 addiu r5,r29,0x0010
0007dee0: a6420018 sh r2,0x0018(r18)
0007dee4: a6220018 sh r2,0x0018(r17)
0007dee8: 97a20014 lhu r2,0x0014(r29)
0007deec: 02003021 addu r6,r16,r0
0007def0: a642001a sh r2,0x001a(r18)
0007def4: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007def8: a622001a sh r2,0x001a(r17)
0007defc: 97a20010 lhu r2,0x0010(r29)
0007df00: 00162100 sll r4,r22,0x04
0007df04: a6420010 sh r2,0x0010(r18)
0007df08: 97a20014 lhu r2,0x0014(r29)
0007df0c: 24840010 addiu r4,r4,0x0010
0007df10: a6420012 sh r2,0x0012(r18)
0007df14: 92220007 lbu r2,0x0007(r17)
0007df18: 340501e2 ori r5,r0,0x01e2
0007df1c: 34420002 ori r2,r2,0x0002
0007df20: a2220007 sb r2,0x0007(r17)
0007df24: 92420007 lbu r2,0x0007(r18)
0007df28: 3403003f ori r3,r0,0x003f
0007df2c: a6430016 sh r3,0x0016(r18)
0007df30: 34420002 ori r2,r2,0x0002
0007df34: a2420007 sb r2,0x0007(r18)
0007df38: 0c008e95 jal 0x00023a54
0007df3c: a6230016 sh r3,0x0016(r17)
0007df40: a642000e sh r2,0x000e(r18)
0007df44: a622000e sh r2,0x000e(r17)
0007df48: 34020080 ori r2,r0,0x0080
0007df4c: a2420006 sb r2,0x0006(r18)
0007df50: a2420005 sb r2,0x0005(r18)
0007df54: a2420004 sb r2,0x0004(r18)
0007df58: a2220006 sb r2,0x0006(r17)
0007df5c: a2220005 sb r2,0x0005(r17)
0007df60: a2220004 sb r2,0x0004(r17)
0007df64: 3402000d ori r2,r0,0x000d
0007df68: 341000a0 ori r16,r0,0x00a0
0007df6c: a240001c sb r0,0x001c(r18)
0007df70: a220001c sb r0,0x001c(r17)
0007df74: a220000c sb r0,0x000c(r17)
0007df78: a2420014 sb r2,0x0014(r18)
0007df7c: 0801f84e j 0x0007e138
0007df80: a242000c sb r2,0x000c(r18)
0007df84: 0c01ebc2 jal 0x0007af08
0007df88: 00000000 nop
0007df8c: 00021400 sll r2,r2,0x10
0007df90: 00021403 sra r2,r2,0x10
0007df94: 00021880 sll r3,r2,0x02
0007df98: 00621821 addu r3,r3,r2
0007df9c: 3c02800e lui r2,0x800e
0007dfa0: 8c424e70 lw r2,0x4e70(r2)
0007dfa4: 000318c0 sll r3,r3,0x03
0007dfa8: 0c01ebc2 jal 0x0007af08
0007dfac: 00628821 addu r17,r3,r2
0007dfb0: 00021400 sll r2,r2,0x10
0007dfb4: 00021403 sra r2,r2,0x10
0007dfb8: 00021880 sll r3,r2,0x02
0007dfbc: 00621821 addu r3,r3,r2
0007dfc0: 3c02800e lui r2,0x800e
0007dfc4: 8c424e70 lw r2,0x4e70(r2)
0007dfc8: 000318c0 sll r3,r3,0x03
0007dfcc: 0c01ebc2 jal 0x0007af08
0007dfd0: 00629021 addu r18,r3,r2
0007dfd4: 00021400 sll r2,r2,0x10
0007dfd8: 00021403 sra r2,r2,0x10
0007dfdc: 00021880 sll r3,r2,0x02
0007dfe0: 00621821 addu r3,r3,r2
0007dfe4: 3c02800e lui r2,0x800e
0007dfe8: 8c424e70 lw r2,0x4e70(r2)
0007dfec: 000318c0 sll r3,r3,0x03
0007dff0: 0c01ebc2 jal 0x0007af08
0007dff4: 00629821 addu r19,r3,r2
0007dff8: 02802021 addu r4,r20,r0
0007dffc: 27a50010 addiu r5,r29,0x0010
0007e000: 27b00040 addiu r16,r29,0x0040
0007e004: 02003021 addu r6,r16,r0
0007e008: 34070007 ori r7,r0,0x0007
0007e00c: 34030024 ori r3,r0,0x0024
0007e010: 00021400 sll r2,r2,0x10
0007e014: 3c08800e lui r8,0x800e
0007e018: 8d084e70 lw r8,0x4e70(r8)
0007e01c: 00021403 sra r2,r2,0x10
0007e020: a2270003 sb r7,0x0003(r17)
0007e024: a2230007 sb r3,0x0007(r17)
0007e028: a2430007 sb r3,0x0007(r18)
0007e02c: 00021880 sll r3,r2,0x02
0007e030: 00621821 addu r3,r3,r2
0007e034: 000318c0 sll r3,r3,0x03
0007e038: a2470003 sb r7,0x0003(r18)
0007e03c: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007e040: 0068a021 addu r20,r3,r8
0007e044: 02a02021 addu r4,r21,r0
0007e048: 97a20010 lhu r2,0x0010(r29)
0007e04c: 27a50010 addiu r5,r29,0x0010
0007e050: a6420008 sh r2,0x0008(r18)
0007e054: a6220008 sh r2,0x0008(r17)
0007e058: 97a20014 lhu r2,0x0014(r29)
0007e05c: 02003021 addu r6,r16,r0
0007e060: a642000a sh r2,0x000a(r18)
0007e064: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007e068: a622000a sh r2,0x000a(r17)
0007e06c: 03c02021 addu r4,r30,r0
0007e070: 97a20010 lhu r2,0x0010(r29)
0007e074: 27a50010 addiu r5,r29,0x0010
0007e078: a6220010 sh r2,0x0010(r17)
0007e07c: 97a20014 lhu r2,0x0014(r29)
0007e080: 02003021 addu r6,r16,r0
0007e084: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007e088: a6220012 sh r2,0x0012(r17)
0007e08c: 8fa40084 lw r4,0x0084(r29)
0007e090: 97a20010 lhu r2,0x0010(r29)
0007e094: 27a50010 addiu r5,r29,0x0010
0007e098: a6420018 sh r2,0x0018(r18)
0007e09c: 97a20014 lhu r2,0x0014(r29)
0007e0a0: 02003021 addu r6,r16,r0
0007e0a4: 0c00755e jal 0x0001d578                     Get_vector_from_GTE
0007e0a8: a642001a sh r2,0x001a(r18)
0007e0ac: 97a20010 lhu r2,0x0010(r29)
0007e0b0: 00162100 sll r4,r22,0x04
0007e0b4: a6420010 sh r2,0x0010(r18)
0007e0b8: a6220018 sh r2,0x0018(r17)
0007e0bc: 97a30014 lhu r3,0x0014(r29)
0007e0c0: 24840010 addiu r4,r4,0x0010
0007e0c4: a6430012 sh r3,0x0012(r18)
0007e0c8: 92220007 lbu r2,0x0007(r17)
0007e0cc: 340501e2 ori r5,r0,0x01e2
0007e0d0: a623001a sh r3,0x001a(r17)
0007e0d4: 34420002 ori r2,r2,0x0002
0007e0d8: a2220007 sb r2,0x0007(r17)
0007e0dc: 92420007 lbu r2,0x0007(r18)
0007e0e0: 3403003f ori r3,r0,0x003f
0007e0e4: a6430016 sh r3,0x0016(r18)
0007e0e8: 34420002 ori r2,r2,0x0002
0007e0ec: a2420007 sb r2,0x0007(r18)
0007e0f0: 0c008e95 jal 0x00023a54
0007e0f4: a6230016 sh r3,0x0016(r17)
0007e0f8: a642000e sh r2,0x000e(r18)
0007e0fc: a622000e sh r2,0x000e(r17)
0007e100: 34020080 ori r2,r0,0x0080
0007e104: a2420006 sb r2,0x0006(r18)
0007e108: a2420005 sb r2,0x0005(r18)
0007e10c: a2420004 sb r2,0x0004(r18)
0007e110: a2220006 sb r2,0x0006(r17)
0007e114: a2220005 sb r2,0x0005(r17)
0007e118: a2220004 sb r2,0x0004(r17)
0007e11c: 3402000d ori r2,r0,0x000d
0007e120: 341000a0 ori r16,r0,0x00a0
0007e124: a240001c sb r0,0x001c(r18)
0007e128: a240000c sb r0,0x000c(r18)
0007e12c: a220000c sb r0,0x000c(r17)
0007e130: a2420014 sb r2,0x0014(r18)
0007e134: a222001c sb r2,0x001c(r17)
0007e138: a2220014 sb r2,0x0014(r17)
0007e13c: 340200ad ori r2,r0,0x00ad
0007e140: a250000d sb r16,0x000d(r18)
0007e144: a2300015 sb r16,0x0015(r17)
0007e148: a230000d sb r16,0x000d(r17)
0007e14c: a242001d sb r2,0x001d(r18)
0007e150: a2420015 sb r2,0x0015(r18)
0007e154: a222001d sb r2,0x001d(r17)
0007e158: 8e220000 lw r2,0x0000(r17)
0007e15c: 8e230004 lw r3,0x0004(r17)
0007e160: 8e240008 lw r4,0x0008(r17)
0007e164: 8e25000c lw r5,0x000c(r17)
0007e168: ae620000 sw r2,0x0000(r19)
0007e16c: ae630004 sw r3,0x0004(r19)
0007e170: ae640008 sw r4,0x0008(r19)
0007e174: ae65000c sw r5,0x000c(r19)
0007e178: 8e220010 lw r2,0x0010(r17)
0007e17c: 8e230014 lw r3,0x0014(r17)
0007e180: 8e240018 lw r4,0x0018(r17)
0007e184: 8e25001c lw r5,0x001c(r17)
0007e188: ae620010 sw r2,0x0010(r19)
0007e18c: ae630014 sw r3,0x0014(r19)
0007e190: ae640018 sw r4,0x0018(r19)
0007e194: ae65001c sw r5,0x001c(r19)
0007e198: 8e420000 lw r2,0x0000(r18)
0007e19c: 8e430004 lw r3,0x0004(r18)
0007e1a0: 8e440008 lw r4,0x0008(r18)
0007e1a4: 8e45000c lw r5,0x000c(r18)
0007e1a8: ae820000 sw r2,0x0000(r20)
0007e1ac: ae830004 sw r3,0x0004(r20)
0007e1b0: ae840008 sw r4,0x0008(r20)
0007e1b4: ae85000c sw r5,0x000c(r20)
0007e1b8: 8e420010 lw r2,0x0010(r18)
0007e1bc: 8e430014 lw r3,0x0014(r18)
0007e1c0: 8e440018 lw r4,0x0018(r18)
0007e1c4: 8e45001c lw r5,0x001c(r18)
0007e1c8: ae820010 sw r2,0x0010(r20)
0007e1cc: ae830014 sw r3,0x0014(r20)
0007e1d0: ae840018 sw r4,0x0018(r20)
0007e1d4: ae85001c sw r5,0x001c(r20)
0007e1d8: 34040050 ori r4,r0,0x0050
0007e1dc: 340501e2 ori r5,r0,0x01e2
0007e1e0: 3402001f ori r2,r0,0x001f
0007e1e4: a6820016 sh r2,0x0016(r20)
0007e1e8: 0c008e95 jal 0x00023a54
0007e1ec: a6620016 sh r2,0x0016(r19)
0007e1f0: a682000e sh r2,0x000e(r20)
0007e1f4: a662000e sh r2,0x000e(r19)
0007e1f8: 3402000c ori r2,r0,0x000c
0007e1fc: a282001c sb r2,0x001c(r20)
0007e200: a262001c sb r2,0x001c(r19)
0007e204: a262000c sb r2,0x000c(r19)
0007e208: a2820014 sb r2,0x0014(r20)
0007e20c: a282000c sb r2,0x000c(r20)
0007e210: a2620014 sb r2,0x0014(r19)
0007e214: a290000d sb r16,0x000d(r20)
0007e218: a2700015 sb r16,0x0015(r19)
0007e21c: a270000d sb r16,0x000d(r19)
0007e220: a290001d sb r16,0x001d(r20)
0007e224: a2900015 sb r16,0x0015(r20)
0007e228: a270001d sb r16,0x001d(r19)
0007e22c: 8624000a lh r4,0x000a(r17)
0007e230: 86220008 lh r2,0x0008(r17)
0007e234: 86250012 lh r5,0x0012(r17)
0007e238: 8626001a lh r6,0x001a(r17)
0007e23c: 00042400 sll r4,r4,0x10
0007e240: 00822021 addu r4,r4,r2
0007e244: 86220010 lh r2,0x0010(r17)
0007e248: 00052c00 sll r5,r5,0x10
0007e24c: 00a22821 addu r5,r5,r2
0007e250: 86220018 lh r2,0x0018(r17)
0007e254: 00063400 sll r6,r6,0x10
0007e258: 0c00756a jal 0x0001d5a8
0007e25c: 00c23021 addu r6,r6,r2
0007e260: 04400006 bltz r2,0x0007e27c
0007e264: 02e02021 addu r4,r23,r0
0007e268: 0c008eed jal 0x00023bb4
0007e26c: 02202821 addu r5,r17,r0
0007e270: 02e02021 addu r4,r23,r0
0007e274: 0c008eed jal 0x00023bb4
0007e278: 02602821 addu r5,r19,r0
0007e27c: 8644000a lh r4,0x000a(r18)
0007e280: 86420008 lh r2,0x0008(r18)
0007e284: 86450012 lh r5,0x0012(r18)
0007e288: 8646001a lh r6,0x001a(r18)
0007e28c: 00042400 sll r4,r4,0x10
0007e290: 00822021 addu r4,r4,r2
0007e294: 86420010 lh r2,0x0010(r18)
0007e298: 00052c00 sll r5,r5,0x10
0007e29c: 00a22821 addu r5,r5,r2
0007e2a0: 86420018 lh r2,0x0018(r18)
0007e2a4: 00063400 sll r6,r6,0x10
0007e2a8: 0c00756a jal 0x0001d5a8
0007e2ac: 00c23021 addu r6,r6,r2
0007e2b0: 04400007 bltz r2,0x0007e2d0
0007e2b4: 02e02021 addu r4,r23,r0
0007e2b8: 0c008eed jal 0x00023bb4
0007e2bc: 02402821 addu r5,r18,r0
0007e2c0: 02e02021 addu r4,r23,r0
0007e2c4: 02802821 addu r5,r20,r0
0007e2c8: 0c008eed jal 0x00023bb4
0007e2cc: 00000000 nop
0007e2d0: 8fbf006c lw r31,0x006c(r29)
0007e2d4: 8fbe0068 lw r30,0x0068(r29)
0007e2d8: 8fb70064 lw r23,0x0064(r29)
0007e2dc: 8fb60060 lw r22,0x0060(r29)
0007e2e0: 8fb5005c lw r21,0x005c(r29)
0007e2e4: 8fb40058 lw r20,0x0058(r29)
0007e2e8: 8fb30054 lw r19,0x0054(r29)
0007e2ec: 8fb20050 lw r18,0x0050(r29)
0007e2f0: 8fb1004c lw r17,0x004c(r29)
0007e2f4: 8fb00048 lw r16,0x0048(r29)
0007e2f8: 27bd0070 addiu r29,r29,0x0070
0007e2fc: 03e00008 jr r31
0007e300: 00000000 nop