home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / HEATH / CONSOL.H < prev    next >
Text File  |  2000-06-30  |  641b  |  53 lines

  1.         
  2. /*
  3.  *    console.h - Contains functions that deal with the console.
  4.  *            chmode() - puts TT: in the character mode, no echo
  5.  *            lnmode() - puts TT: in the line mode with echo
  6.  *            rawmode() - puts TT: in the raw mode,no echo
  7.  *            width()  - sets the width of a line in TT:
  8.  *            clrcon() - clears the TT: type ahead buffer
  9.  */
  10.  
  11. chmode() {
  12. #asm
  13.     XRA    A
  14.     LXI    B,201205A
  15.     SCALL    6
  16. #endasm
  17. }
  18.  
  19. lnmode() {
  20. #asm
  21.     XRA    A
  22.     LXI    B,000205A
  23.     SCALL    6
  24. #endasm
  25. }
  26.  
  27. rawmode() {
  28. #asm
  29.     XRA    A
  30.     LXI    B,205205A
  31.     SCALL    6
  32. #endasm
  33. }
  34.  
  35. width(num)
  36. int    num; {
  37. #asm
  38.     LXI    H,2
  39.     DAD    SP
  40.     CALL    h.
  41.     MOV    B,L
  42.     MVI    C,377Q
  43.     MVI    A,3
  44.     SCALL    6
  45. #endasm
  46. }
  47.  
  48. clrcon() {
  49. #asm
  50.     SCALL    7
  51. #endasm
  52. }
  53.