Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - bdosx http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   bdosx

   Usage
   #include <dos.h>
   int bdosx(int func, char *ptr);

   Description
   Calls an DOS function (int 21h) where func is the function number  and
   the ptr argument is loaded into the DS:DX register pair. The  argument
   ptr is a standard C near or far pointer depending on the memory model.
   Do  not  specifically  use a declared near or far  pointer  unless  it
   matches  the  default pointer type for the memory model  in  use.  Use
   intdosx for system calls that require registers to be set up.

   Example
   #include <dos.h>
   main()
   {
        bdos(2,'C');   /* display the letter C */
   }
   Return Value
   Returns the value in AX after the system call.


See Also: DOS_package bdos intdos intdosx int86 int86x

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson