Changeset b2691c2 in buchla-68k for ram


Ignore:
Timestamp:
11/12/2017 08:39:18 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
ffce2bc
Parents:
6d5247b
Message:

Fixed wsdsp.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/wsdsp.c

    r6d5247b rb2691c2  
    8585        register int16_t *fv, *hv, *ov;
    8686        register int16_t i;
    87         int16_t cx;
     87        uint16_t cx;
    8888
    8989        cx = exp_c(wdbox[0][0]);
     
    131131void wdswin(int16_t n)
    132132{
    133         register int16_t cx, wval;
    134         register int8_t wsgn;
    135 
    136         cx = wdbox[n][5];
    137         cx |= cx << 4;
    138         cx |= cx << 8;
     133        uint16_t cx;
     134        int16_t wval;
     135        int8_t wsgn;
     136
     137        cx = exp_c(wdbox[n][5]);
    139138
    140139        /* first, fill the box with the background color */
     
    166165                sprintf(bfs, "%02d", curwave + 1);
    167166                tsplot4(waveob, 64,
    168                         exp_c(wsnmod[curvce][curwslt] ? WS_CHGC : wdbox[n][4]),
     167                        wsnmod[curvce][curwslt] ? WS_CHGC : wdbox[n][4],
    169168                        wdbox[n][6], wdbox[n][7] + WAVE_OFF, bfs, 14);
    170169
     
    367366                for (j = 0; j < NUMWPNT; j++) {
    368367
    369                         wslib[i].final[j]  = ((j + 1) << 8) ^ 0x8000;
    370                         wslib[i].offset[j] = ((j + 1) << 8) ^ 0x8000;
     368                        wslib[i].final[j]  = ((j + 1) << 8) ^ (int16_t)0x8000;
     369                        wslib[i].offset[j] = ((j + 1) << 8) ^ (int16_t)0x8000;
    371370                }
    372371
Note: See TracChangeset for help on using the changeset viewer.