Changeset 7c5def4 in buchla-68k for ram


Ignore:
Timestamp:
11/15/2017 06:13:13 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
72741f4
Parents:
2ff1367
Message:

Minor fixes and cleanups.

Location:
ram
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ram/barbadj.c

    r2ff1367 r7c5def4  
    159159
    160160                while (barpos++ LE newbar)      /* write new dots */
    161                         LCD_WD = (uint8_t)bardot;
     161                        LCD_WD = bardot;
    162162
    163163                while (barpos++ < BTop)         /* erase old dots */
  • ram/im700.c

    r2ff1367 r7c5def4  
    597597        memset(keystat, 0, 24);         /* clear front panel key status */
    598598        memset(trgtab,  0, NTRIGS);     /* clear trigger status table */
    599         memset(mctlval, 0, 2 * NCTRLS); /* clear MIDI controller values */
     599        memsetw(mctlval, 0, NCTRLS);    /* clear MIDI controller values */
    600600
    601601        memsetw(grpmode, 0, 12);        /* set all groups to PLAY */
  • ram/instdsp.c

    r2ff1367 r7c5def4  
    431431*/
    432432
    433 void pltws(uint16_t ws[], int16_t pen)
     433void pltws(int16_t ws[], int16_t pen)
    434434{
    435435        register int16_t i, x, y;
     
    438438
    439439                x = 382 + (i >> 1);
    440                 y = 348 - (int16_t)((ws[i] ^ 0x8000) / 676);
     440                y = 348 - (int16_t)(((uint16_t)ws[i] ^ 0x8000) / 676);
    441441
    442442                idpoint(x, y, pen);
  • ram/instdsp.x

    r2ff1367 r7c5def4  
    4545extern  int16_t         irand(int16_t range);
    4646extern  void            oscdsp(int16_t row, int16_t val, int16_t n, int8_t *lbl, int16_t frq);
    47 extern  void            pltws(uint16_t ws[], int16_t pen);
     47extern  void            pltws(int16_t ws[], int16_t pen);
    4848extern  void            reshowi(void);
    4949extern  int16_t         xgetran(int16_t mlt);
  • ram/showcfg.c

    r2ff1367 r7c5def4  
    368368void dispws(int16_t ws)
    369369{
    370         register uint16_t *wsp;
     370        register int16_t *wsp;
    371371        register int16_t i, x, y;
    372372        int8_t buf[64];
     
    385385
    386386                x = LftEdge + (i >> 1);
    387                 y = BotEdge - (int16_t)((wsp[i] ^ 0x8000) / 676);
     387                y = BotEdge - (int16_t)(((uint16_t)wsp[i] ^ 0x8000) / 676);
    388388
    389389                idpoint(x, y, WSBFC);
  • ram/tundsp.c

    r2ff1367 r7c5def4  
    340340        bfs[0] = (int8_t)(bfs[0] + '0');
    341341        bfs[1] = (int8_t)(bfs[1] + 'A');
    342         bfs[2] = (int8_t)(bfs[2] + sfdsp[bfs[2] - 7]);
     342        bfs[2] = sfdsp[bfs[2] - 7];
    343343        bfs[3] = (int8_t)(bfs[3] + '0');
    344344        bfs[4] = (int8_t)(bfs[4] + '0');
Note: See TracChangeset for help on using the changeset viewer.