コード例 #1
0
ファイル: Makefile.cs プロジェクト: Romfos/Netasm-old
 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();
 }
コード例 #2
0
ファイル: Netasm-Debug.cs プロジェクト: Kolia4/Netasm
 public void Debug()
 {
     var compiler = new Compiler(new Program());
 }