Get SMD

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

000446d8: 27bdffd8 addiu r29,r29,0xffd8
000446dc: afb3001c sw r19,0x001c(r29)
000446e0: 00809821 addu r19,r4,r0
000446e4: afb00010 sw r16,0x0010(r29)
000446e8: 00a08021 addu r16,r5,r0
000446ec: 02002021 addu r4,r16,r0
000446f0: afbf0020 sw r31,0x0020(r29)
000446f4: afb20018 sw r18,0x0018(r29)
000446f8: 0c0110af jal 0x000442bc                 000442bc - 00044380
000446fc: afb10014 sw r17,0x0014(r29)
00044700: 00409021 addu r18,r2,r0
00044704: 16400003 bne r18,r0,0x00044714          branch if successful
00044708: 00000000 nop
0004470c: 0c011282 jal 0x00044a08                 00044a08 - 00044a30 error code 11
00044710: 34040011 ori r4,r0,0x0011
00044714: 3c118005 lui r17,0x8005
00044718: 2631eaf4 addiu r17,r17,0xeaf4           default file open descriptor
0004471c: 02202021 addu r4,r17,r0
00044720: 02602821 addu r5,r19,r0
00044724: 001032c2 srl r6,r16,0x0b                sector size
00044728: 0c0046f4 jal 0x00011bd0                 Load Data From Disc (0x11bd0)
0004472c: 02403821 addu r7,r18,r0
00044730: 10400009 beq r2,r0,0x00044758           branch if calculating was successful
00044734: 00000000 nop
00044738: 0c0076ea jal 0x0001dba8                 Vsync Call
0004473c: 00002021 addu r4,r0,r0
00044740: 0c01127b jal 0x000449ec                 jr r31
00044744: 00000000 nop
00044748: 0c00478e jal 0x00011e38                 00011e38 - 0001201c 
0004474c: 02202021 addu r4,r17,r0
00044750: 080111c8 j 0x00044720                   loop
00044754: 02202021 addu r4,r17,r0
00044758: 3c028005 lui r2,0x8005
0004475c: 8c42eaf8 lw r2,-0x1508(r2)
00044760: 00000000 nop
00044764: 1040000d beq r2,r0,0x0004479c           branch if no file being opened
00044768: 02401021 addu r2,r18,r0
0004476c: 02208021 addu r16,r17,r0
00044770: 0c0076ea jal 0x0001dba8                 Vsync Call
00044774: 00002021 addu r4,r0,r0
00044778: 0c01127b jal 0x000449ec                 jr r31
0004477c: 00000000 nop
00044780: 0c00478e jal 0x00011e38                 00011e38 - 0001201c orders open file from CDROM, n' stuff, see notes.
00044784: 02002021 addu r4,r16,r0
00044788: 3c028005 lui r2,0x8005
0004478c: 8c42eaf8 lw r2,-0x1508(r2)
00044790: 00000000 nop
00044794: 1440fff6 bne r2,r0,0x00044770           loop until finished opening file
00044798: 02401021 addu r2,r18,r0                 return dest ptr of file
0004479c: 8fbf0020 lw r31,0x0020(r29)
000447a0: 8fb3001c lw r19,0x001c(r29)
000447a4: 8fb20018 lw r18,0x0018(r29)
000447a8: 8fb10014 lw r17,0x0014(r29)
000447ac: 8fb00010 lw r16,0x0010(r29)
000447b0: 27bd0028 addiu r29,r29,0x0028
000447b4: 03e00008 jr r31
000447b8: 00000000 nop