source: trunk/minix/lib/i386/string/bzero.s@ 10

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

Minix 3.1.2a

File size: 422 bytes
RevLine 
[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.