efi: PE file size differ from in-memory size
[syslinux.git] / dos / memcpy.S
blob76eef73c93ce26b5f6a2e3b9f020620afb1e66b3
2 # memcpy.S
4 # Simple 16-bit memcpy() implementation
7         .text
8         .code16gcc
9         .globl memcpy
10         .type memcpy, @function
11 memcpy:
12         cld
13         pushw %di
14         pushw %si
15         movw %ax,%di
16         movw %dx,%si
17         # The third argument is already in cx
18         rep ; movsb
19         popw %si
20         popw %di
21         ret
23         .size memcpy,.-memcpy