Changeset 3fcb810 in buchla-68k
- Timestamp:
- 11/12/2017 07:30:49 PM (7 years ago)
- Branches:
- master
- Children:
- 5289d7c
- Parents:
- 26553e2
- Location:
- ram
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/scordsp.c
r26553e2 r3fcb810 15 15 }; 16 16 17 int16_t simled[3] = { /* simulated LED colors for group modes */18 19 0x00A2, /* play mode = green */20 0x0062, /* standby mode = yellow */21 0x0052 /* record mode = red */17 uint16_t simled[3] = { /* simulated LED colors for group modes */ 18 19 0x00A2, /* play mode = green */ 20 0x0062, /* standby mode = yellow */ 21 0x0052 /* record mode = red */ 22 22 }; 23 23 24 int8_t nsvtab[] = { /* note value modifier (accidental) table */24 int8_t nsvtab[] = { /* note value modifier (accidental) table */ 25 25 26 26 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, /* 21 .. 32 -- A0 .. G#0 */ … … 34 34 }; 35 35 36 int16_t scorpal[16][3] = {/* score palette */36 int16_t scorpal[16][3] = { /* score palette */ 37 37 38 38 {0, 0, 0}, /* 0 - black */ … … 54 54 }; 55 55 56 int8_t *clklbl[] = {/* clock control and scource labels */56 int8_t *clklbl[] = { /* clock control and scource labels */ 57 57 58 58 "Local", /* 0 - CK_LOCAL */ … … 65 65 }; 66 66 67 int8_t *sdisp[] = {/* score display fixed text strings */67 int8_t *sdisp[] = { /* score display fixed text strings */ 68 68 69 69 /* 0 */ "\230\231\232\233 ", /* Interpolate */ … … 100 100 */ 101 101 102 void makeln( uint16_t lnc, uint16_t lew)102 void makeln(int16_t lnc, int16_t lew2) 103 103 { 104 104 volatile uint16_t *lp, *cp; 105 105 int16_t i; 106 uint16_t l bg;106 uint16_t lew, lbg; 107 107 108 108 lp = obj15; /* setup line object pointer */ 109 109 cp = consl; /* setup constant slice pointer */ 110 110 111 lew = exp_c(lew ); /* create ledger line constant */111 lew = exp_c(lew2); /* create ledger line constant */ 112 112 113 113 lnc &= 0x000F; /* mask cursor line color */ … … 146 146 *lp++ = lbg & 0xFFF0; 147 147 *lp++ = lbg; 148 *lp++ = (lbg & 0xFFF0) | lnc;148 *lp++ = (lbg & 0xFFF0) | (uint16_t)lnc; 149 149 *lp++ = lbg; 150 150 } … … 289 289 for (i = 0; i < 6; i++) { 290 290 291 buf[0] = '0' + anrs[i][abs(angroup) - 1];291 buf[0] = (int8_t)('0' + anrs[i][abs(angroup) - 1]); 292 292 vputs(obj8, 7, 6 + (i * 9), buf, SDW12ATR); 293 293 } … … 443 443 curfr = t_ctr; 444 444 beat = curfr / 48; 445 frame = curfr % 48;445 frame = (int16_t)(curfr % 48); 446 446 447 447 sprintf(bfs, "%05ld F %02d", beat, frame); … … 507 507 vbank(0); 508 508 509 c = 1 + n + (grpstat[n] ? ((n > 8) ? 162 : '0') : 192);510 vputc(obj8, 2, 5 + (n * 5), c, ( ((n + 3) << 4) | 2));509 c = (int8_t)(1 + n + (grpstat[n] ? ((n > 8) ? 162 : '0') : 192)); 510 vputc(obj8, 2, 5 + (n * 5), c, (uint16_t)(((n + 3) << 4) | 2)); 511 511 } 512 512 … … 657 657 void sdwin(int16_t n) 658 658 { 659 int16_t atrib, i; 659 uint16_t atrib; 660 int16_t i; 660 661 661 662 if (ndisp NE 2) /* only if score is selected */ -
ram/scordsp.x
r26553e2 r3fcb810 19 19 extern int16_t scorpal[16][3]; 20 20 extern int8_t *sdisp[]; 21 extern int16_tsimled[3];21 extern uint16_t simled[3]; 22 22 extern int16_t var2src[6]; 23 23 … … 48 48 extern void dssect(void); 49 49 extern void dsvmode(int16_t n); 50 extern void makeln( uint16_t lnc, uint16_t lew);50 extern void makeln(int16_t lnc, int16_t lew); 51 51 extern void sdsetup(void); 52 52 extern void sdwin(int16_t n);
Note:
See TracChangeset
for help on using the changeset viewer.