Difference between revisions of "000f3638 - 000f36c0"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 16: Line 16:
 
  000f3664: 26314604 addiu r17,r17,0x4604 #r17 = 0x80124604
 
  000f3664: 26314604 addiu r17,r17,0x4604 #r17 = 0x80124604
 
  000f3668: 02202021 addu r4,r17,r0 #r4 = r17
 
  000f3668: 02202021 addu r4,r17,r0 #r4 = r17
  000f366c: 0c0088bb jal 0x000222ec #call kernal location 0xa0, with r9 = 0x28?
+
  000f366c: 0c0088bb jal 0x000222ec #call kernal 0xa0, with r9 = 0x28 (clear 0x0bb8 bytes from 0x80124604 to 0x801251bc)
 
  000f3670: 34050bb8 ori r5,r0,0x0bb8 #r5 = 0x0bb8
 
  000f3670: 34050bb8 ori r5,r0,0x0bb8 #r5 = 0x0bb8
 
  000f3674: 00108080 sll r16,r16,0x02
 
  000f3674: 00108080 sll r16,r16,0x02
 
  000f3678: 3c01800f lui r1,0x800f
 
  000f3678: 3c01800f lui r1,0x800f
 
  000f367c: 00300821 addu r1,r1,r16
 
  000f367c: 00300821 addu r1,r1,r16
  000f3680: 8c245c74 lw r4,0x5c74(r1) #load map's LBA sector
+
  000f3680: 8c245c74 lw r4,0x5c74(r1) #load map's GNS LBA
 
  000f3684: 00000000 nop
 
  000f3684: 00000000 nop
  000f3688: 10800008 beq r4,r0,0x000f36ac #branch if LBA sector is null
+
  000f3688: 10800008 beq r4,r0,0x000f36ac #branch if null
 
  000f368c: 00000000 nop
 
  000f368c: 00000000 nop
 
  000f3690: 3c068012 lui r6,0x8012
 
  000f3690: 3c068012 lui r6,0x8012
  000f3694: 8cc61ffc lw r6,0x1ffc(r6) #Load LBA data into = 0x80121ffc
+
  000f3694: 8cc61ffc lw r6,0x1ffc(r6) #Load map data into RAM
 
  000f3698: 0c0111a5 jal 0x00044694 #[[Load Data From Disc (0x44694)]]
 
  000f3698: 0c0111a5 jal 0x00044694 #[[Load Data From Disc (0x44694)]]
 
  000f369c: 34051000 ori r5,r0,0x1000 #data = 0x1000 bytes long
 
  000f369c: 34051000 ori r5,r0,0x1000 #data = 0x1000 bytes long

Latest revision as of 03:55, 4 April 2023

Appears to load specific types of map data from disc, and map move-find item from scus.

000f3638: 27bdffe0 addiu r29,r29,0xffe0
000f363c: afb00010 sw r16,0x0010(r29)
000f3640: 3090ffff andi r16,r4,0xffff			#map
000f3644: 00101100 sll r2,r16,0x04			#r2 = map word pointer
000f3648: 3c04800f lui r4,0x800f
000f364c: 24845e74 addiu r4,r4,0x5e74
000f3650: 00442021 addu r4,r2,r4			#r4 = map's move-find item pointer
000f3654: afbf0018 sw r31,0x0018(r29)
000f3658: 0c060fd8 jal 0x00183f60			#Load Move Find-Item data to Current Map
000f365c: afb10014 sw r17,0x0014(r29)
000f3660: 3c118012 lui r17,0x8012
000f3664: 26314604 addiu r17,r17,0x4604		#r17 = 0x80124604
000f3668: 02202021 addu r4,r17,r0			#r4 = r17
000f366c: 0c0088bb jal 0x000222ec			#call kernal 0xa0, with r9 = 0x28 (clear 0x0bb8 bytes from 0x80124604 to 0x801251bc)
000f3670: 34050bb8 ori r5,r0,0x0bb8			#r5 = 0x0bb8
000f3674: 00108080 sll r16,r16,0x02
000f3678: 3c01800f lui r1,0x800f
000f367c: 00300821 addu r1,r1,r16
000f3680: 8c245c74 lw r4,0x5c74(r1)			#load map's GNS LBA
000f3684: 00000000 nop
000f3688: 10800008 beq r4,r0,0x000f36ac		#branch if null
000f368c: 00000000 nop
000f3690: 3c068012 lui r6,0x8012
000f3694: 8cc61ffc lw r6,0x1ffc(r6)			#Load map data into RAM
000f3698: 0c0111a5 jal 0x00044694			#Load Data From Disc (0x44694)
000f369c: 34051000 ori r5,r0,0x1000			#data = 0x1000 bytes long
000f36a0: 14400002 bne r2,r0,0x000f36ac		#branch if load failed(?)
000f36a4: 00001021 addu r2,r0,r0			#r2 = 0
000f36a8: 02201021 addu r2,r17,r0			#r2 = 0x80124604
000f36ac: 8fbf0018 lw r31,0x0018(r29)
000f36b0: 8fb10014 lw r17,0x0014(r29)
000f36b4: 8fb00010 lw r16,0x0010(r29)
000f36b8: 27bd0020 addiu r29,r29,0x0020
000f36bc: 03e00008 jr r31
000f36c0: 00000000 nop