Open r4 portion of SNPLBIN & SNPLMES

From Final Fantasy Hacktics Wiki
(Redirected from 00068c64 - 00068d3c)
Jump to navigation Jump to search

00068c64: 27bdffd0 addiu r29,r29,0xffd0
00068c68: afb00020 sw r16,0x0020(r29)
00068c6c: 00808021 addu r16,r4,r0                   what sector of each file to open
00068c70: afbf0028 sw r31,0x0028(r29)
00068c74: 0c01a1b2 jal 0x000686c8
00068c78: afb10024 sw r17,0x0024(r29)
00068c7c: 3c050001 lui r5,0x0001
00068c80: 34a528f9 ori r5,r5,0x28f9                 LBA 0x128f9 SNPLBIN.BIN
00068c84: 3c118005 lui r17,0x8005
00068c88: 2631eaf4 addiu r17,r17,0xeaf4
00068c8c: 02202021 addu r4,r17,r0
00068c90: 3c07800d lui r7,0x800d
00068c94: 24e70bbc addiu r7,r7,0x0bbc
00068c98: 00108080 sll r16,r16,0x02
00068c9c: 3c01800a lui r1,0x800a
00068ca0: 2421e634 addiu r1,r1,0xe634               describes what sector of SNPLBIN.BIN to open?
00068ca4: 00300821 addu r1,r1,r16
00068ca8: 8c220000 lw r2,0x0000(r1)                 sector offset
00068cac: 3c01800a lui r1,0x800a
00068cb0: 2421e638 addiu r1,r1,0xe638               
00068cb4: 00300821 addu r1,r1,r16
00068cb8: 8c260000 lw r6,0x0000(r1)                 number of sectors to load
00068cbc: 00452821 addu r5,r2,r5                    
00068cc0: 0c01a178 jal 0x000685e0                   000685e0 - 0006863c Open a portion of SNPLBIN
00068cc4: 00c23023 subu r6,r6,r2
00068cc8: 0c01a1b2 jal 0x000686c8
00068ccc: 00000000 nop
00068cd0: 3c050001 lui r5,0x0001
00068cd4: 34a5291d ori r5,r5,0x291d                 SNPLMES.BIN
00068cd8: 02202021 addu r4,r17,r0
00068cdc: 3c11800c lui r17,0x800c
00068ce0: 2631c2f4 addiu r17,r17,0xc2f4
00068ce4: 02203821 addu r7,r17,r0
00068ce8: 3c01800a lui r1,0x800a
00068cec: 2421e650 addiu r1,r1,0xe650
00068cf0: 00300821 addu r1,r1,r16
00068cf4: 8c220000 lw r2,0x0000(r1)
00068cf8: 3c01800a lui r1,0x800a
00068cfc: 2421e654 addiu r1,r1,0xe654               same logic as above
00068d00: 00300821 addu r1,r1,r16
00068d04: 8c260000 lw r6,0x0000(r1)
00068d08: 00452821 addu r5,r2,r5
00068d0c: 0c01a178 jal 0x000685e0                   000685e0 - 0006863c Open a portion of SNPLMES
00068d10: 00c23023 subu r6,r6,r2
00068d14: 2402ffff addiu r2,r0,0xffff
00068d18: 3c01801d lui r1,0x801d
00068d1c: ac31d8e8 sw r17,-0x2718(r1)
00068d20: 3c01800d lui r1,0x800d
00068d24: ac220af4 sw r2,0x0af4(r1)
00068d28: 8fbf0028 lw r31,0x0028(r29)
00068d2c: 8fb10024 lw r17,0x0024(r29)
00068d30: 8fb00020 lw r16,0x0020(r29)
00068d34: 27bd0030 addiu r29,r29,0x0030
00068d38: 03e00008 jr r31
00068d3c: 00000000 nop