annotate code_part1/OSTC_code_asm_part1/shared_definitions.h @ 831:0cf00ecf3532

CHANGE: Color-code battery % display in surface mode (Charge, Full, Normal)
author heinrichsweikamp
date Tue, 08 Dec 2015 13:44:39 +0100
parents fe0fbdc31abe
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
1 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
2 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
3 ; shared_definitions.h
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
4 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
5 ; Declare variables used both in C and ASM code
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
6 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
7 ; This program is free software: you can redistribute it and/or modify
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
8 ; it under the terms of the GNU General Public License as published by
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
9 ; the Free Software Foundation, either version 3 of the License, or
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
10 ; (at your option) any later version.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
11 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
12 ; This program is distributed in the hope that it will be useful,
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
13 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
14 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
15 ; GNU General Public License for more details.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
16 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
17 ; You should have received a copy of the GNU General Public License
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
18 ; along with this program. If not, see <http://www.gnu.org/licenses/>.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
19 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
20 ; Copyright (c) 2010, JD Gascuel.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
21 ;=============================================================================
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
22 ; RATIONAL
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
23 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
24 ; We must enforce good data passing between the C and the ASM parts of code.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
25 ; The previous design used two independant definitions of each variable,
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
26 ; one in C, one in ASM. If they did not match, no error was generated, and
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
27 ; anything can happend at runtime...
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
28 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
29 ; The new design use LINKING to ensure the variables defined in C are at the
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
30 ; same address when used in ASM code. And it uses a unique declaration file
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
31 ; (with suitable macros) to make sure they have the same size in both language.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
32 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
33 ; HISTORY
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
34 ; 2011-01-20: [jDG] Creation.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
35 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
36 ; NOTE
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
37 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
38 ; This file have to obey both ASM and C syntax. The only common directives
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
39 ; are #if/#ifdef/#endif and the #define, so they are eavily used to do the
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
40 ; trick.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
41 ;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
42 ; BUGS
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
43 ;=============================================================================
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
44 #endif
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
45
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
46 #ifdef __18CXX
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
47 //------------------------------------------------------------------------
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
48 // C-style declarations:
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
49 # ifndef TEST_MAIN
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
50 # define VAR_UCHAR(n) extern unsigned char n
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
51 # define TAB_UCHAR(n,size) extern unsigned char n[size]
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
52 # define VAR_UINT(n) extern unsigned short n
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
53 # define TAB_UINT(n,size) extern unsigned short n[size]
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
54 # else
822
fe0fbdc31abe minor warnings.
jDG
parents: 786
diff changeset
55 # undef VAR_UCHAR
fe0fbdc31abe minor warnings.
jDG
parents: 786
diff changeset
56 # undef TAB_UCHAR
fe0fbdc31abe minor warnings.
jDG
parents: 786
diff changeset
57 # undef VAR_UINT
fe0fbdc31abe minor warnings.
jDG
parents: 786
diff changeset
58 # undef TAB_UINT
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
59 # define VAR_UCHAR(n) unsigned char n
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
60 # define TAB_UCHAR(n,size) unsigned char n[size]
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
61 # define VAR_UINT(n) unsigned short n
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
62 # define TAB_UINT(n,size) unsigned short n[size]
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
63 # endif
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
64 #else
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
65 ;-------------------------------------------------------------------------
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
66 ; ASM-style declarations:
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
67 #define VAR_UCHAR(n) n res 1
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
68 #define TAB_UCHAR(n,size) n res size
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
69 #define VAR_UINT(n) n res 2
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
70 #define TAB_UINT(n,size) n res 2*size
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
71 #endif
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
72
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
73 #ifdef __18CXX
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
74 //---- BANK 2 DATA -------------------------------------------------------
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
75 // Gather all data C-code --> ASM-code
548
c35473dc6831 Make shared headers UNIX compatibles.
JeanDo
parents: 532
diff changeset
76 # ifndef UNIX
c35473dc6831 Make shared headers UNIX compatibles.
JeanDo
parents: 532
diff changeset
77 # pragma udata overlay bank2=0x200
c35473dc6831 Make shared headers UNIX compatibles.
JeanDo
parents: 532
diff changeset
78 # endif
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
79 #else
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
80 bank2 udata_ovr 0x200
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
81 #endif
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
82
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
83 #ifdef xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
84 Define model dimensions.
743
8466932a2fcf .. minor cleanups
JeanDo
parents: 681
diff changeset
85 NUM_COMP is the number of compartiments in the Buhlmann ZH-L16 model, ie 16.
8466932a2fcf .. minor cleanups
JeanDo
parents: 681
diff changeset
86 NUM_STOPS is the maximum number of stops computed by decoplanning.
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
87 Note that the deapest stop is roughly limited to 3m * NUM_STOPS
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
88 (this is assuming all stops up to the surface are used).
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
89 Note also that if the table overflow, extra stops are ignored,
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
90 and not reported in TTS summing.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
91 NUM_GAS is the number of (potentially) active gas considered during
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
92 ascent simulation.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
93 #endif
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
94 #define NUM_COMP 0x10
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
95 #define NUM_STOPS 0x20
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
96 #define NUM_GAS 5
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
97
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
98 VAR_UINT (int_O_gtissue_press);
743
8466932a2fcf .. minor cleanups
JeanDo
parents: 681
diff changeset
99 VAR_UINT (int_O_desaturation_time); //
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
100 VAR_UINT (int_O_ascenttime); // TTS (in minutes)
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
101 VAR_UINT (int_O_extra_ascenttime); // TTS for @+5min variant (in minutes)
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
102
743
8466932a2fcf .. minor cleanups
JeanDo
parents: 681
diff changeset
103 VAR_UCHAR (char_O_nullzeit); //
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
104 VAR_UCHAR (char_O_deco_status); // Deko state-machine state.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
105 VAR_UCHAR (char_O_deco_last_stop); // Depth reached during deko planning.
743
8466932a2fcf .. minor cleanups
JeanDo
parents: 681
diff changeset
106 VAR_UCHAR (char_O_gradient_factor); //
8466932a2fcf .. minor cleanups
JeanDo
parents: 681
diff changeset
107 VAR_UCHAR (char_O_gtissue_no); //
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
108 VAR_UCHAR (char_O_diluent); // new in v.101
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
109 VAR_UCHAR (char_O_flush_ppO2); // 2011-05-01: ppO2 from diluant (CCR mode).
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
110 VAR_UCHAR (char_O_EAD); // 2011-05-01: Added EAD/END in deco model.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
111 VAR_UCHAR (char_O_END); // 2011-05-01: Added EAD/END in deco model.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
112 VAR_UCHAR (char_O_CNS_fraction); // new in v.101
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
113 VAR_UCHAR (char_O_relative_gradient_GF); // new in v.102
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
114
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
115 VAR_UCHAR (char_O_first_deco_depth); // Depth of first stop.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
116 VAR_UCHAR (char_O_first_deco_time) ; // Duration of first stop.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
117 TAB_UCHAR (char_O_deco_depth, NUM_STOPS); // Fusionned decompression table:
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
118 TAB_UCHAR (char_O_deco_time, NUM_STOPS); // Both ZH-L16 and L16-GF models.
757
50ed645c251d CHANGE: save gas used during deco
jDG
parents: 743
diff changeset
119 TAB_UCHAR (char_O_deco_gas, NUM_STOPS); // Both ZH-L16 and L16-GF models.
630
6526a5b058b7 Fill char_O_deco_time_for_log array with stop times
heinrichsweikamp
parents: 548
diff changeset
120 TAB_UCHAR (char_O_deco_time_for_log, NUM_STOPS); // For logging the full decoplan
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
121
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
122 TAB_UCHAR (char_O_tissue_N2_saturation, NUM_COMP); // Nitrogen compartiment desaturation time, in min.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
123 TAB_UCHAR (char_O_tissue_He_saturation, NUM_COMP); // Helium compartiment desaturation time, in min.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
124
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
125 TAB_UINT (int_O_gas_volumes, 5); // Volumes evaluation for each gas tank, in 0.1 liters.
822
fe0fbdc31abe minor warnings.
jDG
parents: 786
diff changeset
126 VAR_UINT (int_O_ceiling); // in mbar
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
127
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
128 TAB_UCHAR (char_O_hash, 16);
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
129
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
130 #ifdef __18CXX
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
131 //---- BANK 3 DATA -------------------------------------------------------
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
132 // Gather all data ASM-code --> C-code
548
c35473dc6831 Make shared headers UNIX compatibles.
JeanDo
parents: 532
diff changeset
133 # ifndef UNIX
c35473dc6831 Make shared headers UNIX compatibles.
JeanDo
parents: 532
diff changeset
134 # pragma udata overlay bank3=0x300
c35473dc6831 Make shared headers UNIX compatibles.
JeanDo
parents: 532
diff changeset
135 # endif
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
136 #else
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
137 ; In ASM, put the same bank, in overlay mode, at the same address
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
138 bank3 udata_ovr 0x300
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
139 #endif
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
140
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
141 VAR_UCHAR (char_I_step_is_1min); // Use 1min integration for tissue and CNS.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
142
743
8466932a2fcf .. minor cleanups
JeanDo
parents: 681
diff changeset
143 VAR_UINT (int_I_pres_respiration); //
8466932a2fcf .. minor cleanups
JeanDo
parents: 681
diff changeset
144 VAR_UINT (int_I_pres_surface); //
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
145 VAR_UINT (int_I_temp); // new in v101
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
146 VAR_UINT (int_I_divemins); // Dive time (minutes)
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
147 VAR_UCHAR (char_I_temp); // new in v101
743
8466932a2fcf .. minor cleanups
JeanDo
parents: 681
diff changeset
148 VAR_UCHAR (char_I_actual_ppO2); //
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
149 VAR_UCHAR (char_I_first_gas); // Gas used at start of dive (bottom mix)
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
150 VAR_UCHAR (char_I_current_gas); // Current gas breathed (1..6).
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
151 VAR_UCHAR (char_I_N2_ratio); //
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
152 VAR_UCHAR (char_I_He_ratio); //
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
153 VAR_UCHAR (char_I_saturation_multiplier); // for conservatism/safety values 1.0 no conservatism to 1.5 50% faster saturation
743
8466932a2fcf .. minor cleanups
JeanDo
parents: 681
diff changeset
154 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
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
155 VAR_UCHAR (char_I_GF_High_percentage); // new in v.102
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
156 VAR_UCHAR (char_I_GF_Low_percentage); // new in v.102
743
8466932a2fcf .. minor cleanups
JeanDo
parents: 681
diff changeset
157 VAR_UCHAR (char_I_deco_distance); //
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
158 VAR_UCHAR (char_I_const_ppO2); // new in v.101
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
159 VAR_UCHAR (char_I_depth_last_deco); // new in v.101 unit: [m]
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
160 VAR_UCHAR (char_I_deco_model); // new in v.102. 0 == ZH-L16, 1 = ZH-L16-GF (Grandiant facttor)
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
161 VAR_UCHAR (char_I_bottom_depth); // Bottom depth for planning (used in gas volume evaluation).
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
162 VAR_UCHAR (char_I_bottom_time); // Bottom time for planning (used in gas volume evaluation).
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
163 VAR_UCHAR (char_I_dive_interval); // Delay before next dive simulation.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
164
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
165 TAB_UCHAR (char_I_deco_gas_change,NUM_GAS);// new in v.101
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
166 TAB_UCHAR (char_I_deco_N2_ratio, NUM_GAS); // new in v.101
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
167 TAB_UCHAR (char_I_deco_He_ratio, NUM_GAS); // new in v.101
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
168
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
169 #ifdef __18CXX
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
170 //----------------------------------------------------------------------------
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
171 // Access to various utilities defined in ASM-code.
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
172 //
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
173 // Note: Need to switch to BANK1 before calling most of them !
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
174 extern unsigned char win_top, win_leftx2, win_font, win_invert;
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
175 extern ram unsigned char letter[26];
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
176
681
6e456a6398e0 Hardware4 support
heinrichsweikamp
parents: 630
diff changeset
177 extern void DISP_ClearScreen(void);
6e456a6398e0 Hardware4 support
heinrichsweikamp
parents: 630
diff changeset
178 extern void DISP_standard_color(void);
6e456a6398e0 Hardware4 support
heinrichsweikamp
parents: 630
diff changeset
179 extern void DISP_warnings_color(void);
6e456a6398e0 Hardware4 support
heinrichsweikamp
parents: 630
diff changeset
180 extern void DISP_divemask_color(void);
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
181
681
6e456a6398e0 Hardware4 support
heinrichsweikamp
parents: 630
diff changeset
182 extern void DISP_box(void);
6e456a6398e0 Hardware4 support
heinrichsweikamp
parents: 630
diff changeset
183 extern void DISP_frame(void);
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
184 extern void aa_wordprocessor(void);
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
185
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
186 /// Set WREG color.
681
6e456a6398e0 Hardware4 support
heinrichsweikamp
parents: 630
diff changeset
187 extern void DISP_set_color(void);
494
e9b1f162799d testing graphical velocity
heinrichsweikamp
parents:
diff changeset
188 #endif