source: trunk/minix/lib/ack/float/cmf4.s@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 690 bytes
Line 
1.sect .text; .sect .rom; .sect .data; .sect .bss
2.extern .cmf4
3.sect .text
4.cmf4:
5push ebp
6mov ebp,esp
7sub esp,8
8push esi
9push edi
10mov edi,8(ebp)
11mov esi,12(ebp)
12cmp edi,esi
13jne I1_4
14xor eax,eax
15jmp I1_1
16I1_4:
17test edi,edi
18jns I1_7
19mov eax,-1
20jmp I1_8
21I1_7:
22mov eax,1
23I1_8:
24mov -4(ebp),eax
25test esi,esi
26jns I1_10
27mov eax,-1
28jmp I1_11
29I1_10:
30mov eax,1
31I1_11:
32mov -8(ebp),eax
33cmp -4(ebp),eax
34je I1_13
35test edi,2147483647
36jne I1_16
37test esi,2147483647
38jne I1_16
39xor eax,eax
40jmp I1_1
41I1_16:
42! kill cc
43cmp -4(ebp),0
44jle I1_20
45mov eax,-1
46jmp I1_1
47I1_20:
48mov eax,1
49jmp I1_1
50I1_13:
51cmp edi,esi
52jge I1_23
53mov eax,1
54jmp I1_24
55I1_23:
56mov eax,-1
57I1_24:
58imul eax,-4(ebp)
59I1_1:
60pop edi
61pop esi
62leave
63ret
Note: See TracBrowser for help on using the repository browser.