Invalid combination of opcode and operands error

前端 未结 1 849
夕颜
夕颜 2020-12-10 20:08

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

相关标签:
1条回答
  • 2020-12-10 20:44

    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.

    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
    
    0 讨论(0)
提交回复
热议问题