Changeset 4b63bf3 in buchla-68k
- Timestamp:
- 11/12/2017 07:48:33 PM (7 years ago)
- Branches:
- master
- Children:
- 7f5fa1b
- Parents:
- 7c05959
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/ettpch.c
r7c05959 r4b63bf3 126 126 cnvc2p(dspbuf, (val >> 1)); 127 127 128 dspbuf[0] += '0';129 dspbuf[1] += 'A';128 dspbuf[0] = (int8_t)(dspbuf[0] + '0'); 129 dspbuf[1] = (int8_t)(dspbuf[1] + 'A'); 130 130 dspbuf[2] = sfdsp[dspbuf[2] - 7]; 131 dspbuf[3] += '0';132 dspbuf[4] += '0';131 dspbuf[3] = (int8_t)(dspbuf[3] + '0'); 132 dspbuf[4] = (int8_t)(dspbuf[4] + '0'); 133 133 dspbuf[5] = '\0'; 134 134 … … 171 171 case 0: 172 172 173 ebuf[0] = k;174 dspbuf[0] = k + '0';173 ebuf[0] = (int8_t)k; 174 dspbuf[0] = (int8_t)(k + '0'); 175 175 break; 176 176 … … 180 180 return(FAILURE); 181 181 182 ebuf[1] = k;183 dspbuf[0] = k + 'A';182 ebuf[1] = (int8_t)k; 183 dspbuf[0] = (int8_t)(k + 'A'); 184 184 break; 185 185 … … 188 188 if (k EQ 7) { /* blank */ 189 189 190 ebuf[2] = k;190 ebuf[2] = (int8_t)k; 191 191 dspbuf[0] = sfdsp[0]; 192 192 break; … … 194 194 } else if (k EQ 8) { /* flat */ 195 195 196 ebuf[2] = k;196 ebuf[2] = (int8_t)k; 197 197 dspbuf[0] = sfdsp[1]; 198 198 break; … … 200 200 } else if (k EQ 9) { /* sharp */ 201 201 202 ebuf[2] = k;202 ebuf[2] = (int8_t)k; 203 203 dspbuf[0] = sfdsp[2]; 204 204 break; … … 210 210 case 4: 211 211 212 ebuf[col] = k;213 dspbuf[0] = k + '0';212 ebuf[col] = (int8_t)k; 213 dspbuf[0] = (int8_t)(k + '0'); 214 214 break; 215 215 }
Note:
See TracChangeset
for help on using the changeset viewer.