home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3559 < 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: Free Cycles
  5. Date: 21 Feb 1996 18:48:23 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Message-ID: <4gfpdn$elr@maureen.teleport.com>
  8. References: <1996Feb15.170809.6386@imada.ou.dk> <1139.6624T1309T1361@teclink.net>
  9. NNTP-Posting-Host: linda.teleport.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. rad (rad@teclink.net) wrote:
  13.  
  14. : Bjorn Reese <breese@imada.ou.dk> wrote:
  15. : >tim bscke (azure@people-x.people.de) wrote:
  16. : >>         move.l (fast)+,(chip)+          ;18 cylces
  17. : >>         clr.l   (chip)+                 ;24(!!!) cycles
  18. : >[...]
  19. : >>     Why ?? This seems to be really strange to me.. esp. the clr.l..
  20.  
  21. : >If my memory haven't betrayed me, clr reads the destination before
  22. : >clearing it. So a clr makes two chip accesses. This behaviour is
  23. : >also the reason why you should never use clr to clear a write-only
  24. : >register.
  25.  
  26. : You are correct for the 68000.  This is a good reason to stick with the 68010+
  27. : (if not the 68020+) where the clr instruction doesn't have this drawback.
  28. : Considering that the 68000's are only used in unaccelerated 500s, 600s and
  29. : 2000s I don't think that's really problem.
  30.  
  31.  clr.l    (a0)+ take 6 cycle on a 030/020 , a move.l dx,(a0)+ take 4...
  32.  dunno on the 040 and up... but using clr is not recomanded for speed.
  33.  Its nice when you dont have a reqister free or set to zero, otherwise
  34.  avoid.
  35.  
  36.  Stephan
  37.