含有章节索引的中文 文章模板

-- hoxide [2004-12-14 05:21:38]

1. ilasm

1.1. 例子

1.1.1. hello world

.module hello.exe
.assembly extern mscorlib {}
.assembly hello {}
.method static public void main() cil managed
{ .entrypoint
.maxstack 1
ldstr "\tWelcom to the CLI World!\nGood Luck!\n"
call void [mscorlib]System.Console::WriteLine(class System.String)
ret
}

编译: ilasm hello.masm, 生成hello.exe, 直接执行之.