title: Assembly - JG/JNLE/JL/JNGE after CMP
body: <p>I don't understand the <code>JG/JNLE/JL/JNGE</code> instructions, which come after CMP.</p>
  
  <p>for example, If I have:</p>
  
  <pre><code>CMP al,dl
  jg label1
  </code></pre>
  
  <p>When <code>al=101; dl =200</code>.</p>
  
  <p>On what we ask the <code>jg</code>? Is it on <code>al&gt;dl</code>? or <code>al-dl&gt;0</code>?</p>
  
  <p>Same prolbem on the next code:</p>
  
  <pre><code>test al,dl
  jg label1
  </code></pre>
  
  <p>I don't understand what we compare, and on what we ask the "<code>jg</code>".</p>
  
  <p>In other words, I don't understand when we would jump to label1, and when we wouldn't.</p>