comparison src/options.asm @ 220:effd7259f5a5

make button sensitivity configurable (cR hardware)
author heinrichsweikamp
date Mon, 05 Jan 2015 14:41:23 +0100
parents f515712d8cd6
children ecadc17a028f
comparison
equal deleted inserted replaced
219:4b2622e0fd50 220:effd7259f5a5
170 170
171 movf opt_type,W ; Type == ENUM8 ? 171 movf opt_type,W ; Type == ENUM8 ?
172 xorlw 1 172 xorlw 1
173 bz option_check_enum8 ; ENUM8: Check if lower then max. value only 173 bz option_check_enum8 ; ENUM8: Check if lower then max. value only
174 174
175 movf opt_min,W 175 tstfsz opt_min ; opt_min=0?
176 cpfsgt INDF1 ; bigger then opt_min? 176 bra option_check_both ; no
177 bra option_check_enum8 ; Check max only
178
179 option_check_both:
180 decf opt_min,W
181 cpfsgt INDF1 ; bigger then opt_min-1?
177 bra option_check_reset ; No, reset option 182 bra option_check_reset ; No, reset option
178 option_check_enum8: ; ENUM8: Check max only 183 option_check_enum8: ; ENUM8: Check max only
179 incf opt_max,W 184 incf opt_max,W
180 cpfslt INDF1 ; smaller then opt_max+1? 185 cpfslt INDF1 ; smaller then opt_max+1?
181 bra option_check_reset ; No, reset option 186 bra option_check_reset ; No, reset option