- Timestamp:
- 11/11/2017 09:28:42 PM (7 years ago)
- Branches:
- master
- Children:
- 3ac8e1b
- Parents:
- 6099cac
- Location:
- ram
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/lcdlbls.c
r6099cac r494d8ff 616 616 if (ltagged) { /* cancel tag mode */ 617 617 618 dslslot(tagslot, exp_c(LCFBX01), loadrow);618 dslslot(tagslot, LCFBX01, loadrow); 619 619 ltagged = FALSE; 620 620 } -
ram/ldfield.c
r6099cac r494d8ff 158 158 /* select file to delete */ 159 159 160 dslslot(ldslot, exp_c(LD_DELC), ldrow);160 dslslot(ldslot, LD_DELC, ldrow); 161 161 ldelsw = TRUE; 162 162 return; /* SUCCESS */ … … 394 394 ltagged = TRUE; 395 395 396 dslslot(slot, exp_c(LD_SELC), row);396 dslslot(slot, LD_SELC, row); 397 397 return; 398 398 } -
ram/ldselbx.c
r6099cac r494d8ff 224 224 } else { 225 225 226 dslslot(ldslot, exp_c(ldbox[1][4]), ldrow);226 dslslot(ldslot, ldbox[1][4], ldrow); 227 227 } 228 228 } … … 290 290 rc = TRUE; 291 291 ldelsw = FALSE; 292 dslslot(ldslot, exp_c(ldbox[1][4]), ldrow);292 dslslot(ldslot, ldbox[1][4], ldrow); 293 293 } 294 294 … … 746 746 return(ndx_scr(ldslot)); 747 747 748 dslslot(ldslot, exp_c(LD_SELC), ldrow);748 dslslot(ldslot, LD_SELC, ldrow); 749 749 return(SUCCESS); 750 750 } -
ram/libdsp.c
r6099cac r494d8ff 174 174 */ 175 175 176 void ldwmsg(int8_t *line1, int8_t *line2, int8_t *line3, uint16_t fgcolor, uint16_t bgcolor)176 void ldwmsg(int8_t *line1, int8_t *line2, int8_t *line3, int16_t fgcolor, int16_t bgcolor) 177 177 { 178 178 lderrsw = FALSE; /* clear error switch */ … … 183 183 return; 184 184 185 bgcolor = exp_c(bgcolor); /* expand background color */186 fgcolor = exp_c(fgcolor); /* expand foreground color */187 188 185 if (v_regs[5] & 0x0180) 189 186 vbank(0); … … 192 189 193 190 vbfill4(librob, 128, ldbox[10][0], ldbox[10][1], 194 ldbox[10][2], ldbox[10][3], bgcolor);191 ldbox[10][2], ldbox[10][3], exp_c(bgcolor)); 195 192 196 193 if ((int8_t *)NULL NE line1) … … 413 410 clmask = _thebpb->clsizb - 1; 414 411 415 rclusts = ( bytes / _thebpb->clsizb)412 rclusts = (int16_t)(bytes / _thebpb->clsizb) 416 413 + ((bytes & clmask) ? 1 : 0); 417 414 … … 436 433 case FT_ASG: /* Assignment file */ 437 434 438 k = (sizeof (struct asgent) * (int32_t)NASGLIB) + LH_LEN;435 k = (sizeof (struct asgent) * (int32_t)NASGLIB) + (int32_t)LH_LEN; 439 436 break; 440 437 … … 443 440 case FT_ORC: 444 441 445 k = ((OR_LEN1 + (2 * OR_LEN2)) * (int32_t)NINORC) + LH_LEN;442 k = ((OR_LEN1 + (2 * OR_LEN2)) * (int32_t)NINORC) + (int32_t)LH_LEN; 446 443 break; 447 444 448 445 case FT_PAT: /* Patch file */ 449 446 450 k = ptsizer() + LH_LEN;447 k = ptsizer() + (int32_t)LH_LEN; 451 448 break; 452 449 453 450 case FT_SCR: /* Score file */ 454 451 455 k = scsizer() + LH_LEN;452 k = scsizer() + (int32_t)LH_LEN; 456 453 break; 457 454 458 455 case FT_SEQ: /* Sequence file */ 459 456 460 k = sqsizer() + LH_LEN;457 k = sqsizer() + (int32_t)LH_LEN; 461 458 break; 462 459 463 460 case FT_TUN: /* Tuning file */ 464 461 465 k = (NTUNSLIB * 256L) + (NTUNSLIB * 32L) + LH_LEN;462 k = (NTUNSLIB * 256L) + (NTUNSLIB * 32L) + (int32_t)LH_LEN; 466 463 break; 467 464 468 465 case FT_WAV: /* Waveshape file */ 469 466 470 k = ((int32_t)NUMWAVS * OR_LEN2) + LH_LEN;467 k = ((int32_t)NUMWAVS * OR_LEN2) + (int32_t)LH_LEN; 471 468 break; 472 469 … … 746 743 */ 747 744 748 void dslslot(int16_t slot, uint16_t fg, int16_t row)749 { 750 register uint16_t color, chilon, chilorc;745 void dslslot(int16_t slot, int16_t fg, int16_t row) 746 { 747 int16_t color, chilon, chilorc; 751 748 int16_t c; 752 749 int8_t buf[40]; … … 755 752 return; 756 753 757 color = exp_c(fg); /* foreground color */758 chilon = exp_c(ldbox[1][4]);759 chilorc = exp_c(HILORC);754 color = fg; /* foreground color */ 755 chilon = ldbox[1][4]; 756 chilorc = HILORC; 760 757 761 758 /* file type */ … … 798 795 int16_t showcat(void) 799 796 { 800 register int16_t fcslot, fcrow, fcount; 801 register uint16_t color; 797 int16_t fcslot, fcrow, fcount; 798 uint16_t bg; 799 int16_t fg; 802 800 803 801 if (ndisp NE 0) … … 806 804 ldswin(0); /* fix up the title */ 807 805 808 color= exp_c(ldbox[1][5]); /* background color */806 bg = exp_c(ldbox[1][5]); /* background color */ 809 807 810 808 if (v_regs[5] & 0x0180) … … 812 810 813 811 vbfill4(librob, 128, ldbox[1][0], ldbox[1][1], 814 ldbox[1][2], ldbox[1][3], color);815 816 color= ldbox[1][4]; /* foreground color */812 ldbox[1][2], ldbox[1][3], bg); 813 814 fg = ldbox[1][4]; /* foreground color */ 817 815 818 816 fcrow = 1; … … 823 821 if (ocslot(fcslot)) { 824 822 825 dslslot(fcslot, color, fcrow);823 dslslot(fcslot, fg, fcrow); 826 824 fcrow++; 827 825 fcount++; … … 1295 1293 void ldswin(int16_t n) 1296 1294 { 1297 register int16_t cx, cy; 1295 uint16_t cx; 1296 int16_t cy; 1298 1297 1299 1298 if (ndisp NE 0) … … 1352 1351 1353 1352 if (lrasw) 1354 cy = exp_c(LD_SELC);1353 cy = LD_SELC; 1355 1354 else 1356 1355 cy = ldbox[n][4]; … … 1370 1369 (ldkind EQ FT_ORL) OR 1371 1370 (ldkind EQ FT_ORH)) 1372 cy = exp_c(LD_SELC);1371 cy = LD_SELC; 1373 1372 else 1374 1373 cy = ldbox[n][4]; … … 1386 1385 case 9: /* "Store" status */ 1387 1386 1388 cy = exp_c(lstrsw ? LD_SELC : ldbox[n][4]);1387 cy = lstrsw ? LD_SELC : ldbox[n][4]; 1389 1388 tsplot4(librob, 64, cy, 22, 10, "Store", 14); 1390 1389 1391 cy = exp_c(lscrsw ? LD_SELC : ldbox[n][4]);1390 cy = lscrsw ? LD_SELC : ldbox[n][4]; 1392 1391 tsplot4(librob, 64, cy, 22, 17, "Score", 14); 1393 1392 1394 cy = exp_c(lorchsw ? LD_SELC : ldbox[n][4]);1393 cy = lorchsw ? LD_SELC : ldbox[n][4]; 1395 1394 tsplot4(librob, 64, cy, 22, 24, "Hi Orch", 14); 1396 1395 1397 1396 1398 cy = exp_c(lwavsw ? LD_SELC : ldbox[n][4]);1397 cy = lwavsw ? LD_SELC : ldbox[n][4]; 1399 1398 tsplot4(librob, 64, cy, 23, 10, "Waves", 14); 1400 1399 1401 cy = exp_c(lpatsw ? LD_SELC : ldbox[n][4]);1400 cy = lpatsw ? LD_SELC : ldbox[n][4]; 1402 1401 tsplot4(librob, 64, cy, 23, 17, "Patch", 14); 1403 1402 1404 cy = exp_c(lorclsw ? LD_SELC : ldbox[n][4]);1403 cy = lorclsw ? LD_SELC : ldbox[n][4]; 1405 1404 tsplot4(librob, 64, cy, 23, 24, "Lo Orch", 14); 1406 1405 1407 1406 1408 cy = exp_c(lasgsw ? LD_SELC : ldbox[n][4]);1407 cy = lasgsw ? LD_SELC : ldbox[n][4]; 1409 1408 tsplot4(librob, 64, cy, 24, 10, "Assgn", 14); 1410 1409 1411 cy = exp_c(lseqsw ? LD_SELC : ldbox[n][4]);1410 cy = lseqsw ? LD_SELC : ldbox[n][4]; 1412 1411 tsplot4(librob, 64, cy, 24, 17, "Seqnc", 14); 1413 1412 1414 cy = exp_c(ltunsw ? LD_SELC : ldbox[n][4]);1413 cy = ltunsw ? LD_SELC : ldbox[n][4]; 1415 1414 tsplot4(librob, 64, cy, 24, 24, "Tunings", 14); 1416 1415 … … 1452 1451 vbank(0); 1453 1452 1454 vputp(ldoct, x, y, exp_c(pen));1453 vputp(ldoct, x, y, pen); 1455 1454 } 1456 1455 -
ram/libdsp.x
r6099cac r494d8ff 34 34 extern void clrcat(void); 35 35 extern int16_t clreq(int32_t bytes); 36 extern void dslslot(int16_t slot, uint16_t fg, int16_t row);36 extern void dslslot(int16_t slot, int16_t fg, int16_t row); 37 37 extern uint16_t exp_c(int16_t c); 38 38 extern int16_t fcindex(void); … … 47 47 extern void ldpoint(int16_t x, int16_t y, int16_t pen); 48 48 extern void ldswin(int16_t n); 49 extern void ldwmsg(int8_t *line1, int8_t *line2, int8_t *line3, uint16_t fgcolor, uint16_t bgcolor);49 extern void ldwmsg(int8_t *line1, int8_t *line2, int8_t *line3, int16_t fgcolor, int16_t bgcolor); 50 50 extern void libdsp(void); 51 51 extern int16_t lin2slt(int16_t line);
Note:
See TracChangeset
for help on using the changeset viewer.