/* * Copyright 2020 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education. */ #ifndef INSTRUCTION_DECODER_H #define INSTRUCTION_DECODER_H #include #include #include "instructions.h" #include "optional.h" namespace lc3 { namespace core { namespace sim { class InstructionDecoder : public InstructionHandler { public: InstructionDecoder(void); optional findInstructionByEncoding(uint32_t encoding) const; private: std::map> instructions_by_opcode; }; }; }; }; #endif