Difference between revisions of "Special monster check"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<font face='Courier New'>
+
# Special monster check Special monster check
Special monster check Special monster check
+
  # Parameters:
  r4 = current job
+
r4 = job id
  00120b90: 2482ffc4 addiu r2,r4,0xffc4 job - 3C
+
 
  00120b94: 2484ff70 addiu r4,r4,0xff70 job - 90 (special monster
+
# Return value:
  00120b98: 2c84000b sltiu r4,r4,0x000b
+
#  0x00 = is not a special monster
  00120b9c: 10800002 beq r4,r0,0x00120ba8 branch if not special monster(job<90)
+
#  0x01 = is a special monster
  00120ba0: 2c42000e sltiu r2,r2,0x000e
+
  00120ba4: 34020001 ori r2,r0,0x0001 return 1 if special monster
+
  00120b90: 2482ffc4 addiu r2,r4,-0x003c        # first set = job id -= 0x3C
  00120ba8: 03e00008 jr r31
+
  00120b94: 2484ff70 addiu r4,r4,-0x0090        # second set = job id -= 0x90
  00120bac: 00000000 nop</font>
+
  00120b98: 2c84000b sltiu r4,r4,0x000b         #
 +
  00120b9c: 10800002 beq r4,r0,0x00120ba8       # branch if not special monster (job is less than 90)
 +
  00120ba0: 2c42000e sltiu r2,r2,0x000e         #
 +
  00120ba4: 34020001 ori r2,r0,0x0001           # return 1 if special monster
 +
  00120ba8: 03e00008 jr r31                     #
 +
  00120bac: 00000000 nop                         #
 +
 +
== Return Locations ==
 +
0x00120f6c: [[Load party data into Formation screen data]]
 +
0x001211c0: [[001210e8 - 001212b4]]
 +
0x001224c8: [[Set Jobs unlocked by others]]
 +
0x0012262c: [[Calculate Job Wheel Jobs]]
 +
0x00122a9c: [[Skillset Display]]
 +
0x00125588: [[Lock Equipment And Abilities]]

Latest revision as of 02:57, 29 September 2024

# Special monster check Special monster check
# Parameters:
#   r4 = job id
 
# Return value:
#   0x00 = is not a special monster
#   0x01 = is a special monster

00120b90: 2482ffc4 addiu r2,r4,-0x003c         # first set = job id -= 0x3C
00120b94: 2484ff70 addiu r4,r4,-0x0090         # second set = job id -= 0x90
00120b98: 2c84000b sltiu r4,r4,0x000b          # 
00120b9c: 10800002 beq r4,r0,0x00120ba8        # branch if not special monster (job is less than 90)
00120ba0: 2c42000e sltiu r2,r2,0x000e          # 
00120ba4: 34020001 ori r2,r0,0x0001            # return 1 if special monster
00120ba8: 03e00008 jr r31                      # 
00120bac: 00000000 nop                         # 

Return Locations

0x00120f6c: Load party data into Formation screen data
0x001211c0: 001210e8 - 001212b4
0x001224c8: Set Jobs unlocked by others
0x0012262c: Calculate Job Wheel Jobs
0x00122a9c: Skillset Display
0x00125588: Lock Equipment And Abilities