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

A0, A1, A2, A3 opcodes aren't used #16

Closed
CatsAreFluffy opened this issue Oct 20, 2022 · 0 comments
Closed

A0, A1, A2, A3 opcodes aren't used #16

CatsAreFluffy opened this issue Oct 20, 2022 · 0 comments

Comments

@CatsAreFluffy
Copy link

mov 0x400000, %eax is currently encoded as 8B 04 25 00 00 40 00 but can be encoded more efficiently as 67 A1 00 00 40 00. Savings are also possible for %ax and %rax using operand size prefixes, %al using A0, and stores using A2 and A3. These opcodes use a 64-bit immediate memory offset without the address-size prefix, which AFAIK no other instruction supports.

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

1 participant