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