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

  1. public  _strcpy
  2. ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  3. ; Copy ASCIIZ string to another
  4. ; In:
  5. ;   ESI -> source string
  6. ;   EDI -> destination string
  7. ; Out:
  8. ;   None
  9. ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  10. _strcpy:
  11.         push ax
  12.         push esi
  13.         push edi
  14. strcpyl:
  15.         lodsb
  16.         stosb
  17.         or al,al
  18.         jnz strcpyl
  19.         pop edi
  20.         pop esi
  21.         pop ax
  22.         ret
  23.  
  24.