標籤: 暫無標籤

  函數名: geninterrupt


  功 能: 產生一個軟中斷


  用 法: void geninterrupt(int intr_num);


  程序例:


  #include


  #include


  "


  void writechar(char ch);


  int main(void)


  {


  clrscr();


  gotoxy(80,25);


  writechar('*');


  getch();


  return 0;


  }


  "


  void writechar(char ch)


  {


  struct text_info ti;


  "


  gettextinfo(&ti);


  "


  _AH = 9;


  "


  _AL = ch;


  _BH = 0; "


  _BL = ti.attribute; "


  _CX = 1; "


  geninterrupt(0x10); "


  }
上一篇[美國夢八隊]    下一篇 [geekos]

相關評論

同義詞:暫無同義詞