MOVing between two memory addresses

后端 未结 6 1075
感情败类
感情败类 2020-11-29 07:50

I\'m trying to learn assembly (so bear with me) and I\'m getting a compile error on this line:

mov byte [t_last], [t_cur]

The error is

6条回答
  •  抹茶落季
    2020-11-29 08:03

    Your suspicion is correct, you can't move from memory to memory.

    Any general-purpose register will do. Remember to PUSH the register if you are not sure what's inside it and to restore it back once done.

提交回复
热议问题