どれもきちんとアセンブルできます。(ilasm ver1.1.4322.573)
でもCみたいなセミコロンは無いので、1行に複数の命令を書くと分かりづらくなります。
1
2
3
4
5
6
7
8
9
|
-
|
|
!
-
|
|
!
|
.assembly r{}
.method static void main(){
.entrypoint
ret
}
.method static int32 func1(){
ldc.i4 100
ret
}
|
1
2
3
|
|
.assembly r{}
.method static void main(){ .entrypoint ret }
.method static int32 func1(){ ldc.i4 100 ret}
|
1
|
|
.assembly r{} .method static void main(){ .entrypoint ret } .method static int32 func1(){ ldc.i4 100 ret}
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
-
!
-
|
|
!
-
|
|
!
|
.assembly
r
{
}
.method
static
void
main
(
)
{
.entrypoint
ret
}
.method
static
int32
func1
(
)
{
ldc.i4 100
ret
}
|
|
Last-modified: Mon, 27 Jul 2009 03:06:22 JST