ReactOS 0.4.15-dev-5667-ged97270
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
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
21
22 /* Int 18h AH=18h
23 * CRT BIOS - Beep off
24 */
25 Regs.b.ah = 0x18;
26 Int386(0x18, &Regs, &Regs);
27}
VOID Pc98Beep(VOID)
Definition: pc98beep.c:10
int __cdecl Int386(int ivec, REGS *in, REGS *out)
VOID StallExecutionProcessor(ULONG Microseconds)
Definition: pchw.c:60
unsigned char ah
Definition: pcbios.h:132
Definition: pcbios.h:159
BYTEREGS b
Definition: pcbios.h:163