bzero.s

来自「minix 2.0操作系统源代码」· S 代码 · 共 22 行

S
22
字号
!	bzero()						Author: Kees J. Bot
!								27 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
_bzero:
	push	bp
	mov	bp, sp
	push	6(bp)		! Size
	xor	ax, ax
	push	ax		! Zero
	push	4(bp)		! String
	call	_memset		! Call the proper routine
	mov	sp, bp
	pop	bp
	ret

⌨️ 快捷键说明

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