home *** CD-ROM | disk | FTP | other *** search
/ YPA: Your Privacy Assured / YPA.ISO / other_goodies / utilities / amigaguid.lha / AmigaGuide / AG_V39 / Source / HyperBrowser / asprintf.asm < prev    next >
Assembly Source File  |  1993-01-08  |  670b  |  29 lines

  1.  *
  2.  * (c) Copyright 1992 Commodore-Amiga, Inc.  All rights reserved.
  3.  *
  4.  * This software is provided as-is and is subject to change; no warranties
  5.  * are made.  All use is at your own risk.  No liability or responsibility
  6.  * is assumed.
  7.  *
  8.  
  9.     XDEF _asprintf
  10.     XREF _AbsExecBase
  11.     XREF _LVORawDoFmt
  12.  
  13. ; void ASM asprintf (REG (a3) STRPTR buffer, REG (a0) STRPTR fmt, REG (a1) APTR data);
  14. _asprintf:    ; ( ostring, format, {values} )
  15.     movem.l a2/a6,-(sp)
  16.  
  17.     lea.l    stuffChar(pc),a2
  18.     move.l    _AbsExecBase,a6
  19.     jsr    _LVORawDoFmt(a6)
  20.  
  21.     movem.l (sp)+,a2/a6
  22.     rts
  23.  
  24. ;------ PutChProc function used by RawDoFmt -----------
  25. stuffChar:
  26.     move.b    d0,(a3)+        ;Put data to output string
  27.     rts
  28.  
  29.