Difference between revisions of "Open tutorial files"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m (Talcall moved page 0012d964 - 0012dadc to Open tutorial files)
m
Line 15: Line 15:
 
  0012d994: 8fc40018 lw r4,0x0018(r30)            load tutorial ID
 
  0012d994: 8fc40018 lw r4,0x0018(r30)            load tutorial ID
 
  0012d998: 3c05801d lui r5,0x801d
 
  0012d998: 3c05801d lui r5,0x801d
  0012d99c: 24a5a768 addiu r5,r5,0xa768          put tuto ptrs are 801ca768
+
  0012d99c: 24a5a768 addiu r5,r5,0xa768          put tuto ptrs are 801ca768 + 0x1e00 (801cc568)
 
  0012d9a0: 0c04b62c jal 0x0012d8b0              [[Get TUTO.MES and TUTO.SCR]]
 
  0012d9a0: 0c04b62c jal 0x0012d8b0              [[Get TUTO.MES and TUTO.SCR]]
 
  0012d9a4: 00000000 nop
 
  0012d9a4: 00000000 nop

Revision as of 06:44, 27 June 2024

0012d964: 27bdffe8 addiu r29,r29,0xffe8
0012d968: afbf0014 sw r31,0x0014(r29)
0012d96c: afbe0010 sw r30,0x0010(r29)
0012d970: 03a0f021 addu r30,r29,r0
0012d974: afc40018 sw r4,0x0018(r30)            store tutorial ID
0012d978: 93c20018 lbu r2,0x0018(r30)
0012d97c: 3c018019 lui r1,0x8019
0012d980: a022e48c sb r2,-0x1b74(r1)           
0012d984: 8fc20018 lw r2,0x0018(r30)           
0012d988: 00000000 nop
0012d98c: 1040004e beq r2,r0,0x0012dac8         don't load if no tutorial*
0012d990: 00000000 nop
0012d994: 8fc40018 lw r4,0x0018(r30)            load tutorial ID
0012d998: 3c05801d lui r5,0x801d
0012d99c: 24a5a768 addiu r5,r5,0xa768           put tuto ptrs are 801ca768 + 0x1e00 (801cc568)
0012d9a0: 0c04b62c jal 0x0012d8b0               Get TUTO.MES and TUTO.SCR
0012d9a4: 00000000 nop
0012d9a8: 3c02801d lui r2,0x801d
0012d9ac: 8c42c56c lw r2,-0x3a94(r2)
0012d9b0: 3c01801d lui r1,0x801d
0012d9b4: ac22c570 sw r2,-0x3a90(r1)
0012d9b8: 3c02801d lui r2,0x801d
0012d9bc: 8c42c568 lw r2,-0x3a98(r2)
0012d9c0: 3c01801d lui r1,0x801d
0012d9c4: ac22d900 sw r2,-0x2700(r1)
0012d9c8: 0c04c226 jal 0x00130898
0012d9cc: 00000000 nop
0012d9d0: 2404ffff addiu r4,r0,0xffff
0012d9d4: 0c04bf76 jal 0x0012fdd8
0012d9d8: 00000000 nop
0012d9dc: 3c04801d lui r4,0x801d
0012d9e0: 8c84d1ec lw r4,-0x2e14(r4)
0012d9e4: 3c05801d lui r5,0x801d
0012d9e8: 24a5a768 addiu r5,r5,0xa768
0012d9ec: 34061e00 ori r6,r0,0x1e00
0012d9f0: 0c0088b7 jal 0x000222dc
0012d9f4: 00000000 nop
0012d9f8: 3c040001 lui r4,0x0001
0012d9fc: 34841a7f ori r4,r4,0x1a7f             LBA 0x11a7f FFTSAVE.DAT LBA
0012da00: 34052000 ori r5,r0,0x2000             filesize 0x2000
0012da04: 3c06801d lui r6,0x801d
0012da08: 8cc6d1ec lw r6,-0x2e14(r6)            open into...?
0012da0c: 0c011255 jal 0x00044954               Get DAT as WD
0012da10: 00000000 nop
0012da14: 3c02801d lui r2,0x801d
0012da18: 8c42d1ec lw r2,-0x2e14(r2)
0012da1c: 00000000 nop
0012da20: 8c431c84 lw r3,0x1c84(r2)
0012da24: 3c04fe7f lui r4,0xfe7f
0012da28: 3484ffff ori r4,r4,0xffff
0012da2c: 00641824 and r3,r3,r4
0012da30: ac431c84 sw r3,0x1c84(r2)
0012da34: 3c02801d lui r2,0x801d
0012da38: 8c42d1ec lw r2,-0x2e14(r2)
0012da3c: 3c048004 lui r4,0x8004
0012da40: 8c8473ac lw r4,0x73ac(r4)
0012da44: 00000000 nop
0012da48: 00041f42 srl r3,r4,0x1d
0012da4c: 30640003 andi r4,r3,0x0003
0012da50: 30850003 andi r5,r4,0x0003
0012da54: 00051f40 sll r3,r5,0x1d
0012da58: 8c441c84 lw r4,0x1c84(r2)
0012da5c: 3c059fff lui r5,0x9fff
0012da60: 34a5ffff ori r5,r5,0xffff
0012da64: 00852024 and r4,r4,r5
0012da68: 00832025 or r4,r4,r3
0012da6c: ac441c84 sw r4,0x1c84(r2)
0012da70: 3c02801d lui r2,0x801d
0012da74: 8c42d1ec lw r2,-0x2e14(r2)
0012da78: 3c048004 lui r4,0x8004
0012da7c: 8c8473ac lw r4,0x73ac(r4)
0012da80: 00000000 nop
0012da84: 00041d42 srl r3,r4,0x15
0012da88: 30640003 andi r4,r3,0x0003
0012da8c: 30850003 andi r5,r4,0x0003
0012da90: 00051d40 sll r3,r5,0x15
0012da94: 8c441c84 lw r4,0x1c84(r2)
0012da98: 3c05ff9f lui r5,0xff9f
0012da9c: 34a5ffff ori r5,r5,0xffff
0012daa0: 00852024 and r4,r4,r5
0012daa4: 00832025 or r4,r4,r3
0012daa8: ac441c84 sw r4,0x1c84(r2)
0012daac: 34040001 ori r4,r0,0x0001
0012dab0: 0c04c0ce jal 0x00130338
0012dab4: 00000000 nop
0012dab8: 3c01801d lui r1,0x801d
0012dabc: ac20c574 sw r0,-0x3a8c(r1)
0012dac0: 0c042248 jal 0x00108920
0012dac4: 00000000 nop
0012dac8: 03c0e821 addu r29,r30,r0
0012dacc: 8fbf0014 lw r31,0x0014(r29)
0012dad0: 8fbe0010 lw r30,0x0010(r29)
0012dad4: 27bd0018 addiu r29,r29,0x0018
0012dad8: 03e00008 jr r31
0012dadc: 00000000 nop