SHARE
TWEET

Thread3_Main

a guest Oct 8th, 2016 687 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Thread3_Main: # begin 802469B8 (0019B8)
  2.   addiu $sp, $sp, -0x28
  3.   sw    $ra, 0x1c($sp)
  4.   sw    $a0, 0x28($sp)
  5.   jal   SetupMessageQueues
  6.   nop  
  7.   jal   AllocPool
  8.   nop  
  9.   jal   CopyScriptInterpreter
  10.   nop  
  11.   la    $t6, 0x80202E00 # lui $t6, 0x8020/addiu $t6, $t6, 0x2e00
  12.   addiu $t7, $t6, 0x2000
  13.   lui   $a0, 0x8034
  14.   lui   $a2, 0x8025
  15.   addiu $t8, $zero, 0x14
  16.   sw    $t8, 0x14($sp)
  17.   addiu $a2, $a2, -0x6b00
  18.   addiu $a0, $a0, -0x53c0
  19.   sw    $t7, 0x10($sp)
  20.   addiu $a1, $zero, 4
  21.   jal   CreateThread
  22.   move  $a3, $zero
  23.   lui   $a0, %hi(0x8033AC40) # 0x8034
  24.   jal   osStartThread
  25.   addiu $a0, $a0, %lo(0x8033AC40) # 0xAC40
  26.   la    $t9, 0x80204E00 # lui $t9, 0x8020/addiu $t9, $t9, 0x4e00
  27.   addiu $t0, $t9, 0x2000
  28.   lui   $a0, 0x8034
  29.   lui   $a2, 0x8025
  30.   addiu $t1, $zero, 0xa
  31.   sw    $t1, 0x14($sp)
  32.   addiu $a2, $a2, -0x7510
  33.   addiu $a0, $a0, -0x5570
  34.   sw    $t0, 0x10($sp)
  35.   addiu $a1, $zero, 5
  36.   jal   CreateThread
  37.   move  $a3, $zero
  38.   lui   $a0, %hi(0x8033AA90) # 0x8034
  39.   jal   osStartThread
  40.   addiu $a0, $a0, %lo(0x8033AA90) # 0xAA90
  41. .LThread3_Main_A4: # 80246A5C
  42.   la    $a0, 0x8033AE08 # lui $a0, 0x8034/addiu $a0, $a0, -0x51f8
  43.   addiu $a1, $sp, 0x24
  44.   jal   osRecvMesg
  45.   addiu $a2, $zero, 1
  46.   lw    $t2, 0x24($sp) #HERE IS WHERE I START HAVING TROUBLE
  47.   addiu $t3, $t2, -0x64
  48.   sltiu $at, $t3, 5
  49.   beqz  $at, .LThread3_Main_134
  50.   nop  
  51.   sll   $t3, $t3, 2
  52.   lui   $at, 0x8033
  53.   addu  $at, $at, $t3
  54.   lw    $t3, 0x5b60($at)
  55.   jr    $t3
  56.   nop  
  57.   jal   proc_8024669C
  58.   nop  
  59.   b     .LThread3_Main_134
  60.   nop  
  61.   jal   proc_802467FC
  62.   nop  
  63.   b     .LThread3_Main_134
  64.   nop  
  65.   jal   proc_8024694C
  66.   nop  
  67.   b     .LThread3_Main_134
  68.   nop  
  69.   jal   KickTask
  70.   nop  
  71.   b     .LThread3_Main_134
  72.   nop  
  73.   jal   proc_8024639C
  74.   nop  
  75.   b     .LThread3_Main_134
  76.   nop  
  77. .LThread3_Main_134: # 80246AEC
  78.   jal   Dummy802461DC
  79.   nop  
  80.   b     .LThread3_Main_A4
  81.   nop  
  82.   b     .LThread3_Main_14C
  83.   nop  
  84. .LThread3_Main_14C: # 80246B04
  85.   lw    $ra, 0x1c($sp)
  86.   addiu $sp, $sp, 0x28
  87.   jr    $ra
  88.   nop  
  89. # end Thread3_Main
  90.  
  91.  
  92.  
  93. void Thread3_Main()
  94. {
  95.     SetupMessageQueues();
  96.     AllocPool();
  97.     CopyScriptInterpreter();
  98.     osCreateThread(Thread4,4,Thread4(),NULL,sp4+0x2000,20);
  99.     osStartThread(Thread4);
  100.     osCreateThread(Thread5,5,Thread5(),NULL,sp5+0x2000,20);
  101.     osStartThread(Thread5);
  102.     uint32_t check = osRecvMesg(Thread5,36,OS_MESG_BLOCK);
  103.     ;HERE IS WHERE I START HAVING TROUBLE
  104. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top