第12章节c语言综合应用程序示例(855KB).pptVIP

  • 3
  • 0
  • 约1.93万字
  • 约 61页
  • 2018-03-29 发布于未知
  • 举报

第12章节c语言综合应用程序示例(855KB).ppt

二、操作系统接口库函数 1、通用软中断调用库函数int86() int86(int intno,union REGS *inregs,union REGS *outregs); 说明:参数intno表示调用类型号,相当于中断指令int n调 用的中断类型号n;参数inregs用于接收调用功能号 及相关的一些入口参数;参数outregs用于接收调用 后的返回值,即出口参数。 举例:在屏幕的35行、20列处显示字符串“COMPUTER”。 #include stdio.h #include dos.h #include conio.h #define VIDEO 0x10 /* 10H号软中断 */ main() { union REGS inregs, outregs; inregs.h.ah = 2; /* 2号功能,即设置光标位置 */ inregs.h.dh = 35; /* 置行号为 35 */ inregs.h.dl = 20; /* 置列号为 20 */ inregs.h.bh = 0;

文档评论(0)

1亿VIP精品文档

相关文档