Advertisement
joker546645

32 -> 64 asm float -> double

Jan 6th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .686
  2. .model flat
  3. public _sortowanie
  4. extern _GetComputerNameA@8 : PROC
  5. extern _write : PROC
  6. .data
  7. nazwa db 80 dup('?')
  8. rozmiar dd 80
  9. .code
  10. _sortowanie PROC
  11.     push ebp
  12.     mov ebp, esp
  13.     push esi
  14.     push edi
  15.     push ebx
  16.  
  17.     mov esi, 0C1040000h
  18.     mov eax, esi
  19.     and eax, 80000000h
  20.     rol eax, 1
  21.     mov ebx, eax
  22.     rol ebx, 11
  23.     mov eax, esi
  24.     and eax, 7F800000h
  25.     rol eax, 9
  26.     add eax, 1023
  27.     sub eax, 127
  28.     or ebx, eax
  29.     shl ebx, 20
  30.     mov eax, esi
  31.     and eax, 007FFFF8h
  32.     shr eax, 3
  33.     or ebx, eax
  34.     mov eax, esi
  35.     and eax, 00000003h
  36.     ror eax, 3
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.     pop ebx
  51.     pop edi
  52.     pop esi
  53.     pop ebp
  54.     ret
  55. _sortowanie ENDP
  56. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement