title: What does the BEQ instruction do exactly?
body: <p>I have the following assembly code snippet I am trying to understand. It is assembly for a MC68332 microcontroller.</p>
  
  <pre><code>LOOP
      some instructions
      some more instructions
  BEQ LOOP
  </code></pre>
  
  <p>I've googled BEQ and I have found it means branch on result zero, but I still don't really understand what it does. Does it compare the result of the last instruction to 0, and if it is 0, it goes back to the LOOP line?</p>