Changeset 7258c6a in buchla-68k for ram/wsdsp.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/wsdsp.c
r0292fbb r7258c6a 24 24 /* things defined elsewhere */ 25 25 26 extern u nsigned exp_c(unsignedc);27 28 extern void (*point)( short x, short y, short pen);29 30 extern u nsigned*obj0;31 32 extern charbfs[];33 34 extern char*wdbxlb0[];35 extern char*wdbxlb1[];36 37 extern short wdbox[][8];26 extern uint16_t exp_c(uint16_t c); 27 28 extern void (*point)(int16_t x, int16_t y, int16_t pen); 29 30 extern uint16_t *obj0; 31 32 extern int8_t bfs[]; 33 34 extern int8_t *wdbxlb0[]; 35 extern int8_t *wdbxlb1[]; 36 37 extern int16_t wdbox[][8]; 38 38 39 39 extern struct instdef vbufs[]; … … 43 43 */ 44 44 45 extern short curinst;46 extern short curvce;47 extern short curwave; /* current waveshape library slot */48 extern short curwdth; /* current waveshape cursor width */49 extern short curwfnl; /* current waveshape final value */50 extern short curwhrm; /* current waveshape harmonic number */51 extern short curwhrv; /* current waveshape harmonic value */52 extern short curwpnt; /* current waveshape point number */53 extern short curwoff; /* current waveshape offset value */54 extern short curwslt; /* current waveshape instrument slot */55 extern short cxval;56 extern short cyval;57 extern short lstwoff;58 extern short lstwpnt;59 extern short stccol;60 extern short stcrow;61 extern short wpntsv; /* waveshape point selection state variable */62 extern short wplast;63 extern short wvlast;64 65 extern short vmtab[NUMHARM]; /* harmonic table */66 extern short wsbuf[NUMWPCAL]; /* waveshape generation buffer */67 68 extern longvknm[NUMHARM][NUMWPCAL]; /* scaled harmonics */69 70 extern u nsigned*waveob; /* waveshape display object pointer */71 72 extern short wsnmod[12][2]; /* waveshape number or data modified */45 extern int16_t curinst; 46 extern int16_t curvce; 47 extern int16_t curwave; /* current waveshape library slot */ 48 extern int16_t curwdth; /* current waveshape cursor width */ 49 extern int16_t curwfnl; /* current waveshape final value */ 50 extern int16_t curwhrm; /* current waveshape harmonic number */ 51 extern int16_t curwhrv; /* current waveshape harmonic value */ 52 extern int16_t curwpnt; /* current waveshape point number */ 53 extern int16_t curwoff; /* current waveshape offset value */ 54 extern int16_t curwslt; /* current waveshape instrument slot */ 55 extern int16_t cxval; 56 extern int16_t cyval; 57 extern int16_t lstwoff; 58 extern int16_t lstwpnt; 59 extern int16_t stccol; 60 extern int16_t stcrow; 61 extern int16_t wpntsv; /* waveshape point selection state variable */ 62 extern int16_t wplast; 63 extern int16_t wvlast; 64 65 extern int16_t vmtab[NUMHARM]; /* harmonic table */ 66 extern int16_t wsbuf[NUMWPCAL]; /* waveshape generation buffer */ 67 68 extern int32_t vknm[NUMHARM][NUMWPCAL]; /* scaled harmonics */ 69 70 extern uint16_t *waveob; /* waveshape display object pointer */ 71 72 extern int16_t wsnmod[12][2]; /* waveshape number or data modified */ 73 73 74 74 extern struct wstbl wslib[NUMWAVS]; /* waveshape library */ … … 78 78 /* forward references */ 79 79 80 void wdpoint( short x, short y, short pen);81 82 /* 83 84 */ 85 86 short wavpal[16][3] = { /* waveshape display color palette */80 void wdpoint(int16_t x, int16_t y, int16_t pen); 81 82 /* 83 84 */ 85 86 int16_t wavpal[16][3] = { /* waveshape display color palette */ 87 87 88 88 {0, 0, 0}, /* 0 */ … … 116 116 void advwcur(void) 117 117 { 118 register short newcol;118 register int16_t newcol; 119 119 120 120 newcol = stccol + 1; … … 134 134 */ 135 135 136 void hdraw( short *hv, short h)137 { 138 register short bc, bx, by, j;136 void hdraw(int16_t *hv, int16_t h) 137 { 138 register int16_t bc, bx, by, j; 139 139 140 140 bx = (h << 4) + 4; … … 168 168 */ 169 169 170 void dsws( short how)170 void dsws(int16_t how) 171 171 { 172 172 register struct instdef *ip; 173 register short *fv, *hv, *ov;174 register short i;175 short cx;173 register int16_t *fv, *hv, *ov; 174 register int16_t i; 175 int16_t cx; 176 176 177 177 cx = exp_c(wdbox[0][0]); … … 221 221 */ 222 222 223 void wdswin( short n)224 { 225 register short cx, wval;226 register charwsgn;223 void wdswin(int16_t n) 224 { 225 register int16_t cx, wval; 226 register int8_t wsgn; 227 227 228 228 cx = wdbox[n][5]; … … 373 373 void wwins(void) 374 374 { 375 register short i;375 register int16_t i; 376 376 377 377 for (i = 0; i < 6; i++) … … 385 385 */ 386 386 387 void wdpoint( short x, short y, short pen)387 void wdpoint(int16_t x, int16_t y, int16_t pen) 388 388 { 389 389 if (v_regs[5] & 0x0180) … … 473 473 void iniwslb(void) 474 474 { 475 register short i, j;475 register int16_t i, j; 476 476 477 477 memsetw(wsnmod, FALSE, (sizeof wsnmod) / 2);
Note:
See TracChangeset
for help on using the changeset viewer.