home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / ASSEMBLE / 80X0992 / VGAMODEX.TXT < prev   
Text File  |  1992-09-30  |  2KB  |  46 lines

  1. Tue 25 Aug 92 22:05
  2. By: Matt Pritchard @ 930/21
  3. Re: vga mode x
  4. --------------------------------------------------------------------
  5.  
  6. The following is a FAQ (Frequently Asked Question) summary of information and
  7. assembly routines for Mode "X" Graphics.
  8.  
  9. An overview of Mode "X" for the VGA Adaptor:
  10.  
  11. 1) Mode "X" is a 256 color graphics mode that is available on *ANY* VGA card
  12. with the minimum of 256K video RAM.  It is capable of providing higher
  13. resoultions than the only "Official" 256 color mode, mode 13h. (In quickbasic
  14. that is mode 13)
  15.  
  16. 2) Mode "X" comes in 8 different flavors: 320 or 360 pixels horizontally, and
  17. 200, 240, 400, and 480 pixels vertically.
  18.  
  19. 3) Since mode X is not supported by the VGA BIOS, there is no built in support
  20. for it.  A program must provide its own routines for *ALL* operations in Mode
  21. "X", including setting up the video mode.
  22.  
  23. 4) Unlike Mode 13h, which has one display page, Mode "X" allows from 1 to 4
  24. video pages, depending upon the resoultion selected.  The reason that Mode 13h
  25. has but one page is that it activates a VGA hardware feature known as CHAIN4,
  26. which prevents access to all but 64K of VGA's video RAM.  CHAIN4 is what
  27. provides mode 13h's linear addres space.
  28.  
  29. 5) Unlike Mode 13h, where each 256 color (1-byte) pixel has a unique address in
  30. the E000: segement, in Mode X there are Four (4) Pixels at each address in
  31. E000: segment.  The VGA's control registers allow you to control which of the 4
  32. pixels is currently available at an address.
  33.  
  34. 6) It is possible to use the VGA's control registers to operate on 2 or more of
  35. the Pixels at the same address at the same time.  The CPU can write one color
  36. value, and set up to 4 pixels with that value at the same time.
  37.  
  38. 7) Video RAM that is not being used for the current screen display can be used
  39. to store images and patterns.  These images and patterns can be copied to other
  40. parts of the Video RAM 4 bytes (32 bits) at a time, which is much faster than
  41. the 8 bits (1 byte) at time that is possible over the ISA BUS.  (16 Bit BUS
  42. operations can produce erroneous results)
  43.  
  44. If anything is unclear, inadequate, or you just plain want to know more or have
  45. other specific questions, please send me a message.
  46.