1 | /*
|
---|
2 | =============================================================================
|
---|
3 | swinit.c -- external declarations
|
---|
4 | =============================================================================
|
---|
5 | */
|
---|
6 |
|
---|
7 | #pragma once
|
---|
8 |
|
---|
9 | #include "fields.h"
|
---|
10 | #include "libdsp.h"
|
---|
11 | #include "midas.h"
|
---|
12 | #include "score.h"
|
---|
13 | #include "scwheel.h"
|
---|
14 | #include "stddefs.h"
|
---|
15 | #include "stdint.h"
|
---|
16 |
|
---|
17 | /*
|
---|
18 | =============================================================================
|
---|
19 | external variables
|
---|
20 | =============================================================================
|
---|
21 | */
|
---|
22 |
|
---|
23 | extern int16_t BGeq[14];
|
---|
24 | extern int16_t BGother[14];
|
---|
25 | extern int16_t BGprmtr[14];
|
---|
26 | extern int16_t BarBcur[14];
|
---|
27 | extern int16_t BarCcur[14];
|
---|
28 | extern int16_t BotEdge;
|
---|
29 | extern int16_t LftEdge;
|
---|
30 | extern int16_t RgtEdge;
|
---|
31 | extern int16_t TopEdge;
|
---|
32 | extern int32_t afi;
|
---|
33 | extern int16_t articen[12];
|
---|
34 | extern LPF aswtbl[14];
|
---|
35 | extern int8_t bfs[128];
|
---|
36 | extern int8_t caname[16];
|
---|
37 | extern int16_t *cratex;
|
---|
38 | extern int16_t *cratey;
|
---|
39 | extern int32_t ctime;
|
---|
40 | extern void (*curmove)(void);
|
---|
41 | extern int32_t curtime;
|
---|
42 | extern int16_t (*curtype)(void);
|
---|
43 | extern void (*cx_key)(void);
|
---|
44 | extern void (*cx_upd)(void);
|
---|
45 | extern void (*cy_key)(void);
|
---|
46 | extern void (*cy_upd)(void);
|
---|
47 | extern void (*d_key)(int16_t k);
|
---|
48 | extern int8_t dspbuf[65];
|
---|
49 | extern int32_t dvwork;
|
---|
50 | extern void (*e_key)(void);
|
---|
51 | extern int8_t ebuf[MAXEBUF+1];
|
---|
52 | extern int8_t errbuf[65];
|
---|
53 | extern int32_t frags;
|
---|
54 | extern int8_t *funcndx[256][2];
|
---|
55 | extern int16_t grpdyn[12];
|
---|
56 | extern int16_t grploc[12];
|
---|
57 | extern int16_t grpmode[12];
|
---|
58 | extern int16_t grpsel[12];
|
---|
59 | extern int16_t grpstat[12];
|
---|
60 | extern int16_t grptmap[12];
|
---|
61 | extern int16_t gtctab[12];
|
---|
62 | extern int32_t hwave[NUMWPCAL];
|
---|
63 | extern int8_t idbuf[65];
|
---|
64 | extern int16_t ins2grp[12];
|
---|
65 | extern int16_t instmod[12];
|
---|
66 | extern int32_t iotime;
|
---|
67 | extern void (*itxput)(int16_t row, int16_t col, int8_t *txt, int16_t tag);
|
---|
68 | extern int16_t key2grp[88];
|
---|
69 | extern int8_t keystat[24];
|
---|
70 | extern int16_t lastart[16];
|
---|
71 | extern int16_t lastvce[12];
|
---|
72 | extern int16_t lastvel[12];
|
---|
73 | extern int32_t lcdontm;
|
---|
74 | extern int32_t lcdtime;
|
---|
75 | extern int32_t lcsum;
|
---|
76 | extern int8_t ldcmnt[38];
|
---|
77 | extern int8_t ldfile[9];
|
---|
78 | extern int16_t ldmap[N_SCORES];
|
---|
79 | extern int8_t ldmsg1[65];
|
---|
80 | extern int8_t ldmsg2[65];
|
---|
81 | extern int8_t ldmsg3[65];
|
---|
82 | extern int8_t *lmln22;
|
---|
83 | extern int8_t *lmln23;
|
---|
84 | extern int8_t *lmln24;
|
---|
85 | extern int8_t loadedc[NLTYPES][37];
|
---|
86 | extern int8_t loadedf[NLTYPES][8];
|
---|
87 | extern void (*m_key)(void);
|
---|
88 | extern int8_t masens[3];
|
---|
89 | extern int16_t mctlnum[4];
|
---|
90 | extern int8_t mctlval[NCTRLS];
|
---|
91 | extern int8_t mdbyte[3];
|
---|
92 | extern int16_t mpbend[48];
|
---|
93 | extern int8_t mpsust[48];
|
---|
94 | extern int8_t mrstat[3];
|
---|
95 | extern int16_t msmstv[3];
|
---|
96 | extern int32_t ndbytes;
|
---|
97 | extern int32_t nlpersc[N_SCORES];
|
---|
98 | extern int16_t (*not_fld)(int16_t k);
|
---|
99 | extern int32_t noteoff;
|
---|
100 | extern int32_t noteon;
|
---|
101 | extern int32_t noteper;
|
---|
102 | extern int32_t noteval;
|
---|
103 | extern int32_t nrest;
|
---|
104 | extern int16_t offsets[NUMWPCAL];
|
---|
105 | extern void (*olddkey)(int16_t k);
|
---|
106 | extern void (*oldekey)(void);
|
---|
107 | extern void (*oldmkey)(void);
|
---|
108 | extern LPF (*oldsw)[];
|
---|
109 | extern int16_t oldtun[128];
|
---|
110 | extern void (*oldxkey)(void);
|
---|
111 | extern void (*premove)(void);
|
---|
112 | extern int16_t prstab[NTRIGS];
|
---|
113 | extern int32_t *pspool;
|
---|
114 | extern void (*pstmove)(void);
|
---|
115 | extern int16_t s_inst[12];
|
---|
116 | extern int16_t s_trns[12];
|
---|
117 | extern int32_t schksum;
|
---|
118 | extern int8_t scname[N_SCORES][16];
|
---|
119 | extern int32_t scsums[N_SCORES];
|
---|
120 | extern int32_t se1_cnt;
|
---|
121 | extern int32_t se2_cnt;
|
---|
122 | extern int32_t se3_cnt;
|
---|
123 | extern BOOL se_chg;
|
---|
124 | extern int32_t snbreq;
|
---|
125 | extern int32_t snlreq;
|
---|
126 | extern int32_t sntbreq;
|
---|
127 | extern int32_t sntlreq;
|
---|
128 | extern int32_t spcount;
|
---|
129 | extern int32_t spool[MAX_SE];
|
---|
130 | extern int32_t swcount;
|
---|
131 | extern int16_t swfifo[NSWFIFO];
|
---|
132 | extern LPF (*swpt)[];
|
---|
133 | extern int32_t swrate;
|
---|
134 | extern int32_t swrmin;
|
---|
135 | extern int32_t swtemp;
|
---|
136 | extern int32_t t_bak;
|
---|
137 | extern int32_t t_cbgn;
|
---|
138 | extern int32_t t_cend;
|
---|
139 | extern int32_t t_ctr;
|
---|
140 | extern int32_t t_cur;
|
---|
141 | extern int32_t t_fwd;
|
---|
142 | extern int32_t t_ins;
|
---|
143 | extern int32_t t_note;
|
---|
144 | extern int32_t t_sbgn;
|
---|
145 | extern int32_t t_sec1;
|
---|
146 | extern int32_t t_sec2;
|
---|
147 | extern int32_t t_sect;
|
---|
148 | extern int32_t t_send;
|
---|
149 | extern int8_t trgtab[NTRIGS];
|
---|
150 | extern int8_t tuncurn[33];
|
---|
151 | extern int8_t tunname[NTUNS][32];
|
---|
152 | extern int16_t tuntab[128];
|
---|
153 | extern int16_t txfifo[NTKFIFO];
|
---|
154 | extern int16_t tyfifo[NTKFIFO];
|
---|
155 | extern int16_t vce2grp[12];
|
---|
156 | extern int16_t vce2trg[12];
|
---|
157 | extern int16_t veltab[NTRIGS];
|
---|
158 | extern int32_t vknm[NUMHARM][NUMWPCAL];
|
---|
159 | extern int8_t *vlbptr[3];
|
---|
160 | extern int16_t vmtab[NUMHARM];
|
---|
161 | extern void (*vt_adv)(void);
|
---|
162 | extern void (*vt_bsp)(void);
|
---|
163 | extern void (*vt_cdn)(void);
|
---|
164 | extern void (*vt_cup)(void);
|
---|
165 | extern void (*vt_dsp)(uint16_t *obj, uint16_t fg, uint16_t bg, int16_t row, int16_t col, int8_t *buf);
|
---|
166 | extern void (*vt_stop)(void);
|
---|
167 | extern int8_t *vtdeptr;
|
---|
168 | extern int16_t wsbuf[NUMWPCAL];
|
---|
169 | extern int32_t wshfac;
|
---|
170 | extern void (*x_key)(void);
|
---|
171 | extern void (*xy_dn)(void);
|
---|
172 | extern void (*xy_up)(void);
|
---|
173 |
|
---|
174 | /*
|
---|
175 | =============================================================================
|
---|
176 | external functions
|
---|
177 | =============================================================================
|
---|
178 | */
|
---|
179 |
|
---|
180 | extern void swinit(void);
|
---|