Get First Thread Parameter
Jump to navigation
Jump to search
# ROUTINE: GET FIRST THREAD PARAMETER # Returns: # r2 = First parameter of current thread 8014cbc0: 3c018017 lui r1,0x8017 8014cbc4: 00200821 addu r1,r1,r0 8014cbc8: 8c284038 lw r8,0x4038(r1) # threadID 8014cbcc: 00000000 nop 8014cbd0: 00084280 sll r8,r8,0x0a # threadID * sizeof(thread) 8014cbd4: 3c018016 lui r1,0x8016 8014cbd8: 00200821 addu r1,r1,r0 8014cbdc: 8c295f98 lw r9,0x5f98(r1) # Base pointer for thread array 8014cbe0: 00000000 nop 8014cbe4: 01094021 addu r8,r8,r9 # thread 8014cbe8: 8d020000 lw r2,0x0000(r8) # return thread.funcParam1 8014cbec: 03e00008 jr r31 8014cbf0: 00000000 nop