comparison code_part1/OSTC_code_asm_part1/customview.asm @ 277:46d1012d096a

Quick-access to menupos3 in divemode - ToDo: EAD and END in CCR mode
author heinrichsweikamp
date Mon, 18 Apr 2011 10:23:22 +0200
parents a728b4a1b660
children 4e43476b5a63
comparison
equal deleted inserted replaced
276:02303915c199 277:46d1012d096a
26 26
27 ;============================================================================= 27 ;=============================================================================
28 ; Show the customview-dependent entry for the divemode menu 28 ; Show the customview-dependent entry for the divemode menu
29 ; 29 ;
30 customview_menu_entry3: 30 customview_menu_entry3:
31 bcf menu3_active ;=1: menu entry three in divemode menu is active 31 ; bcf menu3_active ;=1: menu entry three in divemode menu is active
32 32
33 movff menupos3,WREG ; copy 33 movff menupos3,WREG ; copy
34 dcfsnz WREG,F 34 dcfsnz WREG,F
35 bra customview_menu3_stopwatch ; Show the stopwatch option in divemode menu 35 bra customview_menu3_stopwatch ; Show the stopwatch option in divemode menu
36 dcfsnz WREG,F 36 dcfsnz WREG,F
41 bra customview_menu3_lead_tiss ; Show the leading tissue option in divemode menu 41 bra customview_menu3_lead_tiss ; Show the leading tissue option in divemode menu
42 ; Menupos3=0, do nothing 42 ; Menupos3=0, do nothing
43 return 43 return
44 44
45 customview_menu3_stopwatch: 45 customview_menu3_stopwatch:
46 bsf menu3_active ; Set Flag 46 ; bsf menu3_active ; Set Flag
47 DISPLAYTEXT .33 ; ResetAvr 47 DISPLAYTEXT .33 ; ResetAvr
48 return 48 return
49 49
50 customview_menu3_marker: 50 customview_menu3_marker:
51 bsf menu3_active ; Set Flag 51 ; bsf menu3_active ; Set Flag
52 DISPLAYTEXT .30 ; Set Marker 52 DISPLAYTEXT .30 ; Set Marker
53 return 53 return
54 54
55 customview_menu3_clock: ; No menu entry 55 customview_menu3_clock: ; No menu entry
56 customview_menu3_lead_tiss ; No menu entry 56 customview_menu3_lead_tiss ; No menu entry
146 return 146 return
147 147
148 ;============================================================================= 148 ;=============================================================================
149 ; Yes, show next customview (and delete this flag) 149 ; Yes, show next customview (and delete this flag)
150 150
151 customview_toggle: 151 customview_toggle:
152 bcf menu3_active ;=1: menu entry three in divemode menu is active
152 ostc_debug 'X' ; Sends debug-information to screen if debugmode active 153 ostc_debug 'X' ; Sends debug-information to screen if debugmode active
153 154
154 btfsc FLAG_apnoe_mode ; In Apnoe mode? 155 btfsc FLAG_apnoe_mode ; In Apnoe mode?
155 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely 156 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely
156 157
188 GETCUSTOM8 d'51' ; Show Stopwatch? (=1 in WREG) 189 GETCUSTOM8 d'51' ; Show Stopwatch? (=1 in WREG)
189 decfsz WREG,F ; WREG=1? 190 decfsz WREG,F ; WREG=1?
190 bra customview_toggle ; No, use next Customview 191 bra customview_toggle ; No, use next Customview
191 192
192 call PLED_stopwatch_show ; Init Stopwatch display 193 call PLED_stopwatch_show ; Init Stopwatch display
194 bsf menu3_active ; Set Flag
193 bra customview_toggle_exit 195 bra customview_toggle_exit
194 196
195 customview_init_marker: ; Init Marker 197 customview_init_marker: ; Init Marker
196 GETCUSTOM8 d'50' ; Show Marker? (=1 in WREG) 198 GETCUSTOM8 d'50' ; Show Marker? (=1 in WREG)
197 decfsz WREG,F ; WREG=1? 199 decfsz WREG,F ; WREG=1?
198 bra customview_toggle ; No, use next Customview 200 bra customview_toggle ; No, use next Customview
199 201
200 call PLED_standard_color 202 call PLED_standard_color
201 DISPLAYTEXT d'151' ; Set Marker? 203 DISPLAYTEXT d'151' ; Set Marker?
204 bsf menu3_active ; Set Flag
202 bra customview_toggle_exit 205 bra customview_toggle_exit
203 206
204 customview_init_clock: ; Init Clock 207 customview_init_clock: ; Init Clock
205 call PLED_diveclock 208 call PLED_diveclock
206 bra customview_toggle_exit 209 bra customview_toggle_exit