comparison code_part1/OSTC_code_asm_part1/customview.asm @ 107:a2b9eca1f396

customview for the surfacemode
author heinrichsweikamp
date Mon, 20 Dec 2010 18:30:16 +0100
parents 6f8e3a08011e
children ed7826c740a0
comparison
equal deleted inserted replaced
106:966ebf905514 107:a2b9eca1f396
66 customview_1sec_stopwatch: 66 customview_1sec_stopwatch:
67 call PLED_stopwatch_show2 ; Update figures only 67 call PLED_stopwatch_show2 ; Update figures only
68 return 68 return
69 69
70 customview_1sec_marker: ; Do nothing extra 70 customview_1sec_marker: ; Do nothing extra
71 return
72
73 customview_1sec_lead_tiss: ; Do nothing extra 71 customview_1sec_lead_tiss: ; Do nothing extra
74 return 72 customview_1sec_clock: ; Do nothing extra
75
76 customview_1sec_clock:
77 ; call PLED_diveclock2
78 return 73 return
79 74
80 75
81 customview_minute: ; Do every-minute tasks for the custom view area 76 customview_minute: ; Do every-minute tasks for the custom view area
82 movff menupos3,temp1 ; copy 77 movff menupos3,temp1 ; copy
100 return 95 return
101 96
102 customview_minute_marker: ; Do nothing extra 97 customview_minute_marker: ; Do nothing extra
103 customview_minute_stopwatch: ; Do nothing extra 98 customview_minute_stopwatch: ; Do nothing extra
104 return 99 return
105
106 100
107 customview_toggle: ; Yes, show next customview (and delete this flag) 101 customview_toggle: ; Yes, show next customview (and delete this flag)
108 incf menupos3,F ; Number of customview to show 102 incf menupos3,F ; Number of customview to show
109 movlw d'5' ; Max number+1 103 movlw d'5' ; Max number+1
110 cpfseq menupos3 ; Max reached? 104 cpfseq menupos3 ; Max reached?
128 customview_init_stopwatch: 122 customview_init_stopwatch:
129 ; Init Stopwatch 123 ; Init Stopwatch
130 call PLED_stopwatch_show 124 call PLED_stopwatch_show
131 bra customview_toggle_exit 125 bra customview_toggle_exit
132 126
133 customview_init_marker: 127 customview_init_marker: ; Init Marker
134 ; Init Marker 128 DISPLAYTEXT d'151' ; Set Marker?
135 DISPLAYTEXT d'151' ; Set Marker? 129 bra customview_toggle_exit
136 bra customview_toggle_exit 130
137 131 customview_init_clock: ; Init Clock
138 customview_init_clock:
139 ; Init Clock
140 call PLED_diveclock 132 call PLED_diveclock
141 bra customview_toggle_exit 133 bra customview_toggle_exit
142 134
143 customview_init_lead_tissue: 135 customview_init_lead_tissue: ; Show leading tissue
144 ; Show leading tissue
145 call PLED_show_leading_tissue 136 call PLED_show_leading_tissue
146 bra customview_toggle_exit 137 bra customview_toggle_exit
147 138
148 customview_toggle_exit: 139 customview_toggle_exit:
149 bcf toggle_customview ; Clear flag 140 bcf toggle_customview ; Clear flag
150 return 141 return
142
143
144
145 surfcustomview_toggle: ; Yes, show next customview (and delete this flag)
146 incf menupos3,F ; Number of customview to show
147 movlw d'3' ; Max number+1
148 cpfseq menupos3 ; Max reached?
149 bra surfcustomview_mask ; No, show
150 clrf menupos3 ; Reset to zero (Zero=no custom view)
151 surfcustomview_mask:
152 call PLED_clear_customview_surfacemode
153 movff menupos3,temp1 ; Menupos3 holds number of customview function
154 dcfsnz temp1,F
155 bra surfcustomview_init_graphs ; Show the tissue graphs
156 dcfsnz temp1,F
157 bra surfcustomview_init_gaslist ; Show pre-dive gaslist/setpoint list
158 ; bra surfcustomview_init_nocustomview ; menupos3=0 -> No Customview
159 surfcustomview_init_nocustomview:
160 bra surfcustomview_toggle_exit
161
162 surfcustomview_init_graphs:
163 call PLED_tissue_saturation_graph ; Draw the graphs
164 bra surfcustomview_toggle_exit
165
166 surfcustomview_init_gaslist:
167 call PLED_pre_dive_screen ; Show the Gaslist/Setpoint list
168 bra surfcustomview_toggle_exit
169
170 surfcustomview_toggle_exit:
171 bcf toggle_customview ; Clear flag
172
173
174
175
176 surfcustomview_second: ; Do every-second tasks for the custom view area
177 movff menupos3,temp1 ; copy
178 dcfsnz temp1,F
179 bra surfcustomview_1sec_graphs ; Update the Graphs
180 dcfsnz temp1,F
181 bra surfcustomview_1sec_gaslist ; Update the Gaslist/SetPoint List
182 ; Menupos3=0, do nothing
183 return
184
185 surfcustomview_1sec_graphs: ; Do nothing extra
186 surfcustomview_1sec_gaslist: ; Do nothing extra
187 return
188
189
190 surfcustomview_minute: ; Do every-minute tasks for the custom view area
191 movff menupos3,temp1 ; copy
192 dcfsnz temp1,F
193 bra surfcustomview_minute_graphs ; Update the Graphs
194 dcfsnz temp1,F
195 bra surfcustomview_minute_gaslist ; Update the Gaslist/SetPoint List
196 ; Menupos3=0, do nothing
197 return
198
199 surfcustomview_minute_graphs:
200 call PLED_tissue_saturation_graph ; Draw/Update the graphs
201 return
202
203 surfcustomview_minute_gaslist: ; Do nothing extra
204 return