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

Last change on this file since 596 was 558, checked in by bird, 22 years ago

fix.

  • Property cvs2svn:cvs-rev set to 1.3
  • 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: Optlink-1-Asm.asm 558 2003-08-09 03:37:33Z 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 _vsprintf: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 lea ecx, [ebp+010h] ; &...
37 push ecx
38 push edx ; pszFormat
39 push eax ; pszBuffer
40 call _vsprintf
41
42 leave
43 ret
44asmsprintf endp
45
46CODE32 ends
47
48
49end
Note: See TracBrowser for help on using the repository browser.