twillkickers
Experienced Member
Doing some tinkering with my IIGS and I'd like to be able to count clock cycles required for execution of a machine language program. I'm using the cc65 compiler to take some small C programs and run them on my IIGS. (essentially followed this tutorial for anyone who is also interested: https://macgui.com/kb/article/761)
I'd like to run some number crunching scripts and then see the execution time in clock cycles for the entire program. Is there a good way to count clock cycles and display the number on the Apple II/IIgs? What C commands or 6502 machine language instruction(s) would I use? I'm new to this type of thing and would love to learn more. Thanks for any help!
I'd like to run some number crunching scripts and then see the execution time in clock cycles for the entire program. Is there a good way to count clock cycles and display the number on the Apple II/IIgs? What C commands or 6502 machine language instruction(s) would I use? I'm new to this type of thing and would love to learn more. Thanks for any help!