home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / cdfm.zip / STRCAT.RT < prev    next >
Text File  |  1992-06-10  |  614b  |  30 lines

  1. public  _strcat
  2. ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  3. ; Add one ASCIIZ string to another
  4. ; In:
  5. ;   ESI -> source string
  6. ;   EDI -> destination string
  7. ; Out:
  8. ;   None
  9. ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  10. _strcat:
  11.         push ax
  12.         push ecx
  13.         push esi
  14.         push edi
  15.         mov ecx,-1
  16.         xor al,al
  17.         repnz scasb
  18.         dec edi
  19. strcatl:
  20.         lodsb
  21.         stosb
  22.         or al,al
  23.         jnz strcatl
  24.         pop edi
  25.         pop esi
  26.         pop ecx
  27.         pop ax
  28.         ret
  29.  
  30.