#pragma once #include #include #include #include #include namespace hex::plugin::builtin { namespace prv { class Provider; } struct Disassembly { u64 address; u64 offset; size_t size; std::string bytes; std::string mnemonic; std::string operators; }; class ViewDisassembler : public View { public: explicit ViewDisassembler(); ~ViewDisassembler() override; void drawContent() override; private: bool m_disassembling = false; u64 m_baseAddress = 0; u64 m_codeRegion[2] = { 0 }; bool m_shouldMatchSelection = false; Architecture m_architecture = Architecture::ARM; cs_mode m_mode = cs_mode(0); std::vector m_disassembly; void disassemble(); }; }