Mips assembly language isolating bits
<p>I have 16 hexadecimal values that I'm trying to loop through and isolate the bits at b6,b2,b1,b0 thats where i got the the 0x47 from. </p>

<pre><code>.data
  #dellares all 16 test cases hexadecimal values
  testCases: .byte 0x0,0x1,0x2,0x3,0x4,0x5,0x6,0x7,0x40,0x41,0x42,0x43,0x44,0x45,0x46,0x47

  #set size of array to 16
  size: .word 16

  NL: .asciiz "\n"
  .text       

main:
lw $s7, size
move $s1, $zero
move $s2, $zero

loop:
bge $s1, $s7, loop_end  
lb  $s0, testCases($s2)

andi $a0, $s0, 0x47
li  $v0, 1
syscall
la $a0, NL

li       $v0, 4
syscall
addi     $s1, $s1, 1
addi     $s2, $s2, 4
j        loop

loop_end:
</code></pre>

<p>However this does not print out the desired result, it prints out <a href="https://i.stack.imgur.com/4MuMl.png" rel="nofollow noreferrer">these results</a></p>

<p>Than you for any help</p>