Ejemplo n.º 1
0
        public static bool ExecuteInstruction(IMCInstruction instruction, MicroSimulator microSimulator)
        {
            string opCode = UnitConverter.IntToBinary(instruction.OpCode, defaultWidth: 5);

            if (!operatorFunctions.ContainsKey(opCode))
            {
                return(false);
            }

            return(operatorFunctions[opCode](instruction, microSimulator));
        }
Ejemplo n.º 2
0
        public MCLoader(VirtualMemory virtualMemory, MicroSimulator simulator)
        {
            _vm = virtualMemory;

            _simulator = simulator;
        }