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

replace Nasm assembler with Keystone engine #82

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

replace Nasm assembler with Keystone engine #82

wants to merge 4 commits into from

Conversation

aquynh
Copy link

@aquynh aquynh commented Jun 23, 2016

ditch Nasm assembler & replace it with Keystone. see #81

@aquynh aquynh mentioned this pull request Jun 23, 2016
@@ -754,7 +756,17 @@ def assemble(self, asmcode, bits=None):
"""
if bits is None:
(arch, bits) = self.getarch()
return Nasm.assemble(asmcode, bits)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use an helper function instead of putting everything here.

@danghvu
Copy link
Collaborator

danghvu commented Jun 24, 2016

Can you make a lib/keystone.py file the same way as we did for Nasm and move these code in there? This is helpful while we are making peda2 too. Please keep the lib/nasm.py the same too, there is no point removing any code from it.

Anyway, this doesn't work out of the box because user has to install keystone, a warning is helpful.

@aquynh
Copy link
Author

aquynh commented Jun 26, 2016

yes, will do when i have more time.

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.

3 participants