title: Is it safe to do two consecutive jumps in assembly?
body: <p>I'm new to assembly language and it is going well for me, however, a question has got my mind, as long as the result of a comparison is stored in <code>%eflags</code> register, can I put two consecutive conditional jumps and expect the result I want?</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>cmpl %eax, %ebx
  je label1
  jl label2      # Is this safe? Is this the right way to do this?
  </code></pre>