I am trying to write a program which takes the binary input from a text file and sends it as a parameter to an assembly function. That assembly function must print this bina
I wonder what have you tried to do in this line:
mov msg, [esp+8]
But you are not allowed to move from memory to memory. Refer to this page, for instance.
mov
If you want to move something from memory to memory, use a register as a temporary storage. For example:
mov eax, [var1] mov [var2], eax