Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/customview.asm @ 137:e6aa4a74c3c2
Fix: Customviews for Apnoe and Gauge mode
author | mh <> |
---|---|
date | Wed, 05 Jan 2011 20:44:10 +0100 |
parents | 48f12271eb18 |
children | fc699a7460e6 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/customview.asm Wed Jan 05 17:28:23 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/customview.asm Wed Jan 05 20:44:10 2011 +0100 @@ -128,7 +128,7 @@ customview_minute_marker: ; Do nothing extra customview_minute_stopwatch: ; Do nothing extra -customview_minute_average: ; Do nothing extra +customview_minute_average: ; Do nothing extra return ;============================================================================= @@ -136,8 +136,12 @@ customview_toggle: ostc_debug 'X' ; Sends debug-information to screen if debugmode active + + btfsc FLAG_apnoe_mode ; In Apnoe mode? + bra customview_toggle_exit ; Yes, ignore custom view in divemode completely + incf menupos3,F ; Number of customview to show - movlw d'6' ; Max number + movlw d'6' ; Max number cpfsgt menupos3 ; Max reached? bra customview_mask ; No, show clrf menupos3 ; Reset to zero (Zero=no custom view) @@ -190,6 +194,9 @@ decfsz WREG,F ; WREG=1? bra customview_toggle ; No, use next Customview + btfsc no_deco_customviews ; no-deco-mode-flag = 1 + bra customview_toggle ; Yes, use next Customview! + call PLED_show_leading_tissue bra customview_toggle_exit @@ -198,6 +205,9 @@ decfsz WREG,F ; WREG=1? bra customview_toggle ; No, use next Customview + btfsc no_deco_customviews ; no-deco-mode-flag = 1 + bra customview_toggle ; Yes, use next Customview! + call deco_calc_desaturation_time ; calculate desaturation time movlb b'00000001' ; select ram bank 1 call PLED_tissue_saturation_graph @@ -232,10 +242,16 @@ bra surfcustomview_toggle_exit surfcustomview_init_graphs: + btfsc no_deco_customviews ; no-deco-mode-flag = 1 + bra surfcustomview_toggle ; Yes, use next Customview! + call PLED_tissue_saturation_graph; Draw the graphs bra surfcustomview_toggle_exit surfcustomview_init_gaslist: + btfsc no_deco_customviews ; no-deco-mode-flag = 1 + bra surfcustomview_toggle ; Yes, use next Customview! + call PLED_pre_dive_screen ; Show the Gaslist/Setpoint list bra surfcustomview_toggle_exit @@ -286,8 +302,8 @@ ; return ;surfcustomview_1sec_cfview: ; Do nothing extra ;surfcustomview_1sec_graphs: ; Do nothing extra -;surfcustomview_1sec_gaslist: ; Do nothing extra -;surfcustomview_1sec_interval: ; Do nothing extra +;surfcustomview_1sec_gaslist: ; Do nothing extra +;surfcustomview_1sec_interval: ; Do nothing extra return ;============================================================================= @@ -301,7 +317,7 @@ dcfsnz WREG,F bra surfcustomview_minute_interval ; Update the Interval display dcfsnz WREG,F - bra surfcustomview_minute_cfview ; Update the critical cf view + bra surfcustomview_minute_cfview ; Update the critical cf view ; Menupos3=0, do nothing return