Difference between revisions of "Get WD"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 23: Line 23:
 
  000448f0: 0c01127b jal 0x000449ec                  jr r31
 
  000448f0: 0c01127b jal 0x000449ec                  jr r31
 
  000448f4: 00000000 nop
 
  000448f4: 00000000 nop
  000448f8: 0c00478e jal 0x00011e38                  [[00011e38 - 0001201c]] <- incrementing function while opening and reading file?
+
  000448f8: 0c00478e jal 0x00011e38                  [[Open File to RAM Centre]]
 
  000448fc: 02002021 addu r4,r16,r0                  file descriptor
 
  000448fc: 02002021 addu r4,r16,r0                  file descriptor
 
  00044900: 08011234 j 0x000448d0                    loop... forever?
 
  00044900: 08011234 j 0x000448d0                    loop... forever?
Line 32: Line 32:
 
  00044910: 0c01127b jal 0x000449ec                  # jr r31
 
  00044910: 0c01127b jal 0x000449ec                  # jr r31
 
  00044914: 00000000 nop
 
  00044914: 00000000 nop
  00044918: 0c00478e jal 0x00011e38                  [[00011e38 - 0001201c]] <- incrementing function while opening and reading file?
+
  00044918: 0c00478e jal 0x00011e38                  [[Open File to RAM Centre]]
 
  0004491c: 02002021 addu r4,r16,r0
 
  0004491c: 02002021 addu r4,r16,r0
 
  00044920: 3c028005 lui r2,0x8005
 
  00044920: 3c028005 lui r2,0x8005

Latest revision as of 00:31, 16 June 2024

000448a0: 27bdffd8 addiu r29,r29,0xffd8
000448a4: afb20018 sw r18,0x0018(r29)
000448a8: 00809021 addu r18,r4,r0                   LBA sector of file to open
000448ac: afb3001c sw r19,0x001c(r29)
000448b0: 00a09821 addu r19,r5,r0                   file size (bytes)
000448b4: afb10014 sw r17,0x0014(r29)
000448b8: 00c08821 addu r17,r6,r0                   address to read file into
000448bc: afb00010 sw r16,0x0010(r29)
000448c0: 3c108005 lui r16,0x8005
000448c4: 2610eaf4 addiu r16,r16,0xeaf4             file descriptor address
000448c8: afbf0020 sw r31,0x0020(r29)
000448cc: 02002021 addu r4,r16,r0                   file descriptor
000448d0: 02402821 addu r5,r18,r0
000448d4: 001332c2 srl r6,r19,0x0b                  number of sectors to open
000448d8: 0c0046f4 jal 0x00011bd0                   Load Data From Disc (0x11bd0) (fd, LBA, NumSect, DestPtr)
000448dc: 02203821 addu r7,r17,r0                   address to read file into 
000448e0: 1040000f beq r2,r0,0x00044920             branch if successfully calculated CdlLOC
000448e4: 00000000 nop
000448e8: 0c0076ea jal 0x0001dba8                   VSync call
000448ec: 00002021 addu r4,r0,r0
000448f0: 0c01127b jal 0x000449ec                   jr r31
000448f4: 00000000 nop
000448f8: 0c00478e jal 0x00011e38                   Open File to RAM Centre
000448fc: 02002021 addu r4,r16,r0                   file descriptor
00044900: 08011234 j 0x000448d0                     loop... forever?
00044904: 02002021 addu r4,r16,r0
00044908: 0c0076ea jal 0x0001dba8                   # VSync call
0004490c: 00002021 addu r4,r0,r0
00044910: 0c01127b jal 0x000449ec                   # jr r31
00044914: 00000000 nop
00044918: 0c00478e jal 0x00011e38                   Open File to RAM Centre
0004491c: 02002021 addu r4,r16,r0
00044920: 3c028005 lui r2,0x8005
00044924: 8c42eaf8 lw r2,-0x1508(r2)                # load file opening func
00044928: 00000000 nop
0004492c: 1440fff6 bne r2,r0,0x00044908             # loop while not still in process
00044930: 02201021 addu r2,r17,r0
00044934: 8fbf0020 lw r31,0x0020(r29)
00044938: 8fb3001c lw r19,0x001c(r29)
0004493c: 8fb20018 lw r18,0x0018(r29)
00044940: 8fb10014 lw r17,0x0014(r29)
00044944: 8fb00010 lw r16,0x0010(r29)
00044948: 27bd0028 addiu r29,r29,0x0028
0004494c: 03e00008 jr r31
00044950: 00000000 nop