Changeset 3fcb810 in buchla-68k


Ignore:
Timestamp:
11/12/2017 07:30:49 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
5289d7c
Parents:
26553e2
Message:

Fixed scordsp.c.

Location:
ram
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ram/scordsp.c

    r26553e2 r3fcb810  
    1515};
    1616
    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 */
     17uint16_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 */
    2222};
    2323
    24 int8_t  nsvtab[] = {            /* note value modifier (accidental) table */
     24int8_t          nsvtab[] = {            /* note value modifier (accidental) table */
    2525
    2626        0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1,     /*  21 ..  32 -- A0 .. G#0 */
     
    3434};
    3535
    36 int16_t scorpal[16][3] = {              /* score palette */
     36int16_t         scorpal[16][3] = {      /* score palette */
    3737
    3838        {0, 0, 0},      /*  0 - black */
     
    5454};
    5555
    56 int8_t  *clklbl[] = {   /* clock control and scource labels */
     56int8_t          *clklbl[] = {           /* clock control and scource labels */
    5757
    5858        "Local",        /* 0 - CK_LOCAL */
     
    6565};
    6666
    67 int8_t  *sdisp[] = {    /* score display fixed text strings */
     67int8_t          *sdisp[] = {            /* score display fixed text strings */
    6868
    6969        /* 0 */         "\230\231\232\233     ",        /* Interpolate */
     
    100100*/
    101101
    102 void makeln(uint16_t lnc, uint16_t lew)
     102void makeln(int16_t lnc, int16_t lew2)
    103103{
    104104        volatile uint16_t *lp, *cp;
    105105        int16_t i;
    106         uint16_t lbg;
     106        uint16_t lew, lbg;
    107107
    108108        lp = obj15;                     /* setup line object pointer */
    109109        cp = consl;                     /* setup constant slice pointer */
    110110
    111         lew = exp_c(lew);               /* create ledger line constant */
     111        lew = exp_c(lew2);              /* create ledger line constant */
    112112
    113113        lnc &= 0x000F;                  /* mask cursor line color */
     
    146146                        *lp++ = lbg & 0xFFF0;
    147147                        *lp++ = lbg;
    148                         *lp++ = (lbg & 0xFFF0) | lnc;
     148                        *lp++ = (lbg & 0xFFF0) | (uint16_t)lnc;
    149149                        *lp++ = lbg;
    150150                }
     
    289289        for (i = 0; i < 6; i++) {
    290290
    291                 buf[0] = '0' + anrs[i][abs(angroup) - 1];
     291                buf[0] = (int8_t)('0' + anrs[i][abs(angroup) - 1]);
    292292                vputs(obj8, 7, 6 + (i * 9), buf, SDW12ATR);
    293293        }
     
    443443        curfr = t_ctr;
    444444        beat  = curfr / 48;
    445         frame = curfr % 48;
     445        frame = (int16_t)(curfr % 48);
    446446
    447447        sprintf(bfs, "%05ld F %02d", beat, frame);
     
    507507                vbank(0);
    508508
    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));
    511511}
    512512
     
    657657void sdwin(int16_t n)
    658658{
    659         int16_t atrib, i;
     659        uint16_t atrib;
     660        int16_t i;
    660661
    661662        if (ndisp NE 2)                 /* only if score is selected */
  • ram/scordsp.x

    r26553e2 r3fcb810  
    1919extern  int16_t         scorpal[16][3];
    2020extern  int8_t          *sdisp[];
    21 extern  int16_t         simled[3];
     21extern  uint16_t        simled[3];
    2222extern  int16_t         var2src[6];
    2323
     
    4848extern  void            dssect(void);
    4949extern  void            dsvmode(int16_t n);
    50 extern  void            makeln(uint16_t lnc, uint16_t lew);
     50extern  void            makeln(int16_t lnc, int16_t lew);
    5151extern  void            sdsetup(void);
    5252extern  void            sdwin(int16_t n);
Note: See TracChangeset for help on using the changeset viewer.