mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 21:08:51 +00:00
27 lines
No EOL
668 B
C#
27 lines
No EOL
668 B
C#
using System;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using Indy.IL2CPU.Assembler;
|
|
using Indy.IL2CPU.Assembler.X86;
|
|
|
|
namespace HelloWorldAssembler {
|
|
public class Program {
|
|
public static void Main(string[] args) {
|
|
using (StreamWriter xSW = new StreamWriter("out.asm")) {
|
|
using (Assembler a = new Assembler(xSW)) {
|
|
a.OutputType = Assembler.OutputTypeEnum.DLL;
|
|
a.Includes.Add("win32w.inc");
|
|
new DataMember() {
|
|
Name = "_class",
|
|
DataType = "TCHAR",
|
|
DefaultValue = "'Win32 program template'"
|
|
};
|
|
new Noop();
|
|
a.Flush();
|
|
}
|
|
}
|
|
Console.WriteLine("Done.");
|
|
Console.ReadLine();
|
|
}
|
|
}
|
|
} |