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

  1. ;******************************************************************************
  2. ; Filename: STRCAT.ASM
  3. ;   Author: Peter Andersson
  4. ;  Version: 0.0
  5. ;  Created: 1995.03.12
  6. ;  Updated: -
  7. ;******************************************************************************
  8. ; Copyright Peter Andersson, 1994-1995.
  9. ; All rights reserved.
  10. ;******************************************************************************
  11. ; Function: PSZ @strcat(PSZ destptr, PSZ srcptr)
  12. ;  Comment: Concatenates two strings. The destination string must be able to
  13. ;           contain the source string.
  14. ;    Input: Eax - destination string pointer
  15. ;           Edx - source string pointer
  16. ;  Returns: destptr
  17. ;******************************************************************************
  18.  
  19.     Include    STDDEF.INC
  20.  
  21.     Codeseg
  22.  
  23. Proc    strcat  ,2
  24.         Push    Eax,Edx
  25.         Call    @strlen
  26.         Add    Eax,[Esp+4]
  27.         Pop    Edx
  28.         Call    @stpcpy
  29.         Pop    Eax
  30.         Ret
  31. Endp
  32.  
  33.     End
  34.