Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

操作数顺序中的格式是不是写错了. #2

Closed
xx10n31y opened this issue Jan 3, 2024 · 1 comment
Closed

操作数顺序中的格式是不是写错了. #2

xx10n31y opened this issue Jan 3, 2024 · 1 comment

Comments

@xx10n31y
Copy link

xx10n31y commented Jan 3, 2024

4.2.3. 操作数顺序

AT&T和Intel格式中的源操作数和目标操作数的位置正好相反。
在Intel汇编格式中,目标操作数在源操作数的左边,如 addl $1, %eax
而在AT&T汇编格式中,目标操作数在源操作数的右边,如 add eax, 1

AT&T的寄存器和立即操作数才需要加前缀, Intel的不用, 但是内容里面是不是写反了 😐

@LyleMi
Copy link
Owner

LyleMi commented Jan 3, 2024

感谢指出,已改正

@LyleMi LyleMi closed this as completed Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants