Load Data From Disc (0x44694)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
#   ROUTINE: LOAD DATA FROM DISC (0x44694)
#       Parameters:
#           r4 = (lba) LBA Sector of data
#           r5 = (numBytes) Number of bytes to load
#           r6 = (locationPtr) Location to load the data into RAM

80044694: 27bdffe8 addiu r29,r29,-0x0018
80044698: afbf0010 sw r31,0x0010(r29)
8004469c: 00801021 addu r2,r4,r0
800446a0: 00c03821 addu r7,r6,r0
800446a4: 000532c2 srl r6,r5,0x0b
800446a8: 3c048005 lui r4,0x8005
800446ac: 2484eaf4 addiu r4,r4,-0x150c
800446b0: 0c0046f4 jal 0x80011bd0                   #   return Load Data From Disc (0x11bd0) (0x8004eaf4, lba, numBytes / 2048, locationPtr);
800446b4: 00402821 addu r5,r2,r0
800446b8: 8fbf0010 lw r31,0x0010(r29)
800446bc: 27bd0018 addiu r29,r29,0x0018
800446c0: 03e00008 jr r31
800446c4: 00000000 nop