#include #include #include namespace FxOS { /* Instruction map */ static std::array,65536> insmap; /* Register an instruction at a given opcode. */ void register_instruction(Instruction ins) { uint16_t opcode = ins.opcode; if(insmap[opcode]) { throw std::logic_error("opcode collision"); } insmap[opcode] = ins; } } /* namespace FxOS */