Difference between revisions of "0x142ca8"
Jump to navigation
Jump to search
(Created page with " # ROUTINE: ? 0x142ca8 80142ca8: 3c038016 lui r3,0x8016 80142cac: 94635ff6 lhu r3,0x5ff6(r3) # *0x80165ff6 80142cb0: 34020002 ori r2,r0,0x0002 ...") |
|||
Line 7: | Line 7: | ||
80142cb8: 00000000 nop | 80142cb8: 00000000 nop | ||
80142cbc: 3c038017 lui r3,0x8017 | 80142cbc: 3c038017 lui r3,0x8017 | ||
− | 80142cc0: 8c634038 lw r3,0x4038(r3) # | + | 80142cc0: 8c634038 lw r3,0x4038(r3) # currentThreadID |
80142cc4: 00000000 nop | 80142cc4: 00000000 nop | ||
− | 80142cc8: 10600016 beq r3,r0,0x80142d24 # if ( | + | 80142cc8: 10600016 beq r3,r0,0x80142d24 # if (currentThreadID == 0), return |
80142ccc: 00000000 nop | 80142ccc: 00000000 nop | ||
80142cd0: 3c028017 lui r2,0x8017 | 80142cd0: 3c028017 lui r2,0x8017 | ||
Line 15: | Line 15: | ||
80142cd8: 00000000 nop | 80142cd8: 00000000 nop | ||
80142cdc: 14400003 bne r2,r0,0x80142cec | 80142cdc: 14400003 bne r2,r0,0x80142cec | ||
− | 80142ce0: 00031280 sll r2,r3,0x0a # | + | 80142ce0: 00031280 sll r2,r3,0x0a # currentThreadID * sizeof(thread) |
# if (*0x801697d0 == 0) { | # if (*0x801697d0 == 0) { | ||
80142ce4: 3c018017 lui r1,0x8017 | 80142ce4: 3c018017 lui r1,0x8017 | ||
Line 22: | Line 22: | ||
80142cec: 3c018017 lui r1,0x8017 | 80142cec: 3c018017 lui r1,0x8017 | ||
80142cf0: 00220821 addu r1,r1,r2 | 80142cf0: 00220821 addu r1,r1,r2 | ||
− | 80142cf4: 8c2398b8 lw r3,-0x6748(r1) # | + | 80142cf4: 8c2398b8 lw r3,-0x6748(r1) # currentThread.TaskID |
80142cf8: 34020001 ori r2,r0,0x0001 # 1 | 80142cf8: 34020001 ori r2,r0,0x0001 # 1 | ||
− | 80142cfc: 14620005 bne r3,r2,0x80142d14 # if ( | + | 80142cfc: 14620005 bne r3,r2,0x80142d14 # if (currentThread.TaskID == 1) { |
80142d00: 00000000 nop | 80142d00: 00000000 nop | ||
80142d04: 3c028017 lui r2,0x8017 | 80142d04: 3c028017 lui r2,0x8017 | ||
Line 36: | Line 36: | ||
80142d1c: 3c018017 lui r1,0x8017 | 80142d1c: 3c018017 lui r1,0x8017 | ||
80142d20: ac2297d0 sw r2,-0x6830(r1) # *0x801697d0 = value | 80142d20: ac2297d0 sw r2,-0x6830(r1) # *0x801697d0 = value | ||
− | 80142d24: 03e00008 jr r31 | + | 80142d24: 03e00008 jr r31 # return value; |
80142d28: 00000000 nop | 80142d28: 00000000 nop |
Revision as of 05:28, 7 January 2017
# ROUTINE: ? 0x142ca8 80142ca8: 3c038016 lui r3,0x8016 80142cac: 94635ff6 lhu r3,0x5ff6(r3) # *0x80165ff6 80142cb0: 34020002 ori r2,r0,0x0002 # 2 80142cb4: 1462001b bne r3,r2,0x80142d24 # if (*0x80165ff6 != 2), return 80142cb8: 00000000 nop 80142cbc: 3c038017 lui r3,0x8017 80142cc0: 8c634038 lw r3,0x4038(r3) # currentThreadID 80142cc4: 00000000 nop 80142cc8: 10600016 beq r3,r0,0x80142d24 # if (currentThreadID == 0), return 80142ccc: 00000000 nop 80142cd0: 3c028017 lui r2,0x8017 80142cd4: 8c4297d0 lw r2,-0x6830(r2) # *0x801697d0 80142cd8: 00000000 nop 80142cdc: 14400003 bne r2,r0,0x80142cec 80142ce0: 00031280 sll r2,r3,0x0a # currentThreadID * sizeof(thread) # if (*0x801697d0 == 0) { 80142ce4: 3c018017 lui r1,0x8017 80142ce8: ac20d9b8 sw r0,-0x2648(r1) # *0x8016d9b8 = 0 # } 80142cec: 3c018017 lui r1,0x8017 80142cf0: 00220821 addu r1,r1,r2 80142cf4: 8c2398b8 lw r3,-0x6748(r1) # currentThread.TaskID 80142cf8: 34020001 ori r2,r0,0x0001 # 1 80142cfc: 14620005 bne r3,r2,0x80142d14 # if (currentThread.TaskID == 1) { 80142d00: 00000000 nop 80142d04: 3c028017 lui r2,0x8017 80142d08: 8c42d9b4 lw r2,-0x264c(r2) # value = *0x8016d9b4 80142d0c: 08050b47 j 0x80142d1c 80142d10: 00000000 nop # } else { 80142d14: 3c028017 lui r2,0x8017 80142d18: 8c42d9b8 lw r2,-0x2648(r2) value = *0x8016d9b8 # } 80142d1c: 3c018017 lui r1,0x8017 80142d20: ac2297d0 sw r2,-0x6830(r1) # *0x801697d0 = value 80142d24: 03e00008 jr r31 # return value; 80142d28: 00000000 nop