source: trunk/minix/lib/i386/string/bcopy.s@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 432 bytes
Line 
1! bcopy() Author: Kees J. Bot
2! 2 Jan 1994
3.sect .text; .sect .rom; .sect .data; .sect .bss
4
5! void bcopy(const void *s1, void *s2, size_t n)
6! Copy a chunk of memory. Handle overlap.
7! This is a BSD routine that escaped from the kernel. Don't use.
8!
9.sect .text
10.define _bcopy
11 .align 16
12_bcopy:
13 mov eax, 4(esp) ! Exchange string arguments
14 xchg eax, 8(esp)
15 mov 4(esp), eax
16 jmp __memmove ! Call the proper routine
Note: See TracBrowser for help on using the repository browser.