19 |
; * along with this program; if not, write to the Free Software |
; * along with this program; if not, write to the Free Software |
20 |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
; * |
; * |
22 |
; * $Id: sad_3dn.asm,v 1.6 2004-03-22 22:36:24 edgomez Exp $ |
; * $Id: sad_3dn.asm,v 1.9 2004-08-29 10:02:38 edgomez Exp $ |
23 |
; * |
; * |
24 |
; ***************************************************************************/ |
; ***************************************************************************/ |
25 |
|
|
27 |
|
|
28 |
%macro cglobal 1 |
%macro cglobal 1 |
29 |
%ifdef PREFIX |
%ifdef PREFIX |
30 |
|
%ifdef MARK_FUNCS |
31 |
|
global _%1:function %1.endfunc-%1 |
32 |
|
%define %1 _%1:function %1.endfunc-%1 |
33 |
|
%else |
34 |
global _%1 |
global _%1 |
35 |
%define %1 _%1 |
%define %1 _%1 |
36 |
|
%endif |
37 |
|
%else |
38 |
|
%ifdef MARK_FUNCS |
39 |
|
global %1:function %1.endfunc-%1 |
40 |
%else |
%else |
41 |
global %1 |
global %1 |
42 |
%endif |
%endif |
43 |
|
%endif |
44 |
%endmacro |
%endmacro |
45 |
|
|
46 |
;============================================================================= |
;============================================================================= |
48 |
;============================================================================= |
;============================================================================= |
49 |
|
|
50 |
%ifdef FORMAT_COFF |
%ifdef FORMAT_COFF |
51 |
SECTION .rodata data |
SECTION .rodata |
52 |
%else |
%else |
53 |
SECTION .rodata data align=16 |
SECTION .rodata align=16 |
54 |
%endif |
%endif |
55 |
|
|
56 |
ALIGN 16 |
ALIGN 16 |
189 |
pop ebx |
pop ebx |
190 |
|
|
191 |
ret |
ret |
192 |
|
.endfunc |
193 |
|
|
194 |
;----------------------------------------------------------------------------- |
;----------------------------------------------------------------------------- |
195 |
; |
; |
226 |
pop ebx |
pop ebx |
227 |
|
|
228 |
ret |
ret |
229 |
|
.endfunc |
230 |
|
|