1 | /*
|
---|
2 | =============================================================================
|
---|
3 | im700.c -- external declarations
|
---|
4 | =============================================================================
|
---|
5 | */
|
---|
6 |
|
---|
7 | #pragma once
|
---|
8 |
|
---|
9 | #include "asgdsp.h"
|
---|
10 | #include "fields.h"
|
---|
11 | #include "instdsp.h"
|
---|
12 | #include "libdsp.h"
|
---|
13 | #include "midas.h"
|
---|
14 | #include "objdefs.h"
|
---|
15 | #include "score.h"
|
---|
16 | #include "slice.h"
|
---|
17 | #include "smdefs.h"
|
---|
18 | #include "stdint.h"
|
---|
19 | #include "vsdd.h"
|
---|
20 | #include "wsdsp.h"
|
---|
21 |
|
---|
22 | /*
|
---|
23 | =============================================================================
|
---|
24 | external variables
|
---|
25 | =============================================================================
|
---|
26 | */
|
---|
27 |
|
---|
28 | extern int16_t admctl;
|
---|
29 | extern int16_t adnamsw;
|
---|
30 | extern struct octent *adoct;
|
---|
31 | extern int16_t aflag;
|
---|
32 | extern int16_t aform;
|
---|
33 | extern int16_t amplval;
|
---|
34 | extern int16_t ancmsw;
|
---|
35 | extern int16_t angroup;
|
---|
36 | extern int16_t anrs[8][16];
|
---|
37 | extern int16_t asgfks;
|
---|
38 | extern int16_t asghit;
|
---|
39 | extern int16_t asgmod;
|
---|
40 | extern uint16_t *asgob;
|
---|
41 | extern struct asgent asgtab[NASGS];
|
---|
42 | extern int16_t asig;
|
---|
43 | extern int16_t asmode;
|
---|
44 | extern int16_t astat;
|
---|
45 | extern int16_t auxctl;
|
---|
46 | extern int16_t aval;
|
---|
47 | extern int16_t bform;
|
---|
48 | extern int16_t catin;
|
---|
49 | extern int16_t cents;
|
---|
50 | extern struct fet *cfetp;
|
---|
51 | extern int16_t cflag;
|
---|
52 | extern int16_t chtime;
|
---|
53 | extern int16_t chwait;
|
---|
54 | extern int16_t clkctl;
|
---|
55 | extern int16_t clkrun;
|
---|
56 | extern int16_t clksrc;
|
---|
57 | extern int16_t cmfirst;
|
---|
58 | extern int16_t cmtype;
|
---|
59 | extern int16_t cnote;
|
---|
60 | extern uint16_t *consl;
|
---|
61 | extern int16_t crate0[];
|
---|
62 | extern int16_t crate1[];
|
---|
63 | extern int16_t crate2[];
|
---|
64 | extern struct selbox *csbp;
|
---|
65 | extern int16_t ctrsw;
|
---|
66 | extern int16_t curasg;
|
---|
67 | extern struct selbox *curboxp;
|
---|
68 | extern struct fet *curfet;
|
---|
69 | extern int16_t curfunc;
|
---|
70 | extern int16_t curgrp;
|
---|
71 | extern int16_t curhold;
|
---|
72 | extern int16_t curinst;
|
---|
73 | extern uint16_t curintp;
|
---|
74 | extern int16_t curmop;
|
---|
75 | extern int16_t curpnt;
|
---|
76 | extern int16_t curpos;
|
---|
77 | extern int16_t cursbox;
|
---|
78 | extern int16_t curscor;
|
---|
79 | extern int16_t cursect;
|
---|
80 | extern uint16_t *cursl;
|
---|
81 | extern int16_t curslim;
|
---|
82 | extern int16_t curtun;
|
---|
83 | extern int16_t curvce;
|
---|
84 | extern int16_t curwave;
|
---|
85 | extern int16_t curwdth;
|
---|
86 | extern int16_t curwfnl;
|
---|
87 | extern int16_t curwhrm;
|
---|
88 | extern int16_t curwhrv;
|
---|
89 | extern int16_t curwoff;
|
---|
90 | extern int16_t curwpnt;
|
---|
91 | extern int16_t curwslt;
|
---|
92 | extern int16_t cvtime;
|
---|
93 | extern int16_t cvwait;
|
---|
94 | extern int16_t cxrate;
|
---|
95 | extern int16_t cxval;
|
---|
96 | extern int16_t cyrate;
|
---|
97 | extern int16_t cyval;
|
---|
98 | extern int16_t debugne;
|
---|
99 | extern int16_t debugsw;
|
---|
100 | extern int16_t defect;
|
---|
101 | extern uint16_t dfbuf[4096];
|
---|
102 | extern int16_t dferror;
|
---|
103 | extern int16_t dfsides;
|
---|
104 | extern int16_t dftype;
|
---|
105 | extern int16_t dsp_ok;
|
---|
106 | extern int16_t dubsw;
|
---|
107 | extern int16_t ebflag;
|
---|
108 | extern int16_t editss;
|
---|
109 | extern int16_t editsw;
|
---|
110 | extern int16_t endflg;
|
---|
111 | extern int16_t ext_cv1;
|
---|
112 | extern int16_t ext_cv2;
|
---|
113 | extern int16_t ext_cv3;
|
---|
114 | extern int16_t ext_cv4;
|
---|
115 | extern int16_t ext_mod;
|
---|
116 | extern struct fcat filecat[FCMAX];
|
---|
117 | extern struct gdsel *gdfsep;
|
---|
118 | extern struct gdsel gdfsl[MAXFSL];
|
---|
119 | extern struct gdsel *gdstbc[NGDSEL];
|
---|
120 | extern struct gdsel *gdstbn[NGDSEL];
|
---|
121 | extern struct gdsel *gdstbp[NGDSEL];
|
---|
122 | extern int16_t gomode;
|
---|
123 | extern int16_t grp2prt[12][2];
|
---|
124 | extern int16_t grptran;
|
---|
125 | extern int16_t gtmsel;
|
---|
126 | extern int16_t hcwval;
|
---|
127 | extern int16_t hitbox;
|
---|
128 | extern int16_t hitcx;
|
---|
129 | extern int16_t hitcy;
|
---|
130 | extern struct s_entry *hplist[N_SCORES][N_TYPES];
|
---|
131 | extern int16_t idcfsw;
|
---|
132 | extern struct instdef idefs[NINST];
|
---|
133 | extern int16_t idimsw;
|
---|
134 | extern int16_t idintmp;
|
---|
135 | extern int16_t idnamsw;
|
---|
136 | extern struct octent *idoct;
|
---|
137 | extern int16_t idsrcsw;
|
---|
138 | extern int16_t idtdat;
|
---|
139 | extern int16_t imflag;
|
---|
140 | extern struct fet *infetp;
|
---|
141 | extern int16_t initcfg;
|
---|
142 | extern int16_t insmode;
|
---|
143 | extern uint16_t *instob;
|
---|
144 | extern int16_t ismode;
|
---|
145 | extern int16_t lampio;
|
---|
146 | extern int16_t lampsw;
|
---|
147 | extern int16_t lasgsw;
|
---|
148 | extern int16_t lastam;
|
---|
149 | extern int16_t ldelsw;
|
---|
150 | extern int16_t lderrsw;
|
---|
151 | extern struct mlibhdr ldhead;
|
---|
152 | extern int16_t ldidsiz;
|
---|
153 | extern int16_t ldkind;
|
---|
154 | extern struct octent *ldoct;
|
---|
155 | extern int16_t ldpass;
|
---|
156 | extern int16_t ldrow;
|
---|
157 | extern int16_t ldslot;
|
---|
158 | extern int16_t legato;
|
---|
159 | extern uint16_t *librob;
|
---|
160 | extern struct s_entry *libsp;
|
---|
161 | extern int16_t lksel;
|
---|
162 | extern int16_t lmwtype;
|
---|
163 | extern int16_t loadrow;
|
---|
164 | extern int16_t loadsw;
|
---|
165 | extern int16_t loctab[9];
|
---|
166 | extern int16_t lorchl;
|
---|
167 | extern int16_t lorchsw;
|
---|
168 | extern int16_t lorclsw;
|
---|
169 | extern int16_t lpatsw;
|
---|
170 | extern int16_t lrasw;
|
---|
171 | extern int16_t lscrsw;
|
---|
172 | extern int16_t lselsw;
|
---|
173 | extern int16_t lseqsw;
|
---|
174 | extern int16_t lstbgnc;
|
---|
175 | extern struct n_entry *lstbgns[NLSTENTS];
|
---|
176 | extern int16_t lstendc;
|
---|
177 | extern struct n_entry *lstends[NLSTENTS];
|
---|
178 | extern int16_t lstflag;
|
---|
179 | extern int16_t lstrsw;
|
---|
180 | extern int16_t lstwoff;
|
---|
181 | extern int16_t lstwpnt;
|
---|
182 | extern int16_t ltagged;
|
---|
183 | extern int16_t ltunsw;
|
---|
184 | extern int16_t lwavsw;
|
---|
185 | extern int16_t mascntr;
|
---|
186 | extern int16_t mdb1;
|
---|
187 | extern int16_t mdb2;
|
---|
188 | extern struct octent *mdoct;
|
---|
189 | extern uint16_t *menuob;
|
---|
190 | extern int16_t michan;
|
---|
191 | extern int16_t midiclk;
|
---|
192 | extern int16_t midigo;
|
---|
193 | extern int16_t mistat;
|
---|
194 | extern struct EXFILE mphead;
|
---|
195 | extern int16_t nchwait;
|
---|
196 | extern int16_t ncvwait;
|
---|
197 | extern int16_t ndisp;
|
---|
198 | extern struct nevent *nefree;
|
---|
199 | extern struct nevent *nelist;
|
---|
200 | extern struct nevent nevents[NNEVTS];
|
---|
201 | extern int16_t newflag;
|
---|
202 | extern int16_t nkdown;
|
---|
203 | extern int16_t notenum;
|
---|
204 | extern int16_t noteop;
|
---|
205 | extern int16_t notepit;
|
---|
206 | extern int16_t notesel;
|
---|
207 | extern int16_t npts;
|
---|
208 | extern int16_t nxtflag;
|
---|
209 | extern uint16_t *nxtsl;
|
---|
210 | extern uint16_t *obj0;
|
---|
211 | extern uint16_t *obj1;
|
---|
212 | extern uint16_t *obj10;
|
---|
213 | extern uint16_t *obj11;
|
---|
214 | extern uint16_t *obj12;
|
---|
215 | extern uint16_t *obj13;
|
---|
216 | extern uint16_t *obj14;
|
---|
217 | extern uint16_t *obj15;
|
---|
218 | extern uint16_t *obj2;
|
---|
219 | extern uint16_t *obj3;
|
---|
220 | extern uint16_t *obj4;
|
---|
221 | extern uint16_t *obj5;
|
---|
222 | extern uint16_t *obj6;
|
---|
223 | extern uint16_t *obj7;
|
---|
224 | extern uint16_t *obj8;
|
---|
225 | extern uint16_t *obj9;
|
---|
226 | extern int16_t oldltag;
|
---|
227 | extern int16_t oldpk;
|
---|
228 | extern int16_t oldsl;
|
---|
229 | extern struct s_entry *p_bak;
|
---|
230 | extern struct s_entry *p_cbgn;
|
---|
231 | extern struct s_entry *p_cend;
|
---|
232 | extern struct s_entry *p_ctr;
|
---|
233 | extern struct s_entry *p_cur;
|
---|
234 | extern struct s_entry *p_fwd;
|
---|
235 | extern struct n_entry *p_nbeg;
|
---|
236 | extern struct n_entry *p_nend;
|
---|
237 | extern struct s_entry *p_sbgn;
|
---|
238 | extern struct s_entry *p_sec1;
|
---|
239 | extern struct s_entry *p_sec2;
|
---|
240 | extern struct s_entry *p_send;
|
---|
241 | extern int16_t pchsw;
|
---|
242 | extern int16_t pecase;
|
---|
243 | extern struct s_entry *peg;
|
---|
244 | extern struct pflent pfents[NPFENTS];
|
---|
245 | extern struct pflent *pflist;
|
---|
246 | extern struct pflent *pfqhdr;
|
---|
247 | extern int16_t pkctrl;
|
---|
248 | extern struct instpnt *pntptr;
|
---|
249 | extern int16_t pntsv;
|
---|
250 | extern int16_t prgchan;
|
---|
251 | extern uint16_t *prvsl;
|
---|
252 | extern int16_t ps_dpth;
|
---|
253 | extern int16_t ps_intn;
|
---|
254 | extern int16_t ps_rate;
|
---|
255 | extern int16_t pulsclk;
|
---|
256 | extern int16_t recsw;
|
---|
257 | extern int16_t runit;
|
---|
258 | extern uint16_t *saddr;
|
---|
259 | extern int16_t sbase;
|
---|
260 | extern int16_t scmctl;
|
---|
261 | extern struct s_entry *scores[N_SCORES];
|
---|
262 | extern struct s_entry *scp;
|
---|
263 | extern uint16_t scrl;
|
---|
264 | extern int16_t scrlpot;
|
---|
265 | extern int16_t sctctab[10][64];
|
---|
266 | extern int16_t sd;
|
---|
267 | extern int16_t sdmcol;
|
---|
268 | extern int16_t sdmctl;
|
---|
269 | extern int16_t sdmrow;
|
---|
270 | extern int16_t se;
|
---|
271 | extern struct s_entry *seclist[N_SCORES][N_SECTS];
|
---|
272 | extern int16_t secop;
|
---|
273 | extern int16_t secopok;
|
---|
274 | extern int16_t sgcsw;
|
---|
275 | extern int16_t sgoflag;
|
---|
276 | extern int16_t sharp;
|
---|
277 | extern int16_t sigtab[128][2];
|
---|
278 | extern struct scndx sindex[N_SCORES];
|
---|
279 | extern struct s_entry *size1;
|
---|
280 | extern struct s_entry *size2;
|
---|
281 | extern struct s_entry *size3;
|
---|
282 | extern uint16_t slices[896];
|
---|
283 | extern int16_t sliders;
|
---|
284 | extern struct sment sments[192];
|
---|
285 | extern int16_t soffset;
|
---|
286 | extern int16_t ss_ptsw;
|
---|
287 | extern int16_t ss_sqsw;
|
---|
288 | extern int16_t stccol;
|
---|
289 | extern int16_t stcrow;
|
---|
290 | extern int16_t stepclk;
|
---|
291 | extern int16_t stepenb;
|
---|
292 | extern int16_t stepint;
|
---|
293 | extern int16_t stepwgt;
|
---|
294 | extern struct s_time stimes[N_SCORES][N_SECTS];
|
---|
295 | extern int16_t subj;
|
---|
296 | extern int16_t submenu;
|
---|
297 | extern int16_t swback;
|
---|
298 | extern int16_t swctrl;
|
---|
299 | extern int16_t swdelta;
|
---|
300 | extern int16_t swdir;
|
---|
301 | extern int16_t swfiin;
|
---|
302 | extern int16_t swflag;
|
---|
303 | extern int16_t swlast;
|
---|
304 | extern int16_t swndx;
|
---|
305 | extern int16_t swstop;
|
---|
306 | extern int16_t swthr;
|
---|
307 | extern int16_t swtime;
|
---|
308 | extern int16_t swwait;
|
---|
309 | extern int16_t tagslot;
|
---|
310 | extern int16_t tdnamsw;
|
---|
311 | extern struct octent *tdoct;
|
---|
312 | extern int16_t temax;
|
---|
313 | extern int16_t temin;
|
---|
314 | extern int16_t testing;
|
---|
315 | extern int16_t tglclk;
|
---|
316 | extern int16_t tglpch;
|
---|
317 | extern int16_t thcwval;
|
---|
318 | extern int16_t thescore;
|
---|
319 | extern int16_t timemlt;
|
---|
320 | extern int16_t tkback;
|
---|
321 | extern int16_t tkctrl;
|
---|
322 | extern int16_t tkrmin;
|
---|
323 | extern int16_t tkthr;
|
---|
324 | extern int16_t tktime;
|
---|
325 | extern int16_t tkwait;
|
---|
326 | extern int16_t tmpomlt;
|
---|
327 | extern int16_t tmpoval;
|
---|
328 | extern uint16_t tmultab[];
|
---|
329 | extern int16_t trkball;
|
---|
330 | extern int16_t ttcmdsv;
|
---|
331 | extern int16_t ttsel1;
|
---|
332 | extern int16_t ttsel2;
|
---|
333 | extern int16_t ttsel3;
|
---|
334 | extern int16_t tuneval;
|
---|
335 | extern int16_t tunlib[NTUNS][128];
|
---|
336 | extern int16_t tunmod;
|
---|
337 | extern uint16_t *tunob;
|
---|
338 | extern int16_t tunval;
|
---|
339 | extern int16_t tvcwval;
|
---|
340 | extern int16_t txfiin;
|
---|
341 | extern int16_t txflag;
|
---|
342 | extern int16_t txlast;
|
---|
343 | extern int16_t txstop;
|
---|
344 | extern int16_t tyfiin;
|
---|
345 | extern int16_t tyflag;
|
---|
346 | extern int16_t tylast;
|
---|
347 | extern int16_t tystop;
|
---|
348 | extern struct valent valents[NGPSRS];
|
---|
349 | extern int16_t varmode[8][16];
|
---|
350 | extern struct instdef vbufs[12];
|
---|
351 | extern int16_t vcwval;
|
---|
352 | extern int16_t velflag;
|
---|
353 | extern int16_t verbose;
|
---|
354 | extern int16_t vlbtype;
|
---|
355 | extern struct sment *vpsms[192];
|
---|
356 | extern int16_t vrbw08;
|
---|
357 | extern int16_t vrbw09;
|
---|
358 | extern int16_t vrbw10;
|
---|
359 | extern int16_t vrbw11;
|
---|
360 | extern int16_t vrbw12;
|
---|
361 | extern int16_t vrbw13;
|
---|
362 | extern int16_t vrbw14;
|
---|
363 | extern int16_t vrbw15;
|
---|
364 | extern int16_t vrcw;
|
---|
365 | extern uint16_t vtbgval;
|
---|
366 | extern int16_t vtccol;
|
---|
367 | extern int16_t vtcrow;
|
---|
368 | extern int8_t vtdechr;
|
---|
369 | extern int16_t vtdecol;
|
---|
370 | extern uint16_t vtfgval;
|
---|
371 | extern uint16_t *vtobj;
|
---|
372 | extern int16_t vtpcol;
|
---|
373 | extern int16_t vtprow;
|
---|
374 | extern int16_t vtwcol;
|
---|
375 | extern int16_t vtwrow;
|
---|
376 | extern int16_t vtxval;
|
---|
377 | extern int16_t vtyval;
|
---|
378 | extern uint16_t *waveob;
|
---|
379 | extern int16_t wcflag;
|
---|
380 | extern int16_t wcmcol;
|
---|
381 | extern int16_t wcmrow;
|
---|
382 | extern int16_t wcpage;
|
---|
383 | extern struct octent *wdoct;
|
---|
384 | extern int16_t wdupdfl;
|
---|
385 | extern int16_t wmcsel;
|
---|
386 | extern int16_t wmctag;
|
---|
387 | extern int16_t wplast;
|
---|
388 | extern int16_t wpntsv;
|
---|
389 | extern int16_t wshmax;
|
---|
390 | extern struct wstbl wslib[NUMWAVS];
|
---|
391 | extern int16_t wsnmod[12][2];
|
---|
392 | extern int16_t wvlast;
|
---|
393 | extern int16_t xkcount;
|
---|
394 | extern int16_t xkstat;
|
---|
395 | extern int16_t xycntr;
|
---|
396 | extern int16_t ykcount;
|
---|
397 | extern int16_t ykstat;
|
---|
398 |
|
---|
399 | /*
|
---|
400 | =============================================================================
|
---|
401 | external functions
|
---|
402 | =============================================================================
|
---|
403 | */
|
---|
404 |
|
---|
405 | extern void clrpfl(void);
|
---|
406 | extern void im700(void);
|
---|
407 | extern void inismtb(void);
|
---|
408 | extern int16_t valof(int16_t srcv);
|
---|