MOV src, dest (or) MOV dest, src?

后端 未结 4 1531
轮回少年
轮回少年 2020-12-02 17:58

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

Just now I encountered a book Assembly Language Programming in GNU/Linux for IA32 Architect

4条回答
  •  难免孤独
    2020-12-02 18:12

    mov dest, src is called Intel syntax. (e.g. mov eax, 123)

    mov src, dest is called AT&T syntax. (e.g. mov $123, %eax)

    UNIX assemblers including 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.

提交回复
热议问题