Changeset 60288f5 in buchla-68k for ram/scselbx.c
- Timestamp:
- 07/09/2017 12:23:40 AM (7 years ago)
- Branches:
- master
- Children:
- 6dd74a9
- Parents:
- 0c834c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/scselbx.c
r0c834c5 r60288f5 30 30 /* functions defined elsewhere */ 31 31 32 extern void enterit(void);32 extern short entbh(short n); 33 33 extern void advscur(void); 34 34 extern short oktode(struct s_entry *ep); 35 extern shortnokey(void);35 extern void nokey(void); 36 36 37 37 /* … … 105 105 extern unsigned *obj8, *obj11; 106 106 107 extern PFS(*swpt)[];108 extern PFS(*oldsw)[];109 extern PFSt_ngrp[];107 extern LPF (*swpt)[]; 108 extern LPF (*oldsw)[]; 109 extern LPF t_ngrp[]; 110 110 111 111 extern char bfs[]; … … 116 116 /* forward references */ 117 117 118 voidsdboxfn(short n);118 short sdboxfn(short n); 119 119 void bspscur(void); 120 120 void svtdsp(unsigned *obj, unsigned fg, unsigned bg, short row, short col, char *buf); … … 225 225 { 0, 238, 111, 251, 4, sdboxfn}, /* 4 - Assignment */ 226 226 {112, 238, 167, 251, 5, sdboxfn}, /* 5 - Tune */ 227 {168, 238, 247, 251, 6, ent erit}, /* 6 - Tempo */228 {248, 238, 319, 251, 7, ent erit}, /* 7 - Interpolate */227 {168, 238, 247, 251, 6, entbh}, /* 6 - Tempo */ 228 {248, 238, 319, 251, 7, entbh}, /* 7 - Interpolate */ 229 229 {320, 238, 398, 251, 8, sdboxfn}, /* 8 - Stop/Next */ 230 230 {400, 238, 455, 251, 9, sdboxfn}, /* 9 - In/Out */ … … 1232 1232 */ 1233 1233 1234 voidsdboxfn(short n)1234 short sdboxfn(short n) 1235 1235 { 1236 1236 register short row, col, grp, what, i; … … 1248 1248 1249 1249 if (clkrun) /* clock can't be running */ 1250 return ;1250 return(FAILURE); 1251 1251 1252 1252 if (ac_code EQ N_SHARP) … … 1256 1256 1257 1257 sc_refr(fc_val); 1258 return ;1258 return(SUCCESS); 1259 1259 1260 1260 } else if ((col GE 2) AND (col LE 4)) { /* section menu */ 1261 1261 1262 1262 if (clkrun) /* clock can't be running */ 1263 return ;1263 return(FAILURE); 1264 1264 1265 1265 if (sdmctl EQ -1) { /* menu not up yet */ 1266 1266 1267 1267 sdmenu(4); /* put up the menu */ 1268 return ;1268 return(SUCCESS); 1269 1269 /* 1270 1270 … … 1278 1278 1279 1279 hilitop(SOP_GO); 1280 return ;1280 return(SUCCESS); 1281 1281 1282 1282 } else if ((vtccol GE 8) AND … … 1284 1284 1285 1285 hilitop(SOP_MOV); 1286 return ;1286 return(SUCCESS); 1287 1287 1288 1288 } else if ((vtccol GE 15) AND … … 1290 1290 1291 1291 hilitop(SOP_STC); 1292 return ;1292 return(SUCCESS); 1293 1293 1294 1294 } else if ((vtccol GE 24) AND … … 1301 1301 } 1302 1302 1303 return ;1303 return(SUCCESS); 1304 1304 } 1305 1305 /* … … 1312 1312 1313 1313 hilitop(SOP_BGN); 1314 return ;1314 return(SUCCESS); 1315 1315 1316 1316 } else if ((vtccol GE 8) AND … … 1318 1318 1319 1319 hilitop(SOP_CPY); 1320 return ;1320 return(SUCCESS); 1321 1321 1322 1322 } else if ((vtccol GE 15) AND … … 1324 1324 1325 1325 hilitop(SOP_DGR); 1326 return ;1326 return(SUCCESS); 1327 1327 1328 1328 } else if ((vtccol GE 24) AND … … 1335 1335 } 1336 1336 1337 return ;1337 return(SUCCESS); 1338 1338 } 1339 1339 /* … … 1346 1346 1347 1347 hilitop(SOP_END); 1348 return ;1348 return(SUCCESS); 1349 1349 1350 1350 } else if ((vtccol GE 8) AND … … 1352 1352 1353 1353 hilitop(SOP_MRG); 1354 return ;1354 return(SUCCESS); 1355 1355 1356 1356 } else if ((vtccol GE 15) AND … … 1358 1358 1359 1359 hilitop(SOP_DEV); 1360 return ;1360 return(SUCCESS); 1361 1361 } 1362 1362 … … 1370 1370 1371 1371 hilitop(SOP_GRP); 1372 return ;1372 return(SUCCESS); 1373 1373 1374 1374 } else if ((vtccol GE 15) AND … … 1376 1376 1377 1377 hilitop(SOP_RMV); 1378 return ;1378 return(SUCCESS); 1379 1379 1380 1380 } else if ((vtccol GE 28) AND … … 1387 1387 dsgtmn(gtmsel, TRUE); 1388 1388 1389 return ;1389 return(SUCCESS); 1390 1390 } 1391 1391 … … 1397 1397 secop = SOP_NUL; 1398 1398 sdmenu(-1); 1399 return ;1399 return(SUCCESS); 1400 1400 1401 1401 } else if ((vtccol GE 22) AND 1402 1402 (vtccol LE 24)) { /* Transpose */ 1403 1403 1404 enterit(); 1405 return; 1404 return(entbh(-1)); 1406 1405 } 1407 1406 } 1408 1407 } 1409 1408 1410 return; 1411 1412 } else { 1413 enterit(); 1414 return; 1415 } 1409 return(FAILURE); 1410 1411 } else 1412 return(entbh(-1)); 1416 1413 1417 1414 /* … … 1431 1428 1432 1429 dsimode(); /* update insert mode display */ 1433 return ;1430 return(SUCCESS); 1434 1431 1435 1432 case 2: /* clock control, source */ … … 1439 1436 clkset(NOT clkrun); 1440 1437 dsclk(); 1441 return ;1438 return(SUCCESS); 1442 1439 1443 1440 /* … … 1449 1446 1450 1447 sdmenu(3); 1451 return ;1448 return(SUCCESS); 1452 1449 1453 1450 } else { /* menu up */ … … 1461 1458 sdmenu(-1); 1462 1459 sdwin(2); 1463 return ;1460 return(SUCCESS); 1464 1461 } 1465 1462 … … 1472 1469 sdmenu(-1); 1473 1470 sdwin(2); 1474 return ;1471 return(SUCCESS); 1475 1472 } 1476 1473 … … 1483 1480 sdmenu(-1); 1484 1481 sdwin(2); 1485 return ;1482 return(SUCCESS); 1486 1483 } 1487 1484 } 1488 1485 } 1489 1486 1490 return ;1487 return(FAILURE); 1491 1488 /* 1492 1489 … … 1498 1495 sdmenu(2); 1499 1496 setleds(); 1500 return ;1497 return(SUCCESS); 1501 1498 1502 1499 } else { /* menu up */ … … 1512 1509 sdmenu(-1); 1513 1510 sdwin(2); 1514 return ;1511 return(SUCCESS); 1515 1512 1516 1513 } else if ((vtccol GE 9) AND … … 1522 1519 sdmenu(-1); 1523 1520 sdwin(2); 1524 return ;1521 return(SUCCESS); 1525 1522 1526 1523 } else if ((vtccol GE 17) AND … … 1533 1530 sdmenu(-1); 1534 1531 sdwin(2); 1535 return ;1532 return(SUCCESS); 1536 1533 } 1537 1534 … … 1549 1546 sdmenu(-1); 1550 1547 sdwin(2); 1551 return ;1548 return(SUCCESS); 1552 1549 1553 1550 } else if ((vtccol GE 9) AND … … 1559 1556 sdmenu(-1); 1560 1557 sdwin(2); 1561 return ;1558 return(SUCCESS); 1562 1559 } 1563 1560 /* … … 1574 1571 sdmenu(-1); 1575 1572 sdwin(2); 1576 return ;1573 return(SUCCESS); 1577 1574 1578 1575 } else if ((vtccol GE 9) AND … … 1584 1581 sdmenu(-1); 1585 1582 sdwin(2); 1586 return ;1583 return(SUCCESS); 1587 1584 } 1588 1585 } … … 1590 1587 } 1591 1588 1592 return ;1589 return(FAILURE); 1593 1590 1594 1591 /* … … 1598 1595 1599 1596 if (clkrun) /* clock can't be running */ 1600 return ;1597 return(FAILURE); 1601 1598 1602 1599 if (scmctl NE -1) … … 1607 1604 sdmenu(1); 1608 1605 noteop = NOP_NUL; 1609 return ;1606 return(SUCCESS); 1610 1607 1611 1608 } else { /* menu up - select operation */ … … 1617 1614 1618 1615 hilitnt(NOP_ACC); 1619 return ;1616 return(SUCCESS); 1620 1617 1621 1618 } else if ((vtccol GE 13) AND … … 1623 1620 1624 1621 hilitnt(NOP_MVN); 1625 return ;1622 return(SUCCESS); 1626 1623 1627 1624 } else if ((vtccol GE 25) AND … … 1629 1626 1630 1627 hilitnt(NOP_NUL); 1631 return ;1628 return(SUCCESS); 1632 1629 1633 1630 } 1634 1631 1635 return ;1632 return(FAILURE); 1636 1633 /* 1637 1634 … … 1643 1640 1644 1641 hilitnt(NOP_NAT); 1645 return ;1642 return(SUCCESS); 1646 1643 1647 1644 } else if ((vtccol GE 13) AND … … 1649 1646 1650 1647 hilitnt(NOP_MVB); 1651 return ;1648 return(SUCCESS); 1652 1649 } 1653 1650 1654 return ;1651 return(FAILURE); 1655 1652 1656 1653 } else if (vtcrow EQ 21) { … … 1660 1657 1661 1658 hilitnt(NOP_END); 1662 return ;1659 return(SUCCESS); 1663 1660 1664 1661 } else if ((vtccol GE 13) AND … … 1666 1663 1667 1664 hilitnt(NOP_MVE); 1668 return ;1665 return(SUCCESS); 1669 1666 } 1670 1667 1671 return ;1668 return(FAILURE); 1672 1669 1673 1670 } else 1674 return ;1671 return(FAILURE); 1675 1672 } 1676 1673 1677 return ;1674 return(FAILURE); 1678 1675 1679 1676 /* … … 1703 1700 } 1704 1701 1705 return ;1702 return(SUCCESS); 1706 1703 1707 1704 } else { 1708 1705 1709 enterit(); /* data entry */ 1710 return; 1706 return(entbh(-1)); /* data entry */ 1711 1707 } 1712 1708 … … 1720 1716 scmenu(-1); /* take down menu */ 1721 1717 1722 return ;1718 return(SUCCESS); 1723 1719 1724 1720 } else { 1725 1721 1726 enterit(); /* data entry */ 1727 return; 1722 return(entbh(-1)); /* data entry */ 1728 1723 } 1729 1724 /* … … 1780 1775 } 1781 1776 1782 return ;1777 return(SUCCESS); 1783 1778 1784 1779 /* … … 1837 1832 } 1838 1833 1839 return ;1834 return(SUCCESS); 1840 1835 /* 1841 1836 … … 1843 1838 case 10: /* Output */ 1844 1839 1845 return ;1840 return(SUCCESS); 1846 1841 1847 1842 case 11: /* group/ins, trans, dyn/loc, velocity */ … … 1854 1849 scmenu(-1); /* take down the menu */ 1855 1850 1856 return ;1851 return(SUCCESS); 1857 1852 1858 1853 } else if ((row EQ 21) AND (col LE 3)) { /* velocity flag */ … … 1860 1855 velflag = NOT velflag; 1861 1856 ds_vmod(); 1862 return; 1863 1864 } else { 1865 enterit(); /* inst. number */ 1866 return; 1867 } 1857 return(SUCCESS); 1858 1859 } else 1860 return(entbh(-1)); /* inst. number */ 1868 1861 1869 1862 /* … … 1887 1880 vputa(obj8, 7, i, atr); 1888 1881 1889 return ;1882 return(SUCCESS); 1890 1883 1891 1884 } else if ((row EQ 22) AND (col LE 4)) { /* r/p source */ … … 1904 1897 vputa(obj8, 6, i, atr); 1905 1898 1906 return ;1899 return(SUCCESS); 1907 1900 1908 1901 } else { 1909 1902 1910 enterit(); 1911 return; 1903 return(entbh(-1)); 1912 1904 } 1913 1905 /* … … 1923 1915 scmenu(-1); /* take down menu */ 1924 1916 1925 return ;1917 return(SUCCESS); 1926 1918 1927 1919 } else if ((col GE 10) AND (col LE 25)) { /* score name */ … … 1940 1932 } 1941 1933 1942 return; 1943 1944 } else { 1945 enterit(); 1946 return; 1947 } 1934 return(SUCCESS); 1935 1936 } else 1937 return(entbh(-1)); 1948 1938 /* 1949 1939 … … 1955 1945 recsw = FALSE; 1956 1946 dsrpmod(); 1957 return ;1947 return(SUCCESS); 1958 1948 1959 1949 } else if ((col GE 36) AND (col LE 40)) { /* Recrd */ … … 1961 1951 recsw = TRUE; 1962 1952 dsrpmod(); 1963 return ;1953 return(SUCCESS); 1964 1954 1965 1955 } else if ((col GE 42) AND (col LE 47)) { /* OvrDub */ … … 1967 1957 dubsw = NOT dubsw; 1968 1958 dsrpmod(); 1969 return ;1959 return(SUCCESS); 1970 1960 1971 1961 } else if ((col GE 49) AND (col LE 55)) { /* PunchIn */ … … 1973 1963 pchsw = NOT pchsw; 1974 1964 dsrpmod(); 1975 return ;1965 return(SUCCESS); 1976 1966 1977 1967 } 1978 1968 1979 return ;1969 return(FAILURE); 1980 1970 1981 1971 case 16: /* note display */ … … 1984 1974 donote(); 1985 1975 1986 return ;1976 return(SUCCESS); 1987 1977 } 1978 1979 return(FAILURE); 1988 1980 } 1989
Note:
See TracChangeset
for help on using the changeset viewer.