Mercurial > public > hwos_code
comparison src/options.asm @ 222:ecadc17a028f
check opt_max correctly
author | heinrichsweikamp |
---|---|
date | Tue, 06 Jan 2015 19:24:58 +0100 |
parents | effd7259f5a5 |
children | 5a30b5b9ee4a |
comparison
equal
deleted
inserted
replaced
221:90923a081ae7 | 222:ecadc17a028f |
---|---|
179 option_check_both: | 179 option_check_both: |
180 decf opt_min,W | 180 decf opt_min,W |
181 cpfsgt INDF1 ; bigger then opt_min-1? | 181 cpfsgt INDF1 ; bigger then opt_min-1? |
182 bra option_check_reset ; No, reset option | 182 bra option_check_reset ; No, reset option |
183 option_check_enum8: ; ENUM8: Check max only | 183 option_check_enum8: ; ENUM8: Check max only |
184 incf opt_max,W | 184 infsnz opt_max,W ; Max = 255? |
185 return ; Yes, igonore max. test | |
185 cpfslt INDF1 ; smaller then opt_max+1? | 186 cpfslt INDF1 ; smaller then opt_max+1? |
186 bra option_check_reset ; No, reset option | 187 bra option_check_reset ; No, reset option |
187 return ; in range, return | 188 return ; in range, return |
188 | 189 |
189 option_check_reset: | 190 option_check_reset: |