summaryrefslogtreecommitdiff
path: root/arch/powerpc/assembler.h
blob: 950386a960b3e2bfa9d7e517d49a542f59a65a36 (plain)
1
2
3
4
5
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);