Difference between revisions of "Get TUTO.MES and TUTO.SCR"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "<font face='Courier New'> 0012d8b0: 27bdffe0 addiu r29,r29,0xffe0 0012d8b4: afb10014 sw r17,0x0014(r29) 0012d8b8: 00a08821 addu r17,r5,r0 0012d8bc: afb00010 sw r16,0x001...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
  0012d8b8: 00a08821 addu r17,r5,r0
 
  0012d8b8: 00a08821 addu r17,r5,r0
 
  0012d8bc: afb00010 sw r16,0x0010(r29)
 
  0012d8bc: afb00010 sw r16,0x0010(r29)
  0012d8c0: 2490ffff addiu r16,r4,0xffff
+
  0012d8c0: 2490ffff addiu r16,r4,0xffff             #ID of Tuto file to open
 
  0012d8c4: 3c028019 lui r2,0x8019
 
  0012d8c4: 3c028019 lui r2,0x8019
  0012d8c8: 24423c40 addiu r2,r2,0x3c40
+
  0012d8c8: 24423c40 addiu r2,r2,0x3c40             #Tuto.mes file LBA pointers
  0012d8cc: 001080c0 sll r16,r16,0x03
+
  0012d8cc: 001080c0 sll r16,r16,0x03              
 
  0012d8d0: 02021821 addu r3,r16,r2
 
  0012d8d0: 02021821 addu r3,r16,r2
  0012d8d4: 00501021 addu r2,r2,r16
+
  0012d8d4: 00501021 addu r2,r2,r16                 # this being done twice seems pointless
 
  0012d8d8: afbf0018 sw r31,0x0018(r29)
 
  0012d8d8: afbf0018 sw r31,0x0018(r29)
  0012d8dc: 8c640000 lw r4,0x0000(r3)
+
  0012d8dc: 8c640000 lw r4,0x0000(r3)               # LBA
  0012d8e0: 8c450004 lw r5,0x0004(r2)
+
  0012d8e0: 8c450004 lw r5,0x0004(r2)               # filesize
  0012d8e4: 0c011264 jal 0x00044990
+
  0012d8e4: 0c011264 jal 0x00044990                 # [[Get BIN as TIM]] get the mes file as a texture image file
 
  0012d8e8: 00000000 nop
 
  0012d8e8: 00000000 nop
  0012d8ec: ae221e00 sw r2,0x1e00(r17)
+
  0012d8ec: ae221e00 sw r2,0x1e00(r17)               # r17 + 0x1e00 is the .mes file pointer
 
  0012d8f0: 3c028019 lui r2,0x8019
 
  0012d8f0: 3c028019 lui r2,0x8019
  0012d8f4: 24423c78 addiu r2,r2,0x3c78
+
  0012d8f4: 24423c78 addiu r2,r2,0x3c78             # Tuto.scr file LBA pointers
 
  0012d8f8: 02021821 addu r3,r16,r2
 
  0012d8f8: 02021821 addu r3,r16,r2
 
  0012d8fc: 00501021 addu r2,r2,r16
 
  0012d8fc: 00501021 addu r2,r2,r16
  0012d900: 8c640000 lw r4,0x0000(r3)
+
  0012d900: 8c640000 lw r4,0x0000(r3)               # LBA
  0012d904: 8c450004 lw r5,0x0004(r2)
+
  0012d904: 8c450004 lw r5,0x0004(r2)               # filesize
  0012d908: 0c011264 jal 0x00044990
+
  0012d908: 0c011264 jal 0x00044990                 # [[Get BIN as TIM]] get the tuto script file... as a texture image file. okay.
 
  0012d90c: 00000000 nop
 
  0012d90c: 00000000 nop
  0012d910: ae221e04 sw r2,0x1e04(r17)
+
  0012d910: ae221e04 sw r2,0x1e04(r17)               # r17 + 0x1e04 is the .scr file pointer
 
  0012d914: 8fbf0018 lw r31,0x0018(r29)
 
  0012d914: 8fbf0018 lw r31,0x0018(r29)
 
  0012d918: 8fb10014 lw r17,0x0014(r29)
 
  0012d918: 8fb10014 lw r17,0x0014(r29)

Latest revision as of 02:57, 27 June 2024

0012d8b0: 27bdffe0 addiu r29,r29,0xffe0
0012d8b4: afb10014 sw r17,0x0014(r29)
0012d8b8: 00a08821 addu r17,r5,r0
0012d8bc: afb00010 sw r16,0x0010(r29)
0012d8c0: 2490ffff addiu r16,r4,0xffff             #ID of Tuto file to open
0012d8c4: 3c028019 lui r2,0x8019
0012d8c8: 24423c40 addiu r2,r2,0x3c40              #Tuto.mes file LBA pointers
0012d8cc: 001080c0 sll r16,r16,0x03                
0012d8d0: 02021821 addu r3,r16,r2
0012d8d4: 00501021 addu r2,r2,r16                  # this being done twice seems pointless
0012d8d8: afbf0018 sw r31,0x0018(r29)
0012d8dc: 8c640000 lw r4,0x0000(r3)                # LBA
0012d8e0: 8c450004 lw r5,0x0004(r2)                # filesize
0012d8e4: 0c011264 jal 0x00044990                  # Get BIN as TIM get the mes file as a texture image file
0012d8e8: 00000000 nop
0012d8ec: ae221e00 sw r2,0x1e00(r17)               # r17 + 0x1e00 is the .mes file pointer
0012d8f0: 3c028019 lui r2,0x8019
0012d8f4: 24423c78 addiu r2,r2,0x3c78              # Tuto.scr file LBA pointers
0012d8f8: 02021821 addu r3,r16,r2
0012d8fc: 00501021 addu r2,r2,r16
0012d900: 8c640000 lw r4,0x0000(r3)                # LBA
0012d904: 8c450004 lw r5,0x0004(r2)                # filesize
0012d908: 0c011264 jal 0x00044990                  # Get BIN as TIM get the tuto script file... as a texture image file. okay.
0012d90c: 00000000 nop
0012d910: ae221e04 sw r2,0x1e04(r17)               # r17 + 0x1e04 is the .scr file pointer
0012d914: 8fbf0018 lw r31,0x0018(r29)
0012d918: 8fb10014 lw r17,0x0014(r29)
0012d91c: 8fb00010 lw r16,0x0010(r29)
0012d920: 27bd0020 addiu r29,r29,0x0020
0012d924: 03e00008 jr r31
0012d928: 00000000 nop