ReactOS
0.4.16-dev-136-g52192f1
pc98beep.c
Go to the documentation of this file.
1
/*
2
* PROJECT: FreeLoader
3
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4
* PURPOSE: Beep routine for NEC PC-98 series
5
* COPYRIGHT: Copyright 2020 Dmitry Borisov (di.sean@protonmail.com)
6
*/
7
8
#include <
freeldr.h
>
9
10
VOID
Pc98Beep
(
VOID
)
11
{
12
REGS
Regs;
13
14
/* Int 18h AH=17h
15
* CRT BIOS - Beep on
16
*/
17
Regs.
b
.
ah
= 0x17;
18
Int386
(0x18, &Regs, &Regs);
19
20
StallExecutionProcessor
(100000);
21
22
/* Int 18h AH=18h
23
* CRT BIOS - Beep off
24
*/
25
Regs.
b
.
ah
= 0x18;
26
Int386
(0x18, &Regs, &Regs);
27
}
freeldr.h
void
Definition:
nsiface.idl:2307
Pc98Beep
VOID Pc98Beep(VOID)
Definition:
pc98beep.c:10
Int386
int __cdecl Int386(int ivec, REGS *in, REGS *out)
StallExecutionProcessor
VOID StallExecutionProcessor(ULONG Microseconds)
Definition:
pchw.c:60
BYTEREGS::ah
unsigned char ah
Definition:
pcbios.h:132
REGS
Definition:
pcbios.h:159
REGS::b
BYTEREGS b
Definition:
pcbios.h:163
boot
freeldr
freeldr
arch
i386
pc98
pc98beep.c
Generated on Tue Oct 15 2024 06:02:37 for ReactOS by
1.9.6