Difference between revisions of "26 Equipped: Steal Hit (SP+X)%"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " [26] 00189794: 27bdffe8 addiu r29,r29,0xffe8 00189798: afbf0010 sw r31,0x0010(r29) 0018979c: 0c061e72 jal 0x 001879c8 Skill Slot Hard-Coding BREAK/STEAL/MIGHTY ...")
 
Line 2: Line 2:
 
  00189794: 27bdffe8 addiu r29,r29,0xffe8
 
  00189794: 27bdffe8 addiu r29,r29,0xffe8
 
  00189798: afbf0010 sw r31,0x0010(r29)
 
  00189798: afbf0010 sw r31,0x0010(r29)
  0018979c: 0c061e72 jal 0x 001879c8      Skill Slot Hard-Coding BREAK/STEAL/MIGHTY SWORD
+
  0018979c: 0c061e72 jal 0x 001879c8      [[Steal/Break/Might Sword Hard Coding]]
 
  001897a0: 00000000 nop
 
  001897a0: 00000000 nop
  001897a4: 10400008 beq r2,r0,0x 001897c8
+
  001897a4: 10400008 beq r2,r0,0x 001897c8 Branch if successful
 
  001897a8: 00000000 nop
 
  001897a8: 00000000 nop
  001897ac: 0c061390 jal 0x 00184e40      If fail, set stuff to 0 (Made redundant by above branch statement.)
+
  001897ac: 0c061390 jal 0x 00184e40      [[Elemental Nullification]] If fail, set stuff to 0 (Made redundant by above branch statement.)
 
  001897b0: 00000000 nop
 
  001897b0: 00000000 nop
 
  001897b4: 3c038019 lui r3,0x8019
 
  001897b4: 3c038019 lui r3,0x8019
  001897b8: 8c632d90 lw r3,0x2d90(r3)
+
  001897b8: 8c632d90 lw r3,0x2d90(r3)         Target current action data pointer
  001897bc: 34020007 ori r2,r0,0x0007
+
  001897bc: 34020007 ori r2,r0,0x0007         r2 = 7
 
  001897c0: 08062606 j 0x 00189818
 
  001897c0: 08062606 j 0x 00189818
  001897c4: a0620002 sb r2,0x0002(r3)
+
  001897c4: a0620002 sb r2,0x0002(r3)         Store catch?
  001897c8: 0c062144 jal 0x 00188510      Physical Evade Calculation
+
  001897c8: 0c062144 jal 0x 00188510      [[Physical Evade Calculation]]
 
  001897cc: 00000000 nop
 
  001897cc: 00000000 nop
  001897d0: 14400011 bne r2,r0,0x 00189818
+
  001897d0: 14400011 bne r2,r0,0x 00189818 Branch if fail
 
  001897d4: 00000000 nop
 
  001897d4: 00000000 nop
  001897d8: 0c06178c jal 0x 00185e30      Load SP and X
+
  001897d8: 0c06178c jal 0x 00185e30      [[Store Speed and X]]
 
  001897dc: 00000000 nop
 
  001897dc: 00000000 nop
  001897e0: 0c0622c5 jal 0x 00188b14      Hit Chance Calculation (Contains superfluous checks for berserk and frog on the user when the user can't use this while berserk or frogged.)
+
  001897e0: 0c0622c5 jal 0x 00188b14      [[Physical Routine for Hit % abilities]]
 
  001897e4: 00000000 nop
 
  001897e4: 00000000 nop
  001897e8: 1440000b bne r2,r0,0x 00189818
+
  001897e8: 1440000b bne r2,r0,0x 00189818 Branch if attack misses (end)
 
  001897ec: 00000000 nop
 
  001897ec: 00000000 nop
  001897f0: 0c061d8e jal 0x 00187638      Maintenance Check
+
  001897f0: 0c061d8e jal 0x 00187638      [[Maintenance]]
 
  001897f4: 00000000 nop
 
  001897f4: 00000000 nop
 
  001897f8: 3c038019 lui r3,0x8019
 
  001897f8: 3c038019 lui r3,0x8019
  001897fc: 8c632d90 lw r3,0x2d90(r3)
+
  001897fc: 8c632d90 lw r3,0x2d90(r3)         Target current action data pointer
 
  00189800: 00000000 nop
 
  00189800: 00000000 nop
  00189804: 90620000 lbu r2,0x0000(r3)
+
  00189804: 90620000 lbu r2,0x0000(r3)         Load hit byte
 
  00189808: 00000000 nop
 
  00189808: 00000000 nop
  0018980c: 10400002 beq r2,r0,0x 00189818
+
  0018980c: 10400002 beq r2,r0,0x 00189818 Branch if attack misses (end)
  00189810: 34020010 ori r2,r0,0x0010
+
  00189810: 34020010 ori r2,r0,0x0010        
  00189814: a4620010 sh r2,0x0010(r3)
+
  00189814: a4620010 sh r2,0x0010(r3)         Store special flag - Steal Item
 
  00189818: 8fbf0010 lw r31,0x0010(r29)
 
  00189818: 8fbf0010 lw r31,0x0010(r29)
  0018981c: 27bd 0018 addiu r29,r29,0x 0018
+
  0018981c: 27bd0018 addiu r29,r29,0x 0018
 
  00189820: 03e00008 jr r31
 
  00189820: 03e00008 jr r31
 
  00189824: 00000000 nop
 
  00189824: 00000000 nop

Revision as of 23:59, 20 November 2016

[26]
00189794: 27bdffe8 addiu r29,r29,0xffe8		
00189798: afbf0010 sw r31,0x0010(r29)		
0018979c: 0c061e72 jal 0x 001879c8      		Steal/Break/Might Sword Hard Coding
001897a0: 00000000 nop				
001897a4: 10400008 beq r2,r0,0x 001897c8		Branch if successful
001897a8: 00000000 nop				
001897ac: 0c061390 jal 0x 00184e40      		Elemental Nullification If fail, set stuff to 0 (Made redundant by above branch statement.)
001897b0: 00000000 nop				
001897b4: 3c038019 lui r3,0x8019		
001897b8: 8c632d90 lw r3,0x2d90(r3)		        Target current action data pointer
001897bc: 34020007 ori r2,r0,0x0007		        r2 = 7
001897c0: 08062606 j 0x 00189818			
001897c4: a0620002 sb r2,0x0002(r3)		        Store catch?
001897c8: 0c062144 jal 0x 00188510      		Physical Evade Calculation
001897cc: 00000000 nop				
001897d0: 14400011 bne r2,r0,0x 00189818		Branch if fail
001897d4: 00000000 nop				
001897d8: 0c06178c jal 0x 00185e30      		Store Speed and X
001897dc: 00000000 nop				
001897e0: 0c0622c5 jal 0x 00188b14      		Physical Routine for Hit % abilities
001897e4: 00000000 nop				
001897e8: 1440000b bne r2,r0,0x 00189818		Branch if attack misses (end)
001897ec: 00000000 nop				
001897f0: 0c061d8e jal 0x 00187638      		Maintenance
001897f4: 00000000 nop				
001897f8: 3c038019 lui r3,0x8019		
001897fc: 8c632d90 lw r3,0x2d90(r3)		        Target current action data pointer 
00189800: 00000000 nop				
00189804: 90620000 lbu r2,0x0000(r3)		        Load hit byte
00189808: 00000000 nop				
0018980c: 10400002 beq r2,r0,0x 00189818		Branch if attack misses (end)
00189810: 34020010 ori r2,r0,0x0010		        
00189814: a4620010 sh r2,0x0010(r3)		        Store special flag - Steal Item
00189818: 8fbf0010 lw r31,0x0010(r29)		
0018981c: 27bd0018 addiu r29,r29,0x 0018		
00189820: 03e00008 jr r31			
00189824: 00000000 nop