PT630 Programming Reference Guide
Page 51 of 59
------------------------------------------------------------------------------------------------------------------
1.7
Beeper Control Function ( INT 31H )
Entry
Parameter:
AX= frequency
BX=time duration
AX Frequency(Hz) BX Time
Duration(ms)
0 200 0 10
1 400 1 50
2 600 2 100
3 800 3 200
4 1K 4 500
5 2K 5 800
6 2.5K 6 1K
7 3K 7 1.5K
7 5K 8 2K
Return
Value:
None
Example
:
void TD_beep_new(int fz,int tm)
{
regs.x.ax = fz;
regs.x.bx = tm;
int86(0x31,®s,®s);
}