Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.21005.1
- TITLE C:\Users\slapo_000\Google Диск\Учеба\ЯСП\Laba3\Laba3\sort.c
- .686P
- .XMM
- include listing.inc
- .model flat
- INCLUDELIB MSVCRTD
- INCLUDELIB OLDNAMES
- PUBLIC _comparer_t
- PUBLIC _sort_gen
- ; Function compile flags: /Ogtp
- ; COMDAT _sort_gen
- _TEXT SEGMENT
- _i$1$ = -12 ; size = 4
- _t$ = -8 ; size = 4
- tv284 = -4 ; size = 4
- _arr$ = 8 ; size = 4
- _funky$ = 12 ; size = 4
- _sort_gen PROC ; COMDAT
- ; File c:\users\slapo_000\google диск\учеба\ясп\laba3\laba3\sort.c
- ; Line 16
- push ebp
- mov ebp, esp
- ; Line 19
- mov ecx, DWORD PTR _arr$[ebp]
- sub esp, 12 ; 0000000cH
- mov eax, DWORD PTR [ecx]
- push ebx
- mov ebx, eax
- shr ebx, 1
- je SHORT $LN9@sort_gen
- push esi
- push edi
- $LL11@sort_gen:
- ; Line 20
- mov edi, ebx
- mov DWORD PTR _i$1$[ebp], edi
- cmp ebx, eax
- jae SHORT $LN10@sort_gen
- mov DWORD PTR tv284[ebp], 0
- $LL8@sort_gen:
- ; Line 22
- mov eax, DWORD PTR [ecx+4]
- ; Line 23
- mov esi, edi
- mov edx, DWORD PTR [eax+edi*4]
- mov DWORD PTR _t$[ebp], edx
- cmp edi, ebx
- jb SHORT $LN2@sort_gen
- ; Line 22
- mov edi, DWORD PTR tv284[ebp]
- $LL5@sort_gen:
- ; Line 25
- mov eax, DWORD PTR [ecx+4]
- add eax, edi
- push eax
- lea eax, DWORD PTR _t$[ebp]
- push eax
- call DWORD PTR _funky$[ebp]
- add esp, 8
- cmp eax, -1
- jne SHORT $LN26@sort_gen
- ; Line 26
- mov ecx, DWORD PTR _arr$[ebp]
- mov ecx, DWORD PTR [ecx+4]
- mov eax, DWORD PTR [edi+ecx]
- mov DWORD PTR [ecx+esi*4], eax
- lea eax, DWORD PTR [ebx*4]
- mov ecx, DWORD PTR _arr$[ebp]
- sub esi, ebx
- sub edi, eax
- cmp esi, ebx
- jae SHORT $LL5@sort_gen
- $LN26@sort_gen:
- ; Line 23
- mov edx, DWORD PTR _t$[ebp]
- mov ecx, DWORD PTR _arr$[ebp]
- mov edi, DWORD PTR _i$1$[ebp]
- $LN2@sort_gen:
- ; Line 30
- mov eax, DWORD PTR [ecx+4]
- inc edi
- add DWORD PTR tv284[ebp], 4
- mov DWORD PTR _i$1$[ebp], edi
- mov DWORD PTR [eax+esi*4], edx
- mov eax, DWORD PTR [ecx]
- cmp edi, eax
- jb SHORT $LL8@sort_gen
- $LN10@sort_gen:
- ; Line 19
- shr ebx, 1
- jne SHORT $LL11@sort_gen
- pop edi
- pop esi
- $LN9@sort_gen:
- pop ebx
- ; Line 32
- mov esp, ebp
- pop ebp
- ret 0
- _sort_gen ENDP
- _TEXT ENDS
- ; Function compile flags: /Ogtp
- ; COMDAT _comparer_t
- _TEXT SEGMENT
- _a_$ = 8 ; size = 4
- _b_$ = 12 ; size = 4
- _comparer_t PROC ; COMDAT
- ; File c:\users\slapo_000\google диск\учеба\ясп\laba3\laba3\sort.c
- ; Line 4
- push ebp
- mov ebp, esp
- ; Line 5
- mov eax, DWORD PTR _a_$[ebp]
- mov ecx, DWORD PTR [eax]
- ; Line 6
- mov eax, DWORD PTR _b_$[ebp]
- mov edx, DWORD PTR [eax]
- ; Line 8
- xor eax, eax
- cmp ecx, edx
- je SHORT $LN2@comparer_t
- ; Line 9
- setg al
- lea eax, DWORD PTR [eax*2-1]
- $LN2@comparer_t:
- ; Line 13
- pop ebp
- ret 0
- _comparer_t ENDP
- _TEXT ENDS
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement