443
edits
-
Changes
Created page with "<strong>MSDOS, MSDOSCX</strong> ==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,..."
<strong>MSDOS, MSDOSCX</strong>
==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 <strong>msdos</strong>()) or the contents
of DX and CX (for <strong>msdoscx</strong>()). 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
==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 <strong>msdos</strong>()) or the contents
of DX and CX (for <strong>msdoscx</strong>()). 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