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

📄 qdio.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
/* * qdio.c *//*	@(#)qdio.c	4.1  (ULTRIX)        7/2/90 *//************************************************************************ *									* *			Copyright (c) 1985 by				* *		Digital Equipment Corporation, Maynard, MA		* *			All rights reserved.				* *									* *   This software is furnished under a license and may be used and	* *   copied  only  in accordance with the terms of such license and	* *   with the  inclusion  of  the  above  copyright  notice.   This	* *   software  or  any  other copies thereof may not be provided or	* *   otherwise made available to any other person.  No title to and	* *   ownership of the software is hereby transferred.			* *									* *   The information in this software is subject to change  without	* *   notice  and should not be construed as a commitment by Digital	* *   Equipment Corporation.						* *									* *   Digital assumes no responsibility for the use  or  reliability	* *   of its software on equipment which is not supplied by Digital.	* *									* ************************************************************************/#define CP_GETCHR	0x1c#define CP_PUTCHRPOLL	0x20#define CP_PUTCHR	0x24	.globl _conspg	.globl _qdgetc_qdgetc:	.word 0x800	movl	_conspg,r11		# point to the console page1:	jsb	*CP_GETCHR(r11)		# Get a character?	blbc	r0, 1b			# No, wait	movl	r1,r0	ret	.globl _qdputc_qdputc:	.word 0x800	movl	_conspg,r11		# point to the console page1:	jsb     *CP_PUTCHRPOLL(r11)	# Put a character?	blbc	r0, 1b			# No, wait	movl	4(ap),r1		# Restore R1	jsb     *CP_PUTCHR(r11)		# Echo the character	movl	$1,r0	ret						      

⌨️ 快捷键说明

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