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

  1. .386p
  2. locals
  3.  
  4. public  STPCPY
  5.  
  6. _TEXT           segment byte public use32 'CODE'
  7. assume  cs:_TEXT
  8.  
  9. STPCPY:
  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 edx,ecx
  22.         shr ecx,2
  23.         rep movsd
  24.         mov ecx,edx
  25.         and ecx,3
  26.         rep movsb
  27.         lea eax,[edi-1]
  28.  
  29.         pop edi esi
  30.         ret 08h
  31.  
  32. _TEXT           ends
  33. end
  34.  
  35.