title: Attempt to execute non instruction
body: <p>This is a mips assembly code for a C code.I am simulating it using Qtspim, but I am getting an error as titled above.</p>
  
  <pre><code>    .text
  
  # j=$s0 , i=$t0 
  
  main:
          li $s0,5 # setting j to 5 
          li $t0,0 # setting i to zero
  
  
  loop:
          slti $t1,$t0,8
          bne $t1,1,Exit
          add $s0,$s0,$t0
          addi $t0,$t0,1
          beq $s0,10,Exit
          j loop
  
  
  Exit:       
  </code></pre>
  
  <p>The C code which I am trying to convert into assembly is as below</p>
  
  <pre><code>  j=5;
  
  for(t=0,i&lt;8;i++){
  
      j=j+1;
      if(j==10)
          return;
  }
  </code></pre>