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 https://www.tutorialspoint.com/assembly_programming/assembly_macros.htm
%macro assign a,b
mov ax, [b]
mov [a], ax
%endmacro
This is the error i get:
fun.asm:21: error: `%macro' expects a parameter count
I've also tried doing this with "%" before values (a and b) but it only produced syntax errors
Could anybody point out what exactly am i doing wrong?