| GelatinPufF |
^^^Doesn't know the solution to this problem:
A function with the prototype
int decode2(int x, int y, int z);
is compiled into assembly code. The body of the code is
movl 16(%ebp), %eax
movl 12(%ebp), %edx
subl %eax, %edx
movl %edx, %eax
imull 8(%ebp), %edx
sall $31, %eax
sarl $31, %eax
xorl %edx, %eax
x, y, and z are stored in memory locations with ofsets 8, 12, and
16 relative to the address in register %ebp; and the returned value
is left in register %eax.
Write the C code body that will have an equivalent effect to the
assembly language code. You can test your solution by assembling
the C code (using gcc -S);
the assembled code should be functionally equivalent but will not
be identical to the above.
| quote: | Originally posted by PVD & T[]C
to GelitanpufF
^doesnt realize its a french whore. maybe he also doesnt realize the purpose of the whore
|
How could I have realised she was french?:conf: |
|
|