diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2024-03-05 19:50:13 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2024-03-05 20:34:34 -0500 |
| commit | e093c21ed880ac3eb72119be15093ee04f8ce299 (patch) | |
| tree | 9f720ebdc0ae415734b1199ed341668c69710a94 /arch/powerpc/assembler.h | |
| parent | 0609276712622908254065546102381466033141 (diff) | |
Move architecture modules into the API repo
Diffstat (limited to 'arch/powerpc/assembler.h')
| -rw-r--r-- | arch/powerpc/assembler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/assembler.h b/arch/powerpc/assembler.h new file mode 100644 index 00000000..950386a9 --- /dev/null +++ b/arch/powerpc/assembler.h @@ -0,0 +1,6 @@ +/* this is intended for use by BINJA */ +int assemble_multiline(const std::string& code, std::vector<uint8_t>& result, std::string& err); + +/* this is lower level API intended to be use by benchmarking tools (eg: test_asm.cpp) */ +int assemble_single(std::string src, uint32_t addr, uint8_t *result, std::string& err, int& failures); +int disasm_capstone(uint8_t *data, uint32_t addr, std::string& result, std::string& err); |
