Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 528:67ab3c028bc2
Show change gas depth below gaslist (in divemode)
author | heinrichsweikamp |
---|---|
date | Tue, 13 Dec 2011 21:00:40 +0100 |
parents | f9a03808dfe2 |
children | ab2686087bce |
comparison
equal
deleted
inserted
replaced
527:31db81de1d4f | 528:67ab3c028bc2 |
---|---|
154 btfss menu3_active ; Menu position 3 has functionality? | 154 btfss menu3_active ; Menu position 3 has functionality? |
155 incf menupos,F ; No, +1, skip to menuos=4 | 155 incf menupos,F ; No, +1, skip to menuos=4 |
156 | 156 |
157 test_switches_divemode_menu1a: | 157 test_switches_divemode_menu1a: |
158 call PLED_divemenu_cursor ; update cursor | 158 call PLED_divemenu_cursor ; update cursor |
159 btfsc display_set_gas ; In Gaslist or Setpoint list menu? | |
160 call PLED_show_change_depth ; Yes, show change depth for gas #menupos | |
159 return | 161 return |
160 | 162 |
161 test_switches_divemode_menu3: | 163 test_switches_divemode_menu3: |
162 bcf switch_left | 164 bcf switch_left |
163 bcf switch_right | 165 bcf switch_right |
593 call PLED_clear_divemode_menu ; Clear Menu | 595 call PLED_clear_divemode_menu ; Clear Menu |
594 call PLED_gas_list ; Display all 5 gases | 596 call PLED_gas_list ; Display all 5 gases |
595 movlw d'1' | 597 movlw d'1' |
596 movwf menupos ; reset cursor | 598 movwf menupos ; reset cursor |
597 call PLED_divemenu_cursor ; update cursor | 599 call PLED_divemenu_cursor ; update cursor |
600 call PLED_show_change_depth ; And show the first change depth | |
598 return | 601 return |
599 | 602 |
600 divemenu_set_setpoint: | 603 divemenu_set_setpoint: |
601 bsf display_set_setpoint ; set flag | 604 bsf display_set_setpoint ; set flag |
602 bsf display_set_gas ; set flag | 605 bsf display_set_gas ; set flag |