radare2-extras icon indicating copy to clipboard operation
radare2-extras copied to clipboard

Implement plugins for naked-asm

Open radare opened this issue 8 years ago • 5 comments

We cant put this in core becauase of the license, but fits good in radare2-extras

https://github.com/mikeakohn/naken_asm

radare avatar Apr 28 '17 00:04 radare

I'm the main developer of naken_asm.. if there is anything I can do to help let me know.

mikeakohn avatar Jul 25 '17 00:07 mikeakohn

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.

radare avatar Jul 25 '17 11:07 radare

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.

mikeakohn avatar Jul 26 '17 12:07 mikeakohn

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.

radare avatar Jul 26 '17 13:07 radare

https://github.com/radare/radare2-extras

Maijin avatar Jul 28 '17 16:07 Maijin