Changeset b2691c2 in buchla-68k
- Timestamp:
- 11/12/2017 08:39:18 PM (7 years ago)
- Branches:
- master
- Children:
- ffce2bc
- Parents:
- 6d5247b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/wsdsp.c
r6d5247b rb2691c2 85 85 register int16_t *fv, *hv, *ov; 86 86 register int16_t i; 87 int16_t cx;87 uint16_t cx; 88 88 89 89 cx = exp_c(wdbox[0][0]); … … 131 131 void wdswin(int16_t n) 132 132 { 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]); 139 138 140 139 /* first, fill the box with the background color */ … … 166 165 sprintf(bfs, "%02d", curwave + 1); 167 166 tsplot4(waveob, 64, 168 exp_c(wsnmod[curvce][curwslt] ? WS_CHGC : wdbox[n][4]),167 wsnmod[curvce][curwslt] ? WS_CHGC : wdbox[n][4], 169 168 wdbox[n][6], wdbox[n][7] + WAVE_OFF, bfs, 14); 170 169 … … 367 366 for (j = 0; j < NUMWPNT; j++) { 368 367 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; 371 370 } 372 371
Note:
See TracChangeset
for help on using the changeset viewer.