Quote Originally Posted by longpole001 View Post
the extra if then ,else commands , may cause some delays in the timing ill have to see the output it creates to check it
Ha! That's funny.

By using a PORT offset to begin with, it's doing "Array" operations that will take more time than a simple BYTE comparison and subtraction.

The comparison takes 4 cycles if true, 5 if false.
The subtraction takes 4 cycles if >= 40.

The array operation takes ... 30 instruction cycles.