home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / sys / amiga / demos / 1590 < prev    next >
Encoding:
Text File  |  1992-11-13  |  2.6 KB  |  55 lines

  1. Nntp-Posting-Host: holmenkollen.ifi.uio.no
  2. Newsgroups: alt.sys.amiga.demos
  3. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!ifi.uio.no!larshaug
  4. From: larshaug@ifi.uio.no (Lars Haugseth)
  5. Subject: Re: Music and Code from Demos
  6. Message-ID: <1992Nov13.125706.13991@ifi.uio.no>
  7. Sender: larshaug@ifi.uio.no (Lars Haugseth)
  8. Organization: Dept. of Informatics, University of Oslo, Norway
  9. References: <MKNIP.92Nov5110420@silver-surfer.hut.fi> <1992Nov05.155826.9766@crash> <MKNIP.92Nov9165110@blob.hut.fi> <BxLLGL.uF@dcs.ed.ac.uk>
  10. Date: Fri, 13 Nov 1992 12:57:06 GMT
  11. Lines: 41
  12. Originator: larshaug@holmenkollen.ifi.uio.no
  13.  
  14.  
  15. In article <BxLLGL.uF@dcs.ed.ac.uk>, jxp@dcs.ed.ac.uk (Joe Potter) writes:
  16. > In article <MKNIP.92Nov9165110@blob.hut.fi>, mknip@niksula.hut.fi (Mats Anders Knip) writes:
  17. > > The copper, my dear PC-user, is what makes the Amiga so superior to
  18. > > the PC when it comes to (among other things) scrolling and color-
  19. > > cycling. The copper (Graphics CoProcessor) takes care of all bitmap
  20. > > and color handling, and has direct access to chip-mem by DMA.
  21. >     Makes cups of tea as well? :-)
  22. > > If you want to do anything with the screen, tell the copper about
  23. > > it, and it takes care of it all. (well, almost...)
  24. >     Don't forget the blitter!
  25. > > For example - let's imagine you have got a 1000-pixel wide bitmap that
  26. > > you want to scroll from left to right. On the PC, each frame you copy
  27. > > 200*320 (= 64k) bytes from memory to the graphics-handler (right?),
  28. > > which takes a LOT of CPU time. You can't even make a 50hz scroll on a 
  29. > > slower PC. (the C64 could do that...poor work, PC-designers!)
  30. >     Ah, but the C64 could only do it on a character mapped screen.
  31. > Try it with the bitmap mode!
  32.  
  33. This can be done! You can have seen any demos or games on the C64 for
  34. some years 8) All you have to do is some serious timing and poking the
  35. $D011 register at the right cycle. If you do this right, the whole screen
  36. will be moved to the right, and the bytes that is moved off on the right
  37. side, reappears on the left. With this technique you can "easily" make
  38. a fast bitmap scroller. It's possible in both X and Y direction.
  39. (Y is a bit harder).
  40.  
  41. +-----------------------------------------------------------+
  42. | Lars Haugseth                                             +-+
  43. | Dept. of Informatics,               <larshaug@ifi.uio.no> | |
  44. | University of Oslo, Norway                                | |
  45. |                                                           | |
  46. |          If idiots could fly, this would be an airport... | |
  47. +-+---------------------------------------------------------+ |
  48.   +-----------------------------------------------------------+
  49.  
  50.