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...)
m (found mother routine. arguments that were parsed were easy to find :))
Line 5: Line 5:
 
   
 
   
 
  001827b4: 27bdffb8 addiu r29,r29,0xffb8 stack - 0x48
 
  001827b4: 27bdffb8 addiu r29,r29,0xffb8 stack - 0x48
0x00 - 0x10:
 
 
  0x20 - 0x30: MP cost for abilities
 
  0x20 - 0x30: MP cost for abilities
 
  0x30 - 0x40: Silence/Performance checks for abilities
 
  0x30 - 0x40: Silence/Performance checks for abilities
 
        0x40: return address lol
 
        0x40: return address lol
I am currently unsure where r7 and r3 point. I believe they're supposed to be arguments from mother routine.
+
      0x58: stored pointer to 0x70
 +
0x60 - 0x70: Raw Ability CT
 +
0x70 - 0x80: #turns to complete action
 
  001827b8: 27a20030 addiu r2,r29,0x0030
 
  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)
+
  001827bc: 8fa30058 lw r3,0x0058(r29) Load Stack + 0x58 (pointer to stack + 0x70)
 
  001827c0: 30a500ff andi r5,r5,0x00ff Primary Skillset
 
  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.)
+
  001827c4: afa70010 sw r7,0x0010(r29) Store 0x60 onto Stack (Raw ability CT in stack.)
 
  001827c8: 27a70020 addiu r7,r29,0x0020 MP cost pointer
 
  001827c8: 27a70020 addiu r7,r29,0x0020 MP cost pointer
 
  001827cc: afbf0040 sw r31,0x0040(r29)
 
  001827cc: afbf0040 sw r31,0x0040(r29)
Line 19: Line 20:
 
  001827d4: afa20018 sw r2,0x0018(r29) Store 0x30 onto Stack (Silence + Performance checks for abilities)
 
  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 0x70 to stack (#turns to complete action)
 
  001827e0: 8fbf0040 lw r31,0x0040(r29)
 
  001827e0: 8fbf0040 lw r31,0x0040(r29)
 
  001827e4: 27bd0048 addiu r29,r29,0x0048
 
  001827e4: 27bd0048 addiu r29,r29,0x0048

Revision as of 09:12, 18 February 2022

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

	001817c0: Load ability data for skillset

001827b4: 27bdffb8 addiu r29,r29,0xffb8			stack - 0x48
	0x20 - 0x30: MP cost for abilities
	0x30 - 0x40: Silence/Performance checks for abilities
	       0x40: return address lol
	       0x58: stored pointer to 0x70
	0x60 - 0x70: Raw Ability CT
	0x70 - 0x80: #turns to complete action
001827b8: 27a20030 addiu r2,r29,0x0030
001827bc: 8fa30058 lw r3,0x0058(r29)			Load Stack + 0x58 (pointer to stack + 0x70)
001827c0: 30a500ff andi r5,r5,0x00ff			Primary Skillset
001827c4: afa70010 sw r7,0x0010(r29)			Store 0x60 onto Stack (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 0x70 to stack (#turns to complete action)
001827e0: 8fbf0040 lw r31,0x0040(r29)			
001827e4: 27bd0048 addiu r29,r29,0x0048			
001827e8: 03e00008 jr r31			
001827ec: 00000000 nop