Last change
on this file since 536 was 463, checked in by bird, 22 years ago |
Added another sprintf test.
|
-
Property cvs2svn:cvs-rev
set to
1.2
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
820 bytes
|
Rev | Line | |
---|
[134] | 1 | ; $Id: Optlink-1-Asm.asm 463 2003-07-28 09:35:55Z 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
|
---|
[463] | 19 | extrn _sprintf:near
|
---|
[134] | 20 |
|
---|
| 21 |
|
---|
[463] | 22 | public asmfunc
|
---|
[134] | 23 | asmfunc proc near
|
---|
| 24 | xor eax, eax
|
---|
| 25 | ret
|
---|
| 26 | asmfunc endp
|
---|
| 27 |
|
---|
[463] | 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 | push eax ; pszBuffer
|
---|
| 37 | push edx ; pszFormat
|
---|
| 38 | lea eax, [ebp+010h] ; &...
|
---|
| 39 | push eax
|
---|
| 40 | call _sprintf
|
---|
| 41 |
|
---|
| 42 | leave
|
---|
| 43 | ret
|
---|
| 44 | asmsprintf endp
|
---|
| 45 |
|
---|
[134] | 46 | CODE32 ends
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.