title: Define a function with parameters in MASM assembly language
body: <p>I'm trying to write a function in x86 assembly language that will accept three parameters. Is it possible to define a function in MASM assembly language with multiple parameters?</p>
  
  <pre><code>//this is pseudocode: I'm trying to convert this to a valid macro in MASM
  //if var1 is equal to var2, jump to the label jumpToHere
  function jumpIfEqual(var1, var2, jumpToHere){
      cmp var1, var2;
      je jumpToHere;
  }
  </code></pre>
  
  <p>If I could write a valid function to do this, then <code>jumpIfEqual(5, 5, jumpToHere)</code> would be equivalent to</p>
  
  <pre><code>cmp 5, 5;
  je jumpToHere;
  </code></pre>