コード例 #1
0
        public static void PerformRMRRAssignmentOperation(LM1 machine)
        {
            machine.SetCpuMemoryCell(machine.GetAddressOperand(machine.currentAddress, 1),
                                     machine.GetValueOperand(machine.currentAddress, 2));

            machine.GoToNextAddress();
        }
コード例 #2
0
        public static void PerformFromRInMAssignmentOperation(LM1 machine)
        {
            machine.SetVariableInMemory(machine.GetAddressOperand(machine.currentAddress, 2),
                                        machine.GetCpuMemoryCell(machine.GetAddressOperand(machine.currentAddress, 1)));

            machine.GoToNextAddress();
        }