Mark Thread As Running (WORLD.BIN)
Jump to navigation
Jump to search
# ROUTINE: Mark Thread As Running (WORLD.BIN) # Analog to Mark Thread As Running in BATTLE.BIN. # Marks specified thread as in use. # Parameters: # r4 = (threadIndex) Specified thread index 800ffdf4: 3c028015 lui r2,0x8015 800ffdf8: 8c42327c lw r2,0x327c(r2) # threads 800ffdfc: 00042280 sll r4,r4,0x0a # threadIndex * sizeof(thread) 800ffe00: 00822021 addu r4,r4,r2 # threads[threadIndex] 800ffe04: 34020001 ori r2,r0,0x0001 800ffe08: 03e00008 jr r31 800ffe0c: ac820048 sw r2,0x0048(r4) # threads[threadIndex].isRunning = true