Line | |
---|
1 | ! bcopy() Author: Kees J. Bot
|
---|
2 | ! 27 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 | .extern __memmove
|
---|
12 | _bcopy:
|
---|
13 | pop cx
|
---|
14 | pop ax
|
---|
15 | pop dx ! Pop return address and arguments
|
---|
16 | push ax
|
---|
17 | push dx ! Arguments reversed
|
---|
18 | push cx
|
---|
19 | jmp __memmove ! Call the proper routine
|
---|
Note:
See
TracBrowser
for help on using the repository browser.