@c ----------------------------------------------------------------------
@node bdos, dos
@heading @code{bdos}
@subheading Syntax

@example
#include <dos.h>

int bdos(int func, unsigned edx, unsigned al);
@end example

@subheading Description

Performs a software interrupt type 0x21, passing %al and %edx as
specified, with @var{func} in %ah.

@subheading Return Value

%eax is returned.

@subheading Example

@example
/* read a character */
int ch = bdos(1, 0, 0) & 0xff;
@end example

@c ----------------------------------------------------------------------
@node bdosptr, dos
@heading @code{bdosptr}
@subheading Syntax

@example
#include <dos.h>

int bdosptr(int func, void *edx, unsigned al);
@end example

@subheading Description

Performs a software interrupt type 0x21, passing %al and %edx as
specified, with @var{func} in %ah.

@subheading Return Value

%eax is returned.

@subheading Example

@example
/* print a string */
bdos(9, "Hello, there$", 0);
@end example

