⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iodelay.s

📁 基于组件方式开发操作系统的OSKIT源代码
💻 S
字号:
/* $XFree86: xc/programs/Xserver/hw/xfree86/common_hw/IODelay.s,v 3.2 1996/12/23 06:44:14 dawes Exp $ *//*******************************************************************************                        Copyright 1994 by Glenn G. Lai                        All Rights ReservedPermission to use, copy, modify, and distribute this software and itsdocumentation for any purpose and without fee is hereby granted,provided that the above copyr notice appear in all copies and thatboth that copyr notice and this permission notice appear insupporting documentation, and that the name of Glenn G. Lai not beused in advertising or publicity pertaining to distribution of thesoftware without specific, written prior permission.Glenn G. Lai DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDINGALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALLDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES ORANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THISSOFTWARE.Glenn G. LaiP.O. Box 4314Austin, Tx 78765glenn@cs.utexas.edu)7/21/94*******************************************************************************//* $XConsortium: IODelay.s /main/4 1996/02/21 17:40:21 kaleb $ */ /*  *   All we really need is a delay of about 40ns for I/O recovery for just *   about any occasion, but we'll be more conservative here:  On a *   100-MHz CPU, produce at least a delay of 1,000ns. */ #include "assyntax.h"	FILE("DACDelay.s")	AS_BEGIN	GLOBL	GLNAME(GlennsIODelay)	SEG_TEXT	ALIGNTEXT4GLNAME(GlennsIODelay):	MOV_L 	(CONST(100), EAX)delay_it:	DEC_L	(EAX)	JNE	(delay_it)	RET

⌨️ 快捷键说明

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