Mercurial > public > hwos_code
diff 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 |
line wrap: on
line diff
--- a/src/options.asm Sun Jan 04 21:24:01 2015 +0100 +++ b/src/options.asm Mon Jan 05 14:41:23 2015 +0100 @@ -172,8 +172,13 @@ xorlw 1 bz option_check_enum8 ; ENUM8: Check if lower then max. value only - movf opt_min,W - cpfsgt INDF1 ; bigger then opt_min? + tstfsz opt_min ; opt_min=0? + bra option_check_both ; no + bra option_check_enum8 ; Check max only + +option_check_both: + decf opt_min,W + cpfsgt INDF1 ; bigger then opt_min-1? bra option_check_reset ; No, reset option option_check_enum8: ; ENUM8: Check max only incf opt_max,W