Exemple #1
0
 static void Main(string[] args)
 {
     Netasm.i8086.Generator.LoadInstructionsAsync();
     Compiler.Log = (color, message) =>
     {
         Console.ForegroundColor = color;
         Console.WriteLine(message);
     };
     var compiler = new Compiler(new TinyModel(), new Sources.Program());
     File.WriteAllBytes(dosboxDir + compiler.Name, compiler.Output);
     #if DEBUG
     var process = Process.Start(dosboxEXEPath, @"-noconsole -conf ""debug.conf""");
     #else
     var process = Process.Start(dosboxEXEPath, @"-noconsole -conf ""release.conf""");
     #endif
     process.WaitForExit();
 }
Exemple #2
0
 public void Debug()
 {
     var compiler = new Compiler(new Program());
 }