Mercurial > public > mk2
comparison 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 |
comparison
equal
deleted
inserted
replaced
804:7f3f79e53f66 | 805:6256a891b2a0 |
---|---|
107 output16_3_call: | 107 output16_3_call: |
108 clrf ignore_digits | 108 clrf ignore_digits |
109 incf ignore_digits,F | 109 incf ignore_digits,F |
110 bsf show_last3 | 110 bsf show_last3 |
111 clrf WREG | 111 clrf WREG |
112 ; Limit to 3 | |
113 movlw .4 | |
114 cpfslt hi | |
115 bra output16_3_call_2 | |
116 movlw .3 | |
117 cpfseq hi ; =3? | |
118 bra output16_3_call_3 ; No, done. | |
119 movlw .231 ; Limit to 231(+768=999...) | |
120 cpfslt lo | |
121 movwf lo | |
122 bra output16_3_call_3 ; done. | |
123 output16_3_call_2: ; Set to .999 | |
124 movlw LOW .999 | |
125 movwf lo | |
126 movlw HIGH .999 | |
127 movwf hi | |
128 output16_3_call_3: | |
112 bra output16 | 129 bra output16 |
113 | 130 |
114 output16_call: | 131 output16_call: |
115 clrf ignore_digits | 132 clrf ignore_digits |
116 incf ignore_digits,F | 133 incf ignore_digits,F |