Updated solution.
Prevent interrupts from being serviced when stepping in the debugger.
Added improved cycle counting (not enabled yet because it still causes problems with some games).