home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / ibm / pc / hardware / 30481 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.7 KB  |  49 lines

  1. Newsgroups: comp.sys.ibm.pc.hardware
  2. Path: sparky!uunet!demos!news-server
  3. From:  blib@riaph.irkutsk.su (Blisnukov Boris)
  4. Subject: Re: [News] How do you smooth scroll EGA
  5. References: <1dmnj1INN1uc@ub.d.umn.edu>
  6. Date: Fri, 20 Nov 1992 05:12:42 GMT
  7. Reply-To: blib@riaph.irkutsk.su
  8. Organization: Stock Holding Company NICOS
  9. Sender: news-server@kremvax.hq.demos.su
  10. Message-ID: <ACAF73h053@riaph.irkutsk.su>
  11. Lines: 36
  12.  
  13. >Hello
  14. >  I am wondering what would be the most effective way of making the
  15. >320x200x16 EGA screen scroll. I have several ideas in mind.  
  16. >How do I smooth pan the EGA screen, I knew how to do it by
  17. >8 pixels at a time but I would like to pan the EGA video memory
  18. >one pixel at time for a very smooth effect.
  19. >Also is there any good animation techniques you know of?  It
  20. >must be fast.  If anything else, just give me a view pointers or
  21. >ideas in the right direction.
  22. >--
  23. >Chris Busch   CBUSCH@ub.d.umn.edu
  24. It's easy. And you can do it in the same vay on the VGA, not
  25. only EGA.  Atribute Controller Register (3C0h/3C1h) number 13h 
  26. bits 3-0 is horisontal pan 
  27.                  value
  28.             Mode      0-3,7 others  13h
  29.                    0    1      0     0
  30.                    1    2      1    n/a
  31.                    2    3      2     1
  32.                    3    4      3    n/a
  33.                    4    5      4     2
  34.                    5    6      5    n/a
  35.                    6    7      6     3
  36.                    8    0      7    n/a
  37. Changes of this  register allow you to pan screen on 8/4 pixels left or
  38. right without changing a video memory, If you want to scroll more then
  39. 8 pixels (or 4 depend from mode) you should change the start addres of
  40. the video buffer.
  41.  
  42. That's all. If you have any question you are welcome.
  43.  
  44. Boris Blisnukov.
  45.  
  46.  
  47.  
  48.