000435c4 - 0004365c

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

000435c4: 27bdffd8 addiu r29,r29,0xffd8
000435c8: afb20018 sw r18,0x0018(r29)
000435cc: 00a09021 addu r18,r5,r0
000435d0: afb3001c sw r19,0x001c(r29)
000435d4: 3c138005 lui r19,0x8005
000435d8: 2673d98c addiu r19,r19,0xd98c
000435dc: afb10014 sw r17,0x0014(r29)
000435e0: 00128880 sll r17,r18,0x02
000435e4: afb00010 sw r16,0x0010(r29)
000435e8: 02338021 addu r16,r17,r19
000435ec: afbf0020 sw r31,0x0020(r29)
000435f0: 8e020000 lw r2,0x0000(r16)
000435f4: 00000000 nop
000435f8: 14400011 bne r2,r0,0x00043640
000435fc: 00001021 addu r2,r0,r0
00043600: 000410c0 sll r2,r4,0x03               P1 (SMD file to open)
00043604: 3c018004 lui r1,0x8004
00043608: 00220821 addu r1,r1,r2
0004360c: 8c247080 lw r4,0x7080(r1)             80047080 (LBA sector)
00043610: 3c018004 lui r1,0x8004
00043614: 00220821 addu r1,r1,r2
00043618: 8c257084 lw r5,0x7084(r1)             80047084 (filesize)
0004361c: 0c0111b6 jal 0x000446d8               Get SMD
00043620: 00000000 nop
00043624: 00402021 addu r4,r2,r0                parse SMD pointer
00043628: 0c00483d jal 0x000120f4               000120f4 - 00012168
0004362c: ae040000 sw r4,0x0000(r16)            store SMD pointer
00043630: 2663ffe4 addiu r3,r19,0xffe4
00043634: 02231821 addu r3,r17,r3
00043638: ac620000 sw r2,0x0000(r3)
0004363c: 02401021 addu r2,r18,r0
00043640: 8fbf0020 lw r31,0x0020(r29)
00043644: 8fb3001c lw r19,0x001c(r29)
00043648: 8fb20018 lw r18,0x0018(r29)
0004364c: 8fb10014 lw r17,0x0014(r29)
00043650: 8fb00010 lw r16,0x0010(r29)
00043654: 27bd0028 addiu r29,r29,0x0028
00043658: 03e00008 jr r31
0004365c: 00000000 nop