Example #1
0
        public void SetRegister(string register, int value)
        {
            try
            {
                if (DebuggableCore == null)
                {
                    throw new NotImplementedException();
                }

                DebuggableCore.SetCpuRegister(register, value);
            }
            catch (NotImplementedException)
            {
                Console.WriteLine($"Error: {Emulator.Attributes().CoreName} does not yet implement {nameof(IDebuggable.SetCpuRegister)}()");
            }
        }
Example #2
0
        public void SetRegister(string register, int value)
        {
            try
            {
                if (DebuggableCore == null)
                {
                    throw new NotImplementedException();
                }

                DebuggableCore.SetCpuRegister(register, value);
            }
            catch (NotImplementedException)
            {
                Log(string.Format(
                        "Error: {0} does not yet implement setregister()",
                        Emulator.Attributes().CoreName));
            }
        }