Advertisement
bartekltg

Untitled

Feb 12th, 2012
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. ; 18 : a=in/10;
  2.  
  3. mov ecx, DWORD PTR _in$[ebp]
  4. mov eax, 1717986919 ; 66666667H
  5. imul ecx
  6. sar edx, 2
  7. mov esi, edx
  8. shr esi, 31 ; 0000001fH
  9. add esi, edx
  10.  
  11. ; 19 : b=in/17;
  12.  
  13. mov eax, 2021161081 ; 78787879H
  14. imul ecx
  15. sar edx, 3
  16. mov edi, edx
  17. shr edi, 31 ; 0000001fH
  18. add edi, edx
  19.  
  20. ; 20 : c=in/1253;
  21.  
  22. mov eax, 1755006589 ; 689b467dH
  23. imul ecx
  24. sar edx, 9
  25. mov ebx, edx
  26. shr ebx, 31 ; 0000001fH
  27. add ebx, edx
  28.  
  29. ; 21 : d=in/54577;
  30.  
  31. mov eax, -1716271355 ; 99b3c705H
  32. imul ecx
  33. add edx, ecx
  34. sar edx, 15 ; 0000000fH
  35. mov eax, edx
  36. shr eax, 31 ; 0000001fH
  37. add eax, edx
  38. mov DWORD PTR _d$[ebp], eax
  39.  
  40. ; 22 : e=in/1588743;
  41.  
  42. mov eax, -1460273687 ; a8f5fde9H
  43. imul ecx
  44. add edx, ecx
  45. sar edx, 20 ; 00000014H
  46. mov eax, edx
  47. shr eax, 31 ; 0000001fH
  48. add eax, edx
  49. mov DWORD PTR _e$[ebp], eax
  50.  
  51. ; 23 : f=in/154879361;
  52.  
  53. mov eax, 465249815 ; 1bbb2617H
  54. imul ecx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement