home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / SND_TOOL / FUNK108A.ZIP / DOS32V30.ZIP / PAL / STRINGS / SPRINTF.ASM < prev    next >
Encoding:
Assembly Source File  |  1995-05-20  |  962 b   |  33 lines

  1. ;****************************************************************************
  2. ; Filename: SPRINTF.ASM
  3. ;   Author: Peter Andersson
  4. ;  Version: 0.0
  5. ;  Created: 1995.02.09
  6. ;  Updated: -
  7. ;****************************************************************************
  8. ; Copyright Peter Andersson, 1994-1995.
  9. ; All rights reserved.
  10. ;****************************************************************************
  11. ; Function: ULONG sprintf(PSZ dest,PSZ fmtstr,...);
  12. ;    Input: dest - destination string
  13. ;           fmtstr - printf format string
  14. ;           ... - possible arguments
  15. ;   Output: Number of characters written
  16. ;  Comment: Prints a formatted string to STDOUT and returns the number of
  17. ;           written characters.
  18. ;****************************************************************************
  19.  
  20.     Include    STDDEF.INC
  21.  
  22.     Codeseg
  23.  
  24. Proc    sprintf
  25.         Mov    Eax,[Esp+4]
  26.         Mov    Edx,[Esp+8]
  27.         Lea    Ecx,[Esp+12]
  28.         Call    @vprintf
  29.         Ret
  30. Endp
  31.  
  32.     End
  33.