title: Converting a scasd to cmp dword
body: <p>What is a way to convert this a scasd to cmp dword (I don't need to increment edi).</p>
  
  <pre><code>mov eax, 0x50905090
  mov edi, edx
  scasd
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>cmp dword edx, 0x50905090
  </code></pre>
  
  <p>and</p>
  
  <pre><code>cmp dword [edx], 0x50905090
  </code></pre>
  
  <p>and</p>
  
  <pre><code>cmp dword [edx-0x4], 0x50905090
  </code></pre>
  
  <p>All cause a segfault though.</p>
  
  <p>Any ideas?</p>