Cosmos/source/SteveKernel/Program.cs
2009-05-19 21:33:07 +00:00

37 lines
No EOL
818 B
C#

using System;
using Cosmos.Compiler.Builder;
using System.Drawing;
using Cosmos.Hardware;
using Cosmos.Kernel;
namespace SteveKernel
{
class Program
{
#region Cosmos Builder logic
// Most users wont touch this. This will call the Cosmos Build tool
[STAThread]
static void Main(string[] args)
{
BuildUI.Run();
}
#endregion
public unsafe static void Init()
{
var xBoot = new Cosmos.Sys.Boot();
xBoot.Execute();
int addr = (int)VBE3.FindPM();
if (addr != 0)
Console.WriteLine("Found @ " + addr.ToHex(8));
Console.ReadLine();
Cosmos.Debug.Debugger.ViewMemory(addr);
}
}
}