Subversion Repositories Kolibri OS

Rev

Rev 205 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 205 Rev 228
Line 1... Line -...
1
;
-
 
2
;   This file is part of the AC97 mp3 player.
-
 
3
;   (C) copyright Serge 2006
-
 
4
;   email: infinity_sound@mail.ru
-
 
5
;
-
 
6
;   This program is free software; you can redistribute it and/or modify
-
 
7
;   it under the terms of the GNU General Public License as published by
-
 
8
;   the Free Software Foundation; either version 2 of the License, or
-
 
9
;   (at your option) any later version.
-
 
10
;
-
 
11
;   This program is distributed in the hope that it will be useful,
-
 
12
;   but WITHOUT ANY WARRANTY; without even the implied warranty of
-
 
13
;   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-
 
14
;   GNU General Public License for more details.
-
 
15
 
-
 
16
 
-
 
17
format MS COFF
1
format MS COFF
Line 18... Line 2...
18
 
2
 
Line 19... Line 3...
19
include "proc32.inc"
3
include "proc32.inc"
Line 188... Line 172...
188
	          int 0x40
172
                  int 0x40
189
	          pop ebx
173
                  pop ebx
190
	          ret
174
                  ret
191
endp
175
endp
Line -... Line 176...
-
 
176
 
-
 
177
;align 4
-
 
178
;proc _GetNotify@4 stdcall, p_ev:dword
-
 
179
;                  push ebx
-
 
180
;                  mov eax, 68
-
 
181
;                  mov ebx, 14
-
 
182
;              mov ecx, [p_ev]
-
 
183
;                  int 0x40
-
 
184
;                  pop ebx
-
 
185
;                  ret
-
 
186
;endp
192
 
187
 
193
align 4
188
align 4
194
proc _GetNotify@4 stdcall, p_ev:dword
189
proc _GetNotify@4 stdcall, p_ev:dword
195
	          push ebx
190
                  push ebx
196
	          mov eax, 68
191
                  mov eax, 68
Line 656... Line 651...
656
toend:
651
toend:
657
        mov     eax,[esp + 4] 
652
        mov     eax,[esp + 4] 
Line 658... Line 653...
658
 
653
 
Line -... Line 654...
-
 
654
        ret
-
 
655
 
-
 
656
public _allmul
-
 
657
 
-
 
658
_allmul: 
-
 
659
        mov eax, [esp+8]
-
 
660
        mov ecx, [esp+16]
-
 
661
        or ecx,eax         
-
 
662
        mov ecx, [esp+12]
-
 
663
        jnz .hard     
-
 
664
        mov eax, [esp+4]
-
 
665
        mul ecx
-
 
666
        ret 16   
-
 
667
.hard:
-
 
668
        push ebx
-
 
669
        mul ecx       
-
 
670
        mov ebx,eax
-
 
671
        mov eax, [esp+8]
-
 
672
        mul dword [esp+20]
-
 
673
        add ebx,eax         
-
 
674
        mov eax,[esp+8]
-
 
675
        mul ecx             
-
 
676
        add edx,ebx      
-
 
677
        pop ebx
-
 
678
        ret 16    
-
 
679
 
-
 
680
align 4
-
 
681
_allshr:
-
 
682
        cmp cl,64
-
 
683
        jae .sign
-
 
684
 
-
 
685
        cmp cl, 32
-
 
686
        jae .MORE32
-
 
687
        shrd eax,edx,cl
-
 
688
        sar edx,cl
-
 
689
        ret
-
 
690
.MORE32:
-
 
691
        mov     eax,edx
-
 
692
        sar     edx,31
-
 
693
        and     cl,31
-
 
694
        sar     eax,cl
-
 
695
        ret
-
 
696
.sign:
-
 
697
        sar     edx,31
-
 
698
        mov     eax,edx
659
        ret
699
        ret
Line 660... Line 700...
660
 
700
 
661
public __ftol2_sse
701
public __ftol2_sse
662
 
702