ReadODAsm L1_3.C
1
00401010
>|>
\
55
push ebp
2 00401011 | . 8BEC mov ebp, esp
3 00401013 | . 83EC 4C sub esp, 4C
4 00401016 | . 53 push ebx
5 00401017 | . 56 push esi
6 00401018 | . 57 push edi
7 00401019 | . 8D7D B4 lea edi, dword ptr ss:[ebp - 4C]
8 0040101C | . B9 13000000 mov ecx, 13
9 00401021 | . B8 CCCCCCCC mov eax, CCCCCCCC
10 00401026 | . F3:AB rep stos dword ptr es:[edi]
11 00401028 | . 68 34904200 push 00429034 ; / format = " 请输入 " ,B6, " ?,B8, " 鍪 ? ,D7, " ?a,b): "
12 0040102D | . E8 DE000000 call printf ; \printf
13 00401032 | . 83C4 04 add esp, 4
14 00401035 | . 8D45 F8 lea eax, dword ptr ss:[ebp - 8 ]
15 00401038 | . 50 push eax
16 00401039 | . 8D4D FC lea ecx, dword ptr ss:[ebp - 4 ]
17 0040103C | . 51 push ecx
18 0040103D | . 68 2C904200 push 0042902C ; / format = " %d,%d "
19 00401042 | . E8 69000000 call scanf ; \scanf
20 00401047 | . 83C4 0C add esp, 0C
21 0040104A | . 8B55 FC mov edx, dword ptr ss:[ebp - 4 ] ; ; 压入到浮点寄存器
22 0040104D | . 3B55 F8 cmp edx, dword ptr ss:[ebp - 8 ]
23 00401050 | . 7E 08 jle short 0040105A ; ; 如果edx < [ebp - 8 ]则跳
24 00401052 | . 8B45 FC mov eax, dword ptr ss:[ebp - 4 ]
25 00401055 | . 8945 F4 mov dword ptr ss:[ebp - C], eax
26 00401058 | . EB 06 jmp short 00401060
27 0040105A |> 8B4D F8 mov ecx, dword ptr ss:[ebp - 8 ]
28 0040105D | . 894D F4 mov dword ptr ss:[ebp - C], ecx
29 00401060 |> 8B55 F4 mov edx, dword ptr ss:[ebp - C]
30 00401063 | . 52 push edx ; /<% d >
31 00401064 | . 68 1C904200 push 0042901C ; | format = " max = %d " ,CR,LF, ""
32 00401069 | . E8 A2000000 call printf ; \printf
33 0040106E | . 83C4 08 add esp, 8
34 00401071 | . 33C0 xor eax, eax
35 00401073 | . 5F pop edi
36 00401074 | . 5E pop esi
37 00401075 | . 5B pop ebx
38 00401076 | . 83C4 4C add esp, 4C
39 00401079 | . 3BEC cmp ebp, esp
40 0040107B | . E8 C0010000 call _chkesp
41 00401080 | . 8BE5 mov esp, ebp
42 00401082 | . 5D pop ebp
43 00401083 \. C3 retn
44
45
2 00401011 | . 8BEC mov ebp, esp
3 00401013 | . 83EC 4C sub esp, 4C
4 00401016 | . 53 push ebx
5 00401017 | . 56 push esi
6 00401018 | . 57 push edi
7 00401019 | . 8D7D B4 lea edi, dword ptr ss:[ebp - 4C]
8 0040101C | . B9 13000000 mov ecx, 13
9 00401021 | . B8 CCCCCCCC mov eax, CCCCCCCC
10 00401026 | . F3:AB rep stos dword ptr es:[edi]
11 00401028 | . 68 34904200 push 00429034 ; / format = " 请输入 " ,B6, " ?,B8, " 鍪 ? ,D7, " ?a,b): "
12 0040102D | . E8 DE000000 call printf ; \printf
13 00401032 | . 83C4 04 add esp, 4
14 00401035 | . 8D45 F8 lea eax, dword ptr ss:[ebp - 8 ]
15 00401038 | . 50 push eax
16 00401039 | . 8D4D FC lea ecx, dword ptr ss:[ebp - 4 ]
17 0040103C | . 51 push ecx
18 0040103D | . 68 2C904200 push 0042902C ; / format = " %d,%d "
19 00401042 | . E8 69000000 call scanf ; \scanf
20 00401047 | . 83C4 0C add esp, 0C
21 0040104A | . 8B55 FC mov edx, dword ptr ss:[ebp - 4 ] ; ; 压入到浮点寄存器
22 0040104D | . 3B55 F8 cmp edx, dword ptr ss:[ebp - 8 ]
23 00401050 | . 7E 08 jle short 0040105A ; ; 如果edx < [ebp - 8 ]则跳
24 00401052 | . 8B45 FC mov eax, dword ptr ss:[ebp - 4 ]
25 00401055 | . 8945 F4 mov dword ptr ss:[ebp - C], eax
26 00401058 | . EB 06 jmp short 00401060
27 0040105A |> 8B4D F8 mov ecx, dword ptr ss:[ebp - 8 ]
28 0040105D | . 894D F4 mov dword ptr ss:[ebp - C], ecx
29 00401060 |> 8B55 F4 mov edx, dword ptr ss:[ebp - C]
30 00401063 | . 52 push edx ; /<% d >
31 00401064 | . 68 1C904200 push 0042901C ; | format = " max = %d " ,CR,LF, ""
32 00401069 | . E8 A2000000 call printf ; \printf
33 0040106E | . 83C4 08 add esp, 8
34 00401071 | . 33C0 xor eax, eax
35 00401073 | . 5F pop edi
36 00401074 | . 5E pop esi
37 00401075 | . 5B pop ebx
38 00401076 | . 83C4 4C add esp, 4C
39 00401079 | . 3BEC cmp ebp, esp
40 0040107B | . E8 C0010000 call _chkesp
41 00401080 | . 8BE5 mov esp, ebp
42 00401082 | . 5D pop ebp
43 00401083 \. C3 retn
44
45