MOV SRC DEST(或)MOV DEST SRC? [英] MOV src dest (or) MOV dest src?

查看:404
本文介绍了MOV SRC DEST(或)MOV DEST SRC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MOV可能是同时学习ASM的第一条指令每个人都学会。

MOV is probably the first instruction everyone learns while learning ASM.

刚才我遇到了一本书<一个href=\"http://books.google.co.in/books?id=C3_WIQOYE2EC&lpg=PP1&dq=Assembly%20Language%20Programming%20in%20GNU%2FLinux%20for%20IA32%20Architectures&pg=PA26#v=onepage&q=&f=false\">Assembly GNU / Linux中的IA32架构通过拉雅Moona语言程序设计的它说:

Just now I encountered a book Assembly Language Programming in GNU/Linux for IA32 Architectures By Rajat Moona which says:

不过,我才知道这是 MOV DEST,SRC 。它像加载 DEST 的src 。即使维基说了同样的。

But I learnt that it is MOV dest, src. Its like "Load dest with src". Even Wiki says the same.

我并不是说笔者是错误的。我知道他是对的。但我在这里丢失?

I'm not saying that the author is wrong. I know that he is right. But what am I missing here?

顺便说一句..他是用GCC的来组装这些指令。但是,这不应该改变指令语法对不对?

btw.. he is using GCC's as to assemble these instructions. But that shouldn't change the instruction syntax right?

推荐答案

MOV DEST,SRC 被称为 Intel语法

MOV SRC,DEST 被称为 AT&安培; T语法

GNU汇编采用AT&amp; T公司的语法,所有其他x86汇编我知道采用Intel语法。您可以在维基百科上的差异阅读起来。

The GNU assembler uses AT&T syntax, all other x86 assemblers I know of uses Intel syntax. You can read up on the differences on wikipedia.

这篇关于MOV SRC DEST(或)MOV DEST SRC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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