-
Notifications
You must be signed in to change notification settings - Fork 162
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
Allow asm printing for CALL(RIPRelativeOffset(3)) #105
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the patch. However, proper assembly listing should be:
offset(%rip)
whenassembly_format == "gas"
offset(IP)
whenassembly_format == "go"
rip+offset
otherwise
Previously it printed: CALL <peachpy.x86_64.operand.RIPRelativeOffset object at 0x7f6e1e126430> Now it prints: CALL rip+28
Thanks @Maratyszcza. I implemented the correct assembly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few minor changes
Thank you! |
Thanks for merging! |
Previously it printed: CALL <peachpy.x86_64.operand.RIPRelativeOffset object at 0x7f6e1e126430> Now it prints: CALL rip+28
Without this PR, you get an error:
with this PR, the Python code:
prints the following assembly:
and the following machine code: