home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / VGAMODE.ZIP / README < prev    next >
Encoding:
Text File  |  1996-08-04  |  1.5 KB  |  51 lines

  1. Ever wondered how to set up your own video
  2. mode without going through the video bios
  3. interrupt 0x10, service 0x00?
  4.  
  5. Here's two files that basically tell you
  6. what VGA registers need to be programmed
  7. to establish a 256 colour video mode on a
  8. VGA register level compatible video card,
  9. and a small piece of code from my graphics
  10. device driver for Linux which can save the
  11. current mode, or initialise a new one.
  12.  
  13. GUIDE.set is a step by step guide which
  14. documents what has to be sent to what part
  15. of the VGA, when, in order to establish a
  16. 256 colour video mode.
  17.  
  18. GUIDE.get is a step by step guide which
  19. documents which registers need to be
  20. preserved in order to restore a current
  21. video mode.
  22.  
  23. mode.c contains two C routines,
  24. vga_mode_set() and vga_mode_get() which
  25. perform the above operations.
  26.  
  27. vga.h contains some constants used by
  28. mode.c, and a struct definition for my
  29. vgamode_t type.
  30.  
  31. vgamodes.h contains two sample vgamode_t
  32. structs, one for the BIOS mode 0x13, and
  33. another for the standard 320x200x256
  34. unchained video mode. Obviously, if you
  35. wanted different video modes, this is the
  36. file to add them to; I'm too lazy to flesh
  37. out the funky mode X variants out there,
  38. but basically you'd just take a mode X
  39. setting routine, and using the mode 0x13
  40. parameter block as a template, you'd
  41. pre-cook the sequencer registers etc that
  42. needed cooking.
  43.  
  44. Enjoy, and drop me a line if you find this
  45. stuff useful/buggy as hell :)
  46.  
  47. --
  48. Simon                                  (sjm@it.com.au)
  49.  
  50. strength through elegance  ///  beauty in intelligence
  51.