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 - bdos http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   bdos

   Usage
   #include <dos.h>
   int bdos(int func, unsigned DX, unsigned AL);

   Description
   The  bdos  function calls a DOS function (int 21h) where func  is  the
   function number and DX and AL are the values to be loaded into the  DX
   and  AL registers prior to the function call. DOS function  calls  are
   used  to  access  the facilities of the operating system.

   Some system calls require registers other than DX and AL to  be set up
   and therefore bdos cannot be used. In such cases use the intdos
   function.

   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: bdosx intdos intdosx int86 int86x

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