Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .intel_syntax noprefix
  2.  
  3. .text
  4.  
  5. .global amemmove
  6.  
  7. amemmove:
  8.     push ebp
  9.     mov ebp,esp
  10.     mov eax, BYTE PTR [ebp+8]       // eax = *dest
  11.     mov ecx, BYTE PTR [ebp+12]      // ecx = *src
  12.     mov edx, WORD [ebp+16]          // edx = nbytes
  13.    
  14.    
  15.     std
  16.     mov
  17.  
  18.     mov esp, ebp
  19.     pop ebp
  20.     ret
  21.  
  22. .end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement