Hi,
If I read the cpu emulation code correctly, divs/divu cycles are calculated simply by adding the worst case cycle count. If that's the case then the following code Jorge Qwik (ijor) will give accurate cycles for all cases of division:
http://pasti.fxatari.com/68kdocs/div68kCycleAccurate.c
Hope this helps,
George
Hi,
If I read the cpu emulation code correctly, divs/divu cycles are calculated simply by adding the worst case cycle count. If that's the case then the following code Jorge Qwik (ijor) will give accurate cycles for all cases of division:
http://pasti.fxatari.com/68kdocs/div68kCycleAccurate.c
Hope this helps,
George