title: How do i define macros in NASM x86
body: <p>I'm trying to implement couple of macros for x86 project.
  I just moved from MARS mips assembly so dont judge my incompetence.
  I think I'm doing everything as in this guide <code>https://www.tutorialspoint.com/assembly_programming/assembly_macros.htm</code></p>
  <pre><code>  %macro assign a,b
         mov ax, [b]
         mov [a], ax
    %endmacro
  </code></pre>
  <p>This is the error i get:<br />
  fun.asm:21: error: `%macro' expects a parameter count</p>
  <p>I've also tried doing this with &quot;%&quot; before values (a and b) but it only produced syntax errors</p>
  <p>Could anybody point out what exactly am i doing wrong?</p>