Check Thread Running Status (WORLD.BIN) (0x100164)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
#   ROUTINE: CHECK THREAD RUNNING STATUS (WORLD.BIN) (0x100164)
#       Find whether or not thread is running / in use
#       This routine is an analog to Check Thread Running Status in BATTLE.BIN.
#       This routine also already exists in WORLD.BIN: Check Thread Running Status (WORLD.BIN)
#       Parameters:
#           r4 = ThreadID
#       Returns:
#           r2 = thread.IsRunning

80100164: 00044280 sll r8,r4,0x0a
80100168: 3c018015 lui r1,0x8015
8010016c: 00200821 addu r1,r1,r0
80100170: 8c29327c lw r9,0x327c(r1)
80100174: 00000000 nop
80100178: 01094020 add r8,r8,r9
8010017c: 8d020048 lw r2,0x0048(r8)
80100180: 03e00008 jr r31
80100184: 00000000 nop