home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / hamradio / bm332c.zip / CLS.C < prev    next >
C/C++ Source or Header  |  1993-01-14  |  639b  |  24 lines

  1. /*-----------------------------------------------------------------*/
  2. /*  c l s                                                          */
  3. /*                                                                 */
  4. /*  Clear screen and home cursor                                   */
  5. /*  using BIOS interrupt 10h                                       */
  6. /*-----------------------------------------------------------------*/
  7.  
  8. #pragma inline
  9.  
  10. void cls(void)
  11. {
  12.     asm  mov ax, 0600h;
  13.     asm  mov bx, 0700h;
  14.     asm  mov cx, 0;
  15.     asm  mov dx, 184fh;
  16.     asm  int 10h;
  17.     
  18.     asm mov ah, 2;
  19.     asm mov bh, 0;
  20.     asm mov dx, 0;
  21.     asm int 10h;
  22. }
  23.  
  24.