Rev 766 | Rev 803 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 766 | Rev 802 | ||
---|---|---|---|
Line 1126... | Line 1126... | ||
1126 | * To get CD base use subfunction 3 of function 26. |
1126 | * To get CD base use subfunction 3 of function 26. |
Line 1127... | Line 1127... | ||
1127 | 1127 | ||
1128 | ====================================================================== |
1128 | ====================================================================== |
1129 | ====== Function 21, subfunction 4 - set Sound Blaster base port. ===== |
1129 | ====== Function 21, subfunction 4 - set Sound Blaster base port. ===== |
1130 | ====================================================================== |
- | |
1131 | Parameters: |
- | |
1132 | * eax = 21 - function number |
- | |
1133 | * ebx = 4 - subfunction number |
- | |
1134 | * ecx = number of the base port |
- | |
1135 | Returned value: |
- | |
1136 | * eax = 0 - success |
- | |
1137 | * eax = -1 - erratic port number |
1130 | ====================================================================== |
1138 | Remarks: |
- | |
1139 | * Number of the port must satisfy to conditions 0x100<=ecx<=0xFFFF. |
- | |
1140 | * The installation of the base is necessary for |
- | |
1141 | functions 25, 28, 55. |
- | |
Line 1142... | Line 1131... | ||
1142 | * To get base port use subfunction 4 of function 26. |
1131 | Removed |
1143 | 1132 | ||
1144 | ====================================================================== |
1133 | ====================================================================== |
1145 | ========== Function 21, subfunction 5 - set system language. ========= |
1134 | ========== Function 21, subfunction 5 - set system language. ========= |
Line 1202... | Line 1191... | ||
1202 | * It is also necessary to define used HD base by subfunction 7. |
1191 | * It is also necessary to define used HD base by subfunction 7. |
Line 1203... | Line 1192... | ||
1203 | 1192 | ||
1204 | ====================================================================== |
1193 | ====================================================================== |
1205 | ======== Function 21, subfunction 10 - set sound DMA channel. ======== |
1194 | ======== Function 21, subfunction 10 - set sound DMA channel. ======== |
1206 | ====================================================================== |
- | |
1207 | Parameters: |
- | |
1208 | * eax = 21 - function number |
- | |
1209 | * ebx = 10 - subfunction number |
- | |
1210 | * ecx = number of channel (from 0 up to 3 inclusively) |
- | |
1211 | Returned value: |
- | |
1212 | * eax = 0 - success |
- | |
1213 | * eax = -1 - incorrect channel number |
1195 | ====================================================================== |
1214 | Remarks: |
- | |
1215 | * Number of DMA channel is used in subfunction 1 of function 55. |
- | |
Line 1216... | Line 1196... | ||
1216 | * To get sound DMA channel use subfunction 10 of function 26. |
1196 | Removed |
1217 | 1197 | ||
1218 | ====================================================================== |
1198 | ====================================================================== |
1219 | Function 21, subfunction 11 - enable/disable low-level access to HD. |
1199 | Function 21, subfunction 11 - enable/disable low-level access to HD. |
Line 1503... | Line 1483... | ||
1503 | * An example of usage of the function is the application CD_tray. |
1483 | * An example of usage of the function is the application CD_tray. |
Line 1504... | Line 1484... | ||
1504 | 1484 | ||
1505 | ====================================================================== |
1485 | ====================================================================== |
1506 | =================== Function 25 - set SBPro volume. ================== |
1486 | =================== Function 25 - set SBPro volume. ================== |
1507 | ====================================================================== |
- | |
1508 | Parameters: |
- | |
1509 | * eax = 25 - function number |
- | |
1510 | * ebx = what to set: |
- | |
1511 | * 1 - set common volume |
- | |
1512 | * 2 - set CD-audio volume |
- | |
1513 | * cl = volume level: high 4 bits for the left column, |
- | |
1514 | low 4 bits for the right one |
- | |
1515 | Returned value: |
- | |
1516 | * eax = 0 - success |
- | |
1517 | * eax = 1 - SB base is not defined |
- | |
1518 | * eax = 2 - incorrect subfunction |
1487 | ====================================================================== |
1519 | Remarks: |
- | |
1520 | * Previously SB base port must be defined by |
- | |
1521 | subfunction 4 of function 21. |
- | |
1522 | * See also function 28 which sets |
- | |
Line 1523... | Line 1488... | ||
1523 | volume for the later standard SB16. |
1488 | Removed |
1524 | 1489 | ||
1525 | ====================================================================== |
1490 | ====================================================================== |
1526 | ======== Function 26, subfunction 1 - get MPU MIDI base port. ======== |
1491 | ======== Function 26, subfunction 1 - get MPU MIDI base port. ======== |
Line 1582... | Line 1547... | ||
1582 | * To set CD base use subfunction 3 of function 21. |
1547 | * To set CD base use subfunction 3 of function 21. |
Line 1583... | Line 1548... | ||
1583 | 1548 | ||
1584 | ====================================================================== |
1549 | ====================================================================== |
1585 | ====== Function 26, subfunction 4 - get Sound Blaster base port. ===== |
1550 | ====== Function 26, subfunction 4 - get Sound Blaster base port. ===== |
1586 | ====================================================================== |
- | |
1587 | Parameters: |
- | |
1588 | * eax = 26 - function number |
- | |
1589 | * ebx = 4 - subfunction number |
- | |
1590 | Returned value: |
- | |
1591 | * eax = base port number |
1551 | ====================================================================== |
1592 | Remarks: |
- | |
1593 | * Bae port is used by functions 25, 55. |
- | |
Line 1594... | Line 1552... | ||
1594 | * To set base port use subfunction 4 of function 21. |
1552 | Removed |
1595 | 1553 | ||
1596 | ====================================================================== |
1554 | ====================================================================== |
1597 | ========== Function 26, subfunction 5 - get system language. ========= |
1555 | ========== Function 26, subfunction 5 - get system language. ========= |
Line 1656... | Line 1614... | ||
1656 | * To get system time use function 3. |
1614 | * To get system time use function 3. |
Line 1657... | Line 1615... | ||
1657 | 1615 | ||
1658 | ====================================================================== |
1616 | ====================================================================== |
1659 | ======== Function 26, subfunction 10 - get sound DMA channel. ======== |
1617 | ======== Function 26, subfunction 10 - get sound DMA channel. ======== |
1660 | ====================================================================== |
- | |
1661 | Parameters: |
- | |
1662 | * eax = 26 - function number |
- | |
1663 | * ebx = 10 - subfunction number |
- | |
1664 | Returned value: |
- | |
1665 | * eax = number of the channel (from 0 to 3 inclusive) |
1618 | ====================================================================== |
1666 | Remarks: |
- | |
1667 | * Number of the DMA channel is used by subfunction 1 of function 55. |
- | |
Line 1668... | Line 1619... | ||
1668 | * To set the sound DMA channel use subfunction 10 of function 21. |
1619 | Removed |
1669 | 1620 | ||
1670 | ====================================================================== |
1621 | ====================================================================== |
1671 | ===================== Function 26, subfunction 11 ==================== |
1622 | ===================== Function 26, subfunction 11 ==================== |
Line 1695... | Line 1646... | ||
1695 | * To set the current state use subfunction 12 of function 21. |
1646 | * To set the current state use subfunction 12 of function 21. |
Line 1696... | Line 1647... | ||
1696 | 1647 | ||
1697 | ====================================================================== |
1648 | ====================================================================== |
1698 | =================== Function 28 - set SB16 volume. =================== |
1649 | =================== Function 28 - set SB16 volume. =================== |
1699 | ====================================================================== |
- | |
1700 | Parameters: |
- | |
1701 | * eax = 28 - function number |
- | |
1702 | * ebx = what to install: |
- | |
1703 | * 1 - install common volume |
- | |
1704 | * 2 - install CD-audio volume |
- | |
1705 | * cl = volume level (0=off, 0xFF=max) |
- | |
1706 | Returned value: |
- | |
1707 | * eax = 0 - success |
- | |
1708 | * eax = 1 - SB base is not defined |
- | |
1709 | * eax = 2 - incorrect subfunction |
1650 | ====================================================================== |
1710 | Remarks: |
- | |
1711 | * Previously SB base port must be defined by |
- | |
1712 | subfunction 4 of function 21. |
- | |
Line 1713... | Line 1651... | ||
1713 | * This function gives more variants for volume, that function 25. |
1651 | Removed |
1714 | 1652 | ||
1715 | ====================================================================== |
1653 | ====================================================================== |
1716 | =================== Function 29 - get system date. =================== |
1654 | =================== Function 29 - get system date. =================== |