寻找cil的代码列表,如16,17,18,19,02所做的那样

时间:2016-06-27 01:01:53

标签: cil

我想知道是否有一个cil代码列表,我认为16 = false和17 = true,但不是100%肯定,也认为-1 = 0,但如果有人有一个网站来帮助这个将是大。

16 = false 
17 = true ?

1 个答案:

答案 0 :(得分:3)

您可以在ECMA-335的分区III中找到所有操作码的完整列表,但是就您列出的具体说明而言:

02 (0x02) = ldarg.0
16 (0x10) = starg.s
17 (0x11) = ldloc.s
18 (0x12) = ldloca.s
19 (0x13) = stloc.s

0x16 = ldc.i4.0 // could be a 0 or false or '\0' ... the exact type depends on how it's used.
0x17 = ldc.i4.1 // could be a 1 or true or '\u0001' ... again, the exact type depends on how it's used.
0x18 = ldc.i4.2
0x19 = ldc.i4.3