Difference between revisions of "Charge Skillset Loading"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m (found mother routine. arguments that were parsed were easy to find :))
m (Talcall moved page ??? Skillset Loading to Charge Skillset Loading: it loads charge.)
(No difference)

Revision as of 11:58, 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