mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
37 lines
No EOL
818 B
C#
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);
|
|
|
|
}
|
|
|
|
}
|
|
} |