内存到内存的MOV - 正确的语法 [英] Memory to memory MOV - Correct Syntax

查看:771
本文介绍了内存到内存的MOV - 正确的语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图完成与ASM以下内容:

I'm trying to accomplish the following with ASM:

MOV [00A30020],[EBX + 50]

所以,我想 MOV 的价值EBX + 50 进入00A30020,但是编译器说,这是一个无效的声明。

So, I want to mov the value of ebx+50 into 00A30020, but the compiler says it's an invalid statement.

推荐答案

有作为一个的内存的没有这样的事的内存的移动(与 MOV ,里面还有移动字符串)。请参见此表

There is no such thing as a memory to memory move (with mov, there is also move string). See this table.

您可以加载 [EBX + 50] 在一个寄存器,然后储存,或做

You could load [ebx+50] in a register and then store it, or do

push dword [ebx+50]
pop dword [00A30020]

这篇关于内存到内存的MOV - 正确的语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆