Answer the question
In order to leave comments, you need to log in
How to derive a formula from disassembler code?
Please help me to deduce the formula from the disassembler code
push %ebp
mov %esp,%ebp
mov 0x10(%ebp),%edx
mov %edx,%eax
shl $0x2,%eax
add %edx,%eax
cltd
idivl 0xc(%ebp)
mov %eax,%edx
mov 0x8(%ebp),%eax
sub %edx,%eax
mov %eax,%ecx
mov $0x34384ccb3,%edx
mov %ecx,%eax
imul %edx
sar $0x8,%edx
mov %ecx,%eax
sar $0x1f,%eax
sub %eax,%edx
mov %edx,%eax
imul $0x4e7,%eax,%eax
sub %eax,%ecx
mov %ecx,%eax
sub 0x8(%ebp),%eax
and 0xc(%ebp),%eax
pop %ebp
ret
Answer the question
In order to leave comments, you need to log in
How to derive a formula from disassembler code
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question