home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!actrix!templar!jbickers
- Newsgroups: comp.sys.amiga.programmer
- Subject: CPU cycles
- Message-ID: <jbickers.0bpc@templar.actrix.gen.nz>
- From: jbickers@templar.actrix.gen.nz (John Bickers)
- Date: 22 Jul 92 21:29:28 PST
- Organization: TAP, NZAmigaUG
- Lines: 18
-
- I'm having some difficulty working out the relationship between
- CPU cycles and clock speed. I want to execute a routine at
- something like 4000 times a second on a 25MHz 68030, so I've tried
- to figure out how many cycles I'm allowed in the routine (by this
- I mean CPU instruction cycles, as given in the back of an
- assembler manual - ie: MOVEQ takes 4 cycles, etc).
-
- My routine takes around 2920 cycles, but it's only happening about
- 850 times a second. Multiplying the two tells me there's roughly
- 2,500,000 cycles a second, when I expected ten times that (25MHz).
-
- Can someone shed some light on this for me? Are the cycles given
- for instructions some multiple of some other underlying cycle, or
- have I lost my grip on arithmetic perhaps?
-
- --
- *** John Bickers, TAP, NZAmigaUG. jbickers@templar.actrix.gen.nz ***
- *** "Radioactivity - It's in the air, for you and me" - Kraftwerk ***
-