comparison code_part1/OSTC_code_asm_part1/surfmode.asm @ 4:2b5c52ae3923

1.52 beta rc
author heinrichsweikamp
date Sun, 14 Feb 2010 20:09:25 +0100
parents 3cf8af30b36e
children 3b30cd739782
comparison
equal deleted inserted replaced
3:3cf8af30b36e 4:2b5c52ae3923
88 WIN_INVERT .0 ; Init new Wordprocessor 88 WIN_INVERT .0 ; Init new Wordprocessor
89 call PLED_standard_color 89 call PLED_standard_color
90 90
91 bcf switch_left 91 bcf switch_left
92 bcf switch_right 92 bcf switch_right
93 call PLED_active_gas_surfmode ; Show start gas / SetPoint
93 call PLED_custom_text ; Displays custom text 94 call PLED_custom_text ; Displays custom text
94 movlw d'1' ; next cf to check 95 movlw d'1' ; next cf to check
95 movwf cf_checker_counter ; 96 movwf cf_checker_counter ;
96 ostc_debug 'G' ; Sends debug-information to screen if debugmode active 97 ostc_debug 'G' ; Sends debug-information to screen if debugmode active
97 GETCUSTOM8 d'12' ; Desaturation multiplier % 98 GETCUSTOM8 d'12' ; Desaturation multiplier %
125 call get_battery_voltage ; get battery voltage 126 call get_battery_voltage ; get battery voltage
126 call update_batt_voltage ; display battery voltage 127 call update_batt_voltage ; display battery voltage
127 call timeout_premenu ; timeout premenu 128 call timeout_premenu ; timeout premenu
128 call set_leds_surfmode ; Sets Warning and No-Fly LEDs 129 call set_leds_surfmode ; Sets Warning and No-Fly LEDs
129 call custom_functions_check_surfmode ; Checks CF functions and displays warning symbol if something critical is wrong 130 call custom_functions_check_surfmode ; Checks CF functions and displays warning symbol if something critical is wrong
130 call PLED_active_gas_surfmode ; Show start gas / SetPoint 131 ; call PLED_active_gas_surfmode ; Show start gas / SetPoint
131 call PLED_display_decotype_surface ; Show deco mode 132 call PLED_display_decotype_surface ; Show deco mode
132 btfsc enter_error_sleep ; Enter Fatal Error Routine? 133 btfsc enter_error_sleep ; Enter Fatal Error Routine?
133 goto fatal_error_sleep ; Yes (In Sleepmode_vxx.asm!) 134 goto fatal_error_sleep ; Yes (In Sleepmode_vxx.asm!)
134 bcf onesecupdate ; every second tasks done 135 bcf onesecupdate ; every second tasks done
135 136
182 bra surfloop_loop ; loop surfacemode 183 bra surfloop_loop ; loop surfacemode
183 184
184 185
185 update_surfloop60: 186 update_surfloop60:
186 ; One minute tasks for all modes 187 ; One minute tasks for all modes
188 ; call PLED_active_gas_surfmode ; Show start gas / SetPoint
187 call update_date ; and date in divemode 189 call update_date ; and date in divemode
188 call calc_deko_surfmode ; calculate desaturation every minute 190 call calc_deko_surfmode ; calculate desaturation every minute
189 call check_temp_extrema ; check for new temperature extremas 191 call check_temp_extrema ; check for new temperature extremas
190 call PLED_custom_text ; Displays custom text 192 call PLED_custom_text ; Displays custom text
191 call calc_surface_interval ; Increases Surface-Interval time 193 call calc_surface_interval ; Increases Surface-Interval time