Reputation: 11
I have the following function in assembly, but I need it in C. The code is:
push ebp
mov ebp, esp
mov eax, DWORD PTR [ebp+8]
add eax, 1667940388
pop ebp
ret
Could anybody translate this into C for me. Thanks.
Upvotes: 0
Views: 678
Reputation: 32490
Sorry for the silly mistake on the eax
return value ... its' fixed now ... my assembly is a little rusty :)
int function(int value)
{
return value + 1667940388;
}
Upvotes: 1