Hi, I need to ensure a number (read from EEProm) is with certain limits (0..10 decimal) and if outside those limits set the number to 1. This works, but is there a quicker, better, or more obscure way of acieving the same effect? movf Number, w sublw .10 skpnc goto TestEnd movlw .1 movwf Number TestEnd Regards, Michael