annotate code_part1/OSTC_code_c_part2/shared_definitions.h @ 435:9597829f1e0c

Merge 431
author heinrichsweikamp
date Thu, 04 Aug 2011 22:35:12 +0200
parents de3b267e1fd9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
1 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
2 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
3 ; shared_definitions.h
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
4 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
5 ; Declare variables used both in C and ASM code
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
6 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
7 ; This program is free software: you can redistribute it and/or modify
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
8 ; it under the terms of the GNU General Public License as published by
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
9 ; the Free Software Foundation, either version 3 of the License, or
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
10 ; (at your option) any later version.
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
11 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
12 ; This program is distributed in the hope that it will be useful,
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
13 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
14 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
15 ; GNU General Public License for more details.
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
16 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
17 ; You should have received a copy of the GNU General Public License
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
18 ; along with this program. If not, see <http://www.gnu.org/licenses/>.
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
19 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
20 ; Copyright (c) 2010, JD Gascuel.
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
21 ;=============================================================================
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
22 ; RATIONAL
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
23 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
24 ; We must enforce good data passing between the C and the ASM parts of code.
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
25 ; The previous design used two independant definitions of each variable,
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
26 ; one in C, one in ASM. If they did not match, no error was generated, and
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
27 ; anything can happend at runtime...
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
28 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
29 ; The new design use LINKING to ensure the variables defined in C are at the
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
30 ; same address when used in ASM code. And it uses a unique declaration file
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
31 ; (with suitable macros) to make sure they have the same size in both language.
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
32 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
33 ; HISTORY
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
34 ; 2011-01-20: [jDG] Creation.
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
35 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
36 ; NOTE
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
37 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
38 ; This file have to obey both ASM and C syntax. The only common directives
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
39 ; are #if/#ifdef/#endif and the #define, so they are eavily used to do the
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
40 ; trick.
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
41 ;
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
42 ; BUGS
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
43 ;=============================================================================
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
44 #endif
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
45
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
46 #ifdef __18CXX
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
47 //------------------------------------------------------------------------
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
48 // C-style declarations:
275
4310ab395dbe Keep low_depth in float 32bits (w/o rounding) for a better stability.
JeanDo
parents: 240
diff changeset
49 # ifndef TEST_MAIN
216
c7e32ff65636 BUGFIX typo when last stop is just below 3m.
JeanDo
parents: 203
diff changeset
50 # define VAR_UCHAR(n) extern unsigned char n
c7e32ff65636 BUGFIX typo when last stop is just below 3m.
JeanDo
parents: 203
diff changeset
51 # define TAB_UCHAR(n,size) extern unsigned char n[size]
c7e32ff65636 BUGFIX typo when last stop is just below 3m.
JeanDo
parents: 203
diff changeset
52 # define VAR_UINT(n) extern unsigned short n
c7e32ff65636 BUGFIX typo when last stop is just below 3m.
JeanDo
parents: 203
diff changeset
53 # define TAB_UINT(n,size) extern unsigned short n[size]
167
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
54 # else
216
c7e32ff65636 BUGFIX typo when last stop is just below 3m.
JeanDo
parents: 203
diff changeset
55 # define VAR_UCHAR(n) unsigned char n
c7e32ff65636 BUGFIX typo when last stop is just below 3m.
JeanDo
parents: 203
diff changeset
56 # define TAB_UCHAR(n,size) unsigned char n[size]
c7e32ff65636 BUGFIX typo when last stop is just below 3m.
JeanDo
parents: 203
diff changeset
57 # define VAR_UINT(n) unsigned short n
c7e32ff65636 BUGFIX typo when last stop is just below 3m.
JeanDo
parents: 203
diff changeset
58 # define TAB_UINT(n,size) unsigned short n[size]
167
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
59 # endif
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
60 #else
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
61 ;-------------------------------------------------------------------------
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
62 ; ASM-style declarations:
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
63 #define VAR_UCHAR(n) n res 1
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
64 #define TAB_UCHAR(n,size) n res size
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
65 #define VAR_UINT(n) n res 2
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
66 #define TAB_UINT(n,size) n res 2*size
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
67 #endif
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
68
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
69 #ifdef __18CXX
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
70 //---- BANK 2 DATA -------------------------------------------------------
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
71 // Gather all data C-code --> ASM-code
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
72 # pragma udata overlay bank2=0x200
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
73 #else
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
74 bank2 udata_ovr 0x200
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
75 #endif
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
76
338
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
77 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
78 Define model dimensions.
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
79 NUM_COMP is the number of compartiments in the Bühlmann ZH-L16 model, ie 16.
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
80 NUM_STOPS is the maximum number of stops computed by decoplanning.
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
81 Note that the deapest stop is roughly limited to 3m * NUM_STOPS
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
82 (this is assuming all stops up to the surface are used).
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
83 Note also that if the table overflow, extra stops are ignored,
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
84 and not reported in TTS summing.
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
85 NUM_GAS is the number of (potentially) active gas considered during
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
86 ascent simulation.
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
87 #endif
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
88 #define NUM_COMP 0x10
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
89 #define NUM_STOPS 0x20
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
90 #define NUM_GAS 5
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
91
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
92 VAR_UINT (int_O_gtissue_limit);
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
93 VAR_UINT (int_O_gtissue_press);
168
494587193f5d Use 16bits for TTS sum.
JeanDo
parents: 167
diff changeset
94 VAR_UINT (int_O_desaturation_time); //
494587193f5d Use 16bits for TTS sum.
JeanDo
parents: 167
diff changeset
95 VAR_UINT (int_O_ascenttime); // TTS (in minutes)
312
b7e4e74c0e17 New @5 variant: compute TTS if staying some extra time (CF58) at current depth.
JeanDo
parents: 307
diff changeset
96 VAR_UINT (int_O_extra_ascenttime); // TTS for @+5min variant (in minutes)
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
97
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
98 VAR_UCHAR (char_O_nullzeit); //
278
17aab4ca0547 BUGFIX CCR decoplan fails (bug bb42).
JeanDo
parents: 275
diff changeset
99 VAR_UCHAR (char_O_deco_status); // Deko state-machine state.
17aab4ca0547 BUGFIX CCR decoplan fails (bug bb42).
JeanDo
parents: 275
diff changeset
100 VAR_UCHAR (char_O_deco_last_stop); // Depth reached during deko planning.
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
101 VAR_UCHAR (char_O_gradient_factor); //
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
102 VAR_UCHAR (char_O_gtissue_no); //
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
103 VAR_UCHAR (char_O_diluent); // new in v.101
322
676d18bce8d7 Fix ppO2[flush] display in customview.
JeanDo
parents: 321
diff changeset
104 VAR_UCHAR (char_O_flush_ppO2); // 2011-05-01: ppO2 from diluant (CCR mode).
307
5bc3467fc421 New live EAD/END in divemode (both OCR and CCR).
JeanDo
parents: 292
diff changeset
105 VAR_UCHAR (char_O_EAD); // 2011-05-01: Added EAD/END in deco model.
5bc3467fc421 New live EAD/END in divemode (both OCR and CCR).
JeanDo
parents: 292
diff changeset
106 VAR_UCHAR (char_O_END); // 2011-05-01: Added EAD/END in deco model.
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
107 VAR_UCHAR (char_O_CNS_fraction); // new in v.101
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
108 VAR_UCHAR (char_O_relative_gradient_GF); // new in v.102
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
109
169
e26f49674956 Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents: 168
diff changeset
110 VAR_UCHAR (char_O_first_deco_depth); // Depth of first stop.
e26f49674956 Merge decoplan display for both GF and Buhlmann models.
JeanDo
parents: 168
diff changeset
111 VAR_UCHAR (char_O_first_deco_time) ; // Duration of first stop.
338
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
112 TAB_UCHAR (char_O_deco_depth, NUM_STOPS); // Fusionned decompression table:
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
113 TAB_UCHAR (char_O_deco_time, NUM_STOPS); // Both ZH-L16 and L16-GF models.
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
114
339
cb77d1fa4535 More cleanups in internal deco structures.
JeanDo
parents: 338
diff changeset
115 TAB_UCHAR (char_O_tissue_N2_saturation, NUM_COMP); // Nitrogen compartiment desaturation time, in min.
cb77d1fa4535 More cleanups in internal deco structures.
JeanDo
parents: 338
diff changeset
116 TAB_UCHAR (char_O_tissue_He_saturation, NUM_COMP); // Helium compartiment desaturation time, in min.
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
117
171
7f3e1bf588bc More p2_deco.c cleanups
JeanDo
parents: 169
diff changeset
118 VAR_UINT (int_O_DBS_bitfield); // NOTE: 9 bytes dumped to divelog by store_dive_decodebug
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
119 VAR_UINT (int_O_DBS2_bitfield);
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
120 VAR_UINT (int_O_DBG_pre_bitfield);
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
121 VAR_UINT (int_O_DBG_post_bitfield);
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
122 VAR_UCHAR (char_O_NDL_at_20mtr);
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
123
224
49c90c5d9603 Gas usage
JeanDo
parents: 222
diff changeset
124 TAB_UINT (int_O_gas_volumes, 5); // Volumes evaluation for each gas tank, in 0.1 liters.
222
638f8e17bd51 Prototyping deco_gas_volumes() to compute gas consumption per tank with decoplanning.
JeanDo
parents: 216
diff changeset
125
164
999abb01c78f + Change data allocation scheme
JeanDo
parents: 163
diff changeset
126 TAB_UCHAR (char_O_hash, 16);
999abb01c78f + Change data allocation scheme
JeanDo
parents: 163
diff changeset
127
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
128 #ifdef __18CXX
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
129 //---- BANK 3 DATA -------------------------------------------------------
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
130 // Gather all data ASM-code --> C-code
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
131 # pragma udata overlay bank3=0x300
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
132 #else
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
133 ; In ASM, put the same bank, in overlay mode, at the same address
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
134 bank3 udata_ovr 0x300
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
135 #endif
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
136
292
21a0f7393468 New CNS calculation in decoplan.
JeanDo
parents: 278
diff changeset
137 VAR_UCHAR (char_I_step_is_1min); // Use 1min integration for tissue and CNS.
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
138
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
139 VAR_UINT (int_I_pres_respiration); //
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
140 VAR_UINT (int_I_pres_surface); //
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
141 VAR_UINT (int_I_temp); // new in v101
203
2d9af08ed0ac BUGFIX Gas switch
JeanDo
parents: 171
diff changeset
142 VAR_UINT (int_I_divemins); // Dive time (minutes)
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
143 VAR_UCHAR (char_I_temp); // new in v101
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
144 VAR_UCHAR (char_I_actual_ppO2); //
353
b5b030c1ae7e Avoid spurious switch-depth stops with 3 or more gas.
JeanDo
parents: 339
diff changeset
145 VAR_UCHAR (char_I_first_gas); // Gas used at start of dive (bottom mix)
b5b030c1ae7e Avoid spurious switch-depth stops with 3 or more gas.
JeanDo
parents: 339
diff changeset
146 VAR_UCHAR (char_I_current_gas); // Current gas breathed (1..6).
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
147 VAR_UCHAR (char_I_N2_ratio); //
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
148 VAR_UCHAR (char_I_He_ratio); //
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
149 VAR_UCHAR (char_I_saturation_multiplier); // for conservatism/safety values 1.0 no conservatism to 1.5 50% faster saturation
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
150 VAR_UCHAR (char_I_desaturation_multiplier);// for conservatism/safety values 0.66 50% slower desaturation to 1.0 no conservatism// consveratism used in calc_tissue , calc_tissue_step_1_min and sim_tissue_1min
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
151 VAR_UCHAR (char_I_GF_High_percentage); // new in v.102
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
152 VAR_UCHAR (char_I_GF_Low_percentage); // new in v.102
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
153 VAR_UCHAR (char_I_deco_distance); //
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
154 VAR_UCHAR (char_I_const_ppO2); // new in v.101
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
155 VAR_UCHAR (char_I_depth_last_deco); // new in v.101 unit: [m]
167
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
156 VAR_UCHAR (char_I_deco_model); // new in v.102. 0 == ZH-L16, 1 = ZH-L16-GF (Grandiant facttor)
222
638f8e17bd51 Prototyping deco_gas_volumes() to compute gas consumption per tank with decoplanning.
JeanDo
parents: 216
diff changeset
157 VAR_UCHAR (char_I_bottom_depth); // Bottom depth for planning (used in gas volume evaluation).
638f8e17bd51 Prototyping deco_gas_volumes() to compute gas consumption per tank with decoplanning.
JeanDo
parents: 216
diff changeset
158 VAR_UCHAR (char_I_bottom_time); // Bottom time for planning (used in gas volume evaluation).
368
de3b267e1fd9 Adding calc_dive_interval()
JeanDo
parents: 353
diff changeset
159 VAR_UCHAR (char_I_dive_interval); // Delay before next dive simulation.
163
144822282fa3 Fusion declaration of shared C/ASM variables.
JeanDo
parents:
diff changeset
160
338
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
161 TAB_UCHAR (char_I_deco_gas_change,NUM_GAS);// new in v.101
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
162 TAB_UCHAR (char_I_deco_N2_ratio, NUM_GAS); // new in v.101
b75564fb3d4b Optimizing access to B?hlmann coefficient (speed).
JeanDo
parents: 322
diff changeset
163 TAB_UCHAR (char_I_deco_He_ratio, NUM_GAS); // new in v.101
167
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
164
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
165 #ifdef __18CXX
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
166 //----------------------------------------------------------------------------
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
167 // Access to various utilities defined in ASM-code.
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
168 //
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
169 // Note: Need to switch to BANK1 before calling most of them !
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
170 extern unsigned char win_top, win_leftx2, win_font, win_invert;
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
171 extern ram unsigned char letter[26];
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
172
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
173 extern void PLED_ClearScreen(void);
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
174 extern void PLED_standard_color(void);
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
175 extern void PLED_warnings_color(void);
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
176 extern void PLED_divemask_color(void);
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
177
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
178 extern void PLED_box(void);
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
179 extern void PLED_frame(void);
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
180 extern void aa_wordprocessor(void);
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
181
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
182 /// Set WREG color.
cb055a7d75f3 + Use overlay local vars.
JeanDo
parents: 165
diff changeset
183 extern void PLED_set_color(void);
278
17aab4ca0547 BUGFIX CCR decoplan fails (bug bb42).
JeanDo
parents: 275
diff changeset
184 #endif