wil
Registered: Jan 2019 Posts: 63 |
Count raw cycles of an execution (ignore VIC-stealed cycles) in VICE?
Is there an easy way to measure the execution time of an assembler program with VICE?
I know VICE has the CPU cycle counter and even a function for displaying/resetting the cycle counter (stopwatch, by the way, this can be abbreviated with sw, although this feature is not documented) but the cycle counter counts clock cycles also when the CPU is halted due to a VIC memory access.
However, I would like to measure the net used cycles instead of the clock cycles passed.
Currently, I am switching VIC off (0 -> $d011) and waiting for a new frame (and, of course, switch off IRQ) to do my measurements. But I wonder if there is a more elegant version, probably an executed clock cycle counter buried somewhere in VICE? |