[C] 通用8086软中断接口 →→→→→进入此内容的聊天室

来自 , 2019-07-08, 写在 C, 查看 104 次.
URL http://www.code666.cn/view/be6c7b09
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <dos.h>
  4.  
  5. #define VIDEO 0x10
  6.  
  7. void movetoxy(int x, int y)
  8. {
  9.    union REGS regs;
  10.  
  11.    regs.h.ah = 2;  /* set cursor postion */
  12.    regs.h.dh = y;
  13.    regs.h.dl = x;
  14.    regs.h.bh = 0;  /* video page 0 */
  15.    int86(VIDEO, &regs, &regs);
  16. }
  17.  
  18. int main(void)
  19. {
  20.    clrscr();
  21.    movetoxy(35, 10);
  22.    printf("Hello\n");
  23.    return 0;
  24. }
  25.  

回复 "通用8086软中断接口"

这儿你可以回复上面这条便签

captcha