title: ARM Assembly Even or Odd Number in Register
body: <p>I currently have a "Loop" for printing out numbers from R4 and then moving that number to R1 using Stdout. However I want to only print out even numbers. So if I print everything for example my sequence would output as 2, 3, 5, 6, 7, 9, 10 ...etc but I only want to print out the even numbers (2, 6, 10...etc)</p>
  
  <p>This is what I want but I'm not sure if ARM assembly allows this:</p>
  
  <ol>
  <li>Check R4 to see if the number inside register is even.</li>
  <li>If the number is even, MOV R1, R4 and print it out using the Stdout code.</li>
  <li>Else if the number inside R4 is odd, continue to do the loop until how many times specified.</li>
  </ol>
  
  <p>Any help would be appreciated..</p>