永发信息网

C语言中int86()函数的用法

答案:3  悬赏:0  手机版
解决时间 2021-03-23 23:06
  • 提问者网友:孤凫
  • 2021-03-23 09:07
C语言中int86()函数的用法
最佳答案
  • 五星知识达人网友:深街酒徒
  • 2021-03-23 10:15
1、函数名: int86
功  能: 通用8086软中断接口
用  法: int int86(int intr_num, union REGS *inregs, union REGS *outregs);
2、程序例:

#include 
#include 
#include 
#define VIDEO 0x10
void movetoxy(int x, int y)
{
   union REGS regs;
   regs.h.ah = 2;  
   regs.h.dh = y;
   regs.h.dl = x;
   regs.h.bh = 0;  
  int86(VIDEO, ®s, ®s);
}
int main(void)
{
   clrscr();
   movetoxy(35, 10);
   printf("Hello/n");
   return 0;
}
全部回答
  • 1楼网友:千夜
  • 2021-03-23 12:06
#include
#include
union REGS inregs,outregs;
void curdisp()
{
inregs.h.ah=1;
inregs.h.ch=0x06;
inregs.h.cl=0x07;
int86(0x10,&inregs,&outregs);
}
void curerase()
{
inregs.h.ah=1;
inregs.h.ch=0x20;
int86(0x10,&inregs,&outregs);
}
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯