Convert assembly to machine code in C++

前端 未结 3 1617
野趣味
野趣味 2021-01-07 01:57

I seek for any lib or function to convert a string of assembly code to machine code, like the following:

char asmString[] = {\"mov eax,13H\"};
byte[] output;         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-07 02:30

    Here is a project that can convert a string of assembly code (Intel or ARM) into its corresponding bytes.

    https://github.com/bsmt/Assembler

    It's written in Objective-C, but the source is there. I hope this helps.

提交回复
热议问题