Advertisement
Slapoguzov

Untitled

Nov 20th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.21005.1
  2.  
  3.     TITLE   C:\Users\slapo_000\Google Диск\Учеба\ЯСП\Laba3\Laba3\sort.c
  4.     .686P
  5.     .XMM
  6.     include listing.inc
  7.     .model  flat
  8.  
  9. INCLUDELIB MSVCRTD
  10. INCLUDELIB OLDNAMES
  11.  
  12. PUBLIC  _comparer_t
  13. PUBLIC  _sort_gen
  14. ; Function compile flags: /Ogtp
  15. ;   COMDAT _sort_gen
  16. _TEXT   SEGMENT
  17. _i$1$ = -12                     ; size = 4
  18. _t$ = -8                        ; size = 4
  19. tv284 = -4                      ; size = 4
  20. _arr$ = 8                       ; size = 4
  21. _funky$ = 12                        ; size = 4
  22. _sort_gen PROC                      ; COMDAT
  23. ; File c:\users\slapo_000\google диск\учеба\ясп\laba3\laba3\sort.c
  24. ; Line 16
  25.     push    ebp
  26.     mov ebp, esp
  27. ; Line 19
  28.     mov ecx, DWORD PTR _arr$[ebp]
  29.     sub esp, 12                 ; 0000000cH
  30.     mov eax, DWORD PTR [ecx]
  31.     push    ebx
  32.     mov ebx, eax
  33.     shr ebx, 1
  34.     je  SHORT $LN9@sort_gen
  35.     push    esi
  36.     push    edi
  37. $LL11@sort_gen:
  38. ; Line 20
  39.     mov edi, ebx
  40.     mov DWORD PTR _i$1$[ebp], edi
  41.     cmp ebx, eax
  42.     jae SHORT $LN10@sort_gen
  43.     mov DWORD PTR tv284[ebp], 0
  44. $LL8@sort_gen:
  45. ; Line 22
  46.     mov eax, DWORD PTR [ecx+4]
  47. ; Line 23
  48.     mov esi, edi
  49.     mov edx, DWORD PTR [eax+edi*4]
  50.     mov DWORD PTR _t$[ebp], edx
  51.     cmp edi, ebx
  52.     jb  SHORT $LN2@sort_gen
  53. ; Line 22
  54.     mov edi, DWORD PTR tv284[ebp]
  55. $LL5@sort_gen:
  56. ; Line 25
  57.     mov eax, DWORD PTR [ecx+4]
  58.     add eax, edi
  59.     push    eax
  60.     lea eax, DWORD PTR _t$[ebp]
  61.     push    eax
  62.     call    DWORD PTR _funky$[ebp]
  63.     add esp, 8
  64.     cmp eax, -1
  65.     jne SHORT $LN26@sort_gen
  66. ; Line 26
  67.     mov ecx, DWORD PTR _arr$[ebp]
  68.     mov ecx, DWORD PTR [ecx+4]
  69.     mov eax, DWORD PTR [edi+ecx]
  70.     mov DWORD PTR [ecx+esi*4], eax
  71.     lea eax, DWORD PTR [ebx*4]
  72.     mov ecx, DWORD PTR _arr$[ebp]
  73.     sub esi, ebx
  74.     sub edi, eax
  75.     cmp esi, ebx
  76.     jae SHORT $LL5@sort_gen
  77. $LN26@sort_gen:
  78. ; Line 23
  79.     mov edx, DWORD PTR _t$[ebp]
  80.     mov ecx, DWORD PTR _arr$[ebp]
  81.     mov edi, DWORD PTR _i$1$[ebp]
  82. $LN2@sort_gen:
  83. ; Line 30
  84.     mov eax, DWORD PTR [ecx+4]
  85.     inc edi
  86.     add DWORD PTR tv284[ebp], 4
  87.     mov DWORD PTR _i$1$[ebp], edi
  88.     mov DWORD PTR [eax+esi*4], edx
  89.     mov eax, DWORD PTR [ecx]
  90.     cmp edi, eax
  91.     jb  SHORT $LL8@sort_gen
  92. $LN10@sort_gen:
  93. ; Line 19
  94.     shr ebx, 1
  95.     jne SHORT $LL11@sort_gen
  96.     pop edi
  97.     pop esi
  98. $LN9@sort_gen:
  99.     pop ebx
  100. ; Line 32
  101.     mov esp, ebp
  102.     pop ebp
  103.     ret 0
  104. _sort_gen ENDP
  105. _TEXT   ENDS
  106. ; Function compile flags: /Ogtp
  107. ;   COMDAT _comparer_t
  108. _TEXT   SEGMENT
  109. _a_$ = 8                        ; size = 4
  110. _b_$ = 12                       ; size = 4
  111. _comparer_t PROC                    ; COMDAT
  112. ; File c:\users\slapo_000\google диск\учеба\ясп\laba3\laba3\sort.c
  113. ; Line 4
  114.     push    ebp
  115.     mov ebp, esp
  116. ; Line 5
  117.     mov eax, DWORD PTR _a_$[ebp]
  118.     mov ecx, DWORD PTR [eax]
  119. ; Line 6
  120.     mov eax, DWORD PTR _b_$[ebp]
  121.     mov edx, DWORD PTR [eax]
  122. ; Line 8
  123.     xor eax, eax
  124.     cmp ecx, edx
  125.     je  SHORT $LN2@comparer_t
  126. ; Line 9
  127.     setg    al
  128.     lea eax, DWORD PTR [eax*2-1]
  129. $LN2@comparer_t:
  130. ; Line 13
  131.     pop ebp
  132.     ret 0
  133. _comparer_t ENDP
  134. _TEXT   ENDS
  135. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement