title: Can I compare (CMP) immediate values in Assembly?
body: <p>I tried to assemble the following instruction:</p>
  
  <pre><code>cmp 5, 6
  </code></pre>
  
  <p>But I got the following error:</p>
  
  <pre><code>invalid combination of opcode and operands
  </code></pre>
  
  <p>So I edited the previous instruction into this:</p>
  
  <pre><code>cmp DWORD 5, DWORD 6
  </code></pre>
  
  <p>But still I got the same error, so is comparing immediate values illegal in Assembly?</p>