0013d578 - 0013d60c
Jump to navigation
Jump to search
0013d578: 3c028016 lui r2,0x8016 0013d57c: 9442604a lhu r2,0x604a(r2) 0013d580: 27bdffe0 addiu r29,r29,0xffe0 0013d584: afbf0018 sw r31,0x0018(r29) 0013d588: afb10014 sw r17,0x0014(r29) 0013d58c: 1440001a bne r2,r0,0x0013d5f8 0013d590: afb00010 sw r16,0x0010(r29) 0013d594: 0c053325 jal 0x0014cc94 0013d598: 34040003 ori r4,r0,0x0003 0013d59c: 14400016 bne r2,r0,0x0013d5f8 0013d5a0: 34020002 ori r2,r0,0x0002 0013d5a4: 34100004 ori r16,r0,0x0004 0013d5a8: 34110003 ori r17,r0,0x0003 0013d5ac: 12110005 beq r16,r17,0x0013d5c4 0013d5b0: 00000000 nop 0013d5b4: 0c053325 jal 0x0014cc94 Check Thread Running Status 0013d5b8: 02002021 addu r4,r16,r0 0013d5bc: 14400005 bne r2,r0,0x0013d5d4 branch if thread is running 0013d5c0: 00000000 nop 0013d5c4: 26100001 addiu r16,r16,0x0001 0013d5c8: 2a02000a slti r2,r16,0x000a 0013d5cc: 1440fff7 bne r2,r0,0x0013d5ac 0013d5d0: 00000000 nop 0013d5d4: 3c038016 lui r3,0x8016 0013d5d8: 94635ff6 lhu r3,0x5ff6(r3) 0013d5dc: 34020001 ori r2,r0,0x0001 0013d5e0: 14620003 bne r3,r2,0x0013d5f0 branch if tutorial value is not 1 0013d5e4: 3a02000a xori r2,r16,0x000a bitflip 8 and 2? 0013d5e8: 0804f57e j 0x0013d5f8 0013d5ec: 34020002 ori r2,r0,0x0002 if tutorial is 1, set thread value to 2 0013d5f0: 0002102b sltu r2,r0,r2 0013d5f4: 00021080 sll r2,r2,0x02 return if value is 0, times 4 0013d5f8: 8fbf0018 lw r31,0x0018(r29) 0013d5fc: 8fb10014 lw r17,0x0014(r29) 0013d600: 8fb00010 lw r16,0x0010(r29) 0013d604: 27bd0020 addiu r29,r29,0x0020 0013d608: 03e00008 jr r31 0013d60c: 00000000 nop