Difference between revisions of "Determine if Status Flags can be Enabled"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
'''NOTE''': This routine actually updates status flags on an action if the action state == 0 (real action)!  It is not only a determination.
 +
 
<font face='Courier New'>
 
<font face='Courier New'>
 
 
  0018e9bc: 3c028019 lui r2,0x8019
 
  0018e9bc: 3c028019 lui r2,0x8019
 
  0018e9c0: 8c42f5fc lw r2,-0x0a04(r2)                  <span style="color:limegreen">r2 = Type of action ?</span>
 
  0018e9c0: 8c42f5fc lw r2,-0x0a04(r2)                  <span style="color:limegreen">r2 = Type of action ?</span>
 
  0018e9c4: 27bdffe8 addiu r29,r29,0xffe8
 
  0018e9c4: 27bdffe8 addiu r29,r29,0xffe8
  0018e9c8: 14400003 bne r2,r0,0x0018e9d8                #If type of action = 0x00 (not reacting) / Else branch to <span style="color:firebrick">END</span>
+
  0018e9c8: 14400003 bne r2,r0,0x0018e9d8                #If type of action = 0x00 (real action) / Else branch to <span style="color:firebrick">END</span>
 
  0018e9cc: afbf0010 sw r31,0x0010(r29)
 
  0018e9cc: afbf0010 sw r31,0x0010(r29)
  0018e9d0: 0c01a3a0 jal 0x00068e80 --> [[Special Status Flag Enabling?|<span style="color:blue">Special Status Flag Enabling</span>]]
+
  0018e9d0: 0c01a3a0 jal 0x00068e80 --> [[Special Status Flag Enabling|<span style="color:blue">Special Status Flag Enabling</span>]]
 
  0018e9d4: 00000000 nop
 
  0018e9d4: 00000000 nop
 
  0018e9d8: 8fbf0010 lw r31,0x0010(r29)
 
  0018e9d8: 8fbf0010 lw r31,0x0010(r29)
Line 13: Line 14:
 
  0018e9e4: 00000000 nop
 
  0018e9e4: 00000000 nop
 
</font>
 
</font>
 +
 +
==Return locations==
 +
0005d84c: [[Status_Setting/Checking_%2B_Equip/R/S/M_Stats]]
 +
0005e8b4: [[Status_infliction/removal%3F]]
 +
0018e2dc: [[Inflicted_status_CT_setting,_xfer_last_used_CT]]
 +
0018e4b4: [[Store_status,modified_ENTD_for_current_attack]]

Latest revision as of 16:51, 14 July 2024

NOTE: This routine actually updates status flags on an action if the action state == 0 (real action)!  It is not only a determination.

0018e9bc: 3c028019 lui r2,0x8019
0018e9c0: 8c42f5fc lw r2,-0x0a04(r2)                   r2 = Type of action ?
0018e9c4: 27bdffe8 addiu r29,r29,0xffe8		
0018e9c8: 14400003 bne r2,r0,0x0018e9d8                #If type of action = 0x00 (real action) / Else branch to END		
0018e9cc: afbf0010 sw r31,0x0010(r29)
0018e9d0: 0c01a3a0 jal 0x00068e80			--> Special Status Flag Enabling
0018e9d4: 00000000 nop
0018e9d8: 8fbf0010 lw r31,0x0010(r29)
0018e9dc: 27bd0018 addiu r29,r29,0x0018
0018e9e0: 03e00008 jr r31
0018e9e4: 00000000 nop

Return locations

0005d84c: Status_Setting/Checking_+_Equip/R/S/M_Stats
0005e8b4: Status_infliction/removal?
0018e2dc: Inflicted_status_CT_setting,_xfer_last_used_CT
0018e4b4: Store_status,modified_ENTD_for_current_attack