反汇编函数参数(unsigned __int8)haystack [19]<< 8)

时间:2015-10-04 18:44:58

标签: c++ disassembly

我试着了解IDA试图用这条线做什么。我正在学习反编译。我自己取得了一些进展,但我被卡住了。我根本无法理解这一点。

sub_1ED08(((unsigned __int8)haystack[19] << 8) | (unsigned __int8)haystack[20]);

haystack [19]是char&#34; 1&#34;和干草堆[20]是字母U.

此外,在反编译中,我有这个函数返回的变量(它只将函数参数存储为数字。

if ( v142 == 12378 )

12378是此问题中的函数参数。这是怎么翻译的?

1 个答案:

答案 0 :(得分:0)

我自己想出来了。

1 - ASCII表中的十六进制= 0x31 U - 来自ASCII表的十六进制= 0x55

0x3155 = 12629