#ifndef __DISASSEMBLER_HPP #define __DISASSEMBLER_HPP #include #include "Logger.hpp" #include "sal/SALConfig.hpp" #include #include namespace fail { struct DISASSEMBLER { //! Inform about failed disassembly static const std::string FAILED; }; /** * @class Instruction * @brief An Instruction represents an disassembled opcode */ struct Instruction { address_t address; //!< The instruction address regdata_t opcode; //!< The opcode itself std::string instruction; //!< The disassembled instruction std::string comment; //!< Comment (rest of line after ; ) Instruction(address_t address = ADDR_INV, regdata_t opcode = 0, const std::string& instr = DISASSEMBLER::FAILED, const std::string& comment = "") : address(address), opcode(opcode), instruction(instr), comment(comment) { }; }; // InstructionMap_t; InstructionMap_t m_code; void evaluate(const std::string &); }; } // end of namespace #endif // DISASSEMBLER_HPP