comparison code_part1/OSTC_code_asm_part1/customview.asm @ 129:06c4899ddb4b

Custom views in dive mode configrable (New CF50-CF53) Total Average Depth (Non-Resetable) Some Display fixes in Divemode Bugfix Timeout reset in Surfacemode
author Heinrichsweikamp
date Tue, 04 Jan 2011 16:32:28 +0100
parents 6a94f96e9cea
children 03df42de03e1
comparison
equal deleted inserted replaced
127:245de99d1d15 129:06c4899ddb4b
58 bra customview_1sec_marker ; Update the Marker 58 bra customview_1sec_marker ; Update the Marker
59 dcfsnz temp1,F 59 dcfsnz temp1,F
60 bra customview_1sec_clock ; Update the Clock 60 bra customview_1sec_clock ; Update the Clock
61 dcfsnz temp1,F 61 dcfsnz temp1,F
62 bra customview_1sec_lead_tiss ; Update the leading tissue 62 bra customview_1sec_lead_tiss ; Update the leading tissue
63 ; Menupos3=0, do nothing 63 dcfsnz temp1,F
64 bra customview_1sec_average ; Update the Average depth
65 ; Menupos3=0, do nothing
66 return
67
68 customview_1sec_average:
69 call PLED_total_average_show2 ; Update the figures only
64 return 70 return
65 71
66 customview_1sec_stopwatch: 72 customview_1sec_stopwatch:
67 call PLED_stopwatch_show2 ; Update figures only 73 call PLED_stopwatch_show2 ; Update figures only
68 return 74 return
81 bra customview_minute_marker ; Update the Marker 87 bra customview_minute_marker ; Update the Marker
82 dcfsnz temp1,F 88 dcfsnz temp1,F
83 bra customview_minute_clock ; Update the Clock 89 bra customview_minute_clock ; Update the Clock
84 dcfsnz temp1,F 90 dcfsnz temp1,F
85 bra customview_minute_lead_tiss ; Update the leading tissue 91 bra customview_minute_lead_tiss ; Update the leading tissue
92 dcfsnz temp1,F
93 bra customview_minute_average ; Update the Average depth
86 ; Menupos3=0, do nothing 94 ; Menupos3=0, do nothing
87 return 95 return
88 96
89 customview_minute_clock: 97 customview_minute_clock:
90 call PLED_diveclock2 ; Update the clock 98 call PLED_diveclock2 ; Update the clock
94 call PLED_show_leading_tissue_2 ; Update the leading tissue 102 call PLED_show_leading_tissue_2 ; Update the leading tissue
95 return 103 return
96 104
97 customview_minute_marker: ; Do nothing extra 105 customview_minute_marker: ; Do nothing extra
98 customview_minute_stopwatch: ; Do nothing extra 106 customview_minute_stopwatch: ; Do nothing extra
107 customview_minute_average: ; Do nothing extra
99 return 108 return
100 109
101 customview_toggle: ; Yes, show next customview (and delete this flag) 110 customview_toggle: ; Yes, show next customview (and delete this flag)
102 ostc_debug 'X' ; Sends debug-information to screen if debugmode active 111 ostc_debug 'X' ; Sends debug-information to screen if debugmode active
103 incf menupos3,F ; Number of customview to show 112 incf menupos3,F ; Number of customview to show
104 movlw d'4' ; Max number 113 movlw d'5' ; Max number
105 cpfsgt menupos3 ; Max reached? 114 cpfsgt menupos3 ; Max reached?
106 bra customview_mask ; No, show 115 bra customview_mask ; No, show
107 clrf menupos3 ; Reset to zero (Zero=no custom view) 116 clrf menupos3 ; Reset to zero (Zero=no custom view)
108 customview_mask: 117 customview_mask:
109 call PLED_clear_customview_divemode 118 call PLED_clear_customview_divemode
114 bra customview_init_marker ; Show the Marker-Menu 123 bra customview_init_marker ; Show the Marker-Menu
115 dcfsnz temp1,F 124 dcfsnz temp1,F
116 bra customview_init_clock ; Show the clock 125 bra customview_init_clock ; Show the clock
117 dcfsnz temp1,F 126 dcfsnz temp1,F
118 bra customview_init_lead_tissue ; Show the leading tissue 127 bra customview_init_lead_tissue ; Show the leading tissue
128 dcfsnz temp1,F
129 bra customview_init_average ; Show Total average depth
119 ; bra customview_init_nocustomview ; menupos3=0 -> No Customview 130 ; bra customview_init_nocustomview ; menupos3=0 -> No Customview
120 customview_init_nocustomview: 131 customview_init_nocustomview:
121 bra customview_toggle_exit 132 bra customview_toggle_exit
122 133
134 customview_init_average:
135 call PLED_total_average_show ; Show Average with mask
136 bra customview_toggle_exit
137
123 customview_init_stopwatch: 138 customview_init_stopwatch:
124 ; Init Stopwatch 139 GETCUSTOM8 d'51' ; Show Stopwatch? (=1 in WREG)
125 call PLED_stopwatch_show 140 decfsz WREG,F ; WREG=1?
141 bra customview_toggle ; No, use next Customview
142
143 call PLED_stopwatch_show ; Init Stopwatch display
126 bra customview_toggle_exit 144 bra customview_toggle_exit
127 145
128 customview_init_marker: ; Init Marker 146 customview_init_marker: ; Init Marker
147 GETCUSTOM8 d'50' ; Show Marker? (=1 in WREG)
148 decfsz WREG,F ; WREG=1?
149 bra customview_toggle ; No, use next Customview
150
129 DISPLAYTEXT d'151' ; Set Marker? 151 DISPLAYTEXT d'151' ; Set Marker?
130 bra customview_toggle_exit 152 bra customview_toggle_exit
131 153
132 customview_init_clock: ; Init Clock 154 customview_init_clock: ; Init Clock
133 call PLED_diveclock 155 call PLED_diveclock
134 bra customview_toggle_exit 156 bra customview_toggle_exit
135 157
136 customview_init_lead_tissue: ; Show leading tissue 158 customview_init_lead_tissue: ; Show leading tissue
159 GETCUSTOM8 d'53' ; Show Lead Tissue? (=1 in WREG)
160 decfsz WREG,F ; WREG=1?
161 bra customview_toggle ; No, use next Customview
162
137 call PLED_show_leading_tissue 163 call PLED_show_leading_tissue
138 bra customview_toggle_exit 164 bra customview_toggle_exit
165
166 ;customview_init_graphs: ; Show tissue graph
167 ; GETCUSTOM8 d'52' ; Show Tissue Graph? (=1 in WREG)
168 ; decfsz WREG,F ; WREG=1?
169 ; bra customview_toggle ; No, use next Customview
139 170
140 customview_toggle_exit: 171 customview_toggle_exit:
141 bcf toggle_customview ; Clear flag 172 bcf toggle_customview ; Clear flag
142 ostc_debug 'Y' ; Sends debug-information to screen if debugmode active 173 ostc_debug 'Y' ; Sends debug-information to screen if debugmode active
143 return 174 return
198 call PLED_show_cf32_cf33_cf29 ; =5 (L16-GF CC) 229 call PLED_show_cf32_cf33_cf29 ; =5 (L16-GF CC)
199 bra surfcustomview_toggle_exit 230 bra surfcustomview_toggle_exit
200 231
201 surfcustomview_toggle_exit: 232 surfcustomview_toggle_exit:
202 bcf toggle_customview ; Clear flag 233 bcf toggle_customview ; Clear flag
203 234 clrf timeout_counter2 ; Clear timeout
235 return
204 236
205 237
206 238
207 surfcustomview_second: ; Do every-second tasks for the custom view area 239 surfcustomview_second: ; Do every-second tasks for the custom view area
208 movff menupos3,temp1 ; copy 240 movff menupos3,temp1 ; copy