home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gfx / imagefx_sdk-2.0.lha / ImageFX_SDK / sas / scanlib / sprintf.asm < prev    next >
Encoding:
Assembly Source File  |  1992-10-02  |  632 b   |  28 lines

  1. ;------------------------------------------------------------------------
  2. ; A small replacement for the sprintf() function.  Uses DoRamFmt()
  3. ; from Exec library.
  4.  
  5.  
  6.                 XREF    _LVORawDoFmt
  7.  
  8.  
  9.                 XDEF    _msprintf
  10. _msprintf
  11.                 movem.l a2-a3/a6,-(sp)
  12.                 move.l  16(sp),a3
  13.                 move.l  20(sp),a0
  14.                 lea     24(sp),a1
  15.                 lea     putc(pc),a2
  16.                 movea.l $4,a6
  17.                 jsr     _LVORawDoFmt(a6)
  18.                 movem.l (sp)+,a2-a3/a6
  19.                 rts
  20.  
  21.  
  22. putc            move.b  d0,(a3)+
  23.                 rts
  24.  
  25.  
  26.                 END
  27.  
  28.