每当接触一种语言或者一个编程构架,无论在那一本书,那一个坛子的教程~
HelloWorld小程序都是开书或者开贴的第一印象~
YOUS 今天刚刚接触ILAsm 来个ILAsm 的HELLOWORLD,
从此,HelloWorld又多了一种写法…
/**********************************************************/
.assembly extern mscorlib{}
.assembly hello{}
.module hello.exe
.class public auto ansi class1 extends System.Object
{
.method public static void addTwoInts()
{
.entrypoint
ldstr “Hello ILAsm`s World!”
call void [mscorlib]System.Console::WriteLine(string)
nop
ret
}
}
/*保存为HELLO.IL 然后CMD (ILASM.EXE HELLO.IL)*/
/**********************************************************/
如果你是清风等.net高手,相信一眼遍明白所有指令…
话说ILASM也不错…
可惜我完全不会.NET编程(C# 版HelloWorld除外~)