Changeset 432327d in buchla-68k for ram/tundsp.c


Ignore:
Timestamp:
09/17/2017 09:27:29 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
6099cac
Parents:
8c8b4e5
Message:

Fix conversion warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/tundsp.c

    r8c8b4e5 r432327d  
    242242void td_trcp(int16_t mode)
    243243{
    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];
    247247        vbank(0);
    248248        vcputsv(tunob, 64, cx, tdbox[6][5],  9, 54, "Transpose", 14);
     
    258258void td_incr(int16_t mode)
    259259{
    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];
    263263        vbank(0);
    264264        vcputsv(tunob, 64, cx, tdbox[6][5],  12, 54, "Increment", 14);
     
    273273void td_intp(int16_t mode)
    274274{
    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];
    278278        vbank(0);
    279279        vcputsv(tunob, 64, cx, tdbox[6][5],  14, 54, "Intrpolat", 14);
     
    334334*/
    335335
    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 
     336void dsttval(int16_t row, int16_t col, int16_t val, int16_t fg, int16_t bg)
     337{
    343338        cnvc2p(bfs, (val >> 1));
    344339
    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');
    350345        bfs[5] = '\0';
    351346
    352347        vbank(0);
    353         vcputsv(tunob, 64, cfg, cbg, row, col, bfs, 14);
     348        vcputsv(tunob, 64, fg, bg, row, col, bfs, 14);
    354349}
    355350
     
    362357void tdswin(int16_t n)
    363358{
    364         register int16_t cx, i, tv;
     359        uint16_t cx;
     360        int16_t i, tv;
    365361        int8_t ts;
    366362
     
    476472
    477473                tsplot4(tunob, 64, tdbox[n][4], 24, 54, "Table #", 14);
    478                 bfs[0] = curtun + '0';
     474                bfs[0] = (int8_t)(curtun + '0');
    479475                bfs[1] = '\0';
    480476                tsplot4(tunob, 64, tunmod ? TDCHGD : tdbox[n][4],
Note: See TracChangeset for help on using the changeset viewer.