Difference between revisions of "Charge Skillset Loading"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(still not sure which skillset this loads...)
Line 4: Line 4:
 
  001817c0: [[Load ability data for skillset]]
 
  001817c0: [[Load ability data for skillset]]
 
   
 
   
  001827b4: 27bdffb8 addiu r29,r29,0xffb8
+
  001827b4: 27bdffb8 addiu r29,r29,0xffb8 stack - 0x48
 +
0x00 - 0x10:
 +
0x20 - 0x30: MP cost for abilities
 +
0x30 - 0x40: Silence/Performance checks for abilities
 +
      0x40: return address lol
 +
I am currently unsure where r7 and r3 point. I believe they're supposed to be arguments from mother routine.
 
  001827b8: 27a20030 addiu r2,r29,0x0030
 
  001827b8: 27a20030 addiu r2,r29,0x0030
  001827bc: 8fa30058 lw r3,0x0058(r29) Load Stack + 0x58
+
  001827bc: 8fa30058 lw r3,0x0058(r29) Load Stack + 0x58 (I imagine this is an argument from mother routine: points to #turns to complete in stack)
  001827c0: 30a500ff andi r5,r5,0x00ff Mask second byte
+
  001827c0: 30a500ff andi r5,r5,0x00ff Primary Skillset
  001827c4: afa70010 sw r7,0x0010(r29) Store 0x0 onto Stack
+
  001827c4: afa70010 sw r7,0x0010(r29) Store ??? onto Stack (argument? a pointer to Raw ability CT in stack.)
  001827c8: 27a70020 addiu r7,r29,0x0020
+
  001827c8: 27a70020 addiu r7,r29,0x0020 MP cost pointer
  001827cc: afbf0040 sw r31,0x0040(r29) Store 0x0 onto Stack
+
  001827cc: afbf0040 sw r31,0x0040(r29)
 
  001827d0: afa00014 sw r0,0x0014(r29) Store 0x0 onto Stack
 
  001827d0: afa00014 sw r0,0x0014(r29) Store 0x0 onto Stack
  001827d4: afa20018 sw r2,0x0018(r29) Store 0x30 onto Stack
+
  001827d4: afa20018 sw r2,0x0018(r29) Store 0x30 onto Stack (Silence + Performance checks for abilities)
 
  001827d8: 0c0605f0 jal 0x001817c0 [[Load ability data for skillset]]
 
  001827d8: 0c0605f0 jal 0x001817c0 [[Load ability data for skillset]]
  001827dc: afa3001c sw r3,0x001c(r29) Store onto Stack
+
  001827dc: afa3001c sw r3,0x001c(r29) Store onto Stack
  001827e0: 8fbf0040 lw r31,0x0040(r29) Load Stack + 0x40
+
  001827e0: 8fbf0040 lw r31,0x0040(r29)
 
  001827e4: 27bd0048 addiu r29,r29,0x0048
 
  001827e4: 27bd0048 addiu r29,r29,0x0048
  001827e8: 03e00008 jr r31 Jump to Address
+
  001827e8: 03e00008 jr r31
 
  001827ec: 00000000 nop
 
  001827ec: 00000000 nop
 
   
 
   
 
   
 
   
 
  </font>
 
  </font>

Revision as of 09:01, 18 February 2022

??? Skillset Loading 1827b4: 001827b4 - 001827ec

	001817c0: Load ability data for skillset

001827b4: 27bdffb8 addiu r29,r29,0xffb8			stack - 0x48
	0x00 - 0x10: 
	0x20 - 0x30: MP cost for abilities
	0x30 - 0x40: Silence/Performance checks for abilities
	       0x40: return address lol
		I am currently unsure where r7 and r3 point. I believe they're supposed to be arguments from mother routine.
001827b8: 27a20030 addiu r2,r29,0x0030
001827bc: 8fa30058 lw r3,0x0058(r29)			Load Stack + 0x58 (I imagine this is an argument from mother routine: points to #turns to complete in stack)
001827c0: 30a500ff andi r5,r5,0x00ff			Primary Skillset
001827c4: afa70010 sw r7,0x0010(r29)			Store ??? onto Stack (argument? a pointer to Raw ability CT in stack.)
001827c8: 27a70020 addiu r7,r29,0x0020			MP cost pointer
001827cc: afbf0040 sw r31,0x0040(r29)			
001827d0: afa00014 sw r0,0x0014(r29)			Store 0x0 onto Stack
001827d4: afa20018 sw r2,0x0018(r29)			Store 0x30 onto Stack (Silence + Performance checks for abilities)
001827d8: 0c0605f0 jal 0x001817c0			Load ability data for skillset
001827dc: afa3001c sw r3,0x001c(r29)			Store onto Stack
001827e0: 8fbf0040 lw r31,0x0040(r29)			
001827e4: 27bd0048 addiu r29,r29,0x0048			
001827e8: 03e00008 jr r31			
001827ec: 00000000 nop