home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / assemutl.zip / CLEAR.ASM < prev    next >
Assembly Source File  |  1983-07-28  |  1KB  |  36 lines

  1. ;--------------------------------------
  2. ; PROGRAM CLS
  3. ;
  4. ; Provides an external DOS command to clear
  5. ; the CRT screen.  Example source file for CHASM.
  6. ;
  7. ; Uses BIOS routine VIDEO_IO to scroll up
  8. ; the screen and position the cursor.  For
  9. ; documentation of VIDEO_IO see page A-43
  10. ; of Technical Reference.
  11. ;---------------------------------------
  12.     MOV AH,6     ;this specifys we want a scroll
  13.                  ;CH/CL specifies row & column
  14.                  ;scroll region's upper left corner
  15.     MOV CH,0     ;row = 0
  16.     MOV CL,0     ;column = 0
  17.                  ;DH/DL does the same for lower
  18.                  ;right corner.
  19.     MOV DH,24    ;row = 24
  20.     MOV DL,79    ;column = 79
  21.                  ;BH specifies color to fill with
  22.     MOV BH,7     ;we'll use black
  23.                  ;AL specifies how far to scroll
  24.     MOV AL,0     ;0 means blank out entire region
  25.     INT 16       ;call video_io
  26.  
  27.     MOV AH,2     ;position cursor function
  28.                  ;DH/DL specifies row and column
  29.     MOV DH,0     ;row = 0
  30.     MOV DL,0     ;column = 0
  31.                  ;BH specifies which display page
  32.     MOV BH,0     ;page 0
  33.     INT 16       ;call video_io
  34.  
  35.     INT 32       ;return to DOS
  36.