Example #1
0
        public void OpenDebugConsole(InstructionPayload payload)
        {
            Console.WriteLine(">> Debug Console. Type h for help");
            var continueDebug = true;

            while (continueDebug)
            {
                if (payload != null)
                {
                    Console.WriteLine(">> Next " + payload.GetHumanReadbleContent() + "\n");
                }

                Console.Write(">>");
                var input   = Console.ReadLine();
                var toUpper = input.ToUpper();

                if (toUpper.Equals("H"))
                {
                    ShowDebugHelp();
                }

                if (toUpper.Equals(command_rd))
                {
                    var registerdump = environment.GetRegisterStates();
                    Console.WriteLine(registerdump);
                }

                if (toUpper.Equals("C") || toUpper.Equals("N") || toUpper.Equals("Q"))
                {
                    continueDebug = false;
                }
            }
        }
Example #2
0
 public string GetRegisterStates()
 {
     return(environment.GetRegisterStates());
 }