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

📄 setmcr.c

📁 异步通讯C语言例行子程序
💻 C
字号:
/* A module of ASYNCx.LIB version 1.02 */

#include <dos.h>
#include "asyncdef.h"

/**************************************************************
 Set the value of the Modem Control Register. If the UART's
 interrupt is enabled, do not let the programmer disable it.
 **************************************************************/

void a_setmcr(ASYNC *p,int newval)
{newval|=inportb(p->base+MCR) & 8;
 if (p)
   outportb(p->base+MCR,newval);
} /* a_setmcr(p,newval) */

⌨️ 快捷键说明

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