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.






Bookmarks