void initialise() { sInstructionMap.resize(static_cast<size_t>(InstructionID::InstructionCount), nullptr); // Register instruction handlers registerBranchInstructions(); registerConditionInstructions(); registerFloatInstructions(); registerIntegerInstructions(); registerLoadStoreInstructions(); registerPairedInstructions(); registerSystemInstructions(); }
void Interpreter::RegisterFunctions() { static bool didInit = false; if (!didInit) { // Reserve instruction map sInstructionMap.resize(static_cast<size_t>(InstructionID::InstructionCount), nullptr); // Register instruction handlers registerBranchInstructions(); registerConditionInstructions(); registerFloatInstructions(); registerIntegerInstructions(); registerLoadStoreInstructions(); registerPairedInstructions(); registerSystemInstructions(); didInit = true; } }