home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / SOFTWARE / LIBS / PMC101.ZIP / LIBSRC.ZIP / STRCPY.ASM (.txt) < prev    next >
Assembly Source File  |  1994-06-13  |  522b  |  35 lines

  1. .386p
  2. locals
  3.  
  4. public  STRCPY
  5.  
  6. _TEXT           segment byte public use32 'CODE'
  7. assume  cs:_TEXT
  8.  
  9. STRCPY:
  10.         push esi edi
  11.         cld
  12.  
  13.         mov edi,[esp+4+8+00h]
  14.         mov esi,edi
  15.         or ecx,-1
  16.         xor al,al
  17.         repne scasb
  18.         not ecx
  19.  
  20.         mov edi,[esp+4+8+04h]
  21.         mov eax,edi
  22.         mov edx,ecx
  23.         shr ecx,2
  24.         rep movsd
  25.         mov ecx,edx
  26.         and ecx,3
  27.         rep movsb
  28.  
  29.         pop edi esi
  30.         ret 08h
  31.  
  32. _TEXT           ends
  33. end
  34.  
  35.