Changeset 432327d in buchla-68k for ram/tundsp.c
- Timestamp:
- 09/17/2017 09:27:29 PM (7 years ago)
- Branches:
- master
- Children:
- 6099cac
- Parents:
- 8c8b4e5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/tundsp.c
r8c8b4e5 r432327d 242 242 void td_trcp(int16_t mode) 243 243 { 244 register uint16_t cx;245 246 cx = exp_c(mode ? TDSELD : tdbox[6][4]);244 register int16_t cx; 245 246 cx = mode ? TDSELD : tdbox[6][4]; 247 247 vbank(0); 248 248 vcputsv(tunob, 64, cx, tdbox[6][5], 9, 54, "Transpose", 14); … … 258 258 void td_incr(int16_t mode) 259 259 { 260 register uint16_t cx;261 262 cx = exp_c(mode ? TDSELD : tdbox[6][4]);260 register int16_t cx; 261 262 cx = mode ? TDSELD : tdbox[6][4]; 263 263 vbank(0); 264 264 vcputsv(tunob, 64, cx, tdbox[6][5], 12, 54, "Increment", 14); … … 273 273 void td_intp(int16_t mode) 274 274 { 275 register uint16_t cx;276 277 cx = exp_c(mode ? TDSELD : tdbox[6][4]);275 register int16_t cx; 276 277 cx = mode ? TDSELD : tdbox[6][4]; 278 278 vbank(0); 279 279 vcputsv(tunob, 64, cx, tdbox[6][5], 14, 54, "Intrpolat", 14); … … 334 334 */ 335 335 336 void dsttval(int16_t row, int16_t col, int16_t val, uint16_t fg, uint16_t bg) 337 { 338 register uint16_t cfg, cbg; 339 340 cfg = exp_c(fg); 341 cbg = exp_c(bg); 342 336 void dsttval(int16_t row, int16_t col, int16_t val, int16_t fg, int16_t bg) 337 { 343 338 cnvc2p(bfs, (val >> 1)); 344 339 345 bfs[0] += '0';346 bfs[1] += 'A';347 bfs[2] = sfdsp[bfs[2] - 7];348 bfs[3] += '0';349 bfs[4] += '0';340 bfs[0] = (int8_t)(bfs[0] + '0'); 341 bfs[1] = (int8_t)(bfs[1] + 'A'); 342 bfs[2] = (int8_t)(bfs[2] + sfdsp[bfs[2] - 7]); 343 bfs[3] = (int8_t)(bfs[3] + '0'); 344 bfs[4] = (int8_t)(bfs[4] + '0'); 350 345 bfs[5] = '\0'; 351 346 352 347 vbank(0); 353 vcputsv(tunob, 64, cfg, cbg, row, col, bfs, 14);348 vcputsv(tunob, 64, fg, bg, row, col, bfs, 14); 354 349 } 355 350 … … 362 357 void tdswin(int16_t n) 363 358 { 364 register int16_t cx, i, tv; 359 uint16_t cx; 360 int16_t i, tv; 365 361 int8_t ts; 366 362 … … 476 472 477 473 tsplot4(tunob, 64, tdbox[n][4], 24, 54, "Table #", 14); 478 bfs[0] = curtun + '0';474 bfs[0] = (int8_t)(curtun + '0'); 479 475 bfs[1] = '\0'; 480 476 tsplot4(tunob, 64, tunmod ? TDCHGD : tdbox[n][4],
Note:
See TracChangeset
for help on using the changeset viewer.