comparison src/convert.asm @ 225:31088352ee32

BUGFIX: Show dives with >999mins divetime correctly
author heinrichsweikamp
date Sun, 01 Feb 2015 18:49:24 +0100
parents 11d4fc797f74
children 653a3ab08062
comparison
equal deleted inserted replaced
224:5a4801918be9 225:31088352ee32
94 bra LCD_val99_2 94 bra LCD_val99_2
95 95
96 global output16_3_call 96 global output16_3_call
97 global output16_call 97 global output16_call
98 global output16 98 global output16
99 output16_3_call: 99 output16_3_call: ; limit to 999
100 bsf show_last3 100 bsf show_last3
101 ; Limit to 3
102 movlw .4
103 cpfslt hi
104 bra output16_3_call_2
105 movlw .3
106 cpfseq hi ; =3?
107 bra output16_3_call_3 ; No, done.
108 movlw .231 ; Limit to 231(+768=999...)
109 cpfslt lo
110 movwf lo
111 bra output16_3_call_3 ; done.
112 output16_3_call_2: ; Set to .999
113 movlw LOW .999
114 movwf lo
115 movlw HIGH .999
116 movwf hi
117 output16_3_call_3:
101 output16_call: 118 output16_call:
102 clrf ignore_digits 119 clrf ignore_digits
103 incf ignore_digits,F 120 incf ignore_digits,F
104 clrf WREG 121 clrf WREG
105 output16: 122 output16: