source: buchla-68k/ram/im700.x@ 4810254

Last change on this file since 4810254 was 2340de6, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Keep macros in external declarations.

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