Implement plugins for naked-asm
We cant put this in core becauase of the license, but fits good in radare2-extras
https://github.com/mikeakohn/naken_asm
I'm the main developer of naken_asm.. if there is anything I can do to help let me know.
Would you like to write those plugins? It is basically to write few lines of c code for each arch adding the glue code that interfaces the plugin struct exposed with the nakedasm api. Those should be available via r2pm. This way using nakedasm from r2 would be possible and you can reuse all our testsuite to compare with other assemblers
On 25 Jul 2017, at 02:38, Michael Kohn [email protected] wrote:
I'm the main developer of naken_asm.. if there is anything I can do to help let me know.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I can look into it. I've been thinking of having the ability for naken_asm to be accessible as library (original thinking was for having the possibility of a text editor with the built in assembler). This might be a good excuse to work on that.
sounds good! actually libr/asm provides the high level api for a generic assembler, so the only primitive required to write a plugin is to get a string out of an array of bytes with a specific length and a specific program counter. the rest is handled by r2 side.
if you need a starting point check any simple example i would go for the asm_baleful.c or any other one in libr/asm/ of the radare2-extras repo
On 26 Jul 2017, at 14:28, Michael Kohn [email protected] wrote:
I can look into it. I've been thinking of having the ability for naken_asm to be accessible as library (original thinking was for having the possibility of a text editor with the built in assembler). This might be a good excuse to work on that.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/radare/radare2-extras/issues/118#issuecomment-318038502, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3-lryEMVc1x2BGp4ZeDr6LTVn5zCcKks5sRzEHgaJpZM4NK6af.
https://github.com/radare/radare2-extras