Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/valconv.asm @ 805:6256a891b2a0
BUGFIX: Show dives with >999mins divetime correctly
author | heinrichsweikamp |
---|---|
date | Thu, 05 Feb 2015 13:17:44 +0100 |
parents | 966ebf905514 |
children | c50296c3059e |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/valconv.asm Wed Feb 04 20:18:34 2015 +0100 +++ b/code_part1/OSTC_code_asm_part1/valconv.asm Thu Feb 05 13:17:44 2015 +0100 @@ -109,6 +109,23 @@ incf ignore_digits,F bsf show_last3 clrf WREG + ; Limit to 3 + movlw .4 + cpfslt hi + bra output16_3_call_2 + movlw .3 + cpfseq hi ; =3? + bra output16_3_call_3 ; No, done. + movlw .231 ; Limit to 231(+768=999...) + cpfslt lo + movwf lo + bra output16_3_call_3 ; done. +output16_3_call_2: ; Set to .999 + movlw LOW .999 + movwf lo + movlw HIGH .999 + movwf hi +output16_3_call_3: bra output16 output16_call: