Get Second Thread Parameter
Jump to navigation
Jump to search
# ROUTINE: GET SECOND THREAD PARAMETER # No parameters. # Returns: # r2 = (Second thread parameter for current thread) 8014cbf4: 3c018017 lui r1,0x8017 8014cbf8: 00200821 addu r1,r1,r0 8014cbfc: 8c284038 lw r8,0x4038(r1) # threadID 8014cc00: 00000000 nop 8014cc04: 00084280 sll r8,r8,0x0a # threadID * sizeof(thread) 8014cc08: 3c018016 lui r1,0x8016 8014cc0c: 00200821 addu r1,r1,r0 8014cc10: 8c295f98 lw r9,0x5f98(r1) # Base pointer for thread array 8014cc14: 00000000 nop 8014cc18: 01094021 addu r8,r8,r9 # thread 8014cc1c: 8d020004 lw r2,0x0004(r8) # return thread.FuncParam2 8014cc20: 03e00008 jr r31 8014cc24: 00000000 nop