home *** CD-ROM | disk | FTP | other *** search
- title Set alternate print screen routine.
-
- code segment
- assume cs:code,ds:code
-
- org 100h
-
- begin:
- mov ax,1200h ;Request ega information.
- mov bl,10h
- xor cx,cx ;CX will contain info if ega/vga.
- int 10h
-
- or cx,cx ;cx will not be 0 if ega/vga is present.
- jz done ;ega not present.
-
- mov ax,1200h ;Alternate screen routine
- mov bl,20h
- int 10h
-
- done:
- mov ax,4c00h
- int 21h ;Program terminate.
-
- code ends
- end begin
-