#ifndef CHIP8_INSTRUCTION_HANDLER_H #define CHIP8_INSTRUCTION_HANDLER_H #include #include "chip8.h" #include "instruction.h" class InstructionHandler { private: typedef void (*Handler)(const Chip8&, Instruction); std::map handlers = {}; static void handle0000(const Chip8&, Instruction); public: InstructionHandler(); void handleInstruction(unsigned short, const Chip8&, Instruction); }; #endif //CHIP8_INSTRUCTION_HANDLER_H