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

📄 printc.c

📁 详细介绍了一篇关于pci开发的接口芯片
💻 C
字号:
/*  CXL - Copyright (c) 1987-1989 by Mike Smedley - All Rights Reserved  */
/*  PRINTC.C    - displays a character at specified location on screen   */

#include <conio.h>
#include <dos.h>
#include "cxlvid.h"

void printc(int row,int col,int attr,int ch)
{
   int oldrow,oldcol;
   FARPTR p;

   /* check for monochrome adapter, adjust attribute */
   attr=mapattr(attr);

   #ifdef COMMENT_OUT
      readcur(&oldrow,&oldcol);
      gotoxy_(row,col);
      putchat(ch,attr);
      gotoxy_(oldrow,oldcol);
   #else
      FP_SET(p, ((row*_vinfo.numcols)+col)*2, SS_SCREEN);
      PokeFarWord(p, (USHORT)(attr << 8 | (ch & 0xff)));
   #endif
}

⌨️ 快捷键说明

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