示例#1
0
        public static void Main()
        {
            ExceptionMethods.AddExceptionHandlerInfo(null, null);

            UART.Init();
            BasicConsole.Init();
            BasicConsole.WriteLine("Kernel executing...");

            try
            {
                ManagedMain();
            }
            catch
            {
                BasicConsole.SetTextColour(BasicConsole.error_colour);
                BasicConsole.WriteLine("Startup error! " + ExceptionMethods.CurrentException.Message);
                BasicConsole.WriteLine("FlingOS forced to halt!");
                BasicConsole.SetTextColour(BasicConsole.default_colour);
            }

            bool OK2 = true;

            while (OK2)
            {
                ;
            }
        }