home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / assemblr / library / screen / hercules / scr_on2.asm < prev    next >
Assembly Source File  |  1991-09-18  |  697b  |  35 lines

  1. ;Programm löscht den Bildschirm und schaltet ihn dann wieder ein
  2. ;uebersetzen mit TASM 2.0
  3. ;letzte Änderung am 11.09.91 B. Rosenau
  4.  
  5. .286  ;286-er Befehle einschalten
  6.  
  7.    DOSSEG
  8.    .MODEL SMALL
  9.    .STACK 100h
  10.    .DATA
  11.  
  12.    .CODE
  13.  
  14.    mov  ax,@data
  15.    mov  ds,ax                       ;set DS to point to the data segment
  16.  
  17.    pusha        ;erst Bildschirm löschen
  18.    mov ah,0
  19.    mov al,2
  20.    int 10h
  21.    popa
  22.  
  23.    push ax      ;dann Bildschirm wieder anschalten
  24.    push dx
  25.    mov dx,3B8h
  26.    mov al,8h
  27.    out dx,al
  28.    pop dx
  29.    pop ax
  30.  
  31.  
  32.    mov  ah,4ch                      ;DOS terminate program function
  33.    int  21h                         ;terminate the program
  34.    END
  35.