EASy68K
http://www.easy68k.com/EASy68Kforum/

Convert cycle counter into time units?
http://www.easy68k.com/EASy68Kforum/viewtopic.php?f=5&t=1287
Page 1 of 1

Author:  rojjak [ Thu Jan 23, 2014 1:29 am ]
Post subject:  Convert cycle counter into time units?

It might be very simple, but I cannot get through it. I know I can get its value by the functionality 31 of the trap #15, but how can I convert this number of cycles into a time measurement (for a later use as a delay using another trap #15 functionality)?
Thanks in advance.

Author:  profkelly [ Sun Jan 26, 2014 12:32 am ]
Post subject:  Re: Convert cycle counter into time units?

There is no direct correlation between cycle count and absolute time. The speed of the simulator depends upon the speed of the host PC. The instruction execution time is also different relative to that of an actual 68000 but the cycle count is reflective of an actual 68000.

If you want real elapsed time you could use trap task 8. The resolution is 1/100 second.

Author:  rojjak [ Sun Jan 26, 2014 12:43 pm ]
Post subject:  Re: Convert cycle counter into time units?

Just what I needed. Wrong question, right answer. Thank you.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/