Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode.asm @ 128:4c588c3d1f12
Saturation graphs in customview divemode
author | JeanDo |
---|---|
date | Tue, 04 Jan 2011 15:14:42 +0100 |
parents | 4f9f477bb452 |
children | 03df42de03e1 |
comparison
equal
deleted
inserted
replaced
127:245de99d1d15 | 128:4c588c3d1f12 |
---|---|
163 nop | 163 nop |
164 diveloop_loop4: | 164 diveloop_loop4: |
165 bra diveloop_loop ; Loop the divemode | 165 bra diveloop_loop ; Loop the divemode |
166 | 166 |
167 timeout_premenu_divemode: | 167 timeout_premenu_divemode: |
168 incf timeout_counter3,F ; Yes... | 168 incf timeout_counter3,F ; Yes... |
169 | 169 |
170 GETCUSTOM8 d'4' ; loads premenu_timeout into WREG | 170 GETCUSTOM8 d'4' ; loads premenu_timeout into WREG |
171 cpfsgt timeout_counter3 ; ... longer then premenu_timeout | 171 cpfsgt timeout_counter3 ; ... longer then premenu_timeout |
172 return ; No! | 172 return ; No! |
173 | 173 |
174 bcf premenu ; Yes, so clear "Menu?" and clear pre_menu bit | 174 bcf premenu ; Yes, so clear "Menu?" and clear pre_menu bit |
175 call PLED_menu_clear ; Remove "Menu?" | 175 call PLED_menu_clear ; Remove "Menu?" |
176 return | 176 return |
177 | 177 |
178 divemode_apnoe_tasks: ; 1 sec. Apnoe tasks | 178 divemode_apnoe_tasks: ; 1 sec. Apnoe tasks |
179 call PLED_display_apnoe_descent ; Show descent timer | 179 call PLED_display_apnoe_descent ; Show descent timer |
180 | 180 |
181 btfsc divemode2 ; Time running? | 181 btfsc divemode2 ; Time running? |
182 bra divemode_apnoe_tasks2 ; New descent, reset data if flag is set | 182 bra divemode_apnoe_tasks2 ; New descent, reset data if flag is set |
183 | 183 |