コード例 #1
0
ファイル: Kernel.cs プロジェクト: hectormartin42/retro-os
 protected override void Run()
 {
     Console.Write("Input: ");
     var input = Console.ReadLine();
     Console.Write("Text typed: ");
     Console.WriteLine(input);
     RETRO.Drivers.RTC.RTC.PrintTime();
     //VGA.Mode();
     //VGA.Clear(3);
     //VGA.Plot(23, 56, 8);
     Cosmos.Hardware.Drivers.PCI.Video.VMWareSVGAII SVGA = new Cosmos.Hardware.Drivers.PCI.Video.VMWareSVGAII();
     SVGA.SetMode(1024, 768, 8);
     for (int x = 0; x < 256; x++)
     {
         ushort y = (ushort)(x * 32);
         SVGA.Fill(y,1,32,32,(uint)x);
     }
 }
コード例 #2
0
        protected override void Run()
        {
            Console.Write("Input: ");
            var input = Console.ReadLine();

            Console.Write("Text typed: ");
            Console.WriteLine(input);
            RETRO.Drivers.RTC.RTC.PrintTime();
            //VGA.Mode();
            //VGA.Clear(3);
            //VGA.Plot(23, 56, 8);
            Cosmos.Hardware.Drivers.PCI.Video.VMWareSVGAII SVGA = new Cosmos.Hardware.Drivers.PCI.Video.VMWareSVGAII();
            SVGA.SetMode(1024, 768, 8);
            for (int x = 0; x < 256; x++)
            {
                ushort y = (ushort)(x * 32);
                SVGA.Fill(y, 1, 32, 32, (uint)x);
            }
        }
コード例 #3
0
        public static void Initialize()
        {
            SVGA.setres(800, 600);
            SVGA.clear(Colors.DesktopBlueBackground);
            SVGA.set(10, 10, 0xFF0000);
            SVGA.svga.SetPixel((ushort)15, (ushort)15, 0xFF0000);
            Cosmos.Hardware.Drivers.PCI.Video.VMWareSVGAII svga1 = new Cosmos.Hardware.Drivers.PCI.Video.VMWareSVGAII();
            svga1.SetMode((ushort)640, (ushort)480);
            svga1.Clear(Colors.DesktopBlueBackground);
            svga1.SetPixel((ushort)15, (ushort)15, 0xFF0000);
            FlowDOS.Hardware.Mouse.Initialize();
            xold = FlowDOS.Hardware.Mouse.X;
            yold = FlowDOS.Hardware.Mouse.Y;
mainwh:
            xold = FlowDOS.Hardware.Mouse.X;
            yold = FlowDOS.Hardware.Mouse.Y;
            svga1.SetCursor(true, (uint)FlowDOS.Hardware.Mouse.X, (uint)FlowDOS.Hardware.Mouse.Y);
            while ((FlowDOS.Hardware.Mouse.X == xold) && (FlowDOS.Hardware.Mouse.Y == yold))
            {
            }
            goto mainwh;
        }
コード例 #4
0
ファイル: VGA.cs プロジェクト: hectormartin42/retro-os
 public static void Mode()
 {
     //Vga.SetMode320x200x8();
     SVGA.SetMode(1024, 768, 16);
 }