mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-22 22:09:12 +00:00
23 lines
No EOL
663 B
C#
23 lines
No EOL
663 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.Console;
|
|
a.Includes.Add("win32w.inc");
|
|
a.DataMembers.Add(new DataMember("_class", "TCHAR", "'Win32 program template'"));
|
|
new Invoke("GetModuleHandle", new object[] {0});
|
|
a.Flush();
|
|
}
|
|
}
|
|
Console.WriteLine("Done.");
|
|
Console.ReadLine();
|
|
}
|
|
}
|
|
} |