Rev | Line | |
---|
[9] | 1 | ! bzero() Author: Kees J. Bot
|
---|
| 2 | ! 2 Jan 1994
|
---|
| 3 | .sect .text; .sect .rom; .sect .data; .sect .bss
|
---|
| 4 |
|
---|
| 5 | ! void bzero(void *s, size_t n)
|
---|
| 6 | ! Set a chunk of memory to zero.
|
---|
| 7 | ! This is a BSD routine that escaped from the kernel. Don't use.
|
---|
| 8 | !
|
---|
| 9 | .sect .text
|
---|
| 10 | .define _bzero
|
---|
| 11 | .align 16
|
---|
| 12 | _bzero:
|
---|
| 13 | push ebp
|
---|
| 14 | mov ebp, esp
|
---|
| 15 | push 12(ebp) ! Size
|
---|
| 16 | push 0 ! Zero
|
---|
| 17 | push 8(ebp) ! String
|
---|
| 18 | call _memset ! Call the proper routine
|
---|
| 19 | leave
|
---|
| 20 | ret
|
---|
Note:
See
TracBrowser
for help on using the repository browser.