Functions HI-TECH C MSDOS

MSDOS, MSDOSCX

SYNOPSIS

#include  <dos.h>

long      msdos(int ax, int dx, int cx,
int bx, int si, int di)
long      msdoscx(int ax, int dx, int cx,
int bx, int si, int di)


DESCRIPTION

These functions allow direct access to MS-DOS system calls. The arguments will be placed in the registers implied by their names, while the return value will be the contents of AX and DX (for msdos()) or the contents of DX and CX (for msdoscx()). Only as many arguments as necessary need be supplied, e.g. if only AH and DX need have specified valued, then only 2 argument would be required. The following piece of code outputs a form-feed to the printer.

msdos(0x500, '\f');

Note that the system call number (in this case 5) must be multiplied by 0x100 since MS-DOS expects the call number in AH, the high byte of AX.

SEE ALSO

intdos, intdosx, int86, int86x