예제 #1
0
        public static void Main()
        {
            //TODO: Use some kind of factory for creating the correct CPU class
            Hardware.Devices.CPU TheCPU = new Hardware.CPUs.CPUx86_32();

            //Note: Do not use Thread.Sleep within this task because this is the idle task. Its purpose
            //      is to be the only thread left awake when all others are slept.
            while (true)
            {
                *((ushort*)0xB809E) = (0x1F00 | '1');
                TheCPU.Halt();

                *((ushort*)0xB809E) = (0x3F00 | '2');
                TheCPU.Halt();
            }
        }
예제 #2
0
        public static void Main()
        {
            //TODO: Use some kind of factory for creating the correct CPU class
            Hardware.Devices.CPU TheCPU = new Hardware.CPUs.CPUx86_32();

            //Note: Do not use Thread.Sleep within this task because this is the idle task. Its purpose
            //      is to be the only thread left awake when all others are slept.
            while (true)
            {
                *((ushort *)0xB809E) = (0x1F00 | '1');
                TheCPU.Halt();

                *((ushort *)0xB809E) = (0x3F00 | '2');
                TheCPU.Halt();
            }
        }