Changeset f537c48 in buchla-68k for ram


Ignore:
Timestamp:
11/12/2017 03:48:02 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
6f49665
Parents:
5c977dd
git-author:
Thomas Lopatic <thomas@…> (11/12/2017 03:47:58 PM)
git-committer:
Thomas Lopatic <thomas@…> (11/12/2017 03:48:02 PM)
Message:

Cleanup.

Location:
ram
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ram/etadyn.c

    r5c977dd rf537c48  
    4747        g = grp + 1;
    4848
    49         fpmant = (uint16_t)((((int32_t)curintp & 0x0000FFF0L) *
    50                   ((int32_t)timemlt & 0x0000FFFFL)) >> 15);
     49        fpmant = (uint16_t)(((uint32_t)(curintp & 0xFFF0) *
     50                  (uint32_t)timemlt) >> 15);
    5151
    5252        fpexp = expbit[curintp & 0x000F];
  • ram/etiosc.c

    r5c977dd rf537c48  
    7575        cv -= 160;
    7676        buf[0] = (int8_t)(cv / 1200);
    77         rem = (int8_t)(cv - (buf[0] * 1200));
     77        rem = cv - (buf[0] * 1200);
    7878        tmp = rem / 100;
    7979        rem -= (tmp * 100);
  • ram/ptselbx.c

    r5c977dd rf537c48  
    5858struct patch    ptebuf;         /* pte buffer -- patch table format */
    5959
    60 int8_t  ptdebuf[50];            /* patch edit buffer */
    61 
    62 int8_t  *rawdfst[] = {          /* def/stm field initial contents */
     60int8_t          ptdebuf[50];    /* patch edit buffer */
     61
     62int8_t          *rawdfst[] = {          /* def/stm field initial contents */
    6363
    6464        "Key 001 1 01",
     
    6868};
    6969
    70 int8_t  *rawdest[] = {          /* destination field initial contents */
     70int8_t          *rawdest[] = {          /* destination field initial contents */
    7171
    7272        "??????? 00 ??",        /* ??????       00 */
     
    9999};
    100100
    101 int8_t  *rawmode[] = { "Frq ",  "Pch ",   "Int ",  "Rat " };    /* oscillator modes */
    102 int8_t  *rawmdat[] = { "00.1 ", "0C 00",  "+0000", "1/1  " };   /* oscillator data */
    103 
    104 int16_t omtabl[]   = { PSO_FRQ, PSO_PCH, PSO_INT, PSO_RAT };    /* oscillator modes */
    105 int16_t omdtab[]   = { 2,       320,     0,       0       };    /* oscillator data */
    106 int16_t omftab[]   = { 6,       7,       4,       5       };    /* mode data format */
    107 
    108 int8_t  *rawfpud[] = { "PchWh", "+0.00", "00001", "\2400.00", "Start" };
    109 
    110 int16_t fpudtab[]  = { SM_HTPW,       0,          1,       0,       1 };
    111 int16_t fpuetab[]  = {      11,       1,          2,       3,       9 };
     101int8_t          *rawmode[] = { "Frq ",  "Pch ",   "Int ",  "Rat " };    /* oscillator modes */
     102int8_t          *rawmdat[] = { "00.1 ", "0C 00",  "+0000", "1/1  " };   /* oscillator data */
     103
     104uint16_t        omtabl[]   = { PSO_FRQ, PSO_PCH, PSO_INT, PSO_RAT };    /* oscillator modes */
     105uint16_t        omdtab[]   = { 2,       320,     0,       0       };    /* oscillator data */
     106int16_t         omftab[]   = { 6,       7,       4,       5       };    /* mode data format */
     107
     108int8_t          *rawfpud[] = { "PchWh", "+0.00", "00001", "\2400.00", "Start" };
     109
     110uint16_t        fpudtab[]  = { SM_HTPW,       0,          1,       0,       1 };
     111int16_t         fpuetab[]  = {      11,       1,          2,       3,       9 };
    112112
    113113uint16_t        dfsttab[] = { 0x0000, 0x8000, 0x1100, 0x1180 };
    114114
    115 int16_t defcols[] = {  2,  6,  7,  8};  /* def data entry columns */
    116 int16_t stmcols[] = { 15, 19, 20, 21};  /* stm data entry columns */
    117 
    118 int16_t dstcols[] = {                   /* destination data entry columns */
     115int16_t         defcols[] = {  2,  6,  7,  8};  /* def data entry columns */
     116int16_t         stmcols[] = { 15, 19, 20, 21};  /* stm data entry columns */
     117
     118int16_t         dstcols[] = {                   /* destination data entry columns */
    119119
    120120/*      -1,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10  */
     
    122122};
    123123
    124 int16_t dfsttp[] = { 1,  1,  2,  3 };   /* def/stm formats */
    125 
    126 int16_t datasrc[] = {
     124int16_t         dfsttp[] = { 1,  1,  2,  3 };   /* def/stm formats */
     125
     126uint16_t        datasrc[] = {
    127127
    128128        SM_HTPW,  SM_VTMW,  SM_LPBR,  SM_PED1,  SM_CTL1,
     
    130130};
    131131
    132 int16_t destype[] = {                   /* destination type table */
     132int16_t         destype[] = {                   /* destination type table */
    133133
    134134        PA_KEY,         -1,             PA_TRG,         PA_PLS,         PA_LED,
     
    143143};
    144144
    145 int8_t  destfmt[] = {           /* destination data entry format table */
     145int8_t          destfmt[] = {           /* destination data entry format table */
    146146
    147147         0,     -1,      1,      2,      3,     /*  1 ..  5 */
     
    153153};
    154154
    155 int8_t  datafmt[] = {           /* datum data entry format table */
     155int8_t          datafmt[] = {           /* datum data entry format table */
    156156
    157157        8,              -1,             9,              8,              14,
     
    163163};
    164164
    165 int8_t  desdatf[] = {           /* data entry default flags */
     165int8_t          desdatf[] = {           /* data entry default flags */
    166166
    167167        2,              0,              2,              2,              1,
     
    173173};
    174174
    175 int16_t desdat1[] = {           /* data word 1 defaults */
     175uint16_t        desdat1[] = {           /* data word 1 defaults */
    176176
    177177        0,              0,              0,              0,              0,
     
    183183};
    184184
    185 int16_t desdat2[] = {           /* data word 2 defaults */
     185uint16_t        desdat2[] = {           /* data word 2 defaults */
    186186
    187187        0,              0,              1,              0,              0,
     
    193193};
    194194
    195 int8_t  *rawdata[] = {
     195int8_t          *rawdata[] = {
    196196
    197197        "Trans",        "     ",        "Start",        "Trans",        "000  ",
     
    203203};
    204204
    205 int8_t  hilitab[][8] = {                /* submenu highlight table */
     205int8_t          hilitab[][8] = {                /* submenu highlight table */
    206206
    207207        /* start, width, row1, row2, row3, row4, row5, pad */
     
    12121212                                ptbflag = TRUE;
    12131213
    1214                                 ptedat2 = (uint16_t)datasrc[box - 36];
     1214                                ptedat2 = datasrc[box - 36];
    12151215
    12161216                                strcpy(&ptdebuf[42], smdata[ptedat2]);
     
    12451245
    12461246                                        if (ptd & 1)
    1247                                                 ptedat1 = (uint16_t)desdat1[i];
     1247                                                ptedat1 = desdat1[i];
    12481248
    12491249                                        if (ptd & 2)
    1250                                                 ptedat2 = (uint16_t)desdat2[i];
     1250                                                ptedat2 = desdat2[i];
    12511251                                }
    12521252
     
    12731273                                ptbflag = TRUE;
    12741274
    1275                                 ptedat1 = (uint16_t)omtabl[i];
    1276                                 ptedat2 = (uint16_t)omdtab[i];
     1275                                ptedat1 = omtabl[i];
     1276                                ptedat2 = omdtab[i];
    12771277
    12781278                                ptedata = omftab[i];
  • ram/ptselbx.x

    r5c977dd rf537c48  
    1818
    1919extern  int8_t          datafmt[];
    20 extern  int16_t         datasrc[];
     20extern  uint16_t        datasrc[];
    2121extern  int16_t         defcols[];
    22 extern  int16_t         desdat1[];
    23 extern  int16_t         desdat2[];
     22extern  uint16_t        desdat1[];
     23extern  uint16_t        desdat2[];
    2424extern  int8_t          desdatf[];
    2525extern  int8_t          destfmt[];
     
    2828extern  int16_t         dfsttp[];
    2929extern  int16_t         dstcols[];
    30 extern  int16_t         fpudtab[];
     30extern  uint16_t        fpudtab[];
    3131extern  int16_t         fpuetab[];
    3232extern  int8_t          hilitab[][8];
    33 extern  int16_t         omdtab[];
     33extern  uint16_t        omdtab[];
    3434extern  int16_t         omftab[];
    35 extern  int16_t         omtabl[];
     35extern  uint16_t        omtabl[];
    3636extern  int16_t         ptbflag;
    3737extern  struct  selbox  ptboxes[];
Note: See TracChangeset for help on using the changeset viewer.