Jeff,
Thank for checking my sanity. I will put it off for now or keep it in the back burner.
I did it in c, but I checked the assembly code it generated ;-) I was curious if the compiler would sneak in the safe method OUTMOD_7 between the lines. I am happily surprised that it did not. It would have mess up the waveform entirely. At least in this case, the cure is much worse than the disease.
-- OCY