home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT83.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-27  |  865 b   |  42 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat83.c                                              */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5. #include <conio.h>
  6. #include <dos.h>
  7.  
  8. #define VIDEO 0x10
  9.  
  10. void movetoxy(int x2, int y2)
  11. {
  12.    union REGS regs;
  13.  
  14.    regs.h.ah = 2;  /* │]⌐w┤σ╝╨ñºª∞╕m */
  15.    regs.h.dh = y2;
  16.    regs.h.dl = x2;
  17.    regs.h.bh = 0;  /* ▓─ 0 ¡╢ */
  18.    int86(VIDEO, ®s, ®s);
  19. }
  20.  
  21.  
  22. void main()
  23. {
  24.     int x1, y1, i;
  25.  
  26.    /* Ñ²▓M░ú╝ⁿ╣⌡╡e¡▒ */
  27.    union REGS regs;
  28.  
  29.    regs.x.cx = 0;
  30.    regs.x.dx = 0x1850;
  31.    regs.h.bh = 7;
  32.    regs.x.ax = 0x0600;
  33.    int86(VIDEO,®s,®s);
  34.  
  35.    for(i=2;i<=62;i+=12)
  36.       for(y1=0,x1=i;y1<24;y1++)
  37.          {
  38.           movetoxy(x1, y1);
  39.           printf("╢┘! ▒zªn╢▄ !\n");
  40.          }
  41. }
  42.