comparison code_part1/OSTC_code_asm_part1/divemode_menu.asm @ 71:6beb680a6130

1.72beta - color-coded gaslist, small fix with stopwatch
author heinrichsweikamp
date Wed, 10 Nov 2010 14:59:09 +0100
parents d0b677e1e9a5
children 2227459e8ef2
comparison
equal deleted inserted replaced
70:8d8e753d72e3 71:6beb680a6130
84 84
85 set_marker: 85 set_marker:
86 btfsc standalone_simulator ; Standalone Simualtor active? 86 btfsc standalone_simulator ; Standalone Simualtor active?
87 bra divemode_menu_simulator ; Yes, Show simulator menu! 87 bra divemode_menu_simulator ; Yes, Show simulator menu!
88 88
89 bsf LED_red ; LEDr on 89 bsf LED_red ; LEDr on
90 movlw d'6' ; Type of Alarm (Manual Marker) 90 movlw d'6' ; Type of Alarm (Manual Marker)
91 movwf AlarmType ; Copy to Alarm Register 91 movwf AlarmType ; Copy to Alarm Register
92 bsf event_occured ; Set Event Flag 92 bsf event_occured ; Set Event Flag
93 93
94 btfss stopwatch_active ; =1: Reset Average registers 94 btfss stopwatch_active ; =1: Reset Average registers
95 return 95 return
96 btfsc lock_stopwatch_reset ; Reset locked?
97 return ; Yes, do not reset (now)...
98
96 ; Maker Set, also reset average Depth.... 99 ; Maker Set, also reset average Depth....
97 clrf average_depth_hold+0 100 clrf average_depth_hold+0
98 clrf average_depth_hold+1 101 clrf average_depth_hold+1
99 clrf average_depth_hold+2 102 clrf average_depth_hold+2
100 clrf average_depth_hold+3 ; Clear average depth register 103 clrf average_depth_hold+3 ; Clear average depth register
742 bcf display_set_xgas 745 bcf display_set_xgas
743 bcf display_set_setpoint 746 bcf display_set_setpoint
744 bcf display_set_simulator 747 bcf display_set_simulator
745 bcf switch_left ; and debounce switches 748 bcf switch_left ; and debounce switches
746 bcf switch_right 749 bcf switch_right
750 bsf lock_stopwatch_reset ; Lock the stopwatch reset for at least one second (Cleared in "calc_average_depth:")
747 return 751 return
748 752
749 timeout_divemenu3: 753 timeout_divemenu3:
750 movff char_O_deco_status,deco_status ; 754 movff char_O_deco_status,deco_status ;
751 tstfsz deco_status ; deco_status=0 if decompression calculation done 755 tstfsz deco_status ; deco_status=0 if decompression calculation done