bzero.s

来自「MINIX2.0操作系统源码,是Linux的前身,世界上最小的32位操作系统」· S 代码 · 共 21 行

S
21
字号
!	bzero()						Author: Kees J. Bot
!								2 Jan 1994
.sect .text; .sect .rom; .sect .data; .sect .bss

! void bzero(void *s, size_t n)
!	Set a chunk of memory to zero.
!	This is a BSD routine that escaped from the kernel.  Don't use.
!
.sect .text
.define _bzero
	.align	16
_bzero:
	push	ebp
	mov	ebp, esp
	push	12(ebp)		! Size
	push	0		! Zero
	push	8(ebp)		! String
	call	_memset		! Call the proper routine
	leave
	ret

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?