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