Chapter 8 - Using MS-DOS
PL-5910 Series User Manual
8-13
" 1 ",
0x31, /* Function Sheet 1 */
" 2 ",
0x32, /* Function Sheet 2 */
" 3 ",
0x33, /* Function Sheet 3 */
" 4 ",
0x34, /* Function Sheet 4 */
" 5 ",
0x35, /* Function Sheet 5 */
" 6 ",
0x36, /* Function Sheet 6 */
" 7 ",
0x37, /* Function Sheet 7 */
" 8 ",
0x38, /* Function Sheet 8 */
" 9 ",
0x39, /* Function Sheet 9 */
" 0 ",
0x30, /* Function Sheet 0 */
" . ",
0x2e, /* Function Sheet . */
" + ",
0x2b, /* Function Sheet + */
"B S",
0x08, /* Function Sheet BS */
"ENT",
0x0d, /* Function Sheet ENT*/
0, 0
};
union REGS inregs, outregs;
/*************/
/* BUZZER ON */
/*************/
void buzzer_on(void)
{
int timer;
outp (CTRL8253, 0xb6);
outp (D2, 0x33);
outp (D2, 0x05);
/* Length of buzzer sounding */
outp (CTRL8042, ((inp(CTRL8042) | 0x3) & 0xff)
/* Buzzer On */
for (timer = 0 ; timer<BEEP_TIME; timer++);
}