home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / HIRES.ASM < prev    next >
Assembly Source File  |  1997-07-05  |  1KB  |  40 lines

  1. ;  +++Date last modified: 05-Jul-1997
  2.  
  3. 1. 80 x 50 on VGA
  4. =================
  5.        mov     ax,1202h                ; select 400 scan line mode
  6.        mov     bl,30h
  7.        int     10h
  8.        mov     ax,3                    ; select 80 x 25 16 colour mode
  9.        int     10h
  10.        mov     ax,1112h                ; load 8x8 character set into RAM
  11.        mov     bl,0                    
  12.        int     10h                    
  13.  
  14. 2. 80 x 43 on EGA
  15. =================
  16.        mov     ax,3                    ; establish 350 scan line mode
  17.        int     10h                     ; and 80 x 25 16 colour mode
  18.        mov     ax,1112h                ; 8x8 character set
  19.        mov     bl,0
  20.        int     10h
  21.        mov     ax,40h                  ; update cursor size/ pointers
  22.        mov     es,ax
  23.        mov     dx,es:[63h]
  24.        mov     ax,060ah
  25.        out     dx,ax
  26.        mov     ax,000bh
  27.        out     dx,ax
  28.        mov     ax,12h                  ; set up new prtscr routine
  29.        mov     bl,20h
  30.        int     10h
  31.  
  32. Warnings:
  33. =========
  34. DOS's ANSI.SYS prior to DOS 5 has no comprehension of screens having more
  35. than 25 lines! 
  36.  
  37. Reference:
  38. "Programmer's Guide to PC and PS/2 Video Systems": author Richard Wilton.
  39. Microsoft Press 1988.  ISBN 1-55615-103-9
  40.