-2
我是intel x86汇编的新手,我试着理解下面的代码片段并将其转换为C代码。还有更多,但现在我只是想明白是怎么回事,它如何可能看起来在C.intel x86汇编到C
mov eax, [ebp+var_154] ; get the address of var_154
add eax, 1
mov ecx, [ebp+var_160] ; get the address of var_160
sub ecx, eax
cmp [ebp+var_16c], ecx
jnb loc_443CDF
mov eax, [ebp+var_176] ; get address of var_176
add eax, [ebp+var_16c]
movsx ecx, byte ptr [eax] ; get first byte of eax?
and ecx, 1
mov [ebp+var_18c], c1
那么,你有什么想法?注意:'mov eax,[ebp + var_154]'获取值,而不是地址。 – Jester
不知道。一般来说,不可能将设置转换回C. –
我正在投票结束这个问题,因为这是一个关于汇编器> C转换的问题(通常不可能),而且OP不懂汇编。 –