Last change
on this file since 2528 was 633, checked in by bird, 22 years ago |
Moved from /testcase/Optlink*.
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
818 bytes
|
Line | |
---|
1 | ; $Id: tst3asm.asm 633 2003-08-17 18:41:32Z bird $
|
---|
2 | ;
|
---|
3 | ; Testing calling conventions and name decoration (or lack of such).
|
---|
4 | ;
|
---|
5 | ;
|
---|
6 | ; Copyright (c) 2003 InnoTek Systemberatung GmbH
|
---|
7 | ; Author: knut st. osmundsen <bird@anduin.net>
|
---|
8 | ;
|
---|
9 | ; Project Odin Software License can be found in LICENSE.TXT.
|
---|
10 | ;
|
---|
11 | ;
|
---|
12 | .386
|
---|
13 |
|
---|
14 |
|
---|
15 | CODE32 segment use32 para public 'CODE'
|
---|
16 |
|
---|
17 | extrn OptSimple:near
|
---|
18 | extrn OptPrintf:near
|
---|
19 | extrn _vsprintf:near
|
---|
20 |
|
---|
21 |
|
---|
22 | public asmfunc
|
---|
23 | asmfunc proc near
|
---|
24 | xor eax, eax
|
---|
25 | ret
|
---|
26 | asmfunc endp
|
---|
27 |
|
---|
28 | ;;
|
---|
29 | ; asmsprintf(char *pszBuffer, const char* pszFormat, ...);
|
---|
30 | ;
|
---|
31 | public asmsprintf
|
---|
32 | asmsprintf proc near
|
---|
33 | push ebp
|
---|
34 | mov ebp, esp
|
---|
35 |
|
---|
36 | lea ecx, [ebp+010h] ; &...
|
---|
37 | push ecx
|
---|
38 | push edx ; pszFormat
|
---|
39 | push eax ; pszBuffer
|
---|
40 | call _vsprintf
|
---|
41 |
|
---|
42 | leave
|
---|
43 | ret
|
---|
44 | asmsprintf endp
|
---|
45 |
|
---|
46 | CODE32 ends
|
---|
47 |
|
---|
48 |
|
---|
49 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.