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); } }
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); } }
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; }
public static void Mode() { //Vga.SetMode320x200x8(); SVGA.SetMode(1024, 768, 16); }