regs.h.bh = 8; int86(0x21,®s,®s);
| } |
|
54 | Buzzer volume control with | |
| 21H |
|
| Entry Parameters: | AH = 0x54 |
|
| CX = |
|
| DX = |
| Returned Values: | None |
void TD_beep_user(int fz,int tm)
{
regs.h.ah 0x54;= regs.x.cx = fz; regs.x.dx = tm; int86(0x21,®s,®s);
}
Buzzer volume control with predefined frequency and time INT 35H
Entry Parameters: | AX = | ;frequency assignment | |
| BX = | ;time duration |
|
Returned Values: | None |
|
|
| Frequency |
| Time duration |
AX = 0 | 200 Hz | BX = 0 | 10 ms |
1 | 400 | 1 | 50 |
2 | 600 | 2 | 100 |
3 | 800 | 3 | 200 |
4 | 1K | 4 | 500 |
5 | 2K | 5 | 800 |
6 | 2.5K | 6 | 1 second |
7 | 3K | 7 | 1.5 seconds |
8 | 5K | 8 | 2 seconds |
void TD_beep(int fz,int tm)
{
regs.x.ax = fz; regs.x.bx = tm; int86(0x35,®s,®s);
}