Subversion Repositories Kolibri OS

Rev

Rev 8793 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8718 turbocat 1
format ELF
2
 
3
section '.text' executable
8803 turbocat 4
include '../../../../../../proc32.inc'
8718 turbocat 5
 
6
public memcpy
7
 
8
proc memcpy c, to:dword,from:dword,count:dword
9
    push esi
10
    push edi
11
    mov ecx,[count]
12
	test ecx,ecx
13
	jz no_copy_block
14
        mov esi,[from]
15
		mov edi,[to]
16
		cld
17
		rep movsb
18
no_copy_block:
19
 
20
    pop edi
21
    pop esi
22
    mov eax, [to]
23
	ret
24
endp