Ignore:
Timestamp:
Jul 28, 2003, 11:35:55 AM (22 years ago)
Author:
bird
Message:

Added another sprintf test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testcase/Optlink-1-Asm.asm

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r462 r463  
    1717extrn OptSimple:near
    1818extrn OptPrintf:near
     19extrn _sprintf:near
    1920
    2021
     22public asmfunc
    2123asmfunc proc near
    2224    xor eax, eax
     
    2426asmfunc endp
    2527
     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
    2646CODE32 ends
    2747
Note: See TracChangeset for help on using the changeset viewer.