source: trunk/testcase/Optlink-1-Asm.asm@ 536

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
Line 
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
15CODE32 segment use32 para public 'CODE'
16
17extrn OptSimple:near
18extrn OptPrintf:near
19extrn _sprintf:near
20
21
22public asmfunc
23asmfunc proc near
24 xor eax, eax
25 ret
26asmfunc endp
27
28;;
29; asmsprintf(char *pszBuffer, const char* pszFormat, ...);
30;
31public asmsprintf
32asmsprintf 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
44asmsprintf endp
45
46CODE32 ends
47
48
49end
Note: See TracBrowser for help on using the repository browser.