Line | |
---|
1 | .sect .text; .sect .rom; .sect .data; .sect .bss
|
---|
2 | .extern .cmf8
|
---|
3 | .sect .text
|
---|
4 | .cmf8:
|
---|
5 | push ebp
|
---|
6 | mov ebp,esp
|
---|
7 | sub esp,28
|
---|
8 | push esi
|
---|
9 | push edi
|
---|
10 | mov edi,12(ebp)
|
---|
11 | mov esi,20(ebp)
|
---|
12 | test edi,edi
|
---|
13 | jns I1_4
|
---|
14 | mov eax,-1
|
---|
15 | jmp I1_5
|
---|
16 | I1_4:
|
---|
17 | mov eax,1
|
---|
18 | I1_5:
|
---|
19 | mov -12(ebp),eax
|
---|
20 | test esi,esi
|
---|
21 | jns I1_7
|
---|
22 | mov eax,-1
|
---|
23 | jmp I1_8
|
---|
24 | I1_7:
|
---|
25 | mov eax,1
|
---|
26 | I1_8:
|
---|
27 | mov -16(ebp),eax
|
---|
28 | cmp -12(ebp),eax
|
---|
29 | je I1_10
|
---|
30 | and edi,2147483647
|
---|
31 | and esi,2147483647
|
---|
32 | test edi,edi
|
---|
33 | jne I1_12
|
---|
34 | test esi,esi
|
---|
35 | je I1_10
|
---|
36 | I1_12:
|
---|
37 | ! kill cc
|
---|
38 | cmp -12(ebp),0
|
---|
39 | jle I1_17
|
---|
40 | mov eax,-1
|
---|
41 | jmp I1_1
|
---|
42 | I1_17:
|
---|
43 | mov eax,1
|
---|
44 | jmp I1_1
|
---|
45 | I1_10:
|
---|
46 | cmp edi,esi
|
---|
47 | je I1_20
|
---|
48 | cmp edi,esi
|
---|
49 | jge I1_23
|
---|
50 | mov eax,1
|
---|
51 | jmp I1_24
|
---|
52 | I1_23:
|
---|
53 | mov eax,-1
|
---|
54 | I1_24:
|
---|
55 | mov -20(ebp),eax
|
---|
56 | jmp I1_21
|
---|
57 | I1_20:
|
---|
58 | mov edx,8(ebp)
|
---|
59 | mov -24(ebp),edx
|
---|
60 | mov edx,16(ebp)
|
---|
61 | mov -28(ebp),edx
|
---|
62 | cmp -24(ebp),edx
|
---|
63 | jne I1_26
|
---|
64 | xor eax,eax
|
---|
65 | jmp I1_1
|
---|
66 | I1_26:
|
---|
67 | mov edx,-28(ebp)
|
---|
68 | cmp -24(ebp),edx
|
---|
69 | jae I1_29
|
---|
70 | mov -20(ebp),1
|
---|
71 | jmp I1_21
|
---|
72 | I1_29:
|
---|
73 | mov -20(ebp),-1
|
---|
74 | I1_21:
|
---|
75 | mov edx,-12(ebp)
|
---|
76 | imul edx,-20(ebp)
|
---|
77 | mov eax,edx
|
---|
78 | I1_1:
|
---|
79 | pop edi
|
---|
80 | pop esi
|
---|
81 | leave
|
---|
82 | ret
|
---|
Note:
See
TracBrowser
for help on using the repository browser.