title: How to write modulus (% in C++) in assembly language
body: <p>I do not know what instruction I have to use in order to translate %2   </p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main () {
       int number;
       cin &gt;&gt; number;
       if (number % 2 == 0) {    // I cannot translate this part.
         cout &lt;&lt; "Even\n";
      }
      else {
         cout &lt;&lt; "Odd\n";
      }
      return 0;
   }
  </code></pre>