Difference between revisions of "BUNIT.OUT Special Monster check"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " 001c6834: 2482ffc4 addiu r2,r4,-0x003c 001c6838: 2484ff70 addiu r4,r4,-0x0090 001c683c: 2c84000b sltiu r4,r4,0x000b 001c6840: 10800002 beq r4,r0,0x001c684c 001c6844: 2c4...")
 
Line 1: Line 1:
 +
see also: [[JOBSTTS.OUT Special Monster check]]
 +
find: world routine that does the same thing
  
  001c6834: 2482ffc4 addiu r2,r4,-0x003c
+
  001c6834: 2482ffc4 addiu r2,r4,-0x003c           job ID - 0x3c
  001c6838: 2484ff70 addiu r4,r4,-0x0090
+
  001c6838: 2484ff70 addiu r4,r4,-0x0090           job ID - 0x90
  001c683c: 2c84000b sltiu r4,r4,0x000b
+
  001c683c: 2c84000b sltiu r4,r4,0x000b             check if special monster
  001c6840: 10800002 beq r4,r0,0x001c684c
+
  001c6840: 10800002 beq r4,r0,0x001c684c           end if not special monster (90 - 9b)
  001c6844: 2c42000e sltiu r2,r2,0x000e
+
  001c6844: 2c42000e sltiu r2,r2,0x000e             return if special monster (3c - 49)
  001c6848: 34020001 ori r2,r0,0x0001
+
  001c6848: 34020001 ori r2,r0,0x0001               if special monster (90 - 9b) return 1
  001c684c: 03e00008 jr r31
+
  001c684c: 03e00008 jr r31                         else return 0
 
  001c6850: 00000000 nop
 
  001c6850: 00000000 nop

Revision as of 07:02, 14 December 2024

see also: JOBSTTS.OUT Special Monster check
find: world routine that does the same thing
001c6834: 2482ffc4 addiu r2,r4,-0x003c            job ID - 0x3c
001c6838: 2484ff70 addiu r4,r4,-0x0090            job ID - 0x90
001c683c: 2c84000b sltiu r4,r4,0x000b             check if special monster
001c6840: 10800002 beq r4,r0,0x001c684c           end if not special monster (90 - 9b)
001c6844: 2c42000e sltiu r2,r2,0x000e             return if special monster (3c - 49)
001c6848: 34020001 ori r2,r0,0x0001               if special monster (90 - 9b) return 1
001c684c: 03e00008 jr r31                         else return 0
001c6850: 00000000 nop