home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / SCREEN / VIDMODE.ZIP / APRTSCRN.ASM < prev    next >
Encoding:
Assembly Source File  |  1990-08-11  |  671 b   |  27 lines

  1. title Set alternate print screen routine.
  2.  
  3. code    segment
  4.         assume          cs:code,ds:code
  5.  
  6.         org     100h
  7.  
  8. begin:
  9.         mov     ax,1200h        ;Request ega information.
  10.         mov     bl,10h
  11.         xor     cx,cx           ;CX will contain info if ega/vga.
  12.         int     10h
  13.  
  14.         or      cx,cx           ;cx will not be 0 if ega/vga is present.
  15.         jz      done            ;ega not present.
  16.  
  17.         mov     ax,1200h        ;Alternate screen routine
  18.         mov     bl,20h
  19.         int     10h
  20.  
  21. done:
  22.         mov     ax,4c00h
  23.         int     21h             ;Program terminate.
  24.  
  25. code    ends
  26.         end        begin
  27.