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>outportb() output byte to a hardware port (macro)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 outportb()              Output byte to a Hardware Port (Macro)

 #include   <dos.h>

 void       outportb(port,byte);
 int        port;                        Specified port
 unsigned char byte;                     Byte to be output

    outportb() is a macro that writes the byte given by 'byte' to the
    output port specified by 'port'.

       Returns:     Nothing

   Portability:     Unique to 8086 family of processors.

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

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

           #include <dos.h>     /* for outportb */
           main()
           {
               char val = 'z';
               outportb(x,val);
           }



See Also: inportb() outport()

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