Line | |
---|
1 | ! bzero() Author: Kees J. Bot
|
---|
2 | ! 27 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 | _bzero:
|
---|
12 | push bp
|
---|
13 | mov bp, sp
|
---|
14 | push 6(bp) ! Size
|
---|
15 | xor ax, ax
|
---|
16 | push ax ! Zero
|
---|
17 | push 4(bp) ! String
|
---|
18 | call _memset ! Call the proper routine
|
---|
19 | mov sp, bp
|
---|
20 | pop bp
|
---|
21 | ret
|
---|
Note:
See
TracBrowser
for help on using the repository browser.