title: MIPS - XOR of 2 binary number returns non-binary number
body: <p>I'm doing a simple XOR statement of 2 binary numbers just to test the XOR function but it gives me a weird result.</p>
  
  <p>Program:</p>
  
  <pre><code>li $t0, 10101
  li $t1, 11101
  li $t2, 0
  
  move $a0, $t2
  li $v0,1
  syscall
  
  la $a0, endl
  li $v0,4
  syscall
  
  xor $t2, $t0, $t1
  
  move $a0, $t2
  li $v0,1
  syscall
  
  li $v0,10   # Exit
  syscall         # Bye!
  </code></pre>
  
  <p>This is the result:</p>
  
  <pre><code>0
  3112
  </code></pre>
  
  <p>Last time i checked the XOR of 10101 and 11101=01000, NOT some base 10 number 3112.</p>