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 encoding of instructions with add_opcode and REX registers #6

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

Conversation

ftilde
Copy link

@ftilde ftilde commented Oct 27, 2018

This fixes encoding of 'POP R8', 'PUSH R15', etc.

Previously, no "rex byte" was generated when using REX registers with instructions that use opcode_add and the register code (>= 0x8) overflowed into the primary opcode, thus changing the instruction in itself.

This fixes encoding of 'POP R8', 'PUSH R15', etc.
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