> > Seriously: > > Don't put code like this inside timing loops. > > Avoid timing loops wherever possible. > > Pad with NOPs in the appropriate cases. :-P > > This approach my friend, is M$ territory! I DID put them in order of preference... I've had to do it too. When you need a 2uS delay, what else can you practically do? My RTOS uses 1mS ticks, so that's WAY too slow, and any other mechanism I could come up with took longer than I needed to get in and out of it. (16 instructions total)