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

Fix using R8-15 in addressing #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ftilde
Copy link

@ftilde ftilde commented Oct 27, 2018

REX registers were previously not allowed in memory addressing operands (i.e., Operand::Indirect*).

To be honest, I'm not too experienced in x86 opcode encoding and I'm not to sure if this is the correct way to fix this, but it "works for me" (for now).

For example, I'm not sure if this change should be extended to encode_indirect_32 using Reg::R8D etc., as it seems to be used as a fallback when encode_indirect_64 fails.

Feel free to comment on my concerns and make suggestions for further modifications.

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

Successfully merging this pull request may close these issues.

1 participant