Mercurial > public > mk2
changeset 805:6256a891b2a0
BUGFIX: Show dives with >999mins divetime correctly
author | heinrichsweikamp |
---|---|
date | Thu, 05 Feb 2015 13:17:44 +0100 |
parents | 7f3f79e53f66 |
children | 66b3cdff04db |
files | code_part1/OSTC_code_asm_part1/valconv.asm |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
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: