Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>outport() output word to a hardware port</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 outport()               Output word to a Hardware Port

 #include   <dos.h>

 void       outport(port,word);
 int        port;                        Specified port
 int        word;                        Word to be output

    outport() writes 'word' to the output port specified by 'port'.

       Returns:     Nothing

   Portability:      Unique to 8086 family of processors

   -------------------------------- Example ---------------------------------

    The following statements write a word to port 'x'.

           #include <dos.h>     /* for outport */

           main()
               {
               int val = 2000;

               outport(x,val);
               }

See Also: inport() inportb() outportb()

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