annotate code_part1/OSTC_code_asm_part1/customview.asm @ 154:a52ba692ad7f

charger test
author heinrichsweikamp
date Fri, 14 Jan 2011 17:54:41 +0100
parents fc699a7460e6
children a728b4a1b660
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
1 ; OSTC - diving computer code
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
2 ; Copyright (C) 2008 HeinrichsWeikamp GbR
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
3
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
4 ; This program is free software: you can redistribute it and/or modify
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
5 ; it under the terms of the GNU General Public License as published by
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
6 ; the Free Software Foundation, either version 3 of the License, or
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
7 ; (at your option) any later version.
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
8
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
9 ; This program is distributed in the hope that it will be useful,
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
10 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
11 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
12 ; GNU General Public License for more details.
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
13
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
14 ; You should have received a copy of the GNU General Public License
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
15 ; along with this program. If not, see <http://www.gnu.org/licenses/>.
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
16
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
17
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
18 ; Customviews for divemode
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
19 ; written by: Matthias Heinrichs, info@heinrichsweikamp.com
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
20 ; written: 101212
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
21 ; history:
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
22 ; 2010-12-12: [MH] last updated
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
23 ; 2011-01-04: [jDG] Saturation graphs in customview divemode
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
24 ; known bugs:
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
25 ; ToDo:
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
26
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
27 ;=============================================================================
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
28 ; Show the customview-dependent entry for the divemode menu
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
29 ;
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
30 customview_menu_entry3:
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
31 bcf menu3_active ;=1: menu entry three in divemode menu is active
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
32
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
33 movff menupos3,WREG ; copy
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
34 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
35 bra customview_menu3_stopwatch ; Show the stopwatch option in divemode menu
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
36 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
37 bra customview_menu3_marker ; Show the marker option in divemode menu
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
38 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
39 bra customview_menu3_clock ; Show the clock option in divemode menu
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
40 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
41 bra customview_menu3_lead_tiss ; Show the leading tissue option in divemode menu
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
42 ; Menupos3=0, do nothing
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
43 return
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
44
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
45 customview_menu3_stopwatch:
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
46 bsf menu3_active ; Set Flag
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
47 DISPLAYTEXT .33 ; ResetAvr
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
48 return
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
49
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
50 customview_menu3_marker:
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
51 bsf menu3_active ; Set Flag
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
52 DISPLAYTEXT .30 ; Set Marker
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
53 return
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
54
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
55 customview_menu3_clock: ; No menu entry
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
56 customview_menu3_lead_tiss ; No menu entry
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
57 return
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
58
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
59 ;=============================================================================
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
60 ; Do every-second tasks for the custom view area
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
61
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
62 customview_second:
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
63 movff menupos3,WREG ; copy
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
64 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
65 bra customview_1sec_stopwatch ; Update the Stopwatch
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
66 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
67 bra customview_1sec_marker ; Update the Marker
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
68 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
69 bra customview_1sec_clock ; Update the Clock
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
70 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
71 bra customview_1sec_lead_tiss ; Update the leading tissue
133
35567a646fe5 Minor merge fixes...
JeanDo
parents: 131
diff changeset
72 dcfsnz WREG,F
131
03df42de03e1 Merge 129 with 130
Heinrichsweikamp
parents: 129 128
diff changeset
73 bra customview_1sec_average ; Update the Average depth
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
74 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
75 bra customview_1sec_graphs ; Update the leading tissue
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
76 ; Menupos3=0, do nothing
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
77 return
129
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
78
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
79 customview_1sec_average:
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
80 call PLED_total_average_show2 ; Update the figures only
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
81 return
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
82
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
83 customview_1sec_stopwatch:
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
84 call PLED_stopwatch_show2 ; Update figures only
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
85 return
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
86
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
87 customview_1sec_marker: ; Do nothing extra
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
88 customview_1sec_clock: ; Do nothing extra
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
89 customview_1sec_lead_tiss: ; Do nothing extra
133
35567a646fe5 Minor merge fixes...
JeanDo
parents: 131
diff changeset
90 return
35567a646fe5 Minor merge fixes...
JeanDo
parents: 131
diff changeset
91
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
92 customview_1sec_graphs: ; Do nothing extra
150
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
93 decfsz apnoe_mins ; 10 sec passed ?
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
94 return ; No: skip.
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
95 movlw .10 ; Yes: reset counter.
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
96 movwf apnoe_mins
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
97
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
98 call deco_calc_desaturation_time ; calculate desaturation time
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
99 movlb b'00000001' ; select ram bank 1
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
100 call PLED_tissue_saturation_graph
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
101 return
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
102
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
103 ;=============================================================================
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
104 ; Do every-minute tasks for the custom view area
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
105
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
106 customview_minute:
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
107 movff menupos3,WREG ; copy
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
108 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
109 bra customview_minute_stopwatch ; Update the Stopwatch
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
110 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
111 bra customview_minute_marker ; Update the Marker
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
112 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
113 bra customview_minute_clock ; Update the Clock
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
114 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
115 bra customview_minute_lead_tiss ; Update the leading tissue
133
35567a646fe5 Minor merge fixes...
JeanDo
parents: 131
diff changeset
116 dcfsnz WREG,F
129
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
117 bra customview_minute_average ; Update the Average depth
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
118 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
119 bra customview_minute_graphs ; Update the graphs
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
120 ; Menupos3=0, do nothing
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
121 return
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
122
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
123 customview_minute_clock:
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
124 call PLED_diveclock2 ; Update the clock
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
125 return
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
126
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
127 customview_minute_lead_tiss:
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
128 call PLED_show_leading_tissue_2 ; Update the leading tissue
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
129 return
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
130
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
131 customview_minute_marker: ; Do nothing extra
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
132 customview_minute_stopwatch: ; Do nothing extra
137
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
133 customview_minute_average: ; Do nothing extra
150
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
134 customview_minute_graphs:
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
135 return
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
136
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
137 ;=============================================================================
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
138 ; Yes, show next customview (and delete this flag)
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
139
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
140 customview_toggle:
119
f24137eb85de Background debugger now shows STKPTR
heinrichsweikamp
parents: 115
diff changeset
141 ostc_debug 'X' ; Sends debug-information to screen if debugmode active
137
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
142
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
143 btfsc FLAG_apnoe_mode ; In Apnoe mode?
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
144 bra customview_toggle_exit ; Yes, ignore custom view in divemode completely
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
145
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
146 incf menupos3,F ; Number of customview to show
137
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
147 movlw d'6' ; Max number
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
148 cpfsgt menupos3 ; Max reached?
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
149 bra customview_mask ; No, show
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
150 clrf menupos3 ; Reset to zero (Zero=no custom view)
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
151 customview_mask:
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
152 call PLED_clear_customview_divemode
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
153 movff menupos3,WREG ; Menupos3 holds number of customview function
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
154 dcfsnz WREG,F
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
155 bra customview_init_stopwatch ; Show the Stopwatch
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
156 dcfsnz WREG,F
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
157 bra customview_init_marker ; Show the Marker-Menu
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
158 dcfsnz WREG,F
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
159 bra customview_init_clock ; Show the clock
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
160 dcfsnz WREG,F
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
161 bra customview_init_lead_tissue ; Show the leading tissue
133
35567a646fe5 Minor merge fixes...
JeanDo
parents: 131
diff changeset
162 dcfsnz WREG,F
129
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
163 bra customview_init_average ; Show Total average depth
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
164 dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
165 bra customview_init_graphs ; Show the graphs
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
166
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
167 customview_init_nocustomview:
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
168 bra customview_toggle_exit
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
169
129
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
170 customview_init_average:
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
171 call PLED_total_average_show ; Show Average with mask
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
172 bra customview_toggle_exit
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
173
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
174 customview_init_stopwatch:
129
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
175 GETCUSTOM8 d'51' ; Show Stopwatch? (=1 in WREG)
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
176 decfsz WREG,F ; WREG=1?
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
177 bra customview_toggle ; No, use next Customview
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
178
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
179 call PLED_stopwatch_show ; Init Stopwatch display
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
180 bra customview_toggle_exit
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
181
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
182 customview_init_marker: ; Init Marker
129
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
183 GETCUSTOM8 d'50' ; Show Marker? (=1 in WREG)
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
184 decfsz WREG,F ; WREG=1?
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
185 bra customview_toggle ; No, use next Customview
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
186
150
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
187 call PLED_standard_color
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
188 DISPLAYTEXT d'151' ; Set Marker?
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
189 bra customview_toggle_exit
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
190
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
191 customview_init_clock: ; Init Clock
150
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
192 call PLED_diveclock
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
193 bra customview_toggle_exit
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
194
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
195 customview_init_lead_tissue: ; Show leading tissue
129
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
196 GETCUSTOM8 d'53' ; Show Lead Tissue? (=1 in WREG)
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
197 decfsz WREG,F ; WREG=1?
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
198 bra customview_toggle ; No, use next Customview
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
199
137
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
200 btfsc no_deco_customviews ; no-deco-mode-flag = 1
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
201 bra customview_toggle ; Yes, use next Customview!
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
202
150
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
203 call PLED_show_leading_tissue
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
204 bra customview_toggle_exit
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
205
131
03df42de03e1 Merge 129 with 130
Heinrichsweikamp
parents: 129 128
diff changeset
206 customview_init_graphs: ; Show tissue graph
03df42de03e1 Merge 129 with 130
Heinrichsweikamp
parents: 129 128
diff changeset
207 GETCUSTOM8 d'52' ; Show Tissue Graph? (=1 in WREG)
03df42de03e1 Merge 129 with 130
Heinrichsweikamp
parents: 129 128
diff changeset
208 decfsz WREG,F ; WREG=1?
03df42de03e1 Merge 129 with 130
Heinrichsweikamp
parents: 129 128
diff changeset
209 bra customview_toggle ; No, use next Customview
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
210
137
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
211 btfsc no_deco_customviews ; no-deco-mode-flag = 1
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
212 bra customview_toggle ; Yes, use next Customview!
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
213
150
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
214 movlw .1 ; Draw next second.
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
215 movwf apnoe_mins ; 10sec counter.
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
216
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
217 call deco_calc_desaturation_time ; calculate desaturation time
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
218 movlb b'00000001' ; select ram bank 1
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
219 call PLED_tissue_saturation_graph
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
220
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
221 bra customview_toggle_exit
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
222
98
6f8e3a08011e 1.73beta rc1 (Added new customview for divemode)
heinrichsweikamp
parents:
diff changeset
223 customview_toggle_exit:
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
224 bcf toggle_customview ; Clear flag
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
225 ostc_debug 'Y' ; Sends debug-information to screen in debugmode
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
226 return
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
227
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
228 ;=============================================================================
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
229 ; Yes, show next customview (and delete this flag)
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
230
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
231 surfcustomview_toggle:
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
232 incf menupos3,F ; Number of customview to show
111
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
233 movlw d'4' ; Max number
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
234 cpfsgt menupos3 ; Max reached?
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
235 bra surfcustomview_mask ; No, show
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
236 clrf menupos3 ; Reset to zero (Zero=no custom view)
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
237 surfcustomview_mask:
115
50a06adabc67 First gas is active, Gauge mode display
heinrichsweikamp
parents: 112
diff changeset
238 call PLED_clear_customview_surfmode
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
239 movff menupos3,WREG ; Menupos3 holds number of customview function
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
240 dcfsnz WREG,F
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
241 bra surfcustomview_init_graphs ; Show the tissue graphs
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
242 dcfsnz WREG,F
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
243 bra surfcustomview_init_gaslist ; Show pre-dive gaslist/setpoint list
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
244 dcfsnz WREG,F
133
35567a646fe5 Minor merge fixes...
JeanDo
parents: 131
diff changeset
245 bra surfcustomview_init_interval; Show the interval counter
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
246 dcfsnz WREG,F
111
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
247 bra surfcustomview_init_cfview ; Show the interval counter
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
248
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
249 surfcustomview_init_nocustomview:
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
250 bra surfcustomview_toggle_exit
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
251
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
252 surfcustomview_init_graphs:
137
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
253 btfsc no_deco_customviews ; no-deco-mode-flag = 1
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
254 bra surfcustomview_toggle ; Yes, use next Customview!
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
255
133
35567a646fe5 Minor merge fixes...
JeanDo
parents: 131
diff changeset
256 call PLED_tissue_saturation_graph; Draw the graphs
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
257 bra surfcustomview_toggle_exit
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
258
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
259 surfcustomview_init_gaslist:
137
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
260 btfsc no_deco_customviews ; no-deco-mode-flag = 1
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
261 bra surfcustomview_toggle ; Yes, use next Customview!
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
262
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
263 call PLED_pre_dive_screen ; Show the Gaslist/Setpoint list
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
264 bra surfcustomview_toggle_exit
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
265
111
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
266 surfcustomview_init_interval:
123
6a94f96e9cea The big cleanup, again.
JeanDo
parents: 119
diff changeset
267 call PLED_standard_color
111
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
268 DISPLAYTEXT d'189' ; Surface
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
269 DISPLAYTEXT d'240' ; Interval:
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
270 call PLED_interval ; Display the interval
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
271 bra surfcustomview_toggle_exit
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
272
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
273 surfcustomview_init_cfview:
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
274 read_int_eeprom d'34' ; Get Decomode
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
275 incf EEDATA,W ; +1 -> WREG
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
276 movwf temp10
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
277 dcfsnz temp10,F
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
278 call PLED_show_cf11_cf12_cf29 ; =0 (ZH-L16 OC)
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
279 dcfsnz temp10,F
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
280 bra surfcustomview_toggle_exit ; =1 (Gauge)
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
281 dcfsnz temp10,F
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
282 call PLED_show_cf11_cf12_cf29 ; =2 (ZH-L16 CC)
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
283 dcfsnz temp10,F
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
284 bra surfcustomview_toggle_exit ; =3 (Apnoe)
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
285 dcfsnz temp10,F
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
286 call PLED_show_cf32_cf33_cf29 ; =4 (L16-GF OC)
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
287 dcfsnz temp10,F
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
288 call PLED_show_cf32_cf33_cf29 ; =5 (L16-GF CC)
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
289 bra surfcustomview_toggle_exit
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
290
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
291 surfcustomview_toggle_exit:
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
292 bcf toggle_customview ; Clear flag
129
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
293 clrf timeout_counter2 ; Clear timeout
06c4899ddb4b Custom views in dive mode configrable (New CF50-CF53)
Heinrichsweikamp
parents: 123
diff changeset
294 return
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
295
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
296 ;=============================================================================
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
297 ; Do every-second tasks for the custom view area
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
298
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
299 surfcustomview_second:
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
300 ; movff menupos3,WREG ; copy
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
301 ; dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
302 ; bra surfcustomview_1sec_graphs ; Update the Graphs
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
303 ; dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
304 ; bra surfcustomview_1sec_gaslist ; Update the Gaslist/SetPoint List
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
305 ; dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
306 ; bra surfcustomview_1sec_interval ; Update the Interval display
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
307 ; dcfsnz WREG,F
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
308 ; bra surfcustomview_1sec_cfview ; Update the critical cf view
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
309 ; ; Menupos3=0, do nothing
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
310 ; return
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
311 ;surfcustomview_1sec_cfview: ; Do nothing extra
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
312 ;surfcustomview_1sec_graphs: ; Do nothing extra
137
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
313 ;surfcustomview_1sec_gaslist: ; Do nothing extra
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
314 ;surfcustomview_1sec_interval: ; Do nothing extra
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
315 return
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
316
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
317 ;=============================================================================
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
318
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
319 surfcustomview_minute: ; Do every-minute tasks for the custom view area
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
320 movff menupos3,WREG ; copy
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
321 dcfsnz WREG,F
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
322 bra surfcustomview_minute_graphs ; Update the Graphs
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
323 dcfsnz WREG,F
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
324 bra surfcustomview_minute_gaslist ; Update the Gaslist/SetPoint List
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
325 dcfsnz WREG,F
111
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
326 bra surfcustomview_minute_interval ; Update the Interval display
128
4c588c3d1f12 Saturation graphs in customview divemode
JeanDo
parents: 123
diff changeset
327 dcfsnz WREG,F
137
e6aa4a74c3c2 Fix: Customviews for Apnoe and Gauge mode
mh <>
parents: 134
diff changeset
328 bra surfcustomview_minute_cfview ; Update the critical cf view
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
329 ; Menupos3=0, do nothing
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
330 return
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
331
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
332 surfcustomview_minute_graphs:
150
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
333 call deco_calc_desaturation_time ; calculate desaturation time
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
334 movlb b'00000001' ; select ram bank 1
fc699a7460e6 Fix desat graph:
JeanDo
parents: 137
diff changeset
335 call PLED_tissue_saturation_graph ; Draw/Update the graphs
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
336 return
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
337
111
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
338 surfcustomview_minute_interval:
112
9500f431248a 1.74beta rc2
heinrichsweikamp
parents: 111
diff changeset
339 DISPLAYTEXT d'189' ; Surface
9500f431248a 1.74beta rc2
heinrichsweikamp
parents: 111
diff changeset
340 DISPLAYTEXT d'240' ; Interval:
111
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
341 call PLED_interval ; Display the interval
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
342 return
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
343
107
a2b9eca1f396 customview for the surfacemode
heinrichsweikamp
parents: 98
diff changeset
344 surfcustomview_minute_gaslist: ; Do nothing extra
111
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
345 surfcustomview_minute_cfview: ; Do nothing extra
ed7826c740a0 1.74beta rc1
heinrichsweikamp
parents: 107
diff changeset
346 return