comparison src/customview.asm @ 654:75e90cd0c2c3

hwOS sport 10.77 release
author heinrichsweikamp
date Thu, 14 Mar 2024 16:56:46 +0100
parents 4050675965ea
children 8af5aefbcdaf
comparison
equal deleted inserted replaced
653:8bcd138ab744 654:75e90cd0c2c3
2 ; 2 ;
3 ; File customview.asm * combined next generation V3.09.5 3 ; File customview.asm * combined next generation V3.09.5
4 ; 4 ;
5 ; Custom Views in Surface and Dive Mode 5 ; Custom Views in Surface and Dive Mode
6 ; 6 ;
7 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 7 ; Copyright (c) 2011, JD Gascuel, heinrichs weikamp gmbh, all right reserved.
8 ;============================================================================= 8 ;=============================================================================
9 ; HISTORY 9 ; HISTORY
10 ; 2011-08-10 : [mH] moving from OSTC code 10 ; 2011-08-10 : [mH] moving from OSTC code
11 11
12 ;============================================================================= 12 ;=============================================================================
32 extern TFT_dive_compass_mask 32 extern TFT_dive_compass_mask
33 ENDIF 33 ENDIF
34 34
35 35
36 #DEFINE num_premenu_items .12 ; overall number of pre-menu items 36 #DEFINE num_premenu_items .12 ; overall number of pre-menu items
37 #DEFINE num_surface_cv .10 ; overall number of surface custom views 37 #DEFINE num_surface_cv .11 ; overall number of surface custom views
38 38
39 39
40 ;============================================================================= 40 ;=============================================================================
41 custview1 CODE 41 custview1 CODE
42 ;============================================================================= 42 ;=============================================================================
170 bra surf_customview_init_view8 ; last dive info 170 bra surf_customview_init_view8 ; last dive info
171 dcfsnz WREG,F ; 9: 171 dcfsnz WREG,F ; 9:
172 bra surf_customview_init_view9 ; sensor mV readings 172 bra surf_customview_init_view9 ; sensor mV readings
173 dcfsnz WREG,F ; 10: 173 dcfsnz WREG,F ; 10:
174 bra surf_customview_init_view10 ; tank data 174 bra surf_customview_init_view10 ; tank data
175 dcfsnz WREG,F ; 11:
176 bra surf_customview_init_view11 ; Desat, noFly, CNS screen
175 bra surf_customview_init_view4 ; 0: default view after restart and loading of new firmware 177 bra surf_customview_init_view4 ; 0: default view after restart and loading of new firmware
176 178
177 surf_cv_toggle_exit: 179 surf_cv_toggle_exit:
178 bcf request_next_custview ; clear request flag 180 bcf request_next_custview ; clear request flag
179 return ; done 181 return ; done
313 bra surf_cv_toggle_exit ; - done 315 bra surf_cv_toggle_exit ; - done
314 ELSE 316 ELSE
315 bra surf_customview_toggle ; not available without RX functions compiled in, goto next view 317 bra surf_customview_toggle ; not available without RX functions compiled in, goto next view
316 ENDIF 318 ENDIF
317 319
320 ; ---- view 11: Desat, NoFly, CNS ----
321 ;
322 surf_customview_init_view11:
323 btfsc FLAG_gauge_mode ; in gauge mode?
324 bra surf_customview_toggle ; YES - not available in gauge mode, goto next view
325 btfsc FLAG_apnoe_mode ; in apnoe mode?
326 bra surf_customview_toggle ; YES - not available in apnoe mode, goto next view
327 call TFT_surf_desat_nofly_cns ; Desat, NoFly, CNS
328 bra surf_cv_toggle_exit ; done
318 329
319 ;============================================================================= 330 ;=============================================================================
320 custview3 CODE 331 custview3 CODE
321 ;============================================================================= 332 ;=============================================================================
322 333