Spitfire
Spitfire

Reputation: 11

Translate assembly to c code

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

Answers (1)

Jason
Jason

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

Related Questions