You should get a nomination for the "Best answer ever" Oscar on this forum :mrgreen:
Seriously, now I can figure what happens. With register variables enabled I get similar results, so the only problem should be the mod function. I *badly* need to learn some assembly :read: