home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2001 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: TMapping again!
  5. Date: 26 Jan 1996 01:01:43 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4e995n$rk@maureen.teleport.com>
  8. References: <4d6v0t$3dt@maureen.teleport.com> <4dg4jk$km@news.cs.tu-berlin.de> <4dhvd5$5r2@maureen.teleport.com> <38232113@kone.fipnet.fi> <4e10ol$ck3@maureen.teleport.com> <38232152@kone.fipnet.fi>
  9. NNTP-Posting-Host: linda.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Jyrki Saarinen (jsaarinen@kone.fipnet.fi) wrote:
  13.  
  14. : >         repeat  8
  15. : >         mw      D1,D2
  16. : >         mb      D0,D2
  17. : >         addx.l  d7,D0
  18. : >         movea.l d2,a0
  19. : >         addx.l  d6,D1
  20. : >         mw      (A0),d3
  21. : >         mw      D1,D2
  22. : >         mb      D0,D2
  23. : >         movea.l d2,a0
  24. : >         mb      (A0),d3
  25. : >         addx.l  d7,D0
  26. : >         addx.l  d6,D1
  27. : >         mw      d3,(a1)+
  28. : >         endr
  29.  
  30. : How do you have the fraction bits in d7 and d6? Also,
  31. : how do you do addx correction before the loop with
  32. : two addx?
  33.  
  34.  yfract/xint    d7
  35.  xfract/yint    d6    (y is preshifter by 8)
  36.  
  37.  Check my followup to your question in "PPC compiler", it show
  38.  how to setup the loop and correctly order the additions.
  39.  
  40. : Also, does it really pay off buffering two pixels
  41. : to a register instead of writing bytewise? At least
  42. : if I count 020/030 cycles it does not pay off.
  43.  
  44.  Maybe not on papper, but doing this give me a better frame rate.
  45.  (I have a 25mhz 030)
  46.  
  47.  Stephan
  48.