home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / s / snip1292.zip / HIRES.ASM < prev    next >
Assembly Source File  |  1992-04-27  |  1KB  |  38 lines

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