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