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

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